@emilgroup/tenant-sdk 1.21.0 → 1.22.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 +1 -1
- package/README.md +2 -2
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api.ts +2 -2
- package/base.ts +20 -7
- 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/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/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/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/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
|
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.
|
|
20
|
+
npm install @emilgroup/tenant-sdk@1.22.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.22.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
|
@@ -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;
|
|
@@ -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
|
+
}
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.HealthCheckApi = exports.HealthCheckApiFactory = exports.HealthCheckApiFp = exports.HealthCheckApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -86,14 +86,15 @@ var common_1 = require("../common");
|
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* HealthCheckApi - axios parameter creator
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
var
|
|
92
|
+
var HealthCheckApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
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
|
|
97
98
|
* @param {*} [options] Override http request option.
|
|
98
99
|
* @throws {RequiredError}
|
|
99
100
|
*/
|
|
@@ -123,16 +124,17 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
123
124
|
},
|
|
124
125
|
};
|
|
125
126
|
};
|
|
126
|
-
exports.
|
|
127
|
+
exports.HealthCheckApiAxiosParamCreator = HealthCheckApiAxiosParamCreator;
|
|
127
128
|
/**
|
|
128
|
-
*
|
|
129
|
+
* HealthCheckApi - functional programming interface
|
|
129
130
|
* @export
|
|
130
131
|
*/
|
|
131
|
-
var
|
|
132
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
132
|
+
var HealthCheckApiFp = function (configuration) {
|
|
133
|
+
var localVarAxiosParamCreator = (0, exports.HealthCheckApiAxiosParamCreator)(configuration);
|
|
133
134
|
return {
|
|
134
135
|
/**
|
|
135
|
-
*
|
|
136
|
+
* 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.
|
|
137
|
+
* @summary Health Check
|
|
136
138
|
* @param {*} [options] Override http request option.
|
|
137
139
|
* @throws {RequiredError}
|
|
138
140
|
*/
|
|
@@ -151,16 +153,17 @@ var DefaultApiFp = function (configuration) {
|
|
|
151
153
|
},
|
|
152
154
|
};
|
|
153
155
|
};
|
|
154
|
-
exports.
|
|
156
|
+
exports.HealthCheckApiFp = HealthCheckApiFp;
|
|
155
157
|
/**
|
|
156
|
-
*
|
|
158
|
+
* HealthCheckApi - factory interface
|
|
157
159
|
* @export
|
|
158
160
|
*/
|
|
159
|
-
var
|
|
160
|
-
var localVarFp = (0, exports.
|
|
161
|
+
var HealthCheckApiFactory = function (configuration, basePath, axios) {
|
|
162
|
+
var localVarFp = (0, exports.HealthCheckApiFp)(configuration);
|
|
161
163
|
return {
|
|
162
164
|
/**
|
|
163
|
-
*
|
|
165
|
+
* 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.
|
|
166
|
+
* @summary Health Check
|
|
164
167
|
* @param {*} [options] Override http request option.
|
|
165
168
|
* @throws {RequiredError}
|
|
166
169
|
*/
|
|
@@ -169,28 +172,29 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
169
172
|
},
|
|
170
173
|
};
|
|
171
174
|
};
|
|
172
|
-
exports.
|
|
175
|
+
exports.HealthCheckApiFactory = HealthCheckApiFactory;
|
|
173
176
|
/**
|
|
174
|
-
*
|
|
177
|
+
* HealthCheckApi - object-oriented interface
|
|
175
178
|
* @export
|
|
176
|
-
* @class
|
|
179
|
+
* @class HealthCheckApi
|
|
177
180
|
* @extends {BaseAPI}
|
|
178
181
|
*/
|
|
179
|
-
var
|
|
180
|
-
__extends(
|
|
181
|
-
function
|
|
182
|
+
var HealthCheckApi = /** @class */ (function (_super) {
|
|
183
|
+
__extends(HealthCheckApi, _super);
|
|
184
|
+
function HealthCheckApi() {
|
|
182
185
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
183
186
|
}
|
|
184
187
|
/**
|
|
185
|
-
*
|
|
188
|
+
* 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.
|
|
189
|
+
* @summary Health Check
|
|
186
190
|
* @param {*} [options] Override http request option.
|
|
187
191
|
* @throws {RequiredError}
|
|
188
|
-
* @memberof
|
|
192
|
+
* @memberof HealthCheckApi
|
|
189
193
|
*/
|
|
190
|
-
|
|
194
|
+
HealthCheckApi.prototype.check = function (options) {
|
|
191
195
|
var _this = this;
|
|
192
|
-
return (0, exports.
|
|
196
|
+
return (0, exports.HealthCheckApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
193
197
|
};
|
|
194
|
-
return
|
|
198
|
+
return HealthCheckApi;
|
|
195
199
|
}(base_1.BaseAPI));
|
|
196
|
-
exports.
|
|
200
|
+
exports.HealthCheckApi = HealthCheckApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export * from './api/dashboard-api';
|
|
|
14
14
|
export * from './api/dashboard-group-api';
|
|
15
15
|
export * from './api/data-report-api';
|
|
16
16
|
export * from './api/data-report-executor-api';
|
|
17
|
-
export * from './api/default-api';
|
|
18
17
|
export * from './api/delete-organization-invitations-api';
|
|
18
|
+
export * from './api/health-check-api';
|
|
19
19
|
export * from './api/invite-organizations-api';
|
|
20
20
|
export * from './api/invite-users-api';
|
|
21
21
|
export * from './api/list-organization-invitations-api';
|
package/dist/api.js
CHANGED
|
@@ -32,8 +32,8 @@ __exportStar(require("./api/dashboard-api"), exports);
|
|
|
32
32
|
__exportStar(require("./api/dashboard-group-api"), exports);
|
|
33
33
|
__exportStar(require("./api/data-report-api"), exports);
|
|
34
34
|
__exportStar(require("./api/data-report-executor-api"), exports);
|
|
35
|
-
__exportStar(require("./api/default-api"), exports);
|
|
36
35
|
__exportStar(require("./api/delete-organization-invitations-api"), exports);
|
|
36
|
+
__exportStar(require("./api/health-check-api"), exports);
|
|
37
37
|
__exportStar(require("./api/invite-organizations-api"), exports);
|
|
38
38
|
__exportStar(require("./api/invite-users-api"), exports);
|
|
39
39
|
__exportStar(require("./api/list-organization-invitations-api"), exports);
|
package/dist/base.d.ts
CHANGED
|
@@ -52,7 +52,6 @@ export declare class BaseAPI {
|
|
|
52
52
|
protected axios: AxiosInstance;
|
|
53
53
|
protected configuration: Configuration | undefined;
|
|
54
54
|
private tokenData?;
|
|
55
|
-
private permissions?;
|
|
56
55
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
57
56
|
selectEnvironment(env: Environment): void;
|
|
58
57
|
selectBasePath(path: string): void;
|
package/dist/base.js
CHANGED
|
@@ -144,7 +144,11 @@ var BaseAPI = /** @class */ (function () {
|
|
|
144
144
|
this.configuration.basePath = path;
|
|
145
145
|
};
|
|
146
146
|
BaseAPI.prototype.getPermissions = function () {
|
|
147
|
-
|
|
147
|
+
var _a;
|
|
148
|
+
if (!((_a = this.tokenData) === null || _a === void 0 ? void 0 : _a.permissions)) {
|
|
149
|
+
return [];
|
|
150
|
+
}
|
|
151
|
+
return this.tokenData.permissions.split(',');
|
|
148
152
|
};
|
|
149
153
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
150
154
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -170,7 +174,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
170
174
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
171
175
|
this.tokenData.username = username;
|
|
172
176
|
this.tokenData.accessToken = accessToken;
|
|
173
|
-
this.permissions = permissions;
|
|
177
|
+
this.tokenData.permissions = permissions;
|
|
174
178
|
this.storeTokenData(__assign({}, this.tokenData));
|
|
175
179
|
return [2 /*return*/];
|
|
176
180
|
}
|
|
@@ -179,7 +183,8 @@ var BaseAPI = /** @class */ (function () {
|
|
|
179
183
|
};
|
|
180
184
|
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
181
185
|
return __awaiter(this, void 0, void 0, function () {
|
|
182
|
-
var username, options, response;
|
|
186
|
+
var username, refreshTokenAxios, options, response;
|
|
187
|
+
var _this = this;
|
|
183
188
|
return __generator(this, function (_a) {
|
|
184
189
|
switch (_a.label) {
|
|
185
190
|
case 0:
|
|
@@ -187,6 +192,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
187
192
|
if (!username) {
|
|
188
193
|
throw new Error('Failed to refresh token.');
|
|
189
194
|
}
|
|
195
|
+
refreshTokenAxios = axios_1.default.create();
|
|
196
|
+
refreshTokenAxios.interceptors.response.use(function (response) {
|
|
197
|
+
var permissions = response.data.permissions;
|
|
198
|
+
_this.tokenData.permissions = permissions;
|
|
199
|
+
_this.storeTokenData(_this.tokenData);
|
|
200
|
+
return response;
|
|
201
|
+
});
|
|
190
202
|
options = {
|
|
191
203
|
method: 'POST',
|
|
192
204
|
url: "".concat(this.configuration.basePath, "/authservice/v1/refresh-token"),
|
|
@@ -196,7 +208,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
196
208
|
data: { username: username },
|
|
197
209
|
withCredentials: true,
|
|
198
210
|
};
|
|
199
|
-
return [4 /*yield*/,
|
|
211
|
+
return [4 /*yield*/, refreshTokenAxios.request(options)];
|
|
200
212
|
case 1:
|
|
201
213
|
response = _a.sent();
|
|
202
214
|
return [2 /*return*/, response.data];
|
|
@@ -241,7 +253,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
241
253
|
case 2:
|
|
242
254
|
_a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
|
|
243
255
|
accessToken = "Bearer ".concat(tokenString);
|
|
244
|
-
this.permissions = permissions;
|
|
256
|
+
this.tokenData.permissions = permissions;
|
|
245
257
|
delete originalConfig.headers['Authorization'];
|
|
246
258
|
originalConfig.headers['Authorization'] = accessToken;
|
|
247
259
|
this.configuration.accessToken = accessToken;
|
|
@@ -267,7 +279,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
267
279
|
case 7:
|
|
268
280
|
_b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
|
|
269
281
|
accessToken = "Bearer ".concat(tokenString);
|
|
270
|
-
this.permissions = permissions;
|
|
282
|
+
this.tokenData.permissions = permissions;
|
|
271
283
|
_retry = true;
|
|
272
284
|
originalConfig.headers['Authorization'] = accessToken;
|
|
273
285
|
this.configuration.accessToken = accessToken;
|
|
@@ -63,4 +63,16 @@ export interface CustomSchemaClass {
|
|
|
63
63
|
* @memberof CustomSchemaClass
|
|
64
64
|
*/
|
|
65
65
|
'updatedAt': string;
|
|
66
|
+
/**
|
|
67
|
+
* Identifier of the user who created the record.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CustomSchemaClass
|
|
70
|
+
*/
|
|
71
|
+
'createdBy': string;
|
|
72
|
+
/**
|
|
73
|
+
* Identifier of the user who last updated the record.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CustomSchemaClass
|
|
76
|
+
*/
|
|
77
|
+
'updatedBy': string;
|
|
66
78
|
}
|
|
@@ -76,4 +76,16 @@ export interface DataReportClass {
|
|
|
76
76
|
* @memberof DataReportClass
|
|
77
77
|
*/
|
|
78
78
|
'updatedAt': string;
|
|
79
|
+
/**
|
|
80
|
+
* Identifier of the user who created the record.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof DataReportClass
|
|
83
|
+
*/
|
|
84
|
+
'createdBy': string;
|
|
85
|
+
/**
|
|
86
|
+
* Identifier of the user who last updated the record.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof DataReportClass
|
|
89
|
+
*/
|
|
90
|
+
'updatedBy': string;
|
|
79
91
|
}
|
|
@@ -69,4 +69,16 @@ export interface DataReportFilterClass {
|
|
|
69
69
|
* @memberof DataReportFilterClass
|
|
70
70
|
*/
|
|
71
71
|
'updatedAt': string;
|
|
72
|
+
/**
|
|
73
|
+
* Identifier of the user who created the record.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof DataReportFilterClass
|
|
76
|
+
*/
|
|
77
|
+
'createdBy': string;
|
|
78
|
+
/**
|
|
79
|
+
* Identifier of the user who last updated the record.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof DataReportFilterClass
|
|
82
|
+
*/
|
|
83
|
+
'updatedBy': string;
|
|
72
84
|
}
|
|
@@ -77,6 +77,18 @@ export interface InviteClass {
|
|
|
77
77
|
* @memberof InviteClass
|
|
78
78
|
*/
|
|
79
79
|
'organizationId'?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Identifier of the user who created the record.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof InviteClass
|
|
84
|
+
*/
|
|
85
|
+
'createdBy': string;
|
|
86
|
+
/**
|
|
87
|
+
* Identifier of the user who last updated the record.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof InviteClass
|
|
90
|
+
*/
|
|
91
|
+
'updatedBy': string;
|
|
80
92
|
/**
|
|
81
93
|
* Organization associated with the user
|
|
82
94
|
* @type {OrganizationClass}
|
|
@@ -106,4 +106,16 @@ export interface OrgInvitationClass {
|
|
|
106
106
|
* @memberof OrgInvitationClass
|
|
107
107
|
*/
|
|
108
108
|
'updatedAt': string;
|
|
109
|
+
/**
|
|
110
|
+
* Identifier of the user who created the record.
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof OrgInvitationClass
|
|
113
|
+
*/
|
|
114
|
+
'createdBy': string;
|
|
115
|
+
/**
|
|
116
|
+
* Identifier of the user who last updated the record.
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof OrgInvitationClass
|
|
119
|
+
*/
|
|
120
|
+
'updatedBy': string;
|
|
109
121
|
}
|
|
@@ -105,4 +105,16 @@ export interface OrganizationClass {
|
|
|
105
105
|
* @memberof OrganizationClass
|
|
106
106
|
*/
|
|
107
107
|
'updatedAt': string;
|
|
108
|
+
/**
|
|
109
|
+
* Identifier of the user who created the record.
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof OrganizationClass
|
|
112
|
+
*/
|
|
113
|
+
'createdBy': string;
|
|
114
|
+
/**
|
|
115
|
+
* Identifier of the user who last updated the record.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof OrganizationClass
|
|
118
|
+
*/
|
|
119
|
+
'updatedBy': string;
|
|
108
120
|
}
|
|
@@ -57,4 +57,16 @@ export interface PermissionClass {
|
|
|
57
57
|
* @memberof PermissionClass
|
|
58
58
|
*/
|
|
59
59
|
'updatedAt': string;
|
|
60
|
+
/**
|
|
61
|
+
* Identifier of the user who created the record.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PermissionClass
|
|
64
|
+
*/
|
|
65
|
+
'createdBy': string;
|
|
66
|
+
/**
|
|
67
|
+
* Identifier of the user who last updated the record.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof PermissionClass
|
|
70
|
+
*/
|
|
71
|
+
'updatedBy': string;
|
|
60
72
|
}
|
|
@@ -58,4 +58,16 @@ export interface RoleClass {
|
|
|
58
58
|
* @memberof RoleClass
|
|
59
59
|
*/
|
|
60
60
|
'updatedAt': string;
|
|
61
|
+
/**
|
|
62
|
+
* Identifier of the user who created the record.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof RoleClass
|
|
65
|
+
*/
|
|
66
|
+
'createdBy': string;
|
|
67
|
+
/**
|
|
68
|
+
* Identifier of the user who last updated the record.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof RoleClass
|
|
71
|
+
*/
|
|
72
|
+
'updatedBy': string;
|
|
61
73
|
}
|
|
@@ -58,6 +58,18 @@ export interface SubscriptionClass {
|
|
|
58
58
|
* @memberof SubscriptionClass
|
|
59
59
|
*/
|
|
60
60
|
'updatedAt'?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Identifier of the user who created the record.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof SubscriptionClass
|
|
65
|
+
*/
|
|
66
|
+
'createdBy': string;
|
|
67
|
+
/**
|
|
68
|
+
* Identifier of the user who last updated the record.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof SubscriptionClass
|
|
71
|
+
*/
|
|
72
|
+
'updatedBy': string;
|
|
61
73
|
/**
|
|
62
74
|
* user
|
|
63
75
|
* @type {UserClass}
|
|
@@ -102,6 +102,18 @@ export interface UserClass {
|
|
|
102
102
|
* @memberof UserClass
|
|
103
103
|
*/
|
|
104
104
|
'partnerCode'?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Identifier of the user who created the record.
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof UserClass
|
|
109
|
+
*/
|
|
110
|
+
'createdBy': string;
|
|
111
|
+
/**
|
|
112
|
+
* Identifier of the user who last updated the record.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof UserClass
|
|
115
|
+
*/
|
|
116
|
+
'updatedBy': string;
|
|
105
117
|
/**
|
|
106
118
|
* Organization associated with the user
|
|
107
119
|
* @type {OrganizationClass}
|
|
@@ -68,5 +68,17 @@ export interface CustomSchemaClass {
|
|
|
68
68
|
* @memberof CustomSchemaClass
|
|
69
69
|
*/
|
|
70
70
|
'updatedAt': string;
|
|
71
|
+
/**
|
|
72
|
+
* Identifier of the user who created the record.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CustomSchemaClass
|
|
75
|
+
*/
|
|
76
|
+
'createdBy': string;
|
|
77
|
+
/**
|
|
78
|
+
* Identifier of the user who last updated the record.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CustomSchemaClass
|
|
81
|
+
*/
|
|
82
|
+
'updatedBy': string;
|
|
71
83
|
}
|
|
72
84
|
|
|
@@ -81,5 +81,17 @@ export interface DataReportClass {
|
|
|
81
81
|
* @memberof DataReportClass
|
|
82
82
|
*/
|
|
83
83
|
'updatedAt': string;
|
|
84
|
+
/**
|
|
85
|
+
* Identifier of the user who created the record.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof DataReportClass
|
|
88
|
+
*/
|
|
89
|
+
'createdBy': string;
|
|
90
|
+
/**
|
|
91
|
+
* Identifier of the user who last updated the record.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof DataReportClass
|
|
94
|
+
*/
|
|
95
|
+
'updatedBy': string;
|
|
84
96
|
}
|
|
85
97
|
|
|
@@ -74,5 +74,17 @@ export interface DataReportFilterClass {
|
|
|
74
74
|
* @memberof DataReportFilterClass
|
|
75
75
|
*/
|
|
76
76
|
'updatedAt': string;
|
|
77
|
+
/**
|
|
78
|
+
* Identifier of the user who created the record.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof DataReportFilterClass
|
|
81
|
+
*/
|
|
82
|
+
'createdBy': string;
|
|
83
|
+
/**
|
|
84
|
+
* Identifier of the user who last updated the record.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof DataReportFilterClass
|
|
87
|
+
*/
|
|
88
|
+
'updatedBy': string;
|
|
77
89
|
}
|
|
78
90
|
|
package/models/invite-class.ts
CHANGED
|
@@ -82,6 +82,18 @@ export interface InviteClass {
|
|
|
82
82
|
* @memberof InviteClass
|
|
83
83
|
*/
|
|
84
84
|
'organizationId'?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Identifier of the user who created the record.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof InviteClass
|
|
89
|
+
*/
|
|
90
|
+
'createdBy': string;
|
|
91
|
+
/**
|
|
92
|
+
* Identifier of the user who last updated the record.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof InviteClass
|
|
95
|
+
*/
|
|
96
|
+
'updatedBy': string;
|
|
85
97
|
/**
|
|
86
98
|
* Organization associated with the user
|
|
87
99
|
* @type {OrganizationClass}
|
|
@@ -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
|
|
|
@@ -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
|
@@ -107,6 +107,18 @@ export interface UserClass {
|
|
|
107
107
|
* @memberof UserClass
|
|
108
108
|
*/
|
|
109
109
|
'partnerCode'?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Identifier of the user who created the record.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof UserClass
|
|
114
|
+
*/
|
|
115
|
+
'createdBy': string;
|
|
116
|
+
/**
|
|
117
|
+
* Identifier of the user who last updated the record.
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof UserClass
|
|
120
|
+
*/
|
|
121
|
+
'updatedBy': string;
|
|
110
122
|
/**
|
|
111
123
|
* Organization associated with the user
|
|
112
124
|
* @type {OrganizationClass}
|
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
|
-
}
|