@emilgroup/tenant-sdk 1.4.0 → 1.5.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 (80) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +5 -22
  3. package/api/custom-schema-api.ts +0 -4
  4. package/api/data-report-api.ts +673 -0
  5. package/api/data-report-executor-api.ts +161 -0
  6. package/api/invite-organizations-api.ts +0 -4
  7. package/api/invite-users-api.ts +0 -4
  8. package/api/list-organization-invitations-api.ts +0 -4
  9. package/api/organizations-api.ts +0 -4
  10. package/api/re-invite-an-organization-api.ts +0 -4
  11. package/api/roles-api.ts +0 -4
  12. package/api/settings-api.ts +0 -4
  13. package/api/users-api.ts +0 -4
  14. package/api.ts +4 -4
  15. package/base.ts +59 -93
  16. package/common.ts +0 -1
  17. package/configuration.ts +0 -8
  18. package/dist/api/custom-schema-api.js +4 -8
  19. package/dist/api/data-report-api.d.ts +380 -0
  20. package/dist/api/data-report-api.js +632 -0
  21. package/dist/api/data-report-executor-api.d.ts +93 -0
  22. package/dist/api/data-report-executor-api.js +220 -0
  23. package/dist/api/invite-organizations-api.js +1 -5
  24. package/dist/api/invite-users-api.js +5 -9
  25. package/dist/api/list-organization-invitations-api.js +1 -5
  26. package/dist/api/organizations-api.js +3 -7
  27. package/dist/api/re-invite-an-organization-api.js +1 -5
  28. package/dist/api/roles-api.js +1 -5
  29. package/dist/api/settings-api.js +1 -5
  30. package/dist/api/users-api.js +9 -13
  31. package/dist/api.d.ts +2 -0
  32. package/dist/api.js +2 -0
  33. package/dist/base.d.ts +5 -9
  34. package/dist/base.js +40 -136
  35. package/dist/common.d.ts +0 -1
  36. package/dist/common.js +1 -2
  37. package/dist/configuration.d.ts +0 -7
  38. package/dist/models/create-data-report-request-dto.d.ts +61 -0
  39. package/dist/models/create-data-report-request-dto.js +15 -0
  40. package/dist/models/create-data-report-response-class.d.ts +25 -0
  41. package/dist/models/create-data-report-response-class.js +15 -0
  42. package/dist/models/data-report-class.d.ts +79 -0
  43. package/dist/models/data-report-class.js +15 -0
  44. package/dist/models/data-report-filter-class.d.ts +72 -0
  45. package/dist/models/data-report-filter-class.js +15 -0
  46. package/dist/models/data-report-filter-dto.d.ts +48 -0
  47. package/dist/models/data-report-filter-dto.js +15 -0
  48. package/dist/models/data-report-filter-single-value-dto.d.ts +42 -0
  49. package/dist/models/data-report-filter-single-value-dto.js +15 -0
  50. package/dist/models/data-report-filter-value-dto.d.ts +31 -0
  51. package/dist/models/data-report-filter-value-dto.js +15 -0
  52. package/dist/models/get-data-report-response-class.d.ts +25 -0
  53. package/dist/models/get-data-report-response-class.js +15 -0
  54. package/dist/models/index.d.ts +13 -0
  55. package/dist/models/index.js +13 -0
  56. package/dist/models/list-data-reports-response-class.d.ts +31 -0
  57. package/dist/models/list-data-reports-response-class.js +15 -0
  58. package/dist/models/run-data-report-request-dto.d.ts +31 -0
  59. package/dist/models/run-data-report-request-dto.js +15 -0
  60. package/dist/models/run-data-report-response-class.d.ts +24 -0
  61. package/dist/models/run-data-report-response-class.js +15 -0
  62. package/dist/models/update-data-report-request-dto.d.ts +61 -0
  63. package/dist/models/update-data-report-request-dto.js +15 -0
  64. package/dist/models/update-data-report-response-class.d.ts +25 -0
  65. package/dist/models/update-data-report-response-class.js +15 -0
  66. package/models/create-data-report-request-dto.ts +67 -0
  67. package/models/create-data-report-response-class.ts +31 -0
  68. package/models/data-report-class.ts +85 -0
  69. package/models/data-report-filter-class.ts +78 -0
  70. package/models/data-report-filter-dto.ts +54 -0
  71. package/models/data-report-filter-single-value-dto.ts +48 -0
  72. package/models/data-report-filter-value-dto.ts +37 -0
  73. package/models/get-data-report-response-class.ts +31 -0
  74. package/models/index.ts +13 -0
  75. package/models/list-data-reports-response-class.ts +37 -0
  76. package/models/run-data-report-request-dto.ts +37 -0
  77. package/models/run-data-report-response-class.ts +30 -0
  78. package/models/update-data-report-request-dto.ts +67 -0
  79. package/models/update-data-report-response-class.ts +31 -0
  80. package/package.json +3 -5
