@aws-sdk/client-schemas 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/ListDiscoverersPaginator.js +2 -24
- package/dist-cjs/pagination/ListRegistriesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSchemaVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSchemasPaginator.js +2 -24
- package/dist-cjs/pagination/SearchSchemasPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +214 -433
- package/dist-es/pagination/ListDiscoverersPaginator.js +2 -23
- package/dist-es/pagination/ListRegistriesPaginator.js +2 -23
- package/dist-es/pagination/ListSchemaVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListSchemasPaginator.js +2 -23
- package/dist-es/pagination/SearchSchemasPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +215 -434
- package/dist-types/pagination/ListDiscoverersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRegistriesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSchemaVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSchemasPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchSchemasPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDiscoverersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRegistriesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSchemaVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSchemasPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchSchemasPaginator.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.paginateListDiscoverers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDiscoverersCommand_1 = require("../commands/ListDiscoverersCommand");
|
|
5
6
|
const SchemasClient_1 = require("../SchemasClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDiscoverersCommand_1.ListDiscoverersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDiscoverers(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["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SchemasClient_1.SchemasClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Schemas | SchemasClient");
|
|
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.paginateListDiscoverers = paginateListDiscoverers;
|
|
7
|
+
exports.paginateListDiscoverers = (0, core_1.createPaginator)(SchemasClient_1.SchemasClient, ListDiscoverersCommand_1.ListDiscoverersCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRegistries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRegistriesCommand_1 = require("../commands/ListRegistriesCommand");
|
|
5
6
|
const SchemasClient_1 = require("../SchemasClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRegistriesCommand_1.ListRegistriesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRegistries(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["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SchemasClient_1.SchemasClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Schemas | SchemasClient");
|
|
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.paginateListRegistries = paginateListRegistries;
|
|
7
|
+
exports.paginateListRegistries = (0, core_1.createPaginator)(SchemasClient_1.SchemasClient, ListRegistriesCommand_1.ListRegistriesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSchemaVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSchemaVersionsCommand_1 = require("../commands/ListSchemaVersionsCommand");
|
|
5
6
|
const SchemasClient_1 = require("../SchemasClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSchemaVersionsCommand_1.ListSchemaVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSchemaVersions(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["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SchemasClient_1.SchemasClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Schemas | SchemasClient");
|
|
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.paginateListSchemaVersions = paginateListSchemaVersions;
|
|
7
|
+
exports.paginateListSchemaVersions = (0, core_1.createPaginator)(SchemasClient_1.SchemasClient, ListSchemaVersionsCommand_1.ListSchemaVersionsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSchemas = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSchemasCommand_1 = require("../commands/ListSchemasCommand");
|
|
5
6
|
const SchemasClient_1 = require("../SchemasClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSchemasCommand_1.ListSchemasCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSchemas(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["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SchemasClient_1.SchemasClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Schemas | SchemasClient");
|
|
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.paginateListSchemas = paginateListSchemas;
|
|
7
|
+
exports.paginateListSchemas = (0, core_1.createPaginator)(SchemasClient_1.SchemasClient, ListSchemasCommand_1.ListSchemasCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchSchemas = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchSchemasCommand_1 = require("../commands/SearchSchemasCommand");
|
|
5
6
|
const SchemasClient_1 = require("../SchemasClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchSchemasCommand_1.SearchSchemasCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchSchemas(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["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SchemasClient_1.SchemasClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Schemas | SchemasClient");
|
|
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.paginateSearchSchemas = paginateSearchSchemas;
|
|
7
|
+
exports.paginateSearchSchemas = (0, core_1.createPaginator)(SchemasClient_1.SchemasClient, SearchSchemasCommand_1.SearchSchemasCommand, "NextToken", "NextToken", "Limit");
|