@emilgroup/customer-sdk-node 1.11.2 → 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/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +7 -1
- package/index.ts +1 -1
- package/models/shared-customer-policy-object-request-dto.ts +7 -1
- package/package.json +2 -2
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/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.12.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.12.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
|
@@ -202,8 +202,8 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
202
202
|
};
|
|
203
203
|
},
|
|
204
204
|
/**
|
|
205
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
206
|
-
* @summary Respond to auth challenge
|
|
205
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
206
|
+
* @summary Respond to auth challenge
|
|
207
207
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
208
208
|
* @param {*} [options] Override http request option.
|
|
209
209
|
* @throws {RequiredError}
|
|
@@ -334,8 +334,8 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
334
334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
335
335
|
},
|
|
336
336
|
/**
|
|
337
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
338
|
-
* @summary Respond to auth challenge
|
|
337
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
338
|
+
* @summary Respond to auth challenge
|
|
339
339
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
340
340
|
* @param {*} [options] Override http request option.
|
|
341
341
|
* @throws {RequiredError}
|
|
@@ -407,8 +407,8 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
|
|
|
407
407
|
return localVarFp.resetPassword(resetPasswordByCustomerRequestDto, options).then((request) => request(axios, basePath));
|
|
408
408
|
},
|
|
409
409
|
/**
|
|
410
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
411
|
-
* @summary Respond to auth challenge
|
|
410
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
411
|
+
* @summary Respond to auth challenge
|
|
412
412
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
413
413
|
* @param {*} [options] Override http request option.
|
|
414
414
|
* @throws {RequiredError}
|
|
@@ -576,8 +576,8 @@ export class AuthenticationApi extends BaseAPI {
|
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
580
|
-
* @summary Respond to auth challenge
|
|
579
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
580
|
+
* @summary Respond to auth challenge
|
|
581
581
|
* @param {AuthenticationApiRespondToAuthChallengeRequest} requestParameters Request parameters.
|
|
582
582
|
* @param {*} [options] Override http request option.
|
|
583
583
|
* @throws {RequiredError}
|
package/api/claims-api.ts
CHANGED
|
@@ -46,7 +46,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
46
46
|
return {
|
|
47
47
|
/**
|
|
48
48
|
* Create a new claim for customer.
|
|
49
|
-
* @summary Create a new claim
|
|
49
|
+
* @summary Create a new claim
|
|
50
50
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
51
51
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
52
52
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -98,7 +98,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
98
98
|
},
|
|
99
99
|
/**
|
|
100
100
|
* List claims by customer.
|
|
101
|
-
* @summary List claims
|
|
101
|
+
* @summary List claims
|
|
102
102
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
104
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -174,7 +174,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
174
174
|
},
|
|
175
175
|
/**
|
|
176
176
|
* Update claim for customer.
|
|
177
|
-
* @summary Update claim
|
|
177
|
+
* @summary Update claim
|
|
178
178
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
179
179
|
* @param {string} claimCode The claim code to identify a claim.
|
|
180
180
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
@@ -296,7 +296,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
296
296
|
return {
|
|
297
297
|
/**
|
|
298
298
|
* Create a new claim for customer.
|
|
299
|
-
* @summary Create a new claim
|
|
299
|
+
* @summary Create a new claim
|
|
300
300
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
301
301
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
302
302
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -310,7 +310,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
310
310
|
},
|
|
311
311
|
/**
|
|
312
312
|
* List claims by customer.
|
|
313
|
-
* @summary List claims
|
|
313
|
+
* @summary List claims
|
|
314
314
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
315
315
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
316
316
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -329,7 +329,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
329
329
|
},
|
|
330
330
|
/**
|
|
331
331
|
* Update claim for customer.
|
|
332
|
-
* @summary Update claim
|
|
332
|
+
* @summary Update claim
|
|
333
333
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
334
334
|
* @param {string} claimCode The claim code to identify a claim.
|
|
335
335
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
@@ -369,7 +369,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
369
369
|
return {
|
|
370
370
|
/**
|
|
371
371
|
* Create a new claim for customer.
|
|
372
|
-
* @summary Create a new claim
|
|
372
|
+
* @summary Create a new claim
|
|
373
373
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
374
374
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
375
375
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -382,7 +382,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
382
382
|
},
|
|
383
383
|
/**
|
|
384
384
|
* List claims by customer.
|
|
385
|
-
* @summary List claims
|
|
385
|
+
* @summary List claims
|
|
386
386
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
387
387
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
388
388
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -400,7 +400,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
400
400
|
},
|
|
401
401
|
/**
|
|
402
402
|
* Update claim for customer.
|
|
403
|
-
* @summary Update claim
|
|
403
|
+
* @summary Update claim
|
|
404
404
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
405
405
|
* @param {string} claimCode The claim code to identify a claim.
|
|
406
406
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
@@ -627,7 +627,7 @@ export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
|
|
|
627
627
|
export class ClaimsApi extends BaseAPI {
|
|
628
628
|
/**
|
|
629
629
|
* Create a new claim for customer.
|
|
630
|
-
* @summary Create a new claim
|
|
630
|
+
* @summary Create a new claim
|
|
631
631
|
* @param {ClaimsApiCreateCustomerClaimRequest} requestParameters Request parameters.
|
|
632
632
|
* @param {*} [options] Override http request option.
|
|
633
633
|
* @throws {RequiredError}
|
|
@@ -639,7 +639,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
639
639
|
|
|
640
640
|
/**
|
|
641
641
|
* List claims by customer.
|
|
642
|
-
* @summary List claims
|
|
642
|
+
* @summary List claims
|
|
643
643
|
* @param {ClaimsApiListCustomerClaimsRequest} requestParameters Request parameters.
|
|
644
644
|
* @param {*} [options] Override http request option.
|
|
645
645
|
* @throws {RequiredError}
|
|
@@ -651,7 +651,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
651
651
|
|
|
652
652
|
/**
|
|
653
653
|
* Update claim for customer.
|
|
654
|
-
* @summary Update claim
|
|
654
|
+
* @summary Update claim
|
|
655
655
|
* @param {ClaimsApiUpdateCustomerClaimRequest} requestParameters Request parameters.
|
|
656
656
|
* @param {*} [options] Override http request option.
|
|
657
657
|
* @throws {RequiredError}
|
package/api/documents-api.ts
CHANGED
|
@@ -38,7 +38,7 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
38
38
|
return {
|
|
39
39
|
/**
|
|
40
40
|
* Get a presigned download url for document.
|
|
41
|
-
* @summary Get a
|
|
41
|
+
* @summary Get a download url for document
|
|
42
42
|
* @param {string} documentCode The document code.
|
|
43
43
|
* @param {string} customerCode
|
|
44
44
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -200,7 +200,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
200
200
|
return {
|
|
201
201
|
/**
|
|
202
202
|
* Get a presigned download url for document.
|
|
203
|
-
* @summary Get a
|
|
203
|
+
* @summary Get a download url for document
|
|
204
204
|
* @param {string} documentCode The document code.
|
|
205
205
|
* @param {string} customerCode
|
|
206
206
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -252,7 +252,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
252
252
|
return {
|
|
253
253
|
/**
|
|
254
254
|
* Get a presigned download url for document.
|
|
255
|
-
* @summary Get a
|
|
255
|
+
* @summary Get a download url for document
|
|
256
256
|
* @param {string} documentCode The document code.
|
|
257
257
|
* @param {string} customerCode
|
|
258
258
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -406,7 +406,7 @@ export interface DocumentsApiUploadAccountDocumentsRequest {
|
|
|
406
406
|
export class DocumentsApi extends BaseAPI {
|
|
407
407
|
/**
|
|
408
408
|
* Get a presigned download url for document.
|
|
409
|
-
* @summary Get a
|
|
409
|
+
* @summary Get a download url for document
|
|
410
410
|
* @param {DocumentsApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
|
|
411
411
|
* @param {*} [options] Override http request option.
|
|
412
412
|
* @throws {RequiredError}
|
package/api/payments-api.ts
CHANGED
|
@@ -38,7 +38,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
38
38
|
return {
|
|
39
39
|
/**
|
|
40
40
|
* Request to complete a payment change by customer.
|
|
41
|
-
* @summary Request payment setup complete
|
|
41
|
+
* @summary Request payment setup complete
|
|
42
42
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
43
43
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
44
44
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -90,7 +90,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
90
90
|
},
|
|
91
91
|
/**
|
|
92
92
|
* Request to initiate a payment change by customer.
|
|
93
|
-
* @summary Request payment setup initiation
|
|
93
|
+
* @summary Request payment setup initiation
|
|
94
94
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
95
95
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
96
96
|
* @param {*} [options] Override http request option.
|
|
@@ -141,7 +141,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
141
141
|
return {
|
|
142
142
|
/**
|
|
143
143
|
* Request to complete a payment change by customer.
|
|
144
|
-
* @summary Request payment setup complete
|
|
144
|
+
* @summary Request payment setup complete
|
|
145
145
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
146
146
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
147
147
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -155,7 +155,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
155
155
|
},
|
|
156
156
|
/**
|
|
157
157
|
* Request to initiate a payment change by customer.
|
|
158
|
-
* @summary Request payment setup initiation
|
|
158
|
+
* @summary Request payment setup initiation
|
|
159
159
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
160
160
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
@@ -177,7 +177,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
177
177
|
return {
|
|
178
178
|
/**
|
|
179
179
|
* Request to complete a payment change by customer.
|
|
180
|
-
* @summary Request payment setup complete
|
|
180
|
+
* @summary Request payment setup complete
|
|
181
181
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
182
182
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
183
183
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -190,7 +190,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
190
190
|
},
|
|
191
191
|
/**
|
|
192
192
|
* Request to initiate a payment change by customer.
|
|
193
|
-
* @summary Request payment setup initiation
|
|
193
|
+
* @summary Request payment setup initiation
|
|
194
194
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
195
195
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
196
196
|
* @param {*} [options] Override http request option.
|
|
@@ -267,7 +267,7 @@ export interface PaymentsApiInitiatePaymentSetupRequest {
|
|
|
267
267
|
export class PaymentsApi extends BaseAPI {
|
|
268
268
|
/**
|
|
269
269
|
* Request to complete a payment change by customer.
|
|
270
|
-
* @summary Request payment setup complete
|
|
270
|
+
* @summary Request payment setup complete
|
|
271
271
|
* @param {PaymentsApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
272
272
|
* @param {*} [options] Override http request option.
|
|
273
273
|
* @throws {RequiredError}
|
|
@@ -279,7 +279,7 @@ export class PaymentsApi extends BaseAPI {
|
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
281
|
* Request to initiate a payment change by customer.
|
|
282
|
-
* @summary Request payment setup initiation
|
|
282
|
+
* @summary Request payment setup initiation
|
|
283
283
|
* @param {PaymentsApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
284
284
|
* @param {*} [options] Override http request option.
|
|
285
285
|
* @throws {RequiredError}
|
package/api/policies-api.ts
CHANGED
|
@@ -150,7 +150,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
150
150
|
},
|
|
151
151
|
/**
|
|
152
152
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
153
|
-
* @summary List policies
|
|
153
|
+
* @summary List policies
|
|
154
154
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
155
155
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
156
156
|
* @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.
|
|
@@ -221,7 +221,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
221
221
|
},
|
|
222
222
|
/**
|
|
223
223
|
* Request to update an existing policy by customer.
|
|
224
|
-
* @summary Request policy update
|
|
224
|
+
* @summary Request policy update
|
|
225
225
|
* @param {string} policyCode The code of the policy that the customer wants to update.
|
|
226
226
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
227
227
|
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
@@ -272,7 +272,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
272
272
|
},
|
|
273
273
|
/**
|
|
274
274
|
* Request to terminate an existing policy by customer.
|
|
275
|
-
* @summary Terminate a policy
|
|
275
|
+
* @summary Terminate a policy
|
|
276
276
|
* @param {string} policyCode The code of the policy that the customer wants to terminate.
|
|
277
277
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
278
278
|
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
@@ -369,7 +369,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
369
369
|
},
|
|
370
370
|
/**
|
|
371
371
|
* Withdraw policy by customer.
|
|
372
|
-
* @summary Withdraw policy
|
|
372
|
+
* @summary Withdraw the policy
|
|
373
373
|
* @param {string} policyCode The code of the policy that the customer wants to withdraw.
|
|
374
374
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
375
375
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -452,7 +452,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
452
452
|
},
|
|
453
453
|
/**
|
|
454
454
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
455
|
-
* @summary List policies
|
|
455
|
+
* @summary List policies
|
|
456
456
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
457
457
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
458
458
|
* @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.
|
|
@@ -470,7 +470,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
470
470
|
},
|
|
471
471
|
/**
|
|
472
472
|
* Request to update an existing policy by customer.
|
|
473
|
-
* @summary Request policy update
|
|
473
|
+
* @summary Request policy update
|
|
474
474
|
* @param {string} policyCode The code of the policy that the customer wants to update.
|
|
475
475
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
476
476
|
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
@@ -484,7 +484,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
484
484
|
},
|
|
485
485
|
/**
|
|
486
486
|
* Request to terminate an existing policy by customer.
|
|
487
|
-
* @summary Terminate a policy
|
|
487
|
+
* @summary Terminate a policy
|
|
488
488
|
* @param {string} policyCode The code of the policy that the customer wants to terminate.
|
|
489
489
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
490
490
|
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
@@ -511,7 +511,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
511
511
|
},
|
|
512
512
|
/**
|
|
513
513
|
* Withdraw policy by customer.
|
|
514
|
-
* @summary Withdraw policy
|
|
514
|
+
* @summary Withdraw the policy
|
|
515
515
|
* @param {string} policyCode The code of the policy that the customer wants to withdraw.
|
|
516
516
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
517
517
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -560,7 +560,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
560
560
|
},
|
|
561
561
|
/**
|
|
562
562
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
563
|
-
* @summary List policies
|
|
563
|
+
* @summary List policies
|
|
564
564
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
565
565
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
566
566
|
* @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.
|
|
@@ -577,7 +577,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
577
577
|
},
|
|
578
578
|
/**
|
|
579
579
|
* Request to update an existing policy by customer.
|
|
580
|
-
* @summary Request policy update
|
|
580
|
+
* @summary Request policy update
|
|
581
581
|
* @param {string} policyCode The code of the policy that the customer wants to update.
|
|
582
582
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
583
583
|
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
@@ -590,7 +590,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
590
590
|
},
|
|
591
591
|
/**
|
|
592
592
|
* Request to terminate an existing policy by customer.
|
|
593
|
-
* @summary Terminate a policy
|
|
593
|
+
* @summary Terminate a policy
|
|
594
594
|
* @param {string} policyCode The code of the policy that the customer wants to terminate.
|
|
595
595
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
596
596
|
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
@@ -615,7 +615,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
615
615
|
},
|
|
616
616
|
/**
|
|
617
617
|
* Withdraw policy by customer.
|
|
618
|
-
* @summary Withdraw policy
|
|
618
|
+
* @summary Withdraw the policy
|
|
619
619
|
* @param {string} policyCode The code of the policy that the customer wants to withdraw.
|
|
620
620
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
621
621
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -920,7 +920,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
920
920
|
|
|
921
921
|
/**
|
|
922
922
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
923
|
-
* @summary List policies
|
|
923
|
+
* @summary List policies
|
|
924
924
|
* @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
|
|
925
925
|
* @param {*} [options] Override http request option.
|
|
926
926
|
* @throws {RequiredError}
|
|
@@ -932,7 +932,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
932
932
|
|
|
933
933
|
/**
|
|
934
934
|
* Request to update an existing policy by customer.
|
|
935
|
-
* @summary Request policy update
|
|
935
|
+
* @summary Request policy update
|
|
936
936
|
* @param {PoliciesApiRequestPolicyUpdateRequest} requestParameters Request parameters.
|
|
937
937
|
* @param {*} [options] Override http request option.
|
|
938
938
|
* @throws {RequiredError}
|
|
@@ -944,7 +944,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
944
944
|
|
|
945
945
|
/**
|
|
946
946
|
* Request to terminate an existing policy by customer.
|
|
947
|
-
* @summary Terminate a policy
|
|
947
|
+
* @summary Terminate a policy
|
|
948
948
|
* @param {PoliciesApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
|
|
949
949
|
* @param {*} [options] Override http request option.
|
|
950
950
|
* @throws {RequiredError}
|
|
@@ -968,7 +968,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
968
968
|
|
|
969
969
|
/**
|
|
970
970
|
* Withdraw policy by customer.
|
|
971
|
-
* @summary Withdraw policy
|
|
971
|
+
* @summary Withdraw the policy
|
|
972
972
|
* @param {PoliciesApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
|
|
973
973
|
* @param {*} [options] Override http request option.
|
|
974
974
|
* @throws {RequiredError}
|
package/api/products-api.ts
CHANGED
|
@@ -81,7 +81,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
81
81
|
},
|
|
82
82
|
/**
|
|
83
83
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
84
|
-
* @summary List
|
|
84
|
+
* @summary List available products
|
|
85
85
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
86
86
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
87
87
|
* @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.
|
|
@@ -175,7 +175,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
175
175
|
},
|
|
176
176
|
/**
|
|
177
177
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
178
|
-
* @summary List
|
|
178
|
+
* @summary List available products
|
|
179
179
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
180
180
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
181
181
|
* @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.
|
|
@@ -215,7 +215,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
215
215
|
},
|
|
216
216
|
/**
|
|
217
217
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
218
|
-
* @summary List
|
|
218
|
+
* @summary List available products
|
|
219
219
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
220
220
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
221
221
|
* @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.
|
|
@@ -345,7 +345,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
347
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
348
|
-
* @summary List
|
|
348
|
+
* @summary List available products
|
|
349
349
|
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
350
350
|
* @param {*} [options] Override http request option.
|
|
351
351
|
* @throws {RequiredError}
|
package/base.ts
CHANGED
|
@@ -22,7 +22,7 @@ import * as fs from 'fs';
|
|
|
22
22
|
import * as path from 'path';
|
|
23
23
|
import * as os from 'os';
|
|
24
24
|
|
|
25
|
-
export const BASE_PATH = "
|
|
25
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
26
26
|
const CONFIG_DIRECTORY = '.emil';
|
|
27
27
|
const CONFIG_FILENAME = 'credentials';
|
|
28
28
|
const KEY_USERNAME = 'emil_username';
|
|
@@ -58,8 +58,8 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
58
58
|
*/
|
|
59
59
|
resetPassword: (resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
60
|
/**
|
|
61
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
62
|
-
* @summary Respond to auth challenge
|
|
61
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
62
|
+
* @summary Respond to auth challenge
|
|
63
63
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
65
65
|
* @throws {RequiredError}
|
|
@@ -113,8 +113,8 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
113
113
|
*/
|
|
114
114
|
resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
115
115
|
/**
|
|
116
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
117
|
-
* @summary Respond to auth challenge
|
|
116
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
117
|
+
* @summary Respond to auth challenge
|
|
118
118
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
119
119
|
* @param {*} [options] Override http request option.
|
|
120
120
|
* @throws {RequiredError}
|
|
@@ -168,8 +168,8 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
|
|
|
168
168
|
*/
|
|
169
169
|
resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: any): AxiosPromise<void>;
|
|
170
170
|
/**
|
|
171
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
172
|
-
* @summary Respond to auth challenge
|
|
171
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
172
|
+
* @summary Respond to auth challenge
|
|
173
173
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
174
174
|
* @param {*} [options] Override http request option.
|
|
175
175
|
* @throws {RequiredError}
|
|
@@ -312,8 +312,8 @@ export declare class AuthenticationApi extends BaseAPI {
|
|
|
312
312
|
*/
|
|
313
313
|
resetPassword(requestParameters: AuthenticationApiResetPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
314
314
|
/**
|
|
315
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
316
|
-
* @summary Respond to auth challenge
|
|
315
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
316
|
+
* @summary Respond to auth challenge
|
|
317
317
|
* @param {AuthenticationApiRespondToAuthChallengeRequest} requestParameters Request parameters.
|
|
318
318
|
* @param {*} [options] Override http request option.
|
|
319
319
|
* @throws {RequiredError}
|
|
@@ -241,8 +241,8 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
241
241
|
});
|
|
242
242
|
},
|
|
243
243
|
/**
|
|
244
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
245
|
-
* @summary Respond to auth challenge
|
|
244
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
245
|
+
* @summary Respond to auth challenge
|
|
246
246
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
247
247
|
* @param {*} [options] Override http request option.
|
|
248
248
|
* @throws {RequiredError}
|
|
@@ -403,8 +403,8 @@ var AuthenticationApiFp = function (configuration) {
|
|
|
403
403
|
});
|
|
404
404
|
},
|
|
405
405
|
/**
|
|
406
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
407
|
-
* @summary Respond to auth challenge
|
|
406
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
407
|
+
* @summary Respond to auth challenge
|
|
408
408
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
409
409
|
* @param {*} [options] Override http request option.
|
|
410
410
|
* @throws {RequiredError}
|
|
@@ -494,8 +494,8 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
494
494
|
return localVarFp.resetPassword(resetPasswordByCustomerRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
495
495
|
},
|
|
496
496
|
/**
|
|
497
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
498
|
-
* @summary Respond to auth challenge
|
|
497
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
498
|
+
* @summary Respond to auth challenge
|
|
499
499
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
500
500
|
* @param {*} [options] Override http request option.
|
|
501
501
|
* @throws {RequiredError}
|
|
@@ -576,8 +576,8 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
576
576
|
return (0, exports.AuthenticationApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordByCustomerRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
577
577
|
};
|
|
578
578
|
/**
|
|
579
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
580
|
-
* @summary Respond to auth challenge
|
|
579
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
580
|
+
* @summary Respond to auth challenge
|
|
581
581
|
* @param {AuthenticationApiRespondToAuthChallengeRequest} requestParameters Request parameters.
|
|
582
582
|
* @param {*} [options] Override http request option.
|
|
583
583
|
* @throws {RequiredError}
|