storemw-core-api 1.0.169 → 1.0.171

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 (166) hide show
  1. package/dist/app.js +20 -2
  2. package/dist/app.js.map +1 -1
  3. package/dist/controllers/access_control/accessControlRoleController.js +5 -1
  4. package/dist/controllers/access_control/accessControlRoleController.js.map +1 -1
  5. package/dist/controllers/index.js +1 -1
  6. package/dist/controllers/item/itemController.js +22 -10
  7. package/dist/controllers/item/itemController.js.map +1 -1
  8. package/dist/lib/route_factory/RouteFactory.d.ts +15 -0
  9. package/dist/lib/route_factory/RouteFactory.js +21 -0
  10. package/dist/lib/route_factory/RouteFactory.js.map +1 -0
  11. package/dist/lib/route_factory/index.d.ts +6 -0
  12. package/dist/lib/route_factory/index.js +11 -0
  13. package/dist/lib/route_factory/index.js.map +1 -0
  14. package/dist/lib/route_factory/routeRegistry.d.ts +8 -0
  15. package/dist/lib/route_factory/routeRegistry.js +5 -0
  16. package/dist/lib/route_factory/routeRegistry.js.map +1 -0
  17. package/dist/lib/route_factory/routeSpec.d.ts +36 -0
  18. package/dist/lib/route_factory/routeSpec.js +81 -0
  19. package/dist/lib/route_factory/routeSpec.js.map +1 -0
  20. package/dist/models/item/BrandModel.d.ts +34 -23
  21. package/dist/models/item/CategoryModel.d.ts +34 -23
  22. package/dist/models/item/ItemModel.d.ts +100 -78
  23. package/dist/models/item/ProductModel.d.ts +33 -33
  24. package/dist/models/item/UomModel.d.ts +44 -33
  25. package/dist/route_contracts/access_control/accessControlPoliciesRoutes.d.ts +2 -0
  26. package/dist/route_contracts/access_control/accessControlPoliciesRoutes.js +21 -0
  27. package/dist/route_contracts/access_control/accessControlPoliciesRoutes.js.map +1 -0
  28. package/dist/route_contracts/access_control/accessControlRoleRoutes.d.ts +2 -0
  29. package/dist/route_contracts/access_control/accessControlRoleRoutes.js +48 -0
  30. package/dist/route_contracts/access_control/accessControlRoleRoutes.js.map +1 -0
  31. package/dist/route_contracts/access_control/accessControlRolesRoutes.d.ts +2 -0
  32. package/dist/route_contracts/access_control/accessControlRolesRoutes.js +37 -0
  33. package/dist/route_contracts/access_control/accessControlRolesRoutes.js.map +1 -0
  34. package/dist/route_contracts/access_control/accessControlRoutes.d.ts +2 -0
  35. package/dist/route_contracts/access_control/accessControlRoutes.js +18 -0
  36. package/dist/route_contracts/access_control/accessControlRoutes.js.map +1 -0
  37. package/dist/route_contracts/access_control/accessControlUserRolesRoutes.d.ts +2 -0
  38. package/dist/route_contracts/access_control/accessControlUserRolesRoutes.js +21 -0
  39. package/dist/route_contracts/access_control/accessControlUserRolesRoutes.js.map +1 -0
  40. package/dist/route_contracts/auth/authRoutes.d.ts +2 -0
  41. package/dist/route_contracts/auth/authRoutes.js +23 -0
  42. package/dist/route_contracts/auth/authRoutes.js.map +1 -0
  43. package/dist/route_contracts/index.d.ts +2 -0
  44. package/dist/route_contracts/index.js +39 -0
  45. package/dist/route_contracts/index.js.map +1 -0
  46. package/dist/route_specs/access_control/accessControlPoliciesRouteSpecs.d.ts +2 -0
  47. package/dist/route_specs/access_control/accessControlPoliciesRouteSpecs.js +21 -0
  48. package/dist/route_specs/access_control/accessControlPoliciesRouteSpecs.js.map +1 -0
  49. package/dist/route_specs/access_control/accessControlRoleRouteSpecs.d.ts +2 -0
  50. package/dist/route_specs/access_control/accessControlRoleRouteSpecs.js +48 -0
  51. package/dist/route_specs/access_control/accessControlRoleRouteSpecs.js.map +1 -0
  52. package/dist/route_specs/access_control/accessControlRolesRouteSpecs.d.ts +2 -0
  53. package/dist/route_specs/access_control/accessControlRolesRouteSpecs.js +37 -0
  54. package/dist/route_specs/access_control/accessControlRolesRouteSpecs.js.map +1 -0
  55. package/dist/route_specs/access_control/accessControlRouteSpecs.d.ts +2 -0
  56. package/dist/route_specs/access_control/accessControlRouteSpecs.js +18 -0
  57. package/dist/route_specs/access_control/accessControlRouteSpecs.js.map +1 -0
  58. package/dist/route_specs/access_control/accessControlUserRolesRouteSpecs.d.ts +2 -0
  59. package/dist/route_specs/access_control/accessControlUserRolesRouteSpecs.js +21 -0
  60. package/dist/route_specs/access_control/accessControlUserRolesRouteSpecs.js.map +1 -0
  61. package/dist/route_specs/auth/authRouteSpec.d.ts +2 -0
  62. package/dist/route_specs/auth/authRouteSpec.js +23 -0
  63. package/dist/route_specs/auth/authRouteSpec.js.map +1 -0
  64. package/dist/route_specs/index.d.ts +2 -0
  65. package/dist/route_specs/index.js +39 -0
  66. package/dist/route_specs/index.js.map +1 -0
  67. package/dist/routes/index.d.ts +33 -33
  68. package/dist/routes/index.js +33 -34
  69. package/dist/routes/index.js.map +1 -1
  70. package/dist/schema/middleware/route/index.d.ts +2 -2
  71. package/dist/schema/middleware/route/index.js +2 -1
  72. package/dist/schema/middleware/route/index.js.map +1 -1
  73. package/dist/schema/middleware/route/schemaAccessControl.d.ts +9 -0
  74. package/dist/schema/middleware/route/schemaAccessControl.js +5 -1
  75. package/dist/schema/middleware/route/schemaAccessControl.js.map +1 -1
  76. package/dist/schema/payload/item/schemaItemBrand.d.ts +28 -14
  77. package/dist/schema/payload/item/schemaItemBrand.js +4 -2
  78. package/dist/schema/payload/item/schemaItemBrand.js.map +1 -1
  79. package/dist/schema/payload/item/schemaItemCategory.d.ts +28 -14
  80. package/dist/schema/payload/item/schemaItemCategory.js +4 -2
  81. package/dist/schema/payload/item/schemaItemCategory.js.map +1 -1
  82. package/dist/schema/payload/item/schemaItemItem.d.ts +65 -65
  83. package/dist/schema/payload/item/schemaItemItem.js +3 -3
  84. package/dist/schema/payload/item/schemaItemItem.js.map +1 -1
  85. package/dist/schema/payload/item/schemaItemProduct.d.ts +41 -41
  86. package/dist/schema/payload/item/schemaItemProduct.js +1 -1
  87. package/dist/schema/payload/item/schemaItemProduct.js.map +1 -1
  88. package/dist/schema/payload/item/schemaItemUom.d.ts +28 -14
  89. package/dist/schema/payload/item/schemaItemUom.js +4 -2
  90. package/dist/schema/payload/item/schemaItemUom.js.map +1 -1
  91. package/dist/services/item/ItemBrandService.d.ts +11 -6
  92. package/dist/services/item/ItemBrandService.js +35 -6
  93. package/dist/services/item/ItemBrandService.js.map +1 -1
  94. package/dist/services/item/ItemCategoryService.d.ts +11 -6
  95. package/dist/services/item/ItemCategoryService.js +37 -7
  96. package/dist/services/item/ItemCategoryService.js.map +1 -1
  97. package/dist/services/item/ItemItemService.d.ts +29 -23
  98. package/dist/services/item/ItemItemService.js +57 -16
  99. package/dist/services/item/ItemItemService.js.map +1 -1
  100. package/dist/services/item/ItemProductService.d.ts +9 -9
  101. package/dist/services/item/ItemProductService.js +11 -10
  102. package/dist/services/item/ItemProductService.js.map +1 -1
  103. package/dist/services/item/ItemService.js +39 -12
  104. package/dist/services/item/ItemService.js.map +1 -1
  105. package/dist/services/item/ItemUomService.d.ts +14 -9
  106. package/dist/services/item/ItemUomService.js +35 -5
  107. package/dist/services/item/ItemUomService.js.map +1 -1
  108. package/package.json +11 -1
  109. package/prisma/schema.prisma +101 -92
  110. package/dist/access_control/extra/index.d.ts +0 -2
  111. package/dist/access_control/extra/index.js +0 -7
  112. package/dist/access_control/extra/index.js.map +0 -1
  113. package/dist/access_control/extra/policies/administrator.d.ts +0 -3
  114. package/dist/access_control/extra/policies/administrator.js +0 -13
  115. package/dist/access_control/extra/policies/administrator.js.map +0 -1
  116. package/dist/access_control/extra/types.d.ts +0 -11
  117. package/dist/access_control/extra/types.js +0 -3
  118. package/dist/access_control/extra/types.js.map +0 -1
  119. package/dist/controllers/utils/changePasswordUtilController.d.ts +0 -3
  120. package/dist/controllers/utils/changePasswordUtilController.js +0 -55
  121. package/dist/controllers/utils/changePasswordUtilController.js.map +0 -1
  122. package/dist/global.d.ts +0 -5
  123. package/dist/global.js +0 -12
  124. package/dist/global.js.map +0 -1
  125. package/dist/helpers/unuse/prismaHelper.d.ts +0 -2
  126. package/dist/helpers/unuse/prismaHelper.js +0 -76
  127. package/dist/helpers/unuse/prismaHelper.js.map +0 -1
  128. package/dist/lib/global.d.ts +0 -5
  129. package/dist/lib/global.js +0 -12
  130. package/dist/lib/global.js.map +0 -1
  131. package/dist/middlewares/request/initialPrisma.d.ts +0 -9
  132. package/dist/middlewares/request/initialPrisma.js +0 -41
  133. package/dist/middlewares/request/initialPrisma.js.map +0 -1
  134. package/dist/middlewares/request/unuse/initialPrisma.d.ts +0 -9
  135. package/dist/middlewares/request/unuse/initialPrisma.js +0 -41
  136. package/dist/middlewares/request/unuse/initialPrisma.js.map +0 -1
  137. package/dist/middlewares/route/bk_validateDocument.d.ts +0 -2
  138. package/dist/middlewares/route/bk_validateDocument.js +0 -34
  139. package/dist/middlewares/route/bk_validateDocument.js.map +0 -1
  140. package/dist/middlewares/route/validateSchedulerLog.d.ts +0 -5
  141. package/dist/middlewares/route/validateSchedulerLog.js +0 -20
  142. package/dist/middlewares/route/validateSchedulerLog.js.map +0 -1
  143. package/dist/routes/access_control/accessControlsRoutes.d.ts +0 -3
  144. package/dist/routes/access_control/accessControlsRoutes.js +0 -12
  145. package/dist/routes/access_control/accessControlsRoutes.js.map +0 -1
  146. package/dist/routes/utils/changePasswordUtilRoutes.d.ts +0 -2
  147. package/dist/routes/utils/changePasswordUtilRoutes.js +0 -11
  148. package/dist/routes/utils/changePasswordUtilRoutes.js.map +0 -1
  149. package/dist/schema/common/unuse/response.d.ts +0 -54
  150. package/dist/schema/common/unuse/response.js +0 -23
  151. package/dist/schema/common/unuse/response.js.map +0 -1
  152. package/dist/schema/middleware/request/validateQuery_bk250827.d.ts +0 -27
  153. package/dist/schema/middleware/request/validateQuery_bk250827.js +0 -63
  154. package/dist/schema/middleware/request/validateQuery_bk250827.js.map +0 -1
  155. package/dist/schema/middleware/route/bk_schemaDocument.d.ts +0 -10
  156. package/dist/schema/middleware/route/bk_schemaDocument.js +0 -10
  157. package/dist/schema/middleware/route/bk_schemaDocument.js.map +0 -1
  158. package/dist/schema/middleware/route/schemaSchedulerLog.d.ts +0 -4
  159. package/dist/schema/middleware/route/schemaSchedulerLog.js +0 -10
  160. package/dist/schema/middleware/route/schemaSchedulerLog.js.map +0 -1
  161. package/dist/schema/payload/utils/schemaChangePasswordUtil.d.ts +0 -53
  162. package/dist/schema/payload/utils/schemaChangePasswordUtil.js +0 -18
  163. package/dist/schema/payload/utils/schemaChangePasswordUtil.js.map +0 -1
  164. package/dist/services/utils/ChangePasswordUtilService.d.ts +0 -13
  165. package/dist/services/utils/ChangePasswordUtilService.js +0 -78
  166. package/dist/services/utils/ChangePasswordUtilService.js.map +0 -1
