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