@language-weaver/lw-sdk-js 1.0.0 → 1.2.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 (397) hide show
  1. package/lib/{auth → common/auth}/LanguageWeaverAuthentication.d.ts +2 -2
  2. package/lib/{auth → common/auth}/LanguageWeaverAuthentication.js +1 -1
  3. package/lib/common/auth/LanguageWeaverAuthentication.js.map +1 -0
  4. package/lib/{auth → common/auth}/domain/SelfInformation.d.ts +0 -0
  5. package/lib/{auth → common/auth}/domain/SelfInformation.js +0 -0
  6. package/lib/common/auth/domain/SelfInformation.js.map +1 -0
  7. package/lib/{auth → common/auth}/domain/Token.d.ts +0 -0
  8. package/lib/{auth → common/auth}/domain/Token.js +0 -0
  9. package/lib/common/auth/domain/Token.js.map +1 -0
  10. package/lib/{auth → common/auth}/domain/UserSelfInformation.d.ts +0 -0
  11. package/lib/{auth → common/auth}/domain/UserSelfInformation.js +0 -0
  12. package/lib/common/auth/domain/UserSelfInformation.js.map +1 -0
  13. package/lib/common/configurations/ClientConfiguration.d.ts +1 -1
  14. package/lib/common/configurations/TokenConfiguration.d.ts +2 -2
  15. package/lib/common/constants/ApprovalStatus.d.ts +7 -0
  16. package/lib/common/constants/ApprovalStatus.js +20 -0
  17. package/lib/common/constants/ApprovalStatus.js.map +1 -0
  18. package/lib/common/constants/FeedbackCategory.d.ts +4 -0
  19. package/lib/common/constants/FeedbackCategory.js +9 -0
  20. package/lib/common/constants/FeedbackCategory.js.map +1 -0
  21. package/lib/common/constants/FeedbackComment.d.ts +10 -0
  22. package/lib/common/constants/FeedbackComment.js +15 -0
  23. package/lib/common/constants/FeedbackComment.js.map +1 -0
  24. package/lib/common/constants/FileExtensions.d.ts +1 -1
  25. package/lib/common/constants/FileExtensions.js +1 -1
  26. package/lib/common/constants/FileExtensions.js.map +1 -1
  27. package/lib/{translation/common → common/constants}/Format.d.ts +1 -1
  28. package/lib/{translation/common → common/constants}/Format.js +4 -1
  29. package/lib/common/constants/Format.js.map +1 -0
  30. package/lib/common/constants/FormatToMimeType.js +2 -0
  31. package/lib/common/constants/FormatToMimeType.js.map +1 -1
  32. package/lib/common/constants/Order.d.ts +4 -0
  33. package/lib/common/constants/Order.js +9 -0
  34. package/lib/common/constants/Order.js.map +1 -0
  35. package/lib/common/constants/PdfConverter.d.ts +15 -0
  36. package/lib/common/constants/PdfConverter.js +22 -0
  37. package/lib/common/constants/PdfConverter.js.map +1 -0
  38. package/lib/{translation/common → common/constants}/Product.d.ts +0 -0
  39. package/lib/{translation/common → common/constants}/Product.js +0 -0
  40. package/lib/common/constants/Product.js.map +1 -0
  41. package/lib/common/constants/QualityEstimation.d.ts +6 -0
  42. package/lib/common/constants/QualityEstimation.js +17 -0
  43. package/lib/common/constants/QualityEstimation.js.map +1 -0
  44. package/lib/{translation/common → common/constants}/Regions.d.ts +0 -0
  45. package/lib/{translation/common → common/constants}/Regions.js +0 -0
  46. package/lib/common/constants/Regions.js.map +1 -0
  47. package/lib/{translation/common → common/constants}/Statuses.d.ts +0 -0
  48. package/lib/{translation/common → common/constants}/Statuses.js +0 -0
  49. package/lib/common/constants/Statuses.js.map +1 -0
  50. package/lib/common/constants/TranslationConstants.d.ts +9 -0
  51. package/lib/common/constants/TranslationConstants.js +11 -2
  52. package/lib/common/constants/TranslationConstants.js.map +1 -1
  53. package/lib/common/{requests → external/communication}/RestClient.d.ts +2 -2
  54. package/lib/common/{requests → external/communication}/RestClient.js +19 -28
  55. package/lib/common/external/communication/RestClient.js.map +1 -0
  56. package/lib/common/utils/HttpUtils.d.ts +2 -1
  57. package/lib/common/utils/HttpUtils.js +14 -1
  58. package/lib/common/utils/HttpUtils.js.map +1 -1
  59. package/lib/common/utils/Utils.d.ts +2 -2
  60. package/lib/common/utils/Utils.js +1 -1
  61. package/lib/common/utils/Utils.js.map +1 -1
  62. package/lib/index.d.ts +72 -39
  63. package/lib/index.js +104 -38
  64. package/lib/index.js.map +1 -1
  65. package/lib/translation/common/LanguageWeaverClient.d.ts +27 -0
  66. package/lib/{LanguageWeaverClient.js → translation/common/LanguageWeaverClient.js} +0 -0
  67. package/lib/translation/common/LanguageWeaverClient.js.map +1 -0
  68. package/lib/{SdkFactory.d.ts → translation/common/SdkFactory.d.ts} +2 -2
  69. package/lib/{SdkFactory.js → translation/common/SdkFactory.js} +5 -5
  70. package/lib/translation/common/SdkFactory.js.map +1 -0
  71. package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +86 -0
  72. package/lib/{CloudLanguageWeaverClient.js → translation/common/cloud/CloudLanguageWeaverClient.js} +145 -39
  73. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -0
  74. package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +85 -0
  75. package/lib/{EdgeLanguageWeaverClient.js → translation/common/edge/EdgeLanguageWeaverClient.js} +204 -76
  76. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -0
  77. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +2 -0
  78. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +24 -0
  79. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -0
  80. package/lib/translation/common/result/PaginatedListResult.d.ts +11 -0
  81. package/lib/translation/common/result/PaginatedListResult.js +39 -0
  82. package/lib/translation/common/result/PaginatedListResult.js.map +1 -0
  83. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.d.ts +64 -0
  84. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +291 -0
  85. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -0
  86. package/lib/translation/feedback/cloud/api/CloudFeedbackApproval.d.ts +35 -0
  87. package/lib/translation/feedback/cloud/api/CloudFeedbackApproval.js +119 -0
  88. package/lib/translation/feedback/cloud/api/CloudFeedbackApproval.js.map +1 -0
  89. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.d.ts +7 -0
  90. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.js +24 -0
  91. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.js.map +1 -0
  92. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.d.ts +9 -0
  93. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.js +31 -0
  94. package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.js.map +1 -0
  95. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.d.ts +6 -0
  96. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.js +20 -0
  97. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.js.map +1 -0
  98. package/lib/translation/feedback/cloud/api/CloudFeedbackListResponse.d.ts +11 -0
  99. package/lib/translation/feedback/cloud/api/CloudFeedbackListResponse.js +60 -0
  100. package/lib/translation/feedback/cloud/api/CloudFeedbackListResponse.js.map +1 -0
  101. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.d.ts +10 -0
  102. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js +39 -0
  103. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js.map +1 -0
  104. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.d.ts +25 -0
  105. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js +111 -0
  106. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js.map +1 -0
  107. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.d.ts +29 -0
  108. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js +99 -0
  109. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js.map +1 -0
  110. package/lib/translation/feedback/cloud/model/CloudAuditData.d.ts +21 -0
  111. package/lib/translation/feedback/cloud/model/CloudAuditData.js +90 -0
  112. package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +1 -0
  113. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.d.ts +4 -0
  114. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js +9 -0
  115. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +1 -0
  116. package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.d.ts +21 -0
  117. package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.js +104 -0
  118. package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.js.map +1 -0
  119. package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.d.ts +3 -0
  120. package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.js +30 -0
  121. package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.js.map +1 -0
  122. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +10 -0
  123. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.js +29 -0
  124. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.js.map +1 -0
  125. package/lib/translation/feedback/cloud/request/CloudFilterFeedbackRequest.d.ts +14 -0
  126. package/lib/translation/feedback/cloud/request/CloudFilterFeedbackRequest.js +60 -0
  127. package/lib/translation/feedback/cloud/request/CloudFilterFeedbackRequest.js.map +1 -0
  128. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.d.ts +3 -0
  129. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.js +30 -0
  130. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.js.map +1 -0
  131. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.d.ts +15 -0
  132. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.js +77 -0
  133. package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.js.map +1 -0
  134. package/lib/translation/feedback/cloud/result/CloudFeedbackListResult.d.ts +7 -0
  135. package/lib/translation/feedback/cloud/result/CloudFeedbackListResult.js +42 -0
  136. package/lib/translation/feedback/cloud/result/CloudFeedbackListResult.js.map +1 -0
  137. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +29 -0
  138. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js +110 -0
  139. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js.map +1 -0
  140. package/lib/translation/feedback/cloud/service/CloudFeedbackService.d.ts +41 -0
  141. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +207 -0
  142. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -0
  143. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.d.ts +9 -0
  144. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js +55 -0
  145. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +1 -0
  146. package/lib/translation/feedback/common/model/AuditData.d.ts +14 -0
  147. package/lib/translation/feedback/common/model/AuditData.js +49 -0
  148. package/lib/translation/feedback/common/model/AuditData.js.map +1 -0
  149. package/lib/translation/feedback/common/request/CreateFeedbackRequest.d.ts +29 -0
  150. package/lib/translation/feedback/common/request/CreateFeedbackRequest.js +123 -0
  151. package/lib/translation/feedback/common/request/CreateFeedbackRequest.js.map +1 -0
  152. package/lib/translation/feedback/common/request/DeleteFeedbackRequest.d.ts +5 -0
  153. package/lib/translation/feedback/common/request/DeleteFeedbackRequest.js +19 -0
  154. package/lib/translation/feedback/common/request/DeleteFeedbackRequest.js.map +1 -0
  155. package/lib/translation/feedback/common/request/FilterFeedbackRequest.d.ts +15 -0
  156. package/lib/translation/feedback/common/request/FilterFeedbackRequest.js +49 -0
  157. package/lib/translation/feedback/common/request/FilterFeedbackRequest.js.map +1 -0
  158. package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.d.ts +9 -0
  159. package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.js +29 -0
  160. package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.js.map +1 -0
  161. package/lib/translation/feedback/common/request/UpdateFeedbackRequest.d.ts +19 -0
  162. package/lib/translation/feedback/common/request/UpdateFeedbackRequest.js +80 -0
  163. package/lib/translation/feedback/common/request/UpdateFeedbackRequest.js.map +1 -0
  164. package/lib/translation/feedback/common/result/FeedbackCommonResult.d.ts +30 -0
  165. package/lib/translation/feedback/common/result/FeedbackCommonResult.js +100 -0
  166. package/lib/translation/feedback/common/result/FeedbackCommonResult.js.map +1 -0
  167. package/lib/translation/feedback/common/result/FeedbackListResult.d.ts +7 -0
  168. package/lib/translation/feedback/common/result/FeedbackListResult.js +42 -0
  169. package/lib/translation/feedback/common/result/FeedbackListResult.js.map +1 -0
  170. package/lib/translation/feedback/common/result/FeedbackResult.d.ts +14 -0
  171. package/lib/translation/feedback/common/result/FeedbackResult.js +67 -0
  172. package/lib/translation/feedback/common/result/FeedbackResult.js.map +1 -0
  173. package/lib/translation/feedback/common/validators/FeedbackValidator.d.ts +10 -0
  174. package/lib/translation/feedback/common/validators/FeedbackValidator.js +38 -0
  175. package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +1 -0
  176. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +40 -0
  177. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +190 -0
  178. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -0
  179. package/lib/translation/feedback/edge/api/EdgeFeedbackListResponse.d.ts +22 -0
  180. package/lib/translation/feedback/edge/api/EdgeFeedbackListResponse.js +86 -0
  181. package/lib/translation/feedback/edge/api/EdgeFeedbackListResponse.js.map +1 -0
  182. package/lib/translation/feedback/edge/api/Timestamps.d.ts +11 -0
  183. package/lib/translation/feedback/edge/api/Timestamps.js +39 -0
  184. package/lib/translation/feedback/edge/api/Timestamps.js.map +1 -0
  185. package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.d.ts +12 -0
  186. package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.js +63 -0
  187. package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.js.map +1 -0
  188. package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.d.ts +3 -0
  189. package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.js +30 -0
  190. package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.js.map +1 -0
  191. package/lib/translation/feedback/edge/request/EdgeFilterFeedbackRequest.d.ts +31 -0
  192. package/lib/translation/feedback/edge/request/EdgeFilterFeedbackRequest.js +122 -0
  193. package/lib/translation/feedback/edge/request/EdgeFilterFeedbackRequest.js.map +1 -0
  194. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.d.ts +3 -0
  195. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.js +30 -0
  196. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.js.map +1 -0
  197. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.d.ts +9 -0
  198. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.js +50 -0
  199. package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.js.map +1 -0
  200. package/lib/translation/feedback/edge/result/EdgeFeedbackListResult.d.ts +10 -0
  201. package/lib/translation/feedback/edge/result/EdgeFeedbackListResult.js +52 -0
  202. package/lib/translation/feedback/edge/result/EdgeFeedbackListResult.js.map +1 -0
  203. package/lib/translation/feedback/edge/result/EdgeFeedbackResult.d.ts +6 -0
  204. package/lib/translation/feedback/edge/result/EdgeFeedbackResult.js +40 -0
  205. package/lib/translation/feedback/edge/result/EdgeFeedbackResult.js.map +1 -0
  206. package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +39 -0
  207. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +216 -0
  208. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -0
  209. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +3 -0
  210. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js +30 -0
  211. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +1 -0
  212. package/lib/translation/translate/{response/cloud → cloud/api}/CloudDictionaryResponse.d.ts +0 -0
  213. package/lib/translation/translate/{response/cloud → cloud/api}/CloudDictionaryResponse.js +0 -0
  214. package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +1 -0
  215. package/lib/translation/translate/{response/cloud → cloud/api}/CloudLanguagePair.d.ts +0 -0
  216. package/lib/translation/translate/{response/cloud → cloud/api}/CloudLanguagePair.js +0 -0
  217. package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +1 -0
  218. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateBatchFileRequest.d.ts +1 -1
  219. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateBatchFileRequest.js +1 -1
  220. package/lib/translation/translate/cloud/request/CloudTranslateBatchFileRequest.js.map +1 -0
  221. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateFileRequest.d.ts +1 -1
  222. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateFileRequest.js +1 -1
  223. package/lib/translation/translate/cloud/request/CloudTranslateFileRequest.js.map +1 -0
  224. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateTextRequest.d.ts +1 -1
  225. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateTextRequest.js +1 -1
  226. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -0
  227. package/lib/translation/translate/cloud/result/CloudDictionariesResult.d.ts +10 -0
  228. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js +50 -0
  229. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +1 -0
  230. package/lib/translation/translate/{result/cloud → cloud/result}/CloudLanguagePairsResult.d.ts +1 -1
  231. package/lib/translation/translate/{result/cloud → cloud/result}/CloudLanguagePairsResult.js +0 -0
  232. package/lib/translation/translate/{result/cloud → cloud/result}/CloudLanguagePairsResult.js.map +1 -1
  233. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationBatchFileResult.d.ts +1 -1
  234. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationBatchFileResult.js +1 -1
  235. package/lib/translation/translate/cloud/result/CloudTranslationBatchFileResult.js.map +1 -0
  236. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationFileResult.d.ts +3 -3
  237. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationFileResult.js +1 -1
  238. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationFileResult.js.map +1 -1
  239. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationTextResult.d.ts +2 -2
  240. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationTextResult.js +0 -0
  241. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationTextResult.js.map +1 -1
  242. package/lib/translation/translate/{response → common/api}/AsyncTranslationResponse.d.ts +0 -0
  243. package/lib/translation/translate/{response → common/api}/AsyncTranslationResponse.js +0 -0
  244. package/lib/translation/translate/common/api/AsyncTranslationResponse.js.map +1 -0
  245. package/lib/translation/translate/{response → common/api}/DictionaryResponse.d.ts +0 -0
  246. package/lib/translation/translate/{response → common/api}/DictionaryResponse.js +0 -0
  247. package/lib/translation/translate/common/api/DictionaryResponse.js.map +1 -0
  248. package/lib/translation/translate/{response → common/api}/LanguagePair.d.ts +0 -0
  249. package/lib/translation/translate/{response → common/api}/LanguagePair.js +0 -0
  250. package/lib/translation/translate/common/api/LanguagePair.js.map +1 -0
  251. package/lib/translation/translate/{response → common/api}/TranslationStatistics.d.ts +0 -0
  252. package/lib/translation/translate/{response → common/api}/TranslationStatistics.js +0 -0
  253. package/lib/translation/translate/common/api/TranslationStatistics.js.map +1 -0
  254. package/lib/translation/translate/{response/StatusTranslationResponse.d.ts → common/api/TranslationStatusResponse.d.ts} +2 -2
  255. package/lib/translation/translate/{response/StatusTranslationResponse.js → common/api/TranslationStatusResponse.js} +10 -10
  256. package/lib/translation/translate/common/api/TranslationStatusResponse.js.map +1 -0
  257. package/lib/translation/translate/{request → common/request}/TranslateBatchFileRequest.d.ts +4 -0
  258. package/lib/translation/translate/{request → common/request}/TranslateBatchFileRequest.js +10 -7
  259. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -0
  260. package/lib/translation/translate/{request → common/request}/TranslateFileRequest.d.ts +4 -0
  261. package/lib/translation/translate/{request → common/request}/TranslateFileRequest.js +10 -0
  262. package/lib/translation/translate/common/request/TranslateFileRequest.js.map +1 -0
  263. package/lib/translation/translate/{request → common/request}/TranslateRequest.d.ts +1 -1
  264. package/lib/translation/translate/{request → common/request}/TranslateRequest.js +0 -0
  265. package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -0
  266. package/lib/translation/translate/{request → common/request}/TranslateTextRequest.d.ts +3 -1
  267. package/lib/translation/translate/{request → common/request}/TranslateTextRequest.js +9 -1
  268. package/lib/translation/translate/common/request/TranslateTextRequest.js.map +1 -0
  269. package/lib/translation/translate/common/result/DictionariesResult.d.ts +7 -0
  270. package/lib/translation/translate/common/result/DictionariesResult.js +40 -0
  271. package/lib/translation/translate/common/result/DictionariesResult.js.map +1 -0
  272. package/lib/translation/translate/{result → common/result}/LanguagePairsResult.d.ts +1 -1
  273. package/lib/translation/translate/{result → common/result}/LanguagePairsResult.js +0 -0
  274. package/lib/translation/translate/common/result/LanguagePairsResult.js.map +1 -0
  275. package/lib/translation/translate/{result → common/result}/TranslateTextResult.d.ts +0 -0
  276. package/lib/translation/translate/{result → common/result}/TranslateTextResult.js +0 -0
  277. package/lib/translation/translate/common/result/TranslateTextResult.js.map +1 -0
  278. package/lib/translation/translate/{result → common/result}/TranslationBatchFileResult.d.ts +0 -0
  279. package/lib/translation/translate/{result → common/result}/TranslationBatchFileResult.js +0 -0
  280. package/lib/translation/translate/common/result/TranslationBatchFileResult.js.map +1 -0
  281. package/lib/translation/translate/{result → common/result}/TranslationFileResult.d.ts +0 -0
  282. package/lib/translation/translate/{result → common/result}/TranslationFileResult.js +0 -0
  283. package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -0
  284. package/lib/translation/translate/{utils → common/utils}/TranslateFileUtil.d.ts +0 -0
  285. package/lib/translation/translate/{utils → common/utils}/TranslateFileUtil.js +2 -2
  286. package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -0
  287. package/lib/translation/translate/{response/edge → edge/api}/EdgeAsyncTranslationResponse.d.ts +0 -0
  288. package/lib/translation/translate/{response/edge → edge/api}/EdgeAsyncTranslationResponse.js +0 -0
  289. package/lib/translation/translate/edge/api/EdgeAsyncTranslationResponse.js.map +1 -0
  290. package/lib/translation/translate/{response/edge → edge/api}/EdgeDictionaryResponse.d.ts +0 -0
  291. package/lib/translation/translate/{response/edge → edge/api}/EdgeDictionaryResponse.js +0 -0
  292. package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +1 -0
  293. package/lib/translation/translate/{response/edge → edge/api}/EdgeLanguagePair.d.ts +0 -0
  294. package/lib/translation/translate/{response/edge → edge/api}/EdgeLanguagePair.js +0 -0
  295. package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +1 -0
  296. package/lib/translation/translate/{response/edge → edge/api}/EdgeStatusTranslationResponse.d.ts +0 -0
  297. package/lib/translation/translate/{response/edge → edge/api}/EdgeStatusTranslationResponse.js +0 -0
  298. package/lib/translation/translate/edge/api/EdgeStatusTranslationResponse.js.map +1 -0
  299. package/lib/translation/translate/{response/edge → edge/api}/MemberPair.d.ts +0 -0
  300. package/lib/translation/translate/{response/edge → edge/api}/MemberPair.js +0 -0
  301. package/lib/translation/translate/edge/api/MemberPair.js.map +1 -0
  302. package/lib/translation/translate/{response/edge → edge/api}/Profile.d.ts +0 -0
  303. package/lib/translation/translate/{response/edge → edge/api}/Profile.js +0 -0
  304. package/lib/translation/translate/edge/api/Profile.js.map +1 -0
  305. package/lib/translation/translate/{response/edge → edge/api}/Result.d.ts +0 -0
  306. package/lib/translation/translate/{response/edge → edge/api}/Result.js +0 -0
  307. package/lib/translation/translate/edge/api/Result.js.map +1 -0
  308. package/lib/translation/translate/{response/edge → edge/api}/Timestamps.d.ts +0 -0
  309. package/lib/translation/translate/{response/edge → edge/api}/Timestamps.js +0 -0
  310. package/lib/translation/translate/edge/api/Timestamps.js.map +1 -0
  311. package/lib/translation/translate/edge/request/EdgeTranslateApiModel.d.ts +29 -0
  312. package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js +109 -0
  313. package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js.map +1 -0
  314. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateBatchFileRequest.d.ts +2 -2
  315. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateBatchFileRequest.js +1 -1
  316. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateBatchFileRequest.js.map +1 -1
  317. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateFileRequest.d.ts +4 -2
  318. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateFileRequest.js +16 -1
  319. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -0
  320. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.d.ts +4 -2
  321. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.js +16 -1
  322. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -0
  323. package/lib/translation/translate/edge/result/EdgeDictionariesResult.d.ts +10 -0
  324. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js +50 -0
  325. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +1 -0
  326. package/lib/translation/translate/{result/edge → edge/result}/EdgeLanguagePairsResult.d.ts +1 -1
  327. package/lib/translation/translate/{result/edge → edge/result}/EdgeLanguagePairsResult.js +0 -0
  328. package/lib/translation/translate/{result/edge → edge/result}/EdgeLanguagePairsResult.js.map +1 -1
  329. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationBatchFileResult.d.ts +1 -1
  330. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationBatchFileResult.js +1 -1
  331. package/lib/translation/translate/edge/result/EdgeTranslationBatchFileResult.js.map +1 -0
  332. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationFileResult.d.ts +1 -1
  333. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationFileResult.js +1 -1
  334. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationFileResult.js.map +1 -1
  335. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationTextResult.d.ts +1 -1
  336. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationTextResult.js +1 -1
  337. package/lib/translation/translate/edge/result/EdgeTranslationTextResult.js.map +1 -0
  338. package/lib/version.d.ts +1 -1
  339. package/lib/version.js +1 -1
  340. package/package.json +4 -3
  341. package/lib/CloudLanguageWeaverClient.d.ts +0 -61
  342. package/lib/CloudLanguageWeaverClient.js.map +0 -1
  343. package/lib/EdgeLanguageWeaverClient.d.ts +0 -60
  344. package/lib/EdgeLanguageWeaverClient.js.map +0 -1
  345. package/lib/LanguageWeaverClient.d.ts +0 -15
  346. package/lib/LanguageWeaverClient.js.map +0 -1
  347. package/lib/SdkFactory.js.map +0 -1
  348. package/lib/auth/LanguageWeaverAuthentication.js.map +0 -1
  349. package/lib/auth/domain/SelfInformation.js.map +0 -1
  350. package/lib/auth/domain/Token.js.map +0 -1
  351. package/lib/auth/domain/UserSelfInformation.js.map +0 -1
  352. package/lib/common/requests/RestClient.js.map +0 -1
  353. package/lib/translation/common/Format.js.map +0 -1
  354. package/lib/translation/common/Product.js.map +0 -1
  355. package/lib/translation/common/Regions.js.map +0 -1
  356. package/lib/translation/common/Statuses.js.map +0 -1
  357. package/lib/translation/translate/request/TranslateBatchFileRequest.js.map +0 -1
  358. package/lib/translation/translate/request/TranslateFileRequest.js.map +0 -1
  359. package/lib/translation/translate/request/TranslateRequest.js.map +0 -1
  360. package/lib/translation/translate/request/TranslateTextRequest.js.map +0 -1
  361. package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.js.map +0 -1
  362. package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.js.map +0 -1
  363. package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.js.map +0 -1
  364. package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.js.map +0 -1
  365. package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.js.map +0 -1
  366. package/lib/translation/translate/response/AsyncTranslationResponse.js.map +0 -1
  367. package/lib/translation/translate/response/DictionaryResponse.js.map +0 -1
  368. package/lib/translation/translate/response/LanguagePair.js.map +0 -1
  369. package/lib/translation/translate/response/StatusTranslationResponse.js.map +0 -1
  370. package/lib/translation/translate/response/TranslationStatistics.js.map +0 -1
  371. package/lib/translation/translate/response/cloud/CloudDictionaryResponse.js.map +0 -1
  372. package/lib/translation/translate/response/cloud/CloudLanguagePair.js.map +0 -1
  373. package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.js.map +0 -1
  374. package/lib/translation/translate/response/edge/EdgeDictionaryResponse.js.map +0 -1
  375. package/lib/translation/translate/response/edge/EdgeLanguagePair.js.map +0 -1
  376. package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.js.map +0 -1
  377. package/lib/translation/translate/response/edge/MemberPair.js.map +0 -1
  378. package/lib/translation/translate/response/edge/Profile.js.map +0 -1
  379. package/lib/translation/translate/response/edge/Result.js.map +0 -1
  380. package/lib/translation/translate/response/edge/Timestamps.js.map +0 -1
  381. package/lib/translation/translate/result/DictionariesResult.d.ts +0 -6
  382. package/lib/translation/translate/result/DictionariesResult.js +0 -19
  383. package/lib/translation/translate/result/DictionariesResult.js.map +0 -1
  384. package/lib/translation/translate/result/LanguagePairsResult.js.map +0 -1
  385. package/lib/translation/translate/result/TranslateTextResult.js.map +0 -1
  386. package/lib/translation/translate/result/TranslationBatchFileResult.js.map +0 -1
  387. package/lib/translation/translate/result/TranslationFileResult.js.map +0 -1
  388. package/lib/translation/translate/result/cloud/CloudDictionariesResult.d.ts +0 -18
  389. package/lib/translation/translate/result/cloud/CloudDictionariesResult.js +0 -59
  390. package/lib/translation/translate/result/cloud/CloudDictionariesResult.js.map +0 -1
  391. package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.js.map +0 -1
  392. package/lib/translation/translate/result/edge/EdgeDictionariesResult.d.ts +0 -18
  393. package/lib/translation/translate/result/edge/EdgeDictionariesResult.js +0 -59
  394. package/lib/translation/translate/result/edge/EdgeDictionariesResult.js.map +0 -1
  395. package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.js.map +0 -1
  396. package/lib/translation/translate/result/edge/EdgeTranslationTextResult.js.map +0 -1
  397. package/lib/translation/translate/utils/TranslateFileUtil.js.map +0 -1
