@emilgroup/translation-sdk 1.0.0 → 1.0.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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +9 -26
  3. package/api/default-api.ts +124 -0
  4. package/api/translation-api.ts +170 -209
  5. package/api.ts +2 -4
  6. package/base.ts +140 -97
  7. package/common.ts +2 -3
  8. package/configuration.ts +9 -8
  9. package/dist/api/default-api.d.ts +70 -0
  10. package/dist/api/default-api.js +200 -0
  11. package/dist/api/translation-api.d.ts +139 -165
  12. package/dist/api/translation-api.js +125 -147
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/base.d.ts +22 -13
  16. package/dist/base.js +125 -153
  17. package/dist/common.d.ts +0 -1
  18. package/dist/common.js +3 -4
  19. package/dist/configuration.d.ts +6 -7
  20. package/dist/configuration.js +8 -0
  21. package/dist/models/create-product-language-request-dto.d.ts +1 -1
  22. package/dist/models/get-product-language-response-class.d.ts +25 -0
  23. package/dist/models/get-product-language-response-class.js +15 -0
  24. package/dist/models/index.d.ts +3 -0
  25. package/dist/models/index.js +3 -0
  26. package/dist/models/inline-response200.d.ts +54 -0
  27. package/dist/models/inline-response200.js +15 -0
  28. package/dist/models/inline-response503.d.ts +54 -0
  29. package/dist/models/inline-response503.js +15 -0
  30. package/dist/models/product-language-class.d.ts +4 -4
  31. package/models/create-product-language-request-dto.ts +1 -1
  32. package/models/get-product-language-response-class.ts +31 -0
  33. package/models/index.ts +3 -0
  34. package/models/inline-response200.ts +48 -0
  35. package/models/inline-response503.ts +48 -0
  36. package/models/product-language-class.ts +4 -4
  37. package/package.json +2 -5
  38. package/tsconfig.json +1 -0
@@ -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 InlineResponse200
16
+ */
17
+ export interface InlineResponse200 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InlineResponse200
22
+ */
23
+ 'status'?: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
+ * @memberof InlineResponse200
28
+ */
29
+ 'info'?: {
30
+ [key: string]: {
31
+ [key: string]: object;
32
+ };
33
+ } | null;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
+ * @memberof InlineResponse200
38
+ */
39
+ 'error'?: {
40
+ [key: string]: {
41
+ [key: string]: object;
42
+ };
43
+ } | null;
44
+ /**
45
+ *
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
+ * @memberof InlineResponse200
48
+ */
49
+ 'details'?: {
50
+ [key: string]: {
51
+ [key: string]: object;
52
+ };
53
+ };
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 });
@@ -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 InlineResponse503
16
+ */
17
+ export interface InlineResponse503 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InlineResponse503
22
+ */
23
+ 'status'?: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
+ * @memberof InlineResponse503
28
+ */
29
+ 'info'?: {
30
+ [key: string]: {
31
+ [key: string]: object;
32
+ };
33
+ } | null;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
+ * @memberof InlineResponse503
38
+ */
39
+ 'error'?: {
40
+ [key: string]: {
41
+ [key: string]: object;
42
+ };
43
+ } | null;
44
+ /**
45
+ *
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
+ * @memberof InlineResponse503
48
+ */
49
+ 'details'?: {
50
+ [key: string]: {
51
+ [key: string]: object;
52
+ };
53
+ };
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 });
@@ -22,7 +22,7 @@ export interface ProductLanguageClass {
22
22
  */
23
23
  'id': number;
24
24
  /**
25
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
25
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
26
26
  * @type {string}
27
27
  * @memberof ProductLanguageClass
28
28
  */
@@ -40,11 +40,11 @@ export interface ProductLanguageClass {
40
40
  */
41
41
  'isActive': boolean;
42
42
  /**
43
- * The translation status. It tells if the language is ready to be used in the product. Can be null in the default language.
44
- * @type {string}
43
+ * The translation status. It tells if the language is ready to be used in the product and how many fields are missing.
44
+ * @type {object}
45
45
  * @memberof ProductLanguageClass
46
46
  */
47
- 'translationStatus': string | null;
47
+ 'translationStatus': object | null;
48
48
  /**
49
49
  * Time at which the object was created.
50
50
  * @type {string}
@@ -21,7 +21,7 @@
21
21
  */
22
22
  export interface CreateProductLanguageRequestDto {
23
23
  /**
24
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
24
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
25
25
  * @type {string}
26
26
  * @memberof CreateProductLanguageRequestDto
27
27
  */
@@ -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 GetProductLanguageResponseClass
22
+ */
23
+ export interface GetProductLanguageResponseClass {
24
+ /**
25
+ * The requested product language.
26
+ * @type {ProductLanguageClass}
27
+ * @memberof GetProductLanguageResponseClass
28
+ */
29
+ 'productLanguage': ProductLanguageClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  export * from './create-product-language-request-dto';
2
2
  export * from './create-product-language-response-class';
3
+ export * from './get-product-language-response-class';
4
+ export * from './inline-response200';
5
+ export * from './inline-response503';
3
6
  export * from './list-product-languages-response-class';
4
7
  export * from './list-translations-response-class';
5
8
  export * from './product-language-class';
@@ -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 InlineResponse200
21
+ */
22
+ export interface InlineResponse200 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse200
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
+ * @memberof InlineResponse200
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
+ * @memberof InlineResponse200
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
+ * @memberof InlineResponse200
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
+ }
48
+
@@ -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 InlineResponse503
21
+ */
22
+ export interface InlineResponse503 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse503
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
+ * @memberof InlineResponse503
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
+ * @memberof InlineResponse503
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
+ * @memberof InlineResponse503
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
+ }
48
+
@@ -27,7 +27,7 @@ export interface ProductLanguageClass {
27
27
  */
28
28
  'id': number;
29
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.
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
31
  * @type {string}
32
32
  * @memberof ProductLanguageClass
33
33
  */
@@ -45,11 +45,11 @@ export interface ProductLanguageClass {
45
45
  */
46
46
  'isActive': boolean;
47
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}
48
+ * The translation status. It tells if the language is ready to be used in the product and how many fields are missing.
49
+ * @type {object}
50
50
  * @memberof ProductLanguageClass
51
51
  */
52
- 'translationStatus': string | null;
52
+ 'translationStatus': object | null;
53
53
  /**
54
54
  * Time at which the object was created.
55
55
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/translation-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1-beta.4",
4
4
  "description": "OpenAPI client for @emilgroup/translation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,12 +18,9 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^0.27.2",
22
- "form-data": "^4.0.0",
23
- "url": "^0.11.0"
21
+ "axios": "^0.27.2"
24
22
  },
25
23
  "devDependencies": {
26
- "@types/node": "^12.11.5",
27
24
  "typescript": "^4.0"
28
25
  }
29
26
  }
package/tsconfig.json CHANGED
@@ -5,6 +5,7 @@
5
5
  "module": "CommonJS",
6
6
  "noImplicitAny": true,
7
7
  "esModuleInterop": true,
8
+ "noImplicitOverride": true,
8
9
  "outDir": "dist",
9
10
  "rootDir": ".",
10
11
  "lib": [