@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,645 +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.DataReportApi = exports.DataReportApiFactory = exports.DataReportApiFp = exports.DataReportApiAxiosParamCreator = 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
- * DataReportApi - axios parameter creator
94
- * @export
95
- */
96
- var DataReportApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
98
- return {
99
- /**
100
- * This will create a data report for tenant in the database
101
- * @summary Create the data-report
102
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
103
- * @param {CreateDataReportRequestDto} createDataReportRequestDto
104
- * @param {*} [options] Override http request option.
105
- * @throws {RequiredError}
106
- */
107
- createCustomSchema: function (authorization, createDataReportRequestDto, options) {
108
- if (options === void 0) { options = {}; }
109
- return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
- return __generator(this, function (_a) {
112
- switch (_a.label) {
113
- case 0:
114
- // verify required parameter 'authorization' is not null or undefined
115
- (0, common_1.assertParamExists)('createCustomSchema', 'authorization', authorization);
116
- // verify required parameter 'createDataReportRequestDto' is not null or undefined
117
- (0, common_1.assertParamExists)('createCustomSchema', 'createDataReportRequestDto', createDataReportRequestDto);
118
- localVarPath = "/tenantservice/v1/data-reports";
119
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
120
- if (configuration) {
121
- baseOptions = configuration.baseOptions;
122
- baseAccessToken = configuration.accessToken;
123
- }
124
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
125
- localVarHeaderParameter = {};
126
- localVarQueryParameter = {};
127
- // authentication bearer required
128
- // http bearer authentication required
129
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
130
- case 1:
131
- // authentication bearer required
132
- // http bearer authentication required
133
- _a.sent();
134
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
135
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
- }
137
- localVarHeaderParameter['Content-Type'] = 'application/json';
138
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
141
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDataReportRequestDto, localVarRequestOptions, configuration);
142
- return [2 /*return*/, {
143
- url: (0, common_1.toPathString)(localVarUrlObj),
144
- options: localVarRequestOptions,
145
- }];
146
- }
147
- });
148
- });
149
- },
150
- /**
151
- *
152
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
153
- * @param {string} id
154
- * @param {*} [options] Override http request option.
155
- * @throws {RequiredError}
156
- */
157
- deleteAlert: function (authorization, id, options) {
158
- if (options === void 0) { options = {}; }
159
- return __awaiter(_this, void 0, void 0, function () {
160
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
- return __generator(this, function (_a) {
162
- switch (_a.label) {
163
- case 0:
164
- // verify required parameter 'authorization' is not null or undefined
165
- (0, common_1.assertParamExists)('deleteAlert', 'authorization', authorization);
166
- // verify required parameter 'id' is not null or undefined
167
- (0, common_1.assertParamExists)('deleteAlert', 'id', id);
168
- localVarPath = "/tenantservice/v1/data-reports/{id}"
169
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
170
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
171
- if (configuration) {
172
- baseOptions = configuration.baseOptions;
173
- baseAccessToken = configuration.accessToken;
174
- }
175
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
176
- localVarHeaderParameter = {};
177
- localVarQueryParameter = {};
178
- // authentication bearer required
179
- // http bearer authentication required
180
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
- case 1:
182
- // authentication bearer required
183
- // http bearer authentication required
184
- _a.sent();
185
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
- }
188
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
189
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
190
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
191
- return [2 /*return*/, {
192
- url: (0, common_1.toPathString)(localVarUrlObj),
193
- options: localVarRequestOptions,
194
- }];
195
- }
196
- });
197
- });
198
- },
199
- /**
200
- * 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.
201
- * @summary Retrieve the data-report
202
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
203
- * @param {string} code Unique identifier for the object.
204
- * @param {string} [expand] Fields to expand response by
205
- * @param {*} [options] Override http request option.
206
- * @throws {RequiredError}
207
- */
208
- getDataReport: function (authorization, code, expand, options) {
209
- if (options === void 0) { options = {}; }
210
- return __awaiter(_this, void 0, void 0, function () {
211
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
- return __generator(this, function (_a) {
213
- switch (_a.label) {
214
- case 0:
215
- // verify required parameter 'authorization' is not null or undefined
216
- (0, common_1.assertParamExists)('getDataReport', 'authorization', authorization);
217
- // verify required parameter 'code' is not null or undefined
218
- (0, common_1.assertParamExists)('getDataReport', 'code', code);
219
- localVarPath = "/tenantservice/v1/data-reports/{code}"
220
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
221
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
222
- if (configuration) {
223
- baseOptions = configuration.baseOptions;
224
- baseAccessToken = configuration.accessToken;
225
- }
226
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
227
- localVarHeaderParameter = {};
228
- localVarQueryParameter = {};
229
- // authentication bearer required
230
- // http bearer authentication required
231
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
232
- case 1:
233
- // authentication bearer required
234
- // http bearer authentication required
235
- _a.sent();
236
- if (expand !== undefined) {
237
- localVarQueryParameter['expand'] = expand;
238
- }
239
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
240
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
- }
242
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
243
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
244
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
245
- return [2 /*return*/, {
246
- url: (0, common_1.toPathString)(localVarUrlObj),
247
- options: localVarRequestOptions,
248
- }];
249
- }
250
- });
251
- });
252
- },
253
- /**
254
- * 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.
255
- * @summary List data-reports
256
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
257
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
258
- * @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.
259
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
260
- * @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.
261
- * @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.
262
- * @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.
263
- * @param {*} [options] Override http request option.
264
- * @throws {RequiredError}
265
- */
266
- listDataReports: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
267
- if (options === void 0) { options = {}; }
268
- return __awaiter(_this, void 0, void 0, function () {
269
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
- return __generator(this, function (_a) {
271
- switch (_a.label) {
272
- case 0:
273
- // verify required parameter 'authorization' is not null or undefined
274
- (0, common_1.assertParamExists)('listDataReports', 'authorization', authorization);
275
- localVarPath = "/tenantservice/v1/data-reports";
276
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
277
- if (configuration) {
278
- baseOptions = configuration.baseOptions;
279
- baseAccessToken = configuration.accessToken;
280
- }
281
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
282
- localVarHeaderParameter = {};
283
- localVarQueryParameter = {};
284
- // authentication bearer required
285
- // http bearer authentication required
286
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
287
- case 1:
288
- // authentication bearer required
289
- // http bearer authentication required
290
- _a.sent();
291
- if (pageSize !== undefined) {
292
- localVarQueryParameter['pageSize'] = pageSize;
293
- }
294
- if (pageToken !== undefined) {
295
- localVarQueryParameter['pageToken'] = pageToken;
296
- }
297
- if (filter !== undefined) {
298
- localVarQueryParameter['filter'] = filter;
299
- }
300
- if (search !== undefined) {
301
- localVarQueryParameter['search'] = search;
302
- }
303
- if (order !== undefined) {
304
- localVarQueryParameter['order'] = order;
305
- }
306
- if (expand !== undefined) {
307
- localVarQueryParameter['expand'] = expand;
308
- }
309
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
310
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
- }
312
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
313
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
315
- return [2 /*return*/, {
316
- url: (0, common_1.toPathString)(localVarUrlObj),
317
- options: localVarRequestOptions,
318
- }];
319
- }
320
- });
321
- });
322
- },
323
- /**
324
- * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
325
- * @summary Update the data-report
326
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
327
- * @param {string} code
328
- * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
329
- * @param {*} [options] Override http request option.
330
- * @throws {RequiredError}
331
- */
332
- updateDataReport: function (authorization, code, updateDataReportRequestDto, options) {
333
- if (options === void 0) { options = {}; }
334
- return __awaiter(_this, void 0, void 0, function () {
335
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
336
- return __generator(this, function (_a) {
337
- switch (_a.label) {
338
- case 0:
339
- // verify required parameter 'authorization' is not null or undefined
340
- (0, common_1.assertParamExists)('updateDataReport', 'authorization', authorization);
341
- // verify required parameter 'code' is not null or undefined
342
- (0, common_1.assertParamExists)('updateDataReport', 'code', code);
343
- // verify required parameter 'updateDataReportRequestDto' is not null or undefined
344
- (0, common_1.assertParamExists)('updateDataReport', 'updateDataReportRequestDto', updateDataReportRequestDto);
345
- localVarPath = "/tenantservice/v1/data-reports/{code}"
346
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
347
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
348
- if (configuration) {
349
- baseOptions = configuration.baseOptions;
350
- baseAccessToken = configuration.accessToken;
351
- }
352
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
353
- localVarHeaderParameter = {};
354
- localVarQueryParameter = {};
355
- // authentication bearer required
356
- // http bearer authentication required
357
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
358
- case 1:
359
- // authentication bearer required
360
- // http bearer authentication required
361
- _a.sent();
362
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
363
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
364
- }
365
- localVarHeaderParameter['Content-Type'] = 'application/json';
366
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
367
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
368
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
369
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDataReportRequestDto, localVarRequestOptions, configuration);
370
- return [2 /*return*/, {
371
- url: (0, common_1.toPathString)(localVarUrlObj),
372
- options: localVarRequestOptions,
373
- }];
374
- }
375
- });
376
- });
377
- },
378
- };
379
- };
380
- exports.DataReportApiAxiosParamCreator = DataReportApiAxiosParamCreator;
381
- /**
382
- * DataReportApi - functional programming interface
383
- * @export
384
- */
385
- var DataReportApiFp = function (configuration) {
386
- var localVarAxiosParamCreator = (0, exports.DataReportApiAxiosParamCreator)(configuration);
387
- return {
388
- /**
389
- * This will create a data report for tenant in the database
390
- * @summary Create the data-report
391
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
392
- * @param {CreateDataReportRequestDto} createDataReportRequestDto
393
- * @param {*} [options] Override http request option.
394
- * @throws {RequiredError}
395
- */
396
- createCustomSchema: function (authorization, createDataReportRequestDto, options) {
397
- return __awaiter(this, void 0, void 0, function () {
398
- var localVarAxiosArgs;
399
- return __generator(this, function (_a) {
400
- switch (_a.label) {
401
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomSchema(authorization, createDataReportRequestDto, options)];
402
- case 1:
403
- localVarAxiosArgs = _a.sent();
404
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
405
- }
406
- });
407
- });
408
- },
409
- /**
410
- *
411
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
412
- * @param {string} id
413
- * @param {*} [options] Override http request option.
414
- * @throws {RequiredError}
415
- */
416
- deleteAlert: function (authorization, id, options) {
417
- return __awaiter(this, void 0, void 0, function () {
418
- var localVarAxiosArgs;
419
- return __generator(this, function (_a) {
420
- switch (_a.label) {
421
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAlert(authorization, id, options)];
422
- case 1:
423
- localVarAxiosArgs = _a.sent();
424
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
425
- }
426
- });
427
- });
428
- },
429
- /**
430
- * 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.
431
- * @summary Retrieve the data-report
432
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
433
- * @param {string} code Unique identifier for the object.
434
- * @param {string} [expand] Fields to expand response by
435
- * @param {*} [options] Override http request option.
436
- * @throws {RequiredError}
437
- */
438
- getDataReport: function (authorization, code, expand, options) {
439
- return __awaiter(this, void 0, void 0, function () {
440
- var localVarAxiosArgs;
441
- return __generator(this, function (_a) {
442
- switch (_a.label) {
443
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDataReport(authorization, code, expand, options)];
444
- case 1:
445
- localVarAxiosArgs = _a.sent();
446
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
447
- }
448
- });
449
- });
450
- },
451
- /**
452
- * 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.
453
- * @summary List data-reports
454
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
455
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
456
- * @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.
457
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
458
- * @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.
459
- * @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.
460
- * @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.
461
- * @param {*} [options] Override http request option.
462
- * @throws {RequiredError}
463
- */
464
- listDataReports: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
465
- return __awaiter(this, void 0, void 0, function () {
466
- var localVarAxiosArgs;
467
- return __generator(this, function (_a) {
468
- switch (_a.label) {
469
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDataReports(authorization, pageSize, pageToken, filter, search, order, expand, options)];
470
- case 1:
471
- localVarAxiosArgs = _a.sent();
472
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
473
- }
474
- });
475
- });
476
- },
477
- /**
478
- * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
479
- * @summary Update the data-report
480
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
481
- * @param {string} code
482
- * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
483
- * @param {*} [options] Override http request option.
484
- * @throws {RequiredError}
485
- */
486
- updateDataReport: function (authorization, code, updateDataReportRequestDto, options) {
487
- return __awaiter(this, void 0, void 0, function () {
488
- var localVarAxiosArgs;
489
- return __generator(this, function (_a) {
490
- switch (_a.label) {
491
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateDataReport(authorization, code, updateDataReportRequestDto, options)];
492
- case 1:
493
- localVarAxiosArgs = _a.sent();
494
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
495
- }
496
- });
497
- });
498
- },
499
- };
500
- };
501
- exports.DataReportApiFp = DataReportApiFp;
502
- /**
503
- * DataReportApi - factory interface
504
- * @export
505
- */
506
- var DataReportApiFactory = function (configuration, basePath, axios) {
507
- var localVarFp = (0, exports.DataReportApiFp)(configuration);
508
- return {
509
- /**
510
- * This will create a data report for tenant in the database
511
- * @summary Create the data-report
512
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
513
- * @param {CreateDataReportRequestDto} createDataReportRequestDto
514
- * @param {*} [options] Override http request option.
515
- * @throws {RequiredError}
516
- */
517
- createCustomSchema: function (authorization, createDataReportRequestDto, options) {
518
- return localVarFp.createCustomSchema(authorization, createDataReportRequestDto, options).then(function (request) { return request(axios, basePath); });
519
- },
520
- /**
521
- *
522
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
523
- * @param {string} id
524
- * @param {*} [options] Override http request option.
525
- * @throws {RequiredError}
526
- */
527
- deleteAlert: function (authorization, id, options) {
528
- return localVarFp.deleteAlert(authorization, id, options).then(function (request) { return request(axios, basePath); });
529
- },
530
- /**
531
- * 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.
532
- * @summary Retrieve the data-report
533
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
534
- * @param {string} code Unique identifier for the object.
535
- * @param {string} [expand] Fields to expand response by
536
- * @param {*} [options] Override http request option.
537
- * @throws {RequiredError}
538
- */
539
- getDataReport: function (authorization, code, expand, options) {
540
- return localVarFp.getDataReport(authorization, code, expand, options).then(function (request) { return request(axios, basePath); });
541
- },
542
- /**
543
- * 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.
544
- * @summary List data-reports
545
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
546
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
547
- * @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.
548
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
549
- * @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.
550
- * @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.
551
- * @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.
552
- * @param {*} [options] Override http request option.
553
- * @throws {RequiredError}
554
- */
555
- listDataReports: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
556
- return localVarFp.listDataReports(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
557
- },
558
- /**
559
- * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
560
- * @summary Update the data-report
561
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
562
- * @param {string} code
563
- * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
564
- * @param {*} [options] Override http request option.
565
- * @throws {RequiredError}
566
- */
567
- updateDataReport: function (authorization, code, updateDataReportRequestDto, options) {
568
- return localVarFp.updateDataReport(authorization, code, updateDataReportRequestDto, options).then(function (request) { return request(axios, basePath); });
569
- },
570
- };
571
- };
572
- exports.DataReportApiFactory = DataReportApiFactory;
573
- /**
574
- * DataReportApi - object-oriented interface
575
- * @export
576
- * @class DataReportApi
577
- * @extends {BaseAPI}
578
- */
579
- var DataReportApi = /** @class */ (function (_super) {
580
- __extends(DataReportApi, _super);
581
- function DataReportApi() {
582
- return _super !== null && _super.apply(this, arguments) || this;
583
- }
584
- /**
585
- * This will create a data report for tenant in the database
586
- * @summary Create the data-report
587
- * @param {DataReportApiCreateCustomSchemaRequest} requestParameters Request parameters.
588
- * @param {*} [options] Override http request option.
589
- * @throws {RequiredError}
590
- * @memberof DataReportApi
591
- */
592
- DataReportApi.prototype.createCustomSchema = function (requestParameters, options) {
593
- var _this = this;
594
- return (0, exports.DataReportApiFp)(this.configuration).createCustomSchema(requestParameters.authorization, requestParameters.createDataReportRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
595
- };
596
- /**
597
- *
598
- * @param {DataReportApiDeleteAlertRequest} requestParameters Request parameters.
599
- * @param {*} [options] Override http request option.
600
- * @throws {RequiredError}
601
- * @memberof DataReportApi
602
- */
603
- DataReportApi.prototype.deleteAlert = function (requestParameters, options) {
604
- var _this = this;
605
- return (0, exports.DataReportApiFp)(this.configuration).deleteAlert(requestParameters.authorization, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
606
- };
607
- /**
608
- * 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.
609
- * @summary Retrieve the data-report
610
- * @param {DataReportApiGetDataReportRequest} requestParameters Request parameters.
611
- * @param {*} [options] Override http request option.
612
- * @throws {RequiredError}
613
- * @memberof DataReportApi
614
- */
615
- DataReportApi.prototype.getDataReport = function (requestParameters, options) {
616
- var _this = this;
617
- return (0, exports.DataReportApiFp)(this.configuration).getDataReport(requestParameters.authorization, requestParameters.code, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
618
- };
619
- /**
620
- * 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.
621
- * @summary List data-reports
622
- * @param {DataReportApiListDataReportsRequest} requestParameters Request parameters.
623
- * @param {*} [options] Override http request option.
624
- * @throws {RequiredError}
625
- * @memberof DataReportApi
626
- */
627
- DataReportApi.prototype.listDataReports = function (requestParameters, options) {
628
- var _this = this;
629
- return (0, exports.DataReportApiFp)(this.configuration).listDataReports(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
630
- };
631
- /**
632
- * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
633
- * @summary Update the data-report
634
- * @param {DataReportApiUpdateDataReportRequest} requestParameters Request parameters.
635
- * @param {*} [options] Override http request option.
636
- * @throws {RequiredError}
637
- * @memberof DataReportApi
638
- */
639
- DataReportApi.prototype.updateDataReport = function (requestParameters, options) {
640
- var _this = this;
641
- return (0, exports.DataReportApiFp)(this.configuration).updateDataReport(requestParameters.authorization, requestParameters.code, requestParameters.updateDataReportRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
642
- };
643
- return DataReportApi;
644
- }(base_1.BaseAPI));
645
- exports.DataReportApi = DataReportApi;