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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.d.ts +0 -0
  2. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.js +0 -0
  3. package/lib/common/constants/CloudFeedbackSortCriteria.js.map +1 -0
  4. package/lib/common/constants/Statuses.d.ts +6 -0
  5. package/lib/common/constants/Statuses.js +7 -1
  6. package/lib/common/constants/Statuses.js.map +1 -1
  7. package/lib/common/constants/TranslationConstants.d.ts +17 -3
  8. package/lib/common/constants/TranslationConstants.js +22 -5
  9. package/lib/common/constants/TranslationConstants.js.map +1 -1
  10. package/lib/common/exceptions/ContentInsightsException.d.ts +4 -0
  11. package/lib/common/exceptions/ContentInsightsException.js +17 -0
  12. package/lib/common/exceptions/ContentInsightsException.js.map +1 -0
  13. package/lib/common/utils/Utils.d.ts +7 -0
  14. package/lib/common/utils/Utils.js +127 -0
  15. package/lib/common/utils/Utils.js.map +1 -1
  16. package/lib/index.d.ts +45 -17
  17. package/lib/index.js +74 -20
  18. package/lib/index.js.map +1 -1
  19. package/lib/translation/common/LanguageWeaverClient.d.ts +10 -2
  20. package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +27 -4
  21. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js +149 -92
  22. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -1
  23. package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +25 -6
  24. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js +162 -123
  25. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -1
  26. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +1 -1
  27. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +1 -1
  28. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -1
  29. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.d.ts +23 -0
  30. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js +69 -0
  31. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js.map +1 -0
  32. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.d.ts +10 -0
  33. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js +39 -0
  34. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js.map +1 -0
  35. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.d.ts +12 -0
  36. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js +32 -0
  37. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js.map +1 -0
  38. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.d.ts +16 -0
  39. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js +42 -0
  40. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js.map +1 -0
  41. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.d.ts +12 -0
  42. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js +39 -0
  43. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js.map +1 -0
  44. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.d.ts +15 -0
  45. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js +57 -0
  46. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js.map +1 -0
  47. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.d.ts +13 -0
  48. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js +46 -0
  49. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js.map +1 -0
  50. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.d.ts +3 -0
  51. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js +30 -0
  52. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js.map +1 -0
  53. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.d.ts +8 -0
  54. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js +29 -0
  55. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js.map +1 -0
  56. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.d.ts +16 -0
  57. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js +49 -0
  58. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js.map +1 -0
  59. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.d.ts +8 -0
  60. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js +29 -0
  61. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js.map +1 -0
  62. package/lib/translation/content-insights/cloud/result/CloudSegment.d.ts +6 -0
  63. package/lib/translation/content-insights/cloud/result/CloudSegment.js +40 -0
  64. package/lib/translation/content-insights/cloud/result/CloudSegment.js.map +1 -0
  65. package/lib/translation/content-insights/cloud/result/CloudSummarization.d.ts +6 -0
  66. package/lib/translation/content-insights/cloud/result/CloudSummarization.js +19 -0
  67. package/lib/translation/content-insights/cloud/result/CloudSummarization.js.map +1 -0
  68. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.d.ts +20 -0
  69. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js +248 -0
  70. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js.map +1 -0
  71. package/lib/translation/content-insights/common/request/ContentInsightsRequest.d.ts +7 -0
  72. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js +23 -0
  73. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js.map +1 -0
  74. package/lib/translation/content-insights/common/result/ContentInsightsResult.d.ts +6 -0
  75. package/lib/translation/content-insights/common/result/ContentInsightsResult.js +19 -0
  76. package/lib/translation/content-insights/common/result/ContentInsightsResult.js.map +1 -0
  77. package/lib/translation/content-insights/common/result/Segment.d.ts +8 -0
  78. package/lib/translation/content-insights/common/result/Segment.js +29 -0
  79. package/lib/translation/content-insights/common/result/Segment.js.map +1 -0
  80. package/lib/translation/content-insights/common/result/Summarization.d.ts +8 -0
  81. package/lib/translation/content-insights/common/result/Summarization.js +25 -0
  82. package/lib/translation/content-insights/common/result/Summarization.js.map +1 -0
  83. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.d.ts +4 -0
  84. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js +145 -0
  85. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js.map +1 -0
  86. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.d.ts +13 -0
  87. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js +53 -0
  88. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js.map +1 -0
  89. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.d.ts +12 -0
  90. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js +46 -0
  91. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js.map +1 -0
  92. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.d.ts +5 -0
  93. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js +19 -0
  94. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js.map +1 -0
  95. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.d.ts +9 -0
  96. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js +29 -0
  97. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js.map +1 -0
  98. package/lib/translation/content-insights/edge/result/EdgeSegment.d.ts +3 -0
  99. package/lib/translation/content-insights/edge/result/EdgeSegment.js +30 -0
  100. package/lib/translation/content-insights/edge/result/EdgeSegment.js.map +1 -0
  101. package/lib/translation/content-insights/edge/result/EdgeSummarization.d.ts +6 -0
  102. package/lib/translation/content-insights/edge/result/EdgeSummarization.js +19 -0
  103. package/lib/translation/content-insights/edge/result/EdgeSummarization.js.map +1 -0
  104. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.d.ts +14 -0
  105. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js +96 -0
  106. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js.map +1 -0
  107. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.d.ts +14 -0
  108. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js +72 -0
  109. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js.map +1 -0
  110. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.d.ts +36 -0
  111. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js +136 -0
  112. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js.map +1 -0
  113. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.d.ts +3 -3
  114. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.js +0 -0
  115. package/lib/translation/dictionaries/cloud/result/CloudDictionariesResult.js.map +1 -0
  116. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.d.ts → dictionaries/cloud/result/CloudDictionary.d.ts} +1 -1
  117. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.js → dictionaries/cloud/result/CloudDictionary.js} +15 -15
  118. package/lib/translation/dictionaries/cloud/result/CloudDictionary.js.map +1 -0
  119. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.d.ts +15 -0
  120. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js +51 -0
  121. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js.map +1 -0
  122. package/lib/translation/dictionaries/common/result/DictionariesResult.d.ts +7 -0
  123. package/lib/translation/{translate → dictionaries}/common/result/DictionariesResult.js +0 -0
  124. package/lib/translation/dictionaries/common/result/DictionariesResult.js.map +1 -0
  125. package/lib/translation/{translate/common/api/DictionaryResponse.d.ts → dictionaries/common/result/Dictionary.d.ts} +1 -1
  126. package/lib/translation/{translate/common/api/DictionaryResponse.js → dictionaries/common/result/Dictionary.js} +8 -8
  127. package/lib/translation/dictionaries/common/result/Dictionary.js.map +1 -0
  128. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.d.ts +22 -0
  129. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js +84 -0
  130. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js.map +1 -0
  131. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.d.ts +15 -0
  132. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js +58 -0
  133. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js.map +1 -0
  134. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.d.ts +3 -3
  135. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.js +0 -0
  136. package/lib/translation/dictionaries/edge/result/EdgeDictionariesResult.js.map +1 -0
  137. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.d.ts → dictionaries/edge/result/EdgeDictionary.d.ts} +1 -1
  138. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.js → dictionaries/edge/result/EdgeDictionary.js} +8 -8
  139. package/lib/translation/dictionaries/edge/result/EdgeDictionary.js.map +1 -0
  140. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.d.ts +12 -0
  141. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js +51 -0
  142. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js.map +1 -0
  143. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +2 -2
  144. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -1
  145. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +1 -1
  146. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.d.ts +1 -1
  147. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.js +1 -1
  148. package/lib/translation/feedback/cloud/result/CloudAuditData.js.map +1 -0
  149. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +1 -1
  150. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +1 -1
  151. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -1
  152. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.d.ts +1 -1
  153. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.js +1 -1
  154. package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.js.map +1 -0
  155. package/lib/translation/feedback/common/{model → result}/AuditData.d.ts +0 -0
  156. package/lib/translation/feedback/common/{model → result}/AuditData.js +0 -0
  157. package/lib/translation/feedback/common/result/AuditData.js.map +1 -0
  158. package/lib/translation/feedback/common/result/FeedbackResult.d.ts +1 -1
  159. package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.d.ts +0 -0
  160. package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.js +0 -0
  161. package/lib/translation/feedback/common/validator/FeedbackValidator.js.map +1 -0
  162. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +1 -1
  163. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +1 -1
  164. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -1
  165. package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +1 -1
  166. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +1 -1
  167. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -1
  168. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.d.ts +3 -0
  169. package/lib/translation/feedback/edge/{validators → validator}/EdgeFeedbackValidator.js +1 -1
  170. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.js.map +1 -0
  171. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.d.ts +21 -0
  172. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js +81 -0
  173. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js.map +1 -0
  174. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.d.ts +13 -0
  175. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js +47 -0
  176. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js.map +1 -0
  177. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.d.ts +2 -0
  178. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.js +11 -0
  179. package/lib/translation/language-pairs/cloud/result/CloudLanguagePair.js.map +1 -0
  180. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.d.ts +1 -1
  181. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.js +0 -0
  182. package/lib/translation/language-pairs/cloud/result/CloudLanguagePairsResult.js.map +1 -0
  183. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.d.ts +15 -0
  184. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js +45 -0
  185. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js.map +1 -0
  186. package/lib/translation/language-pairs/common/result/LanguagePair.d.ts +16 -0
  187. package/lib/translation/{translate/common/api → language-pairs/common/result}/LanguagePair.js +11 -0
  188. package/lib/translation/language-pairs/common/result/LanguagePair.js.map +1 -0
  189. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.d.ts +1 -1
  190. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.js +0 -0
  191. package/lib/translation/language-pairs/common/result/LanguagePairsResult.js.map +1 -0
  192. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.d.ts +17 -0
  193. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js +89 -0
  194. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js.map +1 -0
  195. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.d.ts +10 -0
  196. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js +37 -0
  197. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js.map +1 -0
  198. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.d.ts +31 -0
  199. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js +116 -0
  200. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js.map +1 -0
  201. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.d.ts +15 -0
  202. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/EdgeLanguagePair.js +20 -0
  203. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.js.map +1 -0
  204. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.d.ts +1 -1
  205. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.js +0 -0
  206. package/lib/translation/language-pairs/edge/result/EdgeLanguagePairsResult.js.map +1 -0
  207. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.d.ts +0 -0
  208. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.js +0 -0
  209. package/lib/translation/language-pairs/edge/result/MemberPair.js.map +1 -0
  210. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.d.ts +14 -0
  211. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js +80 -0
  212. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js.map +1 -0
  213. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.d.ts +13 -0
  214. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js +68 -0
  215. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js.map +1 -0
  216. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.d.ts +6 -0
  217. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js +19 -0
  218. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js.map +1 -0
  219. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.d.ts +3 -0
  220. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js +30 -0
  221. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js.map +1 -0
  222. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.d.ts +10 -0
  223. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js +57 -0
  224. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js.map +1 -0
  225. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.d.ts +6 -0
  226. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js +19 -0
  227. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js.map +1 -0
  228. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.d.ts +19 -0
  229. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js +72 -0
  230. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js.map +1 -0
  231. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.d.ts +3 -0
  232. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js +30 -0
  233. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js.map +1 -0
  234. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.d.ts +11 -0
  235. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js +39 -0
  236. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js.map +1 -0
  237. package/lib/translation/{translate/common/api/LanguagePair.d.ts → linguistic-options/common/request/GetLinguisticOptionsRequest.d.ts} +1 -4
  238. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js +39 -0
  239. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js.map +1 -0
  240. package/lib/translation/linguistic-options/common/result/LinguisticOption.d.ts +11 -0
  241. package/lib/translation/linguistic-options/common/result/LinguisticOption.js +39 -0
  242. package/lib/translation/linguistic-options/common/result/LinguisticOption.js.map +1 -0
  243. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.d.ts +6 -0
  244. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js +19 -0
  245. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js.map +1 -0
  246. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.d.ts +4 -0
  247. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js +25 -0
  248. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js.map +1 -0
  249. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.d.ts +7 -0
  250. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js +46 -0
  251. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js.map +1 -0
  252. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.d.ts +6 -0
  253. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js +19 -0
  254. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js.map +1 -0
  255. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.d.ts +9 -0
  256. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js +50 -0
  257. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js.map +1 -0
  258. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.d.ts +4 -0
  259. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js +37 -0
  260. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js.map +1 -0
  261. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.d.ts +6 -0
  262. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js +19 -0
  263. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js.map +1 -0
  264. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.d.ts +18 -0
  265. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js +101 -0
  266. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js.map +1 -0
  267. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.d.ts +3 -0
  268. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js +30 -0
  269. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js.map +1 -0
  270. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.d.ts +3 -0
  271. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js +30 -0
  272. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js.map +1 -0
  273. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.d.ts +3 -0
  274. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js +21 -0
  275. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -1
  276. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.d.ts +26 -0
  277. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js +80 -0
  278. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js.map +1 -0
  279. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.d.ts +0 -3
  280. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js +0 -10
  281. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js.map +1 -1
  282. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.d.ts +3 -3
  283. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js +3 -3
  284. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js.map +1 -1
  285. package/lib/translation/translate/common/request/RetrieveFileRequest.d.ts +11 -0
  286. package/lib/translation/translate/common/request/RetrieveFileRequest.js +39 -0
  287. package/lib/translation/translate/common/request/RetrieveFileRequest.js.map +1 -0
  288. package/lib/translation/translate/common/request/TranslateBatchFileRequest.d.ts +3 -0
  289. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js +10 -0
  290. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -1
  291. package/lib/translation/translate/common/request/TranslateRequest.d.ts +3 -0
  292. package/lib/translation/translate/common/request/TranslateRequest.js +10 -0
  293. package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -1
  294. package/lib/translation/translate/common/result/TranslationFileResult.d.ts +6 -0
  295. package/lib/translation/translate/common/result/TranslationFileResult.js +20 -0
  296. package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -1
  297. package/lib/translation/translate/common/utils/TranslateFileUtil.d.ts +3 -1
  298. package/lib/translation/translate/common/utils/TranslateFileUtil.js +26 -53
  299. package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -1
  300. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.d.ts +7 -0
  301. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js +40 -0
  302. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js.map +1 -0
  303. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.d.ts +2 -2
  304. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js +15 -14
  305. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -1
  306. package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.d.ts → EdgeTranslateRequest.d.ts} +1 -1
  307. package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.js → EdgeTranslateRequest.js} +14 -14
  308. package/lib/translation/translate/edge/request/EdgeTranslateRequest.js.map +1 -0
  309. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.d.ts +2 -2
  310. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js +15 -14
  311. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -1
  312. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.d.ts +0 -3
  313. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js +0 -10
  314. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js.map +1 -1
  315. package/lib/version.d.ts +1 -1
  316. package/lib/version.js +1 -1
  317. package/package.json +2 -2
  318. package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +0 -1
  319. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +0 -1
  320. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +0 -1
  321. package/lib/translation/feedback/common/model/AuditData.js.map +0 -1
  322. package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +0 -1
  323. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +0 -3
  324. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +0 -1
  325. package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +0 -1
  326. package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +0 -1
  327. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +0 -1
  328. package/lib/translation/translate/cloud/result/CloudLanguagePairsResult.js.map +0 -1
  329. package/lib/translation/translate/common/api/DictionaryResponse.js.map +0 -1
  330. package/lib/translation/translate/common/api/LanguagePair.js.map +0 -1
  331. package/lib/translation/translate/common/result/DictionariesResult.d.ts +0 -7
  332. package/lib/translation/translate/common/result/DictionariesResult.js.map +0 -1
  333. package/lib/translation/translate/common/result/LanguagePairsResult.js.map +0 -1
  334. package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +0 -1
  335. package/lib/translation/translate/edge/api/EdgeLanguagePair.d.ts +0 -9
  336. package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +0 -1
  337. package/lib/translation/translate/edge/api/MemberPair.js.map +0 -1
  338. package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js.map +0 -1
  339. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +0 -1
  340. package/lib/translation/translate/edge/result/EdgeLanguagePairsResult.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudFeedbackSortCriteria.js","sourceRoot":"","sources":["../../../src/common/constants/CloudFeedbackSortCriteria.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,0CAAa,CAAA;IACb,iDAAoB,CAAA;AACxB,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC"}
