autosync_backend2 1.2.10 → 1.2.12

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 +27 -82
  2. package/dist/index.js +12472 -3404
  3. package/package.json +6 -5
package/dist/index.d.ts CHANGED
@@ -167,19 +167,7 @@ export declare const app: Elysia<"", {
167
167
  readonly "Network Authentication Required": 511;
168
168
  }[Code] : Code>;
169
169
  }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | {
170
- user: {
171
- id: string;
172
- createdAt: Date;
173
- updatedAt: Date;
174
- email: string;
175
- emailVerified: boolean;
176
- name: string;
177
- image?: string | null | undefined | undefined;
178
- companyId: string;
179
- branchId: string;
180
- kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
181
- employeeId?: string | null | undefined;
182
- };
170
+ user: import("./lib/auth").User;
183
171
  session: {
184
172
  id: string;
185
173
  createdAt: Date;
@@ -336,20 +324,8 @@ export declare const app: Elysia<"", {
336
324
  readonly "Not Extended": 510;
337
325
  readonly "Network Authentication Required": 511;
338
326
  }[Code] : Code>;
339
- }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | {
340
- user: {
341
- id: string;
342
- createdAt: Date;
343
- updatedAt: Date;
344
- email: string;
345
- emailVerified: boolean;
346
- name: string;
347
- image?: string | null | undefined | undefined;
348
- companyId: string;
349
- branchId: string;
350
- kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
351
- employeeId?: string | null | undefined;
352
- };
327
+ }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
328
+ user: import("./lib/auth").User;
353
329
  session: {
354
330
  id: string;
355
331
  createdAt: Date;
@@ -360,7 +336,7 @@ export declare const app: Elysia<"", {
360
336
  ipAddress?: string | null | undefined | undefined;
361
337
  userAgent?: string | null | undefined | undefined;
362
338
  };
363
- } | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403>>;
339
+ }>;
364
340
  };
