@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,29 @@
|
|
|
1
|
+
import FeedbackComment from '../../../../common/constants/FeedbackComment';
|
|
2
|
+
import CloudFeedbackApiModel from '../../cloud/api/CloudFeedbackApiModel';
|
|
3
|
+
import EdgeFeedbackApiModel from '../../edge/api/EdgeFeedbackApiModel';
|
|
4
|
+
export default class CreateFeedbackRequest {
|
|
5
|
+
private _sourceLanguageId;
|
|
6
|
+
private _targetLanguageId;
|
|
7
|
+
private _model;
|
|
8
|
+
private _sourceText;
|
|
9
|
+
private _targetText;
|
|
10
|
+
private _suggestedTranslation;
|
|
11
|
+
private _comments;
|
|
12
|
+
get sourceLanguageId(): string | undefined;
|
|
13
|
+
set sourceLanguageId(value: string | undefined);
|
|
14
|
+
get targetLanguageId(): string | undefined;
|
|
15
|
+
set targetLanguageId(value: string | undefined);
|
|
16
|
+
get model(): string | undefined;
|
|
17
|
+
set model(value: string | undefined);
|
|
18
|
+
get sourceText(): string | undefined;
|
|
19
|
+
set sourceText(value: string | undefined);
|
|
20
|
+
get targetText(): string | undefined;
|
|
21
|
+
set targetText(value: string | undefined);
|
|
22
|
+
get suggestedTranslation(): string | undefined;
|
|
23
|
+
set suggestedTranslation(value: string | undefined);
|
|
24
|
+
get comments(): string[];
|
|
25
|
+
set comments(value: string[]);
|
|
26
|
+
addComment(comment: string | FeedbackComment): CreateFeedbackRequest;
|
|
27
|
+
toCloudFeedbackApiModel(): CloudFeedbackApiModel;
|
|
28
|
+
toEdgeFeedbackApiModel(languagePairId?: string): EdgeFeedbackApiModel;
|
|
29
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
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 CloudFeedbackApiModel_1 = __importDefault(require("../../cloud/api/CloudFeedbackApiModel"));
|
|
7
|
+
var CloudTranslationFeedback_1 = __importDefault(require("../../cloud/api/CloudTranslationFeedback"));
|
|
8
|
+
var CloudFeedbackImprovement_1 = __importDefault(require("../../cloud/api/CloudFeedbackImprovement"));
|
|
9
|
+
var CloudFeedbackRating_1 = __importDefault(require("../../cloud/api/CloudFeedbackRating"));
|
|
10
|
+
var EdgeFeedbackApiModel_1 = __importDefault(require("../../edge/api/EdgeFeedbackApiModel"));
|
|
11
|
+
var CreateFeedbackRequest = /** @class */ (function () {
|
|
12
|
+
function CreateFeedbackRequest() {
|
|
13
|
+
this._comments = [];
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "sourceLanguageId", {
|
|
16
|
+
get: function () {
|
|
17
|
+
return this._sourceLanguageId;
|
|
18
|
+
},
|
|
19
|
+
set: function (value) {
|
|
20
|
+
this._sourceLanguageId = value;
|
|
21
|
+
},
|
|
22
|
+
enumerable: false,
|
|
23
|
+
configurable: true
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "targetLanguageId", {
|
|
26
|
+
get: function () {
|
|
27
|
+
return this._targetLanguageId;
|
|
28
|
+
},
|
|
29
|
+
set: function (value) {
|
|
30
|
+
this._targetLanguageId = value;
|
|
31
|
+
},
|
|
32
|
+
enumerable: false,
|
|
33
|
+
configurable: true
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "model", {
|
|
36
|
+
get: function () {
|
|
37
|
+
return this._model;
|
|
38
|
+
},
|
|
39
|
+
set: function (value) {
|
|
40
|
+
this._model = value;
|
|
41
|
+
},
|
|
42
|
+
enumerable: false,
|
|
43
|
+
configurable: true
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "sourceText", {
|
|
46
|
+
get: function () {
|
|
47
|
+
return this._sourceText;
|
|
48
|
+
},
|
|
49
|
+
set: function (value) {
|
|
50
|
+
this._sourceText = value;
|
|
51
|
+
},
|
|
52
|
+
enumerable: false,
|
|
53
|
+
configurable: true
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "targetText", {
|
|
56
|
+
get: function () {
|
|
57
|
+
return this._targetText;
|
|
58
|
+
},
|
|
59
|
+
set: function (value) {
|
|
60
|
+
this._targetText = value;
|
|
61
|
+
},
|
|
62
|
+
enumerable: false,
|
|
63
|
+
configurable: true
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "suggestedTranslation", {
|
|
66
|
+
get: function () {
|
|
67
|
+
return this._suggestedTranslation;
|
|
68
|
+
},
|
|
69
|
+
set: function (value) {
|
|
70
|
+
this._suggestedTranslation = value;
|
|
71
|
+
},
|
|
72
|
+
enumerable: false,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "comments", {
|
|
76
|
+
get: function () {
|
|
77
|
+
return this._comments;
|
|
78
|
+
},
|
|
79
|
+
set: function (value) {
|
|
80
|
+
this._comments = value;
|
|
81
|
+
},
|
|
82
|
+
enumerable: false,
|
|
83
|
+
configurable: true
|
|
84
|
+
});
|
|
85
|
+
CreateFeedbackRequest.prototype.addComment = function (comment) {
|
|
86
|
+
if (this.comments) {
|
|
87
|
+
this.comments.push(comment);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
this.comments = [comment];
|
|
91
|
+
}
|
|
92
|
+
return this;
|
|
93
|
+
};
|
|
94
|
+
CreateFeedbackRequest.prototype.toCloudFeedbackApiModel = function () {
|
|
95
|
+
var feedbackApiModel = new CloudFeedbackApiModel_1.default();
|
|
96
|
+
var translation = new CloudTranslationFeedback_1.default();
|
|
97
|
+
translation.sourceLanguageId = this.sourceLanguageId;
|
|
98
|
+
translation.targetLanguageId = this.targetLanguageId;
|
|
99
|
+
translation.model = this.model;
|
|
100
|
+
translation.sourceText = this.sourceText;
|
|
101
|
+
translation.targetMTText = this.targetText;
|
|
102
|
+
var rating = new CloudFeedbackRating_1.default();
|
|
103
|
+
rating.comments = this.comments;
|
|
104
|
+
feedbackApiModel.translation = translation;
|
|
105
|
+
feedbackApiModel.improvement = new CloudFeedbackImprovement_1.default(this.suggestedTranslation);
|
|
106
|
+
feedbackApiModel.rating = rating;
|
|
107
|
+
return feedbackApiModel;
|
|
108
|
+
};
|
|
109
|
+
CreateFeedbackRequest.prototype.toEdgeFeedbackApiModel = function (languagePairId) {
|
|
110
|
+
var feedbackApiModel = new EdgeFeedbackApiModel_1.default();
|
|
111
|
+
feedbackApiModel.languagePairId = languagePairId;
|
|
112
|
+
feedbackApiModel.sourceText = this.sourceText;
|
|
113
|
+
feedbackApiModel.machineTranslation = this.targetText;
|
|
114
|
+
feedbackApiModel.suggestedTranslation = this.suggestedTranslation;
|
|
115
|
+
if (this.comments.length > 0) {
|
|
116
|
+
feedbackApiModel.comment = this.comments[0];
|
|
117
|
+
}
|
|
118
|
+
return feedbackApiModel;
|
|
119
|
+
};
|
|
120
|
+
return CreateFeedbackRequest;
|
|
121
|
+
}());
|
|
122
|
+
exports.default = CreateFeedbackRequest;
|
|
123
|
+
//# sourceMappingURL=CreateFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/CreateFeedbackRequest.ts"],"names":[],"mappings":";;;;;AACA,gGAA0E;AAC1E,sGAAgF;AAChF,sGAAgF;AAChF,4FAAsE;AACtE,6FAAuE;AAEvE;IAAA;QAQY,cAAS,GAAa,EAAE,CAAC;IAgGrC,CAAC;IA9FG,sBAAI,mDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,mDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,wCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,sBAAI,6CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,6CAAU;aAAd;YACI,OAAO,IAA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CAAC;QAC3C,gBAAgB,CAAC,WAAW,GAAG,IAAI,kCAAwB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvF,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC;QAEjC,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAEM,sDAAsB,GAA7B,UAA8B,cAAuB;QACjD,IAAM,gBAAgB,GAAG,IAAI,8BAAoB,EAAE,CAAC;QACpD,gBAAgB,CAAC,cAAc,GAAG,cAAc,CAAC;QACjD,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAC9C,gBAAgB,CAAC,kBAAkB,GAAG,IAAI,CAAC,UAAU,CAAC;QACtD,gBAAgB,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC;QAClE,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1B,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SAC/C;QAED,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACL,4BAAC;AAAD,CAAC,AAxGD,IAwGC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var DeleteFeedbackRequest = /** @class */ (function () {
|
|
4
|
+
function DeleteFeedbackRequest() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(DeleteFeedbackRequest.prototype, "feedbackId", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._feedbackId;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._feedbackId = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
return DeleteFeedbackRequest;
|
|
17
|
+
}());
|
|
18
|
+
exports.default = DeleteFeedbackRequest;
|
|
19
|
+
//# sourceMappingURL=DeleteFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/DeleteFeedbackRequest.ts"],"names":[],"mappings":";;AAAA;IAAA;IAUA,CAAC;IAPG,sBAAI,6CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAKL,4BAAC;AAAD,CAAC,AAVD,IAUC"}
|
|
@@ -4,10 +4,10 @@ export default class FilterFeedbackRequest {
|
|
|
4
4
|
private _endDate;
|
|
5
5
|
private _approvalStatus;
|
|
6
6
|
private _user;
|
|
7
|
-
get startDate():
|
|
8
|
-
set startDate(value:
|
|
9
|
-
get endDate():
|
|
10
|
-
set endDate(value:
|
|
7
|
+
get startDate(): string | undefined;
|
|
8
|
+
set startDate(value: string | undefined);
|
|
9
|
+
get endDate(): string | undefined;
|
|
10
|
+
set endDate(value: string | undefined);
|
|
11
11
|
get approvalStatus(): ApprovalStatus | undefined;
|
|
12
12
|
set approvalStatus(value: ApprovalStatus | undefined);
|
|
13
13
|
get user(): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/FilterFeedbackRequest.ts"],"names":[],"mappings":";;AAEA;IAAA;IAsCA,CAAC;IA/BG,sBAAI,4CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,
|
|
1
|
+
{"version":3,"file":"FilterFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/FilterFeedbackRequest.ts"],"names":[],"mappings":";;AAEA;IAAA;IAsCA,CAAC;IA/BG,sBAAI,4CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,0CAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAyB;YACjC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,iDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAiC;YAChD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,uCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAKL,4BAAC;AAAD,CAAC,AAtCD,IAsCC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApprovalStatus } from '../../../../common/constants/ApprovalStatus';
|
|
2
|
+
export default class UpdateFeedbackApprovalRequest {
|
|
3
|
+
private _feedbackId;
|
|
4
|
+
private _approvalStatus;
|
|
5
|
+
get feedbackId(): string | undefined;
|
|
6
|
+
set feedbackId(value: string | undefined);
|
|
7
|
+
get approvalStatus(): ApprovalStatus | undefined;
|
|
8
|
+
set approvalStatus(value: ApprovalStatus | undefined);
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var UpdateFeedbackApprovalRequest = /** @class */ (function () {
|
|
4
|
+
function UpdateFeedbackApprovalRequest() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(UpdateFeedbackApprovalRequest.prototype, "feedbackId", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._feedbackId;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._feedbackId = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(UpdateFeedbackApprovalRequest.prototype, "approvalStatus", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._approvalStatus;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._approvalStatus = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
return UpdateFeedbackApprovalRequest;
|
|
27
|
+
}());
|
|
28
|
+
exports.default = UpdateFeedbackApprovalRequest;
|
|
29
|
+
//# sourceMappingURL=UpdateFeedbackApprovalRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateFeedbackApprovalRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/UpdateFeedbackApprovalRequest.ts"],"names":[],"mappings":";;AAEA;IAAA;IAmBA,CAAC;IAfG,sBAAI,qDAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,yDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAiC;YAChD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAKL,oCAAC;AAAD,CAAC,AAnBD,IAmBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import FeedbackComment from '../../../../common/constants/FeedbackComment';
|
|
2
|
+
import CloudFeedbackApiModel from '../../cloud/api/CloudFeedbackApiModel';
|
|
3
|
+
import EdgeFeedbackApiModel from '../../edge/api/EdgeFeedbackApiModel';
|
|
4
|
+
export default class UpdateFeedbackRequest {
|
|
5
|
+
private _feedbackId;
|
|
6
|
+
private _suggestedTranslation;
|
|
7
|
+
private _comments;
|
|
8
|
+
get feedbackId(): string | undefined;
|
|
9
|
+
set feedbackId(value: string | undefined);
|
|
10
|
+
get suggestedTranslation(): string | undefined;
|
|
11
|
+
set suggestedTranslation(value: string | undefined);
|
|
12
|
+
get comments(): string[];
|
|
13
|
+
set comments(value: string[]);
|
|
14
|
+
setComment(comment: string | FeedbackComment): UpdateFeedbackRequest;
|
|
15
|
+
clearComments(): this;
|
|
16
|
+
addComment(comment: FeedbackComment | string): UpdateFeedbackRequest;
|
|
17
|
+
toCloudFeedbackApiModel(): CloudFeedbackApiModel;
|
|
18
|
+
toEdgeFeedbackApiModel(): EdgeFeedbackApiModel;
|
|
19
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 CloudFeedbackApiModel_1 = __importDefault(require("../../cloud/api/CloudFeedbackApiModel"));
|
|
7
|
+
var CloudFeedbackRating_1 = __importDefault(require("../../cloud/api/CloudFeedbackRating"));
|
|
8
|
+
var CloudFeedbackImprovement_1 = __importDefault(require("../../cloud/api/CloudFeedbackImprovement"));
|
|
9
|
+
var EdgeFeedbackApiModel_1 = __importDefault(require("../../edge/api/EdgeFeedbackApiModel"));
|
|
10
|
+
var UpdateFeedbackRequest = /** @class */ (function () {
|
|
11
|
+
function UpdateFeedbackRequest() {
|
|
12
|
+
this._comments = [];
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(UpdateFeedbackRequest.prototype, "feedbackId", {
|
|
15
|
+
get: function () {
|
|
16
|
+
return this._feedbackId;
|
|
17
|
+
},
|
|
18
|
+
set: function (value) {
|
|
19
|
+
this._feedbackId = value;
|
|
20
|
+
},
|
|
21
|
+
enumerable: false,
|
|
22
|
+
configurable: true
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(UpdateFeedbackRequest.prototype, "suggestedTranslation", {
|
|
25
|
+
get: function () {
|
|
26
|
+
return this._suggestedTranslation;
|
|
27
|
+
},
|
|
28
|
+
set: function (value) {
|
|
29
|
+
this._suggestedTranslation = value;
|
|
30
|
+
},
|
|
31
|
+
enumerable: false,
|
|
32
|
+
configurable: true
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(UpdateFeedbackRequest.prototype, "comments", {
|
|
35
|
+
get: function () {
|
|
36
|
+
return this._comments;
|
|
37
|
+
},
|
|
38
|
+
set: function (value) {
|
|
39
|
+
this._comments = value;
|
|
40
|
+
},
|
|
41
|
+
enumerable: false,
|
|
42
|
+
configurable: true
|
|
43
|
+
});
|
|
44
|
+
UpdateFeedbackRequest.prototype.setComment = function (comment) {
|
|
45
|
+
this.comments = [comment];
|
|
46
|
+
return this;
|
|
47
|
+
};
|
|
48
|
+
UpdateFeedbackRequest.prototype.clearComments = function () {
|
|
49
|
+
this.comments = [];
|
|
50
|
+
return this;
|
|
51
|
+
};
|
|
52
|
+
UpdateFeedbackRequest.prototype.addComment = function (comment) {
|
|
53
|
+
if (this.comments) {
|
|
54
|
+
this.comments.push(comment);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.comments = [comment];
|
|
58
|
+
}
|
|
59
|
+
return this;
|
|
60
|
+
};
|
|
61
|
+
UpdateFeedbackRequest.prototype.toCloudFeedbackApiModel = function () {
|
|
62
|
+
var feedbackApiModel = new CloudFeedbackApiModel_1.default();
|
|
63
|
+
var rating = new CloudFeedbackRating_1.default();
|
|
64
|
+
rating.comments = this.comments;
|
|
65
|
+
feedbackApiModel.rating = rating;
|
|
66
|
+
feedbackApiModel.improvement = new CloudFeedbackImprovement_1.default(this.suggestedTranslation);
|
|
67
|
+
return feedbackApiModel;
|
|
68
|
+
};
|
|
69
|
+
UpdateFeedbackRequest.prototype.toEdgeFeedbackApiModel = function () {
|
|
70
|
+
var feedbackApiModel = new EdgeFeedbackApiModel_1.default();
|
|
71
|
+
feedbackApiModel.suggestedTranslation = this.suggestedTranslation;
|
|
72
|
+
if (this.comments.length > 0) {
|
|
73
|
+
feedbackApiModel.comment = this.comments[0];
|
|
74
|
+
}
|
|
75
|
+
return feedbackApiModel;
|
|
76
|
+
};
|
|
77
|
+
return UpdateFeedbackRequest;
|
|
78
|
+
}());
|
|
79
|
+
exports.default = UpdateFeedbackRequest;
|
|
80
|
+
//# sourceMappingURL=UpdateFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/UpdateFeedbackRequest.ts"],"names":[],"mappings":";;;;;AACA,gGAA0E;AAC1E,4FAAsE;AACtE,sGAAgF;AAChF,6FAAuE;AAEvE;IAAA;QAGY,cAAS,GAAa,EAAE,CAAC;IAiErC,CAAC;IA/DG,sBAAI,6CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,uDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAAyB;YAC9C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAMD,sBAAI,2CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAe;YACxB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMM,0CAAU,GAAjB,UAAkB,OAAiC;QAC/C,IAAI,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,6CAAa,GAApB;QACI,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0CAAU,GAAjB,UAAkB,OAAiC;QAC/C,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC/B;aAAM;YACH,IAAI,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC,CAAC;SAC7B;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,uDAAuB,GAA9B;QACI,IAAM,gBAAgB,GAAG,IAAI,+BAAqB,EAAE,CAAC;QACrD,IAAM,MAAM,GAAG,IAAI,6BAAmB,EAAE,CAAC;QACzC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAChC,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC;QACjC,gBAAgB,CAAC,WAAW,GAAG,IAAI,kCAAwB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAEvF,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAEM,sDAAsB,GAA7B;QACI,IAAM,gBAAgB,GAAG,IAAI,8BAAoB,EAAE,CAAC;QACpD,gBAAgB,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC;QAClE,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1B,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SAC/C;QAED,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACL,4BAAC;AAAD,CAAC,AApED,IAoEC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditData.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/result/AuditData.ts"],"names":[],"mappings":";;AAAA;IAAA;IAqCA,CAAC;IA/BG,sBAAI,yCAAkB;aAAtB;YACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;aAED,UAAuB,KAAyB;YAC5C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;QACrC,CAAC;;;OAJA;IAMD,sBAAI,mCAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,8CAAuB;aAA3B;YACI,OAAO,IAAI,CAAC,wBAAwB,CAAC;QACzC,CAAC;aAED,UAA4B,KAAyB;YACjD,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC;QAC1C,CAAC;;;OAJA;IAMD,sBAAI,qCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAKL,gBAAC;AAAD,CAAC,AArCD,IAqCC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AuditData from '
|
|
1
|
+
import AuditData from './AuditData';
|
|
2
2
|
import FeedbackCommonResult from './FeedbackCommonResult';
|
|
3
3
|
import FeedbackComment from '../../../../common/constants/FeedbackComment';
|
|
4
4
|
export default class FeedbackResult extends FeedbackCommonResult {
|
|
@@ -8,5 +8,7 @@ export default class FeedbackResult extends FeedbackCommonResult {
|
|
|
8
8
|
set feedbackAuditData(value: AuditData | undefined);
|
|
9
9
|
get approvalAuditData(): AuditData | undefined;
|
|
10
10
|
set approvalAuditData(value: AuditData | undefined);
|
|
11
|
+
setComment(comment: string | FeedbackComment): FeedbackResult;
|
|
12
|
+
clearComments(): FeedbackResult;
|
|
11
13
|
addComment(comment: FeedbackComment | string): FeedbackResult;
|
|
12
14
|
}
|
|
@@ -44,6 +44,14 @@ var FeedbackResult = /** @class */ (function (_super) {
|
|
|
44
44
|
enumerable: false,
|
|
45
45
|
configurable: true
|
|
46
46
|
});
|
|
47
|
+
FeedbackResult.prototype.setComment = function (comment) {
|
|
48
|
+
this.comments = [comment];
|
|
49
|
+
return this;
|
|
50
|
+
};
|
|
51
|
+
FeedbackResult.prototype.clearComments = function () {
|
|
52
|
+
this.comments = [];
|
|
53
|
+
return this;
|
|
54
|
+
};
|
|
47
55
|
FeedbackResult.prototype.addComment = function (comment) {
|
|
48
56
|
if (this.comments) {
|
|
49
57
|
this.comments.push(comment);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedbackResult.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/result/FeedbackResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,gFAA0D;AAG1D;IAA4C,kCAAoB;IAAhE;;
|
|
1
|
+
{"version":3,"file":"FeedbackResult.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/result/FeedbackResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,gFAA0D;AAG1D;IAA4C,kCAAoB;IAAhE;;IAsCA,CAAC;IAlCG,sBAAI,6CAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAA4B;YAC9C,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,sBAAI,6CAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAA4B;YAC9C,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMM,mCAAU,GAAjB,UAAkB,OAAiC;QAC/C,IAAI,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,sCAAa,GAApB;QACI,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,mCAAU,GAAjB,UAAkB,OAAiC;QAC/C,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC/B;aAAM;YACH,IAAI,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,qBAAC;AAAD,CAAC,AAtCD,CAA4C,8BAAoB,GAsC/D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import CreateFeedbackRequest from '../request/CreateFeedbackRequest';
|
|
2
|
+
import UpdateFeedbackRequest from '../request/UpdateFeedbackRequest';
|
|
3
|
+
import UpdateFeedbackApprovalRequest from '../request/UpdateFeedbackApprovalRequest';
|
|
4
|
+
import DeleteFeedbackRequest from '../request/DeleteFeedbackRequest';
|
|
5
|
+
export default class FeedbackValidator {
|
|
6
|
+
validateUpdateFeedbackRequest(updateFeedbackRequest: UpdateFeedbackRequest): string | null;
|
|
7
|
+
validateSingleComment(feedbackRequest: CreateFeedbackRequest | UpdateFeedbackRequest): string | null;
|
|
8
|
+
validateUpdateFeedbackApprovalRequest(feedbackRequest: UpdateFeedbackApprovalRequest): "feedbackId is required for update approval operations" | "approvalStatus is required for update approval operations" | null;
|
|
9
|
+
validateDeleteFeedbackRequest(feedbackRequest: DeleteFeedbackRequest): "feedbackId is required for delete operations" | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var FeedbackValidator = /** @class */ (function () {
|
|
4
|
+
function FeedbackValidator() {
|
|
5
|
+
}
|
|
6
|
+
FeedbackValidator.prototype.validateUpdateFeedbackRequest = function (updateFeedbackRequest) {
|
|
7
|
+
if (!updateFeedbackRequest.feedbackId) {
|
|
8
|
+
return 'feedbackId is required for update operations';
|
|
9
|
+
}
|
|
10
|
+
return this.validateSingleComment(updateFeedbackRequest);
|
|
11
|
+
};
|
|
12
|
+
FeedbackValidator.prototype.validateSingleComment = function (feedbackRequest) {
|
|
13
|
+
var comments = feedbackRequest.comments;
|
|
14
|
+
if (comments && comments.length > 1) {
|
|
15
|
+
return ('Multiple feedback comments are supported only for CLOUD specific implementation. ' +
|
|
16
|
+
'Please provide a single comment or use CloudLanguageWeaverClient.');
|
|
17
|
+
}
|
|
18
|
+
return null;
|
|
19
|
+
};
|
|
20
|
+
FeedbackValidator.prototype.validateUpdateFeedbackApprovalRequest = function (feedbackRequest) {
|
|
21
|
+
if (!feedbackRequest.feedbackId) {
|
|
22
|
+
return 'feedbackId is required for update approval operations';
|
|
23
|
+
}
|
|
24
|
+
if (!feedbackRequest.approvalStatus) {
|
|
25
|
+
return 'approvalStatus is required for update approval operations';
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
};
|
|
29
|
+
FeedbackValidator.prototype.validateDeleteFeedbackRequest = function (feedbackRequest) {
|
|
30
|
+
if (!feedbackRequest.feedbackId) {
|
|
31
|
+
return 'feedbackId is required for delete operations';
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
};
|
|
35
|
+
return FeedbackValidator;
|
|
36
|
+
}());
|
|
37
|
+
exports.default = FeedbackValidator;
|
|
38
|
+
//# sourceMappingURL=FeedbackValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackValidator.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/validator/FeedbackValidator.ts"],"names":[],"mappings":";;AAKA;IAAA;IAyCA,CAAC;IAxCU,yDAA6B,GAApC,UAAqC,qBAA4C;QAC7E,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE;YACnC,OAAO,8CAA8C,CAAC;SACzD;QAED,OAAO,IAAI,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;IAC7D,CAAC;IAEM,iDAAqB,GAA5B,UAA6B,eAA8D;QACvF,IAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC;QAE1C,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YACjC,OAAO,CACH,mFAAmF;gBACnF,mEAAmE,CACtE,CAAC;SACL;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,iEAAqC,GAA5C,UAA6C,eAA8C;QACvF,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE;YAC7B,OAAO,uDAAuD,CAAC;SAClE;QAED,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE;YACjC,OAAO,2DAA2D,CAAC;SACtE;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yDAA6B,GAApC,UAAqC,eAAsC;QACvE,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE;YAC7B,OAAO,8CAA8C,CAAC;SACzD;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,wBAAC;AAAD,CAAC,AAzCD,IAyCC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import EdgeFeedbackResult from '../result/EdgeFeedbackResult';
|
|
2
2
|
import FeedbackResult from '../../common/result/FeedbackResult';
|
|
3
|
-
import EdgeLanguagePair from '../../../translate/edge/api/EdgeLanguagePair';
|
|
4
3
|
import Timestamps from './Timestamps';
|
|
4
|
+
import EdgeLanguagePair from '../../../language-pairs/edge/result/EdgeLanguagePair';
|
|
5
5
|
export default class EdgeFeedbackApiModel {
|
|
6
6
|
private _feedbackId;
|
|
7
7
|
private _languagePairId;
|
|
@@ -35,5 +35,6 @@ export default class EdgeFeedbackApiModel {
|
|
|
35
35
|
get timestamps(): Timestamps | undefined;
|
|
36
36
|
set timestamps(value: Timestamps | undefined);
|
|
37
37
|
toEdgeResult(): EdgeFeedbackResult;
|
|
38
|
-
toResult(languagePair
|
|
38
|
+
toResult(languagePair?: EdgeLanguagePair): FeedbackResult;
|
|
39
|
+
private toEdgeFeedbackApiModel;
|
|
39
40
|
}
|
|
@@ -3,23 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var EdgeFeedbackResult_1 = __importDefault(require("../result/EdgeFeedbackResult"));
|
|
6
7
|
var FeedbackResult_1 = __importDefault(require("../../common/result/FeedbackResult"));
|
|
7
|
-
var AuditData_1 = __importDefault(require("../../common/
|
|
8
|
+
var AuditData_1 = __importDefault(require("../../common/result/AuditData"));
|
|
8
9
|
var EdgeLanguagePairUtil_1 = require("../../../common/edge/utils/EdgeLanguagePairUtil");
|
|
9
10
|
var ApprovalStatus_1 = require("../../../../common/constants/ApprovalStatus");
|
|
10
11
|
var EdgeFeedbackApiModel = /** @class */ (function () {
|
|
11
12
|
function EdgeFeedbackApiModel(feedback) {
|
|
12
13
|
if (feedback) {
|
|
13
|
-
this.
|
|
14
|
-
this.languagePairId = feedback.languagePairId;
|
|
15
|
-
this.sourceText = feedback.sourceText;
|
|
16
|
-
this.machineTranslation = feedback.machineTranslation;
|
|
17
|
-
this.suggestedTranslation = feedback.suggestedTranslation;
|
|
18
|
-
this.approvalState = feedback.approvalState;
|
|
19
|
-
this.comment = feedback.comment;
|
|
20
|
-
this.username = feedback.username;
|
|
21
|
-
this.reviewer = feedback.reviewer;
|
|
22
|
-
this.timestamps = feedback.timestamps;
|
|
14
|
+
this.toEdgeFeedbackApiModel(feedback);
|
|
23
15
|
}
|
|
24
16
|
}
|
|
25
17
|
Object.defineProperty(EdgeFeedbackApiModel.prototype, "feedbackId", {
|
|
@@ -123,9 +115,33 @@ var EdgeFeedbackApiModel = /** @class */ (function () {
|
|
|
123
115
|
configurable: true
|
|
124
116
|
});
|
|
125
117
|
EdgeFeedbackApiModel.prototype.toEdgeResult = function () {
|
|
118
|
+
var _a, _b, _c, _d;
|
|
119
|
+
var feedbackAuditData = new AuditData_1.default();
|
|
120
|
+
feedbackAuditData.creationDate = (_a = this.timestamps) === null || _a === void 0 ? void 0 : _a.created;
|
|
121
|
+
feedbackAuditData.createdByUserEmail = this.username;
|
|
122
|
+
feedbackAuditData.lastModifyDate = (_b = this.timestamps) === null || _b === void 0 ? void 0 : _b.modified;
|
|
123
|
+
var approvalAuditData = new AuditData_1.default();
|
|
124
|
+
approvalAuditData.creationDate = (_c = this.timestamps) === null || _c === void 0 ? void 0 : _c.created;
|
|
125
|
+
approvalAuditData.lastModifyDate = (_d = this.timestamps) === null || _d === void 0 ? void 0 : _d.reviewed;
|
|
126
|
+
approvalAuditData.lastModifiedByUserEmail = this.reviewer;
|
|
126
127
|
var edgeLanguagePair = (0, EdgeLanguagePairUtil_1.getLanguageFromEdgeId)(this.languagePairId);
|
|
127
|
-
var edgeFeedbackResult =
|
|
128
|
+
var edgeFeedbackResult = new EdgeFeedbackResult_1.default();
|
|
128
129
|
edgeFeedbackResult.languagePairId = this.languagePairId;
|
|
130
|
+
edgeFeedbackResult.feedbackId = this.feedbackId;
|
|
131
|
+
edgeFeedbackResult.sourceLanguageId = edgeLanguagePair === null || edgeLanguagePair === void 0 ? void 0 : edgeLanguagePair.sourceLanguageId;
|
|
132
|
+
edgeFeedbackResult.targetLanguageId = edgeLanguagePair === null || edgeLanguagePair === void 0 ? void 0 : edgeLanguagePair.targetLanguageId;
|
|
133
|
+
edgeFeedbackResult.model = edgeLanguagePair === null || edgeLanguagePair === void 0 ? void 0 : edgeLanguagePair.domain;
|
|
134
|
+
edgeFeedbackResult.sourceText = this.sourceText;
|
|
135
|
+
edgeFeedbackResult.targetText = this.machineTranslation;
|
|
136
|
+
edgeFeedbackResult.suggestedTranslation = this.suggestedTranslation;
|
|
137
|
+
if (this.comment) {
|
|
138
|
+
edgeFeedbackResult.addComment(this.comment);
|
|
139
|
+
}
|
|
140
|
+
if (this.approvalState) {
|
|
141
|
+
edgeFeedbackResult.approvalState = (0, ApprovalStatus_1.getApprovalStatusByKey)((0, ApprovalStatus_1.getApprovalStatusKeyByValue)(this.approvalState));
|
|
142
|
+
}
|
|
143
|
+
edgeFeedbackResult.feedbackAuditData = feedbackAuditData;
|
|
144
|
+
edgeFeedbackResult.approvalAuditData = approvalAuditData;
|
|
129
145
|
return edgeFeedbackResult;
|
|
130
146
|
};
|
|
131
147
|
EdgeFeedbackApiModel.prototype.toResult = function (languagePair) {
|
|
@@ -140,9 +156,9 @@ var EdgeFeedbackApiModel = /** @class */ (function () {
|
|
|
140
156
|
approvalAuditData.lastModifiedByUserEmail = this.reviewer;
|
|
141
157
|
var result = new FeedbackResult_1.default();
|
|
142
158
|
result.feedbackId = this.feedbackId;
|
|
143
|
-
result.sourceLanguageId = languagePair.sourceLanguageId;
|
|
144
|
-
result.targetLanguageId = languagePair.targetLanguageId;
|
|
145
|
-
result.model = languagePair.domain;
|
|
159
|
+
result.sourceLanguageId = languagePair === null || languagePair === void 0 ? void 0 : languagePair.sourceLanguageId;
|
|
160
|
+
result.targetLanguageId = languagePair === null || languagePair === void 0 ? void 0 : languagePair.targetLanguageId;
|
|
161
|
+
result.model = languagePair === null || languagePair === void 0 ? void 0 : languagePair.domain;
|
|
146
162
|
result.sourceText = this.sourceText;
|
|
147
163
|
result.targetText = this.machineTranslation;
|
|
148
164
|
result.suggestedTranslation = this.suggestedTranslation;
|
|
@@ -156,6 +172,18 @@ var EdgeFeedbackApiModel = /** @class */ (function () {
|
|
|
156
172
|
result.approvalAuditData = approvalAuditData;
|
|
157
173
|
return result;
|
|
158
174
|
};
|
|
175
|
+
EdgeFeedbackApiModel.prototype.toEdgeFeedbackApiModel = function (feedback) {
|
|
176
|
+
this.feedbackId = feedback.feedbackId;
|
|
177
|
+
this.languagePairId = feedback.languagePairId;
|
|
178
|
+
this.sourceText = feedback.sourceText;
|
|
179
|
+
this.machineTranslation = feedback.machineTranslation;
|
|
180
|
+
this.suggestedTranslation = feedback.suggestedTranslation;
|
|
181
|
+
this.approvalState = feedback.approvalState;
|
|
182
|
+
this.comment = feedback.comment;
|
|
183
|
+
this.username = feedback.username;
|
|
184
|
+
this.reviewer = feedback.reviewer;
|
|
185
|
+
this.timestamps = feedback.timestamps;
|
|
186
|
+
};
|
|
159
187
|
return EdgeFeedbackApiModel;
|
|
160
188
|
}());
|
|
161
189
|
exports.default = EdgeFeedbackApiModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeFeedbackApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/api/EdgeFeedbackApiModel.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"EdgeFeedbackApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/api/EdgeFeedbackApiModel.ts"],"names":[],"mappings":";;;;;AAAA,oFAA8D;AAC9D,sFAAgE;AAChE,4EAAsD;AAEtD,wFAAwF;AACxF,8EAAkH;AAGlH;IAYI,8BAAY,QAA+B;QACvC,IAAI,QAAQ,EAAE;YACV,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;SACzC;IACL,CAAC;IAED,sBAAI,4CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,gDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,4CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,oDAAkB;aAAtB;YACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;aAED,UAAuB,KAAyB;YAC5C,IAAI,CAAC,mBAAmB,GAAG,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import EdgeFeedbackApiModel from '../api/EdgeFeedbackApiModel';
|
|
4
|
+
export default class EdgeCreateFeedbackRequest extends CreateFeedbackRequest {
|
|
5
|
+
private _languagePairId;
|
|
6
|
+
private _approvalState;
|
|
7
|
+
get languagePairId(): string | undefined;
|
|
8
|
+
set languagePairId(value: string | undefined);
|
|
9
|
+
get approvalState(): ApprovalStatus | undefined;
|
|
10
|
+
set approvalState(value: ApprovalStatus | undefined);
|
|
11
|
+
toEdgeFeedbackApiModel(): EdgeFeedbackApiModel;
|
|
12
|
+
}
|