@emilgroup/commission-sdk-node 1.0.0-beta.1 → 1.0.0-beta.3
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 +2 -2
- package/api/commission-agreement-versions-api.ts +67 -25
- package/api/commission-agreements-api.ts +55 -13
- package/api/commissions-api.ts +78 -22
- package/dist/api/commission-agreement-versions-api.d.ts +47 -20
- package/dist/api/commission-agreement-versions-api.js +38 -20
- package/dist/api/commission-agreements-api.d.ts +35 -8
- package/dist/api/commission-agreements-api.js +29 -11
- package/dist/api/commissions-api.d.ts +53 -17
- package/dist/api/commissions-api.js +41 -17
- 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 {
|
|
59
|
-
* @param {
|
|
60
|
-
* @param {'
|
|
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,
|
|
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 {
|
|
114
|
-
* @param {
|
|
115
|
-
* @param {'
|
|
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=1, your subsequent call can include pageToken=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=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,
|
|
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 {
|
|
169
|
-
* @param {
|
|
170
|
-
* @param {'
|
|
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=1, your subsequent call can include pageToken=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=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,
|
|
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 {
|
|
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
|
|
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=1, your subsequent call can include pageToken=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=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.
|
|
@@ -251,13 +251,17 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
251
251
|
* Retrieves a list of commissions.
|
|
252
252
|
* @summary List commissions
|
|
253
253
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
|
-
* @param {
|
|
255
|
-
* @param {
|
|
256
|
-
* @param {'
|
|
254
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
255
|
+
* @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.
|
|
256
|
+
* @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.
|
|
257
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
258
|
+
* @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.
|
|
259
|
+
* @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.
|
|
260
|
+
* @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.
|
|
257
261
|
* @param {*} [options] Override http request option.
|
|
258
262
|
* @throws {RequiredError}
|
|
259
263
|
*/
|
|
260
|
-
listCommissions: function (authorization,
|
|
264
|
+
listCommissions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
261
265
|
if (options === void 0) { options = {}; }
|
|
262
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
263
267
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -280,15 +284,27 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
280
284
|
// authentication bearer required
|
|
281
285
|
// http bearer authentication required
|
|
282
286
|
_a.sent();
|
|
283
|
-
if (
|
|
284
|
-
localVarQueryParameter['
|
|
287
|
+
if (pageSize !== undefined) {
|
|
288
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
289
|
+
}
|
|
290
|
+
if (pageToken !== undefined) {
|
|
291
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
285
292
|
}
|
|
286
293
|
if (filter !== undefined) {
|
|
287
294
|
localVarQueryParameter['filter'] = filter;
|
|
288
295
|
}
|
|
296
|
+
if (search !== undefined) {
|
|
297
|
+
localVarQueryParameter['search'] = search;
|
|
298
|
+
}
|
|
299
|
+
if (order !== undefined) {
|
|
300
|
+
localVarQueryParameter['order'] = order;
|
|
301
|
+
}
|
|
289
302
|
if (expand !== undefined) {
|
|
290
303
|
localVarQueryParameter['expand'] = expand;
|
|
291
304
|
}
|
|
305
|
+
if (filters !== undefined) {
|
|
306
|
+
localVarQueryParameter['filters'] = filters;
|
|
307
|
+
}
|
|
292
308
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
293
309
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
294
310
|
}
|
|
@@ -434,18 +450,22 @@ var CommissionsApiFp = function (configuration) {
|
|
|
434
450
|
* Retrieves a list of commissions.
|
|
435
451
|
* @summary List commissions
|
|
436
452
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
437
|
-
* @param {
|
|
438
|
-
* @param {
|
|
439
|
-
* @param {'
|
|
453
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
454
|
+
* @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.
|
|
455
|
+
* @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.
|
|
456
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
457
|
+
* @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.
|
|
458
|
+
* @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.
|
|
459
|
+
* @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.
|
|
440
460
|
* @param {*} [options] Override http request option.
|
|
441
461
|
* @throws {RequiredError}
|
|
442
462
|
*/
|
|
443
|
-
listCommissions: function (authorization,
|
|
463
|
+
listCommissions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
444
464
|
return __awaiter(this, void 0, void 0, function () {
|
|
445
465
|
var localVarAxiosArgs;
|
|
446
466
|
return __generator(this, function (_a) {
|
|
447
467
|
switch (_a.label) {
|
|
448
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissions(authorization,
|
|
468
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
449
469
|
case 1:
|
|
450
470
|
localVarAxiosArgs = _a.sent();
|
|
451
471
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -523,14 +543,18 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
523
543
|
* Retrieves a list of commissions.
|
|
524
544
|
* @summary List commissions
|
|
525
545
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
526
|
-
* @param {
|
|
527
|
-
* @param {
|
|
528
|
-
* @param {'
|
|
546
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
547
|
+
* @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.
|
|
548
|
+
* @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.
|
|
549
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
550
|
+
* @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.
|
|
551
|
+
* @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.
|
|
552
|
+
* @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.
|
|
529
553
|
* @param {*} [options] Override http request option.
|
|
530
554
|
* @throws {RequiredError}
|
|
531
555
|
*/
|
|
532
|
-
listCommissions: function (authorization,
|
|
533
|
-
return localVarFp.listCommissions(authorization,
|
|
556
|
+
listCommissions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
557
|
+
return localVarFp.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
534
558
|
},
|
|
535
559
|
/**
|
|
536
560
|
* This will update commission.
|
|
@@ -605,7 +629,7 @@ var CommissionsApi = /** @class */ (function (_super) {
|
|
|
605
629
|
CommissionsApi.prototype.listCommissions = function (requestParameters, options) {
|
|
606
630
|
var _this = this;
|
|
607
631
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
608
|
-
return (0, exports.CommissionsApiFp)(this.configuration).listCommissions(requestParameters.authorization, requestParameters.
|
|
632
|
+
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); });
|
|
609
633
|
};
|
|
610
634
|
/**
|
|
611
635
|
* This will update commission.
|