@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,331 +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.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = 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
- * PermissionsApi - axios parameter creator
94
- * @export
95
- */
96
- var PermissionsApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
98
- return {
99
- /**
100
- *
101
- * @param {CreatePermissionRequestDto} createPermissionRequestDto
102
- * @param {*} [options] Override http request option.
103
- * @throws {RequiredError}
104
- */
105
- createPermission: function (createPermissionRequestDto, options) {
106
- if (options === void 0) { options = {}; }
107
- return __awaiter(_this, void 0, void 0, function () {
108
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
109
- return __generator(this, function (_a) {
110
- switch (_a.label) {
111
- case 0:
112
- // verify required parameter 'createPermissionRequestDto' is not null or undefined
113
- (0, common_1.assertParamExists)('createPermission', 'createPermissionRequestDto', createPermissionRequestDto);
114
- localVarPath = "/tenantservice/v1/permissions";
115
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
116
- if (configuration) {
117
- baseOptions = configuration.baseOptions;
118
- baseAccessToken = configuration.accessToken;
119
- }
120
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
121
- localVarHeaderParameter = {};
122
- localVarQueryParameter = {};
123
- // authentication bearer required
124
- // http bearer authentication required
125
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
- case 1:
127
- // authentication bearer required
128
- // http bearer authentication required
129
- _a.sent();
130
- localVarHeaderParameter['Content-Type'] = 'application/json';
131
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPermissionRequestDto, localVarRequestOptions, configuration);
135
- return [2 /*return*/, {
136
- url: (0, common_1.toPathString)(localVarUrlObj),
137
- options: localVarRequestOptions,
138
- }];
139
- }
140
- });
141
- });
142
- },
143
- /**
144
- *
145
- * @param {number} [pageSize] Page size
146
- * @param {string} [pageToken] Page token
147
- * @param {string} [filter] List filter
148
- * @param {string} [search] Search query
149
- * @param {string} [order] Ordering criteria
150
- * @param {string} [expand] Extra fields to fetch
151
- * @param {*} [options] Override http request option.
152
- * @throws {RequiredError}
153
- */
154
- listPermissions: function (pageSize, pageToken, filter, search, order, expand, options) {
155
- if (options === void 0) { options = {}; }
156
- return __awaiter(_this, void 0, void 0, function () {
157
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
- return __generator(this, function (_a) {
159
- switch (_a.label) {
160
- case 0:
161
- localVarPath = "/tenantservice/v1/permissions";
162
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
163
- if (configuration) {
164
- baseOptions = configuration.baseOptions;
165
- baseAccessToken = configuration.accessToken;
166
- }
167
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
168
- localVarHeaderParameter = {};
169
- localVarQueryParameter = {};
170
- // authentication bearer required
171
- // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
173
- case 1:
174
- // authentication bearer required
175
- // http bearer authentication required
176
- _a.sent();
177
- if (pageSize !== undefined) {
178
- localVarQueryParameter['pageSize'] = pageSize;
179
- }
180
- if (pageToken !== undefined) {
181
- localVarQueryParameter['pageToken'] = pageToken;
182
- }
183
- if (filter !== undefined) {
184
- localVarQueryParameter['filter'] = filter;
185
- }
186
- if (search !== undefined) {
187
- localVarQueryParameter['search'] = search;
188
- }
189
- if (order !== undefined) {
190
- localVarQueryParameter['order'] = order;
191
- }
192
- if (expand !== undefined) {
193
- localVarQueryParameter['expand'] = expand;
194
- }
195
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
196
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
197
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
198
- return [2 /*return*/, {
199
- url: (0, common_1.toPathString)(localVarUrlObj),
200
- options: localVarRequestOptions,
201
- }];
202
- }
203
- });
204
- });
205
- },
206
- };
207
- };
208
- exports.PermissionsApiAxiosParamCreator = PermissionsApiAxiosParamCreator;
209
- /**
210
- * PermissionsApi - functional programming interface
211
- * @export
212
- */
213
- var PermissionsApiFp = function (configuration) {
214
- var localVarAxiosParamCreator = (0, exports.PermissionsApiAxiosParamCreator)(configuration);
215
- return {
216
- /**
217
- *
218
- * @param {CreatePermissionRequestDto} createPermissionRequestDto
219
- * @param {*} [options] Override http request option.
220
- * @throws {RequiredError}
221
- */
222
- createPermission: function (createPermissionRequestDto, options) {
223
- return __awaiter(this, void 0, void 0, function () {
224
- var localVarAxiosArgs;
225
- return __generator(this, function (_a) {
226
- switch (_a.label) {
227
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPermission(createPermissionRequestDto, options)];
228
- case 1:
229
- localVarAxiosArgs = _a.sent();
230
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
231
- }
232
- });
233
- });
234
- },
235
- /**
236
- *
237
- * @param {number} [pageSize] Page size
238
- * @param {string} [pageToken] Page token
239
- * @param {string} [filter] List filter
240
- * @param {string} [search] Search query
241
- * @param {string} [order] Ordering criteria
242
- * @param {string} [expand] Extra fields to fetch
243
- * @param {*} [options] Override http request option.
244
- * @throws {RequiredError}
245
- */
246
- listPermissions: function (pageSize, pageToken, filter, search, order, expand, options) {
247
- return __awaiter(this, void 0, void 0, function () {
248
- var localVarAxiosArgs;
249
- return __generator(this, function (_a) {
250
- switch (_a.label) {
251
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPermissions(pageSize, pageToken, filter, search, order, expand, options)];
252
- case 1:
253
- localVarAxiosArgs = _a.sent();
254
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
255
- }
256
- });
257
- });
258
- },
259
- };
260
- };
261
- exports.PermissionsApiFp = PermissionsApiFp;
262
- /**
263
- * PermissionsApi - factory interface
264
- * @export
265
- */
266
- var PermissionsApiFactory = function (configuration, basePath, axios) {
267
- var localVarFp = (0, exports.PermissionsApiFp)(configuration);
268
- return {
269
- /**
270
- *
271
- * @param {CreatePermissionRequestDto} createPermissionRequestDto
272
- * @param {*} [options] Override http request option.
273
- * @throws {RequiredError}
274
- */
275
- createPermission: function (createPermissionRequestDto, options) {
276
- return localVarFp.createPermission(createPermissionRequestDto, options).then(function (request) { return request(axios, basePath); });
277
- },
278
- /**
279
- *
280
- * @param {number} [pageSize] Page size
281
- * @param {string} [pageToken] Page token
282
- * @param {string} [filter] List filter
283
- * @param {string} [search] Search query
284
- * @param {string} [order] Ordering criteria
285
- * @param {string} [expand] Extra fields to fetch
286
- * @param {*} [options] Override http request option.
287
- * @throws {RequiredError}
288
- */
289
- listPermissions: function (pageSize, pageToken, filter, search, order, expand, options) {
290
- return localVarFp.listPermissions(pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
291
- },
292
- };
293
- };
294
- exports.PermissionsApiFactory = PermissionsApiFactory;
295
- /**
296
- * PermissionsApi - object-oriented interface
297
- * @export
298
- * @class PermissionsApi
299
- * @extends {BaseAPI}
300
- */
301
- var PermissionsApi = /** @class */ (function (_super) {
302
- __extends(PermissionsApi, _super);
303
- function PermissionsApi() {
304
- return _super !== null && _super.apply(this, arguments) || this;
305
- }
306
- /**
307
- *
308
- * @param {PermissionsApiCreatePermissionRequest} requestParameters Request parameters.
309
- * @param {*} [options] Override http request option.
310
- * @throws {RequiredError}
311
- * @memberof PermissionsApi
312
- */
313
- PermissionsApi.prototype.createPermission = function (requestParameters, options) {
314
- var _this = this;
315
- return (0, exports.PermissionsApiFp)(this.configuration).createPermission(requestParameters.createPermissionRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
316
- };
317
- /**
318
- *
319
- * @param {PermissionsApiListPermissionsRequest} requestParameters Request parameters.
320
- * @param {*} [options] Override http request option.
321
- * @throws {RequiredError}
322
- * @memberof PermissionsApi
323
- */
324
- PermissionsApi.prototype.listPermissions = function (requestParameters, options) {
325
- var _this = this;
326
- if (requestParameters === void 0) { requestParameters = {}; }
327
- return (0, exports.PermissionsApiFp)(this.configuration).listPermissions(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
328
- };
329
- return PermissionsApi;
330
- }(base_1.BaseAPI));
331
- exports.PermissionsApi = PermissionsApi;
@@ -1,301 +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 { CreateRoleRequestDto } from '../models';
16
- import { CreateRoleResponseClass } from '../models';
17
- import { GetRoleResponseClass } from '../models';
18
- import { ListRolesResponseClass } from '../models';
19
- import { UpdateRoleRequestDto } from '../models';
20
- import { UpdateRoleResponseClass } from '../models';
21
- /**
22
- * RolesApi - axios parameter creator
23
- * @export
24
- */
25
- export declare const RolesApiAxiosParamCreator: (configuration?: Configuration) => {
26
- /**
27
- *
28
- * @param {CreateRoleRequestDto} createRoleRequestDto
29
- * @param {*} [options] Override http request option.
30
- * @throws {RequiredError}
31
- */
32
- createRole: (createRoleRequestDto: CreateRoleRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
- /**
34
- *
35
- * @param {number} id
36
- * @param {*} [options] Override http request option.
37
- * @throws {RequiredError}
38
- */
39
- deleteRole: (id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
- /**
41
- *
42
- * @param {string} code
43
- * @param {*} [options] Override http request option.
44
- * @throws {RequiredError}
45
- */
46
- getRole: (code: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
- /**
48
- *
49
- * @param {number} [pageSize] Page size
50
- * @param {string} [pageToken] Page token
51
- * @param {string} [filter] List filter
52
- * @param {string} [search] Search query
53
- * @param {string} [order] Ordering criteria
54
- * @param {string} [expand] Extra fields to fetch
55
- * @param {*} [options] Override http request option.
56
- * @throws {RequiredError}
57
- */
58
- listRoles: (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
- /**
60
- *
61
- * @param {UpdateRoleRequestDto} updateRoleRequestDto
62
- * @param {*} [options] Override http request option.
63
- * @throws {RequiredError}
64
- */
65
- updateRole: (updateRoleRequestDto: UpdateRoleRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
- };
67
- /**
68
- * RolesApi - functional programming interface
69
- * @export
70
- */
71
- export declare const RolesApiFp: (configuration?: Configuration) => {
72
- /**
73
- *
74
- * @param {CreateRoleRequestDto} createRoleRequestDto
75
- * @param {*} [options] Override http request option.
76
- * @throws {RequiredError}
77
- */
78
- createRole(createRoleRequestDto: CreateRoleRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRoleResponseClass>>;
79
- /**
80
- *
81
- * @param {number} id
82
- * @param {*} [options] Override http request option.
83
- * @throws {RequiredError}
84
- */
85
- deleteRole(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
86
- /**
87
- *
88
- * @param {string} code
89
- * @param {*} [options] Override http request option.
90
- * @throws {RequiredError}
91
- */
92
- getRole(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRoleResponseClass>>;
93
- /**
94
- *
95
- * @param {number} [pageSize] Page size
96
- * @param {string} [pageToken] Page token
97
- * @param {string} [filter] List filter
98
- * @param {string} [search] Search query
99
- * @param {string} [order] Ordering criteria
100
- * @param {string} [expand] Extra fields to fetch
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>>;
105
- /**
106
- *
107
- * @param {UpdateRoleRequestDto} updateRoleRequestDto
108
- * @param {*} [options] Override http request option.
109
- * @throws {RequiredError}
110
- */
111
- updateRole(updateRoleRequestDto: UpdateRoleRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateRoleResponseClass>>;
112
- };
113
- /**
114
- * RolesApi - factory interface
115
- * @export
116
- */
117
- export declare const RolesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
118
- /**
119
- *
120
- * @param {CreateRoleRequestDto} createRoleRequestDto
121
- * @param {*} [options] Override http request option.
122
- * @throws {RequiredError}
123
- */
124
- createRole(createRoleRequestDto: CreateRoleRequestDto, options?: any): AxiosPromise<CreateRoleResponseClass>;
125
- /**
126
- *
127
- * @param {number} id
128
- * @param {*} [options] Override http request option.
129
- * @throws {RequiredError}
130
- */
131
- deleteRole(id: number, options?: any): AxiosPromise<object>;
132
- /**
133
- *
134
- * @param {string} code
135
- * @param {*} [options] Override http request option.
136
- * @throws {RequiredError}
137
- */
138
- getRole(code: string, options?: any): AxiosPromise<GetRoleResponseClass>;
139
- /**
140
- *
141
- * @param {number} [pageSize] Page size
142
- * @param {string} [pageToken] Page token
143
- * @param {string} [filter] List filter
144
- * @param {string} [search] Search query
145
- * @param {string} [order] Ordering criteria
146
- * @param {string} [expand] Extra fields to fetch
147
- * @param {*} [options] Override http request option.
148
- * @throws {RequiredError}
149
- */
150
- listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass>;
151
- /**
152
- *
153
- * @param {UpdateRoleRequestDto} updateRoleRequestDto
154
- * @param {*} [options] Override http request option.
155
- * @throws {RequiredError}
156
- */
157
- updateRole(updateRoleRequestDto: UpdateRoleRequestDto, options?: any): AxiosPromise<UpdateRoleResponseClass>;
158
- };
159
- /**
160
- * Request parameters for createRole operation in RolesApi.
161
- * @export
162
- * @interface RolesApiCreateRoleRequest
163
- */
164
- export interface RolesApiCreateRoleRequest {
165
- /**
166
- *
167
- * @type {CreateRoleRequestDto}
168
- * @memberof RolesApiCreateRole
169
- */
170
- readonly createRoleRequestDto: CreateRoleRequestDto;
171
- }
172
- /**
173
- * Request parameters for deleteRole operation in RolesApi.
174
- * @export
175
- * @interface RolesApiDeleteRoleRequest
176
- */
177
- export interface RolesApiDeleteRoleRequest {
178
- /**
179
- *
180
- * @type {number}
181
- * @memberof RolesApiDeleteRole
182
- */
183
- readonly id: number;
184
- }
185
- /**
186
- * Request parameters for getRole operation in RolesApi.
187
- * @export
188
- * @interface RolesApiGetRoleRequest
189
- */
190
- export interface RolesApiGetRoleRequest {
191
- /**
192
- *
193
- * @type {string}
194
- * @memberof RolesApiGetRole
195
- */
196
- readonly code: string;
197
- }
198
- /**
199
- * Request parameters for listRoles operation in RolesApi.
200
- * @export
201
- * @interface RolesApiListRolesRequest
202
- */
203
- export interface RolesApiListRolesRequest {
204
- /**
205
- * Page size
206
- * @type {number}
207
- * @memberof RolesApiListRoles
208
- */
209
- readonly pageSize?: number;
210
- /**
211
- * Page token
212
- * @type {string}
213
- * @memberof RolesApiListRoles
214
- */
215
- readonly pageToken?: string;
216
- /**
217
- * List filter
218
- * @type {string}
219
- * @memberof RolesApiListRoles
220
- */
221
- readonly filter?: string;
222
- /**
223
- * Search query
224
- * @type {string}
225
- * @memberof RolesApiListRoles
226
- */
227
- readonly search?: string;
228
- /**
229
- * Ordering criteria
230
- * @type {string}
231
- * @memberof RolesApiListRoles
232
- */
233
- readonly order?: string;
234
- /**
235
- * Extra fields to fetch
236
- * @type {string}
237
- * @memberof RolesApiListRoles
238
- */
239
- readonly expand?: string;
240
- }
241
- /**
242
- * Request parameters for updateRole operation in RolesApi.
243
- * @export
244
- * @interface RolesApiUpdateRoleRequest
245
- */
246
- export interface RolesApiUpdateRoleRequest {
247
- /**
248
- *
249
- * @type {UpdateRoleRequestDto}
250
- * @memberof RolesApiUpdateRole
251
- */
252
- readonly updateRoleRequestDto: UpdateRoleRequestDto;
253
- }
254
- /**
255
- * RolesApi - object-oriented interface
256
- * @export
257
- * @class RolesApi
258
- * @extends {BaseAPI}
259
- */
260
- export declare class RolesApi extends BaseAPI {
261
- /**
262
- *
263
- * @param {RolesApiCreateRoleRequest} requestParameters Request parameters.
264
- * @param {*} [options] Override http request option.
265
- * @throws {RequiredError}
266
- * @memberof RolesApi
267
- */
268
- createRole(requestParameters: RolesApiCreateRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRoleResponseClass, any>>;
269
- /**
270
- *
271
- * @param {RolesApiDeleteRoleRequest} requestParameters Request parameters.
272
- * @param {*} [options] Override http request option.
273
- * @throws {RequiredError}
274
- * @memberof RolesApi
275
- */
276
- deleteRole(requestParameters: RolesApiDeleteRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
277
- /**
278
- *
279
- * @param {RolesApiGetRoleRequest} requestParameters Request parameters.
280
- * @param {*} [options] Override http request option.
281
- * @throws {RequiredError}
282
- * @memberof RolesApi
283
- */
284
- getRole(requestParameters: RolesApiGetRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRoleResponseClass, any>>;
285
- /**
286
- *
287
- * @param {RolesApiListRolesRequest} requestParameters Request parameters.
288
- * @param {*} [options] Override http request option.
289
- * @throws {RequiredError}
290
- * @memberof RolesApi
291
- */
292
- listRoles(requestParameters?: RolesApiListRolesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRolesResponseClass, any>>;
293
- /**
294
- *
295
- * @param {RolesApiUpdateRoleRequest} requestParameters Request parameters.
296
- * @param {*} [options] Override http request option.
297
- * @throws {RequiredError}
298
- * @memberof RolesApi
299
- */
300
- updateRole(requestParameters: RolesApiUpdateRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateRoleResponseClass, any>>;
301
- }