@aws-sdk/client-connect 3.369.0 → 3.372.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.
Files changed (32) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/Connect.js +4 -0
  3. package/dist-cjs/commands/DeleteQueueCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteRoutingProfileCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/protocols/Aws_restJson1.js +135 -8
  7. package/dist-es/Connect.js +4 -0
  8. package/dist-es/commands/DeleteQueueCommand.js +42 -0
  9. package/dist-es/commands/DeleteRoutingProfileCommand.js +42 -0
  10. package/dist-es/commands/index.js +2 -0
  11. package/dist-es/protocols/Aws_restJson1.js +123 -0
  12. package/dist-types/Connect.d.ts +14 -0
  13. package/dist-types/ConnectClient.d.ts +4 -2
  14. package/dist-types/commands/DeleteQueueCommand.d.ts +90 -0
  15. package/dist-types/commands/DeleteRoutingProfileCommand.d.ts +90 -0
  16. package/dist-types/commands/GetCurrentMetricDataCommand.d.ts +1 -2
  17. package/dist-types/commands/index.d.ts +2 -0
  18. package/dist-types/models/models_0.d.ts +56 -216
  19. package/dist-types/models/models_1.d.ts +304 -67
  20. package/dist-types/models/models_2.d.ts +54 -1
  21. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  22. package/dist-types/ts3.4/Connect.d.ts +34 -0
  23. package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
  24. package/dist-types/ts3.4/commands/DeleteQueueCommand.d.ts +33 -0
  25. package/dist-types/ts3.4/commands/DeleteRoutingProfileCommand.d.ts +37 -0
  26. package/dist-types/ts3.4/commands/GetCurrentMetricDataCommand.d.ts +4 -2
  27. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +18 -23
  29. package/dist-types/ts3.4/models/models_1.d.ts +15 -11
  30. package/dist-types/ts3.4/models/models_2.d.ts +12 -2
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  32. package/package.json +16 -17
@@ -208,10 +208,18 @@ import {
208
208
  DeletePromptCommandInput,
209
209
  DeletePromptCommandOutput,
210
210
  } from "./commands/DeletePromptCommand";
211
+ import {
212
+ DeleteQueueCommandInput,
213
+ DeleteQueueCommandOutput,
214
+ } from "./commands/DeleteQueueCommand";
211
215
  import {
212
216
  DeleteQuickConnectCommandInput,
213
217
  DeleteQuickConnectCommandOutput,
214
218
  } from "./commands/DeleteQuickConnectCommand";
