@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,207 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var CloudFeedbackListResponse_1 = __importDefault(require("../api/CloudFeedbackListResponse"));
|
|
18
|
+
var CloudFilterFeedbackRequest_1 = __importDefault(require("../request/CloudFilterFeedbackRequest"));
|
|
19
|
+
var CloudFilterFeedbackApiRequest_1 = __importDefault(require("../api/CloudFilterFeedbackApiRequest"));
|
|
20
|
+
var CloudFeedbackValidator_1 = __importDefault(require("../validators/CloudFeedbackValidator"));
|
|
21
|
+
var TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
|
|
22
|
+
var CloudFeedbackApiModel_1 = __importDefault(require("../api/CloudFeedbackApiModel"));
|
|
23
|
+
var CloudCreateFeedbackRequest_1 = __importDefault(require("../request/CloudCreateFeedbackRequest"));
|
|
24
|
+
var CloudUpdateFeedbackRequest_1 = __importDefault(require("../request/CloudUpdateFeedbackRequest"));
|
|
25
|
+
var CloudFeedbackApprovalListUpdateRequest_1 = __importDefault(require("../api/CloudFeedbackApprovalListUpdateRequest"));
|
|
26
|
+
var CloudFeedbackApprovalUpdateRequest_1 = __importDefault(require("../api/CloudFeedbackApprovalUpdateRequest"));
|
|
27
|
+
var ApprovalStatus_1 = require("../../../../common/constants/ApprovalStatus");
|
|
28
|
+
var CloudDeleteFeedbackRequest_1 = __importDefault(require("../request/CloudDeleteFeedbackRequest"));
|
|
29
|
+
var PAGE_SIZE_QUERY_PARAM = 'pageSize';
|
|
30
|
+
var SORT_QUERY_PARAM = 'sort';
|
|
31
|
+
var CloudFeedbackService = /** @class */ (function () {
|
|
32
|
+
function CloudFeedbackService(client, token, selfInfo) {
|
|
33
|
+
this._validator = new CloudFeedbackValidator_1.default();
|
|
34
|
+
this._client = client;
|
|
35
|
+
this._token = token;
|
|
36
|
+
this._selfInfo = selfInfo;
|
|
37
|
+
}
|
|
38
|
+
CloudFeedbackService.prototype.getAllFeedback = function (pageNumber, pageSize, filterRequest) {
|
|
39
|
+
return this.performGetAllFeedback(pageNumber, pageSize, filterRequest)
|
|
40
|
+
.then(function (response) { return Promise.resolve(response.toResult()); })
|
|
41
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
42
|
+
};
|
|
43
|
+
CloudFeedbackService.prototype.getAllCloudFeedback = function (pageNumber, pageSize, filterRequest) {
|
|
44
|
+
return this.performGetAllFeedback(pageNumber, pageSize, filterRequest)
|
|
45
|
+
.then(function (response) { return Promise.resolve(response.toCloudResult()); })
|
|
46
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
47
|
+
};
|
|
48
|
+
CloudFeedbackService.prototype.createFeedback = function (feedbackRequest) {
|
|
49
|
+
var validationError = this._validator.validateSingleComment(feedbackRequest);
|
|
50
|
+
if (validationError) {
|
|
51
|
+
return Promise.reject({ message: validationError });
|
|
52
|
+
}
|
|
53
|
+
return this.performCreateFeedback(feedbackRequest)
|
|
54
|
+
.then(function (response) { return Promise.resolve(response.toResult()); })
|
|
55
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
56
|
+
};
|
|
57
|
+
CloudFeedbackService.prototype.createCloudFeedback = function (feedbackRequest) {
|
|
58
|
+
var validationError = this._validator.validateCreateFeedbackRequest(feedbackRequest);
|
|
59
|
+
if (validationError) {
|
|
60
|
+
return Promise.reject({ message: validationError });
|
|
61
|
+
}
|
|
62
|
+
return this.performCreateFeedback(feedbackRequest)
|
|
63
|
+
.then(function (response) { return Promise.resolve(response.toCloudResult()); })
|
|
64
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
65
|
+
};
|
|
66
|
+
CloudFeedbackService.prototype.updateFeedback = function (feedbackRequest) {
|
|
67
|
+
return this.performUpdateFeedback(feedbackRequest)
|
|
68
|
+
.then(function (response) { return Promise.resolve(response.toResult()); })
|
|
69
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
70
|
+
};
|
|
71
|
+
CloudFeedbackService.prototype.updateCloudFeedback = function (feedbackRequest) {
|
|
72
|
+
return this.performUpdateFeedback(feedbackRequest)
|
|
73
|
+
.then(function (response) { return Promise.resolve(response.toCloudResult()); })
|
|
74
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
75
|
+
};
|
|
76
|
+
CloudFeedbackService.prototype.updateFeedbackApproval = function (feedbackRequest) {
|
|
77
|
+
return this.performUpdateApprovalRequest(feedbackRequest)
|
|
78
|
+
.then(function (response) { return Promise.resolve(response.toResult()); })
|
|
79
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
80
|
+
};
|
|
81
|
+
CloudFeedbackService.prototype.updateCloudFeedbackApproval = function (feedbackRequest) {
|
|
82
|
+
return this.performUpdateApprovalRequest(feedbackRequest)
|
|
83
|
+
.then(function (response) { return Promise.resolve(response.toCloudResult()); })
|
|
84
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
85
|
+
};
|
|
86
|
+
CloudFeedbackService.prototype.deleteFeedback = function (feedbackRequest) {
|
|
87
|
+
var cloudFeedbackRequest = new CloudDeleteFeedbackRequest_1.default();
|
|
88
|
+
cloudFeedbackRequest.feedbackId = feedbackRequest.feedbackId;
|
|
89
|
+
return this.deleteCloudFeedback(cloudFeedbackRequest);
|
|
90
|
+
};
|
|
91
|
+
CloudFeedbackService.prototype.deleteCloudFeedback = function (feedbackRequest) {
|
|
92
|
+
var _a;
|
|
93
|
+
var validationError = this._validator.validateDeleteFeedbackRequest(feedbackRequest);
|
|
94
|
+
if (validationError) {
|
|
95
|
+
return Promise.reject({ message: validationError });
|
|
96
|
+
}
|
|
97
|
+
return this._client
|
|
98
|
+
.requestJson(this._token, 'DELETE', "/v4/accounts/".concat((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId, "/feedback/translations/").concat(feedbackRequest.feedbackId))
|
|
99
|
+
.then(function () { return Promise.resolve(null); })
|
|
100
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
101
|
+
};
|
|
102
|
+
CloudFeedbackService.prototype.performCreateFeedback = function (feedbackRequest) {
|
|
103
|
+
var _a;
|
|
104
|
+
var apiRequest;
|
|
105
|
+
if (feedbackRequest instanceof CloudCreateFeedbackRequest_1.default) {
|
|
106
|
+
var cloudCreateFeedbackRequest = feedbackRequest;
|
|
107
|
+
apiRequest = cloudCreateFeedbackRequest.toCloudFeedbackApiModel();
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
apiRequest = feedbackRequest.toCloudFeedbackApiModel();
|
|
111
|
+
}
|
|
112
|
+
return this._client
|
|
113
|
+
.requestJson(this._token, 'POST', "/v4/accounts/".concat((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId, "/feedback/translations/"), apiRequest)
|
|
114
|
+
.then(function (response) { return Promise.resolve(new CloudFeedbackApiModel_1.default(response)); })
|
|
115
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
116
|
+
};
|
|
117
|
+
CloudFeedbackService.prototype.performUpdateFeedback = function (feedbackRequest) {
|
|
118
|
+
var _a;
|
|
119
|
+
var validationError = this._validator.validateUpdateFeedbackRequest(feedbackRequest);
|
|
120
|
+
if (validationError) {
|
|
121
|
+
return Promise.reject({ message: validationError });
|
|
122
|
+
}
|
|
123
|
+
var apiRequest;
|
|
124
|
+
if (feedbackRequest instanceof CloudUpdateFeedbackRequest_1.default) {
|
|
125
|
+
var cloudUpdateFeedbackRequest = feedbackRequest;
|
|
126
|
+
apiRequest = cloudUpdateFeedbackRequest.toCloudFeedbackApiModel();
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
apiRequest = feedbackRequest.toCloudFeedbackApiModel();
|
|
130
|
+
}
|
|
131
|
+
return this._client
|
|
132
|
+
.requestJson(this._token, 'PUT', "/v4/accounts/".concat((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId, "/feedback/translations/").concat(feedbackRequest.feedbackId), apiRequest)
|
|
133
|
+
.then(function (response) { return Promise.resolve(new CloudFeedbackApiModel_1.default(response)); })
|
|
134
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
135
|
+
};
|
|
136
|
+
CloudFeedbackService.prototype.performUpdateApprovalRequest = function (feedbackRequest) {
|
|
137
|
+
var _a;
|
|
138
|
+
var validationError = this._validator.validateUpdateFeedbackApprovalRequest(feedbackRequest);
|
|
139
|
+
if (validationError) {
|
|
140
|
+
return Promise.reject({ message: validationError });
|
|
141
|
+
}
|
|
142
|
+
var feedbackApprovalRequest = new CloudFeedbackApprovalListUpdateRequest_1.default();
|
|
143
|
+
var feedbackApproval = new CloudFeedbackApprovalUpdateRequest_1.default(feedbackRequest.feedbackId, (0, ApprovalStatus_1.getApprovalStatusKeyByValue)(feedbackRequest.approvalStatus || ''));
|
|
144
|
+
feedbackApprovalRequest.addFeedback(feedbackApproval);
|
|
145
|
+
return this._client
|
|
146
|
+
.requestJson(this._token, 'PUT', "/v4/accounts/".concat((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId, "/feedback/translations/approval"), feedbackApprovalRequest)
|
|
147
|
+
.then(function (response) {
|
|
148
|
+
return Promise.resolve(new CloudFeedbackApiModel_1.default(response.feedbackList[0]));
|
|
149
|
+
})
|
|
150
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
151
|
+
};
|
|
152
|
+
CloudFeedbackService.prototype.performGetAllFeedback = function (pageNumber, pageSize, filterRequest) {
|
|
153
|
+
var _a;
|
|
154
|
+
var requestPath = "/v4/accounts/".concat((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId, "/feedback/translations/filter");
|
|
155
|
+
var apiRequest;
|
|
156
|
+
var queryParams = {};
|
|
157
|
+
if (filterRequest instanceof CloudFilterFeedbackRequest_1.default) {
|
|
158
|
+
var cloudFilterFeedbackRequest = filterRequest;
|
|
159
|
+
apiRequest = new CloudFilterFeedbackApiRequest_1.default(cloudFilterFeedbackRequest);
|
|
160
|
+
var validationError = this._validator.validateCloudFeedbackSortRequest(cloudFilterFeedbackRequest.sortRequest);
|
|
161
|
+
if (validationError) {
|
|
162
|
+
return Promise.reject({ message: validationError });
|
|
163
|
+
}
|
|
164
|
+
queryParams = __assign(__assign({}, queryParams), this.getSortQueryParams(filterRequest));
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
apiRequest = new CloudFilterFeedbackApiRequest_1.default(filterRequest);
|
|
168
|
+
}
|
|
169
|
+
queryParams = __assign(__assign({}, queryParams), this.getPageQueryParams(pageNumber, pageSize));
|
|
170
|
+
return this._client
|
|
171
|
+
.requestJson(this._token, 'POST', requestPath, apiRequest, queryParams)
|
|
172
|
+
.then(function (response) {
|
|
173
|
+
var cloudResponse = new CloudFeedbackListResponse_1.default();
|
|
174
|
+
cloudResponse.feedbackList = response.feedbackList.map(function (feedback) {
|
|
175
|
+
return new CloudFeedbackApiModel_1.default(feedback);
|
|
176
|
+
});
|
|
177
|
+
cloudResponse.pageNumber = response.pageNumber;
|
|
178
|
+
cloudResponse.pageSize = response.pageSize;
|
|
179
|
+
cloudResponse.totalCount = response.totalCount;
|
|
180
|
+
return Promise.resolve(cloudResponse);
|
|
181
|
+
})
|
|
182
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
183
|
+
};
|
|
184
|
+
CloudFeedbackService.prototype.getSortQueryParams = function (filterRequest) {
|
|
185
|
+
var _a;
|
|
186
|
+
var queryParams = {};
|
|
187
|
+
if (filterRequest.sortRequest) {
|
|
188
|
+
var sortRequest = filterRequest.sortRequest;
|
|
189
|
+
if (sortRequest.criteria && sortRequest.order) {
|
|
190
|
+
queryParams = __assign(__assign({}, queryParams), (_a = {}, _a[SORT_QUERY_PARAM] = "".concat(sortRequest.criteria, ":").concat(sortRequest.order), _a));
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return queryParams;
|
|
194
|
+
};
|
|
195
|
+
CloudFeedbackService.prototype.getPageQueryParams = function (pageNumber, pageSize) {
|
|
196
|
+
var _a, _b;
|
|
197
|
+
var queryParams = {};
|
|
198
|
+
if (pageNumber) {
|
|
199
|
+
queryParams = __assign(__assign({}, queryParams), (_a = {}, _a[TranslationConstants_1.PAGE_NUMBER_QUERY_PARAM] = pageNumber, _a));
|
|
200
|
+
}
|
|
201
|
+
queryParams = __assign(__assign({}, queryParams), (_b = {}, _b[PAGE_SIZE_QUERY_PARAM] = pageSize || TranslationConstants_1.DEFAULT_FEEDBACK_PAGE_SIZE, _b));
|
|
202
|
+
return queryParams;
|
|
203
|
+
};
|
|
204
|
+
return CloudFeedbackService;
|
|
205
|
+
}());
|
|
206
|
+
exports.default = CloudFeedbackService;
|
|
207
|
+
//# sourceMappingURL=CloudFeedbackService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudFeedbackService.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/service/CloudFeedbackService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,+FAAyE;AACzE,qGAA+E;AAG/E,uGAAiF;AACjF,gGAA0E;AAE1E,0FAAwH;AACxH,uFAAiE;AAGjE,qGAA+E;AAG/E,qGAA+E;AAG/E,yHAAmG;AACnG,iHAA2F;AAC3F,8EAA0F;AAE1F,qGAA+E;AAE/E,IAAM,qBAAqB,GAAG,UAAU,CAAC;AACzC,IAAM,gBAAgB,GAAG,MAAM,CAAC;AAEhC;IAMI,8BACI,MAAkB,EAClB,KAAwB,EACxB,QAA2D;QAL9C,eAAU,GAA2B,IAAI,gCAAsB,EAAE,CAAC;QAO/E,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC9B,CAAC;IAEM,6CAAc,GAArB,UACI,UAAkB,EAClB,QAAiB,EACjB,aAAqC;QAErC,OAAO,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE,QAAQ,EAAE,aAAa,CAAC;aACjE,IAAI,CAAC,UAAC,QAAmC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAApC,CAAoC,CAAC;aACnF,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEM,kDAAmB,GAA1B,UACI,UAAkB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C,CAAC;IACzC,CAAC;IAEO,iDAAkB,GAA1B,UAA2B,aAAyC;;QAChE,IAAI,WAAW,GAAG,EAAE,CAAC;QAErB,IAAI,aAAa,CAAC,WAAW,EAAE;YAC3B,IAAM,WAAW,GAA6B,aAAa,CAAC,WAAW,CAAC;YAExE,IAAI,WAAW,CAAC,QAAQ,IAAI,WAAW,CAAC,KAAK,EAAE;gBAC3C,WAAW,yBAAQ,WAAW,gBAAG,gBAAgB,IAAG,UAAG,WAAW,CAAC,QAAQ,cAAI,WAAW,CAAC,KAAK,CAAE,MAAE,CAAC;aACxG;SACJ;QAED,OAAO,WAAW,CAAC;IACvB,CAAC;IAEO,iDAAkB,GAA1B,UAA2B,UAAkB,EAAE,QAAiB;;QAC5D,IAAI,WAAW,GAAG,EAAE,CAAC;QAErB,IAAI,UAAU,EAAE;YACZ,WAAW,yBAAQ,WAAW,gBAAG,8CAAuB,IAAG,UAAU,MAAE,CAAC;SAC3E;QAED,WAAW,yBAAQ,WAAW,gBAAG,qBAAqB,IAAG,QAAQ,IAAI,iDAA0B,MAAE,CAAC;QAElG,OAAO,WAAW,CAAC;IACvB,CAAC;IACL,2BAAC;AAAD,CAAC,AA9PD,IA8PC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import FeedbackValidator from '../../common/validators/FeedbackValidator';
|
|
2
|
+
import CloudFeedbackSortRequest from '../request/CloudFeedbackSortRequest';
|
|
3
|
+
import CloudCreateFeedbackRequest from '../request/CloudCreateFeedbackRequest';
|
|
4
|
+
import UpdateFeedbackRequest from '../../common/request/UpdateFeedbackRequest';
|
|
5
|
+
export default class CloudFeedbackValidator extends FeedbackValidator {
|
|
6
|
+
validateCloudFeedbackSortRequest(sortRequest: CloudFeedbackSortRequest | undefined): "Both order and criteria should be specified for feedback sorting" | null;
|
|
7
|
+
validateCreateFeedbackRequest(createFeedbackRequest: CloudCreateFeedbackRequest): "Rating must be between 1 and 5" | undefined;
|
|
8
|
+
validateUpdateFeedbackRequest(updateFeedbackRequest: UpdateFeedbackRequest): "feedbackId is required for update operations" | "Rating must be between 1 and 5" | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 FeedbackValidator_1 = __importDefault(require("../../common/validators/FeedbackValidator"));
|
|
22
|
+
var CloudUpdateFeedbackRequest_1 = __importDefault(require("../request/CloudUpdateFeedbackRequest"));
|
|
23
|
+
var CloudFeedbackValidator = /** @class */ (function (_super) {
|
|
24
|
+
__extends(CloudFeedbackValidator, _super);
|
|
25
|
+
function CloudFeedbackValidator() {
|
|
26
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
+
}
|
|
28
|
+
CloudFeedbackValidator.prototype.validateCloudFeedbackSortRequest = function (sortRequest) {
|
|
29
|
+
if (sortRequest && (!sortRequest.order || !sortRequest.criteria)) {
|
|
30
|
+
return 'Both order and criteria should be specified for feedback sorting';
|
|
31
|
+
}
|
|
32
|
+
return null;
|
|
33
|
+
};
|
|
34
|
+
CloudFeedbackValidator.prototype.validateCreateFeedbackRequest = function (createFeedbackRequest) {
|
|
35
|
+
if (createFeedbackRequest.rating !== undefined &&
|
|
36
|
+
(createFeedbackRequest.rating < 1 || createFeedbackRequest.rating > 5)) {
|
|
37
|
+
return 'Rating must be between 1 and 5';
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
CloudFeedbackValidator.prototype.validateUpdateFeedbackRequest = function (updateFeedbackRequest) {
|
|
41
|
+
if (updateFeedbackRequest instanceof CloudUpdateFeedbackRequest_1.default) {
|
|
42
|
+
if (updateFeedbackRequest.rating !== undefined &&
|
|
43
|
+
(updateFeedbackRequest.rating < 1 || updateFeedbackRequest.rating > 5)) {
|
|
44
|
+
return 'Rating must be between 1 and 5';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (!updateFeedbackRequest.feedbackId) {
|
|
48
|
+
return 'feedbackId is required for update operations';
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
};
|
|
52
|
+
return CloudFeedbackValidator;
|
|
53
|
+
}(FeedbackValidator_1.default));
|
|
54
|
+
exports.default = CloudFeedbackValidator;
|
|
55
|
+
//# sourceMappingURL=CloudFeedbackValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudFeedbackValidator.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/cloud/validators/CloudFeedbackValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,gGAA0E;AAG1E,qGAA+E;AAG/E;IAAoD,0CAAiB;IAArE;;IAkCA,CAAC;IAjCU,iEAAgC,GAAvC,UAAwC,WAAiD;QACrF,IAAI,WAAW,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE;YAC9D,OAAO,kEAAkE,CAAC;SAC7E;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8DAA6B,GAApC,UAAqC,qBAAiD;QAClF,IACI,qBAAqB,CAAC,MAAM,KAAK,SAAS;YAC1C,CAAC,qBAAqB,CAAC,MAAM,GAAG,CAAC,IAAI,qBAAqB,CAAC,MAAM,GAAG,CAAC,CAAC,EACxE;YACE,OAAO,gCAAgC,CAAC;SAC3C;IACL,CAAC;IAEM,8DAA6B,GAApC,UAAqC,qBAA4C;QAC7E,IAAI,qBAAqB,YAAY,oCAA0B,EAAE;YAC7D,IACI,qBAAqB,CAAC,MAAM,KAAK,SAAS;gBAC1C,CAAC,qBAAqB,CAAC,MAAM,GAAG,CAAC,IAAI,qBAAqB,CAAC,MAAM,GAAG,CAAC,CAAC,EACxE;gBACE,OAAO,gCAAgC,CAAC;aAC3C;SACJ;QAED,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE;YACnC,OAAO,8CAA8C,CAAC;SACzD;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,6BAAC;AAAD,CAAC,AAlCD,CAAoD,2BAAiB,GAkCpE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default class AuditData {
|
|
2
|
+
private _createdByUserEmail;
|
|
3
|
+
private _creationDate;
|
|
4
|
+
private _lastModifiedByUserEmail;
|
|
5
|
+
private _lastModifyDate;
|
|
6
|
+
get createdByUserEmail(): string | undefined;
|
|
7
|
+
set createdByUserEmail(value: string | undefined);
|
|
8
|
+
get creationDate(): string | undefined;
|
|
9
|
+
set creationDate(value: string | undefined);
|
|
10
|
+
get lastModifiedByUserEmail(): string | undefined;
|
|
11
|
+
set lastModifiedByUserEmail(value: string | undefined);
|
|
12
|
+
get lastModifyDate(): string | undefined;
|
|
13
|
+
set lastModifyDate(value: string | undefined);
|
|
14
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var AuditData = /** @class */ (function () {
|
|
4
|
+
function AuditData() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(AuditData.prototype, "createdByUserEmail", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._createdByUserEmail;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._createdByUserEmail = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(AuditData.prototype, "creationDate", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._creationDate;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._creationDate = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(AuditData.prototype, "lastModifiedByUserEmail", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._lastModifiedByUserEmail;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._lastModifiedByUserEmail = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(AuditData.prototype, "lastModifyDate", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this._lastModifyDate;
|
|
39
|
+
},
|
|
40
|
+
set: function (value) {
|
|
41
|
+
this._lastModifyDate = value;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
return AuditData;
|
|
47
|
+
}());
|
|
48
|
+
exports.default = AuditData;
|
|
49
|
+
//# sourceMappingURL=AuditData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditData.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/model/AuditData.ts"],"names":[],"mappings":";;AAAA;IAAA;IAqCA,CAAC;IA/BG,sBAAI,yCAAkB;aAAtB;YACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;aAED,UAAuB,KAAyB;YAC5C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;QACrC,CAAC;;;OAJA;IAMD,sBAAI,mCAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,8CAAuB;aAA3B;YACI,OAAO,IAAI,CAAC,wBAAwB,CAAC;QACzC,CAAC;aAED,UAA4B,KAAyB;YACjD,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC;QAC1C,CAAC;;;OAJA;IAMD,sBAAI,qCAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAKL,gBAAC;AAAD,CAAC,AArCD,IAqCC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import FeedbackComment from '../../../../common/constants/FeedbackComment';
|
|
2
|
+
import CloudFeedbackApiModel from '../../cloud/api/CloudFeedbackApiModel';
|
|
3
|
+
import EdgeFeedbackApiModel from '../../edge/api/EdgeFeedbackApiModel';
|
|
4
|
+
export default class CreateFeedbackRequest {
|
|
5
|
+
private _sourceLanguageId;
|
|
6
|
+
private _targetLanguageId;
|
|
7
|
+
private _model;
|
|
8
|
+
private _sourceText;
|
|
9
|
+
private _targetText;
|
|
10
|
+
private _suggestedTranslation;
|
|
11
|
+
private _comments;
|
|
12
|
+
get sourceLanguageId(): string | undefined;
|
|
13
|
+
set sourceLanguageId(value: string | undefined);
|
|
14
|
+
get targetLanguageId(): string | undefined;
|
|
15
|
+
set targetLanguageId(value: string | undefined);
|
|
16
|
+
get model(): string | undefined;
|
|
17
|
+
set model(value: string | undefined);
|
|
18
|
+
get sourceText(): string | undefined;
|
|
19
|
+
set sourceText(value: string | undefined);
|
|
20
|
+
get targetText(): string | undefined;
|
|
21
|
+
set targetText(value: string | undefined);
|
|
22
|
+
get suggestedTranslation(): string | undefined;
|
|
23
|
+
set suggestedTranslation(value: string | undefined);
|
|
24
|
+
get comments(): string[];
|
|
25
|
+
set comments(value: string[]);
|
|
26
|
+
addComment(comment: string | FeedbackComment): CreateFeedbackRequest;
|
|
27
|
+
toCloudFeedbackApiModel(): CloudFeedbackApiModel;
|
|
28
|
+
toEdgeFeedbackApiModel(languagePairId?: string): EdgeFeedbackApiModel;
|
|
29
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var CloudFeedbackApiModel_1 = __importDefault(require("../../cloud/api/CloudFeedbackApiModel"));
|
|
7
|
+
var CloudTranslationFeedback_1 = __importDefault(require("../../cloud/api/CloudTranslationFeedback"));
|
|
8
|
+
var CloudFeedbackImprovement_1 = __importDefault(require("../../cloud/api/CloudFeedbackImprovement"));
|
|
9
|
+
var CloudFeedbackRating_1 = __importDefault(require("../../cloud/api/CloudFeedbackRating"));
|
|
10
|
+
var EdgeFeedbackApiModel_1 = __importDefault(require("../../edge/api/EdgeFeedbackApiModel"));
|
|
11
|
+
var CreateFeedbackRequest = /** @class */ (function () {
|
|
12
|
+
function CreateFeedbackRequest() {
|
|
13
|
+
this._comments = [];
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "sourceLanguageId", {
|
|
16
|
+
get: function () {
|
|
17
|
+
return this._sourceLanguageId;
|
|
18
|
+
},
|
|
19
|
+
set: function (value) {
|
|
20
|
+
this._sourceLanguageId = value;
|
|
21
|
+
},
|
|
22
|
+
enumerable: false,
|
|
23
|
+
configurable: true
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "targetLanguageId", {
|
|
26
|
+
get: function () {
|
|
27
|
+
return this._targetLanguageId;
|
|
28
|
+
},
|
|
29
|
+
set: function (value) {
|
|
30
|
+
this._targetLanguageId = value;
|
|
31
|
+
},
|
|
32
|
+
enumerable: false,
|
|
33
|
+
configurable: true
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "model", {
|
|
36
|
+
get: function () {
|
|
37
|
+
return this._model;
|
|
38
|
+
},
|
|
39
|
+
set: function (value) {
|
|
40
|
+
this._model = value;
|
|
41
|
+
},
|
|
42
|
+
enumerable: false,
|
|
43
|
+
configurable: true
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "sourceText", {
|
|
46
|
+
get: function () {
|
|
47
|
+
return this._sourceText;
|
|
48
|
+
},
|
|
49
|
+
set: function (value) {
|
|
50
|
+
this._sourceText = value;
|
|
51
|
+
},
|
|
52
|
+
enumerable: false,
|
|
53
|
+
configurable: true
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "targetText", {
|
|
56
|
+
get: function () {
|
|
57
|
+
return this._targetText;
|
|
58
|
+
},
|
|
59
|
+
set: function (value) {
|
|
60
|
+
this._targetText = value;
|
|
61
|
+
},
|
|
62
|
+
enumerable: false,
|
|
63
|
+
configurable: true
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "suggestedTranslation", {
|
|
66
|
+
get: function () {
|
|
67
|
+
return this._suggestedTranslation;
|
|
68
|
+
},
|
|
69
|
+
set: function (value) {
|
|
70
|
+
this._suggestedTranslation = value;
|
|
71
|
+
},
|
|
72
|
+
enumerable: false,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(CreateFeedbackRequest.prototype, "comments", {
|
|
76
|
+
get: function () {
|
|
77
|
+
return this._comments;
|
|
78
|
+
},
|
|
79
|
+
set: function (value) {
|
|
80
|
+
this._comments = value;
|
|
81
|
+
},
|
|
82
|
+
enumerable: false,
|
|
83
|
+
configurable: true
|
|
84
|
+
});
|
|
85
|
+
CreateFeedbackRequest.prototype.addComment = function (comment) {
|
|
86
|
+
if (this.comments) {
|
|
87
|
+
this.comments.push(comment);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
this.comments = [comment];
|
|
91
|
+
}
|
|
92
|
+
return this;
|
|
93
|
+
};
|
|
94
|
+
CreateFeedbackRequest.prototype.toCloudFeedbackApiModel = function () {
|
|
95
|
+
var feedbackApiModel = new CloudFeedbackApiModel_1.default();
|
|
96
|
+
var translation = new CloudTranslationFeedback_1.default();
|
|
97
|
+
translation.sourceLanguageId = this.sourceLanguageId;
|
|
98
|
+
translation.targetLanguageId = this.targetLanguageId;
|
|
99
|
+
translation.model = this.model;
|
|
100
|
+
translation.sourceText = this.sourceText;
|
|
101
|
+
translation.targetMTText = this.targetText;
|
|
102
|
+
var rating = new CloudFeedbackRating_1.default();
|
|
103
|
+
rating.comments = this.comments;
|
|
104
|
+
feedbackApiModel.translation = translation;
|
|
105
|
+
feedbackApiModel.improvement = new CloudFeedbackImprovement_1.default(this.suggestedTranslation);
|
|
106
|
+
feedbackApiModel.rating = rating;
|
|
107
|
+
return feedbackApiModel;
|
|
108
|
+
};
|
|
109
|
+
CreateFeedbackRequest.prototype.toEdgeFeedbackApiModel = function (languagePairId) {
|
|
110
|
+
var feedbackApiModel = new EdgeFeedbackApiModel_1.default();
|
|
111
|
+
feedbackApiModel.languagePairId = languagePairId;
|
|
112
|
+
feedbackApiModel.sourceText = this.sourceText;
|
|
113
|
+
feedbackApiModel.machineTranslation = this.targetText;
|
|
114
|
+
feedbackApiModel.suggestedTranslation = this.suggestedTranslation;
|
|
115
|
+
if (this.comments.length > 0) {
|
|
116
|
+
feedbackApiModel.comment = this.comments[0];
|
|
117
|
+
}
|
|
118
|
+
return feedbackApiModel;
|
|
119
|
+
};
|
|
120
|
+
return CreateFeedbackRequest;
|
|
121
|
+
}());
|
|
122
|
+
exports.default = CreateFeedbackRequest;
|
|
123
|
+
//# sourceMappingURL=CreateFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/CreateFeedbackRequest.ts"],"names":[],"mappings":";;;;;AACA,gGAA0E;AAC1E,sGAAgF;AAChF,sGAAgF;AAChF,4FAAsE;AACtE,6FAAuE;AAEvE;IAAA;QAQY,cAAS,GAAa,EAAE,CAAC;IAgGrC,CAAC;IA9FG,sBAAI,mDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,mDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,wCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,sBAAI,6CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,6CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,uDAAoB;aAAxB;YAC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AO,gBAAgB,CAAC;IAC5B,CAAC;IAEM,sDAAsB,GAA7B,UAA8B,cAAuB;QACjD,IAAM,gBAAgB,GAAG,IAAI,8BAAoB,EAAE,CAAC;QACpD,gBAAgB,CAAC,cAAc,GAAG,cAAc,CAAC;QACjD,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAC9C,gBAAgB,CAAC,kBAAkB,GAAG,IAAI,CAAC,UAAU,CAAC;QACtD,gBAAgB,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC;QAClE,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1B,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SAC/C;QAED,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACL,4BAAC;AAAD,CAAC,AAxGD,IAwGC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var DeleteFeedbackRequest = /** @class */ (function () {
|
|
4
|
+
function DeleteFeedbackRequest() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(DeleteFeedbackRequest.prototype, "feedbackId", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._feedbackId;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._feedbackId = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
return DeleteFeedbackRequest;
|
|
17
|
+
}());
|
|
18
|
+
exports.default = DeleteFeedbackRequest;
|
|
19
|
+
//# sourceMappingURL=DeleteFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/DeleteFeedbackRequest.ts"],"names":[],"mappings":";;AAAA;IAAA;IAUA,CAAC;IAPG,sBAAI,6CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAKL,4BAAC;AAAD,CAAC,AAVD,IAUC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApprovalStatus } from '../../../../common/constants/ApprovalStatus';
|
|
2
|
+
export default class FilterFeedbackRequest {
|
|
3
|
+
private _startDate;
|
|
4
|
+
private _endDate;
|
|
5
|
+
private _approvalStatus;
|
|
6
|
+
private _user;
|
|
7
|
+
get startDate(): string | undefined;
|
|
8
|
+
set startDate(value: string | undefined);
|
|
9
|
+
get endDate(): string | undefined;
|
|
10
|
+
set endDate(value: string | undefined);
|
|
11
|
+
get approvalStatus(): ApprovalStatus | undefined;
|
|
12
|
+
set approvalStatus(value: ApprovalStatus | undefined);
|
|
13
|
+
get user(): string | undefined;
|
|
14
|
+
set user(value: string | undefined);
|
|
15
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var FilterFeedbackRequest = /** @class */ (function () {
|
|
4
|
+
function FilterFeedbackRequest() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(FilterFeedbackRequest.prototype, "startDate", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._startDate;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._startDate = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(FilterFeedbackRequest.prototype, "endDate", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._endDate;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._endDate = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(FilterFeedbackRequest.prototype, "approvalStatus", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._approvalStatus;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._approvalStatus = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(FilterFeedbackRequest.prototype, "user", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this._user;
|
|
39
|
+
},
|
|
40
|
+
set: function (value) {
|
|
41
|
+
this._user = value;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
return FilterFeedbackRequest;
|
|
47
|
+
}());
|
|
48
|
+
exports.default = FilterFeedbackRequest;
|
|
49
|
+
//# sourceMappingURL=FilterFeedbackRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterFeedbackRequest.js","sourceRoot":"","sources":["../../../../../src/translation/feedback/common/request/FilterFeedbackRequest.ts"],"names":[],"mappings":";;AAEA;IAAA;IAsCA,CAAC;IA/BG,sBAAI,4CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,0CAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAyB;YACjC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,iDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAiC;YAChD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,uCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAKL,4BAAC;AAAD,CAAC,AAtCD,IAsCC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApprovalStatus } from '../../../../common/constants/ApprovalStatus';
|
|
2
|
+
export default class UpdateFeedbackApprovalRequest {
|
|
3
|
+
private _feedbackId;
|
|
4
|
+
private _approvalStatus;
|
|
5
|
+
get feedbackId(): string | undefined;
|
|
6
|
+
set feedbackId(value: string | undefined);
|
|
7
|
+
get approvalStatus(): ApprovalStatus | undefined;
|
|
8
|
+
set approvalStatus(value: ApprovalStatus | undefined);
|
|
9
|
+
}
|