@emilgroup/translation-sdk-node 1.0.0 → 1.21.1-beta.105
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 +20 -4
- package/api/default-api.ts +128 -0
- package/api/translation-api.ts +170 -204
- package/api.ts +2 -0
- package/base.ts +50 -6
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/default-api.d.ts +70 -0
- package/dist/api/default-api.js +204 -0
- package/dist/api/translation-api.d.ts +139 -165
- package/dist/api/translation-api.js +117 -134
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +15 -4
- package/dist/base.js +45 -4
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/dist/models/create-product-language-request-dto.d.ts +1 -1
- 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 +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/product-language-class.d.ts +4 -4
- package/models/create-product-language-request-dto.ts +1 -1
- package/models/get-product-language-response-class.ts +31 -0
- package/models/index.ts +3 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/product-language-class.ts +4 -4
- package/package.json +2 -2
- package/tsconfig.json +1 -0
|
@@ -97,27 +97,23 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This creates a product language.
|
|
100
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
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;
|
|
@@ -150,7 +146,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
150
146
|
});
|
|
151
147
|
},
|
|
152
148
|
/**
|
|
153
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
149
|
+
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it. **Required Permissions** \"translation-management.translations.delete\"
|
|
154
150
|
* @summary Delete the product language
|
|
155
151
|
* @param {number} id Id of the product language.
|
|
156
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -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) {
|
|
@@ -198,7 +194,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
198
194
|
});
|
|
199
195
|
},
|
|
200
196
|
/**
|
|
201
|
-
* This downloads the list of translatable fields for a given product.
|
|
197
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
202
198
|
* @summary Retrieve the product translations
|
|
203
199
|
* @param {string} productSlug
|
|
204
200
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -252,15 +248,14 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
252
248
|
});
|
|
253
249
|
},
|
|
254
250
|
/**
|
|
255
|
-
* This gets a product language.
|
|
251
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
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;
|
|
@@ -304,30 +296,27 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
304
296
|
});
|
|
305
297
|
},
|
|
306
298
|
/**
|
|
307
|
-
*
|
|
299
|
+
* 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\"
|
|
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 {
|
|
314
|
-
* @param {
|
|
315
|
-
* @param {
|
|
316
|
-
* @param {
|
|
302
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. 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 {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, productSlug, language, isActive, translationStatus, createdAt, updateAt</i>
|
|
305
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, language</i>
|
|
306
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, language, isActive, translationStatus, createdAt, updatedAt</i>
|
|
307
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
308
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, productSlug, language, isActive, translationStatus, createdAt, updateAt</i>
|
|
317
309
|
* @param {*} [options] Override http request option.
|
|
318
310
|
* @throws {RequiredError}
|
|
319
311
|
*/
|
|
320
|
-
listProductLanguages: function (
|
|
312
|
+
listProductLanguages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
321
313
|
if (options === void 0) { options = {}; }
|
|
322
314
|
return __awaiter(_this, void 0, void 0, function () {
|
|
323
315
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
324
316
|
return __generator(this, function (_a) {
|
|
325
317
|
switch (_a.label) {
|
|
326
318
|
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)));
|
|
319
|
+
localVarPath = "/translationservice/v1/languages";
|
|
331
320
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
332
321
|
if (configuration) {
|
|
333
322
|
baseOptions = configuration.baseOptions;
|
|
@@ -361,6 +350,9 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
361
350
|
if (expand !== undefined) {
|
|
362
351
|
localVarQueryParameter['expand'] = expand;
|
|
363
352
|
}
|
|
353
|
+
if (filters !== undefined) {
|
|
354
|
+
localVarQueryParameter['filters'] = filters;
|
|
355
|
+
}
|
|
364
356
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
365
357
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
366
358
|
}
|
|
@@ -376,19 +368,20 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
376
368
|
});
|
|
377
369
|
},
|
|
378
370
|
/**
|
|
379
|
-
* Returns a list of translations you have previously created.
|
|
371
|
+
* 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. **Required Permissions** \"translation-management.translations.view\"
|
|
380
372
|
* @summary List translations
|
|
381
373
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
382
|
-
* @param {
|
|
383
|
-
* @param {
|
|
384
|
-
* @param {
|
|
385
|
-
* @param {
|
|
386
|
-
* @param {
|
|
387
|
-
* @param {
|
|
374
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
375
|
+
* @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.
|
|
376
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
377
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
378
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, key</i>
|
|
379
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
380
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
388
381
|
* @param {*} [options] Override http request option.
|
|
389
382
|
* @throws {RequiredError}
|
|
390
383
|
*/
|
|
391
|
-
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
384
|
+
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
392
385
|
if (options === void 0) { options = {}; }
|
|
393
386
|
return __awaiter(_this, void 0, void 0, function () {
|
|
394
387
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -429,6 +422,9 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
429
422
|
if (expand !== undefined) {
|
|
430
423
|
localVarQueryParameter['expand'] = expand;
|
|
431
424
|
}
|
|
425
|
+
if (filters !== undefined) {
|
|
426
|
+
localVarQueryParameter['filters'] = filters;
|
|
427
|
+
}
|
|
432
428
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
433
429
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
434
430
|
}
|
|
@@ -444,31 +440,23 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
444
440
|
});
|
|
445
441
|
},
|
|
446
442
|
/**
|
|
447
|
-
* This updates the product language with the specified id.
|
|
443
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
448
444
|
* @summary Update the product language
|
|
449
|
-
* @param {number} id Id of the product language.
|
|
450
|
-
* @param {string} productSlug Product slug of the product.
|
|
451
445
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
452
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
447
|
* @param {*} [options] Override http request option.
|
|
454
448
|
* @throws {RequiredError}
|
|
455
449
|
*/
|
|
456
|
-
updateProductLanguage: function (
|
|
450
|
+
updateProductLanguage: function (updateProductLanguageRequestDto, authorization, options) {
|
|
457
451
|
if (options === void 0) { options = {}; }
|
|
458
452
|
return __awaiter(_this, void 0, void 0, function () {
|
|
459
453
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
460
454
|
return __generator(this, function (_a) {
|
|
461
455
|
switch (_a.label) {
|
|
462
456
|
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
457
|
// verify required parameter 'updateProductLanguageRequestDto' is not null or undefined
|
|
468
458
|
(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)));
|
|
459
|
+
localVarPath = "/translationservice/v1/languages";
|
|
472
460
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
473
461
|
if (configuration) {
|
|
474
462
|
baseOptions = configuration.baseOptions;
|
|
@@ -501,7 +489,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
501
489
|
});
|
|
502
490
|
},
|
|
503
491
|
/**
|
|
504
|
-
* This uploads the translations for a given product.
|
|
492
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
505
493
|
* @summary Create the product translations
|
|
506
494
|
* @param {string} productSlug
|
|
507
495
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -572,20 +560,19 @@ var TranslationApiFp = function (configuration) {
|
|
|
572
560
|
var localVarAxiosParamCreator = (0, exports.TranslationApiAxiosParamCreator)(configuration);
|
|
573
561
|
return {
|
|
574
562
|
/**
|
|
575
|
-
* This creates a product language.
|
|
563
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
576
564
|
* @summary Create the product language
|
|
577
|
-
* @param {string} productSlug
|
|
578
565
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
579
566
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
580
567
|
* @param {*} [options] Override http request option.
|
|
581
568
|
* @throws {RequiredError}
|
|
582
569
|
*/
|
|
583
|
-
createProductLanguage: function (
|
|
570
|
+
createProductLanguage: function (createProductLanguageRequestDto, authorization, options) {
|
|
584
571
|
return __awaiter(this, void 0, void 0, function () {
|
|
585
572
|
var localVarAxiosArgs;
|
|
586
573
|
return __generator(this, function (_a) {
|
|
587
574
|
switch (_a.label) {
|
|
588
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductLanguage(
|
|
575
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductLanguage(createProductLanguageRequestDto, authorization, options)];
|
|
589
576
|
case 1:
|
|
590
577
|
localVarAxiosArgs = _a.sent();
|
|
591
578
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -594,7 +581,7 @@ var TranslationApiFp = function (configuration) {
|
|
|
594
581
|
});
|
|
595
582
|
},
|
|
596
583
|
/**
|
|
597
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
584
|
+
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it. **Required Permissions** \"translation-management.translations.delete\"
|
|
598
585
|
* @summary Delete the product language
|
|
599
586
|
* @param {number} id Id of the product language.
|
|
600
587
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -615,7 +602,7 @@ var TranslationApiFp = function (configuration) {
|
|
|
615
602
|
});
|
|
616
603
|
},
|
|
617
604
|
/**
|
|
618
|
-
* This downloads the list of translatable fields for a given product.
|
|
605
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
619
606
|
* @summary Retrieve the product translations
|
|
620
607
|
* @param {string} productSlug
|
|
621
608
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -637,20 +624,19 @@ var TranslationApiFp = function (configuration) {
|
|
|
637
624
|
});
|
|
638
625
|
},
|
|
639
626
|
/**
|
|
640
|
-
* This gets a product language.
|
|
627
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
641
628
|
* @summary Retrieve the product language
|
|
642
629
|
* @param {number} id Id of the product language.
|
|
643
|
-
* @param {string} productSlug Product slug of the product.
|
|
644
630
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
645
631
|
* @param {*} [options] Override http request option.
|
|
646
632
|
* @throws {RequiredError}
|
|
647
633
|
*/
|
|
648
|
-
getProductLanguage: function (id,
|
|
634
|
+
getProductLanguage: function (id, authorization, options) {
|
|
649
635
|
return __awaiter(this, void 0, void 0, function () {
|
|
650
636
|
var localVarAxiosArgs;
|
|
651
637
|
return __generator(this, function (_a) {
|
|
652
638
|
switch (_a.label) {
|
|
653
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductLanguage(id,
|
|
639
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductLanguage(id, authorization, options)];
|
|
654
640
|
case 1:
|
|
655
641
|
localVarAxiosArgs = _a.sent();
|
|
656
642
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -659,25 +645,25 @@ var TranslationApiFp = function (configuration) {
|
|
|
659
645
|
});
|
|
660
646
|
},
|
|
661
647
|
/**
|
|
662
|
-
*
|
|
648
|
+
* 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\"
|
|
663
649
|
* @summary List product languages
|
|
664
|
-
* @param {string} productSlug Product slug of the product.
|
|
665
650
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
666
|
-
* @param {
|
|
667
|
-
* @param {
|
|
668
|
-
* @param {
|
|
669
|
-
* @param {
|
|
670
|
-
* @param {
|
|
671
|
-
* @param {
|
|
651
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
652
|
+
* @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.
|
|
653
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, productSlug, language, isActive, translationStatus, createdAt, updateAt</i>
|
|
654
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, language</i>
|
|
655
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, language, isActive, translationStatus, createdAt, updatedAt</i>
|
|
656
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
657
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, productSlug, language, isActive, translationStatus, createdAt, updateAt</i>
|
|
672
658
|
* @param {*} [options] Override http request option.
|
|
673
659
|
* @throws {RequiredError}
|
|
674
660
|
*/
|
|
675
|
-
listProductLanguages: function (
|
|
661
|
+
listProductLanguages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
676
662
|
return __awaiter(this, void 0, void 0, function () {
|
|
677
663
|
var localVarAxiosArgs;
|
|
678
664
|
return __generator(this, function (_a) {
|
|
679
665
|
switch (_a.label) {
|
|
680
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductLanguages(
|
|
666
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
681
667
|
case 1:
|
|
682
668
|
localVarAxiosArgs = _a.sent();
|
|
683
669
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -686,24 +672,25 @@ var TranslationApiFp = function (configuration) {
|
|
|
686
672
|
});
|
|
687
673
|
},
|
|
688
674
|
/**
|
|
689
|
-
* Returns a list of translations you have previously created.
|
|
675
|
+
* 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. **Required Permissions** \"translation-management.translations.view\"
|
|
690
676
|
* @summary List translations
|
|
691
677
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
692
|
-
* @param {
|
|
693
|
-
* @param {
|
|
694
|
-
* @param {
|
|
695
|
-
* @param {
|
|
696
|
-
* @param {
|
|
697
|
-
* @param {
|
|
678
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
679
|
+
* @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.
|
|
680
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
681
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
682
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, key</i>
|
|
683
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
684
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
698
685
|
* @param {*} [options] Override http request option.
|
|
699
686
|
* @throws {RequiredError}
|
|
700
687
|
*/
|
|
701
|
-
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
688
|
+
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
702
689
|
return __awaiter(this, void 0, void 0, function () {
|
|
703
690
|
var localVarAxiosArgs;
|
|
704
691
|
return __generator(this, function (_a) {
|
|
705
692
|
switch (_a.label) {
|
|
706
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
693
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
707
694
|
case 1:
|
|
708
695
|
localVarAxiosArgs = _a.sent();
|
|
709
696
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -712,21 +699,19 @@ var TranslationApiFp = function (configuration) {
|
|
|
712
699
|
});
|
|
713
700
|
},
|
|
714
701
|
/**
|
|
715
|
-
* This updates the product language with the specified id.
|
|
702
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
716
703
|
* @summary Update the product language
|
|
717
|
-
* @param {number} id Id of the product language.
|
|
718
|
-
* @param {string} productSlug Product slug of the product.
|
|
719
704
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
720
705
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
721
706
|
* @param {*} [options] Override http request option.
|
|
722
707
|
* @throws {RequiredError}
|
|
723
708
|
*/
|
|
724
|
-
updateProductLanguage: function (
|
|
709
|
+
updateProductLanguage: function (updateProductLanguageRequestDto, authorization, options) {
|
|
725
710
|
return __awaiter(this, void 0, void 0, function () {
|
|
726
711
|
var localVarAxiosArgs;
|
|
727
712
|
return __generator(this, function (_a) {
|
|
728
713
|
switch (_a.label) {
|
|
729
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductLanguage(
|
|
714
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductLanguage(updateProductLanguageRequestDto, authorization, options)];
|
|
730
715
|
case 1:
|
|
731
716
|
localVarAxiosArgs = _a.sent();
|
|
732
717
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -735,7 +720,7 @@ var TranslationApiFp = function (configuration) {
|
|
|
735
720
|
});
|
|
736
721
|
},
|
|
737
722
|
/**
|
|
738
|
-
* This uploads the translations for a given product.
|
|
723
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
739
724
|
* @summary Create the product translations
|
|
740
725
|
* @param {string} productSlug
|
|
741
726
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -768,19 +753,18 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
768
753
|
var localVarFp = (0, exports.TranslationApiFp)(configuration);
|
|
769
754
|
return {
|
|
770
755
|
/**
|
|
771
|
-
* This creates a product language.
|
|
756
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
772
757
|
* @summary Create the product language
|
|
773
|
-
* @param {string} productSlug
|
|
774
758
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
775
759
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
776
760
|
* @param {*} [options] Override http request option.
|
|
777
761
|
* @throws {RequiredError}
|
|
778
762
|
*/
|
|
779
|
-
createProductLanguage: function (
|
|
780
|
-
return localVarFp.createProductLanguage(
|
|
763
|
+
createProductLanguage: function (createProductLanguageRequestDto, authorization, options) {
|
|
764
|
+
return localVarFp.createProductLanguage(createProductLanguageRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
781
765
|
},
|
|
782
766
|
/**
|
|
783
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
767
|
+
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it. **Required Permissions** \"translation-management.translations.delete\"
|
|
784
768
|
* @summary Delete the product language
|
|
785
769
|
* @param {number} id Id of the product language.
|
|
786
770
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -791,7 +775,7 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
791
775
|
return localVarFp.deleteProductLanguage(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
792
776
|
},
|
|
793
777
|
/**
|
|
794
|
-
* This downloads the list of translatable fields for a given product.
|
|
778
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
795
779
|
* @summary Retrieve the product translations
|
|
796
780
|
* @param {string} productSlug
|
|
797
781
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -803,65 +787,63 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
803
787
|
return localVarFp.downloadProductTranslations(productSlug, language, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
804
788
|
},
|
|
805
789
|
/**
|
|
806
|
-
* This gets a product language.
|
|
790
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
807
791
|
* @summary Retrieve the product language
|
|
808
792
|
* @param {number} id Id of the product language.
|
|
809
|
-
* @param {string} productSlug Product slug of the product.
|
|
810
793
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
811
794
|
* @param {*} [options] Override http request option.
|
|
812
795
|
* @throws {RequiredError}
|
|
813
796
|
*/
|
|
814
|
-
getProductLanguage: function (id,
|
|
815
|
-
return localVarFp.getProductLanguage(id,
|
|
797
|
+
getProductLanguage: function (id, authorization, options) {
|
|
798
|
+
return localVarFp.getProductLanguage(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
816
799
|
},
|
|
817
800
|
/**
|
|
818
|
-
*
|
|
801
|
+
* 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\"
|
|
819
802
|
* @summary List product languages
|
|
820
|
-
* @param {string} productSlug Product slug of the product.
|
|
821
803
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
822
|
-
* @param {
|
|
823
|
-
* @param {
|
|
824
|
-
* @param {
|
|
825
|
-
* @param {
|
|
826
|
-
* @param {
|
|
827
|
-
* @param {
|
|
804
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
805
|
+
* @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.
|
|
806
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, productSlug, language, isActive, translationStatus, createdAt, updateAt</i>
|
|
807
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, language</i>
|
|
808
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, language, isActive, translationStatus, createdAt, updatedAt</i>
|
|
809
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
810
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, productSlug, language, isActive, translationStatus, createdAt, updateAt</i>
|
|
828
811
|
* @param {*} [options] Override http request option.
|
|
829
812
|
* @throws {RequiredError}
|
|
830
813
|
*/
|
|
831
|
-
listProductLanguages: function (
|
|
832
|
-
return localVarFp.listProductLanguages(
|
|
814
|
+
listProductLanguages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
815
|
+
return localVarFp.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
833
816
|
},
|
|
834
817
|
/**
|
|
835
|
-
* Returns a list of translations you have previously created.
|
|
818
|
+
* 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. **Required Permissions** \"translation-management.translations.view\"
|
|
836
819
|
* @summary List translations
|
|
837
820
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
838
|
-
* @param {
|
|
839
|
-
* @param {
|
|
840
|
-
* @param {
|
|
841
|
-
* @param {
|
|
842
|
-
* @param {
|
|
843
|
-
* @param {
|
|
821
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
822
|
+
* @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.
|
|
823
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
824
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
825
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, key</i>
|
|
826
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
827
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
844
828
|
* @param {*} [options] Override http request option.
|
|
845
829
|
* @throws {RequiredError}
|
|
846
830
|
*/
|
|
847
|
-
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
848
|
-
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
831
|
+
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
832
|
+
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
849
833
|
},
|
|
850
834
|
/**
|
|
851
|
-
* This updates the product language with the specified id.
|
|
835
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
852
836
|
* @summary Update the product language
|
|
853
|
-
* @param {number} id Id of the product language.
|
|
854
|
-
* @param {string} productSlug Product slug of the product.
|
|
855
837
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
856
838
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
857
839
|
* @param {*} [options] Override http request option.
|
|
858
840
|
* @throws {RequiredError}
|
|
859
841
|
*/
|
|
860
|
-
updateProductLanguage: function (
|
|
861
|
-
return localVarFp.updateProductLanguage(
|
|
842
|
+
updateProductLanguage: function (updateProductLanguageRequestDto, authorization, options) {
|
|
843
|
+
return localVarFp.updateProductLanguage(updateProductLanguageRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
862
844
|
},
|
|
863
845
|
/**
|
|
864
|
-
* This uploads the translations for a given product.
|
|
846
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
865
847
|
* @summary Create the product translations
|
|
866
848
|
* @param {string} productSlug
|
|
867
849
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -888,7 +870,7 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
888
870
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
889
871
|
}
|
|
890
872
|
/**
|
|
891
|
-
* This creates a product language.
|
|
873
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
892
874
|
* @summary Create the product language
|
|
893
875
|
* @param {TranslationApiCreateProductLanguageRequest} requestParameters Request parameters.
|
|
894
876
|
* @param {*} [options] Override http request option.
|
|
@@ -897,10 +879,10 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
897
879
|
*/
|
|
898
880
|
TranslationApi.prototype.createProductLanguage = function (requestParameters, options) {
|
|
899
881
|
var _this = this;
|
|
900
|
-
return (0, exports.TranslationApiFp)(this.configuration).createProductLanguage(requestParameters.
|
|
882
|
+
return (0, exports.TranslationApiFp)(this.configuration).createProductLanguage(requestParameters.createProductLanguageRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
901
883
|
};
|
|
902
884
|
/**
|
|
903
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
885
|
+
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it. **Required Permissions** \"translation-management.translations.delete\"
|
|
904
886
|
* @summary Delete the product language
|
|
905
887
|
* @param {TranslationApiDeleteProductLanguageRequest} requestParameters Request parameters.
|
|
906
888
|
* @param {*} [options] Override http request option.
|
|
@@ -912,7 +894,7 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
912
894
|
return (0, exports.TranslationApiFp)(this.configuration).deleteProductLanguage(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
913
895
|
};
|
|
914
896
|
/**
|
|
915
|
-
* This downloads the list of translatable fields for a given product.
|
|
897
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
916
898
|
* @summary Retrieve the product translations
|
|
917
899
|
* @param {TranslationApiDownloadProductTranslationsRequest} requestParameters Request parameters.
|
|
918
900
|
* @param {*} [options] Override http request option.
|
|
@@ -924,7 +906,7 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
924
906
|
return (0, exports.TranslationApiFp)(this.configuration).downloadProductTranslations(requestParameters.productSlug, requestParameters.language, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
925
907
|
};
|
|
926
908
|
/**
|
|
927
|
-
* This gets a product language.
|
|
909
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
928
910
|
* @summary Retrieve the product language
|
|
929
911
|
* @param {TranslationApiGetProductLanguageRequest} requestParameters Request parameters.
|
|
930
912
|
* @param {*} [options] Override http request option.
|
|
@@ -933,10 +915,10 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
933
915
|
*/
|
|
934
916
|
TranslationApi.prototype.getProductLanguage = function (requestParameters, options) {
|
|
935
917
|
var _this = this;
|
|
936
|
-
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.
|
|
918
|
+
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
937
919
|
};
|
|
938
920
|
/**
|
|
939
|
-
*
|
|
921
|
+
* 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\"
|
|
940
922
|
* @summary List product languages
|
|
941
923
|
* @param {TranslationApiListProductLanguagesRequest} requestParameters Request parameters.
|
|
942
924
|
* @param {*} [options] Override http request option.
|
|
@@ -945,10 +927,11 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
945
927
|
*/
|
|
946
928
|
TranslationApi.prototype.listProductLanguages = function (requestParameters, options) {
|
|
947
929
|
var _this = this;
|
|
948
|
-
|
|
930
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
931
|
+
return (0, exports.TranslationApiFp)(this.configuration).listProductLanguages(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); });
|
|
949
932
|
};
|
|
950
933
|
/**
|
|
951
|
-
* Returns a list of translations you have previously created.
|
|
934
|
+
* 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. **Required Permissions** \"translation-management.translations.view\"
|
|
952
935
|
* @summary List translations
|
|
953
936
|
* @param {TranslationApiListTranslationsRequest} requestParameters Request parameters.
|
|
954
937
|
* @param {*} [options] Override http request option.
|
|
@@ -958,10 +941,10 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
958
941
|
TranslationApi.prototype.listTranslations = function (requestParameters, options) {
|
|
959
942
|
var _this = this;
|
|
960
943
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
961
|
-
return (0, exports.TranslationApiFp)(this.configuration).listTranslations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
944
|
+
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); });
|
|
962
945
|
};
|
|
963
946
|
/**
|
|
964
|
-
* This updates the product language with the specified id.
|
|
947
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
965
948
|
* @summary Update the product language
|
|
966
949
|
* @param {TranslationApiUpdateProductLanguageRequest} requestParameters Request parameters.
|
|
967
950
|
* @param {*} [options] Override http request option.
|
|
@@ -970,10 +953,10 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
970
953
|
*/
|
|
971
954
|
TranslationApi.prototype.updateProductLanguage = function (requestParameters, options) {
|
|
972
955
|
var _this = this;
|
|
973
|
-
return (0, exports.TranslationApiFp)(this.configuration).updateProductLanguage(requestParameters.
|
|
956
|
+
return (0, exports.TranslationApiFp)(this.configuration).updateProductLanguage(requestParameters.updateProductLanguageRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
974
957
|
};
|
|
975
958
|
/**
|
|
976
|
-
* This uploads the translations for a given product.
|
|
959
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
977
960
|
* @summary Create the product translations
|
|
978
961
|
* @param {TranslationApiUploadProductTranslationsRequest} requestParameters Request parameters.
|
|
979
962
|
* @param {*} [options] Override http request option.
|