@aws-sdk/client-connect 3.183.0 → 3.185.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 +22 -0
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Connect.js +625 -618
- package/dist-es/ConnectClient.js +28 -22
- package/dist-es/commands/AssociateApprovedOriginCommand.js +29 -22
- package/dist-es/commands/AssociateBotCommand.js +29 -22
- package/dist-es/commands/AssociateDefaultVocabularyCommand.js +28 -21
- package/dist-es/commands/AssociateInstanceStorageConfigCommand.js +28 -21
- package/dist-es/commands/AssociateLambdaFunctionCommand.js +29 -22
- package/dist-es/commands/AssociateLexBotCommand.js +29 -22
- package/dist-es/commands/AssociatePhoneNumberContactFlowCommand.js +29 -22
- package/dist-es/commands/AssociateQueueQuickConnectsCommand.js +29 -22
- package/dist-es/commands/AssociateRoutingProfileQueuesCommand.js +29 -22
- package/dist-es/commands/AssociateSecurityKeyCommand.js +28 -21
- package/dist-es/commands/ClaimPhoneNumberCommand.js +28 -21
- package/dist-es/commands/CreateAgentStatusCommand.js +28 -21
- package/dist-es/commands/CreateContactFlowCommand.js +28 -21
- package/dist-es/commands/CreateContactFlowModuleCommand.js +28 -21
- package/dist-es/commands/CreateHoursOfOperationCommand.js +28 -21
- package/dist-es/commands/CreateInstanceCommand.js +28 -21
- package/dist-es/commands/CreateIntegrationAssociationCommand.js +28 -21
- package/dist-es/commands/CreateQueueCommand.js +28 -21
- package/dist-es/commands/CreateQuickConnectCommand.js +28 -21
- package/dist-es/commands/CreateRoutingProfileCommand.js +28 -21
- package/dist-es/commands/CreateSecurityProfileCommand.js +28 -21
- package/dist-es/commands/CreateTaskTemplateCommand.js +28 -21
- package/dist-es/commands/CreateUseCaseCommand.js +28 -21
- package/dist-es/commands/CreateUserCommand.js +28 -21
- package/dist-es/commands/CreateUserHierarchyGroupCommand.js +28 -21
- package/dist-es/commands/CreateVocabularyCommand.js +28 -21
- package/dist-es/commands/DeleteContactFlowCommand.js +29 -22
- package/dist-es/commands/DeleteContactFlowModuleCommand.js +28 -21
- package/dist-es/commands/DeleteHoursOfOperationCommand.js +29 -22
- package/dist-es/commands/DeleteInstanceCommand.js +29 -22
- package/dist-es/commands/DeleteIntegrationAssociationCommand.js +29 -22
- package/dist-es/commands/DeleteQuickConnectCommand.js +29 -22
- package/dist-es/commands/DeleteSecurityProfileCommand.js +29 -22
- package/dist-es/commands/DeleteTaskTemplateCommand.js +28 -21
- package/dist-es/commands/DeleteUseCaseCommand.js +29 -22
- package/dist-es/commands/DeleteUserCommand.js +29 -22
- package/dist-es/commands/DeleteUserHierarchyGroupCommand.js +29 -22
- package/dist-es/commands/DeleteVocabularyCommand.js +28 -21
- package/dist-es/commands/DescribeAgentStatusCommand.js +28 -21
- package/dist-es/commands/DescribeContactCommand.js +28 -21
- package/dist-es/commands/DescribeContactFlowCommand.js +28 -21
- package/dist-es/commands/DescribeContactFlowModuleCommand.js +28 -21
- package/dist-es/commands/DescribeHoursOfOperationCommand.js +28 -21
- package/dist-es/commands/DescribeInstanceAttributeCommand.js +28 -21
- package/dist-es/commands/DescribeInstanceCommand.js +28 -21
- package/dist-es/commands/DescribeInstanceStorageConfigCommand.js +28 -21
- package/dist-es/commands/DescribePhoneNumberCommand.js +28 -21
- package/dist-es/commands/DescribeQueueCommand.js +28 -21
- package/dist-es/commands/DescribeQuickConnectCommand.js +28 -21
- package/dist-es/commands/DescribeRoutingProfileCommand.js +28 -21
- package/dist-es/commands/DescribeSecurityProfileCommand.js +28 -21
- package/dist-es/commands/DescribeUserCommand.js +28 -21
- package/dist-es/commands/DescribeUserHierarchyGroupCommand.js +28 -21
- package/dist-es/commands/DescribeUserHierarchyStructureCommand.js +28 -21
- package/dist-es/commands/DescribeVocabularyCommand.js +28 -21
- package/dist-es/commands/DisassociateApprovedOriginCommand.js +29 -22
- package/dist-es/commands/DisassociateBotCommand.js +29 -22
- package/dist-es/commands/DisassociateInstanceStorageConfigCommand.js +29 -22
- package/dist-es/commands/DisassociateLambdaFunctionCommand.js +29 -22
- package/dist-es/commands/DisassociateLexBotCommand.js +29 -22
- package/dist-es/commands/DisassociatePhoneNumberContactFlowCommand.js +29 -22
- package/dist-es/commands/DisassociateQueueQuickConnectsCommand.js +29 -22
- package/dist-es/commands/DisassociateRoutingProfileQueuesCommand.js +29 -22
- package/dist-es/commands/DisassociateSecurityKeyCommand.js +29 -22
- package/dist-es/commands/GetContactAttributesCommand.js +28 -21
- package/dist-es/commands/GetCurrentMetricDataCommand.js +28 -21
- package/dist-es/commands/GetCurrentUserDataCommand.js +28 -21
- package/dist-es/commands/GetFederationTokenCommand.js +28 -21
- package/dist-es/commands/GetMetricDataCommand.js +28 -21
- package/dist-es/commands/GetTaskTemplateCommand.js +28 -21
- package/dist-es/commands/ListAgentStatusesCommand.js +28 -21
- package/dist-es/commands/ListApprovedOriginsCommand.js +28 -21
- package/dist-es/commands/ListBotsCommand.js +28 -21
- package/dist-es/commands/ListContactFlowModulesCommand.js +28 -21
- package/dist-es/commands/ListContactFlowsCommand.js +28 -21
- package/dist-es/commands/ListContactReferencesCommand.js +28 -21
- package/dist-es/commands/ListDefaultVocabulariesCommand.js +28 -21
- package/dist-es/commands/ListHoursOfOperationsCommand.js +28 -21
- package/dist-es/commands/ListInstanceAttributesCommand.js +28 -21
- package/dist-es/commands/ListInstanceStorageConfigsCommand.js +28 -21
- package/dist-es/commands/ListInstancesCommand.js +28 -21
- package/dist-es/commands/ListIntegrationAssociationsCommand.js +28 -21
- package/dist-es/commands/ListLambdaFunctionsCommand.js +28 -21
- package/dist-es/commands/ListLexBotsCommand.js +28 -21
- package/dist-es/commands/ListPhoneNumbersCommand.js +28 -21
- package/dist-es/commands/ListPhoneNumbersV2Command.js +28 -21
- package/dist-es/commands/ListPromptsCommand.js +28 -21
- package/dist-es/commands/ListQueueQuickConnectsCommand.js +28 -21
- package/dist-es/commands/ListQueuesCommand.js +28 -21
- package/dist-es/commands/ListQuickConnectsCommand.js +28 -21
- package/dist-es/commands/ListRoutingProfileQueuesCommand.js +28 -21
- package/dist-es/commands/ListRoutingProfilesCommand.js +28 -21
- package/dist-es/commands/ListSecurityKeysCommand.js +28 -21
- package/dist-es/commands/ListSecurityProfilePermissionsCommand.js +28 -21
- package/dist-es/commands/ListSecurityProfilesCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListTaskTemplatesCommand.js +28 -21
- package/dist-es/commands/ListUseCasesCommand.js +28 -21
- package/dist-es/commands/ListUserHierarchyGroupsCommand.js +28 -21
- package/dist-es/commands/ListUsersCommand.js +28 -21
- package/dist-es/commands/PutUserStatusCommand.js +28 -21
- package/dist-es/commands/ReleasePhoneNumberCommand.js +29 -22
- package/dist-es/commands/ResumeContactRecordingCommand.js +28 -21
- package/dist-es/commands/SearchAvailablePhoneNumbersCommand.js +28 -21
- package/dist-es/commands/SearchQueuesCommand.js +28 -21
- package/dist-es/commands/SearchRoutingProfilesCommand.js +28 -21
- package/dist-es/commands/SearchSecurityProfilesCommand.js +28 -21
- package/dist-es/commands/SearchUsersCommand.js +28 -21
- package/dist-es/commands/SearchVocabulariesCommand.js +28 -21
- package/dist-es/commands/StartChatContactCommand.js +28 -21
- package/dist-es/commands/StartContactRecordingCommand.js +28 -21
- package/dist-es/commands/StartContactStreamingCommand.js +28 -21
- package/dist-es/commands/StartOutboundVoiceContactCommand.js +28 -21
- package/dist-es/commands/StartTaskContactCommand.js +28 -21
- package/dist-es/commands/StopContactCommand.js +28 -21
- package/dist-es/commands/StopContactRecordingCommand.js +28 -21
- package/dist-es/commands/StopContactStreamingCommand.js +28 -21
- package/dist-es/commands/SuspendContactRecordingCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/TransferContactCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateAgentStatusCommand.js +29 -22
- package/dist-es/commands/UpdateContactAttributesCommand.js +28 -21
- package/dist-es/commands/UpdateContactCommand.js +28 -21
- package/dist-es/commands/UpdateContactFlowContentCommand.js +29 -22
- package/dist-es/commands/UpdateContactFlowMetadataCommand.js +29 -22
- package/dist-es/commands/UpdateContactFlowModuleContentCommand.js +28 -21
- package/dist-es/commands/UpdateContactFlowModuleMetadataCommand.js +28 -21
- package/dist-es/commands/UpdateContactFlowNameCommand.js +29 -22
- package/dist-es/commands/UpdateContactScheduleCommand.js +28 -21
- package/dist-es/commands/UpdateHoursOfOperationCommand.js +29 -22
- package/dist-es/commands/UpdateInstanceAttributeCommand.js +29 -22
- package/dist-es/commands/UpdateInstanceStorageConfigCommand.js +29 -22
- package/dist-es/commands/UpdatePhoneNumberCommand.js +28 -21
- package/dist-es/commands/UpdateQueueHoursOfOperationCommand.js +29 -22
- package/dist-es/commands/UpdateQueueMaxContactsCommand.js +29 -22
- package/dist-es/commands/UpdateQueueNameCommand.js +29 -22
- package/dist-es/commands/UpdateQueueOutboundCallerConfigCommand.js +29 -22
- package/dist-es/commands/UpdateQueueStatusCommand.js +29 -22
- package/dist-es/commands/UpdateQuickConnectConfigCommand.js +29 -22
- package/dist-es/commands/UpdateQuickConnectNameCommand.js +29 -22
- package/dist-es/commands/UpdateRoutingProfileConcurrencyCommand.js +29 -22
- package/dist-es/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.js +29 -22
- package/dist-es/commands/UpdateRoutingProfileNameCommand.js +29 -22
- package/dist-es/commands/UpdateRoutingProfileQueuesCommand.js +29 -22
- package/dist-es/commands/UpdateSecurityProfileCommand.js +29 -22
- package/dist-es/commands/UpdateTaskTemplateCommand.js +28 -21
- package/dist-es/commands/UpdateUserHierarchyCommand.js +29 -22
- package/dist-es/commands/UpdateUserHierarchyGroupNameCommand.js +29 -22
- package/dist-es/commands/UpdateUserHierarchyStructureCommand.js +29 -22
- package/dist-es/commands/UpdateUserIdentityInfoCommand.js +29 -22
- package/dist-es/commands/UpdateUserPhoneConfigCommand.js +29 -22
- package/dist-es/commands/UpdateUserRoutingProfileCommand.js +29 -22
- package/dist-es/commands/UpdateUserSecurityProfilesCommand.js +29 -22
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ConnectServiceException.js +10 -5
- package/dist-es/models/models_0.js +459 -949
- package/dist-es/models/models_1.js +173 -444
- package/dist-es/pagination/GetCurrentMetricDataPaginator.js +68 -25
- package/dist-es/pagination/GetCurrentUserDataPaginator.js +68 -25
- package/dist-es/pagination/GetMetricDataPaginator.js +68 -25
- package/dist-es/pagination/ListAgentStatusesPaginator.js +68 -25
- package/dist-es/pagination/ListApprovedOriginsPaginator.js +68 -25
- package/dist-es/pagination/ListBotsPaginator.js +68 -25
- package/dist-es/pagination/ListContactFlowModulesPaginator.js +68 -25
- package/dist-es/pagination/ListContactFlowsPaginator.js +68 -25
- package/dist-es/pagination/ListContactReferencesPaginator.js +67 -24
- package/dist-es/pagination/ListDefaultVocabulariesPaginator.js +68 -25
- package/dist-es/pagination/ListHoursOfOperationsPaginator.js +68 -25
- package/dist-es/pagination/ListInstanceAttributesPaginator.js +68 -25
- package/dist-es/pagination/ListInstanceStorageConfigsPaginator.js +68 -25
- package/dist-es/pagination/ListInstancesPaginator.js +68 -25
- package/dist-es/pagination/ListIntegrationAssociationsPaginator.js +68 -25
- package/dist-es/pagination/ListLambdaFunctionsPaginator.js +68 -25
- package/dist-es/pagination/ListLexBotsPaginator.js +68 -25
- package/dist-es/pagination/ListPhoneNumbersPaginator.js +68 -25
- package/dist-es/pagination/ListPhoneNumbersV2Paginator.js +68 -25
- package/dist-es/pagination/ListPromptsPaginator.js +68 -25
- package/dist-es/pagination/ListQueueQuickConnectsPaginator.js +68 -25
- package/dist-es/pagination/ListQueuesPaginator.js +68 -25
- package/dist-es/pagination/ListQuickConnectsPaginator.js +68 -25
- package/dist-es/pagination/ListRoutingProfileQueuesPaginator.js +68 -25
- package/dist-es/pagination/ListRoutingProfilesPaginator.js +68 -25
- package/dist-es/pagination/ListSecurityKeysPaginator.js +68 -25
- package/dist-es/pagination/ListSecurityProfilePermissionsPaginator.js +68 -25
- package/dist-es/pagination/ListSecurityProfilesPaginator.js +68 -25
- package/dist-es/pagination/ListTaskTemplatesPaginator.js +68 -25
- package/dist-es/pagination/ListUseCasesPaginator.js +68 -25
- package/dist-es/pagination/ListUserHierarchyGroupsPaginator.js +68 -25
- package/dist-es/pagination/ListUsersPaginator.js +68 -25
- package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +68 -25
- package/dist-es/pagination/SearchQueuesPaginator.js +68 -25
- package/dist-es/pagination/SearchRoutingProfilesPaginator.js +68 -25
- package/dist-es/pagination/SearchSecurityProfilesPaginator.js +68 -25
- package/dist-es/pagination/SearchUsersPaginator.js +68 -25
- package/dist-es/pagination/SearchVocabulariesPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +15998 -11521
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-types/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +5 -5
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { GetCurrentMetricDataCommand, } from "../commands/GetCurrentMetricDataCommand";
|
|
2
3
|
import { Connect } from "../Connect";
|
|
3
4
|
import { ConnectClient } from "../ConnectClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetCurrentMetricDataCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.getCurrentMetricData.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Connect) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateGetCurrentMetricData(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateGetCurrentMetricData_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Connect)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ConnectClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { GetCurrentUserDataCommand, } from "../commands/GetCurrentUserDataCommand";
|
|
2
3
|
import { Connect } from "../Connect";
|
|
3
4
|
import { ConnectClient } from "../ConnectClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetCurrentUserDataCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.getCurrentUserData.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Connect) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateGetCurrentUserData(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateGetCurrentUserData_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Connect)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ConnectClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { GetMetricDataCommand, } from "../commands/GetMetricDataCommand";
|
|
2
3
|
import { Connect } from "../Connect";
|
|
3
4
|
import { ConnectClient } from "../ConnectClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetMetricDataCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.getMetricData.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Connect) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateGetMetricData(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateGetMetricData_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Connect)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ConnectClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListAgentStatusesCommand, } from "../commands/ListAgentStatusesCommand";
|
|
2
3
|
import { Connect } from "../Connect";
|
|
3
4
|
import { ConnectClient } from "../ConnectClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAgentStatusesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listAgentStatuses.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Connect) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListAgentStatuses(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListAgentStatuses_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Connect)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ConnectClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListApprovedOriginsCommand, } from "../commands/ListApprovedOriginsCommand";
|
|
2
3
|
import { Connect } from "../Connect";
|
|
3
4
|
import { ConnectClient } from "../ConnectClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListApprovedOriginsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listApprovedOrigins.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Connect) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListApprovedOrigins(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListApprovedOrigins_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Connect)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ConnectClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListBotsCommand } from "../commands/ListBotsCommand";
|
|
2
3
|
import { Connect } from "../Connect";
|
|
3
4
|
import { ConnectClient } from "../ConnectClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListBotsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listBots.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Connect) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListBots(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListBots_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Connect)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ConnectClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|