@aws-sdk/client-connectcases 3.276.0 → 3.279.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 +5 -6
- package/dist-cjs/ConnectCases.js +15 -0
- package/dist-cjs/commands/DeleteDomainCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +10 -2
- package/dist-cjs/protocols/Aws_restJson1.js +65 -2
- package/dist-es/ConnectCases.js +15 -0
- package/dist-es/commands/DeleteDomainCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +61 -0
- package/dist-types/ConnectCases.d.ts +37 -9
- package/dist-types/ConnectCasesClient.d.ts +8 -8
- package/dist-types/commands/CreateCaseCommand.d.ts +17 -2
- package/dist-types/commands/CreateDomainCommand.d.ts +3 -1
- package/dist-types/commands/DeleteDomainCommand.d.ts +37 -0
- package/dist-types/commands/SearchCasesCommand.d.ts +5 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +16 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -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/DeleteDomainCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -9,12 +9,11 @@
|
|
|
9
9
|
|
|
10
10
|
AWS SDK for JavaScript ConnectCases Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
|
-
<p>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<i>Amazon Connect Administrator Guide</i>. </p>
|
|
12
|
+
<p>With Amazon Connect Cases, your agents can track and manage customer issues that require
|
|
13
|
+
multiple interactions, follow-up tasks, and teams in your contact center. A case represents a
|
|
14
|
+
customer issue. It records the issue, the steps and interactions taken to resolve the issue,
|
|
15
|
+
and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the
|
|
16
|
+
<i>Amazon Connect Administrator Guide</i>.</p>
|
|
18
17
|
|
|
19
18
|
## Installing
|
|
20
19
|
|
package/dist-cjs/ConnectCases.js
CHANGED
|
@@ -9,6 +9,7 @@ const CreateFieldCommand_1 = require("./commands/CreateFieldCommand");
|
|
|
9
9
|
const CreateLayoutCommand_1 = require("./commands/CreateLayoutCommand");
|
|
10
10
|
const CreateRelatedItemCommand_1 = require("./commands/CreateRelatedItemCommand");
|
|
11
11
|
const CreateTemplateCommand_1 = require("./commands/CreateTemplateCommand");
|
|
12
|
+
const DeleteDomainCommand_1 = require("./commands/DeleteDomainCommand");
|
|
12
13
|
const GetCaseCommand_1 = require("./commands/GetCaseCommand");
|
|
13
14
|
const GetCaseEventConfigurationCommand_1 = require("./commands/GetCaseEventConfigurationCommand");
|
|
14
15
|
const GetDomainCommand_1 = require("./commands/GetDomainCommand");
|
|
@@ -144,6 +145,20 @@ class ConnectCases extends ConnectCasesClient_1.ConnectCasesClient {
|
|
|
144
145
|
return this.send(command, optionsOrCb);
|
|
145
146
|
}
|
|
146
147
|
}
|
|
148
|
+
deleteDomain(args, optionsOrCb, cb) {
|
|
149
|
+
const command = new DeleteDomainCommand_1.DeleteDomainCommand(args);
|
|
150
|
+
if (typeof optionsOrCb === "function") {
|
|
151
|
+
this.send(command, optionsOrCb);
|
|
152
|
+
}
|
|
153
|
+
else if (typeof cb === "function") {
|
|
154
|
+
if (typeof optionsOrCb !== "object")
|
|
155
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
156
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
return this.send(command, optionsOrCb);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
147
162
|
getCase(args, optionsOrCb, cb) {
|
|
148
163
|
const command = new GetCaseCommand_1.GetCaseCommand(args);
|
|
149
164
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteDomainCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteDomainCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteDomainCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ConnectCasesClient";
|
|
28
|
+
const commandName = "DeleteDomainCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteDomainRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteDomainResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteDomainCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteDomainCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteDomainCommand = DeleteDomainCommand;
|
|
@@ -9,6 +9,7 @@ tslib_1.__exportStar(require("./CreateFieldCommand"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./CreateLayoutCommand"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./CreateRelatedItemCommand"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./CreateTemplateCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DeleteDomainCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./GetCaseCommand"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./GetCaseEventConfigurationCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./GetDomainCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateCaseRequestFilterSensitiveLog = exports.SearchCasesResponseFilterSensitiveLog = exports.SearchCasesResponseItemFilterSensitiveLog = exports.SortFilterSensitiveLog = exports.FieldFilterFilterSensitiveLog = exports.SearchRelatedItemsResponseFilterSensitiveLog = exports.SearchRelatedItemsResponseItemFilterSensitiveLog = exports.RelatedItemContentFilterSensitiveLog = exports.ContactContentFilterSensitiveLog = exports.SearchRelatedItemsRequestFilterSensitiveLog = exports.RelatedItemTypeFilterFilterSensitiveLog = exports.ContactFilterFilterSensitiveLog = exports.CommentFilterFilterSensitiveLog = exports.CreateRelatedItemResponseFilterSensitiveLog = exports.CreateRelatedItemRequestFilterSensitiveLog = exports.RelatedItemInputContentFilterSensitiveLog = exports.ContactFilterSensitiveLog = exports.CommentContentFilterSensitiveLog = exports.ListCasesForContactResponseFilterSensitiveLog = exports.CaseSummaryFilterSensitiveLog = exports.ListCasesForContactRequestFilterSensitiveLog = exports.GetCaseResponseFilterSensitiveLog = exports.GetCaseRequestFilterSensitiveLog = exports.FieldIdentifierFilterSensitiveLog = exports.CreateCaseResponseFilterSensitiveLog = exports.CreateCaseRequestFilterSensitiveLog = exports.FieldValueFilterSensitiveLog = exports.FieldValueUnionFilterSensitiveLog = exports.CaseFilter = exports.TemplateStatus = exports.LayoutContent = exports.Section = exports.FieldType = exports.FieldNamespace = exports.DomainStatus = exports.Order = exports.FieldFilter = exports.RelatedItemContent = exports.RelatedItemTypeFilter = exports.ServiceQuotaExceededException = exports.RelatedItemType = exports.RelatedItemInputContent = exports.CommentBodyTextType = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.FieldValueUnion = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.SearchCasesRequestFilterSensitiveLog = exports.CaseFilterFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.UpdateTemplateResponseFilterSensitiveLog = exports.UpdateTemplateRequestFilterSensitiveLog = exports.ListTemplatesResponseFilterSensitiveLog = exports.TemplateSummaryFilterSensitiveLog = exports.ListTemplatesRequestFilterSensitiveLog = exports.GetTemplateResponseFilterSensitiveLog = exports.GetTemplateRequestFilterSensitiveLog = exports.CreateTemplateResponseFilterSensitiveLog = exports.CreateTemplateRequestFilterSensitiveLog = exports.RequiredFieldFilterSensitiveLog = exports.LayoutConfigurationFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = void 0;
|
|
4
|
+
exports.UpdateLayoutResponseFilterSensitiveLog = exports.UpdateLayoutRequestFilterSensitiveLog = exports.ListLayoutsResponseFilterSensitiveLog = exports.LayoutSummaryFilterSensitiveLog = exports.ListLayoutsRequestFilterSensitiveLog = exports.GetLayoutResponseFilterSensitiveLog = exports.GetLayoutRequestFilterSensitiveLog = exports.CreateLayoutResponseFilterSensitiveLog = exports.CreateLayoutRequestFilterSensitiveLog = exports.LayoutContentFilterSensitiveLog = exports.BasicLayoutFilterSensitiveLog = exports.LayoutSectionsFilterSensitiveLog = exports.SectionFilterSensitiveLog = exports.FieldGroupFilterSensitiveLog = exports.FieldItemFilterSensitiveLog = exports.UpdateFieldResponseFilterSensitiveLog = exports.UpdateFieldRequestFilterSensitiveLog = exports.ListFieldsResponseFilterSensitiveLog = exports.FieldSummaryFilterSensitiveLog = exports.ListFieldsRequestFilterSensitiveLog = exports.ListFieldOptionsResponseFilterSensitiveLog = exports.ListFieldOptionsRequestFilterSensitiveLog = exports.CreateFieldResponseFilterSensitiveLog = exports.CreateFieldRequestFilterSensitiveLog = exports.BatchPutFieldOptionsResponseFilterSensitiveLog = exports.FieldOptionErrorFilterSensitiveLog = exports.BatchPutFieldOptionsRequestFilterSensitiveLog = exports.FieldOptionFilterSensitiveLog = exports.BatchGetFieldResponseFilterSensitiveLog = exports.GetFieldResponseFilterSensitiveLog = exports.FieldErrorFilterSensitiveLog = exports.BatchGetFieldRequestFilterSensitiveLog = exports.PutCaseEventConfigurationResponseFilterSensitiveLog = exports.PutCaseEventConfigurationRequestFilterSensitiveLog = exports.ListDomainsResponseFilterSensitiveLog = exports.DomainSummaryFilterSensitiveLog = exports.ListDomainsRequestFilterSensitiveLog = exports.GetDomainResponseFilterSensitiveLog = exports.GetDomainRequestFilterSensitiveLog = exports.GetCaseEventConfigurationResponseFilterSensitiveLog = exports.EventBridgeConfigurationFilterSensitiveLog = exports.EventIncludedDataFilterSensitiveLog = exports.RelatedItemEventIncludedDataFilterSensitiveLog = exports.CaseEventIncludedDataFilterSensitiveLog = exports.GetCaseEventConfigurationRequestFilterSensitiveLog = exports.DeleteDomainResponseFilterSensitiveLog = exports.DeleteDomainRequestFilterSensitiveLog = exports.CreateDomainResponseFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.UpdateCaseResponseFilterSensitiveLog = void 0;
|
|
5
|
+
exports.SearchCasesRequestFilterSensitiveLog = exports.CaseFilterFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.UpdateTemplateResponseFilterSensitiveLog = exports.UpdateTemplateRequestFilterSensitiveLog = exports.ListTemplatesResponseFilterSensitiveLog = exports.TemplateSummaryFilterSensitiveLog = exports.ListTemplatesRequestFilterSensitiveLog = exports.GetTemplateResponseFilterSensitiveLog = exports.GetTemplateRequestFilterSensitiveLog = exports.CreateTemplateResponseFilterSensitiveLog = exports.CreateTemplateRequestFilterSensitiveLog = exports.RequiredFieldFilterSensitiveLog = exports.LayoutConfigurationFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = void 0;
|
|
6
6
|
const ConnectCasesServiceException_1 = require("./ConnectCasesServiceException");
|
|
7
7
|
class AccessDeniedException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -396,6 +396,14 @@ const CreateDomainResponseFilterSensitiveLog = (obj) => ({
|
|
|
396
396
|
...obj,
|
|
397
397
|
});
|
|
398
398
|
exports.CreateDomainResponseFilterSensitiveLog = CreateDomainResponseFilterSensitiveLog;
|
|
399
|
+
const DeleteDomainRequestFilterSensitiveLog = (obj) => ({
|
|
400
|
+
...obj,
|
|
401
|
+
});
|
|
402
|
+
exports.DeleteDomainRequestFilterSensitiveLog = DeleteDomainRequestFilterSensitiveLog;
|
|
403
|
+
const DeleteDomainResponseFilterSensitiveLog = (obj) => ({
|
|
404
|
+
...obj,
|
|
405
|
+
});
|
|
406
|
+
exports.DeleteDomainResponseFilterSensitiveLog = DeleteDomainResponseFilterSensitiveLog;
|
|
399
407
|
const GetCaseEventConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
400
408
|
...obj,
|
|
401
409
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateTemplateCommand = exports.deserializeAws_restJson1UpdateLayoutCommand = exports.deserializeAws_restJson1UpdateFieldCommand = exports.deserializeAws_restJson1UpdateCaseCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchRelatedItemsCommand = exports.deserializeAws_restJson1SearchCasesCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListLayoutsCommand = exports.deserializeAws_restJson1ListFieldsCommand = exports.deserializeAws_restJson1ListFieldOptionsCommand = exports.deserializeAws_restJson1ListDomainsCommand = exports.deserializeAws_restJson1ListCasesForContactCommand = exports.deserializeAws_restJson1GetTemplateCommand = exports.deserializeAws_restJson1GetLayoutCommand = exports.deserializeAws_restJson1GetDomainCommand = exports.deserializeAws_restJson1GetCaseEventConfigurationCommand = exports.deserializeAws_restJson1GetCaseCommand = exports.deserializeAws_restJson1DeleteDomainCommand = exports.deserializeAws_restJson1CreateTemplateCommand = exports.deserializeAws_restJson1CreateRelatedItemCommand = exports.deserializeAws_restJson1CreateLayoutCommand = exports.deserializeAws_restJson1CreateFieldCommand = exports.deserializeAws_restJson1CreateDomainCommand = exports.deserializeAws_restJson1CreateCaseCommand = exports.deserializeAws_restJson1BatchPutFieldOptionsCommand = exports.deserializeAws_restJson1BatchGetFieldCommand = exports.serializeAws_restJson1UpdateTemplateCommand = exports.serializeAws_restJson1UpdateLayoutCommand = exports.serializeAws_restJson1UpdateFieldCommand = exports.serializeAws_restJson1UpdateCaseCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchRelatedItemsCommand = exports.serializeAws_restJson1SearchCasesCommand = exports.serializeAws_restJson1PutCaseEventConfigurationCommand = exports.serializeAws_restJson1ListTemplatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListLayoutsCommand = exports.serializeAws_restJson1ListFieldsCommand = exports.serializeAws_restJson1ListFieldOptionsCommand = exports.serializeAws_restJson1ListDomainsCommand = exports.serializeAws_restJson1ListCasesForContactCommand = exports.serializeAws_restJson1GetTemplateCommand = exports.serializeAws_restJson1GetLayoutCommand = exports.serializeAws_restJson1GetDomainCommand = exports.serializeAws_restJson1GetCaseEventConfigurationCommand = exports.serializeAws_restJson1GetCaseCommand = exports.serializeAws_restJson1DeleteDomainCommand = exports.serializeAws_restJson1CreateTemplateCommand = exports.serializeAws_restJson1CreateRelatedItemCommand = exports.serializeAws_restJson1CreateLayoutCommand = exports.serializeAws_restJson1CreateFieldCommand = exports.serializeAws_restJson1CreateDomainCommand = exports.serializeAws_restJson1CreateCaseCommand = exports.serializeAws_restJson1BatchPutFieldOptionsCommand = exports.serializeAws_restJson1BatchGetFieldCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateTemplateCommand = exports.deserializeAws_restJson1UpdateLayoutCommand = exports.deserializeAws_restJson1UpdateFieldCommand = exports.deserializeAws_restJson1UpdateCaseCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchRelatedItemsCommand = exports.deserializeAws_restJson1SearchCasesCommand = exports.deserializeAws_restJson1PutCaseEventConfigurationCommand = exports.deserializeAws_restJson1ListTemplatesCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -200,6 +200,23 @@ const serializeAws_restJson1CreateTemplateCommand = async (input, context) => {
|
|
|
200
200
|
});
|
|
201
201
|
};
|
|
202
202
|
exports.serializeAws_restJson1CreateTemplateCommand = serializeAws_restJson1CreateTemplateCommand;
|
|
203
|
+
const serializeAws_restJson1DeleteDomainCommand = async (input, context) => {
|
|
204
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
205
|
+
const headers = {};
|
|
206
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}";
|
|
207
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
208
|
+
let body;
|
|
209
|
+
return new protocol_http_1.HttpRequest({
|
|
210
|
+
protocol,
|
|
211
|
+
hostname,
|
|
212
|
+
port,
|
|
213
|
+
method: "DELETE",
|
|
214
|
+
headers,
|
|
215
|
+
path: resolvedPath,
|
|
216
|
+
body,
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
exports.serializeAws_restJson1DeleteDomainCommand = serializeAws_restJson1DeleteDomainCommand;
|
|
203
220
|
const serializeAws_restJson1GetCaseCommand = async (input, context) => {
|
|
204
221
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
205
222
|
const headers = {
|
|
@@ -1100,6 +1117,52 @@ const deserializeAws_restJson1CreateTemplateCommandError = async (output, contex
|
|
|
1100
1117
|
});
|
|
1101
1118
|
}
|
|
1102
1119
|
};
|
|
1120
|
+
const deserializeAws_restJson1DeleteDomainCommand = async (output, context) => {
|
|
1121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
+
return deserializeAws_restJson1DeleteDomainCommandError(output, context);
|
|
1123
|
+
}
|
|
1124
|
+
const contents = map({
|
|
1125
|
+
$metadata: deserializeMetadata(output),
|
|
1126
|
+
});
|
|
1127
|
+
await collectBody(output.body, context);
|
|
1128
|
+
return contents;
|
|
1129
|
+
};
|
|
1130
|
+
exports.deserializeAws_restJson1DeleteDomainCommand = deserializeAws_restJson1DeleteDomainCommand;
|
|
1131
|
+
const deserializeAws_restJson1DeleteDomainCommandError = async (output, context) => {
|
|
1132
|
+
const parsedOutput = {
|
|
1133
|
+
...output,
|
|
1134
|
+
body: await parseErrorBody(output.body, context),
|
|
1135
|
+
};
|
|
1136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
|
+
switch (errorCode) {
|
|
1138
|
+
case "AccessDeniedException":
|
|
1139
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1140
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1141
|
+
case "ConflictException":
|
|
1142
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
1143
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1144
|
+
case "InternalServerException":
|
|
1145
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1146
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1147
|
+
case "ResourceNotFoundException":
|
|
1148
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1149
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1150
|
+
case "ThrottlingException":
|
|
1151
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1152
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1153
|
+
case "ValidationException":
|
|
1154
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1155
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1156
|
+
default:
|
|
1157
|
+
const parsedBody = parsedOutput.body;
|
|
1158
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1159
|
+
output,
|
|
1160
|
+
parsedBody,
|
|
1161
|
+
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1162
|
+
errorCode,
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1103
1166
|
const deserializeAws_restJson1GetCaseCommand = async (output, context) => {
|
|
1104
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1105
1168
|
return deserializeAws_restJson1GetCaseCommandError(output, context);
|
package/dist-es/ConnectCases.js
CHANGED
|
@@ -6,6 +6,7 @@ import { CreateFieldCommand } from "./commands/CreateFieldCommand";
|
|
|
6
6
|
import { CreateLayoutCommand, } from "./commands/CreateLayoutCommand";
|
|
7
7
|
import { CreateRelatedItemCommand, } from "./commands/CreateRelatedItemCommand";
|
|
8
8
|
import { CreateTemplateCommand, } from "./commands/CreateTemplateCommand";
|
|
9
|
+
import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
|
|
9
10
|
import { GetCaseCommand } from "./commands/GetCaseCommand";
|
|
10
11
|
import { GetCaseEventConfigurationCommand, } from "./commands/GetCaseEventConfigurationCommand";
|
|
11
12
|
import { GetDomainCommand } from "./commands/GetDomainCommand";
|
|
@@ -141,6 +142,20 @@ export class ConnectCases extends ConnectCasesClient {
|
|
|
141
142
|
return this.send(command, optionsOrCb);
|
|
142
143
|
}
|
|
143
144
|
}
|
|
145
|
+
deleteDomain(args, optionsOrCb, cb) {
|
|
146
|
+
const command = new DeleteDomainCommand(args);
|
|
147
|
+
if (typeof optionsOrCb === "function") {
|
|
148
|
+
this.send(command, optionsOrCb);
|
|
149
|
+
}
|
|
150
|
+
else if (typeof cb === "function") {
|
|
151
|
+
if (typeof optionsOrCb !== "object")
|
|
152
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
153
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
return this.send(command, optionsOrCb);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
144
159
|
getCase(args, optionsOrCb, cb) {
|
|
145
160
|
const command = new GetCaseCommand(args);
|
|
146
161
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteDomainRequestFilterSensitiveLog, DeleteDomainResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteDomainCommand, serializeAws_restJson1DeleteDomainCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeleteDomainCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteDomainCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ConnectCasesClient";
|
|
25
|
+
const commandName = "DeleteDomainCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteDomainRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeleteDomainResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DeleteDomainCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeleteDomainCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./CreateFieldCommand";
|
|
|
6
6
|
export * from "./CreateLayoutCommand";
|
|
7
7
|
export * from "./CreateRelatedItemCommand";
|
|
8
8
|
export * from "./CreateTemplateCommand";
|
|
9
|
+
export * from "./DeleteDomainCommand";
|
|
9
10
|
export * from "./GetCaseCommand";
|
|
10
11
|
export * from "./GetCaseEventConfigurationCommand";
|
|
11
12
|
export * from "./GetDomainCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -353,6 +353,12 @@ export const CreateDomainRequestFilterSensitiveLog = (obj) => ({
|
|
|
353
353
|
export const CreateDomainResponseFilterSensitiveLog = (obj) => ({
|
|
354
354
|
...obj,
|
|
355
355
|
});
|
|
356
|
+
export const DeleteDomainRequestFilterSensitiveLog = (obj) => ({
|
|
357
|
+
...obj,
|
|
358
|
+
});
|
|
359
|
+
export const DeleteDomainResponseFilterSensitiveLog = (obj) => ({
|
|
360
|
+
...obj,
|
|
361
|
+
});
|
|
356
362
|
export const GetCaseEventConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
357
363
|
...obj,
|
|
358
364
|
});
|
|
@@ -188,6 +188,22 @@ export const serializeAws_restJson1CreateTemplateCommand = async (input, context
|
|
|
188
188
|
body,
|
|
189
189
|
});
|
|
190
190
|
};
|
|
191
|
+
export const serializeAws_restJson1DeleteDomainCommand = async (input, context) => {
|
|
192
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
193
|
+
const headers = {};
|
|
194
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}";
|
|
195
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
196
|
+
let body;
|
|
197
|
+
return new __HttpRequest({
|
|
198
|
+
protocol,
|
|
199
|
+
hostname,
|
|
200
|
+
port,
|
|
201
|
+
method: "DELETE",
|
|
202
|
+
headers,
|
|
203
|
+
path: resolvedPath,
|
|
204
|
+
body,
|
|
205
|
+
});
|
|
206
|
+
};
|
|
191
207
|
export const serializeAws_restJson1GetCaseCommand = async (input, context) => {
|
|
192
208
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
193
209
|
const headers = {
|
|
@@ -1059,6 +1075,51 @@ const deserializeAws_restJson1CreateTemplateCommandError = async (output, contex
|
|
|
1059
1075
|
});
|
|
1060
1076
|
}
|
|
1061
1077
|
};
|
|
1078
|
+
export const deserializeAws_restJson1DeleteDomainCommand = async (output, context) => {
|
|
1079
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1080
|
+
return deserializeAws_restJson1DeleteDomainCommandError(output, context);
|
|
1081
|
+
}
|
|
1082
|
+
const contents = map({
|
|
1083
|
+
$metadata: deserializeMetadata(output),
|
|
1084
|
+
});
|
|
1085
|
+
await collectBody(output.body, context);
|
|
1086
|
+
return contents;
|
|
1087
|
+
};
|
|
1088
|
+
const deserializeAws_restJson1DeleteDomainCommandError = async (output, context) => {
|
|
1089
|
+
const parsedOutput = {
|
|
1090
|
+
...output,
|
|
1091
|
+
body: await parseErrorBody(output.body, context),
|
|
1092
|
+
};
|
|
1093
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
+
switch (errorCode) {
|
|
1095
|
+
case "AccessDeniedException":
|
|
1096
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1097
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1098
|
+
case "ConflictException":
|
|
1099
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
1100
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1101
|
+
case "InternalServerException":
|
|
1102
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1103
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1104
|
+
case "ResourceNotFoundException":
|
|
1105
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1106
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1107
|
+
case "ThrottlingException":
|
|
1108
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1109
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1110
|
+
case "ValidationException":
|
|
1111
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1112
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1113
|
+
default:
|
|
1114
|
+
const parsedBody = parsedOutput.body;
|
|
1115
|
+
throwDefaultError({
|
|
1116
|
+
output,
|
|
1117
|
+
parsedBody,
|
|
1118
|
+
exceptionCtor: __BaseException,
|
|
1119
|
+
errorCode,
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
};
|
|
1062
1123
|
export const deserializeAws_restJson1GetCaseCommand = async (output, context) => {
|
|
1063
1124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1064
1125
|
return deserializeAws_restJson1GetCaseCommandError(output, context);
|
|
@@ -7,6 +7,7 @@ import { CreateFieldCommandInput, CreateFieldCommandOutput } from "./commands/Cr
|
|
|
7
7
|
import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/CreateLayoutCommand";
|
|
8
8
|
import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
|
|
9
9
|
import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
|
|
10
|
+
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
|
|
10
11
|
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
11
12
|
import { GetCaseEventConfigurationCommandInput, GetCaseEventConfigurationCommandOutput } from "./commands/GetCaseEventConfigurationCommand";
|
|
12
13
|
import { GetDomainCommandInput, GetDomainCommandOutput } from "./commands/GetDomainCommand";
|
|
@@ -30,12 +31,11 @@ import { UpdateLayoutCommandInput, UpdateLayoutCommandOutput } from "./commands/
|
|
|
30
31
|
import { UpdateTemplateCommandInput, UpdateTemplateCommandOutput } from "./commands/UpdateTemplateCommand";
|
|
31
32
|
import { ConnectCasesClient } from "./ConnectCasesClient";
|
|
32
33
|
/**
|
|
33
|
-
* <p>
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* <i>Amazon Connect Administrator Guide</i>. </p>
|
|
34
|
+
* <p>With Amazon Connect Cases, your agents can track and manage customer issues that require
|
|
35
|
+
* multiple interactions, follow-up tasks, and teams in your contact center. A case represents a
|
|
36
|
+
* customer issue. It records the issue, the steps and interactions taken to resolve the issue,
|
|
37
|
+
* and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the
|
|
38
|
+
* <i>Amazon Connect Administrator Guide</i>.</p>
|
|
39
39
|
*/
|
|
40
40
|
export declare class ConnectCases extends ConnectCasesClient {
|
|
41
41
|
/**
|
|
@@ -55,8 +55,23 @@ export declare class ConnectCases extends ConnectCasesClient {
|
|
|
55
55
|
* <p>Creates a case in the specified Cases domain. Case system and custom fields are taken
|
|
56
56
|
* as an array id/value pairs with a declared data types.</p>
|
|
57
57
|
* <note>
|
|
58
|
-
* <p>
|
|
59
|
-
*
|
|
58
|
+
* <p>The following fields are required when creating a case:</p>
|
|
59
|
+
*
|
|
60
|
+
* <ul>
|
|
61
|
+
* <li>
|
|
62
|
+
* <p>
|
|
63
|
+
* <code>customer_id</code> - You must provide the full customer profile ARN in this
|
|
64
|
+
* format: <code>arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles
|
|
65
|
+
* domain name/profiles/profile ID</code>
|
|
66
|
+
* </p>
|
|
67
|
+
* </li>
|
|
68
|
+
* <li>
|
|
69
|
+
* <p>
|
|
70
|
+
* <code>title</code>
|
|
71
|
+
* </p>
|
|
72
|
+
* </li>
|
|
73
|
+
* </ul>
|
|
74
|
+
*
|
|
60
75
|
* </note>
|
|
61
76
|
*/
|
|
62
77
|
createCase(args: CreateCaseCommandInput, options?: __HttpHandlerOptions): Promise<CreateCaseCommandOutput>;
|
|
@@ -69,7 +84,9 @@ export declare class ConnectCases extends ConnectCasesClient {
|
|
|
69
84
|
* <important>
|
|
70
85
|
* <p>This will not associate your connect instance to Cases domain. Instead, use the
|
|
71
86
|
* Amazon Connect
|
|
72
|
-
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateIntegrationAssociation.html">CreateIntegrationAssociation</a> API
|
|
87
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateIntegrationAssociation.html">CreateIntegrationAssociation</a> API. You need specific IAM
|
|
88
|
+
* permissions to successfully associate the Cases domain. For more information, see
|
|
89
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/required-permissions-iam-cases.html#onboard-cases-iam">Onboard to Cases</a>.</p>
|
|
73
90
|
* </important>
|
|
74
91
|
*/
|
|
75
92
|
createDomain(args: CreateDomainCommandInput, options?: __HttpHandlerOptions): Promise<CreateDomainCommandOutput>;
|
|
@@ -126,6 +143,12 @@ export declare class ConnectCases extends ConnectCasesClient {
|
|
|
126
143
|
createTemplate(args: CreateTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreateTemplateCommandOutput>;
|
|
127
144
|
createTemplate(args: CreateTemplateCommandInput, cb: (err: any, data?: CreateTemplateCommandOutput) => void): void;
|
|
128
145
|
createTemplate(args: CreateTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTemplateCommandOutput) => void): void;
|
|
146
|
+
/**
|
|
147
|
+
* <p>Deletes a domain.</p>
|
|
148
|
+
*/
|
|
149
|
+
deleteDomain(args: DeleteDomainCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDomainCommandOutput>;
|
|
150
|
+
deleteDomain(args: DeleteDomainCommandInput, cb: (err: any, data?: DeleteDomainCommandOutput) => void): void;
|
|
151
|
+
deleteDomain(args: DeleteDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDomainCommandOutput) => void): void;
|
|
129
152
|
/**
|
|
130
153
|
* <p>Returns information about a specific case if it exists. </p>
|
|
131
154
|
*/
|
|
@@ -210,6 +233,11 @@ export declare class ConnectCases extends ConnectCasesClient {
|
|
|
210
233
|
/**
|
|
211
234
|
* <p>Searches for cases within their associated Cases domain. Search results are returned
|
|
212
235
|
* as a paginated list of abridged case documents.</p>
|
|
236
|
+
* <note>
|
|
237
|
+
* <p>For <code>customer_id</code> you must provide the full customer profile ARN in this
|
|
238
|
+
* format: <code> arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain
|
|
239
|
+
* name/profiles/profile ID</code>. </p>
|
|
240
|
+
* </note>
|
|
213
241
|
*/
|
|
214
242
|
searchCases(args: SearchCasesCommandInput, options?: __HttpHandlerOptions): Promise<SearchCasesCommandOutput>;
|
|
215
243
|
searchCases(args: SearchCasesCommandInput, cb: (err: any, data?: SearchCasesCommandOutput) => void): void;
|
|
@@ -15,6 +15,7 @@ import { CreateFieldCommandInput, CreateFieldCommandOutput } from "./commands/Cr
|
|
|
15
15
|
import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/CreateLayoutCommand";
|
|
16
16
|
import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
|
|
17
17
|
import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
|
|
18
|
+
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
|
|
18
19
|
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
19
20
|
import { GetCaseEventConfigurationCommandInput, GetCaseEventConfigurationCommandOutput } from "./commands/GetCaseEventConfigurationCommand";
|
|
20
21
|
import { GetDomainCommandInput, GetDomainCommandOutput } from "./commands/GetDomainCommand";
|
|
@@ -37,8 +38,8 @@ import { UpdateFieldCommandInput, UpdateFieldCommandOutput } from "./commands/Up
|
|
|
37
38
|
import { UpdateLayoutCommandInput, UpdateLayoutCommandOutput } from "./commands/UpdateLayoutCommand";
|
|
38
39
|
import { UpdateTemplateCommandInput, UpdateTemplateCommandOutput } from "./commands/UpdateTemplateCommand";
|
|
39
40
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
40
|
-
export declare type ServiceInputTypes = BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
|
|
41
|
-
export declare type ServiceOutputTypes = BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
|
|
41
|
+
export declare type ServiceInputTypes = BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | DeleteDomainCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
|
|
42
|
+
export declare type ServiceOutputTypes = BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | DeleteDomainCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
|
|
42
43
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
43
44
|
/**
|
|
44
45
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -152,12 +153,11 @@ declare type ConnectCasesClientResolvedConfigType = __SmithyResolvedConfiguratio
|
|
|
152
153
|
export interface ConnectCasesClientResolvedConfig extends ConnectCasesClientResolvedConfigType {
|
|
153
154
|
}
|
|
154
155
|
/**
|
|
155
|
-
* <p>
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* <i>Amazon Connect Administrator Guide</i>. </p>
|
|
156
|
+
* <p>With Amazon Connect Cases, your agents can track and manage customer issues that require
|
|
157
|
+
* multiple interactions, follow-up tasks, and teams in your contact center. A case represents a
|
|
158
|
+
* customer issue. It records the issue, the steps and interactions taken to resolve the issue,
|
|
159
|
+
* and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the
|
|
160
|
+
* <i>Amazon Connect Administrator Guide</i>.</p>
|
|
161
161
|
*/
|
|
162
162
|
export declare class ConnectCasesClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ConnectCasesClientResolvedConfig> {
|
|
163
163
|
/**
|
|
@@ -11,8 +11,23 @@ export interface CreateCaseCommandOutput extends CreateCaseResponse, __MetadataB
|
|
|
11
11
|
* <p>Creates a case in the specified Cases domain. Case system and custom fields are taken
|
|
12
12
|
* as an array id/value pairs with a declared data types.</p>
|
|
13
13
|
* <note>
|
|
14
|
-
* <p>
|
|
15
|
-
*
|
|
14
|
+
* <p>The following fields are required when creating a case:</p>
|
|
15
|
+
*
|
|
16
|
+
* <ul>
|
|
17
|
+
* <li>
|
|
18
|
+
* <p>
|
|
19
|
+
* <code>customer_id</code> - You must provide the full customer profile ARN in this
|
|
20
|
+
* format: <code>arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles
|
|
21
|
+
* domain name/profiles/profile ID</code>
|
|
22
|
+
* </p>
|
|
23
|
+
* </li>
|
|
24
|
+
* <li>
|
|
25
|
+
* <p>
|
|
26
|
+
* <code>title</code>
|
|
27
|
+
* </p>
|
|
28
|
+
* </li>
|
|
29
|
+
* </ul>
|
|
30
|
+
*
|
|
16
31
|
* </note>
|
|
17
32
|
* @example
|
|
18
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -14,7 +14,9 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
|
|
|
14
14
|
* <important>
|
|
15
15
|
* <p>This will not associate your connect instance to Cases domain. Instead, use the
|
|
16
16
|
* Amazon Connect
|
|
17
|
-
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateIntegrationAssociation.html">CreateIntegrationAssociation</a> API
|
|
17
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateIntegrationAssociation.html">CreateIntegrationAssociation</a> API. You need specific IAM
|
|
18
|
+
* permissions to successfully associate the Cases domain. For more information, see
|
|
19
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/required-permissions-iam-cases.html#onboard-cases-iam">Onboard to Cases</a>.</p>
|
|
18
20
|
* </important>
|
|
19
21
|
* @example
|
|
20
22
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ConnectCasesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectCasesClient";
|
|
5
|
+
import { DeleteDomainRequest, DeleteDomainResponse } from "../models/models_0";
|
|
6
|
+
export interface DeleteDomainCommandInput extends DeleteDomainRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteDomainCommandOutput extends DeleteDomainResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Deletes a domain.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { ConnectCasesClient, DeleteDomainCommand } from "@aws-sdk/client-connectcases"; // ES Modules import
|
|
16
|
+
* // const { ConnectCasesClient, DeleteDomainCommand } = require("@aws-sdk/client-connectcases"); // CommonJS import
|
|
17
|
+
* const client = new ConnectCasesClient(config);
|
|
18
|
+
* const command = new DeleteDomainCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link DeleteDomainCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link DeleteDomainCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link ConnectCasesClientResolvedConfig | config} for ConnectCasesClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class DeleteDomainCommand extends $Command<DeleteDomainCommandInput, DeleteDomainCommandOutput, ConnectCasesClientResolvedConfig> {
|
|
28
|
+
readonly input: DeleteDomainCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: DeleteDomainCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConnectCasesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteDomainCommandInput, DeleteDomainCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -10,6 +10,11 @@ export interface SearchCasesCommandOutput extends SearchCasesResponse, __Metadat
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Searches for cases within their associated Cases domain. Search results are returned
|
|
12
12
|
* as a paginated list of abridged case documents.</p>
|
|
13
|
+
* <note>
|
|
14
|
+
* <p>For <code>customer_id</code> you must provide the full customer profile ARN in this
|
|
15
|
+
* format: <code> arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain
|
|
16
|
+
* name/profiles/profile ID</code>. </p>
|
|
17
|
+
* </note>
|
|
13
18
|
* @example
|
|
14
19
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
20
|
* ```javascript
|
|
@@ -6,6 +6,7 @@ export * from "./CreateFieldCommand";
|
|
|
6
6
|
export * from "./CreateLayoutCommand";
|
|
7
7
|
export * from "./CreateRelatedItemCommand";
|
|
8
8
|
export * from "./CreateTemplateCommand";
|
|
9
|
+
export * from "./DeleteDomainCommand";
|
|
9
10
|
export * from "./GetCaseCommand";
|
|
10
11
|
export * from "./GetCaseEventConfigurationCommand";
|
|
11
12
|
export * from "./GetDomainCommand";
|
|
@@ -715,6 +715,14 @@ export interface CreateDomainResponse {
|
|
|
715
715
|
*/
|
|
716
716
|
domainStatus: DomainStatus | string | undefined;
|
|
717
717
|
}
|
|
718
|
+
export interface DeleteDomainRequest {
|
|
719
|
+
/**
|
|
720
|
+
* <p>The unique identifier of the Cases domain. </p>
|
|
721
|
+
*/
|
|
722
|
+
domainId: string | undefined;
|
|
723
|
+
}
|
|
724
|
+
export interface DeleteDomainResponse {
|
|
725
|
+
}
|
|
718
726
|
export interface GetCaseEventConfigurationRequest {
|
|
719
727
|
/**
|
|
720
728
|
* <p>The unique identifier of the Cases domain. </p>
|
|
@@ -1762,6 +1770,14 @@ export declare const CreateDomainRequestFilterSensitiveLog: (obj: CreateDomainRe
|
|
|
1762
1770
|
* @internal
|
|
1763
1771
|
*/
|
|
1764
1772
|
export declare const CreateDomainResponseFilterSensitiveLog: (obj: CreateDomainResponse) => any;
|
|
1773
|
+
/**
|
|
1774
|
+
* @internal
|
|
1775
|
+
*/
|
|
1776
|
+
export declare const DeleteDomainRequestFilterSensitiveLog: (obj: DeleteDomainRequest) => any;
|
|
1777
|
+
/**
|
|
1778
|
+
* @internal
|
|
1779
|
+
*/
|
|
1780
|
+
export declare const DeleteDomainResponseFilterSensitiveLog: (obj: DeleteDomainResponse) => any;
|
|
1765
1781
|
/**
|
|
1766
1782
|
* @internal
|
|
1767
1783
|
*/
|
|
@@ -8,6 +8,7 @@ import { CreateFieldCommandInput, CreateFieldCommandOutput } from "../commands/C
|
|
|
8
8
|
import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "../commands/CreateLayoutCommand";
|
|
9
9
|
import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "../commands/CreateRelatedItemCommand";
|
|
10
10
|
import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "../commands/CreateTemplateCommand";
|
|
11
|
+
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "../commands/DeleteDomainCommand";
|
|
11
12
|
import { GetCaseCommandInput, GetCaseCommandOutput } from "../commands/GetCaseCommand";
|
|
12
13
|
import { GetCaseEventConfigurationCommandInput, GetCaseEventConfigurationCommandOutput } from "../commands/GetCaseEventConfigurationCommand";
|
|
13
14
|
import { GetDomainCommandInput, GetDomainCommandOutput } from "../commands/GetDomainCommand";
|
|
@@ -37,6 +38,7 @@ export declare const serializeAws_restJson1CreateFieldCommand: (input: CreateFie
|
|
|
37
38
|
export declare const serializeAws_restJson1CreateLayoutCommand: (input: CreateLayoutCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
38
39
|
export declare const serializeAws_restJson1CreateRelatedItemCommand: (input: CreateRelatedItemCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
39
40
|
export declare const serializeAws_restJson1CreateTemplateCommand: (input: CreateTemplateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
41
|
+
export declare const serializeAws_restJson1DeleteDomainCommand: (input: DeleteDomainCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
40
42
|
export declare const serializeAws_restJson1GetCaseCommand: (input: GetCaseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
41
43
|
export declare const serializeAws_restJson1GetCaseEventConfigurationCommand: (input: GetCaseEventConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
42
44
|
export declare const serializeAws_restJson1GetDomainCommand: (input: GetDomainCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -66,6 +68,7 @@ export declare const deserializeAws_restJson1CreateFieldCommand: (output: __Http
|
|
|
66
68
|
export declare const deserializeAws_restJson1CreateLayoutCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateLayoutCommandOutput>;
|
|
67
69
|
export declare const deserializeAws_restJson1CreateRelatedItemCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateRelatedItemCommandOutput>;
|
|
68
70
|
export declare const deserializeAws_restJson1CreateTemplateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateTemplateCommandOutput>;
|
|
71
|
+
export declare const deserializeAws_restJson1DeleteDomainCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteDomainCommandOutput>;
|
|
69
72
|
export declare const deserializeAws_restJson1GetCaseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetCaseCommandOutput>;
|
|
70
73
|
export declare const deserializeAws_restJson1GetCaseEventConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetCaseEventConfigurationCommandOutput>;
|
|
71
74
|
export declare const deserializeAws_restJson1GetDomainCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDomainCommandOutput>;
|
|
@@ -31,6 +31,10 @@ import {
|
|
|
31
31
|
CreateTemplateCommandInput,
|
|
32
32
|
CreateTemplateCommandOutput,
|
|
33
33
|
} from "./commands/CreateTemplateCommand";
|
|
34
|
+
import {
|
|
35
|
+
DeleteDomainCommandInput,
|
|
36
|
+
DeleteDomainCommandOutput,
|
|
37
|
+
} from "./commands/DeleteDomainCommand";
|
|
34
38
|
import {
|
|
35
39
|
GetCaseCommandInput,
|
|
36
40
|
GetCaseCommandOutput,
|
|
@@ -221,6 +225,19 @@ export declare class ConnectCases extends ConnectCasesClient {
|
|
|
221
225
|
options: __HttpHandlerOptions,
|
|
222
226
|
cb: (err: any, data?: CreateTemplateCommandOutput) => void
|
|
223
227
|
): void;
|
|
228
|
+
deleteDomain(
|
|
229
|
+
args: DeleteDomainCommandInput,
|
|
230
|
+
options?: __HttpHandlerOptions
|
|
231
|
+
): Promise<DeleteDomainCommandOutput>;
|
|
232
|
+
deleteDomain(
|
|
233
|
+
args: DeleteDomainCommandInput,
|
|
234
|
+
cb: (err: any, data?: DeleteDomainCommandOutput) => void
|
|
235
|
+
): void;
|
|
236
|
+
deleteDomain(
|
|
237
|
+
args: DeleteDomainCommandInput,
|
|
238
|
+
options: __HttpHandlerOptions,
|
|
239
|
+
cb: (err: any, data?: DeleteDomainCommandOutput) => void
|
|
240
|
+
): void;
|
|
224
241
|
getCase(
|
|
225
242
|
args: GetCaseCommandInput,
|
|
226
243
|
options?: __HttpHandlerOptions
|
|
@@ -76,6 +76,10 @@ import {
|
|
|
76
76
|
CreateTemplateCommandInput,
|
|
77
77
|
CreateTemplateCommandOutput,
|
|
78
78
|
} from "./commands/CreateTemplateCommand";
|
|
79
|
+
import {
|
|
80
|
+
DeleteDomainCommandInput,
|
|
81
|
+
DeleteDomainCommandOutput,
|
|
82
|
+
} from "./commands/DeleteDomainCommand";
|
|
79
83
|
import {
|
|
80
84
|
GetCaseCommandInput,
|
|
81
85
|
GetCaseCommandOutput,
|
|
@@ -174,6 +178,7 @@ export declare type ServiceInputTypes =
|
|
|
174
178
|
| CreateLayoutCommandInput
|
|
175
179
|
| CreateRelatedItemCommandInput
|
|
176
180
|
| CreateTemplateCommandInput
|
|
181
|
+
| DeleteDomainCommandInput
|
|
177
182
|
| GetCaseCommandInput
|
|
178
183
|
| GetCaseEventConfigurationCommandInput
|
|
179
184
|
| GetDomainCommandInput
|
|
@@ -204,6 +209,7 @@ export declare type ServiceOutputTypes =
|
|
|
204
209
|
| CreateLayoutCommandOutput
|
|
205
210
|
| CreateRelatedItemCommandOutput
|
|
206
211
|
| CreateTemplateCommandOutput
|
|
212
|
+
| DeleteDomainCommandOutput
|
|
207
213
|
| GetCaseCommandOutput
|
|
208
214
|
| GetCaseEventConfigurationCommandOutput
|
|
209
215
|
| GetDomainCommandOutput
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
ConnectCasesClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../ConnectCasesClient";
|
|
14
|
+
import { DeleteDomainRequest, DeleteDomainResponse } from "../models/models_0";
|
|
15
|
+
export interface DeleteDomainCommandInput extends DeleteDomainRequest {}
|
|
16
|
+
export interface DeleteDomainCommandOutput
|
|
17
|
+
extends DeleteDomainResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
export declare class DeleteDomainCommand extends $Command<
|
|
20
|
+
DeleteDomainCommandInput,
|
|
21
|
+
DeleteDomainCommandOutput,
|
|
22
|
+
ConnectCasesClientResolvedConfig
|
|
23
|
+
> {
|
|
24
|
+
readonly input: DeleteDomainCommandInput;
|
|
25
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
26
|
+
constructor(input: DeleteDomainCommandInput);
|
|
27
|
+
resolveMiddleware(
|
|
28
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
29
|
+
configuration: ConnectCasesClientResolvedConfig,
|
|
30
|
+
options?: __HttpHandlerOptions
|
|
31
|
+
): Handler<DeleteDomainCommandInput, DeleteDomainCommandOutput>;
|
|
32
|
+
private serialize;
|
|
33
|
+
private deserialize;
|
|
34
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./CreateFieldCommand";
|
|
|
6
6
|
export * from "./CreateLayoutCommand";
|
|
7
7
|
export * from "./CreateRelatedItemCommand";
|
|
8
8
|
export * from "./CreateTemplateCommand";
|
|
9
|
+
export * from "./DeleteDomainCommand";
|
|
9
10
|
export * from "./GetCaseCommand";
|
|
10
11
|
export * from "./GetCaseEventConfigurationCommand";
|
|
11
12
|
export * from "./GetDomainCommand";
|
|
@@ -386,6 +386,10 @@ export interface CreateDomainResponse {
|
|
|
386
386
|
domainArn: string | undefined;
|
|
387
387
|
domainStatus: DomainStatus | string | undefined;
|
|
388
388
|
}
|
|
389
|
+
export interface DeleteDomainRequest {
|
|
390
|
+
domainId: string | undefined;
|
|
391
|
+
}
|
|
392
|
+
export interface DeleteDomainResponse {}
|
|
389
393
|
export interface GetCaseEventConfigurationRequest {
|
|
390
394
|
domainId: string | undefined;
|
|
391
395
|
}
|
|
@@ -825,6 +829,12 @@ export declare const CreateDomainRequestFilterSensitiveLog: (
|
|
|
825
829
|
export declare const CreateDomainResponseFilterSensitiveLog: (
|
|
826
830
|
obj: CreateDomainResponse
|
|
827
831
|
) => any;
|
|
832
|
+
export declare const DeleteDomainRequestFilterSensitiveLog: (
|
|
833
|
+
obj: DeleteDomainRequest
|
|
834
|
+
) => any;
|
|
835
|
+
export declare const DeleteDomainResponseFilterSensitiveLog: (
|
|
836
|
+
obj: DeleteDomainResponse
|
|
837
|
+
) => any;
|
|
828
838
|
export declare const GetCaseEventConfigurationRequestFilterSensitiveLog: (
|
|
829
839
|
obj: GetCaseEventConfigurationRequest
|
|
830
840
|
) => any;
|
|
@@ -35,6 +35,10 @@ import {
|
|
|
35
35
|
CreateTemplateCommandInput,
|
|
36
36
|
CreateTemplateCommandOutput,
|
|
37
37
|
} from "../commands/CreateTemplateCommand";
|
|
38
|
+
import {
|
|
39
|
+
DeleteDomainCommandInput,
|
|
40
|
+
DeleteDomainCommandOutput,
|
|
41
|
+
} from "../commands/DeleteDomainCommand";
|
|
38
42
|
import {
|
|
39
43
|
GetCaseCommandInput,
|
|
40
44
|
GetCaseCommandOutput,
|
|
@@ -151,6 +155,10 @@ export declare const serializeAws_restJson1CreateTemplateCommand: (
|
|
|
151
155
|
input: CreateTemplateCommandInput,
|
|
152
156
|
context: __SerdeContext
|
|
153
157
|
) => Promise<__HttpRequest>;
|
|
158
|
+
export declare const serializeAws_restJson1DeleteDomainCommand: (
|
|
159
|
+
input: DeleteDomainCommandInput,
|
|
160
|
+
context: __SerdeContext
|
|
161
|
+
) => Promise<__HttpRequest>;
|
|
154
162
|
export declare const serializeAws_restJson1GetCaseCommand: (
|
|
155
163
|
input: GetCaseCommandInput,
|
|
156
164
|
context: __SerdeContext
|
|
@@ -267,6 +275,10 @@ export declare const deserializeAws_restJson1CreateTemplateCommand: (
|
|
|
267
275
|
output: __HttpResponse,
|
|
268
276
|
context: __SerdeContext
|
|
269
277
|
) => Promise<CreateTemplateCommandOutput>;
|
|
278
|
+
export declare const deserializeAws_restJson1DeleteDomainCommand: (
|
|
279
|
+
output: __HttpResponse,
|
|
280
|
+
context: __SerdeContext
|
|
281
|
+
) => Promise<DeleteDomainCommandOutput>;
|
|
270
282
|
export declare const deserializeAws_restJson1GetCaseCommand: (
|
|
271
283
|
output: __HttpResponse,
|
|
272
284
|
context: __SerdeContext
|
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.279.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",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.279.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.272.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.279.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.272.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.272.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.272.0",
|
|
29
29
|
"@aws-sdk/middleware-content-length": "3.272.0",
|
|
30
30
|
"@aws-sdk/middleware-endpoint": "3.272.0",
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.278.0",
|
|
32
32
|
"@aws-sdk/middleware-logger": "3.272.0",
|
|
33
33
|
"@aws-sdk/middleware-recursion-detection": "3.272.0",
|
|
34
34
|
"@aws-sdk/middleware-retry": "3.272.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@aws-sdk/node-config-provider": "3.272.0",
|
|
40
40
|
"@aws-sdk/node-http-handler": "3.272.0",
|
|
41
41
|
"@aws-sdk/protocol-http": "3.272.0",
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
+
"@aws-sdk/smithy-client": "3.279.0",
|
|
43
43
|
"@aws-sdk/types": "3.272.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.272.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.279.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.279.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.272.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.272.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-browser": "3.272.0",
|