@emilgroup/insurance-sdk-node 1.36.0 → 1.37.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 +14 -1
- package/README.md +2 -2
- package/api/lead-versions-api.ts +365 -0
- package/api/status-transition-rules-api.ts +803 -0
- package/api.ts +4 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/insured-object-types-api.d.ts +141 -0
- package/dist/api/insured-object-types-api.js +258 -0
- package/dist/api/insured-objects-api.d.ts +318 -0
- package/dist/api/insured-objects-api.js +539 -0
- package/dist/api/lead-statuses-api.d.ts +265 -0
- package/dist/api/lead-statuses-api.js +505 -0
- package/dist/api/lead-versions-api.d.ts +215 -0
- package/dist/api/lead-versions-api.js +361 -0
- package/dist/api/leads-api.d.ts +626 -0
- package/dist/api/leads-api.js +1024 -0
- package/dist/api/named-ranges-api.d.ts +376 -0
- package/dist/api/named-ranges-api.js +634 -0
- package/dist/api/policies-api.d.ts +722 -0
- package/dist/api/policies-api.js +1141 -0
- package/dist/api/premium-formulas-api.d.ts +433 -0
- package/dist/api/premium-formulas-api.js +727 -0
- package/dist/api/product-factors-api.d.ts +493 -0
- package/dist/api/product-factors-api.js +788 -0
- package/dist/api/product-fields-api.d.ts +477 -0
- package/dist/api/product-fields-api.js +757 -0
- package/dist/api/product-versions-api.d.ts +189 -0
- package/dist/api/product-versions-api.js +346 -0
- package/dist/api/products-api.d.ts +485 -0
- package/dist/api/products-api.js +772 -0
- package/dist/api/status-transition-rules-api.d.ts +451 -0
- package/dist/api/status-transition-rules-api.js +739 -0
- package/dist/api.d.ts +25 -0
- package/dist/api.js +43 -0
- package/dist/base.d.ts +78 -0
- package/dist/base.js +394 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/activate-policy-request-dto.d.ts +24 -0
- package/{models/delete-request-dto.ts → dist/models/activate-policy-request-dto.js} +2 -17
- package/dist/models/activate-policy-response-class.d.ts +25 -0
- package/dist/models/activate-policy-response-class.js +15 -0
- package/dist/models/calculate-custom-premium-request-dto.d.ts +35 -0
- package/dist/models/calculate-custom-premium-request-dto.js +20 -0
- package/dist/models/calculate-premium-request-dto.d.ts +38 -0
- package/dist/models/calculate-premium-request-dto.js +15 -0
- package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
- package/dist/models/calculate-product-fields-request-dto.js +15 -0
- package/dist/models/clone-product-version-request-dto.d.ts +36 -0
- package/dist/models/clone-product-version-request-dto.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +120 -0
- package/dist/models/create-account-request-dto.js +26 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-custom-application-request-dto.d.ts +41 -0
- package/dist/models/create-custom-application-request-dto.js +20 -0
- package/dist/models/create-dummy-policy-request-dto.d.ts +44 -0
- package/dist/models/create-dummy-policy-request-dto.js +15 -0
- package/dist/models/create-insured-object-request-dto.d.ts +60 -0
- package/dist/models/create-insured-object-request-dto.js +15 -0
- package/dist/models/create-insured-object-response-class.d.ts +25 -0
- package/dist/models/create-insured-object-response-class.js +15 -0
- package/dist/models/create-lead-async-response-class.d.ts +24 -0
- package/dist/models/create-lead-async-response-class.js +15 -0
- package/dist/models/create-lead-policy-request-dto.d.ts +56 -0
- package/dist/models/create-lead-policy-request-dto.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +96 -0
- package/dist/models/create-lead-request-dto.js +15 -0
- package/dist/models/create-lead-response-class.d.ts +25 -0
- package/dist/models/create-lead-response-class.js +15 -0
- package/dist/models/create-lead-status-request-dto.d.ts +30 -0
- package/dist/models/create-lead-status-request-dto.js +15 -0
- package/dist/models/create-lead-status-response-class.d.ts +25 -0
- package/dist/models/create-lead-status-response-class.js +15 -0
- package/dist/models/create-named-range-request-dto.d.ts +55 -0
- package/dist/models/create-named-range-request-dto.js +15 -0
- package/dist/models/create-named-range-response-class.d.ts +25 -0
- package/dist/models/create-named-range-response-class.js +15 -0
- package/dist/models/create-named-request-s3-data-class.d.ts +30 -0
- package/dist/models/create-named-request-s3-data-class.js +15 -0
- package/dist/models/create-payment-method-request-dto.d.ts +31 -0
- package/dist/models/create-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-request-dto.d.ts +62 -0
- package/dist/models/create-policy-request-dto.js +15 -0
- package/dist/models/create-policy-response-class.d.ts +25 -0
- package/dist/models/create-policy-response-class.js +15 -0
- package/dist/models/create-premium-formula-request-dto.d.ts +105 -0
- package/dist/models/create-premium-formula-request-dto.js +39 -0
- package/dist/models/create-premium-formula-response-class.d.ts +25 -0
- package/dist/models/create-premium-formula-response-class.js +15 -0
- package/dist/models/create-product-field-request-dto.d.ts +137 -0
- package/dist/models/create-product-field-request-dto.js +20 -0
- package/dist/models/create-product-field-response-class.d.ts +25 -0
- package/dist/models/create-product-field-response-class.js +15 -0
- package/dist/models/create-product-request-dto.d.ts +85 -0
- package/dist/models/create-product-request-dto.js +51 -0
- package/dist/models/create-product-response-class.d.ts +25 -0
- package/dist/models/create-product-response-class.js +15 -0
- package/dist/models/create-status-transition-rule-request-dto.d.ts +47 -0
- package/dist/models/create-status-transition-rule-request-dto.js +20 -0
- package/dist/models/create-status-transition-rule-response-class.d.ts +25 -0
- package/dist/models/create-status-transition-rule-response-class.js +15 -0
- package/dist/models/csv-product-factor-dto.d.ts +48 -0
- package/dist/models/csv-product-factor-dto.js +15 -0
- package/dist/models/delete-response-class.d.ts +24 -0
- package/dist/models/delete-response-class.js +15 -0
- package/dist/models/empty-response-class.d.ts +24 -0
- package/dist/models/empty-response-class.js +15 -0
- package/dist/models/get-insured-object-response-class.d.ts +25 -0
- package/dist/models/get-insured-object-response-class.js +15 -0
- package/dist/models/get-lead-response-class.d.ts +25 -0
- package/dist/models/get-lead-response-class.js +15 -0
- package/dist/models/get-lead-status-response-class.d.ts +25 -0
- package/dist/models/get-lead-status-response-class.js +15 -0
- package/dist/models/get-lead-version-request-dto.d.ts +30 -0
- package/dist/models/get-lead-version-request-dto.js +15 -0
- package/dist/models/get-lead-version-response-class.d.ts +25 -0
- package/dist/models/get-lead-version-response-class.js +15 -0
- package/dist/models/get-named-range-response-class.d.ts +25 -0
- package/dist/models/get-named-range-response-class.js +15 -0
- package/dist/models/get-policy-data-by-date-request-dto.d.ts +30 -0
- package/dist/models/get-policy-data-by-date-request-dto.js +15 -0
- package/dist/models/get-policy-request-dto.d.ts +30 -0
- package/dist/models/get-policy-request-dto.js +15 -0
- package/dist/models/get-policy-response-class.d.ts +25 -0
- package/dist/models/get-policy-response-class.js +15 -0
- package/dist/models/get-premium-formula-request-dto.d.ts +24 -0
- package/dist/models/get-premium-formula-request-dto.js +15 -0
- package/dist/models/get-premium-formula-response-class.d.ts +25 -0
- package/dist/models/get-premium-formula-response-class.js +15 -0
- package/dist/models/get-product-factor-response-class.d.ts +32 -0
- package/dist/models/get-product-factor-response-class.js +15 -0
- package/dist/models/get-product-factor-value-request-dto.d.ts +42 -0
- package/dist/models/get-product-factor-value-request-dto.js +15 -0
- package/dist/models/get-product-factor-value-response-class.d.ts +25 -0
- package/dist/models/get-product-factor-value-response-class.js +15 -0
- package/dist/models/get-product-factors-for-version-request-dto.d.ts +36 -0
- package/dist/models/get-product-factors-for-version-request-dto.js +15 -0
- package/dist/models/get-product-factors-for-version-response-class.d.ts +25 -0
- package/dist/models/get-product-factors-for-version-response-class.js +15 -0
- package/dist/models/get-product-field-request-dto.d.ts +24 -0
- package/dist/models/get-product-field-request-dto.js +15 -0
- package/dist/models/get-product-field-response-class.d.ts +25 -0
- package/dist/models/get-product-field-response-class.js +15 -0
- package/dist/models/get-product-request-dto.d.ts +42 -0
- package/dist/models/get-product-request-dto.js +15 -0
- package/dist/models/get-product-response-class.d.ts +25 -0
- package/dist/models/get-product-response-class.js +15 -0
- package/dist/models/get-product-version-request-dto.d.ts +36 -0
- package/dist/models/get-product-version-request-dto.js +15 -0
- package/dist/models/get-product-version-response-class.d.ts +25 -0
- package/dist/models/get-product-version-response-class.js +15 -0
- package/dist/models/get-status-transition-rule-response-class.d.ts +25 -0
- package/dist/models/get-status-transition-rule-response-class.js +15 -0
- package/dist/models/grouped-product-factor-class.d.ts +37 -0
- package/dist/models/grouped-product-factor-class.js +15 -0
- package/dist/models/grouped-product-factor-value-class.d.ts +42 -0
- package/dist/models/grouped-product-factor-value-class.js +15 -0
- package/dist/models/grouped-product-factors-response-class.d.ts +25 -0
- package/dist/models/grouped-product-factors-response-class.js +15 -0
- package/dist/models/grpc-patch-lead-request-dto.d.ts +102 -0
- package/dist/models/grpc-patch-lead-request-dto.js +15 -0
- package/dist/models/grpc-update-lead-request-dto.d.ts +102 -0
- package/dist/models/grpc-update-lead-request-dto.js +15 -0
- package/dist/models/index.d.ts +147 -0
- package/dist/models/index.js +163 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/insured-object-class.d.ts +85 -0
- package/dist/models/insured-object-class.js +15 -0
- package/dist/models/insured-object-type-class.d.ts +48 -0
- package/dist/models/insured-object-type-class.js +15 -0
- package/dist/models/invoice-item-class.d.ts +117 -0
- package/dist/models/invoice-item-class.js +24 -0
- package/dist/models/invoice-status-class.d.ts +47 -0
- package/dist/models/invoice-status-class.js +20 -0
- package/dist/models/lead-bank-account-class.d.ts +30 -0
- package/dist/models/lead-bank-account-class.js +15 -0
- package/dist/models/lead-class.d.ts +139 -0
- package/dist/models/lead-class.js +15 -0
- package/dist/models/lead-status-class.d.ts +36 -0
- package/dist/models/lead-status-class.js +15 -0
- package/dist/models/list-insured-object-types-response-class.d.ts +31 -0
- package/dist/models/list-insured-object-types-response-class.js +15 -0
- package/dist/models/list-insured-objects-response-class.d.ts +31 -0
- package/dist/models/list-insured-objects-response-class.js +15 -0
- package/dist/models/list-lead-statuses-response-class.d.ts +31 -0
- package/dist/models/list-lead-statuses-response-class.js +15 -0
- package/dist/models/list-lead-versions-response-class.d.ts +31 -0
- package/dist/models/list-lead-versions-response-class.js +15 -0
- package/dist/models/list-leads-response-class.d.ts +43 -0
- package/dist/models/list-leads-response-class.js +15 -0
- package/dist/models/list-named-ranges-response-class.d.ts +30 -0
- package/dist/models/list-named-ranges-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +43 -0
- package/dist/models/list-policies-response-class.js +15 -0
- package/dist/models/list-premium-formulas-response-class.d.ts +31 -0
- package/dist/models/list-premium-formulas-response-class.js +15 -0
- package/dist/models/list-product-factors-response-class.d.ts +31 -0
- package/dist/models/list-product-factors-response-class.js +15 -0
- package/dist/models/list-product-field-types-response-class.d.ts +31 -0
- package/dist/models/list-product-field-types-response-class.js +15 -0
- package/dist/models/list-product-fields-response-class.d.ts +31 -0
- package/dist/models/list-product-fields-response-class.js +15 -0
- package/dist/models/list-products-response-class.d.ts +31 -0
- package/dist/models/list-products-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/list-status-transition-rules-response-class.d.ts +31 -0
- package/dist/models/list-status-transition-rules-response-class.js +15 -0
- package/dist/models/named-range-class.d.ts +78 -0
- package/dist/models/named-range-class.js +15 -0
- package/dist/models/patch-lead-request-dto.d.ts +90 -0
- package/dist/models/patch-lead-request-dto.js +15 -0
- package/dist/models/patch-lead-response-class.d.ts +25 -0
- package/dist/models/patch-lead-response-class.js +15 -0
- package/dist/models/patch-policy-request-dto.d.ts +56 -0
- package/dist/models/patch-policy-request-dto.js +15 -0
- package/dist/models/patch-policy-response-class.d.ts +25 -0
- package/dist/models/patch-policy-response-class.js +15 -0
- package/dist/models/patch-status-transition-rule-request-dto.d.ts +53 -0
- package/dist/models/patch-status-transition-rule-request-dto.js +20 -0
- package/dist/models/patch-status-transition-rule-response-class.d.ts +25 -0
- package/dist/models/patch-status-transition-rule-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +128 -0
- package/dist/models/policy-class.js +15 -0
- package/dist/models/policy-object-class.d.ts +60 -0
- package/dist/models/policy-object-class.js +15 -0
- package/dist/models/policy-object-dto.d.ts +42 -0
- package/dist/models/policy-object-dto.js +15 -0
- package/dist/models/policy-premium-class.d.ts +49 -0
- package/dist/models/policy-premium-class.js +15 -0
- package/dist/models/policy-premium-item-class.d.ts +55 -0
- package/dist/models/policy-premium-item-class.js +15 -0
- package/dist/models/policy-version-class.d.ts +55 -0
- package/dist/models/policy-version-class.js +15 -0
- package/dist/models/premium-formula-class.d.ts +96 -0
- package/dist/models/premium-formula-class.js +15 -0
- package/dist/models/premium-override-dto.d.ts +55 -0
- package/dist/models/premium-override-dto.js +27 -0
- package/dist/models/premium-override-request-class.d.ts +25 -0
- package/dist/models/premium-override-request-class.js +15 -0
- package/dist/models/premium-override-request-dto.d.ts +25 -0
- package/dist/models/premium-override-request-dto.js +15 -0
- package/dist/models/product-class.d.ts +80 -0
- package/dist/models/product-class.js +15 -0
- package/dist/models/product-factor-class.d.ts +61 -0
- package/dist/models/product-factor-class.js +15 -0
- package/dist/models/product-factor-for-version-class.d.ts +61 -0
- package/dist/models/product-factor-for-version-class.js +15 -0
- package/dist/models/product-factor-value-class.d.ts +60 -0
- package/dist/models/product-factor-value-class.js +15 -0
- package/dist/models/product-factor-value-for-version-class.d.ts +42 -0
- package/dist/models/product-factor-value-for-version-class.js +15 -0
- package/dist/models/product-field-class.d.ts +132 -0
- package/dist/models/product-field-class.js +15 -0
- package/dist/models/product-field-type-class.d.ts +48 -0
- package/dist/models/product-field-type-class.js +15 -0
- package/dist/models/product-version-class.d.ts +61 -0
- package/dist/models/product-version-class.js +22 -0
- package/dist/models/sepa-dto.d.ts +30 -0
- package/dist/models/sepa-dto.js +15 -0
- package/dist/models/shared-create-lead-policy-request-dto.d.ts +56 -0
- package/dist/models/shared-create-lead-policy-request-dto.js +15 -0
- package/dist/models/shared-invoice-class.d.ts +150 -0
- package/dist/models/shared-invoice-class.js +30 -0
- package/dist/models/shared-lead-policy-object-dto.d.ts +42 -0
- package/dist/models/shared-lead-policy-object-dto.js +15 -0
- package/dist/models/shared-product-field-class.d.ts +132 -0
- package/dist/models/shared-product-field-class.js +15 -0
- package/dist/models/shared-update-named-range-request-dto.d.ts +42 -0
- package/dist/models/shared-update-named-range-request-dto.js +15 -0
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +111 -0
- package/dist/models/shared-update-premium-formula-request-dto.js +39 -0
- package/dist/models/status-transition-rule-class.d.ts +66 -0
- package/dist/models/status-transition-rule-class.js +15 -0
- package/dist/models/store-product-factors-request-dto.d.ts +31 -0
- package/dist/models/store-product-factors-request-dto.js +15 -0
- package/dist/models/store-product-factors-response-class.d.ts +25 -0
- package/dist/models/store-product-factors-response-class.js +15 -0
- package/dist/models/suspend-policy-request-dto.d.ts +24 -0
- package/dist/models/suspend-policy-request-dto.js +15 -0
- package/dist/models/suspend-policy-response-class.d.ts +25 -0
- package/dist/models/suspend-policy-response-class.js +15 -0
- package/dist/models/swap-premium-formulas-order-request-dto.d.ts +30 -0
- package/dist/models/swap-premium-formulas-order-request-dto.js +15 -0
- package/dist/models/terminate-policy-request-dto.d.ts +44 -0
- package/dist/models/terminate-policy-request-dto.js +29 -0
- package/dist/models/terminate-policy-response-class.d.ts +25 -0
- package/dist/models/terminate-policy-response-class.js +15 -0
- package/dist/models/timeslice-class.d.ts +62 -0
- package/dist/models/timeslice-class.js +15 -0
- package/dist/models/update-insured-object-request-dto.d.ts +66 -0
- package/dist/models/update-insured-object-request-dto.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +90 -0
- package/dist/models/update-lead-request-dto.js +15 -0
- package/dist/models/update-lead-response-class.d.ts +25 -0
- package/dist/models/update-lead-response-class.js +15 -0
- package/dist/models/update-named-range-request-dto.d.ts +36 -0
- package/dist/models/update-named-range-request-dto.js +15 -0
- package/dist/models/update-named-range-response-class.d.ts +25 -0
- package/dist/models/update-named-range-response-class.js +15 -0
- package/dist/models/update-policy-request-dto.d.ts +76 -0
- package/dist/models/update-policy-request-dto.js +23 -0
- package/dist/models/update-policy-response-class.d.ts +25 -0
- package/dist/models/update-policy-response-class.js +15 -0
- package/dist/models/update-premium-formula-request-dto.d.ts +105 -0
- package/dist/models/update-premium-formula-request-dto.js +39 -0
- package/dist/models/update-premium-formula-response-class.d.ts +25 -0
- package/dist/models/update-premium-formula-response-class.js +15 -0
- package/dist/models/update-product-field-request-dto.d.ts +143 -0
- package/dist/models/update-product-field-request-dto.js +20 -0
- package/dist/models/update-product-field-response-class.d.ts +25 -0
- package/dist/models/update-product-field-response-class.js +15 -0
- package/dist/models/update-product-request-dto.d.ts +42 -0
- package/dist/models/update-product-request-dto.js +15 -0
- package/dist/models/update-product-response-class.d.ts +25 -0
- package/dist/models/update-product-response-class.js +15 -0
- package/dist/models/update-product-version-request-dto.d.ts +43 -0
- package/dist/models/update-product-version-request-dto.js +22 -0
- package/dist/models/update-product-version-response-class.d.ts +25 -0
- package/dist/models/update-product-version-response-class.js +15 -0
- package/dist/models/update-status-transition-rule-request-dto.d.ts +53 -0
- package/dist/models/update-status-transition-rule-request-dto.js +20 -0
- package/dist/models/update-status-transition-rule-response-class.d.ts +25 -0
- package/dist/models/update-status-transition-rule-response-class.js +15 -0
- package/dist/models/uploaded-document-dto.d.ts +24 -0
- package/dist/models/uploaded-document-dto.js +15 -0
- package/dist/models/validate-product-factors-request-dto.d.ts +31 -0
- package/dist/models/validate-product-factors-request-dto.js +15 -0
- package/dist/models/withdraw-policy-response-class.d.ts +25 -0
- package/dist/models/withdraw-policy-response-class.js +15 -0
- package/models/create-status-transition-rule-request-dto.ts +56 -0
- package/models/create-status-transition-rule-response-class.ts +31 -0
- package/models/get-lead-version-request-dto.ts +36 -0
- package/models/get-lead-version-response-class.ts +31 -0
- package/models/get-status-transition-rule-response-class.ts +31 -0
- package/models/index.ts +12 -1
- package/models/lead-class.ts +6 -0
- package/models/list-lead-versions-response-class.ts +37 -0
- package/models/list-status-transition-rules-response-class.ts +37 -0
- package/models/patch-policy-request-dto.ts +6 -0
- package/models/patch-status-transition-rule-request-dto.ts +62 -0
- package/models/patch-status-transition-rule-response-class.ts +31 -0
- package/models/product-field-class.ts +1 -1
- package/models/shared-product-field-class.ts +1 -1
- package/models/status-transition-rule-class.ts +72 -0
- package/models/update-status-transition-rule-request-dto.ts +62 -0
- package/models/update-status-transition-rule-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -7,6 +7,7 @@ api/default-api.ts
|
|
|
7
7
|
api/insured-object-types-api.ts
|
|
8
8
|
api/insured-objects-api.ts
|
|
9
9
|
api/lead-statuses-api.ts
|
|
10
|
+
api/lead-versions-api.ts
|
|
10
11
|
api/leads-api.ts
|
|
11
12
|
api/named-ranges-api.ts
|
|
12
13
|
api/policies-api.ts
|
|
@@ -15,6 +16,7 @@ api/product-factors-api.ts
|
|
|
15
16
|
api/product-fields-api.ts
|
|
16
17
|
api/product-versions-api.ts
|
|
17
18
|
api/products-api.ts
|
|
19
|
+
api/status-transition-rules-api.ts
|
|
18
20
|
base.ts
|
|
19
21
|
common.ts
|
|
20
22
|
configuration.ts
|
|
@@ -50,13 +52,16 @@ models/create-product-field-request-dto.ts
|
|
|
50
52
|
models/create-product-field-response-class.ts
|
|
51
53
|
models/create-product-request-dto.ts
|
|
52
54
|
models/create-product-response-class.ts
|
|
55
|
+
models/create-status-transition-rule-request-dto.ts
|
|
56
|
+
models/create-status-transition-rule-response-class.ts
|
|
53
57
|
models/csv-product-factor-dto.ts
|
|
54
|
-
models/delete-request-dto.ts
|
|
55
58
|
models/delete-response-class.ts
|
|
56
59
|
models/empty-response-class.ts
|
|
57
60
|
models/get-insured-object-response-class.ts
|
|
58
61
|
models/get-lead-response-class.ts
|
|
59
62
|
models/get-lead-status-response-class.ts
|
|
63
|
+
models/get-lead-version-request-dto.ts
|
|
64
|
+
models/get-lead-version-response-class.ts
|
|
60
65
|
models/get-named-range-response-class.ts
|
|
61
66
|
models/get-policy-data-by-date-request-dto.ts
|
|
62
67
|
models/get-policy-request-dto.ts
|
|
@@ -74,6 +79,7 @@ models/get-product-request-dto.ts
|
|
|
74
79
|
models/get-product-response-class.ts
|
|
75
80
|
models/get-product-version-request-dto.ts
|
|
76
81
|
models/get-product-version-response-class.ts
|
|
82
|
+
models/get-status-transition-rule-response-class.ts
|
|
77
83
|
models/grouped-product-factor-class.ts
|
|
78
84
|
models/grouped-product-factor-value-class.ts
|
|
79
85
|
models/grouped-product-factors-response-class.ts
|
|
@@ -92,6 +98,7 @@ models/lead-status-class.ts
|
|
|
92
98
|
models/list-insured-object-types-response-class.ts
|
|
93
99
|
models/list-insured-objects-response-class.ts
|
|
94
100
|
models/list-lead-statuses-response-class.ts
|
|
101
|
+
models/list-lead-versions-response-class.ts
|
|
95
102
|
models/list-leads-response-class.ts
|
|
96
103
|
models/list-named-ranges-response-class.ts
|
|
97
104
|
models/list-policies-response-class.ts
|
|
@@ -101,11 +108,14 @@ models/list-product-field-types-response-class.ts
|
|
|
101
108
|
models/list-product-fields-response-class.ts
|
|
102
109
|
models/list-products-response-class.ts
|
|
103
110
|
models/list-request-dto.ts
|
|
111
|
+
models/list-status-transition-rules-response-class.ts
|
|
104
112
|
models/named-range-class.ts
|
|
105
113
|
models/patch-lead-request-dto.ts
|
|
106
114
|
models/patch-lead-response-class.ts
|
|
107
115
|
models/patch-policy-request-dto.ts
|
|
108
116
|
models/patch-policy-response-class.ts
|
|
117
|
+
models/patch-status-transition-rule-request-dto.ts
|
|
118
|
+
models/patch-status-transition-rule-response-class.ts
|
|
109
119
|
models/policy-class.ts
|
|
110
120
|
models/policy-object-class.ts
|
|
111
121
|
models/policy-object-dto.ts
|
|
@@ -131,6 +141,7 @@ models/shared-lead-policy-object-dto.ts
|
|
|
131
141
|
models/shared-product-field-class.ts
|
|
132
142
|
models/shared-update-named-range-request-dto.ts
|
|
133
143
|
models/shared-update-premium-formula-request-dto.ts
|
|
144
|
+
models/status-transition-rule-class.ts
|
|
134
145
|
models/store-product-factors-request-dto.ts
|
|
135
146
|
models/store-product-factors-response-class.ts
|
|
136
147
|
models/suspend-policy-request-dto.ts
|
|
@@ -154,6 +165,8 @@ models/update-product-request-dto.ts
|
|
|
154
165
|
models/update-product-response-class.ts
|
|
155
166
|
models/update-product-version-request-dto.ts
|
|
156
167
|
models/update-product-version-response-class.ts
|
|
168
|
+
models/update-status-transition-rule-request-dto.ts
|
|
169
|
+
models/update-status-transition-rule-response-class.ts
|
|
157
170
|
models/uploaded-document-dto.ts
|
|
158
171
|
models/validate-product-factors-request-dto.ts
|
|
159
172
|
models/withdraw-policy-response-class.ts
|
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/insurance-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.37.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.37.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetLeadVersionResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ListLeadVersionsResponseClass } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* LeadVersionsApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const LeadVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
|
|
39
|
+
* @summary Retrieve the lead version
|
|
40
|
+
* @param {string} code
|
|
41
|
+
* @param {number} version
|
|
42
|
+
* @param {string} [authorization] Bearer Token
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
getLeadVersion: async (code: string, version: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
47
|
+
// verify required parameter 'code' is not null or undefined
|
|
48
|
+
assertParamExists('getLeadVersion', 'code', code)
|
|
49
|
+
// verify required parameter 'version' is not null or undefined
|
|
50
|
+
assertParamExists('getLeadVersion', 'version', version)
|
|
51
|
+
const localVarPath = `/insuranceservice/v1/leads/{code}/versions/{version}`
|
|
52
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
53
|
+
.replace(`{${"version"}}`, encodeURIComponent(String(version)));
|
|
54
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
|
+
let baseOptions;
|
|
57
|
+
let baseAccessToken;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
baseAccessToken = configuration.accessToken;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
64
|
+
const localVarHeaderParameter = {} as any;
|
|
65
|
+
const localVarQueryParameter = {} as any;
|
|
66
|
+
|
|
67
|
+
// authentication bearer required
|
|
68
|
+
// http bearer authentication required
|
|
69
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
|
+
|
|
71
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
78
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
79
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
url: toPathString(localVarUrlObj),
|
|
83
|
+
options: localVarRequestOptions,
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
88
|
+
* @summary List lead versions
|
|
89
|
+
* @param {string} code
|
|
90
|
+
* @param {string} [authorization] Bearer Token
|
|
91
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
92
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
93
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
94
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
95
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
96
|
+
* @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.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
listLeadVersions: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'code' is not null or undefined
|
|
102
|
+
assertParamExists('listLeadVersions', 'code', code)
|
|
103
|
+
const localVarPath = `/insuranceservice/v1/leads/{code}/versions`
|
|
104
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
let baseAccessToken;
|
|
109
|
+
if (configuration) {
|
|
110
|
+
baseOptions = configuration.baseOptions;
|
|
111
|
+
baseAccessToken = configuration.accessToken;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
115
|
+
const localVarHeaderParameter = {} as any;
|
|
116
|
+
const localVarQueryParameter = {} as any;
|
|
117
|
+
|
|
118
|
+
// authentication bearer required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
|
+
|
|
122
|
+
if (pageSize !== undefined) {
|
|
123
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (pageToken !== undefined) {
|
|
127
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (filter !== undefined) {
|
|
131
|
+
localVarQueryParameter['filter'] = filter;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (search !== undefined) {
|
|
135
|
+
localVarQueryParameter['search'] = search;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (order !== undefined) {
|
|
139
|
+
localVarQueryParameter['order'] = order;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (expand !== undefined) {
|
|
143
|
+
localVarQueryParameter['expand'] = expand;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
147
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
155
|
+
|
|
156
|
+
return {
|
|
157
|
+
url: toPathString(localVarUrlObj),
|
|
158
|
+
options: localVarRequestOptions,
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* LeadVersionsApi - functional programming interface
|
|
166
|
+
* @export
|
|
167
|
+
*/
|
|
168
|
+
export const LeadVersionsApiFp = function(configuration?: Configuration) {
|
|
169
|
+
const localVarAxiosParamCreator = LeadVersionsApiAxiosParamCreator(configuration)
|
|
170
|
+
return {
|
|
171
|
+
/**
|
|
172
|
+
* Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
|
|
173
|
+
* @summary Retrieve the lead version
|
|
174
|
+
* @param {string} code
|
|
175
|
+
* @param {number} version
|
|
176
|
+
* @param {string} [authorization] Bearer Token
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
async getLeadVersion(code: string, version: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadVersionResponseClass>> {
|
|
181
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLeadVersion(code, version, authorization, options);
|
|
182
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
* Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
186
|
+
* @summary List lead versions
|
|
187
|
+
* @param {string} code
|
|
188
|
+
* @param {string} [authorization] Bearer Token
|
|
189
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
190
|
+
* @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.
|
|
191
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
192
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
193
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
194
|
+
* @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.
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
async listLeadVersions(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadVersionsResponseClass>> {
|
|
199
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listLeadVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
200
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
201
|
+
},
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* LeadVersionsApi - factory interface
|
|
207
|
+
* @export
|
|
208
|
+
*/
|
|
209
|
+
export const LeadVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
210
|
+
const localVarFp = LeadVersionsApiFp(configuration)
|
|
211
|
+
return {
|
|
212
|
+
/**
|
|
213
|
+
* Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
|
|
214
|
+
* @summary Retrieve the lead version
|
|
215
|
+
* @param {string} code
|
|
216
|
+
* @param {number} version
|
|
217
|
+
* @param {string} [authorization] Bearer Token
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
getLeadVersion(code: string, version: number, authorization?: string, options?: any): AxiosPromise<GetLeadVersionResponseClass> {
|
|
222
|
+
return localVarFp.getLeadVersion(code, version, authorization, options).then((request) => request(axios, basePath));
|
|
223
|
+
},
|
|
224
|
+
/**
|
|
225
|
+
* Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
226
|
+
* @summary List lead versions
|
|
227
|
+
* @param {string} code
|
|
228
|
+
* @param {string} [authorization] Bearer Token
|
|
229
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
230
|
+
* @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.
|
|
231
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
232
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
233
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
234
|
+
* @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.
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
listLeadVersions(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadVersionsResponseClass> {
|
|
239
|
+
return localVarFp.listLeadVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Request parameters for getLeadVersion operation in LeadVersionsApi.
|
|
246
|
+
* @export
|
|
247
|
+
* @interface LeadVersionsApiGetLeadVersionRequest
|
|
248
|
+
*/
|
|
249
|
+
export interface LeadVersionsApiGetLeadVersionRequest {
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @type {string}
|
|
253
|
+
* @memberof LeadVersionsApiGetLeadVersion
|
|
254
|
+
*/
|
|
255
|
+
readonly code: string
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @type {number}
|
|
260
|
+
* @memberof LeadVersionsApiGetLeadVersion
|
|
261
|
+
*/
|
|
262
|
+
readonly version: number
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Bearer Token
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof LeadVersionsApiGetLeadVersion
|
|
268
|
+
*/
|
|
269
|
+
readonly authorization?: string
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Request parameters for listLeadVersions operation in LeadVersionsApi.
|
|
274
|
+
* @export
|
|
275
|
+
* @interface LeadVersionsApiListLeadVersionsRequest
|
|
276
|
+
*/
|
|
277
|
+
export interface LeadVersionsApiListLeadVersionsRequest {
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @type {string}
|
|
281
|
+
* @memberof LeadVersionsApiListLeadVersions
|
|
282
|
+
*/
|
|
283
|
+
readonly code: string
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Bearer Token
|
|
287
|
+
* @type {string}
|
|
288
|
+
* @memberof LeadVersionsApiListLeadVersions
|
|
289
|
+
*/
|
|
290
|
+
readonly authorization?: string
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
294
|
+
* @type {any}
|
|
295
|
+
* @memberof LeadVersionsApiListLeadVersions
|
|
296
|
+
*/
|
|
297
|
+
readonly pageSize?: any
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* 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.
|
|
301
|
+
* @type {any}
|
|
302
|
+
* @memberof LeadVersionsApiListLeadVersions
|
|
303
|
+
*/
|
|
304
|
+
readonly pageToken?: any
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
308
|
+
* @type {any}
|
|
309
|
+
* @memberof LeadVersionsApiListLeadVersions
|
|
310
|
+
*/
|
|
311
|
+
readonly filter?: any
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
315
|
+
* @type {any}
|
|
316
|
+
* @memberof LeadVersionsApiListLeadVersions
|
|
317
|
+
*/
|
|
318
|
+
readonly search?: any
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
322
|
+
* @type {any}
|
|
323
|
+
* @memberof LeadVersionsApiListLeadVersions
|
|
324
|
+
*/
|
|
325
|
+
readonly order?: any
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* 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.
|
|
329
|
+
* @type {any}
|
|
330
|
+
* @memberof LeadVersionsApiListLeadVersions
|
|
331
|
+
*/
|
|
332
|
+
readonly expand?: any
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* LeadVersionsApi - object-oriented interface
|
|
337
|
+
* @export
|
|
338
|
+
* @class LeadVersionsApi
|
|
339
|
+
* @extends {BaseAPI}
|
|
340
|
+
*/
|
|
341
|
+
export class LeadVersionsApi extends BaseAPI {
|
|
342
|
+
/**
|
|
343
|
+
* Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
|
|
344
|
+
* @summary Retrieve the lead version
|
|
345
|
+
* @param {LeadVersionsApiGetLeadVersionRequest} requestParameters Request parameters.
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
* @memberof LeadVersionsApi
|
|
349
|
+
*/
|
|
350
|
+
public getLeadVersion(requestParameters: LeadVersionsApiGetLeadVersionRequest, options?: AxiosRequestConfig) {
|
|
351
|
+
return LeadVersionsApiFp(this.configuration).getLeadVersion(requestParameters.code, requestParameters.version, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
356
|
+
* @summary List lead versions
|
|
357
|
+
* @param {LeadVersionsApiListLeadVersionsRequest} requestParameters Request parameters.
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
* @memberof LeadVersionsApi
|
|
361
|
+
*/
|
|
362
|
+
public listLeadVersions(requestParameters: LeadVersionsApiListLeadVersionsRequest, options?: AxiosRequestConfig) {
|
|
363
|
+
return LeadVersionsApiFp(this.configuration).listLeadVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
364
|
+
}
|
|
365
|
+
}
|