@emilgroup/tenant-sdk-node 1.0.0-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 +109 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/alerts-api.ts +860 -0
- package/api/custom-schema-api.ts +580 -0
- package/api/dashboard-api.ts +792 -0
- package/api/data-report-executor-api.ts +183 -0
- package/api/permissions-api.ts +307 -0
- package/api/reports-api.ts +860 -0
- package/api/roles-api.ts +564 -0
- package/api/scenario-analysis-api.ts +977 -0
- package/api/settings-api.ts +478 -0
- package/api/tariff-comparisons-api.ts +381 -0
- package/api/tenants-api.ts +514 -0
- package/api/user-subscription-api.ts +191 -0
- package/api/users-api.ts +1645 -0
- package/api.ts +60 -0
- package/base.ts +283 -0
- package/common.ts +199 -0
- package/configuration.ts +109 -0
- package/dist/api/alerts-api.d.ts +479 -0
- package/dist/api/alerts-api.js +752 -0
- package/dist/api/custom-schema-api.d.ts +329 -0
- package/dist/api/custom-schema-api.js +548 -0
- package/dist/api/dashboard-api.d.ts +434 -0
- package/dist/api/dashboard-api.js +724 -0
- package/dist/api/data-report-executor-api.d.ts +106 -0
- package/dist/api/data-report-executor-api.js +234 -0
- package/dist/api/permissions-api.d.ts +172 -0
- package/dist/api/permissions-api.js +331 -0
- package/dist/api/reports-api.d.ts +479 -0
- package/dist/api/reports-api.js +752 -0
- package/dist/api/roles-api.d.ts +301 -0
- package/dist/api/roles-api.js +578 -0
- package/dist/api/scenario-analysis-api.d.ts +529 -0
- package/dist/api/scenario-analysis-api.js +895 -0
- package/dist/api/settings-api.d.ts +261 -0
- package/dist/api/settings-api.js +509 -0
- package/dist/api/tariff-comparisons-api.d.ts +206 -0
- package/dist/api/tariff-comparisons-api.js +409 -0
- package/dist/api/tenants-api.d.ts +282 -0
- package/dist/api/tenants-api.js +514 -0
- package/dist/api/user-subscription-api.d.ts +111 -0
- package/dist/api/user-subscription-api.js +236 -0
- package/dist/api/users-api.d.ts +884 -0
- package/dist/api/users-api.js +1456 -0
- package/dist/api.d.ts +28 -0
- package/dist/api.js +48 -0
- package/dist/base.d.ts +76 -0
- package/dist/base.js +392 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/alert-class.d.ts +90 -0
- package/dist/models/alert-class.js +15 -0
- package/dist/models/assign-user-roles-request-dto.d.ts +30 -0
- package/dist/models/assign-user-roles-request-dto.js +15 -0
- package/dist/models/assign-user-roles-response-class.d.ts +25 -0
- package/dist/models/assign-user-roles-response-class.js +15 -0
- package/dist/models/batch-delete-request-dto.d.ts +24 -0
- package/dist/models/batch-delete-request-dto.js +15 -0
- package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
- package/dist/models/compare-tariffs-request-dto.js +22 -0
- package/dist/models/compare-tariffs-response-class.d.ts +30 -0
- package/dist/models/compare-tariffs-response-class.js +15 -0
- package/dist/models/condition-dto.d.ts +43 -0
- package/dist/models/condition-dto.js +22 -0
- package/dist/models/create-alert-request-dto.d.ts +79 -0
- package/dist/models/create-alert-request-dto.js +27 -0
- package/dist/models/create-alert-response-class.d.ts +25 -0
- package/dist/models/create-alert-response-class.js +15 -0
- package/dist/models/create-custom-schema-request-dto.d.ts +44 -0
- package/dist/models/create-custom-schema-request-dto.js +22 -0
- package/dist/models/create-custom-schema-response-class.d.ts +25 -0
- package/dist/models/create-custom-schema-response-class.js +15 -0
- package/dist/models/create-dashboard-request-dto.d.ts +70 -0
- package/dist/models/create-dashboard-request-dto.js +29 -0
- package/dist/models/create-dashboard-response-class.d.ts +25 -0
- package/dist/models/create-dashboard-response-class.js +15 -0
- package/dist/models/create-permission-request-dto.d.ts +48 -0
- package/dist/models/create-permission-request-dto.js +15 -0
- package/dist/models/create-permission-response-class.d.ts +25 -0
- package/dist/models/create-permission-response-class.js +15 -0
- package/dist/models/create-report-request-dto.d.ts +49 -0
- package/dist/models/create-report-request-dto.js +22 -0
- package/dist/models/create-report-response-class.d.ts +25 -0
- package/dist/models/create-report-response-class.js +15 -0
- package/dist/models/create-role-request-dto.d.ts +36 -0
- package/dist/models/create-role-request-dto.js +15 -0
- package/dist/models/create-role-response-class.d.ts +25 -0
- package/dist/models/create-role-response-class.js +15 -0
- package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
- package/dist/models/create-scenario-analysis-request-dto.js +22 -0
- package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/create-scenario-analysis-response-class.js +15 -0
- package/dist/models/create-tenant-request-dto.d.ts +56 -0
- package/dist/models/create-tenant-request-dto.js +15 -0
- package/dist/models/create-tenant-response-class.d.ts +42 -0
- package/dist/models/create-tenant-response-class.js +15 -0
- package/dist/models/custom-field-dto.d.ts +68 -0
- package/dist/models/custom-field-dto.js +23 -0
- package/dist/models/custom-schema-class.d.ts +66 -0
- package/dist/models/custom-schema-class.js +15 -0
- package/dist/models/dashboard-class.d.ts +78 -0
- package/dist/models/dashboard-class.js +15 -0
- package/dist/models/dbconfig-dto.d.ts +48 -0
- package/dist/models/dbconfig-dto.js +15 -0
- package/dist/models/disable-user-response-class.d.ts +25 -0
- package/dist/models/disable-user-response-class.js +15 -0
- package/dist/models/disable-users-request-dto.d.ts +24 -0
- package/dist/models/disable-users-request-dto.js +15 -0
- package/dist/models/enable-user-response-class.d.ts +25 -0
- package/dist/models/enable-user-response-class.js +15 -0
- package/dist/models/enable-users-request-dto.d.ts +24 -0
- package/dist/models/enable-users-request-dto.js +15 -0
- package/dist/models/get-alert-response-class.d.ts +25 -0
- package/dist/models/get-alert-response-class.js +15 -0
- package/dist/models/get-custom-schema-response-class.d.ts +25 -0
- package/dist/models/get-custom-schema-response-class.js +15 -0
- package/dist/models/get-dashboard-response-class.d.ts +25 -0
- package/dist/models/get-dashboard-response-class.js +15 -0
- package/dist/models/get-embedded-url-response-class.d.ts +24 -0
- package/dist/models/get-embedded-url-response-class.js +15 -0
- package/dist/models/get-report-response-class.d.ts +25 -0
- package/dist/models/get-report-response-class.js +15 -0
- package/dist/models/get-role-response-class.d.ts +25 -0
- package/dist/models/get-role-response-class.js +15 -0
- package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/get-scenario-analysis-response-class.js +15 -0
- package/dist/models/get-user-response-class.d.ts +25 -0
- package/dist/models/get-user-response-class.js +15 -0
- package/dist/models/index.d.ts +83 -0
- package/dist/models/index.js +99 -0
- package/dist/models/invite-class.d.ts +54 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invite-user-request-dto.d.ts +30 -0
- package/dist/models/invite-user-request-dto.js +15 -0
- package/dist/models/invite-user-response-class.d.ts +25 -0
- package/dist/models/invite-user-response-class.js +15 -0
- package/dist/models/invite-users-request-dto.d.ts +30 -0
- package/dist/models/invite-users-request-dto.js +15 -0
- package/dist/models/list-alert-history-response-class.d.ts +30 -0
- package/dist/models/list-alert-history-response-class.js +15 -0
- package/dist/models/list-alerts-response-class.d.ts +30 -0
- package/dist/models/list-alerts-response-class.js +15 -0
- package/dist/models/list-channels-response-class.d.ts +24 -0
- package/dist/models/list-channels-response-class.js +15 -0
- package/dist/models/list-custom-schemas-response-class.d.ts +30 -0
- package/dist/models/list-custom-schemas-response-class.js +15 -0
- package/dist/models/list-dashboards-response-class.d.ts +30 -0
- package/dist/models/list-dashboards-response-class.js +15 -0
- package/dist/models/list-insurance-companies-response-class.d.ts +24 -0
- package/dist/models/list-insurance-companies-response-class.js +15 -0
- package/dist/models/list-invites-response-class.d.ts +30 -0
- package/dist/models/list-invites-response-class.js +15 -0
- package/dist/models/list-permissions-response-class.d.ts +30 -0
- package/dist/models/list-permissions-response-class.js +15 -0
- package/dist/models/list-report-history-response-class.d.ts +30 -0
- package/dist/models/list-report-history-response-class.js +15 -0
- package/dist/models/list-reports-response-class.d.ts +30 -0
- package/dist/models/list-reports-response-class.js +15 -0
- package/dist/models/list-roles-response-class.d.ts +30 -0
- package/dist/models/list-roles-response-class.js +15 -0
- package/dist/models/list-scenario-analyses-response-class.d.ts +30 -0
- package/dist/models/list-scenario-analyses-response-class.js +15 -0
- package/dist/models/list-scenario-analysis-dates-response-class.d.ts +24 -0
- package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
- package/dist/models/list-tariff-insurance-companies-response-class.d.ts +24 -0
- package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
- package/dist/models/list-tariffs-response-class.d.ts +24 -0
- package/dist/models/list-tariffs-response-class.js +15 -0
- package/dist/models/list-users-response-class.d.ts +30 -0
- package/dist/models/list-users-response-class.js +15 -0
- package/dist/models/manage-subscription-request-dto.d.ts +24 -0
- package/dist/models/manage-subscription-request-dto.js +15 -0
- package/dist/models/manage-subscription-response-class.d.ts +25 -0
- package/dist/models/manage-subscription-response-class.js +15 -0
- package/dist/models/permission-class.d.ts +66 -0
- package/dist/models/permission-class.js +15 -0
- package/dist/models/report-class.d.ts +66 -0
- package/dist/models/report-class.js +15 -0
- package/dist/models/role-class.d.ts +60 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/run-data-report-request-dto.d.ts +30 -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/scenario-analysis-class.d.ts +108 -0
- package/dist/models/scenario-analysis-class.js +15 -0
- package/dist/models/set-user-setting-request-dto.d.ts +30 -0
- package/dist/models/set-user-setting-request-dto.js +15 -0
- package/dist/models/subscription-class.d.ts +60 -0
- package/dist/models/subscription-class.js +15 -0
- package/dist/models/tenant-admin-user-dto.d.ts +42 -0
- package/dist/models/tenant-admin-user-dto.js +15 -0
- package/dist/models/update-alert-request-dto.d.ts +72 -0
- package/dist/models/update-alert-request-dto.js +21 -0
- package/dist/models/update-alert-response-class.d.ts +25 -0
- package/dist/models/update-alert-response-class.js +15 -0
- package/dist/models/update-custom-schema-request-dto.d.ts +44 -0
- package/dist/models/update-custom-schema-request-dto.js +22 -0
- package/dist/models/update-custom-schema-response-class.d.ts +25 -0
- package/dist/models/update-custom-schema-response-class.js +15 -0
- package/dist/models/update-dashboard-request-dto.d.ts +76 -0
- package/dist/models/update-dashboard-request-dto.js +29 -0
- package/dist/models/update-dashboard-response-class.d.ts +25 -0
- package/dist/models/update-dashboard-response-class.js +15 -0
- package/dist/models/update-report-request-dto.d.ts +55 -0
- package/dist/models/update-report-request-dto.js +22 -0
- package/dist/models/update-report-response-class.d.ts +25 -0
- package/dist/models/update-report-response-class.js +15 -0
- package/dist/models/update-role-request-dto.d.ts +42 -0
- package/dist/models/update-role-request-dto.js +15 -0
- package/dist/models/update-role-response-class.d.ts +25 -0
- package/dist/models/update-role-response-class.js +15 -0
- package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
- package/dist/models/update-scenario-analysis-request-dto.js +22 -0
- package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/update-scenario-analysis-response-class.js +15 -0
- package/dist/models/user-class.d.ts +90 -0
- package/dist/models/user-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/alert-class.ts +96 -0
- package/models/assign-user-roles-request-dto.ts +36 -0
- package/models/assign-user-roles-response-class.ts +31 -0
- package/models/batch-delete-request-dto.ts +30 -0
- package/models/compare-tariffs-request-dto.ts +46 -0
- package/models/compare-tariffs-response-class.ts +36 -0
- package/models/condition-dto.ts +52 -0
- package/models/create-alert-request-dto.ts +89 -0
- package/models/create-alert-response-class.ts +31 -0
- package/models/create-custom-schema-request-dto.ts +53 -0
- package/models/create-custom-schema-response-class.ts +31 -0
- package/models/create-dashboard-request-dto.ts +81 -0
- package/models/create-dashboard-response-class.ts +31 -0
- package/models/create-permission-request-dto.ts +54 -0
- package/models/create-permission-response-class.ts +31 -0
- package/models/create-report-request-dto.ts +58 -0
- package/models/create-report-response-class.ts +31 -0
- package/models/create-role-request-dto.ts +42 -0
- package/models/create-role-response-class.ts +31 -0
- package/models/create-scenario-analysis-request-dto.ts +83 -0
- package/models/create-scenario-analysis-response-class.ts +31 -0
- package/models/create-tenant-request-dto.ts +62 -0
- package/models/create-tenant-response-class.ts +48 -0
- package/models/custom-field-dto.ts +77 -0
- package/models/custom-schema-class.ts +72 -0
- package/models/dashboard-class.ts +84 -0
- package/models/dbconfig-dto.ts +54 -0
- package/models/disable-user-response-class.ts +31 -0
- package/models/disable-users-request-dto.ts +30 -0
- package/models/enable-user-response-class.ts +31 -0
- package/models/enable-users-request-dto.ts +30 -0
- package/models/get-alert-response-class.ts +31 -0
- package/models/get-custom-schema-response-class.ts +31 -0
- package/models/get-dashboard-response-class.ts +31 -0
- package/models/get-embedded-url-response-class.ts +30 -0
- package/models/get-report-response-class.ts +31 -0
- package/models/get-role-response-class.ts +31 -0
- package/models/get-scenario-analysis-response-class.ts +31 -0
- package/models/get-user-response-class.ts +31 -0
- package/models/index.ts +83 -0
- package/models/invite-class.ts +60 -0
- package/models/invite-user-request-dto.ts +36 -0
- package/models/invite-user-response-class.ts +31 -0
- package/models/invite-users-request-dto.ts +36 -0
- package/models/list-alert-history-response-class.ts +36 -0
- package/models/list-alerts-response-class.ts +36 -0
- package/models/list-channels-response-class.ts +30 -0
- package/models/list-custom-schemas-response-class.ts +36 -0
- package/models/list-dashboards-response-class.ts +36 -0
- package/models/list-insurance-companies-response-class.ts +30 -0
- package/models/list-invites-response-class.ts +36 -0
- package/models/list-permissions-response-class.ts +36 -0
- package/models/list-report-history-response-class.ts +36 -0
- package/models/list-reports-response-class.ts +36 -0
- package/models/list-roles-response-class.ts +36 -0
- package/models/list-scenario-analyses-response-class.ts +36 -0
- package/models/list-scenario-analysis-dates-response-class.ts +30 -0
- package/models/list-tariff-insurance-companies-response-class.ts +30 -0
- package/models/list-tariffs-response-class.ts +30 -0
- package/models/list-users-response-class.ts +36 -0
- package/models/manage-subscription-request-dto.ts +30 -0
- package/models/manage-subscription-response-class.ts +31 -0
- package/models/permission-class.ts +72 -0
- package/models/report-class.ts +72 -0
- package/models/role-class.ts +66 -0
- package/models/run-data-report-request-dto.ts +36 -0
- package/models/run-data-report-response-class.ts +30 -0
- package/models/scenario-analysis-class.ts +114 -0
- package/models/set-user-setting-request-dto.ts +36 -0
- package/models/subscription-class.ts +66 -0
- package/models/tenant-admin-user-dto.ts +48 -0
- package/models/update-alert-request-dto.ts +81 -0
- package/models/update-alert-response-class.ts +31 -0
- package/models/update-custom-schema-request-dto.ts +53 -0
- package/models/update-custom-schema-response-class.ts +31 -0
- package/models/update-dashboard-request-dto.ts +87 -0
- package/models/update-dashboard-response-class.ts +31 -0
- package/models/update-report-request-dto.ts +64 -0
- package/models/update-report-response-class.ts +31 -0
- package/models/update-role-request-dto.ts +48 -0
- package/models/update-role-response-class.ts +31 -0
- package/models/update-scenario-analysis-request-dto.ts +83 -0
- package/models/update-scenario-analysis-response-class.ts +31 -0
- package/models/user-class.ts +96 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,183 @@
|
|
|
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
|
+
*
|
|
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
|
+
* This will execute the data report with the given slug using filter values as the report parameters
|
|
39
|
+
* @summary Create the data-report-executor
|
|
40
|
+
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
41
|
+
* @param {string} [authorization] Bearer Token
|
|
42
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
runDataReport: async (runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
47
|
+
// verify required parameter 'runDataReportRequestDto' is not null or undefined
|
|
48
|
+
assertParamExists('runDataReport', 'runDataReportRequestDto', runDataReportRequestDto)
|
|
49
|
+
const localVarPath = `/tenantservice/v1/data-report-executor`;
|
|
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: 'POST', ...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 (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
68
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
78
|
+
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
+
localVarRequestOptions.data = serializeDataIfNeeded(runDataReportRequestDto, localVarRequestOptions, configuration)
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
url: toPathString(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* DataReportExecutorApi - functional programming interface
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export const DataReportExecutorApiFp = function(configuration?: Configuration) {
|
|
97
|
+
const localVarAxiosParamCreator = DataReportExecutorApiAxiosParamCreator(configuration)
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
* This will execute the data report with the given slug using filter values as the report parameters
|
|
101
|
+
* @summary Create the data-report-executor
|
|
102
|
+
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
async runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunDataReportResponseClass>> {
|
|
109
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runDataReport(runDataReportRequestDto, authorization, authorization2, options);
|
|
110
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
111
|
+
},
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* DataReportExecutorApi - factory interface
|
|
117
|
+
* @export
|
|
118
|
+
*/
|
|
119
|
+
export const DataReportExecutorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
120
|
+
const localVarFp = DataReportExecutorApiFp(configuration)
|
|
121
|
+
return {
|
|
122
|
+
/**
|
|
123
|
+
* This will execute the data report with the given slug using filter values as the report parameters
|
|
124
|
+
* @summary Create the data-report-executor
|
|
125
|
+
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
126
|
+
* @param {string} [authorization] Bearer Token
|
|
127
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
*/
|
|
131
|
+
runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<RunDataReportResponseClass> {
|
|
132
|
+
return localVarFp.runDataReport(runDataReportRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Request parameters for runDataReport operation in DataReportExecutorApi.
|
|
139
|
+
* @export
|
|
140
|
+
* @interface DataReportExecutorApiRunDataReportRequest
|
|
141
|
+
*/
|
|
142
|
+
export interface DataReportExecutorApiRunDataReportRequest {
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {RunDataReportRequestDto}
|
|
146
|
+
* @memberof DataReportExecutorApiRunDataReport
|
|
147
|
+
*/
|
|
148
|
+
readonly runDataReportRequestDto: RunDataReportRequestDto
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Bearer Token
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof DataReportExecutorApiRunDataReport
|
|
154
|
+
*/
|
|
155
|
+
readonly authorization?: string
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof DataReportExecutorApiRunDataReport
|
|
161
|
+
*/
|
|
162
|
+
readonly authorization2?: string
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* DataReportExecutorApi - object-oriented interface
|
|
167
|
+
* @export
|
|
168
|
+
* @class DataReportExecutorApi
|
|
169
|
+
* @extends {BaseAPI}
|
|
170
|
+
*/
|
|
171
|
+
export class DataReportExecutorApi extends BaseAPI {
|
|
172
|
+
/**
|
|
173
|
+
* This will execute the data report with the given slug using filter values as the report parameters
|
|
174
|
+
* @summary Create the data-report-executor
|
|
175
|
+
* @param {DataReportExecutorApiRunDataReportRequest} requestParameters Request parameters.
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
* @memberof DataReportExecutorApi
|
|
179
|
+
*/
|
|
180
|
+
public runDataReport(requestParameters: DataReportExecutorApiRunDataReportRequest, options?: AxiosRequestConfig) {
|
|
181
|
+
return DataReportExecutorApiFp(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,307 @@
|
|
|
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
|
+
*
|
|
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 { CreatePermissionRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePermissionResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ListPermissionsResponseClass } from '../models';
|
|
29
|
+
// URLSearchParams not necessarily used
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import { URL, URLSearchParams } from 'url';
|
|
32
|
+
const FormData = require('form-data');
|
|
33
|
+
/**
|
|
34
|
+
* PermissionsApi - axios parameter creator
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export const PermissionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
|
+
return {
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param {CreatePermissionRequestDto} createPermissionRequestDto
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
createPermission: async (createPermissionRequestDto: CreatePermissionRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'createPermissionRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('createPermission', 'createPermissionRequestDto', createPermissionRequestDto)
|
|
48
|
+
const localVarPath = `/tenantservice/v1/permissions`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
let baseAccessToken;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
baseAccessToken = configuration.accessToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication bearer required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
+
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPermissionRequestDto, localVarRequestOptions, configuration)
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
url: toPathString(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @param {number} [pageSize] Page size
|
|
83
|
+
* @param {string} [pageToken] Page token
|
|
84
|
+
* @param {string} [filter] List filter
|
|
85
|
+
* @param {string} [search] Search query
|
|
86
|
+
* @param {string} [order] Ordering criteria
|
|
87
|
+
* @param {string} [expand] Extra fields to fetch
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
listPermissions: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
|
+
const localVarPath = `/tenantservice/v1/permissions`;
|
|
93
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
95
|
+
let baseOptions;
|
|
96
|
+
let baseAccessToken;
|
|
97
|
+
if (configuration) {
|
|
98
|
+
baseOptions = configuration.baseOptions;
|
|
99
|
+
baseAccessToken = configuration.accessToken;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
103
|
+
const localVarHeaderParameter = {} as any;
|
|
104
|
+
const localVarQueryParameter = {} as any;
|
|
105
|
+
|
|
106
|
+
// authentication bearer required
|
|
107
|
+
// http bearer authentication required
|
|
108
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
109
|
+
|
|
110
|
+
if (pageSize !== undefined) {
|
|
111
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (pageToken !== undefined) {
|
|
115
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (filter !== undefined) {
|
|
119
|
+
localVarQueryParameter['filter'] = filter;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (search !== undefined) {
|
|
123
|
+
localVarQueryParameter['search'] = search;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (order !== undefined) {
|
|
127
|
+
localVarQueryParameter['order'] = order;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (expand !== undefined) {
|
|
131
|
+
localVarQueryParameter['expand'] = expand;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
url: toPathString(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* PermissionsApi - functional programming interface
|
|
150
|
+
* @export
|
|
151
|
+
*/
|
|
152
|
+
export const PermissionsApiFp = function(configuration?: Configuration) {
|
|
153
|
+
const localVarAxiosParamCreator = PermissionsApiAxiosParamCreator(configuration)
|
|
154
|
+
return {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @param {CreatePermissionRequestDto} createPermissionRequestDto
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
async createPermission(createPermissionRequestDto: CreatePermissionRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePermissionResponseClass>> {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPermission(createPermissionRequestDto, options);
|
|
163
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
|
+
},
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @param {number} [pageSize] Page size
|
|
168
|
+
* @param {string} [pageToken] Page token
|
|
169
|
+
* @param {string} [filter] List filter
|
|
170
|
+
* @param {string} [search] Search query
|
|
171
|
+
* @param {string} [order] Ordering criteria
|
|
172
|
+
* @param {string} [expand] Extra fields to fetch
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
async listPermissions(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsResponseClass>> {
|
|
177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPermissions(pageSize, pageToken, filter, search, order, expand, options);
|
|
178
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
179
|
+
},
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* PermissionsApi - factory interface
|
|
185
|
+
* @export
|
|
186
|
+
*/
|
|
187
|
+
export const PermissionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
188
|
+
const localVarFp = PermissionsApiFp(configuration)
|
|
189
|
+
return {
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @param {CreatePermissionRequestDto} createPermissionRequestDto
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
createPermission(createPermissionRequestDto: CreatePermissionRequestDto, options?: any): AxiosPromise<CreatePermissionResponseClass> {
|
|
197
|
+
return localVarFp.createPermission(createPermissionRequestDto, options).then((request) => request(axios, basePath));
|
|
198
|
+
},
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @param {number} [pageSize] Page size
|
|
202
|
+
* @param {string} [pageToken] Page token
|
|
203
|
+
* @param {string} [filter] List filter
|
|
204
|
+
* @param {string} [search] Search query
|
|
205
|
+
* @param {string} [order] Ordering criteria
|
|
206
|
+
* @param {string} [expand] Extra fields to fetch
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
listPermissions(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPermissionsResponseClass> {
|
|
211
|
+
return localVarFp.listPermissions(pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
212
|
+
},
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Request parameters for createPermission operation in PermissionsApi.
|
|
218
|
+
* @export
|
|
219
|
+
* @interface PermissionsApiCreatePermissionRequest
|
|
220
|
+
*/
|
|
221
|
+
export interface PermissionsApiCreatePermissionRequest {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {CreatePermissionRequestDto}
|
|
225
|
+
* @memberof PermissionsApiCreatePermission
|
|
226
|
+
*/
|
|
227
|
+
readonly createPermissionRequestDto: CreatePermissionRequestDto
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Request parameters for listPermissions operation in PermissionsApi.
|
|
232
|
+
* @export
|
|
233
|
+
* @interface PermissionsApiListPermissionsRequest
|
|
234
|
+
*/
|
|
235
|
+
export interface PermissionsApiListPermissionsRequest {
|
|
236
|
+
/**
|
|
237
|
+
* Page size
|
|
238
|
+
* @type {number}
|
|
239
|
+
* @memberof PermissionsApiListPermissions
|
|
240
|
+
*/
|
|
241
|
+
readonly pageSize?: number
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Page token
|
|
245
|
+
* @type {string}
|
|
246
|
+
* @memberof PermissionsApiListPermissions
|
|
247
|
+
*/
|
|
248
|
+
readonly pageToken?: string
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* List filter
|
|
252
|
+
* @type {string}
|
|
253
|
+
* @memberof PermissionsApiListPermissions
|
|
254
|
+
*/
|
|
255
|
+
readonly filter?: string
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Search query
|
|
259
|
+
* @type {string}
|
|
260
|
+
* @memberof PermissionsApiListPermissions
|
|
261
|
+
*/
|
|
262
|
+
readonly search?: string
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Ordering criteria
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof PermissionsApiListPermissions
|
|
268
|
+
*/
|
|
269
|
+
readonly order?: string
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Extra fields to fetch
|
|
273
|
+
* @type {string}
|
|
274
|
+
* @memberof PermissionsApiListPermissions
|
|
275
|
+
*/
|
|
276
|
+
readonly expand?: string
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* PermissionsApi - object-oriented interface
|
|
281
|
+
* @export
|
|
282
|
+
* @class PermissionsApi
|
|
283
|
+
* @extends {BaseAPI}
|
|
284
|
+
*/
|
|
285
|
+
export class PermissionsApi extends BaseAPI {
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @param {PermissionsApiCreatePermissionRequest} requestParameters Request parameters.
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
* @memberof PermissionsApi
|
|
292
|
+
*/
|
|
293
|
+
public createPermission(requestParameters: PermissionsApiCreatePermissionRequest, options?: AxiosRequestConfig) {
|
|
294
|
+
return PermissionsApiFp(this.configuration).createPermission(requestParameters.createPermissionRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @param {PermissionsApiListPermissionsRequest} requestParameters Request parameters.
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
* @memberof PermissionsApi
|
|
303
|
+
*/
|
|
304
|
+
public listPermissions(requestParameters: PermissionsApiListPermissionsRequest = {}, options?: AxiosRequestConfig) {
|
|
305
|
+
return PermissionsApiFp(this.configuration).listPermissions(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
306
|
+
}
|
|
307
|
+
}
|