@emilgroup/translation-sdk-node 1.8.0 → 1.8.1-beta.10
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 +6 -0
- package/README.md +2 -2
- package/api/translation-api.ts +348 -8
- package/dist/api/translation-api.d.ts +194 -8
- package/dist/api/translation-api.js +297 -6
- 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 +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/new-translation-class.d.ts +36 -0
- package/dist/models/new-translation-class.js +15 -0
- package/dist/models/refresh-product-languages-response-class.d.ts +25 -0
- package/dist/models/refresh-product-languages-response-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/skipped-translation-class.d.ts +36 -0
- package/dist/models/skipped-translation-class.js +15 -0
- package/dist/models/translatable-field-class.d.ts +54 -0
- package/dist/models/translatable-field-class.js +15 -0
- package/dist/models/upload-product-translations-response-class.d.ts +13 -0
- package/models/get-product-translations-response-class.ts +31 -0
- package/models/index.ts +6 -0
- package/models/new-translation-class.ts +42 -0
- package/models/refresh-product-languages-response-class.ts +31 -0
- package/models/save-product-translations-request-dto.ts +62 -0
- package/models/skipped-translation-class.ts +42 -0
- package/models/translatable-field-class.ts +60 -0
- package/models/upload-product-translations-response-class.ts +13 -0
- package/package.json +1 -1
|
@@ -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,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 or malformed-attribute.
|
|
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 });
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
/**
|
|
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;
|
|
54
|
+
}
|
|
@@ -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 });
|
|
@@ -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
|
}
|
|
@@ -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,17 @@
|
|
|
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 './refresh-product-languages-response-class';
|
|
12
|
+
export * from './save-product-translations-request-dto';
|
|
13
|
+
export * from './skipped-translation-class';
|
|
14
|
+
export * from './translatable-field-class';
|
|
9
15
|
export * from './translation-class';
|
|
10
16
|
export * from './update-product-language-request-dto';
|
|
11
17
|
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,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 { 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
|
+
|
|
@@ -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,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 or malformed-attribute.
|
|
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
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
* 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;
|
|
59
|
+
}
|
|
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
|
|