@@ -16,20 +16,22 @@ export declare const ModelItemFields: {
16
16
  remark: "remark";
17
17
  product_id: "product_id";
18
18
  summary: "summary";
19
+ uom_name: "uom_name";
20
+ uom_code: "uom_code";
19
21
  item_code: "item_code";
20
22
  item_description: "item_description";
21
- cost: "cost";
22
- uom_price: "uom_price";
23
+ item_cost: "item_cost";
24
+ item_price: "item_price";
25
+ floor_price: "floor_price";
23
26
  gross_weight: "gross_weight";
24
27
  net_weight: "net_weight";
25
- uom_bal: "uom_bal";
26
- is_package: "is_package";
27
- floor_price: "floor_price";
28
+ volume_weight: "volume_weight";
28
29
  dimension_width: "dimension_width";
29
30
  dimension_height: "dimension_height";
30
31
  dimension_length: "dimension_length";
31
32
  cbm: "cbm";
32
- volume_weight: "volume_weight";
33
+ balance_quantity: "balance_quantity";
34
+ is_package: "is_package";
33
35
  };
34
36
  export type ModelItem = items;
35
37
  export type ModelItemOmitFields = typeof primaryKey | DefaultOmitFields;
@@ -57,7 +59,7 @@ export type ModelItemListProps = {
57
59
  };
