evo360-types 1.3.662 → 1.3.667

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.
@@ -245,6 +245,29 @@ export declare const zNexusModuleChatPermissionsSchema: z.ZodObject<{
245
245
  management?: boolean | undefined;
246
246
  supervision?: boolean | undefined;
247
247
  }>;
248
+ /**
249
+ * Schema for INexusModuleFinancePermissions
250
+ */
251
+ export declare const zNexusModuleFinancePermissionsSchema: z.ZodObject<{
252
+ customers: z.ZodOptional<z.ZodBoolean>;
253
+ contracts: z.ZodOptional<z.ZodBoolean>;
254
+ billing: z.ZodOptional<z.ZodBoolean>;
255
+ reports: z.ZodOptional<z.ZodBoolean>;
256
+ /** feat-264 — reembolso da taxa de NFS-e. */
257
+ reimbursements: z.ZodOptional<z.ZodBoolean>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ reports?: boolean | undefined;
260
+ customers?: boolean | undefined;
261
+ contracts?: boolean | undefined;
262
+ billing?: boolean | undefined;
263
+ reimbursements?: boolean | undefined;
264
+ }, {
265
+ reports?: boolean | undefined;
266
+ customers?: boolean | undefined;
267
+ contracts?: boolean | undefined;
268
+ billing?: boolean | undefined;
269
+ reimbursements?: boolean | undefined;
270
+ }>;
248
271
  /**
249
272
  * Schema for INexusReports
250
273
  */
@@ -268,7 +291,26 @@ export declare const zNexusModulesSchema: z.ZodObject<{
268
291
  supervision?: boolean | undefined;
269
292
  }>, z.ZodBoolean]>>;
270
293
  tenants: z.ZodOptional<z.ZodBoolean>;
271
- finance: z.ZodOptional<z.ZodBoolean>;
294
+ finance: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
295
+ customers: z.ZodOptional<z.ZodBoolean>;
296
+ contracts: z.ZodOptional<z.ZodBoolean>;
297
+ billing: z.ZodOptional<z.ZodBoolean>;
298
+ reports: z.ZodOptional<z.ZodBoolean>;
299
+ /** feat-264 — reembolso da taxa de NFS-e. */
300
+ reimbursements: z.ZodOptional<z.ZodBoolean>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ reports?: boolean | undefined;
303
+ customers?: boolean | undefined;
304
+ contracts?: boolean | undefined;
305
+ billing?: boolean | undefined;
306
+ reimbursements?: boolean | undefined;
307
+ }, {
308
+ reports?: boolean | undefined;
309
+ customers?: boolean | undefined;
310
+ contracts?: boolean | undefined;
311
+ billing?: boolean | undefined;
312
+ reimbursements?: boolean | undefined;
313
+ }>, z.ZodBoolean]>>;
272
314
  notifications: z.ZodOptional<z.ZodBoolean>;
273
315
  waba: z.ZodOptional<z.ZodBoolean>;
274
316
  reports: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;
@@ -288,7 +330,26 @@ export declare const zNexusModulesSchema: z.ZodObject<{
288
330
  supervision?: boolean | undefined;
289
331
  }>, z.ZodBoolean]>>;
290
332
  tenants: z.ZodOptional<z.ZodBoolean>;
291
- finance: z.ZodOptional<z.ZodBoolean>;
333
+ finance: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
334
+ customers: z.ZodOptional<z.ZodBoolean>;
335
+ contracts: z.ZodOptional<z.ZodBoolean>;
336
+ billing: z.ZodOptional<z.ZodBoolean>;
337
+ reports: z.ZodOptional<z.ZodBoolean>;
338
+ /** feat-264 — reembolso da taxa de NFS-e. */
339
+ reimbursements: z.ZodOptional<z.ZodBoolean>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ reports?: boolean | undefined;
342
+ customers?: boolean | undefined;
343
+ contracts?: boolean | undefined;
344
+ billing?: boolean | undefined;
345
+ reimbursements?: boolean | undefined;
346
+ }, {
347
+ reports?: boolean | undefined;
348
+ customers?: boolean | undefined;
349
+ contracts?: boolean | undefined;
350
+ billing?: boolean | undefined;
351
+ reimbursements?: boolean | undefined;
352
+ }>, z.ZodBoolean]>>;
292
353
  notifications: z.ZodOptional<z.ZodBoolean>;
293
354
  waba: z.ZodOptional<z.ZodBoolean>;
294
355
  reports: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;
@@ -308,7 +369,26 @@ export declare const zNexusModulesSchema: z.ZodObject<{
308
369
  supervision?: boolean | undefined;
309
370
  }>, z.ZodBoolean]>>;
