storemw-core-api 1.0.179 → 1.0.180
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/controllers/injection_field/injectionFieldController.js +2 -6
- package/dist/controllers/injection_field/injectionFieldController.js.map +1 -1
- package/dist/services/injection_field/unuse/LogisticInjectionFieldService.js +116 -0
- package/dist/services/injection_field/unuse/LogisticInjectionFieldService.js.map +1 -0
- package/dist/services/injection_field/unuse/RepositoryInjectionFieldService.d.ts +1 -0
- package/dist/services/injection_field/unuse/RepositoryInjectionFieldService.js +131 -0
- package/dist/services/injection_field/unuse/RepositoryInjectionFieldService.js.map +1 -0
- package/dist/utils/schemaUtils.js +3 -2
- package/dist/utils/schemaUtils.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +45 -0
- package/dist/models/group/GroupModel.d.ts +0 -227
- package/dist/models/group/GroupModel.js +0 -13
- package/dist/models/group/GroupModel.js.map +0 -1
- package/dist/models/group/GroupOwnerModel.d.ts +0 -216
- package/dist/models/group/GroupOwnerModel.js +0 -13
- package/dist/models/group/GroupOwnerModel.js.map +0 -1
- package/dist/models/user/UserPropModel.d.ts +0 -256
- package/dist/models/user/UserPropModel.js +0 -13
- package/dist/models/user/UserPropModel.js.map +0 -1
- package/dist/route_contracts/access_control/accessControlPoliciesRoutes.d.ts +0 -2
- package/dist/route_contracts/access_control/accessControlPoliciesRoutes.js +0 -21
- package/dist/route_contracts/access_control/accessControlPoliciesRoutes.js.map +0 -1
- package/dist/route_contracts/access_control/accessControlRoleRoutes.d.ts +0 -2
- package/dist/route_contracts/access_control/accessControlRoleRoutes.js +0 -48
- package/dist/route_contracts/access_control/accessControlRoleRoutes.js.map +0 -1
- package/dist/route_contracts/access_control/accessControlRolesRoutes.d.ts +0 -2
- package/dist/route_contracts/access_control/accessControlRolesRoutes.js +0 -37
- package/dist/route_contracts/access_control/accessControlRolesRoutes.js.map +0 -1
- package/dist/route_contracts/access_control/accessControlRoutes.d.ts +0 -2
- package/dist/route_contracts/access_control/accessControlRoutes.js +0 -18
- package/dist/route_contracts/access_control/accessControlRoutes.js.map +0 -1
- package/dist/route_contracts/access_control/accessControlUserRolesRoutes.d.ts +0 -2
- package/dist/route_contracts/access_control/accessControlUserRolesRoutes.js +0 -21
- package/dist/route_contracts/access_control/accessControlUserRolesRoutes.js.map +0 -1
- package/dist/route_contracts/auth/authRoutes.d.ts +0 -2
- package/dist/route_contracts/auth/authRoutes.js +0 -23
- package/dist/route_contracts/auth/authRoutes.js.map +0 -1
- package/dist/route_contracts/index.d.ts +0 -2
- package/dist/route_contracts/index.js +0 -39
- package/dist/route_contracts/index.js.map +0 -1
- package/dist/scripts/migrate.js +0 -42
- package/dist/scripts/migrate.js.map +0 -1
- package/dist/services/file/ImageCompression.d.ts +0 -9
- package/dist/services/file/ImageCompression.js +0 -47
- package/dist/services/file/ImageCompression.js.map +0 -1
- /package/dist/{scripts/migrate.d.ts → services/injection_field/unuse/LogisticInjectionFieldService.d.ts} +0 -0
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import { groups, Prisma } from "@prisma/client";
|
|
2
|
-
import { DefaultOmitFields } from "../../lib";
|
|
3
|
-
import { DefaultServiceProps } from "../../utils";
|
|
4
|
-
declare const primaryKey = "group_id";
|
|
5
|
-
export declare const ModelGroupFields: {
|
|
6
|
-
createdatetime: "createdatetime";
|
|
7
|
-
createuserid: "createuserid";
|
|
8
|
-
updatedatetime: "updatedatetime";
|
|
9
|
-
updateuserid: "updateuserid";
|
|
10
|
-
isdelete: "isdelete";
|
|
11
|
-
istrash: "istrash";
|
|
12
|
-
accountid: "accountid";
|
|
13
|
-
status: "status";
|
|
14
|
-
group_id: "group_id";
|
|
15
|
-
group_label: "group_label";
|
|
16
|
-
group_description: "group_description";
|
|
17
|
-
group_type: "group_type";
|
|
18
|
-
};
|
|
19
|
-
export type ModelGroup = groups;
|
|
20
|
-
export type ModelGroupOmitFields = typeof primaryKey | DefaultOmitFields;
|
|
21
|
-
export type ModelGroupCreateProps = {
|
|
22
|
-
createUserId: number;
|
|
23
|
-
data: Omit<Prisma.groupsUncheckedCreateInput, ModelGroupOmitFields>;
|
|
24
|
-
};
|
|
25
|
-
export type ModelGroupUpdateProps = {
|
|
26
|
-
id: number;
|
|
27
|
-
updateUserId: number;
|
|
28
|
-
data: Omit<Prisma.groupsUncheckedUpdateInput, ModelGroupOmitFields>;
|
|
29
|
-
};
|
|
30
|
-
export type ModelGroupTrashProps = {
|
|
31
|
-
id: number;
|
|
32
|
-
updateUserId: number;
|
|
33
|
-
};
|
|
34
|
-
export type ModelGroupRemoveProps = {
|
|
35
|
-
id: number;
|
|
36
|
-
updateUserId: number;
|
|
37
|
-
};
|
|
38
|
-
export type ModelGroupGetProps = {
|
|
39
|
-
id: number;
|
|
40
|
-
};
|
|
41
|
-
export type ModelGroupListProps = {
|
|
42
|
-
where?: Prisma.groupsWhereInput;
|
|
43
|
-
orderBy?: Prisma.groupsOrderByWithRelationInput | Prisma.groupsOrderByWithRelationInput[];
|
|
44
|
-
offset?: number;
|
|
45
|
-
limit?: number;
|
|
46
|
-
};
|
|
47
|
-
export declare const GroupModel: ({ ...rest }: DefaultServiceProps) => {
|
|
48
|
-
selectedPrisma: any;
|
|
49
|
-
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "group_id" | "group_label" | "group_description" | "group_type";
|
|
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
|
-
status: number | null;
|
|
65
|
-
group_id: bigint;
|
|
66
|
-
group_label: string | null;
|
|
67
|
-
group_description: string | null;
|
|
68
|
-
group_type: string | null;
|
|
69
|
-
}>;
|
|
70
|
-
createMany: ({ dataList, disableRollback, }: {
|
|
71
|
-
dataList: Omit<any, DefaultOmitFields>[];
|
|
72
|
-
disableRollback?: boolean;
|
|
73
|
-
}) => Promise<{
|
|
74
|
-
createdatetime: Date | null;
|
|
75
|
-
createuserid: bigint;
|
|
76
|
-
updatedatetime: Date | null;
|
|
77
|
-
updateuserid: bigint;
|
|
78
|
-
isdelete: boolean | null;
|
|
79
|
-
istrash: boolean | null;
|
|
80
|
-
accountid: bigint;
|
|
81
|
-
status: number | null;
|
|
82
|
-
group_id: bigint;
|
|
83
|
-
group_label: string | null;
|
|
84
|
-
group_description: string | null;
|
|
85
|
-
group_type: string | null;
|
|
86
|
-
}[]>;
|
|
87
|
-
get: ({ id, where, include, }: {
|
|
88
|
-
id?: number;
|
|
89
|
-
where?: Record<string, any>;
|
|
90
|
-
include?: any;
|
|
91
|
-
}) => Promise<{
|
|
92
|
-
createdatetime: Date | null;
|
|
93
|
-
createuserid: bigint;
|
|
94
|
-
updatedatetime: Date | null;
|
|
95
|
-
updateuserid: bigint;
|
|
96
|
-
isdelete: boolean | null;
|
|
97
|
-
istrash: boolean | null;
|
|
98
|
-
accountid: bigint;
|
|
99
|
-
status: number | null;
|
|
100
|
-
group_id: bigint;
|
|
101
|
-
group_label: string | null;
|
|
102
|
-
group_description: string | null;
|
|
103
|
-
group_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
|
-
status: number | null;
|
|
114
|
-
group_id: bigint;
|
|
115
|
-
group_label: string | null;
|
|
116
|
-
group_description: string | null;
|
|
117
|
-
group_type: string | null;
|
|
118
|
-
}[]>;
|
|
119
|
-
count: ({ where, }?: {
|
|
120
|
-
where?: Record<string, any>;
|
|
121
|
-
}) => Promise<number>;
|
|
122
|
-
aggregate: ({ field, operation, where, }: {
|
|
123
|
-
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "group_id" | "group_label" | "group_description" | "group_type";
|
|
124
|
-
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
125
|
-
where?: Record<string, any>;
|
|
126
|
-
}) => Promise<number>;
|
|
127
|
-
update: ({ id, where, data, disableRollback }: {
|
|
128
|
-
id?: number;
|
|
129
|
-
where?: Record<string, any>;
|
|
130
|
-
data: Partial<{
|
|
131
|
-
createdatetime: Date | null;
|
|
132
|
-
createuserid: bigint;
|
|
133
|
-
updatedatetime: Date | null;
|
|
134
|
-
updateuserid: bigint;
|
|
135
|
-
isdelete: boolean | null;
|
|
136
|
-
istrash: boolean | null;
|
|
137
|
-
accountid: bigint;
|
|
138
|
-
status: number | null;
|
|
139
|
-
group_id: bigint;
|
|
140
|
-
group_label: string | null;
|
|
141
|
-
group_description: string | null;
|
|
142
|
-
group_type: string | null;
|
|
143
|
-
}>;
|
|
144
|
-
disableRollback?: boolean;
|
|
145
|
-
}) => Promise<{
|
|
146
|
-
createdatetime: Date | null;
|
|
147
|
-
createuserid: bigint;
|
|
148
|
-
updatedatetime: Date | null;
|
|
149
|
-
updateuserid: bigint;
|
|
150
|
-
isdelete: boolean | null;
|
|
151
|
-
istrash: boolean | null;
|
|
152
|
-
accountid: bigint;
|
|
153
|
-
status: number | null;
|
|
154
|
-
group_id: bigint;
|
|
155
|
-
group_label: string | null;
|
|
156
|
-
group_description: string | null;
|
|
157
|
-
group_type: string | null;
|
|
158
|
-
}>;
|
|
159
|
-
updateMany: ({ dataList, disableRollback, }: {
|
|
160
|
-
dataList: {
|
|
161
|
-
where: Record<string, any>;
|
|
162
|
-
data: Partial<{
|
|
163
|
-
createdatetime: Date | null;
|
|
164
|
-
createuserid: bigint;
|
|
165
|
-
updatedatetime: Date | null;
|
|
166
|
-
updateuserid: bigint;
|
|
167
|
-
isdelete: boolean | null;
|
|
168
|
-
istrash: boolean | null;
|
|
169
|
-
accountid: bigint;
|
|
170
|
-
status: number | null;
|
|
171
|
-
group_id: bigint;
|
|
172
|
-
group_label: string | null;
|
|
173
|
-
group_description: string | null;
|
|
174
|
-
group_type: string | null;
|
|
175
|
-
}>;
|
|
176
|
-
}[];
|
|
177
|
-
disableRollback?: boolean;
|
|
178
|
-
}) => Promise<{
|
|
179
|
-
createdatetime: Date | null;
|
|
180
|
-
createuserid: bigint;
|
|
181
|
-
updatedatetime: Date | null;
|
|
182
|
-
updateuserid: bigint;
|
|
183
|
-
isdelete: boolean | null;
|
|
184
|
-
istrash: boolean | null;
|
|
185
|
-
accountid: bigint;
|
|
186
|
-
status: number | null;
|
|
187
|
-
group_id: bigint;
|
|
188
|
-
group_label: string | null;
|
|
189
|
-
group_description: string | null;
|
|
190
|
-
group_type: string | null;
|
|
191
|
-
}[]>;
|
|
192
|
-
trash: ({ ids }: {
|
|
193
|
-
ids: number[];
|
|
194
|
-
}) => Promise<{
|
|
195
|
-
createdatetime: Date | null;
|
|
196
|
-
createuserid: bigint;
|
|
197
|
-
updatedatetime: Date | null;
|
|
198
|
-
updateuserid: bigint;
|
|
199
|
-
isdelete: boolean | null;
|
|
200
|
-
istrash: boolean | null;
|
|
201
|
-
accountid: bigint;
|
|
202
|
-
status: number | null;
|
|
203
|
-
group_id: bigint;
|
|
204
|
-
group_label: string | null;
|
|
205
|
-
group_description: string | null;
|
|
206
|
-
group_type: string | null;
|
|
207
|
-
}[]>;
|
|
208
|
-
remove: ({ ids, where }: {
|
|
209
|
-
ids?: number[];
|
|
210
|
-
where?: Record<string, any>;
|
|
211
|
-
}) => Promise<{
|
|
212
|
-
createdatetime: Date | null;
|
|
213
|
-
createuserid: bigint;
|
|
214
|
-
updatedatetime: Date | null;
|
|
215
|
-
updateuserid: bigint;
|
|
216
|
-
isdelete: boolean | null;
|
|
217
|
-
istrash: boolean | null;
|
|
218
|
-
accountid: bigint;
|
|
219
|
-
status: number | null;
|
|
220
|
-
group_id: bigint;
|
|
221
|
-
group_label: string | null;
|
|
222
|
-
group_description: string | null;
|
|
223
|
-
group_type: string | null;
|
|
224
|
-
}[]>;
|
|
225
|
-
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
226
|
-
};
|
|
227
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GroupModel = exports.ModelGroupFields = void 0;
|
|
4
|
-
const lib_1 = require("../../lib");
|
|
5
|
-
const primaryKey = "group_id";
|
|
6
|
-
exports.ModelGroupFields = (0, lib_1.getFieldsByType)();
|
|
7
|
-
const GroupModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
|
|
8
|
-
...rest,
|
|
9
|
-
modelName: "groups",
|
|
10
|
-
primaryKey
|
|
11
|
-
});
|
|
12
|
-
exports.GroupModel = GroupModel;
|
|
13
|
-
//# sourceMappingURL=GroupModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupModel.js","sourceRoot":"","sources":["../../../src/models/group/GroupModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,UAAU,CAAC;AAEjB,QAAA,gBAAgB,GAAG,IAAA,qBAAe,GAAU,CAAC;AAuCnD,MAAM,UAAU,GAAG,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,EAAE,CAC3D,IAAA,kBAAY,EAAyD;IACjE,GAAG,IAAI;IACP,SAAS,EAAE,QAAQ;IACnB,UAAU;CACb,CAAC,CAAC;AALM,QAAA,UAAU,cAKhB","sourcesContent":["import { PrismaClient, groups, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"group_id\";\n\nexport const ModelGroupFields = getFieldsByType<groups>();\n\nexport type ModelGroup = groups\n\nexport type ModelGroupOmitFields = typeof primaryKey | DefaultOmitFields\n\nexport type ModelGroupCreateProps = {\n createUserId: number,\n data: Omit<Prisma.groupsUncheckedCreateInput, ModelGroupOmitFields>\n}\n\nexport type ModelGroupUpdateProps = {\n id: number,\n updateUserId: number,\n data: Omit<Prisma.groupsUncheckedUpdateInput, ModelGroupOmitFields>\n}\n\nexport type ModelGroupTrashProps = {\n id: number,\n updateUserId: number\n}\n\nexport type ModelGroupRemoveProps = {\n id: number,\n updateUserId: number\n}\n\nexport type ModelGroupGetProps = {\n id: number\n}\n\nexport type ModelGroupListProps = {\n where?: Prisma.groupsWhereInput;\n orderBy?: Prisma.groupsOrderByWithRelationInput | Prisma.groupsOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\n\nexport const GroupModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"groups\", PrismaClient[\"groups\"], groups>({\n ...rest,\n modelName: \"groups\",\n primaryKey\n });"]}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { group_owners, Prisma } from "@prisma/client";
|
|
2
|
-
import { DefaultOmitFields } from "../../lib";
|
|
3
|
-
import { DefaultServiceProps } from "../../utils";
|
|
4
|
-
declare const primaryKey = "group_owner_id";
|
|
5
|
-
export declare const ModelGroupOwnerFields: {
|
|
6
|
-
createdatetime: "createdatetime";
|
|
7
|
-
createuserid: "createuserid";
|
|
8
|
-
updatedatetime: "updatedatetime";
|
|
9
|
-
updateuserid: "updateuserid";
|
|
10
|
-
isdelete: "isdelete";
|
|
11
|
-
istrash: "istrash";
|
|
12
|
-
accountid: "accountid";
|
|
13
|
-
type: "type";
|
|
14
|
-
user_id: "user_id";
|
|
15
|
-
group_id: "group_id";
|
|
16
|
-
group_owner_id: "group_owner_id";
|
|
17
|
-
};
|
|
18
|
-
export type ModelGroupOwner = group_owners;
|
|
19
|
-
export type ModelGroupOwnerOmitFields = typeof primaryKey | DefaultOmitFields;
|
|
20
|
-
export type ModelGroupOwnerCreateProps = {
|
|
21
|
-
createUserId: number;
|
|
22
|
-
data: Omit<Prisma.group_ownersUncheckedCreateInput, ModelGroupOwnerOmitFields>;
|
|
23
|
-
};
|
|
24
|
-
export type ModelGroupOwnerUpdateProps = {
|
|
25
|
-
id: number;
|
|
26
|
-
updateUserId: number;
|
|
27
|
-
data: Omit<Prisma.group_ownersUncheckedUpdateInput, ModelGroupOwnerOmitFields>;
|
|
28
|
-
};
|
|
29
|
-
export type ModelGroupOwnerTrashProps = {
|
|
30
|
-
id: number;
|
|
31
|
-
updateUserId: number;
|
|
32
|
-
};
|
|
33
|
-
export type ModelGroupOwnerRemoveProps = {
|
|
34
|
-
id: number;
|
|
35
|
-
updateUserId: number;
|
|
36
|
-
};
|
|
37
|
-
export type ModelGroupOwnerGetProps = {
|
|
38
|
-
id: number;
|
|
39
|
-
};
|
|
40
|
-
export type ModelGroupOwnerListProps = {
|
|
41
|
-
where?: Prisma.group_ownersWhereInput;
|
|
42
|
-
orderBy?: Prisma.group_ownersOrderByWithRelationInput | Prisma.group_ownersOrderByWithRelationInput[];
|
|
43
|
-
offset?: number;
|
|
44
|
-
limit?: number;
|
|
45
|
-
};
|
|
46
|
-
export declare const GroupOwnerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
47
|
-
selectedPrisma: any;
|
|
48
|
-
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "type" | "user_id" | "group_id" | "group_owner_id";
|
|
49
|
-
getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
|
|
50
|
-
name: string;
|
|
51
|
-
type: string;
|
|
52
|
-
}[]>;
|
|
53
|
-
create: ({ data, }: {
|
|
54
|
-
data: Omit<any, DefaultOmitFields>;
|
|
55
|
-
}) => Promise<{
|
|
56
|
-
createdatetime: Date | null;
|
|
57
|
-
createuserid: bigint;
|
|
58
|
-
updatedatetime: Date | null;
|
|
59
|
-
updateuserid: bigint;
|
|
60
|
-
isdelete: boolean | null;
|
|
61
|
-
istrash: boolean | null;
|
|
62
|
-
accountid: bigint;
|
|
63
|
-
type: string;
|
|
64
|
-
user_id: bigint;
|
|
65
|
-
group_id: bigint;
|
|
66
|
-
group_owner_id: bigint;
|
|
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
|
-
type: string;
|
|
80
|
-
user_id: bigint;
|
|
81
|
-
group_id: bigint;
|
|
82
|
-
group_owner_id: bigint;
|
|
83
|
-
}[]>;
|
|
84
|
-
get: ({ id, where, include, }: {
|
|
85
|
-
id?: number;
|
|
86
|
-
where?: Record<string, any>;
|
|
87
|
-
include?: any;
|
|
88
|
-
}) => Promise<{
|
|
89
|
-
createdatetime: Date | null;
|
|
90
|
-
createuserid: bigint;
|
|
91
|
-
updatedatetime: Date | null;
|
|
92
|
-
updateuserid: bigint;
|
|
93
|
-
isdelete: boolean | null;
|
|
94
|
-
istrash: boolean | null;
|
|
95
|
-
accountid: bigint;
|
|
96
|
-
type: string;
|
|
97
|
-
user_id: bigint;
|
|
98
|
-
group_id: bigint;
|
|
99
|
-
group_owner_id: bigint;
|
|
100
|
-
} | null>;
|
|
101
|
-
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
102
|
-
createdatetime: Date | null;
|
|
103
|
-
createuserid: bigint;
|
|
104
|
-
updatedatetime: Date | null;
|
|
105
|
-
updateuserid: bigint;
|
|
106
|
-
isdelete: boolean | null;
|
|
107
|
-
istrash: boolean | null;
|
|
108
|
-
accountid: bigint;
|
|
109
|
-
type: string;
|
|
110
|
-
user_id: bigint;
|
|
111
|
-
group_id: bigint;
|
|
112
|
-
group_owner_id: bigint;
|
|
113
|
-
}[]>;
|
|
114
|
-
count: ({ where, }?: {
|
|
115
|
-
where?: Record<string, any>;
|
|
116
|
-
}) => Promise<number>;
|
|
117
|
-
aggregate: ({ field, operation, where, }: {
|
|
118
|
-
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "type" | "user_id" | "group_id" | "group_owner_id";
|
|
119
|
-
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
120
|
-
where?: Record<string, any>;
|
|
121
|
-
}) => Promise<number>;
|
|
122
|
-
update: ({ id, where, data, disableRollback }: {
|
|
123
|
-
id?: number;
|
|
124
|
-
where?: Record<string, any>;
|
|
125
|
-
data: Partial<{
|
|
126
|
-
createdatetime: Date | null;
|
|
127
|
-
createuserid: bigint;
|
|
128
|
-
updatedatetime: Date | null;
|
|
129
|
-
updateuserid: bigint;
|
|
130
|
-
isdelete: boolean | null;
|
|
131
|
-
istrash: boolean | null;
|
|
132
|
-
accountid: bigint;
|
|
133
|
-
type: string;
|
|
134
|
-
user_id: bigint;
|
|
135
|
-
group_id: bigint;
|
|
136
|
-
group_owner_id: bigint;
|
|
137
|
-
}>;
|
|
138
|
-
disableRollback?: boolean;
|
|
139
|
-
}) => Promise<{
|
|
140
|
-
createdatetime: Date | null;
|
|
141
|
-
createuserid: bigint;
|
|
142
|
-
updatedatetime: Date | null;
|
|
143
|
-
updateuserid: bigint;
|
|
144
|
-
isdelete: boolean | null;
|
|
145
|
-
istrash: boolean | null;
|
|
146
|
-
accountid: bigint;
|
|
147
|
-
type: string;
|
|
148
|
-
user_id: bigint;
|
|
149
|
-
group_id: bigint;
|
|
150
|
-
group_owner_id: bigint;
|
|
151
|
-
}>;
|
|
152
|
-
updateMany: ({ dataList, disableRollback, }: {
|
|
153
|
-
dataList: {
|
|
154
|
-
where: Record<string, any>;
|
|
155
|
-
data: Partial<{
|
|
156
|
-
createdatetime: Date | null;
|
|
157
|
-
createuserid: bigint;
|
|
158
|
-
updatedatetime: Date | null;
|
|
159
|
-
updateuserid: bigint;
|
|
160
|
-
isdelete: boolean | null;
|
|
161
|
-
istrash: boolean | null;
|
|
162
|
-
accountid: bigint;
|
|
163
|
-
type: string;
|
|
164
|
-
user_id: bigint;
|
|
165
|
-
group_id: bigint;
|
|
166
|
-
group_owner_id: bigint;
|
|
167
|
-
}>;
|
|
168
|
-
}[];
|
|
169
|
-
disableRollback?: boolean;
|
|
170
|
-
}) => Promise<{
|
|
171
|
-
createdatetime: Date | null;
|
|
172
|
-
createuserid: bigint;
|
|
173
|
-
updatedatetime: Date | null;
|
|
174
|
-
updateuserid: bigint;
|
|
175
|
-
isdelete: boolean | null;
|
|
176
|
-
istrash: boolean | null;
|
|
177
|
-
accountid: bigint;
|
|
178
|
-
type: string;
|
|
179
|
-
user_id: bigint;
|
|
180
|
-
group_id: bigint;
|
|
181
|
-
group_owner_id: bigint;
|
|
182
|
-
}[]>;
|
|
183
|
-
trash: ({ ids }: {
|
|
184
|
-
ids: number[];
|
|
185
|
-
}) => Promise<{
|
|
186
|
-
createdatetime: Date | null;
|
|
187
|
-
createuserid: bigint;
|
|
188
|
-
updatedatetime: Date | null;
|
|
189
|
-
updateuserid: bigint;
|
|
190
|
-
isdelete: boolean | null;
|
|
191
|
-
istrash: boolean | null;
|
|
192
|
-
accountid: bigint;
|
|
193
|
-
type: string;
|
|
194
|
-
user_id: bigint;
|
|
195
|
-
group_id: bigint;
|
|
196
|
-
group_owner_id: bigint;
|
|
197
|
-
}[]>;
|
|
198
|
-
remove: ({ ids, where }: {
|
|
199
|
-
ids?: number[];
|
|
200
|
-
where?: Record<string, any>;
|
|
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
|
-
type: string;
|
|
210
|
-
user_id: bigint;
|
|
211
|
-
group_id: bigint;
|
|
212
|
-
group_owner_id: bigint;
|
|
213
|
-
}[]>;
|
|
214
|
-
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
215
|
-
};
|
|
216
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GroupOwnerModel = exports.ModelGroupOwnerFields = void 0;
|
|
4
|
-
const lib_1 = require("../../lib");
|
|
5
|
-
const primaryKey = "group_owner_id";
|
|
6
|
-
exports.ModelGroupOwnerFields = (0, lib_1.getFieldsByType)();
|
|
7
|
-
const GroupOwnerModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
|
|
8
|
-
...rest,
|
|
9
|
-
modelName: "group_owners",
|
|
10
|
-
primaryKey
|
|
11
|
-
});
|
|
12
|
-
exports.GroupOwnerModel = GroupOwnerModel;
|
|
13
|
-
//# sourceMappingURL=GroupOwnerModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupOwnerModel.js","sourceRoot":"","sources":["../../../src/models/group/GroupOwnerModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,gBAAgB,CAAC;AAEvB,QAAA,qBAAqB,GAAG,IAAA,qBAAe,GAAgB,CAAC;AAuC9D,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, group_owners, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"group_owner_id\";\n\nexport const ModelGroupOwnerFields = getFieldsByType<group_owners>();\n\nexport type ModelGroupOwner = group_owners\n\nexport type ModelGroupOwnerOmitFields = typeof primaryKey | DefaultOmitFields\n\nexport type ModelGroupOwnerCreateProps = {\n createUserId: number,\n data: Omit<Prisma.group_ownersUncheckedCreateInput, ModelGroupOwnerOmitFields>\n}\n\nexport type ModelGroupOwnerUpdateProps = {\n id: number,\n updateUserId: number,\n data: Omit<Prisma.group_ownersUncheckedUpdateInput, ModelGroupOwnerOmitFields>\n}\n\nexport type ModelGroupOwnerTrashProps = {\n id: number,\n updateUserId: number\n}\n\nexport type ModelGroupOwnerRemoveProps = {\n id: number,\n updateUserId: number\n}\n\nexport type ModelGroupOwnerGetProps = {\n id: number\n}\n\nexport type ModelGroupOwnerListProps = {\n where?: Prisma.group_ownersWhereInput;\n orderBy?: Prisma.group_ownersOrderByWithRelationInput | Prisma.group_ownersOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\n\nexport const GroupOwnerModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"group_owners\", PrismaClient[\"group_owners\"], group_owners>({\n ...rest,\n modelName: \"group_owners\",\n primaryKey\n });"]}
|