@aws-sdk/client-connect 3.75.0 → 3.78.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/CHANGELOG.md +30 -0
- package/dist-cjs/Connect.js +15 -0
- package/dist-cjs/commands/SearchUsersCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_1.js +73 -2
- package/dist-cjs/pagination/GetCurrentMetricDataPaginator.js +2 -1
- package/dist-cjs/pagination/GetMetricDataPaginator.js +2 -1
- package/dist-cjs/pagination/ListAgentStatusesPaginator.js +2 -1
- package/dist-cjs/pagination/ListApprovedOriginsPaginator.js +2 -1
- package/dist-cjs/pagination/ListBotsPaginator.js +2 -1
- package/dist-cjs/pagination/ListContactFlowModulesPaginator.js +2 -1
- package/dist-cjs/pagination/ListContactFlowsPaginator.js +2 -1
- package/dist-cjs/pagination/ListContactReferencesPaginator.js +2 -1
- package/dist-cjs/pagination/ListDefaultVocabulariesPaginator.js +2 -1
- package/dist-cjs/pagination/ListHoursOfOperationsPaginator.js +2 -1
- package/dist-cjs/pagination/ListInstanceAttributesPaginator.js +2 -1
- package/dist-cjs/pagination/ListInstanceStorageConfigsPaginator.js +2 -1
- package/dist-cjs/pagination/ListInstancesPaginator.js +2 -1
- package/dist-cjs/pagination/ListIntegrationAssociationsPaginator.js +2 -1
- package/dist-cjs/pagination/ListLambdaFunctionsPaginator.js +2 -1
- package/dist-cjs/pagination/ListLexBotsPaginator.js +2 -1
- package/dist-cjs/pagination/ListPhoneNumbersPaginator.js +2 -1
- package/dist-cjs/pagination/ListPhoneNumbersV2Paginator.js +2 -1
- package/dist-cjs/pagination/ListPromptsPaginator.js +2 -1
- package/dist-cjs/pagination/ListQueueQuickConnectsPaginator.js +2 -1
- package/dist-cjs/pagination/ListQueuesPaginator.js +2 -1
- package/dist-cjs/pagination/ListQuickConnectsPaginator.js +2 -1
- package/dist-cjs/pagination/ListRoutingProfileQueuesPaginator.js +2 -1
- package/dist-cjs/pagination/ListRoutingProfilesPaginator.js +2 -1
- package/dist-cjs/pagination/ListSecurityKeysPaginator.js +2 -1
- package/dist-cjs/pagination/ListSecurityProfilePermissionsPaginator.js +2 -1
- package/dist-cjs/pagination/ListSecurityProfilesPaginator.js +2 -1
- package/dist-cjs/pagination/ListUseCasesPaginator.js +2 -1
- package/dist-cjs/pagination/ListUserHierarchyGroupsPaginator.js +2 -1
- package/dist-cjs/pagination/ListUsersPaginator.js +2 -1
- package/dist-cjs/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -1
- package/dist-cjs/pagination/SearchUsersPaginator.js +36 -0
- package/dist-cjs/pagination/SearchVocabulariesPaginator.js +2 -1
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +223 -5
- package/dist-es/Connect.js +15 -0
- package/dist-es/commands/SearchUsersCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_1.js +51 -0
- package/dist-es/pagination/GetCurrentMetricDataPaginator.js +3 -2
- package/dist-es/pagination/GetMetricDataPaginator.js +3 -2
- package/dist-es/pagination/ListAgentStatusesPaginator.js +3 -2
- package/dist-es/pagination/ListApprovedOriginsPaginator.js +3 -2
- package/dist-es/pagination/ListBotsPaginator.js +3 -2
- package/dist-es/pagination/ListContactFlowModulesPaginator.js +3 -2
- package/dist-es/pagination/ListContactFlowsPaginator.js +3 -2
- package/dist-es/pagination/ListContactReferencesPaginator.js +3 -2
- package/dist-es/pagination/ListDefaultVocabulariesPaginator.js +3 -2
- package/dist-es/pagination/ListHoursOfOperationsPaginator.js +3 -2
- package/dist-es/pagination/ListInstanceAttributesPaginator.js +3 -2
- package/dist-es/pagination/ListInstanceStorageConfigsPaginator.js +3 -2
- package/dist-es/pagination/ListInstancesPaginator.js +3 -2
- package/dist-es/pagination/ListIntegrationAssociationsPaginator.js +3 -2
- package/dist-es/pagination/ListLambdaFunctionsPaginator.js +3 -2
- package/dist-es/pagination/ListLexBotsPaginator.js +3 -2
- package/dist-es/pagination/ListPhoneNumbersPaginator.js +3 -2
- package/dist-es/pagination/ListPhoneNumbersV2Paginator.js +3 -2
- package/dist-es/pagination/ListPromptsPaginator.js +3 -2
- package/dist-es/pagination/ListQueueQuickConnectsPaginator.js +3 -2
- package/dist-es/pagination/ListQueuesPaginator.js +3 -2
- package/dist-es/pagination/ListQuickConnectsPaginator.js +3 -2
- package/dist-es/pagination/ListRoutingProfileQueuesPaginator.js +3 -2
- package/dist-es/pagination/ListRoutingProfilesPaginator.js +3 -2
- package/dist-es/pagination/ListSecurityKeysPaginator.js +3 -2
- package/dist-es/pagination/ListSecurityProfilePermissionsPaginator.js +3 -2
- package/dist-es/pagination/ListSecurityProfilesPaginator.js +3 -2
- package/dist-es/pagination/ListUseCasesPaginator.js +3 -2
- package/dist-es/pagination/ListUserHierarchyGroupsPaginator.js +3 -2
- package/dist-es/pagination/ListUsersPaginator.js +3 -2
- package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +3 -2
- package/dist-es/pagination/SearchUsersPaginator.js +75 -0
- package/dist-es/pagination/SearchVocabulariesPaginator.js +3 -2
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +220 -1
- package/dist-types/Connect.d.ts +7 -0
- package/dist-types/ConnectClient.d.ts +3 -2
- package/dist-types/commands/SearchUsersCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +7 -8
- package/dist-types/models/models_1.d.ts +282 -2
- package/dist-types/pagination/SearchUsersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Connect.d.ts +5 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_1.d.ts +149 -0
- package/dist-types/ts3.4/pagination/SearchUsersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **types:** add pagination stopOnSameToken option ([#3524](https://github.com/aws/aws-sdk-js-v3/issues/3524)) ([9bf73e8](https://github.com/aws/aws-sdk-js-v3/commit/9bf73e81b8d9be9f12c72cbefbe26c502d1873c6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.77.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.76.0...v3.77.0) (2022-04-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **client-connect:** This release adds SearchUsers API which can be used to search for users with a Connect Instance ([15544b5](https://github.com/aws/aws-sdk-js-v3/commit/15544b5f4fbfe03a32a590aa0a7d6145e1c50998))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @aws-sdk/client-connect
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.75.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.74.0...v3.75.0) (2022-04-21)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-connect
|
package/dist-cjs/Connect.js
CHANGED
|
@@ -99,6 +99,7 @@ const ListUsersCommand_1 = require("./commands/ListUsersCommand");
|
|
|
99
99
|
const ReleasePhoneNumberCommand_1 = require("./commands/ReleasePhoneNumberCommand");
|
|
100
100
|
const ResumeContactRecordingCommand_1 = require("./commands/ResumeContactRecordingCommand");
|
|
101
101
|
const SearchAvailablePhoneNumbersCommand_1 = require("./commands/SearchAvailablePhoneNumbersCommand");
|
|
102
|
+
const SearchUsersCommand_1 = require("./commands/SearchUsersCommand");
|
|
102
103
|
const SearchVocabulariesCommand_1 = require("./commands/SearchVocabulariesCommand");
|
|
103
104
|
const StartChatContactCommand_1 = require("./commands/StartChatContactCommand");
|
|
104
105
|
const StartContactRecordingCommand_1 = require("./commands/StartContactRecordingCommand");
|
|
@@ -1517,6 +1518,20 @@ class Connect extends ConnectClient_1.ConnectClient {
|
|
|
1517
1518
|
return this.send(command, optionsOrCb);
|
|
1518
1519
|
}
|
|
1519
1520
|
}
|
|
1521
|
+
searchUsers(args, optionsOrCb, cb) {
|
|
1522
|
+
const command = new SearchUsersCommand_1.SearchUsersCommand(args);
|
|
1523
|
+
if (typeof optionsOrCb === "function") {
|
|
1524
|
+
this.send(command, optionsOrCb);
|
|
1525
|
+
}
|
|
1526
|
+
else if (typeof cb === "function") {
|
|
1527
|
+
if (typeof optionsOrCb !== "object")
|
|
1528
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1529
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1530
|
+
}
|
|
1531
|
+
else {
|
|
1532
|
+
return this.send(command, optionsOrCb);
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1520
1535
|
searchVocabularies(args, optionsOrCb, cb) {
|
|
1521
1536
|
const command = new SearchVocabulariesCommand_1.SearchVocabulariesCommand(args);
|
|
1522
1537
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchUsersCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_1_1 = require("../models/models_1");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class SearchUsersCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ConnectClient";
|
|
18
|
+
const commandName = "SearchUsersCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_1_1.SearchUsersRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_1_1.SearchUsersResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1SearchUsersCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1SearchUsersCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.SearchUsersCommand = SearchUsersCommand;
|
|
@@ -99,6 +99,7 @@ tslib_1.__exportStar(require("./ListUsersCommand"), exports);
|
|
|
99
99
|
tslib_1.__exportStar(require("./ReleasePhoneNumberCommand"), exports);
|
|
100
100
|
tslib_1.__exportStar(require("./ResumeContactRecordingCommand"), exports);
|
|
101
101
|
tslib_1.__exportStar(require("./SearchAvailablePhoneNumbersCommand"), exports);
|
|
102
|
+
tslib_1.__exportStar(require("./SearchUsersCommand"), exports);
|
|
102
103
|
tslib_1.__exportStar(require("./SearchVocabulariesCommand"), exports);
|
|
103
104
|
tslib_1.__exportStar(require("./StartChatContactCommand"), exports);
|
|
104
105
|
tslib_1.__exportStar(require("./StartContactRecordingCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateUserSecurityProfilesRequest = exports.UpdateUserRoutingProfileRequest = exports.UpdateUserPhoneConfigRequest = exports.UpdateUserIdentityInfoRequest = exports.UpdateUserHierarchyStructureRequest = exports.HierarchyStructureUpdate = exports.HierarchyLevelUpdate = exports.UpdateUserHierarchyGroupNameRequest = exports.UpdateUserHierarchyRequest = exports.UpdateSecurityProfileRequest = exports.UpdateRoutingProfileQueuesRequest = exports.UpdateRoutingProfileNameRequest = exports.UpdateRoutingProfileDefaultOutboundQueueRequest = exports.UpdateRoutingProfileConcurrencyRequest = exports.UpdateQuickConnectNameRequest = exports.UpdateQuickConnectConfigRequest = exports.UpdateQueueStatusRequest = exports.UpdateQueueOutboundCallerConfigRequest = exports.UpdateQueueNameRequest = exports.UpdateQueueMaxContactsRequest = exports.UpdateQueueHoursOfOperationRequest = exports.UpdatePhoneNumberResponse = exports.UpdatePhoneNumberRequest = exports.UpdateInstanceStorageConfigRequest = exports.UpdateInstanceAttributeRequest = void 0;
|
|
3
|
+
exports.UpdateContactAttributesResponse = exports.UpdateContactAttributesRequest = exports.UpdateContactResponse = exports.UpdateContactRequest = exports.UpdateAgentStatusRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.SuspendContactRecordingResponse = exports.SuspendContactRecordingRequest = exports.StopContactStreamingResponse = exports.StopContactStreamingRequest = exports.StopContactRecordingResponse = exports.StopContactRecordingRequest = exports.StopContactResponse = exports.StopContactRequest = exports.ContactNotFoundException = exports.StartTaskContactResponse = exports.StartTaskContactRequest = exports.Reference = exports.StartOutboundVoiceContactResponse = exports.StartOutboundVoiceContactRequest = exports.TrafficType = exports.AnswerMachineDetectionConfig = exports.OutboundContactNotPermittedException = exports.DestinationNotAllowedException = exports.StartContactStreamingResponse = exports.StartContactStreamingRequest = exports.ChatStreamingConfiguration = exports.StartContactRecordingResponse = exports.StartContactRecordingRequest = exports.VoiceRecordingConfiguration = exports.VoiceRecordingTrack = exports.StartChatContactResponse = exports.StartChatContactRequest = exports.ParticipantDetails = exports.ChatMessage = exports.SearchVocabulariesResponse = exports.VocabularySummary = exports.SearchVocabulariesRequest = exports.SearchUsersResponse = exports.UserSearchSummary = exports.UserIdentityInfoLite = exports.UserSearchFilter = exports.ControlPlaneTagFilter = exports.TagCondition = exports.StringCondition = exports.StringComparisonType = exports.HierarchyGroupCondition = exports.HierarchyGroupMatchType = exports.SearchAvailablePhoneNumbersResponse = void 0;
|
|
4
|
+
exports.SearchUsersRequest = exports.UserSearchCriteria = exports.UpdateUserSecurityProfilesRequest = exports.UpdateUserRoutingProfileRequest = exports.UpdateUserPhoneConfigRequest = exports.UpdateUserIdentityInfoRequest = exports.UpdateUserHierarchyStructureRequest = exports.HierarchyStructureUpdate = exports.HierarchyLevelUpdate = exports.UpdateUserHierarchyGroupNameRequest = exports.UpdateUserHierarchyRequest = exports.UpdateSecurityProfileRequest = exports.UpdateRoutingProfileQueuesRequest = exports.UpdateRoutingProfileNameRequest = exports.UpdateRoutingProfileDefaultOutboundQueueRequest = exports.UpdateRoutingProfileConcurrencyRequest = exports.UpdateQuickConnectNameRequest = exports.UpdateQuickConnectConfigRequest = exports.UpdateQueueStatusRequest = exports.UpdateQueueOutboundCallerConfigRequest = exports.UpdateQueueNameRequest = exports.UpdateQueueMaxContactsRequest = exports.UpdateQueueHoursOfOperationRequest = exports.UpdatePhoneNumberResponse = exports.UpdatePhoneNumberRequest = exports.UpdateInstanceStorageConfigRequest = exports.UpdateInstanceAttributeRequest = exports.UpdateHoursOfOperationRequest = exports.UpdateContactScheduleResponse = exports.UpdateContactScheduleRequest = exports.UpdateContactFlowNameRequest = exports.UpdateContactFlowModuleMetadataResponse = exports.UpdateContactFlowModuleMetadataRequest = exports.UpdateContactFlowModuleContentResponse = exports.UpdateContactFlowModuleContentRequest = exports.UpdateContactFlowMetadataRequest = exports.UpdateContactFlowContentRequest = void 0;
|
|
5
5
|
const ConnectServiceException_1 = require("./ConnectServiceException");
|
|
6
6
|
var SearchAvailablePhoneNumbersResponse;
|
|
7
7
|
(function (SearchAvailablePhoneNumbersResponse) {
|
|
@@ -9,6 +9,65 @@ var SearchAvailablePhoneNumbersResponse;
|
|
|
9
9
|
...obj,
|
|
10
10
|
});
|
|
11
11
|
})(SearchAvailablePhoneNumbersResponse = exports.SearchAvailablePhoneNumbersResponse || (exports.SearchAvailablePhoneNumbersResponse = {}));
|
|
12
|
+
var HierarchyGroupMatchType;
|
|
13
|
+
(function (HierarchyGroupMatchType) {
|
|
14
|
+
HierarchyGroupMatchType["EXACT"] = "EXACT";
|
|
15
|
+
HierarchyGroupMatchType["WITH_CHILD_GROUPS"] = "WITH_CHILD_GROUPS";
|
|
16
|
+
})(HierarchyGroupMatchType = exports.HierarchyGroupMatchType || (exports.HierarchyGroupMatchType = {}));
|
|
17
|
+
var HierarchyGroupCondition;
|
|
18
|
+
(function (HierarchyGroupCondition) {
|
|
19
|
+
HierarchyGroupCondition.filterSensitiveLog = (obj) => ({
|
|
20
|
+
...obj,
|
|
21
|
+
});
|
|
22
|
+
})(HierarchyGroupCondition = exports.HierarchyGroupCondition || (exports.HierarchyGroupCondition = {}));
|
|
23
|
+
var StringComparisonType;
|
|
24
|
+
(function (StringComparisonType) {
|
|
25
|
+
StringComparisonType["CONTAINS"] = "CONTAINS";
|
|
26
|
+
StringComparisonType["EXACT"] = "EXACT";
|
|
27
|
+
StringComparisonType["STARTS_WITH"] = "STARTS_WITH";
|
|
28
|
+
})(StringComparisonType = exports.StringComparisonType || (exports.StringComparisonType = {}));
|
|
29
|
+
var StringCondition;
|
|
30
|
+
(function (StringCondition) {
|
|
31
|
+
StringCondition.filterSensitiveLog = (obj) => ({
|
|
32
|
+
...obj,
|
|
33
|
+
});
|
|
34
|
+
})(StringCondition = exports.StringCondition || (exports.StringCondition = {}));
|
|
35
|
+
var TagCondition;
|
|
36
|
+
(function (TagCondition) {
|
|
37
|
+
TagCondition.filterSensitiveLog = (obj) => ({
|
|
38
|
+
...obj,
|
|
39
|
+
});
|
|
40
|
+
})(TagCondition = exports.TagCondition || (exports.TagCondition = {}));
|
|
41
|
+
var ControlPlaneTagFilter;
|
|
42
|
+
(function (ControlPlaneTagFilter) {
|
|
43
|
+
ControlPlaneTagFilter.filterSensitiveLog = (obj) => ({
|
|
44
|
+
...obj,
|
|
45
|
+
});
|
|
46
|
+
})(ControlPlaneTagFilter = exports.ControlPlaneTagFilter || (exports.ControlPlaneTagFilter = {}));
|
|
47
|
+
var UserSearchFilter;
|
|
48
|
+
(function (UserSearchFilter) {
|
|
49
|
+
UserSearchFilter.filterSensitiveLog = (obj) => ({
|
|
50
|
+
...obj,
|
|
51
|
+
});
|
|
52
|
+
})(UserSearchFilter = exports.UserSearchFilter || (exports.UserSearchFilter = {}));
|
|
53
|
+
var UserIdentityInfoLite;
|
|
54
|
+
(function (UserIdentityInfoLite) {
|
|
55
|
+
UserIdentityInfoLite.filterSensitiveLog = (obj) => ({
|
|
56
|
+
...obj,
|
|
57
|
+
});
|
|
58
|
+
})(UserIdentityInfoLite = exports.UserIdentityInfoLite || (exports.UserIdentityInfoLite = {}));
|
|
59
|
+
var UserSearchSummary;
|
|
60
|
+
(function (UserSearchSummary) {
|
|
61
|
+
UserSearchSummary.filterSensitiveLog = (obj) => ({
|
|
62
|
+
...obj,
|
|
63
|
+
});
|
|
64
|
+
})(UserSearchSummary = exports.UserSearchSummary || (exports.UserSearchSummary = {}));
|
|
65
|
+
var SearchUsersResponse;
|
|
66
|
+
(function (SearchUsersResponse) {
|
|
67
|
+
SearchUsersResponse.filterSensitiveLog = (obj) => ({
|
|
68
|
+
...obj,
|
|
69
|
+
});
|
|
70
|
+
})(SearchUsersResponse = exports.SearchUsersResponse || (exports.SearchUsersResponse = {}));
|
|
12
71
|
var SearchVocabulariesRequest;
|
|
13
72
|
(function (SearchVocabulariesRequest) {
|
|
14
73
|
SearchVocabulariesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -476,3 +535,15 @@ var UpdateUserSecurityProfilesRequest;
|
|
|
476
535
|
...obj,
|
|
477
536
|
});
|
|
478
537
|
})(UpdateUserSecurityProfilesRequest = exports.UpdateUserSecurityProfilesRequest || (exports.UpdateUserSecurityProfilesRequest = {}));
|
|
538
|
+
var UserSearchCriteria;
|
|
539
|
+
(function (UserSearchCriteria) {
|
|
540
|
+
UserSearchCriteria.filterSensitiveLog = (obj) => ({
|
|
541
|
+
...obj,
|
|
542
|
+
});
|
|
543
|
+
})(UserSearchCriteria = exports.UserSearchCriteria || (exports.UserSearchCriteria = {}));
|
|
544
|
+
var SearchUsersRequest;
|
|
545
|
+
(function (SearchUsersRequest) {
|
|
546
|
+
SearchUsersRequest.filterSensitiveLog = (obj) => ({
|
|
547
|
+
...obj,
|
|
548
|
+
});
|
|
549
|
+
})(SearchUsersRequest = exports.SearchUsersRequest || (exports.SearchUsersRequest = {}));
|
|
@@ -27,8 +27,9 @@ async function* paginateGetCurrentMetricData(config, input, ...additionalArgumen
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateGetMetricData(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListAgentStatuses(config, input, ...additionalArguments)
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListApprovedOrigins(config, input, ...additionalArgument
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListBots(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListContactFlowModules(config, input, ...additionalArgum
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListContactFlows(config, input, ...additionalArguments)
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -26,8 +26,9 @@ async function* paginateListContactReferences(config, input, ...additionalArgume
|
|
|
26
26
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
27
27
|
}
|
|
28
28
|
yield page;
|
|
29
|
+
const prevToken = token;
|
|
29
30
|
token = page.NextToken;
|
|
30
|
-
hasNext = !!token;
|
|
31
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
31
32
|
}
|
|
32
33
|
return undefined;
|
|
33
34
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListDefaultVocabularies(config, input, ...additionalArgu
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListHoursOfOperations(config, input, ...additionalArgume
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListInstanceAttributes(config, input, ...additionalArgum
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListInstanceStorageConfigs(config, input, ...additionalA
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListInstances(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListIntegrationAssociations(config, input, ...additional
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListLambdaFunctions(config, input, ...additionalArgument
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListLexBots(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListPhoneNumbers(config, input, ...additionalArguments)
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListPhoneNumbersV2(config, input, ...additionalArguments
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListPrompts(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListQueueQuickConnects(config, input, ...additionalArgum
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListQueues(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListQuickConnects(config, input, ...additionalArguments)
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListRoutingProfileQueues(config, input, ...additionalArg
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListRoutingProfiles(config, input, ...additionalArgument
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListSecurityKeys(config, input, ...additionalArguments)
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListSecurityProfilePermissions(config, input, ...additio
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListSecurityProfiles(config, input, ...additionalArgumen
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListUseCases(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListUserHierarchyGroups(config, input, ...additionalArgu
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListUsers(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateSearchAvailablePhoneNumbers(config, input, ...additional
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateSearchUsers = void 0;
|
|
4
|
+
const SearchUsersCommand_1 = require("../commands/SearchUsersCommand");
|
|
5
|
+
const Connect_1 = require("../Connect");
|
|
6
|
+
const ConnectClient_1 = require("../ConnectClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new SearchUsersCommand_1.SearchUsersCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.searchUsers(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateSearchUsers(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Connect_1.Connect) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateSearchUsers = paginateSearchUsers;
|
|
@@ -27,8 +27,9 @@ async function* paginateSearchVocabularies(config, input, ...additionalArguments
|
|
|
27
27
|
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|