@language-weaver/lw-sdk-js 1.0.0 → 1.1.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 +0 -0
- package/lib/{translation/common → common/constants}/Format.js +0 -0
- package/lib/common/constants/Format.js.map +1 -0
- 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/{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/{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 +6 -0
- package/lib/common/constants/TranslationConstants.js +8 -2
- package/lib/common/constants/TranslationConstants.js.map +1 -1
- package/lib/common/{requests → external/communication}/RestClient.d.ts +1 -1
- package/lib/common/{requests → external/communication}/RestClient.js +5 -12
- package/lib/common/external/communication/RestClient.js.map +1 -0
- package/lib/common/utils/HttpUtils.d.ts +1 -1
- package/lib/common/utils/HttpUtils.js +1 -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 +57 -39
- package/lib/index.js +74 -38
- package/lib/index.js.map +1 -1
- package/lib/translation/common/LanguageWeaverClient.d.ts +18 -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 +68 -0
- package/lib/{CloudLanguageWeaverClient.js → translation/common/cloud/CloudLanguageWeaverClient.js} +53 -29
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -0
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +67 -0
- package/lib/{EdgeLanguageWeaverClient.js → translation/common/edge/EdgeLanguageWeaverClient.js} +56 -26
- 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 +63 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +286 -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/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 +34 -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 +26 -0
- package/lib/translation/feedback/cloud/api/CloudTranslationFeedback.js +89 -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/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/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 +25 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js +100 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackResult.js.map +1 -0
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.d.ts +20 -0
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +97 -0
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -0
- package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.d.ts +5 -0
- package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js +36 -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/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/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 +12 -0
- package/lib/translation/feedback/common/result/FeedbackResult.js +59 -0
- package/lib/translation/feedback/common/result/FeedbackResult.js.map +1 -0
- package/lib/translation/feedback/common/validators/FeedbackValidator.d.ts +2 -0
- package/lib/translation/feedback/common/validators/FeedbackValidator.js +9 -0
- package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +1 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +39 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +162 -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/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/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 +17 -0
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +119 -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 +0 -0
- package/lib/translation/translate/{request → common/request}/TranslateBatchFileRequest.js +0 -0
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -0
- package/lib/translation/translate/{request → common/request}/TranslateFileRequest.d.ts +0 -0
- package/lib/translation/translate/{request → common/request}/TranslateFileRequest.js +0 -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 +0 -0
- package/lib/translation/translate/{request → common/request}/TranslateTextRequest.js +0 -0
- 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/{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 +2 -2
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateFileRequest.js +1 -1
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateFileRequest.js.map +1 -1
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.d.ts +2 -2
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.js +1 -1
- package/lib/translation/translate/{request/edge → edge/request}/EdgeTranslateTextRequest.js.map +1 -1
- 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/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
package/lib/index.d.ts
CHANGED
|
@@ -1,51 +1,69 @@
|
|
|
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 { FeedbackCategory } from './common/constants/FeedbackCategory';
|
|
15
|
+
import { FeedbackComment } from './common/constants/FeedbackComment';
|
|
16
|
+
import { Order } from './common/constants/Order';
|
|
17
|
+
import Token from './common/auth/domain/Token';
|
|
18
|
+
import TranslateTextRequest from './translation/translate/common/request/TranslateTextRequest';
|
|
19
|
+
import CloudTranslateTextRequest from './translation/translate/cloud/request/CloudTranslateTextRequest';
|
|
20
|
+
import EdgeTranslateTextRequest from './translation/translate/edge/request/EdgeTranslateTextRequest';
|
|
21
|
+
import TranslateTextResult from './translation/translate/common/result/TranslateTextResult';
|
|
22
|
+
import CloudTranslationTextResult from './translation/translate/cloud/result/CloudTranslationTextResult';
|
|
23
|
+
import EdgeTranslationTextResult from './translation/translate/edge/result/EdgeTranslationTextResult';
|
|
24
|
+
import TranslateFileRequest from './translation/translate/common/request/TranslateFileRequest';
|
|
25
|
+
import CloudTranslateFileRequest from './translation/translate/cloud/request/CloudTranslateFileRequest';
|
|
26
|
+
import EdgeTranslateFileRequest from './translation/translate/edge/request/EdgeTranslateFileRequest';
|
|
27
|
+
import TranslationFileResult from './translation/translate/common/result/TranslationFileResult';
|
|
28
|
+
import CloudTranslationFileResult from './translation/translate/cloud/result/CloudTranslationFileResult';
|
|
29
|
+
import EdgeTranslationFileResult from './translation/translate/edge/result/EdgeTranslationFileResult';
|
|
30
|
+
import TranslateBatchFileRequest from './translation/translate/common/request/TranslateBatchFileRequest';
|
|
31
|
+
import CloudTranslateBatchFileRequest from './translation/translate/cloud/request/CloudTranslateBatchFileRequest';
|
|
32
|
+
import EdgeTranslateBatchFileRequest from './translation/translate/edge/request/EdgeTranslateBatchFileRequest';
|
|
33
|
+
import TranslationBatchFileResult from './translation/translate/common/result/TranslationBatchFileResult';
|
|
34
|
+
import CloudTranslationBatchFileResult from './translation/translate/cloud/result/CloudTranslationBatchFileResult';
|
|
35
|
+
import EdgeTranslationBatchFileResult from './translation/translate/edge/result/EdgeTranslationBatchFileResult';
|
|
36
|
+
import LanguagePairsResult from './translation/translate/common/result/LanguagePairsResult';
|
|
37
|
+
import LanguagePair from './translation/translate/common/api/LanguagePair';
|
|
38
|
+
import CloudLanguagePairsResult from './translation/translate/cloud/result/CloudLanguagePairsResult';
|
|
39
|
+
import EdgeLanguagePairsResult from './translation/translate/edge/result/EdgeLanguagePairsResult';
|
|
40
|
+
import CloudLanguagePair from './translation/translate/cloud/api/CloudLanguagePair';
|
|
41
|
+
import EdgeLanguagePair from './translation/translate/edge/api/EdgeLanguagePair';
|
|
42
|
+
import DictionariesResult from './translation/translate/common/result/DictionariesResult';
|
|
43
|
+
import DictionaryResponse from './translation/translate/common/api/DictionaryResponse';
|
|
44
|
+
import CloudDictionariesResult from './translation/translate/cloud/result/CloudDictionariesResult';
|
|
45
|
+
import CloudDictionaryResponse from './translation/translate/cloud/api/CloudDictionaryResponse';
|
|
46
|
+
import EdgeDictionariesResult from './translation/translate/edge/result/EdgeDictionariesResult';
|
|
47
|
+
import EdgeDictionaryResponse from './translation/translate/edge/api/EdgeDictionaryResponse';
|
|
48
|
+
import { CloudFeedbackSortCriteria } from './translation/feedback/cloud/model/CloudFeedbackSortCriteria';
|
|
49
|
+
import CloudAuditData from './translation/feedback/cloud/model/CloudAuditData';
|
|
50
|
+
import CloudFeedbackSortRequest from './translation/feedback/cloud/request/CloudFeedbackSortRequest';
|
|
51
|
+
import CloudFilterFeedbackRequest from './translation/feedback/cloud/request/CloudFilterFeedbackRequest';
|
|
52
|
+
import CloudFeedbackListResult from './translation/feedback/cloud/result/CloudFeedbackListResult';
|
|
53
|
+
import CloudFeedbackResult from './translation/feedback/cloud/result/CloudFeedbackResult';
|
|
54
|
+
import AuditData from './translation/feedback/common/model/AuditData';
|
|
55
|
+
import FilterFeedbackRequest from './translation/feedback/common/request/FilterFeedbackRequest';
|
|
56
|
+
import FeedbackListResult from './translation/feedback/common/result/FeedbackListResult';
|
|
57
|
+
import FeedbackResult from './translation/feedback/common/result/FeedbackResult';
|
|
58
|
+
import EdgeFilterFeedbackRequest from './translation/feedback/edge/request/EdgeFilterFeedbackRequest';
|
|
59
|
+
import EdgeFeedbackListResult from './translation/feedback/edge/result/EdgeFeedbackListResult';
|
|
60
|
+
import EdgeFeedbackResult from './translation/feedback/edge/result/EdgeFeedbackResult';
|
|
44
61
|
export default SdkFactory;
|
|
45
62
|
export { CloudLanguageWeaverClient, EdgeLanguageWeaverClient, LanguageWeaverClient };
|
|
46
63
|
export { TokenConfiguration, CredentialsConfiguration, RetryConfiguration, ClientConfiguration };
|
|
47
|
-
export { Product, Regions, Format, HttpUtils };
|
|
64
|
+
export { Product, Regions, Format, HttpUtils, ApprovalStatus, FeedbackCategory, FeedbackComment, Order };
|
|
48
65
|
export { Token };
|
|
49
66
|
export { TranslateTextRequest, CloudTranslateTextRequest, EdgeTranslateTextRequest, TranslateTextResult, CloudTranslationTextResult, EdgeTranslationTextResult, TranslateFileRequest, CloudTranslateFileRequest, EdgeTranslateFileRequest, TranslationFileResult, CloudTranslationFileResult, EdgeTranslationFileResult, TranslateBatchFileRequest, CloudTranslateBatchFileRequest, EdgeTranslateBatchFileRequest, TranslationBatchFileResult, CloudTranslationBatchFileResult, EdgeTranslationBatchFileResult, };
|
|
50
67
|
export { LanguagePair, LanguagePairsResult, CloudLanguagePair, CloudLanguagePairsResult, EdgeLanguagePair, EdgeLanguagePairsResult, };
|
|
51
68
|
export { DictionariesResult, DictionaryResponse, CloudDictionariesResult, CloudDictionaryResponse, EdgeDictionariesResult, EdgeDictionaryResponse, };
|
|
69
|
+
export { CloudFeedbackSortCriteria, CloudAuditData, CloudFeedbackSortRequest, CloudFilterFeedbackRequest, CloudFeedbackListResult, CloudFeedbackResult, AuditData, FilterFeedbackRequest, FeedbackListResult, FeedbackResult, EdgeFilterFeedbackRequest, EdgeFeedbackListResult, EdgeFeedbackResult, };
|
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.CloudFeedbackListResult = exports.CloudFilterFeedbackRequest = 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.Order = exports.FeedbackComment = exports.FeedbackCategory = 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.EdgeFeedbackResult = exports.EdgeFeedbackListResult = exports.EdgeFilterFeedbackRequest = exports.FeedbackResult = exports.FeedbackListResult = exports.FilterFeedbackRequest = exports.AuditData = exports.CloudFeedbackResult = 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,115 @@ 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 FeedbackCategory_1 = require("./common/constants/FeedbackCategory");
|
|
35
|
+
Object.defineProperty(exports, "FeedbackCategory", { enumerable: true, get: function () { return FeedbackCategory_1.FeedbackCategory; } });
|
|
36
|
+
var FeedbackComment_1 = require("./common/constants/FeedbackComment");
|
|
37
|
+
Object.defineProperty(exports, "FeedbackComment", { enumerable: true, get: function () { return FeedbackComment_1.FeedbackComment; } });
|
|
38
|
+
var Order_1 = require("./common/constants/Order");
|
|
39
|
+
Object.defineProperty(exports, "Order", { enumerable: true, get: function () { return Order_1.Order; } });
|
|
31
40
|
// Auth
|
|
32
|
-
var Token_1 = __importDefault(require("./auth/domain/Token"));
|
|
41
|
+
var Token_1 = __importDefault(require("./common/auth/domain/Token"));
|
|
33
42
|
exports.Token = Token_1.default;
|
|
34
43
|
// Translation
|
|
35
|
-
var TranslateTextRequest_1 = __importDefault(require("./translation/translate/request/TranslateTextRequest"));
|
|
44
|
+
var TranslateTextRequest_1 = __importDefault(require("./translation/translate/common/request/TranslateTextRequest"));
|
|
36
45
|
exports.TranslateTextRequest = TranslateTextRequest_1.default;
|
|
37
|
-
var CloudTranslateTextRequest_1 = __importDefault(require("./translation/translate/request/
|
|
46
|
+
var CloudTranslateTextRequest_1 = __importDefault(require("./translation/translate/cloud/request/CloudTranslateTextRequest"));
|
|
38
47
|
exports.CloudTranslateTextRequest = CloudTranslateTextRequest_1.default;
|
|
39
|
-
var EdgeTranslateTextRequest_1 = __importDefault(require("./translation/translate/request/
|
|
48
|
+
var EdgeTranslateTextRequest_1 = __importDefault(require("./translation/translate/edge/request/EdgeTranslateTextRequest"));
|
|
40
49
|
exports.EdgeTranslateTextRequest = EdgeTranslateTextRequest_1.default;
|
|
41
|
-
var TranslateTextResult_1 = __importDefault(require("./translation/translate/result/TranslateTextResult"));
|
|
50
|
+
var TranslateTextResult_1 = __importDefault(require("./translation/translate/common/result/TranslateTextResult"));
|
|
42
51
|
exports.TranslateTextResult = TranslateTextResult_1.default;
|
|
43
|
-
var CloudTranslationTextResult_1 = __importDefault(require("./translation/translate/result/
|
|
52
|
+
var CloudTranslationTextResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudTranslationTextResult"));
|
|
44
53
|
exports.CloudTranslationTextResult = CloudTranslationTextResult_1.default;
|
|
45
|
-
var EdgeTranslationTextResult_1 = __importDefault(require("./translation/translate/result/
|
|
54
|
+
var EdgeTranslationTextResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeTranslationTextResult"));
|
|
46
55
|
exports.EdgeTranslationTextResult = EdgeTranslationTextResult_1.default;
|
|
47
|
-
var TranslateFileRequest_1 = __importDefault(require("./translation/translate/request/TranslateFileRequest"));
|
|
56
|
+
var TranslateFileRequest_1 = __importDefault(require("./translation/translate/common/request/TranslateFileRequest"));
|
|
48
57
|
exports.TranslateFileRequest = TranslateFileRequest_1.default;
|
|
49
|
-
var CloudTranslateFileRequest_1 = __importDefault(require("./translation/translate/request/
|
|
58
|
+
var CloudTranslateFileRequest_1 = __importDefault(require("./translation/translate/cloud/request/CloudTranslateFileRequest"));
|
|
50
59
|
exports.CloudTranslateFileRequest = CloudTranslateFileRequest_1.default;
|
|
51
|
-
var EdgeTranslateFileRequest_1 = __importDefault(require("./translation/translate/request/
|
|
60
|
+
var EdgeTranslateFileRequest_1 = __importDefault(require("./translation/translate/edge/request/EdgeTranslateFileRequest"));
|
|
52
61
|
exports.EdgeTranslateFileRequest = EdgeTranslateFileRequest_1.default;
|
|
53
|
-
var TranslationFileResult_1 = __importDefault(require("./translation/translate/result/TranslationFileResult"));
|
|
62
|
+
var TranslationFileResult_1 = __importDefault(require("./translation/translate/common/result/TranslationFileResult"));
|
|
54
63
|
exports.TranslationFileResult = TranslationFileResult_1.default;
|
|
55
|
-
var CloudTranslationFileResult_1 = __importDefault(require("./translation/translate/result/
|
|
64
|
+
var CloudTranslationFileResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudTranslationFileResult"));
|
|
56
65
|
exports.CloudTranslationFileResult = CloudTranslationFileResult_1.default;
|
|
57
|
-
var EdgeTranslationFileResult_1 = __importDefault(require("./translation/translate/result/
|
|
66
|
+
var EdgeTranslationFileResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeTranslationFileResult"));
|
|
58
67
|
exports.EdgeTranslationFileResult = EdgeTranslationFileResult_1.default;
|
|
59
|
-
var TranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/request/TranslateBatchFileRequest"));
|
|
68
|
+
var TranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/common/request/TranslateBatchFileRequest"));
|
|
60
69
|
exports.TranslateBatchFileRequest = TranslateBatchFileRequest_1.default;
|
|
61
|
-
var CloudTranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/request/
|
|
70
|
+
var CloudTranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/cloud/request/CloudTranslateBatchFileRequest"));
|
|
62
71
|
exports.CloudTranslateBatchFileRequest = CloudTranslateBatchFileRequest_1.default;
|
|
63
|
-
var EdgeTranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/request/
|
|
72
|
+
var EdgeTranslateBatchFileRequest_1 = __importDefault(require("./translation/translate/edge/request/EdgeTranslateBatchFileRequest"));
|
|
64
73
|
exports.EdgeTranslateBatchFileRequest = EdgeTranslateBatchFileRequest_1.default;
|
|
65
|
-
var TranslationBatchFileResult_1 = __importDefault(require("./translation/translate/result/TranslationBatchFileResult"));
|
|
74
|
+
var TranslationBatchFileResult_1 = __importDefault(require("./translation/translate/common/result/TranslationBatchFileResult"));
|
|
66
75
|
exports.TranslationBatchFileResult = TranslationBatchFileResult_1.default;
|
|
67
|
-
var CloudTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/result/
|
|
76
|
+
var CloudTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudTranslationBatchFileResult"));
|
|
68
77
|
exports.CloudTranslationBatchFileResult = CloudTranslationBatchFileResult_1.default;
|
|
69
|
-
var EdgeTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/result/
|
|
78
|
+
var EdgeTranslationBatchFileResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeTranslationBatchFileResult"));
|
|
70
79
|
exports.EdgeTranslationBatchFileResult = EdgeTranslationBatchFileResult_1.default;
|
|
71
80
|
// LPs
|
|
72
|
-
var LanguagePairsResult_1 = __importDefault(require("./translation/translate/result/LanguagePairsResult"));
|
|
81
|
+
var LanguagePairsResult_1 = __importDefault(require("./translation/translate/common/result/LanguagePairsResult"));
|
|
73
82
|
exports.LanguagePairsResult = LanguagePairsResult_1.default;
|
|
74
|
-
var LanguagePair_1 = __importDefault(require("./translation/translate/
|
|
83
|
+
var LanguagePair_1 = __importDefault(require("./translation/translate/common/api/LanguagePair"));
|
|
75
84
|
exports.LanguagePair = LanguagePair_1.default;
|
|
76
|
-
var CloudLanguagePairsResult_1 = __importDefault(require("./translation/translate/result/
|
|
85
|
+
var CloudLanguagePairsResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudLanguagePairsResult"));
|
|
77
86
|
exports.CloudLanguagePairsResult = CloudLanguagePairsResult_1.default;
|
|
78
|
-
var EdgeLanguagePairsResult_1 = __importDefault(require("./translation/translate/result/
|
|
87
|
+
var EdgeLanguagePairsResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeLanguagePairsResult"));
|
|
79
88
|
exports.EdgeLanguagePairsResult = EdgeLanguagePairsResult_1.default;
|
|
80
|
-
var CloudLanguagePair_1 = __importDefault(require("./translation/translate/
|
|
89
|
+
var CloudLanguagePair_1 = __importDefault(require("./translation/translate/cloud/api/CloudLanguagePair"));
|
|
81
90
|
exports.CloudLanguagePair = CloudLanguagePair_1.default;
|
|
82
|
-
var EdgeLanguagePair_1 = __importDefault(require("./translation/translate/
|
|
91
|
+
var EdgeLanguagePair_1 = __importDefault(require("./translation/translate/edge/api/EdgeLanguagePair"));
|
|
83
92
|
exports.EdgeLanguagePair = EdgeLanguagePair_1.default;
|
|
84
93
|
// Dictionaries
|
|
85
|
-
var DictionariesResult_1 = __importDefault(require("./translation/translate/result/DictionariesResult"));
|
|
94
|
+
var DictionariesResult_1 = __importDefault(require("./translation/translate/common/result/DictionariesResult"));
|
|
86
95
|
exports.DictionariesResult = DictionariesResult_1.default;
|
|
87
|
-
var DictionaryResponse_1 = __importDefault(require("./translation/translate/
|
|
96
|
+
var DictionaryResponse_1 = __importDefault(require("./translation/translate/common/api/DictionaryResponse"));
|
|
88
97
|
exports.DictionaryResponse = DictionaryResponse_1.default;
|
|
89
|
-
var CloudDictionariesResult_1 = __importDefault(require("./translation/translate/result/
|
|
98
|
+
var CloudDictionariesResult_1 = __importDefault(require("./translation/translate/cloud/result/CloudDictionariesResult"));
|
|
90
99
|
exports.CloudDictionariesResult = CloudDictionariesResult_1.default;
|
|
91
|
-
var CloudDictionaryResponse_1 = __importDefault(require("./translation/translate/
|
|
100
|
+
var CloudDictionaryResponse_1 = __importDefault(require("./translation/translate/cloud/api/CloudDictionaryResponse"));
|
|
92
101
|
exports.CloudDictionaryResponse = CloudDictionaryResponse_1.default;
|
|
93
|
-
var EdgeDictionariesResult_1 = __importDefault(require("./translation/translate/result/
|
|
102
|
+
var EdgeDictionariesResult_1 = __importDefault(require("./translation/translate/edge/result/EdgeDictionariesResult"));
|
|
94
103
|
exports.EdgeDictionariesResult = EdgeDictionariesResult_1.default;
|
|
95
|
-
var EdgeDictionaryResponse_1 = __importDefault(require("./translation/translate/
|
|
104
|
+
var EdgeDictionaryResponse_1 = __importDefault(require("./translation/translate/edge/api/EdgeDictionaryResponse"));
|
|
96
105
|
exports.EdgeDictionaryResponse = EdgeDictionaryResponse_1.default;
|
|
106
|
+
// Feedback
|
|
107
|
+
var CloudFeedbackSortCriteria_1 = require("./translation/feedback/cloud/model/CloudFeedbackSortCriteria");
|
|
108
|
+
Object.defineProperty(exports, "CloudFeedbackSortCriteria", { enumerable: true, get: function () { return CloudFeedbackSortCriteria_1.CloudFeedbackSortCriteria; } });
|
|
109
|
+
var CloudAuditData_1 = __importDefault(require("./translation/feedback/cloud/model/CloudAuditData"));
|
|
110
|
+
exports.CloudAuditData = CloudAuditData_1.default;
|
|
111
|
+
var CloudFeedbackSortRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudFeedbackSortRequest"));
|
|
112
|
+
exports.CloudFeedbackSortRequest = CloudFeedbackSortRequest_1.default;
|
|
113
|
+
var CloudFilterFeedbackRequest_1 = __importDefault(require("./translation/feedback/cloud/request/CloudFilterFeedbackRequest"));
|
|
114
|
+
exports.CloudFilterFeedbackRequest = CloudFilterFeedbackRequest_1.default;
|
|
115
|
+
var CloudFeedbackListResult_1 = __importDefault(require("./translation/feedback/cloud/result/CloudFeedbackListResult"));
|
|
116
|
+
exports.CloudFeedbackListResult = CloudFeedbackListResult_1.default;
|
|
117
|
+
var CloudFeedbackResult_1 = __importDefault(require("./translation/feedback/cloud/result/CloudFeedbackResult"));
|
|
118
|
+
exports.CloudFeedbackResult = CloudFeedbackResult_1.default;
|
|
119
|
+
var AuditData_1 = __importDefault(require("./translation/feedback/common/model/AuditData"));
|
|
120
|
+
exports.AuditData = AuditData_1.default;
|
|
121
|
+
var FilterFeedbackRequest_1 = __importDefault(require("./translation/feedback/common/request/FilterFeedbackRequest"));
|
|
122
|
+
exports.FilterFeedbackRequest = FilterFeedbackRequest_1.default;
|
|
123
|
+
var FeedbackListResult_1 = __importDefault(require("./translation/feedback/common/result/FeedbackListResult"));
|
|
124
|
+
exports.FeedbackListResult = FeedbackListResult_1.default;
|
|
125
|
+
var FeedbackResult_1 = __importDefault(require("./translation/feedback/common/result/FeedbackResult"));
|
|
126
|
+
exports.FeedbackResult = FeedbackResult_1.default;
|
|
127
|
+
var EdgeFilterFeedbackRequest_1 = __importDefault(require("./translation/feedback/edge/request/EdgeFilterFeedbackRequest"));
|
|
128
|
+
exports.EdgeFilterFeedbackRequest = EdgeFilterFeedbackRequest_1.default;
|
|
129
|
+
var EdgeFeedbackListResult_1 = __importDefault(require("./translation/feedback/edge/result/EdgeFeedbackListResult"));
|
|
130
|
+
exports.EdgeFeedbackListResult = EdgeFeedbackListResult_1.default;
|
|
131
|
+
var EdgeFeedbackResult_1 = __importDefault(require("./translation/feedback/edge/result/EdgeFeedbackResult"));
|
|
132
|
+
exports.EdgeFeedbackResult = EdgeFeedbackResult_1.default;
|
|
97
133
|
/* Exports */
|
|
98
134
|
exports.default = SdkFactory_1.default;
|
|
99
135
|
//# 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;AAiFpF,oCAjFF,mCAAyB,CAiFE;AAhFlC,gHAA0F;AAgFtD,mCAhF7B,kCAAwB,CAgF6B;AA7E5D,iBAAiB;AACjB,8GAAwF;AA+E3D,mCA/EtB,kCAAwB,CA+EsB;AA9ErD,kGAA4E;AA8ErB,6BA9EhD,4BAAkB,CA8EgD;AA7EzE,oGAA8E;AA6EH,8BA7EpE,6BAAmB,CA6EoE;AA5E9F,kGAA4E;AA4EnE,6BA5EF,4BAAkB,CA4EE;AA1E3B,SAAS;AACT,sDAAqD;AA4E5C,wFA5EA,iBAAO,OA4EA;AA3EhB,sDAAqD;AA2EnC,wFA3ET,iBAAO,OA2ES;AA1EzB,oDAAmD;AA0ExB,uFA1ElB,eAAM,OA0EkB;AAzEjC,uEAAiD;AAyEd,oBAzE5B,mBAAS,CAyE4B;AAvE5C,oEAAmE;AAuErB,+FAvErC,+BAAc,OAuEqC;AAtE5D,wEAAuE;AAsET,iGAtErD,mCAAgB,OAsEqD;AArE9E,sEAAqE;AAqEW,gGArEvE,iCAAe,OAqEuE;AApE/F,kDAAiD;AAoEgD,sFApExF,aAAK,OAoEwF;AAlEtG,OAAO;AACP,qEAA+C;AAoEtC,gBApEF,eAAK,CAoEE;AAlEd,cAAc;AACd,qHAA+F;AAqE3F,+BArEG,8BAAoB,CAqEH;AApExB,8HAAwG;AAqEpG,oCArEG,mCAAyB,CAqEH;AApE7B,2HAAqG;AAqEjG,mCArEG,kCAAwB,CAqEH;AApE5B,kHAA4F;AAqExF,8BArEG,6BAAmB,CAqEH;AApEvB,+HAAyG;AAqErG,qCArEG,oCAA0B,CAqEH;AApE9B,4HAAsG;AAqElG,oCArEG,mCAAyB,CAqEH;AAnE7B,qHAA+F;AAoE3F,+BApEG,8BAAoB,CAoEH;AAnExB,8HAAwG;AAoEpG,oCApEG,mCAAyB,CAoEH;AAnE7B,2HAAqG;AAoEjG,mCApEG,kCAAwB,CAoEH;AAnE5B,sHAAgG;AAoE5F,gCApEG,+BAAqB,CAoEH;AAnEzB,+HAAyG;AAoErG,qCApEG,oCAA0B,CAoEH;AAnE9B,4HAAsG;AAoElG,oCApEG,mCAAyB,CAoEH;AAlE7B,+HAAyG;AAmErG,oCAnEG,mCAAyB,CAmEH;AAlE7B,wIAAkH;AAmE9G,yCAnEG,wCAA8B,CAmEH;AAlElC,qIAA+G;AAmE3G,wCAnEG,uCAA6B,CAmEH;AAlEjC,gIAA0G;AAmEtG,qCAnEG,oCAA0B,CAmEH;AAlE9B,yIAAmH;AAmE/G,0CAnEG,yCAA+B,CAmEH;AAlEnC,sIAAgH;AAmE5G,yCAnEG,wCAA8B,CAmEH;AAjElC,MAAM;AACN,kHAA4F;AAsExF,8BAtEG,6BAAmB,CAsEH;AArEvB,iGAA2E;AAoEvE,uBApEG,sBAAY,CAoEH;AAnEhB,2HAAqG;AAsEjG,mCAtEG,kCAAwB,CAsEH;AArE5B,wHAAkG;AAuE9F,kCAvEG,iCAAuB,CAuEH;AAtE3B,0GAAoF;AAmEhF,4BAnEG,2BAAiB,CAmEH;AAlErB,uGAAiF;AAoE7E,2BApEG,0BAAgB,CAoEH;AAlEpB,eAAe;AACf,gHAA0F;AAuEtF,6BAvEG,4BAAkB,CAuEH;AAtEtB,6GAAuF;AAuEnF,6BAvEG,4BAAkB,CAuEH;AAtEtB,yHAAmG;AAuE/F,kCAvEG,iCAAuB,CAuEH;AAtE3B,sHAAgG;AAuE5F,kCAvEG,iCAAuB,CAuEH;AAtE3B,sHAAgG;AAuE5F,iCAvEG,gCAAsB,CAuEH;AAtE1B,mHAA6F;AAuEzF,iCAvEG,gCAAsB,CAuEH;AArE1B,WAAW;AACX,0GAAyG;AAyErG,0GAzEK,qDAAyB,OAyEL;AAxE7B,qGAA+E;AAyE3E,yBAzEG,wBAAc,CAyEH;AAxElB,2HAAqG;AAyEjG,mCAzEG,kCAAwB,CAyEH;AAxE5B,+HAAyG;AAyErG,qCAzEG,oCAA0B,CAyEH;AAxE9B,wHAAkG;AAyE9F,kCAzEG,iCAAuB,CAyEH;AAxE3B,gHAA0F;AAyEtF,8BAzEG,6BAAmB,CAyEH;AAvEvB,4FAAsE;AAwElE,oBAxEG,mBAAS,CAwEH;AAvEb,sHAAgG;AAwE5F,gCAxEG,+BAAqB,CAwEH;AAvEzB,+GAAyF;AAwErF,6BAxEG,4BAAkB,CAwEH;AAvEtB,uGAAiF;AAwE7E,yBAxEG,wBAAc,CAwEH;AAtElB,4HAAsG;AAuElG,oCAvEG,mCAAyB,CAuEH;AAtE7B,qHAA+F;AAuE3F,iCAvEG,gCAAsB,CAuEH;AAtE1B,6GAAuF;AAuEnF,6BAvEG,4BAAkB,CAuEH;AArEtB,aAAa;AACb,kBAAe,oBAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export interface LanguageWeaverClient {
|
|
12
|
+
translateText(translateTextRequest: TranslateTextRequest): Promise<TranslateTextResult>;
|
|
13
|
+
translateFile(translateFileRequest: TranslateFileRequest): Promise<TranslationFileResult>;
|
|
14
|
+
translateBatchFile(translateBatchFileRequest: TranslateBatchFileRequest): Promise<TranslationBatchFileResult>;
|
|
15
|
+
getLanguagePairs(): Promise<LanguagePairsResult>;
|
|
16
|
+
getDictionaries(pageNumber: number, pageSize?: number): Promise<DictionariesResult>;
|
|
17
|
+
getFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
|
|
18
|
+
}
|
|
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,iBAAO,CAAC,iBAAO,CAAC,IAAI,CAAC;wBACjE,CAAC,CAAC,iBAAO,CAAC,IAAI;wBACd,CAAC,CAAC,iBAAO,CAAC,KAAK,CAAC;aAC3B;SACJ;QAED,OAAO,IAAI,CAAC,+BAA+B,CAAC,aAAa,CAAC,CAAC;IAC/D,CAAC;IAEc,0CAA+B,GAA9C,UAA+C,aAAuD;QAClG,IAAI,aAAa,YAAY,6BAAmB,EAAE;YAC9C,OAAO,IAAI,CAAC,qDAAqD,CAAC,aAAa,CAAC,CAAC;SACpF;aAAM;YACH,OAAO,IAAI,CAAC,oDAAoD,CAAC,aAAa,CAAC,CAAC;SACnF;IACL,CAAC;IAEc,gEAAqD,GAApE,UAAqE,aAAkC;QACnG,IAAI,aAAa,CAAC,OAAO,KAAK,iBAAO,CAAC,IAAI,EAAE;YACxC,OAAO,IAAI,kCAAwB,EAAE,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC;SACnF;aAAM;YACH,OAAO,IAAI,mCAAyB,EAAE,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC;SACpF;IACL,CAAC;IAEc,+DAAoD,GAAnE,UAAoE,aAAiC;QACjG,IAAI,aAAa,CAAC,OAAO,KAAK,iBAAO,CAAC,IAAI,EAAE;YACxC,OAAO,IAAI,kCAAwB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC;SACxF;aAAM;YACH,OAAO,IAAI,mCAAyB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC;SACzF;IACL,CAAC;IACL,iBAAC;AAAD,CAAC,AA3CD,IA2CC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
export default class CloudLanguageWeaverClient implements LanguageWeaverClient {
|
|
26
|
+
private _clientConfiguration;
|
|
27
|
+
private _region;
|
|
28
|
+
private _url;
|
|
29
|
+
private _token;
|
|
30
|
+
private _selfInformation;
|
|
31
|
+
private _userSelfInformation;
|
|
32
|
+
private _languageWeaverAuthentication;
|
|
33
|
+
private _client;
|
|
34
|
+
private _feedbackService;
|
|
35
|
+
constructor();
|
|
36
|
+
withConfigurations(clientConfiguration: ClientConfiguration): CloudLanguageWeaverClient;
|
|
37
|
+
withTokenConfigurations(tokenConfiguration: TokenConfiguration): CloudLanguageWeaverClient;
|
|
38
|
+
build(): Promise<CloudLanguageWeaverClient>;
|
|
39
|
+
get region(): Regions;
|
|
40
|
+
set region(value: Regions);
|
|
41
|
+
translateTextUsingCloudParams(translateTextRequest: CloudTranslateTextRequest): Promise<CloudTranslationTextResult>;
|
|
42
|
+
translateFileUsingCloudParams(translateFileRequest: CloudTranslateFileRequest): Promise<CloudTranslationFileResult>;
|
|
43
|
+
translateBatchFileUsingCloudParams(translateBatchFileRequest: CloudTranslateBatchFileRequest): Promise<CloudTranslationBatchFileResult>;
|
|
44
|
+
translateText(translateTextRequest: TranslateTextRequest): Promise<TranslateTextResult>;
|
|
45
|
+
translateFile(translateFileRequest: TranslateFileRequest): Promise<TranslationFileResult>;
|
|
46
|
+
translateBatchFile(translateBatchFileRequest: TranslateBatchFileRequest): Promise<TranslationBatchFileResult>;
|
|
47
|
+
getLanguagePairs(): Promise<LanguagePairsResult>;
|
|
48
|
+
getCloudLanguagePairs(): Promise<CloudLanguagePairsResult>;
|
|
49
|
+
getDictionaries(pageNumber: number, pageSize?: number): Promise<DictionariesResult>;
|
|
50
|
+
getCloudDictionaries(pageNumber: number, pageSize?: number): Promise<CloudDictionariesResult>;
|
|
51
|
+
getFeedback(pageNumber: number, pageSize?: number, filterRequest?: FilterFeedbackRequest): Promise<FeedbackListResult>;
|
|
52
|
+
getCloudFeedback(pageNumber: number, pageSize?: number, filterRequest?: CloudFilterFeedbackRequest): Promise<CloudFeedbackListResult>;
|
|
53
|
+
private getSelfInfo;
|
|
54
|
+
private requestTranslateText;
|
|
55
|
+
private translateSyncText;
|
|
56
|
+
private translateAsyncText;
|
|
57
|
+
private getTranslationResponse;
|
|
58
|
+
private getTranslationFileResponse;
|
|
59
|
+
private requestTranslateBatchFile;
|
|
60
|
+
private translateFileFromBatch;
|
|
61
|
+
private requestTranslateFile;
|
|
62
|
+
private handleStatusResponse;
|
|
63
|
+
private executeTranslateFileRequest;
|
|
64
|
+
private obtainFinalStatus;
|
|
65
|
+
private hasToken;
|
|
66
|
+
private hasCredentialsConfiguration;
|
|
67
|
+
private setRegion;
|
|
68
|
+
}
|
package/lib/{CloudLanguageWeaverClient.js → translation/common/cloud/CloudLanguageWeaverClient.js}
RENAMED
|
@@ -39,31 +39,34 @@ 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"));
|
|
67
70
|
var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
68
71
|
function CloudLanguageWeaverClient() {
|
|
69
72
|
this._clientConfiguration = new ClientConfiguration_1.default();
|
|
@@ -112,7 +115,9 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
112
115
|
case 5:
|
|
113
116
|
_d._userSelfInformation = _e.sent();
|
|
114
117
|
_e.label = 6;
|
|
115
|
-
case 6:
|
|
118
|
+
case 6:
|
|
119
|
+
this._feedbackService = new CloudFeedbackService_1.default(this._client, this._token, this.getSelfInfo());
|
|
120
|
+
return [2 /*return*/, this];
|
|
116
121
|
}
|
|
117
122
|
});
|
|
118
123
|
});
|
|
@@ -228,16 +233,16 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
228
233
|
var _a;
|
|
229
234
|
if (pageSize === void 0) { pageSize = TranslationConstants_1.DEFAULT_DICTIONARIES_PAGE_SIZE; }
|
|
230
235
|
return __awaiter(this, void 0, void 0, function () {
|
|
231
|
-
var
|
|
236
|
+
var cloudDictionariesResult_1, dictionaries_1, e_2;
|
|
232
237
|
return __generator(this, function (_b) {
|
|
233
238
|
switch (_b.label) {
|
|
234
239
|
case 0:
|
|
235
240
|
_b.trys.push([0, 2, , 3]);
|
|
236
241
|
return [4 /*yield*/, this.getCloudDictionaries(pageNumber, pageSize)];
|
|
237
242
|
case 1:
|
|
238
|
-
|
|
243
|
+
cloudDictionariesResult_1 = _b.sent();
|
|
239
244
|
dictionaries_1 = [];
|
|
240
|
-
(_a =
|
|
245
|
+
(_a = cloudDictionariesResult_1.dictionaries) === null || _a === void 0 ? void 0 : _a.forEach(function (dictionary) {
|
|
241
246
|
var dictionaryResponse = new DictionaryResponse_1.default();
|
|
242
247
|
dictionaryResponse.id = dictionary.dictionaryId;
|
|
243
248
|
dictionaryResponse.source = dictionary.source;
|
|
@@ -247,6 +252,9 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
247
252
|
return [2 /*return*/, new Promise(function (resolve) {
|
|
248
253
|
var result = new DictionariesResult_1.default();
|
|
249
254
|
result.dictionaries = dictionaries_1;
|
|
255
|
+
result.pageNumber = cloudDictionariesResult_1.pageNumber;
|
|
256
|
+
result.totalCount = cloudDictionariesResult_1.totalCount;
|
|
257
|
+
result.pageSize = cloudDictionariesResult_1.pageSize;
|
|
250
258
|
resolve(result);
|
|
251
259
|
})];
|
|
252
260
|
case 2:
|
|
@@ -267,6 +275,22 @@ var CloudLanguageWeaverClient = /** @class */ (function () {
|
|
|
267
275
|
})
|
|
268
276
|
.catch(function (e) { return Promise.reject(e); });
|
|
269
277
|
};
|
|
278
|
+
CloudLanguageWeaverClient.prototype.getFeedback = function (pageNumber, pageSize, filterRequest) {
|
|
279
|
+
if (this._feedbackService) {
|
|
280
|
+
return this._feedbackService.getAllFeedback(pageNumber, pageSize, filterRequest || new FilterFeedbackRequest_1.default());
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'getting the feedback' });
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
CloudLanguageWeaverClient.prototype.getCloudFeedback = function (pageNumber, pageSize, filterRequest) {
|
|
287
|
+
if (this._feedbackService) {
|
|
288
|
+
return this._feedbackService.getAllCloudFeedback(pageNumber, pageSize, filterRequest || new CloudFilterFeedbackRequest_1.default());
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
return Promise.reject({ message: TranslationConstants_1.GENERIC_ERROR + 'getting the feedback' });
|
|
292
|
+
}
|
|
293
|
+
};
|
|
270
294
|
CloudLanguageWeaverClient.prototype.getSelfInfo = function () {
|
|
271
295
|
return Utils_1.default.isCloudCredentialsToken(this._token) ? this._selfInformation : this._userSelfInformation;
|
|
272
296
|
};
|