@emilgroup/translation-sdk-node 1.0.0
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 +23 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/translation-api.ts +1145 -0
- package/api.ts +31 -0
- package/base.ts +284 -0
- package/common.ts +199 -0
- package/configuration.ts +109 -0
- package/dist/api/translation-api.d.ts +649 -0
- package/dist/api/translation-api.js +989 -0
- package/dist/api.d.ts +12 -0
- package/dist/api.js +30 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +393 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/create-product-language-request-dto.d.ts +58 -0
- package/dist/models/create-product-language-request-dto.js +37 -0
- package/dist/models/create-product-language-response-class.d.ts +25 -0
- package/dist/models/create-product-language-response-class.js +15 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +25 -0
- package/dist/models/list-product-languages-response-class.d.ts +31 -0
- package/dist/models/list-product-languages-response-class.js +15 -0
- package/dist/models/list-translations-response-class.d.ts +31 -0
- package/dist/models/list-translations-response-class.js +15 -0
- package/dist/models/product-language-class.d.ts +82 -0
- package/dist/models/product-language-class.js +37 -0
- package/dist/models/translation-class.d.ts +54 -0
- package/dist/models/translation-class.js +15 -0
- package/dist/models/update-product-language-request-dto.d.ts +58 -0
- package/dist/models/update-product-language-request-dto.js +37 -0
- package/dist/models/update-product-language-response-class.d.ts +25 -0
- package/dist/models/update-product-language-response-class.js +15 -0
- package/dist/models/upload-product-translations-response-class.d.ts +25 -0
- package/dist/models/upload-product-translations-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-product-language-request-dto.ts +67 -0
- package/models/create-product-language-response-class.ts +31 -0
- package/models/index.ts +9 -0
- package/models/list-product-languages-response-class.ts +37 -0
- package/models/list-translations-response-class.ts +37 -0
- package/models/product-language-class.ts +91 -0
- package/models/translation-class.ts +60 -0
- package/models/update-product-language-request-dto.ts +67 -0
- package/models/update-product-language-response-class.ts +31 -0
- package/models/upload-product-translations-response-class.ts +31 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -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 { TranslationClass } from './translation-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListTranslationsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListTranslationsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The list of translations.
|
|
26
|
+
* @type {Array<TranslationClass>}
|
|
27
|
+
* @memberof ListTranslationsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<TranslationClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListTranslationsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 ProductLanguageClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ProductLanguageClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof ProductLanguageClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ProductLanguageClass
|
|
33
|
+
*/
|
|
34
|
+
'productSlug': string;
|
|
35
|
+
/**
|
|
36
|
+
* The language of the product.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ProductLanguageClass
|
|
39
|
+
*/
|
|
40
|
+
'language': ProductLanguageClassLanguageEnum;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether the language is activated for the product.
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof ProductLanguageClass
|
|
45
|
+
*/
|
|
46
|
+
'isActive': boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The translation status. It tells if the language is ready to be used in the product. Can be null in the default language.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ProductLanguageClass
|
|
51
|
+
*/
|
|
52
|
+
'translationStatus': string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Time at which the object was created.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ProductLanguageClass
|
|
57
|
+
*/
|
|
58
|
+
'createdAt': string;
|
|
59
|
+
/**
|
|
60
|
+
* Time at which the object was updated.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ProductLanguageClass
|
|
63
|
+
*/
|
|
64
|
+
'updatedAt': string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const ProductLanguageClassLanguageEnum = {
|
|
68
|
+
German: 'German',
|
|
69
|
+
English: 'English',
|
|
70
|
+
Polish: 'Polish',
|
|
71
|
+
French: 'French',
|
|
72
|
+
Italian: 'Italian',
|
|
73
|
+
Spanish: 'Spanish',
|
|
74
|
+
Portuguese: 'Portuguese',
|
|
75
|
+
Russian: 'Russian',
|
|
76
|
+
Japanese: 'Japanese',
|
|
77
|
+
Chinese: 'Chinese',
|
|
78
|
+
Korean: 'Korean',
|
|
79
|
+
Turkish: 'Turkish',
|
|
80
|
+
Arabic: 'Arabic',
|
|
81
|
+
Hindi: 'Hindi',
|
|
82
|
+
Indonesian: 'Indonesian',
|
|
83
|
+
Thai: 'Thai',
|
|
84
|
+
Vietnamese: 'Vietnamese',
|
|
85
|
+
Persian: 'Persian',
|
|
86
|
+
Romanian: 'Romanian'
|
|
87
|
+
} as const;
|
|
88
|
+
|
|
89
|
+
export type ProductLanguageClassLanguageEnum = typeof ProductLanguageClassLanguageEnum[keyof typeof ProductLanguageClassLanguageEnum];
|
|
90
|
+
|
|
91
|
+
|
|
@@ -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 TranslationClass
|
|
21
|
+
*/
|
|
22
|
+
export interface TranslationClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof TranslationClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Identifier of the translated field
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof TranslationClass
|
|
33
|
+
*/
|
|
34
|
+
'key': string;
|
|
35
|
+
/**
|
|
36
|
+
* Language of the translation
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof TranslationClass
|
|
39
|
+
*/
|
|
40
|
+
'language': string;
|
|
41
|
+
/**
|
|
42
|
+
* Translated value
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof TranslationClass
|
|
45
|
+
*/
|
|
46
|
+
'value': string;
|
|
47
|
+
/**
|
|
48
|
+
* Time at which the object was created.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof TranslationClass
|
|
51
|
+
*/
|
|
52
|
+
'createdAt': string;
|
|
53
|
+
/**
|
|
54
|
+
* Time at which the object was updated.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof TranslationClass
|
|
57
|
+
*/
|
|
58
|
+
'updatedAt': string;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
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 UpdateProductLanguageRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateProductLanguageRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof UpdateProductLanguageRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Language of the product.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof UpdateProductLanguageRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'language': UpdateProductLanguageRequestDtoLanguageEnum;
|
|
35
|
+
/**
|
|
36
|
+
* Indicates whether the language is activated for the product.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof UpdateProductLanguageRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'isActive': boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const UpdateProductLanguageRequestDtoLanguageEnum = {
|
|
44
|
+
German: 'German',
|
|
45
|
+
English: 'English',
|
|
46
|
+
Polish: 'Polish',
|
|
47
|
+
French: 'French',
|
|
48
|
+
Italian: 'Italian',
|
|
49
|
+
Spanish: 'Spanish',
|
|
50
|
+
Portuguese: 'Portuguese',
|
|
51
|
+
Russian: 'Russian',
|
|
52
|
+
Japanese: 'Japanese',
|
|
53
|
+
Chinese: 'Chinese',
|
|
54
|
+
Korean: 'Korean',
|
|
55
|
+
Turkish: 'Turkish',
|
|
56
|
+
Arabic: 'Arabic',
|
|
57
|
+
Hindi: 'Hindi',
|
|
58
|
+
Indonesian: 'Indonesian',
|
|
59
|
+
Thai: 'Thai',
|
|
60
|
+
Vietnamese: 'Vietnamese',
|
|
61
|
+
Persian: 'Persian',
|
|
62
|
+
Romanian: 'Romanian'
|
|
63
|
+
} as const;
|
|
64
|
+
|
|
65
|
+
export type UpdateProductLanguageRequestDtoLanguageEnum = typeof UpdateProductLanguageRequestDtoLanguageEnum[keyof typeof UpdateProductLanguageRequestDtoLanguageEnum];
|
|
66
|
+
|
|
67
|
+
|
|
@@ -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 UpdateProductLanguageResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface UpdateProductLanguageResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The updated product language.
|
|
26
|
+
* @type {ProductLanguageClass}
|
|
27
|
+
* @memberof UpdateProductLanguageResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'productLanguage': ProductLanguageClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -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 { TranslationClass } from './translation-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface UploadProductTranslationsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface UploadProductTranslationsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The list of translations.
|
|
26
|
+
* @type {Array<TranslationClass>}
|
|
27
|
+
* @memberof UploadProductTranslationsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'translations': Array<TranslationClass>;
|
|
30
|
+
}
|
|
31
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@emilgroup/translation-sdk-node",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "OpenAPI client for @emilgroup/translation-sdk-node",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"axios",
|
|
8
|
+
"typescript",
|
|
9
|
+
"openapi-client",
|
|
10
|
+
"openapi-generator",
|
|
11
|
+
"@emilgroup/translation-sdk-node"
|
|
12
|
+
],
|
|
13
|
+
"license": "Unlicense",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"typings": "./dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc --outDir dist/",
|
|
18
|
+
"prepare": "npm run build"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"axios": "^0.27.2",
|
|
22
|
+
"form-data": "^4.0.0",
|
|
23
|
+
"url": "^0.11.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
|
+
"typescript": "^4.0"
|
|
28
|
+
}
|
|
29
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"target": "ES5",
|
|
5
|
+
"module": "CommonJS",
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"outDir": "dist",
|
|
9
|
+
"rootDir": ".",
|
|
10
|
+
"lib": [
|
|
11
|
+
"es6",
|
|
12
|
+
"dom"
|
|
13
|
+
],
|
|
14
|
+
"typeRoots": [
|
|
15
|
+
"node_modules/@types"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"exclude": [
|
|
19
|
+
"dist",
|
|
20
|
+
"node_modules"
|
|
21
|
+
]
|
|
22
|
+
}
|