@language-weaver/lw-sdk-js 1.0.0 → 1.1.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 (342) 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 +0 -0
  28. package/lib/{translation/common → common/constants}/Format.js +0 -0
  29. package/lib/common/constants/Format.js.map +1 -0
  30. package/lib/common/constants/Order.d.ts +4 -0
  31. package/lib/common/constants/Order.js +9 -0
  32. package/lib/common/constants/Order.js.map +1 -0
  33. package/lib/{translation/common → common/constants}/Product.d.ts +0 -0
  34. package/lib/{translation/common → common/constants}/Product.js +0 -0
  35. package/lib/common/constants/Product.js.map +1 -0
  36. package/lib/{translation/common → common/constants}/Regions.d.ts +0 -0
  37. package/lib/{translation/common → common/constants}/Regions.js +0 -0
  38. package/lib/common/constants/Regions.js.map +1 -0
  39. package/lib/{translation/common → common/constants}/Statuses.d.ts +0 -0
  40. package/lib/{translation/common → common/constants}/Statuses.js +0 -0
  41. package/lib/common/constants/Statuses.js.map +1 -0
  42. package/lib/common/constants/TranslationConstants.d.ts +6 -0
  43. package/lib/common/constants/TranslationConstants.js +8 -2
  44. package/lib/common/constants/TranslationConstants.js.map +1 -1
  45. package/lib/common/{requests → external/communication}/RestClient.d.ts +1 -1
  46. package/lib/common/{requests → external/communication}/RestClient.js +5 -12
  47. package/lib/common/external/communication/RestClient.js.map +1 -0
  48. package/lib/common/utils/HttpUtils.d.ts +1 -1
  49. package/lib/common/utils/HttpUtils.js +1 -1
  50. package/lib/common/utils/HttpUtils.js.map +1 -1
  51. package/lib/common/utils/Utils.d.ts +2 -2
  52. package/lib/common/utils/Utils.js +1 -1
  53. package/lib/common/utils/Utils.js.map +1 -1
  54. package/lib/index.d.ts +57 -39
  55. package/lib/index.js +74 -38
  56. package/lib/index.js.map +1 -1
  57. package/lib/translation/common/LanguageWeaverClient.d.ts +18 -0
  58. package/lib/{LanguageWeaverClient.js → translation/common/LanguageWeaverClient.js} +0 -0
  59. package/lib/translation/common/LanguageWeaverClient.js.map +1 -0
  60. package/lib/{SdkFactory.d.ts → translation/common/SdkFactory.d.ts} +2 -2
  61. package/lib/{SdkFactory.js → translation/common/SdkFactory.js} +5 -5
  62. package/lib/translation/common/SdkFactory.js.map +1 -0
  63. package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +68 -0
  64. package/lib/{CloudLanguageWeaverClient.js → translation/common/cloud/CloudLanguageWeaverClient.js} +53 -29
  65. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -0
  66. package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +67 -0
  67. package/lib/{EdgeLanguageWeaverClient.js → translation/common/edge/EdgeLanguageWeaverClient.js} +56 -26
  68. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -0
  69. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +2 -0
  70. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +24 -0
  71. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -0
  72. package/lib/translation/common/result/PaginatedListResult.d.ts +11 -0
  73. package/lib/translation/common/result/PaginatedListResult.js +39 -0
  74. package/lib/translation/common/result/PaginatedListResult.js.map +1 -0
  75. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.d.ts +63 -0
  76. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +286 -0
  77. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -0
  78. package/lib/translation/feedback/cloud/api/CloudFeedbackApproval.d.ts +35 -0
  79. package/lib/translation/feedback/cloud/api/CloudFeedbackApproval.js +119 -0
  80. package/lib/translation/feedback/cloud/api/CloudFeedbackApproval.js.map +1 -0
  81. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.d.ts +6 -0
  82. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.js +20 -0
  83. package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.js.map +1 -0
  84. package/lib/translation/feedback/cloud/api/CloudFeedbackListResponse.d.ts +11 -0
  85. package/lib/translation/feedback/cloud/api/CloudFeedbackListResponse.js +60 -0
  86. package/lib/translation/feedback/cloud/api/CloudFeedbackListResponse.js.map +1 -0
  87. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.d.ts +10 -0
  88. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js +34 -0
  89. package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js.map +1 -0
  90. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.d.ts +25 -0
  91. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js +111 -0
  92. package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js.map +1 -0
  93. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.d.ts +26 -0
  94. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js +89 -0
  95. package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js.map +1 -0
  96. package/lib/translation/feedback/cloud/model/CloudAuditData.d.ts +21 -0
  97. package/lib/translation/feedback/cloud/model/CloudAuditData.js +90 -0
  98. package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +1 -0
  99. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.d.ts +4 -0
  100. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js +9 -0
  101. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +1 -0
  102. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +10 -0
  103. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.js +29 -0
  104. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.js.map +1 -0
  105. package/lib/translation/feedback/cloud/request/CloudFilterFeedbackRequest.d.ts +14 -0
  106. package/lib/translation/feedback/cloud/request/CloudFilterFeedbackRequest.js +60 -0
  107. package/lib/translation/feedback/cloud/request/CloudFilterFeedbackRequest.js.map +1 -0
  108. package/lib/translation/feedback/cloud/result/CloudFeedbackListResult.d.ts +7 -0
  109. package/lib/translation/feedback/cloud/result/CloudFeedbackListResult.js +42 -0
  110. package/lib/translation/feedback/cloud/result/CloudFeedbackListResult.js.map +1 -0
  111. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +25 -0
  112. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js +100 -0
  113. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js.map +1 -0
  114. package/lib/translation/feedback/cloud/service/CloudFeedbackService.d.ts +20 -0
  115. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +97 -0
  116. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -0
  117. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.d.ts +5 -0
  118. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js +36 -0
  119. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +1 -0
  120. package/lib/translation/feedback/common/model/AuditData.d.ts +14 -0
  121. package/lib/translation/feedback/common/model/AuditData.js +49 -0
  122. package/lib/translation/feedback/common/model/AuditData.js.map +1 -0
  123. package/lib/translation/feedback/common/request/FilterFeedbackRequest.d.ts +15 -0
  124. package/lib/translation/feedback/common/request/FilterFeedbackRequest.js +49 -0
  125. package/lib/translation/feedback/common/request/FilterFeedbackRequest.js.map +1 -0
  126. package/lib/translation/feedback/common/result/FeedbackCommonResult.d.ts +30 -0
  127. package/lib/translation/feedback/common/result/FeedbackCommonResult.js +100 -0
  128. package/lib/translation/feedback/common/result/FeedbackCommonResult.js.map +1 -0
  129. package/lib/translation/feedback/common/result/FeedbackListResult.d.ts +7 -0
  130. package/lib/translation/feedback/common/result/FeedbackListResult.js +42 -0
  131. package/lib/translation/feedback/common/result/FeedbackListResult.js.map +1 -0
  132. package/lib/translation/feedback/common/result/FeedbackResult.d.ts +12 -0
  133. package/lib/translation/feedback/common/result/FeedbackResult.js +59 -0
  134. package/lib/translation/feedback/common/result/FeedbackResult.js.map +1 -0
  135. package/lib/translation/feedback/common/validators/FeedbackValidator.d.ts +2 -0
  136. package/lib/translation/feedback/common/validators/FeedbackValidator.js +9 -0
  137. package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +1 -0
  138. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +39 -0
  139. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +162 -0
  140. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -0
  141. package/lib/translation/feedback/edge/api/EdgeFeedbackListResponse.d.ts +22 -0
  142. package/lib/translation/feedback/edge/api/EdgeFeedbackListResponse.js +86 -0
  143. package/lib/translation/feedback/edge/api/EdgeFeedbackListResponse.js.map +1 -0
  144. package/lib/translation/feedback/edge/api/Timestamps.d.ts +11 -0
  145. package/lib/translation/feedback/edge/api/Timestamps.js +39 -0
  146. package/lib/translation/feedback/edge/api/Timestamps.js.map +1 -0
  147. package/lib/translation/feedback/edge/request/EdgeFilterFeedbackRequest.d.ts +31 -0
  148. package/lib/translation/feedback/edge/request/EdgeFilterFeedbackRequest.js +122 -0
  149. package/lib/translation/feedback/edge/request/EdgeFilterFeedbackRequest.js.map +1 -0
  150. package/lib/translation/feedback/edge/result/EdgeFeedbackListResult.d.ts +10 -0
  151. package/lib/translation/feedback/edge/result/EdgeFeedbackListResult.js +52 -0
  152. package/lib/translation/feedback/edge/result/EdgeFeedbackListResult.js.map +1 -0
  153. package/lib/translation/feedback/edge/result/EdgeFeedbackResult.d.ts +6 -0
  154. package/lib/translation/feedback/edge/result/EdgeFeedbackResult.js +40 -0
  155. package/lib/translation/feedback/edge/result/EdgeFeedbackResult.js.map +1 -0
  156. package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +17 -0
  157. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +119 -0
  158. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -0
  159. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +3 -0
  160. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js +30 -0
  161. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +1 -0
  162. package/lib/translation/translate/{response/cloud → cloud/api}/CloudDictionaryResponse.d.ts +0 -0
  163. package/lib/translation/translate/{response/cloud → cloud/api}/CloudDictionaryResponse.js +0 -0
  164. package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +1 -0
  165. package/lib/translation/translate/{response/cloud → cloud/api}/CloudLanguagePair.d.ts +0 -0
  166. package/lib/translation/translate/{response/cloud → cloud/api}/CloudLanguagePair.js +0 -0
  167. package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +1 -0
  168. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateBatchFileRequest.d.ts +1 -1
  169. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateBatchFileRequest.js +1 -1
  170. package/lib/translation/translate/cloud/request/CloudTranslateBatchFileRequest.js.map +1 -0
  171. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateFileRequest.d.ts +1 -1
  172. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateFileRequest.js +1 -1
  173. package/lib/translation/translate/cloud/request/CloudTranslateFileRequest.js.map +1 -0
  174. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateTextRequest.d.ts +1 -1
  175. package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateTextRequest.js +1 -1
  176. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -0
  177. package/lib/translation/translate/cloud/result/CloudDictionariesResult.d.ts +10 -0
  178. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js +50 -0
  179. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +1 -0
  180. package/lib/translation/translate/{result/cloud → cloud/result}/CloudLanguagePairsResult.d.ts +1 -1
  181. package/lib/translation/translate/{result/cloud → cloud/result}/CloudLanguagePairsResult.js +0 -0
  182. package/lib/translation/translate/{result/cloud → cloud/result}/CloudLanguagePairsResult.js.map +1 -1
  183. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationBatchFileResult.d.ts +1 -1
  184. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationBatchFileResult.js +1 -1
  185. package/lib/translation/translate/cloud/result/CloudTranslationBatchFileResult.js.map +1 -0
  186. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationFileResult.d.ts +3 -3
  187. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationFileResult.js +1 -1
  188. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationFileResult.js.map +1 -1
  189. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationTextResult.d.ts +2 -2
  190. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationTextResult.js +0 -0
  191. package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationTextResult.js.map +1 -1
  192. package/lib/translation/translate/{response → common/api}/AsyncTranslationResponse.d.ts +0 -0
  193. package/lib/translation/translate/{response → common/api}/AsyncTranslationResponse.js +0 -0
  194. package/lib/translation/translate/common/api/AsyncTranslationResponse.js.map +1 -0
  195. package/lib/translation/translate/{response → common/api}/DictionaryResponse.d.ts +0 -0
  196. package/lib/translation/translate/{response → common/api}/DictionaryResponse.js +0 -0
  197. package/lib/translation/translate/common/api/DictionaryResponse.js.map +1 -0
  198. package/lib/translation/translate/{response → common/api}/LanguagePair.d.ts +0 -0
  199. package/lib/translation/translate/{response → common/api}/LanguagePair.js +0 -0
  200. package/lib/translation/translate/common/api/LanguagePair.js.map +1 -0
  201. package/lib/translation/translate/{response → common/api}/TranslationStatistics.d.ts +0 -0
  202. package/lib/translation/translate/{response → common/api}/TranslationStatistics.js +0 -0
  203. package/lib/translation/translate/common/api/TranslationStatistics.js.map +1 -0
  204. package/lib/translation/translate/{response/StatusTranslationResponse.d.ts → common/api/TranslationStatusResponse.d.ts} +2 -2
  205. package/lib/translation/translate/{response/StatusTranslationResponse.js → common/api/TranslationStatusResponse.js} +10 -10
  206. package/lib/translation/translate/common/api/TranslationStatusResponse.js.map +1 -0
  207. package/lib/translation/translate/{request → common/request}/TranslateBatchFileRequest.d.ts +0 -0
  208. package/lib/translation/translate/{request → common/request}/TranslateBatchFileRequest.js +0 -0
  209. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -0
  210. package/lib/translation/translate/{request → common/request}/TranslateFileRequest.d.ts +0 -0
  211. package/lib/translation/translate/{request → common/request}/TranslateFileRequest.js +0 -0
  212. package/lib/translation/translate/common/request/TranslateFileRequest.js.map +1 -0
  213. package/lib/translation/translate/{request → common/request}/TranslateRequest.d.ts +1 -1
  214. package/lib/translation/translate/{request → common/request}/TranslateRequest.js +0 -0
  215. package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -0
  216. package/lib/translation/translate/{request → common/request}/TranslateTextRequest.d.ts +0 -0
  217. package/lib/translation/translate/{request → common/request}/TranslateTextRequest.js +0 -0
  218. package/lib/translation/translate/common/request/TranslateTextRequest.js.map +1 -0
  219. package/lib/translation/translate/common/result/DictionariesResult.d.ts +7 -0
  220. package/lib/translation/translate/common/result/DictionariesResult.js +40 -0
  221. package/lib/translation/translate/common/result/DictionariesResult.js.map +1 -0
  222. package/lib/translation/translate/{result → common/result}/LanguagePairsResult.d.ts +1 -1
  223. package/lib/translation/translate/{result → common/result}/LanguagePairsResult.js +0 -0
  224. package/lib/translation/translate/common/result/LanguagePairsResult.js.map +1 -0
  225. package/lib/translation/translate/{result → common/result}/TranslateTextResult.d.ts +0 -0
  226. package/lib/translation/translate/{result → common/result}/TranslateTextResult.js +0 -0
  227. package/lib/translation/translate/common/result/TranslateTextResult.js.map +1 -0
  228. package/lib/translation/translate/{result → common/result}/TranslationBatchFileResult.d.ts +0 -0
  229. package/lib/translation/translate/{result → common/result}/TranslationBatchFileResult.js +0 -0
  230. package/lib/translation/translate/common/result/TranslationBatchFileResult.js.map +1 -0
  231. package/lib/translation/translate/{result → common/result}/TranslationFileResult.d.ts +0 -0
  232. package/lib/translation/translate/{result → common/result}/TranslationFileResult.js +0 -0
  233. package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -0
  234. package/lib/translation/translate/{utils → common/utils}/TranslateFileUtil.d.ts +0 -0
  235. package/lib/translation/translate/{utils → common/utils}/TranslateFileUtil.js +2 -2
  236. package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -0
  237. package/lib/translation/translate/{response/edge → edge/api}/EdgeAsyncTranslationResponse.d.ts +0 -0
  238. package/lib/translation/translate/{response/edge → edge/api}/EdgeAsyncTranslationResponse.js +0 -0
  239. package/lib/translation/translate/edge/api/EdgeAsyncTranslationResponse.js.map +1 -0
  240. package/lib/translation/translate/{response/edge → edge/api}/EdgeDictionaryResponse.d.ts +0 -0
  241. package/lib/translation/translate/{response/edge → edge/api}/EdgeDictionaryResponse.js +0 -0
  242. package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +1 -0
  243. package/lib/translation/translate/{response/edge → edge/api}/EdgeLanguagePair.d.ts +0 -0
  244. package/lib/translation/translate/{response/edge → edge/api}/EdgeLanguagePair.js +0 -0
  245. package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +1 -0
  246. package/lib/translation/translate/{response/edge → edge/api}/EdgeStatusTranslationResponse.d.ts +0 -0
  247. package/lib/translation/translate/{response/edge → edge/api}/EdgeStatusTranslationResponse.js +0 -0
  248. package/lib/translation/translate/edge/api/EdgeStatusTranslationResponse.js.map +1 -0
  249. package/lib/translation/translate/{response/edge → edge/api}/MemberPair.d.ts +0 -0
  250. package/lib/translation/translate/{response/edge → edge/api}/MemberPair.js +0 -0
  251. package/lib/translation/translate/edge/api/MemberPair.js.map +1 -0
  252. package/lib/translation/translate/{response/edge → edge/api}/Profile.d.ts +0 -0
  253. package/lib/translation/translate/{response/edge → edge/api}/Profile.js +0 -0
  254. package/lib/translation/translate/edge/api/Profile.js.map +1 -0
  255. package/lib/translation/translate/{response/edge → edge/api}/Result.d.ts +0 -0
  256. package/lib/translation/translate/{response/edge → edge/api}/Result.js +0 -0
  257. package/lib/translation/translate/edge/api/Result.js.map +1 -0
  258. package/lib/translation/translate/{response/edge → edge/api}/Timestamps.d.ts +0 -0
  259. package/lib/translation/translate/{response/edge → edge/api}/Timestamps.js +0 -0
  260. package/lib/translation/translate/edge/api/Timestamps.js.map +1 -0
  261. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateBatchFileRequest.d.ts +2 -2
  262. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateBatchFileRequest.js +1 -1
  263. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateBatchFileRequest.js.map +1 -1
  264. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateFileRequest.d.ts +2 -2
  265. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateFileRequest.js +1 -1
  266. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateFileRequest.js.map +1 -1
  267. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.d.ts +2 -2
  268. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.js +1 -1
  269. package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.js.map +1 -1
  270. package/lib/translation/translate/edge/result/EdgeDictionariesResult.d.ts +10 -0
  271. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js +50 -0
  272. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +1 -0
  273. package/lib/translation/translate/{result/edge → edge/result}/EdgeLanguagePairsResult.d.ts +1 -1
  274. package/lib/translation/translate/{result/edge → edge/result}/EdgeLanguagePairsResult.js +0 -0
  275. package/lib/translation/translate/{result/edge → edge/result}/EdgeLanguagePairsResult.js.map +1 -1
  276. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationBatchFileResult.d.ts +1 -1
  277. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationBatchFileResult.js +1 -1
  278. package/lib/translation/translate/edge/result/EdgeTranslationBatchFileResult.js.map +1 -0
  279. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationFileResult.d.ts +1 -1
  280. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationFileResult.js +1 -1
  281. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationFileResult.js.map +1 -1
  282. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationTextResult.d.ts +1 -1
  283. package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationTextResult.js +1 -1
  284. package/lib/translation/translate/edge/result/EdgeTranslationTextResult.js.map +1 -0
  285. package/lib/version.d.ts +1 -1
  286. package/lib/version.js +1 -1
  287. package/package.json +4 -3
  288. package/lib/CloudLanguageWeaverClient.d.ts +0 -61
  289. package/lib/CloudLanguageWeaverClient.js.map +0 -1
  290. package/lib/EdgeLanguageWeaverClient.d.ts +0 -60
  291. package/lib/EdgeLanguageWeaverClient.js.map +0 -1
  292. package/lib/LanguageWeaverClient.d.ts +0 -15
  293. package/lib/LanguageWeaverClient.js.map +0 -1
  294. package/lib/SdkFactory.js.map +0 -1
  295. package/lib/auth/LanguageWeaverAuthentication.js.map +0 -1
  296. package/lib/auth/domain/SelfInformation.js.map +0 -1
  297. package/lib/auth/domain/Token.js.map +0 -1
  298. package/lib/auth/domain/UserSelfInformation.js.map +0 -1
  299. package/lib/common/requests/RestClient.js.map +0 -1
  300. package/lib/translation/common/Format.js.map +0 -1
  301. package/lib/translation/common/Product.js.map +0 -1
  302. package/lib/translation/common/Regions.js.map +0 -1
  303. package/lib/translation/common/Statuses.js.map +0 -1
  304. package/lib/translation/translate/request/TranslateBatchFileRequest.js.map +0 -1
  305. package/lib/translation/translate/request/TranslateFileRequest.js.map +0 -1
  306. package/lib/translation/translate/request/TranslateRequest.js.map +0 -1
  307. package/lib/translation/translate/request/TranslateTextRequest.js.map +0 -1
  308. package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.js.map +0 -1
  309. package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.js.map +0 -1
  310. package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.js.map +0 -1
  311. package/lib/translation/translate/response/AsyncTranslationResponse.js.map +0 -1
  312. package/lib/translation/translate/response/DictionaryResponse.js.map +0 -1
  313. package/lib/translation/translate/response/LanguagePair.js.map +0 -1
  314. package/lib/translation/translate/response/StatusTranslationResponse.js.map +0 -1
  315. package/lib/translation/translate/response/TranslationStatistics.js.map +0 -1
  316. package/lib/translation/translate/response/cloud/CloudDictionaryResponse.js.map +0 -1
  317. package/lib/translation/translate/response/cloud/CloudLanguagePair.js.map +0 -1
  318. package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.js.map +0 -1
  319. package/lib/translation/translate/response/edge/EdgeDictionaryResponse.js.map +0 -1
  320. package/lib/translation/translate/response/edge/EdgeLanguagePair.js.map +0 -1
  321. package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.js.map +0 -1
  322. package/lib/translation/translate/response/edge/MemberPair.js.map +0 -1
  323. package/lib/translation/translate/response/edge/Profile.js.map +0 -1
  324. package/lib/translation/translate/response/edge/Result.js.map +0 -1
  325. package/lib/translation/translate/response/edge/Timestamps.js.map +0 -1
  326. package/lib/translation/translate/result/DictionariesResult.d.ts +0 -6
  327. package/lib/translation/translate/result/DictionariesResult.js +0 -19
  328. package/lib/translation/translate/result/DictionariesResult.js.map +0 -1
  329. package/lib/translation/translate/result/LanguagePairsResult.js.map +0 -1
  330. package/lib/translation/translate/result/TranslateTextResult.js.map +0 -1
  331. package/lib/translation/translate/result/TranslationBatchFileResult.js.map +0 -1
  332. package/lib/translation/translate/result/TranslationFileResult.js.map +0 -1
  333. package/lib/translation/translate/result/cloud/CloudDictionariesResult.d.ts +0 -18
  334. package/lib/translation/translate/result/cloud/CloudDictionariesResult.js +0 -59
  335. package/lib/translation/translate/result/cloud/CloudDictionariesResult.js.map +0 -1
  336. package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.js.map +0 -1
  337. package/lib/translation/translate/result/edge/EdgeDictionariesResult.d.ts +0 -18
  338. package/lib/translation/translate/result/edge/EdgeDictionariesResult.js +0 -59
  339. package/lib/translation/translate/result/edge/EdgeDictionariesResult.js.map +0 -1
  340. package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.js.map +0 -1
  341. package/lib/translation/translate/result/edge/EdgeTranslationTextResult.js.map +0 -1
  342. package/lib/translation/translate/utils/TranslateFileUtil.js.map +0 -1
