evo360-types 1.3.139 → 1.3.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps/evo-crm/lead/zod-schemas.js +2 -2
- package/dist/apps/evo-crm/lead/zod-schemas.ts +2 -2
- package/dist/apps/evo-med/people/zod-schemas.js +2 -2
- package/dist/apps/evo-med/people/zod-schemas.ts +2 -2
- package/dist/types/evo-crm/lead/index.d.ts +2 -2
- package/dist/types/evo-crm/lead/index.ts +2 -2
- package/package.json +1 -1
|
@@ -11,13 +11,13 @@ exports.zLeadQualificationSchema = zod_1.z.object({
|
|
|
11
11
|
name: zod_1.z.string().min(1).max(255),
|
|
12
12
|
funnelLevel: zod_schemas_3.zQualificationFunnelLevelSchema,
|
|
13
13
|
ref: zod_1.z.any(),
|
|
14
|
-
updated_at: zod_1.z.date().nullable().optional(),
|
|
14
|
+
updated_at: zod_1.z.coerce.date().nullable().optional(),
|
|
15
15
|
});
|
|
16
16
|
exports.zLeadDistChannelSchema = zod_1.z.object({
|
|
17
17
|
code: zod_1.z.string().min(1).max(20),
|
|
18
18
|
name: zod_1.z.string().min(1).max(255),
|
|
19
19
|
ref: zod_1.z.any(),
|
|
20
|
-
updated_at: zod_1.z.date().nullable().optional(),
|
|
20
|
+
updated_at: zod_1.z.coerce.date().nullable().optional(),
|
|
21
21
|
});
|
|
22
22
|
exports.zLeadSchema = zod_schemas_2.zProfileSchema // Extend from ProfileSchema
|
|
23
23
|
.extend({
|
|
@@ -14,14 +14,14 @@ export const zLeadQualificationSchema = z.object({
|
|
|
14
14
|
name: z.string().min(1).max(255),
|
|
15
15
|
funnelLevel: zQualificationFunnelLevelSchema,
|
|
16
16
|
ref: z.any(),
|
|
17
|
-
updated_at: z.date().nullable().optional(),
|
|
17
|
+
updated_at: z.coerce.date().nullable().optional(),
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
export const zLeadDistChannelSchema = z.object({
|
|
21
21
|
code: z.string().min(1).max(20),
|
|
22
22
|
name: z.string().min(1).max(255),
|
|
23
23
|
ref: z.any(),
|
|
24
|
-
updated_at: z.date().nullable().optional(),
|
|
24
|
+
updated_at: z.coerce.date().nullable().optional(),
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
export const zLeadSchema = zProfileSchema // Extend from ProfileSchema
|
|
@@ -39,7 +39,7 @@ exports.zProfessionalSchema = zod_schemas_3.zProfileSchema // Extend from Profil
|
|
|
39
39
|
councils: zod_1.z.array(exports.zProfessionalCouncilSchema).nullable().optional(),
|
|
40
40
|
specialties: zod_1.z.array(exports.zProfessionalSpecialtySchema).nullable().optional(),
|
|
41
41
|
offices: zod_1.z.array(exports.zProfessionalOfficeSchema).nullable().optional(),
|
|
42
|
-
date_joining: zod_1.z.date().nullable().optional(),
|
|
42
|
+
date_joining: zod_1.z.coerce.date().nullable().optional(),
|
|
43
43
|
company_code: zod_1.z.string().min(1).max(20),
|
|
44
44
|
company_name: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
45
45
|
companyRef: zod_1.z.any(),
|
|
@@ -72,7 +72,7 @@ exports.zPatientChronicConditionSchema = zod_1.z.object({
|
|
|
72
72
|
code: zod_1.z.string().min(1).max(20),
|
|
73
73
|
name: zod_1.z.string().min(1).max(255),
|
|
74
74
|
ref: zod_1.z.any(),
|
|
75
|
-
diagnosis_date: zod_1.z.date().nullable().optional(),
|
|
75
|
+
diagnosis_date: zod_1.z.coerce.date().nullable().optional(),
|
|
76
76
|
severity: zod_schemas_1.zSeveritySchema.nullable().optional().default("Unknown"),
|
|
77
77
|
controlled: zod_1.z.boolean().optional().default(false),
|
|
78
78
|
medications: zod_1.z.array(zod_schemas_1.zMedicationSchema).nullable().optional(),
|
|
@@ -51,7 +51,7 @@ export const zProfessionalSchema = zProfileSchema // Extend from ProfileSchema
|
|
|
51
51
|
councils: z.array(zProfessionalCouncilSchema).nullable().optional(),
|
|
52
52
|
specialties: z.array(zProfessionalSpecialtySchema).nullable().optional(),
|
|
53
53
|
offices: z.array(zProfessionalOfficeSchema).nullable().optional(),
|
|
54
|
-
date_joining: z.date().nullable().optional(),
|
|
54
|
+
date_joining: z.coerce.date().nullable().optional(),
|
|
55
55
|
company_code: z.string().min(1).max(20),
|
|
56
56
|
company_name: z.string().max(255).nullable().optional().default(""),
|
|
57
57
|
companyRef: z.any(),
|
|
@@ -88,7 +88,7 @@ export const zPatientChronicConditionSchema = z.object({
|
|
|
88
88
|
code: z.string().min(1).max(20),
|
|
89
89
|
name: z.string().min(1).max(255),
|
|
90
90
|
ref: z.any(),
|
|
91
|
-
diagnosis_date: z.date().nullable().optional(),
|
|
91
|
+
diagnosis_date: z.coerce.date().nullable().optional(),
|
|
92
92
|
severity: zSeveritySchema.nullable().optional().default("Unknown"),
|
|
93
93
|
controlled: z.boolean().optional().default(false),
|
|
94
94
|
medications: z.array(zMedicationSchema).nullable().optional(),
|
|
@@ -13,13 +13,13 @@ export interface ILeadQualification {
|
|
|
13
13
|
name: string;
|
|
14
14
|
funnelLevel: QualificationFunnelLevel;
|
|
15
15
|
ref?: FirestoreDocumentReference;
|
|
16
|
-
updated_at?: Date;
|
|
16
|
+
updated_at?: Date | null;
|
|
17
17
|
}
|
|
18
18
|
export interface ILeadDistChannel {
|
|
19
19
|
code: string;
|
|
20
20
|
name: string;
|
|
21
21
|
ref?: FirestoreDocumentReference;
|
|
22
|
-
updated_at?: Date;
|
|
22
|
+
updated_at?: Date | null;
|
|
23
23
|
}
|
|
24
24
|
export interface ILead extends IProfile {
|
|
25
25
|
external_id?: string | null;
|
|
@@ -22,14 +22,14 @@ export interface ILeadQualification {
|
|
|
22
22
|
name: string;
|
|
23
23
|
funnelLevel: QualificationFunnelLevel;
|
|
24
24
|
ref?: FirestoreDocumentReference;
|
|
25
|
-
updated_at?: Date;
|
|
25
|
+
updated_at?: Date | null;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export interface ILeadDistChannel {
|
|
29
29
|
code: string;
|
|
30
30
|
name: string;
|
|
31
31
|
ref?: FirestoreDocumentReference;
|
|
32
|
-
updated_at?: Date;
|
|
32
|
+
updated_at?: Date | null;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface ILead extends IProfile {
|