@aws-sdk/client-groundstation 3.35.0 → 3.36.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 (221) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/GroundStation.js +0 -1
  3. package/dist-cjs/GroundStationClient.js +0 -1
  4. package/dist-cjs/commands/CancelContactCommand.js +0 -1
  5. package/dist-cjs/commands/CreateConfigCommand.js +0 -1
  6. package/dist-cjs/commands/CreateDataflowEndpointGroupCommand.js +0 -1
  7. package/dist-cjs/commands/CreateMissionProfileCommand.js +0 -1
  8. package/dist-cjs/commands/DeleteConfigCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteDataflowEndpointGroupCommand.js +0 -1
  10. package/dist-cjs/commands/DeleteMissionProfileCommand.js +0 -1
  11. package/dist-cjs/commands/DescribeContactCommand.js +0 -1
  12. package/dist-cjs/commands/GetConfigCommand.js +0 -1
  13. package/dist-cjs/commands/GetDataflowEndpointGroupCommand.js +0 -1
  14. package/dist-cjs/commands/GetMinuteUsageCommand.js +0 -1
  15. package/dist-cjs/commands/GetMissionProfileCommand.js +0 -1
  16. package/dist-cjs/commands/GetSatelliteCommand.js +0 -1
  17. package/dist-cjs/commands/ListConfigsCommand.js +0 -1
  18. package/dist-cjs/commands/ListContactsCommand.js +0 -1
  19. package/dist-cjs/commands/ListDataflowEndpointGroupsCommand.js +0 -1
  20. package/dist-cjs/commands/ListGroundStationsCommand.js +0 -1
  21. package/dist-cjs/commands/ListMissionProfilesCommand.js +0 -1
  22. package/dist-cjs/commands/ListSatellitesCommand.js +0 -1
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  24. package/dist-cjs/commands/ReserveContactCommand.js +0 -1
  25. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  26. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  27. package/dist-cjs/commands/UpdateConfigCommand.js +0 -1
  28. package/dist-cjs/commands/UpdateMissionProfileCommand.js +0 -1
  29. package/dist-cjs/endpoints.js +0 -1
  30. package/dist-cjs/index.js +0 -1
  31. package/dist-cjs/models/index.js +0 -1
  32. package/dist-cjs/models/models_0.js +0 -1
  33. package/dist-cjs/pagination/Interfaces.js +0 -1
  34. package/dist-cjs/pagination/ListConfigsPaginator.js +0 -1
  35. package/dist-cjs/pagination/ListContactsPaginator.js +0 -1
  36. package/dist-cjs/pagination/ListDataflowEndpointGroupsPaginator.js +0 -1
  37. package/dist-cjs/pagination/ListGroundStationsPaginator.js +0 -1
  38. package/dist-cjs/pagination/ListMissionProfilesPaginator.js +0 -1
  39. package/dist-cjs/pagination/ListSatellitesPaginator.js +0 -1
  40. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  41. package/dist-cjs/runtimeConfig.browser.js +2 -3
  42. package/dist-cjs/runtimeConfig.js +3 -4
  43. package/dist-cjs/runtimeConfig.native.js +0 -1
  44. package/dist-cjs/runtimeConfig.shared.js +0 -1
  45. package/dist-es/GroundStation.js +0 -1
  46. package/dist-es/GroundStationClient.js +0 -1
  47. package/dist-es/commands/CancelContactCommand.js +0 -1
  48. package/dist-es/commands/CreateConfigCommand.js +0 -1
  49. package/dist-es/commands/CreateDataflowEndpointGroupCommand.js +0 -1
  50. package/dist-es/commands/CreateMissionProfileCommand.js +0 -1
  51. package/dist-es/commands/DeleteConfigCommand.js +0 -1
  52. package/dist-es/commands/DeleteDataflowEndpointGroupCommand.js +0 -1
  53. package/dist-es/commands/DeleteMissionProfileCommand.js +0 -1
  54. package/dist-es/commands/DescribeContactCommand.js +0 -1
  55. package/dist-es/commands/GetConfigCommand.js +0 -1
  56. package/dist-es/commands/GetDataflowEndpointGroupCommand.js +0 -1
  57. package/dist-es/commands/GetMinuteUsageCommand.js +0 -1
  58. package/dist-es/commands/GetMissionProfileCommand.js +0 -1
  59. package/dist-es/commands/GetSatelliteCommand.js +0 -1
  60. package/dist-es/commands/ListConfigsCommand.js +0 -1
  61. package/dist-es/commands/ListContactsCommand.js +0 -1
  62. package/dist-es/commands/ListDataflowEndpointGroupsCommand.js +0 -1
  63. package/dist-es/commands/ListGroundStationsCommand.js +0 -1
  64. package/dist-es/commands/ListMissionProfilesCommand.js +0 -1
  65. package/dist-es/commands/ListSatellitesCommand.js +0 -1
  66. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  67. package/dist-es/commands/ReserveContactCommand.js +0 -1
  68. package/dist-es/commands/TagResourceCommand.js +0 -1
  69. package/dist-es/commands/UntagResourceCommand.js +0 -1
  70. package/dist-es/commands/UpdateConfigCommand.js +0 -1
  71. package/dist-es/commands/UpdateMissionProfileCommand.js +0 -1
  72. package/dist-es/endpoints.js +0 -1
  73. package/dist-es/index.js +0 -1
  74. package/dist-es/models/index.js +0 -1
  75. package/dist-es/models/models_0.js +0 -1
  76. package/dist-es/pagination/Interfaces.js +0 -1
  77. package/dist-es/pagination/ListConfigsPaginator.js +0 -1
  78. package/dist-es/pagination/ListContactsPaginator.js +0 -1
  79. package/dist-es/pagination/ListDataflowEndpointGroupsPaginator.js +0 -1
  80. package/dist-es/pagination/ListGroundStationsPaginator.js +0 -1
  81. package/dist-es/pagination/ListMissionProfilesPaginator.js +0 -1
  82. package/dist-es/pagination/ListSatellitesPaginator.js +0 -1
  83. package/dist-es/protocols/Aws_restJson1.js +0 -1
  84. package/dist-es/runtimeConfig.browser.js +1 -2
  85. package/dist-es/runtimeConfig.js +2 -3
  86. package/dist-es/runtimeConfig.native.js +0 -1
  87. package/dist-es/runtimeConfig.shared.js +0 -1
  88. package/package.json +33 -30
  89. package/dist-cjs/GroundStation.js.map +0 -1
  90. package/dist-cjs/GroundStationClient.js.map +0 -1
  91. package/dist-cjs/commands/CancelContactCommand.js.map +0 -1
  92. package/dist-cjs/commands/CreateConfigCommand.js.map +0 -1
  93. package/dist-cjs/commands/CreateDataflowEndpointGroupCommand.js.map +0 -1
  94. package/dist-cjs/commands/CreateMissionProfileCommand.js.map +0 -1
  95. package/dist-cjs/commands/DeleteConfigCommand.js.map +0 -1
  96. package/dist-cjs/commands/DeleteDataflowEndpointGroupCommand.js.map +0 -1
  97. package/dist-cjs/commands/DeleteMissionProfileCommand.js.map +0 -1
  98. package/dist-cjs/commands/DescribeContactCommand.js.map +0 -1
  99. package/dist-cjs/commands/GetConfigCommand.js.map +0 -1
  100. package/dist-cjs/commands/GetDataflowEndpointGroupCommand.js.map +0 -1
  101. package/dist-cjs/commands/GetMinuteUsageCommand.js.map +0 -1
  102. package/dist-cjs/commands/GetMissionProfileCommand.js.map +0 -1
  103. package/dist-cjs/commands/GetSatelliteCommand.js.map +0 -1
  104. package/dist-cjs/commands/ListConfigsCommand.js.map +0 -1
  105. package/dist-cjs/commands/ListContactsCommand.js.map +0 -1
  106. package/dist-cjs/commands/ListDataflowEndpointGroupsCommand.js.map +0 -1
  107. package/dist-cjs/commands/ListGroundStationsCommand.js.map +0 -1
  108. package/dist-cjs/commands/ListMissionProfilesCommand.js.map +0 -1
  109. package/dist-cjs/commands/ListSatellitesCommand.js.map +0 -1
  110. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  111. package/dist-cjs/commands/ReserveContactCommand.js.map +0 -1
  112. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  113. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  114. package/dist-cjs/commands/UpdateConfigCommand.js.map +0 -1
  115. package/dist-cjs/commands/UpdateMissionProfileCommand.js.map +0 -1
  116. package/dist-cjs/endpoints.js.map +0 -1
  117. package/dist-cjs/index.js.map +0 -1
  118. package/dist-cjs/models/index.js.map +0 -1
  119. package/dist-cjs/models/models_0.js.map +0 -1
  120. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  121. package/dist-cjs/pagination/ListConfigsPaginator.js.map +0 -1
  122. package/dist-cjs/pagination/ListContactsPaginator.js.map +0 -1
  123. package/dist-cjs/pagination/ListDataflowEndpointGroupsPaginator.js.map +0 -1
  124. package/dist-cjs/pagination/ListGroundStationsPaginator.js.map +0 -1
  125. package/dist-cjs/pagination/ListMissionProfilesPaginator.js.map +0 -1
  126. package/dist-cjs/pagination/ListSatellitesPaginator.js.map +0 -1
  127. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  128. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  129. package/dist-cjs/runtimeConfig.js.map +0 -1
  130. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  131. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  132. package/dist-es/GroundStation.js.map +0 -1
  133. package/dist-es/GroundStationClient.js.map +0 -1
  134. package/dist-es/commands/CancelContactCommand.js.map +0 -1
  135. package/dist-es/commands/CreateConfigCommand.js.map +0 -1
  136. package/dist-es/commands/CreateDataflowEndpointGroupCommand.js.map +0 -1
  137. package/dist-es/commands/CreateMissionProfileCommand.js.map +0 -1
  138. package/dist-es/commands/DeleteConfigCommand.js.map +0 -1
  139. package/dist-es/commands/DeleteDataflowEndpointGroupCommand.js.map +0 -1
  140. package/dist-es/commands/DeleteMissionProfileCommand.js.map +0 -1
  141. package/dist-es/commands/DescribeContactCommand.js.map +0 -1
  142. package/dist-es/commands/GetConfigCommand.js.map +0 -1
  143. package/dist-es/commands/GetDataflowEndpointGroupCommand.js.map +0 -1
  144. package/dist-es/commands/GetMinuteUsageCommand.js.map +0 -1
  145. package/dist-es/commands/GetMissionProfileCommand.js.map +0 -1
  146. package/dist-es/commands/GetSatelliteCommand.js.map +0 -1
  147. package/dist-es/commands/ListConfigsCommand.js.map +0 -1
  148. package/dist-es/commands/ListContactsCommand.js.map +0 -1
  149. package/dist-es/commands/ListDataflowEndpointGroupsCommand.js.map +0 -1
  150. package/dist-es/commands/ListGroundStationsCommand.js.map +0 -1
  151. package/dist-es/commands/ListMissionProfilesCommand.js.map +0 -1
  152. package/dist-es/commands/ListSatellitesCommand.js.map +0 -1
  153. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  154. package/dist-es/commands/ReserveContactCommand.js.map +0 -1
  155. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  156. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  157. package/dist-es/commands/UpdateConfigCommand.js.map +0 -1
  158. package/dist-es/commands/UpdateMissionProfileCommand.js.map +0 -1
  159. package/dist-es/endpoints.js.map +0 -1
  160. package/dist-es/index.js.map +0 -1
  161. package/dist-es/models/index.js.map +0 -1
  162. package/dist-es/models/models_0.js.map +0 -1
  163. package/dist-es/pagination/Interfaces.js.map +0 -1
  164. package/dist-es/pagination/ListConfigsPaginator.js.map +0 -1
  165. package/dist-es/pagination/ListContactsPaginator.js.map +0 -1
  166. package/dist-es/pagination/ListDataflowEndpointGroupsPaginator.js.map +0 -1
  167. package/dist-es/pagination/ListGroundStationsPaginator.js.map +0 -1
  168. package/dist-es/pagination/ListMissionProfilesPaginator.js.map +0 -1
  169. package/dist-es/pagination/ListSatellitesPaginator.js.map +0 -1
  170. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  171. package/dist-es/runtimeConfig.browser.js.map +0 -1
  172. package/dist-es/runtimeConfig.js.map +0 -1
  173. package/dist-es/runtimeConfig.native.js.map +0 -1
  174. package/dist-es/runtimeConfig.shared.js.map +0 -1
  175. package/jest.config.js +0 -4
  176. package/src/GroundStation.ts +0 -907
  177. package/src/GroundStationClient.ts +0 -341
  178. package/src/commands/CancelContactCommand.ts +0 -95
  179. package/src/commands/CreateConfigCommand.ts +0 -96
  180. package/src/commands/CreateDataflowEndpointGroupCommand.ts +0 -102
  181. package/src/commands/CreateMissionProfileCommand.ts +0 -98
  182. package/src/commands/DeleteConfigCommand.ts +0 -95
  183. package/src/commands/DeleteDataflowEndpointGroupCommand.ts +0 -98
  184. package/src/commands/DeleteMissionProfileCommand.ts +0 -95
  185. package/src/commands/DescribeContactCommand.ts +0 -95
  186. package/src/commands/GetConfigCommand.ts +0 -96
  187. package/src/commands/GetDataflowEndpointGroupCommand.ts +0 -95
  188. package/src/commands/GetMinuteUsageCommand.ts +0 -95
  189. package/src/commands/GetMissionProfileCommand.ts +0 -95
  190. package/src/commands/GetSatelliteCommand.ts +0 -95
  191. package/src/commands/ListConfigsCommand.ts +0 -95
  192. package/src/commands/ListContactsCommand.ts +0 -98
  193. package/src/commands/ListDataflowEndpointGroupsCommand.ts +0 -98
  194. package/src/commands/ListGroundStationsCommand.ts +0 -95
  195. package/src/commands/ListMissionProfilesCommand.ts +0 -95
  196. package/src/commands/ListSatellitesCommand.ts +0 -95
  197. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  198. package/src/commands/ReserveContactCommand.ts +0 -95
  199. package/src/commands/TagResourceCommand.ts +0 -95
  200. package/src/commands/UntagResourceCommand.ts +0 -95
  201. package/src/commands/UpdateConfigCommand.ts +0 -97
  202. package/src/commands/UpdateMissionProfileCommand.ts +0 -97
  203. package/src/endpoints.ts +0 -73
  204. package/src/index.ts +0 -35
  205. package/src/models/index.ts +0 -1
  206. package/src/models/models_0.ts +0 -2545
  207. package/src/pagination/Interfaces.ts +0 -8
  208. package/src/pagination/ListConfigsPaginator.ts +0 -55
  209. package/src/pagination/ListContactsPaginator.ts +0 -59
  210. package/src/pagination/ListDataflowEndpointGroupsPaginator.ts +0 -59
  211. package/src/pagination/ListGroundStationsPaginator.ts +0 -59
  212. package/src/pagination/ListMissionProfilesPaginator.ts +0 -59
  213. package/src/pagination/ListSatellitesPaginator.ts +0 -59
  214. package/src/protocols/Aws_restJson1.ts +0 -3832
  215. package/src/runtimeConfig.browser.ts +0 -41
  216. package/src/runtimeConfig.native.ts +0 -17
  217. package/src/runtimeConfig.shared.ts +0 -17
  218. package/src/runtimeConfig.ts +0 -46
  219. package/tsconfig.es.json +0 -10
  220. package/tsconfig.json +0 -33
  221. package/tsconfig.types.json +0 -9
@@ -1,8 +0,0 @@
1
- import { PaginationConfiguration } from "@aws-sdk/types";
2
-
3
- import { GroundStation } from "../GroundStation";
4
- import { GroundStationClient } from "../GroundStationClient";
5
-
6
- export interface GroundStationPaginationConfiguration extends PaginationConfiguration {
7
- client: GroundStation | GroundStationClient;
8
- }
@@ -1,55 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import { ListConfigsCommand, ListConfigsCommandInput, ListConfigsCommandOutput } from "../commands/ListConfigsCommand";
4
- import { GroundStation } from "../GroundStation";
5
- import { GroundStationClient } from "../GroundStationClient";
6
- import { GroundStationPaginationConfiguration } from "./Interfaces";
7
-
8
- /**
9
- * @private
10
- */
11
- const makePagedClientRequest = async (
12
- client: GroundStationClient,
13
- input: ListConfigsCommandInput,
14
- ...args: any
15
- ): Promise<ListConfigsCommandOutput> => {
16
- // @ts-ignore
17
- return await client.send(new ListConfigsCommand(input), ...args);
18
- };
19
- /**
20
- * @private
21
- */
22
- const makePagedRequest = async (
23
- client: GroundStation,
24
- input: ListConfigsCommandInput,
25
- ...args: any
26
- ): Promise<ListConfigsCommandOutput> => {
27
- // @ts-ignore
28
- return await client.listConfigs(input, ...args);
29
- };
30
- export async function* paginateListConfigs(
31
- config: GroundStationPaginationConfiguration,
32
- input: ListConfigsCommandInput,
33
- ...additionalArguments: any
34
- ): Paginator<ListConfigsCommandOutput> {
35
- // ToDo: replace with actual type instead of typeof input.nextToken
36
- let token: typeof input.nextToken | undefined = config.startingToken || undefined;
37
- let hasNext = true;
38
- let page: ListConfigsCommandOutput;
39
- while (hasNext) {
40
- input.nextToken = token;
41
- input["maxResults"] = config.pageSize;
42
- if (config.client instanceof GroundStation) {
43
- page = await makePagedRequest(config.client, input, ...additionalArguments);
44
- } else if (config.client instanceof GroundStationClient) {
45
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
46
- } else {
47
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
48
- }
49
- yield page;
50
- token = page.nextToken;
51
- hasNext = !!token;
52
- }
53
- // @ts-ignore
54
- return undefined;
55
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListContactsCommand,
5
- ListContactsCommandInput,
6
- ListContactsCommandOutput,
7
- } from "../commands/ListContactsCommand";
8
- import { GroundStation } from "../GroundStation";
9
- import { GroundStationClient } from "../GroundStationClient";
10
- import { GroundStationPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: GroundStationClient,
17
- input: ListContactsCommandInput,
18
- ...args: any
19
- ): Promise<ListContactsCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListContactsCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: GroundStation,
28
- input: ListContactsCommandInput,
29
- ...args: any
30
- ): Promise<ListContactsCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listContacts(input, ...args);
33
- };
34
- export async function* paginateListContacts(
35
- config: GroundStationPaginationConfiguration,
36
- input: ListContactsCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListContactsCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.nextToken
40
- let token: typeof input.nextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListContactsCommandOutput;
43
- while (hasNext) {
44
- input.nextToken = token;
45
- input["maxResults"] = config.pageSize;
46
- if (config.client instanceof GroundStation) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof GroundStationClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
52
- }
53
- yield page;
54
- token = page.nextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListDataflowEndpointGroupsCommand,
5
- ListDataflowEndpointGroupsCommandInput,
6
- ListDataflowEndpointGroupsCommandOutput,
7
- } from "../commands/ListDataflowEndpointGroupsCommand";
8
- import { GroundStation } from "../GroundStation";
9
- import { GroundStationClient } from "../GroundStationClient";
10
- import { GroundStationPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: GroundStationClient,
17
- input: ListDataflowEndpointGroupsCommandInput,
18
- ...args: any
19
- ): Promise<ListDataflowEndpointGroupsCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListDataflowEndpointGroupsCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: GroundStation,
28
- input: ListDataflowEndpointGroupsCommandInput,
29
- ...args: any
30
- ): Promise<ListDataflowEndpointGroupsCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listDataflowEndpointGroups(input, ...args);
33
- };
34
- export async function* paginateListDataflowEndpointGroups(
35
- config: GroundStationPaginationConfiguration,
36
- input: ListDataflowEndpointGroupsCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListDataflowEndpointGroupsCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.nextToken
40
- let token: typeof input.nextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListDataflowEndpointGroupsCommandOutput;
43
- while (hasNext) {
44
- input.nextToken = token;
45
- input["maxResults"] = config.pageSize;
46
- if (config.client instanceof GroundStation) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof GroundStationClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
52
- }
53
- yield page;
54
- token = page.nextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListGroundStationsCommand,
5
- ListGroundStationsCommandInput,
6
- ListGroundStationsCommandOutput,
7
- } from "../commands/ListGroundStationsCommand";
8
- import { GroundStation } from "../GroundStation";
9
- import { GroundStationClient } from "../GroundStationClient";
10
- import { GroundStationPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: GroundStationClient,
17
- input: ListGroundStationsCommandInput,
18
- ...args: any
19
- ): Promise<ListGroundStationsCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListGroundStationsCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: GroundStation,
28
- input: ListGroundStationsCommandInput,
29
- ...args: any
30
- ): Promise<ListGroundStationsCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listGroundStations(input, ...args);
33
- };
34
- export async function* paginateListGroundStations(
35
- config: GroundStationPaginationConfiguration,
36
- input: ListGroundStationsCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListGroundStationsCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.nextToken
40
- let token: typeof input.nextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListGroundStationsCommandOutput;
43
- while (hasNext) {
44
- input.nextToken = token;
45
- input["maxResults"] = config.pageSize;
46
- if (config.client instanceof GroundStation) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof GroundStationClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
52
- }
53
- yield page;
54
- token = page.nextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListMissionProfilesCommand,
5
- ListMissionProfilesCommandInput,
6
- ListMissionProfilesCommandOutput,
7
- } from "../commands/ListMissionProfilesCommand";
8
- import { GroundStation } from "../GroundStation";
9
- import { GroundStationClient } from "../GroundStationClient";
10
- import { GroundStationPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: GroundStationClient,
17
- input: ListMissionProfilesCommandInput,
18
- ...args: any
19
- ): Promise<ListMissionProfilesCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListMissionProfilesCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: GroundStation,
28
- input: ListMissionProfilesCommandInput,
29
- ...args: any
30
- ): Promise<ListMissionProfilesCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listMissionProfiles(input, ...args);
33
- };
34
- export async function* paginateListMissionProfiles(
35
- config: GroundStationPaginationConfiguration,
36
- input: ListMissionProfilesCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListMissionProfilesCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.nextToken
40
- let token: typeof input.nextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListMissionProfilesCommandOutput;
43
- while (hasNext) {
44
- input.nextToken = token;
45
- input["maxResults"] = config.pageSize;
46
- if (config.client instanceof GroundStation) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof GroundStationClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
52
- }
53
- yield page;
54
- token = page.nextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListSatellitesCommand,
5
- ListSatellitesCommandInput,
6
- ListSatellitesCommandOutput,
7
- } from "../commands/ListSatellitesCommand";
8
- import { GroundStation } from "../GroundStation";
9
- import { GroundStationClient } from "../GroundStationClient";
10
- import { GroundStationPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: GroundStationClient,
17
- input: ListSatellitesCommandInput,
18
- ...args: any
19
- ): Promise<ListSatellitesCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListSatellitesCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: GroundStation,
28
- input: ListSatellitesCommandInput,
29
- ...args: any
30
- ): Promise<ListSatellitesCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listSatellites(input, ...args);
33
- };
34
- export async function* paginateListSatellites(
35
- config: GroundStationPaginationConfiguration,
36
- input: ListSatellitesCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListSatellitesCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.nextToken
40
- let token: typeof input.nextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListSatellitesCommandOutput;
43
- while (hasNext) {
44
- input.nextToken = token;
45
- input["maxResults"] = config.pageSize;
46
- if (config.client instanceof GroundStation) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof GroundStationClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected GroundStation | GroundStationClient");
52
- }
53
- yield page;
54
- token = page.nextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }