@aws-sdk/client-pinpoint-email 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.
Files changed (27) hide show
  1. package/dist-cjs/pagination/GetDedicatedIpsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListConfigurationSetsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListDedicatedIpPoolsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListDeliverabilityTestReportsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListDomainDeliverabilityCampaignsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListEmailIdentitiesPaginator.js +2 -24
  7. package/dist-cjs/protocols/Aws_restJson1.js +229 -543
  8. package/dist-es/pagination/GetDedicatedIpsPaginator.js +2 -23
  9. package/dist-es/pagination/ListConfigurationSetsPaginator.js +2 -23
  10. package/dist-es/pagination/ListDedicatedIpPoolsPaginator.js +2 -23
  11. package/dist-es/pagination/ListDeliverabilityTestReportsPaginator.js +2 -23
  12. package/dist-es/pagination/ListDomainDeliverabilityCampaignsPaginator.js +2 -23
  13. package/dist-es/pagination/ListEmailIdentitiesPaginator.js +2 -23
  14. package/dist-es/protocols/Aws_restJson1.js +230 -544
  15. package/dist-types/pagination/GetDedicatedIpsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListConfigurationSetsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListDedicatedIpPoolsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListDeliverabilityTestReportsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListDomainDeliverabilityCampaignsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListEmailIdentitiesPaginator.d.ts +1 -1
  21. package/dist-types/ts3.4/pagination/GetDedicatedIpsPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListConfigurationSetsPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/ListDedicatedIpPoolsPaginator.d.ts +3 -3
  24. package/dist-types/ts3.4/pagination/ListDeliverabilityTestReportsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListDomainDeliverabilityCampaignsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListEmailIdentitiesPaginator.d.ts +3 -3
  27. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDedicatedIps = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetDedicatedIpsCommand_1 = require("../commands/GetDedicatedIpsCommand");
5
6
  const PinpointEmailClient_1 = require("../PinpointEmailClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetDedicatedIpsCommand_1.GetDedicatedIpsCommand(input), ...args);
8
- };
9
- async function* paginateGetDedicatedIps(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["PageSize"] = config.pageSize;
16
- if (config.client instanceof PinpointEmailClient_1.PinpointEmailClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected PinpointEmail | PinpointEmailClient");
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.paginateGetDedicatedIps = paginateGetDedicatedIps;
7
+ exports.paginateGetDedicatedIps = (0, core_1.createPaginator)(PinpointEmailClient_1.PinpointEmailClient, GetDedicatedIpsCommand_1.GetDedicatedIpsCommand, "NextToken", "NextToken", "PageSize");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListConfigurationSets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListConfigurationSetsCommand_1 = require("../commands/ListConfigurationSetsCommand");
5
6
  const PinpointEmailClient_1 = require("../PinpointEmailClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListConfigurationSetsCommand_1.ListConfigurationSetsCommand(input), ...args);
8
- };
9
- async function* paginateListConfigurationSets(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["PageSize"] = config.pageSize;
16
- if (config.client instanceof PinpointEmailClient_1.PinpointEmailClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected PinpointEmail | PinpointEmailClient");
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.paginateListConfigurationSets = paginateListConfigurationSets;
7
+ exports.paginateListConfigurationSets = (0, core_1.createPaginator)(PinpointEmailClient_1.PinpointEmailClient, ListConfigurationSetsCommand_1.ListConfigurationSetsCommand, "NextToken", "NextToken", "PageSize");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDedicatedIpPools = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDedicatedIpPoolsCommand_1 = require("../commands/ListDedicatedIpPoolsCommand");
5
6
  const PinpointEmailClient_1 = require("../PinpointEmailClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDedicatedIpPoolsCommand_1.ListDedicatedIpPoolsCommand(input), ...args);
8
- };
9
- async function* paginateListDedicatedIpPools(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["PageSize"] = config.pageSize;
16
- if (config.client instanceof PinpointEmailClient_1.PinpointEmailClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected PinpointEmail | PinpointEmailClient");
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.paginateListDedicatedIpPools = paginateListDedicatedIpPools;
7
+ exports.paginateListDedicatedIpPools = (0, core_1.createPaginator)(PinpointEmailClient_1.PinpointEmailClient, ListDedicatedIpPoolsCommand_1.ListDedicatedIpPoolsCommand, "NextToken", "NextToken", "PageSize");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDeliverabilityTestReports = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDeliverabilityTestReportsCommand_1 = require("../commands/ListDeliverabilityTestReportsCommand");
5
6
  const PinpointEmailClient_1 = require("../PinpointEmailClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDeliverabilityTestReportsCommand_1.ListDeliverabilityTestReportsCommand(input), ...args);
8
- };
9
- async function* paginateListDeliverabilityTestReports(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["PageSize"] = config.pageSize;
16
- if (config.client instanceof PinpointEmailClient_1.PinpointEmailClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected PinpointEmail | PinpointEmailClient");
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.paginateListDeliverabilityTestReports = paginateListDeliverabilityTestReports;
7
+ exports.paginateListDeliverabilityTestReports = (0, core_1.createPaginator)(PinpointEmailClient_1.PinpointEmailClient, ListDeliverabilityTestReportsCommand_1.ListDeliverabilityTestReportsCommand, "NextToken", "NextToken", "PageSize");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDomainDeliverabilityCampaigns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDomainDeliverabilityCampaignsCommand_1 = require("../commands/ListDomainDeliverabilityCampaignsCommand");
5
6
  const PinpointEmailClient_1 = require("../PinpointEmailClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDomainDeliverabilityCampaignsCommand_1.ListDomainDeliverabilityCampaignsCommand(input), ...args);
8
- };
9
- async function* paginateListDomainDeliverabilityCampaigns(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["PageSize"] = config.pageSize;
16
- if (config.client instanceof PinpointEmailClient_1.PinpointEmailClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected PinpointEmail | PinpointEmailClient");
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.paginateListDomainDeliverabilityCampaigns = paginateListDomainDeliverabilityCampaigns;
7
+ exports.paginateListDomainDeliverabilityCampaigns = (0, core_1.createPaginator)(PinpointEmailClient_1.PinpointEmailClient, ListDomainDeliverabilityCampaignsCommand_1.ListDomainDeliverabilityCampaignsCommand, "NextToken", "NextToken", "PageSize");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEmailIdentities = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEmailIdentitiesCommand_1 = require("../commands/ListEmailIdentitiesCommand");
5
6
  const PinpointEmailClient_1 = require("../PinpointEmailClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEmailIdentitiesCommand_1.ListEmailIdentitiesCommand(input), ...args);
8
- };
9
- async function* paginateListEmailIdentities(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["PageSize"] = config.pageSize;
16
- if (config.client instanceof PinpointEmailClient_1.PinpointEmailClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected PinpointEmail | PinpointEmailClient");
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.paginateListEmailIdentities = paginateListEmailIdentities;
7
+ exports.paginateListEmailIdentities = (0, core_1.createPaginator)(PinpointEmailClient_1.PinpointEmailClient, ListEmailIdentitiesCommand_1.ListEmailIdentitiesCommand, "NextToken", "NextToken", "PageSize");