@language-weaver/lw-sdk-js 1.2.0 → 2.0.1

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 (347) hide show
  1. package/lib/common/configurations/ClientConfiguration.d.ts +2 -2
  2. package/lib/common/configurations/ClientConfiguration.js +0 -2
  3. package/lib/common/configurations/ClientConfiguration.js.map +1 -1
  4. package/lib/common/configurations/CredentialsConfiguration.js +2 -6
  5. package/lib/common/configurations/CredentialsConfiguration.js.map +1 -1
  6. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.d.ts +0 -0
  7. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.js +0 -0
  8. package/lib/common/constants/CloudFeedbackSortCriteria.js.map +1 -0
  9. package/lib/common/constants/Statuses.d.ts +6 -0
  10. package/lib/common/constants/Statuses.js +7 -1
  11. package/lib/common/constants/Statuses.js.map +1 -1
  12. package/lib/common/constants/TranslationConstants.d.ts +17 -8
  13. package/lib/common/constants/TranslationConstants.js +22 -11
  14. package/lib/common/constants/TranslationConstants.js.map +1 -1
  15. package/lib/common/exceptions/ContentInsightsException.d.ts +4 -0
  16. package/lib/common/exceptions/ContentInsightsException.js +17 -0
  17. package/lib/common/exceptions/ContentInsightsException.js.map +1 -0
  18. package/lib/common/external/communication/RestClient.js +9 -7
  19. package/lib/common/external/communication/RestClient.js.map +1 -1
  20. package/lib/common/utils/Utils.d.ts +8 -1
  21. package/lib/common/utils/Utils.js +133 -31
  22. package/lib/common/utils/Utils.js.map +1 -1
  23. package/lib/index.d.ts +45 -17
  24. package/lib/index.js +74 -20
  25. package/lib/index.js.map +1 -1
  26. package/lib/translation/common/LanguageWeaverClient.d.ts +10 -2
  27. package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +28 -4
  28. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js +209 -112
  29. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -1
  30. package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +26 -6
  31. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js +204 -132
  32. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -1
  33. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +1 -1
  34. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +1 -1
  35. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -1
  36. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.d.ts +23 -0
  37. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js +69 -0
  38. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js.map +1 -0
  39. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.d.ts +10 -0
  40. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js +39 -0
  41. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js.map +1 -0
  42. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.d.ts +12 -0
  43. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js +32 -0
  44. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js.map +1 -0
  45. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.d.ts +16 -0
  46. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js +42 -0
  47. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js.map +1 -0
  48. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.d.ts +12 -0
  49. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js +39 -0
  50. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js.map +1 -0
  51. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.d.ts +15 -0
  52. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js +57 -0
  53. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js.map +1 -0
  54. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.d.ts +13 -0
  55. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js +46 -0
  56. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js.map +1 -0
  57. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.d.ts +3 -0
  58. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js +30 -0
  59. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js.map +1 -0
  60. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.d.ts +8 -0
  61. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js +29 -0
  62. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js.map +1 -0
  63. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.d.ts +16 -0
  64. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js +49 -0
  65. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js.map +1 -0
  66. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.d.ts +8 -0
  67. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js +29 -0
  68. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js.map +1 -0
  69. package/lib/translation/content-insights/cloud/result/CloudSegment.d.ts +6 -0
  70. package/lib/translation/content-insights/cloud/result/CloudSegment.js +40 -0
  71. package/lib/translation/content-insights/cloud/result/CloudSegment.js.map +1 -0
  72. package/lib/translation/content-insights/cloud/result/CloudSummarization.d.ts +6 -0
  73. package/lib/translation/content-insights/cloud/result/CloudSummarization.js +19 -0
  74. package/lib/translation/content-insights/cloud/result/CloudSummarization.js.map +1 -0
  75. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.d.ts +20 -0
  76. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js +248 -0
  77. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js.map +1 -0
  78. package/lib/translation/content-insights/common/request/ContentInsightsRequest.d.ts +7 -0
  79. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js +23 -0
  80. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js.map +1 -0
  81. package/lib/translation/content-insights/common/result/ContentInsightsResult.d.ts +6 -0
  82. package/lib/translation/content-insights/common/result/ContentInsightsResult.js +19 -0
  83. package/lib/translation/content-insights/common/result/ContentInsightsResult.js.map +1 -0
  84. package/lib/translation/content-insights/common/result/Segment.d.ts +8 -0
  85. package/lib/translation/content-insights/common/result/Segment.js +29 -0
  86. package/lib/translation/content-insights/common/result/Segment.js.map +1 -0
  87. package/lib/translation/content-insights/common/result/Summarization.d.ts +8 -0
  88. package/lib/translation/content-insights/common/result/Summarization.js +25 -0
  89. package/lib/translation/content-insights/common/result/Summarization.js.map +1 -0
  90. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.d.ts +4 -0
  91. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js +145 -0
  92. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js.map +1 -0
  93. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.d.ts +13 -0
  94. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js +53 -0
  95. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js.map +1 -0
  96. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.d.ts +12 -0
  97. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js +46 -0
  98. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js.map +1 -0
  99. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.d.ts +5 -0
  100. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js +19 -0
  101. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js.map +1 -0
  102. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.d.ts +9 -0
  103. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js +29 -0
  104. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js.map +1 -0
  105. package/lib/translation/content-insights/edge/result/EdgeSegment.d.ts +3 -0
  106. package/lib/translation/content-insights/edge/result/EdgeSegment.js +30 -0
  107. package/lib/translation/content-insights/edge/result/EdgeSegment.js.map +1 -0
  108. package/lib/translation/content-insights/edge/result/EdgeSummarization.d.ts +6 -0
  109. package/lib/translation/content-insights/edge/result/EdgeSummarization.js +19 -0
  110. package/lib/translation/content-insights/edge/result/EdgeSummarization.js.map +1 -0
  111. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.d.ts +14 -0
  112. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js +96 -0
  113. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js.map +1 -0
  114. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.d.ts +14 -0
  115. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js +72 -0
  116. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js.map +1 -0
  117. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.d.ts +36 -0
  118. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js +136 -0
  119. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js.map +1 -0
  120. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.d.ts +3 -3
  121. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.js +0 -0
  122. package/lib/translation/dictionaries/cloud/result/CloudDictionariesResult.js.map +1 -0
  123. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.d.ts → dictionaries/cloud/result/CloudDictionary.d.ts} +1 -1
  124. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.js → dictionaries/cloud/result/CloudDictionary.js} +15 -15
  125. package/lib/translation/dictionaries/cloud/result/CloudDictionary.js.map +1 -0
  126. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.d.ts +15 -0
  127. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js +51 -0
  128. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js.map +1 -0
  129. package/lib/translation/dictionaries/common/result/DictionariesResult.d.ts +7 -0
  130. package/lib/translation/{translate → dictionaries}/common/result/DictionariesResult.js +0 -0
  131. package/lib/translation/dictionaries/common/result/DictionariesResult.js.map +1 -0
  132. package/lib/translation/{translate/common/api/DictionaryResponse.d.ts → dictionaries/common/result/Dictionary.d.ts} +1 -1
  133. package/lib/translation/{translate/common/api/DictionaryResponse.js → dictionaries/common/result/Dictionary.js} +8 -8
  134. package/lib/translation/dictionaries/common/result/Dictionary.js.map +1 -0
  135. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.d.ts +22 -0
  136. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js +84 -0
  137. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js.map +1 -0
  138. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.d.ts +15 -0
  139. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js +58 -0
  140. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js.map +1 -0
  141. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.d.ts +3 -3
  142. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.js +0 -0
  143. package/lib/translation/dictionaries/edge/result/EdgeDictionariesResult.js.map +1 -0
  144. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.d.ts → dictionaries/edge/result/EdgeDictionary.d.ts} +1 -1
  145. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.js → dictionaries/edge/result/EdgeDictionary.js} +8 -8
  146. package/lib/translation/dictionaries/edge/result/EdgeDictionary.js.map +1 -0
  147. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.d.ts +12 -0
  148. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js +51 -0
  149. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js.map +1 -0
  150. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +2 -2
  151. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -1
  152. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +1 -1
  153. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.d.ts +1 -1
  154. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.js +1 -1
  155. package/lib/translation/feedback/cloud/result/CloudAuditData.js.map +1 -0
  156. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +1 -1
  157. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +1 -1
  158. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -1
  159. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.d.ts +1 -1
  160. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.js +1 -1
  161. package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.js.map +1 -0
  162. package/lib/translation/feedback/common/{model → result}/AuditData.d.ts +0 -0
  163. package/lib/translation/feedback/common/{model → result}/AuditData.js +0 -0
  164. package/lib/translation/feedback/common/result/AuditData.js.map +1 -0
  165. package/lib/translation/feedback/common/result/FeedbackResult.d.ts +1 -1
  166. package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.d.ts +0 -0
  167. package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.js +0 -0
  168. package/lib/translation/feedback/common/validator/FeedbackValidator.js.map +1 -0
  169. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +1 -1
  170. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +1 -1
  171. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -1
  172. package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +1 -1
  173. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +1 -1
  174. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -1
  175. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.d.ts +3 -0
  176. package/lib/translation/feedback/edge/{validators → validator}/EdgeFeedbackValidator.js +1 -1
  177. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.js.map +1 -0
  178. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.d.ts +21 -0
  179. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js +81 -0
  180. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js.map +1 -0
  181. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.d.ts +13 -0
  182. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js +47 -0
  183. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js.map +1 -0
  184. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.d.ts +2 -0
  185. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.js +11 -0
  186. package/lib/translation/language-pairs/cloud/result/CloudLanguagePair.js.map +1 -0
  187. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.d.ts +1 -1
  188. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.js +0 -0
  189. package/lib/translation/language-pairs/cloud/result/CloudLanguagePairsResult.js.map +1 -0
  190. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.d.ts +15 -0
  191. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js +45 -0
  192. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js.map +1 -0
  193. package/lib/translation/language-pairs/common/result/LanguagePair.d.ts +16 -0
  194. package/lib/translation/{translate/common/api → language-pairs/common/result}/LanguagePair.js +11 -0
  195. package/lib/translation/language-pairs/common/result/LanguagePair.js.map +1 -0
  196. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.d.ts +1 -1
  197. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.js +0 -0
  198. package/lib/translation/language-pairs/common/result/LanguagePairsResult.js.map +1 -0
  199. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.d.ts +17 -0
  200. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js +89 -0
  201. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js.map +1 -0
  202. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.d.ts +10 -0
  203. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js +37 -0
  204. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js.map +1 -0
  205. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.d.ts +31 -0
  206. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js +116 -0
  207. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js.map +1 -0
  208. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.d.ts +15 -0
  209. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/EdgeLanguagePair.js +20 -0
  210. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.js.map +1 -0
  211. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.d.ts +1 -1
  212. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.js +0 -0
  213. package/lib/translation/language-pairs/edge/result/EdgeLanguagePairsResult.js.map +1 -0
  214. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.d.ts +0 -0
  215. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.js +0 -0
  216. package/lib/translation/language-pairs/edge/result/MemberPair.js.map +1 -0
  217. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.d.ts +14 -0
  218. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js +80 -0
  219. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js.map +1 -0
  220. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.d.ts +13 -0
  221. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js +68 -0
  222. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js.map +1 -0
  223. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.d.ts +6 -0
  224. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js +19 -0
  225. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js.map +1 -0
  226. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.d.ts +3 -0
  227. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js +30 -0
  228. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js.map +1 -0
  229. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.d.ts +10 -0
  230. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js +57 -0
  231. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js.map +1 -0
  232. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.d.ts +6 -0
  233. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js +19 -0
  234. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js.map +1 -0
  235. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.d.ts +19 -0
  236. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js +72 -0
  237. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js.map +1 -0
  238. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.d.ts +3 -0
  239. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js +30 -0
  240. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js.map +1 -0
  241. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.d.ts +11 -0
  242. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js +39 -0
  243. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js.map +1 -0
  244. package/lib/translation/{translate/common/api/LanguagePair.d.ts → linguistic-options/common/request/GetLinguisticOptionsRequest.d.ts} +1 -4
  245. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js +39 -0
  246. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js.map +1 -0
  247. package/lib/translation/linguistic-options/common/result/LinguisticOption.d.ts +11 -0
  248. package/lib/translation/linguistic-options/common/result/LinguisticOption.js +39 -0
  249. package/lib/translation/linguistic-options/common/result/LinguisticOption.js.map +1 -0
  250. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.d.ts +6 -0
  251. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js +19 -0
  252. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js.map +1 -0
  253. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.d.ts +4 -0
  254. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js +25 -0
  255. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js.map +1 -0
  256. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.d.ts +7 -0
  257. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js +46 -0
  258. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js.map +1 -0
  259. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.d.ts +6 -0
  260. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js +19 -0
  261. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js.map +1 -0
  262. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.d.ts +9 -0
  263. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js +50 -0
  264. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js.map +1 -0
  265. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.d.ts +4 -0
  266. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js +37 -0
  267. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js.map +1 -0
  268. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.d.ts +6 -0
  269. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js +19 -0
  270. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js.map +1 -0
  271. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.d.ts +18 -0
  272. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js +101 -0
  273. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js.map +1 -0
  274. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.d.ts +3 -0
  275. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js +30 -0
  276. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js.map +1 -0
  277. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.d.ts +3 -0
  278. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js +30 -0
  279. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js.map +1 -0
  280. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.d.ts +3 -0
  281. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js +21 -0
  282. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -1
  283. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.d.ts +26 -0
  284. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js +80 -0
  285. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js.map +1 -0
  286. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.d.ts +0 -3
  287. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js +0 -10
  288. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js.map +1 -1
  289. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.d.ts +3 -3
  290. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js +3 -3
  291. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js.map +1 -1
  292. package/lib/translation/translate/common/request/RetrieveFileRequest.d.ts +11 -0
  293. package/lib/translation/translate/common/request/RetrieveFileRequest.js +39 -0
  294. package/lib/translation/translate/common/request/RetrieveFileRequest.js.map +1 -0
  295. package/lib/translation/translate/common/request/TranslateBatchFileRequest.d.ts +3 -0
  296. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js +10 -0
  297. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -1
  298. package/lib/translation/translate/common/request/TranslateRequest.d.ts +3 -0
  299. package/lib/translation/translate/common/request/TranslateRequest.js +10 -0
  300. package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -1
  301. package/lib/translation/translate/common/result/TranslationFileResult.d.ts +6 -0
  302. package/lib/translation/translate/common/result/TranslationFileResult.js +20 -0
  303. package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -1
  304. package/lib/translation/translate/common/utils/TranslateFileUtil.d.ts +3 -1
  305. package/lib/translation/translate/common/utils/TranslateFileUtil.js +26 -53
  306. package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -1
  307. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.d.ts +7 -0
  308. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js +40 -0
  309. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js.map +1 -0
  310. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.d.ts +2 -2
  311. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js +15 -14
  312. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -1
  313. package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.d.ts → EdgeTranslateRequest.d.ts} +1 -1
  314. package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.js → EdgeTranslateRequest.js} +14 -14
  315. package/lib/translation/translate/edge/request/EdgeTranslateRequest.js.map +1 -0
  316. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.d.ts +2 -2
  317. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js +15 -14
  318. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -1
  319. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.d.ts +0 -3
  320. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js +0 -10
  321. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js.map +1 -1
  322. package/lib/version.d.ts +1 -1
  323. package/lib/version.js +1 -1
  324. package/package.json +2 -2
  325. package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +0 -1
  326. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +0 -1
  327. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +0 -1
  328. package/lib/translation/feedback/common/model/AuditData.js.map +0 -1
  329. package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +0 -1
  330. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +0 -3
  331. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +0 -1
  332. package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +0 -1
  333. package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +0 -1
  334. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +0 -1
  335. package/lib/translation/translate/cloud/result/CloudLanguagePairsResult.js.map +0 -1
  336. package/lib/translation/translate/common/api/DictionaryResponse.js.map +0 -1
  337. package/lib/translation/translate/common/api/LanguagePair.js.map +0 -1
  338. package/lib/translation/translate/common/result/DictionariesResult.d.ts +0 -7
  339. package/lib/translation/translate/common/result/DictionariesResult.js.map +0 -1
  340. package/lib/translation/translate/common/result/LanguagePairsResult.js.map +0 -1
  341. package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +0 -1
  342. package/lib/translation/translate/edge/api/EdgeLanguagePair.d.ts +0 -9
  343. package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +0 -1
  344. package/lib/translation/translate/edge/api/MemberPair.js.map +0 -1
  345. package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js.map +0 -1
  346. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +0 -1
  347. package/lib/translation/translate/edge/result/EdgeLanguagePairsResult.js.map +0 -1
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var MemberPair_1 = __importDefault(require("../result/MemberPair"));
7
+ var MemberPairApiModel = /** @class */ (function () {
8
+ function MemberPairApiModel() {
9
+ }
10
+ Object.defineProperty(MemberPairApiModel.prototype, "languagePairId", {
11
+ get: function () {
12
+ return this._languagePairId;
13
+ },
14
+ set: function (value) {
15
+ this._languagePairId = value;
16
+ },
17
+ enumerable: false,
18
+ configurable: true
19
+ });
20
+ Object.defineProperty(MemberPairApiModel.prototype, "sourceLanguage", {
21
+ get: function () {
22
+ return this._sourceLanguage;
23
+ },
24
+ set: function (value) {
25
+ this._sourceLanguage = value;
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
30
+ Object.defineProperty(MemberPairApiModel.prototype, "sourceLanguageId", {
31
+ get: function () {
32
+ return this._sourceLanguageId;
33
+ },
34
+ set: function (value) {
35
+ this._sourceLanguageId = value;
36
+ },
37
+ enumerable: false,
38
+ configurable: true
39
+ });
40
+ Object.defineProperty(MemberPairApiModel.prototype, "targetLanguage", {
41
+ get: function () {
42
+ return this._targetLanguage;
43
+ },
44
+ set: function (value) {
45
+ this._targetLanguage = value;
46
+ },
47
+ enumerable: false,
48
+ configurable: true
49
+ });
50
+ Object.defineProperty(MemberPairApiModel.prototype, "targetLanguageId", {
51
+ get: function () {
52
+ return this._targetLanguageId;
53
+ },
54
+ set: function (value) {
55
+ this._targetLanguageId = value;
56
+ },
57
+ enumerable: false,
58
+ configurable: true
59
+ });
60
+ Object.defineProperty(MemberPairApiModel.prototype, "domain", {
61
+ get: function () {
62
+ return this._domain;
63
+ },
64
+ set: function (value) {
65
+ this._domain = value;
66
+ },
67
+ enumerable: false,
68
+ configurable: true
69
+ });
70
+ Object.defineProperty(MemberPairApiModel.prototype, "platform", {
71
+ get: function () {
72
+ return this._platform;
73
+ },
74
+ set: function (value) {
75
+ this._platform = value;
76
+ },
77
+ enumerable: false,
78
+ configurable: true
79
+ });
80
+ Object.defineProperty(MemberPairApiModel.prototype, "technology", {
81
+ get: function () {
82
+ return this._technology;
83
+ },
84
+ set: function (value) {
85
+ this._technology = value;
86
+ },
87
+ enumerable: false,
88
+ configurable: true
89
+ });
90
+ Object.defineProperty(MemberPairApiModel.prototype, "version", {
91
+ get: function () {
92
+ return this._version;
93
+ },
94
+ set: function (value) {
95
+ this._version = value;
96
+ },
97
+ enumerable: false,
98
+ configurable: true
99
+ });
100
+ MemberPairApiModel.prototype.toMemberPair = function () {
101
+ var memberPair = new MemberPair_1.default();
102
+ memberPair.languagePairId = this.languagePairId;
103
+ memberPair.sourceLanguage = this.sourceLanguage;
104
+ memberPair.sourceLanguageId = this.sourceLanguageId;
105
+ memberPair.targetLanguage = this.targetLanguage;
106
+ memberPair.targetLanguageId = this.targetLanguageId;
107
+ memberPair.domain = this.domain;
108
+ memberPair.platform = this.platform;
109
+ memberPair.technology = this.technology;
110
+ memberPair.version = this.version;
111
+ return memberPair;
112
+ };
113
+ return MemberPairApiModel;
114
+ }());
115
+ exports.default = MemberPairApiModel;
116
+ //# sourceMappingURL=MemberPairApiModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MemberPairApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/api/MemberPairApiModel.ts"],"names":[],"mappings":";;;;;AAAA,oEAA8C;AAE9C;IAAA;IAuGA,CAAC;IAtFG,sBAAI,8CAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,8CAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,gDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,8CAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,gDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,sCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,wCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,0CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,uCAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAyB;YACjC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,yCAAY,GAAZ;QACI,IAAM,UAAU,GAAG,IAAI,oBAAU,EAAE,CAAC;QACpC,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAChD,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAChD,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACpD,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAChD,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACpD,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAChC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QACpC,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACxC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAElC,OAAO,UAAU,CAAC;IACtB,CAAC;IACL,yBAAC;AAAD,CAAC,AAvGD,IAuGC"}
@@ -0,0 +1,15 @@
1
+ import MemberPair from './MemberPair';
2
+ import EdgeLinguisticOption from '../../../linguistic-options/edge/result/EdgeLinguisticOption';
3
+ import EdgeGetLinguisticOptionsRequest from '../../../linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest';
4
+ export default class EdgeLanguagePair extends MemberPair {
5
+ private _memberPairs;
6
+ private _isChain;
7
+ private _linguisticOptions;
8
+ get memberPairs(): MemberPair[] | undefined;
9
+ set memberPairs(value: MemberPair[] | undefined);
10
+ get isChain(): boolean | undefined;
11
+ set isChain(value: boolean | undefined);
12
+ get linguisticOptions(): EdgeLinguisticOption[] | undefined;
13
+ set linguisticOptions(value: EdgeLinguisticOption[] | undefined);
14
+ toEdgeGetLinguisticOptionsRequest(): EdgeGetLinguisticOptionsRequest;
15
+ }
@@ -19,6 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  var MemberPair_1 = __importDefault(require("./MemberPair"));
22
+ var EdgeGetLinguisticOptionsRequest_1 = __importDefault(require("../../../linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest"));
22
23
  var EdgeLanguagePair = /** @class */ (function (_super) {
23
24
  __extends(EdgeLanguagePair, _super);
24
25
  function EdgeLanguagePair() {
@@ -44,6 +45,25 @@ var EdgeLanguagePair = /** @class */ (function (_super) {
44
45
  enumerable: false,
45
46
  configurable: true
46
47
  });
48
+ Object.defineProperty(EdgeLanguagePair.prototype, "linguisticOptions", {
49
+ get: function () {
50
+ return this._linguisticOptions;
51
+ },
52
+ set: function (value) {
53
+ this._linguisticOptions = value;
54
+ },
55
+ enumerable: false,
56
+ configurable: true
57
+ });
58
+ EdgeLanguagePair.prototype.toEdgeGetLinguisticOptionsRequest = function () {
59
+ var edgeLinguisticOptionsRequest = new EdgeGetLinguisticOptionsRequest_1.default();
60
+ edgeLinguisticOptionsRequest.sourceLanguageId = this.sourceLanguageId;
61
+ edgeLinguisticOptionsRequest.targetLanguageId = this.targetLanguageId;
62
+ edgeLinguisticOptionsRequest.model = this.domain;
63
+ edgeLinguisticOptionsRequest.platform = this.platform;
64
+ edgeLinguisticOptionsRequest.technology = this.technology;
65
+ return edgeLinguisticOptionsRequest;
66
+ };
47
67
  return EdgeLanguagePair;
48
68
  }(MemberPair_1.default));
49
69
  exports.default = EdgeLanguagePair;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeLanguagePair.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/result/EdgeLanguagePair.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,4DAAsC;AAEtC,6IAAuH;AAEvH;IAA8C,oCAAU;IAAxD;;IAuCA,CAAC;IAlCG,sBAAI,yCAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAA+B;YAC3C,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,qCAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAA0B;YAClC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,+CAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAyC;YAC3D,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,4DAAiC,GAAjC;QACI,IAAM,4BAA4B,GAAG,IAAI,yCAA+B,EAAE,CAAC;QAC3E,4BAA4B,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtE,4BAA4B,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtE,4BAA4B,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QACjD,4BAA4B,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QACtD,4BAA4B,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAE1D,OAAO,4BAA4B,CAAC;IACxC,CAAC;IACL,uBAAC;AAAD,CAAC,AAvCD,CAA8C,oBAAU,GAuCvD"}
@@ -1,4 +1,4 @@
1
- import EdgeLanguagePair from '../api/EdgeLanguagePair';
1
+ import EdgeLanguagePair from './EdgeLanguagePair';
2
2
  export default class EdgeLanguagePairsResult {
3
3
  private _languagePairs;
4
4
  get languagePairs(): EdgeLanguagePair[];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeLanguagePairsResult.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/result/EdgeLanguagePairsResult.ts"],"names":[],"mappings":";;AAEA;IAAA;QACY,mBAAc,GAAuB,EAAE,CAAC;IASpD,CAAC;IAPG,sBAAI,kDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAyB;YACvC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,8BAAC;AAAD,CAAC,AAVD,IAUC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MemberPair.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/result/MemberPair.ts"],"names":[],"mappings":";;AAAA;IAAA;IAwFA,CAAC;IAvEG,sBAAI,sCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,sCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,wCAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,sCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,wCAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,8BAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,gCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,kCAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,+BAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAyB;YACjC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAKL,iBAAC;AAAD,CAAC,AAxFD,IAwFC"}
@@ -0,0 +1,14 @@
1
+ import RestClient from '../../../../common/external/communication/RestClient';
2
+ import Token from '../../../../common/auth/domain/Token';
3
+ import EdgeLanguagePairsResult from '../result/EdgeLanguagePairsResult';
4
+ import EdgeLanguagePair from '../result/EdgeLanguagePair';
5
+ import LanguagePairsResult from '../../common/result/LanguagePairsResult';
6
+ export default class EdgeLanguagePairsService {
7
+ private readonly _client;
8
+ private readonly _token;
9
+ constructor(client: RestClient, token: Token | undefined);
10
+ getLanguagePairForGivenData(source: string | undefined, target: string | undefined, model: string | undefined): Promise<EdgeLanguagePair>;
11
+ getLanguagePairs(): Promise<LanguagePairsResult>;
12
+ getEdgeLanguagePairs(queryParams?: Record<string, string>): Promise<EdgeLanguagePairsResult>;
13
+ private performGetEdgeLanguagePairs;
14
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
18
+ var EdgeLanguagePairsApiModel_1 = __importDefault(require("../api/EdgeLanguagePairsApiModel"));
19
+ var EdgeLanguagePairApiModel_1 = __importDefault(require("../api/EdgeLanguagePairApiModel"));
20
+ var MemberPairApiModel_1 = __importDefault(require("../api/MemberPairApiModel"));
21
+ var EdgeLinguisticOptionApiModel_1 = __importDefault(require("../../../linguistic-options/edge/api/EdgeLinguisticOptionApiModel"));
22
+ var EdgeLanguagePairsService = /** @class */ (function () {
23
+ function EdgeLanguagePairsService(client, token) {
24
+ this._client = client;
25
+ this._token = token;
26
+ }
27
+ EdgeLanguagePairsService.prototype.getLanguagePairForGivenData = function (source, target, model) {
28
+ if (!source || !target || !model) {
29
+ return Promise.reject({ message: TranslationConstants_1.LANGUAGE_PAIR_NOT_FOUND_ERROR });
30
+ }
31
+ return this.getEdgeLanguagePairs().then(function (lps) {
32
+ var languagePair = lps.languagePairs.find(function (lp) { return lp.sourceLanguageId === source && lp.targetLanguageId === target && lp.domain === model; });
33
+ if (!languagePair) {
34
+ return Promise.reject({ message: TranslationConstants_1.LANGUAGE_PAIR_NOT_FOUND_ERROR });
35
+ }
36
+ return Promise.resolve(languagePair);
37
+ });
38
+ };
39
+ EdgeLanguagePairsService.prototype.getLanguagePairs = function () {
40
+ return this.performGetEdgeLanguagePairs()
41
+ .then(function (response) { return Promise.resolve(response.toLanguagePairsResult()); })
42
+ .catch(function (e) { return Promise.reject(e); });
43
+ };
44
+ EdgeLanguagePairsService.prototype.getEdgeLanguagePairs = function (queryParams) {
45
+ if (queryParams === void 0) { queryParams = {}; }
46
+ return this.performGetEdgeLanguagePairs(queryParams)
47
+ .then(function (response) { return Promise.resolve(response.toEdgeLanguagePairsResult()); })
48
+ .catch(function (e) { return Promise.reject(e); });
49
+ };
50
+ EdgeLanguagePairsService.prototype.performGetEdgeLanguagePairs = function (queryParams) {
51
+ if (queryParams === void 0) { queryParams = {}; }
52
+ return this._client
53
+ .requestJson(this._token, 'GET', TranslationConstants_1.EDGE_LANGUAGE_PAIRS_PATH, null, __assign({ chains: 'also' }, queryParams))
54
+ .then(function (response) {
55
+ var _a;
56
+ var lpsResponse = new EdgeLanguagePairsApiModel_1.default();
57
+ lpsResponse.languagePairs = (_a = response === null || response === void 0 ? void 0 : response.languagePairs) === null || _a === void 0 ? void 0 : _a.map(function (lp) {
58
+ var _a, _b;
59
+ var edgeLanguagePair = new EdgeLanguagePairApiModel_1.default();
60
+ Object.assign(edgeLanguagePair, lp);
61
+ edgeLanguagePair.memberPairs = (_a = lp.memberPairs) === null || _a === void 0 ? void 0 : _a.map(function (mp) {
62
+ var memberPair = new MemberPairApiModel_1.default();
63
+ Object.assign(memberPair, mp);
64
+ return memberPair;
65
+ });
66
+ edgeLanguagePair.linguisticOptions = (_b = lp.linguisticOptions) === null || _b === void 0 ? void 0 : _b.map(function (lo) {
67
+ var linguisticOption = new EdgeLinguisticOptionApiModel_1.default();
68
+ Object.assign(linguisticOption, lo);
69
+ return linguisticOption;
70
+ });
71
+ return edgeLanguagePair;
72
+ });
73
+ return Promise.resolve(lpsResponse);
74
+ })
75
+ .catch(function (e) { return Promise.reject(e); });
76
+ };
77
+ return EdgeLanguagePairsService;
78
+ }());
79
+ exports.default = EdgeLanguagePairsService;
80
+ //# sourceMappingURL=EdgeLanguagePairsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeLanguagePairsService.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/service/EdgeLanguagePairsService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,0FAG2D;AAC3D,+FAAyE;AAGzE,6FAAuE;AACvE,iFAA2D;AAC3D,mIAA6G;AAE7G;IAII,kCAAY,MAAkB,EAAE,KAAwB;QACpD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAEM,8DAA2B,GAAlC,UACI,MAA0B,EAC1B,MAA0B,EAC1B,KAAyB;QAEzB,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE;YAC9B,OAAO,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,oDAA6B,EAAE,CAAC,CAAC;SACrE;QAED,OAAO,IAAI,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC,UAAC,GAA4B;YACjE,IAAM,YAAY,GAAG,GAAG,CAAC,aAAa,CAAC,IAAI,CACvC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,gBAAgB,KAAK,MAAM,IAAI,EAAE,CAAC,gBAAgB,KAAK,MAAM,IAAI,EAAE,CAAC,MAAM,KAAK,KAAK,EAAvF,CAAuF,CAClG,CAAC;YAEF,IAAI,CAAC,YAAY,EAAE;gBACf,OAAO,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,oDAA6B,EAAE,CAAC,CAAC;aACrE;YAED,OAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,mDAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,2BAA2B,EAAE;aACpC,IAAI,CAAC,UAAC,QAAmC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,EAAjD,CAAiD,CAAC;aAChG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEM,uDAAoB,GAA3B,UAA4B,WAAwC;QAAxC,4BAAA,EAAA,gBAAwC;QAChE,OAAO,IAAI,CAAC,2BAA2B,CAAC,WAAW,CAAC;aAC/C,IAAI,CAAC,UAAC,QAAmC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,EAAE,CAAC,EAArD,CAAqD,CAAC;aACpG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEO,8DAA2B,GAAnC,UAAoC,WAAwC;QAAxC,4BAAA,EAAA,gBAAwC;QACxE,OAAO,IAAI,CAAC,OAAO;aACd,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,+CAAwB,EAAE,IAAI,aAAI,MAAM,EAAE,MAAM,IAAK,WAAW,EAAG;aACnG,IAAI,CAAC,UAAC,QAAQ;;YACX,IAAM,WAAW,GAAG,IAAI,mCAAyB,EAAE,CAAC;YACpD,WAAW,CAAC,aAAa,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAO;;gBAC7D,IAAM,gBAAgB,GAAG,IAAI,kCAAwB,EAAE,CAAC;gBACxD,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;gBACpC,gBAAgB,CAAC,WAAW,GAAG,MAAA,EAAE,CAAC,WAAW,0CAAE,GAAG,CAAC,UAAC,EAAO;oBACvD,IAAM,UAAU,GAAG,IAAI,4BAAkB,EAAE,CAAC;oBAC5C,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;oBAE9B,OAAO,UAAU,CAAC;gBACtB,CAAC,CAAC,CAAC;gBACH,gBAAgB,CAAC,iBAAiB,GAAG,MAAA,EAAE,CAAC,iBAAiB,0CAAE,GAAG,CAAC,UAAC,EAAO;oBACnE,IAAM,gBAAgB,GAAG,IAAI,sCAA4B,EAAE,CAAC;oBAC5D,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;oBAEpC,OAAO,gBAAgB,CAAC;gBAC5B,CAAC,CAAC,CAAC;gBAEH,OAAO,gBAAgB,CAAC;YAC5B,CAAC,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxC,CAAC,CAAC;aACD,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IACL,+BAAC;AAAD,CAAC,AAvED,IAuEC"}
@@ -0,0 +1,13 @@
1
+ import LinguisticOptionApiModel from '../../common/api/LinguisticOptionApiModel';
2
+ import LinguisticOption from '../../common/result/LinguisticOption';
3
+ import CloudLinguisticOption from '../result/CloudLinguisticOption';
4
+ export default class CloudLinguisticOptionApiModel extends LinguisticOptionApiModel {
5
+ private _name;
6
+ private _accountDefault;
7
+ get name(): string | undefined;
8
+ set name(value: string | undefined);
9
+ get accountDefault(): string | undefined;
10
+ set accountDefault(value: string | undefined);
11
+ toLinguisticOption(): LinguisticOption;
12
+ toCloudLinguisticOption(): CloudLinguisticOption;
13
+ }
@@ -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 LinguisticOptionApiModel_1 = __importDefault(require("../../common/api/LinguisticOptionApiModel"));
22
+ var LinguisticOption_1 = __importDefault(require("../../common/result/LinguisticOption"));
23
+ var CloudLinguisticOption_1 = __importDefault(require("../result/CloudLinguisticOption"));
24
+ var CloudLinguisticOptionApiModel = /** @class */ (function (_super) {
25
+ __extends(CloudLinguisticOptionApiModel, _super);
26
+ function CloudLinguisticOptionApiModel() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ Object.defineProperty(CloudLinguisticOptionApiModel.prototype, "name", {
30
+ get: function () {
31
+ return this._name;
32
+ },
33
+ set: function (value) {
34
+ this._name = value;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ Object.defineProperty(CloudLinguisticOptionApiModel.prototype, "accountDefault", {
40
+ get: function () {
41
+ return this._accountDefault;
42
+ },
43
+ set: function (value) {
44
+ this._accountDefault = value;
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ CloudLinguisticOptionApiModel.prototype.toLinguisticOption = function () {
50
+ var linguisticOption = new LinguisticOption_1.default();
51
+ linguisticOption.id = this.id;
52
+ linguisticOption.values = this.values;
53
+ linguisticOption.systemDefault = this.systemDefault;
54
+ return linguisticOption;
55
+ };
56
+ CloudLinguisticOptionApiModel.prototype.toCloudLinguisticOption = function () {
57
+ var cloudLinguisticOption = new CloudLinguisticOption_1.default();
58
+ cloudLinguisticOption.id = this.id;
59
+ cloudLinguisticOption.values = this.values;
60
+ cloudLinguisticOption.systemDefault = this.systemDefault;
61
+ cloudLinguisticOption.name = this.name;
62
+ cloudLinguisticOption.accountDefault = this.accountDefault;
63
+ return cloudLinguisticOption;
64
+ };
65
+ return CloudLinguisticOptionApiModel;
66
+ }(LinguisticOptionApiModel_1.default));
67
+ exports.default = CloudLinguisticOptionApiModel;
68
+ //# sourceMappingURL=CloudLinguisticOptionApiModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLinguisticOptionApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,uGAAiF;AACjF,0FAAoE;AACpE,0FAAoE;AAEpE;IAA2D,iDAAwB;IAAnF;;IAuCA,CAAC;IAnCG,sBAAI,+CAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,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,0DAAkB,GAAlB;QACI,IAAM,gBAAgB,GAAG,IAAI,0BAAgB,EAAE,CAAC;QAChD,gBAAgB,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAC9B,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACtC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAEpD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAED,+DAAuB,GAAvB;QACI,IAAM,qBAAqB,GAAG,IAAI,+BAAqB,EAAE,CAAC;QAC1D,qBAAqB,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QACnC,qBAAqB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3C,qBAAqB,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACzD,qBAAqB,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvC,qBAAqB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAE3D,OAAO,qBAAqB,CAAC;IACjC,CAAC;IACL,oCAAC;AAAD,CAAC,AAvCD,CAA2D,kCAAwB,GAuClF"}
@@ -0,0 +1,6 @@
1
+ import CloudLinguisticOptionApiModel from './CloudLinguisticOptionApiModel';
2
+ export default class CloudLinguisticOptionsResponse {
3
+ private _linguisticOptions;
4
+ get linguisticOptions(): CloudLinguisticOptionApiModel[] | undefined;
5
+ set linguisticOptions(value: CloudLinguisticOptionApiModel[] | undefined);
6
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var CloudLinguisticOptionsResponse = /** @class */ (function () {
4
+ function CloudLinguisticOptionsResponse() {
5
+ }
6
+ Object.defineProperty(CloudLinguisticOptionsResponse.prototype, "linguisticOptions", {
7
+ get: function () {
8
+ return this._linguisticOptions;
9
+ },
10
+ set: function (value) {
11
+ this._linguisticOptions = value;
12
+ },
13
+ enumerable: false,
14
+ configurable: true
15
+ });
16
+ return CloudLinguisticOptionsResponse;
17
+ }());
18
+ exports.default = CloudLinguisticOptionsResponse;
19
+ //# sourceMappingURL=CloudLinguisticOptionsResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLinguisticOptionsResponse.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.ts"],"names":[],"mappings":";;AAEA;IAAA;IAUA,CAAC;IAPG,sBAAI,6DAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAkD;YACpE,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAKL,qCAAC;AAAD,CAAC,AAVD,IAUC"}
@@ -0,0 +1,3 @@
1
+ import GetLinguisticOptionsRequest from '../../common/request/GetLinguisticOptionsRequest';
2
+ export default class CloudGetLinguisticOptionsRequest extends GetLinguisticOptionsRequest {
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 GetLinguisticOptionsRequest_1 = __importDefault(require("../../common/request/GetLinguisticOptionsRequest"));
22
+ var CloudGetLinguisticOptionsRequest = /** @class */ (function (_super) {
23
+ __extends(CloudGetLinguisticOptionsRequest, _super);
24
+ function CloudGetLinguisticOptionsRequest() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ return CloudGetLinguisticOptionsRequest;
28
+ }(GetLinguisticOptionsRequest_1.default));
29
+ exports.default = CloudGetLinguisticOptionsRequest;
30
+ //# sourceMappingURL=CloudGetLinguisticOptionsRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudGetLinguisticOptionsRequest.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iHAA2F;AAE3F;IAA8D,oDAA2B;IAAzF;;IAA2F,CAAC;IAAD,uCAAC;AAAD,CAAC,AAA5F,CAA8D,qCAA2B,GAAG"}
@@ -0,0 +1,10 @@
1
+ import LinguisticOption from '../../common/result/LinguisticOption';
2
+ export default class CloudLinguisticOption extends LinguisticOption {
3
+ private _name;
4
+ private _accountDefault;
5
+ get name(): string | undefined;
6
+ set name(value: string | undefined);
7
+ get accountDefault(): string | undefined;
8
+ set accountDefault(value: string | undefined);
9
+ toLinguisticOption(): LinguisticOption;
10
+ }
@@ -0,0 +1,57 @@
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 LinguisticOption_1 = __importDefault(require("../../common/result/LinguisticOption"));
22
+ var CloudLinguisticOption = /** @class */ (function (_super) {
23
+ __extends(CloudLinguisticOption, _super);
24
+ function CloudLinguisticOption() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ Object.defineProperty(CloudLinguisticOption.prototype, "name", {
28
+ get: function () {
29
+ return this._name;
30
+ },
31
+ set: function (value) {
32
+ this._name = value;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(CloudLinguisticOption.prototype, "accountDefault", {
38
+ get: function () {
39
+ return this._accountDefault;
40
+ },
41
+ set: function (value) {
42
+ this._accountDefault = value;
43
+ },
44
+ enumerable: false,
45
+ configurable: true
46
+ });
47
+ CloudLinguisticOption.prototype.toLinguisticOption = function () {
48
+ var linguisticOption = new LinguisticOption_1.default();
49
+ linguisticOption.id = this.id;
50
+ linguisticOption.values = this.values;
51
+ linguisticOption.systemDefault = this.systemDefault;
52
+ return linguisticOption;
53
+ };
54
+ return CloudLinguisticOption;
55
+ }(LinguisticOption_1.default));
56
+ exports.default = CloudLinguisticOption;
57
+ //# sourceMappingURL=CloudLinguisticOption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLinguisticOption.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/result/CloudLinguisticOption.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,0FAAoE;AAEpE;IAAmD,yCAAgB;IAAnE;;IA4BA,CAAC;IAxBG,sBAAI,uCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,iDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,kDAAkB,GAAlB;QACI,IAAM,gBAAgB,GAAG,IAAI,0BAAgB,EAAE,CAAC;QAChD,gBAAgB,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAC9B,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACtC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAEpD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACL,4BAAC;AAAD,CAAC,AA5BD,CAAmD,0BAAgB,GA4BlE"}
@@ -0,0 +1,6 @@
1
+ import CloudLinguisticOption from './CloudLinguisticOption';
2
+ export default class CloudLinguisticOptionsResult {
3
+ private _linguisticOptions;
4
+ get linguisticOptions(): CloudLinguisticOption[] | undefined;
5
+ set linguisticOptions(value: CloudLinguisticOption[] | undefined);
6
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var CloudLinguisticOptionsResult = /** @class */ (function () {
4
+ function CloudLinguisticOptionsResult() {
5
+ }
6
+ Object.defineProperty(CloudLinguisticOptionsResult.prototype, "linguisticOptions", {
7
+ get: function () {
8
+ return this._linguisticOptions;
9
+ },
10
+ set: function (value) {
11
+ this._linguisticOptions = value;
12
+ },
13
+ enumerable: false,
14
+ configurable: true
15
+ });
16
+ return CloudLinguisticOptionsResult;
17
+ }());
18
+ exports.default = CloudLinguisticOptionsResult;
19
+ //# sourceMappingURL=CloudLinguisticOptionsResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLinguisticOptionsResult.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.ts"],"names":[],"mappings":";;AAEA;IAAA;IAUA,CAAC;IAPG,sBAAI,2DAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAA0C;YAC5D,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAKL,mCAAC;AAAD,CAAC,AAVD,IAUC"}
@@ -0,0 +1,19 @@
1
+ import SelfInformation from '../../../../common/auth/domain/SelfInformation';
2
+ import UserSelfInformation from '../../../../common/auth/domain/UserSelfInformation';
3
+ import RestClient from '../../../../common/external/communication/RestClient';
4
+ import Token from '../../../../common/auth/domain/Token';
5
+ import GetLinguisticOptionsRequest from '../../common/request/GetLinguisticOptionsRequest';
6
+ import LinguisticOptionsResult from '../../common/result/LinguisticOptionsResult';
7
+ import CloudLinguisticOptionsResult from '../result/CloudLinguisticOptionsResult';
8
+ import CloudGetLinguisticOptionsRequest from '../request/CloudGetLinguisticOptionsRequest';
9
+ export default class CloudLinguisticOptionsService {
10
+ private readonly _selfInfo;
11
+ private readonly _client;
12
+ private readonly _token;
13
+ private readonly _validator;
14
+ constructor(client: RestClient, token: Token | undefined, selfInfo: SelfInformation | UserSelfInformation | undefined);
15
+ getLinguisticOptionsForLanguagePair(getLinguisticOptionsRequest: GetLinguisticOptionsRequest): Promise<LinguisticOptionsResult>;
16
+ getCloudLinguisticOptionsForLanguagePair(getLinguisticOptionsRequest: CloudGetLinguisticOptionsRequest): Promise<CloudLinguisticOptionsResult>;
17
+ private getLinguisticOptionsResponse;
18
+ private getLanguagePairId;
19
+ }