@emilgroup/translation-sdk 1.10.1-beta.14 → 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.
Files changed (29) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/translation-api.ts +0 -340
  4. package/dist/api/translation-api.d.ts +0 -186
  5. package/dist/api/translation-api.js +0 -291
  6. package/dist/models/index.d.ts +0 -6
  7. package/dist/models/index.js +0 -6
  8. package/dist/models/upload-product-translations-response-class.d.ts +0 -13
  9. package/models/index.ts +0 -6
  10. package/models/upload-product-translations-response-class.ts +0 -13
  11. package/package.json +1 -1
  12. package/dist/models/get-product-translations-response-class.d.ts +0 -25
  13. package/dist/models/get-product-translations-response-class.js +0 -15
  14. package/dist/models/new-translation-class.d.ts +0 -36
  15. package/dist/models/new-translation-class.js +0 -15
  16. package/dist/models/refresh-product-languages-response-class.d.ts +0 -31
  17. package/dist/models/refresh-product-languages-response-class.js +0 -15
  18. package/dist/models/save-product-translations-request-dto.d.ts +0 -53
  19. package/dist/models/save-product-translations-request-dto.js +0 -37
  20. package/dist/models/skipped-translation-class.d.ts +0 -36
  21. package/dist/models/skipped-translation-class.js +0 -15
  22. package/dist/models/translatable-field-class.d.ts +0 -54
  23. package/dist/models/translatable-field-class.js +0 -15
  24. package/models/get-product-translations-response-class.ts +0 -31
  25. package/models/new-translation-class.ts +0 -42
  26. package/models/refresh-product-languages-response-class.ts +0 -37
  27. package/models/save-product-translations-request-dto.ts +0 -62
  28. package/models/skipped-translation-class.ts +0 -42
  29. package/models/translatable-field-class.ts +0 -60
@@ -13,18 +13,12 @@ index.ts
13
13
  models/create-product-language-request-dto.ts
14
14
  models/create-product-language-response-class.ts
15
15
  models/get-product-language-response-class.ts
16
- models/get-product-translations-response-class.ts
17
16
  models/index.ts
18
17
  models/inline-response200.ts
19
18
  models/inline-response503.ts
20
19
  models/list-product-languages-response-class.ts
21
20
  models/list-translations-response-class.ts
22
- models/new-translation-class.ts
23
21
  models/product-language-class.ts
24
- models/refresh-product-languages-response-class.ts
25
- models/save-product-translations-request-dto.ts
26
- models/skipped-translation-class.ts
27
- models/translatable-field-class.ts
28
22
  models/translation-class.ts
29
23
  models/update-product-language-request-dto.ts
30
24
  models/update-product-language-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/translation-sdk@1.10.1-beta.14 --save