@@ -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"}
@@ -0,0 +1,10 @@
1
+ import PaginatedListResult from '../../../common/result/PaginatedListResult';
2
+ import EdgeFeedbackResult from './EdgeFeedbackResult';
3
+ export default class EdgeFeedbackListResult extends PaginatedListResult {
4
+ private _feedbackList;
5
+ private _totalPages;
6
+ get feedbackList(): EdgeFeedbackResult[];
7
+ set feedbackList(value: EdgeFeedbackResult[]);
8
+ get totalPages(): number | undefined;
9
+ set totalPages(value: number | undefined);
10
+ }
@@ -0,0 +1,52 @@
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 EdgeFeedbackListResult = /** @class */ (function (_super) {
23
+ __extends(EdgeFeedbackListResult, _super);
24
+ function EdgeFeedbackListResult() {
25
+ var _this = _super !== null && _super.apply(this, arguments) || this;
26
+ _this._feedbackList = [];
27
+ return _this;
28
+ }
29
+ Object.defineProperty(EdgeFeedbackListResult.prototype, "feedbackList", {
30
+ get: function () {
31
+ return this._feedbackList;
32
+ },
33
+ set: function (value) {
34
+ this._feedbackList = value;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ Object.defineProperty(EdgeFeedbackListResult.prototype, "totalPages", {
40
+ get: function () {
41
+ return this._totalPages;
42
+ },
43
+ set: function (value) {
44
+ this._totalPages = value;
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ return EdgeFeedbackListResult;
50
+ }(PaginatedListResult_1.default));
51
+ exports.default = EdgeFeedbackListResult;
52
+ //# sourceMappingURL=EdgeFeedbackListResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeFeedbackListResult.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/result/EdgeFeedbackListResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAG7E;IAAoD,0CAAmB;IAAvE;QAAA,qEAmBC;QAlBW,mBAAa,GAAyB,EAAE,CAAC;;IAkBrD,CAAC;IAfG,sBAAI,gDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA2B;YACxC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,8CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAKL,6BAAC;AAAD,CAAC,AAnBD,CAAoD,6BAAmB,GAmBtE"}
@@ -0,0 +1,6 @@
1
+ import FeedbackResult from '../../common/result/FeedbackResult';
2
+ export default class EdgeFeedbackResult extends FeedbackResult {
3
+ private _languagePairId;
4
+ get languagePairId(): string | undefined;
5
+ set languagePairId(value: string | undefined);
6
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var FeedbackResult_1 = __importDefault(require("../../common/result/FeedbackResult"));
22
+ var EdgeFeedbackResult = /** @class */ (function (_super) {
23
+ __extends(EdgeFeedbackResult, _super);
24
+ function EdgeFeedbackResult() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ Object.defineProperty(EdgeFeedbackResult.prototype, "languagePairId", {
28
+ get: function () {
29
+ return this._languagePairId;
30
+ },
31
+ set: function (value) {
32
+ this._languagePairId = value;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ return EdgeFeedbackResult;
38
+ }(FeedbackResult_1.default));
39
+ exports.default = EdgeFeedbackResult;
40
+ //# sourceMappingURL=EdgeFeedbackResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeFeedbackResult.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/result/EdgeFeedbackResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,sFAAgE;AAEhE;IAAgD,sCAAc;IAA9D;;IAUA,CAAC;IAPG,sBAAI,8CAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAKL,yBAAC;AAAD,CAAC,AAVD,CAAgD,wBAAc,GAU7D"}
@@ -0,0 +1,39 @@
1
+ import RestClient from '../../../../common/external/communication/RestClient';
2
+ import Token from '../../../../common/auth/domain/Token';
3
+ import FilterFeedbackRequest from '../../common/request/FilterFeedbackRequest';
4
+ import FeedbackListResult from '../../common/result/FeedbackListResult';
5
+ import EdgeFilterFeedbackRequest from '../request/EdgeFilterFeedbackRequest';
6
+ import EdgeFeedbackListResult from '../result/EdgeFeedbackListResult';
7
+ import CreateFeedbackRequest from '../../common/request/CreateFeedbackRequest';
8
+ import FeedbackResult from '../../common/result/FeedbackResult';
9
+ import EdgeLanguagePair from '../../../translate/edge/api/EdgeLanguagePair';
10
+ import EdgeFeedbackResult from '../result/EdgeFeedbackResult';
11
+ import EdgeCreateFeedbackRequest from '../request/EdgeCreateFeedbackRequest';
12
+ import UpdateFeedbackRequest from '../../common/request/UpdateFeedbackRequest';
13
+ import EdgeUpdateFeedbackRequest from '../request/EdgeUpdateFeedbackRequest';
14
+ import UpdateFeedbackApprovalRequest from '../../common/request/UpdateFeedbackApprovalRequest';
15
+ import EdgeUpdateFeedbackApprovalRequest from '../request/EdgeUpdateFeedbackApprovalRequest';
16
+ import DeleteFeedbackRequest from '../../common/request/DeleteFeedbackRequest';
17
+ import EdgeDeleteFeedbackRequest from '../request/EdgeDeleteFeedbackRequest';
18
+ export default class EdgeFeedbackService {
19
+ private readonly _client;
20
+ private readonly _token;
21
+ private readonly _validator;
22
+ constructor(client: RestClient, token: Token | undefined);
23
+ getAllFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
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;
36
+ private performGetAllFeedback;
37
+ private getPageQueryParams;
38
+ private getFilterQueryParams;
39
+ }
@@ -0,0 +1,216 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var moment_1 = __importDefault(require("moment"));
18
+ var EdgeFeedbackValidator_1 = __importDefault(require("../validators/EdgeFeedbackValidator"));
19
+ var EdgeFeedbackListResponse_1 = __importDefault(require("../api/EdgeFeedbackListResponse"));
20
+ var EdgeFilterFeedbackRequest_1 = __importDefault(require("../request/EdgeFilterFeedbackRequest"));
21
+ var TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
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"));
27
+ var PAGE_QUERY_PARAM = 'page';
28
+ var PER_PAGE_QUERY_PARAM = 'perPage';
29
+ var EdgeFeedbackService = /** @class */ (function () {
30
+ function EdgeFeedbackService(client, token) {
31
+ this._validator = new EdgeFeedbackValidator_1.default();
32
+ this._client = client;
33
+ this._token = token;
34
+ }
35
+ EdgeFeedbackService.prototype.getAllFeedback = function (pageNumber, pageSize, filterRequest) {
36
+ return this.performGetAllFeedback(pageNumber, pageSize, filterRequest)
37
+ .then(function (response) { return Promise.resolve(response.toResult()); })
38
+ .catch(function (e) { return Promise.reject(e); });
39
+ };
40
+ EdgeFeedbackService.prototype.getAllEdgeFeedback = function (pageNumber, pageSize, filterRequest) {
41
+ return this.performGetAllFeedback(pageNumber, pageSize, filterRequest)
42
+ .then(function (response) { return Promise.resolve(response.toEdgeResult()); })
43
+ .catch(function (e) { return Promise.reject(e); });
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
+ };
138
+ EdgeFeedbackService.prototype.performGetAllFeedback = function (pageNumber, pageSize, filterRequest) {
139
+ var queryParams = __assign(__assign({}, this.getPageQueryParams(pageNumber, pageSize)), this.getFilterQueryParams(filterRequest));
140
+ return this._client
141
+ .requestJson(this._token, 'GET', TranslationConstants_1.EDGE_GET_ALL_FEEDBACK_PATH, null, queryParams)
142
+ .then(function (response) {
143
+ var edgeResponse = new EdgeFeedbackListResponse_1.default();
144
+ edgeResponse.feedback = response.feedback.map(function (feedbackItem) {
145
+ return new EdgeFeedbackApiModel_1.default(feedbackItem);
146
+ });
147
+ edgeResponse.page = response.page;
148
+ edgeResponse.perPage = response.perPage;
149
+ edgeResponse.totalItems = response.totalItems;
150
+ edgeResponse.totalPages = response.totalPages;
151
+ return Promise.resolve(edgeResponse);
152
+ })
153
+ .catch(function (e) { return Promise.reject(e); });
154
+ };
155
+ EdgeFeedbackService.prototype.getPageQueryParams = function (pageNumber, pageSize) {
156
+ var _a, _b;
157
+ var queryParams = {};
158
+ if (pageNumber) {
159
+ queryParams = __assign(__assign({}, queryParams), (_a = {}, _a[PAGE_QUERY_PARAM] = pageNumber, _a));
160
+ }
161
+ queryParams = __assign(__assign({}, queryParams), (_b = {}, _b[PER_PAGE_QUERY_PARAM] = pageSize || TranslationConstants_1.DEFAULT_FEEDBACK_PAGE_SIZE, _b));
162
+ return queryParams;
163
+ };
164
+ EdgeFeedbackService.prototype.getFilterQueryParams = function (filterRequest) {
165
+ var queryParams = {};
166
+ if (filterRequest) {
167
+ if (filterRequest.startDate) {
168
+ queryParams = __assign(__assign({}, queryParams), { startTimeCreated: (0, moment_1.default)(filterRequest.startDate, TranslationConstants_1.SUPPORTED_INPUT_DATE_FORMATS).format(TranslationConstants_1.EDGE_DATE_FORMAT) });
169
+ }
170
+ if (filterRequest.endDate) {
171
+ queryParams = __assign(__assign({}, queryParams), { endTimeCreated: (0, moment_1.default)(filterRequest.endDate, TranslationConstants_1.SUPPORTED_INPUT_DATE_FORMATS).format(TranslationConstants_1.EDGE_DATE_FORMAT) });
172
+ }
173
+ if (filterRequest.user) {
174
+ queryParams = __assign(__assign({}, queryParams), { username: filterRequest.user });
175
+ }
176
+ if (filterRequest instanceof EdgeFilterFeedbackRequest_1.default) {
177
+ if (filterRequest.approvalStatuses) {
178
+ queryParams = __assign(__assign({}, queryParams), { approvalStates: filterRequest.approvalStatuses.join(',') });
179
+ }
180
+ if (filterRequest.languagePairId) {
181
+ queryParams = __assign(__assign({}, queryParams), { languagePairId: filterRequest.languagePairId });
182
+ }
183
+ if (filterRequest.sourceLanguageId) {
184
+ queryParams = __assign(__assign({}, queryParams), { sourceLanguageId: filterRequest.sourceLanguageId });
185
+ }
186
+ if (filterRequest.targetLanguageId) {
187
+ queryParams = __assign(__assign({}, queryParams), { targetLanguageId: filterRequest.targetLanguageId });
188
+ }
189
+ if (filterRequest.sourceText) {
190
+ queryParams = __assign(__assign({}, queryParams), { sourceText: filterRequest.sourceText });
191
+ }
192
+ if (filterRequest.machineTranslation) {
193
+ queryParams = __assign(__assign({}, queryParams), { machineTranslation: filterRequest.machineTranslation });
194
+ }
195
+ if (filterRequest.suggestedTranslation) {
196
+ queryParams = __assign(__assign({}, queryParams), { suggestedTranslation: filterRequest.suggestedTranslation });
197
+ }
198
+ if (filterRequest.comment) {
199
+ queryParams = __assign(__assign({}, queryParams), { comment: filterRequest.comment });
200
+ }
201
+ if (filterRequest.reviewer) {
202
+ queryParams = __assign(__assign({}, queryParams), { reviewer: filterRequest.reviewer });
203
+ }
204
+ }
205
+ else {
206
+ if (filterRequest.approvalStatus) {
207
+ queryParams = __assign(__assign({}, queryParams), { approvalStates: filterRequest.approvalStatus });
208
+ }
209
+ }
210
+ }
211
+ return queryParams;
212
+ };
213
+ return EdgeFeedbackService;
214
+ }());
215
+ exports.default = EdgeFeedbackService;
216
+ //# sourceMappingURL=EdgeFeedbackService.js.map
@@ -0,0 +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,0FAM2D;AAE3D,qFAA+D;AAK/D,mGAA6E;AAE7E,mGAA6E;AAI7E,mGAA6E;AAC7E,iFAA2D;AAE3D,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,CA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Validator from '../../common/validators/FeedbackValidator';
2
+ export default class EdgeFeedbackValidator extends FeedbackValidator {
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 FeedbackValidator_1 = __importDefault(require("../../common/validators/FeedbackValidator"));
22
+ var EdgeFeedbackValidator = /** @class */ (function (_super) {
23
+ __extends(EdgeFeedbackValidator, _super);
24
+ function EdgeFeedbackValidator() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ return EdgeFeedbackValidator;
28
+ }(FeedbackValidator_1.default));
29
+ exports.default = EdgeFeedbackValidator;
30
+ //# sourceMappingURL=EdgeFeedbackValidator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeFeedbackValidator.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/validators/EdgeFeedbackValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,gGAA0E;AAE1E;IAAmD,yCAAiB;IAApE;;IAAsE,CAAC;IAAD,4BAAC;AAAD,CAAC,AAAvE,CAAmD,2BAAiB,GAAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudDictionaryResponse.js","sourceRoot":"","sources":["../../../../../src/translation/translate/cloud/api/CloudDictionaryResponse.ts"],"names":[],"mappings":";;AAAA;IAAA;QAQY,iBAAY,GAAW,EAAE,CAAC;IAmFtC,CAAC;IA/EG,sBAAI,iDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,8CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,8CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,iDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,mDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,mDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,yCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,gDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAa;YACzB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,2CAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,2CAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAKL,8BAAC;AAAD,CAAC,AA3FD,IA2FC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudLanguagePair.js","sourceRoot":"","sources":["../../../../../src/translation/translate/cloud/api/CloudLanguagePair.ts"],"names":[],"mappings":";;AAAA;IAAA;IA8CA,CAAC;IAvCG,sBAAI,mCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,0CAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,+CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,+CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,oCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAKL,wBAAC;AAAD,CAAC,AA9CD,IA8CC"}
@@ -1,3 +1,3 @@
1
- import TranslateBatchFileRequest from '../TranslateBatchFileRequest';
1
+ import TranslateBatchFileRequest from '../../common/request/TranslateBatchFileRequest';
2
2
  export default class CloudTranslateBatchFileRequest extends TranslateBatchFileRequest {
3
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 TranslateBatchFileRequest_1 = __importDefault(require("../TranslateBatchFileRequest"));
21
+ var TranslateBatchFileRequest_1 = __importDefault(require("../../common/request/TranslateBatchFileRequest"));
22
22
  var CloudTranslateBatchFileRequest = /** @class */ (function (_super) {
23
23
  __extends(CloudTranslateBatchFileRequest, _super);
24
24
  function CloudTranslateBatchFileRequest() {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudTranslateBatchFileRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/cloud/request/CloudTranslateBatchFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,6GAAuF;AAEvF;IAA4D,kDAAyB;IAArF;;IAAuF,CAAC;IAAD,qCAAC;AAAD,CAAC,AAAxF,CAA4D,mCAAyB,GAAG"}
@@ -1,3 +1,3 @@
1
- import TranslateFileRequest from '../TranslateFileRequest';
1
+ import TranslateFileRequest from '../../common/request/TranslateFileRequest';
2
2
  export default class CloudTranslateFileRequest extends TranslateFileRequest {
3
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 TranslateFileRequest_1 = __importDefault(require("../TranslateFileRequest"));
21
+ var TranslateFileRequest_1 = __importDefault(require("../../common/request/TranslateFileRequest"));
22
22
  var CloudTranslateFileRequest = /** @class */ (function (_super) {
23
23
  __extends(CloudTranslateFileRequest, _super);
24
24
  function CloudTranslateFileRequest() {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudTranslateFileRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/cloud/request/CloudTranslateFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAE7E;IAAuD,6CAAoB;IAA3E;;IAA6E,CAAC;IAAD,gCAAC;AAAD,CAAC,AAA9E,CAAuD,8BAAoB,GAAG"}
@@ -1,3 +1,3 @@
1
- import TranslateTextRequest from '../TranslateTextRequest';
1
+ import TranslateTextRequest from '../../common/request/TranslateTextRequest';
2
2
  export default class CloudTranslateTextRequest extends TranslateTextRequest {
3
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 TranslateTextRequest_1 = __importDefault(require("../TranslateTextRequest"));
21
+ var TranslateTextRequest_1 = __importDefault(require("../../common/request/TranslateTextRequest"));
22
22
  var CloudTranslateTextRequest = /** @class */ (function (_super) {
23
23
  __extends(CloudTranslateTextRequest, _super);
24
24
  function CloudTranslateTextRequest() {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudTranslateTextRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/cloud/request/CloudTranslateTextRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAE7E;IAAuD,6CAAoB;IAA3E;;IAA6E,CAAC;IAAD,gCAAC;AAAD,CAAC,AAA9E,CAAuD,8BAAoB,GAAG"}