@aws-sdk/client-transcribe 3.965.0 → 3.967.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 +288 -0
- package/dist-es/index.js +1 -0
- package/dist-es/waiters/index.js +7 -0
- package/dist-es/waiters/waitForCallAnalyticsJobCompleted.js +40 -0
- package/dist-es/waiters/waitForLanguageModelCompleted.js +40 -0
- package/dist-es/waiters/waitForMedicalScribeJobCompleted.js +40 -0
- package/dist-es/waiters/waitForMedicalTranscriptionJobCompleted.js +40 -0
- package/dist-es/waiters/waitForMedicalVocabularyReady.js +40 -0
- package/dist-es/waiters/waitForTranscriptionJobCompleted.js +40 -0
- package/dist-es/waiters/waitForVocabularyReady.js +40 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/index.d.ts +7 -0
- package/dist-types/ts3.4/waiters/waitForCallAnalyticsJobCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForLanguageModelCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForMedicalScribeJobCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForMedicalTranscriptionJobCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForMedicalVocabularyReady.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForTranscriptionJobCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForVocabularyReady.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +7 -0
- package/dist-types/waiters/waitForCallAnalyticsJobCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForLanguageModelCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForMedicalScribeJobCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForMedicalTranscriptionJobCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForMedicalVocabularyReady.d.ts +14 -0
- package/dist-types/waiters/waitForTranscriptionJobCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForVocabularyReady.d.ts +14 -0
- package/package.json +12 -11
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var utilWaiter = require('@smithy/util-waiter');
|
|
18
19
|
|
|
19
20
|
const resolveClientEndpointParameters = (options) => {
|
|
20
21
|
return Object.assign(options, {
|
|
@@ -1905,6 +1906,279 @@ const paginateListVocabularies = core.createPaginator(TranscribeClient, ListVoca
|
|
|
1905
1906
|
|
|
1906
1907
|
const paginateListVocabularyFilters = core.createPaginator(TranscribeClient, ListVocabularyFiltersCommand, "NextToken", "NextToken", "MaxResults");
|
|
1907
1908
|
|
|
1909
|
+
const checkState$6 = async (client, input) => {
|
|
1910
|
+
let reason;
|
|
1911
|
+
try {
|
|
1912
|
+
let result = await client.send(new DescribeLanguageModelCommand(input));
|
|
1913
|
+
reason = result;
|
|
1914
|
+
try {
|
|
1915
|
+
const returnComparator = () => {
|
|
1916
|
+
return result.LanguageModel.ModelStatus;
|
|
1917
|
+
};
|
|
1918
|
+
if (returnComparator() === "COMPLETED") {
|
|
1919
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
catch (e) { }
|
|
1923
|
+
try {
|
|
1924
|
+
const returnComparator = () => {
|
|
1925
|
+
return result.LanguageModel.ModelStatus;
|
|
1926
|
+
};
|
|
1927
|
+
if (returnComparator() === "FAILED") {
|
|
1928
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
catch (e) { }
|
|
1932
|
+
}
|
|
1933
|
+
catch (exception) {
|
|
1934
|
+
reason = exception;
|
|
1935
|
+
}
|
|
1936
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
1937
|
+
};
|
|
1938
|
+
const waitForLanguageModelCompleted = async (params, input) => {
|
|
1939
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1940
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
|
|
1941
|
+
};
|
|
1942
|
+
const waitUntilLanguageModelCompleted = async (params, input) => {
|
|
1943
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1944
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
|
|
1945
|
+
return utilWaiter.checkExceptions(result);
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1948
|
+
const checkState$5 = async (client, input) => {
|
|
1949
|
+
let reason;
|
|
1950
|
+
try {
|
|
1951
|
+
let result = await client.send(new GetCallAnalyticsJobCommand(input));
|
|
1952
|
+
reason = result;
|
|
1953
|
+
try {
|
|
1954
|
+
const returnComparator = () => {
|
|
1955
|
+
return result.CallAnalyticsJob.CallAnalyticsJobStatus;
|
|
1956
|
+
};
|
|
1957
|
+
if (returnComparator() === "COMPLETED") {
|
|
1958
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
catch (e) { }
|
|
1962
|
+
try {
|
|
1963
|
+
const returnComparator = () => {
|
|
1964
|
+
return result.CallAnalyticsJob.CallAnalyticsJobStatus;
|
|
1965
|
+
};
|
|
1966
|
+
if (returnComparator() === "FAILED") {
|
|
1967
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
catch (e) { }
|
|
1971
|
+
}
|
|
1972
|
+
catch (exception) {
|
|
1973
|
+
reason = exception;
|
|
1974
|
+
}
|
|
1975
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
1976
|
+
};
|
|
1977
|
+
const waitForCallAnalyticsJobCompleted = async (params, input) => {
|
|
1978
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
1979
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
1980
|
+
};
|
|
1981
|
+
const waitUntilCallAnalyticsJobCompleted = async (params, input) => {
|
|
1982
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
1983
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
1984
|
+
return utilWaiter.checkExceptions(result);
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
const checkState$4 = async (client, input) => {
|
|
1988
|
+
let reason;
|
|
1989
|
+
try {
|
|
1990
|
+
let result = await client.send(new GetMedicalScribeJobCommand(input));
|
|
1991
|
+
reason = result;
|
|
1992
|
+
try {
|
|
1993
|
+
const returnComparator = () => {
|
|
1994
|
+
return result.MedicalScribeJob.MedicalScribeJobStatus;
|
|
1995
|
+
};
|
|
1996
|
+
if (returnComparator() === "COMPLETED") {
|
|
1997
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
catch (e) { }
|
|
2001
|
+
try {
|
|
2002
|
+
const returnComparator = () => {
|
|
2003
|
+
return result.MedicalScribeJob.MedicalScribeJobStatus;
|
|
2004
|
+
};
|
|
2005
|
+
if (returnComparator() === "FAILED") {
|
|
2006
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
catch (e) { }
|
|
2010
|
+
}
|
|
2011
|
+
catch (exception) {
|
|
2012
|
+
reason = exception;
|
|
2013
|
+
}
|
|
2014
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2015
|
+
};
|
|
2016
|
+
const waitForMedicalScribeJobCompleted = async (params, input) => {
|
|
2017
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2018
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
2019
|
+
};
|
|
2020
|
+
const waitUntilMedicalScribeJobCompleted = async (params, input) => {
|
|
2021
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2022
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
2023
|
+
return utilWaiter.checkExceptions(result);
|
|
2024
|
+
};
|
|
2025
|
+
|
|
2026
|
+
const checkState$3 = async (client, input) => {
|
|
2027
|
+
let reason;
|
|
2028
|
+
try {
|
|
2029
|
+
let result = await client.send(new GetMedicalTranscriptionJobCommand(input));
|
|
2030
|
+
reason = result;
|
|
2031
|
+
try {
|
|
2032
|
+
const returnComparator = () => {
|
|
2033
|
+
return result.MedicalTranscriptionJob.TranscriptionJobStatus;
|
|
2034
|
+
};
|
|
2035
|
+
if (returnComparator() === "COMPLETED") {
|
|
2036
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
catch (e) { }
|
|
2040
|
+
try {
|
|
2041
|
+
const returnComparator = () => {
|
|
2042
|
+
return result.MedicalTranscriptionJob.TranscriptionJobStatus;
|
|
2043
|
+
};
|
|
2044
|
+
if (returnComparator() === "FAILED") {
|
|
2045
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
catch (e) { }
|
|
2049
|
+
}
|
|
2050
|
+
catch (exception) {
|
|
2051
|
+
reason = exception;
|
|
2052
|
+
}
|
|
2053
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2054
|
+
};
|
|
2055
|
+
const waitForMedicalTranscriptionJobCompleted = async (params, input) => {
|
|
2056
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2057
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
2058
|
+
};
|
|
2059
|
+
const waitUntilMedicalTranscriptionJobCompleted = async (params, input) => {
|
|
2060
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2061
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
2062
|
+
return utilWaiter.checkExceptions(result);
|
|
2063
|
+
};
|
|
2064
|
+
|
|
2065
|
+
const checkState$2 = async (client, input) => {
|
|
2066
|
+
let reason;
|
|
2067
|
+
try {
|
|
2068
|
+
let result = await client.send(new GetMedicalVocabularyCommand(input));
|
|
2069
|
+
reason = result;
|
|
2070
|
+
try {
|
|
2071
|
+
const returnComparator = () => {
|
|
2072
|
+
return result.VocabularyState;
|
|
2073
|
+
};
|
|
2074
|
+
if (returnComparator() === "READY") {
|
|
2075
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
catch (e) { }
|
|
2079
|
+
try {
|
|
2080
|
+
const returnComparator = () => {
|
|
2081
|
+
return result.VocabularyState;
|
|
2082
|
+
};
|
|
2083
|
+
if (returnComparator() === "FAILED") {
|
|
2084
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
catch (e) { }
|
|
2088
|
+
}
|
|
2089
|
+
catch (exception) {
|
|
2090
|
+
reason = exception;
|
|
2091
|
+
}
|
|
2092
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2093
|
+
};
|
|
2094
|
+
const waitForMedicalVocabularyReady = async (params, input) => {
|
|
2095
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2096
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
2097
|
+
};
|
|
2098
|
+
const waitUntilMedicalVocabularyReady = async (params, input) => {
|
|
2099
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2100
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
2101
|
+
return utilWaiter.checkExceptions(result);
|
|
2102
|
+
};
|
|
2103
|
+
|
|
2104
|
+
const checkState$1 = async (client, input) => {
|
|
2105
|
+
let reason;
|
|
2106
|
+
try {
|
|
2107
|
+
let result = await client.send(new GetTranscriptionJobCommand(input));
|
|
2108
|
+
reason = result;
|
|
2109
|
+
try {
|
|
2110
|
+
const returnComparator = () => {
|
|
2111
|
+
return result.TranscriptionJob.TranscriptionJobStatus;
|
|
2112
|
+
};
|
|
2113
|
+
if (returnComparator() === "COMPLETED") {
|
|
2114
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
catch (e) { }
|
|
2118
|
+
try {
|
|
2119
|
+
const returnComparator = () => {
|
|
2120
|
+
return result.TranscriptionJob.TranscriptionJobStatus;
|
|
2121
|
+
};
|
|
2122
|
+
if (returnComparator() === "FAILED") {
|
|
2123
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
catch (e) { }
|
|
2127
|
+
}
|
|
2128
|
+
catch (exception) {
|
|
2129
|
+
reason = exception;
|
|
2130
|
+
}
|
|
2131
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2132
|
+
};
|
|
2133
|
+
const waitForTranscriptionJobCompleted = async (params, input) => {
|
|
2134
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2135
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
2136
|
+
};
|
|
2137
|
+
const waitUntilTranscriptionJobCompleted = async (params, input) => {
|
|
2138
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2139
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
2140
|
+
return utilWaiter.checkExceptions(result);
|
|
2141
|
+
};
|
|
2142
|
+
|
|
2143
|
+
const checkState = async (client, input) => {
|
|
2144
|
+
let reason;
|
|
2145
|
+
try {
|
|
2146
|
+
let result = await client.send(new GetVocabularyCommand(input));
|
|
2147
|
+
reason = result;
|
|
2148
|
+
try {
|
|
2149
|
+
const returnComparator = () => {
|
|
2150
|
+
return result.VocabularyState;
|
|
2151
|
+
};
|
|
2152
|
+
if (returnComparator() === "READY") {
|
|
2153
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
catch (e) { }
|
|
2157
|
+
try {
|
|
2158
|
+
const returnComparator = () => {
|
|
2159
|
+
return result.VocabularyState;
|
|
2160
|
+
};
|
|
2161
|
+
if (returnComparator() === "FAILED") {
|
|
2162
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
catch (e) { }
|
|
2166
|
+
}
|
|
2167
|
+
catch (exception) {
|
|
2168
|
+
reason = exception;
|
|
2169
|
+
}
|
|
2170
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2171
|
+
};
|
|
2172
|
+
const waitForVocabularyReady = async (params, input) => {
|
|
2173
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2174
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
2175
|
+
};
|
|
2176
|
+
const waitUntilVocabularyReady = async (params, input) => {
|
|
2177
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
2178
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
2179
|
+
return utilWaiter.checkExceptions(result);
|
|
2180
|
+
};
|
|
2181
|
+
|
|
1908
2182
|
const BaseModelName = {
|
|
1909
2183
|
NARROW_BAND: "NarrowBand",
|
|
1910
2184
|
WIDE_BAND: "WideBand",
|
|
@@ -2426,3 +2700,17 @@ exports.paginateListMedicalVocabularies = paginateListMedicalVocabularies;
|
|
|
2426
2700
|
exports.paginateListTranscriptionJobs = paginateListTranscriptionJobs;
|
|
2427
2701
|
exports.paginateListVocabularies = paginateListVocabularies;
|
|
2428
2702
|
exports.paginateListVocabularyFilters = paginateListVocabularyFilters;
|
|
2703
|
+
exports.waitForCallAnalyticsJobCompleted = waitForCallAnalyticsJobCompleted;
|
|
2704
|
+
exports.waitForLanguageModelCompleted = waitForLanguageModelCompleted;
|
|
2705
|
+
exports.waitForMedicalScribeJobCompleted = waitForMedicalScribeJobCompleted;
|
|
2706
|
+
exports.waitForMedicalTranscriptionJobCompleted = waitForMedicalTranscriptionJobCompleted;
|
|
2707
|
+
exports.waitForMedicalVocabularyReady = waitForMedicalVocabularyReady;
|
|
2708
|
+
exports.waitForTranscriptionJobCompleted = waitForTranscriptionJobCompleted;
|
|
2709
|
+
exports.waitForVocabularyReady = waitForVocabularyReady;
|
|
2710
|
+
exports.waitUntilCallAnalyticsJobCompleted = waitUntilCallAnalyticsJobCompleted;
|
|
2711
|
+
exports.waitUntilLanguageModelCompleted = waitUntilLanguageModelCompleted;
|
|
2712
|
+
exports.waitUntilMedicalScribeJobCompleted = waitUntilMedicalScribeJobCompleted;
|
|
2713
|
+
exports.waitUntilMedicalTranscriptionJobCompleted = waitUntilMedicalTranscriptionJobCompleted;
|
|
2714
|
+
exports.waitUntilMedicalVocabularyReady = waitUntilMedicalVocabularyReady;
|
|
2715
|
+
exports.waitUntilTranscriptionJobCompleted = waitUntilTranscriptionJobCompleted;
|
|
2716
|
+
exports.waitUntilVocabularyReady = waitUntilVocabularyReady;
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./waitForLanguageModelCompleted";
|
|
2
|
+
export * from "./waitForCallAnalyticsJobCompleted";
|
|
3
|
+
export * from "./waitForMedicalScribeJobCompleted";
|
|
4
|
+
export * from "./waitForMedicalTranscriptionJobCompleted";
|
|
5
|
+
export * from "./waitForMedicalVocabularyReady";
|
|
6
|
+
export * from "./waitForTranscriptionJobCompleted";
|
|
7
|
+
export * from "./waitForVocabularyReady";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetCallAnalyticsJobCommand } from "../commands/GetCallAnalyticsJobCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetCallAnalyticsJobCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.CallAnalyticsJob.CallAnalyticsJobStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.CallAnalyticsJob.CallAnalyticsJobStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForCallAnalyticsJobCompleted = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilCallAnalyticsJobCompleted = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeLanguageModelCommand, } from "../commands/DescribeLanguageModelCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new DescribeLanguageModelCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.LanguageModel.ModelStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.LanguageModel.ModelStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForLanguageModelCompleted = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilLanguageModelCompleted = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetMedicalScribeJobCommand } from "../commands/GetMedicalScribeJobCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetMedicalScribeJobCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.MedicalScribeJob.MedicalScribeJobStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.MedicalScribeJob.MedicalScribeJobStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForMedicalScribeJobCompleted = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilMedicalScribeJobCompleted = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetMedicalTranscriptionJobCommand, } from "../commands/GetMedicalTranscriptionJobCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetMedicalTranscriptionJobCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.MedicalTranscriptionJob.TranscriptionJobStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.MedicalTranscriptionJob.TranscriptionJobStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForMedicalTranscriptionJobCompleted = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilMedicalTranscriptionJobCompleted = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetMedicalVocabularyCommand } from "../commands/GetMedicalVocabularyCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetMedicalVocabularyCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.VocabularyState;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "READY") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.VocabularyState;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForMedicalVocabularyReady = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilMedicalVocabularyReady = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetTranscriptionJobCommand } from "../commands/GetTranscriptionJobCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetTranscriptionJobCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.TranscriptionJob.TranscriptionJobStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.TranscriptionJob.TranscriptionJobStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForTranscriptionJobCompleted = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilTranscriptionJobCompleted = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetVocabularyCommand } from "../commands/GetVocabularyCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetVocabularyCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.VocabularyState;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "READY") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.VocabularyState;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForVocabularyReady = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilVocabularyReady = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
package/dist-types/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export type { TranscribeExtensionConfiguration } from "./extensionConfiguration"
|
|
|
32
32
|
export * from "./commands";
|
|
33
33
|
export * from "./schemas/schemas_0";
|
|
34
34
|
export * from "./pagination";
|
|
35
|
+
export * from "./waiters";
|
|
35
36
|
export * from "./models/enums";
|
|
36
37
|
export * from "./models/errors";
|
|
37
38
|
export * from "./models/models_0";
|
|
@@ -6,6 +6,7 @@ export { TranscribeExtensionConfiguration } from "./extensionConfiguration";
|
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./schemas/schemas_0";
|
|
8
8
|
export * from "./pagination";
|
|
9
|
+
export * from "./waiters";
|
|
9
10
|
export * from "./models/enums";
|
|
10
11
|
export * from "./models/errors";
|
|
11
12
|
export * from "./models/models_0";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./waitForLanguageModelCompleted";
|
|
2
|
+
export * from "./waitForCallAnalyticsJobCompleted";
|
|
3
|
+
export * from "./waitForMedicalScribeJobCompleted";
|
|
4
|
+
export * from "./waitForMedicalTranscriptionJobCompleted";
|
|
5
|
+
export * from "./waitForMedicalVocabularyReady";
|
|
6
|
+
export * from "./waitForTranscriptionJobCompleted";
|
|
7
|
+
export * from "./waitForVocabularyReady";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetCallAnalyticsJobCommandInput } from "../commands/GetCallAnalyticsJobCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
export declare const waitForCallAnalyticsJobCompleted: (
|
|
5
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
6
|
+
input: GetCallAnalyticsJobCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilCallAnalyticsJobCompleted: (
|
|
9
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
10
|
+
input: GetCallAnalyticsJobCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeLanguageModelCommandInput } from "../commands/DescribeLanguageModelCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
export declare const waitForLanguageModelCompleted: (
|
|
5
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
6
|
+
input: DescribeLanguageModelCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilLanguageModelCompleted: (
|
|
9
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
10
|
+
input: DescribeLanguageModelCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetMedicalScribeJobCommandInput } from "../commands/GetMedicalScribeJobCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
export declare const waitForMedicalScribeJobCompleted: (
|
|
5
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
6
|
+
input: GetMedicalScribeJobCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilMedicalScribeJobCompleted: (
|
|
9
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
10
|
+
input: GetMedicalScribeJobCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetMedicalTranscriptionJobCommandInput } from "../commands/GetMedicalTranscriptionJobCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
export declare const waitForMedicalTranscriptionJobCompleted: (
|
|
5
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
6
|
+
input: GetMedicalTranscriptionJobCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilMedicalTranscriptionJobCompleted: (
|
|
9
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
10
|
+
input: GetMedicalTranscriptionJobCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetMedicalVocabularyCommandInput } from "../commands/GetMedicalVocabularyCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
export declare const waitForMedicalVocabularyReady: (
|
|
5
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
6
|
+
input: GetMedicalVocabularyCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilMedicalVocabularyReady: (
|
|
9
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
10
|
+
input: GetMedicalVocabularyCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetTranscriptionJobCommandInput } from "../commands/GetTranscriptionJobCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
export declare const waitForTranscriptionJobCompleted: (
|
|
5
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
6
|
+
input: GetTranscriptionJobCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilTranscriptionJobCompleted: (
|
|
9
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
10
|
+
input: GetTranscriptionJobCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetVocabularyCommandInput } from "../commands/GetVocabularyCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
export declare const waitForVocabularyReady: (
|
|
5
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
6
|
+
input: GetVocabularyCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilVocabularyReady: (
|
|
9
|
+
params: WaiterConfiguration<TranscribeClient>,
|
|
10
|
+
input: GetVocabularyCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./waitForLanguageModelCompleted";
|
|
2
|
+
export * from "./waitForCallAnalyticsJobCompleted";
|
|
3
|
+
export * from "./waitForMedicalScribeJobCompleted";
|
|
4
|
+
export * from "./waitForMedicalTranscriptionJobCompleted";
|
|
5
|
+
export * from "./waitForMedicalVocabularyReady";
|
|
6
|
+
export * from "./waitForTranscriptionJobCompleted";
|
|
7
|
+
export * from "./waitForVocabularyReady";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetCallAnalyticsJobCommandInput } from "../commands/GetCallAnalyticsJobCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilCallAnalyticsJobCompleted instead. waitForCallAnalyticsJobCompleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForCallAnalyticsJobCompleted: (params: WaiterConfiguration<TranscribeClient>, input: GetCallAnalyticsJobCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetCallAnalyticsJobCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilCallAnalyticsJobCompleted: (params: WaiterConfiguration<TranscribeClient>, input: GetCallAnalyticsJobCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeLanguageModelCommandInput } from "../commands/DescribeLanguageModelCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilLanguageModelCompleted instead. waitForLanguageModelCompleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForLanguageModelCompleted: (params: WaiterConfiguration<TranscribeClient>, input: DescribeLanguageModelCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to DescribeLanguageModelCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilLanguageModelCompleted: (params: WaiterConfiguration<TranscribeClient>, input: DescribeLanguageModelCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetMedicalScribeJobCommandInput } from "../commands/GetMedicalScribeJobCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilMedicalScribeJobCompleted instead. waitForMedicalScribeJobCompleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForMedicalScribeJobCompleted: (params: WaiterConfiguration<TranscribeClient>, input: GetMedicalScribeJobCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetMedicalScribeJobCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilMedicalScribeJobCompleted: (params: WaiterConfiguration<TranscribeClient>, input: GetMedicalScribeJobCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetMedicalTranscriptionJobCommandInput } from "../commands/GetMedicalTranscriptionJobCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilMedicalTranscriptionJobCompleted instead. waitForMedicalTranscriptionJobCompleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForMedicalTranscriptionJobCompleted: (params: WaiterConfiguration<TranscribeClient>, input: GetMedicalTranscriptionJobCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetMedicalTranscriptionJobCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilMedicalTranscriptionJobCompleted: (params: WaiterConfiguration<TranscribeClient>, input: GetMedicalTranscriptionJobCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetMedicalVocabularyCommandInput } from "../commands/GetMedicalVocabularyCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilMedicalVocabularyReady instead. waitForMedicalVocabularyReady does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForMedicalVocabularyReady: (params: WaiterConfiguration<TranscribeClient>, input: GetMedicalVocabularyCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetMedicalVocabularyCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilMedicalVocabularyReady: (params: WaiterConfiguration<TranscribeClient>, input: GetMedicalVocabularyCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetTranscriptionJobCommandInput } from "../commands/GetTranscriptionJobCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilTranscriptionJobCompleted instead. waitForTranscriptionJobCompleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForTranscriptionJobCompleted: (params: WaiterConfiguration<TranscribeClient>, input: GetTranscriptionJobCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetTranscriptionJobCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilTranscriptionJobCompleted: (params: WaiterConfiguration<TranscribeClient>, input: GetTranscriptionJobCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetVocabularyCommandInput } from "../commands/GetVocabularyCommand";
|
|
3
|
+
import { TranscribeClient } from "../TranscribeClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilVocabularyReady instead. waitForVocabularyReady does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForVocabularyReady: (params: WaiterConfiguration<TranscribeClient>, input: GetVocabularyCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetVocabularyCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilVocabularyReady: (params: WaiterConfiguration<TranscribeClient>, input: GetVocabularyCommandInput) => Promise<WaiterResult>;
|
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.
|
|
4
|
+
"version": "3.967.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-transcribe",
|
|
@@ -21,42 +21,43 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/core": "3.967.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.967.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.965.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.965.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.965.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.967.0",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "3.965.0",
|
|
31
31
|
"@aws-sdk/types": "3.965.0",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.965.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.965.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.967.0",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.5",
|
|
36
|
-
"@smithy/core": "^3.20.
|
|
36
|
+
"@smithy/core": "^3.20.2",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.8",
|
|
38
38
|
"@smithy/hash-node": "^4.2.7",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.7",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.7",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.3",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.19",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.8",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.7",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.7",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.7",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.7",
|
|
48
|
-
"@smithy/smithy-client": "^4.10.
|
|
48
|
+
"@smithy/smithy-client": "^4.10.4",
|
|
49
49
|
"@smithy/types": "^4.11.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.7",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.18",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.21",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.7",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.7",
|
|
58
58
|
"@smithy/util-retry": "^4.2.7",
|
|
59
59
|
"@smithy/util-utf8": "^4.2.0",
|
|
60
|
+
"@smithy/util-waiter": "^4.2.7",
|
|
60
61
|
"tslib": "^2.6.2"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|