autosync_backend2 1.2.30 → 1.2.31
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 +1312 -252
- package/dist/index.js +275 -10
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -13,15 +13,44 @@ export declare const app: Elysia<"", {
|
|
|
13
13
|
}, {
|
|
14
14
|
typebox: {};
|
|
15
15
|
error: {};
|
|
16
|
+
} & {
|
|
17
|
+
typebox: {};
|
|
18
|
+
error: {};
|
|
19
|
+
} & {
|
|
20
|
+
typebox: {};
|
|
21
|
+
error: {};
|
|
16
22
|
}, {
|
|
17
23
|
schema: {};
|
|
18
24
|
standaloneSchema: {};
|
|
19
|
-
macro: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
macro: {};
|
|
26
|
+
macroFn: {};
|
|
27
|
+
parser: {};
|
|
28
|
+
response: {};
|
|
29
|
+
} & {
|
|
30
|
+
schema: {};
|
|
31
|
+
standaloneSchema: {};
|
|
32
|
+
macro: {};
|
|
33
|
+
macroFn: {};
|
|
34
|
+
parser: {};
|
|
35
|
+
response: {};
|
|
36
|
+
} & {
|
|
37
|
+
schema: {};
|
|
38
|
+
standaloneSchema: {};
|
|
39
|
+
macro: {};
|
|
40
|
+
macroFn: {};
|
|
41
|
+
parser: {};
|
|
42
|
+
response: {};
|
|
43
|
+
} & {
|
|
44
|
+
schema: {};
|
|
45
|
+
standaloneSchema: {};
|
|
46
|
+
macro: {};
|
|
47
|
+
macroFn: {};
|
|
48
|
+
parser: {};
|
|
49
|
+
response: {};
|
|
50
|
+
} & {
|
|
51
|
+
schema: {};
|
|
52
|
+
standaloneSchema: {};
|
|
53
|
+
macro: Partial<import("elysia").MacroToProperty<{
|
|
25
54
|
readonly auth: {
|
|
26
55
|
readonly resolve: ({ request: { headers } }: {
|
|
27
56
|
body: unknown;
|
|
@@ -41,7 +70,7 @@ export declare const app: Elysia<"", {
|
|
|
41
70
|
route: string;
|
|
42
71
|
request: Request;
|
|
43
72
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 |
|
|
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 ? {
|
|
45
74
|
readonly 100: "Continue";
|
|
46
75
|
readonly 101: "Switching Protocols";
|
|
47
76
|
readonly 102: "Processing";
|
|
@@ -199,7 +228,7 @@ export declare const app: Elysia<"", {
|
|
|
199
228
|
route: string;
|
|
200
229
|
request: Request;
|
|
201
230
|
store: {};
|
|
202
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 |
|
|
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 ? {
|
|
203
232
|
readonly 100: "Continue";
|
|
204
233
|
readonly 101: "Switching Protocols";
|
|
205
234
|
readonly 102: "Processing";
|
|
@@ -357,7 +386,7 @@ export declare const app: Elysia<"", {
|
|
|
357
386
|
route: string;
|
|
358
387
|
request: Request;
|
|
359
388
|
store: {};
|
|
360
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 |
|
|
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 ? {
|
|
361
390
|
readonly 100: "Continue";
|
|
362
391
|
readonly 101: "Switching Protocols";
|
|
363
392
|
readonly 102: "Processing";
|
|
@@ -497,72 +526,549 @@ export declare const app: Elysia<"", {
|
|
|
497
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")[];
|
|
498
527
|
}>;
|
|
499
528
|
};
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
body: unknown;
|
|
507
|
-
params: {};
|
|
508
|
-
query: unknown;
|
|
509
|
-
headers: unknown;
|
|
510
|
-
response: {
|
|
511
|
-
200: string;
|
|
512
|
-
};
|
|
513
|
-
};
|
|
514
|
-
};
|
|
515
|
-
} & {
|
|
516
|
-
api: {
|
|
517
|
-
image: {};
|
|
518
|
-
} & {
|
|
519
|
-
image: {
|
|
520
|
-
post: {
|
|
521
|
-
body: {
|
|
522
|
-
image: File;
|
|
523
|
-
folder: string;
|
|
524
|
-
};
|
|
529
|
+
}>>;
|
|
530
|
+
macroFn: {
|
|
531
|
+
readonly auth: {
|
|
532
|
+
readonly resolve: ({ request: { headers } }: {
|
|
533
|
+
body: unknown;
|
|
534
|
+
query: Record<string, string>;
|
|
525
535
|
params: {};
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
on: string;
|
|
536
|
-
summary?: string;
|
|
537
|
-
message?: string;
|
|
538
|
-
found?: unknown;
|
|
539
|
-
property?: string;
|
|
540
|
-
expected?: string;
|
|
541
|
-
};
|
|
536
|
+
headers: Record<string, string | undefined>;
|
|
537
|
+
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
538
|
+
server: import("elysia/dist/universal/server").Server | null;
|
|
539
|
+
redirect: import("elysia").redirect;
|
|
540
|
+
set: {
|
|
541
|
+
headers: import("elysia").HTTPHeaders;
|
|
542
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
543
|
+
redirect?: string;
|
|
544
|
+
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
542
545
|
};
|
|
543
|
-
|
|
546
|
+
path: string;
|
|
547
|
+
route: string;
|
|
548
|
+
request: Request;
|
|
549
|
+
store: {};
|
|
550
|
+
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 ? {
|
|
551
|
+
readonly 100: "Continue";
|
|
552
|
+
readonly 101: "Switching Protocols";
|
|
553
|
+
readonly 102: "Processing";
|
|
554
|
+
readonly 103: "Early Hints";
|
|
555
|
+
readonly 200: "OK";
|
|
556
|
+
readonly 201: "Created";
|
|
557
|
+
readonly 202: "Accepted";
|
|
558
|
+
readonly 203: "Non-Authoritative Information";
|
|
559
|
+
readonly 204: "No Content";
|
|
560
|
+
readonly 205: "Reset Content";
|
|
561
|
+
readonly 206: "Partial Content";
|
|
562
|
+
readonly 207: "Multi-Status";
|
|
563
|
+
readonly 208: "Already Reported";
|
|
564
|
+
readonly 300: "Multiple Choices";
|
|
565
|
+
readonly 301: "Moved Permanently";
|
|
566
|
+
readonly 302: "Found";
|
|
567
|
+
readonly 303: "See Other";
|
|
568
|
+
readonly 304: "Not Modified";
|
|
569
|
+
readonly 307: "Temporary Redirect";
|
|
570
|
+
readonly 308: "Permanent Redirect";
|
|
571
|
+
readonly 400: "Bad Request";
|
|
572
|
+
readonly 401: "Unauthorized";
|
|
573
|
+
readonly 402: "Payment Required";
|
|
574
|
+
readonly 403: "Forbidden";
|
|
575
|
+
readonly 404: "Not Found";
|
|
576
|
+
readonly 405: "Method Not Allowed";
|
|
577
|
+
readonly 406: "Not Acceptable";
|
|
578
|
+
readonly 407: "Proxy Authentication Required";
|
|
579
|
+
readonly 408: "Request Timeout";
|
|
580
|
+
readonly 409: "Conflict";
|
|
581
|
+
readonly 410: "Gone";
|
|
582
|
+
readonly 411: "Length Required";
|
|
583
|
+
readonly 412: "Precondition Failed";
|
|
584
|
+
readonly 413: "Payload Too Large";
|
|
585
|
+
readonly 414: "URI Too Long";
|
|
586
|
+
readonly 415: "Unsupported Media Type";
|
|
587
|
+
readonly 416: "Range Not Satisfiable";
|
|
588
|
+
readonly 417: "Expectation Failed";
|
|
589
|
+
readonly 418: "I'm a teapot";
|
|
590
|
+
readonly 420: "Enhance Your Calm";
|
|
591
|
+
readonly 421: "Misdirected Request";
|
|
592
|
+
readonly 422: "Unprocessable Content";
|
|
593
|
+
readonly 423: "Locked";
|
|
594
|
+
readonly 424: "Failed Dependency";
|
|
595
|
+
readonly 425: "Too Early";
|
|
596
|
+
readonly 426: "Upgrade Required";
|
|
597
|
+
readonly 428: "Precondition Required";
|
|
598
|
+
readonly 429: "Too Many Requests";
|
|
599
|
+
readonly 431: "Request Header Fields Too Large";
|
|
600
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
601
|
+
readonly 500: "Internal Server Error";
|
|
602
|
+
readonly 501: "Not Implemented";
|
|
603
|
+
readonly 502: "Bad Gateway";
|
|
604
|
+
readonly 503: "Service Unavailable";
|
|
605
|
+
readonly 504: "Gateway Timeout";
|
|
606
|
+
readonly 505: "HTTP Version Not Supported";
|
|
607
|
+
readonly 506: "Variant Also Negotiates";
|
|
608
|
+
readonly 507: "Insufficient Storage";
|
|
609
|
+
readonly 508: "Loop Detected";
|
|
610
|
+
readonly 510: "Not Extended";
|
|
611
|
+
readonly 511: "Network Authentication Required";
|
|
612
|
+
}[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" ? {
|
|
613
|
+
readonly Continue: 100;
|
|
614
|
+
readonly "Switching Protocols": 101;
|
|
615
|
+
readonly Processing: 102;
|
|
616
|
+
readonly "Early Hints": 103;
|
|
617
|
+
readonly OK: 200;
|
|
618
|
+
readonly Created: 201;
|
|
619
|
+
readonly Accepted: 202;
|
|
620
|
+
readonly "Non-Authoritative Information": 203;
|
|
621
|
+
readonly "No Content": 204;
|
|
622
|
+
readonly "Reset Content": 205;
|
|
623
|
+
readonly "Partial Content": 206;
|
|
624
|
+
readonly "Multi-Status": 207;
|
|
625
|
+
readonly "Already Reported": 208;
|
|
626
|
+
readonly "Multiple Choices": 300;
|
|
627
|
+
readonly "Moved Permanently": 301;
|
|
628
|
+
readonly Found: 302;
|
|
629
|
+
readonly "See Other": 303;
|
|
630
|
+
readonly "Not Modified": 304;
|
|
631
|
+
readonly "Temporary Redirect": 307;
|
|
632
|
+
readonly "Permanent Redirect": 308;
|
|
633
|
+
readonly "Bad Request": 400;
|
|
634
|
+
readonly Unauthorized: 401;
|
|
635
|
+
readonly "Payment Required": 402;
|
|
636
|
+
readonly Forbidden: 403;
|
|
637
|
+
readonly "Not Found": 404;
|
|
638
|
+
readonly "Method Not Allowed": 405;
|
|
639
|
+
readonly "Not Acceptable": 406;
|
|
640
|
+
readonly "Proxy Authentication Required": 407;
|
|
641
|
+
readonly "Request Timeout": 408;
|
|
642
|
+
readonly Conflict: 409;
|
|
643
|
+
readonly Gone: 410;
|
|
644
|
+
readonly "Length Required": 411;
|
|
645
|
+
readonly "Precondition Failed": 412;
|
|
646
|
+
readonly "Payload Too Large": 413;
|
|
647
|
+
readonly "URI Too Long": 414;
|
|
648
|
+
readonly "Unsupported Media Type": 415;
|
|
649
|
+
readonly "Range Not Satisfiable": 416;
|
|
650
|
+
readonly "Expectation Failed": 417;
|
|
651
|
+
readonly "I'm a teapot": 418;
|
|
652
|
+
readonly "Enhance Your Calm": 420;
|
|
653
|
+
readonly "Misdirected Request": 421;
|
|
654
|
+
readonly "Unprocessable Content": 422;
|
|
655
|
+
readonly Locked: 423;
|
|
656
|
+
readonly "Failed Dependency": 424;
|
|
657
|
+
readonly "Too Early": 425;
|
|
658
|
+
readonly "Upgrade Required": 426;
|
|
659
|
+
readonly "Precondition Required": 428;
|
|
660
|
+
readonly "Too Many Requests": 429;
|
|
661
|
+
readonly "Request Header Fields Too Large": 431;
|
|
662
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
663
|
+
readonly "Internal Server Error": 500;
|
|
664
|
+
readonly "Not Implemented": 501;
|
|
665
|
+
readonly "Bad Gateway": 502;
|
|
666
|
+
readonly "Service Unavailable": 503;
|
|
667
|
+
readonly "Gateway Timeout": 504;
|
|
668
|
+
readonly "HTTP Version Not Supported": 505;
|
|
669
|
+
readonly "Variant Also Negotiates": 506;
|
|
670
|
+
readonly "Insufficient Storage": 507;
|
|
671
|
+
readonly "Loop Detected": 508;
|
|
672
|
+
readonly "Not Extended": 510;
|
|
673
|
+
readonly "Network Authentication Required": 511;
|
|
674
|
+
}[Code] : Code>;
|
|
675
|
+
}) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | {
|
|
676
|
+
user: import("./lib/auth").User;
|
|
677
|
+
session: {
|
|
678
|
+
id: string;
|
|
679
|
+
createdAt: Date;
|
|
680
|
+
updatedAt: Date;
|
|
681
|
+
userId: string;
|
|
682
|
+
expiresAt: Date;
|
|
683
|
+
token: string;
|
|
684
|
+
ipAddress?: string | null | undefined | undefined;
|
|
685
|
+
userAgent?: string | null | undefined | undefined;
|
|
686
|
+
};
|
|
687
|
+
}>;
|
|
544
688
|
};
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
get: {
|
|
689
|
+
readonly userKind: (input: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION") => {
|
|
690
|
+
readonly resolve: ({ request: { headers } }: {
|
|
548
691
|
body: unknown;
|
|
692
|
+
query: Record<string, string>;
|
|
549
693
|
params: {};
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
694
|
+
headers: Record<string, string | undefined>;
|
|
695
|
+
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
696
|
+
server: import("elysia/dist/universal/server").Server | null;
|
|
697
|
+
redirect: import("elysia").redirect;
|
|
698
|
+
set: {
|
|
699
|
+
headers: import("elysia").HTTPHeaders;
|
|
700
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
701
|
+
redirect?: string;
|
|
702
|
+
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
703
|
+
};
|
|
704
|
+
path: string;
|
|
705
|
+
route: string;
|
|
706
|
+
request: Request;
|
|
707
|
+
store: {};
|
|
708
|
+
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 ? {
|
|
709
|
+
readonly 100: "Continue";
|
|
710
|
+
readonly 101: "Switching Protocols";
|
|
711
|
+
readonly 102: "Processing";
|
|
712
|
+
readonly 103: "Early Hints";
|
|
713
|
+
readonly 200: "OK";
|
|
714
|
+
readonly 201: "Created";
|
|
715
|
+
readonly 202: "Accepted";
|
|
716
|
+
readonly 203: "Non-Authoritative Information";
|
|
717
|
+
readonly 204: "No Content";
|
|
718
|
+
readonly 205: "Reset Content";
|
|
719
|
+
readonly 206: "Partial Content";
|
|
720
|
+
readonly 207: "Multi-Status";
|
|
721
|
+
readonly 208: "Already Reported";
|
|
722
|
+
readonly 300: "Multiple Choices";
|
|
723
|
+
readonly 301: "Moved Permanently";
|
|
724
|
+
readonly 302: "Found";
|
|
725
|
+
readonly 303: "See Other";
|
|
726
|
+
readonly 304: "Not Modified";
|
|
727
|
+
readonly 307: "Temporary Redirect";
|
|
728
|
+
readonly 308: "Permanent Redirect";
|
|
729
|
+
readonly 400: "Bad Request";
|
|
730
|
+
readonly 401: "Unauthorized";
|
|
731
|
+
readonly 402: "Payment Required";
|
|
732
|
+
readonly 403: "Forbidden";
|
|
733
|
+
readonly 404: "Not Found";
|
|
734
|
+
readonly 405: "Method Not Allowed";
|
|
735
|
+
readonly 406: "Not Acceptable";
|
|
736
|
+
readonly 407: "Proxy Authentication Required";
|
|
737
|
+
readonly 408: "Request Timeout";
|
|
738
|
+
readonly 409: "Conflict";
|
|
739
|
+
readonly 410: "Gone";
|
|
740
|
+
readonly 411: "Length Required";
|
|
741
|
+
readonly 412: "Precondition Failed";
|
|
742
|
+
readonly 413: "Payload Too Large";
|
|
743
|
+
readonly 414: "URI Too Long";
|
|
744
|
+
readonly 415: "Unsupported Media Type";
|
|
745
|
+
readonly 416: "Range Not Satisfiable";
|
|
746
|
+
readonly 417: "Expectation Failed";
|
|
747
|
+
readonly 418: "I'm a teapot";
|
|
748
|
+
readonly 420: "Enhance Your Calm";
|
|
749
|
+
readonly 421: "Misdirected Request";
|
|
750
|
+
readonly 422: "Unprocessable Content";
|
|
751
|
+
readonly 423: "Locked";
|
|
752
|
+
readonly 424: "Failed Dependency";
|
|
753
|
+
readonly 425: "Too Early";
|
|
754
|
+
readonly 426: "Upgrade Required";
|
|
755
|
+
readonly 428: "Precondition Required";
|
|
756
|
+
readonly 429: "Too Many Requests";
|
|
757
|
+
readonly 431: "Request Header Fields Too Large";
|
|
758
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
759
|
+
readonly 500: "Internal Server Error";
|
|
760
|
+
readonly 501: "Not Implemented";
|
|
761
|
+
readonly 502: "Bad Gateway";
|
|
762
|
+
readonly 503: "Service Unavailable";
|
|
763
|
+
readonly 504: "Gateway Timeout";
|
|
764
|
+
readonly 505: "HTTP Version Not Supported";
|
|
765
|
+
readonly 506: "Variant Also Negotiates";
|
|
766
|
+
readonly 507: "Insufficient Storage";
|
|
767
|
+
readonly 508: "Loop Detected";
|
|
768
|
+
readonly 510: "Not Extended";
|
|
769
|
+
readonly 511: "Network Authentication Required";
|
|
770
|
+
}[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" ? {
|
|
771
|
+
readonly Continue: 100;
|
|
772
|
+
readonly "Switching Protocols": 101;
|
|
773
|
+
readonly Processing: 102;
|
|
774
|
+
readonly "Early Hints": 103;
|
|
775
|
+
readonly OK: 200;
|
|
776
|
+
readonly Created: 201;
|
|
777
|
+
readonly Accepted: 202;
|
|
778
|
+
readonly "Non-Authoritative Information": 203;
|
|
779
|
+
readonly "No Content": 204;
|
|
780
|
+
readonly "Reset Content": 205;
|
|
781
|
+
readonly "Partial Content": 206;
|
|
782
|
+
readonly "Multi-Status": 207;
|
|
783
|
+
readonly "Already Reported": 208;
|
|
784
|
+
readonly "Multiple Choices": 300;
|
|
785
|
+
readonly "Moved Permanently": 301;
|
|
786
|
+
readonly Found: 302;
|
|
787
|
+
readonly "See Other": 303;
|
|
788
|
+
readonly "Not Modified": 304;
|
|
789
|
+
readonly "Temporary Redirect": 307;
|
|
790
|
+
readonly "Permanent Redirect": 308;
|
|
791
|
+
readonly "Bad Request": 400;
|
|
792
|
+
readonly Unauthorized: 401;
|
|
793
|
+
readonly "Payment Required": 402;
|
|
794
|
+
readonly Forbidden: 403;
|
|
795
|
+
readonly "Not Found": 404;
|
|
796
|
+
readonly "Method Not Allowed": 405;
|
|
797
|
+
readonly "Not Acceptable": 406;
|
|
798
|
+
readonly "Proxy Authentication Required": 407;
|
|
799
|
+
readonly "Request Timeout": 408;
|
|
800
|
+
readonly Conflict: 409;
|
|
801
|
+
readonly Gone: 410;
|
|
802
|
+
readonly "Length Required": 411;
|
|
803
|
+
readonly "Precondition Failed": 412;
|
|
804
|
+
readonly "Payload Too Large": 413;
|
|
805
|
+
readonly "URI Too Long": 414;
|
|
806
|
+
readonly "Unsupported Media Type": 415;
|
|
807
|
+
readonly "Range Not Satisfiable": 416;
|
|
808
|
+
readonly "Expectation Failed": 417;
|
|
809
|
+
readonly "I'm a teapot": 418;
|
|
810
|
+
readonly "Enhance Your Calm": 420;
|
|
811
|
+
readonly "Misdirected Request": 421;
|
|
812
|
+
readonly "Unprocessable Content": 422;
|
|
813
|
+
readonly Locked: 423;
|
|
814
|
+
readonly "Failed Dependency": 424;
|
|
815
|
+
readonly "Too Early": 425;
|
|
816
|
+
readonly "Upgrade Required": 426;
|
|
817
|
+
readonly "Precondition Required": 428;
|
|
818
|
+
readonly "Too Many Requests": 429;
|
|
819
|
+
readonly "Request Header Fields Too Large": 431;
|
|
820
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
821
|
+
readonly "Internal Server Error": 500;
|
|
822
|
+
readonly "Not Implemented": 501;
|
|
823
|
+
readonly "Bad Gateway": 502;
|
|
824
|
+
readonly "Service Unavailable": 503;
|
|
825
|
+
readonly "Gateway Timeout": 504;
|
|
826
|
+
readonly "HTTP Version Not Supported": 505;
|
|
827
|
+
readonly "Variant Also Negotiates": 506;
|
|
828
|
+
readonly "Insufficient Storage": 507;
|
|
829
|
+
readonly "Loop Detected": 508;
|
|
830
|
+
readonly "Not Extended": 510;
|
|
831
|
+
readonly "Network Authentication Required": 511;
|
|
832
|
+
}[Code] : Code>;
|
|
833
|
+
}) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
834
|
+
user: import("./lib/auth").User;
|
|
835
|
+
session: {
|
|
836
|
+
id: string;
|
|
837
|
+
createdAt: Date;
|
|
838
|
+
updatedAt: Date;
|
|
839
|
+
userId: string;
|
|
840
|
+
expiresAt: Date;
|
|
841
|
+
token: string;
|
|
842
|
+
ipAddress?: string | null | undefined | undefined;
|
|
843
|
+
userAgent?: string | null | undefined | undefined;
|
|
844
|
+
};
|
|
845
|
+
}>;
|
|
846
|
+
};
|
|
847
|
+
readonly permission: (input: import("./lib/permissions").PermissionCode | import("./lib/permissions").PermissionCode[]) => {
|
|
848
|
+
readonly resolve: ({ request: { headers } }: {
|
|
849
|
+
body: unknown;
|
|
850
|
+
query: Record<string, string>;
|
|
851
|
+
params: {};
|
|
852
|
+
headers: Record<string, string | undefined>;
|
|
853
|
+
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
854
|
+
server: import("elysia/dist/universal/server").Server | null;
|
|
855
|
+
redirect: import("elysia").redirect;
|
|
856
|
+
set: {
|
|
857
|
+
headers: import("elysia").HTTPHeaders;
|
|
858
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
859
|
+
redirect?: string;
|
|
860
|
+
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
861
|
+
};
|
|
862
|
+
path: string;
|
|
863
|
+
route: string;
|
|
864
|
+
request: Request;
|
|
865
|
+
store: {};
|
|
866
|
+
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 ? {
|
|
867
|
+
readonly 100: "Continue";
|
|
868
|
+
readonly 101: "Switching Protocols";
|
|
869
|
+
readonly 102: "Processing";
|
|
870
|
+
readonly 103: "Early Hints";
|
|
871
|
+
readonly 200: "OK";
|
|
872
|
+
readonly 201: "Created";
|
|
873
|
+
readonly 202: "Accepted";
|
|
874
|
+
readonly 203: "Non-Authoritative Information";
|
|
875
|
+
readonly 204: "No Content";
|
|
876
|
+
readonly 205: "Reset Content";
|
|
877
|
+
readonly 206: "Partial Content";
|
|
878
|
+
readonly 207: "Multi-Status";
|
|
879
|
+
readonly 208: "Already Reported";
|
|
880
|
+
readonly 300: "Multiple Choices";
|
|
881
|
+
readonly 301: "Moved Permanently";
|
|
882
|
+
readonly 302: "Found";
|
|
883
|
+
readonly 303: "See Other";
|
|
884
|
+
readonly 304: "Not Modified";
|
|
885
|
+
readonly 307: "Temporary Redirect";
|
|
886
|
+
readonly 308: "Permanent Redirect";
|
|
887
|
+
readonly 400: "Bad Request";
|
|
888
|
+
readonly 401: "Unauthorized";
|
|
889
|
+
readonly 402: "Payment Required";
|
|
890
|
+
readonly 403: "Forbidden";
|
|
891
|
+
readonly 404: "Not Found";
|
|
892
|
+
readonly 405: "Method Not Allowed";
|
|
893
|
+
readonly 406: "Not Acceptable";
|
|
894
|
+
readonly 407: "Proxy Authentication Required";
|
|
895
|
+
readonly 408: "Request Timeout";
|
|
896
|
+
readonly 409: "Conflict";
|
|
897
|
+
readonly 410: "Gone";
|
|
898
|
+
readonly 411: "Length Required";
|
|
899
|
+
readonly 412: "Precondition Failed";
|
|
900
|
+
readonly 413: "Payload Too Large";
|
|
901
|
+
readonly 414: "URI Too Long";
|
|
902
|
+
readonly 415: "Unsupported Media Type";
|
|
903
|
+
readonly 416: "Range Not Satisfiable";
|
|
904
|
+
readonly 417: "Expectation Failed";
|
|
905
|
+
readonly 418: "I'm a teapot";
|
|
906
|
+
readonly 420: "Enhance Your Calm";
|
|
907
|
+
readonly 421: "Misdirected Request";
|
|
908
|
+
readonly 422: "Unprocessable Content";
|
|
909
|
+
readonly 423: "Locked";
|
|
910
|
+
readonly 424: "Failed Dependency";
|
|
911
|
+
readonly 425: "Too Early";
|
|
912
|
+
readonly 426: "Upgrade Required";
|
|
913
|
+
readonly 428: "Precondition Required";
|
|
914
|
+
readonly 429: "Too Many Requests";
|
|
915
|
+
readonly 431: "Request Header Fields Too Large";
|
|
916
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
917
|
+
readonly 500: "Internal Server Error";
|
|
918
|
+
readonly 501: "Not Implemented";
|
|
919
|
+
readonly 502: "Bad Gateway";
|
|
920
|
+
readonly 503: "Service Unavailable";
|
|
921
|
+
readonly 504: "Gateway Timeout";
|
|
922
|
+
readonly 505: "HTTP Version Not Supported";
|
|
923
|
+
readonly 506: "Variant Also Negotiates";
|
|
924
|
+
readonly 507: "Insufficient Storage";
|
|
925
|
+
readonly 508: "Loop Detected";
|
|
926
|
+
readonly 510: "Not Extended";
|
|
927
|
+
readonly 511: "Network Authentication Required";
|
|
928
|
+
}[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" ? {
|
|
929
|
+
readonly Continue: 100;
|
|
930
|
+
readonly "Switching Protocols": 101;
|
|
931
|
+
readonly Processing: 102;
|
|
932
|
+
readonly "Early Hints": 103;
|
|
933
|
+
readonly OK: 200;
|
|
934
|
+
readonly Created: 201;
|
|
935
|
+
readonly Accepted: 202;
|
|
936
|
+
readonly "Non-Authoritative Information": 203;
|
|
937
|
+
readonly "No Content": 204;
|
|
938
|
+
readonly "Reset Content": 205;
|
|
939
|
+
readonly "Partial Content": 206;
|
|
940
|
+
readonly "Multi-Status": 207;
|
|
941
|
+
readonly "Already Reported": 208;
|
|
942
|
+
readonly "Multiple Choices": 300;
|
|
943
|
+
readonly "Moved Permanently": 301;
|
|
944
|
+
readonly Found: 302;
|
|
945
|
+
readonly "See Other": 303;
|
|
946
|
+
readonly "Not Modified": 304;
|
|
947
|
+
readonly "Temporary Redirect": 307;
|
|
948
|
+
readonly "Permanent Redirect": 308;
|
|
949
|
+
readonly "Bad Request": 400;
|
|
950
|
+
readonly Unauthorized: 401;
|
|
951
|
+
readonly "Payment Required": 402;
|
|
952
|
+
readonly Forbidden: 403;
|
|
953
|
+
readonly "Not Found": 404;
|
|
954
|
+
readonly "Method Not Allowed": 405;
|
|
955
|
+
readonly "Not Acceptable": 406;
|
|
956
|
+
readonly "Proxy Authentication Required": 407;
|
|
957
|
+
readonly "Request Timeout": 408;
|
|
958
|
+
readonly Conflict: 409;
|
|
959
|
+
readonly Gone: 410;
|
|
960
|
+
readonly "Length Required": 411;
|
|
961
|
+
readonly "Precondition Failed": 412;
|
|
962
|
+
readonly "Payload Too Large": 413;
|
|
963
|
+
readonly "URI Too Long": 414;
|
|
964
|
+
readonly "Unsupported Media Type": 415;
|
|
965
|
+
readonly "Range Not Satisfiable": 416;
|
|
966
|
+
readonly "Expectation Failed": 417;
|
|
967
|
+
readonly "I'm a teapot": 418;
|
|
968
|
+
readonly "Enhance Your Calm": 420;
|
|
969
|
+
readonly "Misdirected Request": 421;
|
|
970
|
+
readonly "Unprocessable Content": 422;
|
|
971
|
+
readonly Locked: 423;
|
|
972
|
+
readonly "Failed Dependency": 424;
|
|
973
|
+
readonly "Too Early": 425;
|
|
974
|
+
readonly "Upgrade Required": 426;
|
|
975
|
+
readonly "Precondition Required": 428;
|
|
976
|
+
readonly "Too Many Requests": 429;
|
|
977
|
+
readonly "Request Header Fields Too Large": 431;
|
|
978
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
979
|
+
readonly "Internal Server Error": 500;
|
|
980
|
+
readonly "Not Implemented": 501;
|
|
981
|
+
readonly "Bad Gateway": 502;
|
|
982
|
+
readonly "Service Unavailable": 503;
|
|
983
|
+
readonly "Gateway Timeout": 504;
|
|
984
|
+
readonly "HTTP Version Not Supported": 505;
|
|
985
|
+
readonly "Variant Also Negotiates": 506;
|
|
986
|
+
readonly "Insufficient Storage": 507;
|
|
987
|
+
readonly "Loop Detected": 508;
|
|
988
|
+
readonly "Not Extended": 510;
|
|
989
|
+
readonly "Network Authentication Required": 511;
|
|
990
|
+
}[Code] : Code>;
|
|
991
|
+
}) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
992
|
+
user: import("./lib/auth").User;
|
|
993
|
+
session: {
|
|
994
|
+
id: string;
|
|
995
|
+
createdAt: Date;
|
|
996
|
+
updatedAt: Date;
|
|
997
|
+
userId: string;
|
|
998
|
+
expiresAt: Date;
|
|
999
|
+
token: string;
|
|
1000
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1001
|
+
userAgent?: string | null | undefined | undefined;
|
|
1002
|
+
};
|
|
1003
|
+
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")[];
|
|
1004
|
+
}>;
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
parser: {};
|
|
1008
|
+
response: {};
|
|
1009
|
+
}, {
|
|
1010
|
+
health: {
|
|
1011
|
+
get: {
|
|
1012
|
+
body: unknown;
|
|
1013
|
+
params: {};
|
|
1014
|
+
query: unknown;
|
|
1015
|
+
headers: unknown;
|
|
1016
|
+
response: {
|
|
1017
|
+
200: string;
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
} & {
|
|
1022
|
+
api: {
|
|
1023
|
+
image: {};
|
|
1024
|
+
} & {
|
|
1025
|
+
image: {
|
|
1026
|
+
post: {
|
|
1027
|
+
body: {
|
|
1028
|
+
image: File;
|
|
1029
|
+
folder: string;
|
|
1030
|
+
};
|
|
1031
|
+
params: {};
|
|
1032
|
+
query: {};
|
|
1033
|
+
headers: {};
|
|
1034
|
+
response: {
|
|
1035
|
+
200: {
|
|
1036
|
+
path: string;
|
|
1037
|
+
};
|
|
1038
|
+
401: "Session not found";
|
|
1039
|
+
422: {
|
|
1040
|
+
type: "validation";
|
|
1041
|
+
on: string;
|
|
1042
|
+
summary?: string;
|
|
1043
|
+
message?: string;
|
|
1044
|
+
found?: unknown;
|
|
1045
|
+
property?: string;
|
|
1046
|
+
expected?: string;
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
|
+
} & {
|
|
1052
|
+
image: {
|
|
1053
|
+
get: {
|
|
1054
|
+
body: unknown;
|
|
1055
|
+
params: {};
|
|
1056
|
+
query: {
|
|
1057
|
+
name: string;
|
|
1058
|
+
folder: string;
|
|
1059
|
+
};
|
|
1060
|
+
headers: unknown;
|
|
1061
|
+
response: {
|
|
1062
|
+
200: Response;
|
|
1063
|
+
422: {
|
|
1064
|
+
type: "validation";
|
|
1065
|
+
on: string;
|
|
1066
|
+
summary?: string;
|
|
1067
|
+
message?: string;
|
|
1068
|
+
found?: unknown;
|
|
1069
|
+
property?: string;
|
|
1070
|
+
expected?: string;
|
|
1071
|
+
};
|
|
566
1072
|
};
|
|
567
1073
|
};
|
|
568
1074
|
};
|
|
@@ -1433,10 +1939,10 @@ export declare const app: Elysia<"", {
|
|
|
1433
1939
|
body: {};
|
|
1434
1940
|
params: {};
|
|
1435
1941
|
query: {
|
|
1942
|
+
isActive?: boolean | undefined;
|
|
1436
1943
|
regNumber?: string | undefined;
|
|
1437
1944
|
phone?: string | undefined;
|
|
1438
1945
|
serviceName?: string | undefined;
|
|
1439
|
-
isActive?: boolean | undefined;
|
|
1440
1946
|
pagination: {
|
|
1441
1947
|
size: number;
|
|
1442
1948
|
page: number;
|
|
@@ -1455,6 +1961,7 @@ export declare const app: Elysia<"", {
|
|
|
1455
1961
|
updatedAt: string;
|
|
1456
1962
|
deletedAt: string | null;
|
|
1457
1963
|
oldId: number | null;
|
|
1964
|
+
isActive: boolean;
|
|
1458
1965
|
regNumber: string;
|
|
1459
1966
|
phone: string;
|
|
1460
1967
|
serviceName: string;
|
|
@@ -1470,7 +1977,6 @@ export declare const app: Elysia<"", {
|
|
|
1470
1977
|
isContract: boolean;
|
|
1471
1978
|
isNoat: boolean;
|
|
1472
1979
|
isNexus: boolean;
|
|
1473
|
-
isActive: boolean;
|
|
1474
1980
|
branchCount: number;
|
|
1475
1981
|
} & {
|
|
1476
1982
|
totalCount: number;
|
|
@@ -1494,6 +2000,7 @@ export declare const app: Elysia<"", {
|
|
|
1494
2000
|
post: {
|
|
1495
2001
|
body: {
|
|
1496
2002
|
oldId?: number | null | undefined;
|
|
2003
|
+
isActive?: boolean | undefined;
|
|
1497
2004
|
province?: string | null | undefined;
|
|
1498
2005
|
district?: string | null | undefined;
|
|
1499
2006
|
khoroo?: string | null | undefined;
|
|
@@ -1505,7 +2012,6 @@ export declare const app: Elysia<"", {
|
|
|
1505
2012
|
isContract?: boolean | undefined;
|
|
1506
2013
|
isNoat?: boolean | undefined;
|
|
1507
2014
|
isNexus?: boolean | undefined;
|
|
1508
|
-
isActive?: boolean | undefined;
|
|
1509
2015
|
branchCount?: number | undefined;
|
|
1510
2016
|
name: string;
|
|
1511
2017
|
email: string;
|
|
@@ -1526,6 +2032,7 @@ export declare const app: Elysia<"", {
|
|
|
1526
2032
|
updatedAt: string;
|
|
1527
2033
|
deletedAt: string | null;
|
|
1528
2034
|
oldId: number | null;
|
|
2035
|
+
isActive: boolean;
|
|
1529
2036
|
regNumber: string;
|
|
1530
2037
|
phone: string;
|
|
1531
2038
|
serviceName: string;
|
|
@@ -1541,7 +2048,6 @@ export declare const app: Elysia<"", {
|
|
|
1541
2048
|
isContract: boolean;
|
|
1542
2049
|
isNoat: boolean;
|
|
1543
2050
|
isNexus: boolean;
|
|
1544
|
-
isActive: boolean;
|
|
1545
2051
|
branchCount: number;
|
|
1546
2052
|
};
|
|
1547
2053
|
401: "Session not found";
|
|
@@ -1565,6 +2071,7 @@ export declare const app: Elysia<"", {
|
|
|
1565
2071
|
name?: string | undefined;
|
|
1566
2072
|
email?: string | undefined;
|
|
1567
2073
|
oldId?: number | null | undefined;
|
|
2074
|
+
isActive?: boolean | undefined;
|
|
1568
2075
|
regNumber?: string | undefined;
|
|
1569
2076
|
phone?: string | undefined;
|
|
1570
2077
|
serviceName?: string | undefined;
|
|
@@ -1580,7 +2087,6 @@ export declare const app: Elysia<"", {
|
|
|
1580
2087
|
isContract?: boolean | undefined;
|
|
1581
2088
|
isNoat?: boolean | undefined;
|
|
1582
2089
|
isNexus?: boolean | undefined;
|
|
1583
|
-
isActive?: boolean | undefined;
|
|
1584
2090
|
branchCount?: number | undefined;
|
|
1585
2091
|
};
|
|
1586
2092
|
params: {
|
|
@@ -1597,6 +2103,7 @@ export declare const app: Elysia<"", {
|
|
|
1597
2103
|
updatedAt: string;
|
|
1598
2104
|
deletedAt: string | null;
|
|
1599
2105
|
oldId: number | null;
|
|
2106
|
+
isActive: boolean;
|
|
1600
2107
|
regNumber: string;
|
|
1601
2108
|
phone: string;
|
|
1602
2109
|
serviceName: string;
|
|
@@ -1612,7 +2119,6 @@ export declare const app: Elysia<"", {
|
|
|
1612
2119
|
isContract: boolean;
|
|
1613
2120
|
isNoat: boolean;
|
|
1614
2121
|
isNexus: boolean;
|
|
1615
|
-
isActive: boolean;
|
|
1616
2122
|
branchCount: number;
|
|
1617
2123
|
};
|
|
1618
2124
|
401: "Session not found";
|
|
@@ -1673,6 +2179,7 @@ export declare const app: Elysia<"", {
|
|
|
1673
2179
|
updatedAt?: string | undefined;
|
|
1674
2180
|
deletedAt?: string | null | undefined;
|
|
1675
2181
|
oldId?: number | null | undefined;
|
|
2182
|
+
isActive?: boolean | undefined;
|
|
1676
2183
|
regNumber?: string | null | undefined;
|
|
1677
2184
|
phone?: string | undefined;
|
|
1678
2185
|
logoUrl?: string | undefined;
|
|
@@ -1684,7 +2191,6 @@ export declare const app: Elysia<"", {
|
|
|
1684
2191
|
ceoName?: string | null | undefined;
|
|
1685
2192
|
googleMapUrl?: string | null | undefined;
|
|
1686
2193
|
isNoat?: boolean | undefined;
|
|
1687
|
-
isActive?: boolean | undefined;
|
|
1688
2194
|
packageId?: string | undefined;
|
|
1689
2195
|
merchantId?: string | undefined;
|
|
1690
2196
|
pagination: {
|
|
@@ -1705,6 +2211,7 @@ export declare const app: Elysia<"", {
|
|
|
1705
2211
|
updatedAt: string;
|
|
1706
2212
|
deletedAt: string | null;
|
|
1707
2213
|
oldId: number | null;
|
|
2214
|
+
isActive: boolean;
|
|
1708
2215
|
regNumber: string | null;
|
|
1709
2216
|
phone: string;
|
|
1710
2217
|
logoUrl: string;
|
|
@@ -1716,7 +2223,6 @@ export declare const app: Elysia<"", {
|
|
|
1716
2223
|
ceoName: string | null;
|
|
1717
2224
|
googleMapUrl: string | null;
|
|
1718
2225
|
isNoat: boolean;
|
|
1719
|
-
isActive: boolean;
|
|
1720
2226
|
packageId: string;
|
|
1721
2227
|
merchantId: string;
|
|
1722
2228
|
} & {
|
|
@@ -1741,6 +2247,7 @@ export declare const app: Elysia<"", {
|
|
|
1741
2247
|
post: {
|
|
1742
2248
|
body: {
|
|
1743
2249
|
oldId?: number | null | undefined;
|
|
2250
|
+
isActive?: boolean | undefined;
|
|
1744
2251
|
regNumber?: string | null | undefined;
|
|
1745
2252
|
province?: string | null | undefined;
|
|
1746
2253
|
district?: string | null | undefined;
|
|
@@ -1750,7 +2257,6 @@ export declare const app: Elysia<"", {
|
|
|
1750
2257
|
ceoName?: string | null | undefined;
|
|
1751
2258
|
googleMapUrl?: string | null | undefined;
|
|
1752
2259
|
isNoat?: boolean | undefined;
|
|
1753
|
-
isActive?: boolean | undefined;
|
|
1754
2260
|
merchantId?: string | undefined;
|
|
1755
2261
|
name: string;
|
|
1756
2262
|
email: string | null;
|
|
@@ -1770,6 +2276,7 @@ export declare const app: Elysia<"", {
|
|
|
1770
2276
|
updatedAt: string;
|
|
1771
2277
|
deletedAt: string | null;
|
|
1772
2278
|
oldId: number | null;
|
|
2279
|
+
isActive: boolean;
|
|
1773
2280
|
regNumber: string | null;
|
|
1774
2281
|
phone: string;
|
|
1775
2282
|
logoUrl: string;
|
|
@@ -1781,7 +2288,6 @@ export declare const app: Elysia<"", {
|
|
|
1781
2288
|
ceoName: string | null;
|
|
1782
2289
|
googleMapUrl: string | null;
|
|
1783
2290
|
isNoat: boolean;
|
|
1784
|
-
isActive: boolean;
|
|
1785
2291
|
packageId: string;
|
|
1786
2292
|
merchantId: string;
|
|
1787
2293
|
};
|
|
@@ -1806,6 +2312,7 @@ export declare const app: Elysia<"", {
|
|
|
1806
2312
|
name?: string | undefined;
|
|
1807
2313
|
email?: string | null | undefined;
|
|
1808
2314
|
oldId?: number | null | undefined;
|
|
2315
|
+
isActive?: boolean | undefined;
|
|
1809
2316
|
regNumber?: string | null | undefined;
|
|
1810
2317
|
phone?: string | undefined;
|
|
1811
2318
|
logoUrl?: string | undefined;
|
|
@@ -1817,7 +2324,6 @@ export declare const app: Elysia<"", {
|
|
|
1817
2324
|
ceoName?: string | null | undefined;
|
|
1818
2325
|
googleMapUrl?: string | null | undefined;
|
|
1819
2326
|
isNoat?: boolean | undefined;
|
|
1820
|
-
isActive?: boolean | undefined;
|
|
1821
2327
|
packageId?: string | undefined;
|
|
1822
2328
|
merchantId?: string | undefined;
|
|
1823
2329
|
};
|
|
@@ -1835,6 +2341,7 @@ export declare const app: Elysia<"", {
|
|
|
1835
2341
|
updatedAt: string;
|
|
1836
2342
|
deletedAt: string | null;
|
|
1837
2343
|
oldId: number | null;
|
|
2344
|
+
isActive: boolean;
|
|
1838
2345
|
regNumber: string | null;
|
|
1839
2346
|
phone: string;
|
|
1840
2347
|
logoUrl: string;
|
|
@@ -1846,7 +2353,6 @@ export declare const app: Elysia<"", {
|
|
|
1846
2353
|
ceoName: string | null;
|
|
1847
2354
|
googleMapUrl: string | null;
|
|
1848
2355
|
isNoat: boolean;
|
|
1849
|
-
isActive: boolean;
|
|
1850
2356
|
packageId: string;
|
|
1851
2357
|
merchantId: string;
|
|
1852
2358
|
};
|
|
@@ -2100,8 +2606,8 @@ export declare const app: Elysia<"", {
|
|
|
2100
2606
|
body: {
|
|
2101
2607
|
branchId?: string | null | undefined;
|
|
2102
2608
|
oldId?: number | null | undefined;
|
|
2103
|
-
serviceKindId?: string | null | undefined;
|
|
2104
2609
|
description?: string | null | undefined;
|
|
2610
|
+
serviceKindId?: string | null | undefined;
|
|
2105
2611
|
enabled?: boolean | undefined;
|
|
2106
2612
|
name: string;
|
|
2107
2613
|
price: number;
|
|
@@ -2119,9 +2625,9 @@ export declare const app: Elysia<"", {
|
|
|
2119
2625
|
branchId: string | null;
|
|
2120
2626
|
deletedAt: string | null;
|
|
2121
2627
|
oldId: number | null;
|
|
2628
|
+
description: string | null;
|
|
2122
2629
|
price: number;
|
|
2123
2630
|
serviceKindId: string | null;
|
|
2124
|
-
description: string | null;
|
|
2125
2631
|
enabled: boolean;
|
|
2126
2632
|
};
|
|
2127
2633
|
401: "Session not found";
|
|
@@ -2145,9 +2651,9 @@ export declare const app: Elysia<"", {
|
|
|
2145
2651
|
name?: string | undefined;
|
|
2146
2652
|
branchId?: string | null | undefined;
|
|
2147
2653
|
oldId?: number | null | undefined;
|
|
2654
|
+
description?: string | null | undefined;
|
|
2148
2655
|
price?: number | undefined;
|
|
2149
2656
|
serviceKindId?: string | null | undefined;
|
|
2150
|
-
description?: string | null | undefined;
|
|
2151
2657
|
enabled?: boolean | undefined;
|
|
2152
2658
|
};
|
|
2153
2659
|
params: {
|
|
@@ -3299,6 +3805,7 @@ export declare const app: Elysia<"", {
|
|
|
3299
3805
|
200: {
|
|
3300
3806
|
cpOrderId: string;
|
|
3301
3807
|
};
|
|
3808
|
+
400: "Багцаас үйлчилгээ устгах боломжгүй.";
|
|
3302
3809
|
401: "Session not found";
|
|
3303
3810
|
404: "Үйлчилгээ олдсонгүй.";
|
|
3304
3811
|
422: {
|
|
@@ -3466,7 +3973,7 @@ export declare const app: Elysia<"", {
|
|
|
3466
3973
|
body: unknown;
|
|
3467
3974
|
params: {
|
|
3468
3975
|
id: string;
|
|
3469
|
-
};
|
|
3976
|
+
} & {};
|
|
3470
3977
|
query: unknown;
|
|
3471
3978
|
headers: unknown;
|
|
3472
3979
|
response: {
|
|
@@ -3545,7 +4052,7 @@ export declare const app: Elysia<"", {
|
|
|
3545
4052
|
body: unknown;
|
|
3546
4053
|
params: {
|
|
3547
4054
|
id: string;
|
|
3548
|
-
};
|
|
4055
|
+
} & {};
|
|
3549
4056
|
query: unknown;
|
|
3550
4057
|
headers: unknown;
|
|
3551
4058
|
response: {
|
|
@@ -3573,7 +4080,7 @@ export declare const app: Elysia<"", {
|
|
|
3573
4080
|
body: unknown;
|
|
3574
4081
|
params: {
|
|
3575
4082
|
id: string;
|
|
3576
|
-
};
|
|
4083
|
+
} & {};
|
|
3577
4084
|
query: unknown;
|
|
3578
4085
|
headers: unknown;
|
|
3579
4086
|
response: {
|
|
@@ -3602,7 +4109,7 @@ export declare const app: Elysia<"", {
|
|
|
3602
4109
|
body: unknown;
|
|
3603
4110
|
params: {
|
|
3604
4111
|
id: string;
|
|
3605
|
-
};
|
|
4112
|
+
} & {};
|
|
3606
4113
|
query: unknown;
|
|
3607
4114
|
headers: unknown;
|
|
3608
4115
|
response: {
|
|
@@ -4170,6 +4677,34 @@ export declare const app: Elysia<"", {
|
|
|
4170
4677
|
};
|
|
4171
4678
|
};
|
|
4172
4679
|
};
|
|
4680
|
+
} & {
|
|
4681
|
+
"cp-order": {
|
|
4682
|
+
package: {
|
|
4683
|
+
":id": {
|
|
4684
|
+
delete: {
|
|
4685
|
+
body: unknown;
|
|
4686
|
+
params: {
|
|
4687
|
+
id: string;
|
|
4688
|
+
};
|
|
4689
|
+
query: unknown;
|
|
4690
|
+
headers: unknown;
|
|
4691
|
+
response: {
|
|
4692
|
+
401: "Session not found";
|
|
4693
|
+
404: "Багц олдсонгүй.";
|
|
4694
|
+
422: {
|
|
4695
|
+
type: "validation";
|
|
4696
|
+
on: string;
|
|
4697
|
+
summary?: string;
|
|
4698
|
+
message?: string;
|
|
4699
|
+
found?: unknown;
|
|
4700
|
+
property?: string;
|
|
4701
|
+
expected?: string;
|
|
4702
|
+
};
|
|
4703
|
+
};
|
|
4704
|
+
};
|
|
4705
|
+
};
|
|
4706
|
+
};
|
|
4707
|
+
};
|
|
4173
4708
|
} & {
|
|
4174
4709
|
"cp-order": {
|
|
4175
4710
|
complete: {
|
|
@@ -5569,7 +6104,7 @@ export declare const app: Elysia<"", {
|
|
|
5569
6104
|
};
|
|
5570
6105
|
params: {
|
|
5571
6106
|
id: string;
|
|
5572
|
-
};
|
|
6107
|
+
} & {};
|
|
5573
6108
|
query: unknown;
|
|
5574
6109
|
headers: unknown;
|
|
5575
6110
|
response: {
|
|
@@ -7432,6 +7967,50 @@ export declare const app: Elysia<"", {
|
|
|
7432
7967
|
};
|
|
7433
7968
|
};
|
|
7434
7969
|
};
|
|
7970
|
+
} & {
|
|
7971
|
+
vehicleKind: {
|
|
7972
|
+
post: {
|
|
7973
|
+
body: {
|
|
7974
|
+
oldId?: number | null | undefined;
|
|
7975
|
+
description?: string | null | undefined;
|
|
7976
|
+
parentId?: string | null | undefined;
|
|
7977
|
+
yearStart?: number | null | undefined;
|
|
7978
|
+
yearEnd?: number | null | undefined;
|
|
7979
|
+
imagePath?: string | null | undefined;
|
|
7980
|
+
name: string;
|
|
7981
|
+
vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
|
|
7982
|
+
};
|
|
7983
|
+
params: {};
|
|
7984
|
+
query: {};
|
|
7985
|
+
headers: {};
|
|
7986
|
+
response: {
|
|
7987
|
+
200: {
|
|
7988
|
+
name: string;
|
|
7989
|
+
id: string;
|
|
7990
|
+
createdAt: string;
|
|
7991
|
+
updatedAt: string;
|
|
7992
|
+
deletedAt: string | null;
|
|
7993
|
+
oldId: number | null;
|
|
7994
|
+
description: string | null;
|
|
7995
|
+
vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
|
|
7996
|
+
parentId: string | null;
|
|
7997
|
+
yearStart: number | null;
|
|
7998
|
+
yearEnd: number | null;
|
|
7999
|
+
imagePath: string | null;
|
|
8000
|
+
};
|
|
8001
|
+
401: "Session not found";
|
|
8002
|
+
422: {
|
|
8003
|
+
type: "validation";
|
|
8004
|
+
on: string;
|
|
8005
|
+
summary?: string;
|
|
8006
|
+
message?: string;
|
|
8007
|
+
found?: unknown;
|
|
8008
|
+
property?: string;
|
|
8009
|
+
expected?: string;
|
|
8010
|
+
};
|
|
8011
|
+
};
|
|
8012
|
+
};
|
|
8013
|
+
};
|
|
7435
8014
|
} & {
|
|
7436
8015
|
vehicleKind: {
|
|
7437
8016
|
":id": {
|
|
@@ -7666,8 +8245,8 @@ export declare const app: Elysia<"", {
|
|
|
7666
8245
|
required?: boolean | undefined;
|
|
7667
8246
|
code?: string | null | undefined;
|
|
7668
8247
|
oldId?: number | null | undefined;
|
|
7669
|
-
isActive?: boolean | undefined;
|
|
7670
8248
|
description?: string | null | undefined;
|
|
8249
|
+
isActive?: boolean | undefined;
|
|
7671
8250
|
version?: string | null | undefined;
|
|
7672
8251
|
metadata?: import("drizzle-typebox").Json | undefined;
|
|
7673
8252
|
fieldGroup?: string | null | undefined;
|
|
@@ -7698,8 +8277,8 @@ export declare const app: Elysia<"", {
|
|
|
7698
8277
|
required?: boolean | undefined;
|
|
7699
8278
|
code?: string | null | undefined;
|
|
7700
8279
|
oldId?: number | null | undefined;
|
|
7701
|
-
isActive?: boolean | undefined;
|
|
7702
8280
|
description?: string | null | undefined;
|
|
8281
|
+
isActive?: boolean | undefined;
|
|
7703
8282
|
version?: string | null | undefined;
|
|
7704
8283
|
metadata?: import("drizzle-typebox").Json | undefined;
|
|
7705
8284
|
fieldGroup?: string | null | undefined;
|
|
@@ -7801,8 +8380,8 @@ export declare const app: Elysia<"", {
|
|
|
7801
8380
|
body: {
|
|
7802
8381
|
companyId?: string | null | undefined;
|
|
7803
8382
|
oldId?: number | null | undefined;
|
|
7804
|
-
isActive?: boolean | undefined;
|
|
7805
8383
|
description?: string | null | undefined;
|
|
8384
|
+
isActive?: boolean | undefined;
|
|
7806
8385
|
version?: string | null | undefined;
|
|
7807
8386
|
name: string;
|
|
7808
8387
|
};
|
|
@@ -7867,8 +8446,8 @@ export declare const app: Elysia<"", {
|
|
|
7867
8446
|
name?: string | undefined;
|
|
7868
8447
|
companyId?: string | null | undefined;
|
|
7869
8448
|
oldId?: number | null | undefined;
|
|
7870
|
-
isActive?: boolean | undefined;
|
|
7871
8449
|
description?: string | null | undefined;
|
|
8450
|
+
isActive?: boolean | undefined;
|
|
7872
8451
|
version?: string | null | undefined;
|
|
7873
8452
|
};
|
|
7874
8453
|
params: {
|
|
@@ -8414,38 +8993,279 @@ export declare const app: Elysia<"", {
|
|
|
8414
8993
|
};
|
|
8415
8994
|
};
|
|
8416
8995
|
};
|
|
8417
|
-
} & {
|
|
8418
|
-
template: {
|
|
8419
|
-
get: {
|
|
8420
|
-
body: unknown;
|
|
8421
|
-
params: {};
|
|
8422
|
-
query: {
|
|
8423
|
-
pagination: {
|
|
8424
|
-
size: number;
|
|
8425
|
-
page: number;
|
|
8426
|
-
};
|
|
8996
|
+
} & {
|
|
8997
|
+
template: {
|
|
8998
|
+
get: {
|
|
8999
|
+
body: unknown;
|
|
9000
|
+
params: {};
|
|
9001
|
+
query: {
|
|
9002
|
+
pagination: {
|
|
9003
|
+
size: number;
|
|
9004
|
+
page: number;
|
|
9005
|
+
};
|
|
9006
|
+
};
|
|
9007
|
+
headers: unknown;
|
|
9008
|
+
response: {
|
|
9009
|
+
200: {
|
|
9010
|
+
totalCount: number;
|
|
9011
|
+
totalPage: number;
|
|
9012
|
+
result: Omit<{
|
|
9013
|
+
totalCount: number;
|
|
9014
|
+
machineKindId: string;
|
|
9015
|
+
companyId: string | null;
|
|
9016
|
+
operationAmount: number | null;
|
|
9017
|
+
uomId: string;
|
|
9018
|
+
serviceKindId: string;
|
|
9019
|
+
name: string;
|
|
9020
|
+
description: string | null;
|
|
9021
|
+
id: string;
|
|
9022
|
+
createdAt: string;
|
|
9023
|
+
updatedAt: string;
|
|
9024
|
+
deletedAt: string | null;
|
|
9025
|
+
oldId: number | null;
|
|
9026
|
+
}, "totalCount">[];
|
|
9027
|
+
};
|
|
9028
|
+
422: {
|
|
9029
|
+
type: "validation";
|
|
9030
|
+
on: string;
|
|
9031
|
+
summary?: string;
|
|
9032
|
+
message?: string;
|
|
9033
|
+
found?: unknown;
|
|
9034
|
+
property?: string;
|
|
9035
|
+
expected?: string;
|
|
9036
|
+
};
|
|
9037
|
+
};
|
|
9038
|
+
};
|
|
9039
|
+
};
|
|
9040
|
+
} & {
|
|
9041
|
+
template: {
|
|
9042
|
+
post: {
|
|
9043
|
+
body: {
|
|
9044
|
+
companyId?: string | null | undefined;
|
|
9045
|
+
oldId?: number | null | undefined;
|
|
9046
|
+
description?: string | null | undefined;
|
|
9047
|
+
operationAmount?: number | null | undefined;
|
|
9048
|
+
name: string;
|
|
9049
|
+
serviceKindId: string;
|
|
9050
|
+
machineKindId: string;
|
|
9051
|
+
uomId: string;
|
|
9052
|
+
};
|
|
9053
|
+
params: {};
|
|
9054
|
+
query: unknown;
|
|
9055
|
+
headers: unknown;
|
|
9056
|
+
response: {
|
|
9057
|
+
422: {
|
|
9058
|
+
type: "validation";
|
|
9059
|
+
on: string;
|
|
9060
|
+
summary?: string;
|
|
9061
|
+
message?: string;
|
|
9062
|
+
found?: unknown;
|
|
9063
|
+
property?: string;
|
|
9064
|
+
expected?: string;
|
|
9065
|
+
};
|
|
9066
|
+
};
|
|
9067
|
+
};
|
|
9068
|
+
};
|
|
9069
|
+
} & {
|
|
9070
|
+
template: {
|
|
9071
|
+
":id": {
|
|
9072
|
+
put: {
|
|
9073
|
+
body: {
|
|
9074
|
+
name?: string | undefined;
|
|
9075
|
+
companyId?: string | null | undefined;
|
|
9076
|
+
oldId?: number | null | undefined;
|
|
9077
|
+
description?: string | null | undefined;
|
|
9078
|
+
serviceKindId?: string | undefined;
|
|
9079
|
+
machineKindId?: string | undefined;
|
|
9080
|
+
operationAmount?: number | null | undefined;
|
|
9081
|
+
uomId?: string | undefined;
|
|
9082
|
+
};
|
|
9083
|
+
params: {
|
|
9084
|
+
id: string;
|
|
9085
|
+
};
|
|
9086
|
+
query: unknown;
|
|
9087
|
+
headers: unknown;
|
|
9088
|
+
response: {
|
|
9089
|
+
422: {
|
|
9090
|
+
type: "validation";
|
|
9091
|
+
on: string;
|
|
9092
|
+
summary?: string;
|
|
9093
|
+
message?: string;
|
|
9094
|
+
found?: unknown;
|
|
9095
|
+
property?: string;
|
|
9096
|
+
expected?: string;
|
|
9097
|
+
};
|
|
9098
|
+
};
|
|
9099
|
+
};
|
|
9100
|
+
};
|
|
9101
|
+
};
|
|
9102
|
+
} & {
|
|
9103
|
+
template: {
|
|
9104
|
+
":id": {
|
|
9105
|
+
delete: {
|
|
9106
|
+
body: unknown;
|
|
9107
|
+
params: {
|
|
9108
|
+
id: string;
|
|
9109
|
+
};
|
|
9110
|
+
query: unknown;
|
|
9111
|
+
headers: unknown;
|
|
9112
|
+
response: {
|
|
9113
|
+
422: {
|
|
9114
|
+
type: "validation";
|
|
9115
|
+
on: string;
|
|
9116
|
+
summary?: string;
|
|
9117
|
+
message?: string;
|
|
9118
|
+
found?: unknown;
|
|
9119
|
+
property?: string;
|
|
9120
|
+
expected?: string;
|
|
9121
|
+
};
|
|
9122
|
+
};
|
|
9123
|
+
};
|
|
9124
|
+
};
|
|
9125
|
+
};
|
|
9126
|
+
};
|
|
9127
|
+
};
|
|
9128
|
+
} & {
|
|
9129
|
+
fleet: {
|
|
9130
|
+
machine: {};
|
|
9131
|
+
} & {
|
|
9132
|
+
machine: {
|
|
9133
|
+
get: {
|
|
9134
|
+
body: unknown;
|
|
9135
|
+
params: {};
|
|
9136
|
+
query: {
|
|
9137
|
+
pagination: {
|
|
9138
|
+
size: number;
|
|
9139
|
+
page: number;
|
|
9140
|
+
};
|
|
9141
|
+
};
|
|
9142
|
+
headers: unknown;
|
|
9143
|
+
response: {
|
|
9144
|
+
200: {
|
|
9145
|
+
totalCount: number;
|
|
9146
|
+
totalPage: number;
|
|
9147
|
+
result: Omit<{
|
|
9148
|
+
totalCount: number;
|
|
9149
|
+
companyId: string | null;
|
|
9150
|
+
machineKindId: string;
|
|
9151
|
+
customerId: string | null;
|
|
9152
|
+
name: string | null;
|
|
9153
|
+
assetCode: string | null;
|
|
9154
|
+
vin: string | null;
|
|
9155
|
+
licensePlate: string | null;
|
|
9156
|
+
color: string | null;
|
|
9157
|
+
engineCc: string | null;
|
|
9158
|
+
cylinder: string | null;
|
|
9159
|
+
gasType: string | null;
|
|
9160
|
+
transmissionType: string | null;
|
|
9161
|
+
vehicleType: string | null;
|
|
9162
|
+
yearManufacture: number | null;
|
|
9163
|
+
yearImport: number | null;
|
|
9164
|
+
steering: string | null;
|
|
9165
|
+
engineCode: string | null;
|
|
9166
|
+
transmissionCode: string | null;
|
|
9167
|
+
driveTrain: string | null;
|
|
9168
|
+
km: number;
|
|
9169
|
+
customData: unknown;
|
|
9170
|
+
id: string;
|
|
9171
|
+
createdAt: string;
|
|
9172
|
+
updatedAt: string;
|
|
9173
|
+
deletedAt: string | null;
|
|
9174
|
+
oldId: number | null;
|
|
9175
|
+
}, "totalCount">[];
|
|
9176
|
+
};
|
|
9177
|
+
401: "Session not found";
|
|
9178
|
+
422: {
|
|
9179
|
+
type: "validation";
|
|
9180
|
+
on: string;
|
|
9181
|
+
summary?: string;
|
|
9182
|
+
message?: string;
|
|
9183
|
+
found?: unknown;
|
|
9184
|
+
property?: string;
|
|
9185
|
+
expected?: string;
|
|
9186
|
+
};
|
|
9187
|
+
};
|
|
9188
|
+
};
|
|
9189
|
+
};
|
|
9190
|
+
} & {
|
|
9191
|
+
machine: {
|
|
9192
|
+
post: {
|
|
9193
|
+
body: {
|
|
9194
|
+
name?: string | null | undefined;
|
|
9195
|
+
companyId?: string | null | undefined;
|
|
9196
|
+
oldId?: number | null | undefined;
|
|
9197
|
+
customerId?: string | null | undefined;
|
|
9198
|
+
licensePlate?: string | null | undefined;
|
|
9199
|
+
assetCode?: string | null | undefined;
|
|
9200
|
+
vin?: string | null | undefined;
|
|
9201
|
+
color?: string | null | undefined;
|
|
9202
|
+
engineCc?: string | null | undefined;
|
|
9203
|
+
cylinder?: string | null | undefined;
|
|
9204
|
+
gasType?: string | null | undefined;
|
|
9205
|
+
transmissionType?: string | null | undefined;
|
|
9206
|
+
vehicleType?: string | null | undefined;
|
|
9207
|
+
yearManufacture?: number | null | undefined;
|
|
9208
|
+
yearImport?: number | null | undefined;
|
|
9209
|
+
steering?: string | null | undefined;
|
|
9210
|
+
engineCode?: string | null | undefined;
|
|
9211
|
+
transmissionCode?: string | null | undefined;
|
|
9212
|
+
driveTrain?: string | null | undefined;
|
|
9213
|
+
km?: number | undefined;
|
|
9214
|
+
customData?: import("drizzle-typebox").Json | undefined;
|
|
9215
|
+
machineKindId: string;
|
|
9216
|
+
};
|
|
9217
|
+
params: {};
|
|
9218
|
+
query: unknown;
|
|
9219
|
+
headers: unknown;
|
|
9220
|
+
response: {
|
|
9221
|
+
401: "Session not found";
|
|
9222
|
+
422: {
|
|
9223
|
+
type: "validation";
|
|
9224
|
+
on: string;
|
|
9225
|
+
summary?: string;
|
|
9226
|
+
message?: string;
|
|
9227
|
+
found?: unknown;
|
|
9228
|
+
property?: string;
|
|
9229
|
+
expected?: string;
|
|
9230
|
+
};
|
|
9231
|
+
};
|
|
9232
|
+
};
|
|
9233
|
+
};
|
|
9234
|
+
} & {
|
|
9235
|
+
machine: {
|
|
9236
|
+
":id": {
|
|
9237
|
+
put: {
|
|
9238
|
+
body: {
|
|
9239
|
+
name?: string | null | undefined;
|
|
9240
|
+
companyId?: string | null | undefined;
|
|
9241
|
+
oldId?: number | null | undefined;
|
|
9242
|
+
customerId?: string | null | undefined;
|
|
9243
|
+
licensePlate?: string | null | undefined;
|
|
9244
|
+
machineKindId?: string | undefined;
|
|
9245
|
+
assetCode?: string | null | undefined;
|
|
9246
|
+
vin?: string | null | undefined;
|
|
9247
|
+
color?: string | null | undefined;
|
|
9248
|
+
engineCc?: string | null | undefined;
|
|
9249
|
+
cylinder?: string | null | undefined;
|
|
9250
|
+
gasType?: string | null | undefined;
|
|
9251
|
+
transmissionType?: string | null | undefined;
|
|
9252
|
+
vehicleType?: string | null | undefined;
|
|
9253
|
+
yearManufacture?: number | null | undefined;
|
|
9254
|
+
yearImport?: number | null | undefined;
|
|
9255
|
+
steering?: string | null | undefined;
|
|
9256
|
+
engineCode?: string | null | undefined;
|
|
9257
|
+
transmissionCode?: string | null | undefined;
|
|
9258
|
+
driveTrain?: string | null | undefined;
|
|
9259
|
+
km?: number | undefined;
|
|
9260
|
+
customData?: import("drizzle-typebox").Json | undefined;
|
|
8427
9261
|
};
|
|
9262
|
+
params: {
|
|
9263
|
+
id: string;
|
|
9264
|
+
};
|
|
9265
|
+
query: unknown;
|
|
8428
9266
|
headers: unknown;
|
|
8429
9267
|
response: {
|
|
8430
|
-
|
|
8431
|
-
totalCount: number;
|
|
8432
|
-
totalPage: number;
|
|
8433
|
-
result: Omit<{
|
|
8434
|
-
totalCount: number;
|
|
8435
|
-
machineKindId: string;
|
|
8436
|
-
companyId: string | null;
|
|
8437
|
-
operationAmount: number | null;
|
|
8438
|
-
uomId: string;
|
|
8439
|
-
serviceKindId: string;
|
|
8440
|
-
name: string;
|
|
8441
|
-
description: string | null;
|
|
8442
|
-
id: string;
|
|
8443
|
-
createdAt: string;
|
|
8444
|
-
updatedAt: string;
|
|
8445
|
-
deletedAt: string | null;
|
|
8446
|
-
oldId: number | null;
|
|
8447
|
-
}, "totalCount">[];
|
|
8448
|
-
};
|
|
9268
|
+
401: "Session not found";
|
|
8449
9269
|
422: {
|
|
8450
9270
|
type: "validation";
|
|
8451
9271
|
on: string;
|
|
@@ -8458,23 +9278,19 @@ export declare const app: Elysia<"", {
|
|
|
8458
9278
|
};
|
|
8459
9279
|
};
|
|
8460
9280
|
};
|
|
8461
|
-
}
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
name: string;
|
|
8470
|
-
serviceKindId: string;
|
|
8471
|
-
machineKindId: string;
|
|
8472
|
-
uomId: string;
|
|
9281
|
+
};
|
|
9282
|
+
} & {
|
|
9283
|
+
machine: {
|
|
9284
|
+
":id": {
|
|
9285
|
+
delete: {
|
|
9286
|
+
body: unknown;
|
|
9287
|
+
params: {
|
|
9288
|
+
id: string;
|
|
8473
9289
|
};
|
|
8474
|
-
params: {};
|
|
8475
9290
|
query: unknown;
|
|
8476
9291
|
headers: unknown;
|
|
8477
9292
|
response: {
|
|
9293
|
+
401: "Session not found";
|
|
8478
9294
|
422: {
|
|
8479
9295
|
type: "validation";
|
|
8480
9296
|
on: string;
|
|
@@ -8487,59 +9303,147 @@ export declare const app: Elysia<"", {
|
|
|
8487
9303
|
};
|
|
8488
9304
|
};
|
|
8489
9305
|
};
|
|
8490
|
-
}
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
9306
|
+
};
|
|
9307
|
+
};
|
|
9308
|
+
};
|
|
9309
|
+
} & {
|
|
9310
|
+
api: {
|
|
9311
|
+
uom: {};
|
|
9312
|
+
} & {
|
|
9313
|
+
uom: {
|
|
9314
|
+
category: {};
|
|
9315
|
+
} & {
|
|
9316
|
+
category: {
|
|
9317
|
+
get: {
|
|
9318
|
+
body: unknown;
|
|
9319
|
+
params: {};
|
|
9320
|
+
query: {
|
|
9321
|
+
pagination: {
|
|
9322
|
+
size: number;
|
|
9323
|
+
page: number;
|
|
9324
|
+
};
|
|
9325
|
+
};
|
|
9326
|
+
headers: unknown;
|
|
9327
|
+
response: {
|
|
9328
|
+
200: {
|
|
9329
|
+
totalCount: number;
|
|
9330
|
+
totalPage: number;
|
|
9331
|
+
result: Omit<{
|
|
9332
|
+
totalCount: number;
|
|
9333
|
+
name: string;
|
|
9334
|
+
description: string | null;
|
|
8505
9335
|
id: string;
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
9336
|
+
createdAt: string;
|
|
9337
|
+
updatedAt: string;
|
|
9338
|
+
deletedAt: string | null;
|
|
9339
|
+
oldId: number | null;
|
|
9340
|
+
}, "totalCount">[];
|
|
9341
|
+
};
|
|
9342
|
+
401: "Session not found";
|
|
9343
|
+
422: {
|
|
9344
|
+
type: "validation";
|
|
9345
|
+
on: string;
|
|
9346
|
+
summary?: string;
|
|
9347
|
+
message?: string;
|
|
9348
|
+
found?: unknown;
|
|
9349
|
+
property?: string;
|
|
9350
|
+
expected?: string;
|
|
8520
9351
|
};
|
|
8521
9352
|
};
|
|
8522
9353
|
};
|
|
8523
|
-
}
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
9354
|
+
};
|
|
9355
|
+
} & {
|
|
9356
|
+
category: {
|
|
9357
|
+
post: {
|
|
9358
|
+
body: {
|
|
9359
|
+
oldId?: number | null | undefined;
|
|
9360
|
+
description?: string | null | undefined;
|
|
9361
|
+
name: string;
|
|
9362
|
+
};
|
|
9363
|
+
params: {};
|
|
9364
|
+
query: unknown;
|
|
9365
|
+
headers: unknown;
|
|
9366
|
+
response: {
|
|
9367
|
+
200: {
|
|
9368
|
+
name: string;
|
|
9369
|
+
id: string;
|
|
9370
|
+
createdAt: string;
|
|
9371
|
+
updatedAt: string;
|
|
9372
|
+
deletedAt: string | null;
|
|
9373
|
+
oldId: number | null;
|
|
9374
|
+
description: string | null;
|
|
9375
|
+
};
|
|
9376
|
+
401: "Session not found";
|
|
9377
|
+
422: {
|
|
9378
|
+
type: "validation";
|
|
9379
|
+
on: string;
|
|
9380
|
+
summary?: string;
|
|
9381
|
+
message?: string;
|
|
9382
|
+
found?: unknown;
|
|
9383
|
+
property?: string;
|
|
9384
|
+
expected?: string;
|
|
9385
|
+
};
|
|
9386
|
+
};
|
|
9387
|
+
};
|
|
9388
|
+
};
|
|
9389
|
+
} & {
|
|
9390
|
+
category: {
|
|
9391
|
+
":id": {
|
|
9392
|
+
put: {
|
|
9393
|
+
body: {
|
|
9394
|
+
name?: string | undefined;
|
|
9395
|
+
oldId?: number | null | undefined;
|
|
9396
|
+
description?: string | null | undefined;
|
|
9397
|
+
};
|
|
9398
|
+
params: {
|
|
9399
|
+
id: string;
|
|
9400
|
+
};
|
|
9401
|
+
query: unknown;
|
|
9402
|
+
headers: unknown;
|
|
9403
|
+
response: {
|
|
9404
|
+
200: {
|
|
9405
|
+
name: string;
|
|
9406
|
+
description: string | null;
|
|
8529
9407
|
id: string;
|
|
9408
|
+
createdAt: string;
|
|
9409
|
+
updatedAt: string;
|
|
9410
|
+
deletedAt: string | null;
|
|
9411
|
+
oldId: number | null;
|
|
8530
9412
|
};
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
9413
|
+
401: "Session not found";
|
|
9414
|
+
422: {
|
|
9415
|
+
type: "validation";
|
|
9416
|
+
on: string;
|
|
9417
|
+
summary?: string;
|
|
9418
|
+
message?: string;
|
|
9419
|
+
found?: unknown;
|
|
9420
|
+
property?: string;
|
|
9421
|
+
expected?: string;
|
|
9422
|
+
};
|
|
9423
|
+
};
|
|
9424
|
+
};
|
|
9425
|
+
};
|
|
9426
|
+
};
|
|
9427
|
+
} & {
|
|
9428
|
+
category: {
|
|
9429
|
+
":id": {
|
|
9430
|
+
delete: {
|
|
9431
|
+
body: unknown;
|
|
9432
|
+
params: {
|
|
9433
|
+
id: string;
|
|
9434
|
+
};
|
|
9435
|
+
query: unknown;
|
|
9436
|
+
headers: unknown;
|
|
9437
|
+
response: {
|
|
9438
|
+
401: "Session not found";
|
|
9439
|
+
422: {
|
|
9440
|
+
type: "validation";
|
|
9441
|
+
on: string;
|
|
9442
|
+
summary?: string;
|
|
9443
|
+
message?: string;
|
|
9444
|
+
found?: unknown;
|
|
9445
|
+
property?: string;
|
|
9446
|
+
expected?: string;
|
|
8543
9447
|
};
|
|
8544
9448
|
};
|
|
8545
9449
|
};
|
|
@@ -8547,14 +9451,16 @@ export declare const app: Elysia<"", {
|
|
|
8547
9451
|
};
|
|
8548
9452
|
};
|
|
8549
9453
|
} & {
|
|
8550
|
-
|
|
8551
|
-
|
|
9454
|
+
uom: {
|
|
9455
|
+
conversion: {};
|
|
8552
9456
|
} & {
|
|
8553
|
-
|
|
9457
|
+
conversion: {
|
|
8554
9458
|
get: {
|
|
8555
9459
|
body: unknown;
|
|
8556
9460
|
params: {};
|
|
8557
9461
|
query: {
|
|
9462
|
+
uomOneId?: string | undefined;
|
|
9463
|
+
uomTwoId?: string | undefined;
|
|
8558
9464
|
pagination: {
|
|
8559
9465
|
size: number;
|
|
8560
9466
|
page: number;
|
|
@@ -8567,27 +9473,10 @@ export declare const app: Elysia<"", {
|
|
|
8567
9473
|
totalPage: number;
|
|
8568
9474
|
result: Omit<{
|
|
8569
9475
|
totalCount: number;
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
assetCode: string | null;
|
|
8575
|
-
vin: string | null;
|
|
8576
|
-
licensePlate: string | null;
|
|
8577
|
-
color: string | null;
|
|
8578
|
-
engineCc: string | null;
|
|
8579
|
-
cylinder: string | null;
|
|
8580
|
-
gasType: string | null;
|
|
8581
|
-
transmissionType: string | null;
|
|
8582
|
-
vehicleType: string | null;
|
|
8583
|
-
yearManufacture: number | null;
|
|
8584
|
-
yearImport: number | null;
|
|
8585
|
-
steering: string | null;
|
|
8586
|
-
engineCode: string | null;
|
|
8587
|
-
transmissionCode: string | null;
|
|
8588
|
-
driveTrain: string | null;
|
|
8589
|
-
km: number;
|
|
8590
|
-
customData: unknown;
|
|
9476
|
+
uomOneId: string;
|
|
9477
|
+
uomTwoId: string;
|
|
9478
|
+
factor: number | null;
|
|
9479
|
+
isActive: boolean;
|
|
8591
9480
|
id: string;
|
|
8592
9481
|
createdAt: string;
|
|
8593
9482
|
updatedAt: string;
|
|
@@ -8609,36 +9498,30 @@ export declare const app: Elysia<"", {
|
|
|
8609
9498
|
};
|
|
8610
9499
|
};
|
|
8611
9500
|
} & {
|
|
8612
|
-
|
|
9501
|
+
conversion: {
|
|
8613
9502
|
post: {
|
|
8614
9503
|
body: {
|
|
8615
|
-
name?: string | null | undefined;
|
|
8616
|
-
companyId?: string | null | undefined;
|
|
8617
9504
|
oldId?: number | null | undefined;
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
color?: string | null | undefined;
|
|
8623
|
-
engineCc?: string | null | undefined;
|
|
8624
|
-
cylinder?: string | null | undefined;
|
|
8625
|
-
gasType?: string | null | undefined;
|
|
8626
|
-
transmissionType?: string | null | undefined;
|
|
8627
|
-
vehicleType?: string | null | undefined;
|
|
8628
|
-
yearManufacture?: number | null | undefined;
|
|
8629
|
-
yearImport?: number | null | undefined;
|
|
8630
|
-
steering?: string | null | undefined;
|
|
8631
|
-
engineCode?: string | null | undefined;
|
|
8632
|
-
transmissionCode?: string | null | undefined;
|
|
8633
|
-
driveTrain?: string | null | undefined;
|
|
8634
|
-
km?: number | undefined;
|
|
8635
|
-
customData?: import("drizzle-typebox").Json | undefined;
|
|
8636
|
-
machineKindId: string;
|
|
9505
|
+
factor?: number | null | undefined;
|
|
9506
|
+
isActive?: boolean | undefined;
|
|
9507
|
+
uomOneId: string;
|
|
9508
|
+
uomTwoId: string;
|
|
8637
9509
|
};
|
|
8638
9510
|
params: {};
|
|
8639
9511
|
query: unknown;
|
|
8640
9512
|
headers: unknown;
|
|
8641
9513
|
response: {
|
|
9514
|
+
200: {
|
|
9515
|
+
id: string;
|
|
9516
|
+
createdAt: string;
|
|
9517
|
+
updatedAt: string;
|
|
9518
|
+
deletedAt: string | null;
|
|
9519
|
+
oldId: number | null;
|
|
9520
|
+
uomOneId: string;
|
|
9521
|
+
uomTwoId: string;
|
|
9522
|
+
factor: number | null;
|
|
9523
|
+
isActive: boolean;
|
|
9524
|
+
};
|
|
8642
9525
|
401: "Session not found";
|
|
8643
9526
|
422: {
|
|
8644
9527
|
type: "validation";
|
|
@@ -8653,32 +9536,15 @@ export declare const app: Elysia<"", {
|
|
|
8653
9536
|
};
|
|
8654
9537
|
};
|
|
8655
9538
|
} & {
|
|
8656
|
-
|
|
9539
|
+
conversion: {
|
|
8657
9540
|
":id": {
|
|
8658
9541
|
put: {
|
|
8659
9542
|
body: {
|
|
8660
|
-
name?: string | null | undefined;
|
|
8661
|
-
companyId?: string | null | undefined;
|
|
8662
9543
|
oldId?: number | null | undefined;
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
vin?: string | null | undefined;
|
|
8668
|
-
color?: string | null | undefined;
|
|
8669
|
-
engineCc?: string | null | undefined;
|
|
8670
|
-
cylinder?: string | null | undefined;
|
|
8671
|
-
gasType?: string | null | undefined;
|
|
8672
|
-
transmissionType?: string | null | undefined;
|
|
8673
|
-
vehicleType?: string | null | undefined;
|
|
8674
|
-
yearManufacture?: number | null | undefined;
|
|
8675
|
-
yearImport?: number | null | undefined;
|
|
8676
|
-
steering?: string | null | undefined;
|
|
8677
|
-
engineCode?: string | null | undefined;
|
|
8678
|
-
transmissionCode?: string | null | undefined;
|
|
8679
|
-
driveTrain?: string | null | undefined;
|
|
8680
|
-
km?: number | undefined;
|
|
8681
|
-
customData?: import("drizzle-typebox").Json | undefined;
|
|
9544
|
+
uomOneId?: string | undefined;
|
|
9545
|
+
uomTwoId?: string | undefined;
|
|
9546
|
+
factor?: number | null | undefined;
|
|
9547
|
+
isActive?: boolean | undefined;
|
|
8682
9548
|
};
|
|
8683
9549
|
params: {
|
|
8684
9550
|
id: string;
|
|
@@ -8686,6 +9552,17 @@ export declare const app: Elysia<"", {
|
|
|
8686
9552
|
query: unknown;
|
|
8687
9553
|
headers: unknown;
|
|
8688
9554
|
response: {
|
|
9555
|
+
200: {
|
|
9556
|
+
uomOneId: string;
|
|
9557
|
+
uomTwoId: string;
|
|
9558
|
+
factor: number | null;
|
|
9559
|
+
isActive: boolean;
|
|
9560
|
+
id: string;
|
|
9561
|
+
createdAt: string;
|
|
9562
|
+
updatedAt: string;
|
|
9563
|
+
deletedAt: string | null;
|
|
9564
|
+
oldId: number | null;
|
|
9565
|
+
};
|
|
8689
9566
|
401: "Session not found";
|
|
8690
9567
|
422: {
|
|
8691
9568
|
type: "validation";
|
|
@@ -8701,7 +9578,7 @@ export declare const app: Elysia<"", {
|
|
|
8701
9578
|
};
|
|
8702
9579
|
};
|
|
8703
9580
|
} & {
|
|
8704
|
-
|
|
9581
|
+
conversion: {
|
|
8705
9582
|
":id": {
|
|
8706
9583
|
delete: {
|
|
8707
9584
|
body: unknown;
|
|
@@ -8726,6 +9603,165 @@ export declare const app: Elysia<"", {
|
|
|
8726
9603
|
};
|
|
8727
9604
|
};
|
|
8728
9605
|
};
|
|
9606
|
+
} & {
|
|
9607
|
+
uom: {
|
|
9608
|
+
get: {
|
|
9609
|
+
body: unknown;
|
|
9610
|
+
params: {};
|
|
9611
|
+
query: {
|
|
9612
|
+
uomCategoryId?: string | undefined;
|
|
9613
|
+
pagination: {
|
|
9614
|
+
size: number;
|
|
9615
|
+
page: number;
|
|
9616
|
+
};
|
|
9617
|
+
};
|
|
9618
|
+
headers: unknown;
|
|
9619
|
+
response: {
|
|
9620
|
+
200: {
|
|
9621
|
+
totalCount: number;
|
|
9622
|
+
totalPage: number;
|
|
9623
|
+
result: Omit<{
|
|
9624
|
+
totalCount: number;
|
|
9625
|
+
uomCategoryId: string;
|
|
9626
|
+
code: string | null;
|
|
9627
|
+
name: string;
|
|
9628
|
+
description: string | null;
|
|
9629
|
+
symbol: string | null;
|
|
9630
|
+
isBaseUnit: boolean;
|
|
9631
|
+
baseFactor: number | null;
|
|
9632
|
+
id: string;
|
|
9633
|
+
createdAt: string;
|
|
9634
|
+
updatedAt: string;
|
|
9635
|
+
deletedAt: string | null;
|
|
9636
|
+
oldId: number | null;
|
|
9637
|
+
}, "totalCount">[];
|
|
9638
|
+
};
|
|
9639
|
+
422: {
|
|
9640
|
+
type: "validation";
|
|
9641
|
+
on: string;
|
|
9642
|
+
summary?: string;
|
|
9643
|
+
message?: string;
|
|
9644
|
+
found?: unknown;
|
|
9645
|
+
property?: string;
|
|
9646
|
+
expected?: string;
|
|
9647
|
+
};
|
|
9648
|
+
};
|
|
9649
|
+
};
|
|
9650
|
+
};
|
|
9651
|
+
} & {
|
|
9652
|
+
uom: {
|
|
9653
|
+
post: {
|
|
9654
|
+
body: {
|
|
9655
|
+
symbol?: string | null | undefined;
|
|
9656
|
+
code?: string | null | undefined;
|
|
9657
|
+
oldId?: number | null | undefined;
|
|
9658
|
+
description?: string | null | undefined;
|
|
9659
|
+
isBaseUnit?: boolean | undefined;
|
|
9660
|
+
baseFactor?: number | null | undefined;
|
|
9661
|
+
name: string;
|
|
9662
|
+
uomCategoryId: string;
|
|
9663
|
+
};
|
|
9664
|
+
params: {};
|
|
9665
|
+
query: unknown;
|
|
9666
|
+
headers: unknown;
|
|
9667
|
+
response: {
|
|
9668
|
+
200: {
|
|
9669
|
+
symbol: string | null;
|
|
9670
|
+
name: string;
|
|
9671
|
+
id: string;
|
|
9672
|
+
createdAt: string;
|
|
9673
|
+
updatedAt: string;
|
|
9674
|
+
code: string | null;
|
|
9675
|
+
deletedAt: string | null;
|
|
9676
|
+
oldId: number | null;
|
|
9677
|
+
description: string | null;
|
|
9678
|
+
uomCategoryId: string;
|
|
9679
|
+
isBaseUnit: boolean;
|
|
9680
|
+
baseFactor: number | null;
|
|
9681
|
+
};
|
|
9682
|
+
422: {
|
|
9683
|
+
type: "validation";
|
|
9684
|
+
on: string;
|
|
9685
|
+
summary?: string;
|
|
9686
|
+
message?: string;
|
|
9687
|
+
found?: unknown;
|
|
9688
|
+
property?: string;
|
|
9689
|
+
expected?: string;
|
|
9690
|
+
};
|
|
9691
|
+
};
|
|
9692
|
+
};
|
|
9693
|
+
};
|
|
9694
|
+
} & {
|
|
9695
|
+
uom: {
|
|
9696
|
+
":id": {
|
|
9697
|
+
put: {
|
|
9698
|
+
body: {
|
|
9699
|
+
symbol?: string | null | undefined;
|
|
9700
|
+
name?: string | undefined;
|
|
9701
|
+
code?: string | null | undefined;
|
|
9702
|
+
oldId?: number | null | undefined;
|
|
9703
|
+
description?: string | null | undefined;
|
|
9704
|
+
uomCategoryId?: string | undefined;
|
|
9705
|
+
isBaseUnit?: boolean | undefined;
|
|
9706
|
+
baseFactor?: number | null | undefined;
|
|
9707
|
+
};
|
|
9708
|
+
params: {
|
|
9709
|
+
id: string;
|
|
9710
|
+
};
|
|
9711
|
+
query: unknown;
|
|
9712
|
+
headers: unknown;
|
|
9713
|
+
response: {
|
|
9714
|
+
200: {
|
|
9715
|
+
uomCategoryId: string;
|
|
9716
|
+
code: string | null;
|
|
9717
|
+
name: string;
|
|
9718
|
+
description: string | null;
|
|
9719
|
+
symbol: string | null;
|
|
9720
|
+
isBaseUnit: boolean;
|
|
9721
|
+
baseFactor: number | null;
|
|
9722
|
+
id: string;
|
|
9723
|
+
createdAt: string;
|
|
9724
|
+
updatedAt: string;
|
|
9725
|
+
deletedAt: string | null;
|
|
9726
|
+
oldId: number | null;
|
|
9727
|
+
};
|
|
9728
|
+
422: {
|
|
9729
|
+
type: "validation";
|
|
9730
|
+
on: string;
|
|
9731
|
+
summary?: string;
|
|
9732
|
+
message?: string;
|
|
9733
|
+
found?: unknown;
|
|
9734
|
+
property?: string;
|
|
9735
|
+
expected?: string;
|
|
9736
|
+
};
|
|
9737
|
+
};
|
|
9738
|
+
};
|
|
9739
|
+
};
|
|
9740
|
+
};
|
|
9741
|
+
} & {
|
|
9742
|
+
uom: {
|
|
9743
|
+
":id": {
|
|
9744
|
+
delete: {
|
|
9745
|
+
body: unknown;
|
|
9746
|
+
params: {
|
|
9747
|
+
id: string;
|
|
9748
|
+
};
|
|
9749
|
+
query: unknown;
|
|
9750
|
+
headers: unknown;
|
|
9751
|
+
response: {
|
|
9752
|
+
422: {
|
|
9753
|
+
type: "validation";
|
|
9754
|
+
on: string;
|
|
9755
|
+
summary?: string;
|
|
9756
|
+
message?: string;
|
|
9757
|
+
found?: unknown;
|
|
9758
|
+
property?: string;
|
|
9759
|
+
expected?: string;
|
|
9760
|
+
};
|
|
9761
|
+
};
|
|
9762
|
+
};
|
|
9763
|
+
};
|
|
9764
|
+
};
|
|
8729
9765
|
};
|
|
8730
9766
|
}, {
|
|
8731
9767
|
derive: {};
|
|
@@ -8739,5 +9775,29 @@ export declare const app: Elysia<"", {
|
|
|
8739
9775
|
schema: {};
|
|
8740
9776
|
standaloneSchema: {};
|
|
8741
9777
|
response: {};
|
|
9778
|
+
} & {
|
|
9779
|
+
derive: {};
|
|
9780
|
+
resolve: {};
|
|
9781
|
+
schema: {};
|
|
9782
|
+
standaloneSchema: {};
|
|
9783
|
+
response: {};
|
|
9784
|
+
} & {
|
|
9785
|
+
derive: {};
|
|
9786
|
+
resolve: {};
|
|
9787
|
+
schema: {};
|
|
9788
|
+
standaloneSchema: {};
|
|
9789
|
+
response: {};
|
|
9790
|
+
} & {
|
|
9791
|
+
derive: {};
|
|
9792
|
+
resolve: {};
|
|
9793
|
+
schema: {};
|
|
9794
|
+
standaloneSchema: {};
|
|
9795
|
+
response: {};
|
|
9796
|
+
} & {
|
|
9797
|
+
derive: {};
|
|
9798
|
+
resolve: {};
|
|
9799
|
+
schema: {};
|
|
9800
|
+
standaloneSchema: {};
|
|
9801
|
+
response: {};
|
|
8742
9802
|
}>;
|
|
8743
9803
|
export type App = typeof app;
|