@emilgroup/translation-sdk 1.10.1-beta.13 → 1.10.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -6
- package/README.md +2 -2
- package/api/translation-api.ts +0 -340
- package/dist/api/translation-api.d.ts +0 -186
- package/dist/api/translation-api.js +0 -291
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -6
- package/dist/models/upload-product-translations-response-class.d.ts +0 -13
- package/models/index.ts +0 -6
- package/models/upload-product-translations-response-class.ts +0 -13
- package/package.json +1 -1
- package/dist/models/get-product-translations-response-class.d.ts +0 -25
- package/dist/models/get-product-translations-response-class.js +0 -15
- package/dist/models/new-translation-class.d.ts +0 -36
- package/dist/models/new-translation-class.js +0 -15
- package/dist/models/refresh-product-languages-response-class.d.ts +0 -31
- package/dist/models/refresh-product-languages-response-class.js +0 -15
- package/dist/models/save-product-translations-request-dto.d.ts +0 -53
- package/dist/models/save-product-translations-request-dto.js +0 -37
- package/dist/models/skipped-translation-class.d.ts +0 -36
- package/dist/models/skipped-translation-class.js +0 -15
- package/dist/models/translatable-field-class.d.ts +0 -54
- package/dist/models/translatable-field-class.js +0 -15
- package/models/get-product-translations-response-class.ts +0 -31
- package/models/new-translation-class.ts +0 -42
- package/models/refresh-product-languages-response-class.ts +0 -37
- package/models/save-product-translations-request-dto.ts +0 -62
- package/models/skipped-translation-class.ts +0 -42
- package/models/translatable-field-class.ts +0 -60
|
@@ -15,11 +15,8 @@ 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';
|
|
19
18
|
import { ListProductLanguagesResponseClass } from '../models';
|
|
20
19
|
import { ListTranslationsResponseClass } from '../models';
|
|
21
|
-
import { RefreshProductLanguagesResponseClass } from '../models';
|
|
22
|
-
import { SaveProductTranslationsRequestDto } from '../models';
|
|
23
20
|
import { UpdateProductLanguageRequestDto } from '../models';
|
|
24
21
|
import { UpdateProductLanguageResponseClass } from '../models';
|
|
25
22
|
import { UploadProductTranslationsResponseClass } from '../models';
|
|
@@ -65,16 +62,6 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
|
|
|
65
62
|
* @throws {RequiredError}
|
|
66
63
|
*/
|
|
67
64
|
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>;
|
|
78
65
|
/**
|
|
79
66
|
* 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\"
|
|
80
67
|
* @summary List product languages
|
|
@@ -105,25 +92,6 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
|
|
|
105
92
|
* @throws {RequiredError}
|
|
106
93
|
*/
|
|
107
94
|
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>;
|
|
127
95
|
/**
|
|
128
96
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
129
97
|
* @summary Update the product language
|
|
@@ -187,16 +155,6 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
|
|
|
187
155
|
* @throws {RequiredError}
|
|
188
156
|
*/
|
|
189
157
|
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>>;
|
|
200
158
|
/**
|
|
201
159
|
* 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\"
|
|
202
160
|
* @summary List product languages
|
|
@@ -227,25 +185,6 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
|
|
|
227
185
|
* @throws {RequiredError}
|
|
228
186
|
*/
|
|
229
187
|
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>>;
|
|
249
188
|
/**
|
|
250
189
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
251
190
|
* @summary Update the product language
|
|
@@ -309,16 +248,6 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
|
|
|
309
248
|
* @throws {RequiredError}
|
|
310
249
|
*/
|
|
311
250
|
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>;
|
|
322
251
|
/**
|
|
323
252
|
* 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\"
|
|
324
253
|
* @summary List product languages
|
|
@@ -349,25 +278,6 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
|
|
|
349
278
|
* @throws {RequiredError}
|
|
350
279
|
*/
|
|
351
280
|
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>;
|
|
371
281
|
/**
|
|
372
282
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
373
283
|
* @summary Update the product language
|
|
@@ -471,31 +381,6 @@ export interface TranslationApiGetProductLanguageRequest {
|
|
|
471
381
|
*/
|
|
472
382
|
readonly authorization?: string;
|
|
473
383
|
}
|
|
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
|
-
}
|
|
499
384
|
/**
|
|
500
385
|
* Request parameters for listProductLanguages operation in TranslationApi.
|
|
501
386
|
* @export
|
|
@@ -606,50 +491,6 @@ export interface TranslationApiListTranslationsRequest {
|
|
|
606
491
|
*/
|
|
607
492
|
readonly filters?: string;
|
|
608
493
|
}
|
|
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
|
-
}
|
|
653
494
|
/**
|
|
654
495
|
* Request parameters for updateProductLanguage operation in TranslationApi.
|
|
655
496
|
* @export
|
|
@@ -743,15 +584,6 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
743
584
|
* @memberof TranslationApi
|
|
744
585
|
*/
|
|
745
586
|
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, {}>>;
|
|
755
587
|
/**
|
|
756
588
|
* 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\"
|
|
757
589
|
* @summary List product languages
|
|
@@ -770,24 +602,6 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
770
602
|
* @memberof TranslationApi
|
|
771
603
|
*/
|
|
772
604
|
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, {}>>;
|
|
791
605
|
/**
|
|
792
606
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
793
607
|
* @summary Update the product language
|
|
@@ -291,60 +291,6 @@ 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
|
-
},
|
|
348
294
|
/**
|
|
349
295
|
* Returns a list of product languages you have previously created. The product languages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
350
296
|
* @summary List product languages
|
|
@@ -489,107 +435,6 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
489
435
|
});
|
|
490
436
|
});
|
|
491
437
|
},
|
|
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
|
-
},
|
|
593
438
|
/**
|
|
594
439
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
595
440
|
* @summary Update the product language
|
|
@@ -794,28 +639,6 @@ var TranslationApiFp = function (configuration) {
|
|
|
794
639
|
});
|
|
795
640
|
});
|
|
796
641
|
},
|
|
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
|
-
},
|
|
819
642
|
/**
|
|
820
643
|
* Returns a list of product languages you have previously created. The product languages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
821
644
|
* @summary List product languages
|
|
@@ -870,49 +693,6 @@ var TranslationApiFp = function (configuration) {
|
|
|
870
693
|
});
|
|
871
694
|
});
|
|
872
695
|
},
|
|
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
|
-
},
|
|
916
696
|
/**
|
|
917
697
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
918
698
|
* @summary Update the product language
|
|
@@ -1012,18 +792,6 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
1012
792
|
getProductLanguage: function (id, authorization, options) {
|
|
1013
793
|
return localVarFp.getProductLanguage(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1014
794
|
},
|
|
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
|
-
},
|
|
1027
795
|
/**
|
|
1028
796
|
* Returns a list of product languages you have previously created. The product languages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
1029
797
|
* @summary List product languages
|
|
@@ -1058,29 +826,6 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
1058
826
|
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1059
827
|
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1060
828
|
},
|
|
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
|
-
},
|
|
1084
829
|
/**
|
|
1085
830
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
1086
831
|
* @summary Update the product language
|
|
@@ -1167,18 +912,6 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
1167
912
|
var _this = this;
|
|
1168
913
|
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1169
914
|
};
|
|
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
|
-
};
|
|
1182
915
|
/**
|
|
1183
916
|
* Returns a list of product languages you have previously created. The product languages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
1184
917
|
* @summary List product languages
|
|
@@ -1205,30 +938,6 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
1205
938
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1206
939
|
return (0, exports.TranslationApiFp)(this.configuration).listTranslations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1207
940
|
};
|
|
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
|
-
};
|
|
1232
941
|
/**
|
|
1233
942
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
1234
943
|
* @summary Update the product language
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
export * from './create-product-language-request-dto';
|
|
2
2
|
export * from './create-product-language-response-class';
|
|
3
3
|
export * from './get-product-language-response-class';
|
|
4
|
-
export * from './get-product-translations-response-class';
|
|
5
4
|
export * from './inline-response200';
|
|
6
5
|
export * from './inline-response503';
|
|
7
6
|
export * from './list-product-languages-response-class';
|
|
8
7
|
export * from './list-translations-response-class';
|
|
9
|
-
export * from './new-translation-class';
|
|
10
8
|
export * from './product-language-class';
|
|
11
|
-
export * from './refresh-product-languages-response-class';
|
|
12
|
-
export * from './save-product-translations-request-dto';
|
|
13
|
-
export * from './skipped-translation-class';
|
|
14
|
-
export * from './translatable-field-class';
|
|
15
9
|
export * from './translation-class';
|
|
16
10
|
export * from './update-product-language-request-dto';
|
|
17
11
|
export * from './update-product-language-response-class';
|