evo360-types 1.3.570 → 1.3.574
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/apps/evo-crm/lead/zod-schemas.d.ts +9 -9
- package/dist/apps/evo-csq/zod-schemas.d.ts +12 -12
- package/dist/apps/evo-finops/zod-schemas.d.ts +18 -18
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +2 -2
- package/dist/apps/evo-med/people/zod-schemas.d.ts +45 -45
- package/dist/apps/evo-notifications/quick-reply-action/zod-schemas.d.ts +3 -0
- package/dist/apps/evo-notifications/quick-reply-action/zod-schemas.js +3 -0
- package/dist/apps/evo-notifications/quick-reply-action/zod-schemas.ts +3 -0
- package/dist/apps/evo-notifications/zod-schemas.d.ts +69 -39
- package/dist/apps/evo-task/zod-schemas.d.ts +69 -69
- package/dist/apps/evo-task/zod-schemas.js +8 -0
- package/dist/apps/evo-task/zod-schemas.ts +8 -0
- package/dist/apps/evo-telemedicine/zod-schemas.d.ts +1445 -0
- package/dist/apps/evo-telemedicine/zod-schemas.js +641 -0
- package/dist/apps/evo-telemedicine/zod-schemas.ts +723 -0
- package/dist/apps/evo-tenant/zod-schemas.d.ts +94 -0
- package/dist/apps/evo-tenant/zod-schemas.js +29 -1
- package/dist/apps/evo-tenant/zod-schemas.ts +32 -1
- package/dist/apps/hub-automation/zod-schemas.d.ts +172 -172
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.ts +2 -0
- package/dist/types/evo-med/calendar/index.d.ts +6 -0
- package/dist/types/evo-med/calendar/index.js +6 -0
- package/dist/types/evo-med/calendar/index.ts +6 -0
- package/dist/types/evo-notifications/index.d.ts +13 -0
- package/dist/types/evo-notifications/index.js +6 -0
- package/dist/types/evo-notifications/index.ts +13 -0
- package/dist/types/evo-task/index.d.ts +1 -0
- package/dist/types/evo-task/index.js +8 -0
- package/dist/types/evo-task/index.ts +8 -0
- package/dist/types/evo-telemedicine/fb_collections.d.ts +16 -0
- package/dist/types/evo-telemedicine/fb_collections.js +38 -0
- package/dist/types/evo-telemedicine/fb_collections.ts +37 -0
- package/dist/types/evo-telemedicine/index.d.ts +890 -0
- package/dist/types/evo-telemedicine/index.js +361 -0
- package/dist/types/evo-telemedicine/index.ts +1046 -0
- package/dist/types/evo-tenant/index.d.ts +45 -0
- package/dist/types/evo-tenant/index.js +20 -1
- package/dist/types/evo-tenant/index.ts +65 -0
- package/dist/types/shared/external-links.d.ts +6 -0
- package/dist/types/shared/external-links.js +6 -0
- package/dist/types/shared/external-links.ts +6 -0
- package/package.json +1 -1
|
@@ -2,6 +2,42 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const zTenantActionSchema: z.ZodEnum<["CREATE_TENANT", "DELETE_TENANT", "UPDATE_TENANT"]>;
|
|
3
3
|
export declare const zTenantLanguageSchema: z.ZodEnum<["ptBR", "en"]>;
|
|
4
4
|
export declare const zTenantStatusSchema: z.ZodEnum<["draft", "published", "archived"]>;
|
|
5
|
+
export declare const zTenantModuleStatusSchema: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
6
|
+
export declare const zTenantModuleSourceSchema: z.ZodEnum<["contract", "trial", "manual"]>;
|
|
7
|
+
export declare const zTenantModuleEntitlementSchema: z.ZodObject<{
|
|
8
|
+
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
9
|
+
enabled: z.ZodBoolean;
|
|
10
|
+
source: z.ZodEnum<["contract", "trial", "manual"]>;
|
|
11
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
12
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
13
|
+
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>>>;
|
|
14
|
+
override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
15
|
+
override_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
version: z.ZodNumber;
|
|
17
|
+
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
18
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
19
|
+
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
20
|
+
enabled: z.ZodBoolean;
|
|
21
|
+
source: z.ZodEnum<["contract", "trial", "manual"]>;
|
|
22
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
23
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
24
|
+
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>>>;
|
|
25
|
+
override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
26
|
+
override_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
version: z.ZodNumber;
|
|
28
|
+
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
29
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
30
|
+
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
31
|
+
enabled: z.ZodBoolean;
|
|
32
|
+
source: z.ZodEnum<["contract", "trial", "manual"]>;
|
|
33
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
34
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
35
|
+
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>>>;
|
|
36
|
+
override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
37
|
+
override_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
version: z.ZodNumber;
|
|
39
|
+
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
40
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5
41
|
export declare const zTenantSchema: z.ZodObject<{
|
|
6
42
|
id: z.ZodString;
|
|
7
43
|
ref: z.ZodAny;
|
|
@@ -21,6 +57,40 @@ export declare const zTenantSchema: z.ZodObject<{
|
|
|
21
57
|
status: z.ZodEnum<["draft", "published", "archived"]>;
|
|
22
58
|
timezone: z.ZodOptional<z.ZodString>;
|
|
23
59
|
created_by: z.ZodAny;
|
|
60
|
+
modules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
61
|
+
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
62
|
+
enabled: z.ZodBoolean;
|
|
63
|
+
source: z.ZodEnum<["contract", "trial", "manual"]>;
|
|
64
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
65
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
66
|
+
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>>>;
|
|
67
|
+
override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
68
|
+
override_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
version: z.ZodNumber;
|
|
70
|
+
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
71
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
72
|
+
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
73
|
+
enabled: z.ZodBoolean;
|
|
74
|
+
source: z.ZodEnum<["contract", "trial", "manual"]>;
|
|
75
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
76
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
77
|
+
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>>>;
|
|
78
|
+
override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
79
|
+
override_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
version: z.ZodNumber;
|
|
81
|
+
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
82
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
83
|
+
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
84
|
+
enabled: z.ZodBoolean;
|
|
85
|
+
source: z.ZodEnum<["contract", "trial", "manual"]>;
|
|
86
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
87
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
88
|
+
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>>>;
|
|
89
|
+
override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
90
|
+
override_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
version: z.ZodNumber;
|
|
92
|
+
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
93
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
24
94
|
}, "strip", z.ZodTypeAny, {
|
|
25
95
|
name: string;
|
|
26
96
|
id: string;
|
|
@@ -39,6 +109,18 @@ export declare const zTenantSchema: z.ZodObject<{
|
|
|
39
109
|
language?: "ptBR" | "en" | undefined;
|
|
40
110
|
timezone?: string | undefined;
|
|
41
111
|
created_by?: any;
|
|
112
|
+
modules?: Record<string, z.objectOutputType<{
|
|
113
|
+
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
114
|
+
enabled: z.ZodBoolean;
|
|
115
|
+
source: z.ZodEnum<["contract", "trial", "manual"]>;
|
|
116
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
117
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
118
|
+
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>>>;
|
|
119
|
+
override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
120
|
+
override_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
version: z.ZodNumber;
|
|
122
|
+
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
123
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
42
124
|
}, {
|
|
43
125
|
name: string;
|
|
44
126
|
id: string;
|
|
@@ -57,4 +139,16 @@ export declare const zTenantSchema: z.ZodObject<{
|
|
|
57
139
|
language?: "ptBR" | "en" | undefined;
|
|
58
140
|
timezone?: string | undefined;
|
|
59
141
|
created_by?: any;
|
|
142
|
+
modules?: Record<string, z.objectInputType<{
|
|
143
|
+
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
144
|
+
enabled: z.ZodBoolean;
|
|
145
|
+
source: z.ZodEnum<["contract", "trial", "manual"]>;
|
|
146
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
147
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
148
|
+
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>>>;
|
|
149
|
+
override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
150
|
+
override_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
version: z.ZodNumber;
|
|
152
|
+
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
153
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
60
154
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zTenantSchema = exports.zTenantStatusSchema = exports.zTenantLanguageSchema = exports.zTenantActionSchema = void 0;
|
|
3
|
+
exports.zTenantSchema = exports.zTenantModuleEntitlementSchema = exports.zTenantModuleSourceSchema = exports.zTenantModuleStatusSchema = exports.zTenantStatusSchema = exports.zTenantLanguageSchema = exports.zTenantActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
6
|
exports.zTenantActionSchema = zod_1.z.enum([
|
|
@@ -10,6 +10,32 @@ exports.zTenantActionSchema = zod_1.z.enum([
|
|
|
10
10
|
]);
|
|
11
11
|
exports.zTenantLanguageSchema = zod_1.z.enum(["ptBR", "en"]);
|
|
12
12
|
exports.zTenantStatusSchema = zod_1.z.enum(["draft", "published", "archived"]);
|
|
13
|
+
// ----- Módulos adicionais (feat-160) — espelham `TenantModuleStatus`,
|
|
14
|
+
// `TenantModuleSource` e `ITenantModuleEntitlement` em types/evo-tenant/index.ts.
|
|
15
|
+
// As listas são à mão: manter os dois lados sincronizados.
|
|
16
|
+
exports.zTenantModuleStatusSchema = zod_1.z.enum([
|
|
17
|
+
"active",
|
|
18
|
+
"trial",
|
|
19
|
+
"suspended",
|
|
20
|
+
"cancelled",
|
|
21
|
+
]);
|
|
22
|
+
exports.zTenantModuleSourceSchema = zod_1.z.enum(["contract", "trial", "manual"]);
|
|
23
|
+
exports.zTenantModuleEntitlementSchema = zod_1.z
|
|
24
|
+
.object({
|
|
25
|
+
status: exports.zTenantModuleStatusSchema,
|
|
26
|
+
enabled: zod_1.z.boolean(),
|
|
27
|
+
source: exports.zTenantModuleSourceSchema,
|
|
28
|
+
effective_at: zod_schemas_1.zFirestoreDateSchema.nullable().optional(),
|
|
29
|
+
expires_at: zod_schemas_1.zFirestoreDateSchema.nullable().optional(),
|
|
30
|
+
capabilities: zod_1.z
|
|
31
|
+
.record(zod_1.z.string(), zod_1.z.union([zod_1.z.boolean(), zod_1.z.number(), zod_1.z.string()]))
|
|
32
|
+
.optional(),
|
|
33
|
+
override_until: zod_schemas_1.zFirestoreDateSchema.nullable().optional(),
|
|
34
|
+
override_by: zod_1.z.string().nullable().optional(),
|
|
35
|
+
version: zod_1.z.number().int().min(0),
|
|
36
|
+
updated_at: zod_schemas_1.zFirestoreDateSchema,
|
|
37
|
+
})
|
|
38
|
+
.passthrough();
|
|
13
39
|
exports.zTenantSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
14
40
|
.extend({
|
|
15
41
|
name: zod_1.z.string().min(1).max(255),
|
|
@@ -22,4 +48,6 @@ exports.zTenantSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchem
|
|
|
22
48
|
status: exports.zTenantStatusSchema,
|
|
23
49
|
timezone: zod_1.z.string().optional(),
|
|
24
50
|
created_by: zod_1.z.any(),
|
|
51
|
+
// feat-160: chave livre (`telemedicine`, …) → entitlement do módulo.
|
|
52
|
+
modules: zod_1.z.record(zod_1.z.string(), exports.zTenantModuleEntitlementSchema).optional(),
|
|
25
53
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { zFireDocSchema } from "../shared/zod-schemas";
|
|
2
|
+
import { zFireDocSchema, zFirestoreDateSchema } from "../shared/zod-schemas";
|
|
3
3
|
|
|
4
4
|
export const zTenantActionSchema = z.enum([
|
|
5
5
|
"CREATE_TENANT",
|
|
@@ -11,6 +11,35 @@ export const zTenantLanguageSchema = z.enum(["ptBR", "en"]);
|
|
|
11
11
|
|
|
12
12
|
export const zTenantStatusSchema = z.enum(["draft", "published", "archived"]);
|
|
13
13
|
|
|
14
|
+
// ----- Módulos adicionais (feat-160) — espelham `TenantModuleStatus`,
|
|
15
|
+
// `TenantModuleSource` e `ITenantModuleEntitlement` em types/evo-tenant/index.ts.
|
|
16
|
+
// As listas são à mão: manter os dois lados sincronizados.
|
|
17
|
+
export const zTenantModuleStatusSchema = z.enum([
|
|
18
|
+
"active",
|
|
19
|
+
"trial",
|
|
20
|
+
"suspended",
|
|
21
|
+
"cancelled",
|
|
22
|
+
]);
|
|
23
|
+
|
|
24
|
+
export const zTenantModuleSourceSchema = z.enum(["contract", "trial", "manual"]);
|
|
25
|
+
|
|
26
|
+
export const zTenantModuleEntitlementSchema = z
|
|
27
|
+
.object({
|
|
28
|
+
status: zTenantModuleStatusSchema,
|
|
29
|
+
enabled: z.boolean(),
|
|
30
|
+
source: zTenantModuleSourceSchema,
|
|
31
|
+
effective_at: zFirestoreDateSchema.nullable().optional(),
|
|
32
|
+
expires_at: zFirestoreDateSchema.nullable().optional(),
|
|
33
|
+
capabilities: z
|
|
34
|
+
.record(z.string(), z.union([z.boolean(), z.number(), z.string()]))
|
|
35
|
+
.optional(),
|
|
36
|
+
override_until: zFirestoreDateSchema.nullable().optional(),
|
|
37
|
+
override_by: z.string().nullable().optional(),
|
|
38
|
+
version: z.number().int().min(0),
|
|
39
|
+
updated_at: zFirestoreDateSchema,
|
|
40
|
+
})
|
|
41
|
+
.passthrough();
|
|
42
|
+
|
|
14
43
|
export const zTenantSchema = zFireDocSchema // Extend from FireDocSchema
|
|
15
44
|
.extend({
|
|
16
45
|
name: z.string().min(1).max(255),
|
|
@@ -23,4 +52,6 @@ export const zTenantSchema = zFireDocSchema // Extend from FireDocSchema
|
|
|
23
52
|
status: zTenantStatusSchema,
|
|
24
53
|
timezone: z.string().optional(),
|
|
25
54
|
created_by: z.any(),
|
|
55
|
+
// feat-160: chave livre (`telemedicine`, …) → entitlement do módulo.
|
|
56
|
+
modules: z.record(z.string(), zTenantModuleEntitlementSchema).optional(),
|
|
26
57
|
});
|