@aws-sdk/client-connect 3.395.0 → 3.405.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 (154) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/Connect.js +18 -0
  3. package/dist-cjs/commands/CreateViewCommand.js +47 -0
  4. package/dist-cjs/commands/CreateViewVersionCommand.js +47 -0
  5. package/dist-cjs/commands/DeleteViewCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteViewVersionCommand.js +46 -0
  7. package/dist-cjs/commands/DescribeViewCommand.js +47 -0
  8. package/dist-cjs/commands/ListViewVersionsCommand.js +47 -0
  9. package/dist-cjs/commands/ListViewsCommand.js +47 -0
  10. package/dist-cjs/commands/UpdateViewContentCommand.js +47 -0
  11. package/dist-cjs/commands/UpdateViewMetadataCommand.js +47 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/models/models_0.js +66 -6
  14. package/dist-cjs/models/models_1.js +25 -1
  15. package/dist-cjs/models/models_2.js +18 -1
  16. package/dist-cjs/pagination/ListViewVersionsPaginator.js +29 -0
  17. package/dist-cjs/pagination/ListViewsPaginator.js +29 -0
  18. package/dist-cjs/pagination/index.js +2 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +713 -20
  20. package/dist-cjs/runtimeExtensions.js +5 -5
  21. package/dist-es/Connect.js +18 -0
  22. package/dist-es/commands/CreateViewCommand.js +43 -0
  23. package/dist-es/commands/CreateViewVersionCommand.js +43 -0
  24. package/dist-es/commands/DeleteViewCommand.js +42 -0
  25. package/dist-es/commands/DeleteViewVersionCommand.js +42 -0
  26. package/dist-es/commands/DescribeViewCommand.js +43 -0
  27. package/dist-es/commands/ListViewVersionsCommand.js +43 -0
  28. package/dist-es/commands/ListViewsCommand.js +43 -0
  29. package/dist-es/commands/UpdateViewContentCommand.js +43 -0
  30. package/dist-es/commands/UpdateViewMetadataCommand.js +43 -0
  31. package/dist-es/commands/index.js +9 -0
  32. package/dist-es/models/models_0.js +57 -5
  33. package/dist-es/models/models_1.js +20 -0
  34. package/dist-es/models/models_2.js +14 -0
  35. package/dist-es/pagination/ListViewVersionsPaginator.js +25 -0
  36. package/dist-es/pagination/ListViewsPaginator.js +25 -0
  37. package/dist-es/pagination/index.js +2 -0
  38. package/dist-es/protocols/Aws_restJson1.js +687 -13
  39. package/dist-es/runtimeExtensions.js +5 -5
  40. package/dist-types/Connect.d.ts +63 -0
  41. package/dist-types/ConnectClient.d.ts +11 -2
  42. package/dist-types/commands/CreateQueueCommand.d.ts +20 -13
  43. package/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +8 -0
  44. package/dist-types/commands/CreateViewCommand.d.ts +140 -0
  45. package/dist-types/commands/CreateViewVersionCommand.d.ts +126 -0
  46. package/dist-types/commands/DeleteViewCommand.d.ts +93 -0
  47. package/dist-types/commands/DeleteViewVersionCommand.d.ts +94 -0
  48. package/dist-types/commands/DescribeViewCommand.d.ts +121 -0
  49. package/dist-types/commands/DescribeVocabularyCommand.d.ts +2 -1
  50. package/dist-types/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
  51. package/dist-types/commands/DisassociateBotCommand.d.ts +1 -1
  52. package/dist-types/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
  53. package/dist-types/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
  54. package/dist-types/commands/DisassociateLexBotCommand.d.ts +1 -1
  55. package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
  56. package/dist-types/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
  57. package/dist-types/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
  58. package/dist-types/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
  59. package/dist-types/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
  60. package/dist-types/commands/DismissUserContactCommand.d.ts +1 -1
  61. package/dist-types/commands/GetContactAttributesCommand.d.ts +1 -2
  62. package/dist-types/commands/ListPhoneNumbersCommand.d.ts +14 -4
  63. package/dist-types/commands/ListViewVersionsCommand.d.ts +106 -0
  64. package/dist-types/commands/ListViewsCommand.d.ts +105 -0
  65. package/dist-types/commands/StopContactCommand.d.ts +5 -3
  66. package/dist-types/commands/UpdatePromptCommand.d.ts +2 -1
  67. package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  68. package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  69. package/dist-types/commands/UpdateQueueNameCommand.d.ts +1 -1
  70. package/dist-types/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +21 -14
  71. package/dist-types/commands/UpdateQueueStatusCommand.d.ts +1 -1
  72. package/dist-types/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
  73. package/dist-types/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
  74. package/dist-types/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
  75. package/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
  76. package/dist-types/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
  77. package/dist-types/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
  78. package/dist-types/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
  79. package/dist-types/commands/UpdateRuleCommand.d.ts +1 -1
  80. package/dist-types/commands/UpdateSecurityProfileCommand.d.ts +1 -1
  81. package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +1 -1
  82. package/dist-types/commands/UpdateTrafficDistributionCommand.d.ts +6 -3
  83. package/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  84. package/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  85. package/dist-types/commands/UpdateViewContentCommand.d.ts +127 -0
  86. package/dist-types/commands/UpdateViewMetadataCommand.d.ts +99 -0
  87. package/dist-types/commands/index.d.ts +9 -0
  88. package/dist-types/extensionConfiguration.d.ts +6 -0
  89. package/dist-types/models/models_0.d.ts +359 -317
  90. package/dist-types/models/models_1.d.ts +478 -553
  91. package/dist-types/models/models_2.d.ts +632 -2
  92. package/dist-types/pagination/ListViewVersionsPaginator.d.ts +7 -0
  93. package/dist-types/pagination/ListViewsPaginator.d.ts +7 -0
  94. package/dist-types/pagination/index.d.ts +2 -0
  95. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  96. package/dist-types/runtimeExtensions.d.ts +2 -2
  97. package/dist-types/ts3.4/Connect.d.ts +153 -0
  98. package/dist-types/ts3.4/ConnectClient.d.ts +56 -2
  99. package/dist-types/ts3.4/commands/CreateViewCommand.d.ts +35 -0
  100. package/dist-types/ts3.4/commands/CreateViewVersionCommand.d.ts +39 -0
  101. package/dist-types/ts3.4/commands/DeleteViewCommand.d.ts +35 -0
  102. package/dist-types/ts3.4/commands/DeleteViewVersionCommand.d.ts +39 -0
  103. package/dist-types/ts3.4/commands/DescribeViewCommand.d.ts +35 -0
  104. package/dist-types/ts3.4/commands/DescribeVocabularyCommand.d.ts +2 -4
  105. package/dist-types/ts3.4/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/DisassociateBotCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/DisassociateLexBotCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
  115. package/dist-types/ts3.4/commands/DismissUserContactCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/GetContactAttributesCommand.d.ts +4 -2
  117. package/dist-types/ts3.4/commands/ListViewVersionsCommand.d.ts +38 -0
  118. package/dist-types/ts3.4/commands/ListViewsCommand.d.ts +35 -0
  119. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +2 -1
  120. package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/UpdateQueueNameCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/UpdateQueueStatusCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
  129. package/dist-types/ts3.4/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
  130. package/dist-types/ts3.4/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
  131. package/dist-types/ts3.4/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
  132. package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +1 -1
  133. package/dist-types/ts3.4/commands/UpdateSecurityProfileCommand.d.ts +1 -1
  134. package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +1 -1
  135. package/dist-types/ts3.4/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
  136. package/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  137. package/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  138. package/dist-types/ts3.4/commands/UpdateViewContentCommand.d.ts +39 -0
  139. package/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +39 -0
  140. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  141. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -0
  142. package/dist-types/ts3.4/models/models_0.d.ts +117 -90
  143. package/dist-types/ts3.4/models/models_1.d.ts +121 -135
  144. package/dist-types/ts3.4/models/models_2.d.ts +171 -1
  145. package/dist-types/ts3.4/pagination/ListViewVersionsPaginator.d.ts +11 -0
  146. package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +11 -0
  147. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  148. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  149. package/dist-types/ts3.4/runtimeExtensions.d.ts +2 -2
  150. package/package.json +29 -29
  151. package/dist-types/clientConfiguration.d.ts +0 -6
  152. package/dist-types/ts3.4/clientConfiguration.d.ts +0 -3
  153. /package/dist-cjs/{clientConfiguration.js → extensionConfiguration.js} +0 -0
  154. /package/dist-es/{clientConfiguration.js → extensionConfiguration.js} +0 -0
