@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,86 @@
|
|
|
1
|
+
import { LanguageWeaverClient } from '../LanguageWeaverClient';
|
|
2
|
+
import TranslateTextRequest from '../../translate/common/request/TranslateTextRequest';
|
|
3
|
+
import TranslateTextResult from '../../translate/common/result/TranslateTextResult';
|
|
4
|
+
import ClientConfiguration from '../../../common/configurations/ClientConfiguration';
|
|
5
|
+
import CloudTranslateTextRequest from '../../translate/cloud/request/CloudTranslateTextRequest';
|
|
6
|
+
import CloudTranslationTextResult from '../../translate/cloud/result/CloudTranslationTextResult';
|
|
7
|
+
import { Regions } from '../../../common/constants/Regions';
|
|
8
|
+
import TokenConfiguration from '../../../common/configurations/TokenConfiguration';
|
|
9
|
+
import TranslateFileRequest from '../../translate/common/request/TranslateFileRequest';
|
|
10
|
+
import TranslationFileResult from '../../translate/common/result/TranslationFileResult';
|
|
11
|
+
import CloudTranslateFileRequest from '../../translate/cloud/request/CloudTranslateFileRequest';
|
|
12
|
+
import CloudTranslationFileResult from '../../translate/cloud/result/CloudTranslationFileResult';
|
|
13
|
+
import LanguagePairsResult from '../../translate/common/result/LanguagePairsResult';
|
|
14
|
+
import CloudLanguagePairsResult from '../../translate/cloud/result/CloudLanguagePairsResult';
|
|
15
|
+
import TranslationBatchFileResult from '../../translate/common/result/TranslationBatchFileResult';
|
|
16
|
+
import TranslateBatchFileRequest from '../../translate/common/request/TranslateBatchFileRequest';
|
|
17
|
+
import CloudTranslateBatchFileRequest from '../../translate/cloud/request/CloudTranslateBatchFileRequest';
|
|
18
|
+
import CloudTranslationBatchFileResult from '../../translate/cloud/result/CloudTranslationBatchFileResult';
|
|
19
|
+
import DictionariesResult from '../../translate/common/result/DictionariesResult';
|
|
20
|
+
import CloudDictionariesResult from '../../translate/cloud/result/CloudDictionariesResult';
|
|
21
|
+
import FilterFeedbackRequest from '../../feedback/common/request/FilterFeedbackRequest';
|
|
22
|
+
import FeedbackListResult from '../../feedback/common/result/FeedbackListResult';
|
|
23
|
+
import CloudFeedbackListResult from '../../feedback/cloud/result/CloudFeedbackListResult';
|
|
24
|
+
import CloudFilterFeedbackRequest from '../../feedback/cloud/request/CloudFilterFeedbackRequest';
|
|
25
|
+
import FeedbackResult from '../../feedback/common/result/FeedbackResult';
|
|
26
|
+
import CreateFeedbackRequest from '../../feedback/common/request/CreateFeedbackRequest';
|
|
27
|
+
import CloudCreateFeedbackRequest from '../../feedback/cloud/request/CloudCreateFeedbackRequest';
|
|
28
|
+
import CloudFeedbackResult from '../../feedback/cloud/result/CloudFeedbackResult';
|
|
29
|
+
import CloudUpdateFeedbackRequest from '../../feedback/cloud/request/CloudUpdateFeedbackRequest';
|
|
30
|
+
import UpdateFeedbackRequest from '../../feedback/common/request/UpdateFeedbackRequest';
|
|
31
|
+
import UpdateFeedbackApprovalRequest from '../../feedback/common/request/UpdateFeedbackApprovalRequest';
|
|
32
|
+
import CloudUpdateFeedbackApprovalRequest from '../../feedback/cloud/request/CloudUpdateFeedbackApprovalRequest';
|
|
33
|
+
import DeleteFeedbackRequest from '../../feedback/common/request/DeleteFeedbackRequest';
|
|
34
|
+
import CloudDeleteFeedbackRequest from '../../feedback/cloud/request/CloudDeleteFeedbackRequest';
|
|
35
|
+
export default class CloudLanguageWeaverClient implements LanguageWeaverClient {
|
|
36
|
+
private _clientConfiguration;
|
|
37
|
+
private _region;
|
|
38
|
+
private _url;
|
|
39
|
+
private _token;
|
|
40
|
+
private _selfInformation;
|
|
41
|
+
private _userSelfInformation;
|
|
42
|
+
private _languageWeaverAuthentication;
|
|
43
|
+
private _client;
|
|
44
|
+
private _feedbackService;
|
|
45
|
+
constructor();
|
|
46
|
+
withConfigurations(clientConfiguration: ClientConfiguration): CloudLanguageWeaverClient;
|
|
47
|
+
withTokenConfigurations(tokenConfiguration: TokenConfiguration): CloudLanguageWeaverClient;
|
|
48
|
+
build(): Promise<CloudLanguageWeaverClient>;
|
|
49
|
+
get region(): Regions;
|
|
50
|
+
set region(value: Regions);
|
|
51
|
+
translateTextUsingCloudParams(translateTextRequest: CloudTranslateTextRequest): Promise<CloudTranslationTextResult>;
|
|
52
|
+
translateFileUsingCloudParams(translateFileRequest: CloudTranslateFileRequest): Promise<CloudTranslationFileResult>;
|
|
53
|
+
translateBatchFileUsingCloudParams(translateBatchFileRequest: CloudTranslateBatchFileRequest): Promise<CloudTranslationBatchFileResult>;
|
|
54
|
+
translateText(translateTextRequest: TranslateTextRequest): Promise<TranslateTextResult>;
|
|
55
|
+
translateFile(translateFileRequest: TranslateFileRequest): Promise<TranslationFileResult>;
|
|
56
|
+
translateBatchFile(translateBatchFileRequest: TranslateBatchFileRequest): Promise<TranslationBatchFileResult>;
|
|
57
|
+
getLanguagePairs(): Promise<LanguagePairsResult>;
|
|
58
|
+
getCloudLanguagePairs(): Promise<CloudLanguagePairsResult>;
|
|
59
|
+
getDictionaries(pageNumber: number, pageSize?: number): Promise<DictionariesResult>;
|
|
60
|
+
getCloudDictionaries(pageNumber: number, pageSize?: number): Promise<CloudDictionariesResult>;
|
|
61
|
+
getFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
|
|
62
|
+
getCloudFeedback(pageNumber: number, pageSize?: number, filterRequest?: CloudFilterFeedbackRequest): Promise<CloudFeedbackListResult>;
|
|
63
|
+
createFeedback(createFeedbackRequest: CreateFeedbackRequest): Promise<FeedbackResult>;
|
|
64
|
+
createCloudFeedback(createCloudFeedbackRequest: CloudCreateFeedbackRequest): Promise<CloudFeedbackResult>;
|
|
65
|
+
updateFeedback(updateFeedbackRequest: UpdateFeedbackRequest): Promise<FeedbackResult>;
|
|
66
|
+
updateCloudFeedback(updateCloudFeedbackRequest: CloudUpdateFeedbackRequest): Promise<CloudFeedbackResult>;
|
|
67
|
+
updateFeedbackApproval(updateFeedbackApprovalRequest: UpdateFeedbackApprovalRequest): Promise<FeedbackResult>;
|
|
68
|
+
updateCloudFeedbackApproval(updateCloudFeedbackApprovalRequest: CloudUpdateFeedbackApprovalRequest): Promise<CloudFeedbackResult>;
|
|
69
|
+
deleteFeedback(deleteFeedbackRequest: DeleteFeedbackRequest): Promise<null>;
|
|
70
|
+
deleteCloudFeedback(deleteCloudFeedbackRequest: CloudDeleteFeedbackRequest): Promise<null>;
|
|
71
|
+
private getSelfInfo;
|
|
72
|
+
private requestTranslateText;
|
|
73
|
+
private translateSyncText;
|
|
74
|
+
private translateAsyncText;
|
|
75
|
+
private getTranslationResponse;
|
|
76
|
+
private getTranslationFileResponse;
|
|
77
|
+
private requestTranslateBatchFile;
|
|
78
|
+
private translateFileFromBatch;
|
|
79
|
+
private requestTranslateFile;
|
|
80
|
+
private handleStatusResponse;
|
|
81
|
+
private executeTranslateFileRequest;
|
|
82
|
+
private obtainFinalStatus;
|
|
83
|
+
private hasToken;
|
|
84
|
+
private hasCredentialsConfiguration;
|
|
85
|
+
private setRegion;
|
|
86
|
+
}
|
package/lib/{CloudLanguageWeaverClient.js → translation/common/cloud/CloudLanguageWeaverClient.js}
RENAMED
|
@@ -39,31 +39,35 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
var TranslateTextResult_1 = __importDefault(require("
|
|
43
|
-
var ClientConfiguration_1 = __importDefault(require("
|
|
44
|
-
var HttpUtils_1 = __importDefault(require("
|
|
45
|
-
var LanguageWeaverAuthentication_1 = __importDefault(require("
|
|
46
|
-
var RestClient_1 = __importDefault(require("
|
|
47
|
-
var CloudTranslateTextRequest_1 = __importDefault(require("
|
|
48
|
-
var TranslationConstants_1 = require("
|
|
49
|
-
var Utils_1 = __importDefault(require("
|
|
50
|
-
var Statuses_1 = require("
|
|
51
|
-
var TranslationException_1 = __importDefault(require("
|
|
52
|
-
var ErrorResponse_1 = __importDefault(require("
|
|
53
|
-
var Product_1 = require("
|
|
54
|
-
var Regions_1 = require("
|
|
55
|
-
var CloudTranslateFileRequest_1 = __importDefault(require("
|
|
56
|
-
var CloudTranslationFileResult_1 = __importDefault(require("
|
|
57
|
-
var TranslateFileUtil_1 = require("
|
|
58
|
-
var LanguagePairsResult_1 = __importDefault(require("
|
|
59
|
-
var LanguagePair_1 = __importDefault(require("
|
|
60
|
-
var CloudTranslateBatchFileRequest_1 = __importDefault(require("
|
|
61
|
-
var CloudTranslationBatchFileResult_1 = __importDefault(require("
|
|
62
|
-
var DictionariesResult_1 = __importDefault(require("
|
|
63
|
-
var DictionaryResponse_1 = __importDefault(require("
|
|
64
|
-
var CredentialsConfiguration_1 = __importDefault(require("
|
|
65
|
-
var Format_1 = require("
|
|
66
|
-
var FormatToMimeType_1 = require("
|
|
42
|
+
var TranslateTextResult_1 = __importDefault(require("../../translate/common/result/TranslateTextResult"));
|
|
43
|
+
var ClientConfiguration_1 = __importDefault(require("../../../common/configurations/ClientConfiguration"));
|
|
44
|
+
var HttpUtils_1 = __importDefault(require("../../../common/utils/HttpUtils"));
|
|
45
|
+
var LanguageWeaverAuthentication_1 = __importDefault(require("../../../common/auth/LanguageWeaverAuthentication"));
|
|
46
|
+
var RestClient_1 = __importDefault(require("../../../common/external/communication/RestClient"));
|
|
47
|
+
var CloudTranslateTextRequest_1 = __importDefault(require("../../translate/cloud/request/CloudTranslateTextRequest"));
|
|
48
|
+
var TranslationConstants_1 = require("../../../common/constants/TranslationConstants");
|
|
49
|
+
var Utils_1 = __importDefault(require("../../../common/utils/Utils"));
|
|
50
|
+
var Statuses_1 = require("../../../common/constants/Statuses");
|
|
51
|
+
var TranslationException_1 = __importDefault(require("../../../common/exceptions/TranslationException"));
|
|
52
|
+
var ErrorResponse_1 = __importDefault(require("../../../common/api/ErrorResponse"));
|
|
53
|
+
var Product_1 = require("../../../common/constants/Product");
|
|
54
|
+
var Regions_1 = require("../../../common/constants/Regions");
|
|
55
|
+
var CloudTranslateFileRequest_1 = __importDefault(require("../../translate/cloud/request/CloudTranslateFileRequest"));
|
|
56
|
+
var CloudTranslationFileResult_1 = __importDefault(require("../../translate/cloud/result/CloudTranslationFileResult"));
|
|
57
|
+
var TranslateFileUtil_1 = require("../../translate/common/utils/TranslateFileUtil");
|
|
58
|
+
var LanguagePairsResult_1 = __importDefault(require("../../translate/common/result/LanguagePairsResult"));
|
|
59
|
+
var LanguagePair_1 = __importDefault(require("../../translate/common/api/LanguagePair"));
|
|
60
|
+
var CloudTranslateBatchFileRequest_1 = __importDefault(require("../../translate/cloud/request/CloudTranslateBatchFileRequest"));
|
|
61
|
+
var CloudTranslationBatchFileResult_1 = __importDefault(require("../../translate/cloud/result/CloudTranslationBatchFileResult"));
|
|
62
|
+
var DictionariesResult_1 = __importDefault(require("../../translate/common/result/DictionariesResult"));
|
|
63
|
+
var DictionaryResponse_1 = __importDefault(require("../../translate/common/api/DictionaryResponse"));
|
|
64
|
+
var CredentialsConfiguration_1 = __importDefault(require("../../../common/configurations/CredentialsConfiguration"));
|
|
65
|
+
var Format_1 = require("../../../common/constants/Format");
|
|
66
|
+
var FormatToMimeType_1 = require("../../../common/constants/FormatToMimeType");
|
|
67
|
+
var FilterFeedbackRequest_1 = __importDefault(require("../../feedback/common/request/FilterFeedbackRequest"));
|
|
68
|
+
var CloudFilterFeedbackRequest_1 = __importDefault(require("../../feedback/cloud/request/CloudFilterFeedbackRequest"));
|
|
69
|
+
var CloudFeedbackService_1 = __importDefault(require("../../feedback/cloud/service/CloudFeedbackService"));
|
|
70
|
+
var PdfConverter_1 = require("../../../common/constants/PdfConverter");
|
|
67
71
|
var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
68
72
|
function CloudLanguageWeaverClient() {
|
|
69
73
|
this._clientConfiguration = new ClientConfiguration_1.default();
|
|
@@ -112,7 +116,9 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
112
116
|
case 5:
|
|
113
117
|
_d._userSelfInformation = _e.sent();
|
|
114
118
|
_e.label = 6;
|
|
115
|
-
case 6:
|
|
119
|
+
case 6:
|
|
120
|
+
this._feedbackService = new CloudFeedbackService_1.default(this._client, this._token, this.getSelfInfo());
|
|
121
|
+
return [2 /*return*/, this];
|
|
116
122
|
}
|
|
117
123
|
});
|
|
118
124
|
});
|
|
@@ -170,6 +176,7 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
170
176
|
request.outputDir = translateFileRequest.outputDir;
|
|
171
177
|
request.inputFormat = translateFileRequest.inputFormat;
|
|
172
178
|
request.dictionaries = translateFileRequest.dictionaries;
|
|
179
|
+
request.pdfConverter = translateFileRequest.pdfConverter;
|
|
173
180
|
return this.requestTranslateFile(request);
|
|
174
181
|
};
|
|
175
182
|
CloudLanguageWeaverClient.prototype.translateBatchFile = function (translateBatchFileRequest) {
|
|
@@ -180,6 +187,7 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
180
187
|
request.input = translateBatchFileRequest.input;
|
|
181
188
|
request.outputDir = translateBatchFileRequest.outputDir;
|
|
182
189
|
request.dictionaries = translateBatchFileRequest.dictionaries;
|
|
190
|
+
request.pdfConverter = translateBatchFileRequest.pdfConverter;
|
|
183
191
|
return this.requestTranslateBatchFile(request);
|
|
184
192
|
};
|
|
185
193
|
CloudLanguageWeaverClient.prototype.getLanguagePairs = function () {
|
|
@@ -228,16 +236,16 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
228
236
|
var _a;
|
|
229
237
|
if (pageSize === void 0) { pageSize = TranslationConstants_1.DEFAULT_DICTIONARIES_PAGE_SIZE; }
|
|
230
238
|
return __awaiter(this, void 0, void 0, function () {
|
|
231
|
-
var
|
|
239
|
+
var cloudDictionariesResult_1, dictionaries_1, e_2;
|
|
232
240
|
return __generator(this, function (_b) {
|
|
233
241
|
switch (_b.label) {
|
|
234
242
|
case 0:
|
|
235
243
|
_b.trys.push([0, 2, , 3]);
|
|
236
244
|
return [4 /*yield*/, this.getCloudDictionaries(pageNumber, pageSize)];
|
|
237
245
|
case 1:
|
|
238
|
-
|
|
246
|
+
cloudDictionariesResult_1 = _b.sent();
|
|
239
247
|
dictionaries_1 = [];
|
|
240
|
-
(_a =
|
|
248
|
+
(_a = cloudDictionariesResult_1.dictionaries) === null || _a === void 0 ? void 0 : _a.forEach(function (dictionary) {
|
|
241
249
|
var dictionaryResponse = new DictionaryResponse_1.default();
|
|
242
250
|
dictionaryResponse.id = dictionary.dictionaryId;
|
|
243
251
|
dictionaryResponse.source = dictionary.source;
|
|
@@ -247,6 +255,9 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
247
255
|
return [2 /*return*/, new Promise(function (resolve) {
|
|
248
256
|
var result = new DictionariesResult_1.default();
|
|
249
257
|
result.dictionaries = dictionaries_1;
|
|
258
|
+
result.pageNumber = cloudDictionariesResult_1.pageNumber;
|
|
259
|
+
result.totalCount = cloudDictionariesResult_1.totalCount;
|
|
260
|
+
result.pageSize = cloudDictionariesResult_1.pageSize;
|
|
250
261
|
resolve(result);
|
|
251
262
|
})];
|
|
252
263
|
case 2:
|
|
@@ -267,6 +278,90 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
267
278
|
})
|
|
268
279
|
.catch(function (e) { return Promise.reject(e); });
|
|
269
280
|
};
|
|
281
|
+
CloudLanguageWeaverClient.prototype.getFeedback = function (pageNumber, pageSize, filterRequest) {
|
|
282
|
+
if (this._feedbackService) {
|
|
283
|
+
return this._feedbackService.getAllFeedback(pageNumber, pageSize, filterRequest || new FilterFeedbackRequest_1.default());
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'getting the feedback' });
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
CloudLanguageWeaverClient.prototype.getCloudFeedback = function (pageNumber, pageSize, filterRequest) {
|
|
290
|
+
if (this._feedbackService) {
|
|
291
|
+
return this._feedbackService.getAllCloudFeedback(pageNumber, pageSize, filterRequest || new CloudFilterFeedbackRequest_1.default());
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'getting the feedback' });
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
CloudLanguageWeaverClient.prototype.createFeedback = function (createFeedbackRequest) {
|
|
298
|
+
if (this._feedbackService) {
|
|
299
|
+
createFeedbackRequest.sourceLanguageId = Utils_1.default.getLanguageCode3(createFeedbackRequest.sourceLanguageId);
|
|
300
|
+
createFeedbackRequest.targetLanguageId = Utils_1.default.getLanguageCode3(createFeedbackRequest.targetLanguageId);
|
|
301
|
+
return this._feedbackService.createFeedback(createFeedbackRequest);
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'creating the feedback' });
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
CloudLanguageWeaverClient.prototype.createCloudFeedback = function (createCloudFeedbackRequest) {
|
|
308
|
+
if (this._feedbackService) {
|
|
309
|
+
createCloudFeedbackRequest.sourceLanguageId = Utils_1.default.getLanguageCode3(createCloudFeedbackRequest.sourceLanguageId);
|
|
310
|
+
createCloudFeedbackRequest.targetLanguageId = Utils_1.default.getLanguageCode3(createCloudFeedbackRequest.targetLanguageId);
|
|
311
|
+
return this._feedbackService.createCloudFeedback(createCloudFeedbackRequest);
|
|
312
|
+
}
|
|
313
|
+
else {
|
|
314
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'creating the feedback' });
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
CloudLanguageWeaverClient.prototype.updateFeedback = function (updateFeedbackRequest) {
|
|
318
|
+
if (this._feedbackService) {
|
|
319
|
+
return this._feedbackService.updateFeedback(updateFeedbackRequest);
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'updating the feedback' });
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
CloudLanguageWeaverClient.prototype.updateCloudFeedback = function (updateCloudFeedbackRequest) {
|
|
326
|
+
if (this._feedbackService) {
|
|
327
|
+
return this._feedbackService.updateCloudFeedback(updateCloudFeedbackRequest);
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'updating the feedback' });
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
CloudLanguageWeaverClient.prototype.updateFeedbackApproval = function (updateFeedbackApprovalRequest) {
|
|
334
|
+
if (this._feedbackService) {
|
|
335
|
+
return this._feedbackService.updateFeedbackApproval(updateFeedbackApprovalRequest);
|
|
336
|
+
}
|
|
337
|
+
else {
|
|
338
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'updating the feedback approval status' });
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
CloudLanguageWeaverClient.prototype.updateCloudFeedbackApproval = function (updateCloudFeedbackApprovalRequest) {
|
|
342
|
+
if (this._feedbackService) {
|
|
343
|
+
return this._feedbackService.updateCloudFeedbackApproval(updateCloudFeedbackApprovalRequest);
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'updating the feedback approval status' });
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
CloudLanguageWeaverClient.prototype.deleteFeedback = function (deleteFeedbackRequest) {
|
|
350
|
+
if (this._feedbackService) {
|
|
351
|
+
return this._feedbackService.deleteFeedback(deleteFeedbackRequest);
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'deleting the feedback' });
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
CloudLanguageWeaverClient.prototype.deleteCloudFeedback = function (deleteCloudFeedbackRequest) {
|
|
358
|
+
if (this._feedbackService) {
|
|
359
|
+
return this._feedbackService.deleteCloudFeedback(deleteCloudFeedbackRequest);
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'deleting the feedback' });
|
|
363
|
+
}
|
|
364
|
+
};
|
|
270
365
|
CloudLanguageWeaverClient.prototype.getSelfInfo = function () {
|
|
271
366
|
return Utils_1.default.isCloudCredentialsToken(this._token) ? this._selfInformation : this._userSelfInformation;
|
|
272
367
|
};
|
|
@@ -307,8 +402,8 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
307
402
|
.requestJson(_this._token, 'GET', TranslationConstants_1.ASYNC_TRANSLATION_PATH + '/' + requestId + '/content')
|
|
308
403
|
.then(function (contentResponse) {
|
|
309
404
|
contentResponse.requestId = requestId;
|
|
310
|
-
contentResponse.inputFormat = (0, Format_1.getFormatByKey)(statusResponse.inputFormat
|
|
311
|
-
contentResponse.outputFormat = (0, Format_1.getFormatByKey)(statusResponse.outputFormat
|
|
405
|
+
contentResponse.inputFormat = (0, Format_1.getFormatByKey)(statusResponse.inputFormat);
|
|
406
|
+
contentResponse.outputFormat = (0, Format_1.getFormatByKey)(statusResponse.outputFormat);
|
|
312
407
|
contentResponse.translationStats = statusResponse.translationStats;
|
|
313
408
|
resolve(contentResponse);
|
|
314
409
|
})
|
|
@@ -321,18 +416,25 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
321
416
|
_this._client
|
|
322
417
|
.requestJson(_this._token, 'GET', TranslationConstants_1.ASYNC_TRANSLATION_PATH + '/' + translationResponse.requestId + '/content', undefined, undefined, { hasStreamResponse: true, headersNeeded: true })
|
|
323
418
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
324
|
-
var translationFileResult, fs;
|
|
419
|
+
var translationFileResult, fs, once, stream;
|
|
325
420
|
return __generator(this, function (_a) {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
421
|
+
switch (_a.label) {
|
|
422
|
+
case 0:
|
|
423
|
+
translationFileResult = constructFileTranslationResponse(response);
|
|
424
|
+
if (!(translateFileRequest.outputDir && !Utils_1.default.isBrowser())) return [3 /*break*/, 2];
|
|
425
|
+
if (!(response.data && typeof response.data.pipe === 'function')) return [3 /*break*/, 2];
|
|
329
426
|
fs = require('fs');
|
|
330
|
-
|
|
427
|
+
once = require('events').once;
|
|
428
|
+
stream = response.data.pipe(fs.createWriteStream(Utils_1.default.getFullPath(translateFileRequest.outputDir, translateFileRequest.outputFile ||
|
|
331
429
|
(0, TranslateFileUtil_1.getFileNameFromHeaders)(response, translateFileRequest))));
|
|
332
|
-
|
|
430
|
+
return [4 /*yield*/, once(stream, 'finish')];
|
|
431
|
+
case 1:
|
|
432
|
+
_a.sent();
|
|
433
|
+
_a.label = 2;
|
|
434
|
+
case 2:
|
|
435
|
+
resolve(translationFileResult);
|
|
436
|
+
return [2 /*return*/];
|
|
333
437
|
}
|
|
334
|
-
resolve(translationFileResult);
|
|
335
|
-
return [2 /*return*/];
|
|
336
438
|
});
|
|
337
439
|
}); })
|
|
338
440
|
.catch(function (error) { return reject(error); });
|
|
@@ -400,6 +502,7 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
400
502
|
request.outputDir = translateBatchFileRequest.outputDir;
|
|
401
503
|
}
|
|
402
504
|
request.dictionaries = translateBatchFileRequest.dictionaries;
|
|
505
|
+
request.pdfConverter = translateBatchFileRequest.pdfConverter;
|
|
403
506
|
return this.requestTranslateFile(request);
|
|
404
507
|
};
|
|
405
508
|
CloudLanguageWeaverClient.prototype.requestTranslateFile = function (translateFileRequest) {
|
|
@@ -468,6 +571,9 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
468
571
|
if (translateFileRequest.dictionaries && translateFileRequest.dictionaries.length) {
|
|
469
572
|
translateFileRequest.dictionaries.forEach(function (dictionary) { return formData.append(TranslationConstants_1.DICTIONARIES, dictionary); });
|
|
470
573
|
}
|
|
574
|
+
if (translateFileRequest.pdfConverter) {
|
|
575
|
+
formData.append(TranslationConstants_1.PDF_CONVERTER, PdfConverter_1.PdfConverterCloud[translateFileRequest.pdfConverter]);
|
|
576
|
+
}
|
|
471
577
|
return this._client.requestMultipart(this._token, 'POST', TranslationConstants_1.ASYNC_TRANSLATION_PATH, formData);
|
|
472
578
|
};
|
|
473
579
|
CloudLanguageWeaverClient.prototype.obtainFinalStatus = function (requestId, fileSize) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudLanguageWeaverClient.js","sourceRoot":"","sources":["../../../../src/translation/common/cloud/CloudLanguageWeaverClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0GAAoF;AACpF,2GAAqF;AACrF,8EAAwD;AAGxD,mHAA6F;AAC7F,iGAA2E;AAC3E,sHAAgG;AAEhG,uFAkBwD;AACxD,sEAAgD;AAGhD,+DAO4C;AAC5C,yGAAmF;AACnF,oFAA8D;AAC9D,6DAA4D;AAC5D,6DAA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AnC;QACI,OAAO,CACH,IAAI,CAAC,oBAAoB;YACzB,IAAI,CAAC,oBAAoB,CAAC,wBAAwB;YAClD,IAAI,CAAC,oBAAoB,CAAC,wBAAwB,CAAC,QAAQ;YAC3D,IAAI,CAAC,oBAAoB,CAAC,wBAAwB,CAAC,YAAY,CAClE,CAAC;IACN,CAAC;IAEO,6CAAS,GAAjB;QACI,IAAM,oBAAoB,GAAuB,eAAK,CAAC,oBAAoB,EAAE,CAAC;QAE9E,IAAI,oBAAoB,EAAE;YACtB,IAAI,CAAC,MAAM,GAAG,iBAAO,CAAC,iBAAO,CAAC,EAAE,CAAC,KAAK,oBAAoB,CAAC,CAAC,CAAC,iBAAO,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAO,CAAC,MAAM,CAAC;SAC5F;IACL,CAAC;IACL,gCAAC;AAAD,CAAC,AAxpBD,IAwpBC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { LanguageWeaverClient } from '../LanguageWeaverClient';
|
|
2
|
+
import ClientConfiguration from '../../../common/configurations/ClientConfiguration';
|
|
3
|
+
import EdgeLanguagePairsResult from '../../translate/edge/result/EdgeLanguagePairsResult';
|
|
4
|
+
import TranslateTextRequest from '../../translate/common/request/TranslateTextRequest';
|
|
5
|
+
import EdgeTranslateTextRequest from '../../translate/edge/request/EdgeTranslateTextRequest';
|
|
6
|
+
import EdgeTranslationTextResult from '../../translate/edge/result/EdgeTranslationTextResult';
|
|
7
|
+
import TranslateTextResult from '../../translate/common/result/TranslateTextResult';
|
|
8
|
+
import TokenConfiguration from '../../../common/configurations/TokenConfiguration';
|
|
9
|
+
import TranslateFileRequest from '../../translate/common/request/TranslateFileRequest';
|
|
10
|
+
import TranslationFileResult from '../../translate/common/result/TranslationFileResult';
|
|
11
|
+
import EdgeTranslateFileRequest from '../../translate/edge/request/EdgeTranslateFileRequest';
|
|
12
|
+
import EdgeTranslationFileResult from '../../translate/edge/result/EdgeTranslationFileResult';
|
|
13
|
+
import LanguagePairsResult from '../../translate/common/result/LanguagePairsResult';
|
|
14
|
+
import EdgeTranslateBatchFileRequest from '../../translate/edge/request/EdgeTranslateBatchFileRequest';
|
|
15
|
+
import EdgeTranslationBatchFileResult from '../../translate/edge/result/EdgeTranslationBatchFileResult';
|
|
16
|
+
import TranslateBatchFileRequest from '../../translate/common/request/TranslateBatchFileRequest';
|
|
17
|
+
import TranslationBatchFileResult from '../../translate/common/result/TranslationBatchFileResult';
|
|
18
|
+
import DictionariesResult from '../../translate/common/result/DictionariesResult';
|
|
19
|
+
import EdgeDictionariesResult from '../../translate/edge/result/EdgeDictionariesResult';
|
|
20
|
+
import FilterFeedbackRequest from '../../feedback/common/request/FilterFeedbackRequest';
|
|
21
|
+
import FeedbackListResult from '../../feedback/common/result/FeedbackListResult';
|
|
22
|
+
import EdgeFilterFeedbackRequest from '../../feedback/edge/request/EdgeFilterFeedbackRequest';
|
|
23
|
+
import EdgeFeedbackListResult from '../../feedback/edge/result/EdgeFeedbackListResult';
|
|
24
|
+
import FeedbackResult from '../../feedback/common/result/FeedbackResult';
|
|
25
|
+
import CreateFeedbackRequest from '../../feedback/common/request/CreateFeedbackRequest';
|
|
26
|
+
import EdgeCreateFeedbackRequest from '../../feedback/edge/request/EdgeCreateFeedbackRequest';
|
|
27
|
+
import EdgeFeedbackResult from '../../feedback/edge/result/EdgeFeedbackResult';
|
|
28
|
+
import UpdateFeedbackRequest from '../../feedback/common/request/UpdateFeedbackRequest';
|
|
29
|
+
import EdgeUpdateFeedbackRequest from '../../feedback/edge/request/EdgeUpdateFeedbackRequest';
|
|
30
|
+
import UpdateFeedbackApprovalRequest from '../../feedback/common/request/UpdateFeedbackApprovalRequest';
|
|
31
|
+
import EdgeUpdateFeedbackApprovalRequest from '../../feedback/edge/request/EdgeUpdateFeedbackApprovalRequest';
|
|
32
|
+
import DeleteFeedbackRequest from '../../feedback/common/request/DeleteFeedbackRequest';
|
|
33
|
+
import EdgeDeleteFeedbackRequest from '../../feedback/edge/request/EdgeDeleteFeedbackRequest';
|
|
34
|
+
export default class EdgeLanguageWeaverClient implements LanguageWeaverClient {
|
|
35
|
+
private _clientConfiguration;
|
|
36
|
+
private _url;
|
|
37
|
+
private _overwriteUrl;
|
|
38
|
+
private _token;
|
|
39
|
+
private _client;
|
|
40
|
+
private _feedbackService;
|
|
41
|
+
constructor();
|
|
42
|
+
withConfigurations(clientConfiguration: ClientConfiguration): EdgeLanguageWeaverClient;
|
|
43
|
+
withTokenConfigurations(tokenConfiguration: TokenConfiguration): EdgeLanguageWeaverClient;
|
|
44
|
+
build(): Promise<EdgeLanguageWeaverClient>;
|
|
45
|
+
get overwriteUrl(): string | undefined;
|
|
46
|
+
set overwriteUrl(value: string | undefined);
|
|
47
|
+
translateTextUsingEdgeParams(translateTextRequest: EdgeTranslateTextRequest): Promise<EdgeTranslationTextResult>;
|
|
48
|
+
translateFileUsingEdgeParams(translateFileRequest: EdgeTranslateFileRequest): Promise<EdgeTranslationFileResult>;
|
|
49
|
+
translateBatchFileUsingEdgeParams(translateBatchFileRequest: EdgeTranslateBatchFileRequest): Promise<EdgeTranslationBatchFileResult>;
|
|
50
|
+
translateText(translateTextRequest: TranslateTextRequest): Promise<TranslateTextResult>;
|
|
51
|
+
translateFile(translateFileRequest: TranslateFileRequest): Promise<TranslationFileResult>;
|
|
52
|
+
translateBatchFile(translateBatchFileRequest: TranslateBatchFileRequest): Promise<TranslationBatchFileResult>;
|
|
53
|
+
getLanguagePairs(): Promise<LanguagePairsResult>;
|
|
54
|
+
getEdgeLanguagePairs(): Promise<EdgeLanguagePairsResult>;
|
|
55
|
+
getDictionaries(page: number, perPage?: number): Promise<DictionariesResult>;
|
|
56
|
+
getEdgeDictionaries(page: number, perPage?: number): Promise<EdgeDictionariesResult>;
|
|
57
|
+
getFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
|
|
58
|
+
getEdgeFeedback(pageNumber: number, pageSize?: number, filterRequest?: EdgeFilterFeedbackRequest): Promise<EdgeFeedbackListResult>;
|
|
59
|
+
createFeedback(createFeedbackRequest: CreateFeedbackRequest): Promise<FeedbackResult>;
|
|
60
|
+
createEdgeFeedback(createEdgeFeedbackRequest: EdgeCreateFeedbackRequest): Promise<EdgeFeedbackResult>;
|
|
61
|
+
updateFeedback(updateFeedbackRequest: UpdateFeedbackRequest): Promise<FeedbackResult>;
|
|
62
|
+
updateEdgeFeedback(updateEdgeFeedbackRequest: EdgeUpdateFeedbackRequest): Promise<EdgeFeedbackResult>;
|
|
63
|
+
updateFeedbackApproval(updateFeedbackApprovalRequest: UpdateFeedbackApprovalRequest): Promise<FeedbackResult>;
|
|
64
|
+
updateEdgeFeedbackApproval(updateEdgeFeedbackApprovalRequest: EdgeUpdateFeedbackApprovalRequest): Promise<EdgeFeedbackResult>;
|
|
65
|
+
deleteFeedback(deleteFeedbackRequest: DeleteFeedbackRequest): Promise<null>;
|
|
66
|
+
deleteEdgeFeedback(deleteEdgeFeedbackRequest: EdgeDeleteFeedbackRequest): Promise<null>;
|
|
67
|
+
private getEdgeLanguagePairsPromise;
|
|
68
|
+
private translate;
|
|
69
|
+
private requestTranslateText;
|
|
70
|
+
private requestTranslateFile;
|
|
71
|
+
private handleStatusResponse;
|
|
72
|
+
private requestTranslateBatchFile;
|
|
73
|
+
private translateFileFromBatch;
|
|
74
|
+
private translateSyncText;
|
|
75
|
+
private translateAsyncText;
|
|
76
|
+
private getTextTranslationResponse;
|
|
77
|
+
private getFileTranslationResponse;
|
|
78
|
+
private retrieveTranslation;
|
|
79
|
+
private obtainFinalStatus;
|
|
80
|
+
private getEdgeTranslateApiModel;
|
|
81
|
+
private hasToken;
|
|
82
|
+
private hasCredentialsConfiguration;
|
|
83
|
+
private setUrl;
|
|
84
|
+
private getLanguagePairForGivenData;
|
|
85
|
+
}
|