@emilgroup/partner-sdk 1.0.0 → 1.0.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.
@@ -25,6 +25,7 @@ models/list-partner-types-response-class.ts
25
25
  models/list-partners-response-class.ts
26
26
  models/partner-class.ts
27
27
  models/partner-type-class.ts
28
+ models/partner-type-custom-schema-dto.ts
28
29
  models/update-partner-request-dto.ts
29
30
  models/update-partner-response-class.ts
30
31
  models/update-partner-type-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/partner-sdk@1.0.0 --save
20
+ npm install @emilgroup/partner-sdk@1.0.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/partner-sdk@1.0.0
24
+ yarn add @emilgroup/partner-sdk@1.0.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `PartnersApi`.
package/base.ts CHANGED
@@ -87,6 +87,7 @@ export class BaseAPI {
87
87
  if (configuration) {
88
88
  this.configuration = configuration;
89
89
  this.basePath = configuration.basePath || this.basePath;
90
+ this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
90
91
  } else {
91
92
  const { accessToken, username } = this.tokenData;
92
93
 
package/dist/base.js CHANGED
@@ -125,6 +125,7 @@ var BaseAPI = /** @class */ (function () {
125
125
  if (configuration) {
126
126
  this.configuration = configuration;
127
127
  this.basePath = configuration.basePath || this.basePath;
128
+ this.configuration.accessToken = this.tokenData.accessToken ? "Bearer ".concat(this.tokenData.accessToken) : '';
128
129
  }
129
130
  else {
130
131
  var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
@@ -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
@@ -22,9 +23,9 @@ export interface CreatePartnerTypeRequestDto {
22
23
  */
23
24
  'name': string;
24
25
  /**
25
- * The partner type schema object based on json schema.
26
- * @type {object}
26
+ * The partner type schema array of object based on json schema.
27
+ * @type {Array<PartnerTypeCustomSchemaDto>}
27
28
  * @memberof CreatePartnerTypeRequestDto
28
29
  */
29
- 'schema': object;
30
+ 'schemas': Array<PartnerTypeCustomSchemaDto>;
30
31
  }
@@ -11,6 +11,7 @@ export * from './list-partner-types-response-class';
11
11
  export * from './list-partners-response-class';
12
12
  export * from './partner-class';
13
13
  export * from './partner-type-class';
14
+ export * from './partner-type-custom-schema-dto';
14
15
  export * from './update-partner-request-dto';
15
16
  export * from './update-partner-response-class';
16
17
  export * from './update-partner-type-request-dto';
@@ -27,6 +27,7 @@ __exportStar(require("./list-partner-types-response-class"), exports);
27
27
  __exportStar(require("./list-partners-response-class"), exports);
28
28
  __exportStar(require("./partner-class"), exports);
29
29
  __exportStar(require("./partner-type-class"), exports);
30
+ __exportStar(require("./partner-type-custom-schema-dto"), exports);
30
31
  __exportStar(require("./update-partner-request-dto"), exports);
31
32
  __exportStar(require("./update-partner-response-class"), exports);
32
33
  __exportStar(require("./update-partner-type-request-dto"), exports);
@@ -39,6 +39,12 @@ export interface PartnerTypeClass {
39
39
  * @memberof PartnerTypeClass
40
40
  */
41
41
  'schema': object;
42
+ /**
43
+ * The partner type schema fields. This can be used to render UI.
44
+ * @type {object}
45
+ * @memberof PartnerTypeClass
46
+ */
47
+ 'fields': object;
42
48
  /**
43
49
  * Time at which the object was created.
44
50
  * @type {string}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * EMIL PartnerService
3
+ * The EMIL PartnerService 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 PartnerTypeCustomSchemaDto
16
+ */
17
+ export interface PartnerTypeCustomSchemaDto {
18
+ /**
19
+ * The name of the schema property - should be camelCase.
20
+ * @type {string}
21
+ * @memberof PartnerTypeCustomSchemaDto
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * The type of the schema property.
26
+ * @type {string}
27
+ * @memberof PartnerTypeCustomSchemaDto
28
+ */
29
+ 'type': string;
30
+ /**
31
+ * A boolean value to state if the property is required or not.
32
+ * @type {boolean}
33
+ * @memberof PartnerTypeCustomSchemaDto
34
+ */
35
+ 'isRequired': boolean;
36
+ /**
37
+ * 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.
38
+ * @type {string}
39
+ * @memberof PartnerTypeCustomSchemaDto
40
+ */
41
+ 'label'?: string;
42
+ /**
43
+ * Minimum value of the property value. Applicable only if the property is a number type.
44
+ * @type {number}
45
+ * @memberof PartnerTypeCustomSchemaDto
46
+ */
47
+ 'minimum'?: number;
48
+ /**
49
+ * Maxium value of the property value. Applicable only if the property is a number type.
50
+ * @type {number}
51
+ * @memberof PartnerTypeCustomSchemaDto
52
+ */
53
+ 'maximum'?: number;
54
+ /**
55
+ * Minimum character length of the property value. Applicable only if the property is a string type.
56
+ * @type {number}
57
+ * @memberof PartnerTypeCustomSchemaDto
58
+ */
59
+ 'minLength'?: number;
60
+ /**
61
+ * Maximum character length of the property value. Applicable only if the property is a string type.
62
+ * @type {number}
63
+ * @memberof PartnerTypeCustomSchemaDto
64
+ */
65
+ 'maxLength'?: number;
66
+ }
@@ -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 });
@@ -15,12 +15,6 @@
15
15
  * @interface UpdatePartnerRequestDto
16
16
  */
17
17
  export interface UpdatePartnerRequestDto {
18
- /**
19
- * The unique partner code.
20
- * @type {string}
21
- * @memberof UpdatePartnerRequestDto
22
- */
23
- 'code': string;
24
18
  /**
25
19
  * The partner object, based on partner schema.
26
20
  * @type {object}
@@ -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
@@ -16,15 +17,9 @@
16
17
  */
17
18
  export interface UpdatePartnerTypeRequestDto {
18
19
  /**
19
- * The unique partner type code.
20
- * @type {string}
20
+ * The partner type schema object.
21
+ * @type {Array<PartnerTypeCustomSchemaDto>}
21
22
  * @memberof UpdatePartnerTypeRequestDto
22
23
  */
23
- 'code': string;
24
- /**
25
- * The partner type object.
26
- * @type {object}
27
- * @memberof UpdatePartnerTypeRequestDto
28
- */
29
- 'partnerType': object;
24
+ 'schemas': Array<PartnerTypeCustomSchemaDto>;
30
25
  }
@@ -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
  *
@@ -27,10 +28,10 @@ export interface CreatePartnerTypeRequestDto {
27
28
  */
28
29
  'name': string;
29
30
  /**
30
- * The partner type schema object based on json schema.
31
- * @type {object}
31
+ * The partner type schema array of object based on json schema.
32
+ * @type {Array<PartnerTypeCustomSchemaDto>}
32
33
  * @memberof CreatePartnerTypeRequestDto
33
34
  */
34
- 'schema': object;
35
+ 'schemas': Array<PartnerTypeCustomSchemaDto>;
35
36
  }
36
37
 
package/models/index.ts CHANGED
@@ -11,6 +11,7 @@ export * from './list-partner-types-response-class';
11
11
  export * from './list-partners-response-class';
12
12
  export * from './partner-class';
13
13
  export * from './partner-type-class';
14
+ export * from './partner-type-custom-schema-dto';
14
15
  export * from './update-partner-request-dto';
15
16
  export * from './update-partner-response-class';
16
17
  export * from './update-partner-type-request-dto';
@@ -44,6 +44,12 @@ export interface PartnerTypeClass {
44
44
  * @memberof PartnerTypeClass
45
45
  */
46
46
  'schema': object;
47
+ /**
48
+ * The partner type schema fields. This can be used to render UI.
49
+ * @type {object}
50
+ * @memberof PartnerTypeClass
51
+ */
52
+ 'fields': object;
47
53
  /**
48
54
  * Time at which the object was created.
49
55
  * @type {string}
@@ -0,0 +1,72 @@
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
+
@@ -20,12 +20,6 @@
20
20
  * @interface UpdatePartnerRequestDto
21
21
  */
22
22
  export interface UpdatePartnerRequestDto {
23
- /**
24
- * The unique partner code.
25
- * @type {string}
26
- * @memberof UpdatePartnerRequestDto
27
- */
28
- 'code': string;
29
23
  /**
30
24
  * The partner object, based on partner schema.
31
25
  * @type {object}
@@ -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
  *
@@ -21,16 +22,10 @@
21
22
  */
22
23
  export interface UpdatePartnerTypeRequestDto {
23
24
  /**
24
- * The unique partner type code.
25
- * @type {string}
25
+ * The partner type schema object.
26
+ * @type {Array<PartnerTypeCustomSchemaDto>}
26
27
  * @memberof UpdatePartnerTypeRequestDto
27
28
  */
28
- 'code': string;
29
- /**
30
- * The partner type object.
31
- * @type {object}
32
- * @memberof UpdatePartnerTypeRequestDto
33
- */
34
- 'partnerType': object;
29
+ 'schemas': Array<PartnerTypeCustomSchemaDto>;
35
30
  }
36
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [