@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,409 +0,0 @@
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
- * Contact: kontakt@emil.de
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.TariffComparisonsApi = exports.TariffComparisonsApiFactory = exports.TariffComparisonsApiFp = exports.TariffComparisonsApiAxiosParamCreator = 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
- * TariffComparisonsApi - axios parameter creator
94
- * @export
95
- */
96
- var TariffComparisonsApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
98
- return {
99
- /**
100
- *
101
- * @param {CompareTariffsRequestDto} compareTariffsRequestDto
102
- * @param {string} [authorization] Bearer Token
103
- * @param {*} [options] Override http request option.
104
- * @throws {RequiredError}
105
- */
106
- compareTariffs: function (compareTariffsRequestDto, authorization, options) {
107
- if (options === void 0) { options = {}; }
108
- return __awaiter(_this, void 0, void 0, function () {
109
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
- return __generator(this, function (_a) {
111
- switch (_a.label) {
112
- case 0:
113
- // verify required parameter 'compareTariffsRequestDto' is not null or undefined
114
- (0, common_1.assertParamExists)('compareTariffs', 'compareTariffsRequestDto', compareTariffsRequestDto);
115
- localVarPath = "/tenantservice/v1/tariff-comparisons";
116
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
- if (configuration) {
118
- baseOptions = configuration.baseOptions;
119
- baseAccessToken = configuration.accessToken;
120
- }
121
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
122
- localVarHeaderParameter = {};
123
- localVarQueryParameter = {};
124
- // authentication bearer required
125
- // http bearer authentication required
126
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
- case 1:
128
- // authentication bearer required
129
- // http bearer authentication required
130
- _a.sent();
131
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
- }
134
- localVarHeaderParameter['Content-Type'] = 'application/json';
135
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(compareTariffsRequestDto, localVarRequestOptions, configuration);
139
- return [2 /*return*/, {
140
- url: (0, common_1.toPathString)(localVarUrlObj),
141
- options: localVarRequestOptions,
142
- }];
143
- }
144
- });
145
- });
146
- },
147
- /**
148
- *
149
- * @param {string} [authorization] Bearer Token
150
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
151
- * @param {*} [options] Override http request option.
152
- * @throws {RequiredError}
153
- */
154
- listTariffInsuranceCompanies: function (authorization, product, options) {
155
- if (options === void 0) { options = {}; }
156
- return __awaiter(_this, void 0, void 0, function () {
157
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
- return __generator(this, function (_a) {
159
- switch (_a.label) {
160
- case 0:
161
- localVarPath = "/tenantservice/v1/tariff-comparisons/insurances";
162
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
163
- if (configuration) {
164
- baseOptions = configuration.baseOptions;
165
- baseAccessToken = configuration.accessToken;
166
- }
167
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
168
- localVarHeaderParameter = {};
169
- localVarQueryParameter = {};
170
- // authentication bearer required
171
- // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
173
- case 1:
174
- // authentication bearer required
175
- // http bearer authentication required
176
- _a.sent();
177
- if (product !== undefined) {
178
- localVarQueryParameter['product'] = product;
179
- }
180
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
- }
183
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
186
- return [2 /*return*/, {
187
- url: (0, common_1.toPathString)(localVarUrlObj),
188
- options: localVarRequestOptions,
189
- }];
190
- }
191
- });
192
- });
193
- },
194
- /**
195
- *
196
- * @param {string} insurerName Insurer name
197
- * @param {string} [authorization] Bearer Token
198
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
199
- * @param {*} [options] Override http request option.
200
- * @throws {RequiredError}
201
- */
202
- listTariffs: function (insurerName, authorization, product, options) {
203
- if (options === void 0) { options = {}; }
204
- return __awaiter(_this, void 0, void 0, function () {
205
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
206
- return __generator(this, function (_a) {
207
- switch (_a.label) {
208
- case 0:
209
- // verify required parameter 'insurerName' is not null or undefined
210
- (0, common_1.assertParamExists)('listTariffs', 'insurerName', insurerName);
211
- localVarPath = "/tenantservice/v1/tariff-comparisons/tariffs";
212
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
213
- if (configuration) {
214
- baseOptions = configuration.baseOptions;
215
- baseAccessToken = configuration.accessToken;
216
- }
217
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
218
- localVarHeaderParameter = {};
219
- localVarQueryParameter = {};
220
- // authentication bearer required
221
- // http bearer authentication required
222
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
223
- case 1:
224
- // authentication bearer required
225
- // http bearer authentication required
226
- _a.sent();
227
- if (insurerName !== undefined) {
228
- localVarQueryParameter['insurerName'] = insurerName;
229
- }
230
- if (product !== undefined) {
231
- localVarQueryParameter['product'] = product;
232
- }
233
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
234
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
- }
236
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
237
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
238
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
239
- return [2 /*return*/, {
240
- url: (0, common_1.toPathString)(localVarUrlObj),
241
- options: localVarRequestOptions,
242
- }];
243
- }
244
- });
245
- });
246
- },
247
- };
248
- };
249
- exports.TariffComparisonsApiAxiosParamCreator = TariffComparisonsApiAxiosParamCreator;
250
- /**
251
- * TariffComparisonsApi - functional programming interface
252
- * @export
253
- */
254
- var TariffComparisonsApiFp = function (configuration) {
255
- var localVarAxiosParamCreator = (0, exports.TariffComparisonsApiAxiosParamCreator)(configuration);
256
- return {
257
- /**
258
- *
259
- * @param {CompareTariffsRequestDto} compareTariffsRequestDto
260
- * @param {string} [authorization] Bearer Token
261
- * @param {*} [options] Override http request option.
262
- * @throws {RequiredError}
263
- */
264
- compareTariffs: function (compareTariffsRequestDto, authorization, options) {
265
- return __awaiter(this, void 0, void 0, function () {
266
- var localVarAxiosArgs;
267
- return __generator(this, function (_a) {
268
- switch (_a.label) {
269
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.compareTariffs(compareTariffsRequestDto, authorization, options)];
270
- case 1:
271
- localVarAxiosArgs = _a.sent();
272
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
273
- }
274
- });
275
- });
276
- },
277
- /**
278
- *
279
- * @param {string} [authorization] Bearer Token
280
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
281
- * @param {*} [options] Override http request option.
282
- * @throws {RequiredError}
283
- */
284
- listTariffInsuranceCompanies: function (authorization, product, options) {
285
- return __awaiter(this, void 0, void 0, function () {
286
- var localVarAxiosArgs;
287
- return __generator(this, function (_a) {
288
- switch (_a.label) {
289
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTariffInsuranceCompanies(authorization, product, options)];
290
- case 1:
291
- localVarAxiosArgs = _a.sent();
292
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
293
- }
294
- });
295
- });
296
- },
297
- /**
298
- *
299
- * @param {string} insurerName Insurer name
300
- * @param {string} [authorization] Bearer Token
301
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
302
- * @param {*} [options] Override http request option.
303
- * @throws {RequiredError}
304
- */
305
- listTariffs: function (insurerName, authorization, product, options) {
306
- return __awaiter(this, void 0, void 0, function () {
307
- var localVarAxiosArgs;
308
- return __generator(this, function (_a) {
309
- switch (_a.label) {
310
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTariffs(insurerName, authorization, product, options)];
311
- case 1:
312
- localVarAxiosArgs = _a.sent();
313
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
314
- }
315
- });
316
- });
317
- },
318
- };
319
- };
320
- exports.TariffComparisonsApiFp = TariffComparisonsApiFp;
321
- /**
322
- * TariffComparisonsApi - factory interface
323
- * @export
324
- */
325
- var TariffComparisonsApiFactory = function (configuration, basePath, axios) {
326
- var localVarFp = (0, exports.TariffComparisonsApiFp)(configuration);
327
- return {
328
- /**
329
- *
330
- * @param {CompareTariffsRequestDto} compareTariffsRequestDto
331
- * @param {string} [authorization] Bearer Token
332
- * @param {*} [options] Override http request option.
333
- * @throws {RequiredError}
334
- */
335
- compareTariffs: function (compareTariffsRequestDto, authorization, options) {
336
- return localVarFp.compareTariffs(compareTariffsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
337
- },
338
- /**
339
- *
340
- * @param {string} [authorization] Bearer Token
341
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
342
- * @param {*} [options] Override http request option.
343
- * @throws {RequiredError}
344
- */
345
- listTariffInsuranceCompanies: function (authorization, product, options) {
346
- return localVarFp.listTariffInsuranceCompanies(authorization, product, options).then(function (request) { return request(axios, basePath); });
347
- },
348
- /**
349
- *
350
- * @param {string} insurerName Insurer name
351
- * @param {string} [authorization] Bearer Token
352
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
353
- * @param {*} [options] Override http request option.
354
- * @throws {RequiredError}
355
- */
356
- listTariffs: function (insurerName, authorization, product, options) {
357
- return localVarFp.listTariffs(insurerName, authorization, product, options).then(function (request) { return request(axios, basePath); });
358
- },
359
- };
360
- };
361
- exports.TariffComparisonsApiFactory = TariffComparisonsApiFactory;
362
- /**
363
- * TariffComparisonsApi - object-oriented interface
364
- * @export
365
- * @class TariffComparisonsApi
366
- * @extends {BaseAPI}
367
- */
368
- var TariffComparisonsApi = /** @class */ (function (_super) {
369
- __extends(TariffComparisonsApi, _super);
370
- function TariffComparisonsApi() {
371
- return _super !== null && _super.apply(this, arguments) || this;
372
- }
373
- /**
374
- *
375
- * @param {TariffComparisonsApiCompareTariffsRequest} requestParameters Request parameters.
376
- * @param {*} [options] Override http request option.
377
- * @throws {RequiredError}
378
- * @memberof TariffComparisonsApi
379
- */
380
- TariffComparisonsApi.prototype.compareTariffs = function (requestParameters, options) {
381
- var _this = this;
382
- return (0, exports.TariffComparisonsApiFp)(this.configuration).compareTariffs(requestParameters.compareTariffsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
383
- };
384
- /**
385
- *
386
- * @param {TariffComparisonsApiListTariffInsuranceCompaniesRequest} requestParameters Request parameters.
387
- * @param {*} [options] Override http request option.
388
- * @throws {RequiredError}
389
- * @memberof TariffComparisonsApi
390
- */
391
- TariffComparisonsApi.prototype.listTariffInsuranceCompanies = function (requestParameters, options) {
392
- var _this = this;
393
- if (requestParameters === void 0) { requestParameters = {}; }
394
- return (0, exports.TariffComparisonsApiFp)(this.configuration).listTariffInsuranceCompanies(requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
395
- };
396
- /**
397
- *
398
- * @param {TariffComparisonsApiListTariffsRequest} requestParameters Request parameters.
399
- * @param {*} [options] Override http request option.
400
- * @throws {RequiredError}
401
- * @memberof TariffComparisonsApi
402
- */
403
- TariffComparisonsApi.prototype.listTariffs = function (requestParameters, options) {
404
- var _this = this;
405
- return (0, exports.TariffComparisonsApiFp)(this.configuration).listTariffs(requestParameters.insurerName, requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
406
- };
407
- return TariffComparisonsApi;
408
- }(base_1.BaseAPI));
409
- exports.TariffComparisonsApi = TariffComparisonsApi;
@@ -1,90 +0,0 @@
1
- /**
2
- * EMIL Tenant Service
3
- * The EMIL TenantService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
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
- /**
13
- *
14
- * @export
15
- * @interface AlertClass
16
- */
17
- export interface AlertClass {
18
- /**
19
- * Alert id
20
- * @type {number}
21
- * @memberof AlertClass
22
- */
23
- 'id': number;
24
- /**
25
- * Alert code
26
- * @type {string}
27
- * @memberof AlertClass
28
- */
29
- 'code': string;
30
- /**
31
- * Alert name
32
- * @type {string}
33
- * @memberof AlertClass
34
- */
35
- 'name': string;
36
- /**
37
- * Alert type
38
- * @type {string}
39
- * @memberof AlertClass
40
- */
41
- 'type': string;
42
- /**
43
- * Alert description
44
- * @type {string}
45
- * @memberof AlertClass
46
- */
47
- 'description': string;
48
- /**
49
- * Alert insurers
50
- * @type {Array<string>}
51
- * @memberof AlertClass
52
- */
53
- 'insurers': Array<string>;
54
- /**
55
- * Alert channels
56
- * @type {Array<string>}
57
- * @memberof AlertClass
58
- */
59
- 'channels': Array<string>;
60
- /**
61
- * Alert minimum factor
62
- * @type {number}
63
- * @memberof AlertClass
64
- */
65
- 'minFactor': number;
66
- /**
67
- * Alert maximum factor
68
- * @type {number}
69
- * @memberof AlertClass
70
- */
71
- 'maxFactor': number;
72
- /**
73
- * Alert product
74
- * @type {string}
75
- * @memberof AlertClass
76
- */
77
- 'product': string;
78
- /**
79
- * Created at
80
- * @type {string}
81
- * @memberof AlertClass
82
- */
83
- 'createdAt': string;
84
- /**
85
- * Updated at
86
- * @type {string}
87
- * @memberof AlertClass
88
- */
89
- 'updatedAt': string;
90
- }
@@ -1,108 +0,0 @@
1
- /**
2
- * EMIL Tenant Service
3
- * The EMIL TenantService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
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
- /**
13
- *
14
- * @export
15
- * @interface AlertHistoryClass
16
- */
17
- export interface AlertHistoryClass {
18
- /**
19
- * Alert id
20
- * @type {number}
21
- * @memberof AlertHistoryClass
22
- */
23
- 'id': number;
24
- /**
25
- * Alert name
26
- * @type {string}
27
- * @memberof AlertHistoryClass
28
- */
29
- 'name': string;
30
- /**
31
- * Alert type
32
- * @type {string}
33
- * @memberof AlertHistoryClass
34
- */
35
- 'type': string;
36
- /**
37
- * Alert description
38
- * @type {string}
39
- * @memberof AlertHistoryClass
40
- */
41
- 'description': string;
42
- /**
43
- * Alert insurers
44
- * @type {Array<string>}
45
- * @memberof AlertHistoryClass
46
- */
47
- 'insurers': Array<string>;
48
- /**
49
- * Alert channels
50
- * @type {Array<string>}
51
- * @memberof AlertHistoryClass
52
- */
53
- 'channels': Array<string>;
54
- /**
55
- * Alert minimum factor
56
- * @type {number}
57
- * @memberof AlertHistoryClass
58
- */
59
- 'minFactor': number;
60
- /**
61
- * Alert maximum factor
62
- * @type {number}
63
- * @memberof AlertHistoryClass
64
- */
65
- 'maxFactor': number;
66
- /**
67
- * Alert product
68
- * @type {string}
69
- * @memberof AlertHistoryClass
70
- */
71
- 'product': string;
72
- /**
73
- * Created at
74
- * @type {string}
75
- * @memberof AlertHistoryClass
76
- */
77
- 'createdAt': string;
78
- /**
79
- * Updated at
80
- * @type {string}
81
- * @memberof AlertHistoryClass
82
- */
83
- 'updatedAt': string;
84
- /**
85
- * Alert id
86
- * @type {number}
87
- * @memberof AlertHistoryClass
88
- */
89
- 'alertId': number;
90
- /**
91
- * Alert week
92
- * @type {number}
93
- * @memberof AlertHistoryClass
94
- */
95
- 'week': number;
96
- /**
97
- * Alert year
98
- * @type {number}
99
- * @memberof AlertHistoryClass
100
- */
101
- 'year': number;
102
- /**
103
- * Alert day
104
- * @type {number}
105
- * @memberof AlertHistoryClass
106
- */
107
- 'day': number;
108
- }
@@ -1,37 +0,0 @@
1
- /**
2
- * EMIL Tenant Service
3
- * The EMIL TenantService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
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
- /**
13
- *
14
- * @export
15
- * @interface CompareTariffsRequestDto
16
- */
17
- export interface CompareTariffsRequestDto {
18
- /**
19
- * List of insurer
20
- * @type {Array<string>}
21
- * @memberof CompareTariffsRequestDto
22
- */
23
- 'insuranceTariffs': Array<string>;
24
- /**
25
- * Product
26
- * @type {string}
27
- * @memberof CompareTariffsRequestDto
28
- */
29
- 'product'?: CompareTariffsRequestDtoProductEnum;
30
- }
31
- export declare const CompareTariffsRequestDtoProductEnum: {
32
- readonly Car: "car";
33
- readonly Homeowner: "homeowner";
34
- readonly Household: "household";
35
- readonly PrivateLiability: "privateLiability";
36
- };
37
- export type CompareTariffsRequestDtoProductEnum = typeof CompareTariffsRequestDtoProductEnum[keyof typeof CompareTariffsRequestDtoProductEnum];
@@ -1,22 +0,0 @@
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
- * Contact: kontakt@emil.de
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
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CompareTariffsRequestDtoProductEnum = void 0;
17
- exports.CompareTariffsRequestDtoProductEnum = {
18
- Car: 'car',
19
- Homeowner: 'homeowner',
20
- Household: 'household',
21
- PrivateLiability: 'privateLiability'
22
- };