@@ -4,3 +4,9 @@ export declare const TRANSLATING_TRANSLATION_STATUS = "TRANSLATING";
4
4
  export declare const CANCELLED_TRANSLATION_STATUS = "CANCELLED";
5
5
  export declare const DONE_TRANSLATION_STATUS = "DONE";
6
6
  export declare const FAILED_TRANSLATION_STATUS = "FAILED";
7
+ export declare const INIT_CONTENT_INSIGHTS_STATUS = "INIT";
8
+ export declare const IN_PROGRESS_CONTENT_INSIGHTS_STATUS = "IN_PROGRESS";
9
+ export declare const ACCEPTED_CONTENT_INSIGHTS_STATUS = "ACCEPTED";
10
+ export declare const DONE_CONTENT_INSIGHTS_STATUS = "DONE";
11
+ export declare const FAILED_CONTENT_INSIGHTS_STATUS = "FAILED";
12
+ export declare const UNK_CONTENT_INSIGHTS_STATUS = "UNK";
@@ -1,10 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FAILED_TRANSLATION_STATUS = exports.DONE_TRANSLATION_STATUS = exports.CANCELLED_TRANSLATION_STATUS = exports.TRANSLATING_TRANSLATION_STATUS = exports.INIT_TRANSLATION_STATUS = exports.UNK_TRANSLATION_STATUS = void 0;
3
+ exports.UNK_CONTENT_INSIGHTS_STATUS = exports.FAILED_CONTENT_INSIGHTS_STATUS = exports.DONE_CONTENT_INSIGHTS_STATUS = exports.ACCEPTED_CONTENT_INSIGHTS_STATUS = exports.IN_PROGRESS_CONTENT_INSIGHTS_STATUS = exports.INIT_CONTENT_INSIGHTS_STATUS = exports.FAILED_TRANSLATION_STATUS = exports.DONE_TRANSLATION_STATUS = exports.CANCELLED_TRANSLATION_STATUS = exports.TRANSLATING_TRANSLATION_STATUS = exports.INIT_TRANSLATION_STATUS = exports.UNK_TRANSLATION_STATUS = void 0;
4
4
  exports.UNK_TRANSLATION_STATUS = 'UNK';
