storemw-core-api 1.0.149 → 1.0.151

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 (147) hide show
  1. package/dist/app.js +3 -1
  2. package/dist/app.js.map +1 -1
  3. package/dist/controllers/access_control/accessControlRoleController.d.ts +11 -0
  4. package/dist/controllers/access_control/accessControlRoleController.js +156 -0
  5. package/dist/controllers/access_control/accessControlRoleController.js.map +1 -0
  6. package/dist/controllers/access_control/accessControlUserController.d.ts +7 -0
  7. package/dist/controllers/access_control/accessControlUserController.js +140 -0
  8. package/dist/controllers/access_control/accessControlUserController.js.map +1 -0
  9. package/dist/controllers/index.d.ts +3 -0
  10. package/dist/controllers/index.js +16 -2
  11. package/dist/controllers/index.js.map +1 -1
  12. package/dist/controllers/repository/repositoryController.d.ts +12 -0
  13. package/dist/controllers/repository/repositoryController.js +249 -0
  14. package/dist/controllers/repository/repositoryController.js.map +1 -0
  15. package/dist/lib/index.d.ts +1 -0
  16. package/dist/lib/index.js +5 -1
  17. package/dist/lib/index.js.map +1 -1
  18. package/dist/lib/query_builder/queryScheduler.d.ts +13 -0
  19. package/dist/lib/query_builder/queryScheduler.js +56 -0
  20. package/dist/lib/query_builder/queryScheduler.js.map +1 -0
  21. package/dist/middlewares/route/index.d.ts +2 -0
  22. package/dist/middlewares/route/index.js +15 -2
  23. package/dist/middlewares/route/index.js.map +1 -1
  24. package/dist/middlewares/route/validateAccessControl.d.ts +7 -0
  25. package/dist/middlewares/route/validateAccessControl.js +28 -0
  26. package/dist/middlewares/route/validateAccessControl.js.map +1 -0
  27. package/dist/middlewares/route/validateRepository.d.ts +4 -0
  28. package/dist/middlewares/route/validateRepository.js +14 -24
  29. package/dist/middlewares/route/validateRepository.js.map +1 -1
  30. package/dist/models/access_control/AccessControlRoleModel.d.ts +228 -0
  31. package/dist/models/access_control/AccessControlRoleModel.js +13 -0
  32. package/dist/models/access_control/AccessControlRoleModel.js.map +1 -0
  33. package/dist/models/access_control/AccessControlRolePolicyModel.d.ts +206 -0
  34. package/dist/models/access_control/AccessControlRolePolicyModel.js +13 -0
  35. package/dist/models/access_control/AccessControlRolePolicyModel.js.map +1 -0
  36. package/dist/models/access_control/AccessControlUserRoleModel.d.ts +206 -0
  37. package/dist/models/access_control/AccessControlUserRoleModel.js +13 -0
  38. package/dist/models/access_control/AccessControlUserRoleModel.js.map +1 -0
  39. package/dist/models/index.d.ts +18 -0
  40. package/dist/models/index.js +30 -2
  41. package/dist/models/index.js.map +1 -1
  42. package/dist/models/repository/RepositoryCartonModel.d.ts +312 -0
  43. package/dist/models/repository/RepositoryCartonModel.js +13 -0
  44. package/dist/models/repository/RepositoryCartonModel.js.map +1 -0
  45. package/dist/models/repository/RepositoryContainerModel.d.ts +268 -0
  46. package/dist/models/repository/RepositoryContainerModel.js +13 -0
  47. package/dist/models/repository/RepositoryContainerModel.js.map +1 -0
  48. package/dist/models/repository/RepositoryModel.d.ts +235 -0
  49. package/dist/models/repository/RepositoryModel.js +13 -0
  50. package/dist/models/repository/RepositoryModel.js.map +1 -0
  51. package/dist/models/repository/RepositoryPackageItemModel.d.ts +334 -0
  52. package/dist/models/repository/RepositoryPackageItemModel.js +13 -0
  53. package/dist/models/repository/RepositoryPackageItemModel.js.map +1 -0
  54. package/dist/models/repository/RepositoryPackageModel.d.ts +323 -0
  55. package/dist/models/repository/RepositoryPackageModel.js +13 -0
  56. package/dist/models/repository/RepositoryPackageModel.js.map +1 -0
  57. package/dist/models/repository/RepositoryPalletModel.d.ts +301 -0
  58. package/dist/models/repository/RepositoryPalletModel.js +13 -0
  59. package/dist/models/repository/RepositoryPalletModel.js.map +1 -0
  60. package/dist/routes/access_control/accessControlPoliciesRoutes.d.ts +2 -0
  61. package/dist/routes/access_control/accessControlPoliciesRoutes.js +11 -0
  62. package/dist/routes/access_control/accessControlPoliciesRoutes.js.map +1 -0
  63. package/dist/routes/access_control/accessControlRoleRoutes.d.ts +2 -0
  64. package/dist/routes/access_control/accessControlRoleRoutes.js +15 -0
  65. package/dist/routes/access_control/accessControlRoleRoutes.js.map +1 -0
  66. package/dist/routes/access_control/accessControlRolesRoutes.d.ts +2 -0
  67. package/dist/routes/access_control/accessControlRolesRoutes.js +13 -0
  68. package/dist/routes/access_control/accessControlRolesRoutes.js.map +1 -0
  69. package/dist/routes/access_control/accessControlRoutes.d.ts +0 -1
  70. package/dist/routes/access_control/accessControlRoutes.js +8 -5
  71. package/dist/routes/access_control/accessControlRoutes.js.map +1 -1
  72. package/dist/routes/access_control/accessControlUsersRoutes.d.ts +3 -0
  73. package/dist/routes/access_control/accessControlUsersRoutes.js +13 -0
  74. package/dist/routes/access_control/accessControlUsersRoutes.js.map +1 -0
  75. package/dist/routes/index.d.ts +2 -0
  76. package/dist/routes/index.js +5 -1
  77. package/dist/routes/index.js.map +1 -1
  78. package/dist/routes/repository/repositoriesRoutes.d.ts +2 -0
  79. package/dist/routes/repository/repositoriesRoutes.js +13 -0
  80. package/dist/routes/repository/repositoriesRoutes.js.map +1 -0
  81. package/dist/routes/repository/repositoryRoutes.d.ts +2 -0
  82. package/dist/routes/repository/repositoryRoutes.js +15 -0
  83. package/dist/routes/repository/repositoryRoutes.js.map +1 -0
  84. package/dist/schema/middleware/route/index.d.ts +2 -2
  85. package/dist/schema/middleware/route/index.js +2 -1
  86. package/dist/schema/middleware/route/index.js.map +1 -1
  87. package/dist/schema/middleware/route/schemaAccessControl.d.ts +3 -0
  88. package/dist/schema/middleware/route/schemaAccessControl.js +6 -1
  89. package/dist/schema/middleware/route/schemaAccessControl.js.map +1 -1
  90. package/dist/schema/middleware/route/schemaRepository.d.ts +2 -2
  91. package/dist/schema/payload/access_control/schemaAccessControlRole.d.ts +219 -0
  92. package/dist/schema/payload/access_control/schemaAccessControlRole.js +41 -0
  93. package/dist/schema/payload/access_control/schemaAccessControlRole.js.map +1 -0
  94. package/dist/schema/payload/access_control/schemaAccessControlUser.d.ts +54 -0
  95. package/dist/schema/payload/access_control/schemaAccessControlUser.js +34 -0
  96. package/dist/schema/payload/access_control/schemaAccessControlUser.js.map +1 -0
  97. package/dist/schema/payload/business/schemaBusiness.d.ts +16 -1
  98. package/dist/schema/payload/business/schemaBusiness.js +8 -12
  99. package/dist/schema/payload/business/schemaBusiness.js.map +1 -1
  100. package/dist/schema/payload/index.d.ts +8 -0
  101. package/dist/schema/payload/index.js +18 -2
  102. package/dist/schema/payload/index.js.map +1 -1
  103. package/dist/schema/payload/injection_field/schemaInjectionField.d.ts +20 -134
  104. package/dist/schema/payload/injection_field/schemaInjectionField.js +8 -8
  105. package/dist/schema/payload/injection_field/schemaInjectionField.js.map +1 -1
  106. package/dist/schema/payload/repository/schemaRepository.d.ts +66 -0
  107. package/dist/schema/payload/repository/schemaRepository.js +26 -0
  108. package/dist/schema/payload/repository/schemaRepository.js.map +1 -0
  109. package/dist/schema/payload/repository/schemaRepositoryContainer.d.ts +292 -0
  110. package/dist/schema/payload/repository/schemaRepositoryContainer.js +41 -0
  111. package/dist/schema/payload/repository/schemaRepositoryContainer.js.map +1 -0
  112. package/dist/services/access_control/AccessControlRoleService.d.ts +49 -0
  113. package/dist/services/access_control/AccessControlRoleService.js +249 -0
  114. package/dist/services/access_control/AccessControlRoleService.js.map +1 -0
  115. package/dist/services/access_control/AccessControlUserService.d.ts +27 -0
  116. package/dist/services/access_control/AccessControlUserService.js +260 -0
  117. package/dist/services/access_control/AccessControlUserService.js.map +1 -0
  118. package/dist/services/index.d.ts +6 -0
  119. package/dist/services/index.js +8 -5
  120. package/dist/services/index.js.map +1 -1
  121. package/dist/services/injection_field/InjectionFieldService.d.ts +4 -2
  122. package/dist/services/injection_field/RepositoryInjectionFieldService.d.ts +14 -5
  123. package/dist/services/injection_field/RepositoryInjectionFieldService.js +6 -2
  124. package/dist/services/injection_field/RepositoryInjectionFieldService.js.map +1 -1
  125. package/dist/services/repository/RepositoryContainerService.d.ts +64 -0
  126. package/dist/services/repository/RepositoryContainerService.js +187 -0
  127. package/dist/services/repository/RepositoryContainerService.js.map +1 -0
  128. package/dist/services/repository/RepositoryMainService.d.ts +80 -0
  129. package/dist/services/repository/RepositoryMainService.js +143 -0
  130. package/dist/services/repository/RepositoryMainService.js.map +1 -0
  131. package/dist/services/repository/RepositoryService.d.ts +46 -0
  132. package/dist/services/repository/RepositoryService.js +133 -0
  133. package/dist/services/repository/RepositoryService.js.map +1 -0
  134. package/dist/services/scheduler/SchedulerLogService.d.ts +1 -1
  135. package/dist/services/scheduler/SchedulerLogService.js +32 -34
  136. package/dist/services/scheduler/SchedulerLogService.js.map +1 -1
  137. package/dist/utils/accessControlUtils.d.ts +17 -0
  138. package/dist/utils/accessControlUtils.js +8 -0
  139. package/dist/utils/accessControlUtils.js.map +1 -0
  140. package/dist/utils/index.d.ts +2 -1
  141. package/dist/utils/index.js +4 -1
  142. package/dist/utils/index.js.map +1 -1
  143. package/dist/utils/zodUtils.d.ts +13 -0
  144. package/dist/utils/zodUtils.js +17 -1
  145. package/dist/utils/zodUtils.js.map +1 -1
  146. package/package.json +1 -1
  147. package/prisma/schema.prisma +188 -0
