@emilgroup/translation-sdk-node 1.8.1-beta.2 → 1.8.1-beta.4
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/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/api/translation-api.ts +237 -0
- package/dist/api/translation-api.d.ts +130 -0
- package/dist/api/translation-api.js +199 -0
- package/dist/models/get-product-translations-response-class.d.ts +25 -0
- package/dist/models/get-product-translations-response-class.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/new-translation-class.d.ts +36 -0
- package/dist/models/new-translation-class.js +15 -0
- package/dist/models/save-product-translations-request-dto.d.ts +53 -0
- package/dist/models/save-product-translations-request-dto.js +37 -0
- package/dist/models/translatable-field-class.d.ts +42 -0
- package/dist/models/translatable-field-class.js +15 -0
- package/models/get-product-translations-response-class.ts +31 -0
- package/models/index.ts +4 -0
- package/models/new-translation-class.ts +42 -0
- package/models/save-product-translations-request-dto.ts +62 -0
- package/models/translatable-field-class.ts +48 -0
- package/package.json +1 -1
|
@@ -295,6 +295,60 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
297
|
},
|
|
298
|
+
/**
|
|
299
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
300
|
+
* @summary Retrieve the product translations
|
|
301
|
+
* @param {string} productSlug
|
|
302
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
303
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
getProductTranslations: function (productSlug, language, authorization, options) {
|
|
308
|
+
if (options === void 0) { options = {}; }
|
|
309
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
310
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
311
|
+
return __generator(this, function (_a) {
|
|
312
|
+
switch (_a.label) {
|
|
313
|
+
case 0:
|
|
314
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
315
|
+
(0, common_1.assertParamExists)('getProductTranslations', 'productSlug', productSlug);
|
|
316
|
+
// verify required parameter 'language' is not null or undefined
|
|
317
|
+
(0, common_1.assertParamExists)('getProductTranslations', 'language', language);
|
|
318
|
+
localVarPath = "/translationservice/v1/product/{productSlug}/translations"
|
|
319
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
320
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
321
|
+
if (configuration) {
|
|
322
|
+
baseOptions = configuration.baseOptions;
|
|
323
|
+
baseAccessToken = configuration.accessToken;
|
|
324
|
+
}
|
|
325
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
326
|
+
localVarHeaderParameter = {};
|
|
327
|
+
localVarQueryParameter = {};
|
|
328
|
+
// authentication bearer required
|
|
329
|
+
// http bearer authentication required
|
|
330
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
331
|
+
case 1:
|
|
332
|
+
// authentication bearer required
|
|
333
|
+
// http bearer authentication required
|
|
334
|
+
_a.sent();
|
|
335
|
+
if (language !== undefined) {
|
|
336
|
+
localVarQueryParameter['language'] = language;
|
|
337
|
+
}
|
|
338
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
339
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
340
|
+
}
|
|
341
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
342
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
343
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
344
|
+
return [2 /*return*/, {
|
|
345
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
346
|
+
options: localVarRequestOptions,
|
|
347
|
+
}];
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
},
|
|
298
352
|
/**
|
|
299
353
|
* Returns a list of product languages you have previously created. The product languages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
300
354
|
* @summary List product languages
|
|
@@ -439,6 +493,59 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
439
493
|
});
|
|
440
494
|
});
|
|
441
495
|
},
|
|
496
|
+
/**
|
|
497
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
498
|
+
* @summary Create the product translations
|
|
499
|
+
* @param {string} productSlug
|
|
500
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
501
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
*/
|
|
505
|
+
saveProductTranslations: function (productSlug, saveProductTranslationsRequestDto, authorization, options) {
|
|
506
|
+
if (options === void 0) { options = {}; }
|
|
507
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
508
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
509
|
+
return __generator(this, function (_a) {
|
|
510
|
+
switch (_a.label) {
|
|
511
|
+
case 0:
|
|
512
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
513
|
+
(0, common_1.assertParamExists)('saveProductTranslations', 'productSlug', productSlug);
|
|
514
|
+
// verify required parameter 'saveProductTranslationsRequestDto' is not null or undefined
|
|
515
|
+
(0, common_1.assertParamExists)('saveProductTranslations', 'saveProductTranslationsRequestDto', saveProductTranslationsRequestDto);
|
|
516
|
+
localVarPath = "/translationservice/v1/product/{productSlug}/translations"
|
|
517
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
518
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
519
|
+
if (configuration) {
|
|
520
|
+
baseOptions = configuration.baseOptions;
|
|
521
|
+
baseAccessToken = configuration.accessToken;
|
|
522
|
+
}
|
|
523
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
524
|
+
localVarHeaderParameter = {};
|
|
525
|
+
localVarQueryParameter = {};
|
|
526
|
+
// authentication bearer required
|
|
527
|
+
// http bearer authentication required
|
|
528
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
529
|
+
case 1:
|
|
530
|
+
// authentication bearer required
|
|
531
|
+
// http bearer authentication required
|
|
532
|
+
_a.sent();
|
|
533
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
534
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
535
|
+
}
|
|
536
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
537
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
538
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
539
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
540
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveProductTranslationsRequestDto, localVarRequestOptions, configuration);
|
|
541
|
+
return [2 /*return*/, {
|
|
542
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
543
|
+
options: localVarRequestOptions,
|
|
544
|
+
}];
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
});
|
|
548
|
+
},
|
|
442
549
|
/**
|
|
443
550
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
444
551
|
* @summary Update the product language
|
|
@@ -644,6 +751,28 @@ var TranslationApiFp = function (configuration) {
|
|
|
644
751
|
});
|
|
645
752
|
});
|
|
646
753
|
},
|
|
754
|
+
/**
|
|
755
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
756
|
+
* @summary Retrieve the product translations
|
|
757
|
+
* @param {string} productSlug
|
|
758
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
759
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
760
|
+
* @param {*} [options] Override http request option.
|
|
761
|
+
* @throws {RequiredError}
|
|
762
|
+
*/
|
|
763
|
+
getProductTranslations: function (productSlug, language, authorization, options) {
|
|
764
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
765
|
+
var localVarAxiosArgs;
|
|
766
|
+
return __generator(this, function (_a) {
|
|
767
|
+
switch (_a.label) {
|
|
768
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductTranslations(productSlug, language, authorization, options)];
|
|
769
|
+
case 1:
|
|
770
|
+
localVarAxiosArgs = _a.sent();
|
|
771
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
});
|
|
775
|
+
},
|
|
647
776
|
/**
|
|
648
777
|
* Returns a list of product languages you have previously created. The product languages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
649
778
|
* @summary List product languages
|
|
@@ -698,6 +827,28 @@ var TranslationApiFp = function (configuration) {
|
|
|
698
827
|
});
|
|
699
828
|
});
|
|
700
829
|
},
|
|
830
|
+
/**
|
|
831
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
832
|
+
* @summary Create the product translations
|
|
833
|
+
* @param {string} productSlug
|
|
834
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
835
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
836
|
+
* @param {*} [options] Override http request option.
|
|
837
|
+
* @throws {RequiredError}
|
|
838
|
+
*/
|
|
839
|
+
saveProductTranslations: function (productSlug, saveProductTranslationsRequestDto, authorization, options) {
|
|
840
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
841
|
+
var localVarAxiosArgs;
|
|
842
|
+
return __generator(this, function (_a) {
|
|
843
|
+
switch (_a.label) {
|
|
844
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.saveProductTranslations(productSlug, saveProductTranslationsRequestDto, authorization, options)];
|
|
845
|
+
case 1:
|
|
846
|
+
localVarAxiosArgs = _a.sent();
|
|
847
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
});
|
|
851
|
+
},
|
|
701
852
|
/**
|
|
702
853
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
703
854
|
* @summary Update the product language
|
|
@@ -797,6 +948,18 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
797
948
|
getProductLanguage: function (id, authorization, options) {
|
|
798
949
|
return localVarFp.getProductLanguage(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
799
950
|
},
|
|
951
|
+
/**
|
|
952
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
953
|
+
* @summary Retrieve the product translations
|
|
954
|
+
* @param {string} productSlug
|
|
955
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
956
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
*/
|
|
960
|
+
getProductTranslations: function (productSlug, language, authorization, options) {
|
|
961
|
+
return localVarFp.getProductTranslations(productSlug, language, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
962
|
+
},
|
|
800
963
|
/**
|
|
801
964
|
* Returns a list of product languages you have previously created. The product languages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
802
965
|
* @summary List product languages
|
|
@@ -831,6 +994,18 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
831
994
|
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
832
995
|
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
833
996
|
},
|
|
997
|
+
/**
|
|
998
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
999
|
+
* @summary Create the product translations
|
|
1000
|
+
* @param {string} productSlug
|
|
1001
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
1002
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
*/
|
|
1006
|
+
saveProductTranslations: function (productSlug, saveProductTranslationsRequestDto, authorization, options) {
|
|
1007
|
+
return localVarFp.saveProductTranslations(productSlug, saveProductTranslationsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1008
|
+
},
|
|
834
1009
|
/**
|
|
835
1010
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
836
1011
|
* @summary Update the product language
|
|
@@ -917,6 +1092,18 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
917
1092
|
var _this = this;
|
|
918
1093
|
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
919
1094
|
};
|
|
1095
|
+
/**
|
|
1096
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
1097
|
+
* @summary Retrieve the product translations
|
|
1098
|
+
* @param {TranslationApiGetProductTranslationsRequest} requestParameters Request parameters.
|
|
1099
|
+
* @param {*} [options] Override http request option.
|
|
1100
|
+
* @throws {RequiredError}
|
|
1101
|
+
* @memberof TranslationApi
|
|
1102
|
+
*/
|
|
1103
|
+
TranslationApi.prototype.getProductTranslations = function (requestParameters, options) {
|
|
1104
|
+
var _this = this;
|
|
1105
|
+
return (0, exports.TranslationApiFp)(this.configuration).getProductTranslations(requestParameters.productSlug, requestParameters.language, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1106
|
+
};
|
|
920
1107
|
/**
|
|
921
1108
|
* Returns a list of product languages you have previously created. The product languages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
922
1109
|
* @summary List product languages
|
|
@@ -943,6 +1130,18 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
943
1130
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
944
1131
|
return (0, exports.TranslationApiFp)(this.configuration).listTranslations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
945
1132
|
};
|
|
1133
|
+
/**
|
|
1134
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
1135
|
+
* @summary Create the product translations
|
|
1136
|
+
* @param {TranslationApiSaveProductTranslationsRequest} requestParameters Request parameters.
|
|
1137
|
+
* @param {*} [options] Override http request option.
|
|
1138
|
+
* @throws {RequiredError}
|
|
1139
|
+
* @memberof TranslationApi
|
|
1140
|
+
*/
|
|
1141
|
+
TranslationApi.prototype.saveProductTranslations = function (requestParameters, options) {
|
|
1142
|
+
var _this = this;
|
|
1143
|
+
return (0, exports.TranslationApiFp)(this.configuration).saveProductTranslations(requestParameters.productSlug, requestParameters.saveProductTranslationsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1144
|
+
};
|
|
946
1145
|
/**
|
|
947
1146
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
948
1147
|
* @summary Update the product language
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL TranslationService
|
|
3
|
+
* The EMIL TranslationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { TranslatableFieldClass } from './translatable-field-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetProductTranslationsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetProductTranslationsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The list of translatableFields.
|
|
21
|
+
* @type {Array<TranslatableFieldClass>}
|
|
22
|
+
* @memberof GetProductTranslationsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'translations': Array<TranslatableFieldClass>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL TranslationService
|
|
6
|
+
* The EMIL TranslationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export * from './create-product-language-request-dto';
|
|
2
2
|
export * from './create-product-language-response-class';
|
|
3
3
|
export * from './get-product-language-response-class';
|
|
4
|
+
export * from './get-product-translations-response-class';
|
|
4
5
|
export * from './inline-response200';
|
|
5
6
|
export * from './inline-response503';
|
|
6
7
|
export * from './list-product-languages-response-class';
|
|
7
8
|
export * from './list-translations-response-class';
|
|
9
|
+
export * from './new-translation-class';
|
|
8
10
|
export * from './product-language-class';
|
|
11
|
+
export * from './save-product-translations-request-dto';
|
|
12
|
+
export * from './translatable-field-class';
|
|
9
13
|
export * from './translation-class';
|
|
10
14
|
export * from './update-product-language-request-dto';
|
|
11
15
|
export * from './update-product-language-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -17,11 +17,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./create-product-language-request-dto"), exports);
|
|
18
18
|
__exportStar(require("./create-product-language-response-class"), exports);
|
|
19
19
|
__exportStar(require("./get-product-language-response-class"), exports);
|
|
20
|
+
__exportStar(require("./get-product-translations-response-class"), exports);
|
|
20
21
|
__exportStar(require("./inline-response200"), exports);
|
|
21
22
|
__exportStar(require("./inline-response503"), exports);
|
|
22
23
|
__exportStar(require("./list-product-languages-response-class"), exports);
|
|
23
24
|
__exportStar(require("./list-translations-response-class"), exports);
|
|
25
|
+
__exportStar(require("./new-translation-class"), exports);
|
|
24
26
|
__exportStar(require("./product-language-class"), exports);
|
|
27
|
+
__exportStar(require("./save-product-translations-request-dto"), exports);
|
|
28
|
+
__exportStar(require("./translatable-field-class"), exports);
|
|
25
29
|
__exportStar(require("./translation-class"), exports);
|
|
26
30
|
__exportStar(require("./update-product-language-request-dto"), exports);
|
|
27
31
|
__exportStar(require("./update-product-language-response-class"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL TranslationService
|
|
3
|
+
* The EMIL TranslationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NewTranslationClass
|
|
16
|
+
*/
|
|
17
|
+
export interface NewTranslationClass {
|
|
18
|
+
/**
|
|
19
|
+
* Identifier of the translated field
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NewTranslationClass
|
|
22
|
+
*/
|
|
23
|
+
'key': string;
|
|
24
|
+
/**
|
|
25
|
+
* Language of the translation
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NewTranslationClass
|
|
28
|
+
*/
|
|
29
|
+
'language': string;
|
|
30
|
+
/**
|
|
31
|
+
* Translated value
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof NewTranslationClass
|
|
34
|
+
*/
|
|
35
|
+
'value': string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL TranslationService
|
|
6
|
+
* The EMIL TranslationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL TranslationService
|
|
3
|
+
* The EMIL TranslationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { NewTranslationClass } from './new-translation-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SaveProductTranslationsRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface SaveProductTranslationsRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
* Language of the product\'s translations
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SaveProductTranslationsRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'language': SaveProductTranslationsRequestDtoLanguageEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Translations to create or update, keyed by translation key
|
|
27
|
+
* @type {Array<NewTranslationClass>}
|
|
28
|
+
* @memberof SaveProductTranslationsRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'translations': Array<NewTranslationClass>;
|
|
31
|
+
}
|
|
32
|
+
export declare const SaveProductTranslationsRequestDtoLanguageEnum: {
|
|
33
|
+
readonly German: "German";
|
|
34
|
+
readonly English: "English";
|
|
35
|
+
readonly Polish: "Polish";
|
|
36
|
+
readonly French: "French";
|
|
37
|
+
readonly Italian: "Italian";
|
|
38
|
+
readonly Spanish: "Spanish";
|
|
39
|
+
readonly Portuguese: "Portuguese";
|
|
40
|
+
readonly Russian: "Russian";
|
|
41
|
+
readonly Japanese: "Japanese";
|
|
42
|
+
readonly Chinese: "Chinese";
|
|
43
|
+
readonly Korean: "Korean";
|
|
44
|
+
readonly Turkish: "Turkish";
|
|
45
|
+
readonly Arabic: "Arabic";
|
|
46
|
+
readonly Hindi: "Hindi";
|
|
47
|
+
readonly Indonesian: "Indonesian";
|
|
48
|
+
readonly Thai: "Thai";
|
|
49
|
+
readonly Vietnamese: "Vietnamese";
|
|
50
|
+
readonly Persian: "Persian";
|
|
51
|
+
readonly Romanian: "Romanian";
|
|
52
|
+
};
|
|
53
|
+
export type SaveProductTranslationsRequestDtoLanguageEnum = typeof SaveProductTranslationsRequestDtoLanguageEnum[keyof typeof SaveProductTranslationsRequestDtoLanguageEnum];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL TranslationService
|
|
6
|
+
* The EMIL TranslationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SaveProductTranslationsRequestDtoLanguageEnum = void 0;
|
|
17
|
+
exports.SaveProductTranslationsRequestDtoLanguageEnum = {
|
|
18
|
+
German: 'German',
|
|
19
|
+
English: 'English',
|
|
20
|
+
Polish: 'Polish',
|
|
21
|
+
French: 'French',
|
|
22
|
+
Italian: 'Italian',
|
|
23
|
+
Spanish: 'Spanish',
|
|
24
|
+
Portuguese: 'Portuguese',
|
|
25
|
+
Russian: 'Russian',
|
|
26
|
+
Japanese: 'Japanese',
|
|
27
|
+
Chinese: 'Chinese',
|
|
28
|
+
Korean: 'Korean',
|
|
29
|
+
Turkish: 'Turkish',
|
|
30
|
+
Arabic: 'Arabic',
|
|
31
|
+
Hindi: 'Hindi',
|
|
32
|
+
Indonesian: 'Indonesian',
|
|
33
|
+
Thai: 'Thai',
|
|
34
|
+
Vietnamese: 'Vietnamese',
|
|
35
|
+
Persian: 'Persian',
|
|
36
|
+
Romanian: 'Romanian'
|
|
37
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL TranslationService
|
|
3
|
+
* The EMIL TranslationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TranslatableFieldClass
|
|
16
|
+
*/
|
|
17
|
+
export interface TranslatableFieldClass {
|
|
18
|
+
/**
|
|
19
|
+
* Identifier of the translatable field
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TranslatableFieldClass
|
|
22
|
+
*/
|
|
23
|
+
'key': string;
|
|
24
|
+
/**
|
|
25
|
+
* Value in the product\'s default language
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TranslatableFieldClass
|
|
28
|
+
*/
|
|
29
|
+
'value': string;
|
|
30
|
+
/**
|
|
31
|
+
* Language the field is being translated into
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TranslatableFieldClass
|
|
34
|
+
*/
|
|
35
|
+
'language': string;
|
|
36
|
+
/**
|
|
37
|
+
* Existing translation, or an empty string when the field is not translated yet
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TranslatableFieldClass
|
|
40
|
+
*/
|
|
41
|
+
'translatedValue': string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL TranslationService
|
|
6
|
+
* The EMIL TranslationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TranslationService
|
|
5
|
+
* The EMIL TranslationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { TranslatableFieldClass } from './translatable-field-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetProductTranslationsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetProductTranslationsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The list of translatableFields.
|
|
26
|
+
* @type {Array<TranslatableFieldClass>}
|
|
27
|
+
* @memberof GetProductTranslationsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'translations': Array<TranslatableFieldClass>;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export * from './create-product-language-request-dto';
|
|
2
2
|
export * from './create-product-language-response-class';
|
|
3
3
|
export * from './get-product-language-response-class';
|
|
4
|
+
export * from './get-product-translations-response-class';
|
|
4
5
|
export * from './inline-response200';
|
|
5
6
|
export * from './inline-response503';
|
|
6
7
|
export * from './list-product-languages-response-class';
|
|
7
8
|
export * from './list-translations-response-class';
|
|
9
|
+
export * from './new-translation-class';
|
|
8
10
|
export * from './product-language-class';
|
|
11
|
+
export * from './save-product-translations-request-dto';
|
|
12
|
+
export * from './translatable-field-class';
|
|
9
13
|
export * from './translation-class';
|
|
10
14
|
export * from './update-product-language-request-dto';
|
|
11
15
|
export * from './update-product-language-response-class';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TranslationService
|
|
5
|
+
* The EMIL TranslationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface NewTranslationClass
|
|
21
|
+
*/
|
|
22
|
+
export interface NewTranslationClass {
|
|
23
|
+
/**
|
|
24
|
+
* Identifier of the translated field
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof NewTranslationClass
|
|
27
|
+
*/
|
|
28
|
+
'key': string;
|
|
29
|
+
/**
|
|
30
|
+
* Language of the translation
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof NewTranslationClass
|
|
33
|
+
*/
|
|
34
|
+
'language': string;
|
|
35
|
+
/**
|
|
36
|
+
* Translated value
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof NewTranslationClass
|
|
39
|
+
*/
|
|
40
|
+
'value': string;
|
|
41
|
+
}
|
|
42
|
+
|