@language-weaver/lw-sdk-js 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (426) hide show
  1. package/lib/common/constants/ApprovalStatus.d.ts +1 -1
  2. package/lib/common/constants/ApprovalStatus.js.map +1 -1
  3. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.d.ts +0 -0
  4. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.js +0 -0
  5. package/lib/common/constants/CloudFeedbackSortCriteria.js.map +1 -0
  6. package/lib/common/constants/Format.d.ts +1 -1
  7. package/lib/common/constants/Format.js +4 -1
  8. package/lib/common/constants/Format.js.map +1 -1
  9. package/lib/common/constants/FormatToMimeType.js +2 -0
  10. package/lib/common/constants/FormatToMimeType.js.map +1 -1
  11. package/lib/common/constants/PdfConverter.d.ts +15 -0
  12. package/lib/common/constants/PdfConverter.js +22 -0
  13. package/lib/common/constants/PdfConverter.js.map +1 -0
  14. package/lib/common/constants/QualityEstimation.d.ts +6 -0
  15. package/lib/common/constants/QualityEstimation.js +17 -0
  16. package/lib/common/constants/QualityEstimation.js.map +1 -0
  17. package/lib/common/constants/Statuses.d.ts +6 -0
  18. package/lib/common/constants/Statuses.js +7 -1
  19. package/lib/common/constants/Statuses.js.map +1 -1
  20. package/lib/common/constants/TranslationConstants.d.ts +20 -3
  21. package/lib/common/constants/TranslationConstants.js +25 -5
  22. package/lib/common/constants/TranslationConstants.js.map +1 -1
  23. package/lib/common/exceptions/ContentInsightsException.d.ts +4 -0
  24. package/lib/common/exceptions/ContentInsightsException.js +17 -0
  25. package/lib/common/exceptions/ContentInsightsException.js.map +1 -0
  26. package/lib/common/external/communication/RestClient.d.ts +1 -1
  27. package/lib/common/external/communication/RestClient.js +14 -16
  28. package/lib/common/external/communication/RestClient.js.map +1 -1
  29. package/lib/common/utils/HttpUtils.d.ts +1 -0
  30. package/lib/common/utils/HttpUtils.js +13 -0
  31. package/lib/common/utils/HttpUtils.js.map +1 -1
  32. package/lib/common/utils/Utils.d.ts +7 -0
  33. package/lib/common/utils/Utils.js +127 -0
  34. package/lib/common/utils/Utils.js.map +1 -1
  35. package/lib/index.d.ts +62 -19
  36. package/lib/index.js +104 -20
  37. package/lib/index.js.map +1 -1
  38. package/lib/translation/common/LanguageWeaverClient.d.ts +19 -2
  39. package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +45 -4
  40. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js +239 -100
  41. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -1
  42. package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +43 -6
  43. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js +287 -150
  44. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -1
  45. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +1 -1
  46. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +1 -1
  47. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -1
  48. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.d.ts +23 -0
  49. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js +69 -0
  50. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js.map +1 -0
  51. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.d.ts +10 -0
  52. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js +39 -0
  53. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js.map +1 -0
  54. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.d.ts +12 -0
  55. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js +32 -0
  56. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js.map +1 -0
  57. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.d.ts +16 -0
  58. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js +42 -0
  59. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js.map +1 -0
  60. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.d.ts +12 -0
  61. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js +39 -0
  62. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js.map +1 -0
  63. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.d.ts +15 -0
  64. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js +57 -0
  65. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js.map +1 -0
  66. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.d.ts +13 -0
  67. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js +46 -0
  68. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js.map +1 -0
  69. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.d.ts +3 -0
  70. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js +30 -0
  71. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js.map +1 -0
  72. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.d.ts +8 -0
  73. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js +29 -0
  74. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js.map +1 -0
  75. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.d.ts +16 -0
  76. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js +49 -0
  77. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js.map +1 -0
  78. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.d.ts +8 -0
  79. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js +29 -0
  80. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js.map +1 -0
  81. package/lib/translation/content-insights/cloud/result/CloudSegment.d.ts +6 -0
  82. package/lib/translation/content-insights/cloud/result/CloudSegment.js +40 -0
  83. package/lib/translation/content-insights/cloud/result/CloudSegment.js.map +1 -0
  84. package/lib/translation/content-insights/cloud/result/CloudSummarization.d.ts +6 -0
  85. package/lib/translation/content-insights/cloud/result/CloudSummarization.js +19 -0
  86. package/lib/translation/content-insights/cloud/result/CloudSummarization.js.map +1 -0
  87. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.d.ts +20 -0
  88. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js +248 -0
  89. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js.map +1 -0
  90. package/lib/translation/content-insights/common/request/ContentInsightsRequest.d.ts +7 -0
  91. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js +23 -0
  92. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js.map +1 -0
  93. package/lib/translation/content-insights/common/result/ContentInsightsResult.d.ts +6 -0
  94. package/lib/translation/content-insights/common/result/ContentInsightsResult.js +19 -0
  95. package/lib/translation/content-insights/common/result/ContentInsightsResult.js.map +1 -0
  96. package/lib/translation/content-insights/common/result/Segment.d.ts +8 -0
  97. package/lib/translation/content-insights/common/result/Segment.js +29 -0
  98. package/lib/translation/content-insights/common/result/Segment.js.map +1 -0
  99. package/lib/translation/content-insights/common/result/Summarization.d.ts +8 -0
  100. package/lib/translation/content-insights/common/result/Summarization.js +25 -0
  101. package/lib/translation/content-insights/common/result/Summarization.js.map +1 -0
  102. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.d.ts +4 -0
  103. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js +145 -0
  104. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js.map +1 -0
  105. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.d.ts +13 -0
  106. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js +53 -0
  107. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js.map +1 -0
  108. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.d.ts +12 -0
  109. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js +46 -0
  110. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js.map +1 -0
  111. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.d.ts +5 -0
  112. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js +19 -0
  113. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js.map +1 -0
  114. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.d.ts +9 -0
  115. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js +29 -0
  116. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js.map +1 -0
  117. package/lib/translation/content-insights/edge/result/EdgeSegment.d.ts +3 -0
  118. package/lib/translation/content-insights/edge/result/EdgeSegment.js +30 -0
  119. package/lib/translation/content-insights/edge/result/EdgeSegment.js.map +1 -0
  120. package/lib/translation/content-insights/edge/result/EdgeSummarization.d.ts +6 -0
  121. package/lib/translation/content-insights/edge/result/EdgeSummarization.js +19 -0
  122. package/lib/translation/content-insights/edge/result/EdgeSummarization.js.map +1 -0
  123. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.d.ts +14 -0
  124. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js +96 -0
  125. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js.map +1 -0
  126. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.d.ts +14 -0
  127. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js +72 -0
  128. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js.map +1 -0
  129. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.d.ts +36 -0
  130. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js +136 -0
  131. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js.map +1 -0
  132. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.d.ts +3 -3
  133. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.js +0 -0
  134. package/lib/translation/dictionaries/cloud/result/CloudDictionariesResult.js.map +1 -0
  135. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.d.ts → dictionaries/cloud/result/CloudDictionary.d.ts} +1 -1
  136. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.js → dictionaries/cloud/result/CloudDictionary.js} +15 -15
  137. package/lib/translation/dictionaries/cloud/result/CloudDictionary.js.map +1 -0
  138. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.d.ts +15 -0
  139. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js +51 -0
  140. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js.map +1 -0
  141. package/lib/translation/dictionaries/common/result/DictionariesResult.d.ts +7 -0
  142. package/lib/translation/{translate → dictionaries}/common/result/DictionariesResult.js +0 -0
  143. package/lib/translation/dictionaries/common/result/DictionariesResult.js.map +1 -0
  144. package/lib/translation/{translate/common/api/DictionaryResponse.d.ts → dictionaries/common/result/Dictionary.d.ts} +1 -1
  145. package/lib/translation/{translate/common/api/DictionaryResponse.js → dictionaries/common/result/Dictionary.js} +8 -8
  146. package/lib/translation/dictionaries/common/result/Dictionary.js.map +1 -0
  147. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.d.ts +22 -0
  148. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js +84 -0
  149. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js.map +1 -0
  150. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.d.ts +15 -0
  151. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js +58 -0
  152. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js.map +1 -0
  153. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.d.ts +3 -3
  154. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.js +0 -0
  155. package/lib/translation/dictionaries/edge/result/EdgeDictionariesResult.js.map +1 -0
  156. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.d.ts → dictionaries/edge/result/EdgeDictionary.d.ts} +1 -1
  157. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.js → dictionaries/edge/result/EdgeDictionary.js} +8 -8
  158. package/lib/translation/dictionaries/edge/result/EdgeDictionary.js.map +1 -0
  159. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.d.ts +12 -0
  160. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js +51 -0
  161. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js.map +1 -0
  162. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.d.ts +4 -3
  163. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +28 -23
  164. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -1
  165. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.d.ts +7 -0
  166. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.js +24 -0
  167. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.js.map +1 -0
  168. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.d.ts +9 -0
  169. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.js +31 -0
  170. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.js.map +1 -0
  171. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.d.ts +1 -1
  172. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.js.map +1 -1
  173. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js +6 -1
  174. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js.map +1 -1
  175. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js +4 -4
  176. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js.map +1 -1
  177. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.d.ts +3 -0
  178. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js +10 -0
  179. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js.map +1 -1
  180. package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.d.ts +21 -0
  181. package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.js +104 -0
  182. package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.js.map +1 -0
  183. package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.d.ts +3 -0
  184. package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.js +30 -0
  185. package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.js.map +1 -0
  186. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +1 -1
  187. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.d.ts +3 -0
  188. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.js +30 -0
  189. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.js.map +1 -0
  190. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.d.ts +15 -0
  191. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.js +77 -0
  192. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.js.map +1 -0
  193. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.d.ts +1 -1
  194. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.js +1 -1
  195. package/lib/translation/feedback/cloud/result/CloudAuditData.js.map +1 -0
  196. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +7 -3
  197. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js +10 -0
  198. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js.map +1 -1
  199. package/lib/translation/feedback/cloud/service/CloudFeedbackService.d.ts +21 -0
  200. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +111 -1
  201. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -1
  202. package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.d.ts +9 -0
  203. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.js +20 -1
  204. package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.js.map +1 -0
  205. package/lib/translation/feedback/common/request/CreateFeedbackRequest.d.ts +29 -0
  206. package/lib/translation/feedback/common/request/CreateFeedbackRequest.js +123 -0
  207. package/lib/translation/feedback/common/request/CreateFeedbackRequest.js.map +1 -0
  208. package/lib/translation/feedback/common/request/DeleteFeedbackRequest.d.ts +5 -0
  209. package/lib/translation/feedback/common/request/DeleteFeedbackRequest.js +19 -0
  210. package/lib/translation/feedback/common/request/DeleteFeedbackRequest.js.map +1 -0
  211. package/lib/translation/feedback/common/request/FilterFeedbackRequest.d.ts +4 -4
  212. package/lib/translation/feedback/common/request/FilterFeedbackRequest.js.map +1 -1
  213. package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.d.ts +9 -0
  214. package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.js +29 -0
  215. package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.js.map +1 -0
  216. package/lib/translation/feedback/common/request/UpdateFeedbackRequest.d.ts +19 -0
  217. package/lib/translation/feedback/common/request/UpdateFeedbackRequest.js +80 -0
  218. package/lib/translation/feedback/common/request/UpdateFeedbackRequest.js.map +1 -0
  219. package/lib/translation/feedback/common/{model → result}/AuditData.d.ts +0 -0
  220. package/lib/translation/feedback/common/{model → result}/AuditData.js +0 -0
  221. package/lib/translation/feedback/common/result/AuditData.js.map +1 -0
  222. package/lib/translation/feedback/common/result/FeedbackResult.d.ts +3 -1
  223. package/lib/translation/feedback/common/result/FeedbackResult.js +8 -0
  224. package/lib/translation/feedback/common/result/FeedbackResult.js.map +1 -1
  225. package/lib/translation/feedback/common/validator/FeedbackValidator.d.ts +10 -0
  226. package/lib/translation/feedback/common/validator/FeedbackValidator.js +38 -0
  227. package/lib/translation/feedback/common/validator/FeedbackValidator.js.map +1 -0
  228. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +3 -2
  229. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +43 -15
  230. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -1
  231. package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.d.ts +12 -0
  232. package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.js +63 -0
  233. package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.js.map +1 -0
  234. package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.d.ts +3 -0
  235. package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.js +30 -0
  236. package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.js.map +1 -0
  237. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.d.ts +3 -0
  238. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.js +30 -0
  239. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.js.map +1 -0
  240. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.d.ts +9 -0
  241. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.js +50 -0
  242. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.js.map +1 -0
  243. package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +22 -0
  244. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +100 -3
  245. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -1
  246. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.d.ts +3 -0
  247. package/lib/translation/feedback/edge/{validators → validator}/EdgeFeedbackValidator.js +1 -1
  248. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.js.map +1 -0
  249. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.d.ts +21 -0
  250. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js +81 -0
  251. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js.map +1 -0
  252. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.d.ts +13 -0
  253. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js +47 -0
  254. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js.map +1 -0
  255. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.d.ts +2 -0
  256. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.js +11 -0
  257. package/lib/translation/language-pairs/cloud/result/CloudLanguagePair.js.map +1 -0
  258. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.d.ts +1 -1
  259. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.js +0 -0
  260. package/lib/translation/language-pairs/cloud/result/CloudLanguagePairsResult.js.map +1 -0
  261. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.d.ts +15 -0
  262. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js +45 -0
  263. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js.map +1 -0
  264. package/lib/translation/language-pairs/common/result/LanguagePair.d.ts +16 -0
  265. package/lib/translation/{translate/common/api → language-pairs/common/result}/LanguagePair.js +11 -0
  266. package/lib/translation/language-pairs/common/result/LanguagePair.js.map +1 -0
  267. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.d.ts +1 -1
  268. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.js +0 -0
  269. package/lib/translation/language-pairs/common/result/LanguagePairsResult.js.map +1 -0
  270. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.d.ts +17 -0
  271. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js +89 -0
  272. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js.map +1 -0
  273. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.d.ts +10 -0
  274. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js +37 -0
  275. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js.map +1 -0
  276. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.d.ts +31 -0
  277. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js +116 -0
  278. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js.map +1 -0
  279. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.d.ts +15 -0
  280. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/EdgeLanguagePair.js +20 -0
  281. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.js.map +1 -0
  282. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.d.ts +1 -1
  283. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.js +0 -0
  284. package/lib/translation/language-pairs/edge/result/EdgeLanguagePairsResult.js.map +1 -0
  285. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.d.ts +0 -0
  286. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.js +0 -0
  287. package/lib/translation/language-pairs/edge/result/MemberPair.js.map +1 -0
  288. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.d.ts +14 -0
  289. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js +80 -0
  290. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js.map +1 -0
  291. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.d.ts +13 -0
  292. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js +68 -0
  293. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js.map +1 -0
  294. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.d.ts +6 -0
  295. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js +19 -0
  296. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js.map +1 -0
  297. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.d.ts +3 -0
  298. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js +30 -0
  299. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js.map +1 -0
  300. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.d.ts +10 -0
  301. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js +57 -0
  302. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js.map +1 -0
  303. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.d.ts +6 -0
  304. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js +19 -0
  305. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js.map +1 -0
  306. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.d.ts +19 -0
  307. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js +72 -0
  308. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js.map +1 -0
  309. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.d.ts +3 -0
  310. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js +30 -0
  311. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js.map +1 -0
  312. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.d.ts +11 -0
  313. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js +39 -0
  314. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js.map +1 -0
  315. package/lib/translation/{translate/common/api/LanguagePair.d.ts → linguistic-options/common/request/GetLinguisticOptionsRequest.d.ts} +1 -4
  316. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js +39 -0
  317. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js.map +1 -0
  318. package/lib/translation/linguistic-options/common/result/LinguisticOption.d.ts +11 -0
  319. package/lib/translation/linguistic-options/common/result/LinguisticOption.js +39 -0
  320. package/lib/translation/linguistic-options/common/result/LinguisticOption.js.map +1 -0
  321. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.d.ts +6 -0
  322. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js +19 -0
  323. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js.map +1 -0
  324. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.d.ts +4 -0
  325. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js +25 -0
  326. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js.map +1 -0
  327. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.d.ts +7 -0
  328. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js +46 -0
  329. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js.map +1 -0
  330. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.d.ts +6 -0
  331. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js +19 -0
  332. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js.map +1 -0
  333. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.d.ts +9 -0
  334. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js +50 -0
  335. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js.map +1 -0
  336. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.d.ts +4 -0
  337. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js +37 -0
  338. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js.map +1 -0
  339. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.d.ts +6 -0
  340. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js +19 -0
  341. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js.map +1 -0
  342. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.d.ts +18 -0
  343. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js +101 -0
  344. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js.map +1 -0
  345. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.d.ts +3 -0
  346. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js +30 -0
  347. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js.map +1 -0
  348. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.d.ts +3 -0
  349. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js +30 -0
  350. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js.map +1 -0
  351. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.d.ts +3 -0
  352. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js +21 -0
  353. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -1
  354. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.d.ts +26 -0
  355. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js +80 -0
  356. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js.map +1 -0
  357. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.d.ts +0 -3
  358. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js +0 -10
  359. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js.map +1 -1
  360. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.d.ts +3 -3
  361. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js +3 -3
  362. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js.map +1 -1
  363. package/lib/translation/translate/common/request/RetrieveFileRequest.d.ts +11 -0
  364. package/lib/translation/translate/common/request/RetrieveFileRequest.js +39 -0
  365. package/lib/translation/translate/common/request/RetrieveFileRequest.js.map +1 -0
  366. package/lib/translation/translate/common/request/TranslateBatchFileRequest.d.ts +7 -0
  367. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js +20 -7
  368. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -1
  369. package/lib/translation/translate/common/request/TranslateFileRequest.d.ts +4 -0
  370. package/lib/translation/translate/common/request/TranslateFileRequest.js +10 -0
  371. package/lib/translation/translate/common/request/TranslateFileRequest.js.map +1 -1
  372. package/lib/translation/translate/common/request/TranslateRequest.d.ts +3 -0
  373. package/lib/translation/translate/common/request/TranslateRequest.js +10 -0
  374. package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -1
  375. package/lib/translation/translate/common/request/TranslateTextRequest.d.ts +3 -1
  376. package/lib/translation/translate/common/request/TranslateTextRequest.js +9 -1
  377. package/lib/translation/translate/common/request/TranslateTextRequest.js.map +1 -1
  378. package/lib/translation/translate/common/result/TranslationFileResult.d.ts +6 -0
  379. package/lib/translation/translate/common/result/TranslationFileResult.js +20 -0
  380. package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -1
  381. package/lib/translation/translate/common/utils/TranslateFileUtil.d.ts +3 -1
  382. package/lib/translation/translate/common/utils/TranslateFileUtil.js +26 -53
  383. package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -1
  384. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.d.ts +7 -0
  385. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js +40 -0
  386. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js.map +1 -0
  387. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.d.ts +2 -0
  388. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js +16 -0
  389. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -1
  390. package/lib/translation/translate/edge/request/EdgeTranslateRequest.d.ts +29 -0
  391. package/lib/translation/translate/edge/request/EdgeTranslateRequest.js +109 -0
  392. package/lib/translation/translate/edge/request/EdgeTranslateRequest.js.map +1 -0
  393. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.d.ts +2 -0
  394. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js +16 -0
  395. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -1
  396. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.d.ts +0 -3
  397. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js +0 -10
  398. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js.map +1 -1
  399. package/lib/version.d.ts +1 -1
  400. package/lib/version.js +1 -1
  401. package/package.json +2 -2
  402. package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +0 -1
  403. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +0 -1
  404. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.d.ts +0 -5
  405. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +0 -1
  406. package/lib/translation/feedback/common/model/AuditData.js.map +0 -1
  407. package/lib/translation/feedback/common/validators/FeedbackValidator.d.ts +0 -2
  408. package/lib/translation/feedback/common/validators/FeedbackValidator.js +0 -9
  409. package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +0 -1
  410. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +0 -3
  411. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +0 -1
  412. package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +0 -1
  413. package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +0 -1
  414. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +0 -1
  415. package/lib/translation/translate/cloud/result/CloudLanguagePairsResult.js.map +0 -1
  416. package/lib/translation/translate/common/api/DictionaryResponse.js.map +0 -1
  417. package/lib/translation/translate/common/api/LanguagePair.js.map +0 -1
  418. package/lib/translation/translate/common/result/DictionariesResult.d.ts +0 -7
  419. package/lib/translation/translate/common/result/DictionariesResult.js.map +0 -1
  420. package/lib/translation/translate/common/result/LanguagePairsResult.js.map +0 -1
  421. package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +0 -1
  422. package/lib/translation/translate/edge/api/EdgeLanguagePair.d.ts +0 -9
  423. package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +0 -1
  424. package/lib/translation/translate/edge/api/MemberPair.js.map +0 -1
  425. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +0 -1
  426. package/lib/translation/translate/edge/result/EdgeLanguagePairsResult.js.map +0 -1
