@emilgroup/tenant-sdk 1.3.0 → 1.5.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 +18 -0
- package/README.md +2 -2
- package/api/data-report-api.ts +677 -0
- package/api/data-report-executor-api.ts +165 -0
- package/api/roles-api.ts +236 -0
- package/api/settings-api.ts +168 -0
- package/api.ts +8 -0
- package/dist/api/data-report-api.d.ts +380 -0
- package/dist/api/data-report-api.js +636 -0
- package/dist/api/data-report-executor-api.d.ts +93 -0
- package/dist/api/data-report-executor-api.js +224 -0
- package/dist/api/roles-api.d.ts +141 -0
- package/dist/api/roles-api.js +258 -0
- package/dist/api/settings-api.d.ts +96 -0
- package/dist/api/settings-api.js +229 -0
- package/dist/api.d.ts +4 -0
- package/dist/api.js +4 -0
- package/dist/models/create-data-report-request-dto.d.ts +61 -0
- package/dist/models/create-data-report-request-dto.js +15 -0
- package/dist/models/create-data-report-response-class.d.ts +25 -0
- package/dist/models/create-data-report-response-class.js +15 -0
- package/dist/models/data-report-class.d.ts +79 -0
- package/dist/models/data-report-class.js +15 -0
- package/dist/models/data-report-filter-class.d.ts +72 -0
- package/dist/models/data-report-filter-class.js +15 -0
- package/dist/models/data-report-filter-dto.d.ts +48 -0
- package/dist/models/data-report-filter-dto.js +15 -0
- package/dist/models/data-report-filter-single-value-dto.d.ts +42 -0
- package/dist/models/data-report-filter-single-value-dto.js +15 -0
- package/dist/models/data-report-filter-value-dto.d.ts +31 -0
- package/dist/models/data-report-filter-value-dto.js +15 -0
- package/dist/models/get-data-report-response-class.d.ts +25 -0
- package/dist/models/get-data-report-response-class.js +15 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/dist/models/list-data-reports-response-class.d.ts +31 -0
- package/dist/models/list-data-reports-response-class.js +15 -0
- package/dist/models/list-roles-response-class.d.ts +31 -0
- package/dist/models/list-roles-response-class.js +15 -0
- package/dist/models/run-data-report-request-dto.d.ts +31 -0
- package/dist/models/run-data-report-request-dto.js +15 -0
- package/dist/models/run-data-report-response-class.d.ts +24 -0
- package/dist/models/run-data-report-response-class.js +15 -0
- package/dist/models/update-data-report-request-dto.d.ts +61 -0
- package/dist/models/update-data-report-request-dto.js +15 -0
- package/dist/models/update-data-report-response-class.d.ts +25 -0
- package/dist/models/update-data-report-response-class.js +15 -0
- package/models/create-data-report-request-dto.ts +67 -0
- package/models/create-data-report-response-class.ts +31 -0
- package/models/data-report-class.ts +85 -0
- package/models/data-report-filter-class.ts +78 -0
- package/models/data-report-filter-dto.ts +54 -0
- package/models/data-report-filter-single-value-dto.ts +48 -0
- package/models/data-report-filter-value-dto.ts +37 -0
- package/models/get-data-report-response-class.ts +31 -0
- package/models/index.ts +14 -0
- package/models/list-data-reports-response-class.ts +37 -0
- package/models/list-roles-response-class.ts +37 -0
- package/models/run-data-report-request-dto.ts +37 -0
- package/models/run-data-report-response-class.ts +30 -0
- package/models/update-data-report-request-dto.ts +67 -0
- package/models/update-data-report-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { RunDataReportRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { RunDataReportResponseClass } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* DataReportExecutorApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const DataReportExecutorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
40
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
runDataReport: async (runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
// verify required parameter 'runDataReportRequestDto' is not null or undefined
|
|
46
|
+
assertParamExists('runDataReport', 'runDataReportRequestDto', runDataReportRequestDto)
|
|
47
|
+
const localVarPath = `/tenantservice/v1/data-report-executor`;
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
let baseAccessToken;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
baseAccessToken = configuration.accessToken;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
58
|
+
const localVarHeaderParameter = {} as any;
|
|
59
|
+
const localVarQueryParameter = {} as any;
|
|
60
|
+
|
|
61
|
+
// authentication bearer required
|
|
62
|
+
// http bearer authentication required
|
|
63
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
64
|
+
|
|
65
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
66
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
72
|
+
|
|
73
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76
|
+
localVarRequestOptions.data = serializeDataIfNeeded(runDataReportRequestDto, localVarRequestOptions, configuration)
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* DataReportExecutorApi - functional programming interface
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const DataReportExecutorApiFp = function(configuration?: Configuration) {
|
|
91
|
+
const localVarAxiosParamCreator = DataReportExecutorApiAxiosParamCreator(configuration)
|
|
92
|
+
return {
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
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
|
+
async runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunDataReportResponseClass>> {
|
|
101
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runDataReport(runDataReportRequestDto, authorization, options);
|
|
102
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
103
|
+
},
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* DataReportExecutorApi - factory interface
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export const DataReportExecutorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
112
|
+
const localVarFp = DataReportExecutorApiFp(configuration)
|
|
113
|
+
return {
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
117
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<RunDataReportResponseClass> {
|
|
122
|
+
return localVarFp.runDataReport(runDataReportRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Request parameters for runDataReport operation in DataReportExecutorApi.
|
|
129
|
+
* @export
|
|
130
|
+
* @interface DataReportExecutorApiRunDataReportRequest
|
|
131
|
+
*/
|
|
132
|
+
export interface DataReportExecutorApiRunDataReportRequest {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {RunDataReportRequestDto}
|
|
136
|
+
* @memberof DataReportExecutorApiRunDataReport
|
|
137
|
+
*/
|
|
138
|
+
readonly runDataReportRequestDto: RunDataReportRequestDto
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof DataReportExecutorApiRunDataReport
|
|
144
|
+
*/
|
|
145
|
+
readonly authorization?: string
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* DataReportExecutorApi - object-oriented interface
|
|
150
|
+
* @export
|
|
151
|
+
* @class DataReportExecutorApi
|
|
152
|
+
* @extends {BaseAPI}
|
|
153
|
+
*/
|
|
154
|
+
export class DataReportExecutorApi extends BaseAPI {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @param {DataReportExecutorApiRunDataReportRequest} requestParameters Request parameters.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
* @memberof DataReportExecutorApi
|
|
161
|
+
*/
|
|
162
|
+
public runDataReport(requestParameters: DataReportExecutorApiRunDataReportRequest, options?: AxiosRequestConfig) {
|
|
163
|
+
return DataReportExecutorApiFp(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
}
|
|
165
|
+
}
|
package/api/roles-api.ts
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { ListRolesResponseClass } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
29
|
+
/**
|
|
30
|
+
* RolesApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
* Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
37
|
+
* @summary List roles
|
|
38
|
+
* @param {string} [authorization] Bearer Token
|
|
39
|
+
* @param {number} [pageSize] Page size
|
|
40
|
+
* @param {string} [pageToken] Page token
|
|
41
|
+
* @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
42
|
+
* @param {string} [search] Search query
|
|
43
|
+
* @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
44
|
+
* @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
const localVarPath = `/tenantservice/v1/roles`;
|
|
50
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
52
|
+
let baseOptions;
|
|
53
|
+
let baseAccessToken;
|
|
54
|
+
if (configuration) {
|
|
55
|
+
baseOptions = configuration.baseOptions;
|
|
56
|
+
baseAccessToken = configuration.accessToken;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
60
|
+
const localVarHeaderParameter = {} as any;
|
|
61
|
+
const localVarQueryParameter = {} as any;
|
|
62
|
+
|
|
63
|
+
// authentication bearer required
|
|
64
|
+
// http bearer authentication required
|
|
65
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
66
|
+
|
|
67
|
+
if (pageSize !== undefined) {
|
|
68
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (pageToken !== undefined) {
|
|
72
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (filter !== undefined) {
|
|
76
|
+
localVarQueryParameter['filter'] = filter;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (search !== undefined) {
|
|
80
|
+
localVarQueryParameter['search'] = search;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (order !== undefined) {
|
|
84
|
+
localVarQueryParameter['order'] = order;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (expand !== undefined) {
|
|
88
|
+
localVarQueryParameter['expand'] = expand;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
92
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
98
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
99
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
url: toPathString(localVarUrlObj),
|
|
103
|
+
options: localVarRequestOptions,
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* RolesApi - functional programming interface
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const RolesApiFp = function(configuration?: Configuration) {
|
|
114
|
+
const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
|
|
115
|
+
return {
|
|
116
|
+
/**
|
|
117
|
+
* Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
118
|
+
* @summary List roles
|
|
119
|
+
* @param {string} [authorization] Bearer Token
|
|
120
|
+
* @param {number} [pageSize] Page size
|
|
121
|
+
* @param {string} [pageToken] Page token
|
|
122
|
+
* @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
123
|
+
* @param {string} [search] Search query
|
|
124
|
+
* @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
125
|
+
* @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
async listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
|
|
130
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
131
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* RolesApi - factory interface
|
|
138
|
+
* @export
|
|
139
|
+
*/
|
|
140
|
+
export const RolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
141
|
+
const localVarFp = RolesApiFp(configuration)
|
|
142
|
+
return {
|
|
143
|
+
/**
|
|
144
|
+
* Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
145
|
+
* @summary List roles
|
|
146
|
+
* @param {string} [authorization] Bearer Token
|
|
147
|
+
* @param {number} [pageSize] Page size
|
|
148
|
+
* @param {string} [pageToken] Page token
|
|
149
|
+
* @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
150
|
+
* @param {string} [search] Search query
|
|
151
|
+
* @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
152
|
+
* @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options?: any): AxiosPromise<ListRolesResponseClass> {
|
|
157
|
+
return localVarFp.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Request parameters for listRoles operation in RolesApi.
|
|
164
|
+
* @export
|
|
165
|
+
* @interface RolesApiListRolesRequest
|
|
166
|
+
*/
|
|
167
|
+
export interface RolesApiListRolesRequest {
|
|
168
|
+
/**
|
|
169
|
+
* Bearer Token
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof RolesApiListRoles
|
|
172
|
+
*/
|
|
173
|
+
readonly authorization?: string
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Page size
|
|
177
|
+
* @type {number}
|
|
178
|
+
* @memberof RolesApiListRoles
|
|
179
|
+
*/
|
|
180
|
+
readonly pageSize?: number
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Page token
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof RolesApiListRoles
|
|
186
|
+
*/
|
|
187
|
+
readonly pageToken?: string
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
191
|
+
* @type {'id' | 'code' | 'label'}
|
|
192
|
+
* @memberof RolesApiListRoles
|
|
193
|
+
*/
|
|
194
|
+
readonly filter?: 'id' | 'code' | 'label'
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Search query
|
|
198
|
+
* @type {string}
|
|
199
|
+
* @memberof RolesApiListRoles
|
|
200
|
+
*/
|
|
201
|
+
readonly search?: string
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Order allowing you to specify the desired order of entities retrieved from the server.
|
|
205
|
+
* @type {'label'}
|
|
206
|
+
* @memberof RolesApiListRoles
|
|
207
|
+
*/
|
|
208
|
+
readonly order?: 'label'
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
212
|
+
* @type {'permissions'}
|
|
213
|
+
* @memberof RolesApiListRoles
|
|
214
|
+
*/
|
|
215
|
+
readonly expand?: 'permissions'
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* RolesApi - object-oriented interface
|
|
220
|
+
* @export
|
|
221
|
+
* @class RolesApi
|
|
222
|
+
* @extends {BaseAPI}
|
|
223
|
+
*/
|
|
224
|
+
export class RolesApi extends BaseAPI {
|
|
225
|
+
/**
|
|
226
|
+
* Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
227
|
+
* @summary List roles
|
|
228
|
+
* @param {RolesApiListRolesRequest} requestParameters Request parameters.
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
* @memberof RolesApi
|
|
232
|
+
*/
|
|
233
|
+
public listRoles(requestParameters: RolesApiListRolesRequest = {}, options?: AxiosRequestConfig) {
|
|
234
|
+
return RolesApiFp(this.configuration).listRoles(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
235
|
+
}
|
|
236
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetSettingsResponseClass } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
29
|
+
/**
|
|
30
|
+
* SettingsApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const SettingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
|
|
37
|
+
* @summary Retrieve the settings
|
|
38
|
+
* @param {string} keys
|
|
39
|
+
* @param {string} [authorization] Bearer Token
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
getTenantSettings: async (keys: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'keys' is not null or undefined
|
|
45
|
+
assertParamExists('getTenantSettings', 'keys', keys)
|
|
46
|
+
const localVarPath = `/tenantservice/v1/settings/tenant`;
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
let baseAccessToken;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
baseAccessToken = configuration.accessToken;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
57
|
+
const localVarHeaderParameter = {} as any;
|
|
58
|
+
const localVarQueryParameter = {} as any;
|
|
59
|
+
|
|
60
|
+
// authentication bearer required
|
|
61
|
+
// http bearer authentication required
|
|
62
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
63
|
+
|
|
64
|
+
if (keys !== undefined) {
|
|
65
|
+
localVarQueryParameter['keys'] = keys;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
69
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* SettingsApi - functional programming interface
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const SettingsApiFp = function(configuration?: Configuration) {
|
|
91
|
+
const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration)
|
|
92
|
+
return {
|
|
93
|
+
/**
|
|
94
|
+
* Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
|
|
95
|
+
* @summary Retrieve the settings
|
|
96
|
+
* @param {string} keys
|
|
97
|
+
* @param {string} [authorization] Bearer Token
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
async getTenantSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>> {
|
|
102
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantSettings(keys, authorization, options);
|
|
103
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
104
|
+
},
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* SettingsApi - factory interface
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export const SettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
113
|
+
const localVarFp = SettingsApiFp(configuration)
|
|
114
|
+
return {
|
|
115
|
+
/**
|
|
116
|
+
* Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
|
|
117
|
+
* @summary Retrieve the settings
|
|
118
|
+
* @param {string} keys
|
|
119
|
+
* @param {string} [authorization] Bearer Token
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
*/
|
|
123
|
+
getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass> {
|
|
124
|
+
return localVarFp.getTenantSettings(keys, authorization, options).then((request) => request(axios, basePath));
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Request parameters for getTenantSettings operation in SettingsApi.
|
|
131
|
+
* @export
|
|
132
|
+
* @interface SettingsApiGetTenantSettingsRequest
|
|
133
|
+
*/
|
|
134
|
+
export interface SettingsApiGetTenantSettingsRequest {
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof SettingsApiGetTenantSettings
|
|
139
|
+
*/
|
|
140
|
+
readonly keys: string
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Bearer Token
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof SettingsApiGetTenantSettings
|
|
146
|
+
*/
|
|
147
|
+
readonly authorization?: string
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* SettingsApi - object-oriented interface
|
|
152
|
+
* @export
|
|
153
|
+
* @class SettingsApi
|
|
154
|
+
* @extends {BaseAPI}
|
|
155
|
+
*/
|
|
156
|
+
export class SettingsApi extends BaseAPI {
|
|
157
|
+
/**
|
|
158
|
+
* Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
|
|
159
|
+
* @summary Retrieve the settings
|
|
160
|
+
* @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
* @memberof SettingsApi
|
|
164
|
+
*/
|
|
165
|
+
public getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig) {
|
|
166
|
+
return SettingsApiFp(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
167
|
+
}
|
|
168
|
+
}
|
package/api.ts
CHANGED
|
@@ -25,19 +25,27 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { CustomSchemaApi } from './api';
|
|
28
|
+
import { DataReportApi } from './api';
|
|
29
|
+
import { DataReportExecutorApi } from './api';
|
|
28
30
|
import { InviteOrganizationsApi } from './api';
|
|
29
31
|
import { InviteUsersApi } from './api';
|
|
30
32
|
import { ListOrganizationInvitationsApi } from './api';
|
|
31
33
|
import { OrganizationsApi } from './api';
|
|
32
34
|
import { ReInviteAnOrganizationApi } from './api';
|
|
35
|
+
import { RolesApi } from './api';
|
|
36
|
+
import { SettingsApi } from './api';
|
|
33
37
|
import { UsersApi } from './api';
|
|
34
38
|
|
|
35
39
|
|
|
36
40
|
export * from './api/custom-schema-api';
|
|
41
|
+
export * from './api/data-report-api';
|
|
42
|
+
export * from './api/data-report-executor-api';
|
|
37
43
|
export * from './api/invite-organizations-api';
|
|
38
44
|
export * from './api/invite-users-api';
|
|
39
45
|
export * from './api/list-organization-invitations-api';
|
|
40
46
|
export * from './api/organizations-api';
|
|
41
47
|
export * from './api/re-invite-an-organization-api';
|
|
48
|
+
export * from './api/roles-api';
|
|
49
|
+
export * from './api/settings-api';
|
|
42
50
|
export * from './api/users-api';
|
|
43
51
|
|