5
5
  exports.INIT_TRANSLATION_STATUS = 'INIT';
6
6
  exports.TRANSLATING_TRANSLATION_STATUS = 'TRANSLATING';
7
7
  exports.CANCELLED_TRANSLATION_STATUS = 'CANCELLED';
8
8
  exports.DONE_TRANSLATION_STATUS = 'DONE';
9
9
  exports.FAILED_TRANSLATION_STATUS = 'FAILED';
10
+ exports.INIT_CONTENT_INSIGHTS_STATUS = 'INIT';
11
+ exports.IN_PROGRESS_CONTENT_INSIGHTS_STATUS = 'IN_PROGRESS';
12
+ exports.ACCEPTED_CONTENT_INSIGHTS_STATUS = 'ACCEPTED';
13
+ exports.DONE_CONTENT_INSIGHTS_STATUS = 'DONE';
14
+ exports.FAILED_CONTENT_INSIGHTS_STATUS = 'FAILED';
15
+ exports.UNK_CONTENT_INSIGHTS_STATUS = 'UNK';
10
16
  //# sourceMappingURL=Statuses.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Statuses.js","sourceRoot":"","sources":["../../../src/common/constants/Statuses.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,KAAK,CAAC;AAC/B,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,8BAA8B,GAAG,aAAa,CAAC;AAC/C,QAAA,4BAA4B,GAAG,WAAW,CAAC;AAC3C,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,yBAAyB,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"Statuses.js","sourceRoot":"","sources":["../../../src/common/constants/Statuses.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,KAAK,CAAC;AAC/B,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,8BAA8B,GAAG,aAAa,CAAC;AAC/C,QAAA,4BAA4B,GAAG,WAAW,CAAC;AAC3C,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,yBAAyB,GAAG,QAAQ,CAAC;AAErC,QAAA,4BAA4B,GAAG,MAAM,CAAC;AACtC,QAAA,mCAAmC,GAAG,aAAa,CAAC;AACpD,QAAA,gCAAgC,GAAG,UAAU,CAAC;AAC9C,QAAA,4BAA4B,GAAG,MAAM,CAAC;AACtC,QAAA,8BAA8B,GAAG,QAAQ,CAAC;AAC1C,QAAA,2BAA2B,GAAG,KAAK,CAAC"}
@@ -3,13 +3,19 @@ export declare const SELF_PATH = "/v4/accounts/api-credentials/self";
3
3
  export declare const USER_SELF_PATH = "/v4/accounts/users/self";
4
4
  export declare const SYNC_TRANSLATION_PATH = "/v4/mt/translations/sync";
5
5
  export declare const ASYNC_TRANSLATION_PATH = "/v4/mt/translations/async";
6
- export declare const EDGE_LANGUAGE_PAIRS_PATH = "/api/v2/language-pairs?chains=also";
6
+ export declare const CONTENT_INSIGHTS_PATH = "/v4/content-insights";
7
+ export declare const CI_FILE_REQUEST_PARAM_NAME = "file";
8
+ export declare const CI_SOURCE_LANGUAGE_REQUEST_PARAM_NAME = "sourceLanguage";
9
+ export declare const CI_TRANSLATION_ID_REQUEST_PARAM_NAME = "translationIds";
10
+ export declare const EDGE_LANGUAGE_PAIRS_PATH = "/api/v2/language-pairs";
7
11
  export declare const EDGE_GET_ALL_DICTIONARIES_PATH = "/api/v2/dictionaries";
8
12
  export declare const EDGE_GET_ALL_FEEDBACK_PATH = "/api/v2/feedback";
9
13
  export declare const EDGE_CREATE_FEEDBACK_PATH = "/api/v2/feedback";
10
14
  export declare const EDGE_ASYNC_TRANSLATION_PATH = "/api/v2/translations";
11
15
  export declare const EDGE_ASYNC_METADATA_PATH = "/api/v2/translations/{0}/metadata";
12
16
  export declare const EDGE_QUICK_TRANSLATION_PATH = "/api/v2/translations/quick";
17
+ export declare const EDGE_RETRIEVE_CONTENT_INSIGHTS_PATH = "/content-insights";
18
+ export declare const getEdgeCreateContentInsightsPath: (translationId: string | undefined) => string;
13
19
  export declare const INPUT = "input";
14
20
  export declare const TARGET_LANGUAGE_ID = "targetLanguageId";
15
21
  export declare const SOURCE_LANGUAGE_ID = "sourceLanguageId";
@@ -22,10 +28,13 @@ export declare const OUTPUT_FORMAT = "outputFormat";
22
28
  export declare const TITLE = "title";
23
29
  export declare const ENCODING = "encoding";
24
30
  export declare const PDF_CONVERTER = "pdfConverter";
31
+ export declare const LINGUISTIC_OPTIONS = "linguisticOptions";
25
32
  export declare const SMALL_INPUT_GET_TRANSLATION_STATUS_DELAY = 100;
26
33
  export declare const LARGE_INPUT_GET_TRANSLATION_STATUS_DELAY = 500;
27
34
  export declare const CHECK_STATUS_TIMEOUT = 300000;
28
35
  export declare const THREAD_NUMBER_FOR_BATCH_TRANSLATION = 4;
36
+ export declare const SMALL_FILE_GET_CONTENT_INSIGHTS_STATUS_DELAY_MILLISECONDS = 100;
37
+ export declare const LARGE_FILE_GET_CONTENT_INSIGHTS_STATUS_DELAY_MILLISECONDS = 500;
29
38
  export declare const SYNC_SIZE_LIMIT = 1000;
30
39
  export declare const MAX_FILE_SIZE_LIMIT = 104857600;
31
40
  export declare const MAX_ASYNC_TEXT_SIZE_LIMIT = 2097152;
@@ -37,6 +46,7 @@ export declare const EDGE_DEFAULT_URL = "http://localhost:8001";
37
46
  export declare const CLOUD_DATE_FORMAT = "YYYY/MM/DD";
38
47
  export declare const EDGE_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss.SSS";
39
48
  export declare const SUPPORTED_INPUT_DATE_FORMATS: string[];
49
+ export declare const DEFAULT_FILENAME = "output.txt";
40
50
  export declare const LW_CLIENT_ID_ENV_VAR = "LW_CLIENT_ID";
