@onereach/step-voice 6.0.17 → 6.0.19-repromptstimeout.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/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
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/strict-boolean-expressions, @typescript-eslint/explicit-function-return-type */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  const tslib_1 = require("tslib");
4
+ /* eslint-disable @typescript-eslint/strict-boolean-expressions, @typescript-eslint/explicit-function-return-type */
5
+ //@ts-nocheck
5
6
  const types_1 = require("@onereach/flow-sdk/dst/types");
6
7
  const lodash_1 = tslib_1.__importDefault(require("lodash"));
7
8
  const voice_1 = tslib_1.__importDefault(require("./voice"));
@@ -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/step.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  /* eslint-disable @typescript-eslint/strict-boolean-expressions */
3
+ //@ts-nocheck
3
4
  Object.defineProperty(exports, "__esModule", { value: true });
4
5
  const tslib_1 = require("tslib");
5
6
  const step_1 = tslib_1.__importDefault(require("@onereach/flow-sdk/dst/step"));
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
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  /* eslint-disable @typescript-eslint/strict-boolean-expressions */
3
+ //@ts-nocheck
3
4
  Object.defineProperty(exports, "__esModule", { value: true });
4
5
  exports.VoiceStepError = void 0;
5
6
  const tslib_1 = require("tslib");
@@ -336,7 +337,7 @@ class VoiceStep extends step_1.default {
336
337
  return data;
337
338
  }
338
339
  ;
339
- async rptsSend(call, { command, reporting, repromptsList, noReplyDelay, speechSections, textType, ttsSettings }) {
340
+ async rptsSend(call, { command, reporting, repromptsList, noReplyDelay, speechSections, textType, ttsSettings, sensitiveData }) {
340
341
  const index = this.rptsIndex;
341
342
  const current = repromptsList[index];
342
343
  const params = command.params;
@@ -372,11 +373,14 @@ class VoiceStep extends step_1.default {
372
373
  lodash_1.default.assign(reportingObject, reporting);
373
374
  }
374
375
  await this.transcript(call, reportingObject);
375
- await this.sendCommands(call, [command]);
376
+ if (call.vv >= 2)
377
+ await this.pauseRecording(call, command, sensitiveData);
378
+ else
379
+ await this.sendCommands(call, [command]);
376
380
  }
377
381
  rptsTimeout({ noReplyDelay, repromptsList }) {
378
- const current = repromptsList[this.rptsIndex];
379
- return Number(lodash_1.default.get(current, 'time', noReplyDelay)) * 1000 || 60000;
382
+ const next = repromptsList[this.rptsIndex + 1];
383
+ return Number(lodash_1.default.get(next, 'time', noReplyDelay)) * 1000 || 60000;
380
384
  }
381
385
  rptsRestart() {
382
386
  this.state.repIdx = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "6.0.17",
3
+ "version": "6.0.19-repromptstimeout.0",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",