@emilgroup/translation-sdk 1.0.0 → 1.1.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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/translation-api.ts +58 -121
- package/dist/api/translation-api.d.ts +40 -84
- package/dist/api/translation-api.js +46 -75
- package/dist/models/get-product-language-response-class.d.ts +25 -0
- package/dist/models/get-product-language-response-class.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/get-product-language-response-class.ts +31 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
|
@@ -99,25 +99,21 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
/**
|
|
100
100
|
* This creates a product language.
|
|
101
101
|
* @summary Create the product language
|
|
102
|
-
* @param {string} productSlug
|
|
103
102
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
104
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
104
|
* @param {*} [options] Override http request option.
|
|
106
105
|
* @throws {RequiredError}
|
|
107
106
|
*/
|
|
108
|
-
createProductLanguage: function (
|
|
107
|
+
createProductLanguage: function (createProductLanguageRequestDto, authorization, options) {
|
|
109
108
|
if (options === void 0) { options = {}; }
|
|
110
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
111
|
return __generator(this, function (_a) {
|
|
113
112
|
switch (_a.label) {
|
|
114
113
|
case 0:
|
|
115
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
116
|
-
(0, common_1.assertParamExists)('createProductLanguage', 'productSlug', productSlug);
|
|
117
114
|
// verify required parameter 'createProductLanguageRequestDto' is not null or undefined
|
|
118
115
|
(0, common_1.assertParamExists)('createProductLanguage', 'createProductLanguageRequestDto', createProductLanguageRequestDto);
|
|
119
|
-
localVarPath = "/translationservice/v1/
|
|
120
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
116
|
+
localVarPath = "/translationservice/v1/languages";
|
|
121
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
118
|
if (configuration) {
|
|
123
119
|
baseOptions = configuration.baseOptions;
|
|
@@ -166,7 +162,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
166
162
|
case 0:
|
|
167
163
|
// verify required parameter 'id' is not null or undefined
|
|
168
164
|
(0, common_1.assertParamExists)('deleteProductLanguage', 'id', id);
|
|
169
|
-
localVarPath = "/translationservice/v1/
|
|
165
|
+
localVarPath = "/translationservice/v1/languages/{id}"
|
|
170
166
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
171
167
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
172
168
|
if (configuration) {
|
|
@@ -255,12 +251,11 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
255
251
|
* This gets a product language.
|
|
256
252
|
* @summary Retrieve the product language
|
|
257
253
|
* @param {number} id Id of the product language.
|
|
258
|
-
* @param {string} productSlug Product slug of the product.
|
|
259
254
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
260
255
|
* @param {*} [options] Override http request option.
|
|
261
256
|
* @throws {RequiredError}
|
|
262
257
|
*/
|
|
263
|
-
getProductLanguage: function (id,
|
|
258
|
+
getProductLanguage: function (id, authorization, options) {
|
|
264
259
|
if (options === void 0) { options = {}; }
|
|
265
260
|
return __awaiter(_this, void 0, void 0, function () {
|
|
266
261
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -269,11 +264,8 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
269
264
|
case 0:
|
|
270
265
|
// verify required parameter 'id' is not null or undefined
|
|
271
266
|
(0, common_1.assertParamExists)('getProductLanguage', 'id', id);
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
localVarPath = "/translationservice/v1/product/{productSlug}/language/{id}"
|
|
275
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
276
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
267
|
+
localVarPath = "/translationservice/v1/languages/{id}"
|
|
268
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
277
269
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
278
270
|
if (configuration) {
|
|
279
271
|
baseOptions = configuration.baseOptions;
|
|
@@ -306,28 +298,24 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
306
298
|
/**
|
|
307
299
|
* This lists the product languages.
|
|
308
300
|
* @summary List product languages
|
|
309
|
-
* @param {string} productSlug Product slug of the product.
|
|
310
301
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
311
|
-
* @param {
|
|
312
|
-
* @param {
|
|
313
|
-
* @param {
|
|
302
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
303
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
304
|
+
* @param {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
314
305
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
315
|
-
* @param {
|
|
316
|
-
* @param {
|
|
306
|
+
* @param {'0' | '1' | '2' | '3' | '4' | '5'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
307
|
+
* @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
317
308
|
* @param {*} [options] Override http request option.
|
|
318
309
|
* @throws {RequiredError}
|
|
319
310
|
*/
|
|
320
|
-
listProductLanguages: function (
|
|
311
|
+
listProductLanguages: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
321
312
|
if (options === void 0) { options = {}; }
|
|
322
313
|
return __awaiter(_this, void 0, void 0, function () {
|
|
323
314
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
324
315
|
return __generator(this, function (_a) {
|
|
325
316
|
switch (_a.label) {
|
|
326
317
|
case 0:
|
|
327
|
-
|
|
328
|
-
(0, common_1.assertParamExists)('listProductLanguages', 'productSlug', productSlug);
|
|
329
|
-
localVarPath = "/translationservice/v1/product/{productSlug}/language"
|
|
330
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
318
|
+
localVarPath = "/translationservice/v1/languages";
|
|
331
319
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
332
320
|
if (configuration) {
|
|
333
321
|
baseOptions = configuration.baseOptions;
|
|
@@ -446,29 +434,21 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
446
434
|
/**
|
|
447
435
|
* This updates the product language with the specified id.
|
|
448
436
|
* @summary Update the product language
|
|
449
|
-
* @param {number} id Id of the product language.
|
|
450
|
-
* @param {string} productSlug Product slug of the product.
|
|
451
437
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
452
438
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
439
|
* @param {*} [options] Override http request option.
|
|
454
440
|
* @throws {RequiredError}
|
|
455
441
|
*/
|
|
456
|
-
updateProductLanguage: function (
|
|
442
|
+
updateProductLanguage: function (updateProductLanguageRequestDto, authorization, options) {
|
|
457
443
|
if (options === void 0) { options = {}; }
|
|
458
444
|
return __awaiter(_this, void 0, void 0, function () {
|
|
459
445
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
460
446
|
return __generator(this, function (_a) {
|
|
461
447
|
switch (_a.label) {
|
|
462
448
|
case 0:
|
|
463
|
-
// verify required parameter 'id' is not null or undefined
|
|
464
|
-
(0, common_1.assertParamExists)('updateProductLanguage', 'id', id);
|
|
465
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
466
|
-
(0, common_1.assertParamExists)('updateProductLanguage', 'productSlug', productSlug);
|
|
467
449
|
// verify required parameter 'updateProductLanguageRequestDto' is not null or undefined
|
|
468
450
|
(0, common_1.assertParamExists)('updateProductLanguage', 'updateProductLanguageRequestDto', updateProductLanguageRequestDto);
|
|
469
|
-
localVarPath = "/translationservice/v1/
|
|
470
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
471
|
-
.replace("{".concat("product slug", "}"), encodeURIComponent(String(productSlug)));
|
|
451
|
+
localVarPath = "/translationservice/v1/languages";
|
|
472
452
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
473
453
|
if (configuration) {
|
|
474
454
|
baseOptions = configuration.baseOptions;
|
|
@@ -574,18 +554,17 @@ var TranslationApiFp = function (configuration) {
|
|
|
574
554
|
/**
|
|
575
555
|
* This creates a product language.
|
|
576
556
|
* @summary Create the product language
|
|
577
|
-
* @param {string} productSlug
|
|
578
557
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
579
558
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
580
559
|
* @param {*} [options] Override http request option.
|
|
581
560
|
* @throws {RequiredError}
|
|
582
561
|
*/
|
|
583
|
-
createProductLanguage: function (
|
|
562
|
+
createProductLanguage: function (createProductLanguageRequestDto, authorization, options) {
|
|
584
563
|
return __awaiter(this, void 0, void 0, function () {
|
|
585
564
|
var localVarAxiosArgs;
|
|
586
565
|
return __generator(this, function (_a) {
|
|
587
566
|
switch (_a.label) {
|
|
588
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductLanguage(
|
|
567
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductLanguage(createProductLanguageRequestDto, authorization, options)];
|
|
589
568
|
case 1:
|
|
590
569
|
localVarAxiosArgs = _a.sent();
|
|
591
570
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -640,17 +619,16 @@ var TranslationApiFp = function (configuration) {
|
|
|
640
619
|
* This gets a product language.
|
|
641
620
|
* @summary Retrieve the product language
|
|
642
621
|
* @param {number} id Id of the product language.
|
|
643
|
-
* @param {string} productSlug Product slug of the product.
|
|
644
622
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
645
623
|
* @param {*} [options] Override http request option.
|
|
646
624
|
* @throws {RequiredError}
|
|
647
625
|
*/
|
|
648
|
-
getProductLanguage: function (id,
|
|
626
|
+
getProductLanguage: function (id, authorization, options) {
|
|
649
627
|
return __awaiter(this, void 0, void 0, function () {
|
|
650
628
|
var localVarAxiosArgs;
|
|
651
629
|
return __generator(this, function (_a) {
|
|
652
630
|
switch (_a.label) {
|
|
653
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductLanguage(id,
|
|
631
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductLanguage(id, authorization, options)];
|
|
654
632
|
case 1:
|
|
655
633
|
localVarAxiosArgs = _a.sent();
|
|
656
634
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -661,23 +639,22 @@ var TranslationApiFp = function (configuration) {
|
|
|
661
639
|
/**
|
|
662
640
|
* This lists the product languages.
|
|
663
641
|
* @summary List product languages
|
|
664
|
-
* @param {string} productSlug Product slug of the product.
|
|
665
642
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
666
|
-
* @param {
|
|
667
|
-
* @param {
|
|
668
|
-
* @param {
|
|
643
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
644
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
645
|
+
* @param {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
669
646
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
670
|
-
* @param {
|
|
671
|
-
* @param {
|
|
647
|
+
* @param {'0' | '1' | '2' | '3' | '4' | '5'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
648
|
+
* @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
672
649
|
* @param {*} [options] Override http request option.
|
|
673
650
|
* @throws {RequiredError}
|
|
674
651
|
*/
|
|
675
|
-
listProductLanguages: function (
|
|
652
|
+
listProductLanguages: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
676
653
|
return __awaiter(this, void 0, void 0, function () {
|
|
677
654
|
var localVarAxiosArgs;
|
|
678
655
|
return __generator(this, function (_a) {
|
|
679
656
|
switch (_a.label) {
|
|
680
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductLanguages(
|
|
657
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
681
658
|
case 1:
|
|
682
659
|
localVarAxiosArgs = _a.sent();
|
|
683
660
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -714,19 +691,17 @@ var TranslationApiFp = function (configuration) {
|
|
|
714
691
|
/**
|
|
715
692
|
* This updates the product language with the specified id.
|
|
716
693
|
* @summary Update the product language
|
|
717
|
-
* @param {number} id Id of the product language.
|
|
718
|
-
* @param {string} productSlug Product slug of the product.
|
|
719
694
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
720
695
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
721
696
|
* @param {*} [options] Override http request option.
|
|
722
697
|
* @throws {RequiredError}
|
|
723
698
|
*/
|
|
724
|
-
updateProductLanguage: function (
|
|
699
|
+
updateProductLanguage: function (updateProductLanguageRequestDto, authorization, options) {
|
|
725
700
|
return __awaiter(this, void 0, void 0, function () {
|
|
726
701
|
var localVarAxiosArgs;
|
|
727
702
|
return __generator(this, function (_a) {
|
|
728
703
|
switch (_a.label) {
|
|
729
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductLanguage(
|
|
704
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductLanguage(updateProductLanguageRequestDto, authorization, options)];
|
|
730
705
|
case 1:
|
|
731
706
|
localVarAxiosArgs = _a.sent();
|
|
732
707
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -770,14 +745,13 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
770
745
|
/**
|
|
771
746
|
* This creates a product language.
|
|
772
747
|
* @summary Create the product language
|
|
773
|
-
* @param {string} productSlug
|
|
774
748
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
775
749
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
776
750
|
* @param {*} [options] Override http request option.
|
|
777
751
|
* @throws {RequiredError}
|
|
778
752
|
*/
|
|
779
|
-
createProductLanguage: function (
|
|
780
|
-
return localVarFp.createProductLanguage(
|
|
753
|
+
createProductLanguage: function (createProductLanguageRequestDto, authorization, options) {
|
|
754
|
+
return localVarFp.createProductLanguage(createProductLanguageRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
781
755
|
},
|
|
782
756
|
/**
|
|
783
757
|
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
@@ -806,30 +780,28 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
806
780
|
* This gets a product language.
|
|
807
781
|
* @summary Retrieve the product language
|
|
808
782
|
* @param {number} id Id of the product language.
|
|
809
|
-
* @param {string} productSlug Product slug of the product.
|
|
810
783
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
811
784
|
* @param {*} [options] Override http request option.
|
|
812
785
|
* @throws {RequiredError}
|
|
813
786
|
*/
|
|
814
|
-
getProductLanguage: function (id,
|
|
815
|
-
return localVarFp.getProductLanguage(id,
|
|
787
|
+
getProductLanguage: function (id, authorization, options) {
|
|
788
|
+
return localVarFp.getProductLanguage(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
816
789
|
},
|
|
817
790
|
/**
|
|
818
791
|
* This lists the product languages.
|
|
819
792
|
* @summary List product languages
|
|
820
|
-
* @param {string} productSlug Product slug of the product.
|
|
821
793
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
822
|
-
* @param {
|
|
823
|
-
* @param {
|
|
824
|
-
* @param {
|
|
794
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
795
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
796
|
+
* @param {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
825
797
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
826
|
-
* @param {
|
|
827
|
-
* @param {
|
|
798
|
+
* @param {'0' | '1' | '2' | '3' | '4' | '5'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
799
|
+
* @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
828
800
|
* @param {*} [options] Override http request option.
|
|
829
801
|
* @throws {RequiredError}
|
|
830
802
|
*/
|
|
831
|
-
listProductLanguages: function (
|
|
832
|
-
return localVarFp.listProductLanguages(
|
|
803
|
+
listProductLanguages: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
804
|
+
return localVarFp.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
833
805
|
},
|
|
834
806
|
/**
|
|
835
807
|
* Returns a list of translations you have previously created. The translations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -850,15 +822,13 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
850
822
|
/**
|
|
851
823
|
* This updates the product language with the specified id.
|
|
852
824
|
* @summary Update the product language
|
|
853
|
-
* @param {number} id Id of the product language.
|
|
854
|
-
* @param {string} productSlug Product slug of the product.
|
|
855
825
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
856
826
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
857
827
|
* @param {*} [options] Override http request option.
|
|
858
828
|
* @throws {RequiredError}
|
|
859
829
|
*/
|
|
860
|
-
updateProductLanguage: function (
|
|
861
|
-
return localVarFp.updateProductLanguage(
|
|
830
|
+
updateProductLanguage: function (updateProductLanguageRequestDto, authorization, options) {
|
|
831
|
+
return localVarFp.updateProductLanguage(updateProductLanguageRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
862
832
|
},
|
|
863
833
|
/**
|
|
864
834
|
* This uploads the translations for a given product.
|
|
@@ -897,7 +867,7 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
897
867
|
*/
|
|
898
868
|
TranslationApi.prototype.createProductLanguage = function (requestParameters, options) {
|
|
899
869
|
var _this = this;
|
|
900
|
-
return (0, exports.TranslationApiFp)(this.configuration).createProductLanguage(requestParameters.
|
|
870
|
+
return (0, exports.TranslationApiFp)(this.configuration).createProductLanguage(requestParameters.createProductLanguageRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
901
871
|
};
|
|
902
872
|
/**
|
|
903
873
|
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
@@ -933,7 +903,7 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
933
903
|
*/
|
|
934
904
|
TranslationApi.prototype.getProductLanguage = function (requestParameters, options) {
|
|
935
905
|
var _this = this;
|
|
936
|
-
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.
|
|
906
|
+
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
937
907
|
};
|
|
938
908
|
/**
|
|
939
909
|
* This lists the product languages.
|
|
@@ -945,7 +915,8 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
945
915
|
*/
|
|
946
916
|
TranslationApi.prototype.listProductLanguages = function (requestParameters, options) {
|
|
947
917
|
var _this = this;
|
|
948
|
-
|
|
918
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
919
|
+
return (0, exports.TranslationApiFp)(this.configuration).listProductLanguages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
949
920
|
};
|
|
950
921
|
/**
|
|
951
922
|
* Returns a list of translations you have previously created. The translations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -970,7 +941,7 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
970
941
|
*/
|
|
971
942
|
TranslationApi.prototype.updateProductLanguage = function (requestParameters, options) {
|
|
972
943
|
var _this = this;
|
|
973
|
-
return (0, exports.TranslationApiFp)(this.configuration).updateProductLanguage(requestParameters.
|
|
944
|
+
return (0, exports.TranslationApiFp)(this.configuration).updateProductLanguage(requestParameters.updateProductLanguageRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
974
945
|
};
|
|
975
946
|
/**
|
|
976
947
|
* This uploads the translations for a given product.
|
|
@@ -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 { ProductLanguageClass } from './product-language-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetProductLanguageResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetProductLanguageResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The requested product language.
|
|
21
|
+
* @type {ProductLanguageClass}
|
|
22
|
+
* @memberof GetProductLanguageResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'productLanguage': ProductLanguageClass;
|
|
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,5 +1,6 @@
|
|
|
1
1
|
export * from './create-product-language-request-dto';
|
|
2
2
|
export * from './create-product-language-response-class';
|
|
3
|
+
export * from './get-product-language-response-class';
|
|
3
4
|
export * from './list-product-languages-response-class';
|
|
4
5
|
export * from './list-translations-response-class';
|
|
5
6
|
export * from './product-language-class';
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
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
|
+
__exportStar(require("./get-product-language-response-class"), exports);
|
|
19
20
|
__exportStar(require("./list-product-languages-response-class"), exports);
|
|
20
21
|
__exportStar(require("./list-translations-response-class"), exports);
|
|
21
22
|
__exportStar(require("./product-language-class"), exports);
|
|
@@ -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 { ProductLanguageClass } from './product-language-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetProductLanguageResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetProductLanguageResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The requested product language.
|
|
26
|
+
* @type {ProductLanguageClass}
|
|
27
|
+
* @memberof GetProductLanguageResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'productLanguage': ProductLanguageClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './create-product-language-request-dto';
|
|
2
2
|
export * from './create-product-language-response-class';
|
|
3
|
+
export * from './get-product-language-response-class';
|
|
3
4
|
export * from './list-product-languages-response-class';
|
|
4
5
|
export * from './list-translations-response-class';
|
|
5
6
|
export * from './product-language-class';
|