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