@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
package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.js
RENAMED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var CloudGetLinguisticOptionsRequest_1 = __importDefault(require("../../../linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest"));
|
|
3
7
|
var CloudLanguagePair = /** @class */ (function () {
|
|
4
8
|
function CloudLanguagePair() {
|
|
5
9
|
}
|
|
@@ -53,6 +57,13 @@ var CloudLanguagePair = /** @class */ (function () {
|
|
|
53
57
|
enumerable: false,
|
|
54
58
|
configurable: true
|
|
55
59
|
});
|
|
60
|
+
CloudLanguagePair.prototype.toCloudGetLinguisticOptionsRequest = function () {
|
|
61
|
+
var cloudLinguisticOptionsRequest = new CloudGetLinguisticOptionsRequest_1.default();
|
|
62
|
+
cloudLinguisticOptionsRequest.sourceLanguageId = this.sourceLanguageId;
|
|
63
|
+
cloudLinguisticOptionsRequest.targetLanguageId = this.targetLanguageId;
|
|
64
|
+
cloudLinguisticOptionsRequest.model = this.model;
|
|
65
|
+
return cloudLinguisticOptionsRequest;
|
|
66
|
+
};
|
|
56
67
|
return CloudLanguagePair;
|
|
57
68
|
}());
|
|
58
69
|
exports.default = CloudLanguagePair;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLanguagePair.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/cloud/result/CloudLanguagePair.ts"],"names":[],"mappings":";;;;;AACA,gJAA0H;AAE1H;IAAA;IAuDA,CAAC;IAhDG,sBAAI,mCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,0CAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,+CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,+CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,oCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,8DAAkC,GAAlC;QACI,IAAM,6BAA6B,GAAG,IAAI,0CAAgC,EAAE,CAAC;QAC7E,6BAA6B,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACvE,6BAA6B,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACvE,6BAA6B,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAEjD,OAAO,6BAA6B,CAAC;IACzC,CAAC;IACL,wBAAC;AAAD,CAAC,AAvDD,IAuDC"}
|
package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.js
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLanguagePairsResult.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/cloud/result/CloudLanguagePairsResult.ts"],"names":[],"mappings":";;AAEA;IAAA;IAmBA,CAAC;IAfG,sBAAI,+CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,mDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAsC;YACpD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AAnBD,IAmBC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import SelfInformation from '../../../../common/auth/domain/SelfInformation';
|
|
2
|
+
import UserSelfInformation from '../../../../common/auth/domain/UserSelfInformation';
|
|
3
|
+
import RestClient from '../../../../common/external/communication/RestClient';
|
|
4
|
+
import Token from '../../../../common/auth/domain/Token';
|
|
5
|
+
import LanguagePairsResult from '../../common/result/LanguagePairsResult';
|
|
6
|
+
import CloudLanguagePairsResult from '../result/CloudLanguagePairsResult';
|
|
7
|
+
export default class CloudLanguagePairsService {
|
|
8
|
+
private readonly _selfInfo;
|
|
9
|
+
private readonly _client;
|
|
10
|
+
private readonly _token;
|
|
11
|
+
constructor(client: RestClient, token: Token | undefined, selfInfo: SelfInformation | UserSelfInformation | undefined);
|
|
12
|
+
getLanguagePairs(): Promise<LanguagePairsResult>;
|
|
13
|
+
getCloudLanguagePairs(): Promise<CloudLanguagePairsResult>;
|
|
14
|
+
private performGetLanguagePairs;
|
|
15
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var CloudLanguagePairsResponse_1 = __importDefault(require("../api/CloudLanguagePairsResponse"));
|
|
7
|
+
var CloudLanguagePairApiModel_1 = __importDefault(require("../api/CloudLanguagePairApiModel"));
|
|
8
|
+
var CloudLanguagePairsService = /** @class */ (function () {
|
|
9
|
+
function CloudLanguagePairsService(client, token, selfInfo) {
|
|
10
|
+
this._client = client;
|
|
11
|
+
this._token = token;
|
|
12
|
+
this._selfInfo = selfInfo;
|
|
13
|
+
}
|
|
14
|
+
CloudLanguagePairsService.prototype.getLanguagePairs = function () {
|
|
15
|
+
return this.performGetLanguagePairs()
|
|
16
|
+
.then(function (response) { return Promise.resolve(response.toLanguagePairsResult()); })
|
|
17
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
18
|
+
};
|
|
19
|
+
CloudLanguagePairsService.prototype.getCloudLanguagePairs = function () {
|
|
20
|
+
return this.performGetLanguagePairs()
|
|
21
|
+
.then(function (response) { return Promise.resolve(response.toCloudLanguagePairsResult()); })
|
|
22
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
23
|
+
};
|
|
24
|
+
CloudLanguagePairsService.prototype.performGetLanguagePairs = function () {
|
|
25
|
+
var _this = this;
|
|
26
|
+
var _a;
|
|
27
|
+
return this._client
|
|
28
|
+
.requestJson(this._token, 'GET', '/v4/accounts/' + ((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId) + '/subscriptions/language-pairs')
|
|
29
|
+
.then(function (response) {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
var lpsResponse = new CloudLanguagePairsResponse_1.default();
|
|
32
|
+
lpsResponse.accountId = response.accountId || ((_a = _this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId);
|
|
33
|
+
lpsResponse.languagePairs = (_b = response === null || response === void 0 ? void 0 : response.languagePairs) === null || _b === void 0 ? void 0 : _b.map(function (lp) {
|
|
34
|
+
var cloudLanguagePair = new CloudLanguagePairApiModel_1.default();
|
|
35
|
+
Object.assign(cloudLanguagePair, lp);
|
|
36
|
+
return cloudLanguagePair;
|
|
37
|
+
});
|
|
38
|
+
return Promise.resolve(lpsResponse);
|
|
39
|
+
})
|
|
40
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
41
|
+
};
|
|
42
|
+
return CloudLanguagePairsService;
|
|
43
|
+
}());
|
|
44
|
+
exports.default = CloudLanguagePairsService;
|
|
45
|
+
//# sourceMappingURL=CloudLanguagePairsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLanguagePairsService.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/cloud/service/CloudLanguagePairsService.ts"],"names":[],"mappings":";;;;;AAMA,iGAA2E;AAC3E,+FAAyE;AAEzE;IAKI,mCACI,MAAkB,EAClB,KAAwB,EACxB,QAA2D;QAE3D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC9B,CAAC;IAEM,oDAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,uBAAuB,EAAE;aAChC,IAAI,CAAC,UAAC,QAAoC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,EAAjD,CAAiD,CAAC;aACjG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEM,yDAAqB,GAA5B;QACI,OAAO,IAAI,CAAC,uBAAuB,EAAE;aAChC,IAAI,CAAC,UAAC,QAAoC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,EAAE,CAAC,EAAtD,CAAsD,CAAC;aACtG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEO,2DAAuB,GAA/B;QAAA,iBAoBC;;QAnBG,OAAO,IAAI,CAAC,OAAO;aACd,WAAW,CACR,IAAI,CAAC,MAAM,EACX,KAAK,EACL,eAAe,IAAG,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAA,GAAG,+BAA+B,CAChF;aACA,IAAI,CAAC,UAAC,QAAQ;;YACX,IAAM,WAAW,GAAG,IAAI,oCAA0B,EAAE,CAAC;YACrD,WAAW,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,KAAI,MAAA,KAAI,CAAC,SAAS,0CAAE,SAAS,CAAA,CAAC;YACxE,WAAW,CAAC,aAAa,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAO;gBAC7D,IAAM,iBAAiB,GAAG,IAAI,mCAAyB,EAAE,CAAC;gBAC1D,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;gBAErC,OAAO,iBAAiB,CAAC;YAC7B,CAAC,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxC,CAAC,CAAC;aACD,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IACL,gCAAC;AAAD,CAAC,AAhDD,IAgDC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import GetLinguisticOptionsRequest from '../../../linguistic-options/common/request/GetLinguisticOptionsRequest';
|
|
2
|
+
export default class LanguagePair {
|
|
3
|
+
private _name;
|
|
4
|
+
private _sourceLanguageId;
|
|
5
|
+
private _targetLanguageId;
|
|
6
|
+
private _model;
|
|
7
|
+
get name(): string | undefined;
|
|
8
|
+
set name(value: string | undefined);
|
|
9
|
+
get sourceLanguageId(): string | undefined;
|
|
10
|
+
set sourceLanguageId(value: string | undefined);
|
|
11
|
+
get targetLanguageId(): string | undefined;
|
|
12
|
+
set targetLanguageId(value: string | undefined);
|
|
13
|
+
get model(): string | undefined;
|
|
14
|
+
set model(value: string | undefined);
|
|
15
|
+
toGetLinguisticOptionsRequest(): GetLinguisticOptionsRequest;
|
|
16
|
+
}
|
package/lib/translation/{translate/common/api → language-pairs/common/result}/LanguagePair.js
RENAMED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var GetLinguisticOptionsRequest_1 = __importDefault(require("../../../linguistic-options/common/request/GetLinguisticOptionsRequest"));
|
|
3
7
|
var LanguagePair = /** @class */ (function () {
|
|
4
8
|
function LanguagePair() {
|
|
5
9
|
}
|
|
@@ -43,6 +47,13 @@ var LanguagePair = /** @class */ (function () {
|
|
|
43
47
|
enumerable: false,
|
|
44
48
|
configurable: true
|
|
45
49
|
});
|
|
50
|
+
LanguagePair.prototype.toGetLinguisticOptionsRequest = function () {
|
|
51
|
+
var linguisticOptionsRequest = new GetLinguisticOptionsRequest_1.default();
|
|
52
|
+
linguisticOptionsRequest.sourceLanguageId = this.sourceLanguageId;
|
|
53
|
+
linguisticOptionsRequest.targetLanguageId = this.targetLanguageId;
|
|
54
|
+
linguisticOptionsRequest.model = this.model;
|
|
55
|
+
return linguisticOptionsRequest;
|
|
56
|
+
};
|
|
46
57
|
return LanguagePair;
|
|
47
58
|
}());
|
|
48
59
|
exports.default = LanguagePair;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguagePair.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/common/result/LanguagePair.ts"],"names":[],"mappings":";;;;;AAAA,uIAAiH;AAEjH;IAAA;IA8CA,CAAC;IAxCG,sBAAI,8BAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,0CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,0CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,+BAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,oDAA6B,GAA7B;QACI,IAAM,wBAAwB,GAAG,IAAI,qCAA2B,EAAE,CAAC;QACnE,wBAAwB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAClE,wBAAwB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAClE,wBAAwB,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAE5C,OAAO,wBAAwB,CAAC;IACpC,CAAC;IACL,mBAAC;AAAD,CAAC,AA9CD,IA8CC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguagePairsResult.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/common/result/LanguagePairsResult.ts"],"names":[],"mappings":";;AAEA;IAAA;IAUA,CAAC;IAPG,sBAAI,8CAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAiC;YAC/C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,0BAAC;AAAD,CAAC,AAVD,IAUC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import MemberPairApiModel from './MemberPairApiModel';
|
|
2
|
+
import EdgeLinguisticOptionApiModel from '../../../linguistic-options/edge/api/EdgeLinguisticOptionApiModel';
|
|
3
|
+
import EdgeLanguagePair from '../result/EdgeLanguagePair';
|
|
4
|
+
import LanguagePair from '../../common/result/LanguagePair';
|
|
5
|
+
export default class EdgeLanguagePairApiModel extends MemberPairApiModel {
|
|
6
|
+
private _memberPairs;
|
|
7
|
+
private _isChain;
|
|
8
|
+
private _linguisticOptions;
|
|
9
|
+
get memberPairs(): MemberPairApiModel[] | undefined;
|
|
10
|
+
set memberPairs(value: MemberPairApiModel[] | undefined);
|
|
11
|
+
get isChain(): boolean | undefined;
|
|
12
|
+
set isChain(value: boolean | undefined);
|
|
13
|
+
get linguisticOptions(): EdgeLinguisticOptionApiModel[] | undefined;
|
|
14
|
+
set linguisticOptions(value: EdgeLinguisticOptionApiModel[] | undefined);
|
|
15
|
+
toEdgeLanguagePair(): EdgeLanguagePair;
|
|
16
|
+
toLanguagePair(): LanguagePair;
|
|
17
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var MemberPairApiModel_1 = __importDefault(require("./MemberPairApiModel"));
|
|
22
|
+
var EdgeLanguagePair_1 = __importDefault(require("../result/EdgeLanguagePair"));
|
|
23
|
+
var LanguagePair_1 = __importDefault(require("../../common/result/LanguagePair"));
|
|
24
|
+
var EdgeLanguagePairApiModel = /** @class */ (function (_super) {
|
|
25
|
+
__extends(EdgeLanguagePairApiModel, _super);
|
|
26
|
+
function EdgeLanguagePairApiModel() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(EdgeLanguagePairApiModel.prototype, "memberPairs", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this._memberPairs;
|
|
32
|
+
},
|
|
33
|
+
set: function (value) {
|
|
34
|
+
this._memberPairs = value;
|
|
35
|
+
},
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(EdgeLanguagePairApiModel.prototype, "isChain", {
|
|
40
|
+
get: function () {
|
|
41
|
+
return this._isChain;
|
|
42
|
+
},
|
|
43
|
+
set: function (value) {
|
|
44
|
+
this._isChain = value;
|
|
45
|
+
},
|
|
46
|
+
enumerable: false,
|
|
47
|
+
configurable: true
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(EdgeLanguagePairApiModel.prototype, "linguisticOptions", {
|
|
50
|
+
get: function () {
|
|
51
|
+
return this._linguisticOptions;
|
|
52
|
+
},
|
|
53
|
+
set: function (value) {
|
|
54
|
+
this._linguisticOptions = value;
|
|
55
|
+
},
|
|
56
|
+
enumerable: false,
|
|
57
|
+
configurable: true
|
|
58
|
+
});
|
|
59
|
+
EdgeLanguagePairApiModel.prototype.toEdgeLanguagePair = function () {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
var edgeLanguagePair = new EdgeLanguagePair_1.default();
|
|
62
|
+
edgeLanguagePair.languagePairId = this.languagePairId;
|
|
63
|
+
edgeLanguagePair.sourceLanguage = this.sourceLanguage;
|
|
64
|
+
edgeLanguagePair.sourceLanguageId = this.sourceLanguageId;
|
|
65
|
+
edgeLanguagePair.targetLanguage = this.targetLanguage;
|
|
66
|
+
edgeLanguagePair.targetLanguageId = this.targetLanguageId;
|
|
67
|
+
edgeLanguagePair.domain = this.domain;
|
|
68
|
+
edgeLanguagePair.platform = this.platform;
|
|
69
|
+
edgeLanguagePair.technology = this.technology;
|
|
70
|
+
edgeLanguagePair.version = this.version;
|
|
71
|
+
edgeLanguagePair.isChain = this.isChain;
|
|
72
|
+
edgeLanguagePair.memberPairs = (_a = this.memberPairs) === null || _a === void 0 ? void 0 : _a.map(function (memberPairApiModel) { return memberPairApiModel.toMemberPair(); });
|
|
73
|
+
edgeLanguagePair.linguisticOptions = (_b = this.linguisticOptions) === null || _b === void 0 ? void 0 : _b.map(function (linguisticOptionApiModel) {
|
|
74
|
+
return linguisticOptionApiModel.toEdgeLinguisticOption();
|
|
75
|
+
});
|
|
76
|
+
return edgeLanguagePair;
|
|
77
|
+
};
|
|
78
|
+
EdgeLanguagePairApiModel.prototype.toLanguagePair = function () {
|
|
79
|
+
var languagePair = new LanguagePair_1.default();
|
|
80
|
+
languagePair.name = this.languagePairId;
|
|
81
|
+
languagePair.sourceLanguageId = this.sourceLanguageId;
|
|
82
|
+
languagePair.targetLanguageId = this.targetLanguageId;
|
|
83
|
+
languagePair.model = this.domain;
|
|
84
|
+
return languagePair;
|
|
85
|
+
};
|
|
86
|
+
return EdgeLanguagePairApiModel;
|
|
87
|
+
}(MemberPairApiModel_1.default));
|
|
88
|
+
exports.default = EdgeLanguagePairApiModel;
|
|
89
|
+
//# sourceMappingURL=EdgeLanguagePairApiModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeLanguagePairApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,4EAAsD;AAEtD,gFAA0D;AAC1D,kFAA4D;AAE5D;IAAsD,4CAAkB;IAAxE;;IA0DA,CAAC;IArDG,sBAAI,iDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAuC;YACnD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,6CAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAA0B;YAClC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,uDAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAiD;YACnE,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,qDAAkB,GAAlB;;QACI,IAAM,gBAAgB,GAAG,IAAI,0BAAgB,EAAE,CAAC;QAChD,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACtD,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACtD,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC1D,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACtD,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC1D,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACtC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC1C,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAC9C,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QACxC,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QACxC,gBAAgB,CAAC,WAAW,GAAG,MAAA,IAAI,CAAC,WAAW,0CAAE,GAAG,CAAC,UAAC,kBAAkB,IAAK,OAAA,kBAAkB,CAAC,YAAY,EAAE,EAAjC,CAAiC,CAAC,CAAC;QAChH,gBAAgB,CAAC,iBAAiB,GAAG,MAAA,IAAI,CAAC,iBAAiB,0CAAE,GAAG,CAAC,UAAC,wBAAwB;YACtF,OAAA,wBAAwB,CAAC,sBAAsB,EAAE;QAAjD,CAAiD,CACpD,CAAC;QAEF,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAED,iDAAc,GAAd;QACI,IAAM,YAAY,GAAG,IAAI,sBAAY,EAAE,CAAC;QACxC,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC;QACxC,YAAY,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtD,YAAY,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtD,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAEjC,OAAO,YAAY,CAAC;IACxB,CAAC;IACL,+BAAC;AAAD,CAAC,AA1DD,CAAsD,4BAAkB,GA0DvE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import EdgeLanguagePairApiModel from './EdgeLanguagePairApiModel';
|
|
2
|
+
import EdgeLanguagePairsResult from '../result/EdgeLanguagePairsResult';
|
|
3
|
+
import LanguagePairsResult from '../../common/result/LanguagePairsResult';
|
|
4
|
+
export default class EdgeLanguagePairsApiModel {
|
|
5
|
+
private _languagePairs;
|
|
6
|
+
get languagePairs(): EdgeLanguagePairApiModel[];
|
|
7
|
+
set languagePairs(value: EdgeLanguagePairApiModel[]);
|
|
8
|
+
toEdgeLanguagePairsResult(): EdgeLanguagePairsResult;
|
|
9
|
+
toLanguagePairsResult(): LanguagePairsResult;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var EdgeLanguagePairsResult_1 = __importDefault(require("../result/EdgeLanguagePairsResult"));
|
|
7
|
+
var LanguagePairsResult_1 = __importDefault(require("../../common/result/LanguagePairsResult"));
|
|
8
|
+
var EdgeLanguagePairsApiModel = /** @class */ (function () {
|
|
9
|
+
function EdgeLanguagePairsApiModel() {
|
|
10
|
+
this._languagePairs = [];
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(EdgeLanguagePairsApiModel.prototype, "languagePairs", {
|
|
13
|
+
get: function () {
|
|
14
|
+
return this._languagePairs;
|
|
15
|
+
},
|
|
16
|
+
set: function (value) {
|
|
17
|
+
this._languagePairs = value;
|
|
18
|
+
},
|
|
19
|
+
enumerable: false,
|
|
20
|
+
configurable: true
|
|
21
|
+
});
|
|
22
|
+
EdgeLanguagePairsApiModel.prototype.toEdgeLanguagePairsResult = function () {
|
|
23
|
+
var _a;
|
|
24
|
+
var edgeLanguagePairsResult = new EdgeLanguagePairsResult_1.default();
|
|
25
|
+
edgeLanguagePairsResult.languagePairs = ((_a = this.languagePairs) === null || _a === void 0 ? void 0 : _a.map(function (lp) { return lp.toEdgeLanguagePair(); })) || [];
|
|
26
|
+
return edgeLanguagePairsResult;
|
|
27
|
+
};
|
|
28
|
+
EdgeLanguagePairsApiModel.prototype.toLanguagePairsResult = function () {
|
|
29
|
+
var _a;
|
|
30
|
+
var languagePairsResult = new LanguagePairsResult_1.default();
|
|
31
|
+
languagePairsResult.languagePairs = ((_a = this.languagePairs) === null || _a === void 0 ? void 0 : _a.map(function (lp) { return lp.toLanguagePair(); })) || [];
|
|
32
|
+
return languagePairsResult;
|
|
33
|
+
};
|
|
34
|
+
return EdgeLanguagePairsApiModel;
|
|
35
|
+
}());
|
|
36
|
+
exports.default = EdgeLanguagePairsApiModel;
|
|
37
|
+
//# sourceMappingURL=EdgeLanguagePairsApiModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeLanguagePairsApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.ts"],"names":[],"mappings":";;;;;AACA,8FAAwE;AACxE,gGAA0E;AAE1E;IAAA;QACY,mBAAc,GAA+B,EAAE,CAAC;IAuB5D,CAAC;IArBG,sBAAI,oDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAiC;YAC/C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAMD,6DAAyB,GAAzB;;QACI,IAAM,uBAAuB,GAAG,IAAI,iCAAuB,EAAE,CAAC;QAC9D,uBAAuB,CAAC,aAAa,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,kBAAkB,EAAE,EAAvB,CAAuB,CAAC,KAAI,EAAE,CAAC;QAEvG,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,yDAAqB,GAArB;;QACI,IAAM,mBAAmB,GAAG,IAAI,6BAAmB,EAAE,CAAC;QACtD,mBAAmB,CAAC,aAAa,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,cAAc,EAAE,EAAnB,CAAmB,CAAC,KAAI,EAAE,CAAC;QAE/F,OAAO,mBAAmB,CAAC;IAC/B,CAAC;IACL,gCAAC;AAAD,CAAC,AAxBD,IAwBC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import MemberPair from '../result/MemberPair';
|
|
2
|
+
export default class MemberPairApiModel {
|
|
3
|
+
private _languagePairId;
|
|
4
|
+
private _sourceLanguage;
|
|
5
|
+
private _sourceLanguageId;
|
|
6
|
+
private _targetLanguage;
|
|
7
|
+
private _targetLanguageId;
|
|
8
|
+
private _domain;
|
|
9
|
+
private _platform;
|
|
10
|
+
private _technology;
|
|
11
|
+
private _version;
|
|
12
|
+
get languagePairId(): string | undefined;
|
|
13
|
+
set languagePairId(value: string | undefined);
|
|
14
|
+
get sourceLanguage(): string | undefined;
|
|
15
|
+
set sourceLanguage(value: string | undefined);
|
|
16
|
+
get sourceLanguageId(): string | undefined;
|
|
17
|
+
set sourceLanguageId(value: string | undefined);
|
|
18
|
+
get targetLanguage(): string | undefined;
|
|
19
|
+
set targetLanguage(value: string | undefined);
|
|
20
|
+
get targetLanguageId(): string | undefined;
|
|
21
|
+
set targetLanguageId(value: string | undefined);
|
|
22
|
+
get domain(): string | undefined;
|
|
23
|
+
set domain(value: string | undefined);
|
|
24
|
+
get platform(): string | undefined;
|
|
25
|
+
set platform(value: string | undefined);
|
|
26
|
+
get technology(): string | undefined;
|
|
27
|
+
set technology(value: string | undefined);
|
|
28
|
+
get version(): string | undefined;
|
|
29
|
+
set version(value: string | undefined);
|
|
30
|
+
toMemberPair(): MemberPair;
|
|
31
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var MemberPair_1 = __importDefault(require("../result/MemberPair"));
|
|
7
|
+
var MemberPairApiModel = /** @class */ (function () {
|
|
8
|
+
function MemberPairApiModel() {
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(MemberPairApiModel.prototype, "languagePairId", {
|
|
11
|
+
get: function () {
|
|
12
|
+
return this._languagePairId;
|
|
13
|
+
},
|
|
14
|
+
set: function (value) {
|
|
15
|
+
this._languagePairId = value;
|
|
16
|
+
},
|
|
17
|
+
enumerable: false,
|
|
18
|
+
configurable: true
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(MemberPairApiModel.prototype, "sourceLanguage", {
|
|
21
|
+
get: function () {
|
|
22
|
+
return this._sourceLanguage;
|
|
23
|
+
},
|
|
24
|
+
set: function (value) {
|
|
25
|
+
this._sourceLanguage = value;
|
|
26
|
+
},
|
|
27
|
+
enumerable: false,
|
|
28
|
+
configurable: true
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(MemberPairApiModel.prototype, "sourceLanguageId", {
|
|
31
|
+
get: function () {
|
|
32
|
+
return this._sourceLanguageId;
|
|
33
|
+
},
|
|
34
|
+
set: function (value) {
|
|
35
|
+
this._sourceLanguageId = value;
|
|
36
|
+
},
|
|
37
|
+
enumerable: false,
|
|
38
|
+
configurable: true
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(MemberPairApiModel.prototype, "targetLanguage", {
|
|
41
|
+
get: function () {
|
|
42
|
+
return this._targetLanguage;
|
|
43
|
+
},
|
|
44
|
+
set: function (value) {
|
|
45
|
+
this._targetLanguage = value;
|
|
46
|
+
},
|
|
47
|
+
enumerable: false,
|
|
48
|
+
configurable: true
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(MemberPairApiModel.prototype, "targetLanguageId", {
|
|
51
|
+
get: function () {
|
|
52
|
+
return this._targetLanguageId;
|
|
53
|
+
},
|
|
54
|
+
set: function (value) {
|
|
55
|
+
this._targetLanguageId = value;
|
|
56
|
+
},
|
|
57
|
+
enumerable: false,
|
|
58
|
+
configurable: true
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(MemberPairApiModel.prototype, "domain", {
|
|
61
|
+
get: function () {
|
|
62
|
+
return this._domain;
|
|
63
|
+
},
|
|
64
|
+
set: function (value) {
|
|
65
|
+
this._domain = value;
|
|
66
|
+
},
|
|
67
|
+
enumerable: false,
|
|
68
|
+
configurable: true
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(MemberPairApiModel.prototype, "platform", {
|
|
71
|
+
get: function () {
|
|
72
|
+
return this._platform;
|
|
73
|
+
},
|
|
74
|
+
set: function (value) {
|
|
75
|
+
this._platform = value;
|
|
76
|
+
},
|
|
77
|
+
enumerable: false,
|
|
78
|
+
configurable: true
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(MemberPairApiModel.prototype, "technology", {
|
|
81
|
+
get: function () {
|
|
82
|
+
return this._technology;
|
|
83
|
+
},
|
|
84
|
+
set: function (value) {
|
|
85
|
+
this._technology = value;
|
|
86
|
+
},
|
|
87
|
+
enumerable: false,
|
|
88
|
+
configurable: true
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(MemberPairApiModel.prototype, "version", {
|
|
91
|
+
get: function () {
|
|
92
|
+
return this._version;
|
|
93
|
+
},
|
|
94
|
+
set: function (value) {
|
|
95
|
+
this._version = value;
|
|
96
|
+
},
|
|
97
|
+
enumerable: false,
|
|
98
|
+
configurable: true
|
|
99
|
+
});
|
|
100
|
+
MemberPairApiModel.prototype.toMemberPair = function () {
|
|
101
|
+
var memberPair = new MemberPair_1.default();
|
|
102
|
+
memberPair.languagePairId = this.languagePairId;
|
|
103
|
+
memberPair.sourceLanguage = this.sourceLanguage;
|
|
104
|
+
memberPair.sourceLanguageId = this.sourceLanguageId;
|
|
105
|
+
memberPair.targetLanguage = this.targetLanguage;
|
|
106
|
+
memberPair.targetLanguageId = this.targetLanguageId;
|
|
107
|
+
memberPair.domain = this.domain;
|
|
108
|
+
memberPair.platform = this.platform;
|
|
109
|
+
memberPair.technology = this.technology;
|
|
110
|
+
memberPair.version = this.version;
|
|
111
|
+
return memberPair;
|
|
112
|
+
};
|
|
113
|
+
return MemberPairApiModel;
|
|
114
|
+
}());
|
|
115
|
+
exports.default = MemberPairApiModel;
|
|
116
|
+
//# sourceMappingURL=MemberPairApiModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberPairApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/api/MemberPairApiModel.ts"],"names":[],"mappings":";;;;;AAAA,oEAA8C;AAE9C;IAAA;IAuGA,CAAC;IAtFG,sBAAI,8CAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,8CAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,gDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,8CAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,gDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,sCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,wCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,0CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,uCAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAyB;YACjC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,yCAAY,GAAZ;QACI,IAAM,UAAU,GAAG,IAAI,oBAAU,EAAE,CAAC;QACpC,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAChD,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAChD,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACpD,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAChD,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACpD,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAChC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QACpC,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACxC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAElC,OAAO,UAAU,CAAC;IACtB,CAAC;IACL,yBAAC;AAAD,CAAC,AAvGD,IAuGC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import MemberPair from './MemberPair';
|
|
2
|
+
import EdgeLinguisticOption from '../../../linguistic-options/edge/result/EdgeLinguisticOption';
|
|
3
|
+
import EdgeGetLinguisticOptionsRequest from '../../../linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest';
|
|
4
|
+
export default class EdgeLanguagePair extends MemberPair {
|
|
5
|
+
private _memberPairs;
|
|
6
|
+
private _isChain;
|
|
7
|
+
private _linguisticOptions;
|
|
8
|
+
get memberPairs(): MemberPair[] | undefined;
|
|
9
|
+
set memberPairs(value: MemberPair[] | undefined);
|
|
10
|
+
get isChain(): boolean | undefined;
|
|
11
|
+
set isChain(value: boolean | undefined);
|
|
12
|
+
get linguisticOptions(): EdgeLinguisticOption[] | undefined;
|
|
13
|
+
set linguisticOptions(value: EdgeLinguisticOption[] | undefined);
|
|
14
|
+
toEdgeGetLinguisticOptionsRequest(): EdgeGetLinguisticOptionsRequest;
|
|
15
|
+
}
|
package/lib/translation/{translate/edge/api → language-pairs/edge/result}/EdgeLanguagePair.js
RENAMED
|
@@ -19,6 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
var MemberPair_1 = __importDefault(require("./MemberPair"));
|
|
22
|
+
var EdgeGetLinguisticOptionsRequest_1 = __importDefault(require("../../../linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest"));
|
|
22
23
|
var EdgeLanguagePair = /** @class */ (function (_super) {
|
|
23
24
|
__extends(EdgeLanguagePair, _super);
|
|
24
25
|
function EdgeLanguagePair() {
|
|
@@ -44,6 +45,25 @@ var EdgeLanguagePair = /** @class */ (function (_super) {
|
|
|
44
45
|
enumerable: false,
|
|
45
46
|
configurable: true
|
|
46
47
|
});
|
|
48
|
+
Object.defineProperty(EdgeLanguagePair.prototype, "linguisticOptions", {
|
|
49
|
+
get: function () {
|
|
50
|
+
return this._linguisticOptions;
|
|
51
|
+
},
|
|
52
|
+
set: function (value) {
|
|
53
|
+
this._linguisticOptions = value;
|
|
54
|
+
},
|
|
55
|
+
enumerable: false,
|
|
56
|
+
configurable: true
|
|
57
|
+
});
|
|
58
|
+
EdgeLanguagePair.prototype.toEdgeGetLinguisticOptionsRequest = function () {
|
|
59
|
+
var edgeLinguisticOptionsRequest = new EdgeGetLinguisticOptionsRequest_1.default();
|
|
60
|
+
edgeLinguisticOptionsRequest.sourceLanguageId = this.sourceLanguageId;
|
|
61
|
+
edgeLinguisticOptionsRequest.targetLanguageId = this.targetLanguageId;
|
|
62
|
+
edgeLinguisticOptionsRequest.model = this.domain;
|
|
63
|
+
edgeLinguisticOptionsRequest.platform = this.platform;
|
|
64
|
+
edgeLinguisticOptionsRequest.technology = this.technology;
|
|
65
|
+
return edgeLinguisticOptionsRequest;
|
|
66
|
+
};
|
|
47
67
|
return EdgeLanguagePair;
|
|
48
68
|
}(MemberPair_1.default));
|
|
49
69
|
exports.default = EdgeLanguagePair;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeLanguagePair.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/result/EdgeLanguagePair.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,4DAAsC;AAEtC,6IAAuH;AAEvH;IAA8C,oCAAU;IAAxD;;IAuCA,CAAC;IAlCG,sBAAI,yCAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAA+B;YAC3C,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,qCAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAA0B;YAClC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,+CAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAyC;YAC3D,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,4DAAiC,GAAjC;QACI,IAAM,4BAA4B,GAAG,IAAI,yCAA+B,EAAE,CAAC;QAC3E,4BAA4B,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtE,4BAA4B,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtE,4BAA4B,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QACjD,4BAA4B,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QACtD,4BAA4B,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAE1D,OAAO,4BAA4B,CAAC;IACxC,CAAC;IACL,uBAAC;AAAD,CAAC,AAvCD,CAA8C,oBAAU,GAuCvD"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeLanguagePairsResult.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/result/EdgeLanguagePairsResult.ts"],"names":[],"mappings":";;AAEA;IAAA;QACY,mBAAc,GAAuB,EAAE,CAAC;IASpD,CAAC;IAPG,sBAAI,kDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAyB;YACvC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,8BAAC;AAAD,CAAC,AAVD,IAUC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberPair.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/result/MemberPair.ts"],"names":[],"mappings":";;AAAA;IAAA;IAwFA,CAAC;IAvEG,sBAAI,sCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,sCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,wCAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,sCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,wCAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,8BAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,gCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,kCAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,+BAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAyB;YACjC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAKL,iBAAC;AAAD,CAAC,AAxFD,IAwFC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import RestClient from '../../../../common/external/communication/RestClient';
|
|
2
|
+
import Token from '../../../../common/auth/domain/Token';
|
|
3
|
+
import EdgeLanguagePairsResult from '../result/EdgeLanguagePairsResult';
|
|
4
|
+
import EdgeLanguagePair from '../result/EdgeLanguagePair';
|
|
5
|
+
import LanguagePairsResult from '../../common/result/LanguagePairsResult';
|
|
6
|
+
export default class EdgeLanguagePairsService {
|
|
7
|
+
private readonly _client;
|
|
8
|
+
private readonly _token;
|
|
9
|
+
constructor(client: RestClient, token: Token | undefined);
|
|
10
|
+
getLanguagePairForGivenData(source: string | undefined, target: string | undefined, model: string | undefined): Promise<EdgeLanguagePair>;
|
|
11
|
+
getLanguagePairs(): Promise<LanguagePairsResult>;
|
|
12
|
+
getEdgeLanguagePairs(queryParams?: Record<string, string>): Promise<EdgeLanguagePairsResult>;
|
|
13
|
+
private performGetEdgeLanguagePairs;
|
|
14
|
+
}
|