@aws-sdk/client-transcribe 3.477.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.
Files changed (37) hide show
  1. package/dist-cjs/pagination/ListCallAnalyticsCategoriesPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListCallAnalyticsJobsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListLanguageModelsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListMedicalScribeJobsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListMedicalTranscriptionJobsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListMedicalVocabulariesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListTranscriptionJobsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListVocabulariesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListVocabularyFiltersPaginator.js +2 -24
  10. package/dist-es/pagination/ListCallAnalyticsCategoriesPaginator.js +2 -23
  11. package/dist-es/pagination/ListCallAnalyticsJobsPaginator.js +2 -23
  12. package/dist-es/pagination/ListLanguageModelsPaginator.js +2 -23
  13. package/dist-es/pagination/ListMedicalScribeJobsPaginator.js +2 -23
  14. package/dist-es/pagination/ListMedicalTranscriptionJobsPaginator.js +2 -23
  15. package/dist-es/pagination/ListMedicalVocabulariesPaginator.js +2 -23
  16. package/dist-es/pagination/ListTranscriptionJobsPaginator.js +2 -23
  17. package/dist-es/pagination/ListVocabulariesPaginator.js +2 -23
  18. package/dist-es/pagination/ListVocabularyFiltersPaginator.js +2 -23
  19. package/dist-types/pagination/ListCallAnalyticsCategoriesPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListCallAnalyticsJobsPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListLanguageModelsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListMedicalScribeJobsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListMedicalTranscriptionJobsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListMedicalVocabulariesPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListTranscriptionJobsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListVocabulariesPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListVocabularyFiltersPaginator.d.ts +1 -1
  28. package/dist-types/ts3.4/pagination/ListCallAnalyticsCategoriesPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListCallAnalyticsJobsPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListLanguageModelsPaginator.d.ts +3 -3
  31. package/dist-types/ts3.4/pagination/ListMedicalScribeJobsPaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListMedicalTranscriptionJobsPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListMedicalVocabulariesPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListTranscriptionJobsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListVocabulariesPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListVocabularyFiltersPaginator.d.ts +3 -3
  37. package/package.json +6 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCallAnalyticsCategories = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCallAnalyticsCategoriesCommand_1 = require("../commands/ListCallAnalyticsCategoriesCommand");
