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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,15 @@
1
1
  export * from './create-product-language-request-dto';
2
2
  export * from './create-product-language-response-class';
3
3
  export * from './get-product-language-response-class';
4
+ export * from './get-product-translations-response-class';
4
5
  export * from './inline-response200';
5
6
  export * from './inline-response503';
6
7
  export * from './list-product-languages-response-class';
7
8
  export * from './list-translations-response-class';
9
+ export * from './new-translation-class';
8
10
  export * from './product-language-class';
11
+ export * from './save-product-translations-request-dto';
12
+ export * from './translatable-field-class';
9
13
  export * from './translation-class';
10
14
  export * from './update-product-language-request-dto';
11
15
  export * from './update-product-language-response-class';
@@ -17,11 +17,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-product-language-request-dto"), exports);
18
18
  __exportStar(require("./create-product-language-response-class"), exports);
19
19
  __exportStar(require("./get-product-language-response-class"), exports);
20
+ __exportStar(require("./get-product-translations-response-class"), exports);
20
21
  __exportStar(require("./inline-response200"), exports);
21
22
  __exportStar(require("./inline-response503"), exports);
22
23
  __exportStar(require("./list-product-languages-response-class"), exports);
23
24
  __exportStar(require("./list-translations-response-class"), exports);
25
+ __exportStar(require("./new-translation-class"), exports);
24
26
  __exportStar(require("./product-language-class"), exports);
27
+ __exportStar(require("./save-product-translations-request-dto"), exports);
28
+ __exportStar(require("./translatable-field-class"), exports);
25
29
  __exportStar(require("./translation-class"), exports);
26
30
  __exportStar(require("./update-product-language-request-dto"), exports);
27
31
  __exportStar(require("./update-product-language-response-class"), exports);
