@emilgroup/tenant-sdk-node 1.21.0 → 1.22.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 -12
- package/README.md +2 -2
- package/api/dashboard-api.ts +99 -0
- package/api/data-report-api.ts +0 -97
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/invite-organizations-api.ts +15 -15
- package/api/invite-users-api.ts +34 -137
- package/api/roles-api.ts +4 -0
- package/api/users-api.ts +18 -447
- package/api.ts +2 -2
- package/dist/api/dashboard-api.d.ts +52 -0
- package/dist/api/dashboard-api.js +88 -0
- package/dist/api/data-report-api.d.ts +0 -51
- package/dist/api/data-report-api.js +0 -88
- 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/invite-organizations-api.d.ts +9 -9
- package/dist/api/invite-organizations-api.js +12 -12
- package/dist/api/invite-users-api.d.ts +22 -78
- package/dist/api/invite-users-api.js +27 -119
- package/dist/api/roles-api.d.ts +4 -0
- package/dist/api/roles-api.js +4 -0
- package/dist/api/users-api.d.ts +15 -242
- package/dist/api/users-api.js +15 -382
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/models/{assign-user-roles-request-dto.d.ts → create-tenant-db-config-request-dto.d.ts} +10 -10
- 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/{enable-user-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -7
- package/dist/models/index.d.ts +5 -11
- package/dist/models/index.js +5 -11
- package/dist/models/invite-class.d.ts +12 -0
- package/dist/models/{invite-org-request-dto.d.ts → invite-org-request-dto-rest.d.ts} +27 -14
- package/dist/models/invite-user-request-dto-rest.d.ts +49 -0
- package/dist/models/invite-users-request-dto-rest.d.ts +49 -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/{assign-user-roles-request-dto.ts → create-tenant-db-config-request-dto.ts} +10 -10
- 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/{enable-user-response-class.ts → get-embedded-url-response-class.ts} +6 -7
- package/models/index.ts +5 -11
- package/models/invite-class.ts +12 -0
- package/models/{invite-org-request-dto.ts → invite-org-request-dto-rest.ts} +27 -14
- package/models/invite-user-request-dto-rest.ts +55 -0
- package/models/invite-users-request-dto-rest.ts +55 -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/dist/models/assign-user-roles-response-class.d.ts +0 -25
- package/dist/models/create-permission-request-dto.d.ts +0 -42
- package/dist/models/create-role-request-dto.d.ts +0 -36
- package/dist/models/disable-user-response-class.d.ts +0 -25
- package/dist/models/enable-user-response-class.js +0 -15
- package/dist/models/invite-org-request-dto.js +0 -15
- package/dist/models/invite-user-request-dto.d.ts +0 -43
- package/dist/models/invite-user-request-dto.js +0 -15
- package/dist/models/invite-users-request-dto.d.ts +0 -36
- package/dist/models/invite-users-request-dto.js +0 -15
- package/dist/models/partner-invitation-data-dto.d.ts +0 -36
- package/dist/models/partner-invitation-data-dto.js +0 -15
- package/dist/models/update-role-request-dto.d.ts +0 -42
- package/dist/models/update-role-request-dto.js +0 -15
- package/models/assign-user-roles-response-class.ts +0 -31
- package/models/create-permission-request-dto.ts +0 -48
- package/models/create-role-request-dto.ts +0 -42
- package/models/disable-user-response-class.ts +0 -31
- package/models/invite-user-request-dto.ts +0 -49
- package/models/invite-users-request-dto.ts +0 -42
- package/models/partner-invitation-data-dto.ts +0 -42
- package/models/update-role-request-dto.ts +0 -48
- /package/dist/models/{assign-user-roles-request-dto.js → create-tenant-db-config-request-dto.js} +0 -0
- /package/dist/models/{assign-user-roles-response-class.js → get-embedded-url-response-class.js} +0 -0
- /package/dist/models/{create-permission-request-dto.js → invite-org-request-dto-rest.js} +0 -0
- /package/dist/models/{create-role-request-dto.js → invite-user-request-dto-rest.js} +0 -0
- /package/dist/models/{disable-user-response-class.js → invite-users-request-dto-rest.js} +0 -0
package/api.ts
CHANGED
|
@@ -29,8 +29,8 @@ import { DashboardApi } from './api';
|
|
|
29
29
|
import { DashboardGroupApi } from './api';
|
|
30
30
|
import { DataReportApi } from './api';
|
|
31
31
|
import { DataReportExecutorApi } from './api';
|
|
32
|
-
import { DefaultApi } from './api';
|
|
33
32
|
import { DeleteOrganizationInvitationsApi } from './api';
|
|
33
|
+
import { HealthCheckApi } from './api';
|
|
34
34
|
import { InviteOrganizationsApi } from './api';
|
|
35
35
|
import { InviteUsersApi } from './api';
|
|
36
36
|
import { ListOrganizationInvitationsApi } from './api';
|
|
@@ -46,8 +46,8 @@ export * from './api/dashboard-api';
|
|
|
46
46
|
export * from './api/dashboard-group-api';
|
|
47
47
|
export * from './api/data-report-api';
|
|
48
48
|
export * from './api/data-report-executor-api';
|
|
49
|
-
export * from './api/default-api';
|
|
50
49
|
export * from './api/delete-organization-invitations-api';
|
|
50
|
+
export * from './api/health-check-api';
|
|
51
51
|
export * from './api/invite-organizations-api';
|
|
52
52
|
export * from './api/invite-users-api';
|
|
53
53
|
export * from './api/list-organization-invitations-api';
|
|
@@ -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.
|
|
@@ -238,6 +238,53 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
},
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @param {string} providerDashboardId
|
|
244
|
+
* @param {string} [authorization] Bearer Token
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
getEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
249
|
+
if (options === void 0) { options = {}; }
|
|
250
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
251
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
252
|
+
return __generator(this, function (_a) {
|
|
253
|
+
switch (_a.label) {
|
|
254
|
+
case 0:
|
|
255
|
+
// verify required parameter 'providerDashboardId' is not null or undefined
|
|
256
|
+
(0, common_1.assertParamExists)('getEmbeddedUrl', 'providerDashboardId', providerDashboardId);
|
|
257
|
+
localVarPath = "/tenantservice/v1/dashboards/{provider_dashboard_id}/embedded-url"
|
|
258
|
+
.replace("{".concat("provider_dashboard_id", "}"), encodeURIComponent(String(providerDashboardId)));
|
|
259
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
|
+
if (configuration) {
|
|
261
|
+
baseOptions = configuration.baseOptions;
|
|
262
|
+
baseAccessToken = configuration.accessToken;
|
|
263
|
+
}
|
|
264
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
265
|
+
localVarHeaderParameter = {};
|
|
266
|
+
localVarQueryParameter = {};
|
|
267
|
+
// authentication bearer required
|
|
268
|
+
// http bearer authentication required
|
|
269
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
270
|
+
case 1:
|
|
271
|
+
// authentication bearer required
|
|
272
|
+
// http bearer authentication required
|
|
273
|
+
_a.sent();
|
|
274
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
275
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
276
|
+
}
|
|
277
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
278
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
280
|
+
return [2 /*return*/, {
|
|
281
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
282
|
+
options: localVarRequestOptions,
|
|
283
|
+
}];
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
},
|
|
241
288
|
/**
|
|
242
289
|
*
|
|
243
290
|
* @param {string} [authorization] Bearer Token
|
|
@@ -431,6 +478,26 @@ var DashboardApiFp = function (configuration) {
|
|
|
431
478
|
});
|
|
432
479
|
});
|
|
433
480
|
},
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @param {string} providerDashboardId
|
|
484
|
+
* @param {string} [authorization] Bearer Token
|
|
485
|
+
* @param {*} [options] Override http request option.
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
*/
|
|
488
|
+
getEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
489
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
490
|
+
var localVarAxiosArgs;
|
|
491
|
+
return __generator(this, function (_a) {
|
|
492
|
+
switch (_a.label) {
|
|
493
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEmbeddedUrl(providerDashboardId, authorization, options)];
|
|
494
|
+
case 1:
|
|
495
|
+
localVarAxiosArgs = _a.sent();
|
|
496
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
},
|
|
434
501
|
/**
|
|
435
502
|
*
|
|
436
503
|
* @param {string} [authorization] Bearer Token
|
|
@@ -518,6 +585,16 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
518
585
|
getDashboard: function (code, authorization, options) {
|
|
519
586
|
return localVarFp.getDashboard(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
520
587
|
},
|
|
588
|
+
/**
|
|
589
|
+
*
|
|
590
|
+
* @param {string} providerDashboardId
|
|
591
|
+
* @param {string} [authorization] Bearer Token
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
*/
|
|
595
|
+
getEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
596
|
+
return localVarFp.getEmbeddedUrl(providerDashboardId, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
597
|
+
},
|
|
521
598
|
/**
|
|
522
599
|
*
|
|
523
600
|
* @param {string} [authorization] Bearer Token
|
|
@@ -592,6 +669,17 @@ var DashboardApi = /** @class */ (function (_super) {
|
|
|
592
669
|
var _this = this;
|
|
593
670
|
return (0, exports.DashboardApiFp)(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
594
671
|
};
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
* @memberof DashboardApi
|
|
678
|
+
*/
|
|
679
|
+
DashboardApi.prototype.getEmbeddedUrl = function (requestParameters, options) {
|
|
680
|
+
var _this = this;
|
|
681
|
+
return (0, exports.DashboardApiFp)(this.configuration).getEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
682
|
+
};
|
|
595
683
|
/**
|
|
596
684
|
*
|
|
597
685
|
* @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
|
|
@@ -32,14 +32,6 @@ export declare const DataReportApiAxiosParamCreator: (configuration?: Configurat
|
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
34
|
createDataReport: (createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param {string} id
|
|
38
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
39
|
-
* @param {*} [options] Override http request option.
|
|
40
|
-
* @throws {RequiredError}
|
|
41
|
-
*/
|
|
42
|
-
deleteAlert: (id: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
35
|
/**
|
|
44
36
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
|
|
45
37
|
* @summary Retrieve the data-report
|
|
@@ -90,14 +82,6 @@ export declare const DataReportApiFp: (configuration?: Configuration) => {
|
|
|
90
82
|
* @throws {RequiredError}
|
|
91
83
|
*/
|
|
92
84
|
createDataReport(createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDataReportResponseClass>>;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @param {string} id
|
|
96
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
-
* @param {*} [options] Override http request option.
|
|
98
|
-
* @throws {RequiredError}
|
|
99
|
-
*/
|
|
100
|
-
deleteAlert(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
101
85
|
/**
|
|
102
86
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
|
|
103
87
|
* @summary Retrieve the data-report
|
|
@@ -148,14 +132,6 @@ export declare const DataReportApiFactory: (configuration?: Configuration, baseP
|
|
|
148
132
|
* @throws {RequiredError}
|
|
149
133
|
*/
|
|
150
134
|
createDataReport(createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDataReportResponseClass>;
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
* @param {string} id
|
|
154
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
155
|
-
* @param {*} [options] Override http request option.
|
|
156
|
-
* @throws {RequiredError}
|
|
157
|
-
*/
|
|
158
|
-
deleteAlert(id: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
159
135
|
/**
|
|
160
136
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
|
|
161
137
|
* @summary Retrieve the data-report
|
|
@@ -211,25 +187,6 @@ export interface DataReportApiCreateDataReportRequest {
|
|
|
211
187
|
*/
|
|
212
188
|
readonly authorization?: string;
|
|
213
189
|
}
|
|
214
|
-
/**
|
|
215
|
-
* Request parameters for deleteAlert operation in DataReportApi.
|
|
216
|
-
* @export
|
|
217
|
-
* @interface DataReportApiDeleteAlertRequest
|
|
218
|
-
*/
|
|
219
|
-
export interface DataReportApiDeleteAlertRequest {
|
|
220
|
-
/**
|
|
221
|
-
*
|
|
222
|
-
* @type {string}
|
|
223
|
-
* @memberof DataReportApiDeleteAlert
|
|
224
|
-
*/
|
|
225
|
-
readonly id: string;
|
|
226
|
-
/**
|
|
227
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
228
|
-
* @type {string}
|
|
229
|
-
* @memberof DataReportApiDeleteAlert
|
|
230
|
-
*/
|
|
231
|
-
readonly authorization?: string;
|
|
232
|
-
}
|
|
233
190
|
/**
|
|
234
191
|
* Request parameters for getDataReport operation in DataReportApi.
|
|
235
192
|
* @export
|
|
@@ -351,14 +308,6 @@ export declare class DataReportApi extends BaseAPI {
|
|
|
351
308
|
* @memberof DataReportApi
|
|
352
309
|
*/
|
|
353
310
|
createDataReport(requestParameters: DataReportApiCreateDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDataReportResponseClass, any>>;
|
|
354
|
-
/**
|
|
355
|
-
*
|
|
356
|
-
* @param {DataReportApiDeleteAlertRequest} requestParameters Request parameters.
|
|
357
|
-
* @param {*} [options] Override http request option.
|
|
358
|
-
* @throws {RequiredError}
|
|
359
|
-
* @memberof DataReportApi
|
|
360
|
-
*/
|
|
361
|
-
deleteAlert(requestParameters: DataReportApiDeleteAlertRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
362
311
|
/**
|
|
363
312
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
|
|
364
313
|
* @summary Retrieve the data-report
|
|
@@ -145,53 +145,6 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @param {string} id
|
|
151
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
152
|
-
* @param {*} [options] Override http request option.
|
|
153
|
-
* @throws {RequiredError}
|
|
154
|
-
*/
|
|
155
|
-
deleteAlert: function (id, authorization, options) {
|
|
156
|
-
if (options === void 0) { options = {}; }
|
|
157
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
|
-
return __generator(this, function (_a) {
|
|
160
|
-
switch (_a.label) {
|
|
161
|
-
case 0:
|
|
162
|
-
// verify required parameter 'id' is not null or undefined
|
|
163
|
-
(0, common_1.assertParamExists)('deleteAlert', 'id', id);
|
|
164
|
-
localVarPath = "/tenantservice/v1/data-reports/{id}"
|
|
165
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
166
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
-
if (configuration) {
|
|
168
|
-
baseOptions = configuration.baseOptions;
|
|
169
|
-
baseAccessToken = configuration.accessToken;
|
|
170
|
-
}
|
|
171
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
172
|
-
localVarHeaderParameter = {};
|
|
173
|
-
localVarQueryParameter = {};
|
|
174
|
-
// authentication bearer required
|
|
175
|
-
// http bearer authentication required
|
|
176
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
|
-
case 1:
|
|
178
|
-
// authentication bearer required
|
|
179
|
-
// http bearer authentication required
|
|
180
|
-
_a.sent();
|
|
181
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
|
-
}
|
|
184
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
187
|
-
return [2 /*return*/, {
|
|
188
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
189
|
-
options: localVarRequestOptions,
|
|
190
|
-
}];
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
},
|
|
195
148
|
/**
|
|
196
149
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
|
|
197
150
|
* @summary Retrieve the data-report
|
|
@@ -400,26 +353,6 @@ var DataReportApiFp = function (configuration) {
|
|
|
400
353
|
});
|
|
401
354
|
});
|
|
402
355
|
},
|
|
403
|
-
/**
|
|
404
|
-
*
|
|
405
|
-
* @param {string} id
|
|
406
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
407
|
-
* @param {*} [options] Override http request option.
|
|
408
|
-
* @throws {RequiredError}
|
|
409
|
-
*/
|
|
410
|
-
deleteAlert: function (id, authorization, options) {
|
|
411
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
412
|
-
var localVarAxiosArgs;
|
|
413
|
-
return __generator(this, function (_a) {
|
|
414
|
-
switch (_a.label) {
|
|
415
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAlert(id, authorization, options)];
|
|
416
|
-
case 1:
|
|
417
|
-
localVarAxiosArgs = _a.sent();
|
|
418
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
});
|
|
422
|
-
},
|
|
423
356
|
/**
|
|
424
357
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
|
|
425
358
|
* @summary Retrieve the data-report
|
|
@@ -512,16 +445,6 @@ var DataReportApiFactory = function (configuration, basePath, axios) {
|
|
|
512
445
|
createDataReport: function (createDataReportRequestDto, authorization, options) {
|
|
513
446
|
return localVarFp.createDataReport(createDataReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
514
447
|
},
|
|
515
|
-
/**
|
|
516
|
-
*
|
|
517
|
-
* @param {string} id
|
|
518
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
519
|
-
* @param {*} [options] Override http request option.
|
|
520
|
-
* @throws {RequiredError}
|
|
521
|
-
*/
|
|
522
|
-
deleteAlert: function (id, authorization, options) {
|
|
523
|
-
return localVarFp.deleteAlert(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
524
|
-
},
|
|
525
448
|
/**
|
|
526
449
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
|
|
527
450
|
* @summary Retrieve the data-report
|
|
@@ -589,17 +512,6 @@ var DataReportApi = /** @class */ (function (_super) {
|
|
|
589
512
|
var _this = this;
|
|
590
513
|
return (0, exports.DataReportApiFp)(this.configuration).createDataReport(requestParameters.createDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
591
514
|
};
|
|
592
|
-
/**
|
|
593
|
-
*
|
|
594
|
-
* @param {DataReportApiDeleteAlertRequest} requestParameters Request parameters.
|
|
595
|
-
* @param {*} [options] Override http request option.
|
|
596
|
-
* @throws {RequiredError}
|
|
597
|
-
* @memberof DataReportApi
|
|
598
|
-
*/
|
|
599
|
-
DataReportApi.prototype.deleteAlert = function (requestParameters, options) {
|
|
600
|
-
var _this = this;
|
|
601
|
-
return (0, exports.DataReportApiFp)(this.configuration).deleteAlert(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
602
|
-
};
|
|
603
515
|
/**
|
|
604
516
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
|
|
605
517
|
* @summary Retrieve the data-report
|
|
@@ -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
|
|
@@ -90,14 +90,15 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* HealthCheckApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var HealthCheckApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* 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.
|
|
101
|
+
* @summary Health Check
|
|
101
102
|
* @param {*} [options] Override http request option.
|
|
102
103
|
* @throws {RequiredError}
|
|
103
104
|
*/
|
|
@@ -127,16 +128,17 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
127
128
|
},
|
|
128
129
|
};
|
|
129
130
|
};
|
|
130
|
-
exports.
|
|
131
|
+
exports.HealthCheckApiAxiosParamCreator = HealthCheckApiAxiosParamCreator;
|
|
131
132
|
/**
|
|
132
|
-
*
|
|
133
|
+
* HealthCheckApi - functional programming interface
|
|
133
134
|
* @export
|
|
134
135
|
*/
|
|
135
|
-
var
|
|
136
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
136
|
+
var HealthCheckApiFp = function (configuration) {
|
|
137
|
+
var localVarAxiosParamCreator = (0, exports.HealthCheckApiAxiosParamCreator)(configuration);
|
|
137
138
|
return {
|
|
138
139
|
/**
|
|
139
|
-
*
|
|
140
|
+
* 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.
|
|
141
|
+
* @summary Health Check
|
|
140
142
|
* @param {*} [options] Override http request option.
|
|
141
143
|
* @throws {RequiredError}
|
|
142
144
|
*/
|
|
@@ -155,16 +157,17 @@ var DefaultApiFp = function (configuration) {
|
|
|
155
157
|
},
|
|
156
158
|
};
|
|
157
159
|
};
|
|
158
|
-
exports.
|
|
160
|
+
exports.HealthCheckApiFp = HealthCheckApiFp;
|
|
159
161
|
/**
|
|
160
|
-
*
|
|
162
|
+
* HealthCheckApi - factory interface
|
|
161
163
|
* @export
|
|
162
164
|
*/
|
|
163
|
-
var
|
|
164
|
-
var localVarFp = (0, exports.
|
|
165
|
+
var HealthCheckApiFactory = function (configuration, basePath, axios) {
|
|
166
|
+
var localVarFp = (0, exports.HealthCheckApiFp)(configuration);
|
|
165
167
|
return {
|
|
166
168
|
/**
|
|
167
|
-
*
|
|
169
|
+
* 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.
|
|
170
|
+
* @summary Health Check
|
|
168
171
|
* @param {*} [options] Override http request option.
|
|
169
172
|
* @throws {RequiredError}
|
|
170
173
|
*/
|
|
@@ -173,28 +176,29 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
173
176
|
},
|
|
174
177
|
};
|
|
175
178
|
};
|
|
176
|
-
exports.
|
|
179
|
+
exports.HealthCheckApiFactory = HealthCheckApiFactory;
|
|
177
180
|
/**
|
|
178
|
-
*
|
|
181
|
+
* HealthCheckApi - object-oriented interface
|
|
179
182
|
* @export
|
|
180
|
-
* @class
|
|
183
|
+
* @class HealthCheckApi
|
|
181
184
|
* @extends {BaseAPI}
|
|
182
185
|
*/
|
|
183
|
-
var
|
|
184
|
-
__extends(
|
|
185
|
-
function
|
|
186
|
+
var HealthCheckApi = /** @class */ (function (_super) {
|
|
187
|
+
__extends(HealthCheckApi, _super);
|
|
188
|
+
function HealthCheckApi() {
|
|
186
189
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
187
190
|
}
|
|
188
191
|
/**
|
|
189
|
-
*
|
|
192
|
+
* 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.
|
|
193
|
+
* @summary Health Check
|
|
190
194
|
* @param {*} [options] Override http request option.
|
|
191
195
|
* @throws {RequiredError}
|
|
192
|
-
* @memberof
|
|
196
|
+
* @memberof HealthCheckApi
|
|
193
197
|
*/
|
|
194
|
-
|
|
198
|
+
HealthCheckApi.prototype.check = function (options) {
|
|
195
199
|
var _this = this;
|
|
196
|
-
return (0, exports.
|
|
200
|
+
return (0, exports.HealthCheckApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
197
201
|
};
|
|
198
|
-
return
|
|
202
|
+
return HealthCheckApi;
|
|
199
203
|
}(base_1.BaseAPI));
|
|
200
|
-
exports.
|
|
204
|
+
exports.HealthCheckApi = HealthCheckApi;
|