@emilgroup/commission-sdk-node 2.9.1-beta.57 → 2.9.1-beta.59

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.57 --save
20
+ npm install @emilgroup/commission-sdk-node@2.9.1-beta.59 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk-node@2.9.1-beta.57
24
+ yarn add @emilgroup/commission-sdk-node@2.9.1-beta.59
25
25
  ```
26
26
 
27
27
  And then you can import `CommissionApi`.
@@ -243,10 +243,11 @@ 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.
246
247
  * @param {*} [options] Override http request option.
247
248
  * @throws {RequiredError}
248
249
  */
249
- getEvaluationDefaultData: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
250
+ getEvaluationDefaultData: async (authorization?: string, commissionAgreementProductCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
250
251
  const localVarPath = `/commissionservice/v1/agreement-rules/evaluation-default-data`;
251
252
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
252
253
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -265,6 +266,10 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
265
266
  // http bearer authentication required
266
267
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
267
268
 
269
+ if (commissionAgreementProductCode !== undefined) {
270
+ localVarQueryParameter['commissionAgreementProductCode'] = commissionAgreementProductCode;
271
+ }
272
+
268
273
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
269
274
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
270
275
  }
@@ -470,11 +475,12 @@ export const CommissionAgreementRulesApiFp = function(configuration?: Configurat
470
475
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
471
476
  * @summary Retrieve the commission agreement rule evaluation default data
472
477
  * @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.
473
479
  * @param {*} [options] Override http request option.
474
480
  * @throws {RequiredError}
475
481
  */
476
- async getEvaluationDefaultData(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>> {
477
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEvaluationDefaultData(authorization, options);
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);
478
484
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
479
485
  },
480
486
  /**
@@ -567,11 +573,12 @@ export const CommissionAgreementRulesApiFactory = function (configuration?: Conf
567
573
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
568
574
  * @summary Retrieve the commission agreement rule evaluation default data
569
575
  * @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.
570
577
  * @param {*} [options] Override http request option.
571
578
  * @throws {RequiredError}
572
579
  */
573
- getEvaluationDefaultData(authorization?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass> {
574
- return localVarFp.getEvaluationDefaultData(authorization, options).then((request) => request(axios, basePath));
580
+ getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass> {
581
+ return localVarFp.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options).then((request) => request(axios, basePath));
575
582
  },
576
583
  /**
577
584
  * Retrieves a list of commission agreement rules.
@@ -708,6 +715,13 @@ export interface CommissionAgreementRulesApiGetEvaluationDefaultDataRequest {
708
715
  * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
709
716
  */
710
717
  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
711
725
  }
712
726
 
713
727
  /**
@@ -865,7 +879,7 @@ export class CommissionAgreementRulesApi extends BaseAPI {
865
879
  * @memberof CommissionAgreementRulesApi
866
880
  */
867
881
  public getEvaluationDefaultData(requestParameters: CommissionAgreementRulesApiGetEvaluationDefaultDataRequest = {}, options?: AxiosRequestConfig) {
868
- return CommissionAgreementRulesApiFp(this.configuration).getEvaluationDefaultData(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
882
+ return CommissionAgreementRulesApiFp(this.configuration).getEvaluationDefaultData(requestParameters.authorization, requestParameters.commissionAgreementProductCode, options).then((request) => request(this.axios, this.basePath));
869
883
  }
870
884
 
871
885
  /**
@@ -67,10 +67,11 @@ 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.
70
71
  * @param {*} [options] Override http request option.
71
72
  * @throws {RequiredError}
72
73
  */
73
- getEvaluationDefaultData: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
+ getEvaluationDefaultData: (authorization?: string, commissionAgreementProductCode?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
75
  /**
75
76
  * Retrieves a list of commission agreement rules.
76
77
  * @summary List commission agreement rules
@@ -143,10 +144,11 @@ export declare const CommissionAgreementRulesApiFp: (configuration?: Configurati
143
144
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
144
145
  * @summary Retrieve the commission agreement rule evaluation default data
145
146
  * @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.
146
148
  * @param {*} [options] Override http request option.
147
149
  * @throws {RequiredError}
148
150
  */
149
- getEvaluationDefaultData(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>>;
151
+ getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>>;
150
152
  /**
151
153
  * Retrieves a list of commission agreement rules.
152
154
  * @summary List commission agreement rules
@@ -219,10 +221,11 @@ export declare const CommissionAgreementRulesApiFactory: (configuration?: Config
219
221
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
220
222
  * @summary Retrieve the commission agreement rule evaluation default data
221
223
  * @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.
222
225
  * @param {*} [options] Override http request option.
223
226
  * @throws {RequiredError}
224
227
  */
225
- getEvaluationDefaultData(authorization?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass>;
228
+ getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass>;
226
229
  /**
227
230
  * Retrieves a list of commission agreement rules.
228
231
  * @summary List commission agreement rules
@@ -343,6 +346,12 @@ export interface CommissionAgreementRulesApiGetEvaluationDefaultDataRequest {
343
346
  * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
344
347
  */
345
348
  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;
346
355
  }
347
356
  /**
348
357
  * Request parameters for listCommissionAgreementRules operation in CommissionAgreementRulesApi.
@@ -300,10 +300,11 @@ 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.
303
304
  * @param {*} [options] Override http request option.
304
305
  * @throws {RequiredError}
305
306
  */
306
- getEvaluationDefaultData: function (authorization, options) {
307
+ getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
307
308
  if (options === void 0) { options = {}; }
308
309
  return __awaiter(_this, void 0, void 0, function () {
309
310
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -326,6 +327,9 @@ var CommissionAgreementRulesApiAxiosParamCreator = function (configuration) {
326
327
  // authentication bearer required
327
328
  // http bearer authentication required
328
329
  _a.sent();
330
+ if (commissionAgreementProductCode !== undefined) {
331
+ localVarQueryParameter['commissionAgreementProductCode'] = commissionAgreementProductCode;
332
+ }
329
333
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
330
334
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
331
335
  }
@@ -564,15 +568,16 @@ var CommissionAgreementRulesApiFp = function (configuration) {
564
568
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
565
569
  * @summary Retrieve the commission agreement rule evaluation default data
566
570
  * @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.
567
572
  * @param {*} [options] Override http request option.
568
573
  * @throws {RequiredError}
569
574
  */
570
- getEvaluationDefaultData: function (authorization, options) {
575
+ getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
571
576
  return __awaiter(this, void 0, void 0, function () {
572
577
  var localVarAxiosArgs;
573
578
  return __generator(this, function (_a) {
574
579
  switch (_a.label) {
575
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEvaluationDefaultData(authorization, options)];
580
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options)];
576
581
  case 1:
577
582
  localVarAxiosArgs = _a.sent();
578
583
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -688,11 +693,12 @@ var CommissionAgreementRulesApiFactory = function (configuration, basePath, axio
688
693
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
689
694
  * @summary Retrieve the commission agreement rule evaluation default data
690
695
  * @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.
691
697
  * @param {*} [options] Override http request option.
692
698
  * @throws {RequiredError}
693
699
  */
694
- getEvaluationDefaultData: function (authorization, options) {
695
- return localVarFp.getEvaluationDefaultData(authorization, options).then(function (request) { return request(axios, basePath); });
700
+ getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
701
+ return localVarFp.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options).then(function (request) { return request(axios, basePath); });
696
702
  },
697
703
  /**
698
704
  * Retrieves a list of commission agreement rules.
@@ -796,7 +802,7 @@ var CommissionAgreementRulesApi = /** @class */ (function (_super) {
796
802
  CommissionAgreementRulesApi.prototype.getEvaluationDefaultData = function (requestParameters, options) {
797
803
  var _this = this;
798
804
  if (requestParameters === void 0) { requestParameters = {}; }
799
- return (0, exports.CommissionAgreementRulesApiFp)(this.configuration).getEvaluationDefaultData(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
805
+ return (0, exports.CommissionAgreementRulesApiFp)(this.configuration).getEvaluationDefaultData(requestParameters.authorization, requestParameters.commissionAgreementProductCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
800
806
  };
801
807
  /**
802
808
  * 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., immediately, monthly, quarterly, halfYearly, yearly)
63
+ * Frequency at which commissions are billed (e.g., manual, 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 Immediately: "immediately";
107
+ readonly Manual: "manual";
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
- Immediately: 'immediately',
24
+ Manual: 'manual',
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 Immediately: "immediately";
82
+ readonly Manual: "manual";
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
- Immediately: 'immediately',
18
+ Manual: 'manual',
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., immediately, monthly, quarterly, halfYearly, yearly)
37
+ * Updated frequency at which commissions are billed (e.g., manual, 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 Immediately: "immediately";
44
+ readonly Manual: "manual";
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
- Immediately: 'immediately',
18
+ Manual: 'manual',
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., immediately, monthly, quarterly, halfYearly, yearly)
68
+ * Frequency at which commissions are billed (e.g., manual, 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
- Immediately: 'immediately',
114
+ Manual: 'manual',
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
- Immediately: 'immediately',
88
+ Manual: 'manual',
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., immediately, monthly, quarterly, halfYearly, yearly)
42
+ * Updated frequency at which commissions are billed (e.g., manual, 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
- Immediately: 'immediately',
50
+ Manual: 'manual',
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.57",
3
+ "version": "2.9.1-beta.59",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [