@secrecy/trpc-api-types 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +74 -0
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -6301,6 +6301,80 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
6301
6301
|
rights: "admin" | "write" | "read";
|
|
6302
6302
|
}[];
|
|
6303
6303
|
}, unknown>;
|
|
6304
|
+
renewAppCode: _trpc_server.BuildProcedure<"mutation", {
|
|
6305
|
+
_config: _trpc_server.RootConfig<{
|
|
6306
|
+
ctx: {};
|
|
6307
|
+
meta: object;
|
|
6308
|
+
errorShape: {
|
|
6309
|
+
message: string;
|
|
6310
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6311
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6312
|
+
} | {
|
|
6313
|
+
data: {
|
|
6314
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6315
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6316
|
+
httpStatus: number;
|
|
6317
|
+
path?: string | undefined;
|
|
6318
|
+
stack?: string | undefined;
|
|
6319
|
+
};
|
|
6320
|
+
message: string;
|
|
6321
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6322
|
+
};
|
|
6323
|
+
transformer: typeof superjson.default;
|
|
6324
|
+
}>;
|
|
6325
|
+
_meta: object;
|
|
6326
|
+
_ctx_out: {};
|
|
6327
|
+
_input_in: {
|
|
6328
|
+
appCode: string;
|
|
6329
|
+
};
|
|
6330
|
+
_input_out: {
|
|
6331
|
+
appCode: string;
|
|
6332
|
+
};
|
|
6333
|
+
_output_in: {
|
|
6334
|
+
isRenewed: boolean;
|
|
6335
|
+
};
|
|
6336
|
+
_output_out: {
|
|
6337
|
+
isRenewed: boolean;
|
|
6338
|
+
};
|
|
6339
|
+
}, unknown>;
|
|
6340
|
+
setOrigins: _trpc_server.BuildProcedure<"mutation", {
|
|
6341
|
+
_config: _trpc_server.RootConfig<{
|
|
6342
|
+
ctx: {};
|
|
6343
|
+
meta: object;
|
|
6344
|
+
errorShape: {
|
|
6345
|
+
message: string;
|
|
6346
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6347
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6348
|
+
} | {
|
|
6349
|
+
data: {
|
|
6350
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6351
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6352
|
+
httpStatus: number;
|
|
6353
|
+
path?: string | undefined;
|
|
6354
|
+
stack?: string | undefined;
|
|
6355
|
+
};
|
|
6356
|
+
message: string;
|
|
6357
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6358
|
+
};
|
|
6359
|
+
transformer: typeof superjson.default;
|
|
6360
|
+
}>;
|
|
6361
|
+
_meta: object;
|
|
6362
|
+
_ctx_out: {};
|
|
6363
|
+
_input_in: {
|
|
6364
|
+
appCode: string;
|
|
6365
|
+
origins: string[];
|
|
6366
|
+
};
|
|
6367
|
+
_input_out: {
|
|
6368
|
+
appCode: string;
|
|
6369
|
+
origins: string[];
|
|
6370
|
+
};
|
|
6371
|
+
_output_in: {
|
|
6372
|
+
isUpdated: boolean;
|
|
6373
|
+
};
|
|
6374
|
+
_output_out: {
|
|
6375
|
+
isUpdated: boolean;
|
|
6376
|
+
};
|
|
6377
|
+
}, unknown>;
|
|
6304
6378
|
updateApplication: _trpc_server.BuildProcedure<"mutation", {
|
|
6305
6379
|
_config: _trpc_server.RootConfig<{
|
|
6306
6380
|
ctx: {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secrecy/trpc-api-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"publishConfig": {
|
|
5
6
|
"access": "public"
|
|
6
7
|
},
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
"types": "./dist/index.d.ts"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
|
-
"
|
|
21
|
+
"dependencies": {
|
|
21
22
|
"@prisma/client": "^5.x",
|
|
22
23
|
"@trpc/server": "^10.x",
|
|
23
24
|
"superjson": "^1.x",
|