@@ -0,0 +1,63 @@
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 CreateFeedbackRequest_1 = __importDefault(require("../../common/request/CreateFeedbackRequest"));
22
+ var EdgeFeedbackApiModel_1 = __importDefault(require("../api/EdgeFeedbackApiModel"));
23
+ var EdgeCreateFeedbackRequest = /** @class */ (function (_super) {
24
+ __extends(EdgeCreateFeedbackRequest, _super);
25
+ function EdgeCreateFeedbackRequest() {
26
+ return _super !== null && _super.apply(this, arguments) || this;
27
+ }
28
+ Object.defineProperty(EdgeCreateFeedbackRequest.prototype, "languagePairId", {
29
+ get: function () {
30
+ return this._languagePairId;
31
+ },
32
+ set: function (value) {
33
+ this._languagePairId = value;
34
+ },
35
+ enumerable: false,
36
+ configurable: true
37
+ });
38
+ Object.defineProperty(EdgeCreateFeedbackRequest.prototype, "approvalState", {
39
+ get: function () {
40
+ return this._approvalState;
41
+ },
42
+ set: function (value) {
43
+ this._approvalState = value;
44
+ },
45
+ enumerable: false,
46
+ configurable: true
47
+ });
48
+ EdgeCreateFeedbackRequest.prototype.toEdgeFeedbackApiModel = function () {
49
+ var feedbackApiModel = new EdgeFeedbackApiModel_1.default();
50
+ feedbackApiModel.languagePairId = this.languagePairId;
51
+ feedbackApiModel.sourceText = this.sourceText;
52
+ feedbackApiModel.machineTranslation = this.targetText;
53
+ feedbackApiModel.suggestedTranslation = this.suggestedTranslation;
54
+ feedbackApiModel.approvalState = this.approvalState;
55
+ if (this.comments.length > 0) {
56
+ feedbackApiModel.comment = this.comments[0];
57
+ }
58
+ return feedbackApiModel;
59
+ };
60
+ return EdgeCreateFeedbackRequest;
61
+ }(CreateFeedbackRequest_1.default));
62
+ exports.default = EdgeCreateFeedbackRequest;
63
+ //# sourceMappingURL=EdgeCreateFeedbackRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeCreateFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/request/EdgeCreateFeedbackRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qGAA+E;AAE/E,qFAA+D;AAE/D;IAAuD,6CAAqB;IAA5E;;IAiCA,CAAC;IA7BG,sBAAI,qDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,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;IAMM,0DAAsB,GAA7B;QACI,IAAM,gBAAgB,GAAG,IAAI,8BAAoB,EAAE,CAAC;QACpD,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACtD,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAC9C,gBAAgB,CAAC,kBAAkB,GAAG,IAAI,CAAC,UAAU,CAAC;QACtD,gBAAgB,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC;QAClE,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACpD,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1B,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SAC/C;QAED,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACL,gCAAC;AAAD,CAAC,AAjCD,CAAuD,+BAAqB,GAiC3E"}
@@ -0,0 +1,3 @@
1
+ import DeleteFeedbackRequest from '../../common/request/DeleteFeedbackRequest';
2
+ export default class EdgeDeleteFeedbackRequest extends DeleteFeedbackRequest {
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 DeleteFeedbackRequest_1 = __importDefault(require("../../common/request/DeleteFeedbackRequest"));
22
+ var EdgeDeleteFeedbackRequest = /** @class */ (function (_super) {
23
+ __extends(EdgeDeleteFeedbackRequest, _super);
24
+ function EdgeDeleteFeedbackRequest() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ return EdgeDeleteFeedbackRequest;
28
+ }(DeleteFeedbackRequest_1.default));
29
+ exports.default = EdgeDeleteFeedbackRequest;
30
+ //# sourceMappingURL=EdgeDeleteFeedbackRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeDeleteFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qGAA+E;AAE/E;IAAuD,6CAAqB;IAA5E;;IAA8E,CAAC;IAAD,gCAAC;AAAD,CAAC,AAA/E,CAAuD,+BAAqB,GAAG"}
@@ -0,0 +1,3 @@
1
+ import UpdateFeedbackApprovalRequest from '../../common/request/UpdateFeedbackApprovalRequest';
2
+ export default class EdgeUpdateFeedbackApprovalRequest extends UpdateFeedbackApprovalRequest {
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 UpdateFeedbackApprovalRequest_1 = __importDefault(require("../../common/request/UpdateFeedbackApprovalRequest"));
22
+ var EdgeUpdateFeedbackApprovalRequest = /** @class */ (function (_super) {
23
+ __extends(EdgeUpdateFeedbackApprovalRequest, _super);
24
+ function EdgeUpdateFeedbackApprovalRequest() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ return EdgeUpdateFeedbackApprovalRequest;
28
+ }(UpdateFeedbackApprovalRequest_1.default));
29
+ exports.default = EdgeUpdateFeedbackApprovalRequest;
30
+ //# sourceMappingURL=EdgeUpdateFeedbackApprovalRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeUpdateFeedbackApprovalRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qHAA+F;AAE/F;IAA+D,qDAA6B;IAA5F;;IAA8F,CAAC;IAAD,wCAAC;AAAD,CAAC,AAA/F,CAA+D,uCAA6B,GAAG"}
@@ -0,0 +1,9 @@
1
+ import UpdateFeedbackRequest from '../../common/request/UpdateFeedbackRequest';
2
+ import { ApprovalStatus } from '../../../../common/constants/ApprovalStatus';
3
+ import EdgeFeedbackApiModel from '../api/EdgeFeedbackApiModel';
4
+ export default class EdgeUpdateFeedbackRequest extends UpdateFeedbackRequest {
5
+ private _approvalState;
6
+ get approvalState(): ApprovalStatus | undefined;
7
+ set approvalState(value: ApprovalStatus | undefined);
8
+ toEdgeFeedbackApiModel(): EdgeFeedbackApiModel;
9
+ }
@@ -0,0 +1,50 @@
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 UpdateFeedbackRequest_1 = __importDefault(require("../../common/request/UpdateFeedbackRequest"));
22
+ var EdgeFeedbackApiModel_1 = __importDefault(require("../api/EdgeFeedbackApiModel"));
23
+ var EdgeUpdateFeedbackRequest = /** @class */ (function (_super) {
24
+ __extends(EdgeUpdateFeedbackRequest, _super);
25
+ function EdgeUpdateFeedbackRequest() {
26
+ return _super !== null && _super.apply(this, arguments) || this;
27
+ }
28
+ Object.defineProperty(EdgeUpdateFeedbackRequest.prototype, "approvalState", {
29
+ get: function () {
30
+ return this._approvalState;
31
+ },
32
+ set: function (value) {
33
+ this._approvalState = value;
34
+ },
35
+ enumerable: false,
36
+ configurable: true
37
+ });
38
+ EdgeUpdateFeedbackRequest.prototype.toEdgeFeedbackApiModel = function () {
39
+ var feedbackApiModel = new EdgeFeedbackApiModel_1.default();
40
+ feedbackApiModel.suggestedTranslation = this.suggestedTranslation;
41
+ feedbackApiModel.approvalState = this.approvalState;
42
+ if (this.comments.length > 0) {
43
+ feedbackApiModel.comment = this.comments[0];
44
+ }
45
+ return feedbackApiModel;
46
+ };
47
+ return EdgeUpdateFeedbackRequest;
48
+ }(UpdateFeedbackRequest_1.default));
49
+ exports.default = EdgeUpdateFeedbackRequest;
50
+ //# sourceMappingURL=EdgeUpdateFeedbackRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeUpdateFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qGAA+E;AAE/E,qFAA+D;AAE/D;IAAuD,6CAAqB;IAA5E;;IAqBA,CAAC;IAlBG,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;IAMM,0DAAsB,GAA7B;QACI,IAAM,gBAAgB,GAAG,IAAI,8BAAoB,EAAE,CAAC;QACpD,gBAAgB,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC;QAClE,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACpD,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1B,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SAC/C;QAED,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACL,gCAAC;AAAD,CAAC,AArBD,CAAuD,+BAAqB,GAqB3E"}
@@ -4,6 +4,17 @@ import FilterFeedbackRequest from '../../common/request/FilterFeedbackRequest';
4
4
  import FeedbackListResult from '../../common/result/FeedbackListResult';
5
5
  import EdgeFilterFeedbackRequest from '../request/EdgeFilterFeedbackRequest';
6
6
  import EdgeFeedbackListResult from '../result/EdgeFeedbackListResult';
7
+ import CreateFeedbackRequest from '../../common/request/CreateFeedbackRequest';
8
+ import FeedbackResult from '../../common/result/FeedbackResult';
9
+ import EdgeFeedbackResult from '../result/EdgeFeedbackResult';
10
+ import EdgeCreateFeedbackRequest from '../request/EdgeCreateFeedbackRequest';
11
+ import UpdateFeedbackRequest from '../../common/request/UpdateFeedbackRequest';
12
+ import EdgeUpdateFeedbackRequest from '../request/EdgeUpdateFeedbackRequest';
13
+ import UpdateFeedbackApprovalRequest from '../../common/request/UpdateFeedbackApprovalRequest';
14
+ import EdgeUpdateFeedbackApprovalRequest from '../request/EdgeUpdateFeedbackApprovalRequest';
15
+ import DeleteFeedbackRequest from '../../common/request/DeleteFeedbackRequest';
16
+ import EdgeDeleteFeedbackRequest from '../request/EdgeDeleteFeedbackRequest';
17
+ import EdgeLanguagePair from '../../../language-pairs/edge/result/EdgeLanguagePair';
7
18
  export default class EdgeFeedbackService {
8
19
  private readonly _client;
9
20
  private readonly _token;
@@ -11,6 +22,17 @@ export default class EdgeFeedbackService {
11
22
  constructor(client: RestClient, token: Token | undefined);
12
23
  getAllFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
13
24
  getAllEdgeFeedback(pageNumber: number, pageSize?: number, filterRequest?: EdgeFilterFeedbackRequest): Promise<EdgeFeedbackListResult>;
25
+ createFeedback(feedbackRequest: CreateFeedbackRequest, edgeLanguagePair: EdgeLanguagePair): Promise<FeedbackResult>;
26
+ createEdgeFeedback(feedbackRequest: EdgeCreateFeedbackRequest): Promise<EdgeFeedbackResult>;
27
+ updateFeedback(feedbackRequest: UpdateFeedbackRequest): Promise<FeedbackResult>;
28
+ updateEdgeFeedback(feedbackRequest: EdgeUpdateFeedbackRequest): Promise<EdgeFeedbackResult>;
29
+ updateFeedbackApproval(feedbackRequest: UpdateFeedbackApprovalRequest): Promise<FeedbackResult>;
30
+ updateEdgeFeedbackApproval(feedbackRequest: EdgeUpdateFeedbackApprovalRequest): Promise<EdgeFeedbackResult>;
31
+ deleteFeedback(feedbackRequest: DeleteFeedbackRequest): Promise<null>;
32
+ deleteEdgeFeedback(feedbackRequest: EdgeDeleteFeedbackRequest): Promise<null>;
33
+ private performCreateFeedback;
34
+ private performUpdateFeedback;
35
+ private performUpdateFeedbackApproval;
14
36
  private performGetAllFeedback;
15
37
  private getPageQueryParams;
16
38
  private getFilterQueryParams;
@@ -15,11 +15,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var moment_1 = __importDefault(require("moment"));
18
- var EdgeFeedbackValidator_1 = __importDefault(require("../validators/EdgeFeedbackValidator"));
18
+ var EdgeFeedbackValidator_1 = __importDefault(require("../validator/EdgeFeedbackValidator"));
19
19
  var EdgeFeedbackListResponse_1 = __importDefault(require("../api/EdgeFeedbackListResponse"));
20
20
  var EdgeFilterFeedbackRequest_1 = __importDefault(require("../request/EdgeFilterFeedbackRequest"));
21
21
  var TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
22
22
  var EdgeFeedbackApiModel_1 = __importDefault(require("../api/EdgeFeedbackApiModel"));
23
+ var EdgeCreateFeedbackRequest_1 = __importDefault(require("../request/EdgeCreateFeedbackRequest"));
24
+ var EdgeUpdateFeedbackRequest_1 = __importDefault(require("../request/EdgeUpdateFeedbackRequest"));
25
+ var EdgeDeleteFeedbackRequest_1 = __importDefault(require("../request/EdgeDeleteFeedbackRequest"));
26
+ var HttpUtils_1 = __importDefault(require("../../../../common/utils/HttpUtils"));
23
27
  var PAGE_QUERY_PARAM = 'page';
24
28
  var PER_PAGE_QUERY_PARAM = 'perPage';
25
29
  var EdgeFeedbackService = /** @class */ (function () {
@@ -38,6 +42,99 @@ var EdgeFeedbackService = /** @class */ (function () {
38
42
  .then(function (response) { return Promise.resolve(response.toEdgeResult()); })
39
43
  .catch(function (e) { return Promise.reject(e); });
40
44
  };
45
+ EdgeFeedbackService.prototype.createFeedback = function (feedbackRequest, edgeLanguagePair) {
46
+ return this.performCreateFeedback(feedbackRequest, edgeLanguagePair.languagePairId)
47
+ .then(function (response) { return Promise.resolve(response.toResult(edgeLanguagePair)); })
48
+ .catch(function (e) { return Promise.reject(e); });
49
+ };
50
+ EdgeFeedbackService.prototype.createEdgeFeedback = function (feedbackRequest) {
51
+ return this.performCreateFeedback(feedbackRequest, undefined)
52
+ .then(function (response) { return Promise.resolve(response.toEdgeResult()); })
53
+ .catch(function (e) { return Promise.reject(e); });
54
+ };
55
+ EdgeFeedbackService.prototype.updateFeedback = function (feedbackRequest) {
56
+ return this.performUpdateFeedback(feedbackRequest)
57
+ .then(function (response) { return Promise.resolve(response.toResult()); })
58
+ .catch(function (e) { return Promise.reject(e); });
59
+ };
60
+ EdgeFeedbackService.prototype.updateEdgeFeedback = function (feedbackRequest) {
61
+ return this.performUpdateFeedback(feedbackRequest)
62
+ .then(function (response) { return Promise.resolve(response.toEdgeResult()); })
63
+ .catch(function (e) { return Promise.reject(e); });
64
+ };
65
+ EdgeFeedbackService.prototype.updateFeedbackApproval = function (feedbackRequest) {
66
+ return this.performUpdateFeedbackApproval(feedbackRequest)
67
+ .then(function (response) { return Promise.resolve(response.toResult()); })
68
+ .catch(function (e) { return Promise.reject(e); });
69
+ };
70
+ EdgeFeedbackService.prototype.updateEdgeFeedbackApproval = function (feedbackRequest) {
71
+ return this.performUpdateFeedbackApproval(feedbackRequest)
72
+ .then(function (response) { return Promise.resolve(response.toEdgeResult()); })
73
+ .catch(function (e) { return Promise.reject(e); });
74
+ };
75
+ EdgeFeedbackService.prototype.deleteFeedback = function (feedbackRequest) {
76
+ var edgeFeedbackRequest = new EdgeDeleteFeedbackRequest_1.default();
77
+ edgeFeedbackRequest.feedbackId = feedbackRequest.feedbackId;
78
+ return this.deleteEdgeFeedback(edgeFeedbackRequest);
79
+ };
80
+ EdgeFeedbackService.prototype.deleteEdgeFeedback = function (feedbackRequest) {
81
+ var validationError = this._validator.validateDeleteFeedbackRequest(feedbackRequest);
82
+ if (validationError) {
83
+ return Promise.reject({ message: validationError });
84
+ }
85
+ return this._client
86
+ .requestJson(this._token, 'DELETE', TranslationConstants_1.EDGE_CREATE_FEEDBACK_PATH + '/' + feedbackRequest.feedbackId)
87
+ .then(function () { return Promise.resolve(null); })
88
+ .catch(function (e) { return Promise.reject(e); });
89
+ };
90
+ EdgeFeedbackService.prototype.performCreateFeedback = function (feedbackRequest, languagePairId) {
91
+ var validationError = this._validator.validateSingleComment(feedbackRequest);
92
+ if (validationError) {
93
+ return Promise.reject({ message: validationError });
94
+ }
95
+ var apiRequest;
96
+ if (feedbackRequest instanceof EdgeCreateFeedbackRequest_1.default) {
97
+ var edgeFeedbackRequest = feedbackRequest;
98
+ apiRequest = edgeFeedbackRequest.toEdgeFeedbackApiModel();
99
+ }
100
+ else {
101
+ apiRequest = feedbackRequest.toEdgeFeedbackApiModel(languagePairId);
102
+ }
103
+ return this._client
104
+ .requestMultipart(this._token, 'POST', TranslationConstants_1.EDGE_CREATE_FEEDBACK_PATH, HttpUtils_1.default.getFormDataFromObject(apiRequest))
105
+ .then(function (response) {
106
+ return Promise.resolve(new EdgeFeedbackApiModel_1.default(response));
107
+ })
108
+ .catch(function (e) { return Promise.reject(e); });
109
+ };
110
+ EdgeFeedbackService.prototype.performUpdateFeedback = function (feedbackRequest) {
111
+ var validationError = this._validator.validateUpdateFeedbackRequest(feedbackRequest);
112
+ if (validationError) {
113
+ return Promise.reject({ message: validationError });
114
+ }
115
+ var apiRequest;
116
+ if (feedbackRequest instanceof EdgeUpdateFeedbackRequest_1.default) {
117
+ var edgeFeedbackRequest = feedbackRequest;
118
+ apiRequest = edgeFeedbackRequest.toEdgeFeedbackApiModel();
119
+ }
120
+ else {
121
+ apiRequest = feedbackRequest.toEdgeFeedbackApiModel();
122
+ }
123
+ return this._client
124
+ .requestMultipart(this._token, 'PUT', TranslationConstants_1.EDGE_CREATE_FEEDBACK_PATH + '/' + feedbackRequest.feedbackId, HttpUtils_1.default.getFormDataFromObject(apiRequest))
125
+ .then(function (response) { return Promise.resolve(new EdgeFeedbackApiModel_1.default(response)); })
126
+ .catch(function (e) { return Promise.reject(e); });
127
+ };
128
+ EdgeFeedbackService.prototype.performUpdateFeedbackApproval = function (feedbackRequest) {
129
+ var validationError = this._validator.validateUpdateFeedbackApprovalRequest(feedbackRequest);
130
+ if (validationError) {
131
+ return Promise.reject({ message: validationError });
132
+ }
133
+ var updateFeedbackRequest = new EdgeUpdateFeedbackRequest_1.default();
134
+ updateFeedbackRequest.feedbackId = feedbackRequest.feedbackId;
135
+ updateFeedbackRequest.approvalState = feedbackRequest.approvalStatus;
136
+ return this.performUpdateFeedback(updateFeedbackRequest);
137
+ };
41
138
  EdgeFeedbackService.prototype.performGetAllFeedback = function (pageNumber, pageSize, filterRequest) {
42
139
  var queryParams = __assign(__assign({}, this.getPageQueryParams(pageNumber, pageSize)), this.getFilterQueryParams(filterRequest));
43
140
  return this._client
@@ -68,10 +165,10 @@ var EdgeFeedbackService = /** @class */ (function () {
68
165
  var queryParams = {};
69
166
  if (filterRequest) {
70
167
  if (filterRequest.startDate) {
71
- queryParams = __assign(__assign({}, queryParams), { startTimeCreated: (0, moment_1.default)(filterRequest.startDate).format(TranslationConstants_1.EDGE_DATE_FORMAT) });
168
+ queryParams = __assign(__assign({}, queryParams), { startTimeCreated: (0, moment_1.default)(filterRequest.startDate, TranslationConstants_1.SUPPORTED_INPUT_DATE_FORMATS).format(TranslationConstants_1.EDGE_DATE_FORMAT) });
72
169
  }
73
170
  if (filterRequest.endDate) {
74
- queryParams = __assign(__assign({}, queryParams), { endTimeCreated: (0, moment_1.default)(filterRequest.endDate).format(TranslationConstants_1.EDGE_DATE_FORMAT) });
171
+ queryParams = __assign(__assign({}, queryParams), { endTimeCreated: (0, moment_1.default)(filterRequest.endDate, TranslationConstants_1.SUPPORTED_INPUT_DATE_FORMATS).format(TranslationConstants_1.EDGE_DATE_FORMAT) });
75
172
  }
76
173
  if (filterRequest.user) {
77
174
  queryParams = __assign(__assign({}, queryParams), { username: filterRequest.user });
@@ -1 +1 @@
1
- {"version":3,"file":"EdgeFeedbackService.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/service/EdgeFeedbackService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA4B;AAG5B,8FAAwE;AAIxE,6FAAuE;AACvE,mGAA6E;AAC7E,0FAI2D;AAE3D,qFAA+D;AAE/D,IAAM,gBAAgB,GAAG,MAAM,CAAC;AAChC,IAAM,oBAAoB,GAAG,SAAS,CAAC;AAEvC;IAKI,6BAAY,MAAkB,EAAE,KAAwB;QAFvC,eAAU,GAA0B,IAAI,+BAAqB,EAAE,CAAC;QAG7E,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAEM,4CAAc,GAArB,UACI,UAAkB,EAClB,QAAiB,EACjB,aAAqC;QAErC,OAAO,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE,QAAQ,EAAE,aAAa,CAAC;aACjE,IAAI,CAAC,UAAC,QAAkC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAApC,CAAoC,CAAC;aAClF,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEM,gDAAkB,GAAzB,UACI,UAAkB,EAClB,QAAiB,EACjB,aAAyC;QAEzC,OAAO,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE,QAAQ,EAAE,aAAa,CAAC;aACjE,IAAI,CAAC,UAAC,QAAkC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,EAAxC,CAAwC,CAAC;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,CAAC,gBAAgB,GACnD,CAAC;iBACL;gBAED,IAAI,aAAa,CAAC,UAAU,EAAE;oBAC1B,WAAW,yBACJ,WAAW,KACd,UAAU,EAAE,aAAa,CAAC,UAAU,GACvC,CAAC;iBACL;gBAED,IAAI,aAAa,CAAC,kBAAkB,EAAE;oBAClC,WAAW,yBACJ,WAAW,KACd,kBAAkB,EAAE,aAAa,CAAC,kBAAkB,GACvD,CAAC;iBACL;gBAED,IAAI,aAAa,CAAC,oBAAoB,EAAE;oBACpC,WAAW,yBACJ,WAAW,KACd,oBAAoB,EAAE,aAAa,CAAC,oBAAoB,GAC3D,CAAC;iBACL;gBAED,IAAI,aAAa,CAAC,OAAO,EAAE;oBACvB,WAAW,yBACJ,WAAW,KACd,OAAO,EAAE,aAAa,CAAC,OAAO,GACjC,CAAC;iBACL;gBAED,IAAI,aAAa,CAAC,QAAQ,EAAE;oBACxB,WAAW,yBACJ,WAAW,KACd,QAAQ,EAAE,aAAa,CAAC,QAAQ,GACnC,CAAC;iBACL;aACJ;iBAAM;gBACH,IAAI,aAAa,CAAC,cAAc,EAAE;oBAC9B,WAAW,yBACJ,WAAW,KACd,cAAc,EAAE,aAAa,CAAC,cAAc,GAC/C,CAAC;iBACL;aACJ;SACJ;QAED,OAAO,WAAW,CAAC;IACvB,CAAC;IACL,0BAAC;AAAD,CAAC,AAzKD,IAyKC"}
1
+ {"version":3,"file":"EdgeFeedbackService.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/service/EdgeFeedbackService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA4B;AAG5B,6FAAuE;AAIvE,6FAAuE;AACvE,mGAA6E;AAC7E,0FAM2D;AAE3D,qFAA+D;AAI/D,mGAA6E;AAE7E,mGAA6E;AAI7E,mGAA6E;AAC7E,iFAA2D;AAG3D,IAAM,gBAAgB,GAAG,MAAM,CAAC;AAChC,IAAM,oBAAoB,GAAG,SAAS,CAAC;AAEvC;IAKI,6BAAY,MAAkB,E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GAC3D,CAAC;iBACL;gBAED,IAAI,aAAa,CAAC,OAAO,EAAE;oBACvB,WAAW,yBACJ,WAAW,KACd,OAAO,EAAE,aAAa,CAAC,OAAO,GACjC,CAAC;iBACL;gBAED,IAAI,aAAa,CAAC,QAAQ,EAAE;oBACxB,WAAW,yBACJ,WAAW,KACd,QAAQ,EAAE,aAAa,CAAC,QAAQ,GACnC,CAAC;iBACL;aACJ;iBAAM;gBACH,IAAI,aAAa,CAAC,cAAc,EAAE;oBAC9B,WAAW,yBACJ,WAAW,KACd,cAAc,EAAE,aAAa,CAAC,cAAc,GAC/C,CAAC;iBACL;aACJ;SACJ;QAED,OAAO,WAAW,CAAC;IACvB,CAAC;IACL,0BAAC;AAAD,CAAC,AAhTD,IAgTC"}
@@ -0,0 +1,3 @@
1
+ import FeedbackValidator from '../../common/validator/FeedbackValidator';
2
+ export default class EdgeFeedbackValidator extends FeedbackValidator {
3
+ }
@@ -18,7 +18,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
18
18
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var FeedbackValidator_1 = __importDefault(require("../../common/validators/FeedbackValidator"));
21
+ var FeedbackValidator_1 = __importDefault(require("../../common/validator/FeedbackValidator"));
22
22
  var EdgeFeedbackValidator = /** @class */ (function (_super) {
23
23
  __extends(EdgeFeedbackValidator, _super);
24
24
  function EdgeFeedbackValidator() {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeFeedbackValidator.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/validator/EdgeFeedbackValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,+FAAyE;AAEzE;IAAmD,yCAAiB;IAApE;;IAAsE,CAAC;IAAD,4BAAC;AAAD,CAAC,AAAvE,CAAmD,2BAAiB,GAAG"}
@@ -0,0 +1,21 @@
1
+ import CloudLanguagePair from '../result/CloudLanguagePair';
2
+ import LanguagePair from '../../common/result/LanguagePair';
3
+ export default class CloudLanguagePairApiModel {
4
+ private _name;
5
+ private _displayName;
6
+ private _sourceLanguageId;
7
+ private _targetLanguageId;
8
+ private _model;
9
+ get name(): string | undefined;
10
+ set name(value: string | undefined);
11
+ get displayName(): string | undefined;
12
+ set displayName(value: string | undefined);
13
+ get sourceLanguageId(): string | undefined;
14
+ set sourceLanguageId(value: string | undefined);
15
+ get targetLanguageId(): string | undefined;
16
+ set targetLanguageId(value: string | undefined);
17
+ get model(): string | undefined;
18
+ set model(value: string | undefined);
19
+ toCloudLanguagePair(): CloudLanguagePair;
20
+ toLanguagePair(): LanguagePair;
21
+ }
@@ -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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AY,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
  }