@emilgroup/translation-sdk 1.0.0 → 1.0.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 +9 -26
- package/api/default-api.ts +124 -0
- package/api/translation-api.ts +170 -209
- package/api.ts +2 -4
- package/base.ts +140 -97
- package/common.ts +2 -3
- package/configuration.ts +9 -8
- package/dist/api/default-api.d.ts +70 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/translation-api.d.ts +139 -165
- package/dist/api/translation-api.js +125 -147
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +22 -13
- package/dist/base.js +125 -153
- package/dist/common.d.ts +0 -1
- package/dist/common.js +3 -4
- package/dist/configuration.d.ts +6 -7
- 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 -5
- package/tsconfig.json +1 -0
|
@@ -85,10 +85,6 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
85
85
|
var common_1 = require("../common");
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
|
-
// URLSearchParams not necessarily used
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
var url_1 = require("url");
|
|
91
|
-
var FormData = require('form-data');
|
|
92
88
|
/**
|
|
93
89
|
* TranslationApi - axios parameter creator
|
|
94
90
|
* @export
|
|
@@ -97,28 +93,24 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
97
93
|
var _this = this;
|
|
98
94
|
return {
|
|
99
95
|
/**
|
|
100
|
-
* This creates a product language.
|
|
96
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
101
97
|
* @summary Create the product language
|
|
102
|
-
* @param {string} productSlug
|
|
103
98
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
104
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
100
|
* @param {*} [options] Override http request option.
|
|
106
101
|
* @throws {RequiredError}
|
|
107
102
|
*/
|
|
108
|
-
createProductLanguage: function (
|
|
103
|
+
createProductLanguage: function (createProductLanguageRequestDto, authorization, options) {
|
|
109
104
|
if (options === void 0) { options = {}; }
|
|
110
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
107
|
return __generator(this, function (_a) {
|
|
113
108
|
switch (_a.label) {
|
|
114
109
|
case 0:
|
|
115
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
116
|
-
(0, common_1.assertParamExists)('createProductLanguage', 'productSlug', productSlug);
|
|
117
110
|
// verify required parameter 'createProductLanguageRequestDto' is not null or undefined
|
|
118
111
|
(0, common_1.assertParamExists)('createProductLanguage', 'createProductLanguageRequestDto', createProductLanguageRequestDto);
|
|
119
|
-
localVarPath = "/translationservice/v1/
|
|
120
|
-
|
|
121
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
112
|
+
localVarPath = "/translationservice/v1/languages";
|
|
113
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
114
|
if (configuration) {
|
|
123
115
|
baseOptions = configuration.baseOptions;
|
|
124
116
|
baseAccessToken = configuration.accessToken;
|
|
@@ -150,7 +142,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
150
142
|
});
|
|
151
143
|
},
|
|
152
144
|
/**
|
|
153
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
145
|
+
* 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
146
|
* @summary Delete the product language
|
|
155
147
|
* @param {number} id Id of the product language.
|
|
156
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -166,9 +158,9 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
166
158
|
case 0:
|
|
167
159
|
// verify required parameter 'id' is not null or undefined
|
|
168
160
|
(0, common_1.assertParamExists)('deleteProductLanguage', 'id', id);
|
|
169
|
-
localVarPath = "/translationservice/v1/
|
|
161
|
+
localVarPath = "/translationservice/v1/languages/{id}"
|
|
170
162
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
171
|
-
localVarUrlObj = new
|
|
163
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
172
164
|
if (configuration) {
|
|
173
165
|
baseOptions = configuration.baseOptions;
|
|
174
166
|
baseAccessToken = configuration.accessToken;
|
|
@@ -198,7 +190,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
198
190
|
});
|
|
199
191
|
},
|
|
200
192
|
/**
|
|
201
|
-
* This downloads the list of translatable fields for a given product.
|
|
193
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
202
194
|
* @summary Retrieve the product translations
|
|
203
195
|
* @param {string} productSlug
|
|
204
196
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -219,7 +211,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
219
211
|
(0, common_1.assertParamExists)('downloadProductTranslations', 'language', language);
|
|
220
212
|
localVarPath = "/translationservice/v1/product/{productSlug}/download"
|
|
221
213
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
222
|
-
localVarUrlObj = new
|
|
214
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
223
215
|
if (configuration) {
|
|
224
216
|
baseOptions = configuration.baseOptions;
|
|
225
217
|
baseAccessToken = configuration.accessToken;
|
|
@@ -252,15 +244,14 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
252
244
|
});
|
|
253
245
|
},
|
|
254
246
|
/**
|
|
255
|
-
* This gets a product language.
|
|
247
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
256
248
|
* @summary Retrieve the product language
|
|
257
249
|
* @param {number} id Id of the product language.
|
|
258
|
-
* @param {string} productSlug Product slug of the product.
|
|
259
250
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
260
251
|
* @param {*} [options] Override http request option.
|
|
261
252
|
* @throws {RequiredError}
|
|
262
253
|
*/
|
|
263
|
-
getProductLanguage: function (id,
|
|
254
|
+
getProductLanguage: function (id, authorization, options) {
|
|
264
255
|
if (options === void 0) { options = {}; }
|
|
265
256
|
return __awaiter(_this, void 0, void 0, function () {
|
|
266
257
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -269,12 +260,9 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
269
260
|
case 0:
|
|
270
261
|
// verify required parameter 'id' is not null or undefined
|
|
271
262
|
(0, common_1.assertParamExists)('getProductLanguage', 'id', id);
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
276
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
277
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
263
|
+
localVarPath = "/translationservice/v1/languages/{id}"
|
|
264
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
265
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
278
266
|
if (configuration) {
|
|
279
267
|
baseOptions = configuration.baseOptions;
|
|
280
268
|
baseAccessToken = configuration.accessToken;
|
|
@@ -304,31 +292,28 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
304
292
|
});
|
|
305
293
|
},
|
|
306
294
|
/**
|
|
307
|
-
*
|
|
295
|
+
* 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
296
|
* @summary List product languages
|
|
309
|
-
* @param {string} productSlug Product slug of the product.
|
|
310
297
|
* @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 {
|
|
298
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
299
|
+
* @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.
|
|
300
|
+
* @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>
|
|
301
|
+
* @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>
|
|
302
|
+
* @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>
|
|
303
|
+
* @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/>
|
|
304
|
+
* @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
305
|
* @param {*} [options] Override http request option.
|
|
318
306
|
* @throws {RequiredError}
|
|
319
307
|
*/
|
|
320
|
-
listProductLanguages: function (
|
|
308
|
+
listProductLanguages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
321
309
|
if (options === void 0) { options = {}; }
|
|
322
310
|
return __awaiter(_this, void 0, void 0, function () {
|
|
323
311
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
324
312
|
return __generator(this, function (_a) {
|
|
325
313
|
switch (_a.label) {
|
|
326
314
|
case 0:
|
|
327
|
-
|
|
328
|
-
(
|
|
329
|
-
localVarPath = "/translationservice/v1/product/{productSlug}/language"
|
|
330
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
331
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
315
|
+
localVarPath = "/translationservice/v1/languages";
|
|
316
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
332
317
|
if (configuration) {
|
|
333
318
|
baseOptions = configuration.baseOptions;
|
|
334
319
|
baseAccessToken = configuration.accessToken;
|
|
@@ -361,6 +346,9 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
361
346
|
if (expand !== undefined) {
|
|
362
347
|
localVarQueryParameter['expand'] = expand;
|
|
363
348
|
}
|
|
349
|
+
if (filters !== undefined) {
|
|
350
|
+
localVarQueryParameter['filters'] = filters;
|
|
351
|
+
}
|
|
364
352
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
365
353
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
366
354
|
}
|
|
@@ -376,19 +364,20 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
376
364
|
});
|
|
377
365
|
},
|
|
378
366
|
/**
|
|
379
|
-
* Returns a list of translations you have previously created.
|
|
367
|
+
* 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
368
|
* @summary List translations
|
|
381
369
|
* @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 {
|
|
370
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
371
|
+
* @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.
|
|
372
|
+
* @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>
|
|
373
|
+
* @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>
|
|
374
|
+
* @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>
|
|
375
|
+
* @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/>
|
|
376
|
+
* @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
377
|
* @param {*} [options] Override http request option.
|
|
389
378
|
* @throws {RequiredError}
|
|
390
379
|
*/
|
|
391
|
-
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
380
|
+
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
392
381
|
if (options === void 0) { options = {}; }
|
|
393
382
|
return __awaiter(_this, void 0, void 0, function () {
|
|
394
383
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -396,7 +385,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
396
385
|
switch (_a.label) {
|
|
397
386
|
case 0:
|
|
398
387
|
localVarPath = "/translationservice/v1/translations";
|
|
399
|
-
localVarUrlObj = new
|
|
388
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
400
389
|
if (configuration) {
|
|
401
390
|
baseOptions = configuration.baseOptions;
|
|
402
391
|
baseAccessToken = configuration.accessToken;
|
|
@@ -429,6 +418,9 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
429
418
|
if (expand !== undefined) {
|
|
430
419
|
localVarQueryParameter['expand'] = expand;
|
|
431
420
|
}
|
|
421
|
+
if (filters !== undefined) {
|
|
422
|
+
localVarQueryParameter['filters'] = filters;
|
|
423
|
+
}
|
|
432
424
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
433
425
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
434
426
|
}
|
|
@@ -444,32 +436,24 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
444
436
|
});
|
|
445
437
|
},
|
|
446
438
|
/**
|
|
447
|
-
* This updates the product language with the specified id.
|
|
439
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
448
440
|
* @summary Update the product language
|
|
449
|
-
* @param {number} id Id of the product language.
|
|
450
|
-
* @param {string} productSlug Product slug of the product.
|
|
451
441
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
452
442
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
443
|
* @param {*} [options] Override http request option.
|
|
454
444
|
* @throws {RequiredError}
|
|
455
445
|
*/
|
|
456
|
-
updateProductLanguage: function (
|
|
446
|
+
updateProductLanguage: function (updateProductLanguageRequestDto, authorization, options) {
|
|
457
447
|
if (options === void 0) { options = {}; }
|
|
458
448
|
return __awaiter(_this, void 0, void 0, function () {
|
|
459
449
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
460
450
|
return __generator(this, function (_a) {
|
|
461
451
|
switch (_a.label) {
|
|
462
452
|
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
453
|
// verify required parameter 'updateProductLanguageRequestDto' is not null or undefined
|
|
468
454
|
(0, common_1.assertParamExists)('updateProductLanguage', 'updateProductLanguageRequestDto', updateProductLanguageRequestDto);
|
|
469
|
-
localVarPath = "/translationservice/v1/
|
|
470
|
-
|
|
471
|
-
.replace("{".concat("product slug", "}"), encodeURIComponent(String(productSlug)));
|
|
472
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
455
|
+
localVarPath = "/translationservice/v1/languages";
|
|
456
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
473
457
|
if (configuration) {
|
|
474
458
|
baseOptions = configuration.baseOptions;
|
|
475
459
|
baseAccessToken = configuration.accessToken;
|
|
@@ -501,7 +485,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
501
485
|
});
|
|
502
486
|
},
|
|
503
487
|
/**
|
|
504
|
-
* This uploads the translations for a given product.
|
|
488
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
505
489
|
* @summary Create the product translations
|
|
506
490
|
* @param {string} productSlug
|
|
507
491
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -523,7 +507,7 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
523
507
|
(0, common_1.assertParamExists)('uploadProductTranslations', 'language', language);
|
|
524
508
|
localVarPath = "/translationservice/v1/product/{productSlug}/upload"
|
|
525
509
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
526
|
-
localVarUrlObj = new
|
|
510
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
527
511
|
if (configuration) {
|
|
528
512
|
baseOptions = configuration.baseOptions;
|
|
529
513
|
baseAccessToken = configuration.accessToken;
|
|
@@ -548,7 +532,6 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
548
532
|
if (file !== undefined) {
|
|
549
533
|
localVarFormParams.append('file', file);
|
|
550
534
|
}
|
|
551
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
552
535
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
553
536
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
554
537
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -572,20 +555,19 @@ var TranslationApiFp = function (configuration) {
|
|
|
572
555
|
var localVarAxiosParamCreator = (0, exports.TranslationApiAxiosParamCreator)(configuration);
|
|
573
556
|
return {
|
|
574
557
|
/**
|
|
575
|
-
* This creates a product language.
|
|
558
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
576
559
|
* @summary Create the product language
|
|
577
|
-
* @param {string} productSlug
|
|
578
560
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
579
561
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
580
562
|
* @param {*} [options] Override http request option.
|
|
581
563
|
* @throws {RequiredError}
|
|
582
564
|
*/
|
|
583
|
-
createProductLanguage: function (
|
|
565
|
+
createProductLanguage: function (createProductLanguageRequestDto, authorization, options) {
|
|
584
566
|
return __awaiter(this, void 0, void 0, function () {
|
|
585
567
|
var localVarAxiosArgs;
|
|
586
568
|
return __generator(this, function (_a) {
|
|
587
569
|
switch (_a.label) {
|
|
588
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductLanguage(
|
|
570
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductLanguage(createProductLanguageRequestDto, authorization, options)];
|
|
589
571
|
case 1:
|
|
590
572
|
localVarAxiosArgs = _a.sent();
|
|
591
573
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -594,7 +576,7 @@ var TranslationApiFp = function (configuration) {
|
|
|
594
576
|
});
|
|
595
577
|
},
|
|
596
578
|
/**
|
|
597
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
579
|
+
* 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
580
|
* @summary Delete the product language
|
|
599
581
|
* @param {number} id Id of the product language.
|
|
600
582
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -615,7 +597,7 @@ var TranslationApiFp = function (configuration) {
|
|
|
615
597
|
});
|
|
616
598
|
},
|
|
617
599
|
/**
|
|
618
|
-
* This downloads the list of translatable fields for a given product.
|
|
600
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
619
601
|
* @summary Retrieve the product translations
|
|
620
602
|
* @param {string} productSlug
|
|
621
603
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -637,20 +619,19 @@ var TranslationApiFp = function (configuration) {
|
|
|
637
619
|
});
|
|
638
620
|
},
|
|
639
621
|
/**
|
|
640
|
-
* This gets a product language.
|
|
622
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
641
623
|
* @summary Retrieve the product language
|
|
642
624
|
* @param {number} id Id of the product language.
|
|
643
|
-
* @param {string} productSlug Product slug of the product.
|
|
644
625
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
645
626
|
* @param {*} [options] Override http request option.
|
|
646
627
|
* @throws {RequiredError}
|
|
647
628
|
*/
|
|
648
|
-
getProductLanguage: function (id,
|
|
629
|
+
getProductLanguage: function (id, authorization, options) {
|
|
649
630
|
return __awaiter(this, void 0, void 0, function () {
|
|
650
631
|
var localVarAxiosArgs;
|
|
651
632
|
return __generator(this, function (_a) {
|
|
652
633
|
switch (_a.label) {
|
|
653
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductLanguage(id,
|
|
634
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductLanguage(id, authorization, options)];
|
|
654
635
|
case 1:
|
|
655
636
|
localVarAxiosArgs = _a.sent();
|
|
656
637
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -659,25 +640,25 @@ var TranslationApiFp = function (configuration) {
|
|
|
659
640
|
});
|
|
660
641
|
},
|
|
661
642
|
/**
|
|
662
|
-
*
|
|
643
|
+
* 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
644
|
* @summary List product languages
|
|
664
|
-
* @param {string} productSlug Product slug of the product.
|
|
665
645
|
* @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 {
|
|
646
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
647
|
+
* @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.
|
|
648
|
+
* @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>
|
|
649
|
+
* @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>
|
|
650
|
+
* @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>
|
|
651
|
+
* @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/>
|
|
652
|
+
* @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
653
|
* @param {*} [options] Override http request option.
|
|
673
654
|
* @throws {RequiredError}
|
|
674
655
|
*/
|
|
675
|
-
listProductLanguages: function (
|
|
656
|
+
listProductLanguages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
676
657
|
return __awaiter(this, void 0, void 0, function () {
|
|
677
658
|
var localVarAxiosArgs;
|
|
678
659
|
return __generator(this, function (_a) {
|
|
679
660
|
switch (_a.label) {
|
|
680
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductLanguages(
|
|
661
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
681
662
|
case 1:
|
|
682
663
|
localVarAxiosArgs = _a.sent();
|
|
683
664
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -686,24 +667,25 @@ var TranslationApiFp = function (configuration) {
|
|
|
686
667
|
});
|
|
687
668
|
},
|
|
688
669
|
/**
|
|
689
|
-
* Returns a list of translations you have previously created.
|
|
670
|
+
* 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
671
|
* @summary List translations
|
|
691
672
|
* @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 {
|
|
673
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
674
|
+
* @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.
|
|
675
|
+
* @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>
|
|
676
|
+
* @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>
|
|
677
|
+
* @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>
|
|
678
|
+
* @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/>
|
|
679
|
+
* @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
680
|
* @param {*} [options] Override http request option.
|
|
699
681
|
* @throws {RequiredError}
|
|
700
682
|
*/
|
|
701
|
-
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
683
|
+
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
702
684
|
return __awaiter(this, void 0, void 0, function () {
|
|
703
685
|
var localVarAxiosArgs;
|
|
704
686
|
return __generator(this, function (_a) {
|
|
705
687
|
switch (_a.label) {
|
|
706
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
688
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
707
689
|
case 1:
|
|
708
690
|
localVarAxiosArgs = _a.sent();
|
|
709
691
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -712,21 +694,19 @@ var TranslationApiFp = function (configuration) {
|
|
|
712
694
|
});
|
|
713
695
|
},
|
|
714
696
|
/**
|
|
715
|
-
* This updates the product language with the specified id.
|
|
697
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
716
698
|
* @summary Update the product language
|
|
717
|
-
* @param {number} id Id of the product language.
|
|
718
|
-
* @param {string} productSlug Product slug of the product.
|
|
719
699
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
720
700
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
721
701
|
* @param {*} [options] Override http request option.
|
|
722
702
|
* @throws {RequiredError}
|
|
723
703
|
*/
|
|
724
|
-
updateProductLanguage: function (
|
|
704
|
+
updateProductLanguage: function (updateProductLanguageRequestDto, authorization, options) {
|
|
725
705
|
return __awaiter(this, void 0, void 0, function () {
|
|
726
706
|
var localVarAxiosArgs;
|
|
727
707
|
return __generator(this, function (_a) {
|
|
728
708
|
switch (_a.label) {
|
|
729
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductLanguage(
|
|
709
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductLanguage(updateProductLanguageRequestDto, authorization, options)];
|
|
730
710
|
case 1:
|
|
731
711
|
localVarAxiosArgs = _a.sent();
|
|
732
712
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -735,7 +715,7 @@ var TranslationApiFp = function (configuration) {
|
|
|
735
715
|
});
|
|
736
716
|
},
|
|
737
717
|
/**
|
|
738
|
-
* This uploads the translations for a given product.
|
|
718
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
739
719
|
* @summary Create the product translations
|
|
740
720
|
* @param {string} productSlug
|
|
741
721
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -768,19 +748,18 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
768
748
|
var localVarFp = (0, exports.TranslationApiFp)(configuration);
|
|
769
749
|
return {
|
|
770
750
|
/**
|
|
771
|
-
* This creates a product language.
|
|
751
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
772
752
|
* @summary Create the product language
|
|
773
|
-
* @param {string} productSlug
|
|
774
753
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
775
754
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
776
755
|
* @param {*} [options] Override http request option.
|
|
777
756
|
* @throws {RequiredError}
|
|
778
757
|
*/
|
|
779
|
-
createProductLanguage: function (
|
|
780
|
-
return localVarFp.createProductLanguage(
|
|
758
|
+
createProductLanguage: function (createProductLanguageRequestDto, authorization, options) {
|
|
759
|
+
return localVarFp.createProductLanguage(createProductLanguageRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
781
760
|
},
|
|
782
761
|
/**
|
|
783
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
762
|
+
* 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
763
|
* @summary Delete the product language
|
|
785
764
|
* @param {number} id Id of the product language.
|
|
786
765
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -791,7 +770,7 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
791
770
|
return localVarFp.deleteProductLanguage(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
792
771
|
},
|
|
793
772
|
/**
|
|
794
|
-
* This downloads the list of translatable fields for a given product.
|
|
773
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
795
774
|
* @summary Retrieve the product translations
|
|
796
775
|
* @param {string} productSlug
|
|
797
776
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -803,65 +782,63 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
803
782
|
return localVarFp.downloadProductTranslations(productSlug, language, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
804
783
|
},
|
|
805
784
|
/**
|
|
806
|
-
* This gets a product language.
|
|
785
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
807
786
|
* @summary Retrieve the product language
|
|
808
787
|
* @param {number} id Id of the product language.
|
|
809
|
-
* @param {string} productSlug Product slug of the product.
|
|
810
788
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
811
789
|
* @param {*} [options] Override http request option.
|
|
812
790
|
* @throws {RequiredError}
|
|
813
791
|
*/
|
|
814
|
-
getProductLanguage: function (id,
|
|
815
|
-
return localVarFp.getProductLanguage(id,
|
|
792
|
+
getProductLanguage: function (id, authorization, options) {
|
|
793
|
+
return localVarFp.getProductLanguage(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
816
794
|
},
|
|
817
795
|
/**
|
|
818
|
-
*
|
|
796
|
+
* 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
797
|
* @summary List product languages
|
|
820
|
-
* @param {string} productSlug Product slug of the product.
|
|
821
798
|
* @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 {
|
|
799
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
800
|
+
* @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.
|
|
801
|
+
* @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>
|
|
802
|
+
* @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>
|
|
803
|
+
* @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>
|
|
804
|
+
* @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/>
|
|
805
|
+
* @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
806
|
* @param {*} [options] Override http request option.
|
|
829
807
|
* @throws {RequiredError}
|
|
830
808
|
*/
|
|
831
|
-
listProductLanguages: function (
|
|
832
|
-
return localVarFp.listProductLanguages(
|
|
809
|
+
listProductLanguages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
810
|
+
return localVarFp.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
833
811
|
},
|
|
834
812
|
/**
|
|
835
|
-
* Returns a list of translations you have previously created.
|
|
813
|
+
* 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
814
|
* @summary List translations
|
|
837
815
|
* @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 {
|
|
816
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
817
|
+
* @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.
|
|
818
|
+
* @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>
|
|
819
|
+
* @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>
|
|
820
|
+
* @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>
|
|
821
|
+
* @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/>
|
|
822
|
+
* @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
823
|
* @param {*} [options] Override http request option.
|
|
845
824
|
* @throws {RequiredError}
|
|
846
825
|
*/
|
|
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); });
|
|
826
|
+
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
827
|
+
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
849
828
|
},
|
|
850
829
|
/**
|
|
851
|
-
* This updates the product language with the specified id.
|
|
830
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
852
831
|
* @summary Update the product language
|
|
853
|
-
* @param {number} id Id of the product language.
|
|
854
|
-
* @param {string} productSlug Product slug of the product.
|
|
855
832
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
856
833
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
857
834
|
* @param {*} [options] Override http request option.
|
|
858
835
|
* @throws {RequiredError}
|
|
859
836
|
*/
|
|
860
|
-
updateProductLanguage: function (
|
|
861
|
-
return localVarFp.updateProductLanguage(
|
|
837
|
+
updateProductLanguage: function (updateProductLanguageRequestDto, authorization, options) {
|
|
838
|
+
return localVarFp.updateProductLanguage(updateProductLanguageRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
862
839
|
},
|
|
863
840
|
/**
|
|
864
|
-
* This uploads the translations for a given product.
|
|
841
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
865
842
|
* @summary Create the product translations
|
|
866
843
|
* @param {string} productSlug
|
|
867
844
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -888,7 +865,7 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
888
865
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
889
866
|
}
|
|
890
867
|
/**
|
|
891
|
-
* This creates a product language.
|
|
868
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
892
869
|
* @summary Create the product language
|
|
893
870
|
* @param {TranslationApiCreateProductLanguageRequest} requestParameters Request parameters.
|
|
894
871
|
* @param {*} [options] Override http request option.
|
|
@@ -897,10 +874,10 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
897
874
|
*/
|
|
898
875
|
TranslationApi.prototype.createProductLanguage = function (requestParameters, options) {
|
|
899
876
|
var _this = this;
|
|
900
|
-
return (0, exports.TranslationApiFp)(this.configuration).createProductLanguage(requestParameters.
|
|
877
|
+
return (0, exports.TranslationApiFp)(this.configuration).createProductLanguage(requestParameters.createProductLanguageRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
901
878
|
};
|
|
902
879
|
/**
|
|
903
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
880
|
+
* 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
881
|
* @summary Delete the product language
|
|
905
882
|
* @param {TranslationApiDeleteProductLanguageRequest} requestParameters Request parameters.
|
|
906
883
|
* @param {*} [options] Override http request option.
|
|
@@ -912,7 +889,7 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
912
889
|
return (0, exports.TranslationApiFp)(this.configuration).deleteProductLanguage(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
913
890
|
};
|
|
914
891
|
/**
|
|
915
|
-
* This downloads the list of translatable fields for a given product.
|
|
892
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
916
893
|
* @summary Retrieve the product translations
|
|
917
894
|
* @param {TranslationApiDownloadProductTranslationsRequest} requestParameters Request parameters.
|
|
918
895
|
* @param {*} [options] Override http request option.
|
|
@@ -924,7 +901,7 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
924
901
|
return (0, exports.TranslationApiFp)(this.configuration).downloadProductTranslations(requestParameters.productSlug, requestParameters.language, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
925
902
|
};
|
|
926
903
|
/**
|
|
927
|
-
* This gets a product language.
|
|
904
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
928
905
|
* @summary Retrieve the product language
|
|
929
906
|
* @param {TranslationApiGetProductLanguageRequest} requestParameters Request parameters.
|
|
930
907
|
* @param {*} [options] Override http request option.
|
|
@@ -933,10 +910,10 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
933
910
|
*/
|
|
934
911
|
TranslationApi.prototype.getProductLanguage = function (requestParameters, options) {
|
|
935
912
|
var _this = this;
|
|
936
|
-
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.
|
|
913
|
+
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
937
914
|
};
|
|
938
915
|
/**
|
|
939
|
-
*
|
|
916
|
+
* 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
917
|
* @summary List product languages
|
|
941
918
|
* @param {TranslationApiListProductLanguagesRequest} requestParameters Request parameters.
|
|
942
919
|
* @param {*} [options] Override http request option.
|
|
@@ -945,10 +922,11 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
945
922
|
*/
|
|
946
923
|
TranslationApi.prototype.listProductLanguages = function (requestParameters, options) {
|
|
947
924
|
var _this = this;
|
|
948
|
-
|
|
925
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
926
|
+
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
927
|
};
|
|
950
928
|
/**
|
|
951
|
-
* Returns a list of translations you have previously created.
|
|
929
|
+
* 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
930
|
* @summary List translations
|
|
953
931
|
* @param {TranslationApiListTranslationsRequest} requestParameters Request parameters.
|
|
954
932
|
* @param {*} [options] Override http request option.
|
|
@@ -958,10 +936,10 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
958
936
|
TranslationApi.prototype.listTranslations = function (requestParameters, options) {
|
|
959
937
|
var _this = this;
|
|
960
938
|
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); });
|
|
939
|
+
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
940
|
};
|
|
963
941
|
/**
|
|
964
|
-
* This updates the product language with the specified id.
|
|
942
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
965
943
|
* @summary Update the product language
|
|
966
944
|
* @param {TranslationApiUpdateProductLanguageRequest} requestParameters Request parameters.
|
|
967
945
|
* @param {*} [options] Override http request option.
|
|
@@ -970,10 +948,10 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
970
948
|
*/
|
|
971
949
|
TranslationApi.prototype.updateProductLanguage = function (requestParameters, options) {
|
|
972
950
|
var _this = this;
|
|
973
|
-
return (0, exports.TranslationApiFp)(this.configuration).updateProductLanguage(requestParameters.
|
|
951
|
+
return (0, exports.TranslationApiFp)(this.configuration).updateProductLanguage(requestParameters.updateProductLanguageRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
974
952
|
};
|
|
975
953
|
/**
|
|
976
|
-
* This uploads the translations for a given product.
|
|
954
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
977
955
|
* @summary Create the product translations
|
|
978
956
|
* @param {TranslationApiUploadProductTranslationsRequest} requestParameters Request parameters.
|
|
979
957
|
* @param {*} [options] Override http request option.
|