41
51
  export declare const LW_CLIENT_SECRET_ENV_VAR = "LW_CLIENT_SECRET";
42
52
  export declare const LW_PRODUCT_ENV_VAR = "LW_PRODUCT";
@@ -52,8 +62,10 @@ export declare const ACCEPT = "Accept";
52
62
  export declare const CONTENT_TYPE = "Content-Type";
53
63
  export declare const CLIENT_ID = "clientId";
54
64
  export declare const CLIENT_SECRET = "clientSecret";
55
- export declare const TRANSLATION_TIMEOUT = "Translation timeout";
56
- export declare const MISSING_REQUIRED_LANGUAGE_PAIR_ID = "Missing required languagePairId";
65
+ export declare const TRANSLATION_TIMEOUT_ERROR_MESSAGE = "Translation timeout";
66
+ export declare const CONTENT_INSIGHTS_TIMEOUT_ERROR_MESSAGE = "Content insights timeout";
67
+ export declare const MISSING_REQUIRED_REQUEST_ID_ERROR = "Missing required requestId";
68
+ export declare const MISSING_REQUIRED_LANGUAGE_PAIR_ID_ERROR = "Missing required languagePairId";
57
69
  export declare const MISSING_REQUIRED_INPUT_FILE_ERROR = "Missing required input file";
58
70
  export declare const MISSING_REQUIRED_INPUT_DIRECTORY_ERROR = "Missing required input directory";
59
71
  export declare const MISSING_REQUIRED_INPUT_FILES_ERROR = "Missing required input files";
@@ -64,6 +76,8 @@ export declare const REQUIRED_INPUT_FILE_OF_TYPE_OBJECT_ERROR = "Input file must
64
76
  export declare const REQUIRED_INPUT_FILE_OF_TYPE_STRING_ERROR = "Input file must be a string";
65
77
  export declare const REQUIRED_INPUT_FILES_OF_TYPE_OBJECT_ERROR = "All input files must be instances of File object";
66
78
  export declare const REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = "Input file must be a string";
79
+ export declare const REQUIRED_INPUT_OF_TYPE_STRING_ERROR = "Input file must be a string";
80
+ export declare const INVALID_FILE_OR_DIRECTORY_PATH_ERROR = "Invalid file or directory path: ";
67
81
  export declare const INVALID_PATH_ERROR = "Invalid file path: ";
68
82
  export declare const INVALID_DIRECTORY_ERROR = "Invalid directory: ";
69
83
  export declare const LANGUAGE_PAIR_NOT_FOUND_ERROR = "No language pair found for given source, target and model";
@@ -1,19 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AUTHORIZATION = exports.REACT_APP_LW_CLOUD_REGION = exports.REACT_APP_LW_EDGE_OVERWRITE_URL = exports.REACT_APP_LW_PRODUCT_ENV_VAR = exports.REACT_APP_LW_CLIENT_SECRET_ENV_VAR = exports.REACT_APP_LW_CLIENT_ID_ENV_VAR = exports.LW_CLOUD_REGION = exports.LW_EDGE_OVERWRITE_URL = exports.LW_PRODUCT_ENV_VAR = exports.LW_CLIENT_SECRET_ENV_VAR = exports.LW_CLIENT_ID_ENV_VAR = exports.SUPPORTED_INPUT_DATE_FORMATS = exports.EDGE_DATE_FORMAT = exports.CLOUD_DATE_FORMAT = exports.EDGE_DEFAULT_URL = exports.EUROPE_URL = exports.US_URL = exports.DEFAULT_FEEDBACK_PAGE_SIZE = exports.DEFAULT_DICTIONARIES_PAGE_SIZE = exports.MAX_ASYNC_TEXT_SIZE_LIMIT = exports.MAX_FILE_SIZE_LIMIT = exports.SYNC_SIZE_LIMIT = exports.THREAD_NUMBER_FOR_BATCH_TRANSLATION = exports.CHECK_STATUS_TIMEOUT = exports.LARGE_INPUT_GET_TRANSLATION_STATUS_DELAY = exports.SMALL_INPUT_GET_TRANSLATION_STATUS_DELAY = exports.PDF_CONVERTER = exports.ENCODING = exports.TITLE = exports.OUTPUT_FORMAT = exports.DICTIONARY_IDS = exports.LANGUAGE_PAIR_ID = exports.DICTIONARIES = exports.INPUT_FORMAT = exports.MODEL = exports.SOURCE_LANGUAGE_ID = exports.TARGET_LANGUAGE_ID = exports.INPUT = exports.EDGE_QUICK_TRANSLATION_PATH = exports.EDGE_ASYNC_METADATA_PATH = exports.EDGE_ASYNC_TRANSLATION_PATH = exports.EDGE_CREATE_FEEDBACK_PATH = exports.EDGE_GET_ALL_FEEDBACK_PATH = exports.EDGE_GET_ALL_DICTIONARIES_PATH = exports.EDGE_LANGUAGE_PAIRS_PATH = exports.ASYNC_TRANSLATION_PATH = exports.SYNC_TRANSLATION_PATH = exports.USER_SELF_PATH = exports.SELF_PATH = exports.CREDENTIALS_LOGIN_PATH = void 0;
4
- exports.PAGE_NUMBER_QUERY_PARAM = exports.GENERIC_ERROR = exports.LANGUAGE_PAIR_NOT_FOUND_ERROR = exports.INVALID_DIRECTORY_ERROR = exports.INVALID_PATH_ERROR = exports.REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = exports.REQUIRED_INPUT_FILES_OF_TYPE_OBJECT_ERROR = exports.REQUIRED_INPUT_FILE_OF_TYPE_STRING_ERROR = exports.REQUIRED_INPUT_FILE_OF_TYPE_OBJECT_ERROR = exports.READ_FILES_FROM_DIRECTORY_FAILED_ERROR = exports.MISSING_REQUIRED_OUTPUT_DIRECTORY_ERROR = exports.MISSING_REQUIRED_OUTPUT_FILE_ERROR = exports.MISSING_REQUIRED_INPUT_FILES_ERROR = exports.MISSING_REQUIRED_INPUT_DIRECTORY_ERROR = exports.MISSING_REQUIRED_INPUT_FILE_ERROR = exports.MISSING_REQUIRED_LANGUAGE_PAIR_ID = exports.TRANSLATION_TIMEOUT = exports.CLIENT_SECRET = exports.CLIENT_ID = exports.CONTENT_TYPE = exports.ACCEPT = void 0;
3
+ exports.LW_CLIENT_ID_ENV_VAR = exports.DEFAULT_FILENAME = exports.SUPPORTED_INPUT_DATE_FORMATS = exports.EDGE_DATE_FORMAT = exports.CLOUD_DATE_FORMAT = exports.EDGE_DEFAULT_URL = exports.EUROPE_URL = exports.US_URL = exports.DEFAULT_FEEDBACK_PAGE_SIZE = exports.DEFAULT_DICTIONARIES_PAGE_SIZE = exports.MAX_ASYNC_TEXT_SIZE_LIMIT = exports.MAX_FILE_SIZE_LIMIT = exports.SYNC_SIZE_LIMIT = exports.LARGE_FILE_GET_CONTENT_INSIGHTS_STATUS_DELAY_MILLISECONDS = exports.SMALL_FILE_GET_CONTENT_INSIGHTS_STATUS_DELAY_MILLISECONDS = exports.THREAD_NUMBER_FOR_BATCH_TRANSLATION = exports.CHECK_STATUS_TIMEOUT = exports.LARGE_INPUT_GET_TRANSLATION_STATUS_DELAY = exports.SMALL_INPUT_GET_TRANSLATION_STATUS_DELAY = exports.LINGUISTIC_OPTIONS = exports.PDF_CONVERTER = exports.ENCODING = exports.TITLE = exports.OUTPUT_FORMAT = exports.DICTIONARY_IDS = exports.LANGUAGE_PAIR_ID = exports.DICTIONARIES = exports.INPUT_FORMAT = exports.MODEL = exports.SOURCE_LANGUAGE_ID = exports.TARGET_LANGUAGE_ID = exports.INPUT = exports.getEdgeCreateContentInsightsPath = exports.EDGE_RETRIEVE_CONTENT_INSIGHTS_PATH = exports.EDGE_QUICK_TRANSLATION_PATH = exports.EDGE_ASYNC_METADATA_PATH = exports.EDGE_ASYNC_TRANSLATION_PATH = exports.EDGE_CREATE_FEEDBACK_PATH = exports.EDGE_GET_ALL_FEEDBACK_PATH = exports.EDGE_GET_ALL_DICTIONARIES_PATH = exports.EDGE_LANGUAGE_PAIRS_PATH = exports.CI_TRANSLATION_ID_REQUEST_PARAM_NAME = exports.CI_SOURCE_LANGUAGE_REQUEST_PARAM_NAME = exports.CI_FILE_REQUEST_PARAM_NAME = exports.CONTENT_INSIGHTS_PATH = exports.ASYNC_TRANSLATION_PATH = exports.SYNC_TRANSLATION_PATH = exports.USER_SELF_PATH = exports.SELF_PATH = exports.CREDENTIALS_LOGIN_PATH = void 0;
4
+ exports.PAGE_NUMBER_QUERY_PARAM = exports.GENERIC_ERROR = exports.LANGUAGE_PAIR_NOT_FOUND_ERROR = exports.INVALID_DIRECTORY_ERROR = exports.INVALID_PATH_ERROR = exports.INVALID_FILE_OR_DIRECTORY_PATH_ERROR = exports.REQUIRED_INPUT_OF_TYPE_STRING_ERROR = exports.REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = exports.REQUIRED_INPUT_FILES_OF_TYPE_OBJECT_ERROR = exports.REQUIRED_INPUT_FILE_OF_TYPE_STRING_ERROR = exports.REQUIRED_INPUT_FILE_OF_TYPE_OBJECT_ERROR = exports.READ_FILES_FROM_DIRECTORY_FAILED_ERROR = exports.MISSING_REQUIRED_OUTPUT_DIRECTORY_ERROR = exports.MISSING_REQUIRED_OUTPUT_FILE_ERROR = exports.MISSING_REQUIRED_INPUT_FILES_ERROR = exports.MISSING_REQUIRED_INPUT_DIRECTORY_ERROR = exports.MISSING_REQUIRED_INPUT_FILE_ERROR = exports.MISSING_REQUIRED_LANGUAGE_PAIR_ID_ERROR = exports.MISSING_REQUIRED_REQUEST_ID_ERROR = exports.CONTENT_INSIGHTS_TIMEOUT_ERROR_MESSAGE = exports.TRANSLATION_TIMEOUT_ERROR_MESSAGE = exports.CLIENT_SECRET = exports.CLIENT_ID = exports.CONTENT_TYPE = exports.ACCEPT = exports.AUTHORIZATION = exports.REACT_APP_LW_CLOUD_REGION = exports.REACT_APP_LW_EDGE_OVERWRITE_URL = exports.REACT_APP_LW_PRODUCT_ENV_VAR = exports.REACT_APP_LW_CLIENT_SECRET_ENV_VAR = exports.REACT_APP_LW_CLIENT_ID_ENV_VAR = exports.LW_CLOUD_REGION = exports.LW_EDGE_OVERWRITE_URL = exports.LW_PRODUCT_ENV_VAR = exports.LW_CLIENT_SECRET_ENV_VAR = void 0;
5
5
  exports.CREDENTIALS_LOGIN_PATH = '/v4/token';
6
6
  exports.SELF_PATH = '/v4/accounts/api-credentials/self';
7
7
  exports.USER_SELF_PATH = '/v4/accounts/users/self';
8
8
  exports.SYNC_TRANSLATION_PATH = '/v4/mt/translations/sync';
9
9
  exports.ASYNC_TRANSLATION_PATH = '/v4/mt/translations/async';
10
- exports.EDGE_LANGUAGE_PAIRS_PATH = '/api/v2/language-pairs?chains=also';
10
+ exports.CONTENT_INSIGHTS_PATH = '/v4/content-insights';
11
+ exports.CI_FILE_REQUEST_PARAM_NAME = 'file';
12
+ exports.CI_SOURCE_LANGUAGE_REQUEST_PARAM_NAME = 'sourceLanguage';
13
+ exports.CI_TRANSLATION_ID_REQUEST_PARAM_NAME = 'translationIds';
14
+ exports.EDGE_LANGUAGE_PAIRS_PATH = '/api/v2/language-pairs';
11
15
  exports.EDGE_GET_ALL_DICTIONARIES_PATH = '/api/v2/dictionaries';
12
16
  exports.EDGE_GET_ALL_FEEDBACK_PATH = '/api/v2/feedback';
13
17
  exports.EDGE_CREATE_FEEDBACK_PATH = '/api/v2/feedback';
14
18
  exports.EDGE_ASYNC_TRANSLATION_PATH = '/api/v2/translations';
15
19
  exports.EDGE_ASYNC_METADATA_PATH = '/api/v2/translations/{0}/metadata';
16
20
  exports.EDGE_QUICK_TRANSLATION_PATH = '/api/v2/translations/quick';
21
+ exports.EDGE_RETRIEVE_CONTENT_INSIGHTS_PATH = '/content-insights';
22
+ var getEdgeCreateContentInsightsPath = function (translationId) {
23
+ return exports.EDGE_ASYNC_TRANSLATION_PATH + '/' + translationId + exports.EDGE_RETRIEVE_CONTENT_INSIGHTS_PATH;
24
+ };
25
+ exports.getEdgeCreateContentInsightsPath = getEdgeCreateContentInsightsPath;
17
26
  exports.INPUT = 'input';
18
27
  exports.TARGET_LANGUAGE_ID = 'targetLanguageId';
19
28
  exports.SOURCE_LANGUAGE_ID = 'sourceLanguageId';
@@ -26,10 +35,13 @@ exports.OUTPUT_FORMAT = 'outputFormat';
26
35
  exports.TITLE = 'title';
27
36
  exports.ENCODING = 'encoding';
28
37
  exports.PDF_CONVERTER = 'pdfConverter';
38
+ exports.LINGUISTIC_OPTIONS = 'linguisticOptions';
29
39
  exports.SMALL_INPUT_GET_TRANSLATION_STATUS_DELAY = 100;
30
40
  exports.LARGE_INPUT_GET_TRANSLATION_STATUS_DELAY = 500;
31
41
  exports.CHECK_STATUS_TIMEOUT = 300000; // timeout in milliseconds
32
42
  exports.THREAD_NUMBER_FOR_BATCH_TRANSLATION = 4;
43
+ exports.SMALL_FILE_GET_CONTENT_INSIGHTS_STATUS_DELAY_MILLISECONDS = 100;
44
+ exports.LARGE_FILE_GET_CONTENT_INSIGHTS_STATUS_DELAY_MILLISECONDS = 500;
33
45
  exports.SYNC_SIZE_LIMIT = 1000; // characters
34
46
  exports.MAX_FILE_SIZE_LIMIT = 104857600; // 100MB in bytes
35
47
  exports.MAX_ASYNC_TEXT_SIZE_LIMIT = 2097152; // 2MB in bytes
@@ -41,6 +53,7 @@ exports.EDGE_DEFAULT_URL = 'http://localhost:8001';
41
53
  exports.CLOUD_DATE_FORMAT = 'YYYY/MM/DD';
42
54
  exports.EDGE_DATE_FORMAT = 'YYYY-MM-DD HH:mm:ss.SSS';
43
55
  exports.SUPPORTED_INPUT_DATE_FORMATS = ['YYYY/MM/DD', 'YYYY-MM-DD', 'MM/DD/YYYY', 'MM-DD-YYYY'];
56
+ exports.DEFAULT_FILENAME = 'output.txt';
44
57
  // Environment variables keys
45
58
  exports.LW_CLIENT_ID_ENV_VAR = 'LW_CLIENT_ID';
46
59
  exports.LW_CLIENT_SECRET_ENV_VAR = 'LW_CLIENT_SECRET';
@@ -58,8 +71,10 @@ exports.ACCEPT = 'Accept';
58
71
  exports.CONTENT_TYPE = 'Content-Type';
59
72
  exports.CLIENT_ID = 'clientId';
60
73
  exports.CLIENT_SECRET = 'clientSecret';
