@emilgroup/translation-sdk 1.0.1-beta.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -3
- package/README.md +26 -9
- package/api/translation-api.ts +117 -141
- package/api.ts +4 -2
- package/base.ts +97 -140
- package/common.ts +3 -2
- package/configuration.ts +8 -9
- package/dist/api/translation-api.d.ts +106 -124
- package/dist/api/translation-api.js +93 -100
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/base.d.ts +13 -22
- package/dist/base.js +153 -125
- package/dist/common.d.ts +1 -0
- package/dist/common.js +4 -3
- package/dist/configuration.d.ts +7 -6
- package/dist/configuration.js +0 -8
- package/dist/models/create-product-language-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/dist/models/product-language-class.d.ts +4 -4
- package/models/create-product-language-request-dto.ts +1 -1
- package/models/index.ts +0 -2
- package/models/product-language-class.ts +4 -4
- package/package.json +5 -2
- package/tsconfig.json +0 -1
- package/api/default-api.ts +0 -124
- package/dist/api/default-api.d.ts +0 -70
- package/dist/api/default-api.js +0 -200
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response200.js +0 -15
- package/dist/models/inline-response503.d.ts +0 -54
- package/dist/models/inline-response503.js +0 -15
- package/models/inline-response200.ts +0 -48
- package/models/inline-response503.ts +0 -48
package/api/translation-api.ts
CHANGED
|
@@ -36,6 +36,10 @@ import { UpdateProductLanguageRequestDto } from '../models';
|
|
|
36
36
|
import { UpdateProductLanguageResponseClass } from '../models';
|
|
37
37
|
// @ts-ignore
|
|
38
38
|
import { UploadProductTranslationsResponseClass } from '../models';
|
|
39
|
+
// URLSearchParams not necessarily used
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
import { URL, URLSearchParams } from 'url';
|
|
42
|
+
const FormData = require('form-data');
|
|
39
43
|
/**
|
|
40
44
|
* TranslationApi - axios parameter creator
|
|
41
45
|
* @export
|
|
@@ -43,7 +47,7 @@ import { UploadProductTranslationsResponseClass } from '../models';
|
|
|
43
47
|
export const TranslationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
48
|
return {
|
|
45
49
|
/**
|
|
46
|
-
* This creates a product language.
|
|
50
|
+
* This creates a product language.
|
|
47
51
|
* @summary Create the product language
|
|
48
52
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
49
53
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -90,7 +94,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
90
94
|
};
|
|
91
95
|
},
|
|
92
96
|
/**
|
|
93
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
97
|
+
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
94
98
|
* @summary Delete the product language
|
|
95
99
|
* @param {number} id Id of the product language.
|
|
96
100
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -135,7 +139,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
135
139
|
};
|
|
136
140
|
},
|
|
137
141
|
/**
|
|
138
|
-
* This downloads the list of translatable fields for a given product.
|
|
142
|
+
* This downloads the list of translatable fields for a given product.
|
|
139
143
|
* @summary Retrieve the product translations
|
|
140
144
|
* @param {string} productSlug
|
|
141
145
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -187,7 +191,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
187
191
|
};
|
|
188
192
|
},
|
|
189
193
|
/**
|
|
190
|
-
* This gets a product language.
|
|
194
|
+
* This gets a product language.
|
|
191
195
|
* @summary Retrieve the product language
|
|
192
196
|
* @param {number} id Id of the product language.
|
|
193
197
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -232,20 +236,19 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
232
236
|
};
|
|
233
237
|
},
|
|
234
238
|
/**
|
|
235
|
-
*
|
|
239
|
+
* This lists the product languages.
|
|
236
240
|
* @summary List product languages
|
|
237
241
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
238
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
239
|
-
* @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,
|
|
240
|
-
* @param {
|
|
241
|
-
* @param {
|
|
242
|
-
* @param {
|
|
243
|
-
* @param {
|
|
244
|
-
* @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>
|
|
242
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
243
|
+
* @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.
|
|
244
|
+
* @param {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
245
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
246
|
+
* @param {'0' | '1' | '2' | '3' | '4' | '5'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
247
|
+
* @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
245
248
|
* @param {*} [options] Override http request option.
|
|
246
249
|
* @throws {RequiredError}
|
|
247
250
|
*/
|
|
248
|
-
listProductLanguages: async (authorization?: string, pageSize?: number, pageToken?: string, filter?:
|
|
251
|
+
listProductLanguages: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt', search?: any, order?: '0' | '1' | '2' | '3' | '4' | '5', expand?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
249
252
|
const localVarPath = `/translationservice/v1/languages`;
|
|
250
253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
251
254
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -288,10 +291,6 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
288
291
|
localVarQueryParameter['expand'] = expand;
|
|
289
292
|
}
|
|
290
293
|
|
|
291
|
-
if (filters !== undefined) {
|
|
292
|
-
localVarQueryParameter['filters'] = filters;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
294
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
296
295
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
297
296
|
}
|
|
@@ -308,20 +307,19 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
308
307
|
};
|
|
309
308
|
},
|
|
310
309
|
/**
|
|
311
|
-
* Returns a list of translations you have previously created.
|
|
310
|
+
* 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.
|
|
312
311
|
* @summary List translations
|
|
313
312
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
314
|
-
* @param {
|
|
315
|
-
* @param {
|
|
316
|
-
* @param {
|
|
317
|
-
* @param {
|
|
318
|
-
* @param {
|
|
319
|
-
* @param {
|
|
320
|
-
* @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>
|
|
313
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
314
|
+
* @param {any} [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.
|
|
315
|
+
* @param {'key'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
316
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
317
|
+
* @param {'0' | '1' | '2'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
318
|
+
* @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
321
319
|
* @param {*} [options] Override http request option.
|
|
322
320
|
* @throws {RequiredError}
|
|
323
321
|
*/
|
|
324
|
-
listTranslations: async (authorization?: string, pageSize?:
|
|
322
|
+
listTranslations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'key', search?: any, order?: '0' | '1' | '2', expand?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
325
323
|
const localVarPath = `/translationservice/v1/translations`;
|
|
326
324
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
327
325
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -364,10 +362,6 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
364
362
|
localVarQueryParameter['expand'] = expand;
|
|
365
363
|
}
|
|
366
364
|
|
|
367
|
-
if (filters !== undefined) {
|
|
368
|
-
localVarQueryParameter['filters'] = filters;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
365
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
372
366
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
373
367
|
}
|
|
@@ -384,7 +378,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
384
378
|
};
|
|
385
379
|
},
|
|
386
380
|
/**
|
|
387
|
-
* This updates the product language with the specified id.
|
|
381
|
+
* This updates the product language with the specified id.
|
|
388
382
|
* @summary Update the product language
|
|
389
383
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
390
384
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -431,7 +425,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
431
425
|
};
|
|
432
426
|
},
|
|
433
427
|
/**
|
|
434
|
-
* This uploads the translations for a given product.
|
|
428
|
+
* This uploads the translations for a given product.
|
|
435
429
|
* @summary Create the product translations
|
|
436
430
|
* @param {string} productSlug
|
|
437
431
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -479,7 +473,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
479
473
|
}
|
|
480
474
|
|
|
481
475
|
|
|
482
|
-
|
|
476
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
483
477
|
|
|
484
478
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
485
479
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -502,7 +496,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
502
496
|
const localVarAxiosParamCreator = TranslationApiAxiosParamCreator(configuration)
|
|
503
497
|
return {
|
|
504
498
|
/**
|
|
505
|
-
* This creates a product language.
|
|
499
|
+
* This creates a product language.
|
|
506
500
|
* @summary Create the product language
|
|
507
501
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
508
502
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -514,7 +508,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
514
508
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
515
509
|
},
|
|
516
510
|
/**
|
|
517
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
511
|
+
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
518
512
|
* @summary Delete the product language
|
|
519
513
|
* @param {number} id Id of the product language.
|
|
520
514
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -526,7 +520,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
526
520
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
527
521
|
},
|
|
528
522
|
/**
|
|
529
|
-
* This downloads the list of translatable fields for a given product.
|
|
523
|
+
* This downloads the list of translatable fields for a given product.
|
|
530
524
|
* @summary Retrieve the product translations
|
|
531
525
|
* @param {string} productSlug
|
|
532
526
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -539,7 +533,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
539
533
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
540
534
|
},
|
|
541
535
|
/**
|
|
542
|
-
* This gets a product language.
|
|
536
|
+
* This gets a product language.
|
|
543
537
|
* @summary Retrieve the product language
|
|
544
538
|
* @param {number} id Id of the product language.
|
|
545
539
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -551,43 +545,41 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
551
545
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
552
546
|
},
|
|
553
547
|
/**
|
|
554
|
-
*
|
|
548
|
+
* This lists the product languages.
|
|
555
549
|
* @summary List product languages
|
|
556
550
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
557
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
558
|
-
* @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,
|
|
559
|
-
* @param {
|
|
560
|
-
* @param {
|
|
561
|
-
* @param {
|
|
562
|
-
* @param {
|
|
563
|
-
* @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>
|
|
551
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
552
|
+
* @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.
|
|
553
|
+
* @param {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
554
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
555
|
+
* @param {'0' | '1' | '2' | '3' | '4' | '5'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
556
|
+
* @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
564
557
|
* @param {*} [options] Override http request option.
|
|
565
558
|
* @throws {RequiredError}
|
|
566
559
|
*/
|
|
567
|
-
async listProductLanguages(authorization?: string, pageSize?: number, pageToken?: string, filter?:
|
|
568
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
560
|
+
async listProductLanguages(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt', search?: any, order?: '0' | '1' | '2' | '3' | '4' | '5', expand?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductLanguagesResponseClass>> {
|
|
561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
569
562
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
570
563
|
},
|
|
571
564
|
/**
|
|
572
|
-
* Returns a list of translations you have previously created.
|
|
565
|
+
* 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.
|
|
573
566
|
* @summary List translations
|
|
574
567
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
575
|
-
* @param {
|
|
576
|
-
* @param {
|
|
577
|
-
* @param {
|
|
578
|
-
* @param {
|
|
579
|
-
* @param {
|
|
580
|
-
* @param {
|
|
581
|
-
* @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>
|
|
568
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
569
|
+
* @param {any} [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.
|
|
570
|
+
* @param {'key'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
571
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
572
|
+
* @param {'0' | '1' | '2'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
573
|
+
* @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
582
574
|
* @param {*} [options] Override http request option.
|
|
583
575
|
* @throws {RequiredError}
|
|
584
576
|
*/
|
|
585
|
-
async listTranslations(authorization?: string, pageSize?:
|
|
586
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
577
|
+
async listTranslations(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'key', search?: any, order?: '0' | '1' | '2', expand?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTranslationsResponseClass>> {
|
|
578
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
587
579
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
588
580
|
},
|
|
589
581
|
/**
|
|
590
|
-
* This updates the product language with the specified id.
|
|
582
|
+
* This updates the product language with the specified id.
|
|
591
583
|
* @summary Update the product language
|
|
592
584
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
593
585
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -599,7 +591,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
599
591
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
600
592
|
},
|
|
601
593
|
/**
|
|
602
|
-
* This uploads the translations for a given product.
|
|
594
|
+
* This uploads the translations for a given product.
|
|
603
595
|
* @summary Create the product translations
|
|
604
596
|
* @param {string} productSlug
|
|
605
597
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -623,7 +615,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
623
615
|
const localVarFp = TranslationApiFp(configuration)
|
|
624
616
|
return {
|
|
625
617
|
/**
|
|
626
|
-
* This creates a product language.
|
|
618
|
+
* This creates a product language.
|
|
627
619
|
* @summary Create the product language
|
|
628
620
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
629
621
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -634,7 +626,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
634
626
|
return localVarFp.createProductLanguage(createProductLanguageRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
635
627
|
},
|
|
636
628
|
/**
|
|
637
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
629
|
+
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
638
630
|
* @summary Delete the product language
|
|
639
631
|
* @param {number} id Id of the product language.
|
|
640
632
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -645,7 +637,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
645
637
|
return localVarFp.deleteProductLanguage(id, authorization, options).then((request) => request(axios, basePath));
|
|
646
638
|
},
|
|
647
639
|
/**
|
|
648
|
-
* This downloads the list of translatable fields for a given product.
|
|
640
|
+
* This downloads the list of translatable fields for a given product.
|
|
649
641
|
* @summary Retrieve the product translations
|
|
650
642
|
* @param {string} productSlug
|
|
651
643
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -657,7 +649,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
657
649
|
return localVarFp.downloadProductTranslations(productSlug, language, authorization, options).then((request) => request(axios, basePath));
|
|
658
650
|
},
|
|
659
651
|
/**
|
|
660
|
-
* This gets a product language.
|
|
652
|
+
* This gets a product language.
|
|
661
653
|
* @summary Retrieve the product language
|
|
662
654
|
* @param {number} id Id of the product language.
|
|
663
655
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -668,41 +660,39 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
668
660
|
return localVarFp.getProductLanguage(id, authorization, options).then((request) => request(axios, basePath));
|
|
669
661
|
},
|
|
670
662
|
/**
|
|
671
|
-
*
|
|
663
|
+
* This lists the product languages.
|
|
672
664
|
* @summary List product languages
|
|
673
665
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
674
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
675
|
-
* @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,
|
|
676
|
-
* @param {
|
|
677
|
-
* @param {
|
|
678
|
-
* @param {
|
|
679
|
-
* @param {
|
|
680
|
-
* @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>
|
|
666
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
667
|
+
* @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.
|
|
668
|
+
* @param {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
669
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
670
|
+
* @param {'0' | '1' | '2' | '3' | '4' | '5'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
671
|
+
* @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
681
672
|
* @param {*} [options] Override http request option.
|
|
682
673
|
* @throws {RequiredError}
|
|
683
674
|
*/
|
|
684
|
-
listProductLanguages(authorization?: string, pageSize?: number, pageToken?: string, filter?:
|
|
685
|
-
return localVarFp.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
675
|
+
listProductLanguages(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt', search?: any, order?: '0' | '1' | '2' | '3' | '4' | '5', expand?: number, options?: any): AxiosPromise<ListProductLanguagesResponseClass> {
|
|
676
|
+
return localVarFp.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
686
677
|
},
|
|
687
678
|
/**
|
|
688
|
-
* Returns a list of translations you have previously created.
|
|
679
|
+
* 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.
|
|
689
680
|
* @summary List translations
|
|
690
681
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
691
|
-
* @param {
|
|
692
|
-
* @param {
|
|
693
|
-
* @param {
|
|
694
|
-
* @param {
|
|
695
|
-
* @param {
|
|
696
|
-
* @param {
|
|
697
|
-
* @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>
|
|
682
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
683
|
+
* @param {any} [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.
|
|
684
|
+
* @param {'key'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
685
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
686
|
+
* @param {'0' | '1' | '2'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
687
|
+
* @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
698
688
|
* @param {*} [options] Override http request option.
|
|
699
689
|
* @throws {RequiredError}
|
|
700
690
|
*/
|
|
701
|
-
listTranslations(authorization?: string, pageSize?:
|
|
702
|
-
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
691
|
+
listTranslations(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'key', search?: any, order?: '0' | '1' | '2', expand?: number, options?: any): AxiosPromise<ListTranslationsResponseClass> {
|
|
692
|
+
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
703
693
|
},
|
|
704
694
|
/**
|
|
705
|
-
* This updates the product language with the specified id.
|
|
695
|
+
* This updates the product language with the specified id.
|
|
706
696
|
* @summary Update the product language
|
|
707
697
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
708
698
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -713,7 +703,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
713
703
|
return localVarFp.updateProductLanguage(updateProductLanguageRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
714
704
|
},
|
|
715
705
|
/**
|
|
716
|
-
* This uploads the translations for a given product.
|
|
706
|
+
* This uploads the translations for a given product.
|
|
717
707
|
* @summary Create the product translations
|
|
718
708
|
* @param {string} productSlug
|
|
719
709
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -833,53 +823,46 @@ export interface TranslationApiListProductLanguagesRequest {
|
|
|
833
823
|
readonly authorization?: string
|
|
834
824
|
|
|
835
825
|
/**
|
|
836
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
826
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
837
827
|
* @type {number}
|
|
838
828
|
* @memberof TranslationApiListProductLanguages
|
|
839
829
|
*/
|
|
840
830
|
readonly pageSize?: number
|
|
841
831
|
|
|
842
832
|
/**
|
|
843
|
-
* 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,
|
|
833
|
+
* 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.
|
|
844
834
|
* @type {string}
|
|
845
835
|
* @memberof TranslationApiListProductLanguages
|
|
846
836
|
*/
|
|
847
837
|
readonly pageToken?: string
|
|
848
838
|
|
|
849
839
|
/**
|
|
850
|
-
* Filter the response by one or multiple fields.
|
|
851
|
-
* @type {
|
|
840
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
841
|
+
* @type {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'}
|
|
852
842
|
* @memberof TranslationApiListProductLanguages
|
|
853
843
|
*/
|
|
854
|
-
readonly filter?:
|
|
844
|
+
readonly filter?: 'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'
|
|
855
845
|
|
|
856
846
|
/**
|
|
857
|
-
* Search the
|
|
858
|
-
* @type {
|
|
859
|
-
* @memberof TranslationApiListProductLanguages
|
|
860
|
-
*/
|
|
861
|
-
readonly search?: string
|
|
862
|
-
|
|
863
|
-
/**
|
|
864
|
-
* 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>
|
|
865
|
-
* @type {string}
|
|
847
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
848
|
+
* @type {any}
|
|
866
849
|
* @memberof TranslationApiListProductLanguages
|
|
867
850
|
*/
|
|
868
|
-
readonly
|
|
851
|
+
readonly search?: any
|
|
869
852
|
|
|
870
853
|
/**
|
|
871
|
-
*
|
|
872
|
-
* @type {
|
|
854
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
855
|
+
* @type {'0' | '1' | '2' | '3' | '4' | '5'}
|
|
873
856
|
* @memberof TranslationApiListProductLanguages
|
|
874
857
|
*/
|
|
875
|
-
readonly
|
|
858
|
+
readonly order?: '0' | '1' | '2' | '3' | '4' | '5'
|
|
876
859
|
|
|
877
860
|
/**
|
|
878
|
-
*
|
|
879
|
-
* @type {
|
|
861
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
862
|
+
* @type {number}
|
|
880
863
|
* @memberof TranslationApiListProductLanguages
|
|
881
864
|
*/
|
|
882
|
-
readonly
|
|
865
|
+
readonly expand?: number
|
|
883
866
|
}
|
|
884
867
|
|
|
885
868
|
/**
|
|
@@ -896,53 +879,46 @@ export interface TranslationApiListTranslationsRequest {
|
|
|
896
879
|
readonly authorization?: string
|
|
897
880
|
|
|
898
881
|
/**
|
|
899
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
900
|
-
* @type {
|
|
901
|
-
* @memberof TranslationApiListTranslations
|
|
902
|
-
*/
|
|
903
|
-
readonly pageSize?: number
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* 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.
|
|
907
|
-
* @type {string}
|
|
882
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
883
|
+
* @type {any}
|
|
908
884
|
* @memberof TranslationApiListTranslations
|
|
909
885
|
*/
|
|
910
|
-
readonly
|
|
886
|
+
readonly pageSize?: any
|
|
911
887
|
|
|
912
888
|
/**
|
|
913
|
-
*
|
|
914
|
-
* @type {
|
|
889
|
+
* 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.
|
|
890
|
+
* @type {any}
|
|
915
891
|
* @memberof TranslationApiListTranslations
|
|
916
892
|
*/
|
|
917
|
-
readonly
|
|
893
|
+
readonly pageToken?: any
|
|
918
894
|
|
|
919
895
|
/**
|
|
920
|
-
*
|
|
921
|
-
* @type {
|
|
896
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
897
|
+
* @type {'key'}
|
|
922
898
|
* @memberof TranslationApiListTranslations
|
|
923
899
|
*/
|
|
924
|
-
readonly
|
|
900
|
+
readonly filter?: 'key'
|
|
925
901
|
|
|
926
902
|
/**
|
|
927
|
-
*
|
|
928
|
-
* @type {
|
|
903
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
904
|
+
* @type {any}
|
|
929
905
|
* @memberof TranslationApiListTranslations
|
|
930
906
|
*/
|
|
931
|
-
readonly
|
|
907
|
+
readonly search?: any
|
|
932
908
|
|
|
933
909
|
/**
|
|
934
|
-
*
|
|
935
|
-
* @type {
|
|
910
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
911
|
+
* @type {'0' | '1' | '2'}
|
|
936
912
|
* @memberof TranslationApiListTranslations
|
|
937
913
|
*/
|
|
938
|
-
readonly
|
|
914
|
+
readonly order?: '0' | '1' | '2'
|
|
939
915
|
|
|
940
916
|
/**
|
|
941
|
-
*
|
|
942
|
-
* @type {
|
|
917
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
918
|
+
* @type {number}
|
|
943
919
|
* @memberof TranslationApiListTranslations
|
|
944
920
|
*/
|
|
945
|
-
readonly
|
|
921
|
+
readonly expand?: number
|
|
946
922
|
}
|
|
947
923
|
|
|
948
924
|
/**
|
|
@@ -1009,7 +985,7 @@ export interface TranslationApiUploadProductTranslationsRequest {
|
|
|
1009
985
|
*/
|
|
1010
986
|
export class TranslationApi extends BaseAPI {
|
|
1011
987
|
/**
|
|
1012
|
-
* This creates a product language.
|
|
988
|
+
* This creates a product language.
|
|
1013
989
|
* @summary Create the product language
|
|
1014
990
|
* @param {TranslationApiCreateProductLanguageRequest} requestParameters Request parameters.
|
|
1015
991
|
* @param {*} [options] Override http request option.
|
|
@@ -1021,7 +997,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
1021
997
|
}
|
|
1022
998
|
|
|
1023
999
|
/**
|
|
1024
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
1000
|
+
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
1025
1001
|
* @summary Delete the product language
|
|
1026
1002
|
* @param {TranslationApiDeleteProductLanguageRequest} requestParameters Request parameters.
|
|
1027
1003
|
* @param {*} [options] Override http request option.
|
|
@@ -1033,7 +1009,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
1033
1009
|
}
|
|
1034
1010
|
|
|
1035
1011
|
/**
|
|
1036
|
-
* This downloads the list of translatable fields for a given product.
|
|
1012
|
+
* This downloads the list of translatable fields for a given product.
|
|
1037
1013
|
* @summary Retrieve the product translations
|
|
1038
1014
|
* @param {TranslationApiDownloadProductTranslationsRequest} requestParameters Request parameters.
|
|
1039
1015
|
* @param {*} [options] Override http request option.
|
|
@@ -1045,7 +1021,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
1045
1021
|
}
|
|
1046
1022
|
|
|
1047
1023
|
/**
|
|
1048
|
-
* This gets a product language.
|
|
1024
|
+
* This gets a product language.
|
|
1049
1025
|
* @summary Retrieve the product language
|
|
1050
1026
|
* @param {TranslationApiGetProductLanguageRequest} requestParameters Request parameters.
|
|
1051
1027
|
* @param {*} [options] Override http request option.
|
|
@@ -1057,7 +1033,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
1057
1033
|
}
|
|
1058
1034
|
|
|
1059
1035
|
/**
|
|
1060
|
-
*
|
|
1036
|
+
* This lists the product languages.
|
|
1061
1037
|
* @summary List product languages
|
|
1062
1038
|
* @param {TranslationApiListProductLanguagesRequest} requestParameters Request parameters.
|
|
1063
1039
|
* @param {*} [options] Override http request option.
|
|
@@ -1065,11 +1041,11 @@ export class TranslationApi extends BaseAPI {
|
|
|
1065
1041
|
* @memberof TranslationApi
|
|
1066
1042
|
*/
|
|
1067
1043
|
public listProductLanguages(requestParameters: TranslationApiListProductLanguagesRequest = {}, options?: AxiosRequestConfig) {
|
|
1068
|
-
return TranslationApiFp(this.configuration).listProductLanguages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand,
|
|
1044
|
+
return TranslationApiFp(this.configuration).listProductLanguages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1069
1045
|
}
|
|
1070
1046
|
|
|
1071
1047
|
/**
|
|
1072
|
-
* Returns a list of translations you have previously created.
|
|
1048
|
+
* 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.
|
|
1073
1049
|
* @summary List translations
|
|
1074
1050
|
* @param {TranslationApiListTranslationsRequest} requestParameters Request parameters.
|
|
1075
1051
|
* @param {*} [options] Override http request option.
|
|
@@ -1077,11 +1053,11 @@ export class TranslationApi extends BaseAPI {
|
|
|
1077
1053
|
* @memberof TranslationApi
|
|
1078
1054
|
*/
|
|
1079
1055
|
public listTranslations(requestParameters: TranslationApiListTranslationsRequest = {}, options?: AxiosRequestConfig) {
|
|
1080
|
-
return TranslationApiFp(this.configuration).listTranslations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand,
|
|
1056
|
+
return TranslationApiFp(this.configuration).listTranslations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1081
1057
|
}
|
|
1082
1058
|
|
|
1083
1059
|
/**
|
|
1084
|
-
* This updates the product language with the specified id.
|
|
1060
|
+
* This updates the product language with the specified id.
|
|
1085
1061
|
* @summary Update the product language
|
|
1086
1062
|
* @param {TranslationApiUpdateProductLanguageRequest} requestParameters Request parameters.
|
|
1087
1063
|
* @param {*} [options] Override http request option.
|
|
@@ -1093,7 +1069,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
1093
1069
|
}
|
|
1094
1070
|
|
|
1095
1071
|
/**
|
|
1096
|
-
* This uploads the translations for a given product.
|
|
1072
|
+
* This uploads the translations for a given product.
|
|
1097
1073
|
* @summary Create the product translations
|
|
1098
1074
|
* @param {TranslationApiUploadProductTranslationsRequest} requestParameters Request parameters.
|
|
1099
1075
|
* @param {*} [options] Override http request option.
|