@emilgroup/commission-sdk-node 2.9.1-beta.56 → 2.9.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-node@2.9.1-beta.56 --save
20
+ npm install @emilgroup/commission-sdk-node@2.9.1-beta.57 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk-node@2.9.1-beta.56
24
+ yarn add @emilgroup/commission-sdk-node@2.9.1-beta.57
25
25
  ```
26
26
 
27
27
  And then you can import `CommissionApi`.
@@ -243,11 +243,10 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
243
243
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
244
244
  * @summary Retrieve the commission agreement rule evaluation default data
245
245
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
246
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
247
246
  * @param {*} [options] Override http request option.
248
247
  * @throws {RequiredError}
249
248
  */
250
- getEvaluationDefaultData: async (authorization?: string, commissionAgreementProductCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
249
+ getEvaluationDefaultData: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
251
250
  const localVarPath = `/commissionservice/v1/agreement-rules/evaluation-default-data`;
252
251
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
253
252
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -266,10 +265,6 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
266
265
  // http bearer authentication required
267
266
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
268
267
 
269
- if (commissionAgreementProductCode !== undefined) {
270
- localVarQueryParameter['commissionAgreementProductCode'] = commissionAgreementProductCode;
271
- }
272
-
273
268
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
274
269
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
275
270
  }
@@ -475,12 +470,11 @@ export const CommissionAgreementRulesApiFp = function(configuration?: Configurat
475
470
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
476
471
  * @summary Retrieve the commission agreement rule evaluation default data
477
472
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
478
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
479
473
  * @param {*} [options] Override http request option.
480
474
  * @throws {RequiredError}
481
475
  */
482
- async getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>> {
483
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options);
476
+ async getEvaluationDefaultData(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>> {
477
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEvaluationDefaultData(authorization, options);
484
478
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
485
479
  },
486
480
  /**
@@ -573,12 +567,11 @@ export const CommissionAgreementRulesApiFactory = function (configuration?: Conf
573
567
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
574
568
  * @summary Retrieve the commission agreement rule evaluation default data
575
569
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
576
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
577
570
  * @param {*} [options] Override http request option.
578
571
  * @throws {RequiredError}
579
572
  */
580
- getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass> {
581
- return localVarFp.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options).then((request) => request(axios, basePath));
573
+ getEvaluationDefaultData(authorization?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass> {
574
+ return localVarFp.getEvaluationDefaultData(authorization, options).then((request) => request(axios, basePath));
582
575
  },
583
576
  /**
584
577
  * Retrieves a list of commission agreement rules.
@@ -715,13 +708,6 @@ export interface CommissionAgreementRulesApiGetEvaluationDefaultDataRequest {
715
708
  * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
716
709
  */
717
710
  readonly authorization?: string
718
-
719
- /**
720
- * Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
721
- * @type {string}
722
- * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
723
- */
724
- readonly commissionAgreementProductCode?: string
725
711
  }
726
712
 
727
713
  /**
@@ -879,7 +865,7 @@ export class CommissionAgreementRulesApi extends BaseAPI {
879
865
  * @memberof CommissionAgreementRulesApi
880
866
  */
881
867
  public getEvaluationDefaultData(requestParameters: CommissionAgreementRulesApiGetEvaluationDefaultDataRequest = {}, options?: AxiosRequestConfig) {
882
- return CommissionAgreementRulesApiFp(this.configuration).getEvaluationDefaultData(requestParameters.authorization, requestParameters.commissionAgreementProductCode, options).then((request) => request(this.axios, this.basePath));
868
+ return CommissionAgreementRulesApiFp(this.configuration).getEvaluationDefaultData(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
883
869
  }
884
870
 
885
871
  /**
@@ -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.
@@ -300,11 +300,10 @@ var CommissionAgreementRulesApiAxiosParamCreator = function (configuration) {
300
300
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
301
301
  * @summary Retrieve the commission agreement rule evaluation default data
302
302
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
303
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
304
303
  * @param {*} [options] Override http request option.
305
304
  * @throws {RequiredError}
306
305
  */
307
- getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
306
+ getEvaluationDefaultData: function (authorization, options) {
308
307
  if (options === void 0) { options = {}; }
309
308
  return __awaiter(_this, void 0, void 0, function () {
310
309
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -327,9 +326,6 @@ var CommissionAgreementRulesApiAxiosParamCreator = function (configuration) {
327
326
  // authentication bearer required
328
327
  // http bearer authentication required
329
328
  _a.sent();
330
- if (commissionAgreementProductCode !== undefined) {
331
- localVarQueryParameter['commissionAgreementProductCode'] = commissionAgreementProductCode;
332
- }
333
329
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
334
330
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
335
331
  }
@@ -568,16 +564,15 @@ var CommissionAgreementRulesApiFp = function (configuration) {
568
564
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
569
565
  * @summary Retrieve the commission agreement rule evaluation default data
570
566
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
571
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
572
567
  * @param {*} [options] Override http request option.
573
568
  * @throws {RequiredError}
574
569
  */
575
- getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
570
+ getEvaluationDefaultData: function (authorization, options) {
576
571
  return __awaiter(this, void 0, void 0, function () {
577
572
  var localVarAxiosArgs;
578
573
  return __generator(this, function (_a) {
579
574
  switch (_a.label) {
580
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options)];
575
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEvaluationDefaultData(authorization, options)];
581
576
  case 1:
582
577
  localVarAxiosArgs = _a.sent();
583
578
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -693,12 +688,11 @@ var CommissionAgreementRulesApiFactory = function (configuration, basePath, axio
693
688
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
694
689
  * @summary Retrieve the commission agreement rule evaluation default data
695
690
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
696
- * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
697
691
  * @param {*} [options] Override http request option.
698
692
  * @throws {RequiredError}
699
693
  */
700
- getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
701
- return localVarFp.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options).then(function (request) { return request(axios, basePath); });
694
+ getEvaluationDefaultData: function (authorization, options) {
695
+ return localVarFp.getEvaluationDefaultData(authorization, options).then(function (request) { return request(axios, basePath); });
702
696
  },
703
697
  /**
704
698
  * Retrieves a list of commission agreement rules.
@@ -802,7 +796,7 @@ var CommissionAgreementRulesApi = /** @class */ (function (_super) {
802
796
  CommissionAgreementRulesApi.prototype.getEvaluationDefaultData = function (requestParameters, options) {
803
797
  var _this = this;
804
798
  if (requestParameters === void 0) { requestParameters = {}; }
805
- return (0, exports.CommissionAgreementRulesApiFp)(this.configuration).getEvaluationDefaultData(requestParameters.authorization, requestParameters.commissionAgreementProductCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
799
+ return (0, exports.CommissionAgreementRulesApiFp)(this.configuration).getEvaluationDefaultData(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
806
800
  };
807
801
  /**
808
802
  * 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-node",
3
- "version": "2.9.1-beta.56",
3
+ "version": "2.9.1-beta.57",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [