@emilgroup/customer-sdk-node 1.11.3 → 1.12.0
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/authentication-api.ts +8 -8
- package/api/claims-api.ts +12 -12
- package/api/documents-api.ts +4 -4
- package/api/payments-api.ts +8 -8
- package/api/policies-api.ts +16 -16
- package/api/products-api.ts +4 -4
- package/base.ts +1 -1
- package/dist/api/authentication-api.d.ts +8 -8
- package/dist/api/authentication-api.js +8 -8
- package/dist/api/claims-api.d.ts +12 -12
- package/dist/api/claims-api.js +12 -12
- package/dist/api/documents-api.d.ts +4 -4
- package/dist/api/documents-api.js +4 -4
- package/dist/api/payments-api.d.ts +8 -8
- package/dist/api/payments-api.js +8 -8
- package/dist/api/policies-api.d.ts +16 -16
- package/dist/api/policies-api.js +16 -16
- package/dist/api/products-api.d.ts +4 -4
- package/dist/api/products-api.js +4 -4
- package/dist/base.js +1 -1
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +7 -1
- package/models/shared-customer-policy-object-request-dto.ts +7 -1
- package/package.json +2 -2
package/dist/api/policies-api.js
CHANGED
|
@@ -190,7 +190,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
},
|
|
191
191
|
/**
|
|
192
192
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
193
|
-
* @summary List policies
|
|
193
|
+
* @summary List policies
|
|
194
194
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
195
195
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
196
196
|
* @param {any} [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.
|
|
@@ -252,7 +252,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
252
252
|
},
|
|
253
253
|
/**
|
|
254
254
|
* Request to update an existing policy by customer.
|
|
255
|
-
* @summary Request policy update
|
|
255
|
+
* @summary Request policy update
|
|
256
256
|
* @param {string} policyCode The code of the policy that the customer wants to update.
|
|
257
257
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
258
258
|
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
@@ -299,7 +299,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
299
299
|
},
|
|
300
300
|
/**
|
|
301
301
|
* Request to terminate an existing policy by customer.
|
|
302
|
-
* @summary Terminate a policy
|
|
302
|
+
* @summary Terminate a policy
|
|
303
303
|
* @param {string} policyCode The code of the policy that the customer wants to terminate.
|
|
304
304
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
305
305
|
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
@@ -389,7 +389,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
389
389
|
},
|
|
390
390
|
/**
|
|
391
391
|
* Withdraw policy by customer.
|
|
392
|
-
* @summary Withdraw policy
|
|
392
|
+
* @summary Withdraw the policy
|
|
393
393
|
* @param {string} policyCode The code of the policy that the customer wants to withdraw.
|
|
394
394
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
395
395
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -487,7 +487,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
487
487
|
},
|
|
488
488
|
/**
|
|
489
489
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
490
|
-
* @summary List policies
|
|
490
|
+
* @summary List policies
|
|
491
491
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
492
492
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
493
493
|
* @param {any} [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.
|
|
@@ -514,7 +514,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
514
514
|
},
|
|
515
515
|
/**
|
|
516
516
|
* Request to update an existing policy by customer.
|
|
517
|
-
* @summary Request policy update
|
|
517
|
+
* @summary Request policy update
|
|
518
518
|
* @param {string} policyCode The code of the policy that the customer wants to update.
|
|
519
519
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
520
520
|
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
@@ -537,7 +537,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
537
537
|
},
|
|
538
538
|
/**
|
|
539
539
|
* Request to terminate an existing policy by customer.
|
|
540
|
-
* @summary Terminate a policy
|
|
540
|
+
* @summary Terminate a policy
|
|
541
541
|
* @param {string} policyCode The code of the policy that the customer wants to terminate.
|
|
542
542
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
543
543
|
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
@@ -582,7 +582,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
582
582
|
},
|
|
583
583
|
/**
|
|
584
584
|
* Withdraw policy by customer.
|
|
585
|
-
* @summary Withdraw policy
|
|
585
|
+
* @summary Withdraw the policy
|
|
586
586
|
* @param {string} policyCode The code of the policy that the customer wants to withdraw.
|
|
587
587
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
588
588
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -640,7 +640,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
640
640
|
},
|
|
641
641
|
/**
|
|
642
642
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
643
|
-
* @summary List policies
|
|
643
|
+
* @summary List policies
|
|
644
644
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
645
645
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
646
646
|
* @param {any} [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.
|
|
@@ -657,7 +657,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
657
657
|
},
|
|
658
658
|
/**
|
|
659
659
|
* Request to update an existing policy by customer.
|
|
660
|
-
* @summary Request policy update
|
|
660
|
+
* @summary Request policy update
|
|
661
661
|
* @param {string} policyCode The code of the policy that the customer wants to update.
|
|
662
662
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
663
663
|
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
@@ -670,7 +670,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
670
670
|
},
|
|
671
671
|
/**
|
|
672
672
|
* Request to terminate an existing policy by customer.
|
|
673
|
-
* @summary Terminate a policy
|
|
673
|
+
* @summary Terminate a policy
|
|
674
674
|
* @param {string} policyCode The code of the policy that the customer wants to terminate.
|
|
675
675
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
676
676
|
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
@@ -695,7 +695,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
695
695
|
},
|
|
696
696
|
/**
|
|
697
697
|
* Withdraw policy by customer.
|
|
698
|
-
* @summary Withdraw policy
|
|
698
|
+
* @summary Withdraw the policy
|
|
699
699
|
* @param {string} policyCode The code of the policy that the customer wants to withdraw.
|
|
700
700
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
701
701
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -745,7 +745,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
745
745
|
};
|
|
746
746
|
/**
|
|
747
747
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
748
|
-
* @summary List policies
|
|
748
|
+
* @summary List policies
|
|
749
749
|
* @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
|
|
750
750
|
* @param {*} [options] Override http request option.
|
|
751
751
|
* @throws {RequiredError}
|
|
@@ -757,7 +757,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
757
757
|
};
|
|
758
758
|
/**
|
|
759
759
|
* Request to update an existing policy by customer.
|
|
760
|
-
* @summary Request policy update
|
|
760
|
+
* @summary Request policy update
|
|
761
761
|
* @param {PoliciesApiRequestPolicyUpdateRequest} requestParameters Request parameters.
|
|
762
762
|
* @param {*} [options] Override http request option.
|
|
763
763
|
* @throws {RequiredError}
|
|
@@ -769,7 +769,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
769
769
|
};
|
|
770
770
|
/**
|
|
771
771
|
* Request to terminate an existing policy by customer.
|
|
772
|
-
* @summary Terminate a policy
|
|
772
|
+
* @summary Terminate a policy
|
|
773
773
|
* @param {PoliciesApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
|
|
774
774
|
* @param {*} [options] Override http request option.
|
|
775
775
|
* @throws {RequiredError}
|
|
@@ -793,7 +793,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
793
793
|
};
|
|
794
794
|
/**
|
|
795
795
|
* Withdraw policy by customer.
|
|
796
|
-
* @summary Withdraw policy
|
|
796
|
+
* @summary Withdraw the policy
|
|
797
797
|
* @param {PoliciesApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
|
|
798
798
|
* @param {*} [options] Override http request option.
|
|
799
799
|
* @throws {RequiredError}
|
|
@@ -31,7 +31,7 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
31
31
|
getProduct: (productCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
32
|
/**
|
|
33
33
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
34
|
-
* @summary List
|
|
34
|
+
* @summary List available products
|
|
35
35
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
36
36
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
37
37
|
* @param {any} [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.
|
|
@@ -62,7 +62,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
62
62
|
getProduct(productCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
|
|
63
63
|
/**
|
|
64
64
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
65
|
-
* @summary List
|
|
65
|
+
* @summary List available products
|
|
66
66
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
67
67
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
68
68
|
* @param {any} [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.
|
|
@@ -93,7 +93,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
93
93
|
getProduct(productCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetProductResponseClass>;
|
|
94
94
|
/**
|
|
95
95
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
96
|
-
* @summary List
|
|
96
|
+
* @summary List available products
|
|
97
97
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
98
98
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
99
99
|
* @param {any} [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.
|
|
@@ -205,7 +205,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
205
205
|
getProduct(requestParameters: ProductsApiGetProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
|
|
206
206
|
/**
|
|
207
207
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
208
|
-
* @summary List
|
|
208
|
+
* @summary List available products
|
|
209
209
|
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
210
210
|
* @param {*} [options] Override http request option.
|
|
211
211
|
* @throws {RequiredError}
|
package/dist/api/products-api.js
CHANGED
|
@@ -140,7 +140,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
140
140
|
},
|
|
141
141
|
/**
|
|
142
142
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
143
|
-
* @summary List
|
|
143
|
+
* @summary List available products
|
|
144
144
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
145
145
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
146
146
|
* @param {any} [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.
|
|
@@ -234,7 +234,7 @@ var ProductsApiFp = function (configuration) {
|
|
|
234
234
|
},
|
|
235
235
|
/**
|
|
236
236
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
237
|
-
* @summary List
|
|
237
|
+
* @summary List available products
|
|
238
238
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
239
239
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
240
240
|
* @param {any} [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.
|
|
@@ -283,7 +283,7 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
283
283
|
},
|
|
284
284
|
/**
|
|
285
285
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
286
|
-
* @summary List
|
|
286
|
+
* @summary List available products
|
|
287
287
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
288
288
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
289
289
|
* @param {any} [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.
|
|
@@ -326,7 +326,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
326
326
|
};
|
|
327
327
|
/**
|
|
328
328
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
329
|
-
* @summary List
|
|
329
|
+
* @summary List available products
|
|
330
330
|
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
331
331
|
* @param {*} [options] Override http request option.
|
|
332
332
|
* @throws {RequiredError}
|
package/dist/base.js
CHANGED
|
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
109
109
|
var fs = __importStar(require("fs"));
|
|
110
110
|
var path = __importStar(require("path"));
|
|
111
111
|
var os = __importStar(require("os"));
|
|
112
|
-
exports.BASE_PATH = "
|
|
112
|
+
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
113
113
|
var CONFIG_DIRECTORY = '.emil';
|
|
114
114
|
var CONFIG_FILENAME = 'credentials';
|
|
115
115
|
var KEY_USERNAME = 'emil_username';
|
|
@@ -20,7 +20,13 @@ export interface SharedCustomerPolicyObjectRequestDto {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof SharedCustomerPolicyObjectRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'insuredObjectName'
|
|
23
|
+
'insuredObjectName'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Insured object id
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SharedCustomerPolicyObjectRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'insuredObjectId'?: number;
|
|
24
30
|
/**
|
|
25
31
|
* Insured object data
|
|
26
32
|
* @type {object}
|
|
@@ -25,7 +25,13 @@ export interface SharedCustomerPolicyObjectRequestDto {
|
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof SharedCustomerPolicyObjectRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'insuredObjectName'
|
|
28
|
+
'insuredObjectName'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Insured object id
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof SharedCustomerPolicyObjectRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'insuredObjectId'?: number;
|
|
29
35
|
/**
|
|
30
36
|
* Insured object data
|
|
31
37
|
* @type {object}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/customer-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/customer-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|