@emilgroup/insurance-sdk-node 1.52.0 → 1.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/.openapi-generator/FILES +33 -1
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +710 -0
  4. package/api/commission-agreement-versions-api.ts +592 -0
  5. package/api/commission-agreements-api.ts +697 -0
  6. package/api/commission-recipients-api.ts +696 -0
  7. package/api/{default-api.ts → health-check-api.ts} +21 -17
  8. package/api/insured-objects-api.ts +5 -2
  9. package/api/policies-api.ts +176 -221
  10. package/api.ts +10 -2
  11. package/dist/api/commission-agreement-products-api.d.ts +403 -0
  12. package/dist/api/commission-agreement-products-api.js +652 -0
  13. package/dist/api/commission-agreement-versions-api.d.ts +337 -0
  14. package/dist/api/commission-agreement-versions-api.js +555 -0
  15. package/dist/api/commission-agreements-api.d.ts +394 -0
  16. package/dist/api/commission-agreements-api.js +646 -0
  17. package/dist/api/commission-recipients-api.d.ts +394 -0
  18. package/dist/api/commission-recipients-api.js +646 -0
  19. package/dist/api/health-check-api.d.ts +70 -0
  20. package/dist/api/{default-api.js → health-check-api.js} +30 -26
  21. package/dist/api/insured-objects-api.js +4 -2
  22. package/dist/api/policies-api.d.ts +134 -161
  23. package/dist/api/policies-api.js +129 -151
  24. package/dist/api.d.ts +5 -1
  25. package/dist/api.js +5 -1
  26. package/dist/models/commission-agreement-class.d.ts +89 -0
  27. package/dist/models/commission-agreement-class.js +23 -0
  28. package/dist/models/commission-agreement-item-class.d.ts +66 -0
  29. package/dist/models/commission-agreement-item-class.js +15 -0
  30. package/dist/models/commission-agreement-product-class.d.ts +72 -0
  31. package/dist/models/commission-agreement-product-class.js +15 -0
  32. package/dist/models/commission-agreement-version-class.d.ts +79 -0
  33. package/dist/models/commission-agreement-version-class.js +15 -0
  34. package/dist/models/commission-recipient-class.d.ts +78 -0
  35. package/dist/models/commission-recipient-class.js +15 -0
  36. package/dist/models/create-commission-agreement-item-dto.d.ts +36 -0
  37. package/dist/models/create-commission-agreement-item-dto.js +15 -0
  38. package/dist/models/create-commission-agreement-product-request-dto.d.ts +42 -0
  39. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  40. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  41. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  42. package/dist/models/create-commission-agreement-request-dto.d.ts +75 -0
  43. package/dist/models/create-commission-agreement-request-dto.js +23 -0
  44. package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
  45. package/dist/models/create-commission-agreement-response-class.js +15 -0
  46. package/dist/models/create-commission-agreement-version-request-dto.d.ts +49 -0
  47. package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
  48. package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
  49. package/dist/models/create-commission-agreement-version-response-class.js +15 -0
  50. package/dist/models/create-commission-recipient-request-dto.d.ts +48 -0
  51. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  52. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  53. package/dist/models/create-commission-recipient-response-class.js +15 -0
  54. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  55. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  56. package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
  57. package/dist/models/get-commission-agreement-response-class.js +15 -0
  58. package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
  59. package/dist/models/get-commission-agreement-version-response-class.js +15 -0
  60. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  61. package/dist/models/get-commission-recipient-response-class.js +15 -0
  62. package/dist/models/index.d.ts +28 -0
  63. package/dist/models/index.js +28 -0
  64. package/dist/models/list-commission-agreement-products-response-class.d.ts +31 -0
  65. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  66. package/dist/models/list-commission-agreement-versions-response-class.d.ts +31 -0
  67. package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
  68. package/dist/models/list-commission-agreements-response-class.d.ts +31 -0
  69. package/dist/models/list-commission-agreements-response-class.js +15 -0
  70. package/dist/models/list-commission-recipients-response-class.d.ts +31 -0
  71. package/dist/models/list-commission-recipients-response-class.js +15 -0
  72. package/dist/models/update-commission-agreement-product-request-dto.d.ts +42 -0
  73. package/dist/models/update-commission-agreement-product-request-dto.js +15 -0
  74. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  75. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  76. package/dist/models/update-commission-agreement-request-dto.d.ts +44 -0
  77. package/dist/models/update-commission-agreement-request-dto.js +23 -0
  78. package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
  79. package/dist/models/update-commission-agreement-response-class.js +15 -0
  80. package/dist/models/update-commission-recipient-request-dto.d.ts +48 -0
  81. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  82. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  83. package/dist/models/update-commission-recipient-response-class.js +15 -0
  84. package/models/commission-agreement-class.ts +98 -0
  85. package/models/commission-agreement-item-class.ts +72 -0
  86. package/models/commission-agreement-product-class.ts +78 -0
  87. package/models/commission-agreement-version-class.ts +85 -0
  88. package/models/commission-recipient-class.ts +84 -0
  89. package/models/create-commission-agreement-item-dto.ts +42 -0
  90. package/models/create-commission-agreement-product-request-dto.ts +48 -0
  91. package/models/create-commission-agreement-product-response-class.ts +31 -0
  92. package/models/create-commission-agreement-request-dto.ts +84 -0
  93. package/models/create-commission-agreement-response-class.ts +31 -0
  94. package/models/create-commission-agreement-version-request-dto.ts +55 -0
  95. package/models/create-commission-agreement-version-response-class.ts +31 -0
  96. package/models/create-commission-recipient-request-dto.ts +54 -0
  97. package/models/create-commission-recipient-response-class.ts +31 -0
  98. package/models/get-commission-agreement-product-response-class.ts +31 -0
  99. package/models/get-commission-agreement-response-class.ts +31 -0
  100. package/models/get-commission-agreement-version-response-class.ts +31 -0
  101. package/models/get-commission-recipient-response-class.ts +31 -0
  102. package/models/index.ts +28 -0
  103. package/models/list-commission-agreement-products-response-class.ts +37 -0
  104. package/models/list-commission-agreement-versions-response-class.ts +37 -0
  105. package/models/list-commission-agreements-response-class.ts +37 -0
  106. package/models/list-commission-recipients-response-class.ts +37 -0
  107. package/models/update-commission-agreement-product-request-dto.ts +48 -0
  108. package/models/update-commission-agreement-product-response-class.ts +31 -0
  109. package/models/update-commission-agreement-request-dto.ts +53 -0
  110. package/models/update-commission-agreement-response-class.ts +31 -0
  111. package/models/update-commission-recipient-request-dto.ts +54 -0
  112. package/models/update-commission-recipient-response-class.ts +31 -0
  113. package/package.json +1 -1
  114. package/dist/api/default-api.d.ts +0 -66
