@aws-sdk/client-connect-contact-lens 3.310.0 → 3.315.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.
|
@@ -13,12 +13,12 @@ const se_ListRealtimeContactAnalysisSegmentsCommand = async (input, context) =>
|
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
14
14
|
"/realtime-contact-analysis/analysis-segments";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
ContactId: [],
|
|
18
|
+
InstanceId: [],
|
|
19
|
+
MaxResults: [],
|
|
20
|
+
NextToken: [],
|
|
21
|
+
}));
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
23
23
|
protocol,
|
|
24
24
|
hostname,
|
|
@@ -34,16 +34,15 @@ const de_ListRealtimeContactAnalysisSegmentsCommand = async (output, context) =>
|
|
|
34
34
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
35
35
|
return de_ListRealtimeContactAnalysisSegmentsCommandError(output, context);
|
|
36
36
|
}
|
|
37
|
-
const contents = map({
|
|
37
|
+
const contents = (0, smithy_client_1.map)({
|
|
38
38
|
$metadata: deserializeMetadata(output),
|
|
39
39
|
});
|
|
40
40
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
41
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
42
|
+
NextToken: smithy_client_1.expectString,
|
|
43
|
+
Segments: smithy_client_1._json,
|
|
44
|
+
});
|
|
45
|
+
Object.assign(contents, doc);
|
|
47
46
|
return contents;
|
|
48
47
|
};
|
|
49
48
|
exports.de_ListRealtimeContactAnalysisSegmentsCommand = de_ListRealtimeContactAnalysisSegmentsCommand;
|
|
@@ -71,21 +70,21 @@ const de_ListRealtimeContactAnalysisSegmentsCommandError = async (output, contex
|
|
|
71
70
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
72
71
|
default:
|
|
73
72
|
const parsedBody = parsedOutput.body;
|
|
74
|
-
|
|
73
|
+
return throwDefaultError({
|
|
75
74
|
output,
|
|
76
75
|
parsedBody,
|
|
77
|
-
exceptionCtor: ConnectContactLensServiceException_1.ConnectContactLensServiceException,
|
|
78
76
|
errorCode,
|
|
79
77
|
});
|
|
80
78
|
}
|
|
81
79
|
};
|
|
82
|
-
const
|
|
80
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ConnectContactLensServiceException_1.ConnectContactLensServiceException);
|
|
83
81
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
84
|
-
const contents = map({});
|
|
82
|
+
const contents = (0, smithy_client_1.map)({});
|
|
85
83
|
const data = parsedOutput.body;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
84
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
85
|
+
Message: smithy_client_1.expectString,
|
|
86
|
+
});
|
|
87
|
+
Object.assign(contents, doc);
|
|
89
88
|
const exception = new models_0_1.AccessDeniedException({
|
|
90
89
|
$metadata: deserializeMetadata(parsedOutput),
|
|
91
90
|
...contents,
|
|
@@ -93,11 +92,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
93
92
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
94
93
|
};
|
|
95
94
|
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
96
|
-
const contents = map({});
|
|
95
|
+
const contents = (0, smithy_client_1.map)({});
|
|
97
96
|
const data = parsedOutput.body;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
97
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
98
|
+
Message: smithy_client_1.expectString,
|
|
99
|
+
});
|
|
100
|
+
Object.assign(contents, doc);
|
|
101
101
|
const exception = new models_0_1.InternalServiceException({
|
|
102
102
|
$metadata: deserializeMetadata(parsedOutput),
|
|
103
103
|
...contents,
|
|
@@ -105,11 +105,12 @@ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
105
105
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
106
106
|
};
|
|
107
107
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
108
|
-
const contents = map({});
|
|
108
|
+
const contents = (0, smithy_client_1.map)({});
|
|
109
109
|
const data = parsedOutput.body;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
110
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
111
|
+
Message: smithy_client_1.expectString,
|
|
112
|
+
});
|
|
113
|
+
Object.assign(contents, doc);
|
|
113
114
|
const exception = new models_0_1.InvalidRequestException({
|
|
114
115
|
$metadata: deserializeMetadata(parsedOutput),
|
|
115
116
|
...contents,
|
|
@@ -117,11 +118,12 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
117
118
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
118
119
|
};
|
|
119
120
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
120
|
-
const contents = map({});
|
|
121
|
+
const contents = (0, smithy_client_1.map)({});
|
|
121
122
|
const data = parsedOutput.body;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
123
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
124
|
+
Message: smithy_client_1.expectString,
|
|
125
|
+
});
|
|
126
|
+
Object.assign(contents, doc);
|
|
125
127
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
126
128
|
$metadata: deserializeMetadata(parsedOutput),
|
|
127
129
|
...contents,
|
|
@@ -129,116 +131,18 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
129
131
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
130
132
|
};
|
|
131
133
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
132
|
-
const contents = map({});
|
|
134
|
+
const contents = (0, smithy_client_1.map)({});
|
|
133
135
|
const data = parsedOutput.body;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
136
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
137
|
+
Message: smithy_client_1.expectString,
|
|
138
|
+
});
|
|
139
|
+
Object.assign(contents, doc);
|
|
137
140
|
const exception = new models_0_1.ThrottlingException({
|
|
138
141
|
$metadata: deserializeMetadata(parsedOutput),
|
|
139
142
|
...contents,
|
|
140
143
|
});
|
|
141
144
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
142
145
|
};
|
|
143
|
-
const de_Categories = (output, context) => {
|
|
144
|
-
return {
|
|
145
|
-
MatchedCategories: output.MatchedCategories != null ? de_MatchedCategories(output.MatchedCategories, context) : undefined,
|
|
146
|
-
MatchedDetails: output.MatchedDetails != null ? de_MatchedDetails(output.MatchedDetails, context) : undefined,
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
const de_CategoryDetails = (output, context) => {
|
|
150
|
-
return {
|
|
151
|
-
PointsOfInterest: output.PointsOfInterest != null ? de_PointsOfInterest(output.PointsOfInterest, context) : undefined,
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
const de_CharacterOffsets = (output, context) => {
|
|
155
|
-
return {
|
|
156
|
-
BeginOffsetChar: (0, smithy_client_1.expectInt32)(output.BeginOffsetChar),
|
|
157
|
-
EndOffsetChar: (0, smithy_client_1.expectInt32)(output.EndOffsetChar),
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
const de_IssueDetected = (output, context) => {
|
|
161
|
-
return {
|
|
162
|
-
CharacterOffsets: output.CharacterOffsets != null ? de_CharacterOffsets(output.CharacterOffsets, context) : undefined,
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
const de_IssuesDetected = (output, context) => {
|
|
166
|
-
const retVal = (output || [])
|
|
167
|
-
.filter((e) => e != null)
|
|
168
|
-
.map((entry) => {
|
|
169
|
-
if (entry === null) {
|
|
170
|
-
return null;
|
|
171
|
-
}
|
|
172
|
-
return de_IssueDetected(entry, context);
|
|
173
|
-
});
|
|
174
|
-
return retVal;
|
|
175
|
-
};
|
|
176
|
-
const de_MatchedCategories = (output, context) => {
|
|
177
|
-
const retVal = (output || [])
|
|
178
|
-
.filter((e) => e != null)
|
|
179
|
-
.map((entry) => {
|
|
180
|
-
if (entry === null) {
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
183
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
184
|
-
});
|
|
185
|
-
return retVal;
|
|
186
|
-
};
|
|
187
|
-
const de_MatchedDetails = (output, context) => {
|
|
188
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
189
|
-
if (value === null) {
|
|
190
|
-
return acc;
|
|
191
|
-
}
|
|
192
|
-
acc[key] = de_CategoryDetails(value, context);
|
|
193
|
-
return acc;
|
|
194
|
-
}, {});
|
|
195
|
-
};
|
|
196
|
-
const de_PointOfInterest = (output, context) => {
|
|
197
|
-
return {
|
|
198
|
-
BeginOffsetMillis: (0, smithy_client_1.expectInt32)(output.BeginOffsetMillis),
|
|
199
|
-
EndOffsetMillis: (0, smithy_client_1.expectInt32)(output.EndOffsetMillis),
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
const de_PointsOfInterest = (output, context) => {
|
|
203
|
-
const retVal = (output || [])
|
|
204
|
-
.filter((e) => e != null)
|
|
205
|
-
.map((entry) => {
|
|
206
|
-
if (entry === null) {
|
|
207
|
-
return null;
|
|
208
|
-
}
|
|
209
|
-
return de_PointOfInterest(entry, context);
|
|
210
|
-
});
|
|
211
|
-
return retVal;
|
|
212
|
-
};
|
|
213
|
-
const de_RealtimeContactAnalysisSegment = (output, context) => {
|
|
214
|
-
return {
|
|
215
|
-
Categories: output.Categories != null ? de_Categories(output.Categories, context) : undefined,
|
|
216
|
-
Transcript: output.Transcript != null ? de_Transcript(output.Transcript, context) : undefined,
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
const de_RealtimeContactAnalysisSegments = (output, context) => {
|
|
220
|
-
const retVal = (output || [])
|
|
221
|
-
.filter((e) => e != null)
|
|
222
|
-
.map((entry) => {
|
|
223
|
-
if (entry === null) {
|
|
224
|
-
return null;
|
|
225
|
-
}
|
|
226
|
-
return de_RealtimeContactAnalysisSegment(entry, context);
|
|
227
|
-
});
|
|
228
|
-
return retVal;
|
|
229
|
-
};
|
|
230
|
-
const de_Transcript = (output, context) => {
|
|
231
|
-
return {
|
|
232
|
-
BeginOffsetMillis: (0, smithy_client_1.expectInt32)(output.BeginOffsetMillis),
|
|
233
|
-
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
234
|
-
EndOffsetMillis: (0, smithy_client_1.expectInt32)(output.EndOffsetMillis),
|
|
235
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
236
|
-
IssuesDetected: output.IssuesDetected != null ? de_IssuesDetected(output.IssuesDetected, context) : undefined,
|
|
237
|
-
ParticipantId: (0, smithy_client_1.expectString)(output.ParticipantId),
|
|
238
|
-
ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
|
|
239
|
-
Sentiment: (0, smithy_client_1.expectString)(output.Sentiment),
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
146
|
const deserializeMetadata = (output) => ({
|
|
243
147
|
httpStatusCode: output.statusCode,
|
|
244
148
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } 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
5
|
export const se_ListRealtimeContactAnalysisSegmentsCommand = async (input, context) => {
|
|
@@ -10,12 +10,12 @@ export const se_ListRealtimeContactAnalysisSegmentsCommand = async (input, conte
|
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
11
11
|
"/realtime-contact-analysis/analysis-segments";
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
ContactId: [],
|
|
15
|
+
InstanceId: [],
|
|
16
|
+
MaxResults: [],
|
|
17
|
+
NextToken: [],
|
|
18
|
+
}));
|
|
19
19
|
return new __HttpRequest({
|
|
20
20
|
protocol,
|
|
21
21
|
hostname,
|
|
@@ -34,12 +34,11 @@ export const de_ListRealtimeContactAnalysisSegmentsCommand = async (output, cont
|
|
|
34
34
|
$metadata: deserializeMetadata(output),
|
|
35
35
|
});
|
|
36
36
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
37
|
+
const doc = take(data, {
|
|
38
|
+
NextToken: __expectString,
|
|
39
|
+
Segments: _json,
|
|
40
|
+
});
|
|
41
|
+
Object.assign(contents, doc);
|
|
43
42
|
return contents;
|
|
44
43
|
};
|
|
45
44
|
const de_ListRealtimeContactAnalysisSegmentsCommandError = async (output, context) => {
|
|
@@ -66,21 +65,21 @@ const de_ListRealtimeContactAnalysisSegmentsCommandError = async (output, contex
|
|
|
66
65
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
67
66
|
default:
|
|
68
67
|
const parsedBody = parsedOutput.body;
|
|
69
|
-
throwDefaultError({
|
|
68
|
+
return throwDefaultError({
|
|
70
69
|
output,
|
|
71
70
|
parsedBody,
|
|
72
|
-
exceptionCtor: __BaseException,
|
|
73
71
|
errorCode,
|
|
74
72
|
});
|
|
75
73
|
}
|
|
76
74
|
};
|
|
77
|
-
const
|
|
75
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
78
76
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
79
77
|
const contents = map({});
|
|
80
78
|
const data = parsedOutput.body;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
79
|
+
const doc = take(data, {
|
|
80
|
+
Message: __expectString,
|
|
81
|
+
});
|
|
82
|
+
Object.assign(contents, doc);
|
|
84
83
|
const exception = new AccessDeniedException({
|
|
85
84
|
$metadata: deserializeMetadata(parsedOutput),
|
|
86
85
|
...contents,
|
|
@@ -90,9 +89,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
90
89
|
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
91
90
|
const contents = map({});
|
|
92
91
|
const data = parsedOutput.body;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
92
|
+
const doc = take(data, {
|
|
93
|
+
Message: __expectString,
|
|
94
|
+
});
|
|
95
|
+
Object.assign(contents, doc);
|
|
96
96
|
const exception = new InternalServiceException({
|
|
97
97
|
$metadata: deserializeMetadata(parsedOutput),
|
|
98
98
|
...contents,
|
|
@@ -102,9 +102,10 @@ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
102
102
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
103
103
|
const contents = map({});
|
|
104
104
|
const data = parsedOutput.body;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
105
|
+
const doc = take(data, {
|
|
106
|
+
Message: __expectString,
|
|
107
|
+
});
|
|
108
|
+
Object.assign(contents, doc);
|
|
108
109
|
const exception = new InvalidRequestException({
|
|
109
110
|
$metadata: deserializeMetadata(parsedOutput),
|
|
110
111
|
...contents,
|
|
@@ -114,9 +115,10 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
114
115
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
115
116
|
const contents = map({});
|
|
116
117
|
const data = parsedOutput.body;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
118
|
+
const doc = take(data, {
|
|
119
|
+
Message: __expectString,
|
|
120
|
+
});
|
|
121
|
+
Object.assign(contents, doc);
|
|
120
122
|
const exception = new ResourceNotFoundException({
|
|
121
123
|
$metadata: deserializeMetadata(parsedOutput),
|
|
122
124
|
...contents,
|
|
@@ -126,114 +128,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
126
128
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
127
129
|
const contents = map({});
|
|
128
130
|
const data = parsedOutput.body;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
131
|
+
const doc = take(data, {
|
|
132
|
+
Message: __expectString,
|
|
133
|
+
});
|
|
134
|
+
Object.assign(contents, doc);
|
|
132
135
|
const exception = new ThrottlingException({
|
|
133
136
|
$metadata: deserializeMetadata(parsedOutput),
|
|
134
137
|
...contents,
|
|
135
138
|
});
|
|
136
139
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
137
140
|
};
|
|
138
|
-
const de_Categories = (output, context) => {
|
|
139
|
-
return {
|
|
140
|
-
MatchedCategories: output.MatchedCategories != null ? de_MatchedCategories(output.MatchedCategories, context) : undefined,
|
|
141
|
-
MatchedDetails: output.MatchedDetails != null ? de_MatchedDetails(output.MatchedDetails, context) : undefined,
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
const de_CategoryDetails = (output, context) => {
|
|
145
|
-
return {
|
|
146
|
-
PointsOfInterest: output.PointsOfInterest != null ? de_PointsOfInterest(output.PointsOfInterest, context) : undefined,
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
const de_CharacterOffsets = (output, context) => {
|
|
150
|
-
return {
|
|
151
|
-
BeginOffsetChar: __expectInt32(output.BeginOffsetChar),
|
|
152
|
-
EndOffsetChar: __expectInt32(output.EndOffsetChar),
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
const de_IssueDetected = (output, context) => {
|
|
156
|
-
return {
|
|
157
|
-
CharacterOffsets: output.CharacterOffsets != null ? de_CharacterOffsets(output.CharacterOffsets, context) : undefined,
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
const de_IssuesDetected = (output, context) => {
|
|
161
|
-
const retVal = (output || [])
|
|
162
|
-
.filter((e) => e != null)
|
|
163
|
-
.map((entry) => {
|
|
164
|
-
if (entry === null) {
|
|
165
|
-
return null;
|
|
166
|
-
}
|
|
167
|
-
return de_IssueDetected(entry, context);
|
|
168
|
-
});
|
|
169
|
-
return retVal;
|
|
170
|
-
};
|
|
171
|
-
const de_MatchedCategories = (output, context) => {
|
|
172
|
-
const retVal = (output || [])
|
|
173
|
-
.filter((e) => e != null)
|
|
174
|
-
.map((entry) => {
|
|
175
|
-
if (entry === null) {
|
|
176
|
-
return null;
|
|
177
|
-
}
|
|
178
|
-
return __expectString(entry);
|
|
179
|
-
});
|
|
180
|
-
return retVal;
|
|
181
|
-
};
|
|
182
|
-
const de_MatchedDetails = (output, context) => {
|
|
183
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
184
|
-
if (value === null) {
|
|
185
|
-
return acc;
|
|
186
|
-
}
|
|
187
|
-
acc[key] = de_CategoryDetails(value, context);
|
|
188
|
-
return acc;
|
|
189
|
-
}, {});
|
|
190
|
-
};
|
|
191
|
-
const de_PointOfInterest = (output, context) => {
|
|
192
|
-
return {
|
|
193
|
-
BeginOffsetMillis: __expectInt32(output.BeginOffsetMillis),
|
|
194
|
-
EndOffsetMillis: __expectInt32(output.EndOffsetMillis),
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
const de_PointsOfInterest = (output, context) => {
|
|
198
|
-
const retVal = (output || [])
|
|
199
|
-
.filter((e) => e != null)
|
|
200
|
-
.map((entry) => {
|
|
201
|
-
if (entry === null) {
|
|
202
|
-
return null;
|
|
203
|
-
}
|
|
204
|
-
return de_PointOfInterest(entry, context);
|
|
205
|
-
});
|
|
206
|
-
return retVal;
|
|
207
|
-
};
|
|
208
|
-
const de_RealtimeContactAnalysisSegment = (output, context) => {
|
|
209
|
-
return {
|
|
210
|
-
Categories: output.Categories != null ? de_Categories(output.Categories, context) : undefined,
|
|
211
|
-
Transcript: output.Transcript != null ? de_Transcript(output.Transcript, context) : undefined,
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
const de_RealtimeContactAnalysisSegments = (output, context) => {
|
|
215
|
-
const retVal = (output || [])
|
|
216
|
-
.filter((e) => e != null)
|
|
217
|
-
.map((entry) => {
|
|
218
|
-
if (entry === null) {
|
|
219
|
-
return null;
|
|
220
|
-
}
|
|
221
|
-
return de_RealtimeContactAnalysisSegment(entry, context);
|
|
222
|
-
});
|
|
223
|
-
return retVal;
|
|
224
|
-
};
|
|
225
|
-
const de_Transcript = (output, context) => {
|
|
226
|
-
return {
|
|
227
|
-
BeginOffsetMillis: __expectInt32(output.BeginOffsetMillis),
|
|
228
|
-
Content: __expectString(output.Content),
|
|
229
|
-
EndOffsetMillis: __expectInt32(output.EndOffsetMillis),
|
|
230
|
-
Id: __expectString(output.Id),
|
|
231
|
-
IssuesDetected: output.IssuesDetected != null ? de_IssuesDetected(output.IssuesDetected, context) : undefined,
|
|
232
|
-
ParticipantId: __expectString(output.ParticipantId),
|
|
233
|
-
ParticipantRole: __expectString(output.ParticipantRole),
|
|
234
|
-
Sentiment: __expectString(output.Sentiment),
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
141
|
const deserializeMetadata = (output) => ({
|
|
238
142
|
httpStatusCode: output.statusCode,
|
|
239
143
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
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.
|
|
4
|
+
"version": "3.315.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,9 +21,9 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.315.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.315.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.315.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.315.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|