@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,190 @@
|
|
|
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 EdgeFeedbackResult_1 = __importDefault(require("../result/EdgeFeedbackResult"));
|
|
7
|
+
var FeedbackResult_1 = __importDefault(require("../../common/result/FeedbackResult"));
|
|
8
|
+
var AuditData_1 = __importDefault(require("../../common/model/AuditData"));
|
|
9
|
+
var EdgeLanguagePairUtil_1 = require("../../../common/edge/utils/EdgeLanguagePairUtil");
|
|
10
|
+
var ApprovalStatus_1 = require("../../../../common/constants/ApprovalStatus");
|
|
11
|
+
var EdgeFeedbackApiModel = /** @class */ (function () {
|
|
12
|
+
function EdgeFeedbackApiModel(feedback) {
|
|
13
|
+
if (feedback) {
|
|
14
|
+
this.toEdgeFeedbackApiModel(feedback);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "feedbackId", {
|
|
18
|
+
get: function () {
|
|
19
|
+
return this._feedbackId;
|
|
20
|
+
},
|
|
21
|
+
set: function (value) {
|
|
22
|
+
this._feedbackId = value;
|
|
23
|
+
},
|
|
24
|
+
enumerable: false,
|
|
25
|
+
configurable: true
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "languagePairId", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this._languagePairId;
|
|
30
|
+
},
|
|
31
|
+
set: function (value) {
|
|
32
|
+
this._languagePairId = value;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "sourceText", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._sourceText;
|
|
40
|
+
},
|
|
41
|
+
set: function (value) {
|
|
42
|
+
this._sourceText = value;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "machineTranslation", {
|
|
48
|
+
get: function () {
|
|
49
|
+
return this._machineTranslation;
|
|
50
|
+
},
|
|
51
|
+
set: function (value) {
|
|
52
|
+
this._machineTranslation = value;
|
|
53
|
+
},
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "suggestedTranslation", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this._suggestedTranslation;
|
|
60
|
+
},
|
|
61
|
+
set: function (value) {
|
|
62
|
+
this._suggestedTranslation = value;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "approvalState", {
|
|
68
|
+
get: function () {
|
|
69
|
+
return this._approvalState;
|
|
70
|
+
},
|
|
71
|
+
set: function (value) {
|
|
72
|
+
this._approvalState = value;
|
|
73
|
+
},
|
|
74
|
+
enumerable: false,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "comment", {
|
|
78
|
+
get: function () {
|
|
79
|
+
return this._comment;
|
|
80
|
+
},
|
|
81
|
+
set: function (value) {
|
|
82
|
+
this._comment = value;
|
|
83
|
+
},
|
|
84
|
+
enumerable: false,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "username", {
|
|
88
|
+
get: function () {
|
|
89
|
+
return this._username;
|
|
90
|
+
},
|
|
91
|
+
set: function (value) {
|
|
92
|
+
this._username = value;
|
|
93
|
+
},
|
|
94
|
+
enumerable: false,
|
|
95
|
+
configurable: true
|
|
96
|
+
});
|
|
97
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "reviewer", {
|
|
98
|
+
get: function () {
|
|
99
|
+
return this._reviewer;
|
|
100
|
+
},
|
|
101
|
+
set: function (value) {
|
|
102
|
+
this._reviewer = value;
|
|
103
|
+
},
|
|
104
|
+
enumerable: false,
|
|
105
|
+
configurable: true
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(EdgeFeedbackApiModel.prototype, "timestamps", {
|
|
108
|
+
get: function () {
|
|
109
|
+
return this._timestamps;
|
|
110
|
+
},
|
|
111
|
+
set: function (value) {
|
|
112
|
+
this._timestamps = value;
|
|
113
|
+
},
|
|
114
|
+
enumerable: false,
|
|
115
|
+
configurable: true
|
|
116
|
+
});
|
|
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;
|
|
127
|
+
var edgeLanguagePair = (0, EdgeLanguagePairUtil_1.getLanguageFromEdgeId)(this.languagePairId);
|
|
128
|
+
var edgeFeedbackResult = new EdgeFeedbackResult_1.default();
|
|
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;
|
|
145
|
+
return edgeFeedbackResult;
|
|
146
|
+
};
|
|
147
|
+
EdgeFeedbackApiModel.prototype.toResult = function (languagePair) {
|
|
148
|
+
var _a, _b, _c, _d;
|
|
149
|
+
var feedbackAuditData = new AuditData_1.default();
|
|
150
|
+
feedbackAuditData.creationDate = (_a = this.timestamps) === null || _a === void 0 ? void 0 : _a.created;
|
|
151
|
+
feedbackAuditData.createdByUserEmail = this.username;
|
|
152
|
+
feedbackAuditData.lastModifyDate = (_b = this.timestamps) === null || _b === void 0 ? void 0 : _b.modified;
|
|
153
|
+
var approvalAuditData = new AuditData_1.default();
|
|
154
|
+
approvalAuditData.creationDate = (_c = this.timestamps) === null || _c === void 0 ? void 0 : _c.created;
|
|
155
|
+
approvalAuditData.lastModifyDate = (_d = this.timestamps) === null || _d === void 0 ? void 0 : _d.reviewed;
|
|
156
|
+
approvalAuditData.lastModifiedByUserEmail = this.reviewer;
|
|
157
|
+
var result = new FeedbackResult_1.default();
|
|
158
|
+
result.feedbackId = this.feedbackId;
|
|
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;
|
|
162
|
+
result.sourceText = this.sourceText;
|
|
163
|
+
result.targetText = this.machineTranslation;
|
|
164
|
+
result.suggestedTranslation = this.suggestedTranslation;
|
|
165
|
+
if (this.comment) {
|
|
166
|
+
result.addComment(this.comment);
|
|
167
|
+
}
|
|
168
|
+
if (this.approvalState) {
|
|
169
|
+
result.approvalState = (0, ApprovalStatus_1.getApprovalStatusByKey)((0, ApprovalStatus_1.getApprovalStatusKeyByValue)(this.approvalState));
|
|
170
|
+
}
|
|
171
|
+
result.feedbackAuditData = feedbackAuditData;
|
|
172
|
+
result.approvalAuditData = approvalAuditData;
|
|
173
|
+
return result;
|
|
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
|
+
};
|
|
187
|
+
return EdgeFeedbackApiModel;
|
|
188
|
+
}());
|
|
189
|
+
exports.default = EdgeFeedbackApiModel;
|
|
190
|
+
//# sourceMappingURL=EdgeFeedbackApiModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeFeedbackApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/api/EdgeFeedbackApiModel.ts"],"names":[],"mappings":";;;;;AAAA,oFAA8D;AAC9D,sFAAgE;AAEhE,2EAAqD;AAErD,wFAAwF;AACxF,8EAAkH;AAKlH;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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AG,QAAQ,CAAC,OAAO,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;IAC1C,CAAC;IACL,2BAAC;AAAD,CAAC,AA/KD,IA+KC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import EdgeFeedbackApiModel from './EdgeFeedbackApiModel';
|
|
2
|
+
import EdgeFeedbackListResult from '../result/EdgeFeedbackListResult';
|
|
3
|
+
import FeedbackListResult from '../../common/result/FeedbackListResult';
|
|
4
|
+
export default class EdgeFeedbackListResponse {
|
|
5
|
+
private _feedback;
|
|
6
|
+
private _page;
|
|
7
|
+
private _perPage;
|
|
8
|
+
private _totalPages;
|
|
9
|
+
private _totalItems;
|
|
10
|
+
get feedback(): EdgeFeedbackApiModel[];
|
|
11
|
+
set feedback(value: EdgeFeedbackApiModel[]);
|
|
12
|
+
get page(): number | undefined;
|
|
13
|
+
set page(value: number | undefined);
|
|
14
|
+
get perPage(): number | undefined;
|
|
15
|
+
set perPage(value: number | undefined);
|
|
16
|
+
get totalPages(): number | undefined;
|
|
17
|
+
set totalPages(value: number | undefined);
|
|
18
|
+
get totalItems(): number | undefined;
|
|
19
|
+
set totalItems(value: number | undefined);
|
|
20
|
+
toEdgeResult(): EdgeFeedbackListResult;
|
|
21
|
+
toResult(): FeedbackListResult;
|
|
22
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 EdgeFeedbackListResult_1 = __importDefault(require("../result/EdgeFeedbackListResult"));
|
|
7
|
+
var FeedbackListResult_1 = __importDefault(require("../../common/result/FeedbackListResult"));
|
|
8
|
+
var EdgeLanguagePairUtil_1 = require("../../../common/edge/utils/EdgeLanguagePairUtil");
|
|
9
|
+
var EdgeFeedbackListResponse = /** @class */ (function () {
|
|
10
|
+
function EdgeFeedbackListResponse() {
|
|
11
|
+
this._feedback = [];
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(EdgeFeedbackListResponse.prototype, "feedback", {
|
|
14
|
+
get: function () {
|
|
15
|
+
return this._feedback;
|
|
16
|
+
},
|
|
17
|
+
set: function (value) {
|
|
18
|
+
this._feedback = value;
|
|
19
|
+
},
|
|
20
|
+
enumerable: false,
|
|
21
|
+
configurable: true
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(EdgeFeedbackListResponse.prototype, "page", {
|
|
24
|
+
get: function () {
|
|
25
|
+
return this._page;
|
|
26
|
+
},
|
|
27
|
+
set: function (value) {
|
|
28
|
+
this._page = value;
|
|
29
|
+
},
|
|
30
|
+
enumerable: false,
|
|
31
|
+
configurable: true
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(EdgeFeedbackListResponse.prototype, "perPage", {
|
|
34
|
+
get: function () {
|
|
35
|
+
return this._perPage;
|
|
36
|
+
},
|
|
37
|
+
set: function (value) {
|
|
38
|
+
this._perPage = value;
|
|
39
|
+
},
|
|
40
|
+
enumerable: false,
|
|
41
|
+
configurable: true
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(EdgeFeedbackListResponse.prototype, "totalPages", {
|
|
44
|
+
get: function () {
|
|
45
|
+
return this._totalPages;
|
|
46
|
+
},
|
|
47
|
+
set: function (value) {
|
|
48
|
+
this._totalPages = value;
|
|
49
|
+
},
|
|
50
|
+
enumerable: false,
|
|
51
|
+
configurable: true
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(EdgeFeedbackListResponse.prototype, "totalItems", {
|
|
54
|
+
get: function () {
|
|
55
|
+
return this._totalItems;
|
|
56
|
+
},
|
|
57
|
+
set: function (value) {
|
|
58
|
+
this._totalItems = value;
|
|
59
|
+
},
|
|
60
|
+
enumerable: false,
|
|
61
|
+
configurable: true
|
|
62
|
+
});
|
|
63
|
+
EdgeFeedbackListResponse.prototype.toEdgeResult = function () {
|
|
64
|
+
var result = new EdgeFeedbackListResult_1.default();
|
|
65
|
+
result.pageNumber = this.page;
|
|
66
|
+
result.pageSize = this.perPage;
|
|
67
|
+
result.totalPages = this.totalPages;
|
|
68
|
+
result.totalCount = this.totalItems;
|
|
69
|
+
result.feedbackList = this.feedback.map(function (feedbackItem) { return feedbackItem.toEdgeResult(); });
|
|
70
|
+
return result;
|
|
71
|
+
};
|
|
72
|
+
EdgeFeedbackListResponse.prototype.toResult = function () {
|
|
73
|
+
var result = new FeedbackListResult_1.default();
|
|
74
|
+
result.pageNumber = this.page;
|
|
75
|
+
result.pageSize = this.perPage;
|
|
76
|
+
result.totalCount = this.totalItems;
|
|
77
|
+
result.feedbackList = this.feedback.map(function (feedbackItem) {
|
|
78
|
+
var edgeLanguagePair = (0, EdgeLanguagePairUtil_1.getLanguageFromEdgeId)(feedbackItem.languagePairId);
|
|
79
|
+
return feedbackItem.toResult(edgeLanguagePair);
|
|
80
|
+
});
|
|
81
|
+
return result;
|
|
82
|
+
};
|
|
83
|
+
return EdgeFeedbackListResponse;
|
|
84
|
+
}());
|
|
85
|
+
exports.default = EdgeFeedbackListResponse;
|
|
86
|
+
//# sourceMappingURL=EdgeFeedbackListResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeFeedbackListResponse.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/api/EdgeFeedbackListResponse.ts"],"names":[],"mappings":";;;;;AACA,4FAAsE;AACtE,8FAAwE;AACxE,wFAAwF;AAExF;IAAA;QACY,cAAS,GAA2B,EAAE,CAAC;IAsEnD,CAAC;IAhEG,sBAAI,8CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAA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;QACxC,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;QAC9B,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC;QAC/B,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACpC,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAC,YAAY;YACjD,IAAM,gBAAgB,GAAG,IAAA,4CAAqB,EAAC,YAAY,CAAC,cAAc,CAAC,CAAC;YAE5E,OAAO,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,+BAAC;AAAD,CAAC,AAvED,IAuEC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class Timestamps {
|
|
2
|
+
private _reviewed;
|
|
3
|
+
private _created;
|
|
4
|
+
private _modified;
|
|
5
|
+
get reviewed(): string | undefined;
|
|
6
|
+
set reviewed(value: string | undefined);
|
|
7
|
+
get created(): string | undefined;
|
|
8
|
+
set created(value: string | undefined);
|
|
9
|
+
get modified(): string | undefined;
|
|
10
|
+
set modified(value: string | undefined);
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var Timestamps = /** @class */ (function () {
|
|
4
|
+
function Timestamps() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(Timestamps.prototype, "reviewed", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._reviewed;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._reviewed = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(Timestamps.prototype, "created", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._created;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._created = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(Timestamps.prototype, "modified", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._modified;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._modified = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
return Timestamps;
|
|
37
|
+
}());
|
|
38
|
+
exports.default = Timestamps;
|
|
39
|
+
//# sourceMappingURL=Timestamps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timestamps.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/api/Timestamps.ts"],"names":[],"mappings":";;AAAA;IAAA;IA4BA,CAAC;IAvBG,sBAAI,gCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,+BAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAyB;YACjC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,gCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,iBAAC;AAAD,CAAC,AA5BD,IA4BC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import CreateFeedbackRequest from '../../common/request/CreateFeedbackRequest';
|
|
2
|
+
import { ApprovalStatus } from '../../../../common/constants/ApprovalStatus';
|
|
3
|
+
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
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 CreateFeedbackRequest_1 = __importDefault(require("../../common/request/CreateFeedbackRequest"));
|
|
22
|
+
var EdgeFeedbackApiModel_1 = __importDefault(require("../api/EdgeFeedbackApiModel"));
|
|
23
|
+
var EdgeCreateFeedbackRequest = /** @class */ (function (_super) {
|
|
24
|
+
__extends(EdgeCreateFeedbackRequest, _super);
|
|
25
|
+
function EdgeCreateFeedbackRequest() {
|
|
26
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
+
}
|
|
28
|
+
Object.defineProperty(EdgeCreateFeedbackRequest.prototype, "languagePairId", {
|
|
29
|
+
get: function () {
|
|
30
|
+
return this._languagePairId;
|
|
31
|
+
},
|
|
32
|
+
set: function (value) {
|
|
33
|
+
this._languagePairId = value;
|
|
34
|
+
},
|
|
35
|
+
enumerable: false,
|
|
36
|
+
configurable: true
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(EdgeCreateFeedbackRequest.prototype, "approvalState", {
|
|
39
|
+
get: function () {
|
|
40
|
+
return this._approvalState;
|
|
41
|
+
},
|
|
42
|
+
set: function (value) {
|
|
43
|
+
this._approvalState = value;
|
|
44
|
+
},
|
|
45
|
+
enumerable: false,
|
|
46
|
+
configurable: true
|
|
47
|
+
});
|
|
48
|
+
EdgeCreateFeedbackRequest.prototype.toEdgeFeedbackApiModel = function () {
|
|
49
|
+
var feedbackApiModel = new EdgeFeedbackApiModel_1.default();
|
|
50
|
+
feedbackApiModel.languagePairId = this.languagePairId;
|
|
51
|
+
feedbackApiModel.sourceText = this.sourceText;
|
|
52
|
+
feedbackApiModel.machineTranslation = this.targetText;
|
|
53
|
+
feedbackApiModel.suggestedTranslation = this.suggestedTranslation;
|
|
54
|
+
feedbackApiModel.approvalState = this.approvalState;
|
|
55
|
+
if (this.comments.length > 0) {
|
|
56
|
+
feedbackApiModel.comment = this.comments[0];
|
|
57
|
+
}
|
|
58
|
+
return feedbackApiModel;
|
|
59
|
+
};
|
|
60
|
+
return EdgeCreateFeedbackRequest;
|
|
61
|
+
}(CreateFeedbackRequest_1.default));
|
|
62
|
+
exports.default = EdgeCreateFeedbackRequest;
|
|
63
|
+
//# sourceMappingURL=EdgeCreateFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeCreateFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/request/EdgeCreateFeedbackRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qGAA+E;AAE/E,qFAA+D;AAE/D;IAAuD,6CAAqB;IAA5E;;IAiCA,CAAC;IA7BG,sBAAI,qDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,oDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAiC;YAC/C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAMM,0DAAsB,GAA7B;QACI,IAAM,gBAAgB,GAAG,IAAI,8BAAoB,EAAE,CAAC;QACpD,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACtD,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,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACpD,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,gCAAC;AAAD,CAAC,AAjCD,CAAuD,+BAAqB,GAiC3E"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var DeleteFeedbackRequest_1 = __importDefault(require("../../common/request/DeleteFeedbackRequest"));
|
|
22
|
+
var EdgeDeleteFeedbackRequest = /** @class */ (function (_super) {
|
|
23
|
+
__extends(EdgeDeleteFeedbackRequest, _super);
|
|
24
|
+
function EdgeDeleteFeedbackRequest() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
return EdgeDeleteFeedbackRequest;
|
|
28
|
+
}(DeleteFeedbackRequest_1.default));
|
|
29
|
+
exports.default = EdgeDeleteFeedbackRequest;
|
|
30
|
+
//# sourceMappingURL=EdgeDeleteFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeDeleteFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/request/EdgeDeleteFeedbackRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qGAA+E;AAE/E;IAAuD,6CAAqB;IAA5E;;IAA8E,CAAC;IAAD,gCAAC;AAAD,CAAC,AAA/E,CAAuD,+BAAqB,GAAG"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import FilterFeedbackRequest from '../../common/request/FilterFeedbackRequest';
|
|
2
|
+
import { ApprovalStatus } from '../../../../common/constants/ApprovalStatus';
|
|
3
|
+
export default class EdgeFilterFeedbackRequest extends FilterFeedbackRequest {
|
|
4
|
+
private _languagePairId;
|
|
5
|
+
private _sourceLanguageId;
|
|
6
|
+
private _targetLanguageId;
|
|
7
|
+
private _sourceText;
|
|
8
|
+
private _machineTranslation;
|
|
9
|
+
private _suggestedTranslation;
|
|
10
|
+
private _comment;
|
|
11
|
+
private _approvalStatuses;
|
|
12
|
+
private _reviewer;
|
|
13
|
+
get languagePairId(): string | undefined;
|
|
14
|
+
set languagePairId(value: string | undefined);
|
|
15
|
+
get sourceLanguageId(): string | undefined;
|
|
16
|
+
set sourceLanguageId(value: string | undefined);
|
|
17
|
+
get targetLanguageId(): string | undefined;
|
|
18
|
+
set targetLanguageId(value: string | undefined);
|
|
19
|
+
get sourceText(): string | undefined;
|
|
20
|
+
set sourceText(value: string | undefined);
|
|
21
|
+
get machineTranslation(): string | undefined;
|
|
22
|
+
set machineTranslation(value: string | undefined);
|
|
23
|
+
get suggestedTranslation(): string | undefined;
|
|
24
|
+
set suggestedTranslation(value: string | undefined);
|
|
25
|
+
get comment(): string | undefined;
|
|
26
|
+
set comment(value: string | undefined);
|
|
27
|
+
get approvalStatuses(): ApprovalStatus[];
|
|
28
|
+
set approvalStatuses(value: ApprovalStatus[]);
|
|
29
|
+
get reviewer(): string | undefined;
|
|
30
|
+
set reviewer(value: string | undefined);
|
|
31
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 FilterFeedbackRequest_1 = __importDefault(require("../../common/request/FilterFeedbackRequest"));
|
|
22
|
+
var EdgeFilterFeedbackRequest = /** @class */ (function (_super) {
|
|
23
|
+
__extends(EdgeFilterFeedbackRequest, _super);
|
|
24
|
+
function EdgeFilterFeedbackRequest() {
|
|
25
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
_this._approvalStatuses = [];
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(EdgeFilterFeedbackRequest.prototype, "languagePairId", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this._languagePairId;
|
|
32
|
+
},
|
|
33
|
+
set: function (value) {
|
|
34
|
+
this._languagePairId = value;
|
|
35
|
+
},
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(EdgeFilterFeedbackRequest.prototype, "sourceLanguageId", {
|
|
40
|
+
get: function () {
|
|
41
|
+
return this._sourceLanguageId;
|
|
42
|
+
},
|
|
43
|
+
set: function (value) {
|
|
44
|
+
this._sourceLanguageId = value;
|
|
45
|
+
},
|
|
46
|
+
enumerable: false,
|
|
47
|
+
configurable: true
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(EdgeFilterFeedbackRequest.prototype, "targetLanguageId", {
|
|
50
|
+
get: function () {
|
|
51
|
+
return this._targetLanguageId;
|
|
52
|
+
},
|
|
53
|
+
set: function (value) {
|
|
54
|
+
this._targetLanguageId = value;
|
|
55
|
+
},
|
|
56
|
+
enumerable: false,
|
|
57
|
+
configurable: true
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(EdgeFilterFeedbackRequest.prototype, "sourceText", {
|
|
60
|
+
get: function () {
|
|
61
|
+
return this._sourceText;
|
|
62
|
+
},
|
|
63
|
+
set: function (value) {
|
|
64
|
+
this._sourceText = value;
|
|
65
|
+
},
|
|
66
|
+
enumerable: false,
|
|
67
|
+
configurable: true
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(EdgeFilterFeedbackRequest.prototype, "machineTranslation", {
|
|
70
|
+
get: function () {
|
|
71
|
+
return this._machineTranslation;
|
|
72
|
+
},
|
|
73
|
+
set: function (value) {
|
|
74
|
+
this._machineTranslation = value;
|
|
75
|
+
},
|
|
76
|
+
enumerable: false,
|
|
77
|
+
configurable: true
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(EdgeFilterFeedbackRequest.prototype, "suggestedTranslation", {
|
|
80
|
+
get: function () {
|
|
81
|
+
return this._suggestedTranslation;
|
|
82
|
+
},
|
|
83
|
+
set: function (value) {
|
|
84
|
+
this._suggestedTranslation = value;
|
|
85
|
+
},
|
|
86
|
+
enumerable: false,
|
|
87
|
+
configurable: true
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(EdgeFilterFeedbackRequest.prototype, "comment", {
|
|
90
|
+
get: function () {
|
|
91
|
+
return this._comment;
|
|
92
|
+
},
|
|
93
|
+
set: function (value) {
|
|
94
|
+
this._comment = value;
|
|
95
|
+
},
|
|
96
|
+
enumerable: false,
|
|
97
|
+
configurable: true
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(EdgeFilterFeedbackRequest.prototype, "approvalStatuses", {
|
|
100
|
+
get: function () {
|
|
101
|
+
return this._approvalStatuses;
|
|
102
|
+
},
|
|
103
|
+
set: function (value) {
|
|
104
|
+
this._approvalStatuses = value;
|
|
105
|
+
},
|
|
106
|
+
enumerable: false,
|
|
107
|
+
configurable: true
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(EdgeFilterFeedbackRequest.prototype, "reviewer", {
|
|
110
|
+
get: function () {
|
|
111
|
+
return this._reviewer;
|
|
112
|
+
},
|
|
113
|
+
set: function (value) {
|
|
114
|
+
this._reviewer = value;
|
|
115
|
+
},
|
|
116
|
+
enumerable: false,
|
|
117
|
+
configurable: true
|
|
118
|
+
});
|
|
119
|
+
return EdgeFilterFeedbackRequest;
|
|
120
|
+
}(FilterFeedbackRequest_1.default));
|
|
121
|
+
exports.default = EdgeFilterFeedbackRequest;
|
|
122
|
+
//# sourceMappingURL=EdgeFilterFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeFilterFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/edge/request/EdgeFilterFeedbackRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qGAA+E;AAG/E;IAAuD,6CAAqB;IAA5E;QAAA,qEAkFC;QA1EW,uBAAiB,GAAqB,EAAE,CAAC;;IA0ErD,CAAC;IAvEG,sBAAI,qDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,uDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,uDAA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