@emilgroup/translation-sdk-node 1.8.1-beta.2 → 1.8.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/api/translation-api.ts +237 -0
- package/dist/api/translation-api.d.ts +130 -0
- package/dist/api/translation-api.js +199 -0
- package/dist/models/get-product-translations-response-class.d.ts +25 -0
- package/dist/models/get-product-translations-response-class.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/new-translation-class.d.ts +36 -0
- package/dist/models/new-translation-class.js +15 -0
- package/dist/models/save-product-translations-request-dto.d.ts +53 -0
- package/dist/models/save-product-translations-request-dto.js +37 -0
- package/dist/models/translatable-field-class.d.ts +42 -0
- package/dist/models/translatable-field-class.js +15 -0
- package/models/get-product-translations-response-class.ts +31 -0
- package/models/index.ts +4 -0
- package/models/new-translation-class.ts +42 -0
- package/models/save-product-translations-request-dto.ts +62 -0
- package/models/translatable-field-class.ts +48 -0
- package/package.json +1 -1
|
@@ -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
|
+
|