@aws-sdk/client-finspace-data 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.
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChangesets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListChangesetsCommand_1 = require("../commands/ListChangesetsCommand");
5
6
  const FinspaceDataClient_1 = require("../FinspaceDataClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChangesetsCommand_1.ListChangesetsCommand(input), ...args);
8
- };
9
- async function* paginateListChangesets(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof FinspaceDataClient_1.FinspaceDataClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FinspaceData | FinspaceDataClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListChangesets = paginateListChangesets;
7
+ exports.paginateListChangesets = (0, core_1.createPaginator)(FinspaceDataClient_1.FinspaceDataClient, ListChangesetsCommand_1.ListChangesetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDataViews = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDataViewsCommand_1 = require("../commands/ListDataViewsCommand");
5
6
  const FinspaceDataClient_1 = require("../FinspaceDataClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDataViewsCommand_1.ListDataViewsCommand(input), ...args);
8
- };
9
- async function* paginateListDataViews(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof FinspaceDataClient_1.FinspaceDataClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FinspaceData | FinspaceDataClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDataViews = paginateListDataViews;
7
+ exports.paginateListDataViews = (0, core_1.createPaginator)(FinspaceDataClient_1.FinspaceDataClient, ListDataViewsCommand_1.ListDataViewsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatasets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDatasetsCommand_1 = require("../commands/ListDatasetsCommand");
5
6
  const FinspaceDataClient_1 = require("../FinspaceDataClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDatasetsCommand_1.ListDatasetsCommand(input), ...args);
8
- };
9
- async function* paginateListDatasets(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof FinspaceDataClient_1.FinspaceDataClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FinspaceData | FinspaceDataClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDatasets = paginateListDatasets;
7
+ exports.paginateListDatasets = (0, core_1.createPaginator)(FinspaceDataClient_1.FinspaceDataClient, ListDatasetsCommand_1.ListDatasetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPermissionGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPermissionGroupsCommand_1 = require("../commands/ListPermissionGroupsCommand");
5
6
  const FinspaceDataClient_1 = require("../FinspaceDataClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPermissionGroupsCommand_1.ListPermissionGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListPermissionGroups(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof FinspaceDataClient_1.FinspaceDataClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FinspaceData | FinspaceDataClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPermissionGroups = paginateListPermissionGroups;
7
+ exports.paginateListPermissionGroups = (0, core_1.createPaginator)(FinspaceDataClient_1.FinspaceDataClient, ListPermissionGroupsCommand_1.ListPermissionGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListUsers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListUsersCommand_1 = require("../commands/ListUsersCommand");
5
6
  const FinspaceDataClient_1 = require("../FinspaceDataClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListUsersCommand_1.ListUsersCommand(input), ...args);
8
- };
9
- async function* paginateListUsers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof FinspaceDataClient_1.FinspaceDataClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FinspaceData | FinspaceDataClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListUsers = paginateListUsers;
7
+ exports.paginateListUsers = (0, core_1.createPaginator)(FinspaceDataClient_1.FinspaceDataClient, ListUsersCommand_1.ListUsersCommand, "nextToken", "nextToken", "maxResults");