autosync_backend2 1.2.17 → 1.2.19

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 +246 -8
  2. package/dist/index.js +540 -114
  3. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -608,6 +608,7 @@ export declare const app: Elysia<"", {
608
608
  alias: string | null;
609
609
  companyId: string;
610
610
  type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор";
611
+ quantityUnit: number;
611
612
  id: string;
612
613
  createdAt: string;
613
614
  updatedAt: string;
@@ -651,6 +652,7 @@ export declare const app: Elysia<"", {
651
652
  barCode?: string | null | undefined;
652
653
  oen?: string | null | undefined;
653
654
  alias?: string | null | undefined;
655
+ quantityUnit?: number | undefined;
654
656
  name: string;
655
657
  supplierId: string;
656
658
  priceSell: number;
@@ -679,6 +681,7 @@ export declare const app: Elysia<"", {
679
681
  oen: string | null;
680
682
  partNumber: string;
681
683
  alias: string | null;
684
+ quantityUnit: number;
682
685
  };
683
686
  401: "Session not found";
684
687
  422: {
@@ -705,6 +708,7 @@ export declare const app: Elysia<"", {
705
708
  barCode?: string | null | undefined;
706
709
  oen?: string | null | undefined;
707
710
  alias?: string | null | undefined;
711
+ quantityUnit?: number | undefined;
708
712
  name: string;
709
713
  supplierId: string;
710
714
  priceSell: number;
@@ -785,6 +789,7 @@ export declare const app: Elysia<"", {
785
789
  oen?: string | null | undefined;
786
790
  partNumber?: string | undefined;
787
791
  alias?: string | null | undefined;
792
+ quantityUnit?: number | undefined;
788
793
  };
789
794
  params: {
790
795
  id: string;
@@ -805,6 +810,7 @@ export declare const app: Elysia<"", {
805
810
  alias: string | null;
806
811
  companyId: string;
807
812
  type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор";
813
+ quantityUnit: number;
808
814
  id: string;
809
815
  createdAt: string;
810
816
  updatedAt: string;
@@ -1011,7 +1017,6 @@ export declare const app: Elysia<"", {
1011
1017
  warehouseId: string;
1012
1018
  productId: string;
1013
1019
  quantity: number;
1014
- quantityUnit: number;
1015
1020
  safetyStock: number;
1016
1021
  shelfNumber: string | null;
1017
1022
  description: string | null;
@@ -1046,6 +1051,7 @@ export declare const app: Elysia<"", {
1046
1051
  alias: string | null;
1047
1052
  companyId: string;
1048
1053
  type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор";
1054
+ quantityUnit: number;
1049
1055
  id: string;
1050
1056
  createdAt: string;
1051
1057
  updatedAt: string;
@@ -1089,7 +1095,6 @@ export declare const app: Elysia<"", {
1089
1095
  oldId?: number | null | undefined;
1090
1096
  description?: string | null | undefined;
1091
1097
  quantity?: number | undefined;
1092
- quantityUnit?: number | undefined;
1093
1098
  shelfNumber?: string | null | undefined;
1094
1099
  isOrdered?: boolean | undefined;
1095
1100
  productId: string;
@@ -1110,7 +1115,6 @@ export declare const app: Elysia<"", {
1110
1115
  quantity: number;
1111
1116
  productId: string;
1112
1117
  warehouseId: string;
1113
- quantityUnit: number;
1114
1118
  safetyStock: number;
1115
1119
  shelfNumber: string | null;
1116
1120
  isOrdered: boolean;
@@ -1135,7 +1139,6 @@ export declare const app: Elysia<"", {
1135
1139
  oldId?: number | null | undefined;
1136
1140
  description?: string | null | undefined;
1137
1141
  quantity?: number | undefined;
1138
- quantityUnit?: number | undefined;
1139
1142
  shelfNumber?: string | null | undefined;
1140
1143
  isOrdered?: boolean | undefined;
1141
1144
  productId: string;
@@ -1217,6 +1220,7 @@ export declare const app: Elysia<"", {
1217
1220
  alias: string | null;
1218
1221
  companyId: string;
1219
1222
  type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор";
1223
+ quantityUnit: number;
1220
1224
  id: string;
1221
1225
  createdAt: string;
1222
1226
  updatedAt: string;
@@ -1227,7 +1231,6 @@ export declare const app: Elysia<"", {
1227
1231
  warehouseId: string;
1228
1232
  productId: string;
1229
1233
  quantity: number;
1230
- quantityUnit: number;
1231
1234
  safetyStock: number;
1232
1235
  shelfNumber: string | null;
1233
1236
  description: string | null;
@@ -1301,7 +1304,6 @@ export declare const app: Elysia<"", {
1301
1304
  warehouseId: string;
1302
1305
  productId: string;
1303
1306
  quantity: number;
1304
- quantityUnit: number;
1305
1307
  safetyStock: number;
1306
1308
  shelfNumber: string | null;
1307
1309
  description: string | null;
@@ -1337,7 +1339,6 @@ export declare const app: Elysia<"", {
1337
1339
  description?: string | null | undefined;
1338
1340
  productId?: string | undefined;
1339
1341
  warehouseId?: string | undefined;
1340
- quantityUnit?: number | undefined;
1341
1342
  safetyStock?: number | undefined;
1342
1343
  shelfNumber?: string | null | undefined;
1343
1344
  isOrdered?: boolean | undefined;
@@ -1352,7 +1353,6 @@ export declare const app: Elysia<"", {
1352
1353
  warehouseId: string;
1353
1354
  productId: string;
1354
1355
  quantity: number;
1355
- quantityUnit: number;
1356
1356
  safetyStock: number;
1357
1357
  shelfNumber: string | null;
1358
1358
  description: string | null;
@@ -3144,6 +3144,7 @@ export declare const app: Elysia<"", {
3144
3144
  alias: string | null;
3145
3145
  companyId: string;
3146
3146
  type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор";
3147
+ quantityUnit: number;
3147
3148
  id: string;
3148
3149
  createdAt: string;
3149
3150
  updatedAt: string;
@@ -3843,6 +3844,7 @@ export declare const app: Elysia<"", {
3843
3844
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
3844
3845
  timeCompleted?: string | undefined;
3845
3846
  model?: string | undefined;
3847
+ isPaid?: boolean | undefined;
3846
3848
  pagination: {
3847
3849
  size: number;
3848
3850
  page: number;
@@ -4577,6 +4579,7 @@ export declare const app: Elysia<"", {
4577
4579
  alias: string | null;
4578
4580
  companyId: string;
4579
4581
  type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор";
4582
+ quantityUnit: number;
4580
4583
  id: string;
4581
4584
  createdAt: string;
4582
4585
  updatedAt: string;
@@ -6408,6 +6411,70 @@ export declare const app: Elysia<"", {
6408
6411
  };
6409
6412
  };
6410
6413
  };
6414
+ } & {
6415
+ inspection: {
6416
+ admin: {
6417
+ get: {
6418
+ body: {};
6419
+ params: {};
6420
+ query: {
6421
+ companyId?: string | undefined;
6422
+ pagination: {
6423
+ size: number;
6424
+ page: number;
6425
+ };
6426
+ };
6427
+ headers: {};
6428
+ response: {
6429
+ 200: {
6430
+ totalCount: number;
6431
+ totalPage: number;
6432
+ result: {
6433
+ company: {
6434
+ id: string;
6435
+ name: string;
6436
+ serviceName: string;
6437
+ logoUrl: string;
6438
+ } | null;
6439
+ vehicle: {
6440
+ licensePlate: string | null;
6441
+ vin: string | null;
6442
+ model: string | null;
6443
+ };
6444
+ employee: {
6445
+ firstname: string;
6446
+ lastname: string;
6447
+ } | null;
6448
+ inspection: {
6449
+ inspection: {
6450
+ type: string;
6451
+ values: {
6452
+ description: string;
6453
+ question: string;
6454
+ answer: string;
6455
+ }[];
6456
+ }[] | null;
6457
+ createdAt: string;
6458
+ expireAt: Date;
6459
+ status: "CREATED" | "APPROVED" | "CANCELLED";
6460
+ };
6461
+ totalCount: number;
6462
+ }[];
6463
+ };
6464
+ 401: "Session not found";
6465
+ 422: {
6466
+ type: "validation";
6467
+ on: string;
6468
+ summary?: string;
6469
+ message?: string;
6470
+ found?: unknown;
6471
+ property?: string;
6472
+ expected?: string;
6473
+ };
6474
+ };
6475
+ };
6476
+ };
6477
+ };
6411
6478
  } & {
6412
6479
  inspection: {
6413
6480
  ":id": {
@@ -7366,6 +7433,177 @@ export declare const app: Elysia<"", {
7366
7433
  product: {};
7367
7434
  };
7368
7435
  };
7436
+ } & {
7437
+ api: {
7438
+ fleet: {
7439
+ inspection: {
7440
+ "field-group": {};
7441
+ } & {
7442
+ "field-group": {
7443
+ get: {
7444
+ body: {};
7445
+ params: {};
7446
+ query: {
7447
+ name?: string | undefined;
7448
+ code?: string | undefined;
7449
+ pagination: {
7450
+ size: number;
7451
+ page: number;
7452
+ };
7453
+ };
7454
+ headers: {};
7455
+ response: {
7456
+ 200: {
7457
+ totalCount: number;
7458
+ totalPage: number;
7459
+ result: {
7460
+ totalCount: number;
7461
+ code: string | null;
7462
+ name: string;
7463
+ description: string | null;
7464
+ id: string;
7465
+ createdAt: string;
7466
+ updatedAt: string;
7467
+ deletedAt: string | null;
7468
+ oldId: number | null;
7469
+ }[];
7470
+ };
7471
+ 401: "Session not found";
7472
+ 422: {
7473
+ type: "validation";
7474
+ on: string;
7475
+ summary?: string;
7476
+ message?: string;
7477
+ found?: unknown;
7478
+ property?: string;
7479
+ expected?: string;
7480
+ };
7481
+ };
7482
+ };
7483
+ };
7484
+ } & {
7485
+ "field-group": {
7486
+ post: {
7487
+ body: {
7488
+ code?: string | null | undefined;
7489
+ oldId?: number | null | undefined;
7490
+ description?: string | null | undefined;
7491
+ name: string;
7492
+ };
7493
+ params: {};
7494
+ query: unknown;
7495
+ headers: unknown;
7496
+ response: {
7497
+ 422: {
7498
+ type: "validation";
7499
+ on: string;
7500
+ summary?: string;
7501
+ message?: string;
7502
+ found?: unknown;
7503
+ property?: string;
7504
+ expected?: string;
7505
+ };
7506
+ };
7507
+ };
7508
+ };
7509
+ } & {
7510
+ "field-group": {
7511
+ ":id": {
7512
+ put: {
7513
+ body: {
7514
+ name?: string | undefined;
7515
+ code?: string | null | undefined;
7516
+ oldId?: number | null | undefined;
7517
+ description?: string | null | undefined;
7518
+ };
7519
+ params: {
7520
+ id: string;
7521
+ };
7522
+ query: unknown;
7523
+ headers: unknown;
7524
+ response: {
7525
+ 422: {
7526
+ type: "validation";
7527
+ on: string;
7528
+ summary?: string;
7529
+ message?: string;
7530
+ found?: unknown;
7531
+ property?: string;
7532
+ expected?: string;
7533
+ };
7534
+ };
7535
+ };
7536
+ };
7537
+ };
7538
+ } & {
7539
+ "field-group": {
7540
+ ":id": {
7541
+ delete: {
7542
+ body: unknown;
7543
+ params: {
7544
+ id: string;
7545
+ };
7546
+ query: unknown;
7547
+ headers: unknown;
7548
+ response: {
7549
+ 422: {
7550
+ type: "validation";
7551
+ on: string;
7552
+ summary?: string;
7553
+ message?: string;
7554
+ found?: unknown;
7555
+ property?: string;
7556
+ expected?: string;
7557
+ };
7558
+ };
7559
+ };
7560
+ };
7561
+ };
7562
+ } & {
7563
+ "field-group": {
7564
+ ":id": {
7565
+ field: {
7566
+ get: {
7567
+ body: unknown;
7568
+ params: {
7569
+ id: string;
7570
+ };
7571
+ query: unknown;
7572
+ headers: unknown;
7573
+ response: {
7574
+ 200: {
7575
+ groupId: string;
7576
+ code: string | null;
7577
+ description: string | null;
7578
+ version: string | null;
7579
+ isActive: boolean;
7580
+ metadata: unknown;
7581
+ required: boolean;
7582
+ fieldGroup: string | null;
7583
+ sortIndex: number | null;
7584
+ id: string;
7585
+ createdAt: string;
7586
+ updatedAt: string;
7587
+ deletedAt: string | null;
7588
+ oldId: number | null;
7589
+ }[];
7590
+ 422: {
7591
+ type: "validation";
7592
+ on: string;
7593
+ summary?: string;
7594
+ message?: string;
7595
+ found?: unknown;
7596
+ property?: string;
7597
+ expected?: string;
7598
+ };
7599
+ };
7600
+ };
7601
+ };
7602
+ };
7603
+ };
7604
+ };
7605
+ };
7606
+ };
7369
7607
  }, {
7370
7608
  derive: {};
7371
7609
  resolve: {};