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
|
@@ -177,21 +177,99 @@ export declare const zLeadSchema: z.ZodObject<{
|
|
|
177
177
|
label: z.ZodOptional<z.ZodString>;
|
|
178
178
|
ref: z.ZodOptional<z.ZodAny>;
|
|
179
179
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
180
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
181
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
182
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
183
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
186
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
187
|
+
}, {
|
|
188
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
189
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
190
|
+
}>>>;
|
|
191
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
192
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
194
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
195
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
196
|
+
last_observed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
197
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
198
|
+
confirmed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
199
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
200
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
201
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
202
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
203
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
204
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
181
205
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
182
206
|
id: z.ZodString;
|
|
183
207
|
label: z.ZodOptional<z.ZodString>;
|
|
184
208
|
ref: z.ZodOptional<z.ZodAny>;
|
|
185
209
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
210
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
211
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
212
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
213
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
216
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
217
|
+
}, {
|
|
218
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
219
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
220
|
+
}>>>;
|
|
221
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
222
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
224
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
225
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
226
|
+
last_observed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
227
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
228
|
+
confirmed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
229
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
230
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
231
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
232
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
233
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
186
234
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
187
235
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
188
236
|
id: z.ZodString;
|
|
189
237
|
label: z.ZodOptional<z.ZodString>;
|
|
190
238
|
ref: z.ZodOptional<z.ZodAny>;
|
|
191
239
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
240
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
241
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
242
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
243
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
246
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
247
|
+
}, {
|
|
248
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
249
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
250
|
+
}>>>;
|
|
251
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
252
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
253
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
254
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
255
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
256
|
+
last_observed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
257
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
258
|
+
confirmed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
259
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
260
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
261
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
262
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
263
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
192
264
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
193
265
|
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
194
266
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
267
|
+
/**
|
|
268
|
+
* feat-193 — derivado de `externalLinks` (links com `status: 'suggested'`),
|
|
269
|
+
* gravado junto com `externalLinkKeys`. AUSENTE = estoque não avaliado
|
|
270
|
+
* ("unknown" na UI), nunca 0.
|
|
271
|
+
*/
|
|
272
|
+
pending_links_count: z.ZodOptional<z.ZodNumber>;
|
|
195
273
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
196
274
|
name: z.ZodString;
|
|
197
275
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -202,14 +280,14 @@ export declare const zLeadSchema: z.ZodObject<{
|
|
|
202
280
|
name: string;
|
|
203
281
|
hidden: boolean;
|
|
204
282
|
base?: boolean | undefined;
|
|
205
|
-
color?: string | undefined;
|
|
206
283
|
category?: string | null | undefined;
|
|
284
|
+
color?: string | undefined;
|
|
207
285
|
}, {
|
|
208
286
|
name: string;
|
|
209
287
|
hidden: boolean;
|
|
210
288
|
base?: boolean | undefined;
|
|
211
|
-
color?: string | undefined;
|
|
212
289
|
category?: string | null | undefined;
|
|
290
|
+
color?: string | undefined;
|
|
213
291
|
}>, "many">>>;
|
|
214
292
|
capture_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
|
|
215
293
|
userRef: z.ZodAny;
|
|
@@ -355,21 +433,99 @@ export declare const zLeadSchema: z.ZodObject<{
|
|
|
355
433
|
label: z.ZodOptional<z.ZodString>;
|
|
356
434
|
ref: z.ZodOptional<z.ZodAny>;
|
|
357
435
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
436
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
437
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
438
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
439
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
|
441
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
442
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
443
|
+
}, {
|
|
444
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
445
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
446
|
+
}>>>;
|
|
447
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
448
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
449
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
450
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
451
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
452
|
+
last_observed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
453
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
454
|
+
confirmed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
455
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
456
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
457
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
458
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
459
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
358
460
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
359
461
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
360
462
|
id: z.ZodString;
|
|
361
463
|
label: z.ZodOptional<z.ZodString>;
|
|
362
464
|
ref: z.ZodOptional<z.ZodAny>;
|
|
363
465
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
466
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
467
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
468
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
469
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
470
|
+
}, "strip", z.ZodTypeAny, {
|
|
471
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
472
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
473
|
+
}, {
|
|
474
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
475
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
476
|
+
}>>>;
|
|
477
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
478
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
479
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
480
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
481
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
482
|
+
last_observed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
483
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
484
|
+
confirmed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
485
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
486
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
487
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
488
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
489
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
364
490
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
365
491
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
366
492
|
id: z.ZodString;
|
|
367
493
|
label: z.ZodOptional<z.ZodString>;
|
|
368
494
|
ref: z.ZodOptional<z.ZodAny>;
|
|
369
495
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
496
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
497
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
498
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
499
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
500
|
+
}, "strip", z.ZodTypeAny, {
|
|
501
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
502
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
503
|
+
}, {
|
|
504
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
505
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
506
|
+
}>>>;
|
|
507
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
508
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
509
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
510
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
511
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
512
|
+
last_observed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
513
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
514
|
+
confirmed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
515
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
516
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
517
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
518
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
519
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
370
520
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
371
521
|
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
372
522
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
523
|
+
/**
|
|
524
|
+
* feat-193 — derivado de `externalLinks` (links com `status: 'suggested'`),
|
|
525
|
+
* gravado junto com `externalLinkKeys`. AUSENTE = estoque não avaliado
|
|
526
|
+
* ("unknown" na UI), nunca 0.
|
|
527
|
+
*/
|
|
528
|
+
pending_links_count: z.ZodOptional<z.ZodNumber>;
|
|
373
529
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
374
530
|
name: z.ZodString;
|
|
375
531
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -380,14 +536,14 @@ export declare const zLeadSchema: z.ZodObject<{
|
|
|
380
536
|
name: string;
|
|
381
537
|
hidden: boolean;
|
|
382
538
|
base?: boolean | undefined;
|
|
383
|
-
color?: string | undefined;
|
|
384
539
|
category?: string | null | undefined;
|
|
540
|
+
color?: string | undefined;
|
|
385
541
|
}, {
|
|
386
542
|
name: string;
|
|
387
543
|
hidden: boolean;
|
|
388
544
|
base?: boolean | undefined;
|
|
389
|
-
color?: string | undefined;
|
|
390
545
|
category?: string | null | undefined;
|
|
546
|
+
color?: string | undefined;
|
|
391
547
|
}>, "many">>>;
|
|
392
548
|
capture_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
|
|
393
549
|
userRef: z.ZodAny;
|
|
@@ -533,21 +689,99 @@ export declare const zLeadSchema: z.ZodObject<{
|
|
|
533
689
|
label: z.ZodOptional<z.ZodString>;
|
|
534
690
|
ref: z.ZodOptional<z.ZodAny>;
|
|
535
691
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
692
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
693
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
694
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
695
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
696
|
+
}, "strip", z.ZodTypeAny, {
|
|
697
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
698
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
699
|
+
}, {
|
|
700
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
701
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
702
|
+
}>>>;
|
|
703
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
704
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
705
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
706
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
707
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
708
|
+
last_observed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
709
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
710
|
+
confirmed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
711
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
712
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
713
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
714
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
715
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
536
716
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
537
717
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
538
718
|
id: z.ZodString;
|
|
539
719
|
label: z.ZodOptional<z.ZodString>;
|
|
540
720
|
ref: z.ZodOptional<z.ZodAny>;
|
|
541
721
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
722
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
723
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
724
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
725
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
726
|
+
}, "strip", z.ZodTypeAny, {
|
|
727
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
728
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
729
|
+
}, {
|
|
730
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
731
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
732
|
+
}>>>;
|
|
733
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
734
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
735
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
736
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
737
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
738
|
+
last_observed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
739
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
740
|
+
confirmed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
741
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
742
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
743
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
744
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
745
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
542
746
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
543
747
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
544
748
|
id: z.ZodString;
|
|
545
749
|
label: z.ZodOptional<z.ZodString>;
|
|
546
750
|
ref: z.ZodOptional<z.ZodAny>;
|
|
547
751
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
752
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
753
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
754
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
755
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
756
|
+
}, "strip", z.ZodTypeAny, {
|
|
757
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
758
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
759
|
+
}, {
|
|
760
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
761
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
762
|
+
}>>>;
|
|
763
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
764
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
765
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
766
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
767
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
768
|
+
last_observed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
769
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
770
|
+
confirmed_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>>;
|
|
771
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
772
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
773
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
774
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
775
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
548
776
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
549
777
|
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
550
778
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
779
|
+
/**
|
|
780
|
+
* feat-193 — derivado de `externalLinks` (links com `status: 'suggested'`),
|
|
781
|
+
* gravado junto com `externalLinkKeys`. AUSENTE = estoque não avaliado
|
|
782
|
+
* ("unknown" na UI), nunca 0.
|
|
783
|
+
*/
|
|
784
|
+
pending_links_count: z.ZodOptional<z.ZodNumber>;
|
|
551
785
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
552
786
|
name: z.ZodString;
|
|
553
787
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -558,14 +792,14 @@ export declare const zLeadSchema: z.ZodObject<{
|
|
|
558
792
|
name: string;
|
|
559
793
|
hidden: boolean;
|
|
560
794
|
base?: boolean | undefined;
|
|
561
|
-
color?: string | undefined;
|
|
562
795
|
category?: string | null | undefined;
|
|
796
|
+
color?: string | undefined;
|
|
563
797
|
}, {
|
|
564
798
|
name: string;
|
|
565
799
|
hidden: boolean;
|
|
566
800
|
base?: boolean | undefined;
|
|
567
|
-
color?: string | undefined;
|
|
568
801
|
category?: string | null | undefined;
|
|
802
|
+
color?: string | undefined;
|
|
569
803
|
}>, "many">>>;
|
|
570
804
|
capture_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
|
|
571
805
|
userRef: z.ZodAny;
|
|
@@ -49,6 +49,12 @@ exports.zLeadSchema = zod_schemas_2.zProfileSchema // Extend from ProfileSchema
|
|
|
49
49
|
externalLinks: zod_1.z.array(zod_schemas_3.zExternalLinkSchema).optional(),
|
|
50
50
|
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
51
51
|
externalLinkKeys: zod_1.z.array(zod_1.z.string()).optional(),
|
|
52
|
+
/**
|
|
53
|
+
* feat-193 — derivado de `externalLinks` (links com `status: 'suggested'`),
|
|
54
|
+
* gravado junto com `externalLinkKeys`. AUSENTE = estoque não avaliado
|
|
55
|
+
* ("unknown" na UI), nunca 0.
|
|
56
|
+
*/
|
|
57
|
+
pending_links_count: zod_1.z.number().int().min(0).optional(),
|
|
52
58
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
53
59
|
capture_data: zod_schemas_1.zCaptureDataMapSchema.nullable().optional(),
|
|
54
60
|
userRef: zod_1.z.any(),
|
|
@@ -56,6 +56,12 @@ export const zLeadSchema = zProfileSchema // Extend from ProfileSchema
|
|
|
56
56
|
externalLinks: z.array(zExternalLinkSchema).optional(),
|
|
57
57
|
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
58
58
|
externalLinkKeys: z.array(z.string()).optional(),
|
|
59
|
+
/**
|
|
60
|
+
* feat-193 — derivado de `externalLinks` (links com `status: 'suggested'`),
|
|
61
|
+
* gravado junto com `externalLinkKeys`. AUSENTE = estoque não avaliado
|
|
62
|
+
* ("unknown" na UI), nunca 0.
|
|
63
|
+
*/
|
|
64
|
+
pending_links_count: z.number().int().min(0).optional(),
|
|
59
65
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
60
66
|
capture_data: zCaptureDataMapSchema.nullable().optional(),
|
|
61
67
|
userRef: z.any(),
|