@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.
Files changed (96) hide show
  1. package/.openapi-generator/FILES +9 -12
  2. package/README.md +6 -6
  3. package/api/custom-schema-api.ts +16 -16
  4. package/api/data-report-executor-api.ts +4 -8
  5. package/api.ts +0 -6
  6. package/base.ts +1 -1
  7. package/dist/api/custom-schema-api.d.ts +16 -16
  8. package/dist/api/custom-schema-api.js +16 -16
  9. package/dist/api/data-report-executor-api.d.ts +4 -8
  10. package/dist/api/data-report-executor-api.js +4 -8
  11. package/dist/api.d.ts +0 -3
  12. package/dist/api.js +0 -3
  13. package/dist/base.js +1 -1
  14. package/dist/models/alert-history-class.d.ts +108 -0
  15. package/dist/models/{create-permission-response-class.js → alert-history-class.js} +0 -0
  16. package/dist/models/{list-permissions-response-class.d.ts → channel-response-class.d.ts} +9 -9
  17. package/dist/models/{create-role-response-class.js → channel-response-class.js} +0 -0
  18. package/dist/models/compare-tariffs-response-class.d.ts +3 -2
  19. package/dist/models/data-report-filter-single-value-dto.d.ts +42 -0
  20. package/dist/models/{create-tenant-response-class.js → data-report-filter-single-value-dto.js} +0 -0
  21. package/dist/models/data-report-filter-value-dto.d.ts +31 -0
  22. package/dist/models/{get-role-response-class.js → data-report-filter-value-dto.js} +0 -0
  23. package/dist/models/{list-roles-response-class.d.ts → grouped-tariff-class.d.ts} +10 -10
  24. package/dist/models/{list-permissions-response-class.js → grouped-tariff-class.js} +0 -0
  25. package/dist/models/index.d.ts +9 -9
  26. package/dist/models/index.js +9 -9
  27. package/dist/models/{get-role-response-class.d.ts → insurance-company-response-class.d.ts} +6 -7
  28. package/dist/models/{list-roles-response-class.js → insurance-company-response-class.js} +0 -0
  29. package/dist/models/{update-role-response-class.d.ts → insurance-response-class.d.ts} +6 -7
  30. package/dist/models/{permission-class.js → insurance-response-class.js} +0 -0
  31. package/dist/models/list-alert-history-response-class.d.ts +3 -2
  32. package/dist/models/list-alerts-response-class.d.ts +3 -2
  33. package/dist/models/list-channels-response-class.d.ts +3 -2
  34. package/dist/models/list-custom-schemas-response-class.d.ts +1 -1
  35. package/dist/models/list-dashboards-response-class.d.ts +3 -2
  36. package/dist/models/list-insurance-companies-response-class.d.ts +3 -2
  37. package/dist/models/list-invites-response-class.d.ts +3 -2
  38. package/dist/models/list-report-history-response-class.d.ts +3 -2
  39. package/dist/models/list-reports-response-class.d.ts +3 -2
  40. package/dist/models/list-scenario-analyses-response-class.d.ts +3 -2
  41. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +3 -2
  42. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +3 -2
  43. package/dist/models/list-tariffs-response-class.d.ts +3 -2
  44. package/dist/models/list-users-response-class.d.ts +3 -2
  45. package/dist/models/report-history-class.d.ts +48 -0
  46. package/dist/models/{role-class.js → report-history-class.js} +0 -0
  47. package/dist/models/run-data-report-request-dto.d.ts +3 -2
  48. package/dist/models/run-data-report-response-class.d.ts +2 -2
  49. package/dist/models/scenario-analysis-date-response-class.d.ts +36 -0
  50. package/dist/models/{update-role-response-class.js → scenario-analysis-date-response-class.js} +0 -0
  51. package/models/alert-history-class.ts +114 -0
  52. package/models/{list-permissions-response-class.ts → channel-response-class.ts} +9 -9
  53. package/models/compare-tariffs-response-class.ts +3 -2
  54. package/models/data-report-filter-single-value-dto.ts +48 -0
  55. package/models/data-report-filter-value-dto.ts +37 -0
  56. package/models/{list-roles-response-class.ts → grouped-tariff-class.ts} +10 -10
  57. package/models/index.ts +9 -9
  58. package/models/{get-role-response-class.ts → insurance-company-response-class.ts} +6 -7
  59. package/models/{create-role-response-class.ts → insurance-response-class.ts} +6 -7
  60. package/models/list-alert-history-response-class.ts +3 -2
  61. package/models/list-alerts-response-class.ts +3 -2
  62. package/models/list-channels-response-class.ts +3 -2
  63. package/models/list-custom-schemas-response-class.ts +1 -1
  64. package/models/list-dashboards-response-class.ts +3 -2
  65. package/models/list-insurance-companies-response-class.ts +3 -2
  66. package/models/list-invites-response-class.ts +3 -2
  67. package/models/list-report-history-response-class.ts +3 -2
  68. package/models/list-reports-response-class.ts +3 -2
  69. package/models/list-scenario-analyses-response-class.ts +3 -2
  70. package/models/list-scenario-analysis-dates-response-class.ts +3 -2
  71. package/models/list-tariff-insurance-companies-response-class.ts +3 -2
  72. package/models/list-tariffs-response-class.ts +3 -2
  73. package/models/list-users-response-class.ts +3 -2
  74. package/models/{create-tenant-response-class.ts → report-history-class.ts} +20 -14
  75. package/models/run-data-report-request-dto.ts +3 -2
  76. package/models/run-data-report-response-class.ts +2 -3
  77. package/models/scenario-analysis-date-response-class.ts +42 -0
  78. package/package.json +1 -1
  79. package/api/permissions-api.ts +0 -307
  80. package/api/roles-api.ts +0 -564
  81. package/api/tenants-api.ts +0 -514
  82. package/dist/api/permissions-api.d.ts +0 -172
  83. package/dist/api/permissions-api.js +0 -331
  84. package/dist/api/roles-api.d.ts +0 -301
  85. package/dist/api/roles-api.js +0 -578
  86. package/dist/api/tenants-api.d.ts +0 -282
  87. package/dist/api/tenants-api.js +0 -514
  88. package/dist/models/create-permission-response-class.d.ts +0 -25
  89. package/dist/models/create-role-response-class.d.ts +0 -25
  90. package/dist/models/create-tenant-response-class.d.ts +0 -42
  91. package/dist/models/permission-class.d.ts +0 -66
  92. package/dist/models/role-class.d.ts +0 -60
  93. package/models/create-permission-response-class.ts +0 -31
  94. package/models/permission-class.ts +0 -72
  95. package/models/role-class.ts +0 -66
  96. package/models/update-role-response-class.ts +0 -31
