autosync_backend2 1.1.71 → 1.2.2

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 +251 -43
  2. package/dist/index.js +11736 -14302
  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;
@@ -3188,6 +3252,7 @@ export declare const app: Elysia<"", {
3188
3252
  createdAt: string;
3189
3253
  updatedAt: string;
3190
3254
  deletedAt: string | null;
3255
+ oldId: number | null;
3191
3256
  }[];
3192
3257
  422: {
3193
3258
  type: "validation";
@@ -3205,6 +3270,7 @@ export declare const app: Elysia<"", {
3205
3270
  employee: {
3206
3271
  post: {
3207
3272
  body: {
3273
+ oldId?: number | null | undefined;
3208
3274
  amount?: number | undefined;
3209
3275
  employeeId: string;
3210
3276
  cpOrderItemId: string;
@@ -3219,6 +3285,7 @@ export declare const app: Elysia<"", {
3219
3285
  updatedAt: string;
3220
3286
  employeeId: string;
3221
3287
  deletedAt: string | null;
3288
+ oldId: number | null;
3222
3289
  cpOrderItemId: string;
3223
3290
  amount: number;
3224
3291
  };
@@ -3256,6 +3323,7 @@ export declare const app: Elysia<"", {
3256
3323
  createdAt: string;
3257
3324
  updatedAt: string;
3258
3325
  deletedAt: string | null;
3326
+ oldId: number | null;
3259
3327
  };
3260
3328
  404: "Ажилтны мэдээлэл олдсонгүй.";
3261
3329
  422: {
@@ -3310,7 +3378,7 @@ export declare const app: Elysia<"", {
3310
3378
  };
3311
3379
  headers: unknown;
3312
3380
  response: {
3313
- 200: {
3381
+ 200: ({
3314
3382
  item: {
3315
3383
  warehouseId: string;
3316
3384
  productId: string;
@@ -3321,6 +3389,7 @@ export declare const app: Elysia<"", {
3321
3389
  createdAt: string;
3322
3390
  updatedAt: string;
3323
3391
  deletedAt: string | null;
3392
+ oldId: number | null;
3324
3393
  } | null;
3325
3394
  service_kind: {
3326
3395
  serviceKindId: string | null;
@@ -3334,6 +3403,21 @@ export declare const app: Elysia<"", {
3334
3403
  createdAt: string;
3335
3404
  updatedAt: string;
3336
3405
  deletedAt: string | null;
3406
+ oldId: number | null;
3407
+ } | null;
3408
+ employee: {
3409
+ companyId: string;
3410
+ branchId: string | null;
3411
+ firstname: string;
3412
+ lastname: string;
3413
+ regNumber: string | null;
3414
+ email: string | null;
3415
+ phone: string;
3416
+ id: string;
3417
+ createdAt: string;
3418
+ updatedAt: string;
3419
+ deletedAt: string | null;
3420
+ oldId: number | null;
3337
3421
  } | null;
3338
3422
  cp_order_item: {
3339
3423
  cpOrderId: string;
@@ -3348,7 +3432,18 @@ export declare const app: Elysia<"", {
3348
3432
  createdAt: string;
3349
3433
  updatedAt: string;
3350
3434
  deletedAt: string | null;
3435
+ oldId: number | null;
3351
3436
  };
3437
+ cp_order_item_employee: {
3438
+ cpOrderItemId: string;
3439
+ employeeId: string;
3440
+ amount: number;
3441
+ id: string;
3442
+ createdAt: string;
3443
+ updatedAt: string;
3444
+ deletedAt: string | null;
3445
+ oldId: number | null;
3446
+ } | null;
3352
3447
  product: {
3353
3448
  supplierId: string;
3354
3449
  productId: string | null;
@@ -3366,8 +3461,15 @@ export declare const app: Elysia<"", {
3366
3461
  createdAt: string;
3367
3462
  updatedAt: string;
3368
3463
  deletedAt: string | null;
3464
+ oldId: number | null;
3369
3465
  } | null;
3370
- }[];
3466
+ } & {
3467
+ crmCpOrderEmployee: {
3468
+ id: string;
3469
+ employeeName: string;
3470
+ amount: number;
3471
+ }[];
3472
+ })[];
3371
3473
  422: {
3372
3474
  type: "validation";
3373
3475
  on: string;
@@ -3402,6 +3504,7 @@ export declare const app: Elysia<"", {
3402
3504
  createdAt: string;
3403
3505
  updatedAt: string;
3404
3506
  deletedAt: string | null;
3507
+ oldId: number | null;
3405
3508
  priceTotal: number;
3406
3509
  quantity: number;
3407
3510
  priceUnit: number;
@@ -3451,6 +3554,7 @@ export declare const app: Elysia<"", {
3451
3554
  createdAt: string;
3452
3555
  updatedAt: string;
3453
3556
  deletedAt: string | null;
3557
+ oldId: number | null;
3454
3558
  };
3455
3559
  404: "Үйлчилгээ олдсонгүй.";
3456
3560
  422: {
@@ -3518,6 +3622,7 @@ export declare const app: Elysia<"", {
3518
3622
  payment: {
3519
3623
  post: {
3520
3624
  body: {
3625
+ oldId?: number | null | undefined;
3521
3626
  paymentPackageId?: string | null | undefined;
3522
3627
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3523
3628
  cpOrderId: string;
@@ -3534,6 +3639,7 @@ export declare const app: Elysia<"", {
3534
3639
  createdAt: string;
3535
3640
  updatedAt: string;
3536
3641
  deletedAt: string | null;
3642
+ oldId: number | null;
3537
3643
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3538
3644
  cpOrderId: string;
3539
3645
  amount: number;
@@ -3584,6 +3690,7 @@ export declare const app: Elysia<"", {
3584
3690
  storepay: {
3585
3691
  post: {
3586
3692
  body: {
3693
+ oldId?: number | null | undefined;
3587
3694
  paymentPackageId?: string | null | undefined;
3588
3695
  phone: number;
3589
3696
  cpOrderId: string;
@@ -3598,6 +3705,7 @@ export declare const app: Elysia<"", {
3598
3705
  createdAt: string;
3599
3706
  updatedAt: string;
3600
3707
  deletedAt: string | null;
3708
+ oldId: number | null;
3601
3709
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3602
3710
  cpOrderId: string;
3603
3711
  amount: number;
@@ -3657,6 +3765,7 @@ export declare const app: Elysia<"", {
3657
3765
  ubpay: {
3658
3766
  post: {
3659
3767
  body: {
3768
+ oldId?: number | null | undefined;
3660
3769
  paymentPackageId?: string | null | undefined;
3661
3770
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3662
3771
  cpOrderId: string;
@@ -3674,6 +3783,7 @@ export declare const app: Elysia<"", {
3674
3783
  createdAt: string;
3675
3784
  updatedAt: string;
3676
3785
  deletedAt: string | null;
3786
+ oldId: number | null;
3677
3787
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3678
3788
  cpOrderId: string;
3679
3789
  amount: number;
@@ -3763,6 +3873,7 @@ export declare const app: Elysia<"", {
3763
3873
  qpay: {
3764
3874
  post: {
3765
3875
  body: {
3876
+ oldId?: number | null | undefined;
3766
3877
  paymentPackageId?: string | null | undefined;
3767
3878
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3768
3879
  cpOrderId: string;
@@ -3780,6 +3891,7 @@ export declare const app: Elysia<"", {
3780
3891
  createdAt: string;
3781
3892
  updatedAt: string;
3782
3893
  deletedAt: string | null;
3894
+ oldId: number | null;
3783
3895
  state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
3784
3896
  cpOrderId: string;
3785
3897
  amount: number;
@@ -3838,6 +3950,7 @@ export declare const app: Elysia<"", {
3838
3950
  createdAt: string;
3839
3951
  updatedAt: string;
3840
3952
  deletedAt: string | null;
3953
+ oldId: number | null;
3841
3954
  };
3842
3955
  branch: {
3843
3956
  name: string;
@@ -3860,6 +3973,7 @@ export declare const app: Elysia<"", {
3860
3973
  createdAt: string;
3861
3974
  updatedAt: string;
3862
3975
  deletedAt: string | null;
3976
+ oldId: number | null;
3863
3977
  } | null;
3864
3978
  payment: {
3865
3979
  accessToken: string | null;
@@ -3874,6 +3988,7 @@ export declare const app: Elysia<"", {
3874
3988
  createdAt: string;
3875
3989
  updatedAt: string;
3876
3990
  deletedAt: string | null;
3991
+ oldId: number | null;
3877
3992
  };
3878
3993
  }[];
3879
3994
  };
@@ -3931,6 +4046,7 @@ export declare const app: Elysia<"", {
3931
4046
  accessToken: string | null;
3932
4047
  refreshToken: string | null;
3933
4048
  deletedAt: string | null;
4049
+ oldId: number | null;
3934
4050
  expiresIn: number | null;
3935
4051
  refreshExpiresIn: number | null;
3936
4052
  };
@@ -4020,6 +4136,7 @@ export declare const app: Elysia<"", {
4020
4136
  createdAt: string;
4021
4137
  updatedAt: string;
4022
4138
  deletedAt: string | null;
4139
+ oldId: number | null;
4023
4140
  };
4024
4141
  vehicle: {
4025
4142
  customerId: string | null;
@@ -4044,6 +4161,7 @@ export declare const app: Elysia<"", {
4044
4161
  createdAt: string;
4045
4162
  updatedAt: string;
4046
4163
  deletedAt: string | null;
4164
+ oldId: number | null;
4047
4165
  } | null;
4048
4166
  make: {
4049
4167
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -4057,6 +4175,7 @@ export declare const app: Elysia<"", {
4057
4175
  createdAt: string;
4058
4176
  updatedAt: string;
4059
4177
  deletedAt: string | null;
4178
+ oldId: number | null;
4060
4179
  } | null;
4061
4180
  model: {
4062
4181
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -4070,6 +4189,7 @@ export declare const app: Elysia<"", {
4070
4189
  createdAt: string;
4071
4190
  updatedAt: string;
4072
4191
  deletedAt: string | null;
4192
+ oldId: number | null;
4073
4193
  } | null;
4074
4194
  customer: {
4075
4195
  companyId: string | null;
@@ -4082,6 +4202,7 @@ export declare const app: Elysia<"", {
4082
4202
  createdAt: string;
4083
4203
  updatedAt: string;
4084
4204
  deletedAt: string | null;
4205
+ oldId: number | null;
4085
4206
  } | null;
4086
4207
  isDeleteAble: boolean;
4087
4208
  }[];
@@ -4132,6 +4253,7 @@ export declare const app: Elysia<"", {
4132
4253
  createdAt: string;
4133
4254
  updatedAt: string;
4134
4255
  deletedAt: string | null;
4256
+ oldId: number | null;
4135
4257
  };
4136
4258
  vehicle: {
4137
4259
  customerId: string | null;
@@ -4156,6 +4278,7 @@ export declare const app: Elysia<"", {
4156
4278
  createdAt: string;
4157
4279
  updatedAt: string;
4158
4280
  deletedAt: string | null;
4281
+ oldId: number | null;
4159
4282
  } | null;
4160
4283
  make: {
4161
4284
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -4169,6 +4292,7 @@ export declare const app: Elysia<"", {
4169
4292
  createdAt: string;
4170
4293
  updatedAt: string;
4171
4294
  deletedAt: string | null;
4295
+ oldId: number | null;
4172
4296
  } | null;
4173
4297
  model: {
4174
4298
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -4182,6 +4306,7 @@ export declare const app: Elysia<"", {
4182
4306
  createdAt: string;
4183
4307
  updatedAt: string;
4184
4308
  deletedAt: string | null;
4309
+ oldId: number | null;
4185
4310
  } | null;
4186
4311
  customer: {
4187
4312
  companyId: string | null;
@@ -4194,6 +4319,7 @@ export declare const app: Elysia<"", {
4194
4319
  createdAt: string;
4195
4320
  updatedAt: string;
4196
4321
  deletedAt: string | null;
4322
+ oldId: number | null;
4197
4323
  } | null;
4198
4324
  isDeleteAble: boolean;
4199
4325
  }[];
@@ -4228,6 +4354,7 @@ export declare const app: Elysia<"", {
4228
4354
  updatedAt: string;
4229
4355
  companyId: string;
4230
4356
  deletedAt: string | null;
4357
+ oldId: number | null;
4231
4358
  isNoat: boolean | null;
4232
4359
  companyBranchId: string;
4233
4360
  customerId: string | null;
@@ -4297,6 +4424,7 @@ export declare const app: Elysia<"", {
4297
4424
  createdAt: string;
4298
4425
  updatedAt: string;
4299
4426
  deletedAt: string | null;
4427
+ oldId: number | null;
4300
4428
  };
4301
4429
  404: "Засвар үйлчилгээ олдсонгүй.";
4302
4430
  422: {
@@ -4319,6 +4447,7 @@ export declare const app: Elysia<"", {
4319
4447
  body: {
4320
4448
  type?: "Service" | "ProductSell" | undefined;
4321
4449
  companyId?: string | undefined;
4450
+ oldId?: number | null | undefined;
4322
4451
  isNoat?: boolean | null | undefined;
4323
4452
  companyBranchId?: string | undefined;
4324
4453
  customerId?: string | null | undefined;
@@ -4349,6 +4478,7 @@ export declare const app: Elysia<"", {
4349
4478
  createdAt: string;
4350
4479
  updatedAt: string;
4351
4480
  deletedAt: string | null;
4481
+ oldId: number | null;
4352
4482
  };
4353
4483
  404: "Засвар үйлчилгээ олдсонгүй.";
4354
4484
  422: {
@@ -4416,6 +4546,7 @@ export declare const app: Elysia<"", {
4416
4546
  createdAt: string;
4417
4547
  updatedAt: string;
4418
4548
  deletedAt: string | null;
4549
+ oldId: number | null;
4419
4550
  }[];
4420
4551
  totalAmount: number;
4421
4552
  paidAmount: number;
@@ -4435,6 +4566,7 @@ export declare const app: Elysia<"", {
4435
4566
  createdAt: string;
4436
4567
  updatedAt: string;
4437
4568
  deletedAt: string | null;
4569
+ oldId: number | null;
4438
4570
  };
4439
4571
  discount: {
4440
4572
  companyId: string;
@@ -4448,6 +4580,7 @@ export declare const app: Elysia<"", {
4448
4580
  createdAt: string;
4449
4581
  updatedAt: string;
4450
4582
  deletedAt: string | null;
4583
+ oldId: number | null;
4451
4584
  } | null;
4452
4585
  }[];
4453
4586
  };
@@ -4495,6 +4628,7 @@ export declare const app: Elysia<"", {
4495
4628
  createdAt: string;
4496
4629
  updatedAt: string;
4497
4630
  deletedAt: string | null;
4631
+ oldId: number | null;
4498
4632
  };
4499
4633
  spPackageId: string;
4500
4634
  kindId: string;
@@ -4505,6 +4639,7 @@ export declare const app: Elysia<"", {
4505
4639
  createdAt: string;
4506
4640
  updatedAt: string;
4507
4641
  deletedAt: string | null;
4642
+ oldId: number | null;
4508
4643
  }[];
4509
4644
  422: {
4510
4645
  type: "validation";
@@ -4522,6 +4657,7 @@ export declare const app: Elysia<"", {
4522
4657
  service: {
4523
4658
  post: {
4524
4659
  body: {
4660
+ oldId?: number | null | undefined;
4525
4661
  priceTotal?: number | undefined;
4526
4662
  spPackageId: string;
4527
4663
  kindId: string;
@@ -4537,6 +4673,7 @@ export declare const app: Elysia<"", {
4537
4673
  createdAt: string;
4538
4674
  updatedAt: string;
4539
4675
  deletedAt: string | null;
4676
+ oldId: number | null;
4540
4677
  priceTotal: number;
4541
4678
  spPackageId: string;
4542
4679
  kindId: string;
@@ -4560,6 +4697,7 @@ export declare const app: Elysia<"", {
4560
4697
  many: {
4561
4698
  post: {
4562
4699
  body: {
4700
+ oldId?: number | null | undefined;
4563
4701
  priceTotal?: number | undefined;
4564
4702
  spPackageId: string;
4565
4703
  kindId: string;
@@ -4590,6 +4728,7 @@ export declare const app: Elysia<"", {
4590
4728
  ":id": {
4591
4729
  put: {
4592
4730
  body: {
4731
+ oldId?: number | null | undefined;
4593
4732
  priceTotal?: number | undefined;
4594
4733
  spPackageId?: string | undefined;
4595
4734
  kindId?: string | undefined;
@@ -4612,6 +4751,7 @@ export declare const app: Elysia<"", {
4612
4751
  createdAt: string;
4613
4752
  updatedAt: string;
4614
4753
  deletedAt: string | null;
4754
+ oldId: number | null;
4615
4755
  };
4616
4756
  404: "Үйлчилгээ олдсонгүй.";
4617
4757
  422: {
@@ -4684,6 +4824,7 @@ export declare const app: Elysia<"", {
4684
4824
  createdAt: string;
4685
4825
  updatedAt: string;
4686
4826
  deletedAt: string | null;
4827
+ oldId: number | null;
4687
4828
  };
4688
4829
  spPackageId: string;
4689
4830
  companyProductId: string;
@@ -4694,6 +4835,7 @@ export declare const app: Elysia<"", {
4694
4835
  createdAt: string;
4695
4836
  updatedAt: string;
4696
4837
  deletedAt: string | null;
4838
+ oldId: number | null;
4697
4839
  }[];
4698
4840
  422: {
4699
4841
  type: "validation";
@@ -4711,6 +4853,7 @@ export declare const app: Elysia<"", {
4711
4853
  product: {
4712
4854
  post: {
4713
4855
  body: {
4856
+ oldId?: number | null | undefined;
4714
4857
  spPackageId: string;
4715
4858
  quantity: number;
4716
4859
  priceUnit: number;
@@ -4725,6 +4868,7 @@ export declare const app: Elysia<"", {
4725
4868
  createdAt: string;
4726
4869
  updatedAt: string;
4727
4870
  deletedAt: string | null;
4871
+ oldId: number | null;
4728
4872
  priceTotal: number;
4729
4873
  spPackageId: string;
4730
4874
  quantity: number;
@@ -4748,6 +4892,7 @@ export declare const app: Elysia<"", {
4748
4892
  many: {
4749
4893
  post: {
4750
4894
  body: {
4895
+ oldId?: number | null | undefined;
4751
4896
  spPackageId: string;
4752
4897
  quantity: number;
4753
4898
  priceUnit: number;
@@ -4777,6 +4922,7 @@ export declare const app: Elysia<"", {
4777
4922
  ":id": {
4778
4923
  put: {
4779
4924
  body: {
4925
+ oldId?: number | null | undefined;
4780
4926
  priceTotal?: number | undefined;
4781
4927
  spPackageId?: string | undefined;
4782
4928
  quantity?: number | undefined;
@@ -4799,6 +4945,7 @@ export declare const app: Elysia<"", {
4799
4945
  createdAt: string;
4800
4946
  updatedAt: string;
4801
4947
  deletedAt: string | null;
4948
+ oldId: number | null;
4802
4949
  };
4803
4950
  404: "Үйлчилгээний багцын бүтээгдэхүүн олдсонгүй.";
4804
4951
  422: {
@@ -4881,6 +5028,7 @@ export declare const app: Elysia<"", {
4881
5028
  createdAt: string;
4882
5029
  updatedAt: string;
4883
5030
  deletedAt: string | null;
5031
+ oldId: number | null;
4884
5032
  } | null;
4885
5033
  companyId: string;
4886
5034
  companyBranchId: string | null;
@@ -4891,6 +5039,7 @@ export declare const app: Elysia<"", {
4891
5039
  createdAt: string;
4892
5040
  updatedAt: string;
4893
5041
  deletedAt: string | null;
5042
+ oldId: number | null;
4894
5043
  }[];
4895
5044
  };
4896
5045
  422: {
@@ -4909,6 +5058,7 @@ export declare const app: Elysia<"", {
4909
5058
  "sp-package": {
4910
5059
  post: {
4911
5060
  body: {
5061
+ oldId?: number | null | undefined;
4912
5062
  description?: string | null | undefined;
4913
5063
  companyBranchId?: string | null | undefined;
4914
5064
  priceTotal?: number | undefined;
@@ -4925,6 +5075,7 @@ export declare const app: Elysia<"", {
4925
5075
  updatedAt: string;
4926
5076
  companyId: string;
4927
5077
  deletedAt: string | null;
5078
+ oldId: number | null;
4928
5079
  description: string | null;
4929
5080
  companyBranchId: string | null;
4930
5081
  priceTotal: number;
@@ -4947,6 +5098,7 @@ export declare const app: Elysia<"", {
4947
5098
  put: {
4948
5099
  body: {
4949
5100
  name?: string | undefined;
5101
+ oldId?: number | null | undefined;
4950
5102
  description?: string | null | undefined;
4951
5103
  companyBranchId?: string | null | undefined;
4952
5104
  priceTotal?: number | undefined;
@@ -4967,6 +5119,7 @@ export declare const app: Elysia<"", {
4967
5119
  createdAt: string;
4968
5120
  updatedAt: string;
4969
5121
  deletedAt: string | null;
5122
+ oldId: number | null;
4970
5123
  };
4971
5124
  404: "Багцийн үйлчилгээ олдсонгүй.";
4972
5125
  422: {
@@ -5091,6 +5244,7 @@ export declare const app: Elysia<"", {
5091
5244
  createdAt: string;
5092
5245
  updatedAt: string;
5093
5246
  deletedAt: string | null;
5247
+ oldId: number | null;
5094
5248
  };
5095
5249
  make: {
5096
5250
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -5104,6 +5258,7 @@ export declare const app: Elysia<"", {
5104
5258
  createdAt: string;
5105
5259
  updatedAt: string;
5106
5260
  deletedAt: string | null;
5261
+ oldId: number | null;
5107
5262
  } | null;
5108
5263
  model: {
5109
5264
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -5117,6 +5272,7 @@ export declare const app: Elysia<"", {
5117
5272
  createdAt: string;
5118
5273
  updatedAt: string;
5119
5274
  deletedAt: string | null;
5275
+ oldId: number | null;
5120
5276
  } | null;
5121
5277
  }[];
5122
5278
  };
@@ -5151,6 +5307,7 @@ export declare const app: Elysia<"", {
5151
5307
  updatedAt: string;
5152
5308
  companyId: string | null;
5153
5309
  deletedAt: string | null;
5310
+ oldId: number | null;
5154
5311
  customerId: string | null;
5155
5312
  licensePlate: string | null;
5156
5313
  vehicleKindId: string;
@@ -5218,6 +5375,7 @@ export declare const app: Elysia<"", {
5218
5375
  createdAt: string;
5219
5376
  updatedAt: string;
5220
5377
  deletedAt: string | null;
5378
+ oldId: number | null;
5221
5379
  };
5222
5380
  customer: {
5223
5381
  companyId: string | null;
@@ -5230,6 +5388,7 @@ export declare const app: Elysia<"", {
5230
5388
  createdAt: string;
5231
5389
  updatedAt: string;
5232
5390
  deletedAt: string | null;
5391
+ oldId: number | null;
5233
5392
  } | null;
5234
5393
  make: {
5235
5394
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -5243,6 +5402,7 @@ export declare const app: Elysia<"", {
5243
5402
  createdAt: string;
5244
5403
  updatedAt: string;
5245
5404
  deletedAt: string | null;
5405
+ oldId: number | null;
5246
5406
  } | null;
5247
5407
  model: {
5248
5408
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -5256,6 +5416,7 @@ export declare const app: Elysia<"", {
5256
5416
  createdAt: string;
5257
5417
  updatedAt: string;
5258
5418
  deletedAt: string | null;
5419
+ oldId: number | null;
5259
5420
  } | null;
5260
5421
  };
5261
5422
  404: "Тээврийн хэрэгсэл олдсонгүй.";
@@ -5278,6 +5439,7 @@ export declare const app: Elysia<"", {
5278
5439
  put: {
5279
5440
  body: {
5280
5441
  companyId?: string | null | undefined;
5442
+ oldId?: number | null | undefined;
5281
5443
  customerId?: string | null | undefined;
5282
5444
  licensePlate?: string | null | undefined;
5283
5445
  vehicleKindId?: string | undefined;
@@ -5325,6 +5487,7 @@ export declare const app: Elysia<"", {
5325
5487
  createdAt: string;
5326
5488
  updatedAt: string;
5327
5489
  deletedAt: string | null;
5490
+ oldId: number | null;
5328
5491
  };
5329
5492
  404: "Тээврийн хэрэгсэл олдсонгүй.";
5330
5493
  422: {
@@ -5374,6 +5537,7 @@ export declare const app: Elysia<"", {
5374
5537
  createdAt: string;
5375
5538
  updatedAt: string;
5376
5539
  deletedAt: string | null;
5540
+ oldId: number | null;
5377
5541
  };
5378
5542
  404: "Тээврийн хэрэгсэл олдсонгүй.";
5379
5543
  422: {
@@ -5423,6 +5587,7 @@ export declare const app: Elysia<"", {
5423
5587
  createdAt: string;
5424
5588
  updatedAt: string;
5425
5589
  deletedAt: string | null;
5590
+ oldId: number | null;
5426
5591
  };
5427
5592
  vehicles: {
5428
5593
  id: string;
@@ -5430,6 +5595,7 @@ export declare const app: Elysia<"", {
5430
5595
  updatedAt: string;
5431
5596
  companyId: string | null;
5432
5597
  deletedAt: string | null;
5598
+ oldId: number | null;
5433
5599
  customerId: string | null;
5434
5600
  licensePlate: string | null;
5435
5601
  vehicleKindId: string;
@@ -5468,6 +5634,7 @@ export declare const app: Elysia<"", {
5468
5634
  body: {
5469
5635
  email?: string | null | undefined;
5470
5636
  companyId?: string | null | undefined;
5637
+ oldId?: number | null | undefined;
5471
5638
  firstname?: string | null | undefined;
5472
5639
  lastname?: string | null | undefined;
5473
5640
  regNum?: string | null | undefined;
@@ -5484,6 +5651,7 @@ export declare const app: Elysia<"", {
5484
5651
  updatedAt: string;
5485
5652
  companyId: string | null;
5486
5653
  deletedAt: string | null;
5654
+ oldId: number | null;
5487
5655
  firstname: string | null;
5488
5656
  lastname: string | null;
5489
5657
  phoneNumber: string;
@@ -5508,6 +5676,7 @@ export declare const app: Elysia<"", {
5508
5676
  body: {
5509
5677
  email?: string | null | undefined;
5510
5678
  companyId?: string | null | undefined;
5679
+ oldId?: number | null | undefined;
5511
5680
  firstname?: string | null | undefined;
5512
5681
  lastname?: string | null | undefined;
5513
5682
  phoneNumber?: string | undefined;
@@ -5530,6 +5699,7 @@ export declare const app: Elysia<"", {
5530
5699
  createdAt: string;
5531
5700
  updatedAt: string;
5532
5701
  deletedAt: string | null;
5702
+ oldId: number | null;
5533
5703
  };
5534
5704
  404: "Хэрэглэгч олдсонгүй.";
5535
5705
  422: {
@@ -5574,6 +5744,7 @@ export declare const app: Elysia<"", {
5574
5744
  updatedAt: string;
5575
5745
  companyId: string;
5576
5746
  deletedAt: string | null;
5747
+ oldId: number | null;
5577
5748
  description: string | null;
5578
5749
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
5579
5750
  amount: number;
@@ -5585,6 +5756,7 @@ export declare const app: Elysia<"", {
5585
5756
  createdAt: string;
5586
5757
  updatedAt: string;
5587
5758
  deletedAt: string | null;
5759
+ oldId: number | null;
5588
5760
  discountId: string;
5589
5761
  conditionType: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE";
5590
5762
  conditionValue: unknown;
@@ -5607,6 +5779,7 @@ export declare const app: Elysia<"", {
5607
5779
  discount: {
5608
5780
  post: {
5609
5781
  body: {
5782
+ oldId?: number | null | undefined;
5610
5783
  description?: string | null | undefined;
5611
5784
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
5612
5785
  amount?: number | undefined;
@@ -5626,6 +5799,7 @@ export declare const app: Elysia<"", {
5626
5799
  updatedAt: string;
5627
5800
  companyId: string;
5628
5801
  deletedAt: string | null;
5802
+ oldId: number | null;
5629
5803
  description: string | null;
5630
5804
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
5631
5805
  amount: number;
@@ -5651,6 +5825,7 @@ export declare const app: Elysia<"", {
5651
5825
  body: {
5652
5826
  name?: string | undefined;
5653
5827
  companyId?: string | undefined;
5828
+ oldId?: number | null | undefined;
5654
5829
  description?: string | null | undefined;
5655
5830
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
5656
5831
  amount?: number | undefined;
@@ -5675,6 +5850,7 @@ export declare const app: Elysia<"", {
5675
5850
  createdAt: string;
5676
5851
  updatedAt: string;
5677
5852
  deletedAt: string | null;
5853
+ oldId: number | null;
5678
5854
  };
5679
5855
  404: "Хөнгөлөлт олдсонгүй.";
5680
5856
  422: {
@@ -5708,6 +5884,7 @@ export declare const app: Elysia<"", {
5708
5884
  updatedAt: string;
5709
5885
  companyId: string;
5710
5886
  deletedAt: string | null;
5887
+ oldId: number | null;
5711
5888
  description: string | null;
5712
5889
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
5713
5890
  amount: number;
@@ -5733,6 +5910,7 @@ export declare const app: Elysia<"", {
5733
5910
  condition: {
5734
5911
  post: {
5735
5912
  body: {
5913
+ oldId?: number | null | undefined;
5736
5914
  discountId: string;
5737
5915
  conditionType: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE";
5738
5916
  conditionValue: import("drizzle-typebox").Json & ({
@@ -5763,6 +5941,7 @@ export declare const app: Elysia<"", {
5763
5941
  createdAt: string;
5764
5942
  updatedAt: string;
5765
5943
  deletedAt: string | null;
5944
+ oldId: number | null;
5766
5945
  discountId: string;
5767
5946
  conditionType: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE";
5768
5947
  conditionValue: unknown;
@@ -5787,6 +5966,7 @@ export declare const app: Elysia<"", {
5787
5966
  ":id": {
5788
5967
  put: {
5789
5968
  body: {
5969
+ oldId?: number | null | undefined;
5790
5970
  discountId?: string | undefined;
5791
5971
  conditionType?: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE" | undefined;
5792
5972
  conditionValue?: (import("drizzle-typebox").Json & ({
@@ -5822,6 +6002,7 @@ export declare const app: Elysia<"", {
5822
6002
  createdAt: string;
5823
6003
  updatedAt: string;
5824
6004
  deletedAt: string | null;
6005
+ oldId: number | null;
5825
6006
  };
5826
6007
  404: "Хөнгөлөлтийн нөхцөл олдсонгүй.";
5827
6008
  422: {
@@ -5855,6 +6036,7 @@ export declare const app: Elysia<"", {
5855
6036
  createdAt: string;
5856
6037
  updatedAt: string;
5857
6038
  deletedAt: string | null;
6039
+ oldId: number | null;
5858
6040
  discountId: string;
5859
6041
  conditionType: "MIN_TOTAL" | "PRODUCT_CATEGORY" | "CUSTOMER_GROUP" | "PAYMENT_METHOD" | "DATE_RANGE" | "ITEM_QUANTITY" | "COUPON_CODE";
5860
6042
  conditionValue: unknown;
@@ -5879,6 +6061,7 @@ export declare const app: Elysia<"", {
5879
6061
  apply: {
5880
6062
  post: {
5881
6063
  body: {
6064
+ oldId?: number | null | undefined;
5882
6065
  cpOrderItemId?: string | null | undefined;
5883
6066
  discountId?: string | null | undefined;
5884
6067
  note?: string | null | undefined;
@@ -5897,6 +6080,7 @@ export declare const app: Elysia<"", {
5897
6080
  updatedAt: string;
5898
6081
  employeeId: string;
5899
6082
  deletedAt: string | null;
6083
+ oldId: number | null;
5900
6084
  cpOrderId: string;
5901
6085
  cpOrderItemId: string | null;
5902
6086
  discountId: string | null;
@@ -5927,6 +6111,7 @@ export declare const app: Elysia<"", {
5927
6111
  put: {
5928
6112
  body: {
5929
6113
  employeeId?: string | undefined;
6114
+ oldId?: number | null | undefined;
5930
6115
  cpOrderId?: string | undefined;
5931
6116
  cpOrderItemId?: string | null | undefined;
5932
6117
  discountId?: string | null | undefined;
@@ -5956,6 +6141,7 @@ export declare const app: Elysia<"", {
5956
6141
  createdAt: string;
5957
6142
  updatedAt: string;
5958
6143
  deletedAt: string | null;
6144
+ oldId: number | null;
5959
6145
  };
5960
6146
  404: "Хөнгөлөлтийн хэрэглээ олдсонгүй.";
5961
6147
  422: {
@@ -6039,6 +6225,7 @@ export declare const app: Elysia<"", {
6039
6225
  createdAt: string;
6040
6226
  updatedAt: string;
6041
6227
  deletedAt: string | null;
6228
+ oldId: number | null;
6042
6229
  };
6043
6230
  company: {
6044
6231
  id: string;
@@ -6106,6 +6293,7 @@ export declare const app: Elysia<"", {
6106
6293
  createdAt: string;
6107
6294
  updatedAt: string;
6108
6295
  deletedAt: string | null;
6296
+ oldId: number | null;
6109
6297
  };
6110
6298
  vehicle: {
6111
6299
  customerId: string | null;
@@ -6130,6 +6318,7 @@ export declare const app: Elysia<"", {
6130
6318
  createdAt: string;
6131
6319
  updatedAt: string;
6132
6320
  deletedAt: string | null;
6321
+ oldId: number | null;
6133
6322
  };
6134
6323
  employee: {
6135
6324
  firstname: string;
@@ -6177,6 +6366,7 @@ export declare const app: Elysia<"", {
6177
6366
  branchId: string;
6178
6367
  employeeId: string | null;
6179
6368
  deletedAt: string | null;
6369
+ oldId: number | null;
6180
6370
  description: string | null;
6181
6371
  vehicleId: string;
6182
6372
  licensePlate: string;
@@ -6241,6 +6431,7 @@ export declare const app: Elysia<"", {
6241
6431
  createdAt: string;
6242
6432
  updatedAt: string;
6243
6433
  deletedAt: string | null;
6434
+ oldId: number | null;
6244
6435
  };
6245
6436
  404: "Үзлэг олдсонгүй.";
6246
6437
  422: {
@@ -6316,6 +6507,7 @@ export declare const app: Elysia<"", {
6316
6507
  createdAt: string;
6317
6508
  updatedAt: string;
6318
6509
  deletedAt: string | null;
6510
+ oldId: number | null;
6319
6511
  };
6320
6512
  404: "Үзлэг олдсонгүй.";
6321
6513
  422: {
@@ -6406,6 +6598,7 @@ export declare const app: Elysia<"", {
6406
6598
  createdAt: string;
6407
6599
  updatedAt: string;
6408
6600
  deletedAt: string | null;
6601
+ oldId: number | null;
6409
6602
  };
6410
6603
  customer: {
6411
6604
  companyId: string | null;
@@ -6418,6 +6611,7 @@ export declare const app: Elysia<"", {
6418
6611
  createdAt: string;
6419
6612
  updatedAt: string;
6420
6613
  deletedAt: string | null;
6614
+ oldId: number | null;
6421
6615
  } | null;
6422
6616
  vehicle: {
6423
6617
  customerId: string | null;
@@ -6442,6 +6636,7 @@ export declare const app: Elysia<"", {
6442
6636
  createdAt: string;
6443
6637
  updatedAt: string;
6444
6638
  deletedAt: string | null;
6639
+ oldId: number | null;
6445
6640
  } | null;
6446
6641
  vehicleKind: {
6447
6642
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -6455,6 +6650,7 @@ export declare const app: Elysia<"", {
6455
6650
  createdAt: string;
6456
6651
  updatedAt: string;
6457
6652
  deletedAt: string | null;
6653
+ oldId: number | null;
6458
6654
  } | null;
6459
6655
  totalAmount: number;
6460
6656
  paidAmount: number;
@@ -6618,6 +6814,7 @@ export declare const app: Elysia<"", {
6618
6814
  createdAt: string;
6619
6815
  updatedAt: string;
6620
6816
  deletedAt: string | null;
6817
+ oldId: number | null;
6621
6818
  };
6622
6819
  order: {
6623
6820
  companyId: string;
@@ -6634,6 +6831,7 @@ export declare const app: Elysia<"", {
6634
6831
  createdAt: string;
6635
6832
  updatedAt: string;
6636
6833
  deletedAt: string | null;
6834
+ oldId: number | null;
6637
6835
  };
6638
6836
  customer: {
6639
6837
  companyId: string | null;
@@ -6646,6 +6844,7 @@ export declare const app: Elysia<"", {
6646
6844
  createdAt: string;
6647
6845
  updatedAt: string;
6648
6846
  deletedAt: string | null;
6847
+ oldId: number | null;
6649
6848
  } | null;
6650
6849
  }[];
6651
6850
  422: {
@@ -6859,6 +7058,7 @@ export declare const app: Elysia<"", {
6859
7058
  createdAt: string;
6860
7059
  updatedAt: string;
6861
7060
  deletedAt: string | null;
7061
+ oldId: number | null;
6862
7062
  }[];
6863
7063
  };
6864
7064
  422: {
@@ -6878,6 +7078,7 @@ export declare const app: Elysia<"", {
6878
7078
  post: {
6879
7079
  body: {
6880
7080
  image?: string | null | undefined;
7081
+ oldId?: number | null | undefined;
6881
7082
  phone?: string | null | undefined;
6882
7083
  address?: string | null | undefined;
6883
7084
  name: string;
@@ -6893,6 +7094,7 @@ export declare const app: Elysia<"", {
6893
7094
  createdAt: string;
6894
7095
  updatedAt: string;
6895
7096
  deletedAt: string | null;
7097
+ oldId: number | null;
6896
7098
  phone: string | null;
6897
7099
  address: string | null;
6898
7100
  };
@@ -6915,6 +7117,7 @@ export declare const app: Elysia<"", {
6915
7117
  body: {
6916
7118
  name?: string | undefined;
6917
7119
  image?: string | null | undefined;
7120
+ oldId?: number | null | undefined;
6918
7121
  phone?: string | null | undefined;
6919
7122
  address?: string | null | undefined;
6920
7123
  };
@@ -6933,6 +7136,7 @@ export declare const app: Elysia<"", {
6933
7136
  createdAt: string;
6934
7137
  updatedAt: string;
6935
7138
  deletedAt: string | null;
7139
+ oldId: number | null;
6936
7140
  };
6937
7141
  404: "Нийлүүлэгч олдсонгүй.";
6938
7142
  422: {
@@ -7009,6 +7213,7 @@ export declare const app: Elysia<"", {
7009
7213
  createdAt: string;
7010
7214
  updatedAt: string;
7011
7215
  deletedAt: string | null;
7216
+ oldId: number | null;
7012
7217
  };
7013
7218
  parent: {
7014
7219
  vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
@@ -7022,6 +7227,7 @@ export declare const app: Elysia<"", {
7022
7227
  createdAt: string;
7023
7228
  updatedAt: string;
7024
7229
  deletedAt: string | null;
7230
+ oldId: number | null;
7025
7231
  } | null;
7026
7232
  totalCount: number;
7027
7233
  }, "totalCount">[];
@@ -7044,6 +7250,7 @@ export declare const app: Elysia<"", {
7044
7250
  put: {
7045
7251
  body: {
7046
7252
  name?: string | undefined;
7253
+ oldId?: number | null | undefined;
7047
7254
  description?: string | null | undefined;
7048
7255
  vehicleKindEnum?: "MAKE" | "MODEL_GROUP" | "MODEL" | undefined;
7049
7256
  parentId?: string | null | undefined;
@@ -7069,6 +7276,7 @@ export declare const app: Elysia<"", {
7069
7276
  createdAt: string;
7070
7277
  updatedAt: string;
7071
7278
  deletedAt: string | null;
7279
+ oldId: number | null;
7072
7280
  };
7073
7281
  404: "Vehicle kind not found";
7074
7282
  422: {