@emilgroup/partner-sdk-node 1.3.1-beta.1 → 1.4.1-beta.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 (69) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +38 -5
  3. package/api/default-api.ts +4 -0
  4. package/api/partner-relations-api.ts +12 -8
  5. package/api/partner-tags-api.ts +12 -8
  6. package/api/partner-types-api.ts +8 -4
  7. package/api/partner-version-api.ts +8 -4
  8. package/api/partners-api.ts +12 -8
  9. package/api.ts +4 -0
  10. package/base.ts +91 -62
  11. package/common.ts +1 -0
  12. package/configuration.ts +8 -0
  13. package/dist/api/default-api.js +5 -1
  14. package/dist/api/partner-relations-api.d.ts +8 -8
  15. package/dist/api/partner-relations-api.js +17 -13
  16. package/dist/api/partner-tags-api.d.ts +8 -8
  17. package/dist/api/partner-tags-api.js +16 -12
  18. package/dist/api/partner-types-api.d.ts +4 -4
  19. package/dist/api/partner-types-api.js +13 -9
  20. package/dist/api/partner-version-api.d.ts +4 -4
  21. package/dist/api/partner-version-api.js +9 -5
  22. package/dist/api/partners-api.d.ts +8 -8
  23. package/dist/api/partners-api.js +17 -13
  24. package/dist/base.d.ts +9 -6
  25. package/dist/base.js +137 -45
  26. package/dist/common.d.ts +1 -0
  27. package/dist/common.js +2 -1
  28. package/dist/configuration.d.ts +7 -0
  29. package/dist/models/create-partner-type-request-dto.d.ts +3 -2
  30. package/dist/models/create-partner-type-response-class.d.ts +1 -1
  31. package/dist/models/create-tag-request-dto.d.ts +1 -1
  32. package/dist/models/get-partner-type-response-class.d.ts +1 -1
  33. package/dist/models/get-partner-version-response-class.d.ts +3 -3
  34. package/dist/models/index.d.ts +1 -0
  35. package/dist/models/index.js +1 -0
  36. package/dist/models/list-partner-relation-class.d.ts +1 -1
  37. package/dist/models/list-partner-relation-types-class.d.ts +1 -1
  38. package/dist/models/list-partner-types-response-class.d.ts +1 -1
  39. package/dist/models/list-partner-versions-response-class.d.ts +1 -7
  40. package/dist/models/list-partners-response-class.d.ts +1 -1
  41. package/dist/models/partner-class.d.ts +6 -12
  42. package/dist/models/partner-relation-class.d.ts +0 -12
  43. package/dist/models/partner-relation-type-class.d.ts +0 -12
  44. package/dist/models/partner-type-class.d.ts +0 -12
  45. package/dist/models/partner-type-custom-schema-dto.d.ts +102 -0
  46. package/dist/models/partner-type-custom-schema-dto.js +15 -0
  47. package/dist/models/tag-class.d.ts +0 -12
  48. package/dist/models/update-partner-type-request-dto.d.ts +3 -2
  49. package/dist/models/update-partner-type-response-class.d.ts +1 -1
  50. package/models/create-partner-type-request-dto.ts +3 -2
  51. package/models/create-partner-type-response-class.ts +1 -1
  52. package/models/create-tag-request-dto.ts +1 -1
  53. package/models/get-partner-type-response-class.ts +1 -1
  54. package/models/get-partner-version-response-class.ts +3 -3
  55. package/models/index.ts +1 -0
  56. package/models/list-partner-relation-class.ts +1 -1
  57. package/models/list-partner-relation-types-class.ts +1 -1
  58. package/models/list-partner-types-response-class.ts +1 -1
  59. package/models/list-partner-versions-response-class.ts +1 -7
  60. package/models/list-partners-response-class.ts +1 -1
  61. package/models/partner-class.ts +6 -12
  62. package/models/partner-relation-class.ts +0 -12
  63. package/models/partner-relation-type-class.ts +0 -12
  64. package/models/partner-type-class.ts +0 -12
  65. package/models/partner-type-custom-schema-dto.ts +108 -0
  66. package/models/tag-class.ts +0 -12
  67. package/models/update-partner-type-request-dto.ts +3 -2
  68. package/models/update-partner-type-response-class.ts +1 -1
  69. package/package.json +5 -2
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerService
6
+ * The EMIL PartnerService 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 });
@@ -51,16 +51,4 @@ export interface TagClass {
51
51
  * @memberof TagClass
52
52
  */
53
53
  'updatedAt': string;
54
- /**
55
- * Identifier of the user who created the record.
56
- * @type {string}
57
- * @memberof TagClass
58
- */
59
- 'createdBy': string;
60
- /**
61
- * Identifier of the user who last updated the record.
62
- * @type {string}
63
- * @memberof TagClass
64
- */
65
- 'updatedBy': string;
66
54
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { PartnerTypeCustomSchemaDto } from './partner-type-custom-schema-dto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -29,10 +30,10 @@ export interface UpdatePartnerTypeRequestDto {
29
30
  'slug': UpdatePartnerTypeRequestDtoSlugEnum;
30
31
  /**
31
32
  * The partner type schema array of object based on json schema.
32
- * @type {Array<string>}
33
+ * @type {Array<PartnerTypeCustomSchemaDto>}
33
34
  * @memberof UpdatePartnerTypeRequestDto
34
35
  */
35
- 'schemas': Array<string>;
36
+ 'schemas': Array<PartnerTypeCustomSchemaDto>;
36
37
  }
