@forklaunch/implementation-iam-base 0.3.1 → 0.3.2
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/eject/domain/schemas/organization.schema.ts +3 -3
- package/lib/eject/domain/schemas/permission.schema.ts +3 -3
- package/lib/eject/domain/schemas/role.schema.ts +3 -3
- package/lib/eject/domain/schemas/user.schema.ts +3 -3
- package/lib/eject/services/organization.service.ts +41 -77
- package/lib/eject/services/permission.service.ts +80 -104
- package/lib/eject/services/role.service.ts +51 -81
- package/lib/eject/services/user.service.ts +51 -74
- package/lib/eject/types/iamDto.types.ts +43 -0
- package/lib/eject/types/iamEntities.types.ts +49 -0
- package/lib/schemas/index.d.mts +61 -61
- package/lib/schemas/index.d.ts +61 -61
- package/lib/schemas/index.js +32 -32
- package/lib/schemas/index.mjs +28 -28
- package/lib/services/index.d.mts +110 -134
- package/lib/services/index.d.ts +110 -134
- package/lib/services/index.js +46 -54
- package/lib/services/index.mjs +50 -58
- package/package.json +9 -8
package/lib/schemas/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _forklaunch_internal from '@forklaunch/internal';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
4
4
|
import * as _forklaunch_validator from '@forklaunch/validator';
|
|
@@ -7,7 +7,7 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
7
7
|
uuidId: boolean;
|
|
8
8
|
} & {
|
|
9
9
|
validator: SchemaValidator;
|
|
10
|
-
}) =>
|
|
10
|
+
}) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: {
|
|
11
11
|
uuidId: boolean;
|
|
12
12
|
}) => {
|
|
13
13
|
CreateOrganizationSchema: {
|
|
@@ -15,7 +15,7 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
15
15
|
domain: _sinclair_typebox.TString;
|
|
16
16
|
subscription: _sinclair_typebox.TString;
|
|
17
17
|
logoUrl: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
18
|
-
|
|
18
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
19
19
|
};
|
|
20
20
|
UpdateOrganizationSchema: {
|
|
21
21
|
id: _sinclair_typebox.TString;
|
|
@@ -23,7 +23,7 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
23
23
|
domain: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
24
24
|
subscription: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
25
25
|
logoUrl: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
26
|
-
|
|
26
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
27
27
|
};
|
|
28
28
|
OrganizationSchema: <OrganizationStatus extends Record<string, _forklaunch_validator.LiteralSchema>>(organizationStatus: OrganizationStatus) => {
|
|
29
29
|
id: _sinclair_typebox.TString;
|
|
@@ -39,17 +39,17 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
39
39
|
permissions: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
40
40
|
id: _sinclair_typebox.TString;
|
|
41
41
|
slug: _sinclair_typebox.TString;
|
|
42
|
-
|
|
42
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
43
43
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
44
44
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
45
45
|
}>>;
|
|
46
|
-
|
|
46
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
47
47
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
48
48
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
49
49
|
}>>;
|
|
50
50
|
phoneNumber: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
51
51
|
subscription: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
52
|
-
|
|
52
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
53
53
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
54
54
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
55
55
|
}>>;
|
|
@@ -57,7 +57,7 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
57
57
|
subscription: _sinclair_typebox.TString;
|
|
58
58
|
status: _sinclair_typebox.TUnion<[{ [K in keyof OrganizationStatus]: _sinclair_typebox.TLiteral<OrganizationStatus[K]>; }[keyof OrganizationStatus]]>;
|
|
59
59
|
logoUrl: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
60
|
-
|
|
60
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
61
61
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
62
62
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
63
63
|
};
|
|
@@ -69,7 +69,7 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
69
69
|
domain: zod.ZodString;
|
|
70
70
|
subscription: zod.ZodString;
|
|
71
71
|
logoUrl: zod.ZodOptional<zod.ZodString>;
|
|
72
|
-
|
|
72
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
73
73
|
};
|
|
74
74
|
UpdateOrganizationSchema: {
|
|
75
75
|
id: zod.ZodString;
|
|
@@ -77,7 +77,7 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
77
77
|
domain: zod.ZodOptional<zod.ZodString>;
|
|
78
78
|
subscription: zod.ZodOptional<zod.ZodString>;
|
|
79
79
|
logoUrl: zod.ZodOptional<zod.ZodString>;
|
|
80
|
-
|
|
80
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
81
81
|
};
|
|
82
82
|
OrganizationSchema: <OrganizationStatus extends Record<string, _forklaunch_validator.LiteralSchema>>(organizationStatus: OrganizationStatus) => {
|
|
83
83
|
id: zod.ZodString;
|
|
@@ -93,23 +93,23 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
93
93
|
permissions: zod.ZodArray<zod.ZodObject<{
|
|
94
94
|
id: zod.ZodString;
|
|
95
95
|
slug: zod.ZodString;
|
|
96
|
-
|
|
96
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
97
97
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
98
98
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
99
99
|
}, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
100
100
|
id: string;
|
|
101
101
|
slug: string;
|
|
102
|
-
|
|
102
|
+
providerFields?: unknown;
|
|
103
103
|
createdAt?: Date | undefined;
|
|
104
104
|
updatedAt?: Date | undefined;
|
|
105
105
|
}, {
|
|
106
106
|
id: string;
|
|
107
107
|
slug: string;
|
|
108
|
-
|
|
108
|
+
providerFields?: unknown;
|
|
109
109
|
createdAt?: unknown;
|
|
110
110
|
updatedAt?: unknown;
|
|
111
111
|
}>, "many">;
|
|
112
|
-
|
|
112
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
113
113
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
114
114
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
115
115
|
}, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
@@ -118,11 +118,11 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
118
118
|
permissions: {
|
|
119
119
|
id: string;
|
|
120
120
|
slug: string;
|
|
121
|
-
|
|
121
|
+
providerFields?: unknown;
|
|
122
122
|
createdAt?: Date | undefined;
|
|
123
123
|
updatedAt?: Date | undefined;
|
|
124
124
|
}[];
|
|
125
|
-
|
|
125
|
+
providerFields?: unknown;
|
|
126
126
|
createdAt?: Date | undefined;
|
|
127
127
|
updatedAt?: Date | undefined;
|
|
128
128
|
}, {
|
|
@@ -131,17 +131,17 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
131
131
|
permissions: {
|
|
132
132
|
id: string;
|
|
133
133
|
slug: string;
|
|
134
|
-
|
|
134
|
+
providerFields?: unknown;
|
|
135
135
|
createdAt?: unknown;
|
|
136
136
|
updatedAt?: unknown;
|
|
137
137
|
}[];
|
|
138
|
-
|
|
138
|
+
providerFields?: unknown;
|
|
139
139
|
createdAt?: unknown;
|
|
140
140
|
updatedAt?: unknown;
|
|
141
141
|
}>, "many">;
|
|
142
142
|
phoneNumber: zod.ZodOptional<zod.ZodString>;
|
|
143
143
|
subscription: zod.ZodOptional<zod.ZodString>;
|
|
144
|
-
|
|
144
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
145
145
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
146
146
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
147
147
|
}, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
@@ -155,15 +155,15 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
155
155
|
permissions: {
|
|
156
156
|
id: string;
|
|
157
157
|
slug: string;
|
|
158
|
-
|
|
158
|
+
providerFields?: unknown;
|
|
159
159
|
createdAt?: Date | undefined;
|
|
160
160
|
updatedAt?: Date | undefined;
|
|
161
161
|
}[];
|
|
162
|
-
|
|
162
|
+
providerFields?: unknown;
|
|
163
163
|
createdAt?: Date | undefined;
|
|
164
164
|
updatedAt?: Date | undefined;
|
|
165
165
|
}[];
|
|
166
|
-
|
|
166
|
+
providerFields?: unknown;
|
|
167
167
|
createdAt?: Date | undefined;
|
|
168
168
|
updatedAt?: Date | undefined;
|
|
169
169
|
phoneNumber?: string | undefined;
|
|
@@ -179,15 +179,15 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
179
179
|
permissions: {
|
|
180
180
|
id: string;
|
|
181
181
|
slug: string;
|
|
182
|
-
|
|
182
|
+
providerFields?: unknown;
|
|
183
183
|
createdAt?: unknown;
|
|
184
184
|
updatedAt?: unknown;
|
|
185
185
|
}[];
|
|
186
|
-
|
|
186
|
+
providerFields?: unknown;
|
|
187
187
|
createdAt?: unknown;
|
|
188
188
|
updatedAt?: unknown;
|
|
189
189
|
}[];
|
|
190
|
-
|
|
190
|
+
providerFields?: unknown;
|
|
191
191
|
createdAt?: unknown;
|
|
192
192
|
updatedAt?: unknown;
|
|
193
193
|
phoneNumber?: string | undefined;
|
|
@@ -197,7 +197,7 @@ declare const BaseOrganizationServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
197
197
|
subscription: zod.ZodString;
|
|
198
198
|
status: zod.ZodUnion<[{ [K in keyof OrganizationStatus]: zod.ZodLiteral<OrganizationStatus[K]>; }[keyof OrganizationStatus]]>;
|
|
199
199
|
logoUrl: zod.ZodOptional<zod.ZodString>;
|
|
200
|
-
|
|
200
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
201
201
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
202
202
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
203
203
|
};
|
|
@@ -207,25 +207,25 @@ declare const BasePermissionServiceSchemas: <SchemaValidator extends _forklaunch
|
|
|
207
207
|
uuidId: boolean;
|
|
208
208
|
} & {
|
|
209
209
|
validator: SchemaValidator;
|
|
210
|
-
}) =>
|
|
210
|
+
}) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: {
|
|
211
211
|
uuidId: boolean;
|
|
212
212
|
}) => {
|
|
213
213
|
CreatePermissionSchema: {
|
|
214
214
|
slug: _sinclair_typebox.TString;
|
|
215
215
|
addToRolesIds: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
216
|
-
|
|
216
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
217
217
|
};
|
|
218
218
|
UpdatePermissionSchema: {
|
|
219
219
|
id: _sinclair_typebox.TString;
|
|
220
220
|
slug: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
221
|
-
|
|
221
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
222
222
|
addToRolesIds: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
223
223
|
removeFromRolesIds: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
224
224
|
};
|
|
225
225
|
PermissionSchema: {
|
|
226
226
|
id: _sinclair_typebox.TString;
|
|
227
227
|
slug: _sinclair_typebox.TString;
|
|
228
|
-
|
|
228
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
229
229
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
230
230
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
231
231
|
};
|
|
@@ -235,19 +235,19 @@ declare const BasePermissionServiceSchemas: <SchemaValidator extends _forklaunch
|
|
|
235
235
|
CreatePermissionSchema: {
|
|
236
236
|
slug: zod.ZodString;
|
|
237
237
|
addToRolesIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
238
|
-
|
|
238
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
239
239
|
};
|
|
240
240
|
UpdatePermissionSchema: {
|
|
241
241
|
id: zod.ZodString;
|
|
242
242
|
slug: zod.ZodOptional<zod.ZodString>;
|
|
243
|
-
|
|
243
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
244
244
|
addToRolesIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
245
245
|
removeFromRolesIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
246
246
|
};
|
|
247
247
|
PermissionSchema: {
|
|
248
248
|
id: zod.ZodString;
|
|
249
249
|
slug: zod.ZodString;
|
|
250
|
-
|
|
250
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
251
251
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
252
252
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
253
253
|
};
|
|
@@ -257,19 +257,19 @@ declare const BaseRoleServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
257
257
|
uuidId: boolean;
|
|
258
258
|
} & {
|
|
259
259
|
validator: SchemaValidator;
|
|
260
|
-
}) =>
|
|
260
|
+
}) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: {
|
|
261
261
|
uuidId: boolean;
|
|
262
262
|
}) => {
|
|
263
263
|
CreateRoleSchema: {
|
|
264
264
|
name: _sinclair_typebox.TString;
|
|
265
265
|
permissionIds: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
266
|
-
|
|
266
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
267
267
|
};
|
|
268
268
|
UpdateRoleSchema: {
|
|
269
269
|
id: _sinclair_typebox.TString;
|
|
270
270
|
name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
271
271
|
permissionIds: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
272
|
-
|
|
272
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
273
273
|
};
|
|
274
274
|
RoleSchema: {
|
|
275
275
|
id: _sinclair_typebox.TString;
|
|
@@ -277,11 +277,11 @@ declare const BaseRoleServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
277
277
|
permissions: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
278
278
|
id: _sinclair_typebox.TString;
|
|
279
279
|
slug: _sinclair_typebox.TString;
|
|
280
|
-
|
|
280
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
281
281
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
282
282
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
283
283
|
}>>;
|
|
284
|
-
|
|
284
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
285
285
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
286
286
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
287
287
|
};
|
|
@@ -291,13 +291,13 @@ declare const BaseRoleServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
291
291
|
CreateRoleSchema: {
|
|
292
292
|
name: zod.ZodString;
|
|
293
293
|
permissionIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
294
|
-
|
|
294
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
295
295
|
};
|
|
296
296
|
UpdateRoleSchema: {
|
|
297
297
|
id: zod.ZodString;
|
|
298
298
|
name: zod.ZodOptional<zod.ZodString>;
|
|
299
299
|
permissionIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
300
|
-
|
|
300
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
301
301
|
};
|
|
302
302
|
RoleSchema: {
|
|
303
303
|
id: zod.ZodString;
|
|
@@ -305,23 +305,23 @@ declare const BaseRoleServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
305
305
|
permissions: zod.ZodArray<zod.ZodObject<{
|
|
306
306
|
id: zod.ZodString;
|
|
307
307
|
slug: zod.ZodString;
|
|
308
|
-
|
|
308
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
309
309
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
310
310
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
311
311
|
}, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
312
312
|
id: string;
|
|
313
313
|
slug: string;
|
|
314
|
-
|
|
314
|
+
providerFields?: unknown;
|
|
315
315
|
createdAt?: Date | undefined;
|
|
316
316
|
updatedAt?: Date | undefined;
|
|
317
317
|
}, {
|
|
318
318
|
id: string;
|
|
319
319
|
slug: string;
|
|
320
|
-
|
|
320
|
+
providerFields?: unknown;
|
|
321
321
|
createdAt?: unknown;
|
|
322
322
|
updatedAt?: unknown;
|
|
323
323
|
}>, "many">;
|
|
324
|
-
|
|
324
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
325
325
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
326
326
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
327
327
|
};
|
|
@@ -331,7 +331,7 @@ declare const BaseUserServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
331
331
|
uuidId: boolean;
|
|
332
332
|
} & {
|
|
333
333
|
validator: SchemaValidator;
|
|
334
|
-
}) =>
|
|
334
|
+
}) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: {
|
|
335
335
|
uuidId: boolean;
|
|
336
336
|
}) => {
|
|
337
337
|
CreateUserSchema: {
|
|
@@ -343,7 +343,7 @@ declare const BaseUserServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
343
343
|
roleIds: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
|
|
344
344
|
phoneNumber: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
345
345
|
subscription: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
346
|
-
|
|
346
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
347
347
|
};
|
|
348
348
|
UpdateUserSchema: {
|
|
349
349
|
id: _sinclair_typebox.TString;
|
|
@@ -354,7 +354,7 @@ declare const BaseUserServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
354
354
|
roleIds: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
355
355
|
phoneNumber: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
356
356
|
subscription: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
357
|
-
|
|
357
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
358
358
|
};
|
|
359
359
|
UserSchema: {
|
|
360
360
|
id: _sinclair_typebox.TString;
|
|
@@ -367,17 +367,17 @@ declare const BaseUserServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
367
367
|
permissions: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
368
368
|
id: _sinclair_typebox.TString;
|
|
369
369
|
slug: _sinclair_typebox.TString;
|
|
370
|
-
|
|
370
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
371
371
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
372
372
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
373
373
|
}>>;
|
|
374
|
-
|
|
374
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
375
375
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
376
376
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
377
377
|
}>>;
|
|
378
378
|
phoneNumber: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
379
379
|
subscription: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
380
|
-
|
|
380
|
+
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
381
381
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
382
382
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
383
383
|
};
|
|
@@ -393,7 +393,7 @@ declare const BaseUserServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
393
393
|
roleIds: zod.ZodArray<zod.ZodString, "many">;
|
|
394
394
|
phoneNumber: zod.ZodOptional<zod.ZodString>;
|
|
395
395
|
subscription: zod.ZodOptional<zod.ZodString>;
|
|
396
|
-
|
|
396
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
397
397
|
};
|
|
398
398
|
UpdateUserSchema: {
|
|
399
399
|
id: zod.ZodString;
|
|
@@ -404,7 +404,7 @@ declare const BaseUserServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
404
404
|
roleIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
405
405
|
phoneNumber: zod.ZodOptional<zod.ZodString>;
|
|
406
406
|
subscription: zod.ZodOptional<zod.ZodString>;
|
|
407
|
-
|
|
407
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
408
408
|
};
|
|
409
409
|
UserSchema: {
|
|
410
410
|
id: zod.ZodString;
|
|
@@ -417,23 +417,23 @@ declare const BaseUserServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
417
417
|
permissions: zod.ZodArray<zod.ZodObject<{
|
|
418
418
|
id: zod.ZodString;
|
|
419
419
|
slug: zod.ZodString;
|
|
420
|
-
|
|
420
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
421
421
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
422
422
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
423
423
|
}, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
424
424
|
id: string;
|
|
425
425
|
slug: string;
|
|
426
|
-
|
|
426
|
+
providerFields?: unknown;
|
|
427
427
|
createdAt?: Date | undefined;
|
|
428
428
|
updatedAt?: Date | undefined;
|
|
429
429
|
}, {
|
|
430
430
|
id: string;
|
|
431
431
|
slug: string;
|
|
432
|
-
|
|
432
|
+
providerFields?: unknown;
|
|
433
433
|
createdAt?: unknown;
|
|
434
434
|
updatedAt?: unknown;
|
|
435
435
|
}>, "many">;
|
|
436
|
-
|
|
436
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
437
437
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
438
438
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
439
439
|
}, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
@@ -442,11 +442,11 @@ declare const BaseUserServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
442
442
|
permissions: {
|
|
443
443
|
id: string;
|
|
444
444
|
slug: string;
|
|
445
|
-
|
|
445
|
+
providerFields?: unknown;
|
|
446
446
|
createdAt?: Date | undefined;
|
|
447
447
|
updatedAt?: Date | undefined;
|
|
448
448
|
}[];
|
|
449
|
-
|
|
449
|
+
providerFields?: unknown;
|
|
450
450
|
createdAt?: Date | undefined;
|
|
451
451
|
updatedAt?: Date | undefined;
|
|
452
452
|
}, {
|
|
@@ -455,17 +455,17 @@ declare const BaseUserServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
455
455
|
permissions: {
|
|
456
456
|
id: string;
|
|
457
457
|
slug: string;
|
|
458
|
-
|
|
458
|
+
providerFields?: unknown;
|
|
459
459
|
createdAt?: unknown;
|
|
460
460
|
updatedAt?: unknown;
|
|
461
461
|
}[];
|
|
462
|
-
|
|
462
|
+
providerFields?: unknown;
|
|
463
463
|
createdAt?: unknown;
|
|
464
464
|
updatedAt?: unknown;
|
|
465
465
|
}>, "many">;
|
|
466
466
|
phoneNumber: zod.ZodOptional<zod.ZodString>;
|
|
467
467
|
subscription: zod.ZodOptional<zod.ZodString>;
|
|
468
|
-
|
|
468
|
+
providerFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
469
469
|
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
470
470
|
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
471
471
|
};
|