@emilgroup/tenant-sdk 1.18.0 → 1.19.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 (57) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +2 -2
  3. package/api/dashboard-api.ts +659 -0
  4. package/api/dashboard-group-api.ts +659 -0
  5. package/api.ts +4 -0
  6. package/dist/api/dashboard-api.d.ts +365 -0
  7. package/dist/api/dashboard-api.js +616 -0
  8. package/dist/api/dashboard-group-api.d.ts +365 -0
  9. package/dist/api/dashboard-group-api.js +616 -0
  10. package/dist/api.d.ts +2 -0
  11. package/dist/api.js +2 -0
  12. package/dist/models/create-dashboard-group-request-dto.d.ts +30 -0
  13. package/dist/models/create-dashboard-group-request-dto.js +15 -0
  14. package/dist/models/create-dashboard-group-response-class.d.ts +25 -0
  15. package/dist/models/create-dashboard-group-response-class.js +15 -0
  16. package/dist/models/create-dashboard-request-dto.d.ts +48 -0
  17. package/dist/models/create-dashboard-request-dto.js +15 -0
  18. package/dist/models/create-dashboard-response-class.d.ts +25 -0
  19. package/dist/models/create-dashboard-response-class.js +15 -0
  20. package/dist/models/dashboard-class.d.ts +84 -0
  21. package/dist/models/dashboard-class.js +15 -0
  22. package/dist/models/dashboard-group-class.d.ts +66 -0
  23. package/dist/models/dashboard-group-class.js +15 -0
  24. package/dist/models/get-dashboard-group-response-class.d.ts +25 -0
  25. package/dist/models/get-dashboard-group-response-class.js +15 -0
  26. package/dist/models/get-dashboard-response-class.d.ts +25 -0
  27. package/dist/models/get-dashboard-response-class.js +15 -0
  28. package/dist/models/index.d.ts +14 -0
  29. package/dist/models/index.js +14 -0
  30. package/dist/models/list-dashboard-groups-response-class.d.ts +31 -0
  31. package/dist/models/list-dashboard-groups-response-class.js +15 -0
  32. package/dist/models/list-dashboards-response-class.d.ts +31 -0
  33. package/dist/models/list-dashboards-response-class.js +15 -0
  34. package/dist/models/update-dashboard-group-request-dto.d.ts +30 -0
  35. package/dist/models/update-dashboard-group-request-dto.js +15 -0
  36. package/dist/models/update-dashboard-group-response-class.d.ts +25 -0
  37. package/dist/models/update-dashboard-group-response-class.js +15 -0
  38. package/dist/models/update-dashboard-request-dto.d.ts +48 -0
  39. package/dist/models/update-dashboard-request-dto.js +15 -0
  40. package/dist/models/update-dashboard-response-class.d.ts +25 -0
  41. package/dist/models/update-dashboard-response-class.js +15 -0
  42. package/models/create-dashboard-group-request-dto.ts +36 -0
  43. package/models/create-dashboard-group-response-class.ts +31 -0
  44. package/models/create-dashboard-request-dto.ts +54 -0
  45. package/models/create-dashboard-response-class.ts +31 -0
  46. package/models/dashboard-class.ts +90 -0
  47. package/models/dashboard-group-class.ts +72 -0
  48. package/models/get-dashboard-group-response-class.ts +31 -0
  49. package/models/get-dashboard-response-class.ts +31 -0
  50. package/models/index.ts +14 -0
  51. package/models/list-dashboard-groups-response-class.ts +37 -0
  52. package/models/list-dashboards-response-class.ts +37 -0
  53. package/models/update-dashboard-group-request-dto.ts +36 -0
  54. package/models/update-dashboard-group-response-class.ts +31 -0
  55. package/models/update-dashboard-request-dto.ts +54 -0
  56. package/models/update-dashboard-response-class.ts +31 -0
  57. package/package.json +1 -1
