@language-weaver/lw-sdk-js 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/constants/ApprovalStatus.d.ts +1 -1
- package/lib/common/constants/ApprovalStatus.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/Format.d.ts +1 -1
- package/lib/common/constants/Format.js +4 -1
- package/lib/common/constants/Format.js.map +1 -1
- package/lib/common/constants/FormatToMimeType.js +2 -0
- package/lib/common/constants/FormatToMimeType.js.map +1 -1
- package/lib/common/constants/PdfConverter.d.ts +15 -0
- package/lib/common/constants/PdfConverter.js +22 -0
- package/lib/common/constants/PdfConverter.js.map +1 -0
- package/lib/common/constants/QualityEstimation.d.ts +6 -0
- package/lib/common/constants/QualityEstimation.js +17 -0
- package/lib/common/constants/QualityEstimation.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 +20 -3
- package/lib/common/constants/TranslationConstants.js +25 -5
- 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.d.ts +1 -1
- package/lib/common/external/communication/RestClient.js +14 -16
- package/lib/common/external/communication/RestClient.js.map +1 -1
- package/lib/common/utils/HttpUtils.d.ts +1 -0
- package/lib/common/utils/HttpUtils.js +13 -0
- package/lib/common/utils/HttpUtils.js.map +1 -1
- package/lib/common/utils/Utils.d.ts +7 -0
- package/lib/common/utils/Utils.js +127 -0
- package/lib/common/utils/Utils.js.map +1 -1
- package/lib/index.d.ts +62 -19
- package/lib/index.js +104 -20
- package/lib/index.js.map +1 -1
- package/lib/translation/common/LanguageWeaverClient.d.ts +19 -2
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +45 -4
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.js +239 -100
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -1
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +43 -6
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.js +287 -150
- 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.d.ts +4 -3
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +28 -23
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -1
- package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.d.ts +7 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.js +24 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalListUpdateRequest.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.d.ts +9 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.js +31 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApprovalUpdateRequest.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.d.ts +1 -1
- package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.js.map +1 -1
- package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js +6 -1
- package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js.map +1 -1
- package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js +4 -4
- package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js.map +1 -1
- package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.d.ts +3 -0
- package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js +10 -0
- package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js.map +1 -1
- package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.d.ts +21 -0
- package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.js +104 -0
- package/lib/translation/feedback/cloud/request/CloudCreateFeedbackRequest.js.map +1 -0
- package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.d.ts +3 -0
- package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.js +30 -0
- package/lib/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.js.map +1 -0
- package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +1 -1
- package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.d.ts +3 -0
- package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.js +30 -0
- package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest.js.map +1 -0
- package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.d.ts +15 -0
- package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.js +77 -0
- package/lib/translation/feedback/cloud/request/CloudUpdateFeedbackRequest.js.map +1 -0
- 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 +7 -3
- package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js +10 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js.map +1 -1
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.d.ts +21 -0
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +111 -1
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -1
- package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.d.ts +9 -0
- package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.js +20 -1
- package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.js.map +1 -0
- package/lib/translation/feedback/common/request/CreateFeedbackRequest.d.ts +29 -0
- package/lib/translation/feedback/common/request/CreateFeedbackRequest.js +123 -0
- package/lib/translation/feedback/common/request/CreateFeedbackRequest.js.map +1 -0
- package/lib/translation/feedback/common/request/DeleteFeedbackRequest.d.ts +5 -0
- package/lib/translation/feedback/common/request/DeleteFeedbackRequest.js +19 -0
- package/lib/translation/feedback/common/request/DeleteFeedbackRequest.js.map +1 -0
- package/lib/translation/feedback/common/request/FilterFeedbackRequest.d.ts +4 -4
- package/lib/translation/feedback/common/request/FilterFeedbackRequest.js.map +1 -1
- package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.d.ts +9 -0
- package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.js +29 -0
- package/lib/translation/feedback/common/request/UpdateFeedbackApprovalRequest.js.map +1 -0
- package/lib/translation/feedback/common/request/UpdateFeedbackRequest.d.ts +19 -0
- package/lib/translation/feedback/common/request/UpdateFeedbackRequest.js +80 -0
- package/lib/translation/feedback/common/request/UpdateFeedbackRequest.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 +3 -1
- package/lib/translation/feedback/common/result/FeedbackResult.js +8 -0
- package/lib/translation/feedback/common/result/FeedbackResult.js.map +1 -1
- package/lib/translation/feedback/common/validator/FeedbackValidator.d.ts +10 -0
- package/lib/translation/feedback/common/validator/FeedbackValidator.js +38 -0
- package/lib/translation/feedback/common/validator/FeedbackValidator.js.map +1 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +3 -2
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +43 -15
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -1
- package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.d.ts +12 -0
- package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.js +63 -0
- package/lib/translation/feedback/edge/request/EdgeCreateFeedbackRequest.js.map +1 -0
- package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.d.ts +3 -0
- package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.js +30 -0
- package/lib/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.js.map +1 -0
- package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.d.ts +3 -0
- package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.js +30 -0
- package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest.js.map +1 -0
- package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.d.ts +9 -0
- package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.js +50 -0
- package/lib/translation/feedback/edge/request/EdgeUpdateFeedbackRequest.js.map +1 -0
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +22 -0
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +100 -3
- 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 +7 -0
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.js +20 -7
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -1
- package/lib/translation/translate/common/request/TranslateFileRequest.d.ts +4 -0
- package/lib/translation/translate/common/request/TranslateFileRequest.js +10 -0
- package/lib/translation/translate/common/request/TranslateFileRequest.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/request/TranslateTextRequest.d.ts +3 -1
- package/lib/translation/translate/common/request/TranslateTextRequest.js +9 -1
- package/lib/translation/translate/common/request/TranslateTextRequest.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 -0
- package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js +16 -0
- package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -1
- package/lib/translation/translate/edge/request/EdgeTranslateRequest.d.ts +29 -0
- package/lib/translation/translate/edge/request/EdgeTranslateRequest.js +109 -0
- package/lib/translation/translate/edge/request/EdgeTranslateRequest.js.map +1 -0
- package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.d.ts +2 -0
- package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js +16 -0
- 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.d.ts +0 -5
- 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.d.ts +0 -2
- package/lib/translation/feedback/common/validators/FeedbackValidator.js +0 -9
- 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/result/EdgeDictionariesResult.js.map +0 -1
- package/lib/translation/translate/edge/result/EdgeLanguagePairsResult.js.map +0 -1
|
@@ -275,6 +275,24 @@ var Utils = /** @class */ (function () {
|
|
|
275
275
|
return TranslationConstants_1.INVALID_PATH_ERROR + filePath;
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
|
+
Utils.isDirectoryPath = function (directoryPath) {
|
|
279
|
+
try {
|
|
280
|
+
var fs = require('fs');
|
|
281
|
+
return fs.statSync(directoryPath).isDirectory();
|
|
282
|
+
}
|
|
283
|
+
catch (e) {
|
|
284
|
+
return false;
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
Utils.isFilePath = function (filePath) {
|
|
288
|
+
var fs = require('fs');
|
|
289
|
+
try {
|
|
290
|
+
return fs.statSync(filePath).isFile();
|
|
291
|
+
}
|
|
292
|
+
catch (e) {
|
|
293
|
+
return false;
|
|
294
|
+
}
|
|
295
|
+
};
|
|
278
296
|
Utils.getFileSize = function (file) {
|
|
279
297
|
if (this.isBrowser()) {
|
|
280
298
|
return file instanceof File ? file.size : 0;
|
|
@@ -284,6 +302,80 @@ var Utils = /** @class */ (function () {
|
|
|
284
302
|
return typeof file === 'string' ? fs.statSync(file).size : 0;
|
|
285
303
|
}
|
|
286
304
|
};
|
|
305
|
+
Utils.getFilesSizeForContentInsights = function (files) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
307
|
+
function calculateTotalFilesSizeForBrowser() {
|
|
308
|
+
if (Utils.isArrayOfFiles(files) && Array.isArray(files)) {
|
|
309
|
+
return getTotalFilesSizeFromFileArray(files);
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
return files instanceof File ? files.size : 0;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
function calculateTotalFilesSizeForNode(filesPath) {
|
|
316
|
+
if (Utils.isDirectoryPath(filesPath)) {
|
|
317
|
+
return getTotalFilesSizeFromDirectory(filesPath);
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
var fs = require('fs');
|
|
321
|
+
return typeof filesPath === 'string' ? fs.statSync(filesPath).size : 0;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
function getTotalFilesSizeFromDirectory(filesPath) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
326
|
+
var fs, filesFromDirectory, totalFileSize;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
switch (_a.label) {
|
|
329
|
+
case 0:
|
|
330
|
+
fs = require('fs');
|
|
331
|
+
return [4 /*yield*/, fs.promises.readdir(filesPath)];
|
|
332
|
+
case 1:
|
|
333
|
+
filesFromDirectory = _a.sent();
|
|
334
|
+
totalFileSize = filesFromDirectory.reduce(function (acc, filename) { return acc + fs.statSync(Utils.getFullPath(filesPath, filename)).size; }, 0);
|
|
335
|
+
return [2 /*return*/, totalFileSize];
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
function getTotalFilesSizeFromFileArray(arrayFiles) {
|
|
341
|
+
var totalSize = arrayFiles.reduce(function (acc, item) {
|
|
342
|
+
return acc + item.size;
|
|
343
|
+
}, 0);
|
|
344
|
+
return totalSize;
|
|
345
|
+
}
|
|
346
|
+
return __generator(this, function (_a) {
|
|
347
|
+
if (this.isBrowser()) {
|
|
348
|
+
return [2 /*return*/, calculateTotalFilesSizeForBrowser()];
|
|
349
|
+
}
|
|
350
|
+
else if (typeof files === 'string') {
|
|
351
|
+
return [2 /*return*/, calculateTotalFilesSizeForNode(files)];
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
return [2 /*return*/, 0];
|
|
355
|
+
}
|
|
356
|
+
return [2 /*return*/];
|
|
357
|
+
});
|
|
358
|
+
});
|
|
359
|
+
};
|
|
360
|
+
Utils.isArrayOfFiles = function (array) {
|
|
361
|
+
return Array.isArray(array) && array.length > 0 && array.every(function (entry) { return entry instanceof File; });
|
|
362
|
+
};
|
|
363
|
+
Utils.getInputFilesFromDirectory = function (input) {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
365
|
+
var fs, files;
|
|
366
|
+
return __generator(this, function (_a) {
|
|
367
|
+
switch (_a.label) {
|
|
368
|
+
case 0:
|
|
369
|
+
fs = require('fs');
|
|
370
|
+
return [4 /*yield*/, fs.promises.readdir(input)];
|
|
371
|
+
case 1:
|
|
372
|
+
files = _a.sent();
|
|
373
|
+
files = files.map(function (filename) { return Utils.getFullPath(input, filename); });
|
|
374
|
+
return [2 /*return*/, files];
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
};
|
|
287
379
|
Utils.getFileBasename = function (file) {
|
|
288
380
|
if (this.isBrowser()) {
|
|
289
381
|
var filename = this.getFilename(file);
|
|
@@ -313,6 +405,41 @@ var Utils = /** @class */ (function () {
|
|
|
313
405
|
return new FormData_1();
|
|
314
406
|
}
|
|
315
407
|
};
|
|
408
|
+
Utils.validateInputDirectoryForNode = function (input) {
|
|
409
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
410
|
+
var inputDirValidationError, fs, path, absolutePath, files, largeFile, e_1;
|
|
411
|
+
return __generator(this, function (_a) {
|
|
412
|
+
switch (_a.label) {
|
|
413
|
+
case 0:
|
|
414
|
+
inputDirValidationError = Utils.validateDirectoryPath(input);
|
|
415
|
+
if (inputDirValidationError) {
|
|
416
|
+
return [2 /*return*/, inputDirValidationError];
|
|
417
|
+
}
|
|
418
|
+
fs = require('fs');
|
|
419
|
+
path = require('path');
|
|
420
|
+
absolutePath = Utils.getAbsolutePath(input);
|
|
421
|
+
_a.label = 1;
|
|
422
|
+
case 1:
|
|
423
|
+
_a.trys.push([1, 3, , 4]);
|
|
424
|
+
return [4 /*yield*/, fs.promises.readdir(absolutePath)];
|
|
425
|
+
case 2:
|
|
426
|
+
files = _a.sent();
|
|
427
|
+
if (!files || !files.length) {
|
|
428
|
+
return [2 /*return*/, TranslationConstants_1.MISSING_REQUIRED_INPUT_FILES_ERROR];
|
|
429
|
+
}
|
|
430
|
+
largeFile = files.find(function (file) { return Utils.getFileSize(path.join(absolutePath, file)) > TranslationConstants_1.MAX_FILE_SIZE_LIMIT; });
|
|
431
|
+
return [2 /*return*/, largeFile ? Utils.getFileSizeExceededError(largeFile) : null];
|
|
432
|
+
case 3:
|
|
433
|
+
e_1 = _a.sent();
|
|
434
|
+
return [2 /*return*/, TranslationConstants_1.READ_FILES_FROM_DIRECTORY_FAILED_ERROR];
|
|
435
|
+
case 4: return [2 /*return*/];
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
Utils.getFileSizeExceededError = function (inputFile) {
|
|
441
|
+
return "Input file ".concat(Utils.getFilename(inputFile), " exceeds maximum permitted size of ").concat(TranslationConstants_1.MAX_FILE_SIZE_LIMIT, " bytes");
|
|
442
|
+
};
|
|
316
443
|
return Utils;
|
|
317
444
|
}());
|
|
318
445
|
exports.default = Utils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/common/utils/Utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA6C;AAE7C,sEAAqE;AACrE,0EAa2C;AAE3C,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,uBAAiB,GAAxB,UAAyB,KAAe;QACpC,OAAO,KAAK,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,KAAK;YAC3B,GAAG,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,GAAG,CAAC;QACf,CAAC,EAAE,CAAC,C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,CAAC;IACvE,CAAC;IACL,YAAC;AAAD,CAAC,AA9XD,IA8XC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -11,9 +11,11 @@ import { Regions } from './common/constants/Regions';
|
|
|
11
11
|
import { Format } from './common/constants/Format';
|
|
12
12
|
import HttpUtils from './common/utils/HttpUtils';
|
|
13
13
|
import { ApprovalStatus } from './common/constants/ApprovalStatus';
|
|
14
|
+
import { QualityEstimation } from './common/constants/QualityEstimation';
|
|
14
15
|
import { FeedbackCategory } from './common/constants/FeedbackCategory';
|
|
15
16
|
import { FeedbackComment } from './common/constants/FeedbackComment';
|
|
16
17
|
import { Order } from './common/constants/Order';
|
|
18
|
+
import { PdfConverter } from './common/constants/PdfConverter';
|
|
17
19
|
import Token from './common/auth/domain/Token';
|
|
18
20
|
import TranslateTextRequest from './translation/translate/common/request/TranslateTextRequest';
|
|
19
21
|
import CloudTranslateTextRequest from './translation/translate/cloud/request/CloudTranslateTextRequest';
|
|
@@ -33,37 +35,78 @@ import EdgeTranslateBatchFileRequest from './translation/translate/edge/request/
|
|
|
33
35
|
import TranslationBatchFileResult from './translation/translate/common/result/TranslationBatchFileResult';
|
|
34
36
|
import CloudTranslationBatchFileResult from './translation/translate/cloud/result/CloudTranslationBatchFileResult';
|
|
35
37
|
import EdgeTranslationBatchFileResult from './translation/translate/edge/result/EdgeTranslationBatchFileResult';
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
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';
|
|
50
64
|
import CloudFeedbackSortRequest from './translation/feedback/cloud/request/CloudFeedbackSortRequest';
|
|
51
65
|
import CloudFilterFeedbackRequest from './translation/feedback/cloud/request/CloudFilterFeedbackRequest';
|
|
52
66
|
import CloudFeedbackListResult from './translation/feedback/cloud/result/CloudFeedbackListResult';
|
|
53
67
|
import CloudFeedbackResult from './translation/feedback/cloud/result/CloudFeedbackResult';
|
|
54
|
-
import AuditData from './translation/feedback/common/
|
|
68
|
+
import AuditData from './translation/feedback/common/result/AuditData';
|
|
55
69
|
import FilterFeedbackRequest from './translation/feedback/common/request/FilterFeedbackRequest';
|
|
56
70
|
import FeedbackListResult from './translation/feedback/common/result/FeedbackListResult';
|
|
57
71
|
import FeedbackResult from './translation/feedback/common/result/FeedbackResult';
|
|
72
|
+
import FeedbackCommonResult from './translation/feedback/common/result/FeedbackCommonResult';
|
|
58
73
|
import EdgeFilterFeedbackRequest from './translation/feedback/edge/request/EdgeFilterFeedbackRequest';
|
|
59
74
|
import EdgeFeedbackListResult from './translation/feedback/edge/result/EdgeFeedbackListResult';
|
|
60
75
|
import EdgeFeedbackResult from './translation/feedback/edge/result/EdgeFeedbackResult';
|
|
76
|
+
import CreateFeedbackRequest from './translation/feedback/common/request/CreateFeedbackRequest';
|
|
77
|
+
import CloudCreateFeedbackRequest from './translation/feedback/cloud/request/CloudCreateFeedbackRequest';
|
|
78
|
+
import EdgeCreateFeedbackRequest from './translation/feedback/edge/request/EdgeCreateFeedbackRequest';
|
|
79
|
+
import UpdateFeedbackRequest from './translation/feedback/common/request/UpdateFeedbackRequest';
|
|
80
|
+
import CloudUpdateFeedbackRequest from './translation/feedback/cloud/request/CloudUpdateFeedbackRequest';
|
|
81
|
+
import EdgeUpdateFeedbackRequest from './translation/feedback/edge/request/EdgeUpdateFeedbackRequest';
|
|
82
|
+
import UpdateFeedbackApprovalRequest from './translation/feedback/common/request/UpdateFeedbackApprovalRequest';
|
|
83
|
+
import CloudUpdateFeedbackApprovalRequest from './translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest';
|
|
84
|
+
import EdgeUpdateFeedbackApprovalRequest from './translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest';
|
|
85
|
+
import DeleteFeedbackRequest from './translation/feedback/common/request/DeleteFeedbackRequest';
|
|
86
|
+
import CloudDeleteFeedbackRequest from './translation/feedback/cloud/request/CloudDeleteFeedbackRequest';
|
|
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';
|
|
61
102
|
export default SdkFactory;
|
|
62
103
|
export { CloudLanguageWeaverClient, EdgeLanguageWeaverClient, LanguageWeaverClient };
|
|
63
104
|
export { TokenConfiguration, CredentialsConfiguration, RetryConfiguration, ClientConfiguration };
|
|
64
|
-
export { Product, Regions, Format, HttpUtils, ApprovalStatus, FeedbackCategory, FeedbackComment, Order };
|
|
105
|
+
export { Product, Regions, Format, HttpUtils, ApprovalStatus, QualityEstimation, FeedbackCategory, FeedbackComment, Order, PdfConverter, };
|
|
65
106
|
export { Token };
|
|
66
|
-
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, };
|
|
67
108
|
export { LanguagePair, LanguagePairsResult, CloudLanguagePair, CloudLanguagePairsResult, EdgeLanguagePair, EdgeLanguagePairsResult, };
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
109
|
+
export { LinguisticOptionsResult, LinguisticOption, GetLinguisticOptionsRequest, CloudLinguisticOptionsResult, CloudLinguisticOption, CloudGetLinguisticOptionsRequest, EdgeLinguisticOptionsResult, EdgeLinguisticOption, EdgeGetLinguisticOptionsRequest, };
|
|
110
|
+
export { DictionariesResult, Dictionary, CloudDictionariesResult, CloudDictionary, EdgeDictionariesResult, EdgeDictionary, };
|
|
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.
|
|
7
|
-
exports.EdgeFeedbackResult = exports.EdgeFeedbackListResult = exports.EdgeFilterFeedbackRequest = exports.FeedbackResult = exports.FeedbackListResult = exports.FilterFeedbackRequest = exports.AuditData = exports.CloudFeedbackResult = 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"));
|
|
@@ -31,12 +31,16 @@ var HttpUtils_1 = __importDefault(require("./common/utils/HttpUtils"));
|
|
|
31
31
|
exports.HttpUtils = HttpUtils_1.default;
|
|
32
32
|
var ApprovalStatus_1 = require("./common/constants/ApprovalStatus");
|
|
33
33
|
Object.defineProperty(exports, "ApprovalStatus", { enumerable: true, get: function () { return ApprovalStatus_1.ApprovalStatus; } });
|
|
34
|
+
var QualityEstimation_1 = require("./common/constants/QualityEstimation");
|
|
35
|
+
Object.defineProperty(exports, "QualityEstimation", { enumerable: true, get: function () { return QualityEstimation_1.QualityEstimation; } });
|
|
34
36
|
var FeedbackCategory_1 = require("./common/constants/FeedbackCategory");
|
|
35
37
|
Object.defineProperty(exports, "FeedbackCategory", { enumerable: true, get: function () { return FeedbackCategory_1.FeedbackCategory; } });
|
|
36
38
|
var FeedbackComment_1 = require("./common/constants/FeedbackComment");
|
|
37
39
|
Object.defineProperty(exports, "FeedbackComment", { enumerable: true, get: function () { return FeedbackComment_1.FeedbackComment; } });
|
|
38
40
|
var Order_1 = require("./common/constants/Order");
|
|
39
41
|
Object.defineProperty(exports, "Order", { enumerable: true, get: function () { return Order_1.Order; } });
|
|
42
|
+
var PdfConverter_1 = require("./common/constants/PdfConverter");
|
|
43
|
+
Object.defineProperty(exports, "PdfConverter", { enumerable: true, get: function () { return PdfConverter_1.PdfConverter; } });
|
|
40
44
|
// Auth
|
|
41
45
|
var Token_1 = __importDefault(require("./common/auth/domain/Token"));
|
|
42
46
|
exports.Token = Token_1.default;
|
|
@@ -77,36 +81,61 @@ var CloudTranslationBatchFileResult_1 = __importDefault(require("./translation/t
|
|
|
77
81
|
exports.CloudTranslationBatchFileResult = CloudTranslationBatchFileResult_1.default;
|
|
78
82
|
var EdgeTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeTranslationBatchFileResult"));
|
|
79
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;
|
|
80
90
|
// LPs
|
|
81
|
-
var LanguagePairsResult_1 = __importDefault(require("./translation/
|
|
91
|
+
var LanguagePairsResult_1 = __importDefault(require("./translation/language-pairs/common/result/LanguagePairsResult"));
|
|
82
92
|
exports.LanguagePairsResult = LanguagePairsResult_1.default;
|
|
83
|
-
var LanguagePair_1 = __importDefault(require("./translation/
|
|
93
|
+
var LanguagePair_1 = __importDefault(require("./translation/language-pairs/common/result/LanguagePair"));
|
|
84
94
|
exports.LanguagePair = LanguagePair_1.default;
|
|
85
|
-
var CloudLanguagePairsResult_1 = __importDefault(require("./translation/
|
|
95
|
+
var CloudLanguagePairsResult_1 = __importDefault(require("./translation/language-pairs/cloud/result/CloudLanguagePairsResult"));
|
|
86
96
|
exports.CloudLanguagePairsResult = CloudLanguagePairsResult_1.default;
|
|
87
|
-
var EdgeLanguagePairsResult_1 = __importDefault(require("./translation/
|
|
97
|
+
var EdgeLanguagePairsResult_1 = __importDefault(require("./translation/language-pairs/edge/result/EdgeLanguagePairsResult"));
|
|
88
98
|
exports.EdgeLanguagePairsResult = EdgeLanguagePairsResult_1.default;
|
|
89
|
-
var CloudLanguagePair_1 = __importDefault(require("./translation/
|
|
99
|
+
var CloudLanguagePair_1 = __importDefault(require("./translation/language-pairs/cloud/result/CloudLanguagePair"));
|
|
90
100
|
exports.CloudLanguagePair = CloudLanguagePair_1.default;
|
|
91
|
-
var EdgeLanguagePair_1 = __importDefault(require("./translation/
|
|
101
|
+
var EdgeLanguagePair_1 = __importDefault(require("./translation/language-pairs/edge/result/EdgeLanguagePair"));
|
|
92
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;
|
|
93
122
|
// Dictionaries
|
|
94
|
-
var DictionariesResult_1 = __importDefault(require("./translation/
|
|
123
|
+
var DictionariesResult_1 = __importDefault(require("./translation/dictionaries/common/result/DictionariesResult"));
|
|
95
124
|
exports.DictionariesResult = DictionariesResult_1.default;
|
|
96
|
-
var
|
|
97
|
-
exports.
|
|
98
|
-
var CloudDictionariesResult_1 = __importDefault(require("./translation/
|
|
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"));
|
|
99
128
|
exports.CloudDictionariesResult = CloudDictionariesResult_1.default;
|
|
100
|
-
var
|
|
101
|
-
exports.
|
|
102
|
-
var EdgeDictionariesResult_1 = __importDefault(require("./translation/
|
|
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"));
|
|
103
132
|
exports.EdgeDictionariesResult = EdgeDictionariesResult_1.default;
|
|
104
|
-
var
|
|
105
|
-
exports.
|
|
133
|
+
var EdgeDictionary_1 = __importDefault(require("./translation/dictionaries/edge/result/EdgeDictionary"));
|
|
134
|
+
exports.EdgeDictionary = EdgeDictionary_1.default;
|
|
106
135
|
// Feedback
|
|
107
|
-
var CloudFeedbackSortCriteria_1 = require("./
|
|
136
|
+
var CloudFeedbackSortCriteria_1 = require("./common/constants/CloudFeedbackSortCriteria");
|
|
108
137
|
Object.defineProperty(exports, "CloudFeedbackSortCriteria", { enumerable: true, get: function () { return CloudFeedbackSortCriteria_1.CloudFeedbackSortCriteria; } });
|
|
109
|
-
var CloudAuditData_1 = __importDefault(require("./translation/feedback/cloud/
|
|
138
|
+
var CloudAuditData_1 = __importDefault(require("./translation/feedback/cloud/result/CloudAuditData"));
|
|
110
139
|
exports.CloudAuditData = CloudAuditData_1.default;
|
|
111
140
|
var CloudFeedbackSortRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudFeedbackSortRequest"));
|
|
112
141
|
exports.CloudFeedbackSortRequest = CloudFeedbackSortRequest_1.default;
|
|
@@ -116,7 +145,7 @@ var CloudFeedbackListResult_1 = __importDefault(require("./translation/feedback/
|
|
|
116
145
|
exports.CloudFeedbackListResult = CloudFeedbackListResult_1.default;
|
|
117
146
|
var CloudFeedbackResult_1 = __importDefault(require("./translation/feedback/cloud/result/CloudFeedbackResult"));
|
|
118
147
|
exports.CloudFeedbackResult = CloudFeedbackResult_1.default;
|
|
119
|
-
var AuditData_1 = __importDefault(require("./translation/feedback/common/
|
|
148
|
+
var AuditData_1 = __importDefault(require("./translation/feedback/common/result/AuditData"));
|
|
120
149
|
exports.AuditData = AuditData_1.default;
|
|
121
150
|
var FilterFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/FilterFeedbackRequest"));
|
|
122
151
|
exports.FilterFeedbackRequest = FilterFeedbackRequest_1.default;
|
|
@@ -124,12 +153,67 @@ var FeedbackListResult_1 = __importDefault(require("./translation/feedback/commo
|
|
|
124
153
|
exports.FeedbackListResult = FeedbackListResult_1.default;
|
|
125
154
|
var FeedbackResult_1 = __importDefault(require("./translation/feedback/common/result/FeedbackResult"));
|
|
126
155
|
exports.FeedbackResult = FeedbackResult_1.default;
|
|
156
|
+
var FeedbackCommonResult_1 = __importDefault(require("./translation/feedback/common/result/FeedbackCommonResult"));
|
|
157
|
+
exports.FeedbackCommonResult = FeedbackCommonResult_1.default;
|
|
127
158
|
var EdgeFilterFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeFilterFeedbackRequest"));
|
|
128
159
|
exports.EdgeFilterFeedbackRequest = EdgeFilterFeedbackRequest_1.default;
|
|
129
160
|
var EdgeFeedbackListResult_1 = __importDefault(require("./translation/feedback/edge/result/EdgeFeedbackListResult"));
|
|
130
161
|
exports.EdgeFeedbackListResult = EdgeFeedbackListResult_1.default;
|
|
131
162
|
var EdgeFeedbackResult_1 = __importDefault(require("./translation/feedback/edge/result/EdgeFeedbackResult"));
|
|
132
163
|
exports.EdgeFeedbackResult = EdgeFeedbackResult_1.default;
|
|
164
|
+
var CreateFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/CreateFeedbackRequest"));
|
|
165
|
+
exports.CreateFeedbackRequest = CreateFeedbackRequest_1.default;
|
|
166
|
+
var CloudCreateFeedbackRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudCreateFeedbackRequest"));
|
|
167
|
+
exports.CloudCreateFeedbackRequest = CloudCreateFeedbackRequest_1.default;
|
|
168
|
+
var EdgeCreateFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeCreateFeedbackRequest"));
|
|
169
|
+
exports.EdgeCreateFeedbackRequest = EdgeCreateFeedbackRequest_1.default;
|
|
170
|
+
var UpdateFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/UpdateFeedbackRequest"));
|
|
171
|
+
exports.UpdateFeedbackRequest = UpdateFeedbackRequest_1.default;
|
|
172
|
+
var CloudUpdateFeedbackRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudUpdateFeedbackRequest"));
|
|
173
|
+
exports.CloudUpdateFeedbackRequest = CloudUpdateFeedbackRequest_1.default;
|
|
174
|
+
var EdgeUpdateFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeUpdateFeedbackRequest"));
|
|
175
|
+
exports.EdgeUpdateFeedbackRequest = EdgeUpdateFeedbackRequest_1.default;
|
|
176
|
+
var UpdateFeedbackApprovalRequest_1 = __importDefault(require("./translation/feedback/common/request/UpdateFeedbackApprovalRequest"));
|
|
177
|
+
exports.UpdateFeedbackApprovalRequest = UpdateFeedbackApprovalRequest_1.default;
|
|
178
|
+
var CloudUpdateFeedbackApprovalRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest"));
|
|
179
|
+
exports.CloudUpdateFeedbackApprovalRequest = CloudUpdateFeedbackApprovalRequest_1.default;
|
|
180
|
+
var EdgeUpdateFeedbackApprovalRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest"));
|
|
181
|
+
exports.EdgeUpdateFeedbackApprovalRequest = EdgeUpdateFeedbackApprovalRequest_1.default;
|
|
182
|
+
var DeleteFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/DeleteFeedbackRequest"));
|
|
183
|
+
exports.DeleteFeedbackRequest = DeleteFeedbackRequest_1.default;
|
|
184
|
+
var CloudDeleteFeedbackRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudDeleteFeedbackRequest"));
|
|
185
|
+
exports.CloudDeleteFeedbackRequest = CloudDeleteFeedbackRequest_1.default;
|
|
186
|
+
var EdgeDeleteFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeDeleteFeedbackRequest"));
|
|
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;
|
|
133
217
|
/* Exports */
|
|
134
218
|
exports.default = SdkFactory_1.default;
|
|
135
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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,aAAa;AACb,+EAAyD;AACzD,mHAA6F;AAqIpF,oCArIF,mCAAyB,CAqIE;AApIlC,gHAA0F;AAoItD,mCApI7B,kCAAwB,CAoI6B;AAjI5D,iBAAiB;AACjB,8GAAwF;AAmI3D,mCAnItB,kCAAwB,CAmIsB;AAlIrD,kGAA4E;AAkIrB,6BAlIhD,4BAAkB,CAkIgD;AAjIzE,oGAA8E;AAiIH,8BAjIpE,6BAAmB,CAiIoE;AAhI9F,kG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C,+IAAyH;AAkIrH,6CAlIG,4CAAkC,CAkIH;AAjItC,4IAAsH;AAkIlH,4CAlIG,2CAAiC,CAkIH;AAhIrC,sHAAgG;AAiI5F,gCAjIG,+BAAqB,CAiIH;AAhIzB,+HAAyG;AAiIrG,qCAjIG,oCAA0B,CAiIH;AAhI9B,4HAAsG;AAiIlG,oCAjIG,mCAAyB,CAiIH;AA/H7B,mBAAmB;AACnB,iJAA2H;AAmIvH,0CAnIG,yCAA+B,CAmIH;AAlInC,yIAAmH;AAmI/G,sCAnIG,qCAA2B,CAmIH;AAlI/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,17 +2,34 @@ 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 '../
|
|
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 '../
|
|
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
|
+
import CreateFeedbackRequest from '../feedback/common/request/CreateFeedbackRequest';
|
|
12
|
+
import FeedbackResult from '../feedback/common/result/FeedbackResult';
|
|
13
|
+
import UpdateFeedbackRequest from '../feedback/common/request/UpdateFeedbackRequest';
|
|
14
|
+
import UpdateFeedbackApprovalRequest from '../feedback/common/request/UpdateFeedbackApprovalRequest';
|
|
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';
|
|
11
21
|
export interface LanguageWeaverClient {
|
|
12
22
|
translateText(translateTextRequest: TranslateTextRequest): Promise<TranslateTextResult>;
|
|
13
23
|
translateFile(translateFileRequest: TranslateFileRequest): Promise<TranslationFileResult>;
|
|
14
24
|
translateBatchFile(translateBatchFileRequest: TranslateBatchFileRequest): Promise<TranslationBatchFileResult>;
|
|
25
|
+
retrieveFileTranslation(retrieveFileRequest: RetrieveFileRequest): Promise<TranslationFileResult>;
|
|
26
|
+
getLinguisticOptions(getLinguisticOptionsRequest: GetLinguisticOptionsRequest): Promise<LinguisticOptionsResult>;
|
|
15
27
|
getLanguagePairs(): Promise<LanguagePairsResult>;
|
|
16
28
|
getDictionaries(pageNumber: number, pageSize?: number): Promise<DictionariesResult>;
|
|
17
29
|
getFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
|
|
30
|
+
createFeedback(createFeedbackRequest: CreateFeedbackRequest): Promise<FeedbackResult>;
|
|
31
|
+
updateFeedback(updateFeedbackRequest: UpdateFeedbackRequest): Promise<FeedbackResult>;
|
|
32
|
+
updateFeedbackApproval(updateFeedbackApprovalRequest: UpdateFeedbackApprovalRequest): Promise<FeedbackResult>;
|
|
33
|
+
deleteFeedback(deleteFeedbackRequest: DeleteFeedbackRequest): Promise<null>;
|
|
34
|
+
getContentInsightsForTranslations(contentInsightsRequest: ContentInsightsRequest): Promise<ContentInsightsResult>;
|
|
18
35
|
}
|