@aws-sdk/client-connectcases 3.900.0 → 3.902.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/README.md +8 -0
- package/dist-cjs/index.js +105 -0
- package/dist-es/ConnectCases.js +2 -0
- package/dist-es/commands/SearchAllRelatedItemsCommand.js +23 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +19 -0
- package/dist-es/pagination/SearchAllRelatedItemsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +52 -0
- package/dist-types/ConnectCases.d.ts +7 -0
- package/dist-types/ConnectCasesClient.d.ts +3 -2
- package/dist-types/commands/SearchAllRelatedItemsCommand.d.ts +263 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +148 -22
- package/dist-types/pagination/SearchAllRelatedItemsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/ConnectCases.d.ts +17 -0
- package/dist-types/ts3.4/ConnectCasesClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/SearchAllRelatedItemsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +39 -0
- package/dist-types/ts3.4/pagination/SearchAllRelatedItemsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +38 -38
package/README.md
CHANGED
|
@@ -458,6 +458,14 @@ PutCaseEventConfiguration
|
|
|
458
458
|
|
|
459
459
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/PutCaseEventConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/PutCaseEventConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/PutCaseEventConfigurationCommandOutput/)
|
|
460
460
|
|
|
461
|
+
</details>
|
|
462
|
+
<details>
|
|
463
|
+
<summary>
|
|
464
|
+
SearchAllRelatedItems
|
|
465
|
+
</summary>
|
|
466
|
+
|
|
467
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/SearchAllRelatedItemsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/SearchAllRelatedItemsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/SearchAllRelatedItemsCommandOutput/)
|
|
468
|
+
|
|
461
469
|
</details>
|
|
462
470
|
<details>
|
|
463
471
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -89,6 +89,11 @@ __export(index_exports, {
|
|
|
89
89
|
RelatedItemTypeFilterFilterSensitiveLog: () => RelatedItemTypeFilterFilterSensitiveLog,
|
|
90
90
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
91
91
|
RuleType: () => RuleType,
|
|
92
|
+
SearchAllRelatedItemsCommand: () => SearchAllRelatedItemsCommand,
|
|
93
|
+
SearchAllRelatedItemsRequestFilterSensitiveLog: () => SearchAllRelatedItemsRequestFilterSensitiveLog,
|
|
94
|
+
SearchAllRelatedItemsResponseFilterSensitiveLog: () => SearchAllRelatedItemsResponseFilterSensitiveLog,
|
|
95
|
+
SearchAllRelatedItemsResponseItemFilterSensitiveLog: () => SearchAllRelatedItemsResponseItemFilterSensitiveLog,
|
|
96
|
+
SearchAllRelatedItemsSortProperty: () => SearchAllRelatedItemsSortProperty,
|
|
92
97
|
SearchCasesCommand: () => SearchCasesCommand,
|
|
93
98
|
SearchRelatedItemsCommand: () => SearchRelatedItemsCommand,
|
|
94
99
|
SearchRelatedItemsRequestFilterSensitiveLog: () => SearchRelatedItemsRequestFilterSensitiveLog,
|
|
@@ -127,6 +132,7 @@ __export(index_exports, {
|
|
|
127
132
|
paginateListFields: () => paginateListFields,
|
|
128
133
|
paginateListLayouts: () => paginateListLayouts,
|
|
129
134
|
paginateListTemplates: () => paginateListTemplates,
|
|
135
|
+
paginateSearchAllRelatedItems: () => paginateSearchAllRelatedItems,
|
|
130
136
|
paginateSearchCases: () => paginateSearchCases,
|
|
131
137
|
paginateSearchRelatedItems: () => paginateSearchRelatedItems
|
|
132
138
|
});
|
|
@@ -592,6 +598,10 @@ var DomainStatus = {
|
|
|
592
598
|
CREATION_FAILED: "CreationFailed",
|
|
593
599
|
CREATION_IN_PROGRESS: "CreationInProgress"
|
|
594
600
|
};
|
|
601
|
+
var SearchAllRelatedItemsSortProperty = {
|
|
602
|
+
ASSOCIATION_TIME: "AssociationTime",
|
|
603
|
+
CASE_ID: "CaseId"
|
|
604
|
+
};
|
|
595
605
|
var FieldNamespace = {
|
|
596
606
|
CUSTOM: "Custom",
|
|
597
607
|
SYSTEM: "System"
|
|
@@ -740,6 +750,17 @@ var UpdateCaseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
740
750
|
...obj.fields && { fields: obj.fields.map((item) => item) },
|
|
741
751
|
...obj.performedBy && { performedBy: UserUnionFilterSensitiveLog(obj.performedBy) }
|
|
742
752
|
}), "UpdateCaseRequestFilterSensitiveLog");
|
|
753
|
+
var SearchAllRelatedItemsResponseItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
754
|
+
...obj,
|
|
755
|
+
...obj.content && { content: RelatedItemContentFilterSensitiveLog(obj.content) },
|
|
756
|
+
...obj.performedBy && { performedBy: UserUnionFilterSensitiveLog(obj.performedBy) }
|
|
757
|
+
}), "SearchAllRelatedItemsResponseItemFilterSensitiveLog");
|
|
758
|
+
var SearchAllRelatedItemsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
759
|
+
...obj,
|
|
760
|
+
...obj.relatedItems && {
|
|
761
|
+
relatedItems: obj.relatedItems.map((item) => SearchAllRelatedItemsResponseItemFilterSensitiveLog(item))
|
|
762
|
+
}
|
|
763
|
+
}), "SearchAllRelatedItemsResponseFilterSensitiveLog");
|
|
743
764
|
var RelatedItemTypeFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
744
765
|
if (obj.contact !== void 0) return { contact: obj.contact };
|
|
745
766
|
if (obj.comment !== void 0) return { comment: obj.comment };
|
|
@@ -749,6 +770,10 @@ var RelatedItemTypeFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
749
770
|
if (obj.custom !== void 0) return { custom: obj.custom };
|
|
750
771
|
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
751
772
|
}, "RelatedItemTypeFilterFilterSensitiveLog");
|
|
773
|
+
var SearchAllRelatedItemsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
774
|
+
...obj,
|
|
775
|
+
...obj.filters && { filters: obj.filters.map((item) => RelatedItemTypeFilterFilterSensitiveLog(item)) }
|
|
776
|
+
}), "SearchAllRelatedItemsRequestFilterSensitiveLog");
|
|
752
777
|
var SearchRelatedItemsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
753
778
|
...obj,
|
|
754
779
|
...obj.filters && { filters: obj.filters.map((item) => RelatedItemTypeFilterFilterSensitiveLog(item)) }
|
|
@@ -1198,6 +1223,25 @@ var se_PutCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
1198
1223
|
b.m("PUT").h(headers).b(body);
|
|
1199
1224
|
return b.build();
|
|
1200
1225
|
}, "se_PutCaseEventConfigurationCommand");
|
|
1226
|
+
var se_SearchAllRelatedItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1227
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1228
|
+
const headers = {
|
|
1229
|
+
"content-type": "application/json"
|
|
1230
|
+
};
|
|
1231
|
+
b.bp("/domains/{domainId}/related-items-search");
|
|
1232
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
1233
|
+
let body;
|
|
1234
|
+
body = JSON.stringify(
|
|
1235
|
+
(0, import_smithy_client.take)(input, {
|
|
1236
|
+
filters: /* @__PURE__ */ __name((_) => se_RelatedItemFilterList(_, context), "filters"),
|
|
1237
|
+
maxResults: [],
|
|
1238
|
+
nextToken: [],
|
|
1239
|
+
sorts: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sorts")
|
|
1240
|
+
})
|
|
1241
|
+
);
|
|
1242
|
+
b.m("POST").h(headers).b(body);
|
|
1243
|
+
return b.build();
|
|
1244
|
+
}, "se_SearchAllRelatedItemsCommand");
|
|
1201
1245
|
var se_SearchCasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1202
1246
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1203
1247
|
const headers = {
|
|
@@ -1821,6 +1865,21 @@ var de_PutCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1821
1865
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1822
1866
|
return contents;
|
|
1823
1867
|
}, "de_PutCaseEventConfigurationCommand");
|
|
1868
|
+
var de_SearchAllRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1869
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1870
|
+
return de_CommandError(output, context);
|
|
1871
|
+
}
|
|
1872
|
+
const contents = (0, import_smithy_client.map)({
|
|
1873
|
+
$metadata: deserializeMetadata(output)
|
|
1874
|
+
});
|
|
1875
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1876
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1877
|
+
nextToken: import_smithy_client.expectString,
|
|
1878
|
+
relatedItems: /* @__PURE__ */ __name((_) => de_SearchAllRelatedItemsResponseItemList(_, context), "relatedItems")
|
|
1879
|
+
});
|
|
1880
|
+
Object.assign(contents, doc);
|
|
1881
|
+
return contents;
|
|
1882
|
+
}, "de_SearchAllRelatedItemsCommand");
|
|
1824
1883
|
var de_SearchCasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1825
1884
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1826
1885
|
return de_CommandError(output, context);
|
|
@@ -2449,6 +2508,26 @@ var de_RequiredCaseRule = /* @__PURE__ */ __name((output, context) => {
|
|
|
2449
2508
|
defaultValue: import_smithy_client.expectBoolean
|
|
2450
2509
|
});
|
|
2451
2510
|
}, "de_RequiredCaseRule");
|
|
2511
|
+
var de_SearchAllRelatedItemsResponseItem = /* @__PURE__ */ __name((output, context) => {
|
|
2512
|
+
return (0, import_smithy_client.take)(output, {
|
|
2513
|
+
associationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "associationTime"),
|
|
2514
|
+
caseId: import_smithy_client.expectString,
|
|
2515
|
+
content: /* @__PURE__ */ __name((_) => de_RelatedItemContent((0, import_core2.awsExpectUnion)(_), context), "content"),
|
|
2516
|
+
performedBy: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "performedBy"),
|
|
2517
|
+
relatedItemId: import_smithy_client.expectString,
|
|
2518
|
+
tags: /* @__PURE__ */ __name((_) => de_Tags(_, context), "tags"),
|
|
2519
|
+
type: import_smithy_client.expectString
|
|
2520
|
+
});
|
|
2521
|
+
}, "de_SearchAllRelatedItemsResponseItem");
|
|
2522
|
+
var de_SearchAllRelatedItemsResponseItemList = /* @__PURE__ */ __name((output, context) => {
|
|
2523
|
+
const retVal = (output || []).map((entry) => {
|
|
2524
|
+
if (entry === null) {
|
|
2525
|
+
return null;
|
|
2526
|
+
}
|
|
2527
|
+
return de_SearchAllRelatedItemsResponseItem(entry, context);
|
|
2528
|
+
});
|
|
2529
|
+
return retVal;
|
|
2530
|
+
}, "de_SearchAllRelatedItemsResponseItemList");
|
|
2452
2531
|
var de_SearchCasesResponseItem = /* @__PURE__ */ __name((output, context) => {
|
|
2453
2532
|
return (0, import_smithy_client.take)(output, {
|
|
2454
2533
|
caseId: import_smithy_client.expectString,
|
|
@@ -3008,6 +3087,21 @@ var PutCaseEventConfigurationCommand = class extends import_smithy_client.Comman
|
|
|
3008
3087
|
}
|
|
3009
3088
|
};
|
|
3010
3089
|
|
|
3090
|
+
// src/commands/SearchAllRelatedItemsCommand.ts
|
|
3091
|
+
|
|
3092
|
+
|
|
3093
|
+
|
|
3094
|
+
var SearchAllRelatedItemsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
3095
|
+
return [
|
|
3096
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3097
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3098
|
+
];
|
|
3099
|
+
}).s("AmazonConnectCases", "SearchAllRelatedItems", {}).n("ConnectCasesClient", "SearchAllRelatedItemsCommand").f(SearchAllRelatedItemsRequestFilterSensitiveLog, SearchAllRelatedItemsResponseFilterSensitiveLog).ser(se_SearchAllRelatedItemsCommand).de(de_SearchAllRelatedItemsCommand).build() {
|
|
3100
|
+
static {
|
|
3101
|
+
__name(this, "SearchAllRelatedItemsCommand");
|
|
3102
|
+
}
|
|
3103
|
+
};
|
|
3104
|
+
|
|
3011
3105
|
// src/commands/SearchCasesCommand.ts
|
|
3012
3106
|
|
|
3013
3107
|
|
|
@@ -3177,6 +3271,7 @@ var commands = {
|
|
|
3177
3271
|
ListTagsForResourceCommand,
|
|
3178
3272
|
ListTemplatesCommand,
|
|
3179
3273
|
PutCaseEventConfigurationCommand,
|
|
3274
|
+
SearchAllRelatedItemsCommand,
|
|
3180
3275
|
SearchCasesCommand,
|
|
3181
3276
|
SearchRelatedItemsCommand,
|
|
3182
3277
|
TagResourceCommand,
|
|
@@ -3230,6 +3325,10 @@ var paginateListLayouts = (0, import_core.createPaginator)(ConnectCasesClient, L
|
|
|
3230
3325
|
|
|
3231
3326
|
var paginateListTemplates = (0, import_core.createPaginator)(ConnectCasesClient, ListTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
3232
3327
|
|
|
3328
|
+
// src/pagination/SearchAllRelatedItemsPaginator.ts
|
|
3329
|
+
|
|
3330
|
+
var paginateSearchAllRelatedItems = (0, import_core.createPaginator)(ConnectCasesClient, SearchAllRelatedItemsCommand, "nextToken", "nextToken", "maxResults");
|
|
3331
|
+
|
|
3233
3332
|
// src/pagination/SearchCasesPaginator.ts
|
|
3234
3333
|
|
|
3235
3334
|
var paginateSearchCases = (0, import_core.createPaginator)(ConnectCasesClient, SearchCasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -3277,6 +3376,7 @@ var paginateSearchRelatedItems = (0, import_core.createPaginator)(ConnectCasesCl
|
|
|
3277
3376
|
ListTagsForResourceCommand,
|
|
3278
3377
|
ListTemplatesCommand,
|
|
3279
3378
|
PutCaseEventConfigurationCommand,
|
|
3379
|
+
SearchAllRelatedItemsCommand,
|
|
3280
3380
|
SearchCasesCommand,
|
|
3281
3381
|
SearchRelatedItemsCommand,
|
|
3282
3382
|
TagResourceCommand,
|
|
@@ -3295,6 +3395,7 @@ var paginateSearchRelatedItems = (0, import_core.createPaginator)(ConnectCasesCl
|
|
|
3295
3395
|
paginateListFields,
|
|
3296
3396
|
paginateListLayouts,
|
|
3297
3397
|
paginateListTemplates,
|
|
3398
|
+
paginateSearchAllRelatedItems,
|
|
3298
3399
|
paginateSearchCases,
|
|
3299
3400
|
paginateSearchRelatedItems,
|
|
3300
3401
|
AccessDeniedException,
|
|
@@ -3323,6 +3424,7 @@ var paginateSearchRelatedItems = (0, import_core.createPaginator)(ConnectCasesCl
|
|
|
3323
3424
|
CaseRuleDetails,
|
|
3324
3425
|
RuleType,
|
|
3325
3426
|
DomainStatus,
|
|
3427
|
+
SearchAllRelatedItemsSortProperty,
|
|
3326
3428
|
FieldNamespace,
|
|
3327
3429
|
FieldType,
|
|
3328
3430
|
Section,
|
|
@@ -3347,7 +3449,10 @@ var paginateSearchRelatedItems = (0, import_core.createPaginator)(ConnectCasesCl
|
|
|
3347
3449
|
SearchRelatedItemsResponseItemFilterSensitiveLog,
|
|
3348
3450
|
SearchRelatedItemsResponseFilterSensitiveLog,
|
|
3349
3451
|
UpdateCaseRequestFilterSensitiveLog,
|
|
3452
|
+
SearchAllRelatedItemsResponseItemFilterSensitiveLog,
|
|
3453
|
+
SearchAllRelatedItemsResponseFilterSensitiveLog,
|
|
3350
3454
|
RelatedItemTypeFilterFilterSensitiveLog,
|
|
3455
|
+
SearchAllRelatedItemsRequestFilterSensitiveLog,
|
|
3351
3456
|
SearchRelatedItemsRequestFilterSensitiveLog
|
|
3352
3457
|
});
|
|
3353
3458
|
|
package/dist-es/ConnectCases.js
CHANGED
|
@@ -31,6 +31,7 @@ import { ListLayoutsCommand } from "./commands/ListLayoutsCommand";
|
|
|
31
31
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
32
32
|
import { ListTemplatesCommand, } from "./commands/ListTemplatesCommand";
|
|
33
33
|
import { PutCaseEventConfigurationCommand, } from "./commands/PutCaseEventConfigurationCommand";
|
|
34
|
+
import { SearchAllRelatedItemsCommand, } from "./commands/SearchAllRelatedItemsCommand";
|
|
34
35
|
import { SearchCasesCommand } from "./commands/SearchCasesCommand";
|
|
35
36
|
import { SearchRelatedItemsCommand, } from "./commands/SearchRelatedItemsCommand";
|
|
36
37
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
@@ -74,6 +75,7 @@ const commands = {
|
|
|
74
75
|
ListTagsForResourceCommand,
|
|
75
76
|
ListTemplatesCommand,
|
|
76
77
|
PutCaseEventConfigurationCommand,
|
|
78
|
+
SearchAllRelatedItemsCommand,
|
|
77
79
|
SearchCasesCommand,
|
|
78
80
|
SearchRelatedItemsCommand,
|
|
79
81
|
TagResourceCommand,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { SearchAllRelatedItemsRequestFilterSensitiveLog, SearchAllRelatedItemsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_SearchAllRelatedItemsCommand, se_SearchAllRelatedItemsCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class SearchAllRelatedItemsCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AmazonConnectCases", "SearchAllRelatedItems", {})
|
|
18
|
+
.n("ConnectCasesClient", "SearchAllRelatedItemsCommand")
|
|
19
|
+
.f(SearchAllRelatedItemsRequestFilterSensitiveLog, SearchAllRelatedItemsResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_SearchAllRelatedItemsCommand)
|
|
21
|
+
.de(de_SearchAllRelatedItemsCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -30,6 +30,7 @@ export * from "./ListLayoutsCommand";
|
|
|
30
30
|
export * from "./ListTagsForResourceCommand";
|
|
31
31
|
export * from "./ListTemplatesCommand";
|
|
32
32
|
export * from "./PutCaseEventConfigurationCommand";
|
|
33
|
+
export * from "./SearchAllRelatedItemsCommand";
|
|
33
34
|
export * from "./SearchCasesCommand";
|
|
34
35
|
export * from "./SearchRelatedItemsCommand";
|
|
35
36
|
export * from "./TagResourceCommand";
|
|
@@ -273,6 +273,10 @@ export const DomainStatus = {
|
|
|
273
273
|
CREATION_FAILED: "CreationFailed",
|
|
274
274
|
CREATION_IN_PROGRESS: "CreationInProgress",
|
|
275
275
|
};
|
|
276
|
+
export const SearchAllRelatedItemsSortProperty = {
|
|
277
|
+
ASSOCIATION_TIME: "AssociationTime",
|
|
278
|
+
CASE_ID: "CaseId",
|
|
279
|
+
};
|
|
276
280
|
export const FieldNamespace = {
|
|
277
281
|
CUSTOM: "Custom",
|
|
278
282
|
SYSTEM: "System",
|
|
@@ -455,6 +459,17 @@ export const UpdateCaseRequestFilterSensitiveLog = (obj) => ({
|
|
|
455
459
|
...(obj.fields && { fields: obj.fields.map((item) => item) }),
|
|
456
460
|
...(obj.performedBy && { performedBy: UserUnionFilterSensitiveLog(obj.performedBy) }),
|
|
457
461
|
});
|
|
462
|
+
export const SearchAllRelatedItemsResponseItemFilterSensitiveLog = (obj) => ({
|
|
463
|
+
...obj,
|
|
464
|
+
...(obj.content && { content: RelatedItemContentFilterSensitiveLog(obj.content) }),
|
|
465
|
+
...(obj.performedBy && { performedBy: UserUnionFilterSensitiveLog(obj.performedBy) }),
|
|
466
|
+
});
|
|
467
|
+
export const SearchAllRelatedItemsResponseFilterSensitiveLog = (obj) => ({
|
|
468
|
+
...obj,
|
|
469
|
+
...(obj.relatedItems && {
|
|
470
|
+
relatedItems: obj.relatedItems.map((item) => SearchAllRelatedItemsResponseItemFilterSensitiveLog(item)),
|
|
471
|
+
}),
|
|
472
|
+
});
|
|
458
473
|
export const RelatedItemTypeFilterFilterSensitiveLog = (obj) => {
|
|
459
474
|
if (obj.contact !== undefined)
|
|
460
475
|
return { contact: obj.contact };
|
|
@@ -471,6 +486,10 @@ export const RelatedItemTypeFilterFilterSensitiveLog = (obj) => {
|
|
|
471
486
|
if (obj.$unknown !== undefined)
|
|
472
487
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
473
488
|
};
|
|
489
|
+
export const SearchAllRelatedItemsRequestFilterSensitiveLog = (obj) => ({
|
|
490
|
+
...obj,
|
|
491
|
+
...(obj.filters && { filters: obj.filters.map((item) => RelatedItemTypeFilterFilterSensitiveLog(item)) }),
|
|
492
|
+
});
|
|
474
493
|
export const SearchRelatedItemsRequestFilterSensitiveLog = (obj) => ({
|
|
475
494
|
...obj,
|
|
476
495
|
...(obj.filters && { filters: obj.filters.map((item) => RelatedItemTypeFilterFilterSensitiveLog(item)) }),
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { SearchAllRelatedItemsCommand, } from "../commands/SearchAllRelatedItemsCommand";
|
|
3
|
+
import { ConnectCasesClient } from "../ConnectCasesClient";
|
|
4
|
+
export const paginateSearchAllRelatedItems = createPaginator(ConnectCasesClient, SearchAllRelatedItemsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -8,5 +8,6 @@ export * from "./ListFieldOptionsPaginator";
|
|
|
8
8
|
export * from "./ListFieldsPaginator";
|
|
9
9
|
export * from "./ListLayoutsPaginator";
|
|
10
10
|
export * from "./ListTemplatesPaginator";
|
|
11
|
+
export * from "./SearchAllRelatedItemsPaginator";
|
|
11
12
|
export * from "./SearchCasesPaginator";
|
|
12
13
|
export * from "./SearchRelatedItemsPaginator";
|
|
@@ -419,6 +419,23 @@ export const se_PutCaseEventConfigurationCommand = async (input, context) => {
|
|
|
419
419
|
b.m("PUT").h(headers).b(body);
|
|
420
420
|
return b.build();
|
|
421
421
|
};
|
|
422
|
+
export const se_SearchAllRelatedItemsCommand = async (input, context) => {
|
|
423
|
+
const b = rb(input, context);
|
|
424
|
+
const headers = {
|
|
425
|
+
"content-type": "application/json",
|
|
426
|
+
};
|
|
427
|
+
b.bp("/domains/{domainId}/related-items-search");
|
|
428
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
429
|
+
let body;
|
|
430
|
+
body = JSON.stringify(take(input, {
|
|
431
|
+
filters: (_) => se_RelatedItemFilterList(_, context),
|
|
432
|
+
maxResults: [],
|
|
433
|
+
nextToken: [],
|
|
434
|
+
sorts: (_) => _json(_),
|
|
435
|
+
}));
|
|
436
|
+
b.m("POST").h(headers).b(body);
|
|
437
|
+
return b.build();
|
|
438
|
+
};
|
|
422
439
|
export const se_SearchCasesCommand = async (input, context) => {
|
|
423
440
|
const b = rb(input, context);
|
|
424
441
|
const headers = {
|
|
@@ -1026,6 +1043,21 @@ export const de_PutCaseEventConfigurationCommand = async (output, context) => {
|
|
|
1026
1043
|
await collectBody(output.body, context);
|
|
1027
1044
|
return contents;
|
|
1028
1045
|
};
|
|
1046
|
+
export const de_SearchAllRelatedItemsCommand = async (output, context) => {
|
|
1047
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1048
|
+
return de_CommandError(output, context);
|
|
1049
|
+
}
|
|
1050
|
+
const contents = map({
|
|
1051
|
+
$metadata: deserializeMetadata(output),
|
|
1052
|
+
});
|
|
1053
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1054
|
+
const doc = take(data, {
|
|
1055
|
+
nextToken: __expectString,
|
|
1056
|
+
relatedItems: (_) => de_SearchAllRelatedItemsResponseItemList(_, context),
|
|
1057
|
+
});
|
|
1058
|
+
Object.assign(contents, doc);
|
|
1059
|
+
return contents;
|
|
1060
|
+
};
|
|
1029
1061
|
export const de_SearchCasesCommand = async (output, context) => {
|
|
1030
1062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
1063
|
return de_CommandError(output, context);
|
|
@@ -1674,6 +1706,26 @@ const de_RequiredCaseRule = (output, context) => {
|
|
|
1674
1706
|
defaultValue: __expectBoolean,
|
|
1675
1707
|
});
|
|
1676
1708
|
};
|
|
1709
|
+
const de_SearchAllRelatedItemsResponseItem = (output, context) => {
|
|
1710
|
+
return take(output, {
|
|
1711
|
+
associationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1712
|
+
caseId: __expectString,
|
|
1713
|
+
content: (_) => de_RelatedItemContent(__expectUnion(_), context),
|
|
1714
|
+
performedBy: (_) => _json(__expectUnion(_)),
|
|
1715
|
+
relatedItemId: __expectString,
|
|
1716
|
+
tags: (_) => de_Tags(_, context),
|
|
1717
|
+
type: __expectString,
|
|
1718
|
+
});
|
|
1719
|
+
};
|
|
1720
|
+
const de_SearchAllRelatedItemsResponseItemList = (output, context) => {
|
|
1721
|
+
const retVal = (output || []).map((entry) => {
|
|
1722
|
+
if (entry === null) {
|
|
1723
|
+
return null;
|
|
1724
|
+
}
|
|
1725
|
+
return de_SearchAllRelatedItemsResponseItem(entry, context);
|
|
1726
|
+
});
|
|
1727
|
+
return retVal;
|
|
1728
|
+
};
|
|
1677
1729
|
const de_SearchCasesResponseItem = (output, context) => {
|
|
1678
1730
|
return take(output, {
|
|
1679
1731
|
caseId: __expectString,
|
|
@@ -31,6 +31,7 @@ import { ListLayoutsCommandInput, ListLayoutsCommandOutput } from "./commands/Li
|
|
|
31
31
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
32
32
|
import { ListTemplatesCommandInput, ListTemplatesCommandOutput } from "./commands/ListTemplatesCommand";
|
|
33
33
|
import { PutCaseEventConfigurationCommandInput, PutCaseEventConfigurationCommandOutput } from "./commands/PutCaseEventConfigurationCommand";
|
|
34
|
+
import { SearchAllRelatedItemsCommandInput, SearchAllRelatedItemsCommandOutput } from "./commands/SearchAllRelatedItemsCommand";
|
|
34
35
|
import { SearchCasesCommandInput, SearchCasesCommandOutput } from "./commands/SearchCasesCommand";
|
|
35
36
|
import { SearchRelatedItemsCommandInput, SearchRelatedItemsCommandOutput } from "./commands/SearchRelatedItemsCommand";
|
|
36
37
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
@@ -235,6 +236,12 @@ export interface ConnectCases {
|
|
|
235
236
|
putCaseEventConfiguration(args: PutCaseEventConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<PutCaseEventConfigurationCommandOutput>;
|
|
236
237
|
putCaseEventConfiguration(args: PutCaseEventConfigurationCommandInput, cb: (err: any, data?: PutCaseEventConfigurationCommandOutput) => void): void;
|
|
237
238
|
putCaseEventConfiguration(args: PutCaseEventConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutCaseEventConfigurationCommandOutput) => void): void;
|
|
239
|
+
/**
|
|
240
|
+
* @see {@link SearchAllRelatedItemsCommand}
|
|
241
|
+
*/
|
|
242
|
+
searchAllRelatedItems(args: SearchAllRelatedItemsCommandInput, options?: __HttpHandlerOptions): Promise<SearchAllRelatedItemsCommandOutput>;
|
|
243
|
+
searchAllRelatedItems(args: SearchAllRelatedItemsCommandInput, cb: (err: any, data?: SearchAllRelatedItemsCommandOutput) => void): void;
|
|
244
|
+
searchAllRelatedItems(args: SearchAllRelatedItemsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchAllRelatedItemsCommandOutput) => void): void;
|
|
238
245
|
/**
|
|
239
246
|
* @see {@link SearchCasesCommand}
|
|
240
247
|
*/
|
|
@@ -39,6 +39,7 @@ import { ListLayoutsCommandInput, ListLayoutsCommandOutput } from "./commands/Li
|
|
|
39
39
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
40
40
|
import { ListTemplatesCommandInput, ListTemplatesCommandOutput } from "./commands/ListTemplatesCommand";
|
|
41
41
|
import { PutCaseEventConfigurationCommandInput, PutCaseEventConfigurationCommandOutput } from "./commands/PutCaseEventConfigurationCommand";
|
|
42
|
+
import { SearchAllRelatedItemsCommandInput, SearchAllRelatedItemsCommandOutput } from "./commands/SearchAllRelatedItemsCommand";
|
|
42
43
|
import { SearchCasesCommandInput, SearchCasesCommandOutput } from "./commands/SearchCasesCommand";
|
|
43
44
|
import { SearchRelatedItemsCommandInput, SearchRelatedItemsCommandOutput } from "./commands/SearchRelatedItemsCommand";
|
|
44
45
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
@@ -54,11 +55,11 @@ export { __Client };
|
|
|
54
55
|
/**
|
|
55
56
|
* @public
|
|
56
57
|
*/
|
|
57
|
-
export type ServiceInputTypes = BatchGetCaseRuleCommandInput | BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateCaseRuleCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | DeleteCaseCommandInput | DeleteCaseRuleCommandInput | DeleteDomainCommandInput | DeleteFieldCommandInput | DeleteLayoutCommandInput | DeleteRelatedItemCommandInput | DeleteTemplateCommandInput | GetCaseAuditEventsCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCaseRulesCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateCaseRuleCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
|
|
58
|
+
export type ServiceInputTypes = BatchGetCaseRuleCommandInput | BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateCaseRuleCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | DeleteCaseCommandInput | DeleteCaseRuleCommandInput | DeleteDomainCommandInput | DeleteFieldCommandInput | DeleteLayoutCommandInput | DeleteRelatedItemCommandInput | DeleteTemplateCommandInput | GetCaseAuditEventsCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCaseRulesCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchAllRelatedItemsCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateCaseRuleCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
|
|
58
59
|
/**
|
|
59
60
|
* @public
|
|
60
61
|
*/
|
|
61
|
-
export type ServiceOutputTypes = BatchGetCaseRuleCommandOutput | BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateCaseRuleCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | DeleteCaseCommandOutput | DeleteCaseRuleCommandOutput | DeleteDomainCommandOutput | DeleteFieldCommandOutput | DeleteLayoutCommandOutput | DeleteRelatedItemCommandOutput | DeleteTemplateCommandOutput | GetCaseAuditEventsCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCaseRulesCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateCaseRuleCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
|
|
62
|
+
export type ServiceOutputTypes = BatchGetCaseRuleCommandOutput | BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateCaseRuleCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | DeleteCaseCommandOutput | DeleteCaseRuleCommandOutput | DeleteDomainCommandOutput | DeleteFieldCommandOutput | DeleteLayoutCommandOutput | DeleteRelatedItemCommandOutput | DeleteTemplateCommandOutput | GetCaseAuditEventsCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCaseRulesCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchAllRelatedItemsCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateCaseRuleCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
|
|
62
63
|
/**
|
|
63
64
|
* @public
|
|
64
65
|
*/
|