@@ -0,0 +1,555 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL InsuranceService
6
+ * The EMIL InsuranceService 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.CommissionAgreementVersionsApi = exports.CommissionAgreementVersionsApiFactory = exports.CommissionAgreementVersionsApiFp = exports.CommissionAgreementVersionsApiAxiosParamCreator = 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
+ * CommissionAgreementVersionsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var CommissionAgreementVersionsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This will create the commission agreement version.
101
+ * @summary Create the Commission agreement version
102
+ * @param {string} code
103
+ * @param {CreateCommissionAgreementVersionRequestDto} createCommissionAgreementVersionRequestDto
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ createCommissionAgreementVersion: function (code, createCommissionAgreementVersionRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'code' is not null or undefined
116
+ (0, common_1.assertParamExists)('createCommissionAgreementVersion', 'code', code);
117
+ // verify required parameter 'createCommissionAgreementVersionRequestDto' is not null or undefined
118
+ (0, common_1.assertParamExists)('createCommissionAgreementVersion', 'createCommissionAgreementVersionRequestDto', createCommissionAgreementVersionRequestDto);
119
+ localVarPath = "/insuranceservice/v1/commission-agreements/{code}/versions"
120
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCommissionAgreementVersionRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ /**
153
+ * Permanently deletes the commission agreement version. Supply the unique code that was returned when you created the commission agreement version and this will delete it.
154
+ * @summary Delete the commission agreement version
155
+ * @param {string} code
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ deleteCommissionAgreementVersion: function (code, authorization, options) {
161
+ if (options === void 0) { options = {}; }
162
+ return __awaiter(_this, void 0, void 0, function () {
163
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
164
+ return __generator(this, function (_a) {
165
+ switch (_a.label) {
166
+ case 0:
167
+ // verify required parameter 'code' is not null or undefined
168
+ (0, common_1.assertParamExists)('deleteCommissionAgreementVersion', 'code', code);
169
+ localVarPath = "/insuranceservice/v1/commission-agreements/versions/{code}"
170
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
171
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
172
+ if (configuration) {
173
+ baseOptions = configuration.baseOptions;
174
+ baseAccessToken = configuration.accessToken;
175
+ }
176
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
177
+ localVarHeaderParameter = {};
178
+ localVarQueryParameter = {};
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
+ case 1:
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ _a.sent();
186
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ }
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ return [2 /*return*/, {
193
+ url: (0, common_1.toPathString)(localVarUrlObj),
194
+ options: localVarRequestOptions,
195
+ }];
196
+ }
197
+ });
198
+ });
199
+ },
200
+ /**
201
+ * Retrieves the details of the commission agreement version that was previously created. Supply the unique commission agreement version code that was returned when you created it and Emil Api will return the corresponding commission agreement version information.
202
+ * @summary Retrieve the commission agreement version
203
+ * @param {string} code
204
+ * @param {string} expand
205
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ getCommissionAgreementVersion: function (code, expand, authorization, options) {
210
+ if (options === void 0) { options = {}; }
211
+ return __awaiter(_this, void 0, void 0, function () {
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ return __generator(this, function (_a) {
214
+ switch (_a.label) {
215
+ case 0:
216
+ // verify required parameter 'code' is not null or undefined
217
+ (0, common_1.assertParamExists)('getCommissionAgreementVersion', 'code', code);
218
+ // verify required parameter 'expand' is not null or undefined
219
+ (0, common_1.assertParamExists)('getCommissionAgreementVersion', 'expand', expand);
220
+ localVarPath = "/insuranceservice/v1/commission-agreements/versions/{code}"
221
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
222
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
223
+ if (configuration) {
224
+ baseOptions = configuration.baseOptions;
225
+ baseAccessToken = configuration.accessToken;
226
+ }
227
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
228
+ localVarHeaderParameter = {};
229
+ localVarQueryParameter = {};
230
+ // authentication bearer required
231
+ // http bearer authentication required
232
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
233
+ case 1:
234
+ // authentication bearer required
235
+ // http bearer authentication required
236
+ _a.sent();
237
+ if (expand !== undefined) {
238
+ localVarQueryParameter['expand'] = expand;
239
+ }
240
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
241
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ }
243
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
244
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
245
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
246
+ return [2 /*return*/, {
247
+ url: (0, common_1.toPathString)(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ }];
250
+ }
251
+ });
252
+ });
253
+ },
254
+ /**
255
+ * Returns a list of commission agreement versions you have previously created. The commission agreement versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
256
+ * @summary List commission agreement versions
257
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
258
+ * @param {number} [pageSize] Page size.
259
+ * @param {string} [pageToken] Page token.
260
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, description, commissionAgreementId&lt;/i&gt;
261
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: versionDescription, code&lt;/i&gt;
262
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
263
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
264
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, description, commissionAgreementId&lt;/i&gt;
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ listCommissionAgreementVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
269
+ if (options === void 0) { options = {}; }
270
+ return __awaiter(_this, void 0, void 0, function () {
271
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
272
+ return __generator(this, function (_a) {
273
+ switch (_a.label) {
274
+ case 0:
275
+ localVarPath = "/insuranceservice/v1/commission-agreements/versions";
276
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
277
+ if (configuration) {
278
+ baseOptions = configuration.baseOptions;
279
+ baseAccessToken = configuration.accessToken;
280
+ }
281
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
282
+ localVarHeaderParameter = {};
283
+ localVarQueryParameter = {};
284
+ // authentication bearer required
285
+ // http bearer authentication required
286
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
287
+ case 1:
288
+ // authentication bearer required
289
+ // http bearer authentication required
290
+ _a.sent();
291
+ if (pageSize !== undefined) {
292
+ localVarQueryParameter['pageSize'] = pageSize;
293
+ }
294
+ if (pageToken !== undefined) {
295
+ localVarQueryParameter['pageToken'] = pageToken;
296
+ }
297
+ if (filter !== undefined) {
298
+ localVarQueryParameter['filter'] = filter;
299
+ }
300
+ if (search !== undefined) {
301
+ localVarQueryParameter['search'] = search;
302
+ }
303
+ if (order !== undefined) {
304
+ localVarQueryParameter['order'] = order;
305
+ }
306
+ if (expand !== undefined) {
307
+ localVarQueryParameter['expand'] = expand;
308
+ }
309
+ if (filters !== undefined) {
310
+ localVarQueryParameter['filters'] = filters;
311
+ }
312
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
313
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
314
+ }
315
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
316
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
317
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
318
+ return [2 /*return*/, {
319
+ url: (0, common_1.toPathString)(localVarUrlObj),
320
+ options: localVarRequestOptions,
321
+ }];
322
+ }
323
+ });
324
+ });
325
+ },
326
+ };
327
+ };
328
+ exports.CommissionAgreementVersionsApiAxiosParamCreator = CommissionAgreementVersionsApiAxiosParamCreator;
329
+ /**
330
+ * CommissionAgreementVersionsApi - functional programming interface
331
+ * @export
332
+ */
333
+ var CommissionAgreementVersionsApiFp = function (configuration) {
334
+ var localVarAxiosParamCreator = (0, exports.CommissionAgreementVersionsApiAxiosParamCreator)(configuration);
335
+ return {
336
+ /**
337
+ * This will create the commission agreement version.
338
+ * @summary Create the Commission agreement version
339
+ * @param {string} code
340
+ * @param {CreateCommissionAgreementVersionRequestDto} createCommissionAgreementVersionRequestDto
341
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ createCommissionAgreementVersion: function (code, createCommissionAgreementVersionRequestDto, authorization, options) {
346
+ return __awaiter(this, void 0, void 0, function () {
347
+ var localVarAxiosArgs;
348
+ return __generator(this, function (_a) {
349
+ switch (_a.label) {
350
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCommissionAgreementVersion(code, createCommissionAgreementVersionRequestDto, authorization, options)];
351
+ case 1:
352
+ localVarAxiosArgs = _a.sent();
353
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
354
+ }
355
+ });
356
+ });
357
+ },
358
+ /**
359
+ * Permanently deletes the commission agreement version. Supply the unique code that was returned when you created the commission agreement version and this will delete it.
360
+ * @summary Delete the commission agreement version
361
+ * @param {string} code
362
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ deleteCommissionAgreementVersion: function (code, authorization, options) {
367
+ return __awaiter(this, void 0, void 0, function () {
368
+ var localVarAxiosArgs;
369
+ return __generator(this, function (_a) {
370
+ switch (_a.label) {
371
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCommissionAgreementVersion(code, authorization, options)];
372
+ case 1:
373
+ localVarAxiosArgs = _a.sent();
374
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
375
+ }
376
+ });
377
+ });
378
+ },
379
+ /**
380
+ * Retrieves the details of the commission agreement version that was previously created. Supply the unique commission agreement version code that was returned when you created it and Emil Api will return the corresponding commission agreement version information.
381
+ * @summary Retrieve the commission agreement version
382
+ * @param {string} code
383
+ * @param {string} expand
384
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ getCommissionAgreementVersion: function (code, expand, authorization, options) {
389
+ return __awaiter(this, void 0, void 0, function () {
390
+ var localVarAxiosArgs;
391
+ return __generator(this, function (_a) {
392
+ switch (_a.label) {
393
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCommissionAgreementVersion(code, expand, authorization, options)];
394
+ case 1:
395
+ localVarAxiosArgs = _a.sent();
396
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
397
+ }
398
+ });
399
+ });
400
+ },
401
+ /**
402
+ * Returns a list of commission agreement versions you have previously created. The commission agreement versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
403
+ * @summary List commission agreement versions
404
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
405
+ * @param {number} [pageSize] Page size.
406
+ * @param {string} [pageToken] Page token.
407
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, description, commissionAgreementId&lt;/i&gt;
408
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: versionDescription, code&lt;/i&gt;
409
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
410
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
411
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, description, commissionAgreementId&lt;/i&gt;
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ listCommissionAgreementVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
416
+ return __awaiter(this, void 0, void 0, function () {
417
+ var localVarAxiosArgs;
418
+ return __generator(this, function (_a) {
419
+ switch (_a.label) {
420
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
421
+ case 1:
422
+ localVarAxiosArgs = _a.sent();
423
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
424
+ }
425
+ });
426
+ });
427
+ },
428
+ };
429
+ };
430
+ exports.CommissionAgreementVersionsApiFp = CommissionAgreementVersionsApiFp;
431
+ /**
432
+ * CommissionAgreementVersionsApi - factory interface
433
+ * @export
434
+ */
435
+ var CommissionAgreementVersionsApiFactory = function (configuration, basePath, axios) {
436
+ var localVarFp = (0, exports.CommissionAgreementVersionsApiFp)(configuration);
437
+ return {
438
+ /**
439
+ * This will create the commission agreement version.
440
+ * @summary Create the Commission agreement version
441
+ * @param {string} code
442
+ * @param {CreateCommissionAgreementVersionRequestDto} createCommissionAgreementVersionRequestDto
443
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ createCommissionAgreementVersion: function (code, createCommissionAgreementVersionRequestDto, authorization, options) {
448
+ return localVarFp.createCommissionAgreementVersion(code, createCommissionAgreementVersionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
449
+ },
450
+ /**
451
+ * Permanently deletes the commission agreement version. Supply the unique code that was returned when you created the commission agreement version and this will delete it.
452
+ * @summary Delete the commission agreement version
453
+ * @param {string} code
454
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ deleteCommissionAgreementVersion: function (code, authorization, options) {
459
+ return localVarFp.deleteCommissionAgreementVersion(code, authorization, options).then(function (request) { return request(axios, basePath); });
460
+ },
461
+ /**
462
+ * Retrieves the details of the commission agreement version that was previously created. Supply the unique commission agreement version code that was returned when you created it and Emil Api will return the corresponding commission agreement version information.
463
+ * @summary Retrieve the commission agreement version
464
+ * @param {string} code
465
+ * @param {string} expand
466
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ getCommissionAgreementVersion: function (code, expand, authorization, options) {
471
+ return localVarFp.getCommissionAgreementVersion(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
472
+ },
473
+ /**
474
+ * Returns a list of commission agreement versions you have previously created. The commission agreement versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
475
+ * @summary List commission agreement versions
476
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
477
+ * @param {number} [pageSize] Page size.
478
+ * @param {string} [pageToken] Page token.
479
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, description, commissionAgreementId&lt;/i&gt;
480
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: versionDescription, code&lt;/i&gt;
481
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
482
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
483
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, description, commissionAgreementId&lt;/i&gt;
484
+ * @param {*} [options] Override http request option.
485
+ * @throws {RequiredError}
486
+ */
487
+ listCommissionAgreementVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
488
+ return localVarFp.listCommissionAgreementVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
489
+ },
490
+ };
491
+ };
492
+ exports.CommissionAgreementVersionsApiFactory = CommissionAgreementVersionsApiFactory;
493
+ /**
494
+ * CommissionAgreementVersionsApi - object-oriented interface
495
+ * @export
496
+ * @class CommissionAgreementVersionsApi
497
+ * @extends {BaseAPI}
498
+ */
499
+ var CommissionAgreementVersionsApi = /** @class */ (function (_super) {
500
+ __extends(CommissionAgreementVersionsApi, _super);
501
+ function CommissionAgreementVersionsApi() {
502
+ return _super !== null && _super.apply(this, arguments) || this;
503
+ }
504
+ /**
505
+ * This will create the commission agreement version.
506
+ * @summary Create the Commission agreement version
507
+ * @param {CommissionAgreementVersionsApiCreateCommissionAgreementVersionRequest} requestParameters Request parameters.
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ * @memberof CommissionAgreementVersionsApi
511
+ */
512
+ CommissionAgreementVersionsApi.prototype.createCommissionAgreementVersion = function (requestParameters, options) {
513
+ var _this = this;
514
+ return (0, exports.CommissionAgreementVersionsApiFp)(this.configuration).createCommissionAgreementVersion(requestParameters.code, requestParameters.createCommissionAgreementVersionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
515
+ };
516
+ /**
517
+ * Permanently deletes the commission agreement version. Supply the unique code that was returned when you created the commission agreement version and this will delete it.
518
+ * @summary Delete the commission agreement version
519
+ * @param {CommissionAgreementVersionsApiDeleteCommissionAgreementVersionRequest} requestParameters Request parameters.
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ * @memberof CommissionAgreementVersionsApi
523
+ */
524
+ CommissionAgreementVersionsApi.prototype.deleteCommissionAgreementVersion = function (requestParameters, options) {
525
+ var _this = this;
526
+ return (0, exports.CommissionAgreementVersionsApiFp)(this.configuration).deleteCommissionAgreementVersion(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
527
+ };
528
+ /**
529
+ * Retrieves the details of the commission agreement version that was previously created. Supply the unique commission agreement version code that was returned when you created it and Emil Api will return the corresponding commission agreement version information.
530
+ * @summary Retrieve the commission agreement version
531
+ * @param {CommissionAgreementVersionsApiGetCommissionAgreementVersionRequest} requestParameters Request parameters.
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ * @memberof CommissionAgreementVersionsApi
535
+ */
536
+ CommissionAgreementVersionsApi.prototype.getCommissionAgreementVersion = function (requestParameters, options) {
537
+ var _this = this;
538
+ return (0, exports.CommissionAgreementVersionsApiFp)(this.configuration).getCommissionAgreementVersion(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
539
+ };
540
+ /**
541
+ * Returns a list of commission agreement versions you have previously created. The commission agreement versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
542
+ * @summary List commission agreement versions
543
+ * @param {CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest} requestParameters Request parameters.
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ * @memberof CommissionAgreementVersionsApi
547
+ */
548
+ CommissionAgreementVersionsApi.prototype.listCommissionAgreementVersions = function (requestParameters, options) {
549
+ var _this = this;
550
+ if (requestParameters === void 0) { requestParameters = {}; }
551
+ return (0, exports.CommissionAgreementVersionsApiFp)(this.configuration).listCommissionAgreementVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
552
+ };
553
+ return CommissionAgreementVersionsApi;
554
+ }(base_1.BaseAPI));
555
+ exports.CommissionAgreementVersionsApi = CommissionAgreementVersionsApi;