@emilgroup/tenant-sdk 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.
|
|
@@ -234,6 +234,53 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
234
234
|
});
|
|
235
235
|
});
|
|
236
236
|
},
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @param {string} providerDashboardId
|
|
240
|
+
* @param {string} [authorization] Bearer Token
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
getEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
245
|
+
if (options === void 0) { options = {}; }
|
|
246
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
247
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0:
|
|
251
|
+
// verify required parameter 'providerDashboardId' is not null or undefined
|
|
252
|
+
(0, common_1.assertParamExists)('getEmbeddedUrl', 'providerDashboardId', providerDashboardId);
|
|
253
|
+
localVarPath = "/tenantservice/v1/dashboards/{provider_dashboard_id}/embedded-url"
|
|
254
|
+
.replace("{".concat("provider_dashboard_id", "}"), encodeURIComponent(String(providerDashboardId)));
|
|
255
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
256
|
+
if (configuration) {
|
|
257
|
+
baseOptions = configuration.baseOptions;
|
|
258
|
+
baseAccessToken = configuration.accessToken;
|
|
259
|
+
}
|
|
260
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
261
|
+
localVarHeaderParameter = {};
|
|
262
|
+
localVarQueryParameter = {};
|
|
263
|
+
// authentication bearer required
|
|
264
|
+
// http bearer authentication required
|
|
265
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
266
|
+
case 1:
|
|
267
|
+
// authentication bearer required
|
|
268
|
+
// http bearer authentication required
|
|
269
|
+
_a.sent();
|
|
270
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
271
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
272
|
+
}
|
|
273
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
274
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
275
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
276
|
+
return [2 /*return*/, {
|
|
277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
278
|
+
options: localVarRequestOptions,
|
|
279
|
+
}];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
},
|
|
237
284
|
/**
|
|
238
285
|
*
|
|
239
286
|
* @param {string} [authorization] Bearer Token
|
|
@@ -427,6 +474,26 @@ var DashboardApiFp = function (configuration) {
|
|
|
427
474
|
});
|
|
428
475
|
});
|
|
429
476
|
},
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @param {string} providerDashboardId
|
|
480
|
+
* @param {string} [authorization] Bearer Token
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
getEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
486
|
+
var localVarAxiosArgs;
|
|
487
|
+
return __generator(this, function (_a) {
|
|
488
|
+
switch (_a.label) {
|
|
489
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEmbeddedUrl(providerDashboardId, authorization, options)];
|
|
490
|
+
case 1:
|
|
491
|
+
localVarAxiosArgs = _a.sent();
|
|
492
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
},
|
|
430
497
|
/**
|
|
431
498
|
*
|
|
432
499
|
* @param {string} [authorization] Bearer Token
|
|
@@ -514,6 +581,16 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
514
581
|
getDashboard: function (code, authorization, options) {
|
|
515
582
|
return localVarFp.getDashboard(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
516
583
|
},
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @param {string} providerDashboardId
|
|
587
|
+
* @param {string} [authorization] Bearer Token
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
*/
|
|
591
|
+
getEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
592
|
+
return localVarFp.getEmbeddedUrl(providerDashboardId, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
593
|
+
},
|
|
517
594
|
/**
|
|
518
595
|
*
|
|
519
596
|
* @param {string} [authorization] Bearer Token
|
|
@@ -588,6 +665,17 @@ var DashboardApi = /** @class */ (function (_super) {
|
|
|
588
665
|
var _this = this;
|
|
589
666
|
return (0, exports.DashboardApiFp)(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
590
667
|
};
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
|
|
671
|
+
* @param {*} [options] Override http request option.
|
|
672
|
+
* @throws {RequiredError}
|
|
673
|
+
* @memberof DashboardApi
|
|
674
|
+
*/
|
|
675
|
+
DashboardApi.prototype.getEmbeddedUrl = function (requestParameters, options) {
|
|
676
|
+
var _this = this;
|
|
677
|
+
return (0, exports.DashboardApiFp)(this.configuration).getEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
678
|
+
};
|
|
591
679
|
/**
|
|
592
680
|
*
|
|
593
681
|
* @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
|
|
@@ -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
|
|
@@ -141,53 +141,6 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @param {string} id
|
|
147
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
-
* @param {*} [options] Override http request option.
|
|
149
|
-
* @throws {RequiredError}
|
|
150
|
-
*/
|
|
151
|
-
deleteAlert: function (id, authorization, options) {
|
|
152
|
-
if (options === void 0) { options = {}; }
|
|
153
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
154
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
155
|
-
return __generator(this, function (_a) {
|
|
156
|
-
switch (_a.label) {
|
|
157
|
-
case 0:
|
|
158
|
-
// verify required parameter 'id' is not null or undefined
|
|
159
|
-
(0, common_1.assertParamExists)('deleteAlert', 'id', id);
|
|
160
|
-
localVarPath = "/tenantservice/v1/data-reports/{id}"
|
|
161
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
162
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
-
if (configuration) {
|
|
164
|
-
baseOptions = configuration.baseOptions;
|
|
165
|
-
baseAccessToken = configuration.accessToken;
|
|
166
|
-
}
|
|
167
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
168
|
-
localVarHeaderParameter = {};
|
|
169
|
-
localVarQueryParameter = {};
|
|
170
|
-
// authentication bearer required
|
|
171
|
-
// http bearer authentication required
|
|
172
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
173
|
-
case 1:
|
|
174
|
-
// authentication bearer required
|
|
175
|
-
// http bearer authentication required
|
|
176
|
-
_a.sent();
|
|
177
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
178
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
179
|
-
}
|
|
180
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
181
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
182
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
183
|
-
return [2 /*return*/, {
|
|
184
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
185
|
-
options: localVarRequestOptions,
|
|
186
|
-
}];
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
},
|
|
191
144
|
/**
|
|
192
145
|
* 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.
|
|
193
146
|
* @summary Retrieve the data-report
|
|
@@ -396,26 +349,6 @@ var DataReportApiFp = function (configuration) {
|
|
|
396
349
|
});
|
|
397
350
|
});
|
|
398
351
|
},
|
|
399
|
-
/**
|
|
400
|
-
*
|
|
401
|
-
* @param {string} id
|
|
402
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
403
|
-
* @param {*} [options] Override http request option.
|
|
404
|
-
* @throws {RequiredError}
|
|
405
|
-
*/
|
|
406
|
-
deleteAlert: function (id, authorization, options) {
|
|
407
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
408
|
-
var localVarAxiosArgs;
|
|
409
|
-
return __generator(this, function (_a) {
|
|
410
|
-
switch (_a.label) {
|
|
411
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAlert(id, authorization, options)];
|
|
412
|
-
case 1:
|
|
413
|
-
localVarAxiosArgs = _a.sent();
|
|
414
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
});
|
|
418
|
-
},
|
|
419
352
|
/**
|
|
420
353
|
* 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.
|
|
421
354
|
* @summary Retrieve the data-report
|
|
@@ -508,16 +441,6 @@ var DataReportApiFactory = function (configuration, basePath, axios) {
|
|
|
508
441
|
createDataReport: function (createDataReportRequestDto, authorization, options) {
|
|
509
442
|
return localVarFp.createDataReport(createDataReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
510
443
|
},
|
|
511
|
-
/**
|
|
512
|
-
*
|
|
513
|
-
* @param {string} id
|
|
514
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
515
|
-
* @param {*} [options] Override http request option.
|
|
516
|
-
* @throws {RequiredError}
|
|
517
|
-
*/
|
|
518
|
-
deleteAlert: function (id, authorization, options) {
|
|
519
|
-
return localVarFp.deleteAlert(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
520
|
-
},
|
|
521
444
|
/**
|
|
522
445
|
* 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.
|
|
523
446
|
* @summary Retrieve the data-report
|
|
@@ -585,17 +508,6 @@ var DataReportApi = /** @class */ (function (_super) {
|
|
|
585
508
|
var _this = this;
|
|
586
509
|
return (0, exports.DataReportApiFp)(this.configuration).createDataReport(requestParameters.createDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
587
510
|
};
|
|
588
|
-
/**
|
|
589
|
-
*
|
|
590
|
-
* @param {DataReportApiDeleteAlertRequest} requestParameters Request parameters.
|
|
591
|
-
* @param {*} [options] Override http request option.
|
|
592
|
-
* @throws {RequiredError}
|
|
593
|
-
* @memberof DataReportApi
|
|
594
|
-
*/
|
|
595
|
-
DataReportApi.prototype.deleteAlert = function (requestParameters, options) {
|
|
596
|
-
var _this = this;
|
|
597
|
-
return (0, exports.DataReportApiFp)(this.configuration).deleteAlert(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
598
|
-
};
|
|
599
511
|
/**
|
|
600
512
|
* 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.
|
|
601
513
|
* @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}
|
|
@@ -95,20 +95,20 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* This sends an email to invite an organization.
|
|
97
97
|
* @summary Invite an organization
|
|
98
|
-
* @param {
|
|
98
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
99
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
inviteOrg: function (
|
|
103
|
+
inviteOrg: function (inviteOrgRequestDtoRest, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
110
|
-
// verify required parameter '
|
|
111
|
-
(0, common_1.assertParamExists)('inviteOrg', '
|
|
110
|
+
// verify required parameter 'inviteOrgRequestDtoRest' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest);
|
|
112
112
|
localVarPath = "/tenantservice/v1/invitations/organizations";
|
|
113
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
114
|
if (configuration) {
|
|
@@ -132,7 +132,7 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
132
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
134
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteOrgRequestDtoRest, localVarRequestOptions, configuration);
|
|
136
136
|
return [2 /*return*/, {
|
|
137
137
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
138
|
options: localVarRequestOptions,
|
|
@@ -154,17 +154,17 @@ var InviteOrganizationsApiFp = function (configuration) {
|
|
|
154
154
|
/**
|
|
155
155
|
* This sends an email to invite an organization.
|
|
156
156
|
* @summary Invite an organization
|
|
157
|
-
* @param {
|
|
157
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
158
158
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
159
159
|
* @param {*} [options] Override http request option.
|
|
160
160
|
* @throws {RequiredError}
|
|
161
161
|
*/
|
|
162
|
-
inviteOrg: function (
|
|
162
|
+
inviteOrg: function (inviteOrgRequestDtoRest, authorization, options) {
|
|
163
163
|
return __awaiter(this, void 0, void 0, function () {
|
|
164
164
|
var localVarAxiosArgs;
|
|
165
165
|
return __generator(this, function (_a) {
|
|
166
166
|
switch (_a.label) {
|
|
167
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(
|
|
167
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDtoRest, authorization, options)];
|
|
168
168
|
case 1:
|
|
169
169
|
localVarAxiosArgs = _a.sent();
|
|
170
170
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -185,13 +185,13 @@ var InviteOrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
185
185
|
/**
|
|
186
186
|
* This sends an email to invite an organization.
|
|
187
187
|
* @summary Invite an organization
|
|
188
|
-
* @param {
|
|
188
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
189
189
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
190
190
|
* @param {*} [options] Override http request option.
|
|
191
191
|
* @throws {RequiredError}
|
|
192
192
|
*/
|
|
193
|
-
inviteOrg: function (
|
|
194
|
-
return localVarFp.inviteOrg(
|
|
193
|
+
inviteOrg: function (inviteOrgRequestDtoRest, authorization, options) {
|
|
194
|
+
return localVarFp.inviteOrg(inviteOrgRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
195
195
|
},
|
|
196
196
|
};
|
|
197
197
|
};
|
|
@@ -217,7 +217,7 @@ var InviteOrganizationsApi = /** @class */ (function (_super) {
|
|
|
217
217
|
*/
|
|
218
218
|
InviteOrganizationsApi.prototype.inviteOrg = function (requestParameters, options) {
|
|
219
219
|
var _this = this;
|
|
220
|
-
return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.
|
|
220
|
+
return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
221
221
|
};
|
|
222
222
|
return InviteOrganizationsApi;
|
|
223
223
|
}(base_1.BaseAPI));
|