@language-weaver/lw-sdk-js 1.0.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 (218) hide show
  1. package/lib/CloudLanguageWeaverClient.d.ts +61 -0
  2. package/lib/CloudLanguageWeaverClient.js +514 -0
  3. package/lib/CloudLanguageWeaverClient.js.map +1 -0
  4. package/lib/EdgeLanguageWeaverClient.d.ts +60 -0
  5. package/lib/EdgeLanguageWeaverClient.js +580 -0
  6. package/lib/EdgeLanguageWeaverClient.js.map +1 -0
  7. package/lib/LanguageWeaverClient.d.ts +15 -0
  8. package/lib/LanguageWeaverClient.js +3 -0
  9. package/lib/LanguageWeaverClient.js.map +1 -0
  10. package/lib/SdkFactory.d.ts +9 -0
  11. package/lib/SdkFactory.js +56 -0
  12. package/lib/SdkFactory.js.map +1 -0
  13. package/lib/auth/LanguageWeaverAuthentication.d.ts +12 -0
  14. package/lib/auth/LanguageWeaverAuthentication.js +25 -0
  15. package/lib/auth/LanguageWeaverAuthentication.js.map +1 -0
  16. package/lib/auth/domain/SelfInformation.d.ts +8 -0
  17. package/lib/auth/domain/SelfInformation.js +29 -0
  18. package/lib/auth/domain/SelfInformation.js.map +1 -0
  19. package/lib/auth/domain/Token.d.ts +15 -0
  20. package/lib/auth/domain/Token.js +53 -0
  21. package/lib/auth/domain/Token.js.map +1 -0
  22. package/lib/auth/domain/UserSelfInformation.d.ts +38 -0
  23. package/lib/auth/domain/UserSelfInformation.js +129 -0
  24. package/lib/auth/domain/UserSelfInformation.js.map +1 -0
  25. package/lib/common/api/ErrorResponse.d.ts +9 -0
  26. package/lib/common/api/ErrorResponse.js +31 -0
  27. package/lib/common/api/ErrorResponse.js.map +1 -0
  28. package/lib/common/configurations/ClientConfiguration.d.ts +14 -0
  29. package/lib/common/configurations/ClientConfiguration.js +46 -0
  30. package/lib/common/configurations/ClientConfiguration.js.map +1 -0
  31. package/lib/common/configurations/CredentialsConfiguration.d.ts +9 -0
  32. package/lib/common/configurations/CredentialsConfiguration.js +35 -0
  33. package/lib/common/configurations/CredentialsConfiguration.js.map +1 -0
  34. package/lib/common/configurations/RetryConfiguration.d.ts +8 -0
  35. package/lib/common/configurations/RetryConfiguration.js +31 -0
  36. package/lib/common/configurations/RetryConfiguration.js.map +1 -0
  37. package/lib/common/configurations/TokenConfiguration.d.ts +10 -0
  38. package/lib/common/configurations/TokenConfiguration.js +29 -0
  39. package/lib/common/configurations/TokenConfiguration.js.map +1 -0
  40. package/lib/common/constants/EdgeFinalSubStatuses.d.ts +5 -0
  41. package/lib/common/constants/EdgeFinalSubStatuses.js +9 -0
  42. package/lib/common/constants/EdgeFinalSubStatuses.js.map +1 -0
  43. package/lib/common/constants/EdgeStatuses.d.ts +3 -0
  44. package/lib/common/constants/EdgeStatuses.js +7 -0
  45. package/lib/common/constants/EdgeStatuses.js.map +1 -0
  46. package/lib/common/constants/FileExtensions.d.ts +2 -0
  47. package/lib/common/constants/FileExtensions.js +52 -0
  48. package/lib/common/constants/FileExtensions.js.map +1 -0
  49. package/lib/common/constants/FormatToMimeType.d.ts +1 -0
  50. package/lib/common/constants/FormatToMimeType.js +33 -0
  51. package/lib/common/constants/FormatToMimeType.js.map +1 -0
  52. package/lib/common/constants/TranslationConstants.d.ts +62 -0
  53. package/lib/common/constants/TranslationConstants.js +69 -0
  54. package/lib/common/constants/TranslationConstants.js.map +1 -0
  55. package/lib/common/constants/languages/Iso639Mapping.d.ts +1 -0
  56. package/lib/common/constants/languages/Iso639Mapping.js +95 -0
  57. package/lib/common/constants/languages/Iso639Mapping.js.map +1 -0
  58. package/lib/common/exceptions/EdgeTranslationException.d.ts +3 -0
  59. package/lib/common/exceptions/EdgeTranslationException.js +17 -0
  60. package/lib/common/exceptions/EdgeTranslationException.js.map +1 -0
  61. package/lib/common/exceptions/TranslationException.d.ts +4 -0
  62. package/lib/common/exceptions/TranslationException.js +17 -0
  63. package/lib/common/exceptions/TranslationException.js.map +1 -0
  64. package/lib/common/requests/RestClient.d.ts +34 -0
  65. package/lib/common/requests/RestClient.js +331 -0
  66. package/lib/common/requests/RestClient.js.map +1 -0
  67. package/lib/common/requests/TraceRequestInfo.d.ts +9 -0
  68. package/lib/common/requests/TraceRequestInfo.js +20 -0
  69. package/lib/common/requests/TraceRequestInfo.js.map +1 -0
  70. package/lib/common/utils/HttpUtils.d.ts +5 -0
  71. package/lib/common/utils/HttpUtils.js +26 -0
  72. package/lib/common/utils/HttpUtils.js.map +1 -0
  73. package/lib/common/utils/Utils.d.ts +34 -0
  74. package/lib/common/utils/Utils.js +319 -0
  75. package/lib/common/utils/Utils.js.map +1 -0
  76. package/lib/index.d.ts +51 -0
  77. package/lib/index.js +99 -0
  78. package/lib/index.js.map +1 -0
  79. package/lib/translation/common/Format.d.ts +39 -0
  80. package/lib/translation/common/Format.js +52 -0
  81. package/lib/translation/common/Format.js.map +1 -0
  82. package/lib/translation/common/Product.d.ts +4 -0
  83. package/lib/translation/common/Product.js +9 -0
  84. package/lib/translation/common/Product.js.map +1 -0
  85. package/lib/translation/common/Regions.d.ts +4 -0
  86. package/lib/translation/common/Regions.js +9 -0
  87. package/lib/translation/common/Regions.js.map +1 -0
  88. package/lib/translation/common/Statuses.d.ts +6 -0
  89. package/lib/translation/common/Statuses.js +10 -0
  90. package/lib/translation/common/Statuses.js.map +1 -0
  91. package/lib/translation/translate/request/TranslateBatchFileRequest.d.ts +21 -0
  92. package/lib/translation/translate/request/TranslateBatchFileRequest.js +84 -0
  93. package/lib/translation/translate/request/TranslateBatchFileRequest.js.map +1 -0
  94. package/lib/translation/translate/request/TranslateFileRequest.d.ts +12 -0
  95. package/lib/translation/translate/request/TranslateFileRequest.js +68 -0
  96. package/lib/translation/translate/request/TranslateFileRequest.js.map +1 -0
  97. package/lib/translation/translate/request/TranslateRequest.d.ts +19 -0
  98. package/lib/translation/translate/request/TranslateRequest.js +67 -0
  99. package/lib/translation/translate/request/TranslateRequest.js.map +1 -0
  100. package/lib/translation/translate/request/TranslateTextRequest.d.ts +7 -0
  101. package/lib/translation/translate/request/TranslateTextRequest.js +46 -0
  102. package/lib/translation/translate/request/TranslateTextRequest.js.map +1 -0
  103. package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.d.ts +3 -0
  104. package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.js +30 -0
  105. package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.js.map +1 -0
  106. package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.d.ts +3 -0
  107. package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.js +30 -0
  108. package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.js.map +1 -0
  109. package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.d.ts +3 -0
  110. package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.js +30 -0
  111. package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.js.map +1 -0
  112. package/lib/translation/translate/request/edge/EdgeTranslateBatchFileRequest.d.ts +16 -0
  113. package/lib/translation/translate/request/edge/EdgeTranslateBatchFileRequest.js +70 -0
  114. package/lib/translation/translate/request/edge/EdgeTranslateBatchFileRequest.js.map +1 -0
  115. package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.d.ts +16 -0
  116. package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.js +70 -0
  117. package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.js.map +1 -0
  118. package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.d.ts +16 -0
  119. package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.js +70 -0
  120. package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.js.map +1 -0
  121. package/lib/translation/translate/response/AsyncTranslationResponse.d.ts +20 -0
  122. package/lib/translation/translate/response/AsyncTranslationResponse.js +69 -0
  123. package/lib/translation/translate/response/AsyncTranslationResponse.js.map +1 -0
  124. package/lib/translation/translate/response/DictionaryResponse.d.ts +11 -0
  125. package/lib/translation/translate/response/DictionaryResponse.js +39 -0
  126. package/lib/translation/translate/response/DictionaryResponse.js.map +1 -0
  127. package/lib/translation/translate/response/LanguagePair.d.ts +14 -0
  128. package/lib/translation/translate/response/LanguagePair.js +49 -0
  129. package/lib/translation/translate/response/LanguagePair.js.map +1 -0
  130. package/lib/translation/translate/response/StatusTranslationResponse.d.ts +19 -0
  131. package/lib/translation/translate/response/StatusTranslationResponse.js +59 -0
  132. package/lib/translation/translate/response/StatusTranslationResponse.js.map +1 -0
  133. package/lib/translation/translate/response/TranslationStatistics.d.ts +20 -0
  134. package/lib/translation/translate/response/TranslationStatistics.js +69 -0
  135. package/lib/translation/translate/response/TranslationStatistics.js.map +1 -0
  136. package/lib/translation/translate/response/cloud/CloudDictionaryResponse.d.ts +32 -0
  137. package/lib/translation/translate/response/cloud/CloudDictionaryResponse.js +110 -0
  138. package/lib/translation/translate/response/cloud/CloudDictionaryResponse.js.map +1 -0
  139. package/lib/translation/translate/response/cloud/CloudLanguagePair.d.ts +17 -0
  140. package/lib/translation/translate/response/cloud/CloudLanguagePair.js +59 -0
  141. package/lib/translation/translate/response/cloud/CloudLanguagePair.js.map +1 -0
  142. package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.d.ts +5 -0
  143. package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.js +19 -0
  144. package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.js.map +1 -0
  145. package/lib/translation/translate/response/edge/EdgeDictionaryResponse.d.ts +11 -0
  146. package/lib/translation/translate/response/edge/EdgeDictionaryResponse.js +39 -0
  147. package/lib/translation/translate/response/edge/EdgeDictionaryResponse.js.map +1 -0
  148. package/lib/translation/translate/response/edge/EdgeLanguagePair.d.ts +9 -0
  149. package/lib/translation/translate/response/edge/EdgeLanguagePair.js +50 -0
  150. package/lib/translation/translate/response/edge/EdgeLanguagePair.js.map +1 -0
  151. package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.d.ts +26 -0
  152. package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.js +79 -0
  153. package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.js.map +1 -0
  154. package/lib/translation/translate/response/edge/MemberPair.d.ts +29 -0
  155. package/lib/translation/translate/response/edge/MemberPair.js +99 -0
  156. package/lib/translation/translate/response/edge/MemberPair.js.map +1 -0
  157. package/lib/translation/translate/response/edge/Profile.d.ts +26 -0
  158. package/lib/translation/translate/response/edge/Profile.js +89 -0
  159. package/lib/translation/translate/response/edge/Profile.js.map +1 -0
  160. package/lib/translation/translate/response/edge/Result.d.ts +32 -0
  161. package/lib/translation/translate/response/edge/Result.js +109 -0
  162. package/lib/translation/translate/response/edge/Result.js.map +1 -0
  163. package/lib/translation/translate/response/edge/Timestamps.d.ts +11 -0
  164. package/lib/translation/translate/response/edge/Timestamps.js +39 -0
  165. package/lib/translation/translate/response/edge/Timestamps.js.map +1 -0
  166. package/lib/translation/translate/result/DictionariesResult.d.ts +6 -0
  167. package/lib/translation/translate/result/DictionariesResult.js +19 -0
  168. package/lib/translation/translate/result/DictionariesResult.js.map +1 -0
  169. package/lib/translation/translate/result/LanguagePairsResult.d.ts +6 -0
  170. package/lib/translation/translate/result/LanguagePairsResult.js +19 -0
  171. package/lib/translation/translate/result/LanguagePairsResult.js.map +1 -0
  172. package/lib/translation/translate/result/TranslateTextResult.d.ts +5 -0
  173. package/lib/translation/translate/result/TranslateTextResult.js +19 -0
  174. package/lib/translation/translate/result/TranslateTextResult.js.map +1 -0
  175. package/lib/translation/translate/result/TranslationBatchFileResult.d.ts +6 -0
  176. package/lib/translation/translate/result/TranslationBatchFileResult.js +19 -0
  177. package/lib/translation/translate/result/TranslationBatchFileResult.js.map +1 -0
  178. package/lib/translation/translate/result/TranslationFileResult.d.ts +11 -0
  179. package/lib/translation/translate/result/TranslationFileResult.js +39 -0
  180. package/lib/translation/translate/result/TranslationFileResult.js.map +1 -0
  181. package/lib/translation/translate/result/cloud/CloudDictionariesResult.d.ts +18 -0
  182. package/lib/translation/translate/result/cloud/CloudDictionariesResult.js +59 -0
  183. package/lib/translation/translate/result/cloud/CloudDictionariesResult.js.map +1 -0
  184. package/lib/translation/translate/result/cloud/CloudLanguagePairsResult.d.ts +9 -0
  185. package/lib/translation/translate/result/cloud/CloudLanguagePairsResult.js +29 -0
  186. package/lib/translation/translate/result/cloud/CloudLanguagePairsResult.js.map +1 -0
  187. package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.d.ts +3 -0
  188. package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.js +30 -0
  189. package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.js.map +1 -0
  190. package/lib/translation/translate/result/cloud/CloudTranslationFileResult.d.ts +26 -0
  191. package/lib/translation/translate/result/cloud/CloudTranslationFileResult.js +100 -0
  192. package/lib/translation/translate/result/cloud/CloudTranslationFileResult.js.map +1 -0
  193. package/lib/translation/translate/result/cloud/CloudTranslationTextResult.d.ts +28 -0
  194. package/lib/translation/translate/result/cloud/CloudTranslationTextResult.js +89 -0
  195. package/lib/translation/translate/result/cloud/CloudTranslationTextResult.js.map +1 -0
  196. package/lib/translation/translate/result/edge/EdgeDictionariesResult.d.ts +18 -0
  197. package/lib/translation/translate/result/edge/EdgeDictionariesResult.js +59 -0
  198. package/lib/translation/translate/result/edge/EdgeDictionariesResult.js.map +1 -0
  199. package/lib/translation/translate/result/edge/EdgeLanguagePairsResult.d.ts +6 -0
  200. package/lib/translation/translate/result/edge/EdgeLanguagePairsResult.js +20 -0
  201. package/lib/translation/translate/result/edge/EdgeLanguagePairsResult.js.map +1 -0
  202. package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.d.ts +3 -0
  203. package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.js +30 -0
  204. package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.js.map +1 -0
  205. package/lib/translation/translate/result/edge/EdgeTranslationFileResult.d.ts +9 -0
  206. package/lib/translation/translate/result/edge/EdgeTranslationFileResult.js +50 -0
  207. package/lib/translation/translate/result/edge/EdgeTranslationFileResult.js.map +1 -0
  208. package/lib/translation/translate/result/edge/EdgeTranslationTextResult.d.ts +6 -0
  209. package/lib/translation/translate/result/edge/EdgeTranslationTextResult.js +40 -0
  210. package/lib/translation/translate/result/edge/EdgeTranslationTextResult.js.map +1 -0
  211. package/lib/translation/translate/utils/TranslateFileUtil.d.ts +8 -0
  212. package/lib/translation/translate/utils/TranslateFileUtil.js +266 -0
  213. package/lib/translation/translate/utils/TranslateFileUtil.js.map +1 -0
  214. package/lib/version.d.ts +1 -0
  215. package/lib/version.js +5 -0
  216. package/lib/version.js.map +1 -0
  217. package/package.json +45 -0
  218. package/readme.md +17 -0
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FAILED_TRANSLATION_STATUS = exports.DONE_TRANSLATION_STATUS = exports.CANCELLED_TRANSLATION_STATUS = exports.TRANSLATING_TRANSLATION_STATUS = exports.INIT_TRANSLATION_STATUS = exports.UNK_TRANSLATION_STATUS = void 0;
4
+ exports.UNK_TRANSLATION_STATUS = 'UNK';
5
+ exports.INIT_TRANSLATION_STATUS = 'INIT';
6
+ exports.TRANSLATING_TRANSLATION_STATUS = 'TRANSLATING';
7
+ exports.CANCELLED_TRANSLATION_STATUS = 'CANCELLED';
8
+ exports.DONE_TRANSLATION_STATUS = 'DONE';
9
+ exports.FAILED_TRANSLATION_STATUS = 'FAILED';
10
+ //# sourceMappingURL=Statuses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Statuses.js","sourceRoot":"","sources":["../../../src/translation/common/Statuses.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,KAAK,CAAC;AAC/B,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,8BAA8B,GAAG,aAAa,CAAC;AAC/C,QAAA,4BAA4B,GAAG,WAAW,CAAC;AAC3C,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,yBAAyB,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,21 @@
1
+ export default class TranslateBatchFileRequest {
2
+ private _sourceLanguageId;
3
+ private _targetLanguageId;
4
+ private _model;
5
+ private _input;
6
+ private _outputDir;
7
+ private _dictionaries;
8
+ get sourceLanguageId(): string | undefined;
9
+ set sourceLanguageId(value: string | undefined);
10
+ get targetLanguageId(): string | undefined;
11
+ set targetLanguageId(value: string | undefined);
12
+ get model(): string | undefined;
13
+ set model(value: string | undefined);
14
+ get outputDir(): string | undefined;
15
+ set outputDir(value: string | undefined);
16
+ get input(): string | File[] | undefined;
17
+ set input(value: string | File[] | undefined);
18
+ get dictionaries(): string[] | undefined;
19
+ set dictionaries(value: string[] | undefined);
20
+ addDictionary(dictionary: string): void;
21
+ }
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ Browser:
5
+ - input: array of File objects, required
6
+ Node:
7
+ - input: string, required
8
+ - outputDir: string, required
9
+ */
10
+ var TranslateBatchFileRequest = /** @class */ (function () {
11
+ function TranslateBatchFileRequest() {
12
+ }
13
+ Object.defineProperty(TranslateBatchFileRequest.prototype, "sourceLanguageId", {
14
+ get: function () {
15
+ return this._sourceLanguageId;
16
+ },
17
+ set: function (value) {
18
+ this._sourceLanguageId = value;
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ Object.defineProperty(TranslateBatchFileRequest.prototype, "targetLanguageId", {
24
+ get: function () {
25
+ return this._targetLanguageId;
26
+ },
27
+ set: function (value) {
28
+ this._targetLanguageId = value;
29
+ },
30
+ enumerable: false,
31
+ configurable: true
32
+ });
33
+ Object.defineProperty(TranslateBatchFileRequest.prototype, "model", {
34
+ get: function () {
35
+ return this._model;
36
+ },
37
+ set: function (value) {
38
+ this._model = value;
39
+ },
40
+ enumerable: false,
41
+ configurable: true
42
+ });
43
+ Object.defineProperty(TranslateBatchFileRequest.prototype, "outputDir", {
44
+ get: function () {
45
+ return this._outputDir;
46
+ },
47
+ set: function (value) {
48
+ this._outputDir = value;
49
+ },
50
+ enumerable: false,
51
+ configurable: true
52
+ });
53
+ Object.defineProperty(TranslateBatchFileRequest.prototype, "input", {
54
+ get: function () {
55
+ return this._input;
56
+ },
57
+ set: function (value) {
58
+ this._input = value;
59
+ },
60
+ enumerable: false,
61
+ configurable: true
62
+ });
63
+ Object.defineProperty(TranslateBatchFileRequest.prototype, "dictionaries", {
64
+ get: function () {
65
+ return this._dictionaries;
66
+ },
67
+ set: function (value) {
68
+ this._dictionaries = value;
69
+ },
70
+ enumerable: false,
71
+ configurable: true
72
+ });
73
+ TranslateBatchFileRequest.prototype.addDictionary = function (dictionary) {
74
+ if (this.dictionaries) {
75
+ this.dictionaries.push(dictionary);
76
+ }
77
+ else {
78
+ this.dictionaries = [dictionary];
79
+ }
80
+ };
81
+ return TranslateBatchFileRequest;
82
+ }());
83
+ exports.default = TranslateBatchFileRequest;
84
+ //# sourceMappingURL=TranslateBatchFileRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranslateBatchFileRequest.js","sourceRoot":"","sources":["../../../../src/translation/translate/request/TranslateBatchFileRequest.ts"],"names":[],"mappings":";;AAAA;;;;;;EAME;AACF;IAAA;IA8DA,CAAC;IAtDG,sBAAI,uDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,uDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,4CAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,sBAAI,gDAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAKD,sBAAI,4CAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAkC;YACxC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,sBAAI,mDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA2B;YACxC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,iDAAa,GAAb,UAAc,UAAkB;QAC5B,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACtC;aAAM;YACH,IAAI,CAAC,YAAY,GAAG,CAAC,UAAU,CAAC,CAAC;SACpC;IACL,CAAC;IACL,gCAAC;AAAD,CAAC,AA9DD,IA8DC"}
@@ -0,0 +1,12 @@
1
+ import TranslateRequest from './TranslateRequest';
2
+ export default class TranslateFileRequest extends TranslateRequest {
3
+ private _input;
4
+ private _outputFile;
5
+ private _outputDir;
6
+ get input(): string | File | undefined;
7
+ set input(value: string | File | undefined);
8
+ get outputFile(): string | undefined;
9
+ set outputFile(value: string | undefined);
10
+ get outputDir(): string | undefined;
11
+ set outputDir(value: string | undefined);
12
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var TranslateRequest_1 = __importDefault(require("./TranslateRequest"));
22
+ /*
23
+ Browser:
24
+ - input: File object, required
25
+ Node:
26
+ - input: string, required
27
+ - outputDir: string, required
28
+ - outputFile: string
29
+ */
30
+ var TranslateFileRequest = /** @class */ (function (_super) {
31
+ __extends(TranslateFileRequest, _super);
32
+ function TranslateFileRequest() {
33
+ return _super !== null && _super.apply(this, arguments) || this;
34
+ }
35
+ Object.defineProperty(TranslateFileRequest.prototype, "input", {
36
+ get: function () {
37
+ return this._input;
38
+ },
39
+ set: function (value) {
40
+ this._input = value;
41
+ },
42
+ enumerable: false,
43
+ configurable: true
44
+ });
45
+ Object.defineProperty(TranslateFileRequest.prototype, "outputFile", {
46
+ get: function () {
47
+ return this._outputFile;
48
+ },
49
+ set: function (value) {
50
+ this._outputFile = value;
51
+ },
52
+ enumerable: false,
53
+ configurable: true
54
+ });
55
+ Object.defineProperty(TranslateFileRequest.prototype, "outputDir", {
56
+ get: function () {
57
+ return this._outputDir;
58
+ },
59
+ set: function (value) {
60
+ this._outputDir = value;
61
+ },
62
+ enumerable: false,
63
+ configurable: true
64
+ });
65
+ return TranslateFileRequest;
66
+ }(TranslateRequest_1.default));
67
+ exports.default = TranslateFileRequest;
68
+ //# sourceMappingURL=TranslateFileRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranslateFileRequest.js","sourceRoot":"","sources":["../../../../src/translation/translate/request/TranslateFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,wEAAkD;AAElD;;;;;;;EAOE;AACF;IAAkD,wCAAgB;IAAlE;;IA4BA,CAAC;IAvBG,sBAAI,uCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAgC;YACtC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,sBAAI,4CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,2CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAKL,2BAAC;AAAD,CAAC,AA5BD,CAAkD,0BAAgB,GA4BjE"}
@@ -0,0 +1,19 @@
1
+ import { Format } from '../../common/Format';
2
+ export default class TranslateRequest {
3
+ private _sourceLanguageId;
4
+ private _targetLanguageId;
5
+ private _model;
6
+ private _inputFormat;
7
+ private _dictionaries;
8
+ get sourceLanguageId(): string | undefined;
9
+ set sourceLanguageId(value: string | undefined);
10
+ get targetLanguageId(): string | undefined;
11
+ set targetLanguageId(value: string | undefined);
12
+ get model(): string | undefined;
13
+ set model(value: string | undefined);
14
+ get inputFormat(): Format | undefined;
15
+ set inputFormat(value: Format | undefined);
16
+ get dictionaries(): string[] | undefined;
17
+ set dictionaries(value: string[] | undefined);
18
+ addDictionary(dictionary: string): void;
19
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var TranslateRequest = /** @class */ (function () {
4
+ function TranslateRequest() {
5
+ }
6
+ Object.defineProperty(TranslateRequest.prototype, "sourceLanguageId", {
7
+ get: function () {
8
+ return this._sourceLanguageId;
9
+ },
10
+ set: function (value) {
11
+ this._sourceLanguageId = value;
12
+ },
13
+ enumerable: false,
14
+ configurable: true
15
+ });
16
+ Object.defineProperty(TranslateRequest.prototype, "targetLanguageId", {
17
+ get: function () {
18
+ return this._targetLanguageId;
19
+ },
20
+ set: function (value) {
21
+ this._targetLanguageId = value;
22
+ },
23
+ enumerable: false,
24
+ configurable: true
25
+ });
26
+ Object.defineProperty(TranslateRequest.prototype, "model", {
27
+ get: function () {
28
+ return this._model;
29
+ },
30
+ set: function (value) {
31
+ this._model = value;
32
+ },
33
+ enumerable: false,
34
+ configurable: true
35
+ });
36
+ Object.defineProperty(TranslateRequest.prototype, "inputFormat", {
37
+ get: function () {
38
+ return this._inputFormat;
39
+ },
40
+ set: function (value) {
41
+ this._inputFormat = value;
42
+ },
43
+ enumerable: false,
44
+ configurable: true
45
+ });
46
+ Object.defineProperty(TranslateRequest.prototype, "dictionaries", {
47
+ get: function () {
48
+ return this._dictionaries;
49
+ },
50
+ set: function (value) {
51
+ this._dictionaries = value;
52
+ },
53
+ enumerable: false,
54
+ configurable: true
55
+ });
56
+ TranslateRequest.prototype.addDictionary = function (dictionary) {
57
+ if (this.dictionaries) {
58
+ this.dictionaries.push(dictionary);
59
+ }
60
+ else {
61
+ this.dictionaries = [dictionary];
62
+ }
63
+ };
64
+ return TranslateRequest;
65
+ }());
66
+ exports.default = TranslateRequest;
67
+ //# sourceMappingURL=TranslateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranslateRequest.js","sourceRoot":"","sources":["../../../../src/translation/translate/request/TranslateRequest.ts"],"names":[],"mappings":";;AAEA;IAAA;IAsDA,CAAC;IA/CG,sBAAI,8CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,8CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,mCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,sBAAI,yCAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,0CAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA2B;YACxC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,wCAAa,GAAb,UAAc,UAAkB;QAC5B,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACtC;aAAM;YACH,IAAI,CAAC,YAAY,GAAG,CAAC,UAAU,CAAC,CAAC;SACpC;IACL,CAAC;IACL,uBAAC;AAAD,CAAC,AAtDD,IAsDC"}
@@ -0,0 +1,7 @@
1
+ import TranslateRequest from './TranslateRequest';
2
+ export default class TranslateTextRequest extends TranslateRequest {
3
+ private _input;
4
+ get input(): string[];
5
+ set input(value: string[]);
6
+ addInput(newItem: string): string[];
7
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var TranslateRequest_1 = __importDefault(require("./TranslateRequest"));
22
+ var TranslateTextRequest = /** @class */ (function (_super) {
23
+ __extends(TranslateTextRequest, _super);
24
+ function TranslateTextRequest() {
25
+ var _this = _super !== null && _super.apply(this, arguments) || this;
26
+ _this._input = [];
27
+ return _this;
28
+ }
29
+ Object.defineProperty(TranslateTextRequest.prototype, "input", {
30
+ get: function () {
31
+ return this._input;
32
+ },
33
+ set: function (value) {
34
+ this._input = value;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ TranslateTextRequest.prototype.addInput = function (newItem) {
40
+ this._input.push(newItem);
41
+ return this._input;
42
+ };
43
+ return TranslateTextRequest;
44
+ }(TranslateRequest_1.default));
45
+ exports.default = TranslateTextRequest;
46
+ //# sourceMappingURL=TranslateTextRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranslateTextRequest.js","sourceRoot":"","sources":["../../../../src/translation/translate/request/TranslateTextRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,wEAAkD;AAElD;IAAkD,wCAAgB;IAAlE;QAAA,qEAeC;QAdW,YAAM,GAAa,EAAE,CAAC;;IAclC,CAAC;IAZG,sBAAW,uCAAK;aAAhB;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAiB,KAAe;YAC5B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMM,uCAAQ,GAAf,UAAgB,OAAe;QAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACL,2BAAC;AAAD,CAAC,AAfD,CAAkD,0BAAgB,GAejE"}
@@ -0,0 +1,3 @@
1
+ import TranslateBatchFileRequest from '../TranslateBatchFileRequest';
2
+ export default class CloudTranslateBatchFileRequest extends TranslateBatchFileRequest {
3
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var TranslateBatchFileRequest_1 = __importDefault(require("../TranslateBatchFileRequest"));
22
+ var CloudTranslateBatchFileRequest = /** @class */ (function (_super) {
23
+ __extends(CloudTranslateBatchFileRequest, _super);
24
+ function CloudTranslateBatchFileRequest() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ return CloudTranslateBatchFileRequest;
28
+ }(TranslateBatchFileRequest_1.default));
29
+ exports.default = CloudTranslateBatchFileRequest;
30
+ //# sourceMappingURL=CloudTranslateBatchFileRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudTranslateBatchFileRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/request/cloud/CloudTranslateBatchFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,2FAAqE;AAErE;IAA4D,kDAAyB;IAArF;;IAAuF,CAAC;IAAD,qCAAC;AAAD,CAAC,AAAxF,CAA4D,mCAAyB,GAAG"}
@@ -0,0 +1,3 @@
1
+ import TranslateFileRequest from '../TranslateFileRequest';
2
+ export default class CloudTranslateFileRequest extends TranslateFileRequest {
3
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var TranslateFileRequest_1 = __importDefault(require("../TranslateFileRequest"));
22
+ var CloudTranslateFileRequest = /** @class */ (function (_super) {
23
+ __extends(CloudTranslateFileRequest, _super);
24
+ function CloudTranslateFileRequest() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ return CloudTranslateFileRequest;
28
+ }(TranslateFileRequest_1.default));
29
+ exports.default = CloudTranslateFileRequest;
30
+ //# sourceMappingURL=CloudTranslateFileRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudTranslateFileRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/request/cloud/CloudTranslateFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iFAA2D;AAE3D;IAAuD,6CAAoB;IAA3E;;IAA6E,CAAC;IAAD,gCAAC;AAAD,CAAC,AAA9E,CAAuD,8BAAoB,GAAG"}
@@ -0,0 +1,3 @@
1
+ import TranslateTextRequest from '../TranslateTextRequest';
2
+ export default class CloudTranslateTextRequest extends TranslateTextRequest {
3
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var TranslateTextRequest_1 = __importDefault(require("../TranslateTextRequest"));
22
+ var CloudTranslateTextRequest = /** @class */ (function (_super) {
23
+ __extends(CloudTranslateTextRequest, _super);
24
+ function CloudTranslateTextRequest() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ return CloudTranslateTextRequest;
28
+ }(TranslateTextRequest_1.default));
29
+ exports.default = CloudTranslateTextRequest;
30
+ //# sourceMappingURL=CloudTranslateTextRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudTranslateTextRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/request/cloud/CloudTranslateTextRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iFAA2D;AAE3D;IAAuD,6CAAoB;IAA3E;;IAA6E,CAAC;IAAD,gCAAC;AAAD,CAAC,AAA9E,CAAuD,8BAAoB,GAAG"}
@@ -0,0 +1,16 @@
1
+ import TranslateBatchFileRequest from '../TranslateBatchFileRequest';
2
+ import { Format } from '../../../common/Format';
3
+ export default class EdgeTranslateBatchFileRequest extends TranslateBatchFileRequest {
4
+ private _languagePairId;
5
+ private _outputFormat;
6
+ private _title;
7
+ private _encoding;
8
+ get languagePairId(): string | undefined;
9
+ set languagePairId(value: string | undefined);
10
+ get outputFormat(): Format | undefined;
11
+ set outputFormat(value: Format | undefined);
12
+ get title(): string | undefined;
13
+ set title(value: string | undefined);
14
+ get encoding(): string | undefined;
15
+ set encoding(value: string | undefined);
16
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var TranslateBatchFileRequest_1 = __importDefault(require("../TranslateBatchFileRequest"));
22
+ var EdgeTranslateBatchFileRequest = /** @class */ (function (_super) {
23
+ __extends(EdgeTranslateBatchFileRequest, _super);
24
+ function EdgeTranslateBatchFileRequest() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ Object.defineProperty(EdgeTranslateBatchFileRequest.prototype, "languagePairId", {
28
+ get: function () {
29
+ return this._languagePairId;
30
+ },
31
+ set: function (value) {
32
+ this._languagePairId = value;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(EdgeTranslateBatchFileRequest.prototype, "outputFormat", {
38
+ get: function () {
39
+ return this._outputFormat;
40
+ },
41
+ set: function (value) {
42
+ this._outputFormat = value;
43
+ },
44
+ enumerable: false,
45
+ configurable: true
46
+ });
47
+ Object.defineProperty(EdgeTranslateBatchFileRequest.prototype, "title", {
48
+ get: function () {
49
+ return this._title;
50
+ },
51
+ set: function (value) {
52
+ this._title = value;
53
+ },
54
+ enumerable: false,
55
+ configurable: true
56
+ });
57
+ Object.defineProperty(EdgeTranslateBatchFileRequest.prototype, "encoding", {
58
+ get: function () {
59
+ return this._encoding;
60
+ },
61
+ set: function (value) {
62
+ this._encoding = value;
63
+ },
64
+ enumerable: false,
65
+ configurable: true
66
+ });
67
+ return EdgeTranslateBatchFileRequest;
68
+ }(TranslateBatchFileRequest_1.default));
69
+ exports.default = EdgeTranslateBatchFileRequest;
70
+ //# sourceMappingURL=EdgeTranslateBatchFileRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeTranslateBatchFileRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/request/edge/EdgeTranslateBatchFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,2FAAqE;AAGrE;IAA2D,iDAAyB;IAApF;;IAqCA,CAAC;IA/BG,sBAAI,yDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,uDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,gDAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,sBAAI,mDAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,oCAAC;AAAD,CAAC,AArCD,CAA2D,mCAAyB,GAqCnF"}
@@ -0,0 +1,16 @@
1
+ import TranslateFileRequest from '../TranslateFileRequest';
2
+ import { Format } from '../../../common/Format';
3
+ export default class EdgeTranslateFileRequest extends TranslateFileRequest {
4
+ private _languagePairId;
5
+ private _outputFormat;
6
+ private _title;
7
+ private _encoding;
8
+ get languagePairId(): string | undefined;
9
+ set languagePairId(value: string | undefined);
10
+ get outputFormat(): Format | undefined;
11
+ set outputFormat(value: Format | undefined);
12
+ get title(): string | undefined;
13
+ set title(value: string | undefined);
14
+ get encoding(): string | undefined;
15
+ set encoding(value: string | undefined);
16
+ }