@emilgroup/tenant-sdk-node 1.34.1-beta.48 → 1.34.1-beta.49

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 (65) hide show
  1. package/.openapi-generator/FILES +17 -0
  2. package/README.md +2 -2
  3. package/api/dashboard-api.ts +103 -0
  4. package/api/report-schedule-api.ts +697 -0
  5. package/api/report-schedule-logs-api.ts +250 -0
  6. package/api.ts +4 -0
  7. package/dist/api/dashboard-api.d.ts +56 -0
  8. package/dist/api/dashboard-api.js +92 -0
  9. package/dist/api/report-schedule-api.d.ts +394 -0
  10. package/dist/api/report-schedule-api.js +646 -0
  11. package/dist/api/report-schedule-logs-api.d.ts +150 -0
  12. package/dist/api/report-schedule-logs-api.js +264 -0
  13. package/dist/api.d.ts +2 -0
  14. package/dist/api.js +2 -0
  15. package/dist/models/create-report-schedule-request-dto.d.ts +115 -0
  16. package/dist/models/create-report-schedule-request-dto.js +15 -0
  17. package/dist/models/create-report-schedule-response-class.d.ts +25 -0
  18. package/dist/models/create-report-schedule-response-class.js +15 -0
  19. package/dist/models/dashboard-metadata-class.d.ts +43 -0
  20. package/dist/models/dashboard-metadata-class.js +15 -0
  21. package/dist/models/dbconfig-dto.d.ts +6 -0
  22. package/dist/models/get-dashboard-metadata-response-class.d.ts +25 -0
  23. package/dist/models/get-dashboard-metadata-response-class.js +15 -0
  24. package/dist/models/get-report-schedule-response-class.d.ts +25 -0
  25. package/dist/models/get-report-schedule-response-class.js +15 -0
  26. package/dist/models/index.d.ts +15 -0
  27. package/dist/models/index.js +15 -0
  28. package/dist/models/list-report-schedule-logs-response-class.d.ts +43 -0
  29. package/dist/models/list-report-schedule-logs-response-class.js +15 -0
  30. package/dist/models/list-report-schedules-response-class.d.ts +43 -0
  31. package/dist/models/list-report-schedules-response-class.js +15 -0
  32. package/dist/models/quick-sight-analysis-parameter-class.d.ts +36 -0
  33. package/dist/models/quick-sight-analysis-parameter-class.js +15 -0
  34. package/dist/models/report-schedule-class.d.ts +157 -0
  35. package/dist/models/report-schedule-class.js +15 -0
  36. package/dist/models/report-schedule-log-class.d.ts +133 -0
  37. package/dist/models/report-schedule-log-class.js +15 -0
  38. package/dist/models/report-schedule-parameter-class.d.ts +42 -0
  39. package/dist/models/report-schedule-parameter-class.js +15 -0
  40. package/dist/models/report-schedule-parameter-dto.d.ts +42 -0
  41. package/dist/models/report-schedule-parameter-dto.js +15 -0
  42. package/dist/models/report-schedule-parameter-value-class.d.ts +30 -0
  43. package/dist/models/report-schedule-parameter-value-class.js +15 -0
  44. package/dist/models/update-report-schedule-request-dto.d.ts +121 -0
  45. package/dist/models/update-report-schedule-request-dto.js +15 -0
  46. package/dist/models/update-report-schedule-response-class.d.ts +25 -0
  47. package/dist/models/update-report-schedule-response-class.js +15 -0
  48. package/models/create-report-schedule-request-dto.ts +121 -0
  49. package/models/create-report-schedule-response-class.ts +31 -0
  50. package/models/dashboard-metadata-class.ts +49 -0
  51. package/models/dbconfig-dto.ts +6 -0
  52. package/models/get-dashboard-metadata-response-class.ts +31 -0
  53. package/models/get-report-schedule-response-class.ts +31 -0
  54. package/models/index.ts +15 -0
  55. package/models/list-report-schedule-logs-response-class.ts +49 -0
  56. package/models/list-report-schedules-response-class.ts +49 -0
  57. package/models/quick-sight-analysis-parameter-class.ts +42 -0
  58. package/models/report-schedule-class.ts +163 -0
  59. package/models/report-schedule-log-class.ts +139 -0
  60. package/models/report-schedule-parameter-class.ts +48 -0
  61. package/models/report-schedule-parameter-dto.ts +48 -0
  62. package/models/report-schedule-parameter-value-class.ts +36 -0
  63. package/models/update-report-schedule-request-dto.ts +127 -0
  64. package/models/update-report-schedule-response-class.ts +31 -0
  65. package/package.json +1 -1
