evo360-types 1.3.444 → 1.3.446
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.
|
@@ -791,8 +791,39 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
791
791
|
instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
792
792
|
instagram_username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
793
793
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
794
|
+
/**
|
|
795
|
+
* @deprecated Vínculo escalar com o lead. Não representa o caso real de um
|
|
796
|
+
* lead com VÁRIOS pacientes (ex.: mãe que agenda para a família inteira).
|
|
797
|
+
* Substituído por `externalLinks` com `{ type: 'crm_lead', id }`, que é N↔N.
|
|
798
|
+
* Mantido em escrita dupla enquanto houver leitores (getLeadContext, filtro
|
|
799
|
+
* `lead_id` do índice Algolia, sidebar do Omni). feat-095.
|
|
800
|
+
*/
|
|
794
801
|
lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
802
|
+
/** @deprecated Ver `lead_id` — mesma migração para `externalLinks`. feat-095. */
|
|
795
803
|
chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
804
|
+
/**
|
|
805
|
+
* Vínculos com outros objetos do sistema (`crm_lead`, `med_appointment`, …).
|
|
806
|
+
* Mecanismo transversal e N↔N — um paciente pode responder a vários leads e
|
|
807
|
+
* um lead pode ter vários pacientes. feat-095.
|
|
808
|
+
*/
|
|
809
|
+
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
810
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign"]>;
|
|
811
|
+
id: z.ZodString;
|
|
812
|
+
label: z.ZodOptional<z.ZodString>;
|
|
813
|
+
ref: z.ZodOptional<z.ZodAny>;
|
|
814
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
815
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign"]>;
|
|
816
|
+
id: z.ZodString;
|
|
817
|
+
label: z.ZodOptional<z.ZodString>;
|
|
818
|
+
ref: z.ZodOptional<z.ZodAny>;
|
|
819
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
820
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign"]>;
|
|
821
|
+
id: z.ZodString;
|
|
822
|
+
label: z.ZodOptional<z.ZodString>;
|
|
823
|
+
ref: z.ZodOptional<z.ZodAny>;
|
|
824
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
825
|
+
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
826
|
+
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
796
827
|
height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
797
828
|
weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
798
829
|
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">]>>>;
|
|
@@ -1098,8 +1129,39 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1098
1129
|
instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1099
1130
|
instagram_username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1100
1131
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1132
|
+
/**
|
|
1133
|
+
* @deprecated Vínculo escalar com o lead. Não representa o caso real de um
|
|
1134
|
+
* lead com VÁRIOS pacientes (ex.: mãe que agenda para a família inteira).
|
|
1135
|
+
* Substituído por `externalLinks` com `{ type: 'crm_lead', id }`, que é N↔N.
|
|
1136
|
+
* Mantido em escrita dupla enquanto houver leitores (getLeadContext, filtro
|
|
1137
|
+
* `lead_id` do índice Algolia, sidebar do Omni). feat-095.
|
|
1138
|
+
*/
|
|
1101
1139
|
lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1140
|
+
/** @deprecated Ver `lead_id` — mesma migração para `externalLinks`. feat-095. */
|
|
1102
1141
|
chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Vínculos com outros objetos do sistema (`crm_lead`, `med_appointment`, …).
|
|
1144
|
+
* Mecanismo transversal e N↔N — um paciente pode responder a vários leads e
|
|
1145
|
+
* um lead pode ter vários pacientes. feat-095.
|
|
1146
|
+
*/
|
|
1147
|
+
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1148
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign"]>;
|
|
1149
|
+
id: z.ZodString;
|
|
1150
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1151
|
+
ref: z.ZodOptional<z.ZodAny>;
|
|
1152
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1153
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign"]>;
|
|
1154
|
+
id: z.ZodString;
|
|
1155
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
ref: z.ZodOptional<z.ZodAny>;
|
|
1157
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1158
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign"]>;
|
|
1159
|
+
id: z.ZodString;
|
|
1160
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1161
|
+
ref: z.ZodOptional<z.ZodAny>;
|
|
1162
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1163
|
+
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
1164
|
+
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1103
1165
|
height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1104
1166
|
weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1105
1167
|
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">]>>>;
|
|
@@ -1405,8 +1467,39 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1405
1467
|
instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1406
1468
|
instagram_username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1407
1469
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1470
|
+
/**
|
|
1471
|
+
* @deprecated Vínculo escalar com o lead. Não representa o caso real de um
|
|
1472
|
+
* lead com VÁRIOS pacientes (ex.: mãe que agenda para a família inteira).
|
|
1473
|
+
* Substituído por `externalLinks` com `{ type: 'crm_lead', id }`, que é N↔N.
|
|
1474
|
+
* Mantido em escrita dupla enquanto houver leitores (getLeadContext, filtro
|
|
1475
|
+
* `lead_id` do índice Algolia, sidebar do Omni). feat-095.
|
|
1476
|
+
*/
|
|
1408
1477
|
lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1478
|
+
/** @deprecated Ver `lead_id` — mesma migração para `externalLinks`. feat-095. */
|
|
1409
1479
|
chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1480
|
+
/**
|
|
1481
|
+
* Vínculos com outros objetos do sistema (`crm_lead`, `med_appointment`, …).
|
|
1482
|
+
* Mecanismo transversal e N↔N — um paciente pode responder a vários leads e
|
|
1483
|
+
* um lead pode ter vários pacientes. feat-095.
|
|
1484
|
+
*/
|
|
1485
|
+
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1486
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign"]>;
|
|
1487
|
+
id: z.ZodString;
|
|
1488
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1489
|
+
ref: z.ZodOptional<z.ZodAny>;
|
|
1490
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1491
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign"]>;
|
|
1492
|
+
id: z.ZodString;
|
|
1493
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1494
|
+
ref: z.ZodOptional<z.ZodAny>;
|
|
1495
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1496
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign"]>;
|
|
1497
|
+
id: z.ZodString;
|
|
1498
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1499
|
+
ref: z.ZodOptional<z.ZodAny>;
|
|
1500
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1501
|
+
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
1502
|
+
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1410
1503
|
height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1411
1504
|
weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1412
1505
|
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">]>>>;
|
|
@@ -125,8 +125,24 @@ exports.zPatientSchema = zod_schemas_4.zProfileSchema // Extend from ProfileSche
|
|
|
125
125
|
sourceRef: zod_1.z.any().optional(),
|
|
126
126
|
address: zod_schemas_2.zAddressSchema.nullable().optional(),
|
|
127
127
|
contact: zod_schemas_2.zContactSchema.nullable().optional(),
|
|
128
|
+
/**
|
|
129
|
+
* @deprecated Vínculo escalar com o lead. Não representa o caso real de um
|
|
130
|
+
* lead com VÁRIOS pacientes (ex.: mãe que agenda para a família inteira).
|
|
131
|
+
* Substituído por `externalLinks` com `{ type: 'crm_lead', id }`, que é N↔N.
|
|
132
|
+
* Mantido em escrita dupla enquanto houver leitores (getLeadContext, filtro
|
|
133
|
+
* `lead_id` do índice Algolia, sidebar do Omni). feat-095.
|
|
134
|
+
*/
|
|
128
135
|
lead_id: zod_1.z.string().nullable().optional(),
|
|
136
|
+
/** @deprecated Ver `lead_id` — mesma migração para `externalLinks`. feat-095. */
|
|
129
137
|
chat_contact_id: zod_1.z.string().or(zod_1.z.number()).nullable().optional(),
|
|
138
|
+
/**
|
|
139
|
+
* Vínculos com outros objetos do sistema (`crm_lead`, `med_appointment`, …).
|
|
140
|
+
* Mecanismo transversal e N↔N — um paciente pode responder a vários leads e
|
|
141
|
+
* um lead pode ter vários pacientes. feat-095.
|
|
142
|
+
*/
|
|
143
|
+
externalLinks: zod_1.z.array(zod_schemas_3.zExternalLinkSchema).optional(),
|
|
144
|
+
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
145
|
+
externalLinkKeys: zod_1.z.array(zod_1.z.string()).optional(),
|
|
130
146
|
height_cm: zod_1.z.number().nullable().optional(),
|
|
131
147
|
weight_kg: zod_1.z.number().nullable().optional(),
|
|
132
148
|
blood_type: exports.zBloodTypeSchema.nullable().optional(),
|
|
@@ -146,8 +146,24 @@ export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
|
|
|
146
146
|
sourceRef: z.any().optional(),
|
|
147
147
|
address: zAddressSchema.nullable().optional(),
|
|
148
148
|
contact: zContactSchema.nullable().optional(),
|
|
149
|
+
/**
|
|
150
|
+
* @deprecated Vínculo escalar com o lead. Não representa o caso real de um
|
|
151
|
+
* lead com VÁRIOS pacientes (ex.: mãe que agenda para a família inteira).
|
|
152
|
+
* Substituído por `externalLinks` com `{ type: 'crm_lead', id }`, que é N↔N.
|
|
153
|
+
* Mantido em escrita dupla enquanto houver leitores (getLeadContext, filtro
|
|
154
|
+
* `lead_id` do índice Algolia, sidebar do Omni). feat-095.
|
|
155
|
+
*/
|
|
149
156
|
lead_id: z.string().nullable().optional(),
|
|
157
|
+
/** @deprecated Ver `lead_id` — mesma migração para `externalLinks`. feat-095. */
|
|
150
158
|
chat_contact_id: z.string().or(z.number()).nullable().optional(),
|
|
159
|
+
/**
|
|
160
|
+
* Vínculos com outros objetos do sistema (`crm_lead`, `med_appointment`, …).
|
|
161
|
+
* Mecanismo transversal e N↔N — um paciente pode responder a vários leads e
|
|
162
|
+
* um lead pode ter vários pacientes. feat-095.
|
|
163
|
+
*/
|
|
164
|
+
externalLinks: z.array(zExternalLinkSchema).optional(),
|
|
165
|
+
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
166
|
+
externalLinkKeys: z.array(z.string()).optional(),
|
|
151
167
|
height_cm: z.number().nullable().optional(),
|
|
152
168
|
weight_kg: z.number().nullable().optional(),
|
|
153
169
|
blood_type: zBloodTypeSchema.nullable().optional(),
|
|
@@ -157,8 +157,23 @@ export interface IPatient extends IProfile {
|
|
|
157
157
|
sourceRef?: FirestoreDocumentReference;
|
|
158
158
|
address?: IAddress | null;
|
|
159
159
|
contact?: IContact | null;
|
|
160
|
+
/**
|
|
161
|
+
* @deprecated Vínculo escalar com o lead — não representa um lead com VÁRIOS
|
|
162
|
+
* pacientes (ex.: mãe que agenda para a família inteira). Use `externalLinks`
|
|
163
|
+
* com `{ type: 'crm_lead', id }`. Mantido em escrita dupla enquanto houver
|
|
164
|
+
* leitores (getLeadContext, filtro `lead_id` do índice Algolia). feat-095.
|
|
165
|
+
*/
|
|
160
166
|
lead_id?: string | null;
|
|
167
|
+
/** @deprecated Ver `lead_id` — mesma migração para `externalLinks`. feat-095. */
|
|
161
168
|
chat_contact_id?: string | number | null;
|
|
169
|
+
/**
|
|
170
|
+
* Vínculos com outros objetos do sistema (`crm_lead`, `med_appointment`, …).
|
|
171
|
+
* Transversal e N↔N: um paciente pode responder a vários leads e um lead pode
|
|
172
|
+
* ter vários pacientes. feat-095.
|
|
173
|
+
*/
|
|
174
|
+
externalLinks?: IExternalLink[];
|
|
175
|
+
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
176
|
+
externalLinkKeys?: string[];
|
|
162
177
|
height_cm?: number | null;
|
|
163
178
|
weight_kg?: number | null;
|
|
164
179
|
blood_type?: BloodType | null;
|
|
@@ -220,8 +220,23 @@ export interface IPatient extends IProfile {
|
|
|
220
220
|
sourceRef?: FirestoreDocumentReference;
|
|
221
221
|
address?: IAddress | null;
|
|
222
222
|
contact?: IContact | null;
|
|
223
|
+
/**
|
|
224
|
+
* @deprecated Vínculo escalar com o lead — não representa um lead com VÁRIOS
|
|
225
|
+
* pacientes (ex.: mãe que agenda para a família inteira). Use `externalLinks`
|
|
226
|
+
* com `{ type: 'crm_lead', id }`. Mantido em escrita dupla enquanto houver
|
|
227
|
+
* leitores (getLeadContext, filtro `lead_id` do índice Algolia). feat-095.
|
|
228
|
+
*/
|
|
223
229
|
lead_id?: string | null;
|
|
230
|
+
/** @deprecated Ver `lead_id` — mesma migração para `externalLinks`. feat-095. */
|
|
224
231
|
chat_contact_id?: string | number | null;
|
|
232
|
+
/**
|
|
233
|
+
* Vínculos com outros objetos do sistema (`crm_lead`, `med_appointment`, …).
|
|
234
|
+
* Transversal e N↔N: um paciente pode responder a vários leads e um lead pode
|
|
235
|
+
* ter vários pacientes. feat-095.
|
|
236
|
+
*/
|
|
237
|
+
externalLinks?: IExternalLink[];
|
|
238
|
+
/** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
|
|
239
|
+
externalLinkKeys?: string[];
|
|
225
240
|
//informações médicas
|
|
226
241
|
height_cm?: number | null; // Altura em centímetros
|
|
227
242
|
weight_kg?: number | null; // Peso em kg
|