58
60
  export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
59
61
  selectedPrisma: any;
60
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "item_id" | "uom_id" | "remark" | "product_id" | "summary" | "item_code" | "item_description" | "cost" | "uom_price" | "gross_weight" | "net_weight" | "uom_bal" | "is_package" | "floor_price" | "dimension_width" | "dimension_height" | "dimension_length" | "cbm" | "volume_weight";
62
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "item_id" | "uom_id" | "remark" | "product_id" | "summary" | "uom_name" | "uom_code" | "item_code" | "item_description" | "item_cost" | "item_price" | "floor_price" | "gross_weight" | "net_weight" | "volume_weight" | "dimension_width" | "dimension_height" | "dimension_length" | "cbm" | "balance_quantity" | "is_package";
61
63
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
62
64
  name: string;
63
65
  type: string;
@@ -72,26 +74,28 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
72
74
  isdelete: boolean | null;
73
75
  istrash: boolean | null;
74
76
  accountid: bigint;
75
- status: number | null;
77
+ status: boolean | null;
76
78
  item_id: bigint;
77
79
  uom_id: bigint;
78
80
  remark: string | null;
79
81
  product_id: bigint;
80
82
  summary: string | null;
83
+ uom_name: string | null;
84
+ uom_code: string;
81
85
  item_code: string | null;