@@ -1,514 +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 { CreateTenantRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateTenantResponseClass } from '../models';
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- import { URL, URLSearchParams } from 'url';
30
- const FormData = require('form-data');
31
- /**
32
- * TenantsApi - axios parameter creator
33
- * @export
34
- */
35
- export const TenantsApiAxiosParamCreator = function (configuration?: Configuration) {
36
- return {
37
- /**
38
- *
39
- * @param {CreateTenantRequestDto} createTenantRequestDto
40
- * @param {string} [authorization] Bearer Token
41
- * @param {*} [options] Override http request option.
42
- * @throws {RequiredError}
43
- */
44
- createTenant: async (createTenantRequestDto: CreateTenantRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45
- // verify required parameter 'createTenantRequestDto' is not null or undefined
46
- assertParamExists('createTenant', 'createTenantRequestDto', createTenantRequestDto)
47
- const localVarPath = `/tenantservice/v1/tenants`;
48
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50
- let baseOptions;
51
- let baseAccessToken;
52
- if (configuration) {
53
- baseOptions = configuration.baseOptions;
54
- baseAccessToken = configuration.accessToken;
55
- }
56
-
57
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
58
- const localVarHeaderParameter = {} as any;
59
- const localVarQueryParameter = {} as any;
60
-
61
- // authentication bearer required
62
- // http bearer authentication required
63
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
64
-
65
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
66
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
67
- }
68
-
69
-
70
-
71
- localVarHeaderParameter['Content-Type'] = 'application/json';
72
-
73
- setSearchParams(localVarUrlObj, localVarQueryParameter);
74
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
- localVarRequestOptions.data = serializeDataIfNeeded(createTenantRequestDto, localVarRequestOptions, configuration)
77
-
78
- return {
79
- url: toPathString(localVarUrlObj),
80
- options: localVarRequestOptions,
81
- };
82
- },
83
- /**
84
- *
85
- * @param {string} [authorization] Bearer Token
86
- * @param {*} [options] Override http request option.
87
- * @throws {RequiredError}
88
- */
89
- getQuicksightUrl: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
90
- const localVarPath = `/tenantservice/v1/tenants/quicksight`;
91
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
92
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
93
- let baseOptions;
94
- let baseAccessToken;
95
- if (configuration) {
96
- baseOptions = configuration.baseOptions;
97
- baseAccessToken = configuration.accessToken;
98
- }
99
-
100
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
101
- const localVarHeaderParameter = {} as any;
102
- const localVarQueryParameter = {} as any;
103
-
104
- // authentication bearer required
105
- // http bearer authentication required
106
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
107
-
108
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
109
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
110
- }
111
-
112
-
113
-
114
- setSearchParams(localVarUrlObj, localVarQueryParameter);
115
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
116
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
117
-
118
- return {
119
- url: toPathString(localVarUrlObj),
120
- options: localVarRequestOptions,
121
- };
122
- },
123
- /**
124
- *
125
- * @param {number} id
126
- * @param {string} [authorization] Bearer Token
127
- * @param {*} [options] Override http request option.
128
- * @throws {RequiredError}
129
- */
130
- getTenant: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
131
- // verify required parameter 'id' is not null or undefined
132
- assertParamExists('getTenant', 'id', id)
133
- const localVarPath = `/tenantservice/v1/tenants/{id}`
134
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
135
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
137
- let baseOptions;
138
- let baseAccessToken;
139
- if (configuration) {
140
- baseOptions = configuration.baseOptions;
141
- baseAccessToken = configuration.accessToken;
142
- }
143
-
144
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
145
- const localVarHeaderParameter = {} as any;
146
- const localVarQueryParameter = {} as any;
147
-
148
- // authentication bearer required
149
- // http bearer authentication required
150
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
151
-
152
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
153
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
154
- }
155
-
156
-
157
-
158
- setSearchParams(localVarUrlObj, localVarQueryParameter);
159
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
161
-
162
- return {
163
- url: toPathString(localVarUrlObj),
164
- options: localVarRequestOptions,
165
- };
166
- },
167
- /**
168
- *
169
- * @param {string} [authorization] Bearer Token
170
- * @param {number} [pageSize] Page size
171
- * @param {string} [pageToken] Page token
172
- * @param {string} [filter] List filter
173
- * @param {string} [search] Search query
174
- * @param {string} [order] Ordering criteria
175
- * @param {string} [expand] Extra fields to fetch
176
- * @param {*} [options] Override http request option.
177
- * @throws {RequiredError}
178
- */
179
- listTenants: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
180
- const localVarPath = `/tenantservice/v1/tenants`;
181
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
182
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
183
- let baseOptions;
184
- let baseAccessToken;
185
- if (configuration) {
186
- baseOptions = configuration.baseOptions;
187
- baseAccessToken = configuration.accessToken;
188
- }
189
-
190
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
191
- const localVarHeaderParameter = {} as any;
192
- const localVarQueryParameter = {} as any;
193
-
194
- // authentication bearer required
195
- // http bearer authentication required
196
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
197
-
198
- if (pageSize !== undefined) {
199
- localVarQueryParameter['pageSize'] = pageSize;
200
- }
201
-
202
- if (pageToken !== undefined) {
203
- localVarQueryParameter['pageToken'] = pageToken;
204
- }
205
-
206
- if (filter !== undefined) {
207
- localVarQueryParameter['filter'] = filter;
208
- }
209
-
210
- if (search !== undefined) {
211
- localVarQueryParameter['search'] = search;
212
- }
213
-
214
- if (order !== undefined) {
215
- localVarQueryParameter['order'] = order;
216
- }
217
-
218
- if (expand !== undefined) {
219
- localVarQueryParameter['expand'] = expand;
220
- }
221
-
222
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
223
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
224
- }
225
-
226
-
227
-
228
- setSearchParams(localVarUrlObj, localVarQueryParameter);
229
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
231
-
232
- return {
233
- url: toPathString(localVarUrlObj),
234
- options: localVarRequestOptions,
235
- };
236
- },
237
- }
238
- };
239
-
240
- /**
241
- * TenantsApi - functional programming interface
242
- * @export
243
- */
244
- export const TenantsApiFp = function(configuration?: Configuration) {
245
- const localVarAxiosParamCreator = TenantsApiAxiosParamCreator(configuration)
246
- return {
247
- /**
248
- *
249
- * @param {CreateTenantRequestDto} createTenantRequestDto
250
- * @param {string} [authorization] Bearer Token
251
- * @param {*} [options] Override http request option.
252
- * @throws {RequiredError}
253
- */
254
- async createTenant(createTenantRequestDto: CreateTenantRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTenantResponseClass>> {
255
- const localVarAxiosArgs = await localVarAxiosParamCreator.createTenant(createTenantRequestDto, authorization, options);
256
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
257
- },
258
- /**
259
- *
260
- * @param {string} [authorization] Bearer Token
261
- * @param {*} [options] Override http request option.
262
- * @throws {RequiredError}
263
- */
264
- async getQuicksightUrl(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
265
- const localVarAxiosArgs = await localVarAxiosParamCreator.getQuicksightUrl(authorization, options);
266
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
267
- },
268
- /**
269
- *
270
- * @param {number} id
271
- * @param {string} [authorization] Bearer Token
272
- * @param {*} [options] Override http request option.
273
- * @throws {RequiredError}
274
- */
275
- async getTenant(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
276
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTenant(id, authorization, options);
277
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
278
- },
279
- /**
280
- *
281
- * @param {string} [authorization] Bearer Token
282
- * @param {number} [pageSize] Page size
283
- * @param {string} [pageToken] Page token
284
- * @param {string} [filter] List filter
285
- * @param {string} [search] Search query
286
- * @param {string} [order] Ordering criteria
287
- * @param {string} [expand] Extra fields to fetch
288
- * @param {*} [options] Override http request option.
289
- * @throws {RequiredError}
290
- */
291
- async listTenants(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
292
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTenants(authorization, pageSize, pageToken, filter, search, order, expand, options);
293
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
294
- },
295
- }
296
- };
297
-
298
- /**
299
- * TenantsApi - factory interface
300
- * @export
301
- */
302
- export const TenantsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
303
- const localVarFp = TenantsApiFp(configuration)
304
- return {
305
- /**
306
- *
307
- * @param {CreateTenantRequestDto} createTenantRequestDto
308
- * @param {string} [authorization] Bearer Token
309
- * @param {*} [options] Override http request option.
310
- * @throws {RequiredError}
311
- */
312
- createTenant(createTenantRequestDto: CreateTenantRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTenantResponseClass> {
313
- return localVarFp.createTenant(createTenantRequestDto, authorization, options).then((request) => request(axios, basePath));
314
- },
315
- /**
316
- *
317
- * @param {string} [authorization] Bearer Token
318
- * @param {*} [options] Override http request option.
319
- * @throws {RequiredError}
320
- */
321
- getQuicksightUrl(authorization?: string, options?: any): AxiosPromise<object> {
322
- return localVarFp.getQuicksightUrl(authorization, options).then((request) => request(axios, basePath));
323
- },
324
- /**
325
- *
326
- * @param {number} id
327
- * @param {string} [authorization] Bearer Token
328
- * @param {*} [options] Override http request option.
329
- * @throws {RequiredError}
330
- */
331
- getTenant(id: number, authorization?: string, options?: any): AxiosPromise<void> {
332
- return localVarFp.getTenant(id, authorization, options).then((request) => request(axios, basePath));
333
- },
334
- /**
335
- *
336
- * @param {string} [authorization] Bearer Token
337
- * @param {number} [pageSize] Page size
338
- * @param {string} [pageToken] Page token
339
- * @param {string} [filter] List filter
340
- * @param {string} [search] Search query
341
- * @param {string} [order] Ordering criteria
342
- * @param {string} [expand] Extra fields to fetch
343
- * @param {*} [options] Override http request option.
344
- * @throws {RequiredError}
345
- */
346
- listTenants(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
347
- return localVarFp.listTenants(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
348
- },
349
- };
350
- };
351
-
352
- /**
353
- * Request parameters for createTenant operation in TenantsApi.
354
- * @export
355
- * @interface TenantsApiCreateTenantRequest
356
- */
357
- export interface TenantsApiCreateTenantRequest {
358
- /**
359
- *
360
- * @type {CreateTenantRequestDto}
361
- * @memberof TenantsApiCreateTenant
362
- */
363
- readonly createTenantRequestDto: CreateTenantRequestDto
364
-
365
- /**
366
- * Bearer Token
367
- * @type {string}
368
- * @memberof TenantsApiCreateTenant
369
- */
370
- readonly authorization?: string
371
- }
372
-
373
- /**
374
- * Request parameters for getQuicksightUrl operation in TenantsApi.
375
- * @export
376
- * @interface TenantsApiGetQuicksightUrlRequest
377
- */
378
- export interface TenantsApiGetQuicksightUrlRequest {
379
- /**
380
- * Bearer Token
381
- * @type {string}
382
- * @memberof TenantsApiGetQuicksightUrl
383
- */
384
- readonly authorization?: string
385
- }
386
-
387
- /**
388
- * Request parameters for getTenant operation in TenantsApi.
389
- * @export
390
- * @interface TenantsApiGetTenantRequest
391
- */
392
- export interface TenantsApiGetTenantRequest {
393
- /**
394
- *
395
- * @type {number}
396
- * @memberof TenantsApiGetTenant
397
- */
398
- readonly id: number
399
-
400
- /**
401
- * Bearer Token
402
- * @type {string}
403
- * @memberof TenantsApiGetTenant
404
- */
405
- readonly authorization?: string
406
- }
407
-
408
- /**
409
- * Request parameters for listTenants operation in TenantsApi.
410
- * @export
411
- * @interface TenantsApiListTenantsRequest
412
- */
413
- export interface TenantsApiListTenantsRequest {
414
- /**
415
- * Bearer Token
416
- * @type {string}
417
- * @memberof TenantsApiListTenants
418
- */
419
- readonly authorization?: string
420
-
421
- /**
422
- * Page size
423
- * @type {number}
424
- * @memberof TenantsApiListTenants
425
- */
426
- readonly pageSize?: number
427
-
428
- /**
429
- * Page token
430
- * @type {string}
431
- * @memberof TenantsApiListTenants
432
- */
433
- readonly pageToken?: string
434
-
435
- /**
436
- * List filter
437
- * @type {string}
438
- * @memberof TenantsApiListTenants
439
- */
440
- readonly filter?: string
441
-
442
- /**
443
- * Search query
444
- * @type {string}
445
- * @memberof TenantsApiListTenants
446
- */
447
- readonly search?: string
448
-
449
- /**
450
- * Ordering criteria
451
- * @type {string}
452
- * @memberof TenantsApiListTenants
453
- */
454
- readonly order?: string
455
-
456
- /**
457
- * Extra fields to fetch
458
- * @type {string}
459
- * @memberof TenantsApiListTenants
460
- */
461
- readonly expand?: string
462
- }
463
-
464
- /**
465
- * TenantsApi - object-oriented interface
466
- * @export
467
- * @class TenantsApi
468
- * @extends {BaseAPI}
469
- */
470
- export class TenantsApi extends BaseAPI {
471
- /**
472
- *
473
- * @param {TenantsApiCreateTenantRequest} requestParameters Request parameters.
474
- * @param {*} [options] Override http request option.
475
- * @throws {RequiredError}
476
- * @memberof TenantsApi
477
- */
478
- public createTenant(requestParameters: TenantsApiCreateTenantRequest, options?: AxiosRequestConfig) {
479
- return TenantsApiFp(this.configuration).createTenant(requestParameters.createTenantRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
480
- }
481
-
482
- /**
483
- *
484
- * @param {TenantsApiGetQuicksightUrlRequest} requestParameters Request parameters.
485
- * @param {*} [options] Override http request option.
486
- * @throws {RequiredError}
487
- * @memberof TenantsApi
488
- */
489
- public getQuicksightUrl(requestParameters: TenantsApiGetQuicksightUrlRequest = {}, options?: AxiosRequestConfig) {
490
- return TenantsApiFp(this.configuration).getQuicksightUrl(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
491
- }
492
-
493
- /**
494
- *
495
- * @param {TenantsApiGetTenantRequest} requestParameters Request parameters.
496
- * @param {*} [options] Override http request option.
497
- * @throws {RequiredError}
498
- * @memberof TenantsApi
499
- */
500
- public getTenant(requestParameters: TenantsApiGetTenantRequest, options?: AxiosRequestConfig) {
501
- return TenantsApiFp(this.configuration).getTenant(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
502
- }
503
-
504
- /**
505
- *
506
- * @param {TenantsApiListTenantsRequest} requestParameters Request parameters.
507
- * @param {*} [options] Override http request option.
508
- * @throws {RequiredError}
509
- * @memberof TenantsApi
510
- */
511
- public listTenants(requestParameters: TenantsApiListTenantsRequest = {}, options?: AxiosRequestConfig) {
512
- return TenantsApiFp(this.configuration).listTenants(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
513
- }
514
- }
@@ -1,172 +0,0 @@
1
- /**
2
- * EMIL Tenant Service
3
- * The EMIL TenantService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
15
- import { CreatePermissionRequestDto } from '../models';
16
- import { CreatePermissionResponseClass } from '../models';
17
- import { ListPermissionsResponseClass } from '../models';
18
- /**
19
- * PermissionsApi - axios parameter creator
20
- * @export
21
- */
22
- export declare const PermissionsApiAxiosParamCreator: (configuration?: Configuration) => {
23
- /**
24
- *
25
- * @param {CreatePermissionRequestDto} createPermissionRequestDto
26
- * @param {*} [options] Override http request option.
27
- * @throws {RequiredError}
28
- */
29
- createPermission: (createPermissionRequestDto: CreatePermissionRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
- /**
31
- *
32
- * @param {number} [pageSize] Page size
33
- * @param {string} [pageToken] Page token
34
- * @param {string} [filter] List filter
35
- * @param {string} [search] Search query
36
- * @param {string} [order] Ordering criteria
37
- * @param {string} [expand] Extra fields to fetch
38
- * @param {*} [options] Override http request option.
39
- * @throws {RequiredError}
40
- */
41
- listPermissions: (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
- };
43
- /**
44
- * PermissionsApi - functional programming interface
45
- * @export
46
- */
47
- export declare const PermissionsApiFp: (configuration?: Configuration) => {
48
- /**
49
- *
50
- * @param {CreatePermissionRequestDto} createPermissionRequestDto
51
- * @param {*} [options] Override http request option.
52
- * @throws {RequiredError}
53
- */
54
- createPermission(createPermissionRequestDto: CreatePermissionRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePermissionResponseClass>>;
55
- /**
56
- *
57
- * @param {number} [pageSize] Page size
58
- * @param {string} [pageToken] Page token
59
- * @param {string} [filter] List filter
60
- * @param {string} [search] Search query
61
- * @param {string} [order] Ordering criteria
62
- * @param {string} [expand] Extra fields to fetch
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- */
66
- listPermissions(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsResponseClass>>;
67
- };
68
- /**
69
- * PermissionsApi - factory interface
70
- * @export
71
- */
72
- export declare const PermissionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
73
- /**
74
- *
75
- * @param {CreatePermissionRequestDto} createPermissionRequestDto
76
- * @param {*} [options] Override http request option.
77
- * @throws {RequiredError}
78
- */
79
- createPermission(createPermissionRequestDto: CreatePermissionRequestDto, options?: any): AxiosPromise<CreatePermissionResponseClass>;
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(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPermissionsResponseClass>;
92
- };
93
- /**
94
- * Request parameters for createPermission operation in PermissionsApi.
95
- * @export
96
- * @interface PermissionsApiCreatePermissionRequest
97
- */
98
- export interface PermissionsApiCreatePermissionRequest {
99
- /**
100
- *
101
- * @type {CreatePermissionRequestDto}
102
- * @memberof PermissionsApiCreatePermission
103
- */
104
- readonly createPermissionRequestDto: CreatePermissionRequestDto;
105
- }
106
- /**
107
- * Request parameters for listPermissions operation in PermissionsApi.
108
- * @export
109
- * @interface PermissionsApiListPermissionsRequest
110
- */
111
- export interface PermissionsApiListPermissionsRequest {
112
- /**
113
- * Page size
114
- * @type {number}
115
- * @memberof PermissionsApiListPermissions
116
- */
117
- readonly pageSize?: number;
118
- /**
119
- * Page token
120
- * @type {string}
121
- * @memberof PermissionsApiListPermissions
122
- */
123
- readonly pageToken?: string;
124
- /**
125
- * List filter
126
- * @type {string}
127
- * @memberof PermissionsApiListPermissions
128
- */
129
- readonly filter?: string;
130
- /**
131
- * Search query
132
- * @type {string}
133
- * @memberof PermissionsApiListPermissions
134
- */
135
- readonly search?: string;
136
- /**
137
- * Ordering criteria
138
- * @type {string}
139
- * @memberof PermissionsApiListPermissions
140
- */
141
- readonly order?: string;
142
- /**
143
- * Extra fields to fetch
144
- * @type {string}
145
- * @memberof PermissionsApiListPermissions
146
- */
147
- readonly expand?: string;
148
- }
149
- /**
150
- * PermissionsApi - object-oriented interface
151
- * @export
152
- * @class PermissionsApi
153
- * @extends {BaseAPI}
154
- */
155
- export declare class PermissionsApi extends BaseAPI {
156
- /**
157
- *
158
- * @param {PermissionsApiCreatePermissionRequest} requestParameters Request parameters.
159
- * @param {*} [options] Override http request option.
160
- * @throws {RequiredError}
161
- * @memberof PermissionsApi
162
- */
163
- createPermission(requestParameters: PermissionsApiCreatePermissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePermissionResponseClass, any>>;
164
- /**
165
- *
166
- * @param {PermissionsApiListPermissionsRequest} requestParameters Request parameters.
167
- * @param {*} [options] Override http request option.
168
- * @throws {RequiredError}
169
- * @memberof PermissionsApi
170
- */
171
- listPermissions(requestParameters?: PermissionsApiListPermissionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPermissionsResponseClass, any>>;
172
- }