5
6
  const TranscribeClient_1 = require("../TranscribeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCallAnalyticsCategoriesCommand_1.ListCallAnalyticsCategoriesCommand(input), ...args);
8
- };
9
- async function* paginateListCallAnalyticsCategories(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 TranscribeClient_1.TranscribeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
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.paginateListCallAnalyticsCategories = paginateListCallAnalyticsCategories;
7
+ exports.paginateListCallAnalyticsCategories = (0, core_1.createPaginator)(TranscribeClient_1.TranscribeClient, ListCallAnalyticsCategoriesCommand_1.ListCallAnalyticsCategoriesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCallAnalyticsJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCallAnalyticsJobsCommand_1 = require("../commands/ListCallAnalyticsJobsCommand");
5
6
  const TranscribeClient_1 = require("../TranscribeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCallAnalyticsJobsCommand_1.ListCallAnalyticsJobsCommand(input), ...args);
8
- };
9
- async function* paginateListCallAnalyticsJobs(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 TranscribeClient_1.TranscribeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
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.paginateListCallAnalyticsJobs = paginateListCallAnalyticsJobs;
7
+ exports.paginateListCallAnalyticsJobs = (0, core_1.createPaginator)(TranscribeClient_1.TranscribeClient, ListCallAnalyticsJobsCommand_1.ListCallAnalyticsJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListLanguageModels = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListLanguageModelsCommand_1 = require("../commands/ListLanguageModelsCommand");
5
6
  const TranscribeClient_1 = require("../TranscribeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListLanguageModelsCommand_1.ListLanguageModelsCommand(input), ...args);
8
- };
9
- async function* paginateListLanguageModels(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 TranscribeClient_1.TranscribeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
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.paginateListLanguageModels = paginateListLanguageModels;
7
+ exports.paginateListLanguageModels = (0, core_1.createPaginator)(TranscribeClient_1.TranscribeClient, ListLanguageModelsCommand_1.ListLanguageModelsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMedicalScribeJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMedicalScribeJobsCommand_1 = require("../commands/ListMedicalScribeJobsCommand");
5
6
  const TranscribeClient_1 = require("../TranscribeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMedicalScribeJobsCommand_1.ListMedicalScribeJobsCommand(input), ...args);
8
- };
9
- async function* paginateListMedicalScribeJobs(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 TranscribeClient_1.TranscribeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
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.paginateListMedicalScribeJobs = paginateListMedicalScribeJobs;
7
+ exports.paginateListMedicalScribeJobs = (0, core_1.createPaginator)(TranscribeClient_1.TranscribeClient, ListMedicalScribeJobsCommand_1.ListMedicalScribeJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMedicalTranscriptionJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMedicalTranscriptionJobsCommand_1 = require("../commands/ListMedicalTranscriptionJobsCommand");
5
6
  const TranscribeClient_1 = require("../TranscribeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMedicalTranscriptionJobsCommand_1.ListMedicalTranscriptionJobsCommand(input), ...args);
8
- };
9
- async function* paginateListMedicalTranscriptionJobs(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 TranscribeClient_1.TranscribeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
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.paginateListMedicalTranscriptionJobs = paginateListMedicalTranscriptionJobs;
7
+ exports.paginateListMedicalTranscriptionJobs = (0, core_1.createPaginator)(TranscribeClient_1.TranscribeClient, ListMedicalTranscriptionJobsCommand_1.ListMedicalTranscriptionJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMedicalVocabularies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMedicalVocabulariesCommand_1 = require("../commands/ListMedicalVocabulariesCommand");
5
6
  const TranscribeClient_1 = require("../TranscribeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMedicalVocabulariesCommand_1.ListMedicalVocabulariesCommand(input), ...args);
8
- };
9
- async function* paginateListMedicalVocabularies(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 TranscribeClient_1.TranscribeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
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.paginateListMedicalVocabularies = paginateListMedicalVocabularies;
7
+ exports.paginateListMedicalVocabularies = (0, core_1.createPaginator)(TranscribeClient_1.TranscribeClient, ListMedicalVocabulariesCommand_1.ListMedicalVocabulariesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTranscriptionJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTranscriptionJobsCommand_1 = require("../commands/ListTranscriptionJobsCommand");
5
6
  const TranscribeClient_1 = require("../TranscribeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTranscriptionJobsCommand_1.ListTranscriptionJobsCommand(input), ...args);
8
- };
9
- async function* paginateListTranscriptionJobs(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 TranscribeClient_1.TranscribeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
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.paginateListTranscriptionJobs = paginateListTranscriptionJobs;
7
+ exports.paginateListTranscriptionJobs = (0, core_1.createPaginator)(TranscribeClient_1.TranscribeClient, ListTranscriptionJobsCommand_1.ListTranscriptionJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListVocabularies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListVocabulariesCommand_1 = require("../commands/ListVocabulariesCommand");
5
6
  const TranscribeClient_1 = require("../TranscribeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListVocabulariesCommand_1.ListVocabulariesCommand(input), ...args);
8
- };
9
- async function* paginateListVocabularies(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 TranscribeClient_1.TranscribeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
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.paginateListVocabularies = paginateListVocabularies;
7
+ exports.paginateListVocabularies = (0, core_1.createPaginator)(TranscribeClient_1.TranscribeClient, ListVocabulariesCommand_1.ListVocabulariesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListVocabularyFilters = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListVocabularyFiltersCommand_1 = require("../commands/ListVocabularyFiltersCommand");
5
6
  const TranscribeClient_1 = require("../TranscribeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListVocabularyFiltersCommand_1.ListVocabularyFiltersCommand(input), ...args);
8
- };
9
- async function* paginateListVocabularyFilters(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 TranscribeClient_1.TranscribeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
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.paginateListVocabularyFilters = paginateListVocabularyFilters;
7
+ exports.paginateListVocabularyFilters = (0, core_1.createPaginator)(TranscribeClient_1.TranscribeClient, ListVocabularyFiltersCommand_1.ListVocabularyFiltersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListCallAnalyticsCategoriesCommand, } from "../commands/ListCallAnalyticsCategoriesCommand";
2
3
  import { TranscribeClient } from "../TranscribeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListCallAnalyticsCategoriesCommand(input), ...args);
5
- };
6
- export async function* paginateListCallAnalyticsCategories(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 TranscribeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListCallAnalyticsCategories = createPaginator(TranscribeClient, ListCallAnalyticsCategoriesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListCallAnalyticsJobsCommand, } from "../commands/ListCallAnalyticsJobsCommand";
2
3
  import { TranscribeClient } from "../TranscribeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListCallAnalyticsJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListCallAnalyticsJobs(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 TranscribeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListCallAnalyticsJobs = createPaginator(TranscribeClient, ListCallAnalyticsJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListLanguageModelsCommand, } from "../commands/ListLanguageModelsCommand";
2
3
  import { TranscribeClient } from "../TranscribeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListLanguageModelsCommand(input), ...args);
5
- };
6
- export async function* paginateListLanguageModels(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 TranscribeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListLanguageModels = createPaginator(TranscribeClient, ListLanguageModelsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMedicalScribeJobsCommand, } from "../commands/ListMedicalScribeJobsCommand";
2
3
  import { TranscribeClient } from "../TranscribeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMedicalScribeJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListMedicalScribeJobs(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 TranscribeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListMedicalScribeJobs = createPaginator(TranscribeClient, ListMedicalScribeJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMedicalTranscriptionJobsCommand, } from "../commands/ListMedicalTranscriptionJobsCommand";
2
3
  import { TranscribeClient } from "../TranscribeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMedicalTranscriptionJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListMedicalTranscriptionJobs(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 TranscribeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListMedicalTranscriptionJobs = createPaginator(TranscribeClient, ListMedicalTranscriptionJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMedicalVocabulariesCommand, } from "../commands/ListMedicalVocabulariesCommand";
2
3
  import { TranscribeClient } from "../TranscribeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMedicalVocabulariesCommand(input), ...args);
5
- };
6
- export async function* paginateListMedicalVocabularies(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 TranscribeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListMedicalVocabularies = createPaginator(TranscribeClient, ListMedicalVocabulariesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTranscriptionJobsCommand, } from "../commands/ListTranscriptionJobsCommand";
2
3
  import { TranscribeClient } from "../TranscribeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTranscriptionJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListTranscriptionJobs(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 TranscribeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListTranscriptionJobs = createPaginator(TranscribeClient, ListTranscriptionJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListVocabulariesCommand, } from "../commands/ListVocabulariesCommand";
2
3
  import { TranscribeClient } from "../TranscribeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListVocabulariesCommand(input), ...args);
5
- };
6
- export async function* paginateListVocabularies(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 TranscribeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListVocabularies = createPaginator(TranscribeClient, ListVocabulariesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListVocabularyFiltersCommand, } from "../commands/ListVocabularyFiltersCommand";
2
3
  import { TranscribeClient } from "../TranscribeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListVocabularyFiltersCommand(input), ...args);
5
- };
6
- export async function* paginateListVocabularyFilters(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 TranscribeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Transcribe | TranscribeClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListVocabularyFilters = createPaginator(TranscribeClient, ListVocabularyFiltersCommand, "NextToken", "NextToken", "MaxResults");
@@ -4,4 +4,4 @@ import { TranscribePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListCallAnalyticsCategories(config: TranscribePaginationConfiguration, input: ListCallAnalyticsCategoriesCommandInput, ...additionalArguments: any): Paginator<ListCallAnalyticsCategoriesCommandOutput>;
7
+ export declare const paginateListCallAnalyticsCategories: (config: TranscribePaginationConfiguration, input: ListCallAnalyticsCategoriesCommandInput, ...rest: any[]) => Paginator<ListCallAnalyticsCategoriesCommandOutput>;
@@ -4,4 +4,4 @@ import { TranscribePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListCallAnalyticsJobs(config: TranscribePaginationConfiguration, input: ListCallAnalyticsJobsCommandInput, ...additionalArguments: any): Paginator<ListCallAnalyticsJobsCommandOutput>;
7
+ export declare const paginateListCallAnalyticsJobs: (config: TranscribePaginationConfiguration, input: ListCallAnalyticsJobsCommandInput, ...rest: any[]) => Paginator<ListCallAnalyticsJobsCommandOutput>;
@@ -4,4 +4,4 @@ import { TranscribePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListLanguageModels(config: TranscribePaginationConfiguration, input: ListLanguageModelsCommandInput, ...additionalArguments: any): Paginator<ListLanguageModelsCommandOutput>;
7
+ export declare const paginateListLanguageModels: (config: TranscribePaginationConfiguration, input: ListLanguageModelsCommandInput, ...rest: any[]) => Paginator<ListLanguageModelsCommandOutput>;
@@ -4,4 +4,4 @@ import { TranscribePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListMedicalScribeJobs(config: TranscribePaginationConfiguration, input: ListMedicalScribeJobsCommandInput, ...additionalArguments: any): Paginator<ListMedicalScribeJobsCommandOutput>;
7
+ export declare const paginateListMedicalScribeJobs: (config: TranscribePaginationConfiguration, input: ListMedicalScribeJobsCommandInput, ...rest: any[]) => Paginator<ListMedicalScribeJobsCommandOutput>;
@@ -4,4 +4,4 @@ import { TranscribePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListMedicalTranscriptionJobs(config: TranscribePaginationConfiguration, input: ListMedicalTranscriptionJobsCommandInput, ...additionalArguments: any): Paginator<ListMedicalTranscriptionJobsCommandOutput>;
7
+ export declare const paginateListMedicalTranscriptionJobs: (config: TranscribePaginationConfiguration, input: ListMedicalTranscriptionJobsCommandInput, ...rest: any[]) => Paginator<ListMedicalTranscriptionJobsCommandOutput>;
@@ -4,4 +4,4 @@ import { TranscribePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListMedicalVocabularies(config: TranscribePaginationConfiguration, input: ListMedicalVocabulariesCommandInput, ...additionalArguments: any): Paginator<ListMedicalVocabulariesCommandOutput>;
7
+ export declare const paginateListMedicalVocabularies: (config: TranscribePaginationConfiguration, input: ListMedicalVocabulariesCommandInput, ...rest: any[]) => Paginator<ListMedicalVocabulariesCommandOutput>;
@@ -4,4 +4,4 @@ import { TranscribePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTranscriptionJobs(config: TranscribePaginationConfiguration, input: ListTranscriptionJobsCommandInput, ...additionalArguments: any): Paginator<ListTranscriptionJobsCommandOutput>;
7
+ export declare const paginateListTranscriptionJobs: (config: TranscribePaginationConfiguration, input: ListTranscriptionJobsCommandInput, ...rest: any[]) => Paginator<ListTranscriptionJobsCommandOutput>;
@@ -4,4 +4,4 @@ import { TranscribePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListVocabularies(config: TranscribePaginationConfiguration, input: ListVocabulariesCommandInput, ...additionalArguments: any): Paginator<ListVocabulariesCommandOutput>;
7
+ export declare const paginateListVocabularies: (config: TranscribePaginationConfiguration, input: ListVocabulariesCommandInput, ...rest: any[]) => Paginator<ListVocabulariesCommandOutput>;
@@ -4,4 +4,4 @@ import { TranscribePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListVocabularyFilters(config: TranscribePaginationConfiguration, input: ListVocabularyFiltersCommandInput, ...additionalArguments: any): Paginator<ListVocabularyFiltersCommandOutput>;
7
+ export declare const paginateListVocabularyFilters: (config: TranscribePaginationConfiguration, input: ListVocabularyFiltersCommandInput, ...rest: any[]) => Paginator<ListVocabularyFiltersCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListCallAnalyticsCategoriesCommandOutput,
5
5
  } from "../commands/ListCallAnalyticsCategoriesCommand";
6
6
  import { TranscribePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListCallAnalyticsCategories(
7
+ export declare const paginateListCallAnalyticsCategories: (
8
8
  config: TranscribePaginationConfiguration,
9
9
  input: ListCallAnalyticsCategoriesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListCallAnalyticsCategoriesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListCallAnalyticsCategoriesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListCallAnalyticsJobsCommandOutput,
5
5
  } from "../commands/ListCallAnalyticsJobsCommand";
6
6
  import { TranscribePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListCallAnalyticsJobs(
7
+ export declare const paginateListCallAnalyticsJobs: (
8
8
  config: TranscribePaginationConfiguration,
9
9
  input: ListCallAnalyticsJobsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListCallAnalyticsJobsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListCallAnalyticsJobsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListLanguageModelsCommandOutput,
5
5
  } from "../commands/ListLanguageModelsCommand";
6
6
  import { TranscribePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListLanguageModels(
7
+ export declare const paginateListLanguageModels: (
8
8
  config: TranscribePaginationConfiguration,
9
9
  input: ListLanguageModelsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListLanguageModelsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListLanguageModelsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListMedicalScribeJobsCommandOutput,
5
5
  } from "../commands/ListMedicalScribeJobsCommand";
6
6
  import { TranscribePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListMedicalScribeJobs(
7
+ export declare const paginateListMedicalScribeJobs: (
8
8
  config: TranscribePaginationConfiguration,
9
9
  input: ListMedicalScribeJobsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListMedicalScribeJobsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListMedicalScribeJobsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListMedicalTranscriptionJobsCommandOutput,
5
5
  } from "../commands/ListMedicalTranscriptionJobsCommand";
6
6
  import { TranscribePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListMedicalTranscriptionJobs(
7
+ export declare const paginateListMedicalTranscriptionJobs: (
8
8
  config: TranscribePaginationConfiguration,
9
9
  input: ListMedicalTranscriptionJobsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListMedicalTranscriptionJobsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListMedicalTranscriptionJobsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListMedicalVocabulariesCommandOutput,
5
5
  } from "../commands/ListMedicalVocabulariesCommand";
6
6
  import { TranscribePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListMedicalVocabularies(
7
+ export declare const paginateListMedicalVocabularies: (
8
8
  config: TranscribePaginationConfiguration,
9
9
  input: ListMedicalVocabulariesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListMedicalVocabulariesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListMedicalVocabulariesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListTranscriptionJobsCommandOutput,
5
5
  } from "../commands/ListTranscriptionJobsCommand";
6
6
  import { TranscribePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListTranscriptionJobs(
7
+ export declare const paginateListTranscriptionJobs: (
8
8
  config: TranscribePaginationConfiguration,
9
9
  input: ListTranscriptionJobsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTranscriptionJobsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListTranscriptionJobsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListVocabulariesCommandOutput,
5
5
  } from "../commands/ListVocabulariesCommand";
6
6
  import { TranscribePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListVocabularies(
7
+ export declare const paginateListVocabularies: (
8
8
  config: TranscribePaginationConfiguration,
9
9
  input: ListVocabulariesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListVocabulariesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListVocabulariesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListVocabularyFiltersCommandOutput,
5
5
  } from "../commands/ListVocabularyFiltersCommand";
6
6
  import { TranscribePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListVocabularyFilters(
7
+ export declare const paginateListVocabularyFilters: (
8
8
  config: TranscribePaginationConfiguration,
9
9
  input: ListVocabularyFiltersCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListVocabularyFiltersCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListVocabularyFiltersCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transcribe",
3
3
  "description": "AWS SDK for JavaScript Transcribe Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.478.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",
@@ -20,20 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.477.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
24
  "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",