82
86
  item_description: string | null;
83
- cost: Prisma.Decimal | null;
84
- uom_price: Prisma.Decimal | null;
87
+ item_cost: Prisma.Decimal | null;
88
+ item_price: Prisma.Decimal | null;
89
+ floor_price: Prisma.Decimal | null;
85
90
  gross_weight: Prisma.Decimal | null;
86
91
  net_weight: Prisma.Decimal | null;
87
- uom_bal: Prisma.Decimal;
88
- is_package: number;
89
- floor_price: Prisma.Decimal | null;
92
+ volume_weight: Prisma.Decimal | null;
90
93
  dimension_width: Prisma.Decimal | null;
91
94
  dimension_height: Prisma.Decimal | null;
92
95
  dimension_length: Prisma.Decimal | null;
93
96
  cbm: Prisma.Decimal | null;
94
- volume_weight: Prisma.Decimal | null;
97
+ balance_quantity: Prisma.Decimal;
98
+ is_package: boolean | null;
95
99
  }>;
96
100
  createMany: ({ dataList, disableRollback, }: {
97
101
  dataList: Omit<any, DefaultOmitFields>[];
@@ -104,26 +108,28 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
104
108
  isdelete: boolean | null;
105
109
  istrash: boolean | null;
106
110
  accountid: bigint;
107
- status: number | null;
111
+ status: boolean | null;
108
112
  item_id: bigint;
109
113
  uom_id: bigint;
110
114
  remark: string | null;
111
115
  product_id: bigint;
112
116
  summary: string | null;
117
+ uom_name: string | null;
118
+ uom_code: string;
113
119
  item_code: string | null;
114
120
  item_description: string | null;
115
- cost: Prisma.Decimal | null;
116
- uom_price: Prisma.Decimal | null;
121
+ item_cost: Prisma.Decimal | null;
122
+ item_price: Prisma.Decimal | null;
123
+ floor_price: Prisma.Decimal | null;
117
124
  gross_weight: Prisma.Decimal | null;
118
125
  net_weight: Prisma.Decimal | null;
119
- uom_bal: Prisma.Decimal;
120
- is_package: number;
121
- floor_price: Prisma.Decimal | null;
126
+ volume_weight: Prisma.Decimal | null;
122
127
  dimension_width: Prisma.Decimal | null;
123
128
  dimension_height: Prisma.Decimal | null;
124
129
  dimension_length: Prisma.Decimal | null;
125
130
  cbm: Prisma.Decimal | null;
126
- volume_weight: Prisma.Decimal | null;
131
+ balance_quantity: Prisma.Decimal;
132
+ is_package: boolean | null;
127
133
  }[]>;
128
134
  get: ({ id, where, include, }: {
129
135
  id?: number;
@@ -137,26 +143,28 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
137
143
  isdelete: boolean | null;
138
144
  istrash: boolean | null;
139
145
  accountid: bigint;
140
- status: number | null;
146
+ status: boolean | null;
141
147
  item_id: bigint;
142
148
  uom_id: bigint;
143
149
  remark: string | null;
144
150
  product_id: bigint;
145
151
  summary: string | null;
152
+ uom_name: string | null;
153
+ uom_code: string;
146
154
  item_code: string | null;
147
155
  item_description: string | null;
148
- cost: Prisma.Decimal | null;
149
- uom_price: Prisma.Decimal | null;
156
+ item_cost: Prisma.Decimal | null;
157
+ item_price: Prisma.Decimal | null;
158
+ floor_price: Prisma.Decimal | null;
150
159
  gross_weight: Prisma.Decimal | null;
151
160
  net_weight: Prisma.Decimal | null;
152
- uom_bal: Prisma.Decimal;
153
- is_package: number;
154
- floor_price: Prisma.Decimal | null;
161
+ volume_weight: Prisma.Decimal | null;
155
162
  dimension_width: Prisma.Decimal | null;
156
163
  dimension_height: Prisma.Decimal | null;
157
164
  dimension_length: Prisma.Decimal | null;
158
165
  cbm: Prisma.Decimal | null;
159
- volume_weight: Prisma.Decimal | null;
166
+ balance_quantity: Prisma.Decimal;
167
+ is_package: boolean | null;
160
168
  } | null>;
161
169
  list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
162
170
  createdatetime: Date | null;
@@ -166,32 +174,34 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
166
174
  isdelete: boolean | null;
167
175
  istrash: boolean | null;
168
176
  accountid: bigint;
169
- status: number | null;
177
+ status: boolean | null;
170
178
  item_id: bigint;
171
179
  uom_id: bigint;
172
180
  remark: string | null;
173
181
  product_id: bigint;
174
182
  summary: string | null;
183
+ uom_name: string | null;
184
+ uom_code: string;
175
185
  item_code: string | null;
176
186
  item_description: string | null;
177
- cost: Prisma.Decimal | null;
178
- uom_price: Prisma.Decimal | null;
187
+ item_cost: Prisma.Decimal | null;
188
+ item_price: Prisma.Decimal | null;
189
+ floor_price: Prisma.Decimal | null;
179
190
  gross_weight: Prisma.Decimal | null;
180
191
  net_weight: Prisma.Decimal | null;
181
- uom_bal: Prisma.Decimal;
182
- is_package: number;
183
- floor_price: Prisma.Decimal | null;
192
+ volume_weight: Prisma.Decimal | null;
184
193
  dimension_width: Prisma.Decimal | null;
185
194
  dimension_height: Prisma.Decimal | null;
186
195
  dimension_length: Prisma.Decimal | null;
187
196
  cbm: Prisma.Decimal | null;
188
- volume_weight: Prisma.Decimal | null;
197
+ balance_quantity: Prisma.Decimal;
198
+ is_package: boolean | null;
189
199
  }[]>;
190
200
  count: ({ where, }?: {
191
201
  where?: Record<string, any>;
192
202
  }) => Promise<number>;
193
203
  aggregate: ({ field, operation, where, }: {
194
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "item_id" | "uom_id" | "remark" | "product_id" | "summary" | "item_code" | "item_description" | "cost" | "uom_price" | "gross_weight" | "net_weight" | "uom_bal" | "is_package" | "floor_price" | "dimension_width" | "dimension_height" | "dimension_length" | "cbm" | "volume_weight";
204
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "item_id" | "uom_id" | "remark" | "product_id" | "summary" | "uom_name" | "uom_code" | "item_code" | "item_description" | "item_cost" | "item_price" | "floor_price" | "gross_weight" | "net_weight" | "volume_weight" | "dimension_width" | "dimension_height" | "dimension_length" | "cbm" | "balance_quantity" | "is_package";
195
205
  operation?: "sum" | "avg" | "min" | "max" | "count";
196
206
  where?: Record<string, any>;
197
207
  }) => Promise<number>;
@@ -206,26 +216,28 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
206
216
  isdelete: boolean | null;
207
217
  istrash: boolean | null;
208
218
  accountid: bigint;
209
- status: number | null;
219
+ status: boolean | null;
210
220
  item_id: bigint;
211
221
  uom_id: bigint;
212
222
  remark: string | null;
213
223
  product_id: bigint;
214
224
  summary: string | null;
225
+ uom_name: string | null;
226
+ uom_code: string;
215
227
  item_code: string | null;
216
228
  item_description: string | null;
217
- cost: Prisma.Decimal | null;
218
- uom_price: Prisma.Decimal | null;
229
+ item_cost: Prisma.Decimal | null;
230
+ item_price: Prisma.Decimal | null;
231
+ floor_price: Prisma.Decimal | null;
219
232
  gross_weight: Prisma.Decimal | null;
220
233
  net_weight: Prisma.Decimal | null;
221
- uom_bal: Prisma.Decimal;
222
- is_package: number;
223
- floor_price: Prisma.Decimal | null;
234
+ volume_weight: Prisma.Decimal | null;
224
235
  dimension_width: Prisma.Decimal | null;
225
236
  dimension_height: Prisma.Decimal | null;
226
237
  dimension_length: Prisma.Decimal | null;
227
238
  cbm: Prisma.Decimal | null;
228
- volume_weight: Prisma.Decimal | null;
239
+ balance_quantity: Prisma.Decimal;
240
+ is_package: boolean | null;
229
241
  }>;
