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