@@ -0,0 +1,250 @@
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 { ListReportScheduleLogsResponseClass } from '../models';
25
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * ReportScheduleLogsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const ReportScheduleLogsApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * Lists execution logs for scheduled reports **Required Permissions** \"reporting.dashboards.view\"
37
+ * @summary List report-schedule-logs
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
40
+ * @param {string} [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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
41
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
42
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
43
+ * @param {string} [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.
44
+ * @param {string} [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.
45
+ * @param {string} [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.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ listReportScheduleLogs: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ const localVarPath = `/tenantservice/v1/report-schedule-logs`;
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ let baseAccessToken;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ baseAccessToken = configuration.accessToken;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication bearer required
65
+ // http bearer authentication required
66
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
+
68
+ if (pageSize !== undefined) {
69
+ localVarQueryParameter['pageSize'] = pageSize;
70
+ }
71
+
72
+ if (pageToken !== undefined) {
73
+ localVarQueryParameter['pageToken'] = pageToken;
74
+ }
75
+
76
+ if (filter !== undefined) {
77
+ localVarQueryParameter['filter'] = filter;
78
+ }
79
+
80
+ if (search !== undefined) {
81
+ localVarQueryParameter['search'] = search;
82
+ }
83
+
84
+ if (order !== undefined) {
85
+ localVarQueryParameter['order'] = order;
86
+ }
87
+
88
+ if (expand !== undefined) {
89
+ localVarQueryParameter['expand'] = expand;
90
+ }
91
+
92
+ if (filters !== undefined) {
93
+ localVarQueryParameter['filters'] = filters;
94
+ }
95
+
96
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
97
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
98
+ }
99
+
100
+
101
+
102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
105
+
106
+ return {
107
+ url: toPathString(localVarUrlObj),
108
+ options: localVarRequestOptions,
109
+ };
110
+ },
111
+ }
112
+ };
113
+
114
+ /**
115
+ * ReportScheduleLogsApi - functional programming interface
116
+ * @export
117
+ */
118
+ export const ReportScheduleLogsApiFp = function(configuration?: Configuration) {
119
+ const localVarAxiosParamCreator = ReportScheduleLogsApiAxiosParamCreator(configuration)
120
+ return {
121
+ /**
122
+ * Lists execution logs for scheduled reports **Required Permissions** \"reporting.dashboards.view\"
123
+ * @summary List report-schedule-logs
124
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
125
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
126
+ * @param {string} [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.
127
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
128
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
129
+ * @param {string} [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.
130
+ * @param {string} [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.
131
+ * @param {string} [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.
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ async listReportScheduleLogs(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListReportScheduleLogsResponseClass>> {
136
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReportScheduleLogs(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
137
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
138
+ },
139
+ }
140
+ };
141
+
142
+ /**
143
+ * ReportScheduleLogsApi - factory interface
144
+ * @export
145
+ */
146
+ export const ReportScheduleLogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
147
+ const localVarFp = ReportScheduleLogsApiFp(configuration)
148
+ return {
149
+ /**
150
+ * Lists execution logs for scheduled reports **Required Permissions** \"reporting.dashboards.view\"
151
+ * @summary List report-schedule-logs
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
154
+ * @param {string} [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.
155
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
156
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
157
+ * @param {string} [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.
158
+ * @param {string} [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.
159
+ * @param {string} [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.
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ listReportScheduleLogs(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListReportScheduleLogsResponseClass> {
164
+ return localVarFp.listReportScheduleLogs(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
165
+ },
166
+ };
167
+ };
168
+
169
+ /**
170
+ * Request parameters for listReportScheduleLogs operation in ReportScheduleLogsApi.
171
+ * @export
172
+ * @interface ReportScheduleLogsApiListReportScheduleLogsRequest
173
+ */
174
+ export interface ReportScheduleLogsApiListReportScheduleLogsRequest {
175
+ /**
176
+ * Bearer Token: provided by the login endpoint under the name accessToken.
177
+ * @type {string}
178
+ * @memberof ReportScheduleLogsApiListReportScheduleLogs
179
+ */
180
+ readonly authorization?: string
181
+
182
+ /**
183
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
184
+ * @type {number}
185
+ * @memberof ReportScheduleLogsApiListReportScheduleLogs
186
+ */
187
+ readonly pageSize?: number
188
+
189
+ /**
190
+ * 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.
191
+ * @type {string}
192
+ * @memberof ReportScheduleLogsApiListReportScheduleLogs
193
+ */
194
+ readonly pageToken?: string
195
+
196
+ /**
197
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
198
+ * @type {string}
199
+ * @memberof ReportScheduleLogsApiListReportScheduleLogs
200
+ */
201
+ readonly filter?: string
202
+
203
+ /**
204
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
205
+ * @type {string}
206
+ * @memberof ReportScheduleLogsApiListReportScheduleLogs
207
+ */
208
+ readonly search?: string
209
+
210
+ /**
211
+ * 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.
212
+ * @type {string}
213
+ * @memberof ReportScheduleLogsApiListReportScheduleLogs
214
+ */
215
+ readonly order?: string
216
+
217
+ /**
218
+ * 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.
219
+ * @type {string}
220
+ * @memberof ReportScheduleLogsApiListReportScheduleLogs
221
+ */
222
+ readonly expand?: string
223
+
224
+ /**
225
+ * 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.
226
+ * @type {string}
227
+ * @memberof ReportScheduleLogsApiListReportScheduleLogs
228
+ */
229
+ readonly filters?: string
230
+ }
231
+
232
+ /**
233
+ * ReportScheduleLogsApi - object-oriented interface
234
+ * @export
235
+ * @class ReportScheduleLogsApi
236
+ * @extends {BaseAPI}
237
+ */
238
+ export class ReportScheduleLogsApi extends BaseAPI {
239
+ /**
240
+ * Lists execution logs for scheduled reports **Required Permissions** \"reporting.dashboards.view\"
241
+ * @summary List report-schedule-logs
242
+ * @param {ReportScheduleLogsApiListReportScheduleLogsRequest} requestParameters Request parameters.
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ * @memberof ReportScheduleLogsApi
246
+ */
247
+ public listReportScheduleLogs(requestParameters: ReportScheduleLogsApiListReportScheduleLogsRequest = {}, options?: AxiosRequestConfig) {
248
+ return ReportScheduleLogsApiFp(this.configuration).listReportScheduleLogs(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
249
+ }
250
+ }
package/api.ts CHANGED
@@ -38,6 +38,8 @@ import { ListOrganizationInvitationsApi } from './api';
38
38
  import { OrganizationMigrationApi } from './api';
39
39
  import { OrganizationsApi } from './api';
40
40
  import { ReInviteAnOrganizationApi } from './api';
41
+ import { ReportScheduleApi } from './api';
42
+ import { ReportScheduleLogsApi } from './api';
41
43
  import { RolesApi } from './api';
42
44
  import { SettingsApi } from './api';
43
45
  import { UserControllerRestApi } from './api';
@@ -59,6 +61,8 @@ export * from './api/list-organization-invitations-api';
59
61
  export * from './api/organization-migration-api';
60
62
  export * from './api/organizations-api';
61
63
  export * from './api/re-invite-an-organization-api';
64
+ export * from './api/report-schedule-api';
65
+ export * from './api/report-schedule-logs-api';
62
66
  export * from './api/roles-api';
63
67
  export * from './api/settings-api';
64
68
  export * from './api/user-controller-rest-api';
@@ -19,6 +19,7 @@ import { CreateDashboardV2ResponseClass } from '../models';
19
19
  import { DeleteResponseClass } from '../models';
20
20
  import { DuplicateDashboardRequestDto } from '../models';
21
21
  import { DuplicateDashboardResponseClass } from '../models';
22
+ import { GetDashboardMetadataResponseClass } from '../models';
22
23
  import { GetDashboardResponseClass } from '../models';
23
24
  import { GetEmbeddedUrlResponseClass } from '../models';
24
25
  import { ListDashboardsResponseClass } from '../models';
@@ -96,6 +97,15 @@ export declare const DashboardApiAxiosParamCreator: (configuration?: Configurati
96
97
  * @throws {RequiredError}
97
98
  */
98
99
  getDashboardEmbeddedUrl: (providerDashboardId: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
100
+ /**
101
+ * Returns sheet names and parameter definitions for the dashboard analysis backing this record. **Required Permissions** \"reporting.dashboards.view\"
102
+ * @summary Retrieves QuickSight analysis metadata for a dashboard
103
+ * @param {string} code
104
+ * @param {string} [authorization] Bearer Token
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getDashboardMetadata: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
99
109
  /**
100
110
  * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
101
111
  * @summary Retrieves a list of dashboards
@@ -210,6 +220,15 @@ export declare const DashboardApiFp: (configuration?: Configuration) => {
210
220
  * @throws {RequiredError}
211
221
  */
212
222
  getDashboardEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmbeddedUrlResponseClass>>;
223
+ /**
224
+ * Returns sheet names and parameter definitions for the dashboard analysis backing this record. **Required Permissions** \"reporting.dashboards.view\"
225
+ * @summary Retrieves QuickSight analysis metadata for a dashboard
226
+ * @param {string} code
227
+ * @param {string} [authorization] Bearer Token
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ getDashboardMetadata(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDashboardMetadataResponseClass>>;
213
232
  /**
214
233
  * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
215
234
  * @summary Retrieves a list of dashboards
@@ -324,6 +343,15 @@ export declare const DashboardApiFactory: (configuration?: Configuration, basePa
324
343
  * @throws {RequiredError}
325
344
  */
326
345
  getDashboardEmbeddedUrl(providerDashboardId: string, authorization?: string, options?: any): AxiosPromise<GetEmbeddedUrlResponseClass>;
346
+ /**
347
+ * Returns sheet names and parameter definitions for the dashboard analysis backing this record. **Required Permissions** \"reporting.dashboards.view\"
348
+ * @summary Retrieves QuickSight analysis metadata for a dashboard
349
+ * @param {string} code
350
+ * @param {string} [authorization] Bearer Token
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ getDashboardMetadata(code: string, authorization?: string, options?: any): AxiosPromise<GetDashboardMetadataResponseClass>;
327
355
  /**
328
356
  * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
329
357
  * @summary Retrieves a list of dashboards
@@ -507,6 +535,25 @@ export interface DashboardApiGetDashboardEmbeddedUrlRequest {
507
535
  */
508
536
  readonly authorization?: string;
509
537
  }
538
+ /**
539
+ * Request parameters for getDashboardMetadata operation in DashboardApi.
540
+ * @export
541
+ * @interface DashboardApiGetDashboardMetadataRequest
542
+ */
543
+ export interface DashboardApiGetDashboardMetadataRequest {
544
+ /**
545
+ *
546
+ * @type {string}
547
+ * @memberof DashboardApiGetDashboardMetadata
548
+ */
549
+ readonly code: string;
550
+ /**
551
+ * Bearer Token
552
+ * @type {string}
553
+ * @memberof DashboardApiGetDashboardMetadata
554
+ */
555
+ readonly authorization?: string;
556
+ }
510
557
  /**
511
558
  * Request parameters for listDashboards operation in DashboardApi.
512
559
  * @export
@@ -696,6 +743,15 @@ export declare class DashboardApi extends BaseAPI {
696
743
  * @memberof DashboardApi
697
744
  */
698
745
  getDashboardEmbeddedUrl(requestParameters: DashboardApiGetDashboardEmbeddedUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmbeddedUrlResponseClass, any, {}>>;
746
+ /**
747
+ * Returns sheet names and parameter definitions for the dashboard analysis backing this record. **Required Permissions** \"reporting.dashboards.view\"
748
+ * @summary Retrieves QuickSight analysis metadata for a dashboard
749
+ * @param {DashboardApiGetDashboardMetadataRequest} requestParameters Request parameters.
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ * @memberof DashboardApi
753
+ */
754
+ getDashboardMetadata(requestParameters: DashboardApiGetDashboardMetadataRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDashboardMetadataResponseClass, any, {}>>;
699
755
  /**
700
756
  * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
701
757
  * @summary Retrieves a list of dashboards
@@ -440,6 +440,54 @@ var DashboardApiAxiosParamCreator = function (configuration) {
440
440
  });
441
441
  });
442
442
  },
443
+ /**
444
+ * Returns sheet names and parameter definitions for the dashboard analysis backing this record. **Required Permissions** \"reporting.dashboards.view\"
445
+ * @summary Retrieves QuickSight analysis metadata for a dashboard
446
+ * @param {string} code
447
+ * @param {string} [authorization] Bearer Token
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ getDashboardMetadata: function (code, authorization, options) {
452
+ if (options === void 0) { options = {}; }
453
+ return __awaiter(_this, void 0, void 0, function () {
454
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
455
+ return __generator(this, function (_a) {
456
+ switch (_a.label) {
457
+ case 0:
458
+ // verify required parameter 'code' is not null or undefined
459
+ (0, common_1.assertParamExists)('getDashboardMetadata', 'code', code);
460
+ localVarPath = "/tenantservice/v1/dashboards/{code}/metadata"
461
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
462
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
463
+ if (configuration) {
464
+ baseOptions = configuration.baseOptions;
465
+ baseAccessToken = configuration.accessToken;
466
+ }
467
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
468
+ localVarHeaderParameter = {};
469
+ localVarQueryParameter = {};
470
+ // authentication bearer required
471
+ // http bearer authentication required
472
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
473
+ case 1:
474
+ // authentication bearer required
475
+ // http bearer authentication required
476
+ _a.sent();
477
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
478
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
479
+ }
480
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
481
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
482
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
483
+ return [2 /*return*/, {
484
+ url: (0, common_1.toPathString)(localVarUrlObj),
485
+ options: localVarRequestOptions,
486
+ }];
487
+ }
488
+ });
489
+ });
490
+ },
443
491
  /**
444
492
  * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
445
493
  * @summary Retrieves a list of dashboards
@@ -822,6 +870,27 @@ var DashboardApiFp = function (configuration) {
822
870
  });
823
871
  });
824
872
  },
873
+ /**
874
+ * Returns sheet names and parameter definitions for the dashboard analysis backing this record. **Required Permissions** \"reporting.dashboards.view\"
875
+ * @summary Retrieves QuickSight analysis metadata for a dashboard
876
+ * @param {string} code
877
+ * @param {string} [authorization] Bearer Token
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ */
881
+ getDashboardMetadata: function (code, authorization, options) {
882
+ return __awaiter(this, void 0, void 0, function () {
883
+ var localVarAxiosArgs;
884
+ return __generator(this, function (_a) {
885
+ switch (_a.label) {
886
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDashboardMetadata(code, authorization, options)];
887
+ case 1:
888
+ localVarAxiosArgs = _a.sent();
889
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
890
+ }
891
+ });
892
+ });
893
+ },
825
894
  /**
826
895
  * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
827
896
  * @summary Retrieves a list of dashboards
@@ -1002,6 +1071,17 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
1002
1071
  getDashboardEmbeddedUrl: function (providerDashboardId, authorization, options) {
1003
1072
  return localVarFp.getDashboardEmbeddedUrl(providerDashboardId, authorization, options).then(function (request) { return request(axios, basePath); });
1004
1073
  },
1074
+ /**
1075
+ * Returns sheet names and parameter definitions for the dashboard analysis backing this record. **Required Permissions** \"reporting.dashboards.view\"
1076
+ * @summary Retrieves QuickSight analysis metadata for a dashboard
1077
+ * @param {string} code
1078
+ * @param {string} [authorization] Bearer Token
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ getDashboardMetadata: function (code, authorization, options) {
1083
+ return localVarFp.getDashboardMetadata(code, authorization, options).then(function (request) { return request(axios, basePath); });
1084
+ },
1005
1085
  /**
1006
1086
  * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
1007
1087
  * @summary Retrieves a list of dashboards
@@ -1152,6 +1232,18 @@ var DashboardApi = /** @class */ (function (_super) {
1152
1232
  var _this = this;
1153
1233
  return (0, exports.DashboardApiFp)(this.configuration).getDashboardEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1154
1234
  };
1235
+ /**
1236
+ * Returns sheet names and parameter definitions for the dashboard analysis backing this record. **Required Permissions** \"reporting.dashboards.view\"
1237
+ * @summary Retrieves QuickSight analysis metadata for a dashboard
1238
+ * @param {DashboardApiGetDashboardMetadataRequest} requestParameters Request parameters.
1239
+ * @param {*} [options] Override http request option.
1240
+ * @throws {RequiredError}
1241
+ * @memberof DashboardApi
1242
+ */
1243
+ DashboardApi.prototype.getDashboardMetadata = function (requestParameters, options) {
1244
+ var _this = this;
1245
+ return (0, exports.DashboardApiFp)(this.configuration).getDashboardMetadata(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1246
+ };
1155
1247
  /**
1156
1248
  * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
1157
1249
  * @summary Retrieves a list of dashboards