@emilgroup/tenant-sdk-node 1.34.1-beta.32 → 1.34.1-beta.34

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 (111) hide show
  1. package/.openapi-generator/FILES +32 -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/user-group-api.ts +1090 -0
  7. package/api.ts +6 -0
  8. package/base.ts +1 -0
  9. package/dist/api/dashboard-api.d.ts +56 -0
  10. package/dist/api/dashboard-api.js +92 -0
  11. package/dist/api/report-schedule-api.d.ts +394 -0
  12. package/dist/api/report-schedule-api.js +646 -0
  13. package/dist/api/report-schedule-logs-api.d.ts +150 -0
  14. package/dist/api/report-schedule-logs-api.js +264 -0
  15. package/dist/api/user-group-api.d.ts +603 -0
  16. package/dist/api/user-group-api.js +940 -0
  17. package/dist/api.d.ts +3 -0
  18. package/dist/api.js +3 -0
  19. package/dist/base.d.ts +2 -1
  20. package/dist/base.js +1 -0
  21. package/dist/models/add-users-to-group-request-dto.d.ts +24 -0
  22. package/dist/models/add-users-to-group-request-dto.js +15 -0
  23. package/dist/models/add-users-to-group-response-class.d.ts +25 -0
  24. package/dist/models/add-users-to-group-response-class.js +15 -0
  25. package/dist/models/admin-initial-tenant-config-dto.d.ts +30 -0
  26. package/dist/models/admin-initial-tenant-config-dto.js +15 -0
  27. package/dist/models/create-admin-tenant-request-dto.d.ts +57 -0
  28. package/dist/models/create-admin-tenant-request-dto.js +15 -0
  29. package/dist/models/create-report-schedule-request-dto.d.ts +115 -0
  30. package/dist/models/create-report-schedule-request-dto.js +15 -0
  31. package/dist/models/create-report-schedule-response-class.d.ts +25 -0
  32. package/dist/models/create-report-schedule-response-class.js +15 -0
  33. package/dist/models/create-user-group-request-dto.d.ts +36 -0
  34. package/dist/models/create-user-group-request-dto.js +15 -0
  35. package/dist/models/create-user-group-response-class.d.ts +25 -0
  36. package/dist/models/create-user-group-response-class.js +15 -0
  37. package/dist/models/dashboard-metadata-class.d.ts +43 -0
  38. package/dist/models/dashboard-metadata-class.js +15 -0
  39. package/dist/models/get-dashboard-metadata-response-class.d.ts +25 -0
  40. package/dist/models/get-dashboard-metadata-response-class.js +15 -0
  41. package/dist/models/get-report-schedule-response-class.d.ts +25 -0
  42. package/dist/models/get-report-schedule-response-class.js +15 -0
  43. package/dist/models/get-user-group-response-class.d.ts +25 -0
  44. package/dist/models/get-user-group-response-class.js +15 -0
  45. package/dist/models/index.d.ts +29 -0
  46. package/dist/models/index.js +29 -0
  47. package/dist/models/list-report-schedule-logs-response-class.d.ts +43 -0
  48. package/dist/models/list-report-schedule-logs-response-class.js +15 -0
  49. package/dist/models/list-report-schedules-response-class.d.ts +43 -0
  50. package/dist/models/list-report-schedules-response-class.js +15 -0
  51. package/dist/models/list-user-group-members-response-class.d.ts +43 -0
  52. package/dist/models/list-user-group-members-response-class.js +15 -0
  53. package/dist/models/list-user-groups-response-class.d.ts +43 -0
  54. package/dist/models/list-user-groups-response-class.js +15 -0
  55. package/dist/models/quick-sight-analysis-parameter-class.d.ts +36 -0
  56. package/dist/models/quick-sight-analysis-parameter-class.js +15 -0
  57. package/dist/models/remove-users-from-group-request-dto.d.ts +24 -0
  58. package/dist/models/remove-users-from-group-request-dto.js +15 -0
  59. package/dist/models/report-schedule-class.d.ts +157 -0
  60. package/dist/models/report-schedule-class.js +15 -0
  61. package/dist/models/report-schedule-log-class.d.ts +133 -0
  62. package/dist/models/report-schedule-log-class.js +15 -0
  63. package/dist/models/report-schedule-parameter-class.d.ts +42 -0
  64. package/dist/models/report-schedule-parameter-class.js +15 -0
  65. package/dist/models/report-schedule-parameter-dto.d.ts +42 -0
  66. package/dist/models/report-schedule-parameter-dto.js +15 -0
  67. package/dist/models/report-schedule-parameter-value-class.d.ts +30 -0
  68. package/dist/models/report-schedule-parameter-value-class.js +15 -0
  69. package/dist/models/update-report-schedule-request-dto.d.ts +121 -0
  70. package/dist/models/update-report-schedule-request-dto.js +15 -0
  71. package/dist/models/update-report-schedule-response-class.d.ts +25 -0
  72. package/dist/models/update-report-schedule-response-class.js +15 -0
  73. package/dist/models/update-user-group-request-dto.d.ts +36 -0
  74. package/dist/models/update-user-group-request-dto.js +15 -0
  75. package/dist/models/update-user-group-response-class.d.ts +25 -0
  76. package/dist/models/update-user-group-response-class.js +15 -0
  77. package/dist/models/user-group-class.d.ts +72 -0
  78. package/dist/models/user-group-class.js +15 -0
  79. package/dist/models/user-group-member-class.d.ts +48 -0
  80. package/dist/models/user-group-member-class.js +15 -0
  81. package/models/add-users-to-group-request-dto.ts +30 -0
  82. package/models/add-users-to-group-response-class.ts +31 -0
  83. package/models/admin-initial-tenant-config-dto.ts +36 -0
  84. package/models/create-admin-tenant-request-dto.ts +63 -0
  85. package/models/create-report-schedule-request-dto.ts +121 -0
  86. package/models/create-report-schedule-response-class.ts +31 -0
  87. package/models/create-user-group-request-dto.ts +42 -0
  88. package/models/create-user-group-response-class.ts +31 -0
  89. package/models/dashboard-metadata-class.ts +49 -0
  90. package/models/get-dashboard-metadata-response-class.ts +31 -0
  91. package/models/get-report-schedule-response-class.ts +31 -0
  92. package/models/get-user-group-response-class.ts +31 -0
  93. package/models/index.ts +29 -0
  94. package/models/list-report-schedule-logs-response-class.ts +49 -0
  95. package/models/list-report-schedules-response-class.ts +49 -0
  96. package/models/list-user-group-members-response-class.ts +49 -0
  97. package/models/list-user-groups-response-class.ts +49 -0
  98. package/models/quick-sight-analysis-parameter-class.ts +42 -0
  99. package/models/remove-users-from-group-request-dto.ts +30 -0
  100. package/models/report-schedule-class.ts +163 -0
  101. package/models/report-schedule-log-class.ts +139 -0
  102. package/models/report-schedule-parameter-class.ts +48 -0
  103. package/models/report-schedule-parameter-dto.ts +48 -0
  104. package/models/report-schedule-parameter-value-class.ts +36 -0
  105. package/models/update-report-schedule-request-dto.ts +127 -0
  106. package/models/update-report-schedule-response-class.ts +31 -0
  107. package/models/update-user-group-request-dto.ts +42 -0
  108. package/models/update-user-group-response-class.ts +31 -0
  109. package/models/user-group-class.ts +78 -0
  110. package/models/user-group-member-class.ts +54 -0
  111. package/package.json +2 -2
@@ -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
+ }