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,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"]}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { repositories, Prisma } from "@prisma/client";
|
|
2
|
+
import { DefaultOmitFields } from "../../lib";
|
|
3
|
+
import { DefaultServiceProps } from "../../utils";
|
|
4
|
+
declare const primaryKey = "repository_id";
|
|
5
|
+
export declare const ModelRepositoryFields: {
|
|
6
|
+
createdatetime: "createdatetime";
|
|
7
|
+
createuserid: "createuserid";
|
|
8
|
+
updatedatetime: "updatedatetime";
|
|
9
|
+
updateuserid: "updateuserid";
|
|
10
|
+
isdelete: "isdelete";
|
|
11
|
+
istrash: "istrash";
|
|
12
|
+
accountid: "accountid";
|
|
13
|
+
description: "description";
|
|
14
|
+
remark: "remark";
|
|
15
|
+
repository_id: "repository_id";
|
|
16
|
+
repository_number: "repository_number";
|
|
17
|
+
repository_date: "repository_date";
|
|
18
|
+
repository_type: "repository_type";
|
|
19
|
+
};
|
|
20
|
+
export type ModelRepository = repositories;
|
|
21
|
+
export type ModelRepositoryOmitFields = typeof primaryKey | DefaultOmitFields;
|
|
22
|
+
export type ModelRepositoryCreateProps = {
|
|
23
|
+
data: Omit<Prisma.repositoriesUncheckedCreateInput, ModelRepositoryOmitFields>;
|
|
24
|
+
};
|
|
25
|
+
export type ModelRepositoryUpdateProps = {
|
|
26
|
+
id: number;
|
|
27
|
+
data: Omit<Prisma.repositoriesUncheckedUpdateInput, ModelRepositoryOmitFields>;
|
|
28
|
+
};
|
|
29
|
+
export type ModelRepositoryTrashProps = {
|
|
30
|
+
ids: number[];
|
|
31
|
+
};
|
|
32
|
+
export type ModelRepositoryRemoveProps = {
|
|
33
|
+
id: number;
|
|
34
|
+
};
|
|
35
|
+
export type ModelRepositoryGetProps = {
|
|
36
|
+
id: number;
|
|
37
|
+
};
|
|
38
|
+
export type ModelRepositoryListProps = {
|
|
39
|
+
where?: Prisma.repositoriesWhereInput;
|
|
40
|
+
orderBy?: Prisma.repositoriesOrderByWithRelationInput | Prisma.repositoriesOrderByWithRelationInput[];
|
|
41
|
+
offset?: number;
|
|
42
|
+
limit?: number;
|
|
43
|
+
};
|
|
44
|
+
export declare const RepositoryModel: ({ ...rest }: DefaultServiceProps) => {
|
|
45
|
+
selectedPrisma: any;
|
|
46
|
+
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "description" | "remark" | "repository_id" | "repository_number" | "repository_date" | "repository_type";
|
|
47
|
+
getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
|
|
48
|
+
name: string;
|
|
49
|
+
type: string;
|
|
50
|
+
}[]>;
|
|
51
|
+
create: ({ data }: {
|
|
52
|
+
data: Omit<any, DefaultOmitFields>;
|
|
53
|
+
}) => Promise<{
|
|
54
|
+
createdatetime: Date | null;
|
|
55
|
+
createuserid: bigint;
|
|
56
|
+
updatedatetime: Date | null;
|
|
57
|
+
updateuserid: bigint;
|
|
58
|
+
isdelete: boolean | null;
|
|
59
|
+
istrash: boolean | null;
|
|
60
|
+
accountid: bigint;
|
|
61
|
+
description: string | null;
|
|
62
|
+
remark: string | null;
|
|
63
|
+
repository_id: bigint;
|
|
64
|
+
repository_number: string | null;
|
|
65
|
+
repository_date: Date | null;
|
|
66
|
+
repository_type: string | null;
|
|
67
|
+
}>;
|
|
68
|
+
createMany: ({ dataList, disableRollback, }: {
|
|
69
|
+
dataList: Omit<any, DefaultOmitFields>[];
|
|
70
|
+
disableRollback?: boolean;
|
|
71
|
+
}) => Promise<{
|
|
72
|
+
createdatetime: Date | null;
|
|
73
|
+
createuserid: bigint;
|
|
74
|
+
updatedatetime: Date | null;
|
|
75
|
+
updateuserid: bigint;
|
|
76
|
+
isdelete: boolean | null;
|
|
77
|
+
istrash: boolean | null;
|
|
78
|
+
accountid: bigint;
|
|
79
|
+
description: string | null;
|
|
80
|
+
remark: string | null;
|
|
81
|
+
repository_id: bigint;
|
|
82
|
+
repository_number: string | null;
|
|
83
|
+
repository_date: Date | null;
|
|
84
|
+
repository_type: string | null;
|
|
85
|
+
}[]>;
|
|
86
|
+
get: ({ id, where, include, }: {
|
|
87
|
+
id?: number;
|
|
88
|
+
where?: Record<string, any>;
|
|
89
|
+
include?: any;
|
|
90
|
+
}) => Promise<{
|
|
91
|
+
createdatetime: Date | null;
|
|
92
|
+
createuserid: bigint;
|
|
93
|
+
updatedatetime: Date | null;
|
|
94
|
+
updateuserid: bigint;
|
|
95
|
+
isdelete: boolean | null;
|
|
96
|
+
istrash: boolean | null;
|
|
97
|
+
accountid: bigint;
|
|
98
|
+
description: string | null;
|
|
99
|
+
remark: string | null;
|
|
100
|
+
repository_id: bigint;
|
|
101
|
+
repository_number: string | null;
|
|
102
|
+
repository_date: Date | null;
|
|
103
|
+
repository_type: string | null;
|
|
104
|
+
} | null>;
|
|
105
|
+
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
106
|
+
createdatetime: Date | null;
|
|
107
|
+
createuserid: bigint;
|
|
108
|
+
updatedatetime: Date | null;
|
|
109
|
+
updateuserid: bigint;
|
|
110
|
+
isdelete: boolean | null;
|
|
111
|
+
istrash: boolean | null;
|
|
112
|
+
accountid: bigint;
|
|
113
|
+
description: string | null;
|
|
114
|
+
remark: string | null;
|
|
115
|
+
repository_id: bigint;
|
|
116
|
+
repository_number: string | null;
|
|
117
|
+
repository_date: Date | null;
|
|
118
|
+
repository_type: string | null;
|
|
119
|
+
}[]>;
|
|
120
|
+
count: ({ where }?: {
|
|
121
|
+
where?: Record<string, any>;
|
|
122
|
+
}) => Promise<number>;
|
|
123
|
+
aggregate: ({ field, operation, where, }: {
|
|
124
|
+
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "description" | "remark" | "repository_id" | "repository_number" | "repository_date" | "repository_type";
|
|
125
|
+
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
126
|
+
where?: Record<string, any>;
|
|
127
|
+
}) => Promise<number>;
|
|
128
|
+
update: ({ id, where, data, disableRollback }: {
|
|
129
|
+
id?: number;
|
|
130
|
+
where?: Record<string, any>;
|
|
131
|
+
data: Partial<{
|
|
132
|
+
createdatetime: Date | null;
|
|
133
|
+
createuserid: bigint;
|
|
134
|
+
updatedatetime: Date | null;
|
|
135
|
+
updateuserid: bigint;
|
|
136
|
+
isdelete: boolean | null;
|
|
137
|
+
istrash: boolean | null;
|
|
138
|
+
accountid: bigint;
|
|
139
|
+
description: string | null;
|
|
140
|
+
remark: string | null;
|
|
141
|
+
repository_id: bigint;
|
|
142
|
+
repository_number: string | null;
|
|
143
|
+
repository_date: Date | null;
|
|
144
|
+
repository_type: string | null;
|
|
145
|
+
}>;
|
|
146
|
+
disableRollback?: Boolean;
|
|
147
|
+
}) => Promise<{
|
|
148
|
+
createdatetime: Date | null;
|
|
149
|
+
createuserid: bigint;
|
|
150
|
+
updatedatetime: Date | null;
|
|
151
|
+
updateuserid: bigint;
|
|
152
|
+
isdelete: boolean | null;
|
|
153
|
+
istrash: boolean | null;
|
|
154
|
+
accountid: bigint;
|
|
155
|
+
description: string | null;
|
|
156
|
+
remark: string | null;
|
|
157
|
+
repository_id: bigint;
|
|
158
|
+
repository_number: string | null;
|
|
159
|
+
repository_date: Date | null;
|
|
160
|
+
repository_type: string | null;
|
|
161
|
+
}>;
|
|
162
|
+
updateMany: ({ dataList, disableRollback, }: {
|
|
163
|
+
dataList: {
|
|
164
|
+
where: Record<string, any>;
|
|
165
|
+
data: Partial<{
|
|
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
|
+
description: string | null;
|
|
174
|
+
remark: string | null;
|
|
175
|
+
repository_id: bigint;
|
|
176
|
+
repository_number: string | null;
|
|
177
|
+
repository_date: Date | null;
|
|
178
|
+
repository_type: string | null;
|
|
179
|
+
}>;
|
|
180
|
+
}[];
|
|
181
|
+
disableRollback?: boolean;
|
|
182
|
+
}) => Promise<{
|
|
183
|
+
createdatetime: Date | null;
|
|
184
|
+
createuserid: bigint;
|
|
185
|
+
updatedatetime: Date | null;
|
|
186
|
+
updateuserid: bigint;
|
|
187
|
+
isdelete: boolean | null;
|
|
188
|
+
istrash: boolean | null;
|
|
189
|
+
accountid: bigint;
|
|
190
|
+
description: string | null;
|
|
191
|
+
remark: string | null;
|
|
192
|
+
repository_id: bigint;
|
|
193
|
+
repository_number: string | null;
|
|
194
|
+
repository_date: Date | null;
|
|
195
|
+
repository_type: string | null;
|
|
196
|
+
}[]>;
|
|
197
|
+
trash: ({ ids }: {
|
|
198
|
+
ids: number[];
|
|
199
|
+
}) => Promise<{
|
|
200
|
+
createdatetime: Date | null;
|
|
201
|
+
createuserid: bigint;
|
|
202
|
+
updatedatetime: Date | null;
|
|
203
|
+
updateuserid: bigint;
|
|
204
|
+
isdelete: boolean | null;
|
|
205
|
+
istrash: boolean | null;
|
|
206
|
+
accountid: bigint;
|
|
207
|
+
description: string | null;
|
|
208
|
+
remark: string | null;
|
|
209
|
+
repository_id: bigint;
|
|
210
|
+
repository_number: string | null;
|
|
211
|
+
repository_date: Date | null;
|
|
212
|
+
repository_type: string | null;
|
|
213
|
+
}[]>;
|
|
214
|
+
remove: ({ ids, where }: {
|
|
215
|
+
ids?: number[];
|
|
216
|
+
where?: Record<string, any>;
|
|
217
|
+
}) => Promise<{
|
|
218
|
+
createdatetime: Date | null;
|
|
219
|
+
createuserid: bigint;
|
|
220
|
+
updatedatetime: Date | null;
|
|
221
|
+
updateuserid: bigint;
|
|
222
|
+
isdelete: boolean | null;
|
|
223
|
+
istrash: boolean | null;
|
|
224
|
+
accountid: bigint;
|
|
225
|
+
description: string | null;
|
|
226
|
+
remark: string | null;
|
|
227
|
+
repository_id: bigint;
|
|
228
|
+
repository_number: string | null;
|
|
229
|
+
repository_date: Date | null;
|
|
230
|
+
repository_type: string | null;
|
|
231
|
+
}[]>;
|
|
232
|
+
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
233
|
+
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
234
|
+
};
|
|
235
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositoryModel = exports.ModelRepositoryFields = void 0;
|
|
4
|
+
const lib_1 = require("../../lib");
|
|
5
|
+
const primaryKey = "repository_id";
|
|
6
|
+
exports.ModelRepositoryFields = (0, lib_1.getFieldsByType)();
|
|
7
|
+
const RepositoryModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
|
|
8
|
+
...rest,
|
|
9
|
+
modelName: "repositories",
|
|
10
|
+
primaryKey
|
|
11
|
+
});
|
|
12
|
+
exports.RepositoryModel = RepositoryModel;
|
|
13
|
+
//# sourceMappingURL=RepositoryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryModel.js","sourceRoot":"","sources":["../../../src/models/repository/RepositoryModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,eAAe,CAAC;AAEtB,QAAA,qBAAqB,GAAG,IAAA,qBAAe,GAAgB,CAAC;AAkC9D,MAAM,eAAe,GAAG,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,EAAE,CAChE,IAAA,kBAAY,EAA2E;IACnF,GAAG,IAAI;IACP,SAAS,EAAE,cAAc;IACzB,UAAU;CACb,CAAC,CAAC;AALM,QAAA,eAAe,mBAKrB","sourcesContent":["import { PrismaClient, repositories, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"repository_id\";\n\nexport const ModelRepositoryFields = getFieldsByType<repositories>();\n\nexport type ModelRepository = repositories;\n\nexport type ModelRepositoryOmitFields = typeof primaryKey | DefaultOmitFields;\n\nexport type ModelRepositoryCreateProps = {\n data: Omit<Prisma.repositoriesUncheckedCreateInput, ModelRepositoryOmitFields>;\n};\n\nexport type ModelRepositoryUpdateProps = {\n id: number;\n data: Omit<Prisma.repositoriesUncheckedUpdateInput, ModelRepositoryOmitFields>;\n};\n\nexport type ModelRepositoryTrashProps = {\n ids: number[];\n};\n\nexport type ModelRepositoryRemoveProps = {\n id: number;\n};\n\nexport type ModelRepositoryGetProps = {\n id: number;\n};\n\nexport type ModelRepositoryListProps = {\n where?: Prisma.repositoriesWhereInput;\n orderBy?: Prisma.repositoriesOrderByWithRelationInput | Prisma.repositoriesOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\nexport const RepositoryModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"repositories\", PrismaClient[\"repositories\"], repositories>({\n ...rest,\n modelName: \"repositories\",\n primaryKey\n });\n"]}
|