evo360-types 1.3.378 → 1.3.381
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.
|
@@ -13,9 +13,7 @@ export interface IChannelProviderRef {
|
|
|
13
13
|
export interface ICallDeflectionConfig {
|
|
14
14
|
enabled: boolean;
|
|
15
15
|
mode: 'template' | 'text';
|
|
16
|
-
template?: {
|
|
17
|
-
name: string;
|
|
18
|
-
language: string;
|
|
16
|
+
template?: ICallHsmTemplateRef & {
|
|
19
17
|
category?: string;
|
|
20
18
|
};
|
|
21
19
|
text?: string;
|
|
@@ -23,12 +21,18 @@ export interface ICallDeflectionConfig {
|
|
|
23
21
|
only_outside_business_hours?: boolean;
|
|
24
22
|
cooldown_minutes?: number;
|
|
25
23
|
}
|
|
24
|
+
/** Referência a HSM aprovado na Meta (nome + idioma + variáveis opcionais). */
|
|
25
|
+
export interface ICallHsmTemplateRef {
|
|
26
|
+
name: string;
|
|
27
|
+
language: string;
|
|
28
|
+
/** Valores do BODY na ordem {{1}}, {{2}}, … Suporta placeholder {{contact_name}}. */
|
|
29
|
+
body_parameters?: string[];
|
|
30
|
+
/** Valores do HEADER TEXT na ordem {{1}}, … */
|
|
31
|
+
header_parameters?: string[];
|
|
32
|
+
}
|
|
26
33
|
export interface ICallOutboundPermissionConfig {
|
|
27
34
|
enabled: boolean;
|
|
28
|
-
request_template?:
|
|
29
|
-
name: string;
|
|
30
|
-
language: string;
|
|
31
|
-
};
|
|
35
|
+
request_template?: ICallHsmTemplateRef;
|
|
32
36
|
}
|
|
33
37
|
export interface ICallsChannelConfig {
|
|
34
38
|
enabled: boolean;
|
|
@@ -25,20 +25,30 @@ export interface IChannelProviderRef {
|
|
|
25
25
|
export interface ICallDeflectionConfig {
|
|
26
26
|
enabled: boolean;
|
|
27
27
|
mode: 'template' | 'text';
|
|
28
|
-
template?:
|
|
28
|
+
template?: ICallHsmTemplateRef & { category?: string };
|
|
29
29
|
text?: string; // mode 'text' — só aplicado com janela de 24h aberta
|
|
30
30
|
end_call: boolean; // default true — terminate/reject via call-control
|
|
31
31
|
only_outside_business_hours?: boolean;
|
|
32
32
|
cooldown_minutes?: number; // hardening leve (notificação repetida)
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/** Referência a HSM aprovado na Meta (nome + idioma + variáveis opcionais). */
|
|
36
|
+
export interface ICallHsmTemplateRef {
|
|
37
|
+
name: string;
|
|
38
|
+
language: string;
|
|
39
|
+
/** Valores do BODY na ordem {{1}}, {{2}}, … Suporta placeholder {{contact_name}}. */
|
|
40
|
+
body_parameters?: string[];
|
|
41
|
+
/** Valores do HEADER TEXT na ordem {{1}}, … */
|
|
42
|
+
header_parameters?: string[];
|
|
43
|
+
}
|
|
44
|
+
|
|
35
45
|
// Permissão para ligação outbound (business-initiated) — Fase 2.
|
|
36
46
|
// Antes de discar, a clínica precisa de permissão do usuário; quando ausente,
|
|
37
47
|
// envia-se um HSM com componente CALL_PERMISSION_REQUEST (template aprovado).
|
|
38
48
|
export interface ICallOutboundPermissionConfig {
|
|
39
49
|
enabled: boolean;
|
|
40
50
|
// Template HSM com botão/ação CALL_PERMISSION_REQUEST.
|
|
41
|
-
request_template?:
|
|
51
|
+
request_template?: ICallHsmTemplateRef;
|
|
42
52
|
}
|
|
43
53
|
|
|
44
54
|
export interface ICallsChannelConfig {
|