@emilgroup/insurance-sdk-node 1.49.0 → 1.50.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/.openapi-generator/FILES +30 -8
- package/README.md +2 -2
- package/api/booking-funnel-versions-api.ts +8 -8
- package/api/booking-funnels-api.ts +12 -12
- package/api/emil-functions-api.ts +1314 -0
- package/api/insured-object-types-api.ts +4 -4
- package/api/insured-objects-api.ts +8 -8
- package/api/lead-statuses-api.ts +104 -20
- package/api/lead-versions-api.ts +8 -8
- package/api/leads-api.ts +8 -8
- package/api/named-ranges-api.ts +8 -8
- package/api/partner-links-api.ts +800 -0
- package/api/{policy-partner-roles-api.ts → partner-roles-api.ts} +180 -180
- package/api/policies-api.ts +116 -118
- package/api/premium-formulas-api.ts +8 -8
- package/api/product-factors-api.ts +8 -8
- package/api/product-fields-api.ts +119 -12
- package/api/product-versions-api.ts +4 -4
- package/api/products-api.ts +20 -20
- package/api/status-transition-rules-api.ts +8 -8
- package/api.ts +6 -2
- package/dist/api/booking-funnel-versions-api.d.ts +8 -8
- package/dist/api/booking-funnel-versions-api.js +8 -8
- package/dist/api/booking-funnels-api.d.ts +12 -12
- package/dist/api/booking-funnels-api.js +12 -12
- package/dist/api/emil-functions-api.d.ts +727 -0
- package/dist/api/emil-functions-api.js +1202 -0
- package/dist/api/insured-object-types-api.d.ts +4 -4
- package/dist/api/insured-object-types-api.js +4 -4
- package/dist/api/insured-objects-api.d.ts +8 -8
- package/dist/api/insured-objects-api.js +8 -8
- package/dist/api/lead-statuses-api.d.ts +71 -17
- package/dist/api/lead-statuses-api.js +53 -17
- package/dist/api/lead-versions-api.d.ts +8 -8
- package/dist/api/lead-versions-api.js +8 -8
- package/dist/api/leads-api.d.ts +8 -8
- package/dist/api/leads-api.js +8 -8
- package/dist/api/named-ranges-api.d.ts +8 -8
- package/dist/api/named-ranges-api.js +8 -8
- package/dist/api/partner-links-api.d.ts +450 -0
- package/dist/api/partner-links-api.js +738 -0
- package/dist/api/partner-roles-api.d.ts +385 -0
- package/dist/api/{policy-partner-roles-api.js → partner-roles-api.js} +136 -136
- package/dist/api/policies-api.d.ts +112 -112
- package/dist/api/policies-api.js +66 -67
- package/dist/api/premium-formulas-api.d.ts +8 -8
- package/dist/api/premium-formulas-api.js +8 -8
- package/dist/api/product-factors-api.d.ts +8 -8
- package/dist/api/product-factors-api.js +8 -8
- package/dist/api/product-fields-api.d.ts +69 -12
- package/dist/api/product-fields-api.js +105 -12
- package/dist/api/product-versions-api.d.ts +4 -4
- package/dist/api/product-versions-api.js +4 -4
- package/dist/api/products-api.d.ts +20 -20
- package/dist/api/products-api.js +18 -18
- package/dist/api/status-transition-rules-api.d.ts +8 -8
- package/dist/api/status-transition-rules-api.js +8 -8
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/models/booking-funnel-class.d.ts +1 -1
- package/dist/models/create-account-request-dto.d.ts +1 -1
- package/dist/models/create-account-request-dto.js +1 -1
- package/dist/models/create-booking-funnel-request-dto.d.ts +1 -1
- package/dist/models/create-emil-function-request-dto.d.ts +42 -0
- package/dist/models/create-emil-function-secret-request-dto.d.ts +36 -0
- package/dist/models/create-lead-request-dto.d.ts +12 -0
- package/dist/models/{update-policy-partner-role-request-dto.d.ts → create-partner-role-request-dto.d.ts} +6 -6
- package/dist/models/{get-policy-partner-role-response-class.d.ts → create-partner-role-response-class.d.ts} +7 -7
- package/dist/models/create-product-field-request-dto.d.ts +7 -1
- package/dist/models/create-product-request-dto.d.ts +1 -1
- package/dist/models/emil-function-class.d.ts +60 -0
- package/dist/models/{create-policy-partner-role-response-class.d.ts → emil-function-secret-class.d.ts} +12 -7
- package/dist/models/execute-emil-function-request-dto.d.ts +24 -0
- package/dist/models/get-emil-function-secret-response-class.d.ts +24 -0
- package/dist/models/get-emil-function-secret-response-class.js +15 -0
- package/dist/models/{update-policy-partner-role-response-class.d.ts → get-partner-link-response-class.d.ts} +7 -7
- package/dist/models/get-partner-link-response-class.js +15 -0
- package/dist/models/get-partner-role-response-class.d.ts +25 -0
- package/dist/models/get-partner-role-response-class.js +15 -0
- package/dist/models/get-product-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +27 -7
- package/dist/models/index.js +27 -7
- package/dist/models/insured-object-type-class.d.ts +1 -1
- package/dist/models/lead-class.d.ts +8 -1
- package/dist/models/lead-status-class.d.ts +1 -1
- package/dist/models/link-partner-request-dto.d.ts +54 -0
- package/dist/models/link-partner-request-dto.js +15 -0
- package/dist/models/link-partner-response-class.d.ts +25 -0
- package/dist/models/link-partner-response-class.js +15 -0
- package/dist/models/list-emil-function-secrets-response-class.d.ts +25 -0
- package/dist/models/list-emil-function-secrets-response-class.js +15 -0
- package/dist/models/{list-policy-partner-roles-response-class.d.ts → list-emil-functions-response-class.d.ts} +8 -8
- package/dist/models/list-emil-functions-response-class.js +15 -0
- package/dist/models/list-partner-links-response-class.d.ts +31 -0
- package/dist/models/list-partner-links-response-class.js +15 -0
- package/dist/models/list-partner-roles-response-class.d.ts +31 -0
- package/dist/models/list-partner-roles-response-class.js +15 -0
- package/dist/models/partner-class.d.ts +60 -0
- package/dist/models/partner-class.js +15 -0
- package/dist/models/partner-link-class.d.ts +86 -0
- package/dist/models/partner-link-class.js +15 -0
- package/dist/models/{policy-partner-role-class.d.ts → partner-role-class.d.ts} +10 -10
- package/dist/models/partner-role-class.js +15 -0
- package/dist/models/patch-draft-policy-request-dto.d.ts +1 -1
- package/dist/models/policy-class.d.ts +7 -0
- package/dist/models/product-class.d.ts +1 -1
- package/dist/models/product-field-class.d.ts +6 -0
- package/dist/models/shared-product-field-class.d.ts +6 -0
- package/dist/models/status-transition-rule-class.d.ts +1 -1
- package/dist/models/swap-product-fields-order-request-dto.d.ts +30 -0
- package/dist/models/swap-product-fields-order-request-dto.js +15 -0
- package/dist/models/unlink-partner-response-class.d.ts +25 -0
- package/dist/models/unlink-partner-response-class.js +15 -0
- package/dist/models/update-emil-function-request-dto.d.ts +42 -0
- package/dist/models/update-emil-function-request-dto.js +15 -0
- package/dist/models/update-emil-function-secret-request-dto.d.ts +30 -0
- package/dist/models/update-emil-function-secret-request-dto.js +15 -0
- package/dist/models/update-partner-link-request-dto.d.ts +30 -0
- package/dist/models/update-partner-link-request-dto.js +15 -0
- package/dist/models/update-partner-link-response-class.d.ts +25 -0
- package/dist/models/update-partner-link-response-class.js +15 -0
- package/dist/models/{create-policy-partner-role-request-dto.d.ts → update-partner-role-request-dto.d.ts} +6 -6
- package/dist/models/update-partner-role-request-dto.js +15 -0
- package/dist/models/update-partner-role-response-class.d.ts +25 -0
- package/dist/models/update-partner-role-response-class.js +15 -0
- package/dist/models/update-product-field-request-dto.d.ts +7 -1
- package/dist/models/update-product-request-dto.d.ts +1 -1
- package/models/booking-funnel-class.ts +1 -1
- package/models/create-account-request-dto.ts +1 -1
- package/models/create-booking-funnel-request-dto.ts +1 -1
- package/models/create-emil-function-request-dto.ts +48 -0
- package/models/create-emil-function-secret-request-dto.ts +42 -0
- package/models/create-lead-request-dto.ts +12 -0
- package/models/{update-policy-partner-role-request-dto.ts → create-partner-role-request-dto.ts} +6 -6
- package/models/{get-policy-partner-role-response-class.ts → create-partner-role-response-class.ts} +7 -7
- package/models/create-product-field-request-dto.ts +7 -1
- package/models/create-product-request-dto.ts +1 -1
- package/models/emil-function-class.ts +66 -0
- package/models/{update-policy-partner-role-response-class.ts → emil-function-secret-class.ts} +12 -7
- package/models/execute-emil-function-request-dto.ts +30 -0
- package/models/get-emil-function-secret-response-class.ts +30 -0
- package/models/{create-policy-partner-role-response-class.ts → get-partner-link-response-class.ts} +7 -7
- package/models/get-partner-role-response-class.ts +31 -0
- package/models/get-product-request-dto.ts +1 -1
- package/models/index.ts +27 -7
- package/models/insured-object-type-class.ts +1 -1
- package/models/lead-class.ts +8 -1
- package/models/lead-status-class.ts +1 -1
- package/models/link-partner-request-dto.ts +60 -0
- package/models/link-partner-response-class.ts +31 -0
- package/models/list-emil-function-secrets-response-class.ts +31 -0
- package/models/{list-policy-partner-roles-response-class.ts → list-emil-functions-response-class.ts} +8 -8
- package/models/list-partner-links-response-class.ts +37 -0
- package/models/list-partner-roles-response-class.ts +37 -0
- package/models/partner-class.ts +66 -0
- package/models/partner-link-class.ts +92 -0
- package/models/{policy-partner-role-class.ts → partner-role-class.ts} +10 -10
- package/models/patch-draft-policy-request-dto.ts +1 -1
- package/models/policy-class.ts +7 -0
- package/models/product-class.ts +1 -1
- package/models/product-field-class.ts +6 -0
- package/models/shared-product-field-class.ts +6 -0
- package/models/status-transition-rule-class.ts +1 -1
- package/models/swap-product-fields-order-request-dto.ts +36 -0
- package/models/unlink-partner-response-class.ts +31 -0
- package/models/update-emil-function-request-dto.ts +48 -0
- package/models/update-emil-function-secret-request-dto.ts +36 -0
- package/models/update-partner-link-request-dto.ts +36 -0
- package/models/update-partner-link-response-class.ts +31 -0
- package/models/{create-policy-partner-role-request-dto.ts → update-partner-role-request-dto.ts} +6 -6
- package/models/update-partner-role-response-class.ts +31 -0
- package/models/update-product-field-request-dto.ts +7 -1
- package/models/update-product-request-dto.ts +1 -1
- package/package.json +1 -1
- package/dist/api/policy-partner-roles-api.d.ts +0 -385
- /package/dist/models/{create-policy-partner-role-request-dto.js → create-emil-function-request-dto.js} +0 -0
- /package/dist/models/{create-policy-partner-role-response-class.js → create-emil-function-secret-request-dto.js} +0 -0
- /package/dist/models/{get-policy-partner-role-response-class.js → create-partner-role-request-dto.js} +0 -0
- /package/dist/models/{list-policy-partner-roles-response-class.js → create-partner-role-response-class.js} +0 -0
- /package/dist/models/{policy-partner-role-class.js → emil-function-class.js} +0 -0
- /package/dist/models/{update-policy-partner-role-request-dto.js → emil-function-secret-class.js} +0 -0
- /package/dist/models/{update-policy-partner-role-response-class.js → execute-emil-function-request-dto.js} +0 -0
package/api/policies-api.ts
CHANGED
|
@@ -272,7 +272,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
272
272
|
};
|
|
273
273
|
},
|
|
274
274
|
/**
|
|
275
|
-
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code
|
|
275
|
+
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
|
|
276
276
|
* @summary Retrieve the draft-policy
|
|
277
277
|
* @param {string} policyCode
|
|
278
278
|
* @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
|
|
@@ -329,15 +329,15 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
329
329
|
};
|
|
330
330
|
},
|
|
331
331
|
/**
|
|
332
|
-
* Retrieves the details of the policy that was previously created. Supply the unique policy code
|
|
332
|
+
* Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
|
|
333
333
|
* @summary Retrieve the policy
|
|
334
334
|
* @param {string} code Unique identifier for the object.
|
|
335
335
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
336
|
-
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
336
|
+
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'} [expand] You can expand policy in this endpoint. \' + \'By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
|
|
337
337
|
* @param {*} [options] Override http request option.
|
|
338
338
|
* @throws {RequiredError}
|
|
339
339
|
*/
|
|
340
|
-
getPolicy: async (code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
340
|
+
getPolicy: async (code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
341
341
|
// verify required parameter 'code' is not null or undefined
|
|
342
342
|
assertParamExists('getPolicy', 'code', code)
|
|
343
343
|
const localVarPath = `/insuranceservice/v1/policies/{code}`
|
|
@@ -429,20 +429,20 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
429
429
|
};
|
|
430
430
|
},
|
|
431
431
|
/**
|
|
432
|
-
* Returns a list of policies you have previously created.
|
|
432
|
+
* Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
433
433
|
* @summary List policies
|
|
434
434
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
435
435
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
436
436
|
* @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.
|
|
437
|
-
* @param {
|
|
437
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
438
438
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
439
|
-
* @param {
|
|
440
|
-
* @param {
|
|
441
|
-
* @param {
|
|
439
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
440
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.<i>
|
|
441
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
442
442
|
* @param {*} [options] Override http request option.
|
|
443
443
|
* @throws {RequiredError}
|
|
444
444
|
*/
|
|
445
|
-
listPolicies: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
445
|
+
listPolicies: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
446
446
|
const localVarPath = `/insuranceservice/v1/policies`;
|
|
447
447
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
448
448
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -505,22 +505,20 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
505
505
|
};
|
|
506
506
|
},
|
|
507
507
|
/**
|
|
508
|
-
*
|
|
508
|
+
* Returns a list of policy objects you have previously created. The policy objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
509
509
|
* @summary List policy objects
|
|
510
|
-
* @param {any} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
511
510
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
512
511
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
513
512
|
* @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.
|
|
513
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
514
514
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
515
|
-
* @param {
|
|
516
|
-
* @param {any} [expand]
|
|
517
|
-
* @param {
|
|
515
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
516
|
+
* @param {any} [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.
|
|
517
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
518
518
|
* @param {*} [options] Override http request option.
|
|
519
519
|
* @throws {RequiredError}
|
|
520
520
|
*/
|
|
521
|
-
listPolicyObjects: async (
|
|
522
|
-
// verify required parameter 'filter' is not null or undefined
|
|
523
|
-
assertParamExists('listPolicyObjects', 'filter', filter)
|
|
521
|
+
listPolicyObjects: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
524
522
|
const localVarPath = `/insuranceservice/v1/policies/policy-objects`;
|
|
525
523
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
526
524
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -583,21 +581,21 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
583
581
|
};
|
|
584
582
|
},
|
|
585
583
|
/**
|
|
586
|
-
* Returns a list of policy versions you have previously created.
|
|
584
|
+
* Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
587
585
|
* @summary List policy versions
|
|
588
586
|
* @param {string} policyCode
|
|
589
587
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
590
588
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
591
589
|
* @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.
|
|
592
|
-
* @param {
|
|
590
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, policyId</i>
|
|
593
591
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
594
|
-
* @param {
|
|
595
|
-
* @param {
|
|
596
|
-
* @param {
|
|
592
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyId, createdAt, updatedAt</i>
|
|
593
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: timelines, premiums, premiumItems, premiumFormulas.<i>
|
|
594
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, policyId</i>
|
|
597
595
|
* @param {*} [options] Override http request option.
|
|
598
596
|
* @throws {RequiredError}
|
|
599
597
|
*/
|
|
600
|
-
listPolicyVersions: async (policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
598
|
+
listPolicyVersions: async (policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
601
599
|
// verify required parameter 'policyCode' is not null or undefined
|
|
602
600
|
assertParamExists('listPolicyVersions', 'policyCode', policyCode)
|
|
603
601
|
const localVarPath = `/insuranceservice/v1/policies/{policyCode}/versions`
|
|
@@ -1034,7 +1032,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
1034
1032
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1035
1033
|
},
|
|
1036
1034
|
/**
|
|
1037
|
-
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code
|
|
1035
|
+
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
|
|
1038
1036
|
* @summary Retrieve the draft-policy
|
|
1039
1037
|
* @param {string} policyCode
|
|
1040
1038
|
* @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
|
|
@@ -1048,15 +1046,15 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
1048
1046
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1049
1047
|
},
|
|
1050
1048
|
/**
|
|
1051
|
-
* Retrieves the details of the policy that was previously created. Supply the unique policy code
|
|
1049
|
+
* Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
|
|
1052
1050
|
* @summary Retrieve the policy
|
|
1053
1051
|
* @param {string} code Unique identifier for the object.
|
|
1054
1052
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1055
|
-
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
1053
|
+
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'} [expand] You can expand policy in this endpoint. \' + \'By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
|
|
1056
1054
|
* @param {*} [options] Override http request option.
|
|
1057
1055
|
* @throws {RequiredError}
|
|
1058
1056
|
*/
|
|
1059
|
-
async getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
|
|
1057
|
+
async getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
|
|
1060
1058
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, expand, options);
|
|
1061
1059
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1062
1060
|
},
|
|
@@ -1074,57 +1072,57 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
1074
1072
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1075
1073
|
},
|
|
1076
1074
|
/**
|
|
1077
|
-
* Returns a list of policies you have previously created.
|
|
1075
|
+
* Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1078
1076
|
* @summary List policies
|
|
1079
1077
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1080
1078
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1081
1079
|
* @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.
|
|
1082
|
-
* @param {
|
|
1080
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1083
1081
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1084
|
-
* @param {
|
|
1085
|
-
* @param {
|
|
1086
|
-
* @param {
|
|
1082
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1083
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.<i>
|
|
1084
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1087
1085
|
* @param {*} [options] Override http request option.
|
|
1088
1086
|
* @throws {RequiredError}
|
|
1089
1087
|
*/
|
|
1090
|
-
async listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
1088
|
+
async listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
|
|
1091
1089
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
1092
1090
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1093
1091
|
},
|
|
1094
1092
|
/**
|
|
1095
|
-
*
|
|
1093
|
+
* Returns a list of policy objects you have previously created. The policy objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1096
1094
|
* @summary List policy objects
|
|
1097
|
-
* @param {any} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
1098
1095
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1099
1096
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1100
1097
|
* @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.
|
|
1098
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1101
1099
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1102
|
-
* @param {
|
|
1103
|
-
* @param {any} [expand]
|
|
1104
|
-
* @param {
|
|
1100
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
1101
|
+
* @param {any} [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.
|
|
1102
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1105
1103
|
* @param {*} [options] Override http request option.
|
|
1106
1104
|
* @throws {RequiredError}
|
|
1107
1105
|
*/
|
|
1108
|
-
async listPolicyObjects(
|
|
1109
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyObjects(
|
|
1106
|
+
async listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyObjectsResponseClass>> {
|
|
1107
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyObjects(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
1110
1108
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1111
1109
|
},
|
|
1112
1110
|
/**
|
|
1113
|
-
* Returns a list of policy versions you have previously created.
|
|
1111
|
+
* Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1114
1112
|
* @summary List policy versions
|
|
1115
1113
|
* @param {string} policyCode
|
|
1116
1114
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1117
1115
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1118
1116
|
* @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.
|
|
1119
|
-
* @param {
|
|
1117
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, policyId</i>
|
|
1120
1118
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1121
|
-
* @param {
|
|
1122
|
-
* @param {
|
|
1123
|
-
* @param {
|
|
1119
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyId, createdAt, updatedAt</i>
|
|
1120
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: timelines, premiums, premiumItems, premiumFormulas.<i>
|
|
1121
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, policyId</i>
|
|
1124
1122
|
* @param {*} [options] Override http request option.
|
|
1125
1123
|
* @throws {RequiredError}
|
|
1126
1124
|
*/
|
|
1127
|
-
async listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
1125
|
+
async listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyVersionResponseClass>> {
|
|
1128
1126
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
1129
1127
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1130
1128
|
},
|
|
@@ -1265,7 +1263,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1265
1263
|
return localVarFp.deleteDraftPolicy(policyCode, policyCode2, authorization, options).then((request) => request(axios, basePath));
|
|
1266
1264
|
},
|
|
1267
1265
|
/**
|
|
1268
|
-
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code
|
|
1266
|
+
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
|
|
1269
1267
|
* @summary Retrieve the draft-policy
|
|
1270
1268
|
* @param {string} policyCode
|
|
1271
1269
|
* @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
|
|
@@ -1278,15 +1276,15 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1278
1276
|
return localVarFp.getDraftPolicy(policyCode, policyCode2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
1279
1277
|
},
|
|
1280
1278
|
/**
|
|
1281
|
-
* Retrieves the details of the policy that was previously created. Supply the unique policy code
|
|
1279
|
+
* Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
|
|
1282
1280
|
* @summary Retrieve the policy
|
|
1283
1281
|
* @param {string} code Unique identifier for the object.
|
|
1284
1282
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1285
|
-
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
1283
|
+
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'} [expand] You can expand policy in this endpoint. \' + \'By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
|
|
1286
1284
|
* @param {*} [options] Override http request option.
|
|
1287
1285
|
* @throws {RequiredError}
|
|
1288
1286
|
*/
|
|
1289
|
-
getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<GetPolicyResponseClass> {
|
|
1287
|
+
getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options?: any): AxiosPromise<GetPolicyResponseClass> {
|
|
1290
1288
|
return localVarFp.getPolicy(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
1291
1289
|
},
|
|
1292
1290
|
/**
|
|
@@ -1302,55 +1300,55 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1302
1300
|
return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, options).then((request) => request(axios, basePath));
|
|
1303
1301
|
},
|
|
1304
1302
|
/**
|
|
1305
|
-
* Returns a list of policies you have previously created.
|
|
1303
|
+
* Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1306
1304
|
* @summary List policies
|
|
1307
1305
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1308
1306
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1309
1307
|
* @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.
|
|
1310
|
-
* @param {
|
|
1308
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1311
1309
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1312
|
-
* @param {
|
|
1313
|
-
* @param {
|
|
1314
|
-
* @param {
|
|
1310
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1311
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.<i>
|
|
1312
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1315
1313
|
* @param {*} [options] Override http request option.
|
|
1316
1314
|
* @throws {RequiredError}
|
|
1317
1315
|
*/
|
|
1318
|
-
listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
1316
|
+
listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
|
|
1319
1317
|
return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1320
1318
|
},
|
|
1321
1319
|
/**
|
|
1322
|
-
*
|
|
1320
|
+
* Returns a list of policy objects you have previously created. The policy objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1323
1321
|
* @summary List policy objects
|
|
1324
|
-
* @param {any} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
1325
1322
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1326
1323
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1327
1324
|
* @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.
|
|
1325
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1328
1326
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1329
|
-
* @param {
|
|
1330
|
-
* @param {any} [expand]
|
|
1331
|
-
* @param {
|
|
1327
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
1328
|
+
* @param {any} [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.
|
|
1329
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1332
1330
|
* @param {*} [options] Override http request option.
|
|
1333
1331
|
* @throws {RequiredError}
|
|
1334
1332
|
*/
|
|
1335
|
-
listPolicyObjects(
|
|
1336
|
-
return localVarFp.listPolicyObjects(
|
|
1333
|
+
listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListPolicyObjectsResponseClass> {
|
|
1334
|
+
return localVarFp.listPolicyObjects(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1337
1335
|
},
|
|
1338
1336
|
/**
|
|
1339
|
-
* Returns a list of policy versions you have previously created.
|
|
1337
|
+
* Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1340
1338
|
* @summary List policy versions
|
|
1341
1339
|
* @param {string} policyCode
|
|
1342
1340
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1343
1341
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1344
1342
|
* @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.
|
|
1345
|
-
* @param {
|
|
1343
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, policyId</i>
|
|
1346
1344
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1347
|
-
* @param {
|
|
1348
|
-
* @param {
|
|
1349
|
-
* @param {
|
|
1345
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyId, createdAt, updatedAt</i>
|
|
1346
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: timelines, premiums, premiumItems, premiumFormulas.<i>
|
|
1347
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, policyId</i>
|
|
1350
1348
|
* @param {*} [options] Override http request option.
|
|
1351
1349
|
* @throws {RequiredError}
|
|
1352
1350
|
*/
|
|
1353
|
-
listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
1351
|
+
listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyVersionResponseClass> {
|
|
1354
1352
|
return localVarFp.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1355
1353
|
},
|
|
1356
1354
|
/**
|
|
@@ -1590,11 +1588,11 @@ export interface PoliciesApiGetPolicyRequest {
|
|
|
1590
1588
|
readonly authorization?: string
|
|
1591
1589
|
|
|
1592
1590
|
/**
|
|
1593
|
-
* You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
1594
|
-
* @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'}
|
|
1591
|
+
* You can expand policy in this endpoint. \' + \'By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
|
|
1592
|
+
* @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'}
|
|
1595
1593
|
* @memberof PoliciesApiGetPolicy
|
|
1596
1594
|
*/
|
|
1597
|
-
readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'
|
|
1595
|
+
readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'
|
|
1598
1596
|
}
|
|
1599
1597
|
|
|
1600
1598
|
/**
|
|
@@ -1653,11 +1651,11 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
1653
1651
|
readonly pageToken?: any
|
|
1654
1652
|
|
|
1655
1653
|
/**
|
|
1656
|
-
* Filter the response by one or multiple fields.
|
|
1657
|
-
* @type {
|
|
1654
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1655
|
+
* @type {string}
|
|
1658
1656
|
* @memberof PoliciesApiListPolicies
|
|
1659
1657
|
*/
|
|
1660
|
-
readonly filter?:
|
|
1658
|
+
readonly filter?: string
|
|
1661
1659
|
|
|
1662
1660
|
/**
|
|
1663
1661
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
@@ -1667,25 +1665,25 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
1667
1665
|
readonly search?: any
|
|
1668
1666
|
|
|
1669
1667
|
/**
|
|
1670
|
-
* Order
|
|
1671
|
-
* @type {
|
|
1668
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1669
|
+
* @type {string}
|
|
1672
1670
|
* @memberof PoliciesApiListPolicies
|
|
1673
1671
|
*/
|
|
1674
|
-
readonly order?:
|
|
1672
|
+
readonly order?: string
|
|
1675
1673
|
|
|
1676
1674
|
/**
|
|
1677
|
-
*
|
|
1678
|
-
* @type {
|
|
1675
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.<i>
|
|
1676
|
+
* @type {string}
|
|
1679
1677
|
* @memberof PoliciesApiListPolicies
|
|
1680
1678
|
*/
|
|
1681
|
-
readonly expand?:
|
|
1679
|
+
readonly expand?: string
|
|
1682
1680
|
|
|
1683
1681
|
/**
|
|
1684
|
-
* Filters the response by one or multiple fields.
|
|
1685
|
-
* @type {
|
|
1682
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1683
|
+
* @type {string}
|
|
1686
1684
|
* @memberof PoliciesApiListPolicies
|
|
1687
1685
|
*/
|
|
1688
|
-
readonly filters?:
|
|
1686
|
+
readonly filters?: string
|
|
1689
1687
|
}
|
|
1690
1688
|
|
|
1691
1689
|
/**
|
|
@@ -1694,13 +1692,6 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
1694
1692
|
* @interface PoliciesApiListPolicyObjectsRequest
|
|
1695
1693
|
*/
|
|
1696
1694
|
export interface PoliciesApiListPolicyObjectsRequest {
|
|
1697
|
-
/**
|
|
1698
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
1699
|
-
* @type {any}
|
|
1700
|
-
* @memberof PoliciesApiListPolicyObjects
|
|
1701
|
-
*/
|
|
1702
|
-
readonly filter: any
|
|
1703
|
-
|
|
1704
1695
|
/**
|
|
1705
1696
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1706
1697
|
* @type {string}
|
|
@@ -1722,6 +1713,13 @@ export interface PoliciesApiListPolicyObjectsRequest {
|
|
|
1722
1713
|
*/
|
|
1723
1714
|
readonly pageToken?: any
|
|
1724
1715
|
|
|
1716
|
+
/**
|
|
1717
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1718
|
+
* @type {string}
|
|
1719
|
+
* @memberof PoliciesApiListPolicyObjects
|
|
1720
|
+
*/
|
|
1721
|
+
readonly filter?: string
|
|
1722
|
+
|
|
1725
1723
|
/**
|
|
1726
1724
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1727
1725
|
* @type {any}
|
|
@@ -1730,25 +1728,25 @@ export interface PoliciesApiListPolicyObjectsRequest {
|
|
|
1730
1728
|
readonly search?: any
|
|
1731
1729
|
|
|
1732
1730
|
/**
|
|
1733
|
-
* Order
|
|
1734
|
-
* @type {
|
|
1731
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
1732
|
+
* @type {string}
|
|
1735
1733
|
* @memberof PoliciesApiListPolicyObjects
|
|
1736
1734
|
*/
|
|
1737
|
-
readonly order?:
|
|
1735
|
+
readonly order?: string
|
|
1738
1736
|
|
|
1739
1737
|
/**
|
|
1740
|
-
*
|
|
1738
|
+
* 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.
|
|
1741
1739
|
* @type {any}
|
|
1742
1740
|
* @memberof PoliciesApiListPolicyObjects
|
|
1743
1741
|
*/
|
|
1744
1742
|
readonly expand?: any
|
|
1745
1743
|
|
|
1746
1744
|
/**
|
|
1747
|
-
* Filters the response by one or multiple fields.
|
|
1748
|
-
* @type {
|
|
1745
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1746
|
+
* @type {string}
|
|
1749
1747
|
* @memberof PoliciesApiListPolicyObjects
|
|
1750
1748
|
*/
|
|
1751
|
-
readonly filters?:
|
|
1749
|
+
readonly filters?: string
|
|
1752
1750
|
}
|
|
1753
1751
|
|
|
1754
1752
|
/**
|
|
@@ -1786,11 +1784,11 @@ export interface PoliciesApiListPolicyVersionsRequest {
|
|
|
1786
1784
|
readonly pageToken?: any
|
|
1787
1785
|
|
|
1788
1786
|
/**
|
|
1789
|
-
* Filter the response by one or multiple fields.
|
|
1790
|
-
* @type {
|
|
1787
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, policyId</i>
|
|
1788
|
+
* @type {string}
|
|
1791
1789
|
* @memberof PoliciesApiListPolicyVersions
|
|
1792
1790
|
*/
|
|
1793
|
-
readonly filter?:
|
|
1791
|
+
readonly filter?: string
|
|
1794
1792
|
|
|
1795
1793
|
/**
|
|
1796
1794
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
@@ -1800,25 +1798,25 @@ export interface PoliciesApiListPolicyVersionsRequest {
|
|
|
1800
1798
|
readonly search?: any
|
|
1801
1799
|
|
|
1802
1800
|
/**
|
|
1803
|
-
* Order
|
|
1804
|
-
* @type {
|
|
1801
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyId, createdAt, updatedAt</i>
|
|
1802
|
+
* @type {string}
|
|
1805
1803
|
* @memberof PoliciesApiListPolicyVersions
|
|
1806
1804
|
*/
|
|
1807
|
-
readonly order?:
|
|
1805
|
+
readonly order?: string
|
|
1808
1806
|
|
|
1809
1807
|
/**
|
|
1810
|
-
*
|
|
1811
|
-
* @type {
|
|
1808
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: timelines, premiums, premiumItems, premiumFormulas.<i>
|
|
1809
|
+
* @type {string}
|
|
1812
1810
|
* @memberof PoliciesApiListPolicyVersions
|
|
1813
1811
|
*/
|
|
1814
|
-
readonly expand?:
|
|
1812
|
+
readonly expand?: string
|
|
1815
1813
|
|
|
1816
1814
|
/**
|
|
1817
|
-
* Filters the response by one or multiple fields.
|
|
1818
|
-
* @type {
|
|
1815
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, policyId</i>
|
|
1816
|
+
* @type {string}
|
|
1819
1817
|
* @memberof PoliciesApiListPolicyVersions
|
|
1820
1818
|
*/
|
|
1821
|
-
readonly filters?:
|
|
1819
|
+
readonly filters?: string
|
|
1822
1820
|
}
|
|
1823
1821
|
|
|
1824
1822
|
/**
|
|
@@ -2052,7 +2050,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
2052
2050
|
}
|
|
2053
2051
|
|
|
2054
2052
|
/**
|
|
2055
|
-
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code
|
|
2053
|
+
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
|
|
2056
2054
|
* @summary Retrieve the draft-policy
|
|
2057
2055
|
* @param {PoliciesApiGetDraftPolicyRequest} requestParameters Request parameters.
|
|
2058
2056
|
* @param {*} [options] Override http request option.
|
|
@@ -2064,7 +2062,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
2064
2062
|
}
|
|
2065
2063
|
|
|
2066
2064
|
/**
|
|
2067
|
-
* Retrieves the details of the policy that was previously created. Supply the unique policy code
|
|
2065
|
+
* Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
|
|
2068
2066
|
* @summary Retrieve the policy
|
|
2069
2067
|
* @param {PoliciesApiGetPolicyRequest} requestParameters Request parameters.
|
|
2070
2068
|
* @param {*} [options] Override http request option.
|
|
@@ -2088,7 +2086,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
2088
2086
|
}
|
|
2089
2087
|
|
|
2090
2088
|
/**
|
|
2091
|
-
* Returns a list of policies you have previously created.
|
|
2089
|
+
* Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2092
2090
|
* @summary List policies
|
|
2093
2091
|
* @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
|
|
2094
2092
|
* @param {*} [options] Override http request option.
|
|
@@ -2100,19 +2098,19 @@ export class PoliciesApi extends BaseAPI {
|
|
|
2100
2098
|
}
|
|
2101
2099
|
|
|
2102
2100
|
/**
|
|
2103
|
-
*
|
|
2101
|
+
* Returns a list of policy objects you have previously created. The policy objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2104
2102
|
* @summary List policy objects
|
|
2105
2103
|
* @param {PoliciesApiListPolicyObjectsRequest} requestParameters Request parameters.
|
|
2106
2104
|
* @param {*} [options] Override http request option.
|
|
2107
2105
|
* @throws {RequiredError}
|
|
2108
2106
|
* @memberof PoliciesApi
|
|
2109
2107
|
*/
|
|
2110
|
-
public listPolicyObjects(requestParameters: PoliciesApiListPolicyObjectsRequest, options?: AxiosRequestConfig) {
|
|
2111
|
-
return PoliciesApiFp(this.configuration).listPolicyObjects(requestParameters.
|
|
2108
|
+
public listPolicyObjects(requestParameters: PoliciesApiListPolicyObjectsRequest = {}, options?: AxiosRequestConfig) {
|
|
2109
|
+
return PoliciesApiFp(this.configuration).listPolicyObjects(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
2112
2110
|
}
|
|
2113
2111
|
|
|
2114
2112
|
/**
|
|
2115
|
-
* Returns a list of policy versions you have previously created.
|
|
2113
|
+
* Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2116
2114
|
* @summary List policy versions
|
|
2117
2115
|
* @param {PoliciesApiListPolicyVersionsRequest} requestParameters Request parameters.
|
|
2118
2116
|
* @param {*} [options] Override http request option.
|