@language-weaver/lw-sdk-js 1.2.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 (340) hide show
  1. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.d.ts +0 -0
  2. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.js +0 -0
  3. package/lib/common/constants/CloudFeedbackSortCriteria.js.map +1 -0
  4. package/lib/common/constants/Statuses.d.ts +6 -0
  5. package/lib/common/constants/Statuses.js +7 -1
  6. package/lib/common/constants/Statuses.js.map +1 -1
  7. package/lib/common/constants/TranslationConstants.d.ts +17 -3
  8. package/lib/common/constants/TranslationConstants.js +22 -5
  9. package/lib/common/constants/TranslationConstants.js.map +1 -1
  10. package/lib/common/exceptions/ContentInsightsException.d.ts +4 -0
  11. package/lib/common/exceptions/ContentInsightsException.js +17 -0
  12. package/lib/common/exceptions/ContentInsightsException.js.map +1 -0
  13. package/lib/common/utils/Utils.d.ts +7 -0
  14. package/lib/common/utils/Utils.js +127 -0
  15. package/lib/common/utils/Utils.js.map +1 -1
  16. package/lib/index.d.ts +45 -17
  17. package/lib/index.js +74 -20
  18. package/lib/index.js.map +1 -1
  19. package/lib/translation/common/LanguageWeaverClient.d.ts +10 -2
  20. package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +27 -4
  21. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js +149 -92
  22. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -1
  23. package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +25 -6
  24. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js +162 -123
  25. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -1
  26. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +1 -1
  27. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +1 -1
  28. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -1
  29. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.d.ts +23 -0
  30. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js +69 -0
  31. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js.map +1 -0
  32. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.d.ts +10 -0
  33. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js +39 -0
  34. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js.map +1 -0
  35. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.d.ts +12 -0
  36. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js +32 -0
  37. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js.map +1 -0
  38. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.d.ts +16 -0
  39. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js +42 -0
  40. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js.map +1 -0
  41. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.d.ts +12 -0
  42. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js +39 -0
  43. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js.map +1 -0
  44. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.d.ts +15 -0
  45. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js +57 -0
  46. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js.map +1 -0
  47. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.d.ts +13 -0
  48. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js +46 -0
  49. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js.map +1 -0
  50. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.d.ts +3 -0
  51. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js +30 -0
  52. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js.map +1 -0
  53. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.d.ts +8 -0
  54. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js +29 -0
  55. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js.map +1 -0
  56. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.d.ts +16 -0
  57. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js +49 -0
  58. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js.map +1 -0
  59. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.d.ts +8 -0
  60. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js +29 -0
  61. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js.map +1 -0
  62. package/lib/translation/content-insights/cloud/result/CloudSegment.d.ts +6 -0
  63. package/lib/translation/content-insights/cloud/result/CloudSegment.js +40 -0
  64. package/lib/translation/content-insights/cloud/result/CloudSegment.js.map +1 -0
  65. package/lib/translation/content-insights/cloud/result/CloudSummarization.d.ts +6 -0
  66. package/lib/translation/content-insights/cloud/result/CloudSummarization.js +19 -0
  67. package/lib/translation/content-insights/cloud/result/CloudSummarization.js.map +1 -0
  68. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.d.ts +20 -0
  69. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js +248 -0
  70. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js.map +1 -0
  71. package/lib/translation/content-insights/common/request/ContentInsightsRequest.d.ts +7 -0
  72. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js +23 -0
  73. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js.map +1 -0
  74. package/lib/translation/content-insights/common/result/ContentInsightsResult.d.ts +6 -0
  75. package/lib/translation/content-insights/common/result/ContentInsightsResult.js +19 -0
  76. package/lib/translation/content-insights/common/result/ContentInsightsResult.js.map +1 -0
  77. package/lib/translation/content-insights/common/result/Segment.d.ts +8 -0
  78. package/lib/translation/content-insights/common/result/Segment.js +29 -0
  79. package/lib/translation/content-insights/common/result/Segment.js.map +1 -0
  80. package/lib/translation/content-insights/common/result/Summarization.d.ts +8 -0
  81. package/lib/translation/content-insights/common/result/Summarization.js +25 -0
  82. package/lib/translation/content-insights/common/result/Summarization.js.map +1 -0
  83. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.d.ts +4 -0
  84. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js +145 -0
  85. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js.map +1 -0
  86. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.d.ts +13 -0
  87. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js +53 -0
  88. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js.map +1 -0
  89. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.d.ts +12 -0
  90. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js +46 -0
  91. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js.map +1 -0
  92. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.d.ts +5 -0
  93. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js +19 -0
  94. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js.map +1 -0
  95. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.d.ts +9 -0
  96. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js +29 -0
  97. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js.map +1 -0
  98. package/lib/translation/content-insights/edge/result/EdgeSegment.d.ts +3 -0
  99. package/lib/translation/content-insights/edge/result/EdgeSegment.js +30 -0
  100. package/lib/translation/content-insights/edge/result/EdgeSegment.js.map +1 -0
  101. package/lib/translation/content-insights/edge/result/EdgeSummarization.d.ts +6 -0
  102. package/lib/translation/content-insights/edge/result/EdgeSummarization.js +19 -0
  103. package/lib/translation/content-insights/edge/result/EdgeSummarization.js.map +1 -0
  104. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.d.ts +14 -0
  105. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js +96 -0
  106. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js.map +1 -0
  107. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.d.ts +14 -0
  108. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js +72 -0
  109. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js.map +1 -0
  110. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.d.ts +36 -0
  111. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js +136 -0
  112. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js.map +1 -0
  113. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.d.ts +3 -3
  114. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.js +0 -0
  115. package/lib/translation/dictionaries/cloud/result/CloudDictionariesResult.js.map +1 -0
  116. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.d.ts → dictionaries/cloud/result/CloudDictionary.d.ts} +1 -1
  117. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.js → dictionaries/cloud/result/CloudDictionary.js} +15 -15
  118. package/lib/translation/dictionaries/cloud/result/CloudDictionary.js.map +1 -0
  119. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.d.ts +15 -0
  120. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js +51 -0
  121. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js.map +1 -0
  122. package/lib/translation/dictionaries/common/result/DictionariesResult.d.ts +7 -0
  123. package/lib/translation/{translate → dictionaries}/common/result/DictionariesResult.js +0 -0
  124. package/lib/translation/dictionaries/common/result/DictionariesResult.js.map +1 -0
  125. package/lib/translation/{translate/common/api/DictionaryResponse.d.ts → dictionaries/common/result/Dictionary.d.ts} +1 -1
  126. package/lib/translation/{translate/common/api/DictionaryResponse.js → dictionaries/common/result/Dictionary.js} +8 -8
  127. package/lib/translation/dictionaries/common/result/Dictionary.js.map +1 -0
  128. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.d.ts +22 -0
  129. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js +84 -0
  130. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js.map +1 -0
  131. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.d.ts +15 -0
  132. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js +58 -0
  133. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js.map +1 -0
  134. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.d.ts +3 -3
  135. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.js +0 -0
  136. package/lib/translation/dictionaries/edge/result/EdgeDictionariesResult.js.map +1 -0
  137. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.d.ts → dictionaries/edge/result/EdgeDictionary.d.ts} +1 -1
  138. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.js → dictionaries/edge/result/EdgeDictionary.js} +8 -8
  139. package/lib/translation/dictionaries/edge/result/EdgeDictionary.js.map +1 -0
  140. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.d.ts +12 -0
  141. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js +51 -0
  142. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js.map +1 -0
  143. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +2 -2
  144. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -1
  145. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +1 -1
  146. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.d.ts +1 -1
  147. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.js +1 -1
  148. package/lib/translation/feedback/cloud/result/CloudAuditData.js.map +1 -0
  149. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +1 -1
  150. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +1 -1
  151. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -1
  152. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.d.ts +1 -1
  153. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.js +1 -1
  154. package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.js.map +1 -0
  155. package/lib/translation/feedback/common/{model → result}/AuditData.d.ts +0 -0
  156. package/lib/translation/feedback/common/{model → result}/AuditData.js +0 -0
  157. package/lib/translation/feedback/common/result/AuditData.js.map +1 -0
  158. package/lib/translation/feedback/common/result/FeedbackResult.d.ts +1 -1
  159. package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.d.ts +0 -0
  160. package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.js +0 -0
  161. package/lib/translation/feedback/common/validator/FeedbackValidator.js.map +1 -0
  162. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +1 -1
  163. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +1 -1
  164. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -1
  165. package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +1 -1
  166. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +1 -1
  167. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -1
  168. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.d.ts +3 -0
  169. package/lib/translation/feedback/edge/{validators → validator}/EdgeFeedbackValidator.js +1 -1
  170. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.js.map +1 -0
  171. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.d.ts +21 -0
  172. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js +81 -0
  173. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js.map +1 -0
  174. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.d.ts +13 -0
  175. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js +47 -0
  176. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js.map +1 -0
  177. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.d.ts +2 -0
  178. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.js +11 -0
  179. package/lib/translation/language-pairs/cloud/result/CloudLanguagePair.js.map +1 -0
  180. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.d.ts +1 -1
  181. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.js +0 -0
  182. package/lib/translation/language-pairs/cloud/result/CloudLanguagePairsResult.js.map +1 -0
  183. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.d.ts +15 -0
  184. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js +45 -0
  185. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js.map +1 -0
  186. package/lib/translation/language-pairs/common/result/LanguagePair.d.ts +16 -0
  187. package/lib/translation/{translate/common/api → language-pairs/common/result}/LanguagePair.js +11 -0
  188. package/lib/translation/language-pairs/common/result/LanguagePair.js.map +1 -0
  189. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.d.ts +1 -1
  190. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.js +0 -0
  191. package/lib/translation/language-pairs/common/result/LanguagePairsResult.js.map +1 -0
  192. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.d.ts +17 -0
  193. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js +89 -0
  194. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js.map +1 -0
  195. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.d.ts +10 -0
  196. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js +37 -0
  197. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js.map +1 -0
  198. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.d.ts +31 -0
  199. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js +116 -0
  200. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js.map +1 -0
  201. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.d.ts +15 -0
  202. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/EdgeLanguagePair.js +20 -0
  203. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.js.map +1 -0
  204. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.d.ts +1 -1
  205. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.js +0 -0
  206. package/lib/translation/language-pairs/edge/result/EdgeLanguagePairsResult.js.map +1 -0
  207. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.d.ts +0 -0
  208. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.js +0 -0
  209. package/lib/translation/language-pairs/edge/result/MemberPair.js.map +1 -0
  210. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.d.ts +14 -0
  211. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js +80 -0
  212. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js.map +1 -0
  213. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.d.ts +13 -0
  214. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js +68 -0
  215. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js.map +1 -0
  216. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.d.ts +6 -0
  217. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js +19 -0
  218. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js.map +1 -0
  219. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.d.ts +3 -0
  220. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js +30 -0
  221. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js.map +1 -0
  222. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.d.ts +10 -0
  223. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js +57 -0
  224. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js.map +1 -0
  225. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.d.ts +6 -0
  226. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js +19 -0
  227. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js.map +1 -0
  228. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.d.ts +19 -0
  229. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js +72 -0
  230. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js.map +1 -0
  231. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.d.ts +3 -0
  232. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js +30 -0
  233. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js.map +1 -0
  234. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.d.ts +11 -0
  235. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js +39 -0
  236. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js.map +1 -0
  237. package/lib/translation/{translate/common/api/LanguagePair.d.ts → linguistic-options/common/request/GetLinguisticOptionsRequest.d.ts} +1 -4
  238. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js +39 -0
  239. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js.map +1 -0
  240. package/lib/translation/linguistic-options/common/result/LinguisticOption.d.ts +11 -0
  241. package/lib/translation/linguistic-options/common/result/LinguisticOption.js +39 -0
  242. package/lib/translation/linguistic-options/common/result/LinguisticOption.js.map +1 -0
  243. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.d.ts +6 -0
  244. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js +19 -0
  245. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js.map +1 -0
  246. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.d.ts +4 -0
  247. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js +25 -0
  248. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js.map +1 -0
  249. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.d.ts +7 -0
  250. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js +46 -0
  251. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js.map +1 -0
  252. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.d.ts +6 -0
  253. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js +19 -0
  254. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js.map +1 -0
  255. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.d.ts +9 -0
  256. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js +50 -0
  257. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js.map +1 -0
  258. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.d.ts +4 -0
  259. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js +37 -0
  260. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js.map +1 -0
  261. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.d.ts +6 -0
  262. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js +19 -0
  263. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js.map +1 -0
  264. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.d.ts +18 -0
  265. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js +101 -0
  266. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js.map +1 -0
  267. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.d.ts +3 -0
  268. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js +30 -0
  269. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js.map +1 -0
  270. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.d.ts +3 -0
  271. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js +30 -0
  272. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js.map +1 -0
  273. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.d.ts +3 -0
  274. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js +21 -0
  275. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -1
  276. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.d.ts +26 -0
  277. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js +80 -0
  278. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js.map +1 -0
  279. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.d.ts +0 -3
  280. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js +0 -10
  281. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js.map +1 -1
  282. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.d.ts +3 -3
  283. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js +3 -3
  284. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js.map +1 -1
  285. package/lib/translation/translate/common/request/RetrieveFileRequest.d.ts +11 -0
  286. package/lib/translation/translate/common/request/RetrieveFileRequest.js +39 -0
  287. package/lib/translation/translate/common/request/RetrieveFileRequest.js.map +1 -0
  288. package/lib/translation/translate/common/request/TranslateBatchFileRequest.d.ts +3 -0
  289. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js +10 -0
  290. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -1
  291. package/lib/translation/translate/common/request/TranslateRequest.d.ts +3 -0
  292. package/lib/translation/translate/common/request/TranslateRequest.js +10 -0
  293. package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -1
  294. package/lib/translation/translate/common/result/TranslationFileResult.d.ts +6 -0
  295. package/lib/translation/translate/common/result/TranslationFileResult.js +20 -0
  296. package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -1
  297. package/lib/translation/translate/common/utils/TranslateFileUtil.d.ts +3 -1
  298. package/lib/translation/translate/common/utils/TranslateFileUtil.js +26 -53
  299. package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -1
  300. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.d.ts +7 -0
  301. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js +40 -0
  302. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js.map +1 -0
  303. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.d.ts +2 -2
  304. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js +15 -14
  305. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -1
  306. package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.d.ts → EdgeTranslateRequest.d.ts} +1 -1
  307. package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.js → EdgeTranslateRequest.js} +14 -14
  308. package/lib/translation/translate/edge/request/EdgeTranslateRequest.js.map +1 -0
  309. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.d.ts +2 -2
  310. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js +15 -14
  311. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -1
  312. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.d.ts +0 -3
  313. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js +0 -10
  314. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js.map +1 -1
  315. package/lib/version.d.ts +1 -1
  316. package/lib/version.js +1 -1
  317. package/package.json +2 -2
  318. package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +0 -1
  319. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +0 -1
  320. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +0 -1
  321. package/lib/translation/feedback/common/model/AuditData.js.map +0 -1
  322. package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +0 -1
  323. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +0 -3
  324. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +0 -1
  325. package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +0 -1
  326. package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +0 -1
  327. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +0 -1
  328. package/lib/translation/translate/cloud/result/CloudLanguagePairsResult.js.map +0 -1
  329. package/lib/translation/translate/common/api/DictionaryResponse.js.map +0 -1
  330. package/lib/translation/translate/common/api/LanguagePair.js.map +0 -1
  331. package/lib/translation/translate/common/result/DictionariesResult.d.ts +0 -7
  332. package/lib/translation/translate/common/result/DictionariesResult.js.map +0 -1
  333. package/lib/translation/translate/common/result/LanguagePairsResult.js.map +0 -1
  334. package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +0 -1
  335. package/lib/translation/translate/edge/api/EdgeLanguagePair.d.ts +0 -9
  336. package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +0 -1
  337. package/lib/translation/translate/edge/api/MemberPair.js.map +0 -1
  338. package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js.map +0 -1
  339. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +0 -1
  340. package/lib/translation/translate/edge/result/EdgeLanguagePairsResult.js.map +0 -1
