@emilgroup/tenant-sdk 1.21.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 +3 -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.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.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 +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/invite-class.d.ts +12 -0
- package/dist/models/org-invitation-class.d.ts +12 -0
- package/dist/models/organization-class.d.ts +12 -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 +12 -0
- 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 +2 -0
- package/models/invite-class.ts +12 -0
- package/models/org-invitation-class.ts +12 -0
- package/models/organization-class.ts +12 -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 +12 -0
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -8,8 +8,8 @@ api/dashboard-api.ts
|
|
|
8
8
|
api/dashboard-group-api.ts
|
|
9
9
|
api/data-report-api.ts
|
|
10
10
|
api/data-report-executor-api.ts
|
|
11
|
-
api/default-api.ts
|
|
12
11
|
api/delete-organization-invitations-api.ts
|
|
12
|
+
api/health-check-api.ts
|
|
13
13
|
api/invite-organizations-api.ts
|
|
14
14
|
api/invite-users-api.ts
|
|
15
15
|
api/list-organization-invitations-api.ts
|
|
@@ -37,6 +37,7 @@ models/create-data-report-request-dto.ts
|
|
|
37
37
|
models/create-data-report-response-class.ts
|
|
38
38
|
models/create-permission-request-dto.ts
|
|
39
39
|
models/create-role-request-dto.ts
|
|
40
|
+
models/create-tenant-db-config-request-dto.ts
|
|
40
41
|
models/create-tenant-request-dto.ts
|
|
41
42
|
models/custom-field-dto.ts
|
|
42
43
|
models/custom-schema-class.ts
|
|
@@ -60,6 +61,7 @@ models/get-custom-schema-response-class.ts
|
|
|
60
61
|
models/get-dashboard-group-response-class.ts
|
|
61
62
|
models/get-dashboard-response-class.ts
|
|
62
63
|
models/get-data-report-response-class.ts
|
|
64
|
+
models/get-embedded-url-response-class.ts
|
|
63
65
|
models/get-organization-response-class.ts
|
|
64
66
|
models/get-settings-response-class.ts
|
|
65
67
|
models/get-user-response-class.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/tenant-sdk@1.21.0 --save
|
|
20
|
+
npm install @emilgroup/tenant-sdk@1.21.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.21.0
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.21.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
package/api/dashboard-api.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { DeleteResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetDashboardResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { GetEmbeddedUrlResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
32
34
|
import { ListDashboardsResponseClass } from '../models';
|
|
33
35
|
// @ts-ignore
|
|
34
36
|
import { UpdateDashboardRequestDto } from '../models';
|
|
@@ -165,6 +167,50 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
165
167
|
|
|
166
168
|
|
|
167
169
|
|
|
170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
173
|
+
|
|
174
|
+
return {
|
|
175
|
+
url: toPathString(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @param {string} providerDashboardId
|
|
182
|
+
* @param {string} [authorization] Bearer Token
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
getEmbeddedUrl: async (providerDashboardId: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
187
|
+
// verify required parameter 'providerDashboardId' is not null or undefined
|
|
188
|
+
assertParamExists('getEmbeddedUrl', 'providerDashboardId', providerDashboardId)
|
|
189
|
+
const localVarPath = `/tenantservice/v1/dashboards/{provider_dashboard_id}/embedded-url`
|
|
190
|
+
.replace(`{${"provider_dashboard_id"}}`, encodeURIComponent(String(providerDashboardId)));
|
|
191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
193
|
+
let baseOptions;
|
|
194
|
+
let baseAccessToken;
|
|
195
|
+
if (configuration) {
|
|
196
|
+
baseOptions = configuration.baseOptions;
|
|
197
|
+
baseAccessToken = configuration.accessToken;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
201
|
+
const localVarHeaderParameter = {} as any;
|
|
202
|
+
const localVarQueryParameter = {} as any;
|
|
203
|
+
|
|
204
|
+
// authentication bearer required
|
|
205
|
+
// http bearer authentication required
|
|
206
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
207
|
+
|
|
208
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
209
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
168
214
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
169
215
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
216
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -342,6 +388,17 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
342
388
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboard(code, authorization, options);
|
|
343
389
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
344
390
|
},
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @param {string} providerDashboardId
|
|
394
|
+
* @param {string} [authorization] Bearer Token
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
async getEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmbeddedUrlResponseClass>> {
|
|
399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedUrl(providerDashboardId, authorization, options);
|
|
400
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
401
|
+
},
|
|
345
402
|
/**
|
|
346
403
|
*
|
|
347
404
|
* @param {string} [authorization] Bearer Token
|
|
@@ -411,6 +468,16 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
411
468
|
getDashboard(code: string, authorization?: string, options?: any): AxiosPromise<GetDashboardResponseClass> {
|
|
412
469
|
return localVarFp.getDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
413
470
|
},
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* @param {string} providerDashboardId
|
|
474
|
+
* @param {string} [authorization] Bearer Token
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
getEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: any): AxiosPromise<GetEmbeddedUrlResponseClass> {
|
|
479
|
+
return localVarFp.getEmbeddedUrl(providerDashboardId, authorization, options).then((request) => request(axios, basePath));
|
|
480
|
+
},
|
|
414
481
|
/**
|
|
415
482
|
*
|
|
416
483
|
* @param {string} [authorization] Bearer Token
|
|
@@ -504,6 +571,27 @@ export interface DashboardApiGetDashboardRequest {
|
|
|
504
571
|
readonly authorization?: string
|
|
505
572
|
}
|
|
506
573
|
|
|
574
|
+
/**
|
|
575
|
+
* Request parameters for getEmbeddedUrl operation in DashboardApi.
|
|
576
|
+
* @export
|
|
577
|
+
* @interface DashboardApiGetEmbeddedUrlRequest
|
|
578
|
+
*/
|
|
579
|
+
export interface DashboardApiGetEmbeddedUrlRequest {
|
|
580
|
+
/**
|
|
581
|
+
*
|
|
582
|
+
* @type {string}
|
|
583
|
+
* @memberof DashboardApiGetEmbeddedUrl
|
|
584
|
+
*/
|
|
585
|
+
readonly providerDashboardId: string
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Bearer Token
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof DashboardApiGetEmbeddedUrl
|
|
591
|
+
*/
|
|
592
|
+
readonly authorization?: string
|
|
593
|
+
}
|
|
594
|
+
|
|
507
595
|
/**
|
|
508
596
|
* Request parameters for listDashboards operation in DashboardApi.
|
|
509
597
|
* @export
|
|
@@ -635,6 +723,17 @@ export class DashboardApi extends BaseAPI {
|
|
|
635
723
|
return DashboardApiFp(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
636
724
|
}
|
|
637
725
|
|
|
726
|
+
/**
|
|
727
|
+
*
|
|
728
|
+
* @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
|
|
729
|
+
* @param {*} [options] Override http request option.
|
|
730
|
+
* @throws {RequiredError}
|
|
731
|
+
* @memberof DashboardApi
|
|
732
|
+
*/
|
|
733
|
+
public getEmbeddedUrl(requestParameters: DashboardApiGetEmbeddedUrlRequest, options?: AxiosRequestConfig) {
|
|
734
|
+
return DashboardApiFp(this.configuration).getEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
735
|
+
}
|
|
736
|
+
|
|
638
737
|
/**
|
|
639
738
|
*
|
|
640
739
|
* @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
|
|
@@ -25,13 +25,14 @@ import { InlineResponse200 } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { InlineResponse503 } from '../models';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* HealthCheckApi - axios parameter creator
|
|
29
29
|
* @export
|
|
30
30
|
*/
|
|
31
|
-
export const
|
|
31
|
+
export const HealthCheckApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Returns the health status of the tenant service. This endpoint is used to monitor the operational status of the tenant service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
35
|
+
* @summary Health Check
|
|
35
36
|
* @param {*} [options] Override http request option.
|
|
36
37
|
* @throws {RequiredError}
|
|
37
38
|
*/
|
|
@@ -65,14 +66,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
|
-
*
|
|
69
|
+
* HealthCheckApi - functional programming interface
|
|
69
70
|
* @export
|
|
70
71
|
*/
|
|
71
|
-
export const
|
|
72
|
-
const localVarAxiosParamCreator =
|
|
72
|
+
export const HealthCheckApiFp = function(configuration?: Configuration) {
|
|
73
|
+
const localVarAxiosParamCreator = HealthCheckApiAxiosParamCreator(configuration)
|
|
73
74
|
return {
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* Returns the health status of the tenant service. This endpoint is used to monitor the operational status of the tenant service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
77
|
+
* @summary Health Check
|
|
76
78
|
* @param {*} [options] Override http request option.
|
|
77
79
|
* @throws {RequiredError}
|
|
78
80
|
*/
|
|
@@ -84,14 +86,15 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
84
86
|
};
|
|
85
87
|
|
|
86
88
|
/**
|
|
87
|
-
*
|
|
89
|
+
* HealthCheckApi - factory interface
|
|
88
90
|
* @export
|
|
89
91
|
*/
|
|
90
|
-
export const
|
|
91
|
-
const localVarFp =
|
|
92
|
+
export const HealthCheckApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
93
|
+
const localVarFp = HealthCheckApiFp(configuration)
|
|
92
94
|
return {
|
|
93
95
|
/**
|
|
94
|
-
*
|
|
96
|
+
* Returns the health status of the tenant service. This endpoint is used to monitor the operational status of the tenant service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
97
|
+
* @summary Health Check
|
|
95
98
|
* @param {*} [options] Override http request option.
|
|
96
99
|
* @throws {RequiredError}
|
|
97
100
|
*/
|
|
@@ -102,19 +105,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
102
105
|
};
|
|
103
106
|
|
|
104
107
|
/**
|
|
105
|
-
*
|
|
108
|
+
* HealthCheckApi - object-oriented interface
|
|
106
109
|
* @export
|
|
107
|
-
* @class
|
|
110
|
+
* @class HealthCheckApi
|
|
108
111
|
* @extends {BaseAPI}
|
|
109
112
|
*/
|
|
110
|
-
export class
|
|
113
|
+
export class HealthCheckApi extends BaseAPI {
|
|
111
114
|
/**
|
|
112
|
-
*
|
|
115
|
+
* Returns the health status of the tenant service. This endpoint is used to monitor the operational status of the tenant service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
116
|
+
* @summary Health Check
|
|
113
117
|
* @param {*} [options] Override http request option.
|
|
114
118
|
* @throws {RequiredError}
|
|
115
|
-
* @memberof
|
|
119
|
+
* @memberof HealthCheckApi
|
|
116
120
|
*/
|
|
117
121
|
public check(options?: AxiosRequestConfig) {
|
|
118
|
-
return
|
|
122
|
+
return HealthCheckApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
119
123
|
}
|
|
120
124
|
}
|
package/api.ts
CHANGED
|
@@ -25,8 +25,8 @@ import { DashboardApi } from './api';
|
|
|
25
25
|
import { DashboardGroupApi } from './api';
|
|
26
26
|
import { DataReportApi } from './api';
|
|
27
27
|
import { DataReportExecutorApi } from './api';
|
|
28
|
-
import { DefaultApi } from './api';
|
|
29
28
|
import { DeleteOrganizationInvitationsApi } from './api';
|
|
29
|
+
import { HealthCheckApi } from './api';
|
|
30
30
|
import { InviteOrganizationsApi } from './api';
|
|
31
31
|
import { InviteUsersApi } from './api';
|
|
32
32
|
import { ListOrganizationInvitationsApi } from './api';
|
|
@@ -42,8 +42,8 @@ export * from './api/dashboard-api';
|
|
|
42
42
|
export * from './api/dashboard-group-api';
|
|
43
43
|
export * from './api/data-report-api';
|
|
44
44
|
export * from './api/data-report-executor-api';
|
|
45
|
-
export * from './api/default-api';
|
|
46
45
|
export * from './api/delete-organization-invitations-api';
|
|
46
|
+
export * from './api/health-check-api';
|
|
47
47
|
export * from './api/invite-organizations-api';
|
|
48
48
|
export * from './api/invite-users-api';
|
|
49
49
|
export * from './api/list-organization-invitations-api';
|
package/base.ts
CHANGED
|
@@ -64,6 +64,7 @@ export interface RequestArgs {
|
|
|
64
64
|
interface TokenData {
|
|
65
65
|
accessToken?: string;
|
|
66
66
|
username?: string;
|
|
67
|
+
permissions?: string;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
const NETWORK_ERROR_MESSAGE = "Network Error";
|
|
@@ -77,7 +78,6 @@ const TOKEN_DATA = 'APP_TOKEN';
|
|
|
77
78
|
export class BaseAPI {
|
|
78
79
|
protected configuration: Configuration | undefined;
|
|
79
80
|
private tokenData?: TokenData;
|
|
80
|
-
private permissions?: string;
|
|
81
81
|
|
|
82
82
|
constructor(configuration?: Configuration,
|
|
83
83
|
protected basePath: string = BASE_PATH,
|
|
@@ -111,7 +111,11 @@ export class BaseAPI {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
getPermissions(): Array<string> {
|
|
114
|
-
|
|
114
|
+
if (!this.tokenData?.permissions) {
|
|
115
|
+
return [];
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return this.tokenData.permissions.split(',');
|
|
115
119
|
}
|
|
116
120
|
|
|
117
121
|
async authorize(username: string, password: string): Promise<void> {
|
|
@@ -134,7 +138,7 @@ export class BaseAPI {
|
|
|
134
138
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
135
139
|
this.tokenData.username = username;
|
|
136
140
|
this.tokenData.accessToken = accessToken;
|
|
137
|
-
this.permissions = permissions;
|
|
141
|
+
this.tokenData.permissions = permissions;
|
|
138
142
|
|
|
139
143
|
this.storeTokenData({
|
|
140
144
|
...this.tokenData
|
|
@@ -148,6 +152,16 @@ export class BaseAPI {
|
|
|
148
152
|
throw new Error('Failed to refresh token.');
|
|
149
153
|
}
|
|
150
154
|
|
|
155
|
+
const refreshTokenAxios = globalAxios.create()
|
|
156
|
+
refreshTokenAxios.interceptors.response.use(response => {
|
|
157
|
+
const { permissions } = response.data;
|
|
158
|
+
|
|
159
|
+
this.tokenData.permissions = permissions;
|
|
160
|
+
this.storeTokenData(this.tokenData);
|
|
161
|
+
|
|
162
|
+
return response;
|
|
163
|
+
})
|
|
164
|
+
|
|
151
165
|
const options: AxiosRequestConfig = {
|
|
152
166
|
method: 'POST',
|
|
153
167
|
url: `${this.configuration.basePath}/authservice/v1/refresh-token`,
|
|
@@ -158,8 +172,7 @@ export class BaseAPI {
|
|
|
158
172
|
withCredentials: true,
|
|
159
173
|
};
|
|
160
174
|
|
|
161
|
-
const response = await
|
|
162
|
-
|
|
175
|
+
const response = await refreshTokenAxios.request<LoginClass>(options);
|
|
163
176
|
return response.data;
|
|
164
177
|
}
|
|
165
178
|
|
|
@@ -196,7 +209,7 @@ export class BaseAPI {
|
|
|
196
209
|
try {
|
|
197
210
|
const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
|
|
198
211
|
const accessToken = `Bearer ${tokenString}`;
|
|
199
|
-
this.permissions = permissions;
|
|
212
|
+
this.tokenData.permissions = permissions;
|
|
200
213
|
|
|
201
214
|
delete originalConfig.headers['Authorization']
|
|
202
215
|
|
|
@@ -223,7 +236,7 @@ export class BaseAPI {
|
|
|
223
236
|
try {
|
|
224
237
|
const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
|
|
225
238
|
const accessToken = `Bearer ${tokenString}`;
|
|
226
|
-
this.permissions = permissions;
|
|
239
|
+
this.tokenData.permissions = permissions;
|
|
227
240
|
|
|
228
241
|
_retry = true;
|
|
229
242
|
originalConfig.headers['Authorization'] = accessToken;
|
|
@@ -16,6 +16,7 @@ import { CreateDashboardRequestDto } from '../models';
|
|
|
16
16
|
import { CreateDashboardResponseClass } from '../models';
|
|
17
17
|
import { DeleteResponseClass } from '../models';
|
|
18
18
|
import { GetDashboardResponseClass } from '../models';
|
|
19
|
+
import { GetEmbeddedUrlResponseClass } from '../models';
|
|
19
20
|
import { ListDashboardsResponseClass } from '../models';
|
|
20
21
|
import { UpdateDashboardRequestDto } from '../models';
|
|
21
22
|
import { UpdateDashboardResponseClass } from '../models';
|
|
@@ -48,6 +49,14 @@ export declare const DashboardApiAxiosParamCreator: (configuration?: Configurati
|
|
|
48
49
|
* @throws {RequiredError}
|
|
49
50
|
*/
|
|
50
51
|
getDashboard: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @param {string} providerDashboardId
|
|
55
|
+
* @param {string} [authorization] Bearer Token
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
getEmbeddedUrl: (providerDashboardId: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
60
|
/**
|
|
52
61
|
*
|
|
53
62
|
* @param {string} [authorization] Bearer Token
|
|
@@ -101,6 +110,14 @@ export declare const DashboardApiFp: (configuration?: Configuration) => {
|
|
|
101
110
|
* @throws {RequiredError}
|
|
102
111
|
*/
|
|
103
112
|
getDashboard(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDashboardResponseClass>>;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @param {string} providerDashboardId
|
|
116
|
+
* @param {string} [authorization] Bearer Token
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
getEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmbeddedUrlResponseClass>>;
|
|
104
121
|
/**
|
|
105
122
|
*
|
|
106
123
|
* @param {string} [authorization] Bearer Token
|
|
@@ -154,6 +171,14 @@ export declare const DashboardApiFactory: (configuration?: Configuration, basePa
|
|
|
154
171
|
* @throws {RequiredError}
|
|
155
172
|
*/
|
|
156
173
|
getDashboard(code: string, authorization?: string, options?: any): AxiosPromise<GetDashboardResponseClass>;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @param {string} providerDashboardId
|
|
177
|
+
* @param {string} [authorization] Bearer Token
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
getEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: any): AxiosPromise<GetEmbeddedUrlResponseClass>;
|
|
157
182
|
/**
|
|
158
183
|
*
|
|
159
184
|
* @param {string} [authorization] Bearer Token
|
|
@@ -235,6 +260,25 @@ export interface DashboardApiGetDashboardRequest {
|
|
|
235
260
|
*/
|
|
236
261
|
readonly authorization?: string;
|
|
237
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* Request parameters for getEmbeddedUrl operation in DashboardApi.
|
|
265
|
+
* @export
|
|
266
|
+
* @interface DashboardApiGetEmbeddedUrlRequest
|
|
267
|
+
*/
|
|
268
|
+
export interface DashboardApiGetEmbeddedUrlRequest {
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @type {string}
|
|
272
|
+
* @memberof DashboardApiGetEmbeddedUrl
|
|
273
|
+
*/
|
|
274
|
+
readonly providerDashboardId: string;
|
|
275
|
+
/**
|
|
276
|
+
* Bearer Token
|
|
277
|
+
* @type {string}
|
|
278
|
+
* @memberof DashboardApiGetEmbeddedUrl
|
|
279
|
+
*/
|
|
280
|
+
readonly authorization?: string;
|
|
281
|
+
}
|
|
238
282
|
/**
|
|
239
283
|
* Request parameters for listDashboards operation in DashboardApi.
|
|
240
284
|
* @export
|
|
@@ -346,6 +390,14 @@ export declare class DashboardApi extends BaseAPI {
|
|
|
346
390
|
* @memberof DashboardApi
|
|
347
391
|
*/
|
|
348
392
|
getDashboard(requestParameters: DashboardApiGetDashboardRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDashboardResponseClass, any>>;
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
|
|
396
|
+
* @param {*} [options] Override http request option.
|
|
397
|
+
* @throws {RequiredError}
|
|
398
|
+
* @memberof DashboardApi
|
|
399
|
+
*/
|
|
400
|
+
getEmbeddedUrl(requestParameters: DashboardApiGetEmbeddedUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmbeddedUrlResponseClass, any>>;
|
|
349
401
|
/**
|
|
350
402
|
*
|
|
351
403
|
* @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
|
|
@@ -234,6 +234,53 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
234
234
|
});
|
|
235
235
|
});
|
|
236
236
|
},
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @param {string} providerDashboardId
|
|
240
|
+
* @param {string} [authorization] Bearer Token
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
getEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
245
|
+
if (options === void 0) { options = {}; }
|
|
246
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
247
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0:
|
|
251
|
+
// verify required parameter 'providerDashboardId' is not null or undefined
|
|
252
|
+
(0, common_1.assertParamExists)('getEmbeddedUrl', 'providerDashboardId', providerDashboardId);
|
|
253
|
+
localVarPath = "/tenantservice/v1/dashboards/{provider_dashboard_id}/embedded-url"
|
|
254
|
+
.replace("{".concat("provider_dashboard_id", "}"), encodeURIComponent(String(providerDashboardId)));
|
|
255
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
256
|
+
if (configuration) {
|
|
257
|
+
baseOptions = configuration.baseOptions;
|
|
258
|
+
baseAccessToken = configuration.accessToken;
|
|
259
|
+
}
|
|
260
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
261
|
+
localVarHeaderParameter = {};
|
|
262
|
+
localVarQueryParameter = {};
|
|
263
|
+
// authentication bearer required
|
|
264
|
+
// http bearer authentication required
|
|
265
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
266
|
+
case 1:
|
|
267
|
+
// authentication bearer required
|
|
268
|
+
// http bearer authentication required
|
|
269
|
+
_a.sent();
|
|
270
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
271
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
272
|
+
}
|
|
273
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
274
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
275
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
276
|
+
return [2 /*return*/, {
|
|
277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
278
|
+
options: localVarRequestOptions,
|
|
279
|
+
}];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
},
|
|
237
284
|
/**
|
|
238
285
|
*
|
|
239
286
|
* @param {string} [authorization] Bearer Token
|
|
@@ -427,6 +474,26 @@ var DashboardApiFp = function (configuration) {
|
|
|
427
474
|
});
|
|
428
475
|
});
|
|
429
476
|
},
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @param {string} providerDashboardId
|
|
480
|
+
* @param {string} [authorization] Bearer Token
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
getEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
486
|
+
var localVarAxiosArgs;
|
|
487
|
+
return __generator(this, function (_a) {
|
|
488
|
+
switch (_a.label) {
|
|
489
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEmbeddedUrl(providerDashboardId, authorization, options)];
|
|
490
|
+
case 1:
|
|
491
|
+
localVarAxiosArgs = _a.sent();
|
|
492
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
},
|
|
430
497
|
/**
|
|
431
498
|
*
|
|
432
499
|
* @param {string} [authorization] Bearer Token
|
|
@@ -514,6 +581,16 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
514
581
|
getDashboard: function (code, authorization, options) {
|
|
515
582
|
return localVarFp.getDashboard(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
516
583
|
},
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @param {string} providerDashboardId
|
|
587
|
+
* @param {string} [authorization] Bearer Token
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
*/
|
|
591
|
+
getEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
592
|
+
return localVarFp.getEmbeddedUrl(providerDashboardId, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
593
|
+
},
|
|
517
594
|
/**
|
|
518
595
|
*
|
|
519
596
|
* @param {string} [authorization] Bearer Token
|
|
@@ -588,6 +665,17 @@ var DashboardApi = /** @class */ (function (_super) {
|
|
|
588
665
|
var _this = this;
|
|
589
666
|
return (0, exports.DashboardApiFp)(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
590
667
|
};
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
|
|
671
|
+
* @param {*} [options] Override http request option.
|
|
672
|
+
* @throws {RequiredError}
|
|
673
|
+
* @memberof DashboardApi
|
|
674
|
+
*/
|
|
675
|
+
DashboardApi.prototype.getEmbeddedUrl = function (requestParameters, options) {
|
|
676
|
+
var _this = this;
|
|
677
|
+
return (0, exports.DashboardApiFp)(this.configuration).getEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
678
|
+
};
|
|
591
679
|
/**
|
|
592
680
|
*
|
|
593
681
|
* @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
* HealthCheckApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const HealthCheckApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Returns the health status of the tenant service. This endpoint is used to monitor the operational status of the tenant service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
23
|
+
* @summary Health Check
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* HealthCheckApi - functional programming interface
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare const HealthCheckApiFp: (configuration?: Configuration) => {
|
|
34
|
+
/**
|
|
35
|
+
* Returns the health status of the tenant service. This endpoint is used to monitor the operational status of the tenant service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
36
|
+
* @summary Health Check
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* HealthCheckApi - factory interface
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const HealthCheckApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
|
+
/**
|
|
48
|
+
* Returns the health status of the tenant service. This endpoint is used to monitor the operational status of the tenant service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
49
|
+
* @summary Health Check
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* HealthCheckApi - object-oriented interface
|
|
57
|
+
* @export
|
|
58
|
+
* @class HealthCheckApi
|
|
59
|
+
* @extends {BaseAPI}
|
|
60
|
+
*/
|
|
61
|
+
export declare class HealthCheckApi extends BaseAPI {
|
|
62
|
+
/**
|
|
63
|
+
* Returns the health status of the tenant service. This endpoint is used to monitor the operational status of the tenant service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
64
|
+
* @summary Health Check
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
* @memberof HealthCheckApi
|
|
68
|
+
*/
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
70
|
+
}
|