11/* eslint-disable */
22// node-ts v1.0.0 2167bb6fb0a186ff099cd8a309c6ffbbd7d1b9c0
33// --
4- // Code generated by webrpc-gen@v0.11.0 with custom generator. DO NOT EDIT.
4+ // Code generated by webrpc-gen@v0.13.1 with ../../ generator. DO NOT EDIT.
55//
66// webrpc-gen -schema=service.ridl -target=../../ -client -out=./webapp/client.gen.ts
77
@@ -24,6 +24,11 @@ export enum Kind {
2424 ADMIN = 'ADMIN'
2525}
2626
27+ export enum KindValue {
28+ USER = 0 ,
29+ ADMIN = 1
30+ }
31+
2732export interface User {
2833 id : number
2934 USERNAME : string
@@ -259,6 +264,19 @@ export class WebrpcServerPanicError extends WebrpcError {
259264 }
260265}
261266
267+ export class WebrpcInternalErrorError extends WebrpcError {
268+ constructor (
269+ name : string = 'WebrpcInternalError' ,
270+ code : number = - 7 ,
271+ message : string = 'internal error' ,
272+ status : number = 0 ,
273+ cause ?: string
274+ ) {
275+ super ( name , code , message , status , cause )
276+ Object . setPrototypeOf ( this , WebrpcInternalErrorError . prototype )
277+ }
278+ }
279+
262280
263281// Schema errors
264282
@@ -271,6 +289,7 @@ export enum errors {
271289 WebrpcBadRequest = 'WebrpcBadRequest' ,
272290 WebrpcBadResponse = 'WebrpcBadResponse' ,
273291 WebrpcServerPanic = 'WebrpcServerPanic' ,
292+ WebrpcInternalError = 'WebrpcInternalError' ,
274293}
275294
276295const webrpcErrorByCode : { [ code : number ] : any } = {
@@ -281,6 +300,7 @@ const webrpcErrorByCode: { [code: number]: any } = {
281300 [ - 4 ] : WebrpcBadRequestError ,
282301 [ - 5 ] : WebrpcBadResponseError ,
283302 [ - 6 ] : WebrpcServerPanicError ,
303+ [ - 7 ] : WebrpcInternalErrorError ,
284304}
285305
286306export type Fetch = ( input : RequestInfo , init ?: RequestInit ) => Promise < Response >
0 commit comments