storemw-core-api 1.0.148 → 1.0.150
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.
- package/dist/app.js +3 -1
- package/dist/app.js.map +1 -1
- package/dist/controllers/access_control/accessControlRoleController.d.ts +11 -0
- package/dist/controllers/access_control/accessControlRoleController.js +156 -0
- package/dist/controllers/access_control/accessControlRoleController.js.map +1 -0
- package/dist/controllers/access_control/accessControlUserController.d.ts +7 -0
- package/dist/controllers/access_control/accessControlUserController.js +140 -0
- package/dist/controllers/access_control/accessControlUserController.js.map +1 -0
- package/dist/controllers/index.d.ts +3 -0
- package/dist/controllers/index.js +16 -2
- package/dist/controllers/index.js.map +1 -1
- package/dist/controllers/repository/repositoryController.d.ts +12 -0
- package/dist/controllers/repository/repositoryController.js +249 -0
- package/dist/controllers/repository/repositoryController.js.map +1 -0
- package/dist/middlewares/route/index.d.ts +2 -0
- package/dist/middlewares/route/index.js +15 -2
- package/dist/middlewares/route/index.js.map +1 -1
- package/dist/middlewares/route/validateAccessControl.d.ts +7 -0
- package/dist/middlewares/route/validateAccessControl.js +28 -0
- package/dist/middlewares/route/validateAccessControl.js.map +1 -0
- package/dist/middlewares/route/validateRepository.d.ts +4 -0
- package/dist/middlewares/route/validateRepository.js +14 -24
- package/dist/middlewares/route/validateRepository.js.map +1 -1
- package/dist/models/access_control/AccessControlRoleModel.d.ts +228 -0
- package/dist/models/access_control/AccessControlRoleModel.js +13 -0
- package/dist/models/access_control/AccessControlRoleModel.js.map +1 -0
- package/dist/models/access_control/AccessControlRolePolicyModel.d.ts +206 -0
- package/dist/models/access_control/AccessControlRolePolicyModel.js +13 -0
- package/dist/models/access_control/AccessControlRolePolicyModel.js.map +1 -0
- package/dist/models/access_control/AccessControlUserRoleModel.d.ts +206 -0
- package/dist/models/access_control/AccessControlUserRoleModel.js +13 -0
- package/dist/models/access_control/AccessControlUserRoleModel.js.map +1 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +30 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/repository/RepositoryCartonModel.d.ts +312 -0
- package/dist/models/repository/RepositoryCartonModel.js +13 -0
- package/dist/models/repository/RepositoryCartonModel.js.map +1 -0
- package/dist/models/repository/RepositoryContainerModel.d.ts +268 -0
- package/dist/models/repository/RepositoryContainerModel.js +13 -0
- package/dist/models/repository/RepositoryContainerModel.js.map +1 -0
- package/dist/models/repository/RepositoryModel.d.ts +235 -0
- package/dist/models/repository/RepositoryModel.js +13 -0
- package/dist/models/repository/RepositoryModel.js.map +1 -0
- package/dist/models/repository/RepositoryPackageItemModel.d.ts +334 -0
- package/dist/models/repository/RepositoryPackageItemModel.js +13 -0
- package/dist/models/repository/RepositoryPackageItemModel.js.map +1 -0
- package/dist/models/repository/RepositoryPackageModel.d.ts +323 -0
- package/dist/models/repository/RepositoryPackageModel.js +13 -0
- package/dist/models/repository/RepositoryPackageModel.js.map +1 -0
- package/dist/models/repository/RepositoryPalletModel.d.ts +301 -0
- package/dist/models/repository/RepositoryPalletModel.js +13 -0
- package/dist/models/repository/RepositoryPalletModel.js.map +1 -0
- package/dist/routes/access_control/accessControlPoliciesRoutes.d.ts +2 -0
- package/dist/routes/access_control/accessControlPoliciesRoutes.js +11 -0
- package/dist/routes/access_control/accessControlPoliciesRoutes.js.map +1 -0
- package/dist/routes/access_control/accessControlRoleRoutes.d.ts +2 -0
- package/dist/routes/access_control/accessControlRoleRoutes.js +15 -0
- package/dist/routes/access_control/accessControlRoleRoutes.js.map +1 -0
- package/dist/routes/access_control/accessControlRolesRoutes.d.ts +2 -0
- package/dist/routes/access_control/accessControlRolesRoutes.js +13 -0
- package/dist/routes/access_control/accessControlRolesRoutes.js.map +1 -0
- package/dist/routes/access_control/accessControlRoutes.d.ts +0 -1
- package/dist/routes/access_control/accessControlRoutes.js +8 -5
- package/dist/routes/access_control/accessControlRoutes.js.map +1 -1
- package/dist/routes/access_control/accessControlUsersRoutes.d.ts +3 -0
- package/dist/routes/access_control/accessControlUsersRoutes.js +13 -0
- package/dist/routes/access_control/accessControlUsersRoutes.js.map +1 -0
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/index.js +5 -1
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/repository/repositoriesRoutes.d.ts +2 -0
- package/dist/routes/repository/repositoriesRoutes.js +13 -0
- package/dist/routes/repository/repositoriesRoutes.js.map +1 -0
- package/dist/routes/repository/repositoryRoutes.d.ts +2 -0
- package/dist/routes/repository/repositoryRoutes.js +15 -0
- package/dist/routes/repository/repositoryRoutes.js.map +1 -0
- package/dist/routes/user/userMeRoutes.js +2 -2
- package/dist/routes/user/userMeRoutes.js.map +1 -1
- package/dist/schema/middleware/route/index.d.ts +2 -2
- package/dist/schema/middleware/route/index.js +2 -1
- package/dist/schema/middleware/route/index.js.map +1 -1
- package/dist/schema/middleware/route/schemaAccessControl.d.ts +3 -0
- package/dist/schema/middleware/route/schemaAccessControl.js +6 -1
- package/dist/schema/middleware/route/schemaAccessControl.js.map +1 -1
- package/dist/schema/middleware/route/schemaRepository.d.ts +2 -2
- package/dist/schema/payload/access_control/schemaAccessControlRole.d.ts +219 -0
- package/dist/schema/payload/access_control/schemaAccessControlRole.js +41 -0
- package/dist/schema/payload/access_control/schemaAccessControlRole.js.map +1 -0
- package/dist/schema/payload/access_control/schemaAccessControlUser.d.ts +54 -0
- package/dist/schema/payload/access_control/schemaAccessControlUser.js +34 -0
- package/dist/schema/payload/access_control/schemaAccessControlUser.js.map +1 -0
- package/dist/schema/payload/business/schemaBusiness.d.ts +16 -1
- package/dist/schema/payload/business/schemaBusiness.js +8 -12
- package/dist/schema/payload/business/schemaBusiness.js.map +1 -1
- package/dist/schema/payload/index.d.ts +8 -0
- package/dist/schema/payload/index.js +18 -2
- package/dist/schema/payload/index.js.map +1 -1
- package/dist/schema/payload/injection_field/schemaInjectionField.d.ts +20 -134
- package/dist/schema/payload/injection_field/schemaInjectionField.js +8 -8
- package/dist/schema/payload/injection_field/schemaInjectionField.js.map +1 -1
- package/dist/schema/payload/repository/schemaRepository.d.ts +66 -0
- package/dist/schema/payload/repository/schemaRepository.js +26 -0
- package/dist/schema/payload/repository/schemaRepository.js.map +1 -0
- package/dist/schema/payload/repository/schemaRepositoryContainer.d.ts +292 -0
- package/dist/schema/payload/repository/schemaRepositoryContainer.js +41 -0
- package/dist/schema/payload/repository/schemaRepositoryContainer.js.map +1 -0
- package/dist/services/access_control/AccessControlRoleService.d.ts +49 -0
- package/dist/services/access_control/AccessControlRoleService.js +249 -0
- package/dist/services/access_control/AccessControlRoleService.js.map +1 -0
- package/dist/services/access_control/AccessControlUserService.d.ts +27 -0
- package/dist/services/access_control/AccessControlUserService.js +260 -0
- package/dist/services/access_control/AccessControlUserService.js.map +1 -0
- package/dist/services/index.d.ts +6 -0
- package/dist/services/index.js +8 -5
- package/dist/services/index.js.map +1 -1
- package/dist/services/injection_field/InjectionFieldService.d.ts +4 -2
- package/dist/services/injection_field/RepositoryInjectionFieldService.d.ts +14 -5
- package/dist/services/injection_field/RepositoryInjectionFieldService.js +6 -2
- package/dist/services/injection_field/RepositoryInjectionFieldService.js.map +1 -1
- package/dist/services/repository/RepositoryContainerService.d.ts +64 -0
- package/dist/services/repository/RepositoryContainerService.js +187 -0
- package/dist/services/repository/RepositoryContainerService.js.map +1 -0
- package/dist/services/repository/RepositoryMainService.d.ts +80 -0
- package/dist/services/repository/RepositoryMainService.js +143 -0
- package/dist/services/repository/RepositoryMainService.js.map +1 -0
- package/dist/services/repository/RepositoryService.d.ts +46 -0
- package/dist/services/repository/RepositoryService.js +133 -0
- package/dist/services/repository/RepositoryService.js.map +1 -0
- package/dist/utils/accessControlUtils.d.ts +17 -0
- package/dist/utils/accessControlUtils.js +8 -0
- package/dist/utils/accessControlUtils.js.map +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +4 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/zodUtils.d.ts +13 -0
- package/dist/utils/zodUtils.js +17 -1
- package/dist/utils/zodUtils.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +188 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { repository_package_items, Prisma } from "@prisma/client";
|
|
2
|
+
import { DefaultOmitFields } from "../../lib";
|
|
3
|
+
import { DefaultServiceProps } from "../../utils";
|
|
4
|
+
declare const primaryKey = "repository_package_item_id";
|
|
5
|
+
export declare const ModelRepositoryPackageItemFields: {
|
|
6
|
+
createdatetime: "createdatetime";
|
|
7
|
+
createuserid: "createuserid";
|
|
8
|
+
updatedatetime: "updatedatetime";
|
|
9
|
+
updateuserid: "updateuserid";
|
|
10
|
+
isdelete: "isdelete";
|
|
11
|
+
istrash: "istrash";
|
|
12
|
+
accountid: "accountid";
|
|
13
|
+
document_id: "document_id";
|
|
14
|
+
item_id: "item_id";
|
|
15
|
+
item_name: "item_name";
|
|
16
|
+
quantity: "quantity";
|
|
17
|
+
repository_id: "repository_id";
|
|
18
|
+
item_description: "item_description";
|
|
19
|
+
dimension_width: "dimension_width";
|
|
20
|
+
dimension_height: "dimension_height";
|
|
21
|
+
dimension_length: "dimension_length";
|
|
22
|
+
dimension_weight: "dimension_weight";
|
|
23
|
+
is_fragile: "is_fragile";
|
|
24
|
+
batch_number: "batch_number";
|
|
25
|
+
repository_package_id: "repository_package_id";
|
|
26
|
+
repository_package_item_id: "repository_package_item_id";
|
|
27
|
+
item_number: "item_number";
|
|
28
|
+
};
|
|
29
|
+
export type ModelRepositoryPackageItem = repository_package_items;
|
|
30
|
+
export type ModelRepositoryPackageItemOmitFields = typeof primaryKey | DefaultOmitFields;
|
|
31
|
+
export type ModelRepositoryPackageItemCreateProps = {
|
|
32
|
+
data: Omit<Prisma.repository_package_itemsUncheckedCreateInput, ModelRepositoryPackageItemOmitFields>;
|
|
33
|
+
};
|
|
34
|
+
export type ModelRepositoryPackageItemUpdateProps = {
|
|
35
|
+
id: number;
|
|
36
|
+
data: Omit<Prisma.repository_package_itemsUncheckedUpdateInput, ModelRepositoryPackageItemOmitFields>;
|
|
37
|
+
};
|
|
38
|
+
export type ModelRepositoryPackageItemTrashProps = {
|
|
39
|
+
ids: number[];
|
|
40
|
+
};
|
|
41
|
+
export type ModelRepositoryPackageItemRemoveProps = {
|
|
42
|
+
id: number;
|
|
43
|
+
};
|
|
44
|
+
export type ModelRepositoryPackageItemGetProps = {
|
|
45
|
+
id: number;
|
|
46
|
+
};
|
|
47
|
+
export type ModelRepositoryPackageItemListProps = {
|
|
48
|
+
where?: Prisma.repository_package_itemsWhereInput;
|
|
49
|
+
orderBy?: Prisma.repository_package_itemsOrderByWithRelationInput | Prisma.repository_package_itemsOrderByWithRelationInput[];
|
|
50
|
+
offset?: number;
|
|
51
|
+
limit?: number;
|
|
52
|
+
};
|
|
53
|
+
export declare const RepositoryPackageItemModel: ({ ...rest }: DefaultServiceProps) => {
|
|
54
|
+
selectedPrisma: any;
|
|
55
|
+
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "document_id" | "item_id" | "item_name" | "quantity" | "repository_id" | "item_description" | "dimension_width" | "dimension_height" | "dimension_length" | "dimension_weight" | "is_fragile" | "batch_number" | "repository_package_id" | "repository_package_item_id" | "item_number";
|
|
56
|
+
getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
|
|
57
|
+
name: string;
|
|
58
|
+
type: string;
|
|
59
|
+
}[]>;
|
|
60
|
+
create: ({ data }: {
|
|
61
|
+
data: Omit<any, DefaultOmitFields>;
|
|
62
|
+
}) => Promise<{
|
|
63
|
+
createdatetime: Date | null;
|
|
64
|
+
createuserid: bigint;
|
|
65
|
+
updatedatetime: Date | null;
|
|
66
|
+
updateuserid: bigint;
|
|
67
|
+
isdelete: boolean | null;
|
|
68
|
+
istrash: boolean | null;
|
|
69
|
+
accountid: bigint;
|
|
70
|
+
document_id: bigint;
|
|
71
|
+
item_id: bigint;
|
|
72
|
+
item_name: string | null;
|
|
73
|
+
quantity: number | null;
|
|
74
|
+
repository_id: bigint;
|
|
75
|
+
item_description: string | null;
|
|
76
|
+
dimension_width: Prisma.Decimal | null;
|
|
77
|
+
dimension_height: Prisma.Decimal | null;
|
|
78
|
+
dimension_length: Prisma.Decimal | null;
|
|
79
|
+
dimension_weight: Prisma.Decimal | null;
|
|
80
|
+
is_fragile: boolean | null;
|
|
81
|
+
batch_number: string | null;
|
|
82
|
+
repository_package_id: bigint;
|
|
83
|
+
repository_package_item_id: bigint;
|
|
84
|
+
item_number: string | null;
|
|
85
|
+
}>;
|
|
86
|
+
createMany: ({ dataList, disableRollback, }: {
|
|
87
|
+
dataList: Omit<any, DefaultOmitFields>[];
|
|
88
|
+
disableRollback?: boolean;
|
|
89
|
+
}) => Promise<{
|
|
90
|
+
createdatetime: Date | null;
|
|
91
|
+
createuserid: bigint;
|
|
92
|
+
updatedatetime: Date | null;
|
|
93
|
+
updateuserid: bigint;
|
|
94
|
+
isdelete: boolean | null;
|
|
95
|
+
istrash: boolean | null;
|
|
96
|
+
accountid: bigint;
|
|
97
|
+
document_id: bigint;
|
|
98
|
+
item_id: bigint;
|
|
99
|
+
item_name: string | null;
|
|
100
|
+
quantity: number | null;
|
|
101
|
+
repository_id: bigint;
|
|
102
|
+
item_description: string | null;
|
|
103
|
+
dimension_width: Prisma.Decimal | null;
|
|
104
|
+
dimension_height: Prisma.Decimal | null;
|
|
105
|
+
dimension_length: Prisma.Decimal | null;
|
|
106
|
+
dimension_weight: Prisma.Decimal | null;
|
|
107
|
+
is_fragile: boolean | null;
|
|
108
|
+
batch_number: string | null;
|
|
109
|
+
repository_package_id: bigint;
|
|
110
|
+
repository_package_item_id: bigint;
|
|
111
|
+
item_number: string | null;
|
|
112
|
+
}[]>;
|
|
113
|
+
get: ({ id, where, include, }: {
|
|
114
|
+
id?: number;
|
|
115
|
+
where?: Record<string, any>;
|
|
116
|
+
include?: any;
|
|
117
|
+
}) => 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
|
+
document_id: bigint;
|
|
126
|
+
item_id: bigint;
|
|
127
|
+
item_name: string | null;
|
|
128
|
+
quantity: number | null;
|
|
129
|
+
repository_id: bigint;
|
|
130
|
+
item_description: string | null;
|
|
131
|
+
dimension_width: Prisma.Decimal | null;
|
|
132
|
+
dimension_height: Prisma.Decimal | null;
|
|
133
|
+
dimension_length: Prisma.Decimal | null;
|
|
134
|
+
dimension_weight: Prisma.Decimal | null;
|
|
135
|
+
is_fragile: boolean | null;
|
|
136
|
+
batch_number: string | null;
|
|
137
|
+
repository_package_id: bigint;
|
|
138
|
+
repository_package_item_id: bigint;
|
|
139
|
+
item_number: string | null;
|
|
140
|
+
} | null>;
|
|
141
|
+
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
142
|
+
createdatetime: Date | null;
|
|
143
|
+
createuserid: bigint;
|
|
144
|
+
updatedatetime: Date | null;
|
|
145
|
+
updateuserid: bigint;
|
|
146
|
+
isdelete: boolean | null;
|
|
147
|
+
istrash: boolean | null;
|
|
148
|
+
accountid: bigint;
|
|
149
|
+
document_id: bigint;
|
|
150
|
+
item_id: bigint;
|
|
151
|
+
item_name: string | null;
|
|
152
|
+
quantity: number | null;
|
|
153
|
+
repository_id: bigint;
|
|
154
|
+
item_description: string | null;
|
|
155
|
+
dimension_width: Prisma.Decimal | null;
|
|
156
|
+
dimension_height: Prisma.Decimal | null;
|
|
157
|
+
dimension_length: Prisma.Decimal | null;
|
|
158
|
+
dimension_weight: Prisma.Decimal | null;
|
|
159
|
+
is_fragile: boolean | null;
|
|
160
|
+
batch_number: string | null;
|
|
161
|
+
repository_package_id: bigint;
|
|
162
|
+
repository_package_item_id: bigint;
|
|
163
|
+
item_number: string | null;
|
|
164
|
+
}[]>;
|
|
165
|
+
count: ({ where }?: {
|
|
166
|
+
where?: Record<string, any>;
|
|
167
|
+
}) => Promise<number>;
|
|
168
|
+
aggregate: ({ field, operation, where, }: {
|
|
169
|
+
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "document_id" | "item_id" | "item_name" | "quantity" | "repository_id" | "item_description" | "dimension_width" | "dimension_height" | "dimension_length" | "dimension_weight" | "is_fragile" | "batch_number" | "repository_package_id" | "repository_package_item_id" | "item_number";
|
|
170
|
+
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
171
|
+
where?: Record<string, any>;
|
|
172
|
+
}) => Promise<number>;
|
|
173
|
+
update: ({ id, where, data, disableRollback }: {
|
|
174
|
+
id?: number;
|
|
175
|
+
where?: Record<string, any>;
|
|
176
|
+
data: Partial<{
|
|
177
|
+
createdatetime: Date | null;
|
|
178
|
+
createuserid: bigint;
|
|
179
|
+
updatedatetime: Date | null;
|
|
180
|
+
updateuserid: bigint;
|
|
181
|
+
isdelete: boolean | null;
|
|
182
|
+
istrash: boolean | null;
|
|
183
|
+
accountid: bigint;
|
|
184
|
+
document_id: bigint;
|
|
185
|
+
item_id: bigint;
|
|
186
|
+
item_name: string | null;
|
|
187
|
+
quantity: number | null;
|
|
188
|
+
repository_id: bigint;
|
|
189
|
+
item_description: string | null;
|
|
190
|
+
dimension_width: Prisma.Decimal | null;
|
|
191
|
+
dimension_height: Prisma.Decimal | null;
|
|
192
|
+
dimension_length: Prisma.Decimal | null;
|
|
193
|
+
dimension_weight: Prisma.Decimal | null;
|
|
194
|
+
is_fragile: boolean | null;
|
|
195
|
+
batch_number: string | null;
|
|
196
|
+
repository_package_id: bigint;
|
|
197
|
+
repository_package_item_id: bigint;
|
|
198
|
+
item_number: string | null;
|
|
199
|
+
}>;
|
|
200
|
+
disableRollback?: Boolean;
|
|
201
|
+
}) => Promise<{
|
|
202
|
+
createdatetime: Date | null;
|
|
203
|
+
createuserid: bigint;
|
|
204
|
+
updatedatetime: Date | null;
|
|
205
|
+
updateuserid: bigint;
|
|
206
|
+
isdelete: boolean | null;
|
|
207
|
+
istrash: boolean | null;
|
|
208
|
+
accountid: bigint;
|
|
209
|
+
document_id: bigint;
|
|
210
|
+
item_id: bigint;
|
|
211
|
+
item_name: string | null;
|
|
212
|
+
quantity: number | null;
|
|
213
|
+
repository_id: bigint;
|
|
214
|
+
item_description: string | null;
|
|
215
|
+
dimension_width: Prisma.Decimal | null;
|
|
216
|
+
dimension_height: Prisma.Decimal | null;
|
|
217
|
+
dimension_length: Prisma.Decimal | null;
|
|
218
|
+
dimension_weight: Prisma.Decimal | null;
|
|
219
|
+
is_fragile: boolean | null;
|
|
220
|
+
batch_number: string | null;
|
|
221
|
+
repository_package_id: bigint;
|
|
222
|
+
repository_package_item_id: bigint;
|
|
223
|
+
item_number: string | null;
|
|
224
|
+
}>;
|
|
225
|
+
updateMany: ({ dataList, disableRollback, }: {
|
|
226
|
+
dataList: {
|
|
227
|
+
where: Record<string, any>;
|
|
228
|
+
data: Partial<{
|
|
229
|
+
createdatetime: Date | null;
|
|
230
|
+
createuserid: bigint;
|
|
231
|
+
updatedatetime: Date | null;
|
|
232
|
+
updateuserid: bigint;
|
|
233
|
+
isdelete: boolean | null;
|
|
234
|
+
istrash: boolean | null;
|
|
235
|
+
accountid: bigint;
|
|
236
|
+
document_id: bigint;
|
|
237
|
+
item_id: bigint;
|
|
238
|
+
item_name: string | null;
|
|
239
|
+
quantity: number | null;
|
|
240
|
+
repository_id: bigint;
|
|
241
|
+
item_description: string | null;
|
|
242
|
+
dimension_width: Prisma.Decimal | null;
|
|
243
|
+
dimension_height: Prisma.Decimal | null;
|
|
244
|
+
dimension_length: Prisma.Decimal | null;
|
|
245
|
+
dimension_weight: Prisma.Decimal | null;
|
|
246
|
+
is_fragile: boolean | null;
|
|
247
|
+
batch_number: string | null;
|
|
248
|
+
repository_package_id: bigint;
|
|
249
|
+
repository_package_item_id: bigint;
|
|
250
|
+
item_number: string | null;
|
|
251
|
+
}>;
|
|
252
|
+
}[];
|
|
253
|
+
disableRollback?: boolean;
|
|
254
|
+
}) => Promise<{
|
|
255
|
+
createdatetime: Date | null;
|
|
256
|
+
createuserid: bigint;
|
|
257
|
+
updatedatetime: Date | null;
|
|
258
|
+
updateuserid: bigint;
|
|
259
|
+
isdelete: boolean | null;
|
|
260
|
+
istrash: boolean | null;
|
|
261
|
+
accountid: bigint;
|
|
262
|
+
document_id: bigint;
|
|
263
|
+
item_id: bigint;
|
|
264
|
+
item_name: string | null;
|
|
265
|
+
quantity: number | null;
|
|
266
|
+
repository_id: bigint;
|
|
267
|
+
item_description: string | null;
|
|
268
|
+
dimension_width: Prisma.Decimal | null;
|
|
269
|
+
dimension_height: Prisma.Decimal | null;
|
|
270
|
+
dimension_length: Prisma.Decimal | null;
|
|
271
|
+
dimension_weight: Prisma.Decimal | null;
|
|
272
|
+
is_fragile: boolean | null;
|
|
273
|
+
batch_number: string | null;
|
|
274
|
+
repository_package_id: bigint;
|
|
275
|
+
repository_package_item_id: bigint;
|
|
276
|
+
item_number: string | null;
|
|
277
|
+
}[]>;
|
|
278
|
+
trash: ({ ids }: {
|
|
279
|
+
ids: number[];
|
|
280
|
+
}) => Promise<{
|
|
281
|
+
createdatetime: Date | null;
|
|
282
|
+
createuserid: bigint;
|
|
283
|
+
updatedatetime: Date | null;
|
|
284
|
+
updateuserid: bigint;
|
|
285
|
+
isdelete: boolean | null;
|
|
286
|
+
istrash: boolean | null;
|
|
287
|
+
accountid: bigint;
|
|
288
|
+
document_id: bigint;
|
|
289
|
+
item_id: bigint;
|
|
290
|
+
item_name: string | null;
|
|
291
|
+
quantity: number | null;
|
|
292
|
+
repository_id: bigint;
|
|
293
|
+
item_description: string | null;
|
|
294
|
+
dimension_width: Prisma.Decimal | null;
|
|
295
|
+
dimension_height: Prisma.Decimal | null;
|
|
296
|
+
dimension_length: Prisma.Decimal | null;
|
|
297
|
+
dimension_weight: Prisma.Decimal | null;
|
|
298
|
+
is_fragile: boolean | null;
|
|
299
|
+
batch_number: string | null;
|
|
300
|
+
repository_package_id: bigint;
|
|
301
|
+
repository_package_item_id: bigint;
|
|
302
|
+
item_number: string | null;
|
|
303
|
+
}[]>;
|
|
304
|
+
remove: ({ ids, where }: {
|
|
305
|
+
ids?: number[];
|
|
306
|
+
where?: Record<string, any>;
|
|
307
|
+
}) => Promise<{
|
|
308
|
+
createdatetime: Date | null;
|
|
309
|
+
createuserid: bigint;
|
|
310
|
+
updatedatetime: Date | null;
|
|
311
|
+
updateuserid: bigint;
|
|
312
|
+
isdelete: boolean | null;
|
|
313
|
+
istrash: boolean | null;
|
|
314
|
+
accountid: bigint;
|
|
315
|
+
document_id: bigint;
|
|
316
|
+
item_id: bigint;
|
|
317
|
+
item_name: string | null;
|
|
318
|
+
quantity: number | null;
|
|
319
|
+
repository_id: bigint;
|
|
320
|
+
item_description: string | null;
|
|
321
|
+
dimension_width: Prisma.Decimal | null;
|
|
322
|
+
dimension_height: Prisma.Decimal | null;
|
|
323
|
+
dimension_length: Prisma.Decimal | null;
|
|
324
|
+
dimension_weight: Prisma.Decimal | null;
|
|
325
|
+
is_fragile: boolean | null;
|
|
326
|
+
batch_number: string | null;
|
|
327
|
+
repository_package_id: bigint;
|
|
328
|
+
repository_package_item_id: bigint;
|
|
329
|
+
item_number: string | null;
|
|
330
|
+
}[]>;
|
|
331
|
+
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
332
|
+
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
333
|
+
};
|
|
334
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositoryPackageItemModel = exports.ModelRepositoryPackageItemFields = void 0;
|
|
4
|
+
const lib_1 = require("../../lib");
|
|
5
|
+
const primaryKey = "repository_package_item_id";
|
|
6
|
+
exports.ModelRepositoryPackageItemFields = (0, lib_1.getFieldsByType)();
|
|
7
|
+
const RepositoryPackageItemModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
|
|
8
|
+
...rest,
|
|
9
|
+
modelName: "repository_package_items",
|
|
10
|
+
primaryKey
|
|
11
|
+
});
|
|
12
|
+
exports.RepositoryPackageItemModel = RepositoryPackageItemModel;
|
|
13
|
+
//# sourceMappingURL=RepositoryPackageItemModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryPackageItemModel.js","sourceRoot":"","sources":["../../../src/models/repository/RepositoryPackageItemModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,4BAA4B,CAAC;AAEnC,QAAA,gCAAgC,GAAG,IAAA,qBAAe,GAA4B,CAAC;AAkCrF,MAAM,0BAA0B,GAAG,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,EAAE,CAC3E,IAAA,kBAAY,EAA+G;IACvH,GAAG,IAAI;IACP,SAAS,EAAE,0BAA0B;IACrC,UAAU;CACb,CAAC,CAAC;AALM,QAAA,0BAA0B,8BAKhC","sourcesContent":["import { PrismaClient, repository_package_items, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"repository_package_item_id\";\n\nexport const ModelRepositoryPackageItemFields = getFieldsByType<repository_package_items>();\n\nexport type ModelRepositoryPackageItem = repository_package_items;\n\nexport type ModelRepositoryPackageItemOmitFields = typeof primaryKey | DefaultOmitFields;\n\nexport type ModelRepositoryPackageItemCreateProps = {\n data: Omit<Prisma.repository_package_itemsUncheckedCreateInput, ModelRepositoryPackageItemOmitFields>;\n};\n\nexport type ModelRepositoryPackageItemUpdateProps = {\n id: number;\n data: Omit<Prisma.repository_package_itemsUncheckedUpdateInput, ModelRepositoryPackageItemOmitFields>;\n};\n\nexport type ModelRepositoryPackageItemTrashProps = {\n ids: number[];\n};\n\nexport type ModelRepositoryPackageItemRemoveProps = {\n id: number;\n};\n\nexport type ModelRepositoryPackageItemGetProps = {\n id: number;\n};\n\nexport type ModelRepositoryPackageItemListProps = {\n where?: Prisma.repository_package_itemsWhereInput;\n orderBy?: Prisma.repository_package_itemsOrderByWithRelationInput | Prisma.repository_package_itemsOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\nexport const RepositoryPackageItemModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"repository_package_items\", PrismaClient[\"repository_package_items\"], repository_package_items>({\n ...rest,\n modelName: \"repository_package_items\",\n primaryKey\n });\n"]}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { repository_packages, Prisma } from "@prisma/client";
|
|
2
|
+
import { DefaultOmitFields } from "../../lib";
|
|
3
|
+
import { DefaultServiceProps } from "../../utils";
|
|
4
|
+
declare const primaryKey = "repository_package_id";
|
|
5
|
+
export declare const ModelRepositoryPackageFields: {
|
|
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
|
+
repository_package_id: "repository_package_id";
|
|
25
|
+
package_number: "package_number";
|
|
26
|
+
package_description: "package_description";
|
|
27
|
+
};
|
|
28
|
+
export type ModelRepositoryPackage = repository_packages;
|
|
29
|
+
export type ModelRepositoryPackageOmitFields = typeof primaryKey | DefaultOmitFields;
|
|
30
|
+
export type ModelRepositoryPackageCreateProps = {
|
|
31
|
+
data: Omit<Prisma.repository_packagesUncheckedCreateInput, ModelRepositoryPackageOmitFields>;
|
|
32
|
+
};
|
|
33
|
+
export type ModelRepositoryPackageUpdateProps = {
|
|
34
|
+
id: number;
|
|
35
|
+
data: Omit<Prisma.repository_packagesUncheckedUpdateInput, ModelRepositoryPackageOmitFields>;
|
|
36
|
+
};
|
|
37
|
+
export type ModelRepositoryPackageTrashProps = {
|
|
38
|
+
ids: number[];
|
|
39
|
+
};
|
|
40
|
+
export type ModelRepositoryPackageRemoveProps = {
|
|
41
|
+
id: number;
|
|
42
|
+
};
|
|
43
|
+
export type ModelRepositoryPackageGetProps = {
|
|
44
|
+
id: number;
|
|
45
|
+
};
|
|
46
|
+
export type ModelRepositoryPackageListProps = {
|
|
47
|
+
where?: Prisma.repository_packagesWhereInput;
|
|
48
|
+
orderBy?: Prisma.repository_packagesOrderByWithRelationInput | Prisma.repository_packagesOrderByWithRelationInput[];
|
|
49
|
+
offset?: number;
|
|
50
|
+
limit?: number;
|
|
51
|
+
};
|
|
52
|
+
export declare const RepositoryPackageModel: ({ ...rest }: DefaultServiceProps) => {
|
|
53
|
+
selectedPrisma: any;
|
|
54
|
+
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" | "repository_package_id" | "package_number" | "package_description";
|
|
55
|
+
getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
|
|
56
|
+
name: string;
|
|
57
|
+
type: string;
|
|
58
|
+
}[]>;
|
|
59
|
+
create: ({ data }: {
|
|
60
|
+
data: Omit<any, DefaultOmitFields>;
|
|
61
|
+
}) => Promise<{
|
|
62
|
+
createdatetime: Date | null;
|
|
63
|
+
createuserid: bigint;
|
|
64
|
+
updatedatetime: Date | null;
|
|
65
|
+
updateuserid: bigint;
|
|
66
|
+
isdelete: boolean | null;
|
|
67
|
+
istrash: boolean | null;
|
|
68
|
+
accountid: bigint;
|
|
69
|
+
quantity: number | null;
|
|
70
|
+
repository_id: bigint;
|
|
71
|
+
dimension_width: Prisma.Decimal | null;
|
|
72
|
+
dimension_height: Prisma.Decimal | null;
|
|
73
|
+
dimension_length: Prisma.Decimal | null;
|
|
74
|
+
repository_container_id: bigint;
|
|
75
|
+
repository_pallet_id: bigint;
|
|
76
|
+
dimension_weight: Prisma.Decimal | null;
|
|
77
|
+
is_fragile: boolean | null;
|
|
78
|
+
batch_number: string | null;
|
|
79
|
+
repository_carton_id: bigint;
|
|
80
|
+
repository_package_id: bigint;
|
|
81
|
+
package_number: string | null;
|
|
82
|
+
package_description: string | null;
|
|
83
|
+
}>;
|
|
84
|
+
createMany: ({ dataList, disableRollback, }: {
|
|
85
|
+
dataList: Omit<any, DefaultOmitFields>[];
|
|
86
|
+
disableRollback?: boolean;
|
|
87
|
+
}) => Promise<{
|
|
88
|
+
createdatetime: Date | null;
|
|
89
|
+
createuserid: bigint;
|
|
90
|
+
updatedatetime: Date | null;
|
|
91
|
+
updateuserid: bigint;
|
|
92
|
+
isdelete: boolean | null;
|
|
93
|
+
istrash: boolean | null;
|
|
94
|
+
accountid: bigint;
|
|
95
|
+
quantity: number | null;
|
|
96
|
+
repository_id: bigint;
|
|
97
|
+
dimension_width: Prisma.Decimal | null;
|
|
98
|
+
dimension_height: Prisma.Decimal | null;
|
|
99
|
+
dimension_length: Prisma.Decimal | null;
|
|
100
|
+
repository_container_id: bigint;
|
|
101
|
+
repository_pallet_id: bigint;
|
|
102
|
+
dimension_weight: Prisma.Decimal | null;
|
|
103
|
+
is_fragile: boolean | null;
|
|
104
|
+
batch_number: string | null;
|
|
105
|
+
repository_carton_id: bigint;
|
|
106
|
+
repository_package_id: bigint;
|
|
107
|
+
package_number: string | null;
|
|
108
|
+
package_description: string | null;
|
|
109
|
+
}[]>;
|
|
110
|
+
get: ({ id, where, include, }: {
|
|
111
|
+
id?: number;
|
|
112
|
+
where?: Record<string, any>;
|
|
113
|
+
include?: any;
|
|
114
|
+
}) => Promise<{
|
|
115
|
+
createdatetime: Date | null;
|
|
116
|
+
createuserid: bigint;
|
|
117
|
+
updatedatetime: Date | null;
|
|
118
|
+
updateuserid: bigint;
|
|
119
|
+
isdelete: boolean | null;
|
|
120
|
+
istrash: boolean | null;
|
|
121
|
+
accountid: bigint;
|
|
122
|
+
quantity: number | null;
|
|
123
|
+
repository_id: bigint;
|
|
124
|
+
dimension_width: Prisma.Decimal | null;
|
|
125
|
+
dimension_height: Prisma.Decimal | null;
|
|
126
|
+
dimension_length: Prisma.Decimal | null;
|
|
127
|
+
repository_container_id: bigint;
|
|
128
|
+
repository_pallet_id: bigint;
|
|
129
|
+
dimension_weight: Prisma.Decimal | null;
|
|
130
|
+
is_fragile: boolean | null;
|
|
131
|
+
batch_number: string | null;
|
|
132
|
+
repository_carton_id: bigint;
|
|
133
|
+
repository_package_id: bigint;
|
|
134
|
+
package_number: string | null;
|
|
135
|
+
package_description: string | null;
|
|
136
|
+
} | null>;
|
|
137
|
+
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
138
|
+
createdatetime: Date | null;
|
|
139
|
+
createuserid: bigint;
|
|
140
|
+
updatedatetime: Date | null;
|
|
141
|
+
updateuserid: bigint;
|
|
142
|
+
isdelete: boolean | null;
|
|
143
|
+
istrash: boolean | null;
|
|
144
|
+
accountid: bigint;
|
|
145
|
+
quantity: number | null;
|
|
146
|
+
repository_id: bigint;
|
|
147
|
+
dimension_width: Prisma.Decimal | null;
|
|
148
|
+
dimension_height: Prisma.Decimal | null;
|
|
149
|
+
dimension_length: Prisma.Decimal | null;
|
|
150
|
+
repository_container_id: bigint;
|
|
151
|
+
repository_pallet_id: bigint;
|
|
152
|
+
dimension_weight: Prisma.Decimal | null;
|
|
153
|
+
is_fragile: boolean | null;
|
|
154
|
+
batch_number: string | null;
|
|
155
|
+
repository_carton_id: bigint;
|
|
156
|
+
repository_package_id: bigint;
|
|
157
|
+
package_number: string | null;
|
|
158
|
+
package_description: string | null;
|
|
159
|
+
}[]>;
|
|
160
|
+
count: ({ where }?: {
|
|
161
|
+
where?: Record<string, any>;
|
|
162
|
+
}) => Promise<number>;
|
|
163
|
+
aggregate: ({ field, operation, where, }: {
|
|
164
|
+
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" | "repository_package_id" | "package_number" | "package_description";
|
|
165
|
+
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
166
|
+
where?: Record<string, any>;
|
|
167
|
+
}) => Promise<number>;
|
|
168
|
+
update: ({ id, where, data, disableRollback }: {
|
|
169
|
+
id?: number;
|
|
170
|
+
where?: Record<string, any>;
|
|
171
|
+
data: Partial<{
|
|
172
|
+
createdatetime: Date | null;
|
|
173
|
+
createuserid: bigint;
|
|
174
|
+
updatedatetime: Date | null;
|
|
175
|
+
updateuserid: bigint;
|
|
176
|
+
isdelete: boolean | null;
|
|
177
|
+
istrash: boolean | null;
|
|
178
|
+
accountid: bigint;
|
|
179
|
+
quantity: number | null;
|
|
180
|
+
repository_id: bigint;
|
|
181
|
+
dimension_width: Prisma.Decimal | null;
|
|
182
|
+
dimension_height: Prisma.Decimal | null;
|
|
183
|
+
dimension_length: Prisma.Decimal | null;
|
|
184
|
+
repository_container_id: bigint;
|
|
185
|
+
repository_pallet_id: bigint;
|
|
186
|
+
dimension_weight: Prisma.Decimal | null;
|
|
187
|
+
is_fragile: boolean | null;
|
|
188
|
+
batch_number: string | null;
|
|
189
|
+
repository_carton_id: bigint;
|
|
190
|
+
repository_package_id: bigint;
|
|
191
|
+
package_number: string | null;
|
|
192
|
+
package_description: string | null;
|
|
193
|
+
}>;
|
|
194
|
+
disableRollback?: Boolean;
|
|
195
|
+
}) => Promise<{
|
|
196
|
+
createdatetime: Date | null;
|
|
197
|
+
createuserid: bigint;
|
|
198
|
+
updatedatetime: Date | null;
|
|
199
|
+
updateuserid: bigint;
|
|
200
|
+
isdelete: boolean | null;
|
|
201
|
+
istrash: boolean | null;
|
|
202
|
+
accountid: bigint;
|
|
203
|
+
quantity: number | null;
|
|
204
|
+
repository_id: bigint;
|
|
205
|
+
dimension_width: Prisma.Decimal | null;
|
|
206
|
+
dimension_height: Prisma.Decimal | null;
|
|
207
|
+
dimension_length: Prisma.Decimal | null;
|
|
208
|
+
repository_container_id: bigint;
|
|
209
|
+
repository_pallet_id: bigint;
|
|
210
|
+
dimension_weight: Prisma.Decimal | null;
|
|
211
|
+
is_fragile: boolean | null;
|
|
212
|
+
batch_number: string | null;
|
|
213
|
+
repository_carton_id: bigint;
|
|
214
|
+
repository_package_id: bigint;
|
|
215
|
+
package_number: string | null;
|
|
216
|
+
package_description: string | null;
|
|
217
|
+
}>;
|
|
218
|
+
updateMany: ({ dataList, disableRollback, }: {
|
|
219
|
+
dataList: {
|
|
220
|
+
where: Record<string, any>;
|
|
221
|
+
data: Partial<{
|
|
222
|
+
createdatetime: Date | null;
|
|
223
|
+
createuserid: bigint;
|
|
224
|
+
updatedatetime: Date | null;
|
|
225
|
+
updateuserid: bigint;
|
|
226
|
+
isdelete: boolean | null;
|
|
227
|
+
istrash: boolean | null;
|
|
228
|
+
accountid: bigint;
|
|
229
|
+
quantity: number | null;
|
|
230
|
+
repository_id: bigint;
|
|
231
|
+
dimension_width: Prisma.Decimal | null;
|
|
232
|
+
dimension_height: Prisma.Decimal | null;
|
|
233
|
+
dimension_length: Prisma.Decimal | null;
|
|
234
|
+
repository_container_id: bigint;
|
|
235
|
+
repository_pallet_id: bigint;
|
|
236
|
+
dimension_weight: Prisma.Decimal | null;
|
|
237
|
+
is_fragile: boolean | null;
|
|
238
|
+
batch_number: string | null;
|
|
239
|
+
repository_carton_id: bigint;
|
|
240
|
+
repository_package_id: bigint;
|
|
241
|
+
package_number: string | null;
|
|
242
|
+
package_description: string | null;
|
|
243
|
+
}>;
|
|
244
|
+
}[];
|
|
245
|
+
disableRollback?: boolean;
|
|
246
|
+
}) => Promise<{
|
|
247
|
+
createdatetime: Date | null;
|
|
248
|
+
createuserid: bigint;
|
|
249
|
+
updatedatetime: Date | null;
|
|
250
|
+
updateuserid: bigint;
|
|
251
|
+
isdelete: boolean | null;
|
|
252
|
+
istrash: boolean | null;
|
|
253
|
+
accountid: bigint;
|
|
254
|
+
quantity: number | null;
|
|
255
|
+
repository_id: bigint;
|
|
256
|
+
dimension_width: Prisma.Decimal | null;
|
|
257
|
+
dimension_height: Prisma.Decimal | null;
|
|
258
|
+
dimension_length: Prisma.Decimal | null;
|
|
259
|
+
repository_container_id: bigint;
|
|
260
|
+
repository_pallet_id: bigint;
|
|
261
|
+
dimension_weight: Prisma.Decimal | null;
|
|
262
|
+
is_fragile: boolean | null;
|
|
263
|
+
batch_number: string | null;
|
|
264
|
+
repository_carton_id: bigint;
|
|
265
|
+
repository_package_id: bigint;
|
|
266
|
+
package_number: string | null;
|
|
267
|
+
package_description: string | null;
|
|
268
|
+
}[]>;
|
|
269
|
+
trash: ({ ids }: {
|
|
270
|
+
ids: number[];
|
|
271
|
+
}) => Promise<{
|
|
272
|
+
createdatetime: Date | null;
|
|
273
|
+
createuserid: bigint;
|
|
274
|
+
updatedatetime: Date | null;
|
|
275
|
+
updateuserid: bigint;
|
|
276
|
+
isdelete: boolean | null;
|
|
277
|
+
istrash: boolean | null;
|
|
278
|
+
accountid: bigint;
|
|
279
|
+
quantity: number | null;
|
|
280
|
+
repository_id: bigint;
|
|
281
|
+
dimension_width: Prisma.Decimal | null;
|
|
282
|
+
dimension_height: Prisma.Decimal | null;
|
|
283
|
+
dimension_length: Prisma.Decimal | null;
|
|
284
|
+
repository_container_id: bigint;
|
|
285
|
+
repository_pallet_id: bigint;
|
|
286
|
+
dimension_weight: Prisma.Decimal | null;
|
|
287
|
+
is_fragile: boolean | null;
|
|
288
|
+
batch_number: string | null;
|
|
289
|
+
repository_carton_id: bigint;
|
|
290
|
+
repository_package_id: bigint;
|
|
291
|
+
package_number: string | null;
|
|
292
|
+
package_description: string | null;
|
|
293
|
+
}[]>;
|
|
294
|
+
remove: ({ ids, where }: {
|
|
295
|
+
ids?: number[];
|
|
296
|
+
where?: Record<string, any>;
|
|
297
|
+
}) => Promise<{
|
|
298
|
+
createdatetime: Date | null;
|
|
299
|
+
createuserid: bigint;
|
|
300
|
+
updatedatetime: Date | null;
|
|
301
|
+
updateuserid: bigint;
|
|
302
|
+
isdelete: boolean | null;
|
|
303
|
+
istrash: boolean | null;
|
|
304
|
+
accountid: bigint;
|
|
305
|
+
quantity: number | null;
|
|
306
|
+
repository_id: bigint;
|
|
307
|
+
dimension_width: Prisma.Decimal | null;
|
|
308
|
+
dimension_height: Prisma.Decimal | null;
|
|
309
|
+
dimension_length: Prisma.Decimal | null;
|
|
310
|
+
repository_container_id: bigint;
|
|
311
|
+
repository_pallet_id: bigint;
|
|
312
|
+
dimension_weight: Prisma.Decimal | null;
|
|
313
|
+
is_fragile: boolean | null;
|
|
314
|
+
batch_number: string | null;
|
|
315
|
+
repository_carton_id: bigint;
|
|
316
|
+
repository_package_id: bigint;
|
|
317
|
+
package_number: string | null;
|
|
318
|
+
package_description: string | null;
|
|
319
|
+
}[]>;
|
|
320
|
+
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
321
|
+
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
322
|
+
};
|
|
323
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositoryPackageModel = exports.ModelRepositoryPackageFields = void 0;
|
|
4
|
+
const lib_1 = require("../../lib");
|
|
5
|
+
const primaryKey = "repository_package_id";
|
|
6
|
+
exports.ModelRepositoryPackageFields = (0, lib_1.getFieldsByType)();
|
|
7
|
+
const RepositoryPackageModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
|
|
8
|
+
...rest,
|
|
9
|
+
modelName: "repository_packages",
|
|
10
|
+
primaryKey
|
|
11
|
+
});
|
|
12
|
+
exports.RepositoryPackageModel = RepositoryPackageModel;
|
|
13
|
+
//# sourceMappingURL=RepositoryPackageModel.js.map
|