@@ -1,3 +1,5 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { ViewFilterSensitiveLog, ViewInputContentFilterSensitiveLog, } from "./models_0";
1
3
  export var EvaluationFormItem;
2
4
  (function (EvaluationFormItem) {
3
5
  EvaluationFormItem.visit = (value, visitor) => {
@@ -8,3 +10,15 @@ export var EvaluationFormItem;
8
10
  return visitor._(value.$unknown[0], value.$unknown[1]);
9
11
  };
10
12
  })(EvaluationFormItem || (EvaluationFormItem = {}));
13
+ export const UpdateViewContentRequestFilterSensitiveLog = (obj) => ({
14
+ ...obj,
15
+ ...(obj.Content && { Content: ViewInputContentFilterSensitiveLog(obj.Content) }),
16
+ });
17
+ export const UpdateViewContentResponseFilterSensitiveLog = (obj) => ({
18
+ ...obj,
19
+ ...(obj.View && { View: ViewFilterSensitiveLog(obj.View) }),
20
+ });
21
+ export const UpdateViewMetadataRequestFilterSensitiveLog = (obj) => ({
22
+ ...obj,
23
+ ...(obj.Name && { Name: SENSITIVE_STRING }),
24
+ });
@@ -0,0 +1,25 @@
1
+ import { ListViewVersionsCommand, } from "../commands/ListViewVersionsCommand";
2
+ import { ConnectClient } from "../ConnectClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListViewVersionsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListViewVersions(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof ConnectClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Connect | ConnectClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListViewsCommand } from "../commands/ListViewsCommand";
2
+ import { ConnectClient } from "../ConnectClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListViewsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListViews(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof ConnectClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Connect | ConnectClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -38,6 +38,8 @@ export * from "./ListTrafficDistributionGroupsPaginator";
38
38
  export * from "./ListUseCasesPaginator";
39
39
  export * from "./ListUserHierarchyGroupsPaginator";
40
40
  export * from "./ListUsersPaginator";
41
+ export * from "./ListViewVersionsPaginator";
42
+ export * from "./ListViewsPaginator";
41
43
  export * from "./SearchAvailablePhoneNumbersPaginator";
42
44
  export * from "./SearchHoursOfOperationsPaginator";
43
45
  export * from "./SearchPromptsPaginator";