@aws-sdk/client-managedblockchain 3.477.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/ListAccessorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInvitationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMembersPaginator.js +2 -24
- package/dist-cjs/pagination/ListNetworksPaginator.js +2 -24
- package/dist-cjs/pagination/ListNodesPaginator.js +2 -24
- package/dist-cjs/pagination/ListProposalVotesPaginator.js +2 -24
- package/dist-cjs/pagination/ListProposalsPaginator.js +2 -24
- package/dist-es/pagination/ListAccessorsPaginator.js +2 -23
- package/dist-es/pagination/ListInvitationsPaginator.js +2 -23
- package/dist-es/pagination/ListMembersPaginator.js +2 -23
- package/dist-es/pagination/ListNetworksPaginator.js +2 -23
- package/dist-es/pagination/ListNodesPaginator.js +2 -23
- package/dist-es/pagination/ListProposalVotesPaginator.js +2 -23
- package/dist-es/pagination/ListProposalsPaginator.js +2 -23
- package/dist-types/pagination/ListAccessorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInvitationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMembersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListNetworksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListNodesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProposalVotesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProposalsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAccessorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInvitationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNetworksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNodesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProposalVotesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProposalsPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAccessorsCommand_1 = require("../commands/ListAccessorsCommand");
|
|
5
6
|
const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccessorsCommand_1.ListAccessorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccessors(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 ManagedBlockchainClient_1.ManagedBlockchainClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
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.paginateListAccessors = paginateListAccessors;
|
|
7
|
+
exports.paginateListAccessors = (0, core_1.createPaginator)(ManagedBlockchainClient_1.ManagedBlockchainClient, ListAccessorsCommand_1.ListAccessorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListInvitations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListInvitationsCommand_1 = require("../commands/ListInvitationsCommand");
|
|
5
6
|
const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListInvitationsCommand_1.ListInvitationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListInvitations(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 ManagedBlockchainClient_1.ManagedBlockchainClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
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.paginateListInvitations = paginateListInvitations;
|
|
7
|
+
exports.paginateListInvitations = (0, core_1.createPaginator)(ManagedBlockchainClient_1.ManagedBlockchainClient, ListInvitationsCommand_1.ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMembers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMembersCommand_1 = require("../commands/ListMembersCommand");
|
|
5
6
|
const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMembersCommand_1.ListMembersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMembers(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 ManagedBlockchainClient_1.ManagedBlockchainClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
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.paginateListMembers = paginateListMembers;
|
|
7
|
+
exports.paginateListMembers = (0, core_1.createPaginator)(ManagedBlockchainClient_1.ManagedBlockchainClient, ListMembersCommand_1.ListMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListNetworks = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListNetworksCommand_1 = require("../commands/ListNetworksCommand");
|
|
5
6
|
const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListNetworksCommand_1.ListNetworksCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListNetworks(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 ManagedBlockchainClient_1.ManagedBlockchainClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
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.paginateListNetworks = paginateListNetworks;
|
|
7
|
+
exports.paginateListNetworks = (0, core_1.createPaginator)(ManagedBlockchainClient_1.ManagedBlockchainClient, ListNetworksCommand_1.ListNetworksCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListNodes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListNodesCommand_1 = require("../commands/ListNodesCommand");
|
|
5
6
|
const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListNodesCommand_1.ListNodesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListNodes(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 ManagedBlockchainClient_1.ManagedBlockchainClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
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.paginateListNodes = paginateListNodes;
|
|
7
|
+
exports.paginateListNodes = (0, core_1.createPaginator)(ManagedBlockchainClient_1.ManagedBlockchainClient, ListNodesCommand_1.ListNodesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListProposalVotes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListProposalVotesCommand_1 = require("../commands/ListProposalVotesCommand");
|
|
5
6
|
const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListProposalVotesCommand_1.ListProposalVotesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListProposalVotes(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 ManagedBlockchainClient_1.ManagedBlockchainClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
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.paginateListProposalVotes = paginateListProposalVotes;
|
|
7
|
+
exports.paginateListProposalVotes = (0, core_1.createPaginator)(ManagedBlockchainClient_1.ManagedBlockchainClient, ListProposalVotesCommand_1.ListProposalVotesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListProposals = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListProposalsCommand_1 = require("../commands/ListProposalsCommand");
|
|
5
6
|
const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListProposalsCommand_1.ListProposalsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListProposals(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 ManagedBlockchainClient_1.ManagedBlockchainClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
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.paginateListProposals = paginateListProposals;
|
|
7
|
+
exports.paginateListProposals = (0, core_1.createPaginator)(ManagedBlockchainClient_1.ManagedBlockchainClient, ListProposalsCommand_1.ListProposalsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccessorsCommand, } from "../commands/ListAccessorsCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccessorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccessors(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAccessors = createPaginator(ManagedBlockchainClient, ListAccessorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInvitationsCommand, } from "../commands/ListInvitationsCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInvitationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInvitations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListInvitations = createPaginator(ManagedBlockchainClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMembersCommand } from "../commands/ListMembersCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMembersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMembers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListMembers = createPaginator(ManagedBlockchainClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListNetworksCommand, } from "../commands/ListNetworksCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListNetworksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListNetworks(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListNetworks = createPaginator(ManagedBlockchainClient, ListNetworksCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListNodesCommand } from "../commands/ListNodesCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListNodesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListNodes(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListNodes = createPaginator(ManagedBlockchainClient, ListNodesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListProposalVotesCommand, } from "../commands/ListProposalVotesCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProposalVotesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProposalVotes(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListProposalVotes = createPaginator(ManagedBlockchainClient, ListProposalVotesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListProposalsCommand, } from "../commands/ListProposalsCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProposalsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProposals(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListProposals = createPaginator(ManagedBlockchainClient, ListProposalsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAccessors: (config: ManagedBlockchainPaginationConfiguration, input: ListAccessorsCommandInput, ...rest: any[]) => Paginator<ListAccessorsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListInvitations: (config: ManagedBlockchainPaginationConfiguration, input: ListInvitationsCommandInput, ...rest: any[]) => Paginator<ListInvitationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListMembers: (config: ManagedBlockchainPaginationConfiguration, input: ListMembersCommandInput, ...rest: any[]) => Paginator<ListMembersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListNetworks: (config: ManagedBlockchainPaginationConfiguration, input: ListNetworksCommandInput, ...rest: any[]) => Paginator<ListNetworksCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListNodes: (config: ManagedBlockchainPaginationConfiguration, input: ListNodesCommandInput, ...rest: any[]) => Paginator<ListNodesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListProposalVotes: (config: ManagedBlockchainPaginationConfiguration, input: ListProposalVotesCommandInput, ...rest: any[]) => Paginator<ListProposalVotesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListProposals: (config: ManagedBlockchainPaginationConfiguration, input: ListProposalsCommandInput, ...rest: any[]) => Paginator<ListProposalsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAccessorsCommandOutput,
|
|
5
5
|
} from "../commands/ListAccessorsCommand";
|
|
6
6
|
import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAccessors: (
|
|
8
8
|
config: ManagedBlockchainPaginationConfiguration,
|
|
9
9
|
input: ListAccessorsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAccessorsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListInvitationsCommandOutput,
|
|
5
5
|
} from "../commands/ListInvitationsCommand";
|
|
6
6
|
import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListInvitations: (
|
|
8
8
|
config: ManagedBlockchainPaginationConfiguration,
|
|
9
9
|
input: ListInvitationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListInvitationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListMembersCommandOutput,
|
|
5
5
|
} from "../commands/ListMembersCommand";
|
|
6
6
|
import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListMembers: (
|
|
8
8
|
config: ManagedBlockchainPaginationConfiguration,
|
|
9
9
|
input: ListMembersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListMembersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListNetworksCommandOutput,
|
|
5
5
|
} from "../commands/ListNetworksCommand";
|
|
6
6
|
import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListNetworks: (
|
|
8
8
|
config: ManagedBlockchainPaginationConfiguration,
|
|
9
9
|
input: ListNetworksCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListNetworksCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListNodesCommandOutput,
|
|
5
5
|
} from "../commands/ListNodesCommand";
|
|
6
6
|
import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListNodes: (
|
|
8
8
|
config: ManagedBlockchainPaginationConfiguration,
|
|
9
9
|
input: ListNodesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListNodesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListProposalVotesCommandOutput,
|
|
5
5
|
} from "../commands/ListProposalVotesCommand";
|
|
6
6
|
import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListProposalVotes: (
|
|
8
8
|
config: ManagedBlockchainPaginationConfiguration,
|
|
9
9
|
input: ListProposalVotesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListProposalVotesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListProposalsCommandOutput,
|
|
5
5
|
} from "../commands/ListProposalsCommand";
|
|
6
6
|
import { ManagedBlockchainPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListProposals: (
|
|
8
8
|
config: ManagedBlockchainPaginationConfiguration,
|
|
9
9
|
input: ListProposalsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListProposalsCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-managedblockchain",
|
|
3
3
|
"description": "AWS SDK for JavaScript Managedblockchain Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
24
|
"@aws-sdk/core": "3.477.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|