autosync_backend2 1.2.23 → 1.2.25

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 +202 -0
  2. package/dist/index.js +406 -239
  3. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1021,6 +1021,7 @@ export declare const app: Elysia<"", {
1021
1021
  shelfNumber: string | null;
1022
1022
  description: string | null;
1023
1023
  isOrdered: boolean;
1024
+ order: number;
1024
1025
  id: string;
1025
1026
  createdAt: string;
1026
1027
  updatedAt: string;
@@ -1097,6 +1098,7 @@ export declare const app: Elysia<"", {
1097
1098
  quantity?: number | undefined;
1098
1099
  shelfNumber?: string | null | undefined;
1099
1100
  isOrdered?: boolean | undefined;
1101
+ order?: number | undefined;
1100
1102
  productId: string;
1101
1103
  warehouseId: string;
1102
1104
  safetyStock: number;
@@ -1118,6 +1120,7 @@ export declare const app: Elysia<"", {
1118
1120
  safetyStock: number;
1119
1121
  shelfNumber: string | null;
1120
1122
  isOrdered: boolean;
1123
+ order: number;
1121
1124
  };
1122
1125
  422: {
1123
1126
  type: "validation";
@@ -1141,6 +1144,7 @@ export declare const app: Elysia<"", {
1141
1144
  quantity?: number | undefined;
1142
1145
  shelfNumber?: string | null | undefined;
1143
1146
  isOrdered?: boolean | undefined;
1147
+ order?: number | undefined;
1144
1148
  productId: string;
1145
1149
  warehouseId: string;
1146
1150
  safetyStock: number;
@@ -1235,6 +1239,7 @@ export declare const app: Elysia<"", {
1235
1239
  shelfNumber: string | null;
1236
1240
  description: string | null;
1237
1241
  isOrdered: boolean;
1242
+ order: number;
1238
1243
  id: string;
1239
1244
  createdAt: string;
1240
1245
  updatedAt: string;
@@ -1308,6 +1313,7 @@ export declare const app: Elysia<"", {
1308
1313
  shelfNumber: string | null;
1309
1314
  description: string | null;
1310
1315
  isOrdered: boolean;
1316
+ order: number;
1311
1317
  id: string;
1312
1318
  createdAt: string;
1313
1319
  updatedAt: string;
@@ -1342,6 +1348,7 @@ export declare const app: Elysia<"", {
1342
1348
  safetyStock?: number | undefined;
1343
1349
  shelfNumber?: string | null | undefined;
1344
1350
  isOrdered?: boolean | undefined;
1351
+ order?: number | undefined;
1345
1352
  };
1346
1353
  params: {
1347
1354
  id: string;
@@ -1357,6 +1364,7 @@ export declare const app: Elysia<"", {
1357
1364
  shelfNumber: string | null;
1358
1365
  description: string | null;
1359
1366
  isOrdered: boolean;
1367
+ order: number;
1360
1368
  id: string;
1361
1369
  createdAt: string;
1362
1370
  updatedAt: string;
@@ -3852,6 +3860,99 @@ export declare const app: Elysia<"", {
3852
3860
  };
3853
3861
  headers: unknown;
3854
3862
  response: {
3863
+ 200: {
3864
+ totalCount: number;
3865
+ totalPage: number;
3866
+ result: {
3867
+ order: {
3868
+ companyId: string;
3869
+ companyBranchId: string;
3870
+ customerId: string | null;
3871
+ vehicleId: string | null;
3872
+ orderId: string;
3873
+ state: "CREATED" | "PROGRESSING" | "COMPLETE";
3874
+ isNoat: boolean | null;
3875
+ timeCompleted: string | null;
3876
+ km: number;
3877
+ type: "Service" | "ProductSell";
3878
+ id: string;
3879
+ createdAt: string;
3880
+ updatedAt: string;
3881
+ deletedAt: string | null;
3882
+ oldId: number | null;
3883
+ };
3884
+ vehicle: {
3885
+ customerId: string | null;
3886
+ vehicleKindId: string;
3887
+ vin: string | null;
3888
+ licensePlate: string | null;
3889
+ color: string | null;
3890
+ engineCc: string | null;
3891
+ cylinder: string | null;
3892
+ gasType: string | null;
3893
+ transmissionType: string | null;
3894
+ vehicleType: string | null;
3895
+ yearManufacture: number | null;
3896
+ yearImport: number | null;
3897
+ steering: string | null;
3898
+ engineCode: string | null;
3899
+ transmissionCode: string | null;
3900
+ driveTrain: string | null;
3901
+ km: number;
3902
+ customData: unknown;
3903
+ companyId: string | null;
3904
+ id: string;
3905
+ createdAt: string;
3906
+ updatedAt: string;
3907
+ deletedAt: string | null;
3908
+ oldId: number | null;
3909
+ } | null;
3910
+ make: {
3911
+ vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
3912
+ parentId: string | null;
3913
+ name: string;
3914
+ description: string | null;
3915
+ yearStart: number | null;
3916
+ yearEnd: number | null;
3917
+ imagePath: string | null;
3918
+ id: string;
3919
+ createdAt: string;
3920
+ updatedAt: string;
3921
+ deletedAt: string | null;
3922
+ oldId: number | null;
3923
+ } | null;
3924
+ model: {
3925
+ vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
3926
+ parentId: string | null;
3927
+ name: string;
3928
+ description: string | null;
3929
+ yearStart: number | null;
3930
+ yearEnd: number | null;
3931
+ imagePath: string | null;
3932
+ id: string;
3933
+ createdAt: string;
3934
+ updatedAt: string;
3935
+ deletedAt: string | null;
3936
+ oldId: number | null;
3937
+ } | null;
3938
+ customer: {
3939
+ companyId: string | null;
3940
+ firstname: string | null;
3941
+ lastname: string | null;
3942
+ phoneNumber: string;
3943
+ email: string | null;
3944
+ regNum: string | null;
3945
+ id: string;
3946
+ createdAt: string;
3947
+ updatedAt: string;
3948
+ deletedAt: string | null;
3949
+ oldId: number | null;
3950
+ } | null;
3951
+ isDeleteAble: unknown;
3952
+ totalAmount: number;
3953
+ paidAmount: number;
3954
+ }[];
3955
+ };
3855
3956
  401: "Session not found";
3856
3957
  422: {
3857
3958
  type: "validation";
@@ -7049,8 +7150,12 @@ export declare const app: Elysia<"", {
7049
7150
  employeeId?: string | undefined;
7050
7151
  phoneNumber?: string | undefined;
7051
7152
  licensePlate?: string | undefined;
7153
+ partNumber?: string | undefined;
7154
+ productName?: string | undefined;
7052
7155
  startDate?: string | undefined;
7053
7156
  endDate?: string | undefined;
7157
+ orderType?: "Service" | "ProductSell" | undefined;
7158
+ serviceKindName?: string | undefined;
7054
7159
  pagination: {
7055
7160
  size: number;
7056
7161
  page: number;
@@ -8038,6 +8143,103 @@ export declare const app: Elysia<"", {
8038
8143
  };
8039
8144
  };
8040
8145
  };
8146
+ } & {
8147
+ inspection: {};
8148
+ } & {
8149
+ inspection: {
8150
+ get: {
8151
+ body: unknown;
8152
+ params: {};
8153
+ query: {
8154
+ state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
8155
+ templateId?: string | undefined;
8156
+ machineId?: string | undefined;
8157
+ startDate?: string | undefined;
8158
+ endDate?: string | undefined;
8159
+ pagination: {
8160
+ size: number;
8161
+ page: number;
8162
+ };
8163
+ };
8164
+ headers: unknown;
8165
+ response: {
8166
+ 200: {
8167
+ totalCount: number;
8168
+ totalPage: number;
8169
+ result: Omit<{
8170
+ inspection: {
8171
+ machineId: string;
8172
+ templateId: string;
8173
+ employeeInspectedId: string;
8174
+ userInspectedId: string;
8175
+ hours: number | null;
8176
+ mileageKm: number | null;
8177
+ state: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED";
8178
+ stateResult: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null;
8179
+ timeScheduled: Date;
8180
+ timeStarted: Date;
8181
+ timeCompleted: Date;
8182
+ note: string | null;
8183
+ id: string;
8184
+ createdAt: string;
8185
+ updatedAt: string;
8186
+ deletedAt: string | null;
8187
+ oldId: number | null;
8188
+ };
8189
+ totalCount: number;
8190
+ template: {
8191
+ name: string;
8192
+ } | null;
8193
+ }, "totalCount">[];
8194
+ };
8195
+ 401: "Session not found";
8196
+ 422: {
8197
+ type: "validation";
8198
+ on: string;
8199
+ summary?: string;
8200
+ message?: string;
8201
+ found?: unknown;
8202
+ property?: string;
8203
+ expected?: string;
8204
+ };
8205
+ };
8206
+ };
8207
+ };
8208
+ } & {
8209
+ inspection: {
8210
+ post: {
8211
+ body: {
8212
+ oldId?: number | null | undefined;
8213
+ state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
8214
+ note?: string | null | undefined;
8215
+ hours?: number | null | undefined;
8216
+ mileageKm?: number | null | undefined;
8217
+ stateResult?: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null | undefined;
8218
+ timeCompleted: Date;
8219
+ templateId: string;
8220
+ machineId: string;
8221
+ employeeInspectedId: string;
8222
+ userInspectedId: string;
8223
+ timeScheduled: Date;
8224
+ timeStarted: Date;
8225
+ };
8226
+ params: {};
8227
+ query: unknown;
8228
+ headers: unknown;
8229
+ response: {
8230
+ 401: "Session not found";
8231
+ 422: {
8232
+ type: "validation";
8233
+ on: string;
8234
+ summary?: string;
8235
+ message?: string;
8236
+ found?: unknown;
8237
+ property?: string;
8238
+ expected?: string;
8239
+ };
8240
+ };
8241
+ };
8242
+ };
8041
8243
  };
8042
8244
  };
8043
8245
  }, {