@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,6 +1,6 @@
|
|
|
1
|
-
import CredentialsConfiguration from '../
|
|
1
|
+
import CredentialsConfiguration from '../configurations/CredentialsConfiguration';
|
|
2
2
|
import Token from './domain/Token';
|
|
3
|
-
import RestClient from '../
|
|
3
|
+
import RestClient from '../external/communication/RestClient';
|
|
4
4
|
import SelfInformation from './domain/SelfInformation';
|
|
5
5
|
import UserSelfInformation from './domain/UserSelfInformation';
|
|
6
6
|
export default class LanguageWeaverAuthentication {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var TranslationConstants_1 = require("../
|
|
3
|
+
var TranslationConstants_1 = require("../constants/TranslationConstants");
|
|
4
4
|
var LanguageWeaverAuthentication = /** @class */ (function () {
|
|
5
5
|
function LanguageWeaverAuthentication(client) {
|
|
6
6
|
this._client = client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguageWeaverAuthentication.js","sourceRoot":"","sources":["../../../src/common/auth/LanguageWeaverAuthentication.ts"],"names":[],"mappings":";;AAEA,0EAM2C;AAK3C;IAGI,sCAAY,MAAkB;QAC1B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,8DAAuB,GAAvB,UAAwB,wBAAkD;;QACtE,IAAM,IAAI;YACN,GAAC,gCAAS,IAAG,wBAAwB,CAAC,QAAQ;YAC9C,GAAC,oCAAa,IAAG,wBAAwB,CAAC,YAAY;eACzD,CAAC;QAEF,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,6CAAsB,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;IAED,yDAAkB,GAAlB,UAAmB,KAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,gCAAS,CAAC,CAAC;IAC7D,CAAC;IAED,6DAAsB,GAAtB,UAAuB,KAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,qCAAc,CAAC,CAAC;IAClE,CAAC;IACL,mCAAC;AAAD,CAAC,AAvBD,IAuBC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfInformation.js","sourceRoot":"","sources":["../../../../src/common/auth/domain/SelfInformation.ts"],"names":[],"mappings":";;AAAA;IAAA;IAmBA,CAAC;IAfG,sBAAI,sCAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,qCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,sBAAC;AAAD,CAAC,AAnBD,IAmBC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Token.js","sourceRoot":"","sources":["../../../../src/common/auth/domain/Token.ts"],"names":[],"mappings":";;AAAA;IAMI,eAAY,WAAoB,EAAE,iBAA0B,EAAE,SAAkB,EAAE,SAAkB;QAChG,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAChC,CAAC;IAED,sBAAI,8BAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,oCAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAyB;YAC3C,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,sBAAI,4BAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,4BAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAKL,YAAC;AAAD,CAAC,AA5CD,IA4CC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserSelfInformation.js","sourceRoot":"","sources":["../../../../src/common/auth/domain/UserSelfInformation.ts"],"names":[],"mappings":";;AAAA;IAAA;IA6GA,CAAC;IA/FG,sBAAI,0CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,uCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,0CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,2CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,yCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,sCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAMD,sBAAI,yCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAMD,sBAAI,uCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,gDAAe;aAAnB;YACI,OAAO,IAAI,CAAC,gBAAgB,CAAC;QACjC,CAAC;aAED,UAAoB,KAAyB;YACzC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAClC,CAAC;;;OAJA;IAMD,sBAAI,6CAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,oDAAmB;aAAvB;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;aAED,UAAwB,KAA0B;YAC9C,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QACtC,CAAC;;;OAJA;IAMD,sBAAI,qDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAA0B;YAC/C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAKL,0BAAC;AAAD,CAAC,AA7GD,IA6GC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import CredentialsConfiguration from './CredentialsConfiguration';
|
|
2
2
|
import RetryConfiguration from './RetryConfiguration';
|
|
3
|
-
import { Product } from '
|
|
3
|
+
import { Product } from '../constants/Product';
|
|
4
4
|
export default class ClientConfiguration {
|
|
5
5
|
private _credentialsConfiguration;
|
|
6
6
|
private _retryConfiguration;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Token from '
|
|
2
|
-
import { Product } from '
|
|
1
|
+
import Token from '../auth/domain/Token';
|
|
2
|
+
import { Product } from '../constants/Product';
|
|
3
3
|
export default class TokenConfiguration {
|
|
4
4
|
private _token;
|
|
5
5
|
private _product;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum ApprovalStatus {
|
|
2
|
+
APPROVED = "approved",
|
|
3
|
+
PENDING = "awaitingApproval",
|
|
4
|
+
REJECTED = "rejected"
|
|
5
|
+
}
|
|
6
|
+
export declare const getApprovalStatusKeyByValue: (value: string | ApprovalStatus) => string;
|
|
7
|
+
export declare const getApprovalStatusByKey: (key: string) => ApprovalStatus;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getApprovalStatusByKey = exports.getApprovalStatusKeyByValue = exports.ApprovalStatus = void 0;
|
|
4
|
+
var ApprovalStatus;
|
|
5
|
+
(function (ApprovalStatus) {
|
|
6
|
+
ApprovalStatus["APPROVED"] = "approved";
|
|
7
|
+
ApprovalStatus["PENDING"] = "awaitingApproval";
|
|
8
|
+
ApprovalStatus["REJECTED"] = "rejected";
|
|
9
|
+
})(ApprovalStatus = exports.ApprovalStatus || (exports.ApprovalStatus = {}));
|
|
10
|
+
var getApprovalStatusKeyByValue = function (value) {
|
|
11
|
+
var index = Object.values(ApprovalStatus).indexOf(value);
|
|
12
|
+
var key = Object.keys(ApprovalStatus)[index];
|
|
13
|
+
return key;
|
|
14
|
+
};
|
|
15
|
+
exports.getApprovalStatusKeyByValue = getApprovalStatusKeyByValue;
|
|
16
|
+
var getApprovalStatusByKey = function (key) {
|
|
17
|
+
return ApprovalStatus[key];
|
|
18
|
+
};
|
|
19
|
+
exports.getApprovalStatusByKey = getApprovalStatusByKey;
|
|
20
|
+
//# sourceMappingURL=ApprovalStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalStatus.js","sourceRoot":"","sources":["../../../src/common/constants/ApprovalStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,uCAAqB,CAAA;IACrB,8CAA4B,CAAA;IAC5B,uCAAqB,CAAA;AACzB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAEM,IAAM,2BAA2B,GAAG,UAAC,KAA8B;IACtE,IAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,KAAuB,CAAC,CAAC;IAC7E,IAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,CAAC;IAE/C,OAAO,GAAG,CAAC;AACf,CAAC,CAAC;AALW,QAAA,2BAA2B,+BAKtC;AAEK,IAAM,sBAAsB,GAAG,UAAC,GAAW;IAC9C,OAAO,cAAc,CAAC,GAAkC,CAAC,CAAC;AAC9D,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FeedbackCategory = void 0;
|
|
4
|
+
var FeedbackCategory;
|
|
5
|
+
(function (FeedbackCategory) {
|
|
6
|
+
FeedbackCategory["IMPROVEMENT"] = "IMPROVEMENT";
|
|
7
|
+
FeedbackCategory["RATING"] = "RATING";
|
|
8
|
+
})(FeedbackCategory = exports.FeedbackCategory || (exports.FeedbackCategory = {}));
|
|
9
|
+
//# sourceMappingURL=FeedbackCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackCategory.js","sourceRoot":"","sources":["../../../src/common/constants/FeedbackCategory.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,+CAA2B,CAAA;IAC3B,qCAAiB,CAAA;AACrB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum FeedbackComment {
|
|
2
|
+
WORDS_OMISSION = "Words omission",
|
|
3
|
+
WORDS_ADDITION = "Words addition",
|
|
4
|
+
CAPITALIZATION_PUNCTUATION = "Capitalization, punctuation",
|
|
5
|
+
UNINTELLIGIBLE = "Unintelligible",
|
|
6
|
+
GRAMMAR = "Grammar",
|
|
7
|
+
SPELLING = "Spelling",
|
|
8
|
+
WORD_CHOICE = "Word choice"
|
|
9
|
+
}
|
|
10
|
+
export default FeedbackComment;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FeedbackComment = void 0;
|
|
4
|
+
var FeedbackComment;
|
|
5
|
+
(function (FeedbackComment) {
|
|
6
|
+
FeedbackComment["WORDS_OMISSION"] = "Words omission";
|
|
7
|
+
FeedbackComment["WORDS_ADDITION"] = "Words addition";
|
|
8
|
+
FeedbackComment["CAPITALIZATION_PUNCTUATION"] = "Capitalization, punctuation";
|
|
9
|
+
FeedbackComment["UNINTELLIGIBLE"] = "Unintelligible";
|
|
10
|
+
FeedbackComment["GRAMMAR"] = "Grammar";
|
|
11
|
+
FeedbackComment["SPELLING"] = "Spelling";
|
|
12
|
+
FeedbackComment["WORD_CHOICE"] = "Word choice";
|
|
13
|
+
})(FeedbackComment = exports.FeedbackComment || (exports.FeedbackComment = {}));
|
|
14
|
+
exports.default = FeedbackComment;
|
|
15
|
+
//# sourceMappingURL=FeedbackComment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackComment.js","sourceRoot":"","sources":["../../../src/common/constants/FeedbackComment.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAQX;AARD,WAAY,eAAe;IACvB,oDAAiC,CAAA;IACjC,oDAAiC,CAAA;IACjC,6EAA0D,CAAA;IAC1D,oDAAiC,CAAA;IACjC,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;AAC/B,CAAC,EARW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAQ1B;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Format } from '
|
|
1
|
+
import { Format } from './Format';
|
|
2
2
|
export declare const fileExtensions: Record<string, Format>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fileExtensions = void 0;
|
|
4
|
-
var Format_1 = require("
|
|
4
|
+
var Format_1 = require("./Format");
|
|
5
5
|
exports.fileExtensions = {
|
|
6
6
|
txt: Format_1.Format.PLAIN,
|
|
7
7
|
xline: Format_1.Format.XLINE,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExtensions.js","sourceRoot":"","sources":["../../../src/common/constants/FileExtensions.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"FileExtensions.js","sourceRoot":"","sources":["../../../src/common/constants/FileExtensions.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAErB,QAAA,cAAc,GAA2B;IAClD,GAAG,EAAE,eAAM,CAAC,KAAK;IACjB,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,GAAG,EAAE,eAAM,CAAC,IAAI;IAChB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,KAAK,EAAE,eAAM,CAAC,IAAI;IAClB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,MAAM,EAAE,eAAM,CAAC,MAAM;IACrB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IAEjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IAEjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IACjB,IAAI,EAAE,eAAM,CAAC,IAAI;IAEjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IAEf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IAEf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IAEf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,IAAI,EAAE,eAAM,CAAC,GAAG;IAChB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;CAClB,CAAC"}
|
|
@@ -46,7 +46,10 @@ var getFormatKeyByValue = function (value) {
|
|
|
46
46
|
};
|
|
47
47
|
exports.getFormatKeyByValue = getFormatKeyByValue;
|
|
48
48
|
var getFormatByKey = function (key) {
|
|
49
|
-
|
|
49
|
+
if (key) {
|
|
50
|
+
return Format[key] || Format.UNK;
|
|
51
|
+
}
|
|
52
|
+
return Format.UNK;
|
|
50
53
|
};
|
|
51
54
|
exports.getFormatByKey = getFormatByKey;
|
|
52
55
|
//# sourceMappingURL=Format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Format.js","sourceRoot":"","sources":["../../../src/common/constants/Format.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAoCX;AApCD,WAAY,MAAM;IACd,qBAAW,CAAA;IACX,uBAAa,CAAA;IACb,uBAAa,CAAA;IACb,qBAAW,CAAA;IACX,uBAAa,CAAA;IACb,qBAAW,CAAA;IACX,yBAAe,CAAA;IACf,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,yBAAe,CAAA;IACf,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,uBAAa,CAAA;IACb,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,yBAAe,CAAA;IACf,uBAAa,CAAA;IACb,uBAAa,CAAA;IACb,uBAAa,CAAA;IACb,qBAAW,CAAA;IACX,uBAAa,CAAA;IACb,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,yBAAe,CAAA;IACf,+BAAqB,CAAA;IACrB,2BAAiB,CAAA;IACjB,qBAAW,CAAA;IACX,qBAAW,CAAA;AACf,CAAC,EApCW,MAAM,GAAN,cAAM,KAAN,cAAM,QAoCjB;AAEM,IAAM,mBAAmB,GAAG,UAAC,KAAa;IAC7C,IAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAe,CAAC,CAAC;IAC7D,IAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC;IAEvC,OAAO,GAAG,CAAC;AACf,CAAC,CAAC;AALW,QAAA,mBAAmB,uBAK9B;AAEK,IAAM,cAAc,GAAG,UAAC,GAAuB;IAClD,IAAI,GAAG,EAAE;QACL,OAAO,MAAM,CAAC,GAA0B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC;KAC3D;IAED,OAAO,MAAM,CAAC,GAAG,CAAC;AACtB,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormatToMimeType.js","sourceRoot":"","sources":["../../../src/common/constants/FormatToMimeType.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAA2B;IACpD,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,UAAU;IACf,IAAI,EAAE,WAAW;IACjB,GAAG,EAAE,YAAY;IACjB,KAAK,EAAE,aAAa;IACpB,GAAG,EAAE,YAAY;IACjB,KAAK,EAAE,qBAAqB;IAC5B,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,yCAAyC;IAC9C,GAAG,EAAE,gDAAgD;IACrD,GAAG,EAAE,iDAAiD;IACtD,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,oBAAoB;IACzB,GAAG,EAAE,0BAA0B;IAC/B,GAAG,EAAE,+BAA+B;IACpC,IAAI,EAAE,yEAAyE;IAC/E,IAAI,EAAE,mEAAmE;IACzE,IAAI,EAAE,2EAA2E;IACjF,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,WAAW;IAChB,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,uBAAuB;
|
|
1
|
+
{"version":3,"file":"FormatToMimeType.js","sourceRoot":"","sources":["../../../src/common/constants/FormatToMimeType.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAA2B;IACpD,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,UAAU;IACf,IAAI,EAAE,WAAW;IACjB,GAAG,EAAE,YAAY;IACjB,KAAK,EAAE,aAAa;IACpB,GAAG,EAAE,YAAY;IACjB,KAAK,EAAE,qBAAqB;IAC5B,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,yCAAyC;IAC9C,GAAG,EAAE,gDAAgD;IACrD,GAAG,EAAE,iDAAiD;IACtD,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,oBAAoB;IACzB,GAAG,EAAE,0BAA0B;IAC/B,GAAG,EAAE,+BAA+B;IACpC,IAAI,EAAE,yEAAyE;IAC/E,IAAI,EAAE,mEAAmE;IACzE,IAAI,EAAE,2EAA2E;IACjF,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,WAAW;IAChB,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,uBAAuB;IAC/B,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,4BAA4B;CACpC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Order = void 0;
|
|
4
|
+
var Order;
|
|
5
|
+
(function (Order) {
|
|
6
|
+
Order["ASCENDING"] = "asc";
|
|
7
|
+
Order["DESCENDING"] = "desc";
|
|
8
|
+
})(Order = exports.Order || (exports.Order = {}));
|
|
9
|
+
//# sourceMappingURL=Order.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../src/common/constants/Order.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAGX;AAHD,WAAY,KAAK;IACb,0BAAiB,CAAA;IACjB,4BAAmB,CAAA;AACvB,CAAC,EAHW,KAAK,GAAL,aAAK,KAAL,aAAK,QAGhB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum PdfConverter {
|
|
2
|
+
STANDARD = "STANDARD",
|
|
3
|
+
ABBYY = "ABBYY",
|
|
4
|
+
SMART_SELECTION = "SMART_SELECTION"
|
|
5
|
+
}
|
|
6
|
+
export declare enum PdfConverterCloud {
|
|
7
|
+
STANDARD = "STANDARD",
|
|
8
|
+
ABBYY = "ABBYY",
|
|
9
|
+
SMART_SELECTION = "SMART_SELECTION"
|
|
10
|
+
}
|
|
11
|
+
export declare enum PdfConverterEdge {
|
|
12
|
+
STANDARD = "Standard",
|
|
13
|
+
ABBYY = "Abbyy",
|
|
14
|
+
SMART_SELECTION = ""
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PdfConverterEdge = exports.PdfConverterCloud = exports.PdfConverter = void 0;
|
|
4
|
+
var PdfConverter;
|
|
5
|
+
(function (PdfConverter) {
|
|
6
|
+
PdfConverter["STANDARD"] = "STANDARD";
|
|
7
|
+
PdfConverter["ABBYY"] = "ABBYY";
|
|
8
|
+
PdfConverter["SMART_SELECTION"] = "SMART_SELECTION";
|
|
9
|
+
})(PdfConverter = exports.PdfConverter || (exports.PdfConverter = {}));
|
|
10
|
+
var PdfConverterCloud;
|
|
11
|
+
(function (PdfConverterCloud) {
|
|
12
|
+
PdfConverterCloud["STANDARD"] = "STANDARD";
|
|
13
|
+
PdfConverterCloud["ABBYY"] = "ABBYY";
|
|
14
|
+
PdfConverterCloud["SMART_SELECTION"] = "SMART_SELECTION";
|
|
15
|
+
})(PdfConverterCloud = exports.PdfConverterCloud || (exports.PdfConverterCloud = {}));
|
|
16
|
+
var PdfConverterEdge;
|
|
17
|
+
(function (PdfConverterEdge) {
|
|
18
|
+
PdfConverterEdge["STANDARD"] = "Standard";
|
|
19
|
+
PdfConverterEdge["ABBYY"] = "Abbyy";
|
|
20
|
+
PdfConverterEdge["SMART_SELECTION"] = "";
|
|
21
|
+
})(PdfConverterEdge = exports.PdfConverterEdge || (exports.PdfConverterEdge = {}));
|
|
22
|
+
//# sourceMappingURL=PdfConverter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfConverter.js","sourceRoot":"","sources":["../../../src/common/constants/PdfConverter.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,mDAAmC,CAAA;AACvC,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,0CAAqB,CAAA;IACrB,oCAAe,CAAA;IACf,wDAAmC,CAAA;AACvC,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,yCAAqB,CAAA;IACrB,mCAAe,CAAA;IACf,wCAAoB,CAAA;AACxB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../src/common/constants/Product.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAGX;AAHD,WAAY,OAAO;IACf,0BAAe,CAAA;IACf,wBAAa,CAAA;AACjB,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getQualityEstimationByKey = exports.QualityEstimation = void 0;
|
|
4
|
+
var QualityEstimation;
|
|
5
|
+
(function (QualityEstimation) {
|
|
6
|
+
QualityEstimation["POOR"] = "POOR";
|
|
7
|
+
QualityEstimation["ADEQUATE"] = "ADEQUATE";
|
|
8
|
+
QualityEstimation["GOOD"] = "GOOD";
|
|
9
|
+
})(QualityEstimation = exports.QualityEstimation || (exports.QualityEstimation = {}));
|
|
10
|
+
var getQualityEstimationByKey = function (key) {
|
|
11
|
+
if (key) {
|
|
12
|
+
return QualityEstimation[key];
|
|
13
|
+
}
|
|
14
|
+
return undefined;
|
|
15
|
+
};
|
|
16
|
+
exports.getQualityEstimationByKey = getQualityEstimationByKey;
|
|
17
|
+
//# sourceMappingURL=QualityEstimation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QualityEstimation.js","sourceRoot":"","sources":["../../../src/common/constants/QualityEstimation.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,kCAAa,CAAA;IACb,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACjB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAEM,IAAM,yBAAyB,GAAG,UAAC,GAAuB;IAC7D,IAAI,GAAG,EAAE;QACL,OAAO,iBAAiB,CAAC,GAAqC,CAAC,CAAC;KACnE;IAED,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AANW,QAAA,yBAAyB,6BAMpC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Regions.js","sourceRoot":"","sources":["../../../src/common/constants/Regions.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAGX;AAHD,WAAY,OAAO;IACf,oBAAS,CAAA;IACT,4BAAiB,CAAA;AACrB,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Statuses.js","sourceRoot":"","sources":["../../../src/common/constants/Statuses.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,KAAK,CAAC;AAC/B,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,8BAA8B,GAAG,aAAa,CAAC;AAC/C,QAAA,4BAA4B,GAAG,WAAW,CAAC;AAC3C,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,yBAAyB,GAAG,QAAQ,CAAC"}
|
|
@@ -5,6 +5,8 @@ export declare const SYNC_TRANSLATION_PATH = "/v4/mt/translations/sync";
|
|
|
5
5
|
export declare const ASYNC_TRANSLATION_PATH = "/v4/mt/translations/async";
|
|
6
6
|
export declare const EDGE_LANGUAGE_PAIRS_PATH = "/api/v2/language-pairs?chains=also";
|
|
7
7
|
export declare const EDGE_GET_ALL_DICTIONARIES_PATH = "/api/v2/dictionaries";
|
|
8
|
+
export declare const EDGE_GET_ALL_FEEDBACK_PATH = "/api/v2/feedback";
|
|
9
|
+
export declare const EDGE_CREATE_FEEDBACK_PATH = "/api/v2/feedback";
|
|
8
10
|
export declare const EDGE_ASYNC_TRANSLATION_PATH = "/api/v2/translations";
|
|
9
11
|
export declare const EDGE_ASYNC_METADATA_PATH = "/api/v2/translations/{0}/metadata";
|
|
10
12
|
export declare const EDGE_QUICK_TRANSLATION_PATH = "/api/v2/translations/quick";
|
|
@@ -19,6 +21,7 @@ export declare const DICTIONARY_IDS = "dictionaryIds";
|
|
|
19
21
|
export declare const OUTPUT_FORMAT = "outputFormat";
|
|
20
22
|
export declare const TITLE = "title";
|
|
21
23
|
export declare const ENCODING = "encoding";
|
|
24
|
+
export declare const PDF_CONVERTER = "pdfConverter";
|
|
22
25
|
export declare const SMALL_INPUT_GET_TRANSLATION_STATUS_DELAY = 100;
|
|
23
26
|
export declare const LARGE_INPUT_GET_TRANSLATION_STATUS_DELAY = 500;
|
|
24
27
|
export declare const CHECK_STATUS_TIMEOUT = 300000;
|
|
@@ -27,9 +30,13 @@ export declare const SYNC_SIZE_LIMIT = 1000;
|
|
|
27
30
|
export declare const MAX_FILE_SIZE_LIMIT = 104857600;
|
|
28
31
|
export declare const MAX_ASYNC_TEXT_SIZE_LIMIT = 2097152;
|
|
29
32
|
export declare const DEFAULT_DICTIONARIES_PAGE_SIZE = 100;
|
|
33
|
+
export declare const DEFAULT_FEEDBACK_PAGE_SIZE = 100;
|
|
30
34
|
export declare const US_URL = "https://us.api.languageweaver.com";
|
|
31
35
|
export declare const EUROPE_URL = "https://api.languageweaver.com";
|
|
32
36
|
export declare const EDGE_DEFAULT_URL = "http://localhost:8001";
|
|
37
|
+
export declare const CLOUD_DATE_FORMAT = "YYYY/MM/DD";
|
|
38
|
+
export declare const EDGE_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss.SSS";
|
|
39
|
+
export declare const SUPPORTED_INPUT_DATE_FORMATS: string[];
|
|
33
40
|
export declare const LW_CLIENT_ID_ENV_VAR = "LW_CLIENT_ID";
|
|
34
41
|
export declare const LW_CLIENT_SECRET_ENV_VAR = "LW_CLIENT_SECRET";
|
|
35
42
|
export declare const LW_PRODUCT_ENV_VAR = "LW_PRODUCT";
|
|
@@ -60,3 +67,5 @@ export declare const REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = "Input file
|
|
|
60
67
|
export declare const INVALID_PATH_ERROR = "Invalid file path: ";
|
|
61
68
|
export declare const INVALID_DIRECTORY_ERROR = "Invalid directory: ";
|
|
62
69
|
export declare const LANGUAGE_PAIR_NOT_FOUND_ERROR = "No language pair found for given source, target and model";
|
|
70
|
+
export declare const GENERIC_ERROR = "An error occurred while ";
|
|
71
|
+
export declare const PAGE_NUMBER_QUERY_PARAM = "pageNumber";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.LANGUAGE_PAIR_NOT_FOUND_ERROR = exports.INVALID_DIRECTORY_ERROR = exports.INVALID_PATH_ERROR = exports.REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = exports.REQUIRED_INPUT_FILES_OF_TYPE_OBJECT_ERROR = exports.REQUIRED_INPUT_FILE_OF_TYPE_STRING_ERROR = exports.REQUIRED_INPUT_FILE_OF_TYPE_OBJECT_ERROR = exports.READ_FILES_FROM_DIRECTORY_FAILED_ERROR = exports.MISSING_REQUIRED_OUTPUT_DIRECTORY_ERROR = exports.MISSING_REQUIRED_OUTPUT_FILE_ERROR = exports.MISSING_REQUIRED_INPUT_FILES_ERROR = exports.MISSING_REQUIRED_INPUT_DIRECTORY_ERROR = void 0;
|
|
3
|
+
exports.AUTHORIZATION = exports.REACT_APP_LW_CLOUD_REGION = exports.REACT_APP_LW_EDGE_OVERWRITE_URL = exports.REACT_APP_LW_PRODUCT_ENV_VAR = exports.REACT_APP_LW_CLIENT_SECRET_ENV_VAR = exports.REACT_APP_LW_CLIENT_ID_ENV_VAR = exports.LW_CLOUD_REGION = exports.LW_EDGE_OVERWRITE_URL = exports.LW_PRODUCT_ENV_VAR = exports.LW_CLIENT_SECRET_ENV_VAR = exports.LW_CLIENT_ID_ENV_VAR = exports.SUPPORTED_INPUT_DATE_FORMATS = exports.EDGE_DATE_FORMAT = exports.CLOUD_DATE_FORMAT = exports.EDGE_DEFAULT_URL = exports.EUROPE_URL = exports.US_URL = exports.DEFAULT_FEEDBACK_PAGE_SIZE = exports.DEFAULT_DICTIONARIES_PAGE_SIZE = exports.MAX_ASYNC_TEXT_SIZE_LIMIT = exports.MAX_FILE_SIZE_LIMIT = exports.SYNC_SIZE_LIMIT = exports.THREAD_NUMBER_FOR_BATCH_TRANSLATION = exports.CHECK_STATUS_TIMEOUT = exports.LARGE_INPUT_GET_TRANSLATION_STATUS_DELAY = exports.SMALL_INPUT_GET_TRANSLATION_STATUS_DELAY = exports.PDF_CONVERTER = exports.ENCODING = exports.TITLE = exports.OUTPUT_FORMAT = exports.DICTIONARY_IDS = exports.LANGUAGE_PAIR_ID = exports.DICTIONARIES = exports.INPUT_FORMAT = exports.MODEL = exports.SOURCE_LANGUAGE_ID = exports.TARGET_LANGUAGE_ID = exports.INPUT = exports.EDGE_QUICK_TRANSLATION_PATH = exports.EDGE_ASYNC_METADATA_PATH = exports.EDGE_ASYNC_TRANSLATION_PATH = exports.EDGE_CREATE_FEEDBACK_PATH = exports.EDGE_GET_ALL_FEEDBACK_PATH = exports.EDGE_GET_ALL_DICTIONARIES_PATH = exports.EDGE_LANGUAGE_PAIRS_PATH = exports.ASYNC_TRANSLATION_PATH = exports.SYNC_TRANSLATION_PATH = exports.USER_SELF_PATH = exports.SELF_PATH = exports.CREDENTIALS_LOGIN_PATH = void 0;
|
|
4
|
+
exports.PAGE_NUMBER_QUERY_PARAM = exports.GENERIC_ERROR = exports.LANGUAGE_PAIR_NOT_FOUND_ERROR = exports.INVALID_DIRECTORY_ERROR = exports.INVALID_PATH_ERROR = exports.REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = exports.REQUIRED_INPUT_FILES_OF_TYPE_OBJECT_ERROR = exports.REQUIRED_INPUT_FILE_OF_TYPE_STRING_ERROR = exports.REQUIRED_INPUT_FILE_OF_TYPE_OBJECT_ERROR = exports.READ_FILES_FROM_DIRECTORY_FAILED_ERROR = exports.MISSING_REQUIRED_OUTPUT_DIRECTORY_ERROR = exports.MISSING_REQUIRED_OUTPUT_FILE_ERROR = exports.MISSING_REQUIRED_INPUT_FILES_ERROR = exports.MISSING_REQUIRED_INPUT_DIRECTORY_ERROR = exports.MISSING_REQUIRED_INPUT_FILE_ERROR = exports.MISSING_REQUIRED_LANGUAGE_PAIR_ID = exports.TRANSLATION_TIMEOUT = exports.CLIENT_SECRET = exports.CLIENT_ID = exports.CONTENT_TYPE = exports.ACCEPT = void 0;
|
|
5
5
|
exports.CREDENTIALS_LOGIN_PATH = '/v4/token';
|
|
6
6
|
exports.SELF_PATH = '/v4/accounts/api-credentials/self';
|
|
7
7
|
exports.USER_SELF_PATH = '/v4/accounts/users/self';
|
|
@@ -9,6 +9,8 @@ exports.SYNC_TRANSLATION_PATH = '/v4/mt/translations/sync';
|
|
|
9
9
|
exports.ASYNC_TRANSLATION_PATH = '/v4/mt/translations/async';
|
|
10
10
|
exports.EDGE_LANGUAGE_PAIRS_PATH = '/api/v2/language-pairs?chains=also';
|
|
11
11
|
exports.EDGE_GET_ALL_DICTIONARIES_PATH = '/api/v2/dictionaries';
|
|
12
|
+
exports.EDGE_GET_ALL_FEEDBACK_PATH = '/api/v2/feedback';
|
|
13
|
+
exports.EDGE_CREATE_FEEDBACK_PATH = '/api/v2/feedback';
|
|
12
14
|
exports.EDGE_ASYNC_TRANSLATION_PATH = '/api/v2/translations';
|
|
13
15
|
exports.EDGE_ASYNC_METADATA_PATH = '/api/v2/translations/{0}/metadata';
|
|
14
16
|
exports.EDGE_QUICK_TRANSLATION_PATH = '/api/v2/translations/quick';
|
|
@@ -23,6 +25,7 @@ exports.DICTIONARY_IDS = 'dictionaryIds';
|
|
|
23
25
|
exports.OUTPUT_FORMAT = 'outputFormat';
|
|
24
26
|
exports.TITLE = 'title';
|
|
25
27
|
exports.ENCODING = 'encoding';
|
|
28
|
+
exports.PDF_CONVERTER = 'pdfConverter';
|
|
26
29
|
exports.SMALL_INPUT_GET_TRANSLATION_STATUS_DELAY = 100;
|
|
27
30
|
exports.LARGE_INPUT_GET_TRANSLATION_STATUS_DELAY = 500;
|
|
28
31
|
exports.CHECK_STATUS_TIMEOUT = 300000; // timeout in milliseconds
|
|
@@ -31,9 +34,13 @@ exports.SYNC_SIZE_LIMIT = 1000; // characters
|
|
|
31
34
|
exports.MAX_FILE_SIZE_LIMIT = 104857600; // 100MB in bytes
|
|
32
35
|
exports.MAX_ASYNC_TEXT_SIZE_LIMIT = 2097152; // 2MB in bytes
|
|
33
36
|
exports.DEFAULT_DICTIONARIES_PAGE_SIZE = 100;
|
|
37
|
+
exports.DEFAULT_FEEDBACK_PAGE_SIZE = 100;
|
|
34
38
|
exports.US_URL = 'https://us.api.languageweaver.com';
|
|
35
39
|
exports.EUROPE_URL = 'https://api.languageweaver.com';
|
|
36
40
|
exports.EDGE_DEFAULT_URL = 'http://localhost:8001';
|
|
41
|
+
exports.CLOUD_DATE_FORMAT = 'YYYY/MM/DD';
|
|
42
|
+
exports.EDGE_DATE_FORMAT = 'YYYY-MM-DD HH:mm:ss.SSS';
|
|
43
|
+
exports.SUPPORTED_INPUT_DATE_FORMATS = ['YYYY/MM/DD', 'YYYY-MM-DD', 'MM/DD/YYYY', 'MM-DD-YYYY'];
|
|
37
44
|
// Environment variables keys
|
|
38
45
|
exports.LW_CLIENT_ID_ENV_VAR = 'LW_CLIENT_ID';
|
|
39
46
|
exports.LW_CLIENT_SECRET_ENV_VAR = 'LW_CLIENT_SECRET';
|
|
@@ -66,4 +73,6 @@ exports.REQUIRED_INPUT_DIRECTORY_OF_TYPE_STRING_ERROR = 'Input file must be a st
|
|
|
66
73
|
exports.INVALID_PATH_ERROR = 'Invalid file path: ';
|
|
67
74
|
exports.INVALID_DIRECTORY_ERROR = 'Invalid directory: ';
|
|
68
75
|
exports.LANGUAGE_PAIR_NOT_FOUND_ERROR = 'No language pair found for given source, target and model';
|
|
76
|
+
exports.GENERIC_ERROR = 'An error occurred while ';
|
|
77
|
+
exports.PAGE_NUMBER_QUERY_PARAM = 'pageNumber';
|
|
69
78
|
//# sourceMappingURL=TranslationConstants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationConstants.js","sourceRoot":"","sources":["../../../src/common/constants/TranslationConstants.ts"],"names":[],"mappings":";;;;AAAa,QAAA,sBAAsB,GAAG,WAAW,CAAC;AACrC,QAAA,SAAS,GAAG,mCAAmC,CAAC;AAChD,QAAA,cAAc,GAAG,yBAAyB,CAAC;AAE3C,QAAA,qBAAqB,GAAG,0BAA0B,CAAC;AACnD,QAAA,sBAAsB,GAAG,2BAA2B,CAAC;AAErD,QAAA,wBAAwB,GAAG,oCAAoC,CAAC;AAChE,QAAA,8BAA8B,GAAG,sBAAsB,CAAC;AACxD,QAAA,2BAA2B,GAAG,sBAAsB,CAAC;AACrD,QAAA,wBAAwB,GAAG,mCAAmC,CAAC;AAC/D,QAAA,2BAA2B,GAAG,4BAA4B,CAAC;AAE3D,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AACxC,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AACxC,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,YAAY,GAAG,aAAa,CAAC;AAC7B,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,gBAAgB,GAAG,gBAAgB,CAAC;AACpC,QAAA,cAAc,GAAG,eAAe,CAAC;AACjC,QAAA,aAAa,GAAG,cAAc,CAAC;AAC/B,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,QAAQ,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"TranslationConstants.js","sourceRoot":"","sources":["../../../src/common/constants/TranslationConstants.ts"],"names":[],"mappings":";;;;AAAa,QAAA,sBAAsB,GAAG,WAAW,CAAC;AACrC,QAAA,SAAS,GAAG,mCAAmC,CAAC;AAChD,QAAA,cAAc,GAAG,yBAAyB,CAAC;AAE3C,QAAA,qBAAqB,GAAG,0BAA0B,CAAC;AACnD,QAAA,sBAAsB,GAAG,2BAA2B,CAAC;AAErD,QAAA,wBAAwB,GAAG,oCAAoC,CAAC;AAChE,QAAA,8BAA8B,GAAG,sBAAsB,CAAC;AACxD,QAAA,0BAA0B,GAAG,kBAAkB,CAAC;AAChD,QAAA,yBAAyB,GAAG,kBAAkB,CAAC;AAC/C,QAAA,2BAA2B,GAAG,sBAAsB,CAAC;AACrD,QAAA,wBAAwB,GAAG,mCAAmC,CAAC;AAC/D,QAAA,2BAA2B,GAAG,4BAA4B,CAAC;AAE3D,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AACxC,QAAA,kBAAkB,GAAG,kBAAkB,CAAC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urations/ClientConfiguration';
|
|
3
3
|
declare type RequestConfig = {
|
|
4
4
|
hasStreamResponse?: boolean;
|
|
5
5
|
headersNeeded?: boolean;
|
|
@@ -21,8 +21,8 @@ export default class RestClient {
|
|
|
21
21
|
getFetchOptionsForJsonRequest(token: Token | undefined, method: string, body: any, hasStreamResponse?: boolean): Record<string, any>;
|
|
22
22
|
getFetchOptionsForMultipartRequest(token: Token | undefined, method: string, body: any): Record<string, any>;
|
|
23
23
|
private addTraceHeaders;
|
|
24
|
+
private removeUnderscorePrefixesFromObjectKeys;
|
|
24
25
|
private addAuthorizationHeader;
|
|
25
|
-
private processBodyValues;
|
|
26
26
|
request(method: string, url: string, options: Record<string, any>, queryStringParams?: object, attempt?: number, config?: RequestConfig): Promise<any>;
|
|
27
27
|
getFetchUrl(method: string, url: string, queryStringParams?: object): string;
|
|
28
28
|
getUrlWithParams(url: string, queryStringParams: object): string;
|
|
@@ -50,12 +50,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
50
50
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
var TraceRequestInfo_1 = __importDefault(require("
|
|
54
|
-
var TranslationConstants_1 = require("
|
|
53
|
+
var TraceRequestInfo_1 = __importDefault(require("../../requests/TraceRequestInfo"));
|
|
54
|
+
var TranslationConstants_1 = require("../../constants/TranslationConstants");
|
|
55
55
|
var axios_1 = __importDefault(require("axios"));
|
|
56
56
|
var LanguageWeaverAuthentication_1 = __importDefault(require("../../auth/LanguageWeaverAuthentication"));
|
|
57
|
-
var HttpUtils_1 = __importDefault(require("
|
|
58
|
-
var Utils_1 = __importDefault(require("
|
|
57
|
+
var HttpUtils_1 = __importDefault(require("../../utils/HttpUtils"));
|
|
58
|
+
var Utils_1 = __importDefault(require("../../utils/Utils"));
|
|
59
59
|
var defaultRequestConfig = {
|
|
60
60
|
hasStreamResponse: false,
|
|
61
61
|
headersNeeded: false,
|
|
@@ -107,6 +107,7 @@ var RestClient = /** @class */ (function () {
|
|
|
107
107
|
};
|
|
108
108
|
RestClient.prototype.getFetchOptionsForJsonRequest = function (token, method, body, hasStreamResponse) {
|
|
109
109
|
var _a;
|
|
110
|
+
var _this = this;
|
|
110
111
|
var traceId = TraceRequestInfo_1.default.buildTraceId();
|
|
111
112
|
var options = {
|
|
112
113
|
method: method,
|
|
@@ -118,7 +119,9 @@ var RestClient = /** @class */ (function () {
|
|
|
118
119
|
options = this.addTraceHeaders(options, traceId);
|
|
119
120
|
options = this.addAuthorizationHeader(options, token);
|
|
120
121
|
if (method === 'POST' || method === 'PUT' || method === 'DELETE') {
|
|
121
|
-
options['data'] = JSON.stringify(
|
|
122
|
+
options['data'] = JSON.stringify(body, function (_, value) {
|
|
123
|
+
return _this.removeUnderscorePrefixesFromObjectKeys(value);
|
|
124
|
+
});
|
|
122
125
|
}
|
|
123
126
|
if (hasStreamResponse) {
|
|
124
127
|
options['responseType'] = Utils_1.default.isBrowser() ? 'blob' : 'stream';
|
|
@@ -149,6 +152,14 @@ var RestClient = /** @class */ (function () {
|
|
|
149
152
|
}
|
|
150
153
|
return options;
|
|
151
154
|
};
|
|
155
|
+
RestClient.prototype.removeUnderscorePrefixesFromObjectKeys = function (value) {
|
|
156
|
+
return value && typeof value === 'object' && !Array.isArray(value)
|
|
157
|
+
? Object.fromEntries(Object.entries(value).map(function (_a) {
|
|
158
|
+
var key = _a[0], entryValue = _a[1];
|
|
159
|
+
return [key.replace(/^_/, ''), entryValue];
|
|
160
|
+
}))
|
|
161
|
+
: value;
|
|
162
|
+
};
|
|
152
163
|
RestClient.prototype.addAuthorizationHeader = function (options, token) {
|
|
153
164
|
var _a;
|
|
154
165
|
if (token) {
|
|
@@ -156,18 +167,6 @@ var RestClient = /** @class */ (function () {
|
|
|
156
167
|
}
|
|
157
168
|
return options;
|
|
158
169
|
};
|
|
159
|
-
RestClient.prototype.processBodyValues = function (body) {
|
|
160
|
-
if (body && typeof body === 'object') {
|
|
161
|
-
return Object.keys(body).reduce(function (acc, key) {
|
|
162
|
-
var _a, _b;
|
|
163
|
-
if (key && key.startsWith('_')) {
|
|
164
|
-
return __assign(__assign({}, acc), (_a = {}, _a[key.slice(1)] = body[key], _a));
|
|
165
|
-
}
|
|
166
|
-
return __assign(__assign({}, acc), (_b = {}, _b[key] = body[key], _b));
|
|
167
|
-
}, {});
|
|
168
|
-
}
|
|
169
|
-
return body;
|
|
170
|
-
};
|
|
171
170
|
RestClient.prototype.request = function (method, url, options, queryStringParams, attempt, config) {
|
|
172
171
|
var _this = this;
|
|
173
172
|
if (attempt === void 0) { attempt = 1; }
|
|
@@ -187,14 +186,13 @@ var RestClient = /** @class */ (function () {
|
|
|
187
186
|
retry = _a.sent();
|
|
188
187
|
if (retry) {
|
|
189
188
|
return [2 /*return*/, new Promise(function (resolve) {
|
|
190
|
-
var _a;
|
|
191
189
|
if (attempt === 1) {
|
|
192
190
|
resolve(_this.request(method, url, options, queryStringParams, attempt + 1));
|
|
193
191
|
}
|
|
194
|
-
else {
|
|
192
|
+
else if (_this.clientConfiguration) {
|
|
195
193
|
setTimeout(function () {
|
|
196
194
|
return resolve(_this.request(method, url, options, queryStringParams, attempt + 1, config));
|
|
197
|
-
},
|
|
195
|
+
}, _this.clientConfiguration.retryConfiguration.delay);
|
|
198
196
|
}
|
|
199
197
|
})];
|
|
200
198
|
}
|
|
@@ -207,14 +205,7 @@ var RestClient = /** @class */ (function () {
|
|
|
207
205
|
}); });
|
|
208
206
|
};
|
|
209
207
|
RestClient.prototype.getFetchUrl = function (method, url, queryStringParams) {
|
|
210
|
-
|
|
211
|
-
return queryStringParams
|
|
212
|
-
? this.getUrlWithParams(this._baseUrl + url, queryStringParams)
|
|
213
|
-
: this._baseUrl + url;
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
return this._baseUrl + url;
|
|
217
|
-
}
|
|
208
|
+
return queryStringParams ? this.getUrlWithParams(this._baseUrl + url, queryStringParams) : this._baseUrl + url;
|
|
218
209
|
};
|
|
219
210
|
RestClient.prototype.getUrlWithParams = function (url, queryStringParams) {
|
|
220
211
|
var paramsString = this.getQueryParamsString(queryStringParams);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RestClient.js","sourceRoot":"","sources":["../../../../src/common/external/communication/RestClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAA+D;AAC/D,6EAAmH;AAEnH,gDAA0B;AAE1B,yGAAmF;AACnF,oEAA8C;AAC9C,4DAAsC;AAOtC,IAAM,oBAAoB,GAAkB;IACxC,iBAAiB,EAAE,KAAK;IACxB,aAAa,EAAE,KAAK;CACvB,CAAC;AAEF;IAMI,oBAAY,GAAW,EAAE,gBAAiC;QAAjC,iCAAA,EAAA,wBAAiC;QACtD,IAAI,CAAC,QAAQ,GAAG,mBAAS,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC9C,CAAC;IAED,sBAAI,+BAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAa;YACrB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,uCAAe;aAAnB;YACI,OAAO,IAAI,CAAC,gBAAgB,CAAC;QACjC,CAAC;aAED,UAAoB,KAA2C;YAC3D,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAClC,CAAC;;;OAJA;IAMD,sBAAI,2CAAmB;aAAvB;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;aAED,UAAwB,KAAsC;YAC1D,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QACtC,CAAC;;;OAJA;IAMD,gCAAW,GAAX,UACI,KAAwB,EACxB,MAAc,EACd,GAAW,EACX,IAAU,E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