@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,72 @@
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 PaginatedListResult_1 = __importDefault(require("../../../common/result/PaginatedListResult"));
22
+ var CloudDictionariesResult_1 = __importDefault(require("../result/CloudDictionariesResult"));
23
+ var DictionariesResult_1 = __importDefault(require("../../common/result/DictionariesResult"));
24
+ var CloudDictionariesResponse = /** @class */ (function (_super) {
25
+ __extends(CloudDictionariesResponse, _super);
26
+ function CloudDictionariesResponse() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ Object.defineProperty(CloudDictionariesResponse.prototype, "accountId", {
30
+ get: function () {
31
+ return this._accountId;
32
+ },
33
+ set: function (value) {
34
+ this._accountId = value;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ Object.defineProperty(CloudDictionariesResponse.prototype, "dictionaries", {
40
+ get: function () {
41
+ return this._dictionaries;
42
+ },
43
+ set: function (value) {
44
+ this._dictionaries = value;
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ CloudDictionariesResponse.prototype.toCloudDictionariesResult = function () {
50
+ var _a;
51
+ var cloudDictionariesResult = new CloudDictionariesResult_1.default();
52
+ cloudDictionariesResult.accountId = this.accountId;
53
+ cloudDictionariesResult.pageSize = this.pageSize;
54
+ cloudDictionariesResult.pageNumber = this.pageNumber;
55
+ cloudDictionariesResult.totalCount = this.totalCount;
56
+ cloudDictionariesResult.dictionaries =
57
+ ((_a = this.dictionaries) === null || _a === void 0 ? void 0 : _a.map(function (dictionary) { return dictionary.toCloudDictionary(); })) || [];
58
+ return cloudDictionariesResult;
59
+ };
60
+ CloudDictionariesResponse.prototype.toDictionariesResult = function () {
61
+ var _a;
62
+ var dictionariesResult = new DictionariesResult_1.default();
63
+ dictionariesResult.pageSize = this.pageSize;
64
+ dictionariesResult.pageNumber = this.pageNumber;
65
+ dictionariesResult.totalCount = this.totalCount;
66
+ dictionariesResult.dictionaries = ((_a = this.dictionaries) === null || _a === void 0 ? void 0 : _a.map(function (dictionary) { return dictionary.toDictionary(); })) || [];
67
+ return dictionariesResult;
68
+ };
69
+ return CloudDictionariesResponse;
70
+ }(PaginatedListResult_1.default));
71
+ exports.default = CloudDictionariesResponse;
72
+ //# sourceMappingURL=CloudDictionariesResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudDictionariesResponse.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/cloud/api/CloudDictionariesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAE7E,8FAAwE;AACxE,8FAAwE;AAExE;IAAuD,6CAAmB;IAA1E;;IAyCA,CAAC;IArCG,sBAAI,gDAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,mDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA4C;YACzD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,6DAAyB,GAAzB;;QACI,IAAM,uBAAuB,GAAG,IAAI,iCAAuB,EAAE,CAAC;QAC9D,uBAAuB,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QACnD,uBAAuB,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QACjD,uBAAuB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACrD,uBAAuB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACrD,uBAAuB,CAAC,YAAY;YAChC,CAAA,MAAA,IAAI,CAAC,YAAY,0CAAE,GAAG,CAAC,UAAC,UAAU,IAAK,OAAA,UAAU,CAAC,iBAAiB,EAAE,EAA9B,CAA8B,CAAC,KAAI,EAAE,CAAC;QAEjF,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,wDAAoB,GAApB;;QACI,IAAM,kBAAkB,GAAG,IAAI,4BAAkB,EAAE,CAAC;QACpD,kBAAkB,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC5C,kBAAkB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAChD,kBAAkB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAChD,kBAAkB,CAAC,YAAY,GAAG,CAAA,MAAA,IAAI,CAAC,YAAY,0CAAE,GAAG,CAAC,UAAC,UAAU,IAAK,OAAA,UAAU,CAAC,YAAY,EAAE,EAAzB,CAAyB,CAAC,KAAI,EAAE,CAAC;QAE1G,OAAO,kBAAkB,CAAC;IAC9B,CAAC;IACL,gCAAC;AAAD,CAAC,AAzCD,CAAuD,6BAAmB,GAyCzE"}
@@ -0,0 +1,36 @@
1
+ import CloudDictionary from '../result/CloudDictionary';
2
+ import Dictionary from '../../common/result/Dictionary';
3
+ export default class CloudDictionaryApiModel {
4
+ private _dictionaryId;
5
+ private _accountId;
6
+ private _createdBy;
7
+ private _creationDate;
8
+ private _lastModifiedBy;
9
+ private _lastModifyDate;
10
+ private _name;
11
+ private _description;
12
+ private _source;
13
+ private _target;
14
+ get dictionaryId(): string | undefined;
15
+ set dictionaryId(value: string | undefined);
16
+ get accountId(): number | undefined;
17
+ set accountId(value: number | undefined);
18
+ get createdBy(): string | undefined;
19
+ set createdBy(value: string | undefined);
20
+ get creationDate(): string | undefined;
21
+ set creationDate(value: string | undefined);
22
+ get lastModifiedBy(): string | undefined;
23
+ set lastModifiedBy(value: string | undefined);
24
+ get lastModifyDate(): string | undefined;
25
+ set lastModifyDate(value: string | undefined);
26
+ get name(): string | undefined;
27
+ set name(value: string | undefined);
28
+ get description(): string;
29
+ set description(value: string);
30
+ get source(): string | undefined;
31
+ set source(value: string | undefined);
32
+ get target(): string | undefined;
33
+ set target(value: string | undefined);
34
+ toCloudDictionary(): CloudDictionary;
35
+ toDictionary(): Dictionary;
36
+ }
@@ -0,0 +1,136 @@
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 CloudDictionary_1 = __importDefault(require("../result/CloudDictionary"));
7
+ var Dictionary_1 = __importDefault(require("../../common/result/Dictionary"));
8
+ var CloudDictionaryApiModel = /** @class */ (function () {
9
+ function CloudDictionaryApiModel() {
10
+ this._description = '';
11
+ }
12
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "dictionaryId", {
13
+ get: function () {
14
+ return this._dictionaryId;
15
+ },
16
+ set: function (value) {
17
+ this._dictionaryId = value;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "accountId", {
23
+ get: function () {
24
+ return this._accountId;
25
+ },
26
+ set: function (value) {
27
+ this._accountId = value;
28
+ },
29
+ enumerable: false,
30
+ configurable: true
31
+ });
32
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "createdBy", {
33
+ get: function () {
34
+ return this._createdBy;
35
+ },
36
+ set: function (value) {
37
+ this._createdBy = value;
38
+ },
39
+ enumerable: false,
40
+ configurable: true
41
+ });
42
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "creationDate", {
43
+ get: function () {
44
+ return this._creationDate;
45
+ },
46
+ set: function (value) {
47
+ this._creationDate = value;
48
+ },
49
+ enumerable: false,
50
+ configurable: true
51
+ });
52
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "lastModifiedBy", {
53
+ get: function () {
54
+ return this._lastModifiedBy;
55
+ },
56
+ set: function (value) {
57
+ this._lastModifiedBy = value;
58
+ },
59
+ enumerable: false,
60
+ configurable: true
61
+ });
62
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "lastModifyDate", {
63
+ get: function () {
64
+ return this._lastModifyDate;
65
+ },
66
+ set: function (value) {
67
+ this._lastModifyDate = value;
68
+ },
69
+ enumerable: false,
70
+ configurable: true
71
+ });
72
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "name", {
73
+ get: function () {
74
+ return this._name;
75
+ },
76
+ set: function (value) {
77
+ this._name = value;
78
+ },
79
+ enumerable: false,
80
+ configurable: true
81
+ });
82
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "description", {
83
+ get: function () {
84
+ return this._description;
85
+ },
86
+ set: function (value) {
87
+ this._description = value;
88
+ },
89
+ enumerable: false,
90
+ configurable: true
91
+ });
92
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "source", {
93
+ get: function () {
94
+ return this._source;
95
+ },
96
+ set: function (value) {
97
+ this._source = value;
98
+ },
99
+ enumerable: false,
100
+ configurable: true
101
+ });
102
+ Object.defineProperty(CloudDictionaryApiModel.prototype, "target", {
103
+ get: function () {
104
+ return this._target;
105
+ },
106
+ set: function (value) {
107
+ this._target = value;
108
+ },
109
+ enumerable: false,
110
+ configurable: true
111
+ });
112
+ CloudDictionaryApiModel.prototype.toCloudDictionary = function () {
113
+ var cloudDictionary = new CloudDictionary_1.default();
114
+ cloudDictionary.dictionaryId = this.dictionaryId;
115
+ cloudDictionary.accountId = this.accountId;
116
+ cloudDictionary.createdBy = this.createdBy;
117
+ cloudDictionary.creationDate = this.creationDate;
118
+ cloudDictionary.lastModifiedBy = this.lastModifiedBy;
119
+ cloudDictionary.lastModifyDate = this.lastModifyDate;
120
+ cloudDictionary.name = this.name;
121
+ cloudDictionary.description = this.description;
122
+ cloudDictionary.source = this.source;
123
+ cloudDictionary.target = this.target;
124
+ return cloudDictionary;
125
+ };
126
+ CloudDictionaryApiModel.prototype.toDictionary = function () {
127
+ var dictionary = new Dictionary_1.default();
128
+ dictionary.id = this.dictionaryId;
129
+ dictionary.source = this.source;
130
+ dictionary.target = this.target;
131
+ return dictionary;
132
+ };
133
+ return CloudDictionaryApiModel;
134
+ }());
135
+ exports.default = CloudDictionaryApiModel;
136
+ //# sourceMappingURL=CloudDictionaryApiModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudDictionaryApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/cloud/api/CloudDictionaryApiModel.ts"],"names":[],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AG,IAAI,CAAC,MAAM,CAAC;QAChC,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAEhC,OAAO,UAAU,CAAC;IACtB,CAAC;IACL,8BAAC;AAAD,CAAC,AApHD,IAoHC"}
@@ -1,10 +1,10 @@
1
- import CloudDictionaryResponse from '../api/CloudDictionaryResponse';
2
1
  import PaginatedListResult from '../../../common/result/PaginatedListResult';
