@aws-sdk/client-connect-contact-lens 3.303.0 → 3.309.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.
@@ -36,10 +36,10 @@ class ListRealtimeContactAnalysisSegmentsCommand extends smithy_client_1.Command
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_ListRealtimeContactAnalysisSegmentsCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_ListRealtimeContactAnalysisSegmentsCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.ListRealtimeContactAnalysisSegmentsCommand = ListRealtimeContactAnalysisSegmentsCommand;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = exports.serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = void 0;
3
+ exports.de_ListRealtimeContactAnalysisSegmentsCommand = exports.se_ListRealtimeContactAnalysisSegmentsCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const ConnectContactLensServiceException_1 = require("../models/ConnectContactLensServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async (input, context) => {
8
+ const se_ListRealtimeContactAnalysisSegmentsCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -29,10 +29,10 @@ const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async (
29
29
  body,
30
30
  });
31
31
  };
32
- exports.serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand;
33
- const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async (output, context) => {
32
+ exports.se_ListRealtimeContactAnalysisSegmentsCommand = se_ListRealtimeContactAnalysisSegmentsCommand;
33
+ const de_ListRealtimeContactAnalysisSegmentsCommand = async (output, context) => {
34
34
  if (output.statusCode !== 200 && output.statusCode >= 300) {
35
- return deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError(output, context);
35
+ return de_ListRealtimeContactAnalysisSegmentsCommandError(output, context);
36
36
  }
37
37
  const contents = map({
38
38
  $metadata: deserializeMetadata(output),
@@ -42,12 +42,12 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async
42
42
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
43
43
  }
44
44
  if (data.Segments != null) {
45
- contents.Segments = deserializeAws_restJson1RealtimeContactAnalysisSegments(data.Segments, context);
45
+ contents.Segments = de_RealtimeContactAnalysisSegments(data.Segments, context);
46
46
  }
47
47
  return contents;
48
48
  };
49
- exports.deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand;
50
- const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = async (output, context) => {
49
+ exports.de_ListRealtimeContactAnalysisSegmentsCommand = de_ListRealtimeContactAnalysisSegmentsCommand;
50
+ const de_ListRealtimeContactAnalysisSegmentsCommandError = async (output, context) => {
51
51
  const parsedOutput = {
52
52
  ...output,
53
53
  body: await parseErrorBody(output.body, context),
@@ -56,19 +56,19 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
56
56
  switch (errorCode) {
57
57
  case "AccessDeniedException":
58
58
  case "com.amazonaws.connectcontactlens#AccessDeniedException":
59
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
59
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
60
60
  case "InternalServiceException":
61
61
  case "com.amazonaws.connectcontactlens#InternalServiceException":
62
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
62
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
63
63
  case "InvalidRequestException":
64
64
  case "com.amazonaws.connectcontactlens#InvalidRequestException":
65
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
65
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
66
66
  case "ResourceNotFoundException":
67
67
  case "com.amazonaws.connectcontactlens#ResourceNotFoundException":
68
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
68
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
69
69
  case "ThrottlingException":
70
70
  case "com.amazonaws.connectcontactlens#ThrottlingException":
71
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
71
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
72
72
  default:
73
73
  const parsedBody = parsedOutput.body;
74
74
  (0, smithy_client_1.throwDefaultError)({
@@ -80,7 +80,7 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
80
80
  }
81
81
  };
82
82
  const map = smithy_client_1.map;
83
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
83
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
84
84
  const contents = map({});
85
85
  const data = parsedOutput.body;
86
86
  if (data.Message != null) {
@@ -92,7 +92,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
92
92
  });
93
93
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
94
94
  };
95
- const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
95
+ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
96
96
  const contents = map({});
97
97
  const data = parsedOutput.body;
98
98
  if (data.Message != null) {
@@ -104,7 +104,7 @@ const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOu
104
104
  });
105
105
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
106
106
  };
107
- const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
107
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
108
108
  const contents = map({});
109
109
  const data = parsedOutput.body;
110
110
  if (data.Message != null) {
@@ -116,7 +116,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
116
116
  });
117
117
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
118
118
  };
119
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
119
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
120
120
  const contents = map({});
121
121
  const data = parsedOutput.body;
122
122
  if (data.Message != null) {
@@ -128,7 +128,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
128
128
  });
129
129
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
130
130
  };
131
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
131
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
132
132
  const contents = map({});
