@emilgroup/tenant-sdk 1.22.0 → 1.22.1-beta.1
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 +42 -145
- 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 +30 -86
- package/dist/api/invite-users-api.js +33 -125
- 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
package/.openapi-generator/FILES
CHANGED
|
@@ -23,8 +23,6 @@ common.ts
|
|
|
23
23
|
configuration.ts
|
|
24
24
|
git_push.sh
|
|
25
25
|
index.ts
|
|
26
|
-
models/assign-user-roles-request-dto.ts
|
|
27
|
-
models/assign-user-roles-response-class.ts
|
|
28
26
|
models/batch-delete-request-dto.ts
|
|
29
27
|
models/batch-delete-response-class.ts
|
|
30
28
|
models/create-custom-schema-request-dto.ts
|
|
@@ -35,8 +33,7 @@ models/create-dashboard-request-dto.ts
|
|
|
35
33
|
models/create-dashboard-response-class.ts
|
|
36
34
|
models/create-data-report-request-dto.ts
|
|
37
35
|
models/create-data-report-response-class.ts
|
|
38
|
-
models/create-
|
|
39
|
-
models/create-role-request-dto.ts
|
|
36
|
+
models/create-tenant-db-config-request-dto.ts
|
|
40
37
|
models/create-tenant-request-dto.ts
|
|
41
38
|
models/custom-field-dto.ts
|
|
42
39
|
models/custom-schema-class.ts
|
|
@@ -49,10 +46,8 @@ models/data-report-filter-single-value-dto.ts
|
|
|
49
46
|
models/data-report-filter-value-dto.ts
|
|
50
47
|
models/dbconfig-dto.ts
|
|
51
48
|
models/delete-response-class.ts
|
|
52
|
-
models/disable-user-response-class.ts
|
|
53
49
|
models/disable-users-request-dto.ts
|
|
54
50
|
models/disable-users-response-class.ts
|
|
55
|
-
models/enable-user-response-class.ts
|
|
56
51
|
models/enable-users-request-dto.ts
|
|
57
52
|
models/enable-users-response-class.ts
|
|
58
53
|
models/format-tenant-settings-class.ts
|
|
@@ -60,6 +55,7 @@ models/get-custom-schema-response-class.ts
|
|
|
60
55
|
models/get-dashboard-group-response-class.ts
|
|
61
56
|
models/get-dashboard-response-class.ts
|
|
62
57
|
models/get-data-report-response-class.ts
|
|
58
|
+
models/get-embedded-url-response-class.ts
|
|
63
59
|
models/get-organization-response-class.ts
|
|
64
60
|
models/get-settings-response-class.ts
|
|
65
61
|
models/get-user-response-class.ts
|
|
@@ -68,10 +64,10 @@ models/initial-tenant-config-class.ts
|
|
|
68
64
|
models/inline-response200.ts
|
|
69
65
|
models/inline-response503.ts
|
|
70
66
|
models/invite-class.ts
|
|
71
|
-
models/invite-org-request-dto.ts
|
|
72
|
-
models/invite-user-request-dto.ts
|
|
67
|
+
models/invite-org-request-dto-rest.ts
|
|
68
|
+
models/invite-user-request-dto-rest.ts
|
|
73
69
|
models/invite-user-response-class.ts
|
|
74
|
-
models/invite-users-request-dto.ts
|
|
70
|
+
models/invite-users-request-dto-rest.ts
|
|
75
71
|
models/invite-users-response-class.ts
|
|
76
72
|
models/link-user-with-partner-request-dto-rest.ts
|
|
77
73
|
models/link-user-with-partner-response-class.ts
|
|
@@ -87,7 +83,6 @@ models/list-users-response-class.ts
|
|
|
87
83
|
models/org-invitation-class.ts
|
|
88
84
|
models/org-invitation-response-class.ts
|
|
89
85
|
models/organization-class.ts
|
|
90
|
-
models/partner-invitation-data-dto.ts
|
|
91
86
|
models/permission-class.ts
|
|
92
87
|
models/re-invite-org-request-dto.ts
|
|
93
88
|
models/role-class.ts
|
|
@@ -107,7 +102,6 @@ models/update-data-report-request-dto.ts
|
|
|
107
102
|
models/update-data-report-response-class.ts
|
|
108
103
|
models/update-organization-request-dto-rest.ts
|
|
109
104
|
models/update-organization-response-class.ts
|
|
110
|
-
models/update-role-request-dto.ts
|
|
111
105
|
models/user-class.ts
|
|
112
106
|
package.json
|
|
113
107
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/tenant-sdk@1.22.
|
|
20
|
+
npm install @emilgroup/tenant-sdk@1.22.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.22.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.22.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
package/api/dashboard-api.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { DeleteResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetDashboardResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { GetEmbeddedUrlResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
32
34
|
import { ListDashboardsResponseClass } from '../models';
|
|
33
35
|
// @ts-ignore
|
|
34
36
|
import { UpdateDashboardRequestDto } from '../models';
|
|
@@ -165,6 +167,50 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
165
167
|
|
|
166
168
|
|
|
167
169
|
|
|
170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
173
|
+
|
|
174
|
+
return {
|
|
175
|
+
url: toPathString(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @param {string} providerDashboardId
|
|
182
|
+
* @param {string} [authorization] Bearer Token
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
getEmbeddedUrl: async (providerDashboardId: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
187
|
+
// verify required parameter 'providerDashboardId' is not null or undefined
|
|
188
|
+
assertParamExists('getEmbeddedUrl', 'providerDashboardId', providerDashboardId)
|
|
189
|
+
const localVarPath = `/tenantservice/v1/dashboards/{provider_dashboard_id}/embedded-url`
|
|
190
|
+
.replace(`{${"provider_dashboard_id"}}`, encodeURIComponent(String(providerDashboardId)));
|
|
191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
193
|
+
let baseOptions;
|
|
194
|
+
let baseAccessToken;
|
|
195
|
+
if (configuration) {
|
|
196
|
+
baseOptions = configuration.baseOptions;
|
|
197
|
+
baseAccessToken = configuration.accessToken;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
201
|
+
const localVarHeaderParameter = {} as any;
|
|
202
|
+
const localVarQueryParameter = {} as any;
|
|
203
|
+
|
|
204
|
+
// authentication bearer required
|
|
205
|
+
// http bearer authentication required
|
|
206
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
207
|
+
|
|
208
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
209
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
168
214
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
169
215
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
216
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -342,6 +388,17 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
342
388
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboard(code, authorization, options);
|
|
343
389
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
344
390
|
},
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @param {string} providerDashboardId
|
|
394
|
+
* @param {string} [authorization] Bearer Token
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
async getEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmbeddedUrlResponseClass>> {
|
|
399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedUrl(providerDashboardId, authorization, options);
|
|
400
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
401
|
+
},
|
|
345
402
|
/**
|
|
346
403
|
*
|
|
347
404
|
* @param {string} [authorization] Bearer Token
|
|
@@ -411,6 +468,16 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
411
468
|
getDashboard(code: string, authorization?: string, options?: any): AxiosPromise<GetDashboardResponseClass> {
|
|
412
469
|
return localVarFp.getDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
413
470
|
},
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* @param {string} providerDashboardId
|
|
474
|
+
* @param {string} [authorization] Bearer Token
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
getEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: any): AxiosPromise<GetEmbeddedUrlResponseClass> {
|
|
479
|
+
return localVarFp.getEmbeddedUrl(providerDashboardId, authorization, options).then((request) => request(axios, basePath));
|
|
480
|
+
},
|
|
414
481
|
/**
|
|
415
482
|
*
|
|
416
483
|
* @param {string} [authorization] Bearer Token
|
|
@@ -504,6 +571,27 @@ export interface DashboardApiGetDashboardRequest {
|
|
|
504
571
|
readonly authorization?: string
|
|
505
572
|
}
|
|
506
573
|
|
|
574
|
+
/**
|
|
575
|
+
* Request parameters for getEmbeddedUrl operation in DashboardApi.
|
|
576
|
+
* @export
|
|
577
|
+
* @interface DashboardApiGetEmbeddedUrlRequest
|
|
578
|
+
*/
|
|
579
|
+
export interface DashboardApiGetEmbeddedUrlRequest {
|
|
580
|
+
/**
|
|
581
|
+
*
|
|
582
|
+
* @type {string}
|
|
583
|
+
* @memberof DashboardApiGetEmbeddedUrl
|
|
584
|
+
*/
|
|
585
|
+
readonly providerDashboardId: string
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Bearer Token
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof DashboardApiGetEmbeddedUrl
|
|
591
|
+
*/
|
|
592
|
+
readonly authorization?: string
|
|
593
|
+
}
|
|
594
|
+
|
|
507
595
|
/**
|
|
508
596
|
* Request parameters for listDashboards operation in DashboardApi.
|
|
509
597
|
* @export
|
|
@@ -635,6 +723,17 @@ export class DashboardApi extends BaseAPI {
|
|
|
635
723
|
return DashboardApiFp(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
636
724
|
}
|
|
637
725
|
|
|
726
|
+
/**
|
|
727
|
+
*
|
|
728
|
+
* @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
|
|
729
|
+
* @param {*} [options] Override http request option.
|
|
730
|
+
* @throws {RequiredError}
|
|
731
|
+
* @memberof DashboardApi
|
|
732
|
+
*/
|
|
733
|
+
public getEmbeddedUrl(requestParameters: DashboardApiGetEmbeddedUrlRequest, options?: AxiosRequestConfig) {
|
|
734
|
+
return DashboardApiFp(this.configuration).getEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
735
|
+
}
|
|
736
|
+
|
|
638
737
|
/**
|
|
639
738
|
*
|
|
640
739
|
* @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
|
package/api/data-report-api.ts
CHANGED
|
@@ -85,50 +85,6 @@ export const DataReportApiAxiosParamCreator = function (configuration?: Configur
|
|
|
85
85
|
options: localVarRequestOptions,
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @param {string} id
|
|
91
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
*/
|
|
95
|
-
deleteAlert: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
96
|
-
// verify required parameter 'id' is not null or undefined
|
|
97
|
-
assertParamExists('deleteAlert', 'id', id)
|
|
98
|
-
const localVarPath = `/tenantservice/v1/data-reports/{id}`
|
|
99
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
100
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
102
|
-
let baseOptions;
|
|
103
|
-
let baseAccessToken;
|
|
104
|
-
if (configuration) {
|
|
105
|
-
baseOptions = configuration.baseOptions;
|
|
106
|
-
baseAccessToken = configuration.accessToken;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
110
|
-
const localVarHeaderParameter = {} as any;
|
|
111
|
-
const localVarQueryParameter = {} as any;
|
|
112
|
-
|
|
113
|
-
// authentication bearer required
|
|
114
|
-
// http bearer authentication required
|
|
115
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
116
|
-
|
|
117
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
118
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
126
|
-
|
|
127
|
-
return {
|
|
128
|
-
url: toPathString(localVarUrlObj),
|
|
129
|
-
options: localVarRequestOptions,
|
|
130
|
-
};
|
|
131
|
-
},
|
|
132
88
|
/**
|
|
133
89
|
* 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.
|
|
134
90
|
* @summary Retrieve the data-report
|
|
@@ -328,17 +284,6 @@ export const DataReportApiFp = function(configuration?: Configuration) {
|
|
|
328
284
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDataReport(createDataReportRequestDto, authorization, options);
|
|
329
285
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
330
286
|
},
|
|
331
|
-
/**
|
|
332
|
-
*
|
|
333
|
-
* @param {string} id
|
|
334
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
335
|
-
* @param {*} [options] Override http request option.
|
|
336
|
-
* @throws {RequiredError}
|
|
337
|
-
*/
|
|
338
|
-
async deleteAlert(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
339
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlert(id, authorization, options);
|
|
340
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
341
|
-
},
|
|
342
287
|
/**
|
|
343
288
|
* 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.
|
|
344
289
|
* @summary Retrieve the data-report
|
|
@@ -404,16 +349,6 @@ export const DataReportApiFactory = function (configuration?: Configuration, bas
|
|
|
404
349
|
createDataReport(createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDataReportResponseClass> {
|
|
405
350
|
return localVarFp.createDataReport(createDataReportRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
406
351
|
},
|
|
407
|
-
/**
|
|
408
|
-
*
|
|
409
|
-
* @param {string} id
|
|
410
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
411
|
-
* @param {*} [options] Override http request option.
|
|
412
|
-
* @throws {RequiredError}
|
|
413
|
-
*/
|
|
414
|
-
deleteAlert(id: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
415
|
-
return localVarFp.deleteAlert(id, authorization, options).then((request) => request(axios, basePath));
|
|
416
|
-
},
|
|
417
352
|
/**
|
|
418
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.
|
|
419
354
|
* @summary Retrieve the data-report
|
|
@@ -479,27 +414,6 @@ export interface DataReportApiCreateDataReportRequest {
|
|
|
479
414
|
readonly authorization?: string
|
|
480
415
|
}
|
|
481
416
|
|
|
482
|
-
/**
|
|
483
|
-
* Request parameters for deleteAlert operation in DataReportApi.
|
|
484
|
-
* @export
|
|
485
|
-
* @interface DataReportApiDeleteAlertRequest
|
|
486
|
-
*/
|
|
487
|
-
export interface DataReportApiDeleteAlertRequest {
|
|
488
|
-
/**
|
|
489
|
-
*
|
|
490
|
-
* @type {string}
|
|
491
|
-
* @memberof DataReportApiDeleteAlert
|
|
492
|
-
*/
|
|
493
|
-
readonly id: string
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
497
|
-
* @type {string}
|
|
498
|
-
* @memberof DataReportApiDeleteAlert
|
|
499
|
-
*/
|
|
500
|
-
readonly authorization?: string
|
|
501
|
-
}
|
|
502
|
-
|
|
503
417
|
/**
|
|
504
418
|
* Request parameters for getDataReport operation in DataReportApi.
|
|
505
419
|
* @export
|
|
@@ -638,17 +552,6 @@ export class DataReportApi extends BaseAPI {
|
|
|
638
552
|
return DataReportApiFp(this.configuration).createDataReport(requestParameters.createDataReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
639
553
|
}
|
|
640
554
|
|
|
641
|
-
/**
|
|
642
|
-
*
|
|
643
|
-
* @param {DataReportApiDeleteAlertRequest} requestParameters Request parameters.
|
|
644
|
-
* @param {*} [options] Override http request option.
|
|
645
|
-
* @throws {RequiredError}
|
|
646
|
-
* @memberof DataReportApi
|
|
647
|
-
*/
|
|
648
|
-
public deleteAlert(requestParameters: DataReportApiDeleteAlertRequest, options?: AxiosRequestConfig) {
|
|
649
|
-
return DataReportApiFp(this.configuration).deleteAlert(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
650
|
-
}
|
|
651
|
-
|
|
652
555
|
/**
|
|
653
556
|
* 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.
|
|
654
557
|
* @summary Retrieve the data-report
|
|
@@ -21,7 +21,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import {
|
|
24
|
+
import { InviteOrgRequestDtoRest } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { OrgInvitationResponseClass } from '../models';
|
|
27
27
|
/**
|
|
@@ -33,14 +33,14 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
33
33
|
/**
|
|
34
34
|
* This sends an email to invite an organization.
|
|
35
35
|
* @summary Invite an organization
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
37
37
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
inviteOrg: async (
|
|
42
|
-
// verify required parameter '
|
|
43
|
-
assertParamExists('inviteOrg', '
|
|
41
|
+
inviteOrg: async (inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'inviteOrgRequestDtoRest' is not null or undefined
|
|
43
|
+
assertParamExists('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest)
|
|
44
44
|
const localVarPath = `/tenantservice/v1/invitations/organizations`;
|
|
45
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
46
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -70,7 +70,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
70
70
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
71
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
72
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDtoRest, localVarRequestOptions, configuration)
|
|
74
74
|
|
|
75
75
|
return {
|
|
76
76
|
url: toPathString(localVarUrlObj),
|
|
@@ -90,13 +90,13 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
|
|
|
90
90
|
/**
|
|
91
91
|
* This sends an email to invite an organization.
|
|
92
92
|
* @summary Invite an organization
|
|
93
|
-
* @param {
|
|
93
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
94
94
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
95
|
* @param {*} [options] Override http request option.
|
|
96
96
|
* @throws {RequiredError}
|
|
97
97
|
*/
|
|
98
|
-
async inviteOrg(
|
|
99
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(
|
|
98
|
+
async inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
|
|
99
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDtoRest, authorization, options);
|
|
100
100
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
101
101
|
},
|
|
102
102
|
}
|
|
@@ -112,13 +112,13 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
112
112
|
/**
|
|
113
113
|
* This sends an email to invite an organization.
|
|
114
114
|
* @summary Invite an organization
|
|
115
|
-
* @param {
|
|
115
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
116
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
119
|
*/
|
|
120
|
-
inviteOrg(
|
|
121
|
-
return localVarFp.inviteOrg(
|
|
120
|
+
inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
|
|
121
|
+
return localVarFp.inviteOrg(inviteOrgRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
122
122
|
},
|
|
123
123
|
};
|
|
124
124
|
};
|
|
@@ -131,10 +131,10 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
131
131
|
export interface InviteOrganizationsApiInviteOrgRequest {
|
|
132
132
|
/**
|
|
133
133
|
*
|
|
134
|
-
* @type {
|
|
134
|
+
* @type {InviteOrgRequestDtoRest}
|
|
135
135
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
136
136
|
*/
|
|
137
|
-
readonly
|
|
137
|
+
readonly inviteOrgRequestDtoRest: InviteOrgRequestDtoRest
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -160,6 +160,6 @@ export class InviteOrganizationsApi extends BaseAPI {
|
|
|
160
160
|
* @memberof InviteOrganizationsApi
|
|
161
161
|
*/
|
|
162
162
|
public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
|
|
163
|
-
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.
|
|
163
|
+
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
164
164
|
}
|
|
165
165
|
}
|