@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,10 @@
|
|
|
1
|
+
import FeedbackComment from '../../../../common/constants/FeedbackComment';
|
|
2
|
+
export default class CloudFeedbackRating {
|
|
3
|
+
private _score;
|
|
4
|
+
private _comments;
|
|
5
|
+
get score(): number | undefined;
|
|
6
|
+
set score(value: number | undefined);
|
|
7
|
+
get comments(): string[];
|
|
8
|
+
set comments(value: string[]);
|
|
9
|
+
addComment(comment: string | FeedbackComment): CloudFeedbackRating;
|
|
10
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var CloudFeedbackRating = /** @class */ (function () {
|
|
4
|
+
function CloudFeedbackRating() {
|
|
5
|
+
this._comments = [];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(CloudFeedbackRating.prototype, "score", {
|
|
8
|
+
get: function () {
|
|
9
|
+
return this._score;
|
|
10
|
+
},
|
|
11
|
+
set: function (value) {
|
|
12
|
+
this._score = value;
|
|
13
|
+
},
|
|
14
|
+
enumerable: false,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(CloudFeedbackRating.prototype, "comments", {
|
|
18
|
+
get: function () {
|
|
19
|
+
return this._comments;
|
|
20
|
+
},
|
|
21
|
+
set: function (value) {
|
|
22
|
+
this._comments = value;
|
|
23
|
+
},
|
|
24
|
+
enumerable: false,
|
|
25
|
+
configurable: true
|
|
26
|
+
});
|
|
27
|
+
CloudFeedbackRating.prototype.addComment = function (comment) {
|
|
28
|
+
if (this.comments) {
|
|
29
|
+
this.comments.push(comment);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.comments = [comment];
|
|
33
|
+
}
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
return CloudFeedbackRating;
|
|
37
|
+
}());
|
|
38
|
+
exports.default = CloudFeedbackRating;
|
|
39
|
+
//# sourceMappingURL=CloudFeedbackRating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudFeedbackRating.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/api/CloudFeedbackRating.ts"],"names":[],"mappings":";;AAEA;IAAA;QAEY,cAAS,GAAa,EAAE,CAAC;IA0BrC,CAAC;IAxBG,sBAAI,sCAAK;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,yCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAe;YACxB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMM,wCAAU,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,0BAAC;AAAD,CAAC,AA5BD,IA4BC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import CloudFilterFeedbackRequest from '../request/CloudFilterFeedbackRequest';
|
|
2
|
+
import FilterFeedbackRequest from '../../common/request/FilterFeedbackRequest';
|
|
3
|
+
export default class CloudFilterFeedbackApiRequest {
|
|
4
|
+
private _startDate;
|
|
5
|
+
private _endDate;
|
|
6
|
+
private _category;
|
|
7
|
+
private _userId;
|
|
8
|
+
private _feedbackId;
|
|
9
|
+
private _approvalStatus;
|
|
10
|
+
constructor(filterRequest: CloudFilterFeedbackRequest | FilterFeedbackRequest | undefined);
|
|
11
|
+
get startDate(): string | undefined;
|
|
12
|
+
set startDate(value: string | undefined);
|
|
13
|
+
get endDate(): string | undefined;
|
|
14
|
+
set endDate(value: string | undefined);
|
|
15
|
+
get category(): string | undefined;
|
|
16
|
+
set category(value: string | undefined);
|
|
17
|
+
get userId(): string | undefined;
|
|
18
|
+
set userId(value: string | undefined);
|
|
19
|
+
get feedbackId(): string | undefined;
|
|
20
|
+
set feedbackId(value: string | undefined);
|
|
21
|
+
get approvalStatus(): string | undefined;
|
|
22
|
+
set approvalStatus(value: string | undefined);
|
|
23
|
+
private fromCloudFilterFeedbackRequest;
|
|
24
|
+
private fromFilterFeedbackRequest;
|
|
25
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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 CloudFilterFeedbackRequest_1 = __importDefault(require("../request/CloudFilterFeedbackRequest"));
|
|
7
|
+
var FilterFeedbackRequest_1 = __importDefault(require("../../common/request/FilterFeedbackRequest"));
|
|
8
|
+
var moment_1 = __importDefault(require("moment"));
|
|
9
|
+
var TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
|
|
10
|
+
var ApprovalStatus_1 = require("../../../../common/constants/ApprovalStatus");
|
|
11
|
+
var CloudFilterFeedbackApiRequest = /** @class */ (function () {
|
|
12
|
+
function CloudFilterFeedbackApiRequest(filterRequest) {
|
|
13
|
+
if (filterRequest instanceof CloudFilterFeedbackRequest_1.default) {
|
|
14
|
+
this.fromCloudFilterFeedbackRequest(filterRequest);
|
|
15
|
+
}
|
|
16
|
+
else if (filterRequest instanceof FilterFeedbackRequest_1.default) {
|
|
17
|
+
this.fromFilterFeedbackRequest(filterRequest);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(CloudFilterFeedbackApiRequest.prototype, "startDate", {
|
|
21
|
+
get: function () {
|
|
22
|
+
return this._startDate;
|
|
23
|
+
},
|
|
24
|
+
set: function (value) {
|
|
25
|
+
this._startDate = value;
|
|
26
|
+
},
|
|
27
|
+
enumerable: false,
|
|
28
|
+
configurable: true
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(CloudFilterFeedbackApiRequest.prototype, "endDate", {
|
|
31
|
+
get: function () {
|
|
32
|
+
return this._endDate;
|
|
33
|
+
},
|
|
34
|
+
set: function (value) {
|
|
35
|
+
this._endDate = value;
|
|
36
|
+
},
|
|
37
|
+
enumerable: false,
|
|
38
|
+
configurable: true
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(CloudFilterFeedbackApiRequest.prototype, "category", {
|
|
41
|
+
get: function () {
|
|
42
|
+
return this._category;
|
|
43
|
+
},
|
|
44
|
+
set: function (value) {
|
|
45
|
+
this._category = value;
|
|
46
|
+
},
|
|
47
|
+
enumerable: false,
|
|
48
|
+
configurable: true
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(CloudFilterFeedbackApiRequest.prototype, "userId", {
|
|
51
|
+
get: function () {
|
|
52
|
+
return this._userId;
|
|
53
|
+
},
|
|
54
|
+
set: function (value) {
|
|
55
|
+
this._userId = value;
|
|
56
|
+
},
|
|
57
|
+
enumerable: false,
|
|
58
|
+
configurable: true
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(CloudFilterFeedbackApiRequest.prototype, "feedbackId", {
|
|
61
|
+
get: function () {
|
|
62
|
+
return this._feedbackId;
|
|
63
|
+
},
|
|
64
|
+
set: function (value) {
|
|
65
|
+
this._feedbackId = value;
|
|
66
|
+
},
|
|
67
|
+
enumerable: false,
|
|
68
|
+
configurable: true
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(CloudFilterFeedbackApiRequest.prototype, "approvalStatus", {
|
|
71
|
+
get: function () {
|
|
72
|
+
return this._approvalStatus;
|
|
73
|
+
},
|
|
74
|
+
set: function (value) {
|
|
75
|
+
this._approvalStatus = value;
|
|
76
|
+
},
|
|
77
|
+
enumerable: false,
|
|
78
|
+
configurable: true
|
|
79
|
+
});
|
|
80
|
+
CloudFilterFeedbackApiRequest.prototype.fromCloudFilterFeedbackRequest = function (filterRequest) {
|
|
81
|
+
if (filterRequest.startDate) {
|
|
82
|
+
this.startDate = (0, moment_1.default)(filterRequest.startDate, TranslationConstants_1.SUPPORTED_INPUT_DATE_FORMATS).format(TranslationConstants_1.CLOUD_DATE_FORMAT);
|
|
83
|
+
}
|
|
84
|
+
if (filterRequest.endDate) {
|
|
85
|
+
this.endDate = (0, moment_1.default)(filterRequest.endDate, TranslationConstants_1.SUPPORTED_INPUT_DATE_FORMATS).format(TranslationConstants_1.CLOUD_DATE_FORMAT);
|
|
86
|
+
}
|
|
87
|
+
if (filterRequest.feedbackCategory) {
|
|
88
|
+
this.category = filterRequest.feedbackCategory.toLowerCase();
|
|
89
|
+
}
|
|
90
|
+
if (filterRequest.approvalStatus) {
|
|
91
|
+
this.approvalStatus = (0, ApprovalStatus_1.getApprovalStatusKeyByValue)(filterRequest.approvalStatus);
|
|
92
|
+
}
|
|
93
|
+
this.userId = filterRequest.user;
|
|
94
|
+
this.feedbackId = filterRequest.feedbackId;
|
|
95
|
+
};
|
|
96
|
+
CloudFilterFeedbackApiRequest.prototype.fromFilterFeedbackRequest = function (filterRequest) {
|
|
97
|
+
if (filterRequest.startDate) {
|
|
98
|
+
this.startDate = (0, moment_1.default)(filterRequest.startDate, TranslationConstants_1.SUPPORTED_INPUT_DATE_FORMATS).format(TranslationConstants_1.CLOUD_DATE_FORMAT);
|
|
99
|
+
}
|
|
100
|
+
if (filterRequest.endDate) {
|
|
101
|
+
this.endDate = (0, moment_1.default)(filterRequest.endDate, TranslationConstants_1.SUPPORTED_INPUT_DATE_FORMATS).format(TranslationConstants_1.CLOUD_DATE_FORMAT);
|
|
102
|
+
}
|
|
103
|
+
if (filterRequest.approvalStatus) {
|
|
104
|
+
this.approvalStatus = (0, ApprovalStatus_1.getApprovalStatusKeyByValue)(filterRequest.approvalStatus);
|
|
105
|
+
}
|
|
106
|
+
this.userId = filterRequest.user;
|
|
107
|
+
};
|
|
108
|
+
return CloudFilterFeedbackApiRequest;
|
|
109
|
+
}());
|
|
110
|
+
exports.default = CloudFilterFeedbackApiRequest;
|
|
111
|
+
//# sourceMappingURL=CloudFilterFeedbackApiRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudFilterFeedbackApiRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/api/CloudFilterFeedbackApiRequest.ts"],"names":[],"mappings":";;;;;AAAA,qGAA+E;AAC/E,qGAA+E;AAC/E,kDAA4B;AAC5B,0FAAoH;AACpH,8EAA0F;AAE1F;IAQI,uCAAY,aAA6E;QACrF,IAAI,aAAa,YAAY,oCAA0B,EAAE;YACrD,IAAI,CAAC,8BAA8B,CAAC,aAAa,CAAC,CAAC;SACtD;aAAM,IAAI,aAAa,YAAY,+BAAqB,EAAE;YACvD,IAAI,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;SACjD;IACL,CAAC;IAED,sBAAI,oDAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,kDAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAyB;YACjC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,mDAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,iDAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,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,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMO,sEAA8B,GAAtC,UAAuC,aAAyC;QAC5E,IAAI,aAAa,CAAC,SAAS,EAAE;YACzB,IAAI,CAAC,SAAS,GAAG,IAAA,gBAAM,EAAC,aAAa,CAAC,SAAS,EAAE,mDAA4B,CAAC,CAAC,MAAM,CAAC,wCAAiB,CAAC,CAAC;SAC5G;QAED,IAAI,aAAa,CAAC,OAAO,EAAE;YACvB,IAAI,CAAC,OAAO,GAAG,IAAA,gBAAM,EAAC,aAAa,CAAC,OAAO,EAAE,mDAA4B,CAAC,CAAC,MAAM,CAAC,wCAAiB,CAAC,CAAC;SACxG;QAED,IAAI,aAAa,CAAC,gBAAgB,EAAE;YAChC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC;SAChE;QAED,IAAI,aAAa,CAAC,cAAc,EAAE;YAC9B,IAAI,CAAC,cAAc,GAAG,IAAA,4CAA2B,EAAC,aAAa,CAAC,cAAc,CAAC,CAAC;SACnF;QAED,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IAC/C,CAAC;IAEO,iEAAyB,GAAjC,UAAkC,aAAoC;QAClE,IAAI,aAAa,CAAC,SAAS,EAAE;YACzB,IAAI,CAAC,SAAS,GAAG,IAAA,gBAAM,EAAC,aAAa,CAAC,SAAS,EAAE,mDAA4B,CAAC,CAAC,MAAM,CAAC,wCAAiB,CAAC,CAAC;SAC5G;QAED,IAAI,aAAa,CAAC,OAAO,EAAE;YACvB,IAAI,CAAC,OAAO,GAAG,IAAA,gBAAM,EAAC,aAAa,CAAC,OAAO,EAAE,mDAA4B,CAAC,CAAC,MAAM,CAAC,wCAAiB,CAAC,CAAC;SACxG;QAED,IAAI,aAAa,CAAC,cAAc,EAAE;YAC9B,IAAI,CAAC,cAAc,GAAG,IAAA,4CAA2B,EAAC,aAAa,CAAC,cAAc,CAAC,CAAC;SACnF;QAED,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC;IACrC,CAAC;IACL,oCAAC;AAAD,CAAC,AApGD,IAoGC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default class CloudTranslationFeedback {
|
|
2
|
+
private _sourceLanguageId;
|
|
3
|
+
private _targetLanguageId;
|
|
4
|
+
private _model;
|
|
5
|
+
private _sourceText;
|
|
6
|
+
private _targetMTText;
|
|
7
|
+
private _selectedText;
|
|
8
|
+
private _metadata;
|
|
9
|
+
private _numberOfSegments;
|
|
10
|
+
private _qualityEstimationMT;
|
|
11
|
+
get sourceLanguageId(): string | undefined;
|
|
12
|
+
set sourceLanguageId(value: string | undefined);
|
|
13
|
+
get targetLanguageId(): string | undefined;
|
|
14
|
+
set targetLanguageId(value: string | undefined);
|
|
15
|
+
get model(): string | undefined;
|
|
16
|
+
set model(value: string | undefined);
|
|
17
|
+
get sourceText(): string | undefined;
|
|
18
|
+
set sourceText(value: string | undefined);
|
|
19
|
+
get targetMTText(): string | undefined;
|
|
20
|
+
set targetMTText(value: string | undefined);
|
|
21
|
+
get selectedText(): string | undefined;
|
|
22
|
+
set selectedText(value: string | undefined);
|
|
23
|
+
get metadata(): string | undefined;
|
|
24
|
+
set metadata(value: string | undefined);
|
|
25
|
+
get numberOfSegments(): number | undefined;
|
|
26
|
+
set numberOfSegments(value: number | undefined);
|
|
27
|
+
get qualityEstimationMT(): string | undefined;
|
|
28
|
+
set qualityEstimationMT(value: string | undefined);
|
|
29
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var CloudTranslationFeedback = /** @class */ (function () {
|
|
4
|
+
function CloudTranslationFeedback() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(CloudTranslationFeedback.prototype, "sourceLanguageId", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._sourceLanguageId;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._sourceLanguageId = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(CloudTranslationFeedback.prototype, "targetLanguageId", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._targetLanguageId;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._targetLanguageId = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(CloudTranslationFeedback.prototype, "model", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._model;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._model = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(CloudTranslationFeedback.prototype, "sourceText", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this._sourceText;
|
|
39
|
+
},
|
|
40
|
+
set: function (value) {
|
|
41
|
+
this._sourceText = value;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(CloudTranslationFeedback.prototype, "targetMTText", {
|
|
47
|
+
get: function () {
|
|
48
|
+
return this._targetMTText;
|
|
49
|
+
},
|
|
50
|
+
set: function (value) {
|
|
51
|
+
this._targetMTText = value;
|
|
52
|
+
},
|
|
53
|
+
enumerable: false,
|
|
54
|
+
configurable: true
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(CloudTranslationFeedback.prototype, "selectedText", {
|
|
57
|
+
get: function () {
|
|
58
|
+
return this._selectedText;
|
|
59
|
+
},
|
|
60
|
+
set: function (value) {
|
|
61
|
+
this._selectedText = value;
|
|
62
|
+
},
|
|
63
|
+
enumerable: false,
|
|
64
|
+
configurable: true
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(CloudTranslationFeedback.prototype, "metadata", {
|
|
67
|
+
get: function () {
|
|
68
|
+
return this._metadata;
|
|
69
|
+
},
|
|
70
|
+
set: function (value) {
|
|
71
|
+
this._metadata = value;
|
|
72
|
+
},
|
|
73
|
+
enumerable: false,
|
|
74
|
+
configurable: true
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(CloudTranslationFeedback.prototype, "numberOfSegments", {
|
|
77
|
+
get: function () {
|
|
78
|
+
return this._numberOfSegments;
|
|
79
|
+
},
|
|
80
|
+
set: function (value) {
|
|
81
|
+
this._numberOfSegments = value;
|
|
82
|
+
},
|
|
83
|
+
enumerable: false,
|
|
84
|
+
configurable: true
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(CloudTranslationFeedback.prototype, "qualityEstimationMT", {
|
|
87
|
+
get: function () {
|
|
88
|
+
return this._qualityEstimationMT;
|
|
89
|
+
},
|
|
90
|
+
set: function (value) {
|
|
91
|
+
this._qualityEstimationMT = value;
|
|
92
|
+
},
|
|
93
|
+
enumerable: false,
|
|
94
|
+
configurable: true
|
|
95
|
+
});
|
|
96
|
+
return CloudTranslationFeedback;
|
|
97
|
+
}());
|
|
98
|
+
exports.default = CloudTranslationFeedback;
|
|
99
|
+
//# sourceMappingURL=CloudTranslationFeedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudTranslationFeedback.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/api/CloudTranslationFeedback.ts"],"names":[],"mappings":";;AAAA;IAAA;IAkFA,CAAC;IAvEG,sBAAI,sDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,sDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,2CAAK;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,gDAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,kDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,kDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,8CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,sDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,yDAAmB;aAAvB;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;aAED,UAAwB,KAAyB;YAC7C,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QACtC,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AAlFD,IAkFC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import AuditData from '../../common/model/AuditData';
|
|
2
|
+
export default class CloudAuditData extends AuditData {
|
|
3
|
+
private _createdByAccountId;
|
|
4
|
+
private _createdByClientId;
|
|
5
|
+
private _createdByUserId;
|
|
6
|
+
private _lastModifiedByAccountId;
|
|
7
|
+
private _lastModifiedByClientId;
|
|
8
|
+
private _lastModifiedByUserId;
|
|
9
|
+
get createdByAccountId(): string | undefined;
|
|
10
|
+
set createdByAccountId(value: string | undefined);
|
|
11
|
+
get createdByClientId(): string | undefined;
|
|
12
|
+
set createdByClientId(value: string | undefined);
|
|
13
|
+
get createdByUserId(): string | undefined;
|
|
14
|
+
set createdByUserId(value: string | undefined);
|
|
15
|
+
get lastModifiedByAccountId(): string | undefined;
|
|
16
|
+
set lastModifiedByAccountId(value: string | undefined);
|
|
17
|
+
get lastModifiedByClientId(): string | undefined;
|
|
18
|
+
set lastModifiedByClientId(value: string | undefined);
|
|
19
|
+
get lastModifiedByUserId(): string | undefined;
|
|
20
|
+
set lastModifiedByUserId(value: string | undefined);
|
|
21
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 AuditData_1 = __importDefault(require("../../common/model/AuditData"));
|
|
22
|
+
var CloudAuditData = /** @class */ (function (_super) {
|
|
23
|
+
__extends(CloudAuditData, _super);
|
|
24
|
+
function CloudAuditData() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(CloudAuditData.prototype, "createdByAccountId", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this._createdByAccountId;
|
|
30
|
+
},
|
|
31
|
+
set: function (value) {
|
|
32
|
+
this._createdByAccountId = value;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(CloudAuditData.prototype, "createdByClientId", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._createdByClientId;
|
|
40
|
+
},
|
|
41
|
+
set: function (value) {
|
|
42
|
+
this._createdByClientId = value;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(CloudAuditData.prototype, "createdByUserId", {
|
|
48
|
+
get: function () {
|
|
49
|
+
return this._createdByUserId;
|
|
50
|
+
},
|
|
51
|
+
set: function (value) {
|
|
52
|
+
this._createdByUserId = value;
|
|
53
|
+
},
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(CloudAuditData.prototype, "lastModifiedByAccountId", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this._lastModifiedByAccountId;
|
|
60
|
+
},
|
|
61
|
+
set: function (value) {
|
|
62
|
+
this._lastModifiedByAccountId = value;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(CloudAuditData.prototype, "lastModifiedByClientId", {
|
|
68
|
+
get: function () {
|
|
69
|
+
return this._lastModifiedByClientId;
|
|
70
|
+
},
|
|
71
|
+
set: function (value) {
|
|
72
|
+
this._lastModifiedByClientId = value;
|
|
73
|
+
},
|
|
74
|
+
enumerable: false,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(CloudAuditData.prototype, "lastModifiedByUserId", {
|
|
78
|
+
get: function () {
|
|
79
|
+
return this._lastModifiedByUserId;
|
|
80
|
+
},
|
|
81
|
+
set: function (value) {
|
|
82
|
+
this._lastModifiedByUserId = value;
|
|
83
|
+
},
|
|
84
|
+
enumerable: false,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
87
|
+
return CloudAuditData;
|
|
88
|
+
}(AuditData_1.default));
|
|
89
|
+
exports.default = CloudAuditData;
|
|
90
|
+
//# sourceMappingURL=CloudAuditData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudAuditData.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/model/CloudAuditData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,2EAAqD;AAErD;IAA4C,kCAAS;IAArD;;IAuDA,CAAC;IA/CG,sBAAI,8CAAkB;aAAtB;YACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;aAED,UAAuB,KAAyB;YAC5C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;QACrC,CAAC;;;OAJA;IAMD,sBAAI,6CAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAyB;YAC3C,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,sBAAI,2CAAe;aAAnB;YACI,OAAO,IAAI,CAAC,gBAAgB,CAAC;QACjC,CAAC;aAED,UAAoB,KAAyB;YACzC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAClC,CAAC;;;OAJA;IAMD,sBAAI,mDAAuB;aAA3B;YACI,OAAO,IAAI,CAAC,wBAAwB,CAAC;QACzC,CAAC;aAED,UAA4B,KAAyB;YACjD,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC;QAC1C,CAAC;;;OAJA;IAMD,sBAAI,kDAAsB;aAA1B;YACI,OAAO,IAAI,CAAC,uBAAuB,CAAC;QACxC,CAAC;aAED,UAA2B,KAAyB;YAChD,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC;QACzC,CAAC;;;OAJA;IAMD,sBAAI,gDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAAyB;YAC9C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAKL,qBAAC;AAAD,CAAC,AAvDD,CAA4C,mBAAS,GAuDpD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudFeedbackSortCriteria = void 0;
|
|
4
|
+
var CloudFeedbackSortCriteria;
|
|
5
|
+
(function (CloudFeedbackSortCriteria) {
|
|
6
|
+
CloudFeedbackSortCriteria["DATE"] = "date";
|
|
7
|
+
CloudFeedbackSortCriteria["LANGUAGE_PAIR"] = "lp";
|
|
8
|
+
})(CloudFeedbackSortCriteria = exports.CloudFeedbackSortCriteria || (exports.CloudFeedbackSortCriteria = {}));
|
|
9
|
+
//# sourceMappingURL=CloudFeedbackSortCriteria.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudFeedbackSortCriteria.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/model/CloudFeedbackSortCriteria.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,0CAAa,CAAA;IACb,iDAAoB,CAAA;AACxB,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import CreateFeedbackRequest from '../../common/request/CreateFeedbackRequest';
|
|
2
|
+
import { QualityEstimation } from '../../../../common/constants/QualityEstimation';
|
|
3
|
+
import CloudFeedbackApiModel from '../api/CloudFeedbackApiModel';
|
|
4
|
+
export default class CloudCreateFeedbackRequest extends CreateFeedbackRequest {
|
|
5
|
+
private _translationMetadata;
|
|
6
|
+
private _numberOfSegments;
|
|
7
|
+
private _rating;
|
|
8
|
+
private _qualityEstimationMT;
|
|
9
|
+
private _qualityEstimation;
|
|
10
|
+
get translationMetadata(): string | undefined;
|
|
11
|
+
set translationMetadata(value: string | undefined);
|
|
12
|
+
get numberOfSegments(): number | undefined;
|
|
13
|
+
set numberOfSegments(value: number | undefined);
|
|
14
|
+
get rating(): number | undefined;
|
|
15
|
+
set rating(value: number | undefined);
|
|
16
|
+
get qualityEstimationMT(): QualityEstimation | undefined;
|
|
17
|
+
set qualityEstimationMT(value: QualityEstimation | undefined);
|
|
18
|
+
get qualityEstimation(): QualityEstimation | undefined;
|
|
19
|
+
set qualityEstimation(value: QualityEstimation | undefined);
|
|
20
|
+
toCloudFeedbackApiModel(): CloudFeedbackApiModel;
|
|
21
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 CloudFeedbackApiModel_1 = __importDefault(require("../api/CloudFeedbackApiModel"));
|
|
23
|
+
var CloudTranslationFeedback_1 = __importDefault(require("../api/CloudTranslationFeedback"));
|
|
24
|
+
var CloudFeedbackImprovement_1 = __importDefault(require("../api/CloudFeedbackImprovement"));
|
|
25
|
+
var CloudFeedbackRating_1 = __importDefault(require("../api/CloudFeedbackRating"));
|
|
26
|
+
var CloudCreateFeedbackRequest = /** @class */ (function (_super) {
|
|
27
|
+
__extends(CloudCreateFeedbackRequest, _super);
|
|
28
|
+
function CloudCreateFeedbackRequest() {
|
|
29
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
+
}
|
|
31
|
+
Object.defineProperty(CloudCreateFeedbackRequest.prototype, "translationMetadata", {
|
|
32
|
+
get: function () {
|
|
33
|
+
return this._translationMetadata;
|
|
34
|
+
},
|
|
35
|
+
set: function (value) {
|
|
36
|
+
this._translationMetadata = value;
|
|
37
|
+
},
|
|
38
|
+
enumerable: false,
|
|
39
|
+
configurable: true
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(CloudCreateFeedbackRequest.prototype, "numberOfSegments", {
|
|
42
|
+
get: function () {
|
|
43
|
+
return this._numberOfSegments;
|
|
44
|
+
},
|
|
45
|
+
set: function (value) {
|
|
46
|
+
this._numberOfSegments = value;
|
|
47
|
+
},
|
|
48
|
+
enumerable: false,
|
|
49
|
+
configurable: true
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(CloudCreateFeedbackRequest.prototype, "rating", {
|
|
52
|
+
get: function () {
|
|
53
|
+
return this._rating;
|
|
54
|
+
},
|
|
55
|
+
set: function (value) {
|
|
56
|
+
this._rating = value;
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(CloudCreateFeedbackRequest.prototype, "qualityEstimationMT", {
|
|
62
|
+
get: function () {
|
|
63
|
+
return this._qualityEstimationMT;
|
|
64
|
+
},
|
|
65
|
+
set: function (value) {
|
|
66
|
+
this._qualityEstimationMT = value;
|
|
67
|
+
},
|
|
68
|
+
enumerable: false,
|
|
69
|
+
configurable: true
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(CloudCreateFeedbackRequest.prototype, "qualityEstimation", {
|
|
72
|
+
get: function () {
|
|
73
|
+
return this._qualityEstimation;
|
|
74
|
+
},
|
|
75
|
+
set: function (value) {
|
|
76
|
+
this._qualityEstimation = value;
|
|
77
|
+
},
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
CloudCreateFeedbackRequest.prototype.toCloudFeedbackApiModel = function () {
|
|
82
|
+
var feedbackApiModel = new CloudFeedbackApiModel_1.default();
|
|
83
|
+
var translation = new CloudTranslationFeedback_1.default();
|
|
84
|
+
translation.sourceLanguageId = this.sourceLanguageId;
|
|
85
|
+
translation.targetLanguageId = this.targetLanguageId;
|
|
86
|
+
translation.model = this.model;
|
|
87
|
+
translation.sourceText = this.sourceText;
|
|
88
|
+
translation.targetMTText = this.targetText;
|
|
89
|
+
translation.metadata = this.translationMetadata;
|
|
90
|
+
translation.numberOfSegments = this.numberOfSegments;
|
|
91
|
+
translation.qualityEstimationMT = this.qualityEstimationMT;
|
|
92
|
+
var rating = new CloudFeedbackRating_1.default();
|
|
93
|
+
rating.score = this.rating;
|
|
94
|
+
rating.comments = this.comments;
|
|
95
|
+
feedbackApiModel.translation = translation;
|
|
96
|
+
feedbackApiModel.improvement = new CloudFeedbackImprovement_1.default(this.suggestedTranslation);
|
|
97
|
+
feedbackApiModel.rating = rating;
|
|
98
|
+
feedbackApiModel.qualityEstimation = this.qualityEstimation;
|
|
99
|
+
return feedbackApiModel;
|
|
100
|
+
};
|
|
101
|
+
return CloudCreateFeedbackRequest;
|
|
102
|
+
}(CreateFeedbackRequest_1.default));
|
|
103
|
+
exports.default = CloudCreateFeedbackRequest;
|
|
104
|
+
//# sourceMappingURL=CloudCreateFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudCreateFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/request/CloudCreateFeedbackRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qGAA+E;AAE/E,uFAAiE;AACjE,6FAAuE;AACvE,6FAAuE;AACvE,mFAA6D;AAE7D;IAAwD,8CAAqB;IAA7E;;IAoEA,CAAC;IA7DG,sBAAI,2DAAmB;aAAvB;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;aAED,UAAwB,KAAyB;YAC7C,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QACtC,CAAC;;;OAJA;IAMD,sBAAI,wDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,8CAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,2DAAmB;aAAvB;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;aAED,UAAwB,KAAoC;YACxD,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QACtC,CAAC;;;OAJA;IAMD,sBAAI,yDAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAoC;YACtD,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMM,4DAAuB,GAA9B;QACI,IAAM,gBAAgB,GAAG,IAAI,+BAAqB,EAAE,CAAC;QACrD,IAAM,WAAW,GAAG,IAAI,kCAAwB,EAAE,CAAC;QACnD,WAAW,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACrD,WAAW,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACrD,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAC/B,WAAW,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACzC,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC;QAC3C,WAAW,CAAC,QAAQ,GAAG,IAAI,CAAC,mBAAmB,CAAC;QAChD,WAAW,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACrD,WAAW,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC;QAC3D,IAAM,MAAM,GAAG,IAAI,6BAAmB,EAAE,CAAC;QACzC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAChC,gBAAgB,CAAC,WAAW,GAAG,WAAW,CAAC;QAC3C,gBAAgB,CAAC,WAAW,GAAG,IAAI,kCAAwB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvF,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC;QACjC,gBAAgB,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAE5D,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACL,iCAAC;AAAD,CAAC,AApED,CAAwD,+BAAqB,GAoE5E"}
|
|
@@ -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 CloudDeleteFeedbackRequest = /** @class */ (function (_super) {
|
|
23
|
+
__extends(CloudDeleteFeedbackRequest, _super);
|
|
24
|
+
function CloudDeleteFeedbackRequest() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
return CloudDeleteFeedbackRequest;
|
|
28
|
+
}(DeleteFeedbackRequest_1.default));
|
|
29
|
+
exports.default = CloudDeleteFeedbackRequest;
|
|
30
|
+
//# sourceMappingURL=CloudDeleteFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudDeleteFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/request/CloudDeleteFeedbackRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qGAA+E;AAE/E;IAAwD,8CAAqB;IAA7E;;IAA+E,CAAC;IAAD,iCAAC;AAAD,CAAC,AAAhF,CAAwD,+BAAqB,GAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Order } from '../../../../common/constants/Order';
|
|
2
|
+
import { CloudFeedbackSortCriteria } from '../model/CloudFeedbackSortCriteria';
|
|
3
|
+
export default class CloudFeedbackSortRequest {
|
|
4
|
+
private _criteria;
|
|
5
|
+
private _order;
|
|
6
|
+
get criteria(): CloudFeedbackSortCriteria | undefined;
|
|
7
|
+
set criteria(value: CloudFeedbackSortCriteria | undefined);
|
|
8
|
+
get order(): Order | undefined;
|
|
9
|
+
set order(value: Order | undefined);
|
|
10
|
+
}
|