@aws-sdk/client-connect-contact-lens 3.52.0 → 3.53.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ConnectContactLensServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +72 -1
- package/dist-cjs/protocols/Aws_restJson1.js +49 -79
- package/dist-es/index.js +1 -0
- package/dist-es/models/ConnectContactLensServiceException.js +12 -0
- package/dist-es/models/models_0.js +67 -1
- package/dist-es/protocols/Aws_restJson1.js +53 -89
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ConnectContactLensServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ConnectContactLensServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -16
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-connect-contact-lens
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectContactLensServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./ConnectContactLens"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ConnectContactLensClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var ConnectContactLensServiceException_1 = require("./models/ConnectContactLensServiceException");
|
|
11
|
+
Object.defineProperty(exports, "ConnectContactLensServiceException", { enumerable: true, get: function () { return ConnectContactLensServiceException_1.ConnectContactLensServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectContactLensServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class ConnectContactLensServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, ConnectContactLensServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ConnectContactLensServiceException = ConnectContactLensServiceException;
|
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListRealtimeContactAnalysisSegmentsResponse = exports.RealtimeContactAnalysisSegment = exports.Transcript = exports.SentimentValue = exports.IssueDetected = exports.CharacterOffsets = exports.Categories = exports.CategoryDetails = exports.PointOfInterest = exports.ListRealtimeContactAnalysisSegmentsRequest = void 0;
|
|
3
|
+
exports.ThrottlingException = exports.ResourceNotFoundException = exports.ListRealtimeContactAnalysisSegmentsResponse = exports.RealtimeContactAnalysisSegment = exports.Transcript = exports.SentimentValue = exports.IssueDetected = exports.CharacterOffsets = exports.Categories = exports.CategoryDetails = exports.PointOfInterest = exports.ListRealtimeContactAnalysisSegmentsRequest = exports.InvalidRequestException = exports.InternalServiceException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const ConnectContactLensServiceException_1 = require("./ConnectContactLensServiceException");
|
|
5
|
+
class AccessDeniedException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "AccessDeniedException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
this.Message = opts.Message;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
19
|
+
class InternalServiceException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "InternalServiceException",
|
|
23
|
+
$fault: "server",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
this.name = "InternalServiceException";
|
|
27
|
+
this.$fault = "server";
|
|
28
|
+
Object.setPrototypeOf(this, InternalServiceException.prototype);
|
|
29
|
+
this.Message = opts.Message;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.InternalServiceException = InternalServiceException;
|
|
33
|
+
class InvalidRequestException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "InvalidRequestException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
this.name = "InvalidRequestException";
|
|
41
|
+
this.$fault = "client";
|
|
42
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
43
|
+
this.Message = opts.Message;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
4
47
|
var ListRealtimeContactAnalysisSegmentsRequest;
|
|
5
48
|
(function (ListRealtimeContactAnalysisSegmentsRequest) {
|
|
6
49
|
ListRealtimeContactAnalysisSegmentsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -61,3 +104,31 @@ var ListRealtimeContactAnalysisSegmentsResponse;
|
|
|
61
104
|
...obj,
|
|
62
105
|
});
|
|
63
106
|
})(ListRealtimeContactAnalysisSegmentsResponse = exports.ListRealtimeContactAnalysisSegmentsResponse || (exports.ListRealtimeContactAnalysisSegmentsResponse = {}));
|
|
107
|
+
class ResourceNotFoundException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
|
|
108
|
+
constructor(opts) {
|
|
109
|
+
super({
|
|
110
|
+
name: "ResourceNotFoundException",
|
|
111
|
+
$fault: "client",
|
|
112
|
+
...opts,
|
|
113
|
+
});
|
|
114
|
+
this.name = "ResourceNotFoundException";
|
|
115
|
+
this.$fault = "client";
|
|
116
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
117
|
+
this.Message = opts.Message;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
121
|
+
class ThrottlingException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
|
|
122
|
+
constructor(opts) {
|
|
123
|
+
super({
|
|
124
|
+
name: "ThrottlingException",
|
|
125
|
+
$fault: "client",
|
|
126
|
+
...opts,
|
|
127
|
+
});
|
|
128
|
+
this.name = "ThrottlingException";
|
|
129
|
+
this.$fault = "client";
|
|
130
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
131
|
+
this.Message = opts.Message;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.ThrottlingException = ThrottlingException;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = exports.serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = 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
|
+
const ConnectContactLensServiceException_1 = require("../models/ConnectContactLensServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -58,124 +60,88 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
|
|
|
58
60
|
switch (errorCode) {
|
|
59
61
|
case "AccessDeniedException":
|
|
60
62
|
case "com.amazonaws.connectcontactlens#AccessDeniedException":
|
|
61
|
-
|
|
62
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
63
|
-
name: errorCode,
|
|
64
|
-
$metadata: deserializeMetadata(output),
|
|
65
|
-
};
|
|
66
|
-
break;
|
|
63
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
67
64
|
case "InternalServiceException":
|
|
68
65
|
case "com.amazonaws.connectcontactlens#InternalServiceException":
|
|
69
|
-
|
|
70
|
-
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
71
|
-
name: errorCode,
|
|
72
|
-
$metadata: deserializeMetadata(output),
|
|
73
|
-
};
|
|
74
|
-
break;
|
|
66
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
75
67
|
case "InvalidRequestException":
|
|
76
68
|
case "com.amazonaws.connectcontactlens#InvalidRequestException":
|
|
77
|
-
|
|
78
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
79
|
-
name: errorCode,
|
|
80
|
-
$metadata: deserializeMetadata(output),
|
|
81
|
-
};
|
|
82
|
-
break;
|
|
69
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
83
70
|
case "ResourceNotFoundException":
|
|
84
71
|
case "com.amazonaws.connectcontactlens#ResourceNotFoundException":
|
|
85
|
-
|
|
86
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
87
|
-
name: errorCode,
|
|
88
|
-
$metadata: deserializeMetadata(output),
|
|
89
|
-
};
|
|
90
|
-
break;
|
|
72
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
91
73
|
case "ThrottlingException":
|
|
92
74
|
case "com.amazonaws.connectcontactlens#ThrottlingException":
|
|
93
|
-
|
|
94
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
95
|
-
name: errorCode,
|
|
96
|
-
$metadata: deserializeMetadata(output),
|
|
97
|
-
};
|
|
98
|
-
break;
|
|
75
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
99
76
|
default:
|
|
100
77
|
const parsedBody = parsedOutput.body;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
...parsedBody,
|
|
104
|
-
name: `${errorCode}`,
|
|
105
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
78
|
+
response = new ConnectContactLensServiceException_1.ConnectContactLensServiceException({
|
|
79
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
106
80
|
$fault: "client",
|
|
107
81
|
$metadata: deserializeMetadata(output),
|
|
108
|
-
};
|
|
82
|
+
});
|
|
83
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
109
84
|
}
|
|
110
|
-
const message = response.message || response.Message || errorCode;
|
|
111
|
-
response.message = message;
|
|
112
|
-
delete response.Message;
|
|
113
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
114
85
|
};
|
|
115
86
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
116
|
-
const contents = {
|
|
117
|
-
name: "AccessDeniedException",
|
|
118
|
-
$fault: "client",
|
|
119
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
120
|
-
Message: undefined,
|
|
121
|
-
};
|
|
87
|
+
const contents = {};
|
|
122
88
|
const data = parsedOutput.body;
|
|
123
89
|
if (data.Message !== undefined && data.Message !== null) {
|
|
124
90
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
125
91
|
}
|
|
126
|
-
|
|
92
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
93
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
94
|
+
...contents,
|
|
95
|
+
});
|
|
96
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
127
97
|
};
|
|
128
98
|
const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
|
|
129
|
-
const contents = {
|
|
130
|
-
name: "InternalServiceException",
|
|
131
|
-
$fault: "server",
|
|
132
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
133
|
-
Message: undefined,
|
|
134
|
-
};
|
|
99
|
+
const contents = {};
|
|
135
100
|
const data = parsedOutput.body;
|
|
136
101
|
if (data.Message !== undefined && data.Message !== null) {
|
|
137
102
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
138
103
|
}
|
|
139
|
-
|
|
104
|
+
const exception = new models_0_1.InternalServiceException({
|
|
105
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
106
|
+
...contents,
|
|
107
|
+
});
|
|
108
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
140
109
|
};
|
|
141
110
|
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
142
|
-
const contents = {
|
|
143
|
-
name: "InvalidRequestException",
|
|
144
|
-
$fault: "client",
|
|
145
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
146
|
-
Message: undefined,
|
|
147
|
-
};
|
|
111
|
+
const contents = {};
|
|
148
112
|
const data = parsedOutput.body;
|
|
149
113
|
if (data.Message !== undefined && data.Message !== null) {
|
|
150
114
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
151
115
|
}
|
|
152
|
-
|
|
116
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
117
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
118
|
+
...contents,
|
|
119
|
+
});
|
|
120
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
153
121
|
};
|
|
154
122
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
155
|
-
const contents = {
|
|
156
|
-
name: "ResourceNotFoundException",
|
|
157
|
-
$fault: "client",
|
|
158
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
159
|
-
Message: undefined,
|
|
160
|
-
};
|
|
123
|
+
const contents = {};
|
|
161
124
|
const data = parsedOutput.body;
|
|
162
125
|
if (data.Message !== undefined && data.Message !== null) {
|
|
163
126
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
164
127
|
}
|
|
165
|
-
|
|
128
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
129
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
130
|
+
...contents,
|
|
131
|
+
});
|
|
132
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
166
133
|
};
|
|
167
134
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
168
|
-
const contents = {
|
|
169
|
-
name: "ThrottlingException",
|
|
170
|
-
$fault: "client",
|
|
171
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
172
|
-
Message: undefined,
|
|
173
|
-
};
|
|
135
|
+
const contents = {};
|
|
174
136
|
const data = parsedOutput.body;
|
|
175
137
|
if (data.Message !== undefined && data.Message !== null) {
|
|
176
138
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
177
139
|
}
|
|
178
|
-
|
|
140
|
+
const exception = new models_0_1.ThrottlingException({
|
|
141
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
142
|
+
...contents,
|
|
143
|
+
});
|
|
144
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
179
145
|
};
|
|
180
146
|
const deserializeAws_restJson1Categories = (output, context) => {
|
|
181
147
|
return {
|
|
@@ -208,7 +174,7 @@ const deserializeAws_restJson1IssueDetected = (output, context) => {
|
|
|
208
174
|
};
|
|
209
175
|
};
|
|
210
176
|
const deserializeAws_restJson1IssuesDetected = (output, context) => {
|
|
211
|
-
|
|
177
|
+
const retVal = (output || [])
|
|
212
178
|
.filter((e) => e != null)
|
|
213
179
|
.map((entry) => {
|
|
214
180
|
if (entry === null) {
|
|
@@ -216,9 +182,10 @@ const deserializeAws_restJson1IssuesDetected = (output, context) => {
|
|
|
216
182
|
}
|
|
217
183
|
return deserializeAws_restJson1IssueDetected(entry, context);
|
|
218
184
|
});
|
|
185
|
+
return retVal;
|
|
219
186
|
};
|
|
220
187
|
const deserializeAws_restJson1MatchedCategories = (output, context) => {
|
|
221
|
-
|
|
188
|
+
const retVal = (output || [])
|
|
222
189
|
.filter((e) => e != null)
|
|
223
190
|
.map((entry) => {
|
|
224
191
|
if (entry === null) {
|
|
@@ -226,6 +193,7 @@ const deserializeAws_restJson1MatchedCategories = (output, context) => {
|
|
|
226
193
|
}
|
|
227
194
|
return smithy_client_1.expectString(entry);
|
|
228
195
|
});
|
|
196
|
+
return retVal;
|
|
229
197
|
};
|
|
230
198
|
const deserializeAws_restJson1MatchedDetails = (output, context) => {
|
|
231
199
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -245,7 +213,7 @@ const deserializeAws_restJson1PointOfInterest = (output, context) => {
|
|
|
245
213
|
};
|
|
246
214
|
};
|
|
247
215
|
const deserializeAws_restJson1PointsOfInterest = (output, context) => {
|
|
248
|
-
|
|
216
|
+
const retVal = (output || [])
|
|
249
217
|
.filter((e) => e != null)
|
|
250
218
|
.map((entry) => {
|
|
251
219
|
if (entry === null) {
|
|
@@ -253,6 +221,7 @@ const deserializeAws_restJson1PointsOfInterest = (output, context) => {
|
|
|
253
221
|
}
|
|
254
222
|
return deserializeAws_restJson1PointOfInterest(entry, context);
|
|
255
223
|
});
|
|
224
|
+
return retVal;
|
|
256
225
|
};
|
|
257
226
|
const deserializeAws_restJson1RealtimeContactAnalysisSegment = (output, context) => {
|
|
258
227
|
return {
|
|
@@ -265,7 +234,7 @@ const deserializeAws_restJson1RealtimeContactAnalysisSegment = (output, context)
|
|
|
265
234
|
};
|
|
266
235
|
};
|
|
267
236
|
const deserializeAws_restJson1RealtimeContactAnalysisSegments = (output, context) => {
|
|
268
|
-
|
|
237
|
+
const retVal = (output || [])
|
|
269
238
|
.filter((e) => e != null)
|
|
270
239
|
.map((entry) => {
|
|
271
240
|
if (entry === null) {
|
|
@@ -273,6 +242,7 @@ const deserializeAws_restJson1RealtimeContactAnalysisSegments = (output, context
|
|
|
273
242
|
}
|
|
274
243
|
return deserializeAws_restJson1RealtimeContactAnalysisSegment(entry, context);
|
|
275
244
|
});
|
|
245
|
+
return retVal;
|
|
276
246
|
};
|
|
277
247
|
const deserializeAws_restJson1Transcript = (output, context) => {
|
|
278
248
|
return {
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var ConnectContactLensServiceException = (function (_super) {
|
|
4
|
+
__extends(ConnectContactLensServiceException, _super);
|
|
5
|
+
function ConnectContactLensServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, ConnectContactLensServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return ConnectContactLensServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { ConnectContactLensServiceException };
|
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { ConnectContactLensServiceException as __BaseException } from "./ConnectContactLensServiceException";
|
|
3
|
+
var AccessDeniedException = (function (_super) {
|
|
4
|
+
__extends(AccessDeniedException, _super);
|
|
5
|
+
function AccessDeniedException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "AccessDeniedException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
10
|
+
_this.Message = opts.Message;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
return AccessDeniedException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { AccessDeniedException };
|
|
16
|
+
var InternalServiceException = (function (_super) {
|
|
17
|
+
__extends(InternalServiceException, _super);
|
|
18
|
+
function InternalServiceException(opts) {
|
|
19
|
+
var _this = _super.call(this, __assign({ name: "InternalServiceException", $fault: "server" }, opts)) || this;
|
|
20
|
+
_this.name = "InternalServiceException";
|
|
21
|
+
_this.$fault = "server";
|
|
22
|
+
Object.setPrototypeOf(_this, InternalServiceException.prototype);
|
|
23
|
+
_this.Message = opts.Message;
|
|
24
|
+
return _this;
|
|
25
|
+
}
|
|
26
|
+
return InternalServiceException;
|
|
27
|
+
}(__BaseException));
|
|
28
|
+
export { InternalServiceException };
|
|
29
|
+
var InvalidRequestException = (function (_super) {
|
|
30
|
+
__extends(InvalidRequestException, _super);
|
|
31
|
+
function InvalidRequestException(opts) {
|
|
32
|
+
var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
|
|
33
|
+
_this.name = "InvalidRequestException";
|
|
34
|
+
_this.$fault = "client";
|
|
35
|
+
Object.setPrototypeOf(_this, InvalidRequestException.prototype);
|
|
36
|
+
_this.Message = opts.Message;
|
|
37
|
+
return _this;
|
|
38
|
+
}
|
|
39
|
+
return InvalidRequestException;
|
|
40
|
+
}(__BaseException));
|
|
41
|
+
export { InvalidRequestException };
|
|
2
42
|
export var ListRealtimeContactAnalysisSegmentsRequest;
|
|
3
43
|
(function (ListRealtimeContactAnalysisSegmentsRequest) {
|
|
4
44
|
ListRealtimeContactAnalysisSegmentsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -41,3 +81,29 @@ export var ListRealtimeContactAnalysisSegmentsResponse;
|
|
|
41
81
|
(function (ListRealtimeContactAnalysisSegmentsResponse) {
|
|
42
82
|
ListRealtimeContactAnalysisSegmentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
83
|
})(ListRealtimeContactAnalysisSegmentsResponse || (ListRealtimeContactAnalysisSegmentsResponse = {}));
|
|
84
|
+
var ResourceNotFoundException = (function (_super) {
|
|
85
|
+
__extends(ResourceNotFoundException, _super);
|
|
86
|
+
function ResourceNotFoundException(opts) {
|
|
87
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
88
|
+
_this.name = "ResourceNotFoundException";
|
|
89
|
+
_this.$fault = "client";
|
|
90
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
91
|
+
_this.Message = opts.Message;
|
|
92
|
+
return _this;
|
|
93
|
+
}
|
|
94
|
+
return ResourceNotFoundException;
|
|
95
|
+
}(__BaseException));
|
|
96
|
+
export { ResourceNotFoundException };
|
|
97
|
+
var ThrottlingException = (function (_super) {
|
|
98
|
+
__extends(ThrottlingException, _super);
|
|
99
|
+
function ThrottlingException(opts) {
|
|
100
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
101
|
+
_this.name = "ThrottlingException";
|
|
102
|
+
_this.$fault = "client";
|
|
103
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
104
|
+
_this.Message = opts.Message;
|
|
105
|
+
return _this;
|
|
106
|
+
}
|
|
107
|
+
return ThrottlingException;
|
|
108
|
+
}(__BaseException));
|
|
109
|
+
export { ThrottlingException };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ConnectContactLensServiceException as __BaseException } from "../models/ConnectContactLensServiceException";
|
|
5
|
+
import { AccessDeniedException, InternalServiceException, InvalidRequestException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -55,16 +57,16 @@ export var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand =
|
|
|
55
57
|
});
|
|
56
58
|
}); };
|
|
57
59
|
var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
59
|
-
var
|
|
60
|
-
return __generator(this, function (
|
|
61
|
-
switch (
|
|
60
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
61
|
+
var _c;
|
|
62
|
+
return __generator(this, function (_d) {
|
|
63
|
+
switch (_d.label) {
|
|
62
64
|
case 0:
|
|
63
65
|
_a = [__assign({}, output)];
|
|
64
|
-
|
|
66
|
+
_c = {};
|
|
65
67
|
return [4, parseBody(output.body, context)];
|
|
66
68
|
case 1:
|
|
67
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
69
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
68
70
|
errorCode = "UnknownError";
|
|
69
71
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
70
72
|
_b = errorCode;
|
|
@@ -81,127 +83,85 @@ var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = fu
|
|
|
81
83
|
case "com.amazonaws.connectcontactlens#ThrottlingException": return [3, 10];
|
|
82
84
|
}
|
|
83
85
|
return [3, 12];
|
|
84
|
-
case 2:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
case
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
case 4
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
case
|
|
94
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
95
|
-
return [3, 13];
|
|
96
|
-
case 6:
|
|
97
|
-
_e = [{}];
|
|
98
|
-
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
99
|
-
case 7:
|
|
100
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
101
|
-
return [3, 13];
|
|
102
|
-
case 8:
|
|
103
|
-
_f = [{}];
|
|
104
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
105
|
-
case 9:
|
|
106
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
107
|
-
return [3, 13];
|
|
108
|
-
case 10:
|
|
109
|
-
_g = [{}];
|
|
110
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
111
|
-
case 11:
|
|
112
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
113
|
-
return [3, 13];
|
|
86
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
87
|
+
case 3: throw _d.sent();
|
|
88
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
89
|
+
case 5: throw _d.sent();
|
|
90
|
+
case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
91
|
+
case 7: throw _d.sent();
|
|
92
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
93
|
+
case 9: throw _d.sent();
|
|
94
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
95
|
+
case 11: throw _d.sent();
|
|
114
96
|
case 12:
|
|
115
97
|
parsedBody = parsedOutput.body;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
response
|
|
122
|
-
delete response.Message;
|
|
123
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
98
|
+
response = new __BaseException({
|
|
99
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
100
|
+
$fault: "client",
|
|
101
|
+
$metadata: deserializeMetadata(output),
|
|
102
|
+
});
|
|
103
|
+
throw __decorateServiceException(response, parsedBody);
|
|
124
104
|
}
|
|
125
105
|
});
|
|
126
106
|
}); };
|
|
127
107
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
-
var contents, data;
|
|
108
|
+
var contents, data, exception;
|
|
129
109
|
return __generator(this, function (_a) {
|
|
130
|
-
contents = {
|
|
131
|
-
name: "AccessDeniedException",
|
|
132
|
-
$fault: "client",
|
|
133
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
134
|
-
Message: undefined,
|
|
135
|
-
};
|
|
110
|
+
contents = {};
|
|
136
111
|
data = parsedOutput.body;
|
|
137
112
|
if (data.Message !== undefined && data.Message !== null) {
|
|
138
113
|
contents.Message = __expectString(data.Message);
|
|
139
114
|
}
|
|
140
|
-
|
|
115
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
116
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
141
117
|
});
|
|
142
118
|
}); };
|
|
143
119
|
var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
144
|
-
var contents, data;
|
|
120
|
+
var contents, data, exception;
|
|
145
121
|
return __generator(this, function (_a) {
|
|
146
|
-
contents = {
|
|
147
|
-
name: "InternalServiceException",
|
|
148
|
-
$fault: "server",
|
|
149
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
150
|
-
Message: undefined,
|
|
151
|
-
};
|
|
122
|
+
contents = {};
|
|
152
123
|
data = parsedOutput.body;
|
|
153
124
|
if (data.Message !== undefined && data.Message !== null) {
|
|
154
125
|
contents.Message = __expectString(data.Message);
|
|
155
126
|
}
|
|
156
|
-
|
|
127
|
+
exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
128
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
157
129
|
});
|
|
158
130
|
}); };
|
|
159
131
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
160
|
-
var contents, data;
|
|
132
|
+
var contents, data, exception;
|
|
161
133
|
return __generator(this, function (_a) {
|
|
162
|
-
contents = {
|
|
163
|
-
name: "InvalidRequestException",
|
|
164
|
-
$fault: "client",
|
|
165
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
166
|
-
Message: undefined,
|
|
167
|
-
};
|
|
134
|
+
contents = {};
|
|
168
135
|
data = parsedOutput.body;
|
|
169
136
|
if (data.Message !== undefined && data.Message !== null) {
|
|
170
137
|
contents.Message = __expectString(data.Message);
|
|
171
138
|
}
|
|
172
|
-
|
|
139
|
+
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
140
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
173
141
|
});
|
|
174
142
|
}); };
|
|
175
143
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
176
|
-
var contents, data;
|
|
144
|
+
var contents, data, exception;
|
|
177
145
|
return __generator(this, function (_a) {
|
|
178
|
-
contents = {
|
|
179
|
-
name: "ResourceNotFoundException",
|
|
180
|
-
$fault: "client",
|
|
181
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
182
|
-
Message: undefined,
|
|
183
|
-
};
|
|
146
|
+
contents = {};
|
|
184
147
|
data = parsedOutput.body;
|
|
185
148
|
if (data.Message !== undefined && data.Message !== null) {
|
|
186
149
|
contents.Message = __expectString(data.Message);
|
|
187
150
|
}
|
|
188
|
-
|
|
151
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
152
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
189
153
|
});
|
|
190
154
|
}); };
|
|
191
155
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
192
|
-
var contents, data;
|
|
156
|
+
var contents, data, exception;
|
|
193
157
|
return __generator(this, function (_a) {
|
|
194
|
-
contents = {
|
|
195
|
-
name: "ThrottlingException",
|
|
196
|
-
$fault: "client",
|
|
197
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
198
|
-
Message: undefined,
|
|
199
|
-
};
|
|
158
|
+
contents = {};
|
|
200
159
|
data = parsedOutput.body;
|
|
201
160
|
if (data.Message !== undefined && data.Message !== null) {
|
|
202
161
|
contents.Message = __expectString(data.Message);
|
|
203
162
|
}
|
|
204
|
-
|
|
163
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
164
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
205
165
|
});
|
|
206
166
|
}); };
|
|
207
167
|
var deserializeAws_restJson1Categories = function (output, context) {
|
|
@@ -235,7 +195,7 @@ var deserializeAws_restJson1IssueDetected = function (output, context) {
|
|
|
235
195
|
};
|
|
236
196
|
};
|
|
237
197
|
var deserializeAws_restJson1IssuesDetected = function (output, context) {
|
|
238
|
-
|
|
198
|
+
var retVal = (output || [])
|
|
239
199
|
.filter(function (e) { return e != null; })
|
|
240
200
|
.map(function (entry) {
|
|
241
201
|
if (entry === null) {
|
|
@@ -243,9 +203,10 @@ var deserializeAws_restJson1IssuesDetected = function (output, context) {
|
|
|
243
203
|
}
|
|
244
204
|
return deserializeAws_restJson1IssueDetected(entry, context);
|
|
245
205
|
});
|
|
206
|
+
return retVal;
|
|
246
207
|
};
|
|
247
208
|
var deserializeAws_restJson1MatchedCategories = function (output, context) {
|
|
248
|
-
|
|
209
|
+
var retVal = (output || [])
|
|
249
210
|
.filter(function (e) { return e != null; })
|
|
250
211
|
.map(function (entry) {
|
|
251
212
|
if (entry === null) {
|
|
@@ -253,6 +214,7 @@ var deserializeAws_restJson1MatchedCategories = function (output, context) {
|
|
|
253
214
|
}
|
|
254
215
|
return __expectString(entry);
|
|
255
216
|
});
|
|
217
|
+
return retVal;
|
|
256
218
|
};
|
|
257
219
|
var deserializeAws_restJson1MatchedDetails = function (output, context) {
|
|
258
220
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -271,7 +233,7 @@ var deserializeAws_restJson1PointOfInterest = function (output, context) {
|
|
|
271
233
|
};
|
|
272
234
|
};
|
|
273
235
|
var deserializeAws_restJson1PointsOfInterest = function (output, context) {
|
|
274
|
-
|
|
236
|
+
var retVal = (output || [])
|
|
275
237
|
.filter(function (e) { return e != null; })
|
|
276
238
|
.map(function (entry) {
|
|
277
239
|
if (entry === null) {
|
|
@@ -279,6 +241,7 @@ var deserializeAws_restJson1PointsOfInterest = function (output, context) {
|
|
|
279
241
|
}
|
|
280
242
|
return deserializeAws_restJson1PointOfInterest(entry, context);
|
|
281
243
|
});
|
|
244
|
+
return retVal;
|
|
282
245
|
};
|
|
283
246
|
var deserializeAws_restJson1RealtimeContactAnalysisSegment = function (output, context) {
|
|
284
247
|
return {
|
|
@@ -291,7 +254,7 @@ var deserializeAws_restJson1RealtimeContactAnalysisSegment = function (output, c
|
|
|
291
254
|
};
|
|
292
255
|
};
|
|
293
256
|
var deserializeAws_restJson1RealtimeContactAnalysisSegments = function (output, context) {
|
|
294
|
-
|
|
257
|
+
var retVal = (output || [])
|
|
295
258
|
.filter(function (e) { return e != null; })
|
|
296
259
|
.map(function (entry) {
|
|
297
260
|
if (entry === null) {
|
|
@@ -299,6 +262,7 @@ var deserializeAws_restJson1RealtimeContactAnalysisSegments = function (output,
|
|
|
299
262
|
}
|
|
300
263
|
return deserializeAws_restJson1RealtimeContactAnalysisSegment(entry, context);
|
|
301
264
|
});
|
|
265
|
+
return retVal;
|
|
302
266
|
};
|
|
303
267
|
var deserializeAws_restJson1Transcript = function (output, context) {
|
|
304
268
|
return {
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from ConnectContactLens service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ConnectContactLensServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,27 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { ConnectContactLensServiceException as __BaseException } from "./ConnectContactLensServiceException";
|
|
2
3
|
/**
|
|
3
4
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
-
name: "AccessDeniedException";
|
|
7
|
-
$fault: "client";
|
|
6
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
7
|
+
readonly name: "AccessDeniedException";
|
|
8
|
+
readonly $fault: "client";
|
|
8
9
|
Message: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
11
16
|
* <p>Request processing failed due to an error or failure with the service.</p>
|
|
12
17
|
*/
|
|
13
|
-
export
|
|
14
|
-
name: "InternalServiceException";
|
|
15
|
-
$fault: "server";
|
|
18
|
+
export declare class InternalServiceException extends __BaseException {
|
|
19
|
+
readonly name: "InternalServiceException";
|
|
20
|
+
readonly $fault: "server";
|
|
16
21
|
Message?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
|
|
17
26
|
}
|
|
18
27
|
/**
|
|
19
28
|
* <p>The request is not valid.</p>
|
|
20
29
|
*/
|
|
21
|
-
export
|
|
22
|
-
name: "InvalidRequestException";
|
|
23
|
-
$fault: "client";
|
|
30
|
+
export declare class InvalidRequestException extends __BaseException {
|
|
31
|
+
readonly name: "InvalidRequestException";
|
|
32
|
+
readonly $fault: "client";
|
|
24
33
|
Message?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
|
|
25
38
|
}
|
|
26
39
|
export interface ListRealtimeContactAnalysisSegmentsRequest {
|
|
27
40
|
/**
|
|
@@ -236,16 +249,24 @@ export declare namespace ListRealtimeContactAnalysisSegmentsResponse {
|
|
|
236
249
|
/**
|
|
237
250
|
* <p>The specified resource was not found.</p>
|
|
238
251
|
*/
|
|
239
|
-
export
|
|
240
|
-
name: "ResourceNotFoundException";
|
|
241
|
-
$fault: "client";
|
|
252
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
253
|
+
readonly name: "ResourceNotFoundException";
|
|
254
|
+
readonly $fault: "client";
|
|
242
255
|
Message?: string;
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
243
260
|
}
|
|
244
261
|
/**
|
|
245
262
|
* <p>The throttling limit has been exceeded.</p>
|
|
246
263
|
*/
|
|
247
|
-
export
|
|
248
|
-
name: "ThrottlingException";
|
|
249
|
-
$fault: "client";
|
|
264
|
+
export declare class ThrottlingException extends __BaseException {
|
|
265
|
+
readonly name: "ThrottlingException";
|
|
266
|
+
readonly $fault: "client";
|
|
250
267
|
Message: string | undefined;
|
|
268
|
+
/**
|
|
269
|
+
* @internal
|
|
270
|
+
*/
|
|
271
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
251
272
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class ConnectContactLensServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { ConnectContactLensServiceException as __BaseException } from "./ConnectContactLensServiceException";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
name: "AccessDeniedException";
|
|
5
|
-
$fault: "client";
|
|
4
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
5
|
+
readonly name: "AccessDeniedException";
|
|
6
|
+
readonly $fault: "client";
|
|
6
7
|
Message: string | undefined;
|
|
8
|
+
|
|
9
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
7
10
|
}
|
|
8
11
|
|
|
9
|
-
export
|
|
10
|
-
name: "InternalServiceException";
|
|
11
|
-
$fault: "server";
|
|
12
|
+
export declare class InternalServiceException extends __BaseException {
|
|
13
|
+
readonly name: "InternalServiceException";
|
|
14
|
+
readonly $fault: "server";
|
|
12
15
|
Message?: string;
|
|
16
|
+
|
|
17
|
+
constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
export
|
|
16
|
-
name: "InvalidRequestException";
|
|
17
|
-
$fault: "client";
|
|
20
|
+
export declare class InvalidRequestException extends __BaseException {
|
|
21
|
+
readonly name: "InvalidRequestException";
|
|
22
|
+
readonly $fault: "client";
|
|
18
23
|
Message?: string;
|
|
24
|
+
|
|
25
|
+
constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
|
|
19
26
|
}
|
|
20
27
|
export interface ListRealtimeContactAnalysisSegmentsRequest {
|
|
21
28
|
|
|
@@ -134,14 +141,18 @@ export declare namespace ListRealtimeContactAnalysisSegmentsResponse {
|
|
|
134
141
|
const filterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsResponse) => any;
|
|
135
142
|
}
|
|
136
143
|
|
|
137
|
-
export
|
|
138
|
-
name: "ResourceNotFoundException";
|
|
139
|
-
$fault: "client";
|
|
144
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
145
|
+
readonly name: "ResourceNotFoundException";
|
|
146
|
+
readonly $fault: "client";
|
|
140
147
|
Message?: string;
|
|
148
|
+
|
|
149
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
141
150
|
}
|
|
142
151
|
|
|
143
|
-
export
|
|
144
|
-
name: "ThrottlingException";
|
|
145
|
-
$fault: "client";
|
|
152
|
+
export declare class ThrottlingException extends __BaseException {
|
|
153
|
+
readonly name: "ThrottlingException";
|
|
154
|
+
readonly $fault: "client";
|
|
146
155
|
Message: string | undefined;
|
|
156
|
+
|
|
157
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
147
158
|
}
|
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.53.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,34 +18,34 @@
|
|
|
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-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.53.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.53.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.53.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.53.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.53.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.53.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.53.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.53.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.53.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.53.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.53.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.53.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.53.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.53.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.53.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.53.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.53.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.53.0",
|
|
39
|
+
"@aws-sdk/types": "3.53.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.53.0",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.52.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.52.0",
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.53.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.53.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.53.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.53.0",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|