61
- exports.TRANSLATION_TIMEOUT = 'Translation timeout';
62
- exports.MISSING_REQUIRED_LANGUAGE_PAIR_ID = 'Missing required languagePairId';
74
+ exports.TRANSLATION_TIMEOUT_ERROR_MESSAGE = 'Translation timeout';
75
+ exports.CONTENT_INSIGHTS_TIMEOUT_ERROR_MESSAGE = 'Content insights timeout';
76
+ exports.MISSING_REQUIRED_REQUEST_ID_ERROR = 'Missing required requestId';
77
+ exports.MISSING_REQUIRED_LANGUAGE_PAIR_ID_ERROR = 'Missing required languagePairId';
63
78
  exports.MISSING_REQUIRED_INPUT_FILE_ERROR = 'Missing required input file';
64
79
  exports.MISSING_REQUIRED_INPUT_DIRECTORY_ERROR = 'Missing required input directory';
65
80
  exports.MISSING_REQUIRED_INPUT_FILES_ERROR = 'Missing required input files';
@@ -70,6 +85,8 @@ exports.REQUIRED_INPUT_FILE_OF_TYPE_OBJECT_ERROR = 'Input file must be a File ob
70
85
  exports.REQUIRED_INPUT_FILE_OF_TYPE_STRING_ERROR = 'Input file must be a string';
71
86
  exports.REQUIRED_INPUT_FILES_OF_TYPE_OBJECT_ERROR = 'All input files must be instances of File object';
72
87
  exports.REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = 'Input file must be a string';
88
+ exports.REQUIRED_INPUT_OF_TYPE_STRING_ERROR = 'Input file must be a string';
89
+ exports.INVALID_FILE_OR_DIRECTORY_PATH_ERROR = 'Invalid file or directory path: ';
73
90
  exports.INVALID_PATH_ERROR = 'Invalid file path: ';
74
91
  exports.INVALID_DIRECTORY_ERROR = 'Invalid directory: ';
75
92
  exports.LANGUAGE_PAIR_NOT_FOUND_ERROR = 'No language pair found for given source, target and model';
