autosync_backend2 1.2.11 → 1.2.13

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 +58 -0
  2. package/dist/index.js +2207 -10814
  3. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -994,6 +994,7 @@ export declare const app: Elysia<"", {
994
994
  warehouseId?: string | undefined;
995
995
  safetyStock?: number | undefined;
996
996
  shelfNumber?: string | undefined;
997
+ isSafetyStock?: boolean | undefined;
997
998
  pagination: {
998
999
  size: number;
999
1000
  page: number;
@@ -1011,6 +1012,8 @@ export declare const app: Elysia<"", {
1011
1012
  quantity: number;
1012
1013
  safetyStock: number;
1013
1014
  shelfNumber: string | null;
1015
+ description: string | null;
1016
+ isOrdered: boolean;
1014
1017
  id: string;
1015
1018
  createdAt: string;
1016
1019
  updatedAt: string;
@@ -1061,13 +1064,31 @@ export declare const app: Elysia<"", {
1061
1064
  };
1062
1065
  };
1063
1066
  };
1067
+ } & {
1068
+ item: {
1069
+ sos: {
1070
+ get: {
1071
+ body: unknown;
1072
+ params: {};
1073
+ query: unknown;
1074
+ headers: unknown;
1075
+ response: {
1076
+ 200: {
1077
+ count: number;
1078
+ };
1079
+ };
1080
+ };
1081
+ };
1082
+ };
1064
1083
  } & {
1065
1084
  item: {
1066
1085
  post: {
1067
1086
  body: {
1068
1087
  oldId?: number | null | undefined;
1088
+ description?: string | null | undefined;
1069
1089
  quantity?: number | undefined;
1070
1090
  shelfNumber?: string | null | undefined;
1091
+ isOrdered?: boolean | undefined;
1071
1092
  productId: string;
1072
1093
  warehouseId: string;
1073
1094
  safetyStock: number;
@@ -1082,11 +1103,13 @@ export declare const app: Elysia<"", {
1082
1103
  updatedAt: string;
1083
1104
  deletedAt: string | null;
1084
1105
  oldId: number | null;
1106
+ description: string | null;
1085
1107
  quantity: number;
1086
1108
  productId: string;
1087
1109
  warehouseId: string;
1088
1110
  safetyStock: number;
1089
1111
  shelfNumber: string | null;
1112
+ isOrdered: boolean;
1090
1113
  };
1091
1114
  422: {
1092
1115
  type: "validation";
@@ -1106,8 +1129,10 @@ export declare const app: Elysia<"", {
1106
1129
  post: {
1107
1130
  body: {
1108
1131
  oldId?: number | null | undefined;
1132
+ description?: string | null | undefined;
1109
1133
  quantity?: number | undefined;
1110
1134
  shelfNumber?: string | null | undefined;
1135
+ isOrdered?: boolean | undefined;
1111
1136
  productId: string;
1112
1137
  warehouseId: string;
1113
1138
  safetyStock: number;
@@ -1199,6 +1224,8 @@ export declare const app: Elysia<"", {
1199
1224
  quantity: number;
1200
1225
  safetyStock: number;
1201
1226
  shelfNumber: string | null;
1227
+ description: string | null;
1228
+ isOrdered: boolean;
1202
1229
  id: string;
1203
1230
  createdAt: string;
1204
1231
  updatedAt: string;
@@ -1270,6 +1297,8 @@ export declare const app: Elysia<"", {
1270
1297
  quantity: number;
1271
1298
  safetyStock: number;
1272
1299
  shelfNumber: string | null;
1300
+ description: string | null;
1301
+ isOrdered: boolean;
1273
1302
  id: string;
1274
1303
  createdAt: string;
1275
1304
  updatedAt: string;
@@ -1297,10 +1326,12 @@ export declare const app: Elysia<"", {
1297
1326
  put: {
1298
1327
  body: {
1299
1328
  oldId?: number | null | undefined;
1329
+ description?: string | null | undefined;
1300
1330
  productId?: string | undefined;
1301
1331
  warehouseId?: string | undefined;
1302
1332
  safetyStock?: number | undefined;
1303
1333
  shelfNumber?: string | null | undefined;
1334
+ isOrdered?: boolean | undefined;
1304
1335
  };
1305
1336
  params: {
1306
1337
  id: string;
@@ -1314,6 +1345,8 @@ export declare const app: Elysia<"", {
1314
1345
  quantity: number;
1315
1346
  safetyStock: number;
1316
1347
  shelfNumber: string | null;
1348
+ description: string | null;
1349
+ isOrdered: boolean;
1317
1350
  id: string;
1318
1351
  createdAt: string;
1319
1352
  updatedAt: string;
@@ -2738,6 +2771,31 @@ export declare const app: Elysia<"", {
2738
2771
  query: unknown;
2739
2772
  headers: unknown;
2740
2773
  response: {
2774
+ 200: {
2775
+ company: {
2776
+ name: string;
2777
+ id: string;
2778
+ email: string;
2779
+ regNumber: string;
2780
+ phone: string;
2781
+ logoUrl: string;
2782
+ province: string | null;
2783
+ district: string | null;
2784
+ khoroo: string | null;
2785
+ street: string | null;
2786
+ } | undefined;
2787
+ id: string;
2788
+ createdAt: Date;
2789
+ updatedAt: Date;
2790
+ email: string;
2791
+ emailVerified: boolean;
2792
+ name: string;
2793
+ image?: string | null | undefined;
2794
+ companyId: string;
2795
+ branchId: string;
2796
+ kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
2797
+ employeeId?: string | null | undefined;
2798
+ };
2741
2799
  401: "Session not found";
2742
2800
  };
2743
2801
  };