autosync_backend2 1.2.52 → 1.2.56

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 +1558 -1421
  2. package/dist/index.js +649 -247
  3. package/package.json +10 -10
package/dist/index.d.ts CHANGED
@@ -50,7 +50,12 @@ export declare const app: Elysia<"", {
50
50
  } & {
51
51
  schema: {};
52
52
  standaloneSchema: {};
53
- macro: Partial<import("elysia").MacroToProperty<{
53
+ macro: Partial<{
54
+ readonly auth: boolean;
55
+ readonly userKind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
56
+ readonly permission: "INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN" | ("INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN")[];
57
+ }>;
58
+ macroFn: {
54
59
  readonly auth: {
55
60
  readonly resolve: ({ request: { headers } }: {
56
61
  body: unknown;
@@ -526,536 +531,59 @@ export declare const app: Elysia<"", {
526
531
  permissions: ("INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN")[];
527
532
  }>;
528
533
  };
529
- }>>;
530
- macroFn: {
531
- readonly auth: {
532
- readonly resolve: ({ request: { headers } }: {
533
- body: unknown;
534
- query: Record<string, string>;
535
- params: {};
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>;
534
+ };
535
+ parser: {};
536
+ response: {};
537
+ }, {
538
+ health: {
539
+ get: {
540
+ body: unknown;
541
+ params: {};
542
+ query: unknown;
543
+ headers: unknown;
544
+ response: {
545
+ 200: string;
546
+ };
547
+ };
548
+ };
549
+ } & {
550
+ api: {
551
+ image: {};
552
+ } & {
553
+ image: {
554
+ post: {
555
+ body: {
556
+ image: File;
557
+ folder: string;
545
558
  };
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", "Токен олдсонгүй", 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;
559
+ params: {};
560
+ query: {};
561
+ headers: {};
562
+ response: {
563
+ 200: {
564
+ path: string;
565
+ };
566
+ 401: "Токен олдсонгүй";
567
+ 422: {
568
+ type: "validation";
569
+ on: string;
570
+ summary?: string;
571
+ message?: string;
572
+ found?: unknown;
573
+ property?: string;
574
+ expected?: string;
575
+ };
686
576
  };
687
- }>;
577
+ };
688
578
  };
689
- readonly userKind: (input: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION") => {
690
- readonly resolve: ({ request: { headers } }: {
579
+ } & {
580
+ image: {
581
+ get: {
691
582
  body: unknown;
692
- query: Record<string, string>;
693
583
  params: {};
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", "Токен олдсонгүй", 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", "Токен олдсонгүй", 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: "Токен олдсонгүй";
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;
584
+ query: {
585
+ name: string;
586
+ folder: string;
1059
587
  };
1060
588
  headers: unknown;
1061
589
  response: {
@@ -1409,6 +937,7 @@ export declare const app: Elysia<"", {
1409
937
  description: string | null;
1410
938
  };
1411
939
  401: "Токен олдсонгүй";
940
+ 403: "Хандах эрхгүй байна.";
1412
941
  422: {
1413
942
  type: "validation";
1414
943
  on: string;
@@ -1448,6 +977,7 @@ export declare const app: Elysia<"", {
1448
977
  oldId: number | null;
1449
978
  };
1450
979
  401: "Токен олдсонгүй";
980
+ 403: "Хандах эрхгүй байна.";
1451
981
  404: "Агуулах олдсонгүй.";
1452
982
  422: {
1453
983
  type: "validation";
@@ -1474,6 +1004,7 @@ export declare const app: Elysia<"", {
1474
1004
  headers: unknown;
1475
1005
  response: {
1476
1006
  401: "Токен олдсонгүй";
1007
+ 403: "Хандах эрхгүй байна.";
1477
1008
  422: {
1478
1009
  type: "validation";
1479
1010
  on: string;
@@ -1571,6 +1102,8 @@ export declare const app: Elysia<"", {
1571
1102
  };
1572
1103
  }[];
1573
1104
  };
1105
+ 401: "Токен олдсонгүй";
1106
+ 403: "Хандах эрхгүй байна.";
1574
1107
  422: {
1575
1108
  type: "validation";
1576
1109
  on: string;
@@ -1595,6 +1128,8 @@ export declare const app: Elysia<"", {
1595
1128
  200: {
1596
1129
  count: number;
1597
1130
  };
1131
+ 401: "Токен олдсонгүй";
1132
+ 403: "Хандах эрхгүй байна.";
1598
1133
  };
1599
1134
  };
1600
1135
  };
@@ -1632,6 +1167,8 @@ export declare const app: Elysia<"", {
1632
1167
  isOrdered: boolean;
1633
1168
  order: number;
1634
1169
  };
1170
+ 401: "Токен олдсонгүй";
1171
+ 403: "Хандах эрхгүй байна.";
1635
1172
  422: {
1636
1173
  type: "validation";
1637
1174
  on: string;
@@ -1669,6 +1206,8 @@ export declare const app: Elysia<"", {
1669
1206
  total: number;
1670
1207
  type: string;
1671
1208
  }, void, unknown>;
1209
+ 401: "Токен олдсонгүй";
1210
+ 403: "Хандах эрхгүй байна.";
1672
1211
  422: {
1673
1212
  type: "validation";
1674
1213
  on: string;
@@ -1782,6 +1321,8 @@ export declare const app: Elysia<"", {
1782
1321
  oldId: number | null;
1783
1322
  }[];
1784
1323
  };
1324
+ 401: "Токен олдсонгүй";
1325
+ 403: "Хандах эрхгүй байна.";
1785
1326
  422: {
1786
1327
  type: "validation";
1787
1328
  on: string;
@@ -1832,6 +1373,8 @@ export declare const app: Elysia<"", {
1832
1373
  oldId: number | null;
1833
1374
  };
1834
1375
  400: "Ажилтны мэдээлэл шаардлагатай." | "Барааны үлдэгдэл хүрэлцэхгүй байна.";
1376
+ 401: "Токен олдсонгүй";
1377
+ 403: "Хандах эрхгүй байна.";
1835
1378
  404: "Агуулахын бараа олдсонгүй.";
1836
1379
  422: {
1837
1380
  type: "validation";
@@ -1854,7 +1397,10 @@ export declare const app: Elysia<"", {
1854
1397
  params: {};
1855
1398
  query: unknown;
1856
1399
  headers: unknown;
1857
- response: {};
1400
+ response: {
1401
+ 401: "Токен олдсонгүй";
1402
+ 403: "Хандах эрхгүй байна.";
1403
+ };
1858
1404
  };
1859
1405
  };
1860
1406
  };
@@ -1894,6 +1440,8 @@ export declare const app: Elysia<"", {
1894
1440
  deletedAt: string | null;
1895
1441
  oldId: number | null;
1896
1442
  };
1443
+ 401: "Токен олдсонгүй";
1444
+ 403: "Хандах эрхгүй байна.";
1897
1445
  404: "Агуулахын бараа олдсонгүй.";
1898
1446
  422: {
1899
1447
  type: "validation";
@@ -1919,6 +1467,8 @@ export declare const app: Elysia<"", {
1919
1467
  query: unknown;
1920
1468
  headers: unknown;
1921
1469
  response: {
1470
+ 401: "Токен олдсонгүй";
1471
+ 403: "Хандах эрхгүй байна.";
1922
1472
  422: {
1923
1473
  type: "validation";
1924
1474
  on: string;
@@ -1989,6 +1539,7 @@ export declare const app: Elysia<"", {
1989
1539
  }, "totalCount">[];
1990
1540
  };
1991
1541
  401: "Токен олдсонгүй";
1542
+ 403: "Хандах эрхгүй байна.";
1992
1543
  422: {
1993
1544
  type: "validation";
1994
1545
  on: string;
@@ -2059,6 +1610,7 @@ export declare const app: Elysia<"", {
2059
1610
  branchCount: number;
2060
1611
  };
2061
1612
  401: "Токен олдсонгүй";
1613
+ 403: "Хандах эрхгүй байна.";
2062
1614
  422: {
2063
1615
  type: "validation";
2064
1616
  on: string;
@@ -2132,6 +1684,7 @@ export declare const app: Elysia<"", {
2132
1684
  branchCount: number;
2133
1685
  };
2134
1686
  401: "Токен олдсонгүй";
1687
+ 403: "Хандах эрхгүй байна.";
2135
1688
  404: string;
2136
1689
  422: {
2137
1690
  type: "validation";
@@ -2158,6 +1711,7 @@ export declare const app: Elysia<"", {
2158
1711
  headers: {};
2159
1712
  response: {
2160
1713
  401: "Токен олдсонгүй";
1714
+ 403: "Хандах эрхгүй байна.";
2161
1715
  404: string;
2162
1716
  422: {
2163
1717
  type: "validation";
@@ -2240,6 +1794,7 @@ export declare const app: Elysia<"", {
2240
1794
  }, "totalCount">[];
2241
1795
  };
2242
1796
  401: "Токен олдсонгүй";
1797
+ 403: "Хандах эрхгүй байна.";
2243
1798
  422: {
2244
1799
  type: "validation";
2245
1800
  on: string;
@@ -2345,6 +1900,7 @@ export declare const app: Elysia<"", {
2345
1900
  merchantId: string;
2346
1901
  };
2347
1902
  401: "Токен олдсонгүй";
1903
+ 403: "Хандах эрхгүй байна.";
2348
1904
  422: {
2349
1905
  type: "validation";
2350
1906
  on: string;
@@ -2410,6 +1966,7 @@ export declare const app: Elysia<"", {
2410
1966
  merchantId: string;
2411
1967
  };
2412
1968
  401: "Токен олдсонгүй";
1969
+ 403: "Хандах эрхгүй байна.";
2413
1970
  404: string;
2414
1971
  422: {
2415
1972
  type: "validation";
@@ -2436,6 +1993,7 @@ export declare const app: Elysia<"", {
2436
1993
  headers: {};
2437
1994
  response: {
2438
1995
  401: "Токен олдсонгүй";
1996
+ 403: "Хандах эрхгүй байна.";
2439
1997
  404: string;
2440
1998
  422: {
2441
1999
  type: "validation";
@@ -3020,6 +2578,7 @@ export declare const app: Elysia<"", {
3020
2578
  bank: string;
3021
2579
  };
3022
2580
  401: "Токен олдсонгүй";
2581
+ 403: "Хандах эрхгүй байна.";
3023
2582
  422: {
3024
2583
  type: "validation";
3025
2584
  on: string;
@@ -3061,6 +2620,7 @@ export declare const app: Elysia<"", {
3061
2620
  bank: string;
3062
2621
  };
3063
2622
  401: "Токен олдсонгүй";
2623
+ 403: "Хандах эрхгүй байна.";
3064
2624
  404: string;
3065
2625
  422: {
3066
2626
  type: "validation";
@@ -3087,6 +2647,7 @@ export declare const app: Elysia<"", {
3087
2647
  headers: {};
3088
2648
  response: {
3089
2649
  401: "Токен олдсонгүй";
2650
+ 403: "Хандах эрхгүй байна.";
3090
2651
  404: string;
3091
2652
  422: {
3092
2653
  type: "validation";
@@ -3119,7 +2680,7 @@ export declare const app: Elysia<"", {
3119
2680
  oldId?: number | null | undefined;
3120
2681
  billingPeriod?: "MONTHLY" | "ANNUAL" | "YEARLY" | undefined;
3121
2682
  basePrice?: number | undefined;
3122
- pricePerCar?: number | null | undefined;
2683
+ maxCarCount?: number | null | undefined;
3123
2684
  active?: boolean | undefined;
3124
2685
  note?: string | null | undefined;
3125
2686
  pagination: {
@@ -3137,7 +2698,7 @@ export declare const app: Elysia<"", {
3137
2698
  companyId: string;
3138
2699
  billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
3139
2700
  basePrice: number;
3140
- pricePerCar: number | null;
2701
+ maxCarCount: number | null;
3141
2702
  active: boolean;
3142
2703
  note: string | null;
3143
2704
  id: string;
@@ -3166,7 +2727,7 @@ export declare const app: Elysia<"", {
3166
2727
  body: {
3167
2728
  oldId?: number | null | undefined;
3168
2729
  billingPeriod?: "MONTHLY" | "ANNUAL" | "YEARLY" | undefined;
3169
- pricePerCar?: number | null | undefined;
2730
+ maxCarCount?: number | null | undefined;
3170
2731
  active?: boolean | undefined;
3171
2732
  note?: string | null | undefined;
3172
2733
  companyId: string;
@@ -3185,11 +2746,12 @@ export declare const app: Elysia<"", {
3185
2746
  oldId: number | null;
3186
2747
  billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
3187
2748
  basePrice: number;
3188
- pricePerCar: number | null;
2749
+ maxCarCount: number | null;
3189
2750
  active: boolean;
3190
2751
  note: string | null;
3191
2752
  };
3192
2753
  401: "Токен олдсонгүй";
2754
+ 403: "Хандах эрхгүй байна.";
3193
2755
  422: {
3194
2756
  type: "validation";
3195
2757
  on: string;
@@ -3211,7 +2773,7 @@ export declare const app: Elysia<"", {
3211
2773
  oldId?: number | null | undefined;
3212
2774
  billingPeriod?: "MONTHLY" | "ANNUAL" | "YEARLY" | undefined;
3213
2775
  basePrice?: number | undefined;
3214
- pricePerCar?: number | null | undefined;
2776
+ maxCarCount?: number | null | undefined;
3215
2777
  active?: boolean | undefined;
3216
2778
  note?: string | null | undefined;
3217
2779
  };
@@ -3225,7 +2787,7 @@ export declare const app: Elysia<"", {
3225
2787
  companyId: string;
3226
2788
  billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
3227
2789
  basePrice: number;
3228
- pricePerCar: number | null;
2790
+ maxCarCount: number | null;
3229
2791
  active: boolean;
3230
2792
  note: string | null;
3231
2793
  id: string;
@@ -3235,6 +2797,7 @@ export declare const app: Elysia<"", {
3235
2797
  oldId: number | null;
3236
2798
  };
3237
2799
  401: "Токен олдсонгүй";
2800
+ 403: "Хандах эрхгүй байна.";
3238
2801
  404: "Төлбөрийн төлөвлөгөө олдсонгүй.";
3239
2802
  422: {
3240
2803
  type: "validation";
@@ -3261,6 +2824,7 @@ export declare const app: Elysia<"", {
3261
2824
  headers: {};
3262
2825
  response: {
3263
2826
  401: "Токен олдсонгүй";
2827
+ 403: "Хандах эрхгүй байна.";
3264
2828
  422: {
3265
2829
  type: "validation";
3266
2830
  on: string;
@@ -3448,7 +3012,7 @@ export declare const app: Elysia<"", {
3448
3012
  oldId: number | null;
3449
3013
  };
3450
3014
  401: "Токен олдсонгүй";
3451
- 403: "Төлбөр засах эрхгүй байна.";
3015
+ 403: "Хандах эрхгүй байна." | "Төлбөр засах эрхгүй байна.";
3452
3016
  404: "Төлбөрийн баримт олдсонгүй." | "Төлбөрийн төлбөр олдсонгүй.";
3453
3017
  422: {
3454
3018
  type: "validation";
@@ -3475,7 +3039,7 @@ export declare const app: Elysia<"", {
3475
3039
  headers: {};
3476
3040
  response: {
3477
3041
  401: "Токен олдсонгүй";
3478
- 403: "Төлбөр устгах эрхгүй байна.";
3042
+ 403: "Хандах эрхгүй байна." | "Төлбөр устгах эрхгүй байна.";
3479
3043
  404: "Төлбөрийн баримт олдсонгүй." | "Төлбөрийн төлбөр олдсонгүй.";
3480
3044
  422: {
3481
3045
  type: "validation";
@@ -3509,8 +3073,6 @@ export declare const app: Elysia<"", {
3509
3073
  periodStart?: string | undefined;
3510
3074
  periodEnd?: string | undefined;
3511
3075
  carCount?: number | undefined;
3512
- carPrice?: number | undefined;
3513
- totalPrice?: number | undefined;
3514
3076
  status?: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED" | undefined;
3515
3077
  issuedAt?: string | undefined;
3516
3078
  paidAt?: string | null | undefined;
@@ -3533,8 +3095,6 @@ export declare const app: Elysia<"", {
3533
3095
  periodEnd: string;
3534
3096
  carCount: number;
3535
3097
  basePrice: number;
3536
- carPrice: number;
3537
- totalPrice: number;
3538
3098
  status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
3539
3099
  issuedAt: string;
3540
3100
  paidAt: string | null;
@@ -3587,15 +3147,13 @@ export declare const app: Elysia<"", {
3587
3147
  periodStart: string;
3588
3148
  periodEnd: string;
3589
3149
  carCount: number;
3590
- carPrice: number;
3591
- totalPrice: number;
3592
3150
  status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
3593
3151
  issuedAt: string;
3594
3152
  paidAt: string | null;
3595
3153
  dueAt: string;
3596
3154
  };
3597
3155
  401: "Токен олдсонгүй";
3598
- 403: "Төлбөрийн баримт үүсгэх эрхгүй байна.";
3156
+ 403: "Хандах эрхгүй байна." | "Төлбөрийн баримт үүсгэх эрхгүй байна.";
3599
3157
  404: "Төлбөрийн төлөвлөгөө олдсонгүй.";
3600
3158
  422: {
3601
3159
  type: "validation";
@@ -3624,8 +3182,6 @@ export declare const app: Elysia<"", {
3624
3182
  periodStart: string;
3625
3183
  periodEnd: string;
3626
3184
  carCount: number;
3627
- carPrice: number;
3628
- totalPrice: number;
3629
3185
  issuedAt: string;
3630
3186
  dueAt: string;
3631
3187
  };
@@ -3646,15 +3202,13 @@ export declare const app: Elysia<"", {
3646
3202
  periodStart: string;
3647
3203
  periodEnd: string;
3648
3204
  carCount: number;
3649
- carPrice: number;
3650
- totalPrice: number;
3651
3205
  status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
3652
3206
  issuedAt: string;
3653
3207
  paidAt: string | null;
3654
3208
  dueAt: string;
3655
3209
  };
3656
3210
  401: "Токен олдсонгүй";
3657
- 403: "Төлбөрийн баримт үүсгэх эрхгүй байна.";
3211
+ 403: "Хандах эрхгүй байна." | "Төлбөрийн баримт үүсгэх эрхгүй байна.";
3658
3212
  422: {
3659
3213
  type: "validation";
3660
3214
  on: string;
@@ -3680,8 +3234,6 @@ export declare const app: Elysia<"", {
3680
3234
  periodStart?: string | undefined;
3681
3235
  periodEnd?: string | undefined;
3682
3236
  carCount?: number | undefined;
3683
- carPrice?: number | undefined;
3684
- totalPrice?: number | undefined;
3685
3237
  status?: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED" | undefined;
3686
3238
  issuedAt?: string | undefined;
3687
3239
  paidAt?: string | null | undefined;
@@ -3700,8 +3252,6 @@ export declare const app: Elysia<"", {
3700
3252
  periodEnd: string;
3701
3253
  carCount: number;
3702
3254
  basePrice: number;
3703
- carPrice: number;
3704
- totalPrice: number;
3705
3255
  status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
3706
3256
  issuedAt: string;
3707
3257
  paidAt: string | null;
@@ -3714,6 +3264,7 @@ export declare const app: Elysia<"", {
3714
3264
  oldId: number | null;
3715
3265
  };
3716
3266
  401: "Токен олдсонгүй";
3267
+ 403: "Хандах эрхгүй байна.";
3717
3268
  404: "Төлбөрийн баримт олдсонгүй.";
3718
3269
  422: {
3719
3270
  type: "validation";
@@ -3740,6 +3291,7 @@ export declare const app: Elysia<"", {
3740
3291
  headers: {};
3741
3292
  response: {
3742
3293
  401: "Токен олдсонгүй";
3294
+ 403: "Хандах эрхгүй байна.";
3743
3295
  422: {
3744
3296
  type: "validation";
3745
3297
  on: string;
@@ -3772,6 +3324,7 @@ export declare const app: Elysia<"", {
3772
3324
  requiresAdmin?: boolean;
3773
3325
  }[];
3774
3326
  401: "Токен олдсонгүй";
3327
+ 403: "Хандах эрхгүй байна.";
3775
3328
  };
3776
3329
  };
3777
3330
  };
@@ -3787,6 +3340,7 @@ export declare const app: Elysia<"", {
3787
3340
  headers: {};
3788
3341
  response: {
3789
3342
  401: "Токен олдсонгүй";
3343
+ 403: "Хандах эрхгүй байна.";
3790
3344
  422: {
3791
3345
  type: "validation";
3792
3346
  on: string;
@@ -3832,6 +3386,7 @@ export declare const app: Elysia<"", {
3832
3386
  }[];
3833
3387
  };
3834
3388
  401: "Токен олдсонгүй";
3389
+ 403: "Хандах эрхгүй байна.";
3835
3390
  422: {
3836
3391
  type: "validation";
3837
3392
  on: string;
@@ -3868,6 +3423,7 @@ export declare const app: Elysia<"", {
3868
3423
  permissions: string[];
3869
3424
  };
3870
3425
  401: "Токен олдсонгүй";
3426
+ 403: "Хандах эрхгүй байна.";
3871
3427
  422: {
3872
3428
  type: "validation";
3873
3429
  on: string;
@@ -3907,6 +3463,7 @@ export declare const app: Elysia<"", {
3907
3463
  permissions: string[];
3908
3464
  };
3909
3465
  401: "Токен олдсонгүй";
3466
+ 403: "Хандах эрхгүй байна.";
3910
3467
  404: string;
3911
3468
  422: {
3912
3469
  type: "validation";
@@ -3935,6 +3492,7 @@ export declare const app: Elysia<"", {
3935
3492
  headers: unknown;
3936
3493
  response: {
3937
3494
  401: "Токен олдсонгүй";
3495
+ 403: "Хандах эрхгүй байна.";
3938
3496
  404: string;
3939
3497
  422: {
3940
3498
  type: "validation";
@@ -3991,6 +3549,7 @@ export declare const app: Elysia<"", {
3991
3549
  }[];
3992
3550
  };
3993
3551
  401: "Токен олдсонгүй";
3552
+ 403: "Хандах эрхгүй байна.";
3994
3553
  422: {
3995
3554
  type: "validation";
3996
3555
  on: string;
@@ -4070,6 +3629,7 @@ export declare const app: Elysia<"", {
4070
3629
  };
4071
3630
  400: string;
4072
3631
  401: "Токен олдсонгүй";
3632
+ 403: "Хандах эрхгүй байна.";
4073
3633
  422: {
4074
3634
  type: "validation";
4075
3635
  on: string;
@@ -4109,6 +3669,7 @@ export declare const app: Elysia<"", {
4109
3669
  headers: {};
4110
3670
  response: {
4111
3671
  401: "Токен олдсонгүй";
3672
+ 403: "Хандах эрхгүй байна.";
4112
3673
  422: {
4113
3674
  type: "validation";
4114
3675
  on: string;
@@ -4976,6 +4537,8 @@ export declare const app: Elysia<"", {
4976
4537
  oldId: number | null;
4977
4538
  };
4978
4539
  }[];
4540
+ 401: "Токен олдсонгүй";
4541
+ 403: "Хандах эрхгүй байна.";
4979
4542
  };
4980
4543
  };
4981
4544
  };
@@ -5035,6 +4598,8 @@ export declare const app: Elysia<"", {
5035
4598
  expiresIn: number | null;
5036
4599
  refreshExpiresIn: number | null;
5037
4600
  };
4601
+ 401: "Токен олдсонгүй";
4602
+ 403: "Хандах эрхгүй байна.";
5038
4603
  422: {
5039
4604
  type: "validation";
5040
4605
  on: string;
@@ -5060,6 +4625,8 @@ export declare const app: Elysia<"", {
5060
4625
  query: unknown;
5061
4626
  headers: unknown;
5062
4627
  response: {
4628
+ 401: "Токен олдсонгүй";
4629
+ 403: "Хандах эрхгүй байна.";
5063
4630
  422: {
5064
4631
  type: "validation";
5065
4632
  on: string;
@@ -7762,6 +7329,7 @@ export declare const app: Elysia<"", {
7762
7329
  }[];
7763
7330
  };
7764
7331
  401: "Токен олдсонгүй";
7332
+ 403: "Хандах эрхгүй байна.";
7765
7333
  422: {
7766
7334
  type: "validation";
7767
7335
  on: string;
@@ -8553,6 +8121,8 @@ export declare const app: Elysia<"", {
8553
8121
  phone: string | null;
8554
8122
  address: string | null;
8555
8123
  };
8124
+ 401: "Токен олдсонгүй";
8125
+ 403: "Хандах эрхгүй байна.";
8556
8126
  422: {
8557
8127
  type: "validation";
8558
8128
  on: string;
@@ -8593,6 +8163,8 @@ export declare const app: Elysia<"", {
8593
8163
  deletedAt: string | null;
8594
8164
  oldId: number | null;
8595
8165
  };
8166
+ 401: "Токен олдсонгүй";
8167
+ 403: "Хандах эрхгүй байна.";
8596
8168
  404: "Нийлүүлэгч олдсонгүй.";
8597
8169
  422: {
8598
8170
  type: "validation";
@@ -8618,6 +8190,8 @@ export declare const app: Elysia<"", {
8618
8190
  query: unknown;
8619
8191
  headers: unknown;
8620
8192
  response: {
8193
+ 401: "Токен олдсонгүй";
8194
+ 403: "Хандах эрхгүй байна.";
8621
8195
  422: {
8622
8196
  type: "validation";
8623
8197
  on: string;
@@ -8731,6 +8305,7 @@ export declare const app: Elysia<"", {
8731
8305
  imagePath: string | null;
8732
8306
  };
8733
8307
  401: "Токен олдсонгүй";
8308
+ 403: "Хандах эрхгүй байна.";
8734
8309
  422: {
8735
8310
  type: "validation";
8736
8311
  on: string;
@@ -8778,6 +8353,7 @@ export declare const app: Elysia<"", {
8778
8353
  oldId: number | null;
8779
8354
  };
8780
8355
  401: "Токен олдсонгүй";
8356
+ 403: "Хандах эрхгүй байна.";
8781
8357
  404: "Vehicle kind not found";
8782
8358
  422: {
8783
8359
  type: "validation";
@@ -8860,6 +8436,7 @@ export declare const app: Elysia<"", {
8860
8436
  description: string | null;
8861
8437
  };
8862
8438
  401: "Токен олдсонгүй";
8439
+ 403: "Хандах эрхгүй байна.";
8863
8440
  422: {
8864
8441
  type: "validation";
8865
8442
  on: string;
@@ -8897,6 +8474,7 @@ export declare const app: Elysia<"", {
8897
8474
  oldId: number | null;
8898
8475
  };
8899
8476
  401: "Токен олдсонгүй";
8477
+ 403: "Хандах эрхгүй байна.";
8900
8478
  404: "Бүтээгдэхүүний ангилал олдсонгүй.";
8901
8479
  422: {
8902
8480
  type: "validation";
@@ -8923,6 +8501,7 @@ export declare const app: Elysia<"", {
8923
8501
  headers: unknown;
8924
8502
  response: {
8925
8503
  401: "Токен олдсонгүй";
8504
+ 403: "Хандах эрхгүй байна.";
8926
8505
  422: {
8927
8506
  type: "validation";
8928
8507
  on: string;
@@ -8960,7 +8539,180 @@ export declare const app: Elysia<"", {
8960
8539
  totalCount: number;
8961
8540
  totalPage: number;
8962
8541
  result: Omit<{
8963
- category: {
8542
+ category: {
8543
+ name: string;
8544
+ description: string | null;
8545
+ id: string;
8546
+ createdAt: string;
8547
+ updatedAt: string;
8548
+ deletedAt: string | null;
8549
+ oldId: number | null;
8550
+ } | null;
8551
+ totalCount: number;
8552
+ productCategoryId: string;
8553
+ name: string;
8554
+ description: string | null;
8555
+ id: string;
8556
+ createdAt: string;
8557
+ updatedAt: string;
8558
+ deletedAt: string | null;
8559
+ oldId: number | null;
8560
+ }, "totalCount">[];
8561
+ };
8562
+ 401: "Токен олдсонгүй";
8563
+ 422: {
8564
+ type: "validation";
8565
+ on: string;
8566
+ summary?: string;
8567
+ message?: string;
8568
+ found?: unknown;
8569
+ property?: string;
8570
+ expected?: string;
8571
+ };
8572
+ };
8573
+ };
8574
+ };
8575
+ } & {
8576
+ "product-kind": {
8577
+ post: {
8578
+ body: {
8579
+ oldId?: number | null | undefined;
8580
+ description?: string | null | undefined;
8581
+ name: string;
8582
+ productCategoryId: string;
8583
+ };
8584
+ params: {};
8585
+ query: unknown;
8586
+ headers: unknown;
8587
+ response: {
8588
+ 200: {
8589
+ name: string;
8590
+ id: string;
8591
+ createdAt: string;
8592
+ updatedAt: string;
8593
+ deletedAt: string | null;
8594
+ oldId: number | null;
8595
+ description: string | null;
8596
+ productCategoryId: string;
8597
+ };
8598
+ 401: "Токен олдсонгүй";
8599
+ 403: "Хандах эрхгүй байна.";
8600
+ 422: {
8601
+ type: "validation";
8602
+ on: string;
8603
+ summary?: string;
8604
+ message?: string;
8605
+ found?: unknown;
8606
+ property?: string;
8607
+ expected?: string;
8608
+ };
8609
+ };
8610
+ };
8611
+ };
8612
+ } & {
8613
+ "product-kind": {
8614
+ ":id": {
8615
+ put: {
8616
+ body: {
8617
+ name?: string | undefined;
8618
+ oldId?: number | null | undefined;
8619
+ description?: string | null | undefined;
8620
+ productCategoryId?: string | undefined;
8621
+ };
8622
+ params: {
8623
+ id: string;
8624
+ };
8625
+ query: unknown;
8626
+ headers: unknown;
8627
+ response: {
8628
+ 200: {
8629
+ productCategoryId: string;
8630
+ name: string;
8631
+ description: string | null;
8632
+ id: string;
8633
+ createdAt: string;
8634
+ updatedAt: string;
8635
+ deletedAt: string | null;
8636
+ oldId: number | null;
8637
+ };
8638
+ 401: "Токен олдсонгүй";
8639
+ 403: "Хандах эрхгүй байна.";
8640
+ 404: "Бүтээгдэхүүний төрөл олдсонгүй.";
8641
+ 422: {
8642
+ type: "validation";
8643
+ on: string;
8644
+ summary?: string;
8645
+ message?: string;
8646
+ found?: unknown;
8647
+ property?: string;
8648
+ expected?: string;
8649
+ };
8650
+ };
8651
+ };
8652
+ };
8653
+ };
8654
+ } & {
8655
+ "product-kind": {
8656
+ ":id": {
8657
+ delete: {
8658
+ body: unknown;
8659
+ params: {
8660
+ id: string;
8661
+ };
8662
+ query: unknown;
8663
+ headers: unknown;
8664
+ response: {
8665
+ 401: "Токен олдсонгүй";
8666
+ 403: "Хандах эрхгүй байна.";
8667
+ 422: {
8668
+ type: "validation";
8669
+ on: string;
8670
+ summary?: string;
8671
+ message?: string;
8672
+ found?: unknown;
8673
+ property?: string;
8674
+ expected?: string;
8675
+ };
8676
+ };
8677
+ };
8678
+ };
8679
+ };
8680
+ };
8681
+ } & {
8682
+ techdoc: {
8683
+ "product-kind-relate": {};
8684
+ } & {
8685
+ "product-kind-relate": {
8686
+ get: {
8687
+ body: unknown;
8688
+ params: {};
8689
+ query: {
8690
+ productKindOneId?: string | undefined;
8691
+ productKindTwoId?: string | undefined;
8692
+ relateType?: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED" | undefined;
8693
+ pagination: {
8694
+ size: number;
8695
+ page: number;
8696
+ };
8697
+ };
8698
+ headers: unknown;
8699
+ response: {
8700
+ 200: {
8701
+ totalCount: number;
8702
+ totalPage: number;
8703
+ result: Omit<{
8704
+ productKindOne: {
8705
+ productCategoryId: string;
8706
+ name: string;
8707
+ description: string | null;
8708
+ id: string;
8709
+ createdAt: string;
8710
+ updatedAt: string;
8711
+ deletedAt: string | null;
8712
+ oldId: number | null;
8713
+ } | null;
8714
+ productKindTwo: {
8715
+ productCategoryId: string;
8964
8716
  name: string;
8965
8717
  description: string | null;
8966
8718
  id: string;
@@ -8970,9 +8722,9 @@ export declare const app: Elysia<"", {
8970
8722
  oldId: number | null;
8971
8723
  } | null;
8972
8724
  totalCount: number;
8973
- productCategoryId: string;
8974
- name: string;
8975
- description: string | null;
8725
+ productKindOneId: string;
8726
+ productKindTwoId: string;
8727
+ relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
8976
8728
  id: string;
8977
8729
  createdAt: string;
8978
8730
  updatedAt: string;
@@ -8994,29 +8746,30 @@ export declare const app: Elysia<"", {
8994
8746
  };
8995
8747
  };
8996
8748
  } & {
8997
- "product-kind": {
8749
+ "product-kind-relate": {
8998
8750
  post: {
8999
8751
  body: {
9000
8752
  oldId?: number | null | undefined;
9001
- description?: string | null | undefined;
9002
- name: string;
9003
- productCategoryId: string;
8753
+ productKindOneId: string;
8754
+ productKindTwoId: string;
8755
+ relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
9004
8756
  };
9005
8757
  params: {};
9006
8758
  query: unknown;
9007
8759
  headers: unknown;
9008
8760
  response: {
9009
8761
  200: {
9010
- name: string;
9011
8762
  id: string;
9012
8763
  createdAt: string;
9013
8764
  updatedAt: string;
9014
8765
  deletedAt: string | null;
9015
8766
  oldId: number | null;
9016
- description: string | null;
9017
- productCategoryId: string;
8767
+ productKindOneId: string;
8768
+ productKindTwoId: string;
8769
+ relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
9018
8770
  };
9019
8771
  401: "Токен олдсонгүй";
8772
+ 403: "Хандах эрхгүй байна.";
9020
8773
  422: {
9021
8774
  type: "validation";
9022
8775
  on: string;
@@ -9030,14 +8783,14 @@ export declare const app: Elysia<"", {
9030
8783
  };
9031
8784
  };
9032
8785
  } & {
9033
- "product-kind": {
8786
+ "product-kind-relate": {
9034
8787
  ":id": {
9035
8788
  put: {
9036
8789
  body: {
9037
- name?: string | undefined;
9038
8790
  oldId?: number | null | undefined;
9039
- description?: string | null | undefined;
9040
- productCategoryId?: string | undefined;
8791
+ productKindOneId?: string | undefined;
8792
+ productKindTwoId?: string | undefined;
8793
+ relateType?: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED" | undefined;
9041
8794
  };
9042
8795
  params: {
9043
8796
  id: string;
@@ -9046,9 +8799,9 @@ export declare const app: Elysia<"", {
9046
8799
  headers: unknown;
9047
8800
  response: {
9048
8801
  200: {
9049
- productCategoryId: string;
9050
- name: string;
9051
- description: string | null;
8802
+ productKindOneId: string;
8803
+ productKindTwoId: string;
8804
+ relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
9052
8805
  id: string;
9053
8806
  createdAt: string;
9054
8807
  updatedAt: string;
@@ -9056,7 +8809,8 @@ export declare const app: Elysia<"", {
9056
8809
  oldId: number | null;
9057
8810
  };
9058
8811
  401: "Токен олдсонгүй";
9059
- 404: "Бүтээгдэхүүний төрөл олдсонгүй.";
8812
+ 403: "Хандах эрхгүй байна.";
8813
+ 404: "Бүтээгдэхүүний холбоос олдсонгүй.";
9060
8814
  422: {
9061
8815
  type: "validation";
9062
8816
  on: string;
@@ -9071,7 +8825,7 @@ export declare const app: Elysia<"", {
9071
8825
  };
9072
8826
  };
9073
8827
  } & {
9074
- "product-kind": {
8828
+ "product-kind-relate": {
9075
8829
  ":id": {
9076
8830
  delete: {
9077
8831
  body: unknown;
@@ -9082,6 +8836,228 @@ export declare const app: Elysia<"", {
9082
8836
  headers: unknown;
9083
8837
  response: {
9084
8838
  401: "Токен олдсонгүй";
8839
+ 403: "Хандах эрхгүй байна.";
8840
+ 422: {
8841
+ type: "validation";
8842
+ on: string;
8843
+ summary?: string;
8844
+ message?: string;
8845
+ found?: unknown;
8846
+ property?: string;
8847
+ expected?: string;
8848
+ };
8849
+ };
8850
+ };
8851
+ };
8852
+ };
8853
+ };
8854
+ } & {
8855
+ techdoc: {
8856
+ product: {};
8857
+ };
8858
+ };
8859
+ } & {
8860
+ api: {
8861
+ fleet: {
8862
+ inspection: {
8863
+ "field-group": {};
8864
+ } & {
8865
+ "field-group": {
8866
+ get: {
8867
+ body: {};
8868
+ params: {};
8869
+ query: {
8870
+ name?: string | undefined;
8871
+ code?: string | undefined;
8872
+ pagination: {
8873
+ size: number;
8874
+ page: number;
8875
+ };
8876
+ };
8877
+ headers: {};
8878
+ response: {
8879
+ 200: {
8880
+ totalCount: number;
8881
+ totalPage: number;
8882
+ result: {
8883
+ totalCount: number;
8884
+ code: string | null;
8885
+ name: string;
8886
+ description: string | null;
8887
+ id: string;
8888
+ createdAt: string;
8889
+ updatedAt: string;
8890
+ deletedAt: string | null;
8891
+ oldId: number | null;
8892
+ }[];
8893
+ };
8894
+ 401: "Токен олдсонгүй";
8895
+ 403: "Хандах эрхгүй байна.";
8896
+ 422: {
8897
+ type: "validation";
8898
+ on: string;
8899
+ summary?: string;
8900
+ message?: string;
8901
+ found?: unknown;
8902
+ property?: string;
8903
+ expected?: string;
8904
+ };
8905
+ };
8906
+ };
8907
+ };
8908
+ } & {
8909
+ "field-group": {
8910
+ post: {
8911
+ body: {
8912
+ code?: string | null | undefined;
8913
+ oldId?: number | null | undefined;
8914
+ description?: string | null | undefined;
8915
+ name: string;
8916
+ };
8917
+ params: {};
8918
+ query: unknown;
8919
+ headers: unknown;
8920
+ response: {
8921
+ 401: "Токен олдсонгүй";
8922
+ 403: "Хандах эрхгүй байна.";
8923
+ 422: {
8924
+ type: "validation";
8925
+ on: string;
8926
+ summary?: string;
8927
+ message?: string;
8928
+ found?: unknown;
8929
+ property?: string;
8930
+ expected?: string;
8931
+ };
8932
+ };
8933
+ };
8934
+ };
8935
+ } & {
8936
+ "field-group": {
8937
+ ":id": {
8938
+ put: {
8939
+ body: {
8940
+ name?: string | undefined;
8941
+ code?: string | null | undefined;
8942
+ oldId?: number | null | undefined;
8943
+ description?: string | null | undefined;
8944
+ };
8945
+ params: {
8946
+ id: string;
8947
+ };
8948
+ query: unknown;
8949
+ headers: unknown;
8950
+ response: {
8951
+ 401: "Токен олдсонгүй";
8952
+ 403: "Хандах эрхгүй байна.";
8953
+ 422: {
8954
+ type: "validation";
8955
+ on: string;
8956
+ summary?: string;
8957
+ message?: string;
8958
+ found?: unknown;
8959
+ property?: string;
8960
+ expected?: string;
8961
+ };
8962
+ };
8963
+ };
8964
+ };
8965
+ };
8966
+ } & {
8967
+ "field-group": {
8968
+ ":id": {
8969
+ delete: {
8970
+ body: unknown;
8971
+ params: {
8972
+ id: string;
8973
+ };
8974
+ query: unknown;
8975
+ headers: unknown;
8976
+ response: {
8977
+ 401: "Токен олдсонгүй";
8978
+ 403: "Хандах эрхгүй байна.";
8979
+ 422: {
8980
+ type: "validation";
8981
+ on: string;
8982
+ summary?: string;
8983
+ message?: string;
8984
+ found?: unknown;
8985
+ property?: string;
8986
+ expected?: string;
8987
+ };
8988
+ };
8989
+ };
8990
+ };
8991
+ };
8992
+ } & {
8993
+ "field-group": {
8994
+ ":id": {
8995
+ field: {
8996
+ get: {
8997
+ body: unknown;
8998
+ params: {
8999
+ id: string;
9000
+ };
9001
+ query: unknown;
9002
+ headers: unknown;
9003
+ response: {
9004
+ 200: {
9005
+ groupId: string;
9006
+ code: string | null;
9007
+ description: string | null;
9008
+ version: string | null;
9009
+ isActive: boolean;
9010
+ metadata: unknown;
9011
+ required: boolean;
9012
+ fieldGroup: string | null;
9013
+ sortIndex: number | null;
9014
+ id: string;
9015
+ createdAt: string;
9016
+ updatedAt: string;
9017
+ deletedAt: string | null;
9018
+ oldId: number | null;
9019
+ }[];
9020
+ 401: "Токен олдсонгүй";
9021
+ 403: "Хандах эрхгүй байна.";
9022
+ 422: {
9023
+ type: "validation";
9024
+ on: string;
9025
+ summary?: string;
9026
+ message?: string;
9027
+ found?: unknown;
9028
+ property?: string;
9029
+ expected?: string;
9030
+ };
9031
+ };
9032
+ };
9033
+ };
9034
+ };
9035
+ };
9036
+ };
9037
+ } & {
9038
+ inspection: {
9039
+ field: {};
9040
+ } & {
9041
+ field: {
9042
+ post: {
9043
+ body: {
9044
+ required?: boolean | undefined;
9045
+ code?: string | null | undefined;
9046
+ oldId?: number | null | undefined;
9047
+ description?: string | null | undefined;
9048
+ isActive?: boolean | undefined;
9049
+ version?: string | null | undefined;
9050
+ metadata?: import("drizzle-typebox").Json | undefined;
9051
+ fieldGroup?: string | null | undefined;
9052
+ sortIndex?: number | null | undefined;
9053
+ groupId: string;
9054
+ };
9055
+ params: {};
9056
+ query: unknown;
9057
+ headers: unknown;
9058
+ response: {
9059
+ 401: "Токен олдсонгүй";
9060
+ 403: "Хандах эрхгүй байна.";
9085
9061
  422: {
9086
9062
  type: "validation";
9087
9063
  on: string;
@@ -9094,139 +9070,106 @@ export declare const app: Elysia<"", {
9094
9070
  };
9095
9071
  };
9096
9072
  };
9097
- };
9098
- };
9099
- } & {
9100
- techdoc: {
9101
- "product-kind-relate": {};
9102
- } & {
9103
- "product-kind-relate": {
9104
- get: {
9105
- body: unknown;
9106
- params: {};
9107
- query: {
9108
- productKindOneId?: string | undefined;
9109
- productKindTwoId?: string | undefined;
9110
- relateType?: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED" | undefined;
9111
- pagination: {
9112
- size: number;
9113
- page: number;
9114
- };
9115
- };
9116
- headers: unknown;
9117
- response: {
9118
- 200: {
9119
- totalCount: number;
9120
- totalPage: number;
9121
- result: Omit<{
9122
- productKindOne: {
9123
- productCategoryId: string;
9124
- name: string;
9125
- description: string | null;
9126
- id: string;
9127
- createdAt: string;
9128
- updatedAt: string;
9129
- deletedAt: string | null;
9130
- oldId: number | null;
9131
- } | null;
9132
- productKindTwo: {
9133
- productCategoryId: string;
9134
- name: string;
9135
- description: string | null;
9136
- id: string;
9137
- createdAt: string;
9138
- updatedAt: string;
9139
- deletedAt: string | null;
9140
- oldId: number | null;
9141
- } | null;
9142
- totalCount: number;
9143
- productKindOneId: string;
9144
- productKindTwoId: string;
9145
- relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
9073
+ } & {
9074
+ field: {
9075
+ ":id": {
9076
+ put: {
9077
+ body: {
9078
+ required?: boolean | undefined;
9079
+ code?: string | null | undefined;
9080
+ oldId?: number | null | undefined;
9081
+ description?: string | null | undefined;
9082
+ isActive?: boolean | undefined;
9083
+ version?: string | null | undefined;
9084
+ metadata?: import("drizzle-typebox").Json | undefined;
9085
+ fieldGroup?: string | null | undefined;
9086
+ sortIndex?: number | null | undefined;
9087
+ groupId: string;
9088
+ };
9089
+ params: {
9146
9090
  id: string;
9147
- createdAt: string;
9148
- updatedAt: string;
9149
- deletedAt: string | null;
9150
- oldId: number | null;
9151
- }, "totalCount">[];
9152
- };
9153
- 401: "Токен олдсонгүй";
9154
- 422: {
9155
- type: "validation";
9156
- on: string;
9157
- summary?: string;
9158
- message?: string;
9159
- found?: unknown;
9160
- property?: string;
9161
- expected?: string;
9091
+ };
9092
+ query: unknown;
9093
+ headers: unknown;
9094
+ response: {
9095
+ 401: "Токен олдсонгүй";
9096
+ 403: "Хандах эрхгүй байна.";
9097
+ 422: {
9098
+ type: "validation";
9099
+ on: string;
9100
+ summary?: string;
9101
+ message?: string;
9102
+ found?: unknown;
9103
+ property?: string;
9104
+ expected?: string;
9105
+ };
9106
+ };
9162
9107
  };
9163
9108
  };
9164
9109
  };
9165
- };
9166
- } & {
9167
- "product-kind-relate": {
9168
- post: {
9169
- body: {
9170
- oldId?: number | null | undefined;
9171
- productKindOneId: string;
9172
- productKindTwoId: string;
9173
- relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
9174
- };
9175
- params: {};
9176
- query: unknown;
9177
- headers: unknown;
9178
- response: {
9179
- 200: {
9180
- id: string;
9181
- createdAt: string;
9182
- updatedAt: string;
9183
- deletedAt: string | null;
9184
- oldId: number | null;
9185
- productKindOneId: string;
9186
- productKindTwoId: string;
9187
- relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
9188
- };
9189
- 401: "Токен олдсонгүй";
9190
- 422: {
9191
- type: "validation";
9192
- on: string;
9193
- summary?: string;
9194
- message?: string;
9195
- found?: unknown;
9196
- property?: string;
9197
- expected?: string;
9110
+ } & {
9111
+ field: {
9112
+ ":id": {
9113
+ delete: {
9114
+ body: unknown;
9115
+ params: {
9116
+ id: string;
9117
+ };
9118
+ query: unknown;
9119
+ headers: unknown;
9120
+ response: {
9121
+ 401: "Токен олдсонгүй";
9122
+ 403: "Хандах эрхгүй байна.";
9123
+ 422: {
9124
+ type: "validation";
9125
+ on: string;
9126
+ summary?: string;
9127
+ message?: string;
9128
+ found?: unknown;
9129
+ property?: string;
9130
+ expected?: string;
9131
+ };
9132
+ };
9198
9133
  };
9199
9134
  };
9200
9135
  };
9201
9136
  };
9202
9137
  } & {
9203
- "product-kind-relate": {
9204
- ":id": {
9205
- put: {
9206
- body: {
9207
- oldId?: number | null | undefined;
9208
- productKindOneId?: string | undefined;
9209
- productKindTwoId?: string | undefined;
9210
- relateType?: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED" | undefined;
9211
- };
9212
- params: {
9213
- id: string;
9138
+ inspection: {
9139
+ "field-result": {};
9140
+ } & {
9141
+ "field-result": {
9142
+ get: {
9143
+ body: unknown;
9144
+ params: {};
9145
+ query: {
9146
+ pagination: {
9147
+ size: number;
9148
+ page: number;
9149
+ };
9150
+ inspectionId: string;
9214
9151
  };
9215
- query: unknown;
9216
9152
  headers: unknown;
9217
9153
  response: {
9218
9154
  200: {
9219
- productKindOneId: string;
9220
- productKindTwoId: string;
9221
- relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
9222
- id: string;
9223
- createdAt: string;
9224
- updatedAt: string;
9225
- deletedAt: string | null;
9226
- oldId: number | null;
9155
+ totalCount: number;
9156
+ totalPage: number;
9157
+ result: Omit<{
9158
+ totalCount: number;
9159
+ inspectionId: string;
9160
+ templateFieldId: string;
9161
+ result: string | null;
9162
+ numeric: number | null;
9163
+ comment: string | null;
9164
+ severityLevel: number | null;
9165
+ id: string;
9166
+ createdAt: string;
9167
+ updatedAt: string;
9168
+ deletedAt: string | null;
9169
+ oldId: number | null;
9170
+ }, "totalCount">[];
9227
9171
  };
9228
9172
  401: "Токен олдсонгүй";
9229
- 404: "Бүтээгдэхүүний холбоос олдсонгүй.";
9230
9173
  422: {
9231
9174
  type: "validation";
9232
9175
  on: string;
@@ -9239,74 +9182,117 @@ export declare const app: Elysia<"", {
9239
9182
  };
9240
9183
  };
9241
9184
  };
9242
- };
9243
- } & {
9244
- "product-kind-relate": {
9245
- ":id": {
9246
- delete: {
9247
- body: unknown;
9248
- params: {
9249
- id: string;
9250
- };
9251
- query: unknown;
9252
- headers: unknown;
9253
- response: {
9254
- 401: "Токен олдсонгүй";
9255
- 422: {
9256
- type: "validation";
9257
- on: string;
9258
- summary?: string;
9259
- message?: string;
9260
- found?: unknown;
9261
- property?: string;
9262
- expected?: string;
9185
+ } & {
9186
+ "field-result": {
9187
+ "create-or-update": {
9188
+ post: {
9189
+ body: {
9190
+ oldId?: number | null | undefined;
9191
+ result?: string | null | undefined;
9192
+ numeric?: number | null | undefined;
9193
+ comment?: string | null | undefined;
9194
+ severityLevel?: number | null | undefined;
9195
+ inspectionId: string;
9196
+ templateFieldId: string;
9197
+ }[];
9198
+ params: {};
9199
+ query: unknown;
9200
+ headers: unknown;
9201
+ response: {
9202
+ 200: {
9203
+ inspectionId: string;
9204
+ templateFieldId: string;
9205
+ result: string | null;
9206
+ numeric: number | null;
9207
+ comment: string | null;
9208
+ severityLevel: number | null;
9209
+ id: string;
9210
+ createdAt: string;
9211
+ updatedAt: string;
9212
+ deletedAt: string | null;
9213
+ oldId: number | null;
9214
+ }[];
9215
+ 400: "Хяналтын үр дүн оруулах мэдээлэл байхгүй байна." | "Бүх үр дүн нь ижил хяналтын үзлэгт хамаарах ёстой.";
9216
+ 401: "Токен олдсонгүй";
9217
+ 422: {
9218
+ type: "validation";
9219
+ on: string;
9220
+ summary?: string;
9221
+ message?: string;
9222
+ found?: unknown;
9223
+ property?: string;
9224
+ expected?: string;
9225
+ };
9226
+ };
9227
+ };
9228
+ };
9229
+ };
9230
+ } & {
9231
+ "field-result": {
9232
+ inspection: {
9233
+ ":id": {
9234
+ all: {
9235
+ delete: {
9236
+ body: unknown;
9237
+ params: {
9238
+ id: string;
9239
+ };
9240
+ query: unknown;
9241
+ headers: unknown;
9242
+ response: {
9243
+ 401: "Токен олдсонгүй";
9244
+ 404: "Хяналтын үзлэг олдсонгүй.";
9245
+ 422: {
9246
+ type: "validation";
9247
+ on: string;
9248
+ summary?: string;
9249
+ message?: string;
9250
+ found?: unknown;
9251
+ property?: string;
9252
+ expected?: string;
9253
+ };
9254
+ };
9255
+ };
9263
9256
  };
9264
9257
  };
9265
9258
  };
9266
9259
  };
9267
9260
  };
9268
- };
9269
- } & {
9270
- techdoc: {
9271
- product: {};
9272
- };
9273
- };
9274
- } & {
9275
- api: {
9276
- fleet: {
9261
+ } & {
9277
9262
  inspection: {
9278
- "field-group": {};
9263
+ template: {};
9279
9264
  } & {
9280
- "field-group": {
9265
+ template: {
9281
9266
  get: {
9282
- body: {};
9267
+ body: unknown;
9283
9268
  params: {};
9284
9269
  query: {
9285
- name?: string | undefined;
9286
- code?: string | undefined;
9287
9270
  pagination: {
9288
9271
  size: number;
9289
9272
  page: number;
9290
9273
  };
9291
9274
  };
9292
- headers: {};
9275
+ headers: unknown;
9293
9276
  response: {
9294
9277
  200: {
9295
9278
  totalCount: number;
9296
9279
  totalPage: number;
9297
- result: {
9280
+ result: Omit<{
9298
9281
  totalCount: number;
9299
- code: string | null;
9282
+ companyId: string | null;
9300
9283
  name: string;
9301
9284
  description: string | null;
9285
+ version: string | null;
9286
+ isActive: boolean;
9302
9287
  id: string;
9303
9288
  createdAt: string;
9304
9289
  updatedAt: string;
9305
9290
  deletedAt: string | null;
9306
9291
  oldId: number | null;
9307
- }[];
9292
+ }, "totalCount">[];
9308
9293
  };
9309
9294
  401: "Токен олдсонгүй";
9295
+ 403: "Хандах эрхгүй байна.";
9310
9296
  422: {
9311
9297
  type: "validation";
9312
9298
  on: string;
@@ -9320,18 +9306,23 @@ export declare const app: Elysia<"", {
9320
9306
  };
9321
9307
  };
9322
9308
  } & {
9323
- "field-group": {
9309
+ template: {
9324
9310
  post: {
9325
9311
  body: {
9326
- code?: string | null | undefined;
9312
+ companyId?: string | null | undefined;
9327
9313
  oldId?: number | null | undefined;
9328
9314
  description?: string | null | undefined;
9315
+ isActive?: boolean | undefined;
9316
+ version?: string | null | undefined;
9329
9317
  name: string;
9330
9318
  };
9331
9319
  params: {};
9332
9320
  query: unknown;
9333
9321
  headers: unknown;
9334
9322
  response: {
9323
+ 200: string;
9324
+ 401: "Токен олдсонгүй";
9325
+ 403: "Хандах эрхгүй байна.";
9335
9326
  422: {
9336
9327
  type: "validation";
9337
9328
  on: string;
@@ -9345,14 +9336,55 @@ export declare const app: Elysia<"", {
9345
9336
  };
9346
9337
  };
9347
9338
  } & {
9348
- "field-group": {
9339
+ template: {
9340
+ ":id": {
9341
+ get: {
9342
+ body: unknown;
9343
+ params: {
9344
+ id: string;
9345
+ };
9346
+ query: unknown;
9347
+ headers: unknown;
9348
+ response: {
9349
+ 200: {
9350
+ companyId: string | null;
9351
+ name: string;
9352
+ description: string | null;
9353
+ version: string | null;
9354
+ isActive: boolean;
9355
+ id: string;
9356
+ createdAt: string;
9357
+ updatedAt: string;
9358
+ deletedAt: string | null;
9359
+ oldId: number | null;
9360
+ };
9361
+ 401: "Токен олдсонгүй";
9362
+ 403: "Хандах эрхгүй байна.";
9363
+ 404: "Үзлэгийн загвар олдсонгүй.";
9364
+ 422: {
9365
+ type: "validation";
9366
+ on: string;
9367
+ summary?: string;
9368
+ message?: string;
9369
+ found?: unknown;
9370
+ property?: string;
9371
+ expected?: string;
9372
+ };
9373
+ };
9374
+ };
9375
+ };
9376
+ };
9377
+ } & {
9378
+ template: {
9349
9379
  ":id": {
9350
9380
  put: {
9351
9381
  body: {
9352
9382
  name?: string | undefined;
9353
- code?: string | null | undefined;
9383
+ companyId?: string | null | undefined;
9354
9384
  oldId?: number | null | undefined;
9355
9385
  description?: string | null | undefined;
9386
+ isActive?: boolean | undefined;
9387
+ version?: string | null | undefined;
9356
9388
  };
9357
9389
  params: {
9358
9390
  id: string;
@@ -9360,6 +9392,9 @@ export declare const app: Elysia<"", {
9360
9392
  query: unknown;
9361
9393
  headers: unknown;
9362
9394
  response: {
9395
+ 401: "Токен олдсонгүй";
9396
+ 403: "Хандах эрхгүй байна.";
9397
+ 404: "Үзлэгийн загвар олдсонгүй.";
9363
9398
  422: {
9364
9399
  type: "validation";
9365
9400
  on: string;
@@ -9374,7 +9409,7 @@ export declare const app: Elysia<"", {
9374
9409
  };
9375
9410
  };
9376
9411
  } & {
9377
- "field-group": {
9412
+ template: {
9378
9413
  ":id": {
9379
9414
  delete: {
9380
9415
  body: unknown;
@@ -9384,6 +9419,8 @@ export declare const app: Elysia<"", {
9384
9419
  query: unknown;
9385
9420
  headers: unknown;
9386
9421
  response: {
9422
+ 401: "Токен олдсонгүй";
9423
+ 403: "Хандах эрхгүй байна.";
9387
9424
  422: {
9388
9425
  type: "validation";
9389
9426
  on: string;
@@ -9398,7 +9435,7 @@ export declare const app: Elysia<"", {
9398
9435
  };
9399
9436
  };
9400
9437
  } & {
9401
- "field-group": {
9438
+ template: {
9402
9439
  ":id": {
9403
9440
  field: {
9404
9441
  get: {
@@ -9409,22 +9446,132 @@ export declare const app: Elysia<"", {
9409
9446
  query: unknown;
9410
9447
  headers: unknown;
9411
9448
  response: {
9412
- 200: {
9413
- groupId: string;
9414
- code: string | null;
9415
- description: string | null;
9416
- version: string | null;
9417
- isActive: boolean;
9418
- metadata: unknown;
9419
- required: boolean;
9420
- fieldGroup: string | null;
9421
- sortIndex: number | null;
9422
- id: string;
9423
- createdAt: string;
9424
- updatedAt: string;
9425
- deletedAt: string | null;
9426
- oldId: number | null;
9427
- }[];
9449
+ 200: {
9450
+ templateId: string;
9451
+ fieldGroupId: string | null;
9452
+ fieldGroup: string | null;
9453
+ fieldId: string | null;
9454
+ code: string | null;
9455
+ description: string | null;
9456
+ fieldType: "BOOLEAN" | "NUMERIC" | "TEXT" | "DATE" | "RATE" | "MULTI_CHOICE";
9457
+ required: boolean;
9458
+ metadata: unknown;
9459
+ sortIndex: number | null;
9460
+ id: string;
9461
+ createdAt: string;
9462
+ updatedAt: string;
9463
+ deletedAt: string | null;
9464
+ oldId: number | null;
9465
+ }[];
9466
+ 401: "Токен олдсонгүй";
9467
+ 403: "Хандах эрхгүй байна.";
9468
+ 422: {
9469
+ type: "validation";
9470
+ on: string;
9471
+ summary?: string;
9472
+ message?: string;
9473
+ found?: unknown;
9474
+ property?: string;
9475
+ expected?: string;
9476
+ };
9477
+ };
9478
+ };
9479
+ };
9480
+ };
9481
+ };
9482
+ } & {
9483
+ template: {
9484
+ field: {
9485
+ ":id": {
9486
+ put: {
9487
+ body: {
9488
+ required?: boolean | undefined;
9489
+ code?: string | null | undefined;
9490
+ oldId?: number | null | undefined;
9491
+ description?: string | null | undefined;
9492
+ metadata?: import("drizzle-typebox").Json | undefined;
9493
+ fieldGroup?: string | null | undefined;
9494
+ sortIndex?: number | null | undefined;
9495
+ templateId?: string | undefined;
9496
+ fieldGroupId?: string | null | undefined;
9497
+ fieldId?: string | null | undefined;
9498
+ fieldType?: "BOOLEAN" | "NUMERIC" | "TEXT" | "DATE" | "RATE" | "MULTI_CHOICE" | undefined;
9499
+ };
9500
+ params: {
9501
+ id: string;
9502
+ };
9503
+ query: unknown;
9504
+ headers: unknown;
9505
+ response: {
9506
+ 401: "Токен олдсонгүй";
9507
+ 403: "Хандах эрхгүй байна.";
9508
+ 422: {
9509
+ type: "validation";
9510
+ on: string;
9511
+ summary?: string;
9512
+ message?: string;
9513
+ found?: unknown;
9514
+ property?: string;
9515
+ expected?: string;
9516
+ };
9517
+ };
9518
+ };
9519
+ };
9520
+ };
9521
+ };
9522
+ } & {
9523
+ template: {
9524
+ ":id": {
9525
+ field: {
9526
+ post: {
9527
+ body: {
9528
+ required?: boolean | undefined;
9529
+ code?: string | null | undefined;
9530
+ oldId?: number | null | undefined;
9531
+ description?: string | null | undefined;
9532
+ metadata?: import("drizzle-typebox").Json | undefined;
9533
+ fieldGroup?: string | null | undefined;
9534
+ sortIndex?: number | null | undefined;
9535
+ fieldGroupId?: string | null | undefined;
9536
+ fieldId?: string | null | undefined;
9537
+ fieldType: "BOOLEAN" | "NUMERIC" | "TEXT" | "DATE" | "RATE" | "MULTI_CHOICE";
9538
+ };
9539
+ params: {
9540
+ id: string;
9541
+ };
9542
+ query: unknown;
9543
+ headers: unknown;
9544
+ response: {
9545
+ 401: "Токен олдсонгүй";
9546
+ 403: "Хандах эрхгүй байна.";
9547
+ 422: {
9548
+ type: "validation";
9549
+ on: string;
9550
+ summary?: string;
9551
+ message?: string;
9552
+ found?: unknown;
9553
+ property?: string;
9554
+ expected?: string;
9555
+ };
9556
+ };
9557
+ };
9558
+ };
9559
+ };
9560
+ };
9561
+ } & {
9562
+ template: {
9563
+ field: {
9564
+ ":id": {
9565
+ delete: {
9566
+ body: unknown;
9567
+ params: {
9568
+ id: string;
9569
+ };
9570
+ query: unknown;
9571
+ headers: unknown;
9572
+ response: {
9573
+ 401: "Токен олдсонгүй";
9574
+ 403: "Хандах эрхгүй байна.";
9428
9575
  422: {
9429
9576
  type: "validation";
9430
9577
  on: string;
@@ -9442,26 +9589,97 @@ export declare const app: Elysia<"", {
9442
9589
  };
9443
9590
  } & {
9444
9591
  inspection: {
9445
- field: {};
9592
+ schedule: {};
9446
9593
  } & {
9447
- field: {
9594
+ schedule: {
9595
+ get: {
9596
+ body: unknown;
9597
+ params: {};
9598
+ query: {
9599
+ pagination: {
9600
+ size: number;
9601
+ page: number;
9602
+ };
9603
+ };
9604
+ headers: unknown;
9605
+ response: {
9606
+ 200: {
9607
+ totalCount: number;
9608
+ totalPage: number;
9609
+ result: Omit<{
9610
+ schedule: {
9611
+ companyId: string;
9612
+ machineId: string;
9613
+ templateId: string;
9614
+ daysInterval: number | null;
9615
+ timeNextDue: Date | null;
9616
+ isActive: boolean;
9617
+ id: string;
9618
+ createdAt: string;
9619
+ updatedAt: string;
9620
+ deletedAt: string | null;
9621
+ oldId: number | null;
9622
+ };
9623
+ machine: {
9624
+ companyId: string | null;
9625
+ machineKindId: string;
9626
+ customerId: string | null;
9627
+ name: string | null;
9628
+ assetCode: string | null;
9629
+ vin: string | null;
9630
+ licensePlate: string | null;
9631
+ color: string | null;
9632
+ engineCc: string | null;
9633
+ cylinder: string | null;
9634
+ gasType: string | null;
9635
+ transmissionType: string | null;
9636
+ vehicleType: string | null;
9637
+ yearManufacture: number | null;
9638
+ yearImport: number | null;
9639
+ steering: string | null;
9640
+ engineCode: string | null;
9641
+ transmissionCode: string | null;
9642
+ driveTrain: string | null;
9643
+ km: number;
9644
+ customData: unknown;
9645
+ id: string;
9646
+ createdAt: string;
9647
+ updatedAt: string;
9648
+ deletedAt: string | null;
9649
+ oldId: number | null;
9650
+ } | null;
9651
+ totalCount: number;
9652
+ }, "totalCount">[];
9653
+ };
9654
+ 401: "Токен олдсонгүй";
9655
+ 422: {
9656
+ type: "validation";
9657
+ on: string;
9658
+ summary?: string;
9659
+ message?: string;
9660
+ found?: unknown;
9661
+ property?: string;
9662
+ expected?: string;
9663
+ };
9664
+ };
9665
+ };
9666
+ };
9667
+ } & {
9668
+ schedule: {
9448
9669
  post: {
9449
9670
  body: {
9450
- required?: boolean | undefined;
9451
- code?: string | null | undefined;
9452
9671
  oldId?: number | null | undefined;
9453
- description?: string | null | undefined;
9454
9672
  isActive?: boolean | undefined;
9455
- version?: string | null | undefined;
9456
- metadata?: import("drizzle-typebox").Json | undefined;
9457
- fieldGroup?: string | null | undefined;
9458
- sortIndex?: number | null | undefined;
9459
- groupId: string;
9673
+ daysInterval?: number | null | undefined;
9674
+ timeNextDue?: Date | null | undefined;
9675
+ templateId: string;
9676
+ machineId: string;
9460
9677
  };
9461
9678
  params: {};
9462
9679
  query: unknown;
9463
9680
  headers: unknown;
9464
9681
  response: {
9682
+ 401: "Токен олдсонгүй";
9465
9683
  422: {
9466
9684
  type: "validation";
9467
9685
  on: string;
@@ -9475,20 +9693,17 @@ export declare const app: Elysia<"", {
9475
9693
  };
9476
9694
  };
9477
9695
  } & {
9478
- field: {
9696
+ schedule: {
9479
9697
  ":id": {
9480
9698
  put: {
9481
9699
  body: {
9482
- required?: boolean | undefined;
9483
- code?: string | null | undefined;
9700
+ companyId?: string | undefined;
9484
9701
  oldId?: number | null | undefined;
9485
- description?: string | null | undefined;
9486
9702
  isActive?: boolean | undefined;
9487
- version?: string | null | undefined;
9488
- metadata?: import("drizzle-typebox").Json | undefined;
9489
- fieldGroup?: string | null | undefined;
9490
- sortIndex?: number | null | undefined;
9491
- groupId: string;
9703
+ templateId?: string | undefined;
9704
+ machineId?: string | undefined;
9705
+ daysInterval?: number | null | undefined;
9706
+ timeNextDue?: Date | null | undefined;
9492
9707
  };
9493
9708
  params: {
9494
9709
  id: string;
@@ -9496,6 +9711,7 @@ export declare const app: Elysia<"", {
9496
9711
  query: unknown;
9497
9712
  headers: unknown;
9498
9713
  response: {
9714
+ 401: "Токен олдсонгүй";
9499
9715
  422: {
9500
9716
  type: "validation";
9501
9717
  on: string;
@@ -9510,7 +9726,7 @@ export declare const app: Elysia<"", {
9510
9726
  };
9511
9727
  };
9512
9728
  } & {
9513
- field: {
9729
+ schedule: {
9514
9730
  ":id": {
9515
9731
  delete: {
9516
9732
  body: unknown;
@@ -9520,99 +9736,6 @@ export declare const app: Elysia<"", {
9520
9736
  query: unknown;
9521
9737
  headers: unknown;
9522
9738
  response: {
9523
- 422: {
9524
- type: "validation";
9525
- on: string;
9526
- summary?: string;
9527
- message?: string;
9528
- found?: unknown;
9529
- property?: string;
9530
- expected?: string;
9531
- };
9532
- };
9533
- };
9534
- };
9535
- };
9536
- };
9537
- } & {
9538
- inspection: {
9539
- "field-result": {};
9540
- } & {
9541
- "field-result": {
9542
- get: {
9543
- body: unknown;
9544
- params: {};
9545
- query: {
9546
- pagination: {
9547
- size: number;
9548
- page: number;
9549
- };
9550
- inspectionId: string;
9551
- };
9552
- headers: unknown;
9553
- response: {
9554
- 200: {
9555
- totalCount: number;
9556
- totalPage: number;
9557
- result: Omit<{
9558
- totalCount: number;
9559
- inspectionId: string;
9560
- templateFieldId: string;
9561
- result: string | null;
9562
- numeric: number | null;
9563
- comment: string | null;
9564
- severityLevel: number | null;
9565
- id: string;
9566
- createdAt: string;
9567
- updatedAt: string;
9568
- deletedAt: string | null;
9569
- oldId: number | null;
9570
- }, "totalCount">[];
9571
- };
9572
- 401: "Токен олдсонгүй";
9573
- 422: {
9574
- type: "validation";
9575
- on: string;
9576
- summary?: string;
9577
- message?: string;
9578
- found?: unknown;
9579
- property?: string;
9580
- expected?: string;
9581
- };
9582
- };
9583
- };
9584
- };
9585
- } & {
9586
- "field-result": {
9587
- "create-or-update": {
9588
- post: {
9589
- body: {
9590
- oldId?: number | null | undefined;
9591
- result?: string | null | undefined;
9592
- numeric?: number | null | undefined;
9593
- comment?: string | null | undefined;
9594
- severityLevel?: number | null | undefined;
9595
- inspectionId: string;
9596
- templateFieldId: string;
9597
- }[];
9598
- params: {};
9599
- query: unknown;
9600
- headers: unknown;
9601
- response: {
9602
- 200: {
9603
- inspectionId: string;
9604
- templateFieldId: string;
9605
- result: string | null;
9606
- numeric: number | null;
9607
- comment: string | null;
9608
- severityLevel: number | null;
9609
- id: string;
9610
- createdAt: string;
9611
- updatedAt: string;
9612
- deletedAt: string | null;
9613
- oldId: number | null;
9614
- }[];
9615
- 400: "Хяналтын үр дүн оруулах мэдээлэл байхгүй байна." | "Бүх үр дүн нь ижил хяналтын үзлэгт хамаарах ёстой.";
9616
9739
  401: "Токен олдсонгүй";
9617
9740
  422: {
9618
9741
  type: "validation";
@@ -9620,105 +9743,182 @@ export declare const app: Elysia<"", {
9620
9743
  summary?: string;
9621
9744
  message?: string;
9622
9745
  found?: unknown;
9623
- property?: string;
9624
- expected?: string;
9625
- };
9626
- };
9627
- };
9628
- };
9629
- };
9630
- } & {
9631
- "field-result": {
9632
- inspection: {
9633
- ":id": {
9634
- all: {
9635
- delete: {
9636
- body: unknown;
9637
- params: {
9638
- id: string;
9639
- };
9640
- query: unknown;
9641
- headers: unknown;
9642
- response: {
9643
- 401: "Токен олдсонгүй";
9644
- 404: "Хяналтын үзлэг олдсонгүй.";
9645
- 422: {
9646
- type: "validation";
9647
- on: string;
9648
- summary?: string;
9649
- message?: string;
9650
- found?: unknown;
9651
- property?: string;
9652
- expected?: string;
9653
- };
9654
- };
9746
+ property?: string;
9747
+ expected?: string;
9655
9748
  };
9656
9749
  };
9657
9750
  };
9658
9751
  };
9659
9752
  };
9660
9753
  };
9754
+ } & {
9755
+ inspection: {};
9661
9756
  } & {
9662
9757
  inspection: {
9663
- template: {};
9664
- } & {
9665
- template: {
9666
- get: {
9667
- body: unknown;
9668
- params: {};
9669
- query: {
9670
- pagination: {
9671
- size: number;
9672
- page: number;
9673
- };
9758
+ get: {
9759
+ body: unknown;
9760
+ params: {};
9761
+ query: {
9762
+ id?: string | undefined;
9763
+ state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
9764
+ templateId?: string | undefined;
9765
+ machineId?: string | undefined;
9766
+ stateResult?: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | undefined;
9767
+ startDate?: string | undefined;
9768
+ endDate?: string | undefined;
9769
+ pagination: {
9770
+ size: number;
9771
+ page: number;
9674
9772
  };
9675
- headers: unknown;
9676
- response: {
9677
- 200: {
9678
- totalCount: number;
9679
- totalPage: number;
9680
- result: Omit<{
9681
- totalCount: number;
9773
+ };
9774
+ headers: unknown;
9775
+ response: {
9776
+ 200: {
9777
+ totalCount: number;
9778
+ totalPage: number;
9779
+ result: Omit<{
9780
+ inspection: {
9781
+ machineId: string;
9782
+ templateId: string;
9783
+ employeeInspectedId: string;
9784
+ userInspectedId: string;
9785
+ hours: number | null;
9786
+ mileageKm: number | null;
9787
+ state: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED";
9788
+ stateResult: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null;
9789
+ timeScheduled: Date | null;
9790
+ timeCompleted: Date | null;
9791
+ note: string | null;
9792
+ id: string;
9793
+ createdAt: string;
9794
+ updatedAt: string;
9795
+ deletedAt: string | null;
9796
+ oldId: number | null;
9797
+ };
9798
+ machine: {
9682
9799
  companyId: string | null;
9683
- name: string;
9684
- description: string | null;
9685
- version: string | null;
9686
- isActive: boolean;
9800
+ machineKindId: string;
9801
+ customerId: string | null;
9802
+ name: string | null;
9803
+ assetCode: string | null;
9804
+ vin: string | null;
9805
+ licensePlate: string | null;
9806
+ color: string | null;
9807
+ engineCc: string | null;
9808
+ cylinder: string | null;
9809
+ gasType: string | null;
9810
+ transmissionType: string | null;
9811
+ vehicleType: string | null;
9812
+ yearManufacture: number | null;
9813
+ yearImport: number | null;
9814
+ steering: string | null;
9815
+ engineCode: string | null;
9816
+ transmissionCode: string | null;
9817
+ driveTrain: string | null;
9818
+ km: number;
9819
+ customData: unknown;
9687
9820
  id: string;
9688
9821
  createdAt: string;
9689
9822
  updatedAt: string;
9690
9823
  deletedAt: string | null;
9691
9824
  oldId: number | null;
9692
- }, "totalCount">[];
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
- };
9825
+ } | null;
9826
+ totalCount: number;
9827
+ template: {
9828
+ name: string;
9829
+ } | null;
9830
+ }, "totalCount">[];
9831
+ };
9832
+ 401: "Токен олдсонгүй";
9833
+ 422: {
9834
+ type: "validation";
9835
+ on: string;
9836
+ summary?: string;
9837
+ message?: string;
9838
+ found?: unknown;
9839
+ property?: string;
9840
+ expected?: string;
9703
9841
  };
9704
9842
  };
9705
9843
  };
9706
- } & {
9707
- template: {
9708
- post: {
9844
+ };
9845
+ } & {
9846
+ inspection: {
9847
+ post: {
9848
+ body: {
9849
+ oldId?: number | null | undefined;
9850
+ note?: string | null | undefined;
9851
+ state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
9852
+ timeCompleted?: Date | null | undefined;
9853
+ hours?: number | null | undefined;
9854
+ mileageKm?: number | null | undefined;
9855
+ stateResult?: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null | undefined;
9856
+ timeScheduled?: Date | null | undefined;
9857
+ templateId: string;
9858
+ machineId: string;
9859
+ };
9860
+ params: {};
9861
+ query: unknown;
9862
+ headers: unknown;
9863
+ response: {
9864
+ 400: "Ажилтны мэдээлэл шаардлагатай.";
9865
+ 401: "Токен олдсонгүй";
9866
+ 422: {
9867
+ type: "validation";
9868
+ on: string;
9869
+ summary?: string;
9870
+ message?: string;
9871
+ found?: unknown;
9872
+ property?: string;
9873
+ expected?: string;
9874
+ };
9875
+ };
9876
+ };
9877
+ };
9878
+ } & {
9879
+ inspection: {
9880
+ ":id": {
9881
+ put: {
9709
9882
  body: {
9710
- companyId?: string | null | undefined;
9711
9883
  oldId?: number | null | undefined;
9712
- description?: string | null | undefined;
9713
- isActive?: boolean | undefined;
9714
- version?: string | null | undefined;
9715
- name: string;
9884
+ note?: string | null | undefined;
9885
+ state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
9886
+ timeCompleted?: Date | null | undefined;
9887
+ templateId?: string | undefined;
9888
+ machineId?: string | undefined;
9889
+ employeeInspectedId?: string | undefined;
9890
+ userInspectedId?: string | undefined;
9891
+ hours?: number | null | undefined;
9892
+ mileageKm?: number | null | undefined;
9893
+ stateResult?: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null | undefined;
9894
+ timeScheduled?: Date | null | undefined;
9895
+ };
9896
+ params: {
9897
+ id: string;
9716
9898
  };
9717
- params: {};
9718
9899
  query: unknown;
9719
9900
  headers: unknown;
9720
9901
  response: {
9721
- 200: string;
9902
+ 200: {
9903
+ machineId: string;
9904
+ templateId: string;
9905
+ employeeInspectedId: string;
9906
+ userInspectedId: string;
9907
+ hours: number | null;
9908
+ mileageKm: number | null;
9909
+ state: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED";
9910
+ stateResult: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null;
9911
+ timeScheduled: Date | null;
9912
+ timeCompleted: Date | null;
9913
+ note: string | null;
9914
+ id: string;
9915
+ createdAt: string;
9916
+ updatedAt: string;
9917
+ deletedAt: string | null;
9918
+ oldId: number | null;
9919
+ };
9920
+ 401: "Токен олдсонгүй";
9921
+ 404: "Хяналтын үзлэг олдсонгүй.";
9722
9922
  422: {
9723
9923
  type: "validation";
9724
9924
  on: string;
@@ -9731,30 +9931,73 @@ export declare const app: Elysia<"", {
9731
9931
  };
9732
9932
  };
9733
9933
  };
9934
+ };
9935
+ };
9936
+ } & {
9937
+ fleet: {
9938
+ pm: {
9939
+ template: {};
9734
9940
  } & {
9735
9941
  template: {
9736
- ":id": {
9942
+ product: {};
9943
+ } & {
9944
+ product: {
9737
9945
  get: {
9738
9946
  body: unknown;
9739
- params: {
9740
- id: string;
9947
+ params: {};
9948
+ query: {
9949
+ pagination: {
9950
+ size: number;
9951
+ page: number;
9952
+ };
9953
+ pmTemplateId: string;
9741
9954
  };
9742
- query: unknown;
9743
9955
  headers: unknown;
9744
9956
  response: {
9745
9957
  200: {
9746
- companyId: string | null;
9747
- name: string;
9748
- description: string | null;
9749
- version: string | null;
9750
- isActive: boolean;
9751
- id: string;
9752
- createdAt: string;
9753
- updatedAt: string;
9754
- deletedAt: string | null;
9755
- oldId: number | null;
9958
+ totalCount: number;
9959
+ totalPage: number;
9960
+ result: Omit<{
9961
+ product: {
9962
+ pmTemplateId: string;
9963
+ productKindId: string;
9964
+ quantity: number | null;
9965
+ uomId: string;
9966
+ id: string;
9967
+ createdAt: string;
9968
+ updatedAt: string;
9969
+ deletedAt: string | null;
9970
+ oldId: number | null;
9971
+ };
9972
+ productKind: {
9973
+ productCategoryId: string;
9974
+ name: string;
9975
+ description: string | null;
9976
+ id: string;
9977
+ createdAt: string;
9978
+ updatedAt: string;
9979
+ deletedAt: string | null;
9980
+ oldId: number | null;
9981
+ } | null;
9982
+ uom: {
9983
+ uomCategoryId: string;
9984
+ code: string | null;
9985
+ name: string;
9986
+ description: string | null;
9987
+ symbol: string | null;
9988
+ isBaseUnit: boolean;
9989
+ baseFactor: number | null;
9990
+ id: string;
9991
+ createdAt: string;
9992
+ updatedAt: string;
9993
+ deletedAt: string | null;
9994
+ oldId: number | null;
9995
+ } | null;
9996
+ totalCount: number;
9997
+ }, "totalCount">[];
9756
9998
  };
9757
- 404: "Үзлэгийн загвар олдсонгүй.";
9999
+ 401: "Токен олдсонгүй";
10000
+ 403: "Хандах эрхгүй байна.";
9758
10001
  422: {
9759
10002
  type: "validation";
9760
10003
  on: string;
@@ -9767,50 +10010,22 @@ export declare const app: Elysia<"", {
9767
10010
  };
9768
10011
  };
9769
10012
  };
9770
- };
9771
- } & {
9772
- template: {
9773
- ":id": {
9774
- put: {
10013
+ } & {
10014
+ product: {
10015
+ post: {
9775
10016
  body: {
9776
- name?: string | undefined;
9777
- companyId?: string | null | undefined;
9778
10017
  oldId?: number | null | undefined;
9779
- description?: string | null | undefined;
9780
- isActive?: boolean | undefined;
9781
- version?: string | null | undefined;
9782
- };
9783
- params: {
9784
- id: string;
9785
- };
9786
- query: unknown;
9787
- headers: unknown;
9788
- response: {
9789
- 404: "Үзлэгийн загвар олдсонгүй.";
9790
- 422: {
9791
- type: "validation";
9792
- on: string;
9793
- summary?: string;
9794
- message?: string;
9795
- found?: unknown;
9796
- property?: string;
9797
- expected?: string;
9798
- };
9799
- };
9800
- };
9801
- };
9802
- };
9803
- } & {
9804
- template: {
9805
- ":id": {
9806
- delete: {
9807
- body: unknown;
9808
- params: {
9809
- id: string;
10018
+ quantity?: number | null | undefined;
10019
+ uomId: string;
10020
+ pmTemplateId: string;
10021
+ productKindId: string;
9810
10022
  };
10023
+ params: {};
9811
10024
  query: unknown;
9812
10025
  headers: unknown;
9813
10026
  response: {
10027
+ 401: "Токен олдсонгүй";
10028
+ 403: "Хандах эрхгүй байна.";
9814
10029
  422: {
9815
10030
  type: "validation";
9816
10031
  on: string;
@@ -9823,104 +10038,16 @@ export declare const app: Elysia<"", {
9823
10038
  };
9824
10039
  };
9825
10040
  };
9826
- };
9827
- } & {
9828
- template: {
9829
- ":id": {
9830
- field: {
9831
- get: {
9832
- body: unknown;
9833
- params: {
9834
- id: string;
9835
- };
9836
- query: unknown;
9837
- headers: unknown;
9838
- response: {
9839
- 200: {
9840
- templateId: string;
9841
- fieldGroupId: string | null;
9842
- fieldGroup: string | null;
9843
- fieldId: string | null;
9844
- code: string | null;
9845
- description: string | null;
9846
- fieldType: "BOOLEAN" | "NUMERIC" | "TEXT" | "DATE" | "RATE" | "MULTI_CHOICE";
9847
- required: boolean;
9848
- metadata: unknown;
9849
- sortIndex: number | null;
9850
- id: string;
9851
- createdAt: string;
9852
- updatedAt: string;
9853
- deletedAt: string | null;
9854
- oldId: number | null;
9855
- }[];
9856
- 422: {
9857
- type: "validation";
9858
- on: string;
9859
- summary?: string;
9860
- message?: string;
9861
- found?: unknown;
9862
- property?: string;
9863
- expected?: string;
9864
- };
9865
- };
9866
- };
9867
- };
9868
- };
9869
- };
9870
- } & {
9871
- template: {
9872
- field: {
10041
+ } & {
10042
+ product: {
9873
10043
  ":id": {
9874
10044
  put: {
9875
10045
  body: {
9876
- required?: boolean | undefined;
9877
- code?: string | null | undefined;
9878
- oldId?: number | null | undefined;
9879
- description?: string | null | undefined;
9880
- metadata?: import("drizzle-typebox").Json | undefined;
9881
- fieldGroup?: string | null | undefined;
9882
- sortIndex?: number | null | undefined;
9883
- templateId?: string | undefined;
9884
- fieldGroupId?: string | null | undefined;
9885
- fieldId?: string | null | undefined;
9886
- fieldType?: "BOOLEAN" | "NUMERIC" | "TEXT" | "DATE" | "RATE" | "MULTI_CHOICE" | undefined;
9887
- };
9888
- params: {
9889
- id: string;
9890
- };
9891
- query: unknown;
9892
- headers: unknown;
9893
- response: {
9894
- 422: {
9895
- type: "validation";
9896
- on: string;
9897
- summary?: string;
9898
- message?: string;
9899
- found?: unknown;
9900
- property?: string;
9901
- expected?: string;
9902
- };
9903
- };
9904
- };
9905
- };
9906
- };
9907
- };
9908
- } & {
9909
- template: {
9910
- ":id": {
9911
- field: {
9912
- post: {
9913
- body: {
9914
- required?: boolean | undefined;
9915
- code?: string | null | undefined;
9916
10046
  oldId?: number | null | undefined;
9917
- description?: string | null | undefined;
9918
- metadata?: import("drizzle-typebox").Json | undefined;
9919
- fieldGroup?: string | null | undefined;
9920
- sortIndex?: number | null | undefined;
9921
- fieldGroupId?: string | null | undefined;
9922
- fieldId?: string | null | undefined;
9923
- fieldType: "BOOLEAN" | "NUMERIC" | "TEXT" | "DATE" | "RATE" | "MULTI_CHOICE";
10047
+ quantity?: number | null | undefined;
10048
+ uomId?: string | undefined;
10049
+ pmTemplateId?: string | undefined;
10050
+ productKindId?: string | undefined;
9924
10051
  };
9925
10052
  params: {
9926
10053
  id: string;
@@ -9928,6 +10055,8 @@ export declare const app: Elysia<"", {
9928
10055
  query: unknown;
9929
10056
  headers: unknown;
9930
10057
  response: {
10058
+ 401: "Токен олдсонгүй";
10059
+ 403: "Хандах эрхгүй байна.";
9931
10060
  422: {
9932
10061
  type: "validation";
9933
10062
  on: string;
@@ -9941,10 +10070,8 @@ export declare const app: Elysia<"", {
9941
10070
  };
9942
10071
  };
9943
10072
  };
9944
- };
9945
- } & {
9946
- template: {
9947
- field: {
10073
+ } & {
10074
+ product: {
9948
10075
  ":id": {
9949
10076
  delete: {
9950
10077
  body: unknown;
@@ -9954,6 +10081,8 @@ export declare const app: Elysia<"", {
9954
10081
  query: unknown;
9955
10082
  headers: unknown;
9956
10083
  response: {
10084
+ 401: "Токен олдсонгүй";
10085
+ 403: "Хандах эрхгүй байна.";
9957
10086
  422: {
9958
10087
  type: "validation";
9959
10088
  on: string;
@@ -9968,12 +10097,8 @@ export declare const app: Elysia<"", {
9968
10097
  };
9969
10098
  };
9970
10099
  };
9971
- };
9972
- } & {
9973
- inspection: {
9974
- schedule: {};
9975
10100
  } & {
9976
- schedule: {
10101
+ template: {
9977
10102
  get: {
9978
10103
  body: unknown;
9979
10104
  params: {};
@@ -9989,41 +10114,56 @@ export declare const app: Elysia<"", {
9989
10114
  totalCount: number;
9990
10115
  totalPage: number;
9991
10116
  result: Omit<{
9992
- schedule: {
9993
- companyId: string;
9994
- machineId: string;
9995
- templateId: string;
9996
- daysInterval: number | null;
9997
- timeNextDue: Date | null;
9998
- isActive: boolean;
10117
+ template: {
10118
+ machineKindId: string;
10119
+ companyId: string | null;
10120
+ operationAmount: number | null;
10121
+ uomId: string;
10122
+ serviceKindId: string;
10123
+ name: string;
10124
+ description: string | null;
9999
10125
  id: string;
10000
10126
  createdAt: string;
10001
10127
  updatedAt: string;
10002
10128
  deletedAt: string | null;
10003
10129
  oldId: number | null;
10004
10130
  };
10005
- machine: {
10006
- companyId: string | null;
10007
- machineKindId: string;
10008
- customerId: string | null;
10009
- name: string | null;
10010
- assetCode: string | null;
10011
- vin: string | null;
10012
- licensePlate: string | null;
10013
- color: string | null;
10014
- engineCc: string | null;
10015
- cylinder: string | null;
10016
- gasType: string | null;
10017
- transmissionType: string | null;
10018
- vehicleType: string | null;
10019
- yearManufacture: number | null;
10020
- yearImport: number | null;
10021
- steering: string | null;
10022
- engineCode: string | null;
10023
- transmissionCode: string | null;
10024
- driveTrain: string | null;
10025
- km: number;
10026
- customData: unknown;
10131
+ machineKind: {
10132
+ vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
10133
+ parentId: string | null;
10134
+ name: string;
10135
+ description: string | null;
10136
+ yearStart: number | null;
10137
+ yearEnd: number | null;
10138
+ imagePath: string | null;
10139
+ id: string;
10140
+ createdAt: string;
10141
+ updatedAt: string;
10142
+ deletedAt: string | null;
10143
+ oldId: number | null;
10144
+ } | null;
10145
+ uom: {
10146
+ uomCategoryId: string;
10147
+ code: string | null;
10148
+ name: string;
10149
+ description: string | null;
10150
+ symbol: string | null;
10151
+ isBaseUnit: boolean;
10152
+ baseFactor: number | null;
10153
+ id: string;
10154
+ createdAt: string;
10155
+ updatedAt: string;
10156
+ deletedAt: string | null;
10157
+ oldId: number | null;
10158
+ } | null;
10159
+ serviceKind: {
10160
+ serviceKindId: string | null;
10161
+ companyId: string;
10162
+ branchId: string | null;
10163
+ name: string;
10164
+ description: string | null;
10165
+ enabled: boolean;
10166
+ price: number;
10027
10167
  id: string;
10028
10168
  createdAt: string;
10029
10169
  updatedAt: string;
@@ -10034,6 +10174,7 @@ export declare const app: Elysia<"", {
10034
10174
  }, "totalCount">[];
10035
10175
  };
10036
10176
  401: "Токен олдсонгүй";
10177
+ 403: "Хандах эрхгүй байна.";
10037
10178
  422: {
10038
10179
  type: "validation";
10039
10180
  on: string;
@@ -10047,21 +10188,24 @@ export declare const app: Elysia<"", {
10047
10188
  };
10048
10189
  };
10049
10190
  } & {
10050
- schedule: {
10191
+ template: {
10051
10192
  post: {
10052
- body: {
10053
- oldId?: number | null | undefined;
10054
- isActive?: boolean | undefined;
10055
- daysInterval?: number | null | undefined;
10056
- timeNextDue?: Date | null | undefined;
10057
- templateId: string;
10058
- machineId: string;
10193
+ body: {
10194
+ companyId?: string | null | undefined;
10195
+ oldId?: number | null | undefined;
10196
+ description?: string | null | undefined;
10197
+ operationAmount?: number | null | undefined;
10198
+ name: string;
10199
+ serviceKindId: string;
10200
+ machineKindId: string;
10201
+ uomId: string;
10059
10202
  };
10060
10203
  params: {};
10061
10204
  query: unknown;
10062
10205
  headers: unknown;
10063
10206
  response: {
10064
10207
  401: "Токен олдсонгүй";
10208
+ 403: "Хандах эрхгүй байна.";
10065
10209
  422: {
10066
10210
  type: "validation";
10067
10211
  on: string;
@@ -10075,17 +10219,18 @@ export declare const app: Elysia<"", {
10075
10219
  };
10076
10220
  };
10077
10221
  } & {
10078
- schedule: {
10222
+ template: {
10079
10223
  ":id": {
10080
10224
  put: {
10081
10225
  body: {
10082
- companyId?: string | undefined;
10226
+ name?: string | undefined;
10227
+ companyId?: string | null | undefined;
10083
10228
  oldId?: number | null | undefined;
10084
- isActive?: boolean | undefined;
10085
- templateId?: string | undefined;
10086
- machineId?: string | undefined;
10087
- daysInterval?: number | null | undefined;
10088
- timeNextDue?: Date | null | undefined;
10229
+ description?: string | null | undefined;
10230
+ serviceKindId?: string | undefined;
10231
+ machineKindId?: string | undefined;
10232
+ operationAmount?: number | null | undefined;
10233
+ uomId?: string | undefined;
10089
10234
  };
10090
10235
  params: {
10091
10236
  id: string;
@@ -10094,6 +10239,7 @@ export declare const app: Elysia<"", {
10094
10239
  headers: unknown;
10095
10240
  response: {
10096
10241
  401: "Токен олдсонгүй";
10242
+ 403: "Хандах эрхгүй байна.";
10097
10243
  422: {
10098
10244
  type: "validation";
10099
10245
  on: string;
@@ -10108,7 +10254,7 @@ export declare const app: Elysia<"", {
10108
10254
  };
10109
10255
  };
10110
10256
  } & {
10111
- schedule: {
10257
+ template: {
10112
10258
  ":id": {
10113
10259
  delete: {
10114
10260
  body: unknown;
@@ -10119,6 +10265,7 @@ export declare const app: Elysia<"", {
10119
10265
  headers: unknown;
10120
10266
  response: {
10121
10267
  401: "Токен олдсонгүй";
10268
+ 403: "Хандах эрхгүй байна.";
10122
10269
  422: {
10123
10270
  type: "validation";
10124
10271
  on: string;
@@ -10134,193 +10281,190 @@ export declare const app: Elysia<"", {
10134
10281
  };
10135
10282
  };
10136
10283
  } & {
10137
- inspection: {};
10138
- } & {
10139
- inspection: {
10140
- get: {
10141
- body: unknown;
10142
- params: {};
10143
- query: {
10144
- id?: string | undefined;
10145
- state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
10146
- templateId?: string | undefined;
10147
- machineId?: string | undefined;
10148
- stateResult?: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | undefined;
10149
- startDate?: string | undefined;
10150
- endDate?: string | undefined;
10151
- pagination: {
10152
- size: number;
10153
- page: number;
10284
+ pm: {
10285
+ plan: {};
10286
+ } & {
10287
+ plan: {
10288
+ machine: {};
10289
+ } & {
10290
+ machine: {
10291
+ get: {
10292
+ body: unknown;
10293
+ params: {};
10294
+ query: {
10295
+ pagination: {
10296
+ size: number;
10297
+ page: number;
10298
+ };
10299
+ pmPlanId: string;
10300
+ };
10301
+ headers: unknown;
10302
+ response: {
10303
+ 200: {
10304
+ totalCount: number;
10305
+ totalPage: number;
10306
+ result: Omit<{
10307
+ totalCount: number;
10308
+ pmPlanId: string;
10309
+ pmTemplateId: string;
10310
+ machineId: string;
10311
+ employeeCreatedId: string;
10312
+ userCreatedId: string;
10313
+ note: string | null;
10314
+ id: string;
10315
+ createdAt: string;
10316
+ updatedAt: string;
10317
+ deletedAt: string | null;
10318
+ oldId: number | null;
10319
+ }, "totalCount">[];
10320
+ };
10321
+ 401: "Токен олдсонгүй";
10322
+ 422: {
10323
+ type: "validation";
10324
+ on: string;
10325
+ summary?: string;
10326
+ message?: string;
10327
+ found?: unknown;
10328
+ property?: string;
10329
+ expected?: string;
10330
+ };
10331
+ };
10154
10332
  };
10155
10333
  };
10156
- headers: unknown;
10157
- response: {
10158
- 200: {
10159
- totalCount: number;
10160
- totalPage: number;
10161
- result: Omit<{
10162
- inspection: {
10163
- machineId: string;
10164
- templateId: string;
10165
- employeeInspectedId: string;
10166
- userInspectedId: string;
10167
- hours: number | null;
10168
- mileageKm: number | null;
10169
- state: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED";
10170
- stateResult: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null;
10171
- timeScheduled: Date | null;
10172
- timeCompleted: Date | null;
10173
- note: string | null;
10174
- id: string;
10175
- createdAt: string;
10176
- updatedAt: string;
10177
- deletedAt: string | null;
10178
- oldId: number | null;
10334
+ } & {
10335
+ machine: {
10336
+ post: {
10337
+ body: {
10338
+ oldId?: number | null | undefined;
10339
+ note?: string | null | undefined;
10340
+ machineId: string;
10341
+ pmTemplateId: string;
10342
+ pmPlanId: string;
10343
+ };
10344
+ params: {};
10345
+ query: unknown;
10346
+ headers: unknown;
10347
+ response: {
10348
+ 400: "Ажилтны мэдээлэл шаардлагатай.";
10349
+ 401: "Токен олдсонгүй";
10350
+ 422: {
10351
+ type: "validation";
10352
+ on: string;
10353
+ summary?: string;
10354
+ message?: string;
10355
+ found?: unknown;
10356
+ property?: string;
10357
+ expected?: string;
10179
10358
  };
10180
- machine: {
10181
- companyId: string | null;
10182
- machineKindId: string;
10183
- customerId: string | null;
10184
- name: string | null;
10185
- assetCode: string | null;
10186
- vin: string | null;
10187
- licensePlate: string | null;
10188
- color: string | null;
10189
- engineCc: string | null;
10190
- cylinder: string | null;
10191
- gasType: string | null;
10192
- transmissionType: string | null;
10193
- vehicleType: string | null;
10194
- yearManufacture: number | null;
10195
- yearImport: number | null;
10196
- steering: string | null;
10197
- engineCode: string | null;
10198
- transmissionCode: string | null;
10199
- driveTrain: string | null;
10200
- km: number;
10201
- customData: unknown;
10202
- id: string;
10203
- createdAt: string;
10204
- updatedAt: string;
10205
- deletedAt: string | null;
10206
- oldId: number | null;
10207
- } | null;
10208
- totalCount: number;
10209
- template: {
10210
- name: string;
10211
- } | null;
10212
- }, "totalCount">[];
10213
- };
10214
- 401: "Токен олдсонгүй";
10215
- 422: {
10216
- type: "validation";
10217
- on: string;
10218
- summary?: string;
10219
- message?: string;
10220
- found?: unknown;
10221
- property?: string;
10222
- expected?: string;
10359
+ };
10223
10360
  };
10224
10361
  };
10225
- };
10226
- };
10227
- } & {
10228
- inspection: {
10229
- post: {
10230
- body: {
10231
- oldId?: number | null | undefined;
10232
- note?: string | null | undefined;
10233
- state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
10234
- timeCompleted?: Date | null | undefined;
10235
- hours?: number | null | undefined;
10236
- mileageKm?: number | null | undefined;
10237
- stateResult?: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null | undefined;
10238
- timeScheduled?: Date | null | undefined;
10239
- templateId: string;
10240
- machineId: string;
10362
+ } & {
10363
+ machine: {
10364
+ many: {
10365
+ post: {
10366
+ body: {
10367
+ oldId?: number | null | undefined;
10368
+ note?: string | null | undefined;
10369
+ machineId: string;
10370
+ pmTemplateId: string;
10371
+ pmPlanId: string;
10372
+ employeeCreatedId: string;
10373
+ userCreatedId: string;
10374
+ }[];
10375
+ params: {};
10376
+ query: unknown;
10377
+ headers: unknown;
10378
+ response: {
10379
+ 200: {
10380
+ id: string;
10381
+ createdAt: string;
10382
+ updatedAt: string;
10383
+ deletedAt: string | null;
10384
+ oldId: number | null;
10385
+ note: string | null;
10386
+ machineId: string;
10387
+ pmTemplateId: string;
10388
+ pmPlanId: string;
10389
+ employeeCreatedId: string;
10390
+ userCreatedId: string;
10391
+ }[];
10392
+ 400: "Машины мэдээлэл оруулах мэдээлэл байхгүй байна.";
10393
+ 401: "Токен олдсонгүй";
10394
+ 422: {
10395
+ type: "validation";
10396
+ on: string;
10397
+ summary?: string;
10398
+ message?: string;
10399
+ found?: unknown;
10400
+ property?: string;
10401
+ expected?: string;
10402
+ };
10403
+ };
10404
+ };
10405
+ };
10241
10406
  };
10242
- params: {};
10243
- query: unknown;
10244
- headers: unknown;
10245
- response: {
10246
- 400: "Ажилтны мэдээлэл шаардлагатай.";
10247
- 401: "Токен олдсонгүй";
10248
- 422: {
10249
- type: "validation";
10250
- on: string;
10251
- summary?: string;
10252
- message?: string;
10253
- found?: unknown;
10254
- property?: string;
10255
- expected?: string;
10407
+ } & {
10408
+ machine: {
10409
+ ":id": {
10410
+ put: {
10411
+ body: {
10412
+ oldId?: number | null | undefined;
10413
+ note?: string | null | undefined;
10414
+ machineId?: string | undefined;
10415
+ pmTemplateId?: string | undefined;
10416
+ pmPlanId?: string | undefined;
10417
+ employeeCreatedId?: string | undefined;
10418
+ userCreatedId?: string | undefined;
10419
+ };
10420
+ params: {
10421
+ id: string;
10422
+ };
10423
+ query: unknown;
10424
+ headers: unknown;
10425
+ response: {
10426
+ 401: "Токен олдсонгүй";
10427
+ 422: {
10428
+ type: "validation";
10429
+ on: string;
10430
+ summary?: string;
10431
+ message?: string;
10432
+ found?: unknown;
10433
+ property?: string;
10434
+ expected?: string;
10435
+ };
10436
+ };
10437
+ };
10256
10438
  };
10257
10439
  };
10258
- };
10259
- };
10260
- } & {
10261
- inspection: {
10262
- ":id": {
10263
- put: {
10264
- body: {
10265
- oldId?: number | null | undefined;
10266
- note?: string | null | undefined;
10267
- state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
10268
- timeCompleted?: Date | null | undefined;
10269
- templateId?: string | undefined;
10270
- machineId?: string | undefined;
10271
- employeeInspectedId?: string | undefined;
10272
- userInspectedId?: string | undefined;
10273
- hours?: number | null | undefined;
10274
- mileageKm?: number | null | undefined;
10275
- stateResult?: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null | undefined;
10276
- timeScheduled?: Date | null | undefined;
10277
- };
10278
- params: {
10279
- id: string;
10280
- };
10281
- query: unknown;
10282
- headers: unknown;
10283
- response: {
10284
- 200: {
10285
- machineId: string;
10286
- templateId: string;
10287
- employeeInspectedId: string;
10288
- userInspectedId: string;
10289
- hours: number | null;
10290
- mileageKm: number | null;
10291
- state: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED";
10292
- stateResult: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null;
10293
- timeScheduled: Date | null;
10294
- timeCompleted: Date | null;
10295
- note: string | null;
10296
- id: string;
10297
- createdAt: string;
10298
- updatedAt: string;
10299
- deletedAt: string | null;
10300
- oldId: number | null;
10301
- };
10302
- 401: "Токен олдсонгүй";
10303
- 404: "Хяналтын үзлэг олдсонгүй.";
10304
- 422: {
10305
- type: "validation";
10306
- on: string;
10307
- summary?: string;
10308
- message?: string;
10309
- found?: unknown;
10310
- property?: string;
10311
- expected?: string;
10440
+ } & {
10441
+ machine: {
10442
+ ":id": {
10443
+ delete: {
10444
+ body: unknown;
10445
+ params: {
10446
+ id: string;
10447
+ };
10448
+ query: unknown;
10449
+ headers: unknown;
10450
+ response: {
10451
+ 401: "Токен олдсонгүй";
10452
+ 422: {
10453
+ type: "validation";
10454
+ on: string;
10455
+ summary?: string;
10456
+ message?: string;
10457
+ found?: unknown;
10458
+ property?: string;
10459
+ expected?: string;
10460
+ };
10461
+ };
10312
10462
  };
10313
10463
  };
10314
10464
  };
10315
10465
  };
10316
- };
10317
- };
10318
- } & {
10319
- fleet: {
10320
- pm: {
10321
- template: {};
10322
10466
  } & {
10323
- template: {
10467
+ plan: {
10324
10468
  product: {};
10325
10469
  } & {
10326
10470
  product: {
@@ -10332,7 +10476,7 @@ export declare const app: Elysia<"", {
10332
10476
  size: number;
10333
10477
  page: number;
10334
10478
  };
10335
- pmTemplateId: string;
10479
+ pmPlanId: string;
10336
10480
  };
10337
10481
  headers: unknown;
10338
10482
  response: {
@@ -10340,44 +10484,20 @@ export declare const app: Elysia<"", {
10340
10484
  totalCount: number;
10341
10485
  totalPage: number;
10342
10486
  result: Omit<{
10343
- product: {
10344
- pmTemplateId: string;
10345
- productKindId: string;
10346
- quantity: number | null;
10347
- uomId: string;
10348
- id: string;
10349
- createdAt: string;
10350
- updatedAt: string;
10351
- deletedAt: string | null;
10352
- oldId: number | null;
10353
- };
10354
- productKind: {
10355
- productCategoryId: string;
10356
- name: string;
10357
- description: string | null;
10358
- id: string;
10359
- createdAt: string;
10360
- updatedAt: string;
10361
- deletedAt: string | null;
10362
- oldId: number | null;
10363
- } | null;
10364
- uom: {
10365
- uomCategoryId: string;
10366
- code: string | null;
10367
- name: string;
10368
- description: string | null;
10369
- symbol: string | null;
10370
- isBaseUnit: boolean;
10371
- baseFactor: number | null;
10372
- id: string;
10373
- createdAt: string;
10374
- updatedAt: string;
10375
- deletedAt: string | null;
10376
- oldId: number | null;
10377
- } | null;
10378
10487
  totalCount: number;
10488
+ pmPlanId: string;
10489
+ productKindId: string;
10490
+ uomId: string;
10491
+ quantity: number | null;
10492
+ pmQuantity: string;
10493
+ id: string;
10494
+ createdAt: string;
10495
+ updatedAt: string;
10496
+ deletedAt: string | null;
10497
+ oldId: number | null;
10379
10498
  }, "totalCount">[];
10380
10499
  };
10500
+ 401: "Токен олдсонгүй";
10381
10501
  422: {
10382
10502
  type: "validation";
10383
10503
  on: string;
@@ -10397,13 +10517,15 @@ export declare const app: Elysia<"", {
10397
10517
  oldId?: number | null | undefined;
10398
10518
  quantity?: number | null | undefined;
10399
10519
  uomId: string;
10400
- pmTemplateId: string;
10401
10520
  productKindId: string;
10521
+ pmPlanId: string;
10522
+ pmQuantity: string;
10402
10523
  };
10403
10524
  params: {};
10404
10525
  query: unknown;
10405
10526
  headers: unknown;
10406
10527
  response: {
10528
+ 401: "Токен олдсонгүй";
10407
10529
  422: {
10408
10530
  type: "validation";
10409
10531
  on: string;
@@ -10416,6 +10538,49 @@ export declare const app: Elysia<"", {
10416
10538
  };
10417
10539
  };
10418
10540
  };
10541
+ } & {
10542
+ product: {
10543
+ many: {
10544
+ post: {
10545
+ body: {
10546
+ oldId?: number | null | undefined;
10547
+ quantity?: number | null | undefined;
10548
+ uomId: string;
10549
+ productKindId: string;
10550
+ pmPlanId: string;
10551
+ pmQuantity: string;
10552
+ }[];
10553
+ params: {};
10554
+ query: unknown;
10555
+ headers: unknown;
10556
+ response: {
10557
+ 200: {
10558
+ id: string;
10559
+ createdAt: string;
10560
+ updatedAt: string;
10561
+ deletedAt: string | null;
10562
+ oldId: number | null;
10563
+ quantity: number | null;
10564
+ uomId: string;
10565
+ productKindId: string;
10566
+ pmPlanId: string;
10567
+ pmQuantity: string;
10568
+ }[];
10569
+ 400: "Бүтээгдэхүүний мэдээлэл оруулах мэдээлэл байхгүй байна.";
10570
+ 401: "Токен олдсонгүй";
10571
+ 422: {
10572
+ type: "validation";
10573
+ on: string;
10574
+ summary?: string;
10575
+ message?: string;
10576
+ found?: unknown;
10577
+ property?: string;
10578
+ expected?: string;
10579
+ };
10580
+ };
10581
+ };
10582
+ };
10583
+ };
10419
10584
  } & {
10420
10585
  product: {
10421
10586
  ":id": {
@@ -10424,8 +10589,9 @@ export declare const app: Elysia<"", {
10424
10589
  oldId?: number | null | undefined;
10425
10590
  quantity?: number | null | undefined;
10426
10591
  uomId?: string | undefined;
10427
- pmTemplateId?: string | undefined;
10428
10592
  productKindId?: string | undefined;
10593
+ pmPlanId?: string | undefined;
10594
+ pmQuantity?: string | undefined;
10429
10595
  };
10430
10596
  params: {
10431
10597
  id: string;
@@ -10433,6 +10599,7 @@ export declare const app: Elysia<"", {
10433
10599
  query: unknown;
10434
10600
  headers: unknown;
10435
10601
  response: {
10602
+ 401: "Токен олдсонгүй";
10436
10603
  422: {
10437
10604
  type: "validation";
10438
10605
  on: string;
@@ -10457,6 +10624,7 @@ export declare const app: Elysia<"", {
10457
10624
  query: unknown;
10458
10625
  headers: unknown;
10459
10626
  response: {
10627
+ 401: "Токен олдсонгүй";
10460
10628
  422: {
10461
10629
  type: "validation";
10462
10630
  on: string;
@@ -10472,7 +10640,7 @@ export declare const app: Elysia<"", {
10472
10640
  };
10473
10641
  };
10474
10642
  } & {
10475
- template: {
10643
+ plan: {
10476
10644
  get: {
10477
10645
  body: unknown;
10478
10646
  params: {};
@@ -10488,65 +10656,21 @@ export declare const app: Elysia<"", {
10488
10656
  totalCount: number;
10489
10657
  totalPage: number;
10490
10658
  result: Omit<{
10491
- template: {
10492
- machineKindId: string;
10493
- companyId: string | null;
10494
- operationAmount: number | null;
10495
- uomId: string;
10496
- serviceKindId: string;
10497
- name: string;
10498
- description: string | null;
10499
- id: string;
10500
- createdAt: string;
10501
- updatedAt: string;
10502
- deletedAt: string | null;
10503
- oldId: number | null;
10504
- };
10505
- machineKind: {
10506
- vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
10507
- parentId: string | null;
10508
- name: string;
10509
- description: string | null;
10510
- yearStart: number | null;
10511
- yearEnd: number | null;
10512
- imagePath: string | null;
10513
- id: string;
10514
- createdAt: string;
10515
- updatedAt: string;
10516
- deletedAt: string | null;
10517
- oldId: number | null;
10518
- } | null;
10519
- uom: {
10520
- uomCategoryId: string;
10521
- code: string | null;
10522
- name: string;
10523
- description: string | null;
10524
- symbol: string | null;
10525
- isBaseUnit: boolean;
10526
- baseFactor: number | null;
10527
- id: string;
10528
- createdAt: string;
10529
- updatedAt: string;
10530
- deletedAt: string | null;
10531
- oldId: number | null;
10532
- } | null;
10533
- serviceKind: {
10534
- serviceKindId: string | null;
10535
- companyId: string;
10536
- branchId: string | null;
10537
- name: string;
10538
- description: string | null;
10539
- enabled: boolean;
10540
- price: number;
10541
- id: string;
10542
- createdAt: string;
10543
- updatedAt: string;
10544
- deletedAt: string | null;
10545
- oldId: number | null;
10546
- } | null;
10547
10659
  totalCount: number;
10660
+ companyId: string;
10661
+ name: string;
10662
+ description: string | null;
10663
+ dateStart: Date | null;
10664
+ dateEnd: Date | null;
10665
+ id: string;
10666
+ createdAt: string;
10667
+ updatedAt: string;
10668
+ deletedAt: string | null;
10669
+ oldId: number | null;
10548
10670
  }, "totalCount">[];
10549
10671
  };
10672
+ 401: "Токен олдсонгүй";
10673
+ 403: "Хандах эрхгүй байна.";
10550
10674
  422: {
10551
10675
  type: "validation";
10552
10676
  on: string;
@@ -10560,22 +10684,25 @@ export declare const app: Elysia<"", {
10560
10684
  };
10561
10685
  };
10562
10686
  } & {
10563
- template: {
10687
+ plan: {
10564
10688
  post: {
10565
10689
  body: {
10566
- companyId?: string | null | undefined;
10567
10690
  oldId?: number | null | undefined;
10568
10691
  description?: string | null | undefined;
10569
- operationAmount?: number | null | undefined;
10692
+ dateStart?: Date | null | undefined;
10693
+ dateEnd?: Date | null | undefined;
10570
10694
  name: string;
10571
- serviceKindId: string;
10572
- machineKindId: string;
10573
- uomId: string;
10695
+ companyId: string;
10574
10696
  };
10575
10697
  params: {};
10576
10698
  query: unknown;
10577
10699
  headers: unknown;
10578
10700
  response: {
10701
+ 200: {
10702
+ id: string;
10703
+ };
10704
+ 401: "Токен олдсонгүй";
10705
+ 403: "Хандах эрхгүй байна.";
10579
10706
  422: {
10580
10707
  type: "validation";
10581
10708
  on: string;
@@ -10589,18 +10716,16 @@ export declare const app: Elysia<"", {
10589
10716
  };
10590
10717
  };
10591
10718
  } & {
10592
- template: {
10719
+ plan: {
10593
10720
  ":id": {
10594
10721
  put: {
10595
10722
  body: {
10596
10723
  name?: string | undefined;
10597
- companyId?: string | null | undefined;
10724
+ companyId?: string | undefined;
10598
10725
  oldId?: number | null | undefined;
10599
10726
  description?: string | null | undefined;
10600
- serviceKindId?: string | undefined;
10601
- machineKindId?: string | undefined;
10602
- operationAmount?: number | null | undefined;
10603
- uomId?: string | undefined;
10727
+ dateStart?: Date | null | undefined;
10728
+ dateEnd?: Date | null | undefined;
10604
10729
  };
10605
10730
  params: {
10606
10731
  id: string;
@@ -10608,6 +10733,8 @@ export declare const app: Elysia<"", {
10608
10733
  query: unknown;
10609
10734
  headers: unknown;
10610
10735
  response: {
10736
+ 401: "Токен олдсонгүй";
10737
+ 403: "Хандах эрхгүй байна.";
10611
10738
  422: {
10612
10739
  type: "validation";
10613
10740
  on: string;
@@ -10622,7 +10749,7 @@ export declare const app: Elysia<"", {
10622
10749
  };
10623
10750
  };
10624
10751
  } & {
10625
- template: {
10752
+ plan: {
10626
10753
  ":id": {
10627
10754
  delete: {
10628
10755
  body: unknown;
@@ -10632,6 +10759,8 @@ export declare const app: Elysia<"", {
10632
10759
  query: unknown;
10633
10760
  headers: unknown;
10634
10761
  response: {
10762
+ 401: "Токен олдсонгүй";
10763
+ 403: "Хандах эрхгүй байна.";
10635
10764
  422: {
10636
10765
  type: "validation";
10637
10766
  on: string;
@@ -11402,6 +11531,8 @@ export declare const app: Elysia<"", {
11402
11531
  oldId: number | null;
11403
11532
  }, "totalCount">[];
11404
11533
  };
11534
+ 401: "Токен олдсонгүй";
11535
+ 403: "Хандах эрхгүй байна.";
11405
11536
  422: {
11406
11537
  type: "validation";
11407
11538
  on: string;
@@ -11445,6 +11576,8 @@ export declare const app: Elysia<"", {
11445
11576
  isBaseUnit: boolean;
11446
11577
  baseFactor: number | null;
11447
11578
  };
11579
+ 401: "Токен олдсонгүй";
11580
+ 403: "Хандах эрхгүй байна.";
11448
11581
  422: {
11449
11582
  type: "validation";
11450
11583
  on: string;
@@ -11491,6 +11624,8 @@ export declare const app: Elysia<"", {
11491
11624
  deletedAt: string | null;
11492
11625
  oldId: number | null;
11493
11626
  };
11627
+ 401: "Токен олдсонгүй";
11628
+ 403: "Хандах эрхгүй байна.";
11494
11629
  422: {
11495
11630
  type: "validation";
11496
11631
  on: string;
@@ -11515,6 +11650,8 @@ export declare const app: Elysia<"", {
11515
11650
  query: unknown;
11516
11651
  headers: unknown;
11517
11652
  response: {
11653
+ 401: "Токен олдсонгүй";
11654
+ 403: "Хандах эрхгүй байна.";
11518
11655
  422: {
11519
11656
  type: "validation";
11520
11657
  on: string;