230
242
  disableRollback?: boolean;
231
243
  }) => Promise<{
@@ -236,26 +248,28 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
236
248
  isdelete: boolean | null;
237
249
  istrash: boolean | null;
238
250
  accountid: bigint;
239
- status: number | null;
251
+ status: boolean | null;
240
252
  item_id: bigint;
241
253
  uom_id: bigint;
242
254
  remark: string | null;
243
255
  product_id: bigint;
244
256
  summary: string | null;
257
+ uom_name: string | null;
258
+ uom_code: string;
245
259
  item_code: string | null;
246
260
  item_description: string | null;
247
- cost: Prisma.Decimal | null;
248
- uom_price: Prisma.Decimal | null;
261
+ item_cost: Prisma.Decimal | null;
262
+ item_price: Prisma.Decimal | null;
263
+ floor_price: Prisma.Decimal | null;
249
264
  gross_weight: Prisma.Decimal | null;
250
265
  net_weight: Prisma.Decimal | null;
251
- uom_bal: Prisma.Decimal;
252
- is_package: number;
253
- floor_price: Prisma.Decimal | null;
266
+ volume_weight: Prisma.Decimal | null;
254
267
  dimension_width: Prisma.Decimal | null;
255
268
  dimension_height: Prisma.Decimal | null;
256
269
  dimension_length: Prisma.Decimal | null;
257
270
  cbm: Prisma.Decimal | null;
258
- volume_weight: Prisma.Decimal | null;
271
+ balance_quantity: Prisma.Decimal;
272
+ is_package: boolean | null;
259
273
  }>;
