@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,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListConfigsCommand_1 = require("../commands/ListConfigsCommand");
5
6
  const GroundStationClient_1 = require("../GroundStationClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListConfigsCommand_1.ListConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListConfigs(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 GroundStationClient_1.GroundStationClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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.paginateListConfigs = paginateListConfigs;
7
+ exports.paginateListConfigs = (0, core_1.createPaginator)(GroundStationClient_1.GroundStationClient, ListConfigsCommand_1.ListConfigsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListContacts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListContactsCommand_1 = require("../commands/ListContactsCommand");
5
6
  const GroundStationClient_1 = require("../GroundStationClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListContactsCommand_1.ListContactsCommand(input), ...args);
8
- };
9
- async function* paginateListContacts(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 GroundStationClient_1.GroundStationClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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.paginateListContacts = paginateListContacts;
7
+ exports.paginateListContacts = (0, core_1.createPaginator)(GroundStationClient_1.GroundStationClient, ListContactsCommand_1.ListContactsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDataflowEndpointGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDataflowEndpointGroupsCommand_1 = require("../commands/ListDataflowEndpointGroupsCommand");
5
6
  const GroundStationClient_1 = require("../GroundStationClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDataflowEndpointGroupsCommand_1.ListDataflowEndpointGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListDataflowEndpointGroups(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 GroundStationClient_1.GroundStationClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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.paginateListDataflowEndpointGroups = paginateListDataflowEndpointGroups;
7
+ exports.paginateListDataflowEndpointGroups = (0, core_1.createPaginator)(GroundStationClient_1.GroundStationClient, ListDataflowEndpointGroupsCommand_1.ListDataflowEndpointGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEphemerides = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEphemeridesCommand_1 = require("../commands/ListEphemeridesCommand");
5
6
  const GroundStationClient_1 = require("../GroundStationClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEphemeridesCommand_1.ListEphemeridesCommand(input), ...args);
8
- };
9
- async function* paginateListEphemerides(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 GroundStationClient_1.GroundStationClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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.paginateListEphemerides = paginateListEphemerides;
7
+ exports.paginateListEphemerides = (0, core_1.createPaginator)(GroundStationClient_1.GroundStationClient, ListEphemeridesCommand_1.ListEphemeridesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListGroundStations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListGroundStationsCommand_1 = require("../commands/ListGroundStationsCommand");
5
6
  const GroundStationClient_1 = require("../GroundStationClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListGroundStationsCommand_1.ListGroundStationsCommand(input), ...args);
8
- };
9
- async function* paginateListGroundStations(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 GroundStationClient_1.GroundStationClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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.paginateListGroundStations = paginateListGroundStations;
7
+ exports.paginateListGroundStations = (0, core_1.createPaginator)(GroundStationClient_1.GroundStationClient, ListGroundStationsCommand_1.ListGroundStationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMissionProfiles = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMissionProfilesCommand_1 = require("../commands/ListMissionProfilesCommand");
5
6
  const GroundStationClient_1 = require("../GroundStationClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMissionProfilesCommand_1.ListMissionProfilesCommand(input), ...args);
8
- };
9
- async function* paginateListMissionProfiles(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 GroundStationClient_1.GroundStationClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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.paginateListMissionProfiles = paginateListMissionProfiles;
7
+ exports.paginateListMissionProfiles = (0, core_1.createPaginator)(GroundStationClient_1.GroundStationClient, ListMissionProfilesCommand_1.ListMissionProfilesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSatellites = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSatellitesCommand_1 = require("../commands/ListSatellitesCommand");
5
6
  const GroundStationClient_1 = require("../GroundStationClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSatellitesCommand_1.ListSatellitesCommand(input), ...args);
8
- };
9
- async function* paginateListSatellites(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 GroundStationClient_1.GroundStationClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
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.paginateListSatellites = paginateListSatellites;
7
+ exports.paginateListSatellites = (0, core_1.createPaginator)(GroundStationClient_1.GroundStationClient, ListSatellitesCommand_1.ListSatellitesCommand, "nextToken", "nextToken", "maxResults");