@emilgroup/translation-sdk 1.10.1-beta.2 → 1.10.1-beta.20
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 +6 -0
- package/README.md +2 -2
- package/api/translation-api.ts +340 -0
- package/dist/api/translation-api.d.ts +186 -0
- package/dist/api/translation-api.js +291 -0
- package/dist/models/get-product-translations-response-class.d.ts +25 -0
- package/dist/models/get-product-translations-response-class.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/new-translation-class.d.ts +36 -0
- package/dist/models/new-translation-class.js +15 -0
- package/dist/models/refresh-product-languages-response-class.d.ts +31 -0
- package/dist/models/refresh-product-languages-response-class.js +15 -0
- package/dist/models/save-product-translations-request-dto.d.ts +53 -0
- package/dist/models/save-product-translations-request-dto.js +37 -0
- package/dist/models/skipped-translation-class.d.ts +36 -0
- package/dist/models/skipped-translation-class.js +15 -0
- package/dist/models/translatable-field-class.d.ts +54 -0
- package/dist/models/translatable-field-class.js +15 -0
- package/dist/models/upload-product-translations-response-class.d.ts +13 -0
- package/models/get-product-translations-response-class.ts +31 -0
- package/models/index.ts +6 -0
- package/models/new-translation-class.ts +42 -0
- package/models/refresh-product-languages-response-class.ts +37 -0
- package/models/save-product-translations-request-dto.ts +62 -0
- package/models/skipped-translation-class.ts +42 -0
- package/models/translatable-field-class.ts +60 -0
- package/models/upload-product-translations-response-class.ts +13 -0
- package/package.json +1 -1
|
@@ -15,8 +15,11 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { CreateProductLanguageRequestDto } from '../models';
|
|
16
16
|
import { CreateProductLanguageResponseClass } from '../models';
|
|
17
17
|
import { GetProductLanguageResponseClass } from '../models';
|
|
18
|
+
import { GetProductTranslationsResponseClass } from '../models';
|
|
18
19
|
import { ListProductLanguagesResponseClass } from '../models';
|
|
19
20
|
import { ListTranslationsResponseClass } from '../models';
|
|
21
|
+
import { RefreshProductLanguagesResponseClass } from '../models';
|
|
22
|
+
import { SaveProductTranslationsRequestDto } from '../models';
|
|
20
23
|
import { UpdateProductLanguageRequestDto } from '../models';
|
|
21
24
|
import { UpdateProductLanguageResponseClass } from '../models';
|
|
22
25
|
import { UploadProductTranslationsResponseClass } from '../models';
|
|
@@ -62,6 +65,16 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
|
|
|
62
65
|
* @throws {RequiredError}
|
|
63
66
|
*/
|
|
64
67
|
getProductLanguage: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
68
|
+
/**
|
|
69
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
70
|
+
* @summary Retrieve the product translations
|
|
71
|
+
* @param {string} productSlug
|
|
72
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
73
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
getProductTranslations: (productSlug: string, language: 'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian', authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
78
|
/**
|
|
66
79
|
* 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\"
|
|
67
80
|
* @summary List product languages
|
|
@@ -92,6 +105,25 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
|
|
|
92
105
|
* @throws {RequiredError}
|
|
93
106
|
*/
|
|
94
107
|
listTranslations: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
108
|
+
/**
|
|
109
|
+
* This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
|
|
110
|
+
* @summary Retrieve the refreshed product languages
|
|
111
|
+
* @param {string} productSlug Slug of the product.
|
|
112
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
*/
|
|
116
|
+
refreshProductLanguages: (productSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
117
|
+
/**
|
|
118
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
119
|
+
* @summary Create the product translations
|
|
120
|
+
* @param {string} productSlug
|
|
121
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
122
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
saveProductTranslations: (productSlug: string, saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
95
127
|
/**
|
|
96
128
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
97
129
|
* @summary Update the product language
|
|
@@ -155,6 +187,16 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
|
|
|
155
187
|
* @throws {RequiredError}
|
|
156
188
|
*/
|
|
157
189
|
getProductLanguage(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductLanguageResponseClass>>;
|
|
190
|
+
/**
|
|
191
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
192
|
+
* @summary Retrieve the product translations
|
|
193
|
+
* @param {string} productSlug
|
|
194
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
195
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
getProductTranslations(productSlug: string, language: 'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductTranslationsResponseClass>>;
|
|
158
200
|
/**
|
|
159
201
|
* 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\"
|
|
160
202
|
* @summary List product languages
|
|
@@ -185,6 +227,25 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
|
|
|
185
227
|
* @throws {RequiredError}
|
|
186
228
|
*/
|
|
187
229
|
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>>;
|
|
230
|
+
/**
|
|
231
|
+
* This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
|
|
232
|
+
* @summary Retrieve the refreshed product languages
|
|
233
|
+
* @param {string} productSlug Slug of the product.
|
|
234
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
refreshProductLanguages(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefreshProductLanguagesResponseClass>>;
|
|
239
|
+
/**
|
|
240
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
241
|
+
* @summary Create the product translations
|
|
242
|
+
* @param {string} productSlug
|
|
243
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
244
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
saveProductTranslations(productSlug: string, saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadProductTranslationsResponseClass>>;
|
|
188
249
|
/**
|
|
189
250
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
190
251
|
* @summary Update the product language
|
|
@@ -248,6 +309,16 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
|
|
|
248
309
|
* @throws {RequiredError}
|
|
249
310
|
*/
|
|
250
311
|
getProductLanguage(id: number, authorization?: string, options?: any): AxiosPromise<GetProductLanguageResponseClass>;
|
|
312
|
+
/**
|
|
313
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
314
|
+
* @summary Retrieve the product translations
|
|
315
|
+
* @param {string} productSlug
|
|
316
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
317
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
getProductTranslations(productSlug: string, language: 'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian', authorization?: string, options?: any): AxiosPromise<GetProductTranslationsResponseClass>;
|
|
251
322
|
/**
|
|
252
323
|
* 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\"
|
|
253
324
|
* @summary List product languages
|
|
@@ -278,6 +349,25 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
|
|
|
278
349
|
* @throws {RequiredError}
|
|
279
350
|
*/
|
|
280
351
|
listTranslations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTranslationsResponseClass>;
|
|
352
|
+
/**
|
|
353
|
+
* This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
|
|
354
|
+
* @summary Retrieve the refreshed product languages
|
|
355
|
+
* @param {string} productSlug Slug of the product.
|
|
356
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
refreshProductLanguages(productSlug: string, authorization?: string, options?: any): AxiosPromise<RefreshProductLanguagesResponseClass>;
|
|
361
|
+
/**
|
|
362
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
363
|
+
* @summary Create the product translations
|
|
364
|
+
* @param {string} productSlug
|
|
365
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
366
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
saveProductTranslations(productSlug: string, saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto, authorization?: string, options?: any): AxiosPromise<UploadProductTranslationsResponseClass>;
|
|
281
371
|
/**
|
|
282
372
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
283
373
|
* @summary Update the product language
|
|
@@ -381,6 +471,31 @@ export interface TranslationApiGetProductLanguageRequest {
|
|
|
381
471
|
*/
|
|
382
472
|
readonly authorization?: string;
|
|
383
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* Request parameters for getProductTranslations operation in TranslationApi.
|
|
476
|
+
* @export
|
|
477
|
+
* @interface TranslationApiGetProductTranslationsRequest
|
|
478
|
+
*/
|
|
479
|
+
export interface TranslationApiGetProductTranslationsRequest {
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof TranslationApiGetProductTranslations
|
|
484
|
+
*/
|
|
485
|
+
readonly productSlug: string;
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'}
|
|
489
|
+
* @memberof TranslationApiGetProductTranslations
|
|
490
|
+
*/
|
|
491
|
+
readonly language: 'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian';
|
|
492
|
+
/**
|
|
493
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
494
|
+
* @type {string}
|
|
495
|
+
* @memberof TranslationApiGetProductTranslations
|
|
496
|
+
*/
|
|
497
|
+
readonly authorization?: string;
|
|
498
|
+
}
|
|
384
499
|
/**
|
|
385
500
|
* Request parameters for listProductLanguages operation in TranslationApi.
|
|
386
501
|
* @export
|
|
@@ -491,6 +606,50 @@ export interface TranslationApiListTranslationsRequest {
|
|
|
491
606
|
*/
|
|
492
607
|
readonly filters?: string;
|
|
493
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
* Request parameters for refreshProductLanguages operation in TranslationApi.
|
|
611
|
+
* @export
|
|
612
|
+
* @interface TranslationApiRefreshProductLanguagesRequest
|
|
613
|
+
*/
|
|
614
|
+
export interface TranslationApiRefreshProductLanguagesRequest {
|
|
615
|
+
/**
|
|
616
|
+
* Slug of the product.
|
|
617
|
+
* @type {string}
|
|
618
|
+
* @memberof TranslationApiRefreshProductLanguages
|
|
619
|
+
*/
|
|
620
|
+
readonly productSlug: string;
|
|
621
|
+
/**
|
|
622
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
623
|
+
* @type {string}
|
|
624
|
+
* @memberof TranslationApiRefreshProductLanguages
|
|
625
|
+
*/
|
|
626
|
+
readonly authorization?: string;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Request parameters for saveProductTranslations operation in TranslationApi.
|
|
630
|
+
* @export
|
|
631
|
+
* @interface TranslationApiSaveProductTranslationsRequest
|
|
632
|
+
*/
|
|
633
|
+
export interface TranslationApiSaveProductTranslationsRequest {
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @type {string}
|
|
637
|
+
* @memberof TranslationApiSaveProductTranslations
|
|
638
|
+
*/
|
|
639
|
+
readonly productSlug: string;
|
|
640
|
+
/**
|
|
641
|
+
*
|
|
642
|
+
* @type {SaveProductTranslationsRequestDto}
|
|
643
|
+
* @memberof TranslationApiSaveProductTranslations
|
|
644
|
+
*/
|
|
645
|
+
readonly saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto;
|
|
646
|
+
/**
|
|
647
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
648
|
+
* @type {string}
|
|
649
|
+
* @memberof TranslationApiSaveProductTranslations
|
|
650
|
+
*/
|
|
651
|
+
readonly authorization?: string;
|
|
652
|
+
}
|
|
494
653
|
/**
|
|
495
654
|
* Request parameters for updateProductLanguage operation in TranslationApi.
|
|
496
655
|
* @export
|
|
@@ -584,6 +743,15 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
584
743
|
* @memberof TranslationApi
|
|
585
744
|
*/
|
|
586
745
|
getProductLanguage(requestParameters: TranslationApiGetProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductLanguageResponseClass, any, {}>>;
|
|
746
|
+
/**
|
|
747
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
748
|
+
* @summary Retrieve the product translations
|
|
749
|
+
* @param {TranslationApiGetProductTranslationsRequest} requestParameters Request parameters.
|
|
750
|
+
* @param {*} [options] Override http request option.
|
|
751
|
+
* @throws {RequiredError}
|
|
752
|
+
* @memberof TranslationApi
|
|
753
|
+
*/
|
|
754
|
+
getProductTranslations(requestParameters: TranslationApiGetProductTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductTranslationsResponseClass, any, {}>>;
|
|
587
755
|
/**
|
|
588
756
|
* 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\"
|
|
589
757
|
* @summary List product languages
|
|
@@ -602,6 +770,24 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
602
770
|
* @memberof TranslationApi
|
|
603
771
|
*/
|
|
604
772
|
listTranslations(requestParameters?: TranslationApiListTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTranslationsResponseClass, any, {}>>;
|
|
773
|
+
/**
|
|
774
|
+
* This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
|
|
775
|
+
* @summary Retrieve the refreshed product languages
|
|
776
|
+
* @param {TranslationApiRefreshProductLanguagesRequest} requestParameters Request parameters.
|
|
777
|
+
* @param {*} [options] Override http request option.
|
|
778
|
+
* @throws {RequiredError}
|
|
779
|
+
* @memberof TranslationApi
|
|
780
|
+
*/
|
|
781
|
+
refreshProductLanguages(requestParameters: TranslationApiRefreshProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RefreshProductLanguagesResponseClass, any, {}>>;
|
|
782
|
+
/**
|
|
783
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
784
|
+
* @summary Create the product translations
|
|
785
|
+
* @param {TranslationApiSaveProductTranslationsRequest} requestParameters Request parameters.
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
* @memberof TranslationApi
|
|
789
|
+
*/
|
|
790
|
+
saveProductTranslations(requestParameters: TranslationApiSaveProductTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadProductTranslationsResponseClass, any, {}>>;
|
|
605
791
|
/**
|
|
606
792
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
607
793
|
* @summary Update the product language
|
|
@@ -291,6 +291,60 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
},
|
|
294
|
+
/**
|
|
295
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
296
|
+
* @summary Retrieve the product translations
|
|
297
|
+
* @param {string} productSlug
|
|
298
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
299
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
getProductTranslations: function (productSlug, language, authorization, options) {
|
|
304
|
+
if (options === void 0) { options = {}; }
|
|
305
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
306
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
307
|
+
return __generator(this, function (_a) {
|
|
308
|
+
switch (_a.label) {
|
|
309
|
+
case 0:
|
|
310
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
311
|
+
(0, common_1.assertParamExists)('getProductTranslations', 'productSlug', productSlug);
|
|
312
|
+
// verify required parameter 'language' is not null or undefined
|
|
313
|
+
(0, common_1.assertParamExists)('getProductTranslations', 'language', language);
|
|
314
|
+
localVarPath = "/translationservice/v1/product/{productSlug}/translations"
|
|
315
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
316
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
317
|
+
if (configuration) {
|
|
318
|
+
baseOptions = configuration.baseOptions;
|
|
319
|
+
baseAccessToken = configuration.accessToken;
|
|
320
|
+
}
|
|
321
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
322
|
+
localVarHeaderParameter = {};
|
|
323
|
+
localVarQueryParameter = {};
|
|
324
|
+
// authentication bearer required
|
|
325
|
+
// http bearer authentication required
|
|
326
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
327
|
+
case 1:
|
|
328
|
+
// authentication bearer required
|
|
329
|
+
// http bearer authentication required
|
|
330
|
+
_a.sent();
|
|
331
|
+
if (language !== undefined) {
|
|
332
|
+
localVarQueryParameter['language'] = language;
|
|
333
|
+
}
|
|
334
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
335
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
336
|
+
}
|
|
337
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
338
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
340
|
+
return [2 /*return*/, {
|
|
341
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
342
|
+
options: localVarRequestOptions,
|
|
343
|
+
}];
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
});
|
|
347
|
+
},
|
|
294
348
|
/**
|
|
295
349
|
* 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\"
|
|
296
350
|
* @summary List product languages
|
|
@@ -435,6 +489,107 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
435
489
|
});
|
|
436
490
|
});
|
|
437
491
|
},
|
|
492
|
+
/**
|
|
493
|
+
* This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
|
|
494
|
+
* @summary Retrieve the refreshed product languages
|
|
495
|
+
* @param {string} productSlug Slug of the product.
|
|
496
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
refreshProductLanguages: function (productSlug, authorization, options) {
|
|
501
|
+
if (options === void 0) { options = {}; }
|
|
502
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
503
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
504
|
+
return __generator(this, function (_a) {
|
|
505
|
+
switch (_a.label) {
|
|
506
|
+
case 0:
|
|
507
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
508
|
+
(0, common_1.assertParamExists)('refreshProductLanguages', 'productSlug', productSlug);
|
|
509
|
+
localVarPath = "/translationservice/v1/product/{productSlug}/languages"
|
|
510
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
511
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
512
|
+
if (configuration) {
|
|
513
|
+
baseOptions = configuration.baseOptions;
|
|
514
|
+
baseAccessToken = configuration.accessToken;
|
|
515
|
+
}
|
|
516
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
517
|
+
localVarHeaderParameter = {};
|
|
518
|
+
localVarQueryParameter = {};
|
|
519
|
+
// authentication bearer required
|
|
520
|
+
// http bearer authentication required
|
|
521
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
522
|
+
case 1:
|
|
523
|
+
// authentication bearer required
|
|
524
|
+
// http bearer authentication required
|
|
525
|
+
_a.sent();
|
|
526
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
527
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
528
|
+
}
|
|
529
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
530
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
531
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
532
|
+
return [2 /*return*/, {
|
|
533
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
534
|
+
options: localVarRequestOptions,
|
|
535
|
+
}];
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
},
|
|
540
|
+
/**
|
|
541
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
542
|
+
* @summary Create the product translations
|
|
543
|
+
* @param {string} productSlug
|
|
544
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
545
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
*/
|
|
549
|
+
saveProductTranslations: function (productSlug, saveProductTranslationsRequestDto, authorization, options) {
|
|
550
|
+
if (options === void 0) { options = {}; }
|
|
551
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
552
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
553
|
+
return __generator(this, function (_a) {
|
|
554
|
+
switch (_a.label) {
|
|
555
|
+
case 0:
|
|
556
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
557
|
+
(0, common_1.assertParamExists)('saveProductTranslations', 'productSlug', productSlug);
|
|
558
|
+
// verify required parameter 'saveProductTranslationsRequestDto' is not null or undefined
|
|
559
|
+
(0, common_1.assertParamExists)('saveProductTranslations', 'saveProductTranslationsRequestDto', saveProductTranslationsRequestDto);
|
|
560
|
+
localVarPath = "/translationservice/v1/product/{productSlug}/translations"
|
|
561
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
562
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
563
|
+
if (configuration) {
|
|
564
|
+
baseOptions = configuration.baseOptions;
|
|
565
|
+
baseAccessToken = configuration.accessToken;
|
|
566
|
+
}
|
|
567
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
568
|
+
localVarHeaderParameter = {};
|
|
569
|
+
localVarQueryParameter = {};
|
|
570
|
+
// authentication bearer required
|
|
571
|
+
// http bearer authentication required
|
|
572
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
573
|
+
case 1:
|
|
574
|
+
// authentication bearer required
|
|
575
|
+
// http bearer authentication required
|
|
576
|
+
_a.sent();
|
|
577
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
578
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
579
|
+
}
|
|
580
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
581
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
582
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
583
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
584
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveProductTranslationsRequestDto, localVarRequestOptions, configuration);
|
|
585
|
+
return [2 /*return*/, {
|
|
586
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
587
|
+
options: localVarRequestOptions,
|
|
588
|
+
}];
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
},
|
|
438
593
|
/**
|
|
439
594
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
440
595
|
* @summary Update the product language
|
|
@@ -639,6 +794,28 @@ var TranslationApiFp = function (configuration) {
|
|
|
639
794
|
});
|
|
640
795
|
});
|
|
641
796
|
},
|
|
797
|
+
/**
|
|
798
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
799
|
+
* @summary Retrieve the product translations
|
|
800
|
+
* @param {string} productSlug
|
|
801
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
802
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
getProductTranslations: function (productSlug, language, authorization, options) {
|
|
807
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
808
|
+
var localVarAxiosArgs;
|
|
809
|
+
return __generator(this, function (_a) {
|
|
810
|
+
switch (_a.label) {
|
|
811
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductTranslations(productSlug, language, authorization, options)];
|
|
812
|
+
case 1:
|
|
813
|
+
localVarAxiosArgs = _a.sent();
|
|
814
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
});
|
|
818
|
+
},
|
|
642
819
|
/**
|
|
643
820
|
* 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\"
|
|
644
821
|
* @summary List product languages
|
|
@@ -693,6 +870,49 @@ var TranslationApiFp = function (configuration) {
|
|
|
693
870
|
});
|
|
694
871
|
});
|
|
695
872
|
},
|
|
873
|
+
/**
|
|
874
|
+
* This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
|
|
875
|
+
* @summary Retrieve the refreshed product languages
|
|
876
|
+
* @param {string} productSlug Slug of the product.
|
|
877
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
878
|
+
* @param {*} [options] Override http request option.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
*/
|
|
881
|
+
refreshProductLanguages: function (productSlug, authorization, options) {
|
|
882
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
883
|
+
var localVarAxiosArgs;
|
|
884
|
+
return __generator(this, function (_a) {
|
|
885
|
+
switch (_a.label) {
|
|
886
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.refreshProductLanguages(productSlug, authorization, options)];
|
|
887
|
+
case 1:
|
|
888
|
+
localVarAxiosArgs = _a.sent();
|
|
889
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
});
|
|
893
|
+
},
|
|
894
|
+
/**
|
|
895
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
896
|
+
* @summary Create the product translations
|
|
897
|
+
* @param {string} productSlug
|
|
898
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
899
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
900
|
+
* @param {*} [options] Override http request option.
|
|
901
|
+
* @throws {RequiredError}
|
|
902
|
+
*/
|
|
903
|
+
saveProductTranslations: function (productSlug, saveProductTranslationsRequestDto, authorization, options) {
|
|
904
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
905
|
+
var localVarAxiosArgs;
|
|
906
|
+
return __generator(this, function (_a) {
|
|
907
|
+
switch (_a.label) {
|
|
908
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.saveProductTranslations(productSlug, saveProductTranslationsRequestDto, authorization, options)];
|
|
909
|
+
case 1:
|
|
910
|
+
localVarAxiosArgs = _a.sent();
|
|
911
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
912
|
+
}
|
|
913
|
+
});
|
|
914
|
+
});
|
|
915
|
+
},
|
|
696
916
|
/**
|
|
697
917
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
698
918
|
* @summary Update the product language
|
|
@@ -792,6 +1012,18 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
792
1012
|
getProductLanguage: function (id, authorization, options) {
|
|
793
1013
|
return localVarFp.getProductLanguage(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
794
1014
|
},
|
|
1015
|
+
/**
|
|
1016
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
1017
|
+
* @summary Retrieve the product translations
|
|
1018
|
+
* @param {string} productSlug
|
|
1019
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
1020
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1021
|
+
* @param {*} [options] Override http request option.
|
|
1022
|
+
* @throws {RequiredError}
|
|
1023
|
+
*/
|
|
1024
|
+
getProductTranslations: function (productSlug, language, authorization, options) {
|
|
1025
|
+
return localVarFp.getProductTranslations(productSlug, language, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1026
|
+
},
|
|
795
1027
|
/**
|
|
796
1028
|
* 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\"
|
|
797
1029
|
* @summary List product languages
|
|
@@ -826,6 +1058,29 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
826
1058
|
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
827
1059
|
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
828
1060
|
},
|
|
1061
|
+
/**
|
|
1062
|
+
* This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
|
|
1063
|
+
* @summary Retrieve the refreshed product languages
|
|
1064
|
+
* @param {string} productSlug Slug of the product.
|
|
1065
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1066
|
+
* @param {*} [options] Override http request option.
|
|
1067
|
+
* @throws {RequiredError}
|
|
1068
|
+
*/
|
|
1069
|
+
refreshProductLanguages: function (productSlug, authorization, options) {
|
|
1070
|
+
return localVarFp.refreshProductLanguages(productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1071
|
+
},
|
|
1072
|
+
/**
|
|
1073
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
1074
|
+
* @summary Create the product translations
|
|
1075
|
+
* @param {string} productSlug
|
|
1076
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
1077
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1078
|
+
* @param {*} [options] Override http request option.
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
*/
|
|
1081
|
+
saveProductTranslations: function (productSlug, saveProductTranslationsRequestDto, authorization, options) {
|
|
1082
|
+
return localVarFp.saveProductTranslations(productSlug, saveProductTranslationsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1083
|
+
},
|
|
829
1084
|
/**
|
|
830
1085
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
831
1086
|
* @summary Update the product language
|
|
@@ -912,6 +1167,18 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
912
1167
|
var _this = this;
|
|
913
1168
|
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
914
1169
|
};
|
|
1170
|
+
/**
|
|
1171
|
+
* This returns a product\'s translatable fields together with their current translations as JSON. Same data as the XLSX download, for editing in the UI. **Required Permissions** \"translation-management.translations.view\"
|
|
1172
|
+
* @summary Retrieve the product translations
|
|
1173
|
+
* @param {TranslationApiGetProductTranslationsRequest} requestParameters Request parameters.
|
|
1174
|
+
* @param {*} [options] Override http request option.
|
|
1175
|
+
* @throws {RequiredError}
|
|
1176
|
+
* @memberof TranslationApi
|
|
1177
|
+
*/
|
|
1178
|
+
TranslationApi.prototype.getProductTranslations = function (requestParameters, options) {
|
|
1179
|
+
var _this = this;
|
|
1180
|
+
return (0, exports.TranslationApiFp)(this.configuration).getProductTranslations(requestParameters.productSlug, requestParameters.language, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1181
|
+
};
|
|
915
1182
|
/**
|
|
916
1183
|
* 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\"
|
|
917
1184
|
* @summary List product languages
|
|
@@ -938,6 +1205,30 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
938
1205
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
939
1206
|
return (0, exports.TranslationApiFp)(this.configuration).listTranslations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
940
1207
|
};
|
|
1208
|
+
/**
|
|
1209
|
+
* This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
|
|
1210
|
+
* @summary Retrieve the refreshed product languages
|
|
1211
|
+
* @param {TranslationApiRefreshProductLanguagesRequest} requestParameters Request parameters.
|
|
1212
|
+
* @param {*} [options] Override http request option.
|
|
1213
|
+
* @throws {RequiredError}
|
|
1214
|
+
* @memberof TranslationApi
|
|
1215
|
+
*/
|
|
1216
|
+
TranslationApi.prototype.refreshProductLanguages = function (requestParameters, options) {
|
|
1217
|
+
var _this = this;
|
|
1218
|
+
return (0, exports.TranslationApiFp)(this.configuration).refreshProductLanguages(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1219
|
+
};
|
|
1220
|
+
/**
|
|
1221
|
+
* This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
|
|
1222
|
+
* @summary Create the product translations
|
|
1223
|
+
* @param {TranslationApiSaveProductTranslationsRequest} requestParameters Request parameters.
|
|
1224
|
+
* @param {*} [options] Override http request option.
|
|
1225
|
+
* @throws {RequiredError}
|
|
1226
|
+
* @memberof TranslationApi
|
|
1227
|
+
*/
|
|
1228
|
+
TranslationApi.prototype.saveProductTranslations = function (requestParameters, options) {
|
|
1229
|
+
var _this = this;
|
|
1230
|
+
return (0, exports.TranslationApiFp)(this.configuration).saveProductTranslations(requestParameters.productSlug, requestParameters.saveProductTranslationsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1231
|
+
};
|
|
941
1232
|
/**
|
|
942
1233
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
943
1234
|
* @summary Update the product language
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL TranslationService
|
|
3
|
+
* The EMIL TranslationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { TranslatableFieldClass } from './translatable-field-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetProductTranslationsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetProductTranslationsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The list of translatableFields.
|
|
21
|
+
* @type {Array<TranslatableFieldClass>}
|
|
22
|
+
* @memberof GetProductTranslationsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'translations': Array<TranslatableFieldClass>;
|
|
25
|
+
}
|