storemw-core-api 1.0.178 → 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/lib/query_builder/queryBuilder.js +8 -6
- package/dist/lib/query_builder/queryBuilder.js.map +1 -1
- package/dist/services/branch/UserBranchService.js +1 -1
- package/dist/services/branch/UserBranchService.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,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 });"]}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { user_props, Prisma } from "@prisma/client";
|
|
2
|
-
import { DefaultOmitFields } from "../../lib";
|
|
3
|
-
import { DefaultServiceProps } from "../../utils";
|
|
4
|
-
declare const primaryKey = "user_prop_id";
|
|
5
|
-
export declare const ModelUserPropFields: {
|
|
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
|
-
user_prop_id: "user_prop_id";
|
|
16
|
-
props_value: "props_value";
|
|
17
|
-
props_id: "props_id";
|
|
18
|
-
props_numeric: "props_numeric";
|
|
19
|
-
props_timestamp: "props_timestamp";
|
|
20
|
-
props_integer: "props_integer";
|
|
21
|
-
};
|
|
22
|
-
export type ModelUserProp = user_props;
|
|
23
|
-
export type ModelUserPropOmitFields = typeof primaryKey | DefaultOmitFields;
|
|
24
|
-
export type ModelUserPropCreateProps = {
|
|
25
|
-
data: Omit<Prisma.user_propsUncheckedCreateInput, ModelUserPropOmitFields>;
|
|
26
|
-
};
|
|
27
|
-
export type ModelUserPropUpdateProps = {
|
|
28
|
-
id: number;
|
|
29
|
-
data: Omit<Prisma.user_propsUncheckedUpdateInput, ModelUserPropOmitFields>;
|
|
30
|
-
};
|
|
31
|
-
export type ModelUserPropTrashProps = {
|
|
32
|
-
ids: number[];
|
|
33
|
-
};
|
|
34
|
-
export type ModelUserPropRemoveProps = {
|
|
35
|
-
id: number;
|
|
36
|
-
};
|
|
37
|
-
export type ModelUserPropGetProps = {
|
|
38
|
-
id: number;
|
|
39
|
-
};
|
|
40
|
-
export type ModelUserPropListProps = {
|
|
41
|
-
where?: Prisma.user_propsWhereInput;
|
|
42
|
-
orderBy?: Prisma.user_propsOrderByWithRelationInput | Prisma.user_propsOrderByWithRelationInput[];
|
|
43
|
-
offset?: number;
|
|
44
|
-
limit?: number;
|
|
45
|
-
};
|
|
46
|
-
export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
47
|
-
selectedPrisma: any;
|
|
48
|
-
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "type" | "user_id" | "user_prop_id" | "props_value" | "props_id" | "props_numeric" | "props_timestamp" | "props_integer";
|
|
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 | null;
|
|
64
|
-
user_id: bigint | null;
|
|
65
|
-
user_prop_id: bigint;
|
|
66
|
-
props_value: string | null;
|
|
67
|
-
props_id: bigint;
|
|
68
|
-
props_numeric: Prisma.Decimal;
|
|
69
|
-
props_timestamp: Date | null;
|
|
70
|
-
props_integer: bigint | null;
|
|
71
|
-
}>;
|
|
72
|
-
createMany: ({ dataList, disableRollback, }: {
|
|
73
|
-
dataList: Omit<any, DefaultOmitFields>[];
|
|
74
|
-
disableRollback?: boolean;
|
|
75
|
-
}) => Promise<{
|
|
76
|
-
createdatetime: Date | null;
|
|
77
|
-
createuserid: bigint;
|
|
78
|
-
updatedatetime: Date | null;
|
|
79
|
-
updateuserid: bigint;
|
|
80
|
-
isdelete: boolean | null;
|
|
81
|
-
istrash: boolean | null;
|
|
82
|
-
accountid: bigint;
|
|
83
|
-
type: string | null;
|
|
84
|
-
user_id: bigint | null;
|
|
85
|
-
user_prop_id: bigint;
|
|
86
|
-
props_value: string | null;
|
|
87
|
-
props_id: bigint;
|
|
88
|
-
props_numeric: Prisma.Decimal;
|
|
89
|
-
props_timestamp: Date | null;
|
|
90
|
-
props_integer: bigint | null;
|
|
91
|
-
}[]>;
|
|
92
|
-
get: ({ id, where, include, }: {
|
|
93
|
-
id?: number;
|
|
94
|
-
where?: Record<string, any>;
|
|
95
|
-
include?: any;
|
|
96
|
-
}) => Promise<{
|
|
97
|
-
createdatetime: Date | null;
|
|
98
|
-
createuserid: bigint;
|
|
99
|
-
updatedatetime: Date | null;
|
|
100
|
-
updateuserid: bigint;
|
|
101
|
-
isdelete: boolean | null;
|
|
102
|
-
istrash: boolean | null;
|
|
103
|
-
accountid: bigint;
|
|
104
|
-
type: string | null;
|
|
105
|
-
user_id: bigint | null;
|
|
106
|
-
user_prop_id: bigint;
|
|
107
|
-
props_value: string | null;
|
|
108
|
-
props_id: bigint;
|
|
109
|
-
props_numeric: Prisma.Decimal;
|
|
110
|
-
props_timestamp: Date | null;
|
|
111
|
-
props_integer: bigint | null;
|
|
112
|
-
} | null>;
|
|
113
|
-
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
114
|
-
createdatetime: Date | null;
|
|
115
|
-
createuserid: bigint;
|
|
116
|
-
updatedatetime: Date | null;
|
|
117
|
-
updateuserid: bigint;
|
|
118
|
-
isdelete: boolean | null;
|
|
119
|
-
istrash: boolean | null;
|
|
120
|
-
accountid: bigint;
|
|
121
|
-
type: string | null;
|
|
122
|
-
user_id: bigint | null;
|
|
123
|
-
user_prop_id: bigint;
|
|
124
|
-
props_value: string | null;
|
|
125
|
-
props_id: bigint;
|
|
126
|
-
props_numeric: Prisma.Decimal;
|
|
127
|
-
props_timestamp: Date | null;
|
|
128
|
-
props_integer: bigint | null;
|
|
129
|
-
}[]>;
|
|
130
|
-
count: ({ where, }?: {
|
|
131
|
-
where?: Record<string, any>;
|
|
132
|
-
}) => Promise<number>;
|
|
133
|
-
aggregate: ({ field, operation, where, }: {
|
|
134
|
-
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "type" | "user_id" | "user_prop_id" | "props_value" | "props_id" | "props_numeric" | "props_timestamp" | "props_integer";
|
|
135
|
-
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
136
|
-
where?: Record<string, any>;
|
|
137
|
-
}) => Promise<number>;
|
|
138
|
-
update: ({ id, where, data, disableRollback }: {
|
|
139
|
-
id?: number;
|
|
140
|
-
where?: Record<string, any>;
|
|
141
|
-
data: Partial<{
|
|
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
|
-
type: string | null;
|
|
150
|
-
user_id: bigint | null;
|
|
151
|
-
user_prop_id: bigint;
|
|
152
|
-
props_value: string | null;
|
|
153
|
-
props_id: bigint;
|
|
154
|
-
props_numeric: Prisma.Decimal;
|
|
155
|
-
props_timestamp: Date | null;
|
|
156
|
-
props_integer: bigint | null;
|
|
157
|
-
}>;
|
|
158
|
-
disableRollback?: boolean;
|
|
159
|
-
}) => Promise<{
|
|
160
|
-
createdatetime: Date | null;
|
|
161
|
-
createuserid: bigint;
|
|
162
|
-
updatedatetime: Date | null;
|
|
163
|
-
updateuserid: bigint;
|
|
164
|
-
isdelete: boolean | null;
|
|
165
|
-
istrash: boolean | null;
|
|
166
|
-
accountid: bigint;
|
|
167
|
-
type: string | null;
|
|
168
|
-
user_id: bigint | null;
|
|
169
|
-
user_prop_id: bigint;
|
|
170
|
-
props_value: string | null;
|
|
171
|
-
props_id: bigint;
|
|
172
|
-
props_numeric: Prisma.Decimal;
|
|
173
|
-
props_timestamp: Date | null;
|
|
174
|
-
props_integer: bigint | null;
|
|
175
|
-
}>;
|
|
176
|
-
updateMany: ({ dataList, disableRollback, }: {
|
|
177
|
-
dataList: {
|
|
178
|
-
where: Record<string, any>;
|
|
179
|
-
data: Partial<{
|
|
180
|
-
createdatetime: Date | null;
|
|
181
|
-
createuserid: bigint;
|
|
182
|
-
updatedatetime: Date | null;
|
|
183
|
-
updateuserid: bigint;
|
|
184
|
-
isdelete: boolean | null;
|
|
185
|
-
istrash: boolean | null;
|
|
186
|
-
accountid: bigint;
|
|
187
|
-
type: string | null;
|
|
188
|
-
user_id: bigint | null;
|
|
189
|
-
user_prop_id: bigint;
|
|
190
|
-
props_value: string | null;
|
|
191
|
-
props_id: bigint;
|
|
192
|
-
props_numeric: Prisma.Decimal;
|
|
193
|
-
props_timestamp: Date | null;
|
|
194
|
-
props_integer: bigint | null;
|
|
195
|
-
}>;
|
|
196
|
-
}[];
|
|
197
|
-
disableRollback?: boolean;
|
|
198
|
-
}) => Promise<{
|
|
199
|
-
createdatetime: Date | null;
|
|
200
|
-
createuserid: bigint;
|
|
201
|
-
updatedatetime: Date | null;
|
|
202
|
-
updateuserid: bigint;
|
|
203
|
-
isdelete: boolean | null;
|
|
204
|
-
istrash: boolean | null;
|
|
205
|
-
accountid: bigint;
|
|
206
|
-
type: string | null;
|
|
207
|
-
user_id: bigint | null;
|
|
208
|
-
user_prop_id: bigint;
|
|
209
|
-
props_value: string | null;
|
|
210
|
-
props_id: bigint;
|
|
211
|
-
props_numeric: Prisma.Decimal;
|
|
212
|
-
props_timestamp: Date | null;
|
|
213
|
-
props_integer: bigint | null;
|
|
214
|
-
}[]>;
|
|
215
|
-
trash: ({ ids }: {
|
|
216
|
-
ids: number[];
|
|
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
|
-
type: string | null;
|
|
226
|
-
user_id: bigint | null;
|
|
227
|
-
user_prop_id: bigint;
|
|
228
|
-
props_value: string | null;
|
|
229
|
-
props_id: bigint;
|
|
230
|
-
props_numeric: Prisma.Decimal;
|
|
231
|
-
props_timestamp: Date | null;
|
|
232
|
-
props_integer: bigint | null;
|
|
233
|
-
}[]>;
|
|
234
|
-
remove: ({ ids, where }: {
|
|
235
|
-
ids?: number[];
|
|
236
|
-
where?: Record<string, any>;
|
|
237
|
-
}) => Promise<{
|
|
238
|
-
createdatetime: Date | null;
|
|
239
|
-
createuserid: bigint;
|
|
240
|
-
updatedatetime: Date | null;
|
|
241
|
-
updateuserid: bigint;
|
|
242
|
-
isdelete: boolean | null;
|
|
243
|
-
istrash: boolean | null;
|
|
244
|
-
accountid: bigint;
|
|
245
|
-
type: string | null;
|
|
246
|
-
user_id: bigint | null;
|
|
247
|
-
user_prop_id: bigint;
|
|
248
|
-
props_value: string | null;
|
|
249
|
-
props_id: bigint;
|
|
250
|
-
props_numeric: Prisma.Decimal;
|
|
251
|
-
props_timestamp: Date | null;
|
|
252
|
-
props_integer: bigint | null;
|
|
253
|
-
}[]>;
|
|
254
|
-
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
255
|
-
};
|
|
256
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserPropModel = exports.ModelUserPropFields = void 0;
|
|
4
|
-
const lib_1 = require("../../lib");
|
|
5
|
-
const primaryKey = "user_prop_id";
|
|
6
|
-
exports.ModelUserPropFields = (0, lib_1.getFieldsByType)();
|
|
7
|
-
const UserPropModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
|
|
8
|
-
...rest,
|
|
9
|
-
modelName: "user_props",
|
|
10
|
-
primaryKey
|
|
11
|
-
});
|
|
12
|
-
exports.UserPropModel = UserPropModel;
|
|
13
|
-
//# sourceMappingURL=UserPropModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserPropModel.js","sourceRoot":"","sources":["../../../src/models/user/UserPropModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,cAAc,CAAC;AAErB,QAAA,mBAAmB,GAAG,IAAA,qBAAe,GAAc,CAAC;AAkC1D,MAAM,aAAa,GAAG,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,EAAE,CAC9D,IAAA,kBAAY,EAAqE;IAC7E,GAAG,IAAI;IACP,SAAS,EAAE,YAAY;IACvB,UAAU;CACb,CAAC,CAAC;AALM,QAAA,aAAa,iBAKnB","sourcesContent":["import { PrismaClient, user_props, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"user_prop_id\";\n\nexport const ModelUserPropFields = getFieldsByType<user_props>();\n\nexport type ModelUserProp = user_props;\n\nexport type ModelUserPropOmitFields = typeof primaryKey | DefaultOmitFields;\n\nexport type ModelUserPropCreateProps = {\n data: Omit<Prisma.user_propsUncheckedCreateInput, ModelUserPropOmitFields>;\n};\n\nexport type ModelUserPropUpdateProps = {\n id: number;\n data: Omit<Prisma.user_propsUncheckedUpdateInput, ModelUserPropOmitFields>;\n};\n\nexport type ModelUserPropTrashProps = {\n ids: number[];\n};\n\nexport type ModelUserPropRemoveProps = {\n id: number;\n};\n\nexport type ModelUserPropGetProps = {\n id: number;\n};\n\nexport type ModelUserPropListProps = {\n where?: Prisma.user_propsWhereInput;\n orderBy?: Prisma.user_propsOrderByWithRelationInput | Prisma.user_propsOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\nexport const UserPropModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"user_props\", PrismaClient[\"user_props\"], user_props>({\n ...rest,\n modelName: \"user_props\",\n primaryKey\n });\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accessControlPolicyOptionsSpecs = void 0;
|
|
4
|
-
const controllers_1 = require("../../controllers");
|
|
5
|
-
const route_1 = require("../../schema/middleware/route");
|
|
6
|
-
exports.accessControlPolicyOptionsSpecs = [
|
|
7
|
-
/** access_controls/policy_options/:userType - List ACL Policy Options for user Type */
|
|
8
|
-
{
|
|
9
|
-
method: "get",
|
|
10
|
-
path: "/policies/:userType",
|
|
11
|
-
mcpValidation: {
|
|
12
|
-
params: route_1.schemaRouteAccessControlListPolicyOptions
|
|
13
|
-
},
|
|
14
|
-
handler: controllers_1.listAccessControlPolicyOptions,
|
|
15
|
-
scope: "access_control",
|
|
16
|
-
module: "policy_options",
|
|
17
|
-
action: "get",
|
|
18
|
-
description: "List ACL Policy Options for user Type"
|
|
19
|
-
}
|
|
20
|
-
];
|
|
21
|
-
//# sourceMappingURL=accessControlPoliciesRoutes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessControlPoliciesRoutes.js","sourceRoot":"","sources":["../../../src/route_contracts/access_control/accessControlPoliciesRoutes.ts"],"names":[],"mappings":";;;AAEA,+CAA+D;AAC/D,qDAAsF;AAEzE,QAAA,+BAA+B,GAAgB;IACxD,uFAAuF;IACvF;QACI,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,qBAAqB;QAC3B,aAAa,EAAE;YACX,MAAM,EAAE,iDAAyC;SACpD;QACD,OAAO,EAAE,4CAA8B;QACvC,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,gBAAgB;QACxB,MAAM,EAAE,KAAK;QACb,WAAW,EAAE,uCAAuC;KACvD;CACJ,CAAA","sourcesContent":["import { RouteSpec } from \"@/lib/route_factory\";\n\nimport { listAccessControlPolicyOptions } from \"@/controllers\";\nimport { schemaRouteAccessControlListPolicyOptions } from \"@/schema/middleware/route\";\n\nexport const accessControlPolicyOptionsSpecs: RouteSpec[] = [\n /** access_controls/policy_options/:userType - List ACL Policy Options for user Type */\n {\n method: \"get\",\n path: \"/policies/:userType\",\n mcpValidation: {\n params: schemaRouteAccessControlListPolicyOptions\n },\n handler: listAccessControlPolicyOptions,\n scope: \"access_control\",\n module: \"policy_options\",\n action: \"get\",\n description: \"List ACL Policy Options for user Type\"\n }\n]"]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accessControlRoleSpecs = void 0;
|
|
4
|
-
const controllers_1 = require("../../controllers");
|
|
5
|
-
const payload_1 = require("../../schema/payload");
|
|
6
|
-
const middleware_1 = require("../../schema/middleware");
|
|
7
|
-
exports.accessControlRoleSpecs = [
|
|
8
|
-
/** role/ - Create Role */
|
|
9
|
-
{
|
|
10
|
-
method: "post",
|
|
11
|
-
path: "/role",
|
|
12
|
-
mcpValidation: {
|
|
13
|
-
body: payload_1.schemaAccessControlRoleCreatePayload
|
|
14
|
-
},
|
|
15
|
-
handler: controllers_1.createAccessControlRole,
|
|
16
|
-
scope: "access_control",
|
|
17
|
-
module: "role",
|
|
18
|
-
action: "create",
|
|
19
|
-
description: "Create role"
|
|
20
|
-
},
|
|
21
|
-
/** role/:roleId - Update Role */
|
|
22
|
-
{
|
|
23
|
-
method: "put",
|
|
24
|
-
path: "/role/:roleId",
|
|
25
|
-
mcpValidation: {
|
|
26
|
-
body: payload_1.schemaAccessControlRoleUpdatePayload
|
|
27
|
-
},
|
|
28
|
-
handler: controllers_1.updateAccessControlRole,
|
|
29
|
-
scope: "access_control",
|
|
30
|
-
module: "role",
|
|
31
|
-
action: "update",
|
|
32
|
-
description: "Update role"
|
|
33
|
-
},
|
|
34
|
-
/** role/:id - Get Role */
|
|
35
|
-
{
|
|
36
|
-
method: "get",
|
|
37
|
-
path: "/role/:roleId",
|
|
38
|
-
mcpValidation: {
|
|
39
|
-
params: middleware_1.schemaRouteAccessControlGetRole
|
|
40
|
-
},
|
|
41
|
-
handler: controllers_1.getAccessControlRole,
|
|
42
|
-
scope: "access_control",
|
|
43
|
-
module: "role",
|
|
44
|
-
action: "get",
|
|
45
|
-
description: "Get role"
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
//# sourceMappingURL=accessControlRoleRoutes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessControlRoleRoutes.js","sourceRoot":"","sources":["../../../src/route_contracts/access_control/accessControlRoleRoutes.ts"],"names":[],"mappings":";;;AAEA,+CAAuG;AAEvG,8CAG0B;AAE1B,oDAAqE;AAExD,QAAA,sBAAsB,GAAgB;IAC/C,0BAA0B;IAC1B;QACI,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,OAAO;QACb,aAAa,EAAE;YACX,IAAI,EAAE,8CAAoC;SAC7C;QACD,OAAO,EAAE,qCAAuB;QAChC,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,QAAQ;QAChB,WAAW,EAAE,aAAa;KAC7B;IACD,iCAAiC;IACjC;QACI,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,eAAe;QACrB,aAAa,EAAE;YACX,IAAI,EAAE,8CAAoC;SAC7C;QACD,OAAO,EAAE,qCAAuB;QAChC,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,QAAQ;QAChB,WAAW,EAAE,aAAa;KAC7B;IACD,0BAA0B;IAC1B;QACI,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,eAAe;QACrB,aAAa,EAAE;YACX,MAAM,EAAE,4CAA+B;SAC1C;QACD,OAAO,EAAE,kCAAoB;QAC7B,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,KAAK;QACb,WAAW,EAAE,UAAU;KAC1B;CACJ,CAAA","sourcesContent":["import { RouteSpec } from \"@/lib/route_factory\";\n\nimport { getAccessControlRole, createAccessControlRole, updateAccessControlRole } from \"@/controllers\";\n\nimport {\n schemaAccessControlRoleCreatePayload,\n schemaAccessControlRoleUpdatePayload,\n} from \"@/schema/payload\";\n\nimport { schemaRouteAccessControlGetRole } from \"@/schema/middleware\"\n\nexport const accessControlRoleSpecs: RouteSpec[] = [\n /** role/ - Create Role */\n {\n method: \"post\",\n path: \"/role\",\n mcpValidation: {\n body: schemaAccessControlRoleCreatePayload\n },\n handler: createAccessControlRole,\n scope: \"access_control\",\n module: \"role\",\n action: \"create\",\n description: \"Create role\"\n },\n /** role/:roleId - Update Role */\n {\n method: \"put\",\n path: \"/role/:roleId\",\n mcpValidation: {\n body: schemaAccessControlRoleUpdatePayload\n },\n handler: updateAccessControlRole,\n scope: \"access_control\",\n module: \"role\",\n action: \"update\",\n description: \"Update role\"\n },\n /** role/:id - Get Role */\n {\n method: \"get\",\n path: \"/role/:roleId\",\n mcpValidation: {\n params: schemaRouteAccessControlGetRole\n },\n handler: getAccessControlRole,\n scope: \"access_control\",\n module: \"role\",\n action: \"get\",\n description: \"Get role\"\n }\n]"]}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accessControlRolesSpecs = void 0;
|
|
4
|
-
const controllers_1 = require("../../controllers");
|
|
5
|
-
const route_1 = require("../../schema/middleware/route");
|
|
6
|
-
const payload_1 = require("../../schema/payload");
|
|
7
|
-
const common_1 = require("../../schema/common");
|
|
8
|
-
exports.accessControlRolesSpecs = [
|
|
9
|
-
/** roles - List Roles */
|
|
10
|
-
{
|
|
11
|
-
method: "get",
|
|
12
|
-
path: "/roles",
|
|
13
|
-
mcpValidation: {
|
|
14
|
-
params: common_1.schemaQueryList,
|
|
15
|
-
query: route_1.schemaRouteAccessControlRoleList
|
|
16
|
-
},
|
|
17
|
-
handler: controllers_1.listAccessControlRoles,
|
|
18
|
-
scope: "access_control",
|
|
19
|
-
module: "roles",
|
|
20
|
-
action: "list",
|
|
21
|
-
description: "List Roles"
|
|
22
|
-
},
|
|
23
|
-
/** roles/delete - Delete Roles */
|
|
24
|
-
{
|
|
25
|
-
method: "post",
|
|
26
|
-
path: "/roles/delete",
|
|
27
|
-
mcpValidation: {
|
|
28
|
-
body: payload_1.schemaAccessControlRoleDeletePayload
|
|
29
|
-
},
|
|
30
|
-
handler: controllers_1.deleteAccessControlRoles,
|
|
31
|
-
scope: "access_control",
|
|
32
|
-
module: "roles",
|
|
33
|
-
action: "delete",
|
|
34
|
-
description: "Delete Roles"
|
|
35
|
-
}
|
|
36
|
-
];
|
|
37
|
-
//# sourceMappingURL=accessControlRolesRoutes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessControlRolesRoutes.js","sourceRoot":"","sources":["../../../src/route_contracts/access_control/accessControlRolesRoutes.ts"],"names":[],"mappings":";;;AAEA,+CAAiF;AAEjF,qDAA6E;AAC7E,8CAE0B;AAE1B,4CAAkE;AAErD,QAAA,uBAAuB,GAAgB;IAChD,yBAAyB;IACzB;QACI,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE;YACX,MAAM,EAAE,wBAAe;YACvB,KAAK,EAAE,wCAAgC;SAC1C;QACD,OAAO,EAAE,oCAAsB;QAC/B,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,YAAY;KAC5B;IACD,kCAAkC;IAClC;QACI,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,eAAe;QACrB,aAAa,EAAE;YACX,IAAI,EAAE,8CAAoC;SAC7C;QACD,OAAO,EAAE,sCAAwB;QACjC,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,QAAQ;QAChB,WAAW,EAAE,cAAc;KAC9B;CACJ,CAAA","sourcesContent":["import { RouteSpec } from \"@/lib/route_factory\";\n\nimport { listAccessControlRoles, deleteAccessControlRoles } from \"@/controllers\";\n\nimport { schemaRouteAccessControlRoleList } from \"@/schema/middleware/route\";\nimport {\n schemaAccessControlRoleDeletePayload\n} from \"@/schema/payload\";\n\nimport { schemaQueryList, schemaQueryGet } from \"@/schema/common\";\n\nexport const accessControlRolesSpecs: RouteSpec[] = [\n /** roles - List Roles */\n {\n method: \"get\",\n path: \"/roles\",\n mcpValidation: {\n params: schemaQueryList,\n query: schemaRouteAccessControlRoleList\n },\n handler: listAccessControlRoles,\n scope: \"access_control\",\n module: \"roles\",\n action: \"list\",\n description: \"List Roles\"\n },\n /** roles/delete - Delete Roles */\n {\n method: \"post\",\n path: \"/roles/delete\",\n mcpValidation: {\n body: schemaAccessControlRoleDeletePayload\n },\n handler: deleteAccessControlRoles,\n scope: \"access_control\",\n module: \"roles\",\n action: \"delete\",\n description: \"Delete Roles\"\n }\n]"]}
|