@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,895 @@
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.ScenarioAnalysisApi = exports.ScenarioAnalysisApiFactory = exports.ScenarioAnalysisApiFp = exports.ScenarioAnalysisApiAxiosParamCreator = 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
+ * ScenarioAnalysisApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ScenarioAnalysisApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ *
101
+ * @param {CreateScenarioAnalysisRequestDto} createScenarioAnalysisRequestDto
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ createScenarioAnalysis: function (createScenarioAnalysisRequestDto, 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 'createScenarioAnalysisRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('createScenarioAnalysis', 'createScenarioAnalysisRequestDto', createScenarioAnalysisRequestDto);
115
+ localVarPath = "/tenantservice/v1/scenario-analyses";
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)(createScenarioAnalysisRequestDto, 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
+ deleteScenarioAnalysis: 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)('deleteScenarioAnalysis', 'id', id);
163
+ localVarPath = "/tenantservice/v1/scenario-analyses/{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
+ getScenarioAnalysis: 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)('getScenarioAnalysis', 'code', code);
212
+ // verify required parameter 'code2' is not null or undefined
213
+ (0, common_1.assertParamExists)('getScenarioAnalysis', 'code2', code2);
214
+ localVarPath = "/tenantservice/v1/scenario-analyses/{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} [authorization] Bearer Token
254
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ listChannels: function (authorization, product, options) {
259
+ if (options === void 0) { options = {}; }
260
+ return __awaiter(_this, void 0, void 0, function () {
261
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
262
+ return __generator(this, function (_a) {
263
+ switch (_a.label) {
264
+ case 0:
265
+ localVarPath = "/tenantservice/v1/scenario-analyses/channels";
266
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ baseAccessToken = configuration.accessToken;
270
+ }
271
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
272
+ localVarHeaderParameter = {};
273
+ localVarQueryParameter = {};
274
+ // authentication bearer required
275
+ // http bearer authentication required
276
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
277
+ case 1:
278
+ // authentication bearer required
279
+ // http bearer authentication required
280
+ _a.sent();
281
+ if (product !== undefined) {
282
+ localVarQueryParameter['product'] = product;
283
+ }
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
286
+ }
287
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
288
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
290
+ return [2 /*return*/, {
291
+ url: (0, common_1.toPathString)(localVarUrlObj),
292
+ options: localVarRequestOptions,
293
+ }];
294
+ }
295
+ });
296
+ });
297
+ },
298
+ /**
299
+ *
300
+ * @param {string} [authorization] Bearer Token
301
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ listInsuranceCompanies: function (authorization, product, options) {
306
+ if (options === void 0) { options = {}; }
307
+ return __awaiter(_this, void 0, void 0, function () {
308
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
309
+ return __generator(this, function (_a) {
310
+ switch (_a.label) {
311
+ case 0:
312
+ localVarPath = "/tenantservice/v1/scenario-analyses/insurance-companies";
313
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
314
+ if (configuration) {
315
+ baseOptions = configuration.baseOptions;
316
+ baseAccessToken = configuration.accessToken;
317
+ }
318
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
319
+ localVarHeaderParameter = {};
320
+ localVarQueryParameter = {};
321
+ // authentication bearer required
322
+ // http bearer authentication required
323
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
324
+ case 1:
325
+ // authentication bearer required
326
+ // http bearer authentication required
327
+ _a.sent();
328
+ if (product !== undefined) {
329
+ localVarQueryParameter['product'] = product;
330
+ }
331
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
332
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
333
+ }
334
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
335
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
336
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
337
+ return [2 /*return*/, {
338
+ url: (0, common_1.toPathString)(localVarUrlObj),
339
+ options: localVarRequestOptions,
340
+ }];
341
+ }
342
+ });
343
+ });
344
+ },
345
+ /**
346
+ *
347
+ * @param {string} [authorization] Bearer Token
348
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
349
+ * @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.
350
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
351
+ * @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.
352
+ * @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.
353
+ * @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.
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ listScenarioAnalyses: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
358
+ if (options === void 0) { options = {}; }
359
+ return __awaiter(_this, void 0, void 0, function () {
360
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
361
+ return __generator(this, function (_a) {
362
+ switch (_a.label) {
363
+ case 0:
364
+ localVarPath = "/tenantservice/v1/scenario-analyses";
365
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
366
+ if (configuration) {
367
+ baseOptions = configuration.baseOptions;
368
+ baseAccessToken = configuration.accessToken;
369
+ }
370
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
371
+ localVarHeaderParameter = {};
372
+ localVarQueryParameter = {};
373
+ // authentication bearer required
374
+ // http bearer authentication required
375
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
376
+ case 1:
377
+ // authentication bearer required
378
+ // http bearer authentication required
379
+ _a.sent();
380
+ if (pageSize !== undefined) {
381
+ localVarQueryParameter['pageSize'] = pageSize;
382
+ }
383
+ if (pageToken !== undefined) {
384
+ localVarQueryParameter['pageToken'] = pageToken;
385
+ }
386
+ if (filter !== undefined) {
387
+ localVarQueryParameter['filter'] = filter;
388
+ }
389
+ if (search !== undefined) {
390
+ localVarQueryParameter['search'] = search;
391
+ }
392
+ if (order !== undefined) {
393
+ localVarQueryParameter['order'] = order;
394
+ }
395
+ if (expand !== undefined) {
396
+ localVarQueryParameter['expand'] = expand;
397
+ }
398
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
399
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
400
+ }
401
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
402
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
403
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
404
+ return [2 /*return*/, {
405
+ url: (0, common_1.toPathString)(localVarUrlObj),
406
+ options: localVarRequestOptions,
407
+ }];
408
+ }
409
+ });
410
+ });
411
+ },
412
+ /**
413
+ *
414
+ * @param {string} [authorization] Bearer Token
415
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ listScenarioAnalysisDates: function (authorization, product, options) {
420
+ if (options === void 0) { options = {}; }
421
+ return __awaiter(_this, void 0, void 0, function () {
422
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
423
+ return __generator(this, function (_a) {
424
+ switch (_a.label) {
425
+ case 0:
426
+ localVarPath = "/tenantservice/v1/scenario-analyses/dates";
427
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
428
+ if (configuration) {
429
+ baseOptions = configuration.baseOptions;
430
+ baseAccessToken = configuration.accessToken;
431
+ }
432
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
433
+ localVarHeaderParameter = {};
434
+ localVarQueryParameter = {};
435
+ // authentication bearer required
436
+ // http bearer authentication required
437
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
438
+ case 1:
439
+ // authentication bearer required
440
+ // http bearer authentication required
441
+ _a.sent();
442
+ if (product !== undefined) {
443
+ localVarQueryParameter['product'] = product;
444
+ }
445
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
446
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
447
+ }
448
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
449
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
450
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
451
+ return [2 /*return*/, {
452
+ url: (0, common_1.toPathString)(localVarUrlObj),
453
+ options: localVarRequestOptions,
454
+ }];
455
+ }
456
+ });
457
+ });
458
+ },
459
+ /**
460
+ *
461
+ * @param {string} code
462
+ * @param {UpdateScenarioAnalysisRequestDto} updateScenarioAnalysisRequestDto
463
+ * @param {string} [authorization] Bearer Token
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ updateScenarioAnalysis: function (code, updateScenarioAnalysisRequestDto, authorization, options) {
468
+ if (options === void 0) { options = {}; }
469
+ return __awaiter(_this, void 0, void 0, function () {
470
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
471
+ return __generator(this, function (_a) {
472
+ switch (_a.label) {
473
+ case 0:
474
+ // verify required parameter 'code' is not null or undefined
475
+ (0, common_1.assertParamExists)('updateScenarioAnalysis', 'code', code);
476
+ // verify required parameter 'updateScenarioAnalysisRequestDto' is not null or undefined
477
+ (0, common_1.assertParamExists)('updateScenarioAnalysis', 'updateScenarioAnalysisRequestDto', updateScenarioAnalysisRequestDto);
478
+ localVarPath = "/tenantservice/v1/scenario-analyses/{code}"
479
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
480
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
481
+ if (configuration) {
482
+ baseOptions = configuration.baseOptions;
483
+ baseAccessToken = configuration.accessToken;
484
+ }
485
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
486
+ localVarHeaderParameter = {};
487
+ localVarQueryParameter = {};
488
+ // authentication bearer required
489
+ // http bearer authentication required
490
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
491
+ case 1:
492
+ // authentication bearer required
493
+ // http bearer authentication required
494
+ _a.sent();
495
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
496
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
497
+ }
498
+ localVarHeaderParameter['Content-Type'] = 'application/json';
499
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
500
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
501
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
502
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateScenarioAnalysisRequestDto, localVarRequestOptions, configuration);
503
+ return [2 /*return*/, {
504
+ url: (0, common_1.toPathString)(localVarUrlObj),
505
+ options: localVarRequestOptions,
506
+ }];
507
+ }
508
+ });
509
+ });
510
+ },
511
+ };
512
+ };
513
+ exports.ScenarioAnalysisApiAxiosParamCreator = ScenarioAnalysisApiAxiosParamCreator;
514
+ /**
515
+ * ScenarioAnalysisApi - functional programming interface
516
+ * @export
517
+ */
518
+ var ScenarioAnalysisApiFp = function (configuration) {
519
+ var localVarAxiosParamCreator = (0, exports.ScenarioAnalysisApiAxiosParamCreator)(configuration);
520
+ return {
521
+ /**
522
+ *
523
+ * @param {CreateScenarioAnalysisRequestDto} createScenarioAnalysisRequestDto
524
+ * @param {string} [authorization] Bearer Token
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ createScenarioAnalysis: function (createScenarioAnalysisRequestDto, authorization, options) {
529
+ return __awaiter(this, void 0, void 0, function () {
530
+ var localVarAxiosArgs;
531
+ return __generator(this, function (_a) {
532
+ switch (_a.label) {
533
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createScenarioAnalysis(createScenarioAnalysisRequestDto, authorization, options)];
534
+ case 1:
535
+ localVarAxiosArgs = _a.sent();
536
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
537
+ }
538
+ });
539
+ });
540
+ },
541
+ /**
542
+ *
543
+ * @param {number} id
544
+ * @param {string} [authorization] Bearer Token
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ */
548
+ deleteScenarioAnalysis: function (id, authorization, options) {
549
+ return __awaiter(this, void 0, void 0, function () {
550
+ var localVarAxiosArgs;
551
+ return __generator(this, function (_a) {
552
+ switch (_a.label) {
553
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteScenarioAnalysis(id, authorization, options)];
554
+ case 1:
555
+ localVarAxiosArgs = _a.sent();
556
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
557
+ }
558
+ });
559
+ });
560
+ },
561
+ /**
562
+ *
563
+ * @param {string} code
564
+ * @param {string} code2 code
565
+ * @param {string} [authorization] Bearer Token
566
+ * @param {string} [expand] Fields to expand response by
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ */
570
+ getScenarioAnalysis: function (code, code2, authorization, expand, options) {
571
+ return __awaiter(this, void 0, void 0, function () {
572
+ var localVarAxiosArgs;
573
+ return __generator(this, function (_a) {
574
+ switch (_a.label) {
575
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioAnalysis(code, code2, authorization, expand, options)];
576
+ case 1:
577
+ localVarAxiosArgs = _a.sent();
578
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
579
+ }
580
+ });
581
+ });
582
+ },
583
+ /**
584
+ *
585
+ * @param {string} [authorization] Bearer Token
586
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ */
590
+ listChannels: function (authorization, product, options) {
591
+ return __awaiter(this, void 0, void 0, function () {
592
+ var localVarAxiosArgs;
593
+ return __generator(this, function (_a) {
594
+ switch (_a.label) {
595
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listChannels(authorization, product, options)];
596
+ case 1:
597
+ localVarAxiosArgs = _a.sent();
598
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
599
+ }
600
+ });
601
+ });
602
+ },
603
+ /**
604
+ *
605
+ * @param {string} [authorization] Bearer Token
606
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ listInsuranceCompanies: function (authorization, product, options) {
611
+ return __awaiter(this, void 0, void 0, function () {
612
+ var localVarAxiosArgs;
613
+ return __generator(this, function (_a) {
614
+ switch (_a.label) {
615
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInsuranceCompanies(authorization, product, options)];
616
+ case 1:
617
+ localVarAxiosArgs = _a.sent();
618
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
619
+ }
620
+ });
621
+ });
622
+ },
623
+ /**
624
+ *
625
+ * @param {string} [authorization] Bearer Token
626
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
627
+ * @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.
628
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
629
+ * @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.
630
+ * @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.
631
+ * @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.
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ */
635
+ listScenarioAnalyses: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
636
+ return __awaiter(this, void 0, void 0, function () {
637
+ var localVarAxiosArgs;
638
+ return __generator(this, function (_a) {
639
+ switch (_a.label) {
640
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listScenarioAnalyses(authorization, pageSize, pageToken, filter, search, order, expand, options)];
641
+ case 1:
642
+ localVarAxiosArgs = _a.sent();
643
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
644
+ }
645
+ });
646
+ });
647
+ },
648
+ /**
649
+ *
650
+ * @param {string} [authorization] Bearer Token
651
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ */
655
+ listScenarioAnalysisDates: function (authorization, product, options) {
656
+ return __awaiter(this, void 0, void 0, function () {
657
+ var localVarAxiosArgs;
658
+ return __generator(this, function (_a) {
659
+ switch (_a.label) {
660
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listScenarioAnalysisDates(authorization, product, options)];
661
+ case 1:
662
+ localVarAxiosArgs = _a.sent();
663
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
664
+ }
665
+ });
666
+ });
667
+ },
668
+ /**
669
+ *
670
+ * @param {string} code
671
+ * @param {UpdateScenarioAnalysisRequestDto} updateScenarioAnalysisRequestDto
672
+ * @param {string} [authorization] Bearer Token
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ updateScenarioAnalysis: function (code, updateScenarioAnalysisRequestDto, authorization, options) {
677
+ return __awaiter(this, void 0, void 0, function () {
678
+ var localVarAxiosArgs;
679
+ return __generator(this, function (_a) {
680
+ switch (_a.label) {
681
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateScenarioAnalysis(code, updateScenarioAnalysisRequestDto, authorization, options)];
682
+ case 1:
683
+ localVarAxiosArgs = _a.sent();
684
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
685
+ }
686
+ });
687
+ });
688
+ },
689
+ };
690
+ };
691
+ exports.ScenarioAnalysisApiFp = ScenarioAnalysisApiFp;
692
+ /**
693
+ * ScenarioAnalysisApi - factory interface
694
+ * @export
695
+ */
696
+ var ScenarioAnalysisApiFactory = function (configuration, basePath, axios) {
697
+ var localVarFp = (0, exports.ScenarioAnalysisApiFp)(configuration);
698
+ return {
699
+ /**
700
+ *
701
+ * @param {CreateScenarioAnalysisRequestDto} createScenarioAnalysisRequestDto
702
+ * @param {string} [authorization] Bearer Token
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ createScenarioAnalysis: function (createScenarioAnalysisRequestDto, authorization, options) {
707
+ return localVarFp.createScenarioAnalysis(createScenarioAnalysisRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
708
+ },
709
+ /**
710
+ *
711
+ * @param {number} id
712
+ * @param {string} [authorization] Bearer Token
713
+ * @param {*} [options] Override http request option.
714
+ * @throws {RequiredError}
715
+ */
716
+ deleteScenarioAnalysis: function (id, authorization, options) {
717
+ return localVarFp.deleteScenarioAnalysis(id, authorization, options).then(function (request) { return request(axios, basePath); });
718
+ },
719
+ /**
720
+ *
721
+ * @param {string} code
722
+ * @param {string} code2 code
723
+ * @param {string} [authorization] Bearer Token
724
+ * @param {string} [expand] Fields to expand response by
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ getScenarioAnalysis: function (code, code2, authorization, expand, options) {
729
+ return localVarFp.getScenarioAnalysis(code, code2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
730
+ },
731
+ /**
732
+ *
733
+ * @param {string} [authorization] Bearer Token
734
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
735
+ * @param {*} [options] Override http request option.
736
+ * @throws {RequiredError}
737
+ */
738
+ listChannels: function (authorization, product, options) {
739
+ return localVarFp.listChannels(authorization, product, options).then(function (request) { return request(axios, basePath); });
740
+ },
741
+ /**
742
+ *
743
+ * @param {string} [authorization] Bearer Token
744
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ listInsuranceCompanies: function (authorization, product, options) {
749
+ return localVarFp.listInsuranceCompanies(authorization, product, options).then(function (request) { return request(axios, basePath); });
750
+ },
751
+ /**
752
+ *
753
+ * @param {string} [authorization] Bearer Token
754
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
755
+ * @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.
756
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
757
+ * @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.
758
+ * @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.
759
+ * @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.
760
+ * @param {*} [options] Override http request option.
761
+ * @throws {RequiredError}
762
+ */
763
+ listScenarioAnalyses: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
764
+ return localVarFp.listScenarioAnalyses(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
765
+ },
766
+ /**
767
+ *
768
+ * @param {string} [authorization] Bearer Token
769
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ */
773
+ listScenarioAnalysisDates: function (authorization, product, options) {
774
+ return localVarFp.listScenarioAnalysisDates(authorization, product, options).then(function (request) { return request(axios, basePath); });
775
+ },
776
+ /**
777
+ *
778
+ * @param {string} code
779
+ * @param {UpdateScenarioAnalysisRequestDto} updateScenarioAnalysisRequestDto
780
+ * @param {string} [authorization] Bearer Token
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ */
784
+ updateScenarioAnalysis: function (code, updateScenarioAnalysisRequestDto, authorization, options) {
785
+ return localVarFp.updateScenarioAnalysis(code, updateScenarioAnalysisRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
786
+ },
787
+ };
788
+ };
789
+ exports.ScenarioAnalysisApiFactory = ScenarioAnalysisApiFactory;
790
+ /**
791
+ * ScenarioAnalysisApi - object-oriented interface
792
+ * @export
793
+ * @class ScenarioAnalysisApi
794
+ * @extends {BaseAPI}
795
+ */
796
+ var ScenarioAnalysisApi = /** @class */ (function (_super) {
797
+ __extends(ScenarioAnalysisApi, _super);
798
+ function ScenarioAnalysisApi() {
799
+ return _super !== null && _super.apply(this, arguments) || this;
800
+ }
801
+ /**
802
+ *
803
+ * @param {ScenarioAnalysisApiCreateScenarioAnalysisRequest} requestParameters Request parameters.
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ * @memberof ScenarioAnalysisApi
807
+ */
808
+ ScenarioAnalysisApi.prototype.createScenarioAnalysis = function (requestParameters, options) {
809
+ var _this = this;
810
+ return (0, exports.ScenarioAnalysisApiFp)(this.configuration).createScenarioAnalysis(requestParameters.createScenarioAnalysisRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
811
+ };
812
+ /**
813
+ *
814
+ * @param {ScenarioAnalysisApiDeleteScenarioAnalysisRequest} requestParameters Request parameters.
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ * @memberof ScenarioAnalysisApi
818
+ */
819
+ ScenarioAnalysisApi.prototype.deleteScenarioAnalysis = function (requestParameters, options) {
820
+ var _this = this;
821
+ return (0, exports.ScenarioAnalysisApiFp)(this.configuration).deleteScenarioAnalysis(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
822
+ };
823
+ /**
824
+ *
825
+ * @param {ScenarioAnalysisApiGetScenarioAnalysisRequest} requestParameters Request parameters.
826
+ * @param {*} [options] Override http request option.
827
+ * @throws {RequiredError}
828
+ * @memberof ScenarioAnalysisApi
829
+ */
830
+ ScenarioAnalysisApi.prototype.getScenarioAnalysis = function (requestParameters, options) {
831
+ var _this = this;
832
+ return (0, exports.ScenarioAnalysisApiFp)(this.configuration).getScenarioAnalysis(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
833
+ };
834
+ /**
835
+ *
836
+ * @param {ScenarioAnalysisApiListChannelsRequest} requestParameters Request parameters.
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ * @memberof ScenarioAnalysisApi
840
+ */
841
+ ScenarioAnalysisApi.prototype.listChannels = function (requestParameters, options) {
842
+ var _this = this;
843
+ if (requestParameters === void 0) { requestParameters = {}; }
844
+ return (0, exports.ScenarioAnalysisApiFp)(this.configuration).listChannels(requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
845
+ };
846
+ /**
847
+ *
848
+ * @param {ScenarioAnalysisApiListInsuranceCompaniesRequest} requestParameters Request parameters.
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ * @memberof ScenarioAnalysisApi
852
+ */
853
+ ScenarioAnalysisApi.prototype.listInsuranceCompanies = function (requestParameters, options) {
854
+ var _this = this;
855
+ if (requestParameters === void 0) { requestParameters = {}; }
856
+ return (0, exports.ScenarioAnalysisApiFp)(this.configuration).listInsuranceCompanies(requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
857
+ };
858
+ /**
859
+ *
860
+ * @param {ScenarioAnalysisApiListScenarioAnalysesRequest} requestParameters Request parameters.
861
+ * @param {*} [options] Override http request option.
862
+ * @throws {RequiredError}
863
+ * @memberof ScenarioAnalysisApi
864
+ */
865
+ ScenarioAnalysisApi.prototype.listScenarioAnalyses = function (requestParameters, options) {
866
+ var _this = this;
867
+ if (requestParameters === void 0) { requestParameters = {}; }
868
+ return (0, exports.ScenarioAnalysisApiFp)(this.configuration).listScenarioAnalyses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
869
+ };
870
+ /**
871
+ *
872
+ * @param {ScenarioAnalysisApiListScenarioAnalysisDatesRequest} requestParameters Request parameters.
873
+ * @param {*} [options] Override http request option.
874
+ * @throws {RequiredError}
875
+ * @memberof ScenarioAnalysisApi
876
+ */
877
+ ScenarioAnalysisApi.prototype.listScenarioAnalysisDates = function (requestParameters, options) {
878
+ var _this = this;
879
+ if (requestParameters === void 0) { requestParameters = {}; }
880
+ return (0, exports.ScenarioAnalysisApiFp)(this.configuration).listScenarioAnalysisDates(requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
881
+ };
882
+ /**
883
+ *
884
+ * @param {ScenarioAnalysisApiUpdateScenarioAnalysisRequest} requestParameters Request parameters.
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ * @memberof ScenarioAnalysisApi
888
+ */
889
+ ScenarioAnalysisApi.prototype.updateScenarioAnalysis = function (requestParameters, options) {
890
+ var _this = this;
891
+ return (0, exports.ScenarioAnalysisApiFp)(this.configuration).updateScenarioAnalysis(requestParameters.code, requestParameters.updateScenarioAnalysisRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
892
+ };
893
+ return ScenarioAnalysisApi;
894
+ }(base_1.BaseAPI));
895
+ exports.ScenarioAnalysisApi = ScenarioAnalysisApi;