310
371
  tenants: z.ZodOptional<z.ZodBoolean>;
311
- finance: z.ZodOptional<z.ZodBoolean>;
372
+ finance: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
373
+ customers: z.ZodOptional<z.ZodBoolean>;
374
+ contracts: z.ZodOptional<z.ZodBoolean>;
375
+ billing: z.ZodOptional<z.ZodBoolean>;
376
+ reports: z.ZodOptional<z.ZodBoolean>;
377
+ /** feat-264 — reembolso da taxa de NFS-e. */
378
+ reimbursements: z.ZodOptional<z.ZodBoolean>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ reports?: boolean | undefined;
381
+ customers?: boolean | undefined;
382
+ contracts?: boolean | undefined;
383
+ billing?: boolean | undefined;
384
+ reimbursements?: boolean | undefined;
385
+ }, {
386
+ reports?: boolean | undefined;
387
+ customers?: boolean | undefined;
388
+ contracts?: boolean | undefined;
389
+ billing?: boolean | undefined;
390
+ reimbursements?: boolean | undefined;
391
+ }>, z.ZodBoolean]>>;
312
392
  notifications: z.ZodOptional<z.ZodBoolean>;
313
393
  waba: z.ZodOptional<z.ZodBoolean>;
314
394
  reports: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;
@@ -334,7 +414,26 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
334
414
  supervision?: boolean | undefined;
335
415
  }>, z.ZodBoolean]>>;
336
416
  tenants: z.ZodOptional<z.ZodBoolean>;
337
- finance: z.ZodOptional<z.ZodBoolean>;
417
+ finance: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
418
+ customers: z.ZodOptional<z.ZodBoolean>;
419
+ contracts: z.ZodOptional<z.ZodBoolean>;
420
+ billing: z.ZodOptional<z.ZodBoolean>;
421
+ reports: z.ZodOptional<z.ZodBoolean>;
422
+ /** feat-264 — reembolso da taxa de NFS-e. */
423
+ reimbursements: z.ZodOptional<z.ZodBoolean>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ reports?: boolean | undefined;
426
+ customers?: boolean | undefined;
427
+ contracts?: boolean | undefined;
428
+ billing?: boolean | undefined;
429
+ reimbursements?: boolean | undefined;
430
+ }, {
431
+ reports?: boolean | undefined;
432
+ customers?: boolean | undefined;
433
+ contracts?: boolean | undefined;
434
+ billing?: boolean | undefined;
435
+ reimbursements?: boolean | undefined;
436
+ }>, z.ZodBoolean]>>;
338
437
  notifications: z.ZodOptional<z.ZodBoolean>;
339
438
  waba: z.ZodOptional<z.ZodBoolean>;
340
439
  reports: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;
@@ -354,7 +453,26 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
354
453
  supervision?: boolean | undefined;
355
454
  }>, z.ZodBoolean]>>;
356
455
  tenants: z.ZodOptional<z.ZodBoolean>;
357
- finance: z.ZodOptional<z.ZodBoolean>;
456
+ finance: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
457
+ customers: z.ZodOptional<z.ZodBoolean>;
458
+ contracts: z.ZodOptional<z.ZodBoolean>;
459
+ billing: z.ZodOptional<z.ZodBoolean>;
460
+ reports: z.ZodOptional<z.ZodBoolean>;
461
+ /** feat-264 — reembolso da taxa de NFS-e. */
462
+ reimbursements: z.ZodOptional<z.ZodBoolean>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ reports?: boolean | undefined;
465
+ customers?: boolean | undefined;
466
+ contracts?: boolean | undefined;
467
+ billing?: boolean | undefined;
468
+ reimbursements?: boolean | undefined;
469
+ }, {
470
+ reports?: boolean | undefined;
471
+ customers?: boolean | undefined;
472
+ contracts?: boolean | undefined;
473
+ billing?: boolean | undefined;
474
+ reimbursements?: boolean | undefined;
475
+ }>, z.ZodBoolean]>>;
358
476
  notifications: z.ZodOptional<z.ZodBoolean>;
359
477
  waba: z.ZodOptional<z.ZodBoolean>;
360
478
  reports: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;
@@ -374,7 +492,26 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
374
492
  supervision?: boolean | undefined;
375
493
  }>, z.ZodBoolean]>>;
376
494
  tenants: z.ZodOptional<z.ZodBoolean>;