37
38
  export declare const UpdatePartnerTypeRequestDtoSlugEnum: {
38
39
  readonly Person: "person";
@@ -17,7 +17,7 @@ import { PartnerTypeClass } from './partner-type-class';
17
17
  */
18
18
  export interface UpdatePartnerTypeResponseClass {
19
19
  /**
20
- * The partner type response.
20
+ * The partnerType response.
21
21
  * @type {PartnerTypeClass}
22
22
  * @memberof UpdatePartnerTypeResponseClass
23
23
  */
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { PartnerTypeCustomSchemaDto } from './partner-type-custom-schema-dto';
16
17
 
17
18
  /**
18
19
  *
@@ -34,10 +35,10 @@ export interface CreatePartnerTypeRequestDto {
34
35
  'slug': CreatePartnerTypeRequestDtoSlugEnum;
35
36
  /**
36
37
  * The partner type schema array of object based on json schema.
37
- * @type {Array<string>}
38
+ * @type {Array<PartnerTypeCustomSchemaDto>}
38
39
  * @memberof CreatePartnerTypeRequestDto
39
40
  */
40
- 'schemas': Array<string>;
41
+ 'schemas': Array<PartnerTypeCustomSchemaDto>;
41
42
  }
42
43
 
43
44
  export const CreatePartnerTypeRequestDtoSlugEnum = {
@@ -22,7 +22,7 @@ import { PartnerTypeClass } from './partner-type-class';
22
22
  */
23
23
  export interface CreatePartnerTypeResponseClass {
24
24
  /**
25
- * The partner type response.
25
+ * The partnerType response.
26
26
  * @type {PartnerTypeClass}
27
27
  * @memberof CreatePartnerTypeResponseClass
28
28
  */
@@ -37,6 +37,6 @@ export interface CreateTagRequestDto {
37
37
  * @type {string}
38
38
  * @memberof CreateTagRequestDto
39
39
  */
40
- 'description': string;
40
+ 'description'?: string;
41
41
  }
42
42
 
@@ -22,7 +22,7 @@ import { PartnerTypeClass } from './partner-type-class';
22
22
  */
23
23
  export interface GetPartnerTypeResponseClass {
24
24
  /**
25
- * The partner type response.
25
+ * The partnerType response.
26
26
  * @type {PartnerTypeClass}
27
27
  * @memberof GetPartnerTypeResponseClass
28
28
  */
@@ -22,10 +22,10 @@ import { PartnerClass } from './partner-class';
22
22
  */
23
23
  export interface GetPartnerVersionResponseClass {
24
24
  /**
25
- * The partner response.
26
- * @type {PartnerClass}
25
+ * The list of partners.
26
+ * @type {Array<PartnerClass>}
27
27
  * @memberof GetPartnerVersionResponseClass
28
28
  */
29
- 'partnerVersion': PartnerClass;
29
+ 'partnerVersion': Array<PartnerClass>;
30
30
  }
31
31
 
package/models/index.ts CHANGED
@@ -25,6 +25,7 @@ export * from './partner-class';
25
25
  export * from './partner-relation-class';
26
26
  export * from './partner-relation-type-class';
27
27
  export * from './partner-type-class';
28
+ export * from './partner-type-custom-schema-dto';
28
29
  export * from './tag-class';
29
30
  export * from './tag-partner-request-dto-rest';
30
31
  export * from './update-partner-relation-request-dto-rest';
@@ -28,7 +28,7 @@ export interface ListPartnerRelationClass {
28
28
  */
29
29
  'items': Array<PartnerRelationClass>;
30
30
  /**
31
- * Next page token.
31
+ * Next page token
32
32
  * @type {string}
33
33
  * @memberof ListPartnerRelationClass
34
34
  */
@@ -28,7 +28,7 @@ export interface ListPartnerRelationTypesClass {
28
28
  */
29
29
  'items': Array<PartnerRelationTypeClass>;
30
30
  /**
31
- * Next page token.
31
+ * Next page token
32
32
  * @type {string}
33
33
  * @memberof ListPartnerRelationTypesClass
34
34
  */
@@ -22,7 +22,7 @@ import { PartnerTypeClass } from './partner-type-class';
22
22
  */
23
23
  export interface ListPartnerTypesResponseClass {
24
24
  /**
25
- * The list of partner typess.
25
+ * The list of partnerTypes.
26
26
  * @type {Array<PartnerTypeClass>}
27
27
  * @memberof ListPartnerTypesResponseClass
28
28
  */
@@ -22,16 +22,10 @@ import { PartnerClass } from './partner-class';
22
22
  */
23
23
  export interface ListPartnerVersionsResponseClass {
24
24
  /**
25
- * The list of partnerss.
25
+ * The list of Partnerss.
26
26
  * @type {Array<PartnerClass>}
27
27
  * @memberof ListPartnerVersionsResponseClass
28
28
  */
29
29
  'items': Array<PartnerClass>;
30
- /**
31
- * Next page token.
32
- * @type {string}
33
- * @memberof ListPartnerVersionsResponseClass
34
- */
35
- 'nextPageToken': string;
36
30
  }
37
31
 
@@ -22,7 +22,7 @@ import { PartnerClass } from './partner-class';
22
22
  */
23
23
  export interface ListPartnersResponseClass {
24
24
  /**
25
- * The list of partnerss.
25
+ * The list of Partnerss.
26
26
  * @type {Array<PartnerClass>}
27
27
  * @memberof ListPartnersResponseClass
28
28
  */
@@ -69,6 +69,12 @@ export interface PartnerClass {
69
69
  * @memberof PartnerClass
70
70
  */
71
71
  'updatedAt': string;
72
+ /**
73
+ * Last user who updated the entity
74
+ * @type {string}
75
+ * @memberof PartnerClass
76
+ */
77
+ 'updatedBy': string;
72
78
  /**
73
79
  * The version number of the partner
74
80
  * @type {number}
@@ -81,17 +87,5 @@ export interface PartnerClass {
81
87
  * @memberof PartnerClass
82
88
  */
83
89
  'tags': Array<string>;
84
- /**
85
- * Identifier of the user who created the record.
86
- * @type {string}
87
- * @memberof PartnerClass
88
- */
89
- 'createdBy': string;
90
- /**
91
- * Identifier of the user who last updated the record.
92
- * @type {string}
93
- * @memberof PartnerClass
94
- */
95
- 'updatedBy': string;
96
90
  }
97
91
 
@@ -74,17 +74,5 @@ export interface PartnerRelationClass {
74
74
  * @memberof PartnerRelationClass
75
75
  */
76
76
  'updatedAt': string;
77
- /**
78
- * Identifier of the user who created the record.
79
- * @type {string}
80
- * @memberof PartnerRelationClass
81
- */
82
- 'createdBy': string;
83
- /**
84
- * Identifier of the user who last updated the record.
85
- * @type {string}
86
- * @memberof PartnerRelationClass
87
- */
88
- 'updatedBy': string;
89
77
  }
90
78
 
@@ -68,17 +68,5 @@ export interface PartnerRelationTypeClass {
68
68
  * @memberof PartnerRelationTypeClass
69
69
  */
70
70
  'updatedAt': string;
71
- /**
72
- * Identifier of the user who created the record.
73
- * @type {string}
74
- * @memberof PartnerRelationTypeClass
75
- */
76
- 'createdBy': string;
77
- /**
78
- * Identifier of the user who last updated the record.
79
- * @type {string}
80
- * @memberof PartnerRelationTypeClass
81
- */
82
- 'updatedBy': string;
83
71
  }
84
72
 
@@ -68,18 +68,6 @@ export interface PartnerTypeClass {
68
68
  * @memberof PartnerTypeClass
69
69
  */
70
70
  'updatedAt': string;
71
- /**
72
- * Identifier of the user who created the record.
73
- * @type {string}
74
- * @memberof PartnerTypeClass
75
- */
76
- 'createdBy': string;
77
- /**
78
- * Identifier of the user who last updated the record.
79
- * @type {string}
80
- * @memberof PartnerTypeClass
81
- */
82
- 'updatedBy': string;
83
71
  }
84
72
 
85
73
  export const PartnerTypeClassSlugEnum = {
@@ -0,0 +1,108 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService 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 PartnerTypeCustomSchemaDto
21
+ */
22
+ export interface PartnerTypeCustomSchemaDto {
23
+ /**
24
+ * The name of the schema property - should be camelCase.
25
+ * @type {string}
26
+ * @memberof PartnerTypeCustomSchemaDto
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * The type of the schema property.
31
+ * @type {string}
32
+ * @memberof PartnerTypeCustomSchemaDto
33
+ */
34
+ 'type': string;
35
+ /**
36
+ * A boolean value to state if the property is required or not.
37
+ * @type {boolean}
38
+ * @memberof PartnerTypeCustomSchemaDto
39
+ */
40
+ 'isRequired': boolean;
41
+ /**
42
+ * The label of the schema property as it will be displayed in the UI. If no label is provided, the name will be used in its place.
43
+ * @type {string}
44
+ * @memberof PartnerTypeCustomSchemaDto
45
+ */
46
+ 'label'?: string;
47
+ /**
48
+ * Minimum value of the property value. Applicable only if the property is a number type.
49
+ * @type {number}
50
+ * @memberof PartnerTypeCustomSchemaDto
51
+ */
52
+ 'minimum'?: number;
53
+ /**
54
+ * Maxium value of the property value. Applicable only if the property is a number type.
55
+ * @type {number}
56
+ * @memberof PartnerTypeCustomSchemaDto
57
+ */
58
+ 'maximum'?: number;
59
+ /**
60
+ * Minimum character length of the property value. Applicable only if the property is a string type.
61
+ * @type {number}
62
+ * @memberof PartnerTypeCustomSchemaDto
63
+ */
64
+ 'minLength'?: number;
65
+ /**
66
+ * Maximum character length of the property value. Applicable only if the property is a string type.
67
+ * @type {number}
68
+ * @memberof PartnerTypeCustomSchemaDto
69
+ */
70
+ 'maxLength'?: number;
71
+ /**
72
+ * Possible options to select
73
+ * @type {object}
74
+ * @memberof PartnerTypeCustomSchemaDto
75
+ */
76
+ 'options'?: object;
77
+ /**
78
+ * The minimum number of items allowed for array fields.
79
+ * @type {number}
80
+ * @memberof PartnerTypeCustomSchemaDto
81
+ */
82
+ 'minItems'?: number;
83
+ /**
84
+ * The maximum number of items allowed for array fields.
85
+ * @type {number}
86
+ * @memberof PartnerTypeCustomSchemaDto
87
+ */
88
+ 'maxItems'?: number;
89
+ /**
90
+ * Defines the structure of items for array fields.
91
+ * @type {PartnerTypeCustomSchemaDto}
92
+ * @memberof PartnerTypeCustomSchemaDto
93
+ */
94
+ 'items'?: PartnerTypeCustomSchemaDto;
95
+ /**
96
+ * Defines the properties for object fields.
97
+ * @type {object}
98
+ * @memberof PartnerTypeCustomSchemaDto
99
+ */
100
+ 'properties'?: object;
101
+ /**
102
+ * Defines the regex expression for string field.
103
+ * @type {string}
104
+ * @memberof PartnerTypeCustomSchemaDto
105
+ */
106
+ 'regexExpression'?: string;
107
+ }
108
+
@@ -56,17 +56,5 @@ export interface TagClass {
56
56
  * @memberof TagClass
57
57
  */
58
58
  'updatedAt': string;
59
- /**
60
- * Identifier of the user who created the record.
61
- * @type {string}
62
- * @memberof TagClass
63
- */
64
- 'createdBy': string;
65
- /**
66
- * Identifier of the user who last updated the record.
67
- * @type {string}
68
- * @memberof TagClass
69
- */
70
- 'updatedBy': string;
71
59
  }
72
60
 
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { PartnerTypeCustomSchemaDto } from './partner-type-custom-schema-dto';
16
17
 
17
18
  /**
18
19
  *
@@ -34,10 +35,10 @@ export interface UpdatePartnerTypeRequestDto {
34
35
  'slug': UpdatePartnerTypeRequestDtoSlugEnum;
35
36
  /**
36
37
  * The partner type schema array of object based on json schema.
37
- * @type {Array<string>}
38
+ * @type {Array<PartnerTypeCustomSchemaDto>}
38
39
  * @memberof UpdatePartnerTypeRequestDto
39
40
  */
40
- 'schemas': Array<string>;
41
+ 'schemas': Array<PartnerTypeCustomSchemaDto>;
41
42
  }
42
43
 
43
44
  export const UpdatePartnerTypeRequestDtoSlugEnum = {
@@ -22,7 +22,7 @@ import { PartnerTypeClass } from './partner-type-class';
22
22
  */
23
23
  export interface UpdatePartnerTypeResponseClass {
24
24
  /**
25
- * The partner type response.
25
+ * The partnerType response.
26
26
  * @type {PartnerTypeClass}
27
27
  * @memberof UpdatePartnerTypeResponseClass
28
28
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk-node",
3
- "version": "1.3.1-beta.1",
3
+ "version": "1.4.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,9 +18,12 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^0.27.2"
21
+ "axios": "^0.27.2",
22
+ "form-data": "^4.0.0",
23
+ "url": "^0.11.0"
22
24
  },
23
25
  "devDependencies": {
26
+ "@types/node": "^12.11.5",
24
27
  "typescript": "^4.0"
25
28
  }
26
29
  }