@emilgroup/tenant-sdk 1.3.0 → 1.5.0

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 (63) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +2 -2
  3. package/api/data-report-api.ts +677 -0
  4. package/api/data-report-executor-api.ts +165 -0
  5. package/api/roles-api.ts +236 -0
  6. package/api/settings-api.ts +168 -0
  7. package/api.ts +8 -0
  8. package/dist/api/data-report-api.d.ts +380 -0
  9. package/dist/api/data-report-api.js +636 -0
  10. package/dist/api/data-report-executor-api.d.ts +93 -0
  11. package/dist/api/data-report-executor-api.js +224 -0
  12. package/dist/api/roles-api.d.ts +141 -0
  13. package/dist/api/roles-api.js +258 -0
  14. package/dist/api/settings-api.d.ts +96 -0
  15. package/dist/api/settings-api.js +229 -0
  16. package/dist/api.d.ts +4 -0
  17. package/dist/api.js +4 -0
  18. package/dist/models/create-data-report-request-dto.d.ts +61 -0
  19. package/dist/models/create-data-report-request-dto.js +15 -0
  20. package/dist/models/create-data-report-response-class.d.ts +25 -0
  21. package/dist/models/create-data-report-response-class.js +15 -0
  22. package/dist/models/data-report-class.d.ts +79 -0
  23. package/dist/models/data-report-class.js +15 -0
  24. package/dist/models/data-report-filter-class.d.ts +72 -0
  25. package/dist/models/data-report-filter-class.js +15 -0
  26. package/dist/models/data-report-filter-dto.d.ts +48 -0
  27. package/dist/models/data-report-filter-dto.js +15 -0
  28. package/dist/models/data-report-filter-single-value-dto.d.ts +42 -0
  29. package/dist/models/data-report-filter-single-value-dto.js +15 -0
  30. package/dist/models/data-report-filter-value-dto.d.ts +31 -0
  31. package/dist/models/data-report-filter-value-dto.js +15 -0
  32. package/dist/models/get-data-report-response-class.d.ts +25 -0
  33. package/dist/models/get-data-report-response-class.js +15 -0
  34. package/dist/models/index.d.ts +14 -0
  35. package/dist/models/index.js +14 -0
  36. package/dist/models/list-data-reports-response-class.d.ts +31 -0
  37. package/dist/models/list-data-reports-response-class.js +15 -0
  38. package/dist/models/list-roles-response-class.d.ts +31 -0
  39. package/dist/models/list-roles-response-class.js +15 -0
  40. package/dist/models/run-data-report-request-dto.d.ts +31 -0
  41. package/dist/models/run-data-report-request-dto.js +15 -0
  42. package/dist/models/run-data-report-response-class.d.ts +24 -0
  43. package/dist/models/run-data-report-response-class.js +15 -0
  44. package/dist/models/update-data-report-request-dto.d.ts +61 -0
  45. package/dist/models/update-data-report-request-dto.js +15 -0
  46. package/dist/models/update-data-report-response-class.d.ts +25 -0
  47. package/dist/models/update-data-report-response-class.js +15 -0
  48. package/models/create-data-report-request-dto.ts +67 -0
  49. package/models/create-data-report-response-class.ts +31 -0
  50. package/models/data-report-class.ts +85 -0
  51. package/models/data-report-filter-class.ts +78 -0
  52. package/models/data-report-filter-dto.ts +54 -0
  53. package/models/data-report-filter-single-value-dto.ts +48 -0
  54. package/models/data-report-filter-value-dto.ts +37 -0
  55. package/models/get-data-report-response-class.ts +31 -0
  56. package/models/index.ts +14 -0
  57. package/models/list-data-reports-response-class.ts +37 -0
  58. package/models/list-roles-response-class.ts +37 -0
  59. package/models/run-data-report-request-dto.ts +37 -0
  60. package/models/run-data-report-response-class.ts +30 -0
  61. package/models/update-data-report-request-dto.ts +67 -0
  62. package/models/update-data-report-response-class.ts +31 -0
  63. package/package.json +1 -1
