@emilgroup/tenant-sdk 1.0.1 → 1.1.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 +14 -57
- package/README.md +2 -2
- package/api/custom-schema-api.ts +52 -60
- package/api/data-report-api.ts +65 -75
- package/api/data-report-executor-api.ts +10 -26
- package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
- package/api/invite-users-api.ts +75 -79
- package/api/organizations-api.ts +455 -0
- package/api/users-api.ts +138 -148
- package/api.ts +4 -14
- package/dist/api/custom-schema-api.d.ts +42 -42
- package/dist/api/custom-schema-api.js +31 -38
- package/dist/api/data-report-api.d.ts +52 -52
- package/dist/api/data-report-api.js +40 -49
- package/dist/api/data-report-executor-api.d.ts +7 -16
- package/dist/api/data-report-executor-api.js +9 -17
- package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
- package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
- package/dist/api/invite-users-api.d.ts +63 -60
- package/dist/api/invite-users-api.js +40 -49
- package/dist/api/organizations-api.d.ts +261 -0
- package/dist/api/{settings-api.js → organizations-api.js} +135 -195
- package/dist/api/users-api.d.ts +113 -109
- package/dist/api/users-api.js +76 -93
- package/dist/api.d.ts +2 -7
- package/dist/api.js +2 -7
- package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
- package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
- package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
- package/dist/models/create-custom-schema-request-dto.js +2 -1
- package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
- package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
- package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
- package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
- package/dist/models/index.d.ts +12 -50
- package/dist/models/index.js +12 -50
- package/dist/models/invite-org-request-dto.d.ts +78 -0
- package/dist/models/invite-user-request-dto.d.ts +8 -2
- package/dist/models/invite-users-request-dto.d.ts +2 -2
- package/dist/models/invite-users-response-class.d.ts +24 -0
- package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
- package/dist/models/{list-alert-history-response-class.d.ts → list-organizations-response-class.d.ts} +9 -9
- package/dist/models/org-invitation-class.d.ts +103 -0
- package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
- package/dist/models/organization-class.d.ts +84 -0
- package/dist/models/set-setting-request-dto.d.ts +10 -4
- package/dist/models/subscription-class.d.ts +9 -2
- package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
- package/dist/models/update-custom-schema-request-dto.js +2 -1
- package/dist/models/user-class.d.ts +13 -5
- package/models/assign-user-roles-request-dto.ts +2 -2
- package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
- package/models/create-custom-schema-request-dto.ts +2 -1
- package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
- package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
- package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
- package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
- package/models/index.ts +12 -50
- package/models/invite-org-request-dto.ts +84 -0
- package/models/invite-user-request-dto.ts +8 -2
- package/models/invite-users-request-dto.ts +2 -2
- package/models/invite-users-response-class.ts +30 -0
- package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
- package/models/{list-alert-history-response-class.ts → list-organizations-response-class.ts} +9 -9
- package/models/org-invitation-class.ts +109 -0
- package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
- package/models/organization-class.ts +90 -0
- package/models/set-setting-request-dto.ts +10 -4
- package/models/subscription-class.ts +9 -2
- package/models/update-custom-schema-request-dto.ts +2 -1
- package/models/user-class.ts +13 -5
- package/package.json +1 -1
- package/api/alerts-api.ts +0 -860
- package/api/dashboard-api.ts +0 -792
- package/api/reports-api.ts +0 -860
- package/api/scenario-analysis-api.ts +0 -977
- package/api/settings-api.ts +0 -484
- package/api/tariff-comparisons-api.ts +0 -381
- package/dist/api/alerts-api.d.ts +0 -479
- package/dist/api/alerts-api.js +0 -752
- package/dist/api/dashboard-api.d.ts +0 -434
- package/dist/api/dashboard-api.js +0 -724
- package/dist/api/reports-api.d.ts +0 -479
- package/dist/api/reports-api.js +0 -752
- package/dist/api/scenario-analysis-api.d.ts +0 -529
- package/dist/api/scenario-analysis-api.js +0 -895
- package/dist/api/settings-api.d.ts +0 -264
- package/dist/api/tariff-comparisons-api.d.ts +0 -206
- package/dist/api/tariff-comparisons-api.js +0 -409
- package/dist/models/alert-class.d.ts +0 -90
- package/dist/models/alert-history-class.d.ts +0 -108
- package/dist/models/channel-response-class.d.ts +0 -30
- package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
- package/dist/models/compare-tariffs-request-dto.js +0 -22
- package/dist/models/compare-tariffs-response-class.d.ts +0 -31
- package/dist/models/condition-dto.d.ts +0 -43
- package/dist/models/condition-dto.js +0 -22
- package/dist/models/create-alert-request-dto.d.ts +0 -79
- package/dist/models/create-alert-request-dto.js +0 -27
- package/dist/models/create-dashboard-request-dto.d.ts +0 -70
- package/dist/models/create-dashboard-request-dto.js +0 -29
- package/dist/models/create-report-request-dto.d.ts +0 -49
- package/dist/models/create-report-request-dto.js +0 -22
- package/dist/models/create-report-response-class.d.ts +0 -25
- package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
- package/dist/models/create-scenario-analysis-request-dto.js +0 -22
- package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/dashboard-class.d.ts +0 -78
- package/dist/models/get-alert-response-class.d.ts +0 -25
- package/dist/models/get-dashboard-response-class.d.ts +0 -25
- package/dist/models/get-report-response-class.d.ts +0 -25
- package/dist/models/get-report-response-class.js +0 -15
- package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/get-scenario-analysis-response-class.js +0 -15
- package/dist/models/grouped-tariff-class.d.ts +0 -30
- package/dist/models/grouped-tariff-class.js +0 -15
- package/dist/models/insurance-company-response-class.js +0 -15
- package/dist/models/insurance-response-class.js +0 -15
- package/dist/models/list-alert-history-response-class.js +0 -15
- package/dist/models/list-alerts-response-class.d.ts +0 -31
- package/dist/models/list-alerts-response-class.js +0 -15
- package/dist/models/list-channels-response-class.d.ts +0 -25
- package/dist/models/list-channels-response-class.js +0 -15
- package/dist/models/list-dashboards-response-class.d.ts +0 -31
- package/dist/models/list-dashboards-response-class.js +0 -15
- package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
- package/dist/models/list-insurance-companies-response-class.js +0 -15
- package/dist/models/list-report-history-response-class.d.ts +0 -31
- package/dist/models/list-report-history-response-class.js +0 -15
- package/dist/models/list-reports-response-class.d.ts +0 -31
- package/dist/models/list-reports-response-class.js +0 -15
- package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
- package/dist/models/list-scenario-analyses-response-class.js +0 -15
- package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
- package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
- package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
- package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
- package/dist/models/list-tariffs-response-class.d.ts +0 -25
- package/dist/models/list-tariffs-response-class.js +0 -15
- package/dist/models/list-user-subscriptions-response-class.js +0 -15
- package/dist/models/manage-subscription-request-dto.js +0 -15
- package/dist/models/manage-subscription-response-class.d.ts +0 -25
- package/dist/models/manage-subscription-response-class.js +0 -15
- package/dist/models/report-class.d.ts +0 -66
- package/dist/models/report-class.js +0 -15
- package/dist/models/report-history-class.d.ts +0 -48
- package/dist/models/report-history-class.js +0 -15
- package/dist/models/scenario-analysis-class.d.ts +0 -108
- package/dist/models/scenario-analysis-class.js +0 -15
- package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
- package/dist/models/scenario-analysis-date-response-class.js +0 -15
- package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
- package/dist/models/set-tenant-setting-response-class.js +0 -15
- package/dist/models/update-alert-request-dto.d.ts +0 -72
- package/dist/models/update-alert-request-dto.js +0 -21
- package/dist/models/update-alert-response-class.d.ts +0 -25
- package/dist/models/update-alert-response-class.js +0 -15
- package/dist/models/update-dashboard-request-dto.d.ts +0 -76
- package/dist/models/update-dashboard-request-dto.js +0 -29
- package/dist/models/update-dashboard-response-class.d.ts +0 -25
- package/dist/models/update-dashboard-response-class.js +0 -15
- package/dist/models/update-report-request-dto.d.ts +0 -55
- package/dist/models/update-report-request-dto.js +0 -22
- package/dist/models/update-report-response-class.d.ts +0 -25
- package/dist/models/update-report-response-class.js +0 -15
- package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
- package/dist/models/update-scenario-analysis-request-dto.js +0 -22
- package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/update-scenario-analysis-response-class.js +0 -15
- package/models/alert-class.ts +0 -96
- package/models/alert-history-class.ts +0 -114
- package/models/compare-tariffs-request-dto.ts +0 -46
- package/models/compare-tariffs-response-class.ts +0 -37
- package/models/condition-dto.ts +0 -52
- package/models/create-alert-request-dto.ts +0 -89
- package/models/create-dashboard-request-dto.ts +0 -81
- package/models/create-dashboard-response-class.ts +0 -31
- package/models/create-report-request-dto.ts +0 -58
- package/models/create-report-response-class.ts +0 -31
- package/models/create-scenario-analysis-request-dto.ts +0 -83
- package/models/create-scenario-analysis-response-class.ts +0 -31
- package/models/dashboard-class.ts +0 -84
- package/models/get-alert-response-class.ts +0 -31
- package/models/get-dashboard-response-class.ts +0 -31
- package/models/get-report-response-class.ts +0 -31
- package/models/get-scenario-analysis-response-class.ts +0 -31
- package/models/grouped-tariff-class.ts +0 -36
- package/models/list-alerts-response-class.ts +0 -37
- package/models/list-channels-response-class.ts +0 -31
- package/models/list-dashboards-response-class.ts +0 -37
- package/models/list-insurance-companies-response-class.ts +0 -31
- package/models/list-report-history-response-class.ts +0 -37
- package/models/list-reports-response-class.ts +0 -37
- package/models/list-scenario-analyses-response-class.ts +0 -37
- package/models/list-scenario-analysis-dates-response-class.ts +0 -31
- package/models/list-tariff-insurance-companies-response-class.ts +0 -31
- package/models/list-tariffs-response-class.ts +0 -31
- package/models/manage-subscription-response-class.ts +0 -31
- package/models/report-class.ts +0 -72
- package/models/report-history-class.ts +0 -54
- package/models/scenario-analysis-class.ts +0 -114
- package/models/scenario-analysis-date-response-class.ts +0 -42
- package/models/set-tenant-setting-response-class.ts +0 -42
- package/models/update-alert-request-dto.ts +0 -81
- package/models/update-alert-response-class.ts +0 -31
- package/models/update-dashboard-request-dto.ts +0 -87
- package/models/update-dashboard-response-class.ts +0 -31
- package/models/update-report-request-dto.ts +0 -64
- package/models/update-report-response-class.ts +0 -31
- package/models/update-scenario-analysis-request-dto.ts +0 -83
- package/models/update-scenario-analysis-response-class.ts +0 -31
- /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
- /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
- /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
- /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
- /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
- /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
- /package/dist/models/{create-report-response-class.js → invite-users-response-class.js} +0 -0
- /package/dist/models/{create-scenario-analysis-response-class.js → list-org-invitations-response-class.js} +0 -0
- /package/dist/models/{dashboard-class.js → list-organizations-response-class.js} +0 -0
- /package/dist/models/{get-alert-response-class.js → org-invitation-class.js} +0 -0
- /package/dist/models/{get-dashboard-response-class.js → org-invitation-response-class.js} +0 -0
- /package/dist/models/{get-embedded-url-response-class.js → organization-class.js} +0 -0
package/api/settings-api.ts
DELETED
|
@@ -1,484 +0,0 @@
|
|
|
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
|
-
// @ts-ignore
|
|
26
|
-
import { SetSettingRequestDto } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { SetTenantSettingResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { SetUserSettingResponseClass } from '../models';
|
|
31
|
-
// URLSearchParams not necessarily used
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
import { URL, URLSearchParams } from 'url';
|
|
34
|
-
const FormData = require('form-data');
|
|
35
|
-
/**
|
|
36
|
-
* SettingsApi - axios parameter creator
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
|
-
export const SettingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
-
return {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @summary Get tenant settings
|
|
44
|
-
* @param {string} keys
|
|
45
|
-
* @param {string} [authorization] Bearer Token
|
|
46
|
-
* @param {*} [options] Override http request option.
|
|
47
|
-
* @throws {RequiredError}
|
|
48
|
-
*/
|
|
49
|
-
getTenantSettings: async (keys: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
-
// verify required parameter 'keys' is not null or undefined
|
|
51
|
-
assertParamExists('getTenantSettings', 'keys', keys)
|
|
52
|
-
const localVarPath = `/tenantservice/v1/settings/tenant`;
|
|
53
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
|
-
let baseOptions;
|
|
56
|
-
let baseAccessToken;
|
|
57
|
-
if (configuration) {
|
|
58
|
-
baseOptions = configuration.baseOptions;
|
|
59
|
-
baseAccessToken = configuration.accessToken;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
63
|
-
const localVarHeaderParameter = {} as any;
|
|
64
|
-
const localVarQueryParameter = {} as any;
|
|
65
|
-
|
|
66
|
-
// authentication bearer required
|
|
67
|
-
// http bearer authentication required
|
|
68
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
|
-
|
|
70
|
-
if (keys !== undefined) {
|
|
71
|
-
localVarQueryParameter['keys'] = keys;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
75
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
81
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
url: toPathString(localVarUrlObj),
|
|
86
|
-
options: localVarRequestOptions,
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @summary Get user settings
|
|
92
|
-
* @param {string} keys
|
|
93
|
-
* @param {string} [authorization] Bearer Token
|
|
94
|
-
* @param {*} [options] Override http request option.
|
|
95
|
-
* @throws {RequiredError}
|
|
96
|
-
*/
|
|
97
|
-
getUserSettings: async (keys: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
|
-
// verify required parameter 'keys' is not null or undefined
|
|
99
|
-
assertParamExists('getUserSettings', 'keys', keys)
|
|
100
|
-
const localVarPath = `/tenantservice/v1/settings/user`;
|
|
101
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
-
let baseOptions;
|
|
104
|
-
let baseAccessToken;
|
|
105
|
-
if (configuration) {
|
|
106
|
-
baseOptions = configuration.baseOptions;
|
|
107
|
-
baseAccessToken = configuration.accessToken;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
111
|
-
const localVarHeaderParameter = {} as any;
|
|
112
|
-
const localVarQueryParameter = {} as any;
|
|
113
|
-
|
|
114
|
-
// authentication bearer required
|
|
115
|
-
// http bearer authentication required
|
|
116
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
-
|
|
118
|
-
if (keys !== undefined) {
|
|
119
|
-
localVarQueryParameter['keys'] = keys;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
-
|
|
132
|
-
return {
|
|
133
|
-
url: toPathString(localVarUrlObj),
|
|
134
|
-
options: localVarRequestOptions,
|
|
135
|
-
};
|
|
136
|
-
},
|
|
137
|
-
/**
|
|
138
|
-
* Creates new setting in EMIL Insurance Suite for tenants. Among other things, tenants can add multiple settings to customize their workspace on EIS.
|
|
139
|
-
* @summary Create the tenant setting
|
|
140
|
-
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
141
|
-
* @param {string} [authorization] Bearer Token
|
|
142
|
-
* @param {*} [options] Override http request option.
|
|
143
|
-
* @throws {RequiredError}
|
|
144
|
-
*/
|
|
145
|
-
setTenantSetting: async (setSettingRequestDto: SetSettingRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146
|
-
// verify required parameter 'setSettingRequestDto' is not null or undefined
|
|
147
|
-
assertParamExists('setTenantSetting', 'setSettingRequestDto', setSettingRequestDto)
|
|
148
|
-
const localVarPath = `/tenantservice/v1/settings/tenant`;
|
|
149
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
151
|
-
let baseOptions;
|
|
152
|
-
let baseAccessToken;
|
|
153
|
-
if (configuration) {
|
|
154
|
-
baseOptions = configuration.baseOptions;
|
|
155
|
-
baseAccessToken = configuration.accessToken;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
159
|
-
const localVarHeaderParameter = {} as any;
|
|
160
|
-
const localVarQueryParameter = {} as any;
|
|
161
|
-
|
|
162
|
-
// authentication bearer required
|
|
163
|
-
// http bearer authentication required
|
|
164
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
165
|
-
|
|
166
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
167
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
173
|
-
|
|
174
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
177
|
-
localVarRequestOptions.data = serializeDataIfNeeded(setSettingRequestDto, localVarRequestOptions, configuration)
|
|
178
|
-
|
|
179
|
-
return {
|
|
180
|
-
url: toPathString(localVarUrlObj),
|
|
181
|
-
options: localVarRequestOptions,
|
|
182
|
-
};
|
|
183
|
-
},
|
|
184
|
-
/**
|
|
185
|
-
* Creates new setting in EMIL Insurance Suite for users. Among other things, users can add multiple settings to customize their workspace on EIS.
|
|
186
|
-
* @summary Create the user setting
|
|
187
|
-
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
188
|
-
* @param {string} [authorization] Bearer Token
|
|
189
|
-
* @param {*} [options] Override http request option.
|
|
190
|
-
* @throws {RequiredError}
|
|
191
|
-
*/
|
|
192
|
-
setUserSetting: async (setSettingRequestDto: SetSettingRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
193
|
-
// verify required parameter 'setSettingRequestDto' is not null or undefined
|
|
194
|
-
assertParamExists('setUserSetting', 'setSettingRequestDto', setSettingRequestDto)
|
|
195
|
-
const localVarPath = `/tenantservice/v1/settings/user`;
|
|
196
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
197
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
198
|
-
let baseOptions;
|
|
199
|
-
let baseAccessToken;
|
|
200
|
-
if (configuration) {
|
|
201
|
-
baseOptions = configuration.baseOptions;
|
|
202
|
-
baseAccessToken = configuration.accessToken;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
206
|
-
const localVarHeaderParameter = {} as any;
|
|
207
|
-
const localVarQueryParameter = {} as any;
|
|
208
|
-
|
|
209
|
-
// authentication bearer required
|
|
210
|
-
// http bearer authentication required
|
|
211
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
212
|
-
|
|
213
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
214
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
220
|
-
|
|
221
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
222
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
223
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
224
|
-
localVarRequestOptions.data = serializeDataIfNeeded(setSettingRequestDto, localVarRequestOptions, configuration)
|
|
225
|
-
|
|
226
|
-
return {
|
|
227
|
-
url: toPathString(localVarUrlObj),
|
|
228
|
-
options: localVarRequestOptions,
|
|
229
|
-
};
|
|
230
|
-
},
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* SettingsApi - functional programming interface
|
|
236
|
-
* @export
|
|
237
|
-
*/
|
|
238
|
-
export const SettingsApiFp = function(configuration?: Configuration) {
|
|
239
|
-
const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration)
|
|
240
|
-
return {
|
|
241
|
-
/**
|
|
242
|
-
*
|
|
243
|
-
* @summary Get tenant settings
|
|
244
|
-
* @param {string} keys
|
|
245
|
-
* @param {string} [authorization] Bearer Token
|
|
246
|
-
* @param {*} [options] Override http request option.
|
|
247
|
-
* @throws {RequiredError}
|
|
248
|
-
*/
|
|
249
|
-
async getTenantSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>> {
|
|
250
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantSettings(keys, authorization, options);
|
|
251
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
252
|
-
},
|
|
253
|
-
/**
|
|
254
|
-
*
|
|
255
|
-
* @summary Get user settings
|
|
256
|
-
* @param {string} keys
|
|
257
|
-
* @param {string} [authorization] Bearer Token
|
|
258
|
-
* @param {*} [options] Override http request option.
|
|
259
|
-
* @throws {RequiredError}
|
|
260
|
-
*/
|
|
261
|
-
async getUserSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>> {
|
|
262
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserSettings(keys, authorization, options);
|
|
263
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
264
|
-
},
|
|
265
|
-
/**
|
|
266
|
-
* Creates new setting in EMIL Insurance Suite for tenants. Among other things, tenants can add multiple settings to customize their workspace on EIS.
|
|
267
|
-
* @summary Create the tenant setting
|
|
268
|
-
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
269
|
-
* @param {string} [authorization] Bearer Token
|
|
270
|
-
* @param {*} [options] Override http request option.
|
|
271
|
-
* @throws {RequiredError}
|
|
272
|
-
*/
|
|
273
|
-
async setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetTenantSettingResponseClass>> {
|
|
274
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.setTenantSetting(setSettingRequestDto, authorization, options);
|
|
275
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
276
|
-
},
|
|
277
|
-
/**
|
|
278
|
-
* Creates new setting in EMIL Insurance Suite for users. Among other things, users can add multiple settings to customize their workspace on EIS.
|
|
279
|
-
* @summary Create the user setting
|
|
280
|
-
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
281
|
-
* @param {string} [authorization] Bearer Token
|
|
282
|
-
* @param {*} [options] Override http request option.
|
|
283
|
-
* @throws {RequiredError}
|
|
284
|
-
*/
|
|
285
|
-
async setUserSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetUserSettingResponseClass>> {
|
|
286
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.setUserSetting(setSettingRequestDto, authorization, options);
|
|
287
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
288
|
-
},
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* SettingsApi - factory interface
|
|
294
|
-
* @export
|
|
295
|
-
*/
|
|
296
|
-
export const SettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
297
|
-
const localVarFp = SettingsApiFp(configuration)
|
|
298
|
-
return {
|
|
299
|
-
/**
|
|
300
|
-
*
|
|
301
|
-
* @summary Get tenant settings
|
|
302
|
-
* @param {string} keys
|
|
303
|
-
* @param {string} [authorization] Bearer Token
|
|
304
|
-
* @param {*} [options] Override http request option.
|
|
305
|
-
* @throws {RequiredError}
|
|
306
|
-
*/
|
|
307
|
-
getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass> {
|
|
308
|
-
return localVarFp.getTenantSettings(keys, authorization, options).then((request) => request(axios, basePath));
|
|
309
|
-
},
|
|
310
|
-
/**
|
|
311
|
-
*
|
|
312
|
-
* @summary Get user settings
|
|
313
|
-
* @param {string} keys
|
|
314
|
-
* @param {string} [authorization] Bearer Token
|
|
315
|
-
* @param {*} [options] Override http request option.
|
|
316
|
-
* @throws {RequiredError}
|
|
317
|
-
*/
|
|
318
|
-
getUserSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass> {
|
|
319
|
-
return localVarFp.getUserSettings(keys, authorization, options).then((request) => request(axios, basePath));
|
|
320
|
-
},
|
|
321
|
-
/**
|
|
322
|
-
* Creates new setting in EMIL Insurance Suite for tenants. Among other things, tenants can add multiple settings to customize their workspace on EIS.
|
|
323
|
-
* @summary Create the tenant setting
|
|
324
|
-
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
325
|
-
* @param {string} [authorization] Bearer Token
|
|
326
|
-
* @param {*} [options] Override http request option.
|
|
327
|
-
* @throws {RequiredError}
|
|
328
|
-
*/
|
|
329
|
-
setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: any): AxiosPromise<SetTenantSettingResponseClass> {
|
|
330
|
-
return localVarFp.setTenantSetting(setSettingRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
331
|
-
},
|
|
332
|
-
/**
|
|
333
|
-
* Creates new setting in EMIL Insurance Suite for users. Among other things, users can add multiple settings to customize their workspace on EIS.
|
|
334
|
-
* @summary Create the user setting
|
|
335
|
-
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
336
|
-
* @param {string} [authorization] Bearer Token
|
|
337
|
-
* @param {*} [options] Override http request option.
|
|
338
|
-
* @throws {RequiredError}
|
|
339
|
-
*/
|
|
340
|
-
setUserSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: any): AxiosPromise<SetUserSettingResponseClass> {
|
|
341
|
-
return localVarFp.setUserSetting(setSettingRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
342
|
-
},
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Request parameters for getTenantSettings operation in SettingsApi.
|
|
348
|
-
* @export
|
|
349
|
-
* @interface SettingsApiGetTenantSettingsRequest
|
|
350
|
-
*/
|
|
351
|
-
export interface SettingsApiGetTenantSettingsRequest {
|
|
352
|
-
/**
|
|
353
|
-
*
|
|
354
|
-
* @type {string}
|
|
355
|
-
* @memberof SettingsApiGetTenantSettings
|
|
356
|
-
*/
|
|
357
|
-
readonly keys: string
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Bearer Token
|
|
361
|
-
* @type {string}
|
|
362
|
-
* @memberof SettingsApiGetTenantSettings
|
|
363
|
-
*/
|
|
364
|
-
readonly authorization?: string
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Request parameters for getUserSettings operation in SettingsApi.
|
|
369
|
-
* @export
|
|
370
|
-
* @interface SettingsApiGetUserSettingsRequest
|
|
371
|
-
*/
|
|
372
|
-
export interface SettingsApiGetUserSettingsRequest {
|
|
373
|
-
/**
|
|
374
|
-
*
|
|
375
|
-
* @type {string}
|
|
376
|
-
* @memberof SettingsApiGetUserSettings
|
|
377
|
-
*/
|
|
378
|
-
readonly keys: string
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Bearer Token
|
|
382
|
-
* @type {string}
|
|
383
|
-
* @memberof SettingsApiGetUserSettings
|
|
384
|
-
*/
|
|
385
|
-
readonly authorization?: string
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Request parameters for setTenantSetting operation in SettingsApi.
|
|
390
|
-
* @export
|
|
391
|
-
* @interface SettingsApiSetTenantSettingRequest
|
|
392
|
-
*/
|
|
393
|
-
export interface SettingsApiSetTenantSettingRequest {
|
|
394
|
-
/**
|
|
395
|
-
*
|
|
396
|
-
* @type {SetSettingRequestDto}
|
|
397
|
-
* @memberof SettingsApiSetTenantSetting
|
|
398
|
-
*/
|
|
399
|
-
readonly setSettingRequestDto: SetSettingRequestDto
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Bearer Token
|
|
403
|
-
* @type {string}
|
|
404
|
-
* @memberof SettingsApiSetTenantSetting
|
|
405
|
-
*/
|
|
406
|
-
readonly authorization?: string
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Request parameters for setUserSetting operation in SettingsApi.
|
|
411
|
-
* @export
|
|
412
|
-
* @interface SettingsApiSetUserSettingRequest
|
|
413
|
-
*/
|
|
414
|
-
export interface SettingsApiSetUserSettingRequest {
|
|
415
|
-
/**
|
|
416
|
-
*
|
|
417
|
-
* @type {SetSettingRequestDto}
|
|
418
|
-
* @memberof SettingsApiSetUserSetting
|
|
419
|
-
*/
|
|
420
|
-
readonly setSettingRequestDto: SetSettingRequestDto
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Bearer Token
|
|
424
|
-
* @type {string}
|
|
425
|
-
* @memberof SettingsApiSetUserSetting
|
|
426
|
-
*/
|
|
427
|
-
readonly authorization?: string
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* SettingsApi - object-oriented interface
|
|
432
|
-
* @export
|
|
433
|
-
* @class SettingsApi
|
|
434
|
-
* @extends {BaseAPI}
|
|
435
|
-
*/
|
|
436
|
-
export class SettingsApi extends BaseAPI {
|
|
437
|
-
/**
|
|
438
|
-
*
|
|
439
|
-
* @summary Get tenant settings
|
|
440
|
-
* @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
|
|
441
|
-
* @param {*} [options] Override http request option.
|
|
442
|
-
* @throws {RequiredError}
|
|
443
|
-
* @memberof SettingsApi
|
|
444
|
-
*/
|
|
445
|
-
public getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig) {
|
|
446
|
-
return SettingsApiFp(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
*
|
|
451
|
-
* @summary Get user settings
|
|
452
|
-
* @param {SettingsApiGetUserSettingsRequest} requestParameters Request parameters.
|
|
453
|
-
* @param {*} [options] Override http request option.
|
|
454
|
-
* @throws {RequiredError}
|
|
455
|
-
* @memberof SettingsApi
|
|
456
|
-
*/
|
|
457
|
-
public getUserSettings(requestParameters: SettingsApiGetUserSettingsRequest, options?: AxiosRequestConfig) {
|
|
458
|
-
return SettingsApiFp(this.configuration).getUserSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Creates new setting in EMIL Insurance Suite for tenants. Among other things, tenants can add multiple settings to customize their workspace on EIS.
|
|
463
|
-
* @summary Create the tenant setting
|
|
464
|
-
* @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
|
|
465
|
-
* @param {*} [options] Override http request option.
|
|
466
|
-
* @throws {RequiredError}
|
|
467
|
-
* @memberof SettingsApi
|
|
468
|
-
*/
|
|
469
|
-
public setTenantSetting(requestParameters: SettingsApiSetTenantSettingRequest, options?: AxiosRequestConfig) {
|
|
470
|
-
return SettingsApiFp(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* Creates new setting in EMIL Insurance Suite for users. Among other things, users can add multiple settings to customize their workspace on EIS.
|
|
475
|
-
* @summary Create the user setting
|
|
476
|
-
* @param {SettingsApiSetUserSettingRequest} requestParameters Request parameters.
|
|
477
|
-
* @param {*} [options] Override http request option.
|
|
478
|
-
* @throws {RequiredError}
|
|
479
|
-
* @memberof SettingsApi
|
|
480
|
-
*/
|
|
481
|
-
public setUserSetting(requestParameters: SettingsApiSetUserSettingRequest, options?: AxiosRequestConfig) {
|
|
482
|
-
return SettingsApiFp(this.configuration).setUserSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
483
|
-
}
|
|
484
|
-
}
|