@wildix/wim-voicebots-client 1.0.12 → 1.0.13
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.
|
@@ -312,7 +312,7 @@ const de_ListTracesCommand = async (output, context) => {
|
|
|
312
312
|
});
|
|
313
313
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
314
314
|
const doc = (0, smithy_client_1.take)(data, {
|
|
315
|
-
'traces':
|
|
315
|
+
'traces': _ => de_TraceSessionsList(_, context),
|
|
316
316
|
});
|
|
317
317
|
Object.assign(contents, doc);
|
|
318
318
|
return contents;
|
|
@@ -569,7 +569,7 @@ const de_PubSubBroadcastItem = (output, context) => {
|
|
|
569
569
|
}
|
|
570
570
|
if (output.session != null) {
|
|
571
571
|
return {
|
|
572
|
-
session: (
|
|
572
|
+
session: de_TraceSession(output.session, context)
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
575
|
return { $unknown: Object.entries(output)[0] };
|
|
@@ -591,7 +591,7 @@ const de_Trace = (output, context) => {
|
|
|
591
591
|
return (0, smithy_client_1.take)(output, {
|
|
592
592
|
'activities': (_) => de_TraceActivitiesList(_, context),
|
|
593
593
|
'segments': (_) => de_TraceSegmentsList(_, context),
|
|
594
|
-
'session':
|
|
594
|
+
'session': (_) => de_TraceSession(_, context),
|
|
595
595
|
});
|
|
596
596
|
};
|
|
597
597
|
const de_TraceActivitiesList = (output, context) => {
|
|
@@ -605,7 +605,7 @@ const de_TraceActivity = (output, context) => {
|
|
|
605
605
|
'duration': smithy_client_1.expectInt32,
|
|
606
606
|
'id': smithy_client_1.expectString,
|
|
607
607
|
'result': (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
608
|
-
'start': smithy_client_1.
|
|
608
|
+
'start': smithy_client_1.limitedParseDouble,
|
|
609
609
|
'status': smithy_client_1.expectString,
|
|
610
610
|
'trigger': (_) => de_TraceActivityTrigger((0, smithy_client_1.expectUnion)(_), context),
|
|
611
611
|
'version': smithy_client_1.expectInt32,
|
|
@@ -696,7 +696,7 @@ const de_TraceSegment = (output, context) => {
|
|
|
696
696
|
'id': smithy_client_1.expectString,
|
|
697
697
|
'input': (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
698
698
|
'result': (_) => de_TraceSegmentResult((0, smithy_client_1.expectUnion)(_), context),
|
|
699
|
-
'start': smithy_client_1.
|
|
699
|
+
'start': smithy_client_1.limitedParseDouble,
|
|
700
700
|
'status': smithy_client_1.expectString,
|
|
701
701
|
'version': smithy_client_1.expectInt32,
|
|
702
702
|
});
|
|
@@ -728,6 +728,29 @@ const de_TraceSegmentsList = (output, context) => {
|
|
|
728
728
|
});
|
|
729
729
|
return retVal;
|
|
730
730
|
};
|
|
731
|
+
const de_TraceSession = (output, context) => {
|
|
732
|
+
return (0, smithy_client_1.take)(output, {
|
|
733
|
+
'botId': smithy_client_1.expectString,
|
|
734
|
+
'botName': smithy_client_1.expectString,
|
|
735
|
+
'callId': smithy_client_1.expectString,
|
|
736
|
+
'callerName': smithy_client_1.expectString,
|
|
737
|
+
'callerNumber': smithy_client_1.expectString,
|
|
738
|
+
'company': smithy_client_1.expectString,
|
|
739
|
+
'connectionId': smithy_client_1.expectString,
|
|
740
|
+
'duration': smithy_client_1.expectInt32,
|
|
741
|
+
'flowIndex': smithy_client_1.expectInt32,
|
|
742
|
+
'language': smithy_client_1.expectString,
|
|
743
|
+
'sessionId': smithy_client_1.expectString,
|
|
744
|
+
'start': smithy_client_1.limitedParseDouble,
|
|
745
|
+
'status': smithy_client_1.expectString,
|
|
746
|
+
});
|
|
747
|
+
};
|
|
748
|
+
const de_TraceSessionsList = (output, context) => {
|
|
749
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
750
|
+
return de_TraceSession(entry, context);
|
|
751
|
+
});
|
|
752
|
+
return retVal;
|
|
753
|
+
};
|
|
731
754
|
const de_TraceSilenceTimeoutTaskTrigger = (output, context) => {
|
|
732
755
|
return (0, smithy_client_1.take)(output, {
|
|
733
756
|
'parameters': (_) => de_Document(_, context),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VoiceBotsServiceException as __BaseException } from "../models/VoiceBotsServiceException";
|
|
2
2
|
import { ForbiddenException, ValidationException, VoiceBotEndpoint, VoiceBotFunctionIntegration, VoiceBotNotFoundException, VoiceSessionNotFoundException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
export const se_CreateVoiceBotCommand = async (input, context) => {
|
|
6
6
|
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
@@ -292,7 +292,7 @@ export const de_ListTracesCommand = async (output, context) => {
|
|
|
292
292
|
});
|
|
293
293
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
294
294
|
const doc = take(data, {
|
|
295
|
-
'traces':
|
|
295
|
+
'traces': _ => de_TraceSessionsList(_, context),
|
|
296
296
|
});
|
|
297
297
|
Object.assign(contents, doc);
|
|
298
298
|
return contents;
|
|
@@ -542,7 +542,7 @@ const de_PubSubBroadcastItem = (output, context) => {
|
|
|
542
542
|
}
|
|
543
543
|
if (output.session != null) {
|
|
544
544
|
return {
|
|
545
|
-
session:
|
|
545
|
+
session: de_TraceSession(output.session, context)
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
548
|
return { $unknown: Object.entries(output)[0] };
|
|
@@ -564,7 +564,7 @@ const de_Trace = (output, context) => {
|
|
|
564
564
|
return take(output, {
|
|
565
565
|
'activities': (_) => de_TraceActivitiesList(_, context),
|
|
566
566
|
'segments': (_) => de_TraceSegmentsList(_, context),
|
|
567
|
-
'session':
|
|
567
|
+
'session': (_) => de_TraceSession(_, context),
|
|
568
568
|
});
|
|
569
569
|
};
|
|
570
570
|
const de_TraceActivitiesList = (output, context) => {
|
|
@@ -578,7 +578,7 @@ const de_TraceActivity = (output, context) => {
|
|
|
578
578
|
'duration': __expectInt32,
|
|
579
579
|
'id': __expectString,
|
|
580
580
|
'result': (_) => _json(__expectUnion(_)),
|
|
581
|
-
'start':
|
|
581
|
+
'start': __limitedParseDouble,
|
|
582
582
|
'status': __expectString,
|
|
583
583
|
'trigger': (_) => de_TraceActivityTrigger(__expectUnion(_), context),
|
|
584
584
|
'version': __expectInt32,
|
|
@@ -669,7 +669,7 @@ const de_TraceSegment = (output, context) => {
|
|
|
669
669
|
'id': __expectString,
|
|
670
670
|
'input': (_) => _json(__expectUnion(_)),
|
|
671
671
|
'result': (_) => de_TraceSegmentResult(__expectUnion(_), context),
|
|
672
|
-
'start':
|
|
672
|
+
'start': __limitedParseDouble,
|
|
673
673
|
'status': __expectString,
|
|
674
674
|
'version': __expectInt32,
|
|
675
675
|
});
|
|
@@ -701,6 +701,29 @@ const de_TraceSegmentsList = (output, context) => {
|
|
|
701
701
|
});
|
|
702
702
|
return retVal;
|
|
703
703
|
};
|
|
704
|
+
const de_TraceSession = (output, context) => {
|
|
705
|
+
return take(output, {
|
|
706
|
+
'botId': __expectString,
|
|
707
|
+
'botName': __expectString,
|
|
708
|
+
'callId': __expectString,
|
|
709
|
+
'callerName': __expectString,
|
|
710
|
+
'callerNumber': __expectString,
|
|
711
|
+
'company': __expectString,
|
|
712
|
+
'connectionId': __expectString,
|
|
713
|
+
'duration': __expectInt32,
|
|
714
|
+
'flowIndex': __expectInt32,
|
|
715
|
+
'language': __expectString,
|
|
716
|
+
'sessionId': __expectString,
|
|
717
|
+
'start': __limitedParseDouble,
|
|
718
|
+
'status': __expectString,
|
|
719
|
+
});
|
|
720
|
+
};
|
|
721
|
+
const de_TraceSessionsList = (output, context) => {
|
|
722
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
723
|
+
return de_TraceSession(entry, context);
|
|
724
|
+
});
|
|
725
|
+
return retVal;
|
|
726
|
+
};
|
|
704
727
|
const de_TraceSilenceTimeoutTaskTrigger = (output, context) => {
|
|
705
728
|
return take(output, {
|
|
706
729
|
'parameters': (_) => de_Document(_, context),
|
|
@@ -207,7 +207,7 @@ declare const DescribeEventCommand_base: {
|
|
|
207
207
|
* // callerName: "STRING_VALUE",
|
|
208
208
|
* // callerNumber: "STRING_VALUE",
|
|
209
209
|
* // status: "complete" || "complete_with_error" || "pending", // required
|
|
210
|
-
* // start: Number("
|
|
210
|
+
* // start: Number("double"), // required
|
|
211
211
|
* // duration: Number("int"),
|
|
212
212
|
* // },
|
|
213
213
|
* // activity: { // TraceActivity
|
|
@@ -307,7 +307,7 @@ declare const DescribeEventCommand_base: {
|
|
|
307
307
|
* // },
|
|
308
308
|
* // text: "STRING_VALUE",
|
|
309
309
|
* // },
|
|
310
|
-
* // start: Number("
|
|
310
|
+
* // start: Number("double"), // required
|
|
311
311
|
* // duration: Number("int"),
|
|
312
312
|
* // },
|
|
313
313
|
* // segment: { // TraceSegment
|
|
@@ -376,7 +376,7 @@ declare const DescribeEventCommand_base: {
|
|
|
376
376
|
* // text: "STRING_VALUE",
|
|
377
377
|
* // json: "DOCUMENT_VALUE",
|
|
378
378
|
* // },
|
|
379
|
-
* // start: Number("
|
|
379
|
+
* // start: Number("double"), // required
|
|
380
380
|
* // duration: Number("int"),
|
|
381
381
|
* // },
|
|
382
382
|
* // },
|
|
@@ -55,7 +55,7 @@ declare const GetTraceCommand_base: {
|
|
|
55
55
|
* // callerName: "STRING_VALUE",
|
|
56
56
|
* // callerNumber: "STRING_VALUE",
|
|
57
57
|
* // status: "complete" || "complete_with_error" || "pending", // required
|
|
58
|
-
* // start: Number("
|
|
58
|
+
* // start: Number("double"), // required
|
|
59
59
|
* // duration: Number("int"),
|
|
60
60
|
* // },
|
|
61
61
|
* // activities: [ // TraceActivitiesList // required
|
|
@@ -156,7 +156,7 @@ declare const GetTraceCommand_base: {
|
|
|
156
156
|
* // },
|
|
157
157
|
* // text: "STRING_VALUE",
|
|
158
158
|
* // },
|
|
159
|
-
* // start: Number("
|
|
159
|
+
* // start: Number("double"), // required
|
|
160
160
|
* // duration: Number("int"),
|
|
161
161
|
* // },
|
|
162
162
|
* // ],
|
|
@@ -227,7 +227,7 @@ declare const GetTraceCommand_base: {
|
|
|
227
227
|
* // text: "STRING_VALUE",
|
|
228
228
|
* // json: "DOCUMENT_VALUE",
|
|
229
229
|
* // },
|
|
230
|
-
* // start: Number("
|
|
230
|
+
* // start: Number("double"), // required
|
|
231
231
|
* // duration: Number("int"),
|
|
232
232
|
* // },
|
|
233
233
|
* // ],
|
|
@@ -54,7 +54,7 @@ declare const ListTracesCommand_base: {
|
|
|
54
54
|
* // callerName: "STRING_VALUE",
|
|
55
55
|
* // callerNumber: "STRING_VALUE",
|
|
56
56
|
* // status: "complete" || "complete_with_error" || "pending", // required
|
|
57
|
-
* // start: Number("
|
|
57
|
+
* // start: Number("double"), // required
|
|
58
58
|
* // duration: Number("int"),
|
|
59
59
|
* // },
|
|
60
60
|
* // ],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-voicebots-client",
|
|
3
3
|
"description": "@wildix/wim-voicebots-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.13",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|