@@ -0,0 +1,93 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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 { RunDataReportRequestDto } from '../models';
16
+ import { RunDataReportResponseClass } from '../models';
17
+ /**
18
+ * DataReportExecutorApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const DataReportExecutorApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ *
24
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
25
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ runDataReport: (runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ };
31
+ /**
32
+ * DataReportExecutorApi - functional programming interface
33
+ * @export
34
+ */
35
+ export declare const DataReportExecutorApiFp: (configuration?: Configuration) => {
36
+ /**
37
+ *
38
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
39
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunDataReportResponseClass>>;
44
+ };
45
+ /**
46
+ * DataReportExecutorApi - factory interface
47
+ * @export
48
+ */
49
+ export declare const DataReportExecutorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
50
+ /**
51
+ *
52
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
53
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<RunDataReportResponseClass>;
58
+ };
59
+ /**
60
+ * Request parameters for runDataReport operation in DataReportExecutorApi.
61
+ * @export
62
+ * @interface DataReportExecutorApiRunDataReportRequest
63
+ */
64
+ export interface DataReportExecutorApiRunDataReportRequest {
65
+ /**
66
+ *
67
+ * @type {RunDataReportRequestDto}
68
+ * @memberof DataReportExecutorApiRunDataReport
69
+ */
70
+ readonly runDataReportRequestDto: RunDataReportRequestDto;
71
+ /**
72
+ * Bearer Token: provided by the login endpoint under the name accessToken.
73
+ * @type {string}
74
+ * @memberof DataReportExecutorApiRunDataReport
75
+ */
76
+ readonly authorization?: string;
77
+ }
78
+ /**
79
+ * DataReportExecutorApi - object-oriented interface
80
+ * @export
81
+ * @class DataReportExecutorApi
82
+ * @extends {BaseAPI}
83
+ */
84
+ export declare class DataReportExecutorApi extends BaseAPI {
85
+ /**
86
+ *
87
+ * @param {DataReportExecutorApiRunDataReportRequest} requestParameters Request parameters.
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ * @memberof DataReportExecutorApi
91
+ */
92
+ runDataReport(requestParameters: DataReportExecutorApiRunDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunDataReportResponseClass, any>>;
93
+ }
@@ -0,0 +1,220 @@
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
+ * Contact: kontakt@emil.de
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.DataReportExecutorApi = exports.DataReportExecutorApiFactory = exports.DataReportExecutorApiFp = exports.DataReportExecutorApiAxiosParamCreator = 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
+ /**
89
+ * DataReportExecutorApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var DataReportExecutorApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ runDataReport: function (runDataReportRequestDto, authorization, options) {
103
+ if (options === void 0) { options = {}; }
104
+ return __awaiter(_this, void 0, void 0, function () {
105
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0:
109
+ // verify required parameter 'runDataReportRequestDto' is not null or undefined
110
+ (0, common_1.assertParamExists)('runDataReport', 'runDataReportRequestDto', runDataReportRequestDto);
111
+ localVarPath = "/tenantservice/v1/data-report-executor";
112
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
+ if (configuration) {
114
+ baseOptions = configuration.baseOptions;
115
+ baseAccessToken = configuration.accessToken;
116
+ }
117
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
118
+ localVarHeaderParameter = {};
119
+ localVarQueryParameter = {};
120
+ // authentication bearer required
121
+ // http bearer authentication required
122
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
123
+ case 1:
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ _a.sent();
127
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
128
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
129
+ }
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)(runDataReportRequestDto, localVarRequestOptions, configuration);
135
+ return [2 /*return*/, {
136
+ url: (0, common_1.toPathString)(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ }];
139
+ }
140
+ });
141
+ });
142
+ },
143
+ };
144
+ };
145
+ exports.DataReportExecutorApiAxiosParamCreator = DataReportExecutorApiAxiosParamCreator;
146
+ /**
147
+ * DataReportExecutorApi - functional programming interface
148
+ * @export
149
+ */
150
+ var DataReportExecutorApiFp = function (configuration) {
151
+ var localVarAxiosParamCreator = (0, exports.DataReportExecutorApiAxiosParamCreator)(configuration);
152
+ return {
153
+ /**
154
+ *
155
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ runDataReport: function (runDataReportRequestDto, authorization, options) {
161
+ return __awaiter(this, void 0, void 0, function () {
162
+ var localVarAxiosArgs;
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.runDataReport(runDataReportRequestDto, authorization, options)];
166
+ case 1:
167
+ localVarAxiosArgs = _a.sent();
168
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
169
+ }
170
+ });
171
+ });
172
+ },
173
+ };
174
+ };
175
+ exports.DataReportExecutorApiFp = DataReportExecutorApiFp;
176
+ /**
177
+ * DataReportExecutorApi - factory interface
178
+ * @export
179
+ */
180
+ var DataReportExecutorApiFactory = function (configuration, basePath, axios) {
181
+ var localVarFp = (0, exports.DataReportExecutorApiFp)(configuration);
182
+ return {
183
+ /**
184
+ *
185
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ runDataReport: function (runDataReportRequestDto, authorization, options) {
191
+ return localVarFp.runDataReport(runDataReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
192
+ },
193
+ };
194
+ };
195
+ exports.DataReportExecutorApiFactory = DataReportExecutorApiFactory;
196
+ /**
197
+ * DataReportExecutorApi - object-oriented interface
198
+ * @export
199
+ * @class DataReportExecutorApi
200
+ * @extends {BaseAPI}
201
+ */
202
+ var DataReportExecutorApi = /** @class */ (function (_super) {
203
+ __extends(DataReportExecutorApi, _super);
204
+ function DataReportExecutorApi() {
205
+ return _super !== null && _super.apply(this, arguments) || this;
206
+ }
207
+ /**
208
+ *
209
+ * @param {DataReportExecutorApiRunDataReportRequest} requestParameters Request parameters.
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ * @memberof DataReportExecutorApi
213
+ */
214
+ DataReportExecutorApi.prototype.runDataReport = function (requestParameters, options) {
215
+ var _this = this;
216
+ return (0, exports.DataReportExecutorApiFp)(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
217
+ };
218
+ return DataReportExecutorApi;
219
+ }(base_1.BaseAPI));
220
+ exports.DataReportExecutorApi = DataReportExecutorApi;
@@ -85,10 +85,6 @@ var axios_1 = __importDefault(require("axios"));
85
85
  var common_1 = require("../common");
86
86
  // @ts-ignore
87
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
88
  /**
93
89
  * InviteOrganizationsApi - axios parameter creator
94
90
  * @export
@@ -114,7 +110,7 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
114
110
  // verify required parameter 'inviteOrgRequestDto' is not null or undefined
115
111
  (0, common_1.assertParamExists)('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto);
116
112
  localVarPath = "/tenantservice/v1/invitations/organizations";
117
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
114
  if (configuration) {
119
115
  baseOptions = configuration.baseOptions;
120
116
  baseAccessToken = configuration.accessToken;
@@ -85,10 +85,6 @@ var axios_1 = __importDefault(require("axios"));
85
85
  var common_1 = require("../common");
86
86
  // @ts-ignore
87
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
88
  /**
93
89
  * InviteUsersApi - axios parameter creator
94
90
  * @export
@@ -115,7 +111,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
115
111
  (0, common_1.assertParamExists)('deleteInvite', 'id', id);
116
112
  localVarPath = "/tenantservice/v1/users/invites/{id}"
117
113
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
118
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
119
115
  if (configuration) {
120
116
  baseOptions = configuration.baseOptions;
121
117
  baseAccessToken = configuration.accessToken;
@@ -162,7 +158,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
162
158
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
163
159
  (0, common_1.assertParamExists)('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto);
164
160
  localVarPath = "/tenantservice/v1/users/invites/delete-batch";
165
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
161
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
166
162
  if (configuration) {
167
163
  baseOptions = configuration.baseOptions;
168
164
  baseAccessToken = configuration.accessToken;
@@ -211,7 +207,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
211
207
  // verify required parameter 'inviteUserRequestDto' is not null or undefined
212
208
  (0, common_1.assertParamExists)('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto);
213
209
  localVarPath = "/tenantservice/v1/users/invites";
214
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
210
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
215
211
  if (configuration) {
216
212
  baseOptions = configuration.baseOptions;
217
213
  baseAccessToken = configuration.accessToken;
@@ -260,7 +256,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
260
256
  // verify required parameter 'inviteUsersRequestDto' is not null or undefined
261
257
  (0, common_1.assertParamExists)('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto);
262
258
  localVarPath = "/tenantservice/v1/users/invites/batch";
263
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
259
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
264
260
  if (configuration) {
265
261
  baseOptions = configuration.baseOptions;
266
262
  baseAccessToken = configuration.accessToken;
@@ -312,7 +308,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
312
308
  switch (_a.label) {
313
309
  case 0:
314
310
  localVarPath = "/tenantservice/v1/users/invites";
315
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
311
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
316
312
  if (configuration) {
317
313
  baseOptions = configuration.baseOptions;
318
314
  baseAccessToken = configuration.accessToken;
@@ -85,10 +85,6 @@ var axios_1 = __importDefault(require("axios"));
85
85
  var common_1 = require("../common");
86
86
  // @ts-ignore
87
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
88
  /**
93
89
  * ListOrganizationInvitationsApi - axios parameter creator
94
90
  * @export
@@ -117,7 +113,7 @@ var ListOrganizationInvitationsApiAxiosParamCreator = function (configuration) {
117
113
  switch (_a.label) {
118
114
  case 0:
119
115
  localVarPath = "/tenantservice/v1/invitations/organizations";
120
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
121
117
  if (configuration) {
122
118
  baseOptions = configuration.baseOptions;
123
119
  baseAccessToken = configuration.accessToken;
@@ -85,10 +85,6 @@ var axios_1 = __importDefault(require("axios"));
85
85
  var common_1 = require("../common");
86
86
  // @ts-ignore
87
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
88
  /**
93
89
  * OrganizationsApi - axios parameter creator
94
90
  * @export
@@ -115,7 +111,7 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
115
111
  (0, common_1.assertParamExists)('getOrganization', 'code', code);
116
112
  localVarPath = "/tenantservice/v1/organizations/{code}"
117
113
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
118
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
119
115
  if (configuration) {
120
116
  baseOptions = configuration.baseOptions;
121
117
  baseAccessToken = configuration.accessToken;
@@ -165,7 +161,7 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
165
161
  switch (_a.label) {
166
162
  case 0:
167
163
  localVarPath = "/tenantservice/v1/organizations";
168
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
164
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
165
  if (configuration) {
170
166
  baseOptions = configuration.baseOptions;
171
167
  baseAccessToken = configuration.accessToken;
@@ -234,7 +230,7 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
234
230
  (0, common_1.assertParamExists)('updateOrganization', 'updateOrganizationRequestDtoRest', updateOrganizationRequestDtoRest);
235
231
  localVarPath = "/tenantservice/v1/organizations/{code}"
236
232
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
237
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
233
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
238
234
  if (configuration) {
239
235
  baseOptions = configuration.baseOptions;
240
236
  baseAccessToken = configuration.accessToken;
@@ -85,10 +85,6 @@ var axios_1 = __importDefault(require("axios"));
85
85
  var common_1 = require("../common");
86
86
  // @ts-ignore
87
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
88
  /**
93
89
  * ReInviteAnOrganizationApi - axios parameter creator
94
90
  * @export
@@ -113,7 +109,7 @@ var ReInviteAnOrganizationApiAxiosParamCreator = function (configuration) {
113
109
  // verify required parameter 'reInviteOrgRequestDto' is not null or undefined
114
110
  (0, common_1.assertParamExists)('reInviteOrganization', 'reInviteOrgRequestDto', reInviteOrgRequestDto);
115
111
  localVarPath = "/tenantservice/v1/invitations/organizations";
116
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
112
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
117
113
  if (configuration) {
118
114
  baseOptions = configuration.baseOptions;
119
115
  baseAccessToken = configuration.accessToken;
@@ -85,10 +85,6 @@ var axios_1 = __importDefault(require("axios"));
85
85
  var common_1 = require("../common");
86
86
  // @ts-ignore
87
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
88
  /**
93
89
  * RolesApi - axios parameter creator
94
90
  * @export
@@ -117,7 +113,7 @@ var RolesApiAxiosParamCreator = function (configuration) {
117
113
  switch (_a.label) {
118
114
  case 0:
119
115
  localVarPath = "/tenantservice/v1/roles";
120
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
121
117
  if (configuration) {
122
118
  baseOptions = configuration.baseOptions;
123
119
  baseAccessToken = configuration.accessToken;
@@ -85,10 +85,6 @@ var axios_1 = __importDefault(require("axios"));
85
85
  var common_1 = require("../common");
86
86
  // @ts-ignore
87
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
88
  /**
93
89
  * SettingsApi - axios parameter creator
94
90
  * @export
@@ -114,7 +110,7 @@ var SettingsApiAxiosParamCreator = function (configuration) {
114
110
  // verify required parameter 'keys' is not null or undefined
115
111
  (0, common_1.assertParamExists)('getTenantSettings', 'keys', keys);
116
112
  localVarPath = "/tenantservice/v1/settings/tenant";
117
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
114
  if (configuration) {
119
115
  baseOptions = configuration.baseOptions;
120
116
  baseAccessToken = configuration.accessToken;
@@ -85,10 +85,6 @@ var axios_1 = __importDefault(require("axios"));
85
85
  var common_1 = require("../common");
86
86
  // @ts-ignore
87
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
88
  /**
93
89
  * UsersApi - axios parameter creator
94
90
  * @export
@@ -117,7 +113,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
117
113
  (0, common_1.assertParamExists)('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto);
118
114
  localVarPath = "/tenantservice/v1/users/{id}/assign-roles"
119
115
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
120
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
121
117
  if (configuration) {
122
118
  baseOptions = configuration.baseOptions;
123
119
  baseAccessToken = configuration.accessToken;
@@ -166,7 +162,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
166
162
  (0, common_1.assertParamExists)('deleteUser', 'id', id);
167
163
  localVarPath = "/tenantservice/v1/users/{id}"
168
164
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
169
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
165
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
170
166
  if (configuration) {
171
167
  baseOptions = configuration.baseOptions;
172
168
  baseAccessToken = configuration.accessToken;
@@ -212,7 +208,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
212
208
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
213
209
  (0, common_1.assertParamExists)('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto);
214
210
  localVarPath = "/tenantservice/v1/users/delete-batch";
215
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
211
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
216
212
  if (configuration) {
217
213
  baseOptions = configuration.baseOptions;
218
214
  baseAccessToken = configuration.accessToken;
@@ -261,7 +257,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
261
257
  (0, common_1.assertParamExists)('disableUser', 'id', id);
262
258
  localVarPath = "/tenantservice/v1/users/{id}/disable"
263
259
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
264
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
260
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
265
261
  if (configuration) {
266
262
  baseOptions = configuration.baseOptions;
267
263
  baseAccessToken = configuration.accessToken;
@@ -307,7 +303,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
307
303
  // verify required parameter 'disableUsersRequestDto' is not null or undefined
308
304
  (0, common_1.assertParamExists)('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto);
309
305
  localVarPath = "/tenantservice/v1/users/disable-batch";
310
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
306
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
311
307
  if (configuration) {
312
308
  baseOptions = configuration.baseOptions;
313
309
  baseAccessToken = configuration.accessToken;
@@ -356,7 +352,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
356
352
  (0, common_1.assertParamExists)('enableUser', 'id', id);
357
353
  localVarPath = "/tenantservice/v1/users/{id}/enable"
358
354
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
359
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
355
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
360
356
  if (configuration) {
361
357
  baseOptions = configuration.baseOptions;
362
358
  baseAccessToken = configuration.accessToken;
@@ -402,7 +398,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
402
398
  // verify required parameter 'enableUsersRequestDto' is not null or undefined
403
399
  (0, common_1.assertParamExists)('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto);
404
400
  localVarPath = "/tenantservice/v1/users/enable-batch";
405
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
401
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
406
402
  if (configuration) {
407
403
  baseOptions = configuration.baseOptions;
408
404
  baseAccessToken = configuration.accessToken;
@@ -455,7 +451,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
455
451
  (0, common_1.assertParamExists)('getUser', 'code2', code2);
456
452
  localVarPath = "/tenantservice/v1/users/{code}"
457
453
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
458
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
454
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
459
455
  if (configuration) {
460
456
  baseOptions = configuration.baseOptions;
461
457
  baseAccessToken = configuration.accessToken;
@@ -511,7 +507,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
511
507
  switch (_a.label) {
512
508
  case 0:
513
509
  localVarPath = "/tenantservice/v1/users";
514
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
510
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
515
511
  if (configuration) {
516
512
  baseOptions = configuration.baseOptions;
517
513
  baseAccessToken = configuration.accessToken;
package/dist/api.d.ts CHANGED
@@ -10,6 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/custom-schema-api';
13
+ export * from './api/data-report-api';
14
+ export * from './api/data-report-executor-api';
13
15
  export * from './api/invite-organizations-api';
14
16
  export * from './api/invite-users-api';
15
17
  export * from './api/list-organization-invitations-api';
package/dist/api.js CHANGED
@@ -28,6 +28,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/custom-schema-api"), exports);
31
+ __exportStar(require("./api/data-report-api"), exports);
32
+ __exportStar(require("./api/data-report-executor-api"), exports);
31
33
  __exportStar(require("./api/invite-organizations-api"), exports);
32
34
  __exportStar(require("./api/invite-users-api"), exports);
33
35
  __exportStar(require("./api/list-organization-invitations-api"), exports);
package/dist/base.d.ts CHANGED
@@ -49,19 +49,15 @@ export interface RequestArgs {
49
49
  export declare class BaseAPI {
50
50
  protected basePath: string;
51
51
  protected axios: AxiosInstance;
52
- protected configuration: Configuration;
53
- private username?;
54
- private password?;
52
+ protected configuration: Configuration | undefined;
53
+ private tokenData?;
55
54
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
56
- initialize(env?: Environment): Promise<void>;
57
- private loadCredentials;
58
- private readConfigFile;
59
- private readEnvVariables;
60
55
  selectEnvironment(env: Environment): void;
61
56
  authorize(username: string, password: string): Promise<void>;
62
57
  refreshTokenInternal(): Promise<string>;
63
- private extractRefreshToken;
64
- getConfiguration(): Configuration;
58
+ private storeTokenData;
59
+ loadTokenData(): void;
60
+ cleanTokenData(): void;
65
61
  private attachInterceptor;
66
62
  }
67
63
  /**