260
274
  updateMany: ({ dataList, disableRollback, }: {
261
275
  dataList: {
@@ -268,26 +282,28 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
268
282
  isdelete: boolean | null;
269
283
  istrash: boolean | null;
270
284
  accountid: bigint;
271
- status: number | null;
285
+ status: boolean | null;
272
286
  item_id: bigint;
273
287
  uom_id: bigint;
274
288
  remark: string | null;
275
289
  product_id: bigint;
276
290
  summary: string | null;
291
+ uom_name: string | null;
292
+ uom_code: string;
277
293
  item_code: string | null;
278
294
  item_description: string | null;
279
- cost: Prisma.Decimal | null;
280
- uom_price: Prisma.Decimal | null;
295
+ item_cost: Prisma.Decimal | null;
296
+ item_price: Prisma.Decimal | null;
297
+ floor_price: Prisma.Decimal | null;
281
298
  gross_weight: Prisma.Decimal | null;
282
299
  net_weight: Prisma.Decimal | null;
283
- uom_bal: Prisma.Decimal;
284
- is_package: number;
285
- floor_price: Prisma.Decimal | null;
300
+ volume_weight: Prisma.Decimal | null;
286
301
  dimension_width: Prisma.Decimal | null;
287
302
  dimension_height: Prisma.Decimal | null;
288
303
  dimension_length: Prisma.Decimal | null;
289
304
  cbm: Prisma.Decimal | null;
290
- volume_weight: Prisma.Decimal | null;
305
+ balance_quantity: Prisma.Decimal;
306
+ is_package: boolean | null;
291
307
  }>;
292
308
  }[];
293
309
  disableRollback?: boolean;
@@ -299,26 +315,28 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
299
315
  isdelete: boolean | null;
300
316
  istrash: boolean | null;
301
317
  accountid: bigint;
302
- status: number | null;
318
+ status: boolean | null;
303
319
  item_id: bigint;
304
320
  uom_id: bigint;
305
321
  remark: string | null;
306
322
  product_id: bigint;
307
323
  summary: string | null;
324
+ uom_name: string | null;
325
+ uom_code: string;
308
326
  item_code: string | null;
309
327
  item_description: string | null;
310
- cost: Prisma.Decimal | null;
311
- uom_price: Prisma.Decimal | null;
328
+ item_cost: Prisma.Decimal | null;
329
+ item_price: Prisma.Decimal | null;
330
+ floor_price: Prisma.Decimal | null;
312
331
  gross_weight: Prisma.Decimal | null;
313
332
  net_weight: Prisma.Decimal | null;
314
- uom_bal: Prisma.Decimal;
315
- is_package: number;
316
- floor_price: Prisma.Decimal | null;
333
+ volume_weight: Prisma.Decimal | null;
317
334
  dimension_width: Prisma.Decimal | null;
318
335
  dimension_height: Prisma.Decimal | null;
319
336
  dimension_length: Prisma.Decimal | null;
320
337
  cbm: Prisma.Decimal | null;
321
- volume_weight: Prisma.Decimal | null;
338
+ balance_quantity: Prisma.Decimal;
339
+ is_package: boolean | null;
322
340
  }[]>;
