@language-weaver/lw-sdk-js 1.1.0 → 2.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 (426) hide show
  1. package/lib/common/constants/ApprovalStatus.d.ts +1 -1
  2. package/lib/common/constants/ApprovalStatus.js.map +1 -1
  3. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.d.ts +0 -0
  4. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.js +0 -0
  5. package/lib/common/constants/CloudFeedbackSortCriteria.js.map +1 -0
  6. package/lib/common/constants/Format.d.ts +1 -1
  7. package/lib/common/constants/Format.js +4 -1
  8. package/lib/common/constants/Format.js.map +1 -1
  9. package/lib/common/constants/FormatToMimeType.js +2 -0
  10. package/lib/common/constants/FormatToMimeType.js.map +1 -1
  11. package/lib/common/constants/PdfConverter.d.ts +15 -0
  12. package/lib/common/constants/PdfConverter.js +22 -0
  13. package/lib/common/constants/PdfConverter.js.map +1 -0
  14. package/lib/common/constants/QualityEstimation.d.ts +6 -0
  15. package/lib/common/constants/QualityEstimation.js +17 -0
  16. package/lib/common/constants/QualityEstimation.js.map +1 -0
  17. package/lib/common/constants/Statuses.d.ts +6 -0
  18. package/lib/common/constants/Statuses.js +7 -1
  19. package/lib/common/constants/Statuses.js.map +1 -1
  20. package/lib/common/constants/TranslationConstants.d.ts +20 -3
  21. package/lib/common/constants/TranslationConstants.js +25 -5
  22. package/lib/common/constants/TranslationConstants.js.map +1 -1
  23. package/lib/common/exceptions/ContentInsightsException.d.ts +4 -0
  24. package/lib/common/exceptions/ContentInsightsException.js +17 -0
  25. package/lib/common/exceptions/ContentInsightsException.js.map +1 -0
  26. package/lib/common/external/communication/RestClient.d.ts +1 -1
  27. package/lib/common/external/communication/RestClient.js +14 -16
  28. package/lib/common/external/communication/RestClient.js.map +1 -1
  29. package/lib/common/utils/HttpUtils.d.ts +1 -0
  30. package/lib/common/utils/HttpUtils.js +13 -0
  31. package/lib/common/utils/HttpUtils.js.map +1 -1
  32. package/lib/common/utils/Utils.d.ts +7 -0
  33. package/lib/common/utils/Utils.js +127 -0
  34. package/lib/common/utils/Utils.js.map +1 -1
  35. package/lib/index.d.ts +62 -19
  36. package/lib/index.js +104 -20
  37. package/lib/index.js.map +1 -1
  38. package/lib/translation/common/LanguageWeaverClient.d.ts +19 -2
  39. package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +45 -4
  40. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js +239 -100
  41. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -1
  42. package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +43 -6
  43. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js +287 -150
  44. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -1
  45. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +1 -1
  46. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +1 -1
  47. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -1
  48. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.d.ts +23 -0
  49. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js +69 -0
  50. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js.map +1 -0
  51. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.d.ts +10 -0
  52. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js +39 -0
  53. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js.map +1 -0
  54. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.d.ts +12 -0
  55. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js +32 -0
  56. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js.map +1 -0
  57. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.d.ts +16 -0
  58. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js +42 -0
  59. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js.map +1 -0
  60. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.d.ts +12 -0
  61. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js +39 -0
  62. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js.map +1 -0
  63. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.d.ts +15 -0
  64. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js +57 -0
  65. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js.map +1 -0
  66. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.d.ts +13 -0
  67. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js +46 -0
  68. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js.map +1 -0
  69. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.d.ts +3 -0
  70. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js +30 -0
  71. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js.map +1 -0
  72. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.d.ts +8 -0
  73. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js +29 -0
  74. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js.map +1 -0
  75. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.d.ts +16 -0
  76. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js +49 -0
  77. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js.map +1 -0
  78. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.d.ts +8 -0
  79. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js +29 -0
  80. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js.map +1 -0
  81. package/lib/translation/content-insights/cloud/result/CloudSegment.d.ts +6 -0
  82. package/lib/translation/content-insights/cloud/result/CloudSegment.js +40 -0
  83. package/lib/translation/content-insights/cloud/result/CloudSegment.js.map +1 -0
  84. package/lib/translation/content-insights/cloud/result/CloudSummarization.d.ts +6 -0
  85. package/lib/translation/content-insights/cloud/result/CloudSummarization.js +19 -0
  86. package/lib/translation/content-insights/cloud/result/CloudSummarization.js.map +1 -0
  87. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.d.ts +20 -0
  88. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js +248 -0
  89. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js.map +1 -0
  90. package/lib/translation/content-insights/common/request/ContentInsightsRequest.d.ts +7 -0
  91. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js +23 -0
  92. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js.map +1 -0
  93. package/lib/translation/content-insights/common/result/ContentInsightsResult.d.ts +6 -0
  94. package/lib/translation/content-insights/common/result/ContentInsightsResult.js +19 -0
  95. package/lib/translation/content-insights/common/result/ContentInsightsResult.js.map +1 -0
  96. package/lib/translation/content-insights/common/result/Segment.d.ts +8 -0
  97. package/lib/translation/content-insights/common/result/Segment.js +29 -0
  98. package/lib/translation/content-insights/common/result/Segment.js.map +1 -0
  99. package/lib/translation/content-insights/common/result/Summarization.d.ts +8 -0
  100. package/lib/translation/content-insights/common/result/Summarization.js +25 -0
  101. package/lib/translation/content-insights/common/result/Summarization.js.map +1 -0
  102. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.d.ts +4 -0
  103. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js +145 -0
  104. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js.map +1 -0
  105. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.d.ts +13 -0
  106. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js +53 -0
  107. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js.map +1 -0
  108. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.d.ts +12 -0
  109. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js +46 -0
  110. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js.map +1 -0
  111. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.d.ts +5 -0
  112. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js +19 -0
  113. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js.map +1 -0
  114. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.d.ts +9 -0
  115. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js +29 -0
  116. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js.map +1 -0
  117. package/lib/translation/content-insights/edge/result/EdgeSegment.d.ts +3 -0
  118. package/lib/translation/content-insights/edge/result/EdgeSegment.js +30 -0
  119. package/lib/translation/content-insights/edge/result/EdgeSegment.js.map +1 -0
  120. package/lib/translation/content-insights/edge/result/EdgeSummarization.d.ts +6 -0
  121. package/lib/translation/content-insights/edge/result/EdgeSummarization.js +19 -0
  122. package/lib/translation/content-insights/edge/result/EdgeSummarization.js.map +1 -0
  123. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.d.ts +14 -0
  124. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js +96 -0
  125. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js.map +1 -0
  126. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.d.ts +14 -0
  127. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js +72 -0
  128. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js.map +1 -0
  129. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.d.ts +36 -0
  130. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js +136 -0
  131. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js.map +1 -0
  132. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.d.ts +3 -3
  133. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.js +0 -0
  134. package/lib/translation/dictionaries/cloud/result/CloudDictionariesResult.js.map +1 -0
  135. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.d.ts → dictionaries/cloud/result/CloudDictionary.d.ts} +1 -1
  136. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.js → dictionaries/cloud/result/CloudDictionary.js} +15 -15
  137. package/lib/translation/dictionaries/cloud/result/CloudDictionary.js.map +1 -0
  138. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.d.ts +15 -0
  139. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js +51 -0
  140. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js.map +1 -0
  141. package/lib/translation/dictionaries/common/result/DictionariesResult.d.ts +7 -0
  142. package/lib/translation/{translate → dictionaries}/common/result/DictionariesResult.js +0 -0
  143. package/lib/translation/dictionaries/common/result/DictionariesResult.js.map +1 -0
  144. package/lib/translation/{translate/common/api/DictionaryResponse.d.ts → dictionaries/common/result/Dictionary.d.ts} +1 -1
  145. package/lib/translation/{translate/common/api/DictionaryResponse.js → dictionaries/common/result/Dictionary.js} +8 -8
  146. package/lib/translation/dictionaries/common/result/Dictionary.js.map +1 -0
  147. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.d.ts +22 -0
  148. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js +84 -0
  149. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js.map +1 -0
  150. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.d.ts +15 -0
  151. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js +58 -0
  152. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js.map +1 -0
  153. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.d.ts +3 -3
  154. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.js +0 -0
  155. package/lib/translation/dictionaries/edge/result/EdgeDictionariesResult.js.map +1 -0
  156. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.d.ts → dictionaries/edge/result/EdgeDictionary.d.ts} +1 -1
  157. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.js → dictionaries/edge/result/EdgeDictionary.js} +8 -8
  158. package/lib/translation/dictionaries/edge/result/EdgeDictionary.js.map +1 -0
  159. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.d.ts +12 -0
  160. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js +51 -0
  161. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js.map +1 -0
  162. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.d.ts +4 -3
  163. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +28 -23
  164. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -1
  165. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.d.ts +7 -0
  166. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.js +24 -0
  167. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.js.map +1 -0
  168. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.d.ts +9 -0
  169. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.js +31 -0
  170. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.js.map +1 -0
  171. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.d.ts +1 -1
  172. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.js.map +1 -1
  173. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js +6 -1
  174. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js.map +1 -1
  175. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js +4 -4
  176. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js.map +1 -1
  177. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.d.ts +3 -0
  178. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js +10 -0
  179. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js.map +1 -1
  180. package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.d.ts +21 -0
  181. package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.js +104 -0
  182. package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.js.map +1 -0
  183. package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.d.ts +3 -0
  184. package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.js +30 -0
  185. package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.js.map +1 -0
  186. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +1 -1
  187. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.d.ts +3 -0
  188. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.js +30 -0
  189. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.js.map +1 -0
  190. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.d.ts +15 -0
  191. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.js +77 -0
  192. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.js.map +1 -0
  193. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.d.ts +1 -1
  194. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.js +1 -1
  195. package/lib/translation/feedback/cloud/result/CloudAuditData.js.map +1 -0
  196. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +7 -3
  197. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js +10 -0
  198. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js.map +1 -1
  199. package/lib/translation/feedback/cloud/service/CloudFeedbackService.d.ts +21 -0
  200. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +111 -1
  201. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -1
  202. package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.d.ts +9 -0
  203. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.js +20 -1
  204. package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.js.map +1 -0
  205. package/lib/translation/feedback/common/request/CreateFeedbackRequest.d.ts +29 -0
  206. package/lib/translation/feedback/common/request/CreateFeedbackRequest.js +123 -0
  207. package/lib/translation/feedback/common/request/CreateFeedbackRequest.js.map +1 -0
  208. package/lib/translation/feedback/common/request/DeleteFeedbackRequest.d.ts +5 -0
  209. package/lib/translation/feedback/common/request/DeleteFeedbackRequest.js +19 -0
  210. package/lib/translation/feedback/common/request/DeleteFeedbackRequest.js.map +1 -0
  211. package/lib/translation/feedback/common/request/FilterFeedbackRequest.d.ts +4 -4
  212. package/lib/translation/feedback/common/request/FilterFeedbackRequest.js.map +1 -1
  213. package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.d.ts +9 -0
  214. package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.js +29 -0
  215. package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.js.map +1 -0
  216. package/lib/translation/feedback/common/request/UpdateFeedbackRequest.d.ts +19 -0
  217. package/lib/translation/feedback/common/request/UpdateFeedbackRequest.js +80 -0
  218. package/lib/translation/feedback/common/request/UpdateFeedbackRequest.js.map +1 -0
  219. package/lib/translation/feedback/common/{model → result}/AuditData.d.ts +0 -0
  220. package/lib/translation/feedback/common/{model → result}/AuditData.js +0 -0
  221. package/lib/translation/feedback/common/result/AuditData.js.map +1 -0
  222. package/lib/translation/feedback/common/result/FeedbackResult.d.ts +3 -1
  223. package/lib/translation/feedback/common/result/FeedbackResult.js +8 -0
  224. package/lib/translation/feedback/common/result/FeedbackResult.js.map +1 -1
  225. package/lib/translation/feedback/common/validator/FeedbackValidator.d.ts +10 -0
  226. package/lib/translation/feedback/common/validator/FeedbackValidator.js +38 -0
  227. package/lib/translation/feedback/common/validator/FeedbackValidator.js.map +1 -0
  228. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +3 -2
  229. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +43 -15
  230. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -1
  231. package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.d.ts +12 -0
  232. package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.js +63 -0
  233. package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.js.map +1 -0
  234. package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.d.ts +3 -0
  235. package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.js +30 -0
  236. package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.js.map +1 -0
  237. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.d.ts +3 -0
  238. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.js +30 -0
  239. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.js.map +1 -0
  240. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.d.ts +9 -0
  241. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.js +50 -0
  242. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.js.map +1 -0
  243. package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +22 -0
  244. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +100 -3
  245. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -1
  246. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.d.ts +3 -0
  247. package/lib/translation/feedback/edge/{validators → validator}/EdgeFeedbackValidator.js +1 -1
  248. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.js.map +1 -0
  249. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.d.ts +21 -0
  250. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js +81 -0
  251. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js.map +1 -0
  252. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.d.ts +13 -0
  253. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js +47 -0
  254. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js.map +1 -0
  255. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.d.ts +2 -0
  256. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.js +11 -0
  257. package/lib/translation/language-pairs/cloud/result/CloudLanguagePair.js.map +1 -0
  258. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.d.ts +1 -1
  259. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.js +0 -0
  260. package/lib/translation/language-pairs/cloud/result/CloudLanguagePairsResult.js.map +1 -0
  261. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.d.ts +15 -0
  262. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js +45 -0
  263. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js.map +1 -0
  264. package/lib/translation/language-pairs/common/result/LanguagePair.d.ts +16 -0
  265. package/lib/translation/{translate/common/api → language-pairs/common/result}/LanguagePair.js +11 -0
  266. package/lib/translation/language-pairs/common/result/LanguagePair.js.map +1 -0
  267. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.d.ts +1 -1
  268. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.js +0 -0
  269. package/lib/translation/language-pairs/common/result/LanguagePairsResult.js.map +1 -0
  270. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.d.ts +17 -0
  271. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js +89 -0
  272. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js.map +1 -0
  273. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.d.ts +10 -0
  274. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js +37 -0
  275. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js.map +1 -0
  276. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.d.ts +31 -0
  277. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js +116 -0
  278. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js.map +1 -0
  279. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.d.ts +15 -0
  280. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/EdgeLanguagePair.js +20 -0
  281. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.js.map +1 -0
  282. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.d.ts +1 -1
  283. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.js +0 -0
  284. package/lib/translation/language-pairs/edge/result/EdgeLanguagePairsResult.js.map +1 -0
  285. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.d.ts +0 -0
  286. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.js +0 -0
  287. package/lib/translation/language-pairs/edge/result/MemberPair.js.map +1 -0
  288. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.d.ts +14 -0
  289. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js +80 -0
  290. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js.map +1 -0
  291. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.d.ts +13 -0
  292. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js +68 -0
  293. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js.map +1 -0
  294. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.d.ts +6 -0
  295. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js +19 -0
  296. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js.map +1 -0
  297. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.d.ts +3 -0
  298. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js +30 -0
  299. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js.map +1 -0
  300. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.d.ts +10 -0
  301. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js +57 -0
  302. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js.map +1 -0
  303. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.d.ts +6 -0
  304. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js +19 -0
  305. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js.map +1 -0
  306. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.d.ts +19 -0
  307. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js +72 -0
  308. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js.map +1 -0
  309. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.d.ts +3 -0
  310. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js +30 -0
  311. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js.map +1 -0
  312. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.d.ts +11 -0
  313. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js +39 -0
  314. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js.map +1 -0
  315. package/lib/translation/{translate/common/api/LanguagePair.d.ts → linguistic-options/common/request/GetLinguisticOptionsRequest.d.ts} +1 -4
  316. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js +39 -0
  317. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js.map +1 -0
  318. package/lib/translation/linguistic-options/common/result/LinguisticOption.d.ts +11 -0
  319. package/lib/translation/linguistic-options/common/result/LinguisticOption.js +39 -0
  320. package/lib/translation/linguistic-options/common/result/LinguisticOption.js.map +1 -0
  321. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.d.ts +6 -0
  322. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js +19 -0
  323. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js.map +1 -0
  324. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.d.ts +4 -0
  325. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js +25 -0
  326. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js.map +1 -0
  327. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.d.ts +7 -0
  328. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js +46 -0
  329. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js.map +1 -0
  330. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.d.ts +6 -0
  331. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js +19 -0
  332. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js.map +1 -0
  333. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.d.ts +9 -0
  334. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js +50 -0
  335. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js.map +1 -0
  336. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.d.ts +4 -0
  337. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js +37 -0
  338. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js.map +1 -0
  339. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.d.ts +6 -0
  340. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js +19 -0
  341. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js.map +1 -0
  342. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.d.ts +18 -0
  343. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js +101 -0
  344. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js.map +1 -0
  345. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.d.ts +3 -0
  346. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js +30 -0
  347. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js.map +1 -0
  348. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.d.ts +3 -0
  349. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js +30 -0
  350. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js.map +1 -0
  351. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.d.ts +3 -0
  352. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js +21 -0
  353. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -1
  354. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.d.ts +26 -0
  355. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js +80 -0
  356. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js.map +1 -0
  357. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.d.ts +0 -3
  358. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js +0 -10
  359. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js.map +1 -1
  360. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.d.ts +3 -3
  361. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js +3 -3
  362. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js.map +1 -1
  363. package/lib/translation/translate/common/request/RetrieveFileRequest.d.ts +11 -0
  364. package/lib/translation/translate/common/request/RetrieveFileRequest.js +39 -0
  365. package/lib/translation/translate/common/request/RetrieveFileRequest.js.map +1 -0
  366. package/lib/translation/translate/common/request/TranslateBatchFileRequest.d.ts +7 -0
  367. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js +20 -7
  368. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -1
  369. package/lib/translation/translate/common/request/TranslateFileRequest.d.ts +4 -0
  370. package/lib/translation/translate/common/request/TranslateFileRequest.js +10 -0
  371. package/lib/translation/translate/common/request/TranslateFileRequest.js.map +1 -1
  372. package/lib/translation/translate/common/request/TranslateRequest.d.ts +3 -0
  373. package/lib/translation/translate/common/request/TranslateRequest.js +10 -0
  374. package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -1
  375. package/lib/translation/translate/common/request/TranslateTextRequest.d.ts +3 -1
  376. package/lib/translation/translate/common/request/TranslateTextRequest.js +9 -1
  377. package/lib/translation/translate/common/request/TranslateTextRequest.js.map +1 -1
  378. package/lib/translation/translate/common/result/TranslationFileResult.d.ts +6 -0
  379. package/lib/translation/translate/common/result/TranslationFileResult.js +20 -0
  380. package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -1
  381. package/lib/translation/translate/common/utils/TranslateFileUtil.d.ts +3 -1
  382. package/lib/translation/translate/common/utils/TranslateFileUtil.js +26 -53
  383. package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -1
  384. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.d.ts +7 -0
  385. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js +40 -0
  386. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js.map +1 -0
  387. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.d.ts +2 -0
  388. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js +16 -0
  389. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -1
  390. package/lib/translation/translate/edge/request/EdgeTranslateRequest.d.ts +29 -0
  391. package/lib/translation/translate/edge/request/EdgeTranslateRequest.js +109 -0
  392. package/lib/translation/translate/edge/request/EdgeTranslateRequest.js.map +1 -0
  393. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.d.ts +2 -0
  394. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js +16 -0
  395. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -1
  396. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.d.ts +0 -3
  397. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js +0 -10
  398. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js.map +1 -1
  399. package/lib/version.d.ts +1 -1
  400. package/lib/version.js +1 -1
  401. package/package.json +2 -2
  402. package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +0 -1
  403. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +0 -1
  404. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.d.ts +0 -5
  405. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +0 -1
  406. package/lib/translation/feedback/common/model/AuditData.js.map +0 -1
  407. package/lib/translation/feedback/common/validators/FeedbackValidator.d.ts +0 -2
  408. package/lib/translation/feedback/common/validators/FeedbackValidator.js +0 -9
  409. package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +0 -1
  410. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +0 -3
  411. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +0 -1
  412. package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +0 -1
  413. package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +0 -1
  414. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +0 -1
  415. package/lib/translation/translate/cloud/result/CloudLanguagePairsResult.js.map +0 -1
  416. package/lib/translation/translate/common/api/DictionaryResponse.js.map +0 -1
  417. package/lib/translation/translate/common/api/LanguagePair.js.map +0 -1
  418. package/lib/translation/translate/common/result/DictionariesResult.d.ts +0 -7
  419. package/lib/translation/translate/common/result/DictionariesResult.js.map +0 -1
  420. package/lib/translation/translate/common/result/LanguagePairsResult.js.map +0 -1
  421. package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +0 -1
  422. package/lib/translation/translate/edge/api/EdgeLanguagePair.d.ts +0 -9
  423. package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +0 -1
  424. package/lib/translation/translate/edge/api/MemberPair.js.map +0 -1
  425. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +0 -1
  426. package/lib/translation/translate/edge/result/EdgeLanguagePairsResult.js.map +0 -1