@@ -0,0 +1,616 @@
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.DashboardGroupApi = exports.DashboardGroupApiFactory = exports.DashboardGroupApiFp = exports.DashboardGroupApiAxiosParamCreator = 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
+ * DashboardGroupApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var DashboardGroupApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @param {CreateDashboardGroupRequestDto} createDashboardGroupRequestDto
98
+ * @param {string} [authorization] Bearer Token
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ createDashboardGroup: function (createDashboardGroupRequestDto, 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 'createDashboardGroupRequestDto' is not null or undefined
110
+ (0, common_1.assertParamExists)('createDashboardGroup', 'createDashboardGroupRequestDto', createDashboardGroupRequestDto);
111
+ localVarPath = "/tenantservice/v1/dashboards-groups";
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)(createDashboardGroupRequestDto, 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 {string} code
146
+ * @param {string} [authorization] Bearer Token
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ deleteDashboardGroup: function (code, authorization, options) {
151
+ if (options === void 0) { options = {}; }
152
+ return __awaiter(_this, void 0, void 0, function () {
153
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
154
+ return __generator(this, function (_a) {
155
+ switch (_a.label) {
156
+ case 0:
157
+ // verify required parameter 'code' is not null or undefined
158
+ (0, common_1.assertParamExists)('deleteDashboardGroup', 'code', code);
159
+ localVarPath = "/tenantservice/v1/dashboards-groups/{code}"
160
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
161
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
162
+ if (configuration) {
163
+ baseOptions = configuration.baseOptions;
164
+ baseAccessToken = configuration.accessToken;
165
+ }
166
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
167
+ localVarHeaderParameter = {};
168
+ localVarQueryParameter = {};
169
+ // authentication bearer required
170
+ // http bearer authentication required
171
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
172
+ case 1:
173
+ // authentication bearer required
174
+ // http bearer authentication required
175
+ _a.sent();
176
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
+ }
179
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
182
+ return [2 /*return*/, {
183
+ url: (0, common_1.toPathString)(localVarUrlObj),
184
+ options: localVarRequestOptions,
185
+ }];
186
+ }
187
+ });
188
+ });
189
+ },
190
+ /**
191
+ *
192
+ * @param {string} code
193
+ * @param {string} [authorization] Bearer Token
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ getDashboardGroup: function (code, authorization, options) {
198
+ if (options === void 0) { options = {}; }
199
+ return __awaiter(_this, void 0, void 0, function () {
200
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
201
+ return __generator(this, function (_a) {
202
+ switch (_a.label) {
203
+ case 0:
204
+ // verify required parameter 'code' is not null or undefined
205
+ (0, common_1.assertParamExists)('getDashboardGroup', 'code', code);
206
+ localVarPath = "/tenantservice/v1/dashboards-groups/{code}"
207
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
208
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ baseAccessToken = configuration.accessToken;
212
+ }
213
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
214
+ localVarHeaderParameter = {};
215
+ localVarQueryParameter = {};
216
+ // authentication bearer required
217
+ // http bearer authentication required
218
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
219
+ case 1:
220
+ // authentication bearer required
221
+ // http bearer authentication required
222
+ _a.sent();
223
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
225
+ }
226
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
227
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
228
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
229
+ return [2 /*return*/, {
230
+ url: (0, common_1.toPathString)(localVarUrlObj),
231
+ options: localVarRequestOptions,
232
+ }];
233
+ }
234
+ });
235
+ });
236
+ },
237
+ /**
238
+ *
239
+ * @param {string} [authorization] Bearer Token
240
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
241
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
242
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
243
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
244
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
245
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
246
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ listDashboardGroups: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
251
+ if (options === void 0) { options = {}; }
252
+ return __awaiter(_this, void 0, void 0, function () {
253
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
254
+ return __generator(this, function (_a) {
255
+ switch (_a.label) {
256
+ case 0:
257
+ localVarPath = "/tenantservice/v1/dashboards-groups";
258
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
259
+ if (configuration) {
260
+ baseOptions = configuration.baseOptions;
261
+ baseAccessToken = configuration.accessToken;
262
+ }
263
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
264
+ localVarHeaderParameter = {};
265
+ localVarQueryParameter = {};
266
+ // authentication bearer required
267
+ // http bearer authentication required
268
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
269
+ case 1:
270
+ // authentication bearer required
271
+ // http bearer authentication required
272
+ _a.sent();
273
+ if (pageSize !== undefined) {
274
+ localVarQueryParameter['pageSize'] = pageSize;
275
+ }
276
+ if (pageToken !== undefined) {
277
+ localVarQueryParameter['pageToken'] = pageToken;
278
+ }
279
+ if (filter !== undefined) {
280
+ localVarQueryParameter['filter'] = filter;
281
+ }
282
+ if (search !== undefined) {
283
+ localVarQueryParameter['search'] = search;
284
+ }
285
+ if (order !== undefined) {
286
+ localVarQueryParameter['order'] = order;
287
+ }
288
+ if (expand !== undefined) {
289
+ localVarQueryParameter['expand'] = expand;
290
+ }
291
+ if (filters !== undefined) {
292
+ localVarQueryParameter['filters'] = filters;
293
+ }
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
+ }
297
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
298
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
300
+ return [2 /*return*/, {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ }];
304
+ }
305
+ });
306
+ });
307
+ },
308
+ /**
309
+ *
310
+ * @param {string} code
311
+ * @param {UpdateDashboardGroupRequestDto} updateDashboardGroupRequestDto
312
+ * @param {string} [authorization] Bearer Token
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ updateDashboardGroup: function (code, updateDashboardGroupRequestDto, authorization, options) {
317
+ if (options === void 0) { options = {}; }
318
+ return __awaiter(_this, void 0, void 0, function () {
319
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
320
+ return __generator(this, function (_a) {
321
+ switch (_a.label) {
322
+ case 0:
323
+ // verify required parameter 'code' is not null or undefined
324
+ (0, common_1.assertParamExists)('updateDashboardGroup', 'code', code);
325
+ // verify required parameter 'updateDashboardGroupRequestDto' is not null or undefined
326
+ (0, common_1.assertParamExists)('updateDashboardGroup', 'updateDashboardGroupRequestDto', updateDashboardGroupRequestDto);
327
+ localVarPath = "/tenantservice/v1/dashboards-groups/{code}"
328
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
329
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
330
+ if (configuration) {
331
+ baseOptions = configuration.baseOptions;
332
+ baseAccessToken = configuration.accessToken;
333
+ }
334
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
335
+ localVarHeaderParameter = {};
336
+ localVarQueryParameter = {};
337
+ // authentication bearer required
338
+ // http bearer authentication required
339
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
340
+ case 1:
341
+ // authentication bearer required
342
+ // http bearer authentication required
343
+ _a.sent();
344
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
345
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
346
+ }
347
+ localVarHeaderParameter['Content-Type'] = 'application/json';
348
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
349
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
350
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
351
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDashboardGroupRequestDto, localVarRequestOptions, configuration);
352
+ return [2 /*return*/, {
353
+ url: (0, common_1.toPathString)(localVarUrlObj),
354
+ options: localVarRequestOptions,
355
+ }];
356
+ }
357
+ });
358
+ });
359
+ },
360
+ };
361
+ };
362
+ exports.DashboardGroupApiAxiosParamCreator = DashboardGroupApiAxiosParamCreator;
363
+ /**
364
+ * DashboardGroupApi - functional programming interface
365
+ * @export
366
+ */
367
+ var DashboardGroupApiFp = function (configuration) {
368
+ var localVarAxiosParamCreator = (0, exports.DashboardGroupApiAxiosParamCreator)(configuration);
369
+ return {
370
+ /**
371
+ *
372
+ * @param {CreateDashboardGroupRequestDto} createDashboardGroupRequestDto
373
+ * @param {string} [authorization] Bearer Token
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ createDashboardGroup: function (createDashboardGroupRequestDto, authorization, options) {
378
+ return __awaiter(this, void 0, void 0, function () {
379
+ var localVarAxiosArgs;
380
+ return __generator(this, function (_a) {
381
+ switch (_a.label) {
382
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDashboardGroup(createDashboardGroupRequestDto, authorization, options)];
383
+ case 1:
384
+ localVarAxiosArgs = _a.sent();
385
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
386
+ }
387
+ });
388
+ });
389
+ },
390
+ /**
391
+ *
392
+ * @param {string} code
393
+ * @param {string} [authorization] Bearer Token
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ deleteDashboardGroup: function (code, authorization, options) {
398
+ return __awaiter(this, void 0, void 0, function () {
399
+ var localVarAxiosArgs;
400
+ return __generator(this, function (_a) {
401
+ switch (_a.label) {
402
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDashboardGroup(code, authorization, options)];
403
+ case 1:
404
+ localVarAxiosArgs = _a.sent();
405
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
406
+ }
407
+ });
408
+ });
409
+ },
410
+ /**
411
+ *
412
+ * @param {string} code
413
+ * @param {string} [authorization] Bearer Token
414
+ * @param {*} [options] Override http request option.
415
+ * @throws {RequiredError}
416
+ */
417
+ getDashboardGroup: function (code, authorization, options) {
418
+ return __awaiter(this, void 0, void 0, function () {
419
+ var localVarAxiosArgs;
420
+ return __generator(this, function (_a) {
421
+ switch (_a.label) {
422
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDashboardGroup(code, authorization, options)];
423
+ case 1:
424
+ localVarAxiosArgs = _a.sent();
425
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
426
+ }
427
+ });
428
+ });
429
+ },
430
+ /**
431
+ *
432
+ * @param {string} [authorization] Bearer Token
433
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
434
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
435
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
436
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
437
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
438
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
439
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ listDashboardGroups: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
444
+ return __awaiter(this, void 0, void 0, function () {
445
+ var localVarAxiosArgs;
446
+ return __generator(this, function (_a) {
447
+ switch (_a.label) {
448
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDashboardGroups(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
449
+ case 1:
450
+ localVarAxiosArgs = _a.sent();
451
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
452
+ }
453
+ });
454
+ });
455
+ },
456
+ /**
457
+ *
458
+ * @param {string} code
459
+ * @param {UpdateDashboardGroupRequestDto} updateDashboardGroupRequestDto
460
+ * @param {string} [authorization] Bearer Token
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ updateDashboardGroup: function (code, updateDashboardGroupRequestDto, authorization, options) {
465
+ return __awaiter(this, void 0, void 0, function () {
466
+ var localVarAxiosArgs;
467
+ return __generator(this, function (_a) {
468
+ switch (_a.label) {
469
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateDashboardGroup(code, updateDashboardGroupRequestDto, authorization, options)];
470
+ case 1:
471
+ localVarAxiosArgs = _a.sent();
472
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
473
+ }
474
+ });
475
+ });
476
+ },
477
+ };
478
+ };
479
+ exports.DashboardGroupApiFp = DashboardGroupApiFp;
480
+ /**
481
+ * DashboardGroupApi - factory interface
482
+ * @export
483
+ */
484
+ var DashboardGroupApiFactory = function (configuration, basePath, axios) {
485
+ var localVarFp = (0, exports.DashboardGroupApiFp)(configuration);
486
+ return {
487
+ /**
488
+ *
489
+ * @param {CreateDashboardGroupRequestDto} createDashboardGroupRequestDto
490
+ * @param {string} [authorization] Bearer Token
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ createDashboardGroup: function (createDashboardGroupRequestDto, authorization, options) {
495
+ return localVarFp.createDashboardGroup(createDashboardGroupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
496
+ },
497
+ /**
498
+ *
499
+ * @param {string} code
500
+ * @param {string} [authorization] Bearer Token
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ deleteDashboardGroup: function (code, authorization, options) {
505
+ return localVarFp.deleteDashboardGroup(code, authorization, options).then(function (request) { return request(axios, basePath); });
506
+ },
507
+ /**
508
+ *
509
+ * @param {string} code
510
+ * @param {string} [authorization] Bearer Token
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ getDashboardGroup: function (code, authorization, options) {
515
+ return localVarFp.getDashboardGroup(code, authorization, options).then(function (request) { return request(axios, basePath); });
516
+ },
517
+ /**
518
+ *
519
+ * @param {string} [authorization] Bearer Token
520
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
521
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
522
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
523
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
524
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
525
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
526
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ listDashboardGroups: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
531
+ return localVarFp.listDashboardGroups(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
532
+ },
533
+ /**
534
+ *
535
+ * @param {string} code
536
+ * @param {UpdateDashboardGroupRequestDto} updateDashboardGroupRequestDto
537
+ * @param {string} [authorization] Bearer Token
538
+ * @param {*} [options] Override http request option.
539
+ * @throws {RequiredError}
540
+ */
541
+ updateDashboardGroup: function (code, updateDashboardGroupRequestDto, authorization, options) {
542
+ return localVarFp.updateDashboardGroup(code, updateDashboardGroupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
543
+ },
544
+ };
545
+ };
546
+ exports.DashboardGroupApiFactory = DashboardGroupApiFactory;
547
+ /**
548
+ * DashboardGroupApi - object-oriented interface
549
+ * @export
550
+ * @class DashboardGroupApi
551
+ * @extends {BaseAPI}
552
+ */
553
+ var DashboardGroupApi = /** @class */ (function (_super) {
554
+ __extends(DashboardGroupApi, _super);
555
+ function DashboardGroupApi() {
556
+ return _super !== null && _super.apply(this, arguments) || this;
557
+ }
558
+ /**
559
+ *
560
+ * @param {DashboardGroupApiCreateDashboardGroupRequest} requestParameters Request parameters.
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ * @memberof DashboardGroupApi
564
+ */
565
+ DashboardGroupApi.prototype.createDashboardGroup = function (requestParameters, options) {
566
+ var _this = this;
567
+ return (0, exports.DashboardGroupApiFp)(this.configuration).createDashboardGroup(requestParameters.createDashboardGroupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
568
+ };
569
+ /**
570
+ *
571
+ * @param {DashboardGroupApiDeleteDashboardGroupRequest} requestParameters Request parameters.
572
+ * @param {*} [options] Override http request option.
573
+ * @throws {RequiredError}
574
+ * @memberof DashboardGroupApi
575
+ */
576
+ DashboardGroupApi.prototype.deleteDashboardGroup = function (requestParameters, options) {
577
+ var _this = this;
578
+ return (0, exports.DashboardGroupApiFp)(this.configuration).deleteDashboardGroup(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
579
+ };
580
+ /**
581
+ *
582
+ * @param {DashboardGroupApiGetDashboardGroupRequest} requestParameters Request parameters.
583
+ * @param {*} [options] Override http request option.
584
+ * @throws {RequiredError}
585
+ * @memberof DashboardGroupApi
586
+ */
587
+ DashboardGroupApi.prototype.getDashboardGroup = function (requestParameters, options) {
588
+ var _this = this;
589
+ return (0, exports.DashboardGroupApiFp)(this.configuration).getDashboardGroup(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
590
+ };
591
+ /**
592
+ *
593
+ * @param {DashboardGroupApiListDashboardGroupsRequest} requestParameters Request parameters.
594
+ * @param {*} [options] Override http request option.
595
+ * @throws {RequiredError}
596
+ * @memberof DashboardGroupApi
597
+ */
598
+ DashboardGroupApi.prototype.listDashboardGroups = function (requestParameters, options) {
599
+ var _this = this;
600
+ if (requestParameters === void 0) { requestParameters = {}; }
601
+ return (0, exports.DashboardGroupApiFp)(this.configuration).listDashboardGroups(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
602
+ };
603
+ /**
604
+ *
605
+ * @param {DashboardGroupApiUpdateDashboardGroupRequest} requestParameters Request parameters.
606
+ * @param {*} [options] Override http request option.
607
+ * @throws {RequiredError}
608
+ * @memberof DashboardGroupApi
609
+ */
610
+ DashboardGroupApi.prototype.updateDashboardGroup = function (requestParameters, options) {
611
+ var _this = this;
612
+ return (0, exports.DashboardGroupApiFp)(this.configuration).updateDashboardGroup(requestParameters.code, requestParameters.updateDashboardGroupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
613
+ };
614
+ return DashboardGroupApi;
615
+ }(base_1.BaseAPI));
616
+ exports.DashboardGroupApi = DashboardGroupApi;
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/dashboard-api';
14
+ export * from './api/dashboard-group-api';
13
15
  export * from './api/data-report-api';
14
16
  export * from './api/data-report-executor-api';
15
17
  export * from './api/default-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/dashboard-api"), exports);
32
+ __exportStar(require("./api/dashboard-group-api"), exports);
31
33
  __exportStar(require("./api/data-report-api"), exports);
32
34
  __exportStar(require("./api/data-report-executor-api"), exports);
33
35
  __exportStar(require("./api/default-api"), exports);