jsfe 1.6.0 → 1.7.0
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/README.md +27 -4
- package/dist/forms/action-projection.d.ts +4 -0
- package/dist/forms/action-projection.d.ts.map +1 -0
- package/dist/forms/action-projection.js +21 -0
- package/dist/forms/action-recovery.d.ts +12 -0
- package/dist/forms/action-recovery.d.ts.map +1 -0
- package/dist/forms/action-recovery.js +125 -0
- package/dist/forms/action-tools.d.ts +29 -0
- package/dist/forms/action-tools.d.ts.map +1 -0
- package/dist/forms/action-tools.js +6 -0
- package/dist/forms/address-flows.d.ts +2 -0
- package/dist/forms/address-flows.d.ts.map +1 -0
- package/dist/forms/address-flows.js +39 -0
- package/dist/forms/choice-flow.d.ts +419 -0
- package/dist/forms/choice-flow.d.ts.map +1 -0
- package/dist/forms/choice-flow.js +707 -0
- package/dist/forms/contracts.d.ts +237 -0
- package/dist/forms/contracts.d.ts.map +1 -0
- package/dist/forms/contracts.js +278 -0
- package/dist/forms/flows.d.ts +611 -0
- package/dist/forms/flows.d.ts.map +1 -0
- package/dist/forms/flows.js +675 -0
- package/dist/forms/identity-flows.d.ts +17 -0
- package/dist/forms/identity-flows.d.ts.map +1 -0
- package/dist/forms/identity-flows.js +302 -0
- package/dist/forms/index.d.ts +7 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +10 -0
- package/dist/forms/prompt-compiler.d.ts +3 -0
- package/dist/forms/prompt-compiler.d.ts.map +1 -0
- package/dist/forms/prompt-compiler.js +30 -0
- package/dist/helpers/address.d.ts +27 -0
- package/dist/helpers/address.d.ts.map +1 -0
- package/dist/helpers/address.js +29 -0
- package/dist/helpers/answer.d.ts +5 -0
- package/dist/helpers/answer.d.ts.map +1 -1
- package/dist/helpers/answer.js +5 -3
- package/dist/helpers/choice-offer.d.ts +3 -0
- package/dist/helpers/choice-offer.d.ts.map +1 -0
- package/dist/helpers/choice-offer.js +6 -0
- package/dist/helpers/form-actions.d.ts +13 -0
- package/dist/helpers/form-actions.d.ts.map +1 -0
- package/dist/helpers/form-actions.js +144 -0
- package/dist/helpers/form-sources.d.ts +7 -0
- package/dist/helpers/form-sources.d.ts.map +1 -0
- package/dist/helpers/form-sources.js +47 -0
- package/dist/helpers/form-state.d.ts +94 -0
- package/dist/helpers/form-state.d.ts.map +1 -0
- package/dist/helpers/form-state.js +870 -0
- package/dist/helpers/index.d.ts +114 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +9 -4
- package/dist/helpers/match-inputs.d.ts +14 -0
- package/dist/helpers/match-inputs.d.ts.map +1 -1
- package/dist/helpers/match-inputs.js +154 -41
- package/dist/helpers/money.d.ts +12 -0
- package/dist/helpers/money.d.ts.map +1 -0
- package/dist/helpers/money.js +54 -0
- package/dist/helpers/spoken-money.d.ts +20 -0
- package/dist/helpers/spoken-money.d.ts.map +1 -0
- package/dist/helpers/spoken-money.js +143 -0
- package/dist/host/action-journal.d.ts +98 -0
- package/dist/host/action-journal.d.ts.map +1 -0
- package/dist/host/action-journal.js +218 -0
- package/dist/host/action-session.d.ts +12 -0
- package/dist/host/action-session.d.ts.map +1 -0
- package/dist/host/action-session.js +29 -0
- package/dist/host/capabilities.d.ts +12 -0
- package/dist/host/capabilities.d.ts.map +1 -0
- package/dist/host/capabilities.js +43 -0
- package/dist/host/checkpoint-codec-error.d.ts +6 -0
- package/dist/host/checkpoint-codec-error.d.ts.map +1 -0
- package/dist/host/checkpoint-codec-error.js +4 -0
- package/dist/host/index.d.ts +6 -0
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.js +6 -0
- package/dist/host/intent-stages.d.ts +1 -0
- package/dist/host/intent-stages.d.ts.map +1 -1
- package/dist/host/intent-stages.js +3 -3
- package/dist/host/node.d.ts +17 -0
- package/dist/host/node.d.ts.map +1 -0
- package/dist/host/node.js +64 -0
- package/dist/host/recovery-identity.d.ts +16 -0
- package/dist/host/recovery-identity.d.ts.map +1 -0
- package/dist/host/recovery-identity.js +73 -0
- package/dist/host/recovery-policy.d.ts +5 -0
- package/dist/host/recovery-policy.d.ts.map +1 -0
- package/dist/host/recovery-policy.js +54 -0
- package/dist/host/runtime-manifest.d.ts +3 -0
- package/dist/host/runtime-manifest.d.ts.map +1 -0
- package/dist/host/runtime-manifest.js +38 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +155 -45
- package/dist/runtime-identity.d.ts +3 -0
- package/dist/runtime-identity.d.ts.map +1 -0
- package/dist/runtime-identity.js +1 -0
- package/docs/development-release.md +23 -0
- package/docs/forms.md +122 -0
- package/package.json +15 -4
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
/** Shared platform choice transport, moved into JSFE so all hosts use one implementation. */
|
|
2
|
+
export const FLOWS: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
description: string;
|
|
7
|
+
parameters: ({
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
description: string;
|
|
11
|
+
required?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
description: string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
})[];
|
|
18
|
+
variables: {
|
|
19
|
+
ac_answer: {
|
|
20
|
+
type: string;
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
ac_key: {
|
|
24
|
+
type: string;
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
ac_other: {
|
|
28
|
+
type: string;
|
|
29
|
+
value: boolean;
|
|
30
|
+
};
|
|
31
|
+
ac_q_es: {
|
|
32
|
+
type: string;
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
ac_retry: {
|
|
36
|
+
type: string;
|
|
37
|
+
value: string;
|
|
38
|
+
};
|
|
39
|
+
ac_retry_es: {
|
|
40
|
+
type: string;
|
|
41
|
+
value: string;
|
|
42
|
+
};
|
|
43
|
+
ac_exit_ctx: {
|
|
44
|
+
type: string;
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
47
|
+
ac_exit_ctx_es: {
|
|
48
|
+
type: string;
|
|
49
|
+
value: string;
|
|
50
|
+
};
|
|
51
|
+
ac_missed: {
|
|
52
|
+
type: string;
|
|
53
|
+
value: boolean;
|
|
54
|
+
};
|
|
55
|
+
answer_key: {
|
|
56
|
+
type: string;
|
|
57
|
+
description: string;
|
|
58
|
+
value: string;
|
|
59
|
+
};
|
|
60
|
+
ac_offer: {
|
|
61
|
+
type: string;
|
|
62
|
+
value: null;
|
|
63
|
+
};
|
|
64
|
+
ac_q: {
|
|
65
|
+
type: string;
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
68
|
+
ac_code: {
|
|
69
|
+
type: string;
|
|
70
|
+
value: string;
|
|
71
|
+
};
|
|
72
|
+
ac_late: {
|
|
73
|
+
type: string;
|
|
74
|
+
value: boolean;
|
|
75
|
+
};
|
|
76
|
+
ac_marked: {
|
|
77
|
+
type: string;
|
|
78
|
+
value: boolean;
|
|
79
|
+
};
|
|
80
|
+
as_spoken: {
|
|
81
|
+
type: string;
|
|
82
|
+
value: boolean;
|
|
83
|
+
};
|
|
84
|
+
contract: {
|
|
85
|
+
type: string;
|
|
86
|
+
value: {
|
|
87
|
+
version: number;
|
|
88
|
+
role: string;
|
|
89
|
+
summary: string;
|
|
90
|
+
parametersFrom: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
steps: ({
|
|
95
|
+
id: string;
|
|
96
|
+
type: string;
|
|
97
|
+
variable: string;
|
|
98
|
+
value: string;
|
|
99
|
+
asSpoken?: undefined;
|
|
100
|
+
value_es?: undefined;
|
|
101
|
+
pii?: undefined;
|
|
102
|
+
branches?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
id: string;
|
|
105
|
+
type: string;
|
|
106
|
+
variable: string;
|
|
107
|
+
asSpoken: string;
|
|
108
|
+
value: string;
|
|
109
|
+
value_es: string;
|
|
110
|
+
pii: string;
|
|
111
|
+
branches?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
id: string;
|
|
114
|
+
type: string;
|
|
115
|
+
branches: {
|
|
116
|
+
"condition: ac_late": {
|
|
117
|
+
id: string;
|
|
118
|
+
type: string;
|
|
119
|
+
value: string;
|
|
120
|
+
callType: string;
|
|
121
|
+
parameters: {
|
|
122
|
+
question: string;
|
|
123
|
+
question_es: string;
|
|
124
|
+
code: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
default: {
|
|
128
|
+
id: string;
|
|
129
|
+
type: string;
|
|
130
|
+
variable: string;
|
|
131
|
+
value: string;
|
|
132
|
+
};
|
|
133
|
+
"condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
134
|
+
"condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
|
|
135
|
+
"condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
|
|
136
|
+
"condition: ac_missed"?: undefined;
|
|
137
|
+
"condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
138
|
+
"condition: ac_key === '__switch'"?: undefined;
|
|
139
|
+
"condition: ac_key === '__agent'"?: undefined;
|
|
140
|
+
"condition: ac_key === '__exit'"?: undefined;
|
|
141
|
+
"condition: ac_key === '__text'"?: undefined;
|
|
142
|
+
"condition: ac_key === '__amount'"?: undefined;
|
|
143
|
+
"condition: ac_key === '__elsewhere'"?: undefined;
|
|
144
|
+
"condition: ac_key === '' && ac_other"?: undefined;
|
|
145
|
+
"condition: ac_key === ''"?: undefined;
|
|
146
|
+
};
|
|
147
|
+
variable?: undefined;
|
|
148
|
+
value?: undefined;
|
|
149
|
+
asSpoken?: undefined;
|
|
150
|
+
value_es?: undefined;
|
|
151
|
+
pii?: undefined;
|
|
152
|
+
} | {
|
|
153
|
+
id: string;
|
|
154
|
+
type: string;
|
|
155
|
+
branches: {
|
|
156
|
+
"condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''": {
|
|
157
|
+
id: string;
|
|
158
|
+
type: string;
|
|
159
|
+
variable: string;
|
|
160
|
+
asSpoken: string;
|
|
161
|
+
value: string;
|
|
162
|
+
value_es: string;
|
|
163
|
+
pii: string;
|
|
164
|
+
};
|
|
165
|
+
default: {
|
|
166
|
+
id: string;
|
|
167
|
+
type: string;
|
|
168
|
+
variable: string;
|
|
169
|
+
value: string;
|
|
170
|
+
};
|
|
171
|
+
"condition: ac_late"?: undefined;
|
|
172
|
+
"condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
|
|
173
|
+
"condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
|
|
174
|
+
"condition: ac_missed"?: undefined;
|
|
175
|
+
"condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
176
|
+
"condition: ac_key === '__switch'"?: undefined;
|
|
177
|
+
"condition: ac_key === '__agent'"?: undefined;
|
|
178
|
+
"condition: ac_key === '__exit'"?: undefined;
|
|
179
|
+
"condition: ac_key === '__text'"?: undefined;
|
|
180
|
+
"condition: ac_key === '__amount'"?: undefined;
|
|
181
|
+
"condition: ac_key === '__elsewhere'"?: undefined;
|
|
182
|
+
"condition: ac_key === '' && ac_other"?: undefined;
|
|
183
|
+
"condition: ac_key === ''"?: undefined;
|
|
184
|
+
};
|
|
185
|
+
variable?: undefined;
|
|
186
|
+
value?: undefined;
|
|
187
|
+
asSpoken?: undefined;
|
|
188
|
+
value_es?: undefined;
|
|
189
|
+
pii?: undefined;
|
|
190
|
+
} | {
|
|
191
|
+
id: string;
|
|
192
|
+
type: string;
|
|
193
|
+
branches: {
|
|
194
|
+
"condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()": {
|
|
195
|
+
id: string;
|
|
196
|
+
type: string;
|
|
197
|
+
value: string;
|
|
198
|
+
callType: string;
|
|
199
|
+
parameters: {
|
|
200
|
+
answer: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
default: {
|
|
204
|
+
id: string;
|
|
205
|
+
type: string;
|
|
206
|
+
variable: string;
|
|
207
|
+
value: string;
|
|
208
|
+
};
|
|
209
|
+
"condition: ac_late"?: undefined;
|
|
210
|
+
"condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
211
|
+
"condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
|
|
212
|
+
"condition: ac_missed"?: undefined;
|
|
213
|
+
"condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
214
|
+
"condition: ac_key === '__switch'"?: undefined;
|
|
215
|
+
"condition: ac_key === '__agent'"?: undefined;
|
|
216
|
+
"condition: ac_key === '__exit'"?: undefined;
|
|
217
|
+
"condition: ac_key === '__text'"?: undefined;
|
|
218
|
+
"condition: ac_key === '__amount'"?: undefined;
|
|
219
|
+
"condition: ac_key === '__elsewhere'"?: undefined;
|
|
220
|
+
"condition: ac_key === '' && ac_other"?: undefined;
|
|
221
|
+
"condition: ac_key === ''"?: undefined;
|
|
222
|
+
};
|
|
223
|
+
variable?: undefined;
|
|
224
|
+
value?: undefined;
|
|
225
|
+
asSpoken?: undefined;
|
|
226
|
+
value_es?: undefined;
|
|
227
|
+
pii?: undefined;
|
|
228
|
+
} | {
|
|
229
|
+
id: string;
|
|
230
|
+
type: string;
|
|
231
|
+
branches: {
|
|
232
|
+
"condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()": {
|
|
233
|
+
id: string;
|
|
234
|
+
type: string;
|
|
235
|
+
value: string;
|
|
236
|
+
callType: string;
|
|
237
|
+
parameters: {
|
|
238
|
+
answer: string;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
default: {
|
|
242
|
+
id: string;
|
|
243
|
+
type: string;
|
|
244
|
+
variable: string;
|
|
245
|
+
value: string;
|
|
246
|
+
};
|
|
247
|
+
"condition: ac_late"?: undefined;
|
|
248
|
+
"condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
249
|
+
"condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
|
|
250
|
+
"condition: ac_missed"?: undefined;
|
|
251
|
+
"condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
252
|
+
"condition: ac_key === '__switch'"?: undefined;
|
|
253
|
+
"condition: ac_key === '__agent'"?: undefined;
|
|
254
|
+
"condition: ac_key === '__exit'"?: undefined;
|
|
255
|
+
"condition: ac_key === '__text'"?: undefined;
|
|
256
|
+
"condition: ac_key === '__amount'"?: undefined;
|
|
257
|
+
"condition: ac_key === '__elsewhere'"?: undefined;
|
|
258
|
+
"condition: ac_key === '' && ac_other"?: undefined;
|
|
259
|
+
"condition: ac_key === ''"?: undefined;
|
|
260
|
+
};
|
|
261
|
+
variable?: undefined;
|
|
262
|
+
value?: undefined;
|
|
263
|
+
asSpoken?: undefined;
|
|
264
|
+
value_es?: undefined;
|
|
265
|
+
pii?: undefined;
|
|
266
|
+
} | {
|
|
267
|
+
id: string;
|
|
268
|
+
type: string;
|
|
269
|
+
branches: {
|
|
270
|
+
"condition: ac_missed": {
|
|
271
|
+
id: string;
|
|
272
|
+
type: string;
|
|
273
|
+
variable: string;
|
|
274
|
+
asSpoken: string;
|
|
275
|
+
value: string;
|
|
276
|
+
value_es: string;
|
|
277
|
+
pii: string;
|
|
278
|
+
};
|
|
279
|
+
default: {
|
|
280
|
+
id: string;
|
|
281
|
+
type: string;
|
|
282
|
+
variable: string;
|
|
283
|
+
value: string;
|
|
284
|
+
};
|
|
285
|
+
"condition: ac_late"?: undefined;
|
|
286
|
+
"condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
287
|
+
"condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
|
|
288
|
+
"condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
|
|
289
|
+
"condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
290
|
+
"condition: ac_key === '__switch'"?: undefined;
|
|
291
|
+
"condition: ac_key === '__agent'"?: undefined;
|
|
292
|
+
"condition: ac_key === '__exit'"?: undefined;
|
|
293
|
+
"condition: ac_key === '__text'"?: undefined;
|
|
294
|
+
"condition: ac_key === '__amount'"?: undefined;
|
|
295
|
+
"condition: ac_key === '__elsewhere'"?: undefined;
|
|
296
|
+
"condition: ac_key === '' && ac_other"?: undefined;
|
|
297
|
+
"condition: ac_key === ''"?: undefined;
|
|
298
|
+
};
|
|
299
|
+
variable?: undefined;
|
|
300
|
+
value?: undefined;
|
|
301
|
+
asSpoken?: undefined;
|
|
302
|
+
value_es?: undefined;
|
|
303
|
+
pii?: undefined;
|
|
304
|
+
} | {
|
|
305
|
+
id: string;
|
|
306
|
+
type: string;
|
|
307
|
+
branches: {
|
|
308
|
+
"condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''": {
|
|
309
|
+
id: string;
|
|
310
|
+
type: string;
|
|
311
|
+
variable: string;
|
|
312
|
+
asSpoken: string;
|
|
313
|
+
value: string;
|
|
314
|
+
value_es: string;
|
|
315
|
+
pii: string;
|
|
316
|
+
};
|
|
317
|
+
default: {
|
|
318
|
+
id: string;
|
|
319
|
+
type: string;
|
|
320
|
+
variable: string;
|
|
321
|
+
value: string;
|
|
322
|
+
};
|
|
323
|
+
"condition: ac_late"?: undefined;
|
|
324
|
+
"condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
325
|
+
"condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
|
|
326
|
+
"condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
|
|
327
|
+
"condition: ac_missed"?: undefined;
|
|
328
|
+
"condition: ac_key === '__switch'"?: undefined;
|
|
329
|
+
"condition: ac_key === '__agent'"?: undefined;
|
|
330
|
+
"condition: ac_key === '__exit'"?: undefined;
|
|
331
|
+
"condition: ac_key === '__text'"?: undefined;
|
|
332
|
+
"condition: ac_key === '__amount'"?: undefined;
|
|
333
|
+
"condition: ac_key === '__elsewhere'"?: undefined;
|
|
334
|
+
"condition: ac_key === '' && ac_other"?: undefined;
|
|
335
|
+
"condition: ac_key === ''"?: undefined;
|
|
336
|
+
};
|
|
337
|
+
variable?: undefined;
|
|
338
|
+
value?: undefined;
|
|
339
|
+
asSpoken?: undefined;
|
|
340
|
+
value_es?: undefined;
|
|
341
|
+
pii?: undefined;
|
|
342
|
+
} | {
|
|
343
|
+
id: string;
|
|
344
|
+
type: string;
|
|
345
|
+
branches: {
|
|
346
|
+
"condition: ac_key === '__switch'": {
|
|
347
|
+
id: string;
|
|
348
|
+
type: string;
|
|
349
|
+
value: string;
|
|
350
|
+
callType: string;
|
|
351
|
+
};
|
|
352
|
+
"condition: ac_key === '__agent'": {
|
|
353
|
+
id: string;
|
|
354
|
+
type: string;
|
|
355
|
+
value: string;
|
|
356
|
+
callType: string;
|
|
357
|
+
};
|
|
358
|
+
"condition: ac_key === '__exit'": {
|
|
359
|
+
id: string;
|
|
360
|
+
type: string;
|
|
361
|
+
value: string;
|
|
362
|
+
callType: string;
|
|
363
|
+
parameters: {
|
|
364
|
+
support_context: string;
|
|
365
|
+
support_context_es: string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
"condition: ac_key === '__text'": {
|
|
369
|
+
id: string;
|
|
370
|
+
type: string;
|
|
371
|
+
value: string;
|
|
372
|
+
callType: string;
|
|
373
|
+
};
|
|
374
|
+
"condition: ac_key === '__amount'": {
|
|
375
|
+
id: string;
|
|
376
|
+
type: string;
|
|
377
|
+
variable: string;
|
|
378
|
+
value: string;
|
|
379
|
+
};
|
|
380
|
+
"condition: ac_key === '__elsewhere'": {
|
|
381
|
+
id: string;
|
|
382
|
+
type: string;
|
|
383
|
+
outcome: string;
|
|
384
|
+
reason: string;
|
|
385
|
+
};
|
|
386
|
+
"condition: ac_key === '' && ac_other": {
|
|
387
|
+
id: string;
|
|
388
|
+
type: string;
|
|
389
|
+
variable: string;
|
|
390
|
+
value: string;
|
|
391
|
+
};
|
|
392
|
+
"condition: ac_key === ''": {
|
|
393
|
+
id: string;
|
|
394
|
+
type: string;
|
|
395
|
+
outcome: string;
|
|
396
|
+
reason: string;
|
|
397
|
+
};
|
|
398
|
+
default: {
|
|
399
|
+
id: string;
|
|
400
|
+
type: string;
|
|
401
|
+
variable: string;
|
|
402
|
+
value: string;
|
|
403
|
+
};
|
|
404
|
+
"condition: ac_late"?: undefined;
|
|
405
|
+
"condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
406
|
+
"condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
|
|
407
|
+
"condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
|
|
408
|
+
"condition: ac_missed"?: undefined;
|
|
409
|
+
"condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
|
|
410
|
+
};
|
|
411
|
+
variable?: undefined;
|
|
412
|
+
value?: undefined;
|
|
413
|
+
asSpoken?: undefined;
|
|
414
|
+
value_es?: undefined;
|
|
415
|
+
pii?: undefined;
|
|
416
|
+
})[];
|
|
417
|
+
scope: string;
|
|
418
|
+
}[];
|
|
419
|
+
//# sourceMappingURL=choice-flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"choice-flow.d.ts","sourceRoot":"","sources":["../../src/forms/choice-flow.js"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAisBE"}
|