@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
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Regions } from '
|
|
1
|
+
import { Regions } from '../constants/Regions';
|
|
2
2
|
export default class HttpUtils {
|
|
3
3
|
static createBaseUrl(domain: string): string;
|
|
4
4
|
static getUrlByRegion(region: Regions): string;
|
|
5
|
+
static getFormDataFromObject(object: Record<string, any>): any;
|
|
5
6
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
var TranslationConstants_1 = require("../constants/TranslationConstants");
|
|
4
|
-
var Regions_1 = require("
|
|
7
|
+
var Regions_1 = require("../constants/Regions");
|
|
8
|
+
var Utils_1 = __importDefault(require("./Utils"));
|
|
5
9
|
var HttpUtils = /** @class */ (function () {
|
|
6
10
|
function HttpUtils() {
|
|
7
11
|
}
|
|
@@ -20,6 +24,15 @@ var HttpUtils = /** @class */ (function () {
|
|
|
20
24
|
return TranslationConstants_1.EUROPE_URL;
|
|
21
25
|
}
|
|
22
26
|
};
|
|
27
|
+
HttpUtils.getFormDataFromObject = function (object) {
|
|
28
|
+
var formData = Utils_1.default.getNewFormDataObject();
|
|
29
|
+
Object.keys(object).map(function (key) {
|
|
30
|
+
if (object[key]) {
|
|
31
|
+
formData.append(key.replace(/^_/, ''), object[key]);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
return formData;
|
|
35
|
+
};
|
|
23
36
|
return HttpUtils;
|
|
24
37
|
}());
|
|
25
38
|
exports.default = HttpUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpUtils.js","sourceRoot":"","sources":["../../../src/common/utils/HttpUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpUtils.js","sourceRoot":"","sources":["../../../src/common/utils/HttpUtils.ts"],"names":[],"mappings":";;;;;AAAA,0EAAuE;AACvE,gDAA+C;AAC/C,kDAA4B;AAE5B;IAAA;IA6BA,CAAC;IA5BU,uBAAa,GAApB,UAAqB,MAAc;QAC/B,IAAI,GAAG,GAAG,MAAM,CAAC;QACjB,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAC3E,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;SAC7B;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEM,wBAAc,GAArB,UAAsB,MAAe;QACjC,IAAI,MAAM,KAAK,iBAAO,CAAC,EAAE,EAAE;YACvB,OAAO,6BAAM,CAAC;SACjB;aAAM;YACH,OAAO,iCAAU,CAAC;SACrB;IACL,CAAC;IAEM,+BAAqB,GAA5B,UAA6B,MAA2B;QACpD,IAAM,QAAQ,GAAG,eAAK,CAAC,oBAAoB,EAAE,CAAC;QAE9C,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,UAAC,GAAW;YAChC,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE;gBACb,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;aACvD;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IACpB,CAAC;IACL,gBAAC;AAAD,CAAC,AA7BD,IA6BC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Token from '
|
|
2
|
-
import { Format } from '
|
|
1
|
+
import Token from '../auth/domain/Token';
|
|
2
|
+
import { Format } from '../constants/Format';
|
|
3
3
|
export default class Utils {
|
|
4
4
|
static getLang3FromLangCode2(code: string): string;
|
|
5
5
|
static getLanguageCode3(language: string | undefined): string;
|
|
@@ -43,7 +43,7 @@ var jwt_decode_1 = __importDefault(require("jwt-decode"));
|
|
|
43
43
|
var Iso639Mapping_1 = require("../constants/languages/Iso639Mapping");
|
|
44
44
|
var TranslationConstants_1 = require("../constants/TranslationConstants");
|
|
45
45
|
var FileExtensions_1 = require("../constants/FileExtensions");
|
|
46
|
-
var Format_1 = require("
|
|
46
|
+
var Format_1 = require("../constants/Format");
|
|
47
47
|
var Utils = /** @class */ (function () {
|
|
48
48
|
function Utils() {
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/common/utils/Utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA6C;AAE7C,sEAAqE;AACrE,0EAa2C;AAE3C,8DAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"Utils.js","sourceRo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AAO,IAAI,YAAY,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;SAChD;aAAM;YACH,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;YAC7B,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9D;IACL,CAAC;IAEM,0BAAoB,GAA3B;QACI,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE;YAClB,OAAO,IAAI,QAAQ,EAAE,CAAC;SACzB;aAAM;YACH,IAAM,UAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;YACtC,OAAO,IAAI,UAAQ,EAAE,CAAC;SACzB;IACL,CAAC;IACL,YAAC;AAAD,CAAC,AAlRD,IAkRC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,51 +1,84 @@
|
|
|
1
|
-
import SdkFactory from './SdkFactory';
|
|
2
|
-
import CloudLanguageWeaverClient from './CloudLanguageWeaverClient';
|
|
3
|
-
import EdgeLanguageWeaverClient from './EdgeLanguageWeaverClient';
|
|
4
|
-
import { LanguageWeaverClient } from './LanguageWeaverClient';
|
|
1
|
+
import SdkFactory from './translation/common/SdkFactory';
|
|
2
|
+
import CloudLanguageWeaverClient from './translation/common/cloud/CloudLanguageWeaverClient';
|
|
3
|
+
import EdgeLanguageWeaverClient from './translation/common/edge/EdgeLanguageWeaverClient';
|
|
4
|
+
import { LanguageWeaverClient } from './translation/common/LanguageWeaverClient';
|
|
5
5
|
import CredentialsConfiguration from './common/configurations/CredentialsConfiguration';
|
|
6
6
|
import RetryConfiguration from './common/configurations/RetryConfiguration';
|
|
7
7
|
import ClientConfiguration from './common/configurations/ClientConfiguration';
|
|
8
8
|
import TokenConfiguration from './common/configurations/TokenConfiguration';
|
|
9
|
-
import { Product } from './
|
|
10
|
-
import { Regions } from './
|
|
11
|
-
import { Format } from './
|
|
9
|
+
import { Product } from './common/constants/Product';
|
|
10
|
+
import { Regions } from './common/constants/Regions';
|
|
11
|
+
import { Format } from './common/constants/Format';
|
|
12
12
|
import HttpUtils from './common/utils/HttpUtils';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
13
|
+
import { ApprovalStatus } from './common/constants/ApprovalStatus';
|
|
14
|
+
import { QualityEstimation } from './common/constants/QualityEstimation';
|
|
15
|
+
import { FeedbackCategory } from './common/constants/FeedbackCategory';
|
|
16
|
+
import { FeedbackComment } from './common/constants/FeedbackComment';
|
|
17
|
+
import { Order } from './common/constants/Order';
|
|
18
|
+
import { PdfConverter } from './common/constants/PdfConverter';
|
|
19
|
+
import Token from './common/auth/domain/Token';
|
|
20
|
+
import TranslateTextRequest from './translation/translate/common/request/TranslateTextRequest';
|
|
21
|
+
import CloudTranslateTextRequest from './translation/translate/cloud/request/CloudTranslateTextRequest';
|
|
22
|
+
import EdgeTranslateTextRequest from './translation/translate/edge/request/EdgeTranslateTextRequest';
|
|
23
|
+
import TranslateTextResult from './translation/translate/common/result/TranslateTextResult';
|
|
24
|
+
import CloudTranslationTextResult from './translation/translate/cloud/result/CloudTranslationTextResult';
|
|
25
|
+
import EdgeTranslationTextResult from './translation/translate/edge/result/EdgeTranslationTextResult';
|
|
26
|
+
import TranslateFileRequest from './translation/translate/common/request/TranslateFileRequest';
|
|
27
|
+
import CloudTranslateFileRequest from './translation/translate/cloud/request/CloudTranslateFileRequest';
|
|
28
|
+
import EdgeTranslateFileRequest from './translation/translate/edge/request/EdgeTranslateFileRequest';
|
|
29
|
+
import TranslationFileResult from './translation/translate/common/result/TranslationFileResult';
|
|
30
|
+
import CloudTranslationFileResult from './translation/translate/cloud/result/CloudTranslationFileResult';
|
|
31
|
+
import EdgeTranslationFileResult from './translation/translate/edge/result/EdgeTranslationFileResult';
|
|
32
|
+
import TranslateBatchFileRequest from './translation/translate/common/request/TranslateBatchFileRequest';
|
|
33
|
+
import CloudTranslateBatchFileRequest from './translation/translate/cloud/request/CloudTranslateBatchFileRequest';
|
|
34
|
+
import EdgeTranslateBatchFileRequest from './translation/translate/edge/request/EdgeTranslateBatchFileRequest';
|
|
35
|
+
import TranslationBatchFileResult from './translation/translate/common/result/TranslationBatchFileResult';
|
|
36
|
+
import CloudTranslationBatchFileResult from './translation/translate/cloud/result/CloudTranslationBatchFileResult';
|
|
37
|
+
import EdgeTranslationBatchFileResult from './translation/translate/edge/result/EdgeTranslationBatchFileResult';
|
|
38
|
+
import LanguagePairsResult from './translation/translate/common/result/LanguagePairsResult';
|
|
39
|
+
import LanguagePair from './translation/translate/common/api/LanguagePair';
|
|
40
|
+
import CloudLanguagePairsResult from './translation/translate/cloud/result/CloudLanguagePairsResult';
|
|
41
|
+
import EdgeLanguagePairsResult from './translation/translate/edge/result/EdgeLanguagePairsResult';
|
|
42
|
+
import CloudLanguagePair from './translation/translate/cloud/api/CloudLanguagePair';
|
|
43
|
+
import EdgeLanguagePair from './translation/translate/edge/api/EdgeLanguagePair';
|
|
44
|
+
import DictionariesResult from './translation/translate/common/result/DictionariesResult';
|
|
45
|
+
import DictionaryResponse from './translation/translate/common/api/DictionaryResponse';
|
|
46
|
+
import CloudDictionariesResult from './translation/translate/cloud/result/CloudDictionariesResult';
|
|
47
|
+
import CloudDictionaryResponse from './translation/translate/cloud/api/CloudDictionaryResponse';
|
|
48
|
+
import EdgeDictionariesResult from './translation/translate/edge/result/EdgeDictionariesResult';
|
|
49
|
+
import EdgeDictionaryResponse from './translation/translate/edge/api/EdgeDictionaryResponse';
|
|
50
|
+
import { CloudFeedbackSortCriteria } from './translation/feedback/cloud/model/CloudFeedbackSortCriteria';
|
|
51
|
+
import CloudAuditData from './translation/feedback/cloud/model/CloudAuditData';
|
|
52
|
+
import CloudFeedbackSortRequest from './translation/feedback/cloud/request/CloudFeedbackSortRequest';
|
|
53
|
+
import CloudFilterFeedbackRequest from './translation/feedback/cloud/request/CloudFilterFeedbackRequest';
|
|
54
|
+
import CloudFeedbackListResult from './translation/feedback/cloud/result/CloudFeedbackListResult';
|
|
55
|
+
import CloudFeedbackResult from './translation/feedback/cloud/result/CloudFeedbackResult';
|
|
56
|
+
import AuditData from './translation/feedback/common/model/AuditData';
|
|
57
|
+
import FilterFeedbackRequest from './translation/feedback/common/request/FilterFeedbackRequest';
|
|
58
|
+
import FeedbackListResult from './translation/feedback/common/result/FeedbackListResult';
|
|
59
|
+
import FeedbackResult from './translation/feedback/common/result/FeedbackResult';
|
|
60
|
+
import FeedbackCommonResult from './translation/feedback/common/result/FeedbackCommonResult';
|
|
61
|
+
import EdgeFilterFeedbackRequest from './translation/feedback/edge/request/EdgeFilterFeedbackRequest';
|
|
62
|
+
import EdgeFeedbackListResult from './translation/feedback/edge/result/EdgeFeedbackListResult';
|
|
63
|
+
import EdgeFeedbackResult from './translation/feedback/edge/result/EdgeFeedbackResult';
|
|
64
|
+
import CreateFeedbackRequest from './translation/feedback/common/request/CreateFeedbackRequest';
|
|
65
|
+
import CloudCreateFeedbackRequest from './translation/feedback/cloud/request/CloudCreateFeedbackRequest';
|
|
66
|
+
import EdgeCreateFeedbackRequest from './translation/feedback/edge/request/EdgeCreateFeedbackRequest';
|
|
67
|
+
import UpdateFeedbackRequest from './translation/feedback/common/request/UpdateFeedbackRequest';
|
|
68
|
+
import CloudUpdateFeedbackRequest from './translation/feedback/cloud/request/CloudUpdateFeedbackRequest';
|
|
69
|
+
import EdgeUpdateFeedbackRequest from './translation/feedback/edge/request/EdgeUpdateFeedbackRequest';
|
|
70
|
+
import UpdateFeedbackApprovalRequest from './translation/feedback/common/request/UpdateFeedbackApprovalRequest';
|
|
71
|
+
import CloudUpdateFeedbackApprovalRequest from './translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest';
|
|
72
|
+
import EdgeUpdateFeedbackApprovalRequest from './translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest';
|
|
73
|
+
import DeleteFeedbackRequest from './translation/feedback/common/request/DeleteFeedbackRequest';
|
|
74
|
+
import CloudDeleteFeedbackRequest from './translation/feedback/cloud/request/CloudDeleteFeedbackRequest';
|
|
75
|
+
import EdgeDeleteFeedbackRequest from './translation/feedback/edge/request/EdgeDeleteFeedbackRequest';
|
|
44
76
|
export default SdkFactory;
|
|
45
77
|
export { CloudLanguageWeaverClient, EdgeLanguageWeaverClient, LanguageWeaverClient };
|
|
46
78
|
export { TokenConfiguration, CredentialsConfiguration, RetryConfiguration, ClientConfiguration };
|
|
47
|
-
export { Product, Regions, Format, HttpUtils };
|
|
79
|
+
export { Product, Regions, Format, HttpUtils, ApprovalStatus, QualityEstimation, FeedbackCategory, FeedbackComment, Order, PdfConverter, };
|
|
48
80
|
export { Token };
|
|
49
81
|
export { TranslateTextRequest, CloudTranslateTextRequest, EdgeTranslateTextRequest, TranslateTextResult, CloudTranslationTextResult, EdgeTranslationTextResult, TranslateFileRequest, CloudTranslateFileRequest, EdgeTranslateFileRequest, TranslationFileResult, CloudTranslationFileResult, EdgeTranslationFileResult, TranslateBatchFileRequest, CloudTranslateBatchFileRequest, EdgeTranslateBatchFileRequest, TranslationBatchFileResult, CloudTranslationBatchFileResult, EdgeTranslationBatchFileResult, };
|
|
50
82
|
export { LanguagePair, LanguagePairsResult, CloudLanguagePair, CloudLanguagePairsResult, EdgeLanguagePair, EdgeLanguagePairsResult, };
|
|
51
83
|
export { DictionariesResult, DictionaryResponse, CloudDictionariesResult, CloudDictionaryResponse, EdgeDictionariesResult, EdgeDictionaryResponse, };
|
|
84
|
+
export { CloudFeedbackSortCriteria, CloudAuditData, CloudFeedbackSortRequest, CloudFilterFeedbackRequest, CloudFeedbackListResult, CloudFeedbackResult, AuditData, FilterFeedbackRequest, FeedbackListResult, FeedbackResult, FeedbackCommonResult, EdgeFilterFeedbackRequest, EdgeFeedbackListResult, EdgeFeedbackResult, CreateFeedbackRequest, CloudCreateFeedbackRequest, EdgeCreateFeedbackRequest, UpdateFeedbackRequest, CloudUpdateFeedbackRequest, EdgeUpdateFeedbackRequest, UpdateFeedbackApprovalRequest, CloudUpdateFeedbackApprovalRequest, EdgeUpdateFeedbackApprovalRequest, DeleteFeedbackRequest, CloudDeleteFeedbackRequest, EdgeDeleteFeedbackRequest, };
|
package/lib/index.js
CHANGED
|
@@ -3,12 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.EdgeDictionaryResponse = exports.EdgeDictionariesResult = exports.CloudDictionaryResponse = exports.CloudDictionariesResult = exports.DictionaryResponse = exports.DictionariesResult = exports.EdgeLanguagePairsResult = exports.EdgeLanguagePair = exports.CloudLanguagePairsResult = exports.CloudLanguagePair = exports.LanguagePairsResult = exports.LanguagePair = exports.EdgeTranslationBatchFileResult = exports.CloudTranslationBatchFileResult = exports.TranslationBatchFileResult = exports.EdgeTranslateBatchFileRequest = exports.CloudTranslateBatchFileRequest = exports.TranslateBatchFileRequest = exports.EdgeTranslationFileResult = exports.CloudTranslationFileResult = exports.TranslationFileResult = exports.EdgeTranslateFileRequest = exports.CloudTranslateFileRequest = exports.TranslateFileRequest = exports.EdgeTranslationTextResult = exports.CloudTranslationTextResult = exports.TranslateTextResult = exports.EdgeTranslateTextRequest = exports.CloudTranslateTextRequest = exports.TranslateTextRequest = exports.Token = exports.HttpUtils = exports.Format = exports.Regions = exports.Product = exports.ClientConfiguration = exports.RetryConfiguration = exports.CredentialsConfiguration = exports.TokenConfiguration = exports.EdgeLanguageWeaverClient = exports.CloudLanguageWeaverClient = void 0;
|
|
6
|
+
exports.CloudFeedbackSortRequest = exports.CloudAuditData = exports.CloudFeedbackSortCriteria = exports.EdgeDictionaryResponse = exports.EdgeDictionariesResult = exports.CloudDictionaryResponse = exports.CloudDictionariesResult = exports.DictionaryResponse = exports.DictionariesResult = exports.EdgeLanguagePairsResult = exports.EdgeLanguagePair = exports.CloudLanguagePairsResult = exports.CloudLanguagePair = exports.LanguagePairsResult = exports.LanguagePair = exports.EdgeTranslationBatchFileResult = exports.CloudTranslationBatchFileResult = exports.TranslationBatchFileResult = exports.EdgeTranslateBatchFileRequest = exports.CloudTranslateBatchFileRequest = exports.TranslateBatchFileRequest = exports.EdgeTranslationFileResult = exports.CloudTranslationFileResult = exports.TranslationFileResult = exports.EdgeTranslateFileRequest = exports.CloudTranslateFileRequest = exports.TranslateFileRequest = exports.EdgeTranslationTextResult = exports.CloudTranslationTextResult = exports.TranslateTextResult = exports.EdgeTranslateTextRequest = exports.CloudTranslateTextRequest = exports.TranslateTextRequest = exports.Token = exports.PdfConverter = exports.Order = exports.FeedbackComment = exports.FeedbackCategory = exports.QualityEstimation = exports.ApprovalStatus = exports.HttpUtils = exports.Format = exports.Regions = exports.Product = exports.ClientConfiguration = exports.RetryConfiguration = exports.CredentialsConfiguration = exports.TokenConfiguration = exports.EdgeLanguageWeaverClient = exports.CloudLanguageWeaverClient = void 0;
|
|
7
|
+
exports.EdgeDeleteFeedbackRequest = exports.CloudDeleteFeedbackRequest = exports.DeleteFeedbackRequest = exports.EdgeUpdateFeedbackApprovalRequest = exports.CloudUpdateFeedbackApprovalRequest = exports.UpdateFeedbackApprovalRequest = exports.EdgeUpdateFeedbackRequest = exports.CloudUpdateFeedbackRequest = exports.UpdateFeedbackRequest = exports.EdgeCreateFeedbackRequest = exports.CloudCreateFeedbackRequest = exports.CreateFeedbackRequest = exports.EdgeFeedbackResult = exports.EdgeFeedbackListResult = exports.EdgeFilterFeedbackRequest = exports.FeedbackCommonResult = exports.FeedbackResult = exports.FeedbackListResult = exports.FilterFeedbackRequest = exports.AuditData = exports.CloudFeedbackResult = exports.CloudFeedbackListResult = exports.CloudFilterFeedbackRequest = void 0;
|
|
7
8
|
/* Imports */
|
|
8
|
-
var SdkFactory_1 = __importDefault(require("./SdkFactory"));
|
|
9
|
-
var CloudLanguageWeaverClient_1 = __importDefault(require("./CloudLanguageWeaverClient"));
|
|
9
|
+
var SdkFactory_1 = __importDefault(require("./translation/common/SdkFactory"));
|
|
10
|
+
var CloudLanguageWeaverClient_1 = __importDefault(require("./translation/common/cloud/CloudLanguageWeaverClient"));
|
|
10
11
|
exports.CloudLanguageWeaverClient = CloudLanguageWeaverClient_1.default;
|
|
11
|
-
var EdgeLanguageWeaverClient_1 = __importDefault(require("./EdgeLanguageWeaverClient"));
|
|
12
|
+
var EdgeLanguageWeaverClient_1 = __importDefault(require("./translation/common/edge/EdgeLanguageWeaverClient"));
|
|
12
13
|
exports.EdgeLanguageWeaverClient = EdgeLanguageWeaverClient_1.default;
|
|
13
14
|
// Configurations
|
|
14
15
|
var CredentialsConfiguration_1 = __importDefault(require("./common/configurations/CredentialsConfiguration"));
|
|
@@ -20,80 +21,145 @@ exports.ClientConfiguration = ClientConfiguration_1.default;
|
|
|
20
21
|
var TokenConfiguration_1 = __importDefault(require("./common/configurations/TokenConfiguration"));
|
|
21
22
|
exports.TokenConfiguration = TokenConfiguration_1.default;
|
|
22
23
|
// Common
|
|
23
|
-
var Product_1 = require("./
|
|
24
|
+
var Product_1 = require("./common/constants/Product");
|
|
24
25
|
Object.defineProperty(exports, "Product", { enumerable: true, get: function () { return Product_1.Product; } });
|
|
25
|
-
var Regions_1 = require("./
|
|
26
|
+
var Regions_1 = require("./common/constants/Regions");
|
|
26
27
|
Object.defineProperty(exports, "Regions", { enumerable: true, get: function () { return Regions_1.Regions; } });
|
|
27
|
-
var Format_1 = require("./
|
|
28
|
+
var Format_1 = require("./common/constants/Format");
|
|
28
29
|
Object.defineProperty(exports, "Format", { enumerable: true, get: function () { return Format_1.Format; } });
|
|
29
30
|
var HttpUtils_1 = __importDefault(require("./common/utils/HttpUtils"));
|
|
30
31
|
exports.HttpUtils = HttpUtils_1.default;
|
|
32
|
+
var ApprovalStatus_1 = require("./common/constants/ApprovalStatus");
|
|
33
|
+
Object.defineProperty(exports, "ApprovalStatus", { enumerable: true, get: function () { return ApprovalStatus_1.ApprovalStatus; } });
|
|
34
|
+
var QualityEstimation_1 = require("./common/constants/QualityEstimation");
|
|
35
|
+
Object.defineProperty(exports, "QualityEstimation", { enumerable: true, get: function () { return QualityEstimation_1.QualityEstimation; } });
|
|
36
|
+
var FeedbackCategory_1 = require("./common/constants/FeedbackCategory");
|
|
37
|
+
Object.defineProperty(exports, "FeedbackCategory", { enumerable: true, get: function () { return FeedbackCategory_1.FeedbackCategory; } });
|
|
38
|
+
var FeedbackComment_1 = require("./common/constants/FeedbackComment");
|
|
39
|
+
Object.defineProperty(exports, "FeedbackComment", { enumerable: true, get: function () { return FeedbackComment_1.FeedbackComment; } });
|
|
40
|
+
var Order_1 = require("./common/constants/Order");
|
|
41
|
+
Object.defineProperty(exports, "Order", { enumerable: true, get: function () { return Order_1.Order; } });
|
|
42
|
+
var PdfConverter_1 = require("./common/constants/PdfConverter");
|
|
43
|
+
Object.defineProperty(exports, "PdfConverter", { enumerable: true, get: function () { return PdfConverter_1.PdfConverter; } });
|
|
31
44
|
// Auth
|
|
32
|
-
var Token_1 = __importDefault(require("./auth/domain/Token"));
|
|
45
|
+
var Token_1 = __importDefault(require("./common/auth/domain/Token"));
|
|
33
46
|
exports.Token = Token_1.default;
|
|
34
47
|
// Translation
|
|
35
|
-
var TranslateTextRequest_1 = __importDefault(require("./translation/translate/request/TranslateTextRequest"));
|
|
48
|
+
var TranslateTextRequest_1 = __importDefault(require("./translation/translate/common/request/TranslateTextRequest"));
|
|
36
49
|
exports.TranslateTextRequest = TranslateTextRequest_1.default;
|
|
37
|
-
var CloudTranslateTextRequest_1 = __importDefault(require("./translation/translate/request/
|
|
50
|
+
var CloudTranslateTextRequest_1 = __importDefault(require("./translation/translate/cloud/request/CloudTranslateTextRequest"));
|
|
38
51
|
exports.CloudTranslateTextRequest = CloudTranslateTextRequest_1.default;
|
|
39
|
-
var EdgeTranslateTextRequest_1 = __importDefault(require("./translation/translate/request/
|
|
52
|
+
var EdgeTranslateTextRequest_1 = __importDefault(require("./translation/translate/edge/request/EdgeTranslateTextRequest"));
|
|
40
53
|
exports.EdgeTranslateTextRequest = EdgeTranslateTextRequest_1.default;
|
|
41
|
-
var TranslateTextResult_1 = __importDefault(require("./translation/translate/result/TranslateTextResult"));
|
|
54
|
+
var TranslateTextResult_1 = __importDefault(require("./translation/translate/common/result/TranslateTextResult"));
|
|
42
55
|
exports.TranslateTextResult = TranslateTextResult_1.default;
|
|
43
|
-
var CloudTranslationTextResult_1 = __importDefault(require("./translation/translate/result/
|
|
56
|
+
var CloudTranslationTextResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudTranslationTextResult"));
|
|
44
57
|
exports.CloudTranslationTextResult = CloudTranslationTextResult_1.default;
|
|
45
|
-
var EdgeTranslationTextResult_1 = __importDefault(require("./translation/translate/result/
|
|
58
|
+
var EdgeTranslationTextResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeTranslationTextResult"));
|
|
46
59
|
exports.EdgeTranslationTextResult = EdgeTranslationTextResult_1.default;
|
|
47
|
-
var TranslateFileRequest_1 = __importDefault(require("./translation/translate/request/TranslateFileRequest"));
|
|
60
|
+
var TranslateFileRequest_1 = __importDefault(require("./translation/translate/common/request/TranslateFileRequest"));
|
|
48
61
|
exports.TranslateFileRequest = TranslateFileRequest_1.default;
|
|
49
|
-
var CloudTranslateFileRequest_1 = __importDefault(require("./translation/translate/request/
|
|
62
|
+
var CloudTranslateFileRequest_1 = __importDefault(require("./translation/translate/cloud/request/CloudTranslateFileRequest"));
|
|
50
63
|
exports.CloudTranslateFileRequest = CloudTranslateFileRequest_1.default;
|
|
51
|
-
var EdgeTranslateFileRequest_1 = __importDefault(require("./translation/translate/request/
|
|
64
|
+
var EdgeTranslateFileRequest_1 = __importDefault(require("./translation/translate/edge/request/EdgeTranslateFileRequest"));
|
|
52
65
|
exports.EdgeTranslateFileRequest = EdgeTranslateFileRequest_1.default;
|
|
53
|
-
var TranslationFileResult_1 = __importDefault(require("./translation/translate/result/TranslationFileResult"));
|
|
66
|
+
var TranslationFileResult_1 = __importDefault(require("./translation/translate/common/result/TranslationFileResult"));
|
|
54
67
|
exports.TranslationFileResult = TranslationFileResult_1.default;
|
|
55
|
-
var CloudTranslationFileResult_1 = __importDefault(require("./translation/translate/result/
|
|
68
|
+
var CloudTranslationFileResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudTranslationFileResult"));
|
|
56
69
|
exports.CloudTranslationFileResult = CloudTranslationFileResult_1.default;
|
|
57
|
-
var EdgeTranslationFileResult_1 = __importDefault(require("./translation/translate/result/
|
|
70
|
+
var EdgeTranslationFileResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeTranslationFileResult"));
|
|
58
71
|
exports.EdgeTranslationFileResult = EdgeTranslationFileResult_1.default;
|
|
59
|
-
var TranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/request/TranslateBatchFileRequest"));
|
|
72
|
+
var TranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/common/request/TranslateBatchFileRequest"));
|
|
60
73
|
exports.TranslateBatchFileRequest = TranslateBatchFileRequest_1.default;
|
|
61
|
-
var CloudTranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/request/
|
|
74
|
+
var CloudTranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/cloud/request/CloudTranslateBatchFileRequest"));
|
|
62
75
|
exports.CloudTranslateBatchFileRequest = CloudTranslateBatchFileRequest_1.default;
|
|
63
|
-
var EdgeTranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/request/
|
|
76
|
+
var EdgeTranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/edge/request/EdgeTranslateBatchFileRequest"));
|
|
64
77
|
exports.EdgeTranslateBatchFileRequest = EdgeTranslateBatchFileRequest_1.default;
|
|
65
|
-
var TranslationBatchFileResult_1 = __importDefault(require("./translation/translate/result/TranslationBatchFileResult"));
|
|
78
|
+
var TranslationBatchFileResult_1 = __importDefault(require("./translation/translate/common/result/TranslationBatchFileResult"));
|
|
66
79
|
exports.TranslationBatchFileResult = TranslationBatchFileResult_1.default;
|
|
67
|
-
var CloudTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/result/
|
|
80
|
+
var CloudTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudTranslationBatchFileResult"));
|
|
68
81
|
exports.CloudTranslationBatchFileResult = CloudTranslationBatchFileResult_1.default;
|
|
69
|
-
var EdgeTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/result/
|
|
82
|
+
var EdgeTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeTranslationBatchFileResult"));
|
|
70
83
|
exports.EdgeTranslationBatchFileResult = EdgeTranslationBatchFileResult_1.default;
|
|
71
84
|
// LPs
|
|
72
|
-
var LanguagePairsResult_1 = __importDefault(require("./translation/translate/result/LanguagePairsResult"));
|
|
85
|
+
var LanguagePairsResult_1 = __importDefault(require("./translation/translate/common/result/LanguagePairsResult"));
|
|
73
86
|
exports.LanguagePairsResult = LanguagePairsResult_1.default;
|
|
74
|
-
var LanguagePair_1 = __importDefault(require("./translation/translate/
|
|
87
|
+
var LanguagePair_1 = __importDefault(require("./translation/translate/common/api/LanguagePair"));
|
|
75
88
|
exports.LanguagePair = LanguagePair_1.default;
|
|
76
|
-
var CloudLanguagePairsResult_1 = __importDefault(require("./translation/translate/result/
|
|
89
|
+
var CloudLanguagePairsResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudLanguagePairsResult"));
|
|
77
90
|
exports.CloudLanguagePairsResult = CloudLanguagePairsResult_1.default;
|
|
78
|
-
var EdgeLanguagePairsResult_1 = __importDefault(require("./translation/translate/result/
|
|
91
|
+
var EdgeLanguagePairsResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeLanguagePairsResult"));
|
|
79
92
|
exports.EdgeLanguagePairsResult = EdgeLanguagePairsResult_1.default;
|
|
80
|
-
var CloudLanguagePair_1 = __importDefault(require("./translation/translate/
|
|
93
|
+
var CloudLanguagePair_1 = __importDefault(require("./translation/translate/cloud/api/CloudLanguagePair"));
|
|
81
94
|
exports.CloudLanguagePair = CloudLanguagePair_1.default;
|
|
82
|
-
var EdgeLanguagePair_1 = __importDefault(require("./translation/translate/
|
|
95
|
+
var EdgeLanguagePair_1 = __importDefault(require("./translation/translate/edge/api/EdgeLanguagePair"));
|
|
83
96
|
exports.EdgeLanguagePair = EdgeLanguagePair_1.default;
|
|
84
97
|
// Dictionaries
|
|
85
|
-
var DictionariesResult_1 = __importDefault(require("./translation/translate/result/DictionariesResult"));
|
|
98
|
+
var DictionariesResult_1 = __importDefault(require("./translation/translate/common/result/DictionariesResult"));
|
|
86
99
|
exports.DictionariesResult = DictionariesResult_1.default;
|
|
87
|
-
var DictionaryResponse_1 = __importDefault(require("./translation/translate/
|
|
100
|
+
var DictionaryResponse_1 = __importDefault(require("./translation/translate/common/api/DictionaryResponse"));
|
|
88
101
|
exports.DictionaryResponse = DictionaryResponse_1.default;
|
|
89
|
-
var CloudDictionariesResult_1 = __importDefault(require("./translation/translate/result/
|
|
102
|
+
var CloudDictionariesResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudDictionariesResult"));
|
|
90
103
|
exports.CloudDictionariesResult = CloudDictionariesResult_1.default;
|
|
91
|
-
var CloudDictionaryResponse_1 = __importDefault(require("./translation/translate/
|
|
104
|
+
var CloudDictionaryResponse_1 = __importDefault(require("./translation/translate/cloud/api/CloudDictionaryResponse"));
|
|
92
105
|
exports.CloudDictionaryResponse = CloudDictionaryResponse_1.default;
|
|
93
|
-
var EdgeDictionariesResult_1 = __importDefault(require("./translation/translate/result/
|
|
106
|
+
var EdgeDictionariesResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeDictionariesResult"));
|
|
94
107
|
exports.EdgeDictionariesResult = EdgeDictionariesResult_1.default;
|
|
95
|
-
var EdgeDictionaryResponse_1 = __importDefault(require("./translation/translate/
|
|
108
|
+
var EdgeDictionaryResponse_1 = __importDefault(require("./translation/translate/edge/api/EdgeDictionaryResponse"));
|
|
96
109
|
exports.EdgeDictionaryResponse = EdgeDictionaryResponse_1.default;
|
|
110
|
+
// Feedback
|
|
111
|
+
var CloudFeedbackSortCriteria_1 = require("./translation/feedback/cloud/model/CloudFeedbackSortCriteria");
|
|
112
|
+
Object.defineProperty(exports, "CloudFeedbackSortCriteria", { enumerable: true, get: function () { return CloudFeedbackSortCriteria_1.CloudFeedbackSortCriteria; } });
|
|
113
|
+
var CloudAuditData_1 = __importDefault(require("./translation/feedback/cloud/model/CloudAuditData"));
|
|
114
|
+
exports.CloudAuditData = CloudAuditData_1.default;
|
|
115
|
+
var CloudFeedbackSortRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudFeedbackSortRequest"));
|
|
116
|
+
exports.CloudFeedbackSortRequest = CloudFeedbackSortRequest_1.default;
|
|
117
|
+
var CloudFilterFeedbackRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudFilterFeedbackRequest"));
|
|
118
|
+
exports.CloudFilterFeedbackRequest = CloudFilterFeedbackRequest_1.default;
|
|
119
|
+
var CloudFeedbackListResult_1 = __importDefault(require("./translation/feedback/cloud/result/CloudFeedbackListResult"));
|
|
120
|
+
exports.CloudFeedbackListResult = CloudFeedbackListResult_1.default;
|
|
121
|
+
var CloudFeedbackResult_1 = __importDefault(require("./translation/feedback/cloud/result/CloudFeedbackResult"));
|
|
122
|
+
exports.CloudFeedbackResult = CloudFeedbackResult_1.default;
|
|
123
|
+
var AuditData_1 = __importDefault(require("./translation/feedback/common/model/AuditData"));
|
|
124
|
+
exports.AuditData = AuditData_1.default;
|
|
125
|
+
var FilterFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/FilterFeedbackRequest"));
|
|
126
|
+
exports.FilterFeedbackRequest = FilterFeedbackRequest_1.default;
|
|
127
|
+
var FeedbackListResult_1 = __importDefault(require("./translation/feedback/common/result/FeedbackListResult"));
|
|
128
|
+
exports.FeedbackListResult = FeedbackListResult_1.default;
|
|
129
|
+
var FeedbackResult_1 = __importDefault(require("./translation/feedback/common/result/FeedbackResult"));
|
|
130
|
+
exports.FeedbackResult = FeedbackResult_1.default;
|
|
131
|
+
var FeedbackCommonResult_1 = __importDefault(require("./translation/feedback/common/result/FeedbackCommonResult"));
|
|
132
|
+
exports.FeedbackCommonResult = FeedbackCommonResult_1.default;
|
|
133
|
+
var EdgeFilterFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeFilterFeedbackRequest"));
|
|
134
|
+
exports.EdgeFilterFeedbackRequest = EdgeFilterFeedbackRequest_1.default;
|
|
135
|
+
var EdgeFeedbackListResult_1 = __importDefault(require("./translation/feedback/edge/result/EdgeFeedbackListResult"));
|
|
136
|
+
exports.EdgeFeedbackListResult = EdgeFeedbackListResult_1.default;
|
|
137
|
+
var EdgeFeedbackResult_1 = __importDefault(require("./translation/feedback/edge/result/EdgeFeedbackResult"));
|
|
138
|
+
exports.EdgeFeedbackResult = EdgeFeedbackResult_1.default;
|
|
139
|
+
var CreateFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/CreateFeedbackRequest"));
|
|
140
|
+
exports.CreateFeedbackRequest = CreateFeedbackRequest_1.default;
|
|
141
|
+
var CloudCreateFeedbackRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudCreateFeedbackRequest"));
|
|
142
|
+
exports.CloudCreateFeedbackRequest = CloudCreateFeedbackRequest_1.default;
|
|
143
|
+
var EdgeCreateFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeCreateFeedbackRequest"));
|
|
144
|
+
exports.EdgeCreateFeedbackRequest = EdgeCreateFeedbackRequest_1.default;
|
|
145
|
+
var UpdateFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/UpdateFeedbackRequest"));
|
|
146
|
+
exports.UpdateFeedbackRequest = UpdateFeedbackRequest_1.default;
|
|
147
|
+
var CloudUpdateFeedbackRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudUpdateFeedbackRequest"));
|
|
148
|
+
exports.CloudUpdateFeedbackRequest = CloudUpdateFeedbackRequest_1.default;
|
|
149
|
+
var EdgeUpdateFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeUpdateFeedbackRequest"));
|
|
150
|
+
exports.EdgeUpdateFeedbackRequest = EdgeUpdateFeedbackRequest_1.default;
|
|
151
|
+
var UpdateFeedbackApprovalRequest_1 = __importDefault(require("./translation/feedback/common/request/UpdateFeedbackApprovalRequest"));
|
|
152
|
+
exports.UpdateFeedbackApprovalRequest = UpdateFeedbackApprovalRequest_1.default;
|
|
153
|
+
var CloudUpdateFeedbackApprovalRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudUpdateFeedbackApprovalRequest"));
|
|
154
|
+
exports.CloudUpdateFeedbackApprovalRequest = CloudUpdateFeedbackApprovalRequest_1.default;
|
|
155
|
+
var EdgeUpdateFeedbackApprovalRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeUpdateFeedbackApprovalRequest"));
|
|
156
|
+
exports.EdgeUpdateFeedbackApprovalRequest = EdgeUpdateFeedbackApprovalRequest_1.default;
|
|
157
|
+
var DeleteFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/DeleteFeedbackRequest"));
|
|
158
|
+
exports.DeleteFeedbackRequest = DeleteFeedbackRequest_1.default;
|
|
159
|
+
var CloudDeleteFeedbackRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudDeleteFeedbackRequest"));
|
|
160
|
+
exports.CloudDeleteFeedbackRequest = CloudDeleteFeedbackRequest_1.default;
|
|
161
|
+
var EdgeDeleteFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeDeleteFeedbackRequest"));
|
|
162
|
+
exports.EdgeDeleteFeedbackRequest = EdgeDeleteFeedbackRequest_1.default;
|
|
97
163
|
/* Exports */
|
|
98
164
|
exports.default = SdkFactory_1.default;
|
|
99
165
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,aAAa;AACb,+EAAyD;AACzD,mHAA6F;AAoGpF,oCApGF,mCAAyB,CAoGE;AAnGlC,gHAA0F;AAmGtD,mCAnG7B,kCAAwB,CAmG6B;AAhG5D,iBAAiB;AACjB,8GAAwF;AAkG3D,mCAlGtB,kCAAwB,CAkGsB;AAjGrD,kGAA4E;AAiGrB,6BAjGhD,4BAAkB,CAiGgD;AAhGzE,oGAA8E;AAgGH,8BAhGpE,6BAAmB,CAgGoE;AA/F9F,kGAA4E;AA+FnE,6BA/FF,4BAAkB,CA+FE;AA7F3B,SAAS;AACT,sDAAqD;AAgGjD,wFAhGK,iBAAO,OAgGL;AA/FX,sDAAqD;AAgGjD,wFAhGK,iBAAO,OAgGL;AA/FX,oDAAmD;AAgG/C,uFAhGK,eAAM,OAgGL;AA/FV,uEAAiD;AAgG7C,oBAhGG,mBAAS,CAgGH;AA9Fb,oEAAmE;AA+F/D,+FA/FK,+BAAc,OA+FL;AA9FlB,0EAAyE;AA+FrE,kGA/FK,qCAAiB,OA+FL;AA9FrB,wEAAuE;AA+FnE,iGA/FK,mCAAgB,OA+FL;AA9FpB,sEAAqE;AA+FjE,gGA/FK,iCAAe,OA+FL;AA9FnB,kDAAiD;AA+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GH;AAhG7B,sHAAgG;AAiG5F,gCAjGG,+BAAqB,CAiGH;AAhGzB,+HAAyG;AAiGrG,qCAjGG,oCAA0B,CAiGH;AAhG9B,4HAAsG;AAiGlG,oCAjGG,mCAAyB,CAiGH;AA/F7B,sIAAgH;AAgG5G,wCAhGG,uCAA6B,CAgGH;AA/FjC,+IAAyH;AAgGrH,6CAhGG,4CAAkC,CAgGH;AA/FtC,4IAAsH;AAgGlH,4CAhGG,2CAAiC,CAgGH;AA9FrC,sHAAgG;AA+F5F,gCA/FG,+BAAqB,CA+FH;AA9FzB,+HAAyG;AA+FrG,qCA/FG,oCAA0B,CA+FH;AA9F9B,4HAAsG;AA+FlG,oCA/FG,mCAAyB,CA+FH;AA7F7B,aAAa;AACb,kBAAe,oBAAU,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import TranslateTextRequest from '../translate/common/request/TranslateTextRequest';
|
|
2
|
+
import TranslateTextResult from '../translate/common/result/TranslateTextResult';
|
|
3
|
+
import TranslateFileRequest from '../translate/common/request/TranslateFileRequest';
|
|
4
|
+
import TranslationFileResult from '../translate/common/result/TranslationFileResult';
|
|
5
|
+
import LanguagePairsResult from '../translate/common/result/LanguagePairsResult';
|
|
6
|
+
import TranslateBatchFileRequest from '../translate/common/request/TranslateBatchFileRequest';
|
|
7
|
+
import TranslationBatchFileResult from '../translate/common/result/TranslationBatchFileResult';
|
|
8
|
+
import DictionariesResult from '../translate/common/result/DictionariesResult';
|
|
9
|
+
import FeedbackListResult from '../feedback/common/result/FeedbackListResult';
|
|
10
|
+
import FilterFeedbackRequest from '../feedback/common/request/FilterFeedbackRequest';
|
|
11
|
+
import CreateFeedbackRequest from '../feedback/common/request/CreateFeedbackRequest';
|
|
12
|
+
import FeedbackResult from '../feedback/common/result/FeedbackResult';
|
|
13
|
+
import UpdateFeedbackRequest from '../feedback/common/request/UpdateFeedbackRequest';
|
|
14
|
+
import UpdateFeedbackApprovalRequest from '../feedback/common/request/UpdateFeedbackApprovalRequest';
|
|
15
|
+
import DeleteFeedbackRequest from '../feedback/common/request/DeleteFeedbackRequest';
|
|
16
|
+
export interface LanguageWeaverClient {
|
|
17
|
+
translateText(translateTextRequest: TranslateTextRequest): Promise<TranslateTextResult>;
|
|
18
|
+
translateFile(translateFileRequest: TranslateFileRequest): Promise<TranslationFileResult>;
|
|
19
|
+
translateBatchFile(translateBatchFileRequest: TranslateBatchFileRequest): Promise<TranslationBatchFileResult>;
|
|
20
|
+
getLanguagePairs(): Promise<LanguagePairsResult>;
|
|
21
|
+
getDictionaries(pageNumber: number, pageSize?: number): Promise<DictionariesResult>;
|
|
22
|
+
getFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
|
|
23
|
+
createFeedback(createFeedbackRequest: CreateFeedbackRequest): Promise<FeedbackResult>;
|
|
24
|
+
updateFeedback(updateFeedbackRequest: UpdateFeedbackRequest): Promise<FeedbackResult>;
|
|
25
|
+
updateFeedbackApproval(updateFeedbackApprovalRequest: UpdateFeedbackApprovalRequest): Promise<FeedbackResult>;
|
|
26
|
+
deleteFeedback(deleteFeedbackRequest: DeleteFeedbackRequest): Promise<null>;
|
|
27
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguageWeaverClient.js","sourceRoot":"","sources":["../../../src/translation/common/LanguageWeaverClient.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ClientConfiguration from '
|
|
2
|
-
import TokenConfiguration from '
|
|
1
|
+
import ClientConfiguration from '../../common/configurations/ClientConfiguration';
|
|
2
|
+
import TokenConfiguration from '../../common/configurations/TokenConfiguration';
|
|
3
3
|
import { LanguageWeaverClient } from './LanguageWeaverClient';
|
|
4
4
|
export default class SdkFactory {
|
|
5
5
|
static getLanguageWeaverClient(configuration: ClientConfiguration | TokenConfiguration): Promise<LanguageWeaverClient>;
|
|
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var ClientConfiguration_1 = __importDefault(require("
|
|
7
|
-
var CloudLanguageWeaverClient_1 = __importDefault(require("./CloudLanguageWeaverClient"));
|
|
8
|
-
var Product_1 = require("
|
|
9
|
-
var EdgeLanguageWeaverClient_1 = __importDefault(require("./EdgeLanguageWeaverClient"));
|
|
10
|
-
var Utils_1 = __importDefault(require("
|
|
6
|
+
var ClientConfiguration_1 = __importDefault(require("../../common/configurations/ClientConfiguration"));
|
|
7
|
+
var CloudLanguageWeaverClient_1 = __importDefault(require("./cloud/CloudLanguageWeaverClient"));
|
|
8
|
+
var Product_1 = require("../../common/constants/Product");
|
|
9
|
+
var EdgeLanguageWeaverClient_1 = __importDefault(require("./edge/EdgeLanguageWeaverClient"));
|
|
10
|
+
var Utils_1 = __importDefault(require("../../common/utils/Utils"));
|
|
11
11
|
var SdkFactory = /** @class */ (function () {
|
|
12
12
|
function SdkFactory() {
|
|
13
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SdkFactory.js","sourceRoot":"","sources":["../../../src/translation/common/SdkFactory.ts"],"names":[],"mappings":";;;;;AAAA,wGAAkF;AAClF,gGAA0E;AAC1E,0DAAyD;AACzD,6FAAuE;AAGvE,mEAA6C;AAE7C;IAAA;IA2CA,CAAC;IA1CU,kCAAuB,GAA9B,UACI,aAAuD;QAEvD,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;YACxB,IAAM,6BAA6B,GAAuB,eAAK,CAAC,gBAAgB,EAAE,CAAC;YAEnF,IAAI,CAAC,6BAA6B,EAAE;gBAChC,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC,KAAK,CAAC;aACzC;iBAAM;gBACH,aAAa,CAAC,OAAO;oBACjB,6BAA6B,CAAC,WAAW,EAAE,KAAK,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