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