@emilgroup/commission-sdk-node 2.9.1-beta.50 → 2.9.1-beta.51
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.
|
|
20
|
+
npm install @emilgroup/commission-sdk-node@2.9.1-beta.51 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk-node@2.9.1-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk-node@2.9.1-beta.51
|
|
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.
|