@wildix/wda-insights-client 1.0.21 → 1.0.23

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.
@@ -631,10 +631,22 @@ const de_InsightsCharacteristics = (output, context) => {
631
631
  const de_InsightsSentiment = (output, context) => {
632
632
  return (0, smithy_client_1.take)(output, {
633
633
  'score': smithy_client_1.limitedParseFloat32,
634
- 'scoreByParticipant': (_) => de_InsightsSentimentScoreByParticipantList(_, context),
635
- 'scoreByPeriod': (_) => de_InsightsSentimentScoreByPeriodList(_, context),
634
+ 'scoreByParticipant': (_) => de_InsightsSentimentScoreByPeriodList(_, context),
635
+ 'scoreByPeriod': (_) => de_InsightsSentimentScoreByParticipantList(_, 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': (_) => de_InsightsSentimentScoreByParticipantList(_, context),
666
+ 'participants': (_) => de_InsightsSentimentParticipantScoreList(_, context),
655
667
  'score': smithy_client_1.limitedParseFloat32,
656
668
  });
657
669
  };
@@ -610,10 +610,22 @@ const de_InsightsCharacteristics = (output, context) => {
610
610
  const de_InsightsSentiment = (output, context) => {
611
611
  return take(output, {
612
612
  'score': __limitedParseFloat32,
613
- 'scoreByParticipant': (_) => de_InsightsSentimentScoreByParticipantList(_, context),
614
- 'scoreByPeriod': (_) => de_InsightsSentimentScoreByPeriodList(_, context),
613
+ 'scoreByParticipant': (_) => de_InsightsSentimentScoreByPeriodList(_, context),
614
+ 'scoreByPeriod': (_) => de_InsightsSentimentScoreByParticipantList(_, 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': (_) => de_InsightsSentimentScoreByParticipantList(_, context),
645
+ 'participants': (_) => de_InsightsSentimentParticipantScoreList(_, context),
634
646
  'score': __limitedParseFloat32,
635
647
  });
636
648
  };
@@ -59,27 +59,25 @@ export interface GetCallCharacteristicsCommandOutput extends GetCallCharacterist
59
59
  * // duration: Number("long"),
60
60
  * // sentiment: { // InsightsSentiment
61
61
  * // score: Number("float"),
62
- * // scoreByParticipant: [ // InsightsSentimentScoreByParticipantList
63
- * // { // InsightsSentimentScoreByParticipantChunk
64
- * // interrupter: "STRING_VALUE", // required
65
- * // score: Number("float"), // required
66
- * // startTime: Number("long"), // required
67
- * // endTime: Number("long"), // required
68
- * // },
69
- * // ],
70
- * // scoreByPeriod: [ // InsightsSentimentScoreByPeriodList
62
+ * // scoreByParticipant: [ // InsightsSentimentScoreByPeriodList
71
63
  * // { // InsightsSentimentScoreByPeriodChunk
72
64
  * // score: Number("float"), // required
73
- * // participants: [
74
- * // {
65
+ * // participants: [ // InsightsSentimentParticipantScoreList
66
+ * // { // InsightsSentimentParticipantScore
75
67
  * // interrupter: "STRING_VALUE", // required
76
68
  * // score: Number("float"), // required
77
- * // startTime: Number("long"), // required
78
- * // endTime: Number("long"), // required
79
69
  * // },
80
70
  * // ],
81
71
  * // },
82
72
  * // ],
73
+ * // scoreByPeriod: [ // InsightsSentimentScoreByParticipantList
74
+ * // { // InsightsSentimentScoreByParticipantChunk
75
+ * // interrupter: "STRING_VALUE", // required
76
+ * // score: Number("float"), // required
77
+ * // startTime: Number("long"), // required
78
+ * // endTime: Number("long"), // required
79
+ * // },
80
+ * // ],
83
81
  * // },
84
82
  * // talkSpeed: { // InsightsCharacteristicsTalkSpeed
85
83
  * // detailsByParticipant: [ // InsightsTalkSpeedChunkList
@@ -437,26 +437,33 @@ export interface InsightsNonTalkTime {
437
437
  /**
438
438
  * @public
439
439
  */
440
- export interface InsightsSentimentScoreByParticipantChunk {
440
+ export interface InsightsSentimentParticipantScore {
441
441
  interrupter: string;
442
442
  score: number;
443
- startTime: number;
444
- endTime: number;
445
443
  }
446
444
  /**
447
445
  * @public
448
446
  */
449
447
  export interface InsightsSentimentScoreByPeriodChunk {
450
448
  score: number;
451
- participants?: (InsightsSentimentScoreByParticipantChunk)[];
449
+ participants?: (InsightsSentimentParticipantScore)[];
450
+ }
451
+ /**
452
+ * @public
453
+ */
454
+ export interface InsightsSentimentScoreByParticipantChunk {
455
+ interrupter: string;
456
+ score: number;
457
+ startTime: number;
458
+ endTime: number;
452
459
  }
453
460
  /**
454
461
  * @public
455
462
  */
456
463
  export interface InsightsSentiment {
457
464
  score?: number;
458
- scoreByParticipant?: (InsightsSentimentScoreByParticipantChunk)[];
459
- scoreByPeriod?: (InsightsSentimentScoreByPeriodChunk)[];
465
+ scoreByParticipant?: (InsightsSentimentScoreByPeriodChunk)[];
466
+ scoreByPeriod?: (InsightsSentimentScoreByParticipantChunk)[];
460
467
  }
461
468
  /**
462
469
  * @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.21",
4
+ "version": "1.0.23",
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",