@aws-sdk/client-marketplace-entitlement-service 3.441.0 → 3.449.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/index.js +1 -0
- package/dist-cjs/pagination/GetEntitlementsPaginator.js +29 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-es/index.js +1 -0
- package/dist-es/pagination/GetEntitlementsPaginator.js +25 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-types/index.d.ts +3 -0
- package/dist-types/pagination/GetEntitlementsPaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +3 -0
- package/dist-types/ts3.4/pagination/GetEntitlementsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
tslib_1.__exportStar(require("./MarketplaceEntitlementServiceClient"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./MarketplaceEntitlementService"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
10
|
require("@aws-sdk/util-endpoints");
|
|
10
11
|
var MarketplaceEntitlementServiceServiceException_1 = require("./models/MarketplaceEntitlementServiceServiceException");
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetEntitlements = void 0;
|
|
4
|
+
const GetEntitlementsCommand_1 = require("../commands/GetEntitlementsCommand");
|
|
5
|
+
const MarketplaceEntitlementServiceClient_1 = require("../MarketplaceEntitlementServiceClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new GetEntitlementsCommand_1.GetEntitlementsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateGetEntitlements(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 MarketplaceEntitlementServiceClient_1.MarketplaceEntitlementServiceClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected MarketplaceEntitlementService | MarketplaceEntitlementServiceClient");
|
|
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.paginateGetEntitlements = paginateGetEntitlements;
|
package/dist-es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./MarketplaceEntitlementServiceClient";
|
|
2
2
|
export * from "./MarketplaceEntitlementService";
|
|
3
3
|
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
4
5
|
export * from "./models";
|
|
5
6
|
import "@aws-sdk/util-endpoints";
|
|
6
7
|
export { MarketplaceEntitlementServiceServiceException } from "./models/MarketplaceEntitlementServiceServiceException";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GetEntitlementsCommand, } from "../commands/GetEntitlementsCommand";
|
|
2
|
+
import { MarketplaceEntitlementServiceClient } from "../MarketplaceEntitlementServiceClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new GetEntitlementsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateGetEntitlements(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof MarketplaceEntitlementServiceClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected MarketplaceEntitlementService | MarketplaceEntitlementServiceClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-types/index.d.ts
CHANGED
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
export * from "./MarketplaceEntitlementServiceClient";
|
|
23
23
|
export * from "./MarketplaceEntitlementService";
|
|
24
24
|
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
25
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
26
|
+
export { MarketplaceEntitlementServiceExtensionConfiguration } from "./extensionConfiguration";
|
|
25
27
|
export * from "./commands";
|
|
28
|
+
export * from "./pagination";
|
|
26
29
|
export * from "./models";
|
|
27
30
|
import "@aws-sdk/util-endpoints";
|
|
28
31
|
export { MarketplaceEntitlementServiceServiceException } from "./models/MarketplaceEntitlementServiceServiceException";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { GetEntitlementsCommandInput, GetEntitlementsCommandOutput } from "../commands/GetEntitlementsCommand";
|
|
3
|
+
import { MarketplaceEntitlementServicePaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateGetEntitlements(config: MarketplaceEntitlementServicePaginationConfiguration, input: GetEntitlementsCommandInput, ...additionalArguments: any): Paginator<GetEntitlementsCommandOutput>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@smithy/types";
|
|
2
|
+
import { MarketplaceEntitlementServiceClient } from "../MarketplaceEntitlementServiceClient";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface MarketplaceEntitlementServicePaginationConfiguration extends PaginationConfiguration {
|
|
7
|
+
client: MarketplaceEntitlementServiceClient;
|
|
8
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from "./MarketplaceEntitlementServiceClient";
|
|
2
2
|
export * from "./MarketplaceEntitlementService";
|
|
3
3
|
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
4
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
|
+
export { MarketplaceEntitlementServiceExtensionConfiguration } from "./extensionConfiguration";
|
|
4
6
|
export * from "./commands";
|
|
7
|
+
export * from "./pagination";
|
|
5
8
|
export * from "./models";
|
|
6
9
|
import "@aws-sdk/util-endpoints";
|
|
7
10
|
export { MarketplaceEntitlementServiceServiceException } from "./models/MarketplaceEntitlementServiceServiceException";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetEntitlementsCommandInput,
|
|
4
|
+
GetEntitlementsCommandOutput,
|
|
5
|
+
} from "../commands/GetEntitlementsCommand";
|
|
6
|
+
import { MarketplaceEntitlementServicePaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateGetEntitlements(
|
|
8
|
+
config: MarketplaceEntitlementServicePaginationConfiguration,
|
|
9
|
+
input: GetEntitlementsCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<GetEntitlementsCommandOutput>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@smithy/types";
|
|
2
|
+
import { MarketplaceEntitlementServiceClient } from "../MarketplaceEntitlementServiceClient";
|
|
3
|
+
export interface MarketplaceEntitlementServicePaginationConfiguration
|
|
4
|
+
extends PaginationConfiguration {
|
|
5
|
+
client: MarketplaceEntitlementServiceClient;
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-entitlement-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Entitlement Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.449.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-signing": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.449.0",
|
|
25
|
+
"@aws-sdk/core": "3.445.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.449.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.449.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.449.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.449.0",
|
|
30
|
+
"@aws-sdk/middleware-signing": "3.449.0",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.449.0",
|
|
32
32
|
"@aws-sdk/region-config-resolver": "3.433.0",
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/types": "3.449.0",
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.449.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "3.449.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.449.0",
|
|
37
37
|
"@smithy/config-resolver": "^2.0.16",
|
|
38
38
|
"@smithy/fetch-http-handler": "^2.2.4",
|
|
39
39
|
"@smithy/hash-node": "^2.0.12",
|