@emilgroup/commission-sdk 2.10.1-beta.55 → 2.10.1-beta.57

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.
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/commission-sdk@2.10.1-beta.55 --save
20
+ npm install @emilgroup/commission-sdk@2.10.1-beta.57 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk@2.10.1-beta.55
24
+ yarn add @emilgroup/commission-sdk@2.10.1-beta.57
25
25
  ```
26
26
 
27
27
  And then you can import `CommissionApi`.
@@ -239,11 +239,10 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
239
239
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
240
240
  * @summary Retrieve the commission agreement rule evaluation default data
241
241
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
242
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
243
242
  * @param {*} [options] Override http request option.
244
243
  * @throws {RequiredError}
245
244
  */
246
- getEvaluationDefaultData: async (authorization?: string, commissionAgreementProductCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
245
+ getEvaluationDefaultData: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
247
246
  const localVarPath = `/commissionservice/v1/agreement-rules/evaluation-default-data`;
248
247
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
249
248
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -262,10 +261,6 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
262
261
  // http bearer authentication required
263
262
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
264
263
 
265
- if (commissionAgreementProductCode !== undefined) {
266
- localVarQueryParameter['commissionAgreementProductCode'] = commissionAgreementProductCode;
267
- }
268
-
269
264
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
270
265
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
271
266
  }
@@ -471,12 +466,11 @@ export const CommissionAgreementRulesApiFp = function(configuration?: Configurat
471
466
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
472
467
  * @summary Retrieve the commission agreement rule evaluation default data
473
468
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
474
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
475
469
  * @param {*} [options] Override http request option.
476
470
  * @throws {RequiredError}
477
471
  */
478
- async getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>> {
479
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options);
472
+ async getEvaluationDefaultData(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>> {
473
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEvaluationDefaultData(authorization, options);
480
474
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
481
475
  },
482
476
  /**
@@ -569,12 +563,11 @@ export const CommissionAgreementRulesApiFactory = function (configuration?: Conf
569
563
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
570
564
  * @summary Retrieve the commission agreement rule evaluation default data
571
565
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
572
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
573
566
  * @param {*} [options] Override http request option.
574
567
  * @throws {RequiredError}
575
568
  */
576
- getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass> {
577
- return localVarFp.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options).then((request) => request(axios, basePath));
569
+ getEvaluationDefaultData(authorization?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass> {
570
+ return localVarFp.getEvaluationDefaultData(authorization, options).then((request) => request(axios, basePath));
578
571
  },
579
572
  /**
580
573
  * Retrieves a list of commission agreement rules.
@@ -711,13 +704,6 @@ export interface CommissionAgreementRulesApiGetEvaluationDefaultDataRequest {
711
704
  * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
712
705
  */
713
706
  readonly authorization?: string
714
-
715
- /**
716
- * Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
717
- * @type {string}
718
- * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
719
- */
720
- readonly commissionAgreementProductCode?: string
721
707
  }
722
708
 
723
709
  /**
@@ -875,7 +861,7 @@ export class CommissionAgreementRulesApi extends BaseAPI {
875
861
  * @memberof CommissionAgreementRulesApi
876
862
  */
877
863
  public getEvaluationDefaultData(requestParameters: CommissionAgreementRulesApiGetEvaluationDefaultDataRequest = {}, options?: AxiosRequestConfig) {
878
- return CommissionAgreementRulesApiFp(this.configuration).getEvaluationDefaultData(requestParameters.authorization, requestParameters.commissionAgreementProductCode, options).then((request) => request(this.axios, this.basePath));
864
+ return CommissionAgreementRulesApiFp(this.configuration).getEvaluationDefaultData(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
879
865
  }
880
866
 
881
867
  /**
@@ -67,11 +67,10 @@ export declare const CommissionAgreementRulesApiAxiosParamCreator: (configuratio
67
67
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
68
68
  * @summary Retrieve the commission agreement rule evaluation default data
69
69
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
70
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
71
70
  * @param {*} [options] Override http request option.
72
71
  * @throws {RequiredError}
73
72
  */
74
- getEvaluationDefaultData: (authorization?: string, commissionAgreementProductCode?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
73
+ getEvaluationDefaultData: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
75
74
  /**
76
75
  * Retrieves a list of commission agreement rules.
77
76
  * @summary List commission agreement rules
@@ -144,11 +143,10 @@ export declare const CommissionAgreementRulesApiFp: (configuration?: Configurati
144
143
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
145
144
  * @summary Retrieve the commission agreement rule evaluation default data
146
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
148
146
  * @param {*} [options] Override http request option.
149
147
  * @throws {RequiredError}
150
148
  */
151
- getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>>;
149
+ getEvaluationDefaultData(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>>;
152
150
  /**
153
151
  * Retrieves a list of commission agreement rules.
154
152
  * @summary List commission agreement rules
@@ -221,11 +219,10 @@ export declare const CommissionAgreementRulesApiFactory: (configuration?: Config
221
219
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
222
220
  * @summary Retrieve the commission agreement rule evaluation default data
223
221
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
224
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
225
222
  * @param {*} [options] Override http request option.
226
223
  * @throws {RequiredError}
227
224
  */
228
- getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass>;
225
+ getEvaluationDefaultData(authorization?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass>;
229
226
  /**
230
227
  * Retrieves a list of commission agreement rules.
231
228
  * @summary List commission agreement rules
@@ -346,12 +343,6 @@ export interface CommissionAgreementRulesApiGetEvaluationDefaultDataRequest {
346
343
  * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
347
344
  */
348
345
  readonly authorization?: string;
349
- /**
350
- * Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
351
- * @type {string}
352
- * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
353
- */
354
- readonly commissionAgreementProductCode?: string;
355
346
  }
356
347
  /**
357
348
  * Request parameters for listCommissionAgreementRules operation in CommissionAgreementRulesApi.
@@ -296,11 +296,10 @@ var CommissionAgreementRulesApiAxiosParamCreator = function (configuration) {
296
296
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
297
297
  * @summary Retrieve the commission agreement rule evaluation default data
298
298
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
299
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
300
299
  * @param {*} [options] Override http request option.
301
300
  * @throws {RequiredError}
302
301
  */
303
- getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
302
+ getEvaluationDefaultData: function (authorization, options) {
304
303
  if (options === void 0) { options = {}; }
305
304
  return __awaiter(_this, void 0, void 0, function () {
306
305
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -323,9 +322,6 @@ var CommissionAgreementRulesApiAxiosParamCreator = function (configuration) {
323
322
  // authentication bearer required
324
323
  // http bearer authentication required
325
324
  _a.sent();
326
- if (commissionAgreementProductCode !== undefined) {
327
- localVarQueryParameter['commissionAgreementProductCode'] = commissionAgreementProductCode;
328
- }
329
325
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
330
326
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
331
327
  }
@@ -564,16 +560,15 @@ var CommissionAgreementRulesApiFp = function (configuration) {
564
560
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
565
561
  * @summary Retrieve the commission agreement rule evaluation default data
566
562
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
567
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
568
563
  * @param {*} [options] Override http request option.
569
564
  * @throws {RequiredError}
570
565
  */
571
- getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
566
+ getEvaluationDefaultData: function (authorization, options) {
572
567
  return __awaiter(this, void 0, void 0, function () {
573
568
  var localVarAxiosArgs;
574
569
  return __generator(this, function (_a) {
575
570
  switch (_a.label) {
576
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options)];
571
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEvaluationDefaultData(authorization, options)];
577
572
  case 1:
578
573
  localVarAxiosArgs = _a.sent();
579
574
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -689,12 +684,11 @@ var CommissionAgreementRulesApiFactory = function (configuration, basePath, axio
689
684
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
690
685
  * @summary Retrieve the commission agreement rule evaluation default data
691
686
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
692
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
693
687
  * @param {*} [options] Override http request option.
694
688
  * @throws {RequiredError}
695
689
  */
696
- getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
697
- return localVarFp.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options).then(function (request) { return request(axios, basePath); });
690
+ getEvaluationDefaultData: function (authorization, options) {
691
+ return localVarFp.getEvaluationDefaultData(authorization, options).then(function (request) { return request(axios, basePath); });
698
692
  },
699
693
  /**
700
694
  * Retrieves a list of commission agreement rules.
@@ -798,7 +792,7 @@ var CommissionAgreementRulesApi = /** @class */ (function (_super) {
798
792
  CommissionAgreementRulesApi.prototype.getEvaluationDefaultData = function (requestParameters, options) {
799
793
  var _this = this;
800
794
  if (requestParameters === void 0) { requestParameters = {}; }
801
- return (0, exports.CommissionAgreementRulesApiFp)(this.configuration).getEvaluationDefaultData(requestParameters.authorization, requestParameters.commissionAgreementProductCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
795
+ return (0, exports.CommissionAgreementRulesApiFp)(this.configuration).getEvaluationDefaultData(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
802
796
  };
803
797
  /**
804
798
  * Retrieves a list of commission agreement rules.
@@ -60,7 +60,7 @@ export interface CommissionAgreementClass {
60
60
  */
61
61
  'description'?: string;
62
62
  /**
63
- * Frequency at which commissions are billed (e.g., manual, monthly, quarterly, halfYearly, yearly)
63
+ * Frequency at which commissions are billed (e.g., immediately, monthly, quarterly, halfYearly, yearly)
64
64
  * @type {string}
65
65
  * @memberof CommissionAgreementClass
66
66
  */
@@ -104,7 +104,7 @@ export declare const CommissionAgreementClassStatusEnum: {
104
104
  };
105
105
  export type CommissionAgreementClassStatusEnum = typeof CommissionAgreementClassStatusEnum[keyof typeof CommissionAgreementClassStatusEnum];
106
106
  export declare const CommissionAgreementClassBillingFrequencyEnum: {
107
- readonly Manual: "manual";
107
+ readonly Immediately: "immediately";
108
108
  readonly Monthly: "monthly";
109
109
  readonly Quarterly: "quarterly";
110
110
  readonly HalfYearly: "halfYearly";
@@ -21,7 +21,7 @@ exports.CommissionAgreementClassStatusEnum = {
21
21
  Archived: 'archived'
22
22
  };
23
23
  exports.CommissionAgreementClassBillingFrequencyEnum = {
24
- Manual: 'manual',
24
+ Immediately: 'immediately',
25
25
  Monthly: 'monthly',
26
26
  Quarterly: 'quarterly',
27
27
  HalfYearly: 'halfYearly',
@@ -79,7 +79,7 @@ export interface CreateCommissionAgreementRequestDto {
79
79
  'config'?: CommissionAgreementVersionConfigDto;
80
80
  }
81
81
  export declare const CreateCommissionAgreementRequestDtoBillingFrequencyEnum: {
82
- readonly Manual: "manual";
82
+ readonly Immediately: "immediately";
83
83
  readonly Monthly: "monthly";
84
84
  readonly Quarterly: "quarterly";
85
85
  readonly HalfYearly: "halfYearly";
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateCommissionAgreementRequestDtoStatusEnum = exports.CreateCommissionAgreementRequestDtoBillingFrequencyEnum = void 0;
17
17
  exports.CreateCommissionAgreementRequestDtoBillingFrequencyEnum = {
18
- Manual: 'manual',
18
+ Immediately: 'immediately',
19
19
  Monthly: 'monthly',
20
20
  Quarterly: 'quarterly',
21
21
  HalfYearly: 'halfYearly',
@@ -34,14 +34,14 @@ export interface UpdateCommissionAgreementRequestDto {
34
34
  */
35
35
  'description'?: string;
36
36
  /**
37
- * Updated frequency at which commissions are billed (e.g., manual, monthly, quarterly, halfYearly, yearly)
37
+ * Updated frequency at which commissions are billed (e.g., immediately, monthly, quarterly, halfYearly, yearly)
38
38
  * @type {string}
39
39
  * @memberof UpdateCommissionAgreementRequestDto
40
40
  */
41
41
  'billingFrequency'?: UpdateCommissionAgreementRequestDtoBillingFrequencyEnum;
42
42
  }
43
43
  export declare const UpdateCommissionAgreementRequestDtoBillingFrequencyEnum: {
44
- readonly Manual: "manual";
44
+ readonly Immediately: "immediately";
45
45
  readonly Monthly: "monthly";
46
46
  readonly Quarterly: "quarterly";
47
47
  readonly HalfYearly: "halfYearly";
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UpdateCommissionAgreementRequestDtoBillingFrequencyEnum = void 0;
17
17
  exports.UpdateCommissionAgreementRequestDtoBillingFrequencyEnum = {
18
- Manual: 'manual',
18
+ Immediately: 'immediately',
19
19
  Monthly: 'monthly',
20
20
  Quarterly: 'quarterly',
21
21
  HalfYearly: 'halfYearly',
@@ -65,7 +65,7 @@ export interface CommissionAgreementClass {
65
65
  */
66
66
  'description'?: string;
67
67
  /**
68
- * Frequency at which commissions are billed (e.g., manual, monthly, quarterly, halfYearly, yearly)
68
+ * Frequency at which commissions are billed (e.g., immediately, monthly, quarterly, halfYearly, yearly)
69
69
  * @type {string}
70
70
  * @memberof CommissionAgreementClass
71
71
  */
@@ -111,7 +111,7 @@ export const CommissionAgreementClassStatusEnum = {
111
111
 
112
112
  export type CommissionAgreementClassStatusEnum = typeof CommissionAgreementClassStatusEnum[keyof typeof CommissionAgreementClassStatusEnum];
113
113
  export const CommissionAgreementClassBillingFrequencyEnum = {
114
- Manual: 'manual',
114
+ Immediately: 'immediately',
115
115
  Monthly: 'monthly',
116
116
  Quarterly: 'quarterly',
117
117
  HalfYearly: 'halfYearly',
@@ -85,7 +85,7 @@ export interface CreateCommissionAgreementRequestDto {
85
85
  }
86
86
 
87
87
  export const CreateCommissionAgreementRequestDtoBillingFrequencyEnum = {
88
- Manual: 'manual',
88
+ Immediately: 'immediately',
89
89
  Monthly: 'monthly',
90
90
  Quarterly: 'quarterly',
91
91
  HalfYearly: 'halfYearly',
@@ -39,7 +39,7 @@ export interface UpdateCommissionAgreementRequestDto {
39
39
  */
40
40
  'description'?: string;
41
41
  /**
42
- * Updated frequency at which commissions are billed (e.g., manual, monthly, quarterly, halfYearly, yearly)
42
+ * Updated frequency at which commissions are billed (e.g., immediately, monthly, quarterly, halfYearly, yearly)
43
43
  * @type {string}
44
44
  * @memberof UpdateCommissionAgreementRequestDto
45
45
  */
@@ -47,7 +47,7 @@ export interface UpdateCommissionAgreementRequestDto {
47
47
  }
48
48
 
49
49
  export const UpdateCommissionAgreementRequestDtoBillingFrequencyEnum = {
50
- Manual: 'manual',
50
+ Immediately: 'immediately',
51
51
  Monthly: 'monthly',
52
52
  Quarterly: 'quarterly',
53
53
  HalfYearly: 'halfYearly',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/commission-sdk",
3
- "version": "2.10.1-beta.55",
3
+ "version": "2.10.1-beta.57",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [