@emilgroup/tenant-sdk 1.0.1 → 1.2.1

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 (264) hide show
  1. package/.openapi-generator/FILES +16 -72
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +52 -60
  4. package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
  5. package/api/invite-users-api.ts +75 -79
  6. package/api/organizations-api.ts +459 -0
  7. package/api/users-api.ts +138 -148
  8. package/api.ts +4 -18
  9. package/dist/api/custom-schema-api.d.ts +42 -42
  10. package/dist/api/custom-schema-api.js +31 -38
  11. package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
  12. package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
  13. package/dist/api/invite-users-api.d.ts +63 -60
  14. package/dist/api/invite-users-api.js +40 -49
  15. package/dist/api/organizations-api.d.ts +263 -0
  16. package/dist/api/{settings-api.js → organizations-api.js} +135 -195
  17. package/dist/api/users-api.d.ts +113 -109
  18. package/dist/api/users-api.js +76 -93
  19. package/dist/api.d.ts +2 -9
  20. package/dist/api.js +2 -9
  21. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  22. package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
  23. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  24. package/dist/models/create-custom-schema-request-dto.js +2 -1
  25. package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
  26. package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
  27. package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
  28. package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
  29. package/dist/models/index.d.ts +14 -63
  30. package/dist/models/index.js +14 -63
  31. package/dist/models/invite-org-request-dto.d.ts +78 -0
  32. package/dist/models/invite-user-request-dto.d.ts +8 -2
  33. package/dist/models/invite-users-request-dto.d.ts +2 -2
  34. package/dist/models/invite-users-response-class.d.ts +24 -0
  35. package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
  36. package/dist/models/{list-data-reports-response-class.d.ts → list-organizations-response-class.d.ts} +8 -8
  37. package/dist/models/org-invitation-class.d.ts +103 -0
  38. package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
  39. package/dist/models/organization-class.d.ts +96 -0
  40. package/dist/models/set-setting-request-dto.d.ts +10 -4
  41. package/dist/models/subscription-class.d.ts +9 -2
  42. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  43. package/dist/models/update-custom-schema-request-dto.js +2 -1
  44. package/dist/models/update-organization-request-dto-rest.d.ts +60 -0
  45. package/dist/models/{channel-response-class.d.ts → update-organization-response-class.d.ts} +7 -12
  46. package/dist/models/user-class.d.ts +13 -5
  47. package/models/assign-user-roles-request-dto.ts +2 -2
  48. package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
  49. package/models/create-custom-schema-request-dto.ts +2 -1
  50. package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
  51. package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
  52. package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
  53. package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
  54. package/models/index.ts +14 -63
  55. package/models/invite-org-request-dto.ts +84 -0
  56. package/models/invite-user-request-dto.ts +8 -2
  57. package/models/invite-users-request-dto.ts +2 -2
  58. package/models/invite-users-response-class.ts +30 -0
  59. package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
  60. package/models/{list-data-reports-response-class.ts → list-organizations-response-class.ts} +8 -8
  61. package/models/org-invitation-class.ts +109 -0
  62. package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
  63. package/models/organization-class.ts +102 -0
  64. package/models/set-setting-request-dto.ts +10 -4
  65. package/models/subscription-class.ts +9 -2
  66. package/models/update-custom-schema-request-dto.ts +2 -1
  67. package/models/update-organization-request-dto-rest.ts +66 -0
  68. package/models/{create-dashboard-response-class.ts → update-organization-response-class.ts} +7 -7
  69. package/models/user-class.ts +13 -5
  70. package/package.json +2 -2
  71. package/api/alerts-api.ts +0 -860
  72. package/api/dashboard-api.ts +0 -792
  73. package/api/data-report-api.ts +0 -687
  74. package/api/data-report-executor-api.ts +0 -181
  75. package/api/reports-api.ts +0 -860
  76. package/api/scenario-analysis-api.ts +0 -977
  77. package/api/settings-api.ts +0 -484
  78. package/api/tariff-comparisons-api.ts +0 -381
  79. package/dist/api/alerts-api.d.ts +0 -479
  80. package/dist/api/alerts-api.js +0 -752
  81. package/dist/api/dashboard-api.d.ts +0 -434
  82. package/dist/api/dashboard-api.js +0 -724
  83. package/dist/api/data-report-api.d.ts +0 -380
  84. package/dist/api/data-report-api.js +0 -645
  85. package/dist/api/data-report-executor-api.d.ts +0 -102
  86. package/dist/api/data-report-executor-api.js +0 -232
  87. package/dist/api/reports-api.d.ts +0 -479
  88. package/dist/api/reports-api.js +0 -752
  89. package/dist/api/scenario-analysis-api.d.ts +0 -529
  90. package/dist/api/scenario-analysis-api.js +0 -895
  91. package/dist/api/settings-api.d.ts +0 -264
  92. package/dist/api/tariff-comparisons-api.d.ts +0 -206
  93. package/dist/api/tariff-comparisons-api.js +0 -409
  94. package/dist/models/alert-class.d.ts +0 -90
  95. package/dist/models/alert-history-class.d.ts +0 -108
  96. package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
  97. package/dist/models/compare-tariffs-request-dto.js +0 -22
  98. package/dist/models/compare-tariffs-response-class.d.ts +0 -31
  99. package/dist/models/condition-dto.d.ts +0 -43
  100. package/dist/models/condition-dto.js +0 -22
  101. package/dist/models/create-alert-request-dto.d.ts +0 -79
  102. package/dist/models/create-alert-request-dto.js +0 -27
  103. package/dist/models/create-dashboard-request-dto.d.ts +0 -70
  104. package/dist/models/create-dashboard-request-dto.js +0 -29
  105. package/dist/models/create-data-report-request-dto.d.ts +0 -61
  106. package/dist/models/create-data-report-response-class.d.ts +0 -25
  107. package/dist/models/create-report-request-dto.d.ts +0 -49
  108. package/dist/models/create-report-request-dto.js +0 -22
  109. package/dist/models/create-report-response-class.d.ts +0 -25
  110. package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
  111. package/dist/models/create-scenario-analysis-request-dto.js +0 -22
  112. package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
  113. package/dist/models/dashboard-class.d.ts +0 -78
  114. package/dist/models/data-report-class.d.ts +0 -79
  115. package/dist/models/data-report-filter-class.d.ts +0 -72
  116. package/dist/models/data-report-filter-dto.d.ts +0 -48
  117. package/dist/models/data-report-filter-single-value-dto.d.ts +0 -42
  118. package/dist/models/data-report-filter-single-value-dto.js +0 -15
  119. package/dist/models/data-report-filter-value-dto.d.ts +0 -31
  120. package/dist/models/data-report-filter-value-dto.js +0 -15
  121. package/dist/models/get-alert-response-class.d.ts +0 -25
  122. package/dist/models/get-alert-response-class.js +0 -15
  123. package/dist/models/get-dashboard-response-class.d.ts +0 -25
  124. package/dist/models/get-dashboard-response-class.js +0 -15
  125. package/dist/models/get-data-report-response-class.d.ts +0 -25
  126. package/dist/models/get-data-report-response-class.js +0 -15
  127. package/dist/models/get-embedded-url-response-class.js +0 -15
  128. package/dist/models/get-report-response-class.d.ts +0 -25
  129. package/dist/models/get-report-response-class.js +0 -15
  130. package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
  131. package/dist/models/get-scenario-analysis-response-class.js +0 -15
  132. package/dist/models/grouped-tariff-class.d.ts +0 -30
  133. package/dist/models/grouped-tariff-class.js +0 -15
  134. package/dist/models/insurance-company-response-class.js +0 -15
  135. package/dist/models/insurance-response-class.js +0 -15
  136. package/dist/models/list-alert-history-response-class.d.ts +0 -31
  137. package/dist/models/list-alert-history-response-class.js +0 -15
  138. package/dist/models/list-alerts-response-class.d.ts +0 -31
  139. package/dist/models/list-alerts-response-class.js +0 -15
  140. package/dist/models/list-channels-response-class.d.ts +0 -25
  141. package/dist/models/list-channels-response-class.js +0 -15
  142. package/dist/models/list-dashboards-response-class.d.ts +0 -31
  143. package/dist/models/list-dashboards-response-class.js +0 -15
  144. package/dist/models/list-data-reports-response-class.js +0 -15
  145. package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
  146. package/dist/models/list-insurance-companies-response-class.js +0 -15
  147. package/dist/models/list-report-history-response-class.d.ts +0 -31
  148. package/dist/models/list-report-history-response-class.js +0 -15
  149. package/dist/models/list-reports-response-class.d.ts +0 -31
  150. package/dist/models/list-reports-response-class.js +0 -15
  151. package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
  152. package/dist/models/list-scenario-analyses-response-class.js +0 -15
  153. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
  154. package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
  155. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
  156. package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
  157. package/dist/models/list-tariffs-response-class.d.ts +0 -25
  158. package/dist/models/list-tariffs-response-class.js +0 -15
  159. package/dist/models/list-user-subscriptions-response-class.js +0 -15
  160. package/dist/models/manage-subscription-request-dto.js +0 -15
  161. package/dist/models/manage-subscription-response-class.d.ts +0 -25
  162. package/dist/models/manage-subscription-response-class.js +0 -15
  163. package/dist/models/report-class.d.ts +0 -66
  164. package/dist/models/report-class.js +0 -15
  165. package/dist/models/report-history-class.d.ts +0 -48
  166. package/dist/models/report-history-class.js +0 -15
  167. package/dist/models/run-data-report-request-dto.d.ts +0 -31
  168. package/dist/models/run-data-report-request-dto.js +0 -15
  169. package/dist/models/run-data-report-response-class.d.ts +0 -24
  170. package/dist/models/run-data-report-response-class.js +0 -15
  171. package/dist/models/scenario-analysis-class.d.ts +0 -108
  172. package/dist/models/scenario-analysis-class.js +0 -15
  173. package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
  174. package/dist/models/scenario-analysis-date-response-class.js +0 -15
  175. package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
  176. package/dist/models/set-tenant-setting-response-class.js +0 -15
  177. package/dist/models/update-alert-request-dto.d.ts +0 -72
  178. package/dist/models/update-alert-request-dto.js +0 -21
  179. package/dist/models/update-alert-response-class.d.ts +0 -25
  180. package/dist/models/update-alert-response-class.js +0 -15
  181. package/dist/models/update-dashboard-request-dto.d.ts +0 -76
  182. package/dist/models/update-dashboard-request-dto.js +0 -29
  183. package/dist/models/update-dashboard-response-class.d.ts +0 -25
  184. package/dist/models/update-dashboard-response-class.js +0 -15
  185. package/dist/models/update-data-report-request-dto.d.ts +0 -61
  186. package/dist/models/update-data-report-request-dto.js +0 -15
  187. package/dist/models/update-data-report-response-class.d.ts +0 -25
  188. package/dist/models/update-data-report-response-class.js +0 -15
  189. package/dist/models/update-report-request-dto.d.ts +0 -55
  190. package/dist/models/update-report-request-dto.js +0 -22
  191. package/dist/models/update-report-response-class.d.ts +0 -25
  192. package/dist/models/update-report-response-class.js +0 -15
  193. package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
  194. package/dist/models/update-scenario-analysis-request-dto.js +0 -22
  195. package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
  196. package/dist/models/update-scenario-analysis-response-class.js +0 -15
  197. package/models/alert-class.ts +0 -96
  198. package/models/alert-history-class.ts +0 -114
  199. package/models/compare-tariffs-request-dto.ts +0 -46
  200. package/models/compare-tariffs-response-class.ts +0 -37
  201. package/models/condition-dto.ts +0 -52
  202. package/models/create-alert-request-dto.ts +0 -89
  203. package/models/create-dashboard-request-dto.ts +0 -81
  204. package/models/create-data-report-request-dto.ts +0 -67
  205. package/models/create-data-report-response-class.ts +0 -31
  206. package/models/create-report-request-dto.ts +0 -58
  207. package/models/create-report-response-class.ts +0 -31
  208. package/models/create-scenario-analysis-request-dto.ts +0 -83
  209. package/models/create-scenario-analysis-response-class.ts +0 -31
  210. package/models/dashboard-class.ts +0 -84
  211. package/models/data-report-class.ts +0 -85
  212. package/models/data-report-filter-class.ts +0 -78
  213. package/models/data-report-filter-dto.ts +0 -54
  214. package/models/data-report-filter-single-value-dto.ts +0 -48
  215. package/models/data-report-filter-value-dto.ts +0 -37
  216. package/models/get-alert-response-class.ts +0 -31
  217. package/models/get-dashboard-response-class.ts +0 -31
  218. package/models/get-data-report-response-class.ts +0 -31
  219. package/models/get-report-response-class.ts +0 -31
  220. package/models/get-scenario-analysis-response-class.ts +0 -31
  221. package/models/grouped-tariff-class.ts +0 -36
  222. package/models/list-alert-history-response-class.ts +0 -37
  223. package/models/list-alerts-response-class.ts +0 -37
  224. package/models/list-channels-response-class.ts +0 -31
  225. package/models/list-dashboards-response-class.ts +0 -37
  226. package/models/list-insurance-companies-response-class.ts +0 -31
  227. package/models/list-report-history-response-class.ts +0 -37
  228. package/models/list-reports-response-class.ts +0 -37
  229. package/models/list-scenario-analyses-response-class.ts +0 -37
  230. package/models/list-scenario-analysis-dates-response-class.ts +0 -31
  231. package/models/list-tariff-insurance-companies-response-class.ts +0 -31
  232. package/models/list-tariffs-response-class.ts +0 -31
  233. package/models/manage-subscription-response-class.ts +0 -31
  234. package/models/report-class.ts +0 -72
  235. package/models/report-history-class.ts +0 -54
  236. package/models/run-data-report-request-dto.ts +0 -37
  237. package/models/run-data-report-response-class.ts +0 -30
  238. package/models/scenario-analysis-class.ts +0 -114
  239. package/models/scenario-analysis-date-response-class.ts +0 -42
  240. package/models/set-tenant-setting-response-class.ts +0 -42
  241. package/models/update-alert-request-dto.ts +0 -81
  242. package/models/update-alert-response-class.ts +0 -31
  243. package/models/update-dashboard-request-dto.ts +0 -87
  244. package/models/update-dashboard-response-class.ts +0 -31
  245. package/models/update-data-report-request-dto.ts +0 -67
  246. package/models/update-data-report-response-class.ts +0 -31
  247. package/models/update-report-request-dto.ts +0 -64
  248. package/models/update-report-response-class.ts +0 -31
  249. package/models/update-scenario-analysis-request-dto.ts +0 -83
  250. package/models/update-scenario-analysis-response-class.ts +0 -31
  251. /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
  252. /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
  253. /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
  254. /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
  255. /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
  256. /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
  257. /package/dist/models/{create-data-report-request-dto.js → invite-users-response-class.js} +0 -0
  258. /package/dist/models/{create-data-report-response-class.js → list-org-invitations-response-class.js} +0 -0
  259. /package/dist/models/{create-report-response-class.js → list-organizations-response-class.js} +0 -0
  260. /package/dist/models/{create-scenario-analysis-response-class.js → org-invitation-class.js} +0 -0
  261. /package/dist/models/{dashboard-class.js → org-invitation-response-class.js} +0 -0
  262. /package/dist/models/{data-report-class.js → organization-class.js} +0 -0
  263. /package/dist/models/{data-report-filter-class.js → update-organization-request-dto-rest.js} +0 -0
  264. /package/dist/models/{data-report-filter-dto.js → update-organization-response-class.js} +0 -0
@@ -1,687 +0,0 @@
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 { CreateDataReportRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateDataReportResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetDataReportResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListDataReportsResponseClass } from '../models';
31
- // @ts-ignore
32
- import { UpdateDataReportRequestDto } from '../models';
33
- // @ts-ignore
34
- import { UpdateDataReportResponseClass } from '../models';
35
- // URLSearchParams not necessarily used
36
- // @ts-ignore
37
- import { URL, URLSearchParams } from 'url';
38
- const FormData = require('form-data');
39
- /**
40
- * DataReportApi - axios parameter creator
41
- * @export
42
- */
43
- export const DataReportApiAxiosParamCreator = function (configuration?: Configuration) {
44
- return {
45
- /**
46
- * This will create a data report for tenant in the database
47
- * @summary Create the data-report
48
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
49
- * @param {CreateDataReportRequestDto} createDataReportRequestDto
50
- * @param {*} [options] Override http request option.
51
- * @throws {RequiredError}
52
- */
53
- createCustomSchema: async (authorization: string, createDataReportRequestDto: CreateDataReportRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
- // verify required parameter 'authorization' is not null or undefined
55
- assertParamExists('createCustomSchema', 'authorization', authorization)
56
- // verify required parameter 'createDataReportRequestDto' is not null or undefined
57
- assertParamExists('createCustomSchema', 'createDataReportRequestDto', createDataReportRequestDto)
58
- const localVarPath = `/tenantservice/v1/data-reports`;
59
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
60
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61
- let baseOptions;
62
- let baseAccessToken;
63
- if (configuration) {
64
- baseOptions = configuration.baseOptions;
65
- baseAccessToken = configuration.accessToken;
66
- }
67
-
68
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
69
- const localVarHeaderParameter = {} as any;
70
- const localVarQueryParameter = {} as any;
71
-
72
- // authentication bearer required
73
- // http bearer authentication required
74
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
-
76
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
- }
79
-
80
-
81
-
82
- localVarHeaderParameter['Content-Type'] = 'application/json';
83
-
84
- setSearchParams(localVarUrlObj, localVarQueryParameter);
85
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
86
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
87
- localVarRequestOptions.data = serializeDataIfNeeded(createDataReportRequestDto, localVarRequestOptions, configuration)
88
-
89
- return {
90
- url: toPathString(localVarUrlObj),
91
- options: localVarRequestOptions,
92
- };
93
- },
94
- /**
95
- *
96
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
97
- * @param {string} id
98
- * @param {*} [options] Override http request option.
99
- * @throws {RequiredError}
100
- */
101
- deleteAlert: async (authorization: string, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
102
- // verify required parameter 'authorization' is not null or undefined
103
- assertParamExists('deleteAlert', 'authorization', authorization)
104
- // verify required parameter 'id' is not null or undefined
105
- assertParamExists('deleteAlert', 'id', id)
106
- const localVarPath = `/tenantservice/v1/data-reports/{id}`
107
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
108
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
109
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
110
- let baseOptions;
111
- let baseAccessToken;
112
- if (configuration) {
113
- baseOptions = configuration.baseOptions;
114
- baseAccessToken = configuration.accessToken;
115
- }
116
-
117
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
118
- const localVarHeaderParameter = {} as any;
119
- const localVarQueryParameter = {} as any;
120
-
121
- // authentication bearer required
122
- // http bearer authentication required
123
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
124
-
125
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
127
- }
128
-
129
-
130
-
131
- setSearchParams(localVarUrlObj, localVarQueryParameter);
132
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
134
-
135
- return {
136
- url: toPathString(localVarUrlObj),
137
- options: localVarRequestOptions,
138
- };
139
- },
140
- /**
141
- * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
142
- * @summary Retrieve the data-report
143
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
144
- * @param {string} code Unique identifier for the object.
145
- * @param {string} [expand] Fields to expand response by
146
- * @param {*} [options] Override http request option.
147
- * @throws {RequiredError}
148
- */
149
- getDataReport: async (authorization: string, code: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
- // verify required parameter 'authorization' is not null or undefined
151
- assertParamExists('getDataReport', 'authorization', authorization)
152
- // verify required parameter 'code' is not null or undefined
153
- assertParamExists('getDataReport', 'code', code)
154
- const localVarPath = `/tenantservice/v1/data-reports/{code}`
155
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
156
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
158
- let baseOptions;
159
- let baseAccessToken;
160
- if (configuration) {
161
- baseOptions = configuration.baseOptions;
162
- baseAccessToken = configuration.accessToken;
163
- }
164
-
165
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
166
- const localVarHeaderParameter = {} as any;
167
- const localVarQueryParameter = {} as any;
168
-
169
- // authentication bearer required
170
- // http bearer authentication required
171
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
172
-
173
- if (expand !== undefined) {
174
- localVarQueryParameter['expand'] = expand;
175
- }
176
-
177
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
179
- }
180
-
181
-
182
-
183
- setSearchParams(localVarUrlObj, localVarQueryParameter);
184
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
186
-
187
- return {
188
- url: toPathString(localVarUrlObj),
189
- options: localVarRequestOptions,
190
- };
191
- },
192
- /**
193
- * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
194
- * @summary List data-reports
195
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
196
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
197
- * @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.
198
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
199
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
200
- * @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.
201
- * @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.
202
- * @param {*} [options] Override http request option.
203
- * @throws {RequiredError}
204
- */
205
- listDataReports: async (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
206
- // verify required parameter 'authorization' is not null or undefined
207
- assertParamExists('listDataReports', 'authorization', authorization)
208
- const localVarPath = `/tenantservice/v1/data-reports`;
209
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
210
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
211
- let baseOptions;
212
- let baseAccessToken;
213
- if (configuration) {
214
- baseOptions = configuration.baseOptions;
215
- baseAccessToken = configuration.accessToken;
216
- }
217
-
218
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
219
- const localVarHeaderParameter = {} as any;
220
- const localVarQueryParameter = {} as any;
221
-
222
- // authentication bearer required
223
- // http bearer authentication required
224
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
225
-
226
- if (pageSize !== undefined) {
227
- localVarQueryParameter['pageSize'] = pageSize;
228
- }
229
-
230
- if (pageToken !== undefined) {
231
- localVarQueryParameter['pageToken'] = pageToken;
232
- }
233
-
234
- if (filter !== undefined) {
235
- localVarQueryParameter['filter'] = filter;
236
- }
237
-
238
- if (search !== undefined) {
239
- localVarQueryParameter['search'] = search;
240
- }
241
-
242
- if (order !== undefined) {
243
- localVarQueryParameter['order'] = order;
244
- }
245
-
246
- if (expand !== undefined) {
247
- localVarQueryParameter['expand'] = expand;
248
- }
249
-
250
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
- }
253
-
254
-
255
-
256
- setSearchParams(localVarUrlObj, localVarQueryParameter);
257
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
-
260
- return {
261
- url: toPathString(localVarUrlObj),
262
- options: localVarRequestOptions,
263
- };
264
- },
265
- /**
266
- * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
267
- * @summary Update the data-report
268
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
269
- * @param {string} code
270
- * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
271
- * @param {*} [options] Override http request option.
272
- * @throws {RequiredError}
273
- */
274
- updateDataReport: async (authorization: string, code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
- // verify required parameter 'authorization' is not null or undefined
276
- assertParamExists('updateDataReport', 'authorization', authorization)
277
- // verify required parameter 'code' is not null or undefined
278
- assertParamExists('updateDataReport', 'code', code)
279
- // verify required parameter 'updateDataReportRequestDto' is not null or undefined
280
- assertParamExists('updateDataReport', 'updateDataReportRequestDto', updateDataReportRequestDto)
281
- const localVarPath = `/tenantservice/v1/data-reports/{code}`
282
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
283
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
284
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
285
- let baseOptions;
286
- let baseAccessToken;
287
- if (configuration) {
288
- baseOptions = configuration.baseOptions;
289
- baseAccessToken = configuration.accessToken;
290
- }
291
-
292
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
293
- const localVarHeaderParameter = {} as any;
294
- const localVarQueryParameter = {} as any;
295
-
296
- // authentication bearer required
297
- // http bearer authentication required
298
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
299
-
300
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
301
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
302
- }
303
-
304
-
305
-
306
- localVarHeaderParameter['Content-Type'] = 'application/json';
307
-
308
- setSearchParams(localVarUrlObj, localVarQueryParameter);
309
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
310
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
311
- localVarRequestOptions.data = serializeDataIfNeeded(updateDataReportRequestDto, localVarRequestOptions, configuration)
312
-
313
- return {
314
- url: toPathString(localVarUrlObj),
315
- options: localVarRequestOptions,
316
- };
317
- },
318
- }
319
- };
320
-
321
- /**
322
- * DataReportApi - functional programming interface
323
- * @export
324
- */
325
- export const DataReportApiFp = function(configuration?: Configuration) {
326
- const localVarAxiosParamCreator = DataReportApiAxiosParamCreator(configuration)
327
- return {
328
- /**
329
- * This will create a data report for tenant in the database
330
- * @summary Create the data-report
331
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
332
- * @param {CreateDataReportRequestDto} createDataReportRequestDto
333
- * @param {*} [options] Override http request option.
334
- * @throws {RequiredError}
335
- */
336
- async createCustomSchema(authorization: string, createDataReportRequestDto: CreateDataReportRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDataReportResponseClass>> {
337
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomSchema(authorization, createDataReportRequestDto, options);
338
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
- },
340
- /**
341
- *
342
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
343
- * @param {string} id
344
- * @param {*} [options] Override http request option.
345
- * @throws {RequiredError}
346
- */
347
- async deleteAlert(authorization: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
348
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlert(authorization, id, options);
349
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
350
- },
351
- /**
352
- * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
353
- * @summary Retrieve the data-report
354
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
355
- * @param {string} code Unique identifier for the object.
356
- * @param {string} [expand] Fields to expand response by
357
- * @param {*} [options] Override http request option.
358
- * @throws {RequiredError}
359
- */
360
- async getDataReport(authorization: string, code: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDataReportResponseClass>> {
361
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDataReport(authorization, code, expand, options);
362
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
363
- },
364
- /**
365
- * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
366
- * @summary List data-reports
367
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
368
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
369
- * @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.
370
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
371
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
372
- * @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.
373
- * @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.
374
- * @param {*} [options] Override http request option.
375
- * @throws {RequiredError}
376
- */
377
- async listDataReports(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDataReportsResponseClass>> {
378
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDataReports(authorization, pageSize, pageToken, filter, search, order, expand, options);
379
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
- },
381
- /**
382
- * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
383
- * @summary Update the data-report
384
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
385
- * @param {string} code
386
- * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
387
- * @param {*} [options] Override http request option.
388
- * @throws {RequiredError}
389
- */
390
- async updateDataReport(authorization: string, code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDataReportResponseClass>> {
391
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateDataReport(authorization, code, updateDataReportRequestDto, options);
392
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
- },
394
- }
395
- };
396
-
397
- /**
398
- * DataReportApi - factory interface
399
- * @export
400
- */
401
- export const DataReportApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
402
- const localVarFp = DataReportApiFp(configuration)
403
- return {
404
- /**
405
- * This will create a data report for tenant in the database
406
- * @summary Create the data-report
407
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
408
- * @param {CreateDataReportRequestDto} createDataReportRequestDto
409
- * @param {*} [options] Override http request option.
410
- * @throws {RequiredError}
411
- */
412
- createCustomSchema(authorization: string, createDataReportRequestDto: CreateDataReportRequestDto, options?: any): AxiosPromise<CreateDataReportResponseClass> {
413
- return localVarFp.createCustomSchema(authorization, createDataReportRequestDto, options).then((request) => request(axios, basePath));
414
- },
415
- /**
416
- *
417
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
418
- * @param {string} id
419
- * @param {*} [options] Override http request option.
420
- * @throws {RequiredError}
421
- */
422
- deleteAlert(authorization: string, id: string, options?: any): AxiosPromise<void> {
423
- return localVarFp.deleteAlert(authorization, id, options).then((request) => request(axios, basePath));
424
- },
425
- /**
426
- * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
427
- * @summary Retrieve the data-report
428
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
429
- * @param {string} code Unique identifier for the object.
430
- * @param {string} [expand] Fields to expand response by
431
- * @param {*} [options] Override http request option.
432
- * @throws {RequiredError}
433
- */
434
- getDataReport(authorization: string, code: string, expand?: string, options?: any): AxiosPromise<GetDataReportResponseClass> {
435
- return localVarFp.getDataReport(authorization, code, expand, options).then((request) => request(axios, basePath));
436
- },
437
- /**
438
- * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
439
- * @summary List data-reports
440
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
441
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
442
- * @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.
443
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
444
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
445
- * @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.
446
- * @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.
447
- * @param {*} [options] Override http request option.
448
- * @throws {RequiredError}
449
- */
450
- listDataReports(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListDataReportsResponseClass> {
451
- return localVarFp.listDataReports(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
452
- },
453
- /**
454
- * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
455
- * @summary Update the data-report
456
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
457
- * @param {string} code
458
- * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
459
- * @param {*} [options] Override http request option.
460
- * @throws {RequiredError}
461
- */
462
- updateDataReport(authorization: string, code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, options?: any): AxiosPromise<UpdateDataReportResponseClass> {
463
- return localVarFp.updateDataReport(authorization, code, updateDataReportRequestDto, options).then((request) => request(axios, basePath));
464
- },
465
- };
466
- };
467
-
468
- /**
469
- * Request parameters for createCustomSchema operation in DataReportApi.
470
- * @export
471
- * @interface DataReportApiCreateCustomSchemaRequest
472
- */
473
- export interface DataReportApiCreateCustomSchemaRequest {
474
- /**
475
- * Bearer Token: provided by the login endpoint under the name accessToken.
476
- * @type {string}
477
- * @memberof DataReportApiCreateCustomSchema
478
- */
479
- readonly authorization: string
480
-
481
- /**
482
- *
483
- * @type {CreateDataReportRequestDto}
484
- * @memberof DataReportApiCreateCustomSchema
485
- */
486
- readonly createDataReportRequestDto: CreateDataReportRequestDto
487
- }
488
-
489
- /**
490
- * Request parameters for deleteAlert operation in DataReportApi.
491
- * @export
492
- * @interface DataReportApiDeleteAlertRequest
493
- */
494
- export interface DataReportApiDeleteAlertRequest {
495
- /**
496
- * Bearer Token: provided by the login endpoint under the name accessToken.
497
- * @type {string}
498
- * @memberof DataReportApiDeleteAlert
499
- */
500
- readonly authorization: string
501
-
502
- /**
503
- *
504
- * @type {string}
505
- * @memberof DataReportApiDeleteAlert
506
- */
507
- readonly id: string
508
- }
509
-
510
- /**
511
- * Request parameters for getDataReport operation in DataReportApi.
512
- * @export
513
- * @interface DataReportApiGetDataReportRequest
514
- */
515
- export interface DataReportApiGetDataReportRequest {
516
- /**
517
- * Bearer Token: provided by the login endpoint under the name accessToken.
518
- * @type {string}
519
- * @memberof DataReportApiGetDataReport
520
- */
521
- readonly authorization: string
522
-
523
- /**
524
- * Unique identifier for the object.
525
- * @type {string}
526
- * @memberof DataReportApiGetDataReport
527
- */
528
- readonly code: string
529
-
530
- /**
531
- * Fields to expand response by
532
- * @type {string}
533
- * @memberof DataReportApiGetDataReport
534
- */
535
- readonly expand?: string
536
- }
537
-
538
- /**
539
- * Request parameters for listDataReports operation in DataReportApi.
540
- * @export
541
- * @interface DataReportApiListDataReportsRequest
542
- */
543
- export interface DataReportApiListDataReportsRequest {
544
- /**
545
- * Bearer Token: provided by the login endpoint under the name accessToken.
546
- * @type {string}
547
- * @memberof DataReportApiListDataReports
548
- */
549
- readonly authorization: string
550
-
551
- /**
552
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
553
- * @type {any}
554
- * @memberof DataReportApiListDataReports
555
- */
556
- readonly pageSize?: any
557
-
558
- /**
559
- * 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.
560
- * @type {any}
561
- * @memberof DataReportApiListDataReports
562
- */
563
- readonly pageToken?: any
564
-
565
- /**
566
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
567
- * @type {any}
568
- * @memberof DataReportApiListDataReports
569
- */
570
- readonly filter?: any
571
-
572
- /**
573
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
574
- * @type {any}
575
- * @memberof DataReportApiListDataReports
576
- */
577
- readonly search?: any
578
-
579
- /**
580
- * 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.
581
- * @type {any}
582
- * @memberof DataReportApiListDataReports
583
- */
584
- readonly order?: any
585
-
586
- /**
587
- * 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.
588
- * @type {any}
589
- * @memberof DataReportApiListDataReports
590
- */
591
- readonly expand?: any
592
- }
593
-
594
- /**
595
- * Request parameters for updateDataReport operation in DataReportApi.
596
- * @export
597
- * @interface DataReportApiUpdateDataReportRequest
598
- */
599
- export interface DataReportApiUpdateDataReportRequest {
600
- /**
601
- * Bearer Token: provided by the login endpoint under the name accessToken.
602
- * @type {string}
603
- * @memberof DataReportApiUpdateDataReport
604
- */
605
- readonly authorization: string
606
-
607
- /**
608
- *
609
- * @type {string}
610
- * @memberof DataReportApiUpdateDataReport
611
- */
612
- readonly code: string
613
-
614
- /**
615
- *
616
- * @type {UpdateDataReportRequestDto}
617
- * @memberof DataReportApiUpdateDataReport
618
- */
619
- readonly updateDataReportRequestDto: UpdateDataReportRequestDto
620
- }
621
-
622
- /**
623
- * DataReportApi - object-oriented interface
624
- * @export
625
- * @class DataReportApi
626
- * @extends {BaseAPI}
627
- */
628
- export class DataReportApi extends BaseAPI {
629
- /**
630
- * This will create a data report for tenant in the database
631
- * @summary Create the data-report
632
- * @param {DataReportApiCreateCustomSchemaRequest} requestParameters Request parameters.
633
- * @param {*} [options] Override http request option.
634
- * @throws {RequiredError}
635
- * @memberof DataReportApi
636
- */
637
- public createCustomSchema(requestParameters: DataReportApiCreateCustomSchemaRequest, options?: AxiosRequestConfig) {
638
- return DataReportApiFp(this.configuration).createCustomSchema(requestParameters.authorization, requestParameters.createDataReportRequestDto, options).then((request) => request(this.axios, this.basePath));
639
- }
640
-
641
- /**
642
- *
643
- * @param {DataReportApiDeleteAlertRequest} requestParameters Request parameters.
644
- * @param {*} [options] Override http request option.
645
- * @throws {RequiredError}
646
- * @memberof DataReportApi
647
- */
648
- public deleteAlert(requestParameters: DataReportApiDeleteAlertRequest, options?: AxiosRequestConfig) {
649
- return DataReportApiFp(this.configuration).deleteAlert(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
650
- }
651
-
652
- /**
653
- * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
654
- * @summary Retrieve the data-report
655
- * @param {DataReportApiGetDataReportRequest} requestParameters Request parameters.
656
- * @param {*} [options] Override http request option.
657
- * @throws {RequiredError}
658
- * @memberof DataReportApi
659
- */
660
- public getDataReport(requestParameters: DataReportApiGetDataReportRequest, options?: AxiosRequestConfig) {
661
- return DataReportApiFp(this.configuration).getDataReport(requestParameters.authorization, requestParameters.code, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
662
- }
663
-
664
- /**
665
- * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
666
- * @summary List data-reports
667
- * @param {DataReportApiListDataReportsRequest} requestParameters Request parameters.
668
- * @param {*} [options] Override http request option.
669
- * @throws {RequiredError}
670
- * @memberof DataReportApi
671
- */
672
- public listDataReports(requestParameters: DataReportApiListDataReportsRequest, options?: AxiosRequestConfig) {
673
- return DataReportApiFp(this.configuration).listDataReports(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
674
- }
675
-
676
- /**
677
- * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
678
- * @summary Update the data-report
679
- * @param {DataReportApiUpdateDataReportRequest} requestParameters Request parameters.
680
- * @param {*} [options] Override http request option.
681
- * @throws {RequiredError}
682
- * @memberof DataReportApi
683
- */
684
- public updateDataReport(requestParameters: DataReportApiUpdateDataReportRequest, options?: AxiosRequestConfig) {
685
- return DataReportApiFp(this.configuration).updateDataReport(requestParameters.authorization, requestParameters.code, requestParameters.updateDataReportRequestDto, options).then((request) => request(this.axios, this.basePath));
686
- }
687
- }