@aws-sdk/client-connectcases 3.738.0 → 3.743.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 +54 -0
- package/dist-cjs/index.js +410 -1
- package/dist-es/ConnectCases.js +10 -0
- package/dist-es/commands/BatchGetCaseRuleCommand.js +22 -0
- package/dist-es/commands/CreateCaseRuleCommand.js +22 -0
- package/dist-es/commands/DeleteCaseRuleCommand.js +22 -0
- package/dist-es/commands/ListCaseRulesCommand.js +22 -0
- package/dist-es/commands/UpdateCaseRuleCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +43 -0
- package/dist-es/pagination/ListCaseRulesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +261 -1
- package/dist-types/ConnectCases.d.ts +50 -1
- package/dist-types/ConnectCasesClient.d.ts +22 -3
- package/dist-types/commands/BatchGetCaseRuleCommand.d.ts +148 -0
- package/dist-types/commands/CreateCaseCommand.d.ts +0 -1
- package/dist-types/commands/CreateCaseRuleCommand.d.ts +135 -0
- package/dist-types/commands/CreateRelatedItemCommand.d.ts +3 -1
- package/dist-types/commands/CreateTemplateCommand.d.ts +29 -0
- package/dist-types/commands/DeleteCaseRuleCommand.d.ts +91 -0
- package/dist-types/commands/DeleteDomainCommand.d.ts +0 -1
- package/dist-types/commands/DeleteFieldCommand.d.ts +18 -15
- package/dist-types/commands/DeleteLayoutCommand.d.ts +3 -2
- package/dist-types/commands/GetTemplateCommand.d.ts +29 -1
- package/dist-types/commands/ListCaseRulesCommand.d.ts +101 -0
- package/dist-types/commands/ListTemplatesCommand.d.ts +23 -0
- package/dist-types/commands/UpdateCaseCommand.d.ts +0 -1
- package/dist-types/commands/UpdateCaseRuleCommand.d.ts +129 -0
- package/dist-types/commands/UpdateTemplateCommand.d.ts +29 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/index.d.ts +15 -1
- package/dist-types/models/models_0.d.ts +573 -1
- package/dist-types/pagination/ListCaseRulesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/ConnectCases.d.ts +85 -0
- package/dist-types/ts3.4/ConnectCasesClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/BatchGetCaseRuleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateCaseRuleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteCaseRuleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListCaseRulesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateCaseRuleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +199 -0
- package/dist-types/ts3.4/pagination/ListCaseRulesPaginator.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 +60 -0
- package/package.json +5 -5
package/dist-es/ConnectCases.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { BatchGetCaseRuleCommand, } from "./commands/BatchGetCaseRuleCommand";
|
|
2
3
|
import { BatchGetFieldCommand, } from "./commands/BatchGetFieldCommand";
|
|
3
4
|
import { BatchPutFieldOptionsCommand, } from "./commands/BatchPutFieldOptionsCommand";
|
|
4
5
|
import { CreateCaseCommand } from "./commands/CreateCaseCommand";
|
|
6
|
+
import { CreateCaseRuleCommand, } from "./commands/CreateCaseRuleCommand";
|
|
5
7
|
import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
|
|
6
8
|
import { CreateFieldCommand } from "./commands/CreateFieldCommand";
|
|
7
9
|
import { CreateLayoutCommand, } from "./commands/CreateLayoutCommand";
|
|
8
10
|
import { CreateRelatedItemCommand, } from "./commands/CreateRelatedItemCommand";
|
|
9
11
|
import { CreateTemplateCommand, } from "./commands/CreateTemplateCommand";
|
|
12
|
+
import { DeleteCaseRuleCommand, } from "./commands/DeleteCaseRuleCommand";
|
|
10
13
|
import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
|
|
11
14
|
import { DeleteFieldCommand } from "./commands/DeleteFieldCommand";
|
|
12
15
|
import { DeleteLayoutCommand, } from "./commands/DeleteLayoutCommand";
|
|
@@ -17,6 +20,7 @@ import { GetCaseEventConfigurationCommand, } from "./commands/GetCaseEventConfig
|
|
|
17
20
|
import { GetDomainCommand } from "./commands/GetDomainCommand";
|
|
18
21
|
import { GetLayoutCommand } from "./commands/GetLayoutCommand";
|
|
19
22
|
import { GetTemplateCommand } from "./commands/GetTemplateCommand";
|
|
23
|
+
import { ListCaseRulesCommand, } from "./commands/ListCaseRulesCommand";
|
|
20
24
|
import { ListCasesForContactCommand, } from "./commands/ListCasesForContactCommand";
|
|
21
25
|
import { ListDomainsCommand } from "./commands/ListDomainsCommand";
|
|
22
26
|
import { ListFieldOptionsCommand, } from "./commands/ListFieldOptionsCommand";
|
|
@@ -30,19 +34,23 @@ import { SearchRelatedItemsCommand, } from "./commands/SearchRelatedItemsCommand
|
|
|
30
34
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
31
35
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
32
36
|
import { UpdateCaseCommand } from "./commands/UpdateCaseCommand";
|
|
37
|
+
import { UpdateCaseRuleCommand, } from "./commands/UpdateCaseRuleCommand";
|
|
33
38
|
import { UpdateFieldCommand } from "./commands/UpdateFieldCommand";
|
|
34
39
|
import { UpdateLayoutCommand, } from "./commands/UpdateLayoutCommand";
|
|
35
40
|
import { UpdateTemplateCommand, } from "./commands/UpdateTemplateCommand";
|
|
36
41
|
import { ConnectCasesClient } from "./ConnectCasesClient";
|
|
37
42
|
const commands = {
|
|
43
|
+
BatchGetCaseRuleCommand,
|
|
38
44
|
BatchGetFieldCommand,
|
|
39
45
|
BatchPutFieldOptionsCommand,
|
|
40
46
|
CreateCaseCommand,
|
|
47
|
+
CreateCaseRuleCommand,
|
|
41
48
|
CreateDomainCommand,
|
|
42
49
|
CreateFieldCommand,
|
|
43
50
|
CreateLayoutCommand,
|
|
44
51
|
CreateRelatedItemCommand,
|
|
45
52
|
CreateTemplateCommand,
|
|
53
|
+
DeleteCaseRuleCommand,
|
|
46
54
|
DeleteDomainCommand,
|
|
47
55
|
DeleteFieldCommand,
|
|
48
56
|
DeleteLayoutCommand,
|
|
@@ -53,6 +61,7 @@ const commands = {
|
|
|
53
61
|
GetDomainCommand,
|
|
54
62
|
GetLayoutCommand,
|
|
55
63
|
GetTemplateCommand,
|
|
64
|
+
ListCaseRulesCommand,
|
|
56
65
|
ListCasesForContactCommand,
|
|
57
66
|
ListDomainsCommand,
|
|
58
67
|
ListFieldOptionsCommand,
|
|
@@ -66,6 +75,7 @@ const commands = {
|
|
|
66
75
|
TagResourceCommand,
|
|
67
76
|
UntagResourceCommand,
|
|
68
77
|
UpdateCaseCommand,
|
|
78
|
+
UpdateCaseRuleCommand,
|
|
69
79
|
UpdateFieldCommand,
|
|
70
80
|
UpdateLayoutCommand,
|
|
71
81
|
UpdateTemplateCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { de_BatchGetCaseRuleCommand, se_BatchGetCaseRuleCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchGetCaseRuleCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonConnectCases", "BatchGetCaseRule", {})
|
|
17
|
+
.n("ConnectCasesClient", "BatchGetCaseRuleCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchGetCaseRuleCommand)
|
|
20
|
+
.de(de_BatchGetCaseRuleCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { de_CreateCaseRuleCommand, se_CreateCaseRuleCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateCaseRuleCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonConnectCases", "CreateCaseRule", {})
|
|
17
|
+
.n("ConnectCasesClient", "CreateCaseRuleCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_CreateCaseRuleCommand)
|
|
20
|
+
.de(de_CreateCaseRuleCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { de_DeleteCaseRuleCommand, se_DeleteCaseRuleCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteCaseRuleCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonConnectCases", "DeleteCaseRule", {})
|
|
17
|
+
.n("ConnectCasesClient", "DeleteCaseRuleCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DeleteCaseRuleCommand)
|
|
20
|
+
.de(de_DeleteCaseRuleCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { de_ListCaseRulesCommand, se_ListCaseRulesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListCaseRulesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonConnectCases", "ListCaseRules", {})
|
|
17
|
+
.n("ConnectCasesClient", "ListCaseRulesCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListCaseRulesCommand)
|
|
20
|
+
.de(de_ListCaseRulesCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { de_UpdateCaseRuleCommand, se_UpdateCaseRuleCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateCaseRuleCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonConnectCases", "UpdateCaseRule", {})
|
|
17
|
+
.n("ConnectCasesClient", "UpdateCaseRuleCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateCaseRuleCommand)
|
|
20
|
+
.de(de_UpdateCaseRuleCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
export * from "./BatchGetCaseRuleCommand";
|
|
1
2
|
export * from "./BatchGetFieldCommand";
|
|
2
3
|
export * from "./BatchPutFieldOptionsCommand";
|
|
3
4
|
export * from "./CreateCaseCommand";
|
|
5
|
+
export * from "./CreateCaseRuleCommand";
|
|
4
6
|
export * from "./CreateDomainCommand";
|
|
5
7
|
export * from "./CreateFieldCommand";
|
|
6
8
|
export * from "./CreateLayoutCommand";
|
|
7
9
|
export * from "./CreateRelatedItemCommand";
|
|
8
10
|
export * from "./CreateTemplateCommand";
|
|
11
|
+
export * from "./DeleteCaseRuleCommand";
|
|
9
12
|
export * from "./DeleteDomainCommand";
|
|
10
13
|
export * from "./DeleteFieldCommand";
|
|
11
14
|
export * from "./DeleteLayoutCommand";
|
|
@@ -16,6 +19,7 @@ export * from "./GetCaseEventConfigurationCommand";
|
|
|
16
19
|
export * from "./GetDomainCommand";
|
|
17
20
|
export * from "./GetLayoutCommand";
|
|
18
21
|
export * from "./GetTemplateCommand";
|
|
22
|
+
export * from "./ListCaseRulesCommand";
|
|
19
23
|
export * from "./ListCasesForContactCommand";
|
|
20
24
|
export * from "./ListDomainsCommand";
|
|
21
25
|
export * from "./ListFieldOptionsCommand";
|
|
@@ -29,6 +33,7 @@ export * from "./SearchRelatedItemsCommand";
|
|
|
29
33
|
export * from "./TagResourceCommand";
|
|
30
34
|
export * from "./UntagResourceCommand";
|
|
31
35
|
export * from "./UpdateCaseCommand";
|
|
36
|
+
export * from "./UpdateCaseRuleCommand";
|
|
32
37
|
export * from "./UpdateFieldCommand";
|
|
33
38
|
export * from "./UpdateLayoutCommand";
|
|
34
39
|
export * from "./UpdateTemplateCommand";
|
|
@@ -202,6 +202,49 @@ export const Order = {
|
|
|
202
202
|
ASCENDING: "Asc",
|
|
203
203
|
DESCENDING: "Desc",
|
|
204
204
|
};
|
|
205
|
+
export var OperandOne;
|
|
206
|
+
(function (OperandOne) {
|
|
207
|
+
OperandOne.visit = (value, visitor) => {
|
|
208
|
+
if (value.fieldId !== undefined)
|
|
209
|
+
return visitor.fieldId(value.fieldId);
|
|
210
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
211
|
+
};
|
|
212
|
+
})(OperandOne || (OperandOne = {}));
|
|
213
|
+
export var OperandTwo;
|
|
214
|
+
(function (OperandTwo) {
|
|
215
|
+
OperandTwo.visit = (value, visitor) => {
|
|
216
|
+
if (value.stringValue !== undefined)
|
|
217
|
+
return visitor.stringValue(value.stringValue);
|
|
218
|
+
if (value.booleanValue !== undefined)
|
|
219
|
+
return visitor.booleanValue(value.booleanValue);
|
|
220
|
+
if (value.doubleValue !== undefined)
|
|
221
|
+
return visitor.doubleValue(value.doubleValue);
|
|
222
|
+
if (value.emptyValue !== undefined)
|
|
223
|
+
return visitor.emptyValue(value.emptyValue);
|
|
224
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
225
|
+
};
|
|
226
|
+
})(OperandTwo || (OperandTwo = {}));
|
|
227
|
+
export var BooleanCondition;
|
|
228
|
+
(function (BooleanCondition) {
|
|
229
|
+
BooleanCondition.visit = (value, visitor) => {
|
|
230
|
+
if (value.equalTo !== undefined)
|
|
231
|
+
return visitor.equalTo(value.equalTo);
|
|
232
|
+
if (value.notEqualTo !== undefined)
|
|
233
|
+
return visitor.notEqualTo(value.notEqualTo);
|
|
234
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
235
|
+
};
|
|
236
|
+
})(BooleanCondition || (BooleanCondition = {}));
|
|
237
|
+
export var CaseRuleDetails;
|
|
238
|
+
(function (CaseRuleDetails) {
|
|
239
|
+
CaseRuleDetails.visit = (value, visitor) => {
|
|
240
|
+
if (value.required !== undefined)
|
|
241
|
+
return visitor.required(value.required);
|
|
242
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
243
|
+
};
|
|
244
|
+
})(CaseRuleDetails || (CaseRuleDetails = {}));
|
|
245
|
+
export const RuleType = {
|
|
246
|
+
REQUIRED: "Required",
|
|
247
|
+
};
|
|
205
248
|
export const DomainStatus = {
|
|
206
249
|
ACTIVE: "Active",
|
|
207
250
|
CREATION_FAILED: "CreationFailed",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListCaseRulesCommand, } from "../commands/ListCaseRulesCommand";
|
|
3
|
+
import { ConnectCasesClient } from "../ConnectCasesClient";
|
|
4
|
+
export const paginateListCaseRules = createPaginator(ConnectCasesClient, ListCaseRulesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./GetCaseAuditEventsPaginator";
|
|
2
2
|
export * from "./GetCasePaginator";
|
|
3
3
|
export * from "./Interfaces";
|
|
4
|
+
export * from "./ListCaseRulesPaginator";
|
|
4
5
|
export * from "./ListCasesForContactPaginator";
|
|
5
6
|
export * from "./ListDomainsPaginator";
|
|
6
7
|
export * from "./ListFieldOptionsPaginator";
|
|
@@ -3,7 +3,21 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { ConnectCasesServiceException as __BaseException } from "../models/ConnectCasesServiceException";
|
|
6
|
-
import { AccessDeniedException, CaseFilter, ConflictException, FieldFilter, FieldValueUnion, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
+
import { AccessDeniedException, BooleanCondition, CaseFilter, CaseRuleDetails, ConflictException, FieldFilter, FieldValueUnion, InternalServerException, OperandTwo, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
+
export const se_BatchGetCaseRuleCommand = async (input, context) => {
|
|
8
|
+
const b = rb(input, context);
|
|
9
|
+
const headers = {
|
|
10
|
+
"content-type": "application/json",
|
|
11
|
+
};
|
|
12
|
+
b.bp("/domains/{domainId}/rules-batch");
|
|
13
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify(take(input, {
|
|
16
|
+
caseRules: (_) => _json(_),
|
|
17
|
+
}));
|
|
18
|
+
b.m("POST").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
20
|
+
};
|
|
7
21
|
export const se_BatchGetFieldCommand = async (input, context) => {
|
|
8
22
|
const b = rb(input, context);
|
|
9
23
|
const headers = {
|
|
@@ -50,6 +64,22 @@ export const se_CreateCaseCommand = async (input, context) => {
|
|
|
50
64
|
b.m("POST").h(headers).b(body);
|
|
51
65
|
return b.build();
|
|
52
66
|
};
|
|
67
|
+
export const se_CreateCaseRuleCommand = async (input, context) => {
|
|
68
|
+
const b = rb(input, context);
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/json",
|
|
71
|
+
};
|
|
72
|
+
b.bp("/domains/{domainId}/case-rules");
|
|
73
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(take(input, {
|
|
76
|
+
description: [],
|
|
77
|
+
name: [],
|
|
78
|
+
rule: (_) => se_CaseRuleDetails(_, context),
|
|
79
|
+
}));
|
|
80
|
+
b.m("POST").h(headers).b(body);
|
|
81
|
+
return b.build();
|
|
82
|
+
};
|
|
53
83
|
export const se_CreateDomainCommand = async (input, context) => {
|
|
54
84
|
const b = rb(input, context);
|
|
55
85
|
const headers = {
|
|
@@ -124,11 +154,22 @@ export const se_CreateTemplateCommand = async (input, context) => {
|
|
|
124
154
|
layoutConfiguration: (_) => _json(_),
|
|
125
155
|
name: [],
|
|
126
156
|
requiredFields: (_) => _json(_),
|
|
157
|
+
rules: (_) => _json(_),
|
|
127
158
|
status: [],
|
|
128
159
|
}));
|
|
129
160
|
b.m("POST").h(headers).b(body);
|
|
130
161
|
return b.build();
|
|
131
162
|
};
|
|
163
|
+
export const se_DeleteCaseRuleCommand = async (input, context) => {
|
|
164
|
+
const b = rb(input, context);
|
|
165
|
+
const headers = {};
|
|
166
|
+
b.bp("/domains/{domainId}/case-rules/{caseRuleId}");
|
|
167
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
168
|
+
b.p("caseRuleId", () => input.caseRuleId, "{caseRuleId}", false);
|
|
169
|
+
let body;
|
|
170
|
+
b.m("DELETE").h(headers).b(body);
|
|
171
|
+
return b.build();
|
|
172
|
+
};
|
|
132
173
|
export const se_DeleteDomainCommand = async (input, context) => {
|
|
133
174
|
const b = rb(input, context);
|
|
134
175
|
const headers = {};
|
|
@@ -238,6 +279,19 @@ export const se_GetTemplateCommand = async (input, context) => {
|
|
|
238
279
|
b.m("POST").h(headers).b(body);
|
|
239
280
|
return b.build();
|
|
240
281
|
};
|
|
282
|
+
export const se_ListCaseRulesCommand = async (input, context) => {
|
|
283
|
+
const b = rb(input, context);
|
|
284
|
+
const headers = {};
|
|
285
|
+
b.bp("/domains/{domainId}/rules-list");
|
|
286
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
287
|
+
const query = map({
|
|
288
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
289
|
+
[_nT]: [, input[_nT]],
|
|
290
|
+
});
|
|
291
|
+
let body;
|
|
292
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
293
|
+
return b.build();
|
|
294
|
+
};
|
|
241
295
|
export const se_ListCasesForContactCommand = async (input, context) => {
|
|
242
296
|
const b = rb(input, context);
|
|
243
297
|
const headers = {
|
|
@@ -422,6 +476,23 @@ export const se_UpdateCaseCommand = async (input, context) => {
|
|
|
422
476
|
b.m("PUT").h(headers).b(body);
|
|
423
477
|
return b.build();
|
|
424
478
|
};
|
|
479
|
+
export const se_UpdateCaseRuleCommand = async (input, context) => {
|
|
480
|
+
const b = rb(input, context);
|
|
481
|
+
const headers = {
|
|
482
|
+
"content-type": "application/json",
|
|
483
|
+
};
|
|
484
|
+
b.bp("/domains/{domainId}/case-rules/{caseRuleId}");
|
|
485
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
486
|
+
b.p("caseRuleId", () => input.caseRuleId, "{caseRuleId}", false);
|
|
487
|
+
let body;
|
|
488
|
+
body = JSON.stringify(take(input, {
|
|
489
|
+
description: [],
|
|
490
|
+
name: [],
|
|
491
|
+
rule: (_) => se_CaseRuleDetails(_, context),
|
|
492
|
+
}));
|
|
493
|
+
b.m("PUT").h(headers).b(body);
|
|
494
|
+
return b.build();
|
|
495
|
+
};
|
|
425
496
|
export const se_UpdateFieldCommand = async (input, context) => {
|
|
426
497
|
const b = rb(input, context);
|
|
427
498
|
const headers = {
|
|
@@ -468,11 +539,27 @@ export const se_UpdateTemplateCommand = async (input, context) => {
|
|
|
468
539
|
layoutConfiguration: (_) => _json(_),
|
|
469
540
|
name: [],
|
|
470
541
|
requiredFields: (_) => _json(_),
|
|
542
|
+
rules: (_) => _json(_),
|
|
471
543
|
status: [],
|
|
472
544
|
}));
|
|
473
545
|
b.m("PUT").h(headers).b(body);
|
|
474
546
|
return b.build();
|
|
475
547
|
};
|
|
548
|
+
export const de_BatchGetCaseRuleCommand = async (output, context) => {
|
|
549
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
550
|
+
return de_CommandError(output, context);
|
|
551
|
+
}
|
|
552
|
+
const contents = map({
|
|
553
|
+
$metadata: deserializeMetadata(output),
|
|
554
|
+
});
|
|
555
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
556
|
+
const doc = take(data, {
|
|
557
|
+
caseRules: (_) => de_BatchGetCaseRuleList(_, context),
|
|
558
|
+
errors: _json,
|
|
559
|
+
});
|
|
560
|
+
Object.assign(contents, doc);
|
|
561
|
+
return contents;
|
|
562
|
+
};
|
|
476
563
|
export const de_BatchGetFieldCommand = async (output, context) => {
|
|
477
564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
478
565
|
return de_CommandError(output, context);
|
|
@@ -517,6 +604,21 @@ export const de_CreateCaseCommand = async (output, context) => {
|
|
|
517
604
|
Object.assign(contents, doc);
|
|
518
605
|
return contents;
|
|
519
606
|
};
|
|
607
|
+
export const de_CreateCaseRuleCommand = async (output, context) => {
|
|
608
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
609
|
+
return de_CommandError(output, context);
|
|
610
|
+
}
|
|
611
|
+
const contents = map({
|
|
612
|
+
$metadata: deserializeMetadata(output),
|
|
613
|
+
});
|
|
614
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
615
|
+
const doc = take(data, {
|
|
616
|
+
caseRuleArn: __expectString,
|
|
617
|
+
caseRuleId: __expectString,
|
|
618
|
+
});
|
|
619
|
+
Object.assign(contents, doc);
|
|
620
|
+
return contents;
|
|
621
|
+
};
|
|
520
622
|
export const de_CreateDomainCommand = async (output, context) => {
|
|
521
623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
522
624
|
return de_CommandError(output, context);
|
|
@@ -593,6 +695,16 @@ export const de_CreateTemplateCommand = async (output, context) => {
|
|
|
593
695
|
Object.assign(contents, doc);
|
|
594
696
|
return contents;
|
|
595
697
|
};
|
|
698
|
+
export const de_DeleteCaseRuleCommand = async (output, context) => {
|
|
699
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
+
return de_CommandError(output, context);
|
|
701
|
+
}
|
|
702
|
+
const contents = map({
|
|
703
|
+
$metadata: deserializeMetadata(output),
|
|
704
|
+
});
|
|
705
|
+
await collectBody(output.body, context);
|
|
706
|
+
return contents;
|
|
707
|
+
};
|
|
596
708
|
export const de_DeleteDomainCommand = async (output, context) => {
|
|
597
709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
710
|
return de_CommandError(output, context);
|
|
@@ -735,6 +847,7 @@ export const de_GetTemplateCommand = async (output, context) => {
|
|
|
735
847
|
layoutConfiguration: _json,
|
|
736
848
|
name: __expectString,
|
|
737
849
|
requiredFields: _json,
|
|
850
|
+
rules: _json,
|
|
738
851
|
status: __expectString,
|
|
739
852
|
tags: (_) => de_Tags(_, context),
|
|
740
853
|
templateArn: __expectString,
|
|
@@ -743,6 +856,21 @@ export const de_GetTemplateCommand = async (output, context) => {
|
|
|
743
856
|
Object.assign(contents, doc);
|
|
744
857
|
return contents;
|
|
745
858
|
};
|
|
859
|
+
export const de_ListCaseRulesCommand = async (output, context) => {
|
|
860
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
+
return de_CommandError(output, context);
|
|
862
|
+
}
|
|
863
|
+
const contents = map({
|
|
864
|
+
$metadata: deserializeMetadata(output),
|
|
865
|
+
});
|
|
866
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
867
|
+
const doc = take(data, {
|
|
868
|
+
caseRules: _json,
|
|
869
|
+
nextToken: __expectString,
|
|
870
|
+
});
|
|
871
|
+
Object.assign(contents, doc);
|
|
872
|
+
return contents;
|
|
873
|
+
};
|
|
746
874
|
export const de_ListCasesForContactCommand = async (output, context) => {
|
|
747
875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
748
876
|
return de_CommandError(output, context);
|
|
@@ -917,6 +1045,16 @@ export const de_UpdateCaseCommand = async (output, context) => {
|
|
|
917
1045
|
await collectBody(output.body, context);
|
|
918
1046
|
return contents;
|
|
919
1047
|
};
|
|
1048
|
+
export const de_UpdateCaseRuleCommand = async (output, context) => {
|
|
1049
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1050
|
+
return de_CommandError(output, context);
|
|
1051
|
+
}
|
|
1052
|
+
const contents = map({
|
|
1053
|
+
$metadata: deserializeMetadata(output),
|
|
1054
|
+
});
|
|
1055
|
+
await collectBody(output.body, context);
|
|
1056
|
+
return contents;
|
|
1057
|
+
};
|
|
920
1058
|
export const de_UpdateFieldCommand = async (output, context) => {
|
|
921
1059
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
922
1060
|
return de_CommandError(output, context);
|
|
@@ -1080,6 +1218,27 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1080
1218
|
});
|
|
1081
1219
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1082
1220
|
};
|
|
1221
|
+
const se_BooleanCondition = (input, context) => {
|
|
1222
|
+
return BooleanCondition.visit(input, {
|
|
1223
|
+
equalTo: (value) => ({ equalTo: se_BooleanOperands(value, context) }),
|
|
1224
|
+
notEqualTo: (value) => ({ notEqualTo: se_BooleanOperands(value, context) }),
|
|
1225
|
+
_: (name, value) => ({ name: value }),
|
|
1226
|
+
});
|
|
1227
|
+
};
|
|
1228
|
+
const se_BooleanConditionList = (input, context) => {
|
|
1229
|
+
return input
|
|
1230
|
+
.filter((e) => e != null)
|
|
1231
|
+
.map((entry) => {
|
|
1232
|
+
return se_BooleanCondition(entry, context);
|
|
1233
|
+
});
|
|
1234
|
+
};
|
|
1235
|
+
const se_BooleanOperands = (input, context) => {
|
|
1236
|
+
return take(input, {
|
|
1237
|
+
operandOne: _json,
|
|
1238
|
+
operandTwo: (_) => se_OperandTwo(_, context),
|
|
1239
|
+
result: [],
|
|
1240
|
+
});
|
|
1241
|
+
};
|
|
1083
1242
|
const se_CaseFilter = (input, context) => {
|
|
1084
1243
|
return CaseFilter.visit(input, {
|
|
1085
1244
|
andAll: (value) => ({ andAll: se_CaseFilterList(value, context) }),
|
|
@@ -1096,6 +1255,12 @@ const se_CaseFilterList = (input, context) => {
|
|
|
1096
1255
|
return se_CaseFilter(entry, context);
|
|
1097
1256
|
});
|
|
1098
1257
|
};
|
|
1258
|
+
const se_CaseRuleDetails = (input, context) => {
|
|
1259
|
+
return CaseRuleDetails.visit(input, {
|
|
1260
|
+
required: (value) => ({ required: se_RequiredCaseRule(value, context) }),
|
|
1261
|
+
_: (name, value) => ({ name: value }),
|
|
1262
|
+
});
|
|
1263
|
+
};
|
|
1099
1264
|
const se_FieldFilter = (input, context) => {
|
|
1100
1265
|
return FieldFilter.visit(input, {
|
|
1101
1266
|
contains: (value) => ({ contains: se_FieldValue(value, context) }),
|
|
@@ -1130,6 +1295,21 @@ const se_FieldValueUnion = (input, context) => {
|
|
|
1130
1295
|
_: (name, value) => ({ name: value }),
|
|
1131
1296
|
});
|
|
1132
1297
|
};
|
|
1298
|
+
const se_OperandTwo = (input, context) => {
|
|
1299
|
+
return OperandTwo.visit(input, {
|
|
1300
|
+
booleanValue: (value) => ({ booleanValue: value }),
|
|
1301
|
+
doubleValue: (value) => ({ doubleValue: __serializeFloat(value) }),
|
|
1302
|
+
emptyValue: (value) => ({ emptyValue: _json(value) }),
|
|
1303
|
+
stringValue: (value) => ({ stringValue: value }),
|
|
1304
|
+
_: (name, value) => ({ name: value }),
|
|
1305
|
+
});
|
|
1306
|
+
};
|
|
1307
|
+
const se_RequiredCaseRule = (input, context) => {
|
|
1308
|
+
return take(input, {
|
|
1309
|
+
conditions: (_) => se_BooleanConditionList(_, context),
|
|
1310
|
+
defaultValue: [],
|
|
1311
|
+
});
|
|
1312
|
+
};
|
|
1133
1313
|
const se_Tags = (input, context) => {
|
|
1134
1314
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1135
1315
|
if (value === null) {
|
|
@@ -1195,6 +1375,14 @@ const de_AuditEventsList = (output, context) => {
|
|
|
1195
1375
|
});
|
|
1196
1376
|
return retVal;
|
|
1197
1377
|
};
|
|
1378
|
+
const de_BatchGetCaseRuleList = (output, context) => {
|
|
1379
|
+
const retVal = (output || [])
|
|
1380
|
+
.filter((e) => e != null)
|
|
1381
|
+
.map((entry) => {
|
|
1382
|
+
return de_GetCaseRuleResponse(entry, context);
|
|
1383
|
+
});
|
|
1384
|
+
return retVal;
|
|
1385
|
+
};
|
|
1198
1386
|
const de_BatchGetFieldList = (output, context) => {
|
|
1199
1387
|
const retVal = (output || [])
|
|
1200
1388
|
.filter((e) => e != null)
|
|
@@ -1203,6 +1391,42 @@ const de_BatchGetFieldList = (output, context) => {
|
|
|
1203
1391
|
});
|
|
1204
1392
|
return retVal;
|
|
1205
1393
|
};
|
|
1394
|
+
const de_BooleanCondition = (output, context) => {
|
|
1395
|
+
if (output.equalTo != null) {
|
|
1396
|
+
return {
|
|
1397
|
+
equalTo: de_BooleanOperands(output.equalTo, context),
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
if (output.notEqualTo != null) {
|
|
1401
|
+
return {
|
|
1402
|
+
notEqualTo: de_BooleanOperands(output.notEqualTo, context),
|
|
1403
|
+
};
|
|
1404
|
+
}
|
|
1405
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1406
|
+
};
|
|
1407
|
+
const de_BooleanConditionList = (output, context) => {
|
|
1408
|
+
const retVal = (output || [])
|
|
1409
|
+
.filter((e) => e != null)
|
|
1410
|
+
.map((entry) => {
|
|
1411
|
+
return de_BooleanCondition(__expectUnion(entry), context);
|
|
1412
|
+
});
|
|
1413
|
+
return retVal;
|
|
1414
|
+
};
|
|
1415
|
+
const de_BooleanOperands = (output, context) => {
|
|
1416
|
+
return take(output, {
|
|
1417
|
+
operandOne: (_) => _json(__expectUnion(_)),
|
|
1418
|
+
operandTwo: (_) => de_OperandTwo(__expectUnion(_), context),
|
|
1419
|
+
result: __expectBoolean,
|
|
1420
|
+
});
|
|
1421
|
+
};
|
|
1422
|
+
const de_CaseRuleDetails = (output, context) => {
|
|
1423
|
+
if (output.required != null) {
|
|
1424
|
+
return {
|
|
1425
|
+
required: de_RequiredCaseRule(output.required, context),
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1429
|
+
};
|
|
1206
1430
|
const de_ContactContent = (output, context) => {
|
|
1207
1431
|
return take(output, {
|
|
1208
1432
|
channel: __expectString,
|
|
@@ -1244,6 +1468,19 @@ const de_FieldValueUnion = (output, context) => {
|
|
|
1244
1468
|
}
|
|
1245
1469
|
return { $unknown: Object.entries(output)[0] };
|
|
1246
1470
|
};
|
|
1471
|
+
const de_GetCaseRuleResponse = (output, context) => {
|
|
1472
|
+
return take(output, {
|
|
1473
|
+
caseRuleArn: __expectString,
|
|
1474
|
+
caseRuleId: __expectString,
|
|
1475
|
+
createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1476
|
+
deleted: __expectBoolean,
|
|
1477
|
+
description: __expectString,
|
|
1478
|
+
lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1479
|
+
name: __expectString,
|
|
1480
|
+
rule: (_) => de_CaseRuleDetails(__expectUnion(_), context),
|
|
1481
|
+
tags: (_) => de_Tags(_, context),
|
|
1482
|
+
});
|
|
1483
|
+
};
|
|
1247
1484
|
const de_GetFieldResponse = (output, context) => {
|
|
1248
1485
|
return take(output, {
|
|
1249
1486
|
createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
@@ -1258,6 +1495,23 @@ const de_GetFieldResponse = (output, context) => {
|
|
|
1258
1495
|
type: __expectString,
|
|
1259
1496
|
});
|
|
1260
1497
|
};
|
|
1498
|
+
const de_OperandTwo = (output, context) => {
|
|
1499
|
+
if (__expectBoolean(output.booleanValue) !== undefined) {
|
|
1500
|
+
return { booleanValue: __expectBoolean(output.booleanValue) };
|
|
1501
|
+
}
|
|
1502
|
+
if (__limitedParseDouble(output.doubleValue) !== undefined) {
|
|
1503
|
+
return { doubleValue: __limitedParseDouble(output.doubleValue) };
|
|
1504
|
+
}
|
|
1505
|
+
if (output.emptyValue != null) {
|
|
1506
|
+
return {
|
|
1507
|
+
emptyValue: _json(output.emptyValue),
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
if (__expectString(output.stringValue) !== undefined) {
|
|
1511
|
+
return { stringValue: __expectString(output.stringValue) };
|
|
1512
|
+
}
|
|
1513
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1514
|
+
};
|
|
1261
1515
|
const de_RelatedItemContent = (output, context) => {
|
|
1262
1516
|
if (output.comment != null) {
|
|
1263
1517
|
return {
|
|
@@ -1276,6 +1530,12 @@ const de_RelatedItemContent = (output, context) => {
|
|
|
1276
1530
|
}
|
|
1277
1531
|
return { $unknown: Object.entries(output)[0] };
|
|
1278
1532
|
};
|
|
1533
|
+
const de_RequiredCaseRule = (output, context) => {
|
|
1534
|
+
return take(output, {
|
|
1535
|
+
conditions: (_) => de_BooleanConditionList(_, context),
|
|
1536
|
+
defaultValue: __expectBoolean,
|
|
1537
|
+
});
|
|
1538
|
+
};
|
|
1279
1539
|
const de_SearchCasesResponseItem = (output, context) => {
|
|
1280
1540
|
return take(output, {
|
|
1281
1541
|
caseId: __expectString,
|