@aws-sdk/client-connectcases 3.200.0 → 3.202.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +37 -42
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-connectcases
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-connectcases
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "cases",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -12,7 +12,7 @@ const serializeAws_restJson1BatchGetFieldCommand = async (input, context) => {
|
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
let resolvedPath = `${
|
|
15
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields-batch";
|
|
16
16
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
@@ -34,7 +34,7 @@ const serializeAws_restJson1BatchPutFieldOptionsCommand = async (input, context)
|
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/json",
|
|
36
36
|
};
|
|
37
|
-
let resolvedPath = `${
|
|
37
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
38
38
|
"/domains/{domainId}/fields/{fieldId}/options";
|
|
39
39
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
40
40
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fieldId", () => input.fieldId, "{fieldId}", false);
|
|
@@ -54,16 +54,15 @@ const serializeAws_restJson1BatchPutFieldOptionsCommand = async (input, context)
|
|
|
54
54
|
};
|
|
55
55
|
exports.serializeAws_restJson1BatchPutFieldOptionsCommand = serializeAws_restJson1BatchPutFieldOptionsCommand;
|
|
56
56
|
const serializeAws_restJson1CreateCaseCommand = async (input, context) => {
|
|
57
|
-
var _a;
|
|
58
57
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
58
|
const headers = {
|
|
60
59
|
"content-type": "application/json",
|
|
61
60
|
};
|
|
62
|
-
let resolvedPath = `${
|
|
61
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases";
|
|
63
62
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
64
63
|
let body;
|
|
65
64
|
body = JSON.stringify({
|
|
66
|
-
clientToken:
|
|
65
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
67
66
|
...(input.fields != null && { fields: serializeAws_restJson1FieldValueList(input.fields, context) }),
|
|
68
67
|
...(input.templateId != null && { templateId: input.templateId }),
|
|
69
68
|
});
|
|
@@ -83,7 +82,7 @@ const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
|
|
|
83
82
|
const headers = {
|
|
84
83
|
"content-type": "application/json",
|
|
85
84
|
};
|
|
86
|
-
const resolvedPath = `${
|
|
85
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains";
|
|
87
86
|
let body;
|
|
88
87
|
body = JSON.stringify({
|
|
89
88
|
...(input.name != null && { name: input.name }),
|
|
@@ -104,7 +103,7 @@ const serializeAws_restJson1CreateFieldCommand = async (input, context) => {
|
|
|
104
103
|
const headers = {
|
|
105
104
|
"content-type": "application/json",
|
|
106
105
|
};
|
|
107
|
-
let resolvedPath = `${
|
|
106
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields";
|
|
108
107
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
109
108
|
let body;
|
|
110
109
|
body = JSON.stringify({
|
|
@@ -128,7 +127,7 @@ const serializeAws_restJson1CreateLayoutCommand = async (input, context) => {
|
|
|
128
127
|
const headers = {
|
|
129
128
|
"content-type": "application/json",
|
|
130
129
|
};
|
|
131
|
-
let resolvedPath = `${
|
|
130
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts";
|
|
132
131
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
133
132
|
let body;
|
|
134
133
|
body = JSON.stringify({
|
|
@@ -151,7 +150,7 @@ const serializeAws_restJson1CreateRelatedItemCommand = async (input, context) =>
|
|
|
151
150
|
const headers = {
|
|
152
151
|
"content-type": "application/json",
|
|
153
152
|
};
|
|
154
|
-
let resolvedPath = `${
|
|
153
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
155
154
|
"/domains/{domainId}/cases/{caseId}/related-items";
|
|
156
155
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
157
156
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
@@ -176,7 +175,7 @@ const serializeAws_restJson1CreateTemplateCommand = async (input, context) => {
|
|
|
176
175
|
const headers = {
|
|
177
176
|
"content-type": "application/json",
|
|
178
177
|
};
|
|
179
|
-
let resolvedPath = `${
|
|
178
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/templates";
|
|
180
179
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
181
180
|
let body;
|
|
182
181
|
body = JSON.stringify({
|
|
@@ -205,7 +204,7 @@ const serializeAws_restJson1GetCaseCommand = async (input, context) => {
|
|
|
205
204
|
const headers = {
|
|
206
205
|
"content-type": "application/json",
|
|
207
206
|
};
|
|
208
|
-
let resolvedPath = `${
|
|
207
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases/{caseId}";
|
|
209
208
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
210
209
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
211
210
|
let body;
|
|
@@ -227,7 +226,7 @@ exports.serializeAws_restJson1GetCaseCommand = serializeAws_restJson1GetCaseComm
|
|
|
227
226
|
const serializeAws_restJson1GetCaseEventConfigurationCommand = async (input, context) => {
|
|
228
227
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
228
|
const headers = {};
|
|
230
|
-
let resolvedPath = `${
|
|
229
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
231
230
|
"/domains/{domainId}/case-event-configuration";
|
|
232
231
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
233
232
|
let body;
|
|
@@ -245,7 +244,7 @@ exports.serializeAws_restJson1GetCaseEventConfigurationCommand = serializeAws_re
|
|
|
245
244
|
const serializeAws_restJson1GetDomainCommand = async (input, context) => {
|
|
246
245
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
247
246
|
const headers = {};
|
|
248
|
-
let resolvedPath = `${
|
|
247
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}";
|
|
249
248
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
250
249
|
let body;
|
|
251
250
|
return new protocol_http_1.HttpRequest({
|
|
@@ -262,7 +261,7 @@ exports.serializeAws_restJson1GetDomainCommand = serializeAws_restJson1GetDomain
|
|
|
262
261
|
const serializeAws_restJson1GetLayoutCommand = async (input, context) => {
|
|
263
262
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
264
263
|
const headers = {};
|
|
265
|
-
let resolvedPath = `${
|
|
264
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts/{layoutId}";
|
|
266
265
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
267
266
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "layoutId", () => input.layoutId, "{layoutId}", false);
|
|
268
267
|
let body;
|
|
@@ -280,7 +279,7 @@ exports.serializeAws_restJson1GetLayoutCommand = serializeAws_restJson1GetLayout
|
|
|
280
279
|
const serializeAws_restJson1GetTemplateCommand = async (input, context) => {
|
|
281
280
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
282
281
|
const headers = {};
|
|
283
|
-
let resolvedPath = `${
|
|
282
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
284
283
|
"/domains/{domainId}/templates/{templateId}";
|
|
285
284
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
286
285
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateId", () => input.templateId, "{templateId}", false);
|
|
@@ -301,7 +300,7 @@ const serializeAws_restJson1ListCasesForContactCommand = async (input, context)
|
|
|
301
300
|
const headers = {
|
|
302
301
|
"content-type": "application/json",
|
|
303
302
|
};
|
|
304
|
-
let resolvedPath = `${
|
|
303
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
305
304
|
"/domains/{domainId}/list-cases-for-contact";
|
|
306
305
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
307
306
|
let body;
|
|
@@ -324,7 +323,7 @@ exports.serializeAws_restJson1ListCasesForContactCommand = serializeAws_restJson
|
|
|
324
323
|
const serializeAws_restJson1ListDomainsCommand = async (input, context) => {
|
|
325
324
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
326
325
|
const headers = {};
|
|
327
|
-
const resolvedPath = `${
|
|
326
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains-list";
|
|
328
327
|
const query = map({
|
|
329
328
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
330
329
|
nextToken: [, input.nextToken],
|
|
@@ -345,7 +344,7 @@ exports.serializeAws_restJson1ListDomainsCommand = serializeAws_restJson1ListDom
|
|
|
345
344
|
const serializeAws_restJson1ListFieldOptionsCommand = async (input, context) => {
|
|
346
345
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
347
346
|
const headers = {};
|
|
348
|
-
let resolvedPath = `${
|
|
347
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
349
348
|
"/domains/{domainId}/fields/{fieldId}/options-list";
|
|
350
349
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
351
350
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fieldId", () => input.fieldId, "{fieldId}", false);
|
|
@@ -370,7 +369,7 @@ exports.serializeAws_restJson1ListFieldOptionsCommand = serializeAws_restJson1Li
|
|
|
370
369
|
const serializeAws_restJson1ListFieldsCommand = async (input, context) => {
|
|
371
370
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
372
371
|
const headers = {};
|
|
373
|
-
let resolvedPath = `${
|
|
372
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields-list";
|
|
374
373
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
375
374
|
const query = map({
|
|
376
375
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -392,7 +391,7 @@ exports.serializeAws_restJson1ListFieldsCommand = serializeAws_restJson1ListFiel
|
|
|
392
391
|
const serializeAws_restJson1ListLayoutsCommand = async (input, context) => {
|
|
393
392
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
393
|
const headers = {};
|
|
395
|
-
let resolvedPath = `${
|
|
394
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts-list";
|
|
396
395
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
397
396
|
const query = map({
|
|
398
397
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -414,7 +413,7 @@ exports.serializeAws_restJson1ListLayoutsCommand = serializeAws_restJson1ListLay
|
|
|
414
413
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
415
414
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
416
415
|
const headers = {};
|
|
417
|
-
let resolvedPath = `${
|
|
416
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
418
417
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
419
418
|
let body;
|
|
420
419
|
return new protocol_http_1.HttpRequest({
|
|
@@ -431,7 +430,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
|
|
|
431
430
|
const serializeAws_restJson1ListTemplatesCommand = async (input, context) => {
|
|
432
431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
433
432
|
const headers = {};
|
|
434
|
-
let resolvedPath = `${
|
|
433
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/templates-list";
|
|
435
434
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
436
435
|
const query = map({
|
|
437
436
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -455,7 +454,7 @@ const serializeAws_restJson1PutCaseEventConfigurationCommand = async (input, con
|
|
|
455
454
|
const headers = {
|
|
456
455
|
"content-type": "application/json",
|
|
457
456
|
};
|
|
458
|
-
let resolvedPath = `${
|
|
457
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
459
458
|
"/domains/{domainId}/case-event-configuration";
|
|
460
459
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
461
460
|
let body;
|
|
@@ -480,7 +479,7 @@ const serializeAws_restJson1SearchCasesCommand = async (input, context) => {
|
|
|
480
479
|
const headers = {
|
|
481
480
|
"content-type": "application/json",
|
|
482
481
|
};
|
|
483
|
-
let resolvedPath = `${
|
|
482
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases-search";
|
|
484
483
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
485
484
|
let body;
|
|
486
485
|
body = JSON.stringify({
|
|
@@ -507,7 +506,7 @@ const serializeAws_restJson1SearchRelatedItemsCommand = async (input, context) =
|
|
|
507
506
|
const headers = {
|
|
508
507
|
"content-type": "application/json",
|
|
509
508
|
};
|
|
510
|
-
let resolvedPath = `${
|
|
509
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
511
510
|
"/domains/{domainId}/cases/{caseId}/related-items-search";
|
|
512
511
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
513
512
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
@@ -533,7 +532,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
533
532
|
const headers = {
|
|
534
533
|
"content-type": "application/json",
|
|
535
534
|
};
|
|
536
|
-
let resolvedPath = `${
|
|
535
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
537
536
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
538
537
|
let body;
|
|
539
538
|
body = JSON.stringify({
|
|
@@ -553,7 +552,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
553
552
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
554
553
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
555
554
|
const headers = {};
|
|
556
|
-
let resolvedPath = `${
|
|
555
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
557
556
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
558
557
|
const query = map({
|
|
559
558
|
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
@@ -576,7 +575,7 @@ const serializeAws_restJson1UpdateCaseCommand = async (input, context) => {
|
|
|
576
575
|
const headers = {
|
|
577
576
|
"content-type": "application/json",
|
|
578
577
|
};
|
|
579
|
-
let resolvedPath = `${
|
|
578
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases/{caseId}";
|
|
580
579
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
581
580
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
582
581
|
let body;
|
|
@@ -599,7 +598,7 @@ const serializeAws_restJson1UpdateFieldCommand = async (input, context) => {
|
|
|
599
598
|
const headers = {
|
|
600
599
|
"content-type": "application/json",
|
|
601
600
|
};
|
|
602
|
-
let resolvedPath = `${
|
|
601
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields/{fieldId}";
|
|
603
602
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
604
603
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fieldId", () => input.fieldId, "{fieldId}", false);
|
|
605
604
|
let body;
|
|
@@ -623,7 +622,7 @@ const serializeAws_restJson1UpdateLayoutCommand = async (input, context) => {
|
|
|
623
622
|
const headers = {
|
|
624
623
|
"content-type": "application/json",
|
|
625
624
|
};
|
|
626
|
-
let resolvedPath = `${
|
|
625
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts/{layoutId}";
|
|
627
626
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
628
627
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "layoutId", () => input.layoutId, "{layoutId}", false);
|
|
629
628
|
let body;
|
|
@@ -647,7 +646,7 @@ const serializeAws_restJson1UpdateTemplateCommand = async (input, context) => {
|
|
|
647
646
|
const headers = {
|
|
648
647
|
"content-type": "application/json",
|
|
649
648
|
};
|
|
650
|
-
let resolvedPath = `${
|
|
649
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
651
650
|
"/domains/{domainId}/templates/{templateId}";
|
|
652
651
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
653
652
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateId", () => input.templateId, "{templateId}", false);
|
|
@@ -2856,15 +2855,12 @@ const deserializeAws_restJson1TemplateSummaryList = (output, context) => {
|
|
|
2856
2855
|
});
|
|
2857
2856
|
return retVal;
|
|
2858
2857
|
};
|
|
2859
|
-
const deserializeMetadata = (output) => {
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2866
|
-
});
|
|
2867
|
-
};
|
|
2858
|
+
const deserializeMetadata = (output) => ({
|
|
2859
|
+
httpStatusCode: output.statusCode,
|
|
2860
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2861
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2862
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2863
|
+
});
|
|
2868
2864
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2869
2865
|
if (streamBody instanceof Uint8Array) {
|
|
2870
2866
|
return Promise.resolve(streamBody);
|
|
@@ -2884,9 +2880,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2884
2880
|
return {};
|
|
2885
2881
|
});
|
|
2886
2882
|
const parseErrorBody = async (errorBody, context) => {
|
|
2887
|
-
var _a;
|
|
2888
2883
|
const value = await parseBody(errorBody, context);
|
|
2889
|
-
value.message =
|
|
2884
|
+
value.message = value.message ?? value.Message;
|
|
2890
2885
|
return value;
|
|
2891
2886
|
};
|
|
2892
2887
|
const loadRestJsonErrorCode = (output, data) => {
|
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2022-10-03",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "ConnectCases",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-connectcases",
|
|
3
3
|
"description": "AWS SDK for JavaScript Connectcases Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.202.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,45 +19,45 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.202.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.202.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.202.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
56
|
"uuid": "^8.3.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
60
|
-
"@tsconfig/
|
|
60
|
+
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^12.7.5",
|
|
62
62
|
"@types/uuid": "^8.3.0",
|
|
63
63
|
"concurrently": "7.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
|
-
"node": ">=
|
|
75
|
+
"node": ">=14.0.0"
|
|
76
76
|
},
|
|
77
77
|
"typesVersions": {
|
|
78
78
|
"<4.0": {
|