@aws-sdk/client-connect-contact-lens 3.489.0 → 3.495.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/dist-cjs/ConnectContactLens.js +1 -13
- package/dist-cjs/ConnectContactLensClient.js +1 -43
- package/dist-cjs/commands/ListRealtimeContactAnalysisSegmentsCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -4
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +473 -11
- package/dist-cjs/models/ConnectContactLensServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -79
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListRealtimeContactAnalysisSegmentsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -189
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectContactLens = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const ListRealtimeContactAnalysisSegmentsCommand_1 = require("./commands/ListRealtimeContactAnalysisSegmentsCommand");
|
|
6
|
-
const ConnectContactLensClient_1 = require("./ConnectContactLensClient");
|
|
7
|
-
const commands = {
|
|
8
|
-
ListRealtimeContactAnalysisSegmentsCommand: ListRealtimeContactAnalysisSegmentsCommand_1.ListRealtimeContactAnalysisSegmentsCommand,
|
|
9
|
-
};
|
|
10
|
-
class ConnectContactLens extends ConnectContactLensClient_1.ConnectContactLensClient {
|
|
11
|
-
}
|
|
12
|
-
exports.ConnectContactLens = ConnectContactLens;
|
|
13
|
-
(0, smithy_client_1.createAggregatedClient)(commands, ConnectContactLens);
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectContactLensClient = exports.__Client = void 0;
|
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
8
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
9
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
18
|
-
class ConnectContactLensClient extends smithy_client_1.Client {
|
|
19
|
-
constructor(...[configuration]) {
|
|
20
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
21
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
22
|
-
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
23
|
-
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
24
|
-
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
25
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
26
|
-
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
27
|
-
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
28
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
29
|
-
super(_config_8);
|
|
30
|
-
this.config = _config_8;
|
|
31
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
32
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
33
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
34
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
35
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
37
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
38
|
-
}
|
|
39
|
-
destroy() {
|
|
40
|
-
super.destroy();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.ConnectContactLensClient = ConnectContactLensClient;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListRealtimeContactAnalysisSegmentsCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class ListRealtimeContactAnalysisSegmentsCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("AmazonConnectContactLens", "ListRealtimeContactAnalysisSegments", {})
|
|
22
|
-
.n("ConnectContactLensClient", "ListRealtimeContactAnalysisSegmentsCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_restJson1_1.se_ListRealtimeContactAnalysisSegmentsCommand)
|
|
25
|
-
.de(Aws_restJson1_1.de_ListRealtimeContactAnalysisSegmentsCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.ListRealtimeContactAnalysisSegmentsCommand = ListRealtimeContactAnalysisSegmentsCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return {
|
|
6
|
-
...options,
|
|
7
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
9
|
-
defaultSigningName: "connect",
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
-
exports.commonParams = {
|
|
14
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
-
Region: { type: "builtInParams", name: "region" },
|
|
17
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("./index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,474 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
$Command: () => import_smithy_client.Command,
|
|
25
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
26
|
+
ConnectContactLens: () => ConnectContactLens,
|
|
27
|
+
ConnectContactLensClient: () => ConnectContactLensClient,
|
|
28
|
+
ConnectContactLensServiceException: () => ConnectContactLensServiceException,
|
|
29
|
+
InternalServiceException: () => InternalServiceException,
|
|
30
|
+
InvalidRequestException: () => InvalidRequestException,
|
|
31
|
+
ListRealtimeContactAnalysisSegmentsCommand: () => ListRealtimeContactAnalysisSegmentsCommand,
|
|
32
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
33
|
+
SentimentValue: () => SentimentValue,
|
|
34
|
+
ThrottlingException: () => ThrottlingException,
|
|
35
|
+
__Client: () => import_smithy_client.Client,
|
|
36
|
+
__MetadataBearer: () => import_types.MetadataBearer,
|
|
37
|
+
paginateListRealtimeContactAnalysisSegments: () => paginateListRealtimeContactAnalysisSegments
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(src_exports);
|
|
40
|
+
|
|
41
|
+
// src/ConnectContactLensClient.ts
|
|
42
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
43
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
44
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
45
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
46
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
47
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
48
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
49
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
50
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
// src/endpoint/EndpointParameters.ts
|
|
54
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
55
|
+
return {
|
|
56
|
+
...options,
|
|
57
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
58
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
59
|
+
defaultSigningName: "connect"
|
|
60
|
+
};
|
|
61
|
+
}, "resolveClientEndpointParameters");
|
|
62
|
+
var commonParams = {
|
|
63
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
64
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
65
|
+
Region: { type: "builtInParams", name: "region" },
|
|
66
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// src/ConnectContactLensClient.ts
|
|
70
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
71
|
+
|
|
72
|
+
// src/runtimeExtensions.ts
|
|
73
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
74
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
75
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
76
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
77
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
78
|
+
const extensionConfiguration = {
|
|
79
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
80
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
81
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
82
|
+
};
|
|
83
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
84
|
+
return {
|
|
85
|
+
...runtimeConfig,
|
|
86
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
87
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
88
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
89
|
+
};
|
|
90
|
+
}, "resolveRuntimeExtensions");
|
|
91
|
+
|
|
92
|
+
// src/ConnectContactLensClient.ts
|
|
93
|
+
var _ConnectContactLensClient = class _ConnectContactLensClient extends import_smithy_client.Client {
|
|
94
|
+
constructor(...[configuration]) {
|
|
95
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
96
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
97
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
98
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
99
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
100
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
101
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
102
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
103
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
104
|
+
super(_config_8);
|
|
105
|
+
this.config = _config_8;
|
|
106
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
107
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
108
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
109
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
110
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
111
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
112
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
116
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
117
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
118
|
+
*/
|
|
119
|
+
destroy() {
|
|
120
|
+
super.destroy();
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
__name(_ConnectContactLensClient, "ConnectContactLensClient");
|
|
124
|
+
var ConnectContactLensClient = _ConnectContactLensClient;
|
|
125
|
+
|
|
126
|
+
// src/ConnectContactLens.ts
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
// src/commands/ListRealtimeContactAnalysisSegmentsCommand.ts
|
|
130
|
+
|
|
131
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
132
|
+
|
|
133
|
+
var import_types = require("@smithy/types");
|
|
134
|
+
|
|
135
|
+
// src/protocols/Aws_restJson1.ts
|
|
136
|
+
var import_core = require("@smithy/core");
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
// src/models/ConnectContactLensServiceException.ts
|
|
140
|
+
|
|
141
|
+
var _ConnectContactLensServiceException = class _ConnectContactLensServiceException extends import_smithy_client.ServiceException {
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
constructor(options) {
|
|
146
|
+
super(options);
|
|
147
|
+
Object.setPrototypeOf(this, _ConnectContactLensServiceException.prototype);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
__name(_ConnectContactLensServiceException, "ConnectContactLensServiceException");
|
|
151
|
+
var ConnectContactLensServiceException = _ConnectContactLensServiceException;
|
|
152
|
+
|
|
153
|
+
// src/models/models_0.ts
|
|
154
|
+
var _AccessDeniedException = class _AccessDeniedException extends ConnectContactLensServiceException {
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "AccessDeniedException",
|
|
161
|
+
$fault: "client",
|
|
162
|
+
...opts
|
|
163
|
+
});
|
|
164
|
+
this.name = "AccessDeniedException";
|
|
165
|
+
this.$fault = "client";
|
|
166
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
167
|
+
this.Message = opts.Message;
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
171
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
172
|
+
var _InternalServiceException = class _InternalServiceException extends ConnectContactLensServiceException {
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "InternalServiceException",
|
|
179
|
+
$fault: "server",
|
|
180
|
+
...opts
|
|
181
|
+
});
|
|
182
|
+
this.name = "InternalServiceException";
|
|
183
|
+
this.$fault = "server";
|
|
184
|
+
Object.setPrototypeOf(this, _InternalServiceException.prototype);
|
|
185
|
+
this.Message = opts.Message;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
__name(_InternalServiceException, "InternalServiceException");
|
|
189
|
+
var InternalServiceException = _InternalServiceException;
|
|
190
|
+
var _InvalidRequestException = class _InvalidRequestException extends ConnectContactLensServiceException {
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "InvalidRequestException",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts
|
|
199
|
+
});
|
|
200
|
+
this.name = "InvalidRequestException";
|
|
201
|
+
this.$fault = "client";
|
|
202
|
+
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
203
|
+
this.Message = opts.Message;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
__name(_InvalidRequestException, "InvalidRequestException");
|
|
207
|
+
var InvalidRequestException = _InvalidRequestException;
|
|
208
|
+
var SentimentValue = {
|
|
209
|
+
NEGATIVE: "NEGATIVE",
|
|
210
|
+
NEUTRAL: "NEUTRAL",
|
|
211
|
+
POSITIVE: "POSITIVE"
|
|
212
|
+
};
|
|
213
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends ConnectContactLensServiceException {
|
|
214
|
+
/**
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
217
|
+
constructor(opts) {
|
|
218
|
+
super({
|
|
219
|
+
name: "ResourceNotFoundException",
|
|
220
|
+
$fault: "client",
|
|
221
|
+
...opts
|
|
222
|
+
});
|
|
223
|
+
this.name = "ResourceNotFoundException";
|
|
224
|
+
this.$fault = "client";
|
|
225
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
226
|
+
this.Message = opts.Message;
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
230
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
231
|
+
var _ThrottlingException = class _ThrottlingException extends ConnectContactLensServiceException {
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "ThrottlingException",
|
|
238
|
+
$fault: "client",
|
|
239
|
+
...opts
|
|
240
|
+
});
|
|
241
|
+
this.name = "ThrottlingException";
|
|
242
|
+
this.$fault = "client";
|
|
243
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
244
|
+
this.Message = opts.Message;
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
248
|
+
var ThrottlingException = _ThrottlingException;
|
|
249
|
+
|
|
250
|
+
// src/protocols/Aws_restJson1.ts
|
|
251
|
+
var se_ListRealtimeContactAnalysisSegmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
252
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
253
|
+
const headers = {
|
|
254
|
+
"content-type": "application/json"
|
|
255
|
+
};
|
|
256
|
+
b.bp("/realtime-contact-analysis/analysis-segments");
|
|
257
|
+
let body;
|
|
258
|
+
body = JSON.stringify(
|
|
259
|
+
(0, import_smithy_client.take)(input, {
|
|
260
|
+
ContactId: [],
|
|
261
|
+
InstanceId: [],
|
|
262
|
+
MaxResults: [],
|
|
263
|
+
NextToken: []
|
|
264
|
+
})
|
|
265
|
+
);
|
|
266
|
+
b.m("POST").h(headers).b(body);
|
|
267
|
+
return b.build();
|
|
268
|
+
}, "se_ListRealtimeContactAnalysisSegmentsCommand");
|
|
269
|
+
var de_ListRealtimeContactAnalysisSegmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
270
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
271
|
+
return de_ListRealtimeContactAnalysisSegmentsCommandError(output, context);
|
|
272
|
+
}
|
|
273
|
+
const contents = (0, import_smithy_client.map)({
|
|
274
|
+
$metadata: deserializeMetadata(output)
|
|
275
|
+
});
|
|
276
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
277
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
278
|
+
NextToken: import_smithy_client.expectString,
|
|
279
|
+
Segments: import_smithy_client._json
|
|
280
|
+
});
|
|
281
|
+
Object.assign(contents, doc);
|
|
282
|
+
return contents;
|
|
283
|
+
}, "de_ListRealtimeContactAnalysisSegmentsCommand");
|
|
284
|
+
var de_ListRealtimeContactAnalysisSegmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
285
|
+
const parsedOutput = {
|
|
286
|
+
...output,
|
|
287
|
+
body: await parseErrorBody(output.body, context)
|
|
288
|
+
};
|
|
289
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
290
|
+
switch (errorCode) {
|
|
291
|
+
case "AccessDeniedException":
|
|
292
|
+
case "com.amazonaws.connectcontactlens#AccessDeniedException":
|
|
293
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
294
|
+
case "InternalServiceException":
|
|
295
|
+
case "com.amazonaws.connectcontactlens#InternalServiceException":
|
|
296
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
297
|
+
case "InvalidRequestException":
|
|
298
|
+
case "com.amazonaws.connectcontactlens#InvalidRequestException":
|
|
299
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
300
|
+
case "ResourceNotFoundException":
|
|
301
|
+
case "com.amazonaws.connectcontactlens#ResourceNotFoundException":
|
|
302
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
303
|
+
case "ThrottlingException":
|
|
304
|
+
case "com.amazonaws.connectcontactlens#ThrottlingException":
|
|
305
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
306
|
+
default:
|
|
307
|
+
const parsedBody = parsedOutput.body;
|
|
308
|
+
return throwDefaultError({
|
|
309
|
+
output,
|
|
310
|
+
parsedBody,
|
|
311
|
+
errorCode
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
}, "de_ListRealtimeContactAnalysisSegmentsCommandError");
|
|
315
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(ConnectContactLensServiceException);
|
|
316
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
317
|
+
const contents = (0, import_smithy_client.map)({});
|
|
318
|
+
const data = parsedOutput.body;
|
|
319
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
320
|
+
Message: import_smithy_client.expectString
|
|
321
|
+
});
|
|
322
|
+
Object.assign(contents, doc);
|
|
323
|
+
const exception = new AccessDeniedException({
|
|
324
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
325
|
+
...contents
|
|
326
|
+
});
|
|
327
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
328
|
+
}, "de_AccessDeniedExceptionRes");
|
|
329
|
+
var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
330
|
+
const contents = (0, import_smithy_client.map)({});
|
|
331
|
+
const data = parsedOutput.body;
|
|
332
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
333
|
+
Message: import_smithy_client.expectString
|
|
334
|
+
});
|
|
335
|
+
Object.assign(contents, doc);
|
|
336
|
+
const exception = new InternalServiceException({
|
|
337
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
338
|
+
...contents
|
|
339
|
+
});
|
|
340
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
341
|
+
}, "de_InternalServiceExceptionRes");
|
|
342
|
+
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
343
|
+
const contents = (0, import_smithy_client.map)({});
|
|
344
|
+
const data = parsedOutput.body;
|
|
345
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
346
|
+
Message: import_smithy_client.expectString
|
|
347
|
+
});
|
|
348
|
+
Object.assign(contents, doc);
|
|
349
|
+
const exception = new InvalidRequestException({
|
|
350
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
351
|
+
...contents
|
|
352
|
+
});
|
|
353
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
354
|
+
}, "de_InvalidRequestExceptionRes");
|
|
355
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
356
|
+
const contents = (0, import_smithy_client.map)({});
|
|
357
|
+
const data = parsedOutput.body;
|
|
358
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
359
|
+
Message: import_smithy_client.expectString
|
|
360
|
+
});
|
|
361
|
+
Object.assign(contents, doc);
|
|
362
|
+
const exception = new ResourceNotFoundException({
|
|
363
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
364
|
+
...contents
|
|
365
|
+
});
|
|
366
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
367
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
368
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
369
|
+
const contents = (0, import_smithy_client.map)({});
|
|
370
|
+
const data = parsedOutput.body;
|
|
371
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
372
|
+
Message: import_smithy_client.expectString
|
|
373
|
+
});
|
|
374
|
+
Object.assign(contents, doc);
|
|
375
|
+
const exception = new ThrottlingException({
|
|
376
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
377
|
+
...contents
|
|
378
|
+
});
|
|
379
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
380
|
+
}, "de_ThrottlingExceptionRes");
|
|
381
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
382
|
+
httpStatusCode: output.statusCode,
|
|
383
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
384
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
385
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
386
|
+
}), "deserializeMetadata");
|
|
387
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
388
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
389
|
+
if (encoded.length) {
|
|
390
|
+
return JSON.parse(encoded);
|
|
391
|
+
}
|
|
392
|
+
return {};
|
|
393
|
+
}), "parseBody");
|
|
394
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
395
|
+
const value = await parseBody(errorBody, context);
|
|
396
|
+
value.message = value.message ?? value.Message;
|
|
397
|
+
return value;
|
|
398
|
+
}, "parseErrorBody");
|
|
399
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
400
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
401
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
402
|
+
let cleanValue = rawValue;
|
|
403
|
+
if (typeof cleanValue === "number") {
|
|
404
|
+
cleanValue = cleanValue.toString();
|
|
405
|
+
}
|
|
406
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
407
|
+
cleanValue = cleanValue.split(",")[0];
|
|
408
|
+
}
|
|
409
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
410
|
+
cleanValue = cleanValue.split(":")[0];
|
|
411
|
+
}
|
|
412
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
413
|
+
cleanValue = cleanValue.split("#")[1];
|
|
414
|
+
}
|
|
415
|
+
return cleanValue;
|
|
416
|
+
}, "sanitizeErrorCode");
|
|
417
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
418
|
+
if (headerKey !== void 0) {
|
|
419
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
420
|
+
}
|
|
421
|
+
if (data.code !== void 0) {
|
|
422
|
+
return sanitizeErrorCode(data.code);
|
|
423
|
+
}
|
|
424
|
+
if (data["__type"] !== void 0) {
|
|
425
|
+
return sanitizeErrorCode(data["__type"]);
|
|
426
|
+
}
|
|
427
|
+
}, "loadRestJsonErrorCode");
|
|
428
|
+
|
|
429
|
+
// src/commands/ListRealtimeContactAnalysisSegmentsCommand.ts
|
|
430
|
+
var _ListRealtimeContactAnalysisSegmentsCommand = class _ListRealtimeContactAnalysisSegmentsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
431
|
+
...commonParams
|
|
432
|
+
}).m(function(Command, cs, config, o) {
|
|
433
|
+
return [
|
|
434
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
435
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
436
|
+
];
|
|
437
|
+
}).s("AmazonConnectContactLens", "ListRealtimeContactAnalysisSegments", {}).n("ConnectContactLensClient", "ListRealtimeContactAnalysisSegmentsCommand").f(void 0, void 0).ser(se_ListRealtimeContactAnalysisSegmentsCommand).de(de_ListRealtimeContactAnalysisSegmentsCommand).build() {
|
|
438
|
+
};
|
|
439
|
+
__name(_ListRealtimeContactAnalysisSegmentsCommand, "ListRealtimeContactAnalysisSegmentsCommand");
|
|
440
|
+
var ListRealtimeContactAnalysisSegmentsCommand = _ListRealtimeContactAnalysisSegmentsCommand;
|
|
441
|
+
|
|
442
|
+
// src/ConnectContactLens.ts
|
|
443
|
+
var commands = {
|
|
444
|
+
ListRealtimeContactAnalysisSegmentsCommand
|
|
445
|
+
};
|
|
446
|
+
var _ConnectContactLens = class _ConnectContactLens extends ConnectContactLensClient {
|
|
447
|
+
};
|
|
448
|
+
__name(_ConnectContactLens, "ConnectContactLens");
|
|
449
|
+
var ConnectContactLens = _ConnectContactLens;
|
|
450
|
+
(0, import_smithy_client.createAggregatedClient)(commands, ConnectContactLens);
|
|
451
|
+
|
|
452
|
+
// src/pagination/ListRealtimeContactAnalysisSegmentsPaginator.ts
|
|
453
|
+
|
|
454
|
+
var paginateListRealtimeContactAnalysisSegments = (0, import_core.createPaginator)(ConnectContactLensClient, ListRealtimeContactAnalysisSegmentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
455
|
+
|
|
456
|
+
// src/index.ts
|
|
457
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
458
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
459
|
+
0 && (module.exports = {
|
|
460
|
+
$Command,
|
|
461
|
+
AccessDeniedException,
|
|
462
|
+
ConnectContactLens,
|
|
463
|
+
ConnectContactLensClient,
|
|
464
|
+
ConnectContactLensServiceException,
|
|
465
|
+
InternalServiceException,
|
|
466
|
+
InvalidRequestException,
|
|
467
|
+
ListRealtimeContactAnalysisSegmentsCommand,
|
|
468
|
+
ResourceNotFoundException,
|
|
469
|
+
SentimentValue,
|
|
470
|
+
ThrottlingException,
|
|
471
|
+
__Client,
|
|
472
|
+
__MetadataBearer,
|
|
473
|
+
paginateListRealtimeContactAnalysisSegments
|
|
474
|
+
});
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectContactLensServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class ConnectContactLensServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, ConnectContactLensServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.ConnectContactLensServiceException = ConnectContactLensServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,79 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThrottlingException = exports.ResourceNotFoundException = exports.SentimentValue = 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;
|
|
47
|
-
exports.SentimentValue = {
|
|
48
|
-
NEGATIVE: "NEGATIVE",
|
|
49
|
-
NEUTRAL: "NEUTRAL",
|
|
50
|
-
POSITIVE: "POSITIVE",
|
|
51
|
-
};
|
|
52
|
-
class ResourceNotFoundException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "ResourceNotFoundException",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts,
|
|
58
|
-
});
|
|
59
|
-
this.name = "ResourceNotFoundException";
|
|
60
|
-
this.$fault = "client";
|
|
61
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
62
|
-
this.Message = opts.Message;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
66
|
-
class ThrottlingException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
|
|
67
|
-
constructor(opts) {
|
|
68
|
-
super({
|
|
69
|
-
name: "ThrottlingException",
|
|
70
|
-
$fault: "client",
|
|
71
|
-
...opts,
|
|
72
|
-
});
|
|
73
|
-
this.name = "ThrottlingException";
|
|
74
|
-
this.$fault = "client";
|
|
75
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
76
|
-
this.Message = opts.Message;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
exports.ThrottlingException = ThrottlingException;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListRealtimeContactAnalysisSegments = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListRealtimeContactAnalysisSegmentsCommand_1 = require("../commands/ListRealtimeContactAnalysisSegmentsCommand");
|
|
6
|
-
const ConnectContactLensClient_1 = require("../ConnectContactLensClient");
|
|
7
|
-
exports.paginateListRealtimeContactAnalysisSegments = (0, core_1.createPaginator)(ConnectContactLensClient_1.ConnectContactLensClient, ListRealtimeContactAnalysisSegmentsCommand_1.ListRealtimeContactAnalysisSegmentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./ListRealtimeContactAnalysisSegmentsPaginator"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,189 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ListRealtimeContactAnalysisSegmentsCommand = exports.se_ListRealtimeContactAnalysisSegmentsCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const ConnectContactLensServiceException_1 = require("../models/ConnectContactLensServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_ListRealtimeContactAnalysisSegmentsCommand = async (input, context) => {
|
|
9
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
|
-
const headers = {
|
|
11
|
-
"content-type": "application/json",
|
|
12
|
-
};
|
|
13
|
-
b.bp("/realtime-contact-analysis/analysis-segments");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
-
ContactId: [],
|
|
17
|
-
InstanceId: [],
|
|
18
|
-
MaxResults: [],
|
|
19
|
-
NextToken: [],
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
exports.se_ListRealtimeContactAnalysisSegmentsCommand = se_ListRealtimeContactAnalysisSegmentsCommand;
|
|
25
|
-
const de_ListRealtimeContactAnalysisSegmentsCommand = async (output, context) => {
|
|
26
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
27
|
-
return de_ListRealtimeContactAnalysisSegmentsCommandError(output, context);
|
|
28
|
-
}
|
|
29
|
-
const contents = (0, smithy_client_1.map)({
|
|
30
|
-
$metadata: deserializeMetadata(output),
|
|
31
|
-
});
|
|
32
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
33
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
34
|
-
NextToken: smithy_client_1.expectString,
|
|
35
|
-
Segments: smithy_client_1._json,
|
|
36
|
-
});
|
|
37
|
-
Object.assign(contents, doc);
|
|
38
|
-
return contents;
|
|
39
|
-
};
|
|
40
|
-
exports.de_ListRealtimeContactAnalysisSegmentsCommand = de_ListRealtimeContactAnalysisSegmentsCommand;
|
|
41
|
-
const de_ListRealtimeContactAnalysisSegmentsCommandError = async (output, context) => {
|
|
42
|
-
const parsedOutput = {
|
|
43
|
-
...output,
|
|
44
|
-
body: await parseErrorBody(output.body, context),
|
|
45
|
-
};
|
|
46
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
47
|
-
switch (errorCode) {
|
|
48
|
-
case "AccessDeniedException":
|
|
49
|
-
case "com.amazonaws.connectcontactlens#AccessDeniedException":
|
|
50
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
51
|
-
case "InternalServiceException":
|
|
52
|
-
case "com.amazonaws.connectcontactlens#InternalServiceException":
|
|
53
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
54
|
-
case "InvalidRequestException":
|
|
55
|
-
case "com.amazonaws.connectcontactlens#InvalidRequestException":
|
|
56
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
57
|
-
case "ResourceNotFoundException":
|
|
58
|
-
case "com.amazonaws.connectcontactlens#ResourceNotFoundException":
|
|
59
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
60
|
-
case "ThrottlingException":
|
|
61
|
-
case "com.amazonaws.connectcontactlens#ThrottlingException":
|
|
62
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
63
|
-
default:
|
|
64
|
-
const parsedBody = parsedOutput.body;
|
|
65
|
-
return throwDefaultError({
|
|
66
|
-
output,
|
|
67
|
-
parsedBody,
|
|
68
|
-
errorCode,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ConnectContactLensServiceException_1.ConnectContactLensServiceException);
|
|
73
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
74
|
-
const contents = (0, smithy_client_1.map)({});
|
|
75
|
-
const data = parsedOutput.body;
|
|
76
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
77
|
-
Message: smithy_client_1.expectString,
|
|
78
|
-
});
|
|
79
|
-
Object.assign(contents, doc);
|
|
80
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
81
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
82
|
-
...contents,
|
|
83
|
-
});
|
|
84
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
85
|
-
};
|
|
86
|
-
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
87
|
-
const contents = (0, smithy_client_1.map)({});
|
|
88
|
-
const data = parsedOutput.body;
|
|
89
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
90
|
-
Message: smithy_client_1.expectString,
|
|
91
|
-
});
|
|
92
|
-
Object.assign(contents, doc);
|
|
93
|
-
const exception = new models_0_1.InternalServiceException({
|
|
94
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
95
|
-
...contents,
|
|
96
|
-
});
|
|
97
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
98
|
-
};
|
|
99
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
100
|
-
const contents = (0, smithy_client_1.map)({});
|
|
101
|
-
const data = parsedOutput.body;
|
|
102
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
103
|
-
Message: smithy_client_1.expectString,
|
|
104
|
-
});
|
|
105
|
-
Object.assign(contents, doc);
|
|
106
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
107
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
108
|
-
...contents,
|
|
109
|
-
});
|
|
110
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
111
|
-
};
|
|
112
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
113
|
-
const contents = (0, smithy_client_1.map)({});
|
|
114
|
-
const data = parsedOutput.body;
|
|
115
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
116
|
-
Message: smithy_client_1.expectString,
|
|
117
|
-
});
|
|
118
|
-
Object.assign(contents, doc);
|
|
119
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
120
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
121
|
-
...contents,
|
|
122
|
-
});
|
|
123
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
124
|
-
};
|
|
125
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
126
|
-
const contents = (0, smithy_client_1.map)({});
|
|
127
|
-
const data = parsedOutput.body;
|
|
128
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
129
|
-
Message: smithy_client_1.expectString,
|
|
130
|
-
});
|
|
131
|
-
Object.assign(contents, doc);
|
|
132
|
-
const exception = new models_0_1.ThrottlingException({
|
|
133
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
134
|
-
...contents,
|
|
135
|
-
});
|
|
136
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
137
|
-
};
|
|
138
|
-
const deserializeMetadata = (output) => ({
|
|
139
|
-
httpStatusCode: output.statusCode,
|
|
140
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
141
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
142
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
143
|
-
});
|
|
144
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
145
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
146
|
-
value !== null &&
|
|
147
|
-
value !== "" &&
|
|
148
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
149
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
150
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
151
|
-
if (encoded.length) {
|
|
152
|
-
return JSON.parse(encoded);
|
|
153
|
-
}
|
|
154
|
-
return {};
|
|
155
|
-
});
|
|
156
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
157
|
-
const value = await parseBody(errorBody, context);
|
|
158
|
-
value.message = value.message ?? value.Message;
|
|
159
|
-
return value;
|
|
160
|
-
};
|
|
161
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
162
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
163
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
164
|
-
let cleanValue = rawValue;
|
|
165
|
-
if (typeof cleanValue === "number") {
|
|
166
|
-
cleanValue = cleanValue.toString();
|
|
167
|
-
}
|
|
168
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
169
|
-
cleanValue = cleanValue.split(",")[0];
|
|
170
|
-
}
|
|
171
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
172
|
-
cleanValue = cleanValue.split(":")[0];
|
|
173
|
-
}
|
|
174
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
175
|
-
cleanValue = cleanValue.split("#")[1];
|
|
176
|
-
}
|
|
177
|
-
return cleanValue;
|
|
178
|
-
};
|
|
179
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
180
|
-
if (headerKey !== undefined) {
|
|
181
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
182
|
-
}
|
|
183
|
-
if (data.code !== undefined) {
|
|
184
|
-
return sanitizeErrorCode(data.code);
|
|
185
|
-
}
|
|
186
|
-
if (data["__type"] !== undefined) {
|
|
187
|
-
return sanitizeErrorCode(data["__type"]);
|
|
188
|
-
}
|
|
189
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-connect-contact-lens",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,47 +20,47 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-retry": "^2.0
|
|
59
|
-
"@smithy/util-utf8": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-retry": "^2.1.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
63
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/node": "^14.14.31",
|
|
66
66
|
"concurrently": "7.0.0",
|