@language-weaver/lw-sdk-js 1.0.0 → 1.2.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/{auth → common/auth}/LanguageWeaverAuthentication.d.ts +2 -2
- package/lib/{auth → common/auth}/LanguageWeaverAuthentication.js +1 -1
- package/lib/common/auth/LanguageWeaverAuthentication.js.map +1 -0
- package/lib/{auth → common/auth}/domain/SelfInformation.d.ts +0 -0
- package/lib/{auth → common/auth}/domain/SelfInformation.js +0 -0
- package/lib/common/auth/domain/SelfInformation.js.map +1 -0
- package/lib/{auth → common/auth}/domain/Token.d.ts +0 -0
- package/lib/{auth → common/auth}/domain/Token.js +0 -0
- package/lib/common/auth/domain/Token.js.map +1 -0
- package/lib/{auth → common/auth}/domain/UserSelfInformation.d.ts +0 -0
- package/lib/{auth → common/auth}/domain/UserSelfInformation.js +0 -0
- package/lib/common/auth/domain/UserSelfInformation.js.map +1 -0
- package/lib/common/configurations/ClientConfiguration.d.ts +1 -1
- package/lib/common/configurations/TokenConfiguration.d.ts +2 -2
- package/lib/common/constants/ApprovalStatus.d.ts +7 -0
- package/lib/common/constants/ApprovalStatus.js +20 -0
- package/lib/common/constants/ApprovalStatus.js.map +1 -0
- package/lib/common/constants/FeedbackCategory.d.ts +4 -0
- package/lib/common/constants/FeedbackCategory.js +9 -0
- package/lib/common/constants/FeedbackCategory.js.map +1 -0
- package/lib/common/constants/FeedbackComment.d.ts +10 -0
- package/lib/common/constants/FeedbackComment.js +15 -0
- package/lib/common/constants/FeedbackComment.js.map +1 -0
- package/lib/common/constants/FileExtensions.d.ts +1 -1
- package/lib/common/constants/FileExtensions.js +1 -1
- package/lib/common/constants/FileExtensions.js.map +1 -1
- package/lib/{translation/common → common/constants}/Format.d.ts +1 -1
- package/lib/{translation/common → common/constants}/Format.js +4 -1
- package/lib/common/constants/Format.js.map +1 -0
- package/lib/common/constants/FormatToMimeType.js +2 -0
- package/lib/common/constants/FormatToMimeType.js.map +1 -1
- package/lib/common/constants/Order.d.ts +4 -0
- package/lib/common/constants/Order.js +9 -0
- package/lib/common/constants/Order.js.map +1 -0
- 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/{translation/common → common/constants}/Product.d.ts +0 -0
- package/lib/{translation/common → common/constants}/Product.js +0 -0
- package/lib/common/constants/Product.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/{translation/common → common/constants}/Regions.d.ts +0 -0
- package/lib/{translation/common → common/constants}/Regions.js +0 -0
- package/lib/common/constants/Regions.js.map +1 -0
- package/lib/{translation/common → common/constants}/Statuses.d.ts +0 -0
- package/lib/{translation/common → common/constants}/Statuses.js +0 -0
- package/lib/common/constants/Statuses.js.map +1 -0
- package/lib/common/constants/TranslationConstants.d.ts +9 -0
- package/lib/common/constants/TranslationConstants.js +11 -2
- package/lib/common/constants/TranslationConstants.js.map +1 -1
- package/lib/common/{requests → external/communication}/RestClient.d.ts +2 -2
- package/lib/common/{requests → external/communication}/RestClient.js +19 -28
- package/lib/common/external/communication/RestClient.js.map +1 -0
- package/lib/common/utils/HttpUtils.d.ts +2 -1
- package/lib/common/utils/HttpUtils.js +14 -1
- package/lib/common/utils/HttpUtils.js.map +1 -1
- package/lib/common/utils/Utils.d.ts +2 -2
- package/lib/common/utils/Utils.js +1 -1
- package/lib/common/utils/Utils.js.map +1 -1
- package/lib/index.d.ts +72 -39
- package/lib/index.js +104 -38
- package/lib/index.js.map +1 -1
- package/lib/translation/common/LanguageWeaverClient.d.ts +27 -0
- package/lib/{LanguageWeaverClient.js → translation/common/LanguageWeaverClient.js} +0 -0
- package/lib/translation/common/LanguageWeaverClient.js.map +1 -0
- package/lib/{SdkFactory.d.ts → translation/common/SdkFactory.d.ts} +2 -2
- package/lib/{SdkFactory.js → translation/common/SdkFactory.js} +5 -5
- package/lib/translation/common/SdkFactory.js.map +1 -0
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +86 -0
- package/lib/{CloudLanguageWeaverClient.js → translation/common/cloud/CloudLanguageWeaverClient.js} +145 -39
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -0
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +85 -0
- package/lib/{EdgeLanguageWeaverClient.js → translation/common/edge/EdgeLanguageWeaverClient.js} +204 -76
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -0
- package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +2 -0
- package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +24 -0
- package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -0
- package/lib/translation/common/result/PaginatedListResult.d.ts +11 -0
- package/lib/translation/common/result/PaginatedListResult.js +39 -0
- package/lib/translation/common/result/PaginatedListResult.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.d.ts +64 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +291 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApproval.d.ts +35 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApproval.js +119 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApproval.js.map +1 -0
- 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 +6 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.js +20 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackImprovement.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackListResponse.d.ts +11 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackListResponse.js +60 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackListResponse.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackRating.d.ts +10 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js +39 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackRating.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.d.ts +25 -0
- package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js +111 -0
- package/lib/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.d.ts +29 -0
- package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js +99 -0
- package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js.map +1 -0
- package/lib/translation/feedback/cloud/model/CloudAuditData.d.ts +21 -0
- package/lib/translation/feedback/cloud/model/CloudAuditData.js +90 -0
- package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +1 -0
- package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.d.ts +4 -0
- package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js +9 -0
- package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +1 -0
- 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 +10 -0
- package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.js +29 -0
- package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.js.map +1 -0
- package/lib/translation/feedback/cloud/request/CloudFilterFeedbackRequest.d.ts +14 -0
- package/lib/translation/feedback/cloud/request/CloudFilterFeedbackRequest.js +60 -0
- package/lib/translation/feedback/cloud/request/CloudFilterFeedbackRequest.js.map +1 -0
- 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/result/CloudFeedbackListResult.d.ts +7 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackListResult.js +42 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackListResult.js.map +1 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +29 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js +110 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js.map +1 -0
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.d.ts +41 -0
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +207 -0
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -0
- package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.d.ts +9 -0
- package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js +55 -0
- package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +1 -0
- package/lib/translation/feedback/common/model/AuditData.d.ts +14 -0
- package/lib/translation/feedback/common/model/AuditData.js +49 -0
- package/lib/translation/feedback/common/model/AuditData.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 +15 -0
- package/lib/translation/feedback/common/request/FilterFeedbackRequest.js +49 -0
- package/lib/translation/feedback/common/request/FilterFeedbackRequest.js.map +1 -0
- 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/result/FeedbackCommonResult.d.ts +30 -0
- package/lib/translation/feedback/common/result/FeedbackCommonResult.js +100 -0
- package/lib/translation/feedback/common/result/FeedbackCommonResult.js.map +1 -0
- package/lib/translation/feedback/common/result/FeedbackListResult.d.ts +7 -0
- package/lib/translation/feedback/common/result/FeedbackListResult.js +42 -0
- package/lib/translation/feedback/common/result/FeedbackListResult.js.map +1 -0
- package/lib/translation/feedback/common/result/FeedbackResult.d.ts +14 -0
- package/lib/translation/feedback/common/result/FeedbackResult.js +67 -0
- package/lib/translation/feedback/common/result/FeedbackResult.js.map +1 -0
- package/lib/translation/feedback/common/validators/FeedbackValidator.d.ts +10 -0
- package/lib/translation/feedback/common/validators/FeedbackValidator.js +38 -0
- package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +1 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +40 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +190 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackListResponse.d.ts +22 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackListResponse.js +86 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackListResponse.js.map +1 -0
- package/lib/translation/feedback/edge/api/Timestamps.d.ts +11 -0
- package/lib/translation/feedback/edge/api/Timestamps.js +39 -0
- package/lib/translation/feedback/edge/api/Timestamps.js.map +1 -0
- 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/EdgeFilterFeedbackRequest.d.ts +31 -0
- package/lib/translation/feedback/edge/request/EdgeFilterFeedbackRequest.js +122 -0
- package/lib/translation/feedback/edge/request/EdgeFilterFeedbackRequest.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/result/EdgeFeedbackListResult.d.ts +10 -0
- package/lib/translation/feedback/edge/result/EdgeFeedbackListResult.js +52 -0
- package/lib/translation/feedback/edge/result/EdgeFeedbackListResult.js.map +1 -0
- package/lib/translation/feedback/edge/result/EdgeFeedbackResult.d.ts +6 -0
- package/lib/translation/feedback/edge/result/EdgeFeedbackResult.js +40 -0
- package/lib/translation/feedback/edge/result/EdgeFeedbackResult.js.map +1 -0
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +39 -0
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +216 -0
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -0
- package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +3 -0
- package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js +30 -0
- package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +1 -0
- package/lib/translation/translate/{response/cloud → cloud/api}/CloudDictionaryResponse.d.ts +0 -0
- package/lib/translation/translate/{response/cloud → cloud/api}/CloudDictionaryResponse.js +0 -0
- package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +1 -0
- package/lib/translation/translate/{response/cloud → cloud/api}/CloudLanguagePair.d.ts +0 -0
- package/lib/translation/translate/{response/cloud → cloud/api}/CloudLanguagePair.js +0 -0
- package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +1 -0
- package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateBatchFileRequest.d.ts +1 -1
- package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateBatchFileRequest.js +1 -1
- package/lib/translation/translate/cloud/request/CloudTranslateBatchFileRequest.js.map +1 -0
- package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateFileRequest.d.ts +1 -1
- package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateFileRequest.js +1 -1
- package/lib/translation/translate/cloud/request/CloudTranslateFileRequest.js.map +1 -0
- package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateTextRequest.d.ts +1 -1
- package/lib/translation/translate/{request/cloud → cloud/request}/CloudTranslateTextRequest.js +1 -1
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -0
- package/lib/translation/translate/cloud/result/CloudDictionariesResult.d.ts +10 -0
- package/lib/translation/translate/cloud/result/CloudDictionariesResult.js +50 -0
- package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +1 -0
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudLanguagePairsResult.d.ts +1 -1
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudLanguagePairsResult.js +0 -0
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudLanguagePairsResult.js.map +1 -1
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationBatchFileResult.d.ts +1 -1
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationBatchFileResult.js +1 -1
- package/lib/translation/translate/cloud/result/CloudTranslationBatchFileResult.js.map +1 -0
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationFileResult.d.ts +3 -3
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationFileResult.js +1 -1
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationFileResult.js.map +1 -1
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationTextResult.d.ts +2 -2
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationTextResult.js +0 -0
- package/lib/translation/translate/{result/cloud → cloud/result}/CloudTranslationTextResult.js.map +1 -1
- package/lib/translation/translate/{response → common/api}/AsyncTranslationResponse.d.ts +0 -0
- package/lib/translation/translate/{response → common/api}/AsyncTranslationResponse.js +0 -0
- package/lib/translation/translate/common/api/AsyncTranslationResponse.js.map +1 -0
- package/lib/translation/translate/{response → common/api}/DictionaryResponse.d.ts +0 -0
- package/lib/translation/translate/{response → common/api}/DictionaryResponse.js +0 -0
- package/lib/translation/translate/common/api/DictionaryResponse.js.map +1 -0
- package/lib/translation/translate/{response → common/api}/LanguagePair.d.ts +0 -0
- package/lib/translation/translate/{response → common/api}/LanguagePair.js +0 -0
- package/lib/translation/translate/common/api/LanguagePair.js.map +1 -0
- package/lib/translation/translate/{response → common/api}/TranslationStatistics.d.ts +0 -0
- package/lib/translation/translate/{response → common/api}/TranslationStatistics.js +0 -0
- package/lib/translation/translate/common/api/TranslationStatistics.js.map +1 -0
- package/lib/translation/translate/{response/StatusTranslationResponse.d.ts → common/api/TranslationStatusResponse.d.ts} +2 -2
- package/lib/translation/translate/{response/StatusTranslationResponse.js → common/api/TranslationStatusResponse.js} +10 -10
- package/lib/translation/translate/common/api/TranslationStatusResponse.js.map +1 -0
- package/lib/translation/translate/{request → common/request}/TranslateBatchFileRequest.d.ts +4 -0
- package/lib/translation/translate/{request → common/request}/TranslateBatchFileRequest.js +10 -7
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -0
- package/lib/translation/translate/{request → common/request}/TranslateFileRequest.d.ts +4 -0
- package/lib/translation/translate/{request → common/request}/TranslateFileRequest.js +10 -0
- package/lib/translation/translate/common/request/TranslateFileRequest.js.map +1 -0
- package/lib/translation/translate/{request → common/request}/TranslateRequest.d.ts +1 -1
- package/lib/translation/translate/{request → common/request}/TranslateRequest.js +0 -0
- package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -0
- package/lib/translation/translate/{request → common/request}/TranslateTextRequest.d.ts +3 -1
- package/lib/translation/translate/{request → common/request}/TranslateTextRequest.js +9 -1
- package/lib/translation/translate/common/request/TranslateTextRequest.js.map +1 -0
- package/lib/translation/translate/common/result/DictionariesResult.d.ts +7 -0
- package/lib/translation/translate/common/result/DictionariesResult.js +40 -0
- package/lib/translation/translate/common/result/DictionariesResult.js.map +1 -0
- package/lib/translation/translate/{result → common/result}/LanguagePairsResult.d.ts +1 -1
- package/lib/translation/translate/{result → common/result}/LanguagePairsResult.js +0 -0
- package/lib/translation/translate/common/result/LanguagePairsResult.js.map +1 -0
- package/lib/translation/translate/{result → common/result}/TranslateTextResult.d.ts +0 -0
- package/lib/translation/translate/{result → common/result}/TranslateTextResult.js +0 -0
- package/lib/translation/translate/common/result/TranslateTextResult.js.map +1 -0
- package/lib/translation/translate/{result → common/result}/TranslationBatchFileResult.d.ts +0 -0
- package/lib/translation/translate/{result → common/result}/TranslationBatchFileResult.js +0 -0
- package/lib/translation/translate/common/result/TranslationBatchFileResult.js.map +1 -0
- package/lib/translation/translate/{result → common/result}/TranslationFileResult.d.ts +0 -0
- package/lib/translation/translate/{result → common/result}/TranslationFileResult.js +0 -0
- package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -0
- package/lib/translation/translate/{utils → common/utils}/TranslateFileUtil.d.ts +0 -0
- package/lib/translation/translate/{utils → common/utils}/TranslateFileUtil.js +2 -2
- package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -0
- package/lib/translation/translate/{response/edge → edge/api}/EdgeAsyncTranslationResponse.d.ts +0 -0
- package/lib/translation/translate/{response/edge → edge/api}/EdgeAsyncTranslationResponse.js +0 -0
- package/lib/translation/translate/edge/api/EdgeAsyncTranslationResponse.js.map +1 -0
- package/lib/translation/translate/{response/edge → edge/api}/EdgeDictionaryResponse.d.ts +0 -0
- package/lib/translation/translate/{response/edge → edge/api}/EdgeDictionaryResponse.js +0 -0
- package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +1 -0
- package/lib/translation/translate/{response/edge → edge/api}/EdgeLanguagePair.d.ts +0 -0
- package/lib/translation/translate/{response/edge → edge/api}/EdgeLanguagePair.js +0 -0
- package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +1 -0
- package/lib/translation/translate/{response/edge → edge/api}/EdgeStatusTranslationResponse.d.ts +0 -0
- package/lib/translation/translate/{response/edge → edge/api}/EdgeStatusTranslationResponse.js +0 -0
- package/lib/translation/translate/edge/api/EdgeStatusTranslationResponse.js.map +1 -0
- package/lib/translation/translate/{response/edge → edge/api}/MemberPair.d.ts +0 -0
- package/lib/translation/translate/{response/edge → edge/api}/MemberPair.js +0 -0
- package/lib/translation/translate/edge/api/MemberPair.js.map +1 -0
- package/lib/translation/translate/{response/edge → edge/api}/Profile.d.ts +0 -0
- package/lib/translation/translate/{response/edge → edge/api}/Profile.js +0 -0
- package/lib/translation/translate/edge/api/Profile.js.map +1 -0
- package/lib/translation/translate/{response/edge → edge/api}/Result.d.ts +0 -0
- package/lib/translation/translate/{response/edge → edge/api}/Result.js +0 -0
- package/lib/translation/translate/edge/api/Result.js.map +1 -0
- package/lib/translation/translate/{response/edge → edge/api}/Timestamps.d.ts +0 -0
- package/lib/translation/translate/{response/edge → edge/api}/Timestamps.js +0 -0
- package/lib/translation/translate/edge/api/Timestamps.js.map +1 -0
- package/lib/translation/translate/edge/request/EdgeTranslateApiModel.d.ts +29 -0
- package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js +109 -0
- package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js.map +1 -0
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateBatchFileRequest.d.ts +2 -2
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateBatchFileRequest.js +1 -1
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateBatchFileRequest.js.map +1 -1
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateFileRequest.d.ts +4 -2
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateFileRequest.js +16 -1
- package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -0
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.d.ts +4 -2
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.js +16 -1
- package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -0
- package/lib/translation/translate/edge/result/EdgeDictionariesResult.d.ts +10 -0
- package/lib/translation/translate/edge/result/EdgeDictionariesResult.js +50 -0
- package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +1 -0
- package/lib/translation/translate/{result/edge → edge/result}/EdgeLanguagePairsResult.d.ts +1 -1
- package/lib/translation/translate/{result/edge → edge/result}/EdgeLanguagePairsResult.js +0 -0
- package/lib/translation/translate/{result/edge → edge/result}/EdgeLanguagePairsResult.js.map +1 -1
- package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationBatchFileResult.d.ts +1 -1
- package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationBatchFileResult.js +1 -1
- package/lib/translation/translate/edge/result/EdgeTranslationBatchFileResult.js.map +1 -0
- package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationFileResult.d.ts +1 -1
- package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationFileResult.js +1 -1
- package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationFileResult.js.map +1 -1
- package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationTextResult.d.ts +1 -1
- package/lib/translation/translate/{result/edge → edge/result}/EdgeTranslationTextResult.js +1 -1
- package/lib/translation/translate/edge/result/EdgeTranslationTextResult.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -3
- package/lib/CloudLanguageWeaverClient.d.ts +0 -61
- package/lib/CloudLanguageWeaverClient.js.map +0 -1
- package/lib/EdgeLanguageWeaverClient.d.ts +0 -60
- package/lib/EdgeLanguageWeaverClient.js.map +0 -1
- package/lib/LanguageWeaverClient.d.ts +0 -15
- package/lib/LanguageWeaverClient.js.map +0 -1
- package/lib/SdkFactory.js.map +0 -1
- package/lib/auth/LanguageWeaverAuthentication.js.map +0 -1
- package/lib/auth/domain/SelfInformation.js.map +0 -1
- package/lib/auth/domain/Token.js.map +0 -1
- package/lib/auth/domain/UserSelfInformation.js.map +0 -1
- package/lib/common/requests/RestClient.js.map +0 -1
- package/lib/translation/common/Format.js.map +0 -1
- package/lib/translation/common/Product.js.map +0 -1
- package/lib/translation/common/Regions.js.map +0 -1
- package/lib/translation/common/Statuses.js.map +0 -1
- package/lib/translation/translate/request/TranslateBatchFileRequest.js.map +0 -1
- package/lib/translation/translate/request/TranslateFileRequest.js.map +0 -1
- package/lib/translation/translate/request/TranslateRequest.js.map +0 -1
- package/lib/translation/translate/request/TranslateTextRequest.js.map +0 -1
- package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.js.map +0 -1
- package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.js.map +0 -1
- package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.js.map +0 -1
- package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.js.map +0 -1
- package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.js.map +0 -1
- package/lib/translation/translate/response/AsyncTranslationResponse.js.map +0 -1
- package/lib/translation/translate/response/DictionaryResponse.js.map +0 -1
- package/lib/translation/translate/response/LanguagePair.js.map +0 -1
- package/lib/translation/translate/response/StatusTranslationResponse.js.map +0 -1
- package/lib/translation/translate/response/TranslationStatistics.js.map +0 -1
- package/lib/translation/translate/response/cloud/CloudDictionaryResponse.js.map +0 -1
- package/lib/translation/translate/response/cloud/CloudLanguagePair.js.map +0 -1
- package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.js.map +0 -1
- package/lib/translation/translate/response/edge/EdgeDictionaryResponse.js.map +0 -1
- package/lib/translation/translate/response/edge/EdgeLanguagePair.js.map +0 -1
- package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.js.map +0 -1
- package/lib/translation/translate/response/edge/MemberPair.js.map +0 -1
- package/lib/translation/translate/response/edge/Profile.js.map +0 -1
- package/lib/translation/translate/response/edge/Result.js.map +0 -1
- package/lib/translation/translate/response/edge/Timestamps.js.map +0 -1
- package/lib/translation/translate/result/DictionariesResult.d.ts +0 -6
- package/lib/translation/translate/result/DictionariesResult.js +0 -19
- package/lib/translation/translate/result/DictionariesResult.js.map +0 -1
- package/lib/translation/translate/result/LanguagePairsResult.js.map +0 -1
- package/lib/translation/translate/result/TranslateTextResult.js.map +0 -1
- package/lib/translation/translate/result/TranslationBatchFileResult.js.map +0 -1
- package/lib/translation/translate/result/TranslationFileResult.js.map +0 -1
- package/lib/translation/translate/result/cloud/CloudDictionariesResult.d.ts +0 -18
- package/lib/translation/translate/result/cloud/CloudDictionariesResult.js +0 -59
- package/lib/translation/translate/result/cloud/CloudDictionariesResult.js.map +0 -1
- package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.js.map +0 -1
- package/lib/translation/translate/result/edge/EdgeDictionariesResult.d.ts +0 -18
- package/lib/translation/translate/result/edge/EdgeDictionariesResult.js +0 -59
- package/lib/translation/translate/result/edge/EdgeDictionariesResult.js.map +0 -1
- package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.js.map +0 -1
- package/lib/translation/translate/result/edge/EdgeTranslationTextResult.js.map +0 -1
- package/lib/translation/translate/utils/TranslateFileUtil.js.map +0 -1
|
@@ -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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ApprovalStatus } from '../../../../common/constants/ApprovalStatus';
|
|
2
|
+
export default class FeedbackCommonResult {
|
|
3
|
+
private _feedbackId;
|
|
4
|
+
private _sourceLanguageId;
|
|
5
|
+
private _targetLanguageId;
|
|
6
|
+
private _model;
|
|
7
|
+
private _sourceText;
|
|
8
|
+
private _targetText;
|
|
9
|
+
private _suggestedTranslation;
|
|
10
|
+
private _comments;
|
|
11
|
+
private _approvalState;
|
|
12
|
+
get feedbackId(): string | undefined;
|
|
13
|
+
set feedbackId(value: string | undefined);
|
|
14
|
+
get sourceLanguageId(): string | undefined;
|
|
15
|
+
set sourceLanguageId(value: string | undefined);
|
|
16
|
+
get targetLanguageId(): string | undefined;
|
|
17
|
+
set targetLanguageId(value: string | undefined);
|
|
18
|
+
get model(): string | undefined;
|
|
19
|
+
set model(value: string | undefined);
|
|
20
|
+
get sourceText(): string | undefined;
|
|
21
|
+
set sourceText(value: string | undefined);
|
|
22
|
+
get targetText(): string | undefined;
|
|
23
|
+
set targetText(value: string | undefined);
|
|
24
|
+
get suggestedTranslation(): string | undefined;
|
|
25
|
+
set suggestedTranslation(value: string | undefined);
|
|
26
|
+
get comments(): string[] | undefined;
|
|
27
|
+
set comments(value: string[] | undefined);
|
|
28
|
+
get approvalState(): ApprovalStatus | undefined;
|
|
29
|
+
set approvalState(value: ApprovalStatus | undefined);
|
|
30
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var FeedbackCommonResult = /** @class */ (function () {
|
|
4
|
+
function FeedbackCommonResult() {
|
|
5
|
+
this._comments = [];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(FeedbackCommonResult.prototype, "feedbackId", {
|
|
8
|
+
get: function () {
|
|
9
|
+
return this._feedbackId;
|
|
10
|
+
},
|
|
11
|
+
set: function (value) {
|
|
12
|
+
this._feedbackId = value;
|
|
13
|
+
},
|
|
14
|
+
enumerable: false,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(FeedbackCommonResult.prototype, "sourceLanguageId", {
|
|
18
|
+
get: function () {
|
|
19
|
+
return this._sourceLanguageId;
|
|
20
|
+
},
|
|
21
|
+
set: function (value) {
|
|
22
|
+
this._sourceLanguageId = value;
|
|
23
|
+
},
|
|
24
|
+
enumerable: false,
|
|
25
|
+
configurable: true
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(FeedbackCommonResult.prototype, "targetLanguageId", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this._targetLanguageId;
|
|
30
|
+
},
|
|
31
|
+
set: function (value) {
|
|
32
|
+
this._targetLanguageId = value;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(FeedbackCommonResult.prototype, "model", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._model;
|
|
40
|
+
},
|
|
41
|
+
set: function (value) {
|
|
42
|
+
this._model = value;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(FeedbackCommonResult.prototype, "sourceText", {
|
|
48
|
+
get: function () {
|
|
49
|
+
return this._sourceText;
|
|
50
|
+
},
|
|
51
|
+
set: function (value) {
|
|
52
|
+
this._sourceText = value;
|
|
53
|
+
},
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(FeedbackCommonResult.prototype, "targetText", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this._targetText;
|
|
60
|
+
},
|
|
61
|
+
set: function (value) {
|
|
62
|
+
this._targetText = value;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(FeedbackCommonResult.prototype, "suggestedTranslation", {
|
|
68
|
+
get: function () {
|
|
69
|
+
return this._suggestedTranslation;
|
|
70
|
+
},
|
|
71
|
+
set: function (value) {
|
|
72
|
+
this._suggestedTranslation = value;
|
|
73
|
+
},
|
|
74
|
+
enumerable: false,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(FeedbackCommonResult.prototype, "comments", {
|
|
78
|
+
get: function () {
|
|
79
|
+
return this._comments;
|
|
80
|
+
},
|
|
81
|
+
set: function (value) {
|
|
82
|
+
this._comments = value;
|
|
83
|
+
},
|
|
84
|
+
enumerable: false,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(FeedbackCommonResult.prototype, "approvalState", {
|
|
88
|
+
get: function () {
|
|
89
|
+
return this._approvalState;
|
|
90
|
+
},
|
|
91
|
+
set: function (value) {
|
|
92
|
+
this._approvalState = value;
|
|
93
|
+
},
|
|
94
|
+
enumerable: false,
|
|
95
|
+
configurable: true
|
|
96
|
+
});
|
|
97
|
+
return FeedbackCommonResult;
|
|
98
|
+
}());
|
|
99
|
+
exports.default = FeedbackCommonResult;
|
|
100
|
+
//# sourceMappingURL=FeedbackCommonResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackCommonResult.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/result/FeedbackCommonResult.ts"],"names":[],"mappings":";;AAEA;IAAA;QAUY,cAAS,GAAyB,EAAE,CAAC;IA2EjD,CAAC;IAvEG,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,kDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,kDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,uCAAK;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,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,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,sDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAAyB;YAC9C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAMD,sBAAI,0CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAA2B;YACpC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,+CAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAiC;YAC/C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,2BAAC;AAAD,CAAC,AArFD,IAqFC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import PaginatedListResult from '../../../common/result/PaginatedListResult';
|
|
2
|
+
import FeedbackResult from './FeedbackResult';
|
|
3
|
+
export default class FeedbackListResult extends PaginatedListResult {
|
|
4
|
+
private _feedbackList;
|
|
5
|
+
get feedbackList(): FeedbackResult[];
|
|
6
|
+
set feedbackList(value: FeedbackResult[]);
|
|
7
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 PaginatedListResult_1 = __importDefault(require("../../../common/result/PaginatedListResult"));
|
|
22
|
+
var FeedbackListResult = /** @class */ (function (_super) {
|
|
23
|
+
__extends(FeedbackListResult, _super);
|
|
24
|
+
function FeedbackListResult() {
|
|
25
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
_this._feedbackList = [];
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(FeedbackListResult.prototype, "feedbackList", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this._feedbackList;
|
|
32
|
+
},
|
|
33
|
+
set: function (value) {
|
|
34
|
+
this._feedbackList = value;
|
|
35
|
+
},
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
return FeedbackListResult;
|
|
40
|
+
}(PaginatedListResult_1.default));
|
|
41
|
+
exports.default = FeedbackListResult;
|
|
42
|
+
//# sourceMappingURL=FeedbackListResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackListResult.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/result/FeedbackListResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAG7E;IAAgD,sCAAmB;IAAnE;QAAA,qEAUC;QATW,mBAAa,GAAqB,EAAE,CAAC;;IASjD,CAAC;IAPG,sBAAI,4CAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAuB;YACpC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKL,yBAAC;AAAD,CAAC,AAVD,CAAgD,6BAAmB,GAUlE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import AuditData from '../model/AuditData';
|
|
2
|
+
import FeedbackCommonResult from './FeedbackCommonResult';
|
|
3
|
+
import FeedbackComment from '../../../../common/constants/FeedbackComment';
|
|
4
|
+
export default class FeedbackResult extends FeedbackCommonResult {
|
|
5
|
+
private _feedbackAuditData;
|
|
6
|
+
private _approvalAuditData;
|
|
7
|
+
get feedbackAuditData(): AuditData | undefined;
|
|
8
|
+
set feedbackAuditData(value: AuditData | undefined);
|
|
9
|
+
get approvalAuditData(): AuditData | undefined;
|
|
10
|
+
set approvalAuditData(value: AuditData | undefined);
|
|
11
|
+
setComment(comment: string | FeedbackComment): FeedbackResult;
|
|
12
|
+
clearComments(): FeedbackResult;
|
|
13
|
+
addComment(comment: FeedbackComment | string): FeedbackResult;
|
|
14
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 FeedbackCommonResult_1 = __importDefault(require("./FeedbackCommonResult"));
|
|
22
|
+
var FeedbackResult = /** @class */ (function (_super) {
|
|
23
|
+
__extends(FeedbackResult, _super);
|
|
24
|
+
function FeedbackResult() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(FeedbackResult.prototype, "feedbackAuditData", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this._feedbackAuditData;
|
|
30
|
+
},
|
|
31
|
+
set: function (value) {
|
|
32
|
+
this._feedbackAuditData = value;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(FeedbackResult.prototype, "approvalAuditData", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._approvalAuditData;
|
|
40
|
+
},
|
|
41
|
+
set: function (value) {
|
|
42
|
+
this._approvalAuditData = value;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
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
|
+
};
|
|
55
|
+
FeedbackResult.prototype.addComment = function (comment) {
|
|
56
|
+
if (this.comments) {
|
|
57
|
+
this.comments.push(comment);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.comments = [comment];
|
|
61
|
+
}
|
|
62
|
+
return this;
|
|
63
|
+
};
|
|
64
|
+
return FeedbackResult;
|
|
65
|
+
}(FeedbackCommonResult_1.default));
|
|
66
|
+
exports.default = FeedbackResult;
|
|
67
|
+
//# sourceMappingURL=FeedbackResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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/validators/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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import EdgeFeedbackResult from '../result/EdgeFeedbackResult';
|
|
2
|
+
import FeedbackResult from '../../common/result/FeedbackResult';
|
|
3
|
+
import EdgeLanguagePair from '../../../translate/edge/api/EdgeLanguagePair';
|
|
4
|
+
import Timestamps from './Timestamps';
|
|
5
|
+
export default class EdgeFeedbackApiModel {
|
|
6
|
+
private _feedbackId;
|
|
7
|
+
private _languagePairId;
|
|
8
|
+
private _sourceText;
|
|
9
|
+
private _machineTranslation;
|
|
10
|
+
private _suggestedTranslation;
|
|
11
|
+
private _approvalState;
|
|
12
|
+
private _comment;
|
|
13
|
+
private _username;
|
|
14
|
+
private _reviewer;
|
|
15
|
+
private _timestamps;
|
|
16
|
+
constructor(feedback?: EdgeFeedbackApiModel);
|
|
17
|
+
get feedbackId(): string | undefined;
|
|
18
|
+
set feedbackId(value: string | undefined);
|
|
19
|
+
get languagePairId(): string | undefined;
|
|
20
|
+
set languagePairId(value: string | undefined);
|
|
21
|
+
get sourceText(): string | undefined;
|
|
22
|
+
set sourceText(value: string | undefined);
|
|
23
|
+
get machineTranslation(): string | undefined;
|
|
24
|
+
set machineTranslation(value: string | undefined);
|
|
25
|
+
get suggestedTranslation(): string | undefined;
|
|
26
|
+
set suggestedTranslation(value: string | undefined);
|
|
27
|
+
get approvalState(): string | undefined;
|
|
28
|
+
set approvalState(value: string | undefined);
|
|
29
|
+
get comment(): string | undefined;
|
|
30
|
+
set comment(value: string | undefined);
|
|
31
|
+
get username(): string | undefined;
|
|
32
|
+
set username(value: string | undefined);
|
|
33
|
+
get reviewer(): string | undefined;
|
|
34
|
+
set reviewer(value: string | undefined);
|
|
35
|
+
get timestamps(): Timestamps | undefined;
|
|
36
|
+
set timestamps(value: Timestamps | undefined);
|
|
37
|
+
toEdgeResult(): EdgeFeedbackResult;
|
|
38
|
+
toResult(languagePair?: EdgeLanguagePair): FeedbackResult;
|
|
39
|
+
private toEdgeFeedbackApiModel;
|
|
40
|
+
}
|