@emilgroup/translation-sdk-node 1.8.1-beta.1 → 1.8.1-beta.3
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 +4 -0
- package/README.md +2 -2
- package/api/translation-api.ts +245 -8
- package/dist/api/translation-api.d.ts +138 -8
- package/dist/api/translation-api.js +205 -6
- 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 +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/new-translation-class.d.ts +36 -0
- package/dist/models/new-translation-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/translatable-field-class.d.ts +42 -0
- package/dist/models/translatable-field-class.js +15 -0
- package/models/get-product-translations-response-class.ts +31 -0
- package/models/index.ts +4 -0
- package/models/new-translation-class.ts +42 -0
- package/models/save-product-translations-request-dto.ts +62 -0
- package/models/translatable-field-class.ts +48 -0
- package/package.json +1 -1
|
@@ -15,8 +15,10 @@ 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 { SaveProductTranslationsRequestDto } from '../models';
|
|
20
22
|
import { UpdateProductLanguageRequestDto } from '../models';
|
|
21
23
|
import { UpdateProductLanguageResponseClass } from '../models';
|
|
22
24
|
import { UploadProductTranslationsResponseClass } from '../models';
|
|
@@ -62,6 +64,16 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
|
|
|
62
64
|
* @throws {RequiredError}
|
|
63
65
|
*/
|
|
64
66
|
getProductLanguage: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
|
+
/**
|
|
68
|
+
* 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\"
|
|
69
|
+
* @summary Retrieve the product translations
|
|
70
|
+
* @param {string} productSlug
|
|
71
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
72
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
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
77
|
/**
|
|
66
78
|
* 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
79
|
* @summary List product languages
|
|
@@ -83,15 +95,25 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
|
|
|
83
95
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
84
96
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
85
97
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
86
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
98
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key, language</i>
|
|
87
99
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
88
100
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, key</i>
|
|
89
101
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
90
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
102
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key, language</i>
|
|
91
103
|
* @param {*} [options] Override http request option.
|
|
92
104
|
* @throws {RequiredError}
|
|
93
105
|
*/
|
|
94
106
|
listTranslations: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
107
|
+
/**
|
|
108
|
+
* 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\"
|
|
109
|
+
* @summary Create the product translations
|
|
110
|
+
* @param {string} productSlug
|
|
111
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
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
|
+
saveProductTranslations: (productSlug: string, saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
95
117
|
/**
|
|
96
118
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
97
119
|
* @summary Update the product language
|
|
@@ -155,6 +177,16 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
|
|
|
155
177
|
* @throws {RequiredError}
|
|
156
178
|
*/
|
|
157
179
|
getProductLanguage(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductLanguageResponseClass>>;
|
|
180
|
+
/**
|
|
181
|
+
* 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\"
|
|
182
|
+
* @summary Retrieve the product translations
|
|
183
|
+
* @param {string} productSlug
|
|
184
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
185
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
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
190
|
/**
|
|
159
191
|
* 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
192
|
* @summary List product languages
|
|
@@ -176,15 +208,25 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
|
|
|
176
208
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
177
209
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
178
210
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
179
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
211
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key, language</i>
|
|
180
212
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
181
213
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, key</i>
|
|
182
214
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
183
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
215
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key, language</i>
|
|
184
216
|
* @param {*} [options] Override http request option.
|
|
185
217
|
* @throws {RequiredError}
|
|
186
218
|
*/
|
|
187
219
|
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>>;
|
|
220
|
+
/**
|
|
221
|
+
* 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\"
|
|
222
|
+
* @summary Create the product translations
|
|
223
|
+
* @param {string} productSlug
|
|
224
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
225
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
saveProductTranslations(productSlug: string, saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadProductTranslationsResponseClass>>;
|
|
188
230
|
/**
|
|
189
231
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
190
232
|
* @summary Update the product language
|
|
@@ -248,6 +290,16 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
|
|
|
248
290
|
* @throws {RequiredError}
|
|
249
291
|
*/
|
|
250
292
|
getProductLanguage(id: number, authorization?: string, options?: any): AxiosPromise<GetProductLanguageResponseClass>;
|
|
293
|
+
/**
|
|
294
|
+
* 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\"
|
|
295
|
+
* @summary Retrieve the product translations
|
|
296
|
+
* @param {string} productSlug
|
|
297
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
298
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
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
303
|
/**
|
|
252
304
|
* 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
305
|
* @summary List product languages
|
|
@@ -269,15 +321,25 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
|
|
|
269
321
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
270
322
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
271
323
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
272
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
324
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key, language</i>
|
|
273
325
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
274
326
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, key</i>
|
|
275
327
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
276
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
328
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key, language</i>
|
|
277
329
|
* @param {*} [options] Override http request option.
|
|
278
330
|
* @throws {RequiredError}
|
|
279
331
|
*/
|
|
280
332
|
listTranslations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTranslationsResponseClass>;
|
|
333
|
+
/**
|
|
334
|
+
* 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\"
|
|
335
|
+
* @summary Create the product translations
|
|
336
|
+
* @param {string} productSlug
|
|
337
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
338
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
saveProductTranslations(productSlug: string, saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto, authorization?: string, options?: any): AxiosPromise<UploadProductTranslationsResponseClass>;
|
|
281
343
|
/**
|
|
282
344
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
283
345
|
* @summary Update the product language
|
|
@@ -381,6 +443,31 @@ export interface TranslationApiGetProductLanguageRequest {
|
|
|
381
443
|
*/
|
|
382
444
|
readonly authorization?: string;
|
|
383
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* Request parameters for getProductTranslations operation in TranslationApi.
|
|
448
|
+
* @export
|
|
449
|
+
* @interface TranslationApiGetProductTranslationsRequest
|
|
450
|
+
*/
|
|
451
|
+
export interface TranslationApiGetProductTranslationsRequest {
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @type {string}
|
|
455
|
+
* @memberof TranslationApiGetProductTranslations
|
|
456
|
+
*/
|
|
457
|
+
readonly productSlug: string;
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @type {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'}
|
|
461
|
+
* @memberof TranslationApiGetProductTranslations
|
|
462
|
+
*/
|
|
463
|
+
readonly language: 'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian';
|
|
464
|
+
/**
|
|
465
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
466
|
+
* @type {string}
|
|
467
|
+
* @memberof TranslationApiGetProductTranslations
|
|
468
|
+
*/
|
|
469
|
+
readonly authorization?: string;
|
|
470
|
+
}
|
|
384
471
|
/**
|
|
385
472
|
* Request parameters for listProductLanguages operation in TranslationApi.
|
|
386
473
|
* @export
|
|
@@ -461,7 +548,7 @@ export interface TranslationApiListTranslationsRequest {
|
|
|
461
548
|
*/
|
|
462
549
|
readonly pageToken?: string;
|
|
463
550
|
/**
|
|
464
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
551
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key, language</i>
|
|
465
552
|
* @type {string}
|
|
466
553
|
* @memberof TranslationApiListTranslations
|
|
467
554
|
*/
|
|
@@ -485,12 +572,37 @@ export interface TranslationApiListTranslationsRequest {
|
|
|
485
572
|
*/
|
|
486
573
|
readonly expand?: string;
|
|
487
574
|
/**
|
|
488
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
575
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key, language</i>
|
|
489
576
|
* @type {string}
|
|
490
577
|
* @memberof TranslationApiListTranslations
|
|
491
578
|
*/
|
|
492
579
|
readonly filters?: string;
|
|
493
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* Request parameters for saveProductTranslations operation in TranslationApi.
|
|
583
|
+
* @export
|
|
584
|
+
* @interface TranslationApiSaveProductTranslationsRequest
|
|
585
|
+
*/
|
|
586
|
+
export interface TranslationApiSaveProductTranslationsRequest {
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof TranslationApiSaveProductTranslations
|
|
591
|
+
*/
|
|
592
|
+
readonly productSlug: string;
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {SaveProductTranslationsRequestDto}
|
|
596
|
+
* @memberof TranslationApiSaveProductTranslations
|
|
597
|
+
*/
|
|
598
|
+
readonly saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto;
|
|
599
|
+
/**
|
|
600
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
601
|
+
* @type {string}
|
|
602
|
+
* @memberof TranslationApiSaveProductTranslations
|
|
603
|
+
*/
|
|
604
|
+
readonly authorization?: string;
|
|
605
|
+
}
|
|
494
606
|
/**
|
|
495
607
|
* Request parameters for updateProductLanguage operation in TranslationApi.
|
|
496
608
|
* @export
|
|
@@ -584,6 +696,15 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
584
696
|
* @memberof TranslationApi
|
|
585
697
|
*/
|
|
586
698
|
getProductLanguage(requestParameters: TranslationApiGetProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductLanguageResponseClass, any, {}>>;
|
|
699
|
+
/**
|
|
700
|
+
* 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\"
|
|
701
|
+
* @summary Retrieve the product translations
|
|
702
|
+
* @param {TranslationApiGetProductTranslationsRequest} requestParameters Request parameters.
|
|
703
|
+
* @param {*} [options] Override http request option.
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
* @memberof TranslationApi
|
|
706
|
+
*/
|
|
707
|
+
getProductTranslations(requestParameters: TranslationApiGetProductTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductTranslationsResponseClass, any, {}>>;
|
|
587
708
|
/**
|
|
588
709
|
* 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
710
|
* @summary List product languages
|
|
@@ -602,6 +723,15 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
602
723
|
* @memberof TranslationApi
|
|
603
724
|
*/
|
|
604
725
|
listTranslations(requestParameters?: TranslationApiListTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTranslationsResponseClass, any, {}>>;
|
|
726
|
+
/**
|
|
727
|
+
* 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\"
|
|
728
|
+
* @summary Create the product translations
|
|
729
|
+
* @param {TranslationApiSaveProductTranslationsRequest} requestParameters Request parameters.
|
|
730
|
+
* @param {*} [options] Override http request option.
|
|
731
|
+
* @throws {RequiredError}
|
|
732
|
+
* @memberof TranslationApi
|
|
733
|
+
*/
|
|
734
|
+
saveProductTranslations(requestParameters: TranslationApiSaveProductTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadProductTranslationsResponseClass, any, {}>>;
|
|
605
735
|
/**
|
|
606
736
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
607
737
|
* @summary Update the product language
|
|
@@ -295,6 +295,60 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
297
|
},
|
|
298
|
+
/**
|
|
299
|
+
* 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\"
|
|
300
|
+
* @summary Retrieve the product translations
|
|
301
|
+
* @param {string} productSlug
|
|
302
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
303
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
getProductTranslations: function (productSlug, language, authorization, options) {
|
|
308
|
+
if (options === void 0) { options = {}; }
|
|
309
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
310
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
311
|
+
return __generator(this, function (_a) {
|
|
312
|
+
switch (_a.label) {
|
|
313
|
+
case 0:
|
|
314
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
315
|
+
(0, common_1.assertParamExists)('getProductTranslations', 'productSlug', productSlug);
|
|
316
|
+
// verify required parameter 'language' is not null or undefined
|
|
317
|
+
(0, common_1.assertParamExists)('getProductTranslations', 'language', language);
|
|
318
|
+
localVarPath = "/translationservice/v1/product/{productSlug}/translations"
|
|
319
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
320
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
321
|
+
if (configuration) {
|
|
322
|
+
baseOptions = configuration.baseOptions;
|
|
323
|
+
baseAccessToken = configuration.accessToken;
|
|
324
|
+
}
|
|
325
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
326
|
+
localVarHeaderParameter = {};
|
|
327
|
+
localVarQueryParameter = {};
|
|
328
|
+
// authentication bearer required
|
|
329
|
+
// http bearer authentication required
|
|
330
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
331
|
+
case 1:
|
|
332
|
+
// authentication bearer required
|
|
333
|
+
// http bearer authentication required
|
|
334
|
+
_a.sent();
|
|
335
|
+
if (language !== undefined) {
|
|
336
|
+
localVarQueryParameter['language'] = language;
|
|
337
|
+
}
|
|
338
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
339
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
340
|
+
}
|
|
341
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
342
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
343
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
344
|
+
return [2 /*return*/, {
|
|
345
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
346
|
+
options: localVarRequestOptions,
|
|
347
|
+
}];
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
},
|
|
298
352
|
/**
|
|
299
353
|
* 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\"
|
|
300
354
|
* @summary List product languages
|
|
@@ -373,11 +427,11 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
373
427
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
374
428
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
375
429
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
376
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
430
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key, language</i>
|
|
377
431
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
378
432
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, key</i>
|
|
379
433
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
380
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
434
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key, language</i>
|
|
381
435
|
* @param {*} [options] Override http request option.
|
|
382
436
|
* @throws {RequiredError}
|
|
383
437
|
*/
|
|
@@ -439,6 +493,59 @@ var TranslationApiAxiosParamCreator = function (configuration) {
|
|
|
439
493
|
});
|
|
440
494
|
});
|
|
441
495
|
},
|
|
496
|
+
/**
|
|
497
|
+
* 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\"
|
|
498
|
+
* @summary Create the product translations
|
|
499
|
+
* @param {string} productSlug
|
|
500
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
501
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
*/
|
|
505
|
+
saveProductTranslations: function (productSlug, saveProductTranslationsRequestDto, authorization, options) {
|
|
506
|
+
if (options === void 0) { options = {}; }
|
|
507
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
508
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
509
|
+
return __generator(this, function (_a) {
|
|
510
|
+
switch (_a.label) {
|
|
511
|
+
case 0:
|
|
512
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
513
|
+
(0, common_1.assertParamExists)('saveProductTranslations', 'productSlug', productSlug);
|
|
514
|
+
// verify required parameter 'saveProductTranslationsRequestDto' is not null or undefined
|
|
515
|
+
(0, common_1.assertParamExists)('saveProductTranslations', 'saveProductTranslationsRequestDto', saveProductTranslationsRequestDto);
|
|
516
|
+
localVarPath = "/translationservice/v1/product/{productSlug}/translations"
|
|
517
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
518
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
519
|
+
if (configuration) {
|
|
520
|
+
baseOptions = configuration.baseOptions;
|
|
521
|
+
baseAccessToken = configuration.accessToken;
|
|
522
|
+
}
|
|
523
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
524
|
+
localVarHeaderParameter = {};
|
|
525
|
+
localVarQueryParameter = {};
|
|
526
|
+
// authentication bearer required
|
|
527
|
+
// http bearer authentication required
|
|
528
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
529
|
+
case 1:
|
|
530
|
+
// authentication bearer required
|
|
531
|
+
// http bearer authentication required
|
|
532
|
+
_a.sent();
|
|
533
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
534
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
535
|
+
}
|
|
536
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
537
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
538
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
539
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
540
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveProductTranslationsRequestDto, localVarRequestOptions, configuration);
|
|
541
|
+
return [2 /*return*/, {
|
|
542
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
543
|
+
options: localVarRequestOptions,
|
|
544
|
+
}];
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
});
|
|
548
|
+
},
|
|
442
549
|
/**
|
|
443
550
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
444
551
|
* @summary Update the product language
|
|
@@ -644,6 +751,28 @@ var TranslationApiFp = function (configuration) {
|
|
|
644
751
|
});
|
|
645
752
|
});
|
|
646
753
|
},
|
|
754
|
+
/**
|
|
755
|
+
* 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\"
|
|
756
|
+
* @summary Retrieve the product translations
|
|
757
|
+
* @param {string} productSlug
|
|
758
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
759
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
760
|
+
* @param {*} [options] Override http request option.
|
|
761
|
+
* @throws {RequiredError}
|
|
762
|
+
*/
|
|
763
|
+
getProductTranslations: function (productSlug, language, authorization, options) {
|
|
764
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
765
|
+
var localVarAxiosArgs;
|
|
766
|
+
return __generator(this, function (_a) {
|
|
767
|
+
switch (_a.label) {
|
|
768
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductTranslations(productSlug, language, authorization, options)];
|
|
769
|
+
case 1:
|
|
770
|
+
localVarAxiosArgs = _a.sent();
|
|
771
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
});
|
|
775
|
+
},
|
|
647
776
|
/**
|
|
648
777
|
* 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\"
|
|
649
778
|
* @summary List product languages
|
|
@@ -677,11 +806,11 @@ var TranslationApiFp = function (configuration) {
|
|
|
677
806
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
678
807
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
679
808
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
680
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
809
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key, language</i>
|
|
681
810
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
682
811
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, key</i>
|
|
683
812
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
684
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
813
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key, language</i>
|
|
685
814
|
* @param {*} [options] Override http request option.
|
|
686
815
|
* @throws {RequiredError}
|
|
687
816
|
*/
|
|
@@ -698,6 +827,28 @@ var TranslationApiFp = function (configuration) {
|
|
|
698
827
|
});
|
|
699
828
|
});
|
|
700
829
|
},
|
|
830
|
+
/**
|
|
831
|
+
* 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\"
|
|
832
|
+
* @summary Create the product translations
|
|
833
|
+
* @param {string} productSlug
|
|
834
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
835
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
836
|
+
* @param {*} [options] Override http request option.
|
|
837
|
+
* @throws {RequiredError}
|
|
838
|
+
*/
|
|
839
|
+
saveProductTranslations: function (productSlug, saveProductTranslationsRequestDto, authorization, options) {
|
|
840
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
841
|
+
var localVarAxiosArgs;
|
|
842
|
+
return __generator(this, function (_a) {
|
|
843
|
+
switch (_a.label) {
|
|
844
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.saveProductTranslations(productSlug, saveProductTranslationsRequestDto, authorization, options)];
|
|
845
|
+
case 1:
|
|
846
|
+
localVarAxiosArgs = _a.sent();
|
|
847
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
});
|
|
851
|
+
},
|
|
701
852
|
/**
|
|
702
853
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
703
854
|
* @summary Update the product language
|
|
@@ -797,6 +948,18 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
797
948
|
getProductLanguage: function (id, authorization, options) {
|
|
798
949
|
return localVarFp.getProductLanguage(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
799
950
|
},
|
|
951
|
+
/**
|
|
952
|
+
* 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\"
|
|
953
|
+
* @summary Retrieve the product translations
|
|
954
|
+
* @param {string} productSlug
|
|
955
|
+
* @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
|
|
956
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
*/
|
|
960
|
+
getProductTranslations: function (productSlug, language, authorization, options) {
|
|
961
|
+
return localVarFp.getProductTranslations(productSlug, language, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
962
|
+
},
|
|
800
963
|
/**
|
|
801
964
|
* 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\"
|
|
802
965
|
* @summary List product languages
|
|
@@ -820,17 +983,29 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
|
|
|
820
983
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
821
984
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
822
985
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
823
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key</i>
|
|
986
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: key, language</i>
|
|
824
987
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: key</i>
|
|
825
988
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, key</i>
|
|
826
989
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
827
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key</i>
|
|
990
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: key, language</i>
|
|
828
991
|
* @param {*} [options] Override http request option.
|
|
829
992
|
* @throws {RequiredError}
|
|
830
993
|
*/
|
|
831
994
|
listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
832
995
|
return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
833
996
|
},
|
|
997
|
+
/**
|
|
998
|
+
* 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\"
|
|
999
|
+
* @summary Create the product translations
|
|
1000
|
+
* @param {string} productSlug
|
|
1001
|
+
* @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
|
|
1002
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
*/
|
|
1006
|
+
saveProductTranslations: function (productSlug, saveProductTranslationsRequestDto, authorization, options) {
|
|
1007
|
+
return localVarFp.saveProductTranslations(productSlug, saveProductTranslationsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1008
|
+
},
|
|
834
1009
|
/**
|
|
835
1010
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
836
1011
|
* @summary Update the product language
|
|
@@ -917,6 +1092,18 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
917
1092
|
var _this = this;
|
|
918
1093
|
return (0, exports.TranslationApiFp)(this.configuration).getProductLanguage(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
919
1094
|
};
|
|
1095
|
+
/**
|
|
1096
|
+
* 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\"
|
|
1097
|
+
* @summary Retrieve the product translations
|
|
1098
|
+
* @param {TranslationApiGetProductTranslationsRequest} requestParameters Request parameters.
|
|
1099
|
+
* @param {*} [options] Override http request option.
|
|
1100
|
+
* @throws {RequiredError}
|
|
1101
|
+
* @memberof TranslationApi
|
|
1102
|
+
*/
|
|
1103
|
+
TranslationApi.prototype.getProductTranslations = function (requestParameters, options) {
|
|
1104
|
+
var _this = this;
|
|
1105
|
+
return (0, exports.TranslationApiFp)(this.configuration).getProductTranslations(requestParameters.productSlug, requestParameters.language, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1106
|
+
};
|
|
920
1107
|
/**
|
|
921
1108
|
* 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\"
|
|
922
1109
|
* @summary List product languages
|
|
@@ -943,6 +1130,18 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
943
1130
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
944
1131
|
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); });
|
|
945
1132
|
};
|
|
1133
|
+
/**
|
|
1134
|
+
* 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\"
|
|
1135
|
+
* @summary Create the product translations
|
|
1136
|
+
* @param {TranslationApiSaveProductTranslationsRequest} requestParameters Request parameters.
|
|
1137
|
+
* @param {*} [options] Override http request option.
|
|
1138
|
+
* @throws {RequiredError}
|
|
1139
|
+
* @memberof TranslationApi
|
|
1140
|
+
*/
|
|
1141
|
+
TranslationApi.prototype.saveProductTranslations = function (requestParameters, options) {
|
|
1142
|
+
var _this = this;
|
|
1143
|
+
return (0, exports.TranslationApiFp)(this.configuration).saveProductTranslations(requestParameters.productSlug, requestParameters.saveProductTranslationsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1144
|
+
};
|
|
946
1145
|
/**
|
|
947
1146
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
948
1147
|
* @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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL TranslationService
|
|
6
|
+
* The EMIL TranslationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|