323
341
  trash: ({ ids }: {
324
342
  ids: number[];
@@ -330,26 +348,28 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
330
348
  isdelete: boolean | null;
331
349
  istrash: boolean | null;
332
350
  accountid: bigint;
333
- status: number | null;
351
+ status: boolean | null;
334
352
  item_id: bigint;
335
353
  uom_id: bigint;
336
354
  remark: string | null;
337
355
  product_id: bigint;
338
356
  summary: string | null;
357
+ uom_name: string | null;
358
+ uom_code: string;
339
359
  item_code: string | null;
340
360
  item_description: string | null;
341
- cost: Prisma.Decimal | null;
342
- uom_price: Prisma.Decimal | null;
361
+ item_cost: Prisma.Decimal | null;
362
+ item_price: Prisma.Decimal | null;
363
+ floor_price: Prisma.Decimal | null;
343
364
  gross_weight: Prisma.Decimal | null;
344
365
  net_weight: Prisma.Decimal | null;
345
- uom_bal: Prisma.Decimal;
346
- is_package: number;
347
- floor_price: Prisma.Decimal | null;
366
+ volume_weight: Prisma.Decimal | null;
348
367
  dimension_width: Prisma.Decimal | null;
349
368
  dimension_height: Prisma.Decimal | null;
350
369
  dimension_length: Prisma.Decimal | null;
351
370
  cbm: Prisma.Decimal | null;
352
- volume_weight: Prisma.Decimal | null;
371
+ balance_quantity: Prisma.Decimal;
372
+ is_package: boolean | null;
353
373
  }[]>;
354
374
  remove: ({ ids, where }: {
355
375
  ids?: number[];
@@ -362,26 +382,28 @@ export declare const ItemModel: ({ ...rest }: DefaultServiceProps) => {
362
382
  isdelete: boolean | null;
363
383
  istrash: boolean | null;
364
384
  accountid: bigint;
365
- status: number | null;
385
+ status: boolean | null;
366
386
  item_id: bigint;
367
387
  uom_id: bigint;
368
388
  remark: string | null;
369
389
  product_id: bigint;
370
390
  summary: string | null;
391
+ uom_name: string | null;
392
+ uom_code: string;
371
393
  item_code: string | null;
372
394
  item_description: string | null;
373
- cost: Prisma.Decimal | null;
374
- uom_price: Prisma.Decimal | null;
395
+ item_cost: Prisma.Decimal | null;
396
+ item_price: Prisma.Decimal | null;
397
+ floor_price: Prisma.Decimal | null;
375
398
  gross_weight: Prisma.Decimal | null;
376
399
  net_weight: Prisma.Decimal | null;
377
- uom_bal: Prisma.Decimal;
378
- is_package: number;
379
- floor_price: Prisma.Decimal | null;
400
+ volume_weight: Prisma.Decimal | null;
380
401
  dimension_width: Prisma.Decimal | null;
381
402
  dimension_height: Prisma.Decimal | null;
382
403
  dimension_length: Prisma.Decimal | null;
383
404
  cbm: Prisma.Decimal | null;
384
- volume_weight: Prisma.Decimal | null;
405
+ balance_quantity: Prisma.Decimal;
406
+ is_package: boolean | null;
385
407
  }[]>;
386
408
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
387
409
  };
@@ -16,9 +16,9 @@ export declare const ModelProductFields: {
16
16
  product_id: "product_id";
17
17
  category_id: "category_id";
18
18
  brand_id: "brand_id";
19
+ product_code: "product_code";
19
20
  product_name: "product_name";
20
21
  summary: "summary";
21
- product_code: "product_code";
22
22
  };
23
23
  export type ModelProduct = products;
24
24
  export type ModelProductOmitFields = typeof primaryKey | DefaultOmitFields;
@@ -46,7 +46,7 @@ export type ModelProductListProps = {
46
46
  };
47
47
  export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
48
48
  selectedPrisma: any;
49
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "model" | "description" | "product_id" | "category_id" | "brand_id" | "product_name" | "summary" | "product_code";
49
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "model" | "description" | "product_id" | "category_id" | "brand_id" | "product_code" | "product_name" | "summary";
50
50
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
51
51
  name: string;
52
52
  type: string;
@@ -61,15 +61,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
61
61
  isdelete: boolean | null;
62
62
  istrash: boolean | null;
63
63
  accountid: bigint;
64
- status: number | null;
64
+ status: boolean | null;
65
65
  model: string | null;
66
66
  description: string | null;
67
67
  product_id: bigint;
68
68
  category_id: bigint;
69
- brand_id: bigint | null;
69
+ brand_id: bigint;
70
+ product_code: string;
70
71
  product_name: string;
71
72
  summary: string | null;
72
- product_code: string | null;
73
73
  }>;
74
74
  createMany: ({ dataList, disableRollback, }: {
75
75
  dataList: Omit<any, DefaultOmitFields>[];
@@ -82,15 +82,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
82
82
  isdelete: boolean | null;
83
83
  istrash: boolean | null;
84
84
  accountid: bigint;
85
- status: number | null;
85
+ status: boolean | null;
86
86
  model: string | null;
87
87
  description: string | null;
88
88
  product_id: bigint;
89
89
  category_id: bigint;
90
- brand_id: bigint | null;
90
+ brand_id: bigint;
91
+ product_code: string;
91
92
  product_name: string;
92
93
  summary: string | null;
93
- product_code: string | null;
94
94
  }[]>;
95
95
  get: ({ id, where, include, }: {
96
96
  id?: number;
@@ -104,15 +104,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
104
104
  isdelete: boolean | null;
105
105
  istrash: boolean | null;
106
106
  accountid: bigint;
107
- status: number | null;
107
+ status: boolean | null;
108
108
  model: string | null;
109
109
  description: string | null;
110
110
  product_id: bigint;
111
111
  category_id: bigint;
112
- brand_id: bigint | null;
112
+ brand_id: bigint;
113
+ product_code: string;
113
114
  product_name: string;
114
115
  summary: string | null;
115
- product_code: string | null;
116
116
  } | null>;
117
117
  list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
118
118
  createdatetime: Date | null;
@@ -122,21 +122,21 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
122
122
  isdelete: boolean | null;
123
123
  istrash: boolean | null;
124
124
  accountid: bigint;
125
- status: number | null;
125
+ status: boolean | null;
126
126
  model: string | null;
127
127
  description: string | null;
128
128
  product_id: bigint;
129
129
  category_id: bigint;
130
- brand_id: bigint | null;
130
+ brand_id: bigint;
131
+ product_code: string;
131
132
  product_name: string;
132
133
  summary: string | null;
133
- product_code: string | null;
134
134
  }[]>;
135
135
  count: ({ where, }?: {
136
136
  where?: Record<string, any>;
137
137
  }) => Promise<number>;
138
138
  aggregate: ({ field, operation, where, }: {
139
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "model" | "description" | "product_id" | "category_id" | "brand_id" | "product_name" | "summary" | "product_code";
139
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "model" | "description" | "product_id" | "category_id" | "brand_id" | "product_code" | "product_name" | "summary";
140
140
  operation?: "sum" | "avg" | "min" | "max" | "count";
141
141
  where?: Record<string, any>;
142
142
  }) => Promise<number>;
@@ -151,15 +151,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
151
151
  isdelete: boolean | null;
152
152
  istrash: boolean | null;
153
153
  accountid: bigint;
154
- status: number | null;
154
+ status: boolean | null;
155
155
  model: string | null;
156
156
  description: string | null;
157
157
  product_id: bigint;
158
158
  category_id: bigint;
159
- brand_id: bigint | null;
159
+ brand_id: bigint;
160
+ product_code: string;
160
161
  product_name: string;
161
162
  summary: string | null;
162
- product_code: string | null;
163
163
  }>;
164
164
  disableRollback?: boolean;
165
165
  }) => Promise<{
@@ -170,15 +170,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
170
170
  isdelete: boolean | null;
171
171
  istrash: boolean | null;
172
172
  accountid: bigint;
173
- status: number | null;
173
+ status: boolean | null;
174
174
  model: string | null;
175
175
  description: string | null;
176
176
  product_id: bigint;
177
177
  category_id: bigint;
178
- brand_id: bigint | null;
178
+ brand_id: bigint;
179
+ product_code: string;
179
180
  product_name: string;
180
181
  summary: string | null;
181
- product_code: string | null;
182
182
  }>;