@@ -0,0 +1,81 @@
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 CloudLanguagePair_1 = __importDefault(require("../result/CloudLanguagePair"));
7
+ var LanguagePair_1 = __importDefault(require("../../common/result/LanguagePair"));
8
+ var CloudLanguagePairApiModel = /** @class */ (function () {
9
+ function CloudLanguagePairApiModel() {
10
+ }
11
+ Object.defineProperty(CloudLanguagePairApiModel.prototype, "name", {
12
+ get: function () {
13
+ return this._name;
14
+ },
15
+ set: function (value) {
16
+ this._name = value;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ Object.defineProperty(CloudLanguagePairApiModel.prototype, "displayName", {
22
+ get: function () {
23
+ return this._displayName;
24
+ },
25
+ set: function (value) {
26
+ this._displayName = value;
27
+ },
28
+ enumerable: false,
29
+ configurable: true
30
+ });
31
+ Object.defineProperty(CloudLanguagePairApiModel.prototype, "sourceLanguageId", {
32
+ get: function () {
33
+ return this._sourceLanguageId;
34
+ },
35
+ set: function (value) {
36
+ this._sourceLanguageId = value;
37
+ },
38
+ enumerable: false,
39
+ configurable: true
40
+ });
41
+ Object.defineProperty(CloudLanguagePairApiModel.prototype, "targetLanguageId", {
42
+ get: function () {
43
+ return this._targetLanguageId;
44
+ },
45
+ set: function (value) {
46
+ this._targetLanguageId = value;
47
+ },
48
+ enumerable: false,
49
+ configurable: true
50
+ });
51
+ Object.defineProperty(CloudLanguagePairApiModel.prototype, "model", {
52
+ get: function () {
53
+ return this._model;
54
+ },
55
+ set: function (value) {
56
+ this._model = value;
57
+ },
58
+ enumerable: false,
59
+ configurable: true
60
+ });
61
+ CloudLanguagePairApiModel.prototype.toCloudLanguagePair = function () {
62
+ var cloudLanguagePair = new CloudLanguagePair_1.default();
63
+ cloudLanguagePair.name = this.name;
64
+ cloudLanguagePair.displayName = this.displayName;
65
+ cloudLanguagePair.sourceLanguageId = this.sourceLanguageId;
66
+ cloudLanguagePair.targetLanguageId = this.targetLanguageId;
67
+ cloudLanguagePair.model = this.model;
68
+ return cloudLanguagePair;
69
+ };
70
+ CloudLanguagePairApiModel.prototype.toLanguagePair = function () {
71
+ var languagePair = new LanguagePair_1.default();
72
+ languagePair.sourceLanguageId = this.sourceLanguageId;
73
+ languagePair.targetLanguageId = this.targetLanguageId;
74
+ languagePair.model = this.model;
75
+ languagePair.name = this.name;
76
+ return languagePair;
77
+ };
78
+ return CloudLanguagePairApiModel;
79
+ }());
80
+ exports.default = CloudLanguagePairApiModel;
81
+ //# sourceMappingURL=CloudLanguagePairApiModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLanguagePairApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.ts"],"names":[],"mappings":";;;;;AAAA,kFAA4D;AAC5D,kFAA4D;AAE5D;IAAA;IAmEA,CAAC;IA5DG,sBAAI,2CAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,kDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,uDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,uDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,4CAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,uDAAmB,GAAnB;QACI,IAAM,iBAAiB,GAAG,IAAI,2BAAiB,EAAE,CAAC;QAClD,iBAAiB,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACnC,iBAAiB,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACjD,iBAAiB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC3D,iBAAiB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC3D,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAErC,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAED,kDAAc,GAAd;QACI,IAAM,YAAY,GAAG,IAAI,sBAAY,EAAE,CAAC;QACxC,YAAY,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtD,YAAY,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtD,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAChC,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAE9B,OAAO,YAAY,CAAC;IACxB,CAAC;IACL,gCAAC;AAAD,CAAC,AAnED,IAmEC"}
@@ -0,0 +1,13 @@
1
+ import CloudLanguagePairApiModel from './CloudLanguagePairApiModel';
2
+ import CloudLanguagePairsResult from '../result/CloudLanguagePairsResult';
3
+ import LanguagePairsResult from '../../common/result/LanguagePairsResult';
4
+ export default class CloudLanguagePairsResponse {
5
+ private _accountId;
6
+ private _languagePairs;
7
+ get accountId(): number | undefined;
8
+ set accountId(value: number | undefined);
9
+ get languagePairs(): CloudLanguagePairApiModel[] | undefined;
10
+ set languagePairs(value: CloudLanguagePairApiModel[] | undefined);
11
+ toCloudLanguagePairsResult(): CloudLanguagePairsResult;
12
+ toLanguagePairsResult(): LanguagePairsResult;
13
+ }
@@ -0,0 +1,47 @@
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 CloudLanguagePairsResult_1 = __importDefault(require("../result/CloudLanguagePairsResult"));
7
+ var LanguagePairsResult_1 = __importDefault(require("../../common/result/LanguagePairsResult"));
8
+ var CloudLanguagePairsResponse = /** @class */ (function () {
9
+ function CloudLanguagePairsResponse() {
10
+ }
11
+ Object.defineProperty(CloudLanguagePairsResponse.prototype, "accountId", {
12
+ get: function () {
13
+ return this._accountId;
14
+ },
15
+ set: function (value) {
16
+ this._accountId = value;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ Object.defineProperty(CloudLanguagePairsResponse.prototype, "languagePairs", {
22
+ get: function () {
23
+ return this._languagePairs;
24
+ },
25
+ set: function (value) {
26
+ this._languagePairs = value;
27
+ },
28
+ enumerable: false,
29
+ configurable: true
30
+ });
31
+ CloudLanguagePairsResponse.prototype.toCloudLanguagePairsResult = function () {
32
+ var _a;
33
+ var cloudLanguagePairsResult = new CloudLanguagePairsResult_1.default();
34
+ cloudLanguagePairsResult.accountId = this.accountId;
35
+ cloudLanguagePairsResult.languagePairs = ((_a = this.languagePairs) === null || _a === void 0 ? void 0 : _a.map(function (lp) { return lp.toCloudLanguagePair(); })) || [];
36
+ return cloudLanguagePairsResult;
37
+ };
38
+ CloudLanguagePairsResponse.prototype.toLanguagePairsResult = function () {
39
+ var _a;
40
+ var languagePairsResult = new LanguagePairsResult_1.default();
41
+ languagePairsResult.languagePairs = ((_a = this.languagePairs) === null || _a === void 0 ? void 0 : _a.map(function (lp) { return lp.toLanguagePair(); })) || [];
42
+ return languagePairsResult;
43
+ };
44
+ return CloudLanguagePairsResponse;
45
+ }());
46
+ exports.default = CloudLanguagePairsResponse;
47
+ //# sourceMappingURL=CloudLanguagePairsResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLanguagePairsResponse.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.ts"],"names":[],"mappings":";;;;;AACA,gGAA0E;AAC1E,gGAA0E;AAE1E;IAAA;IAkCA,CAAC;IA9BG,sBAAI,iDAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,qDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAA8C;YAC5D,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAMD,+DAA0B,GAA1B;;QACI,IAAM,wBAAwB,GAAG,IAAI,kCAAwB,EAAE,CAAC;QAChE,wBAAwB,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QACpD,wBAAwB,CAAC,aAAa,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,mBAAmB,EAAE,EAAxB,CAAwB,CAAC,KAAI,EAAE,CAAC;QAEzG,OAAO,wBAAwB,CAAC;IACpC,CAAC;IAED,0DAAqB,GAArB;;QACI,IAAM,mBAAmB,GAAG,IAAI,6BAAmB,EAAE,CAAC;QACtD,mBAAmB,CAAC,aAAa,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,cAAc,EAAE,EAAnB,CAAmB,CAAC,KAAI,EAAE,CAAC;QAE/F,OAAO,mBAAmB,CAAC;IAC/B,CAAC;IACL,iCAAC;AAAD,CAAC,AAlCD,IAkCC"}
@@ -1,3 +1,4 @@
1
+ import CloudGetLinguisticOptionsRequest from '../../../linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest';
1
2
  export default class CloudLanguagePair {
2
3
  private _name;
3
4
  private _displayName;
@@ -14,4 +15,5 @@ export default class CloudLanguagePair {
14
15
  set targetLanguageId(value: string | undefined);
15
16
  get model(): string | undefined;
16
17
  set model(value: string | undefined);
18
+ toCloudGetLinguisticOptionsRequest(): CloudGetLinguisticOptionsRequest;
17
19
  }
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ var CloudGetLinguisticOptionsRequest_1 = __importDefault(require("../../../linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest"));
3
7
  var CloudLanguagePair = /** @class */ (function () {
4
8
  function CloudLanguagePair() {
5
9
  }
@@ -53,6 +57,13 @@ var CloudLanguagePair = /** @class */ (function () {
53
57
  enumerable: false,
54
58
  configurable: true
55
59
  });
60
+ CloudLanguagePair.prototype.toCloudGetLinguisticOptionsRequest = function () {
61
+ var cloudLinguisticOptionsRequest = new CloudGetLinguisticOptionsRequest_1.default();
62
+ cloudLinguisticOptionsRequest.sourceLanguageId = this.sourceLanguageId;
63
+ cloudLinguisticOptionsRequest.targetLanguageId = this.targetLanguageId;
64
+ cloudLinguisticOptionsRequest.model = this.model;
65
+ return cloudLinguisticOptionsRequest;
66
+ };
56
67
  return CloudLanguagePair;
57
68
  }());
58
69
  exports.default = CloudLanguagePair;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLanguagePair.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/cloud/result/CloudLanguagePair.ts"],"names":[],"mappings":";;;;;AACA,gJAA0H;AAE1H;IAAA;IAuDA,CAAC;IAhDG,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;IAMD,8DAAkC,GAAlC;QACI,IAAM,6BAA6B,GAAG,IAAI,0CAAgC,EAAE,CAAC;QAC7E,6BAA6B,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACvE,6BAA6B,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACvE,6BAA6B,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAEjD,OAAO,6BAA6B,CAAC;IACzC,CAAC;IACL,wBAAC;AAAD,CAAC,AAvDD,IAuDC"}
@@ -1,4 +1,4 @@
1
- import CloudLanguagePair from '../api/CloudLanguagePair';
1
+ import CloudLanguagePair from './CloudLanguagePair';
2
2
  export default class CloudLanguagePairsResult {
3
3
  private _accountId;
4
4
  private _languagePairs;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLanguagePairsResult.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/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"}
@@ -0,0 +1,15 @@
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 LanguagePairsResult from '../../common/result/LanguagePairsResult';
6
+ import CloudLanguagePairsResult from '../result/CloudLanguagePairsResult';
7
+ export default class CloudLanguagePairsService {
8
+ private readonly _selfInfo;
9
+ private readonly _client;
10
+ private readonly _token;
11
+ constructor(client: RestClient, token: Token | undefined, selfInfo: SelfInformation | UserSelfInformation | undefined);
12
+ getLanguagePairs(): Promise<LanguagePairsResult>;
13
+ getCloudLanguagePairs(): Promise<CloudLanguagePairsResult>;
14
+ private performGetLanguagePairs;
15
+ }
@@ -0,0 +1,45 @@
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 CloudLanguagePairsResponse_1 = __importDefault(require("../api/CloudLanguagePairsResponse"));
7
+ var CloudLanguagePairApiModel_1 = __importDefault(require("../api/CloudLanguagePairApiModel"));
8
+ var CloudLanguagePairsService = /** @class */ (function () {
9
+ function CloudLanguagePairsService(client, token, selfInfo) {
10
+ this._client = client;
11
+ this._token = token;
12
+ this._selfInfo = selfInfo;
13
+ }
14
+ CloudLanguagePairsService.prototype.getLanguagePairs = function () {
15
+ return this.performGetLanguagePairs()
16
+ .then(function (response) { return Promise.resolve(response.toLanguagePairsResult()); })
17
+ .catch(function (e) { return Promise.reject(e); });
18
+ };
19
+ CloudLanguagePairsService.prototype.getCloudLanguagePairs = function () {
20
+ return this.performGetLanguagePairs()
21
+ .then(function (response) { return Promise.resolve(response.toCloudLanguagePairsResult()); })
22
+ .catch(function (e) { return Promise.reject(e); });
23
+ };
24
+ CloudLanguagePairsService.prototype.performGetLanguagePairs = function () {
25
+ var _this = this;
26
+ var _a;
27
+ return this._client
28
+ .requestJson(this._token, 'GET', '/v4/accounts/' + ((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId) + '/subscriptions/language-pairs')
29
+ .then(function (response) {
30
+ var _a, _b;
31
+ var lpsResponse = new CloudLanguagePairsResponse_1.default();
32
+ lpsResponse.accountId = response.accountId || ((_a = _this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId);
33
+ lpsResponse.languagePairs = (_b = response === null || response === void 0 ? void 0 : response.languagePairs) === null || _b === void 0 ? void 0 : _b.map(function (lp) {
34
+ var cloudLanguagePair = new CloudLanguagePairApiModel_1.default();
35
+ Object.assign(cloudLanguagePair, lp);
36
+ return cloudLanguagePair;
37
+ });
38
+ return Promise.resolve(lpsResponse);
39
+ })
40
+ .catch(function (e) { return Promise.reject(e); });
41
+ };
42
+ return CloudLanguagePairsService;
43
+ }());
44
+ exports.default = CloudLanguagePairsService;
45
+ //# sourceMappingURL=CloudLanguagePairsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLanguagePairsService.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/cloud/service/CloudLanguagePairsService.ts"],"names":[],"mappings":";;;;;AAMA,iGAA2E;AAC3E,+FAAyE;AAEzE;IAKI,mCACI,MAAkB,EAClB,KAAwB,EACxB,QAA2D;QAE3D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC9B,CAAC;IAEM,oDAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,uBAAuB,EAAE;aAChC,IAAI,CAAC,UAAC,QAAoC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,EAAjD,CAAiD,CAAC;aACjG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEM,yDAAqB,GAA5B;QACI,OAAO,IAAI,CAAC,uBAAuB,EAAE;aAChC,IAAI,CAAC,UAAC,QAAoC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,EAAE,CAAC,EAAtD,CAAsD,CAAC;aACtG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEO,2DAAuB,GAA/B;QAAA,iBAoBC;;QAnBG,OAAO,IAAI,CAAC,OAAO;aACd,WAAW,CACR,IAAI,CAAC,MAAM,EACX,KAAK,EACL,eAAe,IAAG,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAA,GAAG,+BAA+B,CAChF;aACA,IAAI,CAAC,UAAC,QAAQ;;YACX,IAAM,WAAW,GAAG,IAAI,oCAA0B,EAAE,CAAC;YACrD,WAAW,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,KAAI,MAAA,KAAI,CAAC,SAAS,0CAAE,SAAS,CAAA,CAAC;YACxE,WAAW,CAAC,aAAa,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAO;gBAC7D,IAAM,iBAAiB,GAAG,IAAI,mCAAyB,EAAE,CAAC;gBAC1D,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;gBAErC,OAAO,iBAAiB,CAAC;YAC7B,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,gCAAC;AAAD,CAAC,AAhDD,IAgDC"}
@@ -0,0 +1,16 @@
1
+ import GetLinguisticOptionsRequest from '../../../linguistic-options/common/request/GetLinguisticOptionsRequest';
2
+ export default class LanguagePair {
3
+ private _name;
4
+ private _sourceLanguageId;
5
+ private _targetLanguageId;
6
+ private _model;
7
+ get name(): string | undefined;
8
+ set name(value: string | undefined);
9
+ get sourceLanguageId(): string | undefined;
10
+ set sourceLanguageId(value: string | undefined);
11
+ get targetLanguageId(): string | undefined;
12
+ set targetLanguageId(value: string | undefined);
13
+ get model(): string | undefined;
14
+ set model(value: string | undefined);
15
+ toGetLinguisticOptionsRequest(): GetLinguisticOptionsRequest;
16
+ }
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ var GetLinguisticOptionsRequest_1 = __importDefault(require("../../../linguistic-options/common/request/GetLinguisticOptionsRequest"));
3
7
  var LanguagePair = /** @class */ (function () {
4
8
  function LanguagePair() {
5
9
  }
@@ -43,6 +47,13 @@ var LanguagePair = /** @class */ (function () {
43
47
  enumerable: false,
44
48
  configurable: true
45
49
  });
50
+ LanguagePair.prototype.toGetLinguisticOptionsRequest = function () {
51
+ var linguisticOptionsRequest = new GetLinguisticOptionsRequest_1.default();
52
+ linguisticOptionsRequest.sourceLanguageId = this.sourceLanguageId;
53
+ linguisticOptionsRequest.targetLanguageId = this.targetLanguageId;
54
+ linguisticOptionsRequest.model = this.model;
55
+ return linguisticOptionsRequest;
56
+ };
46
57
  return LanguagePair;
47
58
  }());
48
59
  exports.default = LanguagePair;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguagePair.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/common/result/LanguagePair.ts"],"names":[],"mappings":";;;;;AAAA,uIAAiH;AAEjH;IAAA;IA8CA,CAAC;IAxCG,sBAAI,8BAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,0CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,0CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,+BAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,oDAA6B,GAA7B;QACI,IAAM,wBAAwB,GAAG,IAAI,qCAA2B,EAAE,CAAC;QACnE,wBAAwB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAClE,wBAAwB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAClE,wBAAwB,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAE5C,OAAO,wBAAwB,CAAC;IACpC,CAAC;IACL,mBAAC;AAAD,CAAC,AA9CD,IA8CC"}
@@ -1,4 +1,4 @@
1
- import LanguagePair from '../api/LanguagePair';
1
+ import LanguagePair from './LanguagePair';
2
2
  export default class LanguagePairsResult {
3
3
  private _languagePairs;
4
4
  get languagePairs(): LanguagePair[] | undefined;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguagePairsResult.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/common/result/LanguagePairsResult.ts"],"names":[],"mappings":";;AAEA;IAAA;IAUA,CAAC;IAPG,sBAAI,8CAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAiC;YAC/C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,0BAAC;AAAD,CAAC,AAVD,IAUC"}
@@ -0,0 +1,17 @@
1
+ import MemberPairApiModel from './MemberPairApiModel';
2
+ import EdgeLinguisticOptionApiModel from '../../../linguistic-options/edge/api/EdgeLinguisticOptionApiModel';
3
+ import EdgeLanguagePair from '../result/EdgeLanguagePair';
4
+ import LanguagePair from '../../common/result/LanguagePair';
5
+ export default class EdgeLanguagePairApiModel extends MemberPairApiModel {
6
+ private _memberPairs;
7
+ private _isChain;
8
+ private _linguisticOptions;
9
+ get memberPairs(): MemberPairApiModel[] | undefined;
10
+ set memberPairs(value: MemberPairApiModel[] | undefined);
11
+ get isChain(): boolean | undefined;
12
+ set isChain(value: boolean | undefined);
13
+ get linguisticOptions(): EdgeLinguisticOptionApiModel[] | undefined;
14
+ set linguisticOptions(value: EdgeLinguisticOptionApiModel[] | undefined);
15
+ toEdgeLanguagePair(): EdgeLanguagePair;
16
+ toLanguagePair(): LanguagePair;
17
+ }
@@ -0,0 +1,89 @@
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 MemberPairApiModel_1 = __importDefault(require("./MemberPairApiModel"));
22
+ var EdgeLanguagePair_1 = __importDefault(require("../result/EdgeLanguagePair"));
23
+ var LanguagePair_1 = __importDefault(require("../../common/result/LanguagePair"));
24
+ var EdgeLanguagePairApiModel = /** @class */ (function (_super) {
25
+ __extends(EdgeLanguagePairApiModel, _super);
26
+ function EdgeLanguagePairApiModel() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ Object.defineProperty(EdgeLanguagePairApiModel.prototype, "memberPairs", {
30
+ get: function () {
31
+ return this._memberPairs;
32
+ },
33
+ set: function (value) {
34
+ this._memberPairs = value;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ Object.defineProperty(EdgeLanguagePairApiModel.prototype, "isChain", {
40
+ get: function () {
41
+ return this._isChain;
42
+ },
43
+ set: function (value) {
44
+ this._isChain = value;
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ Object.defineProperty(EdgeLanguagePairApiModel.prototype, "linguisticOptions", {
50
+ get: function () {
51
+ return this._linguisticOptions;
52
+ },
53
+ set: function (value) {
54
+ this._linguisticOptions = value;
55
+ },
56
+ enumerable: false,
57
+ configurable: true
58
+ });
59
+ EdgeLanguagePairApiModel.prototype.toEdgeLanguagePair = function () {
60
+ var _a, _b;
61
+ var edgeLanguagePair = new EdgeLanguagePair_1.default();
62
+ edgeLanguagePair.languagePairId = this.languagePairId;
63
+ edgeLanguagePair.sourceLanguage = this.sourceLanguage;
64
+ edgeLanguagePair.sourceLanguageId = this.sourceLanguageId;
65
+ edgeLanguagePair.targetLanguage = this.targetLanguage;
66
+ edgeLanguagePair.targetLanguageId = this.targetLanguageId;
67
+ edgeLanguagePair.domain = this.domain;
68
+ edgeLanguagePair.platform = this.platform;
69
+ edgeLanguagePair.technology = this.technology;
70
+ edgeLanguagePair.version = this.version;
71
+ edgeLanguagePair.isChain = this.isChain;
72
+ edgeLanguagePair.memberPairs = (_a = this.memberPairs) === null || _a === void 0 ? void 0 : _a.map(function (memberPairApiModel) { return memberPairApiModel.toMemberPair(); });
73
+ edgeLanguagePair.linguisticOptions = (_b = this.linguisticOptions) === null || _b === void 0 ? void 0 : _b.map(function (linguisticOptionApiModel) {
74
+ return linguisticOptionApiModel.toEdgeLinguisticOption();
75
+ });
76
+ return edgeLanguagePair;
77
+ };
78
+ EdgeLanguagePairApiModel.prototype.toLanguagePair = function () {
79
+ var languagePair = new LanguagePair_1.default();
80
+ languagePair.name = this.languagePairId;
81
+ languagePair.sourceLanguageId = this.sourceLanguageId;
82
+ languagePair.targetLanguageId = this.targetLanguageId;
83
+ languagePair.model = this.domain;
84
+ return languagePair;
85
+ };
86
+ return EdgeLanguagePairApiModel;
87
+ }(MemberPairApiModel_1.default));
88
+ exports.default = EdgeLanguagePairApiModel;
89
+ //# sourceMappingURL=EdgeLanguagePairApiModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeLanguagePairApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,4EAAsD;AAEtD,gFAA0D;AAC1D,kFAA4D;AAE5D;IAAsD,4CAAkB;IAAxE;;IA0DA,CAAC;IArDG,sBAAI,iDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAuC;YACnD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,6CAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAA0B;YAClC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,uDAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAiD;YACnE,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,qDAAkB,GAAlB;;QACI,IAAM,gBAAgB,GAAG,IAAI,0BAAgB,EAAE,CAAC;QAChD,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACtD,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACtD,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC1D,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACtD,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC1D,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACtC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC1C,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAC9C,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QACxC,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QACxC,gBAAgB,CAAC,WAAW,GAAG,MAAA,IAAI,CAAC,WAAW,0CAAE,GAAG,CAAC,UAAC,kBAAkB,IAAK,OAAA,kBAAkB,CAAC,YAAY,EAAE,EAAjC,CAAiC,CAAC,CAAC;QAChH,gBAAgB,CAAC,iBAAiB,GAAG,MAAA,IAAI,CAAC,iBAAiB,0CAAE,GAAG,CAAC,UAAC,wBAAwB;YACtF,OAAA,wBAAwB,CAAC,sBAAsB,EAAE;QAAjD,CAAiD,CACpD,CAAC;QAEF,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAED,iDAAc,GAAd;QACI,IAAM,YAAY,GAAG,IAAI,sBAAY,EAAE,CAAC;QACxC,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC;QACxC,YAAY,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtD,YAAY,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtD,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAEjC,OAAO,YAAY,CAAC;IACxB,CAAC;IACL,+BAAC;AAAD,CAAC,AA1DD,CAAsD,4BAAkB,GA0DvE"}
@@ -0,0 +1,10 @@
1
+ import EdgeLanguagePairApiModel from './EdgeLanguagePairApiModel';
2
+ import EdgeLanguagePairsResult from '../result/EdgeLanguagePairsResult';
3
+ import LanguagePairsResult from '../../common/result/LanguagePairsResult';
4
+ export default class EdgeLanguagePairsApiModel {
5
+ private _languagePairs;
6
+ get languagePairs(): EdgeLanguagePairApiModel[];
7
+ set languagePairs(value: EdgeLanguagePairApiModel[]);
8
+ toEdgeLanguagePairsResult(): EdgeLanguagePairsResult;
9
+ toLanguagePairsResult(): LanguagePairsResult;
10
+ }
@@ -0,0 +1,37 @@
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 EdgeLanguagePairsResult_1 = __importDefault(require("../result/EdgeLanguagePairsResult"));
7
+ var LanguagePairsResult_1 = __importDefault(require("../../common/result/LanguagePairsResult"));
8
+ var EdgeLanguagePairsApiModel = /** @class */ (function () {
9
+ function EdgeLanguagePairsApiModel() {
10
+ this._languagePairs = [];
11
+ }
12
+ Object.defineProperty(EdgeLanguagePairsApiModel.prototype, "languagePairs", {
13
+ get: function () {
14
+ return this._languagePairs;
15
+ },
16
+ set: function (value) {
17
+ this._languagePairs = value;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ EdgeLanguagePairsApiModel.prototype.toEdgeLanguagePairsResult = function () {
23
+ var _a;
24
+ var edgeLanguagePairsResult = new EdgeLanguagePairsResult_1.default();
25
+ edgeLanguagePairsResult.languagePairs = ((_a = this.languagePairs) === null || _a === void 0 ? void 0 : _a.map(function (lp) { return lp.toEdgeLanguagePair(); })) || [];
26
+ return edgeLanguagePairsResult;
27
+ };
28
+ EdgeLanguagePairsApiModel.prototype.toLanguagePairsResult = function () {
29
+ var _a;
30
+ var languagePairsResult = new LanguagePairsResult_1.default();
31
+ languagePairsResult.languagePairs = ((_a = this.languagePairs) === null || _a === void 0 ? void 0 : _a.map(function (lp) { return lp.toLanguagePair(); })) || [];
32
+ return languagePairsResult;
33
+ };
34
+ return EdgeLanguagePairsApiModel;
35
+ }());
36
+ exports.default = EdgeLanguagePairsApiModel;
37
+ //# sourceMappingURL=EdgeLanguagePairsApiModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeLanguagePairsApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.ts"],"names":[],"mappings":";;;;;AACA,8FAAwE;AACxE,gGAA0E;AAE1E;IAAA;QACY,mBAAc,GAA+B,EAAE,CAAC;IAuB5D,CAAC;IArBG,sBAAI,oDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAiC;YAC/C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAMD,6DAAyB,GAAzB;;QACI,IAAM,uBAAuB,GAAG,IAAI,iCAAuB,EAAE,CAAC;QAC9D,uBAAuB,CAAC,aAAa,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,kBAAkB,EAAE,EAAvB,CAAuB,CAAC,KAAI,EAAE,CAAC;QAEvG,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,yDAAqB,GAArB;;QACI,IAAM,mBAAmB,GAAG,IAAI,6BAAmB,EAAE,CAAC;QACtD,mBAAmB,CAAC,aAAa,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,cAAc,EAAE,EAAnB,CAAmB,CAAC,KAAI,EAAE,CAAC;QAE/F,OAAO,mBAAmB,CAAC;IAC/B,CAAC;IACL,gCAAC;AAAD,CAAC,AAxBD,IAwBC"}
@@ -0,0 +1,31 @@
1
+ import MemberPair from '../result/MemberPair';
2
+ export default class MemberPairApiModel {
3
+ private _languagePairId;
4
+ private _sourceLanguage;
5
+ private _sourceLanguageId;
6
+ private _targetLanguage;
7
+ private _targetLanguageId;
8
+ private _domain;
9
+ private _platform;
10
+ private _technology;
11
+ private _version;
12
+ get languagePairId(): string | undefined;
13
+ set languagePairId(value: string | undefined);
14
+ get sourceLanguage(): string | undefined;
15
+ set sourceLanguage(value: string | undefined);
16
+ get sourceLanguageId(): string | undefined;
17
+ set sourceLanguageId(value: string | undefined);
18
+ get targetLanguage(): string | undefined;
19
+ set targetLanguage(value: string | undefined);
20
+ get targetLanguageId(): string | undefined;
21
+ set targetLanguageId(value: string | undefined);
22
+ get domain(): string | undefined;
23
+ set domain(value: string | undefined);
24
+ get platform(): string | undefined;
25
+ set platform(value: string | undefined);
26
+ get technology(): string | undefined;
27
+ set technology(value: string | undefined);
28
+ get version(): string | undefined;
29
+ set version(value: string | undefined);
30
+ toMemberPair(): MemberPair;
31
+ }