2
+ import CloudDictionary from './CloudDictionary';
3
3
  export default class CloudDictionariesResult extends PaginatedListResult {
4
4
  private _accountId;
5
5
  private _dictionaries;
6
6
  get accountId(): number | undefined;
7
7
  set accountId(value: number | undefined);
8
- get dictionaries(): CloudDictionaryResponse[] | undefined;
9
- set dictionaries(value: CloudDictionaryResponse[] | undefined);
8
+ get dictionaries(): CloudDictionary[] | undefined;
9
+ set dictionaries(value: CloudDictionary[] | undefined);
10
10
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudDictionariesResult.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/cloud/result/CloudDictionariesResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAG7E;IAAqD,2CAAmB;IAAxE;;IAmBA,CAAC;IAfG,sBAAI,8CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,iDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAoC;YACjD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKL,8BAAC;AAAD,CAAC,AAnBD,CAAqD,6BAAmB,GAmBvE"}
@@ -1,4 +1,4 @@
1
- export default class CloudDictionaryResponse {
1
+ export default class CloudDictionary {
2
2
  private _dictionaryId;
3
3
  private _accountId;
4
4
  private _createdBy;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var CloudDictionaryResponse = /** @class */ (function () {
4
- function CloudDictionaryResponse() {
3
+ var CloudDictionary = /** @class */ (function () {
4
+ function CloudDictionary() {
5
5
  this._description = '';
6
6
  }
7
- Object.defineProperty(CloudDictionaryResponse.prototype, "dictionaryId", {
7
+ Object.defineProperty(CloudDictionary.prototype, "dictionaryId", {
8
8
  get: function () {
9
9
  return this._dictionaryId;
10
10
  },
@@ -14,7 +14,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
14
14
  enumerable: false,
15
15
  configurable: true
16
16
  });
17
- Object.defineProperty(CloudDictionaryResponse.prototype, "accountId", {
17
+ Object.defineProperty(CloudDictionary.prototype, "accountId", {
18
18
  get: function () {
19
19
  return this._accountId;
20
20
  },
@@ -24,7 +24,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
24
24
  enumerable: false,
25
25
  configurable: true
26
26
  });
27
- Object.defineProperty(CloudDictionaryResponse.prototype, "createdBy", {
27
+ Object.defineProperty(CloudDictionary.prototype, "createdBy", {
28
28
  get: function () {
29
29
  return this._createdBy;
30
30
  },
@@ -34,7 +34,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
34
34
  enumerable: false,
35
35
  configurable: true
36
36
  });
37
- Object.defineProperty(CloudDictionaryResponse.prototype, "creationDate", {
37
+ Object.defineProperty(CloudDictionary.prototype, "creationDate", {
38
38
  get: function () {
39
39
  return this._creationDate;
40
40
  },
@@ -44,7 +44,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
44
44
  enumerable: false,
45
45
  configurable: true
46
46
  });
47
- Object.defineProperty(CloudDictionaryResponse.prototype, "lastModifiedBy", {
47
+ Object.defineProperty(CloudDictionary.prototype, "lastModifiedBy", {
48
48
  get: function () {
49
49
  return this._lastModifiedBy;
50
50
  },
@@ -54,7 +54,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
54
54
  enumerable: false,
55
55
  configurable: true
56
56
  });
57
- Object.defineProperty(CloudDictionaryResponse.prototype, "lastModifyDate", {
57
+ Object.defineProperty(CloudDictionary.prototype, "lastModifyDate", {
58
58
  get: function () {
59
59
  return this._lastModifyDate;
60
60
  },
@@ -64,7 +64,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
64
64
  enumerable: false,
65
65
  configurable: true
66
66
  });
67
- Object.defineProperty(CloudDictionaryResponse.prototype, "name", {
67
+ Object.defineProperty(CloudDictionary.prototype, "name", {
68
68
  get: function () {
69
69
  return this._name;
70
70
  },
@@ -74,7 +74,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
74
74
  enumerable: false,
75
75
  configurable: true
76
76
  });
77
- Object.defineProperty(CloudDictionaryResponse.prototype, "description", {
77
+ Object.defineProperty(CloudDictionary.prototype, "description", {
78
78
  get: function () {
79
79
  return this._description;
80
80
  },
@@ -84,7 +84,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
84
84
  enumerable: false,
85
85
  configurable: true
86
86
  });
87
- Object.defineProperty(CloudDictionaryResponse.prototype, "source", {
87
+ Object.defineProperty(CloudDictionary.prototype, "source", {
88
88
  get: function () {
89
89
  return this._source;
90
90
  },
@@ -94,7 +94,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
94
94
  enumerable: false,
95
95
  configurable: true
96
96
  });
97
- Object.defineProperty(CloudDictionaryResponse.prototype, "target", {
97
+ Object.defineProperty(CloudDictionary.prototype, "target", {
98
98
  get: function () {
99
99
  return this._target;
100
100
  },
@@ -104,7 +104,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
104
104
  enumerable: false,
105
105
  configurable: true
106
106
  });
107
- return CloudDictionaryResponse;
107
+ return CloudDictionary;
108
108
  }());
109
- exports.default = CloudDictionaryResponse;
110
- //# sourceMappingURL=CloudDictionaryResponse.js.map
109
+ exports.default = CloudDictionary;
110
+ //# sourceMappingURL=CloudDictionary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudDictionary.js","sourceRoot":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,wCAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAa;YACzB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,mCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,mCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAKL,sBAAC;AAAD,CAAC,AA3FD,IA2FC"}
@@ -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 CloudDictionariesResult from '../result/CloudDictionariesResult';
6
+ import DictionariesResult from '../../common/result/DictionariesResult';
7
+ export default class CloudDictionariesService {
8
+ private readonly _selfInfo;
9
+ private readonly _client;
10
+ private readonly _token;
11
+ constructor(client: RestClient, token: Token | undefined, selfInfo: SelfInformation | UserSelfInformation | undefined);
12
+ getDictionaries(pageNumber: number, pageSize?: number): Promise<DictionariesResult>;
13
+ getCloudDictionaries(pageNumber: number, pageSize?: number): Promise<CloudDictionariesResult>;
14
+ private getDictionariesResponse;
15
+ }
@@ -0,0 +1,51 @@
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 TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
7
+ var CloudDictionariesResponse_1 = __importDefault(require("../api/CloudDictionariesResponse"));
8
+ var CloudDictionaryApiModel_1 = __importDefault(require("../api/CloudDictionaryApiModel"));
9
+ var CloudDictionariesService = /** @class */ (function () {
10
+ function CloudDictionariesService(client, token, selfInfo) {
11
+ this._client = client;
12
+ this._token = token;
13
+ this._selfInfo = selfInfo;
14
+ }
15
+ CloudDictionariesService.prototype.getDictionaries = function (pageNumber, pageSize) {
16
+ if (pageSize === void 0) { pageSize = TranslationConstants_1.DEFAULT_DICTIONARIES_PAGE_SIZE; }
17
+ return this.getDictionariesResponse(pageNumber, pageSize)
18
+ .then(function (response) { return Promise.resolve(response.toDictionariesResult()); })
19
+ .catch(function (e) { return Promise.reject(e); });
20
+ };
21
+ CloudDictionariesService.prototype.getCloudDictionaries = function (pageNumber, pageSize) {
22
+ if (pageSize === void 0) { pageSize = TranslationConstants_1.DEFAULT_DICTIONARIES_PAGE_SIZE; }
23
+ return this.getDictionariesResponse(pageNumber, pageSize)
24
+ .then(function (response) { return Promise.resolve(response.toCloudDictionariesResult()); })
25
+ .catch(function (e) { return Promise.reject(e); });
26
+ };
27
+ CloudDictionariesService.prototype.getDictionariesResponse = function (pageNumber, pageSize) {
28
+ var _a;
29
+ if (pageSize === void 0) { pageSize = TranslationConstants_1.DEFAULT_DICTIONARIES_PAGE_SIZE; }
30
+ return this._client
31
+ .requestJson(this._token, 'GET', '/v4/accounts/' + ((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId) + '/dictionaries', undefined, {
32
+ pageNumber: pageNumber,
33
+ pageSize: pageSize,
34
+ })
35
+ .then(function (response) {
36
+ var _a;
37
+ var dictionariesResponse = new CloudDictionariesResponse_1.default();
38
+ dictionariesResponse.accountId = response.accountId;
39
+ dictionariesResponse.dictionaries = (_a = response === null || response === void 0 ? void 0 : response.dictionaries) === null || _a === void 0 ? void 0 : _a.map(function (dictionary) {
40
+ var cloudDictionary = new CloudDictionaryApiModel_1.default();
41
+ Object.assign(cloudDictionary, dictionary);
42
+ return cloudDictionary;
43
+ });
44
+ return Promise.resolve(dictionariesResponse);
45
+ })
46
+ .catch(function (e) { return Promise.reject(e); });
47
+ };
48
+ return CloudDictionariesService;
49
+ }());
50
+ exports.default = CloudDictionariesService;
51
+ //# sourceMappingURL=CloudDictionariesService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudDictionariesService.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/cloud/service/CloudDictionariesService.ts"],"names":[],"mappings":";;;;;AAIA,0FAAmG;AACnG,+FAAyE;AACzE,2FAAqE;AAIrE;IAKI,kCACI,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,kDAAe,GAAtB,UACI,UAAkB,EAClB,QAAiD;QAAjD,yBAAA,EAAA,WAAmB,qDAA8B;QAEjD,OAAO,IAAI,CAAC,uBAAuB,CAAC,UAAU,EAAE,QAAQ,CAAC;aACpD,IAAI,CAAC,UAAC,QAAmC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,EAAhD,CAAgD,CAAC;aAC/F,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEM,uDAAoB,GAA3B,UACI,UAAkB,EAClB,QAAiD;QAAjD,yBAAA,EAAA,WAAmB,qDAA8B;QAEjD,OAAO,IAAI,CAAC,uBAAuB,CAAC,UAAU,EAAE,QAAQ,CAAC;aACpD,IAAI,CAAC,UAAC,QAAmC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,EAAE,CAAC,EAArD,CAAqD,CAAC;aACpG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEO,0DAAuB,GAA/B,UACI,UAAkB,EAClB,QAAiD;;QAAjD,yBAAA,EAAA,WAAmB,qDAA8B;QAEjD,OAAO,IAAI,CAAC,OAAO;aACd,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,eAAe,IAAG,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAA,GAAG,eAAe,EAAE,SAAS,EAAE;YACvG,UAAU,YAAA;YACV,QAAQ,UAAA;SACX,CAAC;aACD,IAAI,CAAC,UAAC,QAAQ;;YACX,IAAM,oBAAoB,GAAG,IAAI,mCAAyB,EAAE,CAAC;YAC7D,oBAAoB,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;YACpD,oBAAoB,CAAC,YAAY,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,0CAAE,GAAG,CAAC,UAAC,UAAe;gBAC5E,IAAM,eAAe,GAAG,IAAI,iCAAuB,EAAE,CAAC;gBACtD,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gBAE3C,OAAO,eAAe,CAAC;YAC3B,CAAC,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACjD,CAAC,CAAC;aACD,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IACL,+BAAC;AAAD,CAAC,AAxDD,IAwDC"}
@@ -0,0 +1,7 @@
1
+ import PaginatedListResult from '../../../common/result/PaginatedListResult';
2
+ import Dictionary from './Dictionary';
3
+ export default class DictionariesResult extends PaginatedListResult {
4
+ private _dictionaries;
5
+ get dictionaries(): Dictionary[] | undefined;
6
+ set dictionaries(value: Dictionary[] | undefined);
7
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DictionariesResult.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/common/result/DictionariesResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAG7E;IAAgD,sCAAmB;IAAnE;;IAUA,CAAC;IAPG,sBAAI,4CAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA+B;YAC5C,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKL,yBAAC;AAAD,CAAC,AAVD,CAAgD,6BAAmB,GAUlE"}
@@ -1,4 +1,4 @@
1
- export default class DictionaryResponse {
1
+ export default class Dictionary {
2
2
  private _id;
3
3
  private _source;
4
4
  private _target;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var DictionaryResponse = /** @class */ (function () {
4
- function DictionaryResponse() {
3
+ var Dictionary = /** @class */ (function () {
4
+ function Dictionary() {
5
5
  }
6
- Object.defineProperty(DictionaryResponse.prototype, "id", {
6
+ Object.defineProperty(Dictionary.prototype, "id", {
7
7
  get: function () {
8
8
  return this._id;
9
9
  },
@@ -13,7 +13,7 @@ var DictionaryResponse = /** @class */ (function () {
13
13
  enumerable: false,
14
14
  configurable: true
15
15
  });
16
- Object.defineProperty(DictionaryResponse.prototype, "source", {
16
+ Object.defineProperty(Dictionary.prototype, "source", {
17
17
  get: function () {
18
18
  return this._source;
19
19
  },
@@ -23,7 +23,7 @@ var DictionaryResponse = /** @class */ (function () {
23
23
  enumerable: false,
24
24
  configurable: true
25
25
  });
26
- Object.defineProperty(DictionaryResponse.prototype, "target", {
26
+ Object.defineProperty(Dictionary.prototype, "target", {
27
27
  get: function () {
28
28
  return this._target;
29
29
  },
@@ -33,7 +33,7 @@ var DictionaryResponse = /** @class */ (function () {
33
33
  enumerable: false,
34
34
  configurable: true
35
35
  });
36
- return DictionaryResponse;
36
+ return Dictionary;
37
37
  }());
38
- exports.default = DictionaryResponse;
39
- //# sourceMappingURL=DictionaryResponse.js.map
38
+ exports.default = Dictionary;
39
+ //# sourceMappingURL=Dictionary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dictionary.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/common/result/Dictionary.ts"],"names":[],"mappings":";;AAAA;IAAA;IA4BA,CAAC;IAvBG,sBAAI,0BAAE;aAAN;YACI,OAAO,IAAI,CAAC,GAAG,CAAC;QACpB,CAAC;aAED,UAAO,KAAyB;YAC5B,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC;QACrB,CAAC;;;OAJA;IAMD,sBAAI,8BAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,8BAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAKL,iBAAC;AAAD,CAAC,AA5BD,IA4BC"}
@@ -0,0 +1,22 @@
1
+ import EdgeDictionaryApiModel from './EdgeDictionaryApiModel';
2
+ import EdgeDictionariesResult from '../result/EdgeDictionariesResult';
3
+ import DictionariesResult from '../../common/result/DictionariesResult';
4
+ export default class EdgeDictionariesResponse {
5
+ private _dictionaries;
6
+ private _page;
7
+ private _perPage;
8
+ private _totalItems;
9
+ private _totalPages;
10
+ get dictionaries(): EdgeDictionaryApiModel[] | undefined;
11
+ set dictionaries(value: EdgeDictionaryApiModel[] | undefined);
12
+ get totalPages(): number | undefined;
13
+ set totalPages(value: number | undefined);
14
+ get totalItems(): number | undefined;
15
+ set totalItems(value: number | undefined);
16
+ get perPage(): number | undefined;
17
+ set perPage(value: number | undefined);
18
+ get page(): number | undefined;
19
+ set page(value: number | undefined);
20
+ toEdgeDictionariesResult(): EdgeDictionariesResult;
21
+ toDictionariesResult(): DictionariesResult;
22
+ }
@@ -0,0 +1,84 @@
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 EdgeDictionariesResult_1 = __importDefault(require("../result/EdgeDictionariesResult"));
7
+ var DictionariesResult_1 = __importDefault(require("../../common/result/DictionariesResult"));
8
+ var EdgeDictionariesResponse = /** @class */ (function () {
9
+ function EdgeDictionariesResponse() {
10
+ }
11
+ Object.defineProperty(EdgeDictionariesResponse.prototype, "dictionaries", {
12
+ get: function () {
13
+ return this._dictionaries;
14
+ },
15
+ set: function (value) {
16
+ this._dictionaries = value;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ Object.defineProperty(EdgeDictionariesResponse.prototype, "totalPages", {
22
+ get: function () {
23
+ return this._totalPages;
24
+ },
25
+ set: function (value) {
26
+ this._totalPages = value;
27
+ },
28
+ enumerable: false,
29
+ configurable: true
30
+ });
31
+ Object.defineProperty(EdgeDictionariesResponse.prototype, "totalItems", {
32
+ get: function () {
33
+ return this._totalItems;
34
+ },
35
+ set: function (value) {
36
+ this._totalItems = value;
37
+ },
38
+ enumerable: false,
39
+ configurable: true
40
+ });
41
+ Object.defineProperty(EdgeDictionariesResponse.prototype, "perPage", {
42
+ get: function () {
43
+ return this._perPage;
44
+ },
45
+ set: function (value) {
46
+ this._perPage = value;
47
+ },
48
+ enumerable: false,
49
+ configurable: true
50
+ });
51
+ Object.defineProperty(EdgeDictionariesResponse.prototype, "page", {
52
+ get: function () {
53
+ return this._page;
54
+ },
55
+ set: function (value) {
56
+ this._page = value;
57
+ },
58
+ enumerable: false,
59
+ configurable: true
60
+ });
61
+ EdgeDictionariesResponse.prototype.toEdgeDictionariesResult = function () {
62
+ var _a;
63
+ var edgeDictionariesResult = new EdgeDictionariesResult_1.default();
64
+ edgeDictionariesResult.pageSize = this.perPage;
65
+ edgeDictionariesResult.pageNumber = this.page;
66
+ edgeDictionariesResult.totalCount = this.totalItems;
67
+ edgeDictionariesResult.totalPages = this.totalPages;
68
+ edgeDictionariesResult.dictionaries =
69
+ ((_a = this.dictionaries) === null || _a === void 0 ? void 0 : _a.map(function (dictionary) { return dictionary.toEdgeDictionary(); })) || [];
70
+ return edgeDictionariesResult;
71
+ };
72
+ EdgeDictionariesResponse.prototype.toDictionariesResult = function () {
73
+ var _a;
74
+ var dictionariesResult = new DictionariesResult_1.default();
75
+ dictionariesResult.pageSize = this.perPage;
76
+ dictionariesResult.pageNumber = this.page;
77
+ dictionariesResult.totalCount = this.totalItems;
78
+ dictionariesResult.dictionaries = ((_a = this.dictionaries) === null || _a === void 0 ? void 0 : _a.map(function (dictionary) { return dictionary.toDictionary(); })) || [];
79
+ return dictionariesResult;
80
+ };
81
+ return EdgeDictionariesResponse;
82
+ }());
83
+ exports.default = EdgeDictionariesResponse;
84
+ //# sourceMappingURL=EdgeDictionariesResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeDictionariesResponse.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/edge/api/EdgeDictionariesResponse.ts"],"names":[],"mappings":";;;;;AACA,4FAAsE;AACtE,8FAAwE;AAExE;IAAA;IAkEA,CAAC;IA3DG,sBAAI,kDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA2C;YACxD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,gDAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,gDAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QA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