autosync_backend2 1.2.30 → 1.2.32

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +1324 -252
  2. package/dist/index.js +281 -13
  3. 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
- readonly auth?: boolean | undefined;
21
- readonly userKind?: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION" | undefined;
22
- 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")[] | undefined;
23
- };
24
- macroFn: {
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 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 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 ? {
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 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 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 ? {
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 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 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 ? {
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
- parser: {};
502
- response: {};
503
- }, {
504
- health: {
505
- get: {
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
- query: {};
527
- headers: {};
528
- response: {
529
- 200: {
530
- path: string;
531
- };
532
- 401: "Session not found";
533
- 422: {
534
- type: "validation";
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
- image: {
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
- query: {
551
- name: string;
552
- folder: string;
553
- };
554
- headers: unknown;
555
- response: {
556
- 200: Response;
557
- 422: {
558
- type: "validation";
559
- on: string;
560
- summary?: string;
561
- message?: string;
562
- found?: unknown;
563
- property?: string;
564
- expected?: string;
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
  };
@@ -865,6 +1371,7 @@ export declare const app: Elysia<"", {
865
1371
  oldId: number | null;
866
1372
  }[];
867
1373
  };
1374
+ 401: "Session not found";
868
1375
  422: {
869
1376
  type: "validation";
870
1377
  on: string;
@@ -901,6 +1408,7 @@ export declare const app: Elysia<"", {
901
1408
  oldId: number | null;
902
1409
  description: string | null;
903
1410
  };
1411
+ 401: "Session not found";
904
1412
  422: {
905
1413
  type: "validation";
906
1414
  on: string;
@@ -939,6 +1447,7 @@ export declare const app: Elysia<"", {
939
1447
  deletedAt: string | null;
940
1448
  oldId: number | null;
941
1449
  };
1450
+ 401: "Session not found";
942
1451
  404: "Агуулах олдсонгүй.";
943
1452
  422: {
944
1453
  type: "validation";
@@ -964,6 +1473,7 @@ export declare const app: Elysia<"", {
964
1473
  query: unknown;
965
1474
  headers: unknown;
966
1475
  response: {
1476
+ 401: "Session not found";
967
1477
  422: {
968
1478
  type: "validation";
969
1479
  on: string;
@@ -1433,10 +1943,10 @@ export declare const app: Elysia<"", {
1433
1943
  body: {};
1434
1944
  params: {};
1435
1945
  query: {
1946
+ isActive?: boolean | undefined;
1436
1947
  regNumber?: string | undefined;
1437
1948
  phone?: string | undefined;
1438
1949
  serviceName?: string | undefined;
1439
- isActive?: boolean | undefined;
1440
1950
  pagination: {
1441
1951
  size: number;
1442
1952
  page: number;
@@ -1455,6 +1965,7 @@ export declare const app: Elysia<"", {
1455
1965
  updatedAt: string;
1456
1966
  deletedAt: string | null;
1457
1967
  oldId: number | null;
1968
+ isActive: boolean;
1458
1969
  regNumber: string;
1459
1970
  phone: string;
1460
1971
  serviceName: string;
@@ -1470,7 +1981,6 @@ export declare const app: Elysia<"", {
1470
1981
  isContract: boolean;
1471
1982
  isNoat: boolean;
1472
1983
  isNexus: boolean;
1473
- isActive: boolean;
1474
1984
  branchCount: number;
1475
1985
  } & {
1476
1986
  totalCount: number;
@@ -1494,6 +2004,7 @@ export declare const app: Elysia<"", {
1494
2004
  post: {
1495
2005
  body: {
1496
2006
  oldId?: number | null | undefined;
2007
+ isActive?: boolean | undefined;
1497
2008
  province?: string | null | undefined;
1498
2009
  district?: string | null | undefined;
1499
2010
  khoroo?: string | null | undefined;
@@ -1505,7 +2016,6 @@ export declare const app: Elysia<"", {
1505
2016
  isContract?: boolean | undefined;
1506
2017
  isNoat?: boolean | undefined;
1507
2018
  isNexus?: boolean | undefined;
1508
- isActive?: boolean | undefined;
1509
2019
  branchCount?: number | undefined;
1510
2020
  name: string;
1511
2021
  email: string;
@@ -1526,6 +2036,7 @@ export declare const app: Elysia<"", {
1526
2036
  updatedAt: string;
1527
2037
  deletedAt: string | null;
1528
2038
  oldId: number | null;
2039
+ isActive: boolean;
1529
2040
  regNumber: string;
1530
2041
  phone: string;
1531
2042
  serviceName: string;
@@ -1541,7 +2052,6 @@ export declare const app: Elysia<"", {
1541
2052
  isContract: boolean;
1542
2053
  isNoat: boolean;
1543
2054
  isNexus: boolean;
1544
- isActive: boolean;
1545
2055
  branchCount: number;
1546
2056
  };
1547
2057
  401: "Session not found";
@@ -1565,6 +2075,7 @@ export declare const app: Elysia<"", {
1565
2075
  name?: string | undefined;
1566
2076
  email?: string | undefined;
1567
2077
  oldId?: number | null | undefined;
2078
+ isActive?: boolean | undefined;
1568
2079
  regNumber?: string | undefined;
1569
2080
  phone?: string | undefined;
1570
2081
  serviceName?: string | undefined;
@@ -1580,7 +2091,6 @@ export declare const app: Elysia<"", {
1580
2091
  isContract?: boolean | undefined;
1581
2092
  isNoat?: boolean | undefined;
1582
2093
  isNexus?: boolean | undefined;
1583
- isActive?: boolean | undefined;
1584
2094
  branchCount?: number | undefined;
1585
2095
  };
1586
2096
  params: {
@@ -1597,6 +2107,7 @@ export declare const app: Elysia<"", {
1597
2107
  updatedAt: string;
1598
2108
  deletedAt: string | null;
1599
2109
  oldId: number | null;
2110
+ isActive: boolean;
1600
2111
  regNumber: string;
1601
2112
  phone: string;
1602
2113
  serviceName: string;
@@ -1612,7 +2123,6 @@ export declare const app: Elysia<"", {
1612
2123
  isContract: boolean;
1613
2124
  isNoat: boolean;
1614
2125
  isNexus: boolean;
1615
- isActive: boolean;
1616
2126
  branchCount: number;
1617
2127
  };
1618
2128
  401: "Session not found";
@@ -1673,6 +2183,7 @@ export declare const app: Elysia<"", {
1673
2183
  updatedAt?: string | undefined;
1674
2184
  deletedAt?: string | null | undefined;
1675
2185
  oldId?: number | null | undefined;
2186
+ isActive?: boolean | undefined;
1676
2187
  regNumber?: string | null | undefined;
1677
2188
  phone?: string | undefined;
1678
2189
  logoUrl?: string | undefined;
@@ -1684,7 +2195,6 @@ export declare const app: Elysia<"", {
1684
2195
  ceoName?: string | null | undefined;
1685
2196
  googleMapUrl?: string | null | undefined;
1686
2197
  isNoat?: boolean | undefined;
1687
- isActive?: boolean | undefined;
1688
2198
  packageId?: string | undefined;
1689
2199
  merchantId?: string | undefined;
1690
2200
  pagination: {
@@ -1705,6 +2215,7 @@ export declare const app: Elysia<"", {
1705
2215
  updatedAt: string;
1706
2216
  deletedAt: string | null;
1707
2217
  oldId: number | null;
2218
+ isActive: boolean;
1708
2219
  regNumber: string | null;
1709
2220
  phone: string;
1710
2221
  logoUrl: string;
@@ -1716,7 +2227,6 @@ export declare const app: Elysia<"", {
1716
2227
  ceoName: string | null;
1717
2228
  googleMapUrl: string | null;
1718
2229
  isNoat: boolean;
1719
- isActive: boolean;
1720
2230
  packageId: string;
1721
2231
  merchantId: string;
1722
2232
  } & {
@@ -1741,6 +2251,7 @@ export declare const app: Elysia<"", {
1741
2251
  post: {
1742
2252
  body: {
1743
2253
  oldId?: number | null | undefined;
2254
+ isActive?: boolean | undefined;
1744
2255
  regNumber?: string | null | undefined;
1745
2256
  province?: string | null | undefined;
1746
2257
  district?: string | null | undefined;
@@ -1750,7 +2261,6 @@ export declare const app: Elysia<"", {
1750
2261
  ceoName?: string | null | undefined;
1751
2262
  googleMapUrl?: string | null | undefined;
1752
2263
  isNoat?: boolean | undefined;
1753
- isActive?: boolean | undefined;
1754
2264
  merchantId?: string | undefined;
1755
2265
  name: string;
1756
2266
  email: string | null;
@@ -1770,6 +2280,7 @@ export declare const app: Elysia<"", {
1770
2280
  updatedAt: string;
1771
2281
  deletedAt: string | null;
1772
2282
  oldId: number | null;
2283
+ isActive: boolean;
1773
2284
  regNumber: string | null;
1774
2285
  phone: string;
1775
2286
  logoUrl: string;
@@ -1781,7 +2292,6 @@ export declare const app: Elysia<"", {
1781
2292
  ceoName: string | null;
1782
2293
  googleMapUrl: string | null;
1783
2294
  isNoat: boolean;
1784
- isActive: boolean;
1785
2295
  packageId: string;
1786
2296
  merchantId: string;
1787
2297
  };
@@ -1806,6 +2316,7 @@ export declare const app: Elysia<"", {
1806
2316
  name?: string | undefined;
1807
2317
  email?: string | null | undefined;
1808
2318
  oldId?: number | null | undefined;
2319
+ isActive?: boolean | undefined;
1809
2320
  regNumber?: string | null | undefined;
1810
2321
  phone?: string | undefined;
1811
2322
  logoUrl?: string | undefined;
@@ -1817,7 +2328,6 @@ export declare const app: Elysia<"", {
1817
2328
  ceoName?: string | null | undefined;
1818
2329
  googleMapUrl?: string | null | undefined;
1819
2330
  isNoat?: boolean | undefined;
1820
- isActive?: boolean | undefined;
1821
2331
  packageId?: string | undefined;
1822
2332
  merchantId?: string | undefined;
1823
2333
  };
@@ -1835,6 +2345,7 @@ export declare const app: Elysia<"", {
1835
2345
  updatedAt: string;
1836
2346
  deletedAt: string | null;
1837
2347
  oldId: number | null;
2348
+ isActive: boolean;
1838
2349
  regNumber: string | null;
1839
2350
  phone: string;
1840
2351
  logoUrl: string;
@@ -1846,7 +2357,6 @@ export declare const app: Elysia<"", {
1846
2357
  ceoName: string | null;
1847
2358
  googleMapUrl: string | null;
1848
2359
  isNoat: boolean;
1849
- isActive: boolean;
1850
2360
  packageId: string;
1851
2361
  merchantId: string;
1852
2362
  };
@@ -2100,8 +2610,8 @@ export declare const app: Elysia<"", {
2100
2610
  body: {
2101
2611
  branchId?: string | null | undefined;
2102
2612
  oldId?: number | null | undefined;
2103
- serviceKindId?: string | null | undefined;
2104
2613
  description?: string | null | undefined;
2614
+ serviceKindId?: string | null | undefined;
2105
2615
  enabled?: boolean | undefined;
2106
2616
  name: string;
2107
2617
  price: number;
@@ -2119,9 +2629,9 @@ export declare const app: Elysia<"", {
2119
2629
  branchId: string | null;
2120
2630
  deletedAt: string | null;
2121
2631
  oldId: number | null;
2632
+ description: string | null;
2122
2633
  price: number;
2123
2634
  serviceKindId: string | null;
2124
- description: string | null;
2125
2635
  enabled: boolean;
2126
2636
  };
2127
2637
  401: "Session not found";
@@ -2145,9 +2655,9 @@ export declare const app: Elysia<"", {
2145
2655
  name?: string | undefined;
2146
2656
  branchId?: string | null | undefined;
2147
2657
  oldId?: number | null | undefined;
2658
+ description?: string | null | undefined;
2148
2659
  price?: number | undefined;
2149
2660
  serviceKindId?: string | null | undefined;
2150
- description?: string | null | undefined;
2151
2661
  enabled?: boolean | undefined;
2152
2662
  };
2153
2663
  params: {
@@ -3299,6 +3809,7 @@ export declare const app: Elysia<"", {
3299
3809
  200: {
3300
3810
  cpOrderId: string;
3301
3811
  };
3812
+ 400: "Багцаас үйлчилгээ устгах боломжгүй.";
3302
3813
  401: "Session not found";
3303
3814
  404: "Үйлчилгээ олдсонгүй.";
3304
3815
  422: {
@@ -3466,7 +3977,7 @@ export declare const app: Elysia<"", {
3466
3977
  body: unknown;
3467
3978
  params: {
3468
3979
  id: string;
3469
- };
3980
+ } & {};
3470
3981
  query: unknown;
3471
3982
  headers: unknown;
3472
3983
  response: {
@@ -3545,7 +4056,7 @@ export declare const app: Elysia<"", {
3545
4056
  body: unknown;
3546
4057
  params: {
3547
4058
  id: string;
3548
- };
4059
+ } & {};
3549
4060
  query: unknown;
3550
4061
  headers: unknown;
3551
4062
  response: {
@@ -3573,7 +4084,7 @@ export declare const app: Elysia<"", {
3573
4084
  body: unknown;
3574
4085
  params: {
3575
4086
  id: string;
3576
- };
4087
+ } & {};
3577
4088
  query: unknown;
3578
4089
  headers: unknown;
3579
4090
  response: {
@@ -3602,7 +4113,7 @@ export declare const app: Elysia<"", {
3602
4113
  body: unknown;
3603
4114
  params: {
3604
4115
  id: string;
3605
- };
4116
+ } & {};
3606
4117
  query: unknown;
3607
4118
  headers: unknown;
3608
4119
  response: {
@@ -3887,6 +4398,7 @@ export declare const app: Elysia<"", {
3887
4398
  timeCompleted: string | null;
3888
4399
  km: number;
3889
4400
  type: "Service" | "ProductSell";
4401
+ description: string | null;
3890
4402
  id: string;
3891
4403
  createdAt: string;
3892
4404
  updatedAt: string;
@@ -4006,6 +4518,7 @@ export declare const app: Elysia<"", {
4006
4518
  timeCompleted: string | null;
4007
4519
  km: number;
4008
4520
  type: "Service" | "ProductSell";
4521
+ description: string | null;
4009
4522
  id: string;
4010
4523
  createdAt: string;
4011
4524
  updatedAt: string;
@@ -4118,6 +4631,7 @@ export declare const app: Elysia<"", {
4118
4631
  companyId: string;
4119
4632
  deletedAt: string | null;
4120
4633
  oldId: number | null;
4634
+ description: string | null;
4121
4635
  isNoat: boolean | null;
4122
4636
  companyBranchId: string;
4123
4637
  customerId: string | null;
@@ -4170,6 +4684,34 @@ export declare const app: Elysia<"", {
4170
4684
  };
4171
4685
  };
4172
4686
  };
4687
+ } & {
4688
+ "cp-order": {
4689
+ package: {
4690
+ ":id": {
4691
+ delete: {
4692
+ body: unknown;
4693
+ params: {
4694
+ id: string;
4695
+ };
4696
+ query: unknown;
4697
+ headers: unknown;
4698
+ response: {
4699
+ 401: "Session not found";
4700
+ 404: "Багц олдсонгүй.";
4701
+ 422: {
4702
+ type: "validation";
4703
+ on: string;
4704
+ summary?: string;
4705
+ message?: string;
4706
+ found?: unknown;
4707
+ property?: string;
4708
+ expected?: string;
4709
+ };
4710
+ };
4711
+ };
4712
+ };
4713
+ };
4714
+ };
4173
4715
  } & {
4174
4716
  "cp-order": {
4175
4717
  complete: {
@@ -4193,6 +4735,7 @@ export declare const app: Elysia<"", {
4193
4735
  timeCompleted: string | null;
4194
4736
  km: number;
4195
4737
  type: "Service" | "ProductSell";
4738
+ description: string | null;
4196
4739
  id: string;
4197
4740
  createdAt: string;
4198
4741
  updatedAt: string;
@@ -4236,6 +4779,7 @@ export declare const app: Elysia<"", {
4236
4779
  type?: "Service" | "ProductSell" | undefined;
4237
4780
  companyId?: string | undefined;
4238
4781
  oldId?: number | null | undefined;
4782
+ description?: string | null | undefined;
4239
4783
  isNoat?: boolean | null | undefined;
4240
4784
  companyBranchId?: string | undefined;
4241
4785
  customerId?: string | null | undefined;
@@ -4262,6 +4806,7 @@ export declare const app: Elysia<"", {
4262
4806
  timeCompleted: string | null;
4263
4807
  km: number;
4264
4808
  type: "Service" | "ProductSell";
4809
+ description: string | null;
4265
4810
  id: string;
4266
4811
  createdAt: string;
4267
4812
  updatedAt: string;
@@ -5569,7 +6114,7 @@ export declare const app: Elysia<"", {
5569
6114
  };
5570
6115
  params: {
5571
6116
  id: string;
5572
- };
6117
+ } & {};
5573
6118
  query: unknown;
5574
6119
  headers: unknown;
5575
6120
  response: {
@@ -6711,6 +7256,7 @@ export declare const app: Elysia<"", {
6711
7256
  timeCompleted: string | null;
6712
7257
  km: number;
6713
7258
  type: "Service" | "ProductSell";
7259
+ description: string | null;
6714
7260
  id: string;
6715
7261
  createdAt: string;
6716
7262
  updatedAt: string;
@@ -6949,6 +7495,7 @@ export declare const app: Elysia<"", {
6949
7495
  timeCompleted: string | null;
6950
7496
  km: number;
6951
7497
  type: "Service" | "ProductSell";
7498
+ description: string | null;
6952
7499
  id: string;
6953
7500
  createdAt: string;
6954
7501
  updatedAt: string;
@@ -7432,6 +7979,50 @@ export declare const app: Elysia<"", {
7432
7979
  };
7433
7980
  };
7434
7981
  };
7982
+ } & {
7983
+ vehicleKind: {
7984
+ post: {
7985
+ body: {
7986
+ oldId?: number | null | undefined;
7987
+ description?: string | null | undefined;
7988
+ parentId?: string | null | undefined;
7989
+ yearStart?: number | null | undefined;
7990
+ yearEnd?: number | null | undefined;
7991
+ imagePath?: string | null | undefined;
7992
+ name: string;
7993
+ vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
7994
+ };
7995
+ params: {};
7996
+ query: {};
7997
+ headers: {};
7998
+ response: {
7999
+ 200: {
8000
+ name: string;
8001
+ id: string;
8002
+ createdAt: string;
8003
+ updatedAt: string;
8004
+ deletedAt: string | null;
8005
+ oldId: number | null;
8006
+ description: string | null;
8007
+ vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
8008
+ parentId: string | null;
8009
+ yearStart: number | null;
8010
+ yearEnd: number | null;
8011
+ imagePath: string | null;
8012
+ };
8013
+ 401: "Session not found";
8014
+ 422: {
8015
+ type: "validation";
8016
+ on: string;
8017
+ summary?: string;
8018
+ message?: string;
8019
+ found?: unknown;
8020
+ property?: string;
8021
+ expected?: string;
8022
+ };
8023
+ };
8024
+ };
8025
+ };
7435
8026
  } & {
7436
8027
  vehicleKind: {
7437
8028
  ":id": {
@@ -7666,8 +8257,8 @@ export declare const app: Elysia<"", {
7666
8257
  required?: boolean | undefined;
7667
8258
  code?: string | null | undefined;
7668
8259
  oldId?: number | null | undefined;
7669
- isActive?: boolean | undefined;
7670
8260
  description?: string | null | undefined;
8261
+ isActive?: boolean | undefined;
7671
8262
  version?: string | null | undefined;
7672
8263
  metadata?: import("drizzle-typebox").Json | undefined;
7673
8264
  fieldGroup?: string | null | undefined;
@@ -7698,8 +8289,8 @@ export declare const app: Elysia<"", {
7698
8289
  required?: boolean | undefined;
7699
8290
  code?: string | null | undefined;
7700
8291
  oldId?: number | null | undefined;
7701
- isActive?: boolean | undefined;
7702
8292
  description?: string | null | undefined;
8293
+ isActive?: boolean | undefined;
7703
8294
  version?: string | null | undefined;
7704
8295
  metadata?: import("drizzle-typebox").Json | undefined;
7705
8296
  fieldGroup?: string | null | undefined;
@@ -7801,8 +8392,8 @@ export declare const app: Elysia<"", {
7801
8392
  body: {
7802
8393
  companyId?: string | null | undefined;
7803
8394
  oldId?: number | null | undefined;
7804
- isActive?: boolean | undefined;
7805
8395
  description?: string | null | undefined;
8396
+ isActive?: boolean | undefined;
7806
8397
  version?: string | null | undefined;
7807
8398
  name: string;
7808
8399
  };
@@ -7867,8 +8458,8 @@ export declare const app: Elysia<"", {
7867
8458
  name?: string | undefined;
7868
8459
  companyId?: string | null | undefined;
7869
8460
  oldId?: number | null | undefined;
7870
- isActive?: boolean | undefined;
7871
8461
  description?: string | null | undefined;
8462
+ isActive?: boolean | undefined;
7872
8463
  version?: string | null | undefined;
7873
8464
  };
7874
8465
  params: {
@@ -8414,38 +9005,279 @@ export declare const app: Elysia<"", {
8414
9005
  };
8415
9006
  };
8416
9007
  };
8417
- } & {
8418
- template: {
8419
- get: {
8420
- body: unknown;
8421
- params: {};
8422
- query: {
8423
- pagination: {
8424
- size: number;
8425
- page: number;
8426
- };
9008
+ } & {
9009
+ template: {
9010
+ get: {
9011
+ body: unknown;
9012
+ params: {};
9013
+ query: {
9014
+ pagination: {
9015
+ size: number;
9016
+ page: number;
9017
+ };
9018
+ };
9019
+ headers: unknown;
9020
+ response: {
9021
+ 200: {
9022
+ totalCount: number;
9023
+ totalPage: number;
9024
+ result: Omit<{
9025
+ totalCount: number;
9026
+ machineKindId: string;
9027
+ companyId: string | null;
9028
+ operationAmount: number | null;
9029
+ uomId: string;
9030
+ serviceKindId: string;
9031
+ name: string;
9032
+ description: string | null;
9033
+ id: string;
9034
+ createdAt: string;
9035
+ updatedAt: string;
9036
+ deletedAt: string | null;
9037
+ oldId: number | null;
9038
+ }, "totalCount">[];
9039
+ };
9040
+ 422: {
9041
+ type: "validation";
9042
+ on: string;
9043
+ summary?: string;
9044
+ message?: string;
9045
+ found?: unknown;
9046
+ property?: string;
9047
+ expected?: string;
9048
+ };
9049
+ };
9050
+ };
9051
+ };
9052
+ } & {
9053
+ template: {
9054
+ post: {
9055
+ body: {
9056
+ companyId?: string | null | undefined;
9057
+ oldId?: number | null | undefined;
9058
+ description?: string | null | undefined;
9059
+ operationAmount?: number | null | undefined;
9060
+ name: string;
9061
+ serviceKindId: string;
9062
+ machineKindId: string;
9063
+ uomId: string;
9064
+ };
9065
+ params: {};
9066
+ query: unknown;
9067
+ headers: unknown;
9068
+ response: {
9069
+ 422: {
9070
+ type: "validation";
9071
+ on: string;
9072
+ summary?: string;
9073
+ message?: string;
9074
+ found?: unknown;
9075
+ property?: string;
9076
+ expected?: string;
9077
+ };
9078
+ };
9079
+ };
9080
+ };
9081
+ } & {
9082
+ template: {
9083
+ ":id": {
9084
+ put: {
9085
+ body: {
9086
+ name?: string | undefined;
9087
+ companyId?: string | null | undefined;
9088
+ oldId?: number | null | undefined;
9089
+ description?: string | null | undefined;
9090
+ serviceKindId?: string | undefined;
9091
+ machineKindId?: string | undefined;
9092
+ operationAmount?: number | null | undefined;
9093
+ uomId?: string | undefined;
9094
+ };
9095
+ params: {
9096
+ id: string;
9097
+ };
9098
+ query: unknown;
9099
+ headers: unknown;
9100
+ response: {
9101
+ 422: {
9102
+ type: "validation";
9103
+ on: string;
9104
+ summary?: string;
9105
+ message?: string;
9106
+ found?: unknown;
9107
+ property?: string;
9108
+ expected?: string;
9109
+ };
9110
+ };
9111
+ };
9112
+ };
9113
+ };
9114
+ } & {
9115
+ template: {
9116
+ ":id": {
9117
+ delete: {
9118
+ body: unknown;
9119
+ params: {
9120
+ id: string;
9121
+ };
9122
+ query: unknown;
9123
+ headers: unknown;
9124
+ response: {
9125
+ 422: {
9126
+ type: "validation";
9127
+ on: string;
9128
+ summary?: string;
9129
+ message?: string;
9130
+ found?: unknown;
9131
+ property?: string;
9132
+ expected?: string;
9133
+ };
9134
+ };
9135
+ };
9136
+ };
9137
+ };
9138
+ };
9139
+ };
9140
+ } & {
9141
+ fleet: {
9142
+ machine: {};
9143
+ } & {
9144
+ machine: {
9145
+ get: {
9146
+ body: unknown;
9147
+ params: {};
9148
+ query: {
9149
+ pagination: {
9150
+ size: number;
9151
+ page: number;
9152
+ };
9153
+ };
9154
+ headers: unknown;
9155
+ response: {
9156
+ 200: {
9157
+ totalCount: number;
9158
+ totalPage: number;
9159
+ result: Omit<{
9160
+ totalCount: number;
9161
+ companyId: string | null;
9162
+ machineKindId: string;
9163
+ customerId: string | null;
9164
+ name: string | null;
9165
+ assetCode: string | null;
9166
+ vin: string | null;
9167
+ licensePlate: string | null;
9168
+ color: string | null;
9169
+ engineCc: string | null;
9170
+ cylinder: string | null;
9171
+ gasType: string | null;
9172
+ transmissionType: string | null;
9173
+ vehicleType: string | null;
9174
+ yearManufacture: number | null;
9175
+ yearImport: number | null;
9176
+ steering: string | null;
9177
+ engineCode: string | null;
9178
+ transmissionCode: string | null;
9179
+ driveTrain: string | null;
9180
+ km: number;
9181
+ customData: unknown;
9182
+ id: string;
9183
+ createdAt: string;
9184
+ updatedAt: string;
9185
+ deletedAt: string | null;
9186
+ oldId: number | null;
9187
+ }, "totalCount">[];
9188
+ };
9189
+ 401: "Session not found";
9190
+ 422: {
9191
+ type: "validation";
9192
+ on: string;
9193
+ summary?: string;
9194
+ message?: string;
9195
+ found?: unknown;
9196
+ property?: string;
9197
+ expected?: string;
9198
+ };
9199
+ };
9200
+ };
9201
+ };
9202
+ } & {
9203
+ machine: {
9204
+ post: {
9205
+ body: {
9206
+ name?: string | null | undefined;
9207
+ companyId?: string | null | undefined;
9208
+ oldId?: number | null | undefined;
9209
+ customerId?: string | null | undefined;
9210
+ licensePlate?: string | null | undefined;
9211
+ assetCode?: string | null | undefined;
9212
+ vin?: string | null | undefined;
9213
+ color?: string | null | undefined;
9214
+ engineCc?: string | null | undefined;
9215
+ cylinder?: string | null | undefined;
9216
+ gasType?: string | null | undefined;
9217
+ transmissionType?: string | null | undefined;
9218
+ vehicleType?: string | null | undefined;
9219
+ yearManufacture?: number | null | undefined;
9220
+ yearImport?: number | null | undefined;
9221
+ steering?: string | null | undefined;
9222
+ engineCode?: string | null | undefined;
9223
+ transmissionCode?: string | null | undefined;
9224
+ driveTrain?: string | null | undefined;
9225
+ km?: number | undefined;
9226
+ customData?: import("drizzle-typebox").Json | undefined;
9227
+ machineKindId: string;
9228
+ };
9229
+ params: {};
9230
+ query: unknown;
9231
+ headers: unknown;
9232
+ response: {
9233
+ 401: "Session not found";
9234
+ 422: {
9235
+ type: "validation";
9236
+ on: string;
9237
+ summary?: string;
9238
+ message?: string;
9239
+ found?: unknown;
9240
+ property?: string;
9241
+ expected?: string;
9242
+ };
9243
+ };
9244
+ };
9245
+ };
9246
+ } & {
9247
+ machine: {
9248
+ ":id": {
9249
+ put: {
9250
+ body: {
9251
+ name?: string | null | undefined;
9252
+ companyId?: string | null | undefined;
9253
+ oldId?: number | null | undefined;
9254
+ customerId?: string | null | undefined;
9255
+ licensePlate?: string | null | undefined;
9256
+ machineKindId?: string | undefined;
9257
+ assetCode?: string | null | undefined;
9258
+ vin?: string | null | undefined;
9259
+ color?: string | null | undefined;
9260
+ engineCc?: string | null | undefined;
9261
+ cylinder?: string | null | undefined;
9262
+ gasType?: string | null | undefined;
9263
+ transmissionType?: string | null | undefined;
9264
+ vehicleType?: string | null | undefined;
9265
+ yearManufacture?: number | null | undefined;
9266
+ yearImport?: number | null | undefined;
9267
+ steering?: string | null | undefined;
9268
+ engineCode?: string | null | undefined;
9269
+ transmissionCode?: string | null | undefined;
9270
+ driveTrain?: string | null | undefined;
9271
+ km?: number | undefined;
9272
+ customData?: import("drizzle-typebox").Json | undefined;
8427
9273
  };
9274
+ params: {
9275
+ id: string;
9276
+ };
9277
+ query: unknown;
8428
9278
  headers: unknown;
8429
9279
  response: {
8430
- 200: {
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
- };
9280
+ 401: "Session not found";
8449
9281
  422: {
8450
9282
  type: "validation";
8451
9283
  on: string;
@@ -8458,23 +9290,19 @@ export declare const app: Elysia<"", {
8458
9290
  };
8459
9291
  };
8460
9292
  };
8461
- } & {
8462
- template: {
8463
- post: {
8464
- body: {
8465
- companyId?: string | null | undefined;
8466
- oldId?: number | null | undefined;
8467
- description?: string | null | undefined;
8468
- operationAmount?: number | null | undefined;
8469
- name: string;
8470
- serviceKindId: string;
8471
- machineKindId: string;
8472
- uomId: string;
9293
+ };
9294
+ } & {
9295
+ machine: {
9296
+ ":id": {
9297
+ delete: {
9298
+ body: unknown;
9299
+ params: {
9300
+ id: string;
8473
9301
  };
8474
- params: {};
8475
9302
  query: unknown;
8476
9303
  headers: unknown;
8477
9304
  response: {
9305
+ 401: "Session not found";
8478
9306
  422: {
8479
9307
  type: "validation";
8480
9308
  on: string;
@@ -8487,59 +9315,147 @@ export declare const app: Elysia<"", {
8487
9315
  };
8488
9316
  };
8489
9317
  };
8490
- } & {
8491
- template: {
8492
- ":id": {
8493
- put: {
8494
- body: {
8495
- name?: string | undefined;
8496
- companyId?: string | null | undefined;
8497
- oldId?: number | null | undefined;
8498
- serviceKindId?: string | undefined;
8499
- description?: string | null | undefined;
8500
- machineKindId?: string | undefined;
8501
- operationAmount?: number | null | undefined;
8502
- uomId?: string | undefined;
8503
- };
8504
- params: {
9318
+ };
9319
+ };
9320
+ };
9321
+ } & {
9322
+ api: {
9323
+ uom: {};
9324
+ } & {
9325
+ uom: {
9326
+ category: {};
9327
+ } & {
9328
+ category: {
9329
+ get: {
9330
+ body: unknown;
9331
+ params: {};
9332
+ query: {
9333
+ pagination: {
9334
+ size: number;
9335
+ page: number;
9336
+ };
9337
+ };
9338
+ headers: unknown;
9339
+ response: {
9340
+ 200: {
9341
+ totalCount: number;
9342
+ totalPage: number;
9343
+ result: Omit<{
9344
+ totalCount: number;
9345
+ name: string;
9346
+ description: string | null;
8505
9347
  id: string;
8506
- };
8507
- query: unknown;
8508
- headers: unknown;
8509
- response: {
8510
- 422: {
8511
- type: "validation";
8512
- on: string;
8513
- summary?: string;
8514
- message?: string;
8515
- found?: unknown;
8516
- property?: string;
8517
- expected?: string;
8518
- };
8519
- };
9348
+ createdAt: string;
9349
+ updatedAt: string;
9350
+ deletedAt: string | null;
9351
+ oldId: number | null;
9352
+ }, "totalCount">[];
9353
+ };
9354
+ 401: "Session not found";
9355
+ 422: {
9356
+ type: "validation";
9357
+ on: string;
9358
+ summary?: string;
9359
+ message?: string;
9360
+ found?: unknown;
9361
+ property?: string;
9362
+ expected?: string;
8520
9363
  };
8521
9364
  };
8522
9365
  };
8523
- } & {
8524
- template: {
8525
- ":id": {
8526
- delete: {
8527
- body: unknown;
8528
- params: {
9366
+ };
9367
+ } & {
9368
+ category: {
9369
+ post: {
9370
+ body: {
9371
+ oldId?: number | null | undefined;
9372
+ description?: string | null | undefined;
9373
+ name: string;
9374
+ };
9375
+ params: {};
9376
+ query: unknown;
9377
+ headers: unknown;
9378
+ response: {
9379
+ 200: {
9380
+ name: string;
9381
+ id: string;
9382
+ createdAt: string;
9383
+ updatedAt: string;
9384
+ deletedAt: string | null;
9385
+ oldId: number | null;
9386
+ description: string | null;
9387
+ };
9388
+ 401: "Session not found";
9389
+ 422: {
9390
+ type: "validation";
9391
+ on: string;
9392
+ summary?: string;
9393
+ message?: string;
9394
+ found?: unknown;
9395
+ property?: string;
9396
+ expected?: string;
9397
+ };
9398
+ };
9399
+ };
9400
+ };
9401
+ } & {
9402
+ category: {
9403
+ ":id": {
9404
+ put: {
9405
+ body: {
9406
+ name?: string | undefined;
9407
+ oldId?: number | null | undefined;
9408
+ description?: string | null | undefined;
9409
+ };
9410
+ params: {
9411
+ id: string;
9412
+ };
9413
+ query: unknown;
9414
+ headers: unknown;
9415
+ response: {
9416
+ 200: {
9417
+ name: string;
9418
+ description: string | null;
8529
9419
  id: string;
9420
+ createdAt: string;
9421
+ updatedAt: string;
9422
+ deletedAt: string | null;
9423
+ oldId: number | null;
8530
9424
  };
8531
- query: unknown;
8532
- headers: unknown;
8533
- response: {
8534
- 422: {
8535
- type: "validation";
8536
- on: string;
8537
- summary?: string;
8538
- message?: string;
8539
- found?: unknown;
8540
- property?: string;
8541
- expected?: string;
8542
- };
9425
+ 401: "Session not found";
9426
+ 422: {
9427
+ type: "validation";
9428
+ on: string;
9429
+ summary?: string;
9430
+ message?: string;
9431
+ found?: unknown;
9432
+ property?: string;
9433
+ expected?: string;
9434
+ };
9435
+ };
9436
+ };
9437
+ };
9438
+ };
9439
+ } & {
9440
+ category: {
9441
+ ":id": {
9442
+ delete: {
9443
+ body: unknown;
9444
+ params: {
9445
+ id: string;
9446
+ };
9447
+ query: unknown;
9448
+ headers: unknown;
9449
+ response: {
9450
+ 401: "Session not found";
9451
+ 422: {
9452
+ type: "validation";
9453
+ on: string;
9454
+ summary?: string;
9455
+ message?: string;
9456
+ found?: unknown;
9457
+ property?: string;
9458
+ expected?: string;
8543
9459
  };
8544
9460
  };
8545
9461
  };
@@ -8547,14 +9463,16 @@ export declare const app: Elysia<"", {
8547
9463
  };
8548
9464
  };
8549
9465
  } & {
8550
- fleet: {
8551
- machine: {};
9466
+ uom: {
9467
+ conversion: {};
8552
9468
  } & {
8553
- machine: {
9469
+ conversion: {
8554
9470
  get: {
8555
9471
  body: unknown;
8556
9472
  params: {};
8557
9473
  query: {
9474
+ uomOneId?: string | undefined;
9475
+ uomTwoId?: string | undefined;
8558
9476
  pagination: {
8559
9477
  size: number;
8560
9478
  page: number;
@@ -8567,27 +9485,10 @@ export declare const app: Elysia<"", {
8567
9485
  totalPage: number;
8568
9486
  result: Omit<{
8569
9487
  totalCount: number;
8570
- companyId: string | null;
8571
- machineKindId: string;
8572
- customerId: string | null;
8573
- name: string | null;
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;
9488
+ uomOneId: string;
9489
+ uomTwoId: string;
9490
+ factor: number | null;
9491
+ isActive: boolean;
8591
9492
  id: string;
8592
9493
  createdAt: string;
8593
9494
  updatedAt: string;
@@ -8609,36 +9510,30 @@ export declare const app: Elysia<"", {
8609
9510
  };
8610
9511
  };
8611
9512
  } & {
8612
- machine: {
9513
+ conversion: {
8613
9514
  post: {
8614
9515
  body: {
8615
- name?: string | null | undefined;
8616
- companyId?: string | null | undefined;
8617
9516
  oldId?: number | null | undefined;
8618
- customerId?: string | null | undefined;
8619
- licensePlate?: string | null | undefined;
8620
- assetCode?: string | null | undefined;
8621
- vin?: string | null | undefined;
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;
9517
+ factor?: number | null | undefined;
9518
+ isActive?: boolean | undefined;
9519
+ uomOneId: string;
9520
+ uomTwoId: string;
8637
9521
  };
8638
9522
  params: {};
8639
9523
  query: unknown;
8640
9524
  headers: unknown;
8641
9525
  response: {
9526
+ 200: {
9527
+ id: string;
9528
+ createdAt: string;
9529
+ updatedAt: string;
9530
+ deletedAt: string | null;
9531
+ oldId: number | null;
9532
+ uomOneId: string;
9533
+ uomTwoId: string;
9534
+ factor: number | null;
9535
+ isActive: boolean;
9536
+ };
8642
9537
  401: "Session not found";
8643
9538
  422: {
8644
9539
  type: "validation";
@@ -8653,32 +9548,15 @@ export declare const app: Elysia<"", {
8653
9548
  };
8654
9549
  };
8655
9550
  } & {
8656
- machine: {
9551
+ conversion: {
8657
9552
  ":id": {
8658
9553
  put: {
8659
9554
  body: {
8660
- name?: string | null | undefined;
8661
- companyId?: string | null | undefined;
8662
9555
  oldId?: number | null | undefined;
8663
- customerId?: string | null | undefined;
8664
- licensePlate?: string | null | undefined;
8665
- machineKindId?: string | undefined;
8666
- assetCode?: string | null | undefined;
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;
9556
+ uomOneId?: string | undefined;
9557
+ uomTwoId?: string | undefined;
9558
+ factor?: number | null | undefined;
9559
+ isActive?: boolean | undefined;
8682
9560
  };
8683
9561
  params: {
8684
9562
  id: string;
@@ -8686,6 +9564,17 @@ export declare const app: Elysia<"", {
8686
9564
  query: unknown;
8687
9565
  headers: unknown;
8688
9566
  response: {
9567
+ 200: {
9568
+ uomOneId: string;
9569
+ uomTwoId: string;
9570
+ factor: number | null;
9571
+ isActive: boolean;
9572
+ id: string;
9573
+ createdAt: string;
9574
+ updatedAt: string;
9575
+ deletedAt: string | null;
9576
+ oldId: number | null;
9577
+ };
8689
9578
  401: "Session not found";
8690
9579
  422: {
8691
9580
  type: "validation";
@@ -8701,7 +9590,7 @@ export declare const app: Elysia<"", {
8701
9590
  };
8702
9591
  };
8703
9592
  } & {
8704
- machine: {
9593
+ conversion: {
8705
9594
  ":id": {
8706
9595
  delete: {
8707
9596
  body: unknown;
@@ -8726,6 +9615,165 @@ export declare const app: Elysia<"", {
8726
9615
  };
8727
9616
  };
8728
9617
  };
9618
+ } & {
9619
+ uom: {
9620
+ get: {
9621
+ body: unknown;
9622
+ params: {};
9623
+ query: {
9624
+ uomCategoryId?: string | undefined;
9625
+ pagination: {
9626
+ size: number;
9627
+ page: number;
9628
+ };
9629
+ };
9630
+ headers: unknown;
9631
+ response: {
9632
+ 200: {
9633
+ totalCount: number;
9634
+ totalPage: number;
9635
+ result: Omit<{
9636
+ totalCount: number;
9637
+ uomCategoryId: string;
9638
+ code: string | null;
9639
+ name: string;
9640
+ description: string | null;
9641
+ symbol: string | null;
9642
+ isBaseUnit: boolean;
9643
+ baseFactor: number | null;
9644
+ id: string;
9645
+ createdAt: string;
9646
+ updatedAt: string;
9647
+ deletedAt: string | null;
9648
+ oldId: number | null;
9649
+ }, "totalCount">[];
9650
+ };
9651
+ 422: {
9652
+ type: "validation";
9653
+ on: string;
9654
+ summary?: string;
9655
+ message?: string;
9656
+ found?: unknown;
9657
+ property?: string;
9658
+ expected?: string;
9659
+ };
9660
+ };
9661
+ };
9662
+ };
9663
+ } & {
9664
+ uom: {
9665
+ post: {
9666
+ body: {
9667
+ symbol?: string | null | undefined;
9668
+ code?: string | null | undefined;
9669
+ oldId?: number | null | undefined;
9670
+ description?: string | null | undefined;
9671
+ isBaseUnit?: boolean | undefined;
9672
+ baseFactor?: number | null | undefined;
9673
+ name: string;
9674
+ uomCategoryId: string;
9675
+ };
9676
+ params: {};
9677
+ query: unknown;
9678
+ headers: unknown;
9679
+ response: {
9680
+ 200: {
9681
+ symbol: string | null;
9682
+ name: string;
9683
+ id: string;
9684
+ createdAt: string;
9685
+ updatedAt: string;
9686
+ code: string | null;
9687
+ deletedAt: string | null;
9688
+ oldId: number | null;
9689
+ description: string | null;
9690
+ uomCategoryId: string;
9691
+ isBaseUnit: boolean;
9692
+ baseFactor: number | null;
9693
+ };
9694
+ 422: {
9695
+ type: "validation";
9696
+ on: string;
9697
+ summary?: string;
9698
+ message?: string;
9699
+ found?: unknown;
9700
+ property?: string;
9701
+ expected?: string;
9702
+ };
9703
+ };
9704
+ };
9705
+ };
9706
+ } & {
9707
+ uom: {
9708
+ ":id": {
9709
+ put: {
9710
+ body: {
9711
+ symbol?: string | null | undefined;
9712
+ name?: string | undefined;
9713
+ code?: string | null | undefined;
9714
+ oldId?: number | null | undefined;
9715
+ description?: string | null | undefined;
9716
+ uomCategoryId?: string | undefined;
9717
+ isBaseUnit?: boolean | undefined;
9718
+ baseFactor?: number | null | undefined;
9719
+ };
9720
+ params: {
9721
+ id: string;
9722
+ };
9723
+ query: unknown;
9724
+ headers: unknown;
9725
+ response: {
9726
+ 200: {
9727
+ uomCategoryId: string;
9728
+ code: string | null;
9729
+ name: string;
9730
+ description: string | null;
9731
+ symbol: string | null;
9732
+ isBaseUnit: boolean;
9733
+ baseFactor: number | null;
9734
+ id: string;
9735
+ createdAt: string;
9736
+ updatedAt: string;
9737
+ deletedAt: string | null;
9738
+ oldId: number | null;
9739
+ };
9740
+ 422: {
9741
+ type: "validation";
9742
+ on: string;
9743
+ summary?: string;
9744
+ message?: string;
9745
+ found?: unknown;
9746
+ property?: string;
9747
+ expected?: string;
9748
+ };
9749
+ };
9750
+ };
9751
+ };
9752
+ };
9753
+ } & {
9754
+ uom: {
9755
+ ":id": {
9756
+ delete: {
9757
+ body: unknown;
9758
+ params: {
9759
+ id: string;
9760
+ };
9761
+ query: unknown;
9762
+ headers: unknown;
9763
+ response: {
9764
+ 422: {
9765
+ type: "validation";
9766
+ on: string;
9767
+ summary?: string;
9768
+ message?: string;
9769
+ found?: unknown;
9770
+ property?: string;
9771
+ expected?: string;
9772
+ };
9773
+ };
9774
+ };
9775
+ };
9776
+ };
8729
9777
  };
8730
9778
  }, {
8731
9779
  derive: {};
@@ -8739,5 +9787,29 @@ export declare const app: Elysia<"", {
8739
9787
  schema: {};
8740
9788
  standaloneSchema: {};
8741
9789
  response: {};
9790
+ } & {
9791
+ derive: {};
9792
+ resolve: {};
9793
+ schema: {};
9794
+ standaloneSchema: {};
9795
+ response: {};
9796
+ } & {
9797
+ derive: {};
9798
+ resolve: {};
9799
+ schema: {};
9800
+ standaloneSchema: {};
9801
+ response: {};
9802
+ } & {
9803
+ derive: {};
9804
+ resolve: {};
9805
+ schema: {};
9806
+ standaloneSchema: {};
9807
+ response: {};
9808
+ } & {
9809
+ derive: {};
9810
+ resolve: {};
9811
+ schema: {};
9812
+ standaloneSchema: {};
9813
+ response: {};
8742
9814
  }>;
8743
9815
  export type App = typeof app;