133
133
  const data = parsedOutput.body;
134
134
  if (data.Message != null) {
@@ -140,48 +140,40 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
140
140
  });
141
141
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
142
142
  };
143
- const deserializeAws_restJson1Categories = (output, context) => {
143
+ const de_Categories = (output, context) => {
144
144
  return {
145
- MatchedCategories: output.MatchedCategories != null
146
- ? deserializeAws_restJson1MatchedCategories(output.MatchedCategories, context)
147
- : undefined,
148
- MatchedDetails: output.MatchedDetails != null
149
- ? deserializeAws_restJson1MatchedDetails(output.MatchedDetails, context)
150
- : undefined,
145
+ MatchedCategories: output.MatchedCategories != null ? de_MatchedCategories(output.MatchedCategories, context) : undefined,
146
+ MatchedDetails: output.MatchedDetails != null ? de_MatchedDetails(output.MatchedDetails, context) : undefined,
151
147
  };
152
148
  };
153
- const deserializeAws_restJson1CategoryDetails = (output, context) => {
149
+ const de_CategoryDetails = (output, context) => {
154
150
  return {
155
- PointsOfInterest: output.PointsOfInterest != null
156
- ? deserializeAws_restJson1PointsOfInterest(output.PointsOfInterest, context)
157
- : undefined,
151
+ PointsOfInterest: output.PointsOfInterest != null ? de_PointsOfInterest(output.PointsOfInterest, context) : undefined,
158
152
  };
159
153
  };
160
- const deserializeAws_restJson1CharacterOffsets = (output, context) => {
154
+ const de_CharacterOffsets = (output, context) => {
161
155
  return {
162
156
  BeginOffsetChar: (0, smithy_client_1.expectInt32)(output.BeginOffsetChar),
163
157
  EndOffsetChar: (0, smithy_client_1.expectInt32)(output.EndOffsetChar),
164
158
  };
165
159
  };
166
- const deserializeAws_restJson1IssueDetected = (output, context) => {
160
+ const de_IssueDetected = (output, context) => {
167
161
  return {
168
- CharacterOffsets: output.CharacterOffsets != null
169
- ? deserializeAws_restJson1CharacterOffsets(output.CharacterOffsets, context)
170
- : undefined,
162
+ CharacterOffsets: output.CharacterOffsets != null ? de_CharacterOffsets(output.CharacterOffsets, context) : undefined,
171
163
  };
172
164
  };
173
- const deserializeAws_restJson1IssuesDetected = (output, context) => {
165
+ const de_IssuesDetected = (output, context) => {
174
166
  const retVal = (output || [])
175
167
  .filter((e) => e != null)
176
168
  .map((entry) => {
177
169
  if (entry === null) {
178
170
  return null;
179
171
  }
180
- return deserializeAws_restJson1IssueDetected(entry, context);
172
+ return de_IssueDetected(entry, context);
181
173
  });
182
174
  return retVal;
183
175
  };
184
- const deserializeAws_restJson1MatchedCategories = (output, context) => {
176
+ const de_MatchedCategories = (output, context) => {
185
177
  const retVal = (output || [])
186
178
  .filter((e) => e != null)
187
179
  .map((entry) => {
@@ -192,58 +184,56 @@ const deserializeAws_restJson1MatchedCategories = (output, context) => {
192
184
  });
193
185
  return retVal;
194
186
  };
195
- const deserializeAws_restJson1MatchedDetails = (output, context) => {
187
+ const de_MatchedDetails = (output, context) => {
196
188
  return Object.entries(output).reduce((acc, [key, value]) => {
197
189
  if (value === null) {
198
190
  return acc;
199
191
  }
200
- acc[key] = deserializeAws_restJson1CategoryDetails(value, context);
192
+ acc[key] = de_CategoryDetails(value, context);
201
193
  return acc;
202
194
  }, {});
203
195
  };
204
- const deserializeAws_restJson1PointOfInterest = (output, context) => {
196
+ const de_PointOfInterest = (output, context) => {
205
197
  return {
206
198
  BeginOffsetMillis: (0, smithy_client_1.expectInt32)(output.BeginOffsetMillis),
207
199
  EndOffsetMillis: (0, smithy_client_1.expectInt32)(output.EndOffsetMillis),
208
200
  };
209
201
  };
210
- const deserializeAws_restJson1PointsOfInterest = (output, context) => {
202
+ const de_PointsOfInterest = (output, context) => {
211
203
  const retVal = (output || [])
212
204
  .filter((e) => e != null)
213
205
  .map((entry) => {
214
206
  if (entry === null) {
215
207
  return null;
216
208
  }
217
- return deserializeAws_restJson1PointOfInterest(entry, context);
209
+ return de_PointOfInterest(entry, context);
218
210
  });
219
211
  return retVal;
220
212
  };
221
- const deserializeAws_restJson1RealtimeContactAnalysisSegment = (output, context) => {
213
+ const de_RealtimeContactAnalysisSegment = (output, context) => {
222
214
  return {
223
- Categories: output.Categories != null ? deserializeAws_restJson1Categories(output.Categories, context) : undefined,
224
- Transcript: output.Transcript != null ? deserializeAws_restJson1Transcript(output.Transcript, context) : undefined,
215
+ Categories: output.Categories != null ? de_Categories(output.Categories, context) : undefined,
216
+ Transcript: output.Transcript != null ? de_Transcript(output.Transcript, context) : undefined,
225
217
  };
226
218
  };
227
- const deserializeAws_restJson1RealtimeContactAnalysisSegments = (output, context) => {
219
+ const de_RealtimeContactAnalysisSegments = (output, context) => {
228
220
  const retVal = (output || [])
229
221
  .filter((e) => e != null)
230
222
  .map((entry) => {
231
223
  if (entry === null) {
232
224
  return null;
233
225
  }
234
- return deserializeAws_restJson1RealtimeContactAnalysisSegment(entry, context);
226
+ return de_RealtimeContactAnalysisSegment(entry, context);
235
227
  });
236
228
  return retVal;
237
229
  };
238
- const deserializeAws_restJson1Transcript = (output, context) => {
230
+ const de_Transcript = (output, context) => {
239
231
  return {
240
232
  BeginOffsetMillis: (0, smithy_client_1.expectInt32)(output.BeginOffsetMillis),
241
233
  Content: (0, smithy_client_1.expectString)(output.Content),
242
234
  EndOffsetMillis: (0, smithy_client_1.expectInt32)(output.EndOffsetMillis),
243
235
  Id: (0, smithy_client_1.expectString)(output.Id),
244
- IssuesDetected: output.IssuesDetected != null
245
- ? deserializeAws_restJson1IssuesDetected(output.IssuesDetected, context)
246
- : undefined,
236
+ IssuesDetected: output.IssuesDetected != null ? de_IssuesDetected(output.IssuesDetected, context) : undefined,
247
237
  ParticipantId: (0, smithy_client_1.expectString)(output.ParticipantId),
248
238
  ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
249
239
  Sentiment: (0, smithy_client_1.expectString)(output.Sentiment),
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand, serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_ListRealtimeContactAnalysisSegmentsCommand, se_ListRealtimeContactAnalysisSegmentsCommand, } from "../protocols/Aws_restJson1";
5
5
  export class ListRealtimeContactAnalysisSegmentsCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class ListRealtimeContactAnalysisSegmentsCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand(input, context);
36
+ return se_ListRealtimeContactAnalysisSegmentsCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand(output, context);
39
+ return de_ListRealtimeContactAnalysisSegmentsCommand(output, context);
40
40
  }
41
41
  }
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { ConnectContactLensServiceException as __BaseException } from "../models/ConnectContactLensServiceException";
4
4
  import { AccessDeniedException, InternalServiceException, InvalidRequestException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
5
- export const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async (input, context) => {
5
+ export const se_ListRealtimeContactAnalysisSegmentsCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -26,9 +26,9 @@ export const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand =
26
26
  body,
27
27
  });
28
28
  };
29
- export const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async (output, context) => {
29
+ export const de_ListRealtimeContactAnalysisSegmentsCommand = async (output, context) => {
30
30
  if (output.statusCode !== 200 && output.statusCode >= 300) {
31
- return deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError(output, context);
31
+ return de_ListRealtimeContactAnalysisSegmentsCommandError(output, context);
32
32
  }
33
33
  const contents = map({
34
34
  $metadata: deserializeMetadata(output),
@@ -38,11 +38,11 @@ export const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand
38
38
  contents.NextToken = __expectString(data.NextToken);
39
39
  }
40
40
  if (data.Segments != null) {
41
- contents.Segments = deserializeAws_restJson1RealtimeContactAnalysisSegments(data.Segments, context);
41
+ contents.Segments = de_RealtimeContactAnalysisSegments(data.Segments, context);
42
42
  }
43
43
  return contents;
44
44
  };
45
- const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = async (output, context) => {
45
+ const de_ListRealtimeContactAnalysisSegmentsCommandError = async (output, context) => {
46
46
  const parsedOutput = {
47
47
  ...output,
48
48
  body: await parseErrorBody(output.body, context),
@@ -51,19 +51,19 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
51
51
  switch (errorCode) {
52
52
  case "AccessDeniedException":
53
53
  case "com.amazonaws.connectcontactlens#AccessDeniedException":
54
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
54
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
55
55
  case "InternalServiceException":
56
56
  case "com.amazonaws.connectcontactlens#InternalServiceException":
57
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
57
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
58
58
  case "InvalidRequestException":
59
59
  case "com.amazonaws.connectcontactlens#InvalidRequestException":
60
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
60
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
61
61
  case "ResourceNotFoundException":
62
62
  case "com.amazonaws.connectcontactlens#ResourceNotFoundException":
63
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
63
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
64
64
  case "ThrottlingException":
65
65
  case "com.amazonaws.connectcontactlens#ThrottlingException":
66
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
66
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
67
67
  default:
68
68
  const parsedBody = parsedOutput.body;
69
69
  throwDefaultError({
@@ -75,7 +75,7 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
75
75
  }
76
76
  };
77
77
  const map = __map;
78
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
78
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
79
79
  const contents = map({});
80
80
  const data = parsedOutput.body;
81
81
  if (data.Message != null) {
@@ -87,7 +87,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
87
87
  });
88
88
  return __decorateServiceException(exception, parsedOutput.body);
89
89
  };
90
- const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
90
+ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
91
91
  const contents = map({});
92
92
  const data = parsedOutput.body;
93
93
  if (data.Message != null) {
@@ -99,7 +99,7 @@ const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOu
99
99
  });
100
100
  return __decorateServiceException(exception, parsedOutput.body);
101
101
  };
102
- const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
102
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
103
103
  const contents = map({});
104
104
  const data = parsedOutput.body;
105
105
  if (data.Message != null) {
@@ -111,7 +111,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
111
111
  });
112
112
  return __decorateServiceException(exception, parsedOutput.body);
113
113
  };
114
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
114
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
115
115
  const contents = map({});
116
116
  const data = parsedOutput.body;
117
117
  if (data.Message != null) {
@@ -123,7 +123,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
123
123
  });
124
124
  return __decorateServiceException(exception, parsedOutput.body);
125
125
  };
126
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
126
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
127
127
  const contents = map({});
128
128
  const data = parsedOutput.body;
129
129
  if (data.Message != null) {
@@ -135,48 +135,40 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
135
135
  });
136
136
  return __decorateServiceException(exception, parsedOutput.body);
137
137
  };
138
- const deserializeAws_restJson1Categories = (output, context) => {
138
+ const de_Categories = (output, context) => {
139
139
  return {
140
- MatchedCategories: output.MatchedCategories != null
141
- ? deserializeAws_restJson1MatchedCategories(output.MatchedCategories, context)
142
- : undefined,
143
- MatchedDetails: output.MatchedDetails != null
144
- ? deserializeAws_restJson1MatchedDetails(output.MatchedDetails, context)
145
- : undefined,
140
+ MatchedCategories: output.MatchedCategories != null ? de_MatchedCategories(output.MatchedCategories, context) : undefined,
141
+ MatchedDetails: output.MatchedDetails != null ? de_MatchedDetails(output.MatchedDetails, context) : undefined,
146
142
  };
147
143
  };
148
- const deserializeAws_restJson1CategoryDetails = (output, context) => {
144
+ const de_CategoryDetails = (output, context) => {
149
145
  return {
150
- PointsOfInterest: output.PointsOfInterest != null
151
- ? deserializeAws_restJson1PointsOfInterest(output.PointsOfInterest, context)
152
- : undefined,
146
+ PointsOfInterest: output.PointsOfInterest != null ? de_PointsOfInterest(output.PointsOfInterest, context) : undefined,
153
147
  };
154
148
  };
155
- const deserializeAws_restJson1CharacterOffsets = (output, context) => {
149
+ const de_CharacterOffsets = (output, context) => {
156
150
  return {
157
151
  BeginOffsetChar: __expectInt32(output.BeginOffsetChar),
158
152
  EndOffsetChar: __expectInt32(output.EndOffsetChar),
159
153
  };
160
154
  };
161
- const deserializeAws_restJson1IssueDetected = (output, context) => {
155
+ const de_IssueDetected = (output, context) => {
162
156
  return {
163
- CharacterOffsets: output.CharacterOffsets != null
164
- ? deserializeAws_restJson1CharacterOffsets(output.CharacterOffsets, context)
165
- : undefined,
157
+ CharacterOffsets: output.CharacterOffsets != null ? de_CharacterOffsets(output.CharacterOffsets, context) : undefined,
166
158
  };
167
159
  };
168
- const deserializeAws_restJson1IssuesDetected = (output, context) => {
160
+ const de_IssuesDetected = (output, context) => {
169
161
  const retVal = (output || [])
170
162
  .filter((e) => e != null)
171
163
  .map((entry) => {
172
164
  if (entry === null) {
173
165
  return null;
174
166
  }
175
- return deserializeAws_restJson1IssueDetected(entry, context);
167
+ return de_IssueDetected(entry, context);
176
168
  });
177
169
  return retVal;
178
170
  };
179
- const deserializeAws_restJson1MatchedCategories = (output, context) => {
171
+ const de_MatchedCategories = (output, context) => {
180
172
  const retVal = (output || [])
181
173
  .filter((e) => e != null)
182
174
  .map((entry) => {
@@ -187,58 +179,56 @@ const deserializeAws_restJson1MatchedCategories = (output, context) => {
187
179
  });
188
180
  return retVal;
189
181
  };
190
- const deserializeAws_restJson1MatchedDetails = (output, context) => {
182
+ const de_MatchedDetails = (output, context) => {
191
183
  return Object.entries(output).reduce((acc, [key, value]) => {
192
184
  if (value === null) {
193
185
  return acc;
194
186
  }
195
- acc[key] = deserializeAws_restJson1CategoryDetails(value, context);
187
+ acc[key] = de_CategoryDetails(value, context);
196
188
  return acc;
197
189
  }, {});
198
190
  };
199
- const deserializeAws_restJson1PointOfInterest = (output, context) => {
191
+ const de_PointOfInterest = (output, context) => {
200
192
  return {
201
193
  BeginOffsetMillis: __expectInt32(output.BeginOffsetMillis),
202
194
  EndOffsetMillis: __expectInt32(output.EndOffsetMillis),
203
195
  };
204
196
  };
205
- const deserializeAws_restJson1PointsOfInterest = (output, context) => {
197
+ const de_PointsOfInterest = (output, context) => {
206
198
  const retVal = (output || [])
207
199
  .filter((e) => e != null)
208
200
  .map((entry) => {
209
201
  if (entry === null) {
210
202
  return null;
211
203
  }
212
- return deserializeAws_restJson1PointOfInterest(entry, context);
204
+ return de_PointOfInterest(entry, context);
213
205
  });
214
206
  return retVal;
215
207
  };
216
- const deserializeAws_restJson1RealtimeContactAnalysisSegment = (output, context) => {
208
+ const de_RealtimeContactAnalysisSegment = (output, context) => {
217
209
  return {
218
- Categories: output.Categories != null ? deserializeAws_restJson1Categories(output.Categories, context) : undefined,
219
- Transcript: output.Transcript != null ? deserializeAws_restJson1Transcript(output.Transcript, context) : undefined,
210
+ Categories: output.Categories != null ? de_Categories(output.Categories, context) : undefined,
211
+ Transcript: output.Transcript != null ? de_Transcript(output.Transcript, context) : undefined,
220
212
  };
221
213
  };
222
- const deserializeAws_restJson1RealtimeContactAnalysisSegments = (output, context) => {
214
+ const de_RealtimeContactAnalysisSegments = (output, context) => {
223
215
  const retVal = (output || [])
224
216
  .filter((e) => e != null)
225
217
  .map((entry) => {
226
218
  if (entry === null) {
227
219
  return null;
228
220
  }
229
- return deserializeAws_restJson1RealtimeContactAnalysisSegment(entry, context);
221
+ return de_RealtimeContactAnalysisSegment(entry, context);
230
222
  });
231
223
  return retVal;
232
224
  };
233
- const deserializeAws_restJson1Transcript = (output, context) => {
225
+ const de_Transcript = (output, context) => {
234
226
  return {
235
227
  BeginOffsetMillis: __expectInt32(output.BeginOffsetMillis),
236
228
  Content: __expectString(output.Content),
237
229
  EndOffsetMillis: __expectInt32(output.EndOffsetMillis),
238
230
  Id: __expectString(output.Id),
239
- IssuesDetected: output.IssuesDetected != null
240
- ? deserializeAws_restJson1IssuesDetected(output.IssuesDetected, context)
241
- : undefined,
231
+ IssuesDetected: output.IssuesDetected != null ? de_IssuesDetected(output.IssuesDetected, context) : undefined,
242
232
  ParticipantId: __expectString(output.ParticipantId),
243
233
  ParticipantRole: __expectString(output.ParticipantRole),
244
234
  Sentiment: __expectString(output.Sentiment),
@@ -1,5 +1,11 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput } from "../commands/ListRealtimeContactAnalysisSegmentsCommand";
4
- export declare const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand: (input: ListRealtimeContactAnalysisSegmentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
5
- export declare const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRealtimeContactAnalysisSegmentsCommandOutput>;
4
+ /**
5
+ * serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand
6
+ */
7
+ export declare const se_ListRealtimeContactAnalysisSegmentsCommand: (input: ListRealtimeContactAnalysisSegmentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
+ /**
9
+ * deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand
10
+ */
11
+ export declare const de_ListRealtimeContactAnalysisSegmentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRealtimeContactAnalysisSegmentsCommandOutput>;
@@ -7,11 +7,11 @@ import {
7
7
  ListRealtimeContactAnalysisSegmentsCommandInput,
8
8
  ListRealtimeContactAnalysisSegmentsCommandOutput,
9
9
  } from "../commands/ListRealtimeContactAnalysisSegmentsCommand";
10
- export declare const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand: (
10
+ export declare const se_ListRealtimeContactAnalysisSegmentsCommand: (
11
11
  input: ListRealtimeContactAnalysisSegmentsCommandInput,
12
12
  context: __SerdeContext
13
13
  ) => Promise<__HttpRequest>;
14
- export declare const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand: (
14
+ export declare const de_ListRealtimeContactAnalysisSegmentsCommand: (
15
15
  output: __HttpResponse,
16
16
  context: __SerdeContext
17
17
  ) => Promise<ListRealtimeContactAnalysisSegmentsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connect-contact-lens",
3
3
  "description": "AWS SDK for JavaScript Connect Contact Lens Client for Node.js, Browser and React Native",
4
- "version": "3.303.0",
4
+ "version": "3.309.0",
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",
@@ -21,37 +21,37 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.303.0",
25
- "@aws-sdk/config-resolver": "3.303.0",
26
- "@aws-sdk/credential-provider-node": "3.303.0",
27
- "@aws-sdk/fetch-http-handler": "3.303.0",
28
- "@aws-sdk/hash-node": "3.303.0",
29
- "@aws-sdk/invalid-dependency": "3.303.0",
30
- "@aws-sdk/middleware-content-length": "3.303.0",
31
- "@aws-sdk/middleware-endpoint": "3.303.0",
32
- "@aws-sdk/middleware-host-header": "3.303.0",
33
- "@aws-sdk/middleware-logger": "3.303.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
- "@aws-sdk/middleware-retry": "3.303.0",
36
- "@aws-sdk/middleware-serde": "3.303.0",
37
- "@aws-sdk/middleware-signing": "3.303.0",
38
- "@aws-sdk/middleware-stack": "3.303.0",
39
- "@aws-sdk/middleware-user-agent": "3.303.0",
40
- "@aws-sdk/node-config-provider": "3.303.0",
41
- "@aws-sdk/node-http-handler": "3.303.0",
42
- "@aws-sdk/protocol-http": "3.303.0",
43
- "@aws-sdk/smithy-client": "3.303.0",
44
- "@aws-sdk/types": "3.303.0",
45
- "@aws-sdk/url-parser": "3.303.0",
24
+ "@aws-sdk/client-sts": "3.309.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.309.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.309.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
46
  "@aws-sdk/util-base64": "3.303.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.303.0",
48
48
  "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
- "@aws-sdk/util-endpoints": "3.303.0",
52
- "@aws-sdk/util-retry": "3.303.0",
53
- "@aws-sdk/util-user-agent-browser": "3.303.0",
54
- "@aws-sdk/util-user-agent-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.309.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.309.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.0",
55
55
  "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },