evo360-types 1.3.675 → 1.3.679
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-chat/channel/zod-schemas.d.ts +16 -0
- package/dist/apps/evo-chat/channel/zod-schemas.js +10 -1
- package/dist/apps/evo-chat/channel/zod-schemas.ts +16 -0
- package/dist/apps/evo-crm/lead/zod-schemas.d.ts +27 -27
- package/dist/apps/evo-finops/zod-schemas.d.ts +54 -54
- package/dist/apps/evo-med/people/zod-schemas.d.ts +135 -135
- package/dist/apps/evo-notifications/zod-schemas.d.ts +117 -117
- package/dist/apps/evo-task/zod-schemas.d.ts +46 -46
- package/dist/apps/evo-task/zod-schemas.js +1 -0
- package/dist/apps/evo-task/zod-schemas.ts +1 -0
- package/dist/types/evo-chat/channel/index.d.ts +13 -2
- package/dist/types/evo-chat/channel/index.js +25 -0
- package/dist/types/evo-chat/channel/index.ts +36 -2
- package/dist/types/hub-automation/index.d.ts +3 -0
- package/dist/types/hub-automation/index.ts +8 -0
- package/dist/types/shared/external-links.d.ts +6 -0
- package/dist/types/shared/external-links.js +6 -0
- package/dist/types/shared/external-links.ts +6 -0
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ export declare const zTaskOutcomeSchema: z.ZodObject<{
|
|
|
43
43
|
export declare const zExternalOwnerSystemSchema: z.ZodEnum<["nexus"]>;
|
|
44
44
|
export declare const zExternalLinkKindSchema: z.ZodEnum<["identity", "representation"]>;
|
|
45
45
|
export declare const zExternalLinkStatusSchema: z.ZodEnum<["suggested", "confirmed", "rejected"]>;
|
|
46
|
-
export declare const zExternalLinkSourceSchema: z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>;
|
|
46
|
+
export declare const zExternalLinkSourceSchema: z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>;
|
|
47
47
|
export declare const zLinkRelationPairSchema: z.ZodEnum<["parent_child", "spouse", "guardian_dependent", "family", "company_employee", "third_party_company", "other"]>;
|
|
48
48
|
export declare const zLinkRelationRoleSchema: z.ZodEnum<["parent", "child", "spouse", "guardian", "dependent", "family", "company", "employee", "third_party", "represented", "other"]>;
|
|
49
49
|
export declare const zExternalLinkRelationSchema: z.ZodObject<{
|
|
@@ -75,12 +75,12 @@ export declare const zExternalLinkSchema: z.ZodObject<{
|
|
|
75
75
|
}>>>;
|
|
76
76
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
77
77
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
78
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
79
79
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
80
80
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
81
|
-
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", "family_discovery"]>>>;
|
|
81
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
82
82
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
83
|
-
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", "family_discovery"]>>>;
|
|
83
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
84
84
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
85
85
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
86
86
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -106,12 +106,12 @@ export declare const zExternalLinkSchema: z.ZodObject<{
|
|
|
106
106
|
}>>>;
|
|
107
107
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
108
108
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
109
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
110
110
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
111
111
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
112
|
-
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", "family_discovery"]>>>;
|
|
112
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
113
113
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
114
|
-
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", "family_discovery"]>>>;
|
|
114
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
115
115
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
116
116
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
117
117
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -137,12 +137,12 @@ export declare const zExternalLinkSchema: z.ZodObject<{
|
|
|
137
137
|
}>>>;
|
|
138
138
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
139
139
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
140
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
141
141
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
142
142
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
143
|
-
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", "family_discovery"]>>>;
|
|
143
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
144
144
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
145
|
-
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", "family_discovery"]>>>;
|
|
145
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
146
146
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
147
147
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
148
148
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -169,12 +169,12 @@ export declare const zTaskExternalLinkSchema: z.ZodObject<{
|
|
|
169
169
|
}>>>;
|
|
170
170
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
171
171
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
172
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
173
173
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
174
174
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
175
|
-
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", "family_discovery"]>>>;
|
|
175
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
176
176
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
177
|
-
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", "family_discovery"]>>>;
|
|
177
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
178
178
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
179
179
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
180
180
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -200,12 +200,12 @@ export declare const zTaskExternalLinkSchema: z.ZodObject<{
|
|
|
200
200
|
}>>>;
|
|
201
201
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
202
202
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
203
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
204
204
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
205
205
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
206
|
-
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", "family_discovery"]>>>;
|
|
206
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
207
207
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
208
|
-
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", "family_discovery"]>>>;
|
|
208
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
209
209
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
210
210
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
211
211
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -231,12 +231,12 @@ export declare const zTaskExternalLinkSchema: z.ZodObject<{
|
|
|
231
231
|
}>>>;
|
|
232
232
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
233
233
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
234
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
235
235
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
236
236
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
237
|
-
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", "family_discovery"]>>>;
|
|
237
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
238
238
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
239
|
-
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", "family_discovery"]>>>;
|
|
239
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
240
240
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
241
241
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
242
242
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -704,12 +704,12 @@ export declare const zTaskSchema: z.ZodObject<{
|
|
|
704
704
|
}>>>;
|
|
705
705
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
706
706
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
707
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
707
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
708
708
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
709
709
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
710
|
-
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", "family_discovery"]>>>;
|
|
710
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
711
711
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
712
|
-
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", "family_discovery"]>>>;
|
|
712
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
713
713
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
714
714
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
715
715
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -735,12 +735,12 @@ export declare const zTaskSchema: z.ZodObject<{
|
|
|
735
735
|
}>>>;
|
|
736
736
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
737
737
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
738
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
738
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
739
739
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
740
740
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
741
|
-
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", "family_discovery"]>>>;
|
|
741
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
742
742
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
743
|
-
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", "family_discovery"]>>>;
|
|
743
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
744
744
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
745
745
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
746
746
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -766,12 +766,12 @@ export declare const zTaskSchema: z.ZodObject<{
|
|
|
766
766
|
}>>>;
|
|
767
767
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
768
768
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
769
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
769
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
770
770
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
771
771
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
772
|
-
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", "family_discovery"]>>>;
|
|
772
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
773
773
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
774
|
-
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", "family_discovery"]>>>;
|
|
774
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
775
775
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
776
776
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
777
777
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -1248,12 +1248,12 @@ export declare const zTaskSchema: z.ZodObject<{
|
|
|
1248
1248
|
}>>>;
|
|
1249
1249
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1250
1250
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1251
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
1251
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
1252
1252
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1253
1253
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1254
|
-
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", "family_discovery"]>>>;
|
|
1254
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1255
1255
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1256
|
-
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", "family_discovery"]>>>;
|
|
1256
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1257
1257
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1258
1258
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1259
1259
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -1279,12 +1279,12 @@ export declare const zTaskSchema: z.ZodObject<{
|
|
|
1279
1279
|
}>>>;
|
|
1280
1280
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1281
1281
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1282
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
1282
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
1283
1283
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1284
1284
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1285
|
-
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", "family_discovery"]>>>;
|
|
1285
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1286
1286
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1287
|
-
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", "family_discovery"]>>>;
|
|
1287
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1288
1288
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1289
1289
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1290
1290
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -1310,12 +1310,12 @@ export declare const zTaskSchema: z.ZodObject<{
|
|
|
1310
1310
|
}>>>;
|
|
1311
1311
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1312
1312
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1313
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
1313
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
1314
1314
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1315
1315
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1316
|
-
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", "family_discovery"]>>>;
|
|
1316
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1317
1317
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1318
|
-
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", "family_discovery"]>>>;
|
|
1318
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1319
1319
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1320
1320
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1321
1321
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -1792,12 +1792,12 @@ export declare const zTaskSchema: z.ZodObject<{
|
|
|
1792
1792
|
}>>>;
|
|
1793
1793
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1794
1794
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1795
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
1795
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
1796
1796
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1797
1797
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1798
|
-
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", "family_discovery"]>>>;
|
|
1798
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1799
1799
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1800
|
-
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", "family_discovery"]>>>;
|
|
1800
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1801
1801
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1802
1802
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1803
1803
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -1823,12 +1823,12 @@ export declare const zTaskSchema: z.ZodObject<{
|
|
|
1823
1823
|
}>>>;
|
|
1824
1824
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1825
1825
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1826
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
1826
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
1827
1827
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1828
1828
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1829
|
-
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", "family_discovery"]>>>;
|
|
1829
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1830
1830
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1831
|
-
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", "family_discovery"]>>>;
|
|
1831
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1832
1832
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1833
1833
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1834
1834
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -1854,12 +1854,12 @@ export declare const zTaskSchema: z.ZodObject<{
|
|
|
1854
1854
|
}>>>;
|
|
1855
1855
|
status: z.ZodOptional<z.ZodEnum<["suggested", "confirmed", "rejected"]>>;
|
|
1856
1856
|
evidence_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1857
|
-
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery"]>>;
|
|
1857
|
+
created_source: z.ZodOptional<z.ZodEnum<["ui_appointment", "ui_manual", "ui_family", "sync_inferred", "reminder_inferred", "send_inferred", "lead_autocreate", "inherited", "merge", "legacy", "family_discovery", "name_rule"]>>;
|
|
1858
1858
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1859
1859
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1860
|
-
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", "family_discovery"]>>>;
|
|
1860
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1861
1861
|
last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1862
|
-
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", "family_discovery"]>>>;
|
|
1862
|
+
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", "family_discovery", "name_rule"]>>>;
|
|
1863
1863
|
confirmed_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1864
1864
|
confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1865
1865
|
rejected_by: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import type { IHubIAConfig } from "../../evo-hub-ia/channel";
|
|
2
2
|
import { IFireDoc } from "../../shared";
|
|
3
3
|
import type { IChannelHistoryImport } from "../waba-history-import";
|
|
4
|
-
export
|
|
5
|
-
export type
|
|
4
|
+
export declare const ChannelProviderValues: readonly ["chatbee", "hub-waba", "hub-instagram", "amazon-ses", "smtp"];
|
|
5
|
+
export type ChannelProvider = (typeof ChannelProviderValues)[number];
|
|
6
|
+
export declare const ChannelTypeValues: readonly ["waba", "instagram", "telegram", "email", "sms"];
|
|
7
|
+
export type ChannelType = (typeof ChannelTypeValues)[number];
|
|
6
8
|
export type ChannelStatus = 'active' | 'paused' | 'disabled' | 'pending';
|
|
9
|
+
/** Provider de transporte usado para entregar uma mensagem do canal lógico. */
|
|
10
|
+
export declare const MessageTransportProviderValues: readonly ["hub-waba", "chatbee", "hub-instagram", "infobip", "amazon-ses", "smtp"];
|
|
11
|
+
export type MessageTransportProvider = (typeof MessageTransportProviderValues)[number];
|
|
12
|
+
/** Rota canônica de uma mensagem, separando canal lógico de transporte. */
|
|
13
|
+
export interface MessageRoute {
|
|
14
|
+
channel_type: ChannelType;
|
|
15
|
+
channel_id: string;
|
|
16
|
+
transport_provider: MessageTransportProvider;
|
|
17
|
+
}
|
|
7
18
|
export type IgTokenHealth = 'ok' | 'expiring' | 'failed';
|
|
8
19
|
export interface IChannelProviderRef {
|
|
9
20
|
channel_id?: string;
|
|
@@ -1,2 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageTransportProviderValues = exports.ChannelTypeValues = exports.ChannelProviderValues = void 0;
|
|
4
|
+
// ── Channel provider/type enums ──
|
|
5
|
+
exports.ChannelProviderValues = [
|
|
6
|
+
'chatbee',
|
|
7
|
+
'hub-waba',
|
|
8
|
+
'hub-instagram',
|
|
9
|
+
'amazon-ses',
|
|
10
|
+
'smtp',
|
|
11
|
+
];
|
|
12
|
+
exports.ChannelTypeValues = [
|
|
13
|
+
'waba',
|
|
14
|
+
'instagram',
|
|
15
|
+
'telegram',
|
|
16
|
+
'email',
|
|
17
|
+
'sms',
|
|
18
|
+
];
|
|
19
|
+
/** Provider de transporte usado para entregar uma mensagem do canal lógico. */
|
|
20
|
+
exports.MessageTransportProviderValues = [
|
|
21
|
+
'hub-waba',
|
|
22
|
+
'chatbee',
|
|
23
|
+
'hub-instagram',
|
|
24
|
+
'infobip',
|
|
25
|
+
'amazon-ses',
|
|
26
|
+
'smtp',
|
|
27
|
+
];
|
|
@@ -4,10 +4,44 @@ import type { IChannelHistoryImport } from "../waba-history-import";
|
|
|
4
4
|
|
|
5
5
|
// ── Channel provider/type enums ──
|
|
6
6
|
|
|
7
|
-
export
|
|
8
|
-
|
|
7
|
+
export const ChannelProviderValues = [
|
|
8
|
+
'chatbee',
|
|
9
|
+
'hub-waba',
|
|
10
|
+
'hub-instagram',
|
|
11
|
+
'amazon-ses',
|
|
12
|
+
'smtp',
|
|
13
|
+
] as const;
|
|
14
|
+
export type ChannelProvider = (typeof ChannelProviderValues)[number];
|
|
15
|
+
|
|
16
|
+
export const ChannelTypeValues = [
|
|
17
|
+
'waba',
|
|
18
|
+
'instagram',
|
|
19
|
+
'telegram',
|
|
20
|
+
'email',
|
|
21
|
+
'sms',
|
|
22
|
+
] as const;
|
|
23
|
+
export type ChannelType = (typeof ChannelTypeValues)[number];
|
|
9
24
|
export type ChannelStatus = 'active' | 'paused' | 'disabled' | 'pending';
|
|
10
25
|
|
|
26
|
+
/** Provider de transporte usado para entregar uma mensagem do canal lógico. */
|
|
27
|
+
export const MessageTransportProviderValues = [
|
|
28
|
+
'hub-waba',
|
|
29
|
+
'chatbee',
|
|
30
|
+
'hub-instagram',
|
|
31
|
+
'infobip',
|
|
32
|
+
'amazon-ses',
|
|
33
|
+
'smtp',
|
|
34
|
+
] as const;
|
|
35
|
+
export type MessageTransportProvider =
|
|
36
|
+
(typeof MessageTransportProviderValues)[number];
|
|
37
|
+
|
|
38
|
+
/** Rota canônica de uma mensagem, separando canal lógico de transporte. */
|
|
39
|
+
export interface MessageRoute {
|
|
40
|
+
channel_type: ChannelType;
|
|
41
|
+
channel_id: string;
|
|
42
|
+
transport_provider: MessageTransportProvider;
|
|
43
|
+
}
|
|
44
|
+
|
|
11
45
|
// ── Provider-specific references ──
|
|
12
46
|
|
|
13
47
|
export type IgTokenHealth = 'ok' | 'expiring' | 'failed';
|
|
@@ -561,4 +561,12 @@ export interface IAutomationSelectedTargetProjection {
|
|
|
561
561
|
status_base?: string;
|
|
562
562
|
appointment_mode?: string;
|
|
563
563
|
address_name?: string;
|
|
564
|
+
// feat-270: appointment type — free NAME as shown on the calendar
|
|
565
|
+
// (`appointmentType`) and the BASE enum (`appointmentBaseType`).
|
|
566
|
+
appointment_type?: string;
|
|
567
|
+
appointment_base_type?: string;
|
|
568
|
+
// feat-270: ids of the branches this target matched in the same dry-run
|
|
569
|
+
// (exclusive mode → 0..1; all-matching → 0..N; the fallback branch counts).
|
|
570
|
+
// Empty array = "no branch". Absent = not computed.
|
|
571
|
+
branch_ids?: string[];
|
|
564
572
|
}
|
|
@@ -80,6 +80,12 @@ export declare const ExternalLinkSourceEnum: {
|
|
|
80
80
|
* Automação: só nasce `suggested`; a justificativa vai em `evidence_summary`.
|
|
81
81
|
*/
|
|
82
82
|
readonly FamilyDiscovery: "family_discovery";
|
|
83
|
+
/**
|
|
84
|
+
* feat-193 F7b — decidida pela regra do nome do lead ("X mãe | Y", nome igual
|
|
85
|
+
* ao do paciente), com o telefone/`lead_id` legado como evidência forte (D32).
|
|
86
|
+
* Pode CONFIRMAR; a explicação vai em `evidence_summary`.
|
|
87
|
+
*/
|
|
88
|
+
readonly NameRule: "name_rule";
|
|
83
89
|
};
|
|
84
90
|
export type ExternalLinkSource = (typeof ExternalLinkSourceEnum)[keyof typeof ExternalLinkSourceEnum];
|
|
85
91
|
/**
|
|
@@ -80,6 +80,12 @@ exports.ExternalLinkSourceEnum = {
|
|
|
80
80
|
* Automação: só nasce `suggested`; a justificativa vai em `evidence_summary`.
|
|
81
81
|
*/
|
|
82
82
|
FamilyDiscovery: "family_discovery",
|
|
83
|
+
/**
|
|
84
|
+
* feat-193 F7b — decidida pela regra do nome do lead ("X mãe | Y", nome igual
|
|
85
|
+
* ao do paciente), com o telefone/`lead_id` legado como evidência forte (D32).
|
|
86
|
+
* Pode CONFIRMAR; a explicação vai em `evidence_summary`.
|
|
87
|
+
*/
|
|
88
|
+
NameRule: "name_rule",
|
|
83
89
|
};
|
|
84
90
|
/**
|
|
85
91
|
* feat-193 — par de relação (chave neutra de gênero). O rótulo exibido vem do
|
|
@@ -96,6 +96,12 @@ export const ExternalLinkSourceEnum = {
|
|
|
96
96
|
* Automação: só nasce `suggested`; a justificativa vai em `evidence_summary`.
|
|
97
97
|
*/
|
|
98
98
|
FamilyDiscovery: "family_discovery",
|
|
99
|
+
/**
|
|
100
|
+
* feat-193 F7b — decidida pela regra do nome do lead ("X mãe | Y", nome igual
|
|
101
|
+
* ao do paciente), com o telefone/`lead_id` legado como evidência forte (D32).
|
|
102
|
+
* Pode CONFIRMAR; a explicação vai em `evidence_summary`.
|
|
103
|
+
*/
|
|
104
|
+
NameRule: "name_rule",
|
|
99
105
|
} as const;
|
|
100
106
|
|
|
101
107
|
export type ExternalLinkSource =
|