evo360-types 1.3.772 → 1.3.778
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-core/zod-schemas.d.ts +23 -0
- package/dist/apps/evo-core/zod-schemas.js +1 -0
- package/dist/apps/evo-core/zod-schemas.ts +1 -0
- package/dist/apps/evo-hub-ia/workflows/zod-schemas.d.ts +550 -0
- package/dist/apps/evo-hub-ia/workflows/zod-schemas.js +127 -0
- package/dist/apps/evo-hub-ia/workflows/zod-schemas.ts +150 -0
- package/dist/apps/hub-automation/zod-schemas.js +4 -1
- package/dist/apps/hub-automation/zod-schemas.ts +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.ts +2 -0
- package/dist/types/evo-chat/index.d.ts +2 -0
- package/dist/types/evo-chat/index.js +2 -0
- package/dist/types/evo-chat/index.ts +2 -0
- package/dist/types/evo-core/index.d.ts +2 -0
- package/dist/types/evo-core/index.ts +2 -0
- package/dist/types/evo-emr/index.d.ts +14 -0
- package/dist/types/evo-emr/index.js +25 -0
- package/dist/types/evo-emr/index.ts +28 -0
- package/dist/types/evo-modules/catalog.d.ts +3 -1
- package/dist/types/evo-modules/catalog.js +37 -2
- package/dist/types/evo-modules/catalog.ts +37 -1
- package/dist/types/evo-reports/index.d.ts +2 -1
- package/dist/types/evo-reports/index.ts +3 -1
- package/dist/types/hub-automation/index.d.ts +2 -2
- package/dist/types/hub-automation/index.js +14 -1
- package/dist/types/hub-automation/index.ts +17 -2
- package/package.json +1 -1
|
@@ -102,11 +102,11 @@ export interface IAutomationFilterValues {
|
|
|
102
102
|
status_bases: string[];
|
|
103
103
|
appointment_types: string[];
|
|
104
104
|
}
|
|
105
|
-
export declare const AUTOMATION_APPOINTMENT_FACTS: readonly ["appointment.status", "appointment.status_base", "appointment.appointment_type", "appointment.appointment_base_type", "appointment.appointment_mode", "appointment.professional_id", "appointment.procedure_ids", "appointment.professional_name", "appointment.procedure_names", "appointment.insurance_name", "appointment.address_name", "appointment.payment_status", "appointment.calendar_id", "appointment.start_time"];
|
|
105
|
+
export declare const AUTOMATION_APPOINTMENT_FACTS: readonly ["appointment.status", "appointment.status_base", "appointment.appointment_type", "appointment.appointment_base_type", "appointment.appointment_mode", "appointment.professional_id", "appointment.procedure_ids", "appointment.professional_name", "appointment.procedure_names", "appointment.insurance_name", "appointment.address_name", "appointment.payment_status", "appointment.calendar_id", "appointment.start_time", "patient.sex", "patient.age"];
|
|
106
106
|
export type AutomationAppointmentFact = (typeof AUTOMATION_APPOINTMENT_FACTS)[number];
|
|
107
107
|
export declare const AUTOMATION_LEAD_FACTS: readonly ["lead.status", "lead.qualification_code", "lead.qualification_name", "lead.qualification_funnel_level", "lead.dist_channel_code", "lead.dist_channel_name", "lead.tags"];
|
|
108
108
|
export type AutomationLeadFact = (typeof AUTOMATION_LEAD_FACTS)[number];
|
|
109
|
-
export declare const AUTOMATION_PATIENT_FACTS: readonly ["patient.status", "patient.source_code", "patient.source_name", "patient.tags"];
|
|
109
|
+
export declare const AUTOMATION_PATIENT_FACTS: readonly ["patient.status", "patient.source_code", "patient.source_name", "patient.tags", "patient.sex", "patient.age"];
|
|
110
110
|
export type AutomationPatientFact = (typeof AUTOMATION_PATIENT_FACTS)[number];
|
|
111
111
|
export type AutomationFact = AutomationAppointmentFact | AutomationLeadFact | AutomationPatientFact;
|
|
112
112
|
export declare const AutomationOperatorEnum: {
|
|
@@ -39,7 +39,8 @@ exports.HubAutomationPermissions = {
|
|
|
39
39
|
Write: "hub_automation_write",
|
|
40
40
|
};
|
|
41
41
|
// ------------------------------------------------------
|
|
42
|
-
// Fact catalog (F1: appointment domain facts
|
|
42
|
+
// Fact catalog (F1: appointment domain facts; feat-311 F4: + patient.sex /
|
|
43
|
+
// patient.age, read from the PATIENT doc only when a branch uses them)
|
|
43
44
|
// ------------------------------------------------------
|
|
44
45
|
exports.AUTOMATION_APPOINTMENT_FACTS = [
|
|
45
46
|
"appointment.status",
|
|
@@ -64,6 +65,13 @@ exports.AUTOMATION_APPOINTMENT_FACTS = [
|
|
|
64
65
|
// feat-167: "HH:mm" local of startDate in the TENANT timezone (same clock as
|
|
65
66
|
// selection.time_range). Meant for the between/not_between operators.
|
|
66
67
|
"appointment.start_time",
|
|
68
|
+
// feat-311 F4 (D12/D13): patient facts on appointment targets. Normalized
|
|
69
|
+
// 'female' | 'male' | 'other'; age = full years on the appointment's local
|
|
70
|
+
// date. Absence is strict: without the data no operator matches except
|
|
71
|
+
// exists/not_exists.
|
|
72
|
+
"patient.sex",
|
|
73
|
+
// between/not_between with an IAutomationAgeRange value ({min?, max?}, inclusive).
|
|
74
|
+
"patient.age",
|
|
67
75
|
];
|
|
68
76
|
// feat-085 (F3): lead domain facts (derived from the fields ILead exposes;
|
|
69
77
|
// resolved from the event-preloaded lead). Mirror of the appointment catalog.
|
|
@@ -87,6 +95,11 @@ exports.AUTOMATION_PATIENT_FACTS = [
|
|
|
87
95
|
"patient.source_name",
|
|
88
96
|
// string[] of tag names — matches if ANY tag name matches.
|
|
89
97
|
"patient.tags",
|
|
98
|
+
// feat-311 F4: same semantics as in AUTOMATION_APPOINTMENT_FACTS. Reference
|
|
99
|
+
// date for the age: the birthday (age being completed) on the birthday
|
|
100
|
+
// routine; the event date on domain-event routines.
|
|
101
|
+
"patient.sex",
|
|
102
|
+
"patient.age",
|
|
90
103
|
];
|
|
91
104
|
// ------------------------------------------------------
|
|
92
105
|
// Conditions (recursive AND/OR groups)
|
|
@@ -238,7 +238,8 @@ export interface IAutomationFilterValues {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
// ------------------------------------------------------
|
|
241
|
-
// Fact catalog (F1: appointment domain facts
|
|
241
|
+
// Fact catalog (F1: appointment domain facts; feat-311 F4: + patient.sex /
|
|
242
|
+
// patient.age, read from the PATIENT doc only when a branch uses them)
|
|
242
243
|
// ------------------------------------------------------
|
|
243
244
|
export const AUTOMATION_APPOINTMENT_FACTS = [
|
|
244
245
|
"appointment.status",
|
|
@@ -263,6 +264,13 @@ export const AUTOMATION_APPOINTMENT_FACTS = [
|
|
|
263
264
|
// feat-167: "HH:mm" local of startDate in the TENANT timezone (same clock as
|
|
264
265
|
// selection.time_range). Meant for the between/not_between operators.
|
|
265
266
|
"appointment.start_time",
|
|
267
|
+
// feat-311 F4 (D12/D13): patient facts on appointment targets. Normalized
|
|
268
|
+
// 'female' | 'male' | 'other'; age = full years on the appointment's local
|
|
269
|
+
// date. Absence is strict: without the data no operator matches except
|
|
270
|
+
// exists/not_exists.
|
|
271
|
+
"patient.sex",
|
|
272
|
+
// between/not_between with an IAutomationAgeRange value ({min?, max?}, inclusive).
|
|
273
|
+
"patient.age",
|
|
266
274
|
] as const;
|
|
267
275
|
|
|
268
276
|
export type AutomationAppointmentFact =
|
|
@@ -293,6 +301,11 @@ export const AUTOMATION_PATIENT_FACTS = [
|
|
|
293
301
|
"patient.source_name",
|
|
294
302
|
// string[] of tag names — matches if ANY tag name matches.
|
|
295
303
|
"patient.tags",
|
|
304
|
+
// feat-311 F4: same semantics as in AUTOMATION_APPOINTMENT_FACTS. Reference
|
|
305
|
+
// date for the age: the birthday (age being completed) on the birthday
|
|
306
|
+
// routine; the event date on domain-event routines.
|
|
307
|
+
"patient.sex",
|
|
308
|
+
"patient.age",
|
|
296
309
|
] as const;
|
|
297
310
|
|
|
298
311
|
export type AutomationPatientFact = (typeof AUTOMATION_PATIENT_FACTS)[number];
|
|
@@ -336,7 +349,9 @@ export interface IAutomationCondition {
|
|
|
336
349
|
fact: string;
|
|
337
350
|
operator: AutomationOperator;
|
|
338
351
|
// Not required for unary operators (exists/not_exists/is_true/is_false).
|
|
339
|
-
// between/not_between
|
|
352
|
+
// between/not_between: IAutomationAgeRange ({min?, max?}, inclusive full
|
|
353
|
+
// years) when fact === "patient.age" (feat-311 F4); otherwise an
|
|
354
|
+
// IAutomationTimeOfDayRange (feat-167, appointment.start_time).
|
|
340
355
|
value?: unknown;
|
|
341
356
|
}
|
|
342
357
|
|