@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,70 @@
|
|
|
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 TranslateFileRequest_1 = __importDefault(require("../TranslateFileRequest"));
|
|
22
|
+
var EdgeTranslateFileRequest = /** @class */ (function (_super) {
|
|
23
|
+
__extends(EdgeTranslateFileRequest, _super);
|
|
24
|
+
function EdgeTranslateFileRequest() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(EdgeTranslateFileRequest.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(EdgeTranslateFileRequest.prototype, "outputFormat", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._outputFormat;
|
|
40
|
+
},
|
|
41
|
+
set: function (value) {
|
|
42
|
+
this._outputFormat = value;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(EdgeTranslateFileRequest.prototype, "title", {
|
|
48
|
+
get: function () {
|
|
49
|
+
return this._title;
|
|
50
|
+
},
|
|
51
|
+
set: function (value) {
|
|
52
|
+
this._title = value;
|
|
53
|
+
},
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(EdgeTranslateFileRequest.prototype, "encoding", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this._encoding;
|
|
60
|
+
},
|
|
61
|
+
set: function (value) {
|
|
62
|
+
this._encoding = value;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
return EdgeTranslateFileRequest;
|
|
68
|
+
}(TranslateFileRequest_1.default));
|
|
69
|
+
exports.default = EdgeTranslateFileRequest;
|
|
70
|
+
//# sourceMappingURL=EdgeTranslateFileRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeTranslateFileRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/request/edge/EdgeTranslateFileRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iFAA2D;AAG3D;IAAsD,4CAAoB;IAA1E;;IAqCA,CAAC;IA/BG,sBAAI,oDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,kDAAY;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,2CAAK;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,8CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AArCD,CAAsD,8BAAoB,GAqCzE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import TranslateTextRequest from '../TranslateTextRequest';
|
|
2
|
+
import { Format } from '../../../common/Format';
|
|
3
|
+
export default class EdgeTranslateTextRequest extends TranslateTextRequest {
|
|
4
|
+
private _languagePairId;
|
|
5
|
+
private _outputFormat;
|
|
6
|
+
private _title;
|
|
7
|
+
private _encoding;
|
|
8
|
+
get languagePairId(): string | undefined;
|
|
9
|
+
set languagePairId(value: string | undefined);
|
|
10
|
+
get outputFormat(): Format | undefined;
|
|
11
|
+
set outputFormat(value: Format | undefined);
|
|
12
|
+
get title(): string | undefined;
|
|
13
|
+
set title(value: string | undefined);
|
|
14
|
+
get encoding(): string | undefined;
|
|
15
|
+
set encoding(value: string | undefined);
|
|
16
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 TranslateTextRequest_1 = __importDefault(require("../TranslateTextRequest"));
|
|
22
|
+
var EdgeTranslateTextRequest = /** @class */ (function (_super) {
|
|
23
|
+
__extends(EdgeTranslateTextRequest, _super);
|
|
24
|
+
function EdgeTranslateTextRequest() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(EdgeTranslateTextRequest.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(EdgeTranslateTextRequest.prototype, "outputFormat", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._outputFormat;
|
|
40
|
+
},
|
|
41
|
+
set: function (value) {
|
|
42
|
+
this._outputFormat = value;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(EdgeTranslateTextRequest.prototype, "title", {
|
|
48
|
+
get: function () {
|
|
49
|
+
return this._title;
|
|
50
|
+
},
|
|
51
|
+
set: function (value) {
|
|
52
|
+
this._title = value;
|
|
53
|
+
},
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(EdgeTranslateTextRequest.prototype, "encoding", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this._encoding;
|
|
60
|
+
},
|
|
61
|
+
set: function (value) {
|
|
62
|
+
this._encoding = value;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
return EdgeTranslateTextRequest;
|
|
68
|
+
}(TranslateTextRequest_1.default));
|
|
69
|
+
exports.default = EdgeTranslateTextRequest;
|
|
70
|
+
//# sourceMappingURL=EdgeTranslateTextRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeTranslateTextRequest.js","sourceRoot":"","sources":["../../../../../src/translation/translate/request/edge/EdgeTranslateTextRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iFAA2D;AAG3D;IAAsD,4CAAoB;IAA1E;;IAqCA,CAAC;IA/BG,sBAAI,oDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,kDAAY;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,2CAAK;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,8CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AArCD,CAAsD,8BAAoB,GAqCzE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default class AsyncTranslationResponse {
|
|
2
|
+
private _sourceLanguageId;
|
|
3
|
+
private _targetLanguageId;
|
|
4
|
+
private _model;
|
|
5
|
+
private _submissionType;
|
|
6
|
+
private _inputFormat;
|
|
7
|
+
private _requestId;
|
|
8
|
+
get sourceLanguageId(): string | undefined;
|
|
9
|
+
set sourceLanguageId(value: string | undefined);
|
|
10
|
+
get targetLanguageId(): string | undefined;
|
|
11
|
+
set targetLanguageId(value: string | undefined);
|
|
12
|
+
get model(): string | undefined;
|
|
13
|
+
set model(value: string | undefined);
|
|
14
|
+
get submissionType(): string | undefined;
|
|
15
|
+
set submissionType(value: string | undefined);
|
|
16
|
+
get inputFormat(): string | undefined;
|
|
17
|
+
set inputFormat(value: string | undefined);
|
|
18
|
+
get requestId(): string | undefined;
|
|
19
|
+
set requestId(value: string | undefined);
|
|
20
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var AsyncTranslationResponse = /** @class */ (function () {
|
|
4
|
+
function AsyncTranslationResponse() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(AsyncTranslationResponse.prototype, "sourceLanguageId", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._sourceLanguageId;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._sourceLanguageId = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(AsyncTranslationResponse.prototype, "targetLanguageId", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._targetLanguageId;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._targetLanguageId = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(AsyncTranslationResponse.prototype, "model", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._model;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._model = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(AsyncTranslationResponse.prototype, "submissionType", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this._submissionType;
|
|
39
|
+
},
|
|
40
|
+
set: function (value) {
|
|
41
|
+
this._submissionType = value;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(AsyncTranslationResponse.prototype, "inputFormat", {
|
|
47
|
+
get: function () {
|
|
48
|
+
return this._inputFormat;
|
|
49
|
+
},
|
|
50
|
+
set: function (value) {
|
|
51
|
+
this._inputFormat = value;
|
|
52
|
+
},
|
|
53
|
+
enumerable: false,
|
|
54
|
+
configurable: true
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(AsyncTranslationResponse.prototype, "requestId", {
|
|
57
|
+
get: function () {
|
|
58
|
+
return this._requestId;
|
|
59
|
+
},
|
|
60
|
+
set: function (value) {
|
|
61
|
+
this._requestId = value;
|
|
62
|
+
},
|
|
63
|
+
enumerable: false,
|
|
64
|
+
configurable: true
|
|
65
|
+
});
|
|
66
|
+
return AsyncTranslationResponse;
|
|
67
|
+
}());
|
|
68
|
+
exports.default = AsyncTranslationResponse;
|
|
69
|
+
//# sourceMappingURL=AsyncTranslationResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsyncTranslationResponse.js","sourceRoot":"","sources":["../../../../src/translation/translate/response/AsyncTranslationResponse.ts"],"names":[],"mappings":";;AAAA;IAAA;IAuDA,CAAC;IA/CG,sBAAI,sDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,sDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,2CAAK;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,oDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,iDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,+CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AAvDD,IAuDC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class DictionaryResponse {
|
|
2
|
+
private _id;
|
|
3
|
+
private _source;
|
|
4
|
+
private _target;
|
|
5
|
+
get id(): string | undefined;
|
|
6
|
+
set id(value: string | undefined);
|
|
7
|
+
get source(): string | undefined;
|
|
8
|
+
set source(value: string | undefined);
|
|
9
|
+
get target(): string | undefined;
|
|
10
|
+
set target(value: string | undefined);
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var DictionaryResponse = /** @class */ (function () {
|
|
4
|
+
function DictionaryResponse() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(DictionaryResponse.prototype, "id", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._id;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._id = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(DictionaryResponse.prototype, "source", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._source;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._source = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(DictionaryResponse.prototype, "target", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._target;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._target = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
return DictionaryResponse;
|
|
37
|
+
}());
|
|
38
|
+
exports.default = DictionaryResponse;
|
|
39
|
+
//# sourceMappingURL=DictionaryResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DictionaryResponse.js","sourceRoot":"","sources":["../../../../src/translation/translate/response/DictionaryResponse.ts"],"names":[],"mappings":";;AAAA;IAAA;IA4BA,CAAC;IAvBG,sBAAI,kCAAE;aAAN;YACI,OAAO,IAAI,CAAC,GAAG,CAAC;QACpB,CAAC;aAED,UAAO,KAAyB;YAC5B,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC;QACrB,CAAC;;;OAJA;IAMD,sBAAI,sCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,sCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAyB;YAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAKL,yBAAC;AAAD,CAAC,AA5BD,IA4BC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default class LanguagePair {
|
|
2
|
+
private _name;
|
|
3
|
+
private _sourceLanguageId;
|
|
4
|
+
private _targetLanguageId;
|
|
5
|
+
private _model;
|
|
6
|
+
get name(): string | undefined;
|
|
7
|
+
set name(value: string | undefined);
|
|
8
|
+
get sourceLanguageId(): string | undefined;
|
|
9
|
+
set sourceLanguageId(value: string | undefined);
|
|
10
|
+
get targetLanguageId(): string | undefined;
|
|
11
|
+
set targetLanguageId(value: string | undefined);
|
|
12
|
+
get model(): string | undefined;
|
|
13
|
+
set model(value: string | undefined);
|
|
14
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var LanguagePair = /** @class */ (function () {
|
|
4
|
+
function LanguagePair() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(LanguagePair.prototype, "name", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._name;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._name = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(LanguagePair.prototype, "sourceLanguageId", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._sourceLanguageId;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._sourceLanguageId = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(LanguagePair.prototype, "targetLanguageId", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._targetLanguageId;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._targetLanguageId = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(LanguagePair.prototype, "model", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this._model;
|
|
39
|
+
},
|
|
40
|
+
set: function (value) {
|
|
41
|
+
this._model = value;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
return LanguagePair;
|
|
47
|
+
}());
|
|
48
|
+
exports.default = LanguagePair;
|
|
49
|
+
//# sourceMappingURL=LanguagePair.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguagePair.js","sourceRoot":"","sources":["../../../../src/translation/translate/response/LanguagePair.ts"],"names":[],"mappings":";;AAAA;IAAA;IAqCA,CAAC;IA/BG,sBAAI,8BAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAyB;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,0CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,0CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAyB;YAC1C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,+BAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;aAED,UAAU,KAAyB;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAKL,mBAAC;AAAD,CAAC,AArCD,IAqCC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import TranslationStatistics from './TranslationStatistics';
|
|
2
|
+
import ErrorResponse from '../../../common/api/ErrorResponse';
|
|
3
|
+
export default class StatusTranslationResponse {
|
|
4
|
+
private _translationStatus;
|
|
5
|
+
private _inputFormat;
|
|
6
|
+
private _outputFormat;
|
|
7
|
+
private _translationStats;
|
|
8
|
+
private _errors;
|
|
9
|
+
get translationStatus(): string | undefined;
|
|
10
|
+
set translationStatus(value: string | undefined);
|
|
11
|
+
get inputFormat(): string | undefined;
|
|
12
|
+
set inputFormat(value: string | undefined);
|
|
13
|
+
get outputFormat(): string | undefined;
|
|
14
|
+
set outputFormat(value: string | undefined);
|
|
15
|
+
get translationStats(): TranslationStatistics | undefined;
|
|
16
|
+
set translationStats(value: TranslationStatistics | undefined);
|
|
17
|
+
get errors(): ErrorResponse[] | undefined;
|
|
18
|
+
set errors(value: ErrorResponse[] | undefined);
|
|
19
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var StatusTranslationResponse = /** @class */ (function () {
|
|
4
|
+
function StatusTranslationResponse() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(StatusTranslationResponse.prototype, "translationStatus", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._translationStatus;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._translationStatus = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(StatusTranslationResponse.prototype, "inputFormat", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._inputFormat;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._inputFormat = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(StatusTranslationResponse.prototype, "outputFormat", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._outputFormat;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._outputFormat = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(StatusTranslationResponse.prototype, "translationStats", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this._translationStats;
|
|
39
|
+
},
|
|
40
|
+
set: function (value) {
|
|
41
|
+
this._translationStats = value;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(StatusTranslationResponse.prototype, "errors", {
|
|
47
|
+
get: function () {
|
|
48
|
+
return this._errors;
|
|
49
|
+
},
|
|
50
|
+
set: function (value) {
|
|
51
|
+
this._errors = value;
|
|
52
|
+
},
|
|
53
|
+
enumerable: false,
|
|
54
|
+
configurable: true
|
|
55
|
+
});
|
|
56
|
+
return StatusTranslationResponse;
|
|
57
|
+
}());
|
|
58
|
+
exports.default = StatusTranslationResponse;
|
|
59
|
+
//# sourceMappingURL=StatusTranslationResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusTranslationResponse.js","sourceRoot":"","sources":["../../../../src/translation/translate/response/StatusTranslationResponse.ts"],"names":[],"mappings":";;AAGA;IAAA;IA8CA,CAAC;IAvCG,sBAAI,wDAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAyB;YAC3C,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,sBAAI,kDAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,mDAAY;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,uDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;aAED,UAAqB,KAAwC;YACzD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACnC,CAAC;;;OAJA;IAMD,sBAAI,6CAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aAED,UAAW,KAAkC;YACzC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAJA;IAKL,gCAAC;AAAD,CAAC,AA9CD,IA8CC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default class TranslationStatistics {
|
|
2
|
+
private _inputWordCount;
|
|
3
|
+
private _inputCharCount;
|
|
4
|
+
private _inputByteCount;
|
|
5
|
+
private _translationWordCount;
|
|
6
|
+
private _translationCharCount;
|
|
7
|
+
private _translationByteCount;
|
|
8
|
+
get inputWordCount(): number | undefined;
|
|
9
|
+
set inputWordCount(value: number | undefined);
|
|
10
|
+
get inputCharCount(): number | undefined;
|
|
11
|
+
set inputCharCount(value: number | undefined);
|
|
12
|
+
get inputByteCount(): number | undefined;
|
|
13
|
+
set inputByteCount(value: number | undefined);
|
|
14
|
+
get translationWordCount(): number | undefined;
|
|
15
|
+
set translationWordCount(value: number | undefined);
|
|
16
|
+
get translationCharCount(): number | undefined;
|
|
17
|
+
set translationCharCount(value: number | undefined);
|
|
18
|
+
get translationByteCount(): number | undefined;
|
|
19
|
+
set translationByteCount(value: number | undefined);
|
|
20
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var TranslationStatistics = /** @class */ (function () {
|
|
4
|
+
function TranslationStatistics() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(TranslationStatistics.prototype, "inputWordCount", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._inputWordCount;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._inputWordCount = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: false,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(TranslationStatistics.prototype, "inputCharCount", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._inputCharCount;
|
|
19
|
+
},
|
|
20
|
+
set: function (value) {
|
|
21
|
+
this._inputCharCount = value;
|
|
22
|
+
},
|
|
23
|
+
enumerable: false,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(TranslationStatistics.prototype, "inputByteCount", {
|
|
27
|
+
get: function () {
|
|
28
|
+
return this._inputByteCount;
|
|
29
|
+
},
|
|
30
|
+
set: function (value) {
|
|
31
|
+
this._inputByteCount = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(TranslationStatistics.prototype, "translationWordCount", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this._translationWordCount;
|
|
39
|
+
},
|
|
40
|
+
set: function (value) {
|
|
41
|
+
this._translationWordCount = value;
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(TranslationStatistics.prototype, "translationCharCount", {
|
|
47
|
+
get: function () {
|
|
48
|
+
return this._translationCharCount;
|
|
49
|
+
},
|
|
50
|
+
set: function (value) {
|
|
51
|
+
this._translationCharCount = value;
|
|
52
|
+
},
|
|
53
|
+
enumerable: false,
|
|
54
|
+
configurable: true
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(TranslationStatistics.prototype, "translationByteCount", {
|
|
57
|
+
get: function () {
|
|
58
|
+
return this._translationByteCount;
|
|
59
|
+
},
|
|
60
|
+
set: function (value) {
|
|
61
|
+
this._translationByteCount = value;
|
|
62
|
+
},
|
|
63
|
+
enumerable: false,
|
|
64
|
+
configurable: true
|
|
65
|
+
});
|
|
66
|
+
return TranslationStatistics;
|
|
67
|
+
}());
|
|
68
|
+
exports.default = TranslationStatistics;
|
|
69
|
+
//# sourceMappingURL=TranslationStatistics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranslationStatistics.js","sourceRoot":"","sources":["../../../../src/translation/translate/response/TranslationStatistics.ts"],"names":[],"mappings":";;AAAA;IAAA;IAuDA,CAAC;IA/CG,sBAAI,iDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,iDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,iDAAc;aAAlB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;aAED,UAAmB,KAAyB;YACxC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAJA;IAMD,sBAAI,uDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAAyB;YAC9C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAMD,sBAAI,uDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAAyB;YAC9C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAMD,sBAAI,uDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAAyB;YAC9C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAKL,4BAAC;AAAD,CAAC,AAvDD,IAuDC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default class CloudDictionaryResponse {
|
|
2
|
+
private _dictionaryId;
|
|
3
|
+
private _accountId;
|
|
4
|
+
private _createdBy;
|
|
5
|
+
private _creationDate;
|
|
6
|
+
private _lastModifiedBy;
|
|
7
|
+
private _lastModifyDate;
|
|
8
|
+
private _name;
|
|
9
|
+
private _description;
|
|
10
|
+
private _source;
|
|
11
|
+
private _target;
|
|
12
|
+
get dictionaryId(): string | undefined;
|
|
13
|
+
set dictionaryId(value: string | undefined);
|
|
14
|
+
get accountId(): number | undefined;
|
|
15
|
+
set accountId(value: number | undefined);
|
|
16
|
+
get createdBy(): string | undefined;
|
|
17
|
+
set createdBy(value: string | undefined);
|
|
18
|
+
get creationDate(): string | undefined;
|
|
19
|
+
set creationDate(value: string | undefined);
|
|
20
|
+
get lastModifiedBy(): string | undefined;
|
|
21
|
+
set lastModifiedBy(value: string | undefined);
|
|
22
|
+
get lastModifyDate(): string | undefined;
|
|
23
|
+
set lastModifyDate(value: string | undefined);
|
|
24
|
+
get name(): string | undefined;
|
|
25
|
+
set name(value: string | undefined);
|
|
26
|
+
get description(): string;
|
|
27
|
+
set description(value: string);
|
|
28
|
+
get source(): string | undefined;
|
|
29
|
+
set source(value: string | undefined);
|
|
30
|
+
get target(): string | undefined;
|
|
31
|
+
set target(value: string | undefined);
|
|
32
|
+
}
|