@aws-sdk/client-workdocs 3.476.0 → 3.478.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/dist-cjs/pagination/DescribeActivitiesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeCommentsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeDocumentVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeFolderContentsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeNotificationSubscriptionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeResourcePermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeRootFoldersPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeUsersPaginator.js +2 -24
- package/dist-cjs/pagination/SearchResourcesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +379 -688
- package/dist-es/pagination/DescribeActivitiesPaginator.js +2 -23
- package/dist-es/pagination/DescribeCommentsPaginator.js +2 -23
- package/dist-es/pagination/DescribeDocumentVersionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeFolderContentsPaginator.js +2 -23
- package/dist-es/pagination/DescribeGroupsPaginator.js +2 -23
- package/dist-es/pagination/DescribeNotificationSubscriptionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeResourcePermissionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeRootFoldersPaginator.js +2 -23
- package/dist-es/pagination/DescribeUsersPaginator.js +2 -23
- package/dist-es/pagination/SearchResourcesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +380 -689
- package/dist-types/pagination/DescribeActivitiesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeCommentsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeDocumentVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeFolderContentsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeResourcePermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeRootFoldersPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchResourcesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeActivitiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeCommentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeDocumentVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeFolderContentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeResourcePermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeRootFoldersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchResourcesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeActivities = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeActivitiesCommand_1 = require("../commands/DescribeActivitiesCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeActivitiesCommand_1.DescribeActivitiesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeActivities(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeActivities = paginateDescribeActivities;
|
|
7
|
+
exports.paginateDescribeActivities = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, DescribeActivitiesCommand_1.DescribeActivitiesCommand, "Marker", "Marker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeComments = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeCommentsCommand_1 = require("../commands/DescribeCommentsCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeCommentsCommand_1.DescribeCommentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeComments(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeComments = paginateDescribeComments;
|
|
7
|
+
exports.paginateDescribeComments = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, DescribeCommentsCommand_1.DescribeCommentsCommand, "Marker", "Marker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeDocumentVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeDocumentVersionsCommand_1 = require("../commands/DescribeDocumentVersionsCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeDocumentVersionsCommand_1.DescribeDocumentVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeDocumentVersions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeDocumentVersions = paginateDescribeDocumentVersions;
|
|
7
|
+
exports.paginateDescribeDocumentVersions = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, DescribeDocumentVersionsCommand_1.DescribeDocumentVersionsCommand, "Marker", "Marker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeFolderContents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeFolderContentsCommand_1 = require("../commands/DescribeFolderContentsCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeFolderContentsCommand_1.DescribeFolderContentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeFolderContents(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeFolderContents = paginateDescribeFolderContents;
|
|
7
|
+
exports.paginateDescribeFolderContents = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, DescribeFolderContentsCommand_1.DescribeFolderContentsCommand, "Marker", "Marker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeGroupsCommand_1 = require("../commands/DescribeGroupsCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeGroupsCommand_1.DescribeGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeGroups(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeGroups = paginateDescribeGroups;
|
|
7
|
+
exports.paginateDescribeGroups = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, DescribeGroupsCommand_1.DescribeGroupsCommand, "Marker", "Marker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeNotificationSubscriptions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeNotificationSubscriptionsCommand_1 = require("../commands/DescribeNotificationSubscriptionsCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeNotificationSubscriptionsCommand_1.DescribeNotificationSubscriptionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeNotificationSubscriptions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeNotificationSubscriptions = paginateDescribeNotificationSubscriptions;
|
|
7
|
+
exports.paginateDescribeNotificationSubscriptions = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, DescribeNotificationSubscriptionsCommand_1.DescribeNotificationSubscriptionsCommand, "Marker", "Marker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeResourcePermissions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeResourcePermissionsCommand_1 = require("../commands/DescribeResourcePermissionsCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeResourcePermissionsCommand_1.DescribeResourcePermissionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeResourcePermissions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeResourcePermissions = paginateDescribeResourcePermissions;
|
|
7
|
+
exports.paginateDescribeResourcePermissions = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, DescribeResourcePermissionsCommand_1.DescribeResourcePermissionsCommand, "Marker", "Marker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeRootFolders = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeRootFoldersCommand_1 = require("../commands/DescribeRootFoldersCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeRootFoldersCommand_1.DescribeRootFoldersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeRootFolders(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeRootFolders = paginateDescribeRootFolders;
|
|
7
|
+
exports.paginateDescribeRootFolders = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, DescribeRootFoldersCommand_1.DescribeRootFoldersCommand, "Marker", "Marker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeUsers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeUsersCommand_1 = require("../commands/DescribeUsersCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeUsersCommand_1.DescribeUsersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeUsers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeUsers = paginateDescribeUsers;
|
|
7
|
+
exports.paginateDescribeUsers = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, DescribeUsersCommand_1.DescribeUsersCommand, "Marker", "Marker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchResourcesCommand_1 = require("../commands/SearchResourcesCommand");
|
|
5
6
|
const WorkDocsClient_1 = require("../WorkDocsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchResourcesCommand_1.SearchResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchResources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkDocsClient_1.WorkDocsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.Marker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchResources = paginateSearchResources;
|
|
7
|
+
exports.paginateSearchResources = (0, core_1.createPaginator)(WorkDocsClient_1.WorkDocsClient, SearchResourcesCommand_1.SearchResourcesCommand, "Marker", "Marker", "Limit");
|