@aws-sdk/client-location 3.36.0 → 3.39.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 (140) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/Location.js +0 -3
  3. package/dist-cjs/LocationClient.js +0 -8
  4. package/dist-cjs/commands/AssociateTrackerConsumerCommand.js +0 -30
  5. package/dist-cjs/commands/BatchDeleteDevicePositionHistoryCommand.js +0 -24
  6. package/dist-cjs/commands/BatchDeleteGeofenceCommand.js +0 -27
  7. package/dist-cjs/commands/BatchEvaluateGeofencesCommand.js +0 -44
  8. package/dist-cjs/commands/BatchGetDevicePositionCommand.js +0 -24
  9. package/dist-cjs/commands/BatchPutGeofenceCommand.js +0 -25
  10. package/dist-cjs/commands/BatchUpdateDevicePositionCommand.js +0 -34
  11. package/dist-cjs/commands/CalculateRouteCommand.js +0 -54
  12. package/dist-cjs/commands/CreateGeofenceCollectionCommand.js +0 -24
  13. package/dist-cjs/commands/CreateMapCommand.js +0 -25
  14. package/dist-cjs/commands/CreatePlaceIndexCommand.js +0 -25
  15. package/dist-cjs/commands/CreateRouteCalculatorCommand.js +0 -27
  16. package/dist-cjs/commands/CreateTrackerCommand.js +0 -25
  17. package/dist-cjs/commands/DeleteGeofenceCollectionCommand.js +0 -28
  18. package/dist-cjs/commands/DeleteMapCommand.js +0 -28
  19. package/dist-cjs/commands/DeletePlaceIndexCommand.js +0 -27
  20. package/dist-cjs/commands/DeleteRouteCalculatorCommand.js +0 -27
  21. package/dist-cjs/commands/DeleteTrackerCommand.js +0 -29
  22. package/dist-cjs/commands/DescribeGeofenceCollectionCommand.js +0 -24
  23. package/dist-cjs/commands/DescribeMapCommand.js +0 -24
  24. package/dist-cjs/commands/DescribePlaceIndexCommand.js +0 -24
  25. package/dist-cjs/commands/DescribeRouteCalculatorCommand.js +0 -24
  26. package/dist-cjs/commands/DescribeTrackerCommand.js +0 -24
  27. package/dist-cjs/commands/DisassociateTrackerConsumerCommand.js +0 -28
  28. package/dist-cjs/commands/GetDevicePositionCommand.js +0 -27
  29. package/dist-cjs/commands/GetDevicePositionHistoryCommand.js +0 -28
  30. package/dist-cjs/commands/GetGeofenceCommand.js +0 -24
  31. package/dist-cjs/commands/GetMapGlyphsCommand.js +0 -24
  32. package/dist-cjs/commands/GetMapSpritesCommand.js +0 -26
  33. package/dist-cjs/commands/GetMapStyleDescriptorCommand.js +0 -27
  34. package/dist-cjs/commands/GetMapTileCommand.js +0 -29
  35. package/dist-cjs/commands/ListDevicePositionsCommand.js +0 -24
  36. package/dist-cjs/commands/ListGeofenceCollectionsCommand.js +0 -24
  37. package/dist-cjs/commands/ListGeofencesCommand.js +0 -24
  38. package/dist-cjs/commands/ListMapsCommand.js +0 -24
  39. package/dist-cjs/commands/ListPlaceIndexesCommand.js +0 -24
  40. package/dist-cjs/commands/ListRouteCalculatorsCommand.js +0 -24
  41. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  42. package/dist-cjs/commands/ListTrackerConsumersCommand.js +0 -24
  43. package/dist-cjs/commands/ListTrackersCommand.js +0 -24
  44. package/dist-cjs/commands/PutGeofenceCommand.js +0 -25
  45. package/dist-cjs/commands/SearchPlaceIndexForPositionCommand.js +0 -25
  46. package/dist-cjs/commands/SearchPlaceIndexForTextCommand.js +0 -32
  47. package/dist-cjs/commands/TagResourceCommand.js +0 -37
  48. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  49. package/dist-cjs/commands/UpdateGeofenceCollectionCommand.js +0 -24
  50. package/dist-cjs/commands/UpdateMapCommand.js +0 -24
  51. package/dist-cjs/commands/UpdatePlaceIndexCommand.js +0 -24
  52. package/dist-cjs/commands/UpdateRouteCalculatorCommand.js +0 -24
  53. package/dist-cjs/commands/UpdateTrackerCommand.js +0 -24
  54. package/dist-cjs/commands/index.js +53 -0
  55. package/dist-cjs/endpoints.js +6 -1
  56. package/dist-cjs/index.js +4 -62
  57. package/dist-cjs/models/models_0.js +0 -429
  58. package/dist-cjs/pagination/GetDevicePositionHistoryPaginator.js +0 -10
  59. package/dist-cjs/pagination/ListDevicePositionsPaginator.js +0 -10
  60. package/dist-cjs/pagination/ListGeofenceCollectionsPaginator.js +0 -10
  61. package/dist-cjs/pagination/ListGeofencesPaginator.js +0 -10
  62. package/dist-cjs/pagination/ListMapsPaginator.js +0 -10
  63. package/dist-cjs/pagination/ListPlaceIndexesPaginator.js +0 -10
  64. package/dist-cjs/pagination/ListRouteCalculatorsPaginator.js +0 -10
  65. package/dist-cjs/pagination/ListTrackerConsumersPaginator.js +0 -10
  66. package/dist-cjs/pagination/ListTrackersPaginator.js +0 -10
  67. package/dist-cjs/pagination/index.js +13 -0
  68. package/dist-cjs/protocols/Aws_restJson1.js +0 -5
  69. package/dist-cjs/runtimeConfig.browser.js +1 -5
  70. package/dist-cjs/runtimeConfig.js +1 -5
  71. package/dist-cjs/runtimeConfig.native.js +0 -3
  72. package/dist-cjs/runtimeConfig.shared.js +0 -3
  73. package/dist-es/commands/index.js +50 -0
  74. package/dist-es/endpoints.js +6 -1
  75. package/dist-es/index.js +4 -62
  76. package/dist-es/pagination/index.js +10 -0
  77. package/dist-types/commands/index.d.ts +50 -0
  78. package/dist-types/index.d.ts +4 -62
  79. package/dist-types/pagination/index.d.ts +10 -0
  80. package/dist-types/ts3.4/Location.d.ts +51 -292
  81. package/dist-types/ts3.4/LocationClient.d.ts +24 -89
  82. package/dist-types/ts3.4/commands/AssociateTrackerConsumerCommand.d.ts +2 -26
  83. package/dist-types/ts3.4/commands/BatchDeleteDevicePositionHistoryCommand.d.ts +2 -20
  84. package/dist-types/ts3.4/commands/BatchDeleteGeofenceCommand.d.ts +2 -23
  85. package/dist-types/ts3.4/commands/BatchEvaluateGeofencesCommand.d.ts +2 -40
  86. package/dist-types/ts3.4/commands/BatchGetDevicePositionCommand.d.ts +2 -20
  87. package/dist-types/ts3.4/commands/BatchPutGeofenceCommand.d.ts +2 -21
  88. package/dist-types/ts3.4/commands/BatchUpdateDevicePositionCommand.d.ts +2 -30
  89. package/dist-types/ts3.4/commands/CalculateRouteCommand.d.ts +2 -50
  90. package/dist-types/ts3.4/commands/CreateGeofenceCollectionCommand.d.ts +2 -20
  91. package/dist-types/ts3.4/commands/CreateMapCommand.d.ts +2 -21
  92. package/dist-types/ts3.4/commands/CreatePlaceIndexCommand.d.ts +2 -21
  93. package/dist-types/ts3.4/commands/CreateRouteCalculatorCommand.d.ts +2 -23
  94. package/dist-types/ts3.4/commands/CreateTrackerCommand.d.ts +2 -21
  95. package/dist-types/ts3.4/commands/DeleteGeofenceCollectionCommand.d.ts +2 -24
  96. package/dist-types/ts3.4/commands/DeleteMapCommand.d.ts +2 -24
  97. package/dist-types/ts3.4/commands/DeletePlaceIndexCommand.d.ts +2 -23
  98. package/dist-types/ts3.4/commands/DeleteRouteCalculatorCommand.d.ts +2 -23
  99. package/dist-types/ts3.4/commands/DeleteTrackerCommand.d.ts +2 -25
  100. package/dist-types/ts3.4/commands/DescribeGeofenceCollectionCommand.d.ts +2 -20
  101. package/dist-types/ts3.4/commands/DescribeMapCommand.d.ts +2 -20
  102. package/dist-types/ts3.4/commands/DescribePlaceIndexCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/DescribeRouteCalculatorCommand.d.ts +2 -20
  104. package/dist-types/ts3.4/commands/DescribeTrackerCommand.d.ts +2 -20
  105. package/dist-types/ts3.4/commands/DisassociateTrackerConsumerCommand.d.ts +2 -24
  106. package/dist-types/ts3.4/commands/GetDevicePositionCommand.d.ts +2 -23
  107. package/dist-types/ts3.4/commands/GetDevicePositionHistoryCommand.d.ts +2 -24
  108. package/dist-types/ts3.4/commands/GetGeofenceCommand.d.ts +2 -20
  109. package/dist-types/ts3.4/commands/GetMapGlyphsCommand.d.ts +2 -20
  110. package/dist-types/ts3.4/commands/GetMapSpritesCommand.d.ts +2 -22
  111. package/dist-types/ts3.4/commands/GetMapStyleDescriptorCommand.d.ts +2 -23
  112. package/dist-types/ts3.4/commands/GetMapTileCommand.d.ts +2 -25
  113. package/dist-types/ts3.4/commands/ListDevicePositionsCommand.d.ts +2 -20
  114. package/dist-types/ts3.4/commands/ListGeofenceCollectionsCommand.d.ts +2 -20
  115. package/dist-types/ts3.4/commands/ListGeofencesCommand.d.ts +2 -20
  116. package/dist-types/ts3.4/commands/ListMapsCommand.d.ts +2 -20
  117. package/dist-types/ts3.4/commands/ListPlaceIndexesCommand.d.ts +2 -20
  118. package/dist-types/ts3.4/commands/ListRouteCalculatorsCommand.d.ts +2 -20
  119. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  120. package/dist-types/ts3.4/commands/ListTrackerConsumersCommand.d.ts +2 -20
  121. package/dist-types/ts3.4/commands/ListTrackersCommand.d.ts +2 -20
  122. package/dist-types/ts3.4/commands/PutGeofenceCommand.d.ts +2 -21
  123. package/dist-types/ts3.4/commands/SearchPlaceIndexForPositionCommand.d.ts +2 -21
  124. package/dist-types/ts3.4/commands/SearchPlaceIndexForTextCommand.d.ts +2 -28
  125. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -33
  126. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  127. package/dist-types/ts3.4/commands/UpdateGeofenceCollectionCommand.d.ts +2 -20
  128. package/dist-types/ts3.4/commands/UpdateMapCommand.d.ts +2 -20
  129. package/dist-types/ts3.4/commands/UpdatePlaceIndexCommand.d.ts +2 -20
  130. package/dist-types/ts3.4/commands/UpdateRouteCalculatorCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/UpdateTrackerCommand.d.ts +2 -20
  132. package/dist-types/ts3.4/commands/index.d.ts +50 -0
  133. package/dist-types/ts3.4/index.d.ts +4 -62
  134. package/dist-types/ts3.4/models/models_0.d.ts +580 -3098
  135. package/dist-types/ts3.4/pagination/index.d.ts +10 -0
  136. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  137. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  138. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  139. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  140. package/package.json +32 -32
@@ -4,22 +4,13 @@ exports.paginateGetDevicePositionHistory = void 0;
4
4
  const GetDevicePositionHistoryCommand_1 = require("../commands/GetDevicePositionHistoryCommand");
5
5
  const Location_1 = require("../Location");
6
6
  const LocationClient_1 = require("../LocationClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new GetDevicePositionHistoryCommand_1.GetDevicePositionHistoryCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.getDevicePositionHistory(input, ...args);
20
12
  };
21
13
  async function* paginateGetDevicePositionHistory(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateGetDevicePositionHistory(config, input, ...additionalArg
38
29
  token = page.NextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateGetDevicePositionHistory = paginateGetDevicePositionHistory;
@@ -4,22 +4,13 @@ exports.paginateListDevicePositions = void 0;
4
4
  const ListDevicePositionsCommand_1 = require("../commands/ListDevicePositionsCommand");
5
5
  const Location_1 = require("../Location");
6
6
  const LocationClient_1 = require("../LocationClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListDevicePositionsCommand_1.ListDevicePositionsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listDevicePositions(input, ...args);
20
12
  };
21
13
  async function* paginateListDevicePositions(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListDevicePositions(config, input, ...additionalArgument
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListDevicePositions = paginateListDevicePositions;
@@ -4,22 +4,13 @@ exports.paginateListGeofenceCollections = void 0;
4
4
  const ListGeofenceCollectionsCommand_1 = require("../commands/ListGeofenceCollectionsCommand");
5
5
  const Location_1 = require("../Location");
6
6
  const LocationClient_1 = require("../LocationClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListGeofenceCollectionsCommand_1.ListGeofenceCollectionsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listGeofenceCollections(input, ...args);
20
12
  };
21
13
  async function* paginateListGeofenceCollections(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListGeofenceCollections(config, input, ...additionalArgu
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListGeofenceCollections = paginateListGeofenceCollections;
@@ -4,22 +4,13 @@ exports.paginateListGeofences = void 0;
4
4
  const ListGeofencesCommand_1 = require("../commands/ListGeofencesCommand");
5
5
  const Location_1 = require("../Location");
6
6
  const LocationClient_1 = require("../LocationClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListGeofencesCommand_1.ListGeofencesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listGeofences(input, ...args);
20
12
  };
21
13
  async function* paginateListGeofences(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListGeofences(config, input, ...additionalArguments) {
38
29
  token = page.NextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListGeofences = paginateListGeofences;
@@ -4,22 +4,13 @@ exports.paginateListMaps = void 0;
4
4
  const ListMapsCommand_1 = require("../commands/ListMapsCommand");
5
5
  const Location_1 = require("../Location");
6
6
  const LocationClient_1 = require("../LocationClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListMapsCommand_1.ListMapsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listMaps(input, ...args);
20
12
  };
21
13
  async function* paginateListMaps(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListMaps(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListMaps = paginateListMaps;
@@ -4,22 +4,13 @@ exports.paginateListPlaceIndexes = void 0;
4
4
  const ListPlaceIndexesCommand_1 = require("../commands/ListPlaceIndexesCommand");
5
5
  const Location_1 = require("../Location");
6
6
  const LocationClient_1 = require("../LocationClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListPlaceIndexesCommand_1.ListPlaceIndexesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listPlaceIndexes(input, ...args);
20
12
  };
21
13
  async function* paginateListPlaceIndexes(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListPlaceIndexes(config, input, ...additionalArguments)
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListPlaceIndexes = paginateListPlaceIndexes;
@@ -4,22 +4,13 @@ exports.paginateListRouteCalculators = void 0;
4
4
  const ListRouteCalculatorsCommand_1 = require("../commands/ListRouteCalculatorsCommand");
5
5
  const Location_1 = require("../Location");
6
6
  const LocationClient_1 = require("../LocationClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListRouteCalculatorsCommand_1.ListRouteCalculatorsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listRouteCalculators(input, ...args);
20
12
  };
21
13
  async function* paginateListRouteCalculators(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListRouteCalculators(config, input, ...additionalArgumen
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListRouteCalculators = paginateListRouteCalculators;
@@ -4,22 +4,13 @@ exports.paginateListTrackerConsumers = void 0;
4
4
  const ListTrackerConsumersCommand_1 = require("../commands/ListTrackerConsumersCommand");
5
5
  const Location_1 = require("../Location");
6
6
  const LocationClient_1 = require("../LocationClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListTrackerConsumersCommand_1.ListTrackerConsumersCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listTrackerConsumers(input, ...args);
20
12
  };
21
13
  async function* paginateListTrackerConsumers(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListTrackerConsumers(config, input, ...additionalArgumen
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListTrackerConsumers = paginateListTrackerConsumers;
@@ -4,22 +4,13 @@ exports.paginateListTrackers = void 0;
4
4
  const ListTrackersCommand_1 = require("../commands/ListTrackersCommand");
5
5
  const Location_1 = require("../Location");
6
6
  const LocationClient_1 = require("../LocationClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListTrackersCommand_1.ListTrackersCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listTrackers(input, ...args);
20
12
  };
21
13
  async function* paginateListTrackers(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListTrackers(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListTrackers = paginateListTrackers;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./GetDevicePositionHistoryPaginator"), exports);
5
+ tslib_1.__exportStar(require("./Interfaces"), exports);
6
+ tslib_1.__exportStar(require("./ListDevicePositionsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListGeofenceCollectionsPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListGeofencesPaginator"), exports);
9
+ tslib_1.__exportStar(require("./ListMapsPaginator"), exports);
10
+ tslib_1.__exportStar(require("./ListPlaceIndexesPaginator"), exports);
11
+ tslib_1.__exportStar(require("./ListRouteCalculatorsPaginator"), exports);
12
+ tslib_1.__exportStar(require("./ListTrackerConsumersPaginator"), exports);
13
+ tslib_1.__exportStar(require("./ListTrackersPaginator"), exports);
@@ -7121,14 +7121,12 @@ const deserializeMetadata = (output) => {
7121
7121
  cfId: output.headers["x-amz-cf-id"],
7122
7122
  });
7123
7123
  };
7124
- // Collect low-level response body stream to Uint8Array.
7125
7124
  const collectBody = (streamBody = new Uint8Array(), context) => {
7126
7125
  if (streamBody instanceof Uint8Array) {
7127
7126
  return Promise.resolve(streamBody);
7128
7127
  }
7129
7128
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
7130
7129
  };
7131
- // Encode Uint8Array data into string with utf-8.
7132
7130
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7133
7131
  const isSerializableHeaderValue = (value) => value !== undefined &&
7134
7132
  value !== null &&
@@ -7141,9 +7139,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
7141
7139
  }
7142
7140
  return {};
7143
7141
  });
7144
- /**
7145
- * Load an error code for the aws.rest-json-1.1 protocol.
7146
- */
7147
7142
  const loadRestJsonErrorCode = (output, data) => {
7148
7143
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
7149
7144
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -0,0 +1,50 @@
1
+ export * from "./AssociateTrackerConsumerCommand";
2
+ export * from "./BatchDeleteDevicePositionHistoryCommand";
3
+ export * from "./BatchDeleteGeofenceCommand";
4
+ export * from "./BatchEvaluateGeofencesCommand";
5
+ export * from "./BatchGetDevicePositionCommand";
6
+ export * from "./BatchPutGeofenceCommand";
7
+ export * from "./BatchUpdateDevicePositionCommand";
8
+ export * from "./CalculateRouteCommand";
9
+ export * from "./CreateGeofenceCollectionCommand";
10
+ export * from "./CreateMapCommand";
11
+ export * from "./CreatePlaceIndexCommand";
12
+ export * from "./CreateRouteCalculatorCommand";
13
+ export * from "./CreateTrackerCommand";
14
+ export * from "./DeleteGeofenceCollectionCommand";
15
+ export * from "./DeleteMapCommand";
16
+ export * from "./DeletePlaceIndexCommand";
17
+ export * from "./DeleteRouteCalculatorCommand";
18
+ export * from "./DeleteTrackerCommand";
19
+ export * from "./DescribeGeofenceCollectionCommand";
20
+ export * from "./DescribeMapCommand";
21
+ export * from "./DescribePlaceIndexCommand";
22
+ export * from "./DescribeRouteCalculatorCommand";
23
+ export * from "./DescribeTrackerCommand";
24
+ export * from "./DisassociateTrackerConsumerCommand";
25
+ export * from "./GetDevicePositionCommand";
26
+ export * from "./GetDevicePositionHistoryCommand";
27
+ export * from "./GetGeofenceCommand";
28
+ export * from "./GetMapGlyphsCommand";
29
+ export * from "./GetMapSpritesCommand";
30
+ export * from "./GetMapStyleDescriptorCommand";
31
+ export * from "./GetMapTileCommand";
32
+ export * from "./ListDevicePositionsCommand";
33
+ export * from "./ListGeofenceCollectionsCommand";
34
+ export * from "./ListGeofencesCommand";
35
+ export * from "./ListMapsCommand";
36
+ export * from "./ListPlaceIndexesCommand";
37
+ export * from "./ListRouteCalculatorsCommand";
38
+ export * from "./ListTagsForResourceCommand";
39
+ export * from "./ListTrackerConsumersCommand";
40
+ export * from "./ListTrackersCommand";
41
+ export * from "./PutGeofenceCommand";
42
+ export * from "./SearchPlaceIndexForPositionCommand";
43
+ export * from "./SearchPlaceIndexForTextCommand";
44
+ export * from "./TagResourceCommand";
45
+ export * from "./UntagResourceCommand";
46
+ export * from "./UpdateGeofenceCollectionCommand";
47
+ export * from "./UpdateMapCommand";
48
+ export * from "./UpdatePlaceIndexCommand";
49
+ export * from "./UpdateRouteCalculatorCommand";
50
+ export * from "./UpdateTrackerCommand";
@@ -26,22 +26,27 @@ var partitionHash = {
26
26
  "us-west-1",
27
27
  "us-west-2",
28
28
  ],
29
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
29
30
  hostname: "geo.{region}.amazonaws.com",
30
31
  },
31
32
  "aws-cn": {
32
33
  regions: ["cn-north-1", "cn-northwest-1"],
34
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
33
35
  hostname: "geo.{region}.amazonaws.com.cn",
34
36
  },
35
37
  "aws-iso": {
36
- regions: ["us-iso-east-1"],
38
+ regions: ["us-iso-east-1", "us-iso-west-1"],
39
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
37
40
  hostname: "geo.{region}.c2s.ic.gov",
38
41
  },
39
42
  "aws-iso-b": {
40
43
  regions: ["us-isob-east-1"],
44
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
41
45
  hostname: "geo.{region}.sc2s.sgov.gov",
42
46
  },
43
47
  "aws-us-gov": {
44
48
  regions: ["us-gov-east-1", "us-gov-west-1"],
49
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
45
50
  hostname: "geo.{region}.amazonaws.com",
46
51
  },
47
52
  };
package/dist-es/index.js CHANGED
@@ -1,63 +1,5 @@
1
- export * from "./LocationClient";
2
1
  export * from "./Location";
3
- export * from "./commands/AssociateTrackerConsumerCommand";
4
- export * from "./commands/BatchDeleteDevicePositionHistoryCommand";
5
- export * from "./commands/BatchDeleteGeofenceCommand";
6
- export * from "./commands/BatchEvaluateGeofencesCommand";
7
- export * from "./commands/BatchGetDevicePositionCommand";
8
- export * from "./commands/BatchPutGeofenceCommand";
9
- export * from "./commands/BatchUpdateDevicePositionCommand";
10
- export * from "./commands/CalculateRouteCommand";
11
- export * from "./commands/CreateGeofenceCollectionCommand";
12
- export * from "./commands/CreateMapCommand";
13
- export * from "./commands/CreatePlaceIndexCommand";
14
- export * from "./commands/CreateRouteCalculatorCommand";
15
- export * from "./commands/CreateTrackerCommand";
16
- export * from "./commands/DeleteGeofenceCollectionCommand";
17
- export * from "./commands/DeleteMapCommand";
18
- export * from "./commands/DeletePlaceIndexCommand";
19
- export * from "./commands/DeleteRouteCalculatorCommand";
20
- export * from "./commands/DeleteTrackerCommand";
21
- export * from "./commands/DescribeGeofenceCollectionCommand";
22
- export * from "./commands/DescribeMapCommand";
23
- export * from "./commands/DescribePlaceIndexCommand";
24
- export * from "./commands/DescribeRouteCalculatorCommand";
25
- export * from "./commands/DescribeTrackerCommand";
26
- export * from "./commands/DisassociateTrackerConsumerCommand";
27
- export * from "./commands/GetDevicePositionCommand";
28
- export * from "./commands/GetDevicePositionHistoryCommand";
29
- export * from "./pagination/GetDevicePositionHistoryPaginator";
30
- export * from "./commands/GetGeofenceCommand";
31
- export * from "./commands/GetMapGlyphsCommand";
32
- export * from "./commands/GetMapSpritesCommand";
33
- export * from "./commands/GetMapStyleDescriptorCommand";
34
- export * from "./commands/GetMapTileCommand";
35
- export * from "./commands/ListDevicePositionsCommand";
36
- export * from "./pagination/ListDevicePositionsPaginator";
37
- export * from "./commands/ListGeofenceCollectionsCommand";
38
- export * from "./pagination/ListGeofenceCollectionsPaginator";
39
- export * from "./commands/ListGeofencesCommand";
40
- export * from "./pagination/ListGeofencesPaginator";
41
- export * from "./commands/ListMapsCommand";
42
- export * from "./pagination/ListMapsPaginator";
43
- export * from "./commands/ListPlaceIndexesCommand";
44
- export * from "./pagination/ListPlaceIndexesPaginator";
45
- export * from "./commands/ListRouteCalculatorsCommand";
46
- export * from "./pagination/ListRouteCalculatorsPaginator";
47
- export * from "./commands/ListTagsForResourceCommand";
48
- export * from "./commands/ListTrackerConsumersCommand";
49
- export * from "./pagination/ListTrackerConsumersPaginator";
50
- export * from "./commands/ListTrackersCommand";
51
- export * from "./pagination/ListTrackersPaginator";
52
- export * from "./commands/PutGeofenceCommand";
53
- export * from "./commands/SearchPlaceIndexForPositionCommand";
54
- export * from "./commands/SearchPlaceIndexForTextCommand";
55
- export * from "./commands/TagResourceCommand";
56
- export * from "./commands/UntagResourceCommand";
57
- export * from "./commands/UpdateGeofenceCollectionCommand";
58
- export * from "./commands/UpdateMapCommand";
59
- export * from "./commands/UpdatePlaceIndexCommand";
60
- export * from "./commands/UpdateRouteCalculatorCommand";
61
- export * from "./commands/UpdateTrackerCommand";
62
- export * from "./pagination/Interfaces";
63
- export * from "./models/index";
2
+ export * from "./LocationClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,10 @@
1
+ export * from "./GetDevicePositionHistoryPaginator";
2
+ export * from "./Interfaces";
3
+ export * from "./ListDevicePositionsPaginator";
4
+ export * from "./ListGeofenceCollectionsPaginator";
5
+ export * from "./ListGeofencesPaginator";
6
+ export * from "./ListMapsPaginator";
7
+ export * from "./ListPlaceIndexesPaginator";
8
+ export * from "./ListRouteCalculatorsPaginator";
9
+ export * from "./ListTrackerConsumersPaginator";
10
+ export * from "./ListTrackersPaginator";
@@ -0,0 +1,50 @@
1
+ export * from "./AssociateTrackerConsumerCommand";
2
+ export * from "./BatchDeleteDevicePositionHistoryCommand";
3
+ export * from "./BatchDeleteGeofenceCommand";
4
+ export * from "./BatchEvaluateGeofencesCommand";
5
+ export * from "./BatchGetDevicePositionCommand";
6
+ export * from "./BatchPutGeofenceCommand";
7
+ export * from "./BatchUpdateDevicePositionCommand";
8
+ export * from "./CalculateRouteCommand";
9
+ export * from "./CreateGeofenceCollectionCommand";
10
+ export * from "./CreateMapCommand";
11
+ export * from "./CreatePlaceIndexCommand";
12
+ export * from "./CreateRouteCalculatorCommand";
13
+ export * from "./CreateTrackerCommand";
14
+ export * from "./DeleteGeofenceCollectionCommand";
15
+ export * from "./DeleteMapCommand";
16
+ export * from "./DeletePlaceIndexCommand";
17
+ export * from "./DeleteRouteCalculatorCommand";
18
+ export * from "./DeleteTrackerCommand";
19
+ export * from "./DescribeGeofenceCollectionCommand";
20
+ export * from "./DescribeMapCommand";
21
+ export * from "./DescribePlaceIndexCommand";
22
+ export * from "./DescribeRouteCalculatorCommand";
23
+ export * from "./DescribeTrackerCommand";
24
+ export * from "./DisassociateTrackerConsumerCommand";
25
+ export * from "./GetDevicePositionCommand";
26
+ export * from "./GetDevicePositionHistoryCommand";
27
+ export * from "./GetGeofenceCommand";
28
+ export * from "./GetMapGlyphsCommand";
29
+ export * from "./GetMapSpritesCommand";
30
+ export * from "./GetMapStyleDescriptorCommand";
31
+ export * from "./GetMapTileCommand";
32
+ export * from "./ListDevicePositionsCommand";
33
+ export * from "./ListGeofenceCollectionsCommand";
34
+ export * from "./ListGeofencesCommand";
35
+ export * from "./ListMapsCommand";
36
+ export * from "./ListPlaceIndexesCommand";
37
+ export * from "./ListRouteCalculatorsCommand";
38
+ export * from "./ListTagsForResourceCommand";
39
+ export * from "./ListTrackerConsumersCommand";
40
+ export * from "./ListTrackersCommand";
41
+ export * from "./PutGeofenceCommand";
42
+ export * from "./SearchPlaceIndexForPositionCommand";
43
+ export * from "./SearchPlaceIndexForTextCommand";
44
+ export * from "./TagResourceCommand";
45
+ export * from "./UntagResourceCommand";
46
+ export * from "./UpdateGeofenceCollectionCommand";
47
+ export * from "./UpdateMapCommand";
48
+ export * from "./UpdatePlaceIndexCommand";
49
+ export * from "./UpdateRouteCalculatorCommand";
50
+ export * from "./UpdateTrackerCommand";