@@ -39,10 +39,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
39
39
  return (mod && mod.__esModule) ? mod : { "default": mod };
40
40
  };
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.getInputFilesFromBatchFileRequest = exports.getFileNameFromHeaders = exports.getOutputExtension = exports.validateOutputFileExtension = exports.validateInputDataForFileTranslation = exports.validateInputDataForBatchFileTranslation = void 0;
42
+ exports.getInputFilesFromBatchFileRequest = exports.getFileNameFromHeaders = exports.getOutputExtension = exports.validateOutputFileExtension = exports.validateInputDataForFileTranslation = exports.validateInputDataForBatchFileTranslation = exports.validateInputDataForRetrieveFileTranslation = void 0;
43
43
  var uuid_1 = require("uuid");
44
+ var TranslateFileRequest_1 = __importDefault(require("../request/TranslateFileRequest"));
44
45
  var Utils_1 = __importDefault(require("../../../../common/utils/Utils"));
45
46
  var TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
47
+ var validateInputDataForRetrieveFileTranslation = function (request) {
48
+ if (!request.translationId) {
49
+ return TranslationConstants_1.MISSING_REQUIRED_REQUEST_ID_ERROR;
50
+ }
51
+ var outputDirError = validateOutputDirectory(request.outputDir);
52
+ if (outputDirError) {
53
+ return outputDirError;
54
+ }
55
+ };
56
+ exports.validateInputDataForRetrieveFileTranslation = validateInputDataForRetrieveFileTranslation;
46
57
  var validateInputDataForBatchFileTranslation = function (translateBatchFileRequest) { return __awaiter(void 0, void 0, void 0, function () {
47
58
  return __generator(this, function (_a) {
48
59
  switch (_a.label) {
@@ -70,13 +81,10 @@ var validateInputDataForFileTranslation = function (translateFileRequest) {
70
81
  }
71
82
  };
72
83
  exports.validateInputDataForFileTranslation = validateInputDataForFileTranslation;
73
- var isArrayOfFiles = function (array) {
74
- return Array.isArray(array) && array.length > 0 && array.every(function (entry) { return entry instanceof File; });
75
- };
76
84
  var validateInputFilesInBrowser = function (input) {
77
- if (input && typeof input !== 'string' && isArrayOfFiles(input)) {
85
+ if (input && typeof input !== 'string' && Utils_1.default.isArrayOfFiles(input)) {
78
86
  var largeFile = input.find(function (file) { return Utils_1.default.getFileSize(file) > TranslationConstants_1.MAX_FILE_SIZE_LIMIT; });
79
- return largeFile ? getFileSizeExceededError(largeFile) : null;
87
+ return largeFile ? Utils_1.default.getFileSizeExceededError(largeFile) : null;
80
88
  }
81
89
  else {
82
90
  return TranslationConstants_1.REQUIRED_INPUT_FILES_OF_TYPE_OBJECT_ERROR;
@@ -88,7 +96,7 @@ var validateInputAndOutputDirectoriesInNode = function (translateBatchFileReques
88
96
  switch (_a.label) {
89
97
  case 0:
90
98
  if (!(typeof translateBatchFileRequest.input === 'string')) return [3 /*break*/, 2];
91
- return [4 /*yield*/, validateInputDirectoryForNode(translateBatchFileRequest.input)];
99
+ return [4 /*yield*/, Utils_1.default.validateInputDirectoryForNode(translateBatchFileRequest.input)];
92
100
  case 1:
93
101
  error = _a.sent();
94
102
  if (error) {
@@ -105,40 +113,10 @@ var validateInputAndOutputDirectoriesInNode = function (translateBatchFileReques
105
113
  }
106
114
  });
107
115
  }); };
108
- var validateInputDirectoryForNode = function (input) { return __awaiter(void 0, void 0, void 0, function () {
109
- var inputDirValidationError, fs, path, absolutePath, files, largeFile, e_1;
110
- return __generator(this, function (_a) {
111
- switch (_a.label) {
112
- case 0:
113
- inputDirValidationError = Utils_1.default.validateDirectoryPath(input);
114
- if (inputDirValidationError) {
115
- return [2 /*return*/, inputDirValidationError];
116
- }
117
- fs = require('fs');
118
- path = require('path');
119
- absolutePath = Utils_1.default.getAbsolutePath(input);
120
- _a.label = 1;
121
- case 1:
122
- _a.trys.push([1, 3, , 4]);
123
- return [4 /*yield*/, fs.promises.readdir(absolutePath)];
124
- case 2:
125
- files = _a.sent();
126
- if (!files || !files.length) {
127
- return [2 /*return*/, TranslationConstants_1.MISSING_REQUIRED_INPUT_FILES_ERROR];
128
- }
129
- largeFile = files.find(function (file) { return Utils_1.default.getFileSize(path.join(absolutePath, file)) > TranslationConstants_1.MAX_FILE_SIZE_LIMIT; });
130
- return [2 /*return*/, largeFile ? getFileSizeExceededError(largeFile) : null];
131
- case 3:
132
- e_1 = _a.sent();
133
- return [2 /*return*/, TranslationConstants_1.READ_FILES_FROM_DIRECTORY_FAILED_ERROR];
134
- case 4: return [2 /*return*/];
135
- }
136
- });
137
- }); };
138
116
  var validateInputFileInBrowser = function (inputFile) {
139
117
  if (inputFile instanceof File) {
140
118
  var fileSize = Utils_1.default.getFileSize(inputFile);
141
- return fileSize > TranslationConstants_1.MAX_FILE_SIZE_LIMIT ? getFileSizeExceededError(inputFile) : null;
119
+ return fileSize > TranslationConstants_1.MAX_FILE_SIZE_LIMIT ? Utils_1.default.getFileSizeExceededError(inputFile) : null;
142
120
  }
143
121
  else {
144
122
  return TranslationConstants_1.REQUIRED_INPUT_FILE_OF_TYPE_OBJECT_ERROR;
@@ -170,12 +148,12 @@ var validateInputFileInNode = function (inputFile) {
170
148
  }
171
149
  var fileSize = Utils_1.default.getFileSize(inputFile);
172
150
  if (fileSize > TranslationConstants_1.MAX_FILE_SIZE_LIMIT) {
173
- return getFileSizeExceededError(inputFile);
151
+ return Utils_1.default.getFileSizeExceededError(inputFile);
174
152
  }
175
153
  };
176
- var validateOutputDirectory = function (outputBatch) {
177
- if (outputBatch) {
178
- return Utils_1.default.validateDirectoryPath(outputBatch);
154
+ var validateOutputDirectory = function (outputDir) {
155
+ if (outputDir) {
156
+ return Utils_1.default.validateDirectoryPath(outputDir);
179
157
  }
180
158
  else {
181
159
  return TranslationConstants_1.MISSING_REQUIRED_OUTPUT_DIRECTORY_ERROR;
@@ -213,15 +191,18 @@ var getFileNameFromHeaders = function (response, request) {
213
191
  var contentDispositionHeader = response.headers[contentDispositionKey];
214
192
  return contentDispositionHeader.split('filename=')[1].split(';')[0].replace(/[",']/g, '');
215
193
  }
216
- else {
194
+ else if (request instanceof TranslateFileRequest_1.default) {
217
195
  var fileBasename = Utils_1.default.getFileBasename(request.input || '');
218
196
  var fileExtension = Utils_1.default.getExtension(request.input || '');
219
197
  return fileBasename + '-' + (0, uuid_1.v4)() + '.' + (0, exports.getOutputExtension)(fileExtension);
220
198
  }
199
+ else {
200
+ return TranslationConstants_1.DEFAULT_FILENAME;
201
+ }
221
202
  };
222
203
  exports.getFileNameFromHeaders = getFileNameFromHeaders;
223
204
  var getInputFilesFromBatchFileRequest = function (request) { return __awaiter(void 0, void 0, void 0, function () {
224
- var files, fs;
205
+ var files;
225
206
  return __generator(this, function (_a) {
226
207
  switch (_a.label) {
227
208
  case 0:
@@ -230,23 +211,15 @@ var getInputFilesFromBatchFileRequest = function (request) { return __awaiter(vo
230
211
  return [3 /*break*/, 3];
231
212
  case 1:
232
213
  if (!(typeof request.input === 'string')) return [3 /*break*/, 3];
233
- fs = require('fs');
234
- return [4 /*yield*/, fs.promises.readdir(request.input)];
214
+ return [4 /*yield*/, Utils_1.default.getInputFilesFromDirectory(request.input)];
235
215
  case 2:
236
216
  files = _a.sent();
237
- files = files.map(function (filename) {
238
- // @ts-ignore input is string here
239
- return Utils_1.default.getFullPath(request.input, filename);
240
- });
241
217
  _a.label = 3;
242
218
  case 3: return [2 /*return*/, files];
243
219
  }
244
220
  });
245
221
  }); };
246
222
  exports.getInputFilesFromBatchFileRequest = getInputFilesFromBatchFileRequest;
247
- var getFileSizeExceededError = function (inputFile) {
248
- return "Input file ".concat(Utils_1.default.getFilename(inputFile), " exceeds maximum permitted size of ").concat(TranslationConstants_1.MAX_FILE_SIZE_LIMIT, " bytes");
249
- };
250
223
  /*
251
224
  Some types of files have a different output file extension.
252
225
  Mapping of input files with special extensions:
@@ -1 +1 @@
1
- {"version":3,"file":"TranslateFileUtil.js","sourceRoot":"","sources":["../../../../../src/translation/translate/common/utils/TranslateFileUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAAoC;AAGpC,yEAAmD;AACnD,0FAW2D;AAGpD,IAAM,wCAAwC,GAAG,UACpD,yBAAoD;;;;gBAEpD,IAAI,CAAC,yBAAyB,CAAC,KAAK,EAAE;oBAClC,sBAAO,eAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,yDAAkC,CAAC,CAAC,CAAC,6DAAsC,EAAC;iBAC1G;qBAEG,eAAK,CAAC,SAAS,EAAE,EAAjB,wBAAiB;gBACjB,sBAAO,2BAA2B,CAAC,yBAAyB,CAAC,KAAK,CAAC,EAAC;oBAE7D,qBAAM,uCAAuC,CAAC,yBAAyB,CAAC,EAAA;oBAA/E,sBAAO,SAAwE,EAAC;;;KAEvF,CAAC;AAZW,QAAA,wCAAwC,4CAYnD;AAEK,IAAM,mCAAmC,GAAG,UAAC,oBAA0C;IAC1F,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE;QAC7B,OAAO,wDAAiC,CAAC;KAC5C;IAED,IAAI,eAAK,CAAC,SAAS,EAAE,EAAE;QACnB,OAAO,0BAA0B,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;KACjE;SAAM;QACH,OAAO,uCAAuC,CAAC,oBAAoB,CAAC,CA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IAAM,aAAa,GAA2B;IAC1C,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,EAAE;CACV,CAAC"}
1
+ {"version":3,"file":"TranslateFileUtil.js","sourceRoot":"","sources":["../../../../../src/translation/translate/common/utils/TranslateFileUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAAoC;AAEpC,yFAAmE;AACnE,yEAAmD;AACnD,0FAY2D;AAKpD,IAAM,2CAA2C,GAAG,UAAC,OAA4B;IACpF,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;QACxB,OAAO,wDAAiC,CAAC;KAC5C;IAED,IAAM,cAAc,GAAG,uBAAuB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAElE,IAAI,cAAc,EAAE;QAChB,OAAO,cAAc,CAAC;KACzB;AACL,CAAC,CAAC;AAVW,QAAA,2CAA2C,+CAUtD;AAEK,IAAM,wCAAwC,GAAG,UACpD,yBAAoD;;;;gBAEpD,IAAI,CAAC,yBAAyB,CAAC,KAAK,EAAE;oBAClC,sBAAO,eAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,yDAAkC,CAAC,CAAC,CAAC,6DAAsC,EAAC;iBAC1G;qBAEG,eAAK,CAAC,SAAS,EAAE,EAAjB,wBAAiB;gBACjB,sBAAO,2BAA2B,CAAC,yBAAyB,CAAC,KAAK,CAAC,EAAC;oBAE7D,qBAAM,uCAAuC,CAAC,yBAAyB,CAAC,EAAA;oBAA/E,sBAAO,SAAwE,EAAC;;;KAEvF,CAAC;AAZW,QAAA,wCAAwC,4CAYnD;AAEK,IAAM,mCAAmC,GAAG,UAAC,oBAA0C;IAC1F,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE;QAC7B,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ChB,CAAC;AAZW,QAAA,iCAAiC,qCAY5C;AAEF;;;;;GAKG;AACH,IAAM,aAAa,GAA2B;IAC1C,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,EAAE;CACV,CAAC"}
@@ -0,0 +1,7 @@
1
+ import RetrieveFileRequest from '../../common/request/RetrieveFileRequest';
2
+ import { Format } from '../../../../common/constants/Format';
3
+ export default class EdgeRetrieveFileRequest extends RetrieveFileRequest {
4
+ private _outputFormat;
5
+ get outputFormat(): Format | undefined;
6
+ set outputFormat(value: Format | undefined);
7
+ }
@@ -0,0 +1,40 @@
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 RetrieveFileRequest_1 = __importDefault(require("../../common/request/RetrieveFileRequest"));
22
+ var EdgeRetrieveFileRequest = /** @class */ (function (_super) {
23
+ __extends(EdgeRetrieveFileRequest, _super);
24
+ function EdgeRetrieveFileRequest() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ Object.defineProperty(EdgeRetrieveFileRequest.prototype, "outputFormat", {
28
+ get: function () {
29
+ return this._outputFormat;
30
+ },
31
+ set: function (value) {
32
+ this._outputFormat = value;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ return EdgeRetrieveFileRequest;
38
+ }(RetrieveFileRequest_1.default));
39
+ exports.default = EdgeRetrieveFileRequest;
40
+ //# sourceMappingURL=EdgeRetrieveFileRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeRetrieveFileRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/edge/request/EdgeRetrieveFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iGAA2E;AAG3E;IAAqD,2CAAmB;IAAxE;;IAUA,CAAC;IAPG,sBAAI,iDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKL,8BAAC;AAAD,CAAC,AAVD,CAAqD,6BAAmB,GAUvE"}
@@ -1,5 +1,6 @@
1
1
  import TranslateFileRequest from '../../common/request/TranslateFileRequest';
2
2
  import { Format } from '../../../../common/constants/Format';
3
+ import EdgeTranslateRequest from './EdgeTranslateRequest';
3
4
  export default class EdgeTranslateFileRequest extends TranslateFileRequest {
4
5
  private _languagePairId;
5
6
  private _outputFormat;
@@ -13,4 +14,5 @@ export default class EdgeTranslateFileRequest extends TranslateFileRequest {
13
14
  set title(value: string | undefined);
14
15
  get encoding(): string | undefined;
15
16
  set encoding(value: string | undefined);
17
+ toEdgeTranslateRequest(): EdgeTranslateRequest;
16
18
  }
@@ -19,6 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  var TranslateFileRequest_1 = __importDefault(require("../../common/request/TranslateFileRequest"));
22
+ var EdgeTranslateRequest_1 = __importDefault(require("./EdgeTranslateRequest"));
22
23
  var EdgeTranslateFileRequest = /** @class */ (function (_super) {
23
24
  __extends(EdgeTranslateFileRequest, _super);
24
25
  function EdgeTranslateFileRequest() {
@@ -64,6 +65,21 @@ var EdgeTranslateFileRequest = /** @class */ (function (_super) {
64
65
  enumerable: false,
65
66
  configurable: true
66
67
  });
68
+ EdgeTranslateFileRequest.prototype.toEdgeTranslateRequest = function () {
69
+ var edgeTranslateRequest = new EdgeTranslateRequest_1.default();
70
+ edgeTranslateRequest.model = this.model;
71
+ edgeTranslateRequest.encoding = this.encoding;
72
+ edgeTranslateRequest.languagePairId = this.languagePairId;
73
+ edgeTranslateRequest.title = this.title;
74
+ edgeTranslateRequest.outputFormat = this.outputFormat;
75
+ edgeTranslateRequest.dictionaries = this.dictionaries;
76
+ edgeTranslateRequest.sourceLanguageId = this.sourceLanguageId;
77
+ edgeTranslateRequest.targetLanguageId = this.targetLanguageId;
78
+ edgeTranslateRequest.pdfConverter = this.pdfConverter;
79
+ edgeTranslateRequest.inputFormat = this.inputFormat;
80
+ edgeTranslateRequest.linguisticOptions = this.linguisticOptions;
81
+ return edgeTranslateRequest;
82
+ };
67
83
  return EdgeTranslateFileRequest;
68
84
  }(TranslateFileRequest_1.default));
69
85
  exports.default = EdgeTranslateFileRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"EdgeTranslateFileRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/edge/request/EdgeTranslateFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAG7E;IAAsD,4CAAoB;IAA1E;;IAqCA,CAAC;IA/BG,sBAAI,oDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,kDAAY;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,2CAAK;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,8CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AArCD,CAAsD,8BAAoB,GAqCzE"}
1
+ {"version":3,"file":"EdgeTranslateFileRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/edge/request/EdgeTranslateFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAE7E,gFAA0D;AAE1D;IAAsD,4CAAoB;IAA1E;;IAsDA,CAAC;IAhDG,sBAAI,oDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,kDAAY;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,2CAAK;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,8CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMM,yDAAsB,GAA7B;QACI,IAAM,oBAAoB,GAAG,IAAI,8BAAoB,EAAE,CAAC;QACxD,oBAAoB,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxC,oBAAoB,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9C,oBAAoB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC1D,oBAAoB,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxC,oBAAoB,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtD,oBAAoB,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtD,oBAAoB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC9D,oBAAoB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC9D,oBAAoB,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtD,oBAAoB,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpD,oBAAoB,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAEhE,OAAO,oBAAoB,CAAC;IAChC,CAAC;IACL,+BAAC;AAAD,CAAC,AAtDD,CAAsD,8BAAoB,GAsDzE"}
@@ -0,0 +1,29 @@
1
+ import TranslateRequest from '../../common/request/TranslateRequest';
2
+ import { PdfConverter } from '../../../../common/constants/PdfConverter';
3
+ /**
4
+ * This class keeps all the parameters that are sent to the Edge API.
5
+ */
6
+ export default class EdgeTranslateRequest extends TranslateRequest {
7
+ private _languagePairId;
8
+ private _outputFormat;
9
+ private _title;
10
+ private _encoding;
11
+ private _input;
12
+ private _outputFile;
13
+ private _pdfConverter;
14
+ get languagePairId(): string | undefined;
15
+ set languagePairId(value: string | undefined);
16
+ get outputFormat(): string | undefined;
17
+ set outputFormat(value: string | undefined);
18
+ get title(): string | undefined;
19
+ set title(value: string | undefined);
20
+ get encoding(): string | undefined;
21
+ set encoding(value: string | undefined);
22
+ get input(): string[];
23
+ set input(value: string[]);
24
+ addInput(newItem: string): string[];
25
+ get outputFile(): string | undefined;
26
+ set outputFile(value: string | undefined);
27
+ get pdfConverter(): PdfConverter | undefined;
28
+ set pdfConverter(value: PdfConverter | undefined);
29
+ }
@@ -0,0 +1,109 @@
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("../../common/request/TranslateRequest"));
22
+ /**
23
+ * This class keeps all the parameters that are sent to the Edge API.
24
+ */
25
+ var EdgeTranslateRequest = /** @class */ (function (_super) {
26
+ __extends(EdgeTranslateRequest, _super);
27
+ function EdgeTranslateRequest() {
28
+ var _this = _super !== null && _super.apply(this, arguments) || this;
29
+ _this._input = [];
30
+ return _this;
31
+ }
32
+ Object.defineProperty(EdgeTranslateRequest.prototype, "languagePairId", {
33
+ get: function () {
34
+ return this._languagePairId;
35
+ },
36
+ set: function (value) {
37
+ this._languagePairId = value;
38
+ },
39
+ enumerable: false,
40
+ configurable: true
41
+ });
42
+ Object.defineProperty(EdgeTranslateRequest.prototype, "outputFormat", {
43
+ get: function () {
44
+ return this._outputFormat;
45
+ },
46
+ set: function (value) {
47
+ this._outputFormat = value;
48
+ },
49
+ enumerable: false,
50
+ configurable: true
51
+ });
52
+ Object.defineProperty(EdgeTranslateRequest.prototype, "title", {
53
+ get: function () {
54
+ return this._title;
55
+ },
56
+ set: function (value) {
57
+ this._title = value;
58
+ },
59
+ enumerable: false,
60
+ configurable: true
61
+ });
62
+ Object.defineProperty(EdgeTranslateRequest.prototype, "encoding", {
63
+ get: function () {
64
+ return this._encoding;
65
+ },
66
+ set: function (value) {
67
+ this._encoding = value;
68
+ },
69
+ enumerable: false,
70
+ configurable: true
71
+ });
72
+ Object.defineProperty(EdgeTranslateRequest.prototype, "input", {
73
+ get: function () {
74
+ return this._input;
75
+ },
76
+ set: function (value) {
77
+ this._input = value;
78
+ },
79
+ enumerable: false,
80
+ configurable: true
81
+ });
82
+ EdgeTranslateRequest.prototype.addInput = function (newItem) {
83
+ this._input.push(newItem);
84
+ return this._input;
85
+ };
86
+ Object.defineProperty(EdgeTranslateRequest.prototype, "outputFile", {
87
+ get: function () {
88
+ return this._outputFile;
89
+ },
90
+ set: function (value) {
91
+ this._outputFile = value;
92
+ },
93
+ enumerable: false,
94
+ configurable: true
95
+ });
96
+ Object.defineProperty(EdgeTranslateRequest.prototype, "pdfConverter", {
97
+ get: function () {
98
+ return this._pdfConverter;
99
+ },
100
+ set: function (value) {
101
+ this._pdfConverter = value;
102
+ },
103
+ enumerable: false,
104
+ configurable: true
105
+ });
106
+ return EdgeTranslateRequest;
107
+ }(TranslateRequest_1.default));
108
+ exports.default = EdgeTranslateRequest;
109
+ //# sourceMappingURL=EdgeTranslateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeTranslateRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/edge/request/EdgeTranslateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;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hB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA+B;YAC5C,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKL,2BAAC;AAAD,CAAC,AArED,CAAkD,0BAAgB,GAqEjE"}
@@ -1,5 +1,6 @@
1
1
  import TranslateTextRequest from '../../common/request/TranslateTextRequest';
2
2
  import { Format } from '../../../../common/constants/Format';
3
+ import EdgeTranslateRequest from './EdgeTranslateRequest';
3
4
  export default class EdgeTranslateTextRequest extends TranslateTextRequest {
4
5
  private _languagePairId;
5
6
  private _outputFormat;
@@ -13,4 +14,5 @@ export default class EdgeTranslateTextRequest extends TranslateTextRequest {
13
14
  set title(value: string | undefined);
14
15
  get encoding(): string | undefined;
15
16
  set encoding(value: string | undefined);
17
+ toEdgeTranslateRequest(): EdgeTranslateRequest;
16
18
  }
@@ -19,6 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  var TranslateTextRequest_1 = __importDefault(require("../../common/request/TranslateTextRequest"));
22
+ var EdgeTranslateRequest_1 = __importDefault(require("./EdgeTranslateRequest"));
22
23
  var EdgeTranslateTextRequest = /** @class */ (function (_super) {
23
24
  __extends(EdgeTranslateTextRequest, _super);
24
25
  function EdgeTranslateTextRequest() {
@@ -64,6 +65,21 @@ var EdgeTranslateTextRequest = /** @class */ (function (_super) {
64
65
  enumerable: false,
65
66
  configurable: true
66
67
  });
68
+ EdgeTranslateTextRequest.prototype.toEdgeTranslateRequest = function () {
69
+ var edgeTranslateRequest = new EdgeTranslateRequest_1.default();
70
+ edgeTranslateRequest.model = this.model;
71
+ edgeTranslateRequest.input = this.input;
72
+ edgeTranslateRequest.encoding = this.encoding;
73
+ edgeTranslateRequest.languagePairId = this.languagePairId;
74
+ edgeTranslateRequest.title = this.title;
75
+ edgeTranslateRequest.outputFormat = this.outputFormat;
76
+ edgeTranslateRequest.dictionaries = this.dictionaries;
77
+ edgeTranslateRequest.sourceLanguageId = this.sourceLanguageId;
78
+ edgeTranslateRequest.targetLanguageId = this.targetLanguageId;
79
+ edgeTranslateRequest.inputFormat = this.inputFormat;
80
+ edgeTranslateRequest.linguisticOptions = this.linguisticOptions;
81
+ return edgeTranslateRequest;
82
+ };
67
83
  return EdgeTranslateTextRequest;
68
84
  }(TranslateTextRequest_1.default));
69
85
  exports.default = EdgeTranslateTextRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"EdgeTranslateTextRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/edge/request/EdgeTranslateTextRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAG7E;IAAsD,4CAAoB;IAA1E;;IAqCA,CAAC;IA/BG,sBAAI,oDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,kDAAY;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,2CAAK;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,8CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AArCD,CAAsD,8BAAoB,GAqCzE"}
1
+ {"version":3,"file":"EdgeTranslateTextRequest.js","sourceRoot":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AY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtD,oBAAoB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC9D,oBAAoB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC9D,oBAAoB,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpD,oBAAoB,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAEhE,OAAO,oBAAoB,CAAC;IAChC,CAAC;IACL,+BAAC;AAAD,CAAC,AAtDD,CAAsD,8BAAoB,GAsDzE"}
@@ -1,9 +1,6 @@
1
1
  import TranslationFileResult from '../../common/result/TranslationFileResult';
2
2
  export default class EdgeTranslationFileResult extends TranslationFileResult {
3
3
  private _languagePairId;
4
- private _requestId;
5
4
  get languagePairId(): string | undefined;
6
5
  set languagePairId(value: string | undefined);
7
- get requestId(): string | undefined;
8
- set requestId(value: string | undefined);
9
6
  }
@@ -34,16 +34,6 @@ var EdgeTranslationFileResult = /** @class */ (function (_super) {
34
34
  enumerable: false,
35
35
  configurable: true
36
36
  });
37
- Object.defineProperty(EdgeTranslationFileResult.prototype, "requestId", {
38
- get: function () {
39
- return this._requestId;
40
- },
41
- set: function (value) {
42
- this._requestId = value;
43
- },
44
- enumerable: false,
45
- configurable: true
46
- });
47
37
  return EdgeTranslationFileResult;
48
38
  }(TranslationFileResult_1.default));
49
39
  exports.default = EdgeTranslationFileResult;
@@ -1 +1 @@
1
- {"version":3,"file":"EdgeTranslationFileResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/edge/result/EdgeTranslationFileResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,oGAA8E;AAE9E;IAAuD,6CAAqB;IAA5E;;IAmBA,CAAC;IAfG,sBAAI,qDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,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;IAKL,gCAAC;AAAD,CAAC,AAnBD,CAAuD,+BAAqB,GAmB3E"}
1
+ {"version":3,"file":"EdgeTranslationFileResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/edge/result/EdgeTranslationFileResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,oGAA8E;AAE9E;IAAuD,6CAAqB;IAA5E;;IAUA,CAAC;IAPG,sBAAI,qDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAKL,gCAAC;AAAD,CAAC,AAVD,CAAuD,+BAAqB,GAU3E"}
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.1.0";
1
+ export declare const VERSION = "2.0.0";
package/lib/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "1.1.0";
4
+ exports.VERSION = "2.0.0";
5
5
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@language-weaver/lw-sdk-js",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "Language Weaver SDK for JavaScript",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "scripts": {
9
9
  "prebuild": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
10
10
  "test": "jest --config jest.config.js --runInBand --coverage",
11
- "build": "tsc",
11
+ "build": "rimraf lib && tsc",
12
12
  "format": "prettier --write \"src/**/*.ts\"",
13
13
  "lint": "tslint -p tsconfig.json",
14
14
  "prepare": "npm run build",
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloudAuditData.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/model/CloudAuditData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,2EAAqD;AAErD;IAA4C,kCAAS;IAArD;;IAuDA,CAAC;IA/CG,sBAAI,8CAAkB;aAAtB;YACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;aAED,UAAuB,KAAyB;YAC5C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;QACrC,CAAC;;;OAJA;IAMD,sBAAI,6CAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAyB;YAC3C,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,sBAAI,2CAAe;aAAnB;YACI,OAAO,IAAI,CAAC,gBAAgB,CAAC;QACjC,CAAC;aAED,UAAoB,KAAyB;YACzC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAClC,CAAC;;;OAJA;IAMD,sBAAI,mDAAuB;aAA3B;YACI,OAAO,IAAI,CAAC,wBAAwB,CAAC;QACzC,CAAC;aAED,UAA4B,KAAyB;YACjD,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC;QAC1C,CAAC;;;OAJA;IAMD,sBAAI,kDAAsB;aAA1B;YACI,OAAO,IAAI,CAAC,uBAAuB,CAAC;QACxC,CAAC;aAED,UAA2B,KAAyB;YAChD,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC;QACzC,CAAC;;;OAJA;IAMD,sBAAI,gDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAAyB;YAC9C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAKL,qBAAC;AAAD,CAAC,AAvDD,CAA4C,mBAAS,GAuDpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloudFeedbackSortCriteria.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/model/CloudFeedbackSortCriteria.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,0CAAa,CAAA;IACb,iDAAoB,CAAA;AACxB,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC"}
@@ -1,5 +0,0 @@
1
- import FeedbackValidator from '../../common/validators/FeedbackValidator';
2
- import CloudFeedbackSortRequest from '../request/CloudFeedbackSortRequest';
3
- export default class CloudFeedbackValidator extends FeedbackValidator {
4
- validateCloudFeedbackSortRequest(sortRequest: CloudFeedbackSortRequest | undefined): "Both order and criteria should be specified for feedback sorting" | null;
5
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloudFeedbackValidator.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/validators/CloudFeedbackValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,gGAA0E;AAG1E;IAAoD,0CAAiB;IAArE;;IAQA,CAAC;IAPU,iEAAgC,GAAvC,UAAwC,WAAiD;QACrF,IAAI,WAAW,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE;YAC9D,OAAO,kEAAkE,CAAC;SAC7E;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,6BAAC;AAAD,CAAC,AARD,CAAoD,2BAAiB,GAQpE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuditData.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/model/AuditData.ts"],"names":[],"mappings":";;AAAA;IAAA;IAqCA,CAAC;IA/BG,sBAAI,yCAAkB;aAAtB;YACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;aAED,UAAuB,KAAyB;YAC5C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;QACrC,CAAC;;;OAJA;IAMD,sBAAI,mCAAY;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,8CAAuB;aAA3B;YACI,OAAO,IAAI,CAAC,wBAAwB,CAAC;QACzC,CAAC;aAED,UAA4B,KAAyB;YACjD,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC;QAC1C,CAAC;;;OAJA;IAMD,sBAAI,qCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAKL,gBAAC;AAAD,CAAC,AArCD,IAqCC"}
@@ -1,2 +0,0 @@
1
- export default class FeedbackValidator {
2
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var FeedbackValidator = /** @class */ (function () {
4
- function FeedbackValidator() {
5
- }
6
- return FeedbackValidator;
7
- }());
8
- exports.default = FeedbackValidator;
9
- //# sourceMappingURL=FeedbackValidator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeedbackValidator.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/validators/FeedbackValidator.ts"],"names":[],"mappings":";;AAAA;IAAA;IAAwC,CAAC;IAAD,wBAAC;AAAD,CAAC,AAAzC,IAAyC"}
@@ -1,3 +0,0 @@
1
- import FeedbackValidator from '../../common/validators/FeedbackValidator';
2
- export default class EdgeFeedbackValidator extends FeedbackValidator {
3
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"EdgeFeedbackValidator.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/validators/EdgeFeedbackValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,gGAA0E;AAE1E;IAAmD,yCAAiB;IAApE;;IAAsE,CAAC;IAAD,4BAAC;AAAD,CAAC,AAAvE,CAAmD,2BAAiB,GAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloudDictionaryResponse.js","sourceRoot":"","sources":["../../../../../src/translation/translate/cloud/api/CloudDictionaryResponse.ts"],"names":[],"mappings":";;AAAA;IAAA;QAQY,iBAAY,GAAW,EAAE,CAAC;IAmFtC,CAAC;IA/EG,sBAAI,iDAAY;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,8CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,8CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,iDAAY;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,mDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,mDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,yCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,gDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAa;YACzB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,2CAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,2CAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAKL,8BAAC;AAAD,CAAC,AA3FD,IA2FC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloudLanguagePair.js","sourceRoot":"","sources":["../../../../../src/translation/translate/cloud/api/CloudLanguagePair.ts"],"names":[],"mappings":";;AAAA;IAAA;IA8CA,CAAC;IAvCG,sBAAI,mCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,0CAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,+CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,+CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,oCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAKL,wBAAC;AAAD,CAAC,AA9CD,IA8CC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloudDictionariesResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/cloud/result/CloudDictionariesResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,mGAA6E;AAE7E;IAAqD,2CAAmB;IAAxE;;IAmBA,CAAC;IAfG,sBAAI,8CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,iDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA4C;YACzD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKL,8BAAC;AAAD,CAAC,AAnBD,CAAqD,6BAAmB,GAmBvE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloudLanguagePairsResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/cloud/result/CloudLanguagePairsResult.ts"],"names":[],"mappings":";;AAEA;IAAA;IAmBA,CAAC;IAfG,sBAAI,+CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,mDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAsC;YACpD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AAnBD,IAmBC"}