autosync_backend2 1.2.100 → 1.2.101

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 +270 -270
  2. package/dist/index.js +190 -186
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -613,8 +613,8 @@ export declare const app: Elysia<"", {
613
613
  query: {
614
614
  id?: string | undefined;
615
615
  companyId?: string | undefined;
616
- productId?: string | undefined;
617
616
  warehouseItemId?: string | undefined;
617
+ productId?: string | undefined;
618
618
  pagination: {
619
619
  size: number;
620
620
  page: number;
@@ -659,10 +659,10 @@ export declare const app: Elysia<"", {
659
659
  post: {
660
660
  body: {
661
661
  oldId?: number | null | undefined;
662
- price?: number | undefined;
663
- uomId?: string | null | undefined;
664
662
  productId?: string | null | undefined;
665
663
  baseQuantity?: number | undefined;
664
+ uomId?: string | null | undefined;
665
+ price?: number | undefined;
666
666
  currency?: string | undefined;
667
667
  warehouseItemId: string;
668
668
  };
@@ -677,11 +677,11 @@ export declare const app: Elysia<"", {
677
677
  companyId: string;
678
678
  deletedAt: string | null;
679
679
  oldId: number | null;
680
- price: number;
681
- uomId: string | null;
682
- productId: string | null;
683
680
  warehouseItemId: string;
681
+ productId: string | null;
684
682
  baseQuantity: number;
683
+ uomId: string | null;
684
+ price: number;
685
685
  currency: string;
686
686
  };
687
687
  401: "Токен олдсонгүй";
@@ -704,11 +704,11 @@ export declare const app: Elysia<"", {
704
704
  body: {
705
705
  companyId?: string | undefined;
706
706
  oldId?: number | null | undefined;
707
- price?: number | undefined;
708
- uomId?: string | null | undefined;
709
- productId?: string | null | undefined;
710
707
  warehouseItemId?: string | undefined;
708
+ productId?: string | null | undefined;
711
709
  baseQuantity?: number | undefined;
710
+ uomId?: string | null | undefined;
711
+ price?: number | undefined;
712
712
  currency?: string | undefined;
713
713
  };
714
714
  params: {
@@ -781,11 +781,11 @@ export declare const app: Elysia<"", {
781
781
  params: {};
782
782
  query: {
783
783
  id?: string | undefined;
784
- state?: "DELIVERED" | "CANCELLED" | "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED" | undefined;
785
- customerId?: string | undefined;
786
784
  orderCode?: string | undefined;
785
+ customerId?: string | undefined;
787
786
  companySupplierId?: string | undefined;
788
787
  companyClientId?: string | undefined;
788
+ state?: "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED" | undefined;
789
789
  pagination: {
790
790
  size: number;
791
791
  page: number;
@@ -804,7 +804,7 @@ export declare const app: Elysia<"", {
804
804
  deliveryAddress: string;
805
805
  companySupplierId: string | null;
806
806
  companyClientId: string;
807
- state: "DELIVERED" | "CANCELLED" | "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED";
807
+ state: "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED";
808
808
  priceTotal: number;
809
809
  currency: string | null;
810
810
  extraData: unknown;
@@ -839,22 +839,22 @@ export declare const app: Elysia<"", {
839
839
  post: {
840
840
  body: {
841
841
  oldId?: number | null | undefined;
842
- state?: "DELIVERED" | "CANCELLED" | "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED" | undefined;
843
- timeDelivered?: string | null | undefined;
844
842
  currency?: string | null | undefined;
845
843
  companySupplierId?: string | null | undefined;
844
+ state?: "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED" | undefined;
846
845
  extraData?: import("drizzle-typebox").Json | undefined;
847
846
  orderDate?: string | null | undefined;
848
847
  requestedDeliveryDate?: string | null | undefined;
849
848
  timeConfirmed?: string | null | undefined;
850
849
  timeShipped?: string | null | undefined;
850
+ timeDelivered?: string | null | undefined;
851
851
  timeCancelled?: string | null | undefined;
852
- customerId: string;
853
- priceTotal: number;
854
852
  orderCode: string;
853
+ customerId: string;
855
854
  customerName: string;
856
855
  deliveryAddress: string;
857
856
  companyClientId: string;
857
+ priceTotal: number;
858
858
  };
859
859
  params: {};
860
860
  query: unknown;
@@ -866,21 +866,21 @@ export declare const app: Elysia<"", {
866
866
  updatedAt: string;
867
867
  deletedAt: string | null;
868
868
  oldId: number | null;
869
- state: "DELIVERED" | "CANCELLED" | "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED";
870
- timeDelivered: string | null;
871
- customerId: string;
872
- priceTotal: number;
873
869
  currency: string | null;
874
870
  orderCode: string;
871
+ customerId: string;
875
872
  customerName: string;
876
873
  deliveryAddress: string;
877
874
  companySupplierId: string | null;
878
875
  companyClientId: string;
876
+ state: "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED";
877
+ priceTotal: number;
879
878
  extraData: unknown;
880
879
  orderDate: string | null;
881
880
  requestedDeliveryDate: string | null;
882
881
  timeConfirmed: string | null;
883
882
  timeShipped: string | null;
883
+ timeDelivered: string | null;
884
884
  timeCancelled: string | null;
885
885
  };
886
886
  401: "Токен олдсонгүй";
@@ -902,21 +902,21 @@ export declare const app: Elysia<"", {
902
902
  put: {
903
903
  body: {
904
904
  oldId?: number | null | undefined;
905
- state?: "DELIVERED" | "CANCELLED" | "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED" | undefined;
906
- timeDelivered?: string | null | undefined;
907
- customerId?: string | undefined;
908
- priceTotal?: number | undefined;
909
905
  currency?: string | null | undefined;
910
906
  orderCode?: string | undefined;
907
+ customerId?: string | undefined;
911
908
  customerName?: string | undefined;
912
909
  deliveryAddress?: string | undefined;
913
910
  companySupplierId?: string | null | undefined;
914
911
  companyClientId?: string | undefined;
912
+ state?: "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED" | undefined;
913
+ priceTotal?: number | undefined;
915
914
  extraData?: import("drizzle-typebox").Json | undefined;
916
915
  orderDate?: string | null | undefined;
917
916
  requestedDeliveryDate?: string | null | undefined;
918
917
  timeConfirmed?: string | null | undefined;
919
918
  timeShipped?: string | null | undefined;
919
+ timeDelivered?: string | null | undefined;
920
920
  timeCancelled?: string | null | undefined;
921
921
  };
922
922
  params: {
@@ -932,7 +932,7 @@ export declare const app: Elysia<"", {
932
932
  deliveryAddress: string;
933
933
  companySupplierId: string | null;
934
934
  companyClientId: string;
935
- state: "DELIVERED" | "CANCELLED" | "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED";
935
+ state: "DRAFT" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "ON_HOLD" | "PARTIALLY_SHIPPED" | "PARTIALLY_DELIVERED";
936
936
  priceTotal: number;
937
937
  currency: string | null;
938
938
  extraData: unknown;
@@ -998,8 +998,8 @@ export declare const app: Elysia<"", {
998
998
  params: {};
999
999
  query: {
1000
1000
  id?: string | undefined;
1001
- state?: "PENDING" | "DELIVERED" | "CANCELLED" | "SHIPPED" | "RESERVED" | "BACKORDERED" | undefined;
1002
1001
  productId?: string | undefined;
1002
+ state?: "SHIPPED" | "DELIVERED" | "CANCELLED" | "PENDING" | "RESERVED" | "BACKORDERED" | undefined;
1003
1003
  btOrderId?: string | undefined;
1004
1004
  pagination: {
1005
1005
  size: number;
@@ -1022,7 +1022,7 @@ export declare const app: Elysia<"", {
1022
1022
  currency: string | null;
1023
1023
  priceUnit: number;
1024
1024
  priceTotal: number;
1025
- state: "PENDING" | "DELIVERED" | "CANCELLED" | "SHIPPED" | "RESERVED" | "BACKORDERED";
1025
+ state: "SHIPPED" | "DELIVERED" | "CANCELLED" | "PENDING" | "RESERVED" | "BACKORDERED";
1026
1026
  id: string;
1027
1027
  createdAt: string;
1028
1028
  updatedAt: string;
@@ -1048,16 +1048,16 @@ export declare const app: Elysia<"", {
1048
1048
  post: {
1049
1049
  body: {
1050
1050
  oldId?: number | null | undefined;
1051
- state?: "PENDING" | "DELIVERED" | "CANCELLED" | "SHIPPED" | "RESERVED" | "BACKORDERED" | undefined;
1052
- partNumber?: string | null | undefined;
1053
1051
  currency?: string | null | undefined;
1052
+ state?: "SHIPPED" | "DELIVERED" | "CANCELLED" | "PENDING" | "RESERVED" | "BACKORDERED" | undefined;
1054
1053
  skuId?: string | null | undefined;
1055
1054
  skuName?: string | null | undefined;
1055
+ partNumber?: string | null | undefined;
1056
+ productId: string;
1056
1057
  priceTotal: number;
1058
+ btOrderId: string;
1057
1059
  quantity: number;
1058
1060
  priceUnit: number;
1059
- productId: string;
1060
- btOrderId: string;
1061
1061
  };
1062
1062
  params: {};
1063
1063
  query: unknown;
@@ -1069,16 +1069,16 @@ export declare const app: Elysia<"", {
1069
1069
  updatedAt: string;
1070
1070
  deletedAt: string | null;
1071
1071
  oldId: number | null;
1072
- state: "PENDING" | "DELIVERED" | "CANCELLED" | "SHIPPED" | "RESERVED" | "BACKORDERED";
1073
- priceTotal: number;
1074
- quantity: number;
1075
- priceUnit: number;
1076
- partNumber: string | null;
1077
1072
  productId: string;
1078
1073
  currency: string | null;
1074
+ state: "SHIPPED" | "DELIVERED" | "CANCELLED" | "PENDING" | "RESERVED" | "BACKORDERED";
1075
+ priceTotal: number;
1079
1076
  btOrderId: string;
1080
1077
  skuId: string | null;
1081
1078
  skuName: string | null;
1079
+ partNumber: string | null;
1080
+ quantity: number;
1081
+ priceUnit: number;
1082
1082
  };
1083
1083
  401: "Токен олдсонгүй";
1084
1084
  422: {
@@ -1099,16 +1099,16 @@ export declare const app: Elysia<"", {
1099
1099
  put: {
1100
1100
  body: {
1101
1101
  oldId?: number | null | undefined;
1102
- state?: "PENDING" | "DELIVERED" | "CANCELLED" | "SHIPPED" | "RESERVED" | "BACKORDERED" | undefined;
1103
- priceTotal?: number | undefined;
1104
- quantity?: number | undefined;
1105
- priceUnit?: number | undefined;
1106
- partNumber?: string | null | undefined;
1107
1102
  productId?: string | undefined;
1108
1103
  currency?: string | null | undefined;
1104
+ state?: "SHIPPED" | "DELIVERED" | "CANCELLED" | "PENDING" | "RESERVED" | "BACKORDERED" | undefined;
1105
+ priceTotal?: number | undefined;
1109
1106
  btOrderId?: string | undefined;
1110
1107
  skuId?: string | null | undefined;
1111
1108
  skuName?: string | null | undefined;
1109
+ partNumber?: string | null | undefined;
1110
+ quantity?: number | undefined;
1111
+ priceUnit?: number | undefined;
1112
1112
  };
1113
1113
  params: {
1114
1114
  id: string;
@@ -1126,7 +1126,7 @@ export declare const app: Elysia<"", {
1126
1126
  currency: string | null;
1127
1127
  priceUnit: number;
1128
1128
  priceTotal: number;
1129
- state: "PENDING" | "DELIVERED" | "CANCELLED" | "SHIPPED" | "RESERVED" | "BACKORDERED";
1129
+ state: "SHIPPED" | "DELIVERED" | "CANCELLED" | "PENDING" | "RESERVED" | "BACKORDERED";
1130
1130
  id: string;
1131
1131
  createdAt: string;
1132
1132
  updatedAt: string;
@@ -1183,8 +1183,8 @@ export declare const app: Elysia<"", {
1183
1183
  params: {};
1184
1184
  query: {
1185
1185
  id?: string | undefined;
1186
- state?: "CANCELLED" | "APPROVED" | "EXPIRED" | "DRAFT" | "SUBMITTED" | "UNDER_REVIEW" | "REJECTED" | undefined;
1187
1186
  companyClientId?: string | undefined;
1187
+ state?: "DRAFT" | "CANCELLED" | "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "EXPIRED" | undefined;
1188
1188
  btOrderId?: string | undefined;
1189
1189
  pagination: {
1190
1190
  size: number;
@@ -1202,7 +1202,7 @@ export declare const app: Elysia<"", {
1202
1202
  companyClientId: string;
1203
1203
  priceTotal: number;
1204
1204
  currency: string | null;
1205
- state: "CANCELLED" | "APPROVED" | "EXPIRED" | "DRAFT" | "SUBMITTED" | "UNDER_REVIEW" | "REJECTED";
1205
+ state: "DRAFT" | "CANCELLED" | "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "EXPIRED";
1206
1206
  timeSubmitted: string | null;
1207
1207
  timeUnderReview: string | null;
1208
1208
  timeApproved: string | null;
@@ -1231,13 +1231,13 @@ export declare const app: Elysia<"", {
1231
1231
  post: {
1232
1232
  body: {
1233
1233
  oldId?: number | null | undefined;
1234
- state?: "CANCELLED" | "APPROVED" | "EXPIRED" | "DRAFT" | "SUBMITTED" | "UNDER_REVIEW" | "REJECTED" | undefined;
1235
1234
  currency?: string | null | undefined;
1235
+ state?: "DRAFT" | "CANCELLED" | "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "EXPIRED" | undefined;
1236
1236
  timeSubmitted?: string | null | undefined;
1237
1237
  timeUnderReview?: string | null | undefined;
1238
1238
  timeApproved?: string | null | undefined;
1239
- priceTotal: number;
1240
1239
  companyClientId: string;
1240
+ priceTotal: number;
1241
1241
  btOrderId: string;
1242
1242
  };
1243
1243
  params: {};
@@ -1250,10 +1250,10 @@ export declare const app: Elysia<"", {
1250
1250
  updatedAt: string;
1251
1251
  deletedAt: string | null;
1252
1252
  oldId: number | null;
1253
- state: "CANCELLED" | "APPROVED" | "EXPIRED" | "DRAFT" | "SUBMITTED" | "UNDER_REVIEW" | "REJECTED";
1254
- priceTotal: number;
1255
1253
  currency: string | null;
1256
1254
  companyClientId: string;
1255
+ state: "DRAFT" | "CANCELLED" | "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "EXPIRED";
1256
+ priceTotal: number;
1257
1257
  btOrderId: string;
1258
1258
  timeSubmitted: string | null;
1259
1259
  timeUnderReview: string | null;
@@ -1278,10 +1278,10 @@ export declare const app: Elysia<"", {
1278
1278
  put: {
1279
1279
  body: {
1280
1280
  oldId?: number | null | undefined;
1281
- state?: "CANCELLED" | "APPROVED" | "EXPIRED" | "DRAFT" | "SUBMITTED" | "UNDER_REVIEW" | "REJECTED" | undefined;
1282
- priceTotal?: number | undefined;
1283
1281
  currency?: string | null | undefined;
1284
1282
  companyClientId?: string | undefined;
1283
+ state?: "DRAFT" | "CANCELLED" | "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "EXPIRED" | undefined;
1284
+ priceTotal?: number | undefined;
1285
1285
  btOrderId?: string | undefined;
1286
1286
  timeSubmitted?: string | null | undefined;
1287
1287
  timeUnderReview?: string | null | undefined;
@@ -1298,7 +1298,7 @@ export declare const app: Elysia<"", {
1298
1298
  companyClientId: string;
1299
1299
  priceTotal: number;
1300
1300
  currency: string | null;
1301
- state: "CANCELLED" | "APPROVED" | "EXPIRED" | "DRAFT" | "SUBMITTED" | "UNDER_REVIEW" | "REJECTED";
1301
+ state: "DRAFT" | "CANCELLED" | "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "EXPIRED";
1302
1302
  timeSubmitted: string | null;
1303
1303
  timeUnderReview: string | null;
1304
1304
  timeApproved: string | null;
@@ -1406,14 +1406,14 @@ export declare const app: Elysia<"", {
1406
1406
  post: {
1407
1407
  body: {
1408
1408
  oldId?: number | null | undefined;
1409
- partNumber?: string | null | undefined;
1410
1409
  currency?: string | null | undefined;
1411
1410
  skuId?: string | null | undefined;
1412
1411
  skuName?: string | null | undefined;
1412
+ partNumber?: string | null | undefined;
1413
+ productId: string;
1413
1414
  priceTotal: number;
1414
1415
  quantity: number;
1415
1416
  priceUnit: number;
1416
- productId: string;
1417
1417
  btOrderReqId: string;
1418
1418
  };
1419
1419
  params: {};
@@ -1426,14 +1426,14 @@ export declare const app: Elysia<"", {
1426
1426
  updatedAt: string;
1427
1427
  deletedAt: string | null;
1428
1428
  oldId: number | null;
1429
- priceTotal: number;
1430
- quantity: number;
1431
- priceUnit: number;
1432
- partNumber: string | null;
1433
1429
  productId: string;
1434
1430
  currency: string | null;
1431
+ priceTotal: number;
1435
1432
  skuId: string | null;
1436
1433
  skuName: string | null;
1434
+ partNumber: string | null;
1435
+ quantity: number;
1436
+ priceUnit: number;
1437
1437
  btOrderReqId: string;
1438
1438
  };
1439
1439
  401: "Токен олдсонгүй";
@@ -1455,14 +1455,14 @@ export declare const app: Elysia<"", {
1455
1455
  put: {
1456
1456
  body: {
1457
1457
  oldId?: number | null | undefined;
1458
- priceTotal?: number | undefined;
1459
- quantity?: number | undefined;
1460
- priceUnit?: number | undefined;
1461
- partNumber?: string | null | undefined;
1462
1458
  productId?: string | undefined;
1463
1459
  currency?: string | null | undefined;
1460
+ priceTotal?: number | undefined;
1464
1461
  skuId?: string | null | undefined;
1465
1462
  skuName?: string | null | undefined;
1463
+ partNumber?: string | null | undefined;
1464
+ quantity?: number | undefined;
1465
+ priceUnit?: number | undefined;
1466
1466
  btOrderReqId?: string | undefined;
1467
1467
  };
1468
1468
  params: {
@@ -1537,7 +1537,7 @@ export declare const app: Elysia<"", {
1537
1537
  params: {};
1538
1538
  query: {
1539
1539
  id?: string | undefined;
1540
- state?: "PAID" | "OVERDUE" | "CANCELLED" | "DRAFT" | "ISSUED" | "PARTIALLY_PAID" | "VOID" | undefined;
1540
+ state?: "DRAFT" | "CANCELLED" | "ISSUED" | "PARTIALLY_PAID" | "PAID" | "OVERDUE" | "VOID" | undefined;
1541
1541
  btOrderId?: string | undefined;
1542
1542
  pagination: {
1543
1543
  size: number;
@@ -1555,7 +1555,7 @@ export declare const app: Elysia<"", {
1555
1555
  amountTotal: number;
1556
1556
  dateStart: string | null;
1557
1557
  dateEnd: string | null;
1558
- state: "PAID" | "OVERDUE" | "CANCELLED" | "DRAFT" | "ISSUED" | "PARTIALLY_PAID" | "VOID";
1558
+ state: "DRAFT" | "CANCELLED" | "ISSUED" | "PARTIALLY_PAID" | "PAID" | "OVERDUE" | "VOID";
1559
1559
  paymentDate: string | null;
1560
1560
  id: string;
1561
1561
  createdAt: string;
@@ -1582,7 +1582,7 @@ export declare const app: Elysia<"", {
1582
1582
  post: {
1583
1583
  body: {
1584
1584
  oldId?: number | null | undefined;
1585
- state?: "PAID" | "OVERDUE" | "CANCELLED" | "DRAFT" | "ISSUED" | "PARTIALLY_PAID" | "VOID" | undefined;
1585
+ state?: "DRAFT" | "CANCELLED" | "ISSUED" | "PARTIALLY_PAID" | "PAID" | "OVERDUE" | "VOID" | undefined;
1586
1586
  dateStart?: string | null | undefined;
1587
1587
  dateEnd?: string | null | undefined;
1588
1588
  paymentDate?: string | null | undefined;
@@ -1599,11 +1599,11 @@ export declare const app: Elysia<"", {
1599
1599
  updatedAt: string;
1600
1600
  deletedAt: string | null;
1601
1601
  oldId: number | null;
1602
- state: "PAID" | "OVERDUE" | "CANCELLED" | "DRAFT" | "ISSUED" | "PARTIALLY_PAID" | "VOID";
1603
- dateStart: string | null;
1604
- dateEnd: string | null;
1602
+ state: "DRAFT" | "CANCELLED" | "ISSUED" | "PARTIALLY_PAID" | "PAID" | "OVERDUE" | "VOID";
1605
1603
  btOrderId: string;
1606
1604
  amountTotal: number;
1605
+ dateStart: string | null;
1606
+ dateEnd: string | null;
1607
1607
  paymentDate: string | null;
1608
1608
  };
1609
1609
  401: "Токен олдсонгүй";
@@ -1625,11 +1625,11 @@ export declare const app: Elysia<"", {
1625
1625
  put: {
1626
1626
  body: {
1627
1627
  oldId?: number | null | undefined;
1628
- state?: "PAID" | "OVERDUE" | "CANCELLED" | "DRAFT" | "ISSUED" | "PARTIALLY_PAID" | "VOID" | undefined;
1629
- dateStart?: string | null | undefined;
1630
- dateEnd?: string | null | undefined;
1628
+ state?: "DRAFT" | "CANCELLED" | "ISSUED" | "PARTIALLY_PAID" | "PAID" | "OVERDUE" | "VOID" | undefined;
1631
1629
  btOrderId?: string | undefined;
1632
1630
  amountTotal?: number | undefined;
1631
+ dateStart?: string | null | undefined;
1632
+ dateEnd?: string | null | undefined;
1633
1633
  paymentDate?: string | null | undefined;
1634
1634
  };
1635
1635
  params: {
@@ -1643,7 +1643,7 @@ export declare const app: Elysia<"", {
1643
1643
  amountTotal: number;
1644
1644
  dateStart: string | null;
1645
1645
  dateEnd: string | null;
1646
- state: "PAID" | "OVERDUE" | "CANCELLED" | "DRAFT" | "ISSUED" | "PARTIALLY_PAID" | "VOID";
1646
+ state: "DRAFT" | "CANCELLED" | "ISSUED" | "PARTIALLY_PAID" | "PAID" | "OVERDUE" | "VOID";
1647
1647
  paymentDate: string | null;
1648
1648
  id: string;
1649
1649
  createdAt: string;
@@ -1701,7 +1701,7 @@ export declare const app: Elysia<"", {
1701
1701
  params: {};
1702
1702
  query: {
1703
1703
  id?: string | undefined;
1704
- state?: "PENDING" | "FAILED" | "REFUNDED" | "COMPLETED" | "REVERSED" | undefined;
1704
+ state?: "PENDING" | "COMPLETED" | "FAILED" | "REFUNDED" | "REVERSED" | undefined;
1705
1705
  btInvoiceId?: string | undefined;
1706
1706
  pagination: {
1707
1707
  size: number;
@@ -1720,7 +1720,7 @@ export declare const app: Elysia<"", {
1720
1720
  paymentMethod: string;
1721
1721
  paymentChannel: string;
1722
1722
  currency: string | null;
1723
- state: "PENDING" | "FAILED" | "REFUNDED" | "COMPLETED" | "REVERSED";
1723
+ state: "PENDING" | "COMPLETED" | "FAILED" | "REFUNDED" | "REVERSED";
1724
1724
  note: string | null;
1725
1725
  id: string;
1726
1726
  createdAt: string;
@@ -1747,13 +1747,13 @@ export declare const app: Elysia<"", {
1747
1747
  post: {
1748
1748
  body: {
1749
1749
  oldId?: number | null | undefined;
1750
- state?: "PENDING" | "FAILED" | "REFUNDED" | "COMPLETED" | "REVERSED" | undefined;
1751
- note?: string | null | undefined;
1752
1750
  currency?: string | null | undefined;
1751
+ state?: "PENDING" | "COMPLETED" | "FAILED" | "REFUNDED" | "REVERSED" | undefined;
1752
+ note?: string | null | undefined;
1753
+ btInvoiceId: string;
1753
1754
  amount: number;
1754
1755
  paymentMethod: string;
1755
1756
  paymentChannel: string;
1756
- btInvoiceId: string;
1757
1757
  };
1758
1758
  params: {};
1759
1759
  query: unknown;
@@ -1765,13 +1765,13 @@ export declare const app: Elysia<"", {
1765
1765
  updatedAt: string;
1766
1766
  deletedAt: string | null;
1767
1767
  oldId: number | null;
1768
- state: "PENDING" | "FAILED" | "REFUNDED" | "COMPLETED" | "REVERSED";
1769
- note: string | null;
1768
+ currency: string | null;
1769
+ state: "PENDING" | "COMPLETED" | "FAILED" | "REFUNDED" | "REVERSED";
1770
+ btInvoiceId: string;
1770
1771
  amount: number;
1771
1772
  paymentMethod: string;
1772
1773
  paymentChannel: string;
1773
- currency: string | null;
1774
- btInvoiceId: string;
1774
+ note: string | null;
1775
1775
  };
1776
1776
  401: "Токен олдсонгүй";
1777
1777
  422: {
@@ -1792,13 +1792,13 @@ export declare const app: Elysia<"", {
1792
1792
  put: {
1793
1793
  body: {
1794
1794
  oldId?: number | null | undefined;
1795
- state?: "PENDING" | "FAILED" | "REFUNDED" | "COMPLETED" | "REVERSED" | undefined;
1796
- note?: string | null | undefined;
1795
+ currency?: string | null | undefined;
1796
+ state?: "PENDING" | "COMPLETED" | "FAILED" | "REFUNDED" | "REVERSED" | undefined;
1797
+ btInvoiceId?: string | undefined;
1797
1798
  amount?: number | undefined;
1798
1799
  paymentMethod?: string | undefined;
1799
1800
  paymentChannel?: string | undefined;
1800
- currency?: string | null | undefined;
1801
- btInvoiceId?: string | undefined;
1801
+ note?: string | null | undefined;
1802
1802
  };
1803
1803
  params: {
1804
1804
  id: string;
@@ -1812,7 +1812,7 @@ export declare const app: Elysia<"", {
1812
1812
  paymentMethod: string;
1813
1813
  paymentChannel: string;
1814
1814
  currency: string | null;
1815
- state: "PENDING" | "FAILED" | "REFUNDED" | "COMPLETED" | "REVERSED";
1815
+ state: "PENDING" | "COMPLETED" | "FAILED" | "REFUNDED" | "REVERSED";
1816
1816
  note: string | null;
1817
1817
  id: string;
1818
1818
  createdAt: string;
@@ -1874,8 +1874,8 @@ export declare const app: Elysia<"", {
1874
1874
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | "Авто гоёл" | "Батерей" | "Задаргаа" | undefined;
1875
1875
  id?: string | undefined;
1876
1876
  search?: string | undefined;
1877
- supplierId?: string | undefined;
1878
1877
  productId?: string | undefined;
1878
+ supplierId?: string | undefined;
1879
1879
  priceSell?: number | undefined;
1880
1880
  ids?: string[] | undefined;
1881
1881
  pagination: {
@@ -1942,9 +1942,9 @@ export declare const app: Elysia<"", {
1942
1942
  body: {
1943
1943
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | "Авто гоёл" | "Батерей" | "Задаргаа" | undefined;
1944
1944
  oldId?: number | null | undefined;
1945
+ productId?: string | null | undefined;
1945
1946
  description?: string | null | undefined;
1946
1947
  oen?: string | null | undefined;
1947
- productId?: string | null | undefined;
1948
1948
  barCode?: string | null | undefined;
1949
1949
  alias?: string | null | undefined;
1950
1950
  quantityUnit?: number | undefined;
@@ -1967,11 +1967,11 @@ export declare const app: Elysia<"", {
1967
1967
  companyId: string;
1968
1968
  deletedAt: string | null;
1969
1969
  oldId: number | null;
1970
- description: string | null;
1970
+ productId: string | null;
1971
1971
  partNumber: string;
1972
+ description: string | null;
1972
1973
  oen: string | null;
1973
1974
  supplierId: string;
1974
- productId: string | null;
1975
1975
  priceSell: number;
1976
1976
  priceBuy: number;
1977
1977
  barCode: string | null;
@@ -1998,9 +1998,9 @@ export declare const app: Elysia<"", {
1998
1998
  body: {
1999
1999
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | "Авто гоёл" | "Батерей" | "Задаргаа" | undefined;
2000
2000
  oldId?: number | null | undefined;
2001
+ productId?: string | null | undefined;
2001
2002
  description?: string | null | undefined;
2002
2003
  oen?: string | null | undefined;
2003
- productId?: string | null | undefined;
2004
2004
  barCode?: string | null | undefined;
2005
2005
  alias?: string | null | undefined;
2006
2006
  quantityUnit?: number | undefined;
@@ -2043,8 +2043,8 @@ export declare const app: Elysia<"", {
2043
2043
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | "Авто гоёл" | "Батерей" | "Задаргаа" | undefined;
2044
2044
  id?: string | undefined;
2045
2045
  search?: string | undefined;
2046
- supplierId?: string | undefined;
2047
2046
  productId?: string | undefined;
2047
+ supplierId?: string | undefined;
2048
2048
  priceSell?: number | undefined;
2049
2049
  ids?: string[] | undefined;
2050
2050
  };
@@ -2075,11 +2075,11 @@ export declare const app: Elysia<"", {
2075
2075
  name?: string | undefined;
2076
2076
  companyId?: string | undefined;
2077
2077
  oldId?: number | null | undefined;
2078
- description?: string | null | undefined;
2078
+ productId?: string | null | undefined;
2079
2079
  partNumber?: string | undefined;
2080
+ description?: string | null | undefined;
2080
2081
  oen?: string | null | undefined;
2081
2082
  supplierId?: string | undefined;
2082
- productId?: string | null | undefined;
2083
2083
  priceSell?: number | undefined;
2084
2084
  priceBuy?: number | undefined;
2085
2085
  barCode?: string | null | undefined;
@@ -2289,16 +2289,16 @@ export declare const app: Elysia<"", {
2289
2289
  body: unknown;
2290
2290
  params: {};
2291
2291
  query: {
2292
- isActive?: boolean | undefined;
2293
2292
  product?: {
2294
2293
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | "Авто гоёл" | "Батерей" | "Задаргаа" | undefined;
2295
2294
  id?: string | undefined;
2296
2295
  search?: string | undefined;
2297
- supplierId?: string | undefined;
2298
2296
  productId?: string | undefined;
2297
+ supplierId?: string | undefined;
2299
2298
  priceSell?: number | undefined;
2300
2299
  ids?: string[] | undefined;
2301
2300
  } | undefined;
2301
+ isActive?: boolean | undefined;
2302
2302
  warehouseId?: string | undefined;
2303
2303
  safetyStock?: number | undefined;
2304
2304
  shelfNumber?: string | undefined;
@@ -2400,9 +2400,9 @@ export declare const app: Elysia<"", {
2400
2400
  post: {
2401
2401
  body: {
2402
2402
  oldId?: number | null | undefined;
2403
- description?: string | null | undefined;
2404
- quantity?: number | undefined;
2405
2403
  order?: number | undefined;
2404
+ quantity?: number | undefined;
2405
+ description?: string | null | undefined;
2406
2406
  priceSell?: number | null | undefined;
2407
2407
  shelfNumber?: string | null | undefined;
2408
2408
  isOrdered?: boolean | undefined;
@@ -2420,10 +2420,10 @@ export declare const app: Elysia<"", {
2420
2420
  updatedAt: string;
2421
2421
  deletedAt: string | null;
2422
2422
  oldId: number | null;
2423
- description: string | null;
2424
- quantity: number;
2425
- order: number;
2426
2423
  productId: string;
2424
+ order: number;
2425
+ quantity: number;
2426
+ description: string | null;
2427
2427
  priceSell: number | null;
2428
2428
  warehouseId: string;
2429
2429
  safetyStock: number;
@@ -2452,9 +2452,9 @@ export declare const app: Elysia<"", {
2452
2452
  post: {
2453
2453
  body: {
2454
2454
  oldId?: number | null | undefined;
2455
- description?: string | null | undefined;
2456
- quantity?: number | undefined;
2457
2455
  order?: number | undefined;
2456
+ quantity?: number | undefined;
2457
+ description?: string | null | undefined;
2458
2458
  priceSell?: number | null | undefined;
2459
2459
  shelfNumber?: string | null | undefined;
2460
2460
  isOrdered?: boolean | undefined;
@@ -2501,16 +2501,16 @@ export declare const app: Elysia<"", {
2501
2501
  query: {
2502
2502
  employeeId?: string | undefined;
2503
2503
  userId?: string | undefined;
2504
- orderId?: string | undefined;
2505
2504
  product?: {
2506
2505
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | "Авто гоёл" | "Батерей" | "Задаргаа" | undefined;
2507
2506
  id?: string | undefined;
2508
2507
  search?: string | undefined;
2509
- supplierId?: string | undefined;
2510
2508
  productId?: string | undefined;
2509
+ supplierId?: string | undefined;
2511
2510
  priceSell?: number | undefined;
2512
2511
  ids?: string[] | undefined;
2513
2512
  } | undefined;
2513
+ orderId?: string | undefined;
2514
2514
  warehouseId?: string | undefined;
2515
2515
  itemId?: string | undefined;
2516
2516
  transactionType?: "IN" | "OUT" | undefined;
@@ -2687,9 +2687,9 @@ export declare const app: Elysia<"", {
2687
2687
  body: {
2688
2688
  deletedAt?: string | null | undefined;
2689
2689
  oldId?: number | null | undefined;
2690
- description?: string | null | undefined;
2691
- order?: number | undefined;
2692
2690
  productId?: string | undefined;
2691
+ order?: number | undefined;
2692
+ description?: string | null | undefined;
2693
2693
  priceSell?: number | null | undefined;
2694
2694
  warehouseId?: string | undefined;
2695
2695
  safetyStock?: number | undefined;
@@ -3315,8 +3315,8 @@ export declare const app: Elysia<"", {
3315
3315
  updatedAt: string;
3316
3316
  deletedAt: string | null;
3317
3317
  oldId: number | null;
3318
- rowCount: number;
3319
3318
  price: number;
3319
+ rowCount: number;
3320
3320
  } & {
3321
3321
  totalCount: number;
3322
3322
  }, "totalCount">[];
@@ -3340,8 +3340,8 @@ export declare const app: Elysia<"", {
3340
3340
  body: {
3341
3341
  oldId?: number | null | undefined;
3342
3342
  name: string;
3343
- rowCount: number;
3344
3343
  price: number;
3344
+ rowCount: number;
3345
3345
  };
3346
3346
  params: {};
3347
3347
  query: unknown;
@@ -3354,8 +3354,8 @@ export declare const app: Elysia<"", {
3354
3354
  updatedAt: string;
3355
3355
  deletedAt: string | null;
3356
3356
  oldId: number | null;
3357
- rowCount: number;
3358
3357
  price: number;
3358
+ rowCount: number;
3359
3359
  };
3360
3360
  401: "Токен олдсонгүй";
3361
3361
  422: {
@@ -3377,8 +3377,8 @@ export declare const app: Elysia<"", {
3377
3377
  body: {
3378
3378
  name?: string | undefined;
3379
3379
  oldId?: number | null | undefined;
3380
- rowCount?: number | undefined;
3381
3380
  price?: number | undefined;
3381
+ rowCount?: number | undefined;
3382
3382
  };
3383
3383
  params: {
3384
3384
  id: string;
@@ -3393,8 +3393,8 @@ export declare const app: Elysia<"", {
3393
3393
  updatedAt: string;
3394
3394
  deletedAt: string | null;
3395
3395
  oldId: number | null;
3396
- rowCount: number;
3397
3396
  price: number;
3397
+ rowCount: number;
3398
3398
  };
3399
3399
  401: "Токен олдсонгүй";
3400
3400
  404: string;
@@ -3516,9 +3516,9 @@ export declare const app: Elysia<"", {
3516
3516
  branchId: string | null;
3517
3517
  deletedAt: string | null;
3518
3518
  oldId: number | null;
3519
+ price: number;
3519
3520
  description: string | null;
3520
3521
  enabled: boolean;
3521
- price: number;
3522
3522
  serviceKindId: string | null;
3523
3523
  };
3524
3524
  401: "Токен олдсонгүй";
@@ -3571,9 +3571,9 @@ export declare const app: Elysia<"", {
3571
3571
  name?: string | undefined;
3572
3572
  branchId?: string | null | undefined;
3573
3573
  oldId?: number | null | undefined;
3574
+ price?: number | undefined;
3574
3575
  description?: string | null | undefined;
3575
3576
  enabled?: boolean | undefined;
3576
- price?: number | undefined;
3577
3577
  serviceKindId?: string | null | undefined;
3578
3578
  };
3579
3579
  params: {
@@ -3985,11 +3985,11 @@ export declare const app: Elysia<"", {
3985
3985
  companyId?: string | undefined;
3986
3986
  deletedAt?: string | null | undefined;
3987
3987
  oldId?: number | null | undefined;
3988
- billingPeriod?: "MONTHLY" | "ANNUAL" | "YEARLY" | undefined;
3988
+ note?: string | null | undefined;
3989
+ billingPeriod?: "MONTHLY" | "SEASONAL" | "YEARLY" | undefined;
3989
3990
  basePrice?: number | undefined;
3990
3991
  maxCarCount?: number | null | undefined;
3991
3992
  active?: boolean | undefined;
3992
- note?: string | null | undefined;
3993
3993
  pagination: {
3994
3994
  size: number;
3995
3995
  page: number;
@@ -4003,7 +4003,7 @@ export declare const app: Elysia<"", {
4003
4003
  result: Omit<{
4004
4004
  totalCount: number;
4005
4005
  companyId: string;
4006
- billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
4006
+ billingPeriod: "MONTHLY" | "SEASONAL" | "YEARLY";
4007
4007
  basePrice: number;
4008
4008
  maxCarCount: number | null;
4009
4009
  active: boolean;
@@ -4033,10 +4033,10 @@ export declare const app: Elysia<"", {
4033
4033
  post: {
4034
4034
  body: {
4035
4035
  oldId?: number | null | undefined;
4036
- billingPeriod?: "MONTHLY" | "ANNUAL" | "YEARLY" | undefined;
4036
+ note?: string | null | undefined;
4037
+ billingPeriod?: "MONTHLY" | "SEASONAL" | "YEARLY" | undefined;
4037
4038
  maxCarCount?: number | null | undefined;
4038
4039
  active?: boolean | undefined;
4039
- note?: string | null | undefined;
4040
4040
  companyId: string;
4041
4041
  basePrice: number;
4042
4042
  };
@@ -4051,11 +4051,11 @@ export declare const app: Elysia<"", {
4051
4051
  companyId: string;
4052
4052
  deletedAt: string | null;
4053
4053
  oldId: number | null;
4054
- billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
4054
+ note: string | null;
4055
+ billingPeriod: "MONTHLY" | "SEASONAL" | "YEARLY";
4055
4056
  basePrice: number;
4056
4057
  maxCarCount: number | null;
4057
4058
  active: boolean;
4058
- note: string | null;
4059
4059
  };
4060
4060
  401: "Токен олдсонгүй";
4061
4061
  403: "Хандах эрхгүй байна.";
@@ -4078,11 +4078,11 @@ export declare const app: Elysia<"", {
4078
4078
  body: {
4079
4079
  companyId?: string | undefined;
4080
4080
  oldId?: number | null | undefined;
4081
- billingPeriod?: "MONTHLY" | "ANNUAL" | "YEARLY" | undefined;
4081
+ note?: string | null | undefined;
4082
+ billingPeriod?: "MONTHLY" | "SEASONAL" | "YEARLY" | undefined;
4082
4083
  basePrice?: number | undefined;
4083
4084
  maxCarCount?: number | null | undefined;
4084
4085
  active?: boolean | undefined;
4085
- note?: string | null | undefined;
4086
4086
  };
4087
4087
  params: {
4088
4088
  id: string;
@@ -4092,7 +4092,7 @@ export declare const app: Elysia<"", {
4092
4092
  response: {
4093
4093
  200: {
4094
4094
  companyId: string;
4095
- billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
4095
+ billingPeriod: "MONTHLY" | "SEASONAL" | "YEARLY";
4096
4096
  basePrice: number;
4097
4097
  maxCarCount: number | null;
4098
4098
  active: boolean;
@@ -4163,10 +4163,10 @@ export declare const app: Elysia<"", {
4163
4163
  updatedAt?: string | undefined;
4164
4164
  deletedAt?: string | null | undefined;
4165
4165
  oldId?: number | null | undefined;
4166
+ amount?: number | undefined;
4166
4167
  note?: string | null | undefined;
4167
4168
  paidAt?: string | undefined;
4168
4169
  invoiceId?: string | undefined;
4169
- amount?: number | undefined;
4170
4170
  reference?: string | null | undefined;
4171
4171
  pagination: {
4172
4172
  size: number;
@@ -4212,9 +4212,9 @@ export declare const app: Elysia<"", {
4212
4212
  oldId?: number | null | undefined;
4213
4213
  note?: string | null | undefined;
4214
4214
  reference?: string | null | undefined;
4215
+ amount: number;
4215
4216
  paidAt: string;
4216
4217
  invoiceId: string;
4217
- amount: number;
4218
4218
  };
4219
4219
  params: {};
4220
4220
  query: unknown;
@@ -4226,10 +4226,10 @@ export declare const app: Elysia<"", {
4226
4226
  updatedAt: string;
4227
4227
  deletedAt: string | null;
4228
4228
  oldId: number | null;
4229
+ amount: number;
4229
4230
  note: string | null;
4230
4231
  paidAt: string;
4231
4232
  invoiceId: string;
4232
- amount: number;
4233
4233
  reference: string | null;
4234
4234
  };
4235
4235
  401: "Токен олдсонгүй";
@@ -4294,10 +4294,10 @@ export declare const app: Elysia<"", {
4294
4294
  put: {
4295
4295
  body: {
4296
4296
  oldId?: number | null | undefined;
4297
+ amount?: number | undefined;
4297
4298
  note?: string | null | undefined;
4298
4299
  paidAt?: string | undefined;
4299
4300
  invoiceId?: string | undefined;
4300
- amount?: number | undefined;
4301
4301
  reference?: string | null | undefined;
4302
4302
  };
4303
4303
  params: {
@@ -4374,13 +4374,13 @@ export declare const app: Elysia<"", {
4374
4374
  companyId?: string | undefined;
4375
4375
  deletedAt?: string | null | undefined;
4376
4376
  oldId?: number | null | undefined;
4377
- basePrice?: number | undefined;
4378
4377
  note?: string | null | undefined;
4378
+ basePrice?: number | undefined;
4379
4379
  billingPlanId?: string | undefined;
4380
4380
  periodStart?: string | undefined;
4381
4381
  periodEnd?: string | undefined;
4382
4382
  carCount?: number | undefined;
4383
- status?: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED" | undefined;
4383
+ status?: "CANCELLED" | "PENDING" | "PAID" | "OVERDUE" | undefined;
4384
4384
  issuedAt?: string | undefined;
4385
4385
  paidAt?: string | null | undefined;
4386
4386
  dueAt?: string | undefined;
@@ -4402,7 +4402,7 @@ export declare const app: Elysia<"", {
4402
4402
  periodEnd: string;
4403
4403
  carCount: number;
4404
4404
  basePrice: number;
4405
- status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
4405
+ status: "CANCELLED" | "PENDING" | "PAID" | "OVERDUE";
4406
4406
  issuedAt: string;
4407
4407
  paidAt: string | null;
4408
4408
  dueAt: string;
@@ -4415,7 +4415,7 @@ export declare const app: Elysia<"", {
4415
4415
  };
4416
4416
  billingPlan: {
4417
4417
  companyId: string;
4418
- billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
4418
+ billingPeriod: "MONTHLY" | "SEASONAL" | "YEARLY";
4419
4419
  basePrice: number;
4420
4420
  maxCarCount: number | null;
4421
4421
  active: boolean;
@@ -4491,13 +4491,13 @@ export declare const app: Elysia<"", {
4491
4491
  companyId: string;
4492
4492
  deletedAt: string | null;
4493
4493
  oldId: number | null;
4494
- basePrice: number;
4495
4494
  note: string | null;
4495
+ basePrice: number;
4496
4496
  billingPlanId: string;
4497
4497
  periodStart: string;
4498
4498
  periodEnd: string;
4499
4499
  carCount: number;
4500
- status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
4500
+ status: "CANCELLED" | "PENDING" | "PAID" | "OVERDUE";
4501
4501
  issuedAt: string;
4502
4502
  paidAt: string | null;
4503
4503
  dueAt: string;
@@ -4525,13 +4525,13 @@ export declare const app: Elysia<"", {
4525
4525
  body: {
4526
4526
  companyId?: string | undefined;
4527
4527
  oldId?: number | null | undefined;
4528
- basePrice?: number | undefined;
4529
4528
  note?: string | null | undefined;
4529
+ basePrice?: number | undefined;
4530
4530
  billingPlanId?: string | undefined;
4531
4531
  periodStart?: string | undefined;
4532
4532
  periodEnd?: string | undefined;
4533
4533
  carCount?: number | undefined;
4534
- status?: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED" | undefined;
4534
+ status?: "CANCELLED" | "PENDING" | "PAID" | "OVERDUE" | undefined;
4535
4535
  issuedAt?: string | undefined;
4536
4536
  paidAt?: string | null | undefined;
4537
4537
  dueAt?: string | undefined;
@@ -4549,7 +4549,7 @@ export declare const app: Elysia<"", {
4549
4549
  periodEnd: string;
4550
4550
  carCount: number;
4551
4551
  basePrice: number;
4552
- status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
4552
+ status: "CANCELLED" | "PENDING" | "PAID" | "OVERDUE";
4553
4553
  issuedAt: string;
4554
4554
  paidAt: string | null;
4555
4555
  dueAt: string;
@@ -5153,6 +5153,26 @@ export declare const app: Elysia<"", {
5153
5153
  headers: unknown;
5154
5154
  response: {
5155
5155
  200: ({
5156
+ product: {
5157
+ supplierId: string;
5158
+ productId: string | null;
5159
+ name: string;
5160
+ description: string | null;
5161
+ priceSell: number;
5162
+ priceBuy: number;
5163
+ barCode: string | null;
5164
+ oen: string | null;
5165
+ partNumber: string;
5166
+ alias: string | null;
5167
+ companyId: string;
5168
+ type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | "Авто гоёл" | "Батерей" | "Задаргаа";
5169
+ quantityUnit: number;
5170
+ id: string;
5171
+ createdAt: string;
5172
+ updatedAt: string;
5173
+ deletedAt: string | null;
5174
+ oldId: number | null;
5175
+ } | null;
5156
5176
  service_kind: {
5157
5177
  serviceKindId: string | null;
5158
5178
  companyId: string;
@@ -5249,26 +5269,6 @@ export declare const app: Elysia<"", {
5249
5269
  deletedAt: string | null;
5250
5270
  oldId: number | null;
5251
5271
  } | null;
5252
- product: {
5253
- supplierId: string;
5254
- productId: string | null;
5255
- name: string;
5256
- description: string | null;
5257
- priceSell: number;
5258
- priceBuy: number;
5259
- barCode: string | null;
5260
- oen: string | null;
5261
- partNumber: string;
5262
- alias: string | null;
5263
- companyId: string;
5264
- type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | "Авто гоёл" | "Батерей" | "Задаргаа";
5265
- quantityUnit: number;
5266
- id: string;
5267
- createdAt: string;
5268
- updatedAt: string;
5269
- deletedAt: string | null;
5270
- oldId: number | null;
5271
- } | null;
5272
5272
  } & {
5273
5273
  crmCpOrderEmployee: {
5274
5274
  id: string;
@@ -5294,8 +5294,8 @@ export declare const app: Elysia<"", {
5294
5294
  post: {
5295
5295
  body: {
5296
5296
  name?: string | null | undefined;
5297
- description?: string | null | undefined;
5298
5297
  priceUnit?: number | undefined;
5298
+ description?: string | null | undefined;
5299
5299
  companyProductId?: string | null | undefined;
5300
5300
  companyServiceKindId?: string | null | undefined;
5301
5301
  cpOrderSpPackageId?: string | null | undefined;
@@ -5314,10 +5314,10 @@ export declare const app: Elysia<"", {
5314
5314
  updatedAt: string;
5315
5315
  deletedAt: string | null;
5316
5316
  oldId: number | null;
5317
- description: string | null;
5318
5317
  priceTotal: number;
5319
5318
  quantity: number;
5320
5319
  priceUnit: number;
5320
+ description: string | null;
5321
5321
  companyProductId: string | null;
5322
5322
  cpOrderId: string;
5323
5323
  companyServiceKindId: string | null;
@@ -5343,9 +5343,9 @@ export declare const app: Elysia<"", {
5343
5343
  ":id": {
5344
5344
  put: {
5345
5345
  body: {
5346
- description?: string | null | undefined;
5347
5346
  quantity?: number | undefined;
5348
5347
  priceUnit?: number | undefined;
5348
+ description?: string | null | undefined;
5349
5349
  warehouseId?: string | undefined;
5350
5350
  };
5351
5351
  params: {
@@ -5454,11 +5454,11 @@ export declare const app: Elysia<"", {
5454
5454
  oldId?: number | null | undefined;
5455
5455
  description?: string | null | undefined;
5456
5456
  paymentPackageId?: string | null | undefined;
5457
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5457
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5458
5458
  amount: number;
5459
- cpOrderId: string;
5460
5459
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5461
5460
  paymentChannel: string;
5461
+ cpOrderId: string;
5462
5462
  };
5463
5463
  params: {};
5464
5464
  query: {};
@@ -5470,13 +5470,13 @@ export declare const app: Elysia<"", {
5470
5470
  updatedAt: string;
5471
5471
  deletedAt: string | null;
5472
5472
  oldId: number | null;
5473
- description: string | null;
5474
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5473
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5475
5474
  amount: number;
5476
- cpOrderId: string;
5477
- paymentPackageId: string | null;
5478
5475
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5479
5476
  paymentChannel: string;
5477
+ description: string | null;
5478
+ cpOrderId: string;
5479
+ paymentPackageId: string | null;
5480
5480
  invoiceNumber: string | null;
5481
5481
  };
5482
5482
  401: "Токен олдсонгүй";
@@ -5525,8 +5525,8 @@ export declare const app: Elysia<"", {
5525
5525
  oldId?: number | null | undefined;
5526
5526
  description?: string | null | undefined;
5527
5527
  paymentPackageId?: string | null | undefined;
5528
- phone: number;
5529
5528
  amount: number;
5529
+ phone: number;
5530
5530
  cpOrderId: string;
5531
5531
  };
5532
5532
  params: {};
@@ -5539,13 +5539,13 @@ export declare const app: Elysia<"", {
5539
5539
  updatedAt: string;
5540
5540
  deletedAt: string | null;
5541
5541
  oldId: number | null;
5542
- description: string | null;
5543
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5542
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5544
5543
  amount: number;
5545
- cpOrderId: string;
5546
- paymentPackageId: string | null;
5547
5544
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5548
5545
  paymentChannel: string;
5546
+ description: string | null;
5547
+ cpOrderId: string;
5548
+ paymentPackageId: string | null;
5549
5549
  invoiceNumber: string | null;
5550
5550
  };
5551
5551
  400: string;
@@ -5602,11 +5602,11 @@ export declare const app: Elysia<"", {
5602
5602
  oldId?: number | null | undefined;
5603
5603
  description?: string | null | undefined;
5604
5604
  paymentPackageId?: string | null | undefined;
5605
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5605
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5606
5606
  amount: number;
5607
- cpOrderId: string;
5608
5607
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5609
5608
  paymentChannel: string;
5609
+ cpOrderId: string;
5610
5610
  };
5611
5611
  params: {};
5612
5612
  query: {};
@@ -5619,13 +5619,13 @@ export declare const app: Elysia<"", {
5619
5619
  updatedAt: string;
5620
5620
  deletedAt: string | null;
5621
5621
  oldId: number | null;
5622
- description: string | null;
5623
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5622
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5624
5623
  amount: number;
5625
- cpOrderId: string;
5626
- paymentPackageId: string | null;
5627
5624
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5628
5625
  paymentChannel: string;
5626
+ description: string | null;
5627
+ cpOrderId: string;
5628
+ paymentPackageId: string | null;
5629
5629
  invoiceNumber: string | null;
5630
5630
  };
5631
5631
  400: string;
@@ -5740,11 +5740,11 @@ export declare const app: Elysia<"", {
5740
5740
  oldId?: number | null | undefined;
5741
5741
  description?: string | null | undefined;
5742
5742
  paymentPackageId?: string | null | undefined;
5743
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5743
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5744
5744
  amount: number;
5745
- cpOrderId: string;
5746
5745
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5747
5746
  paymentChannel: string;
5747
+ cpOrderId: string;
5748
5748
  };
5749
5749
  params: {};
5750
5750
  query: {};
@@ -5757,13 +5757,13 @@ export declare const app: Elysia<"", {
5757
5757
  updatedAt: string;
5758
5758
  deletedAt: string | null;
5759
5759
  oldId: number | null;
5760
- description: string | null;
5761
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5760
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5762
5761
  amount: number;
5763
- cpOrderId: string;
5764
- paymentPackageId: string | null;
5765
5762
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5766
5763
  paymentChannel: string;
5764
+ description: string | null;
5765
+ cpOrderId: string;
5766
+ paymentPackageId: string | null;
5767
5767
  invoiceNumber: string | null;
5768
5768
  };
5769
5769
  400: string;
@@ -5819,11 +5819,11 @@ export declare const app: Elysia<"", {
5819
5819
  oldId?: number | null | undefined;
5820
5820
  description?: string | null | undefined;
5821
5821
  paymentPackageId?: string | null | undefined;
5822
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5822
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5823
5823
  amount: number;
5824
- cpOrderId: string;
5825
5824
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5826
5825
  paymentChannel: string;
5826
+ cpOrderId: string;
5827
5827
  };
5828
5828
  params: {};
5829
5829
  query: {};
@@ -5836,13 +5836,13 @@ export declare const app: Elysia<"", {
5836
5836
  updatedAt: string;
5837
5837
  deletedAt: string | null;
5838
5838
  oldId: number | null;
5839
- description: string | null;
5840
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5839
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5841
5840
  amount: number;
5842
- cpOrderId: string;
5843
- paymentPackageId: string | null;
5844
5841
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5845
5842
  paymentChannel: string;
5843
+ description: string | null;
5844
+ cpOrderId: string;
5845
+ paymentPackageId: string | null;
5846
5846
  invoiceNumber: string | null;
5847
5847
  };
5848
5848
  400: string;
@@ -5899,7 +5899,7 @@ export declare const app: Elysia<"", {
5899
5899
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5900
5900
  paymentChannel: string;
5901
5901
  amount: number;
5902
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5902
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
5903
5903
  invoiceNumber: string | null;
5904
5904
  description: string | null;
5905
5905
  id: string;
@@ -5936,6 +5936,21 @@ export declare const app: Elysia<"", {
5936
5936
  headers: unknown;
5937
5937
  response: {
5938
5938
  200: {
5939
+ payment: {
5940
+ accessToken: string | null;
5941
+ refreshToken: string | null;
5942
+ companyId: string;
5943
+ expiresIn: number | null;
5944
+ refreshExpiresIn: number | null;
5945
+ branchId: string | null;
5946
+ type: "StorePay" | "Qpay" | "MinuPos" | "UbPay";
5947
+ sub: unknown;
5948
+ id: string;
5949
+ createdAt: string;
5950
+ updatedAt: string;
5951
+ deletedAt: string | null;
5952
+ oldId: number | null;
5953
+ };
5939
5954
  company: {
5940
5955
  name: string;
5941
5956
  regNumber: string;
@@ -5986,21 +6001,6 @@ export declare const app: Elysia<"", {
5986
6001
  deletedAt: string | null;
5987
6002
  oldId: number | null;
5988
6003
  } | null;
5989
- payment: {
5990
- accessToken: string | null;
5991
- refreshToken: string | null;
5992
- companyId: string;
5993
- expiresIn: number | null;
5994
- refreshExpiresIn: number | null;
5995
- branchId: string | null;
5996
- type: "StorePay" | "Qpay" | "MinuPos" | "UbPay";
5997
- sub: unknown;
5998
- id: string;
5999
- createdAt: string;
6000
- updatedAt: string;
6001
- deletedAt: string | null;
6002
- oldId: number | null;
6003
- };
6004
6004
  }[];
6005
6005
  401: "Токен олдсонгүй";
6006
6006
  403: "Хандах эрхгүй байна.";
@@ -6382,11 +6382,11 @@ export declare const app: Elysia<"", {
6382
6382
  companyId: string;
6383
6383
  deletedAt: string | null;
6384
6384
  oldId: number | null;
6385
- description: string | null;
6385
+ customerId: string | null;
6386
6386
  state: "CREATED" | "PROGRESSING" | "COMPLETE";
6387
+ description: string | null;
6387
6388
  isNoat: boolean | null;
6388
6389
  companyBranchId: string;
6389
- customerId: string | null;
6390
6390
  vehicleId: string | null;
6391
6391
  km: number;
6392
6392
  orderId: string;
@@ -6412,8 +6412,8 @@ export declare const app: Elysia<"", {
6412
6412
  post: {
6413
6413
  body: {
6414
6414
  warehouseId?: string | undefined;
6415
- spPackageId: string;
6416
6415
  quantity: number;
6416
+ spPackageId: string;
6417
6417
  cpOrderId: string;
6418
6418
  };
6419
6419
  params: {};
@@ -6532,11 +6532,11 @@ export declare const app: Elysia<"", {
6532
6532
  createdAt?: string | undefined;
6533
6533
  companyId?: string | undefined;
6534
6534
  oldId?: number | null | undefined;
6535
- description?: string | null | undefined;
6535
+ customerId?: string | null | undefined;
6536
6536
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
6537
+ description?: string | null | undefined;
6537
6538
  isNoat?: boolean | null | undefined;
6538
6539
  companyBranchId?: string | undefined;
6539
- customerId?: string | null | undefined;
6540
6540
  vehicleId?: string | null | undefined;
6541
6541
  km?: number | undefined;
6542
6542
  orderId?: string | undefined;
@@ -6627,7 +6627,7 @@ export declare const app: Elysia<"", {
6627
6627
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
6628
6628
  paymentChannel: string;
6629
6629
  amount: number;
6630
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
6630
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
6631
6631
  invoiceNumber: string | null;
6632
6632
  description: string | null;
6633
6633
  id: string;
@@ -6765,10 +6765,10 @@ export declare const app: Elysia<"", {
6765
6765
  body: {
6766
6766
  oldId?: number | null | undefined;
6767
6767
  priceTotal?: number | undefined;
6768
- spPackageId: string;
6769
- kindId: string;
6770
6768
  quantity: number;
6771
6769
  priceUnit: number;
6770
+ spPackageId: string;
6771
+ kindId: string;
6772
6772
  };
6773
6773
  params: {};
6774
6774
  query: unknown;
@@ -6781,10 +6781,10 @@ export declare const app: Elysia<"", {
6781
6781
  deletedAt: string | null;
6782
6782
  oldId: number | null;
6783
6783
  priceTotal: number;
6784
- spPackageId: string;
6785
- kindId: string;
6786
6784
  quantity: number;
6787
6785
  priceUnit: number;
6786
+ spPackageId: string;
6787
+ kindId: string;
6788
6788
  };
6789
6789
  401: "Токен олдсонгүй";
6790
6790
  422: {
@@ -6806,10 +6806,10 @@ export declare const app: Elysia<"", {
6806
6806
  body: {
6807
6807
  oldId?: number | null | undefined;
6808
6808
  priceTotal?: number | undefined;
6809
- spPackageId: string;
6810
- kindId: string;
6811
6809
  quantity: number;
6812
6810
  priceUnit: number;
6811
+ spPackageId: string;
6812
+ kindId: string;
6813
6813
  }[];
6814
6814
  params: {};
6815
6815
  query: unknown;
@@ -6837,10 +6837,10 @@ export declare const app: Elysia<"", {
6837
6837
  body: {
6838
6838
  oldId?: number | null | undefined;
6839
6839
  priceTotal?: number | undefined;
6840
- spPackageId?: string | undefined;
6841
- kindId?: string | undefined;
6842
6840
  quantity?: number | undefined;
6843
6841
  priceUnit?: number | undefined;
6842
+ spPackageId?: string | undefined;
6843
+ kindId?: string | undefined;
6844
6844
  };
6845
6845
  params: {
6846
6846
  id: string;
@@ -6964,9 +6964,9 @@ export declare const app: Elysia<"", {
6964
6964
  post: {
6965
6965
  body: {
6966
6966
  oldId?: number | null | undefined;
6967
- spPackageId: string;
6968
6967
  quantity: number;
6969
6968
  priceUnit: number;
6969
+ spPackageId: string;
6970
6970
  companyProductId: string;
6971
6971
  };
6972
6972
  params: {};
@@ -6980,9 +6980,9 @@ export declare const app: Elysia<"", {
6980
6980
  deletedAt: string | null;
6981
6981
  oldId: number | null;
6982
6982
  priceTotal: number;
6983
- spPackageId: string;
6984
6983
  quantity: number;
6985
6984
  priceUnit: number;
6985
+ spPackageId: string;
6986
6986
  companyProductId: string;
6987
6987
  };
6988
6988
  401: "Токен олдсонгүй";
@@ -7004,9 +7004,9 @@ export declare const app: Elysia<"", {
7004
7004
  post: {
7005
7005
  body: {
7006
7006
  oldId?: number | null | undefined;
7007
- spPackageId: string;
7008
7007
  quantity: number;
7009
7008
  priceUnit: number;
7009
+ spPackageId: string;
7010
7010
  companyProductId: string;
7011
7011
  }[];
7012
7012
  params: {};
@@ -7035,9 +7035,9 @@ export declare const app: Elysia<"", {
7035
7035
  body: {
7036
7036
  oldId?: number | null | undefined;
7037
7037
  priceTotal?: number | undefined;
7038
- spPackageId?: string | undefined;
7039
7038
  quantity?: number | undefined;
7040
7039
  priceUnit?: number | undefined;
7040
+ spPackageId?: string | undefined;
7041
7041
  companyProductId?: string | undefined;
7042
7042
  };
7043
7043
  params: {
@@ -7107,8 +7107,8 @@ export declare const app: Elysia<"", {
7107
7107
  query: {
7108
7108
  name?: string | undefined;
7109
7109
  id?: string | undefined;
7110
- companyBranchId?: string | null | undefined;
7111
7110
  priceTotal?: number | undefined;
7111
+ companyBranchId?: string | null | undefined;
7112
7112
  pagination: {
7113
7113
  size: number;
7114
7114
  page: number;
@@ -7173,9 +7173,9 @@ export declare const app: Elysia<"", {
7173
7173
  post: {
7174
7174
  body: {
7175
7175
  oldId?: number | null | undefined;
7176
+ priceTotal?: number | undefined;
7176
7177
  description?: string | null | undefined;
7177
7178
  companyBranchId?: string | null | undefined;
7178
- priceTotal?: number | undefined;
7179
7179
  name: string;
7180
7180
  };
7181
7181
  params: {};
@@ -7190,9 +7190,9 @@ export declare const app: Elysia<"", {
7190
7190
  companyId: string;
7191
7191
  deletedAt: string | null;
7192
7192
  oldId: number | null;
7193
+ priceTotal: number;
7193
7194
  description: string | null;
7194
7195
  companyBranchId: string | null;
7195
- priceTotal: number;
7196
7196
  };
7197
7197
  401: "Токен олдсонгүй";
7198
7198
  422: {
@@ -7214,9 +7214,9 @@ export declare const app: Elysia<"", {
7214
7214
  body: {
7215
7215
  name?: string | undefined;
7216
7216
  oldId?: number | null | undefined;
7217
+ priceTotal?: number | undefined;
7217
7218
  description?: string | null | undefined;
7218
7219
  companyBranchId?: string | null | undefined;
7219
- priceTotal?: number | undefined;
7220
7220
  };
7221
7221
  params: {
7222
7222
  id: string;
@@ -8317,9 +8317,9 @@ export declare const app: Elysia<"", {
8317
8317
  companyId: string;
8318
8318
  deletedAt: string | null;
8319
8319
  oldId: number | null;
8320
- description: string | null;
8321
8320
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
8322
8321
  amount: number;
8322
+ description: string | null;
8323
8323
  applyType: "ORDER" | "ITEM";
8324
8324
  discountType: "PERCENTAGE" | "FIXED";
8325
8325
  };
@@ -8353,9 +8353,9 @@ export declare const app: Elysia<"", {
8353
8353
  post: {
8354
8354
  body: {
8355
8355
  oldId?: number | null | undefined;
8356
- description?: string | null | undefined;
8357
8356
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
8358
8357
  amount?: number | undefined;
8358
+ description?: string | null | undefined;
8359
8359
  name: string;
8360
8360
  companyId: string;
8361
8361
  applyType: "ORDER" | "ITEM";
@@ -8373,9 +8373,9 @@ export declare const app: Elysia<"", {
8373
8373
  companyId: string;
8374
8374
  deletedAt: string | null;
8375
8375
  oldId: number | null;
8376
- description: string | null;
8377
8376
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
8378
8377
  amount: number;
8378
+ description: string | null;
8379
8379
  applyType: "ORDER" | "ITEM";
8380
8380
  discountType: "PERCENTAGE" | "FIXED";
8381
8381
  };
@@ -8400,9 +8400,9 @@ export declare const app: Elysia<"", {
8400
8400
  name?: string | undefined;
8401
8401
  companyId?: string | undefined;
8402
8402
  oldId?: number | null | undefined;
8403
- description?: string | null | undefined;
8404
8403
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
8405
8404
  amount?: number | undefined;
8405
+ description?: string | null | undefined;
8406
8406
  applyType?: "ORDER" | "ITEM" | undefined;
8407
8407
  discountType?: "PERCENTAGE" | "FIXED" | undefined;
8408
8408
  };
@@ -8460,9 +8460,9 @@ export declare const app: Elysia<"", {
8460
8460
  companyId: string;
8461
8461
  deletedAt: string | null;
8462
8462
  oldId: number | null;
8463
- description: string | null;
8464
8463
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
8465
8464
  amount: number;
8465
+ description: string | null;
8466
8466
  applyType: "ORDER" | "ITEM";
8467
8467
  discountType: "PERCENTAGE" | "FIXED";
8468
8468
  };
@@ -8660,8 +8660,8 @@ export declare const app: Elysia<"", {
8660
8660
  employeeId: string;
8661
8661
  deletedAt: string | null;
8662
8662
  oldId: number | null;
8663
- authUserId: string;
8664
8663
  note: string | null;
8664
+ authUserId: string;
8665
8665
  cpOrderId: string;
8666
8666
  cpOrderItemId: string | null;
8667
8667
  discountId: string | null;
@@ -8692,8 +8692,8 @@ export declare const app: Elysia<"", {
8692
8692
  body: {
8693
8693
  employeeId?: string | undefined;
8694
8694
  oldId?: number | null | undefined;
8695
- authUserId?: string | undefined;
8696
8695
  note?: string | null | undefined;
8696
+ authUserId?: string | undefined;
8697
8697
  cpOrderId?: string | undefined;
8698
8698
  cpOrderItemId?: string | null | undefined;
8699
8699
  discountId?: string | null | undefined;
@@ -8809,7 +8809,7 @@ export declare const app: Elysia<"", {
8809
8809
  }[] | null;
8810
8810
  createdAt: string;
8811
8811
  expireAt: Date;
8812
- status: "CANCELLED" | "CREATED" | "APPROVED";
8812
+ status: "CANCELLED" | "APPROVED" | "CREATED";
8813
8813
  };
8814
8814
  }[];
8815
8815
  422: {
@@ -8833,7 +8833,7 @@ export declare const app: Elysia<"", {
8833
8833
  query: {
8834
8834
  search?: string | undefined;
8835
8835
  licensePlate?: string | undefined;
8836
- status?: "CANCELLED" | "CREATED" | "APPROVED" | undefined;
8836
+ status?: "CANCELLED" | "APPROVED" | "CREATED" | undefined;
8837
8837
  pagination: {
8838
8838
  size: number;
8839
8839
  page: number;
@@ -8863,7 +8863,7 @@ export declare const app: Elysia<"", {
8863
8863
  rank: string | null;
8864
8864
  licensePlate: string;
8865
8865
  description: string | null;
8866
- status: "CANCELLED" | "CREATED" | "APPROVED";
8866
+ status: "CANCELLED" | "APPROVED" | "CREATED";
8867
8867
  id: string;
8868
8868
  createdAt: string;
8869
8869
  updatedAt: string;
@@ -8947,7 +8947,7 @@ export declare const app: Elysia<"", {
8947
8947
  description: string | null;
8948
8948
  vehicleId: string;
8949
8949
  licensePlate: string;
8950
- status: "CANCELLED" | "CREATED" | "APPROVED";
8950
+ status: "CANCELLED" | "APPROVED" | "CREATED";
8951
8951
  inspection: {
8952
8952
  type: string;
8953
8953
  values: {
@@ -9020,7 +9020,7 @@ export declare const app: Elysia<"", {
9020
9020
  }[] | null;
9021
9021
  createdAt: string;
9022
9022
  expireAt: Date;
9023
- status: "CANCELLED" | "CREATED" | "APPROVED";
9023
+ status: "CANCELLED" | "APPROVED" | "CREATED";
9024
9024
  };
9025
9025
  totalCount: number;
9026
9026
  }[];
@@ -9069,7 +9069,7 @@ export declare const app: Elysia<"", {
9069
9069
  rank: string | null;
9070
9070
  licensePlate: string;
9071
9071
  description: string | null;
9072
- status: "CANCELLED" | "CREATED" | "APPROVED";
9072
+ status: "CANCELLED" | "APPROVED" | "CREATED";
9073
9073
  id: string;
9074
9074
  createdAt: string;
9075
9075
  updatedAt: string;
@@ -9146,7 +9146,7 @@ export declare const app: Elysia<"", {
9146
9146
  rank: string | null;
9147
9147
  licensePlate: string;
9148
9148
  description: string | null;
9149
- status: "CANCELLED" | "CREATED" | "APPROVED";
9149
+ status: "CANCELLED" | "APPROVED" | "CREATED";
9150
9150
  id: string;
9151
9151
  createdAt: string;
9152
9152
  updatedAt: string;
@@ -9209,7 +9209,7 @@ export declare const app: Elysia<"", {
9209
9209
  rank: string | null;
9210
9210
  licensePlate: string;
9211
9211
  description: string | null;
9212
- status: "CANCELLED" | "CREATED" | "APPROVED";
9212
+ status: "CANCELLED" | "APPROVED" | "CREATED";
9213
9213
  id: string;
9214
9214
  createdAt: string;
9215
9215
  updatedAt: string;
@@ -9502,8 +9502,8 @@ export declare const app: Elysia<"", {
9502
9502
  body: unknown;
9503
9503
  params: {};
9504
9504
  query: {
9505
- method?: string | undefined;
9506
9505
  state?: string | undefined;
9506
+ method?: string | undefined;
9507
9507
  companyBranchId?: string | undefined;
9508
9508
  startDate?: string | undefined;
9509
9509
  endDate?: string | undefined;
@@ -9522,7 +9522,7 @@ export declare const app: Elysia<"", {
9522
9522
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
9523
9523
  paymentChannel: string;
9524
9524
  amount: number;
9525
- state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
9525
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
9526
9526
  invoiceNumber: string | null;
9527
9527
  description: string | null;
9528
9528
  id: string;
@@ -9586,8 +9586,8 @@ export declare const app: Elysia<"", {
9586
9586
  params: {};
9587
9587
  query: {
9588
9588
  employeeId?: string | undefined;
9589
- method?: string | undefined;
9590
9589
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
9590
+ method?: string | undefined;
9591
9591
  companyBranchId?: string | undefined;
9592
9592
  limit?: number | undefined;
9593
9593
  startDate?: string | undefined;
@@ -9686,8 +9686,8 @@ export declare const app: Elysia<"", {
9686
9686
  params: {};
9687
9687
  query: {
9688
9688
  employeeId?: string | undefined;
9689
- method?: string | undefined;
9690
9689
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
9690
+ method?: string | undefined;
9691
9691
  companyBranchId?: string | undefined;
9692
9692
  limit?: number | undefined;
9693
9693
  startDate?: string | undefined;
@@ -9721,8 +9721,8 @@ export declare const app: Elysia<"", {
9721
9721
  params: {};
9722
9722
  query: {
9723
9723
  employeeId?: string | undefined;
9724
- method?: string | undefined;
9725
9724
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
9725
+ method?: string | undefined;
9726
9726
  companyBranchId?: string | undefined;
9727
9727
  limit?: number | undefined;
9728
9728
  startDate?: string | undefined;
@@ -9756,9 +9756,9 @@ export declare const app: Elysia<"", {
9756
9756
  type?: "Service" | "Product" | undefined;
9757
9757
  branchId?: string | undefined;
9758
9758
  employeeId?: string | undefined;
9759
+ partNumber?: string | undefined;
9759
9760
  phoneNumber?: string | undefined;
9760
9761
  licensePlate?: string | undefined;
9761
- partNumber?: string | undefined;
9762
9762
  productName?: string | undefined;
9763
9763
  startDate?: string | undefined;
9764
9764
  endDate?: string | undefined;
@@ -11667,7 +11667,7 @@ export declare const app: Elysia<"", {
11667
11667
  params: {};
11668
11668
  query: {
11669
11669
  id?: string | undefined;
11670
- state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
11670
+ state?: "COMPLETED" | "CREATED" | "SCHEDULED" | "IN_PROGRESS" | undefined;
11671
11671
  templateId?: string | undefined;
11672
11672
  machineId?: string | undefined;
11673
11673
  stateResult?: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | undefined;
@@ -11691,7 +11691,7 @@ export declare const app: Elysia<"", {
11691
11691
  userInspectedId: string;
11692
11692
  hours: number | null;
11693
11693
  mileageKm: number | null;
11694
- state: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED";
11694
+ state: "COMPLETED" | "CREATED" | "SCHEDULED" | "IN_PROGRESS";
11695
11695
  stateResult: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null;
11696
11696
  timeScheduled: Date | null;
11697
11697
  timeCompleted: Date | null;
@@ -11754,7 +11754,7 @@ export declare const app: Elysia<"", {
11754
11754
  post: {
11755
11755
  body: {
11756
11756
  oldId?: number | null | undefined;
11757
- state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
11757
+ state?: "COMPLETED" | "CREATED" | "SCHEDULED" | "IN_PROGRESS" | undefined;
11758
11758
  note?: string | null | undefined;
11759
11759
  timeCompleted?: Date | null | undefined;
11760
11760
  hours?: number | null | undefined;
@@ -11788,7 +11788,7 @@ export declare const app: Elysia<"", {
11788
11788
  put: {
11789
11789
  body: {
11790
11790
  oldId?: number | null | undefined;
11791
- state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
11791
+ state?: "COMPLETED" | "CREATED" | "SCHEDULED" | "IN_PROGRESS" | undefined;
11792
11792
  note?: string | null | undefined;
11793
11793
  timeCompleted?: Date | null | undefined;
11794
11794
  templateId?: string | undefined;
@@ -11813,7 +11813,7 @@ export declare const app: Elysia<"", {
11813
11813
  userInspectedId: string;
11814
11814
  hours: number | null;
11815
11815
  mileageKm: number | null;
11816
- state: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED";
11816
+ state: "COMPLETED" | "CREATED" | "SCHEDULED" | "IN_PROGRESS";
11817
11817
  stateResult: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null;
11818
11818
  timeScheduled: Date | null;
11819
11819
  timeCompleted: Date | null;
@@ -11951,8 +11951,8 @@ export declare const app: Elysia<"", {
11951
11951
  put: {
11952
11952
  body: {
11953
11953
  oldId?: number | null | undefined;
11954
- quantity?: number | null | undefined;
11955
11954
  uomId?: string | undefined;
11955
+ quantity?: number | null | undefined;
11956
11956
  pmTemplateId?: string | undefined;
11957
11957
  productKindId?: string | undefined;
11958
11958
  };
@@ -12103,9 +12103,9 @@ export declare const app: Elysia<"", {
12103
12103
  description?: string | null | undefined;
12104
12104
  operationAmount?: number | null | undefined;
12105
12105
  name: string;
12106
+ uomId: string;
12106
12107
  serviceKindId: string;
12107
12108
  machineKindId: string;
12108
- uomId: string;
12109
12109
  };
12110
12110
  params: {};
12111
12111
  query: unknown;
@@ -12133,11 +12133,11 @@ export declare const app: Elysia<"", {
12133
12133
  name?: string | undefined;
12134
12134
  companyId?: string | null | undefined;
12135
12135
  oldId?: number | null | undefined;
12136
+ uomId?: string | undefined;
12136
12137
  description?: string | null | undefined;
12137
12138
  serviceKindId?: string | undefined;
12138
12139
  machineKindId?: string | undefined;
12139
12140
  operationAmount?: number | null | undefined;
12140
- uomId?: string | undefined;
12141
12141
  };
12142
12142
  params: {
12143
12143
  id: string;
@@ -12493,8 +12493,8 @@ export declare const app: Elysia<"", {
12493
12493
  updatedAt: string;
12494
12494
  deletedAt: string | null;
12495
12495
  oldId: number | null;
12496
- quantity: number | null;
12497
12496
  uomId: string;
12497
+ quantity: number | null;
12498
12498
  productKindId: string;
12499
12499
  pmPlanId: string;
12500
12500
  pmQuantity: string | null;
@@ -12520,8 +12520,8 @@ export declare const app: Elysia<"", {
12520
12520
  put: {
12521
12521
  body: {
12522
12522
  oldId?: number | null | undefined;
12523
- quantity?: number | null | undefined;
12524
12523
  uomId?: string | undefined;
12524
+ quantity?: number | null | undefined;
12525
12525
  productKindId?: string | undefined;
12526
12526
  pmPlanId?: string | undefined;
12527
12527
  pmQuantity?: string | null | undefined;
@@ -12652,9 +12652,9 @@ export declare const app: Elysia<"", {
12652
12652
  name?: string | undefined;
12653
12653
  companyId?: string | undefined;
12654
12654
  oldId?: number | null | undefined;
12655
- description?: string | null | undefined;
12656
12655
  dateStart?: Date | null | undefined;
12657
12656
  dateEnd?: Date | null | undefined;
12657
+ description?: string | null | undefined;
12658
12658
  };
12659
12659
  params: {
12660
12660
  id: string;
@@ -13116,8 +13116,8 @@ export declare const app: Elysia<"", {
13116
13116
  body: {
13117
13117
  oldId?: number | null | undefined;
13118
13118
  state?: string | undefined;
13119
- serviceKindId?: string | undefined;
13120
13119
  note?: string | null | undefined;
13120
+ serviceKindId?: string | undefined;
13121
13121
  timeCompleted?: Date | null | undefined;
13122
13122
  machineId?: string | undefined;
13123
13123
  pmPlanId?: string | null | undefined;
@@ -13207,7 +13207,7 @@ export declare const app: Elysia<"", {
13207
13207
  companyServiceKindId: string | null;
13208
13208
  description: string | null;
13209
13209
  manHour: number | null;
13210
- state: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED";
13210
+ state: "COMPLETED" | "IN_PROGRESS" | "OPEN" | "CLOSED";
13211
13211
  id: string;
13212
13212
  createdAt: string;
13213
13213
  updatedAt: string;
@@ -13286,8 +13286,8 @@ export declare const app: Elysia<"", {
13286
13286
  post: {
13287
13287
  body: {
13288
13288
  oldId?: number | null | undefined;
13289
+ state?: "COMPLETED" | "IN_PROGRESS" | "OPEN" | "CLOSED" | undefined;
13289
13290
  description?: string | null | undefined;
13290
- state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
13291
13291
  serviceKindId?: string | null | undefined;
13292
13292
  companyServiceKindId?: string | null | undefined;
13293
13293
  templateId?: string | null | undefined;
@@ -13307,8 +13307,8 @@ export declare const app: Elysia<"", {
13307
13307
  updatedAt: string;
13308
13308
  deletedAt: string | null;
13309
13309
  oldId: number | null;
13310
+ state: "COMPLETED" | "IN_PROGRESS" | "OPEN" | "CLOSED";
13310
13311
  description: string | null;
13311
- state: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED";
13312
13312
  serviceKindId: string | null;
13313
13313
  companyServiceKindId: string | null;
13314
13314
  templateId: string | null;
@@ -13337,8 +13337,8 @@ export declare const app: Elysia<"", {
13337
13337
  put: {
13338
13338
  body: {
13339
13339
  oldId?: number | null | undefined;
13340
+ state?: "COMPLETED" | "IN_PROGRESS" | "OPEN" | "CLOSED" | undefined;
13340
13341
  description?: string | null | undefined;
13341
- state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
13342
13342
  serviceKindId?: string | null | undefined;
13343
13343
  companyServiceKindId?: string | null | undefined;
13344
13344
  templateId?: string | null | undefined;
@@ -13416,7 +13416,7 @@ export declare const app: Elysia<"", {
13416
13416
  sourceType: string | null;
13417
13417
  type: "CORRECTIVE" | "PREVENTIVE";
13418
13418
  priority: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "PLANNED";
13419
- state: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED";
13419
+ state: "COMPLETED" | "IN_PROGRESS" | "OPEN" | "CLOSED";
13420
13420
  dateClosed: Date | null;
13421
13421
  id: string;
13422
13422
  createdAt: string;
@@ -13473,7 +13473,7 @@ export declare const app: Elysia<"", {
13473
13473
  post: {
13474
13474
  body: {
13475
13475
  oldId?: number | null | undefined;
13476
- state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
13476
+ state?: "COMPLETED" | "IN_PROGRESS" | "OPEN" | "CLOSED" | undefined;
13477
13477
  sourceType?: string | null | undefined;
13478
13478
  dateClosed?: Date | null | undefined;
13479
13479
  type: "CORRECTIVE" | "PREVENTIVE";
@@ -13491,7 +13491,7 @@ export declare const app: Elysia<"", {
13491
13491
  updatedAt: string;
13492
13492
  deletedAt: string | null;
13493
13493
  oldId: number | null;
13494
- state: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED";
13494
+ state: "COMPLETED" | "IN_PROGRESS" | "OPEN" | "CLOSED";
13495
13495
  machineId: string;
13496
13496
  sourceType: string | null;
13497
13497
  priority: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "PLANNED";
@@ -13517,7 +13517,7 @@ export declare const app: Elysia<"", {
13517
13517
  body: {
13518
13518
  type?: "CORRECTIVE" | "PREVENTIVE" | undefined;
13519
13519
  oldId?: number | null | undefined;
13520
- state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
13520
+ state?: "COMPLETED" | "IN_PROGRESS" | "OPEN" | "CLOSED" | undefined;
13521
13521
  machineId?: string | undefined;
13522
13522
  sourceType?: string | null | undefined;
13523
13523
  priority?: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "PLANNED" | undefined;
@@ -14602,9 +14602,9 @@ export declare const app: Elysia<"", {
14602
14602
  body: unknown;
14603
14603
  params: {};
14604
14604
  query: {
14605
+ state?: "DELIVERED" | "PENDING" | "FAILED" | "SENT" | "READ" | undefined;
14605
14606
  nmNotificationId?: string | undefined;
14606
14607
  nmDeviceId?: string | undefined;
14607
- state?: "PENDING" | "SENT" | "DELIVERED" | "FAILED" | "READ" | undefined;
14608
14608
  pagination: {
14609
14609
  size: number;
14610
14610
  page: number;
@@ -14620,7 +14620,7 @@ export declare const app: Elysia<"", {
14620
14620
  nmNotificationId: string;
14621
14621
  nmDeviceId: string;
14622
14622
  providerMessageId: string;
14623
- state: "PENDING" | "SENT" | "DELIVERED" | "FAILED" | "READ";
14623
+ state: "DELIVERED" | "PENDING" | "FAILED" | "SENT" | "READ";
14624
14624
  timeSent: string | null;
14625
14625
  timeDelivered: string | null;
14626
14626
  timeRead: string | null;
@@ -14689,7 +14689,7 @@ export declare const app: Elysia<"", {
14689
14689
  nmNotificationId: string;
14690
14690
  nmDeviceId: string;
14691
14691
  providerMessageId: string;
14692
- state: "PENDING" | "SENT" | "DELIVERED" | "FAILED" | "READ";
14692
+ state: "DELIVERED" | "PENDING" | "FAILED" | "SENT" | "READ";
14693
14693
  timeSent: string | null;
14694
14694
  timeDelivered: string | null;
14695
14695
  timeRead: string | null;