20
+ npm install @emilgroup/translation-sdk@1.10.1-beta.2 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/translation-sdk@1.10.1-beta.14
24
+ yarn add @emilgroup/translation-sdk@1.10.1-beta.2
25
25
  ```
26
26
 
27
27
  And then you can import `TranslationApi`.
@@ -27,16 +27,10 @@ import { CreateProductLanguageResponseClass } from '../models';
27
27
  // @ts-ignore
28
28
  import { GetProductLanguageResponseClass } from '../models';
29
29
  // @ts-ignore
30
- import { GetProductTranslationsResponseClass } from '../models';
31
- // @ts-ignore
32
30
  import { ListProductLanguagesResponseClass } from '../models';
33
31
  // @ts-ignore
34
32
  import { ListTranslationsResponseClass } from '../models';
35
33
  // @ts-ignore
36
- import { RefreshProductLanguagesResponseClass } from '../models';
37
- // @ts-ignore
38
- import { SaveProductTranslationsRequestDto } from '../models';
39
- // @ts-ignore
40
34
  import { UpdateProductLanguageRequestDto } from '../models';
41
35
  // @ts-ignore
42
36
  import { UpdateProductLanguageResponseClass } from '../models';
@@ -228,58 +222,6 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
228
222
 
229
223
 
230
224
 
231
- setSearchParams(localVarUrlObj, localVarQueryParameter);
232
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
233
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
234
-
235
- return {
236
- url: toPathString(localVarUrlObj),
237
- options: localVarRequestOptions,
238
- };
239
- },
240
- /**
241
- * 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\"
242
- * @summary Retrieve the product translations
243
- * @param {string} productSlug
244
- * @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
245
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
246
- * @param {*} [options] Override http request option.
247
- * @throws {RequiredError}
248
- */
249
- getProductTranslations: async (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> => {
250
- // verify required parameter 'productSlug' is not null or undefined
251
- assertParamExists('getProductTranslations', 'productSlug', productSlug)
252
- // verify required parameter 'language' is not null or undefined
253
- assertParamExists('getProductTranslations', 'language', language)
254
- const localVarPath = `/translationservice/v1/product/{productSlug}/translations`
255
- .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
256
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
257
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
258
- let baseOptions;
259
- let baseAccessToken;
260
- if (configuration) {
261
- baseOptions = configuration.baseOptions;
262
- baseAccessToken = configuration.accessToken;
263
- }
264
-
265
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
266
- const localVarHeaderParameter = {} as any;
267
- const localVarQueryParameter = {} as any;
268
-
269
- // authentication bearer required
270
- // http bearer authentication required
271
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
272
-
273
- if (language !== undefined) {
274
- localVarQueryParameter['language'] = language;
275
- }
276
-
277
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
278
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
279
- }
280
-
281
-
282
-
283
225
  setSearchParams(localVarUrlObj, localVarQueryParameter);
284
226
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
227
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -441,102 +383,6 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
441
383
  options: localVarRequestOptions,
442
384
  };
443
385
  },
444
- /**
445
- * 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\"
446
- * @summary Retrieve the refreshed product languages
447
- * @param {string} productSlug Slug of the product.
448
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
- * @param {*} [options] Override http request option.
450
- * @throws {RequiredError}
451
- */
452
- refreshProductLanguages: async (productSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
453
- // verify required parameter 'productSlug' is not null or undefined
454
- assertParamExists('refreshProductLanguages', 'productSlug', productSlug)
455
- const localVarPath = `/translationservice/v1/product/{productSlug}/languages`
456
- .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
457
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
458
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
459
- let baseOptions;
460
- let baseAccessToken;
461
- if (configuration) {
462
- baseOptions = configuration.baseOptions;
463
- baseAccessToken = configuration.accessToken;
464
- }
465
-
466
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
467
- const localVarHeaderParameter = {} as any;
468
- const localVarQueryParameter = {} as any;
469
-
470
- // authentication bearer required
471
- // http bearer authentication required
472
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
473
-
474
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
475
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
476
- }
477
-
478
-
479
-
480
- setSearchParams(localVarUrlObj, localVarQueryParameter);
481
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
482
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
483
-
484
- return {
485
- url: toPathString(localVarUrlObj),
486
- options: localVarRequestOptions,
487
- };
488
- },
489
- /**
490
- * 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\"
491
- * @summary Create the product translations
492
- * @param {string} productSlug
493
- * @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
494
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
495
- * @param {*} [options] Override http request option.
496
- * @throws {RequiredError}
497
- */
498
- saveProductTranslations: async (productSlug: string, saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
499
- // verify required parameter 'productSlug' is not null or undefined
500
- assertParamExists('saveProductTranslations', 'productSlug', productSlug)
501
- // verify required parameter 'saveProductTranslationsRequestDto' is not null or undefined
502
- assertParamExists('saveProductTranslations', 'saveProductTranslationsRequestDto', saveProductTranslationsRequestDto)
503
- const localVarPath = `/translationservice/v1/product/{productSlug}/translations`
504
- .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
505
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
506
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
507
- let baseOptions;
508
- let baseAccessToken;
509
- if (configuration) {
510
- baseOptions = configuration.baseOptions;
511
- baseAccessToken = configuration.accessToken;
512
- }
513
-
514
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
515
- const localVarHeaderParameter = {} as any;
516
- const localVarQueryParameter = {} as any;
517
-
518
- // authentication bearer required
519
- // http bearer authentication required
520
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
521
-
522
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
523
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
524
- }
525
-
526
-
527
-
528
- localVarHeaderParameter['Content-Type'] = 'application/json';
529
-
530
- setSearchParams(localVarUrlObj, localVarQueryParameter);
531
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
532
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
533
- localVarRequestOptions.data = serializeDataIfNeeded(saveProductTranslationsRequestDto, localVarRequestOptions, configuration)
534
-
535
- return {
536
- url: toPathString(localVarUrlObj),
537
- options: localVarRequestOptions,
538
- };
539
- },
540
386
  /**
541
387
  * This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
542
388
  * @summary Update the product language
@@ -704,19 +550,6 @@ export const TranslationApiFp = function(configuration?: Configuration) {
704
550
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProductLanguage(id, authorization, options);
705
551
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
706
552
  },
707
- /**
708
- * 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\"
709
- * @summary Retrieve the product translations
710
- * @param {string} productSlug
711
- * @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
712
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
713
- * @param {*} [options] Override http request option.
714
- * @throws {RequiredError}
715
- */
716
- async 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>> {
717
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductTranslations(productSlug, language, authorization, options);
718
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
719
- },
720
553
  /**
721
554
  * 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\"
722
555
  * @summary List product languages
@@ -753,31 +586,6 @@ export const TranslationApiFp = function(configuration?: Configuration) {
753
586
  const localVarAxiosArgs = await localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
754
587
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
755
588
  },
756
- /**
757
- * 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\"
758
- * @summary Retrieve the refreshed product languages
759
- * @param {string} productSlug Slug of the product.
760
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
761
- * @param {*} [options] Override http request option.
762
- * @throws {RequiredError}
763
- */
764
- async refreshProductLanguages(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefreshProductLanguagesResponseClass>> {
765
- const localVarAxiosArgs = await localVarAxiosParamCreator.refreshProductLanguages(productSlug, authorization, options);
766
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
767
- },
768
- /**
769
- * 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\"
770
- * @summary Create the product translations
771
- * @param {string} productSlug
772
- * @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
773
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
774
- * @param {*} [options] Override http request option.
775
- * @throws {RequiredError}
776
- */
777
- async saveProductTranslations(productSlug: string, saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadProductTranslationsResponseClass>> {
778
- const localVarAxiosArgs = await localVarAxiosParamCreator.saveProductTranslations(productSlug, saveProductTranslationsRequestDto, authorization, options);
779
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
780
- },
781
589
  /**
782
590
  * This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
783
591
  * @summary Update the product language
@@ -859,18 +667,6 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
859
667
  getProductLanguage(id: number, authorization?: string, options?: any): AxiosPromise<GetProductLanguageResponseClass> {
860
668
  return localVarFp.getProductLanguage(id, authorization, options).then((request) => request(axios, basePath));
861
669
  },
862
- /**
863
- * 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\"
864
- * @summary Retrieve the product translations
865
- * @param {string} productSlug
866
- * @param {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'} language
867
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
868
- * @param {*} [options] Override http request option.
869
- * @throws {RequiredError}
870
- */
871
- 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> {
872
- return localVarFp.getProductTranslations(productSlug, language, authorization, options).then((request) => request(axios, basePath));
873
- },
874
670
  /**
875
671
  * 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\"
876
672
  * @summary List product languages
@@ -905,29 +701,6 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
905
701
  listTranslations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTranslationsResponseClass> {
906
702
  return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
907
703
  },
908
- /**
909
- * 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\"
910
- * @summary Retrieve the refreshed product languages
911
- * @param {string} productSlug Slug of the product.
912
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
913
- * @param {*} [options] Override http request option.
914
- * @throws {RequiredError}
915
- */
916
- refreshProductLanguages(productSlug: string, authorization?: string, options?: any): AxiosPromise<RefreshProductLanguagesResponseClass> {
917
- return localVarFp.refreshProductLanguages(productSlug, authorization, options).then((request) => request(axios, basePath));
918
- },
919
- /**
920
- * 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\"
921
- * @summary Create the product translations
922
- * @param {string} productSlug
923
- * @param {SaveProductTranslationsRequestDto} saveProductTranslationsRequestDto
924
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
925
- * @param {*} [options] Override http request option.
926
- * @throws {RequiredError}
927
- */
928
- saveProductTranslations(productSlug: string, saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto, authorization?: string, options?: any): AxiosPromise<UploadProductTranslationsResponseClass> {
929
- return localVarFp.saveProductTranslations(productSlug, saveProductTranslationsRequestDto, authorization, options).then((request) => request(axios, basePath));
930
- },
931
704
  /**
932
705
  * This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
933
706
  * @summary Update the product language
@@ -1046,34 +819,6 @@ export interface TranslationApiGetProductLanguageRequest {
1046
819
  readonly authorization?: string
1047
820
  }
1048
821
 
1049
- /**
1050
- * Request parameters for getProductTranslations operation in TranslationApi.
1051
- * @export
1052
- * @interface TranslationApiGetProductTranslationsRequest
1053
- */
1054
- export interface TranslationApiGetProductTranslationsRequest {
1055
- /**
1056
- *
1057
- * @type {string}
1058
- * @memberof TranslationApiGetProductTranslations
1059
- */
1060
- readonly productSlug: string
1061
-
1062
- /**
1063
- *
1064
- * @type {'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'}
1065
- * @memberof TranslationApiGetProductTranslations
1066
- */
1067
- readonly language: 'German' | 'English' | 'Polish' | 'French' | 'Italian' | 'Spanish' | 'Portuguese' | 'Russian' | 'Japanese' | 'Chinese' | 'Korean' | 'Turkish' | 'Arabic' | 'Hindi' | 'Indonesian' | 'Thai' | 'Vietnamese' | 'Persian' | 'Romanian'
1068
-
1069
- /**
1070
- * Bearer Token: provided by the login endpoint under the name accessToken.
1071
- * @type {string}
1072
- * @memberof TranslationApiGetProductTranslations
1073
- */
1074
- readonly authorization?: string
1075
- }
1076
-
1077
822
  /**
1078
823
  * Request parameters for listProductLanguages operation in TranslationApi.
1079
824
  * @export
@@ -1200,55 +945,6 @@ export interface TranslationApiListTranslationsRequest {
1200
945
  readonly filters?: string
1201
946
  }
1202
947
 
1203
- /**
1204
- * Request parameters for refreshProductLanguages operation in TranslationApi.
1205
- * @export
1206
- * @interface TranslationApiRefreshProductLanguagesRequest
1207
- */
1208
- export interface TranslationApiRefreshProductLanguagesRequest {
1209
- /**
1210
- * Slug of the product.
1211
- * @type {string}
1212
- * @memberof TranslationApiRefreshProductLanguages
1213
- */
1214
- readonly productSlug: string
1215
-
1216
- /**
1217
- * Bearer Token: provided by the login endpoint under the name accessToken.
1218
- * @type {string}
1219
- * @memberof TranslationApiRefreshProductLanguages
1220
- */
1221
- readonly authorization?: string
1222
- }
1223
-
1224
- /**
1225
- * Request parameters for saveProductTranslations operation in TranslationApi.
1226
- * @export
1227
- * @interface TranslationApiSaveProductTranslationsRequest
1228
- */
1229
- export interface TranslationApiSaveProductTranslationsRequest {
1230
- /**
1231
- *
1232
- * @type {string}
1233
- * @memberof TranslationApiSaveProductTranslations
1234
- */
1235
- readonly productSlug: string
1236
-
1237
- /**
1238
- *
1239
- * @type {SaveProductTranslationsRequestDto}
1240
- * @memberof TranslationApiSaveProductTranslations
1241
- */
1242
- readonly saveProductTranslationsRequestDto: SaveProductTranslationsRequestDto
1243
-
1244
- /**
1245
- * Bearer Token: provided by the login endpoint under the name accessToken.
1246
- * @type {string}
1247
- * @memberof TranslationApiSaveProductTranslations
1248
- */
1249
- readonly authorization?: string
1250
- }
1251
-
1252
948
  /**
1253
949
  * Request parameters for updateProductLanguage operation in TranslationApi.
1254
950
  * @export
@@ -1360,18 +1056,6 @@ export class TranslationApi extends BaseAPI {
1360
1056
  return TranslationApiFp(this.configuration).getProductLanguage(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1361
1057
  }
1362
1058
 
1363
- /**
1364
- * 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\"
1365
- * @summary Retrieve the product translations
1366
- * @param {TranslationApiGetProductTranslationsRequest} requestParameters Request parameters.
1367
- * @param {*} [options] Override http request option.
1368
- * @throws {RequiredError}
1369
- * @memberof TranslationApi
1370
- */
1371
- public getProductTranslations(requestParameters: TranslationApiGetProductTranslationsRequest, options?: AxiosRequestConfig) {
1372
- return TranslationApiFp(this.configuration).getProductTranslations(requestParameters.productSlug, requestParameters.language, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1373
- }
1374
-
1375
1059
  /**
1376
1060
  * 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\"
1377
1061
  * @summary List product languages
@@ -1396,30 +1080,6 @@ export class TranslationApi extends BaseAPI {
1396
1080
  return TranslationApiFp(this.configuration).listTranslations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1397
1081
  }
1398
1082
 
1399
- /**
1400
- * 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\"
1401
- * @summary Retrieve the refreshed product languages
1402
- * @param {TranslationApiRefreshProductLanguagesRequest} requestParameters Request parameters.
1403
- * @param {*} [options] Override http request option.
1404
- * @throws {RequiredError}
1405
- * @memberof TranslationApi
1406
- */
1407
- public refreshProductLanguages(requestParameters: TranslationApiRefreshProductLanguagesRequest, options?: AxiosRequestConfig) {
1408
- return TranslationApiFp(this.configuration).refreshProductLanguages(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1409
- }
1410
-
1411
- /**
1412
- * 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\"
1413
- * @summary Create the product translations
1414
- * @param {TranslationApiSaveProductTranslationsRequest} requestParameters Request parameters.
1415
- * @param {*} [options] Override http request option.
1416
- * @throws {RequiredError}
1417
- * @memberof TranslationApi
1418
- */
1419
- public saveProductTranslations(requestParameters: TranslationApiSaveProductTranslationsRequest, options?: AxiosRequestConfig) {
1420
- return TranslationApiFp(this.configuration).saveProductTranslations(requestParameters.productSlug, requestParameters.saveProductTranslationsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1421
- }
1422
-
1423
1083
  /**
1424
1084
  * This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
1425
1085
  * @summary Update the product language