@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.
Files changed (110) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/TranslateClient.js +13 -13
  3. package/dist/cjs/TranslateClient.js.map +1 -1
  4. package/dist/cjs/commands/CreateParallelDataCommand.js +3 -3
  5. package/dist/cjs/commands/CreateParallelDataCommand.js.map +1 -1
  6. package/dist/cjs/commands/DeleteParallelDataCommand.js +3 -3
  7. package/dist/cjs/commands/DeleteParallelDataCommand.js.map +1 -1
  8. package/dist/cjs/commands/DeleteTerminologyCommand.js +3 -3
  9. package/dist/cjs/commands/DeleteTerminologyCommand.js.map +1 -1
  10. package/dist/cjs/commands/DescribeTextTranslationJobCommand.js +3 -3
  11. package/dist/cjs/commands/DescribeTextTranslationJobCommand.js.map +1 -1
  12. package/dist/cjs/commands/GetParallelDataCommand.js +3 -3
  13. package/dist/cjs/commands/GetParallelDataCommand.js.map +1 -1
  14. package/dist/cjs/commands/GetTerminologyCommand.js +3 -3
  15. package/dist/cjs/commands/GetTerminologyCommand.js.map +1 -1
  16. package/dist/cjs/commands/ImportTerminologyCommand.js +3 -3
  17. package/dist/cjs/commands/ImportTerminologyCommand.js.map +1 -1
  18. package/dist/cjs/commands/ListParallelDataCommand.js +3 -3
  19. package/dist/cjs/commands/ListParallelDataCommand.js.map +1 -1
  20. package/dist/cjs/commands/ListTerminologiesCommand.js +3 -3
  21. package/dist/cjs/commands/ListTerminologiesCommand.js.map +1 -1
  22. package/dist/cjs/commands/ListTextTranslationJobsCommand.js +3 -3
  23. package/dist/cjs/commands/ListTextTranslationJobsCommand.js.map +1 -1
  24. package/dist/cjs/commands/StartTextTranslationJobCommand.js +3 -3
  25. package/dist/cjs/commands/StartTextTranslationJobCommand.js.map +1 -1
  26. package/dist/cjs/commands/StopTextTranslationJobCommand.js +3 -3
  27. package/dist/cjs/commands/StopTextTranslationJobCommand.js.map +1 -1
  28. package/dist/cjs/commands/TranslateTextCommand.js +3 -3
  29. package/dist/cjs/commands/TranslateTextCommand.js.map +1 -1
  30. package/dist/cjs/commands/UpdateParallelDataCommand.js +3 -3
  31. package/dist/cjs/commands/UpdateParallelDataCommand.js.map +1 -1
  32. package/dist/cjs/endpoints.js +1 -1
  33. package/dist/cjs/endpoints.js.map +1 -1
  34. package/dist/cjs/index.js +21 -21
  35. package/dist/cjs/index.js.map +1 -1
  36. package/dist/cjs/models/index.js +1 -1
  37. package/dist/cjs/models/index.js.map +1 -1
  38. package/dist/cjs/package.json +39 -39
  39. package/dist/cjs/protocols/Aws_json1_1.js +89 -87
  40. package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
  41. package/dist/cjs/runtimeConfig.browser.js +4 -4
  42. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  43. package/dist/cjs/runtimeConfig.js +8 -8
  44. package/dist/cjs/runtimeConfig.js.map +1 -1
  45. package/dist/cjs/runtimeConfig.native.js +1 -1
  46. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  47. package/dist/es/Translate.js +1 -5
  48. package/dist/es/Translate.js.map +1 -1
  49. package/dist/es/TranslateClient.js +1 -10
  50. package/dist/es/TranslateClient.js.map +1 -1
  51. package/dist/es/commands/CreateParallelDataCommand.js +2 -30
  52. package/dist/es/commands/CreateParallelDataCommand.js.map +1 -1
  53. package/dist/es/commands/DeleteParallelDataCommand.js +2 -27
  54. package/dist/es/commands/DeleteParallelDataCommand.js.map +1 -1
  55. package/dist/es/commands/DeleteTerminologyCommand.js +2 -27
  56. package/dist/es/commands/DeleteTerminologyCommand.js.map +1 -1
  57. package/dist/es/commands/DescribeTextTranslationJobCommand.js +2 -28
  58. package/dist/es/commands/DescribeTextTranslationJobCommand.js.map +1 -1
  59. package/dist/es/commands/GetParallelDataCommand.js +2 -27
  60. package/dist/es/commands/GetParallelDataCommand.js.map +1 -1
  61. package/dist/es/commands/GetTerminologyCommand.js +2 -27
  62. package/dist/es/commands/GetTerminologyCommand.js.map +1 -1
  63. package/dist/es/commands/ImportTerminologyCommand.js +2 -34
  64. package/dist/es/commands/ImportTerminologyCommand.js.map +1 -1
  65. package/dist/es/commands/ListParallelDataCommand.js +2 -27
  66. package/dist/es/commands/ListParallelDataCommand.js.map +1 -1
  67. package/dist/es/commands/ListTerminologiesCommand.js +2 -27
  68. package/dist/es/commands/ListTerminologiesCommand.js.map +1 -1
  69. package/dist/es/commands/ListTextTranslationJobsCommand.js +2 -27
  70. package/dist/es/commands/ListTextTranslationJobsCommand.js.map +1 -1
  71. package/dist/es/commands/StartTextTranslationJobCommand.js +2 -34
  72. package/dist/es/commands/StartTextTranslationJobCommand.js.map +1 -1
  73. package/dist/es/commands/StopTextTranslationJobCommand.js +2 -33
  74. package/dist/es/commands/StopTextTranslationJobCommand.js.map +1 -1
  75. package/dist/es/commands/TranslateTextCommand.js +2 -28
  76. package/dist/es/commands/TranslateTextCommand.js.map +1 -1
  77. package/dist/es/commands/UpdateParallelDataCommand.js +2 -28
  78. package/dist/es/commands/UpdateParallelDataCommand.js.map +1 -1
  79. package/dist/es/endpoints.js +1 -1
  80. package/dist/es/endpoints.js.map +1 -1
  81. package/dist/es/models/models_0.js +0 -162
  82. package/dist/es/models/models_0.js.map +1 -1
  83. package/dist/es/package.json +39 -39
  84. package/dist/es/pagination/ListParallelDataPaginator.js +16 -28
  85. package/dist/es/pagination/ListParallelDataPaginator.js.map +1 -1
  86. package/dist/es/pagination/ListTerminologiesPaginator.js +16 -28
  87. package/dist/es/pagination/ListTerminologiesPaginator.js.map +1 -1
  88. package/dist/es/pagination/ListTextTranslationJobsPaginator.js +16 -28
  89. package/dist/es/pagination/ListTextTranslationJobsPaginator.js.map +1 -1
  90. package/dist/es/protocols/Aws_json1_1.js +376 -379
  91. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  92. package/dist/es/runtimeConfig.browser.js +0 -3
  93. package/dist/es/runtimeConfig.browser.js.map +1 -1
  94. package/dist/es/runtimeConfig.js +0 -3
  95. package/dist/es/runtimeConfig.js.map +1 -1
  96. package/dist/es/runtimeConfig.native.js +0 -3
  97. package/dist/es/runtimeConfig.native.js.map +1 -1
  98. package/dist/es/runtimeConfig.shared.js +0 -3
  99. package/dist/es/runtimeConfig.shared.js.map +1 -1
  100. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  101. package/dist/types/runtimeConfig.d.ts +1 -0
  102. package/dist/types/runtimeConfig.native.d.ts +1 -0
  103. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  104. package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
  105. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  106. package/package.json +39 -39
  107. package/protocols/Aws_json1_1.ts +13 -8
  108. package/tsconfig.es.json +0 -2
  109. package/tsconfig.json +3 -5
  110. package/tsconfig.types.json +8 -0
@@ -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
- ? new Date(Math.round(output.CreatedAt * 1000))
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
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
2157
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
2155
2158
  : undefined,
2156
2159
  LatestUpdateAttemptAt:
2157
2160
  output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
2158
- ? new Date(Math.round(output.LatestUpdateAttemptAt * 1000))
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
- ? new Date(Math.round(output.CreatedAt * 1000))
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
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
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 ? new Date(Math.round(output.EndTime * 1000)) : undefined,
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
- ? new Date(Math.round(output.SubmittedTime * 1000))
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
- ? new Date(Math.round(output.LatestUpdateAttemptAt * 1000))
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
@@ -4,8 +4,6 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
8
  "outDir": "dist/es"
11
9
  }
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
- "useUnknownInCatchVariables": false
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": "./README.md",
25
+ "readme": "README.md",
28
26
  "mode": "file",
29
- "out": "./docs",
27
+ "out": "docs",
30
28
  "theme": "minimal",
31
29
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
30
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "compilerOptions": {
4
+ "removeComments": false,
5
+ "declaration": true,
6
+ "declarationDir": "dist/types"
7
+ }
8
+ }