@emilgroup/tenant-sdk-node 1.22.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 +5 -11
- package/README.md +2 -2
- package/api/dashboard-api.ts +99 -0
- package/api/data-report-api.ts +0 -97
- 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/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/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/models/{assign-user-roles-request-dto.d.ts → create-tenant-db-config-request-dto.d.ts} +10 -10
- 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 -12
- 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/user-class.d.ts +8 -8
- package/models/{assign-user-roles-request-dto.ts → create-tenant-db-config-request-dto.ts} +10 -10
- 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 -12
- 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/user-class.ts +8 -8
- package/package.json +1 -1
- 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
|
@@ -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
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import {
|
|
15
|
+
import { InviteOrgRequestDtoRest } from '../models';
|
|
16
16
|
import { OrgInvitationResponseClass } from '../models';
|
|
17
17
|
/**
|
|
18
18
|
* InviteOrganizationsApi - axios parameter creator
|
|
@@ -22,12 +22,12 @@ export declare const InviteOrganizationsApiAxiosParamCreator: (configuration?: C
|
|
|
22
22
|
/**
|
|
23
23
|
* This sends an email to invite an organization.
|
|
24
24
|
* @summary Invite an organization
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
26
26
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
inviteOrg: (
|
|
30
|
+
inviteOrg: (inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* InviteOrganizationsApi - functional programming interface
|
|
@@ -37,12 +37,12 @@ export declare const InviteOrganizationsApiFp: (configuration?: Configuration) =
|
|
|
37
37
|
/**
|
|
38
38
|
* This sends an email to invite an organization.
|
|
39
39
|
* @summary Invite an organization
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
41
41
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
inviteOrg(
|
|
45
|
+
inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>>;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* InviteOrganizationsApi - factory interface
|
|
@@ -52,12 +52,12 @@ export declare const InviteOrganizationsApiFactory: (configuration?: Configurati
|
|
|
52
52
|
/**
|
|
53
53
|
* This sends an email to invite an organization.
|
|
54
54
|
* @summary Invite an organization
|
|
55
|
-
* @param {
|
|
55
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
56
56
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
57
57
|
* @param {*} [options] Override http request option.
|
|
58
58
|
* @throws {RequiredError}
|
|
59
59
|
*/
|
|
60
|
-
inviteOrg(
|
|
60
|
+
inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass>;
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
63
|
* Request parameters for inviteOrg operation in InviteOrganizationsApi.
|
|
@@ -67,10 +67,10 @@ export declare const InviteOrganizationsApiFactory: (configuration?: Configurati
|
|
|
67
67
|
export interface InviteOrganizationsApiInviteOrgRequest {
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
|
-
* @type {
|
|
70
|
+
* @type {InviteOrgRequestDtoRest}
|
|
71
71
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
72
72
|
*/
|
|
73
|
-
readonly
|
|
73
|
+
readonly inviteOrgRequestDtoRest: InviteOrgRequestDtoRest;
|
|
74
74
|
/**
|
|
75
75
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
76
76
|
* @type {string}
|
|
@@ -99,20 +99,20 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
/**
|
|
100
100
|
* This sends an email to invite an organization.
|
|
101
101
|
* @summary Invite an organization
|
|
102
|
-
* @param {
|
|
102
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
inviteOrg: function (
|
|
107
|
+
inviteOrg: function (inviteOrgRequestDtoRest, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
114
|
-
// verify required parameter '
|
|
115
|
-
(0, common_1.assertParamExists)('inviteOrg', '
|
|
114
|
+
// verify required parameter 'inviteOrgRequestDtoRest' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest);
|
|
116
116
|
localVarPath = "/tenantservice/v1/invitations/organizations";
|
|
117
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
118
|
if (configuration) {
|
|
@@ -136,7 +136,7 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
137
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
138
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteOrgRequestDtoRest, localVarRequestOptions, configuration);
|
|
140
140
|
return [2 /*return*/, {
|
|
141
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
142
|
options: localVarRequestOptions,
|
|
@@ -158,17 +158,17 @@ var InviteOrganizationsApiFp = function (configuration) {
|
|
|
158
158
|
/**
|
|
159
159
|
* This sends an email to invite an organization.
|
|
160
160
|
* @summary Invite an organization
|
|
161
|
-
* @param {
|
|
161
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
162
162
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
inviteOrg: function (
|
|
166
|
+
inviteOrg: function (inviteOrgRequestDtoRest, authorization, options) {
|
|
167
167
|
return __awaiter(this, void 0, void 0, function () {
|
|
168
168
|
var localVarAxiosArgs;
|
|
169
169
|
return __generator(this, function (_a) {
|
|
170
170
|
switch (_a.label) {
|
|
171
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(
|
|
171
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDtoRest, authorization, options)];
|
|
172
172
|
case 1:
|
|
173
173
|
localVarAxiosArgs = _a.sent();
|
|
174
174
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -189,13 +189,13 @@ var InviteOrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
189
189
|
/**
|
|
190
190
|
* This sends an email to invite an organization.
|
|
191
191
|
* @summary Invite an organization
|
|
192
|
-
* @param {
|
|
192
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
193
193
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
194
194
|
* @param {*} [options] Override http request option.
|
|
195
195
|
* @throws {RequiredError}
|
|
196
196
|
*/
|
|
197
|
-
inviteOrg: function (
|
|
198
|
-
return localVarFp.inviteOrg(
|
|
197
|
+
inviteOrg: function (inviteOrgRequestDtoRest, authorization, options) {
|
|
198
|
+
return localVarFp.inviteOrg(inviteOrgRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
199
199
|
},
|
|
200
200
|
};
|
|
201
201
|
};
|
|
@@ -221,7 +221,7 @@ var InviteOrganizationsApi = /** @class */ (function (_super) {
|
|
|
221
221
|
*/
|
|
222
222
|
InviteOrganizationsApi.prototype.inviteOrg = function (requestParameters, options) {
|
|
223
223
|
var _this = this;
|
|
224
|
-
return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.
|
|
224
|
+
return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
225
225
|
};
|
|
226
226
|
return InviteOrganizationsApi;
|
|
227
227
|
}(base_1.BaseAPI));
|