377
- finance: z.ZodOptional<z.ZodBoolean>;
495
+ finance: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
496
+ customers: z.ZodOptional<z.ZodBoolean>;
497
+ contracts: z.ZodOptional<z.ZodBoolean>;
498
+ billing: z.ZodOptional<z.ZodBoolean>;
499
+ reports: z.ZodOptional<z.ZodBoolean>;
500
+ /** feat-264 — reembolso da taxa de NFS-e. */
501
+ reimbursements: z.ZodOptional<z.ZodBoolean>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ reports?: boolean | undefined;
504
+ customers?: boolean | undefined;
505
+ contracts?: boolean | undefined;
506
+ billing?: boolean | undefined;
507
+ reimbursements?: boolean | undefined;
508
+ }, {
509
+ reports?: boolean | undefined;
510
+ customers?: boolean | undefined;
511
+ contracts?: boolean | undefined;
512
+ billing?: boolean | undefined;
513
+ reimbursements?: boolean | undefined;
514
+ }>, z.ZodBoolean]>>;
378
515
  notifications: z.ZodOptional<z.ZodBoolean>;
379
516
  waba: z.ZodOptional<z.ZodBoolean>;
380
517
  reports: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;
@@ -388,7 +525,13 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
388
525
  management?: boolean | undefined;
389
526
  supervision?: boolean | undefined;
390
527
  } | undefined;
391
- finance?: boolean | undefined;
528
+ finance?: boolean | {
529
+ reports?: boolean | undefined;
530
+ customers?: boolean | undefined;
531
+ contracts?: boolean | undefined;
532
+ billing?: boolean | undefined;
533
+ reimbursements?: boolean | undefined;
534
+ } | undefined;
392
535
  notifications?: boolean | undefined;
393
536
  waba?: boolean | undefined;
394
537
  reports?: boolean | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
@@ -404,7 +547,13 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
404
547
  management?: boolean | undefined;
405
548
  supervision?: boolean | undefined;
406
549
  } | undefined;
407
- finance?: boolean | undefined;
550
+ finance?: boolean | {
551
+ reports?: boolean | undefined;
552
+ customers?: boolean | undefined;
553
+ contracts?: boolean | undefined;
554
+ billing?: boolean | undefined;
555
+ reimbursements?: boolean | undefined;
556
+ } | undefined;
408
557
  notifications?: boolean | undefined;
409
558
  waba?: boolean | undefined;
410
559
  reports?: boolean | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zNexusClaimsSchema = exports.zNexusModulesSchema = exports.zNexusReportsSchema = exports.zNexusModuleChatPermissionsSchema = 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.zNexusReportsSchema = exports.zNexusModuleFinancePermissionsSchema = 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");
@@ -101,6 +101,17 @@ exports.zNexusModuleChatPermissionsSchema = zod_1.z.object({
101
101
  /** Supervisão 2.0 (CSQ). Gate da fila e do laudo do evo-csq no Nexus. */
102
102
  csq: zod_1.z.boolean().optional(),
103
103
  });
104
+ /**
105
+ * Schema for INexusModuleFinancePermissions
106
+ */
107
+ exports.zNexusModuleFinancePermissionsSchema = zod_1.z.object({
108
+ customers: zod_1.z.boolean().optional(),
109
+ contracts: zod_1.z.boolean().optional(),
110
+ billing: zod_1.z.boolean().optional(),
111
+ reports: zod_1.z.boolean().optional(),
112
+ /** feat-264 — reembolso da taxa de NFS-e. */
113
+ reimbursements: zod_1.z.boolean().optional(),
114
+ });
104
115
  /**
105
116
  * Schema for INexusReports
106
117
  */
@@ -112,7 +123,9 @@ exports.zNexusModulesSchema = zod_1.z
112
123
  .object({
113
124
  chat: zod_1.z.union([exports.zNexusModuleChatPermissionsSchema, zod_1.z.boolean()]).optional(),
114
125
  tenants: zod_1.z.boolean().optional(),
115
- finance: zod_1.z.boolean().optional(),
126
+ finance: zod_1.z
127
+ .union([exports.zNexusModuleFinancePermissionsSchema, zod_1.z.boolean()])
128
+ .optional(),
116
129
  notifications: zod_1.z.boolean().optional(),
117
130
  waba: zod_1.z.boolean().optional(),
118
131
  reports: zod_1.z.union([exports.zNexusReportsSchema, zod_1.z.boolean()]).optional(),
@@ -112,6 +112,18 @@ export const zNexusModuleChatPermissionsSchema = z.object({
112
112
  csq: z.boolean().optional(),
113
113
  });
114
114
 
115
+ /**
116
+ * Schema for INexusModuleFinancePermissions
117
+ */
118
+ export const zNexusModuleFinancePermissionsSchema = z.object({
119
+ customers: z.boolean().optional(),
120
+ contracts: z.boolean().optional(),
121
+ billing: z.boolean().optional(),
122
+ reports: z.boolean().optional(),
123
+ /** feat-264 — reembolso da taxa de NFS-e. */
124
+ reimbursements: z.boolean().optional(),
125
+ });
126
+
115
127
  /**
116
128
  * Schema for INexusReports
117
129
  */
@@ -124,7 +136,9 @@ export const zNexusModulesSchema = z
124
136
  .object({
125
137
  chat: z.union([zNexusModuleChatPermissionsSchema, z.boolean()]).optional(),
126
138
  tenants: z.boolean().optional(),
127
- finance: z.boolean().optional(),
139
+ finance: z
140
+ .union([zNexusModuleFinancePermissionsSchema, z.boolean()])
141
+ .optional(),
128
142
  notifications: z.boolean().optional(),
129
143
  waba: z.boolean().optional(),
130
144
  reports: z.union([zNexusReportsSchema, z.boolean()]).optional(),
@@ -107,6 +107,7 @@ export declare const zLeadSchema: z.ZodObject<{
107
107
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
108
108
  kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
109
109
  line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
110
+ number: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>>;
110
111
  line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
111
112
  neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
112
113
  city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -115,22 +116,24 @@ export declare const zLeadSchema: z.ZodObject<{
115
116
  country: z.ZodDefault<z.ZodOptional<z.ZodString>>;
116
117
  geo: z.ZodOptional<z.ZodAny>;
117
118
  }, "strip", z.ZodTypeAny, {
119
+ number: string;
118
120
  name: string;
119
121
  kind: string;
120
122
  country: string;
121
- city: string;
122
123
  state: string;
124
+ city: string;
123
125
  line1: string;
124
126
  line2: string;
125
127
  neighborhood: string;
126
128
  zip: string;
127
129
  geo?: any;
128
130
  }, {
131
+ number?: unknown;
129
132
  name?: string | undefined;
130
133
  kind?: string | undefined;
131
134
  country?: string | undefined;
132
- city?: string | undefined;
133
135
  state?: string | undefined;
136
+ city?: string | undefined;
134
137
  line1?: string | undefined;
135
138
  line2?: string | undefined;
136
139
  neighborhood?: string | undefined;
@@ -363,6 +366,7 @@ export declare const zLeadSchema: z.ZodObject<{
363
366
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
364
367
  kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
365
368
  line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
369
+ number: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>>;
366
370
  line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
367
371
  neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
368
372
  city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -371,22 +375,24 @@ export declare const zLeadSchema: z.ZodObject<{
371
375
  country: z.ZodDefault<z.ZodOptional<z.ZodString>>;
372
376
  geo: z.ZodOptional<z.ZodAny>;
373
377
  }, "strip", z.ZodTypeAny, {
378
+ number: string;
374
379
  name: string;
375
380
  kind: string;
376
381
  country: string;
377
- city: string;
378
382
  state: string;
383
+ city: string;
379
384
  line1: string;
380
385
  line2: string;
381
386
  neighborhood: string;
382
387
  zip: string;
383
388
  geo?: any;
384
389
  }, {
390
+ number?: unknown;
385
391
  name?: string | undefined;
386
392
  kind?: string | undefined;
387
393
  country?: string | undefined;
388
- city?: string | undefined;
389
394
  state?: string | undefined;
395
+ city?: string | undefined;
390
396
  line1?: string | undefined;
391
397
  line2?: string | undefined;
392
398
  neighborhood?: string | undefined;
@@ -619,6 +625,7 @@ export declare const zLeadSchema: z.ZodObject<{
619
625
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
620
626
  kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
621
627
  line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
628
+ number: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>>;
622
629
  line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
623
630
  neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
624
631
  city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -627,22 +634,24 @@ export declare const zLeadSchema: z.ZodObject<{
627
634
  country: z.ZodDefault<z.ZodOptional<z.ZodString>>;
628
635
  geo: z.ZodOptional<z.ZodAny>;
629
636
  }, "strip", z.ZodTypeAny, {
637
+ number: string;
630
638
  name: string;
631
639
  kind: string;
632
640
  country: string;
633
- city: string;
634
641
  state: string;
642
+ city: string;
635
643
  line1: string;
636
644
  line2: string;
637
645
  neighborhood: string;
638
646
  zip: string;
639
647
  geo?: any;
640
648
  }, {
649
+ number?: unknown;
641
650
  name?: string | undefined;
642
651
  kind?: string | undefined;
643
652
  country?: string | undefined;
644
- city?: string | undefined;
645
653
  state?: string | undefined;
654
+ city?: string | undefined;
646
655
  line1?: string | undefined;
647
656
  line2?: string | undefined;
648
657
  neighborhood?: string | undefined;