evo360-types 1.3.231 → 1.3.233
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.
|
@@ -228,3 +228,129 @@ export declare const zRbacGroupSchema: z.ZodObject<{
|
|
|
228
228
|
created_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
229
229
|
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
230
230
|
}, z.ZodTypeAny, "passthrough">>;
|
|
231
|
+
/**
|
|
232
|
+
* Schema for INexusModuleChatPermissions
|
|
233
|
+
*/
|
|
234
|
+
export declare const zNexusModuleChatPermissionsSchema: z.ZodObject<{
|
|
235
|
+
management: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
supervision: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
management?: boolean | undefined;
|
|
239
|
+
supervision?: boolean | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
management?: boolean | undefined;
|
|
242
|
+
supervision?: boolean | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
/**
|
|
245
|
+
* Schema for INexusModules
|
|
246
|
+
*/
|
|
247
|
+
export declare const zNexusModulesSchema: z.ZodObject<{
|
|
248
|
+
chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
249
|
+
management: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
+
supervision: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
management?: boolean | undefined;
|
|
253
|
+
supervision?: boolean | undefined;
|
|
254
|
+
}, {
|
|
255
|
+
management?: boolean | undefined;
|
|
256
|
+
supervision?: boolean | undefined;
|
|
257
|
+
}>, z.ZodBoolean]>>;
|
|
258
|
+
tenants: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
finance: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
261
|
+
chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
262
|
+
management: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
supervision: z.ZodOptional<z.ZodBoolean>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
management?: boolean | undefined;
|
|
266
|
+
supervision?: boolean | undefined;
|
|
267
|
+
}, {
|
|
268
|
+
management?: boolean | undefined;
|
|
269
|
+
supervision?: boolean | undefined;
|
|
270
|
+
}>, z.ZodBoolean]>>;
|
|
271
|
+
tenants: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
+
finance: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
274
|
+
chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
275
|
+
management: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
supervision: z.ZodOptional<z.ZodBoolean>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
management?: boolean | undefined;
|
|
279
|
+
supervision?: boolean | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
management?: boolean | undefined;
|
|
282
|
+
supervision?: boolean | undefined;
|
|
283
|
+
}>, z.ZodBoolean]>>;
|
|
284
|
+
tenants: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
+
finance: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
287
|
+
/**
|
|
288
|
+
* Schema for INexusClaims
|
|
289
|
+
*/
|
|
290
|
+
export declare const zNexusClaimsSchema: z.ZodObject<{
|
|
291
|
+
nexus_access: z.ZodBoolean;
|
|
292
|
+
nexus_modules: z.ZodObject<{
|
|
293
|
+
chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
294
|
+
management: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
+
supervision: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
management?: boolean | undefined;
|
|
298
|
+
supervision?: boolean | undefined;
|
|
299
|
+
}, {
|
|
300
|
+
management?: boolean | undefined;
|
|
301
|
+
supervision?: boolean | undefined;
|
|
302
|
+
}>, z.ZodBoolean]>>;
|
|
303
|
+
tenants: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
finance: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
306
|
+
chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
307
|
+
management: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
supervision: z.ZodOptional<z.ZodBoolean>;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
management?: boolean | undefined;
|
|
311
|
+
supervision?: boolean | undefined;
|
|
312
|
+
}, {
|
|
313
|
+
management?: boolean | undefined;
|
|
314
|
+
supervision?: boolean | undefined;
|
|
315
|
+
}>, z.ZodBoolean]>>;
|
|
316
|
+
tenants: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
finance: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
319
|
+
chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
320
|
+
management: z.ZodOptional<z.ZodBoolean>;
|
|
321
|
+
supervision: z.ZodOptional<z.ZodBoolean>;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
management?: boolean | undefined;
|
|
324
|
+
supervision?: boolean | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
management?: boolean | undefined;
|
|
327
|
+
supervision?: boolean | undefined;
|
|
328
|
+
}>, z.ZodBoolean]>>;
|
|
329
|
+
tenants: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
+
finance: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
332
|
+
}, "strip", z.ZodTypeAny, {
|
|
333
|
+
nexus_access: boolean;
|
|
334
|
+
nexus_modules: {
|
|
335
|
+
tenants?: boolean | undefined;
|
|
336
|
+
chat?: boolean | {
|
|
337
|
+
management?: boolean | undefined;
|
|
338
|
+
supervision?: boolean | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
finance?: boolean | undefined;
|
|
341
|
+
} & {
|
|
342
|
+
[k: string]: unknown;
|
|
343
|
+
};
|
|
344
|
+
}, {
|
|
345
|
+
nexus_access: boolean;
|
|
346
|
+
nexus_modules: {
|
|
347
|
+
tenants?: boolean | undefined;
|
|
348
|
+
chat?: boolean | {
|
|
349
|
+
management?: boolean | undefined;
|
|
350
|
+
supervision?: boolean | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
finance?: boolean | undefined;
|
|
353
|
+
} & {
|
|
354
|
+
[k: string]: unknown;
|
|
355
|
+
};
|
|
356
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zRbacGroupSchema = exports.zRbacPermissionMetadataSchema = exports.zRbacRoleSchema = exports.zRbacRolePermsSchema = exports.zUserTenantIndexSchema = exports.zTenantUserSchema = exports.zUserTenantIndexStatusSchema = exports.zTenantUserStatusSchema = exports.zRbacPermValueSchema = exports.zActionArgsSchema = void 0;
|
|
3
|
+
exports.zNexusClaimsSchema = exports.zNexusModulesSchema = exports.zNexusModuleChatPermissionsSchema = exports.zRbacGroupSchema = exports.zRbacPermissionMetadataSchema = exports.zRbacRoleSchema = exports.zRbacRolePermsSchema = exports.zUserTenantIndexSchema = exports.zTenantUserSchema = exports.zUserTenantIndexStatusSchema = exports.zTenantUserStatusSchema = exports.zRbacPermValueSchema = exports.zActionArgsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
6
|
const zod_schemas_2 = require("../evo-tenant/zod-schemas");
|
|
@@ -91,3 +91,28 @@ exports.zRbacGroupSchema = zod_1.z
|
|
|
91
91
|
updated_at: zod_schemas_1.zFirestoreDateSchema,
|
|
92
92
|
})
|
|
93
93
|
.passthrough();
|
|
94
|
+
// ----- Nexus Claims Zod Schemas
|
|
95
|
+
/**
|
|
96
|
+
* Schema for INexusModuleChatPermissions
|
|
97
|
+
*/
|
|
98
|
+
exports.zNexusModuleChatPermissionsSchema = zod_1.z.object({
|
|
99
|
+
management: zod_1.z.boolean().optional(),
|
|
100
|
+
supervision: zod_1.z.boolean().optional(),
|
|
101
|
+
});
|
|
102
|
+
/**
|
|
103
|
+
* Schema for INexusModules
|
|
104
|
+
*/
|
|
105
|
+
exports.zNexusModulesSchema = zod_1.z
|
|
106
|
+
.object({
|
|
107
|
+
chat: zod_1.z.union([exports.zNexusModuleChatPermissionsSchema, zod_1.z.boolean()]).optional(),
|
|
108
|
+
tenants: zod_1.z.boolean().optional(),
|
|
109
|
+
finance: zod_1.z.boolean().optional(),
|
|
110
|
+
})
|
|
111
|
+
.passthrough();
|
|
112
|
+
/**
|
|
113
|
+
* Schema for INexusClaims
|
|
114
|
+
*/
|
|
115
|
+
exports.zNexusClaimsSchema = zod_1.z.object({
|
|
116
|
+
nexus_access: zod_1.z.boolean(),
|
|
117
|
+
nexus_modules: exports.zNexusModulesSchema,
|
|
118
|
+
});
|
|
@@ -99,3 +99,32 @@ export const zRbacGroupSchema = z
|
|
|
99
99
|
updated_at: zFirestoreDateSchema,
|
|
100
100
|
})
|
|
101
101
|
.passthrough();
|
|
102
|
+
|
|
103
|
+
// ----- Nexus Claims Zod Schemas
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Schema for INexusModuleChatPermissions
|
|
107
|
+
*/
|
|
108
|
+
export const zNexusModuleChatPermissionsSchema = z.object({
|
|
109
|
+
management: z.boolean().optional(),
|
|
110
|
+
supervision: z.boolean().optional(),
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Schema for INexusModules
|
|
115
|
+
*/
|
|
116
|
+
export const zNexusModulesSchema = z
|
|
117
|
+
.object({
|
|
118
|
+
chat: z.union([zNexusModuleChatPermissionsSchema, z.boolean()]).optional(),
|
|
119
|
+
tenants: z.boolean().optional(),
|
|
120
|
+
finance: z.boolean().optional(),
|
|
121
|
+
})
|
|
122
|
+
.passthrough();
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Schema for INexusClaims
|
|
126
|
+
*/
|
|
127
|
+
export const zNexusClaimsSchema = z.object({
|
|
128
|
+
nexus_access: z.boolean(),
|
|
129
|
+
nexus_modules: zNexusModulesSchema,
|
|
130
|
+
});
|
|
@@ -46,4 +46,18 @@ export interface IActionArgs {
|
|
|
46
46
|
new_values?: Record<string, any>;
|
|
47
47
|
deleted_at?: Date;
|
|
48
48
|
}
|
|
49
|
+
export interface INexusModuleChatPermissions {
|
|
50
|
+
management?: boolean;
|
|
51
|
+
supervision?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface INexusModules {
|
|
54
|
+
chat?: INexusModuleChatPermissions | boolean;
|
|
55
|
+
tenants?: boolean;
|
|
56
|
+
finance?: boolean;
|
|
57
|
+
[key: string]: INexusModuleChatPermissions | boolean | undefined;
|
|
58
|
+
}
|
|
59
|
+
export interface INexusClaims {
|
|
60
|
+
nexus_access: boolean;
|
|
61
|
+
nexus_modules: INexusModules;
|
|
62
|
+
}
|
|
49
63
|
export * from "./rbac";
|
|
@@ -56,5 +56,23 @@ export interface IActionArgs {
|
|
|
56
56
|
deleted_at?: Date;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
// Nexus Claims Types
|
|
60
|
+
export interface INexusModuleChatPermissions {
|
|
61
|
+
management?: boolean;
|
|
62
|
+
supervision?: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface INexusModules {
|
|
66
|
+
chat?: INexusModuleChatPermissions | boolean;
|
|
67
|
+
tenants?: boolean;
|
|
68
|
+
finance?: boolean;
|
|
69
|
+
[key: string]: INexusModuleChatPermissions | boolean | undefined;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface INexusClaims {
|
|
73
|
+
nexus_access: boolean;
|
|
74
|
+
nexus_modules: INexusModules;
|
|
75
|
+
}
|
|
76
|
+
|
|
59
77
|
// RBAC Types
|
|
60
78
|
export * from "./rbac";
|