@emilgroup/translation-sdk-node 1.8.1-beta.3 → 1.8.1-beta.31

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.
@@ -21,7 +21,9 @@ models/list-product-languages-response-class.ts
21
21
  models/list-translations-response-class.ts
22
22
  models/new-translation-class.ts
23
23
  models/product-language-class.ts
24
+ models/refresh-product-languages-response-class.ts
24
25
  models/save-product-translations-request-dto.ts
26
+ models/skipped-translation-class.ts
25
27
  models/translatable-field-class.ts
26
28
  models/translation-class.ts
27
29
  models/update-product-language-request-dto.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-node@1.8.1-beta.3 --save
20
+ npm install @emilgroup/translation-sdk-node@1.8.1-beta.31 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/translation-sdk-node@1.8.1-beta.3
24
+ yarn add @emilgroup/translation-sdk-node@1.8.1-beta.31
25
25
  ```
26
26
 
27
27
  And then you can import `TranslationApi`.
@@ -33,6 +33,8 @@ import { ListProductLanguagesResponseClass } from '../models';
33
33
  // @ts-ignore
34
34
  import { ListTranslationsResponseClass } from '../models';
35
35
  // @ts-ignore
36
+ import { RefreshProductLanguagesResponseClass } from '../models';
37
+ // @ts-ignore
36
38
  import { SaveProductTranslationsRequestDto } from '../models';
37
39
  // @ts-ignore
38
40
  import { UpdateProductLanguageRequestDto } from '../models';
@@ -434,6 +436,51 @@ export const TranslationApiAxiosParamCreator = function (configuration?: Configu
434
436
 
435
437
 
436
438
 
439
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
440
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
441
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
442
+
443
+ return {
444
+ url: toPathString(localVarUrlObj),
445
+ options: localVarRequestOptions,
446
+ };
447
+ },
448
+ /**
449
+ * 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\"
450
+ * @summary Retrieve the refreshed product languages
451
+ * @param {string} productSlug Slug of the product.
452
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
456
+ refreshProductLanguages: async (productSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
457
+ // verify required parameter 'productSlug' is not null or undefined
458
+ assertParamExists('refreshProductLanguages', 'productSlug', productSlug)
459
+ const localVarPath = `/translationservice/v1/product/{productSlug}/languages`
460
+ .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
463
+ let baseOptions;
464
+ let baseAccessToken;
465
+ if (configuration) {
466
+ baseOptions = configuration.baseOptions;
467
+ baseAccessToken = configuration.accessToken;
468
+ }
469
+
470
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
471
+ const localVarHeaderParameter = {} as any;
472
+ const localVarQueryParameter = {} as any;
473
+
474
+ // authentication bearer required
475
+ // http bearer authentication required
476
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
477
+
478
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
479
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
480
+ }
481
+
482
+
483
+
437
484
  setSearchParams(localVarUrlObj, localVarQueryParameter);
438
485
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
439
486
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -711,6 +758,18 @@ export const TranslationApiFp = function(configuration?: Configuration) {
711
758
  const localVarAxiosArgs = await localVarAxiosParamCreator.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
712
759
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
713
760
  },
761
+ /**
762
+ * 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\"
763
+ * @summary Retrieve the refreshed product languages
764
+ * @param {string} productSlug Slug of the product.
765
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ */
769
+ async refreshProductLanguages(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefreshProductLanguagesResponseClass>> {
770
+ const localVarAxiosArgs = await localVarAxiosParamCreator.refreshProductLanguages(productSlug, authorization, options);
771
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
772
+ },
714
773
  /**
715
774
  * 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\"
716
775
  * @summary Create the product translations
@@ -851,6 +910,17 @@ export const TranslationApiFactory = function (configuration?: Configuration, ba
851
910
  listTranslations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTranslationsResponseClass> {
852
911
  return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
853
912
  },
913
+ /**
914
+ * 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\"
915
+ * @summary Retrieve the refreshed product languages
916
+ * @param {string} productSlug Slug of the product.
917
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ */
921
+ refreshProductLanguages(productSlug: string, authorization?: string, options?: any): AxiosPromise<RefreshProductLanguagesResponseClass> {
922
+ return localVarFp.refreshProductLanguages(productSlug, authorization, options).then((request) => request(axios, basePath));
923
+ },
854
924
  /**
855
925
  * 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\"
856
926
  * @summary Create the product translations
@@ -1135,6 +1205,27 @@ export interface TranslationApiListTranslationsRequest {
1135
1205
  readonly filters?: string
1136
1206
  }
1137
1207
 
1208
+ /**
1209
+ * Request parameters for refreshProductLanguages operation in TranslationApi.
1210
+ * @export
1211
+ * @interface TranslationApiRefreshProductLanguagesRequest
1212
+ */
1213
+ export interface TranslationApiRefreshProductLanguagesRequest {
1214
+ /**
1215
+ * Slug of the product.
1216
+ * @type {string}
1217
+ * @memberof TranslationApiRefreshProductLanguages
1218
+ */
1219
+ readonly productSlug: string
1220
+
1221
+ /**
1222
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1223
+ * @type {string}
1224
+ * @memberof TranslationApiRefreshProductLanguages
1225
+ */
1226
+ readonly authorization?: string
1227
+ }
1228
+
1138
1229
  /**
1139
1230
  * Request parameters for saveProductTranslations operation in TranslationApi.
1140
1231
  * @export
@@ -1310,6 +1401,18 @@ export class TranslationApi extends BaseAPI {
1310
1401
  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));
1311
1402
  }
1312
1403
 
1404
+ /**
1405
+ * 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\"
1406
+ * @summary Retrieve the refreshed product languages
1407
+ * @param {TranslationApiRefreshProductLanguagesRequest} requestParameters Request parameters.
1408
+ * @param {*} [options] Override http request option.
1409
+ * @throws {RequiredError}
1410
+ * @memberof TranslationApi
1411
+ */
1412
+ public refreshProductLanguages(requestParameters: TranslationApiRefreshProductLanguagesRequest, options?: AxiosRequestConfig) {
1413
+ return TranslationApiFp(this.configuration).refreshProductLanguages(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1414
+ }
1415
+
1313
1416
  /**
1314
1417
  * 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\"
1315
1418
  * @summary Create the product translations
@@ -18,6 +18,7 @@ import { GetProductLanguageResponseClass } from '../models';
18
18
  import { GetProductTranslationsResponseClass } from '../models';
19
19
  import { ListProductLanguagesResponseClass } from '../models';
20
20
  import { ListTranslationsResponseClass } from '../models';
21
+ import { RefreshProductLanguagesResponseClass } from '../models';
21
22
  import { SaveProductTranslationsRequestDto } from '../models';
22
23
  import { UpdateProductLanguageRequestDto } from '../models';
23
24
  import { UpdateProductLanguageResponseClass } from '../models';
@@ -104,6 +105,15 @@ export declare const TranslationApiAxiosParamCreator: (configuration?: Configura
104
105
  * @throws {RequiredError}
105
106
  */
106
107
  listTranslations: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
108
+ /**
109
+ * This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
110
+ * @summary Retrieve the refreshed product languages
111
+ * @param {string} productSlug Slug of the product.
112
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ refreshProductLanguages: (productSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
107
117
  /**
108
118
  * This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
109
119
  * @summary Create the product translations
@@ -217,6 +227,15 @@ export declare const TranslationApiFp: (configuration?: Configuration) => {
217
227
  * @throws {RequiredError}
218
228
  */
219
229
  listTranslations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTranslationsResponseClass>>;
230
+ /**
231
+ * This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
232
+ * @summary Retrieve the refreshed product languages
233
+ * @param {string} productSlug Slug of the product.
234
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ refreshProductLanguages(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefreshProductLanguagesResponseClass>>;
220
239
  /**
221
240
  * This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
222
241
  * @summary Create the product translations
@@ -330,6 +349,15 @@ export declare const TranslationApiFactory: (configuration?: Configuration, base
330
349
  * @throws {RequiredError}
331
350
  */
332
351
  listTranslations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTranslationsResponseClass>;
352
+ /**
353
+ * This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
354
+ * @summary Retrieve the refreshed product languages
355
+ * @param {string} productSlug Slug of the product.
356
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ refreshProductLanguages(productSlug: string, authorization?: string, options?: any): AxiosPromise<RefreshProductLanguagesResponseClass>;
333
361
  /**
334
362
  * This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
335
363
  * @summary Create the product translations
@@ -578,6 +606,25 @@ export interface TranslationApiListTranslationsRequest {
578
606
  */
579
607
  readonly filters?: string;
580
608
  }
609
+ /**
610
+ * Request parameters for refreshProductLanguages operation in TranslationApi.
611
+ * @export
612
+ * @interface TranslationApiRefreshProductLanguagesRequest
613
+ */
614
+ export interface TranslationApiRefreshProductLanguagesRequest {
615
+ /**
616
+ * Slug of the product.
617
+ * @type {string}
618
+ * @memberof TranslationApiRefreshProductLanguages
619
+ */
620
+ readonly productSlug: string;
621
+ /**
622
+ * Bearer Token: provided by the login endpoint under the name accessToken.
623
+ * @type {string}
624
+ * @memberof TranslationApiRefreshProductLanguages
625
+ */
626
+ readonly authorization?: string;
627
+ }
581
628
  /**
582
629
  * Request parameters for saveProductTranslations operation in TranslationApi.
583
630
  * @export
@@ -723,6 +770,15 @@ export declare class TranslationApi extends BaseAPI {
723
770
  * @memberof TranslationApi
724
771
  */
725
772
  listTranslations(requestParameters?: TranslationApiListTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTranslationsResponseClass, any, {}>>;
773
+ /**
774
+ * This returns a product\'s languages with every translation count recomputed first. The plain list answers from the stored counts, which are only rewritten when somebody saves or downloads translations. **Required Permissions** \"translation-management.translations.view\"
775
+ * @summary Retrieve the refreshed product languages
776
+ * @param {TranslationApiRefreshProductLanguagesRequest} requestParameters Request parameters.
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ * @memberof TranslationApi
780
+ */
781
+ refreshProductLanguages(requestParameters: TranslationApiRefreshProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RefreshProductLanguagesResponseClass, any, {}>>;
726
782
  /**
727
783
  * This creates or updates translations for a product from JSON. Same store as the XLSX upload. An empty value removes an existing translation. **Required Permissions** \"translation-management.translations.create\"
728
784
  * @summary Create the product translations
@@ -493,6 +493,54 @@ var TranslationApiAxiosParamCreator = function (configuration) {
493
493
  });
494
494
  });
495
495
  },
496
+ /**
497
+ * 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\"
498
+ * @summary Retrieve the refreshed product languages
499
+ * @param {string} productSlug Slug of the product.
500
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ refreshProductLanguages: function (productSlug, authorization, options) {
505
+ if (options === void 0) { options = {}; }
506
+ return __awaiter(_this, void 0, void 0, function () {
507
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
508
+ return __generator(this, function (_a) {
509
+ switch (_a.label) {
510
+ case 0:
511
+ // verify required parameter 'productSlug' is not null or undefined
512
+ (0, common_1.assertParamExists)('refreshProductLanguages', 'productSlug', productSlug);
513
+ localVarPath = "/translationservice/v1/product/{productSlug}/languages"
514
+ .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
515
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
516
+ if (configuration) {
517
+ baseOptions = configuration.baseOptions;
518
+ baseAccessToken = configuration.accessToken;
519
+ }
520
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
521
+ localVarHeaderParameter = {};
522
+ localVarQueryParameter = {};
523
+ // authentication bearer required
524
+ // http bearer authentication required
525
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
526
+ case 1:
527
+ // authentication bearer required
528
+ // http bearer authentication required
529
+ _a.sent();
530
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
531
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
532
+ }
533
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
534
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
535
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
536
+ return [2 /*return*/, {
537
+ url: (0, common_1.toPathString)(localVarUrlObj),
538
+ options: localVarRequestOptions,
539
+ }];
540
+ }
541
+ });
542
+ });
543
+ },
496
544
  /**
497
545
  * 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
546
  * @summary Create the product translations
@@ -827,6 +875,27 @@ var TranslationApiFp = function (configuration) {
827
875
  });
828
876
  });
829
877
  },
878
+ /**
879
+ * 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\"
880
+ * @summary Retrieve the refreshed product languages
881
+ * @param {string} productSlug Slug of the product.
882
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
883
+ * @param {*} [options] Override http request option.
884
+ * @throws {RequiredError}
885
+ */
886
+ refreshProductLanguages: function (productSlug, authorization, options) {
887
+ return __awaiter(this, void 0, void 0, function () {
888
+ var localVarAxiosArgs;
889
+ return __generator(this, function (_a) {
890
+ switch (_a.label) {
891
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.refreshProductLanguages(productSlug, authorization, options)];
892
+ case 1:
893
+ localVarAxiosArgs = _a.sent();
894
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
895
+ }
896
+ });
897
+ });
898
+ },
830
899
  /**
831
900
  * 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
901
  * @summary Create the product translations
@@ -994,6 +1063,17 @@ var TranslationApiFactory = function (configuration, basePath, axios) {
994
1063
  listTranslations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
995
1064
  return localVarFp.listTranslations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
996
1065
  },
1066
+ /**
1067
+ * 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\"
1068
+ * @summary Retrieve the refreshed product languages
1069
+ * @param {string} productSlug Slug of the product.
1070
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1071
+ * @param {*} [options] Override http request option.
1072
+ * @throws {RequiredError}
1073
+ */
1074
+ refreshProductLanguages: function (productSlug, authorization, options) {
1075
+ return localVarFp.refreshProductLanguages(productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
1076
+ },
997
1077
  /**
998
1078
  * 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
1079
  * @summary Create the product translations
@@ -1130,6 +1210,18 @@ var TranslationApi = /** @class */ (function (_super) {
1130
1210
  if (requestParameters === void 0) { requestParameters = {}; }
1131
1211
  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); });
1132
1212
  };
1213
+ /**
1214
+ * 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\"
1215
+ * @summary Retrieve the refreshed product languages
1216
+ * @param {TranslationApiRefreshProductLanguagesRequest} requestParameters Request parameters.
1217
+ * @param {*} [options] Override http request option.
1218
+ * @throws {RequiredError}
1219
+ * @memberof TranslationApi
1220
+ */
1221
+ TranslationApi.prototype.refreshProductLanguages = function (requestParameters, options) {
1222
+ var _this = this;
1223
+ return (0, exports.TranslationApiFp)(this.configuration).refreshProductLanguages(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1224
+ };
1133
1225
  /**
1134
1226
  * 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
1227
  * @summary Create the product translations
@@ -8,7 +8,9 @@ export * from './list-product-languages-response-class';
8
8
  export * from './list-translations-response-class';
9
9
  export * from './new-translation-class';
10
10
  export * from './product-language-class';
11
+ export * from './refresh-product-languages-response-class';
11
12
  export * from './save-product-translations-request-dto';
13
+ export * from './skipped-translation-class';
12
14
  export * from './translatable-field-class';
13
15
  export * from './translation-class';
14
16
  export * from './update-product-language-request-dto';
@@ -24,7 +24,9 @@ __exportStar(require("./list-product-languages-response-class"), exports);
24
24
  __exportStar(require("./list-translations-response-class"), exports);
25
25
  __exportStar(require("./new-translation-class"), exports);
26
26
  __exportStar(require("./product-language-class"), exports);
27
+ __exportStar(require("./refresh-product-languages-response-class"), exports);
27
28
  __exportStar(require("./save-product-translations-request-dto"), exports);
29
+ __exportStar(require("./skipped-translation-class"), exports);
28
30
  __exportStar(require("./translatable-field-class"), exports);
29
31
  __exportStar(require("./translation-class"), exports);
30
32
  __exportStar(require("./update-product-language-request-dto"), exports);
@@ -0,0 +1,31 @@
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 { ProductLanguageClass } from './product-language-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RefreshProductLanguagesResponseClass
17
+ */
18
+ export interface RefreshProductLanguagesResponseClass {
19
+ /**
20
+ * The list of product languages.
21
+ * @type {Array<ProductLanguageClass>}
22
+ * @memberof RefreshProductLanguagesResponseClass
23
+ */
24
+ 'items': Array<ProductLanguageClass>;
25
+ /**
26
+ * How many of the items were actually recomputed. Fewer than the number of items means the rest are answered from their stored status, and are therefore possibly out of date. Absent means unknown - an older deployment that did not report it - and a caller should say nothing rather than assume the worst.
27
+ * @type {number}
28
+ * @memberof RefreshProductLanguagesResponseClass
29
+ */
30
+ 'refreshedCount'?: number;
31
+ }
@@ -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 });
@@ -0,0 +1,36 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SkippedTranslationClass
16
+ */
17
+ export interface SkippedTranslationClass {
18
+ /**
19
+ * The translation key from the uploaded sheet.
20
+ * @type {string}
21
+ * @memberof SkippedTranslationClass
22
+ */
23
+ 'key': string;
24
+ /**
25
+ * Why the row was not saved: unknown-key, unsupported-key, unexpected-closing-tag, mismatched-closing-tag, unclosed-tag, malformed-attribute or missing-placeholder.
26
+ * @type {string}
27
+ * @memberof SkippedTranslationClass
28
+ */
29
+ 'reason': string;
30
+ /**
31
+ * The same cause with specifics, for showing to a person. May be empty.
32
+ * @type {string}
33
+ * @memberof SkippedTranslationClass
34
+ */
35
+ 'detail': string;
36
+ }
@@ -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 });
@@ -39,4 +39,16 @@ export interface TranslatableFieldClass {
39
39
  * @memberof TranslatableFieldClass
40
40
  */
41
41
  'translatedValue': string;
42
+ /**
43
+ * True when the translation was made from source text that has since changed. Absent means untranslated, unchanged, or recorded before this existed.
44
+ * @type {boolean}
45
+ * @memberof TranslatableFieldClass
46
+ */
47
+ 'stale'?: boolean;
48
+ /**
49
+ * The source text the translation was made from, sent only when it differs from the current one
50
+ * @type {string}
51
+ * @memberof TranslatableFieldClass
52
+ */
53
+ 'translatedFrom'?: string;
42
54
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { SkippedTranslationClass } from './skipped-translation-class';
12
13
  import { TranslationClass } from './translation-class';
13
14
  /**
14
15
  *
@@ -22,4 +23,16 @@ export interface UploadProductTranslationsResponseClass {
22
23
  * @memberof UploadProductTranslationsResponseClass
23
24
  */
24
25
  'translations': Array<TranslationClass>;
26
+ /**
27
+ * Rows that were not saved. Empty on a clean upload. Whatever was already stored for a skipped key is left untouched.
28
+ * @type {Array<SkippedTranslationClass>}
29
+ * @memberof UploadProductTranslationsResponseClass
30
+ */
31
+ 'skipped': Array<SkippedTranslationClass>;
32
+ /**
33
+ * Rows left blank in the sheet and ignored on purpose, which is what keeps an upload additive. Not a failure.
34
+ * @type {number}
35
+ * @memberof UploadProductTranslationsResponseClass
36
+ */
37
+ 'blankCount': number;
25
38
  }
package/models/index.ts CHANGED
@@ -8,7 +8,9 @@ export * from './list-product-languages-response-class';
8
8
  export * from './list-translations-response-class';
9
9
  export * from './new-translation-class';
10
10
  export * from './product-language-class';
11
+ export * from './refresh-product-languages-response-class';
11
12
  export * from './save-product-translations-request-dto';
13
+ export * from './skipped-translation-class';
12
14
  export * from './translatable-field-class';
13
15
  export * from './translation-class';
14
16
  export * from './update-product-language-request-dto';
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL TranslationService
5
+ * The EMIL TranslationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { ProductLanguageClass } from './product-language-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface RefreshProductLanguagesResponseClass
22
+ */
23
+ export interface RefreshProductLanguagesResponseClass {
24
+ /**
25
+ * The list of product languages.
26
+ * @type {Array<ProductLanguageClass>}
27
+ * @memberof RefreshProductLanguagesResponseClass
28
+ */
29
+ 'items': Array<ProductLanguageClass>;
30
+ /**
31
+ * How many of the items were actually recomputed. Fewer than the number of items means the rest are answered from their stored status, and are therefore possibly out of date. Absent means unknown - an older deployment that did not report it - and a caller should say nothing rather than assume the worst.
32
+ * @type {number}
33
+ * @memberof RefreshProductLanguagesResponseClass
34
+ */
35
+ 'refreshedCount'?: number;
36
+ }
37
+
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL TranslationService
5
+ * The EMIL TranslationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface SkippedTranslationClass
21
+ */
22
+ export interface SkippedTranslationClass {
23
+ /**
24
+ * The translation key from the uploaded sheet.
25
+ * @type {string}
26
+ * @memberof SkippedTranslationClass
27
+ */
28
+ 'key': string;
29
+ /**
30
+ * Why the row was not saved: unknown-key, unsupported-key, unexpected-closing-tag, mismatched-closing-tag, unclosed-tag, malformed-attribute or missing-placeholder.
31
+ * @type {string}
32
+ * @memberof SkippedTranslationClass
33
+ */
34
+ 'reason': string;
35
+ /**
36
+ * The same cause with specifics, for showing to a person. May be empty.
37
+ * @type {string}
38
+ * @memberof SkippedTranslationClass
39
+ */
40
+ 'detail': string;
41
+ }
42
+
@@ -44,5 +44,17 @@ export interface TranslatableFieldClass {
44
44
  * @memberof TranslatableFieldClass
45
45
  */
46
46
  'translatedValue': string;
47
+ /**
48
+ * True when the translation was made from source text that has since changed. Absent means untranslated, unchanged, or recorded before this existed.
49
+ * @type {boolean}
50
+ * @memberof TranslatableFieldClass
51
+ */
52
+ 'stale'?: boolean;
53
+ /**
54
+ * The source text the translation was made from, sent only when it differs from the current one
55
+ * @type {string}
56
+ * @memberof TranslatableFieldClass
57
+ */
58
+ 'translatedFrom'?: string;
47
59
  }
48
60
 
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { SkippedTranslationClass } from './skipped-translation-class';
16
17
  import { TranslationClass } from './translation-class';
17
18
 
18
19
  /**
@@ -27,5 +28,17 @@ export interface UploadProductTranslationsResponseClass {
27
28
  * @memberof UploadProductTranslationsResponseClass
28
29
  */
29
30
  'translations': Array<TranslationClass>;
31
+ /**
32
+ * Rows that were not saved. Empty on a clean upload. Whatever was already stored for a skipped key is left untouched.
33
+ * @type {Array<SkippedTranslationClass>}
34
+ * @memberof UploadProductTranslationsResponseClass
35
+ */
36
+ 'skipped': Array<SkippedTranslationClass>;
37
+ /**
38
+ * Rows left blank in the sheet and ignored on purpose, which is what keeps an upload additive. Not a failure.
39
+ * @type {number}
40
+ * @memberof UploadProductTranslationsResponseClass
41
+ */
42
+ 'blankCount': number;
30
43
  }
31
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/translation-sdk-node",
3
- "version": "1.8.1-beta.3",
3
+ "version": "1.8.1-beta.31",
4
4
  "description": "OpenAPI client for @emilgroup/translation-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [