autosync_backend2 1.1.71 → 1.2.3

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 +252 -45
  2. package/dist/index.js +11742 -14308
  3. package/package.json +8 -7
package/dist/index.d.ts CHANGED
@@ -294,14 +294,14 @@ export declare const app: Elysia<"", {
294
294
  readonly "Not Extended": 510;
295
295
  readonly "Network Authentication Required": 511;
296
296
  }[Code] : Code>;
297
- }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Unauthorized", 401> | {
297
+ }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | {
298
298
  user: {
299
299
  id: string;
300
+ createdAt: Date;
301
+ updatedAt: Date;
300
302
  email: string;
301
303
  emailVerified: boolean;
302
304
  name: string;
303
- createdAt: Date;
304
- updatedAt: Date;
305
305
  image?: string | null | undefined | undefined;
306
306
  companyId: string;
307
307
  branchId: string;
@@ -310,10 +310,10 @@ export declare const app: Elysia<"", {
310
310
  };
311
311
  session: {
312
312
  id: string;
313
- userId: string;
314
- expiresAt: Date;
315
313
  createdAt: Date;
316
314
  updatedAt: Date;
315
+ userId: string;
316
+ expiresAt: Date;
317
317
  token: string;
318
318
  ipAddress?: string | null | undefined | undefined;
319
319
  userAgent?: string | null | undefined | undefined;
@@ -585,14 +585,14 @@ export declare const app: Elysia<"", {
585
585
  readonly "Not Extended": 510;
586
586
  readonly "Network Authentication Required": 511;
587
587
  }[Code] : Code>;
588
- }): Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Unauthorized", 401> | {
588
+ }): Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | {
589
589
  user: {
590
590
  id: string;
591
+ createdAt: Date;
592
+ updatedAt: Date;
591
593
  email: string;
592
594
  emailVerified: boolean;
593
595
  name: string;
594
- createdAt: Date;
595
- updatedAt: Date;
596
596
  image?: string | null | undefined | undefined;
597
597
  companyId: string;
598
598
  branchId: string;
@@ -601,10 +601,10 @@ export declare const app: Elysia<"", {
601
601
  };
602
602
  session: {
603
603
  id: string;
604
- userId: string;
605
- expiresAt: Date;
606
604
  createdAt: Date;
607
605
  updatedAt: Date;
606
+ userId: string;
607
+ expiresAt: Date;
608
608
  token: string;
609
609
  ipAddress?: string | null | undefined | undefined;
610
610
  userAgent?: string | null | undefined | undefined;
@@ -876,14 +876,14 @@ export declare const app: Elysia<"", {
876
876
  readonly "Not Extended": 510;
877
877
  readonly "Network Authentication Required": 511;
878
878
  }[Code] : Code>;
879
- }): Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Unauthorized", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
879
+ }): Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
880
880
  user: {
881
881
  id: string;
882
+ createdAt: Date;
883
+ updatedAt: Date;
882
884
  email: string;
883
885
  emailVerified: boolean;
884
886
  name: string;
885
- createdAt: Date;
886
- updatedAt: Date;
887
887
  image?: string | null | undefined | undefined;
888
888
  companyId: string;
889
889
  branchId: string;
@@ -892,10 +892,10 @@ export declare const app: Elysia<"", {
892
892
  };
893
893
  session: {
894
894
  id: string;
895
- userId: string;
896
- expiresAt: Date;
897
895
  createdAt: Date;
898
896
  updatedAt: Date;
897
+ userId: string;
898
+ expiresAt: Date;
899
899
  token: string;
900
900
  ipAddress?: string | null | undefined | undefined;
901
901
  userAgent?: string | null | undefined | undefined;
@@ -1017,6 +1017,7 @@ export declare const app: Elysia<"", {
1017
1017
  createdAt: string;
1018
1018
  updatedAt: string;
1019
1019
  deletedAt: string | null;
1020
+ oldId: number | null;
1020
1021
  };
1021
1022
  supplier: {
1022
1023
  name: string;
@@ -1027,6 +1028,7 @@ export declare const app: Elysia<"", {
1027
1028
  createdAt: string;
1028
1029
  updatedAt: string;
1029
1030
  deletedAt: string | null;
1031
+ oldId: number | null;
1030
1032
  } | null;
1031
1033
  }[];
1032
1034
  };
@@ -1047,6 +1049,7 @@ export declare const app: Elysia<"", {
1047
1049
  post: {
1048
1050
  body: {
1049
1051
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | undefined;
1052
+ oldId?: number | null | undefined;
1050
1053
  description?: string | null | undefined;
1051
1054
  productId?: string | null | undefined;
1052
1055
  barCode?: string | null | undefined;
@@ -1070,6 +1073,7 @@ export declare const app: Elysia<"", {
1070
1073
  updatedAt: string;
1071
1074
  companyId: string;
1072
1075
  deletedAt: string | null;
1076
+ oldId: number | null;
1073
1077
  description: string | null;
1074
1078
  supplierId: string;
1075
1079
  productId: string | null;
@@ -1098,6 +1102,7 @@ export declare const app: Elysia<"", {
1098
1102
  post: {
1099
1103
  body: {
1100
1104
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | undefined;
1105
+ oldId?: number | null | undefined;
1101
1106
  description?: string | null | undefined;
1102
1107
  productId?: string | null | undefined;
1103
1108
  barCode?: string | null | undefined;
@@ -1176,6 +1181,7 @@ export declare const app: Elysia<"", {
1176
1181
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | undefined;
1177
1182
  name?: string | undefined;
1178
1183
  companyId?: string | undefined;
1184
+ oldId?: number | null | undefined;
1179
1185
  description?: string | null | undefined;
1180
1186
  supplierId?: string | undefined;
1181
1187
  productId?: string | null | undefined;
@@ -1209,6 +1215,7 @@ export declare const app: Elysia<"", {
1209
1215
  createdAt: string;
1210
1216
  updatedAt: string;
1211
1217
  deletedAt: string | null;
1218
+ oldId: number | null;
1212
1219
  };
1213
1220
  404: "Бараа олдсонгүй.";
1214
1221
  422: {
@@ -1254,6 +1261,7 @@ export declare const app: Elysia<"", {
1254
1261
  createdAt: string;
1255
1262
  updatedAt: string;
1256
1263
  deletedAt: string | null;
1264
+ oldId: number | null;
1257
1265
  }[];
1258
1266
  };
1259
1267
  422: {
@@ -1273,6 +1281,7 @@ export declare const app: Elysia<"", {
1273
1281
  post: {
1274
1282
  body: {
1275
1283
  branchId?: string | null | undefined;
1284
+ oldId?: number | null | undefined;
1276
1285
  description?: string | null | undefined;
1277
1286
  name: string;
1278
1287
  };
@@ -1288,6 +1297,7 @@ export declare const app: Elysia<"", {
1288
1297
  companyId: string;
1289
1298
  branchId: string | null;
1290
1299
  deletedAt: string | null;
1300
+ oldId: number | null;
1291
1301
  description: string | null;
1292
1302
  };
1293
1303
  422: {
@@ -1308,6 +1318,7 @@ export declare const app: Elysia<"", {
1308
1318
  put: {
1309
1319
  body: {
1310
1320
  name?: string | undefined;
1321
+ oldId?: number | null | undefined;
1311
1322
  description?: string | null | undefined;
1312
1323
  };
1313
1324
  params: {
@@ -1325,6 +1336,7 @@ export declare const app: Elysia<"", {
1325
1336
  createdAt: string;
1326
1337
  updatedAt: string;
1327
1338
  deletedAt: string | null;
1339
+ oldId: number | null;
1328
1340
  };
1329
1341
  404: "Агуулах олдсонгүй.";
1330
1342
  422: {
@@ -1375,6 +1387,7 @@ export declare const app: Elysia<"", {
1375
1387
  body: unknown;
1376
1388
  params: {};
1377
1389
  query: {
1390
+ isActive?: boolean | undefined;
1378
1391
  product?: {
1379
1392
  type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | undefined;
1380
1393
  id?: string | undefined;
@@ -1413,6 +1426,7 @@ export declare const app: Elysia<"", {
1413
1426
  createdAt: string;
1414
1427
  updatedAt: string;
1415
1428
  deletedAt: string | null;
1429
+ oldId: number | null;
1416
1430
  };
1417
1431
  supplier: {
1418
1432
  name: string;
@@ -1423,6 +1437,7 @@ export declare const app: Elysia<"", {
1423
1437
  createdAt: string;
1424
1438
  updatedAt: string;
1425
1439
  deletedAt: string | null;
1440
+ oldId: number | null;
1426
1441
  } | null;
1427
1442
  product: {
1428
1443
  supplierId: string;
@@ -1441,6 +1456,7 @@ export declare const app: Elysia<"", {
1441
1456
  createdAt: string;
1442
1457
  updatedAt: string;
1443
1458
  deletedAt: string | null;
1459
+ oldId: number | null;
1444
1460
  };
1445
1461
  }[];
1446
1462
  };
@@ -1460,6 +1476,7 @@ export declare const app: Elysia<"", {
1460
1476
  item: {
1461
1477
  post: {
1462
1478
  body: {
1479
+ oldId?: number | null | undefined;
1463
1480
  quantity?: number | undefined;
1464
1481
  shelfNumber?: string | null | undefined;
1465
1482
  productId: string;
@@ -1475,6 +1492,7 @@ export declare const app: Elysia<"", {
1475
1492
  createdAt: string;
1476
1493
  updatedAt: string;
1477
1494
  deletedAt: string | null;
1495
+ oldId: number | null;
1478
1496
  quantity: number;
1479
1497
  productId: string;
1480
1498
  warehouseId: string;
@@ -1498,6 +1516,7 @@ export declare const app: Elysia<"", {
1498
1516
  many: {
1499
1517
  post: {
1500
1518
  body: {
1519
+ oldId?: number | null | undefined;
1501
1520
  quantity?: number | undefined;
1502
1521
  shelfNumber?: string | null | undefined;
1503
1522
  productId: string;
@@ -1584,6 +1603,7 @@ export declare const app: Elysia<"", {
1584
1603
  createdAt: string;
1585
1604
  updatedAt: string;
1586
1605
  deletedAt: string | null;
1606
+ oldId: number | null;
1587
1607
  } | null;
1588
1608
  item: {
1589
1609
  warehouseId: string;
@@ -1595,6 +1615,7 @@ export declare const app: Elysia<"", {
1595
1615
  createdAt: string;
1596
1616
  updatedAt: string;
1597
1617
  deletedAt: string | null;
1618
+ oldId: number | null;
1598
1619
  } | null;
1599
1620
  itemId: string;
1600
1621
  productId: string | null;
@@ -1614,6 +1635,7 @@ export declare const app: Elysia<"", {
1614
1635
  createdAt: string;
1615
1636
  updatedAt: string;
1616
1637
  deletedAt: string | null;
1638
+ oldId: number | null;
1617
1639
  }[];
1618
1640
  };
1619
1641
  422: {
@@ -1660,6 +1682,7 @@ export declare const app: Elysia<"", {
1660
1682
  createdAt: string;
1661
1683
  updatedAt: string;
1662
1684
  deletedAt: string | null;
1685
+ oldId: number | null;
1663
1686
  };
1664
1687
  404: "Агуулахын бараа олдсонгүй.";
1665
1688
  400: "Ажилтны мэдээлэл шаардлагатай." | "Барааны үлдэгдэл хүрэлцэхгүй байна.";
@@ -1681,6 +1704,7 @@ export declare const app: Elysia<"", {
1681
1704
  ":id": {
1682
1705
  put: {
1683
1706
  body: {
1707
+ oldId?: number | null | undefined;
1684
1708
  productId?: string | undefined;
1685
1709
  warehouseId?: string | undefined;
1686
1710
  safetyStock?: number | undefined;
@@ -1702,6 +1726,7 @@ export declare const app: Elysia<"", {
1702
1726
  createdAt: string;
1703
1727
  updatedAt: string;
1704
1728
  deletedAt: string | null;
1729
+ oldId: number | null;
1705
1730
  };
1706
1731
  404: "Агуулахын бараа олдсонгүй.";
1707
1732
  422: {
@@ -1750,6 +1775,7 @@ export declare const app: Elysia<"", {
1750
1775
  createdAt: string;
1751
1776
  updatedAt: string;
1752
1777
  deletedAt: string | null;
1778
+ oldId: number | null;
1753
1779
  regNumber: string;
1754
1780
  phone: string;
1755
1781
  serviceName: string;
@@ -1787,6 +1813,7 @@ export declare const app: Elysia<"", {
1787
1813
  company: {
1788
1814
  post: {
1789
1815
  body: {
1816
+ oldId?: number | null | undefined;
1790
1817
  province?: string | null | undefined;
1791
1818
  district?: string | null | undefined;
1792
1819
  khoroo?: string | null | undefined;
@@ -1818,6 +1845,7 @@ export declare const app: Elysia<"", {
1818
1845
  createdAt: string;
1819
1846
  updatedAt: string;
1820
1847
  deletedAt: string | null;
1848
+ oldId: number | null;
1821
1849
  regNumber: string;
1822
1850
  phone: string;
1823
1851
  serviceName: string;
@@ -1855,6 +1883,7 @@ export declare const app: Elysia<"", {
1855
1883
  body: {
1856
1884
  name?: string | undefined;
1857
1885
  email?: string | undefined;
1886
+ oldId?: number | null | undefined;
1858
1887
  regNumber?: string | undefined;
1859
1888
  phone?: string | undefined;
1860
1889
  serviceName?: string | undefined;
@@ -1886,6 +1915,7 @@ export declare const app: Elysia<"", {
1886
1915
  createdAt: string;
1887
1916
  updatedAt: string;
1888
1917
  deletedAt: string | null;
1918
+ oldId: number | null;
1889
1919
  regNumber: string;
1890
1920
  phone: string;
1891
1921
  serviceName: string;
@@ -1960,6 +1990,7 @@ export declare const app: Elysia<"", {
1960
1990
  createdAt?: string | undefined;
1961
1991
  updatedAt?: string | undefined;
1962
1992
  deletedAt?: string | null | undefined;
1993
+ oldId?: number | null | undefined;
1963
1994
  regNumber?: string | null | undefined;
1964
1995
  phone?: string | undefined;
1965
1996
  logoUrl?: string | undefined;
@@ -1991,6 +2022,7 @@ export declare const app: Elysia<"", {
1991
2022
  createdAt: string;
1992
2023
  updatedAt: string;
1993
2024
  deletedAt: string | null;
2025
+ oldId: number | null;
1994
2026
  regNumber: string | null;
1995
2027
  phone: string;
1996
2028
  logoUrl: string;
@@ -2025,6 +2057,7 @@ export declare const app: Elysia<"", {
2025
2057
  branch: {
2026
2058
  post: {
2027
2059
  body: {
2060
+ oldId?: number | null | undefined;
2028
2061
  regNumber?: string | null | undefined;
2029
2062
  province?: string | null | undefined;
2030
2063
  district?: string | null | undefined;
@@ -2053,6 +2086,7 @@ export declare const app: Elysia<"", {
2053
2086
  createdAt: string;
2054
2087
  updatedAt: string;
2055
2088
  deletedAt: string | null;
2089
+ oldId: number | null;
2056
2090
  regNumber: string | null;
2057
2091
  phone: string;
2058
2092
  logoUrl: string;
@@ -2087,6 +2121,7 @@ export declare const app: Elysia<"", {
2087
2121
  body: {
2088
2122
  name?: string | undefined;
2089
2123
  email?: string | null | undefined;
2124
+ oldId?: number | null | undefined;
2090
2125
  regNumber?: string | null | undefined;
2091
2126
  phone?: string | undefined;
2092
2127
  logoUrl?: string | undefined;
@@ -2115,6 +2150,7 @@ export declare const app: Elysia<"", {
2115
2150
  createdAt: string;
2116
2151
  updatedAt: string;
2117
2152
  deletedAt: string | null;
2153
+ oldId: number | null;
2118
2154
  regNumber: string | null;
2119
2155
  phone: string;
2120
2156
  logoUrl: string;
@@ -2196,6 +2232,7 @@ export declare const app: Elysia<"", {
2196
2232
  createdAt: string;
2197
2233
  updatedAt: string;
2198
2234
  deletedAt: string | null;
2235
+ oldId: number | null;
2199
2236
  rowCount: number;
2200
2237
  price: number;
2201
2238
  } & {
@@ -2218,6 +2255,7 @@ export declare const app: Elysia<"", {
2218
2255
  package: {
2219
2256
  post: {
2220
2257
  body: {
2258
+ oldId?: number | null | undefined;
2221
2259
  name: string;
2222
2260
  rowCount: number;
2223
2261
  price: number;
@@ -2232,6 +2270,7 @@ export declare const app: Elysia<"", {
2232
2270
  createdAt: string;
2233
2271
  updatedAt: string;
2234
2272
  deletedAt: string | null;
2273
+ oldId: number | null;
2235
2274
  rowCount: number;
2236
2275
  price: number;
2237
2276
  };
@@ -2253,6 +2292,7 @@ export declare const app: Elysia<"", {
2253
2292
  put: {
2254
2293
  body: {
2255
2294
  name?: string | undefined;
2295
+ oldId?: number | null | undefined;
2256
2296
  rowCount?: number | undefined;
2257
2297
  price?: number | undefined;
2258
2298
  };
@@ -2268,6 +2308,7 @@ export declare const app: Elysia<"", {
2268
2308
  createdAt: string;
2269
2309
  updatedAt: string;
2270
2310
  deletedAt: string | null;
2311
+ oldId: number | null;
2271
2312
  rowCount: number;
2272
2313
  price: number;
2273
2314
  };
@@ -2349,6 +2390,7 @@ export declare const app: Elysia<"", {
2349
2390
  createdAt: string;
2350
2391
  updatedAt: string;
2351
2392
  deletedAt: string | null;
2393
+ oldId: number | null;
2352
2394
  }[];
2353
2395
  };
2354
2396
  422: {
@@ -2368,6 +2410,7 @@ export declare const app: Elysia<"", {
2368
2410
  post: {
2369
2411
  body: {
2370
2412
  branchId?: string | null | undefined;
2413
+ oldId?: number | null | undefined;
2371
2414
  serviceKindId?: string | null | undefined;
2372
2415
  description?: string | null | undefined;
2373
2416
  enabled?: boolean | undefined;
@@ -2386,6 +2429,7 @@ export declare const app: Elysia<"", {
2386
2429
  companyId: string;
2387
2430
  branchId: string | null;
2388
2431
  deletedAt: string | null;
2432
+ oldId: number | null;
2389
2433
  price: number;
2390
2434
  serviceKindId: string | null;
2391
2435
  description: string | null;
@@ -2410,6 +2454,7 @@ export declare const app: Elysia<"", {
2410
2454
  body: {
2411
2455
  name?: string | undefined;
2412
2456
  branchId?: string | null | undefined;
2457
+ oldId?: number | null | undefined;
2413
2458
  price?: number | undefined;
2414
2459
  serviceKindId?: string | null | undefined;
2415
2460
  description?: string | null | undefined;
@@ -2433,6 +2478,7 @@ export declare const app: Elysia<"", {
2433
2478
  createdAt: string;
2434
2479
  updatedAt: string;
2435
2480
  deletedAt: string | null;
2481
+ oldId: number | null;
2436
2482
  };
2437
2483
  404: "Үйлчилгээ олдсонгүй.";
2438
2484
  422: {
@@ -2476,16 +2522,15 @@ export declare const app: Elysia<"", {
2476
2522
  };
2477
2523
  } & {
2478
2524
  company: {
2525
+ employee: {};
2526
+ } & {
2479
2527
  employee: {
2480
2528
  get: {
2481
2529
  body: unknown;
2482
2530
  params: {};
2483
2531
  query: {
2532
+ search?: string | undefined;
2484
2533
  companyId?: string | undefined;
2485
- regNumber?: string | null | undefined;
2486
- phone?: string | undefined;
2487
- firstname?: string | undefined;
2488
- lastname?: string | undefined;
2489
2534
  pagination: {
2490
2535
  size: number;
2491
2536
  page: number;
@@ -2495,21 +2540,21 @@ export declare const app: Elysia<"", {
2495
2540
  response: {
2496
2541
  200: {
2497
2542
  totalCount: number;
2498
- totalPage: number;
2499
- result: Omit<{
2500
- id: string;
2543
+ totalPages: number;
2544
+ results: {
2545
+ companyId: string;
2546
+ branchId: string | null;
2547
+ firstname: string;
2548
+ lastname: string;
2549
+ regNumber: string | null;
2501
2550
  email: string | null;
2551
+ phone: string;
2552
+ id: string;
2502
2553
  createdAt: string;
2503
2554
  updatedAt: string;
2504
- companyId: string;
2505
2555
  deletedAt: string | null;
2506
- regNumber: string | null;
2507
- phone: string;
2508
- firstname: string;
2509
- lastname: string;
2510
- } & {
2511
- totalCount: number;
2512
- }, "totalCount">[];
2556
+ oldId: number | null;
2557
+ }[];
2513
2558
  };
2514
2559
  422: {
2515
2560
  type: "validation";
@@ -2528,6 +2573,8 @@ export declare const app: Elysia<"", {
2528
2573
  post: {
2529
2574
  body: {
2530
2575
  email?: string | null | undefined;
2576
+ branchId?: string | null | undefined;
2577
+ oldId?: number | null | undefined;
2531
2578
  regNumber?: string | null | undefined;
2532
2579
  companyId: string;
2533
2580
  phone: string;
@@ -2544,7 +2591,9 @@ export declare const app: Elysia<"", {
2544
2591
  createdAt: string;
2545
2592
  updatedAt: string;
2546
2593
  companyId: string;
2594
+ branchId: string | null;
2547
2595
  deletedAt: string | null;
2596
+ oldId: number | null;
2548
2597
  regNumber: string | null;
2549
2598
  phone: string;
2550
2599
  firstname: string;
@@ -2569,6 +2618,8 @@ export declare const app: Elysia<"", {
2569
2618
  body: {
2570
2619
  email?: string | null | undefined;
2571
2620
  companyId?: string | undefined;
2621
+ branchId?: string | null | undefined;
2622
+ oldId?: number | null | undefined;
2572
2623
  regNumber?: string | null | undefined;
2573
2624
  phone?: string | undefined;
2574
2625
  firstname?: string | undefined;
@@ -2581,18 +2632,20 @@ export declare const app: Elysia<"", {
2581
2632
  headers: unknown;
2582
2633
  response: {
2583
2634
  200: {
2584
- id: string;
2635
+ companyId: string;
2636
+ branchId: string | null;
2637
+ firstname: string;
2638
+ lastname: string;
2639
+ regNumber: string | null;
2585
2640
  email: string | null;
2641
+ phone: string;
2642
+ id: string;
2586
2643
  createdAt: string;
2587
2644
  updatedAt: string;
2588
- companyId: string;
2589
2645
  deletedAt: string | null;
2590
- regNumber: string | null;
2591
- phone: string;
2592
- firstname: string;
2593
- lastname: string;
2646
+ oldId: number | null;
2594
2647
  };
2595
- 404: string;
2648
+ 404: "Ажилтан олдсонгүй.";
2596
2649
  422: {
2597
2650
  type: "validation";
2598
2651
  on: string;
@@ -2617,8 +2670,7 @@ export declare const app: Elysia<"", {
2617
2670
  query: unknown;
2618
2671
  headers: unknown;
2619
2672
  response: {
2620
- 200: undefined;
2621
- 404: string;
2673
+ 200: void;
2622
2674
  422: {
2623
2675
  type: "validation";
2624
2676
  on: string;
@@ -2648,6 +2700,7 @@ export declare const app: Elysia<"", {
2648
2700
  companyId?: string | undefined;
2649
2701
  account?: string | undefined;
2650
2702
  deletedAt?: string | null | undefined;
2703
+ oldId?: number | null | undefined;
2651
2704
  description?: string | null | undefined;
2652
2705
  bank?: string | undefined;
2653
2706
  pagination: {
@@ -2667,6 +2720,7 @@ export declare const app: Elysia<"", {
2667
2720
  companyId: string;
2668
2721
  account: string;
2669
2722
  deletedAt: string | null;
2723
+ oldId: number | null;
2670
2724
  description: string | null;
2671
2725
  bank: string;
2672
2726
  } & {
@@ -2689,6 +2743,7 @@ export declare const app: Elysia<"", {
2689
2743
  account: {
2690
2744
  post: {
2691
2745
  body: {
2746
+ oldId?: number | null | undefined;
2692
2747
  description?: string | null | undefined;
2693
2748
  companyId: string;
2694
2749
  account: string;
@@ -2705,6 +2760,7 @@ export declare const app: Elysia<"", {
2705
2760
  companyId: string;
2706
2761
  account: string;
2707
2762
  deletedAt: string | null;
2763
+ oldId: number | null;
2708
2764
  description: string | null;
2709
2765
  bank: string;
2710
2766
  };
@@ -2727,6 +2783,7 @@ export declare const app: Elysia<"", {
2727
2783
  body: {
2728
2784
  companyId?: string | undefined;
2729
2785
  account?: string | undefined;
2786
+ oldId?: number | null | undefined;
2730
2787
  description?: string | null | undefined;
2731
2788
  bank?: string | undefined;
2732
2789
  };
@@ -2743,6 +2800,7 @@ export declare const app: Elysia<"", {
2743
2800
  companyId: string;
2744
2801
  account: string;
2745
2802
  deletedAt: string | null;
2803
+ oldId: number | null;
2746
2804
  description: string | null;
2747
2805
  bank: string;
2748
2806
  };
@@ -2854,6 +2912,7 @@ export declare const app: Elysia<"", {
2854
2912
  createdAt: string;
2855
2913
  updatedAt: string;
2856
2914
  deletedAt: string | null;
2915
+ oldId: number | null;
2857
2916
  }[];
2858
2917
  };
2859
2918
  422: {
@@ -2872,6 +2931,7 @@ export declare const app: Elysia<"", {
2872
2931
  group: {
2873
2932
  post: {
2874
2933
  body: {
2934
+ oldId?: number | null | undefined;
2875
2935
  permissions?: string[] | undefined;
2876
2936
  name: string;
2877
2937
  };
@@ -2885,6 +2945,7 @@ export declare const app: Elysia<"", {
2885
2945
  createdAt: string;
2886
2946
  updatedAt: string;
2887
2947
  deletedAt: string | null;
2948
+ oldId: number | null;
2888
2949
  permissions: string[];
2889
2950
  };
2890
2951
  422: {
@@ -2905,6 +2966,7 @@ export declare const app: Elysia<"", {
2905
2966
  put: {
2906
2967
  body: {
2907
2968
  name?: string | undefined;
2969
+ oldId?: number | null | undefined;
2908
2970
  permissions?: string[] | undefined;
2909
2971
  };
2910
2972
  params: {
@@ -2919,6 +2981,7 @@ export declare const app: Elysia<"", {
2919
2981
  createdAt: string;
2920
2982
  updatedAt: string;
2921
2983
  deletedAt: string | null;
2984
+ oldId: number | null;
2922
2985
  permissions: string[];
2923
2986
  };
2924
2987
  404: string;
@@ -3031,6 +3094,7 @@ export declare const app: Elysia<"", {
3031
3094
  createdAt: string;
3032
3095
  updatedAt: string;
3033
3096
  deletedAt: string | null;
3097
+ oldId: number | null;
3034
3098
  regNumber: string;
3035
3099
  phone: string;
3036
3100
  serviceName: string;
@@ -3052,11 +3116,11 @@ export declare const app: Elysia<"", {
3052
3116
  totalCount: number;
3053
3117
  }, "totalCount">;
3054
3118
  id: string;
3119
+ createdAt: Date;
3120
+ updatedAt: Date;
3055
3121
  email: string;
3056
3122
  emailVerified: boolean;
3057
3123
  name: string;
3058
- createdAt: Date;
3059
- updatedAt: Date;
3060
3124
  image?: string | null | undefined | undefined;
3061
3125
  companyId: string;
3062
3126
  branchId: string;
@@ -3132,7 +3196,7 @@ export declare const app: Elysia<"", {
3132
3196
  query: unknown;
3133
3197
  headers: unknown;
3134
3198
  response: {
3135
- 200: {
3199
+ 200: void | {
3136
3200
  id: string;
3137
3201
  name: string;
3138
3202
  email: string;
@@ -3145,7 +3209,6 @@ export declare const app: Elysia<"", {
3145
3209
  kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
3146
3210
  employeeId: string | null;
3147
3211
  };
3148
- 404: "Хэрэглэгч олдсонгүй.";
3149
3212
  422: {
3150
3213
  type: "validation";
3151
3214
  on: string;
@@ -3188,6 +3251,7 @@ export declare const app: Elysia<"", {
3188
3251
  createdAt: string;
3189
3252
  updatedAt: string;
3190
3253
  deletedAt: string | null;
3254
+ oldId: number | null;
3191
3255
  }[];
3192
3256
  422: {
3193
3257
  type: "validation";
@@ -3205,6 +3269,7 @@ export declare const app: Elysia<"", {
3205
3269
  employee: {
3206
3270
  post: {
3207
3271
  body: {
3272
+ oldId?: number | null | undefined;
3208
3273
  amount?: number | undefined;
3209
3274
  employeeId: string;
3210
3275
  cpOrderItemId: string;
@@ -3219,6 +3284,7 @@ export declare const app: Elysia<"", {
3219
3284
  updatedAt: string;
3220
3285
  employeeId: string;
3221
3286
  deletedAt: string | null;
3287
+ oldId: number | null;
3222
3288
  cpOrderItemId: string;
3223
3289
  amount: number;
3224
3290
  };
@@ -3256,6 +3322,7 @@ export declare const app: Elysia<"", {
3256
3322
  createdAt: string;
3257
3323
  updatedAt: string;
3258
3324
  deletedAt: string | null;
3325
+ oldId: number | null;
3259
3326
  };
3260
3327
  404: "Ажилтны мэдээлэл олдсонгүй.";
3261
3328
  422: {
@@ -3310,7 +3377,7 @@ export declare const app: Elysia<"", {
3310
3377
  };
3311
3378
  headers: unknown;
3312
3379
  response: {
3313
- 200: {
3380
+ 200: ({
3314
3381
  item: {
3315
3382
  warehouseId: string;
3316
3383
  productId: string;
@@ -3321,6 +3388,7 @@ export declare const app: Elysia<"", {
3321
3388
  createdAt: string;
3322
3389
  updatedAt: string;
3323
3390
  deletedAt: string | null;
3391
+ oldId: number | null;
3324
3392
  } | null;
3325
3393
  service_kind: {
3326
3394
  serviceKindId: string | null;
@@ -3334,6 +3402,21 @@ export declare const app: Elysia<"", {
3334
3402
  createdAt: string;
3335
3403
  updatedAt: string;
3336
3404
  deletedAt: string | null;
3405
+ oldId: number | null;
3406
+ } | null;
3407
+ employee: {
3408
+ companyId: string;
3409
+ branchId: string | null;
3410
+ firstname: string;
3411
+ lastname: string;
3412
+ regNumber: string | null;
3413
+ email: string | null;
3414
+ phone: string;
3415
+ id: string;
3416
+ createdAt: string;
3417
+ updatedAt: string;
3418
+ deletedAt: string | null;
3419
+ oldId: number | null;
3337
3420
  } | null;
3338
3421
  cp_order_item: {
3339
3422
  cpOrderId: string;
@@ -3348,7 +3431,18 @@ export declare const app: Elysia<"", {
3348
3431
  createdAt: string;
3349
3432
  updatedAt: string;
3350
3433
  deletedAt: string | null;
3434
+ oldId: number | null;
3351
3435
  };
3436
+ cp_order_item_employee: {
3437
+ cpOrderItemId: string;
3438
+ employeeId: string;
3439
+ amount: number;
3440
+ id: string;
3441
+ createdAt: string;
3442
+ updatedAt: string;
3443
+ deletedAt: string | null;
3444
+ oldId: number | null;
3445
+ } | null;
3352
3446
  product: {
3353
3447
  supplierId: string;
3354
3448
  productId: string | null;
@@ -3366,8 +3460,15 @@ export declare const app: Elysia<"", {
3366
3460
  createdAt: string;
3367
3461
  updatedAt: string;
3368
3462
  deletedAt: string | null;
3463
+ oldId: number | null;
3369
3464
  } | null;
3370
- }[];
3465
+ } & {
3466
+ crmCpOrderEmployee: {
3467
+ id: string;
3468
+ employeeName: string;
3469
+ amount: number;
3470
+ }[];
3471
+ })[];
3371
3472
  422: {
3372
3473
  type: "validation";
3373
3474
  on: string;
@@ -3402,6 +3503,7 @@ export declare const app: Elysia<"", {
3402
3503
  createdAt: string;
3403
3504
  updatedAt: string;
3404
3505
  deletedAt: string | null;
3506
+ oldId: number | null;
3405
3507
  priceTotal: number;
3406
3508
  quantity: number;
3407
3509
  priceUnit: number;
@@ -3451,6 +3553,7 @@ export declare const app: Elysia<"", {
3451
3553
  createdAt: string;
3452
3554
  updatedAt: string;
3453
3555
  deletedAt: string | null;
3556
+ oldId: number | null;
3454
3557
  };
3455
3558
  404: "Үйлчилгээ олдсонгүй.";
3456
3559
  422: {
@@ -3518,6 +3621,7 @@ export declare const app: Elysia<"", {
3518
3621
  payment: {
3519
3622
  post: {
3520
3623
  body: {
3624
+ oldId?: number | null | undefined;
3521
3625
  paymentPackageId?: string | null | undefined;
3522
3626
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3523
3627
  cpOrderId: string;
@@ -3534,6 +3638,7 @@ export declare const app: Elysia<"", {
3534
3638
  createdAt: string;
3535
3639
  updatedAt: string;
3536
3640
  deletedAt: string | null;
3641
+ oldId: number | null;
3537
3642
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3538
3643
  cpOrderId: string;
3539
3644
  amount: number;
@@ -3584,6 +3689,7 @@ export declare const app: Elysia<"", {
3584
3689
  storepay: {
3585
3690
  post: {
3586
3691
  body: {
3692
+ oldId?: number | null | undefined;
3587
3693
  paymentPackageId?: string | null | undefined;
3588
3694
  phone: number;
3589
3695
  cpOrderId: string;
@@ -3598,6 +3704,7 @@ export declare const app: Elysia<"", {
3598
3704
  createdAt: string;
3599
3705
  updatedAt: string;
3600
3706
  deletedAt: string | null;
3707
+ oldId: number | null;
3601
3708
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3602
3709
  cpOrderId: string;
3603
3710
  amount: number;
@@ -3657,6 +3764,7 @@ export declare const app: Elysia<"", {
3657
3764
  ubpay: {
3658
3765
  post: {
3659
3766
  body: {
3767
+ oldId?: number | null | undefined;
3660
3768
  paymentPackageId?: string | null | undefined;
3661
3769
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3662
3770
  cpOrderId: string;
@@ -3674,6 +3782,7 @@ export declare const app: Elysia<"", {
3674
3782
  createdAt: string;
3675
3783
  updatedAt: string;
3676
3784
  deletedAt: string | null;
3785
+ oldId: number | null;
3677
3786
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3678
3787
  cpOrderId: string;
3679
3788
  amount: number;
@@ -3763,6 +3872,7 @@ export declare const app: Elysia<"", {
3763
3872
  qpay: {
3764
3873
  post: {
3765
3874
  body: {
3875
+ oldId?: number | null | undefined;
3766
3876
  paymentPackageId?: string | null | undefined;
3767
3877
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3768
3878
  cpOrderId: string;
@@ -3780,6 +3890,7 @@ export declare const app: Elysia<"", {
3780
3890
  createdAt: string;
3781
3891
  updatedAt: string;
3782
3892
  deletedAt: string | null;
3893
+ oldId: number | null;
3783
3894
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3784
3895
  cpOrderId: string;
3785
3896
  amount: number;
@@ -3838,6 +3949,7 @@ export declare const app: Elysia<"", {
3838
3949
  createdAt: string;
3839
3950
  updatedAt: string;
3840
3951
  deletedAt: string | null;
3952
+ oldId: number | null;
3841
3953
  };
3842
3954
  branch: {
3843
3955
  name: string;
@@ -3860,6 +3972,7 @@ export declare const app: Elysia<"", {
3860
3972
  createdAt: string;
3861
3973
  updatedAt: string;
3862
3974
  deletedAt: string | null;
3975
+ oldId: number | null;
3863
3976
  } | null;
3864
3977
  payment: {
3865
3978
  accessToken: string | null;
@@ -3874,6 +3987,7 @@ export declare const app: Elysia<"", {
3874
3987
  createdAt: string;
3875
3988
  updatedAt: string;
3876
3989
  deletedAt: string | null;
3990
+ oldId: number | null;
3877
3991
  };
3878
3992
  }[];
3879
3993
  };
@@ -3931,6 +4045,7 @@ export declare const app: Elysia<"", {
3931
4045
  accessToken: string | null;
3932
4046
  refreshToken: string | null;
3933
4047
  deletedAt: string | null;
4048
+ oldId: number | null;
3934
4049
  expiresIn: number | null;
3935
4050
  refreshExpiresIn: number | null;
3936
4051
  };
@@ -4020,6 +4135,7 @@ export declare const app: Elysia<"", {
4020
4135
  createdAt: string;
4021
4136
  updatedAt: string;
4022
4137
  deletedAt: string | null;
4138
+ oldId: number | null;
4023
4139
  };
4024
4140
  vehicle: {
4025
4141
  customerId: string | null;
@@ -4044,6 +4160,7 @@ export declare const app: Elysia<"", {
4044
4160
  createdAt: string;
4045
4161
  updatedAt: string;
4046
4162
  deletedAt: string | null;
4163
+ oldId: number | null;
4047
4164
  } | null;
4048
4165
  make: {
4049
4166
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -4057,6 +4174,7 @@ export declare const app: Elysia<"", {
4057
4174
  createdAt: string;
4058
4175
  updatedAt: string;
4059
4176
  deletedAt: string | null;
4177
+ oldId: number | null;
4060
4178
  } | null;
4061
4179
  model: {
4062
4180
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -4070,6 +4188,7 @@ export declare const app: Elysia<"", {
4070
4188
  createdAt: string;
4071
4189
  updatedAt: string;
4072
4190
  deletedAt: string | null;
4191
+ oldId: number | null;
4073
4192
  } | null;
4074
4193
  customer: {
4075
4194
  companyId: string | null;
@@ -4082,6 +4201,7 @@ export declare const app: Elysia<"", {
4082
4201
  createdAt: string;
4083
4202
  updatedAt: string;
4084
4203
  deletedAt: string | null;
4204
+ oldId: number | null;
4085
4205
  } | null;
4086
4206
  isDeleteAble: boolean;
4087
4207
  }[];
@@ -4132,6 +4252,7 @@ export declare const app: Elysia<"", {
4132
4252
  createdAt: string;
4133
4253
  updatedAt: string;
4134
4254
  deletedAt: string | null;
4255
+ oldId: number | null;
4135
4256
  };
4136
4257
  vehicle: {
4137
4258
  customerId: string | null;
@@ -4156,6 +4277,7 @@ export declare const app: Elysia<"", {
4156
4277
  createdAt: string;
4157
4278
  updatedAt: string;
4158
4279
  deletedAt: string | null;
4280
+ oldId: number | null;
4159
4281
  } | null;
4160
4282
  make: {
4161
4283
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -4169,6 +4291,7 @@ export declare const app: Elysia<"", {
4169
4291
  createdAt: string;
4170
4292
  updatedAt: string;
4171
4293
  deletedAt: string | null;
4294
+ oldId: number | null;
4172
4295
  } | null;
4173
4296
  model: {
4174
4297
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -4182,6 +4305,7 @@ export declare const app: Elysia<"", {
4182
4305
  createdAt: string;
4183
4306
  updatedAt: string;
4184
4307
  deletedAt: string | null;
4308
+ oldId: number | null;
4185
4309
  } | null;
4186
4310
  customer: {
4187
4311
  companyId: string | null;
@@ -4194,6 +4318,7 @@ export declare const app: Elysia<"", {
4194
4318
  createdAt: string;
4195
4319
  updatedAt: string;
4196
4320
  deletedAt: string | null;
4321
+ oldId: number | null;
4197
4322
  } | null;
4198
4323
  isDeleteAble: boolean;
4199
4324
  }[];
@@ -4228,6 +4353,7 @@ export declare const app: Elysia<"", {
4228
4353
  updatedAt: string;
4229
4354
  companyId: string;
4230
4355
  deletedAt: string | null;
4356
+ oldId: number | null;
4231
4357
  isNoat: boolean | null;
4232
4358
  companyBranchId: string;
4233
4359
  customerId: string | null;
@@ -4297,6 +4423,7 @@ export declare const app: Elysia<"", {
4297
4423
  createdAt: string;
4298
4424
  updatedAt: string;
4299
4425
  deletedAt: string | null;
4426
+ oldId: number | null;
4300
4427
  };
4301
4428
  404: "Засвар үйлчилгээ олдсонгүй.";
4302
4429
  422: {
@@ -4319,6 +4446,7 @@ export declare const app: Elysia<"", {
4319
4446
  body: {
4320
4447
  type?: "Service" | "ProductSell" | undefined;
4321
4448
  companyId?: string | undefined;
4449
+ oldId?: number | null | undefined;
4322
4450
  isNoat?: boolean | null | undefined;
4323
4451
  companyBranchId?: string | undefined;
4324
4452
  customerId?: string | null | undefined;
@@ -4349,6 +4477,7 @@ export declare const app: Elysia<"", {
4349
4477
  createdAt: string;
4350
4478
  updatedAt: string;
4351
4479
  deletedAt: string | null;
4480
+ oldId: number | null;
4352
4481
  };
4353
4482
  404: "Засвар үйлчилгээ олдсонгүй.";
4354
4483
  422: {
@@ -4416,6 +4545,7 @@ export declare const app: Elysia<"", {
4416
4545
  createdAt: string;
4417
4546
  updatedAt: string;
4418
4547
  deletedAt: string | null;
4548
+ oldId: number | null;
4419
4549
  }[];
4420
4550
  totalAmount: number;
4421
4551
  paidAmount: number;
@@ -4435,6 +4565,7 @@ export declare const app: Elysia<"", {
4435
4565
  createdAt: string;
4436
4566
  updatedAt: string;
4437
4567
  deletedAt: string | null;
4568
+ oldId: number | null;
4438
4569
  };
4439
4570
  discount: {
4440
4571
  companyId: string;
@@ -4448,6 +4579,7 @@ export declare const app: Elysia<"", {
4448
4579
  createdAt: string;
4449
4580
  updatedAt: string;
4450
4581
  deletedAt: string | null;
4582
+ oldId: number | null;
4451
4583
  } | null;
4452
4584
  }[];
4453
4585
  };
@@ -4495,6 +4627,7 @@ export declare const app: Elysia<"", {
4495
4627
  createdAt: string;
4496
4628
  updatedAt: string;
4497
4629
  deletedAt: string | null;
4630
+ oldId: number | null;
4498
4631
  };
4499
4632
  spPackageId: string;
4500
4633
  kindId: string;
@@ -4505,6 +4638,7 @@ export declare const app: Elysia<"", {
4505
4638
  createdAt: string;
4506
4639
  updatedAt: string;
4507
4640
  deletedAt: string | null;
4641
+ oldId: number | null;
4508
4642
  }[];
4509
4643
  422: {
4510
4644
  type: "validation";
@@ -4522,6 +4656,7 @@ export declare const app: Elysia<"", {
4522
4656
  service: {
4523
4657
  post: {
4524
4658
  body: {
4659
+ oldId?: number | null | undefined;
4525
4660
  priceTotal?: number | undefined;
4526
4661
  spPackageId: string;
4527
4662
  kindId: string;
@@ -4537,6 +4672,7 @@ export declare const app: Elysia<"", {
4537
4672
  createdAt: string;
4538
4673
  updatedAt: string;
4539
4674
  deletedAt: string | null;
4675
+ oldId: number | null;
4540
4676
  priceTotal: number;
4541
4677
  spPackageId: string;
4542
4678
  kindId: string;
@@ -4560,6 +4696,7 @@ export declare const app: Elysia<"", {
4560
4696
  many: {
4561
4697
  post: {
4562
4698
  body: {
4699
+ oldId?: number | null | undefined;
4563
4700
  priceTotal?: number | undefined;
4564
4701
  spPackageId: string;
4565
4702
  kindId: string;
@@ -4590,6 +4727,7 @@ export declare const app: Elysia<"", {
4590
4727
  ":id": {
4591
4728
  put: {
4592
4729
  body: {
4730
+ oldId?: number | null | undefined;
4593
4731
  priceTotal?: number | undefined;
4594
4732
  spPackageId?: string | undefined;
4595
4733
  kindId?: string | undefined;
@@ -4612,6 +4750,7 @@ export declare const app: Elysia<"", {
4612
4750
  createdAt: string;
4613
4751
  updatedAt: string;
4614
4752
  deletedAt: string | null;
4753
+ oldId: number | null;
4615
4754
  };
4616
4755
  404: "Үйлчилгээ олдсонгүй.";
4617
4756
  422: {
@@ -4684,6 +4823,7 @@ export declare const app: Elysia<"", {
4684
4823
  createdAt: string;
4685
4824
  updatedAt: string;
4686
4825
  deletedAt: string | null;
4826
+ oldId: number | null;
4687
4827
  };
4688
4828
  spPackageId: string;
4689
4829
  companyProductId: string;
@@ -4694,6 +4834,7 @@ export declare const app: Elysia<"", {
4694
4834
  createdAt: string;
4695
4835
  updatedAt: string;
4696
4836
  deletedAt: string | null;
4837
+ oldId: number | null;
4697
4838
  }[];
4698
4839
  422: {
4699
4840
  type: "validation";
@@ -4711,6 +4852,7 @@ export declare const app: Elysia<"", {
4711
4852
  product: {
4712
4853
  post: {
4713
4854
  body: {
4855
+ oldId?: number | null | undefined;
4714
4856
  spPackageId: string;
4715
4857
  quantity: number;
4716
4858
  priceUnit: number;
@@ -4725,6 +4867,7 @@ export declare const app: Elysia<"", {
4725
4867
  createdAt: string;
4726
4868
  updatedAt: string;
4727
4869
  deletedAt: string | null;
4870
+ oldId: number | null;
4728
4871
  priceTotal: number;
4729
4872
  spPackageId: string;
4730
4873
  quantity: number;
@@ -4748,6 +4891,7 @@ export declare const app: Elysia<"", {
4748
4891
  many: {
4749
4892
  post: {
4750
4893
  body: {
4894
+ oldId?: number | null | undefined;
4751
4895
  spPackageId: string;
4752
4896
  quantity: number;
4753
4897
  priceUnit: number;
@@ -4777,6 +4921,7 @@ export declare const app: Elysia<"", {
4777
4921
  ":id": {
4778
4922
  put: {
4779
4923
  body: {
4924
+ oldId?: number | null | undefined;
4780
4925
  priceTotal?: number | undefined;
4781
4926
  spPackageId?: string | undefined;
4782
4927
  quantity?: number | undefined;
@@ -4799,6 +4944,7 @@ export declare const app: Elysia<"", {
4799
4944
  createdAt: string;
4800
4945
  updatedAt: string;
4801
4946
  deletedAt: string | null;
4947
+ oldId: number | null;
4802
4948
  };
4803
4949
  404: "Үйлчилгээний багцын бүтээгдэхүүн олдсонгүй.";
4804
4950
  422: {
@@ -4881,6 +5027,7 @@ export declare const app: Elysia<"", {
4881
5027
  createdAt: string;
4882
5028
  updatedAt: string;
4883
5029
  deletedAt: string | null;
5030
+ oldId: number | null;
4884
5031
  } | null;
4885
5032
  companyId: string;
4886
5033
  companyBranchId: string | null;
@@ -4891,6 +5038,7 @@ export declare const app: Elysia<"", {
4891
5038
  createdAt: string;
4892
5039
  updatedAt: string;
4893
5040
  deletedAt: string | null;
5041
+ oldId: number | null;
4894
5042
  }[];
4895
5043
  };
4896
5044
  422: {
@@ -4909,6 +5057,7 @@ export declare const app: Elysia<"", {
4909
5057
  "sp-package": {
4910
5058
  post: {
4911
5059
  body: {
5060
+ oldId?: number | null | undefined;
4912
5061
  description?: string | null | undefined;
4913
5062
  companyBranchId?: string | null | undefined;
4914
5063
  priceTotal?: number | undefined;
@@ -4925,6 +5074,7 @@ export declare const app: Elysia<"", {
4925
5074
  updatedAt: string;
4926
5075
  companyId: string;
4927
5076
  deletedAt: string | null;
5077
+ oldId: number | null;
4928
5078
  description: string | null;
4929
5079
  companyBranchId: string | null;
4930
5080
  priceTotal: number;
@@ -4947,6 +5097,7 @@ export declare const app: Elysia<"", {
4947
5097
  put: {
4948
5098
  body: {
4949
5099
  name?: string | undefined;
5100
+ oldId?: number | null | undefined;
4950
5101
  description?: string | null | undefined;
4951
5102
  companyBranchId?: string | null | undefined;
4952
5103
  priceTotal?: number | undefined;
@@ -4967,6 +5118,7 @@ export declare const app: Elysia<"", {
4967
5118
  createdAt: string;
4968
5119
  updatedAt: string;
4969
5120
  deletedAt: string | null;
5121
+ oldId: number | null;
4970
5122
  };
4971
5123
  404: "Багцийн үйлчилгээ олдсонгүй.";
4972
5124
  422: {
@@ -5091,6 +5243,7 @@ export declare const app: Elysia<"", {
5091
5243
  createdAt: string;
5092
5244
  updatedAt: string;
5093
5245
  deletedAt: string | null;
5246
+ oldId: number | null;
5094
5247
  };
5095
5248
  make: {
5096
5249
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -5104,6 +5257,7 @@ export declare const app: Elysia<"", {
5104
5257
  createdAt: string;
5105
5258
  updatedAt: string;
5106
5259
  deletedAt: string | null;
5260
+ oldId: number | null;
5107
5261
  } | null;
5108
5262
  model: {
5109
5263
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -5117,6 +5271,7 @@ export declare const app: Elysia<"", {
5117
5271
  createdAt: string;
5118
5272
  updatedAt: string;
5119
5273
  deletedAt: string | null;
5274
+ oldId: number | null;
5120
5275
  } | null;
5121
5276
  }[];
5122
5277
  };
@@ -5151,6 +5306,7 @@ export declare const app: Elysia<"", {
5151
5306
  updatedAt: string;
5152
5307
  companyId: string | null;
5153
5308
  deletedAt: string | null;
5309
+ oldId: number | null;
5154
5310
  customerId: string | null;
5155
5311
  licensePlate: string | null;
5156
5312
  vehicleKindId: string;
@@ -5218,6 +5374,7 @@ export declare const app: Elysia<"", {
5218
5374
  createdAt: string;
5219
5375
  updatedAt: string;
5220
5376
  deletedAt: string | null;
5377
+ oldId: number | null;
5221
5378
  };
5222
5379
  customer: {
5223
5380
  companyId: string | null;
@@ -5230,6 +5387,7 @@ export declare const app: Elysia<"", {
5230
5387
  createdAt: string;
5231
5388
  updatedAt: string;
5232
5389
  deletedAt: string | null;
5390
+ oldId: number | null;
5233
5391
  } | null;
5234
5392
  make: {
5235
5393
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -5243,6 +5401,7 @@ export declare const app: Elysia<"", {
5243
5401
  createdAt: string;
5244
5402
  updatedAt: string;
5245
5403
  deletedAt: string | null;
5404
+ oldId: number | null;
5246
5405
  } | null;
5247
5406
  model: {
5248
5407
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -5256,6 +5415,7 @@ export declare const app: Elysia<"", {
5256
5415
  createdAt: string;
5257
5416
  updatedAt: string;
5258
5417
  deletedAt: string | null;
5418
+ oldId: number | null;
5259
5419
  } | null;
5260
5420
  };
5261
5421
  404: "Тээврийн хэрэгсэл олдсонгүй.";
@@ -5278,6 +5438,7 @@ export declare const app: Elysia<"", {
5278
5438
  put: {
5279
5439
  body: {
5280
5440
  companyId?: string | null | undefined;
5441
+ oldId?: number | null | undefined;
5281
5442
  customerId?: string | null | undefined;
5282
5443
  licensePlate?: string | null | undefined;
5283
5444
  vehicleKindId?: string | undefined;
@@ -5325,6 +5486,7 @@ export declare const app: Elysia<"", {
5325
5486
  createdAt: string;
5326
5487
  updatedAt: string;
5327
5488
  deletedAt: string | null;
5489
+ oldId: number | null;
5328
5490
  };
5329
5491
  404: "Тээврийн хэрэгсэл олдсонгүй.";
5330
5492
  422: {
@@ -5374,6 +5536,7 @@ export declare const app: Elysia<"", {
5374
5536
  createdAt: string;
5375
5537
  updatedAt: string;
5376
5538
  deletedAt: string | null;
5539
+ oldId: number | null;
5377
5540
  };
5378
5541
  404: "Тээврийн хэрэгсэл олдсонгүй.";
5379
5542
  422: {
@@ -5423,6 +5586,7 @@ export declare const app: Elysia<"", {
5423
5586
  createdAt: string;
5424
5587
  updatedAt: string;
5425
5588
  deletedAt: string | null;
5589
+ oldId: number | null;
5426
5590
  };
5427
5591
  vehicles: {
5428
5592
  id: string;
@@ -5430,6 +5594,7 @@ export declare const app: Elysia<"", {
5430
5594
  updatedAt: string;
5431
5595
  companyId: string | null;
5432
5596
  deletedAt: string | null;
5597
+ oldId: number | null;
5433
5598
  customerId: string | null;
5434
5599
  licensePlate: string | null;
5435
5600
  vehicleKindId: string;
@@ -5468,6 +5633,7 @@ export declare const app: Elysia<"", {
5468
5633
  body: {
5469
5634
  email?: string | null | undefined;
5470
5635
  companyId?: string | null | undefined;
5636
+ oldId?: number | null | undefined;
5471
5637
  firstname?: string | null | undefined;
5472
5638
  lastname?: string | null | undefined;
5473
5639
  regNum?: string | null | undefined;
@@ -5484,6 +5650,7 @@ export declare const app: Elysia<"", {
5484
5650
  updatedAt: string;
5485
5651
  companyId: string | null;
5486
5652
  deletedAt: string | null;
5653
+ oldId: number | null;
5487
5654
  firstname: string | null;
5488
5655
  lastname: string | null;
5489
5656
  phoneNumber: string;
@@ -5508,6 +5675,7 @@ export declare const app: Elysia<"", {
5508
5675
  body: {
5509
5676
  email?: string | null | undefined;
5510
5677
  companyId?: string | null | undefined;
5678
+ oldId?: number | null | undefined;
5511
5679
  firstname?: string | null | undefined;
5512
5680
  lastname?: string | null | undefined;
5513
5681
  phoneNumber?: string | undefined;
@@ -5530,6 +5698,7 @@ export declare const app: Elysia<"", {
5530
5698
  createdAt: string;
5531
5699
  updatedAt: string;
5532
5700
  deletedAt: string | null;
5701
+ oldId: number | null;
5533
5702
  };
5534
5703
  404: "Хэрэглэгч олдсонгүй.";
5535
5704
  422: {
@@ -5574,6 +5743,7 @@ export declare const app: Elysia<"", {
5574
5743
  updatedAt: string;
5575
5744
  companyId: string;
5576
5745
  deletedAt: string | null;
5746
+ oldId: number | null;
5577
5747
  description: string | null;
5578
5748
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
5579
5749
  amount: number;
@@ -5585,6 +5755,7 @@ export declare const app: Elysia<"", {
5585
5755
  createdAt: string;
5586
5756
  updatedAt: string;
5587
5757
  deletedAt: string | null;
5758
+ oldId: number | null;
5588
5759
  discountId: string;
5589
5760
  conditionType: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE";
5590
5761
  conditionValue: unknown;
@@ -5607,6 +5778,7 @@ export declare const app: Elysia<"", {
5607
5778
  discount: {
5608
5779
  post: {
5609
5780
  body: {
5781
+ oldId?: number | null | undefined;
5610
5782
  description?: string | null | undefined;
5611
5783
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
5612
5784
  amount?: number | undefined;
@@ -5626,6 +5798,7 @@ export declare const app: Elysia<"", {
5626
5798
  updatedAt: string;
5627
5799
  companyId: string;
5628
5800
  deletedAt: string | null;
5801
+ oldId: number | null;
5629
5802
  description: string | null;
5630
5803
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
5631
5804
  amount: number;
@@ -5651,6 +5824,7 @@ export declare const app: Elysia<"", {
5651
5824
  body: {
5652
5825
  name?: string | undefined;
5653
5826
  companyId?: string | undefined;
5827
+ oldId?: number | null | undefined;
5654
5828
  description?: string | null | undefined;
5655
5829
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
5656
5830
  amount?: number | undefined;
@@ -5675,6 +5849,7 @@ export declare const app: Elysia<"", {
5675
5849
  createdAt: string;
5676
5850
  updatedAt: string;
5677
5851
  deletedAt: string | null;
5852
+ oldId: number | null;
5678
5853
  };
5679
5854
  404: "Хөнгөлөлт олдсонгүй.";
5680
5855
  422: {
@@ -5708,6 +5883,7 @@ export declare const app: Elysia<"", {
5708
5883
  updatedAt: string;
5709
5884
  companyId: string;
5710
5885
  deletedAt: string | null;
5886
+ oldId: number | null;
5711
5887
  description: string | null;
5712
5888
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
5713
5889
  amount: number;
@@ -5733,6 +5909,7 @@ export declare const app: Elysia<"", {
5733
5909
  condition: {
5734
5910
  post: {
5735
5911
  body: {
5912
+ oldId?: number | null | undefined;
5736
5913
  discountId: string;
5737
5914
  conditionType: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE";
5738
5915
  conditionValue: import("drizzle-typebox").Json & ({
@@ -5763,6 +5940,7 @@ export declare const app: Elysia<"", {
5763
5940
  createdAt: string;
5764
5941
  updatedAt: string;
5765
5942
  deletedAt: string | null;
5943
+ oldId: number | null;
5766
5944
  discountId: string;
5767
5945
  conditionType: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE";
5768
5946
  conditionValue: unknown;
@@ -5787,6 +5965,7 @@ export declare const app: Elysia<"", {
5787
5965
  ":id": {
5788
5966
  put: {
5789
5967
  body: {
5968
+ oldId?: number | null | undefined;
5790
5969
  discountId?: string | undefined;
5791
5970
  conditionType?: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE" | undefined;
5792
5971
  conditionValue?: (import("drizzle-typebox").Json & ({
@@ -5822,6 +6001,7 @@ export declare const app: Elysia<"", {
5822
6001
  createdAt: string;
5823
6002
  updatedAt: string;
5824
6003
  deletedAt: string | null;
6004
+ oldId: number | null;
5825
6005
  };
5826
6006
  404: "Хөнгөлөлтийн нөхцөл олдсонгүй.";
5827
6007
  422: {
@@ -5855,6 +6035,7 @@ export declare const app: Elysia<"", {
5855
6035
  createdAt: string;
5856
6036
  updatedAt: string;
5857
6037
  deletedAt: string | null;
6038
+ oldId: number | null;
5858
6039
  discountId: string;
5859
6040
  conditionType: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE";
5860
6041
  conditionValue: unknown;
@@ -5879,6 +6060,7 @@ export declare const app: Elysia<"", {
5879
6060
  apply: {
5880
6061
  post: {
5881
6062
  body: {
6063
+ oldId?: number | null | undefined;
5882
6064
  cpOrderItemId?: string | null | undefined;
5883
6065
  discountId?: string | null | undefined;
5884
6066
  note?: string | null | undefined;
@@ -5897,6 +6079,7 @@ export declare const app: Elysia<"", {
5897
6079
  updatedAt: string;
5898
6080
  employeeId: string;
5899
6081
  deletedAt: string | null;
6082
+ oldId: number | null;
5900
6083
  cpOrderId: string;
5901
6084
  cpOrderItemId: string | null;
5902
6085
  discountId: string | null;
@@ -5927,6 +6110,7 @@ export declare const app: Elysia<"", {
5927
6110
  put: {
5928
6111
  body: {
5929
6112
  employeeId?: string | undefined;
6113
+ oldId?: number | null | undefined;
5930
6114
  cpOrderId?: string | undefined;
5931
6115
  cpOrderItemId?: string | null | undefined;
5932
6116
  discountId?: string | null | undefined;
@@ -5956,6 +6140,7 @@ export declare const app: Elysia<"", {
5956
6140
  createdAt: string;
5957
6141
  updatedAt: string;
5958
6142
  deletedAt: string | null;
6143
+ oldId: number | null;
5959
6144
  };
5960
6145
  404: "Хөнгөлөлтийн хэрэглээ олдсонгүй.";
5961
6146
  422: {
@@ -6039,6 +6224,7 @@ export declare const app: Elysia<"", {
6039
6224
  createdAt: string;
6040
6225
  updatedAt: string;
6041
6226
  deletedAt: string | null;
6227
+ oldId: number | null;
6042
6228
  };
6043
6229
  company: {
6044
6230
  id: string;
@@ -6106,6 +6292,7 @@ export declare const app: Elysia<"", {
6106
6292
  createdAt: string;
6107
6293
  updatedAt: string;
6108
6294
  deletedAt: string | null;
6295
+ oldId: number | null;
6109
6296
  };
6110
6297
  vehicle: {
6111
6298
  customerId: string | null;
@@ -6130,6 +6317,7 @@ export declare const app: Elysia<"", {
6130
6317
  createdAt: string;
6131
6318
  updatedAt: string;
6132
6319
  deletedAt: string | null;
6320
+ oldId: number | null;
6133
6321
  };
6134
6322
  employee: {
6135
6323
  firstname: string;
@@ -6177,6 +6365,7 @@ export declare const app: Elysia<"", {
6177
6365
  branchId: string;
6178
6366
  employeeId: string | null;
6179
6367
  deletedAt: string | null;
6368
+ oldId: number | null;
6180
6369
  description: string | null;
6181
6370
  vehicleId: string;
6182
6371
  licensePlate: string;
@@ -6241,6 +6430,7 @@ export declare const app: Elysia<"", {
6241
6430
  createdAt: string;
6242
6431
  updatedAt: string;
6243
6432
  deletedAt: string | null;
6433
+ oldId: number | null;
6244
6434
  };
6245
6435
  404: "Үзлэг олдсонгүй.";
6246
6436
  422: {
@@ -6316,6 +6506,7 @@ export declare const app: Elysia<"", {
6316
6506
  createdAt: string;
6317
6507
  updatedAt: string;
6318
6508
  deletedAt: string | null;
6509
+ oldId: number | null;
6319
6510
  };
6320
6511
  404: "Үзлэг олдсонгүй.";
6321
6512
  422: {
@@ -6406,6 +6597,7 @@ export declare const app: Elysia<"", {
6406
6597
  createdAt: string;
6407
6598
  updatedAt: string;
6408
6599
  deletedAt: string | null;
6600
+ oldId: number | null;
6409
6601
  };
6410
6602
  customer: {
6411
6603
  companyId: string | null;
@@ -6418,6 +6610,7 @@ export declare const app: Elysia<"", {
6418
6610
  createdAt: string;
6419
6611
  updatedAt: string;
6420
6612
  deletedAt: string | null;
6613
+ oldId: number | null;
6421
6614
  } | null;
6422
6615
  vehicle: {
6423
6616
  customerId: string | null;
@@ -6442,6 +6635,7 @@ export declare const app: Elysia<"", {
6442
6635
  createdAt: string;
6443
6636
  updatedAt: string;
6444
6637
  deletedAt: string | null;
6638
+ oldId: number | null;
6445
6639
  } | null;
6446
6640
  vehicleKind: {
6447
6641
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -6455,6 +6649,7 @@ export declare const app: Elysia<"", {
6455
6649
  createdAt: string;
6456
6650
  updatedAt: string;
6457
6651
  deletedAt: string | null;
6652
+ oldId: number | null;
6458
6653
  } | null;
6459
6654
  totalAmount: number;
6460
6655
  paidAmount: number;
@@ -6618,6 +6813,7 @@ export declare const app: Elysia<"", {
6618
6813
  createdAt: string;
6619
6814
  updatedAt: string;
6620
6815
  deletedAt: string | null;
6816
+ oldId: number | null;
6621
6817
  };
6622
6818
  order: {
6623
6819
  companyId: string;
@@ -6634,6 +6830,7 @@ export declare const app: Elysia<"", {
6634
6830
  createdAt: string;
6635
6831
  updatedAt: string;
6636
6832
  deletedAt: string | null;
6833
+ oldId: number | null;
6637
6834
  };
6638
6835
  customer: {
6639
6836
  companyId: string | null;
@@ -6646,6 +6843,7 @@ export declare const app: Elysia<"", {
6646
6843
  createdAt: string;
6647
6844
  updatedAt: string;
6648
6845
  deletedAt: string | null;
6846
+ oldId: number | null;
6649
6847
  } | null;
6650
6848
  }[];
6651
6849
  422: {
@@ -6859,6 +7057,7 @@ export declare const app: Elysia<"", {
6859
7057
  createdAt: string;
6860
7058
  updatedAt: string;
6861
7059
  deletedAt: string | null;
7060
+ oldId: number | null;
6862
7061
  }[];
6863
7062
  };
6864
7063
  422: {
@@ -6878,6 +7077,7 @@ export declare const app: Elysia<"", {
6878
7077
  post: {
6879
7078
  body: {
6880
7079
  image?: string | null | undefined;
7080
+ oldId?: number | null | undefined;
6881
7081
  phone?: string | null | undefined;
6882
7082
  address?: string | null | undefined;
6883
7083
  name: string;
@@ -6893,6 +7093,7 @@ export declare const app: Elysia<"", {
6893
7093
  createdAt: string;
6894
7094
  updatedAt: string;
6895
7095
  deletedAt: string | null;
7096
+ oldId: number | null;
6896
7097
  phone: string | null;
6897
7098
  address: string | null;
6898
7099
  };
@@ -6915,6 +7116,7 @@ export declare const app: Elysia<"", {
6915
7116
  body: {
6916
7117
  name?: string | undefined;
6917
7118
  image?: string | null | undefined;
7119
+ oldId?: number | null | undefined;
6918
7120
  phone?: string | null | undefined;
6919
7121
  address?: string | null | undefined;
6920
7122
  };
@@ -6933,6 +7135,7 @@ export declare const app: Elysia<"", {
6933
7135
  createdAt: string;
6934
7136
  updatedAt: string;
6935
7137
  deletedAt: string | null;
7138
+ oldId: number | null;
6936
7139
  };
6937
7140
  404: "Нийлүүлэгч олдсонгүй.";
6938
7141
  422: {
@@ -7009,6 +7212,7 @@ export declare const app: Elysia<"", {
7009
7212
  createdAt: string;
7010
7213
  updatedAt: string;
7011
7214
  deletedAt: string | null;
7215
+ oldId: number | null;
7012
7216
  };
7013
7217
  parent: {
7014
7218
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -7022,6 +7226,7 @@ export declare const app: Elysia<"", {
7022
7226
  createdAt: string;
7023
7227
  updatedAt: string;
7024
7228
  deletedAt: string | null;
7229
+ oldId: number | null;
7025
7230
  } | null;
7026
7231
  totalCount: number;
7027
7232
  }, "totalCount">[];
@@ -7044,6 +7249,7 @@ export declare const app: Elysia<"", {
7044
7249
  put: {
7045
7250
  body: {
7046
7251
  name?: string | undefined;
7252
+ oldId?: number | null | undefined;
7047
7253
  description?: string | null | undefined;
7048
7254
  vehicleKindEnum?: "MAKE" | "MODEL_GROUP" | "MODEL" | undefined;
7049
7255
  parentId?: string | null | undefined;
@@ -7069,6 +7275,7 @@ export declare const app: Elysia<"", {
7069
7275
  createdAt: string;
7070
7276
  updatedAt: string;
7071
7277
  deletedAt: string | null;
7278
+ oldId: number | null;
7072
7279
  };
7073
7280
  404: "Vehicle kind not found";
7074
7281
  422: {