@emilgroup/tenant-sdk 1.19.0 → 1.21.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.
- package/.openapi-generator/FILES +6 -1
- package/README.md +2 -2
- package/api/dashboard-api.ts +99 -0
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/users-api.ts +116 -0
- package/api.ts +2 -2
- package/base.ts +20 -7
- package/dist/api/dashboard-api.d.ts +52 -0
- package/dist/api/dashboard-api.js +88 -0
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +30 -26
- package/dist/api/users-api.d.ts +62 -0
- package/dist/api/users-api.js +95 -0
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +0 -1
- package/dist/base.js +18 -6
- package/dist/models/create-tenant-db-config-request-dto.d.ts +30 -0
- package/dist/models/create-tenant-db-config-request-dto.js +15 -0
- package/dist/models/custom-schema-class.d.ts +12 -0
- package/dist/models/data-report-class.d.ts +12 -0
- package/dist/models/data-report-filter-class.d.ts +12 -0
- package/dist/models/get-embedded-url-response-class.d.ts +24 -0
- package/dist/models/get-embedded-url-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/invite-class.d.ts +31 -1
- package/dist/models/invite-user-request-dto.d.ts +7 -0
- package/dist/models/link-user-with-partner-request-dto-rest.d.ts +30 -0
- package/dist/models/link-user-with-partner-request-dto-rest.js +15 -0
- package/dist/models/link-user-with-partner-response-class.d.ts +25 -0
- package/dist/models/link-user-with-partner-response-class.js +15 -0
- package/dist/models/org-invitation-class.d.ts +12 -0
- package/dist/models/organization-class.d.ts +12 -0
- package/dist/models/partner-invitation-data-dto.d.ts +36 -0
- package/dist/models/partner-invitation-data-dto.js +15 -0
- package/dist/models/permission-class.d.ts +12 -0
- package/dist/models/role-class.d.ts +12 -0
- package/dist/models/subscription-class.d.ts +12 -0
- package/dist/models/user-class.d.ts +19 -1
- package/models/create-tenant-db-config-request-dto.ts +36 -0
- package/models/custom-schema-class.ts +12 -0
- package/models/data-report-class.ts +12 -0
- package/models/data-report-filter-class.ts +12 -0
- package/models/get-embedded-url-response-class.ts +30 -0
- package/models/index.ts +5 -0
- package/models/invite-class.ts +31 -1
- package/models/invite-user-request-dto.ts +7 -0
- package/models/link-user-with-partner-request-dto-rest.ts +36 -0
- package/models/link-user-with-partner-response-class.ts +31 -0
- package/models/org-invitation-class.ts +12 -0
- package/models/organization-class.ts +12 -0
- package/models/partner-invitation-data-dto.ts +42 -0
- package/models/permission-class.ts +12 -0
- package/models/role-class.ts +12 -0
- package/models/subscription-class.ts +12 -0
- package/models/user-class.ts +19 -1
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
package/models/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './create-data-report-request-dto';
|
|
|
12
12
|
export * from './create-data-report-response-class';
|
|
13
13
|
export * from './create-permission-request-dto';
|
|
14
14
|
export * from './create-role-request-dto';
|
|
15
|
+
export * from './create-tenant-db-config-request-dto';
|
|
15
16
|
export * from './create-tenant-request-dto';
|
|
16
17
|
export * from './custom-field-dto';
|
|
17
18
|
export * from './custom-schema-class';
|
|
@@ -35,6 +36,7 @@ export * from './get-custom-schema-response-class';
|
|
|
35
36
|
export * from './get-dashboard-group-response-class';
|
|
36
37
|
export * from './get-dashboard-response-class';
|
|
37
38
|
export * from './get-data-report-response-class';
|
|
39
|
+
export * from './get-embedded-url-response-class';
|
|
38
40
|
export * from './get-organization-response-class';
|
|
39
41
|
export * from './get-settings-response-class';
|
|
40
42
|
export * from './get-user-response-class';
|
|
@@ -47,6 +49,8 @@ export * from './invite-user-request-dto';
|
|
|
47
49
|
export * from './invite-user-response-class';
|
|
48
50
|
export * from './invite-users-request-dto';
|
|
49
51
|
export * from './invite-users-response-class';
|
|
52
|
+
export * from './link-user-with-partner-request-dto-rest';
|
|
53
|
+
export * from './link-user-with-partner-response-class';
|
|
50
54
|
export * from './list-custom-schemas-response-class';
|
|
51
55
|
export * from './list-dashboard-groups-response-class';
|
|
52
56
|
export * from './list-dashboards-response-class';
|
|
@@ -59,6 +63,7 @@ export * from './list-users-response-class';
|
|
|
59
63
|
export * from './org-invitation-class';
|
|
60
64
|
export * from './org-invitation-response-class';
|
|
61
65
|
export * from './organization-class';
|
|
66
|
+
export * from './partner-invitation-data-dto';
|
|
62
67
|
export * from './permission-class';
|
|
63
68
|
export * from './re-invite-org-request-dto';
|
|
64
69
|
export * from './role-class';
|
package/models/invite-class.ts
CHANGED
|
@@ -58,17 +58,47 @@ export interface InviteClass {
|
|
|
58
58
|
* @memberof InviteClass
|
|
59
59
|
*/
|
|
60
60
|
'updatedAt': string;
|
|
61
|
+
/**
|
|
62
|
+
* Identifier of the user who created the record.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof InviteClass
|
|
65
|
+
*/
|
|
66
|
+
'createdBy': string;
|
|
67
|
+
/**
|
|
68
|
+
* Identifier of the user who last updated the record.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof InviteClass
|
|
71
|
+
*/
|
|
72
|
+
'updatedBy': string;
|
|
61
73
|
/**
|
|
62
74
|
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
63
75
|
* @type {string}
|
|
64
76
|
* @memberof InviteClass
|
|
65
77
|
*/
|
|
66
78
|
'ern': string;
|
|
79
|
+
/**
|
|
80
|
+
* Indicates if a new partner will be created as part of the invitation flow.
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof InviteClass
|
|
83
|
+
*/
|
|
84
|
+
'shouldCreateNewPartner': boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Optional metadata associated with the invite - useful for passing data to the front end for custom logic.
|
|
87
|
+
* @type {object}
|
|
88
|
+
* @memberof InviteClass
|
|
89
|
+
*/
|
|
90
|
+
'metadata'?: object;
|
|
91
|
+
/**
|
|
92
|
+
* Organization ID associated with the invite.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof InviteClass
|
|
95
|
+
*/
|
|
96
|
+
'organizationId'?: number;
|
|
67
97
|
/**
|
|
68
98
|
* Organization associated with the user
|
|
69
99
|
* @type {OrganizationClass}
|
|
70
100
|
* @memberof InviteClass
|
|
71
101
|
*/
|
|
72
|
-
'organization'
|
|
102
|
+
'organization'?: OrganizationClass;
|
|
73
103
|
}
|
|
74
104
|
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { PartnerInvitationDataDto } from './partner-invitation-data-dto';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -38,5 +39,11 @@ export interface InviteUserRequestDto {
|
|
|
38
39
|
* @memberof InviteUserRequestDto
|
|
39
40
|
*/
|
|
40
41
|
'roleIds': Array<number>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {PartnerInvitationDataDto}
|
|
45
|
+
* @memberof InviteUserRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'partnerInvitationData'?: PartnerInvitationDataDto;
|
|
41
48
|
}
|
|
42
49
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService 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 LinkUserWithPartnerRequestDtoRest
|
|
21
|
+
*/
|
|
22
|
+
export interface LinkUserWithPartnerRequestDtoRest {
|
|
23
|
+
/**
|
|
24
|
+
* Indicates whether a new partner entity should be created or an existing one should be used
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof LinkUserWithPartnerRequestDtoRest
|
|
27
|
+
*/
|
|
28
|
+
'shouldCreateNewPartner': boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The code of the partner that will be linked with the user - only if shouldCreateNewPartner is false
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof LinkUserWithPartnerRequestDtoRest
|
|
33
|
+
*/
|
|
34
|
+
'partnerCode'?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService 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 { UserClass } from './user-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface LinkUserWithPartnerResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface LinkUserWithPartnerResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* user
|
|
26
|
+
* @type {UserClass}
|
|
27
|
+
* @memberof LinkUserWithPartnerResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'user': UserClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -111,5 +111,17 @@ export interface OrgInvitationClass {
|
|
|
111
111
|
* @memberof OrgInvitationClass
|
|
112
112
|
*/
|
|
113
113
|
'updatedAt': string;
|
|
114
|
+
/**
|
|
115
|
+
* Identifier of the user who created the record.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof OrgInvitationClass
|
|
118
|
+
*/
|
|
119
|
+
'createdBy': string;
|
|
120
|
+
/**
|
|
121
|
+
* Identifier of the user who last updated the record.
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof OrgInvitationClass
|
|
124
|
+
*/
|
|
125
|
+
'updatedBy': string;
|
|
114
126
|
}
|
|
115
127
|
|
|
@@ -110,5 +110,17 @@ export interface OrganizationClass {
|
|
|
110
110
|
* @memberof OrganizationClass
|
|
111
111
|
*/
|
|
112
112
|
'updatedAt': string;
|
|
113
|
+
/**
|
|
114
|
+
* Identifier of the user who created the record.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof OrganizationClass
|
|
117
|
+
*/
|
|
118
|
+
'createdBy': string;
|
|
119
|
+
/**
|
|
120
|
+
* Identifier of the user who last updated the record.
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof OrganizationClass
|
|
123
|
+
*/
|
|
124
|
+
'updatedBy': string;
|
|
113
125
|
}
|
|
114
126
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService 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 PartnerInvitationDataDto
|
|
21
|
+
*/
|
|
22
|
+
export interface PartnerInvitationDataDto {
|
|
23
|
+
/**
|
|
24
|
+
* Indicates if a new partner should be created if the partner code does not exist
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof PartnerInvitationDataDto
|
|
27
|
+
*/
|
|
28
|
+
'shouldCreateNewPartner': boolean;
|
|
29
|
+
/**
|
|
30
|
+
* In case we do not want to create a new partner, we can provide the code of an existing partner
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PartnerInvitationDataDto
|
|
33
|
+
*/
|
|
34
|
+
'partnerCode'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Optional metadata to be stored with the invitation
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof PartnerInvitationDataDto
|
|
39
|
+
*/
|
|
40
|
+
'metadata'?: object;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -62,5 +62,17 @@ export interface PermissionClass {
|
|
|
62
62
|
* @memberof PermissionClass
|
|
63
63
|
*/
|
|
64
64
|
'updatedAt': string;
|
|
65
|
+
/**
|
|
66
|
+
* Identifier of the user who created the record.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PermissionClass
|
|
69
|
+
*/
|
|
70
|
+
'createdBy': string;
|
|
71
|
+
/**
|
|
72
|
+
* Identifier of the user who last updated the record.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof PermissionClass
|
|
75
|
+
*/
|
|
76
|
+
'updatedBy': string;
|
|
65
77
|
}
|
|
66
78
|
|
package/models/role-class.ts
CHANGED
|
@@ -63,5 +63,17 @@ export interface RoleClass {
|
|
|
63
63
|
* @memberof RoleClass
|
|
64
64
|
*/
|
|
65
65
|
'updatedAt': string;
|
|
66
|
+
/**
|
|
67
|
+
* Identifier of the user who created the record.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof RoleClass
|
|
70
|
+
*/
|
|
71
|
+
'createdBy': string;
|
|
72
|
+
/**
|
|
73
|
+
* Identifier of the user who last updated the record.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof RoleClass
|
|
76
|
+
*/
|
|
77
|
+
'updatedBy': string;
|
|
66
78
|
}
|
|
67
79
|
|
|
@@ -63,6 +63,18 @@ export interface SubscriptionClass {
|
|
|
63
63
|
* @memberof SubscriptionClass
|
|
64
64
|
*/
|
|
65
65
|
'updatedAt'?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Identifier of the user who created the record.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SubscriptionClass
|
|
70
|
+
*/
|
|
71
|
+
'createdBy': string;
|
|
72
|
+
/**
|
|
73
|
+
* Identifier of the user who last updated the record.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof SubscriptionClass
|
|
76
|
+
*/
|
|
77
|
+
'updatedBy': string;
|
|
66
78
|
/**
|
|
67
79
|
* user
|
|
68
80
|
* @type {UserClass}
|
package/models/user-class.ts
CHANGED
|
@@ -95,17 +95,35 @@ export interface UserClass {
|
|
|
95
95
|
* @memberof UserClass
|
|
96
96
|
*/
|
|
97
97
|
'updatedAt': string;
|
|
98
|
+
/**
|
|
99
|
+
* Identifier of the user who created the record.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof UserClass
|
|
102
|
+
*/
|
|
103
|
+
'createdBy': string;
|
|
104
|
+
/**
|
|
105
|
+
* Identifier of the user who last updated the record.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof UserClass
|
|
108
|
+
*/
|
|
109
|
+
'updatedBy': string;
|
|
98
110
|
/**
|
|
99
111
|
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
100
112
|
* @type {string}
|
|
101
113
|
* @memberof UserClass
|
|
102
114
|
*/
|
|
103
115
|
'ern': string;
|
|
116
|
+
/**
|
|
117
|
+
* Associated partner code - only available if the partner has been invited and registered in EIS platform
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof UserClass
|
|
120
|
+
*/
|
|
121
|
+
'partnerCode'?: string;
|
|
104
122
|
/**
|
|
105
123
|
* Organization associated with the user
|
|
106
124
|
* @type {OrganizationClass}
|
|
107
125
|
* @memberof UserClass
|
|
108
126
|
*/
|
|
109
|
-
'organization'
|
|
127
|
+
'organization'?: OrganizationClass;
|
|
110
128
|
}
|
|
111
129
|
|
package/package.json
CHANGED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL Tenant Service
|
|
3
|
-
* The EMIL TenantService 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
|
-
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { InlineResponse200 } from '../models';
|
|
16
|
-
/**
|
|
17
|
-
* DefaultApi - axios parameter creator
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param {*} [options] Override http request option.
|
|
24
|
-
* @throws {RequiredError}
|
|
25
|
-
*/
|
|
26
|
-
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* DefaultApi - functional programming interface
|
|
30
|
-
* @export
|
|
31
|
-
*/
|
|
32
|
-
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @param {*} [options] Override http request option.
|
|
36
|
-
* @throws {RequiredError}
|
|
37
|
-
*/
|
|
38
|
-
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* DefaultApi - factory interface
|
|
42
|
-
* @export
|
|
43
|
-
*/
|
|
44
|
-
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @param {*} [options] Override http request option.
|
|
48
|
-
* @throws {RequiredError}
|
|
49
|
-
*/
|
|
50
|
-
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* DefaultApi - object-oriented interface
|
|
54
|
-
* @export
|
|
55
|
-
* @class DefaultApi
|
|
56
|
-
* @extends {BaseAPI}
|
|
57
|
-
*/
|
|
58
|
-
export declare class DefaultApi extends BaseAPI {
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @param {*} [options] Override http request option.
|
|
62
|
-
* @throws {RequiredError}
|
|
63
|
-
* @memberof DefaultApi
|
|
64
|
-
*/
|
|
65
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
66
|
-
}
|