@emilgroup/tenant-sdk-node 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/.openapi-generator/FILES +109 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +68 -0
  5. package/api/alerts-api.ts +860 -0
  6. package/api/custom-schema-api.ts +580 -0
  7. package/api/dashboard-api.ts +792 -0
  8. package/api/data-report-executor-api.ts +183 -0
  9. package/api/permissions-api.ts +307 -0
  10. package/api/reports-api.ts +860 -0
  11. package/api/roles-api.ts +564 -0
  12. package/api/scenario-analysis-api.ts +977 -0
  13. package/api/settings-api.ts +478 -0
  14. package/api/tariff-comparisons-api.ts +381 -0
  15. package/api/tenants-api.ts +514 -0
  16. package/api/user-subscription-api.ts +191 -0
  17. package/api/users-api.ts +1645 -0
  18. package/api.ts +60 -0
  19. package/base.ts +283 -0
  20. package/common.ts +199 -0
  21. package/configuration.ts +109 -0
  22. package/dist/api/alerts-api.d.ts +479 -0
  23. package/dist/api/alerts-api.js +752 -0
  24. package/dist/api/custom-schema-api.d.ts +329 -0
  25. package/dist/api/custom-schema-api.js +548 -0
  26. package/dist/api/dashboard-api.d.ts +434 -0
  27. package/dist/api/dashboard-api.js +724 -0
  28. package/dist/api/data-report-executor-api.d.ts +106 -0
  29. package/dist/api/data-report-executor-api.js +234 -0
  30. package/dist/api/permissions-api.d.ts +172 -0
  31. package/dist/api/permissions-api.js +331 -0
  32. package/dist/api/reports-api.d.ts +479 -0
  33. package/dist/api/reports-api.js +752 -0
  34. package/dist/api/roles-api.d.ts +301 -0
  35. package/dist/api/roles-api.js +578 -0
  36. package/dist/api/scenario-analysis-api.d.ts +529 -0
  37. package/dist/api/scenario-analysis-api.js +895 -0
  38. package/dist/api/settings-api.d.ts +261 -0
  39. package/dist/api/settings-api.js +509 -0
  40. package/dist/api/tariff-comparisons-api.d.ts +206 -0
  41. package/dist/api/tariff-comparisons-api.js +409 -0
  42. package/dist/api/tenants-api.d.ts +282 -0
  43. package/dist/api/tenants-api.js +514 -0
  44. package/dist/api/user-subscription-api.d.ts +111 -0
  45. package/dist/api/user-subscription-api.js +236 -0
  46. package/dist/api/users-api.d.ts +884 -0
  47. package/dist/api/users-api.js +1456 -0
  48. package/dist/api.d.ts +28 -0
  49. package/dist/api.js +48 -0
  50. package/dist/base.d.ts +76 -0
  51. package/dist/base.js +392 -0
  52. package/dist/common.d.ts +92 -0
  53. package/dist/common.js +277 -0
  54. package/dist/configuration.d.ts +90 -0
  55. package/dist/configuration.js +44 -0
  56. package/dist/index.d.ts +15 -0
  57. package/dist/index.js +35 -0
  58. package/dist/models/alert-class.d.ts +90 -0
  59. package/dist/models/alert-class.js +15 -0
  60. package/dist/models/assign-user-roles-request-dto.d.ts +30 -0
  61. package/dist/models/assign-user-roles-request-dto.js +15 -0
  62. package/dist/models/assign-user-roles-response-class.d.ts +25 -0
  63. package/dist/models/assign-user-roles-response-class.js +15 -0
  64. package/dist/models/batch-delete-request-dto.d.ts +24 -0
  65. package/dist/models/batch-delete-request-dto.js +15 -0
  66. package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
  67. package/dist/models/compare-tariffs-request-dto.js +22 -0
  68. package/dist/models/compare-tariffs-response-class.d.ts +30 -0
  69. package/dist/models/compare-tariffs-response-class.js +15 -0
  70. package/dist/models/condition-dto.d.ts +43 -0
  71. package/dist/models/condition-dto.js +22 -0
  72. package/dist/models/create-alert-request-dto.d.ts +79 -0
  73. package/dist/models/create-alert-request-dto.js +27 -0
  74. package/dist/models/create-alert-response-class.d.ts +25 -0
  75. package/dist/models/create-alert-response-class.js +15 -0
  76. package/dist/models/create-custom-schema-request-dto.d.ts +44 -0
  77. package/dist/models/create-custom-schema-request-dto.js +22 -0
  78. package/dist/models/create-custom-schema-response-class.d.ts +25 -0
  79. package/dist/models/create-custom-schema-response-class.js +15 -0
  80. package/dist/models/create-dashboard-request-dto.d.ts +70 -0
  81. package/dist/models/create-dashboard-request-dto.js +29 -0
  82. package/dist/models/create-dashboard-response-class.d.ts +25 -0
  83. package/dist/models/create-dashboard-response-class.js +15 -0
  84. package/dist/models/create-permission-request-dto.d.ts +48 -0
  85. package/dist/models/create-permission-request-dto.js +15 -0
  86. package/dist/models/create-permission-response-class.d.ts +25 -0
  87. package/dist/models/create-permission-response-class.js +15 -0
  88. package/dist/models/create-report-request-dto.d.ts +49 -0
  89. package/dist/models/create-report-request-dto.js +22 -0
  90. package/dist/models/create-report-response-class.d.ts +25 -0
  91. package/dist/models/create-report-response-class.js +15 -0
  92. package/dist/models/create-role-request-dto.d.ts +36 -0
  93. package/dist/models/create-role-request-dto.js +15 -0
  94. package/dist/models/create-role-response-class.d.ts +25 -0
  95. package/dist/models/create-role-response-class.js +15 -0
  96. package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
  97. package/dist/models/create-scenario-analysis-request-dto.js +22 -0
  98. package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
  99. package/dist/models/create-scenario-analysis-response-class.js +15 -0
  100. package/dist/models/create-tenant-request-dto.d.ts +56 -0
  101. package/dist/models/create-tenant-request-dto.js +15 -0
  102. package/dist/models/create-tenant-response-class.d.ts +42 -0
  103. package/dist/models/create-tenant-response-class.js +15 -0
  104. package/dist/models/custom-field-dto.d.ts +68 -0
  105. package/dist/models/custom-field-dto.js +23 -0
  106. package/dist/models/custom-schema-class.d.ts +66 -0
  107. package/dist/models/custom-schema-class.js +15 -0
  108. package/dist/models/dashboard-class.d.ts +78 -0
  109. package/dist/models/dashboard-class.js +15 -0
  110. package/dist/models/dbconfig-dto.d.ts +48 -0
  111. package/dist/models/dbconfig-dto.js +15 -0
  112. package/dist/models/disable-user-response-class.d.ts +25 -0
  113. package/dist/models/disable-user-response-class.js +15 -0
  114. package/dist/models/disable-users-request-dto.d.ts +24 -0
  115. package/dist/models/disable-users-request-dto.js +15 -0
  116. package/dist/models/enable-user-response-class.d.ts +25 -0
  117. package/dist/models/enable-user-response-class.js +15 -0
  118. package/dist/models/enable-users-request-dto.d.ts +24 -0
  119. package/dist/models/enable-users-request-dto.js +15 -0
  120. package/dist/models/get-alert-response-class.d.ts +25 -0
  121. package/dist/models/get-alert-response-class.js +15 -0
  122. package/dist/models/get-custom-schema-response-class.d.ts +25 -0
  123. package/dist/models/get-custom-schema-response-class.js +15 -0
  124. package/dist/models/get-dashboard-response-class.d.ts +25 -0
  125. package/dist/models/get-dashboard-response-class.js +15 -0
  126. package/dist/models/get-embedded-url-response-class.d.ts +24 -0
  127. package/dist/models/get-embedded-url-response-class.js +15 -0
  128. package/dist/models/get-report-response-class.d.ts +25 -0
  129. package/dist/models/get-report-response-class.js +15 -0
  130. package/dist/models/get-role-response-class.d.ts +25 -0
  131. package/dist/models/get-role-response-class.js +15 -0
  132. package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
  133. package/dist/models/get-scenario-analysis-response-class.js +15 -0
  134. package/dist/models/get-user-response-class.d.ts +25 -0
  135. package/dist/models/get-user-response-class.js +15 -0
  136. package/dist/models/index.d.ts +83 -0
  137. package/dist/models/index.js +99 -0
  138. package/dist/models/invite-class.d.ts +54 -0
  139. package/dist/models/invite-class.js +15 -0
  140. package/dist/models/invite-user-request-dto.d.ts +30 -0
  141. package/dist/models/invite-user-request-dto.js +15 -0
  142. package/dist/models/invite-user-response-class.d.ts +25 -0
  143. package/dist/models/invite-user-response-class.js +15 -0
  144. package/dist/models/invite-users-request-dto.d.ts +30 -0
  145. package/dist/models/invite-users-request-dto.js +15 -0
  146. package/dist/models/list-alert-history-response-class.d.ts +30 -0
  147. package/dist/models/list-alert-history-response-class.js +15 -0
  148. package/dist/models/list-alerts-response-class.d.ts +30 -0
  149. package/dist/models/list-alerts-response-class.js +15 -0
  150. package/dist/models/list-channels-response-class.d.ts +24 -0
  151. package/dist/models/list-channels-response-class.js +15 -0
  152. package/dist/models/list-custom-schemas-response-class.d.ts +30 -0
  153. package/dist/models/list-custom-schemas-response-class.js +15 -0
  154. package/dist/models/list-dashboards-response-class.d.ts +30 -0
  155. package/dist/models/list-dashboards-response-class.js +15 -0
  156. package/dist/models/list-insurance-companies-response-class.d.ts +24 -0
  157. package/dist/models/list-insurance-companies-response-class.js +15 -0
  158. package/dist/models/list-invites-response-class.d.ts +30 -0
  159. package/dist/models/list-invites-response-class.js +15 -0
  160. package/dist/models/list-permissions-response-class.d.ts +30 -0
  161. package/dist/models/list-permissions-response-class.js +15 -0
  162. package/dist/models/list-report-history-response-class.d.ts +30 -0
  163. package/dist/models/list-report-history-response-class.js +15 -0
  164. package/dist/models/list-reports-response-class.d.ts +30 -0
  165. package/dist/models/list-reports-response-class.js +15 -0
  166. package/dist/models/list-roles-response-class.d.ts +30 -0
  167. package/dist/models/list-roles-response-class.js +15 -0
  168. package/dist/models/list-scenario-analyses-response-class.d.ts +30 -0
  169. package/dist/models/list-scenario-analyses-response-class.js +15 -0
  170. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +24 -0
  171. package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
  172. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +24 -0
  173. package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
  174. package/dist/models/list-tariffs-response-class.d.ts +24 -0
  175. package/dist/models/list-tariffs-response-class.js +15 -0
  176. package/dist/models/list-users-response-class.d.ts +30 -0
  177. package/dist/models/list-users-response-class.js +15 -0
  178. package/dist/models/manage-subscription-request-dto.d.ts +24 -0
  179. package/dist/models/manage-subscription-request-dto.js +15 -0
  180. package/dist/models/manage-subscription-response-class.d.ts +25 -0
  181. package/dist/models/manage-subscription-response-class.js +15 -0
  182. package/dist/models/permission-class.d.ts +66 -0
  183. package/dist/models/permission-class.js +15 -0
  184. package/dist/models/report-class.d.ts +66 -0
  185. package/dist/models/report-class.js +15 -0
  186. package/dist/models/role-class.d.ts +60 -0
  187. package/dist/models/role-class.js +15 -0
  188. package/dist/models/run-data-report-request-dto.d.ts +30 -0
  189. package/dist/models/run-data-report-request-dto.js +15 -0
  190. package/dist/models/run-data-report-response-class.d.ts +24 -0
  191. package/dist/models/run-data-report-response-class.js +15 -0
  192. package/dist/models/scenario-analysis-class.d.ts +108 -0
  193. package/dist/models/scenario-analysis-class.js +15 -0
  194. package/dist/models/set-user-setting-request-dto.d.ts +30 -0
  195. package/dist/models/set-user-setting-request-dto.js +15 -0
  196. package/dist/models/subscription-class.d.ts +60 -0
  197. package/dist/models/subscription-class.js +15 -0
  198. package/dist/models/tenant-admin-user-dto.d.ts +42 -0
  199. package/dist/models/tenant-admin-user-dto.js +15 -0
  200. package/dist/models/update-alert-request-dto.d.ts +72 -0
  201. package/dist/models/update-alert-request-dto.js +21 -0
  202. package/dist/models/update-alert-response-class.d.ts +25 -0
  203. package/dist/models/update-alert-response-class.js +15 -0
  204. package/dist/models/update-custom-schema-request-dto.d.ts +44 -0
  205. package/dist/models/update-custom-schema-request-dto.js +22 -0
  206. package/dist/models/update-custom-schema-response-class.d.ts +25 -0
  207. package/dist/models/update-custom-schema-response-class.js +15 -0
  208. package/dist/models/update-dashboard-request-dto.d.ts +76 -0
  209. package/dist/models/update-dashboard-request-dto.js +29 -0
  210. package/dist/models/update-dashboard-response-class.d.ts +25 -0
  211. package/dist/models/update-dashboard-response-class.js +15 -0
  212. package/dist/models/update-report-request-dto.d.ts +55 -0
  213. package/dist/models/update-report-request-dto.js +22 -0
  214. package/dist/models/update-report-response-class.d.ts +25 -0
  215. package/dist/models/update-report-response-class.js +15 -0
  216. package/dist/models/update-role-request-dto.d.ts +42 -0
  217. package/dist/models/update-role-request-dto.js +15 -0
  218. package/dist/models/update-role-response-class.d.ts +25 -0
  219. package/dist/models/update-role-response-class.js +15 -0
  220. package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
  221. package/dist/models/update-scenario-analysis-request-dto.js +22 -0
  222. package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
  223. package/dist/models/update-scenario-analysis-response-class.js +15 -0
  224. package/dist/models/user-class.d.ts +90 -0
  225. package/dist/models/user-class.js +15 -0
  226. package/git_push.sh +57 -0
  227. package/index.ts +19 -0
  228. package/models/alert-class.ts +96 -0
  229. package/models/assign-user-roles-request-dto.ts +36 -0
  230. package/models/assign-user-roles-response-class.ts +31 -0
  231. package/models/batch-delete-request-dto.ts +30 -0
  232. package/models/compare-tariffs-request-dto.ts +46 -0
  233. package/models/compare-tariffs-response-class.ts +36 -0
  234. package/models/condition-dto.ts +52 -0
  235. package/models/create-alert-request-dto.ts +89 -0
  236. package/models/create-alert-response-class.ts +31 -0
  237. package/models/create-custom-schema-request-dto.ts +53 -0
  238. package/models/create-custom-schema-response-class.ts +31 -0
  239. package/models/create-dashboard-request-dto.ts +81 -0
  240. package/models/create-dashboard-response-class.ts +31 -0
  241. package/models/create-permission-request-dto.ts +54 -0
  242. package/models/create-permission-response-class.ts +31 -0
  243. package/models/create-report-request-dto.ts +58 -0
  244. package/models/create-report-response-class.ts +31 -0
  245. package/models/create-role-request-dto.ts +42 -0
  246. package/models/create-role-response-class.ts +31 -0
  247. package/models/create-scenario-analysis-request-dto.ts +83 -0
  248. package/models/create-scenario-analysis-response-class.ts +31 -0
  249. package/models/create-tenant-request-dto.ts +62 -0
  250. package/models/create-tenant-response-class.ts +48 -0
  251. package/models/custom-field-dto.ts +77 -0
  252. package/models/custom-schema-class.ts +72 -0
  253. package/models/dashboard-class.ts +84 -0
  254. package/models/dbconfig-dto.ts +54 -0
  255. package/models/disable-user-response-class.ts +31 -0
  256. package/models/disable-users-request-dto.ts +30 -0
  257. package/models/enable-user-response-class.ts +31 -0
  258. package/models/enable-users-request-dto.ts +30 -0
  259. package/models/get-alert-response-class.ts +31 -0
  260. package/models/get-custom-schema-response-class.ts +31 -0
  261. package/models/get-dashboard-response-class.ts +31 -0
  262. package/models/get-embedded-url-response-class.ts +30 -0
  263. package/models/get-report-response-class.ts +31 -0
  264. package/models/get-role-response-class.ts +31 -0
  265. package/models/get-scenario-analysis-response-class.ts +31 -0
  266. package/models/get-user-response-class.ts +31 -0
  267. package/models/index.ts +83 -0
  268. package/models/invite-class.ts +60 -0
  269. package/models/invite-user-request-dto.ts +36 -0
  270. package/models/invite-user-response-class.ts +31 -0
  271. package/models/invite-users-request-dto.ts +36 -0
  272. package/models/list-alert-history-response-class.ts +36 -0
  273. package/models/list-alerts-response-class.ts +36 -0
  274. package/models/list-channels-response-class.ts +30 -0
  275. package/models/list-custom-schemas-response-class.ts +36 -0
  276. package/models/list-dashboards-response-class.ts +36 -0
  277. package/models/list-insurance-companies-response-class.ts +30 -0
  278. package/models/list-invites-response-class.ts +36 -0
  279. package/models/list-permissions-response-class.ts +36 -0
  280. package/models/list-report-history-response-class.ts +36 -0
  281. package/models/list-reports-response-class.ts +36 -0
  282. package/models/list-roles-response-class.ts +36 -0
  283. package/models/list-scenario-analyses-response-class.ts +36 -0
  284. package/models/list-scenario-analysis-dates-response-class.ts +30 -0
  285. package/models/list-tariff-insurance-companies-response-class.ts +30 -0
  286. package/models/list-tariffs-response-class.ts +30 -0
  287. package/models/list-users-response-class.ts +36 -0
  288. package/models/manage-subscription-request-dto.ts +30 -0
  289. package/models/manage-subscription-response-class.ts +31 -0
  290. package/models/permission-class.ts +72 -0
  291. package/models/report-class.ts +72 -0
  292. package/models/role-class.ts +66 -0
  293. package/models/run-data-report-request-dto.ts +36 -0
  294. package/models/run-data-report-response-class.ts +30 -0
  295. package/models/scenario-analysis-class.ts +114 -0
  296. package/models/set-user-setting-request-dto.ts +36 -0
  297. package/models/subscription-class.ts +66 -0
  298. package/models/tenant-admin-user-dto.ts +48 -0
  299. package/models/update-alert-request-dto.ts +81 -0
  300. package/models/update-alert-response-class.ts +31 -0
  301. package/models/update-custom-schema-request-dto.ts +53 -0
  302. package/models/update-custom-schema-response-class.ts +31 -0
  303. package/models/update-dashboard-request-dto.ts +87 -0
  304. package/models/update-dashboard-response-class.ts +31 -0
  305. package/models/update-report-request-dto.ts +64 -0
  306. package/models/update-report-response-class.ts +31 -0
  307. package/models/update-role-request-dto.ts +48 -0
  308. package/models/update-role-response-class.ts +31 -0
  309. package/models/update-scenario-analysis-request-dto.ts +83 -0
  310. package/models/update-scenario-analysis-response-class.ts +31 -0
  311. package/models/user-class.ts +96 -0
  312. package/package.json +29 -0
  313. package/tsconfig.json +22 -0
@@ -0,0 +1,106 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { RunDataReportRequestDto } from '../models';
16
+ import { RunDataReportResponseClass } from '../models';
17
+ /**
18
+ * DataReportExecutorApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const DataReportExecutorApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * This will execute the data report with the given slug using filter values as the report parameters
24
+ * @summary Create the data-report-executor
25
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
26
+ * @param {string} [authorization] Bearer Token
27
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ runDataReport: (runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ };
33
+ /**
34
+ * DataReportExecutorApi - functional programming interface
35
+ * @export
36
+ */
37
+ export declare const DataReportExecutorApiFp: (configuration?: Configuration) => {
38
+ /**
39
+ * This will execute the data report with the given slug using filter values as the report parameters
40
+ * @summary Create the data-report-executor
41
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
42
+ * @param {string} [authorization] Bearer Token
43
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunDataReportResponseClass>>;
48
+ };
49
+ /**
50
+ * DataReportExecutorApi - factory interface
51
+ * @export
52
+ */
53
+ export declare const DataReportExecutorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
54
+ /**
55
+ * This will execute the data report with the given slug using filter values as the report parameters
56
+ * @summary Create the data-report-executor
57
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
58
+ * @param {string} [authorization] Bearer Token
59
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<RunDataReportResponseClass>;
64
+ };
65
+ /**
66
+ * Request parameters for runDataReport operation in DataReportExecutorApi.
67
+ * @export
68
+ * @interface DataReportExecutorApiRunDataReportRequest
69
+ */
70
+ export interface DataReportExecutorApiRunDataReportRequest {
71
+ /**
72
+ *
73
+ * @type {RunDataReportRequestDto}
74
+ * @memberof DataReportExecutorApiRunDataReport
75
+ */
76
+ readonly runDataReportRequestDto: RunDataReportRequestDto;
77
+ /**
78
+ * Bearer Token
79
+ * @type {string}
80
+ * @memberof DataReportExecutorApiRunDataReport
81
+ */
82
+ readonly authorization?: string;
83
+ /**
84
+ * Bearer Token: provided by the login endpoint under the name accessToken.
85
+ * @type {string}
86
+ * @memberof DataReportExecutorApiRunDataReport
87
+ */
88
+ readonly authorization2?: string;
89
+ }
90
+ /**
91
+ * DataReportExecutorApi - object-oriented interface
92
+ * @export
93
+ * @class DataReportExecutorApi
94
+ * @extends {BaseAPI}
95
+ */
96
+ export declare class DataReportExecutorApi extends BaseAPI {
97
+ /**
98
+ * This will execute the data report with the given slug using filter values as the report parameters
99
+ * @summary Create the data-report-executor
100
+ * @param {DataReportExecutorApiRunDataReportRequest} requestParameters Request parameters.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ * @memberof DataReportExecutorApi
104
+ */
105
+ runDataReport(requestParameters: DataReportExecutorApiRunDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunDataReportResponseClass, any>>;
106
+ }
@@ -0,0 +1,234 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.DataReportExecutorApi = exports.DataReportExecutorApiFactory = exports.DataReportExecutorApiFp = exports.DataReportExecutorApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * DataReportExecutorApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var DataReportExecutorApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This will execute the data report with the given slug using filter values as the report parameters
101
+ * @summary Create the data-report-executor
102
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
103
+ * @param {string} [authorization] Bearer Token
104
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ runDataReport: function (runDataReportRequestDto, authorization, authorization2, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'runDataReportRequestDto' is not null or undefined
116
+ (0, common_1.assertParamExists)('runDataReport', 'runDataReportRequestDto', runDataReportRequestDto);
117
+ localVarPath = "/tenantservice/v1/data-report-executor";
118
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
129
+ case 1:
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ _a.sent();
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ }
136
+ if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(runDataReportRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ };
153
+ };
154
+ exports.DataReportExecutorApiAxiosParamCreator = DataReportExecutorApiAxiosParamCreator;
155
+ /**
156
+ * DataReportExecutorApi - functional programming interface
157
+ * @export
158
+ */
159
+ var DataReportExecutorApiFp = function (configuration) {
160
+ var localVarAxiosParamCreator = (0, exports.DataReportExecutorApiAxiosParamCreator)(configuration);
161
+ return {
162
+ /**
163
+ * This will execute the data report with the given slug using filter values as the report parameters
164
+ * @summary Create the data-report-executor
165
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
166
+ * @param {string} [authorization] Bearer Token
167
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ */
171
+ runDataReport: function (runDataReportRequestDto, authorization, authorization2, options) {
172
+ return __awaiter(this, void 0, void 0, function () {
173
+ var localVarAxiosArgs;
174
+ return __generator(this, function (_a) {
175
+ switch (_a.label) {
176
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.runDataReport(runDataReportRequestDto, authorization, authorization2, options)];
177
+ case 1:
178
+ localVarAxiosArgs = _a.sent();
179
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
180
+ }
181
+ });
182
+ });
183
+ },
184
+ };
185
+ };
186
+ exports.DataReportExecutorApiFp = DataReportExecutorApiFp;
187
+ /**
188
+ * DataReportExecutorApi - factory interface
189
+ * @export
190
+ */
191
+ var DataReportExecutorApiFactory = function (configuration, basePath, axios) {
192
+ var localVarFp = (0, exports.DataReportExecutorApiFp)(configuration);
193
+ return {
194
+ /**
195
+ * This will execute the data report with the given slug using filter values as the report parameters
196
+ * @summary Create the data-report-executor
197
+ * @param {RunDataReportRequestDto} runDataReportRequestDto
198
+ * @param {string} [authorization] Bearer Token
199
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ runDataReport: function (runDataReportRequestDto, authorization, authorization2, options) {
204
+ return localVarFp.runDataReport(runDataReportRequestDto, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
205
+ },
206
+ };
207
+ };
208
+ exports.DataReportExecutorApiFactory = DataReportExecutorApiFactory;
209
+ /**
210
+ * DataReportExecutorApi - object-oriented interface
211
+ * @export
212
+ * @class DataReportExecutorApi
213
+ * @extends {BaseAPI}
214
+ */
215
+ var DataReportExecutorApi = /** @class */ (function (_super) {
216
+ __extends(DataReportExecutorApi, _super);
217
+ function DataReportExecutorApi() {
218
+ return _super !== null && _super.apply(this, arguments) || this;
219
+ }
220
+ /**
221
+ * This will execute the data report with the given slug using filter values as the report parameters
222
+ * @summary Create the data-report-executor
223
+ * @param {DataReportExecutorApiRunDataReportRequest} requestParameters Request parameters.
224
+ * @param {*} [options] Override http request option.
225
+ * @throws {RequiredError}
226
+ * @memberof DataReportExecutorApi
227
+ */
228
+ DataReportExecutorApi.prototype.runDataReport = function (requestParameters, options) {
229
+ var _this = this;
230
+ return (0, exports.DataReportExecutorApiFp)(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then(function (request) { return request(_this.axios, _this.basePath); });
231
+ };
232
+ return DataReportExecutorApi;
233
+ }(base_1.BaseAPI));
234
+ exports.DataReportExecutorApi = DataReportExecutorApi;
@@ -0,0 +1,172 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreatePermissionRequestDto } from '../models';
16
+ import { CreatePermissionResponseClass } from '../models';
17
+ import { ListPermissionsResponseClass } from '../models';
18
+ /**
19
+ * PermissionsApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export declare const PermissionsApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ *
25
+ * @param {CreatePermissionRequestDto} createPermissionRequestDto
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ createPermission: (createPermissionRequestDto: CreatePermissionRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ /**
31
+ *
32
+ * @param {number} [pageSize] Page size
33
+ * @param {string} [pageToken] Page token
34
+ * @param {string} [filter] List filter
35
+ * @param {string} [search] Search query
36
+ * @param {string} [order] Ordering criteria
37
+ * @param {string} [expand] Extra fields to fetch
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ listPermissions: (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ };
43
+ /**
44
+ * PermissionsApi - functional programming interface
45
+ * @export
46
+ */
47
+ export declare const PermissionsApiFp: (configuration?: Configuration) => {
48
+ /**
49
+ *
50
+ * @param {CreatePermissionRequestDto} createPermissionRequestDto
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ createPermission(createPermissionRequestDto: CreatePermissionRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePermissionResponseClass>>;
55
+ /**
56
+ *
57
+ * @param {number} [pageSize] Page size
58
+ * @param {string} [pageToken] Page token
59
+ * @param {string} [filter] List filter
60
+ * @param {string} [search] Search query
61
+ * @param {string} [order] Ordering criteria
62
+ * @param {string} [expand] Extra fields to fetch
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ listPermissions(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsResponseClass>>;
67
+ };
68
+ /**
69
+ * PermissionsApi - factory interface
70
+ * @export
71
+ */
72
+ export declare const PermissionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
73
+ /**
74
+ *
75
+ * @param {CreatePermissionRequestDto} createPermissionRequestDto
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ createPermission(createPermissionRequestDto: CreatePermissionRequestDto, options?: any): AxiosPromise<CreatePermissionResponseClass>;
80
+ /**
81
+ *
82
+ * @param {number} [pageSize] Page size
83
+ * @param {string} [pageToken] Page token
84
+ * @param {string} [filter] List filter
85
+ * @param {string} [search] Search query
86
+ * @param {string} [order] Ordering criteria
87
+ * @param {string} [expand] Extra fields to fetch
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ listPermissions(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPermissionsResponseClass>;
92
+ };
93
+ /**
94
+ * Request parameters for createPermission operation in PermissionsApi.
95
+ * @export
96
+ * @interface PermissionsApiCreatePermissionRequest
97
+ */
98
+ export interface PermissionsApiCreatePermissionRequest {
99
+ /**
100
+ *
101
+ * @type {CreatePermissionRequestDto}
102
+ * @memberof PermissionsApiCreatePermission
103
+ */
104
+ readonly createPermissionRequestDto: CreatePermissionRequestDto;
105
+ }
106
+ /**
107
+ * Request parameters for listPermissions operation in PermissionsApi.
108
+ * @export
109
+ * @interface PermissionsApiListPermissionsRequest
110
+ */
111
+ export interface PermissionsApiListPermissionsRequest {
112
+ /**
113
+ * Page size
114
+ * @type {number}
115
+ * @memberof PermissionsApiListPermissions
116
+ */
117
+ readonly pageSize?: number;
118
+ /**
119
+ * Page token
120
+ * @type {string}
121
+ * @memberof PermissionsApiListPermissions
122
+ */
123
+ readonly pageToken?: string;
124
+ /**
125
+ * List filter
126
+ * @type {string}
127
+ * @memberof PermissionsApiListPermissions
128
+ */
129
+ readonly filter?: string;
130
+ /**
131
+ * Search query
132
+ * @type {string}
133
+ * @memberof PermissionsApiListPermissions
134
+ */
135
+ readonly search?: string;
136
+ /**
137
+ * Ordering criteria
138
+ * @type {string}
139
+ * @memberof PermissionsApiListPermissions
140
+ */
141
+ readonly order?: string;
142
+ /**
143
+ * Extra fields to fetch
144
+ * @type {string}
145
+ * @memberof PermissionsApiListPermissions
146
+ */
147
+ readonly expand?: string;
148
+ }
149
+ /**
150
+ * PermissionsApi - object-oriented interface
151
+ * @export
152
+ * @class PermissionsApi
153
+ * @extends {BaseAPI}
154
+ */
155
+ export declare class PermissionsApi extends BaseAPI {
156
+ /**
157
+ *
158
+ * @param {PermissionsApiCreatePermissionRequest} requestParameters Request parameters.
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ * @memberof PermissionsApi
162
+ */
163
+ createPermission(requestParameters: PermissionsApiCreatePermissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePermissionResponseClass, any>>;
164
+ /**
165
+ *
166
+ * @param {PermissionsApiListPermissionsRequest} requestParameters Request parameters.
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ * @memberof PermissionsApi
170
+ */
171
+ listPermissions(requestParameters?: PermissionsApiListPermissionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPermissionsResponseClass, any>>;
172
+ }