@emilgroup/translation-sdk 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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +23 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +68 -0
  5. package/api/translation-api.ts +1145 -0
  6. package/api.ts +31 -0
  7. package/base.ts +284 -0
  8. package/common.ts +199 -0
  9. package/configuration.ts +109 -0
  10. package/dist/api/translation-api.d.ts +649 -0
  11. package/dist/api/translation-api.js +989 -0
  12. package/dist/api.d.ts +12 -0
  13. package/dist/api.js +30 -0
  14. package/dist/base.d.ts +77 -0
  15. package/dist/base.js +393 -0
  16. package/dist/common.d.ts +92 -0
  17. package/dist/common.js +277 -0
  18. package/dist/configuration.d.ts +90 -0
  19. package/dist/configuration.js +44 -0
  20. package/dist/index.d.ts +15 -0
  21. package/dist/index.js +36 -0
  22. package/dist/models/create-product-language-request-dto.d.ts +58 -0
  23. package/dist/models/create-product-language-request-dto.js +37 -0
  24. package/dist/models/create-product-language-response-class.d.ts +25 -0
  25. package/dist/models/create-product-language-response-class.js +15 -0
  26. package/dist/models/index.d.ts +9 -0
  27. package/dist/models/index.js +25 -0
  28. package/dist/models/list-product-languages-response-class.d.ts +31 -0
  29. package/dist/models/list-product-languages-response-class.js +15 -0
  30. package/dist/models/list-translations-response-class.d.ts +31 -0
  31. package/dist/models/list-translations-response-class.js +15 -0
  32. package/dist/models/product-language-class.d.ts +82 -0
  33. package/dist/models/product-language-class.js +37 -0
  34. package/dist/models/translation-class.d.ts +54 -0
  35. package/dist/models/translation-class.js +15 -0
  36. package/dist/models/update-product-language-request-dto.d.ts +58 -0
  37. package/dist/models/update-product-language-request-dto.js +37 -0
  38. package/dist/models/update-product-language-response-class.d.ts +25 -0
  39. package/dist/models/update-product-language-response-class.js +15 -0
  40. package/dist/models/upload-product-translations-response-class.d.ts +25 -0
  41. package/dist/models/upload-product-translations-response-class.js +15 -0
  42. package/git_push.sh +57 -0
  43. package/index.ts +19 -0
  44. package/models/create-product-language-request-dto.ts +67 -0
  45. package/models/create-product-language-response-class.ts +31 -0
  46. package/models/index.ts +9 -0
  47. package/models/list-product-languages-response-class.ts +37 -0
  48. package/models/list-translations-response-class.ts +37 -0
  49. package/models/product-language-class.ts +91 -0
  50. package/models/translation-class.ts +60 -0
  51. package/models/update-product-language-request-dto.ts +67 -0
  52. package/models/update-product-language-response-class.ts +31 -0
  53. package/models/upload-product-translations-response-class.ts +31 -0
  54. package/package.json +29 -0
  55. 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",
3
+ "version": "1.0.0",
4
+ "description": "OpenAPI client for @emilgroup/translation-sdk",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "keywords": [
7
+ "axios",
8
+ "typescript",
9
+ "openapi-client",
10
+ "openapi-generator",
11
+ "@emilgroup/translation-sdk"
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
+ }