@@ -1 +1 @@
1
- {"version":3,"file":"TranslationConstants.js","sourceRoot":"","sources":["../../../src/common/constants/TranslationConstants.ts"],"names":[],"mappings":";;;;AAAa,QAAA,sBAAsB,GAAG,WAAW,CAAC;AACrC,QAAA,SAAS,GAAG,mCAAmC,CAAC;AAChD,QAAA,cAAc,GAAG,yBAAyB,CAAC;AAE3C,QAAA,qBAAqB,GAAG,0BAA0B,CAAC;AACnD,QAAA,sBAAsB,GAAG,2BAA2B,CAAC;AAErD,QAAA,wBAAwB,GAAG,oCAAoC,CAAC;AAChE,QAAA,8BAA8B,GAAG,sBAAsB,CAAC;AACxD,QAAA,0BAA0B,GAAG,kBAAkB,CAAC;AAChD,QAAA,yBAAyB,GAAG,kBAAkB,CAAC;AAC/C,QAAA,2BAA2B,GAAG,sBAAsB,CAAC;AACrD,QAAA,wBAAwB,GAAG,mCAAmC,CAAC;AAC/D,QAAA,2BAA2B,GAAG,4BAA4B,CAAC;AAE3D,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,kBAAkB,G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ErrorResponse from '../api/ErrorResponse';
2
+ export default class ContentInsightsException {
3
+ static getContentInsightsException(contentInsightsStatus: string, contentInsightsId: string | undefined, errors?: ErrorResponse[] | undefined): Record<string, any>;
4
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ContentInsightsException = /** @class */ (function () {
4
+ function ContentInsightsException() {
5
+ }
6
+ ContentInsightsException.getContentInsightsException = function (contentInsightsStatus, contentInsightsId, errors) {
7
+ var message = "Received status ".concat(contentInsightsStatus, " for content insights with \n ContentInsightsId: ").concat(contentInsightsId);
8
+ return {
9
+ message: errors ? message + " \n with errors: ".concat(JSON.stringify(errors)) : message,
10
+ contentInsightsStatus: contentInsightsStatus,
11
+ requestId: contentInsightsId,
12
+ };
13
+ };
14
+ return ContentInsightsException;
15
+ }());
16
+ exports.default = ContentInsightsException;
17
+ //# sourceMappingURL=ContentInsightsException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentInsightsException.js","sourceRoot":"","sources":["../../../src/common/exceptions/ContentInsightsException.ts"],"names":[],"mappings":";;AAEA;IAAA;IAcA,CAAC;IAbU,oDAA2B,GAAlC,UACI,qBAA6B,EAC7B,iBAAqC,EACrC,MAAoC;QAEpC,IAAM,OAAO,GAAG,0BAAmB,qBAAqB,8DAAoD,iBAAiB,CAAE,CAAC;QAEhI,OAAO;YACH,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,GAAG,2BAAoB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAE,CAAC,CAAC,CAAC,OAAO;YAClF,qBAAqB,uBAAA;YACrB,SAAS,EAAE,iBAAiB;SAC/B,CAAC;IACN,CAAC;IACL,+BAAC;AAAD,CAAC,AAdD,IAcC"}
@@ -27,8 +27,15 @@ export default class Utils {
27
27
  static getExtensionInNode(file: string): string;
28
28
  static validateDirectoryPath(directoryPath: string): string | null;
29
29
  static validateFilePath(filePath: string): string | null;
30
+ static isDirectoryPath(directoryPath: string): any;
31
+ static isFilePath(filePath: string): any;
30
32
  static getFileSize(file: string | File): number;
33
+ static getFilesSizeForContentInsights(files: string | File | File[]): Promise<any>;
34
+ static isArrayOfFiles(array: any): boolean;
35
+ static getInputFilesFromDirectory(input: string): Promise<any>;
31
36
  static getFileBasename(file: string | File): string;
32
37
  static getFilename(file: string | File): string;
33
38
  static getNewFormDataObject(): any;
39
+ static validateInputDirectoryForNode(input: string): Promise<string | null>;
40
+ static getFileSizeExceededError(inputFile: string | File): string;
34
41
  }
@@ -275,6 +275,24 @@ var Utils = /** @class */ (function () {
275
275
  return TranslationConstants_1.INVALID_PATH_ERROR + filePath;
276
276
  }
277
277
  };
278
+ Utils.isDirectoryPath = function (directoryPath) {
279
+ try {
280
+ var fs = require('fs');
281
+ return fs.statSync(directoryPath).isDirectory();
282
+ }
283
+ catch (e) {
284
+ return false;
285
+ }
286
+ };
287
+ Utils.isFilePath = function (filePath) {
288
+ var fs = require('fs');
289
+ try {
290
+ return fs.statSync(filePath).isFile();
291
+ }
292
+ catch (e) {
293
+ return false;
294
+ }
295
+ };
278
296
  Utils.getFileSize = function (file) {
279
297
  if (this.isBrowser()) {
280
298
  return file instanceof File ? file.size : 0;
@@ -284,6 +302,80 @@ var Utils = /** @class */ (function () {
284
302
  return typeof file === 'string' ? fs.statSync(file).size : 0;
285
303
  }
286
304
  };
305
+ Utils.getFilesSizeForContentInsights = function (files) {
306
+ return __awaiter(this, void 0, void 0, function () {
307
+ function calculateTotalFilesSizeForBrowser() {
308
+ if (Utils.isArrayOfFiles(files) && Array.isArray(files)) {
309
+ return getTotalFilesSizeFromFileArray(files);
310
+ }
311
+ else {
312
+ return files instanceof File ? files.size : 0;
313
+ }
314
+ }
315
+ function calculateTotalFilesSizeForNode(filesPath) {
316
+ if (Utils.isDirectoryPath(filesPath)) {
317
+ return getTotalFilesSizeFromDirectory(filesPath);
318
+ }
319
+ else {
320
+ var fs = require('fs');
321
+ return typeof filesPath === 'string' ? fs.statSync(filesPath).size : 0;
322
+ }
323
+ }
324
+ function getTotalFilesSizeFromDirectory(filesPath) {
325
+ return __awaiter(this, void 0, void 0, function () {
326
+ var fs, filesFromDirectory, totalFileSize;
327
+ return __generator(this, function (_a) {
328
+ switch (_a.label) {
329
+ case 0:
330
+ fs = require('fs');
331
+ return [4 /*yield*/, fs.promises.readdir(filesPath)];
332
+ case 1:
333
+ filesFromDirectory = _a.sent();
334
+ totalFileSize = filesFromDirectory.reduce(function (acc, filename) { return acc + fs.statSync(Utils.getFullPath(filesPath, filename)).size; }, 0);
335
+ return [2 /*return*/, totalFileSize];
336
+ }
337
+ });
338
+ });
339
+ }
340
+ function getTotalFilesSizeFromFileArray(arrayFiles) {
341
+ var totalSize = arrayFiles.reduce(function (acc, item) {
342
+ return acc + item.size;
343
+ }, 0);
344
+ return totalSize;
345
+ }
346
+ return __generator(this, function (_a) {
347
+ if (this.isBrowser()) {
348
+ return [2 /*return*/, calculateTotalFilesSizeForBrowser()];
349
+ }
350
+ else if (typeof files === 'string') {
351
+ return [2 /*return*/, calculateTotalFilesSizeForNode(files)];
352
+ }
353
+ else {
354
+ return [2 /*return*/, 0];
355
+ }
356
+ return [2 /*return*/];
357
+ });
358
+ });
359
+ };
360
+ Utils.isArrayOfFiles = function (array) {
361
+ return Array.isArray(array) && array.length > 0 && array.every(function (entry) { return entry instanceof File; });
362
+ };
363
+ Utils.getInputFilesFromDirectory = function (input) {
364
+ return __awaiter(this, void 0, void 0, function () {
365
+ var fs, files;
366
+ return __generator(this, function (_a) {
367
+ switch (_a.label) {
368
+ case 0:
369
+ fs = require('fs');
370
+ return [4 /*yield*/, fs.promises.readdir(input)];
371
+ case 1:
372
+ files = _a.sent();
373
+ files = files.map(function (filename) { return Utils.getFullPath(input, filename); });
374
+ return [2 /*return*/, files];
375
+ }
376
+ });
377
+ });
378
+ };
287
379
  Utils.getFileBasename = function (file) {
288
380
  if (this.isBrowser()) {
289
381
  var filename = this.getFilename(file);
@@ -313,6 +405,41 @@ var Utils = /** @class */ (function () {
313
405
  return new FormData_1();
314
406
  }
315
407
  };
408
+ Utils.validateInputDirectoryForNode = function (input) {
409
+ return __awaiter(this, void 0, void 0, function () {
410
+ var inputDirValidationError, fs, path, absolutePath, files, largeFile, e_1;
411
+ return __generator(this, function (_a) {
412
+ switch (_a.label) {
413
+ case 0:
414
+ inputDirValidationError = Utils.validateDirectoryPath(input);
415
+ if (inputDirValidationError) {
416
+ return [2 /*return*/, inputDirValidationError];
417
+ }
418
+ fs = require('fs');
419
+ path = require('path');
420
+ absolutePath = Utils.getAbsolutePath(input);
421
+ _a.label = 1;
422
+ case 1:
423
+ _a.trys.push([1, 3, , 4]);
424
+ return [4 /*yield*/, fs.promises.readdir(absolutePath)];
425
+ case 2:
426
+ files = _a.sent();
427
+ if (!files || !files.length) {
428
+ return [2 /*return*/, TranslationConstants_1.MISSING_REQUIRED_INPUT_FILES_ERROR];
429
+ }
430
+ largeFile = files.find(function (file) { return Utils.getFileSize(path.join(absolutePath, file)) > TranslationConstants_1.MAX_FILE_SIZE_LIMIT; });
431
+ return [2 /*return*/, largeFile ? Utils.getFileSizeExceededError(largeFile) : null];
432
+ case 3:
433
+ e_1 = _a.sent();
434
+ return [2 /*return*/, TranslationConstants_1.READ_FILES_FROM_DIRECTORY_FAILED_ERROR];
435
+ case 4: return [2 /*return*/];
436
+ }
437
+ });
438
+ });
439
+ };
440
+ Utils.getFileSizeExceededError = function (inputFile) {
441
+ return "Input file ".concat(Utils.getFilename(inputFile), " exceeds maximum permitted size of ").concat(TranslationConstants_1.MAX_FILE_SIZE_LIMIT, " bytes");
442
+ };
316
443
  return Utils;
317
444
  }());
318
445
  exports.default = Utils;
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/common/utils/Utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA6C;AAE7C,sEAAqE;AACrE,0EAa2C;AAE3C,8D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C9C,uBAAuB,GAAG,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;wBAEnE,IAAI,uBAAuB,EAAE;4BACzB,sBAAO,uBAAuB,EAAC;yBAClC;wBAEK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;wBACnB,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;wBACvB,YAAY,GAAG,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;;;;wBAEhC,qBAAM,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,EAAA;;wBAA/C,KAAK,GAAG,SAAuC;wBAErD,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;4BACzB,sBAAO,yDAAkC,EAAC;yBAC7C;wBAEK,SAAS,GAAG,KAAK,CAAC,IAAI,CACxB,UAAC,IAAY,IAAK,OAAA,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,GAAG,0CAAmB,EAAtE,CAAsE,CAC3F,CAAC;wBAEF,sBAAO,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAC;;;wBAEpE,sBAAO,6DAAsC,EAAC;;;;;KAErD;IAEM,8BAAwB,GAA/B,UAAgC,SAAwB;QACpD,OAAO,qBAAc,KAAK,CAAC,WAAW,CAClC,SAAS,CACZ,gDAAsC,0CAAmB,WAAQ,CAAC;IACvE,CAAC;IACL,YAAC;AAAD,CAAC,AA9XD,IA8XC"}
package/lib/index.d.ts CHANGED
@@ -35,25 +35,37 @@ import EdgeTranslateBatchFileRequest from './translation/translate/edge/request/
35
35
  import TranslationBatchFileResult from './translation/translate/common/result/TranslationBatchFileResult';
36
36
  import CloudTranslationBatchFileResult from './translation/translate/cloud/result/CloudTranslationBatchFileResult';
37
37
  import EdgeTranslationBatchFileResult from './translation/translate/edge/result/EdgeTranslationBatchFileResult';
38
- import LanguagePairsResult from './translation/translate/common/result/LanguagePairsResult';
39
- import LanguagePair from './translation/translate/common/api/LanguagePair';
40
- import CloudLanguagePairsResult from './translation/translate/cloud/result/CloudLanguagePairsResult';
41
- import EdgeLanguagePairsResult from './translation/translate/edge/result/EdgeLanguagePairsResult';
42
- import CloudLanguagePair from './translation/translate/cloud/api/CloudLanguagePair';
43
- import EdgeLanguagePair from './translation/translate/edge/api/EdgeLanguagePair';
44
- import DictionariesResult from './translation/translate/common/result/DictionariesResult';
45
- import DictionaryResponse from './translation/translate/common/api/DictionaryResponse';
46
- import CloudDictionariesResult from './translation/translate/cloud/result/CloudDictionariesResult';
47
- import CloudDictionaryResponse from './translation/translate/cloud/api/CloudDictionaryResponse';
48
- import EdgeDictionariesResult from './translation/translate/edge/result/EdgeDictionariesResult';
49
- import EdgeDictionaryResponse from './translation/translate/edge/api/EdgeDictionaryResponse';
50
- import { CloudFeedbackSortCriteria } from './translation/feedback/cloud/model/CloudFeedbackSortCriteria';
51
- import CloudAuditData from './translation/feedback/cloud/model/CloudAuditData';
38
+ import RetrieveFileRequest from './translation/translate/common/request/RetrieveFileRequest';
39
+ import CloudRetrieveFileRequest from './translation/translate/cloud/request/CloudRetrieveFileRequest';
40
+ import EdgeRetrieveFileRequest from './translation/translate/edge/request/EdgeRetrieveFileRequest';
41
+ import LanguagePairsResult from './translation/language-pairs/common/result/LanguagePairsResult';
42
+ import LanguagePair from './translation/language-pairs/common/result/LanguagePair';
43
+ import CloudLanguagePairsResult from './translation/language-pairs/cloud/result/CloudLanguagePairsResult';
44
+ import EdgeLanguagePairsResult from './translation/language-pairs/edge/result/EdgeLanguagePairsResult';
45
+ import CloudLanguagePair from './translation/language-pairs/cloud/result/CloudLanguagePair';
46
+ import EdgeLanguagePair from './translation/language-pairs/edge/result/EdgeLanguagePair';
47
+ import LinguisticOptionsResult from './translation/linguistic-options/common/result/LinguisticOptionsResult';
48
+ import LinguisticOption from './translation/linguistic-options/common/result/LinguisticOption';
49
+ import GetLinguisticOptionsRequest from './translation/linguistic-options/common/request/GetLinguisticOptionsRequest';
50
+ import CloudLinguisticOptionsResult from './translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult';
51
+ import CloudLinguisticOption from './translation/linguistic-options/cloud/result/CloudLinguisticOption';
52
+ import CloudGetLinguisticOptionsRequest from './translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest';
53
+ import EdgeLinguisticOptionsResult from './translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult';
54
+ import EdgeLinguisticOption from './translation/linguistic-options/edge/result/EdgeLinguisticOption';
55
+ import EdgeGetLinguisticOptionsRequest from './translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest';
56
+ import DictionariesResult from './translation/dictionaries/common/result/DictionariesResult';
57
+ import Dictionary from './translation/dictionaries/common/result/Dictionary';
58
+ import CloudDictionariesResult from './translation/dictionaries/cloud/result/CloudDictionariesResult';
59
+ import CloudDictionary from './translation/dictionaries/cloud/result/CloudDictionary';
60
+ import EdgeDictionariesResult from './translation/dictionaries/edge/result/EdgeDictionariesResult';
61
+ import EdgeDictionary from './translation/dictionaries/edge/result/EdgeDictionary';
62
+ import { CloudFeedbackSortCriteria } from './common/constants/CloudFeedbackSortCriteria';
63
+ import CloudAuditData from './translation/feedback/cloud/result/CloudAuditData';
52
64
  import CloudFeedbackSortRequest from './translation/feedback/cloud/request/CloudFeedbackSortRequest';
53
65
  import CloudFilterFeedbackRequest from './translation/feedback/cloud/request/CloudFilterFeedbackRequest';
54
66
  import CloudFeedbackListResult from './translation/feedback/cloud/result/CloudFeedbackListResult';
55
67
  import CloudFeedbackResult from './translation/feedback/cloud/result/CloudFeedbackResult';
56
- import AuditData from './translation/feedback/common/model/AuditData';
68
+ import AuditData from './translation/feedback/common/result/AuditData';
57
69
  import FilterFeedbackRequest from './translation/feedback/common/request/FilterFeedbackRequest';
58
70
  import FeedbackListResult from './translation/feedback/common/result/FeedbackListResult';
59
71
  import FeedbackResult from './translation/feedback/common/result/FeedbackResult';
@@ -73,12 +85,28 @@ import EdgeUpdateFeedbackApprovalRequest from './translation/feedback/edge/reque
73
85
  import DeleteFeedbackRequest from './translation/feedback/common/request/DeleteFeedbackRequest';
74
86
  import CloudDeleteFeedbackRequest from './translation/feedback/cloud/request/CloudDeleteFeedbackRequest';
75
87
  import EdgeDeleteFeedbackRequest from './translation/feedback/edge/request/EdgeDeleteFeedbackRequest';
88
+ import CloudFileContentInsightsRequest from './translation/content-insights/cloud/request/CloudFileContentInsightsRequest';
89
+ import CloudContentInsightsRequest from './translation/content-insights/cloud/request/CloudContentInsightsRequest';
90
+ import CloudContentInsightsResult from './translation/content-insights/cloud/result/CloudContentInsightsResult';
91
+ import CloudContentInsightsStatistics from './translation/content-insights/cloud/result/CloudContentInsightsStatistics';
92
+ import CloudSegment from './translation/content-insights/cloud/result/CloudSegment';
93
+ import CloudSummarization from './translation/content-insights/cloud/result/CloudSummarization';
94
+ import Segment from './translation/content-insights/common/result/Segment';
95
+ import Summarization from './translation/content-insights/common/result/Summarization';
96
+ import ContentInsightsResult from './translation/content-insights/common/result/ContentInsightsResult';
97
+ import ContentInsightsRequest from './translation/content-insights/common/request/ContentInsightsRequest';
98
+ import EdgeSegment from './translation/content-insights/edge/result/EdgeSegment';
99
+ import EdgeSummarization from './translation/content-insights/edge/result/EdgeSummarization';
100
+ import EdgeContentInsightsResult from './translation/content-insights/edge/result/EdgeContentInsightsResult';
101
+ import EdgeContentInsightsRequest from './translation/content-insights/edge/request/EdgeContentInsightsRequest';
76
102
  export default SdkFactory;
77
103
  export { CloudLanguageWeaverClient, EdgeLanguageWeaverClient, LanguageWeaverClient };
78
104
  export { TokenConfiguration, CredentialsConfiguration, RetryConfiguration, ClientConfiguration };
79
105
  export { Product, Regions, Format, HttpUtils, ApprovalStatus, QualityEstimation, FeedbackCategory, FeedbackComment, Order, PdfConverter, };
80
106
  export { Token };
81
- export { TranslateTextRequest, CloudTranslateTextRequest, EdgeTranslateTextRequest, TranslateTextResult, CloudTranslationTextResult, EdgeTranslationTextResult, TranslateFileRequest, CloudTranslateFileRequest, EdgeTranslateFileRequest, TranslationFileResult, CloudTranslationFileResult, EdgeTranslationFileResult, TranslateBatchFileRequest, CloudTranslateBatchFileRequest, EdgeTranslateBatchFileRequest, TranslationBatchFileResult, CloudTranslationBatchFileResult, EdgeTranslationBatchFileResult, };
107
+ export { TranslateTextRequest, CloudTranslateTextRequest, EdgeTranslateTextRequest, TranslateTextResult, CloudTranslationTextResult, EdgeTranslationTextResult, TranslateFileRequest, CloudTranslateFileRequest, EdgeTranslateFileRequest, TranslationFileResult, CloudTranslationFileResult, EdgeTranslationFileResult, TranslateBatchFileRequest, CloudTranslateBatchFileRequest, EdgeTranslateBatchFileRequest, TranslationBatchFileResult, CloudTranslationBatchFileResult, EdgeTranslationBatchFileResult, RetrieveFileRequest, CloudRetrieveFileRequest, EdgeRetrieveFileRequest, };
82
108
  export { LanguagePair, LanguagePairsResult, CloudLanguagePair, CloudLanguagePairsResult, EdgeLanguagePair, EdgeLanguagePairsResult, };
83
- export { DictionariesResult, DictionaryResponse, CloudDictionariesResult, CloudDictionaryResponse, EdgeDictionariesResult, EdgeDictionaryResponse, };
109
+ export { LinguisticOptionsResult, LinguisticOption, GetLinguisticOptionsRequest, CloudLinguisticOptionsResult, CloudLinguisticOption, CloudGetLinguisticOptionsRequest, EdgeLinguisticOptionsResult, EdgeLinguisticOption, EdgeGetLinguisticOptionsRequest, };
110
+ export { DictionariesResult, Dictionary, CloudDictionariesResult, CloudDictionary, EdgeDictionariesResult, EdgeDictionary, };
84
111
  export { CloudFeedbackSortCriteria, CloudAuditData, CloudFeedbackSortRequest, CloudFilterFeedbackRequest, CloudFeedbackListResult, CloudFeedbackResult, AuditData, FilterFeedbackRequest, FeedbackListResult, FeedbackResult, FeedbackCommonResult, EdgeFilterFeedbackRequest, EdgeFeedbackListResult, EdgeFeedbackResult, CreateFeedbackRequest, CloudCreateFeedbackRequest, EdgeCreateFeedbackRequest, UpdateFeedbackRequest, CloudUpdateFeedbackRequest, EdgeUpdateFeedbackRequest, UpdateFeedbackApprovalRequest, CloudUpdateFeedbackApprovalRequest, EdgeUpdateFeedbackApprovalRequest, DeleteFeedbackRequest, CloudDeleteFeedbackRequest, EdgeDeleteFeedbackRequest, };
112
+ export { CloudFileContentInsightsRequest, CloudContentInsightsRequest, ContentInsightsRequest, CloudContentInsightsResult, CloudContentInsightsStatistics, CloudSegment, CloudSummarization, Segment, Summarization, ContentInsightsResult, EdgeSegment, EdgeSummarization, EdgeContentInsightsResult, EdgeContentInsightsRequest, };