@emilgroup/tenant-sdk-node 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-node@1.22.
|
|
20
|
+
npm install @emilgroup/tenant-sdk-node@1.22.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk-node@1.22.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk-node@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';
|
|
@@ -169,6 +171,50 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
169
171
|
|
|
170
172
|
|
|
171
173
|
|
|
174
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
177
|
+
|
|
178
|
+
return {
|
|
179
|
+
url: toPathString(localVarUrlObj),
|
|
180
|
+
options: localVarRequestOptions,
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @param {string} providerDashboardId
|
|
186
|
+
* @param {string} [authorization] Bearer Token
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
getEmbeddedUrl: async (providerDashboardId: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
191
|
+
// verify required parameter 'providerDashboardId' is not null or undefined
|
|
192
|
+
assertParamExists('getEmbeddedUrl', 'providerDashboardId', providerDashboardId)
|
|
193
|
+
const localVarPath = `/tenantservice/v1/dashboards/{provider_dashboard_id}/embedded-url`
|
|
194
|
+
.replace(`{${"provider_dashboard_id"}}`, encodeURIComponent(String(providerDashboardId)));
|
|
195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
197
|
+
let baseOptions;
|
|
198
|
+
let baseAccessToken;
|
|
199
|
+
if (configuration) {
|
|
200
|
+
baseOptions = configuration.baseOptions;
|
|
201
|
+
baseAccessToken = configuration.accessToken;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
205
|
+
const localVarHeaderParameter = {} as any;
|
|
206
|
+
const localVarQueryParameter = {} as any;
|
|
207
|
+
|
|
208
|
+
// authentication bearer required
|
|
209
|
+
// http bearer authentication required
|
|
210
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
211
|
+
|
|
212
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
213
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
172
218
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
173
219
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
220
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -346,6 +392,17 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
346
392
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboard(code, authorization, options);
|
|
347
393
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
348
394
|
},
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @param {string} providerDashboardId
|
|
398
|
+
* @param {string} [authorization] Bearer Token
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
async getEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmbeddedUrlResponseClass>> {
|
|
403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedUrl(providerDashboardId, authorization, options);
|
|
404
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
405
|
+
},
|
|
349
406
|
/**
|
|
350
407
|
*
|
|
351
408
|
* @param {string} [authorization] Bearer Token
|
|
@@ -415,6 +472,16 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
415
472
|
getDashboard(code: string, authorization?: string, options?: any): AxiosPromise<GetDashboardResponseClass> {
|
|
416
473
|
return localVarFp.getDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
417
474
|
},
|
|
475
|
+
/**
|
|
476
|
+
*
|
|
477
|
+
* @param {string} providerDashboardId
|
|
478
|
+
* @param {string} [authorization] Bearer Token
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
getEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: any): AxiosPromise<GetEmbeddedUrlResponseClass> {
|
|
483
|
+
return localVarFp.getEmbeddedUrl(providerDashboardId, authorization, options).then((request) => request(axios, basePath));
|
|
484
|
+
},
|
|
418
485
|
/**
|
|
419
486
|
*
|
|
420
487
|
* @param {string} [authorization] Bearer Token
|
|
@@ -508,6 +575,27 @@ export interface DashboardApiGetDashboardRequest {
|
|
|
508
575
|
readonly authorization?: string
|
|
509
576
|
}
|
|
510
577
|
|
|
578
|
+
/**
|
|
579
|
+
* Request parameters for getEmbeddedUrl operation in DashboardApi.
|
|
580
|
+
* @export
|
|
581
|
+
* @interface DashboardApiGetEmbeddedUrlRequest
|
|
582
|
+
*/
|
|
583
|
+
export interface DashboardApiGetEmbeddedUrlRequest {
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof DashboardApiGetEmbeddedUrl
|
|
588
|
+
*/
|
|
589
|
+
readonly providerDashboardId: string
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Bearer Token
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof DashboardApiGetEmbeddedUrl
|
|
595
|
+
*/
|
|
596
|
+
readonly authorization?: string
|
|
597
|
+
}
|
|
598
|
+
|
|
511
599
|
/**
|
|
512
600
|
* Request parameters for listDashboards operation in DashboardApi.
|
|
513
601
|
* @export
|
|
@@ -639,6 +727,17 @@ export class DashboardApi extends BaseAPI {
|
|
|
639
727
|
return DashboardApiFp(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
640
728
|
}
|
|
641
729
|
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
* @memberof DashboardApi
|
|
736
|
+
*/
|
|
737
|
+
public getEmbeddedUrl(requestParameters: DashboardApiGetEmbeddedUrlRequest, options?: AxiosRequestConfig) {
|
|
738
|
+
return DashboardApiFp(this.configuration).getEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
739
|
+
}
|
|
740
|
+
|
|
642
741
|
/**
|
|
643
742
|
*
|
|
644
743
|
* @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
|
package/api/data-report-api.ts
CHANGED
|
@@ -89,50 +89,6 @@ export const DataReportApiAxiosParamCreator = function (configuration?: Configur
|
|
|
89
89
|
options: localVarRequestOptions,
|
|
90
90
|
};
|
|
91
91
|
},
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @param {string} id
|
|
95
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
96
|
-
* @param {*} [options] Override http request option.
|
|
97
|
-
* @throws {RequiredError}
|
|
98
|
-
*/
|
|
99
|
-
deleteAlert: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
|
-
// verify required parameter 'id' is not null or undefined
|
|
101
|
-
assertParamExists('deleteAlert', 'id', id)
|
|
102
|
-
const localVarPath = `/tenantservice/v1/data-reports/{id}`
|
|
103
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
104
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
-
let baseOptions;
|
|
107
|
-
let baseAccessToken;
|
|
108
|
-
if (configuration) {
|
|
109
|
-
baseOptions = configuration.baseOptions;
|
|
110
|
-
baseAccessToken = configuration.accessToken;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
114
|
-
const localVarHeaderParameter = {} as any;
|
|
115
|
-
const localVarQueryParameter = {} as any;
|
|
116
|
-
|
|
117
|
-
// authentication bearer required
|
|
118
|
-
// http bearer authentication required
|
|
119
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
|
-
|
|
121
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
130
|
-
|
|
131
|
-
return {
|
|
132
|
-
url: toPathString(localVarUrlObj),
|
|
133
|
-
options: localVarRequestOptions,
|
|
134
|
-
};
|
|
135
|
-
},
|
|
136
92
|
/**
|
|
137
93
|
* 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.
|
|
138
94
|
* @summary Retrieve the data-report
|
|
@@ -332,17 +288,6 @@ export const DataReportApiFp = function(configuration?: Configuration) {
|
|
|
332
288
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDataReport(createDataReportRequestDto, authorization, options);
|
|
333
289
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
334
290
|
},
|
|
335
|
-
/**
|
|
336
|
-
*
|
|
337
|
-
* @param {string} id
|
|
338
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
339
|
-
* @param {*} [options] Override http request option.
|
|
340
|
-
* @throws {RequiredError}
|
|
341
|
-
*/
|
|
342
|
-
async deleteAlert(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
343
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlert(id, authorization, options);
|
|
344
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
|
-
},
|
|
346
291
|
/**
|
|
347
292
|
* 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.
|
|
348
293
|
* @summary Retrieve the data-report
|
|
@@ -408,16 +353,6 @@ export const DataReportApiFactory = function (configuration?: Configuration, bas
|
|
|
408
353
|
createDataReport(createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDataReportResponseClass> {
|
|
409
354
|
return localVarFp.createDataReport(createDataReportRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
410
355
|
},
|
|
411
|
-
/**
|
|
412
|
-
*
|
|
413
|
-
* @param {string} id
|
|
414
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
415
|
-
* @param {*} [options] Override http request option.
|
|
416
|
-
* @throws {RequiredError}
|
|
417
|
-
*/
|
|
418
|
-
deleteAlert(id: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
419
|
-
return localVarFp.deleteAlert(id, authorization, options).then((request) => request(axios, basePath));
|
|
420
|
-
},
|
|
421
356
|
/**
|
|
422
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.
|
|
423
358
|
* @summary Retrieve the data-report
|
|
@@ -483,27 +418,6 @@ export interface DataReportApiCreateDataReportRequest {
|
|
|
483
418
|
readonly authorization?: string
|
|
484
419
|
}
|
|
485
420
|
|
|
486
|
-
/**
|
|
487
|
-
* Request parameters for deleteAlert operation in DataReportApi.
|
|
488
|
-
* @export
|
|
489
|
-
* @interface DataReportApiDeleteAlertRequest
|
|
490
|
-
*/
|
|
491
|
-
export interface DataReportApiDeleteAlertRequest {
|
|
492
|
-
/**
|
|
493
|
-
*
|
|
494
|
-
* @type {string}
|
|
495
|
-
* @memberof DataReportApiDeleteAlert
|
|
496
|
-
*/
|
|
497
|
-
readonly id: string
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
501
|
-
* @type {string}
|
|
502
|
-
* @memberof DataReportApiDeleteAlert
|
|
503
|
-
*/
|
|
504
|
-
readonly authorization?: string
|
|
505
|
-
}
|
|
506
|
-
|
|
507
421
|
/**
|
|
508
422
|
* Request parameters for getDataReport operation in DataReportApi.
|
|
509
423
|
* @export
|
|
@@ -642,17 +556,6 @@ export class DataReportApi extends BaseAPI {
|
|
|
642
556
|
return DataReportApiFp(this.configuration).createDataReport(requestParameters.createDataReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
643
557
|
}
|
|
644
558
|
|
|
645
|
-
/**
|
|
646
|
-
*
|
|
647
|
-
* @param {DataReportApiDeleteAlertRequest} requestParameters Request parameters.
|
|
648
|
-
* @param {*} [options] Override http request option.
|
|
649
|
-
* @throws {RequiredError}
|
|
650
|
-
* @memberof DataReportApi
|
|
651
|
-
*/
|
|
652
|
-
public deleteAlert(requestParameters: DataReportApiDeleteAlertRequest, options?: AxiosRequestConfig) {
|
|
653
|
-
return DataReportApiFp(this.configuration).deleteAlert(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
654
|
-
}
|
|
655
|
-
|
|
656
559
|
/**
|
|
657
560
|
* 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.
|
|
658
561
|
* @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
|
// URLSearchParams not necessarily used
|
|
@@ -37,14 +37,14 @@ export const InviteOrganizationsApiAxiosParamCreator = function (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: async (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('inviteOrg', '
|
|
45
|
+
inviteOrg: async (inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'inviteOrgRequestDtoRest' is not null or undefined
|
|
47
|
+
assertParamExists('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest)
|
|
48
48
|
const localVarPath = `/tenantservice/v1/invitations/organizations`;
|
|
49
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
50
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -74,7 +74,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
74
74
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
75
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
76
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDtoRest, localVarRequestOptions, configuration)
|
|
78
78
|
|
|
79
79
|
return {
|
|
80
80
|
url: toPathString(localVarUrlObj),
|
|
@@ -94,13 +94,13 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
|
|
|
94
94
|
/**
|
|
95
95
|
* This sends an email to invite an organization.
|
|
96
96
|
* @summary Invite an organization
|
|
97
|
-
* @param {
|
|
97
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
98
98
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
99
|
* @param {*} [options] Override http request option.
|
|
100
100
|
* @throws {RequiredError}
|
|
101
101
|
*/
|
|
102
|
-
async inviteOrg(
|
|
103
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(
|
|
102
|
+
async inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
|
|
103
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDtoRest, authorization, options);
|
|
104
104
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
105
105
|
},
|
|
106
106
|
}
|
|
@@ -116,13 +116,13 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
116
116
|
/**
|
|
117
117
|
* This sends an email to invite an organization.
|
|
118
118
|
* @summary Invite an organization
|
|
119
|
-
* @param {
|
|
119
|
+
* @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
120
120
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
121
121
|
* @param {*} [options] Override http request option.
|
|
122
122
|
* @throws {RequiredError}
|
|
123
123
|
*/
|
|
124
|
-
inviteOrg(
|
|
125
|
-
return localVarFp.inviteOrg(
|
|
124
|
+
inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
|
|
125
|
+
return localVarFp.inviteOrg(inviteOrgRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
126
126
|
},
|
|
127
127
|
};
|
|
128
128
|
};
|
|
@@ -135,10 +135,10 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
135
135
|
export interface InviteOrganizationsApiInviteOrgRequest {
|
|
136
136
|
/**
|
|
137
137
|
*
|
|
138
|
-
* @type {
|
|
138
|
+
* @type {InviteOrgRequestDtoRest}
|
|
139
139
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
140
140
|
*/
|
|
141
|
-
readonly
|
|
141
|
+
readonly inviteOrgRequestDtoRest: InviteOrgRequestDtoRest
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -164,6 +164,6 @@ export class InviteOrganizationsApi extends BaseAPI {
|
|
|
164
164
|
* @memberof InviteOrganizationsApi
|
|
165
165
|
*/
|
|
166
166
|
public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
|
|
167
|
-
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.
|
|
167
|
+
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
168
168
|
}
|
|
169
169
|
}
|