@emilgroup/tenant-sdk-node 1.0.0-beta.0 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -12
- package/README.md +6 -6
- package/api/custom-schema-api.ts +16 -16
- package/api/data-report-executor-api.ts +4 -8
- package/api.ts +0 -6
- package/base.ts +1 -1
- package/dist/api/custom-schema-api.d.ts +16 -16
- package/dist/api/custom-schema-api.js +16 -16
- package/dist/api/data-report-executor-api.d.ts +4 -8
- package/dist/api/data-report-executor-api.js +4 -8
- package/dist/api.d.ts +0 -3
- package/dist/api.js +0 -3
- package/dist/base.js +1 -1
- package/dist/models/alert-history-class.d.ts +108 -0
- package/dist/models/{create-permission-response-class.js → alert-history-class.js} +0 -0
- package/dist/models/{list-permissions-response-class.d.ts → channel-response-class.d.ts} +9 -9
- package/dist/models/{create-role-response-class.js → channel-response-class.js} +0 -0
- package/dist/models/compare-tariffs-response-class.d.ts +3 -2
- package/dist/models/data-report-filter-single-value-dto.d.ts +42 -0
- package/dist/models/{create-tenant-response-class.js → data-report-filter-single-value-dto.js} +0 -0
- package/dist/models/data-report-filter-value-dto.d.ts +31 -0
- package/dist/models/{get-role-response-class.js → data-report-filter-value-dto.js} +0 -0
- package/dist/models/{list-roles-response-class.d.ts → grouped-tariff-class.d.ts} +10 -10
- package/dist/models/{list-permissions-response-class.js → grouped-tariff-class.js} +0 -0
- package/dist/models/index.d.ts +9 -9
- package/dist/models/index.js +9 -9
- package/dist/models/{get-role-response-class.d.ts → insurance-company-response-class.d.ts} +6 -7
- package/dist/models/{list-roles-response-class.js → insurance-company-response-class.js} +0 -0
- package/dist/models/{update-role-response-class.d.ts → insurance-response-class.d.ts} +6 -7
- package/dist/models/{permission-class.js → insurance-response-class.js} +0 -0
- package/dist/models/list-alert-history-response-class.d.ts +3 -2
- package/dist/models/list-alerts-response-class.d.ts +3 -2
- package/dist/models/list-channels-response-class.d.ts +3 -2
- package/dist/models/list-custom-schemas-response-class.d.ts +1 -1
- package/dist/models/list-dashboards-response-class.d.ts +3 -2
- package/dist/models/list-insurance-companies-response-class.d.ts +3 -2
- package/dist/models/list-invites-response-class.d.ts +3 -2
- package/dist/models/list-report-history-response-class.d.ts +3 -2
- package/dist/models/list-reports-response-class.d.ts +3 -2
- package/dist/models/list-scenario-analyses-response-class.d.ts +3 -2
- package/dist/models/list-scenario-analysis-dates-response-class.d.ts +3 -2
- package/dist/models/list-tariff-insurance-companies-response-class.d.ts +3 -2
- package/dist/models/list-tariffs-response-class.d.ts +3 -2
- package/dist/models/list-users-response-class.d.ts +3 -2
- package/dist/models/report-history-class.d.ts +48 -0
- package/dist/models/{role-class.js → report-history-class.js} +0 -0
- package/dist/models/run-data-report-request-dto.d.ts +3 -2
- package/dist/models/run-data-report-response-class.d.ts +2 -2
- package/dist/models/scenario-analysis-date-response-class.d.ts +36 -0
- package/dist/models/{update-role-response-class.js → scenario-analysis-date-response-class.js} +0 -0
- package/models/alert-history-class.ts +114 -0
- package/models/{list-permissions-response-class.ts → channel-response-class.ts} +9 -9
- package/models/compare-tariffs-response-class.ts +3 -2
- package/models/data-report-filter-single-value-dto.ts +48 -0
- package/models/data-report-filter-value-dto.ts +37 -0
- package/models/{list-roles-response-class.ts → grouped-tariff-class.ts} +10 -10
- package/models/index.ts +9 -9
- package/models/{get-role-response-class.ts → insurance-company-response-class.ts} +6 -7
- package/models/{create-role-response-class.ts → insurance-response-class.ts} +6 -7
- package/models/list-alert-history-response-class.ts +3 -2
- package/models/list-alerts-response-class.ts +3 -2
- package/models/list-channels-response-class.ts +3 -2
- package/models/list-custom-schemas-response-class.ts +1 -1
- package/models/list-dashboards-response-class.ts +3 -2
- package/models/list-insurance-companies-response-class.ts +3 -2
- package/models/list-invites-response-class.ts +3 -2
- package/models/list-report-history-response-class.ts +3 -2
- package/models/list-reports-response-class.ts +3 -2
- package/models/list-scenario-analyses-response-class.ts +3 -2
- package/models/list-scenario-analysis-dates-response-class.ts +3 -2
- package/models/list-tariff-insurance-companies-response-class.ts +3 -2
- package/models/list-tariffs-response-class.ts +3 -2
- package/models/list-users-response-class.ts +3 -2
- package/models/{create-tenant-response-class.ts → report-history-class.ts} +20 -14
- package/models/run-data-report-request-dto.ts +3 -2
- package/models/run-data-report-response-class.ts +2 -3
- package/models/scenario-analysis-date-response-class.ts +42 -0
- package/package.json +1 -1
- package/api/permissions-api.ts +0 -307
- package/api/roles-api.ts +0 -564
- package/api/tenants-api.ts +0 -514
- package/dist/api/permissions-api.d.ts +0 -172
- package/dist/api/permissions-api.js +0 -331
- package/dist/api/roles-api.d.ts +0 -301
- package/dist/api/roles-api.js +0 -578
- package/dist/api/tenants-api.d.ts +0 -282
- package/dist/api/tenants-api.js +0 -514
- package/dist/models/create-permission-response-class.d.ts +0 -25
- package/dist/models/create-role-response-class.d.ts +0 -25
- package/dist/models/create-tenant-response-class.d.ts +0 -42
- package/dist/models/permission-class.d.ts +0 -66
- package/dist/models/role-class.d.ts +0 -60
- package/models/create-permission-response-class.ts +0 -31
- package/models/permission-class.ts +0 -72
- package/models/role-class.ts +0 -66
- package/models/update-role-response-class.ts +0 -31
package/api/permissions-api.ts
DELETED
|
@@ -1,307 +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
|
-
*
|
|
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
|
-
}
|