@language-weaver/lw-sdk-js 1.2.0 → 2.0.1
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/common/configurations/ClientConfiguration.d.ts +2 -2
- package/lib/common/configurations/ClientConfiguration.js +0 -2
- package/lib/common/configurations/ClientConfiguration.js.map +1 -1
- package/lib/common/configurations/CredentialsConfiguration.js +2 -6
- package/lib/common/configurations/CredentialsConfiguration.js.map +1 -1
- package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.d.ts +0 -0
- package/lib/{translation/feedback/cloud/model → common/constants}/CloudFeedbackSortCriteria.js +0 -0
- package/lib/common/constants/CloudFeedbackSortCriteria.js.map +1 -0
- package/lib/common/constants/Statuses.d.ts +6 -0
- package/lib/common/constants/Statuses.js +7 -1
- package/lib/common/constants/Statuses.js.map +1 -1
- package/lib/common/constants/TranslationConstants.d.ts +17 -8
- package/lib/common/constants/TranslationConstants.js +22 -11
- package/lib/common/constants/TranslationConstants.js.map +1 -1
- package/lib/common/exceptions/ContentInsightsException.d.ts +4 -0
- package/lib/common/exceptions/ContentInsightsException.js +17 -0
- package/lib/common/exceptions/ContentInsightsException.js.map +1 -0
- package/lib/common/external/communication/RestClient.js +9 -7
- package/lib/common/external/communication/RestClient.js.map +1 -1
- package/lib/common/utils/Utils.d.ts +8 -1
- package/lib/common/utils/Utils.js +133 -31
- package/lib/common/utils/Utils.js.map +1 -1
- package/lib/index.d.ts +45 -17
- package/lib/index.js +74 -20
- package/lib/index.js.map +1 -1
- package/lib/translation/common/LanguageWeaverClient.d.ts +10 -2
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.d.ts +28 -4
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.js +209 -112
- package/lib/translation/common/cloud/CloudLanguageWeaverClient.js.map +1 -1
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.d.ts +26 -6
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.js +204 -132
- package/lib/translation/common/edge/EdgeLanguageWeaverClient.js.map +1 -1
- package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.d.ts +1 -1
- package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js +1 -1
- package/lib/translation/common/edge/utils/EdgeLanguagePairUtil.js.map +1 -1
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.d.ts +23 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js +69 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsResponse.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.d.ts +10 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js +39 -0
- package/lib/translation/content-insights/cloud/api/CloudContentInsightsStatisticsApiModel.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.d.ts +12 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js +32 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsResponse.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.d.ts +16 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js +42 -0
- package/lib/translation/content-insights/cloud/api/CloudCreateContentInsightsStatusResponse.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.d.ts +12 -0
- package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js +39 -0
- package/lib/translation/content-insights/cloud/api/CloudDocumentApiModel.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.d.ts +15 -0
- package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js +57 -0
- package/lib/translation/content-insights/cloud/api/CloudSegmentApiModel.js.map +1 -0
- package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.d.ts +13 -0
- package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js +46 -0
- package/lib/translation/content-insights/cloud/api/CloudSummarizationApiModel.js.map +1 -0
- package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.d.ts +3 -0
- package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js +30 -0
- package/lib/translation/content-insights/cloud/request/CloudContentInsightsRequest.js.map +1 -0
- package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.d.ts +8 -0
- package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js +29 -0
- package/lib/translation/content-insights/cloud/request/CloudFileContentInsightsRequest.js.map +1 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.d.ts +16 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js +49 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsResult.js.map +1 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.d.ts +8 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js +29 -0
- package/lib/translation/content-insights/cloud/result/CloudContentInsightsStatistics.js.map +1 -0
- package/lib/translation/content-insights/cloud/result/CloudSegment.d.ts +6 -0
- package/lib/translation/content-insights/cloud/result/CloudSegment.js +40 -0
- package/lib/translation/content-insights/cloud/result/CloudSegment.js.map +1 -0
- package/lib/translation/content-insights/cloud/result/CloudSummarization.d.ts +6 -0
- package/lib/translation/content-insights/cloud/result/CloudSummarization.js +19 -0
- package/lib/translation/content-insights/cloud/result/CloudSummarization.js.map +1 -0
- package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.d.ts +20 -0
- package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js +248 -0
- package/lib/translation/content-insights/cloud/service/CloudContentInsightsService.js.map +1 -0
- package/lib/translation/content-insights/common/request/ContentInsightsRequest.d.ts +7 -0
- package/lib/translation/content-insights/common/request/ContentInsightsRequest.js +23 -0
- package/lib/translation/content-insights/common/request/ContentInsightsRequest.js.map +1 -0
- package/lib/translation/content-insights/common/result/ContentInsightsResult.d.ts +6 -0
- package/lib/translation/content-insights/common/result/ContentInsightsResult.js +19 -0
- package/lib/translation/content-insights/common/result/ContentInsightsResult.js.map +1 -0
- package/lib/translation/content-insights/common/result/Segment.d.ts +8 -0
- package/lib/translation/content-insights/common/result/Segment.js +29 -0
- package/lib/translation/content-insights/common/result/Segment.js.map +1 -0
- package/lib/translation/content-insights/common/result/Summarization.d.ts +8 -0
- package/lib/translation/content-insights/common/result/Summarization.js +25 -0
- package/lib/translation/content-insights/common/result/Summarization.js.map +1 -0
- package/lib/translation/content-insights/common/utils/ContentInsightsUtils.d.ts +4 -0
- package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js +145 -0
- package/lib/translation/content-insights/common/utils/ContentInsightsUtils.js.map +1 -0
- package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.d.ts +13 -0
- package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js +53 -0
- package/lib/translation/content-insights/edge/api/EdgeContentInsightsResponse.js.map +1 -0
- package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.d.ts +12 -0
- package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js +46 -0
- package/lib/translation/content-insights/edge/api/EdgeSegmentApiModel.js.map +1 -0
- package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.d.ts +5 -0
- package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js +19 -0
- package/lib/translation/content-insights/edge/request/EdgeContentInsightsRequest.js.map +1 -0
- package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.d.ts +9 -0
- package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js +29 -0
- package/lib/translation/content-insights/edge/result/EdgeContentInsightsResult.js.map +1 -0
- package/lib/translation/content-insights/edge/result/EdgeSegment.d.ts +3 -0
- package/lib/translation/content-insights/edge/result/EdgeSegment.js +30 -0
- package/lib/translation/content-insights/edge/result/EdgeSegment.js.map +1 -0
- package/lib/translation/content-insights/edge/result/EdgeSummarization.d.ts +6 -0
- package/lib/translation/content-insights/edge/result/EdgeSummarization.js +19 -0
- package/lib/translation/content-insights/edge/result/EdgeSummarization.js.map +1 -0
- package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.d.ts +14 -0
- package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js +96 -0
- package/lib/translation/content-insights/edge/service/EdgeContentInsightsService.js.map +1 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.d.ts +14 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js +72 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionariesResponse.js.map +1 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.d.ts +36 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js +136 -0
- package/lib/translation/dictionaries/cloud/api/CloudDictionaryApiModel.js.map +1 -0
- package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.d.ts +3 -3
- package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.js +0 -0
- package/lib/translation/dictionaries/cloud/result/CloudDictionariesResult.js.map +1 -0
- package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.d.ts → dictionaries/cloud/result/CloudDictionary.d.ts} +1 -1
- package/lib/translation/{translate/cloud/api/CloudDictionaryResponse.js → dictionaries/cloud/result/CloudDictionary.js} +15 -15
- package/lib/translation/dictionaries/cloud/result/CloudDictionary.js.map +1 -0
- package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.d.ts +15 -0
- package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js +51 -0
- package/lib/translation/dictionaries/cloud/service/CloudDictionariesService.js.map +1 -0
- package/lib/translation/dictionaries/common/result/DictionariesResult.d.ts +7 -0
- package/lib/translation/{translate → dictionaries}/common/result/DictionariesResult.js +0 -0
- package/lib/translation/dictionaries/common/result/DictionariesResult.js.map +1 -0
- package/lib/translation/{translate/common/api/DictionaryResponse.d.ts → dictionaries/common/result/Dictionary.d.ts} +1 -1
- package/lib/translation/{translate/common/api/DictionaryResponse.js → dictionaries/common/result/Dictionary.js} +8 -8
- package/lib/translation/dictionaries/common/result/Dictionary.js.map +1 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.d.ts +22 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js +84 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionariesResponse.js.map +1 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.d.ts +15 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js +58 -0
- package/lib/translation/dictionaries/edge/api/EdgeDictionaryApiModel.js.map +1 -0
- package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.d.ts +3 -3
- package/lib/translation/{translate → dictionaries}/edge/result/EdgeDictionariesResult.js +0 -0
- package/lib/translation/dictionaries/edge/result/EdgeDictionariesResult.js.map +1 -0
- package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.d.ts → dictionaries/edge/result/EdgeDictionary.d.ts} +1 -1
- package/lib/translation/{translate/edge/api/EdgeDictionaryResponse.js → dictionaries/edge/result/EdgeDictionary.js} +8 -8
- package/lib/translation/dictionaries/edge/result/EdgeDictionary.js.map +1 -0
- package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.d.ts +12 -0
- package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js +51 -0
- package/lib/translation/dictionaries/edge/service/EdgeDictionariesService.js.map +1 -0
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js +2 -2
- package/lib/translation/feedback/cloud/api/CloudFeedbackApiModel.js.map +1 -1
- package/lib/translation/feedback/cloud/request/CloudFeedbackSortRequest.d.ts +1 -1
- package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.d.ts +1 -1
- package/lib/translation/feedback/cloud/{model → result}/CloudAuditData.js +1 -1
- package/lib/translation/feedback/cloud/result/CloudAuditData.js.map +1 -0
- package/lib/translation/feedback/cloud/result/CloudFeedbackResult.d.ts +1 -1
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js +1 -1
- package/lib/translation/feedback/cloud/service/CloudFeedbackService.js.map +1 -1
- package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.d.ts +1 -1
- package/lib/translation/feedback/cloud/{validators → validator}/CloudFeedbackValidator.js +1 -1
- package/lib/translation/feedback/cloud/validator/CloudFeedbackValidator.js.map +1 -0
- package/lib/translation/feedback/common/{model → result}/AuditData.d.ts +0 -0
- package/lib/translation/feedback/common/{model → result}/AuditData.js +0 -0
- package/lib/translation/feedback/common/result/AuditData.js.map +1 -0
- package/lib/translation/feedback/common/result/FeedbackResult.d.ts +1 -1
- package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.d.ts +0 -0
- package/lib/translation/feedback/common/{validators → validator}/FeedbackValidator.js +0 -0
- package/lib/translation/feedback/common/validator/FeedbackValidator.js.map +1 -0
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.d.ts +1 -1
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js +1 -1
- package/lib/translation/feedback/edge/api/EdgeFeedbackApiModel.js.map +1 -1
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.d.ts +1 -1
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.js +1 -1
- package/lib/translation/feedback/edge/service/EdgeFeedbackService.js.map +1 -1
- package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.d.ts +3 -0
- package/lib/translation/feedback/edge/{validators → validator}/EdgeFeedbackValidator.js +1 -1
- package/lib/translation/feedback/edge/validator/EdgeFeedbackValidator.js.map +1 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.d.ts +21 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js +81 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairApiModel.js.map +1 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.d.ts +13 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js +47 -0
- package/lib/translation/language-pairs/cloud/api/CloudLanguagePairsResponse.js.map +1 -0
- package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.d.ts +2 -0
- package/lib/translation/{translate/cloud/api → language-pairs/cloud/result}/CloudLanguagePair.js +11 -0
- package/lib/translation/language-pairs/cloud/result/CloudLanguagePair.js.map +1 -0
- package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.d.ts +1 -1
- package/lib/translation/{translate → language-pairs}/cloud/result/CloudLanguagePairsResult.js +0 -0
- package/lib/translation/language-pairs/cloud/result/CloudLanguagePairsResult.js.map +1 -0
- package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.d.ts +15 -0
- package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js +45 -0
- package/lib/translation/language-pairs/cloud/service/CloudLanguagePairsService.js.map +1 -0
- package/lib/translation/language-pairs/common/result/LanguagePair.d.ts +16 -0
- package/lib/translation/{translate/common/api → language-pairs/common/result}/LanguagePair.js +11 -0
- package/lib/translation/language-pairs/common/result/LanguagePair.js.map +1 -0
- package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.d.ts +1 -1
- package/lib/translation/{translate → language-pairs}/common/result/LanguagePairsResult.js +0 -0
- package/lib/translation/language-pairs/common/result/LanguagePairsResult.js.map +1 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.d.ts +17 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js +89 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairApiModel.js.map +1 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.d.ts +10 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js +37 -0
- package/lib/translation/language-pairs/edge/api/EdgeLanguagePairsApiModel.js.map +1 -0
- package/lib/translation/language-pairs/edge/api/MemberPairApiModel.d.ts +31 -0
- package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js +116 -0
- package/lib/translation/language-pairs/edge/api/MemberPairApiModel.js.map +1 -0
- package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.d.ts +15 -0
- package/lib/translation/{translate/edge/api → language-pairs/edge/result}/EdgeLanguagePair.js +20 -0
- package/lib/translation/language-pairs/edge/result/EdgeLanguagePair.js.map +1 -0
- package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.d.ts +1 -1
- package/lib/translation/{translate → language-pairs}/edge/result/EdgeLanguagePairsResult.js +0 -0
- package/lib/translation/language-pairs/edge/result/EdgeLanguagePairsResult.js.map +1 -0
- package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.d.ts +0 -0
- package/lib/translation/{translate/edge/api → language-pairs/edge/result}/MemberPair.js +0 -0
- package/lib/translation/language-pairs/edge/result/MemberPair.js.map +1 -0
- package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.d.ts +14 -0
- package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js +80 -0
- package/lib/translation/language-pairs/edge/service/EdgeLanguagePairsService.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.d.ts +13 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js +68 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionApiModel.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.d.ts +6 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js +19 -0
- package/lib/translation/linguistic-options/cloud/api/CloudLinguisticOptionsResponse.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.d.ts +3 -0
- package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js +30 -0
- package/lib/translation/linguistic-options/cloud/request/CloudGetLinguisticOptionsRequest.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.d.ts +10 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js +57 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOption.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.d.ts +6 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js +19 -0
- package/lib/translation/linguistic-options/cloud/result/CloudLinguisticOptionsResult.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.d.ts +19 -0
- package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js +72 -0
- package/lib/translation/linguistic-options/cloud/service/CloudLinguisticOptionsService.js.map +1 -0
- package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.d.ts +3 -0
- package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js +30 -0
- package/lib/translation/linguistic-options/cloud/validator/CloudLinguisticOptionsValidator.js.map +1 -0
- package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.d.ts +11 -0
- package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js +39 -0
- package/lib/translation/linguistic-options/common/api/LinguisticOptionApiModel.js.map +1 -0
- package/lib/translation/{translate/common/api/LanguagePair.d.ts → linguistic-options/common/request/GetLinguisticOptionsRequest.d.ts} +1 -4
- package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js +39 -0
- package/lib/translation/linguistic-options/common/request/GetLinguisticOptionsRequest.js.map +1 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOption.d.ts +11 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOption.js +39 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOption.js.map +1 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.d.ts +6 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js +19 -0
- package/lib/translation/linguistic-options/common/result/LinguisticOptionsResult.js.map +1 -0
- package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.d.ts +4 -0
- package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js +25 -0
- package/lib/translation/linguistic-options/common/validator/LinguisticOptionsValidator.js.map +1 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.d.ts +7 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js +46 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionApiModel.js.map +1 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.d.ts +6 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js +19 -0
- package/lib/translation/linguistic-options/edge/api/EdgeLinguisticOptionsResponse.js.map +1 -0
- package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.d.ts +9 -0
- package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js +50 -0
- package/lib/translation/linguistic-options/edge/request/EdgeGetLinguisticOptionsRequest.js.map +1 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.d.ts +4 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js +37 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOption.js.map +1 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.d.ts +6 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js +19 -0
- package/lib/translation/linguistic-options/edge/result/EdgeLinguisticOptionsResult.js.map +1 -0
- package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.d.ts +18 -0
- package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js +101 -0
- package/lib/translation/linguistic-options/edge/service/EdgeLinguisticOptionsService.js.map +1 -0
- package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.d.ts +3 -0
- package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js +30 -0
- package/lib/translation/linguistic-options/edge/validator/EdgeLinguisticOptionsValidator.js.map +1 -0
- package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.d.ts +3 -0
- package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js +30 -0
- package/lib/translation/translate/cloud/request/CloudRetrieveFileRequest.js.map +1 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.d.ts +3 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js +21 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequest.js.map +1 -1
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.d.ts +26 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js +80 -0
- package/lib/translation/translate/cloud/request/CloudTranslateTextRequestApiModel.js.map +1 -0
- package/lib/translation/translate/cloud/result/CloudTranslationFileResult.d.ts +0 -3
- package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js +0 -10
- package/lib/translation/translate/cloud/result/CloudTranslationFileResult.js.map +1 -1
- package/lib/translation/translate/cloud/result/CloudTranslationTextResult.d.ts +3 -3
- package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js +3 -3
- package/lib/translation/translate/cloud/result/CloudTranslationTextResult.js.map +1 -1
- package/lib/translation/translate/common/request/RetrieveFileRequest.d.ts +11 -0
- package/lib/translation/translate/common/request/RetrieveFileRequest.js +39 -0
- package/lib/translation/translate/common/request/RetrieveFileRequest.js.map +1 -0
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.d.ts +3 -0
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.js +10 -0
- package/lib/translation/translate/common/request/TranslateBatchFileRequest.js.map +1 -1
- package/lib/translation/translate/common/request/TranslateRequest.d.ts +3 -0
- package/lib/translation/translate/common/request/TranslateRequest.js +10 -0
- package/lib/translation/translate/common/request/TranslateRequest.js.map +1 -1
- package/lib/translation/translate/common/result/TranslationFileResult.d.ts +6 -0
- package/lib/translation/translate/common/result/TranslationFileResult.js +20 -0
- package/lib/translation/translate/common/result/TranslationFileResult.js.map +1 -1
- package/lib/translation/translate/common/utils/TranslateFileUtil.d.ts +3 -1
- package/lib/translation/translate/common/utils/TranslateFileUtil.js +26 -53
- package/lib/translation/translate/common/utils/TranslateFileUtil.js.map +1 -1
- package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.d.ts +7 -0
- package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js +40 -0
- package/lib/translation/translate/edge/request/EdgeRetrieveFileRequest.js.map +1 -0
- package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.d.ts +2 -2
- package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js +15 -14
- package/lib/translation/translate/edge/request/EdgeTranslateFileRequest.js.map +1 -1
- package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.d.ts → EdgeTranslateRequest.d.ts} +1 -1
- package/lib/translation/translate/edge/request/{EdgeTranslateApiModel.js → EdgeTranslateRequest.js} +14 -14
- package/lib/translation/translate/edge/request/EdgeTranslateRequest.js.map +1 -0
- package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.d.ts +2 -2
- package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js +15 -14
- package/lib/translation/translate/edge/request/EdgeTranslateTextRequest.js.map +1 -1
- package/lib/translation/translate/edge/result/EdgeTranslationFileResult.d.ts +0 -3
- package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js +0 -10
- package/lib/translation/translate/edge/result/EdgeTranslationFileResult.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/lib/translation/feedback/cloud/model/CloudAuditData.js.map +0 -1
- package/lib/translation/feedback/cloud/model/CloudFeedbackSortCriteria.js.map +0 -1
- package/lib/translation/feedback/cloud/validators/CloudFeedbackValidator.js.map +0 -1
- package/lib/translation/feedback/common/model/AuditData.js.map +0 -1
- package/lib/translation/feedback/common/validators/FeedbackValidator.js.map +0 -1
- package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.d.ts +0 -3
- package/lib/translation/feedback/edge/validators/EdgeFeedbackValidator.js.map +0 -1
- package/lib/translation/translate/cloud/api/CloudDictionaryResponse.js.map +0 -1
- package/lib/translation/translate/cloud/api/CloudLanguagePair.js.map +0 -1
- package/lib/translation/translate/cloud/result/CloudDictionariesResult.js.map +0 -1
- package/lib/translation/translate/cloud/result/CloudLanguagePairsResult.js.map +0 -1
- package/lib/translation/translate/common/api/DictionaryResponse.js.map +0 -1
- package/lib/translation/translate/common/api/LanguagePair.js.map +0 -1
- package/lib/translation/translate/common/result/DictionariesResult.d.ts +0 -7
- package/lib/translation/translate/common/result/DictionariesResult.js.map +0 -1
- package/lib/translation/translate/common/result/LanguagePairsResult.js.map +0 -1
- package/lib/translation/translate/edge/api/EdgeDictionaryResponse.js.map +0 -1
- package/lib/translation/translate/edge/api/EdgeLanguagePair.d.ts +0 -9
- package/lib/translation/translate/edge/api/EdgeLanguagePair.js.map +0 -1
- package/lib/translation/translate/edge/api/MemberPair.js.map +0 -1
- package/lib/translation/translate/edge/request/EdgeTranslateApiModel.js.map +0 -1
- package/lib/translation/translate/edge/result/EdgeDictionariesResult.js.map +0 -1
- package/lib/translation/translate/edge/result/EdgeLanguagePairsResult.js.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import PaginatedListResult from '../../../common/result/PaginatedListResult';
|
|
2
|
+
import CloudDictionaryApiModel from './CloudDictionaryApiModel';
|
|
3
|
+
import CloudDictionariesResult from '../result/CloudDictionariesResult';
|
|
4
|
+
import DictionariesResult from '../../common/result/DictionariesResult';
|
|
5
|
+
export default class CloudDictionariesResponse extends PaginatedListResult {
|
|
6
|
+
private _accountId;
|
|
7
|
+
private _dictionaries;
|
|
8
|
+
get accountId(): number | undefined;
|
|
9
|
+
set accountId(value: number | undefined);
|
|
10
|
+
get dictionaries(): CloudDictionaryApiModel[] | undefined;
|
|
11
|
+
set dictionaries(value: CloudDictionaryApiModel[] | undefined);
|
|
12
|
+
toCloudDictionariesResult(): CloudDictionariesResult;
|
|
13
|
+
toDictionariesResult(): DictionariesResult;
|
|
14
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var PaginatedListResult_1 = __importDefault(require("../../../common/result/PaginatedListResult"));
|
|
22
|
+
var CloudDictionariesResult_1 = __importDefault(require("../result/CloudDictionariesResult"));
|
|
23
|
+
var DictionariesResult_1 = __importDefault(require("../../common/result/DictionariesResult"));
|
|
24
|
+
var CloudDictionariesResponse = /** @class */ (function (_super) {
|
|
25
|
+
__extends(CloudDictionariesResponse, _super);
|
|
26
|
+
function CloudDictionariesResponse() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(CloudDictionariesResponse.prototype, "accountId", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this._accountId;
|
|
32
|
+
},
|
|
33
|
+
set: function (value) {
|
|
34
|
+
this._accountId = value;
|
|
35
|
+
},
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(CloudDictionariesResponse.prototype, "dictionaries", {
|
|
40
|
+
get: function () {
|
|
41
|
+
return this._dictionaries;
|
|
42
|
+
},
|
|
43
|
+
set: function (value) {
|
|
44
|
+
this._dictionaries = value;
|
|
45
|
+
},
|
|
46
|
+
enumerable: false,
|
|
47
|
+
configurable: true
|
|
48
|
+
});
|
|
49
|
+
CloudDictionariesResponse.prototype.toCloudDictionariesResult = function () {
|
|
50
|
+
var _a;
|
|
51
|
+
var cloudDictionariesResult = new CloudDictionariesResult_1.default();
|
|
52
|
+
cloudDictionariesResult.accountId = this.accountId;
|
|
53
|
+
cloudDictionariesResult.pageSize = this.pageSize;
|
|
54
|
+
cloudDictionariesResult.pageNumber = this.pageNumber;
|
|
55
|
+
cloudDictionariesResult.totalCount = this.totalCount;
|
|
56
|
+
cloudDictionariesResult.dictionaries =
|
|
57
|
+
((_a = this.dictionaries) === null || _a === void 0 ? void 0 : _a.map(function (dictionary) { return dictionary.toCloudDictionary(); })) || [];
|
|
58
|
+
return cloudDictionariesResult;
|
|
59
|
+
};
|
|
60
|
+
CloudDictionariesResponse.prototype.toDictionariesResult = function () {
|
|
61
|
+
var _a;
|
|
62
|
+
var dictionariesResult = new DictionariesResult_1.default();
|
|
63
|
+
dictionariesResult.pageSize = this.pageSize;
|
|
64
|
+
dictionariesResult.pageNumber = this.pageNumber;
|
|
65
|
+
dictionariesResult.totalCount = this.totalCount;
|
|
66
|
+
dictionariesResult.dictionaries = ((_a = this.dictionaries) === null || _a === void 0 ? void 0 : _a.map(function (dictionary) { return dictionary.toDictionary(); })) || [];
|
|
67
|
+
return dictionariesResult;
|
|
68
|
+
};
|
|
69
|
+
return CloudDictionariesResponse;
|
|
70
|
+
}(PaginatedListResult_1.default));
|
|
71
|
+
exports.default = CloudDictionariesResponse;
|
|
72
|
+
//# sourceMappingURL=CloudDictionariesResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudDictionariesResponse.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/cloud/api/CloudDictionariesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAE7E,8FAAwE;AACxE,8FAAwE;AAExE;IAAuD,6CAAmB;IAA1E;;IAyCA,CAAC;IArCG,sBAAI,gDAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,mDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA4C;YACzD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,6DAAyB,GAAzB;;QACI,IAAM,uBAAuB,GAAG,IAAI,iCAAuB,EAAE,CAAC;QAC9D,uBAAuB,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QACnD,uBAAuB,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QACjD,uBAAuB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACrD,uBAAuB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACrD,uBAAuB,CAAC,YAAY;YAChC,CAAA,MAAA,IAAI,CAAC,YAAY,0CAAE,GAAG,CAAC,UAAC,UAAU,IAAK,OAAA,UAAU,CAAC,iBAAiB,EAAE,EAA9B,CAA8B,CAAC,KAAI,EAAE,CAAC;QAEjF,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,wDAAoB,GAApB;;QACI,IAAM,kBAAkB,GAAG,IAAI,4BAAkB,EAAE,CAAC;QACpD,kBAAkB,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC5C,kBAAkB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAChD,kBAAkB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAChD,kBAAkB,CAAC,YAAY,GAAG,CAAA,MAAA,IAAI,CAAC,YAAY,0CAAE,GAAG,CAAC,UAAC,UAAU,IAAK,OAAA,UAAU,CAAC,YAAY,EAAE,EAAzB,CAAyB,CAAC,KAAI,EAAE,CAAC;QAE1G,OAAO,kBAAkB,CAAC;IAC9B,CAAC;IACL,gCAAC;AAAD,CAAC,AAzCD,CAAuD,6BAAmB,GAyCzE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import CloudDictionary from '../result/CloudDictionary';
|
|
2
|
+
import Dictionary from '../../common/result/Dictionary';
|
|
3
|
+
export default class CloudDictionaryApiModel {
|
|
4
|
+
private _dictionaryId;
|
|
5
|
+
private _accountId;
|
|
6
|
+
private _createdBy;
|
|
7
|
+
private _creationDate;
|
|
8
|
+
private _lastModifiedBy;
|
|
9
|
+
private _lastModifyDate;
|
|
10
|
+
private _name;
|
|
11
|
+
private _description;
|
|
12
|
+
private _source;
|
|
13
|
+
private _target;
|
|
14
|
+
get dictionaryId(): string | undefined;
|
|
15
|
+
set dictionaryId(value: string | undefined);
|
|
16
|
+
get accountId(): number | undefined;
|
|
17
|
+
set accountId(value: number | undefined);
|
|
18
|
+
get createdBy(): string | undefined;
|
|
19
|
+
set createdBy(value: string | undefined);
|
|
20
|
+
get creationDate(): string | undefined;
|
|
21
|
+
set creationDate(value: string | undefined);
|
|
22
|
+
get lastModifiedBy(): string | undefined;
|
|
23
|
+
set lastModifiedBy(value: string | undefined);
|
|
24
|
+
get lastModifyDate(): string | undefined;
|
|
25
|
+
set lastModifyDate(value: string | undefined);
|
|
26
|
+
get name(): string | undefined;
|
|
27
|
+
set name(value: string | undefined);
|
|
28
|
+
get description(): string;
|
|
29
|
+
set description(value: string);
|
|
30
|
+
get source(): string | undefined;
|
|
31
|
+
set source(value: string | undefined);
|
|
32
|
+
get target(): string | undefined;
|
|
33
|
+
set target(value: string | undefined);
|
|
34
|
+
toCloudDictionary(): CloudDictionary;
|
|
35
|
+
toDictionary(): Dictionary;
|
|
36
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var CloudDictionary_1 = __importDefault(require("../result/CloudDictionary"));
|
|
7
|
+
var Dictionary_1 = __importDefault(require("../../common/result/Dictionary"));
|
|
8
|
+
var CloudDictionaryApiModel = /** @class */ (function () {
|
|
9
|
+
function CloudDictionaryApiModel() {
|
|
10
|
+
this._description = '';
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "dictionaryId", {
|
|
13
|
+
get: function () {
|
|
14
|
+
return this._dictionaryId;
|
|
15
|
+
},
|
|
16
|
+
set: function (value) {
|
|
17
|
+
this._dictionaryId = value;
|
|
18
|
+
},
|
|
19
|
+
enumerable: false,
|
|
20
|
+
configurable: true
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "accountId", {
|
|
23
|
+
get: function () {
|
|
24
|
+
return this._accountId;
|
|
25
|
+
},
|
|
26
|
+
set: function (value) {
|
|
27
|
+
this._accountId = value;
|
|
28
|
+
},
|
|
29
|
+
enumerable: false,
|
|
30
|
+
configurable: true
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "createdBy", {
|
|
33
|
+
get: function () {
|
|
34
|
+
return this._createdBy;
|
|
35
|
+
},
|
|
36
|
+
set: function (value) {
|
|
37
|
+
this._createdBy = value;
|
|
38
|
+
},
|
|
39
|
+
enumerable: false,
|
|
40
|
+
configurable: true
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "creationDate", {
|
|
43
|
+
get: function () {
|
|
44
|
+
return this._creationDate;
|
|
45
|
+
},
|
|
46
|
+
set: function (value) {
|
|
47
|
+
this._creationDate = value;
|
|
48
|
+
},
|
|
49
|
+
enumerable: false,
|
|
50
|
+
configurable: true
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "lastModifiedBy", {
|
|
53
|
+
get: function () {
|
|
54
|
+
return this._lastModifiedBy;
|
|
55
|
+
},
|
|
56
|
+
set: function (value) {
|
|
57
|
+
this._lastModifiedBy = value;
|
|
58
|
+
},
|
|
59
|
+
enumerable: false,
|
|
60
|
+
configurable: true
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "lastModifyDate", {
|
|
63
|
+
get: function () {
|
|
64
|
+
return this._lastModifyDate;
|
|
65
|
+
},
|
|
66
|
+
set: function (value) {
|
|
67
|
+
this._lastModifyDate = value;
|
|
68
|
+
},
|
|
69
|
+
enumerable: false,
|
|
70
|
+
configurable: true
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "name", {
|
|
73
|
+
get: function () {
|
|
74
|
+
return this._name;
|
|
75
|
+
},
|
|
76
|
+
set: function (value) {
|
|
77
|
+
this._name = value;
|
|
78
|
+
},
|
|
79
|
+
enumerable: false,
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "description", {
|
|
83
|
+
get: function () {
|
|
84
|
+
return this._description;
|
|
85
|
+
},
|
|
86
|
+
set: function (value) {
|
|
87
|
+
this._description = value;
|
|
88
|
+
},
|
|
89
|
+
enumerable: false,
|
|
90
|
+
configurable: true
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "source", {
|
|
93
|
+
get: function () {
|
|
94
|
+
return this._source;
|
|
95
|
+
},
|
|
96
|
+
set: function (value) {
|
|
97
|
+
this._source = value;
|
|
98
|
+
},
|
|
99
|
+
enumerable: false,
|
|
100
|
+
configurable: true
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(CloudDictionaryApiModel.prototype, "target", {
|
|
103
|
+
get: function () {
|
|
104
|
+
return this._target;
|
|
105
|
+
},
|
|
106
|
+
set: function (value) {
|
|
107
|
+
this._target = value;
|
|
108
|
+
},
|
|
109
|
+
enumerable: false,
|
|
110
|
+
configurable: true
|
|
111
|
+
});
|
|
112
|
+
CloudDictionaryApiModel.prototype.toCloudDictionary = function () {
|
|
113
|
+
var cloudDictionary = new CloudDictionary_1.default();
|
|
114
|
+
cloudDictionary.dictionaryId = this.dictionaryId;
|
|
115
|
+
cloudDictionary.accountId = this.accountId;
|
|
116
|
+
cloudDictionary.createdBy = this.createdBy;
|
|
117
|
+
cloudDictionary.creationDate = this.creationDate;
|
|
118
|
+
cloudDictionary.lastModifiedBy = this.lastModifiedBy;
|
|
119
|
+
cloudDictionary.lastModifyDate = this.lastModifyDate;
|
|
120
|
+
cloudDictionary.name = this.name;
|
|
121
|
+
cloudDictionary.description = this.description;
|
|
122
|
+
cloudDictionary.source = this.source;
|
|
123
|
+
cloudDictionary.target = this.target;
|
|
124
|
+
return cloudDictionary;
|
|
125
|
+
};
|
|
126
|
+
CloudDictionaryApiModel.prototype.toDictionary = function () {
|
|
127
|
+
var dictionary = new Dictionary_1.default();
|
|
128
|
+
dictionary.id = this.dictionaryId;
|
|
129
|
+
dictionary.source = this.source;
|
|
130
|
+
dictionary.target = this.target;
|
|
131
|
+
return dictionary;
|
|
132
|
+
};
|
|
133
|
+
return CloudDictionaryApiModel;
|
|
134
|
+
}());
|
|
135
|
+
exports.default = CloudDictionaryApiModel;
|
|
136
|
+
//# sourceMappingURL=CloudDictionaryApiModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudDictionaryApiModel.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/cloud/api/CloudDictionaryApiModel.ts"],"names":[],"mappings":";;;;;AAAA,8EAAwD;AACxD,8EAAwD;AAExD;IAAA;QAQY,iBAAY,GAAW,EAAE,CAAC;IA4GtC,CAAC;IAxGG,sBAAI,iDAAY;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,8CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,8CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,iDAAY;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,mDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,mDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,yCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,gDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAa;YACzB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,2CAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,2CAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,mDAAiB,GAAjB;QACI,IAAM,eAAe,GAAG,IAAI,yBAAe,EAAE,CAAC;QAC9C,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACjD,eAAe,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAC3C,eAAe,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAC3C,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACjD,eAAe,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACrD,eAAe,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACrD,eAAe,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACjC,eAAe,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QAC/C,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACrC,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAErC,OAAO,eAAe,CAAC;IAC3B,CAAC;IAED,8CAAY,GAAZ;QACI,IAAM,UAAU,GAAG,IAAI,oBAAU,EAAE,CAAC;QACpC,UAAU,CAAC,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC;QAClC,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAChC,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAEhC,OAAO,UAAU,CAAC;IACtB,CAAC;IACL,8BAAC;AAAD,CAAC,AApHD,IAoHC"}
|
package/lib/translation/{translate → dictionaries}/cloud/result/CloudDictionariesResult.d.ts
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import CloudDictionaryResponse from '../api/CloudDictionaryResponse';
|
|
2
1
|
import PaginatedListResult from '../../../common/result/PaginatedListResult';
|
|
2
|
+
import CloudDictionary from './CloudDictionary';
|
|
3
3
|
export default class CloudDictionariesResult extends PaginatedListResult {
|
|
4
4
|
private _accountId;
|
|
5
5
|
private _dictionaries;
|
|
6
6
|
get accountId(): number | undefined;
|
|
7
7
|
set accountId(value: number | undefined);
|
|
8
|
-
get dictionaries():
|
|
9
|
-
set dictionaries(value:
|
|
8
|
+
get dictionaries(): CloudDictionary[] | undefined;
|
|
9
|
+
set dictionaries(value: CloudDictionary[] | undefined);
|
|
10
10
|
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudDictionariesResult.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/cloud/result/CloudDictionariesResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAG7E;IAAqD,2CAAmB;IAAxE;;IAmBA,CAAC;IAfG,sBAAI,8CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,iDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAoC;YACjD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKL,8BAAC;AAAD,CAAC,AAnBD,CAAqD,6BAAmB,GAmBvE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
4
|
-
function
|
|
3
|
+
var CloudDictionary = /** @class */ (function () {
|
|
4
|
+
function CloudDictionary() {
|
|
5
5
|
this._description = '';
|
|
6
6
|
}
|
|
7
|
-
Object.defineProperty(
|
|
7
|
+
Object.defineProperty(CloudDictionary.prototype, "dictionaryId", {
|
|
8
8
|
get: function () {
|
|
9
9
|
return this._dictionaryId;
|
|
10
10
|
},
|
|
@@ -14,7 +14,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
14
14
|
enumerable: false,
|
|
15
15
|
configurable: true
|
|
16
16
|
});
|
|
17
|
-
Object.defineProperty(
|
|
17
|
+
Object.defineProperty(CloudDictionary.prototype, "accountId", {
|
|
18
18
|
get: function () {
|
|
19
19
|
return this._accountId;
|
|
20
20
|
},
|
|
@@ -24,7 +24,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
24
24
|
enumerable: false,
|
|
25
25
|
configurable: true
|
|
26
26
|
});
|
|
27
|
-
Object.defineProperty(
|
|
27
|
+
Object.defineProperty(CloudDictionary.prototype, "createdBy", {
|
|
28
28
|
get: function () {
|
|
29
29
|
return this._createdBy;
|
|
30
30
|
},
|
|
@@ -34,7 +34,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
34
34
|
enumerable: false,
|
|
35
35
|
configurable: true
|
|
36
36
|
});
|
|
37
|
-
Object.defineProperty(
|
|
37
|
+
Object.defineProperty(CloudDictionary.prototype, "creationDate", {
|
|
38
38
|
get: function () {
|
|
39
39
|
return this._creationDate;
|
|
40
40
|
},
|
|
@@ -44,7 +44,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
44
44
|
enumerable: false,
|
|
45
45
|
configurable: true
|
|
46
46
|
});
|
|
47
|
-
Object.defineProperty(
|
|
47
|
+
Object.defineProperty(CloudDictionary.prototype, "lastModifiedBy", {
|
|
48
48
|
get: function () {
|
|
49
49
|
return this._lastModifiedBy;
|
|
50
50
|
},
|
|
@@ -54,7 +54,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
54
54
|
enumerable: false,
|
|
55
55
|
configurable: true
|
|
56
56
|
});
|
|
57
|
-
Object.defineProperty(
|
|
57
|
+
Object.defineProperty(CloudDictionary.prototype, "lastModifyDate", {
|
|
58
58
|
get: function () {
|
|
59
59
|
return this._lastModifyDate;
|
|
60
60
|
},
|
|
@@ -64,7 +64,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
64
64
|
enumerable: false,
|
|
65
65
|
configurable: true
|
|
66
66
|
});
|
|
67
|
-
Object.defineProperty(
|
|
67
|
+
Object.defineProperty(CloudDictionary.prototype, "name", {
|
|
68
68
|
get: function () {
|
|
69
69
|
return this._name;
|
|
70
70
|
},
|
|
@@ -74,7 +74,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
74
74
|
enumerable: false,
|
|
75
75
|
configurable: true
|
|
76
76
|
});
|
|
77
|
-
Object.defineProperty(
|
|
77
|
+
Object.defineProperty(CloudDictionary.prototype, "description", {
|
|
78
78
|
get: function () {
|
|
79
79
|
return this._description;
|
|
80
80
|
},
|
|
@@ -84,7 +84,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
84
84
|
enumerable: false,
|
|
85
85
|
configurable: true
|
|
86
86
|
});
|
|
87
|
-
Object.defineProperty(
|
|
87
|
+
Object.defineProperty(CloudDictionary.prototype, "source", {
|
|
88
88
|
get: function () {
|
|
89
89
|
return this._source;
|
|
90
90
|
},
|
|
@@ -94,7 +94,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
94
94
|
enumerable: false,
|
|
95
95
|
configurable: true
|
|
96
96
|
});
|
|
97
|
-
Object.defineProperty(
|
|
97
|
+
Object.defineProperty(CloudDictionary.prototype, "target", {
|
|
98
98
|
get: function () {
|
|
99
99
|
return this._target;
|
|
100
100
|
},
|
|
@@ -104,7 +104,7 @@ var CloudDictionaryResponse = /** @class */ (function () {
|
|
|
104
104
|
enumerable: false,
|
|
105
105
|
configurable: true
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return CloudDictionary;
|
|
108
108
|
}());
|
|
109
|
-
exports.default =
|
|
110
|
-
//# sourceMappingURL=
|
|
109
|
+
exports.default = CloudDictionary;
|
|
110
|
+
//# sourceMappingURL=CloudDictionary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudDictionary.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/cloud/result/CloudDictionary.ts"],"names":[],"mappings":";;AAAA;IAAA;QAQY,iBAAY,GAAW,EAAE,CAAC;IAmFtC,CAAC;IA/EG,sBAAI,yCAAY;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,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,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,yCAAY;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,2CAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,2CAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,iCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,wCAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAa;YACzB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,mCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,mCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAKL,sBAAC;AAAD,CAAC,AA3FD,IA2FC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import SelfInformation from '../../../../common/auth/domain/SelfInformation';
|
|
2
|
+
import UserSelfInformation from '../../../../common/auth/domain/UserSelfInformation';
|
|
3
|
+
import RestClient from '../../../../common/external/communication/RestClient';
|
|
4
|
+
import Token from '../../../../common/auth/domain/Token';
|
|
5
|
+
import CloudDictionariesResult from '../result/CloudDictionariesResult';
|
|
6
|
+
import DictionariesResult from '../../common/result/DictionariesResult';
|
|
7
|
+
export default class CloudDictionariesService {
|
|
8
|
+
private readonly _selfInfo;
|
|
9
|
+
private readonly _client;
|
|
10
|
+
private readonly _token;
|
|
11
|
+
constructor(client: RestClient, token: Token | undefined, selfInfo: SelfInformation | UserSelfInformation | undefined);
|
|
12
|
+
getDictionaries(pageNumber: number, pageSize?: number): Promise<DictionariesResult>;
|
|
13
|
+
getCloudDictionaries(pageNumber: number, pageSize?: number): Promise<CloudDictionariesResult>;
|
|
14
|
+
private getDictionariesResponse;
|
|
15
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var TranslationConstants_1 = require("../../../../common/constants/TranslationConstants");
|
|
7
|
+
var CloudDictionariesResponse_1 = __importDefault(require("../api/CloudDictionariesResponse"));
|
|
8
|
+
var CloudDictionaryApiModel_1 = __importDefault(require("../api/CloudDictionaryApiModel"));
|
|
9
|
+
var CloudDictionariesService = /** @class */ (function () {
|
|
10
|
+
function CloudDictionariesService(client, token, selfInfo) {
|
|
11
|
+
this._client = client;
|
|
12
|
+
this._token = token;
|
|
13
|
+
this._selfInfo = selfInfo;
|
|
14
|
+
}
|
|
15
|
+
CloudDictionariesService.prototype.getDictionaries = function (pageNumber, pageSize) {
|
|
16
|
+
if (pageSize === void 0) { pageSize = TranslationConstants_1.DEFAULT_DICTIONARIES_PAGE_SIZE; }
|
|
17
|
+
return this.getDictionariesResponse(pageNumber, pageSize)
|
|
18
|
+
.then(function (response) { return Promise.resolve(response.toDictionariesResult()); })
|
|
19
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
20
|
+
};
|
|
21
|
+
CloudDictionariesService.prototype.getCloudDictionaries = function (pageNumber, pageSize) {
|
|
22
|
+
if (pageSize === void 0) { pageSize = TranslationConstants_1.DEFAULT_DICTIONARIES_PAGE_SIZE; }
|
|
23
|
+
return this.getDictionariesResponse(pageNumber, pageSize)
|
|
24
|
+
.then(function (response) { return Promise.resolve(response.toCloudDictionariesResult()); })
|
|
25
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
26
|
+
};
|
|
27
|
+
CloudDictionariesService.prototype.getDictionariesResponse = function (pageNumber, pageSize) {
|
|
28
|
+
var _a;
|
|
29
|
+
if (pageSize === void 0) { pageSize = TranslationConstants_1.DEFAULT_DICTIONARIES_PAGE_SIZE; }
|
|
30
|
+
return this._client
|
|
31
|
+
.requestJson(this._token, 'GET', '/v4/accounts/' + ((_a = this._selfInfo) === null || _a === void 0 ? void 0 : _a.accountId) + '/dictionaries', undefined, {
|
|
32
|
+
pageNumber: pageNumber,
|
|
33
|
+
pageSize: pageSize,
|
|
34
|
+
})
|
|
35
|
+
.then(function (response) {
|
|
36
|
+
var _a;
|
|
37
|
+
var dictionariesResponse = new CloudDictionariesResponse_1.default();
|
|
38
|
+
dictionariesResponse.accountId = response.accountId;
|
|
39
|
+
dictionariesResponse.dictionaries = (_a = response === null || response === void 0 ? void 0 : response.dictionaries) === null || _a === void 0 ? void 0 : _a.map(function (dictionary) {
|
|
40
|
+
var cloudDictionary = new CloudDictionaryApiModel_1.default();
|
|
41
|
+
Object.assign(cloudDictionary, dictionary);
|
|
42
|
+
return cloudDictionary;
|
|
43
|
+
});
|
|
44
|
+
return Promise.resolve(dictionariesResponse);
|
|
45
|
+
})
|
|
46
|
+
.catch(function (e) { return Promise.reject(e); });
|
|
47
|
+
};
|
|
48
|
+
return CloudDictionariesService;
|
|
49
|
+
}());
|
|
50
|
+
exports.default = CloudDictionariesService;
|
|
51
|
+
//# sourceMappingURL=CloudDictionariesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudDictionariesService.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/cloud/service/CloudDictionariesService.ts"],"names":[],"mappings":";;;;;AAIA,0FAAmG;AACnG,+FAAyE;AACzE,2FAAqE;AAIrE;IAKI,kCACI,MAAkB,EAClB,KAAwB,EACxB,QAA2D;QAE3D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC9B,CAAC;IAEM,kDAAe,GAAtB,UACI,UAAkB,EAClB,QAAiD;QAAjD,yBAAA,EAAA,WAAmB,qDAA8B;QAEjD,OAAO,IAAI,CAAC,uBAAuB,CAAC,UAAU,EAAE,QAAQ,CAAC;aACpD,IAAI,CAAC,UAAC,QAAmC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,EAAhD,CAAgD,CAAC;aAC/F,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEM,uDAAoB,GAA3B,UACI,UAAkB,EAClB,QAAiD;QAAjD,yBAAA,EAAA,WAAmB,qDAA8B;QAEjD,OAAO,IAAI,CAAC,uBAAuB,CAAC,UAAU,EAAE,QAAQ,CAAC;aACpD,IAAI,CAAC,UAAC,QAAmC,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,EAAE,CAAC,EAArD,CAAqD,CAAC;aACpG,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IAEO,0DAAuB,GAA/B,UACI,UAAkB,EAClB,QAAiD;;QAAjD,yBAAA,EAAA,WAAmB,qDAA8B;QAEjD,OAAO,IAAI,CAAC,OAAO;aACd,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,eAAe,IAAG,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAA,GAAG,eAAe,EAAE,SAAS,EAAE;YACvG,UAAU,YAAA;YACV,QAAQ,UAAA;SACX,CAAC;aACD,IAAI,CAAC,UAAC,QAAQ;;YACX,IAAM,oBAAoB,GAAG,IAAI,mCAAyB,EAAE,CAAC;YAC7D,oBAAoB,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;YACpD,oBAAoB,CAAC,YAAY,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,0CAAE,GAAG,CAAC,UAAC,UAAe;gBAC5E,IAAM,eAAe,GAAG,IAAI,iCAAuB,EAAE,CAAC;gBACtD,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gBAE3C,OAAO,eAAe,CAAC;YAC3B,CAAC,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACjD,CAAC,CAAC;aACD,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAjB,CAAiB,CAAC,CAAC;IACzC,CAAC;IACL,+BAAC;AAAD,CAAC,AAxDD,IAwDC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import PaginatedListResult from '../../../common/result/PaginatedListResult';
|
|
2
|
+
import Dictionary from './Dictionary';
|
|
3
|
+
export default class DictionariesResult extends PaginatedListResult {
|
|
4
|
+
private _dictionaries;
|
|
5
|
+
get dictionaries(): Dictionary[] | undefined;
|
|
6
|
+
set dictionaries(value: Dictionary[] | undefined);
|
|
7
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DictionariesResult.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/common/result/DictionariesResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mGAA6E;AAG7E;IAAgD,sCAAmB;IAAnE;;IAUA,CAAC;IAPG,sBAAI,4CAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA+B;YAC5C,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKL,yBAAC;AAAD,CAAC,AAVD,CAAgD,6BAAmB,GAUlE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
4
|
-
function
|
|
3
|
+
var Dictionary = /** @class */ (function () {
|
|
4
|
+
function Dictionary() {
|
|
5
5
|
}
|
|
6
|
-
Object.defineProperty(
|
|
6
|
+
Object.defineProperty(Dictionary.prototype, "id", {
|
|
7
7
|
get: function () {
|
|
8
8
|
return this._id;
|
|
9
9
|
},
|
|
@@ -13,7 +13,7 @@ var DictionaryResponse = /** @class */ (function () {
|
|
|
13
13
|
enumerable: false,
|
|
14
14
|
configurable: true
|
|
15
15
|
});
|
|
16
|
-
Object.defineProperty(
|
|
16
|
+
Object.defineProperty(Dictionary.prototype, "source", {
|
|
17
17
|
get: function () {
|
|
18
18
|
return this._source;
|
|
19
19
|
},
|
|
@@ -23,7 +23,7 @@ var DictionaryResponse = /** @class */ (function () {
|
|
|
23
23
|
enumerable: false,
|
|
24
24
|
configurable: true
|
|
25
25
|
});
|
|
26
|
-
Object.defineProperty(
|
|
26
|
+
Object.defineProperty(Dictionary.prototype, "target", {
|
|
27
27
|
get: function () {
|
|
28
28
|
return this._target;
|
|
29
29
|
},
|
|
@@ -33,7 +33,7 @@ var DictionaryResponse = /** @class */ (function () {
|
|
|
33
33
|
enumerable: false,
|
|
34
34
|
configurable: true
|
|
35
35
|
});
|
|
36
|
-
return
|
|
36
|
+
return Dictionary;
|
|
37
37
|
}());
|
|
38
|
-
exports.default =
|
|
39
|
-
//# sourceMappingURL=
|
|
38
|
+
exports.default = Dictionary;
|
|
39
|
+
//# sourceMappingURL=Dictionary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dictionary.js","sourceRoot":"","sources":["../../../../../src/translation/dictionaries/common/result/Dictionary.ts"],"names":[],"mappings":";;AAAA;IAAA;IA4BA,CAAC;IAvBG,sBAAI,0BAAE;aAAN;YACI,OAAO,IAAI,CAAC,GAAG,CAAC;QACpB,CAAC;aAED,UAAO,KAAyB;YAC5B,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC;QACrB,CAAC;;;OAJA;IAMD,sBAAI,8BAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,8BAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAKL,iBAAC;AAAD,CAAC,AA5BD,IA4BC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import EdgeDictionaryApiModel from './EdgeDictionaryApiModel';
|
|
2
|
+
import EdgeDictionariesResult from '../result/EdgeDictionariesResult';
|
|
3
|
+
import DictionariesResult from '../../common/result/DictionariesResult';
|
|
4
|
+
export default class EdgeDictionariesResponse {
|
|
5
|
+
private _dictionaries;
|
|
6
|
+
private _page;
|
|
7
|
+
private _perPage;
|
|
8
|
+
private _totalItems;
|
|
9
|
+
private _totalPages;
|
|
10
|
+
get dictionaries(): EdgeDictionaryApiModel[] | undefined;
|
|
11
|
+
set dictionaries(value: EdgeDictionaryApiModel[] | undefined);
|
|
12
|
+
get totalPages(): number | undefined;
|
|
13
|
+
set totalPages(value: number | undefined);
|
|
14
|
+
get totalItems(): number | undefined;
|
|
15
|
+
set totalItems(value: number | undefined);
|
|
16
|
+
get perPage(): number | undefined;
|
|
17
|
+
set perPage(value: number | undefined);
|
|
18
|
+
get page(): number | undefined;
|
|
19
|
+
set page(value: number | undefined);
|
|
20
|
+
toEdgeDictionariesResult(): EdgeDictionariesResult;
|
|
21
|
+
toDictionariesResult(): DictionariesResult;
|
|
22
|
+
}
|