@forklaunch/implementation-iam-base 0.1.13 → 0.1.14
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/lib/__test__/schemaEquality.test.d.ts +1 -1
- package/lib/__test__/schemaEquality.test.js +235 -135
- package/lib/jest.config.d.ts +1 -1
- package/lib/jest.config.js +16 -16
- package/lib/schemas/index.d.ts +1 -1
- package/lib/schemas/organization.schema.d.ts +357 -146
- package/lib/schemas/organization.schema.js +4 -1
- package/lib/schemas/permission.schema.d.ts +88 -34
- package/lib/schemas/permission.schema.js +4 -1
- package/lib/schemas/role.schema.d.ts +137 -48
- package/lib/schemas/role.schema.js +4 -1
- package/lib/schemas/typebox/organization.schema.d.ts +405 -103
- package/lib/schemas/typebox/organization.schema.js +27 -17
- package/lib/schemas/typebox/permission.schema.d.ts +122 -38
- package/lib/schemas/typebox/permission.schema.js +24 -17
- package/lib/schemas/typebox/role.schema.d.ts +190 -50
- package/lib/schemas/typebox/role.schema.js +24 -17
- package/lib/schemas/typebox/user.schema.d.ts +330 -94
- package/lib/schemas/typebox/user.schema.js +40 -32
- package/lib/schemas/user.schema.d.ts +260 -114
- package/lib/schemas/user.schema.js +4 -1
- package/lib/schemas/zod/organization.schema.d.ts +301 -211
- package/lib/schemas/zod/organization.schema.js +27 -17
- package/lib/schemas/zod/permission.schema.d.ts +54 -38
- package/lib/schemas/zod/permission.schema.js +24 -17
- package/lib/schemas/zod/role.schema.d.ts +94 -64
- package/lib/schemas/zod/role.schema.js +24 -17
- package/lib/schemas/zod/user.schema.d.ts +184 -138
- package/lib/schemas/zod/user.schema.js +40 -32
- package/lib/services/index.d.ts +1 -1
- package/lib/services/organization.service.d.ts +106 -33
- package/lib/services/organization.service.js +47 -32
- package/lib/services/permission.service.d.ts +117 -41
- package/lib/services/permission.service.js +193 -149
- package/lib/services/role.service.d.ts +104 -35
- package/lib/services/role.service.js +70 -54
- package/lib/services/user.service.d.ts +121 -37
- package/lib/services/user.service.js +121 -80
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/vitest.config.d.ts +2 -2
- package/lib/vitest.config.js +4 -4
- package/package.json +8 -8
|
@@ -1,179 +1,225 @@
|
|
|
1
1
|
export declare const CreateUserSchema: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
email: import('zod').ZodString;
|
|
3
|
+
password: import('zod').ZodString;
|
|
4
|
+
firstName: import('zod').ZodString;
|
|
5
|
+
lastName: import('zod').ZodString;
|
|
6
|
+
organizationId: import('zod').ZodString;
|
|
7
|
+
roleIds: import('zod').ZodArray<import('zod').ZodString, 'many'>;
|
|
8
|
+
phoneNumber: import('zod').ZodOptional<import('zod').ZodString>;
|
|
9
|
+
subscription: import('zod').ZodOptional<import('zod').ZodString>;
|
|
10
|
+
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
11
11
|
};
|
|
12
|
-
export declare const UpdateUserSchema: ({
|
|
13
|
-
|
|
12
|
+
export declare const UpdateUserSchema: ({
|
|
13
|
+
uuidId
|
|
14
|
+
}: {
|
|
15
|
+
uuidId: boolean;
|
|
14
16
|
}) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
id: import('zod').ZodString;
|
|
18
|
+
email: import('zod').ZodOptional<import('zod').ZodString>;
|
|
19
|
+
password: import('zod').ZodOptional<import('zod').ZodString>;
|
|
20
|
+
firstName: import('zod').ZodOptional<import('zod').ZodString>;
|
|
21
|
+
lastName: import('zod').ZodOptional<import('zod').ZodString>;
|
|
22
|
+
roleIds: import('zod').ZodOptional<
|
|
23
|
+
import('zod').ZodArray<import('zod').ZodString, 'many'>
|
|
24
|
+
>;
|
|
25
|
+
phoneNumber: import('zod').ZodOptional<import('zod').ZodString>;
|
|
26
|
+
subscription: import('zod').ZodOptional<import('zod').ZodString>;
|
|
27
|
+
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
24
28
|
};
|
|
25
|
-
export declare const UserSchema: ({
|
|
26
|
-
|
|
29
|
+
export declare const UserSchema: ({
|
|
30
|
+
uuidId
|
|
31
|
+
}: {
|
|
32
|
+
uuidId: boolean;
|
|
27
33
|
}) => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
34
|
+
id: import('zod').ZodString;
|
|
35
|
+
email: import('zod').ZodString;
|
|
36
|
+
firstName: import('zod').ZodString;
|
|
37
|
+
lastName: import('zod').ZodString;
|
|
38
|
+
roles: import('zod').ZodArray<
|
|
39
|
+
import('zod').ZodObject<
|
|
40
|
+
{
|
|
41
|
+
id: import('zod').ZodString;
|
|
42
|
+
name: import('zod').ZodString;
|
|
43
|
+
permissions: import('zod').ZodArray<
|
|
44
|
+
import('zod').ZodObject<
|
|
45
|
+
{
|
|
46
|
+
id: import('zod').ZodString;
|
|
47
|
+
slug: import('zod').ZodString;
|
|
48
|
+
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
49
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
50
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
51
|
+
},
|
|
52
|
+
import('zod').UnknownKeysParam,
|
|
53
|
+
import('zod').ZodTypeAny,
|
|
54
|
+
{
|
|
55
|
+
id: string;
|
|
56
|
+
slug: string;
|
|
57
|
+
extraFields?: unknown;
|
|
58
|
+
createdAt?: Date | undefined;
|
|
59
|
+
updatedAt?: Date | undefined;
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: string;
|
|
63
|
+
slug: string;
|
|
64
|
+
extraFields?: unknown;
|
|
65
|
+
createdAt?: Date | undefined;
|
|
66
|
+
updatedAt?: Date | undefined;
|
|
67
|
+
}
|
|
68
|
+
>,
|
|
69
|
+
'many'
|
|
70
|
+
>;
|
|
71
|
+
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
72
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
73
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
74
|
+
},
|
|
75
|
+
import('zod').UnknownKeysParam,
|
|
76
|
+
import('zod').ZodTypeAny,
|
|
77
|
+
{
|
|
58
78
|
id: string;
|
|
59
79
|
name: string;
|
|
60
80
|
permissions: {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
81
|
+
id: string;
|
|
82
|
+
slug: string;
|
|
83
|
+
extraFields?: unknown;
|
|
84
|
+
createdAt?: Date | undefined;
|
|
85
|
+
updatedAt?: Date | undefined;
|
|
66
86
|
}[];
|
|
67
87
|
extraFields?: unknown;
|
|
68
88
|
createdAt?: Date | undefined;
|
|
69
89
|
updatedAt?: Date | undefined;
|
|
70
|
-
|
|
90
|
+
},
|
|
91
|
+
{
|
|
71
92
|
id: string;
|
|
72
93
|
name: string;
|
|
73
94
|
permissions: {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
95
|
+
id: string;
|
|
96
|
+
slug: string;
|
|
97
|
+
extraFields?: unknown;
|
|
98
|
+
createdAt?: Date | undefined;
|
|
99
|
+
updatedAt?: Date | undefined;
|
|
79
100
|
}[];
|
|
80
101
|
extraFields?: unknown;
|
|
81
102
|
createdAt?: Date | undefined;
|
|
82
103
|
updatedAt?: Date | undefined;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
104
|
+
}
|
|
105
|
+
>,
|
|
106
|
+
'many'
|
|
107
|
+
>;
|
|
108
|
+
phoneNumber: import('zod').ZodOptional<import('zod').ZodString>;
|
|
109
|
+
subscription: import('zod').ZodOptional<import('zod').ZodString>;
|
|
110
|
+
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
111
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
112
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
89
113
|
};
|
|
90
114
|
export declare const BaseUserServiceSchemas: (options: {
|
|
91
|
-
|
|
115
|
+
uuidId: boolean;
|
|
92
116
|
}) => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
117
|
+
CreateUserSchema: {
|
|
118
|
+
email: import('zod').ZodString;
|
|
119
|
+
password: import('zod').ZodString;
|
|
120
|
+
firstName: import('zod').ZodString;
|
|
121
|
+
lastName: import('zod').ZodString;
|
|
122
|
+
organizationId: import('zod').ZodString;
|
|
123
|
+
roleIds: import('zod').ZodArray<import('zod').ZodString, 'many'>;
|
|
124
|
+
phoneNumber: import('zod').ZodOptional<import('zod').ZodString>;
|
|
125
|
+
subscription: import('zod').ZodOptional<import('zod').ZodString>;
|
|
126
|
+
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
127
|
+
};
|
|
128
|
+
UpdateUserSchema: {
|
|
129
|
+
id: import('zod').ZodString;
|
|
130
|
+
email: import('zod').ZodOptional<import('zod').ZodString>;
|
|
131
|
+
password: import('zod').ZodOptional<import('zod').ZodString>;
|
|
132
|
+
firstName: import('zod').ZodOptional<import('zod').ZodString>;
|
|
133
|
+
lastName: import('zod').ZodOptional<import('zod').ZodString>;
|
|
134
|
+
roleIds: import('zod').ZodOptional<
|
|
135
|
+
import('zod').ZodArray<import('zod').ZodString, 'many'>
|
|
136
|
+
>;
|
|
137
|
+
phoneNumber: import('zod').ZodOptional<import('zod').ZodString>;
|
|
138
|
+
subscription: import('zod').ZodOptional<import('zod').ZodString>;
|
|
139
|
+
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
140
|
+
};
|
|
141
|
+
UserSchema: {
|
|
142
|
+
id: import('zod').ZodString;
|
|
143
|
+
email: import('zod').ZodString;
|
|
144
|
+
firstName: import('zod').ZodString;
|
|
145
|
+
lastName: import('zod').ZodString;
|
|
146
|
+
roles: import('zod').ZodArray<
|
|
147
|
+
import('zod').ZodObject<
|
|
148
|
+
{
|
|
149
|
+
id: import('zod').ZodString;
|
|
150
|
+
name: import('zod').ZodString;
|
|
151
|
+
permissions: import('zod').ZodArray<
|
|
152
|
+
import('zod').ZodObject<
|
|
153
|
+
{
|
|
154
|
+
id: import('zod').ZodString;
|
|
155
|
+
slug: import('zod').ZodString;
|
|
156
|
+
extraFields: import('zod').ZodOptional<
|
|
157
|
+
import('zod').ZodUnknown
|
|
158
|
+
>;
|
|
159
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
160
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
161
|
+
},
|
|
162
|
+
import('zod').UnknownKeysParam,
|
|
163
|
+
import('zod').ZodTypeAny,
|
|
164
|
+
{
|
|
130
165
|
id: string;
|
|
131
166
|
slug: string;
|
|
132
167
|
extraFields?: unknown;
|
|
133
168
|
createdAt?: Date | undefined;
|
|
134
169
|
updatedAt?: Date | undefined;
|
|
135
|
-
|
|
170
|
+
},
|
|
171
|
+
{
|
|
136
172
|
id: string;
|
|
137
173
|
slug: string;
|
|
138
174
|
extraFields?: unknown;
|
|
139
175
|
createdAt?: Date | undefined;
|
|
140
176
|
updatedAt?: Date | undefined;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
177
|
+
}
|
|
178
|
+
>,
|
|
179
|
+
'many'
|
|
180
|
+
>;
|
|
181
|
+
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
182
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
183
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
184
|
+
},
|
|
185
|
+
import('zod').UnknownKeysParam,
|
|
186
|
+
import('zod').ZodTypeAny,
|
|
187
|
+
{
|
|
188
|
+
id: string;
|
|
189
|
+
name: string;
|
|
190
|
+
permissions: {
|
|
146
191
|
id: string;
|
|
147
|
-
|
|
148
|
-
permissions: {
|
|
149
|
-
id: string;
|
|
150
|
-
slug: string;
|
|
151
|
-
extraFields?: unknown;
|
|
152
|
-
createdAt?: Date | undefined;
|
|
153
|
-
updatedAt?: Date | undefined;
|
|
154
|
-
}[];
|
|
192
|
+
slug: string;
|
|
155
193
|
extraFields?: unknown;
|
|
156
194
|
createdAt?: Date | undefined;
|
|
157
195
|
updatedAt?: Date | undefined;
|
|
158
|
-
|
|
196
|
+
}[];
|
|
197
|
+
extraFields?: unknown;
|
|
198
|
+
createdAt?: Date | undefined;
|
|
199
|
+
updatedAt?: Date | undefined;
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
id: string;
|
|
203
|
+
name: string;
|
|
204
|
+
permissions: {
|
|
159
205
|
id: string;
|
|
160
|
-
|
|
161
|
-
permissions: {
|
|
162
|
-
id: string;
|
|
163
|
-
slug: string;
|
|
164
|
-
extraFields?: unknown;
|
|
165
|
-
createdAt?: Date | undefined;
|
|
166
|
-
updatedAt?: Date | undefined;
|
|
167
|
-
}[];
|
|
206
|
+
slug: string;
|
|
168
207
|
extraFields?: unknown;
|
|
169
208
|
createdAt?: Date | undefined;
|
|
170
209
|
updatedAt?: Date | undefined;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
210
|
+
}[];
|
|
211
|
+
extraFields?: unknown;
|
|
212
|
+
createdAt?: Date | undefined;
|
|
213
|
+
updatedAt?: Date | undefined;
|
|
214
|
+
}
|
|
215
|
+
>,
|
|
216
|
+
'many'
|
|
217
|
+
>;
|
|
218
|
+
phoneNumber: import('zod').ZodOptional<import('zod').ZodString>;
|
|
219
|
+
subscription: import('zod').ZodOptional<import('zod').ZodString>;
|
|
220
|
+
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
221
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
222
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
223
|
+
};
|
|
178
224
|
};
|
|
179
|
-
//# sourceMappingURL=user.schema.d.ts.map
|
|
225
|
+
//# sourceMappingURL=user.schema.d.ts.map
|
|
@@ -1,41 +1,49 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
array,
|
|
3
|
+
date,
|
|
4
|
+
email,
|
|
5
|
+
optional,
|
|
6
|
+
string,
|
|
7
|
+
unknown,
|
|
8
|
+
uuid
|
|
9
|
+
} from '@forklaunch/validator/zod';
|
|
2
10
|
import { RoleSchema } from './role.schema';
|
|
3
11
|
export const CreateUserSchema = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
email: email,
|
|
13
|
+
password: string,
|
|
14
|
+
firstName: string,
|
|
15
|
+
lastName: string,
|
|
16
|
+
organizationId: string,
|
|
17
|
+
roleIds: array(string),
|
|
18
|
+
phoneNumber: optional(string),
|
|
19
|
+
subscription: optional(string),
|
|
20
|
+
extraFields: optional(unknown)
|
|
13
21
|
};
|
|
14
22
|
export const UpdateUserSchema = ({ uuidId }) => ({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
id: uuidId ? uuid : string,
|
|
24
|
+
email: optional(email),
|
|
25
|
+
password: optional(string),
|
|
26
|
+
firstName: optional(string),
|
|
27
|
+
lastName: optional(string),
|
|
28
|
+
roleIds: optional(array(string)),
|
|
29
|
+
phoneNumber: optional(string),
|
|
30
|
+
subscription: optional(string),
|
|
31
|
+
extraFields: optional(unknown)
|
|
24
32
|
});
|
|
25
33
|
export const UserSchema = ({ uuidId }) => ({
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
id: uuidId ? uuid : string,
|
|
35
|
+
email: email,
|
|
36
|
+
firstName: string,
|
|
37
|
+
lastName: string,
|
|
38
|
+
roles: array(RoleSchema({ uuidId })),
|
|
39
|
+
phoneNumber: optional(string),
|
|
40
|
+
subscription: optional(string),
|
|
41
|
+
extraFields: optional(unknown),
|
|
42
|
+
createdAt: optional(date),
|
|
43
|
+
updatedAt: optional(date)
|
|
36
44
|
});
|
|
37
45
|
export const BaseUserServiceSchemas = (options) => ({
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
CreateUserSchema,
|
|
47
|
+
UpdateUserSchema: UpdateUserSchema(options),
|
|
48
|
+
UserSchema: UserSchema(options)
|
|
41
49
|
});
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,45 +1,118 @@
|
|
|
1
1
|
import { IdDto } from '@forklaunch/common';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
RequestDtoMapperConstructor,
|
|
4
|
+
ResponseDtoMapperConstructor
|
|
5
|
+
} from '@forklaunch/core/mappers';
|
|
6
|
+
import {
|
|
7
|
+
MetricsDefinition,
|
|
8
|
+
OpenTelemetryCollector
|
|
9
|
+
} from '@forklaunch/core/http';
|
|
4
10
|
import { MapNestedDtoArraysToCollections } from '@forklaunch/core/services';
|
|
5
11
|
import { OrganizationService } from '@forklaunch/interfaces-iam/interfaces';
|
|
6
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
CreateOrganizationDto,
|
|
14
|
+
OrganizationDto,
|
|
15
|
+
UpdateOrganizationDto
|
|
16
|
+
} from '@forklaunch/interfaces-iam/types';
|
|
7
17
|
import { AnySchemaValidator } from '@forklaunch/validator';
|
|
8
18
|
import { EntityManager } from '@mikro-orm/core';
|
|
9
|
-
export declare class BaseOrganizationService<
|
|
19
|
+
export declare class BaseOrganizationService<
|
|
20
|
+
SchemaValidator extends AnySchemaValidator,
|
|
21
|
+
OrganizationStatus,
|
|
22
|
+
Metrics extends MetricsDefinition = MetricsDefinition,
|
|
23
|
+
Dto extends {
|
|
10
24
|
OrganizationDtoMapper: OrganizationDto<OrganizationStatus>;
|
|
11
25
|
CreateOrganizationDtoMapper: CreateOrganizationDto;
|
|
12
26
|
UpdateOrganizationDtoMapper: UpdateOrganizationDto;
|
|
13
|
-
} = {
|
|
27
|
+
} = {
|
|
14
28
|
OrganizationDtoMapper: OrganizationDto<OrganizationStatus>;
|
|
15
29
|
CreateOrganizationDtoMapper: CreateOrganizationDto;
|
|
16
30
|
UpdateOrganizationDtoMapper: UpdateOrganizationDto;
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
CreateOrganizationDtoMapper: MapNestedDtoArraysToCollections<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
},
|
|
32
|
+
Entities extends {
|
|
33
|
+
OrganizationDtoMapper: MapNestedDtoArraysToCollections<
|
|
34
|
+
OrganizationDto<OrganizationStatus>,
|
|
35
|
+
'users'
|
|
36
|
+
>;
|
|
37
|
+
CreateOrganizationDtoMapper: MapNestedDtoArraysToCollections<
|
|
38
|
+
OrganizationDto<OrganizationStatus>,
|
|
39
|
+
'users'
|
|
40
|
+
>;
|
|
41
|
+
UpdateOrganizationDtoMapper: MapNestedDtoArraysToCollections<
|
|
42
|
+
OrganizationDto<OrganizationStatus>,
|
|
43
|
+
'users'
|
|
44
|
+
>;
|
|
45
|
+
} = {
|
|
46
|
+
OrganizationDtoMapper: MapNestedDtoArraysToCollections<
|
|
47
|
+
OrganizationDto<OrganizationStatus>,
|
|
48
|
+
'users'
|
|
49
|
+
>;
|
|
50
|
+
CreateOrganizationDtoMapper: MapNestedDtoArraysToCollections<
|
|
51
|
+
OrganizationDto<OrganizationStatus>,
|
|
52
|
+
'users'
|
|
53
|
+
>;
|
|
54
|
+
UpdateOrganizationDtoMapper: MapNestedDtoArraysToCollections<
|
|
55
|
+
OrganizationDto<OrganizationStatus>,
|
|
56
|
+
'users'
|
|
57
|
+
>;
|
|
58
|
+
}
|
|
59
|
+
> implements OrganizationService<OrganizationStatus>
|
|
60
|
+
{
|
|
61
|
+
#private;
|
|
62
|
+
em: EntityManager;
|
|
63
|
+
protected openTelemetryCollector: OpenTelemetryCollector<Metrics>;
|
|
64
|
+
protected schemaValidator: SchemaValidator;
|
|
65
|
+
protected mapperss: {
|
|
66
|
+
OrganizationDtoMapper: ResponseDtoMapperConstructor<
|
|
67
|
+
SchemaValidator,
|
|
68
|
+
Dto['OrganizationDtoMapper'],
|
|
69
|
+
Entities['OrganizationDtoMapper']
|
|
70
|
+
>;
|
|
71
|
+
CreateOrganizationDtoMapper: RequestDtoMapperConstructor<
|
|
72
|
+
SchemaValidator,
|
|
73
|
+
Dto['CreateOrganizationDtoMapper'],
|
|
74
|
+
Entities['CreateOrganizationDtoMapper']
|
|
75
|
+
>;
|
|
76
|
+
UpdateOrganizationDtoMapper: RequestDtoMapperConstructor<
|
|
77
|
+
SchemaValidator,
|
|
78
|
+
Dto['UpdateOrganizationDtoMapper'],
|
|
79
|
+
Entities['UpdateOrganizationDtoMapper']
|
|
80
|
+
>;
|
|
81
|
+
};
|
|
82
|
+
constructor(
|
|
83
|
+
em: EntityManager,
|
|
84
|
+
openTelemetryCollector: OpenTelemetryCollector<Metrics>,
|
|
85
|
+
schemaValidator: SchemaValidator,
|
|
86
|
+
mapperss: {
|
|
87
|
+
OrganizationDtoMapper: ResponseDtoMapperConstructor<
|
|
88
|
+
SchemaValidator,
|
|
89
|
+
Dto['OrganizationDtoMapper'],
|
|
90
|
+
Entities['OrganizationDtoMapper']
|
|
91
|
+
>;
|
|
92
|
+
CreateOrganizationDtoMapper: RequestDtoMapperConstructor<
|
|
93
|
+
SchemaValidator,
|
|
94
|
+
Dto['CreateOrganizationDtoMapper'],
|
|
95
|
+
Entities['CreateOrganizationDtoMapper']
|
|
96
|
+
>;
|
|
97
|
+
UpdateOrganizationDtoMapper: RequestDtoMapperConstructor<
|
|
98
|
+
SchemaValidator,
|
|
99
|
+
Dto['UpdateOrganizationDtoMapper'],
|
|
100
|
+
Entities['UpdateOrganizationDtoMapper']
|
|
101
|
+
>;
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
createOrganization(
|
|
105
|
+
organizationDto: Dto['CreateOrganizationDtoMapper'],
|
|
106
|
+
em?: EntityManager
|
|
107
|
+
): Promise<Dto['OrganizationDtoMapper']>;
|
|
108
|
+
getOrganization(
|
|
109
|
+
idDto: IdDto,
|
|
110
|
+
em?: EntityManager
|
|
111
|
+
): Promise<Dto['OrganizationDtoMapper']>;
|
|
112
|
+
updateOrganization(
|
|
113
|
+
organizationDto: Dto['UpdateOrganizationDtoMapper'],
|
|
114
|
+
em?: EntityManager
|
|
115
|
+
): Promise<Dto['OrganizationDtoMapper']>;
|
|
116
|
+
deleteOrganization(idDto: IdDto, em?: EntityManager): Promise<void>;
|
|
44
117
|
}
|
|
45
|
-
//# sourceMappingURL=organization.service.d.ts.map
|
|
118
|
+
//# sourceMappingURL=organization.service.d.ts.map
|