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
|
@@ -189,14 +189,14 @@ export declare const zProfessionalSchema: z.ZodObject<{
|
|
|
189
189
|
name: string;
|
|
190
190
|
hidden: boolean;
|
|
191
191
|
base?: boolean | undefined;
|
|
192
|
-
color?: string | undefined;
|
|
193
192
|
category?: string | null | undefined;
|
|
193
|
+
color?: string | undefined;
|
|
194
194
|
}, {
|
|
195
195
|
name: string;
|
|
196
196
|
hidden: boolean;
|
|
197
197
|
base?: boolean | undefined;
|
|
198
|
-
color?: string | undefined;
|
|
199
198
|
category?: string | null | undefined;
|
|
199
|
+
color?: string | undefined;
|
|
200
200
|
}>, "many">>>;
|
|
201
201
|
userRef: z.ZodAny;
|
|
202
202
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -343,14 +343,14 @@ export declare const zProfessionalSchema: z.ZodObject<{
|
|
|
343
343
|
name: string;
|
|
344
344
|
hidden: boolean;
|
|
345
345
|
base?: boolean | undefined;
|
|
346
|
-
color?: string | undefined;
|
|
347
346
|
category?: string | null | undefined;
|
|
347
|
+
color?: string | undefined;
|
|
348
348
|
}, {
|
|
349
349
|
name: string;
|
|
350
350
|
hidden: boolean;
|
|
351
351
|
base?: boolean | undefined;
|
|
352
|
-
color?: string | undefined;
|
|
353
352
|
category?: string | null | undefined;
|
|
353
|
+
color?: string | undefined;
|
|
354
354
|
}>, "many">>>;
|
|
355
355
|
userRef: z.ZodAny;
|
|
356
356
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -497,14 +497,14 @@ export declare const zProfessionalSchema: z.ZodObject<{
|
|
|
497
497
|
name: string;
|
|
498
498
|
hidden: boolean;
|
|
499
499
|
base?: boolean | undefined;
|
|
500
|
-
color?: string | undefined;
|
|
501
500
|
category?: string | null | undefined;
|
|
501
|
+
color?: string | undefined;
|
|
502
502
|
}, {
|
|
503
503
|
name: string;
|
|
504
504
|
hidden: boolean;
|
|
505
505
|
base?: boolean | undefined;
|
|
506
|
-
color?: string | undefined;
|
|
507
506
|
category?: string | null | undefined;
|
|
507
|
+
color?: string | undefined;
|
|
508
508
|
}>, "many">>>;
|
|
509
509
|
userRef: z.ZodAny;
|
|
510
510
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -519,15 +519,15 @@ export declare const zPatientAllergySchema: z.ZodObject<{
|
|
|
519
519
|
}, "strip", z.ZodTypeAny, {
|
|
520
520
|
code: string;
|
|
521
521
|
name: string;
|
|
522
|
+
kind: "Other" | "Food" | "Drug" | "Insect" | null;
|
|
522
523
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
523
|
-
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
524
524
|
ref?: any;
|
|
525
525
|
}, {
|
|
526
526
|
code: string;
|
|
527
527
|
name: string;
|
|
528
528
|
ref?: any;
|
|
529
|
+
kind?: "Other" | "Food" | "Drug" | "Insect" | null | undefined;
|
|
529
530
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
530
|
-
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
531
531
|
}>;
|
|
532
532
|
export declare const zPatientChronicConditionSchema: z.ZodObject<{
|
|
533
533
|
code: z.ZodString;
|
|
@@ -619,18 +619,90 @@ export declare const zPatientAttachmentSchema: z.ZodObject<{
|
|
|
619
619
|
label: z.ZodOptional<z.ZodString>;
|
|
620
620
|
ref: z.ZodOptional<z.ZodAny>;
|
|
621
621
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
622
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
623
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
624
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
625
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
628
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
629
|
+
}, {
|
|
630
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
631
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
632
|
+
}>>>;
|
|
633
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
634
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
635
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
636
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
637
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
638
|
+
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"]>>>;
|
|
639
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
640
|
+
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"]>>>;
|
|
641
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
642
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
643
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
644
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
645
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
646
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
623
647
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
624
648
|
id: z.ZodString;
|
|
625
649
|
label: z.ZodOptional<z.ZodString>;
|
|
626
650
|
ref: z.ZodOptional<z.ZodAny>;
|
|
627
651
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
652
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
653
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
654
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
655
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
656
|
+
}, "strip", z.ZodTypeAny, {
|
|
657
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
658
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
659
|
+
}, {
|
|
660
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
661
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
662
|
+
}>>>;
|
|
663
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
664
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
665
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
666
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
667
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
668
|
+
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"]>>>;
|
|
669
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
670
|
+
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"]>>>;
|
|
671
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
672
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
673
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
674
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
675
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
628
676
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
629
677
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
630
678
|
id: z.ZodString;
|
|
631
679
|
label: z.ZodOptional<z.ZodString>;
|
|
632
680
|
ref: z.ZodOptional<z.ZodAny>;
|
|
633
681
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
682
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
683
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
684
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
685
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
686
|
+
}, "strip", z.ZodTypeAny, {
|
|
687
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
688
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
689
|
+
}, {
|
|
690
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
691
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
692
|
+
}>>>;
|
|
693
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
694
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
695
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
696
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
697
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
698
|
+
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"]>>>;
|
|
699
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
700
|
+
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"]>>>;
|
|
701
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
702
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
703
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
704
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
705
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
634
706
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
635
707
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
636
708
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -661,18 +733,90 @@ export declare const zPatientAttachmentSchema: z.ZodObject<{
|
|
|
661
733
|
label: z.ZodOptional<z.ZodString>;
|
|
662
734
|
ref: z.ZodOptional<z.ZodAny>;
|
|
663
735
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
736
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
737
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
738
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
739
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
740
|
+
}, "strip", z.ZodTypeAny, {
|
|
741
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
742
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
743
|
+
}, {
|
|
744
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
745
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
746
|
+
}>>>;
|
|
747
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
748
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
749
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
750
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
751
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
752
|
+
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"]>>>;
|
|
753
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
754
|
+
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"]>>>;
|
|
755
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
756
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
757
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
758
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
759
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
664
760
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
665
761
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
666
762
|
id: z.ZodString;
|
|
667
763
|
label: z.ZodOptional<z.ZodString>;
|
|
668
764
|
ref: z.ZodOptional<z.ZodAny>;
|
|
669
765
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
766
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
767
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
768
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
769
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
770
|
+
}, "strip", z.ZodTypeAny, {
|
|
771
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
772
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
773
|
+
}, {
|
|
774
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
775
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
776
|
+
}>>>;
|
|
777
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
778
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
779
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
780
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
781
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
782
|
+
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"]>>>;
|
|
783
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
784
|
+
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"]>>>;
|
|
785
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
786
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
787
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
788
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
789
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
670
790
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
671
791
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
672
792
|
id: z.ZodString;
|
|
673
793
|
label: z.ZodOptional<z.ZodString>;
|
|
674
794
|
ref: z.ZodOptional<z.ZodAny>;
|
|
675
795
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
796
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
797
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
798
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
799
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
800
|
+
}, "strip", z.ZodTypeAny, {
|
|
801
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
802
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
803
|
+
}, {
|
|
804
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
805
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
806
|
+
}>>>;
|
|
807
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
808
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
809
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
810
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
811
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
812
|
+
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"]>>>;
|
|
813
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
814
|
+
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"]>>>;
|
|
815
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
816
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
817
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
818
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
819
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
676
820
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
677
821
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
678
822
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -703,18 +847,90 @@ export declare const zPatientAttachmentSchema: z.ZodObject<{
|
|
|
703
847
|
label: z.ZodOptional<z.ZodString>;
|
|
704
848
|
ref: z.ZodOptional<z.ZodAny>;
|
|
705
849
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
850
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
851
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
852
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
853
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
854
|
+
}, "strip", z.ZodTypeAny, {
|
|
855
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
856
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
857
|
+
}, {
|
|
858
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
859
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
860
|
+
}>>>;
|
|
861
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
862
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
863
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
864
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
865
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
866
|
+
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"]>>>;
|
|
867
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
868
|
+
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"]>>>;
|
|
869
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
870
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
871
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
872
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
873
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
706
874
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
707
875
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
708
876
|
id: z.ZodString;
|
|
709
877
|
label: z.ZodOptional<z.ZodString>;
|
|
710
878
|
ref: z.ZodOptional<z.ZodAny>;
|
|
711
879
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
880
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
881
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
882
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
883
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
884
|
+
}, "strip", z.ZodTypeAny, {
|
|
885
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
886
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
887
|
+
}, {
|
|
888
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
889
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
890
|
+
}>>>;
|
|
891
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
892
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
893
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
894
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
895
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
896
|
+
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"]>>>;
|
|
897
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
898
|
+
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"]>>>;
|
|
899
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
900
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
901
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
902
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
903
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
712
904
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
713
905
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
714
906
|
id: z.ZodString;
|
|
715
907
|
label: z.ZodOptional<z.ZodString>;
|
|
716
908
|
ref: z.ZodOptional<z.ZodAny>;
|
|
717
909
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
910
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
911
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
912
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
913
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
914
|
+
}, "strip", z.ZodTypeAny, {
|
|
915
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
916
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
917
|
+
}, {
|
|
918
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
919
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
920
|
+
}>>>;
|
|
921
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
922
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
923
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
924
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
925
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
926
|
+
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"]>>>;
|
|
927
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
928
|
+
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"]>>>;
|
|
929
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
930
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
931
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
932
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
933
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
718
934
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
719
935
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
720
936
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -833,21 +1049,99 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
833
1049
|
label: z.ZodOptional<z.ZodString>;
|
|
834
1050
|
ref: z.ZodOptional<z.ZodAny>;
|
|
835
1051
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1052
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1053
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1054
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1055
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1056
|
+
}, "strip", z.ZodTypeAny, {
|
|
1057
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1058
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1059
|
+
}, {
|
|
1060
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1061
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1062
|
+
}>>>;
|
|
1063
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1064
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1065
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1066
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1067
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1068
|
+
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"]>>>;
|
|
1069
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1070
|
+
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"]>>>;
|
|
1071
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1072
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1073
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1074
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1075
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
836
1076
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
837
1077
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
838
1078
|
id: z.ZodString;
|
|
839
1079
|
label: z.ZodOptional<z.ZodString>;
|
|
840
1080
|
ref: z.ZodOptional<z.ZodAny>;
|
|
841
1081
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1082
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1083
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1084
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1085
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1086
|
+
}, "strip", z.ZodTypeAny, {
|
|
1087
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1088
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1089
|
+
}, {
|
|
1090
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1091
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1092
|
+
}>>>;
|
|
1093
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1094
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1095
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1096
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1097
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1098
|
+
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"]>>>;
|
|
1099
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1100
|
+
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"]>>>;
|
|
1101
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1102
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1103
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1104
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1105
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
842
1106
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
843
1107
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
844
1108
|
id: z.ZodString;
|
|
845
1109
|
label: z.ZodOptional<z.ZodString>;
|
|
846
1110
|
ref: z.ZodOptional<z.ZodAny>;
|
|
847
1111
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1112
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1113
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1114
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1115
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1116
|
+
}, "strip", z.ZodTypeAny, {
|
|
1117
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1118
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1119
|
+
}, {
|
|
1120
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1121
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1122
|
+
}>>>;
|
|
1123
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1124
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1125
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1126
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1127
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1128
|
+
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"]>>>;
|
|
1129
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1130
|
+
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"]>>>;
|
|
1131
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1132
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1133
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1134
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1135
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
848
1136
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
849
1137
|
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
850
1138
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1139
|
+
/**
|
|
1140
|
+
* feat-193 — derivado de `externalLinks` (links com `status: 'suggested'`),
|
|
1141
|
+
* gravado junto com `externalLinkKeys`. AUSENTE = estoque não avaliado
|
|
1142
|
+
* ("unknown" na UI), nunca 0.
|
|
1143
|
+
*/
|
|
1144
|
+
pending_links_count: z.ZodOptional<z.ZodNumber>;
|
|
851
1145
|
height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
852
1146
|
weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
853
1147
|
blood_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>, z.ZodEffects<z.ZodLiteral<"unknown">, string, "unknown">]>>>;
|
|
@@ -860,15 +1154,15 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
860
1154
|
}, "strip", z.ZodTypeAny, {
|
|
861
1155
|
code: string;
|
|
862
1156
|
name: string;
|
|
1157
|
+
kind: "Other" | "Food" | "Drug" | "Insect" | null;
|
|
863
1158
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
864
|
-
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
865
1159
|
ref?: any;
|
|
866
1160
|
}, {
|
|
867
1161
|
code: string;
|
|
868
1162
|
name: string;
|
|
869
1163
|
ref?: any;
|
|
1164
|
+
kind?: "Other" | "Food" | "Drug" | "Insect" | null | undefined;
|
|
870
1165
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
871
|
-
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
872
1166
|
}>, "many">>>;
|
|
873
1167
|
chronic_conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
874
1168
|
code: z.ZodString;
|
|
@@ -951,18 +1245,90 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
951
1245
|
label: z.ZodOptional<z.ZodString>;
|
|
952
1246
|
ref: z.ZodOptional<z.ZodAny>;
|
|
953
1247
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1248
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1249
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1250
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1251
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1252
|
+
}, "strip", z.ZodTypeAny, {
|
|
1253
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1254
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1255
|
+
}, {
|
|
1256
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1257
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1258
|
+
}>>>;
|
|
1259
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1260
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1261
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1262
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1263
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1264
|
+
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"]>>>;
|
|
1265
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1266
|
+
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"]>>>;
|
|
1267
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1268
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1269
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1270
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1271
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
954
1272
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
955
1273
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
956
1274
|
id: z.ZodString;
|
|
957
1275
|
label: z.ZodOptional<z.ZodString>;
|
|
958
1276
|
ref: z.ZodOptional<z.ZodAny>;
|
|
959
1277
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1278
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1279
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1280
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1281
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1282
|
+
}, "strip", z.ZodTypeAny, {
|
|
1283
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1284
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1285
|
+
}, {
|
|
1286
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1287
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1288
|
+
}>>>;
|
|
1289
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1290
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1291
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1292
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1293
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1294
|
+
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"]>>>;
|
|
1295
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1296
|
+
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"]>>>;
|
|
1297
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1298
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1299
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1300
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1301
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
960
1302
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
961
1303
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
962
1304
|
id: z.ZodString;
|
|
963
1305
|
label: z.ZodOptional<z.ZodString>;
|
|
964
1306
|
ref: z.ZodOptional<z.ZodAny>;
|
|
965
1307
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1308
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1309
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1310
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1311
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1312
|
+
}, "strip", z.ZodTypeAny, {
|
|
1313
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1314
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1315
|
+
}, {
|
|
1316
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1317
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1318
|
+
}>>>;
|
|
1319
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1320
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1321
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1322
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1323
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1324
|
+
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"]>>>;
|
|
1325
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1326
|
+
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"]>>>;
|
|
1327
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1328
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1329
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1330
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1331
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
966
1332
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
967
1333
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
968
1334
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -993,18 +1359,90 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
993
1359
|
label: z.ZodOptional<z.ZodString>;
|
|
994
1360
|
ref: z.ZodOptional<z.ZodAny>;
|
|
995
1361
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1362
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1363
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1364
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1365
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1366
|
+
}, "strip", z.ZodTypeAny, {
|
|
1367
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1368
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1369
|
+
}, {
|
|
1370
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1371
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1372
|
+
}>>>;
|
|
1373
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1374
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1375
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1376
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1377
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1378
|
+
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"]>>>;
|
|
1379
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1380
|
+
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"]>>>;
|
|
1381
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1382
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1383
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1384
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1385
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
996
1386
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
997
1387
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
998
1388
|
id: z.ZodString;
|
|
999
1389
|
label: z.ZodOptional<z.ZodString>;
|
|
1000
1390
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1001
1391
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1392
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1393
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1394
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1395
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1396
|
+
}, "strip", z.ZodTypeAny, {
|
|
1397
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1398
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1399
|
+
}, {
|
|
1400
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1401
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1402
|
+
}>>>;
|
|
1403
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1404
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1405
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1406
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1407
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1408
|
+
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"]>>>;
|
|
1409
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1410
|
+
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"]>>>;
|
|
1411
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1412
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1413
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1414
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1415
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1002
1416
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1003
1417
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1004
1418
|
id: z.ZodString;
|
|
1005
1419
|
label: z.ZodOptional<z.ZodString>;
|
|
1006
1420
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1007
1421
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1422
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1423
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1424
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1425
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1426
|
+
}, "strip", z.ZodTypeAny, {
|
|
1427
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1428
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1429
|
+
}, {
|
|
1430
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1431
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1432
|
+
}>>>;
|
|
1433
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1434
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1435
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1436
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1437
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1438
|
+
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"]>>>;
|
|
1439
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1440
|
+
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"]>>>;
|
|
1441
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1442
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1443
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1444
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1445
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1008
1446
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1009
1447
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1010
1448
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1035,18 +1473,90 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1035
1473
|
label: z.ZodOptional<z.ZodString>;
|
|
1036
1474
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1037
1475
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1476
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1477
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1478
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1479
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1480
|
+
}, "strip", z.ZodTypeAny, {
|
|
1481
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1482
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1483
|
+
}, {
|
|
1484
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1485
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1486
|
+
}>>>;
|
|
1487
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1488
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1489
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1490
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1491
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1492
|
+
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"]>>>;
|
|
1493
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1494
|
+
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"]>>>;
|
|
1495
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1496
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1497
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1498
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1499
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1038
1500
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1039
1501
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1040
1502
|
id: z.ZodString;
|
|
1041
1503
|
label: z.ZodOptional<z.ZodString>;
|
|
1042
1504
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1043
1505
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1506
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1507
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1508
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1509
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1510
|
+
}, "strip", z.ZodTypeAny, {
|
|
1511
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1512
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1513
|
+
}, {
|
|
1514
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1515
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1516
|
+
}>>>;
|
|
1517
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1518
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1519
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1520
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1521
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1522
|
+
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"]>>>;
|
|
1523
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1524
|
+
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"]>>>;
|
|
1525
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1526
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1527
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1528
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1529
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1044
1530
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1045
1531
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1046
1532
|
id: z.ZodString;
|
|
1047
1533
|
label: z.ZodOptional<z.ZodString>;
|
|
1048
1534
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1049
1535
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1536
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1537
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1538
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1539
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1540
|
+
}, "strip", z.ZodTypeAny, {
|
|
1541
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1542
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1543
|
+
}, {
|
|
1544
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1545
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1546
|
+
}>>>;
|
|
1547
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1548
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1549
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1550
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1551
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1552
|
+
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"]>>>;
|
|
1553
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1554
|
+
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"]>>>;
|
|
1555
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1556
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1557
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1558
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1559
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1050
1560
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1051
1561
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1052
1562
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1073,14 +1583,14 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1073
1583
|
name: string;
|
|
1074
1584
|
hidden: boolean;
|
|
1075
1585
|
base?: boolean | undefined;
|
|
1076
|
-
color?: string | undefined;
|
|
1077
1586
|
category?: string | null | undefined;
|
|
1587
|
+
color?: string | undefined;
|
|
1078
1588
|
}, {
|
|
1079
1589
|
name: string;
|
|
1080
1590
|
hidden: boolean;
|
|
1081
1591
|
base?: boolean | undefined;
|
|
1082
|
-
color?: string | undefined;
|
|
1083
1592
|
category?: string | null | undefined;
|
|
1593
|
+
color?: string | undefined;
|
|
1084
1594
|
}>, "many">>>;
|
|
1085
1595
|
capture_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
|
|
1086
1596
|
userRef: z.ZodAny;
|
|
@@ -1187,21 +1697,99 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1187
1697
|
label: z.ZodOptional<z.ZodString>;
|
|
1188
1698
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1189
1699
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1700
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1701
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1702
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1703
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1704
|
+
}, "strip", z.ZodTypeAny, {
|
|
1705
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1706
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1707
|
+
}, {
|
|
1708
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1709
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1710
|
+
}>>>;
|
|
1711
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1712
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1713
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1714
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1715
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1716
|
+
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"]>>>;
|
|
1717
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1718
|
+
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"]>>>;
|
|
1719
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1720
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1721
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1722
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1723
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1190
1724
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1191
1725
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1192
1726
|
id: z.ZodString;
|
|
1193
1727
|
label: z.ZodOptional<z.ZodString>;
|
|
1194
1728
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1195
1729
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1730
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1731
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1732
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1733
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1734
|
+
}, "strip", z.ZodTypeAny, {
|
|
1735
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1736
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1737
|
+
}, {
|
|
1738
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1739
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1740
|
+
}>>>;
|
|
1741
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1742
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1743
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1744
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1745
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1746
|
+
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"]>>>;
|
|
1747
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1748
|
+
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"]>>>;
|
|
1749
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1750
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1751
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1752
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1753
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1196
1754
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1197
1755
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1198
1756
|
id: z.ZodString;
|
|
1199
1757
|
label: z.ZodOptional<z.ZodString>;
|
|
1200
1758
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1201
1759
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1760
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1761
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1762
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1763
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1764
|
+
}, "strip", z.ZodTypeAny, {
|
|
1765
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1766
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1767
|
+
}, {
|
|
1768
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1769
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1770
|
+
}>>>;
|
|
1771
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1772
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1773
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1774
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1775
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1776
|
+
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"]>>>;
|
|
1777
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1778
|
+
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"]>>>;
|
|
1779
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1780
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1781
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1782
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1783
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1202
1784
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1203
1785
|
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
1204
1786
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1787
|
+
/**
|
|
1788
|
+
* feat-193 — derivado de `externalLinks` (links com `status: 'suggested'`),
|
|
1789
|
+
* gravado junto com `externalLinkKeys`. AUSENTE = estoque não avaliado
|
|
1790
|
+
* ("unknown" na UI), nunca 0.
|
|
1791
|
+
*/
|
|
1792
|
+
pending_links_count: z.ZodOptional<z.ZodNumber>;
|
|
1205
1793
|
height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1206
1794
|
weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1207
1795
|
blood_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>, z.ZodEffects<z.ZodLiteral<"unknown">, string, "unknown">]>>>;
|
|
@@ -1214,15 +1802,15 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1214
1802
|
}, "strip", z.ZodTypeAny, {
|
|
1215
1803
|
code: string;
|
|
1216
1804
|
name: string;
|
|
1805
|
+
kind: "Other" | "Food" | "Drug" | "Insect" | null;
|
|
1217
1806
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
1218
|
-
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
1219
1807
|
ref?: any;
|
|
1220
1808
|
}, {
|
|
1221
1809
|
code: string;
|
|
1222
1810
|
name: string;
|
|
1223
1811
|
ref?: any;
|
|
1812
|
+
kind?: "Other" | "Food" | "Drug" | "Insect" | null | undefined;
|
|
1224
1813
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
1225
|
-
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
1226
1814
|
}>, "many">>>;
|
|
1227
1815
|
chronic_conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1228
1816
|
code: z.ZodString;
|
|
@@ -1305,18 +1893,90 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1305
1893
|
label: z.ZodOptional<z.ZodString>;
|
|
1306
1894
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1307
1895
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1896
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1897
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1898
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1899
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1900
|
+
}, "strip", z.ZodTypeAny, {
|
|
1901
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1902
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1903
|
+
}, {
|
|
1904
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1905
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1906
|
+
}>>>;
|
|
1907
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1908
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1909
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1910
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1911
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1912
|
+
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"]>>>;
|
|
1913
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1914
|
+
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"]>>>;
|
|
1915
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1916
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1917
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1918
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1919
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1308
1920
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1309
1921
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1310
1922
|
id: z.ZodString;
|
|
1311
1923
|
label: z.ZodOptional<z.ZodString>;
|
|
1312
1924
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1313
1925
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1926
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1927
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1928
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1929
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1930
|
+
}, "strip", z.ZodTypeAny, {
|
|
1931
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1932
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1933
|
+
}, {
|
|
1934
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1935
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1936
|
+
}>>>;
|
|
1937
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1938
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1939
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1940
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1941
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1942
|
+
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"]>>>;
|
|
1943
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1944
|
+
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"]>>>;
|
|
1945
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1946
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1947
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1948
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1949
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1314
1950
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1315
1951
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1316
1952
|
id: z.ZodString;
|
|
1317
1953
|
label: z.ZodOptional<z.ZodString>;
|
|
1318
1954
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1319
1955
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
1956
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
1957
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1958
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
1959
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
1960
|
+
}, "strip", z.ZodTypeAny, {
|
|
1961
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1962
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1963
|
+
}, {
|
|
1964
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
1965
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
1966
|
+
}>>>;
|
|
1967
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1968
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1969
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
1970
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1971
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1972
|
+
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"]>>>;
|
|
1973
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1974
|
+
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"]>>>;
|
|
1975
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1976
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1977
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1978
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1979
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1320
1980
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1321
1981
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1322
1982
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1347,18 +2007,90 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1347
2007
|
label: z.ZodOptional<z.ZodString>;
|
|
1348
2008
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1349
2009
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2010
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2011
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2012
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2013
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2014
|
+
}, "strip", z.ZodTypeAny, {
|
|
2015
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2016
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2017
|
+
}, {
|
|
2018
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2019
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2020
|
+
}>>>;
|
|
2021
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2022
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2023
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2024
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2025
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2026
|
+
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"]>>>;
|
|
2027
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2028
|
+
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"]>>>;
|
|
2029
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2030
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2031
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2032
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2033
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1350
2034
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1351
2035
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1352
2036
|
id: z.ZodString;
|
|
1353
2037
|
label: z.ZodOptional<z.ZodString>;
|
|
1354
2038
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1355
2039
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2040
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2041
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2042
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2043
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2044
|
+
}, "strip", z.ZodTypeAny, {
|
|
2045
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2046
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2047
|
+
}, {
|
|
2048
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2049
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2050
|
+
}>>>;
|
|
2051
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2052
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2053
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2054
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2055
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2056
|
+
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"]>>>;
|
|
2057
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2058
|
+
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"]>>>;
|
|
2059
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2060
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2061
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2062
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2063
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1356
2064
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1357
2065
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1358
2066
|
id: z.ZodString;
|
|
1359
2067
|
label: z.ZodOptional<z.ZodString>;
|
|
1360
2068
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1361
2069
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2070
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2071
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2072
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2073
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2074
|
+
}, "strip", z.ZodTypeAny, {
|
|
2075
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2076
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2077
|
+
}, {
|
|
2078
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2079
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2080
|
+
}>>>;
|
|
2081
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2082
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2083
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2084
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2085
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2086
|
+
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"]>>>;
|
|
2087
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2088
|
+
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"]>>>;
|
|
2089
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2090
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2091
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2092
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2093
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1362
2094
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1363
2095
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1364
2096
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1389,18 +2121,90 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1389
2121
|
label: z.ZodOptional<z.ZodString>;
|
|
1390
2122
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1391
2123
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2124
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2125
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2126
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2127
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2128
|
+
}, "strip", z.ZodTypeAny, {
|
|
2129
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2130
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2131
|
+
}, {
|
|
2132
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2133
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2134
|
+
}>>>;
|
|
2135
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2136
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2137
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2138
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2139
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2140
|
+
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"]>>>;
|
|
2141
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2142
|
+
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"]>>>;
|
|
2143
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2144
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2145
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2146
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2147
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1392
2148
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1393
2149
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1394
2150
|
id: z.ZodString;
|
|
1395
2151
|
label: z.ZodOptional<z.ZodString>;
|
|
1396
2152
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1397
2153
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2154
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2155
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2156
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2157
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2158
|
+
}, "strip", z.ZodTypeAny, {
|
|
2159
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2160
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2161
|
+
}, {
|
|
2162
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2163
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2164
|
+
}>>>;
|
|
2165
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2166
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2167
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2168
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2169
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2170
|
+
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"]>>>;
|
|
2171
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2172
|
+
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"]>>>;
|
|
2173
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2174
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2175
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2176
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2177
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1398
2178
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1399
2179
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1400
2180
|
id: z.ZodString;
|
|
1401
2181
|
label: z.ZodOptional<z.ZodString>;
|
|
1402
2182
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1403
2183
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2184
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2185
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2186
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2187
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2188
|
+
}, "strip", z.ZodTypeAny, {
|
|
2189
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2190
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2191
|
+
}, {
|
|
2192
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2193
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2194
|
+
}>>>;
|
|
2195
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2196
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2197
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2198
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2199
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2200
|
+
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"]>>>;
|
|
2201
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2202
|
+
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"]>>>;
|
|
2203
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2204
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2205
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2206
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2207
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1404
2208
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1405
2209
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1406
2210
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1427,14 +2231,14 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1427
2231
|
name: string;
|
|
1428
2232
|
hidden: boolean;
|
|
1429
2233
|
base?: boolean | undefined;
|
|
1430
|
-
color?: string | undefined;
|
|
1431
2234
|
category?: string | null | undefined;
|
|
2235
|
+
color?: string | undefined;
|
|
1432
2236
|
}, {
|
|
1433
2237
|
name: string;
|
|
1434
2238
|
hidden: boolean;
|
|
1435
2239
|
base?: boolean | undefined;
|
|
1436
|
-
color?: string | undefined;
|
|
1437
2240
|
category?: string | null | undefined;
|
|
2241
|
+
color?: string | undefined;
|
|
1438
2242
|
}>, "many">>>;
|
|
1439
2243
|
capture_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
|
|
1440
2244
|
userRef: z.ZodAny;
|
|
@@ -1541,21 +2345,99 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1541
2345
|
label: z.ZodOptional<z.ZodString>;
|
|
1542
2346
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1543
2347
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2348
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2349
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2350
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2351
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2352
|
+
}, "strip", z.ZodTypeAny, {
|
|
2353
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2354
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2355
|
+
}, {
|
|
2356
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2357
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2358
|
+
}>>>;
|
|
2359
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2360
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2361
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2362
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2363
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2364
|
+
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"]>>>;
|
|
2365
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2366
|
+
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"]>>>;
|
|
2367
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2368
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2369
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2370
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2371
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1544
2372
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1545
2373
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1546
2374
|
id: z.ZodString;
|
|
1547
2375
|
label: z.ZodOptional<z.ZodString>;
|
|
1548
2376
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1549
2377
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2378
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2379
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2380
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2381
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2382
|
+
}, "strip", z.ZodTypeAny, {
|
|
2383
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2384
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2385
|
+
}, {
|
|
2386
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2387
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2388
|
+
}>>>;
|
|
2389
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2390
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2391
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2392
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2393
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2394
|
+
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"]>>>;
|
|
2395
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2396
|
+
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"]>>>;
|
|
2397
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2398
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2399
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2400
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2401
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1550
2402
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1551
2403
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1552
2404
|
id: z.ZodString;
|
|
1553
2405
|
label: z.ZodOptional<z.ZodString>;
|
|
1554
2406
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1555
2407
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2408
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2409
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2410
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2411
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2412
|
+
}, "strip", z.ZodTypeAny, {
|
|
2413
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2414
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2415
|
+
}, {
|
|
2416
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2417
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2418
|
+
}>>>;
|
|
2419
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2420
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2421
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2422
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2423
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2424
|
+
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"]>>>;
|
|
2425
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2426
|
+
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"]>>>;
|
|
2427
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2428
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2429
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2430
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2431
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1556
2432
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1557
2433
|
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
1558
2434
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2435
|
+
/**
|
|
2436
|
+
* feat-193 — derivado de `externalLinks` (links com `status: 'suggested'`),
|
|
2437
|
+
* gravado junto com `externalLinkKeys`. AUSENTE = estoque não avaliado
|
|
2438
|
+
* ("unknown" na UI), nunca 0.
|
|
2439
|
+
*/
|
|
2440
|
+
pending_links_count: z.ZodOptional<z.ZodNumber>;
|
|
1559
2441
|
height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1560
2442
|
weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1561
2443
|
blood_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>, z.ZodEffects<z.ZodLiteral<"unknown">, string, "unknown">]>>>;
|
|
@@ -1568,15 +2450,15 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1568
2450
|
}, "strip", z.ZodTypeAny, {
|
|
1569
2451
|
code: string;
|
|
1570
2452
|
name: string;
|
|
2453
|
+
kind: "Other" | "Food" | "Drug" | "Insect" | null;
|
|
1571
2454
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
1572
|
-
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
1573
2455
|
ref?: any;
|
|
1574
2456
|
}, {
|
|
1575
2457
|
code: string;
|
|
1576
2458
|
name: string;
|
|
1577
2459
|
ref?: any;
|
|
2460
|
+
kind?: "Other" | "Food" | "Drug" | "Insect" | null | undefined;
|
|
1578
2461
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
1579
|
-
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
1580
2462
|
}>, "many">>>;
|
|
1581
2463
|
chronic_conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1582
2464
|
code: z.ZodString;
|
|
@@ -1659,18 +2541,90 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1659
2541
|
label: z.ZodOptional<z.ZodString>;
|
|
1660
2542
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1661
2543
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2544
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2545
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2546
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2547
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2548
|
+
}, "strip", z.ZodTypeAny, {
|
|
2549
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2550
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2551
|
+
}, {
|
|
2552
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2553
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2554
|
+
}>>>;
|
|
2555
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2556
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2557
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2558
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2559
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2560
|
+
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"]>>>;
|
|
2561
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2562
|
+
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"]>>>;
|
|
2563
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2564
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2565
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2566
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2567
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1662
2568
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1663
2569
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1664
2570
|
id: z.ZodString;
|
|
1665
2571
|
label: z.ZodOptional<z.ZodString>;
|
|
1666
2572
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1667
2573
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2574
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2575
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2576
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2577
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2578
|
+
}, "strip", z.ZodTypeAny, {
|
|
2579
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2580
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2581
|
+
}, {
|
|
2582
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2583
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2584
|
+
}>>>;
|
|
2585
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2586
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2587
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2588
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2589
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2590
|
+
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"]>>>;
|
|
2591
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2592
|
+
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"]>>>;
|
|
2593
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2594
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2595
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2596
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2597
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1668
2598
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1669
2599
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1670
2600
|
id: z.ZodString;
|
|
1671
2601
|
label: z.ZodOptional<z.ZodString>;
|
|
1672
2602
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1673
2603
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2604
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2605
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2606
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2607
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2608
|
+
}, "strip", z.ZodTypeAny, {
|
|
2609
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2610
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2611
|
+
}, {
|
|
2612
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2613
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2614
|
+
}>>>;
|
|
2615
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2616
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2617
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2618
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2619
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2620
|
+
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"]>>>;
|
|
2621
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2622
|
+
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"]>>>;
|
|
2623
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2624
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2625
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2626
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2627
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1674
2628
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1675
2629
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1676
2630
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1701,18 +2655,90 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1701
2655
|
label: z.ZodOptional<z.ZodString>;
|
|
1702
2656
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1703
2657
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2658
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2659
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2660
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2661
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2662
|
+
}, "strip", z.ZodTypeAny, {
|
|
2663
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2664
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2665
|
+
}, {
|
|
2666
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2667
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2668
|
+
}>>>;
|
|
2669
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2670
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2671
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2672
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2673
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2674
|
+
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"]>>>;
|
|
2675
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2676
|
+
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"]>>>;
|
|
2677
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2678
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2679
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2680
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2681
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1704
2682
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1705
2683
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1706
2684
|
id: z.ZodString;
|
|
1707
2685
|
label: z.ZodOptional<z.ZodString>;
|
|
1708
2686
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1709
2687
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2688
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2689
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2690
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2691
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2692
|
+
}, "strip", z.ZodTypeAny, {
|
|
2693
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2694
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2695
|
+
}, {
|
|
2696
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2697
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2698
|
+
}>>>;
|
|
2699
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2700
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2701
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2702
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2703
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2704
|
+
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"]>>>;
|
|
2705
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2706
|
+
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"]>>>;
|
|
2707
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2708
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2709
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2710
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2711
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1710
2712
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1711
2713
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1712
2714
|
id: z.ZodString;
|
|
1713
2715
|
label: z.ZodOptional<z.ZodString>;
|
|
1714
2716
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1715
2717
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2718
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2719
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2720
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2721
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2722
|
+
}, "strip", z.ZodTypeAny, {
|
|
2723
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2724
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2725
|
+
}, {
|
|
2726
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2727
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2728
|
+
}>>>;
|
|
2729
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2730
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2731
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2732
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2733
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2734
|
+
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"]>>>;
|
|
2735
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2736
|
+
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"]>>>;
|
|
2737
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2738
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2739
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2740
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2741
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1716
2742
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1717
2743
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1718
2744
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1743,18 +2769,90 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1743
2769
|
label: z.ZodOptional<z.ZodString>;
|
|
1744
2770
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1745
2771
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2772
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2773
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2774
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2775
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2776
|
+
}, "strip", z.ZodTypeAny, {
|
|
2777
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2778
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2779
|
+
}, {
|
|
2780
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2781
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2782
|
+
}>>>;
|
|
2783
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2784
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2785
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2786
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2787
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2788
|
+
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"]>>>;
|
|
2789
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2790
|
+
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"]>>>;
|
|
2791
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2792
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2793
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2794
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2795
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1746
2796
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1747
2797
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1748
2798
|
id: z.ZodString;
|
|
1749
2799
|
label: z.ZodOptional<z.ZodString>;
|
|
1750
2800
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1751
2801
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2802
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2803
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2804
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2805
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2806
|
+
}, "strip", z.ZodTypeAny, {
|
|
2807
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2808
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2809
|
+
}, {
|
|
2810
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2811
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2812
|
+
}>>>;
|
|
2813
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2814
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2815
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2816
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2817
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2818
|
+
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"]>>>;
|
|
2819
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2820
|
+
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"]>>>;
|
|
2821
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2822
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2823
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2824
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2825
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1752
2826
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1753
2827
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer", "teleconsultation"]>;
|
|
1754
2828
|
id: z.ZodString;
|
|
1755
2829
|
label: z.ZodOptional<z.ZodString>;
|
|
1756
2830
|
ref: z.ZodOptional<z.ZodAny>;
|
|
1757
2831
|
owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
|
|
2832
|
+
kind: z.ZodOptional<z.ZodEnum<["identity", "representation"]>>;
|
|
2833
|
+
relation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2834
|
+
pair: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
2835
|
+
other_role: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
2836
|
+
}, "strip", z.ZodTypeAny, {
|
|
2837
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2838
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2839
|
+
}, {
|
|
2840
|
+
pair: "parent_child" | "spouse" | "guardian_dependent" | "family" | "company_employee" | "third_party_company" | "other";
|
|
2841
|
+
other_role: "spouse" | "family" | "other" | "parent" | "child" | "guardian" | "dependent" | "company" | "employee" | "third_party" | "represented";
|
|
2842
|
+
}>>>;
|
|
2843
|
+
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
2844
|
+
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2845
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy"]>>;
|
|
2846
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2847
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2848
|
+
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"]>>>;
|
|
2849
|
+
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2850
|
+
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"]>>>;
|
|
2851
|
+
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2852
|
+
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2853
|
+
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2854
|
+
rejected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2855
|
+
rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1758
2856
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1759
2857
|
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1760
2858
|
uploadedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1781,14 +2879,14 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1781
2879
|
name: string;
|
|
1782
2880
|
hidden: boolean;
|
|
1783
2881
|
base?: boolean | undefined;
|
|
1784
|
-
color?: string | undefined;
|
|
1785
2882
|
category?: string | null | undefined;
|
|
2883
|
+
color?: string | undefined;
|
|
1786
2884
|
}, {
|
|
1787
2885
|
name: string;
|
|
1788
2886
|
hidden: boolean;
|
|
1789
2887
|
base?: boolean | undefined;
|
|
1790
|
-
color?: string | undefined;
|
|
1791
2888
|
category?: string | null | undefined;
|
|
2889
|
+
color?: string | undefined;
|
|
1792
2890
|
}>, "many">>>;
|
|
1793
2891
|
capture_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
|
|
1794
2892
|
userRef: z.ZodAny;
|