@emilgroup/translation-sdk-node 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 +20 -4
- package/api/default-api.ts +128 -0
- package/api/translation-api.ts +141 -112
- package/api.ts +2 -0
- package/base.ts +49 -6
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/default-api.d.ts +70 -0
- package/dist/api/default-api.js +204 -0
- package/dist/api/translation-api.d.ts +132 -114
- package/dist/api/translation-api.js +92 -80
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +15 -4
- package/dist/base.js +45 -4
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/dist/models/create-product-language-request-dto.d.ts +1 -1
- package/dist/models/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 +3 -3
- package/tsconfig.json +1 -0
package/api/translation-api.ts
CHANGED
|
@@ -47,7 +47,7 @@ const FormData = require('form-data');
|
|
|
47
47
|
export const TranslationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
48
48
|
return {
|
|
49
49
|
/**
|
|
50
|
-
* This creates a product language.
|
|
50
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
51
51
|
* @summary Create the product language
|
|
52
52
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
53
53
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -94,7 +94,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
/**
|
|
97
|
-
* 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. **Required Permissions** \"translation-management.translations.delete\"
|
|
98
98
|
* @summary Delete the product language
|
|
99
99
|
* @param {number} id Id of the product language.
|
|
100
100
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -139,7 +139,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
139
139
|
};
|
|
140
140
|
},
|
|
141
141
|
/**
|
|
142
|
-
* This downloads the list of translatable fields for a given product.
|
|
142
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
143
143
|
* @summary Retrieve the product translations
|
|
144
144
|
* @param {string} productSlug
|
|
145
145
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -191,7 +191,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
191
191
|
};
|
|
192
192
|
},
|
|
193
193
|
/**
|
|
194
|
-
* This gets a product language.
|
|
194
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
195
195
|
* @summary Retrieve the product language
|
|
196
196
|
* @param {number} id Id of the product language.
|
|
197
197
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -236,19 +236,20 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
236
236
|
};
|
|
237
237
|
},
|
|
238
238
|
/**
|
|
239
|
-
*
|
|
239
|
+
* 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
240
|
* @summary List product languages
|
|
241
241
|
* @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 {
|
|
242
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. 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 {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>
|
|
245
|
+
* @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>
|
|
246
|
+
* @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>
|
|
247
|
+
* @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/>
|
|
248
|
+
* @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
249
|
* @param {*} [options] Override http request option.
|
|
249
250
|
* @throws {RequiredError}
|
|
250
251
|
*/
|
|
251
|
-
listProductLanguages: async (authorization?: string, pageSize?: number, pageToken?: string, filter?:
|
|
252
|
+
listProductLanguages: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
252
253
|
const localVarPath = `/translationservice/v1/languages`;
|
|
253
254
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
255
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -291,6 +292,10 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
291
292
|
localVarQueryParameter['expand'] = expand;
|
|
292
293
|
}
|
|
293
294
|
|
|
295
|
+
if (filters !== undefined) {
|
|
296
|
+
localVarQueryParameter['filters'] = filters;
|
|
297
|
+
}
|
|
298
|
+
|
|
294
299
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
295
300
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
296
301
|
}
|
|
@@ -307,19 +312,20 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
307
312
|
};
|
|
308
313
|
},
|
|
309
314
|
/**
|
|
310
|
-
* Returns a list of translations you have previously created.
|
|
315
|
+
* 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
316
|
* @summary List translations
|
|
312
317
|
* @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 {
|
|
318
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
319
|
+
* @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.
|
|
320
|
+
* @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>
|
|
321
|
+
* @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>
|
|
322
|
+
* @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>
|
|
323
|
+
* @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/>
|
|
324
|
+
* @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
325
|
* @param {*} [options] Override http request option.
|
|
320
326
|
* @throws {RequiredError}
|
|
321
327
|
*/
|
|
322
|
-
listTranslations: async (authorization?: string, pageSize?:
|
|
328
|
+
listTranslations: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
323
329
|
const localVarPath = `/translationservice/v1/translations`;
|
|
324
330
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
325
331
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -362,6 +368,10 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
362
368
|
localVarQueryParameter['expand'] = expand;
|
|
363
369
|
}
|
|
364
370
|
|
|
371
|
+
if (filters !== undefined) {
|
|
372
|
+
localVarQueryParameter['filters'] = filters;
|
|
373
|
+
}
|
|
374
|
+
|
|
365
375
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
366
376
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
367
377
|
}
|
|
@@ -378,7 +388,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
378
388
|
};
|
|
379
389
|
},
|
|
380
390
|
/**
|
|
381
|
-
* This updates the product language with the specified id.
|
|
391
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
382
392
|
* @summary Update the product language
|
|
383
393
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
384
394
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -425,7 +435,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
425
435
|
};
|
|
426
436
|
},
|
|
427
437
|
/**
|
|
428
|
-
* This uploads the translations for a given product.
|
|
438
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
429
439
|
* @summary Create the product translations
|
|
430
440
|
* @param {string} productSlug
|
|
431
441
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -474,6 +484,7 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
474
484
|
|
|
475
485
|
|
|
476
486
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
487
|
+
|
|
477
488
|
|
|
478
489
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
479
490
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -496,7 +507,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
496
507
|
const localVarAxiosParamCreator = TranslationApiAxiosParamCreator(configuration)
|
|
497
508
|
return {
|
|
498
509
|
/**
|
|
499
|
-
* This creates a product language.
|
|
510
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
500
511
|
* @summary Create the product language
|
|
501
512
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
502
513
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -508,7 +519,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
508
519
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
509
520
|
},
|
|
510
521
|
/**
|
|
511
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
522
|
+
* 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
523
|
* @summary Delete the product language
|
|
513
524
|
* @param {number} id Id of the product language.
|
|
514
525
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -520,7 +531,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
520
531
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
521
532
|
},
|
|
522
533
|
/**
|
|
523
|
-
* This downloads the list of translatable fields for a given product.
|
|
534
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
524
535
|
* @summary Retrieve the product translations
|
|
525
536
|
* @param {string} productSlug
|
|
526
537
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -533,7 +544,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
533
544
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
534
545
|
},
|
|
535
546
|
/**
|
|
536
|
-
* This gets a product language.
|
|
547
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
537
548
|
* @summary Retrieve the product language
|
|
538
549
|
* @param {number} id Id of the product language.
|
|
539
550
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -545,41 +556,43 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
545
556
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
546
557
|
},
|
|
547
558
|
/**
|
|
548
|
-
*
|
|
559
|
+
* 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
560
|
* @summary List product languages
|
|
550
561
|
* @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 {
|
|
562
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
563
|
+
* @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.
|
|
564
|
+
* @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>
|
|
565
|
+
* @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>
|
|
566
|
+
* @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>
|
|
567
|
+
* @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/>
|
|
568
|
+
* @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
569
|
* @param {*} [options] Override http request option.
|
|
558
570
|
* @throws {RequiredError}
|
|
559
571
|
*/
|
|
560
|
-
async listProductLanguages(authorization?: string, pageSize?: number, pageToken?: string, filter?:
|
|
561
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
572
|
+
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>> {
|
|
573
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
562
574
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
563
575
|
},
|
|
564
576
|
/**
|
|
565
|
-
* Returns a list of translations you have previously created.
|
|
577
|
+
* 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
578
|
* @summary List translations
|
|
567
579
|
* @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 {
|
|
580
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
581
|
+
* @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.
|
|
582
|
+
* @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>
|
|
583
|
+
* @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>
|
|
584
|
+
* @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>
|
|
585
|
+
* @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/>
|
|
586
|
+
* @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
587
|
* @param {*} [options] Override http request option.
|
|
575
588
|
* @throws {RequiredError}
|
|
576
589
|
*/
|
|
577
|
-
async listTranslations(authorization?: string, pageSize?:
|
|
578
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
590
|
+
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>> {
|
|
591
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
579
592
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
580
593
|
},
|
|
581
594
|
/**
|
|
582
|
-
* This updates the product language with the specified id.
|
|
595
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
583
596
|
* @summary Update the product language
|
|
584
597
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
585
598
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -591,7 +604,7 @@ export const TranslationApiFp = function(configuration?: Configuration) {
|
|
|
591
604
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
592
605
|
},
|
|
593
606
|
/**
|
|
594
|
-
* This uploads the translations for a given product.
|
|
607
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
595
608
|
* @summary Create the product translations
|
|
596
609
|
* @param {string} productSlug
|
|
597
610
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -615,7 +628,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
615
628
|
const localVarFp = TranslationApiFp(configuration)
|
|
616
629
|
return {
|
|
617
630
|
/**
|
|
618
|
-
* This creates a product language.
|
|
631
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
619
632
|
* @summary Create the product language
|
|
620
633
|
* @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
|
|
621
634
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -626,7 +639,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
626
639
|
return localVarFp.createProductLanguage(createProductLanguageRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
627
640
|
},
|
|
628
641
|
/**
|
|
629
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
642
|
+
* 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
643
|
* @summary Delete the product language
|
|
631
644
|
* @param {number} id Id of the product language.
|
|
632
645
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -637,7 +650,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
637
650
|
return localVarFp.deleteProductLanguage(id, authorization, options).then((request) => request(axios, basePath));
|
|
638
651
|
},
|
|
639
652
|
/**
|
|
640
|
-
* This downloads the list of translatable fields for a given product.
|
|
653
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
641
654
|
* @summary Retrieve the product translations
|
|
642
655
|
* @param {string} productSlug
|
|
643
656
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -649,7 +662,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
649
662
|
return localVarFp.downloadProductTranslations(productSlug, language, authorization, options).then((request) => request(axios, basePath));
|
|
650
663
|
},
|
|
651
664
|
/**
|
|
652
|
-
* This gets a product language.
|
|
665
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
653
666
|
* @summary Retrieve the product language
|
|
654
667
|
* @param {number} id Id of the product language.
|
|
655
668
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -660,39 +673,41 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
660
673
|
return localVarFp.getProductLanguage(id, authorization, options).then((request) => request(axios, basePath));
|
|
661
674
|
},
|
|
662
675
|
/**
|
|
663
|
-
*
|
|
676
|
+
* 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
677
|
* @summary List product languages
|
|
665
678
|
* @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 {
|
|
679
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
680
|
+
* @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.
|
|
681
|
+
* @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>
|
|
682
|
+
* @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>
|
|
683
|
+
* @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>
|
|
684
|
+
* @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/>
|
|
685
|
+
* @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
686
|
* @param {*} [options] Override http request option.
|
|
673
687
|
* @throws {RequiredError}
|
|
674
688
|
*/
|
|
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));
|
|
689
|
+
listProductLanguages(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductLanguagesResponseClass> {
|
|
690
|
+
return localVarFp.listProductLanguages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
677
691
|
},
|
|
678
692
|
/**
|
|
679
|
-
* Returns a list of translations you have previously created.
|
|
693
|
+
* 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
694
|
* @summary List translations
|
|
681
695
|
* @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 {
|
|
696
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
697
|
+
* @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.
|
|
698
|
+
* @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>
|
|
699
|
+
* @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>
|
|
700
|
+
* @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>
|
|
701
|
+
* @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/>
|
|
702
|
+
* @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
703
|
* @param {*} [options] Override http request option.
|
|
689
704
|
* @throws {RequiredError}
|
|
690
705
|
*/
|
|
691
|
-
listTranslations(authorization?: string, pageSize?:
|
|
692
|
-
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
706
|
+
listTranslations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTranslationsResponseClass> {
|
|
707
|
+
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
693
708
|
},
|
|
694
709
|
/**
|
|
695
|
-
* This updates the product language with the specified id.
|
|
710
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
696
711
|
* @summary Update the product language
|
|
697
712
|
* @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
|
|
698
713
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -703,7 +718,7 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
|
|
|
703
718
|
return localVarFp.updateProductLanguage(updateProductLanguageRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
704
719
|
},
|
|
705
720
|
/**
|
|
706
|
-
* This uploads the translations for a given product.
|
|
721
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
707
722
|
* @summary Create the product translations
|
|
708
723
|
* @param {string} productSlug
|
|
709
724
|
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
@@ -823,46 +838,53 @@ export interface TranslationApiListProductLanguagesRequest {
|
|
|
823
838
|
readonly authorization?: string
|
|
824
839
|
|
|
825
840
|
/**
|
|
826
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
841
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
827
842
|
* @type {number}
|
|
828
843
|
* @memberof TranslationApiListProductLanguages
|
|
829
844
|
*/
|
|
830
845
|
readonly pageSize?: number
|
|
831
846
|
|
|
832
847
|
/**
|
|
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,
|
|
848
|
+
* 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
849
|
* @type {string}
|
|
835
850
|
* @memberof TranslationApiListProductLanguages
|
|
836
851
|
*/
|
|
837
852
|
readonly pageToken?: string
|
|
838
853
|
|
|
839
854
|
/**
|
|
840
|
-
* Filter the response by one or multiple fields.
|
|
841
|
-
* @type {
|
|
855
|
+
* 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>
|
|
856
|
+
* @type {string}
|
|
842
857
|
* @memberof TranslationApiListProductLanguages
|
|
843
858
|
*/
|
|
844
|
-
readonly filter?:
|
|
859
|
+
readonly filter?: string
|
|
845
860
|
|
|
846
861
|
/**
|
|
847
|
-
* Search the
|
|
848
|
-
* @type {
|
|
862
|
+
* 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>
|
|
863
|
+
* @type {string}
|
|
864
|
+
* @memberof TranslationApiListProductLanguages
|
|
865
|
+
*/
|
|
866
|
+
readonly search?: string
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* 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>
|
|
870
|
+
* @type {string}
|
|
849
871
|
* @memberof TranslationApiListProductLanguages
|
|
850
872
|
*/
|
|
851
|
-
readonly
|
|
873
|
+
readonly order?: string
|
|
852
874
|
|
|
853
875
|
/**
|
|
854
|
-
*
|
|
855
|
-
* @type {
|
|
876
|
+
* 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/>
|
|
877
|
+
* @type {string}
|
|
856
878
|
* @memberof TranslationApiListProductLanguages
|
|
857
879
|
*/
|
|
858
|
-
readonly
|
|
880
|
+
readonly expand?: string
|
|
859
881
|
|
|
860
882
|
/**
|
|
861
|
-
*
|
|
862
|
-
* @type {
|
|
883
|
+
* 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>
|
|
884
|
+
* @type {string}
|
|
863
885
|
* @memberof TranslationApiListProductLanguages
|
|
864
886
|
*/
|
|
865
|
-
readonly
|
|
887
|
+
readonly filters?: string
|
|
866
888
|
}
|
|
867
889
|
|
|
868
890
|
/**
|
|
@@ -879,46 +901,53 @@ export interface TranslationApiListTranslationsRequest {
|
|
|
879
901
|
readonly authorization?: string
|
|
880
902
|
|
|
881
903
|
/**
|
|
882
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
883
|
-
* @type {
|
|
904
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
905
|
+
* @type {number}
|
|
884
906
|
* @memberof TranslationApiListTranslations
|
|
885
907
|
*/
|
|
886
|
-
readonly pageSize?:
|
|
908
|
+
readonly pageSize?: number
|
|
887
909
|
|
|
888
910
|
/**
|
|
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 {
|
|
911
|
+
* 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.
|
|
912
|
+
* @type {string}
|
|
891
913
|
* @memberof TranslationApiListTranslations
|
|
892
914
|
*/
|
|
893
|
-
readonly pageToken?:
|
|
915
|
+
readonly pageToken?: string
|
|
894
916
|
|
|
895
917
|
/**
|
|
896
|
-
* Filter the response by one or multiple fields.
|
|
897
|
-
* @type {
|
|
918
|
+
* 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>
|
|
919
|
+
* @type {string}
|
|
898
920
|
* @memberof TranslationApiListTranslations
|
|
899
921
|
*/
|
|
900
|
-
readonly filter?:
|
|
922
|
+
readonly filter?: string
|
|
901
923
|
|
|
902
924
|
/**
|
|
903
|
-
* Search the
|
|
904
|
-
* @type {
|
|
925
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
926
|
+
* @type {string}
|
|
905
927
|
* @memberof TranslationApiListTranslations
|
|
906
928
|
*/
|
|
907
|
-
readonly search?:
|
|
929
|
+
readonly search?: string
|
|
908
930
|
|
|
909
931
|
/**
|
|
910
|
-
*
|
|
911
|
-
* @type {
|
|
932
|
+
* 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>
|
|
933
|
+
* @type {string}
|
|
912
934
|
* @memberof TranslationApiListTranslations
|
|
913
935
|
*/
|
|
914
|
-
readonly order?:
|
|
936
|
+
readonly order?: string
|
|
915
937
|
|
|
916
938
|
/**
|
|
917
|
-
*
|
|
918
|
-
* @type {
|
|
939
|
+
* 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/>
|
|
940
|
+
* @type {string}
|
|
941
|
+
* @memberof TranslationApiListTranslations
|
|
942
|
+
*/
|
|
943
|
+
readonly expand?: string
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* 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>
|
|
947
|
+
* @type {string}
|
|
919
948
|
* @memberof TranslationApiListTranslations
|
|
920
949
|
*/
|
|
921
|
-
readonly
|
|
950
|
+
readonly filters?: string
|
|
922
951
|
}
|
|
923
952
|
|
|
924
953
|
/**
|
|
@@ -985,7 +1014,7 @@ export interface TranslationApiUploadProductTranslationsRequest {
|
|
|
985
1014
|
*/
|
|
986
1015
|
export class TranslationApi extends BaseAPI {
|
|
987
1016
|
/**
|
|
988
|
-
* This creates a product language.
|
|
1017
|
+
* This creates a product language. **Required Permissions** \"translation-management.translations.create\"
|
|
989
1018
|
* @summary Create the product language
|
|
990
1019
|
* @param {TranslationApiCreateProductLanguageRequest} requestParameters Request parameters.
|
|
991
1020
|
* @param {*} [options] Override http request option.
|
|
@@ -997,7 +1026,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
997
1026
|
}
|
|
998
1027
|
|
|
999
1028
|
/**
|
|
1000
|
-
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
|
|
1029
|
+
* 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
1030
|
* @summary Delete the product language
|
|
1002
1031
|
* @param {TranslationApiDeleteProductLanguageRequest} requestParameters Request parameters.
|
|
1003
1032
|
* @param {*} [options] Override http request option.
|
|
@@ -1009,7 +1038,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
1009
1038
|
}
|
|
1010
1039
|
|
|
1011
1040
|
/**
|
|
1012
|
-
* This downloads the list of translatable fields for a given product.
|
|
1041
|
+
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
1013
1042
|
* @summary Retrieve the product translations
|
|
1014
1043
|
* @param {TranslationApiDownloadProductTranslationsRequest} requestParameters Request parameters.
|
|
1015
1044
|
* @param {*} [options] Override http request option.
|
|
@@ -1021,7 +1050,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
1021
1050
|
}
|
|
1022
1051
|
|
|
1023
1052
|
/**
|
|
1024
|
-
* This gets a product language.
|
|
1053
|
+
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
1025
1054
|
* @summary Retrieve the product language
|
|
1026
1055
|
* @param {TranslationApiGetProductLanguageRequest} requestParameters Request parameters.
|
|
1027
1056
|
* @param {*} [options] Override http request option.
|
|
@@ -1033,7 +1062,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
1033
1062
|
}
|
|
1034
1063
|
|
|
1035
1064
|
/**
|
|
1036
|
-
*
|
|
1065
|
+
* 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
1066
|
* @summary List product languages
|
|
1038
1067
|
* @param {TranslationApiListProductLanguagesRequest} requestParameters Request parameters.
|
|
1039
1068
|
* @param {*} [options] Override http request option.
|
|
@@ -1041,11 +1070,11 @@ export class TranslationApi extends BaseAPI {
|
|
|
1041
1070
|
* @memberof TranslationApi
|
|
1042
1071
|
*/
|
|
1043
1072
|
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));
|
|
1073
|
+
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
1074
|
}
|
|
1046
1075
|
|
|
1047
1076
|
/**
|
|
1048
|
-
* Returns a list of translations you have previously created.
|
|
1077
|
+
* 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
1078
|
* @summary List translations
|
|
1050
1079
|
* @param {TranslationApiListTranslationsRequest} requestParameters Request parameters.
|
|
1051
1080
|
* @param {*} [options] Override http request option.
|
|
@@ -1053,11 +1082,11 @@ export class TranslationApi extends BaseAPI {
|
|
|
1053
1082
|
* @memberof TranslationApi
|
|
1054
1083
|
*/
|
|
1055
1084
|
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));
|
|
1085
|
+
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
1086
|
}
|
|
1058
1087
|
|
|
1059
1088
|
/**
|
|
1060
|
-
* This updates the product language with the specified id.
|
|
1089
|
+
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
1061
1090
|
* @summary Update the product language
|
|
1062
1091
|
* @param {TranslationApiUpdateProductLanguageRequest} requestParameters Request parameters.
|
|
1063
1092
|
* @param {*} [options] Override http request option.
|
|
@@ -1069,7 +1098,7 @@ export class TranslationApi extends BaseAPI {
|
|
|
1069
1098
|
}
|
|
1070
1099
|
|
|
1071
1100
|
/**
|
|
1072
|
-
* This uploads the translations for a given product.
|
|
1101
|
+
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
1073
1102
|
* @summary Create the product translations
|
|
1074
1103
|
* @param {TranslationApiUploadProductTranslationsRequest} requestParameters Request parameters.
|
|
1075
1104
|
* @param {*} [options] Override http request option.
|