@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
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
|
|
18
|
+
var EdgeLanguagePairsApiModel_1 = __importDefault(require("../api/EdgeLanguagePairsApiModel"));
|
|
19
|
+
var EdgeLanguagePairApiModel_1 = __importDefault(require("../api/EdgeLanguagePairApiModel"));
|
|
20
|
+
var MemberPairApiModel_1 = __importDefault(require("../api/MemberPairApiModel"));
|
|
21
|
+
var EdgeLinguisticOptionApiModel_1 = __importDefault(require("../../../linguistic-options/edge/api/EdgeLinguisticOptionApiModel"));
|
|
22
|
+
var EdgeLanguagePairsService = /** @class */ (function () {
|
|
23
|
+
function EdgeLanguagePairsService(client, token) {
|
|
24
|
+
this._client = client;
|
|
25
|
+
this._token = token;
|
|
26
|
+
}
|
|
27
|
+
EdgeLanguagePairsService.prototype.getLanguagePairForGivenData = function (source, target, model) {
|
|
28
|
+
if (!source || !target || !model) {
|
|
29
|
+
return Promise.reject({ message: TranslationConstants_1.LANGUAGE_PAIR_NOT_FOUND_ERROR });
|
|
30
|
+
}
|
|
31
|
+
return this.getEdgeLanguagePairs().then(function (lps) {
|
|
32
|
+
var languagePair = lps.languagePairs.find(function (lp) { return lp.sourceLanguageId === source && lp.targetLanguageId === target && lp.domain === model; });
|
|
33
|
+
if (!languagePair) {
|
|
34
|
+
return Promise.reject({ message: TranslationConstants_1.LANGUAGE_PAIR_NOT_FOUND_ERROR });
|
|
35
|
+
}
|
|
36
|
+
return Promise.resolve(languagePair);
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
EdgeLanguagePairsService.prototype.getLanguagePairs = function () {
|
|
40
|
+
return this.performGetEdgeLanguagePairs()
|
|
41
|
+
.then(function (response) { return Promise.resolve(response.toLanguagePairsResult()); })
|
|
42
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
43
|
+
};
|
|
44
|
+
EdgeLanguagePairsService.prototype.getEdgeLanguagePairs = function (queryParams) {
|
|
45
|
+
if (queryParams === void 0) { queryParams = {}; }
|
|
46
|
+
return this.performGetEdgeLanguagePairs(queryParams)
|
|
47
|
+
.then(function (response) { return Promise.resolve(response.toEdgeLanguagePairsResult()); })
|
|
48
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
49
|
+
};
|
|
50
|
+
EdgeLanguagePairsService.prototype.performGetEdgeLanguagePairs = function (queryParams) {
|
|
51
|
+
if (queryParams === void 0) { queryParams = {}; }
|
|
52
|
+
return this._client
|
|
53
|
+
.requestJson(this._token, 'GET', TranslationConstants_1.EDGE_LANGUAGE_PAIRS_PATH, null, __assign({ chains: 'also' }, queryParams))
|
|
54
|
+
.then(function (response) {
|
|
55
|
+
var _a;
|
|
56
|
+
var lpsResponse = new EdgeLanguagePairsApiModel_1.default();
|
|
57
|
+
lpsResponse.languagePairs = (_a = response === null || response === void 0 ? void 0 : response.languagePairs) === null || _a === void 0 ? void 0 : _a.map(function (lp) {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
var edgeLanguagePair = new EdgeLanguagePairApiModel_1.default();
|
|
60
|
+
Object.assign(edgeLanguagePair, lp);
|
|
61
|
+
edgeLanguagePair.memberPairs = (_a = lp.memberPairs) === null || _a === void 0 ? void 0 : _a.map(function (mp) {
|
|
62
|
+
var memberPair = new MemberPairApiModel_1.default();
|
|
63
|
+
Object.assign(memberPair, mp);
|
|
64
|
+
return memberPair;
|
|
65
|
+
});
|
|
66
|
+
edgeLanguagePair.linguisticOptions = (_b = lp.linguisticOptions) === null || _b === void 0 ? void 0 : _b.map(function (lo) {
|
|
67
|
+
var linguisticOption = new EdgeLinguisticOptionApiModel_1.default();
|
|
68
|
+
Object.assign(linguisticOption, lo);
|
|
69
|
+
return linguisticOption;
|
|
70
|
+
});
|
|
71
|
+
return edgeLanguagePair;
|
|
72
|
+
});
|
|
73
|
+
return Promise.resolve(lpsResponse);
|
|
74
|
+
})
|
|
75
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
76
|
+
};
|
|
77
|
+
return EdgeLanguagePairsService;
|
|
78
|
+
}());
|
|
79
|
+
exports.default = EdgeLanguagePairsService;
|
|
80
|
+
//# sourceMappingURL=EdgeLanguagePairsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeLanguagePairsService.js","sourceRoot":"","sources":["../../../../../src/translation/language-pairs/edge/service/EdgeLanguagePairsService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,0FAG2D;AAC3D,+FAAyE;AAGzE,6FAAuE;AACvE,iFAA2D;AAC3D,mIAA6G;AAE7G;IAII,kCAAY,MAAkB,EAAE,KAAwB;QACpD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAEM,8DAA2B,GAAlC,UACI,MAA0B,EAC1B,MAA0B,EAC1B,KAAyB;QAEzB,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE;YAC9B,OAAO,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,oDAA6B,EAAE,CAAC,CAAC;SACrE;QAED,OAAO,IAAI,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC,UAAC,GAA4B;YACjE,IAAM,YAAY,GAAG,GAAG,CAAC,aAAa,CAAC,IAAI,CACvC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,gBAAgB,KAAK,MAAM,IAAI,EAAE,CAAC,gBAAgB,KAAK,MAAM,IAAI,EAAE,CAAC,MAAM,KAAK,KAAK,EAAvF,CAAuF,CAClG,CAAC;YAEF,IAAI,CAAC,YAAY,EAAE;gBACf,OAAO,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,oDAA6B,EAAE,CAAC,CAAC;aACrE;YAED,OAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,mDAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,2BAA2B,EAAE;aACpC,IAAI,CAAC,UAAC,QAAmC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,EAAjD,CAAiD,CAAC;aAChG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEM,uDAAoB,GAA3B,UAA4B,WAAwC;QAAxC,4BAAA,EAAA,gBAAwC;QAChE,OAAO,IAAI,CAAC,2BAA2B,CAAC,WAAW,CAAC;aAC/C,IAAI,CAAC,UAAC,QAAmC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,EAAE,CAAC,EAArD,CAAqD,CAAC;aACpG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEO,8DAA2B,GAAnC,UAAoC,WAAwC;QAAxC,4BAAA,EAAA,gBAAwC;QACxE,OAAO,IAAI,CAAC,OAAO;aACd,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,+CAAwB,EAAE,IAAI,aAAI,MAAM,EAAE,MAAM,IAAK,WAAW,EAAG;aACnG,IAAI,CAAC,UAAC,QAAQ;;YACX,IAAM,WAAW,GAAG,IAAI,mCAAyB,EAAE,CAAC;YACpD,WAAW,CAAC,aAAa,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,0CAAE,GAAG,CAAC,UAAC,EAAO;;gBAC7D,IAAM,gBAAgB,GAAG,IAAI,kCAAwB,EAAE,CAAC;gBACxD,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;gBACpC,gBAAgB,CAAC,WAAW,GAAG,MAAA,EAAE,CAAC,WAAW,0CAAE,GAAG,CAAC,UAAC,EAAO;oBACvD,IAAM,UAAU,GAAG,IAAI,4BAAkB,EAAE,CAAC;oBAC5C,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;oBAE9B,OAAO,UAAU,CAAC;gBACtB,CAAC,CAAC,CAAC;gBACH,gBAAgB,CAAC,iBAAiB,GAAG,MAAA,EAAE,CAAC,iBAAiB,0CAAE,GAAG,CAAC,UAAC,EAAO;oBACnE,IAAM,gBAAgB,GAAG,IAAI,sCAA4B,EAAE,CAAC;oBAC5D,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;oBAEpC,OAAO,gBAAgB,CAAC;gBAC5B,CAAC,CAAC,CAAC;gBAEH,OAAO,gBAAgB,CAAC;YAC5B,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,+BAAC;AAAD,CAAC,AAvED,IAuEC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import LinguisticOptionApiModel from '../../common/api/LinguisticOptionApiModel';
|
|
2
|
+
import LinguisticOption from '../../common/result/LinguisticOption';
|
|
3
|
+
import CloudLinguisticOption from '../result/CloudLinguisticOption';
|
|
4
|
+
export default class CloudLinguisticOptionApiModel extends LinguisticOptionApiModel {
|
|
5
|
+
private _name;
|
|
6
|
+
private _accountDefault;
|
|
7
|
+
get name(): string | undefined;
|
|
8
|
+
set name(value: string | undefined);
|
|
9
|
+
get accountDefault(): string | undefined;
|
|
10
|
+
set accountDefault(value: string | undefined);
|
|
11
|
+
toLinguisticOption(): LinguisticOption;
|
|
12
|
+
toCloudLinguisticOption(): CloudLinguisticOption;
|
|
13
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 LinguisticOptionApiModel_1 = __importDefault(require("../../common/api/LinguisticOptionApiModel"));
|
|
22
|
+
var LinguisticOption_1 = __importDefault(require("../../common/result/LinguisticOption"));
|
|
23
|
+
var CloudLinguisticOption_1 = __importDefault(require("../result/CloudLinguisticOption"));
|
|
24
|
+
var CloudLinguisticOptionApiModel = /** @class */ (function (_super) {
|
|
25
|
+
__extends(CloudLinguisticOptionApiModel, _super);
|
|
26
|
+
function CloudLinguisticOptionApiModel() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(CloudLinguisticOptionApiModel.prototype, "name", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this._name;
|
|
32
|
+
},
|
|
33
|
+
set: function (value) {
|
|
34
|
+
this._name = value;
|
|
35
|
+
},
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(CloudLinguisticOptionApiModel.prototype, "accountDefault", {
|
|
40
|
+
get: function () {
|
|
41
|
+
return this._accountDefault;
|
|
42
|
+
},
|
|
43
|
+
set: function (value) {
|
|
44
|
+
this._accountDefault = value;
|
|
45
|
+
},
|
|
46
|
+
enumerable: false,
|
|
47
|
+
configurable: true
|
|
48
|
+
});
|
|
49
|
+
CloudLinguisticOptionApiModel.prototype.toLinguisticOption = function () {
|
|
50
|
+
var linguisticOption = new LinguisticOption_1.default();
|
|
51
|
+
linguisticOption.id = this.id;
|
|
52
|
+
linguisticOption.values = this.values;
|
|
53
|
+
linguisticOption.systemDefault = this.systemDefault;
|
|
54
|
+
return linguisticOption;
|
|
55
|
+
};
|
|
56
|
+
CloudLinguisticOptionApiModel.prototype.toCloudLinguisticOption = function () {
|
|
57
|
+
var cloudLinguisticOption = new CloudLinguisticOption_1.default();
|
|
58
|
+
cloudLinguisticOption.id = this.id;
|
|
59
|
+
cloudLinguisticOption.values = this.values;
|
|
60
|
+
cloudLinguisticOption.systemDefault = this.systemDefault;
|
|
61
|
+
cloudLinguisticOption.name = this.name;
|
|
62
|
+
cloudLinguisticOption.accountDefault = this.accountDefault;
|
|
63
|
+
return cloudLinguisticOption;
|
|
64
|
+
};
|
|
65
|
+
return CloudLinguisticOptionApiModel;
|
|
66
|
+
}(LinguisticOptionApiModel_1.default));
|
|
67
|
+
exports.default = CloudLinguisticOptionApiModel;
|
|
68
|
+
//# sourceMappingURL=CloudLinguisticOptionApiModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLinguisticOptionApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,uGAAiF;AACjF,0FAAoE;AACpE,0FAAoE;AAEpE;IAA2D,iDAAwB;IAAnF;;IAuCA,CAAC;IAnCG,sBAAI,+CAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,yDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,0DAAkB,GAAlB;QACI,IAAM,gBAAgB,GAAG,IAAI,0BAAgB,EAAE,CAAC;QAChD,gBAAgB,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAC9B,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACtC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAEpD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAED,+DAAuB,GAAvB;QACI,IAAM,qBAAqB,GAAG,IAAI,+BAAqB,EAAE,CAAC;QAC1D,qBAAqB,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QACnC,qBAAqB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3C,qBAAqB,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACzD,qBAAqB,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvC,qBAAqB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAE3D,OAAO,qBAAqB,CAAC;IACjC,CAAC;IACL,oCAAC;AAAD,CAAC,AAvCD,CAA2D,kCAAwB,GAuClF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import CloudLinguisticOptionApiModel from './CloudLinguisticOptionApiModel';
|
|
2
|
+
export default class CloudLinguisticOptionsResponse {
|
|
3
|
+
private _linguisticOptions;
|
|
4
|
+
get linguisticOptions(): CloudLinguisticOptionApiModel[] | undefined;
|
|
5
|
+
set linguisticOptions(value: CloudLinguisticOptionApiModel[] | undefined);
|
|
6
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var CloudLinguisticOptionsResponse = /** @class */ (function () {
|
|
4
|
+
function CloudLinguisticOptionsResponse() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(CloudLinguisticOptionsResponse.prototype, "linguisticOptions", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._linguisticOptions;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._linguisticOptions = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
return CloudLinguisticOptionsResponse;
|
|
17
|
+
}());
|
|
18
|
+
exports.default = CloudLinguisticOptionsResponse;
|
|
19
|
+
//# sourceMappingURL=CloudLinguisticOptionsResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLinguisticOptionsResponse.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.ts"],"names":[],"mappings":";;AAEA;IAAA;IAUA,CAAC;IAPG,sBAAI,6DAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAkD;YACpE,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAKL,qCAAC;AAAD,CAAC,AAVD,IAUC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 GetLinguisticOptionsRequest_1 = __importDefault(require("../../common/request/GetLinguisticOptionsRequest"));
|
|
22
|
+
var CloudGetLinguisticOptionsRequest = /** @class */ (function (_super) {
|
|
23
|
+
__extends(CloudGetLinguisticOptionsRequest, _super);
|
|
24
|
+
function CloudGetLinguisticOptionsRequest() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
return CloudGetLinguisticOptionsRequest;
|
|
28
|
+
}(GetLinguisticOptionsRequest_1.default));
|
|
29
|
+
exports.default = CloudGetLinguisticOptionsRequest;
|
|
30
|
+
//# sourceMappingURL=CloudGetLinguisticOptionsRequest.js.map
|
package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudGetLinguisticOptionsRequest.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iHAA2F;AAE3F;IAA8D,oDAA2B;IAAzF;;IAA2F,CAAC;IAAD,uCAAC;AAAD,CAAC,AAA5F,CAA8D,qCAA2B,GAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import LinguisticOption from '../../common/result/LinguisticOption';
|
|
2
|
+
export default class CloudLinguisticOption extends LinguisticOption {
|
|
3
|
+
private _name;
|
|
4
|
+
private _accountDefault;
|
|
5
|
+
get name(): string | undefined;
|
|
6
|
+
set name(value: string | undefined);
|
|
7
|
+
get accountDefault(): string | undefined;
|
|
8
|
+
set accountDefault(value: string | undefined);
|
|
9
|
+
toLinguisticOption(): LinguisticOption;
|
|
10
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 LinguisticOption_1 = __importDefault(require("../../common/result/LinguisticOption"));
|
|
22
|
+
var CloudLinguisticOption = /** @class */ (function (_super) {
|
|
23
|
+
__extends(CloudLinguisticOption, _super);
|
|
24
|
+
function CloudLinguisticOption() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(CloudLinguisticOption.prototype, "name", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this._name;
|
|
30
|
+
},
|
|
31
|
+
set: function (value) {
|
|
32
|
+
this._name = value;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(CloudLinguisticOption.prototype, "accountDefault", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._accountDefault;
|
|
40
|
+
},
|
|
41
|
+
set: function (value) {
|
|
42
|
+
this._accountDefault = value;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
46
|
+
});
|
|
47
|
+
CloudLinguisticOption.prototype.toLinguisticOption = function () {
|
|
48
|
+
var linguisticOption = new LinguisticOption_1.default();
|
|
49
|
+
linguisticOption.id = this.id;
|
|
50
|
+
linguisticOption.values = this.values;
|
|
51
|
+
linguisticOption.systemDefault = this.systemDefault;
|
|
52
|
+
return linguisticOption;
|
|
53
|
+
};
|
|
54
|
+
return CloudLinguisticOption;
|
|
55
|
+
}(LinguisticOption_1.default));
|
|
56
|
+
exports.default = CloudLinguisticOption;
|
|
57
|
+
//# sourceMappingURL=CloudLinguisticOption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLinguisticOption.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/result/CloudLinguisticOption.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,0FAAoE;AAEpE;IAAmD,yCAAgB;IAAnE;;IA4BA,CAAC;IAxBG,sBAAI,uCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,iDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,kDAAkB,GAAlB;QACI,IAAM,gBAAgB,GAAG,IAAI,0BAAgB,EAAE,CAAC;QAChD,gBAAgB,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAC9B,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACtC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAEpD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACL,4BAAC;AAAD,CAAC,AA5BD,CAAmD,0BAAgB,GA4BlE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import CloudLinguisticOption from './CloudLinguisticOption';
|
|
2
|
+
export default class CloudLinguisticOptionsResult {
|
|
3
|
+
private _linguisticOptions;
|
|
4
|
+
get linguisticOptions(): CloudLinguisticOption[] | undefined;
|
|
5
|
+
set linguisticOptions(value: CloudLinguisticOption[] | undefined);
|
|
6
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var CloudLinguisticOptionsResult = /** @class */ (function () {
|
|
4
|
+
function CloudLinguisticOptionsResult() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(CloudLinguisticOptionsResult.prototype, "linguisticOptions", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._linguisticOptions;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._linguisticOptions = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
return CloudLinguisticOptionsResult;
|
|
17
|
+
}());
|
|
18
|
+
exports.default = CloudLinguisticOptionsResult;
|
|
19
|
+
//# sourceMappingURL=CloudLinguisticOptionsResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLinguisticOptionsResult.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.ts"],"names":[],"mappings":";;AAEA;IAAA;IAUA,CAAC;IAPG,sBAAI,2DAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAA0C;YAC5D,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAKL,mCAAC;AAAD,CAAC,AAVD,IAUC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 GetLinguisticOptionsRequest from '../../common/request/GetLinguisticOptionsRequest';
|
|
6
|
+
import LinguisticOptionsResult from '../../common/result/LinguisticOptionsResult';
|
|
7
|
+
import CloudLinguisticOptionsResult from '../result/CloudLinguisticOptionsResult';
|
|
8
|
+
import CloudGetLinguisticOptionsRequest from '../request/CloudGetLinguisticOptionsRequest';
|
|
9
|
+
export default class CloudLinguisticOptionsService {
|
|
10
|
+
private readonly _selfInfo;
|
|
11
|
+
private readonly _client;
|
|
12
|
+
private readonly _token;
|
|
13
|
+
private readonly _validator;
|
|
14
|
+
constructor(client: RestClient, token: Token | undefined, selfInfo: SelfInformation | UserSelfInformation | undefined);
|
|
15
|
+
getLinguisticOptionsForLanguagePair(getLinguisticOptionsRequest: GetLinguisticOptionsRequest): Promise<LinguisticOptionsResult>;
|
|
16
|
+
getCloudLinguisticOptionsForLanguagePair(getLinguisticOptionsRequest: CloudGetLinguisticOptionsRequest): Promise<CloudLinguisticOptionsResult>;
|
|
17
|
+
private getLinguisticOptionsResponse;
|
|
18
|
+
private getLanguagePairId;
|
|
19
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 LinguisticOptionsResult_1 = __importDefault(require("../../common/result/LinguisticOptionsResult"));
|
|
7
|
+
var CloudLinguisticOptionsResult_1 = __importDefault(require("../result/CloudLinguisticOptionsResult"));
|
|
8
|
+
var CloudLinguisticOptionsValidator_1 = __importDefault(require("../validator/CloudLinguisticOptionsValidator"));
|
|
9
|
+
var CloudLinguisticOptionApiModel_1 = __importDefault(require("../api/CloudLinguisticOptionApiModel"));
|
|
10
|
+
var CloudLinguisticOptionsResponse_1 = __importDefault(require("../api/CloudLinguisticOptionsResponse"));
|
|
11
|
+
var CloudLinguisticOptionsService = /** @class */ (function () {
|
|
12
|
+
function CloudLinguisticOptionsService(client, token, selfInfo) {
|
|
13
|
+
this._validator = new CloudLinguisticOptionsValidator_1.default();
|
|
14
|
+
this._client = client;
|
|
15
|
+
this._token = token;
|
|
16
|
+
this._selfInfo = selfInfo;
|
|
17
|
+
}
|
|
18
|
+
CloudLinguisticOptionsService.prototype.getLinguisticOptionsForLanguagePair = function (getLinguisticOptionsRequest) {
|
|
19
|
+
return this.getLinguisticOptionsResponse(getLinguisticOptionsRequest)
|
|
20
|
+
.then(function (response) {
|
|
21
|
+
var _a;
|
|
22
|
+
var linguisticOptionsResult = (_a = response === null || response === void 0 ? void 0 : response.linguisticOptions) === null || _a === void 0 ? void 0 : _a.map(function (linguisticOption) { return linguisticOption.toLinguisticOption(); });
|
|
23
|
+
var result = new LinguisticOptionsResult_1.default();
|
|
24
|
+
result.linguisticOptions = linguisticOptionsResult;
|
|
25
|
+
return Promise.resolve(result);
|
|
26
|
+
})
|
|
27
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
28
|
+
};
|
|
29
|
+
CloudLinguisticOptionsService.prototype.getCloudLinguisticOptionsForLanguagePair = function (getLinguisticOptionsRequest) {
|
|
30
|
+
return this.getLinguisticOptionsResponse(getLinguisticOptionsRequest)
|
|
31
|
+
.then(function (response) {
|
|
32
|
+
var _a;
|
|
33
|
+
var linguisticOptionsResult = (_a = response === null || response === void 0 ? void 0 : response.linguisticOptions) === null || _a === void 0 ? void 0 : _a.map(function (linguisticOption) { return linguisticOption.toCloudLinguisticOption(); });
|
|
34
|
+
var result = new CloudLinguisticOptionsResult_1.default();
|
|
35
|
+
result.linguisticOptions = linguisticOptionsResult;
|
|
36
|
+
return Promise.resolve(result);
|
|
37
|
+
})
|
|
38
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
39
|
+
};
|
|
40
|
+
CloudLinguisticOptionsService.prototype.getLinguisticOptionsResponse = function (getLinguisticOptionsRequest) {
|
|
41
|
+
var _a;
|
|
42
|
+
var validationError = this._validator.validateGetLinguisticOptionsRequest(getLinguisticOptionsRequest);
|
|
43
|
+
if (validationError) {
|
|
44
|
+
return Promise.reject({ message: validationError });
|
|
45
|
+
}
|
|
46
|
+
var _b = getLinguisticOptionsRequest.sourceLanguageId, sourceLanguageId = _b === void 0 ? '' : _b, _c = getLinguisticOptionsRequest.targetLanguageId, targetLanguageId = _c === void 0 ? '' : _c, _d = getLinguisticOptionsRequest.model, model = _d === void 0 ? '' : _d;
|
|
47
|
+
return this._client
|
|
48
|
+
.requestJson(this._token, 'GET', "/v4/accounts/".concat((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId, "/subscriptions/language-pairs/").concat(this.getLanguagePairId(sourceLanguageId, targetLanguageId, model), "/linguistic-options"))
|
|
49
|
+
.then(function (response) {
|
|
50
|
+
var _a;
|
|
51
|
+
var linguisticOptions = (_a = response === null || response === void 0 ? void 0 : response.linguisticOptions) === null || _a === void 0 ? void 0 : _a.map(function (linguisticOption) {
|
|
52
|
+
var cloudLinguisticOption = new CloudLinguisticOptionApiModel_1.default();
|
|
53
|
+
cloudLinguisticOption.id = linguisticOption.id;
|
|
54
|
+
cloudLinguisticOption.name = linguisticOption.name;
|
|
55
|
+
cloudLinguisticOption.values = linguisticOption.values;
|
|
56
|
+
cloudLinguisticOption.systemDefault = linguisticOption.systemDefault;
|
|
57
|
+
cloudLinguisticOption.accountDefault = linguisticOption.accountDefault;
|
|
58
|
+
return cloudLinguisticOption;
|
|
59
|
+
});
|
|
60
|
+
var result = new CloudLinguisticOptionsResponse_1.default();
|
|
61
|
+
result.linguisticOptions = linguisticOptions;
|
|
62
|
+
return Promise.resolve(result);
|
|
63
|
+
})
|
|
64
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
65
|
+
};
|
|
66
|
+
CloudLinguisticOptionsService.prototype.getLanguagePairId = function (sourceLanguageId, targetLanguageId, model) {
|
|
67
|
+
return sourceLanguageId.toLowerCase() + targetLanguageId.toLowerCase() + '_' + model.toLowerCase();
|
|
68
|
+
};
|
|
69
|
+
return CloudLinguisticOptionsService;
|
|
70
|
+
}());
|
|
71
|
+
exports.default = CloudLinguisticOptionsService;
|
|
72
|
+
//# sourceMappingURL=CloudLinguisticOptionsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLinguisticOptionsService.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 LinguisticOptionsValidator_1 = __importDefault(require("../../common/validator/LinguisticOptionsValidator"));
|
|
22
|
+
var CloudLinguisticOptionsValidator = /** @class */ (function (_super) {
|
|
23
|
+
__extends(CloudLinguisticOptionsValidator, _super);
|
|
24
|
+
function CloudLinguisticOptionsValidator() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
return CloudLinguisticOptionsValidator;
|
|
28
|
+
}(LinguisticOptionsValidator_1.default));
|
|
29
|
+
exports.default = CloudLinguisticOptionsValidator;
|
|
30
|
+
//# sourceMappingURL=CloudLinguisticOptionsValidator.js.map
|
package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLinguisticOptionsValidator.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iHAA2F;AAE3F;IAA6D,mDAA0B;IAAvF;;IAAyF,CAAC;IAAD,sCAAC;AAAD,CAAC,AAA1F,CAA6D,oCAA0B,GAAG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class LinguisticOptionApiModel {
|
|
2
|
+
private _id;
|
|
3
|
+
private _values;
|
|
4
|
+
private _systemDefault;
|
|
5
|
+
get id(): string | undefined;
|
|
6
|
+
set id(value: string | undefined);
|
|
7
|
+
get values(): string[] | undefined;
|
|
8
|
+
set values(value: string[] | undefined);
|
|
9
|
+
get systemDefault(): string | undefined;
|
|
10
|
+
set systemDefault(value: string | undefined);
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var LinguisticOptionApiModel = /** @class */ (function () {
|
|
4
|
+
function LinguisticOptionApiModel() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(LinguisticOptionApiModel.prototype, "id", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._id;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._id = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(LinguisticOptionApiModel.prototype, "values", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._values;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._values = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(LinguisticOptionApiModel.prototype, "systemDefault", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._systemDefault;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._systemDefault = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
return LinguisticOptionApiModel;
|
|
37
|
+
}());
|
|
38
|
+
exports.default = LinguisticOptionApiModel;
|
|
39
|
+
//# sourceMappingURL=LinguisticOptionApiModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinguisticOptionApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/common/api/LinguisticOptionApiModel.ts"],"names":[],"mappings":";;AAAA;IAAA;IA4BA,CAAC;IAvBG,sBAAI,wCAAE;aAAN;YACI,OAAO,IAAI,CAAC,GAAG,CAAC;QACpB,CAAC;aAED,UAAO,KAAyB;YAC5B,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC;QACrB,CAAC;;;OAJA;IAMD,sBAAI,4CAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAA2B;YAClC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,mDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAyB;YACvC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AA5BD,IA4BC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
export default class
|
|
2
|
-
private _name;
|
|
1
|
+
export default class GetLinguisticOptionsRequest {
|
|
3
2
|
private _sourceLanguageId;
|
|
4
3
|
private _targetLanguageId;
|
|
5
4
|
private _model;
|
|
6
|
-
get name(): string | undefined;
|
|
7
|
-
set name(value: string | undefined);
|
|
8
5
|
get sourceLanguageId(): string | undefined;
|
|
9
6
|
set sourceLanguageId(value: string | undefined);
|
|
10
7
|
get targetLanguageId(): string | undefined;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var GetLinguisticOptionsRequest = /** @class */ (function () {
|
|
4
|
+
function GetLinguisticOptionsRequest() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(GetLinguisticOptionsRequest.prototype, "sourceLanguageId", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._sourceLanguageId;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._sourceLanguageId = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(GetLinguisticOptionsRequest.prototype, "targetLanguageId", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._targetLanguageId;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._targetLanguageId = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(GetLinguisticOptionsRequest.prototype, "model", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._model;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._model = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
return GetLinguisticOptionsRequest;
|
|
37
|
+
}());
|
|
38
|
+
exports.default = GetLinguisticOptionsRequest;
|
|
39
|
+
//# sourceMappingURL=GetLinguisticOptionsRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetLinguisticOptionsRequest.js","sourceRoot":"","sources":["../../../../../src/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.ts"],"names":[],"mappings":";;AAAA;IAAA;IA4BA,CAAC;IAvBG,sBAAI,yDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,yDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,8CAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAKL,kCAAC;AAAD,CAAC,AA5BD,IA4BC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class LinguisticOption {
|
|
2
|
+
private _id;
|
|
3
|
+
private _values;
|
|
4
|
+
private _systemDefault;
|
|
5
|
+
get id(): string | undefined;
|
|
6
|
+
set id(value: string | undefined);
|
|
7
|
+
get values(): string[] | undefined;
|
|
8
|
+
set values(value: string[] | undefined);
|
|
9
|
+
get systemDefault(): string | undefined;
|
|
10
|
+
set systemDefault(value: string | undefined);
|
|
11
|
+
}
|