183
183
  updateMany: ({ dataList, disableRollback, }: {
184
184
  dataList: {
@@ -191,15 +191,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
191
191
  isdelete: boolean | null;
192
192
  istrash: boolean | null;
193
193
  accountid: bigint;
194
- status: number | null;
194
+ status: boolean | null;
195
195
  model: string | null;
196
196
  description: string | null;
197
197
  product_id: bigint;
198
198
  category_id: bigint;
199
- brand_id: bigint | null;
199
+ brand_id: bigint;
200
+ product_code: string;
200
201
  product_name: string;
201
202
  summary: string | null;
202
- product_code: string | null;
203
203
  }>;
204
204
  }[];
205
205
  disableRollback?: boolean;
@@ -211,15 +211,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
211
211
  isdelete: boolean | null;
212
212
  istrash: boolean | null;
213
213
  accountid: bigint;
214
- status: number | null;
214
+ status: boolean | null;
215
215
  model: string | null;
216
216
  description: string | null;
217
217
  product_id: bigint;
218
218
  category_id: bigint;
219
- brand_id: bigint | null;
219
+ brand_id: bigint;
220
+ product_code: string;
220
221
  product_name: string;
221
222
  summary: string | null;
222
- product_code: string | null;
223
223
  }[]>;
224
224
  trash: ({ ids }: {
225
225
  ids: number[];
@@ -231,15 +231,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
231
231
  isdelete: boolean | null;
232
232
  istrash: boolean | null;
233
233
  accountid: bigint;
234
- status: number | null;
234
+ status: boolean | null;
235
235
  model: string | null;
236
236
  description: string | null;
237
237
  product_id: bigint;
238
238
  category_id: bigint;
239
- brand_id: bigint | null;
239
+ brand_id: bigint;
240
+ product_code: string;
240
241
  product_name: string;
241
242
  summary: string | null;
242
- product_code: string | null;
243
243
  }[]>;
244
244
  remove: ({ ids, where }: {
245
245
  ids?: number[];
@@ -252,15 +252,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
252
252
  isdelete: boolean | null;
253
253
  istrash: boolean | null;
254
254
  accountid: bigint;
255
- status: number | null;
255
+ status: boolean | null;
256
256
  model: string | null;
257
257
  description: string | null;
258
258
  product_id: bigint;
259
259
  category_id: bigint;
260
- brand_id: bigint | null;
260
+ brand_id: bigint;
261
+ product_code: string;
261
262
  product_name: string;
262
263
  summary: string | null;
263
- product_code: string | null;
264
264
  }[]>;
265
265
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
266
266
  };