@@ -0,0 +1,312 @@
1
+ import { repository_cartons, Prisma } from "@prisma/client";
2
+ import { DefaultOmitFields } from "../../lib";
3
+ import { DefaultServiceProps } from "../../utils";
4
+ declare const primaryKey = "repository_carton_id";
5
+ export declare const ModelRepositoryCartonFields: {
6
+ createdatetime: "createdatetime";
7
+ createuserid: "createuserid";
8
+ updatedatetime: "updatedatetime";
9
+ updateuserid: "updateuserid";
10
+ isdelete: "isdelete";
11
+ istrash: "istrash";
12
+ accountid: "accountid";
13
+ quantity: "quantity";
14
+ repository_id: "repository_id";
15
+ dimension_width: "dimension_width";
16
+ dimension_height: "dimension_height";
17
+ dimension_length: "dimension_length";
18
+ repository_container_id: "repository_container_id";
19
+ repository_pallet_id: "repository_pallet_id";
20
+ dimension_weight: "dimension_weight";
21
+ is_fragile: "is_fragile";
22
+ batch_number: "batch_number";
23
+ repository_carton_id: "repository_carton_id";
24
+ carton_number: "carton_number";
25
+ carton_description: "carton_description";
26
+ };
27
+ export type ModelRepositoryCarton = repository_cartons;
28
+ export type ModelRepositoryCartonOmitFields = typeof primaryKey | DefaultOmitFields;
29
+ export type ModelRepositoryCartonCreateProps = {
30
+ data: Omit<Prisma.repository_cartonsUncheckedCreateInput, ModelRepositoryCartonOmitFields>;
31
+ };
32
+ export type ModelRepositoryCartonUpdateProps = {
33
+ id: number;
34
+ data: Omit<Prisma.repository_cartonsUncheckedUpdateInput, ModelRepositoryCartonOmitFields>;
35
+ };
36
+ export type ModelRepositoryCartonTrashProps = {
37
+ ids: number[];
38
+ };
39
+ export type ModelRepositoryCartonRemoveProps = {
40
+ id: number;
41
+ };
42
+ export type ModelRepositoryCartonGetProps = {
43
+ id: number;
44
+ };
45
+ export type ModelRepositoryCartonListProps = {
46
+ where?: Prisma.repository_cartonsWhereInput;
47
+ orderBy?: Prisma.repository_cartonsOrderByWithRelationInput | Prisma.repository_cartonsOrderByWithRelationInput[];
48
+ offset?: number;
49
+ limit?: number;
50
+ };
51
+ export declare const RepositoryCartonModel: ({ ...rest }: DefaultServiceProps) => {
52
+ selectedPrisma: any;
53
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "quantity" | "repository_id" | "dimension_width" | "dimension_height" | "dimension_length" | "repository_container_id" | "repository_pallet_id" | "dimension_weight" | "is_fragile" | "batch_number" | "repository_carton_id" | "carton_number" | "carton_description";
54
+ getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
55
+ name: string;
56
+ type: string;
57
+ }[]>;
58
+ create: ({ data }: {
59
+ data: Omit<any, DefaultOmitFields>;
60
+ }) => Promise<{
61
+ createdatetime: Date | null;
62
+ createuserid: bigint;
63
+ updatedatetime: Date | null;
64
+ updateuserid: bigint;
65
+ isdelete: boolean | null;
66
+ istrash: boolean | null;
67
+ accountid: bigint;
68
+ quantity: number | null;
69
+ repository_id: bigint;
70
+ dimension_width: Prisma.Decimal | null;
71
+ dimension_height: Prisma.Decimal | null;
72
+ dimension_length: Prisma.Decimal | null;
73
+ repository_container_id: bigint;
74
+ repository_pallet_id: bigint;
75
+ dimension_weight: Prisma.Decimal | null;
76
+ is_fragile: boolean | null;
77
+ batch_number: string | null;
78
+ repository_carton_id: bigint;
79
+ carton_number: string | null;
80
+ carton_description: string | null;
81
+ }>;
82
+ createMany: ({ dataList, disableRollback, }: {
83
+ dataList: Omit<any, DefaultOmitFields>[];
84
+ disableRollback?: boolean;
85
+ }) => Promise<{
86
+ createdatetime: Date | null;
87
+ createuserid: bigint;
88
+ updatedatetime: Date | null;
89
+ updateuserid: bigint;
90
+ isdelete: boolean | null;
91
+ istrash: boolean | null;
92
+ accountid: bigint;
93
+ quantity: number | null;
94
+ repository_id: bigint;
95
+ dimension_width: Prisma.Decimal | null;
96
+ dimension_height: Prisma.Decimal | null;
97
+ dimension_length: Prisma.Decimal | null;
98
+ repository_container_id: bigint;
99
+ repository_pallet_id: bigint;
100
+ dimension_weight: Prisma.Decimal | null;
101
+ is_fragile: boolean | null;
102
+ batch_number: string | null;
103
+ repository_carton_id: bigint;
104
+ carton_number: string | null;
105
+ carton_description: string | null;
106
+ }[]>;
107
+ get: ({ id, where, include, }: {
108
+ id?: number;
109
+ where?: Record<string, any>;
110
+ include?: any;
111
+ }) => Promise<{
112
+ createdatetime: Date | null;
113
+ createuserid: bigint;
114
+ updatedatetime: Date | null;
115
+ updateuserid: bigint;
116
+ isdelete: boolean | null;
117
+ istrash: boolean | null;
118
+ accountid: bigint;
119
+ quantity: number | null;
120
+ repository_id: bigint;
121
+ dimension_width: Prisma.Decimal | null;
122
+ dimension_height: Prisma.Decimal | null;
123
+ dimension_length: Prisma.Decimal | null;
124
+ repository_container_id: bigint;
125
+ repository_pallet_id: bigint;
126
+ dimension_weight: Prisma.Decimal | null;
127
+ is_fragile: boolean | null;
128
+ batch_number: string | null;
129
+ repository_carton_id: bigint;
130
+ carton_number: string | null;
131
+ carton_description: string | null;
132
+ } | null>;
133
+ list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
134
+ createdatetime: Date | null;
135
+ createuserid: bigint;
136
+ updatedatetime: Date | null;
137
+ updateuserid: bigint;
138
+ isdelete: boolean | null;
139
+ istrash: boolean | null;
140
+ accountid: bigint;
141
+ quantity: number | null;
142
+ repository_id: bigint;
143
+ dimension_width: Prisma.Decimal | null;
144
+ dimension_height: Prisma.Decimal | null;
145
+ dimension_length: Prisma.Decimal | null;
146
+ repository_container_id: bigint;
147
+ repository_pallet_id: bigint;
148
+ dimension_weight: Prisma.Decimal | null;
149
+ is_fragile: boolean | null;
150
+ batch_number: string | null;
151
+ repository_carton_id: bigint;
152
+ carton_number: string | null;
153
+ carton_description: string | null;
154
+ }[]>;
155
+ count: ({ where }?: {
156
+ where?: Record<string, any>;
157
+ }) => Promise<number>;
158
+ aggregate: ({ field, operation, where, }: {
159
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "quantity" | "repository_id" | "dimension_width" | "dimension_height" | "dimension_length" | "repository_container_id" | "repository_pallet_id" | "dimension_weight" | "is_fragile" | "batch_number" | "repository_carton_id" | "carton_number" | "carton_description";
160
+ operation?: "sum" | "avg" | "min" | "max" | "count";
161
+ where?: Record<string, any>;
162
+ }) => Promise<number>;
163
+ update: ({ id, where, data, disableRollback }: {
164
+ id?: number;
165
+ where?: Record<string, any>;
166
+ data: Partial<{
167
+ createdatetime: Date | null;
168
+ createuserid: bigint;
169
+ updatedatetime: Date | null;
170
+ updateuserid: bigint;
171
+ isdelete: boolean | null;
172
+ istrash: boolean | null;
173
+ accountid: bigint;
174
+ quantity: number | null;
175
+ repository_id: bigint;
176
+ dimension_width: Prisma.Decimal | null;
177
+ dimension_height: Prisma.Decimal | null;
178
+ dimension_length: Prisma.Decimal | null;
179
+ repository_container_id: bigint;
180
+ repository_pallet_id: bigint;
181
+ dimension_weight: Prisma.Decimal | null;
182
+ is_fragile: boolean | null;
183
+ batch_number: string | null;
184
+ repository_carton_id: bigint;
185
+ carton_number: string | null;
186
+ carton_description: string | null;
187
+ }>;
188
+ disableRollback?: Boolean;
189
+ }) => Promise<{
190
+ createdatetime: Date | null;
191
+ createuserid: bigint;
192
+ updatedatetime: Date | null;
193
+ updateuserid: bigint;
194
+ isdelete: boolean | null;
195
+ istrash: boolean | null;
196
+ accountid: bigint;
197
+ quantity: number | null;
198
+ repository_id: bigint;
199
+ dimension_width: Prisma.Decimal | null;
200
+ dimension_height: Prisma.Decimal | null;
201
+ dimension_length: Prisma.Decimal | null;
202
+ repository_container_id: bigint;
203
+ repository_pallet_id: bigint;
204
+ dimension_weight: Prisma.Decimal | null;
205
+ is_fragile: boolean | null;
206
+ batch_number: string | null;
207
+ repository_carton_id: bigint;
208
+ carton_number: string | null;
209
+ carton_description: string | null;
210
+ }>;
211
+ updateMany: ({ dataList, disableRollback, }: {
212
+ dataList: {
213
+ where: Record<string, any>;
214
+ data: Partial<{
215
+ createdatetime: Date | null;
216
+ createuserid: bigint;
217
+ updatedatetime: Date | null;
218
+ updateuserid: bigint;
219
+ isdelete: boolean | null;
220
+ istrash: boolean | null;
221
+ accountid: bigint;
222
+ quantity: number | null;
223
+ repository_id: bigint;
224
+ dimension_width: Prisma.Decimal | null;
225
+ dimension_height: Prisma.Decimal | null;
226
+ dimension_length: Prisma.Decimal | null;
227
+ repository_container_id: bigint;
228
+ repository_pallet_id: bigint;
229
+ dimension_weight: Prisma.Decimal | null;
230
+ is_fragile: boolean | null;
231
+ batch_number: string | null;
232
+ repository_carton_id: bigint;
233
+ carton_number: string | null;
234
+ carton_description: string | null;
235
+ }>;
236
+ }[];
237
+ disableRollback?: boolean;
238
+ }) => Promise<{
239
+ createdatetime: Date | null;
240
+ createuserid: bigint;
241
+ updatedatetime: Date | null;
242
+ updateuserid: bigint;
243
+ isdelete: boolean | null;
244
+ istrash: boolean | null;
245
+ accountid: bigint;
246
+ quantity: number | null;
247
+ repository_id: bigint;
248
+ dimension_width: Prisma.Decimal | null;
249
+ dimension_height: Prisma.Decimal | null;
250
+ dimension_length: Prisma.Decimal | null;
251
+ repository_container_id: bigint;
252
+ repository_pallet_id: bigint;
253
+ dimension_weight: Prisma.Decimal | null;
254
+ is_fragile: boolean | null;
255
+ batch_number: string | null;
256
+ repository_carton_id: bigint;
257
+ carton_number: string | null;
258
+ carton_description: string | null;
259
+ }[]>;
260
+ trash: ({ ids }: {
261
+ ids: number[];
262
+ }) => Promise<{
263
+ createdatetime: Date | null;
264
+ createuserid: bigint;
265
+ updatedatetime: Date | null;
266
+ updateuserid: bigint;
267
+ isdelete: boolean | null;
268
+ istrash: boolean | null;
269
+ accountid: bigint;
270
+ quantity: number | null;
271
+ repository_id: bigint;
272
+ dimension_width: Prisma.Decimal | null;
273
+ dimension_height: Prisma.Decimal | null;
274
+ dimension_length: Prisma.Decimal | null;
275
+ repository_container_id: bigint;
276
+ repository_pallet_id: bigint;
277
+ dimension_weight: Prisma.Decimal | null;
278
+ is_fragile: boolean | null;
279
+ batch_number: string | null;
280
+ repository_carton_id: bigint;
281
+ carton_number: string | null;
282
+ carton_description: string | null;
283
+ }[]>;
284
+ remove: ({ ids, where }: {
285
+ ids?: number[];
286
+ where?: Record<string, any>;
287
+ }) => Promise<{
288
+ createdatetime: Date | null;
289
+ createuserid: bigint;
290
+ updatedatetime: Date | null;
291
+ updateuserid: bigint;
292
+ isdelete: boolean | null;
293
+ istrash: boolean | null;
294
+ accountid: bigint;
295
+ quantity: number | null;
296
+ repository_id: bigint;
297
+ dimension_width: Prisma.Decimal | null;
298
+ dimension_height: Prisma.Decimal | null;
299
+ dimension_length: Prisma.Decimal | null;
300
+ repository_container_id: bigint;
301
+ repository_pallet_id: bigint;
302
+ dimension_weight: Prisma.Decimal | null;
303
+ is_fragile: boolean | null;
304
+ batch_number: string | null;
305
+ repository_carton_id: bigint;
306
+ carton_number: string | null;
307
+ carton_description: string | null;
308
+ }[]>;
309
+ raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
310
+ rawExec: (query: string, params?: any[]) => Promise<number>;
311
+ };
312
+ export {};
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RepositoryCartonModel = exports.ModelRepositoryCartonFields = void 0;
4
+ const lib_1 = require("../../lib");
5
+ const primaryKey = "repository_carton_id";
6
+ exports.ModelRepositoryCartonFields = (0, lib_1.getFieldsByType)();
7
+ const RepositoryCartonModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
8
+ ...rest,
9
+ modelName: "repository_cartons",
10
+ primaryKey
11
+ });
12
+ exports.RepositoryCartonModel = RepositoryCartonModel;
13
+ //# sourceMappingURL=RepositoryCartonModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepositoryCartonModel.js","sourceRoot":"","sources":["../../../src/models/repository/RepositoryCartonModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAE7B,QAAA,2BAA2B,GAAG,IAAA,qBAAe,GAAsB,CAAC;AAkC1E,MAAM,qBAAqB,GAAG,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,EAAE,CACtE,IAAA,kBAAY,EAA6F;IACrG,GAAG,IAAI;IACP,SAAS,EAAE,oBAAoB;IAC/B,UAAU;CACb,CAAC,CAAC;AALM,QAAA,qBAAqB,yBAK3B","sourcesContent":["import { PrismaClient, repository_cartons, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"repository_carton_id\";\n\nexport const ModelRepositoryCartonFields = getFieldsByType<repository_cartons>();\n\nexport type ModelRepositoryCarton = repository_cartons;\n\nexport type ModelRepositoryCartonOmitFields = typeof primaryKey | DefaultOmitFields;\n\nexport type ModelRepositoryCartonCreateProps = {\n data: Omit<Prisma.repository_cartonsUncheckedCreateInput, ModelRepositoryCartonOmitFields>;\n};\n\nexport type ModelRepositoryCartonUpdateProps = {\n id: number;\n data: Omit<Prisma.repository_cartonsUncheckedUpdateInput, ModelRepositoryCartonOmitFields>;\n};\n\nexport type ModelRepositoryCartonTrashProps = {\n ids: number[];\n};\n\nexport type ModelRepositoryCartonRemoveProps = {\n id: number;\n};\n\nexport type ModelRepositoryCartonGetProps = {\n id: number;\n};\n\nexport type ModelRepositoryCartonListProps = {\n where?: Prisma.repository_cartonsWhereInput;\n orderBy?: Prisma.repository_cartonsOrderByWithRelationInput | Prisma.repository_cartonsOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\nexport const RepositoryCartonModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"repository_cartons\", PrismaClient[\"repository_cartons\"], repository_cartons>({\n ...rest,\n modelName: \"repository_cartons\",\n primaryKey\n });\n"]}
@@ -0,0 +1,268 @@
1
+ import { repository_containers, Prisma } from "@prisma/client";
2
+ import { DefaultOmitFields } from "../../lib";
3
+ import { DefaultServiceProps } from "../../utils";
4
+ declare const primaryKey = "repository_container_id";
5
+ export declare const ModelRepositoryContainerFields: {
6
+ createdatetime: "createdatetime";
7
+ createuserid: "createuserid";
8
+ updatedatetime: "updatedatetime";
9
+ updateuserid: "updateuserid";
10
+ isdelete: "isdelete";
11
+ istrash: "istrash";
12
+ accountid: "accountid";
13
+ repository_id: "repository_id";
14
+ repository_container_id: "repository_container_id";
15
+ container_number: "container_number";
16
+ container_description: "container_description";
17
+ seal_number: "seal_number";
18
+ shipping_provider_name: "shipping_provider_name";
19
+ inspection_provider_name: "inspection_provider_name";
20
+ load_date: "load_date";
21
+ arrival_date: "arrival_date";
22
+ };
23
+ export type ModelRepositoryContainer = repository_containers;
24
+ export type ModelRepositoryContainerOmitFields = typeof primaryKey | DefaultOmitFields;
25
+ export type ModelRepositoryContainerCreateProps = {
26
+ data: Omit<Prisma.repository_containersUncheckedCreateInput, ModelRepositoryContainerOmitFields>;
27
+ };
28
+ export type ModelRepositoryContainerUpdateProps = {
29
+ id: number;
30
+ data: Omit<Prisma.repository_containersUncheckedUpdateInput, ModelRepositoryContainerOmitFields>;
31
+ };
32
+ export type ModelRepositoryContainerTrashProps = {
33
+ ids: number[];
34
+ };
35
+ export type ModelRepositoryContainerRemoveProps = {
36
+ id: number;
37
+ };
38
+ export type ModelRepositoryContainerGetProps = {
39
+ id: number;
40
+ };
41
+ export type ModelRepositoryContainerListProps = {
42
+ where?: Prisma.repository_containersWhereInput;
43
+ orderBy?: Prisma.repository_containersOrderByWithRelationInput | Prisma.repository_containersOrderByWithRelationInput[];
44
+ offset?: number;
45
+ limit?: number;
46
+ };
47
+ export declare const RepositoryContainerModel: ({ ...rest }: DefaultServiceProps) => {
48
+ selectedPrisma: any;
49
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "repository_id" | "repository_container_id" | "container_number" | "container_description" | "seal_number" | "shipping_provider_name" | "inspection_provider_name" | "load_date" | "arrival_date";
50
+ getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
51
+ name: string;
52
+ type: string;
53
+ }[]>;
54
+ create: ({ data }: {
55
+ data: Omit<any, DefaultOmitFields>;
56
+ }) => Promise<{
57
+ createdatetime: Date | null;
58
+ createuserid: bigint;
59
+ updatedatetime: Date | null;
60
+ updateuserid: bigint;
61
+ isdelete: boolean | null;
62
+ istrash: boolean | null;
63
+ accountid: bigint;
64
+ repository_id: bigint;
65
+ repository_container_id: bigint;
66
+ container_number: string | null;
67
+ container_description: string | null;
68
+ seal_number: string | null;
69
+ shipping_provider_name: string | null;
70
+ inspection_provider_name: string | null;
71
+ load_date: Date | null;
72
+ arrival_date: Date | null;
73
+ }>;
74
+ createMany: ({ dataList, disableRollback, }: {
75
+ dataList: Omit<any, DefaultOmitFields>[];
76
+ disableRollback?: boolean;
77
+ }) => Promise<{
78
+ createdatetime: Date | null;
79
+ createuserid: bigint;
80
+ updatedatetime: Date | null;
81
+ updateuserid: bigint;
82
+ isdelete: boolean | null;
83
+ istrash: boolean | null;
84
+ accountid: bigint;
85
+ repository_id: bigint;
86
+ repository_container_id: bigint;
87
+ container_number: string | null;
88
+ container_description: string | null;
89
+ seal_number: string | null;
90
+ shipping_provider_name: string | null;
91
+ inspection_provider_name: string | null;
92
+ load_date: Date | null;
93
+ arrival_date: Date | null;
94
+ }[]>;
95
+ get: ({ id, where, include, }: {
96
+ id?: number;
97
+ where?: Record<string, any>;
98
+ include?: any;
99
+ }) => Promise<{
100
+ createdatetime: Date | null;
101
+ createuserid: bigint;
102
+ updatedatetime: Date | null;
103
+ updateuserid: bigint;
104
+ isdelete: boolean | null;
105
+ istrash: boolean | null;
106
+ accountid: bigint;
107
+ repository_id: bigint;
108
+ repository_container_id: bigint;
109
+ container_number: string | null;
110
+ container_description: string | null;
111
+ seal_number: string | null;
112
+ shipping_provider_name: string | null;
113
+ inspection_provider_name: string | null;
114
+ load_date: Date | null;
115
+ arrival_date: Date | null;
116
+ } | null>;
117
+ list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
118
+ createdatetime: Date | null;
119
+ createuserid: bigint;
120
+ updatedatetime: Date | null;
121
+ updateuserid: bigint;
122
+ isdelete: boolean | null;
123
+ istrash: boolean | null;
124
+ accountid: bigint;
125
+ repository_id: bigint;
126
+ repository_container_id: bigint;
127
+ container_number: string | null;
128
+ container_description: string | null;
129
+ seal_number: string | null;
130
+ shipping_provider_name: string | null;
131
+ inspection_provider_name: string | null;
132
+ load_date: Date | null;
133
+ arrival_date: Date | null;
134
+ }[]>;
135
+ count: ({ where }?: {
136
+ where?: Record<string, any>;
137
+ }) => Promise<number>;
138
+ aggregate: ({ field, operation, where, }: {
139
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "repository_id" | "repository_container_id" | "container_number" | "container_description" | "seal_number" | "shipping_provider_name" | "inspection_provider_name" | "load_date" | "arrival_date";
140
+ operation?: "sum" | "avg" | "min" | "max" | "count";
141
+ where?: Record<string, any>;
142
+ }) => Promise<number>;
143
+ update: ({ id, where, data, disableRollback }: {
144
+ id?: number;
145
+ where?: Record<string, any>;
146
+ data: Partial<{
147
+ createdatetime: Date | null;
148
+ createuserid: bigint;
149
+ updatedatetime: Date | null;
150
+ updateuserid: bigint;
151
+ isdelete: boolean | null;
152
+ istrash: boolean | null;
153
+ accountid: bigint;
154
+ repository_id: bigint;
155
+ repository_container_id: bigint;
156
+ container_number: string | null;
157
+ container_description: string | null;
158
+ seal_number: string | null;
159
+ shipping_provider_name: string | null;
160
+ inspection_provider_name: string | null;
161
+ load_date: Date | null;
162
+ arrival_date: Date | null;
163
+ }>;
164
+ disableRollback?: Boolean;
165
+ }) => Promise<{
166
+ createdatetime: Date | null;
167
+ createuserid: bigint;
168
+ updatedatetime: Date | null;
169
+ updateuserid: bigint;
170
+ isdelete: boolean | null;
171
+ istrash: boolean | null;
172
+ accountid: bigint;
173
+ repository_id: bigint;
174
+ repository_container_id: bigint;
175
+ container_number: string | null;
176
+ container_description: string | null;
177
+ seal_number: string | null;
178
+ shipping_provider_name: string | null;
179
+ inspection_provider_name: string | null;
180
+ load_date: Date | null;
181
+ arrival_date: Date | null;
182
+ }>;
183
+ updateMany: ({ dataList, disableRollback, }: {
184
+ dataList: {
185
+ where: Record<string, any>;
186
+ data: Partial<{
187
+ createdatetime: Date | null;
188
+ createuserid: bigint;
189
+ updatedatetime: Date | null;
190
+ updateuserid: bigint;
191
+ isdelete: boolean | null;
192
+ istrash: boolean | null;
193
+ accountid: bigint;
194
+ repository_id: bigint;
195
+ repository_container_id: bigint;
196
+ container_number: string | null;
197
+ container_description: string | null;
198
+ seal_number: string | null;
199
+ shipping_provider_name: string | null;
200
+ inspection_provider_name: string | null;
201
+ load_date: Date | null;
202
+ arrival_date: Date | null;
203
+ }>;
204
+ }[];
205
+ disableRollback?: boolean;
206
+ }) => Promise<{
207
+ createdatetime: Date | null;
208
+ createuserid: bigint;
209
+ updatedatetime: Date | null;
210
+ updateuserid: bigint;
211
+ isdelete: boolean | null;
212
+ istrash: boolean | null;
213
+ accountid: bigint;
214
+ repository_id: bigint;
215
+ repository_container_id: bigint;
216
+ container_number: string | null;
217
+ container_description: string | null;
218
+ seal_number: string | null;
219
+ shipping_provider_name: string | null;
220
+ inspection_provider_name: string | null;
221
+ load_date: Date | null;
222
+ arrival_date: Date | null;
223
+ }[]>;
224
+ trash: ({ ids }: {
225
+ ids: number[];
226
+ }) => Promise<{
227
+ createdatetime: Date | null;
228
+ createuserid: bigint;
229
+ updatedatetime: Date | null;
230
+ updateuserid: bigint;
231
+ isdelete: boolean | null;
232
+ istrash: boolean | null;
233
+ accountid: bigint;
234
+ repository_id: bigint;
235
+ repository_container_id: bigint;
236
+ container_number: string | null;
237
+ container_description: string | null;
238
+ seal_number: string | null;
239
+ shipping_provider_name: string | null;
240
+ inspection_provider_name: string | null;
241
+ load_date: Date | null;
242
+ arrival_date: Date | null;
243
+ }[]>;
244
+ remove: ({ ids, where }: {
245
+ ids?: number[];
246
+ where?: Record<string, any>;
247
+ }) => Promise<{
248
+ createdatetime: Date | null;
249
+ createuserid: bigint;
250
+ updatedatetime: Date | null;
251
+ updateuserid: bigint;
252
+ isdelete: boolean | null;
253
+ istrash: boolean | null;
254
+ accountid: bigint;
255
+ repository_id: bigint;
256
+ repository_container_id: bigint;
257
+ container_number: string | null;
258
+ container_description: string | null;
259
+ seal_number: string | null;
260
+ shipping_provider_name: string | null;
261
+ inspection_provider_name: string | null;
262
+ load_date: Date | null;
263
+ arrival_date: Date | null;
264
+ }[]>;
265
+ raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
266
+ rawExec: (query: string, params?: any[]) => Promise<number>;
267
+ };
268
+ export {};
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RepositoryContainerModel = exports.ModelRepositoryContainerFields = void 0;
4
+ const lib_1 = require("../../lib");
5
+ const primaryKey = "repository_container_id";
6
+ exports.ModelRepositoryContainerFields = (0, lib_1.getFieldsByType)();
7
+ const RepositoryContainerModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
8
+ ...rest,
9
+ modelName: "repository_containers",
10
+ primaryKey
11
+ });
12
+ exports.RepositoryContainerModel = RepositoryContainerModel;
13
+ //# sourceMappingURL=RepositoryContainerModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepositoryContainerModel.js","sourceRoot":"","sources":["../../../src/models/repository/RepositoryContainerModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,yBAAyB,CAAC;AAEhC,QAAA,8BAA8B,GAAG,IAAA,qBAAe,GAAyB,CAAC;AAkChF,MAAM,wBAAwB,GAAG,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,EAAE,CACzE,IAAA,kBAAY,EAAsG;IAC9G,GAAG,IAAI;IACP,SAAS,EAAE,uBAAuB;IAClC,UAAU;CACb,CAAC,CAAC;AALM,QAAA,wBAAwB,4BAK9B","sourcesContent":["import { PrismaClient, repository_containers, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"repository_container_id\";\n\nexport const ModelRepositoryContainerFields = getFieldsByType<repository_containers>();\n\nexport type ModelRepositoryContainer = repository_containers;\n\nexport type ModelRepositoryContainerOmitFields = typeof primaryKey | DefaultOmitFields;\n\nexport type ModelRepositoryContainerCreateProps = {\n data: Omit<Prisma.repository_containersUncheckedCreateInput, ModelRepositoryContainerOmitFields>;\n};\n\nexport type ModelRepositoryContainerUpdateProps = {\n id: number;\n data: Omit<Prisma.repository_containersUncheckedUpdateInput, ModelRepositoryContainerOmitFields>;\n};\n\nexport type ModelRepositoryContainerTrashProps = {\n ids: number[];\n};\n\nexport type ModelRepositoryContainerRemoveProps = {\n id: number;\n};\n\nexport type ModelRepositoryContainerGetProps = {\n id: number;\n};\n\nexport type ModelRepositoryContainerListProps = {\n where?: Prisma.repository_containersWhereInput;\n orderBy?: Prisma.repository_containersOrderByWithRelationInput | Prisma.repository_containersOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\nexport const RepositoryContainerModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"repository_containers\", PrismaClient[\"repository_containers\"], repository_containers>({\n ...rest,\n modelName: \"repository_containers\",\n primaryKey\n });\n"]}