219
+ import {
220
+ DeleteRoutingProfileCommandInput,
221
+ DeleteRoutingProfileCommandOutput,
222
+ } from "./commands/DeleteRoutingProfileCommand";
215
223
  import {
216
224
  DeleteRuleCommandInput,
217
225
  DeleteRuleCommandOutput,
@@ -868,7 +876,9 @@ export type ServiceInputTypes =
868
876
  | DeleteInstanceCommandInput
869
877
  | DeleteIntegrationAssociationCommandInput
870
878
  | DeletePromptCommandInput
879
+ | DeleteQueueCommandInput
871
880
  | DeleteQuickConnectCommandInput
881
+ | DeleteRoutingProfileCommandInput
872
882
  | DeleteRuleCommandInput
873
883
  | DeleteSecurityProfileCommandInput
874
884
  | DeleteTaskTemplateCommandInput
@@ -1063,7 +1073,9 @@ export type ServiceOutputTypes =
1063
1073
  | DeleteInstanceCommandOutput
1064
1074
  | DeleteIntegrationAssociationCommandOutput
1065
1075
  | DeletePromptCommandOutput
1076
+ | DeleteQueueCommandOutput
1066
1077
  | DeleteQuickConnectCommandOutput
1078
+ | DeleteRoutingProfileCommandOutput
1067
1079
  | DeleteRuleCommandOutput
1068
1080
  | DeleteSecurityProfileCommandOutput
1069
1081
  | DeleteTaskTemplateCommandOutput
@@ -0,0 +1,33 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ConnectClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ConnectClient";
14
+ import { DeleteQueueRequest } from "../models/models_0";
15
+ export { __MetadataBearer, $Command };
16
+ export interface DeleteQueueCommandInput extends DeleteQueueRequest {}
17
+ export interface DeleteQueueCommandOutput extends __MetadataBearer {}
18
+ export declare class DeleteQueueCommand extends $Command<
19
+ DeleteQueueCommandInput,
20
+ DeleteQueueCommandOutput,
21
+ ConnectClientResolvedConfig
22
+ > {
23
+ readonly input: DeleteQueueCommandInput;
24
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
25
+ constructor(input: DeleteQueueCommandInput);
26
+ resolveMiddleware(
27
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
28
+ configuration: ConnectClientResolvedConfig,
29
+ options?: __HttpHandlerOptions
30
+ ): Handler<DeleteQueueCommandInput, DeleteQueueCommandOutput>;
31
+ private serialize;
32
+ private deserialize;
33
+ }
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ConnectClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ConnectClient";
14
+ import { DeleteRoutingProfileRequest } from "../models/models_0";
15
+ export { __MetadataBearer, $Command };
16
+ export interface DeleteRoutingProfileCommandInput
17
+ extends DeleteRoutingProfileRequest {}
18
+ export interface DeleteRoutingProfileCommandOutput extends __MetadataBearer {}
19
+ export declare class DeleteRoutingProfileCommand extends $Command<
20
+ DeleteRoutingProfileCommandInput,
21
+ DeleteRoutingProfileCommandOutput,
22
+ ConnectClientResolvedConfig
23
+ > {
24
+ readonly input: DeleteRoutingProfileCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
26
+ constructor(input: DeleteRoutingProfileCommandInput);
27
+ resolveMiddleware(
28
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
29
+ configuration: ConnectClientResolvedConfig,
30
+ options?: __HttpHandlerOptions
31
+ ): Handler<
32
+ DeleteRoutingProfileCommandInput,
33
+ DeleteRoutingProfileCommandOutput
34
+ >;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -11,8 +11,10 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../ConnectClient";
14
- import { GetCurrentMetricDataRequest } from "../models/models_0";
15
- import { GetCurrentMetricDataResponse } from "../models/models_1";
14
+ import {
15
+ GetCurrentMetricDataRequest,
16
+ GetCurrentMetricDataResponse,
17
+ } from "../models/models_1";
16
18
  export { __MetadataBearer, $Command };
17
19
  export interface GetCurrentMetricDataCommandInput
18
20
  extends GetCurrentMetricDataRequest {}
@@ -39,7 +39,9 @@ export * from "./DeleteHoursOfOperationCommand";
39
39
  export * from "./DeleteInstanceCommand";
40
40
  export * from "./DeleteIntegrationAssociationCommand";
41
41
  export * from "./DeletePromptCommand";
42
+ export * from "./DeleteQueueCommand";
42
43
  export * from "./DeleteQuickConnectCommand";
44
+ export * from "./DeleteRoutingProfileCommand";
43
45
  export * from "./DeleteRuleCommand";
44
46
  export * from "./DeleteSecurityProfileCommand";
45
47
  export * from "./DeleteTaskTemplateCommand";
@@ -1125,17 +1125,9 @@ export interface DeletePromptRequest {
1125
1125
  InstanceId: string | undefined;
1126
1126
  PromptId: string | undefined;
1127
1127
  }
1128
- export interface DeleteQuickConnectRequest {
1129
- InstanceId: string | undefined;
1130
- QuickConnectId: string | undefined;
1131
- }
1132
- export interface DeleteRuleRequest {
1128
+ export interface DeleteQueueRequest {
1133
1129
  InstanceId: string | undefined;
1134
- RuleId: string | undefined;
1135
- }
1136
- export interface DeleteSecurityProfileRequest {
1137
- InstanceId: string | undefined;
1138
- SecurityProfileId: string | undefined;
1130
+ QueueId: string | undefined;
1139
1131
  }
1140
1132
  export declare const ResourceType: {
1141
1133
  readonly CONTACT: "CONTACT";
@@ -1157,6 +1149,22 @@ export declare class ResourceInUseException extends __BaseException {
1157
1149
  opts: __ExceptionOptionType<ResourceInUseException, __BaseException>
1158
1150
  );
1159
1151
  }
1152
+ export interface DeleteQuickConnectRequest {
1153
+ InstanceId: string | undefined;
1154
+ QuickConnectId: string | undefined;
1155
+ }
1156
+ export interface DeleteRoutingProfileRequest {
1157
+ InstanceId: string | undefined;
1158
+ RoutingProfileId: string | undefined;
1159
+ }
1160
+ export interface DeleteRuleRequest {
1161
+ InstanceId: string | undefined;
1162
+ RuleId: string | undefined;
1163
+ }
1164
+ export interface DeleteSecurityProfileRequest {
1165
+ InstanceId: string | undefined;
1166
+ SecurityProfileId: string | undefined;
1167
+ }
1160
1168
  export interface DeleteTaskTemplateRequest {
1161
1169
  InstanceId: string | undefined;
1162
1170
  TaskTemplateId: string | undefined;
@@ -2044,19 +2052,6 @@ export declare const SortOrder: {
2044
2052
  readonly DESCENDING: "DESCENDING";
2045
2053
  };
2046
2054
  export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
2047
- export interface CurrentMetricSortCriteria {
2048
- SortByMetric?: CurrentMetricName | string;
2049
- SortOrder?: SortOrder | string;
2050
- }
2051
- export interface GetCurrentMetricDataRequest {
2052
- InstanceId: string | undefined;
2053
- Filters: Filters | undefined;
2054
- Groupings?: (Grouping | string)[];
2055
- CurrentMetrics: CurrentMetric[] | undefined;
2056
- NextToken?: string;
2057
- MaxResults?: number;
2058
- SortCriteria?: CurrentMetricSortCriteria[];
2059
- }
2060
2055
  export declare const CreateInstanceRequestFilterSensitiveLog: (
2061
2056
  obj: CreateInstanceRequest
2062
2057
  ) => any;
@@ -14,6 +14,7 @@ import {
14
14
  ContactFlowType,
15
15
  ContactState,
16
16
  CurrentMetric,
17
+ CurrentMetricName,
17
18
  DirectoryType,
18
19
  EvaluationAnswerData,
19
20
  EvaluationFormQuestion,
@@ -53,6 +54,7 @@ import {
53
54
  RoutingProfileQueueConfig,
54
55
  RuleAction,
55
56
  RulePublishStatus,
57
+ SortOrder,
56
58
  SourceType,
57
59
  TaskTemplateConstraints,
58
60
  TaskTemplateDefaults,
@@ -66,6 +68,19 @@ import {
66
68
  VocabularyLanguageCode,
67
69
  VocabularyState,
68
70
  } from "./models_0";
71
+ export interface CurrentMetricSortCriteria {
72
+ SortByMetric?: CurrentMetricName | string;
73
+ SortOrder?: SortOrder | string;
74
+ }
75
+ export interface GetCurrentMetricDataRequest {
76
+ InstanceId: string | undefined;
77
+ Filters: Filters | undefined;
78
+ Groupings?: (Grouping | string)[];
79
+ CurrentMetrics: CurrentMetric[] | undefined;
80
+ NextToken?: string;
81
+ MaxResults?: number;
82
+ SortCriteria?: CurrentMetricSortCriteria[];
83
+ }
69
84
  export interface CurrentMetricData {
70
85
  Metric?: CurrentMetric;
71
86
  Value?: number;
@@ -1784,17 +1799,6 @@ export interface HoursOfOperationSearchCriteria {
1784
1799
  AndConditions?: HoursOfOperationSearchCriteria[];
1785
1800
  StringCondition?: StringCondition;
1786
1801
  }
1787
- export interface PromptSearchCriteria {
1788
- OrConditions?: PromptSearchCriteria[];
1789
- AndConditions?: PromptSearchCriteria[];
1790
- StringCondition?: StringCondition;
1791
- }
1792
- export interface QueueSearchCriteria {
1793
- OrConditions?: QueueSearchCriteria[];
1794
- AndConditions?: QueueSearchCriteria[];
1795
- StringCondition?: StringCondition;
1796
- QueueTypeCondition?: SearchableQueueType | string;
1797
- }
1798
1802
  export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
1799
1803
  export declare const GetFederationTokenResponseFilterSensitiveLog: (
1800
1804
  obj: GetFederationTokenResponse
@@ -6,16 +6,26 @@ import {
6
6
  HierarchyGroupCondition,
7
7
  HoursOfOperationSearchCriteria,
8
8
  HoursOfOperationSearchFilter,
9
- PromptSearchCriteria,
10
9
  PromptSearchFilter,
11
- QueueSearchCriteria,
12
10
  QueueSearchFilter,
13
11
  QuickConnectSearchFilter,
14
12
  RoutingProfileSearchFilter,
13
+ SearchableQueueType,
15
14
  SecurityProfilesSearchFilter,
16
15
  StringCondition,
17
16
  UserSearchFilter,
18
17
  } from "./models_1";
18
+ export interface PromptSearchCriteria {
19
+ OrConditions?: PromptSearchCriteria[];
20
+ AndConditions?: PromptSearchCriteria[];
21
+ StringCondition?: StringCondition;
22
+ }
23
+ export interface QueueSearchCriteria {
24
+ OrConditions?: QueueSearchCriteria[];
25
+ AndConditions?: QueueSearchCriteria[];
26
+ StringCondition?: StringCondition;
27
+ QueueTypeCondition?: SearchableQueueType | string;
28
+ }
19
29
  export interface QuickConnectSearchCriteria {
20
30
  OrConditions?: QuickConnectSearchCriteria[];
21
31
  AndConditions?: QuickConnectSearchCriteria[];
@@ -167,10 +167,18 @@ import {
167
167
  DeletePromptCommandInput,
168
168
  DeletePromptCommandOutput,
169
169
  } from "../commands/DeletePromptCommand";
170
+ import {
171
+ DeleteQueueCommandInput,
172
+ DeleteQueueCommandOutput,
173
+ } from "../commands/DeleteQueueCommand";
170
174
  import {
171
175
  DeleteQuickConnectCommandInput,
172
176
  DeleteQuickConnectCommandOutput,
173
177
  } from "../commands/DeleteQuickConnectCommand";
178
+ import {
179
+ DeleteRoutingProfileCommandInput,
180
+ DeleteRoutingProfileCommandOutput,
181
+ } from "../commands/DeleteRoutingProfileCommand";
174
182
  import {
175
183
  DeleteRuleCommandInput,
176
184
  DeleteRuleCommandOutput,
@@ -943,10 +951,18 @@ export declare const se_DeletePromptCommand: (
943
951
  input: DeletePromptCommandInput,
944
952
  context: __SerdeContext
945
953
  ) => Promise<__HttpRequest>;
954
+ export declare const se_DeleteQueueCommand: (
955
+ input: DeleteQueueCommandInput,
956
+ context: __SerdeContext
957
+ ) => Promise<__HttpRequest>;
946
958
  export declare const se_DeleteQuickConnectCommand: (
947
959
  input: DeleteQuickConnectCommandInput,
948
960
  context: __SerdeContext
949
961
  ) => Promise<__HttpRequest>;
962
+ export declare const se_DeleteRoutingProfileCommand: (
963
+ input: DeleteRoutingProfileCommandInput,
964
+ context: __SerdeContext
965
+ ) => Promise<__HttpRequest>;
950
966
  export declare const se_DeleteRuleCommand: (
951
967
  input: DeleteRuleCommandInput,
952
968
  context: __SerdeContext
@@ -1719,10 +1735,18 @@ export declare const de_DeletePromptCommand: (
1719
1735
  output: __HttpResponse,
1720
1736
  context: __SerdeContext
1721
1737
  ) => Promise<DeletePromptCommandOutput>;
1738
+ export declare const de_DeleteQueueCommand: (
1739
+ output: __HttpResponse,
1740
+ context: __SerdeContext
1741
+ ) => Promise<DeleteQueueCommandOutput>;
1722
1742
  export declare const de_DeleteQuickConnectCommand: (
1723
1743
  output: __HttpResponse,
1724
1744
  context: __SerdeContext
1725
1745
  ) => Promise<DeleteQuickConnectCommandOutput>;
1746
+ export declare const de_DeleteRoutingProfileCommand: (
1747
+ output: __HttpResponse,
1748
+ context: __SerdeContext
1749
+ ) => Promise<DeleteRoutingProfileCommandOutput>;
1726
1750
  export declare const de_DeleteRuleCommand: (
1727
1751
  output: __HttpResponse,
1728
1752
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connect",
3
3
  "description": "AWS SDK for JavaScript Connect Client for Node.js, Browser and React Native",
4
- "version": "3.369.0",
4
+ "version": "3.372.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",
@@ -21,29 +21,29 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.369.0",
25
- "@aws-sdk/credential-provider-node": "3.369.0",
26
- "@aws-sdk/middleware-host-header": "3.369.0",
27
- "@aws-sdk/middleware-logger": "3.369.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.369.0",
29
- "@aws-sdk/middleware-signing": "3.369.0",
30
- "@aws-sdk/middleware-user-agent": "3.369.0",
31
- "@aws-sdk/types": "3.369.0",
32
- "@aws-sdk/util-endpoints": "3.369.0",
33
- "@aws-sdk/util-user-agent-browser": "3.369.0",
34
- "@aws-sdk/util-user-agent-node": "3.369.0",
24
+ "@aws-sdk/client-sts": "3.370.0",
25
+ "@aws-sdk/credential-provider-node": "3.370.0",
26
+ "@aws-sdk/middleware-host-header": "3.370.0",
27
+ "@aws-sdk/middleware-logger": "3.370.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.370.0",
29
+ "@aws-sdk/middleware-signing": "3.370.0",
30
+ "@aws-sdk/middleware-user-agent": "3.370.0",
31
+ "@aws-sdk/types": "3.370.0",
32
+ "@aws-sdk/util-endpoints": "3.370.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.370.0",
34
+ "@aws-sdk/util-user-agent-node": "3.370.0",
35
35
  "@smithy/config-resolver": "^1.0.1",
36
36
  "@smithy/fetch-http-handler": "^1.0.1",
37
37
  "@smithy/hash-node": "^1.0.1",
38
38
  "@smithy/invalid-dependency": "^1.0.1",
39
39
  "@smithy/middleware-content-length": "^1.0.1",
40
- "@smithy/middleware-endpoint": "^1.0.1",
41
- "@smithy/middleware-retry": "^1.0.2",
40
+ "@smithy/middleware-endpoint": "^1.0.2",
41
+ "@smithy/middleware-retry": "^1.0.3",
42
42
  "@smithy/middleware-serde": "^1.0.1",
43
43
  "@smithy/middleware-stack": "^1.0.1",
44
44
  "@smithy/node-config-provider": "^1.0.1",
45
45
  "@smithy/node-http-handler": "^1.0.2",
46
- "@smithy/protocol-http": "^1.0.1",
46
+ "@smithy/protocol-http": "^1.1.0",
47
47
  "@smithy/smithy-client": "^1.0.3",
48
48
  "@smithy/types": "^1.1.0",
49
49
  "@smithy/url-parser": "^1.0.1",
@@ -52,13 +52,12 @@
52
52
  "@smithy/util-body-length-node": "^1.0.1",
53
53
  "@smithy/util-defaults-mode-browser": "^1.0.1",
54
54
  "@smithy/util-defaults-mode-node": "^1.0.1",
55
- "@smithy/util-retry": "^1.0.2",
55
+ "@smithy/util-retry": "^1.0.3",
56
56
  "@smithy/util-utf8": "^1.0.1",
57
57
  "tslib": "^2.5.0",
58
58
  "uuid": "^8.3.2"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/service-client-documentation-generator": "3.310.0",
62
61
  "@smithy/service-client-documentation-generator": "^1.0.1",
63
62
  "@tsconfig/node14": "1.0.3",
64
63
  "@types/node": "^14.14.31",