@emilgroup/tenant-sdk 1.18.0 → 1.21.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 +659 -0
  4. package/api/dashboard-group-api.ts +659 -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 +616 -0
  9. package/dist/api/dashboard-group-api.d.ts +365 -0
  10. package/dist/api/dashboard-group-api.js +616 -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,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 { CreateDashboardRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateDashboardResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetDashboardResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListDashboardsResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateDashboardRequestDto } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateDashboardResponseClass } from '../models';
37
+ /**
38
+ * DashboardApi - axios parameter creator
39
+ * @export
40
+ */
41
+ export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
42
+ return {
43
+ /**
44
+ *
45
+ * @param {CreateDashboardRequestDto} createDashboardRequestDto
46
+ * @param {string} [authorization] Bearer Token
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ createDashboard: async (createDashboardRequestDto: CreateDashboardRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
+ // verify required parameter 'createDashboardRequestDto' is not null or undefined
52
+ assertParamExists('createDashboard', 'createDashboardRequestDto', createDashboardRequestDto)
53
+ const localVarPath = `/tenantservice/v1/dashboards`;
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(createDashboardRequestDto, 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
+ deleteDashboard: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'code' is not null or undefined
98
+ assertParamExists('deleteDashboard', 'code', code)
99
+ const localVarPath = `/tenantservice/v1/dashboards/{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
+ getDashboard: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
141
+ // verify required parameter 'code' is not null or undefined
142
+ assertParamExists('getDashboard', 'code', code)
143
+ const localVarPath = `/tenantservice/v1/dashboards/{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
+ listDashboards: 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`;
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 {UpdateDashboardRequestDto} updateDashboardRequestDto
256
+ * @param {string} [authorization] Bearer Token
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ updateDashboard: async (code: string, updateDashboardRequestDto: UpdateDashboardRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
261
+ // verify required parameter 'code' is not null or undefined
262
+ assertParamExists('updateDashboard', 'code', code)
263
+ // verify required parameter 'updateDashboardRequestDto' is not null or undefined
264
+ assertParamExists('updateDashboard', 'updateDashboardRequestDto', updateDashboardRequestDto)
265
+ const localVarPath = `/tenantservice/v1/dashboards/{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(updateDashboardRequestDto, localVarRequestOptions, configuration)
296
+
297
+ return {
298
+ url: toPathString(localVarUrlObj),
299
+ options: localVarRequestOptions,
300
+ };
301
+ },
302
+ }
303
+ };
304
+
305
+ /**
306
+ * DashboardApi - functional programming interface
307
+ * @export
308
+ */
309
+ export const DashboardApiFp = function(configuration?: Configuration) {
310
+ const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration)
311
+ return {
312
+ /**
313
+ *
314
+ * @param {CreateDashboardRequestDto} createDashboardRequestDto
315
+ * @param {string} [authorization] Bearer Token
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ async createDashboard(createDashboardRequestDto: CreateDashboardRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDashboardResponseClass>> {
320
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDashboard(createDashboardRequestDto, 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 deleteDashboard(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
331
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDashboard(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 getDashboard(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDashboardResponseClass>> {
342
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboard(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 listDashboards(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDashboardsResponseClass>> {
359
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDashboards(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 {UpdateDashboardRequestDto} updateDashboardRequestDto
366
+ * @param {string} [authorization] Bearer Token
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ async updateDashboard(code: string, updateDashboardRequestDto: UpdateDashboardRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDashboardResponseClass>> {
371
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateDashboard(code, updateDashboardRequestDto, authorization, options);
372
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
373
+ },
374
+ }
375
+ };
376
+
377
+ /**
378
+ * DashboardApi - factory interface
379
+ * @export
380
+ */
381
+ export const DashboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
382
+ const localVarFp = DashboardApiFp(configuration)
383
+ return {
384
+ /**
385
+ *
386
+ * @param {CreateDashboardRequestDto} createDashboardRequestDto
387
+ * @param {string} [authorization] Bearer Token
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ createDashboard(createDashboardRequestDto: CreateDashboardRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDashboardResponseClass> {
392
+ return localVarFp.createDashboard(createDashboardRequestDto, 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
+ deleteDashboard(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
402
+ return localVarFp.deleteDashboard(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
+ getDashboard(code: string, authorization?: string, options?: any): AxiosPromise<GetDashboardResponseClass> {
412
+ return localVarFp.getDashboard(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
+ listDashboards(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListDashboardsResponseClass> {
428
+ return localVarFp.listDashboards(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
429
+ },
430
+ /**
431
+ *
432
+ * @param {string} code
433
+ * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
434
+ * @param {string} [authorization] Bearer Token
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ updateDashboard(code: string, updateDashboardRequestDto: UpdateDashboardRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateDashboardResponseClass> {
439
+ return localVarFp.updateDashboard(code, updateDashboardRequestDto, authorization, options).then((request) => request(axios, basePath));
440
+ },
441
+ };
442
+ };
443
+
444
+ /**
445
+ * Request parameters for createDashboard operation in DashboardApi.
446
+ * @export
447
+ * @interface DashboardApiCreateDashboardRequest
448
+ */
449
+ export interface DashboardApiCreateDashboardRequest {
450
+ /**
451
+ *
452
+ * @type {CreateDashboardRequestDto}
453
+ * @memberof DashboardApiCreateDashboard
454
+ */
455
+ readonly createDashboardRequestDto: CreateDashboardRequestDto
456
+
457
+ /**
458
+ * Bearer Token
459
+ * @type {string}
460
+ * @memberof DashboardApiCreateDashboard
461
+ */
462
+ readonly authorization?: string
463
+ }
464
+
465
+ /**
466
+ * Request parameters for deleteDashboard operation in DashboardApi.
467
+ * @export
468
+ * @interface DashboardApiDeleteDashboardRequest
469
+ */
470
+ export interface DashboardApiDeleteDashboardRequest {
471
+ /**
472
+ *
473
+ * @type {string}
474
+ * @memberof DashboardApiDeleteDashboard
475
+ */
476
+ readonly code: string
477
+
478
+ /**
479
+ * Bearer Token
480
+ * @type {string}
481
+ * @memberof DashboardApiDeleteDashboard
482
+ */
483
+ readonly authorization?: string
484
+ }
485
+
486
+ /**
487
+ * Request parameters for getDashboard operation in DashboardApi.
488
+ * @export
489
+ * @interface DashboardApiGetDashboardRequest
490
+ */
491
+ export interface DashboardApiGetDashboardRequest {
492
+ /**
493
+ *
494
+ * @type {string}
495
+ * @memberof DashboardApiGetDashboard
496
+ */
497
+ readonly code: string
498
+
499
+ /**
500
+ * Bearer Token
501
+ * @type {string}
502
+ * @memberof DashboardApiGetDashboard
503
+ */
504
+ readonly authorization?: string
505
+ }
506
+
507
+ /**
508
+ * Request parameters for listDashboards operation in DashboardApi.
509
+ * @export
510
+ * @interface DashboardApiListDashboardsRequest
511
+ */
512
+ export interface DashboardApiListDashboardsRequest {
513
+ /**
514
+ * Bearer Token
515
+ * @type {string}
516
+ * @memberof DashboardApiListDashboards
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 DashboardApiListDashboards
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 DashboardApiListDashboards
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 DashboardApiListDashboards
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 DashboardApiListDashboards
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 DashboardApiListDashboards
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 DashboardApiListDashboards
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 DashboardApiListDashboards
566
+ */
567
+ readonly filters?: any
568
+ }
569
+
570
+ /**
571
+ * Request parameters for updateDashboard operation in DashboardApi.
572
+ * @export
573
+ * @interface DashboardApiUpdateDashboardRequest
574
+ */
575
+ export interface DashboardApiUpdateDashboardRequest {
576
+ /**
577
+ *
578
+ * @type {string}
579
+ * @memberof DashboardApiUpdateDashboard
580
+ */
581
+ readonly code: string
582
+
583
+ /**
584
+ *
585
+ * @type {UpdateDashboardRequestDto}
586
+ * @memberof DashboardApiUpdateDashboard
587
+ */
588
+ readonly updateDashboardRequestDto: UpdateDashboardRequestDto
589
+
590
+ /**
591
+ * Bearer Token
592
+ * @type {string}
593
+ * @memberof DashboardApiUpdateDashboard
594
+ */
595
+ readonly authorization?: string
596
+ }
597
+
598
+ /**
599
+ * DashboardApi - object-oriented interface
600
+ * @export
601
+ * @class DashboardApi
602
+ * @extends {BaseAPI}
603
+ */
604
+ export class DashboardApi extends BaseAPI {
605
+ /**
606
+ *
607
+ * @param {DashboardApiCreateDashboardRequest} requestParameters Request parameters.
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ * @memberof DashboardApi
611
+ */
612
+ public createDashboard(requestParameters: DashboardApiCreateDashboardRequest, options?: AxiosRequestConfig) {
613
+ return DashboardApiFp(this.configuration).createDashboard(requestParameters.createDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
614
+ }
615
+
616
+ /**
617
+ *
618
+ * @param {DashboardApiDeleteDashboardRequest} requestParameters Request parameters.
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ * @memberof DashboardApi
622
+ */
623
+ public deleteDashboard(requestParameters: DashboardApiDeleteDashboardRequest, options?: AxiosRequestConfig) {
624
+ return DashboardApiFp(this.configuration).deleteDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
625
+ }
626
+
627
+ /**
628
+ *
629
+ * @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ * @memberof DashboardApi
633
+ */
634
+ public getDashboard(requestParameters: DashboardApiGetDashboardRequest, options?: AxiosRequestConfig) {
635
+ return DashboardApiFp(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
636
+ }
637
+
638
+ /**
639
+ *
640
+ * @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ * @memberof DashboardApi
644
+ */
645
+ public listDashboards(requestParameters: DashboardApiListDashboardsRequest = {}, options?: AxiosRequestConfig) {
646
+ return DashboardApiFp(this.configuration).listDashboards(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 {DashboardApiUpdateDashboardRequest} requestParameters Request parameters.
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ * @memberof DashboardApi
655
+ */
656
+ public updateDashboard(requestParameters: DashboardApiUpdateDashboardRequest, options?: AxiosRequestConfig) {
657
+ return DashboardApiFp(this.configuration).updateDashboard(requestParameters.code, requestParameters.updateDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
658
+ }
659
+ }