@onereach/step-voice 6.0.17 → 6.0.18
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/dst/Choice.js +6 -3
- package/dst/Custom Voice Input.js +4 -2
- package/dst/Keypad Input.js +4 -2
- package/dst/voice.d.ts +1 -1
- package/dst/voice.js +5 -2
- package/package.json +1 -1
package/dst/Choice.js
CHANGED
|
@@ -129,7 +129,8 @@ class Choice extends voice_1.default {
|
|
|
129
129
|
noReplyDelay,
|
|
130
130
|
speechSections,
|
|
131
131
|
textType,
|
|
132
|
-
ttsSettings
|
|
132
|
+
ttsSettings,
|
|
133
|
+
sensitiveData
|
|
133
134
|
});
|
|
134
135
|
return this.exitFlow();
|
|
135
136
|
}
|
|
@@ -183,7 +184,8 @@ class Choice extends voice_1.default {
|
|
|
183
184
|
noReplyDelay,
|
|
184
185
|
speechSections,
|
|
185
186
|
textType,
|
|
186
|
-
ttsSettings
|
|
187
|
+
ttsSettings,
|
|
188
|
+
sensitiveData
|
|
187
189
|
});
|
|
188
190
|
return this.exitFlow();
|
|
189
191
|
}
|
|
@@ -213,7 +215,8 @@ class Choice extends voice_1.default {
|
|
|
213
215
|
noReplyDelay,
|
|
214
216
|
speechSections,
|
|
215
217
|
textType,
|
|
216
|
-
ttsSettings
|
|
218
|
+
ttsSettings,
|
|
219
|
+
sensitiveData
|
|
217
220
|
});
|
|
218
221
|
return this.exitFlow();
|
|
219
222
|
}
|
|
@@ -131,7 +131,8 @@ class CustomVoiceInput extends voice_1.default {
|
|
|
131
131
|
noReplyDelay,
|
|
132
132
|
speechSections,
|
|
133
133
|
textType,
|
|
134
|
-
ttsSettings
|
|
134
|
+
ttsSettings,
|
|
135
|
+
sensitiveData
|
|
135
136
|
});
|
|
136
137
|
return this.exitFlow();
|
|
137
138
|
}
|
|
@@ -161,7 +162,8 @@ class CustomVoiceInput extends voice_1.default {
|
|
|
161
162
|
noReplyDelay,
|
|
162
163
|
speechSections,
|
|
163
164
|
textType,
|
|
164
|
-
ttsSettings
|
|
165
|
+
ttsSettings,
|
|
166
|
+
sensitiveData
|
|
165
167
|
});
|
|
166
168
|
return this.exitFlow();
|
|
167
169
|
}
|
package/dst/Keypad Input.js
CHANGED
|
@@ -102,7 +102,8 @@ class KeypadInput extends voice_1.default {
|
|
|
102
102
|
noReplyDelay,
|
|
103
103
|
speechSections,
|
|
104
104
|
textType,
|
|
105
|
-
ttsSettings
|
|
105
|
+
ttsSettings,
|
|
106
|
+
sensitiveData
|
|
106
107
|
});
|
|
107
108
|
return this.exitFlow();
|
|
108
109
|
}
|
|
@@ -131,7 +132,8 @@ class KeypadInput extends voice_1.default {
|
|
|
131
132
|
noReplyDelay,
|
|
132
133
|
speechSections,
|
|
133
134
|
textType,
|
|
134
|
-
ttsSettings
|
|
135
|
+
ttsSettings,
|
|
136
|
+
sensitiveData
|
|
135
137
|
});
|
|
136
138
|
return this.exitFlow();
|
|
137
139
|
}
|
package/dst/voice.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export default class VoiceStep<TIn = unknown, TOut = unknown, TParams extends Vo
|
|
|
75
75
|
buildChoices({ choices }: TODO): TODO;
|
|
76
76
|
buildChoice(choice: TODO): TODO;
|
|
77
77
|
exitChoiceData(type: string, params?: TODO): TODO;
|
|
78
|
-
rptsSend(call: IVoiceCall, { command, reporting, repromptsList, noReplyDelay, speechSections, textType, ttsSettings }: TODO): Promise<void>;
|
|
78
|
+
rptsSend(call: IVoiceCall, { command, reporting, repromptsList, noReplyDelay, speechSections, textType, ttsSettings, sensitiveData }: TODO): Promise<void>;
|
|
79
79
|
rptsTimeout({ noReplyDelay, repromptsList }: TODO): number;
|
|
80
80
|
rptsRestart(): void;
|
|
81
81
|
rptsHasMore({ repromptsList }: TODO): boolean;
|
package/dst/voice.js
CHANGED
|
@@ -336,7 +336,7 @@ class VoiceStep extends step_1.default {
|
|
|
336
336
|
return data;
|
|
337
337
|
}
|
|
338
338
|
;
|
|
339
|
-
async rptsSend(call, { command, reporting, repromptsList, noReplyDelay, speechSections, textType, ttsSettings }) {
|
|
339
|
+
async rptsSend(call, { command, reporting, repromptsList, noReplyDelay, speechSections, textType, ttsSettings, sensitiveData }) {
|
|
340
340
|
const index = this.rptsIndex;
|
|
341
341
|
const current = repromptsList[index];
|
|
342
342
|
const params = command.params;
|
|
@@ -372,7 +372,10 @@ class VoiceStep extends step_1.default {
|
|
|
372
372
|
lodash_1.default.assign(reportingObject, reporting);
|
|
373
373
|
}
|
|
374
374
|
await this.transcript(call, reportingObject);
|
|
375
|
-
|
|
375
|
+
if (call.vv >= 2)
|
|
376
|
+
await this.pauseRecording(call, command, sensitiveData);
|
|
377
|
+
else
|
|
378
|
+
await this.sendCommands(call, [command]);
|
|
376
379
|
}
|
|
377
380
|
rptsTimeout({ noReplyDelay, repromptsList }) {
|
|
378
381
|
const current = repromptsList[this.rptsIndex];
|