@emilgroup/commission-sdk 1.0.0-beta.4 → 1.0.0-beta.6

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 (33) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +651 -0
  4. package/api.ts +2 -0
  5. package/dist/api/commission-agreement-products-api.d.ts +366 -0
  6. package/dist/api/commission-agreement-products-api.js +626 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/commission-agreement-product-class.d.ts +78 -0
  10. package/dist/models/commission-agreement-product-class.js +20 -0
  11. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  12. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  13. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  14. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  15. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  16. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  17. package/dist/models/index.d.ts +7 -0
  18. package/dist/models/index.js +7 -0
  19. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  20. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  21. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  22. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  23. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  24. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  25. package/models/commission-agreement-product-class.ts +87 -0
  26. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  27. package/models/create-commission-agreement-product-response-class.ts +31 -0
  28. package/models/get-commission-agreement-product-response-class.ts +31 -0
  29. package/models/index.ts +7 -0
  30. package/models/list-commission-agreement-products-response-class.ts +49 -0
  31. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  32. package/models/update-commission-agreement-product-response-class.ts +31 -0
  33. package/package.json +1 -1
@@ -0,0 +1,626 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CommissionService
6
+ * The EMIL CommissionService 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.CommissionAgreementProductsApi = exports.CommissionAgreementProductsApiFactory = exports.CommissionAgreementProductsApiFp = exports.CommissionAgreementProductsApiAxiosParamCreator = 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
+ /**
89
+ * CommissionAgreementProductsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will create commission agreement product.
97
+ * @summary Create the commission agreement product
98
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createCommissionAgreementProduct: function (createCommissionAgreementProductRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createCommissionAgreementProductRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createCommissionAgreementProduct', 'createCommissionAgreementProductRequestDto', createCommissionAgreementProductRequestDto);
112
+ localVarPath = "/commissionservice/v1/agreement-products";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCommissionAgreementProductRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * This will delete commission agreement product.
146
+ * @summary Delete the commission agreement product
147
+ * @param {string} code Unique identifier for the object.
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ deleteCommissionAgreementProduct: function (code, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'code' is not null or undefined
160
+ (0, common_1.assertParamExists)('deleteCommissionAgreementProduct', 'code', code);
161
+ localVarPath = "/commissionservice/v1/agreement-products/{code}"
162
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ baseAccessToken = configuration.accessToken;
167
+ }
168
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
169
+ localVarHeaderParameter = {};
170
+ localVarQueryParameter = {};
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ case 1:
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ return [2 /*return*/, {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ }];
188
+ }
189
+ });
190
+ });
191
+ },
192
+ /**
193
+ * This will get commission agreement product.
194
+ * @summary Retrieve the commission agreement product
195
+ * @param {string} code
196
+ * @param {string} expand
197
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ getCommissionAgreementProduct: function (code, expand, authorization, options) {
202
+ if (options === void 0) { options = {}; }
203
+ return __awaiter(_this, void 0, void 0, function () {
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
+ return __generator(this, function (_a) {
206
+ switch (_a.label) {
207
+ case 0:
208
+ // verify required parameter 'code' is not null or undefined
209
+ (0, common_1.assertParamExists)('getCommissionAgreementProduct', 'code', code);
210
+ // verify required parameter 'expand' is not null or undefined
211
+ (0, common_1.assertParamExists)('getCommissionAgreementProduct', 'expand', expand);
212
+ localVarPath = "/commissionservice/v1/agreement-products/{code}"
213
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
214
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ baseAccessToken = configuration.accessToken;
218
+ }
219
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
220
+ localVarHeaderParameter = {};
221
+ localVarQueryParameter = {};
222
+ // authentication bearer required
223
+ // http bearer authentication required
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
225
+ case 1:
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ _a.sent();
229
+ if (expand !== undefined) {
230
+ localVarQueryParameter['expand'] = expand;
231
+ }
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
+ }
235
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
238
+ return [2 /*return*/, {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ }];
242
+ }
243
+ });
244
+ });
245
+ },
246
+ /**
247
+ * Retrieves a list of commission agreement products.
248
+ * @summary List commission agreement products
249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
+ * @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: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
251
+ * @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: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
252
+ * @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: createdAt, updatedAt, productSlug, status&lt;/i&gt;
253
+ * @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: version&lt;i&gt;
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
258
+ if (options === void 0) { options = {}; }
259
+ return __awaiter(_this, void 0, void 0, function () {
260
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
261
+ return __generator(this, function (_a) {
262
+ switch (_a.label) {
263
+ case 0:
264
+ localVarPath = "/commissionservice/v1/agreement-products";
265
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
266
+ if (configuration) {
267
+ baseOptions = configuration.baseOptions;
268
+ baseAccessToken = configuration.accessToken;
269
+ }
270
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
271
+ localVarHeaderParameter = {};
272
+ localVarQueryParameter = {};
273
+ // authentication bearer required
274
+ // http bearer authentication required
275
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
276
+ case 1:
277
+ // authentication bearer required
278
+ // http bearer authentication required
279
+ _a.sent();
280
+ if (filter !== undefined) {
281
+ localVarQueryParameter['filter'] = filter;
282
+ }
283
+ if (filters !== undefined) {
284
+ localVarQueryParameter['filters'] = filters;
285
+ }
286
+ if (order !== undefined) {
287
+ localVarQueryParameter['order'] = order;
288
+ }
289
+ if (expand !== undefined) {
290
+ localVarQueryParameter['expand'] = expand;
291
+ }
292
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
294
+ }
295
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
296
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
298
+ return [2 /*return*/, {
299
+ url: (0, common_1.toPathString)(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ }];
302
+ }
303
+ });
304
+ });
305
+ },
306
+ /**
307
+ * This will update commission agreement product.
308
+ * @summary Update the commission agreement product
309
+ * @param {string} code Unique identifier for the object.
310
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
311
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ updateCommissionAgreementProduct: function (code, updateCommissionAgreementProductRequestDto, authorization, options) {
316
+ if (options === void 0) { options = {}; }
317
+ return __awaiter(_this, void 0, void 0, function () {
318
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
319
+ return __generator(this, function (_a) {
320
+ switch (_a.label) {
321
+ case 0:
322
+ // verify required parameter 'code' is not null or undefined
323
+ (0, common_1.assertParamExists)('updateCommissionAgreementProduct', 'code', code);
324
+ // verify required parameter 'updateCommissionAgreementProductRequestDto' is not null or undefined
325
+ (0, common_1.assertParamExists)('updateCommissionAgreementProduct', 'updateCommissionAgreementProductRequestDto', updateCommissionAgreementProductRequestDto);
326
+ localVarPath = "/commissionservice/v1/agreement-products/{code}"
327
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
328
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
329
+ if (configuration) {
330
+ baseOptions = configuration.baseOptions;
331
+ baseAccessToken = configuration.accessToken;
332
+ }
333
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
334
+ localVarHeaderParameter = {};
335
+ localVarQueryParameter = {};
336
+ // authentication bearer required
337
+ // http bearer authentication required
338
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
339
+ case 1:
340
+ // authentication bearer required
341
+ // http bearer authentication required
342
+ _a.sent();
343
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
344
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
345
+ }
346
+ localVarHeaderParameter['Content-Type'] = 'application/json';
347
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
348
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
349
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
350
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCommissionAgreementProductRequestDto, localVarRequestOptions, configuration);
351
+ return [2 /*return*/, {
352
+ url: (0, common_1.toPathString)(localVarUrlObj),
353
+ options: localVarRequestOptions,
354
+ }];
355
+ }
356
+ });
357
+ });
358
+ },
359
+ };
360
+ };
361
+ exports.CommissionAgreementProductsApiAxiosParamCreator = CommissionAgreementProductsApiAxiosParamCreator;
362
+ /**
363
+ * CommissionAgreementProductsApi - functional programming interface
364
+ * @export
365
+ */
366
+ var CommissionAgreementProductsApiFp = function (configuration) {
367
+ var localVarAxiosParamCreator = (0, exports.CommissionAgreementProductsApiAxiosParamCreator)(configuration);
368
+ return {
369
+ /**
370
+ * This will create commission agreement product.
371
+ * @summary Create the commission agreement product
372
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
373
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ createCommissionAgreementProduct: function (createCommissionAgreementProductRequestDto, authorization, options) {
378
+ return __awaiter(this, void 0, void 0, function () {
379
+ var localVarAxiosArgs;
380
+ return __generator(this, function (_a) {
381
+ switch (_a.label) {
382
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options)];
383
+ case 1:
384
+ localVarAxiosArgs = _a.sent();
385
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
386
+ }
387
+ });
388
+ });
389
+ },
390
+ /**
391
+ * This will delete commission agreement product.
392
+ * @summary Delete the commission agreement product
393
+ * @param {string} code Unique identifier for the object.
394
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ */
398
+ deleteCommissionAgreementProduct: function (code, authorization, options) {
399
+ return __awaiter(this, void 0, void 0, function () {
400
+ var localVarAxiosArgs;
401
+ return __generator(this, function (_a) {
402
+ switch (_a.label) {
403
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCommissionAgreementProduct(code, authorization, options)];
404
+ case 1:
405
+ localVarAxiosArgs = _a.sent();
406
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
407
+ }
408
+ });
409
+ });
410
+ },
411
+ /**
412
+ * This will get commission agreement product.
413
+ * @summary Retrieve the commission agreement product
414
+ * @param {string} code
415
+ * @param {string} expand
416
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ getCommissionAgreementProduct: function (code, expand, authorization, options) {
421
+ return __awaiter(this, void 0, void 0, function () {
422
+ var localVarAxiosArgs;
423
+ return __generator(this, function (_a) {
424
+ switch (_a.label) {
425
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCommissionAgreementProduct(code, expand, authorization, options)];
426
+ case 1:
427
+ localVarAxiosArgs = _a.sent();
428
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
429
+ }
430
+ });
431
+ });
432
+ },
433
+ /**
434
+ * Retrieves a list of commission agreement products.
435
+ * @summary List commission agreement products
436
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
437
+ * @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: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
438
+ * @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: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
439
+ * @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: createdAt, updatedAt, productSlug, status&lt;/i&gt;
440
+ * @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: version&lt;i&gt;
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
445
+ return __awaiter(this, void 0, void 0, function () {
446
+ var localVarAxiosArgs;
447
+ return __generator(this, function (_a) {
448
+ switch (_a.label) {
449
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options)];
450
+ case 1:
451
+ localVarAxiosArgs = _a.sent();
452
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
453
+ }
454
+ });
455
+ });
456
+ },
457
+ /**
458
+ * This will update commission agreement product.
459
+ * @summary Update the commission agreement product
460
+ * @param {string} code Unique identifier for the object.
461
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
462
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ */
466
+ updateCommissionAgreementProduct: function (code, updateCommissionAgreementProductRequestDto, authorization, options) {
467
+ return __awaiter(this, void 0, void 0, function () {
468
+ var localVarAxiosArgs;
469
+ return __generator(this, function (_a) {
470
+ switch (_a.label) {
471
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options)];
472
+ case 1:
473
+ localVarAxiosArgs = _a.sent();
474
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
475
+ }
476
+ });
477
+ });
478
+ },
479
+ };
480
+ };
481
+ exports.CommissionAgreementProductsApiFp = CommissionAgreementProductsApiFp;
482
+ /**
483
+ * CommissionAgreementProductsApi - factory interface
484
+ * @export
485
+ */
486
+ var CommissionAgreementProductsApiFactory = function (configuration, basePath, axios) {
487
+ var localVarFp = (0, exports.CommissionAgreementProductsApiFp)(configuration);
488
+ return {
489
+ /**
490
+ * This will create commission agreement product.
491
+ * @summary Create the commission agreement product
492
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
493
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
494
+ * @param {*} [options] Override http request option.
495
+ * @throws {RequiredError}
496
+ */
497
+ createCommissionAgreementProduct: function (createCommissionAgreementProductRequestDto, authorization, options) {
498
+ return localVarFp.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
499
+ },
500
+ /**
501
+ * This will delete commission agreement product.
502
+ * @summary Delete the commission agreement product
503
+ * @param {string} code Unique identifier for the object.
504
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ deleteCommissionAgreementProduct: function (code, authorization, options) {
509
+ return localVarFp.deleteCommissionAgreementProduct(code, authorization, options).then(function (request) { return request(axios, basePath); });
510
+ },
511
+ /**
512
+ * This will get commission agreement product.
513
+ * @summary Retrieve the commission agreement product
514
+ * @param {string} code
515
+ * @param {string} expand
516
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ */
520
+ getCommissionAgreementProduct: function (code, expand, authorization, options) {
521
+ return localVarFp.getCommissionAgreementProduct(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
522
+ },
523
+ /**
524
+ * Retrieves a list of commission agreement products.
525
+ * @summary List commission agreement products
526
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
527
+ * @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: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
528
+ * @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: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
529
+ * @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: createdAt, updatedAt, productSlug, status&lt;/i&gt;
530
+ * @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: version&lt;i&gt;
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
535
+ return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
536
+ },
537
+ /**
538
+ * This will update commission agreement product.
539
+ * @summary Update the commission agreement product
540
+ * @param {string} code Unique identifier for the object.
541
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
542
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ */
546
+ updateCommissionAgreementProduct: function (code, updateCommissionAgreementProductRequestDto, authorization, options) {
547
+ return localVarFp.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
548
+ },
549
+ };
550
+ };
551
+ exports.CommissionAgreementProductsApiFactory = CommissionAgreementProductsApiFactory;
552
+ /**
553
+ * CommissionAgreementProductsApi - object-oriented interface
554
+ * @export
555
+ * @class CommissionAgreementProductsApi
556
+ * @extends {BaseAPI}
557
+ */
558
+ var CommissionAgreementProductsApi = /** @class */ (function (_super) {
559
+ __extends(CommissionAgreementProductsApi, _super);
560
+ function CommissionAgreementProductsApi() {
561
+ return _super !== null && _super.apply(this, arguments) || this;
562
+ }
563
+ /**
564
+ * This will create commission agreement product.
565
+ * @summary Create the commission agreement product
566
+ * @param {CommissionAgreementProductsApiCreateCommissionAgreementProductRequest} requestParameters Request parameters.
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ * @memberof CommissionAgreementProductsApi
570
+ */
571
+ CommissionAgreementProductsApi.prototype.createCommissionAgreementProduct = function (requestParameters, options) {
572
+ var _this = this;
573
+ return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).createCommissionAgreementProduct(requestParameters.createCommissionAgreementProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
574
+ };
575
+ /**
576
+ * This will delete commission agreement product.
577
+ * @summary Delete the commission agreement product
578
+ * @param {CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest} requestParameters Request parameters.
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ * @memberof CommissionAgreementProductsApi
582
+ */
583
+ CommissionAgreementProductsApi.prototype.deleteCommissionAgreementProduct = function (requestParameters, options) {
584
+ var _this = this;
585
+ return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).deleteCommissionAgreementProduct(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
586
+ };
587
+ /**
588
+ * This will get commission agreement product.
589
+ * @summary Retrieve the commission agreement product
590
+ * @param {CommissionAgreementProductsApiGetCommissionAgreementProductRequest} requestParameters Request parameters.
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ * @memberof CommissionAgreementProductsApi
594
+ */
595
+ CommissionAgreementProductsApi.prototype.getCommissionAgreementProduct = function (requestParameters, options) {
596
+ var _this = this;
597
+ return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).getCommissionAgreementProduct(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
598
+ };
599
+ /**
600
+ * Retrieves a list of commission agreement products.
601
+ * @summary List commission agreement products
602
+ * @param {CommissionAgreementProductsApiListCommissionAgreementProductsRequest} requestParameters Request parameters.
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ * @memberof CommissionAgreementProductsApi
606
+ */
607
+ CommissionAgreementProductsApi.prototype.listCommissionAgreementProducts = function (requestParameters, options) {
608
+ var _this = this;
609
+ if (requestParameters === void 0) { requestParameters = {}; }
610
+ return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
611
+ };
612
+ /**
613
+ * This will update commission agreement product.
614
+ * @summary Update the commission agreement product
615
+ * @param {CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest} requestParameters Request parameters.
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ * @memberof CommissionAgreementProductsApi
619
+ */
620
+ CommissionAgreementProductsApi.prototype.updateCommissionAgreementProduct = function (requestParameters, options) {
621
+ var _this = this;
622
+ return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).updateCommissionAgreementProduct(requestParameters.code, requestParameters.updateCommissionAgreementProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
623
+ };
624
+ return CommissionAgreementProductsApi;
625
+ }(base_1.BaseAPI));
626
+ exports.CommissionAgreementProductsApi = CommissionAgreementProductsApi;
package/dist/api.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/commission-agreement-products-api';
12
13
  export * from './api/commission-agreement-versions-api';
13
14
  export * from './api/commission-agreements-api';
14
15
  export * from './api/commission-recipients-api';
package/dist/api.js CHANGED
@@ -27,6 +27,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/commission-agreement-products-api"), exports);
30
31
  __exportStar(require("./api/commission-agreement-versions-api"), exports);
31
32
  __exportStar(require("./api/commission-agreements-api"), exports);
32
33
  __exportStar(require("./api/commission-recipients-api"), exports);