@wildix/wda-insights-client 1.0.21 → 1.0.22
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.
|
@@ -635,6 +635,18 @@ const de_InsightsSentiment = (output, context) => {
|
|
|
635
635
|
'scoreByPeriod': (_) => de_InsightsSentimentScoreByPeriodList(_, context),
|
|
636
636
|
});
|
|
637
637
|
};
|
|
638
|
+
const de_InsightsSentimentParticipantScore = (output, context) => {
|
|
639
|
+
return (0, smithy_client_1.take)(output, {
|
|
640
|
+
'interrupter': smithy_client_1.expectString,
|
|
641
|
+
'score': smithy_client_1.limitedParseFloat32,
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
const de_InsightsSentimentParticipantScoreList = (output, context) => {
|
|
645
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
646
|
+
return de_InsightsSentimentParticipantScore(entry, context);
|
|
647
|
+
});
|
|
648
|
+
return retVal;
|
|
649
|
+
};
|
|
638
650
|
const de_InsightsSentimentScoreByParticipantChunk = (output, context) => {
|
|
639
651
|
return (0, smithy_client_1.take)(output, {
|
|
640
652
|
'endTime': smithy_client_1.expectLong,
|
|
@@ -651,7 +663,7 @@ const de_InsightsSentimentScoreByParticipantList = (output, context) => {
|
|
|
651
663
|
};
|
|
652
664
|
const de_InsightsSentimentScoreByPeriodChunk = (output, context) => {
|
|
653
665
|
return (0, smithy_client_1.take)(output, {
|
|
654
|
-
'participants': (_) =>
|
|
666
|
+
'participants': (_) => de_InsightsSentimentParticipantScoreList(_, context),
|
|
655
667
|
'score': smithy_client_1.limitedParseFloat32,
|
|
656
668
|
});
|
|
657
669
|
};
|
|
@@ -614,6 +614,18 @@ const de_InsightsSentiment = (output, context) => {
|
|
|
614
614
|
'scoreByPeriod': (_) => de_InsightsSentimentScoreByPeriodList(_, context),
|
|
615
615
|
});
|
|
616
616
|
};
|
|
617
|
+
const de_InsightsSentimentParticipantScore = (output, context) => {
|
|
618
|
+
return take(output, {
|
|
619
|
+
'interrupter': __expectString,
|
|
620
|
+
'score': __limitedParseFloat32,
|
|
621
|
+
});
|
|
622
|
+
};
|
|
623
|
+
const de_InsightsSentimentParticipantScoreList = (output, context) => {
|
|
624
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
625
|
+
return de_InsightsSentimentParticipantScore(entry, context);
|
|
626
|
+
});
|
|
627
|
+
return retVal;
|
|
628
|
+
};
|
|
617
629
|
const de_InsightsSentimentScoreByParticipantChunk = (output, context) => {
|
|
618
630
|
return take(output, {
|
|
619
631
|
'endTime': __expectLong,
|
|
@@ -630,7 +642,7 @@ const de_InsightsSentimentScoreByParticipantList = (output, context) => {
|
|
|
630
642
|
};
|
|
631
643
|
const de_InsightsSentimentScoreByPeriodChunk = (output, context) => {
|
|
632
644
|
return take(output, {
|
|
633
|
-
'participants': (_) =>
|
|
645
|
+
'participants': (_) => de_InsightsSentimentParticipantScoreList(_, context),
|
|
634
646
|
'score': __limitedParseFloat32,
|
|
635
647
|
});
|
|
636
648
|
};
|
|
@@ -70,12 +70,10 @@ export interface GetCallCharacteristicsCommandOutput extends GetCallCharacterist
|
|
|
70
70
|
* // scoreByPeriod: [ // InsightsSentimentScoreByPeriodList
|
|
71
71
|
* // { // InsightsSentimentScoreByPeriodChunk
|
|
72
72
|
* // score: Number("float"), // required
|
|
73
|
-
* // participants: [
|
|
74
|
-
* // {
|
|
73
|
+
* // participants: [ // InsightsSentimentParticipantScoreList
|
|
74
|
+
* // { // InsightsSentimentParticipantScore
|
|
75
75
|
* // interrupter: "STRING_VALUE", // required
|
|
76
76
|
* // score: Number("float"), // required
|
|
77
|
-
* // startTime: Number("long"), // required
|
|
78
|
-
* // endTime: Number("long"), // required
|
|
79
77
|
* // },
|
|
80
78
|
* // ],
|
|
81
79
|
* // },
|
|
@@ -443,12 +443,19 @@ export interface InsightsSentimentScoreByParticipantChunk {
|
|
|
443
443
|
startTime: number;
|
|
444
444
|
endTime: number;
|
|
445
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* @public
|
|
448
|
+
*/
|
|
449
|
+
export interface InsightsSentimentParticipantScore {
|
|
450
|
+
interrupter: string;
|
|
451
|
+
score: number;
|
|
452
|
+
}
|
|
446
453
|
/**
|
|
447
454
|
* @public
|
|
448
455
|
*/
|
|
449
456
|
export interface InsightsSentimentScoreByPeriodChunk {
|
|
450
457
|
score: number;
|
|
451
|
-
participants?: (
|
|
458
|
+
participants?: (InsightsSentimentParticipantScore)[];
|
|
452
459
|
}
|
|
453
460
|
/**
|
|
454
461
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wda-insights-client",
|
|
3
3
|
"description": "@wildix/wda-insights-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.22",
|
|
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",
|