@aws-sdk/client-groundstation 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 (31) hide show
  1. package/dist-cjs/pagination/ListConfigsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListContactsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListDataflowEndpointGroupsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListEphemeridesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListGroundStationsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListMissionProfilesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListSatellitesPaginator.js +2 -24
  8. package/dist-cjs/protocols/Aws_restJson1.js +174 -410
  9. package/dist-es/pagination/ListConfigsPaginator.js +2 -23
  10. package/dist-es/pagination/ListContactsPaginator.js +2 -23
  11. package/dist-es/pagination/ListDataflowEndpointGroupsPaginator.js +2 -23
  12. package/dist-es/pagination/ListEphemeridesPaginator.js +2 -23
  13. package/dist-es/pagination/ListGroundStationsPaginator.js +2 -23
  14. package/dist-es/pagination/ListMissionProfilesPaginator.js +2 -23
  15. package/dist-es/pagination/ListSatellitesPaginator.js +2 -23
  16. package/dist-es/protocols/Aws_restJson1.js +175 -411
  17. package/dist-types/pagination/ListConfigsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListContactsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListDataflowEndpointGroupsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListEphemeridesPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListGroundStationsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListMissionProfilesPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListSatellitesPaginator.d.ts +1 -1
  24. package/dist-types/ts3.4/pagination/ListConfigsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListContactsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListDataflowEndpointGroupsPaginator.d.ts +3 -3
  27. package/dist-types/ts3.4/pagination/ListEphemeridesPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListGroundStationsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListMissionProfilesPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListSatellitesPaginator.d.ts +3 -3
  31. package/package.json +7 -6
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListConfigsCommand } from "../commands/ListConfigsCommand";
2
3
  import { GroundStationClient } from "../GroundStationClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListConfigsCommand(input), ...args);
5
- };
6
- export async function* paginateListConfigs(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 GroundStationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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 paginateListConfigs = createPaginator(GroundStationClient, ListConfigsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListContactsCommand, } from "../commands/ListContactsCommand";
2
3
  import { GroundStationClient } from "../GroundStationClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListContactsCommand(input), ...args);
5
- };
6
- export async function* paginateListContacts(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 GroundStationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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 paginateListContacts = createPaginator(GroundStationClient, ListContactsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDataflowEndpointGroupsCommand, } from "../commands/ListDataflowEndpointGroupsCommand";
2
3
  import { GroundStationClient } from "../GroundStationClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDataflowEndpointGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListDataflowEndpointGroups(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 GroundStationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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 paginateListDataflowEndpointGroups = createPaginator(GroundStationClient, ListDataflowEndpointGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListEphemeridesCommand, } from "../commands/ListEphemeridesCommand";
2
3
  import { GroundStationClient } from "../GroundStationClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEphemeridesCommand(input), ...args);
5
- };
6
- export async function* paginateListEphemerides(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 GroundStationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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 paginateListEphemerides = createPaginator(GroundStationClient, ListEphemeridesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListGroundStationsCommand, } from "../commands/ListGroundStationsCommand";
2
3
  import { GroundStationClient } from "../GroundStationClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListGroundStationsCommand(input), ...args);
5
- };
6
- export async function* paginateListGroundStations(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 GroundStationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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 paginateListGroundStations = createPaginator(GroundStationClient, ListGroundStationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMissionProfilesCommand, } from "../commands/ListMissionProfilesCommand";
2
3
  import { GroundStationClient } from "../GroundStationClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMissionProfilesCommand(input), ...args);
5
- };
6
- export async function* paginateListMissionProfiles(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 GroundStationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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 paginateListMissionProfiles = createPaginator(GroundStationClient, ListMissionProfilesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSatellitesCommand, } from "../commands/ListSatellitesCommand";
2
3
  import { GroundStationClient } from "../GroundStationClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSatellitesCommand(input), ...args);
5
- };
6
- export async function* paginateListSatellites(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 GroundStationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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 paginateListSatellites = createPaginator(GroundStationClient, ListSatellitesCommand, "nextToken", "nextToken", "maxResults");