@aws-sdk/client-translate 3.30.0 → 3.34.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/CHANGELOG.md +35 -0
- package/dist/cjs/TranslateClient.js +13 -13
- package/dist/cjs/TranslateClient.js.map +1 -1
- package/dist/cjs/commands/CreateParallelDataCommand.js +3 -3
- package/dist/cjs/commands/CreateParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteParallelDataCommand.js +3 -3
- package/dist/cjs/commands/DeleteParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTerminologyCommand.js +3 -3
- package/dist/cjs/commands/DeleteTerminologyCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeTextTranslationJobCommand.js +3 -3
- package/dist/cjs/commands/DescribeTextTranslationJobCommand.js.map +1 -1
- package/dist/cjs/commands/GetParallelDataCommand.js +3 -3
- package/dist/cjs/commands/GetParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/GetTerminologyCommand.js +3 -3
- package/dist/cjs/commands/GetTerminologyCommand.js.map +1 -1
- package/dist/cjs/commands/ImportTerminologyCommand.js +3 -3
- package/dist/cjs/commands/ImportTerminologyCommand.js.map +1 -1
- package/dist/cjs/commands/ListParallelDataCommand.js +3 -3
- package/dist/cjs/commands/ListParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/ListTerminologiesCommand.js +3 -3
- package/dist/cjs/commands/ListTerminologiesCommand.js.map +1 -1
- package/dist/cjs/commands/ListTextTranslationJobsCommand.js +3 -3
- package/dist/cjs/commands/ListTextTranslationJobsCommand.js.map +1 -1
- package/dist/cjs/commands/StartTextTranslationJobCommand.js +3 -3
- package/dist/cjs/commands/StartTextTranslationJobCommand.js.map +1 -1
- package/dist/cjs/commands/StopTextTranslationJobCommand.js +3 -3
- package/dist/cjs/commands/StopTextTranslationJobCommand.js.map +1 -1
- package/dist/cjs/commands/TranslateTextCommand.js +3 -3
- package/dist/cjs/commands/TranslateTextCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateParallelDataCommand.js +3 -3
- package/dist/cjs/commands/UpdateParallelDataCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +21 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_1.js +89 -87
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/Translate.js +1 -5
- package/dist/es/Translate.js.map +1 -1
- package/dist/es/TranslateClient.js +1 -10
- package/dist/es/TranslateClient.js.map +1 -1
- package/dist/es/commands/CreateParallelDataCommand.js +2 -30
- package/dist/es/commands/CreateParallelDataCommand.js.map +1 -1
- package/dist/es/commands/DeleteParallelDataCommand.js +2 -27
- package/dist/es/commands/DeleteParallelDataCommand.js.map +1 -1
- package/dist/es/commands/DeleteTerminologyCommand.js +2 -27
- package/dist/es/commands/DeleteTerminologyCommand.js.map +1 -1
- package/dist/es/commands/DescribeTextTranslationJobCommand.js +2 -28
- package/dist/es/commands/DescribeTextTranslationJobCommand.js.map +1 -1
- package/dist/es/commands/GetParallelDataCommand.js +2 -27
- package/dist/es/commands/GetParallelDataCommand.js.map +1 -1
- package/dist/es/commands/GetTerminologyCommand.js +2 -27
- package/dist/es/commands/GetTerminologyCommand.js.map +1 -1
- package/dist/es/commands/ImportTerminologyCommand.js +2 -34
- package/dist/es/commands/ImportTerminologyCommand.js.map +1 -1
- package/dist/es/commands/ListParallelDataCommand.js +2 -27
- package/dist/es/commands/ListParallelDataCommand.js.map +1 -1
- package/dist/es/commands/ListTerminologiesCommand.js +2 -27
- package/dist/es/commands/ListTerminologiesCommand.js.map +1 -1
- package/dist/es/commands/ListTextTranslationJobsCommand.js +2 -27
- package/dist/es/commands/ListTextTranslationJobsCommand.js.map +1 -1
- package/dist/es/commands/StartTextTranslationJobCommand.js +2 -34
- package/dist/es/commands/StartTextTranslationJobCommand.js.map +1 -1
- package/dist/es/commands/StopTextTranslationJobCommand.js +2 -33
- package/dist/es/commands/StopTextTranslationJobCommand.js.map +1 -1
- package/dist/es/commands/TranslateTextCommand.js +2 -28
- package/dist/es/commands/TranslateTextCommand.js.map +1 -1
- package/dist/es/commands/UpdateParallelDataCommand.js +2 -28
- package/dist/es/commands/UpdateParallelDataCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -162
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/ListParallelDataPaginator.js +16 -28
- package/dist/es/pagination/ListParallelDataPaginator.js.map +1 -1
- package/dist/es/pagination/ListTerminologiesPaginator.js +16 -28
- package/dist/es/pagination/ListTerminologiesPaginator.js.map +1 -1
- package/dist/es/pagination/ListTextTranslationJobsPaginator.js +16 -28
- package/dist/es/pagination/ListTextTranslationJobsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +376 -379
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_json1_1.ts +13 -8
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
package/protocols/Aws_json1_1.ts
CHANGED
|
@@ -84,7 +84,10 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
|
|
|
84
84
|
import {
|
|
85
85
|
expectInt32 as __expectInt32,
|
|
86
86
|
expectLong as __expectLong,
|
|
87
|
+
expectNonNull as __expectNonNull,
|
|
88
|
+
expectNumber as __expectNumber,
|
|
87
89
|
expectString as __expectString,
|
|
90
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
88
91
|
} from "@aws-sdk/smithy-client";
|
|
89
92
|
import {
|
|
90
93
|
Endpoint as __Endpoint,
|
|
@@ -2139,7 +2142,7 @@ const deserializeAws_json1_1ParallelDataProperties = (output: any, context: __Se
|
|
|
2139
2142
|
Arn: __expectString(output.Arn),
|
|
2140
2143
|
CreatedAt:
|
|
2141
2144
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
2142
|
-
?
|
|
2145
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2143
2146
|
: undefined,
|
|
2144
2147
|
Description: __expectString(output.Description),
|
|
2145
2148
|
EncryptionKey:
|
|
@@ -2151,11 +2154,11 @@ const deserializeAws_json1_1ParallelDataProperties = (output: any, context: __Se
|
|
|
2151
2154
|
ImportedRecordCount: __expectLong(output.ImportedRecordCount),
|
|
2152
2155
|
LastUpdatedAt:
|
|
2153
2156
|
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
2154
|
-
?
|
|
2157
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2155
2158
|
: undefined,
|
|
2156
2159
|
LatestUpdateAttemptAt:
|
|
2157
2160
|
output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
|
|
2158
|
-
?
|
|
2161
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestUpdateAttemptAt)))
|
|
2159
2162
|
: undefined,
|
|
2160
2163
|
LatestUpdateAttemptStatus: __expectString(output.LatestUpdateAttemptStatus),
|
|
2161
2164
|
Message: __expectString(output.Message),
|
|
@@ -2270,7 +2273,7 @@ const deserializeAws_json1_1TerminologyProperties = (output: any, context: __Ser
|
|
|
2270
2273
|
Arn: __expectString(output.Arn),
|
|
2271
2274
|
CreatedAt:
|
|
2272
2275
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
2273
|
-
?
|
|
2276
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2274
2277
|
: undefined,
|
|
2275
2278
|
Description: __expectString(output.Description),
|
|
2276
2279
|
EncryptionKey:
|
|
@@ -2279,7 +2282,7 @@ const deserializeAws_json1_1TerminologyProperties = (output: any, context: __Ser
|
|
|
2279
2282
|
: undefined,
|
|
2280
2283
|
LastUpdatedAt:
|
|
2281
2284
|
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
2282
|
-
?
|
|
2285
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2283
2286
|
: undefined,
|
|
2284
2287
|
Name: __expectString(output.Name),
|
|
2285
2288
|
SizeBytes: __expectInt32(output.SizeBytes),
|
|
@@ -2333,7 +2336,9 @@ const deserializeAws_json1_1TextTranslationJobProperties = (
|
|
|
2333
2336
|
return {
|
|
2334
2337
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
2335
2338
|
EndTime:
|
|
2336
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
2339
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
2340
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
2341
|
+
: undefined,
|
|
2337
2342
|
InputDataConfig:
|
|
2338
2343
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
2339
2344
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
@@ -2357,7 +2362,7 @@ const deserializeAws_json1_1TextTranslationJobProperties = (
|
|
|
2357
2362
|
SourceLanguageCode: __expectString(output.SourceLanguageCode),
|
|
2358
2363
|
SubmittedTime:
|
|
2359
2364
|
output.SubmittedTime !== undefined && output.SubmittedTime !== null
|
|
2360
|
-
?
|
|
2365
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmittedTime)))
|
|
2361
2366
|
: undefined,
|
|
2362
2367
|
TargetLanguageCodes:
|
|
2363
2368
|
output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
@@ -2423,7 +2428,7 @@ const deserializeAws_json1_1UpdateParallelDataResponse = (
|
|
|
2423
2428
|
return {
|
|
2424
2429
|
LatestUpdateAttemptAt:
|
|
2425
2430
|
output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
|
|
2426
|
-
?
|
|
2431
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestUpdateAttemptAt)))
|
|
2427
2432
|
: undefined,
|
|
2428
2433
|
LatestUpdateAttemptStatus: __expectString(output.LatestUpdateAttemptStatus),
|
|
2429
2434
|
Name: __expectString(output.Name),
|
package/tsconfig.es.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"alwaysStrict": true,
|
|
4
4
|
"target": "ES2018",
|
|
5
5
|
"module": "commonjs",
|
|
6
|
-
"declaration": true,
|
|
7
6
|
"strict": true,
|
|
8
7
|
"sourceMap": true,
|
|
9
8
|
"downlevelIteration": true,
|
|
@@ -12,9 +11,8 @@
|
|
|
12
11
|
"incremental": true,
|
|
13
12
|
"resolveJsonModule": true,
|
|
14
13
|
"esModuleInterop": true,
|
|
15
|
-
"declarationDir": "./dist/types",
|
|
16
14
|
"outDir": "dist/cjs",
|
|
17
|
-
"
|
|
15
|
+
"removeComments": true
|
|
18
16
|
},
|
|
19
17
|
"typedocOptions": {
|
|
20
18
|
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
@@ -24,9 +22,9 @@
|
|
|
24
22
|
"ignoreCompilerErrors": true,
|
|
25
23
|
"includeDeclarations": true,
|
|
26
24
|
"stripInternal": true,
|
|
27
|
-
"readme": "
|
|
25
|
+
"readme": "README.md",
|
|
28
26
|
"mode": "file",
|
|
29
|
-
"out": "
|
|
27
|
+
"out": "docs",
|
|
30
28
|
"theme": "minimal",
|
|
31
29
|
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
32
30
|
}
|