autosync_backend2 1.2.55 → 1.2.57
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 +151 -493
- package/dist/index.js +459 -222
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -50,483 +50,11 @@ export declare const app: Elysia<"", {
|
|
|
50
50
|
} & {
|
|
51
51
|
schema: {};
|
|
52
52
|
standaloneSchema: {};
|
|
53
|
-
macro: Partial<
|
|
54
|
-
readonly auth:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
params: {};
|
|
59
|
-
headers: Record<string, string | undefined>;
|
|
60
|
-
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
61
|
-
server: import("elysia/dist/universal/server").Server | null;
|
|
62
|
-
redirect: import("elysia").redirect;
|
|
63
|
-
set: {
|
|
64
|
-
headers: import("elysia").HTTPHeaders;
|
|
65
|
-
status?: number | keyof import("elysia").StatusMap;
|
|
66
|
-
redirect?: string;
|
|
67
|
-
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
68
|
-
};
|
|
69
|
-
path: string;
|
|
70
|
-
route: string;
|
|
71
|
-
request: Request;
|
|
72
|
-
store: {};
|
|
73
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 301 | 302 | 303 | 307 | 308 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 304 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
74
|
-
readonly 100: "Continue";
|
|
75
|
-
readonly 101: "Switching Protocols";
|
|
76
|
-
readonly 102: "Processing";
|
|
77
|
-
readonly 103: "Early Hints";
|
|
78
|
-
readonly 200: "OK";
|
|
79
|
-
readonly 201: "Created";
|
|
80
|
-
readonly 202: "Accepted";
|
|
81
|
-
readonly 203: "Non-Authoritative Information";
|
|
82
|
-
readonly 204: "No Content";
|
|
83
|
-
readonly 205: "Reset Content";
|
|
84
|
-
readonly 206: "Partial Content";
|
|
85
|
-
readonly 207: "Multi-Status";
|
|
86
|
-
readonly 208: "Already Reported";
|
|
87
|
-
readonly 300: "Multiple Choices";
|
|
88
|
-
readonly 301: "Moved Permanently";
|
|
89
|
-
readonly 302: "Found";
|
|
90
|
-
readonly 303: "See Other";
|
|
91
|
-
readonly 304: "Not Modified";
|
|
92
|
-
readonly 307: "Temporary Redirect";
|
|
93
|
-
readonly 308: "Permanent Redirect";
|
|
94
|
-
readonly 400: "Bad Request";
|
|
95
|
-
readonly 401: "Unauthorized";
|
|
96
|
-
readonly 402: "Payment Required";
|
|
97
|
-
readonly 403: "Forbidden";
|
|
98
|
-
readonly 404: "Not Found";
|
|
99
|
-
readonly 405: "Method Not Allowed";
|
|
100
|
-
readonly 406: "Not Acceptable";
|
|
101
|
-
readonly 407: "Proxy Authentication Required";
|
|
102
|
-
readonly 408: "Request Timeout";
|
|
103
|
-
readonly 409: "Conflict";
|
|
104
|
-
readonly 410: "Gone";
|
|
105
|
-
readonly 411: "Length Required";
|
|
106
|
-
readonly 412: "Precondition Failed";
|
|
107
|
-
readonly 413: "Payload Too Large";
|
|
108
|
-
readonly 414: "URI Too Long";
|
|
109
|
-
readonly 415: "Unsupported Media Type";
|
|
110
|
-
readonly 416: "Range Not Satisfiable";
|
|
111
|
-
readonly 417: "Expectation Failed";
|
|
112
|
-
readonly 418: "I'm a teapot";
|
|
113
|
-
readonly 420: "Enhance Your Calm";
|
|
114
|
-
readonly 421: "Misdirected Request";
|
|
115
|
-
readonly 422: "Unprocessable Content";
|
|
116
|
-
readonly 423: "Locked";
|
|
117
|
-
readonly 424: "Failed Dependency";
|
|
118
|
-
readonly 425: "Too Early";
|
|
119
|
-
readonly 426: "Upgrade Required";
|
|
120
|
-
readonly 428: "Precondition Required";
|
|
121
|
-
readonly 429: "Too Many Requests";
|
|
122
|
-
readonly 431: "Request Header Fields Too Large";
|
|
123
|
-
readonly 451: "Unavailable For Legal Reasons";
|
|
124
|
-
readonly 500: "Internal Server Error";
|
|
125
|
-
readonly 501: "Not Implemented";
|
|
126
|
-
readonly 502: "Bad Gateway";
|
|
127
|
-
readonly 503: "Service Unavailable";
|
|
128
|
-
readonly 504: "Gateway Timeout";
|
|
129
|
-
readonly 505: "HTTP Version Not Supported";
|
|
130
|
-
readonly 506: "Variant Also Negotiates";
|
|
131
|
-
readonly 507: "Insufficient Storage";
|
|
132
|
-
readonly 508: "Loop Detected";
|
|
133
|
-
readonly 510: "Not Extended";
|
|
134
|
-
readonly 511: "Network Authentication Required";
|
|
135
|
-
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
136
|
-
readonly Continue: 100;
|
|
137
|
-
readonly "Switching Protocols": 101;
|
|
138
|
-
readonly Processing: 102;
|
|
139
|
-
readonly "Early Hints": 103;
|
|
140
|
-
readonly OK: 200;
|
|
141
|
-
readonly Created: 201;
|
|
142
|
-
readonly Accepted: 202;
|
|
143
|
-
readonly "Non-Authoritative Information": 203;
|
|
144
|
-
readonly "No Content": 204;
|
|
145
|
-
readonly "Reset Content": 205;
|
|
146
|
-
readonly "Partial Content": 206;
|
|
147
|
-
readonly "Multi-Status": 207;
|
|
148
|
-
readonly "Already Reported": 208;
|
|
149
|
-
readonly "Multiple Choices": 300;
|
|
150
|
-
readonly "Moved Permanently": 301;
|
|
151
|
-
readonly Found: 302;
|
|
152
|
-
readonly "See Other": 303;
|
|
153
|
-
readonly "Not Modified": 304;
|
|
154
|
-
readonly "Temporary Redirect": 307;
|
|
155
|
-
readonly "Permanent Redirect": 308;
|
|
156
|
-
readonly "Bad Request": 400;
|
|
157
|
-
readonly Unauthorized: 401;
|
|
158
|
-
readonly "Payment Required": 402;
|
|
159
|
-
readonly Forbidden: 403;
|
|
160
|
-
readonly "Not Found": 404;
|
|
161
|
-
readonly "Method Not Allowed": 405;
|
|
162
|
-
readonly "Not Acceptable": 406;
|
|
163
|
-
readonly "Proxy Authentication Required": 407;
|
|
164
|
-
readonly "Request Timeout": 408;
|
|
165
|
-
readonly Conflict: 409;
|
|
166
|
-
readonly Gone: 410;
|
|
167
|
-
readonly "Length Required": 411;
|
|
168
|
-
readonly "Precondition Failed": 412;
|
|
169
|
-
readonly "Payload Too Large": 413;
|
|
170
|
-
readonly "URI Too Long": 414;
|
|
171
|
-
readonly "Unsupported Media Type": 415;
|
|
172
|
-
readonly "Range Not Satisfiable": 416;
|
|
173
|
-
readonly "Expectation Failed": 417;
|
|
174
|
-
readonly "I'm a teapot": 418;
|
|
175
|
-
readonly "Enhance Your Calm": 420;
|
|
176
|
-
readonly "Misdirected Request": 421;
|
|
177
|
-
readonly "Unprocessable Content": 422;
|
|
178
|
-
readonly Locked: 423;
|
|
179
|
-
readonly "Failed Dependency": 424;
|
|
180
|
-
readonly "Too Early": 425;
|
|
181
|
-
readonly "Upgrade Required": 426;
|
|
182
|
-
readonly "Precondition Required": 428;
|
|
183
|
-
readonly "Too Many Requests": 429;
|
|
184
|
-
readonly "Request Header Fields Too Large": 431;
|
|
185
|
-
readonly "Unavailable For Legal Reasons": 451;
|
|
186
|
-
readonly "Internal Server Error": 500;
|
|
187
|
-
readonly "Not Implemented": 501;
|
|
188
|
-
readonly "Bad Gateway": 502;
|
|
189
|
-
readonly "Service Unavailable": 503;
|
|
190
|
-
readonly "Gateway Timeout": 504;
|
|
191
|
-
readonly "HTTP Version Not Supported": 505;
|
|
192
|
-
readonly "Variant Also Negotiates": 506;
|
|
193
|
-
readonly "Insufficient Storage": 507;
|
|
194
|
-
readonly "Loop Detected": 508;
|
|
195
|
-
readonly "Not Extended": 510;
|
|
196
|
-
readonly "Network Authentication Required": 511;
|
|
197
|
-
}[Code] : Code>;
|
|
198
|
-
}) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Токен олдсонгүй", 401> | {
|
|
199
|
-
user: import("./lib/auth").User;
|
|
200
|
-
session: {
|
|
201
|
-
id: string;
|
|
202
|
-
createdAt: Date;
|
|
203
|
-
updatedAt: Date;
|
|
204
|
-
userId: string;
|
|
205
|
-
expiresAt: Date;
|
|
206
|
-
token: string;
|
|
207
|
-
ipAddress?: string | null | undefined | undefined;
|
|
208
|
-
userAgent?: string | null | undefined | undefined;
|
|
209
|
-
};
|
|
210
|
-
}>;
|
|
211
|
-
};
|
|
212
|
-
readonly userKind: (input: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION") => {
|
|
213
|
-
readonly resolve: ({ request: { headers } }: {
|
|
214
|
-
body: unknown;
|
|
215
|
-
query: Record<string, string>;
|
|
216
|
-
params: {};
|
|
217
|
-
headers: Record<string, string | undefined>;
|
|
218
|
-
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
219
|
-
server: import("elysia/dist/universal/server").Server | null;
|
|
220
|
-
redirect: import("elysia").redirect;
|
|
221
|
-
set: {
|
|
222
|
-
headers: import("elysia").HTTPHeaders;
|
|
223
|
-
status?: number | keyof import("elysia").StatusMap;
|
|
224
|
-
redirect?: string;
|
|
225
|
-
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
226
|
-
};
|
|
227
|
-
path: string;
|
|
228
|
-
route: string;
|
|
229
|
-
request: Request;
|
|
230
|
-
store: {};
|
|
231
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 301 | 302 | 303 | 307 | 308 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 304 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
232
|
-
readonly 100: "Continue";
|
|
233
|
-
readonly 101: "Switching Protocols";
|
|
234
|
-
readonly 102: "Processing";
|
|
235
|
-
readonly 103: "Early Hints";
|
|
236
|
-
readonly 200: "OK";
|
|
237
|
-
readonly 201: "Created";
|
|
238
|
-
readonly 202: "Accepted";
|
|
239
|
-
readonly 203: "Non-Authoritative Information";
|
|
240
|
-
readonly 204: "No Content";
|
|
241
|
-
readonly 205: "Reset Content";
|
|
242
|
-
readonly 206: "Partial Content";
|
|
243
|
-
readonly 207: "Multi-Status";
|
|
244
|
-
readonly 208: "Already Reported";
|
|
245
|
-
readonly 300: "Multiple Choices";
|
|
246
|
-
readonly 301: "Moved Permanently";
|
|
247
|
-
readonly 302: "Found";
|
|
248
|
-
readonly 303: "See Other";
|
|
249
|
-
readonly 304: "Not Modified";
|
|
250
|
-
readonly 307: "Temporary Redirect";
|
|
251
|
-
readonly 308: "Permanent Redirect";
|
|
252
|
-
readonly 400: "Bad Request";
|
|
253
|
-
readonly 401: "Unauthorized";
|
|
254
|
-
readonly 402: "Payment Required";
|
|
255
|
-
readonly 403: "Forbidden";
|
|
256
|
-
readonly 404: "Not Found";
|
|
257
|
-
readonly 405: "Method Not Allowed";
|
|
258
|
-
readonly 406: "Not Acceptable";
|
|
259
|
-
readonly 407: "Proxy Authentication Required";
|
|
260
|
-
readonly 408: "Request Timeout";
|
|
261
|
-
readonly 409: "Conflict";
|
|
262
|
-
readonly 410: "Gone";
|
|
263
|
-
readonly 411: "Length Required";
|
|
264
|
-
readonly 412: "Precondition Failed";
|
|
265
|
-
readonly 413: "Payload Too Large";
|
|
266
|
-
readonly 414: "URI Too Long";
|
|
267
|
-
readonly 415: "Unsupported Media Type";
|
|
268
|
-
readonly 416: "Range Not Satisfiable";
|
|
269
|
-
readonly 417: "Expectation Failed";
|
|
270
|
-
readonly 418: "I'm a teapot";
|
|
271
|
-
readonly 420: "Enhance Your Calm";
|
|
272
|
-
readonly 421: "Misdirected Request";
|
|
273
|
-
readonly 422: "Unprocessable Content";
|
|
274
|
-
readonly 423: "Locked";
|
|
275
|
-
readonly 424: "Failed Dependency";
|
|
276
|
-
readonly 425: "Too Early";
|
|
277
|
-
readonly 426: "Upgrade Required";
|
|
278
|
-
readonly 428: "Precondition Required";
|
|
279
|
-
readonly 429: "Too Many Requests";
|
|
280
|
-
readonly 431: "Request Header Fields Too Large";
|
|
281
|
-
readonly 451: "Unavailable For Legal Reasons";
|
|
282
|
-
readonly 500: "Internal Server Error";
|
|
283
|
-
readonly 501: "Not Implemented";
|
|
284
|
-
readonly 502: "Bad Gateway";
|
|
285
|
-
readonly 503: "Service Unavailable";
|
|
286
|
-
readonly 504: "Gateway Timeout";
|
|
287
|
-
readonly 505: "HTTP Version Not Supported";
|
|
288
|
-
readonly 506: "Variant Also Negotiates";
|
|
289
|
-
readonly 507: "Insufficient Storage";
|
|
290
|
-
readonly 508: "Loop Detected";
|
|
291
|
-
readonly 510: "Not Extended";
|
|
292
|
-
readonly 511: "Network Authentication Required";
|
|
293
|
-
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
294
|
-
readonly Continue: 100;
|
|
295
|
-
readonly "Switching Protocols": 101;
|
|
296
|
-
readonly Processing: 102;
|
|
297
|
-
readonly "Early Hints": 103;
|
|
298
|
-
readonly OK: 200;
|
|
299
|
-
readonly Created: 201;
|
|
300
|
-
readonly Accepted: 202;
|
|
301
|
-
readonly "Non-Authoritative Information": 203;
|
|
302
|
-
readonly "No Content": 204;
|
|
303
|
-
readonly "Reset Content": 205;
|
|
304
|
-
readonly "Partial Content": 206;
|
|
305
|
-
readonly "Multi-Status": 207;
|
|
306
|
-
readonly "Already Reported": 208;
|
|
307
|
-
readonly "Multiple Choices": 300;
|
|
308
|
-
readonly "Moved Permanently": 301;
|
|
309
|
-
readonly Found: 302;
|
|
310
|
-
readonly "See Other": 303;
|
|
311
|
-
readonly "Not Modified": 304;
|
|
312
|
-
readonly "Temporary Redirect": 307;
|
|
313
|
-
readonly "Permanent Redirect": 308;
|
|
314
|
-
readonly "Bad Request": 400;
|
|
315
|
-
readonly Unauthorized: 401;
|
|
316
|
-
readonly "Payment Required": 402;
|
|
317
|
-
readonly Forbidden: 403;
|
|
318
|
-
readonly "Not Found": 404;
|
|
319
|
-
readonly "Method Not Allowed": 405;
|
|
320
|
-
readonly "Not Acceptable": 406;
|
|
321
|
-
readonly "Proxy Authentication Required": 407;
|
|
322
|
-
readonly "Request Timeout": 408;
|
|
323
|
-
readonly Conflict: 409;
|
|
324
|
-
readonly Gone: 410;
|
|
325
|
-
readonly "Length Required": 411;
|
|
326
|
-
readonly "Precondition Failed": 412;
|
|
327
|
-
readonly "Payload Too Large": 413;
|
|
328
|
-
readonly "URI Too Long": 414;
|
|
329
|
-
readonly "Unsupported Media Type": 415;
|
|
330
|
-
readonly "Range Not Satisfiable": 416;
|
|
331
|
-
readonly "Expectation Failed": 417;
|
|
332
|
-
readonly "I'm a teapot": 418;
|
|
333
|
-
readonly "Enhance Your Calm": 420;
|
|
334
|
-
readonly "Misdirected Request": 421;
|
|
335
|
-
readonly "Unprocessable Content": 422;
|
|
336
|
-
readonly Locked: 423;
|
|
337
|
-
readonly "Failed Dependency": 424;
|
|
338
|
-
readonly "Too Early": 425;
|
|
339
|
-
readonly "Upgrade Required": 426;
|
|
340
|
-
readonly "Precondition Required": 428;
|
|
341
|
-
readonly "Too Many Requests": 429;
|
|
342
|
-
readonly "Request Header Fields Too Large": 431;
|
|
343
|
-
readonly "Unavailable For Legal Reasons": 451;
|
|
344
|
-
readonly "Internal Server Error": 500;
|
|
345
|
-
readonly "Not Implemented": 501;
|
|
346
|
-
readonly "Bad Gateway": 502;
|
|
347
|
-
readonly "Service Unavailable": 503;
|
|
348
|
-
readonly "Gateway Timeout": 504;
|
|
349
|
-
readonly "HTTP Version Not Supported": 505;
|
|
350
|
-
readonly "Variant Also Negotiates": 506;
|
|
351
|
-
readonly "Insufficient Storage": 507;
|
|
352
|
-
readonly "Loop Detected": 508;
|
|
353
|
-
readonly "Not Extended": 510;
|
|
354
|
-
readonly "Network Authentication Required": 511;
|
|
355
|
-
}[Code] : Code>;
|
|
356
|
-
}) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Токен олдсонгүй", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
357
|
-
user: import("./lib/auth").User;
|
|
358
|
-
session: {
|
|
359
|
-
id: string;
|
|
360
|
-
createdAt: Date;
|
|
361
|
-
updatedAt: Date;
|
|
362
|
-
userId: string;
|
|
363
|
-
expiresAt: Date;
|
|
364
|
-
token: string;
|
|
365
|
-
ipAddress?: string | null | undefined | undefined;
|
|
366
|
-
userAgent?: string | null | undefined | undefined;
|
|
367
|
-
};
|
|
368
|
-
}>;
|
|
369
|
-
};
|
|
370
|
-
readonly permission: (input: import("./lib/permissions").PermissionCode | import("./lib/permissions").PermissionCode[]) => {
|
|
371
|
-
readonly resolve: ({ request: { headers } }: {
|
|
372
|
-
body: unknown;
|
|
373
|
-
query: Record<string, string>;
|
|
374
|
-
params: {};
|
|
375
|
-
headers: Record<string, string | undefined>;
|
|
376
|
-
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
377
|
-
server: import("elysia/dist/universal/server").Server | null;
|
|
378
|
-
redirect: import("elysia").redirect;
|
|
379
|
-
set: {
|
|
380
|
-
headers: import("elysia").HTTPHeaders;
|
|
381
|
-
status?: number | keyof import("elysia").StatusMap;
|
|
382
|
-
redirect?: string;
|
|
383
|
-
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
384
|
-
};
|
|
385
|
-
path: string;
|
|
386
|
-
route: string;
|
|
387
|
-
request: Request;
|
|
388
|
-
store: {};
|
|
389
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 301 | 302 | 303 | 307 | 308 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 304 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
390
|
-
readonly 100: "Continue";
|
|
391
|
-
readonly 101: "Switching Protocols";
|
|
392
|
-
readonly 102: "Processing";
|
|
393
|
-
readonly 103: "Early Hints";
|
|
394
|
-
readonly 200: "OK";
|
|
395
|
-
readonly 201: "Created";
|
|
396
|
-
readonly 202: "Accepted";
|
|
397
|
-
readonly 203: "Non-Authoritative Information";
|
|
398
|
-
readonly 204: "No Content";
|
|
399
|
-
readonly 205: "Reset Content";
|
|
400
|
-
readonly 206: "Partial Content";
|
|
401
|
-
readonly 207: "Multi-Status";
|
|
402
|
-
readonly 208: "Already Reported";
|
|
403
|
-
readonly 300: "Multiple Choices";
|
|
404
|
-
readonly 301: "Moved Permanently";
|
|
405
|
-
readonly 302: "Found";
|
|
406
|
-
readonly 303: "See Other";
|
|
407
|
-
readonly 304: "Not Modified";
|
|
408
|
-
readonly 307: "Temporary Redirect";
|
|
409
|
-
readonly 308: "Permanent Redirect";
|
|
410
|
-
readonly 400: "Bad Request";
|
|
411
|
-
readonly 401: "Unauthorized";
|
|
412
|
-
readonly 402: "Payment Required";
|
|
413
|
-
readonly 403: "Forbidden";
|
|
414
|
-
readonly 404: "Not Found";
|
|
415
|
-
readonly 405: "Method Not Allowed";
|
|
416
|
-
readonly 406: "Not Acceptable";
|
|
417
|
-
readonly 407: "Proxy Authentication Required";
|
|
418
|
-
readonly 408: "Request Timeout";
|
|
419
|
-
readonly 409: "Conflict";
|
|
420
|
-
readonly 410: "Gone";
|
|
421
|
-
readonly 411: "Length Required";
|
|
422
|
-
readonly 412: "Precondition Failed";
|
|
423
|
-
readonly 413: "Payload Too Large";
|
|
424
|
-
readonly 414: "URI Too Long";
|
|
425
|
-
readonly 415: "Unsupported Media Type";
|
|
426
|
-
readonly 416: "Range Not Satisfiable";
|
|
427
|
-
readonly 417: "Expectation Failed";
|
|
428
|
-
readonly 418: "I'm a teapot";
|
|
429
|
-
readonly 420: "Enhance Your Calm";
|
|
430
|
-
readonly 421: "Misdirected Request";
|
|
431
|
-
readonly 422: "Unprocessable Content";
|
|
432
|
-
readonly 423: "Locked";
|
|
433
|
-
readonly 424: "Failed Dependency";
|
|
434
|
-
readonly 425: "Too Early";
|
|
435
|
-
readonly 426: "Upgrade Required";
|
|
436
|
-
readonly 428: "Precondition Required";
|
|
437
|
-
readonly 429: "Too Many Requests";
|
|
438
|
-
readonly 431: "Request Header Fields Too Large";
|
|
439
|
-
readonly 451: "Unavailable For Legal Reasons";
|
|
440
|
-
readonly 500: "Internal Server Error";
|
|
441
|
-
readonly 501: "Not Implemented";
|
|
442
|
-
readonly 502: "Bad Gateway";
|
|
443
|
-
readonly 503: "Service Unavailable";
|
|
444
|
-
readonly 504: "Gateway Timeout";
|
|
445
|
-
readonly 505: "HTTP Version Not Supported";
|
|
446
|
-
readonly 506: "Variant Also Negotiates";
|
|
447
|
-
readonly 507: "Insufficient Storage";
|
|
448
|
-
readonly 508: "Loop Detected";
|
|
449
|
-
readonly 510: "Not Extended";
|
|
450
|
-
readonly 511: "Network Authentication Required";
|
|
451
|
-
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
452
|
-
readonly Continue: 100;
|
|
453
|
-
readonly "Switching Protocols": 101;
|
|
454
|
-
readonly Processing: 102;
|
|
455
|
-
readonly "Early Hints": 103;
|
|
456
|
-
readonly OK: 200;
|
|
457
|
-
readonly Created: 201;
|
|
458
|
-
readonly Accepted: 202;
|
|
459
|
-
readonly "Non-Authoritative Information": 203;
|
|
460
|
-
readonly "No Content": 204;
|
|
461
|
-
readonly "Reset Content": 205;
|
|
462
|
-
readonly "Partial Content": 206;
|
|
463
|
-
readonly "Multi-Status": 207;
|
|
464
|
-
readonly "Already Reported": 208;
|
|
465
|
-
readonly "Multiple Choices": 300;
|
|
466
|
-
readonly "Moved Permanently": 301;
|
|
467
|
-
readonly Found: 302;
|
|
468
|
-
readonly "See Other": 303;
|
|
469
|
-
readonly "Not Modified": 304;
|
|
470
|
-
readonly "Temporary Redirect": 307;
|
|
471
|
-
readonly "Permanent Redirect": 308;
|
|
472
|
-
readonly "Bad Request": 400;
|
|
473
|
-
readonly Unauthorized: 401;
|
|
474
|
-
readonly "Payment Required": 402;
|
|
475
|
-
readonly Forbidden: 403;
|
|
476
|
-
readonly "Not Found": 404;
|
|
477
|
-
readonly "Method Not Allowed": 405;
|
|
478
|
-
readonly "Not Acceptable": 406;
|
|
479
|
-
readonly "Proxy Authentication Required": 407;
|
|
480
|
-
readonly "Request Timeout": 408;
|
|
481
|
-
readonly Conflict: 409;
|
|
482
|
-
readonly Gone: 410;
|
|
483
|
-
readonly "Length Required": 411;
|
|
484
|
-
readonly "Precondition Failed": 412;
|
|
485
|
-
readonly "Payload Too Large": 413;
|
|
486
|
-
readonly "URI Too Long": 414;
|
|
487
|
-
readonly "Unsupported Media Type": 415;
|
|
488
|
-
readonly "Range Not Satisfiable": 416;
|
|
489
|
-
readonly "Expectation Failed": 417;
|
|
490
|
-
readonly "I'm a teapot": 418;
|
|
491
|
-
readonly "Enhance Your Calm": 420;
|
|
492
|
-
readonly "Misdirected Request": 421;
|
|
493
|
-
readonly "Unprocessable Content": 422;
|
|
494
|
-
readonly Locked: 423;
|
|
495
|
-
readonly "Failed Dependency": 424;
|
|
496
|
-
readonly "Too Early": 425;
|
|
497
|
-
readonly "Upgrade Required": 426;
|
|
498
|
-
readonly "Precondition Required": 428;
|
|
499
|
-
readonly "Too Many Requests": 429;
|
|
500
|
-
readonly "Request Header Fields Too Large": 431;
|
|
501
|
-
readonly "Unavailable For Legal Reasons": 451;
|
|
502
|
-
readonly "Internal Server Error": 500;
|
|
503
|
-
readonly "Not Implemented": 501;
|
|
504
|
-
readonly "Bad Gateway": 502;
|
|
505
|
-
readonly "Service Unavailable": 503;
|
|
506
|
-
readonly "Gateway Timeout": 504;
|
|
507
|
-
readonly "HTTP Version Not Supported": 505;
|
|
508
|
-
readonly "Variant Also Negotiates": 506;
|
|
509
|
-
readonly "Insufficient Storage": 507;
|
|
510
|
-
readonly "Loop Detected": 508;
|
|
511
|
-
readonly "Not Extended": 510;
|
|
512
|
-
readonly "Network Authentication Required": 511;
|
|
513
|
-
}[Code] : Code>;
|
|
514
|
-
}) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Токен олдсонгүй", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
515
|
-
user: import("./lib/auth").User;
|
|
516
|
-
session: {
|
|
517
|
-
id: string;
|
|
518
|
-
createdAt: Date;
|
|
519
|
-
updatedAt: Date;
|
|
520
|
-
userId: string;
|
|
521
|
-
expiresAt: Date;
|
|
522
|
-
token: string;
|
|
523
|
-
ipAddress?: string | null | undefined | undefined;
|
|
524
|
-
userAgent?: string | null | undefined | undefined;
|
|
525
|
-
};
|
|
526
|
-
permissions: ("INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN")[];
|
|
527
|
-
}>;
|
|
528
|
-
};
|
|
529
|
-
}>>;
|
|
53
|
+
macro: Partial<{
|
|
54
|
+
readonly auth: boolean;
|
|
55
|
+
readonly userKind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
|
|
56
|
+
readonly permission: "INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN" | ("INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN")[];
|
|
57
|
+
}>;
|
|
530
58
|
macroFn: {
|
|
531
59
|
readonly auth: {
|
|
532
60
|
readonly resolve: ({ request: { headers } }: {
|
|
@@ -1409,6 +937,7 @@ export declare const app: Elysia<"", {
|
|
|
1409
937
|
description: string | null;
|
|
1410
938
|
};
|
|
1411
939
|
401: "Токен олдсонгүй";
|
|
940
|
+
403: "Хандах эрхгүй байна.";
|
|
1412
941
|
422: {
|
|
1413
942
|
type: "validation";
|
|
1414
943
|
on: string;
|
|
@@ -1448,6 +977,7 @@ export declare const app: Elysia<"", {
|
|
|
1448
977
|
oldId: number | null;
|
|
1449
978
|
};
|
|
1450
979
|
401: "Токен олдсонгүй";
|
|
980
|
+
403: "Хандах эрхгүй байна.";
|
|
1451
981
|
404: "Агуулах олдсонгүй.";
|
|
1452
982
|
422: {
|
|
1453
983
|
type: "validation";
|
|
@@ -1474,6 +1004,7 @@ export declare const app: Elysia<"", {
|
|
|
1474
1004
|
headers: unknown;
|
|
1475
1005
|
response: {
|
|
1476
1006
|
401: "Токен олдсонгүй";
|
|
1007
|
+
403: "Хандах эрхгүй байна.";
|
|
1477
1008
|
422: {
|
|
1478
1009
|
type: "validation";
|
|
1479
1010
|
on: string;
|
|
@@ -1571,6 +1102,8 @@ export declare const app: Elysia<"", {
|
|
|
1571
1102
|
};
|
|
1572
1103
|
}[];
|
|
1573
1104
|
};
|
|
1105
|
+
401: "Токен олдсонгүй";
|
|
1106
|
+
403: "Хандах эрхгүй байна.";
|
|
1574
1107
|
422: {
|
|
1575
1108
|
type: "validation";
|
|
1576
1109
|
on: string;
|
|
@@ -1595,6 +1128,8 @@ export declare const app: Elysia<"", {
|
|
|
1595
1128
|
200: {
|
|
1596
1129
|
count: number;
|
|
1597
1130
|
};
|
|
1131
|
+
401: "Токен олдсонгүй";
|
|
1132
|
+
403: "Хандах эрхгүй байна.";
|
|
1598
1133
|
};
|
|
1599
1134
|
};
|
|
1600
1135
|
};
|
|
@@ -1632,6 +1167,8 @@ export declare const app: Elysia<"", {
|
|
|
1632
1167
|
isOrdered: boolean;
|
|
1633
1168
|
order: number;
|
|
1634
1169
|
};
|
|
1170
|
+
401: "Токен олдсонгүй";
|
|
1171
|
+
403: "Хандах эрхгүй байна.";
|
|
1635
1172
|
422: {
|
|
1636
1173
|
type: "validation";
|
|
1637
1174
|
on: string;
|
|
@@ -1669,6 +1206,8 @@ export declare const app: Elysia<"", {
|
|
|
1669
1206
|
total: number;
|
|
1670
1207
|
type: string;
|
|
1671
1208
|
}, void, unknown>;
|
|
1209
|
+
401: "Токен олдсонгүй";
|
|
1210
|
+
403: "Хандах эрхгүй байна.";
|
|
1672
1211
|
422: {
|
|
1673
1212
|
type: "validation";
|
|
1674
1213
|
on: string;
|
|
@@ -1782,6 +1321,8 @@ export declare const app: Elysia<"", {
|
|
|
1782
1321
|
oldId: number | null;
|
|
1783
1322
|
}[];
|
|
1784
1323
|
};
|
|
1324
|
+
401: "Токен олдсонгүй";
|
|
1325
|
+
403: "Хандах эрхгүй байна.";
|
|
1785
1326
|
422: {
|
|
1786
1327
|
type: "validation";
|
|
1787
1328
|
on: string;
|
|
@@ -1832,6 +1373,8 @@ export declare const app: Elysia<"", {
|
|
|
1832
1373
|
oldId: number | null;
|
|
1833
1374
|
};
|
|
1834
1375
|
400: "Ажилтны мэдээлэл шаардлагатай." | "Барааны үлдэгдэл хүрэлцэхгүй байна.";
|
|
1376
|
+
401: "Токен олдсонгүй";
|
|
1377
|
+
403: "Хандах эрхгүй байна.";
|
|
1835
1378
|
404: "Агуулахын бараа олдсонгүй.";
|
|
1836
1379
|
422: {
|
|
1837
1380
|
type: "validation";
|
|
@@ -1854,7 +1397,10 @@ export declare const app: Elysia<"", {
|
|
|
1854
1397
|
params: {};
|
|
1855
1398
|
query: unknown;
|
|
1856
1399
|
headers: unknown;
|
|
1857
|
-
response: {
|
|
1400
|
+
response: {
|
|
1401
|
+
401: "Токен олдсонгүй";
|
|
1402
|
+
403: "Хандах эрхгүй байна.";
|
|
1403
|
+
};
|
|
1858
1404
|
};
|
|
1859
1405
|
};
|
|
1860
1406
|
};
|
|
@@ -1894,6 +1440,8 @@ export declare const app: Elysia<"", {
|
|
|
1894
1440
|
deletedAt: string | null;
|
|
1895
1441
|
oldId: number | null;
|
|
1896
1442
|
};
|
|
1443
|
+
401: "Токен олдсонгүй";
|
|
1444
|
+
403: "Хандах эрхгүй байна.";
|
|
1897
1445
|
404: "Агуулахын бараа олдсонгүй.";
|
|
1898
1446
|
422: {
|
|
1899
1447
|
type: "validation";
|
|
@@ -1919,6 +1467,8 @@ export declare const app: Elysia<"", {
|
|
|
1919
1467
|
query: unknown;
|
|
1920
1468
|
headers: unknown;
|
|
1921
1469
|
response: {
|
|
1470
|
+
401: "Токен олдсонгүй";
|
|
1471
|
+
403: "Хандах эрхгүй байна.";
|
|
1922
1472
|
422: {
|
|
1923
1473
|
type: "validation";
|
|
1924
1474
|
on: string;
|
|
@@ -1989,6 +1539,7 @@ export declare const app: Elysia<"", {
|
|
|
1989
1539
|
}, "totalCount">[];
|
|
1990
1540
|
};
|
|
1991
1541
|
401: "Токен олдсонгүй";
|
|
1542
|
+
403: "Хандах эрхгүй байна.";
|
|
1992
1543
|
422: {
|
|
1993
1544
|
type: "validation";
|
|
1994
1545
|
on: string;
|
|
@@ -2059,6 +1610,7 @@ export declare const app: Elysia<"", {
|
|
|
2059
1610
|
branchCount: number;
|
|
2060
1611
|
};
|
|
2061
1612
|
401: "Токен олдсонгүй";
|
|
1613
|
+
403: "Хандах эрхгүй байна.";
|
|
2062
1614
|
422: {
|
|
2063
1615
|
type: "validation";
|
|
2064
1616
|
on: string;
|
|
@@ -2132,6 +1684,7 @@ export declare const app: Elysia<"", {
|
|
|
2132
1684
|
branchCount: number;
|
|
2133
1685
|
};
|
|
2134
1686
|
401: "Токен олдсонгүй";
|
|
1687
|
+
403: "Хандах эрхгүй байна.";
|
|
2135
1688
|
404: string;
|
|
2136
1689
|
422: {
|
|
2137
1690
|
type: "validation";
|
|
@@ -2158,6 +1711,7 @@ export declare const app: Elysia<"", {
|
|
|
2158
1711
|
headers: {};
|
|
2159
1712
|
response: {
|
|
2160
1713
|
401: "Токен олдсонгүй";
|
|
1714
|
+
403: "Хандах эрхгүй байна.";
|
|
2161
1715
|
404: string;
|
|
2162
1716
|
422: {
|
|
2163
1717
|
type: "validation";
|
|
@@ -2240,6 +1794,7 @@ export declare const app: Elysia<"", {
|
|
|
2240
1794
|
}, "totalCount">[];
|
|
2241
1795
|
};
|
|
2242
1796
|
401: "Токен олдсонгүй";
|
|
1797
|
+
403: "Хандах эрхгүй байна.";
|
|
2243
1798
|
422: {
|
|
2244
1799
|
type: "validation";
|
|
2245
1800
|
on: string;
|
|
@@ -2345,6 +1900,7 @@ export declare const app: Elysia<"", {
|
|
|
2345
1900
|
merchantId: string;
|
|
2346
1901
|
};
|
|
2347
1902
|
401: "Токен олдсонгүй";
|
|
1903
|
+
403: "Хандах эрхгүй байна.";
|
|
2348
1904
|
422: {
|
|
2349
1905
|
type: "validation";
|
|
2350
1906
|
on: string;
|
|
@@ -2410,6 +1966,7 @@ export declare const app: Elysia<"", {
|
|
|
2410
1966
|
merchantId: string;
|
|
2411
1967
|
};
|
|
2412
1968
|
401: "Токен олдсонгүй";
|
|
1969
|
+
403: "Хандах эрхгүй байна.";
|
|
2413
1970
|
404: string;
|
|
2414
1971
|
422: {
|
|
2415
1972
|
type: "validation";
|
|
@@ -2436,6 +1993,7 @@ export declare const app: Elysia<"", {
|
|
|
2436
1993
|
headers: {};
|
|
2437
1994
|
response: {
|
|
2438
1995
|
401: "Токен олдсонгүй";
|
|
1996
|
+
403: "Хандах эрхгүй байна.";
|
|
2439
1997
|
404: string;
|
|
2440
1998
|
422: {
|
|
2441
1999
|
type: "validation";
|
|
@@ -3020,6 +2578,7 @@ export declare const app: Elysia<"", {
|
|
|
3020
2578
|
bank: string;
|
|
3021
2579
|
};
|
|
3022
2580
|
401: "Токен олдсонгүй";
|
|
2581
|
+
403: "Хандах эрхгүй байна.";
|
|
3023
2582
|
422: {
|
|
3024
2583
|
type: "validation";
|
|
3025
2584
|
on: string;
|
|
@@ -3061,6 +2620,7 @@ export declare const app: Elysia<"", {
|
|
|
3061
2620
|
bank: string;
|
|
3062
2621
|
};
|
|
3063
2622
|
401: "Токен олдсонгүй";
|
|
2623
|
+
403: "Хандах эрхгүй байна.";
|
|
3064
2624
|
404: string;
|
|
3065
2625
|
422: {
|
|
3066
2626
|
type: "validation";
|
|
@@ -3087,6 +2647,7 @@ export declare const app: Elysia<"", {
|
|
|
3087
2647
|
headers: {};
|
|
3088
2648
|
response: {
|
|
3089
2649
|
401: "Токен олдсонгүй";
|
|
2650
|
+
403: "Хандах эрхгүй байна.";
|
|
3090
2651
|
404: string;
|
|
3091
2652
|
422: {
|
|
3092
2653
|
type: "validation";
|
|
@@ -3190,6 +2751,7 @@ export declare const app: Elysia<"", {
|
|
|
3190
2751
|
note: string | null;
|
|
3191
2752
|
};
|
|
3192
2753
|
401: "Токен олдсонгүй";
|
|
2754
|
+
403: "Хандах эрхгүй байна.";
|
|
3193
2755
|
422: {
|
|
3194
2756
|
type: "validation";
|
|
3195
2757
|
on: string;
|
|
@@ -3235,6 +2797,7 @@ export declare const app: Elysia<"", {
|
|
|
3235
2797
|
oldId: number | null;
|
|
3236
2798
|
};
|
|
3237
2799
|
401: "Токен олдсонгүй";
|
|
2800
|
+
403: "Хандах эрхгүй байна.";
|
|
3238
2801
|
404: "Төлбөрийн төлөвлөгөө олдсонгүй.";
|
|
3239
2802
|
422: {
|
|
3240
2803
|
type: "validation";
|
|
@@ -3261,6 +2824,7 @@ export declare const app: Elysia<"", {
|
|
|
3261
2824
|
headers: {};
|
|
3262
2825
|
response: {
|
|
3263
2826
|
401: "Токен олдсонгүй";
|
|
2827
|
+
403: "Хандах эрхгүй байна.";
|
|
3264
2828
|
422: {
|
|
3265
2829
|
type: "validation";
|
|
3266
2830
|
on: string;
|
|
@@ -3448,7 +3012,7 @@ export declare const app: Elysia<"", {
|
|
|
3448
3012
|
oldId: number | null;
|
|
3449
3013
|
};
|
|
3450
3014
|
401: "Токен олдсонгүй";
|
|
3451
|
-
403: "Төлбөр засах эрхгүй байна.";
|
|
3015
|
+
403: "Хандах эрхгүй байна." | "Төлбөр засах эрхгүй байна.";
|
|
3452
3016
|
404: "Төлбөрийн баримт олдсонгүй." | "Төлбөрийн төлбөр олдсонгүй.";
|
|
3453
3017
|
422: {
|
|
3454
3018
|
type: "validation";
|
|
@@ -3475,7 +3039,7 @@ export declare const app: Elysia<"", {
|
|
|
3475
3039
|
headers: {};
|
|
3476
3040
|
response: {
|
|
3477
3041
|
401: "Токен олдсонгүй";
|
|
3478
|
-
403: "Төлбөр устгах эрхгүй байна.";
|
|
3042
|
+
403: "Хандах эрхгүй байна." | "Төлбөр устгах эрхгүй байна.";
|
|
3479
3043
|
404: "Төлбөрийн баримт олдсонгүй." | "Төлбөрийн төлбөр олдсонгүй.";
|
|
3480
3044
|
422: {
|
|
3481
3045
|
type: "validation";
|
|
@@ -3589,7 +3153,7 @@ export declare const app: Elysia<"", {
|
|
|
3589
3153
|
dueAt: string;
|
|
3590
3154
|
};
|
|
3591
3155
|
401: "Токен олдсонгүй";
|
|
3592
|
-
403: "Төлбөрийн баримт үүсгэх эрхгүй байна.";
|
|
3156
|
+
403: "Хандах эрхгүй байна." | "Төлбөрийн баримт үүсгэх эрхгүй байна.";
|
|
3593
3157
|
404: "Төлбөрийн төлөвлөгөө олдсонгүй.";
|
|
3594
3158
|
422: {
|
|
3595
3159
|
type: "validation";
|
|
@@ -3644,7 +3208,7 @@ export declare const app: Elysia<"", {
|
|
|
3644
3208
|
dueAt: string;
|
|
3645
3209
|
};
|
|
3646
3210
|
401: "Токен олдсонгүй";
|
|
3647
|
-
403: "Төлбөрийн баримт үүсгэх эрхгүй байна.";
|
|
3211
|
+
403: "Хандах эрхгүй байна." | "Төлбөрийн баримт үүсгэх эрхгүй байна.";
|
|
3648
3212
|
422: {
|
|
3649
3213
|
type: "validation";
|
|
3650
3214
|
on: string;
|
|
@@ -3700,6 +3264,7 @@ export declare const app: Elysia<"", {
|
|
|
3700
3264
|
oldId: number | null;
|
|
3701
3265
|
};
|
|
3702
3266
|
401: "Токен олдсонгүй";
|
|
3267
|
+
403: "Хандах эрхгүй байна.";
|
|
3703
3268
|
404: "Төлбөрийн баримт олдсонгүй.";
|
|
3704
3269
|
422: {
|
|
3705
3270
|
type: "validation";
|
|
@@ -3726,6 +3291,7 @@ export declare const app: Elysia<"", {
|
|
|
3726
3291
|
headers: {};
|
|
3727
3292
|
response: {
|
|
3728
3293
|
401: "Токен олдсонгүй";
|
|
3294
|
+
403: "Хандах эрхгүй байна.";
|
|
3729
3295
|
422: {
|
|
3730
3296
|
type: "validation";
|
|
3731
3297
|
on: string;
|
|
@@ -3758,6 +3324,7 @@ export declare const app: Elysia<"", {
|
|
|
3758
3324
|
requiresAdmin?: boolean;
|
|
3759
3325
|
}[];
|
|
3760
3326
|
401: "Токен олдсонгүй";
|
|
3327
|
+
403: "Хандах эрхгүй байна.";
|
|
3761
3328
|
};
|
|
3762
3329
|
};
|
|
3763
3330
|
};
|
|
@@ -3773,6 +3340,7 @@ export declare const app: Elysia<"", {
|
|
|
3773
3340
|
headers: {};
|
|
3774
3341
|
response: {
|
|
3775
3342
|
401: "Токен олдсонгүй";
|
|
3343
|
+
403: "Хандах эрхгүй байна.";
|
|
3776
3344
|
422: {
|
|
3777
3345
|
type: "validation";
|
|
3778
3346
|
on: string;
|
|
@@ -3818,6 +3386,7 @@ export declare const app: Elysia<"", {
|
|
|
3818
3386
|
}[];
|
|
3819
3387
|
};
|
|
3820
3388
|
401: "Токен олдсонгүй";
|
|
3389
|
+
403: "Хандах эрхгүй байна.";
|
|
3821
3390
|
422: {
|
|
3822
3391
|
type: "validation";
|
|
3823
3392
|
on: string;
|
|
@@ -3854,6 +3423,7 @@ export declare const app: Elysia<"", {
|
|
|
3854
3423
|
permissions: string[];
|
|
3855
3424
|
};
|
|
3856
3425
|
401: "Токен олдсонгүй";
|
|
3426
|
+
403: "Хандах эрхгүй байна.";
|
|
3857
3427
|
422: {
|
|
3858
3428
|
type: "validation";
|
|
3859
3429
|
on: string;
|
|
@@ -3893,6 +3463,7 @@ export declare const app: Elysia<"", {
|
|
|
3893
3463
|
permissions: string[];
|
|
3894
3464
|
};
|
|
3895
3465
|
401: "Токен олдсонгүй";
|
|
3466
|
+
403: "Хандах эрхгүй байна.";
|
|
3896
3467
|
404: string;
|
|
3897
3468
|
422: {
|
|
3898
3469
|
type: "validation";
|
|
@@ -3921,6 +3492,7 @@ export declare const app: Elysia<"", {
|
|
|
3921
3492
|
headers: unknown;
|
|
3922
3493
|
response: {
|
|
3923
3494
|
401: "Токен олдсонгүй";
|
|
3495
|
+
403: "Хандах эрхгүй байна.";
|
|
3924
3496
|
404: string;
|
|
3925
3497
|
422: {
|
|
3926
3498
|
type: "validation";
|
|
@@ -3977,6 +3549,7 @@ export declare const app: Elysia<"", {
|
|
|
3977
3549
|
}[];
|
|
3978
3550
|
};
|
|
3979
3551
|
401: "Токен олдсонгүй";
|
|
3552
|
+
403: "Хандах эрхгүй байна.";
|
|
3980
3553
|
422: {
|
|
3981
3554
|
type: "validation";
|
|
3982
3555
|
on: string;
|
|
@@ -4056,6 +3629,7 @@ export declare const app: Elysia<"", {
|
|
|
4056
3629
|
};
|
|
4057
3630
|
400: string;
|
|
4058
3631
|
401: "Токен олдсонгүй";
|
|
3632
|
+
403: "Хандах эрхгүй байна.";
|
|
4059
3633
|
422: {
|
|
4060
3634
|
type: "validation";
|
|
4061
3635
|
on: string;
|
|
@@ -4095,6 +3669,7 @@ export declare const app: Elysia<"", {
|
|
|
4095
3669
|
headers: {};
|
|
4096
3670
|
response: {
|
|
4097
3671
|
401: "Токен олдсонгүй";
|
|
3672
|
+
403: "Хандах эрхгүй байна.";
|
|
4098
3673
|
422: {
|
|
4099
3674
|
type: "validation";
|
|
4100
3675
|
on: string;
|
|
@@ -4962,6 +4537,8 @@ export declare const app: Elysia<"", {
|
|
|
4962
4537
|
oldId: number | null;
|
|
4963
4538
|
};
|
|
4964
4539
|
}[];
|
|
4540
|
+
401: "Токен олдсонгүй";
|
|
4541
|
+
403: "Хандах эрхгүй байна.";
|
|
4965
4542
|
};
|
|
4966
4543
|
};
|
|
4967
4544
|
};
|
|
@@ -5021,6 +4598,8 @@ export declare const app: Elysia<"", {
|
|
|
5021
4598
|
expiresIn: number | null;
|
|
5022
4599
|
refreshExpiresIn: number | null;
|
|
5023
4600
|
};
|
|
4601
|
+
401: "Токен олдсонгүй";
|
|
4602
|
+
403: "Хандах эрхгүй байна.";
|
|
5024
4603
|
422: {
|
|
5025
4604
|
type: "validation";
|
|
5026
4605
|
on: string;
|
|
@@ -5046,6 +4625,8 @@ export declare const app: Elysia<"", {
|
|
|
5046
4625
|
query: unknown;
|
|
5047
4626
|
headers: unknown;
|
|
5048
4627
|
response: {
|
|
4628
|
+
401: "Токен олдсонгүй";
|
|
4629
|
+
403: "Хандах эрхгүй байна.";
|
|
5049
4630
|
422: {
|
|
5050
4631
|
type: "validation";
|
|
5051
4632
|
on: string;
|
|
@@ -7748,6 +7329,7 @@ export declare const app: Elysia<"", {
|
|
|
7748
7329
|
}[];
|
|
7749
7330
|
};
|
|
7750
7331
|
401: "Токен олдсонгүй";
|
|
7332
|
+
403: "Хандах эрхгүй байна.";
|
|
7751
7333
|
422: {
|
|
7752
7334
|
type: "validation";
|
|
7753
7335
|
on: string;
|
|
@@ -8539,6 +8121,8 @@ export declare const app: Elysia<"", {
|
|
|
8539
8121
|
phone: string | null;
|
|
8540
8122
|
address: string | null;
|
|
8541
8123
|
};
|
|
8124
|
+
401: "Токен олдсонгүй";
|
|
8125
|
+
403: "Хандах эрхгүй байна.";
|
|
8542
8126
|
422: {
|
|
8543
8127
|
type: "validation";
|
|
8544
8128
|
on: string;
|
|
@@ -8579,6 +8163,8 @@ export declare const app: Elysia<"", {
|
|
|
8579
8163
|
deletedAt: string | null;
|
|
8580
8164
|
oldId: number | null;
|
|
8581
8165
|
};
|
|
8166
|
+
401: "Токен олдсонгүй";
|
|
8167
|
+
403: "Хандах эрхгүй байна.";
|
|
8582
8168
|
404: "Нийлүүлэгч олдсонгүй.";
|
|
8583
8169
|
422: {
|
|
8584
8170
|
type: "validation";
|
|
@@ -8604,6 +8190,8 @@ export declare const app: Elysia<"", {
|
|
|
8604
8190
|
query: unknown;
|
|
8605
8191
|
headers: unknown;
|
|
8606
8192
|
response: {
|
|
8193
|
+
401: "Токен олдсонгүй";
|
|
8194
|
+
403: "Хандах эрхгүй байна.";
|
|
8607
8195
|
422: {
|
|
8608
8196
|
type: "validation";
|
|
8609
8197
|
on: string;
|
|
@@ -8717,6 +8305,7 @@ export declare const app: Elysia<"", {
|
|
|
8717
8305
|
imagePath: string | null;
|
|
8718
8306
|
};
|
|
8719
8307
|
401: "Токен олдсонгүй";
|
|
8308
|
+
403: "Хандах эрхгүй байна.";
|
|
8720
8309
|
422: {
|
|
8721
8310
|
type: "validation";
|
|
8722
8311
|
on: string;
|
|
@@ -8764,6 +8353,7 @@ export declare const app: Elysia<"", {
|
|
|
8764
8353
|
oldId: number | null;
|
|
8765
8354
|
};
|
|
8766
8355
|
401: "Токен олдсонгүй";
|
|
8356
|
+
403: "Хандах эрхгүй байна.";
|
|
8767
8357
|
404: "Vehicle kind not found";
|
|
8768
8358
|
422: {
|
|
8769
8359
|
type: "validation";
|
|
@@ -8846,6 +8436,7 @@ export declare const app: Elysia<"", {
|
|
|
8846
8436
|
description: string | null;
|
|
8847
8437
|
};
|
|
8848
8438
|
401: "Токен олдсонгүй";
|
|
8439
|
+
403: "Хандах эрхгүй байна.";
|
|
8849
8440
|
422: {
|
|
8850
8441
|
type: "validation";
|
|
8851
8442
|
on: string;
|
|
@@ -8883,6 +8474,7 @@ export declare const app: Elysia<"", {
|
|
|
8883
8474
|
oldId: number | null;
|
|
8884
8475
|
};
|
|
8885
8476
|
401: "Токен олдсонгүй";
|
|
8477
|
+
403: "Хандах эрхгүй байна.";
|
|
8886
8478
|
404: "Бүтээгдэхүүний ангилал олдсонгүй.";
|
|
8887
8479
|
422: {
|
|
8888
8480
|
type: "validation";
|
|
@@ -8909,6 +8501,7 @@ export declare const app: Elysia<"", {
|
|
|
8909
8501
|
headers: unknown;
|
|
8910
8502
|
response: {
|
|
8911
8503
|
401: "Токен олдсонгүй";
|
|
8504
|
+
403: "Хандах эрхгүй байна.";
|
|
8912
8505
|
422: {
|
|
8913
8506
|
type: "validation";
|
|
8914
8507
|
on: string;
|
|
@@ -9003,6 +8596,7 @@ export declare const app: Elysia<"", {
|
|
|
9003
8596
|
productCategoryId: string;
|
|
9004
8597
|
};
|
|
9005
8598
|
401: "Токен олдсонгүй";
|
|
8599
|
+
403: "Хандах эрхгүй байна.";
|
|
9006
8600
|
422: {
|
|
9007
8601
|
type: "validation";
|
|
9008
8602
|
on: string;
|
|
@@ -9042,6 +8636,7 @@ export declare const app: Elysia<"", {
|
|
|
9042
8636
|
oldId: number | null;
|
|
9043
8637
|
};
|
|
9044
8638
|
401: "Токен олдсонгүй";
|
|
8639
|
+
403: "Хандах эрхгүй байна.";
|
|
9045
8640
|
404: "Бүтээгдэхүүний төрөл олдсонгүй.";
|
|
9046
8641
|
422: {
|
|
9047
8642
|
type: "validation";
|
|
@@ -9068,6 +8663,7 @@ export declare const app: Elysia<"", {
|
|
|
9068
8663
|
headers: unknown;
|
|
9069
8664
|
response: {
|
|
9070
8665
|
401: "Токен олдсонгүй";
|
|
8666
|
+
403: "Хандах эрхгүй байна.";
|
|
9071
8667
|
422: {
|
|
9072
8668
|
type: "validation";
|
|
9073
8669
|
on: string;
|
|
@@ -9173,6 +8769,7 @@ export declare const app: Elysia<"", {
|
|
|
9173
8769
|
relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
|
|
9174
8770
|
};
|
|
9175
8771
|
401: "Токен олдсонгүй";
|
|
8772
|
+
403: "Хандах эрхгүй байна.";
|
|
9176
8773
|
422: {
|
|
9177
8774
|
type: "validation";
|
|
9178
8775
|
on: string;
|
|
@@ -9212,6 +8809,7 @@ export declare const app: Elysia<"", {
|
|
|
9212
8809
|
oldId: number | null;
|
|
9213
8810
|
};
|
|
9214
8811
|
401: "Токен олдсонгүй";
|
|
8812
|
+
403: "Хандах эрхгүй байна.";
|
|
9215
8813
|
404: "Бүтээгдэхүүний холбоос олдсонгүй.";
|
|
9216
8814
|
422: {
|
|
9217
8815
|
type: "validation";
|
|
@@ -9238,6 +8836,7 @@ export declare const app: Elysia<"", {
|
|
|
9238
8836
|
headers: unknown;
|
|
9239
8837
|
response: {
|
|
9240
8838
|
401: "Токен олдсонгүй";
|
|
8839
|
+
403: "Хандах эрхгүй байна.";
|
|
9241
8840
|
422: {
|
|
9242
8841
|
type: "validation";
|
|
9243
8842
|
on: string;
|
|
@@ -9293,6 +8892,7 @@ export declare const app: Elysia<"", {
|
|
|
9293
8892
|
}[];
|
|
9294
8893
|
};
|
|
9295
8894
|
401: "Токен олдсонгүй";
|
|
8895
|
+
403: "Хандах эрхгүй байна.";
|
|
9296
8896
|
422: {
|
|
9297
8897
|
type: "validation";
|
|
9298
8898
|
on: string;
|
|
@@ -9318,6 +8918,8 @@ export declare const app: Elysia<"", {
|
|
|
9318
8918
|
query: unknown;
|
|
9319
8919
|
headers: unknown;
|
|
9320
8920
|
response: {
|
|
8921
|
+
401: "Токен олдсонгүй";
|
|
8922
|
+
403: "Хандах эрхгүй байна.";
|
|
9321
8923
|
422: {
|
|
9322
8924
|
type: "validation";
|
|
9323
8925
|
on: string;
|
|
@@ -9346,6 +8948,8 @@ export declare const app: Elysia<"", {
|
|
|
9346
8948
|
query: unknown;
|
|
9347
8949
|
headers: unknown;
|
|
9348
8950
|
response: {
|
|
8951
|
+
401: "Токен олдсонгүй";
|
|
8952
|
+
403: "Хандах эрхгүй байна.";
|
|
9349
8953
|
422: {
|
|
9350
8954
|
type: "validation";
|
|
9351
8955
|
on: string;
|
|
@@ -9370,6 +8974,8 @@ export declare const app: Elysia<"", {
|
|
|
9370
8974
|
query: unknown;
|
|
9371
8975
|
headers: unknown;
|
|
9372
8976
|
response: {
|
|
8977
|
+
401: "Токен олдсонгүй";
|
|
8978
|
+
403: "Хандах эрхгүй байна.";
|
|
9373
8979
|
422: {
|
|
9374
8980
|
type: "validation";
|
|
9375
8981
|
on: string;
|
|
@@ -9411,6 +9017,8 @@ export declare const app: Elysia<"", {
|
|
|
9411
9017
|
deletedAt: string | null;
|
|
9412
9018
|
oldId: number | null;
|
|
9413
9019
|
}[];
|
|
9020
|
+
401: "Токен олдсонгүй";
|
|
9021
|
+
403: "Хандах эрхгүй байна.";
|
|
9414
9022
|
422: {
|
|
9415
9023
|
type: "validation";
|
|
9416
9024
|
on: string;
|
|
@@ -9448,6 +9056,8 @@ export declare const app: Elysia<"", {
|
|
|
9448
9056
|
query: unknown;
|
|
9449
9057
|
headers: unknown;
|
|
9450
9058
|
response: {
|
|
9059
|
+
401: "Токен олдсонгүй";
|
|
9060
|
+
403: "Хандах эрхгүй байна.";
|
|
9451
9061
|
422: {
|
|
9452
9062
|
type: "validation";
|
|
9453
9063
|
on: string;
|
|
@@ -9482,6 +9092,8 @@ export declare const app: Elysia<"", {
|
|
|
9482
9092
|
query: unknown;
|
|
9483
9093
|
headers: unknown;
|
|
9484
9094
|
response: {
|
|
9095
|
+
401: "Токен олдсонгүй";
|
|
9096
|
+
403: "Хандах эрхгүй байна.";
|
|
9485
9097
|
422: {
|
|
9486
9098
|
type: "validation";
|
|
9487
9099
|
on: string;
|
|
@@ -9506,6 +9118,8 @@ export declare const app: Elysia<"", {
|
|
|
9506
9118
|
query: unknown;
|
|
9507
9119
|
headers: unknown;
|
|
9508
9120
|
response: {
|
|
9121
|
+
401: "Токен олдсонгүй";
|
|
9122
|
+
403: "Хандах эрхгүй байна.";
|
|
9509
9123
|
422: {
|
|
9510
9124
|
type: "validation";
|
|
9511
9125
|
on: string;
|
|
@@ -9677,6 +9291,8 @@ export declare const app: Elysia<"", {
|
|
|
9677
9291
|
oldId: number | null;
|
|
9678
9292
|
}, "totalCount">[];
|
|
9679
9293
|
};
|
|
9294
|
+
401: "Токен олдсонгүй";
|
|
9295
|
+
403: "Хандах эрхгүй байна.";
|
|
9680
9296
|
422: {
|
|
9681
9297
|
type: "validation";
|
|
9682
9298
|
on: string;
|
|
@@ -9705,6 +9321,8 @@ export declare const app: Elysia<"", {
|
|
|
9705
9321
|
headers: unknown;
|
|
9706
9322
|
response: {
|
|
9707
9323
|
200: string;
|
|
9324
|
+
401: "Токен олдсонгүй";
|
|
9325
|
+
403: "Хандах эрхгүй байна.";
|
|
9708
9326
|
422: {
|
|
9709
9327
|
type: "validation";
|
|
9710
9328
|
on: string;
|
|
@@ -9740,6 +9358,8 @@ export declare const app: Elysia<"", {
|
|
|
9740
9358
|
deletedAt: string | null;
|
|
9741
9359
|
oldId: number | null;
|
|
9742
9360
|
};
|
|
9361
|
+
401: "Токен олдсонгүй";
|
|
9362
|
+
403: "Хандах эрхгүй байна.";
|
|
9743
9363
|
404: "Үзлэгийн загвар олдсонгүй.";
|
|
9744
9364
|
422: {
|
|
9745
9365
|
type: "validation";
|
|
@@ -9772,6 +9392,8 @@ export declare const app: Elysia<"", {
|
|
|
9772
9392
|
query: unknown;
|
|
9773
9393
|
headers: unknown;
|
|
9774
9394
|
response: {
|
|
9395
|
+
401: "Токен олдсонгүй";
|
|
9396
|
+
403: "Хандах эрхгүй байна.";
|
|
9775
9397
|
404: "Үзлэгийн загвар олдсонгүй.";
|
|
9776
9398
|
422: {
|
|
9777
9399
|
type: "validation";
|
|
@@ -9797,6 +9419,8 @@ export declare const app: Elysia<"", {
|
|
|
9797
9419
|
query: unknown;
|
|
9798
9420
|
headers: unknown;
|
|
9799
9421
|
response: {
|
|
9422
|
+
401: "Токен олдсонгүй";
|
|
9423
|
+
403: "Хандах эрхгүй байна.";
|
|
9800
9424
|
422: {
|
|
9801
9425
|
type: "validation";
|
|
9802
9426
|
on: string;
|
|
@@ -9839,6 +9463,8 @@ export declare const app: Elysia<"", {
|
|
|
9839
9463
|
deletedAt: string | null;
|
|
9840
9464
|
oldId: number | null;
|
|
9841
9465
|
}[];
|
|
9466
|
+
401: "Токен олдсонгүй";
|
|
9467
|
+
403: "Хандах эрхгүй байна.";
|
|
9842
9468
|
422: {
|
|
9843
9469
|
type: "validation";
|
|
9844
9470
|
on: string;
|
|
@@ -9877,6 +9503,8 @@ export declare const app: Elysia<"", {
|
|
|
9877
9503
|
query: unknown;
|
|
9878
9504
|
headers: unknown;
|
|
9879
9505
|
response: {
|
|
9506
|
+
401: "Токен олдсонгүй";
|
|
9507
|
+
403: "Хандах эрхгүй байна.";
|
|
9880
9508
|
422: {
|
|
9881
9509
|
type: "validation";
|
|
9882
9510
|
on: string;
|
|
@@ -9914,6 +9542,8 @@ export declare const app: Elysia<"", {
|
|
|
9914
9542
|
query: unknown;
|
|
9915
9543
|
headers: unknown;
|
|
9916
9544
|
response: {
|
|
9545
|
+
401: "Токен олдсонгүй";
|
|
9546
|
+
403: "Хандах эрхгүй байна.";
|
|
9917
9547
|
422: {
|
|
9918
9548
|
type: "validation";
|
|
9919
9549
|
on: string;
|
|
@@ -9940,6 +9570,8 @@ export declare const app: Elysia<"", {
|
|
|
9940
9570
|
query: unknown;
|
|
9941
9571
|
headers: unknown;
|
|
9942
9572
|
response: {
|
|
9573
|
+
401: "Токен олдсонгүй";
|
|
9574
|
+
403: "Хандах эрхгүй байна.";
|
|
9943
9575
|
422: {
|
|
9944
9576
|
type: "validation";
|
|
9945
9577
|
on: string;
|
|
@@ -10364,6 +9996,8 @@ export declare const app: Elysia<"", {
|
|
|
10364
9996
|
totalCount: number;
|
|
10365
9997
|
}, "totalCount">[];
|
|
10366
9998
|
};
|
|
9999
|
+
401: "Токен олдсонгүй";
|
|
10000
|
+
403: "Хандах эрхгүй байна.";
|
|
10367
10001
|
422: {
|
|
10368
10002
|
type: "validation";
|
|
10369
10003
|
on: string;
|
|
@@ -10390,6 +10024,8 @@ export declare const app: Elysia<"", {
|
|
|
10390
10024
|
query: unknown;
|
|
10391
10025
|
headers: unknown;
|
|
10392
10026
|
response: {
|
|
10027
|
+
401: "Токен олдсонгүй";
|
|
10028
|
+
403: "Хандах эрхгүй байна.";
|
|
10393
10029
|
422: {
|
|
10394
10030
|
type: "validation";
|
|
10395
10031
|
on: string;
|
|
@@ -10419,6 +10055,8 @@ export declare const app: Elysia<"", {
|
|
|
10419
10055
|
query: unknown;
|
|
10420
10056
|
headers: unknown;
|
|
10421
10057
|
response: {
|
|
10058
|
+
401: "Токен олдсонгүй";
|
|
10059
|
+
403: "Хандах эрхгүй байна.";
|
|
10422
10060
|
422: {
|
|
10423
10061
|
type: "validation";
|
|
10424
10062
|
on: string;
|
|
@@ -10443,6 +10081,8 @@ export declare const app: Elysia<"", {
|
|
|
10443
10081
|
query: unknown;
|
|
10444
10082
|
headers: unknown;
|
|
10445
10083
|
response: {
|
|
10084
|
+
401: "Токен олдсонгүй";
|
|
10085
|
+
403: "Хандах эрхгүй байна.";
|
|
10446
10086
|
422: {
|
|
10447
10087
|
type: "validation";
|
|
10448
10088
|
on: string;
|
|
@@ -10533,6 +10173,8 @@ export declare const app: Elysia<"", {
|
|
|
10533
10173
|
totalCount: number;
|
|
10534
10174
|
}, "totalCount">[];
|
|
10535
10175
|
};
|
|
10176
|
+
401: "Токен олдсонгүй";
|
|
10177
|
+
403: "Хандах эрхгүй байна.";
|
|
10536
10178
|
422: {
|
|
10537
10179
|
type: "validation";
|
|
10538
10180
|
on: string;
|
|
@@ -10562,6 +10204,8 @@ export declare const app: Elysia<"", {
|
|
|
10562
10204
|
query: unknown;
|
|
10563
10205
|
headers: unknown;
|
|
10564
10206
|
response: {
|
|
10207
|
+
401: "Токен олдсонгүй";
|
|
10208
|
+
403: "Хандах эрхгүй байна.";
|
|
10565
10209
|
422: {
|
|
10566
10210
|
type: "validation";
|
|
10567
10211
|
on: string;
|
|
@@ -10594,6 +10238,8 @@ export declare const app: Elysia<"", {
|
|
|
10594
10238
|
query: unknown;
|
|
10595
10239
|
headers: unknown;
|
|
10596
10240
|
response: {
|
|
10241
|
+
401: "Токен олдсонгүй";
|
|
10242
|
+
403: "Хандах эрхгүй байна.";
|
|
10597
10243
|
422: {
|
|
10598
10244
|
type: "validation";
|
|
10599
10245
|
on: string;
|
|
@@ -10618,6 +10264,8 @@ export declare const app: Elysia<"", {
|
|
|
10618
10264
|
query: unknown;
|
|
10619
10265
|
headers: unknown;
|
|
10620
10266
|
response: {
|
|
10267
|
+
401: "Токен олдсонгүй";
|
|
10268
|
+
403: "Хандах эрхгүй байна.";
|
|
10621
10269
|
422: {
|
|
10622
10270
|
type: "validation";
|
|
10623
10271
|
on: string;
|
|
@@ -10692,13 +10340,12 @@ export declare const app: Elysia<"", {
|
|
|
10692
10340
|
machineId: string;
|
|
10693
10341
|
pmTemplateId: string;
|
|
10694
10342
|
pmPlanId: string;
|
|
10695
|
-
employeeCreatedId: string;
|
|
10696
|
-
userCreatedId: string;
|
|
10697
10343
|
};
|
|
10698
10344
|
params: {};
|
|
10699
10345
|
query: unknown;
|
|
10700
10346
|
headers: unknown;
|
|
10701
10347
|
response: {
|
|
10348
|
+
400: "Ажилтны мэдээлэл шаардлагатай.";
|
|
10702
10349
|
401: "Токен олдсонгүй";
|
|
10703
10350
|
422: {
|
|
10704
10351
|
type: "validation";
|
|
@@ -11022,6 +10669,8 @@ export declare const app: Elysia<"", {
|
|
|
11022
10669
|
oldId: number | null;
|
|
11023
10670
|
}, "totalCount">[];
|
|
11024
10671
|
};
|
|
10672
|
+
401: "Токен олдсонгүй";
|
|
10673
|
+
403: "Хандах эрхгүй байна.";
|
|
11025
10674
|
422: {
|
|
11026
10675
|
type: "validation";
|
|
11027
10676
|
on: string;
|
|
@@ -11038,20 +10687,17 @@ export declare const app: Elysia<"", {
|
|
|
11038
10687
|
plan: {
|
|
11039
10688
|
post: {
|
|
11040
10689
|
body: {
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
dateStart?: Date | null | undefined;
|
|
11044
|
-
dateEnd?: Date | null | undefined;
|
|
11045
|
-
name: string;
|
|
11046
|
-
companyId: string;
|
|
10690
|
+
machineId: string;
|
|
10691
|
+
pmTemplateId: string;
|
|
11047
10692
|
};
|
|
11048
10693
|
params: {};
|
|
11049
10694
|
query: unknown;
|
|
11050
10695
|
headers: unknown;
|
|
11051
10696
|
response: {
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
10697
|
+
400: "Ажилтны мэдээлэл шаардлагатай." | "Машины төрөл хэрэглэгчийн машин төрөлтэй тэнцүү байхгүй.";
|
|
10698
|
+
401: "Токен олдсонгүй";
|
|
10699
|
+
403: "Хандах эрхгүй байна.";
|
|
10700
|
+
404: "Pm Template олдсонгүй." | "Машин олдсонгүй.";
|
|
11055
10701
|
422: {
|
|
11056
10702
|
type: "validation";
|
|
11057
10703
|
on: string;
|
|
@@ -11082,6 +10728,8 @@ export declare const app: Elysia<"", {
|
|
|
11082
10728
|
query: unknown;
|
|
11083
10729
|
headers: unknown;
|
|
11084
10730
|
response: {
|
|
10731
|
+
401: "Токен олдсонгүй";
|
|
10732
|
+
403: "Хандах эрхгүй байна.";
|
|
11085
10733
|
422: {
|
|
11086
10734
|
type: "validation";
|
|
11087
10735
|
on: string;
|
|
@@ -11106,6 +10754,8 @@ export declare const app: Elysia<"", {
|
|
|
11106
10754
|
query: unknown;
|
|
11107
10755
|
headers: unknown;
|
|
11108
10756
|
response: {
|
|
10757
|
+
401: "Токен олдсонгүй";
|
|
10758
|
+
403: "Хандах эрхгүй байна.";
|
|
11109
10759
|
422: {
|
|
11110
10760
|
type: "validation";
|
|
11111
10761
|
on: string;
|
|
@@ -11876,6 +11526,8 @@ export declare const app: Elysia<"", {
|
|
|
11876
11526
|
oldId: number | null;
|
|
11877
11527
|
}, "totalCount">[];
|
|
11878
11528
|
};
|
|
11529
|
+
401: "Токен олдсонгүй";
|
|
11530
|
+
403: "Хандах эрхгүй байна.";
|
|
11879
11531
|
422: {
|
|
11880
11532
|
type: "validation";
|
|
11881
11533
|
on: string;
|
|
@@ -11919,6 +11571,8 @@ export declare const app: Elysia<"", {
|
|
|
11919
11571
|
isBaseUnit: boolean;
|
|
11920
11572
|
baseFactor: number | null;
|
|
11921
11573
|
};
|
|
11574
|
+
401: "Токен олдсонгүй";
|
|
11575
|
+
403: "Хандах эрхгүй байна.";
|
|
11922
11576
|
422: {
|
|
11923
11577
|
type: "validation";
|
|
11924
11578
|
on: string;
|
|
@@ -11965,6 +11619,8 @@ export declare const app: Elysia<"", {
|
|
|
11965
11619
|
deletedAt: string | null;
|
|
11966
11620
|
oldId: number | null;
|
|
11967
11621
|
};
|
|
11622
|
+
401: "Токен олдсонгүй";
|
|
11623
|
+
403: "Хандах эрхгүй байна.";
|
|
11968
11624
|
422: {
|
|
11969
11625
|
type: "validation";
|
|
11970
11626
|
on: string;
|
|
@@ -11989,6 +11645,8 @@ export declare const app: Elysia<"", {
|
|
|
11989
11645
|
query: unknown;
|
|
11990
11646
|
headers: unknown;
|
|
11991
11647
|
response: {
|
|
11648
|
+
401: "Токен олдсонгүй";
|
|
11649
|
+
403: "Хандах эрхгүй байна.";
|
|
11992
11650
|
422: {
|
|
11993
11651
|
type: "validation";
|
|
11994
11652
|
on: string;
|