@@ -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 NewTranslationClass
16
+ */
17
+ export interface NewTranslationClass {
18
+ /**
19
+ * Identifier of the translated field
20
+ * @type {string}
21
+ * @memberof NewTranslationClass
22
+ */
23
+ 'key': string;
24
+ /**
25
+ * Language of the translation
26
+ * @type {string}
27
+ * @memberof NewTranslationClass
28
+ */
29
+ 'language': string;
30
+ /**
31
+ * Translated value
32
+ * @type {string}
33
+ * @memberof NewTranslationClass
34
+ */
35
+ 'value': 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 });
@@ -0,0 +1,53 @@
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 { NewTranslationClass } from './new-translation-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SaveProductTranslationsRequestDto
17
+ */
18
+ export interface SaveProductTranslationsRequestDto {
19
+ /**
20
+ * Language of the product\'s translations
21
+ * @type {string}
22
+ * @memberof SaveProductTranslationsRequestDto
23
+ */
24
+ 'language': SaveProductTranslationsRequestDtoLanguageEnum;
25
+ /**
26
+ * Translations to create or update, keyed by translation key
27
+ * @type {Array<NewTranslationClass>}
28
+ * @memberof SaveProductTranslationsRequestDto
29
+ */
30
+ 'translations': Array<NewTranslationClass>;
31
+ }
32
+ export declare const SaveProductTranslationsRequestDtoLanguageEnum: {
33
+ readonly German: "German";
34
+ readonly English: "English";
35
+ readonly Polish: "Polish";
36
+ readonly French: "French";
37
+ readonly Italian: "Italian";
38
+ readonly Spanish: "Spanish";
39
+ readonly Portuguese: "Portuguese";
40
+ readonly Russian: "Russian";
41
+ readonly Japanese: "Japanese";
42
+ readonly Chinese: "Chinese";
43
+ readonly Korean: "Korean";
44
+ readonly Turkish: "Turkish";
45
+ readonly Arabic: "Arabic";
46
+ readonly Hindi: "Hindi";
47
+ readonly Indonesian: "Indonesian";
48
+ readonly Thai: "Thai";
49
+ readonly Vietnamese: "Vietnamese";
50
+ readonly Persian: "Persian";
51
+ readonly Romanian: "Romanian";
52
+ };
53
+ export type SaveProductTranslationsRequestDtoLanguageEnum = typeof SaveProductTranslationsRequestDtoLanguageEnum[keyof typeof SaveProductTranslationsRequestDtoLanguageEnum];
@@ -0,0 +1,37 @@
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 });
16
+ exports.SaveProductTranslationsRequestDtoLanguageEnum = void 0;
17
+ exports.SaveProductTranslationsRequestDtoLanguageEnum = {
18
+ German: 'German',
19
+ English: 'English',
20
+ Polish: 'Polish',
21
+ French: 'French',
22
+ Italian: 'Italian',
23
+ Spanish: 'Spanish',
24
+ Portuguese: 'Portuguese',
25
+ Russian: 'Russian',
26
+ Japanese: 'Japanese',
27
+ Chinese: 'Chinese',
28
+ Korean: 'Korean',
29
+ Turkish: 'Turkish',
30
+ Arabic: 'Arabic',
31
+ Hindi: 'Hindi',
32
+ Indonesian: 'Indonesian',
33
+ Thai: 'Thai',
34
+ Vietnamese: 'Vietnamese',
35
+ Persian: 'Persian',
36
+ Romanian: 'Romanian'
37
+ };
@@ -0,0 +1,42 @@
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 TranslatableFieldClass
16
+ */
17
+ export interface TranslatableFieldClass {
18
+ /**
19
+ * Identifier of the translatable field
20
+ * @type {string}
21
+ * @memberof TranslatableFieldClass
22
+ */
23
+ 'key': string;
24
+ /**
25
+ * Value in the product\'s default language
26
+ * @type {string}
27
+ * @memberof TranslatableFieldClass
28
+ */
29
+ 'value': string;
30
+ /**
31
+ * Language the field is being translated into
32
+ * @type {string}
33
+ * @memberof TranslatableFieldClass
34
+ */
35
+ 'language': string;
36
+ /**
37
+ * Existing translation, or an empty string when the field is not translated yet
38
+ * @type {string}
39
+ * @memberof TranslatableFieldClass
40
+ */
41
+ 'translatedValue': string;
42
+ }
@@ -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,31 @@
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 { TranslatableFieldClass } from './translatable-field-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetProductTranslationsResponseClass
22
+ */
23
+ export interface GetProductTranslationsResponseClass {
24
+ /**
25
+ * The list of translatableFields.
26
+ * @type {Array<TranslatableFieldClass>}
27
+ * @memberof GetProductTranslationsResponseClass
28
+ */
29
+ 'translations': Array<TranslatableFieldClass>;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -1,11 +1,15 @@
1
1
  export * from './create-product-language-request-dto';
2
2
  export * from './create-product-language-response-class';
3
3
  export * from './get-product-language-response-class';
4
+ export * from './get-product-translations-response-class';
4
5
  export * from './inline-response200';
5
6
  export * from './inline-response503';
6
7
  export * from './list-product-languages-response-class';
7
8
  export * from './list-translations-response-class';
9
+ export * from './new-translation-class';
8
10
  export * from './product-language-class';
11
+ export * from './save-product-translations-request-dto';
12
+ export * from './translatable-field-class';
9
13
  export * from './translation-class';
10
14
  export * from './update-product-language-request-dto';
11
15
  export * from './update-product-language-response-class';
@@ -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 NewTranslationClass
21
+ */
22
+ export interface NewTranslationClass {
23
+ /**
24
+ * Identifier of the translated field
25
+ * @type {string}
26
+ * @memberof NewTranslationClass
27
+ */
28
+ 'key': string;
29
+ /**
30
+ * Language of the translation
31
+ * @type {string}
32
+ * @memberof NewTranslationClass
33
+ */
34
+ 'language': string;
35
+ /**
36
+ * Translated value
37
+ * @type {string}
38
+ * @memberof NewTranslationClass
39
+ */
40
+ 'value': string;
41
+ }
42
+
@@ -0,0 +1,62 @@
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 { NewTranslationClass } from './new-translation-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface SaveProductTranslationsRequestDto
22
+ */
23
+ export interface SaveProductTranslationsRequestDto {
24
+ /**
25
+ * Language of the product\'s translations
26
+ * @type {string}
27
+ * @memberof SaveProductTranslationsRequestDto
28
+ */
29
+ 'language': SaveProductTranslationsRequestDtoLanguageEnum;
30
+ /**
31
+ * Translations to create or update, keyed by translation key
32
+ * @type {Array<NewTranslationClass>}
33
+ * @memberof SaveProductTranslationsRequestDto
34
+ */
35
+ 'translations': Array<NewTranslationClass>;
36
+ }
37
+
38
+ export const SaveProductTranslationsRequestDtoLanguageEnum = {
39
+ German: 'German',
40
+ English: 'English',
41
+ Polish: 'Polish',
42
+ French: 'French',
43
+ Italian: 'Italian',
44
+ Spanish: 'Spanish',
45
+ Portuguese: 'Portuguese',
46
+ Russian: 'Russian',
47
+ Japanese: 'Japanese',
48
+ Chinese: 'Chinese',
49
+ Korean: 'Korean',
50
+ Turkish: 'Turkish',
51
+ Arabic: 'Arabic',
52
+ Hindi: 'Hindi',
53
+ Indonesian: 'Indonesian',
54
+ Thai: 'Thai',
55
+ Vietnamese: 'Vietnamese',
56
+ Persian: 'Persian',
57
+ Romanian: 'Romanian'
58
+ } as const;
59
+
60
+ export type SaveProductTranslationsRequestDtoLanguageEnum = typeof SaveProductTranslationsRequestDtoLanguageEnum[keyof typeof SaveProductTranslationsRequestDtoLanguageEnum];
61
+
62
+
@@ -0,0 +1,48 @@
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 TranslatableFieldClass
21
+ */
22
+ export interface TranslatableFieldClass {
23
+ /**
24
+ * Identifier of the translatable field
25
+ * @type {string}
26
+ * @memberof TranslatableFieldClass
27
+ */
28
+ 'key': string;
29
+ /**
30
+ * Value in the product\'s default language
31
+ * @type {string}
32
+ * @memberof TranslatableFieldClass
33
+ */
34
+ 'value': string;
35
+ /**
36
+ * Language the field is being translated into
37
+ * @type {string}
38
+ * @memberof TranslatableFieldClass
39
+ */
40
+ 'language': string;
41
+ /**
42
+ * Existing translation, or an empty string when the field is not translated yet
43
+ * @type {string}
44
+ * @memberof TranslatableFieldClass
45
+ */
46
+ 'translatedValue': string;
47
+ }
48
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/translation-sdk-node",
3
- "version": "1.8.1-beta.1",
3
+ "version": "1.8.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/translation-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [