@emilgroup/tenant-sdk 1.0.0 → 1.0.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 (227) hide show
  1. package/.openapi-generator/FILES +57 -14
  2. package/README.md +2 -2
  3. package/api/alerts-api.ts +860 -0
  4. package/api/custom-schema-api.ts +60 -52
  5. package/api/dashboard-api.ts +792 -0
  6. package/api/data-report-api.ts +75 -65
  7. package/api/data-report-executor-api.ts +26 -10
  8. package/api/invite-users-api.ts +79 -75
  9. package/api/reports-api.ts +860 -0
  10. package/api/scenario-analysis-api.ts +977 -0
  11. package/api/settings-api.ts +484 -0
  12. package/api/tariff-comparisons-api.ts +381 -0
  13. package/api/{invite-organizations-api.ts → user-subscription-api.ts} +161 -139
  14. package/api/users-api.ts +148 -138
  15. package/api.ts +14 -4
  16. package/dist/api/alerts-api.d.ts +479 -0
  17. package/dist/api/alerts-api.js +752 -0
  18. package/dist/api/custom-schema-api.d.ts +42 -42
  19. package/dist/api/custom-schema-api.js +38 -31
  20. package/dist/api/dashboard-api.d.ts +434 -0
  21. package/dist/api/dashboard-api.js +724 -0
  22. package/dist/api/data-report-api.d.ts +52 -52
  23. package/dist/api/data-report-api.js +49 -40
  24. package/dist/api/data-report-executor-api.d.ts +16 -7
  25. package/dist/api/data-report-executor-api.js +17 -9
  26. package/dist/api/invite-users-api.d.ts +60 -63
  27. package/dist/api/invite-users-api.js +49 -40
  28. package/dist/api/reports-api.d.ts +479 -0
  29. package/dist/api/reports-api.js +752 -0
  30. package/dist/api/scenario-analysis-api.d.ts +529 -0
  31. package/dist/api/scenario-analysis-api.js +895 -0
  32. package/dist/api/settings-api.d.ts +264 -0
  33. package/dist/api/settings-api.js +509 -0
  34. package/dist/api/tariff-comparisons-api.d.ts +206 -0
  35. package/dist/api/{organizations-api.js → tariff-comparisons-api.js} +158 -99
  36. package/dist/api/{organizations-api.d.ts → user-subscription-api.d.ts} +103 -88
  37. package/dist/api/{invite-organizations-api.js → user-subscription-api.js} +114 -106
  38. package/dist/api/users-api.d.ts +109 -113
  39. package/dist/api/users-api.js +93 -76
  40. package/dist/api.d.ts +7 -2
  41. package/dist/api.js +7 -2
  42. package/dist/models/alert-class.d.ts +90 -0
  43. package/dist/models/alert-history-class.d.ts +108 -0
  44. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  45. package/dist/models/channel-response-class.d.ts +30 -0
  46. package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
  47. package/dist/models/compare-tariffs-request-dto.js +22 -0
  48. package/dist/models/compare-tariffs-response-class.d.ts +31 -0
  49. package/dist/models/condition-dto.d.ts +43 -0
  50. package/dist/models/condition-dto.js +22 -0
  51. package/dist/models/create-alert-request-dto.d.ts +79 -0
  52. package/dist/models/create-alert-request-dto.js +27 -0
  53. package/dist/models/create-alert-response-class.d.ts +25 -0
  54. package/dist/models/create-custom-schema-request-dto.d.ts +0 -1
  55. package/dist/models/create-custom-schema-request-dto.js +1 -2
  56. package/dist/models/create-dashboard-request-dto.d.ts +70 -0
  57. package/dist/models/create-dashboard-request-dto.js +29 -0
  58. package/dist/models/create-dashboard-response-class.d.ts +25 -0
  59. package/dist/models/create-report-request-dto.d.ts +49 -0
  60. package/dist/models/create-report-request-dto.js +22 -0
  61. package/dist/models/create-report-response-class.d.ts +25 -0
  62. package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
  63. package/dist/models/create-scenario-analysis-request-dto.js +22 -0
  64. package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
  65. package/dist/models/dashboard-class.d.ts +78 -0
  66. package/dist/models/get-alert-response-class.d.ts +25 -0
  67. package/dist/models/get-dashboard-response-class.d.ts +25 -0
  68. package/dist/models/{delete-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -6
  69. package/dist/models/get-report-response-class.d.ts +25 -0
  70. package/dist/models/get-report-response-class.js +15 -0
  71. package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
  72. package/dist/models/get-scenario-analysis-response-class.js +15 -0
  73. package/dist/models/grouped-tariff-class.d.ts +30 -0
  74. package/dist/models/grouped-tariff-class.js +15 -0
  75. package/dist/models/index.d.ts +50 -12
  76. package/dist/models/index.js +50 -12
  77. package/dist/models/{enable-users-response-class.d.ts → insurance-company-response-class.d.ts} +6 -6
  78. package/dist/models/insurance-company-response-class.js +15 -0
  79. package/dist/models/{disable-users-response-class.d.ts → insurance-response-class.d.ts} +6 -6
  80. package/dist/models/insurance-response-class.js +15 -0
  81. package/dist/models/invite-user-request-dto.d.ts +2 -8
  82. package/dist/models/invite-users-request-dto.d.ts +2 -2
  83. package/dist/models/{list-organizations-response-class.d.ts → list-alert-history-response-class.d.ts} +9 -9
  84. package/dist/models/list-alert-history-response-class.js +15 -0
  85. package/dist/models/list-alerts-response-class.d.ts +31 -0
  86. package/dist/models/list-alerts-response-class.js +15 -0
  87. package/dist/models/list-channels-response-class.d.ts +25 -0
  88. package/dist/models/list-channels-response-class.js +15 -0
  89. package/dist/models/list-dashboards-response-class.d.ts +31 -0
  90. package/dist/models/list-dashboards-response-class.js +15 -0
  91. package/dist/models/list-insurance-companies-response-class.d.ts +25 -0
  92. package/dist/models/list-insurance-companies-response-class.js +15 -0
  93. package/dist/models/list-report-history-response-class.d.ts +31 -0
  94. package/dist/models/list-report-history-response-class.js +15 -0
  95. package/dist/models/list-reports-response-class.d.ts +31 -0
  96. package/dist/models/list-reports-response-class.js +15 -0
  97. package/dist/models/list-scenario-analyses-response-class.d.ts +31 -0
  98. package/dist/models/list-scenario-analyses-response-class.js +15 -0
  99. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +25 -0
  100. package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
  101. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +25 -0
  102. package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
  103. package/dist/models/list-tariffs-response-class.d.ts +25 -0
  104. package/dist/models/list-tariffs-response-class.js +15 -0
  105. package/dist/models/{list-org-invitations-response-class.d.ts → list-user-subscriptions-response-class.d.ts} +8 -8
  106. package/dist/models/list-user-subscriptions-response-class.js +15 -0
  107. package/dist/models/{batch-delete-response-class.d.ts → manage-subscription-request-dto.d.ts} +5 -5
  108. package/dist/models/manage-subscription-request-dto.js +15 -0
  109. package/dist/models/manage-subscription-response-class.d.ts +25 -0
  110. package/dist/models/manage-subscription-response-class.js +15 -0
  111. package/dist/models/report-class.d.ts +66 -0
  112. package/dist/models/report-class.js +15 -0
  113. package/dist/models/report-history-class.d.ts +48 -0
  114. package/dist/models/report-history-class.js +15 -0
  115. package/dist/models/scenario-analysis-class.d.ts +108 -0
  116. package/dist/models/scenario-analysis-class.js +15 -0
  117. package/dist/models/scenario-analysis-date-response-class.d.ts +36 -0
  118. package/dist/models/scenario-analysis-date-response-class.js +15 -0
  119. package/dist/models/set-setting-request-dto.d.ts +4 -10
  120. package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
  121. package/dist/models/set-tenant-setting-response-class.js +15 -0
  122. package/dist/models/subscription-class.d.ts +2 -9
  123. package/dist/models/update-alert-request-dto.d.ts +72 -0
  124. package/dist/models/update-alert-request-dto.js +21 -0
  125. package/dist/models/update-alert-response-class.d.ts +25 -0
  126. package/dist/models/update-alert-response-class.js +15 -0
  127. package/dist/models/update-custom-schema-request-dto.d.ts +0 -1
  128. package/dist/models/update-custom-schema-request-dto.js +1 -2
  129. package/dist/models/update-dashboard-request-dto.d.ts +76 -0
  130. package/dist/models/update-dashboard-request-dto.js +29 -0
  131. package/dist/models/update-dashboard-response-class.d.ts +25 -0
  132. package/dist/models/update-dashboard-response-class.js +15 -0
  133. package/dist/models/update-report-request-dto.d.ts +55 -0
  134. package/dist/models/update-report-request-dto.js +22 -0
  135. package/dist/models/update-report-response-class.d.ts +25 -0
  136. package/dist/models/update-report-response-class.js +15 -0
  137. package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
  138. package/dist/models/update-scenario-analysis-request-dto.js +22 -0
  139. package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
  140. package/dist/models/update-scenario-analysis-response-class.js +15 -0
  141. package/dist/models/user-class.d.ts +5 -13
  142. package/models/alert-class.ts +96 -0
  143. package/models/alert-history-class.ts +114 -0
  144. package/models/assign-user-roles-request-dto.ts +2 -2
  145. package/models/channel-response-class.ts +36 -0
  146. package/models/compare-tariffs-request-dto.ts +46 -0
  147. package/models/compare-tariffs-response-class.ts +37 -0
  148. package/models/condition-dto.ts +52 -0
  149. package/models/create-alert-request-dto.ts +89 -0
  150. package/models/create-alert-response-class.ts +31 -0
  151. package/models/create-custom-schema-request-dto.ts +1 -2
  152. package/models/create-dashboard-request-dto.ts +81 -0
  153. package/models/create-dashboard-response-class.ts +31 -0
  154. package/models/create-report-request-dto.ts +58 -0
  155. package/models/create-report-response-class.ts +31 -0
  156. package/models/create-scenario-analysis-request-dto.ts +83 -0
  157. package/models/create-scenario-analysis-response-class.ts +31 -0
  158. package/models/dashboard-class.ts +84 -0
  159. package/models/get-alert-response-class.ts +31 -0
  160. package/models/get-dashboard-response-class.ts +31 -0
  161. package/models/{disable-users-response-class.ts → get-embedded-url-response-class.ts} +6 -6
  162. package/models/get-report-response-class.ts +31 -0
  163. package/models/get-scenario-analysis-response-class.ts +31 -0
  164. package/models/grouped-tariff-class.ts +36 -0
  165. package/models/index.ts +50 -12
  166. package/models/{enable-users-response-class.ts → insurance-company-response-class.ts} +6 -6
  167. package/models/{delete-response-class.ts → insurance-response-class.ts} +6 -6
  168. package/models/invite-user-request-dto.ts +2 -8
  169. package/models/invite-users-request-dto.ts +2 -2
  170. package/models/{list-organizations-response-class.ts → list-alert-history-response-class.ts} +9 -9
  171. package/models/list-alerts-response-class.ts +37 -0
  172. package/models/list-channels-response-class.ts +31 -0
  173. package/models/list-dashboards-response-class.ts +37 -0
  174. package/models/list-insurance-companies-response-class.ts +31 -0
  175. package/models/list-report-history-response-class.ts +37 -0
  176. package/models/list-reports-response-class.ts +37 -0
  177. package/models/list-scenario-analyses-response-class.ts +37 -0
  178. package/models/list-scenario-analysis-dates-response-class.ts +31 -0
  179. package/models/list-tariff-insurance-companies-response-class.ts +31 -0
  180. package/models/list-tariffs-response-class.ts +31 -0
  181. package/models/{list-org-invitations-response-class.ts → list-user-subscriptions-response-class.ts} +8 -8
  182. package/models/{batch-delete-response-class.ts → manage-subscription-request-dto.ts} +5 -5
  183. package/models/manage-subscription-response-class.ts +31 -0
  184. package/models/report-class.ts +72 -0
  185. package/models/report-history-class.ts +54 -0
  186. package/models/scenario-analysis-class.ts +114 -0
  187. package/models/scenario-analysis-date-response-class.ts +42 -0
  188. package/models/set-setting-request-dto.ts +4 -10
  189. package/models/set-tenant-setting-response-class.ts +42 -0
  190. package/models/subscription-class.ts +2 -9
  191. package/models/update-alert-request-dto.ts +81 -0
  192. package/models/update-alert-response-class.ts +31 -0
  193. package/models/update-custom-schema-request-dto.ts +1 -2
  194. package/models/update-dashboard-request-dto.ts +87 -0
  195. package/models/update-dashboard-response-class.ts +31 -0
  196. package/models/update-report-request-dto.ts +64 -0
  197. package/models/update-report-response-class.ts +31 -0
  198. package/models/update-scenario-analysis-request-dto.ts +83 -0
  199. package/models/update-scenario-analysis-response-class.ts +31 -0
  200. package/models/user-class.ts +5 -13
  201. package/package.json +1 -1
  202. package/api/organizations-api.ts +0 -339
  203. package/dist/api/invite-organizations-api.d.ts +0 -198
  204. package/dist/models/get-organization-response-class.d.ts +0 -25
  205. package/dist/models/invite-org-request-dto.d.ts +0 -78
  206. package/dist/models/invite-users-response-class.d.ts +0 -24
  207. package/dist/models/org-invitation-class.d.ts +0 -103
  208. package/dist/models/org-invitation-response-class.d.ts +0 -25
  209. package/dist/models/organization-class.d.ts +0 -84
  210. package/models/get-organization-response-class.ts +0 -31
  211. package/models/invite-org-request-dto.ts +0 -84
  212. package/models/invite-users-response-class.ts +0 -30
  213. package/models/org-invitation-class.ts +0 -109
  214. package/models/org-invitation-response-class.ts +0 -31
  215. package/models/organization-class.ts +0 -90
  216. /package/dist/models/{batch-delete-response-class.js → alert-class.js} +0 -0
  217. /package/dist/models/{delete-response-class.js → alert-history-class.js} +0 -0
  218. /package/dist/models/{disable-users-response-class.js → channel-response-class.js} +0 -0
  219. /package/dist/models/{enable-users-response-class.js → compare-tariffs-response-class.js} +0 -0
  220. /package/dist/models/{get-organization-response-class.js → create-alert-response-class.js} +0 -0
  221. /package/dist/models/{invite-org-request-dto.js → create-dashboard-response-class.js} +0 -0
  222. /package/dist/models/{invite-users-response-class.js → create-report-response-class.js} +0 -0
  223. /package/dist/models/{list-org-invitations-response-class.js → create-scenario-analysis-response-class.js} +0 -0
  224. /package/dist/models/{list-organizations-response-class.js → dashboard-class.js} +0 -0
  225. /package/dist/models/{org-invitation-class.js → get-alert-response-class.js} +0 -0
  226. /package/dist/models/{org-invitation-response-class.js → get-dashboard-response-class.js} +0 -0
  227. /package/dist/models/{organization-class.js → get-embedded-url-response-class.js} +0 -0
@@ -0,0 +1,752 @@
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.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = 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
+ * ReportsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ReportsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ *
101
+ * @param {CreateReportRequestDto} createReportRequestDto
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ createReport: function (createReportRequestDto, 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 'createReportRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('createReport', 'createReportRequestDto', createReportRequestDto);
115
+ localVarPath = "/tenantservice/v1/reports";
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)(createReportRequestDto, 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 {number} id
150
+ * @param {string} [authorization] Bearer Token
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ deleteReport: function (id, authorization, 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
+ // verify required parameter 'id' is not null or undefined
162
+ (0, common_1.assertParamExists)('deleteReport', 'id', id);
163
+ localVarPath = "/tenantservice/v1/reports/{id}"
164
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
165
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
166
+ if (configuration) {
167
+ baseOptions = configuration.baseOptions;
168
+ baseAccessToken = configuration.accessToken;
169
+ }
170
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
171
+ localVarHeaderParameter = {};
172
+ localVarQueryParameter = {};
173
+ // authentication bearer required
174
+ // http bearer authentication required
175
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ case 1:
177
+ // authentication bearer required
178
+ // http bearer authentication required
179
+ _a.sent();
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} code
197
+ * @param {string} code2 code
198
+ * @param {string} [authorization] Bearer Token
199
+ * @param {string} [expand] Fields to expand response by
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ getReport: function (code, code2, authorization, expand, options) {
204
+ if (options === void 0) { options = {}; }
205
+ return __awaiter(_this, void 0, void 0, function () {
206
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
207
+ return __generator(this, function (_a) {
208
+ switch (_a.label) {
209
+ case 0:
210
+ // verify required parameter 'code' is not null or undefined
211
+ (0, common_1.assertParamExists)('getReport', 'code', code);
212
+ // verify required parameter 'code2' is not null or undefined
213
+ (0, common_1.assertParamExists)('getReport', 'code2', code2);
214
+ localVarPath = "/tenantservice/v1/reports/{code}"
215
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
216
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
217
+ if (configuration) {
218
+ baseOptions = configuration.baseOptions;
219
+ baseAccessToken = configuration.accessToken;
220
+ }
221
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
222
+ localVarHeaderParameter = {};
223
+ localVarQueryParameter = {};
224
+ // authentication bearer required
225
+ // http bearer authentication required
226
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
227
+ case 1:
228
+ // authentication bearer required
229
+ // http bearer authentication required
230
+ _a.sent();
231
+ if (code2 !== undefined) {
232
+ localVarQueryParameter['code'] = code2;
233
+ }
234
+ if (expand !== undefined) {
235
+ localVarQueryParameter['expand'] = expand;
236
+ }
237
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
238
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
+ }
240
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
241
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
242
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
243
+ return [2 /*return*/, {
244
+ url: (0, common_1.toPathString)(localVarUrlObj),
245
+ options: localVarRequestOptions,
246
+ }];
247
+ }
248
+ });
249
+ });
250
+ },
251
+ /**
252
+ *
253
+ * @param {string} code
254
+ * @param {string} [authorization] Bearer Token
255
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
256
+ * @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.
257
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
258
+ * @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.
259
+ * @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.
260
+ * @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.
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ listReportHistory: function (code, authorization, pageSize, pageToken, filter, search, order, expand, options) {
265
+ if (options === void 0) { options = {}; }
266
+ return __awaiter(_this, void 0, void 0, function () {
267
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
268
+ return __generator(this, function (_a) {
269
+ switch (_a.label) {
270
+ case 0:
271
+ // verify required parameter 'code' is not null or undefined
272
+ (0, common_1.assertParamExists)('listReportHistory', 'code', code);
273
+ localVarPath = "/tenantservice/v1/reports/{code}/history"
274
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
275
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
276
+ if (configuration) {
277
+ baseOptions = configuration.baseOptions;
278
+ baseAccessToken = configuration.accessToken;
279
+ }
280
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
281
+ localVarHeaderParameter = {};
282
+ localVarQueryParameter = {};
283
+ // authentication bearer required
284
+ // http bearer authentication required
285
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
286
+ case 1:
287
+ // authentication bearer required
288
+ // http bearer authentication required
289
+ _a.sent();
290
+ if (pageSize !== undefined) {
291
+ localVarQueryParameter['pageSize'] = pageSize;
292
+ }
293
+ if (pageToken !== undefined) {
294
+ localVarQueryParameter['pageToken'] = pageToken;
295
+ }
296
+ if (filter !== undefined) {
297
+ localVarQueryParameter['filter'] = filter;
298
+ }
299
+ if (search !== undefined) {
300
+ localVarQueryParameter['search'] = search;
301
+ }
302
+ if (order !== undefined) {
303
+ localVarQueryParameter['order'] = order;
304
+ }
305
+ if (expand !== undefined) {
306
+ localVarQueryParameter['expand'] = expand;
307
+ }
308
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
+ }
311
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
314
+ return [2 /*return*/, {
315
+ url: (0, common_1.toPathString)(localVarUrlObj),
316
+ options: localVarRequestOptions,
317
+ }];
318
+ }
319
+ });
320
+ });
321
+ },
322
+ /**
323
+ *
324
+ * @param {string} [authorization] Bearer Token
325
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
326
+ * @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.
327
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
328
+ * @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.
329
+ * @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.
330
+ * @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.
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ listReports: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
335
+ if (options === void 0) { options = {}; }
336
+ return __awaiter(_this, void 0, void 0, function () {
337
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
338
+ return __generator(this, function (_a) {
339
+ switch (_a.label) {
340
+ case 0:
341
+ localVarPath = "/tenantservice/v1/reports";
342
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
343
+ if (configuration) {
344
+ baseOptions = configuration.baseOptions;
345
+ baseAccessToken = configuration.accessToken;
346
+ }
347
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
348
+ localVarHeaderParameter = {};
349
+ localVarQueryParameter = {};
350
+ // authentication bearer required
351
+ // http bearer authentication required
352
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
353
+ case 1:
354
+ // authentication bearer required
355
+ // http bearer authentication required
356
+ _a.sent();
357
+ if (pageSize !== undefined) {
358
+ localVarQueryParameter['pageSize'] = pageSize;
359
+ }
360
+ if (pageToken !== undefined) {
361
+ localVarQueryParameter['pageToken'] = pageToken;
362
+ }
363
+ if (filter !== undefined) {
364
+ localVarQueryParameter['filter'] = filter;
365
+ }
366
+ if (search !== undefined) {
367
+ localVarQueryParameter['search'] = search;
368
+ }
369
+ if (order !== undefined) {
370
+ localVarQueryParameter['order'] = order;
371
+ }
372
+ if (expand !== undefined) {
373
+ localVarQueryParameter['expand'] = expand;
374
+ }
375
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
376
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
377
+ }
378
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
379
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
380
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
381
+ return [2 /*return*/, {
382
+ url: (0, common_1.toPathString)(localVarUrlObj),
383
+ options: localVarRequestOptions,
384
+ }];
385
+ }
386
+ });
387
+ });
388
+ },
389
+ /**
390
+ *
391
+ * @param {number} id
392
+ * @param {UpdateReportRequestDto} updateReportRequestDto
393
+ * @param {string} [authorization] Bearer Token
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ updateReport: function (id, updateReportRequestDto, authorization, options) {
398
+ if (options === void 0) { options = {}; }
399
+ return __awaiter(_this, void 0, void 0, function () {
400
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
401
+ return __generator(this, function (_a) {
402
+ switch (_a.label) {
403
+ case 0:
404
+ // verify required parameter 'id' is not null or undefined
405
+ (0, common_1.assertParamExists)('updateReport', 'id', id);
406
+ // verify required parameter 'updateReportRequestDto' is not null or undefined
407
+ (0, common_1.assertParamExists)('updateReport', 'updateReportRequestDto', updateReportRequestDto);
408
+ localVarPath = "/tenantservice/v1/reports/{id}"
409
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
410
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
411
+ if (configuration) {
412
+ baseOptions = configuration.baseOptions;
413
+ baseAccessToken = configuration.accessToken;
414
+ }
415
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
416
+ localVarHeaderParameter = {};
417
+ localVarQueryParameter = {};
418
+ // authentication bearer required
419
+ // http bearer authentication required
420
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
421
+ case 1:
422
+ // authentication bearer required
423
+ // http bearer authentication required
424
+ _a.sent();
425
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
426
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
427
+ }
428
+ localVarHeaderParameter['Content-Type'] = 'application/json';
429
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
430
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
431
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
432
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateReportRequestDto, localVarRequestOptions, configuration);
433
+ return [2 /*return*/, {
434
+ url: (0, common_1.toPathString)(localVarUrlObj),
435
+ options: localVarRequestOptions,
436
+ }];
437
+ }
438
+ });
439
+ });
440
+ },
441
+ };
442
+ };
443
+ exports.ReportsApiAxiosParamCreator = ReportsApiAxiosParamCreator;
444
+ /**
445
+ * ReportsApi - functional programming interface
446
+ * @export
447
+ */
448
+ var ReportsApiFp = function (configuration) {
449
+ var localVarAxiosParamCreator = (0, exports.ReportsApiAxiosParamCreator)(configuration);
450
+ return {
451
+ /**
452
+ *
453
+ * @param {CreateReportRequestDto} createReportRequestDto
454
+ * @param {string} [authorization] Bearer Token
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ createReport: function (createReportRequestDto, authorization, options) {
459
+ return __awaiter(this, void 0, void 0, function () {
460
+ var localVarAxiosArgs;
461
+ return __generator(this, function (_a) {
462
+ switch (_a.label) {
463
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createReport(createReportRequestDto, authorization, options)];
464
+ case 1:
465
+ localVarAxiosArgs = _a.sent();
466
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
467
+ }
468
+ });
469
+ });
470
+ },
471
+ /**
472
+ *
473
+ * @param {number} id
474
+ * @param {string} [authorization] Bearer Token
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ */
478
+ deleteReport: function (id, authorization, options) {
479
+ return __awaiter(this, void 0, void 0, function () {
480
+ var localVarAxiosArgs;
481
+ return __generator(this, function (_a) {
482
+ switch (_a.label) {
483
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteReport(id, authorization, options)];
484
+ case 1:
485
+ localVarAxiosArgs = _a.sent();
486
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
487
+ }
488
+ });
489
+ });
490
+ },
491
+ /**
492
+ *
493
+ * @param {string} code
494
+ * @param {string} code2 code
495
+ * @param {string} [authorization] Bearer Token
496
+ * @param {string} [expand] Fields to expand response by
497
+ * @param {*} [options] Override http request option.
498
+ * @throws {RequiredError}
499
+ */
500
+ getReport: function (code, code2, authorization, expand, options) {
501
+ return __awaiter(this, void 0, void 0, function () {
502
+ var localVarAxiosArgs;
503
+ return __generator(this, function (_a) {
504
+ switch (_a.label) {
505
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getReport(code, code2, authorization, expand, options)];
506
+ case 1:
507
+ localVarAxiosArgs = _a.sent();
508
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
509
+ }
510
+ });
511
+ });
512
+ },
513
+ /**
514
+ *
515
+ * @param {string} code
516
+ * @param {string} [authorization] Bearer Token
517
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
518
+ * @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.
519
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
520
+ * @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.
521
+ * @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.
522
+ * @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.
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ listReportHistory: function (code, authorization, pageSize, pageToken, filter, search, order, expand, options) {
527
+ return __awaiter(this, void 0, void 0, function () {
528
+ var localVarAxiosArgs;
529
+ return __generator(this, function (_a) {
530
+ switch (_a.label) {
531
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listReportHistory(code, authorization, pageSize, pageToken, filter, search, order, expand, options)];
532
+ case 1:
533
+ localVarAxiosArgs = _a.sent();
534
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
535
+ }
536
+ });
537
+ });
538
+ },
539
+ /**
540
+ *
541
+ * @param {string} [authorization] Bearer Token
542
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
543
+ * @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.
544
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
545
+ * @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.
546
+ * @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.
547
+ * @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.
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ listReports: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
552
+ return __awaiter(this, void 0, void 0, function () {
553
+ var localVarAxiosArgs;
554
+ return __generator(this, function (_a) {
555
+ switch (_a.label) {
556
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listReports(authorization, pageSize, pageToken, filter, search, order, expand, options)];
557
+ case 1:
558
+ localVarAxiosArgs = _a.sent();
559
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
560
+ }
561
+ });
562
+ });
563
+ },
564
+ /**
565
+ *
566
+ * @param {number} id
567
+ * @param {UpdateReportRequestDto} updateReportRequestDto
568
+ * @param {string} [authorization] Bearer Token
569
+ * @param {*} [options] Override http request option.
570
+ * @throws {RequiredError}
571
+ */
572
+ updateReport: function (id, updateReportRequestDto, authorization, options) {
573
+ return __awaiter(this, void 0, void 0, function () {
574
+ var localVarAxiosArgs;
575
+ return __generator(this, function (_a) {
576
+ switch (_a.label) {
577
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateReport(id, updateReportRequestDto, authorization, options)];
578
+ case 1:
579
+ localVarAxiosArgs = _a.sent();
580
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
581
+ }
582
+ });
583
+ });
584
+ },
585
+ };
586
+ };
587
+ exports.ReportsApiFp = ReportsApiFp;
588
+ /**
589
+ * ReportsApi - factory interface
590
+ * @export
591
+ */
592
+ var ReportsApiFactory = function (configuration, basePath, axios) {
593
+ var localVarFp = (0, exports.ReportsApiFp)(configuration);
594
+ return {
595
+ /**
596
+ *
597
+ * @param {CreateReportRequestDto} createReportRequestDto
598
+ * @param {string} [authorization] Bearer Token
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ */
602
+ createReport: function (createReportRequestDto, authorization, options) {
603
+ return localVarFp.createReport(createReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
604
+ },
605
+ /**
606
+ *
607
+ * @param {number} id
608
+ * @param {string} [authorization] Bearer Token
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ deleteReport: function (id, authorization, options) {
613
+ return localVarFp.deleteReport(id, authorization, options).then(function (request) { return request(axios, basePath); });
614
+ },
615
+ /**
616
+ *
617
+ * @param {string} code
618
+ * @param {string} code2 code
619
+ * @param {string} [authorization] Bearer Token
620
+ * @param {string} [expand] Fields to expand response by
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ getReport: function (code, code2, authorization, expand, options) {
625
+ return localVarFp.getReport(code, code2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
626
+ },
627
+ /**
628
+ *
629
+ * @param {string} code
630
+ * @param {string} [authorization] Bearer Token
631
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
632
+ * @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.
633
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
634
+ * @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.
635
+ * @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.
636
+ * @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.
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ listReportHistory: function (code, authorization, pageSize, pageToken, filter, search, order, expand, options) {
641
+ return localVarFp.listReportHistory(code, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
642
+ },
643
+ /**
644
+ *
645
+ * @param {string} [authorization] Bearer Token
646
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
647
+ * @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.
648
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
649
+ * @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.
650
+ * @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.
651
+ * @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.
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ */
655
+ listReports: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
656
+ return localVarFp.listReports(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
657
+ },
658
+ /**
659
+ *
660
+ * @param {number} id
661
+ * @param {UpdateReportRequestDto} updateReportRequestDto
662
+ * @param {string} [authorization] Bearer Token
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ updateReport: function (id, updateReportRequestDto, authorization, options) {
667
+ return localVarFp.updateReport(id, updateReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
668
+ },
669
+ };
670
+ };
671
+ exports.ReportsApiFactory = ReportsApiFactory;
672
+ /**
673
+ * ReportsApi - object-oriented interface
674
+ * @export
675
+ * @class ReportsApi
676
+ * @extends {BaseAPI}
677
+ */
678
+ var ReportsApi = /** @class */ (function (_super) {
679
+ __extends(ReportsApi, _super);
680
+ function ReportsApi() {
681
+ return _super !== null && _super.apply(this, arguments) || this;
682
+ }
683
+ /**
684
+ *
685
+ * @param {ReportsApiCreateReportRequest} requestParameters Request parameters.
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ * @memberof ReportsApi
689
+ */
690
+ ReportsApi.prototype.createReport = function (requestParameters, options) {
691
+ var _this = this;
692
+ return (0, exports.ReportsApiFp)(this.configuration).createReport(requestParameters.createReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
693
+ };
694
+ /**
695
+ *
696
+ * @param {ReportsApiDeleteReportRequest} requestParameters Request parameters.
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ * @memberof ReportsApi
700
+ */
701
+ ReportsApi.prototype.deleteReport = function (requestParameters, options) {
702
+ var _this = this;
703
+ return (0, exports.ReportsApiFp)(this.configuration).deleteReport(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
704
+ };
705
+ /**
706
+ *
707
+ * @param {ReportsApiGetReportRequest} requestParameters Request parameters.
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ * @memberof ReportsApi
711
+ */
712
+ ReportsApi.prototype.getReport = function (requestParameters, options) {
713
+ var _this = this;
714
+ return (0, exports.ReportsApiFp)(this.configuration).getReport(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
715
+ };
716
+ /**
717
+ *
718
+ * @param {ReportsApiListReportHistoryRequest} requestParameters Request parameters.
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ * @memberof ReportsApi
722
+ */
723
+ ReportsApi.prototype.listReportHistory = function (requestParameters, options) {
724
+ var _this = this;
725
+ return (0, exports.ReportsApiFp)(this.configuration).listReportHistory(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
726
+ };
727
+ /**
728
+ *
729
+ * @param {ReportsApiListReportsRequest} requestParameters Request parameters.
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ * @memberof ReportsApi
733
+ */
734
+ ReportsApi.prototype.listReports = function (requestParameters, options) {
735
+ var _this = this;
736
+ if (requestParameters === void 0) { requestParameters = {}; }
737
+ return (0, exports.ReportsApiFp)(this.configuration).listReports(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
738
+ };
739
+ /**
740
+ *
741
+ * @param {ReportsApiUpdateReportRequest} requestParameters Request parameters.
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ * @memberof ReportsApi
745
+ */
746
+ ReportsApi.prototype.updateReport = function (requestParameters, options) {
747
+ var _this = this;
748
+ return (0, exports.ReportsApiFp)(this.configuration).updateReport(requestParameters.id, requestParameters.updateReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
749
+ };
750
+ return ReportsApi;
751
+ }(base_1.BaseAPI));
752
+ exports.ReportsApi = ReportsApi;