evo360-types 1.3.630 → 1.3.637
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-activity/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-chat/chatbee/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-chat/contact/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-chat/dic/ticket-close/zod-schemas.d.ts +12 -12
- package/dist/apps/evo-chat/message/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-crm/dic/zod-schemas.d.ts +70 -18
- package/dist/apps/evo-crm/dic/zod-schemas.js +17 -1
- package/dist/apps/evo-crm/dic/zod-schemas.ts +20 -0
- package/dist/apps/evo-crm/lead/zod-schemas.d.ts +240 -6
- package/dist/apps/evo-crm/lead/zod-schemas.js +6 -0
- package/dist/apps/evo-crm/lead/zod-schemas.ts +6 -0
- package/dist/apps/evo-csq/zod-schemas.d.ts +52 -52
- package/dist/apps/evo-finops/zod-schemas.d.ts +439 -7
- package/dist/apps/evo-hub-ia/channel/zod-schemas.d.ts +2 -2
- package/dist/apps/evo-hub-ia/v1/zod-schemas.d.ts +28 -28
- package/dist/apps/evo-integrations/zod-schemas.d.ts +24 -16
- package/dist/apps/evo-integrations/zod-schemas.js +8 -1
- package/dist/apps/evo-integrations/zod-schemas.ts +9 -0
- package/dist/apps/evo-med/appointment/zod-schemas.d.ts +83 -6
- package/dist/apps/evo-med/appointment/zod-schemas.js +19 -1
- package/dist/apps/evo-med/appointment/zod-schemas.ts +21 -0
- package/dist/apps/evo-med/calendar/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +14 -14
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-med/people/zod-schemas.d.ts +1118 -20
- package/dist/apps/evo-med/people/zod-schemas.js +6 -0
- package/dist/apps/evo-med/people/zod-schemas.ts +6 -0
- package/dist/apps/evo-med/procedure/zod-schemas.d.ts +12 -12
- package/dist/apps/evo-notif-user/zod-schemas.d.ts +18 -18
- package/dist/apps/evo-notifications/zod-schemas.d.ts +936 -0
- package/dist/apps/evo-people/zod-schemas.d.ts +24 -24
- package/dist/apps/evo-survey/zod-schemas.d.ts +79 -79
- package/dist/apps/evo-task/zod-schemas.d.ts +453 -78
- package/dist/apps/evo-task/zod-schemas.js +66 -1
- package/dist/apps/evo-task/zod-schemas.ts +71 -0
- package/dist/apps/evo-telemedicine/zod-schemas.d.ts +12 -0
- package/dist/apps/evo-telemedicine/zod-schemas.js +4 -0
- package/dist/apps/evo-telemedicine/zod-schemas.ts +4 -0
- package/dist/apps/evo-tenant/zod-schemas.d.ts +18 -5
- package/dist/apps/evo-tenant/zod-schemas.js +3 -0
- package/dist/apps/evo-tenant/zod-schemas.ts +3 -0
- package/dist/apps/hub-automation/zod-schemas.d.ts +327 -327
- package/dist/apps/shared/zod-schemas.d.ts +3 -3
- package/dist/types/evo-crm/dic/index.d.ts +16 -1
- package/dist/types/evo-crm/dic/index.ts +23 -1
- package/dist/types/evo-crm/fb_collections.d.ts +1 -0
- package/dist/types/evo-crm/fb_collections.js +5 -1
- package/dist/types/evo-crm/fb_collections.ts +4 -0
- package/dist/types/evo-crm/lead/index.d.ts +6 -0
- package/dist/types/evo-crm/lead/index.ts +6 -0
- package/dist/types/evo-integrations/index.d.ts +16 -0
- package/dist/types/evo-integrations/index.js +18 -1
- package/dist/types/evo-integrations/index.ts +26 -0
- package/dist/types/evo-med/appointment/index.d.ts +22 -0
- package/dist/types/evo-med/appointment/index.js +7 -1
- package/dist/types/evo-med/appointment/index.ts +30 -0
- package/dist/types/evo-med/people/index.d.ts +6 -0
- package/dist/types/evo-med/people/index.ts +6 -0
- package/dist/types/evo-telemedicine/index.d.ts +43 -0
- package/dist/types/evo-telemedicine/index.ts +43 -0
- package/dist/types/evo-tenant/index.d.ts +7 -0
- package/dist/types/evo-tenant/index.ts +7 -0
- package/dist/types/shared/external-links.d.ts +98 -0
- package/dist/types/shared/external-links.js +64 -1
- package/dist/types/shared/external-links.ts +118 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zTaskLogSchema = exports.zTaskExecutionSchema = exports.zTaskExecutionProviderSchema = exports.zTaskExecutionErrorSchema = exports.zTaskCommentSchema = exports.zTaskCommentAuthorSchema = exports.zTaskSchema = exports.zTaskCreatorSchema = exports.zTaskOnFailureSchema = exports.zTaskAutoSpecSchema = exports.zTaskDedupSchema = exports.zTaskRetryPolicySchema = exports.zTaskRunnerStateSchema = exports.zTaskLockSchema = exports.zTaskUserAssigneeSchema = exports.zTaskScheduleSchema = exports.zTaskExternalLinkSchema = exports.zExternalLinkSchema = exports.zExternalOwnerSystemSchema = exports.zTaskExecutionStatusSchema = exports.zTaskExternalObjectTypeSchema = exports.zExternalObjectTypeSchema = exports.zTaskDedupWindowSchema = exports.zTaskDedupScopeSchema = exports.zTaskRetryStrategySchema = exports.zTaskAutoHandlerSchema = exports.zTaskModeSchema = exports.zTaskSourceSchema = exports.zTaskPrioritySchema = exports.zTaskStatusSchema = exports.zTaskActionSchema = void 0;
|
|
3
|
+
exports.zTaskLogSchema = exports.zTaskExecutionSchema = exports.zTaskExecutionProviderSchema = exports.zTaskExecutionErrorSchema = exports.zTaskCommentSchema = exports.zTaskCommentAuthorSchema = exports.zTaskSchema = exports.zTaskCreatorSchema = exports.zTaskOnFailureSchema = exports.zTaskAutoSpecSchema = exports.zTaskDedupSchema = exports.zTaskRetryPolicySchema = exports.zTaskRunnerStateSchema = exports.zTaskLockSchema = exports.zTaskUserAssigneeSchema = exports.zTaskScheduleSchema = exports.zTaskExternalLinkSchema = exports.zExternalLinkSchema = exports.zExternalLinkRelationSchema = exports.zLinkRelationRoleSchema = exports.zLinkRelationPairSchema = exports.zExternalLinkSourceSchema = exports.zExternalLinkStatusSchema = exports.zExternalLinkKindSchema = exports.zExternalOwnerSystemSchema = exports.zTaskExecutionStatusSchema = exports.zTaskExternalObjectTypeSchema = exports.zExternalObjectTypeSchema = exports.zTaskDedupWindowSchema = exports.zTaskDedupScopeSchema = exports.zTaskRetryStrategySchema = exports.zTaskAutoHandlerSchema = exports.zTaskModeSchema = exports.zTaskSourceSchema = exports.zTaskPrioritySchema = exports.zTaskStatusSchema = exports.zTaskActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
6
|
exports.zTaskActionSchema = zod_1.z.enum([
|
|
@@ -108,6 +108,52 @@ exports.zTaskExternalObjectTypeSchema = exports.zExternalObjectTypeSchema;
|
|
|
108
108
|
exports.zTaskExecutionStatusSchema = zod_1.z.enum(["success", "error", "retry"]);
|
|
109
109
|
// Schema para IExternalLink (promoted to shared, renamed from Task-specific)
|
|
110
110
|
exports.zExternalOwnerSystemSchema = zod_1.z.enum(["nexus"]);
|
|
111
|
+
// feat-193 — contrato do vínculo lead/paciente (espelha os enums de
|
|
112
|
+
// types/shared/external-links.ts; as listas são à mão, como a de tipos acima).
|
|
113
|
+
exports.zExternalLinkKindSchema = zod_1.z.enum(["identity", "representation"]);
|
|
114
|
+
exports.zExternalLinkStatusSchema = zod_1.z.enum([
|
|
115
|
+
"suggested",
|
|
116
|
+
"confirmed",
|
|
117
|
+
"rejected",
|
|
118
|
+
]);
|
|
119
|
+
exports.zExternalLinkSourceSchema = zod_1.z.enum([
|
|
120
|
+
"ui_appointment",
|
|
121
|
+
"ui_manual",
|
|
122
|
+
"ui_family",
|
|
123
|
+
"sync_inferred",
|
|
124
|
+
"reminder_inferred",
|
|
125
|
+
"send_inferred",
|
|
126
|
+
"lead_autocreate",
|
|
127
|
+
"inherited",
|
|
128
|
+
"merge",
|
|
129
|
+
"legacy",
|
|
130
|
+
]);
|
|
131
|
+
exports.zLinkRelationPairSchema = zod_1.z.enum([
|
|
132
|
+
"parent_child",
|
|
133
|
+
"spouse",
|
|
134
|
+
"guardian_dependent",
|
|
135
|
+
"family",
|
|
136
|
+
"company_employee",
|
|
137
|
+
"third_party_company",
|
|
138
|
+
"other",
|
|
139
|
+
]);
|
|
140
|
+
exports.zLinkRelationRoleSchema = zod_1.z.enum([
|
|
141
|
+
"parent",
|
|
142
|
+
"child",
|
|
143
|
+
"spouse",
|
|
144
|
+
"guardian",
|
|
145
|
+
"dependent",
|
|
146
|
+
"family",
|
|
147
|
+
"company",
|
|
148
|
+
"employee",
|
|
149
|
+
"third_party",
|
|
150
|
+
"represented",
|
|
151
|
+
"other",
|
|
152
|
+
]);
|
|
153
|
+
exports.zExternalLinkRelationSchema = zod_1.z.object({
|
|
154
|
+
pair: exports.zLinkRelationPairSchema,
|
|
155
|
+
other_role: exports.zLinkRelationRoleSchema,
|
|
156
|
+
});
|
|
111
157
|
exports.zExternalLinkSchema = zod_1.z
|
|
112
158
|
.object({
|
|
113
159
|
type: exports.zExternalObjectTypeSchema,
|
|
@@ -119,6 +165,25 @@ exports.zExternalLinkSchema = zod_1.z
|
|
|
119
165
|
// calado e o link ficaria sem dono sem ninguém perceber — é exatamente o
|
|
120
166
|
// buraco que o passthrough esconde.
|
|
121
167
|
owner: exports.zExternalOwnerSystemSchema.optional(),
|
|
168
|
+
// feat-193: explícitos pelo mesmo motivo do `owner` — typo não entra calado.
|
|
169
|
+
// Datas como `z.coerce.date()` (igual ao `zFireDocSchema`): o DataValidator do
|
|
170
|
+
// backend converte Timestamp em Date nas posições ZodDate, inclusive dentro
|
|
171
|
+
// de arrays — e o tipo de entrada segue compatível com `IExternalLink`.
|
|
172
|
+
kind: exports.zExternalLinkKindSchema.optional(),
|
|
173
|
+
relation: exports.zExternalLinkRelationSchema.nullable().optional(),
|
|
174
|
+
status: exports.zExternalLinkStatusSchema.optional(),
|
|
175
|
+
evidence_fingerprint: zod_1.z.string().nullable().optional(),
|
|
176
|
+
created_source: exports.zExternalLinkSourceSchema.optional(),
|
|
177
|
+
created_by: zod_1.z.any().nullable().optional(), // FirestoreDocumentReference
|
|
178
|
+
created_at: zod_1.z.coerce.date().nullable().optional(),
|
|
179
|
+
last_observed_source: exports.zExternalLinkSourceSchema.nullable().optional(),
|
|
180
|
+
last_observed_at: zod_1.z.coerce.date().nullable().optional(),
|
|
181
|
+
confirmed_source: exports.zExternalLinkSourceSchema.nullable().optional(),
|
|
182
|
+
confirmed_by: zod_1.z.any().nullable().optional(), // FirestoreDocumentReference
|
|
183
|
+
confirmed_at: zod_1.z.coerce.date().nullable().optional(),
|
|
184
|
+
rejected_by: zod_1.z.any().nullable().optional(), // FirestoreDocumentReference
|
|
185
|
+
rejected_at: zod_1.z.coerce.date().nullable().optional(),
|
|
186
|
+
rejection_reason: zod_1.z.string().nullable().optional(),
|
|
122
187
|
})
|
|
123
188
|
.passthrough();
|
|
124
189
|
// Backward compatibility alias
|
|
@@ -119,6 +119,58 @@ export const zTaskExecutionStatusSchema = z.enum(["success", "error", "retry"]);
|
|
|
119
119
|
// Schema para IExternalLink (promoted to shared, renamed from Task-specific)
|
|
120
120
|
export const zExternalOwnerSystemSchema = z.enum(["nexus"]);
|
|
121
121
|
|
|
122
|
+
// feat-193 — contrato do vínculo lead/paciente (espelha os enums de
|
|
123
|
+
// types/shared/external-links.ts; as listas são à mão, como a de tipos acima).
|
|
124
|
+
export const zExternalLinkKindSchema = z.enum(["identity", "representation"]);
|
|
125
|
+
|
|
126
|
+
export const zExternalLinkStatusSchema = z.enum([
|
|
127
|
+
"suggested",
|
|
128
|
+
"confirmed",
|
|
129
|
+
"rejected",
|
|
130
|
+
]);
|
|
131
|
+
|
|
132
|
+
export const zExternalLinkSourceSchema = z.enum([
|
|
133
|
+
"ui_appointment",
|
|
134
|
+
"ui_manual",
|
|
135
|
+
"ui_family",
|
|
136
|
+
"sync_inferred",
|
|
137
|
+
"reminder_inferred",
|
|
138
|
+
"send_inferred",
|
|
139
|
+
"lead_autocreate",
|
|
140
|
+
"inherited",
|
|
141
|
+
"merge",
|
|
142
|
+
"legacy",
|
|
143
|
+
]);
|
|
144
|
+
|
|
145
|
+
export const zLinkRelationPairSchema = z.enum([
|
|
146
|
+
"parent_child",
|
|
147
|
+
"spouse",
|
|
148
|
+
"guardian_dependent",
|
|
149
|
+
"family",
|
|
150
|
+
"company_employee",
|
|
151
|
+
"third_party_company",
|
|
152
|
+
"other",
|
|
153
|
+
]);
|
|
154
|
+
|
|
155
|
+
export const zLinkRelationRoleSchema = z.enum([
|
|
156
|
+
"parent",
|
|
157
|
+
"child",
|
|
158
|
+
"spouse",
|
|
159
|
+
"guardian",
|
|
160
|
+
"dependent",
|
|
161
|
+
"family",
|
|
162
|
+
"company",
|
|
163
|
+
"employee",
|
|
164
|
+
"third_party",
|
|
165
|
+
"represented",
|
|
166
|
+
"other",
|
|
167
|
+
]);
|
|
168
|
+
|
|
169
|
+
export const zExternalLinkRelationSchema = z.object({
|
|
170
|
+
pair: zLinkRelationPairSchema,
|
|
171
|
+
other_role: zLinkRelationRoleSchema,
|
|
172
|
+
});
|
|
173
|
+
|
|
122
174
|
export const zExternalLinkSchema = z
|
|
123
175
|
.object({
|
|
124
176
|
type: zExternalObjectTypeSchema,
|
|
@@ -130,6 +182,25 @@ export const zExternalLinkSchema = z
|
|
|
130
182
|
// calado e o link ficaria sem dono sem ninguém perceber — é exatamente o
|
|
131
183
|
// buraco que o passthrough esconde.
|
|
132
184
|
owner: zExternalOwnerSystemSchema.optional(),
|
|
185
|
+
// feat-193: explícitos pelo mesmo motivo do `owner` — typo não entra calado.
|
|
186
|
+
// Datas como `z.coerce.date()` (igual ao `zFireDocSchema`): o DataValidator do
|
|
187
|
+
// backend converte Timestamp em Date nas posições ZodDate, inclusive dentro
|
|
188
|
+
// de arrays — e o tipo de entrada segue compatível com `IExternalLink`.
|
|
189
|
+
kind: zExternalLinkKindSchema.optional(),
|
|
190
|
+
relation: zExternalLinkRelationSchema.nullable().optional(),
|
|
191
|
+
status: zExternalLinkStatusSchema.optional(),
|
|
192
|
+
evidence_fingerprint: z.string().nullable().optional(),
|
|
193
|
+
created_source: zExternalLinkSourceSchema.optional(),
|
|
194
|
+
created_by: z.any().nullable().optional(), // FirestoreDocumentReference
|
|
195
|
+
created_at: z.coerce.date().nullable().optional(),
|
|
196
|
+
last_observed_source: zExternalLinkSourceSchema.nullable().optional(),
|
|
197
|
+
last_observed_at: z.coerce.date().nullable().optional(),
|
|
198
|
+
confirmed_source: zExternalLinkSourceSchema.nullable().optional(),
|
|
199
|
+
confirmed_by: z.any().nullable().optional(), // FirestoreDocumentReference
|
|
200
|
+
confirmed_at: z.coerce.date().nullable().optional(),
|
|
201
|
+
rejected_by: z.any().nullable().optional(), // FirestoreDocumentReference
|
|
202
|
+
rejected_at: z.coerce.date().nullable().optional(),
|
|
203
|
+
rejection_reason: z.string().nullable().optional(),
|
|
133
204
|
})
|
|
134
205
|
.passthrough();
|
|
135
206
|
|
|
@@ -116,7 +116,11 @@ export declare const zTeleconsultationSchema: z.ZodObject<{
|
|
|
116
116
|
unused_expires_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
117
117
|
reconnect_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
118
118
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
119
|
+
/** Instante em que o encerramento começou (fase 1 marcou `ending`). */
|
|
120
|
+
ending_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
119
121
|
ended_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
122
|
+
/** `true` quando o `ended_at` foi DERIVADO por reparo, não medido. */
|
|
123
|
+
ended_at_derived: z.ZodOptional<z.ZodBoolean>;
|
|
120
124
|
ended_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
121
125
|
type: z.ZodEnum<["user", "system"]>;
|
|
122
126
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -188,7 +192,11 @@ export declare const zTeleconsultationSchema: z.ZodObject<{
|
|
|
188
192
|
unused_expires_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
189
193
|
reconnect_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
190
194
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
195
|
+
/** Instante em que o encerramento começou (fase 1 marcou `ending`). */
|
|
196
|
+
ending_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
191
197
|
ended_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
198
|
+
/** `true` quando o `ended_at` foi DERIVADO por reparo, não medido. */
|
|
199
|
+
ended_at_derived: z.ZodOptional<z.ZodBoolean>;
|
|
192
200
|
ended_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
193
201
|
type: z.ZodEnum<["user", "system"]>;
|
|
194
202
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -260,7 +268,11 @@ export declare const zTeleconsultationSchema: z.ZodObject<{
|
|
|
260
268
|
unused_expires_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
261
269
|
reconnect_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
262
270
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
271
|
+
/** Instante em que o encerramento começou (fase 1 marcou `ending`). */
|
|
272
|
+
ending_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
263
273
|
ended_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
274
|
+
/** `true` quando o `ended_at` foi DERIVADO por reparo, não medido. */
|
|
275
|
+
ended_at_derived: z.ZodOptional<z.ZodBoolean>;
|
|
264
276
|
ended_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
265
277
|
type: z.ZodEnum<["user", "system"]>;
|
|
266
278
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -287,7 +287,11 @@ exports.zTeleconsultationSchema = zod_schemas_1.zFireDocSchema
|
|
|
287
287
|
unused_expires_at: zDate,
|
|
288
288
|
reconnect_until: zDateNullable,
|
|
289
289
|
started_at: zDateNullable,
|
|
290
|
+
/** Instante em que o encerramento começou (fase 1 marcou `ending`). */
|
|
291
|
+
ending_at: zDateNullable,
|
|
290
292
|
ended_at: zDateNullable,
|
|
293
|
+
/** `true` quando o `ended_at` foi DERIVADO por reparo, não medido. */
|
|
294
|
+
ended_at_derived: zod_1.z.boolean().optional(),
|
|
291
295
|
ended_by: exports.zTeleconsultationEndedBySchema.nullable().optional(),
|
|
292
296
|
provider: exports.zTeleconsultationProviderSchema,
|
|
293
297
|
provider_meeting_id: zod_1.z.string().optional(),
|
|
@@ -330,7 +330,11 @@ export const zTeleconsultationSchema = zFireDocSchema
|
|
|
330
330
|
unused_expires_at: zDate,
|
|
331
331
|
reconnect_until: zDateNullable,
|
|
332
332
|
started_at: zDateNullable,
|
|
333
|
+
/** Instante em que o encerramento começou (fase 1 marcou `ending`). */
|
|
334
|
+
ending_at: zDateNullable,
|
|
333
335
|
ended_at: zDateNullable,
|
|
336
|
+
/** `true` quando o `ended_at` foi DERIVADO por reparo, não medido. */
|
|
337
|
+
ended_at_derived: z.boolean().optional(),
|
|
334
338
|
ended_by: zTeleconsultationEndedBySchema.nullable().optional(),
|
|
335
339
|
provider: zTeleconsultationProviderSchema,
|
|
336
340
|
provider_meeting_id: z.string().optional(),
|
|
@@ -91,14 +91,22 @@ export declare const zTenantSchema: z.ZodObject<{
|
|
|
91
91
|
version: z.ZodNumber;
|
|
92
92
|
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
93
93
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
94
|
+
integrations: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
95
|
+
link_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["off", "shadow", "write"]>>>;
|
|
96
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
97
|
+
link_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["off", "shadow", "write"]>>>;
|
|
98
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
99
|
+
link_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["off", "shadow", "write"]>>>;
|
|
100
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
94
101
|
}, "strip", z.ZodTypeAny, {
|
|
95
102
|
name: string;
|
|
96
103
|
id: string;
|
|
104
|
+
status: "draft" | "published" | "archived";
|
|
97
105
|
tenant: string;
|
|
98
106
|
model_ver: number;
|
|
99
107
|
url_alias: string;
|
|
100
|
-
status: "draft" | "published" | "archived";
|
|
101
108
|
ref?: any;
|
|
109
|
+
created_by?: any;
|
|
102
110
|
created_at?: Date | null | undefined;
|
|
103
111
|
updated_at?: Date | null | undefined;
|
|
104
112
|
deleted_at?: Date | null | undefined;
|
|
@@ -108,7 +116,6 @@ export declare const zTenantSchema: z.ZodObject<{
|
|
|
108
116
|
date_format?: string | undefined;
|
|
109
117
|
language?: "ptBR" | "en" | undefined;
|
|
110
118
|
timezone?: string | undefined;
|
|
111
|
-
created_by?: any;
|
|
112
119
|
modules?: Record<string, z.objectOutputType<{
|
|
113
120
|
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
114
121
|
enabled: z.ZodBoolean;
|
|
@@ -121,15 +128,19 @@ export declare const zTenantSchema: z.ZodObject<{
|
|
|
121
128
|
version: z.ZodNumber;
|
|
122
129
|
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
123
130
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
131
|
+
integrations?: z.objectOutputType<{
|
|
132
|
+
link_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["off", "shadow", "write"]>>>;
|
|
133
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
124
134
|
}, {
|
|
125
135
|
name: string;
|
|
126
136
|
id: string;
|
|
137
|
+
status: "draft" | "published" | "archived";
|
|
127
138
|
tenant: string;
|
|
128
139
|
url_alias: string;
|
|
129
|
-
status: "draft" | "published" | "archived";
|
|
130
140
|
ref?: any;
|
|
131
|
-
|
|
141
|
+
created_by?: any;
|
|
132
142
|
created_at?: Date | null | undefined;
|
|
143
|
+
model_ver?: number | undefined;
|
|
133
144
|
updated_at?: Date | null | undefined;
|
|
134
145
|
deleted_at?: Date | null | undefined;
|
|
135
146
|
base_tenant?: string | null | undefined;
|
|
@@ -138,7 +149,6 @@ export declare const zTenantSchema: z.ZodObject<{
|
|
|
138
149
|
date_format?: string | undefined;
|
|
139
150
|
language?: "ptBR" | "en" | undefined;
|
|
140
151
|
timezone?: string | undefined;
|
|
141
|
-
created_by?: any;
|
|
142
152
|
modules?: Record<string, z.objectInputType<{
|
|
143
153
|
status: z.ZodEnum<["active", "trial", "suspended", "cancelled"]>;
|
|
144
154
|
enabled: z.ZodBoolean;
|
|
@@ -151,4 +161,7 @@ export declare const zTenantSchema: z.ZodObject<{
|
|
|
151
161
|
version: z.ZodNumber;
|
|
152
162
|
updated_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
153
163
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
164
|
+
integrations?: z.objectInputType<{
|
|
165
|
+
link_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["off", "shadow", "write"]>>>;
|
|
166
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
154
167
|
}>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
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
|
+
const zod_schemas_2 = require("../evo-integrations/zod-schemas");
|
|
6
7
|
exports.zTenantActionSchema = zod_1.z.enum([
|
|
7
8
|
"CREATE_TENANT",
|
|
8
9
|
"DELETE_TENANT",
|
|
@@ -50,4 +51,6 @@ exports.zTenantSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchem
|
|
|
50
51
|
created_by: zod_1.z.any(),
|
|
51
52
|
// feat-160: chave livre (`telemedicine`, …) → entitlement do módulo.
|
|
52
53
|
modules: zod_1.z.record(zod_1.z.string(), exports.zTenantModuleEntitlementSchema).optional(),
|
|
54
|
+
// feat-193: config de integração do tenant (`link_mode`).
|
|
55
|
+
integrations: zod_schemas_2.zTenantIntegrationsConfigSchema.nullable().optional(),
|
|
53
56
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zFireDocSchema, zFirestoreDateSchema } from "../shared/zod-schemas";
|
|
3
|
+
import { zTenantIntegrationsConfigSchema } from "../evo-integrations/zod-schemas";
|
|
3
4
|
|
|
4
5
|
export const zTenantActionSchema = z.enum([
|
|
5
6
|
"CREATE_TENANT",
|
|
@@ -54,4 +55,6 @@ export const zTenantSchema = zFireDocSchema // Extend from FireDocSchema
|
|
|
54
55
|
created_by: z.any(),
|
|
55
56
|
// feat-160: chave livre (`telemedicine`, …) → entitlement do módulo.
|
|
56
57
|
modules: z.record(z.string(), zTenantModuleEntitlementSchema).optional(),
|
|
58
|
+
// feat-193: config de integração do tenant (`link_mode`).
|
|
59
|
+
integrations: zTenantIntegrationsConfigSchema.nullable().optional(),
|
|
57
60
|
});
|