@@ -0,0 +1,100 @@
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 FeedbackCommonResult_1 = __importDefault(require("../../common/result/FeedbackCommonResult"));
22
+ var CloudFeedbackResult = /** @class */ (function (_super) {
23
+ __extends(CloudFeedbackResult, _super);
24
+ function CloudFeedbackResult() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ Object.defineProperty(CloudFeedbackResult.prototype, "selectedText", {
28
+ get: function () {
29
+ return this._selectedText;
30
+ },
31
+ set: function (value) {
32
+ this._selectedText = value;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(CloudFeedbackResult.prototype, "translationMetadata", {
38
+ get: function () {
39
+ return this._translationMetadata;
40
+ },
41
+ set: function (value) {
42
+ this._translationMetadata = value;
43
+ },
44
+ enumerable: false,
45
+ configurable: true
46
+ });
47
+ Object.defineProperty(CloudFeedbackResult.prototype, "numberOfSegments", {
48
+ get: function () {
49
+ return this._numberOfSegments;
50
+ },
51
+ set: function (value) {
52
+ this._numberOfSegments = value;
53
+ },
54
+ enumerable: false,
55
+ configurable: true
56
+ });
57
+ Object.defineProperty(CloudFeedbackResult.prototype, "ratingScore", {
58
+ get: function () {
59
+ return this._ratingScore;
60
+ },
61
+ set: function (value) {
62
+ this._ratingScore = value;
63
+ },
64
+ enumerable: false,
65
+ configurable: true
66
+ });
67
+ Object.defineProperty(CloudFeedbackResult.prototype, "qualityEstimation", {
68
+ get: function () {
69
+ return this._qualityEstimation;
70
+ },
71
+ set: function (value) {
72
+ this._qualityEstimation = value;
73
+ },
74
+ enumerable: false,
75
+ configurable: true
76
+ });
77
+ Object.defineProperty(CloudFeedbackResult.prototype, "feedbackAuditData", {
78
+ get: function () {
79
+ return this._feedbackAuditData;
80
+ },
81
+ set: function (value) {
82
+ this._feedbackAuditData = value;
83
+ },
84
+ enumerable: false,
85
+ configurable: true
86
+ });
87
+ Object.defineProperty(CloudFeedbackResult.prototype, "approvalAuditData", {
88
+ get: function () {
89
+ return this._approvalAuditData;
90
+ },
91
+ set: function (value) {
92
+ this._approvalAuditData = value;
93
+ },
94
+ enumerable: false,
95
+ configurable: true
96
+ });
97
+ return CloudFeedbackResult;
98
+ }(FeedbackCommonResult_1.default));
99
+ exports.default = CloudFeedbackResult;
100
+ //# sourceMappingURL=CloudFeedbackResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudFeedbackResult.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/result/CloudFeedbackResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,kGAA4E;AAE5E;IAAiD,uCAAoB;IAArE;;IAgEA,CAAC;IAvDG,sBAAI,6CAAY;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,oDAAmB;aAAvB;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;aAED,UAAwB,KAAyB;YAC7C,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QACtC,CAAC;;;OAJA;IAMD,sBAAI,iDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,4CAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,kDAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAyB;YAC3C,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,sBAAI,kDAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAiC;YACnD,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,sBAAI,kDAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAiC;YACnD,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAKL,0BAAC;AAAD,CAAC,AAhED,CAAiD,8BAAoB,GAgEpE"}
@@ -0,0 +1,20 @@
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 FilterFeedbackRequest from '../../common/request/FilterFeedbackRequest';
5
+ import FeedbackListResult from '../../common/result/FeedbackListResult';
6
+ import CloudFilterFeedbackRequest from '../request/CloudFilterFeedbackRequest';
7
+ import CloudFeedbackListResult from '../result/CloudFeedbackListResult';
8
+ import Token from '../../../../common/auth/domain/Token';
9
+ export default class CloudFeedbackService {
10
+ private readonly _selfInfo;
11
+ private readonly _client;
12
+ private readonly _token;
13
+ private readonly _validator;
14
+ constructor(client: RestClient, token: Token | undefined, selfInfo: SelfInformation | UserSelfInformation | undefined);
15
+ getAllFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
16
+ getAllCloudFeedback(pageNumber: number, pageSize?: number, filterRequest?: CloudFilterFeedbackRequest): Promise<CloudFeedbackListResult>;
17
+ private performGetAllFeedback;
18
+ private getSortQueryParams;
19
+ private getPageQueryParams;
20
+ }
@@ -0,0 +1,97 @@
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 CloudFeedbackListResponse_1 = __importDefault(require("../api/CloudFeedbackListResponse"));
18
+ var CloudFilterFeedbackRequest_1 = __importDefault(require("../request/CloudFilterFeedbackRequest"));
19
+ var CloudFilterFeedbackApiRequest_1 = __importDefault(require("../api/CloudFilterFeedbackApiRequest"));
20
+ var CloudFeedbackValidator_1 = __importDefault(require("../validators/CloudFeedbackValidator"));
21
+ var TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
22
+ var CloudFeedbackApiModel_1 = __importDefault(require("../api/CloudFeedbackApiModel"));
23
+ var PAGE_SIZE_QUERY_PARAM = 'pageSize';
24
+ var SORT_QUERY_PARAM = 'sort';
25
+ var CloudFeedbackService = /** @class */ (function () {
26
+ function CloudFeedbackService(client, token, selfInfo) {
27
+ this._validator = new CloudFeedbackValidator_1.default();
28
+ this._client = client;
29
+ this._token = token;
30
+ this._selfInfo = selfInfo;
31
+ }
32
+ CloudFeedbackService.prototype.getAllFeedback = function (pageNumber, pageSize, filterRequest) {
33
+ return this.performGetAllFeedback(pageNumber, pageSize, filterRequest)
34
+ .then(function (response) { return Promise.resolve(response.toResult()); })
35
+ .catch(function (e) { return Promise.reject(e); });
36
+ };
37
+ CloudFeedbackService.prototype.getAllCloudFeedback = function (pageNumber, pageSize, filterRequest) {
38
+ return this.performGetAllFeedback(pageNumber, pageSize, filterRequest)
39
+ .then(function (response) { return Promise.resolve(response.toCloudResult()); })
40
+ .catch(function (e) { return Promise.reject(e); });
41
+ };
42
+ CloudFeedbackService.prototype.performGetAllFeedback = function (pageNumber, pageSize, filterRequest) {
43
+ var _a;
44
+ var requestPath = "/v4/accounts/".concat((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId, "/feedback/translations/filter");
45
+ var apiRequest;
46
+ var queryParams = {};
47
+ if (filterRequest instanceof CloudFilterFeedbackRequest_1.default) {
48
+ var cloudFilterFeedbackRequest = filterRequest;
49
+ apiRequest = new CloudFilterFeedbackApiRequest_1.default(cloudFilterFeedbackRequest);
50
+ var validationError = this._validator.validateCloudFeedbackSortRequest(cloudFilterFeedbackRequest.sortRequest);
51
+ if (validationError) {
52
+ return Promise.reject({ message: validationError });
53
+ }
54
+ queryParams = __assign(__assign({}, queryParams), this.getSortQueryParams(filterRequest));
55
+ }
56
+ else {
57
+ apiRequest = new CloudFilterFeedbackApiRequest_1.default(filterRequest);
58
+ }
59
+ queryParams = __assign(__assign({}, queryParams), this.getPageQueryParams(pageNumber, pageSize));
60
+ return this._client
61
+ .requestJson(this._token, 'POST', requestPath, apiRequest, queryParams)
62
+ .then(function (response) {
63
+ var cloudResponse = new CloudFeedbackListResponse_1.default();
64
+ cloudResponse.feedbackList = response.feedbackList.map(function (feedback) {
65
+ return new CloudFeedbackApiModel_1.default(feedback);
66
+ });
67
+ cloudResponse.pageNumber = response.pageNumber;
68
+ cloudResponse.pageSize = response.pageSize;
69
+ cloudResponse.totalCount = response.totalCount;
70
+ return Promise.resolve(cloudResponse);
71
+ })
72
+ .catch(function (e) { return Promise.reject(e); });
73
+ };
74
+ CloudFeedbackService.prototype.getSortQueryParams = function (filterRequest) {
75
+ var _a;
76
+ var queryParams = {};
77
+ if (filterRequest.sortRequest) {
78
+ var sortRequest = filterRequest.sortRequest;
79
+ if (sortRequest.criteria && sortRequest.order) {
80
+ queryParams = __assign(__assign({}, queryParams), (_a = {}, _a[SORT_QUERY_PARAM] = "".concat(sortRequest.criteria, ":").concat(sortRequest.order), _a));
81
+ }
82
+ }
83
+ return queryParams;
84
+ };
85
+ CloudFeedbackService.prototype.getPageQueryParams = function (pageNumber, pageSize) {
86
+ var _a, _b;
87
+ var queryParams = {};
88
+ if (pageNumber) {
89
+ queryParams = __assign(__assign({}, queryParams), (_a = {}, _a[TranslationConstants_1.PAGE_NUMBER_QUERY_PARAM] = pageNumber, _a));
90
+ }
91
+ queryParams = __assign(__assign({}, queryParams), (_b = {}, _b[PAGE_SIZE_QUERY_PARAM] = pageSize || TranslationConstants_1.DEFAULT_FEEDBACK_PAGE_SIZE, _b));
92
+ return queryParams;
93
+ };
94
+ return CloudFeedbackService;
95
+ }());
96
+ exports.default = CloudFeedbackService;
97
+ //# sourceMappingURL=CloudFeedbackService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudFeedbackService.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/service/CloudFeedbackService.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ import FeedbackValidator from '../../common/validators/FeedbackValidator';
2
+ import CloudFeedbackSortRequest from '../request/CloudFeedbackSortRequest';
3
+ export default class CloudFeedbackValidator extends FeedbackValidator {
4
+ validateCloudFeedbackSortRequest(sortRequest: CloudFeedbackSortRequest | undefined): "Both order and criteria should be specified for feedback sorting" | null;
5
+ }
@@ -0,0 +1,36 @@
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 CloudFeedbackValidator = /** @class */ (function (_super) {
23
+ __extends(CloudFeedbackValidator, _super);
24
+ function CloudFeedbackValidator() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ CloudFeedbackValidator.prototype.validateCloudFeedbackSortRequest = function (sortRequest) {
28
+ if (sortRequest && (!sortRequest.order || !sortRequest.criteria)) {
29
+ return 'Both order and criteria should be specified for feedback sorting';
30
+ }
31
+ return null;
32
+ };
33
+ return CloudFeedbackValidator;
34
+ }(FeedbackValidator_1.default));
35
+ exports.default = CloudFeedbackValidator;
36
+ //# sourceMappingURL=CloudFeedbackValidator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudFeedbackValidator.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/validators/CloudFeedbackValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,gGAA0E;AAG1E;IAAoD,0CAAiB;IAArE;;IAQA,CAAC;IAPU,iEAAgC,GAAvC,UAAwC,WAAiD;QACrF,IAAI,WAAW,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE;YAC9D,OAAO,kEAAkE,CAAC;SAC7E;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,6BAAC;AAAD,CAAC,AARD,CAAoD,2BAAiB,GAQpE"}
@@ -0,0 +1,14 @@
1
+ export default class AuditData {
2
+ private _createdByUserEmail;
3
+ private _creationDate;
4
+ private _lastModifiedByUserEmail;
5
+ private _lastModifyDate;
6
+ get createdByUserEmail(): string | undefined;
7
+ set createdByUserEmail(value: string | undefined);
8
+ get creationDate(): string | undefined;
9
+ set creationDate(value: string | undefined);
10
+ get lastModifiedByUserEmail(): string | undefined;
11
+ set lastModifiedByUserEmail(value: string | undefined);
12
+ get lastModifyDate(): string | undefined;
13
+ set lastModifyDate(value: string | undefined);
14
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var AuditData = /** @class */ (function () {
4
+ function AuditData() {
5
+ }
6
+ Object.defineProperty(AuditData.prototype, "createdByUserEmail", {
7
+ get: function () {
8
+ return this._createdByUserEmail;
9
+ },
10
+ set: function (value) {
11
+ this._createdByUserEmail = value;
12
+ },
13
+ enumerable: false,
14
+ configurable: true
15
+ });
16
+ Object.defineProperty(AuditData.prototype, "creationDate", {
17
+ get: function () {
18
+ return this._creationDate;
19
+ },
20
+ set: function (value) {
21
+ this._creationDate = value;
22
+ },
23
+ enumerable: false,
24
+ configurable: true
25
+ });
26
+ Object.defineProperty(AuditData.prototype, "lastModifiedByUserEmail", {
27
+ get: function () {
28
+ return this._lastModifiedByUserEmail;
29
+ },
30
+ set: function (value) {
31
+ this._lastModifiedByUserEmail = value;
32
+ },
33
+ enumerable: false,
34
+ configurable: true
35
+ });
36
+ Object.defineProperty(AuditData.prototype, "lastModifyDate", {
37
+ get: function () {
38
+ return this._lastModifyDate;
39
+ },
40
+ set: function (value) {
41
+ this._lastModifyDate = value;
42
+ },
43
+ enumerable: false,
44
+ configurable: true
45
+ });
46
+ return AuditData;
47
+ }());
48
+ exports.default = AuditData;
49
+ //# sourceMappingURL=AuditData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditData.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/model/AuditData.ts"],"names":[],"mappings":";;AAAA;IAAA;IAqCA,CAAC;IA/BG,sBAAI,yCAAkB;aAAtB;YACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;aAED,UAAuB,KAAyB;YAC5C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;QACrC,CAAC;;;OAJA;IAMD,sBAAI,mCAAY;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,8CAAuB;aAA3B;YACI,OAAO,IAAI,CAAC,wBAAwB,CAAC;QACzC,CAAC;aAED,UAA4B,KAAyB;YACjD,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC;QAC1C,CAAC;;;OAJA;IAMD,sBAAI,qCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAKL,gBAAC;AAAD,CAAC,AArCD,IAqCC"}
@@ -0,0 +1,15 @@
1
+ import { ApprovalStatus } from '../../../../common/constants/ApprovalStatus';
2
+ export default class FilterFeedbackRequest {
3
+ private _startDate;
4
+ private _endDate;
5
+ private _approvalStatus;
6
+ private _user;
7
+ get startDate(): Date | undefined;
8
+ set startDate(value: Date | undefined);
9
+ get endDate(): Date | undefined;
10
+ set endDate(value: Date | undefined);
11
+ get approvalStatus(): ApprovalStatus | undefined;
12
+ set approvalStatus(value: ApprovalStatus | undefined);
13
+ get user(): string | undefined;
14
+ set user(value: string | undefined);
15
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var FilterFeedbackRequest = /** @class */ (function () {
4
+ function FilterFeedbackRequest() {
5
+ }
6
+ Object.defineProperty(FilterFeedbackRequest.prototype, "startDate", {
7
+ get: function () {
8
+ return this._startDate;
9
+ },
10
+ set: function (value) {
11
+ this._startDate = value;
12
+ },
13
+ enumerable: false,
14
+ configurable: true
15
+ });
16
+ Object.defineProperty(FilterFeedbackRequest.prototype, "endDate", {
17
+ get: function () {
18
+ return this._endDate;
19
+ },
20
+ set: function (value) {
21
+ this._endDate = value;
22
+ },
23
+ enumerable: false,
24
+ configurable: true
25
+ });
26
+ Object.defineProperty(FilterFeedbackRequest.prototype, "approvalStatus", {
27
+ get: function () {
28
+ return this._approvalStatus;
29
+ },
30
+ set: function (value) {
31
+ this._approvalStatus = value;
32
+ },
33
+ enumerable: false,
34
+ configurable: true
35
+ });
36
+ Object.defineProperty(FilterFeedbackRequest.prototype, "user", {
37
+ get: function () {
38
+ return this._user;
39
+ },
40
+ set: function (value) {
41
+ this._user = value;
42
+ },
43
+ enumerable: false,
44
+ configurable: true
45
+ });
46
+ return FilterFeedbackRequest;
47
+ }());
48
+ exports.default = FilterFeedbackRequest;
49
+ //# sourceMappingURL=FilterFeedbackRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/FilterFeedbackRequest.ts"],"names":[],"mappings":";;AAEA;IAAA;IAsCA,CAAC;IA/BG,sBAAI,4CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAuB;YACjC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,0CAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAuB;YAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,iDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAiC;YAChD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,uCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAKL,4BAAC;AAAD,CAAC,AAtCD,IAsCC"}
@@ -0,0 +1,30 @@
1
+ import { ApprovalStatus } from '../../../../common/constants/ApprovalStatus';
2
+ export default class FeedbackCommonResult {
3
+ private _feedbackId;
4
+ private _sourceLanguageId;
5
+ private _targetLanguageId;
6
+ private _model;
7
+ private _sourceText;
8
+ private _targetText;
9
+ private _suggestedTranslation;
10
+ private _comments;
11
+ private _approvalState;
12
+ get feedbackId(): string | undefined;
13
+ set feedbackId(value: string | undefined);
14
+ get sourceLanguageId(): string | undefined;
15
+ set sourceLanguageId(value: string | undefined);
16
+ get targetLanguageId(): string | undefined;
17
+ set targetLanguageId(value: string | undefined);
18
+ get model(): string | undefined;
19
+ set model(value: string | undefined);
20
+ get sourceText(): string | undefined;
21
+ set sourceText(value: string | undefined);
22
+ get targetText(): string | undefined;
23
+ set targetText(value: string | undefined);
24
+ get suggestedTranslation(): string | undefined;
25
+ set suggestedTranslation(value: string | undefined);
26
+ get comments(): string[] | undefined;
27
+ set comments(value: string[] | undefined);
28
+ get approvalState(): ApprovalStatus | undefined;
29
+ set approvalState(value: ApprovalStatus | undefined);
30
+ }
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var FeedbackCommonResult = /** @class */ (function () {
4
+ function FeedbackCommonResult() {
5
+ this._comments = [];
6
+ }
7
+ Object.defineProperty(FeedbackCommonResult.prototype, "feedbackId", {
8
+ get: function () {
9
+ return this._feedbackId;
10
+ },
11
+ set: function (value) {
12
+ this._feedbackId = value;
13
+ },
14
+ enumerable: false,
15
+ configurable: true
16
+ });
17
+ Object.defineProperty(FeedbackCommonResult.prototype, "sourceLanguageId", {
18
+ get: function () {
19
+ return this._sourceLanguageId;
20
+ },
21
+ set: function (value) {
22
+ this._sourceLanguageId = value;
23
+ },
24
+ enumerable: false,
25
+ configurable: true
26
+ });
27
+ Object.defineProperty(FeedbackCommonResult.prototype, "targetLanguageId", {
28
+ get: function () {
29
+ return this._targetLanguageId;
30
+ },
31
+ set: function (value) {
32
+ this._targetLanguageId = value;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(FeedbackCommonResult.prototype, "model", {
38
+ get: function () {
39
+ return this._model;
40
+ },
41
+ set: function (value) {
42
+ this._model = value;
43
+ },
44
+ enumerable: false,
45
+ configurable: true
46
+ });
47
+ Object.defineProperty(FeedbackCommonResult.prototype, "sourceText", {
48
+ get: function () {
49
+ return this._sourceText;
50
+ },
51
+ set: function (value) {
52
+ this._sourceText = value;
53
+ },
54
+ enumerable: false,
55
+ configurable: true
56
+ });
57
+ Object.defineProperty(FeedbackCommonResult.prototype, "targetText", {
58
+ get: function () {
59
+ return this._targetText;
60
+ },
61
+ set: function (value) {
62
+ this._targetText = value;
63
+ },
64
+ enumerable: false,
65
+ configurable: true
66
+ });
67
+ Object.defineProperty(FeedbackCommonResult.prototype, "suggestedTranslation", {
68
+ get: function () {
69
+ return this._suggestedTranslation;
70
+ },
71
+ set: function (value) {
72
+ this._suggestedTranslation = value;
73
+ },
74
+ enumerable: false,
75
+ configurable: true
76
+ });
77
+ Object.defineProperty(FeedbackCommonResult.prototype, "comments", {
78
+ get: function () {
79
+ return this._comments;
80
+ },
81
+ set: function (value) {
82
+ this._comments = value;
83
+ },
84
+ enumerable: false,
85
+ configurable: true
86
+ });
87
+ Object.defineProperty(FeedbackCommonResult.prototype, "approvalState", {
88
+ get: function () {
89
+ return this._approvalState;
90
+ },
91
+ set: function (value) {
92
+ this._approvalState = value;
93
+ },
94
+ enumerable: false,
95
+ configurable: true
96
+ });
97
+ return FeedbackCommonResult;
98
+ }());
99
+ exports.default = FeedbackCommonResult;
100
+ //# sourceMappingURL=FeedbackCommonResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedbackCommonResult.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/result/FeedbackCommonResult.ts"],"names":[],"mappings":";;AAEA;IAAA;QAUY,cAAS,GAAyB,EAAE,CAAC;IA2EjD,CAAC;IAvEG,sBAAI,4CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,kDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,kDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,uCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,sBAAI,4CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,4CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,sDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAAyB;YAC9C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAMD,sBAAI,0CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAA2B;YACpC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,+CAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAiC;YAC/C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,2BAAC;AAAD,CAAC,AArFD,IAqFC"}
@@ -0,0 +1,7 @@
1
+ import PaginatedListResult from '../../../common/result/PaginatedListResult';
2
+ import FeedbackResult from './FeedbackResult';
3
+ export default class FeedbackListResult extends PaginatedListResult {
4
+ private _feedbackList;
5
+ get feedbackList(): FeedbackResult[];
6
+ set feedbackList(value: FeedbackResult[]);
7
+ }
@@ -0,0 +1,42 @@
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 FeedbackListResult = /** @class */ (function (_super) {
23
+ __extends(FeedbackListResult, _super);
24
+ function FeedbackListResult() {
25
+ var _this = _super !== null && _super.apply(this, arguments) || this;
26
+ _this._feedbackList = [];
27
+ return _this;
28
+ }
29
+ Object.defineProperty(FeedbackListResult.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
+ return FeedbackListResult;
40
+ }(PaginatedListResult_1.default));
41
+ exports.default = FeedbackListResult;
42
+ //# sourceMappingURL=FeedbackListResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedbackListResult.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/result/FeedbackListResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAG7E;IAAgD,sCAAmB;IAAnE;QAAA,qEAUC;QATW,mBAAa,GAAqB,EAAE,CAAC;;IASjD,CAAC;IAPG,sBAAI,4CAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAuB;YACpC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKL,yBAAC;AAAD,CAAC,AAVD,CAAgD,6BAAmB,GAUlE"}
@@ -0,0 +1,12 @@
1
+ import AuditData from '../model/AuditData';
2
+ import FeedbackCommonResult from './FeedbackCommonResult';
3
+ import FeedbackComment from '../../../../common/constants/FeedbackComment';
4
+ export default class FeedbackResult extends FeedbackCommonResult {
5
+ private _feedbackAuditData;
6
+ private _approvalAuditData;
7
+ get feedbackAuditData(): AuditData | undefined;
8
+ set feedbackAuditData(value: AuditData | undefined);
9
+ get approvalAuditData(): AuditData | undefined;
10
+ set approvalAuditData(value: AuditData | undefined);
11
+ addComment(comment: FeedbackComment | string): FeedbackResult;
12
+ }