@language-weaver/lw-sdk-js 1.0.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/CloudLanguageWeaverClient.d.ts +61 -0
- package/lib/CloudLanguageWeaverClient.js +514 -0
- package/lib/CloudLanguageWeaverClient.js.map +1 -0
- package/lib/EdgeLanguageWeaverClient.d.ts +60 -0
- package/lib/EdgeLanguageWeaverClient.js +580 -0
- package/lib/EdgeLanguageWeaverClient.js.map +1 -0
- package/lib/LanguageWeaverClient.d.ts +15 -0
- package/lib/LanguageWeaverClient.js +3 -0
- package/lib/LanguageWeaverClient.js.map +1 -0
- package/lib/SdkFactory.d.ts +9 -0
- package/lib/SdkFactory.js +56 -0
- package/lib/SdkFactory.js.map +1 -0
- package/lib/auth/LanguageWeaverAuthentication.d.ts +12 -0
- package/lib/auth/LanguageWeaverAuthentication.js +25 -0
- package/lib/auth/LanguageWeaverAuthentication.js.map +1 -0
- package/lib/auth/domain/SelfInformation.d.ts +8 -0
- package/lib/auth/domain/SelfInformation.js +29 -0
- package/lib/auth/domain/SelfInformation.js.map +1 -0
- package/lib/auth/domain/Token.d.ts +15 -0
- package/lib/auth/domain/Token.js +53 -0
- package/lib/auth/domain/Token.js.map +1 -0
- package/lib/auth/domain/UserSelfInformation.d.ts +38 -0
- package/lib/auth/domain/UserSelfInformation.js +129 -0
- package/lib/auth/domain/UserSelfInformation.js.map +1 -0
- package/lib/common/api/ErrorResponse.d.ts +9 -0
- package/lib/common/api/ErrorResponse.js +31 -0
- package/lib/common/api/ErrorResponse.js.map +1 -0
- package/lib/common/configurations/ClientConfiguration.d.ts +14 -0
- package/lib/common/configurations/ClientConfiguration.js +46 -0
- package/lib/common/configurations/ClientConfiguration.js.map +1 -0
- package/lib/common/configurations/CredentialsConfiguration.d.ts +9 -0
- package/lib/common/configurations/CredentialsConfiguration.js +35 -0
- package/lib/common/configurations/CredentialsConfiguration.js.map +1 -0
- package/lib/common/configurations/RetryConfiguration.d.ts +8 -0
- package/lib/common/configurations/RetryConfiguration.js +31 -0
- package/lib/common/configurations/RetryConfiguration.js.map +1 -0
- package/lib/common/configurations/TokenConfiguration.d.ts +10 -0
- package/lib/common/configurations/TokenConfiguration.js +29 -0
- package/lib/common/configurations/TokenConfiguration.js.map +1 -0
- package/lib/common/constants/EdgeFinalSubStatuses.d.ts +5 -0
- package/lib/common/constants/EdgeFinalSubStatuses.js +9 -0
- package/lib/common/constants/EdgeFinalSubStatuses.js.map +1 -0
- package/lib/common/constants/EdgeStatuses.d.ts +3 -0
- package/lib/common/constants/EdgeStatuses.js +7 -0
- package/lib/common/constants/EdgeStatuses.js.map +1 -0
- package/lib/common/constants/FileExtensions.d.ts +2 -0
- package/lib/common/constants/FileExtensions.js +52 -0
- package/lib/common/constants/FileExtensions.js.map +1 -0
- package/lib/common/constants/FormatToMimeType.d.ts +1 -0
- package/lib/common/constants/FormatToMimeType.js +33 -0
- package/lib/common/constants/FormatToMimeType.js.map +1 -0
- package/lib/common/constants/TranslationConstants.d.ts +62 -0
- package/lib/common/constants/TranslationConstants.js +69 -0
- package/lib/common/constants/TranslationConstants.js.map +1 -0
- package/lib/common/constants/languages/Iso639Mapping.d.ts +1 -0
- package/lib/common/constants/languages/Iso639Mapping.js +95 -0
- package/lib/common/constants/languages/Iso639Mapping.js.map +1 -0
- package/lib/common/exceptions/EdgeTranslationException.d.ts +3 -0
- package/lib/common/exceptions/EdgeTranslationException.js +17 -0
- package/lib/common/exceptions/EdgeTranslationException.js.map +1 -0
- package/lib/common/exceptions/TranslationException.d.ts +4 -0
- package/lib/common/exceptions/TranslationException.js +17 -0
- package/lib/common/exceptions/TranslationException.js.map +1 -0
- package/lib/common/requests/RestClient.d.ts +34 -0
- package/lib/common/requests/RestClient.js +331 -0
- package/lib/common/requests/RestClient.js.map +1 -0
- package/lib/common/requests/TraceRequestInfo.d.ts +9 -0
- package/lib/common/requests/TraceRequestInfo.js +20 -0
- package/lib/common/requests/TraceRequestInfo.js.map +1 -0
- package/lib/common/utils/HttpUtils.d.ts +5 -0
- package/lib/common/utils/HttpUtils.js +26 -0
- package/lib/common/utils/HttpUtils.js.map +1 -0
- package/lib/common/utils/Utils.d.ts +34 -0
- package/lib/common/utils/Utils.js +319 -0
- package/lib/common/utils/Utils.js.map +1 -0
- package/lib/index.d.ts +51 -0
- package/lib/index.js +99 -0
- package/lib/index.js.map +1 -0
- package/lib/translation/common/Format.d.ts +39 -0
- package/lib/translation/common/Format.js +52 -0
- package/lib/translation/common/Format.js.map +1 -0
- package/lib/translation/common/Product.d.ts +4 -0
- package/lib/translation/common/Product.js +9 -0
- package/lib/translation/common/Product.js.map +1 -0
- package/lib/translation/common/Regions.d.ts +4 -0
- package/lib/translation/common/Regions.js +9 -0
- package/lib/translation/common/Regions.js.map +1 -0
- package/lib/translation/common/Statuses.d.ts +6 -0
- package/lib/translation/common/Statuses.js +10 -0
- package/lib/translation/common/Statuses.js.map +1 -0
- package/lib/translation/translate/request/TranslateBatchFileRequest.d.ts +21 -0
- package/lib/translation/translate/request/TranslateBatchFileRequest.js +84 -0
- package/lib/translation/translate/request/TranslateBatchFileRequest.js.map +1 -0
- package/lib/translation/translate/request/TranslateFileRequest.d.ts +12 -0
- package/lib/translation/translate/request/TranslateFileRequest.js +68 -0
- package/lib/translation/translate/request/TranslateFileRequest.js.map +1 -0
- package/lib/translation/translate/request/TranslateRequest.d.ts +19 -0
- package/lib/translation/translate/request/TranslateRequest.js +67 -0
- package/lib/translation/translate/request/TranslateRequest.js.map +1 -0
- package/lib/translation/translate/request/TranslateTextRequest.d.ts +7 -0
- package/lib/translation/translate/request/TranslateTextRequest.js +46 -0
- package/lib/translation/translate/request/TranslateTextRequest.js.map +1 -0
- package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.d.ts +3 -0
- package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.js +30 -0
- package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.js.map +1 -0
- package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.d.ts +3 -0
- package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.js +30 -0
- package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.js.map +1 -0
- package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.d.ts +3 -0
- package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.js +30 -0
- package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.js.map +1 -0
- package/lib/translation/translate/request/edge/EdgeTranslateBatchFileRequest.d.ts +16 -0
- package/lib/translation/translate/request/edge/EdgeTranslateBatchFileRequest.js +70 -0
- package/lib/translation/translate/request/edge/EdgeTranslateBatchFileRequest.js.map +1 -0
- package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.d.ts +16 -0
- package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.js +70 -0
- package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.js.map +1 -0
- package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.d.ts +16 -0
- package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.js +70 -0
- package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.js.map +1 -0
- package/lib/translation/translate/response/AsyncTranslationResponse.d.ts +20 -0
- package/lib/translation/translate/response/AsyncTranslationResponse.js +69 -0
- package/lib/translation/translate/response/AsyncTranslationResponse.js.map +1 -0
- package/lib/translation/translate/response/DictionaryResponse.d.ts +11 -0
- package/lib/translation/translate/response/DictionaryResponse.js +39 -0
- package/lib/translation/translate/response/DictionaryResponse.js.map +1 -0
- package/lib/translation/translate/response/LanguagePair.d.ts +14 -0
- package/lib/translation/translate/response/LanguagePair.js +49 -0
- package/lib/translation/translate/response/LanguagePair.js.map +1 -0
- package/lib/translation/translate/response/StatusTranslationResponse.d.ts +19 -0
- package/lib/translation/translate/response/StatusTranslationResponse.js +59 -0
- package/lib/translation/translate/response/StatusTranslationResponse.js.map +1 -0
- package/lib/translation/translate/response/TranslationStatistics.d.ts +20 -0
- package/lib/translation/translate/response/TranslationStatistics.js +69 -0
- package/lib/translation/translate/response/TranslationStatistics.js.map +1 -0
- package/lib/translation/translate/response/cloud/CloudDictionaryResponse.d.ts +32 -0
- package/lib/translation/translate/response/cloud/CloudDictionaryResponse.js +110 -0
- package/lib/translation/translate/response/cloud/CloudDictionaryResponse.js.map +1 -0
- package/lib/translation/translate/response/cloud/CloudLanguagePair.d.ts +17 -0
- package/lib/translation/translate/response/cloud/CloudLanguagePair.js +59 -0
- package/lib/translation/translate/response/cloud/CloudLanguagePair.js.map +1 -0
- package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.d.ts +5 -0
- package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.js +19 -0
- package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.js.map +1 -0
- package/lib/translation/translate/response/edge/EdgeDictionaryResponse.d.ts +11 -0
- package/lib/translation/translate/response/edge/EdgeDictionaryResponse.js +39 -0
- package/lib/translation/translate/response/edge/EdgeDictionaryResponse.js.map +1 -0
- package/lib/translation/translate/response/edge/EdgeLanguagePair.d.ts +9 -0
- package/lib/translation/translate/response/edge/EdgeLanguagePair.js +50 -0
- package/lib/translation/translate/response/edge/EdgeLanguagePair.js.map +1 -0
- package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.d.ts +26 -0
- package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.js +79 -0
- package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.js.map +1 -0
- package/lib/translation/translate/response/edge/MemberPair.d.ts +29 -0
- package/lib/translation/translate/response/edge/MemberPair.js +99 -0
- package/lib/translation/translate/response/edge/MemberPair.js.map +1 -0
- package/lib/translation/translate/response/edge/Profile.d.ts +26 -0
- package/lib/translation/translate/response/edge/Profile.js +89 -0
- package/lib/translation/translate/response/edge/Profile.js.map +1 -0
- package/lib/translation/translate/response/edge/Result.d.ts +32 -0
- package/lib/translation/translate/response/edge/Result.js +109 -0
- package/lib/translation/translate/response/edge/Result.js.map +1 -0
- package/lib/translation/translate/response/edge/Timestamps.d.ts +11 -0
- package/lib/translation/translate/response/edge/Timestamps.js +39 -0
- package/lib/translation/translate/response/edge/Timestamps.js.map +1 -0
- package/lib/translation/translate/result/DictionariesResult.d.ts +6 -0
- package/lib/translation/translate/result/DictionariesResult.js +19 -0
- package/lib/translation/translate/result/DictionariesResult.js.map +1 -0
- package/lib/translation/translate/result/LanguagePairsResult.d.ts +6 -0
- package/lib/translation/translate/result/LanguagePairsResult.js +19 -0
- package/lib/translation/translate/result/LanguagePairsResult.js.map +1 -0
- package/lib/translation/translate/result/TranslateTextResult.d.ts +5 -0
- package/lib/translation/translate/result/TranslateTextResult.js +19 -0
- package/lib/translation/translate/result/TranslateTextResult.js.map +1 -0
- package/lib/translation/translate/result/TranslationBatchFileResult.d.ts +6 -0
- package/lib/translation/translate/result/TranslationBatchFileResult.js +19 -0
- package/lib/translation/translate/result/TranslationBatchFileResult.js.map +1 -0
- package/lib/translation/translate/result/TranslationFileResult.d.ts +11 -0
- package/lib/translation/translate/result/TranslationFileResult.js +39 -0
- package/lib/translation/translate/result/TranslationFileResult.js.map +1 -0
- package/lib/translation/translate/result/cloud/CloudDictionariesResult.d.ts +18 -0
- package/lib/translation/translate/result/cloud/CloudDictionariesResult.js +59 -0
- package/lib/translation/translate/result/cloud/CloudDictionariesResult.js.map +1 -0
- package/lib/translation/translate/result/cloud/CloudLanguagePairsResult.d.ts +9 -0
- package/lib/translation/translate/result/cloud/CloudLanguagePairsResult.js +29 -0
- package/lib/translation/translate/result/cloud/CloudLanguagePairsResult.js.map +1 -0
- package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.d.ts +3 -0
- package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.js +30 -0
- package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.js.map +1 -0
- package/lib/translation/translate/result/cloud/CloudTranslationFileResult.d.ts +26 -0
- package/lib/translation/translate/result/cloud/CloudTranslationFileResult.js +100 -0
- package/lib/translation/translate/result/cloud/CloudTranslationFileResult.js.map +1 -0
- package/lib/translation/translate/result/cloud/CloudTranslationTextResult.d.ts +28 -0
- package/lib/translation/translate/result/cloud/CloudTranslationTextResult.js +89 -0
- package/lib/translation/translate/result/cloud/CloudTranslationTextResult.js.map +1 -0
- package/lib/translation/translate/result/edge/EdgeDictionariesResult.d.ts +18 -0
- package/lib/translation/translate/result/edge/EdgeDictionariesResult.js +59 -0
- package/lib/translation/translate/result/edge/EdgeDictionariesResult.js.map +1 -0
- package/lib/translation/translate/result/edge/EdgeLanguagePairsResult.d.ts +6 -0
- package/lib/translation/translate/result/edge/EdgeLanguagePairsResult.js +20 -0
- package/lib/translation/translate/result/edge/EdgeLanguagePairsResult.js.map +1 -0
- package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.d.ts +3 -0
- package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.js +30 -0
- package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.js.map +1 -0
- package/lib/translation/translate/result/edge/EdgeTranslationFileResult.d.ts +9 -0
- package/lib/translation/translate/result/edge/EdgeTranslationFileResult.js +50 -0
- package/lib/translation/translate/result/edge/EdgeTranslationFileResult.js.map +1 -0
- package/lib/translation/translate/result/edge/EdgeTranslationTextResult.d.ts +6 -0
- package/lib/translation/translate/result/edge/EdgeTranslationTextResult.js +40 -0
- package/lib/translation/translate/result/edge/EdgeTranslationTextResult.js.map +1 -0
- package/lib/translation/translate/utils/TranslateFileUtil.d.ts +8 -0
- package/lib/translation/translate/utils/TranslateFileUtil.js +266 -0
- package/lib/translation/translate/utils/TranslateFileUtil.js.map +1 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +5 -0
- package/lib/version.js.map +1 -0
- package/package.json +45 -0
- package/readme.md +17 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import TranslationStatistics from '../../response/TranslationStatistics';
|
|
2
|
+
import TranslationFileResult from '../TranslationFileResult';
|
|
3
|
+
import { Format } from '../../../common/Format';
|
|
4
|
+
export default class CloudTranslationFileResult extends TranslationFileResult {
|
|
5
|
+
private _sourceLanguageId;
|
|
6
|
+
private _targetLanguageId;
|
|
7
|
+
private _model;
|
|
8
|
+
private _requestId;
|
|
9
|
+
private _inputFormat;
|
|
10
|
+
private _outputFormat;
|
|
11
|
+
private _translationStats;
|
|
12
|
+
get sourceLanguageId(): string | undefined;
|
|
13
|
+
set sourceLanguageId(value: string | undefined);
|
|
14
|
+
get targetLanguageId(): string | undefined;
|
|
15
|
+
set targetLanguageId(value: string | undefined);
|
|
16
|
+
get model(): string | undefined;
|
|
17
|
+
set model(value: string | undefined);
|
|
18
|
+
get requestId(): string | undefined;
|
|
19
|
+
set requestId(value: string | undefined);
|
|
20
|
+
get inputFormat(): Format | undefined;
|
|
21
|
+
set inputFormat(value: Format | undefined);
|
|
22
|
+
get outputFormat(): Format | undefined;
|
|
23
|
+
set outputFormat(value: Format | undefined);
|
|
24
|
+
get translationStats(): TranslationStatistics | undefined;
|
|
25
|
+
set translationStats(value: TranslationStatistics | undefined);
|
|
26
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 TranslationFileResult_1 = __importDefault(require("../TranslationFileResult"));
|
|
22
|
+
var CloudTranslationFileResult = /** @class */ (function (_super) {
|
|
23
|
+
__extends(CloudTranslationFileResult, _super);
|
|
24
|
+
function CloudTranslationFileResult() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(CloudTranslationFileResult.prototype, "sourceLanguageId", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this._sourceLanguageId;
|
|
30
|
+
},
|
|
31
|
+
set: function (value) {
|
|
32
|
+
this._sourceLanguageId = value;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(CloudTranslationFileResult.prototype, "targetLanguageId", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._targetLanguageId;
|
|
40
|
+
},
|
|
41
|
+
set: function (value) {
|
|
42
|
+
this._targetLanguageId = value;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(CloudTranslationFileResult.prototype, "model", {
|
|
48
|
+
get: function () {
|
|
49
|
+
return this._model;
|
|
50
|
+
},
|
|
51
|
+
set: function (value) {
|
|
52
|
+
this._model = value;
|
|
53
|
+
},
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(CloudTranslationFileResult.prototype, "requestId", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this._requestId;
|
|
60
|
+
},
|
|
61
|
+
set: function (value) {
|
|
62
|
+
this._requestId = value;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(CloudTranslationFileResult.prototype, "inputFormat", {
|
|
68
|
+
get: function () {
|
|
69
|
+
return this._inputFormat;
|
|
70
|
+
},
|
|
71
|
+
set: function (value) {
|
|
72
|
+
this._inputFormat = value;
|
|
73
|
+
},
|
|
74
|
+
enumerable: false,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(CloudTranslationFileResult.prototype, "outputFormat", {
|
|
78
|
+
get: function () {
|
|
79
|
+
return this._outputFormat;
|
|
80
|
+
},
|
|
81
|
+
set: function (value) {
|
|
82
|
+
this._outputFormat = value;
|
|
83
|
+
},
|
|
84
|
+
enumerable: false,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(CloudTranslationFileResult.prototype, "translationStats", {
|
|
88
|
+
get: function () {
|
|
89
|
+
return this._translationStats;
|
|
90
|
+
},
|
|
91
|
+
set: function (value) {
|
|
92
|
+
this._translationStats = value;
|
|
93
|
+
},
|
|
94
|
+
enumerable: false,
|
|
95
|
+
configurable: true
|
|
96
|
+
});
|
|
97
|
+
return CloudTranslationFileResult;
|
|
98
|
+
}(TranslationFileResult_1.default));
|
|
99
|
+
exports.default = CloudTranslationFileResult;
|
|
100
|
+
//# sourceMappingURL=CloudTranslationFileResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudTranslationFileResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/result/cloud/CloudTranslationFileResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,mFAA6D;AAG7D;IAAwD,8CAAqB;IAA7E;;IAgEA,CAAC;IAvDG,sBAAI,wDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,wDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,6CAAK;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,iDAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,mDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,oDAAY;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,wDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAwC;YACzD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAKL,iCAAC;AAAD,CAAC,AAhED,CAAwD,+BAAqB,GAgE5E"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import TranslationStatistics from '../../response/TranslationStatistics';
|
|
2
|
+
import { Format } from '../../../common/Format';
|
|
3
|
+
export default class CloudTranslationTextResult {
|
|
4
|
+
private _translation;
|
|
5
|
+
private _translationStats;
|
|
6
|
+
private _requestId;
|
|
7
|
+
private _inputFormat;
|
|
8
|
+
private _outputFormat;
|
|
9
|
+
private _sourceLanguageId;
|
|
10
|
+
private _targetLanguageId;
|
|
11
|
+
private _model;
|
|
12
|
+
get translation(): string[] | undefined;
|
|
13
|
+
set translation(value: string[] | undefined);
|
|
14
|
+
get translationStats(): TranslationStatistics | undefined;
|
|
15
|
+
set translationStats(value: TranslationStatistics | undefined);
|
|
16
|
+
get requestId(): string | undefined;
|
|
17
|
+
set requestId(value: string | undefined);
|
|
18
|
+
get inputFormat(): Format | undefined;
|
|
19
|
+
set inputFormat(value: Format | undefined);
|
|
20
|
+
get outputFormat(): Format | undefined;
|
|
21
|
+
set outputFormat(value: Format | undefined);
|
|
22
|
+
get sourceLanguageId(): string | undefined;
|
|
23
|
+
set sourceLanguageId(value: string | undefined);
|
|
24
|
+
get targetLanguageId(): string | undefined;
|
|
25
|
+
set targetLanguageId(value: string | undefined);
|
|
26
|
+
get model(): string | undefined;
|
|
27
|
+
set model(value: string | undefined);
|
|
28
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var CloudTranslationTextResult = /** @class */ (function () {
|
|
4
|
+
function CloudTranslationTextResult() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(CloudTranslationTextResult.prototype, "translation", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._translation;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._translation = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(CloudTranslationTextResult.prototype, "translationStats", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._translationStats;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._translationStats = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(CloudTranslationTextResult.prototype, "requestId", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._requestId;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._requestId = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(CloudTranslationTextResult.prototype, "inputFormat", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this._inputFormat;
|
|
39
|
+
},
|
|
40
|
+
set: function (value) {
|
|
41
|
+
this._inputFormat = value;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(CloudTranslationTextResult.prototype, "outputFormat", {
|
|
47
|
+
get: function () {
|
|
48
|
+
return this._outputFormat;
|
|
49
|
+
},
|
|
50
|
+
set: function (value) {
|
|
51
|
+
this._outputFormat = value;
|
|
52
|
+
},
|
|
53
|
+
enumerable: false,
|
|
54
|
+
configurable: true
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(CloudTranslationTextResult.prototype, "sourceLanguageId", {
|
|
57
|
+
get: function () {
|
|
58
|
+
return this._sourceLanguageId;
|
|
59
|
+
},
|
|
60
|
+
set: function (value) {
|
|
61
|
+
this._sourceLanguageId = value;
|
|
62
|
+
},
|
|
63
|
+
enumerable: false,
|
|
64
|
+
configurable: true
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(CloudTranslationTextResult.prototype, "targetLanguageId", {
|
|
67
|
+
get: function () {
|
|
68
|
+
return this._targetLanguageId;
|
|
69
|
+
},
|
|
70
|
+
set: function (value) {
|
|
71
|
+
this._targetLanguageId = value;
|
|
72
|
+
},
|
|
73
|
+
enumerable: false,
|
|
74
|
+
configurable: true
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(CloudTranslationTextResult.prototype, "model", {
|
|
77
|
+
get: function () {
|
|
78
|
+
return this._model;
|
|
79
|
+
},
|
|
80
|
+
set: function (value) {
|
|
81
|
+
this._model = value;
|
|
82
|
+
},
|
|
83
|
+
enumerable: false,
|
|
84
|
+
configurable: true
|
|
85
|
+
});
|
|
86
|
+
return CloudTranslationTextResult;
|
|
87
|
+
}());
|
|
88
|
+
exports.default = CloudTranslationTextResult;
|
|
89
|
+
//# sourceMappingURL=CloudTranslationTextResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudTranslationTextResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/result/cloud/CloudTranslationTextResult.ts"],"names":[],"mappings":";;AAGA;IAAA;IAyEA,CAAC;IA/DG,sBAAI,mDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAA2B;YACvC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,wDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAwC;YACzD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,iDAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,mDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,oDAAY;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,wDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,wDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,6CAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAKL,iCAAC;AAAD,CAAC,AAzED,IAyEC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import EdgeDictionaryResponse from '../../response/edge/EdgeDictionaryResponse';
|
|
2
|
+
export default class EdgeDictionariesResult {
|
|
3
|
+
private _dictionaries;
|
|
4
|
+
private _page;
|
|
5
|
+
private _perPage;
|
|
6
|
+
private _totalPages;
|
|
7
|
+
private _totalItems;
|
|
8
|
+
get dictionaries(): EdgeDictionaryResponse[] | undefined;
|
|
9
|
+
set dictionaries(value: EdgeDictionaryResponse[] | undefined);
|
|
10
|
+
get page(): number | undefined;
|
|
11
|
+
set page(value: number | undefined);
|
|
12
|
+
get perPage(): number | undefined;
|
|
13
|
+
set perPage(value: number | undefined);
|
|
14
|
+
get totalPages(): number | undefined;
|
|
15
|
+
set totalPages(value: number | undefined);
|
|
16
|
+
get totalItems(): number | undefined;
|
|
17
|
+
set totalItems(value: number | undefined);
|
|
18
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var EdgeDictionariesResult = /** @class */ (function () {
|
|
4
|
+
function EdgeDictionariesResult() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(EdgeDictionariesResult.prototype, "dictionaries", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._dictionaries;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._dictionaries = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(EdgeDictionariesResult.prototype, "page", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._page;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._page = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(EdgeDictionariesResult.prototype, "perPage", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._perPage;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._perPage = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(EdgeDictionariesResult.prototype, "totalPages", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this._totalPages;
|
|
39
|
+
},
|
|
40
|
+
set: function (value) {
|
|
41
|
+
this._totalPages = value;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(EdgeDictionariesResult.prototype, "totalItems", {
|
|
47
|
+
get: function () {
|
|
48
|
+
return this._totalItems;
|
|
49
|
+
},
|
|
50
|
+
set: function (value) {
|
|
51
|
+
this._totalItems = value;
|
|
52
|
+
},
|
|
53
|
+
enumerable: false,
|
|
54
|
+
configurable: true
|
|
55
|
+
});
|
|
56
|
+
return EdgeDictionariesResult;
|
|
57
|
+
}());
|
|
58
|
+
exports.default = EdgeDictionariesResult;
|
|
59
|
+
//# sourceMappingURL=EdgeDictionariesResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeDictionariesResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/result/edge/EdgeDictionariesResult.ts"],"names":[],"mappings":";;AAEA;IAAA;IA8CA,CAAC;IAvCG,sBAAI,gDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAA2C;YACxD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,wCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,2CAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAAyB;YACjC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMD,sBAAI,8CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAMD,sBAAI,8CAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;aAED,UAAe,KAAyB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC7B,CAAC;;;OAJA;IAKL,6BAAC;AAAD,CAAC,AA9CD,IA8CC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var EdgeLanguagePairsResult = /** @class */ (function () {
|
|
4
|
+
function EdgeLanguagePairsResult() {
|
|
5
|
+
this._languagePairs = [];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(EdgeLanguagePairsResult.prototype, "languagePairs", {
|
|
8
|
+
get: function () {
|
|
9
|
+
return this._languagePairs;
|
|
10
|
+
},
|
|
11
|
+
set: function (value) {
|
|
12
|
+
this._languagePairs = value;
|
|
13
|
+
},
|
|
14
|
+
enumerable: false,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
return EdgeLanguagePairsResult;
|
|
18
|
+
}());
|
|
19
|
+
exports.default = EdgeLanguagePairsResult;
|
|
20
|
+
//# sourceMappingURL=EdgeLanguagePairsResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeLanguagePairsResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/result/edge/EdgeLanguagePairsResult.ts"],"names":[],"mappings":";;AAEA;IAAA;QACY,mBAAc,GAAuB,EAAE,CAAC;IASpD,CAAC;IAPG,sBAAI,kDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;aAED,UAAkB,KAAyB;YACvC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAChC,CAAC;;;OAJA;IAKL,8BAAC;AAAD,CAAC,AAVD,IAUC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 TranslationBatchFileResult_1 = __importDefault(require("../TranslationBatchFileResult"));
|
|
22
|
+
var EdgeTranslationBatchFileResult = /** @class */ (function (_super) {
|
|
23
|
+
__extends(EdgeTranslationBatchFileResult, _super);
|
|
24
|
+
function EdgeTranslationBatchFileResult() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
return EdgeTranslationBatchFileResult;
|
|
28
|
+
}(TranslationBatchFileResult_1.default));
|
|
29
|
+
exports.default = EdgeTranslationBatchFileResult;
|
|
30
|
+
//# sourceMappingURL=EdgeTranslationBatchFileResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeTranslationBatchFileResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/result/edge/EdgeTranslationBatchFileResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,6FAAuE;AAEvE;IAA4D,kDAA0B;IAAtF;;IAAwF,CAAC;IAAD,qCAAC;AAAD,CAAC,AAAzF,CAA4D,oCAA0B,GAAG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import TranslationFileResult from '../TranslationFileResult';
|
|
2
|
+
export default class EdgeTranslationFileResult extends TranslationFileResult {
|
|
3
|
+
private _languagePairId;
|
|
4
|
+
private _requestId;
|
|
5
|
+
get languagePairId(): string | undefined;
|
|
6
|
+
set languagePairId(value: string | undefined);
|
|
7
|
+
get requestId(): string | undefined;
|
|
8
|
+
set requestId(value: string | undefined);
|
|
9
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 TranslationFileResult_1 = __importDefault(require("../TranslationFileResult"));
|
|
22
|
+
var EdgeTranslationFileResult = /** @class */ (function (_super) {
|
|
23
|
+
__extends(EdgeTranslationFileResult, _super);
|
|
24
|
+
function EdgeTranslationFileResult() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(EdgeTranslationFileResult.prototype, "languagePairId", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this._languagePairId;
|
|
30
|
+
},
|
|
31
|
+
set: function (value) {
|
|
32
|
+
this._languagePairId = value;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(EdgeTranslationFileResult.prototype, "requestId", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._requestId;
|
|
40
|
+
},
|
|
41
|
+
set: function (value) {
|
|
42
|
+
this._requestId = value;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
46
|
+
});
|
|
47
|
+
return EdgeTranslationFileResult;
|
|
48
|
+
}(TranslationFileResult_1.default));
|
|
49
|
+
exports.default = EdgeTranslationFileResult;
|
|
50
|
+
//# sourceMappingURL=EdgeTranslationFileResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeTranslationFileResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/result/edge/EdgeTranslationFileResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mFAA6D;AAE7D;IAAuD,6CAAqB;IAA5E;;IAmBA,CAAC;IAfG,sBAAI,qDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,gDAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAKL,gCAAC;AAAD,CAAC,AAnBD,CAAuD,+BAAqB,GAmB3E"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 TranslateTextResult_1 = __importDefault(require("../TranslateTextResult"));
|
|
22
|
+
var EdgeTranslationTextResult = /** @class */ (function (_super) {
|
|
23
|
+
__extends(EdgeTranslationTextResult, _super);
|
|
24
|
+
function EdgeTranslationTextResult() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(EdgeTranslationTextResult.prototype, "languagePairId", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this._languagePairId;
|
|
30
|
+
},
|
|
31
|
+
set: function (value) {
|
|
32
|
+
this._languagePairId = value;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
return EdgeTranslationTextResult;
|
|
38
|
+
}(TranslateTextResult_1.default));
|
|
39
|
+
exports.default = EdgeTranslationTextResult;
|
|
40
|
+
//# sourceMappingURL=EdgeTranslationTextResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeTranslationTextResult.js","sourceRoot":"","sources":["../../../../../src/translation/translate/result/edge/EdgeTranslationTextResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,+EAAyD;AAEzD;IAAuD,6CAAmB;IAA1E;;IAUA,CAAC;IAPG,sBAAI,qDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAKL,gCAAC;AAAD,CAAC,AAVD,CAAuD,6BAAmB,GAUzE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import TranslateFileRequest from '../request/TranslateFileRequest';
|
|
2
|
+
import TranslateBatchFileRequest from '../request/TranslateBatchFileRequest';
|
|
3
|
+
export declare const validateInputDataForBatchFileTranslation: (translateBatchFileRequest: TranslateBatchFileRequest) => Promise<string | null | undefined>;
|
|
4
|
+
export declare const validateInputDataForFileTranslation: (translateFileRequest: TranslateFileRequest) => string | null | undefined;
|
|
5
|
+
export declare const validateOutputFileExtension: (translateFileRequest: TranslateFileRequest) => string;
|
|
6
|
+
export declare const getOutputExtension: (inputExtension: string) => string;
|
|
7
|
+
export declare const getFileNameFromHeaders: (response: any, request: TranslateFileRequest) => string;
|
|
8
|
+
export declare const getInputFilesFromBatchFileRequest: (request: TranslateBatchFileRequest) => Promise<File[] | string[]>;
|