@emilgroup/commission-sdk 1.0.0-beta.1 → 1.0.0-beta.11

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 (113) hide show
  1. package/.openapi-generator/FILES +31 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +651 -0
  4. package/api/commission-agreement-rules-api.ts +758 -0
  5. package/api/commission-agreement-versions-api.ts +67 -25
  6. package/api/commission-agreements-api.ts +59 -17
  7. package/api/commission-recipients-api.ts +693 -0
  8. package/api/commissions-api.ts +78 -22
  9. package/api.ts +6 -0
  10. package/dist/api/commission-agreement-products-api.d.ts +366 -0
  11. package/dist/api/commission-agreement-products-api.js +626 -0
  12. package/dist/api/commission-agreement-rules-api.d.ts +423 -0
  13. package/dist/api/commission-agreement-rules-api.js +719 -0
  14. package/dist/api/commission-agreement-versions-api.d.ts +47 -20
  15. package/dist/api/commission-agreement-versions-api.js +38 -20
  16. package/dist/api/commission-agreements-api.d.ts +39 -12
  17. package/dist/api/commission-agreements-api.js +32 -14
  18. package/dist/api/commission-recipients-api.d.ts +393 -0
  19. package/dist/api/commission-recipients-api.js +644 -0
  20. package/dist/api/commissions-api.d.ts +53 -17
  21. package/dist/api/commissions-api.js +41 -17
  22. package/dist/api.d.ts +3 -0
  23. package/dist/api.js +3 -0
  24. package/dist/models/commission-agreement-class.d.ts +7 -0
  25. package/dist/models/commission-agreement-product-class.d.ts +78 -0
  26. package/dist/models/commission-agreement-product-class.js +20 -0
  27. package/dist/models/commission-agreement-rule-class.d.ts +80 -0
  28. package/dist/models/commission-agreement-rule-class.js +21 -0
  29. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  30. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  31. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  32. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  33. package/dist/models/commission-conditions-dto.d.ts +24 -0
  34. package/dist/models/commission-conditions-dto.js +15 -0
  35. package/dist/models/commission-config-dto.d.ts +63 -0
  36. package/dist/models/commission-config-dto.js +34 -0
  37. package/dist/models/commission-recipient-class.d.ts +90 -0
  38. package/dist/models/commission-recipient-class.js +20 -0
  39. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  40. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  41. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  42. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  43. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +31 -0
  44. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  45. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  46. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  47. package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
  48. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  49. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  50. package/dist/models/create-commission-recipient-response-class.js +15 -0
  51. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  52. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  53. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  54. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  55. package/dist/models/evaluated-commission-class.d.ts +54 -0
  56. package/dist/models/evaluated-commission-class.js +21 -0
  57. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  58. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  59. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  60. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  61. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  62. package/dist/models/get-commission-recipient-response-class.js +15 -0
  63. package/dist/models/index.d.ts +28 -0
  64. package/dist/models/index.js +28 -0
  65. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  66. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  67. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  68. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  69. package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
  70. package/dist/models/list-commission-recipients-response-class.js +15 -0
  71. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  72. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  73. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  74. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  75. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +43 -0
  76. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  77. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  78. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  79. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  80. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  81. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  82. package/dist/models/update-commission-recipient-response-class.js +15 -0
  83. package/models/commission-agreement-class.ts +7 -0
  84. package/models/commission-agreement-product-class.ts +87 -0
  85. package/models/commission-agreement-rule-class.ts +89 -0
  86. package/models/commission-agreement-rule-config-dto.ts +31 -0
  87. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  88. package/models/commission-conditions-dto.ts +30 -0
  89. package/models/commission-config-dto.ts +73 -0
  90. package/models/commission-recipient-class.ts +99 -0
  91. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  92. package/models/create-commission-agreement-product-response-class.ts +31 -0
  93. package/models/create-commission-agreement-rule-request-dto.ts +37 -0
  94. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  95. package/models/create-commission-recipient-request-dto.ts +42 -0
  96. package/models/create-commission-recipient-response-class.ts +31 -0
  97. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  98. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  99. package/models/evaluated-commission-class.ts +63 -0
  100. package/models/get-commission-agreement-product-response-class.ts +31 -0
  101. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  102. package/models/get-commission-recipient-response-class.ts +31 -0
  103. package/models/index.ts +28 -0
  104. package/models/list-commission-agreement-products-response-class.ts +49 -0
  105. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  106. package/models/list-commission-recipients-response-class.ts +49 -0
  107. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  108. package/models/update-commission-agreement-product-response-class.ts +31 -0
  109. package/models/update-commission-agreement-rule-request-dto.ts +52 -0
  110. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  111. package/models/update-commission-recipient-request-dto.ts +48 -0
  112. package/models/update-commission-recipient-response-class.ts +31 -0
  113. package/package.json +1 -1
