@aws-sdk/client-location 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.
- package/dist-cjs/pagination/GetDevicePositionHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/ListDevicePositionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGeofenceCollectionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGeofencesPaginator.js +2 -24
- package/dist-cjs/pagination/ListKeysPaginator.js +2 -24
- package/dist-cjs/pagination/ListMapsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPlaceIndexesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRouteCalculatorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTrackerConsumersPaginator.js +2 -24
- package/dist-cjs/pagination/ListTrackersPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +380 -754
- package/dist-es/pagination/GetDevicePositionHistoryPaginator.js +2 -23
- package/dist-es/pagination/ListDevicePositionsPaginator.js +2 -23
- package/dist-es/pagination/ListGeofenceCollectionsPaginator.js +2 -23
- package/dist-es/pagination/ListGeofencesPaginator.js +2 -23
- package/dist-es/pagination/ListKeysPaginator.js +2 -23
- package/dist-es/pagination/ListMapsPaginator.js +2 -23
- package/dist-es/pagination/ListPlaceIndexesPaginator.js +2 -23
- package/dist-es/pagination/ListRouteCalculatorsPaginator.js +2 -23
- package/dist-es/pagination/ListTrackerConsumersPaginator.js +2 -23
- package/dist-es/pagination/ListTrackersPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +382 -756
- package/dist-types/pagination/GetDevicePositionHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDevicePositionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGeofenceCollectionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGeofencesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKeysPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMapsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPlaceIndexesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRouteCalculatorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTrackerConsumersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTrackersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetDevicePositionHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDevicePositionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGeofenceCollectionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGeofencesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMapsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPlaceIndexesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRouteCalculatorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTrackerConsumersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTrackersPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetDevicePositionHistory = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetDevicePositionHistoryCommand_1 = require("../commands/GetDevicePositionHistoryCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetDevicePositionHistoryCommand_1.GetDevicePositionHistoryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetDevicePositionHistory(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateGetDevicePositionHistory = paginateGetDevicePositionHistory;
|
|
7
|
+
exports.paginateGetDevicePositionHistory = (0, core_1.createPaginator)(LocationClient_1.LocationClient, GetDevicePositionHistoryCommand_1.GetDevicePositionHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDevicePositions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDevicePositionsCommand_1 = require("../commands/ListDevicePositionsCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDevicePositionsCommand_1.ListDevicePositionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDevicePositions(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateListDevicePositions = paginateListDevicePositions;
|
|
7
|
+
exports.paginateListDevicePositions = (0, core_1.createPaginator)(LocationClient_1.LocationClient, ListDevicePositionsCommand_1.ListDevicePositionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGeofenceCollections = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGeofenceCollectionsCommand_1 = require("../commands/ListGeofenceCollectionsCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGeofenceCollectionsCommand_1.ListGeofenceCollectionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGeofenceCollections(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateListGeofenceCollections = paginateListGeofenceCollections;
|
|
7
|
+
exports.paginateListGeofenceCollections = (0, core_1.createPaginator)(LocationClient_1.LocationClient, ListGeofenceCollectionsCommand_1.ListGeofenceCollectionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGeofences = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGeofencesCommand_1 = require("../commands/ListGeofencesCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGeofencesCommand_1.ListGeofencesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGeofences(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateListGeofences = paginateListGeofences;
|
|
7
|
+
exports.paginateListGeofences = (0, core_1.createPaginator)(LocationClient_1.LocationClient, ListGeofencesCommand_1.ListGeofencesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListKeys = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListKeysCommand_1 = require("../commands/ListKeysCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListKeysCommand_1.ListKeysCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListKeys(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateListKeys = paginateListKeys;
|
|
7
|
+
exports.paginateListKeys = (0, core_1.createPaginator)(LocationClient_1.LocationClient, ListKeysCommand_1.ListKeysCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMaps = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMapsCommand_1 = require("../commands/ListMapsCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMapsCommand_1.ListMapsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMaps(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateListMaps = paginateListMaps;
|
|
7
|
+
exports.paginateListMaps = (0, core_1.createPaginator)(LocationClient_1.LocationClient, ListMapsCommand_1.ListMapsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPlaceIndexes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPlaceIndexesCommand_1 = require("../commands/ListPlaceIndexesCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPlaceIndexesCommand_1.ListPlaceIndexesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPlaceIndexes(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateListPlaceIndexes = paginateListPlaceIndexes;
|
|
7
|
+
exports.paginateListPlaceIndexes = (0, core_1.createPaginator)(LocationClient_1.LocationClient, ListPlaceIndexesCommand_1.ListPlaceIndexesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRouteCalculators = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRouteCalculatorsCommand_1 = require("../commands/ListRouteCalculatorsCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRouteCalculatorsCommand_1.ListRouteCalculatorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRouteCalculators(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateListRouteCalculators = paginateListRouteCalculators;
|
|
7
|
+
exports.paginateListRouteCalculators = (0, core_1.createPaginator)(LocationClient_1.LocationClient, ListRouteCalculatorsCommand_1.ListRouteCalculatorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTrackerConsumers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTrackerConsumersCommand_1 = require("../commands/ListTrackerConsumersCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTrackerConsumersCommand_1.ListTrackerConsumersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTrackerConsumers(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateListTrackerConsumers = paginateListTrackerConsumers;
|
|
7
|
+
exports.paginateListTrackerConsumers = (0, core_1.createPaginator)(LocationClient_1.LocationClient, ListTrackerConsumersCommand_1.ListTrackerConsumersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTrackers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTrackersCommand_1 = require("../commands/ListTrackersCommand");
|
|
5
6
|
const LocationClient_1 = require("../LocationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTrackersCommand_1.ListTrackersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTrackers(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 LocationClient_1.LocationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Location | LocationClient");
|
|
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.paginateListTrackers = paginateListTrackers;
|
|
7
|
+
exports.paginateListTrackers = (0, core_1.createPaginator)(LocationClient_1.LocationClient, ListTrackersCommand_1.ListTrackersCommand, "NextToken", "NextToken", "MaxResults");
|