@aws-sdk/client-connect-contact-lens 3.118.1 → 3.128.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +16 -20
- package/dist-es/protocols/Aws_restJson1.js +13 -17
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-connect-contact-lens
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-connect-contact-lens
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-connect-contact-lens
|
|
@@ -14,10 +14,10 @@ const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async (
|
|
|
14
14
|
"/realtime-contact-analysis/analysis-segments";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.ContactId
|
|
18
|
-
...(input.InstanceId
|
|
19
|
-
...(input.MaxResults
|
|
20
|
-
...(input.NextToken
|
|
17
|
+
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
18
|
+
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
19
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
20
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
21
21
|
});
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
23
23
|
protocol,
|
|
@@ -55,8 +55,7 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
|
|
|
55
55
|
body: await parseBody(output.body, context),
|
|
56
56
|
};
|
|
57
57
|
let response;
|
|
58
|
-
|
|
59
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
58
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
60
59
|
switch (errorCode) {
|
|
61
60
|
case "AccessDeniedException":
|
|
62
61
|
case "com.amazonaws.connectcontactlens#AccessDeniedException":
|
|
@@ -75,10 +74,12 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
|
|
|
75
74
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
76
75
|
default:
|
|
77
76
|
const parsedBody = parsedOutput.body;
|
|
77
|
+
const $metadata = deserializeMetadata(output);
|
|
78
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
78
79
|
response = new ConnectContactLensServiceException_1.ConnectContactLensServiceException({
|
|
79
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
80
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
80
81
|
$fault: "client",
|
|
81
|
-
$metadata
|
|
82
|
+
$metadata,
|
|
82
83
|
});
|
|
83
84
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
84
85
|
}
|
|
@@ -145,17 +146,17 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
145
146
|
};
|
|
146
147
|
const deserializeAws_restJson1Categories = (output, context) => {
|
|
147
148
|
return {
|
|
148
|
-
MatchedCategories: output.MatchedCategories
|
|
149
|
+
MatchedCategories: output.MatchedCategories != null
|
|
149
150
|
? deserializeAws_restJson1MatchedCategories(output.MatchedCategories, context)
|
|
150
151
|
: undefined,
|
|
151
|
-
MatchedDetails: output.MatchedDetails
|
|
152
|
+
MatchedDetails: output.MatchedDetails != null
|
|
152
153
|
? deserializeAws_restJson1MatchedDetails(output.MatchedDetails, context)
|
|
153
154
|
: undefined,
|
|
154
155
|
};
|
|
155
156
|
};
|
|
156
157
|
const deserializeAws_restJson1CategoryDetails = (output, context) => {
|
|
157
158
|
return {
|
|
158
|
-
PointsOfInterest: output.PointsOfInterest
|
|
159
|
+
PointsOfInterest: output.PointsOfInterest != null
|
|
159
160
|
? deserializeAws_restJson1PointsOfInterest(output.PointsOfInterest, context)
|
|
160
161
|
: undefined,
|
|
161
162
|
};
|
|
@@ -168,7 +169,7 @@ const deserializeAws_restJson1CharacterOffsets = (output, context) => {
|
|
|
168
169
|
};
|
|
169
170
|
const deserializeAws_restJson1IssueDetected = (output, context) => {
|
|
170
171
|
return {
|
|
171
|
-
CharacterOffsets: output.CharacterOffsets
|
|
172
|
+
CharacterOffsets: output.CharacterOffsets != null
|
|
172
173
|
? deserializeAws_restJson1CharacterOffsets(output.CharacterOffsets, context)
|
|
173
174
|
: undefined,
|
|
174
175
|
};
|
|
@@ -225,12 +226,8 @@ const deserializeAws_restJson1PointsOfInterest = (output, context) => {
|
|
|
225
226
|
};
|
|
226
227
|
const deserializeAws_restJson1RealtimeContactAnalysisSegment = (output, context) => {
|
|
227
228
|
return {
|
|
228
|
-
Categories: output.Categories
|
|
229
|
-
|
|
230
|
-
: undefined,
|
|
231
|
-
Transcript: output.Transcript !== undefined && output.Transcript !== null
|
|
232
|
-
? deserializeAws_restJson1Transcript(output.Transcript, context)
|
|
233
|
-
: undefined,
|
|
229
|
+
Categories: output.Categories != null ? deserializeAws_restJson1Categories(output.Categories, context) : undefined,
|
|
230
|
+
Transcript: output.Transcript != null ? deserializeAws_restJson1Transcript(output.Transcript, context) : undefined,
|
|
234
231
|
};
|
|
235
232
|
};
|
|
236
233
|
const deserializeAws_restJson1RealtimeContactAnalysisSegments = (output, context) => {
|
|
@@ -250,7 +247,7 @@ const deserializeAws_restJson1Transcript = (output, context) => {
|
|
|
250
247
|
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
251
248
|
EndOffsetMillis: (0, smithy_client_1.expectInt32)(output.EndOffsetMillis),
|
|
252
249
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
253
|
-
IssuesDetected: output.IssuesDetected
|
|
250
|
+
IssuesDetected: output.IssuesDetected != null
|
|
254
251
|
? deserializeAws_restJson1IssuesDetected(output.IssuesDetected, context)
|
|
255
252
|
: undefined,
|
|
256
253
|
ParticipantId: (0, smithy_client_1.expectString)(output.ParticipantId),
|
|
@@ -307,5 +304,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
307
304
|
if (data["__type"] !== undefined) {
|
|
308
305
|
return sanitizeErrorCode(data["__type"]);
|
|
309
306
|
}
|
|
310
|
-
return "";
|
|
311
307
|
};
|
|
@@ -15,7 +15,7 @@ export var serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = fu
|
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
17
17
|
"/realtime-contact-analysis/analysis-segments";
|
|
18
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContactId
|
|
18
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
19
19
|
return [2, new __HttpRequest({
|
|
20
20
|
protocol: protocol,
|
|
21
21
|
hostname: hostname,
|
|
@@ -57,7 +57,7 @@ export var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand =
|
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
60
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
61
61
|
var _c;
|
|
62
62
|
return __generator(this, function (_d) {
|
|
63
63
|
switch (_d.label) {
|
|
@@ -67,7 +67,6 @@ var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = fu
|
|
|
67
67
|
return [4, parseBody(output.body, context)];
|
|
68
68
|
case 1:
|
|
69
69
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
70
|
-
errorCode = "UnknownError";
|
|
71
70
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
72
71
|
_b = errorCode;
|
|
73
72
|
switch (_b) {
|
|
@@ -95,10 +94,12 @@ var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = fu
|
|
|
95
94
|
case 11: throw _d.sent();
|
|
96
95
|
case 12:
|
|
97
96
|
parsedBody = parsedOutput.body;
|
|
97
|
+
$metadata = deserializeMetadata(output);
|
|
98
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
98
99
|
response = new __BaseException({
|
|
99
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
100
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
100
101
|
$fault: "client",
|
|
101
|
-
$metadata:
|
|
102
|
+
$metadata: $metadata,
|
|
102
103
|
});
|
|
103
104
|
throw __decorateServiceException(response, parsedBody);
|
|
104
105
|
}
|
|
@@ -166,17 +167,17 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
166
167
|
}); };
|
|
167
168
|
var deserializeAws_restJson1Categories = function (output, context) {
|
|
168
169
|
return {
|
|
169
|
-
MatchedCategories: output.MatchedCategories
|
|
170
|
+
MatchedCategories: output.MatchedCategories != null
|
|
170
171
|
? deserializeAws_restJson1MatchedCategories(output.MatchedCategories, context)
|
|
171
172
|
: undefined,
|
|
172
|
-
MatchedDetails: output.MatchedDetails
|
|
173
|
+
MatchedDetails: output.MatchedDetails != null
|
|
173
174
|
? deserializeAws_restJson1MatchedDetails(output.MatchedDetails, context)
|
|
174
175
|
: undefined,
|
|
175
176
|
};
|
|
176
177
|
};
|
|
177
178
|
var deserializeAws_restJson1CategoryDetails = function (output, context) {
|
|
178
179
|
return {
|
|
179
|
-
PointsOfInterest: output.PointsOfInterest
|
|
180
|
+
PointsOfInterest: output.PointsOfInterest != null
|
|
180
181
|
? deserializeAws_restJson1PointsOfInterest(output.PointsOfInterest, context)
|
|
181
182
|
: undefined,
|
|
182
183
|
};
|
|
@@ -189,7 +190,7 @@ var deserializeAws_restJson1CharacterOffsets = function (output, context) {
|
|
|
189
190
|
};
|
|
190
191
|
var deserializeAws_restJson1IssueDetected = function (output, context) {
|
|
191
192
|
return {
|
|
192
|
-
CharacterOffsets: output.CharacterOffsets
|
|
193
|
+
CharacterOffsets: output.CharacterOffsets != null
|
|
193
194
|
? deserializeAws_restJson1CharacterOffsets(output.CharacterOffsets, context)
|
|
194
195
|
: undefined,
|
|
195
196
|
};
|
|
@@ -245,12 +246,8 @@ var deserializeAws_restJson1PointsOfInterest = function (output, context) {
|
|
|
245
246
|
};
|
|
246
247
|
var deserializeAws_restJson1RealtimeContactAnalysisSegment = function (output, context) {
|
|
247
248
|
return {
|
|
248
|
-
Categories: output.Categories
|
|
249
|
-
|
|
250
|
-
: undefined,
|
|
251
|
-
Transcript: output.Transcript !== undefined && output.Transcript !== null
|
|
252
|
-
? deserializeAws_restJson1Transcript(output.Transcript, context)
|
|
253
|
-
: undefined,
|
|
249
|
+
Categories: output.Categories != null ? deserializeAws_restJson1Categories(output.Categories, context) : undefined,
|
|
250
|
+
Transcript: output.Transcript != null ? deserializeAws_restJson1Transcript(output.Transcript, context) : undefined,
|
|
254
251
|
};
|
|
255
252
|
};
|
|
256
253
|
var deserializeAws_restJson1RealtimeContactAnalysisSegments = function (output, context) {
|
|
@@ -270,7 +267,7 @@ var deserializeAws_restJson1Transcript = function (output, context) {
|
|
|
270
267
|
Content: __expectString(output.Content),
|
|
271
268
|
EndOffsetMillis: __expectInt32(output.EndOffsetMillis),
|
|
272
269
|
Id: __expectString(output.Id),
|
|
273
|
-
IssuesDetected: output.IssuesDetected
|
|
270
|
+
IssuesDetected: output.IssuesDetected != null
|
|
274
271
|
? deserializeAws_restJson1IssuesDetected(output.IssuesDetected, context)
|
|
275
272
|
: undefined,
|
|
276
273
|
ParticipantId: __expectString(output.ParticipantId),
|
|
@@ -334,5 +331,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
334
331
|
if (data["__type"] !== undefined) {
|
|
335
332
|
return sanitizeErrorCode(data["__type"]);
|
|
336
333
|
}
|
|
337
|
-
return "";
|
|
338
334
|
};
|
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.128.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.128.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.128.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.128.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.128.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.128.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|