@aws-sdk/client-connect 3.332.0 → 3.337.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 +40 -0
- package/dist-cjs/Connect.js +10 -0
- package/dist-cjs/commands/CreatePromptCommand.js +45 -0
- package/dist-cjs/commands/DeletePromptCommand.js +45 -0
- package/dist-cjs/commands/DescribePromptCommand.js +45 -0
- package/dist-cjs/commands/GetPromptFileCommand.js +45 -0
- package/dist-cjs/commands/UpdatePromptCommand.js +45 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +344 -9
- package/dist-es/Connect.js +10 -0
- package/dist-es/commands/CreatePromptCommand.js +41 -0
- package/dist-es/commands/DeletePromptCommand.js +41 -0
- package/dist-es/commands/DescribePromptCommand.js +41 -0
- package/dist-es/commands/GetPromptFileCommand.js +41 -0
- package/dist-es/commands/UpdatePromptCommand.js +41 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +326 -1
- package/dist-types/Connect.d.ts +35 -0
- package/dist-types/ConnectClient.d.ts +10 -4
- package/dist-types/commands/CreatePromptCommand.d.ts +94 -0
- package/dist-types/commands/DeletePromptCommand.d.ts +83 -0
- package/dist-types/commands/DescribePromptCommand.d.ts +93 -0
- package/dist-types/commands/GetCurrentMetricDataCommand.d.ts +2 -1
- package/dist-types/commands/GetPromptFileCommand.d.ts +85 -0
- package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +3 -3
- package/dist-types/commands/UpdatePromptCommand.d.ts +89 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +99 -94
- package/dist-types/models/models_1.d.ts +156 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +47 -2
- package/dist-types/runtimeConfig.browser.d.ts +12 -12
- package/dist-types/runtimeConfig.d.ts +9 -9
- package/dist-types/runtimeConfig.native.d.ts +13 -13
- package/dist-types/runtimeConfig.shared.d.ts +4 -4
- package/dist-types/ts3.4/Connect.d.ts +85 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +37 -5
- package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/DescribePromptCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetCurrentMetricDataCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetPromptFileCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +29 -26
- package/dist-types/ts3.4/models/models_1.d.ts +47 -3
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +62 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +18 -15
- package/dist-types/ts3.4/runtimeConfig.d.ts +12 -12
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -15
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
- package/package.json +30 -29
|
@@ -0,0 +1,41 @@
|
|
|
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 { de_DescribePromptCommand, se_DescribePromptCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class DescribePromptCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribePromptCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ConnectClient";
|
|
24
|
+
const commandName = "DescribePromptCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_DescribePromptCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_DescribePromptCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { de_GetPromptFileCommand, se_GetPromptFileCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class GetPromptFileCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetPromptFileCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ConnectClient";
|
|
24
|
+
const commandName = "GetPromptFileCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_GetPromptFileCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_GetPromptFileCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { de_UpdatePromptCommand, se_UpdatePromptCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class UpdatePromptCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePromptCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ConnectClient";
|
|
24
|
+
const commandName = "UpdatePromptCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_UpdatePromptCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_UpdatePromptCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -18,6 +18,7 @@ export * from "./CreateHoursOfOperationCommand";
|
|
|
18
18
|
export * from "./CreateInstanceCommand";
|
|
19
19
|
export * from "./CreateIntegrationAssociationCommand";
|
|
20
20
|
export * from "./CreateParticipantCommand";
|
|
21
|
+
export * from "./CreatePromptCommand";
|
|
21
22
|
export * from "./CreateQueueCommand";
|
|
22
23
|
export * from "./CreateQuickConnectCommand";
|
|
23
24
|
export * from "./CreateRoutingProfileCommand";
|
|
@@ -37,6 +38,7 @@ export * from "./DeleteEvaluationFormCommand";
|
|
|
37
38
|
export * from "./DeleteHoursOfOperationCommand";
|
|
38
39
|
export * from "./DeleteInstanceCommand";
|
|
39
40
|
export * from "./DeleteIntegrationAssociationCommand";
|
|
41
|
+
export * from "./DeletePromptCommand";
|
|
40
42
|
export * from "./DeleteQuickConnectCommand";
|
|
41
43
|
export * from "./DeleteRuleCommand";
|
|
42
44
|
export * from "./DeleteSecurityProfileCommand";
|
|
@@ -57,6 +59,7 @@ export * from "./DescribeInstanceAttributeCommand";
|
|
|
57
59
|
export * from "./DescribeInstanceCommand";
|
|
58
60
|
export * from "./DescribeInstanceStorageConfigCommand";
|
|
59
61
|
export * from "./DescribePhoneNumberCommand";
|
|
62
|
+
export * from "./DescribePromptCommand";
|
|
60
63
|
export * from "./DescribeQueueCommand";
|
|
61
64
|
export * from "./DescribeQuickConnectCommand";
|
|
62
65
|
export * from "./DescribeRoutingProfileCommand";
|
|
@@ -83,6 +86,7 @@ export * from "./GetCurrentUserDataCommand";
|
|
|
83
86
|
export * from "./GetFederationTokenCommand";
|
|
84
87
|
export * from "./GetMetricDataCommand";
|
|
85
88
|
export * from "./GetMetricDataV2Command";
|
|
89
|
+
export * from "./GetPromptFileCommand";
|
|
86
90
|
export * from "./GetTaskTemplateCommand";
|
|
87
91
|
export * from "./GetTrafficDistributionCommand";
|
|
88
92
|
export * from "./ListAgentStatusesCommand";
|
|
@@ -161,6 +165,7 @@ export * from "./UpdateInstanceAttributeCommand";
|
|
|
161
165
|
export * from "./UpdateInstanceStorageConfigCommand";
|
|
162
166
|
export * from "./UpdateParticipantRoleConfigCommand";
|
|
163
167
|
export * from "./UpdatePhoneNumberCommand";
|
|
168
|
+
export * from "./UpdatePromptCommand";
|
|
164
169
|
export * from "./UpdateQueueHoursOfOperationCommand";
|
|
165
170
|
export * from "./UpdateQueueMaxContactsCommand";
|
|
166
171
|
export * from "./UpdateQueueNameCommand";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
1
|
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ConnectServiceException as __BaseException } from "../models/ConnectServiceException";
|
|
5
5
|
import { AccessDeniedException, ContactFlowNotPublishedException, DuplicateResourceException, EvaluationAnswerData, IdempotencyException, InternalServiceException, InvalidContactFlowException, InvalidContactFlowModuleException, InvalidParameterException, InvalidRequestException, LimitExceededException, PropertyValidationException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, } from "../models/models_0";
|
|
@@ -471,6 +471,30 @@ export const se_CreateParticipantCommand = async (input, context) => {
|
|
|
471
471
|
body,
|
|
472
472
|
});
|
|
473
473
|
};
|
|
474
|
+
export const se_CreatePromptCommand = async (input, context) => {
|
|
475
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
476
|
+
const headers = {
|
|
477
|
+
"content-type": "application/json",
|
|
478
|
+
};
|
|
479
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}";
|
|
480
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
481
|
+
let body;
|
|
482
|
+
body = JSON.stringify(take(input, {
|
|
483
|
+
Description: [],
|
|
484
|
+
Name: [],
|
|
485
|
+
S3Uri: [],
|
|
486
|
+
Tags: (_) => _json(_),
|
|
487
|
+
}));
|
|
488
|
+
return new __HttpRequest({
|
|
489
|
+
protocol,
|
|
490
|
+
hostname,
|
|
491
|
+
port,
|
|
492
|
+
method: "PUT",
|
|
493
|
+
headers,
|
|
494
|
+
path: resolvedPath,
|
|
495
|
+
body,
|
|
496
|
+
});
|
|
497
|
+
};
|
|
474
498
|
export const se_CreateQueueCommand = async (input, context) => {
|
|
475
499
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
476
500
|
const headers = {
|
|
@@ -904,6 +928,23 @@ export const se_DeleteIntegrationAssociationCommand = async (input, context) =>
|
|
|
904
928
|
body,
|
|
905
929
|
});
|
|
906
930
|
};
|
|
931
|
+
export const se_DeletePromptCommand = async (input, context) => {
|
|
932
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
933
|
+
const headers = {};
|
|
934
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}";
|
|
935
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
936
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PromptId", () => input.PromptId, "{PromptId}", false);
|
|
937
|
+
let body;
|
|
938
|
+
return new __HttpRequest({
|
|
939
|
+
protocol,
|
|
940
|
+
hostname,
|
|
941
|
+
port,
|
|
942
|
+
method: "DELETE",
|
|
943
|
+
headers,
|
|
944
|
+
path: resolvedPath,
|
|
945
|
+
body,
|
|
946
|
+
});
|
|
947
|
+
};
|
|
907
948
|
export const se_DeleteQuickConnectCommand = async (input, context) => {
|
|
908
949
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
909
950
|
const headers = {};
|
|
@@ -1265,6 +1306,23 @@ export const se_DescribePhoneNumberCommand = async (input, context) => {
|
|
|
1265
1306
|
body,
|
|
1266
1307
|
});
|
|
1267
1308
|
};
|
|
1309
|
+
export const se_DescribePromptCommand = async (input, context) => {
|
|
1310
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1311
|
+
const headers = {};
|
|
1312
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}";
|
|
1313
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1314
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PromptId", () => input.PromptId, "{PromptId}", false);
|
|
1315
|
+
let body;
|
|
1316
|
+
return new __HttpRequest({
|
|
1317
|
+
protocol,
|
|
1318
|
+
hostname,
|
|
1319
|
+
port,
|
|
1320
|
+
method: "GET",
|
|
1321
|
+
headers,
|
|
1322
|
+
path: resolvedPath,
|
|
1323
|
+
body,
|
|
1324
|
+
});
|
|
1325
|
+
};
|
|
1268
1326
|
export const se_DescribeQueueCommand = async (input, context) => {
|
|
1269
1327
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1270
1328
|
const headers = {};
|
|
@@ -1787,6 +1845,23 @@ export const se_GetMetricDataV2Command = async (input, context) => {
|
|
|
1787
1845
|
body,
|
|
1788
1846
|
});
|
|
1789
1847
|
};
|
|
1848
|
+
export const se_GetPromptFileCommand = async (input, context) => {
|
|
1849
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1850
|
+
const headers = {};
|
|
1851
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}/file";
|
|
1852
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1853
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PromptId", () => input.PromptId, "{PromptId}", false);
|
|
1854
|
+
let body;
|
|
1855
|
+
return new __HttpRequest({
|
|
1856
|
+
protocol,
|
|
1857
|
+
hostname,
|
|
1858
|
+
port,
|
|
1859
|
+
method: "GET",
|
|
1860
|
+
headers,
|
|
1861
|
+
path: resolvedPath,
|
|
1862
|
+
body,
|
|
1863
|
+
});
|
|
1864
|
+
};
|
|
1790
1865
|
export const se_GetTaskTemplateCommand = async (input, context) => {
|
|
1791
1866
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1792
1867
|
const headers = {};
|
|
@@ -3591,6 +3666,30 @@ export const se_UpdatePhoneNumberCommand = async (input, context) => {
|
|
|
3591
3666
|
body,
|
|
3592
3667
|
});
|
|
3593
3668
|
};
|
|
3669
|
+
export const se_UpdatePromptCommand = async (input, context) => {
|
|
3670
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3671
|
+
const headers = {
|
|
3672
|
+
"content-type": "application/json",
|
|
3673
|
+
};
|
|
3674
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}";
|
|
3675
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
3676
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PromptId", () => input.PromptId, "{PromptId}", false);
|
|
3677
|
+
let body;
|
|
3678
|
+
body = JSON.stringify(take(input, {
|
|
3679
|
+
Description: [],
|
|
3680
|
+
Name: [],
|
|
3681
|
+
S3Uri: [],
|
|
3682
|
+
}));
|
|
3683
|
+
return new __HttpRequest({
|
|
3684
|
+
protocol,
|
|
3685
|
+
hostname,
|
|
3686
|
+
port,
|
|
3687
|
+
method: "POST",
|
|
3688
|
+
headers,
|
|
3689
|
+
path: resolvedPath,
|
|
3690
|
+
body,
|
|
3691
|
+
});
|
|
3692
|
+
};
|
|
3594
3693
|
export const se_UpdateQueueHoursOfOperationCommand = async (input, context) => {
|
|
3595
3694
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3596
3695
|
const headers = {
|
|
@@ -5060,6 +5159,55 @@ const de_CreateParticipantCommandError = async (output, context) => {
|
|
|
5060
5159
|
});
|
|
5061
5160
|
}
|
|
5062
5161
|
};
|
|
5162
|
+
export const de_CreatePromptCommand = async (output, context) => {
|
|
5163
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5164
|
+
return de_CreatePromptCommandError(output, context);
|
|
5165
|
+
}
|
|
5166
|
+
const contents = map({
|
|
5167
|
+
$metadata: deserializeMetadata(output),
|
|
5168
|
+
});
|
|
5169
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5170
|
+
const doc = take(data, {
|
|
5171
|
+
PromptARN: __expectString,
|
|
5172
|
+
PromptId: __expectString,
|
|
5173
|
+
});
|
|
5174
|
+
Object.assign(contents, doc);
|
|
5175
|
+
return contents;
|
|
5176
|
+
};
|
|
5177
|
+
const de_CreatePromptCommandError = async (output, context) => {
|
|
5178
|
+
const parsedOutput = {
|
|
5179
|
+
...output,
|
|
5180
|
+
body: await parseErrorBody(output.body, context),
|
|
5181
|
+
};
|
|
5182
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5183
|
+
switch (errorCode) {
|
|
5184
|
+
case "DuplicateResourceException":
|
|
5185
|
+
case "com.amazonaws.connect#DuplicateResourceException":
|
|
5186
|
+
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
5187
|
+
case "InternalServiceException":
|
|
5188
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5189
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
5190
|
+
case "InvalidParameterException":
|
|
5191
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
5192
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5193
|
+
case "InvalidRequestException":
|
|
5194
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
5195
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5196
|
+
case "LimitExceededException":
|
|
5197
|
+
case "com.amazonaws.connect#LimitExceededException":
|
|
5198
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5199
|
+
case "ThrottlingException":
|
|
5200
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
5201
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5202
|
+
default:
|
|
5203
|
+
const parsedBody = parsedOutput.body;
|
|
5204
|
+
return throwDefaultError({
|
|
5205
|
+
output,
|
|
5206
|
+
parsedBody,
|
|
5207
|
+
errorCode,
|
|
5208
|
+
});
|
|
5209
|
+
}
|
|
5210
|
+
};
|
|
5063
5211
|
export const de_CreateQueueCommand = async (output, context) => {
|
|
5064
5212
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5065
5213
|
return de_CreateQueueCommandError(output, context);
|
|
@@ -5958,6 +6106,47 @@ const de_DeleteIntegrationAssociationCommandError = async (output, context) => {
|
|
|
5958
6106
|
});
|
|
5959
6107
|
}
|
|
5960
6108
|
};
|
|
6109
|
+
export const de_DeletePromptCommand = async (output, context) => {
|
|
6110
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6111
|
+
return de_DeletePromptCommandError(output, context);
|
|
6112
|
+
}
|
|
6113
|
+
const contents = map({
|
|
6114
|
+
$metadata: deserializeMetadata(output),
|
|
6115
|
+
});
|
|
6116
|
+
await collectBody(output.body, context);
|
|
6117
|
+
return contents;
|
|
6118
|
+
};
|
|
6119
|
+
const de_DeletePromptCommandError = async (output, context) => {
|
|
6120
|
+
const parsedOutput = {
|
|
6121
|
+
...output,
|
|
6122
|
+
body: await parseErrorBody(output.body, context),
|
|
6123
|
+
};
|
|
6124
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6125
|
+
switch (errorCode) {
|
|
6126
|
+
case "InternalServiceException":
|
|
6127
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
6128
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
6129
|
+
case "InvalidParameterException":
|
|
6130
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
6131
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
6132
|
+
case "InvalidRequestException":
|
|
6133
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
6134
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
6135
|
+
case "ResourceNotFoundException":
|
|
6136
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
6137
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6138
|
+
case "ThrottlingException":
|
|
6139
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
6140
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6141
|
+
default:
|
|
6142
|
+
const parsedBody = parsedOutput.body;
|
|
6143
|
+
return throwDefaultError({
|
|
6144
|
+
output,
|
|
6145
|
+
parsedBody,
|
|
6146
|
+
errorCode,
|
|
6147
|
+
});
|
|
6148
|
+
}
|
|
6149
|
+
};
|
|
5961
6150
|
export const de_DeleteQuickConnectCommand = async (output, context) => {
|
|
5962
6151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5963
6152
|
return de_DeleteQuickConnectCommandError(output, context);
|
|
@@ -6832,6 +7021,51 @@ const de_DescribePhoneNumberCommandError = async (output, context) => {
|
|
|
6832
7021
|
});
|
|
6833
7022
|
}
|
|
6834
7023
|
};
|
|
7024
|
+
export const de_DescribePromptCommand = async (output, context) => {
|
|
7025
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7026
|
+
return de_DescribePromptCommandError(output, context);
|
|
7027
|
+
}
|
|
7028
|
+
const contents = map({
|
|
7029
|
+
$metadata: deserializeMetadata(output),
|
|
7030
|
+
});
|
|
7031
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7032
|
+
const doc = take(data, {
|
|
7033
|
+
Prompt: _json,
|
|
7034
|
+
});
|
|
7035
|
+
Object.assign(contents, doc);
|
|
7036
|
+
return contents;
|
|
7037
|
+
};
|
|
7038
|
+
const de_DescribePromptCommandError = async (output, context) => {
|
|
7039
|
+
const parsedOutput = {
|
|
7040
|
+
...output,
|
|
7041
|
+
body: await parseErrorBody(output.body, context),
|
|
7042
|
+
};
|
|
7043
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7044
|
+
switch (errorCode) {
|
|
7045
|
+
case "InternalServiceException":
|
|
7046
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
7047
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
7048
|
+
case "InvalidParameterException":
|
|
7049
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
7050
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
7051
|
+
case "InvalidRequestException":
|
|
7052
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
7053
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
7054
|
+
case "ResourceNotFoundException":
|
|
7055
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
7056
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
7057
|
+
case "ThrottlingException":
|
|
7058
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
7059
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
7060
|
+
default:
|
|
7061
|
+
const parsedBody = parsedOutput.body;
|
|
7062
|
+
return throwDefaultError({
|
|
7063
|
+
output,
|
|
7064
|
+
parsedBody,
|
|
7065
|
+
errorCode,
|
|
7066
|
+
});
|
|
7067
|
+
}
|
|
7068
|
+
};
|
|
6835
7069
|
export const de_DescribeQueueCommand = async (output, context) => {
|
|
6836
7070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6837
7071
|
return de_DescribeQueueCommandError(output, context);
|
|
@@ -7969,6 +8203,51 @@ const de_GetMetricDataV2CommandError = async (output, context) => {
|
|
|
7969
8203
|
});
|
|
7970
8204
|
}
|
|
7971
8205
|
};
|
|
8206
|
+
export const de_GetPromptFileCommand = async (output, context) => {
|
|
8207
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8208
|
+
return de_GetPromptFileCommandError(output, context);
|
|
8209
|
+
}
|
|
8210
|
+
const contents = map({
|
|
8211
|
+
$metadata: deserializeMetadata(output),
|
|
8212
|
+
});
|
|
8213
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
8214
|
+
const doc = take(data, {
|
|
8215
|
+
PromptPresignedUrl: __expectString,
|
|
8216
|
+
});
|
|
8217
|
+
Object.assign(contents, doc);
|
|
8218
|
+
return contents;
|
|
8219
|
+
};
|
|
8220
|
+
const de_GetPromptFileCommandError = async (output, context) => {
|
|
8221
|
+
const parsedOutput = {
|
|
8222
|
+
...output,
|
|
8223
|
+
body: await parseErrorBody(output.body, context),
|
|
8224
|
+
};
|
|
8225
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8226
|
+
switch (errorCode) {
|
|
8227
|
+
case "InternalServiceException":
|
|
8228
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
8229
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
8230
|
+
case "InvalidParameterException":
|
|
8231
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
8232
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
8233
|
+
case "InvalidRequestException":
|
|
8234
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
8235
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
8236
|
+
case "ResourceNotFoundException":
|
|
8237
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
8238
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
8239
|
+
case "ThrottlingException":
|
|
8240
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
8241
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
8242
|
+
default:
|
|
8243
|
+
const parsedBody = parsedOutput.body;
|
|
8244
|
+
return throwDefaultError({
|
|
8245
|
+
output,
|
|
8246
|
+
parsedBody,
|
|
8247
|
+
errorCode,
|
|
8248
|
+
});
|
|
8249
|
+
}
|
|
8250
|
+
};
|
|
7972
8251
|
export const de_GetTaskTemplateCommand = async (output, context) => {
|
|
7973
8252
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7974
8253
|
return de_GetTaskTemplateCommandError(output, context);
|
|
@@ -11478,6 +11757,52 @@ const de_UpdatePhoneNumberCommandError = async (output, context) => {
|
|
|
11478
11757
|
});
|
|
11479
11758
|
}
|
|
11480
11759
|
};
|
|
11760
|
+
export const de_UpdatePromptCommand = async (output, context) => {
|
|
11761
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11762
|
+
return de_UpdatePromptCommandError(output, context);
|
|
11763
|
+
}
|
|
11764
|
+
const contents = map({
|
|
11765
|
+
$metadata: deserializeMetadata(output),
|
|
11766
|
+
});
|
|
11767
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
11768
|
+
const doc = take(data, {
|
|
11769
|
+
PromptARN: __expectString,
|
|
11770
|
+
PromptId: __expectString,
|
|
11771
|
+
});
|
|
11772
|
+
Object.assign(contents, doc);
|
|
11773
|
+
return contents;
|
|
11774
|
+
};
|
|
11775
|
+
const de_UpdatePromptCommandError = async (output, context) => {
|
|
11776
|
+
const parsedOutput = {
|
|
11777
|
+
...output,
|
|
11778
|
+
body: await parseErrorBody(output.body, context),
|
|
11779
|
+
};
|
|
11780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11781
|
+
switch (errorCode) {
|
|
11782
|
+
case "InternalServiceException":
|
|
11783
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
11784
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
11785
|
+
case "InvalidParameterException":
|
|
11786
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
11787
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
11788
|
+
case "InvalidRequestException":
|
|
11789
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
11790
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11791
|
+
case "ResourceNotFoundException":
|
|
11792
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
11793
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
11794
|
+
case "ThrottlingException":
|
|
11795
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
11796
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11797
|
+
default:
|
|
11798
|
+
const parsedBody = parsedOutput.body;
|
|
11799
|
+
return throwDefaultError({
|
|
11800
|
+
output,
|
|
11801
|
+
parsedBody,
|
|
11802
|
+
errorCode,
|
|
11803
|
+
});
|
|
11804
|
+
}
|
|
11805
|
+
};
|
|
11481
11806
|
export const de_UpdateQueueHoursOfOperationCommand = async (output, context) => {
|
|
11482
11807
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11483
11808
|
return de_UpdateQueueHoursOfOperationCommandError(output, context);
|
package/dist-types/Connect.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { CreateHoursOfOperationCommandInput, CreateHoursOfOperationCommandOutput
|
|
|
19
19
|
import { CreateInstanceCommandInput, CreateInstanceCommandOutput } from "./commands/CreateInstanceCommand";
|
|
20
20
|
import { CreateIntegrationAssociationCommandInput, CreateIntegrationAssociationCommandOutput } from "./commands/CreateIntegrationAssociationCommand";
|
|
21
21
|
import { CreateParticipantCommandInput, CreateParticipantCommandOutput } from "./commands/CreateParticipantCommand";
|
|
22
|
+
import { CreatePromptCommandInput, CreatePromptCommandOutput } from "./commands/CreatePromptCommand";
|
|
22
23
|
import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
|
|
23
24
|
import { CreateQuickConnectCommandInput, CreateQuickConnectCommandOutput } from "./commands/CreateQuickConnectCommand";
|
|
24
25
|
import { CreateRoutingProfileCommandInput, CreateRoutingProfileCommandOutput } from "./commands/CreateRoutingProfileCommand";
|
|
@@ -38,6 +39,7 @@ import { DeleteEvaluationFormCommandInput, DeleteEvaluationFormCommandOutput } f
|
|
|
38
39
|
import { DeleteHoursOfOperationCommandInput, DeleteHoursOfOperationCommandOutput } from "./commands/DeleteHoursOfOperationCommand";
|
|
39
40
|
import { DeleteInstanceCommandInput, DeleteInstanceCommandOutput } from "./commands/DeleteInstanceCommand";
|
|
40
41
|
import { DeleteIntegrationAssociationCommandInput, DeleteIntegrationAssociationCommandOutput } from "./commands/DeleteIntegrationAssociationCommand";
|
|
42
|
+
import { DeletePromptCommandInput, DeletePromptCommandOutput } from "./commands/DeletePromptCommand";
|
|
41
43
|
import { DeleteQuickConnectCommandInput, DeleteQuickConnectCommandOutput } from "./commands/DeleteQuickConnectCommand";
|
|
42
44
|
import { DeleteRuleCommandInput, DeleteRuleCommandOutput } from "./commands/DeleteRuleCommand";
|
|
43
45
|
import { DeleteSecurityProfileCommandInput, DeleteSecurityProfileCommandOutput } from "./commands/DeleteSecurityProfileCommand";
|
|
@@ -58,6 +60,7 @@ import { DescribeInstanceAttributeCommandInput, DescribeInstanceAttributeCommand
|
|
|
58
60
|
import { DescribeInstanceCommandInput, DescribeInstanceCommandOutput } from "./commands/DescribeInstanceCommand";
|
|
59
61
|
import { DescribeInstanceStorageConfigCommandInput, DescribeInstanceStorageConfigCommandOutput } from "./commands/DescribeInstanceStorageConfigCommand";
|
|
60
62
|
import { DescribePhoneNumberCommandInput, DescribePhoneNumberCommandOutput } from "./commands/DescribePhoneNumberCommand";
|
|
63
|
+
import { DescribePromptCommandInput, DescribePromptCommandOutput } from "./commands/DescribePromptCommand";
|
|
61
64
|
import { DescribeQueueCommandInput, DescribeQueueCommandOutput } from "./commands/DescribeQueueCommand";
|
|
62
65
|
import { DescribeQuickConnectCommandInput, DescribeQuickConnectCommandOutput } from "./commands/DescribeQuickConnectCommand";
|
|
63
66
|
import { DescribeRoutingProfileCommandInput, DescribeRoutingProfileCommandOutput } from "./commands/DescribeRoutingProfileCommand";
|
|
@@ -84,6 +87,7 @@ import { GetCurrentUserDataCommandInput, GetCurrentUserDataCommandOutput } from
|
|
|
84
87
|
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
85
88
|
import { GetMetricDataCommandInput, GetMetricDataCommandOutput } from "./commands/GetMetricDataCommand";
|
|
86
89
|
import { GetMetricDataV2CommandInput, GetMetricDataV2CommandOutput } from "./commands/GetMetricDataV2Command";
|
|
90
|
+
import { GetPromptFileCommandInput, GetPromptFileCommandOutput } from "./commands/GetPromptFileCommand";
|
|
87
91
|
import { GetTaskTemplateCommandInput, GetTaskTemplateCommandOutput } from "./commands/GetTaskTemplateCommand";
|
|
88
92
|
import { GetTrafficDistributionCommandInput, GetTrafficDistributionCommandOutput } from "./commands/GetTrafficDistributionCommand";
|
|
89
93
|
import { ListAgentStatusesCommandInput, ListAgentStatusesCommandOutput } from "./commands/ListAgentStatusesCommand";
|
|
@@ -162,6 +166,7 @@ import { UpdateInstanceAttributeCommandInput, UpdateInstanceAttributeCommandOutp
|
|
|
162
166
|
import { UpdateInstanceStorageConfigCommandInput, UpdateInstanceStorageConfigCommandOutput } from "./commands/UpdateInstanceStorageConfigCommand";
|
|
163
167
|
import { UpdateParticipantRoleConfigCommandInput, UpdateParticipantRoleConfigCommandOutput } from "./commands/UpdateParticipantRoleConfigCommand";
|
|
164
168
|
import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
|
|
169
|
+
import { UpdatePromptCommandInput, UpdatePromptCommandOutput } from "./commands/UpdatePromptCommand";
|
|
165
170
|
import { UpdateQueueHoursOfOperationCommandInput, UpdateQueueHoursOfOperationCommandOutput } from "./commands/UpdateQueueHoursOfOperationCommand";
|
|
166
171
|
import { UpdateQueueMaxContactsCommandInput, UpdateQueueMaxContactsCommandOutput } from "./commands/UpdateQueueMaxContactsCommand";
|
|
167
172
|
import { UpdateQueueNameCommandInput, UpdateQueueNameCommandOutput } from "./commands/UpdateQueueNameCommand";
|
|
@@ -306,6 +311,12 @@ export interface Connect {
|
|
|
306
311
|
createParticipant(args: CreateParticipantCommandInput, options?: __HttpHandlerOptions): Promise<CreateParticipantCommandOutput>;
|
|
307
312
|
createParticipant(args: CreateParticipantCommandInput, cb: (err: any, data?: CreateParticipantCommandOutput) => void): void;
|
|
308
313
|
createParticipant(args: CreateParticipantCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateParticipantCommandOutput) => void): void;
|
|
314
|
+
/**
|
|
315
|
+
* @see {@link CreatePromptCommand}
|
|
316
|
+
*/
|
|
317
|
+
createPrompt(args: CreatePromptCommandInput, options?: __HttpHandlerOptions): Promise<CreatePromptCommandOutput>;
|
|
318
|
+
createPrompt(args: CreatePromptCommandInput, cb: (err: any, data?: CreatePromptCommandOutput) => void): void;
|
|
319
|
+
createPrompt(args: CreatePromptCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePromptCommandOutput) => void): void;
|
|
309
320
|
/**
|
|
310
321
|
* @see {@link CreateQueueCommand}
|
|
311
322
|
*/
|
|
@@ -420,6 +431,12 @@ export interface Connect {
|
|
|
420
431
|
deleteIntegrationAssociation(args: DeleteIntegrationAssociationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIntegrationAssociationCommandOutput>;
|
|
421
432
|
deleteIntegrationAssociation(args: DeleteIntegrationAssociationCommandInput, cb: (err: any, data?: DeleteIntegrationAssociationCommandOutput) => void): void;
|
|
422
433
|
deleteIntegrationAssociation(args: DeleteIntegrationAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIntegrationAssociationCommandOutput) => void): void;
|
|
434
|
+
/**
|
|
435
|
+
* @see {@link DeletePromptCommand}
|
|
436
|
+
*/
|
|
437
|
+
deletePrompt(args: DeletePromptCommandInput, options?: __HttpHandlerOptions): Promise<DeletePromptCommandOutput>;
|
|
438
|
+
deletePrompt(args: DeletePromptCommandInput, cb: (err: any, data?: DeletePromptCommandOutput) => void): void;
|
|
439
|
+
deletePrompt(args: DeletePromptCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePromptCommandOutput) => void): void;
|
|
423
440
|
/**
|
|
424
441
|
* @see {@link DeleteQuickConnectCommand}
|
|
425
442
|
*/
|
|
@@ -540,6 +557,12 @@ export interface Connect {
|
|
|
540
557
|
describePhoneNumber(args: DescribePhoneNumberCommandInput, options?: __HttpHandlerOptions): Promise<DescribePhoneNumberCommandOutput>;
|
|
541
558
|
describePhoneNumber(args: DescribePhoneNumberCommandInput, cb: (err: any, data?: DescribePhoneNumberCommandOutput) => void): void;
|
|
542
559
|
describePhoneNumber(args: DescribePhoneNumberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribePhoneNumberCommandOutput) => void): void;
|
|
560
|
+
/**
|
|
561
|
+
* @see {@link DescribePromptCommand}
|
|
562
|
+
*/
|
|
563
|
+
describePrompt(args: DescribePromptCommandInput, options?: __HttpHandlerOptions): Promise<DescribePromptCommandOutput>;
|
|
564
|
+
describePrompt(args: DescribePromptCommandInput, cb: (err: any, data?: DescribePromptCommandOutput) => void): void;
|
|
565
|
+
describePrompt(args: DescribePromptCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribePromptCommandOutput) => void): void;
|
|
543
566
|
/**
|
|
544
567
|
* @see {@link DescribeQueueCommand}
|
|
545
568
|
*/
|
|
@@ -696,6 +719,12 @@ export interface Connect {
|
|
|
696
719
|
getMetricDataV2(args: GetMetricDataV2CommandInput, options?: __HttpHandlerOptions): Promise<GetMetricDataV2CommandOutput>;
|
|
697
720
|
getMetricDataV2(args: GetMetricDataV2CommandInput, cb: (err: any, data?: GetMetricDataV2CommandOutput) => void): void;
|
|
698
721
|
getMetricDataV2(args: GetMetricDataV2CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMetricDataV2CommandOutput) => void): void;
|
|
722
|
+
/**
|
|
723
|
+
* @see {@link GetPromptFileCommand}
|
|
724
|
+
*/
|
|
725
|
+
getPromptFile(args: GetPromptFileCommandInput, options?: __HttpHandlerOptions): Promise<GetPromptFileCommandOutput>;
|
|
726
|
+
getPromptFile(args: GetPromptFileCommandInput, cb: (err: any, data?: GetPromptFileCommandOutput) => void): void;
|
|
727
|
+
getPromptFile(args: GetPromptFileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPromptFileCommandOutput) => void): void;
|
|
699
728
|
/**
|
|
700
729
|
* @see {@link GetTaskTemplateCommand}
|
|
701
730
|
*/
|
|
@@ -1164,6 +1193,12 @@ export interface Connect {
|
|
|
1164
1193
|
updatePhoneNumber(args: UpdatePhoneNumberCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePhoneNumberCommandOutput>;
|
|
1165
1194
|
updatePhoneNumber(args: UpdatePhoneNumberCommandInput, cb: (err: any, data?: UpdatePhoneNumberCommandOutput) => void): void;
|
|
1166
1195
|
updatePhoneNumber(args: UpdatePhoneNumberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePhoneNumberCommandOutput) => void): void;
|
|
1196
|
+
/**
|
|
1197
|
+
* @see {@link UpdatePromptCommand}
|
|
1198
|
+
*/
|
|
1199
|
+
updatePrompt(args: UpdatePromptCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePromptCommandOutput>;
|
|
1200
|
+
updatePrompt(args: UpdatePromptCommandInput, cb: (err: any, data?: UpdatePromptCommandOutput) => void): void;
|
|
1201
|
+
updatePrompt(args: UpdatePromptCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePromptCommandOutput) => void): void;
|
|
1167
1202
|
/**
|
|
1168
1203
|
* @see {@link UpdateQueueHoursOfOperationCommand}
|
|
1169
1204
|
*/
|