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

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 (347) hide show
  1. package/lib/common/configurations/ClientConfiguration.d.ts +2 -2
  2. package/lib/common/configurations/ClientConfiguration.js +0 -2
  3. package/lib/common/configurations/ClientConfiguration.js.map +1 -1
  4. package/lib/common/configurations/CredentialsConfiguration.js +2 -6
  5. package/lib/common/configurations/CredentialsConfiguration.js.map +1 -1
  6. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.d.ts +0 -0
  7. package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.js +0 -0
  8. package/lib/common/constants/CloudFeedbackSortCriteria.js.map +1 -0
  9. package/lib/common/constants/Statuses.d.ts +6 -0
  10. package/lib/common/constants/Statuses.js +7 -1
  11. package/lib/common/constants/Statuses.js.map +1 -1
  12. package/lib/common/constants/TranslationConstants.d.ts +17 -8
  13. package/lib/common/constants/TranslationConstants.js +22 -11
  14. package/lib/common/constants/TranslationConstants.js.map +1 -1
  15. package/lib/common/exceptions/ContentInsightsException.d.ts +4 -0
  16. package/lib/common/exceptions/ContentInsightsException.js +17 -0
  17. package/lib/common/exceptions/ContentInsightsException.js.map +1 -0
  18. package/lib/common/external/communication/RestClient.js +9 -7
  19. package/lib/common/external/communication/RestClient.js.map +1 -1
  20. package/lib/common/utils/Utils.d.ts +8 -1
  21. package/lib/common/utils/Utils.js +133 -31
  22. package/lib/common/utils/Utils.js.map +1 -1
  23. package/lib/index.d.ts +45 -17
  24. package/lib/index.js +74 -20
  25. package/lib/index.js.map +1 -1
  26. package/lib/translation/common/LanguageWeaverClient.d.ts +10 -2
  27. package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +28 -4
  28. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js +209 -112
  29. package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -1
  30. package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +26 -6
  31. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js +204 -132
  32. package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -1
  33. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +1 -1
  34. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +1 -1
  35. package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -1
  36. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.d.ts +23 -0
  37. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js +69 -0
  38. package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js.map +1 -0
  39. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.d.ts +10 -0
  40. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js +39 -0
  41. package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js.map +1 -0
  42. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.d.ts +12 -0
  43. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js +32 -0
  44. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js.map +1 -0
  45. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.d.ts +16 -0
  46. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js +42 -0
  47. package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js.map +1 -0
  48. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.d.ts +12 -0
  49. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js +39 -0
  50. package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js.map +1 -0
  51. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.d.ts +15 -0
  52. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js +57 -0
  53. package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js.map +1 -0
  54. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.d.ts +13 -0
  55. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js +46 -0
  56. package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js.map +1 -0
  57. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.d.ts +3 -0
  58. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js +30 -0
  59. package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js.map +1 -0
  60. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.d.ts +8 -0
  61. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js +29 -0
  62. package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js.map +1 -0
  63. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.d.ts +16 -0
  64. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js +49 -0
  65. package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js.map +1 -0
  66. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.d.ts +8 -0
  67. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js +29 -0
  68. package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js.map +1 -0
  69. package/lib/translation/content-insights/cloud/result/CloudSegment.d.ts +6 -0
  70. package/lib/translation/content-insights/cloud/result/CloudSegment.js +40 -0
  71. package/lib/translation/content-insights/cloud/result/CloudSegment.js.map +1 -0
  72. package/lib/translation/content-insights/cloud/result/CloudSummarization.d.ts +6 -0
  73. package/lib/translation/content-insights/cloud/result/CloudSummarization.js +19 -0
  74. package/lib/translation/content-insights/cloud/result/CloudSummarization.js.map +1 -0
  75. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.d.ts +20 -0
  76. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js +248 -0
  77. package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js.map +1 -0
  78. package/lib/translation/content-insights/common/request/ContentInsightsRequest.d.ts +7 -0
  79. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js +23 -0
  80. package/lib/translation/content-insights/common/request/ContentInsightsRequest.js.map +1 -0
  81. package/lib/translation/content-insights/common/result/ContentInsightsResult.d.ts +6 -0
  82. package/lib/translation/content-insights/common/result/ContentInsightsResult.js +19 -0
  83. package/lib/translation/content-insights/common/result/ContentInsightsResult.js.map +1 -0
  84. package/lib/translation/content-insights/common/result/Segment.d.ts +8 -0
  85. package/lib/translation/content-insights/common/result/Segment.js +29 -0
  86. package/lib/translation/content-insights/common/result/Segment.js.map +1 -0
  87. package/lib/translation/content-insights/common/result/Summarization.d.ts +8 -0
  88. package/lib/translation/content-insights/common/result/Summarization.js +25 -0
  89. package/lib/translation/content-insights/common/result/Summarization.js.map +1 -0
  90. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.d.ts +4 -0
  91. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js +145 -0
  92. package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js.map +1 -0
  93. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.d.ts +13 -0
  94. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js +53 -0
  95. package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js.map +1 -0
  96. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.d.ts +12 -0
  97. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js +46 -0
  98. package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js.map +1 -0
  99. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.d.ts +5 -0
  100. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js +19 -0
  101. package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js.map +1 -0
  102. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.d.ts +9 -0
  103. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js +29 -0
  104. package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js.map +1 -0
  105. package/lib/translation/content-insights/edge/result/EdgeSegment.d.ts +3 -0
  106. package/lib/translation/content-insights/edge/result/EdgeSegment.js +30 -0
  107. package/lib/translation/content-insights/edge/result/EdgeSegment.js.map +1 -0
  108. package/lib/translation/content-insights/edge/result/EdgeSummarization.d.ts +6 -0
  109. package/lib/translation/content-insights/edge/result/EdgeSummarization.js +19 -0
  110. package/lib/translation/content-insights/edge/result/EdgeSummarization.js.map +1 -0
  111. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.d.ts +14 -0
  112. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js +96 -0
  113. package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js.map +1 -0
  114. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.d.ts +14 -0
  115. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js +72 -0
  116. package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js.map +1 -0
  117. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.d.ts +36 -0
  118. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js +136 -0
  119. package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js.map +1 -0
  120. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.d.ts +3 -3
  121. package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.js +0 -0
  122. package/lib/translation/dictionaries/cloud/result/CloudDictionariesResult.js.map +1 -0
  123. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.d.ts → dictionaries/cloud/result/CloudDictionary.d.ts} +1 -1
  124. package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.js → dictionaries/cloud/result/CloudDictionary.js} +15 -15
  125. package/lib/translation/dictionaries/cloud/result/CloudDictionary.js.map +1 -0
  126. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.d.ts +15 -0
  127. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js +51 -0
  128. package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js.map +1 -0
  129. package/lib/translation/dictionaries/common/result/DictionariesResult.d.ts +7 -0
  130. package/lib/translation/{translate → dictionaries}/common/result/DictionariesResult.js +0 -0
  131. package/lib/translation/dictionaries/common/result/DictionariesResult.js.map +1 -0
  132. package/lib/translation/{translate/common/api/DictionaryResponse.d.ts → dictionaries/common/result/Dictionary.d.ts} +1 -1
  133. package/lib/translation/{translate/common/api/DictionaryResponse.js → dictionaries/common/result/Dictionary.js} +8 -8
  134. package/lib/translation/dictionaries/common/result/Dictionary.js.map +1 -0
  135. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.d.ts +22 -0
  136. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js +84 -0
  137. package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js.map +1 -0
  138. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.d.ts +15 -0
  139. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js +58 -0
  140. package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js.map +1 -0
  141. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.d.ts +3 -3
  142. package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.js +0 -0
  143. package/lib/translation/dictionaries/edge/result/EdgeDictionariesResult.js.map +1 -0
  144. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.d.ts → dictionaries/edge/result/EdgeDictionary.d.ts} +1 -1
  145. package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.js → dictionaries/edge/result/EdgeDictionary.js} +8 -8
  146. package/lib/translation/dictionaries/edge/result/EdgeDictionary.js.map +1 -0
  147. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.d.ts +12 -0
  148. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js +51 -0
  149. package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js.map +1 -0
  150. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +2 -2
  151. package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -1
  152. package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +1 -1
  153. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.d.ts +1 -1
  154. package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.js +1 -1
  155. package/lib/translation/feedback/cloud/result/CloudAuditData.js.map +1 -0
  156. package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +1 -1
  157. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +1 -1
  158. package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -1
  159. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.d.ts +1 -1
  160. package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.js +1 -1
  161. package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.js.map +1 -0
  162. package/lib/translation/feedback/common/{model → result}/AuditData.d.ts +0 -0
  163. package/lib/translation/feedback/common/{model → result}/AuditData.js +0 -0
  164. package/lib/translation/feedback/common/result/AuditData.js.map +1 -0
  165. package/lib/translation/feedback/common/result/FeedbackResult.d.ts +1 -1
  166. package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.d.ts +0 -0
  167. package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.js +0 -0
  168. package/lib/translation/feedback/common/validator/FeedbackValidator.js.map +1 -0
  169. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +1 -1
  170. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +1 -1
  171. package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -1
  172. package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +1 -1
  173. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +1 -1
  174. package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -1
  175. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.d.ts +3 -0
  176. package/lib/translation/feedback/edge/{validators → validator}/EdgeFeedbackValidator.js +1 -1
  177. package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.js.map +1 -0
  178. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.d.ts +21 -0
  179. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js +81 -0
  180. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js.map +1 -0
  181. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.d.ts +13 -0
  182. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js +47 -0
  183. package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js.map +1 -0
  184. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.d.ts +2 -0
  185. package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.js +11 -0
  186. package/lib/translation/language-pairs/cloud/result/CloudLanguagePair.js.map +1 -0
  187. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.d.ts +1 -1
  188. package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.js +0 -0
  189. package/lib/translation/language-pairs/cloud/result/CloudLanguagePairsResult.js.map +1 -0
  190. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.d.ts +15 -0
  191. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js +45 -0
  192. package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js.map +1 -0
  193. package/lib/translation/language-pairs/common/result/LanguagePair.d.ts +16 -0
  194. package/lib/translation/{translate/common/api → language-pairs/common/result}/LanguagePair.js +11 -0
  195. package/lib/translation/language-pairs/common/result/LanguagePair.js.map +1 -0
  196. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.d.ts +1 -1
  197. package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.js +0 -0
  198. package/lib/translation/language-pairs/common/result/LanguagePairsResult.js.map +1 -0
  199. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.d.ts +17 -0
  200. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js +89 -0
  201. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js.map +1 -0
  202. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.d.ts +10 -0
  203. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js +37 -0
  204. package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js.map +1 -0
  205. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.d.ts +31 -0
  206. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js +116 -0
  207. package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js.map +1 -0
  208. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.d.ts +15 -0
  209. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/EdgeLanguagePair.js +20 -0
  210. package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.js.map +1 -0
  211. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.d.ts +1 -1
  212. package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.js +0 -0
  213. package/lib/translation/language-pairs/edge/result/EdgeLanguagePairsResult.js.map +1 -0
  214. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.d.ts +0 -0
  215. package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.js +0 -0
  216. package/lib/translation/language-pairs/edge/result/MemberPair.js.map +1 -0
  217. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.d.ts +14 -0
  218. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js +80 -0
  219. package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js.map +1 -0
  220. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.d.ts +13 -0
  221. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js +68 -0
  222. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js.map +1 -0
  223. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.d.ts +6 -0
  224. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js +19 -0
  225. package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js.map +1 -0
  226. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.d.ts +3 -0
  227. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js +30 -0
  228. package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js.map +1 -0
  229. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.d.ts +10 -0
  230. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js +57 -0
  231. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js.map +1 -0
  232. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.d.ts +6 -0
  233. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js +19 -0
  234. package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js.map +1 -0
  235. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.d.ts +19 -0
  236. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js +72 -0
  237. package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js.map +1 -0
  238. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.d.ts +3 -0
  239. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js +30 -0
  240. package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js.map +1 -0
  241. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.d.ts +11 -0
  242. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js +39 -0
  243. package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js.map +1 -0
  244. package/lib/translation/{translate/common/api/LanguagePair.d.ts → linguistic-options/common/request/GetLinguisticOptionsRequest.d.ts} +1 -4
  245. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js +39 -0
  246. package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js.map +1 -0
  247. package/lib/translation/linguistic-options/common/result/LinguisticOption.d.ts +11 -0
  248. package/lib/translation/linguistic-options/common/result/LinguisticOption.js +39 -0
  249. package/lib/translation/linguistic-options/common/result/LinguisticOption.js.map +1 -0
  250. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.d.ts +6 -0
  251. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js +19 -0
  252. package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js.map +1 -0
  253. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.d.ts +4 -0
  254. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js +25 -0
  255. package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js.map +1 -0
  256. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.d.ts +7 -0
  257. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js +46 -0
  258. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js.map +1 -0
  259. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.d.ts +6 -0
  260. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js +19 -0
  261. package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js.map +1 -0
  262. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.d.ts +9 -0
  263. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js +50 -0
  264. package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js.map +1 -0
  265. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.d.ts +4 -0
  266. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js +37 -0
  267. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js.map +1 -0
  268. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.d.ts +6 -0
  269. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js +19 -0
  270. package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js.map +1 -0
  271. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.d.ts +18 -0
  272. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js +101 -0
  273. package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js.map +1 -0
  274. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.d.ts +3 -0
  275. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js +30 -0
  276. package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js.map +1 -0
  277. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.d.ts +3 -0
  278. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js +30 -0
  279. package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js.map +1 -0
  280. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.d.ts +3 -0
  281. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js +21 -0
  282. package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -1
  283. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.d.ts +26 -0
  284. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js +80 -0
  285. package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js.map +1 -0
  286. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.d.ts +0 -3
  287. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js +0 -10
  288. package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js.map +1 -1
  289. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.d.ts +3 -3
  290. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js +3 -3
  291. package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js.map +1 -1
  292. package/lib/translation/translate/common/request/RetrieveFileRequest.d.ts +11 -0
  293. package/lib/translation/translate/common/request/RetrieveFileRequest.js +39 -0
  294. package/lib/translation/translate/common/request/RetrieveFileRequest.js.map +1 -0
  295. package/lib/translation/translate/common/request/TranslateBatchFileRequest.d.ts +3 -0
  296. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js +10 -0
  297. package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -1
  298. package/lib/translation/translate/common/request/TranslateRequest.d.ts +3 -0
  299. package/lib/translation/translate/common/request/TranslateRequest.js +10 -0
  300. package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -1
  301. package/lib/translation/translate/common/result/TranslationFileResult.d.ts +6 -0
  302. package/lib/translation/translate/common/result/TranslationFileResult.js +20 -0
  303. package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -1
  304. package/lib/translation/translate/common/utils/TranslateFileUtil.d.ts +3 -1
  305. package/lib/translation/translate/common/utils/TranslateFileUtil.js +26 -53
  306. package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -1
  307. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.d.ts +7 -0
  308. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js +40 -0
  309. package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js.map +1 -0
  310. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.d.ts +2 -2
  311. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js +15 -14
  312. package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -1
  313. package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.d.ts → EdgeTranslateRequest.d.ts} +1 -1
  314. package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.js → EdgeTranslateRequest.js} +14 -14
  315. package/lib/translation/translate/edge/request/EdgeTranslateRequest.js.map +1 -0
  316. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.d.ts +2 -2
  317. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js +15 -14
  318. package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -1
  319. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.d.ts +0 -3
  320. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js +0 -10
  321. package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js.map +1 -1
  322. package/lib/version.d.ts +1 -1
  323. package/lib/version.js +1 -1
  324. package/package.json +2 -2
  325. package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +0 -1
  326. package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +0 -1
  327. package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +0 -1
  328. package/lib/translation/feedback/common/model/AuditData.js.map +0 -1
  329. package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +0 -1
  330. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +0 -3
  331. package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +0 -1
  332. package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +0 -1
  333. package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +0 -1
  334. package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +0 -1
  335. package/lib/translation/translate/cloud/result/CloudLanguagePairsResult.js.map +0 -1
  336. package/lib/translation/translate/common/api/DictionaryResponse.js.map +0 -1
  337. package/lib/translation/translate/common/api/LanguagePair.js.map +0 -1
  338. package/lib/translation/translate/common/result/DictionariesResult.d.ts +0 -7
  339. package/lib/translation/translate/common/result/DictionariesResult.js.map +0 -1
  340. package/lib/translation/translate/common/result/LanguagePairsResult.js.map +0 -1
  341. package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +0 -1
  342. package/lib/translation/translate/edge/api/EdgeLanguagePair.d.ts +0 -9
  343. package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +0 -1
  344. package/lib/translation/translate/edge/api/MemberPair.js.map +0 -1
  345. package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js.map +0 -1
  346. package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +0 -1
  347. package/lib/translation/translate/edge/result/EdgeLanguagePairsResult.js.map +0 -1
@@ -177,45 +177,20 @@ var Utils = /** @class */ (function () {
177
177
  });
178
178
  });
179
179
  };
180
- Utils.getCloudClientIdEnvVar = function () {
181
- if (Utils.isBrowser()) {
182
- return process.env[TranslationConstants_1.REACT_APP_LW_CLIENT_ID_ENV_VAR] || process.env[TranslationConstants_1.LW_CLIENT_ID_ENV_VAR];
183
- }
184
- else {
185
- return process.env[TranslationConstants_1.LW_CLIENT_ID_ENV_VAR];
186
- }
180
+ Utils.getClientIdEnvVar = function () {
181
+ return Utils.isBrowser() ? undefined : process.env[TranslationConstants_1.LW_CLIENT_ID_ENV_VAR];
187
182
  };
188
183
  Utils.getCloudClientSecretEnvVar = function () {
189
- if (Utils.isBrowser()) {
190
- return process.env[TranslationConstants_1.REACT_APP_LW_CLIENT_SECRET_ENV_VAR] || process.env[TranslationConstants_1.LW_CLIENT_SECRET_ENV_VAR];
191
- }
192
- else {
193
- return process.env[TranslationConstants_1.LW_CLIENT_SECRET_ENV_VAR];
194
- }
184
+ return Utils.isBrowser() ? undefined : process.env[TranslationConstants_1.LW_CLIENT_SECRET_ENV_VAR];
195
185
  };
196
186
  Utils.getEdgeOverwriteUrlEnvVar = function () {
197
- if (Utils.isBrowser()) {
198
- return process.env[TranslationConstants_1.REACT_APP_LW_EDGE_OVERWRITE_URL] || process.env[TranslationConstants_1.LW_EDGE_OVERWRITE_URL];
199
- }
200
- else {
201
- return process.env[TranslationConstants_1.LW_EDGE_OVERWRITE_URL];
202
- }
187
+ return Utils.isBrowser() ? undefined : process.env[TranslationConstants_1.LW_EDGE_OVERWRITE_URL];
203
188
  };
204
189
  Utils.getCloudRegionEnvVar = function () {
205
- if (Utils.isBrowser()) {
206
- return process.env[TranslationConstants_1.REACT_APP_LW_CLOUD_REGION] || process.env[TranslationConstants_1.LW_CLOUD_REGION];
207
- }
208
- else {
209
- return process.env[TranslationConstants_1.LW_CLOUD_REGION];
210
- }
190
+ return Utils.isBrowser() ? undefined : process.env[TranslationConstants_1.LW_CLOUD_REGION];
211
191
  };
212
192
  Utils.getProductEnvVar = function () {
213
- if (Utils.isBrowser()) {
214
- return process.env[TranslationConstants_1.REACT_APP_LW_PRODUCT_ENV_VAR] || process.env[TranslationConstants_1.LW_PRODUCT_ENV_VAR];
215
- }
216
- else {
217
- return process.env[TranslationConstants_1.LW_PRODUCT_ENV_VAR];
218
- }
193
+ return Utils.isBrowser() ? undefined : process.env[TranslationConstants_1.LW_PRODUCT_ENV_VAR];
219
194
  };
220
195
  Utils.isCloudCredentialsToken = function (token) {
221
196
  if (!token || !token.accessToken) {
@@ -275,6 +250,24 @@ var Utils = /** @class */ (function () {
275
250
  return TranslationConstants_1.INVALID_PATH_ERROR + filePath;
276
251
  }
277
252
  };
253
+ Utils.isDirectoryPath = function (directoryPath) {
254
+ try {
255
+ var fs = require('fs');
256
+ return fs.statSync(directoryPath).isDirectory();
257
+ }
258
+ catch (e) {
259
+ return false;
260
+ }
261
+ };
262
+ Utils.isFilePath = function (filePath) {
263
+ var fs = require('fs');
264
+ try {
265
+ return fs.statSync(filePath).isFile();
266
+ }
267
+ catch (e) {
268
+ return false;
269
+ }
270
+ };
278
271
  Utils.getFileSize = function (file) {
279
272
  if (this.isBrowser()) {
280
273
  return file instanceof File ? file.size : 0;
@@ -284,6 +277,80 @@ var Utils = /** @class */ (function () {
284
277
  return typeof file === 'string' ? fs.statSync(file).size : 0;
285
278
  }
286
279
  };
280
+ Utils.getFilesSizeForContentInsights = function (files) {
281
+ return __awaiter(this, void 0, void 0, function () {
282
+ function calculateTotalFilesSizeForBrowser() {
283
+ if (Utils.isArrayOfFiles(files) && Array.isArray(files)) {
284
+ return getTotalFilesSizeFromFileArray(files);
285
+ }
286
+ else {
287
+ return files instanceof File ? files.size : 0;
288
+ }
289
+ }
290
+ function calculateTotalFilesSizeForNode(filesPath) {
291
+ if (Utils.isDirectoryPath(filesPath)) {
292
+ return getTotalFilesSizeFromDirectory(filesPath);
293
+ }
294
+ else {
295
+ var fs = require('fs');
296
+ return typeof filesPath === 'string' ? fs.statSync(filesPath).size : 0;
297
+ }
298
+ }
299
+ function getTotalFilesSizeFromDirectory(filesPath) {
300
+ return __awaiter(this, void 0, void 0, function () {
301
+ var fs, filesFromDirectory, totalFileSize;
302
+ return __generator(this, function (_a) {
303
+ switch (_a.label) {
304
+ case 0:
305
+ fs = require('fs');
306
+ return [4 /*yield*/, fs.promises.readdir(filesPath)];
307
+ case 1:
308
+ filesFromDirectory = _a.sent();
309
+ totalFileSize = filesFromDirectory.reduce(function (acc, filename) { return acc + fs.statSync(Utils.getFullPath(filesPath, filename)).size; }, 0);
310
+ return [2 /*return*/, totalFileSize];
311
+ }
312
+ });
313
+ });
314
+ }
315
+ function getTotalFilesSizeFromFileArray(arrayFiles) {
316
+ var totalSize = arrayFiles.reduce(function (acc, item) {
317
+ return acc + item.size;
318
+ }, 0);
319
+ return totalSize;
320
+ }
321
+ return __generator(this, function (_a) {
322
+ if (this.isBrowser()) {
323
+ return [2 /*return*/, calculateTotalFilesSizeForBrowser()];
324
+ }
325
+ else if (typeof files === 'string') {
326
+ return [2 /*return*/, calculateTotalFilesSizeForNode(files)];
327
+ }
328
+ else {
329
+ return [2 /*return*/, 0];
330
+ }
331
+ return [2 /*return*/];
332
+ });
333
+ });
334
+ };
335
+ Utils.isArrayOfFiles = function (array) {
336
+ return Array.isArray(array) && array.length > 0 && array.every(function (entry) { return entry instanceof File; });
337
+ };
338
+ Utils.getInputFilesFromDirectory = function (input) {
339
+ return __awaiter(this, void 0, void 0, function () {
340
+ var fs, files;
341
+ return __generator(this, function (_a) {
342
+ switch (_a.label) {
343
+ case 0:
344
+ fs = require('fs');
345
+ return [4 /*yield*/, fs.promises.readdir(input)];
346
+ case 1:
347
+ files = _a.sent();
348
+ files = files.map(function (filename) { return Utils.getFullPath(input, filename); });
349
+ return [2 /*return*/, files];
350
+ }
351
+ });
352
+ });
353
+ };
287
354
  Utils.getFileBasename = function (file) {
288
355
  if (this.isBrowser()) {
289
356
  var filename = this.getFilename(file);
@@ -313,6 +380,41 @@ var Utils = /** @class */ (function () {
313
380
  return new FormData_1();
314
381
  }
315
382
  };
383
+ Utils.validateInputDirectoryForNode = function (input) {
384
+ return __awaiter(this, void 0, void 0, function () {
385
+ var inputDirValidationError, fs, path, absolutePath, files, largeFile, e_1;
386
+ return __generator(this, function (_a) {
387
+ switch (_a.label) {
388
+ case 0:
389
+ inputDirValidationError = Utils.validateDirectoryPath(input);
390
+ if (inputDirValidationError) {
391
+ return [2 /*return*/, inputDirValidationError];
392
+ }
393
+ fs = require('fs');
394
+ path = require('path');
395
+ absolutePath = Utils.getAbsolutePath(input);
396
+ _a.label = 1;
397
+ case 1:
398
+ _a.trys.push([1, 3, , 4]);
399
+ return [4 /*yield*/, fs.promises.readdir(absolutePath)];
400
+ case 2:
401
+ files = _a.sent();
402
+ if (!files || !files.length) {
403
+ return [2 /*return*/, TranslationConstants_1.MISSING_REQUIRED_INPUT_FILES_ERROR];
404
+ }
405
+ largeFile = files.find(function (file) { return Utils.getFileSize(path.join(absolutePath, file)) > TranslationConstants_1.MAX_FILE_SIZE_LIMIT; });
406
+ return [2 /*return*/, largeFile ? Utils.getFileSizeExceededError(largeFile) : null];
407
+ case 3:
408
+ e_1 = _a.sent();
409
+ return [2 /*return*/, TranslationConstants_1.READ_FILES_FROM_DIRECTORY_FAILED_ERROR];
410
+ case 4: return [2 /*return*/];
411
+ }
412
+ });
413
+ });
414
+ };
415
+ Utils.getFileSizeExceededError = function (inputFile) {
416
+ return "Input file ".concat(Utils.getFilename(inputFile), " exceeds maximum permitted size of ").concat(TranslationConstants_1.MAX_FILE_SIZE_LIMIT, " bytes");
417
+ };
316
418
  return Utils;
317
419
  }());
318
420
  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,8DAA6D;AAC7D,8CAA6C;AAE7C;IAAA;IAkRA,CAAC;IAjRU,2BAAqB,GAA5B,UAA6B,IAAY;QACrC,IAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,6BAAa,CAAC,CAAC,IAAI,CAAC,UAAC,GAAG,IAAK,OAAA,6BAAa,CAAC,GAAG,CAAC,KAAK,IAAI,EAA3B,CAA2B,CAAC,CAAC;QAElF,OAAO,GAAG,IAAI,IAAI,CAAC;IACvB,CAAC;IAEM,sBAAgB,GAAvB,UAAwB,QAA4B;QAChD,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YACnC,OAAO,QAAQ,CAAC;SACnB;QAED,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,CAAC;IAEM,kBAAY,GAAnB,UAAoB,KAAe;QAC/B,OAAO,KAAK,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,KAAK;YAC3B,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC;YACpB,OAAO,GAAG,CAAC;QACf,CAAC,EAAE,CAAC,CAAC,CAAC;IACV,CAAC;IAEM,uB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BAC9C,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,AA1WD,IA0WC"}
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, };
package/lib/index.js CHANGED
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CloudFeedbackSortRequest = exports.CloudAuditData = exports.CloudFeedbackSortCriteria = exports.EdgeDictionaryResponse = exports.EdgeDictionariesResult = exports.CloudDictionaryResponse = exports.CloudDictionariesResult = exports.DictionaryResponse = exports.DictionariesResult = exports.EdgeLanguagePairsResult = exports.EdgeLanguagePair = exports.CloudLanguagePairsResult = exports.CloudLanguagePair = exports.LanguagePairsResult = exports.LanguagePair = exports.EdgeTranslationBatchFileResult = exports.CloudTranslationBatchFileResult = exports.TranslationBatchFileResult = exports.EdgeTranslateBatchFileRequest = exports.CloudTranslateBatchFileRequest = exports.TranslateBatchFileRequest = exports.EdgeTranslationFileResult = exports.CloudTranslationFileResult = exports.TranslationFileResult = exports.EdgeTranslateFileRequest = exports.CloudTranslateFileRequest = exports.TranslateFileRequest = exports.EdgeTranslationTextResult = exports.CloudTranslationTextResult = exports.TranslateTextResult = exports.EdgeTranslateTextRequest = exports.CloudTranslateTextRequest = exports.TranslateTextRequest = exports.Token = exports.PdfConverter = exports.Order = exports.FeedbackComment = exports.FeedbackCategory = exports.QualityEstimation = exports.ApprovalStatus = exports.HttpUtils = exports.Format = exports.Regions = exports.Product = exports.ClientConfiguration = exports.RetryConfiguration = exports.CredentialsConfiguration = exports.TokenConfiguration = exports.EdgeLanguageWeaverClient = exports.CloudLanguageWeaverClient = void 0;
7
- exports.EdgeDeleteFeedbackRequest = exports.CloudDeleteFeedbackRequest = exports.DeleteFeedbackRequest = exports.EdgeUpdateFeedbackApprovalRequest = exports.CloudUpdateFeedbackApprovalRequest = exports.UpdateFeedbackApprovalRequest = exports.EdgeUpdateFeedbackRequest = exports.CloudUpdateFeedbackRequest = exports.UpdateFeedbackRequest = exports.EdgeCreateFeedbackRequest = exports.CloudCreateFeedbackRequest = exports.CreateFeedbackRequest = exports.EdgeFeedbackResult = exports.EdgeFeedbackListResult = exports.EdgeFilterFeedbackRequest = exports.FeedbackCommonResult = exports.FeedbackResult = exports.FeedbackListResult = exports.FilterFeedbackRequest = exports.AuditData = exports.CloudFeedbackResult = exports.CloudFeedbackListResult = exports.CloudFilterFeedbackRequest = void 0;
6
+ exports.CloudGetLinguisticOptionsRequest = exports.CloudLinguisticOption = exports.CloudLinguisticOptionsResult = exports.GetLinguisticOptionsRequest = exports.LinguisticOption = exports.LinguisticOptionsResult = exports.EdgeLanguagePairsResult = exports.EdgeLanguagePair = exports.CloudLanguagePairsResult = exports.CloudLanguagePair = exports.LanguagePairsResult = exports.LanguagePair = exports.EdgeRetrieveFileRequest = exports.CloudRetrieveFileRequest = exports.RetrieveFileRequest = exports.EdgeTranslationBatchFileResult = exports.CloudTranslationBatchFileResult = exports.TranslationBatchFileResult = exports.EdgeTranslateBatchFileRequest = exports.CloudTranslateBatchFileRequest = exports.TranslateBatchFileRequest = exports.EdgeTranslationFileResult = exports.CloudTranslationFileResult = exports.TranslationFileResult = exports.EdgeTranslateFileRequest = exports.CloudTranslateFileRequest = exports.TranslateFileRequest = exports.EdgeTranslationTextResult = exports.CloudTranslationTextResult = exports.TranslateTextResult = exports.EdgeTranslateTextRequest = exports.CloudTranslateTextRequest = exports.TranslateTextRequest = exports.Token = exports.PdfConverter = exports.Order = exports.FeedbackComment = exports.FeedbackCategory = exports.QualityEstimation = exports.ApprovalStatus = exports.HttpUtils = exports.Format = exports.Regions = exports.Product = exports.ClientConfiguration = exports.RetryConfiguration = exports.CredentialsConfiguration = exports.TokenConfiguration = exports.EdgeLanguageWeaverClient = exports.CloudLanguageWeaverClient = void 0;
7
+ exports.EdgeContentInsightsRequest = exports.EdgeContentInsightsResult = exports.EdgeSummarization = exports.EdgeSegment = exports.ContentInsightsResult = exports.Summarization = exports.Segment = exports.CloudSummarization = exports.CloudSegment = exports.CloudContentInsightsStatistics = exports.CloudContentInsightsResult = exports.ContentInsightsRequest = exports.CloudContentInsightsRequest = exports.CloudFileContentInsightsRequest = exports.EdgeDeleteFeedbackRequest = exports.CloudDeleteFeedbackRequest = exports.DeleteFeedbackRequest = exports.EdgeUpdateFeedbackApprovalRequest = exports.CloudUpdateFeedbackApprovalRequest = exports.UpdateFeedbackApprovalRequest = exports.EdgeUpdateFeedbackRequest = exports.CloudUpdateFeedbackRequest = exports.UpdateFeedbackRequest = exports.EdgeCreateFeedbackRequest = exports.CloudCreateFeedbackRequest = exports.CreateFeedbackRequest = exports.EdgeFeedbackResult = exports.EdgeFeedbackListResult = exports.EdgeFilterFeedbackRequest = exports.FeedbackCommonResult = exports.FeedbackResult = exports.FeedbackListResult = exports.FilterFeedbackRequest = exports.AuditData = exports.CloudFeedbackResult = exports.CloudFeedbackListResult = exports.CloudFilterFeedbackRequest = exports.CloudFeedbackSortRequest = exports.CloudAuditData = exports.CloudFeedbackSortCriteria = exports.EdgeDictionary = exports.EdgeDictionariesResult = exports.CloudDictionary = exports.CloudDictionariesResult = exports.Dictionary = exports.DictionariesResult = exports.EdgeGetLinguisticOptionsRequest = exports.EdgeLinguisticOption = exports.EdgeLinguisticOptionsResult = void 0;
8
8
  /* Imports */
9
9
  var SdkFactory_1 = __importDefault(require("./translation/common/SdkFactory"));
10
10
  var CloudLanguageWeaverClient_1 = __importDefault(require("./translation/common/cloud/CloudLanguageWeaverClient"));
@@ -81,36 +81,61 @@ var CloudTranslationBatchFileResult_1 = __importDefault(require("./translation/t
81
81
  exports.CloudTranslationBatchFileResult = CloudTranslationBatchFileResult_1.default;
82
82
  var EdgeTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeTranslationBatchFileResult"));
83
83
  exports.EdgeTranslationBatchFileResult = EdgeTranslationBatchFileResult_1.default;
84
+ var RetrieveFileRequest_1 = __importDefault(require("./translation/translate/common/request/RetrieveFileRequest"));
85
+ exports.RetrieveFileRequest = RetrieveFileRequest_1.default;
86
+ var CloudRetrieveFileRequest_1 = __importDefault(require("./translation/translate/cloud/request/CloudRetrieveFileRequest"));
87
+ exports.CloudRetrieveFileRequest = CloudRetrieveFileRequest_1.default;
88
+ var EdgeRetrieveFileRequest_1 = __importDefault(require("./translation/translate/edge/request/EdgeRetrieveFileRequest"));
89
+ exports.EdgeRetrieveFileRequest = EdgeRetrieveFileRequest_1.default;
84
90
  // LPs
85
- var LanguagePairsResult_1 = __importDefault(require("./translation/translate/common/result/LanguagePairsResult"));
91
+ var LanguagePairsResult_1 = __importDefault(require("./translation/language-pairs/common/result/LanguagePairsResult"));
86
92
  exports.LanguagePairsResult = LanguagePairsResult_1.default;
87
- var LanguagePair_1 = __importDefault(require("./translation/translate/common/api/LanguagePair"));
93
+ var LanguagePair_1 = __importDefault(require("./translation/language-pairs/common/result/LanguagePair"));
88
94
  exports.LanguagePair = LanguagePair_1.default;
89
- var CloudLanguagePairsResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudLanguagePairsResult"));
95
+ var CloudLanguagePairsResult_1 = __importDefault(require("./translation/language-pairs/cloud/result/CloudLanguagePairsResult"));
90
96
  exports.CloudLanguagePairsResult = CloudLanguagePairsResult_1.default;
91
- var EdgeLanguagePairsResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeLanguagePairsResult"));
97
+ var EdgeLanguagePairsResult_1 = __importDefault(require("./translation/language-pairs/edge/result/EdgeLanguagePairsResult"));
92
98
  exports.EdgeLanguagePairsResult = EdgeLanguagePairsResult_1.default;
93
- var CloudLanguagePair_1 = __importDefault(require("./translation/translate/cloud/api/CloudLanguagePair"));
99
+ var CloudLanguagePair_1 = __importDefault(require("./translation/language-pairs/cloud/result/CloudLanguagePair"));
94
100
  exports.CloudLanguagePair = CloudLanguagePair_1.default;
95
- var EdgeLanguagePair_1 = __importDefault(require("./translation/translate/edge/api/EdgeLanguagePair"));
101
+ var EdgeLanguagePair_1 = __importDefault(require("./translation/language-pairs/edge/result/EdgeLanguagePair"));
96
102
  exports.EdgeLanguagePair = EdgeLanguagePair_1.default;
103
+ // Linguistic Options
104
+ var LinguisticOptionsResult_1 = __importDefault(require("./translation/linguistic-options/common/result/LinguisticOptionsResult"));
105
+ exports.LinguisticOptionsResult = LinguisticOptionsResult_1.default;
106
+ var LinguisticOption_1 = __importDefault(require("./translation/linguistic-options/common/result/LinguisticOption"));
107
+ exports.LinguisticOption = LinguisticOption_1.default;
108
+ var GetLinguisticOptionsRequest_1 = __importDefault(require("./translation/linguistic-options/common/request/GetLinguisticOptionsRequest"));
109
+ exports.GetLinguisticOptionsRequest = GetLinguisticOptionsRequest_1.default;
110
+ var CloudLinguisticOptionsResult_1 = __importDefault(require("./translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult"));
111
+ exports.CloudLinguisticOptionsResult = CloudLinguisticOptionsResult_1.default;
112
+ var CloudLinguisticOption_1 = __importDefault(require("./translation/linguistic-options/cloud/result/CloudLinguisticOption"));
113
+ exports.CloudLinguisticOption = CloudLinguisticOption_1.default;
114
+ var CloudGetLinguisticOptionsRequest_1 = __importDefault(require("./translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest"));
115
+ exports.CloudGetLinguisticOptionsRequest = CloudGetLinguisticOptionsRequest_1.default;
116
+ var EdgeLinguisticOptionsResult_1 = __importDefault(require("./translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult"));
117
+ exports.EdgeLinguisticOptionsResult = EdgeLinguisticOptionsResult_1.default;
118
+ var EdgeLinguisticOption_1 = __importDefault(require("./translation/linguistic-options/edge/result/EdgeLinguisticOption"));
119
+ exports.EdgeLinguisticOption = EdgeLinguisticOption_1.default;
120
+ var EdgeGetLinguisticOptionsRequest_1 = __importDefault(require("./translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest"));
121
+ exports.EdgeGetLinguisticOptionsRequest = EdgeGetLinguisticOptionsRequest_1.default;
97
122
  // Dictionaries
98
- var DictionariesResult_1 = __importDefault(require("./translation/translate/common/result/DictionariesResult"));
123
+ var DictionariesResult_1 = __importDefault(require("./translation/dictionaries/common/result/DictionariesResult"));
99
124
  exports.DictionariesResult = DictionariesResult_1.default;
100
- var DictionaryResponse_1 = __importDefault(require("./translation/translate/common/api/DictionaryResponse"));
101
- exports.DictionaryResponse = DictionaryResponse_1.default;
102
- var CloudDictionariesResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudDictionariesResult"));
125
+ var Dictionary_1 = __importDefault(require("./translation/dictionaries/common/result/Dictionary"));
126
+ exports.Dictionary = Dictionary_1.default;
127
+ var CloudDictionariesResult_1 = __importDefault(require("./translation/dictionaries/cloud/result/CloudDictionariesResult"));
103
128
  exports.CloudDictionariesResult = CloudDictionariesResult_1.default;
104
- var CloudDictionaryResponse_1 = __importDefault(require("./translation/translate/cloud/api/CloudDictionaryResponse"));
105
- exports.CloudDictionaryResponse = CloudDictionaryResponse_1.default;
106
- var EdgeDictionariesResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeDictionariesResult"));
129
+ var CloudDictionary_1 = __importDefault(require("./translation/dictionaries/cloud/result/CloudDictionary"));
130
+ exports.CloudDictionary = CloudDictionary_1.default;
131
+ var EdgeDictionariesResult_1 = __importDefault(require("./translation/dictionaries/edge/result/EdgeDictionariesResult"));
107
132
  exports.EdgeDictionariesResult = EdgeDictionariesResult_1.default;
108
- var EdgeDictionaryResponse_1 = __importDefault(require("./translation/translate/edge/api/EdgeDictionaryResponse"));
109
- exports.EdgeDictionaryResponse = EdgeDictionaryResponse_1.default;
133
+ var EdgeDictionary_1 = __importDefault(require("./translation/dictionaries/edge/result/EdgeDictionary"));
134
+ exports.EdgeDictionary = EdgeDictionary_1.default;
110
135
  // Feedback
111
- var CloudFeedbackSortCriteria_1 = require("./translation/feedback/cloud/model/CloudFeedbackSortCriteria");
136
+ var CloudFeedbackSortCriteria_1 = require("./common/constants/CloudFeedbackSortCriteria");
112
137
  Object.defineProperty(exports, "CloudFeedbackSortCriteria", { enumerable: true, get: function () { return CloudFeedbackSortCriteria_1.CloudFeedbackSortCriteria; } });
113
- var CloudAuditData_1 = __importDefault(require("./translation/feedback/cloud/model/CloudAuditData"));
138
+ var CloudAuditData_1 = __importDefault(require("./translation/feedback/cloud/result/CloudAuditData"));
114
139
  exports.CloudAuditData = CloudAuditData_1.default;
115
140
  var CloudFeedbackSortRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudFeedbackSortRequest"));
116
141
  exports.CloudFeedbackSortRequest = CloudFeedbackSortRequest_1.default;
@@ -120,7 +145,7 @@ var CloudFeedbackListResult_1 = __importDefault(require("./translation/feedback/
120
145
  exports.CloudFeedbackListResult = CloudFeedbackListResult_1.default;
121
146
  var CloudFeedbackResult_1 = __importDefault(require("./translation/feedback/cloud/result/CloudFeedbackResult"));
122
147
  exports.CloudFeedbackResult = CloudFeedbackResult_1.default;
123
- var AuditData_1 = __importDefault(require("./translation/feedback/common/model/AuditData"));
148
+ var AuditData_1 = __importDefault(require("./translation/feedback/common/result/AuditData"));
124
149
  exports.AuditData = AuditData_1.default;
125
150
  var FilterFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/FilterFeedbackRequest"));
126
151
  exports.FilterFeedbackRequest = FilterFeedbackRequest_1.default;
@@ -160,6 +185,35 @@ var CloudDeleteFeedbackRequest_1 = __importDefault(require("./translation/feedba
160
185
  exports.CloudDeleteFeedbackRequest = CloudDeleteFeedbackRequest_1.default;
161
186
  var EdgeDeleteFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeDeleteFeedbackRequest"));
162
187
  exports.EdgeDeleteFeedbackRequest = EdgeDeleteFeedbackRequest_1.default;
188
+ // Content Insights
189
+ var CloudFileContentInsightsRequest_1 = __importDefault(require("./translation/content-insights/cloud/request/CloudFileContentInsightsRequest"));
190
+ exports.CloudFileContentInsightsRequest = CloudFileContentInsightsRequest_1.default;
191
+ var CloudContentInsightsRequest_1 = __importDefault(require("./translation/content-insights/cloud/request/CloudContentInsightsRequest"));
192
+ exports.CloudContentInsightsRequest = CloudContentInsightsRequest_1.default;
193
+ var CloudContentInsightsResult_1 = __importDefault(require("./translation/content-insights/cloud/result/CloudContentInsightsResult"));
194
+ exports.CloudContentInsightsResult = CloudContentInsightsResult_1.default;
195
+ var CloudContentInsightsStatistics_1 = __importDefault(require("./translation/content-insights/cloud/result/CloudContentInsightsStatistics"));
196
+ exports.CloudContentInsightsStatistics = CloudContentInsightsStatistics_1.default;
197
+ var CloudSegment_1 = __importDefault(require("./translation/content-insights/cloud/result/CloudSegment"));
198
+ exports.CloudSegment = CloudSegment_1.default;
199
+ var CloudSummarization_1 = __importDefault(require("./translation/content-insights/cloud/result/CloudSummarization"));
200
+ exports.CloudSummarization = CloudSummarization_1.default;
201
+ var Segment_1 = __importDefault(require("./translation/content-insights/common/result/Segment"));
202
+ exports.Segment = Segment_1.default;
203
+ var Summarization_1 = __importDefault(require("./translation/content-insights/common/result/Summarization"));
204
+ exports.Summarization = Summarization_1.default;
205
+ var ContentInsightsResult_1 = __importDefault(require("./translation/content-insights/common/result/ContentInsightsResult"));
206
+ exports.ContentInsightsResult = ContentInsightsResult_1.default;
207
+ var ContentInsightsRequest_1 = __importDefault(require("./translation/content-insights/common/request/ContentInsightsRequest"));
208
+ exports.ContentInsightsRequest = ContentInsightsRequest_1.default;
209
+ var EdgeSegment_1 = __importDefault(require("./translation/content-insights/edge/result/EdgeSegment"));
210
+ exports.EdgeSegment = EdgeSegment_1.default;
211
+ var EdgeSummarization_1 = __importDefault(require("./translation/content-insights/edge/result/EdgeSummarization"));
212
+ exports.EdgeSummarization = EdgeSummarization_1.default;
213
+ var EdgeContentInsightsResult_1 = __importDefault(require("./translation/content-insights/edge/result/EdgeContentInsightsResult"));
214
+ exports.EdgeContentInsightsResult = EdgeContentInsightsResult_1.default;
215
+ var EdgeContentInsightsRequest_1 = __importDefault(require("./translation/content-insights/edge/request/EdgeContentInsightsRequest"));
216
+ exports.EdgeContentInsightsRequest = EdgeContentInsightsRequest_1.default;
163
217
  /* Exports */
164
218
  exports.default = SdkFactory_1.default;
165
219
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,aAAa;AACb,+EAAyD;AACzD,mHAA6F;AAoGpF,oCApGF,mCAAyB,CAoGE;AAnGlC,gHAA0F;AAmGtD,mCAnG7B,kCAAwB,CAmG6B;AAhG5D,iBAAiB;AACjB,8GAAwF;AAkG3D,mCAlGtB,kCAAwB,CAkGsB;AAjGrD,kGAA4E;AAiGrB,6BAjGhD,4BAAkB,CAiGgD;AAhGzE,oGAA8E;AAgGH,8BAhGpE,6BAAmB,CAgGoE;AA/F9F,kGAA4E;AA+FnE,6BA/FF,4BAAkB,CA+FE;AA7F3B,SAAS;AACT,sDAAqD;AAgGjD,wFAhGK,iBAAO,OAgGL;AA/FX,sDAAqD;AAgGjD,wFAhGK,iBAAO,OAgGL;AA/FX,oDAAmD;AAgG/C,uFAhGK,eAAM,OAgGL;AA/FV,uEAAiD;AAgG7C,oBAhGG,mBAAS,CAgGH;AA9Fb,oEAAmE;AA+F/D,+FA/FK,+BAAc,OA+FL;AA9FlB,0EAAyE;AA+FrE,kGA/FK,qCAAiB,OA+FL;AA9FrB,wEAAuE;AA+FnE,iGA/FK,mCAAgB,OA+FL;AA9FpB,sEAAqE;AA+FjE,gGA/FK,iCAAe,OA+FL;A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B,sIAAgH;AAoI5G,qCApIG,oCAA0B,CAoIH;AAnI9B,8IAAwH;AAoIpH,yCApIG,wCAA8B,CAoIH;AAnIlC,0GAAoF;AAoIhF,uBApIG,sBAAY,CAoIH;AAnIhB,sHAAgG;AAoI5F,6BApIG,4BAAkB,CAoIH;AAlItB,iGAA2E;AAmIvE,kBAnIG,iBAAO,CAmIH;AAlIX,6GAAuF;AAmInF,wBAnIG,uBAAa,CAmIH;AAlIjB,6HAAuG;AAmInG,gCAnIG,+BAAqB,CAmIH;AAlIzB,gIAA0G;AA2HtG,iCA3HG,gCAAsB,CA2HH;AAzH1B,uGAAiF;AAiI7E,sBAjIG,qBAAW,CAiIH;AAhIf,mHAA6F;AAiIzF,4BAjIG,2BAAiB,CAiIH;AAhIrB,mIAA6G;AAiIzG,oCAjIG,mCAAyB,CAiIH;AAhI7B,sIAAgH;AAiI5G,qCAjIG,oCAA0B,CAiIH;AA/H9B,aAAa;AACb,kBAAe,oBAAU,CAAC"}
@@ -2,10 +2,10 @@ import TranslateTextRequest from '../translate/common/request/TranslateTextReque
2
2
  import TranslateTextResult from '../translate/common/result/TranslateTextResult';
3
3
  import TranslateFileRequest from '../translate/common/request/TranslateFileRequest';
4
4
  import TranslationFileResult from '../translate/common/result/TranslationFileResult';
5
- import LanguagePairsResult from '../translate/common/result/LanguagePairsResult';
5
+ import LanguagePairsResult from '../language-pairs/common/result/LanguagePairsResult';
6
6
  import TranslateBatchFileRequest from '../translate/common/request/TranslateBatchFileRequest';
7
7
  import TranslationBatchFileResult from '../translate/common/result/TranslationBatchFileResult';
8
- import DictionariesResult from '../translate/common/result/DictionariesResult';
8
+ import DictionariesResult from '../dictionaries/common/result/DictionariesResult';
9
9
  import FeedbackListResult from '../feedback/common/result/FeedbackListResult';
10
10
  import FilterFeedbackRequest from '../feedback/common/request/FilterFeedbackRequest';
11
11
  import CreateFeedbackRequest from '../feedback/common/request/CreateFeedbackRequest';
@@ -13,10 +13,17 @@ import FeedbackResult from '../feedback/common/result/FeedbackResult';
13
13
  import UpdateFeedbackRequest from '../feedback/common/request/UpdateFeedbackRequest';
14
14
  import UpdateFeedbackApprovalRequest from '../feedback/common/request/UpdateFeedbackApprovalRequest';
15
15
  import DeleteFeedbackRequest from '../feedback/common/request/DeleteFeedbackRequest';
16
+ import RetrieveFileRequest from '../translate/common/request/RetrieveFileRequest';
17
+ import LinguisticOptionsResult from '../linguistic-options/common/result/LinguisticOptionsResult';
18
+ import GetLinguisticOptionsRequest from '../linguistic-options/common/request/GetLinguisticOptionsRequest';
19
+ import ContentInsightsResult from '../content-insights/common/result/ContentInsightsResult';
20
+ import ContentInsightsRequest from '../content-insights/common/request/ContentInsightsRequest';
16
21
  export interface LanguageWeaverClient {
17
22
  translateText(translateTextRequest: TranslateTextRequest): Promise<TranslateTextResult>;
18
23
  translateFile(translateFileRequest: TranslateFileRequest): Promise<TranslationFileResult>;
19
24
  translateBatchFile(translateBatchFileRequest: TranslateBatchFileRequest): Promise<TranslationBatchFileResult>;
25
+ retrieveFileTranslation(retrieveFileRequest: RetrieveFileRequest): Promise<TranslationFileResult>;
26
+ getLinguisticOptions(getLinguisticOptionsRequest: GetLinguisticOptionsRequest): Promise<LinguisticOptionsResult>;
20
27
  getLanguagePairs(): Promise<LanguagePairsResult>;
21
28
  getDictionaries(pageNumber: number, pageSize?: number): Promise<DictionariesResult>;
22
29
  getFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
@@ -24,4 +31,5 @@ export interface LanguageWeaverClient {
24
31
  updateFeedback(updateFeedbackRequest: UpdateFeedbackRequest): Promise<FeedbackResult>;
25
32
  updateFeedbackApproval(updateFeedbackApprovalRequest: UpdateFeedbackApprovalRequest): Promise<FeedbackResult>;
26
33
  deleteFeedback(deleteFeedbackRequest: DeleteFeedbackRequest): Promise<null>;
34
+ getContentInsightsForTranslations(contentInsightsRequest: ContentInsightsRequest): Promise<ContentInsightsResult>;
27
35
  }