@aws-sdk/client-connectcases 3.490.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/ConnectCases.js +1 -71
- package/dist-cjs/ConnectCasesClient.js +1 -43
- package/dist-cjs/commands/BatchGetFieldCommand.js +1 -28
- package/dist-cjs/commands/BatchPutFieldOptionsCommand.js +1 -28
- package/dist-cjs/commands/CreateCaseCommand.js +1 -28
- package/dist-cjs/commands/CreateDomainCommand.js +1 -28
- package/dist-cjs/commands/CreateFieldCommand.js +1 -28
- package/dist-cjs/commands/CreateLayoutCommand.js +1 -28
- package/dist-cjs/commands/CreateRelatedItemCommand.js +1 -28
- package/dist-cjs/commands/CreateTemplateCommand.js +1 -28
- package/dist-cjs/commands/DeleteDomainCommand.js +1 -28
- package/dist-cjs/commands/GetCaseCommand.js +1 -28
- package/dist-cjs/commands/GetCaseEventConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetDomainCommand.js +1 -28
- package/dist-cjs/commands/GetLayoutCommand.js +1 -28
- package/dist-cjs/commands/GetTemplateCommand.js +1 -28
- package/dist-cjs/commands/ListCasesForContactCommand.js +1 -28
- package/dist-cjs/commands/ListDomainsCommand.js +1 -28
- package/dist-cjs/commands/ListFieldOptionsCommand.js +1 -28
- package/dist-cjs/commands/ListFieldsCommand.js +1 -28
- package/dist-cjs/commands/ListLayoutsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTemplatesCommand.js +1 -28
- package/dist-cjs/commands/PutCaseEventConfigurationCommand.js +1 -28
- package/dist-cjs/commands/SearchCasesCommand.js +1 -28
- package/dist-cjs/commands/SearchRelatedItemsCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCaseCommand.js +1 -28
- package/dist-cjs/commands/UpdateFieldCommand.js +1 -28
- package/dist-cjs/commands/UpdateLayoutCommand.js +1 -28
- package/dist-cjs/commands/UpdateTemplateCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -33
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3289 -11
- package/dist-cjs/models/ConnectCasesServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -232
- package/dist-cjs/pagination/GetCasePaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCasesForContactPaginator.js +1 -7
- package/dist-cjs/pagination/ListDomainsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFieldOptionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFieldsPaginator.js +1 -7
- package/dist-cjs/pagination/ListLayoutsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTemplatesPaginator.js +1 -7
- package/dist-cjs/pagination/SearchCasesPaginator.js +1 -7
- package/dist-cjs/pagination/SearchRelatedItemsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -13
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2219
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,3290 @@
|
|
|
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
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
BatchGetFieldCommand: () => BatchGetFieldCommand,
|
|
26
|
+
BatchPutFieldOptionsCommand: () => BatchPutFieldOptionsCommand,
|
|
27
|
+
CaseFilter: () => CaseFilter,
|
|
28
|
+
CommentBodyTextType: () => CommentBodyTextType,
|
|
29
|
+
ConflictException: () => ConflictException,
|
|
30
|
+
ConnectCases: () => ConnectCases,
|
|
31
|
+
ConnectCasesClient: () => ConnectCasesClient,
|
|
32
|
+
ConnectCasesServiceException: () => ConnectCasesServiceException,
|
|
33
|
+
CreateCaseCommand: () => CreateCaseCommand,
|
|
34
|
+
CreateDomainCommand: () => CreateDomainCommand,
|
|
35
|
+
CreateFieldCommand: () => CreateFieldCommand,
|
|
36
|
+
CreateLayoutCommand: () => CreateLayoutCommand,
|
|
37
|
+
CreateRelatedItemCommand: () => CreateRelatedItemCommand,
|
|
38
|
+
CreateTemplateCommand: () => CreateTemplateCommand,
|
|
39
|
+
DeleteDomainCommand: () => DeleteDomainCommand,
|
|
40
|
+
DomainStatus: () => DomainStatus,
|
|
41
|
+
FieldFilter: () => FieldFilter,
|
|
42
|
+
FieldNamespace: () => FieldNamespace,
|
|
43
|
+
FieldType: () => FieldType,
|
|
44
|
+
FieldValueUnion: () => FieldValueUnion,
|
|
45
|
+
GetCaseCommand: () => GetCaseCommand,
|
|
46
|
+
GetCaseEventConfigurationCommand: () => GetCaseEventConfigurationCommand,
|
|
47
|
+
GetDomainCommand: () => GetDomainCommand,
|
|
48
|
+
GetLayoutCommand: () => GetLayoutCommand,
|
|
49
|
+
GetTemplateCommand: () => GetTemplateCommand,
|
|
50
|
+
InternalServerException: () => InternalServerException,
|
|
51
|
+
LayoutContent: () => LayoutContent,
|
|
52
|
+
ListCasesForContactCommand: () => ListCasesForContactCommand,
|
|
53
|
+
ListDomainsCommand: () => ListDomainsCommand,
|
|
54
|
+
ListFieldOptionsCommand: () => ListFieldOptionsCommand,
|
|
55
|
+
ListFieldsCommand: () => ListFieldsCommand,
|
|
56
|
+
ListLayoutsCommand: () => ListLayoutsCommand,
|
|
57
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
58
|
+
ListTemplatesCommand: () => ListTemplatesCommand,
|
|
59
|
+
Order: () => Order,
|
|
60
|
+
PutCaseEventConfigurationCommand: () => PutCaseEventConfigurationCommand,
|
|
61
|
+
RelatedItemContent: () => RelatedItemContent,
|
|
62
|
+
RelatedItemInputContent: () => RelatedItemInputContent,
|
|
63
|
+
RelatedItemType: () => RelatedItemType,
|
|
64
|
+
RelatedItemTypeFilter: () => RelatedItemTypeFilter,
|
|
65
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
66
|
+
SearchCasesCommand: () => SearchCasesCommand,
|
|
67
|
+
SearchRelatedItemsCommand: () => SearchRelatedItemsCommand,
|
|
68
|
+
Section: () => Section,
|
|
69
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
70
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
71
|
+
TemplateStatus: () => TemplateStatus,
|
|
72
|
+
ThrottlingException: () => ThrottlingException,
|
|
73
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
74
|
+
UpdateCaseCommand: () => UpdateCaseCommand,
|
|
75
|
+
UpdateFieldCommand: () => UpdateFieldCommand,
|
|
76
|
+
UpdateLayoutCommand: () => UpdateLayoutCommand,
|
|
77
|
+
UpdateTemplateCommand: () => UpdateTemplateCommand,
|
|
78
|
+
UserUnion: () => UserUnion,
|
|
79
|
+
ValidationException: () => ValidationException,
|
|
80
|
+
__Client: () => import_smithy_client.Client,
|
|
81
|
+
paginateGetCase: () => paginateGetCase,
|
|
82
|
+
paginateListCasesForContact: () => paginateListCasesForContact,
|
|
83
|
+
paginateListDomains: () => paginateListDomains,
|
|
84
|
+
paginateListFieldOptions: () => paginateListFieldOptions,
|
|
85
|
+
paginateListFields: () => paginateListFields,
|
|
86
|
+
paginateListLayouts: () => paginateListLayouts,
|
|
87
|
+
paginateListTemplates: () => paginateListTemplates,
|
|
88
|
+
paginateSearchCases: () => paginateSearchCases,
|
|
89
|
+
paginateSearchRelatedItems: () => paginateSearchRelatedItems
|
|
90
|
+
});
|
|
91
|
+
module.exports = __toCommonJS(src_exports);
|
|
92
|
+
|
|
93
|
+
// src/ConnectCasesClient.ts
|
|
94
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
95
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
96
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
97
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
98
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
99
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
100
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
101
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
102
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
// src/endpoint/EndpointParameters.ts
|
|
106
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
107
|
+
return {
|
|
108
|
+
...options,
|
|
109
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
110
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
111
|
+
defaultSigningName: "cases"
|
|
112
|
+
};
|
|
113
|
+
}, "resolveClientEndpointParameters");
|
|
114
|
+
var commonParams = {
|
|
115
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
116
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
117
|
+
Region: { type: "builtInParams", name: "region" },
|
|
118
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
// src/ConnectCasesClient.ts
|
|
122
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
123
|
+
|
|
124
|
+
// src/runtimeExtensions.ts
|
|
125
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
126
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
127
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
128
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
129
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
130
|
+
const extensionConfiguration = {
|
|
131
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
132
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
133
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
134
|
+
};
|
|
135
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
136
|
+
return {
|
|
137
|
+
...runtimeConfig,
|
|
138
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
139
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
140
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
141
|
+
};
|
|
142
|
+
}, "resolveRuntimeExtensions");
|
|
143
|
+
|
|
144
|
+
// src/ConnectCasesClient.ts
|
|
145
|
+
var _ConnectCasesClient = class _ConnectCasesClient extends import_smithy_client.Client {
|
|
146
|
+
constructor(...[configuration]) {
|
|
147
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
148
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
149
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
150
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
151
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
152
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
153
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
154
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
155
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
156
|
+
super(_config_8);
|
|
157
|
+
this.config = _config_8;
|
|
158
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
159
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
160
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
161
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
162
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
163
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
164
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
168
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
169
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
170
|
+
*/
|
|
171
|
+
destroy() {
|
|
172
|
+
super.destroy();
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
__name(_ConnectCasesClient, "ConnectCasesClient");
|
|
176
|
+
var ConnectCasesClient = _ConnectCasesClient;
|
|
177
|
+
|
|
178
|
+
// src/ConnectCases.ts
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
// src/commands/BatchGetFieldCommand.ts
|
|
182
|
+
|
|
183
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
184
|
+
|
|
185
|
+
var import_types = require("@smithy/types");
|
|
186
|
+
|
|
187
|
+
// src/protocols/Aws_restJson1.ts
|
|
188
|
+
var import_core = require("@aws-sdk/core");
|
|
189
|
+
var import_core2 = require("@smithy/core");
|
|
190
|
+
|
|
191
|
+
var import_uuid = require("uuid");
|
|
192
|
+
|
|
193
|
+
// src/models/ConnectCasesServiceException.ts
|
|
194
|
+
|
|
195
|
+
var _ConnectCasesServiceException = class _ConnectCasesServiceException extends import_smithy_client.ServiceException {
|
|
196
|
+
/**
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
constructor(options) {
|
|
200
|
+
super(options);
|
|
201
|
+
Object.setPrototypeOf(this, _ConnectCasesServiceException.prototype);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
__name(_ConnectCasesServiceException, "ConnectCasesServiceException");
|
|
205
|
+
var ConnectCasesServiceException = _ConnectCasesServiceException;
|
|
206
|
+
|
|
207
|
+
// src/models/models_0.ts
|
|
208
|
+
var _AccessDeniedException = class _AccessDeniedException extends ConnectCasesServiceException {
|
|
209
|
+
/**
|
|
210
|
+
* @internal
|
|
211
|
+
*/
|
|
212
|
+
constructor(opts) {
|
|
213
|
+
super({
|
|
214
|
+
name: "AccessDeniedException",
|
|
215
|
+
$fault: "client",
|
|
216
|
+
...opts
|
|
217
|
+
});
|
|
218
|
+
this.name = "AccessDeniedException";
|
|
219
|
+
this.$fault = "client";
|
|
220
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
224
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
225
|
+
var _ConflictException = class _ConflictException extends ConnectCasesServiceException {
|
|
226
|
+
/**
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "ConflictException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts
|
|
234
|
+
});
|
|
235
|
+
this.name = "ConflictException";
|
|
236
|
+
this.$fault = "client";
|
|
237
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
__name(_ConflictException, "ConflictException");
|
|
241
|
+
var ConflictException = _ConflictException;
|
|
242
|
+
var FieldValueUnion;
|
|
243
|
+
((FieldValueUnion2) => {
|
|
244
|
+
FieldValueUnion2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
245
|
+
if (value.stringValue !== void 0)
|
|
246
|
+
return visitor.stringValue(value.stringValue);
|
|
247
|
+
if (value.doubleValue !== void 0)
|
|
248
|
+
return visitor.doubleValue(value.doubleValue);
|
|
249
|
+
if (value.booleanValue !== void 0)
|
|
250
|
+
return visitor.booleanValue(value.booleanValue);
|
|
251
|
+
if (value.emptyValue !== void 0)
|
|
252
|
+
return visitor.emptyValue(value.emptyValue);
|
|
253
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
254
|
+
}, "visit");
|
|
255
|
+
})(FieldValueUnion || (FieldValueUnion = {}));
|
|
256
|
+
var _InternalServerException = class _InternalServerException extends ConnectCasesServiceException {
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
constructor(opts) {
|
|
261
|
+
super({
|
|
262
|
+
name: "InternalServerException",
|
|
263
|
+
$fault: "server",
|
|
264
|
+
...opts
|
|
265
|
+
});
|
|
266
|
+
this.name = "InternalServerException";
|
|
267
|
+
this.$fault = "server";
|
|
268
|
+
this.$retryable = {};
|
|
269
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
270
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
__name(_InternalServerException, "InternalServerException");
|
|
274
|
+
var InternalServerException = _InternalServerException;
|
|
275
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends ConnectCasesServiceException {
|
|
276
|
+
/**
|
|
277
|
+
* @internal
|
|
278
|
+
*/
|
|
279
|
+
constructor(opts) {
|
|
280
|
+
super({
|
|
281
|
+
name: "ResourceNotFoundException",
|
|
282
|
+
$fault: "client",
|
|
283
|
+
...opts
|
|
284
|
+
});
|
|
285
|
+
this.name = "ResourceNotFoundException";
|
|
286
|
+
this.$fault = "client";
|
|
287
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
288
|
+
this.resourceId = opts.resourceId;
|
|
289
|
+
this.resourceType = opts.resourceType;
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
293
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
294
|
+
var _ThrottlingException = class _ThrottlingException extends ConnectCasesServiceException {
|
|
295
|
+
/**
|
|
296
|
+
* @internal
|
|
297
|
+
*/
|
|
298
|
+
constructor(opts) {
|
|
299
|
+
super({
|
|
300
|
+
name: "ThrottlingException",
|
|
301
|
+
$fault: "client",
|
|
302
|
+
...opts
|
|
303
|
+
});
|
|
304
|
+
this.name = "ThrottlingException";
|
|
305
|
+
this.$fault = "client";
|
|
306
|
+
this.$retryable = {};
|
|
307
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
311
|
+
var ThrottlingException = _ThrottlingException;
|
|
312
|
+
var _ValidationException = class _ValidationException extends ConnectCasesServiceException {
|
|
313
|
+
/**
|
|
314
|
+
* @internal
|
|
315
|
+
*/
|
|
316
|
+
constructor(opts) {
|
|
317
|
+
super({
|
|
318
|
+
name: "ValidationException",
|
|
319
|
+
$fault: "client",
|
|
320
|
+
...opts
|
|
321
|
+
});
|
|
322
|
+
this.name = "ValidationException";
|
|
323
|
+
this.$fault = "client";
|
|
324
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
__name(_ValidationException, "ValidationException");
|
|
328
|
+
var ValidationException = _ValidationException;
|
|
329
|
+
var CommentBodyTextType = {
|
|
330
|
+
PLAINTEXT: "Text/Plain"
|
|
331
|
+
};
|
|
332
|
+
var RelatedItemInputContent;
|
|
333
|
+
((RelatedItemInputContent3) => {
|
|
334
|
+
RelatedItemInputContent3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
335
|
+
if (value.contact !== void 0)
|
|
336
|
+
return visitor.contact(value.contact);
|
|
337
|
+
if (value.comment !== void 0)
|
|
338
|
+
return visitor.comment(value.comment);
|
|
339
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
340
|
+
}, "visit");
|
|
341
|
+
})(RelatedItemInputContent || (RelatedItemInputContent = {}));
|
|
342
|
+
var UserUnion;
|
|
343
|
+
((UserUnion3) => {
|
|
344
|
+
UserUnion3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
345
|
+
if (value.userArn !== void 0)
|
|
346
|
+
return visitor.userArn(value.userArn);
|
|
347
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
348
|
+
}, "visit");
|
|
349
|
+
})(UserUnion || (UserUnion = {}));
|
|
350
|
+
var RelatedItemType = {
|
|
351
|
+
COMMENT: "Comment",
|
|
352
|
+
CONTACT: "Contact"
|
|
353
|
+
};
|
|
354
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ConnectCasesServiceException {
|
|
355
|
+
/**
|
|
356
|
+
* @internal
|
|
357
|
+
*/
|
|
358
|
+
constructor(opts) {
|
|
359
|
+
super({
|
|
360
|
+
name: "ServiceQuotaExceededException",
|
|
361
|
+
$fault: "client",
|
|
362
|
+
...opts
|
|
363
|
+
});
|
|
364
|
+
this.name = "ServiceQuotaExceededException";
|
|
365
|
+
this.$fault = "client";
|
|
366
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
370
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
371
|
+
var RelatedItemTypeFilter;
|
|
372
|
+
((RelatedItemTypeFilter3) => {
|
|
373
|
+
RelatedItemTypeFilter3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
374
|
+
if (value.contact !== void 0)
|
|
375
|
+
return visitor.contact(value.contact);
|
|
376
|
+
if (value.comment !== void 0)
|
|
377
|
+
return visitor.comment(value.comment);
|
|
378
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
379
|
+
}, "visit");
|
|
380
|
+
})(RelatedItemTypeFilter || (RelatedItemTypeFilter = {}));
|
|
381
|
+
var RelatedItemContent;
|
|
382
|
+
((RelatedItemContent3) => {
|
|
383
|
+
RelatedItemContent3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
384
|
+
if (value.contact !== void 0)
|
|
385
|
+
return visitor.contact(value.contact);
|
|
386
|
+
if (value.comment !== void 0)
|
|
387
|
+
return visitor.comment(value.comment);
|
|
388
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
389
|
+
}, "visit");
|
|
390
|
+
})(RelatedItemContent || (RelatedItemContent = {}));
|
|
391
|
+
var FieldFilter;
|
|
392
|
+
((FieldFilter2) => {
|
|
393
|
+
FieldFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
394
|
+
if (value.equalTo !== void 0)
|
|
395
|
+
return visitor.equalTo(value.equalTo);
|
|
396
|
+
if (value.contains !== void 0)
|
|
397
|
+
return visitor.contains(value.contains);
|
|
398
|
+
if (value.greaterThan !== void 0)
|
|
399
|
+
return visitor.greaterThan(value.greaterThan);
|
|
400
|
+
if (value.greaterThanOrEqualTo !== void 0)
|
|
401
|
+
return visitor.greaterThanOrEqualTo(value.greaterThanOrEqualTo);
|
|
402
|
+
if (value.lessThan !== void 0)
|
|
403
|
+
return visitor.lessThan(value.lessThan);
|
|
404
|
+
if (value.lessThanOrEqualTo !== void 0)
|
|
405
|
+
return visitor.lessThanOrEqualTo(value.lessThanOrEqualTo);
|
|
406
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
407
|
+
}, "visit");
|
|
408
|
+
})(FieldFilter || (FieldFilter = {}));
|
|
409
|
+
var Order = {
|
|
410
|
+
ASCENDING: "Asc",
|
|
411
|
+
DESCENDING: "Desc"
|
|
412
|
+
};
|
|
413
|
+
var DomainStatus = {
|
|
414
|
+
ACTIVE: "Active",
|
|
415
|
+
CREATION_FAILED: "CreationFailed",
|
|
416
|
+
CREATION_IN_PROGRESS: "CreationInProgress"
|
|
417
|
+
};
|
|
418
|
+
var FieldNamespace = {
|
|
419
|
+
CUSTOM: "Custom",
|
|
420
|
+
SYSTEM: "System"
|
|
421
|
+
};
|
|
422
|
+
var FieldType = {
|
|
423
|
+
BOOLEAN: "Boolean",
|
|
424
|
+
DATE_TIME: "DateTime",
|
|
425
|
+
NUMBER: "Number",
|
|
426
|
+
SINGLE_SELECT: "SingleSelect",
|
|
427
|
+
TEXT: "Text",
|
|
428
|
+
URL: "Url"
|
|
429
|
+
};
|
|
430
|
+
var Section;
|
|
431
|
+
((Section3) => {
|
|
432
|
+
Section3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
433
|
+
if (value.fieldGroup !== void 0)
|
|
434
|
+
return visitor.fieldGroup(value.fieldGroup);
|
|
435
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
436
|
+
}, "visit");
|
|
437
|
+
})(Section || (Section = {}));
|
|
438
|
+
var LayoutContent;
|
|
439
|
+
((LayoutContent3) => {
|
|
440
|
+
LayoutContent3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
441
|
+
if (value.basic !== void 0)
|
|
442
|
+
return visitor.basic(value.basic);
|
|
443
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
444
|
+
}, "visit");
|
|
445
|
+
})(LayoutContent || (LayoutContent = {}));
|
|
446
|
+
var TemplateStatus = {
|
|
447
|
+
ACTIVE: "Active",
|
|
448
|
+
INACTIVE: "Inactive"
|
|
449
|
+
};
|
|
450
|
+
var CaseFilter;
|
|
451
|
+
((CaseFilter2) => {
|
|
452
|
+
CaseFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
453
|
+
if (value.field !== void 0)
|
|
454
|
+
return visitor.field(value.field);
|
|
455
|
+
if (value.not !== void 0)
|
|
456
|
+
return visitor.not(value.not);
|
|
457
|
+
if (value.andAll !== void 0)
|
|
458
|
+
return visitor.andAll(value.andAll);
|
|
459
|
+
if (value.orAll !== void 0)
|
|
460
|
+
return visitor.orAll(value.orAll);
|
|
461
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
462
|
+
}, "visit");
|
|
463
|
+
})(CaseFilter || (CaseFilter = {}));
|
|
464
|
+
|
|
465
|
+
// src/protocols/Aws_restJson1.ts
|
|
466
|
+
var se_BatchGetFieldCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
467
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
468
|
+
const headers = {
|
|
469
|
+
"content-type": "application/json"
|
|
470
|
+
};
|
|
471
|
+
b.bp("/domains/{domainId}/fields-batch");
|
|
472
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
473
|
+
let body;
|
|
474
|
+
body = JSON.stringify(
|
|
475
|
+
(0, import_smithy_client.take)(input, {
|
|
476
|
+
fields: (_) => (0, import_smithy_client._json)(_)
|
|
477
|
+
})
|
|
478
|
+
);
|
|
479
|
+
b.m("POST").h(headers).b(body);
|
|
480
|
+
return b.build();
|
|
481
|
+
}, "se_BatchGetFieldCommand");
|
|
482
|
+
var se_BatchPutFieldOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
483
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
484
|
+
const headers = {
|
|
485
|
+
"content-type": "application/json"
|
|
486
|
+
};
|
|
487
|
+
b.bp("/domains/{domainId}/fields/{fieldId}/options");
|
|
488
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
489
|
+
b.p("fieldId", () => input.fieldId, "{fieldId}", false);
|
|
490
|
+
let body;
|
|
491
|
+
body = JSON.stringify(
|
|
492
|
+
(0, import_smithy_client.take)(input, {
|
|
493
|
+
options: (_) => (0, import_smithy_client._json)(_)
|
|
494
|
+
})
|
|
495
|
+
);
|
|
496
|
+
b.m("PUT").h(headers).b(body);
|
|
497
|
+
return b.build();
|
|
498
|
+
}, "se_BatchPutFieldOptionsCommand");
|
|
499
|
+
var se_CreateCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
500
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
501
|
+
const headers = {
|
|
502
|
+
"content-type": "application/json"
|
|
503
|
+
};
|
|
504
|
+
b.bp("/domains/{domainId}/cases");
|
|
505
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
506
|
+
let body;
|
|
507
|
+
body = JSON.stringify(
|
|
508
|
+
(0, import_smithy_client.take)(input, {
|
|
509
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
510
|
+
fields: (_) => se_FieldValueList(_, context),
|
|
511
|
+
templateId: []
|
|
512
|
+
})
|
|
513
|
+
);
|
|
514
|
+
b.m("POST").h(headers).b(body);
|
|
515
|
+
return b.build();
|
|
516
|
+
}, "se_CreateCaseCommand");
|
|
517
|
+
var se_CreateDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
518
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
519
|
+
const headers = {
|
|
520
|
+
"content-type": "application/json"
|
|
521
|
+
};
|
|
522
|
+
b.bp("/domains");
|
|
523
|
+
let body;
|
|
524
|
+
body = JSON.stringify(
|
|
525
|
+
(0, import_smithy_client.take)(input, {
|
|
526
|
+
name: []
|
|
527
|
+
})
|
|
528
|
+
);
|
|
529
|
+
b.m("POST").h(headers).b(body);
|
|
530
|
+
return b.build();
|
|
531
|
+
}, "se_CreateDomainCommand");
|
|
532
|
+
var se_CreateFieldCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
533
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
534
|
+
const headers = {
|
|
535
|
+
"content-type": "application/json"
|
|
536
|
+
};
|
|
537
|
+
b.bp("/domains/{domainId}/fields");
|
|
538
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
539
|
+
let body;
|
|
540
|
+
body = JSON.stringify(
|
|
541
|
+
(0, import_smithy_client.take)(input, {
|
|
542
|
+
description: [],
|
|
543
|
+
name: [],
|
|
544
|
+
type: []
|
|
545
|
+
})
|
|
546
|
+
);
|
|
547
|
+
b.m("POST").h(headers).b(body);
|
|
548
|
+
return b.build();
|
|
549
|
+
}, "se_CreateFieldCommand");
|
|
550
|
+
var se_CreateLayoutCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
551
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
552
|
+
const headers = {
|
|
553
|
+
"content-type": "application/json"
|
|
554
|
+
};
|
|
555
|
+
b.bp("/domains/{domainId}/layouts");
|
|
556
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
557
|
+
let body;
|
|
558
|
+
body = JSON.stringify(
|
|
559
|
+
(0, import_smithy_client.take)(input, {
|
|
560
|
+
content: (_) => (0, import_smithy_client._json)(_),
|
|
561
|
+
name: []
|
|
562
|
+
})
|
|
563
|
+
);
|
|
564
|
+
b.m("POST").h(headers).b(body);
|
|
565
|
+
return b.build();
|
|
566
|
+
}, "se_CreateLayoutCommand");
|
|
567
|
+
var se_CreateRelatedItemCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
568
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
569
|
+
const headers = {
|
|
570
|
+
"content-type": "application/json"
|
|
571
|
+
};
|
|
572
|
+
b.bp("/domains/{domainId}/cases/{caseId}/related-items");
|
|
573
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
574
|
+
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
575
|
+
let body;
|
|
576
|
+
body = JSON.stringify(
|
|
577
|
+
(0, import_smithy_client.take)(input, {
|
|
578
|
+
content: (_) => (0, import_smithy_client._json)(_),
|
|
579
|
+
performedBy: (_) => (0, import_smithy_client._json)(_),
|
|
580
|
+
type: []
|
|
581
|
+
})
|
|
582
|
+
);
|
|
583
|
+
b.m("POST").h(headers).b(body);
|
|
584
|
+
return b.build();
|
|
585
|
+
}, "se_CreateRelatedItemCommand");
|
|
586
|
+
var se_CreateTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
587
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
588
|
+
const headers = {
|
|
589
|
+
"content-type": "application/json"
|
|
590
|
+
};
|
|
591
|
+
b.bp("/domains/{domainId}/templates");
|
|
592
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
593
|
+
let body;
|
|
594
|
+
body = JSON.stringify(
|
|
595
|
+
(0, import_smithy_client.take)(input, {
|
|
596
|
+
description: [],
|
|
597
|
+
layoutConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
598
|
+
name: [],
|
|
599
|
+
requiredFields: (_) => (0, import_smithy_client._json)(_),
|
|
600
|
+
status: []
|
|
601
|
+
})
|
|
602
|
+
);
|
|
603
|
+
b.m("POST").h(headers).b(body);
|
|
604
|
+
return b.build();
|
|
605
|
+
}, "se_CreateTemplateCommand");
|
|
606
|
+
var se_DeleteDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
607
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
608
|
+
const headers = {};
|
|
609
|
+
b.bp("/domains/{domainId}");
|
|
610
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
611
|
+
let body;
|
|
612
|
+
b.m("DELETE").h(headers).b(body);
|
|
613
|
+
return b.build();
|
|
614
|
+
}, "se_DeleteDomainCommand");
|
|
615
|
+
var se_GetCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
616
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
617
|
+
const headers = {
|
|
618
|
+
"content-type": "application/json"
|
|
619
|
+
};
|
|
620
|
+
b.bp("/domains/{domainId}/cases/{caseId}");
|
|
621
|
+
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
622
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
623
|
+
let body;
|
|
624
|
+
body = JSON.stringify(
|
|
625
|
+
(0, import_smithy_client.take)(input, {
|
|
626
|
+
fields: (_) => (0, import_smithy_client._json)(_),
|
|
627
|
+
nextToken: []
|
|
628
|
+
})
|
|
629
|
+
);
|
|
630
|
+
b.m("POST").h(headers).b(body);
|
|
631
|
+
return b.build();
|
|
632
|
+
}, "se_GetCaseCommand");
|
|
633
|
+
var se_GetCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
634
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
635
|
+
const headers = {};
|
|
636
|
+
b.bp("/domains/{domainId}/case-event-configuration");
|
|
637
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
638
|
+
let body;
|
|
639
|
+
b.m("POST").h(headers).b(body);
|
|
640
|
+
return b.build();
|
|
641
|
+
}, "se_GetCaseEventConfigurationCommand");
|
|
642
|
+
var se_GetDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
643
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
644
|
+
const headers = {};
|
|
645
|
+
b.bp("/domains/{domainId}");
|
|
646
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
647
|
+
let body;
|
|
648
|
+
b.m("POST").h(headers).b(body);
|
|
649
|
+
return b.build();
|
|
650
|
+
}, "se_GetDomainCommand");
|
|
651
|
+
var se_GetLayoutCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
652
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
653
|
+
const headers = {};
|
|
654
|
+
b.bp("/domains/{domainId}/layouts/{layoutId}");
|
|
655
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
656
|
+
b.p("layoutId", () => input.layoutId, "{layoutId}", false);
|
|
657
|
+
let body;
|
|
658
|
+
b.m("POST").h(headers).b(body);
|
|
659
|
+
return b.build();
|
|
660
|
+
}, "se_GetLayoutCommand");
|
|
661
|
+
var se_GetTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
662
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
663
|
+
const headers = {};
|
|
664
|
+
b.bp("/domains/{domainId}/templates/{templateId}");
|
|
665
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
666
|
+
b.p("templateId", () => input.templateId, "{templateId}", false);
|
|
667
|
+
let body;
|
|
668
|
+
b.m("POST").h(headers).b(body);
|
|
669
|
+
return b.build();
|
|
670
|
+
}, "se_GetTemplateCommand");
|
|
671
|
+
var se_ListCasesForContactCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
672
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
673
|
+
const headers = {
|
|
674
|
+
"content-type": "application/json"
|
|
675
|
+
};
|
|
676
|
+
b.bp("/domains/{domainId}/list-cases-for-contact");
|
|
677
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
678
|
+
let body;
|
|
679
|
+
body = JSON.stringify(
|
|
680
|
+
(0, import_smithy_client.take)(input, {
|
|
681
|
+
contactArn: [],
|
|
682
|
+
maxResults: [],
|
|
683
|
+
nextToken: []
|
|
684
|
+
})
|
|
685
|
+
);
|
|
686
|
+
b.m("POST").h(headers).b(body);
|
|
687
|
+
return b.build();
|
|
688
|
+
}, "se_ListCasesForContactCommand");
|
|
689
|
+
var se_ListDomainsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
690
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
691
|
+
const headers = {};
|
|
692
|
+
b.bp("/domains-list");
|
|
693
|
+
const query = (0, import_smithy_client.map)({
|
|
694
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
695
|
+
[_nT]: [, input[_nT]]
|
|
696
|
+
});
|
|
697
|
+
let body;
|
|
698
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
699
|
+
return b.build();
|
|
700
|
+
}, "se_ListDomainsCommand");
|
|
701
|
+
var se_ListFieldOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
702
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
703
|
+
const headers = {};
|
|
704
|
+
b.bp("/domains/{domainId}/fields/{fieldId}/options-list");
|
|
705
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
706
|
+
b.p("fieldId", () => input.fieldId, "{fieldId}", false);
|
|
707
|
+
const query = (0, import_smithy_client.map)({
|
|
708
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
709
|
+
[_nT]: [, input[_nT]],
|
|
710
|
+
[_v]: [() => input.values !== void 0, () => (input[_v] || []).map((_entry) => _entry)]
|
|
711
|
+
});
|
|
712
|
+
let body;
|
|
713
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
714
|
+
return b.build();
|
|
715
|
+
}, "se_ListFieldOptionsCommand");
|
|
716
|
+
var se_ListFieldsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
717
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
718
|
+
const headers = {};
|
|
719
|
+
b.bp("/domains/{domainId}/fields-list");
|
|
720
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
721
|
+
const query = (0, import_smithy_client.map)({
|
|
722
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
723
|
+
[_nT]: [, input[_nT]]
|
|
724
|
+
});
|
|
725
|
+
let body;
|
|
726
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
727
|
+
return b.build();
|
|
728
|
+
}, "se_ListFieldsCommand");
|
|
729
|
+
var se_ListLayoutsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
730
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
731
|
+
const headers = {};
|
|
732
|
+
b.bp("/domains/{domainId}/layouts-list");
|
|
733
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
734
|
+
const query = (0, import_smithy_client.map)({
|
|
735
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
736
|
+
[_nT]: [, input[_nT]]
|
|
737
|
+
});
|
|
738
|
+
let body;
|
|
739
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
740
|
+
return b.build();
|
|
741
|
+
}, "se_ListLayoutsCommand");
|
|
742
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
743
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
744
|
+
const headers = {};
|
|
745
|
+
b.bp("/tags/{arn}");
|
|
746
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
747
|
+
let body;
|
|
748
|
+
b.m("GET").h(headers).b(body);
|
|
749
|
+
return b.build();
|
|
750
|
+
}, "se_ListTagsForResourceCommand");
|
|
751
|
+
var se_ListTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
752
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
753
|
+
const headers = {};
|
|
754
|
+
b.bp("/domains/{domainId}/templates-list");
|
|
755
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
756
|
+
const query = (0, import_smithy_client.map)({
|
|
757
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
758
|
+
[_nT]: [, input[_nT]],
|
|
759
|
+
[_s]: [() => input.status !== void 0, () => (input[_s] || []).map((_entry) => _entry)]
|
|
760
|
+
});
|
|
761
|
+
let body;
|
|
762
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
763
|
+
return b.build();
|
|
764
|
+
}, "se_ListTemplatesCommand");
|
|
765
|
+
var se_PutCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
766
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
767
|
+
const headers = {
|
|
768
|
+
"content-type": "application/json"
|
|
769
|
+
};
|
|
770
|
+
b.bp("/domains/{domainId}/case-event-configuration");
|
|
771
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
772
|
+
let body;
|
|
773
|
+
body = JSON.stringify(
|
|
774
|
+
(0, import_smithy_client.take)(input, {
|
|
775
|
+
eventBridge: (_) => (0, import_smithy_client._json)(_)
|
|
776
|
+
})
|
|
777
|
+
);
|
|
778
|
+
b.m("PUT").h(headers).b(body);
|
|
779
|
+
return b.build();
|
|
780
|
+
}, "se_PutCaseEventConfigurationCommand");
|
|
781
|
+
var se_SearchCasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
782
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
783
|
+
const headers = {
|
|
784
|
+
"content-type": "application/json"
|
|
785
|
+
};
|
|
786
|
+
b.bp("/domains/{domainId}/cases-search");
|
|
787
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
788
|
+
let body;
|
|
789
|
+
body = JSON.stringify(
|
|
790
|
+
(0, import_smithy_client.take)(input, {
|
|
791
|
+
fields: (_) => (0, import_smithy_client._json)(_),
|
|
792
|
+
filter: (_) => se_CaseFilter(_, context),
|
|
793
|
+
maxResults: [],
|
|
794
|
+
nextToken: [],
|
|
795
|
+
searchTerm: [],
|
|
796
|
+
sorts: (_) => (0, import_smithy_client._json)(_)
|
|
797
|
+
})
|
|
798
|
+
);
|
|
799
|
+
b.m("POST").h(headers).b(body);
|
|
800
|
+
return b.build();
|
|
801
|
+
}, "se_SearchCasesCommand");
|
|
802
|
+
var se_SearchRelatedItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
803
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
804
|
+
const headers = {
|
|
805
|
+
"content-type": "application/json"
|
|
806
|
+
};
|
|
807
|
+
b.bp("/domains/{domainId}/cases/{caseId}/related-items-search");
|
|
808
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
809
|
+
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
810
|
+
let body;
|
|
811
|
+
body = JSON.stringify(
|
|
812
|
+
(0, import_smithy_client.take)(input, {
|
|
813
|
+
filters: (_) => (0, import_smithy_client._json)(_),
|
|
814
|
+
maxResults: [],
|
|
815
|
+
nextToken: []
|
|
816
|
+
})
|
|
817
|
+
);
|
|
818
|
+
b.m("POST").h(headers).b(body);
|
|
819
|
+
return b.build();
|
|
820
|
+
}, "se_SearchRelatedItemsCommand");
|
|
821
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
822
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
823
|
+
const headers = {
|
|
824
|
+
"content-type": "application/json"
|
|
825
|
+
};
|
|
826
|
+
b.bp("/tags/{arn}");
|
|
827
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
828
|
+
let body;
|
|
829
|
+
body = JSON.stringify(
|
|
830
|
+
(0, import_smithy_client.take)(input, {
|
|
831
|
+
tags: (_) => se_Tags(_, context)
|
|
832
|
+
})
|
|
833
|
+
);
|
|
834
|
+
b.m("POST").h(headers).b(body);
|
|
835
|
+
return b.build();
|
|
836
|
+
}, "se_TagResourceCommand");
|
|
837
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
838
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
839
|
+
const headers = {};
|
|
840
|
+
b.bp("/tags/{arn}");
|
|
841
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
842
|
+
const query = (0, import_smithy_client.map)({
|
|
843
|
+
[_tK]: [
|
|
844
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
845
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
846
|
+
]
|
|
847
|
+
});
|
|
848
|
+
let body;
|
|
849
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
850
|
+
return b.build();
|
|
851
|
+
}, "se_UntagResourceCommand");
|
|
852
|
+
var se_UpdateCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
853
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
854
|
+
const headers = {
|
|
855
|
+
"content-type": "application/json"
|
|
856
|
+
};
|
|
857
|
+
b.bp("/domains/{domainId}/cases/{caseId}");
|
|
858
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
859
|
+
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
860
|
+
let body;
|
|
861
|
+
body = JSON.stringify(
|
|
862
|
+
(0, import_smithy_client.take)(input, {
|
|
863
|
+
fields: (_) => se_FieldValueList(_, context)
|
|
864
|
+
})
|
|
865
|
+
);
|
|
866
|
+
b.m("PUT").h(headers).b(body);
|
|
867
|
+
return b.build();
|
|
868
|
+
}, "se_UpdateCaseCommand");
|
|
869
|
+
var se_UpdateFieldCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
870
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
871
|
+
const headers = {
|
|
872
|
+
"content-type": "application/json"
|
|
873
|
+
};
|
|
874
|
+
b.bp("/domains/{domainId}/fields/{fieldId}");
|
|
875
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
876
|
+
b.p("fieldId", () => input.fieldId, "{fieldId}", false);
|
|
877
|
+
let body;
|
|
878
|
+
body = JSON.stringify(
|
|
879
|
+
(0, import_smithy_client.take)(input, {
|
|
880
|
+
description: [],
|
|
881
|
+
name: []
|
|
882
|
+
})
|
|
883
|
+
);
|
|
884
|
+
b.m("PUT").h(headers).b(body);
|
|
885
|
+
return b.build();
|
|
886
|
+
}, "se_UpdateFieldCommand");
|
|
887
|
+
var se_UpdateLayoutCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
888
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
889
|
+
const headers = {
|
|
890
|
+
"content-type": "application/json"
|
|
891
|
+
};
|
|
892
|
+
b.bp("/domains/{domainId}/layouts/{layoutId}");
|
|
893
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
894
|
+
b.p("layoutId", () => input.layoutId, "{layoutId}", false);
|
|
895
|
+
let body;
|
|
896
|
+
body = JSON.stringify(
|
|
897
|
+
(0, import_smithy_client.take)(input, {
|
|
898
|
+
content: (_) => (0, import_smithy_client._json)(_),
|
|
899
|
+
name: []
|
|
900
|
+
})
|
|
901
|
+
);
|
|
902
|
+
b.m("PUT").h(headers).b(body);
|
|
903
|
+
return b.build();
|
|
904
|
+
}, "se_UpdateLayoutCommand");
|
|
905
|
+
var se_UpdateTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
906
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
907
|
+
const headers = {
|
|
908
|
+
"content-type": "application/json"
|
|
909
|
+
};
|
|
910
|
+
b.bp("/domains/{domainId}/templates/{templateId}");
|
|
911
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
912
|
+
b.p("templateId", () => input.templateId, "{templateId}", false);
|
|
913
|
+
let body;
|
|
914
|
+
body = JSON.stringify(
|
|
915
|
+
(0, import_smithy_client.take)(input, {
|
|
916
|
+
description: [],
|
|
917
|
+
layoutConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
918
|
+
name: [],
|
|
919
|
+
requiredFields: (_) => (0, import_smithy_client._json)(_),
|
|
920
|
+
status: []
|
|
921
|
+
})
|
|
922
|
+
);
|
|
923
|
+
b.m("PUT").h(headers).b(body);
|
|
924
|
+
return b.build();
|
|
925
|
+
}, "se_UpdateTemplateCommand");
|
|
926
|
+
var de_BatchGetFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
927
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
|
+
return de_BatchGetFieldCommandError(output, context);
|
|
929
|
+
}
|
|
930
|
+
const contents = (0, import_smithy_client.map)({
|
|
931
|
+
$metadata: deserializeMetadata(output)
|
|
932
|
+
});
|
|
933
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
934
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
935
|
+
errors: import_smithy_client._json,
|
|
936
|
+
fields: (_) => de_BatchGetFieldList(_, context)
|
|
937
|
+
});
|
|
938
|
+
Object.assign(contents, doc);
|
|
939
|
+
return contents;
|
|
940
|
+
}, "de_BatchGetFieldCommand");
|
|
941
|
+
var de_BatchGetFieldCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
|
+
const parsedOutput = {
|
|
943
|
+
...output,
|
|
944
|
+
body: await parseErrorBody(output.body, context)
|
|
945
|
+
};
|
|
946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
+
switch (errorCode) {
|
|
948
|
+
case "AccessDeniedException":
|
|
949
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
950
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
951
|
+
case "InternalServerException":
|
|
952
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
953
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
954
|
+
case "ResourceNotFoundException":
|
|
955
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
956
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
957
|
+
case "ThrottlingException":
|
|
958
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
959
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
960
|
+
case "ValidationException":
|
|
961
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
962
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
963
|
+
default:
|
|
964
|
+
const parsedBody = parsedOutput.body;
|
|
965
|
+
return throwDefaultError({
|
|
966
|
+
output,
|
|
967
|
+
parsedBody,
|
|
968
|
+
errorCode
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
}, "de_BatchGetFieldCommandError");
|
|
972
|
+
var de_BatchPutFieldOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
+
return de_BatchPutFieldOptionsCommandError(output, context);
|
|
975
|
+
}
|
|
976
|
+
const contents = (0, import_smithy_client.map)({
|
|
977
|
+
$metadata: deserializeMetadata(output)
|
|
978
|
+
});
|
|
979
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
980
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
981
|
+
errors: import_smithy_client._json
|
|
982
|
+
});
|
|
983
|
+
Object.assign(contents, doc);
|
|
984
|
+
return contents;
|
|
985
|
+
}, "de_BatchPutFieldOptionsCommand");
|
|
986
|
+
var de_BatchPutFieldOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
987
|
+
const parsedOutput = {
|
|
988
|
+
...output,
|
|
989
|
+
body: await parseErrorBody(output.body, context)
|
|
990
|
+
};
|
|
991
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
+
switch (errorCode) {
|
|
993
|
+
case "AccessDeniedException":
|
|
994
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
995
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
996
|
+
case "InternalServerException":
|
|
997
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
998
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
999
|
+
case "ResourceNotFoundException":
|
|
1000
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1001
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1002
|
+
case "ServiceQuotaExceededException":
|
|
1003
|
+
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
1004
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1005
|
+
case "ThrottlingException":
|
|
1006
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1007
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1008
|
+
case "ValidationException":
|
|
1009
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1010
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1011
|
+
default:
|
|
1012
|
+
const parsedBody = parsedOutput.body;
|
|
1013
|
+
return throwDefaultError({
|
|
1014
|
+
output,
|
|
1015
|
+
parsedBody,
|
|
1016
|
+
errorCode
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
}, "de_BatchPutFieldOptionsCommandError");
|
|
1020
|
+
var de_CreateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1021
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1022
|
+
return de_CreateCaseCommandError(output, context);
|
|
1023
|
+
}
|
|
1024
|
+
const contents = (0, import_smithy_client.map)({
|
|
1025
|
+
$metadata: deserializeMetadata(output)
|
|
1026
|
+
});
|
|
1027
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1028
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1029
|
+
caseArn: import_smithy_client.expectString,
|
|
1030
|
+
caseId: import_smithy_client.expectString
|
|
1031
|
+
});
|
|
1032
|
+
Object.assign(contents, doc);
|
|
1033
|
+
return contents;
|
|
1034
|
+
}, "de_CreateCaseCommand");
|
|
1035
|
+
var de_CreateCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1036
|
+
const parsedOutput = {
|
|
1037
|
+
...output,
|
|
1038
|
+
body: await parseErrorBody(output.body, context)
|
|
1039
|
+
};
|
|
1040
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
+
switch (errorCode) {
|
|
1042
|
+
case "AccessDeniedException":
|
|
1043
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1044
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1045
|
+
case "ConflictException":
|
|
1046
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
1047
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1048
|
+
case "InternalServerException":
|
|
1049
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1050
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1051
|
+
case "ResourceNotFoundException":
|
|
1052
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1053
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1054
|
+
case "ThrottlingException":
|
|
1055
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1056
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1057
|
+
case "ValidationException":
|
|
1058
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1059
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1060
|
+
default:
|
|
1061
|
+
const parsedBody = parsedOutput.body;
|
|
1062
|
+
return throwDefaultError({
|
|
1063
|
+
output,
|
|
1064
|
+
parsedBody,
|
|
1065
|
+
errorCode
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
}, "de_CreateCaseCommandError");
|
|
1069
|
+
var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1070
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1071
|
+
return de_CreateDomainCommandError(output, context);
|
|
1072
|
+
}
|
|
1073
|
+
const contents = (0, import_smithy_client.map)({
|
|
1074
|
+
$metadata: deserializeMetadata(output)
|
|
1075
|
+
});
|
|
1076
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1077
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1078
|
+
domainArn: import_smithy_client.expectString,
|
|
1079
|
+
domainId: import_smithy_client.expectString,
|
|
1080
|
+
domainStatus: import_smithy_client.expectString
|
|
1081
|
+
});
|
|
1082
|
+
Object.assign(contents, doc);
|
|
1083
|
+
return contents;
|
|
1084
|
+
}, "de_CreateDomainCommand");
|
|
1085
|
+
var de_CreateDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
|
+
const parsedOutput = {
|
|
1087
|
+
...output,
|
|
1088
|
+
body: await parseErrorBody(output.body, context)
|
|
1089
|
+
};
|
|
1090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
+
switch (errorCode) {
|
|
1092
|
+
case "AccessDeniedException":
|
|
1093
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1094
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1095
|
+
case "ConflictException":
|
|
1096
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
1097
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1098
|
+
case "InternalServerException":
|
|
1099
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1100
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1101
|
+
case "ServiceQuotaExceededException":
|
|
1102
|
+
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
1103
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1104
|
+
case "ThrottlingException":
|
|
1105
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1106
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1107
|
+
case "ValidationException":
|
|
1108
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1109
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1110
|
+
default:
|
|
1111
|
+
const parsedBody = parsedOutput.body;
|
|
1112
|
+
return throwDefaultError({
|
|
1113
|
+
output,
|
|
1114
|
+
parsedBody,
|
|
1115
|
+
errorCode
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
}, "de_CreateDomainCommandError");
|
|
1119
|
+
var de_CreateFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1121
|
+
return de_CreateFieldCommandError(output, context);
|
|
1122
|
+
}
|
|
1123
|
+
const contents = (0, import_smithy_client.map)({
|
|
1124
|
+
$metadata: deserializeMetadata(output)
|
|
1125
|
+
});
|
|
1126
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1127
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1128
|
+
fieldArn: import_smithy_client.expectString,
|
|
1129
|
+
fieldId: import_smithy_client.expectString
|
|
1130
|
+
});
|
|
1131
|
+
Object.assign(contents, doc);
|
|
1132
|
+
return contents;
|
|
1133
|
+
}, "de_CreateFieldCommand");
|
|
1134
|
+
var de_CreateFieldCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1135
|
+
const parsedOutput = {
|
|
1136
|
+
...output,
|
|
1137
|
+
body: await parseErrorBody(output.body, context)
|
|
1138
|
+
};
|
|
1139
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
|
+
switch (errorCode) {
|
|
1141
|
+
case "AccessDeniedException":
|
|
1142
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1143
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1144
|
+
case "ConflictException":
|
|
1145
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
1146
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1147
|
+
case "InternalServerException":
|
|
1148
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1149
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "ResourceNotFoundException":
|
|
1151
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1152
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1153
|
+
case "ServiceQuotaExceededException":
|
|
1154
|
+
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
1155
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "ThrottlingException":
|
|
1157
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1158
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1159
|
+
case "ValidationException":
|
|
1160
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1161
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1162
|
+
default:
|
|
1163
|
+
const parsedBody = parsedOutput.body;
|
|
1164
|
+
return throwDefaultError({
|
|
1165
|
+
output,
|
|
1166
|
+
parsedBody,
|
|
1167
|
+
errorCode
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
}, "de_CreateFieldCommandError");
|
|
1171
|
+
var de_CreateLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1172
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1173
|
+
return de_CreateLayoutCommandError(output, context);
|
|
1174
|
+
}
|
|
1175
|
+
const contents = (0, import_smithy_client.map)({
|
|
1176
|
+
$metadata: deserializeMetadata(output)
|
|
1177
|
+
});
|
|
1178
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1179
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1180
|
+
layoutArn: import_smithy_client.expectString,
|
|
1181
|
+
layoutId: import_smithy_client.expectString
|
|
1182
|
+
});
|
|
1183
|
+
Object.assign(contents, doc);
|
|
1184
|
+
return contents;
|
|
1185
|
+
}, "de_CreateLayoutCommand");
|
|
1186
|
+
var de_CreateLayoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1187
|
+
const parsedOutput = {
|
|
1188
|
+
...output,
|
|
1189
|
+
body: await parseErrorBody(output.body, context)
|
|
1190
|
+
};
|
|
1191
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
|
+
switch (errorCode) {
|
|
1193
|
+
case "AccessDeniedException":
|
|
1194
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1195
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1196
|
+
case "ConflictException":
|
|
1197
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
1198
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1199
|
+
case "InternalServerException":
|
|
1200
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1201
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1202
|
+
case "ResourceNotFoundException":
|
|
1203
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1204
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1205
|
+
case "ServiceQuotaExceededException":
|
|
1206
|
+
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
1207
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1208
|
+
case "ThrottlingException":
|
|
1209
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1210
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1211
|
+
case "ValidationException":
|
|
1212
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1213
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1214
|
+
default:
|
|
1215
|
+
const parsedBody = parsedOutput.body;
|
|
1216
|
+
return throwDefaultError({
|
|
1217
|
+
output,
|
|
1218
|
+
parsedBody,
|
|
1219
|
+
errorCode
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
}, "de_CreateLayoutCommandError");
|
|
1223
|
+
var de_CreateRelatedItemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1224
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1225
|
+
return de_CreateRelatedItemCommandError(output, context);
|
|
1226
|
+
}
|
|
1227
|
+
const contents = (0, import_smithy_client.map)({
|
|
1228
|
+
$metadata: deserializeMetadata(output)
|
|
1229
|
+
});
|
|
1230
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1231
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1232
|
+
relatedItemArn: import_smithy_client.expectString,
|
|
1233
|
+
relatedItemId: import_smithy_client.expectString
|
|
1234
|
+
});
|
|
1235
|
+
Object.assign(contents, doc);
|
|
1236
|
+
return contents;
|
|
1237
|
+
}, "de_CreateRelatedItemCommand");
|
|
1238
|
+
var de_CreateRelatedItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
|
+
const parsedOutput = {
|
|
1240
|
+
...output,
|
|
1241
|
+
body: await parseErrorBody(output.body, context)
|
|
1242
|
+
};
|
|
1243
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
|
+
switch (errorCode) {
|
|
1245
|
+
case "AccessDeniedException":
|
|
1246
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1247
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1248
|
+
case "InternalServerException":
|
|
1249
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1250
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1251
|
+
case "ResourceNotFoundException":
|
|
1252
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1253
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1254
|
+
case "ServiceQuotaExceededException":
|
|
1255
|
+
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
1256
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1257
|
+
case "ThrottlingException":
|
|
1258
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1259
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1260
|
+
case "ValidationException":
|
|
1261
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1262
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1263
|
+
default:
|
|
1264
|
+
const parsedBody = parsedOutput.body;
|
|
1265
|
+
return throwDefaultError({
|
|
1266
|
+
output,
|
|
1267
|
+
parsedBody,
|
|
1268
|
+
errorCode
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
}, "de_CreateRelatedItemCommandError");
|
|
1272
|
+
var de_CreateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1273
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1274
|
+
return de_CreateTemplateCommandError(output, context);
|
|
1275
|
+
}
|
|
1276
|
+
const contents = (0, import_smithy_client.map)({
|
|
1277
|
+
$metadata: deserializeMetadata(output)
|
|
1278
|
+
});
|
|
1279
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1280
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1281
|
+
templateArn: import_smithy_client.expectString,
|
|
1282
|
+
templateId: import_smithy_client.expectString
|
|
1283
|
+
});
|
|
1284
|
+
Object.assign(contents, doc);
|
|
1285
|
+
return contents;
|
|
1286
|
+
}, "de_CreateTemplateCommand");
|
|
1287
|
+
var de_CreateTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1288
|
+
const parsedOutput = {
|
|
1289
|
+
...output,
|
|
1290
|
+
body: await parseErrorBody(output.body, context)
|
|
1291
|
+
};
|
|
1292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
|
+
switch (errorCode) {
|
|
1294
|
+
case "AccessDeniedException":
|
|
1295
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1296
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1297
|
+
case "ConflictException":
|
|
1298
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
1299
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1300
|
+
case "InternalServerException":
|
|
1301
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1302
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1303
|
+
case "ResourceNotFoundException":
|
|
1304
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1305
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1306
|
+
case "ServiceQuotaExceededException":
|
|
1307
|
+
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
1308
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1309
|
+
case "ThrottlingException":
|
|
1310
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1311
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1312
|
+
case "ValidationException":
|
|
1313
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1314
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1315
|
+
default:
|
|
1316
|
+
const parsedBody = parsedOutput.body;
|
|
1317
|
+
return throwDefaultError({
|
|
1318
|
+
output,
|
|
1319
|
+
parsedBody,
|
|
1320
|
+
errorCode
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
}, "de_CreateTemplateCommandError");
|
|
1324
|
+
var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1325
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1326
|
+
return de_DeleteDomainCommandError(output, context);
|
|
1327
|
+
}
|
|
1328
|
+
const contents = (0, import_smithy_client.map)({
|
|
1329
|
+
$metadata: deserializeMetadata(output)
|
|
1330
|
+
});
|
|
1331
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1332
|
+
return contents;
|
|
1333
|
+
}, "de_DeleteDomainCommand");
|
|
1334
|
+
var de_DeleteDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1335
|
+
const parsedOutput = {
|
|
1336
|
+
...output,
|
|
1337
|
+
body: await parseErrorBody(output.body, context)
|
|
1338
|
+
};
|
|
1339
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
|
+
switch (errorCode) {
|
|
1341
|
+
case "AccessDeniedException":
|
|
1342
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1343
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1344
|
+
case "ConflictException":
|
|
1345
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
1346
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1347
|
+
case "InternalServerException":
|
|
1348
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1349
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1350
|
+
case "ResourceNotFoundException":
|
|
1351
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1352
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1353
|
+
case "ThrottlingException":
|
|
1354
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1355
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1356
|
+
case "ValidationException":
|
|
1357
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1358
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1359
|
+
default:
|
|
1360
|
+
const parsedBody = parsedOutput.body;
|
|
1361
|
+
return throwDefaultError({
|
|
1362
|
+
output,
|
|
1363
|
+
parsedBody,
|
|
1364
|
+
errorCode
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
}, "de_DeleteDomainCommandError");
|
|
1368
|
+
var de_GetCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1369
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1370
|
+
return de_GetCaseCommandError(output, context);
|
|
1371
|
+
}
|
|
1372
|
+
const contents = (0, import_smithy_client.map)({
|
|
1373
|
+
$metadata: deserializeMetadata(output)
|
|
1374
|
+
});
|
|
1375
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1376
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1377
|
+
fields: (_) => de_FieldValueList(_, context),
|
|
1378
|
+
nextToken: import_smithy_client.expectString,
|
|
1379
|
+
tags: (_) => de_Tags(_, context),
|
|
1380
|
+
templateId: import_smithy_client.expectString
|
|
1381
|
+
});
|
|
1382
|
+
Object.assign(contents, doc);
|
|
1383
|
+
return contents;
|
|
1384
|
+
}, "de_GetCaseCommand");
|
|
1385
|
+
var de_GetCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1386
|
+
const parsedOutput = {
|
|
1387
|
+
...output,
|
|
1388
|
+
body: await parseErrorBody(output.body, context)
|
|
1389
|
+
};
|
|
1390
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
|
+
switch (errorCode) {
|
|
1392
|
+
case "AccessDeniedException":
|
|
1393
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1394
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1395
|
+
case "InternalServerException":
|
|
1396
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1397
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1398
|
+
case "ResourceNotFoundException":
|
|
1399
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1400
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1401
|
+
case "ThrottlingException":
|
|
1402
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1403
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1404
|
+
case "ValidationException":
|
|
1405
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1406
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1407
|
+
default:
|
|
1408
|
+
const parsedBody = parsedOutput.body;
|
|
1409
|
+
return throwDefaultError({
|
|
1410
|
+
output,
|
|
1411
|
+
parsedBody,
|
|
1412
|
+
errorCode
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
}, "de_GetCaseCommandError");
|
|
1416
|
+
var de_GetCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1417
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1418
|
+
return de_GetCaseEventConfigurationCommandError(output, context);
|
|
1419
|
+
}
|
|
1420
|
+
const contents = (0, import_smithy_client.map)({
|
|
1421
|
+
$metadata: deserializeMetadata(output)
|
|
1422
|
+
});
|
|
1423
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1424
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1425
|
+
eventBridge: import_smithy_client._json
|
|
1426
|
+
});
|
|
1427
|
+
Object.assign(contents, doc);
|
|
1428
|
+
return contents;
|
|
1429
|
+
}, "de_GetCaseEventConfigurationCommand");
|
|
1430
|
+
var de_GetCaseEventConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1431
|
+
const parsedOutput = {
|
|
1432
|
+
...output,
|
|
1433
|
+
body: await parseErrorBody(output.body, context)
|
|
1434
|
+
};
|
|
1435
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
|
+
switch (errorCode) {
|
|
1437
|
+
case "AccessDeniedException":
|
|
1438
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1439
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1440
|
+
case "InternalServerException":
|
|
1441
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1442
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1443
|
+
case "ResourceNotFoundException":
|
|
1444
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1445
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1446
|
+
case "ThrottlingException":
|
|
1447
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1448
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1449
|
+
case "ValidationException":
|
|
1450
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1451
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1452
|
+
default:
|
|
1453
|
+
const parsedBody = parsedOutput.body;
|
|
1454
|
+
return throwDefaultError({
|
|
1455
|
+
output,
|
|
1456
|
+
parsedBody,
|
|
1457
|
+
errorCode
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
}, "de_GetCaseEventConfigurationCommandError");
|
|
1461
|
+
var de_GetDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1462
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1463
|
+
return de_GetDomainCommandError(output, context);
|
|
1464
|
+
}
|
|
1465
|
+
const contents = (0, import_smithy_client.map)({
|
|
1466
|
+
$metadata: deserializeMetadata(output)
|
|
1467
|
+
});
|
|
1468
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1469
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1470
|
+
createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1471
|
+
domainArn: import_smithy_client.expectString,
|
|
1472
|
+
domainId: import_smithy_client.expectString,
|
|
1473
|
+
domainStatus: import_smithy_client.expectString,
|
|
1474
|
+
name: import_smithy_client.expectString,
|
|
1475
|
+
tags: (_) => de_Tags(_, context)
|
|
1476
|
+
});
|
|
1477
|
+
Object.assign(contents, doc);
|
|
1478
|
+
return contents;
|
|
1479
|
+
}, "de_GetDomainCommand");
|
|
1480
|
+
var de_GetDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1481
|
+
const parsedOutput = {
|
|
1482
|
+
...output,
|
|
1483
|
+
body: await parseErrorBody(output.body, context)
|
|
1484
|
+
};
|
|
1485
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
|
+
switch (errorCode) {
|
|
1487
|
+
case "AccessDeniedException":
|
|
1488
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1489
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1490
|
+
case "InternalServerException":
|
|
1491
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1492
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1493
|
+
case "ResourceNotFoundException":
|
|
1494
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1495
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1496
|
+
case "ThrottlingException":
|
|
1497
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1498
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1499
|
+
case "ValidationException":
|
|
1500
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1501
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1502
|
+
default:
|
|
1503
|
+
const parsedBody = parsedOutput.body;
|
|
1504
|
+
return throwDefaultError({
|
|
1505
|
+
output,
|
|
1506
|
+
parsedBody,
|
|
1507
|
+
errorCode
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
}, "de_GetDomainCommandError");
|
|
1511
|
+
var de_GetLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1512
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1513
|
+
return de_GetLayoutCommandError(output, context);
|
|
1514
|
+
}
|
|
1515
|
+
const contents = (0, import_smithy_client.map)({
|
|
1516
|
+
$metadata: deserializeMetadata(output)
|
|
1517
|
+
});
|
|
1518
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1519
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1520
|
+
content: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
|
|
1521
|
+
layoutArn: import_smithy_client.expectString,
|
|
1522
|
+
layoutId: import_smithy_client.expectString,
|
|
1523
|
+
name: import_smithy_client.expectString,
|
|
1524
|
+
tags: (_) => de_Tags(_, context)
|
|
1525
|
+
});
|
|
1526
|
+
Object.assign(contents, doc);
|
|
1527
|
+
return contents;
|
|
1528
|
+
}, "de_GetLayoutCommand");
|
|
1529
|
+
var de_GetLayoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1530
|
+
const parsedOutput = {
|
|
1531
|
+
...output,
|
|
1532
|
+
body: await parseErrorBody(output.body, context)
|
|
1533
|
+
};
|
|
1534
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
|
+
switch (errorCode) {
|
|
1536
|
+
case "AccessDeniedException":
|
|
1537
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1538
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1539
|
+
case "InternalServerException":
|
|
1540
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1541
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1542
|
+
case "ResourceNotFoundException":
|
|
1543
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1544
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1545
|
+
case "ThrottlingException":
|
|
1546
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1547
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1548
|
+
case "ValidationException":
|
|
1549
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1550
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1551
|
+
default:
|
|
1552
|
+
const parsedBody = parsedOutput.body;
|
|
1553
|
+
return throwDefaultError({
|
|
1554
|
+
output,
|
|
1555
|
+
parsedBody,
|
|
1556
|
+
errorCode
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
}, "de_GetLayoutCommandError");
|
|
1560
|
+
var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1561
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1562
|
+
return de_GetTemplateCommandError(output, context);
|
|
1563
|
+
}
|
|
1564
|
+
const contents = (0, import_smithy_client.map)({
|
|
1565
|
+
$metadata: deserializeMetadata(output)
|
|
1566
|
+
});
|
|
1567
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1568
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1569
|
+
description: import_smithy_client.expectString,
|
|
1570
|
+
layoutConfiguration: import_smithy_client._json,
|
|
1571
|
+
name: import_smithy_client.expectString,
|
|
1572
|
+
requiredFields: import_smithy_client._json,
|
|
1573
|
+
status: import_smithy_client.expectString,
|
|
1574
|
+
tags: (_) => de_Tags(_, context),
|
|
1575
|
+
templateArn: import_smithy_client.expectString,
|
|
1576
|
+
templateId: import_smithy_client.expectString
|
|
1577
|
+
});
|
|
1578
|
+
Object.assign(contents, doc);
|
|
1579
|
+
return contents;
|
|
1580
|
+
}, "de_GetTemplateCommand");
|
|
1581
|
+
var de_GetTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1582
|
+
const parsedOutput = {
|
|
1583
|
+
...output,
|
|
1584
|
+
body: await parseErrorBody(output.body, context)
|
|
1585
|
+
};
|
|
1586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
|
+
switch (errorCode) {
|
|
1588
|
+
case "AccessDeniedException":
|
|
1589
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1590
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1591
|
+
case "InternalServerException":
|
|
1592
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1593
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1594
|
+
case "ResourceNotFoundException":
|
|
1595
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1596
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1597
|
+
case "ThrottlingException":
|
|
1598
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1599
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1600
|
+
case "ValidationException":
|
|
1601
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1602
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1603
|
+
default:
|
|
1604
|
+
const parsedBody = parsedOutput.body;
|
|
1605
|
+
return throwDefaultError({
|
|
1606
|
+
output,
|
|
1607
|
+
parsedBody,
|
|
1608
|
+
errorCode
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
}, "de_GetTemplateCommandError");
|
|
1612
|
+
var de_ListCasesForContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1613
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1614
|
+
return de_ListCasesForContactCommandError(output, context);
|
|
1615
|
+
}
|
|
1616
|
+
const contents = (0, import_smithy_client.map)({
|
|
1617
|
+
$metadata: deserializeMetadata(output)
|
|
1618
|
+
});
|
|
1619
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1620
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1621
|
+
cases: import_smithy_client._json,
|
|
1622
|
+
nextToken: import_smithy_client.expectString
|
|
1623
|
+
});
|
|
1624
|
+
Object.assign(contents, doc);
|
|
1625
|
+
return contents;
|
|
1626
|
+
}, "de_ListCasesForContactCommand");
|
|
1627
|
+
var de_ListCasesForContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1628
|
+
const parsedOutput = {
|
|
1629
|
+
...output,
|
|
1630
|
+
body: await parseErrorBody(output.body, context)
|
|
1631
|
+
};
|
|
1632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
+
switch (errorCode) {
|
|
1634
|
+
case "AccessDeniedException":
|
|
1635
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1636
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1637
|
+
case "InternalServerException":
|
|
1638
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1639
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1640
|
+
case "ResourceNotFoundException":
|
|
1641
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1642
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1643
|
+
case "ThrottlingException":
|
|
1644
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1645
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1646
|
+
case "ValidationException":
|
|
1647
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1648
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1649
|
+
default:
|
|
1650
|
+
const parsedBody = parsedOutput.body;
|
|
1651
|
+
return throwDefaultError({
|
|
1652
|
+
output,
|
|
1653
|
+
parsedBody,
|
|
1654
|
+
errorCode
|
|
1655
|
+
});
|
|
1656
|
+
}
|
|
1657
|
+
}, "de_ListCasesForContactCommandError");
|
|
1658
|
+
var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1659
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1660
|
+
return de_ListDomainsCommandError(output, context);
|
|
1661
|
+
}
|
|
1662
|
+
const contents = (0, import_smithy_client.map)({
|
|
1663
|
+
$metadata: deserializeMetadata(output)
|
|
1664
|
+
});
|
|
1665
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1666
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1667
|
+
domains: import_smithy_client._json,
|
|
1668
|
+
nextToken: import_smithy_client.expectString
|
|
1669
|
+
});
|
|
1670
|
+
Object.assign(contents, doc);
|
|
1671
|
+
return contents;
|
|
1672
|
+
}, "de_ListDomainsCommand");
|
|
1673
|
+
var de_ListDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1674
|
+
const parsedOutput = {
|
|
1675
|
+
...output,
|
|
1676
|
+
body: await parseErrorBody(output.body, context)
|
|
1677
|
+
};
|
|
1678
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1679
|
+
switch (errorCode) {
|
|
1680
|
+
case "AccessDeniedException":
|
|
1681
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1682
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1683
|
+
case "InternalServerException":
|
|
1684
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1685
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1686
|
+
case "ThrottlingException":
|
|
1687
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1688
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1689
|
+
case "ValidationException":
|
|
1690
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1691
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1692
|
+
default:
|
|
1693
|
+
const parsedBody = parsedOutput.body;
|
|
1694
|
+
return throwDefaultError({
|
|
1695
|
+
output,
|
|
1696
|
+
parsedBody,
|
|
1697
|
+
errorCode
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
}, "de_ListDomainsCommandError");
|
|
1701
|
+
var de_ListFieldOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1702
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1703
|
+
return de_ListFieldOptionsCommandError(output, context);
|
|
1704
|
+
}
|
|
1705
|
+
const contents = (0, import_smithy_client.map)({
|
|
1706
|
+
$metadata: deserializeMetadata(output)
|
|
1707
|
+
});
|
|
1708
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1709
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1710
|
+
nextToken: import_smithy_client.expectString,
|
|
1711
|
+
options: import_smithy_client._json
|
|
1712
|
+
});
|
|
1713
|
+
Object.assign(contents, doc);
|
|
1714
|
+
return contents;
|
|
1715
|
+
}, "de_ListFieldOptionsCommand");
|
|
1716
|
+
var de_ListFieldOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1717
|
+
const parsedOutput = {
|
|
1718
|
+
...output,
|
|
1719
|
+
body: await parseErrorBody(output.body, context)
|
|
1720
|
+
};
|
|
1721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
|
+
switch (errorCode) {
|
|
1723
|
+
case "AccessDeniedException":
|
|
1724
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1725
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1726
|
+
case "InternalServerException":
|
|
1727
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1728
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1729
|
+
case "ResourceNotFoundException":
|
|
1730
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1731
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1732
|
+
case "ThrottlingException":
|
|
1733
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1734
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1735
|
+
case "ValidationException":
|
|
1736
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1737
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1738
|
+
default:
|
|
1739
|
+
const parsedBody = parsedOutput.body;
|
|
1740
|
+
return throwDefaultError({
|
|
1741
|
+
output,
|
|
1742
|
+
parsedBody,
|
|
1743
|
+
errorCode
|
|
1744
|
+
});
|
|
1745
|
+
}
|
|
1746
|
+
}, "de_ListFieldOptionsCommandError");
|
|
1747
|
+
var de_ListFieldsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1748
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1749
|
+
return de_ListFieldsCommandError(output, context);
|
|
1750
|
+
}
|
|
1751
|
+
const contents = (0, import_smithy_client.map)({
|
|
1752
|
+
$metadata: deserializeMetadata(output)
|
|
1753
|
+
});
|
|
1754
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1755
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1756
|
+
fields: import_smithy_client._json,
|
|
1757
|
+
nextToken: import_smithy_client.expectString
|
|
1758
|
+
});
|
|
1759
|
+
Object.assign(contents, doc);
|
|
1760
|
+
return contents;
|
|
1761
|
+
}, "de_ListFieldsCommand");
|
|
1762
|
+
var de_ListFieldsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1763
|
+
const parsedOutput = {
|
|
1764
|
+
...output,
|
|
1765
|
+
body: await parseErrorBody(output.body, context)
|
|
1766
|
+
};
|
|
1767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
|
+
switch (errorCode) {
|
|
1769
|
+
case "AccessDeniedException":
|
|
1770
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1771
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1772
|
+
case "InternalServerException":
|
|
1773
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1774
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1775
|
+
case "ResourceNotFoundException":
|
|
1776
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1777
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1778
|
+
case "ThrottlingException":
|
|
1779
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1780
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1781
|
+
case "ValidationException":
|
|
1782
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1783
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1784
|
+
default:
|
|
1785
|
+
const parsedBody = parsedOutput.body;
|
|
1786
|
+
return throwDefaultError({
|
|
1787
|
+
output,
|
|
1788
|
+
parsedBody,
|
|
1789
|
+
errorCode
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1792
|
+
}, "de_ListFieldsCommandError");
|
|
1793
|
+
var de_ListLayoutsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1794
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1795
|
+
return de_ListLayoutsCommandError(output, context);
|
|
1796
|
+
}
|
|
1797
|
+
const contents = (0, import_smithy_client.map)({
|
|
1798
|
+
$metadata: deserializeMetadata(output)
|
|
1799
|
+
});
|
|
1800
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1801
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1802
|
+
layouts: import_smithy_client._json,
|
|
1803
|
+
nextToken: import_smithy_client.expectString
|
|
1804
|
+
});
|
|
1805
|
+
Object.assign(contents, doc);
|
|
1806
|
+
return contents;
|
|
1807
|
+
}, "de_ListLayoutsCommand");
|
|
1808
|
+
var de_ListLayoutsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1809
|
+
const parsedOutput = {
|
|
1810
|
+
...output,
|
|
1811
|
+
body: await parseErrorBody(output.body, context)
|
|
1812
|
+
};
|
|
1813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1814
|
+
switch (errorCode) {
|
|
1815
|
+
case "AccessDeniedException":
|
|
1816
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1817
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1818
|
+
case "InternalServerException":
|
|
1819
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1820
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1821
|
+
case "ResourceNotFoundException":
|
|
1822
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1823
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1824
|
+
case "ThrottlingException":
|
|
1825
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1826
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1827
|
+
case "ValidationException":
|
|
1828
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1829
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1830
|
+
default:
|
|
1831
|
+
const parsedBody = parsedOutput.body;
|
|
1832
|
+
return throwDefaultError({
|
|
1833
|
+
output,
|
|
1834
|
+
parsedBody,
|
|
1835
|
+
errorCode
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1838
|
+
}, "de_ListLayoutsCommandError");
|
|
1839
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1840
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1841
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1842
|
+
}
|
|
1843
|
+
const contents = (0, import_smithy_client.map)({
|
|
1844
|
+
$metadata: deserializeMetadata(output)
|
|
1845
|
+
});
|
|
1846
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1847
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1848
|
+
tags: (_) => de_Tags(_, context)
|
|
1849
|
+
});
|
|
1850
|
+
Object.assign(contents, doc);
|
|
1851
|
+
return contents;
|
|
1852
|
+
}, "de_ListTagsForResourceCommand");
|
|
1853
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1854
|
+
const parsedOutput = {
|
|
1855
|
+
...output,
|
|
1856
|
+
body: await parseErrorBody(output.body, context)
|
|
1857
|
+
};
|
|
1858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
|
+
switch (errorCode) {
|
|
1860
|
+
case "AccessDeniedException":
|
|
1861
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1862
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1863
|
+
case "InternalServerException":
|
|
1864
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1866
|
+
case "ResourceNotFoundException":
|
|
1867
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1868
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1869
|
+
case "ThrottlingException":
|
|
1870
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1871
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1872
|
+
case "ValidationException":
|
|
1873
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1874
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1875
|
+
default:
|
|
1876
|
+
const parsedBody = parsedOutput.body;
|
|
1877
|
+
return throwDefaultError({
|
|
1878
|
+
output,
|
|
1879
|
+
parsedBody,
|
|
1880
|
+
errorCode
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1883
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1884
|
+
var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1885
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
|
+
return de_ListTemplatesCommandError(output, context);
|
|
1887
|
+
}
|
|
1888
|
+
const contents = (0, import_smithy_client.map)({
|
|
1889
|
+
$metadata: deserializeMetadata(output)
|
|
1890
|
+
});
|
|
1891
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1892
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1893
|
+
nextToken: import_smithy_client.expectString,
|
|
1894
|
+
templates: import_smithy_client._json
|
|
1895
|
+
});
|
|
1896
|
+
Object.assign(contents, doc);
|
|
1897
|
+
return contents;
|
|
1898
|
+
}, "de_ListTemplatesCommand");
|
|
1899
|
+
var de_ListTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1900
|
+
const parsedOutput = {
|
|
1901
|
+
...output,
|
|
1902
|
+
body: await parseErrorBody(output.body, context)
|
|
1903
|
+
};
|
|
1904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
|
+
switch (errorCode) {
|
|
1906
|
+
case "AccessDeniedException":
|
|
1907
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1908
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1909
|
+
case "InternalServerException":
|
|
1910
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1911
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1912
|
+
case "ResourceNotFoundException":
|
|
1913
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1914
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1915
|
+
case "ThrottlingException":
|
|
1916
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1917
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1918
|
+
case "ValidationException":
|
|
1919
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1920
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1921
|
+
default:
|
|
1922
|
+
const parsedBody = parsedOutput.body;
|
|
1923
|
+
return throwDefaultError({
|
|
1924
|
+
output,
|
|
1925
|
+
parsedBody,
|
|
1926
|
+
errorCode
|
|
1927
|
+
});
|
|
1928
|
+
}
|
|
1929
|
+
}, "de_ListTemplatesCommandError");
|
|
1930
|
+
var de_PutCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1931
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1932
|
+
return de_PutCaseEventConfigurationCommandError(output, context);
|
|
1933
|
+
}
|
|
1934
|
+
const contents = (0, import_smithy_client.map)({
|
|
1935
|
+
$metadata: deserializeMetadata(output)
|
|
1936
|
+
});
|
|
1937
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1938
|
+
return contents;
|
|
1939
|
+
}, "de_PutCaseEventConfigurationCommand");
|
|
1940
|
+
var de_PutCaseEventConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1941
|
+
const parsedOutput = {
|
|
1942
|
+
...output,
|
|
1943
|
+
body: await parseErrorBody(output.body, context)
|
|
1944
|
+
};
|
|
1945
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1946
|
+
switch (errorCode) {
|
|
1947
|
+
case "AccessDeniedException":
|
|
1948
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1949
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1950
|
+
case "InternalServerException":
|
|
1951
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1952
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1953
|
+
case "ResourceNotFoundException":
|
|
1954
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1955
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1956
|
+
case "ThrottlingException":
|
|
1957
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1958
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1959
|
+
case "ValidationException":
|
|
1960
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1961
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1962
|
+
default:
|
|
1963
|
+
const parsedBody = parsedOutput.body;
|
|
1964
|
+
return throwDefaultError({
|
|
1965
|
+
output,
|
|
1966
|
+
parsedBody,
|
|
1967
|
+
errorCode
|
|
1968
|
+
});
|
|
1969
|
+
}
|
|
1970
|
+
}, "de_PutCaseEventConfigurationCommandError");
|
|
1971
|
+
var de_SearchCasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1972
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1973
|
+
return de_SearchCasesCommandError(output, context);
|
|
1974
|
+
}
|
|
1975
|
+
const contents = (0, import_smithy_client.map)({
|
|
1976
|
+
$metadata: deserializeMetadata(output)
|
|
1977
|
+
});
|
|
1978
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1979
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1980
|
+
cases: (_) => de_SearchCasesResponseItemList(_, context),
|
|
1981
|
+
nextToken: import_smithy_client.expectString
|
|
1982
|
+
});
|
|
1983
|
+
Object.assign(contents, doc);
|
|
1984
|
+
return contents;
|
|
1985
|
+
}, "de_SearchCasesCommand");
|
|
1986
|
+
var de_SearchCasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1987
|
+
const parsedOutput = {
|
|
1988
|
+
...output,
|
|
1989
|
+
body: await parseErrorBody(output.body, context)
|
|
1990
|
+
};
|
|
1991
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
|
+
switch (errorCode) {
|
|
1993
|
+
case "AccessDeniedException":
|
|
1994
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1995
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1996
|
+
case "InternalServerException":
|
|
1997
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1998
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1999
|
+
case "ResourceNotFoundException":
|
|
2000
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2001
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2002
|
+
case "ThrottlingException":
|
|
2003
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2004
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2005
|
+
case "ValidationException":
|
|
2006
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
2007
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2008
|
+
default:
|
|
2009
|
+
const parsedBody = parsedOutput.body;
|
|
2010
|
+
return throwDefaultError({
|
|
2011
|
+
output,
|
|
2012
|
+
parsedBody,
|
|
2013
|
+
errorCode
|
|
2014
|
+
});
|
|
2015
|
+
}
|
|
2016
|
+
}, "de_SearchCasesCommandError");
|
|
2017
|
+
var de_SearchRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2018
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2019
|
+
return de_SearchRelatedItemsCommandError(output, context);
|
|
2020
|
+
}
|
|
2021
|
+
const contents = (0, import_smithy_client.map)({
|
|
2022
|
+
$metadata: deserializeMetadata(output)
|
|
2023
|
+
});
|
|
2024
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2025
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2026
|
+
nextToken: import_smithy_client.expectString,
|
|
2027
|
+
relatedItems: (_) => de_SearchRelatedItemsResponseItemList(_, context)
|
|
2028
|
+
});
|
|
2029
|
+
Object.assign(contents, doc);
|
|
2030
|
+
return contents;
|
|
2031
|
+
}, "de_SearchRelatedItemsCommand");
|
|
2032
|
+
var de_SearchRelatedItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2033
|
+
const parsedOutput = {
|
|
2034
|
+
...output,
|
|
2035
|
+
body: await parseErrorBody(output.body, context)
|
|
2036
|
+
};
|
|
2037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
+
switch (errorCode) {
|
|
2039
|
+
case "AccessDeniedException":
|
|
2040
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2041
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2042
|
+
case "InternalServerException":
|
|
2043
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
2044
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2045
|
+
case "ResourceNotFoundException":
|
|
2046
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2047
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2048
|
+
case "ThrottlingException":
|
|
2049
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2050
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2051
|
+
case "ValidationException":
|
|
2052
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
2053
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2054
|
+
default:
|
|
2055
|
+
const parsedBody = parsedOutput.body;
|
|
2056
|
+
return throwDefaultError({
|
|
2057
|
+
output,
|
|
2058
|
+
parsedBody,
|
|
2059
|
+
errorCode
|
|
2060
|
+
});
|
|
2061
|
+
}
|
|
2062
|
+
}, "de_SearchRelatedItemsCommandError");
|
|
2063
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2064
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2065
|
+
return de_TagResourceCommandError(output, context);
|
|
2066
|
+
}
|
|
2067
|
+
const contents = (0, import_smithy_client.map)({
|
|
2068
|
+
$metadata: deserializeMetadata(output)
|
|
2069
|
+
});
|
|
2070
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2071
|
+
return contents;
|
|
2072
|
+
}, "de_TagResourceCommand");
|
|
2073
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2074
|
+
const parsedOutput = {
|
|
2075
|
+
...output,
|
|
2076
|
+
body: await parseErrorBody(output.body, context)
|
|
2077
|
+
};
|
|
2078
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
|
+
switch (errorCode) {
|
|
2080
|
+
case "AccessDeniedException":
|
|
2081
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2082
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2083
|
+
case "InternalServerException":
|
|
2084
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
2085
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2086
|
+
case "ResourceNotFoundException":
|
|
2087
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2088
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2089
|
+
case "ThrottlingException":
|
|
2090
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2091
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2092
|
+
case "ValidationException":
|
|
2093
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
2094
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2095
|
+
default:
|
|
2096
|
+
const parsedBody = parsedOutput.body;
|
|
2097
|
+
return throwDefaultError({
|
|
2098
|
+
output,
|
|
2099
|
+
parsedBody,
|
|
2100
|
+
errorCode
|
|
2101
|
+
});
|
|
2102
|
+
}
|
|
2103
|
+
}, "de_TagResourceCommandError");
|
|
2104
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2105
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2106
|
+
return de_UntagResourceCommandError(output, context);
|
|
2107
|
+
}
|
|
2108
|
+
const contents = (0, import_smithy_client.map)({
|
|
2109
|
+
$metadata: deserializeMetadata(output)
|
|
2110
|
+
});
|
|
2111
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2112
|
+
return contents;
|
|
2113
|
+
}, "de_UntagResourceCommand");
|
|
2114
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2115
|
+
const parsedOutput = {
|
|
2116
|
+
...output,
|
|
2117
|
+
body: await parseErrorBody(output.body, context)
|
|
2118
|
+
};
|
|
2119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2120
|
+
switch (errorCode) {
|
|
2121
|
+
case "AccessDeniedException":
|
|
2122
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2123
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2124
|
+
case "InternalServerException":
|
|
2125
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
2126
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2127
|
+
case "ResourceNotFoundException":
|
|
2128
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2129
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2130
|
+
case "ThrottlingException":
|
|
2131
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2132
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2133
|
+
case "ValidationException":
|
|
2134
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
2135
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2136
|
+
default:
|
|
2137
|
+
const parsedBody = parsedOutput.body;
|
|
2138
|
+
return throwDefaultError({
|
|
2139
|
+
output,
|
|
2140
|
+
parsedBody,
|
|
2141
|
+
errorCode
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
}, "de_UntagResourceCommandError");
|
|
2145
|
+
var de_UpdateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2146
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2147
|
+
return de_UpdateCaseCommandError(output, context);
|
|
2148
|
+
}
|
|
2149
|
+
const contents = (0, import_smithy_client.map)({
|
|
2150
|
+
$metadata: deserializeMetadata(output)
|
|
2151
|
+
});
|
|
2152
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2153
|
+
return contents;
|
|
2154
|
+
}, "de_UpdateCaseCommand");
|
|
2155
|
+
var de_UpdateCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2156
|
+
const parsedOutput = {
|
|
2157
|
+
...output,
|
|
2158
|
+
body: await parseErrorBody(output.body, context)
|
|
2159
|
+
};
|
|
2160
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
|
+
switch (errorCode) {
|
|
2162
|
+
case "AccessDeniedException":
|
|
2163
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2164
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2165
|
+
case "InternalServerException":
|
|
2166
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
2167
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2168
|
+
case "ResourceNotFoundException":
|
|
2169
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2170
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2171
|
+
case "ThrottlingException":
|
|
2172
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2173
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2174
|
+
case "ValidationException":
|
|
2175
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
2176
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2177
|
+
default:
|
|
2178
|
+
const parsedBody = parsedOutput.body;
|
|
2179
|
+
return throwDefaultError({
|
|
2180
|
+
output,
|
|
2181
|
+
parsedBody,
|
|
2182
|
+
errorCode
|
|
2183
|
+
});
|
|
2184
|
+
}
|
|
2185
|
+
}, "de_UpdateCaseCommandError");
|
|
2186
|
+
var de_UpdateFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2187
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2188
|
+
return de_UpdateFieldCommandError(output, context);
|
|
2189
|
+
}
|
|
2190
|
+
const contents = (0, import_smithy_client.map)({
|
|
2191
|
+
$metadata: deserializeMetadata(output)
|
|
2192
|
+
});
|
|
2193
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2194
|
+
return contents;
|
|
2195
|
+
}, "de_UpdateFieldCommand");
|
|
2196
|
+
var de_UpdateFieldCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2197
|
+
const parsedOutput = {
|
|
2198
|
+
...output,
|
|
2199
|
+
body: await parseErrorBody(output.body, context)
|
|
2200
|
+
};
|
|
2201
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2202
|
+
switch (errorCode) {
|
|
2203
|
+
case "AccessDeniedException":
|
|
2204
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2205
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2206
|
+
case "ConflictException":
|
|
2207
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
2208
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2209
|
+
case "InternalServerException":
|
|
2210
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
2211
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2212
|
+
case "ResourceNotFoundException":
|
|
2213
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2214
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2215
|
+
case "ThrottlingException":
|
|
2216
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2217
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2218
|
+
case "ValidationException":
|
|
2219
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
2220
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2221
|
+
default:
|
|
2222
|
+
const parsedBody = parsedOutput.body;
|
|
2223
|
+
return throwDefaultError({
|
|
2224
|
+
output,
|
|
2225
|
+
parsedBody,
|
|
2226
|
+
errorCode
|
|
2227
|
+
});
|
|
2228
|
+
}
|
|
2229
|
+
}, "de_UpdateFieldCommandError");
|
|
2230
|
+
var de_UpdateLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2231
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2232
|
+
return de_UpdateLayoutCommandError(output, context);
|
|
2233
|
+
}
|
|
2234
|
+
const contents = (0, import_smithy_client.map)({
|
|
2235
|
+
$metadata: deserializeMetadata(output)
|
|
2236
|
+
});
|
|
2237
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2238
|
+
return contents;
|
|
2239
|
+
}, "de_UpdateLayoutCommand");
|
|
2240
|
+
var de_UpdateLayoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2241
|
+
const parsedOutput = {
|
|
2242
|
+
...output,
|
|
2243
|
+
body: await parseErrorBody(output.body, context)
|
|
2244
|
+
};
|
|
2245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2246
|
+
switch (errorCode) {
|
|
2247
|
+
case "AccessDeniedException":
|
|
2248
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2249
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2250
|
+
case "ConflictException":
|
|
2251
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
2252
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2253
|
+
case "InternalServerException":
|
|
2254
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
2255
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2256
|
+
case "ResourceNotFoundException":
|
|
2257
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2258
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2259
|
+
case "ServiceQuotaExceededException":
|
|
2260
|
+
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
2261
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2262
|
+
case "ThrottlingException":
|
|
2263
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2264
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2265
|
+
case "ValidationException":
|
|
2266
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
2267
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2268
|
+
default:
|
|
2269
|
+
const parsedBody = parsedOutput.body;
|
|
2270
|
+
return throwDefaultError({
|
|
2271
|
+
output,
|
|
2272
|
+
parsedBody,
|
|
2273
|
+
errorCode
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
}, "de_UpdateLayoutCommandError");
|
|
2277
|
+
var de_UpdateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2278
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2279
|
+
return de_UpdateTemplateCommandError(output, context);
|
|
2280
|
+
}
|
|
2281
|
+
const contents = (0, import_smithy_client.map)({
|
|
2282
|
+
$metadata: deserializeMetadata(output)
|
|
2283
|
+
});
|
|
2284
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2285
|
+
return contents;
|
|
2286
|
+
}, "de_UpdateTemplateCommand");
|
|
2287
|
+
var de_UpdateTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2288
|
+
const parsedOutput = {
|
|
2289
|
+
...output,
|
|
2290
|
+
body: await parseErrorBody(output.body, context)
|
|
2291
|
+
};
|
|
2292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2293
|
+
switch (errorCode) {
|
|
2294
|
+
case "AccessDeniedException":
|
|
2295
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2296
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2297
|
+
case "ConflictException":
|
|
2298
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
2299
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2300
|
+
case "InternalServerException":
|
|
2301
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
2302
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2303
|
+
case "ResourceNotFoundException":
|
|
2304
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2305
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2306
|
+
case "ThrottlingException":
|
|
2307
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2308
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2309
|
+
case "ValidationException":
|
|
2310
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
2311
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2312
|
+
default:
|
|
2313
|
+
const parsedBody = parsedOutput.body;
|
|
2314
|
+
return throwDefaultError({
|
|
2315
|
+
output,
|
|
2316
|
+
parsedBody,
|
|
2317
|
+
errorCode
|
|
2318
|
+
});
|
|
2319
|
+
}
|
|
2320
|
+
}, "de_UpdateTemplateCommandError");
|
|
2321
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(ConnectCasesServiceException);
|
|
2322
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2323
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2324
|
+
const data = parsedOutput.body;
|
|
2325
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2326
|
+
message: import_smithy_client.expectString
|
|
2327
|
+
});
|
|
2328
|
+
Object.assign(contents, doc);
|
|
2329
|
+
const exception = new AccessDeniedException({
|
|
2330
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2331
|
+
...contents
|
|
2332
|
+
});
|
|
2333
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2334
|
+
}, "de_AccessDeniedExceptionRes");
|
|
2335
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2336
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2337
|
+
const data = parsedOutput.body;
|
|
2338
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2339
|
+
message: import_smithy_client.expectString
|
|
2340
|
+
});
|
|
2341
|
+
Object.assign(contents, doc);
|
|
2342
|
+
const exception = new ConflictException({
|
|
2343
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2344
|
+
...contents
|
|
2345
|
+
});
|
|
2346
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2347
|
+
}, "de_ConflictExceptionRes");
|
|
2348
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2349
|
+
const contents = (0, import_smithy_client.map)({
|
|
2350
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
2351
|
+
});
|
|
2352
|
+
const data = parsedOutput.body;
|
|
2353
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2354
|
+
message: import_smithy_client.expectString
|
|
2355
|
+
});
|
|
2356
|
+
Object.assign(contents, doc);
|
|
2357
|
+
const exception = new InternalServerException({
|
|
2358
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2359
|
+
...contents
|
|
2360
|
+
});
|
|
2361
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2362
|
+
}, "de_InternalServerExceptionRes");
|
|
2363
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2364
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2365
|
+
const data = parsedOutput.body;
|
|
2366
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2367
|
+
message: import_smithy_client.expectString,
|
|
2368
|
+
resourceId: import_smithy_client.expectString,
|
|
2369
|
+
resourceType: import_smithy_client.expectString
|
|
2370
|
+
});
|
|
2371
|
+
Object.assign(contents, doc);
|
|
2372
|
+
const exception = new ResourceNotFoundException({
|
|
2373
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2374
|
+
...contents
|
|
2375
|
+
});
|
|
2376
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2377
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
2378
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2379
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2380
|
+
const data = parsedOutput.body;
|
|
2381
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2382
|
+
message: import_smithy_client.expectString
|
|
2383
|
+
});
|
|
2384
|
+
Object.assign(contents, doc);
|
|
2385
|
+
const exception = new ServiceQuotaExceededException({
|
|
2386
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2387
|
+
...contents
|
|
2388
|
+
});
|
|
2389
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2390
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
2391
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2392
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2393
|
+
const data = parsedOutput.body;
|
|
2394
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2395
|
+
message: import_smithy_client.expectString
|
|
2396
|
+
});
|
|
2397
|
+
Object.assign(contents, doc);
|
|
2398
|
+
const exception = new ThrottlingException({
|
|
2399
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2400
|
+
...contents
|
|
2401
|
+
});
|
|
2402
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2403
|
+
}, "de_ThrottlingExceptionRes");
|
|
2404
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2405
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2406
|
+
const data = parsedOutput.body;
|
|
2407
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2408
|
+
message: import_smithy_client.expectString
|
|
2409
|
+
});
|
|
2410
|
+
Object.assign(contents, doc);
|
|
2411
|
+
const exception = new ValidationException({
|
|
2412
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2413
|
+
...contents
|
|
2414
|
+
});
|
|
2415
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2416
|
+
}, "de_ValidationExceptionRes");
|
|
2417
|
+
var se_CaseFilter = /* @__PURE__ */ __name((input, context) => {
|
|
2418
|
+
return CaseFilter.visit(input, {
|
|
2419
|
+
andAll: (value) => ({ andAll: se_CaseFilterList(value, context) }),
|
|
2420
|
+
field: (value) => ({ field: se_FieldFilter(value, context) }),
|
|
2421
|
+
not: (value) => ({ not: se_CaseFilter(value, context) }),
|
|
2422
|
+
orAll: (value) => ({ orAll: se_CaseFilterList(value, context) }),
|
|
2423
|
+
_: (name, value) => ({ name: value })
|
|
2424
|
+
});
|
|
2425
|
+
}, "se_CaseFilter");
|
|
2426
|
+
var se_CaseFilterList = /* @__PURE__ */ __name((input, context) => {
|
|
2427
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2428
|
+
return se_CaseFilter(entry, context);
|
|
2429
|
+
});
|
|
2430
|
+
}, "se_CaseFilterList");
|
|
2431
|
+
var se_FieldFilter = /* @__PURE__ */ __name((input, context) => {
|
|
2432
|
+
return FieldFilter.visit(input, {
|
|
2433
|
+
contains: (value) => ({ contains: se_FieldValue(value, context) }),
|
|
2434
|
+
equalTo: (value) => ({ equalTo: se_FieldValue(value, context) }),
|
|
2435
|
+
greaterThan: (value) => ({ greaterThan: se_FieldValue(value, context) }),
|
|
2436
|
+
greaterThanOrEqualTo: (value) => ({ greaterThanOrEqualTo: se_FieldValue(value, context) }),
|
|
2437
|
+
lessThan: (value) => ({ lessThan: se_FieldValue(value, context) }),
|
|
2438
|
+
lessThanOrEqualTo: (value) => ({ lessThanOrEqualTo: se_FieldValue(value, context) }),
|
|
2439
|
+
_: (name, value) => ({ name: value })
|
|
2440
|
+
});
|
|
2441
|
+
}, "se_FieldFilter");
|
|
2442
|
+
var se_FieldValue = /* @__PURE__ */ __name((input, context) => {
|
|
2443
|
+
return (0, import_smithy_client.take)(input, {
|
|
2444
|
+
id: [],
|
|
2445
|
+
value: (_) => se_FieldValueUnion(_, context)
|
|
2446
|
+
});
|
|
2447
|
+
}, "se_FieldValue");
|
|
2448
|
+
var se_FieldValueList = /* @__PURE__ */ __name((input, context) => {
|
|
2449
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2450
|
+
return se_FieldValue(entry, context);
|
|
2451
|
+
});
|
|
2452
|
+
}, "se_FieldValueList");
|
|
2453
|
+
var se_FieldValueUnion = /* @__PURE__ */ __name((input, context) => {
|
|
2454
|
+
return FieldValueUnion.visit(input, {
|
|
2455
|
+
booleanValue: (value) => ({ booleanValue: value }),
|
|
2456
|
+
doubleValue: (value) => ({ doubleValue: (0, import_smithy_client.serializeFloat)(value) }),
|
|
2457
|
+
emptyValue: (value) => ({ emptyValue: (0, import_smithy_client._json)(value) }),
|
|
2458
|
+
stringValue: (value) => ({ stringValue: value }),
|
|
2459
|
+
_: (name, value) => ({ name: value })
|
|
2460
|
+
});
|
|
2461
|
+
}, "se_FieldValueUnion");
|
|
2462
|
+
var se_Tags = /* @__PURE__ */ __name((input, context) => {
|
|
2463
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2464
|
+
if (value === null) {
|
|
2465
|
+
acc[key] = null;
|
|
2466
|
+
return acc;
|
|
2467
|
+
}
|
|
2468
|
+
acc[key] = value;
|
|
2469
|
+
return acc;
|
|
2470
|
+
}, {});
|
|
2471
|
+
}, "se_Tags");
|
|
2472
|
+
var de_BatchGetFieldList = /* @__PURE__ */ __name((output, context) => {
|
|
2473
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2474
|
+
return de_GetFieldResponse(entry, context);
|
|
2475
|
+
});
|
|
2476
|
+
return retVal;
|
|
2477
|
+
}, "de_BatchGetFieldList");
|
|
2478
|
+
var de_ContactContent = /* @__PURE__ */ __name((output, context) => {
|
|
2479
|
+
return (0, import_smithy_client.take)(output, {
|
|
2480
|
+
channel: import_smithy_client.expectString,
|
|
2481
|
+
connectedToSystemTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2482
|
+
contactArn: import_smithy_client.expectString
|
|
2483
|
+
});
|
|
2484
|
+
}, "de_ContactContent");
|
|
2485
|
+
var de_FieldValue = /* @__PURE__ */ __name((output, context) => {
|
|
2486
|
+
return (0, import_smithy_client.take)(output, {
|
|
2487
|
+
id: import_smithy_client.expectString,
|
|
2488
|
+
value: (_) => de_FieldValueUnion((0, import_core.awsExpectUnion)(_), context)
|
|
2489
|
+
});
|
|
2490
|
+
}, "de_FieldValue");
|
|
2491
|
+
var de_FieldValueList = /* @__PURE__ */ __name((output, context) => {
|
|
2492
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2493
|
+
return de_FieldValue(entry, context);
|
|
2494
|
+
});
|
|
2495
|
+
return retVal;
|
|
2496
|
+
}, "de_FieldValueList");
|
|
2497
|
+
var de_FieldValueUnion = /* @__PURE__ */ __name((output, context) => {
|
|
2498
|
+
if ((0, import_smithy_client.expectBoolean)(output.booleanValue) !== void 0) {
|
|
2499
|
+
return { booleanValue: (0, import_smithy_client.expectBoolean)(output.booleanValue) };
|
|
2500
|
+
}
|
|
2501
|
+
if ((0, import_smithy_client.limitedParseDouble)(output.doubleValue) !== void 0) {
|
|
2502
|
+
return { doubleValue: (0, import_smithy_client.limitedParseDouble)(output.doubleValue) };
|
|
2503
|
+
}
|
|
2504
|
+
if (output.emptyValue != null) {
|
|
2505
|
+
return {
|
|
2506
|
+
emptyValue: (0, import_smithy_client._json)(output.emptyValue)
|
|
2507
|
+
};
|
|
2508
|
+
}
|
|
2509
|
+
if ((0, import_smithy_client.expectString)(output.stringValue) !== void 0) {
|
|
2510
|
+
return { stringValue: (0, import_smithy_client.expectString)(output.stringValue) };
|
|
2511
|
+
}
|
|
2512
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2513
|
+
}, "de_FieldValueUnion");
|
|
2514
|
+
var de_GetFieldResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2515
|
+
return (0, import_smithy_client.take)(output, {
|
|
2516
|
+
description: import_smithy_client.expectString,
|
|
2517
|
+
fieldArn: import_smithy_client.expectString,
|
|
2518
|
+
fieldId: import_smithy_client.expectString,
|
|
2519
|
+
name: import_smithy_client.expectString,
|
|
2520
|
+
namespace: import_smithy_client.expectString,
|
|
2521
|
+
tags: (_) => de_Tags(_, context),
|
|
2522
|
+
type: import_smithy_client.expectString
|
|
2523
|
+
});
|
|
2524
|
+
}, "de_GetFieldResponse");
|
|
2525
|
+
var de_RelatedItemContent = /* @__PURE__ */ __name((output, context) => {
|
|
2526
|
+
if (output.comment != null) {
|
|
2527
|
+
return {
|
|
2528
|
+
comment: (0, import_smithy_client._json)(output.comment)
|
|
2529
|
+
};
|
|
2530
|
+
}
|
|
2531
|
+
if (output.contact != null) {
|
|
2532
|
+
return {
|
|
2533
|
+
contact: de_ContactContent(output.contact, context)
|
|
2534
|
+
};
|
|
2535
|
+
}
|
|
2536
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2537
|
+
}, "de_RelatedItemContent");
|
|
2538
|
+
var de_SearchCasesResponseItem = /* @__PURE__ */ __name((output, context) => {
|
|
2539
|
+
return (0, import_smithy_client.take)(output, {
|
|
2540
|
+
caseId: import_smithy_client.expectString,
|
|
2541
|
+
fields: (_) => de_FieldValueList(_, context),
|
|
2542
|
+
tags: (_) => de_Tags(_, context),
|
|
2543
|
+
templateId: import_smithy_client.expectString
|
|
2544
|
+
});
|
|
2545
|
+
}, "de_SearchCasesResponseItem");
|
|
2546
|
+
var de_SearchCasesResponseItemList = /* @__PURE__ */ __name((output, context) => {
|
|
2547
|
+
const retVal = (output || []).map((entry) => {
|
|
2548
|
+
if (entry === null) {
|
|
2549
|
+
return null;
|
|
2550
|
+
}
|
|
2551
|
+
return de_SearchCasesResponseItem(entry, context);
|
|
2552
|
+
});
|
|
2553
|
+
return retVal;
|
|
2554
|
+
}, "de_SearchCasesResponseItemList");
|
|
2555
|
+
var de_SearchRelatedItemsResponseItem = /* @__PURE__ */ __name((output, context) => {
|
|
2556
|
+
return (0, import_smithy_client.take)(output, {
|
|
2557
|
+
associationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2558
|
+
content: (_) => de_RelatedItemContent((0, import_core.awsExpectUnion)(_), context),
|
|
2559
|
+
performedBy: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
|
|
2560
|
+
relatedItemId: import_smithy_client.expectString,
|
|
2561
|
+
tags: (_) => de_Tags(_, context),
|
|
2562
|
+
type: import_smithy_client.expectString
|
|
2563
|
+
});
|
|
2564
|
+
}, "de_SearchRelatedItemsResponseItem");
|
|
2565
|
+
var de_SearchRelatedItemsResponseItemList = /* @__PURE__ */ __name((output, context) => {
|
|
2566
|
+
const retVal = (output || []).map((entry) => {
|
|
2567
|
+
if (entry === null) {
|
|
2568
|
+
return null;
|
|
2569
|
+
}
|
|
2570
|
+
return de_SearchRelatedItemsResponseItem(entry, context);
|
|
2571
|
+
});
|
|
2572
|
+
return retVal;
|
|
2573
|
+
}, "de_SearchRelatedItemsResponseItemList");
|
|
2574
|
+
var de_Tags = /* @__PURE__ */ __name((output, context) => {
|
|
2575
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2576
|
+
if (value === null) {
|
|
2577
|
+
acc[key] = null;
|
|
2578
|
+
return acc;
|
|
2579
|
+
}
|
|
2580
|
+
acc[key] = (0, import_smithy_client.expectString)(value);
|
|
2581
|
+
return acc;
|
|
2582
|
+
}, {});
|
|
2583
|
+
}, "de_Tags");
|
|
2584
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
2585
|
+
httpStatusCode: output.statusCode,
|
|
2586
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2587
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2588
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
2589
|
+
}), "deserializeMetadata");
|
|
2590
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2591
|
+
var _mR = "maxResults";
|
|
2592
|
+
var _nT = "nextToken";
|
|
2593
|
+
var _rAS = "retryAfterSeconds";
|
|
2594
|
+
var _ra = "retry-after";
|
|
2595
|
+
var _s = "status";
|
|
2596
|
+
var _tK = "tagKeys";
|
|
2597
|
+
var _v = "values";
|
|
2598
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2599
|
+
if (encoded.length) {
|
|
2600
|
+
return JSON.parse(encoded);
|
|
2601
|
+
}
|
|
2602
|
+
return {};
|
|
2603
|
+
}), "parseBody");
|
|
2604
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2605
|
+
const value = await parseBody(errorBody, context);
|
|
2606
|
+
value.message = value.message ?? value.Message;
|
|
2607
|
+
return value;
|
|
2608
|
+
}, "parseErrorBody");
|
|
2609
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2610
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2611
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2612
|
+
let cleanValue = rawValue;
|
|
2613
|
+
if (typeof cleanValue === "number") {
|
|
2614
|
+
cleanValue = cleanValue.toString();
|
|
2615
|
+
}
|
|
2616
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2617
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2618
|
+
}
|
|
2619
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2620
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2621
|
+
}
|
|
2622
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2623
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2624
|
+
}
|
|
2625
|
+
return cleanValue;
|
|
2626
|
+
}, "sanitizeErrorCode");
|
|
2627
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2628
|
+
if (headerKey !== void 0) {
|
|
2629
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2630
|
+
}
|
|
2631
|
+
if (data.code !== void 0) {
|
|
2632
|
+
return sanitizeErrorCode(data.code);
|
|
2633
|
+
}
|
|
2634
|
+
if (data["__type"] !== void 0) {
|
|
2635
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2636
|
+
}
|
|
2637
|
+
}, "loadRestJsonErrorCode");
|
|
2638
|
+
|
|
2639
|
+
// src/commands/BatchGetFieldCommand.ts
|
|
2640
|
+
var _BatchGetFieldCommand = class _BatchGetFieldCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2641
|
+
...commonParams
|
|
2642
|
+
}).m(function(Command, cs, config, o) {
|
|
2643
|
+
return [
|
|
2644
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2645
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2646
|
+
];
|
|
2647
|
+
}).s("AmazonConnectCases", "BatchGetField", {}).n("ConnectCasesClient", "BatchGetFieldCommand").f(void 0, void 0).ser(se_BatchGetFieldCommand).de(de_BatchGetFieldCommand).build() {
|
|
2648
|
+
};
|
|
2649
|
+
__name(_BatchGetFieldCommand, "BatchGetFieldCommand");
|
|
2650
|
+
var BatchGetFieldCommand = _BatchGetFieldCommand;
|
|
2651
|
+
|
|
2652
|
+
// src/commands/BatchPutFieldOptionsCommand.ts
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
var _BatchPutFieldOptionsCommand = class _BatchPutFieldOptionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2658
|
+
...commonParams
|
|
2659
|
+
}).m(function(Command, cs, config, o) {
|
|
2660
|
+
return [
|
|
2661
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2662
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2663
|
+
];
|
|
2664
|
+
}).s("AmazonConnectCases", "BatchPutFieldOptions", {}).n("ConnectCasesClient", "BatchPutFieldOptionsCommand").f(void 0, void 0).ser(se_BatchPutFieldOptionsCommand).de(de_BatchPutFieldOptionsCommand).build() {
|
|
2665
|
+
};
|
|
2666
|
+
__name(_BatchPutFieldOptionsCommand, "BatchPutFieldOptionsCommand");
|
|
2667
|
+
var BatchPutFieldOptionsCommand = _BatchPutFieldOptionsCommand;
|
|
2668
|
+
|
|
2669
|
+
// src/commands/CreateCaseCommand.ts
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
|
|
2674
|
+
var _CreateCaseCommand = class _CreateCaseCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2675
|
+
...commonParams
|
|
2676
|
+
}).m(function(Command, cs, config, o) {
|
|
2677
|
+
return [
|
|
2678
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2679
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2680
|
+
];
|
|
2681
|
+
}).s("AmazonConnectCases", "CreateCase", {}).n("ConnectCasesClient", "CreateCaseCommand").f(void 0, void 0).ser(se_CreateCaseCommand).de(de_CreateCaseCommand).build() {
|
|
2682
|
+
};
|
|
2683
|
+
__name(_CreateCaseCommand, "CreateCaseCommand");
|
|
2684
|
+
var CreateCaseCommand = _CreateCaseCommand;
|
|
2685
|
+
|
|
2686
|
+
// src/commands/CreateDomainCommand.ts
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
|
|
2690
|
+
|
|
2691
|
+
var _CreateDomainCommand = class _CreateDomainCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2692
|
+
...commonParams
|
|
2693
|
+
}).m(function(Command, cs, config, o) {
|
|
2694
|
+
return [
|
|
2695
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2696
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2697
|
+
];
|
|
2698
|
+
}).s("AmazonConnectCases", "CreateDomain", {}).n("ConnectCasesClient", "CreateDomainCommand").f(void 0, void 0).ser(se_CreateDomainCommand).de(de_CreateDomainCommand).build() {
|
|
2699
|
+
};
|
|
2700
|
+
__name(_CreateDomainCommand, "CreateDomainCommand");
|
|
2701
|
+
var CreateDomainCommand = _CreateDomainCommand;
|
|
2702
|
+
|
|
2703
|
+
// src/commands/CreateFieldCommand.ts
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
var _CreateFieldCommand = class _CreateFieldCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2709
|
+
...commonParams
|
|
2710
|
+
}).m(function(Command, cs, config, o) {
|
|
2711
|
+
return [
|
|
2712
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2713
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2714
|
+
];
|
|
2715
|
+
}).s("AmazonConnectCases", "CreateField", {}).n("ConnectCasesClient", "CreateFieldCommand").f(void 0, void 0).ser(se_CreateFieldCommand).de(de_CreateFieldCommand).build() {
|
|
2716
|
+
};
|
|
2717
|
+
__name(_CreateFieldCommand, "CreateFieldCommand");
|
|
2718
|
+
var CreateFieldCommand = _CreateFieldCommand;
|
|
2719
|
+
|
|
2720
|
+
// src/commands/CreateLayoutCommand.ts
|
|
2721
|
+
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
var _CreateLayoutCommand = class _CreateLayoutCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2726
|
+
...commonParams
|
|
2727
|
+
}).m(function(Command, cs, config, o) {
|
|
2728
|
+
return [
|
|
2729
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2730
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2731
|
+
];
|
|
2732
|
+
}).s("AmazonConnectCases", "CreateLayout", {}).n("ConnectCasesClient", "CreateLayoutCommand").f(void 0, void 0).ser(se_CreateLayoutCommand).de(de_CreateLayoutCommand).build() {
|
|
2733
|
+
};
|
|
2734
|
+
__name(_CreateLayoutCommand, "CreateLayoutCommand");
|
|
2735
|
+
var CreateLayoutCommand = _CreateLayoutCommand;
|
|
2736
|
+
|
|
2737
|
+
// src/commands/CreateRelatedItemCommand.ts
|
|
2738
|
+
|
|
2739
|
+
|
|
2740
|
+
|
|
2741
|
+
|
|
2742
|
+
var _CreateRelatedItemCommand = class _CreateRelatedItemCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2743
|
+
...commonParams
|
|
2744
|
+
}).m(function(Command, cs, config, o) {
|
|
2745
|
+
return [
|
|
2746
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2747
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2748
|
+
];
|
|
2749
|
+
}).s("AmazonConnectCases", "CreateRelatedItem", {}).n("ConnectCasesClient", "CreateRelatedItemCommand").f(void 0, void 0).ser(se_CreateRelatedItemCommand).de(de_CreateRelatedItemCommand).build() {
|
|
2750
|
+
};
|
|
2751
|
+
__name(_CreateRelatedItemCommand, "CreateRelatedItemCommand");
|
|
2752
|
+
var CreateRelatedItemCommand = _CreateRelatedItemCommand;
|
|
2753
|
+
|
|
2754
|
+
// src/commands/CreateTemplateCommand.ts
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
var _CreateTemplateCommand = class _CreateTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2760
|
+
...commonParams
|
|
2761
|
+
}).m(function(Command, cs, config, o) {
|
|
2762
|
+
return [
|
|
2763
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2764
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2765
|
+
];
|
|
2766
|
+
}).s("AmazonConnectCases", "CreateTemplate", {}).n("ConnectCasesClient", "CreateTemplateCommand").f(void 0, void 0).ser(se_CreateTemplateCommand).de(de_CreateTemplateCommand).build() {
|
|
2767
|
+
};
|
|
2768
|
+
__name(_CreateTemplateCommand, "CreateTemplateCommand");
|
|
2769
|
+
var CreateTemplateCommand = _CreateTemplateCommand;
|
|
2770
|
+
|
|
2771
|
+
// src/commands/DeleteDomainCommand.ts
|
|
2772
|
+
|
|
2773
|
+
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
var _DeleteDomainCommand = class _DeleteDomainCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2777
|
+
...commonParams
|
|
2778
|
+
}).m(function(Command, cs, config, o) {
|
|
2779
|
+
return [
|
|
2780
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2781
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2782
|
+
];
|
|
2783
|
+
}).s("AmazonConnectCases", "DeleteDomain", {}).n("ConnectCasesClient", "DeleteDomainCommand").f(void 0, void 0).ser(se_DeleteDomainCommand).de(de_DeleteDomainCommand).build() {
|
|
2784
|
+
};
|
|
2785
|
+
__name(_DeleteDomainCommand, "DeleteDomainCommand");
|
|
2786
|
+
var DeleteDomainCommand = _DeleteDomainCommand;
|
|
2787
|
+
|
|
2788
|
+
// src/commands/GetCaseCommand.ts
|
|
2789
|
+
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
|
|
2793
|
+
var _GetCaseCommand = class _GetCaseCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2794
|
+
...commonParams
|
|
2795
|
+
}).m(function(Command, cs, config, o) {
|
|
2796
|
+
return [
|
|
2797
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2798
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2799
|
+
];
|
|
2800
|
+
}).s("AmazonConnectCases", "GetCase", {}).n("ConnectCasesClient", "GetCaseCommand").f(void 0, void 0).ser(se_GetCaseCommand).de(de_GetCaseCommand).build() {
|
|
2801
|
+
};
|
|
2802
|
+
__name(_GetCaseCommand, "GetCaseCommand");
|
|
2803
|
+
var GetCaseCommand = _GetCaseCommand;
|
|
2804
|
+
|
|
2805
|
+
// src/commands/GetCaseEventConfigurationCommand.ts
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
|
|
2810
|
+
var _GetCaseEventConfigurationCommand = class _GetCaseEventConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2811
|
+
...commonParams
|
|
2812
|
+
}).m(function(Command, cs, config, o) {
|
|
2813
|
+
return [
|
|
2814
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2815
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2816
|
+
];
|
|
2817
|
+
}).s("AmazonConnectCases", "GetCaseEventConfiguration", {}).n("ConnectCasesClient", "GetCaseEventConfigurationCommand").f(void 0, void 0).ser(se_GetCaseEventConfigurationCommand).de(de_GetCaseEventConfigurationCommand).build() {
|
|
2818
|
+
};
|
|
2819
|
+
__name(_GetCaseEventConfigurationCommand, "GetCaseEventConfigurationCommand");
|
|
2820
|
+
var GetCaseEventConfigurationCommand = _GetCaseEventConfigurationCommand;
|
|
2821
|
+
|
|
2822
|
+
// src/commands/GetDomainCommand.ts
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
var _GetDomainCommand = class _GetDomainCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2828
|
+
...commonParams
|
|
2829
|
+
}).m(function(Command, cs, config, o) {
|
|
2830
|
+
return [
|
|
2831
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2832
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2833
|
+
];
|
|
2834
|
+
}).s("AmazonConnectCases", "GetDomain", {}).n("ConnectCasesClient", "GetDomainCommand").f(void 0, void 0).ser(se_GetDomainCommand).de(de_GetDomainCommand).build() {
|
|
2835
|
+
};
|
|
2836
|
+
__name(_GetDomainCommand, "GetDomainCommand");
|
|
2837
|
+
var GetDomainCommand = _GetDomainCommand;
|
|
2838
|
+
|
|
2839
|
+
// src/commands/GetLayoutCommand.ts
|
|
2840
|
+
|
|
2841
|
+
|
|
2842
|
+
|
|
2843
|
+
|
|
2844
|
+
var _GetLayoutCommand = class _GetLayoutCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2845
|
+
...commonParams
|
|
2846
|
+
}).m(function(Command, cs, config, o) {
|
|
2847
|
+
return [
|
|
2848
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2849
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2850
|
+
];
|
|
2851
|
+
}).s("AmazonConnectCases", "GetLayout", {}).n("ConnectCasesClient", "GetLayoutCommand").f(void 0, void 0).ser(se_GetLayoutCommand).de(de_GetLayoutCommand).build() {
|
|
2852
|
+
};
|
|
2853
|
+
__name(_GetLayoutCommand, "GetLayoutCommand");
|
|
2854
|
+
var GetLayoutCommand = _GetLayoutCommand;
|
|
2855
|
+
|
|
2856
|
+
// src/commands/GetTemplateCommand.ts
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
|
+
|
|
2860
|
+
|
|
2861
|
+
var _GetTemplateCommand = class _GetTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2862
|
+
...commonParams
|
|
2863
|
+
}).m(function(Command, cs, config, o) {
|
|
2864
|
+
return [
|
|
2865
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2866
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2867
|
+
];
|
|
2868
|
+
}).s("AmazonConnectCases", "GetTemplate", {}).n("ConnectCasesClient", "GetTemplateCommand").f(void 0, void 0).ser(se_GetTemplateCommand).de(de_GetTemplateCommand).build() {
|
|
2869
|
+
};
|
|
2870
|
+
__name(_GetTemplateCommand, "GetTemplateCommand");
|
|
2871
|
+
var GetTemplateCommand = _GetTemplateCommand;
|
|
2872
|
+
|
|
2873
|
+
// src/commands/ListCasesForContactCommand.ts
|
|
2874
|
+
|
|
2875
|
+
|
|
2876
|
+
|
|
2877
|
+
|
|
2878
|
+
var _ListCasesForContactCommand = class _ListCasesForContactCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2879
|
+
...commonParams
|
|
2880
|
+
}).m(function(Command, cs, config, o) {
|
|
2881
|
+
return [
|
|
2882
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2883
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2884
|
+
];
|
|
2885
|
+
}).s("AmazonConnectCases", "ListCasesForContact", {}).n("ConnectCasesClient", "ListCasesForContactCommand").f(void 0, void 0).ser(se_ListCasesForContactCommand).de(de_ListCasesForContactCommand).build() {
|
|
2886
|
+
};
|
|
2887
|
+
__name(_ListCasesForContactCommand, "ListCasesForContactCommand");
|
|
2888
|
+
var ListCasesForContactCommand = _ListCasesForContactCommand;
|
|
2889
|
+
|
|
2890
|
+
// src/commands/ListDomainsCommand.ts
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
|
|
2894
|
+
|
|
2895
|
+
var _ListDomainsCommand = class _ListDomainsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2896
|
+
...commonParams
|
|
2897
|
+
}).m(function(Command, cs, config, o) {
|
|
2898
|
+
return [
|
|
2899
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2900
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2901
|
+
];
|
|
2902
|
+
}).s("AmazonConnectCases", "ListDomains", {}).n("ConnectCasesClient", "ListDomainsCommand").f(void 0, void 0).ser(se_ListDomainsCommand).de(de_ListDomainsCommand).build() {
|
|
2903
|
+
};
|
|
2904
|
+
__name(_ListDomainsCommand, "ListDomainsCommand");
|
|
2905
|
+
var ListDomainsCommand = _ListDomainsCommand;
|
|
2906
|
+
|
|
2907
|
+
// src/commands/ListFieldOptionsCommand.ts
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
|
|
2911
|
+
|
|
2912
|
+
var _ListFieldOptionsCommand = class _ListFieldOptionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2913
|
+
...commonParams
|
|
2914
|
+
}).m(function(Command, cs, config, o) {
|
|
2915
|
+
return [
|
|
2916
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2917
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2918
|
+
];
|
|
2919
|
+
}).s("AmazonConnectCases", "ListFieldOptions", {}).n("ConnectCasesClient", "ListFieldOptionsCommand").f(void 0, void 0).ser(se_ListFieldOptionsCommand).de(de_ListFieldOptionsCommand).build() {
|
|
2920
|
+
};
|
|
2921
|
+
__name(_ListFieldOptionsCommand, "ListFieldOptionsCommand");
|
|
2922
|
+
var ListFieldOptionsCommand = _ListFieldOptionsCommand;
|
|
2923
|
+
|
|
2924
|
+
// src/commands/ListFieldsCommand.ts
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
|
|
2928
|
+
|
|
2929
|
+
var _ListFieldsCommand = class _ListFieldsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2930
|
+
...commonParams
|
|
2931
|
+
}).m(function(Command, cs, config, o) {
|
|
2932
|
+
return [
|
|
2933
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2934
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2935
|
+
];
|
|
2936
|
+
}).s("AmazonConnectCases", "ListFields", {}).n("ConnectCasesClient", "ListFieldsCommand").f(void 0, void 0).ser(se_ListFieldsCommand).de(de_ListFieldsCommand).build() {
|
|
2937
|
+
};
|
|
2938
|
+
__name(_ListFieldsCommand, "ListFieldsCommand");
|
|
2939
|
+
var ListFieldsCommand = _ListFieldsCommand;
|
|
2940
|
+
|
|
2941
|
+
// src/commands/ListLayoutsCommand.ts
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
|
|
2946
|
+
var _ListLayoutsCommand = class _ListLayoutsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2947
|
+
...commonParams
|
|
2948
|
+
}).m(function(Command, cs, config, o) {
|
|
2949
|
+
return [
|
|
2950
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2951
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2952
|
+
];
|
|
2953
|
+
}).s("AmazonConnectCases", "ListLayouts", {}).n("ConnectCasesClient", "ListLayoutsCommand").f(void 0, void 0).ser(se_ListLayoutsCommand).de(de_ListLayoutsCommand).build() {
|
|
2954
|
+
};
|
|
2955
|
+
__name(_ListLayoutsCommand, "ListLayoutsCommand");
|
|
2956
|
+
var ListLayoutsCommand = _ListLayoutsCommand;
|
|
2957
|
+
|
|
2958
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2964
|
+
...commonParams
|
|
2965
|
+
}).m(function(Command, cs, config, o) {
|
|
2966
|
+
return [
|
|
2967
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2968
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2969
|
+
];
|
|
2970
|
+
}).s("AmazonConnectCases", "ListTagsForResource", {}).n("ConnectCasesClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2971
|
+
};
|
|
2972
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2973
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2974
|
+
|
|
2975
|
+
// src/commands/ListTemplatesCommand.ts
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
|
|
2979
|
+
|
|
2980
|
+
var _ListTemplatesCommand = class _ListTemplatesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2981
|
+
...commonParams
|
|
2982
|
+
}).m(function(Command, cs, config, o) {
|
|
2983
|
+
return [
|
|
2984
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2985
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2986
|
+
];
|
|
2987
|
+
}).s("AmazonConnectCases", "ListTemplates", {}).n("ConnectCasesClient", "ListTemplatesCommand").f(void 0, void 0).ser(se_ListTemplatesCommand).de(de_ListTemplatesCommand).build() {
|
|
2988
|
+
};
|
|
2989
|
+
__name(_ListTemplatesCommand, "ListTemplatesCommand");
|
|
2990
|
+
var ListTemplatesCommand = _ListTemplatesCommand;
|
|
2991
|
+
|
|
2992
|
+
// src/commands/PutCaseEventConfigurationCommand.ts
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
|
|
2997
|
+
var _PutCaseEventConfigurationCommand = class _PutCaseEventConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2998
|
+
...commonParams
|
|
2999
|
+
}).m(function(Command, cs, config, o) {
|
|
3000
|
+
return [
|
|
3001
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3002
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3003
|
+
];
|
|
3004
|
+
}).s("AmazonConnectCases", "PutCaseEventConfiguration", {}).n("ConnectCasesClient", "PutCaseEventConfigurationCommand").f(void 0, void 0).ser(se_PutCaseEventConfigurationCommand).de(de_PutCaseEventConfigurationCommand).build() {
|
|
3005
|
+
};
|
|
3006
|
+
__name(_PutCaseEventConfigurationCommand, "PutCaseEventConfigurationCommand");
|
|
3007
|
+
var PutCaseEventConfigurationCommand = _PutCaseEventConfigurationCommand;
|
|
3008
|
+
|
|
3009
|
+
// src/commands/SearchCasesCommand.ts
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
var _SearchCasesCommand = class _SearchCasesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3015
|
+
...commonParams
|
|
3016
|
+
}).m(function(Command, cs, config, o) {
|
|
3017
|
+
return [
|
|
3018
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3019
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3020
|
+
];
|
|
3021
|
+
}).s("AmazonConnectCases", "SearchCases", {}).n("ConnectCasesClient", "SearchCasesCommand").f(void 0, void 0).ser(se_SearchCasesCommand).de(de_SearchCasesCommand).build() {
|
|
3022
|
+
};
|
|
3023
|
+
__name(_SearchCasesCommand, "SearchCasesCommand");
|
|
3024
|
+
var SearchCasesCommand = _SearchCasesCommand;
|
|
3025
|
+
|
|
3026
|
+
// src/commands/SearchRelatedItemsCommand.ts
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
|
|
3031
|
+
var _SearchRelatedItemsCommand = class _SearchRelatedItemsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3032
|
+
...commonParams
|
|
3033
|
+
}).m(function(Command, cs, config, o) {
|
|
3034
|
+
return [
|
|
3035
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3036
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3037
|
+
];
|
|
3038
|
+
}).s("AmazonConnectCases", "SearchRelatedItems", {}).n("ConnectCasesClient", "SearchRelatedItemsCommand").f(void 0, void 0).ser(se_SearchRelatedItemsCommand).de(de_SearchRelatedItemsCommand).build() {
|
|
3039
|
+
};
|
|
3040
|
+
__name(_SearchRelatedItemsCommand, "SearchRelatedItemsCommand");
|
|
3041
|
+
var SearchRelatedItemsCommand = _SearchRelatedItemsCommand;
|
|
3042
|
+
|
|
3043
|
+
// src/commands/TagResourceCommand.ts
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3049
|
+
...commonParams
|
|
3050
|
+
}).m(function(Command, cs, config, o) {
|
|
3051
|
+
return [
|
|
3052
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3053
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3054
|
+
];
|
|
3055
|
+
}).s("AmazonConnectCases", "TagResource", {}).n("ConnectCasesClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
3056
|
+
};
|
|
3057
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
3058
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
3059
|
+
|
|
3060
|
+
// src/commands/UntagResourceCommand.ts
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
|
|
3064
|
+
|
|
3065
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3066
|
+
...commonParams
|
|
3067
|
+
}).m(function(Command, cs, config, o) {
|
|
3068
|
+
return [
|
|
3069
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3070
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3071
|
+
];
|
|
3072
|
+
}).s("AmazonConnectCases", "UntagResource", {}).n("ConnectCasesClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
3073
|
+
};
|
|
3074
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
3075
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
3076
|
+
|
|
3077
|
+
// src/commands/UpdateCaseCommand.ts
|
|
3078
|
+
|
|
3079
|
+
|
|
3080
|
+
|
|
3081
|
+
|
|
3082
|
+
var _UpdateCaseCommand = class _UpdateCaseCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3083
|
+
...commonParams
|
|
3084
|
+
}).m(function(Command, cs, config, o) {
|
|
3085
|
+
return [
|
|
3086
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3087
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3088
|
+
];
|
|
3089
|
+
}).s("AmazonConnectCases", "UpdateCase", {}).n("ConnectCasesClient", "UpdateCaseCommand").f(void 0, void 0).ser(se_UpdateCaseCommand).de(de_UpdateCaseCommand).build() {
|
|
3090
|
+
};
|
|
3091
|
+
__name(_UpdateCaseCommand, "UpdateCaseCommand");
|
|
3092
|
+
var UpdateCaseCommand = _UpdateCaseCommand;
|
|
3093
|
+
|
|
3094
|
+
// src/commands/UpdateFieldCommand.ts
|
|
3095
|
+
|
|
3096
|
+
|
|
3097
|
+
|
|
3098
|
+
|
|
3099
|
+
var _UpdateFieldCommand = class _UpdateFieldCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3100
|
+
...commonParams
|
|
3101
|
+
}).m(function(Command, cs, config, o) {
|
|
3102
|
+
return [
|
|
3103
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3104
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3105
|
+
];
|
|
3106
|
+
}).s("AmazonConnectCases", "UpdateField", {}).n("ConnectCasesClient", "UpdateFieldCommand").f(void 0, void 0).ser(se_UpdateFieldCommand).de(de_UpdateFieldCommand).build() {
|
|
3107
|
+
};
|
|
3108
|
+
__name(_UpdateFieldCommand, "UpdateFieldCommand");
|
|
3109
|
+
var UpdateFieldCommand = _UpdateFieldCommand;
|
|
3110
|
+
|
|
3111
|
+
// src/commands/UpdateLayoutCommand.ts
|
|
3112
|
+
|
|
3113
|
+
|
|
3114
|
+
|
|
3115
|
+
|
|
3116
|
+
var _UpdateLayoutCommand = class _UpdateLayoutCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3117
|
+
...commonParams
|
|
3118
|
+
}).m(function(Command, cs, config, o) {
|
|
3119
|
+
return [
|
|
3120
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3121
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3122
|
+
];
|
|
3123
|
+
}).s("AmazonConnectCases", "UpdateLayout", {}).n("ConnectCasesClient", "UpdateLayoutCommand").f(void 0, void 0).ser(se_UpdateLayoutCommand).de(de_UpdateLayoutCommand).build() {
|
|
3124
|
+
};
|
|
3125
|
+
__name(_UpdateLayoutCommand, "UpdateLayoutCommand");
|
|
3126
|
+
var UpdateLayoutCommand = _UpdateLayoutCommand;
|
|
3127
|
+
|
|
3128
|
+
// src/commands/UpdateTemplateCommand.ts
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
|
|
3132
|
+
|
|
3133
|
+
var _UpdateTemplateCommand = class _UpdateTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3134
|
+
...commonParams
|
|
3135
|
+
}).m(function(Command, cs, config, o) {
|
|
3136
|
+
return [
|
|
3137
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3138
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3139
|
+
];
|
|
3140
|
+
}).s("AmazonConnectCases", "UpdateTemplate", {}).n("ConnectCasesClient", "UpdateTemplateCommand").f(void 0, void 0).ser(se_UpdateTemplateCommand).de(de_UpdateTemplateCommand).build() {
|
|
3141
|
+
};
|
|
3142
|
+
__name(_UpdateTemplateCommand, "UpdateTemplateCommand");
|
|
3143
|
+
var UpdateTemplateCommand = _UpdateTemplateCommand;
|
|
3144
|
+
|
|
3145
|
+
// src/ConnectCases.ts
|
|
3146
|
+
var commands = {
|
|
3147
|
+
BatchGetFieldCommand,
|
|
3148
|
+
BatchPutFieldOptionsCommand,
|
|
3149
|
+
CreateCaseCommand,
|
|
3150
|
+
CreateDomainCommand,
|
|
3151
|
+
CreateFieldCommand,
|
|
3152
|
+
CreateLayoutCommand,
|
|
3153
|
+
CreateRelatedItemCommand,
|
|
3154
|
+
CreateTemplateCommand,
|
|
3155
|
+
DeleteDomainCommand,
|
|
3156
|
+
GetCaseCommand,
|
|
3157
|
+
GetCaseEventConfigurationCommand,
|
|
3158
|
+
GetDomainCommand,
|
|
3159
|
+
GetLayoutCommand,
|
|
3160
|
+
GetTemplateCommand,
|
|
3161
|
+
ListCasesForContactCommand,
|
|
3162
|
+
ListDomainsCommand,
|
|
3163
|
+
ListFieldOptionsCommand,
|
|
3164
|
+
ListFieldsCommand,
|
|
3165
|
+
ListLayoutsCommand,
|
|
3166
|
+
ListTagsForResourceCommand,
|
|
3167
|
+
ListTemplatesCommand,
|
|
3168
|
+
PutCaseEventConfigurationCommand,
|
|
3169
|
+
SearchCasesCommand,
|
|
3170
|
+
SearchRelatedItemsCommand,
|
|
3171
|
+
TagResourceCommand,
|
|
3172
|
+
UntagResourceCommand,
|
|
3173
|
+
UpdateCaseCommand,
|
|
3174
|
+
UpdateFieldCommand,
|
|
3175
|
+
UpdateLayoutCommand,
|
|
3176
|
+
UpdateTemplateCommand
|
|
3177
|
+
};
|
|
3178
|
+
var _ConnectCases = class _ConnectCases extends ConnectCasesClient {
|
|
3179
|
+
};
|
|
3180
|
+
__name(_ConnectCases, "ConnectCases");
|
|
3181
|
+
var ConnectCases = _ConnectCases;
|
|
3182
|
+
(0, import_smithy_client.createAggregatedClient)(commands, ConnectCases);
|
|
3183
|
+
|
|
3184
|
+
// src/pagination/GetCasePaginator.ts
|
|
3185
|
+
var import_core3 = require("@smithy/core");
|
|
3186
|
+
var paginateGetCase = (0, import_core3.createPaginator)(ConnectCasesClient, GetCaseCommand, "nextToken", "nextToken", "");
|
|
3187
|
+
|
|
3188
|
+
// src/pagination/ListCasesForContactPaginator.ts
|
|
3189
|
+
var import_core4 = require("@smithy/core");
|
|
3190
|
+
var paginateListCasesForContact = (0, import_core4.createPaginator)(ConnectCasesClient, ListCasesForContactCommand, "nextToken", "nextToken", "maxResults");
|
|
3191
|
+
|
|
3192
|
+
// src/pagination/ListDomainsPaginator.ts
|
|
3193
|
+
var import_core5 = require("@smithy/core");
|
|
3194
|
+
var paginateListDomains = (0, import_core5.createPaginator)(ConnectCasesClient, ListDomainsCommand, "nextToken", "nextToken", "maxResults");
|
|
3195
|
+
|
|
3196
|
+
// src/pagination/ListFieldOptionsPaginator.ts
|
|
3197
|
+
var import_core6 = require("@smithy/core");
|
|
3198
|
+
var paginateListFieldOptions = (0, import_core6.createPaginator)(ConnectCasesClient, ListFieldOptionsCommand, "nextToken", "nextToken", "maxResults");
|
|
3199
|
+
|
|
3200
|
+
// src/pagination/ListFieldsPaginator.ts
|
|
3201
|
+
var import_core7 = require("@smithy/core");
|
|
3202
|
+
var paginateListFields = (0, import_core7.createPaginator)(ConnectCasesClient, ListFieldsCommand, "nextToken", "nextToken", "maxResults");
|
|
3203
|
+
|
|
3204
|
+
// src/pagination/ListLayoutsPaginator.ts
|
|
3205
|
+
var import_core8 = require("@smithy/core");
|
|
3206
|
+
var paginateListLayouts = (0, import_core8.createPaginator)(ConnectCasesClient, ListLayoutsCommand, "nextToken", "nextToken", "maxResults");
|
|
3207
|
+
|
|
3208
|
+
// src/pagination/ListTemplatesPaginator.ts
|
|
3209
|
+
var import_core9 = require("@smithy/core");
|
|
3210
|
+
var paginateListTemplates = (0, import_core9.createPaginator)(ConnectCasesClient, ListTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
3211
|
+
|
|
3212
|
+
// src/pagination/SearchCasesPaginator.ts
|
|
3213
|
+
var import_core10 = require("@smithy/core");
|
|
3214
|
+
var paginateSearchCases = (0, import_core10.createPaginator)(ConnectCasesClient, SearchCasesCommand, "nextToken", "nextToken", "maxResults");
|
|
3215
|
+
|
|
3216
|
+
// src/pagination/SearchRelatedItemsPaginator.ts
|
|
3217
|
+
var import_core11 = require("@smithy/core");
|
|
3218
|
+
var paginateSearchRelatedItems = (0, import_core11.createPaginator)(ConnectCasesClient, SearchRelatedItemsCommand, "nextToken", "nextToken", "maxResults");
|
|
3219
|
+
|
|
3220
|
+
// src/index.ts
|
|
3221
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
3222
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3223
|
+
0 && (module.exports = {
|
|
3224
|
+
AccessDeniedException,
|
|
3225
|
+
BatchGetFieldCommand,
|
|
3226
|
+
BatchPutFieldOptionsCommand,
|
|
3227
|
+
CaseFilter,
|
|
3228
|
+
CommentBodyTextType,
|
|
3229
|
+
ConflictException,
|
|
3230
|
+
ConnectCases,
|
|
3231
|
+
ConnectCasesClient,
|
|
3232
|
+
ConnectCasesServiceException,
|
|
3233
|
+
CreateCaseCommand,
|
|
3234
|
+
CreateDomainCommand,
|
|
3235
|
+
CreateFieldCommand,
|
|
3236
|
+
CreateLayoutCommand,
|
|
3237
|
+
CreateRelatedItemCommand,
|
|
3238
|
+
CreateTemplateCommand,
|
|
3239
|
+
DeleteDomainCommand,
|
|
3240
|
+
DomainStatus,
|
|
3241
|
+
FieldFilter,
|
|
3242
|
+
FieldNamespace,
|
|
3243
|
+
FieldType,
|
|
3244
|
+
FieldValueUnion,
|
|
3245
|
+
GetCaseCommand,
|
|
3246
|
+
GetCaseEventConfigurationCommand,
|
|
3247
|
+
GetDomainCommand,
|
|
3248
|
+
GetLayoutCommand,
|
|
3249
|
+
GetTemplateCommand,
|
|
3250
|
+
InternalServerException,
|
|
3251
|
+
LayoutContent,
|
|
3252
|
+
ListCasesForContactCommand,
|
|
3253
|
+
ListDomainsCommand,
|
|
3254
|
+
ListFieldOptionsCommand,
|
|
3255
|
+
ListFieldsCommand,
|
|
3256
|
+
ListLayoutsCommand,
|
|
3257
|
+
ListTagsForResourceCommand,
|
|
3258
|
+
ListTemplatesCommand,
|
|
3259
|
+
Order,
|
|
3260
|
+
PutCaseEventConfigurationCommand,
|
|
3261
|
+
RelatedItemContent,
|
|
3262
|
+
RelatedItemInputContent,
|
|
3263
|
+
RelatedItemType,
|
|
3264
|
+
RelatedItemTypeFilter,
|
|
3265
|
+
ResourceNotFoundException,
|
|
3266
|
+
SearchCasesCommand,
|
|
3267
|
+
SearchRelatedItemsCommand,
|
|
3268
|
+
Section,
|
|
3269
|
+
ServiceQuotaExceededException,
|
|
3270
|
+
TagResourceCommand,
|
|
3271
|
+
TemplateStatus,
|
|
3272
|
+
ThrottlingException,
|
|
3273
|
+
UntagResourceCommand,
|
|
3274
|
+
UpdateCaseCommand,
|
|
3275
|
+
UpdateFieldCommand,
|
|
3276
|
+
UpdateLayoutCommand,
|
|
3277
|
+
UpdateTemplateCommand,
|
|
3278
|
+
UserUnion,
|
|
3279
|
+
ValidationException,
|
|
3280
|
+
__Client,
|
|
3281
|
+
paginateGetCase,
|
|
3282
|
+
paginateListCasesForContact,
|
|
3283
|
+
paginateListDomains,
|
|
3284
|
+
paginateListFieldOptions,
|
|
3285
|
+
paginateListFields,
|
|
3286
|
+
paginateListLayouts,
|
|
3287
|
+
paginateListTemplates,
|
|
3288
|
+
paginateSearchCases,
|
|
3289
|
+
paginateSearchRelatedItems
|
|
3290
|
+
});
|