@@ -0,0 +1,258 @@
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.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = 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
+ * RolesApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var RolesApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
101
+ * @summary List roles
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {number} [pageSize] Page size
104
+ * @param {string} [pageToken] Page token
105
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
106
+ * @param {string} [search] Search query
107
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
108
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
113
+ if (options === void 0) { options = {}; }
114
+ return __awaiter(_this, void 0, void 0, function () {
115
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0:
119
+ localVarPath = "/tenantservice/v1/roles";
120
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
121
+ if (configuration) {
122
+ baseOptions = configuration.baseOptions;
123
+ baseAccessToken = configuration.accessToken;
124
+ }
125
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
126
+ localVarHeaderParameter = {};
127
+ localVarQueryParameter = {};
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
+ case 1:
132
+ // authentication bearer required
133
+ // http bearer authentication required
134
+ _a.sent();
135
+ if (pageSize !== undefined) {
136
+ localVarQueryParameter['pageSize'] = pageSize;
137
+ }
138
+ if (pageToken !== undefined) {
139
+ localVarQueryParameter['pageToken'] = pageToken;
140
+ }
141
+ if (filter !== undefined) {
142
+ localVarQueryParameter['filter'] = filter;
143
+ }
144
+ if (search !== undefined) {
145
+ localVarQueryParameter['search'] = search;
146
+ }
147
+ if (order !== undefined) {
148
+ localVarQueryParameter['order'] = order;
149
+ }
150
+ if (expand !== undefined) {
151
+ localVarQueryParameter['expand'] = expand;
152
+ }
153
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
154
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
155
+ }
156
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
157
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
159
+ return [2 /*return*/, {
160
+ url: (0, common_1.toPathString)(localVarUrlObj),
161
+ options: localVarRequestOptions,
162
+ }];
163
+ }
164
+ });
165
+ });
166
+ },
167
+ };
168
+ };
169
+ exports.RolesApiAxiosParamCreator = RolesApiAxiosParamCreator;
170
+ /**
171
+ * RolesApi - functional programming interface
172
+ * @export
173
+ */
174
+ var RolesApiFp = function (configuration) {
175
+ var localVarAxiosParamCreator = (0, exports.RolesApiAxiosParamCreator)(configuration);
176
+ return {
177
+ /**
178
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
179
+ * @summary List roles
180
+ * @param {string} [authorization] Bearer Token
181
+ * @param {number} [pageSize] Page size
182
+ * @param {string} [pageToken] Page token
183
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
184
+ * @param {string} [search] Search query
185
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
186
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
191
+ return __awaiter(this, void 0, void 0, function () {
192
+ var localVarAxiosArgs;
193
+ return __generator(this, function (_a) {
194
+ switch (_a.label) {
195
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options)];
196
+ case 1:
197
+ localVarAxiosArgs = _a.sent();
198
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
199
+ }
200
+ });
201
+ });
202
+ },
203
+ };
204
+ };
205
+ exports.RolesApiFp = RolesApiFp;
206
+ /**
207
+ * RolesApi - factory interface
208
+ * @export
209
+ */
210
+ var RolesApiFactory = function (configuration, basePath, axios) {
211
+ var localVarFp = (0, exports.RolesApiFp)(configuration);
212
+ return {
213
+ /**
214
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
215
+ * @summary List roles
216
+ * @param {string} [authorization] Bearer Token
217
+ * @param {number} [pageSize] Page size
218
+ * @param {string} [pageToken] Page token
219
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
220
+ * @param {string} [search] Search query
221
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
222
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
227
+ return localVarFp.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
228
+ },
229
+ };
230
+ };
231
+ exports.RolesApiFactory = RolesApiFactory;
232
+ /**
233
+ * RolesApi - object-oriented interface
234
+ * @export
235
+ * @class RolesApi
236
+ * @extends {BaseAPI}
237
+ */
238
+ var RolesApi = /** @class */ (function (_super) {
239
+ __extends(RolesApi, _super);
240
+ function RolesApi() {
241
+ return _super !== null && _super.apply(this, arguments) || this;
242
+ }
243
+ /**
244
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
245
+ * @summary List roles
246
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ * @memberof RolesApi
250
+ */
251
+ RolesApi.prototype.listRoles = function (requestParameters, options) {
252
+ var _this = this;
253
+ if (requestParameters === void 0) { requestParameters = {}; }
254
+ return (0, exports.RolesApiFp)(this.configuration).listRoles(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
255
+ };
256
+ return RolesApi;
257
+ }(base_1.BaseAPI));
258
+ exports.RolesApi = RolesApi;
@@ -0,0 +1,96 @@
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 { GetSettingsResponseClass } from '../models';
16
+ /**
17
+ * SettingsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
23
+ * @summary Retrieve the settings
24
+ * @param {string} keys
25
+ * @param {string} [authorization] Bearer Token
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ getTenantSettings: (keys: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ };
31
+ /**
32
+ * SettingsApi - functional programming interface
33
+ * @export
34
+ */
35
+ export declare const SettingsApiFp: (configuration?: Configuration) => {
36
+ /**
37
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
38
+ * @summary Retrieve the settings
39
+ * @param {string} keys
40
+ * @param {string} [authorization] Bearer Token
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ getTenantSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>>;
45
+ };
46
+ /**
47
+ * SettingsApi - factory interface
48
+ * @export
49
+ */
50
+ export declare const SettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
51
+ /**
52
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
53
+ * @summary Retrieve the settings
54
+ * @param {string} keys
55
+ * @param {string} [authorization] Bearer Token
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass>;
60
+ };
61
+ /**
62
+ * Request parameters for getTenantSettings operation in SettingsApi.
63
+ * @export
64
+ * @interface SettingsApiGetTenantSettingsRequest
65
+ */
66
+ export interface SettingsApiGetTenantSettingsRequest {
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof SettingsApiGetTenantSettings
71
+ */
72
+ readonly keys: string;
73
+ /**
74
+ * Bearer Token
75
+ * @type {string}
76
+ * @memberof SettingsApiGetTenantSettings
77
+ */
78
+ readonly authorization?: string;
79
+ }
80
+ /**
81
+ * SettingsApi - object-oriented interface
82
+ * @export
83
+ * @class SettingsApi
84
+ * @extends {BaseAPI}
85
+ */
86
+ export declare class SettingsApi extends BaseAPI {
87
+ /**
88
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
89
+ * @summary Retrieve the settings
90
+ * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof SettingsApi
94
+ */
95
+ getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any>>;
96
+ }
@@ -0,0 +1,229 @@
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.SettingsApi = exports.SettingsApiFactory = exports.SettingsApiFp = exports.SettingsApiAxiosParamCreator = 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
+ * SettingsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var SettingsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
101
+ * @summary Retrieve the settings
102
+ * @param {string} keys
103
+ * @param {string} [authorization] Bearer Token
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ getTenantSettings: function (keys, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'keys' is not null or undefined
115
+ (0, common_1.assertParamExists)('getTenantSettings', 'keys', keys);
116
+ localVarPath = "/tenantservice/v1/settings/tenant";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (keys !== undefined) {
133
+ localVarQueryParameter['keys'] = keys;
134
+ }
135
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
+ }
138
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
141
+ return [2 /*return*/, {
142
+ url: (0, common_1.toPathString)(localVarUrlObj),
143
+ options: localVarRequestOptions,
144
+ }];
145
+ }
146
+ });
147
+ });
148
+ },
149
+ };
150
+ };
151
+ exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
152
+ /**
153
+ * SettingsApi - functional programming interface
154
+ * @export
155
+ */
156
+ var SettingsApiFp = function (configuration) {
157
+ var localVarAxiosParamCreator = (0, exports.SettingsApiAxiosParamCreator)(configuration);
158
+ return {
159
+ /**
160
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
161
+ * @summary Retrieve the settings
162
+ * @param {string} keys
163
+ * @param {string} [authorization] Bearer Token
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ getTenantSettings: function (keys, authorization, options) {
168
+ return __awaiter(this, void 0, void 0, function () {
169
+ var localVarAxiosArgs;
170
+ return __generator(this, function (_a) {
171
+ switch (_a.label) {
172
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTenantSettings(keys, authorization, options)];
173
+ case 1:
174
+ localVarAxiosArgs = _a.sent();
175
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
176
+ }
177
+ });
178
+ });
179
+ },
180
+ };
181
+ };
182
+ exports.SettingsApiFp = SettingsApiFp;
183
+ /**
184
+ * SettingsApi - factory interface
185
+ * @export
186
+ */
187
+ var SettingsApiFactory = function (configuration, basePath, axios) {
188
+ var localVarFp = (0, exports.SettingsApiFp)(configuration);
189
+ return {
190
+ /**
191
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
192
+ * @summary Retrieve the settings
193
+ * @param {string} keys
194
+ * @param {string} [authorization] Bearer Token
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ getTenantSettings: function (keys, authorization, options) {
199
+ return localVarFp.getTenantSettings(keys, authorization, options).then(function (request) { return request(axios, basePath); });
200
+ },
201
+ };
202
+ };
203
+ exports.SettingsApiFactory = SettingsApiFactory;
204
+ /**
205
+ * SettingsApi - object-oriented interface
206
+ * @export
207
+ * @class SettingsApi
208
+ * @extends {BaseAPI}
209
+ */
210
+ var SettingsApi = /** @class */ (function (_super) {
211
+ __extends(SettingsApi, _super);
212
+ function SettingsApi() {
213
+ return _super !== null && _super.apply(this, arguments) || this;
214
+ }
215
+ /**
216
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
217
+ * @summary Retrieve the settings
218
+ * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ * @memberof SettingsApi
222
+ */
223
+ SettingsApi.prototype.getTenantSettings = function (requestParameters, options) {
224
+ var _this = this;
225
+ return (0, exports.SettingsApiFp)(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
226
+ };
227
+ return SettingsApi;
228
+ }(base_1.BaseAPI));
229
+ exports.SettingsApi = SettingsApi;
package/dist/api.d.ts CHANGED
@@ -10,9 +10,13 @@
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';
16
18
  export * from './api/organizations-api';
17
19
  export * from './api/re-invite-an-organization-api';
20
+ export * from './api/roles-api';
21
+ export * from './api/settings-api';
18
22
  export * from './api/users-api';
package/dist/api.js CHANGED
@@ -28,9 +28,13 @@ 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);
34
36
  __exportStar(require("./api/organizations-api"), exports);
35
37
  __exportStar(require("./api/re-invite-an-organization-api"), exports);
38
+ __exportStar(require("./api/roles-api"), exports);
39
+ __exportStar(require("./api/settings-api"), exports);
36
40
  __exportStar(require("./api/users-api"), exports);
@@ -0,0 +1,61 @@
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 { DataReportFilterDto } from './data-report-filter-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateDataReportRequestDto
17
+ */
18
+ export interface CreateDataReportRequestDto {
19
+ /**
20
+ * Unique identifier for the object.
21
+ * @type {string}
22
+ * @memberof CreateDataReportRequestDto
23
+ */
24
+ 'code': string;
25
+ /**
26
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
27
+ * @type {string}
28
+ * @memberof CreateDataReportRequestDto
29
+ */
30
+ 'slug': string;
31
+ /**
32
+ * Optional description of the data report.
33
+ * @type {string}
34
+ * @memberof CreateDataReportRequestDto
35
+ */
36
+ 'description'?: string;
37
+ /**
38
+ * Athena view or query to use in the FROM clause of the report query.
39
+ * @type {string}
40
+ * @memberof CreateDataReportRequestDto
41
+ */
42
+ 'fromClause': string;
43
+ /**
44
+ * Optional list of columns to sort the query results by (to use in the ORDER BY clause of the report query).
45
+ * @type {string}
46
+ * @memberof CreateDataReportRequestDto
47
+ */
48
+ 'orderByClause'?: string;
49
+ /**
50
+ * Optional number of records to return as the report results.
51
+ * @type {number}
52
+ * @memberof CreateDataReportRequestDto
53
+ */
54
+ 'limit'?: number;
55
+ /**
56
+ * Array with the report filter values.
57
+ * @type {Array<DataReportFilterDto>}
58
+ * @memberof CreateDataReportRequestDto
59
+ */
60
+ 'filters': Array<DataReportFilterDto>;
61
+ }