@@ -55,13 +55,17 @@ export declare const CommissionsApiAxiosParamCreator: (configuration?: Configura
55
55
  * Retrieves a list of commissions.
56
56
  * @summary List commissions
57
57
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
- * @param {'createdAt'} [order]
59
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter]
60
- * @param {'items'} [expand]
58
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
59
+ * @param {string} [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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
60
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
61
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
62
+ * @param {'createdAt'} [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.
63
+ * @param {'items'} [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.
64
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
61
65
  * @param {*} [options] Override http request option.
62
66
  * @throws {RequiredError}
63
67
  */
64
- listCommissions: (authorization?: string, order?: 'createdAt', filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', expand?: 'items', options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ listCommissions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
69
  /**
66
70
  * This will update commission.
67
71
  * @summary Update the commission
@@ -110,13 +114,17 @@ export declare const CommissionsApiFp: (configuration?: Configuration) => {
110
114
  * Retrieves a list of commissions.
111
115
  * @summary List commissions
112
116
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
113
- * @param {'createdAt'} [order]
114
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter]
115
- * @param {'items'} [expand]
117
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
118
+ * @param {string} [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.
119
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
120
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
121
+ * @param {'createdAt'} [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.
122
+ * @param {'items'} [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.
123
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
116
124
  * @param {*} [options] Override http request option.
117
125
  * @throws {RequiredError}
118
126
  */
119
- listCommissions(authorization?: string, order?: 'createdAt', filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', expand?: 'items', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionsResponseClass>>;
127
+ listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionsResponseClass>>;
120
128
  /**
121
129
  * This will update commission.
122
130
  * @summary Update the commission
@@ -165,13 +173,17 @@ export declare const CommissionsApiFactory: (configuration?: Configuration, base
165
173
  * Retrieves a list of commissions.
166
174
  * @summary List commissions
167
175
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
168
- * @param {'createdAt'} [order]
169
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter]
170
- * @param {'items'} [expand]
176
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
177
+ * @param {string} [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.
178
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
179
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
180
+ * @param {'createdAt'} [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.
181
+ * @param {'items'} [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.
182
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
171
183
  * @param {*} [options] Override http request option.
172
184
  * @throws {RequiredError}
173
185
  */
174
- listCommissions(authorization?: string, order?: 'createdAt', filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', expand?: 'items', options?: any): AxiosPromise<ListCommissionsResponseClass>;
186
+ listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: any): AxiosPromise<ListCommissionsResponseClass>;
175
187
  /**
176
188
  * This will update commission.
177
189
  * @summary Update the commission
@@ -259,23 +271,47 @@ export interface CommissionsApiListCommissionsRequest {
259
271
  */
260
272
  readonly authorization?: string;
261
273
  /**
262
- *
263
- * @type {'createdAt'}
274
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
275
+ * @type {number}
264
276
  * @memberof CommissionsApiListCommissions
265
277
  */
266
- readonly order?: 'createdAt';
278
+ readonly pageSize?: number;
267
279
  /**
268
- *
280
+ * 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.
281
+ * @type {string}
282
+ * @memberof CommissionsApiListCommissions
283
+ */
284
+ readonly pageToken?: string;
285
+ /**
286
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
269
287
  * @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'}
270
288
  * @memberof CommissionsApiListCommissions
271
289
  */
272
290
  readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt';
273
291
  /**
274
- *
292
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
293
+ * @type {string}
294
+ * @memberof CommissionsApiListCommissions
295
+ */
296
+ readonly search?: string;
297
+ /**
298
+ * 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.
299
+ * @type {'createdAt'}
300
+ * @memberof CommissionsApiListCommissions
301
+ */
302
+ readonly order?: 'createdAt';
303
+ /**
304
+ * 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.
275
305
  * @type {'items'}
276
306
  * @memberof CommissionsApiListCommissions
277
307
  */
278
308
  readonly expand?: 'items';
309
+ /**
310
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
311
+ * @type {string}
312
+ * @memberof CommissionsApiListCommissions
313
+ */
314
+ readonly filters?: string;
279
315
  }
280
316
  /**
281
317
  * Request parameters for updateCommission operation in CommissionsApi.
@@ -247,13 +247,17 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
247
247
  * Retrieves a list of commissions.
248
248
  * @summary List commissions
249
249
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
- * @param {'createdAt'} [order]
251
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter]
252
- * @param {'items'} [expand]
250
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
+ * @param {string} [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.
252
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
253
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
254
+ * @param {'createdAt'} [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.
255
+ * @param {'items'} [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.
256
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
253
257
  * @param {*} [options] Override http request option.
254
258
  * @throws {RequiredError}
255
259
  */
256
- listCommissions: function (authorization, order, filter, expand, options) {
260
+ listCommissions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
257
261
  if (options === void 0) { options = {}; }
258
262
  return __awaiter(_this, void 0, void 0, function () {
259
263
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -276,15 +280,27 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
276
280
  // authentication bearer required
277
281
  // http bearer authentication required
278
282
  _a.sent();
279
- if (order !== undefined) {
280
- localVarQueryParameter['order'] = order;
283
+ if (pageSize !== undefined) {
284
+ localVarQueryParameter['pageSize'] = pageSize;
285
+ }
286
+ if (pageToken !== undefined) {
287
+ localVarQueryParameter['pageToken'] = pageToken;
281
288
  }
282
289
  if (filter !== undefined) {
283
290
  localVarQueryParameter['filter'] = filter;
284
291
  }
292
+ if (search !== undefined) {
293
+ localVarQueryParameter['search'] = search;
294
+ }
295
+ if (order !== undefined) {
296
+ localVarQueryParameter['order'] = order;
297
+ }
285
298
  if (expand !== undefined) {
286
299
  localVarQueryParameter['expand'] = expand;
287
300
  }
301
+ if (filters !== undefined) {
302
+ localVarQueryParameter['filters'] = filters;
303
+ }
288
304
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
289
305
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
290
306
  }
@@ -430,18 +446,22 @@ var CommissionsApiFp = function (configuration) {
430
446
  * Retrieves a list of commissions.
431
447
  * @summary List commissions
432
448
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
- * @param {'createdAt'} [order]
434
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter]
435
- * @param {'items'} [expand]
449
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
450
+ * @param {string} [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.
451
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
452
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
453
+ * @param {'createdAt'} [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.
454
+ * @param {'items'} [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.
455
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
436
456
  * @param {*} [options] Override http request option.
437
457
  * @throws {RequiredError}
438
458
  */
439
- listCommissions: function (authorization, order, filter, expand, options) {
459
+ listCommissions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
440
460
  return __awaiter(this, void 0, void 0, function () {
441
461
  var localVarAxiosArgs;
442
462
  return __generator(this, function (_a) {
443
463
  switch (_a.label) {
444
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissions(authorization, order, filter, expand, options)];
464
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
445
465
  case 1:
446
466
  localVarAxiosArgs = _a.sent();
447
467
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -519,14 +539,18 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
519
539
  * Retrieves a list of commissions.
520
540
  * @summary List commissions
521
541
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
522
- * @param {'createdAt'} [order]
523
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter]
524
- * @param {'items'} [expand]
542
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
543
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
544
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
545
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
546
+ * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
547
+ * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
548
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
525
549
  * @param {*} [options] Override http request option.
526
550
  * @throws {RequiredError}
527
551
  */
528
- listCommissions: function (authorization, order, filter, expand, options) {
529
- return localVarFp.listCommissions(authorization, order, filter, expand, options).then(function (request) { return request(axios, basePath); });
552
+ listCommissions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
553
+ return localVarFp.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
530
554
  },
531
555
  /**
532
556
  * This will update commission.
@@ -601,7 +625,7 @@ var CommissionsApi = /** @class */ (function (_super) {
601
625
  CommissionsApi.prototype.listCommissions = function (requestParameters, options) {
602
626
  var _this = this;
603
627
  if (requestParameters === void 0) { requestParameters = {}; }
604
- return (0, exports.CommissionsApiFp)(this.configuration).listCommissions(requestParameters.authorization, requestParameters.order, requestParameters.filter, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
628
+ return (0, exports.CommissionsApiFp)(this.configuration).listCommissions(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); });
605
629
  };
606
630
  /**
607
631
  * This will update commission.
package/dist/api.d.ts CHANGED
@@ -9,7 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/commission-agreement-products-api';
13
+ export * from './api/commission-agreement-rules-api';
12
14
  export * from './api/commission-agreement-versions-api';
13
15
  export * from './api/commission-agreements-api';
16
+ export * from './api/commission-recipients-api';
14
17
  export * from './api/commissions-api';
15
18
  export * from './api/default-api';
package/dist/api.js CHANGED
@@ -27,7 +27,10 @@ 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);
31
+ __exportStar(require("./api/commission-agreement-rules-api"), exports);
30
32
  __exportStar(require("./api/commission-agreement-versions-api"), exports);
31
33
  __exportStar(require("./api/commission-agreements-api"), exports);
34
+ __exportStar(require("./api/commission-recipients-api"), exports);
32
35
  __exportStar(require("./api/commissions-api"), exports);
33
36
  __exportStar(require("./api/default-api"), exports);
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -39,6 +40,12 @@ export interface CommissionAgreementClass {
39
40
  * @memberof CommissionAgreementClass
40
41
  */
41
42
  'status': CommissionAgreementClassStatusEnum;
43
+ /**
44
+ * Array of commission agreement versions
45
+ * @type {Array<CommissionAgreementVersionClass>}
46
+ * @memberof CommissionAgreementClass
47
+ */
48
+ 'versions'?: Array<CommissionAgreementVersionClass>;
42
49
  /**
43
50
  * Detailed description of the commission agreement terms and conditions
44
51
  * @type {string}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * EMIL CommissionService
3
+ * The EMIL CommissionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionAgreementProductClass
17
+ */
18
+ export interface CommissionAgreementProductClass {
19
+ /**
20
+ * Unique identifier for the commission agreement product
21
+ * @type {number}
22
+ * @memberof CommissionAgreementProductClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * The parent commission agreement version
27
+ * @type {CommissionAgreementVersionClass}
28
+ * @memberof CommissionAgreementProductClass
29
+ */
30
+ 'version': CommissionAgreementVersionClass;
31
+ /**
32
+ * Product slug identifier
33
+ * @type {string}
34
+ * @memberof CommissionAgreementProductClass
35
+ */
36
+ 'productSlug': string;
37
+ /**
38
+ * Unique code identifier for the commission agreement product, auto-generated on creation
39
+ * @type {string}
40
+ * @memberof CommissionAgreementProductClass
41
+ */
42
+ 'code': string;
43
+ /**
44
+ * Status of the commission agreement product
45
+ * @type {string}
46
+ * @memberof CommissionAgreementProductClass
47
+ */
48
+ 'status': CommissionAgreementProductClassStatusEnum;
49
+ /**
50
+ * Timestamp when the commission agreement product was created
51
+ * @type {string}
52
+ * @memberof CommissionAgreementProductClass
53
+ */
54
+ 'createdAt'?: string;
55
+ /**
56
+ * Timestamp when the commission agreement product was last updated
57
+ * @type {string}
58
+ * @memberof CommissionAgreementProductClass
59
+ */
60
+ 'updatedAt'?: string;
61
+ /**
62
+ * User identifier who created the commission agreement product
63
+ * @type {string}
64
+ * @memberof CommissionAgreementProductClass
65
+ */
66
+ 'createdBy'?: string;
67
+ /**
68
+ * User identifier who last updated the commission agreement product
69
+ * @type {string}
70
+ * @memberof CommissionAgreementProductClass
71
+ */
72
+ 'updatedBy'?: string;
73
+ }
74
+ export declare const CommissionAgreementProductClassStatusEnum: {
75
+ readonly Active: "active";
76
+ readonly Inactive: "inactive";
77
+ };
78
+ export type CommissionAgreementProductClassStatusEnum = typeof CommissionAgreementProductClassStatusEnum[keyof typeof CommissionAgreementProductClassStatusEnum];
@@ -0,0 +1,20 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CommissionAgreementProductClassStatusEnum = void 0;
17
+ exports.CommissionAgreementProductClassStatusEnum = {
18
+ Active: 'active',
19
+ Inactive: 'inactive'
20
+ };
@@ -0,0 +1,80 @@
1
+ /**
2
+ * EMIL CommissionService
3
+ * The EMIL CommissionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
13
+ import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CommissionAgreementRuleClass
18
+ */
19
+ export interface CommissionAgreementRuleClass {
20
+ /**
21
+ * Unique identifier for the commission agreement rule
22
+ * @type {number}
23
+ * @memberof CommissionAgreementRuleClass
24
+ */
25
+ 'id': number;
26
+ /**
27
+ * The parent commission agreement version
28
+ * @type {CommissionAgreementVersionClass}
29
+ * @memberof CommissionAgreementRuleClass
30
+ */
31
+ 'version': CommissionAgreementVersionClass;
32
+ /**
33
+ * Unique code identifier for the commission agreement rule, auto-generated on creation
34
+ * @type {string}
35
+ * @memberof CommissionAgreementRuleClass
36
+ */
37
+ 'code': string;
38
+ /**
39
+ * Configuration object for the commission agreement rule
40
+ * @type {CommissionAgreementRuleConfigDto}
41
+ * @memberof CommissionAgreementRuleClass
42
+ */
43
+ 'config': CommissionAgreementRuleConfigDto;
44
+ /**
45
+ * Status of the commission agreement rule (e.g., active, inactive, draft)
46
+ * @type {string}
47
+ * @memberof CommissionAgreementRuleClass
48
+ */
49
+ 'status': CommissionAgreementRuleClassStatusEnum;
50
+ /**
51
+ * Timestamp when the commission agreement rule was created
52
+ * @type {string}
53
+ * @memberof CommissionAgreementRuleClass
54
+ */
55
+ 'createdAt'?: string;
56
+ /**
57
+ * Timestamp when the commission agreement rule was last updated
58
+ * @type {string}
59
+ * @memberof CommissionAgreementRuleClass
60
+ */
61
+ 'updatedAt'?: string;
62
+ /**
63
+ * User identifier who created the commission agreement rule
64
+ * @type {string}
65
+ * @memberof CommissionAgreementRuleClass
66
+ */
67
+ 'createdBy'?: string;
68
+ /**
69
+ * User identifier who last updated the commission agreement rule
70
+ * @type {string}
71
+ * @memberof CommissionAgreementRuleClass
72
+ */
73
+ 'updatedBy'?: string;
74
+ }
75
+ export declare const CommissionAgreementRuleClassStatusEnum: {
76
+ readonly Active: "active";
77
+ readonly Inactive: "inactive";
78
+ readonly Draft: "draft";
79
+ };
80
+ export type CommissionAgreementRuleClassStatusEnum = typeof CommissionAgreementRuleClassStatusEnum[keyof typeof CommissionAgreementRuleClassStatusEnum];
@@ -0,0 +1,21 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CommissionAgreementRuleClassStatusEnum = void 0;
17
+ exports.CommissionAgreementRuleClassStatusEnum = {
18
+ Active: 'active',
19
+ Inactive: 'inactive',
20
+ Draft: 'draft'
21
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL CommissionService
3
+ * The EMIL CommissionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CommissionConfigDto } from './commission-config-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionAgreementRuleConfigDto
17
+ */
18
+ export interface CommissionAgreementRuleConfigDto {
19
+ /**
20
+ * Array of commission calculation rules
21
+ * @type {Array<CommissionConfigDto>}
22
+ * @memberof CommissionAgreementRuleConfigDto
23
+ */
24
+ 'commissions': Array<CommissionConfigDto>;
25
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL CommissionService
3
+ * The EMIL CommissionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { EvaluatedCommissionClass } from './evaluated-commission-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionAgreementRuleEvaluationClass
17
+ */
18
+ export interface CommissionAgreementRuleEvaluationClass {
19
+ /**
20
+ * Premium amount in cents used for evaluation
21
+ * @type {number}
22
+ * @memberof CommissionAgreementRuleEvaluationClass
23
+ */
24
+ 'premiumAmount': number;
25
+ /**
26
+ * Array of evaluated commission results
27
+ * @type {Array<EvaluatedCommissionClass>}
28
+ * @memberof CommissionAgreementRuleEvaluationClass
29
+ */
30
+ 'commissions': Array<EvaluatedCommissionClass>;
31
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ /**
2
+ * EMIL CommissionService
3
+ * The EMIL CommissionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CommissionConditionsDto
16
+ */
17
+ export interface CommissionConditionsDto {
18
+ /**
19
+ * If the commission is paid on the first year
20
+ * @type {boolean}
21
+ * @memberof CommissionConditionsDto
22
+ */
23
+ 'paidOnFirstYear'?: boolean;
24
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });