@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.
- package/lib/common/configurations/ClientConfiguration.d.ts +2 -2
- package/lib/common/configurations/ClientConfiguration.js +0 -2
- package/lib/common/configurations/ClientConfiguration.js.map +1 -1
- package/lib/common/configurations/CredentialsConfiguration.js +2 -6
- package/lib/common/configurations/CredentialsConfiguration.js.map +1 -1
- package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.d.ts +0 -0
- package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.js +0 -0
- package/lib/common/constants/CloudFeedbackSortCriteria.js.map +1 -0
- package/lib/common/constants/Statuses.d.ts +6 -0
- package/lib/common/constants/Statuses.js +7 -1
- package/lib/common/constants/Statuses.js.map +1 -1
- package/lib/common/constants/TranslationConstants.d.ts +17 -8
- package/lib/common/constants/TranslationConstants.js +22 -11
- package/lib/common/constants/TranslationConstants.js.map +1 -1
- package/lib/common/exceptions/ContentInsightsException.d.ts +4 -0
- package/lib/common/exceptions/ContentInsightsException.js +17 -0
- package/lib/common/exceptions/ContentInsightsException.js.map +1 -0
- package/lib/common/external/communication/RestClient.js +9 -7
- package/lib/common/external/communication/RestClient.js.map +1 -1
- package/lib/common/utils/Utils.d.ts +8 -1
- package/lib/common/utils/Utils.js +133 -31
- package/lib/common/utils/Utils.js.map +1 -1
- package/lib/index.d.ts +45 -17
- package/lib/index.js +74 -20
- package/lib/index.js.map +1 -1
- package/lib/translation/common/LanguageWeaverClient.d.ts +10 -2
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +28 -4
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.js +209 -112
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -1
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +26 -6
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.js +204 -132
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -1
- package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +1 -1
- package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +1 -1
- package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -1
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.d.ts +23 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js +69 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.d.ts +10 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js +39 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.d.ts +12 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js +32 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.d.ts +16 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js +42 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.d.ts +12 -0
- package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js +39 -0
- package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.d.ts +15 -0
- package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js +57 -0
- package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.d.ts +13 -0
- package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js +46 -0
- package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js.map +1 -0
- package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.d.ts +3 -0
- package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js +30 -0
- package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js.map +1 -0
- package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.d.ts +8 -0
- package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js +29 -0
- package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js.map +1 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.d.ts +16 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js +49 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js.map +1 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.d.ts +8 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js +29 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js.map +1 -0
- package/lib/translation/content-insights/cloud/result/CloudSegment.d.ts +6 -0
- package/lib/translation/content-insights/cloud/result/CloudSegment.js +40 -0
- package/lib/translation/content-insights/cloud/result/CloudSegment.js.map +1 -0
- package/lib/translation/content-insights/cloud/result/CloudSummarization.d.ts +6 -0
- package/lib/translation/content-insights/cloud/result/CloudSummarization.js +19 -0
- package/lib/translation/content-insights/cloud/result/CloudSummarization.js.map +1 -0
- package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.d.ts +20 -0
- package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js +248 -0
- package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js.map +1 -0
- package/lib/translation/content-insights/common/request/ContentInsightsRequest.d.ts +7 -0
- package/lib/translation/content-insights/common/request/ContentInsightsRequest.js +23 -0
- package/lib/translation/content-insights/common/request/ContentInsightsRequest.js.map +1 -0
- package/lib/translation/content-insights/common/result/ContentInsightsResult.d.ts +6 -0
- package/lib/translation/content-insights/common/result/ContentInsightsResult.js +19 -0
- package/lib/translation/content-insights/common/result/ContentInsightsResult.js.map +1 -0
- package/lib/translation/content-insights/common/result/Segment.d.ts +8 -0
- package/lib/translation/content-insights/common/result/Segment.js +29 -0
- package/lib/translation/content-insights/common/result/Segment.js.map +1 -0
- package/lib/translation/content-insights/common/result/Summarization.d.ts +8 -0
- package/lib/translation/content-insights/common/result/Summarization.js +25 -0
- package/lib/translation/content-insights/common/result/Summarization.js.map +1 -0
- package/lib/translation/content-insights/common/utils/ContentInsightsUtils.d.ts +4 -0
- package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js +145 -0
- package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js.map +1 -0
- package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.d.ts +13 -0
- package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js +53 -0
- package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js.map +1 -0
- package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.d.ts +12 -0
- package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js +46 -0
- package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js.map +1 -0
- package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.d.ts +5 -0
- package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js +19 -0
- package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js.map +1 -0
- package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.d.ts +9 -0
- package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js +29 -0
- package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js.map +1 -0
- package/lib/translation/content-insights/edge/result/EdgeSegment.d.ts +3 -0
- package/lib/translation/content-insights/edge/result/EdgeSegment.js +30 -0
- package/lib/translation/content-insights/edge/result/EdgeSegment.js.map +1 -0
- package/lib/translation/content-insights/edge/result/EdgeSummarization.d.ts +6 -0
- package/lib/translation/content-insights/edge/result/EdgeSummarization.js +19 -0
- package/lib/translation/content-insights/edge/result/EdgeSummarization.js.map +1 -0
- package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.d.ts +14 -0
- package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js +96 -0
- package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js.map +1 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.d.ts +14 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js +72 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js.map +1 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.d.ts +36 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js +136 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js.map +1 -0
- package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.d.ts +3 -3
- package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.js +0 -0
- package/lib/translation/dictionaries/cloud/result/CloudDictionariesResult.js.map +1 -0
- package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.d.ts → dictionaries/cloud/result/CloudDictionary.d.ts} +1 -1
- package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.js → dictionaries/cloud/result/CloudDictionary.js} +15 -15
- package/lib/translation/dictionaries/cloud/result/CloudDictionary.js.map +1 -0
- package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.d.ts +15 -0
- package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js +51 -0
- package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js.map +1 -0
- package/lib/translation/dictionaries/common/result/DictionariesResult.d.ts +7 -0
- package/lib/translation/{translate → dictionaries}/common/result/DictionariesResult.js +0 -0
- package/lib/translation/dictionaries/common/result/DictionariesResult.js.map +1 -0
- package/lib/translation/{translate/common/api/DictionaryResponse.d.ts → dictionaries/common/result/Dictionary.d.ts} +1 -1
- package/lib/translation/{translate/common/api/DictionaryResponse.js → dictionaries/common/result/Dictionary.js} +8 -8
- package/lib/translation/dictionaries/common/result/Dictionary.js.map +1 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.d.ts +22 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js +84 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js.map +1 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.d.ts +15 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js +58 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js.map +1 -0
- package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.d.ts +3 -3
- package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.js +0 -0
- package/lib/translation/dictionaries/edge/result/EdgeDictionariesResult.js.map +1 -0
- package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.d.ts → dictionaries/edge/result/EdgeDictionary.d.ts} +1 -1
- package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.js → dictionaries/edge/result/EdgeDictionary.js} +8 -8
- package/lib/translation/dictionaries/edge/result/EdgeDictionary.js.map +1 -0
- package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.d.ts +12 -0
- package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js +51 -0
- package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +2 -2
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -1
- package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +1 -1
- package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.d.ts +1 -1
- package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.js +1 -1
- package/lib/translation/feedback/cloud/result/CloudAuditData.js.map +1 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +1 -1
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +1 -1
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -1
- package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.d.ts +1 -1
- package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.js +1 -1
- package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.js.map +1 -0
- package/lib/translation/feedback/common/{model → result}/AuditData.d.ts +0 -0
- package/lib/translation/feedback/common/{model → result}/AuditData.js +0 -0
- package/lib/translation/feedback/common/result/AuditData.js.map +1 -0
- package/lib/translation/feedback/common/result/FeedbackResult.d.ts +1 -1
- package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.d.ts +0 -0
- package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.js +0 -0
- package/lib/translation/feedback/common/validator/FeedbackValidator.js.map +1 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +1 -1
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +1 -1
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -1
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +1 -1
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +1 -1
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -1
- package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.d.ts +3 -0
- package/lib/translation/feedback/edge/{validators → validator}/EdgeFeedbackValidator.js +1 -1
- package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.js.map +1 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.d.ts +21 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js +81 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js.map +1 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.d.ts +13 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js +47 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js.map +1 -0
- package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.d.ts +2 -0
- package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.js +11 -0
- package/lib/translation/language-pairs/cloud/result/CloudLanguagePair.js.map +1 -0
- package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.d.ts +1 -1
- package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.js +0 -0
- package/lib/translation/language-pairs/cloud/result/CloudLanguagePairsResult.js.map +1 -0
- package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.d.ts +15 -0
- package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js +45 -0
- package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js.map +1 -0
- package/lib/translation/language-pairs/common/result/LanguagePair.d.ts +16 -0
- package/lib/translation/{translate/common/api → language-pairs/common/result}/LanguagePair.js +11 -0
- package/lib/translation/language-pairs/common/result/LanguagePair.js.map +1 -0
- package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.d.ts +1 -1
- package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.js +0 -0
- package/lib/translation/language-pairs/common/result/LanguagePairsResult.js.map +1 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.d.ts +17 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js +89 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js.map +1 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.d.ts +10 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js +37 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js.map +1 -0
- package/lib/translation/language-pairs/edge/api/MemberPairApiModel.d.ts +31 -0
- package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js +116 -0
- package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js.map +1 -0
- package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.d.ts +15 -0
- package/lib/translation/{translate/edge/api → language-pairs/edge/result}/EdgeLanguagePair.js +20 -0
- package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.js.map +1 -0
- package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.d.ts +1 -1
- package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.js +0 -0
- package/lib/translation/language-pairs/edge/result/EdgeLanguagePairsResult.js.map +1 -0
- package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.d.ts +0 -0
- package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.js +0 -0
- package/lib/translation/language-pairs/edge/result/MemberPair.js.map +1 -0
- package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.d.ts +14 -0
- package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js +80 -0
- package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.d.ts +13 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js +68 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.d.ts +6 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js +19 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.d.ts +3 -0
- package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js +30 -0
- package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.d.ts +10 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js +57 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.d.ts +6 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js +19 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.d.ts +19 -0
- package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js +72 -0
- package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.d.ts +3 -0
- package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js +30 -0
- package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js.map +1 -0
- package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.d.ts +11 -0
- package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js +39 -0
- package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js.map +1 -0
- package/lib/translation/{translate/common/api/LanguagePair.d.ts → linguistic-options/common/request/GetLinguisticOptionsRequest.d.ts} +1 -4
- package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js +39 -0
- package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js.map +1 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOption.d.ts +11 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOption.js +39 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOption.js.map +1 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.d.ts +6 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js +19 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js.map +1 -0
- package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.d.ts +4 -0
- package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js +25 -0
- package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js.map +1 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.d.ts +7 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js +46 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js.map +1 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.d.ts +6 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js +19 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js.map +1 -0
- package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.d.ts +9 -0
- package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js +50 -0
- package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js.map +1 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.d.ts +4 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js +37 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js.map +1 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.d.ts +6 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js +19 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js.map +1 -0
- package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.d.ts +18 -0
- package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js +101 -0
- package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js.map +1 -0
- package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.d.ts +3 -0
- package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js +30 -0
- package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js.map +1 -0
- package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.d.ts +3 -0
- package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js +30 -0
- package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js.map +1 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.d.ts +3 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js +21 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -1
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.d.ts +26 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js +80 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js.map +1 -0
- package/lib/translation/translate/cloud/result/CloudTranslationFileResult.d.ts +0 -3
- package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js +0 -10
- package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js.map +1 -1
- package/lib/translation/translate/cloud/result/CloudTranslationTextResult.d.ts +3 -3
- package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js +3 -3
- package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js.map +1 -1
- package/lib/translation/translate/common/request/RetrieveFileRequest.d.ts +11 -0
- package/lib/translation/translate/common/request/RetrieveFileRequest.js +39 -0
- package/lib/translation/translate/common/request/RetrieveFileRequest.js.map +1 -0
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.d.ts +3 -0
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.js +10 -0
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -1
- package/lib/translation/translate/common/request/TranslateRequest.d.ts +3 -0
- package/lib/translation/translate/common/request/TranslateRequest.js +10 -0
- package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -1
- package/lib/translation/translate/common/result/TranslationFileResult.d.ts +6 -0
- package/lib/translation/translate/common/result/TranslationFileResult.js +20 -0
- package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -1
- package/lib/translation/translate/common/utils/TranslateFileUtil.d.ts +3 -1
- package/lib/translation/translate/common/utils/TranslateFileUtil.js +26 -53
- package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -1
- package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.d.ts +7 -0
- package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js +40 -0
- package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js.map +1 -0
- package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.d.ts +2 -2
- package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js +15 -14
- package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -1
- package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.d.ts → EdgeTranslateRequest.d.ts} +1 -1
- package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.js → EdgeTranslateRequest.js} +14 -14
- package/lib/translation/translate/edge/request/EdgeTranslateRequest.js.map +1 -0
- package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.d.ts +2 -2
- package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js +15 -14
- package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -1
- package/lib/translation/translate/edge/result/EdgeTranslationFileResult.d.ts +0 -3
- package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js +0 -10
- package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +0 -1
- package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +0 -1
- package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +0 -1
- package/lib/translation/feedback/common/model/AuditData.js.map +0 -1
- package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +0 -1
- package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +0 -3
- package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +0 -1
- package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +0 -1
- package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +0 -1
- package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +0 -1
- package/lib/translation/translate/cloud/result/CloudLanguagePairsResult.js.map +0 -1
- package/lib/translation/translate/common/api/DictionaryResponse.js.map +0 -1
- package/lib/translation/translate/common/api/LanguagePair.js.map +0 -1
- package/lib/translation/translate/common/result/DictionariesResult.d.ts +0 -7
- package/lib/translation/translate/common/result/DictionariesResult.js.map +0 -1
- package/lib/translation/translate/common/result/LanguagePairsResult.js.map +0 -1
- package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +0 -1
- package/lib/translation/translate/edge/api/EdgeLanguagePair.d.ts +0 -9
- package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +0 -1
- package/lib/translation/translate/edge/api/MemberPair.js.map +0 -1
- package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js.map +0 -1
- package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +0 -1
- package/lib/translation/translate/edge/result/EdgeLanguagePairsResult.js.map +0 -1
|
@@ -5,8 +5,8 @@ export default class ClientConfiguration {
|
|
|
5
5
|
private _credentialsConfiguration;
|
|
6
6
|
private _retryConfiguration;
|
|
7
7
|
private _product;
|
|
8
|
-
get credentialsConfiguration(): CredentialsConfiguration;
|
|
9
|
-
set credentialsConfiguration(value: CredentialsConfiguration);
|
|
8
|
+
get credentialsConfiguration(): CredentialsConfiguration | undefined;
|
|
9
|
+
set credentialsConfiguration(value: CredentialsConfiguration | undefined);
|
|
10
10
|
get retryConfiguration(): RetryConfiguration;
|
|
11
11
|
set retryConfiguration(value: RetryConfiguration);
|
|
12
12
|
get product(): Product | undefined;
|
|
@@ -3,11 +3,9 @@ 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
|
-
var CredentialsConfiguration_1 = __importDefault(require("./CredentialsConfiguration"));
|
|
7
6
|
var RetryConfiguration_1 = __importDefault(require("./RetryConfiguration"));
|
|
8
7
|
var ClientConfiguration = /** @class */ (function () {
|
|
9
8
|
function ClientConfiguration() {
|
|
10
|
-
this._credentialsConfiguration = new CredentialsConfiguration_1.default();
|
|
11
9
|
this._retryConfiguration = new RetryConfiguration_1.default();
|
|
12
10
|
}
|
|
13
11
|
Object.defineProperty(ClientConfiguration.prototype, "credentialsConfiguration", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientConfiguration.js","sourceRoot":"","sources":["../../../src/common/configurations/ClientConfiguration.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"ClientConfiguration.js","sourceRoot":"","sources":["../../../src/common/configurations/ClientConfiguration.ts"],"names":[],"mappings":";;;;;AACA,4EAAsD;AAGtD;IAAA;QAEY,wBAAmB,GAAuB,IAAI,4BAAkB,EAAE,CAAC;IA0B/E,CAAC;IAvBG,sBAAI,yDAAwB;aAA5B;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC;QAC1C,CAAC;aAED,UAA6B,KAA2C;YACpE,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC;QAC3C,CAAC;;;OAJA;IAMD,sBAAI,mDAAkB;aAAtB;YACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;aAED,UAAuB,KAAyB;YAC5C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;QACrC,CAAC;;;OAJA;IAMD,sBAAI,wCAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAA0B;YAClC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAKL,0BAAC;AAAD,CAAC,AA5BD,IA4BC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var Utils_1 = __importDefault(require("../utils/Utils"));
|
|
7
3
|
var CredentialsConfiguration = /** @class */ (function () {
|
|
8
4
|
function CredentialsConfiguration(clientId, clientSecret) {
|
|
9
|
-
this._clientId = clientId
|
|
10
|
-
this._clientSecret = clientSecret
|
|
5
|
+
this._clientId = clientId;
|
|
6
|
+
this._clientSecret = clientSecret;
|
|
11
7
|
}
|
|
12
8
|
Object.defineProperty(CredentialsConfiguration.prototype, "clientSecret", {
|
|
13
9
|
get: function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialsConfiguration.js","sourceRoot":"","sources":["../../../src/common/configurations/CredentialsConfiguration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CredentialsConfiguration.js","sourceRoot":"","sources":["../../../src/common/configurations/CredentialsConfiguration.ts"],"names":[],"mappings":";;AAAA;IAII,kCAAY,QAAiB,EAAE,YAAqB;QAChD,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACtC,CAAC;IAED,sBAAI,kDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKD,sBAAI,8CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AAvBD,IAuBC"}
|
package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.d.ts
RENAMED
|
File without changes
|
package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.js
RENAMED
|
File without changes
|
|
@@ -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
|
|
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,23 +46,21 @@ 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";
|
|
43
53
|
export declare const LW_EDGE_OVERWRITE_URL = "LW_EDGE_OVERWRITE_URL";
|
|
44
54
|
export declare const LW_CLOUD_REGION = "LW_CLOUD_REGION";
|
|
45
|
-
export declare const REACT_APP_LW_CLIENT_ID_ENV_VAR = "REACT_APP_LW_CLIENT_ID";
|
|
46
|
-
export declare const REACT_APP_LW_CLIENT_SECRET_ENV_VAR = "REACT_APP_LW_CLIENT_SECRET";
|
|
47
|
-
export declare const REACT_APP_LW_PRODUCT_ENV_VAR = "REACT_APP_LW_PRODUCT";
|
|
48
|
-
export declare const REACT_APP_LW_EDGE_OVERWRITE_URL = "REACT_APP_LW_EDGE_OVERWRITE_URL";
|
|
49
|
-
export declare const REACT_APP_LW_CLOUD_REGION = "REACT_APP_LW_CLOUD_REGION";
|
|
50
55
|
export declare const AUTHORIZATION = "Authorization";
|
|
51
56
|
export declare const ACCEPT = "Accept";
|
|
52
57
|
export declare const CONTENT_TYPE = "Content-Type";
|
|
53
58
|
export declare const CLIENT_ID = "clientId";
|
|
54
59
|
export declare const CLIENT_SECRET = "clientSecret";
|
|
55
|
-
export declare const
|
|
56
|
-
export declare const
|
|
60
|
+
export declare const TRANSLATION_TIMEOUT_ERROR_MESSAGE = "Translation timeout";
|
|
61
|
+
export declare const CONTENT_INSIGHTS_TIMEOUT_ERROR_MESSAGE = "Content insights timeout";
|
|
62
|
+
export declare const MISSING_REQUIRED_REQUEST_ID_ERROR = "Missing required requestId";
|
|
63
|
+
export declare const MISSING_REQUIRED_LANGUAGE_PAIR_ID_ERROR = "Missing required languagePairId";
|
|
57
64
|
export declare const MISSING_REQUIRED_INPUT_FILE_ERROR = "Missing required input file";
|
|
58
65
|
export declare const MISSING_REQUIRED_INPUT_DIRECTORY_ERROR = "Missing required input directory";
|
|
59
66
|
export declare const MISSING_REQUIRED_INPUT_FILES_ERROR = "Missing required input files";
|
|
@@ -64,6 +71,8 @@ export declare const REQUIRED_INPUT_FILE_OF_TYPE_OBJECT_ERROR = "Input file must
|
|
|
64
71
|
export declare const REQUIRED_INPUT_FILE_OF_TYPE_STRING_ERROR = "Input file must be a string";
|
|
65
72
|
export declare const REQUIRED_INPUT_FILES_OF_TYPE_OBJECT_ERROR = "All input files must be instances of File object";
|
|
66
73
|
export declare const REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = "Input file must be a string";
|
|
74
|
+
export declare const REQUIRED_INPUT_OF_TYPE_STRING_ERROR = "Input file must be a string";
|
|
75
|
+
export declare const INVALID_FILE_OR_DIRECTORY_PATH_ERROR = "Invalid file or directory path: ";
|
|
67
76
|
export declare const INVALID_PATH_ERROR = "Invalid file path: ";
|
|
68
77
|
export declare const INVALID_DIRECTORY_ERROR = "Invalid directory: ";
|
|
69
78
|
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.
|
|
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.
|
|
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.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.
|
|
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,25 +53,22 @@ 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';
|
|
47
60
|
exports.LW_PRODUCT_ENV_VAR = 'LW_PRODUCT';
|
|
48
61
|
exports.LW_EDGE_OVERWRITE_URL = 'LW_EDGE_OVERWRITE_URL';
|
|
49
62
|
exports.LW_CLOUD_REGION = 'LW_CLOUD_REGION';
|
|
50
|
-
// React - Environment variables keys
|
|
51
|
-
exports.REACT_APP_LW_CLIENT_ID_ENV_VAR = 'REACT_APP_LW_CLIENT_ID';
|
|
52
|
-
exports.REACT_APP_LW_CLIENT_SECRET_ENV_VAR = 'REACT_APP_LW_CLIENT_SECRET';
|
|
53
|
-
exports.REACT_APP_LW_PRODUCT_ENV_VAR = 'REACT_APP_LW_PRODUCT';
|
|
54
|
-
exports.REACT_APP_LW_EDGE_OVERWRITE_URL = 'REACT_APP_LW_EDGE_OVERWRITE_URL';
|
|
55
|
-
exports.REACT_APP_LW_CLOUD_REGION = 'REACT_APP_LW_CLOUD_REGION';
|
|
56
63
|
exports.AUTHORIZATION = 'Authorization';
|
|
57
64
|
exports.ACCEPT = 'Accept';
|
|
58
65
|
exports.CONTENT_TYPE = 'Content-Type';
|
|
59
66
|
exports.CLIENT_ID = 'clientId';
|
|
60
67
|
exports.CLIENT_SECRET = 'clientSecret';
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
68
|
+
exports.TRANSLATION_TIMEOUT_ERROR_MESSAGE = 'Translation timeout';
|
|
69
|
+
exports.CONTENT_INSIGHTS_TIMEOUT_ERROR_MESSAGE = 'Content insights timeout';
|
|
70
|
+
exports.MISSING_REQUIRED_REQUEST_ID_ERROR = 'Missing required requestId';
|
|
71
|
+
exports.MISSING_REQUIRED_LANGUAGE_PAIR_ID_ERROR = 'Missing required languagePairId';
|
|
63
72
|
exports.MISSING_REQUIRED_INPUT_FILE_ERROR = 'Missing required input file';
|
|
64
73
|
exports.MISSING_REQUIRED_INPUT_DIRECTORY_ERROR = 'Missing required input directory';
|
|
65
74
|
exports.MISSING_REQUIRED_INPUT_FILES_ERROR = 'Missing required input files';
|
|
@@ -70,6 +79,8 @@ exports.REQUIRED_INPUT_FILE_OF_TYPE_OBJECT_ERROR = 'Input file must be a File ob
|
|
|
70
79
|
exports.REQUIRED_INPUT_FILE_OF_TYPE_STRING_ERROR = 'Input file must be a string';
|
|
71
80
|
exports.REQUIRED_INPUT_FILES_OF_TYPE_OBJECT_ERROR = 'All input files must be instances of File object';
|
|
72
81
|
exports.REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = 'Input file must be a string';
|
|
82
|
+
exports.REQUIRED_INPUT_OF_TYPE_STRING_ERROR = 'Input file must be a string';
|
|
83
|
+
exports.INVALID_FILE_OR_DIRECTORY_PATH_ERROR = 'Invalid file or directory path: ';
|
|
73
84
|
exports.INVALID_PATH_ERROR = 'Invalid file path: ';
|
|
74
85
|
exports.INVALID_DIRECTORY_ERROR = 'Invalid directory: ';
|
|
75
86
|
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,
|
|
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,qBAAqB,GAAG,sBAAsB,CAAC;AAC/C,QAAA,0BAA0B,GAAG,MAAM,CAAC;AACpC,QAAA,qCAAqC,GAAG,gBAAgB,CAAC;AACzD,QAAA,oCAAoC,GAAG,gBAAgB,CAAC;AAExD,QAAA,wBAAwB,GAAG,wBAAwB,CAAC;AACpD,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,mCAAmC,GAAG,mBAAmB,CAAC;AAChE,IAAM,gCAAgC,GAAG,UAAC,aAAiC;IAC9E,OAAA,mCAA2B,GAAG,GAAG,GAAG,aAAa,GAAG,2CAAmC;AAAvF,CAAuF,CAAC;AAD/E,QAAA,gCAAgC,oCAC+C;AAE/E,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AACxC,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AACxC,QAAA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 @@
|
|
|
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"}
|
|
@@ -56,6 +56,7 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
56
56
|
var LanguageWeaverAuthentication_1 = __importDefault(require("../../auth/LanguageWeaverAuthentication"));
|
|
57
57
|
var HttpUtils_1 = __importDefault(require("../../utils/HttpUtils"));
|
|
58
58
|
var Utils_1 = __importDefault(require("../../utils/Utils"));
|
|
59
|
+
var Product_1 = require("../../constants/Product");
|
|
59
60
|
var defaultRequestConfig = {
|
|
60
61
|
hasStreamResponse: false,
|
|
61
62
|
headersNeeded: false,
|
|
@@ -281,10 +282,11 @@ var RestClient = /** @class */ (function () {
|
|
|
281
282
|
}
|
|
282
283
|
};
|
|
283
284
|
RestClient.prototype.shouldRetryRequest = function (attempt, response, url) {
|
|
285
|
+
var _a;
|
|
284
286
|
return __awaiter(this, void 0, void 0, function () {
|
|
285
287
|
var code, languageWeaverAuthentication, token, e_1;
|
|
286
|
-
return __generator(this, function (
|
|
287
|
-
switch (
|
|
288
|
+
return __generator(this, function (_b) {
|
|
289
|
+
switch (_b.label) {
|
|
288
290
|
case 0:
|
|
289
291
|
if (!this.clientConfiguration || !this.clientConfiguration.credentialsConfiguration) {
|
|
290
292
|
return [2 /*return*/, false];
|
|
@@ -296,20 +298,20 @@ var RestClient = /** @class */ (function () {
|
|
|
296
298
|
if (code >= 500 && code <= 511) {
|
|
297
299
|
return [2 /*return*/, true];
|
|
298
300
|
}
|
|
299
|
-
if (!(code === 401 && url !== TranslationConstants_1.CREDENTIALS_LOGIN_PATH)) return [3 /*break*/, 4];
|
|
300
|
-
|
|
301
|
+
if (!(code === 401 && url !== TranslationConstants_1.CREDENTIALS_LOGIN_PATH && ((_a = this.clientConfiguration) === null || _a === void 0 ? void 0 : _a.product) !== Product_1.Product.EDGE)) return [3 /*break*/, 4];
|
|
302
|
+
_b.label = 1;
|
|
301
303
|
case 1:
|
|
302
|
-
|
|
304
|
+
_b.trys.push([1, 3, , 4]);
|
|
303
305
|
languageWeaverAuthentication = new LanguageWeaverAuthentication_1.default(this);
|
|
304
306
|
return [4 /*yield*/, languageWeaverAuthentication.requestCredentialsToken(this.clientConfiguration.credentialsConfiguration)];
|
|
305
307
|
case 2:
|
|
306
|
-
token =
|
|
308
|
+
token = _b.sent();
|
|
307
309
|
if (typeof this.regenerateToken === 'function') {
|
|
308
310
|
this.regenerateToken(token);
|
|
309
311
|
}
|
|
310
312
|
return [2 /*return*/, true];
|
|
311
313
|
case 3:
|
|
312
|
-
e_1 =
|
|
314
|
+
e_1 = _b.sent();
|
|
313
315
|
return [2 /*return*/, false];
|
|
314
316
|
case 4: return [2 /*return*/, code === 401];
|
|
315
317
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RestClient.js","sourceRoot":"","sources":["../../../../src/common/external/communication/RestClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAA+D;AAC/D,6EAAmH;AAEnH,gDAA0B;AAE1B,yGAAmF;AACnF,oEAA8C;AAC9C,4DAAsC;
|
|
1
|
+
{"version":3,"file":"RestClient.js","sourceRoot":"","sources":["../../../../src/common/external/communication/RestClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAA+D;AAC/D,6EAAmH;AAEnH,gDAA0B;AAE1B,yGAAmF;AACnF,oEAA8C;AAC9C,4DAAsC;AACtC,mDAAkD;AAOlD,IAAM,oBAAoB,GAAkB;IACxC,iBAAiB,EAAE,KAAK;IACxB,aAAa,EAAE,KAAK;CACvB,CAAC;AAEF;IAMI,oBAAY,GAAW,EAAE,gBAAiC;QAAjC,iCAAA,EAAA,wBAAiC;QACtD,IAAI,CAAC,QAAQ,GAAG,mBAAS,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC9C,CAAC;IAED,sBAAI,+BAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAa;YACrB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI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,EAAC;4BAIrB,sBAAO,IAAI,KAAK,GAAG,EAAC;;;;KACvB;IACL,iBAAC;AAAD,CAAC,AArTD,IAqTC"}
|
|
@@ -13,7 +13,7 @@ export default class Utils {
|
|
|
13
13
|
static getEncodedFile(file: File | string | undefined): Promise<string>;
|
|
14
14
|
static getEncodedFileContentInBrowser(file: File | string | undefined): Promise<string>;
|
|
15
15
|
static getEncodedFileContentInNode(file: File | string | undefined): Promise<string>;
|
|
16
|
-
static
|
|
16
|
+
static getClientIdEnvVar(): string | undefined;
|
|
17
17
|
static getCloudClientSecretEnvVar(): string | undefined;
|
|
18
18
|
static getEdgeOverwriteUrlEnvVar(): string | undefined;
|
|
19
19
|
static getCloudRegionEnvVar(): string | undefined;
|
|
@@ -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
|
}
|