@emilgroup/translation-sdk-node 1.0.0 → 1.1.0

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.
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateProductLanguageRequestDto } from '../models';
16
16
  import { CreateProductLanguageResponseClass } from '../models';
17
+ import { GetProductLanguageResponseClass } from '../models';
17
18
  import { ListProductLanguagesResponseClass } from '../models';
18
19
  import { ListTranslationsResponseClass } from '../models';
19
20
  import { UpdateProductLanguageRequestDto } from '../models';
@@ -27,13 +28,12 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
27
28
  /**
28
29
  * This creates a product language.
29
30
  * @summary Create the product language
30
- * @param {string} productSlug
31
31
  * @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
32
32
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
33
33
  * @param {*} [options] Override http request option.
34
34
  * @throws {RequiredError}
35
35
  */
36
- createProductLanguage: (productSlug: string, createProductLanguageRequestDto: CreateProductLanguageRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ createProductLanguage: (createProductLanguageRequestDto: CreateProductLanguageRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
37
  /**
38
38
  * Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
39
39
  * @summary Delete the product language
@@ -57,27 +57,25 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
57
57
  * This gets a product language.
58
58
  * @summary Retrieve the product language
59
59
  * @param {number} id Id of the product language.
60
- * @param {string} productSlug Product slug of the product.
61
60
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
62
61
  * @param {*} [options] Override http request option.
63
62
  * @throws {RequiredError}
64
63
  */
65
- getProductLanguage: (id: number, productSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
+ getProductLanguage: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
65
  /**
67
66
  * This lists the product languages.
68
67
  * @summary List product languages
69
- * @param {string} productSlug Product slug of the product.
70
68
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
71
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
72
- * @param {any} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
73
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
69
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
70
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
71
+ * @param {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
74
72
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
75
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
76
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
73
+ * @param {'0' | '1' | '2' | '3' | '4' | '5'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
74
+ * @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
77
75
  * @param {*} [options] Override http request option.
78
76
  * @throws {RequiredError}
79
77
  */
80
- listProductLanguages: (productSlug: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
78
+ listProductLanguages: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt', search?: any, order?: '0' | '1' | '2' | '3' | '4' | '5', expand?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
81
79
  /**
82
80
  * Returns a list of translations you have previously created. The translations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
83
81
  * @summary List translations
@@ -95,14 +93,12 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
95
93
  /**
96
94
  * This updates the product language with the specified id.
97
95
  * @summary Update the product language
98
- * @param {number} id Id of the product language.
99
- * @param {string} productSlug Product slug of the product.
100
96
  * @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
101
97
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
102
98
  * @param {*} [options] Override http request option.
103
99
  * @throws {RequiredError}
104
100
  */
105
- updateProductLanguage: (id: number, productSlug: string, updateProductLanguageRequestDto: UpdateProductLanguageRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
101
+ updateProductLanguage: (updateProductLanguageRequestDto: UpdateProductLanguageRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
106
102
  /**
107
103
  * This uploads the translations for a given product.
108
104
  * @summary Create the product translations
@@ -123,13 +119,12 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
123
119
  /**
124
120
  * This creates a product language.
125
121
  * @summary Create the product language
126
- * @param {string} productSlug
127
122
  * @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
128
123
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
129
124
  * @param {*} [options] Override http request option.
130
125
  * @throws {RequiredError}
131
126
  */
132
- createProductLanguage(productSlug: string, createProductLanguageRequestDto: CreateProductLanguageRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductLanguageResponseClass>>;
127
+ createProductLanguage(createProductLanguageRequestDto: CreateProductLanguageRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductLanguageResponseClass>>;
133
128
  /**
134
129
  * Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
135
130
  * @summary Delete the product language
@@ -153,27 +148,25 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
153
148
  * This gets a product language.
154
149
  * @summary Retrieve the product language
155
150
  * @param {number} id Id of the product language.
156
- * @param {string} productSlug Product slug of the product.
157
151
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
158
152
  * @param {*} [options] Override http request option.
159
153
  * @throws {RequiredError}
160
154
  */
161
- getProductLanguage(id: number, productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductLanguageResponseClass>>;
155
+ getProductLanguage(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductLanguageResponseClass>>;
162
156
  /**
163
157
  * This lists the product languages.
164
158
  * @summary List product languages
165
- * @param {string} productSlug Product slug of the product.
166
159
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
167
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
168
- * @param {any} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
169
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
160
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
161
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
162
+ * @param {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
170
163
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
171
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
172
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
164
+ * @param {'0' | '1' | '2' | '3' | '4' | '5'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
165
+ * @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
173
166
  * @param {*} [options] Override http request option.
174
167
  * @throws {RequiredError}
175
168
  */
176
- listProductLanguages(productSlug: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductLanguagesResponseClass>>;
169
+ listProductLanguages(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt', search?: any, order?: '0' | '1' | '2' | '3' | '4' | '5', expand?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductLanguagesResponseClass>>;
177
170
  /**
178
171
  * Returns a list of translations you have previously created. The translations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
179
172
  * @summary List translations
@@ -191,14 +184,12 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
191
184
  /**
192
185
  * This updates the product language with the specified id.
193
186
  * @summary Update the product language
194
- * @param {number} id Id of the product language.
195
- * @param {string} productSlug Product slug of the product.
196
187
  * @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
197
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
198
189
  * @param {*} [options] Override http request option.
199
190
  * @throws {RequiredError}
200
191
  */
201
- updateProductLanguage(id: number, productSlug: string, updateProductLanguageRequestDto: UpdateProductLanguageRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductLanguageResponseClass>>;
192
+ updateProductLanguage(updateProductLanguageRequestDto: UpdateProductLanguageRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductLanguageResponseClass>>;
202
193
  /**
203
194
  * This uploads the translations for a given product.
204
195
  * @summary Create the product translations
@@ -219,13 +210,12 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
219
210
  /**
220
211
  * This creates a product language.
221
212
  * @summary Create the product language
222
- * @param {string} productSlug
223
213
  * @param {CreateProductLanguageRequestDto} createProductLanguageRequestDto
224
214
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
225
215
  * @param {*} [options] Override http request option.
226
216
  * @throws {RequiredError}
227
217
  */
228
- createProductLanguage(productSlug: string, createProductLanguageRequestDto: CreateProductLanguageRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductLanguageResponseClass>;
218
+ createProductLanguage(createProductLanguageRequestDto: CreateProductLanguageRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductLanguageResponseClass>;
229
219
  /**
230
220
  * Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it.
231
221
  * @summary Delete the product language
@@ -249,27 +239,25 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
249
239
  * This gets a product language.
250
240
  * @summary Retrieve the product language
251
241
  * @param {number} id Id of the product language.
252
- * @param {string} productSlug Product slug of the product.
253
242
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
243
  * @param {*} [options] Override http request option.
255
244
  * @throws {RequiredError}
256
245
  */
257
- getProductLanguage(id: number, productSlug: string, authorization?: string, options?: any): AxiosPromise<CreateProductLanguageResponseClass>;
246
+ getProductLanguage(id: number, authorization?: string, options?: any): AxiosPromise<GetProductLanguageResponseClass>;
258
247
  /**
259
248
  * This lists the product languages.
260
249
  * @summary List product languages
261
- * @param {string} productSlug Product slug of the product.
262
250
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
263
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
264
- * @param {any} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
265
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
251
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
252
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
253
+ * @param {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
266
254
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
267
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
268
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
255
+ * @param {'0' | '1' | '2' | '3' | '4' | '5'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
256
+ * @param {number} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
269
257
  * @param {*} [options] Override http request option.
270
258
  * @throws {RequiredError}
271
259
  */
272
- listProductLanguages(productSlug: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductLanguagesResponseClass>;
260
+ listProductLanguages(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt', search?: any, order?: '0' | '1' | '2' | '3' | '4' | '5', expand?: number, options?: any): AxiosPromise<ListProductLanguagesResponseClass>;
273
261
  /**
274
262
  * Returns a list of translations you have previously created. The translations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
275
263
  * @summary List translations
@@ -287,14 +275,12 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
287
275
  /**
288
276
  * This updates the product language with the specified id.
289
277
  * @summary Update the product language
290
- * @param {number} id Id of the product language.
291
- * @param {string} productSlug Product slug of the product.
292
278
  * @param {UpdateProductLanguageRequestDto} updateProductLanguageRequestDto
293
279
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
294
280
  * @param {*} [options] Override http request option.
295
281
  * @throws {RequiredError}
296
282
  */
297
- updateProductLanguage(id: number, productSlug: string, updateProductLanguageRequestDto: UpdateProductLanguageRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductLanguageResponseClass>;
283
+ updateProductLanguage(updateProductLanguageRequestDto: UpdateProductLanguageRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductLanguageResponseClass>;
298
284
  /**
299
285
  * This uploads the translations for a given product.
300
286
  * @summary Create the product translations
@@ -313,12 +299,6 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
313
299
  * @interface TranslationApiCreateProductLanguageRequest
314
300
  */
315
301
  export interface TranslationApiCreateProductLanguageRequest {
316
- /**
317
- *
318
- * @type {string}
319
- * @memberof TranslationApiCreateProductLanguage
320
- */
321
- readonly productSlug: string;
322
302
  /**
323
303
  *
324
304
  * @type {CreateProductLanguageRequestDto}
@@ -388,12 +368,6 @@ export interface TranslationApiGetProductLanguageRequest {
388
368
  * @memberof TranslationApiGetProductLanguage
389
369
  */
390
370
  readonly id: number;
391
- /**
392
- * Product slug of the product.
393
- * @type {string}
394
- * @memberof TranslationApiGetProductLanguage
395
- */
396
- readonly productSlug: string;
397
371
  /**
398
372
  * Bearer Token: provided by the login endpoint under the name accessToken.
399
373
  * @type {string}
@@ -407,12 +381,6 @@ export interface TranslationApiGetProductLanguageRequest {
407
381
  * @interface TranslationApiListProductLanguagesRequest
408
382
  */
409
383
  export interface TranslationApiListProductLanguagesRequest {
410
- /**
411
- * Product slug of the product.
412
- * @type {string}
413
- * @memberof TranslationApiListProductLanguages
414
- */
415
- readonly productSlug: string;
416
384
  /**
417
385
  * Bearer Token: provided by the login endpoint under the name accessToken.
418
386
  * @type {string}
@@ -421,22 +389,22 @@ export interface TranslationApiListProductLanguagesRequest {
421
389
  readonly authorization?: string;
422
390
  /**
423
391
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
424
- * @type {any}
392
+ * @type {number}
425
393
  * @memberof TranslationApiListProductLanguages
426
394
  */
427
- readonly pageSize?: any;
395
+ readonly pageSize?: number;
428
396
  /**
429
397
  * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
430
- * @type {any}
398
+ * @type {string}
431
399
  * @memberof TranslationApiListProductLanguages
432
400
  */
433
- readonly pageToken?: any;
401
+ readonly pageToken?: string;
434
402
  /**
435
403
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
436
- * @type {any}
404
+ * @type {'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt'}
437
405
  * @memberof TranslationApiListProductLanguages
438
406
  */
439
- readonly filter?: any;
407
+ readonly filter?: 'id' | 'productSlug' | 'language' | 'isActive' | 'translationStatus' | 'createdAt' | 'updateAt';
440
408
  /**
441
409
  * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
442
410
  * @type {any}
@@ -445,16 +413,16 @@ export interface TranslationApiListProductLanguagesRequest {
445
413
  readonly search?: any;
446
414
  /**
447
415
  * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
448
- * @type {any}
416
+ * @type {'0' | '1' | '2' | '3' | '4' | '5'}
449
417
  * @memberof TranslationApiListProductLanguages
450
418
  */
451
- readonly order?: any;
419
+ readonly order?: '0' | '1' | '2' | '3' | '4' | '5';
452
420
  /**
453
421
  * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
454
- * @type {any}
422
+ * @type {number}
455
423
  * @memberof TranslationApiListProductLanguages
456
424
  */
457
- readonly expand?: any;
425
+ readonly expand?: number;
458
426
  }
459
427
  /**
460
428
  * Request parameters for listTranslations operation in TranslationApi.
@@ -511,18 +479,6 @@ export interface TranslationApiListTranslationsRequest {
511
479
  * @interface TranslationApiUpdateProductLanguageRequest
512
480
  */
513
481
  export interface TranslationApiUpdateProductLanguageRequest {
514
- /**
515
- * Id of the product language.
516
- * @type {number}
517
- * @memberof TranslationApiUpdateProductLanguage
518
- */
519
- readonly id: number;
520
- /**
521
- * Product slug of the product.
522
- * @type {string}
523
- * @memberof TranslationApiUpdateProductLanguage
524
- */
525
- readonly productSlug: string;
526
482
  /**
527
483
  *
528
484
  * @type {UpdateProductLanguageRequestDto}
@@ -609,7 +565,7 @@ export declare class TranslationApi extends BaseAPI {
609
565
  * @throws {RequiredError}
610
566
  * @memberof TranslationApi
611
567
  */
612
- getProductLanguage(requestParameters: TranslationApiGetProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductLanguageResponseClass, any>>;
568
+ getProductLanguage(requestParameters: TranslationApiGetProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductLanguageResponseClass, any>>;
613
569
  /**
614
570
  * This lists the product languages.
615
571
  * @summary List product languages
@@ -618,7 +574,7 @@ export declare class TranslationApi extends BaseAPI {
618
574
  * @throws {RequiredError}
619
575
  * @memberof TranslationApi
620
576
  */
621
- listProductLanguages(requestParameters: TranslationApiListProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductLanguagesResponseClass, any>>;
577
+ listProductLanguages(requestParameters?: TranslationApiListProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductLanguagesResponseClass, any>>;
622
578
  /**
623
579
  * Returns a list of translations you have previously created. The translations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
624
580
  * @summary List translations