365
341
  readonly permission: (input: import("./lib/permissions").PermissionCode | import("./lib/permissions").PermissionCode[]) => {
366
342
  readonly resolve: ({ request: { headers } }: {
@@ -507,19 +483,7 @@ export declare const app: Elysia<"", {
507
483
  readonly "Network Authentication Required": 511;
508
484
  }[Code] : Code>;
509
485
  }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
510
- user: {
511
- id: string;
512
- createdAt: Date;
513
- updatedAt: Date;
514
- email: string;
515
- emailVerified: boolean;
516
- name: string;
517
- image?: string | null | undefined | undefined;
518
- companyId: string;
519
- branchId: string;
520
- kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
521
- employeeId?: string | null | undefined;
522
- };
486
+ user: import("./lib/auth").User;
523
487
  session: {
524
488
  id: string;
525
489
  createdAt: Date;
@@ -1030,6 +994,7 @@ export declare const app: Elysia<"", {
1030
994
  warehouseId?: string | undefined;
1031
995
  safetyStock?: number | undefined;
1032
996
  shelfNumber?: string | undefined;
997
+ isSafetyStock?: boolean | undefined;
1033
998
  pagination: {
1034
999
  size: number;
1035
1000
  page: number;
@@ -1047,6 +1012,8 @@ export declare const app: Elysia<"", {
1047
1012
  quantity: number;
1048
1013
  safetyStock: number;
1049
1014
  shelfNumber: string | null;
1015
+ description: string | null;
1016
+ isOrdered: boolean;
1050
1017
  id: string;
1051
1018
  createdAt: string;
1052
1019
  updatedAt: string;
@@ -1102,8 +1069,10 @@ export declare const app: Elysia<"", {
1102
1069
  post: {
1103
1070
  body: {
1104
1071
  oldId?: number | null | undefined;
1072
+ description?: string | null | undefined;
1105
1073
  quantity?: number | undefined;
1106
1074
  shelfNumber?: string | null | undefined;
1075
+ isOrdered?: boolean | undefined;
1107
1076
  productId: string;
1108
1077
  warehouseId: string;
1109
1078
  safetyStock: number;
@@ -1118,11 +1087,13 @@ export declare const app: Elysia<"", {
1118
1087
  updatedAt: string;
1119
1088
  deletedAt: string | null;
1120
1089
  oldId: number | null;
1090
+ description: string | null;
1121
1091
  quantity: number;
1122
1092
  productId: string;
1123
1093
  warehouseId: string;
1124
1094
  safetyStock: number;
1125
1095
  shelfNumber: string | null;
1096
+ isOrdered: boolean;
1126
1097
  };
1127
1098
  422: {
1128
1099
  type: "validation";
@@ -1142,8 +1113,10 @@ export declare const app: Elysia<"", {
1142
1113
  post: {
1143
1114
  body: {
1144
1115
  oldId?: number | null | undefined;
1116
+ description?: string | null | undefined;
1145
1117
  quantity?: number | undefined;
1146
1118
  shelfNumber?: string | null | undefined;
1119
+ isOrdered?: boolean | undefined;
1147
1120
  productId: string;
1148
1121
  warehouseId: string;
1149
1122
  safetyStock: number;
@@ -1235,12 +1208,18 @@ export declare const app: Elysia<"", {
1235
1208
  quantity: number;
1236
1209
  safetyStock: number;
1237
1210
  shelfNumber: string | null;
1211
+ description: string | null;
1212
+ isOrdered: boolean;
1238
1213
  id: string;
1239
1214
  createdAt: string;
1240
1215
  updatedAt: string;
1241
1216
  deletedAt: string | null;
1242
1217
  oldId: number | null;
1243
1218
  } | null;
1219
+ user: {
1220
+ name: string;
1221
+ kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
1222
+ } | null;
1244
1223
  itemId: string;
1245
1224
  productId: string | null;
1246
1225
  transactionType: "IN" | "OUT";
@@ -1302,6 +1281,8 @@ export declare const app: Elysia<"", {
1302
1281
  quantity: number;
1303
1282
  safetyStock: number;
1304
1283
  shelfNumber: string | null;
1284
+ description: string | null;
1285
+ isOrdered: boolean;
1305
1286
  id: string;
1306
1287
  createdAt: string;
1307
1288
  updatedAt: string;
@@ -1329,10 +1310,12 @@ export declare const app: Elysia<"", {
1329
1310
  put: {
1330
1311
  body: {
1331
1312
  oldId?: number | null | undefined;
1313
+ description?: string | null | undefined;
1332
1314
  productId?: string | undefined;
1333
1315
  warehouseId?: string | undefined;
1334
1316
  safetyStock?: number | undefined;
1335
1317
  shelfNumber?: string | null | undefined;
1318
+ isOrdered?: boolean | undefined;
1336
1319
  };
1337
1320
  params: {
1338
1321
  id: string;
@@ -1346,6 +1329,8 @@ export declare const app: Elysia<"", {
1346
1329
  quantity: number;
1347
1330
  safetyStock: number;
1348
1331
  shelfNumber: string | null;
1332
+ description: string | null;
1333
+ isOrdered: boolean;
1349
1334
  id: string;
1350
1335
  createdAt: string;
1351
1336
  updatedAt: string;
@@ -2770,47 +2755,6 @@ export declare const app: Elysia<"", {
2770
2755
  query: unknown;
2771
2756
  headers: unknown;
2772
2757
  response: {
2773
- 200: {
2774
- company: Omit<{
2775
- name: string;
2776
- id: string;
2777
- email: string;
2778
- createdAt: string;
2779
- updatedAt: string;
2780
- deletedAt: string | null;
2781
- oldId: number | null;
2782
- regNumber: string;
2783
- phone: string;
2784
- serviceName: string;
2785
- logoUrl: string;
2786
- province: string | null;
2787
- district: string | null;
2788
- khoroo: string | null;
2789
- street: string | null;
2790
- socialUrls: string[] | null;
2791
- ceoName: string | null;
2792
- webUrl: string | null;
2793
- googleMapUrl: string | null;
2794
- isContract: boolean;
2795
- isNoat: boolean;
2796
- isNexus: boolean;
2797
- isActive: boolean;
2798
- branchCount: number;
2799
- } & {
2800
- totalCount: number;
2801
- }, "totalCount">;
2802
- id: string;
2803
- createdAt: Date;
2804
- updatedAt: Date;
2805
- email: string;
2806
- emailVerified: boolean;
2807
- name: string;
2808
- image?: string | null | undefined | undefined;
2809
- companyId: string;
2810
- branchId: string;
2811
- kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
2812
- employeeId?: string | null | undefined;
2813
- };
2814
2758
  401: "Session not found";
2815
2759
  };
2816
2760
  };
@@ -3839,6 +3783,7 @@ export declare const app: Elysia<"", {
3839
3783
  type?: "Service" | "ProductSell" | undefined;
3840
3784
  id?: string | undefined;
3841
3785
  createdAt?: string | undefined;
3786
+ oldId?: number | undefined;
3842
3787
  phone?: string | undefined;
3843
3788
  vehicleId?: string | undefined;
3844
3789
  licensePlate?: string | undefined;