@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
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL Tenant Service
6
- * The EMIL TenantService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- var __importDefault = (this && this.__importDefault) || function (mod) {
78
- return (mod && mod.__esModule) ? mod : { "default": mod };
79
- };
80
- Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.TenantsApi = exports.TenantsApiFactory = exports.TenantsApiFp = exports.TenantsApiAxiosParamCreator = void 0;
82
- var axios_1 = __importDefault(require("axios"));
83
- // Some imports not used depending on template conditions
84
- // @ts-ignore
85
- var common_1 = require("../common");
86
- // @ts-ignore
87
- var base_1 = require("../base");
88
- // URLSearchParams not necessarily used
89
- // @ts-ignore
90
- var url_1 = require("url");
91
- var FormData = require('form-data');
92
- /**
93
- * TenantsApi - axios parameter creator
94
- * @export
95
- */
96
- var TenantsApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
98
- return {
99
- /**
100
- *
101
- * @param {CreateTenantRequestDto} createTenantRequestDto
102
- * @param {string} [authorization] Bearer Token
103
- * @param {*} [options] Override http request option.
104
- * @throws {RequiredError}
105
- */
106
- createTenant: function (createTenantRequestDto, authorization, options) {
107
- if (options === void 0) { options = {}; }
108
- return __awaiter(_this, void 0, void 0, function () {
109
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
- return __generator(this, function (_a) {
111
- switch (_a.label) {
112
- case 0:
113
- // verify required parameter 'createTenantRequestDto' is not null or undefined
114
- (0, common_1.assertParamExists)('createTenant', 'createTenantRequestDto', createTenantRequestDto);
115
- localVarPath = "/tenantservice/v1/tenants";
116
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
- if (configuration) {
118
- baseOptions = configuration.baseOptions;
119
- baseAccessToken = configuration.accessToken;
120
- }
121
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
122
- localVarHeaderParameter = {};
123
- localVarQueryParameter = {};
124
- // authentication bearer required
125
- // http bearer authentication required
126
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
- case 1:
128
- // authentication bearer required
129
- // http bearer authentication required
130
- _a.sent();
131
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
- }
134
- localVarHeaderParameter['Content-Type'] = 'application/json';
135
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTenantRequestDto, localVarRequestOptions, configuration);
139
- return [2 /*return*/, {
140
- url: (0, common_1.toPathString)(localVarUrlObj),
141
- options: localVarRequestOptions,
142
- }];
143
- }
144
- });
145
- });
146
- },
147
- /**
148
- *
149
- * @param {string} [authorization] Bearer Token
150
- * @param {*} [options] Override http request option.
151
- * @throws {RequiredError}
152
- */
153
- getQuicksightUrl: function (authorization, options) {
154
- if (options === void 0) { options = {}; }
155
- return __awaiter(_this, void 0, void 0, function () {
156
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
157
- return __generator(this, function (_a) {
158
- switch (_a.label) {
159
- case 0:
160
- localVarPath = "/tenantservice/v1/tenants/quicksight";
161
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
162
- if (configuration) {
163
- baseOptions = configuration.baseOptions;
164
- baseAccessToken = configuration.accessToken;
165
- }
166
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
167
- localVarHeaderParameter = {};
168
- localVarQueryParameter = {};
169
- // authentication bearer required
170
- // http bearer authentication required
171
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
172
- case 1:
173
- // authentication bearer required
174
- // http bearer authentication required
175
- _a.sent();
176
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
- }
179
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
182
- return [2 /*return*/, {
183
- url: (0, common_1.toPathString)(localVarUrlObj),
184
- options: localVarRequestOptions,
185
- }];
186
- }
187
- });
188
- });
189
- },
190
- /**
191
- *
192
- * @param {number} id
193
- * @param {string} [authorization] Bearer Token
194
- * @param {*} [options] Override http request option.
195
- * @throws {RequiredError}
196
- */
197
- getTenant: function (id, authorization, options) {
198
- if (options === void 0) { options = {}; }
199
- return __awaiter(_this, void 0, void 0, function () {
200
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
201
- return __generator(this, function (_a) {
202
- switch (_a.label) {
203
- case 0:
204
- // verify required parameter 'id' is not null or undefined
205
- (0, common_1.assertParamExists)('getTenant', 'id', id);
206
- localVarPath = "/tenantservice/v1/tenants/{id}"
207
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
208
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
209
- if (configuration) {
210
- baseOptions = configuration.baseOptions;
211
- baseAccessToken = configuration.accessToken;
212
- }
213
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
214
- localVarHeaderParameter = {};
215
- localVarQueryParameter = {};
216
- // authentication bearer required
217
- // http bearer authentication required
218
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
219
- case 1:
220
- // authentication bearer required
221
- // http bearer authentication required
222
- _a.sent();
223
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
225
- }
226
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
227
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
228
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
229
- return [2 /*return*/, {
230
- url: (0, common_1.toPathString)(localVarUrlObj),
231
- options: localVarRequestOptions,
232
- }];
233
- }
234
- });
235
- });
236
- },
237
- /**
238
- *
239
- * @param {string} [authorization] Bearer Token
240
- * @param {number} [pageSize] Page size
241
- * @param {string} [pageToken] Page token
242
- * @param {string} [filter] List filter
243
- * @param {string} [search] Search query
244
- * @param {string} [order] Ordering criteria
245
- * @param {string} [expand] Extra fields to fetch
246
- * @param {*} [options] Override http request option.
247
- * @throws {RequiredError}
248
- */
249
- listTenants: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
250
- if (options === void 0) { options = {}; }
251
- return __awaiter(_this, void 0, void 0, function () {
252
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
253
- return __generator(this, function (_a) {
254
- switch (_a.label) {
255
- case 0:
256
- localVarPath = "/tenantservice/v1/tenants";
257
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
258
- if (configuration) {
259
- baseOptions = configuration.baseOptions;
260
- baseAccessToken = configuration.accessToken;
261
- }
262
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
263
- localVarHeaderParameter = {};
264
- localVarQueryParameter = {};
265
- // authentication bearer required
266
- // http bearer authentication required
267
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
268
- case 1:
269
- // authentication bearer required
270
- // http bearer authentication required
271
- _a.sent();
272
- if (pageSize !== undefined) {
273
- localVarQueryParameter['pageSize'] = pageSize;
274
- }
275
- if (pageToken !== undefined) {
276
- localVarQueryParameter['pageToken'] = pageToken;
277
- }
278
- if (filter !== undefined) {
279
- localVarQueryParameter['filter'] = filter;
280
- }
281
- if (search !== undefined) {
282
- localVarQueryParameter['search'] = search;
283
- }
284
- if (order !== undefined) {
285
- localVarQueryParameter['order'] = order;
286
- }
287
- if (expand !== undefined) {
288
- localVarQueryParameter['expand'] = expand;
289
- }
290
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
291
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
292
- }
293
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
294
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
296
- return [2 /*return*/, {
297
- url: (0, common_1.toPathString)(localVarUrlObj),
298
- options: localVarRequestOptions,
299
- }];
300
- }
301
- });
302
- });
303
- },
304
- };
305
- };
306
- exports.TenantsApiAxiosParamCreator = TenantsApiAxiosParamCreator;
307
- /**
308
- * TenantsApi - functional programming interface
309
- * @export
310
- */
311
- var TenantsApiFp = function (configuration) {
312
- var localVarAxiosParamCreator = (0, exports.TenantsApiAxiosParamCreator)(configuration);
313
- return {
314
- /**
315
- *
316
- * @param {CreateTenantRequestDto} createTenantRequestDto
317
- * @param {string} [authorization] Bearer Token
318
- * @param {*} [options] Override http request option.
319
- * @throws {RequiredError}
320
- */
321
- createTenant: function (createTenantRequestDto, authorization, options) {
322
- return __awaiter(this, void 0, void 0, function () {
323
- var localVarAxiosArgs;
324
- return __generator(this, function (_a) {
325
- switch (_a.label) {
326
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTenant(createTenantRequestDto, authorization, options)];
327
- case 1:
328
- localVarAxiosArgs = _a.sent();
329
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
330
- }
331
- });
332
- });
333
- },
334
- /**
335
- *
336
- * @param {string} [authorization] Bearer Token
337
- * @param {*} [options] Override http request option.
338
- * @throws {RequiredError}
339
- */
340
- getQuicksightUrl: function (authorization, options) {
341
- return __awaiter(this, void 0, void 0, function () {
342
- var localVarAxiosArgs;
343
- return __generator(this, function (_a) {
344
- switch (_a.label) {
345
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getQuicksightUrl(authorization, options)];
346
- case 1:
347
- localVarAxiosArgs = _a.sent();
348
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
349
- }
350
- });
351
- });
352
- },
353
- /**
354
- *
355
- * @param {number} id
356
- * @param {string} [authorization] Bearer Token
357
- * @param {*} [options] Override http request option.
358
- * @throws {RequiredError}
359
- */
360
- getTenant: function (id, authorization, options) {
361
- return __awaiter(this, void 0, void 0, function () {
362
- var localVarAxiosArgs;
363
- return __generator(this, function (_a) {
364
- switch (_a.label) {
365
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTenant(id, authorization, options)];
366
- case 1:
367
- localVarAxiosArgs = _a.sent();
368
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
369
- }
370
- });
371
- });
372
- },
373
- /**
374
- *
375
- * @param {string} [authorization] Bearer Token
376
- * @param {number} [pageSize] Page size
377
- * @param {string} [pageToken] Page token
378
- * @param {string} [filter] List filter
379
- * @param {string} [search] Search query
380
- * @param {string} [order] Ordering criteria
381
- * @param {string} [expand] Extra fields to fetch
382
- * @param {*} [options] Override http request option.
383
- * @throws {RequiredError}
384
- */
385
- listTenants: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
386
- return __awaiter(this, void 0, void 0, function () {
387
- var localVarAxiosArgs;
388
- return __generator(this, function (_a) {
389
- switch (_a.label) {
390
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTenants(authorization, pageSize, pageToken, filter, search, order, expand, options)];
391
- case 1:
392
- localVarAxiosArgs = _a.sent();
393
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
394
- }
395
- });
396
- });
397
- },
398
- };
399
- };
400
- exports.TenantsApiFp = TenantsApiFp;
401
- /**
402
- * TenantsApi - factory interface
403
- * @export
404
- */
405
- var TenantsApiFactory = function (configuration, basePath, axios) {
406
- var localVarFp = (0, exports.TenantsApiFp)(configuration);
407
- return {
408
- /**
409
- *
410
- * @param {CreateTenantRequestDto} createTenantRequestDto
411
- * @param {string} [authorization] Bearer Token
412
- * @param {*} [options] Override http request option.
413
- * @throws {RequiredError}
414
- */
415
- createTenant: function (createTenantRequestDto, authorization, options) {
416
- return localVarFp.createTenant(createTenantRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
417
- },
418
- /**
419
- *
420
- * @param {string} [authorization] Bearer Token
421
- * @param {*} [options] Override http request option.
422
- * @throws {RequiredError}
423
- */
424
- getQuicksightUrl: function (authorization, options) {
425
- return localVarFp.getQuicksightUrl(authorization, options).then(function (request) { return request(axios, basePath); });
426
- },
427
- /**
428
- *
429
- * @param {number} id
430
- * @param {string} [authorization] Bearer Token
431
- * @param {*} [options] Override http request option.
432
- * @throws {RequiredError}
433
- */
434
- getTenant: function (id, authorization, options) {
435
- return localVarFp.getTenant(id, authorization, options).then(function (request) { return request(axios, basePath); });
436
- },
437
- /**
438
- *
439
- * @param {string} [authorization] Bearer Token
440
- * @param {number} [pageSize] Page size
441
- * @param {string} [pageToken] Page token
442
- * @param {string} [filter] List filter
443
- * @param {string} [search] Search query
444
- * @param {string} [order] Ordering criteria
445
- * @param {string} [expand] Extra fields to fetch
446
- * @param {*} [options] Override http request option.
447
- * @throws {RequiredError}
448
- */
449
- listTenants: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
450
- return localVarFp.listTenants(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
451
- },
452
- };
453
- };
454
- exports.TenantsApiFactory = TenantsApiFactory;
455
- /**
456
- * TenantsApi - object-oriented interface
457
- * @export
458
- * @class TenantsApi
459
- * @extends {BaseAPI}
460
- */
461
- var TenantsApi = /** @class */ (function (_super) {
462
- __extends(TenantsApi, _super);
463
- function TenantsApi() {
464
- return _super !== null && _super.apply(this, arguments) || this;
465
- }
466
- /**
467
- *
468
- * @param {TenantsApiCreateTenantRequest} requestParameters Request parameters.
469
- * @param {*} [options] Override http request option.
470
- * @throws {RequiredError}
471
- * @memberof TenantsApi
472
- */
473
- TenantsApi.prototype.createTenant = function (requestParameters, options) {
474
- var _this = this;
475
- return (0, exports.TenantsApiFp)(this.configuration).createTenant(requestParameters.createTenantRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
476
- };
477
- /**
478
- *
479
- * @param {TenantsApiGetQuicksightUrlRequest} requestParameters Request parameters.
480
- * @param {*} [options] Override http request option.
481
- * @throws {RequiredError}
482
- * @memberof TenantsApi
483
- */
484
- TenantsApi.prototype.getQuicksightUrl = function (requestParameters, options) {
485
- var _this = this;
486
- if (requestParameters === void 0) { requestParameters = {}; }
487
- return (0, exports.TenantsApiFp)(this.configuration).getQuicksightUrl(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
488
- };
489
- /**
490
- *
491
- * @param {TenantsApiGetTenantRequest} requestParameters Request parameters.
492
- * @param {*} [options] Override http request option.
493
- * @throws {RequiredError}
494
- * @memberof TenantsApi
495
- */
496
- TenantsApi.prototype.getTenant = function (requestParameters, options) {
497
- var _this = this;
498
- return (0, exports.TenantsApiFp)(this.configuration).getTenant(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
499
- };
500
- /**
501
- *
502
- * @param {TenantsApiListTenantsRequest} requestParameters Request parameters.
503
- * @param {*} [options] Override http request option.
504
- * @throws {RequiredError}
505
- * @memberof TenantsApi
506
- */
507
- TenantsApi.prototype.listTenants = function (requestParameters, options) {
508
- var _this = this;
509
- if (requestParameters === void 0) { requestParameters = {}; }
510
- return (0, exports.TenantsApiFp)(this.configuration).listTenants(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
511
- };
512
- return TenantsApi;
513
- }(base_1.BaseAPI));
514
- exports.TenantsApi = TenantsApi;
@@ -1,25 +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 { PermissionClass } from './permission-class';
13
- /**
14
- *
15
- * @export
16
- * @interface CreatePermissionResponseClass
17
- */
18
- export interface CreatePermissionResponseClass {
19
- /**
20
- * permission
21
- * @type {PermissionClass}
22
- * @memberof CreatePermissionResponseClass
23
- */
24
- 'permission': PermissionClass;
25
- }
@@ -1,25 +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 { RoleClass } from './role-class';
13
- /**
14
- *
15
- * @export
16
- * @interface CreateRoleResponseClass
17
- */
18
- export interface CreateRoleResponseClass {
19
- /**
20
- * role
21
- * @type {RoleClass}
22
- * @memberof CreateRoleResponseClass
23
- */
24
- 'role': RoleClass;
25
- }
@@ -1,42 +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
- /**
13
- *
14
- * @export
15
- * @interface CreateTenantResponseClass
16
- */
17
- export interface CreateTenantResponseClass {
18
- /**
19
- * Tenant\'s id
20
- * @type {number}
21
- * @memberof CreateTenantResponseClass
22
- */
23
- 'id': number;
24
- /**
25
- * Tenant\'s name
26
- * @type {string}
27
- * @memberof CreateTenantResponseClass
28
- */
29
- 'name': string;
30
- /**
31
- * A fixed string used to easily identify the tenant
32
- * @type {string}
33
- * @memberof CreateTenantResponseClass
34
- */
35
- 'slug': string;
36
- /**
37
- * Experimental - An id representing the tenant\'s tier
38
- * @type {number}
39
- * @memberof CreateTenantResponseClass
40
- */
41
- 'tierId': number;
42
- }
@@ -1,66 +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
- /**
13
- *
14
- * @export
15
- * @interface PermissionClass
16
- */
17
- export interface PermissionClass {
18
- /**
19
- * permission id
20
- * @type {number}
21
- * @memberof PermissionClass
22
- */
23
- 'id': number;
24
- /**
25
- * unique permission code
26
- * @type {string}
27
- * @memberof PermissionClass
28
- */
29
- 'code': string;
30
- /**
31
- * permission module
32
- * @type {string}
33
- * @memberof PermissionClass
34
- */
35
- 'module': string;
36
- /**
37
- * permission entity
38
- * @type {string}
39
- * @memberof PermissionClass
40
- */
41
- 'entity': string;
42
- /**
43
- * permission action
44
- * @type {string}
45
- * @memberof PermissionClass
46
- */
47
- 'action': string;
48
- /**
49
- * if permission is restricted to self
50
- * @type {boolean}
51
- * @memberof PermissionClass
52
- */
53
- 'isScoped': boolean;
54
- /**
55
- * Date created
56
- * @type {string}
57
- * @memberof PermissionClass
58
- */
59
- 'createdAt': string;
60
- /**
61
- * Date updated
62
- * @type {string}
63
- * @memberof PermissionClass
64
- */
65
- 'updatedAt': string;
66
- }