@emilgroup/insurance-v2-sdk-node 0.0.0-stage → 1.0.1-beta.1
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 +341 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +83 -2
- package/api/group-policies-api.ts +2699 -0
- package/api/group-tariffs-api.ts +2856 -0
- package/api/jobs-api.ts +760 -0
- package/api/leads-api.ts +2118 -0
- package/api/policies-api.ts +2427 -0
- package/api/tariffs-api.ts +6383 -0
- package/api.ts +41 -0
- package/base.ts +396 -0
- package/common.ts +200 -0
- package/configuration.ts +118 -0
- package/dist/api/group-policies-api.d.ts +1518 -0
- package/dist/api/group-policies-api.js +2157 -0
- package/dist/api/group-tariffs-api.d.ts +1625 -0
- package/dist/api/group-tariffs-api.js +2236 -0
- package/dist/api/jobs-api.d.ts +426 -0
- package/dist/api/jobs-api.js +712 -0
- package/dist/api/leads-api.d.ts +1189 -0
- package/dist/api/leads-api.js +1744 -0
- package/dist/api/policies-api.d.ts +1373 -0
- package/dist/api/policies-api.js +1921 -0
- package/dist/api/tariffs-api.d.ts +3636 -0
- package/dist/api/tariffs-api.js +4898 -0
- package/dist/api.d.ts +17 -0
- package/dist/api.js +35 -0
- package/dist/base.d.ts +97 -0
- package/dist/base.js +493 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +278 -0
- package/dist/configuration.d.ts +96 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/accept-lead-body.d.ts +30 -0
- package/dist/models/accept-lead-body.js +15 -0
- package/dist/models/accept-lead-response.d.ts +39 -0
- package/dist/models/accept-lead-response.js +15 -0
- package/dist/models/activate-group-policy-body.d.ts +24 -0
- package/dist/models/activate-group-policy-body.js +15 -0
- package/dist/models/activate-group-policy-response.d.ts +32 -0
- package/dist/models/activate-group-policy-response.js +15 -0
- package/dist/models/actor.d.ts +21 -0
- package/dist/models/actor.js +25 -0
- package/dist/models/analyze-config-file-body.d.ts +68 -0
- package/dist/models/analyze-config-file-body.js +15 -0
- package/dist/models/analyze-config-file-response.d.ts +88 -0
- package/dist/models/analyze-config-file-response.js +15 -0
- package/dist/models/any.d.ts +25 -0
- package/dist/models/any.js +15 -0
- package/dist/models/applied-factor.d.ts +30 -0
- package/dist/models/applied-factor.js +15 -0
- package/dist/models/approval-role.d.ts +30 -0
- package/dist/models/approval-role.js +15 -0
- package/dist/models/asset-status.d.ts +22 -0
- package/dist/models/asset-status.js +26 -0
- package/dist/models/available-group-tariff.d.ts +44 -0
- package/dist/models/available-group-tariff.js +15 -0
- package/dist/models/available-tariff.d.ts +55 -0
- package/dist/models/available-tariff.js +15 -0
- package/dist/models/available-transition.d.ts +55 -0
- package/dist/models/available-transition.js +15 -0
- package/dist/models/available-version.d.ts +92 -0
- package/dist/models/available-version.js +15 -0
- package/dist/models/billing-config.d.ts +36 -0
- package/dist/models/billing-config.js +15 -0
- package/dist/models/calculate-group-policy-adjustments-body.d.ts +43 -0
- package/dist/models/calculate-group-policy-adjustments-body.js +15 -0
- package/dist/models/calculate-group-policy-adjustments-response.d.ts +37 -0
- package/dist/models/calculate-group-policy-adjustments-response.js +15 -0
- package/dist/models/cancel-job-response.d.ts +25 -0
- package/dist/models/cancel-job-response.js +15 -0
- package/dist/models/change-kind.d.ts +22 -0
- package/dist/models/change-kind.js +26 -0
- package/dist/models/check-group-policy-upgrade-body.d.ts +30 -0
- package/dist/models/check-group-policy-upgrade-body.js +15 -0
- package/dist/models/check-group-policy-upgrade-response.d.ts +25 -0
- package/dist/models/check-group-policy-upgrade-response.js +15 -0
- package/dist/models/check-policy-upgrade-body.d.ts +30 -0
- package/dist/models/check-policy-upgrade-body.js +15 -0
- package/dist/models/check-policy-upgrade-response.d.ts +25 -0
- package/dist/models/check-policy-upgrade-response.js +15 -0
- package/dist/models/child-fallback.d.ts +21 -0
- package/dist/models/child-fallback.js +25 -0
- package/dist/models/configuration-pin.d.ts +42 -0
- package/dist/models/configuration-pin.js +15 -0
- package/dist/models/conflict-reason.d.ts +36 -0
- package/dist/models/conflict-reason.js +15 -0
- package/dist/models/contract-default-kind.d.ts +23 -0
- package/dist/models/contract-default-kind.js +27 -0
- package/dist/models/contract-unresolved-reason.d.ts +20 -0
- package/dist/models/contract-unresolved-reason.js +24 -0
- package/dist/models/core-config-file-kind.d.ts +21 -0
- package/dist/models/core-config-file-kind.js +25 -0
- package/dist/models/core-config-file.d.ts +151 -0
- package/dist/models/core-config-file.js +15 -0
- package/dist/models/core-config.d.ts +127 -0
- package/dist/models/core-config.js +15 -0
- package/dist/models/correct-group-policy-body.d.ts +61 -0
- package/dist/models/correct-group-policy-body.js +15 -0
- package/dist/models/correct-group-policy-response.d.ts +31 -0
- package/dist/models/correct-group-policy-response.js +15 -0
- package/dist/models/correct-policy-body.d.ts +55 -0
- package/dist/models/correct-policy-body.js +15 -0
- package/dist/models/correct-policy-response.d.ts +44 -0
- package/dist/models/correct-policy-response.js +15 -0
- package/dist/models/coverage-amount.d.ts +30 -0
- package/dist/models/coverage-amount.js +15 -0
- package/dist/models/coverage-approval-limit.d.ts +30 -0
- package/dist/models/coverage-approval-limit.js +15 -0
- package/dist/models/coverage-billing.d.ts +30 -0
- package/dist/models/coverage-billing.js +15 -0
- package/dist/models/coverage-category.d.ts +56 -0
- package/dist/models/coverage-category.js +15 -0
- package/dist/models/coverage-deductible.d.ts +67 -0
- package/dist/models/coverage-deductible.js +15 -0
- package/dist/models/coverage-detail.d.ts +53 -0
- package/dist/models/coverage-detail.js +15 -0
- package/dist/models/coverage-group-policy.d.ts +42 -0
- package/dist/models/coverage-group-policy.js +15 -0
- package/dist/models/coverage-insured-object.d.ts +42 -0
- package/dist/models/coverage-insured-object.js +15 -0
- package/dist/models/coverage-named.d.ts +37 -0
- package/dist/models/coverage-named.js +15 -0
- package/dist/models/coverage-policy.d.ts +55 -0
- package/dist/models/coverage-policy.js +15 -0
- package/dist/models/coverage-term-detail.d.ts +49 -0
- package/dist/models/coverage-term-detail.js +15 -0
- package/dist/models/coverage-variant.d.ts +30 -0
- package/dist/models/coverage-variant.js +15 -0
- package/dist/models/coverage-waiting-period.d.ts +42 -0
- package/dist/models/coverage-waiting-period.js +15 -0
- package/dist/models/create-config-file-upload-body.d.ts +30 -0
- package/dist/models/create-config-file-upload-body.js +15 -0
- package/dist/models/create-config-file-upload-response.d.ts +36 -0
- package/dist/models/create-config-file-upload-response.js +15 -0
- package/dist/models/create-core-config-body.d.ts +42 -0
- package/dist/models/create-core-config-body.js +15 -0
- package/dist/models/create-core-config-response.d.ts +25 -0
- package/dist/models/create-core-config-response.js +15 -0
- package/dist/models/create-detail-export-job-request.d.ts +56 -0
- package/dist/models/create-detail-export-job-request.js +15 -0
- package/dist/models/create-detail-export-job-response.d.ts +25 -0
- package/dist/models/create-detail-export-job-response.js +15 -0
- package/dist/models/create-export-job-request.d.ts +68 -0
- package/dist/models/create-export-job-request.js +15 -0
- package/dist/models/create-export-job-response.d.ts +25 -0
- package/dist/models/create-export-job-response.js +15 -0
- package/dist/models/create-generation-body.d.ts +42 -0
- package/dist/models/create-generation-body.js +15 -0
- package/dist/models/create-generation-response.d.ts +32 -0
- package/dist/models/create-generation-response.js +15 -0
- package/dist/models/create-group-core-config-body.d.ts +42 -0
- package/dist/models/create-group-core-config-body.js +15 -0
- package/dist/models/create-group-core-config-response.d.ts +25 -0
- package/dist/models/create-group-core-config-response.js +15 -0
- package/dist/models/create-group-generation-body.d.ts +30 -0
- package/dist/models/create-group-generation-body.js +15 -0
- package/dist/models/create-group-generation-response.d.ts +25 -0
- package/dist/models/create-group-generation-response.js +15 -0
- package/dist/models/create-group-policy-request.d.ts +68 -0
- package/dist/models/create-group-policy-request.js +15 -0
- package/dist/models/create-group-policy-response.d.ts +32 -0
- package/dist/models/create-group-policy-response.js +15 -0
- package/dist/models/create-group-tariff-request.d.ts +48 -0
- package/dist/models/create-group-tariff-request.js +15 -0
- package/dist/models/create-group-tariff-response.d.ts +25 -0
- package/dist/models/create-group-tariff-response.js +15 -0
- package/dist/models/create-group-version-body.d.ts +30 -0
- package/dist/models/create-group-version-body.js +15 -0
- package/dist/models/create-group-version-response.d.ts +25 -0
- package/dist/models/create-group-version-response.js +15 -0
- package/dist/models/create-lead-import-upload-request.d.ts +30 -0
- package/dist/models/create-lead-import-upload-request.js +15 -0
- package/dist/models/create-lead-import-upload-response.d.ts +36 -0
- package/dist/models/create-lead-import-upload-response.js +15 -0
- package/dist/models/create-lead-request.d.ts +56 -0
- package/dist/models/create-lead-request.js +15 -0
- package/dist/models/create-lead-response.d.ts +32 -0
- package/dist/models/create-lead-response.js +15 -0
- package/dist/models/create-line-of-insurance-request.d.ts +32 -0
- package/dist/models/create-line-of-insurance-request.js +15 -0
- package/dist/models/create-line-of-insurance-response.d.ts +25 -0
- package/dist/models/create-line-of-insurance-response.js +15 -0
- package/dist/models/create-policy-request.d.ts +67 -0
- package/dist/models/create-policy-request.js +15 -0
- package/dist/models/create-policy-response.d.ts +32 -0
- package/dist/models/create-policy-response.js +15 -0
- package/dist/models/create-tariff-request.d.ts +48 -0
- package/dist/models/create-tariff-request.js +15 -0
- package/dist/models/create-tariff-response.d.ts +25 -0
- package/dist/models/create-tariff-response.js +15 -0
- package/dist/models/create-version-body.d.ts +30 -0
- package/dist/models/create-version-body.js +15 -0
- package/dist/models/create-version-response.d.ts +25 -0
- package/dist/models/create-version-response.js +15 -0
- package/dist/models/delete-factor-response.d.ts +25 -0
- package/dist/models/delete-factor-response.js +15 -0
- package/dist/models/delete-named-range-file-response.d.ts +25 -0
- package/dist/models/delete-named-range-file-response.js +15 -0
- package/dist/models/detach-policy-body.d.ts +30 -0
- package/dist/models/detach-policy-body.js +15 -0
- package/dist/models/detach-policy-response.d.ts +38 -0
- package/dist/models/detach-policy-response.js +15 -0
- package/dist/models/discard-core-config-response.d.ts +25 -0
- package/dist/models/discard-core-config-response.js +15 -0
- package/dist/models/discard-group-version-response.d.ts +25 -0
- package/dist/models/discard-group-version-response.js +15 -0
- package/dist/models/discard-version-response.d.ts +25 -0
- package/dist/models/discard-version-response.js +15 -0
- package/dist/models/endorse-policy-body.d.ts +37 -0
- package/dist/models/endorse-policy-body.js +15 -0
- package/dist/models/endorse-policy-response.d.ts +32 -0
- package/dist/models/endorse-policy-response.js +15 -0
- package/dist/models/estimate-error.d.ts +36 -0
- package/dist/models/estimate-error.js +15 -0
- package/dist/models/estimate-lead-premium-response.d.ts +25 -0
- package/dist/models/estimate-lead-premium-response.js +15 -0
- package/dist/models/estimate-policy-premium-response.d.ts +25 -0
- package/dist/models/estimate-policy-premium-response.js +15 -0
- package/dist/models/export-column.d.ts +36 -0
- package/dist/models/export-column.js +15 -0
- package/dist/models/expression-context.d.ts +37 -0
- package/dist/models/expression-context.js +15 -0
- package/dist/models/expression-kind.d.ts +21 -0
- package/dist/models/expression-kind.js +25 -0
- package/dist/models/expression-problem.d.ts +48 -0
- package/dist/models/expression-problem.js +15 -0
- package/dist/models/factor-row.d.ts +36 -0
- package/dist/models/factor-row.js +15 -0
- package/dist/models/field-source.d.ts +21 -0
- package/dist/models/field-source.js +25 -0
- package/dist/models/file-cell-ref.d.ts +30 -0
- package/dist/models/file-cell-ref.js +15 -0
- package/dist/models/file-detected.d.ts +72 -0
- package/dist/models/file-detected.js +15 -0
- package/dist/models/file-finding.d.ts +60 -0
- package/dist/models/file-finding.js +15 -0
- package/dist/models/file-preview-cell.d.ts +36 -0
- package/dist/models/file-preview-cell.js +15 -0
- package/dist/models/file-preview-row.d.ts +31 -0
- package/dist/models/file-preview-row.js +15 -0
- package/dist/models/file-preview.d.ts +37 -0
- package/dist/models/file-preview.js +15 -0
- package/dist/models/file-read-options.d.ts +48 -0
- package/dist/models/file-read-options.js +15 -0
- package/dist/models/file-report.d.ts +79 -0
- package/dist/models/file-report.js +15 -0
- package/dist/models/filter-field-versions.d.ts +30 -0
- package/dist/models/filter-field-versions.js +15 -0
- package/dist/models/filter-field.d.ts +110 -0
- package/dist/models/filter-field.js +15 -0
- package/dist/models/filter-value.d.ts +37 -0
- package/dist/models/filter-value.js +15 -0
- package/dist/models/gate-report.d.ts +68 -0
- package/dist/models/gate-report.js +15 -0
- package/dist/models/generation.d.ts +102 -0
- package/dist/models/generation.js +15 -0
- package/dist/models/get-core-config-policy-data-schema-response.d.ts +24 -0
- package/dist/models/get-core-config-policy-data-schema-response.js +15 -0
- package/dist/models/get-core-config-response.d.ts +25 -0
- package/dist/models/get-core-config-response.js +15 -0
- package/dist/models/get-core-config-schema-response.d.ts +24 -0
- package/dist/models/get-core-config-schema-response.js +15 -0
- package/dist/models/get-coverage-at-date-response.d.ts +111 -0
- package/dist/models/get-coverage-at-date-response.js +15 -0
- package/dist/models/get-diff-response.d.ts +25 -0
- package/dist/models/get-diff-response.js +15 -0
- package/dist/models/get-factor-file-response.d.ts +61 -0
- package/dist/models/get-factor-file-response.js +15 -0
- package/dist/models/get-factor-response.d.ts +37 -0
- package/dist/models/get-factor-response.js +15 -0
- package/dist/models/get-generation-response.d.ts +25 -0
- package/dist/models/get-generation-response.js +15 -0
- package/dist/models/get-group-core-config-response.d.ts +25 -0
- package/dist/models/get-group-core-config-response.js +15 -0
- package/dist/models/get-group-diff-response.d.ts +25 -0
- package/dist/models/get-group-diff-response.js +15 -0
- package/dist/models/get-group-generation-response.d.ts +25 -0
- package/dist/models/get-group-generation-response.js +15 -0
- package/dist/models/get-group-policy-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-group-policy-filter-catalog-response.js +15 -0
- package/dist/models/get-group-policy-member-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-group-policy-member-filter-catalog-response.js +15 -0
- package/dist/models/get-group-policy-member-schema-response.d.ts +49 -0
- package/dist/models/get-group-policy-member-schema-response.js +15 -0
- package/dist/models/get-group-policy-partner-history-response.d.ts +25 -0
- package/dist/models/get-group-policy-partner-history-response.js +15 -0
- package/dist/models/get-group-policy-premium-summary-response.d.ts +25 -0
- package/dist/models/get-group-policy-premium-summary-response.js +15 -0
- package/dist/models/get-group-policy-response.d.ts +45 -0
- package/dist/models/get-group-policy-response.js +15 -0
- package/dist/models/get-group-policy-timeline-response.d.ts +25 -0
- package/dist/models/get-group-policy-timeline-response.js +15 -0
- package/dist/models/get-group-tariff-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-group-tariff-filter-catalog-response.js +15 -0
- package/dist/models/get-group-tariff-response.d.ts +25 -0
- package/dist/models/get-group-tariff-response.js +15 -0
- package/dist/models/get-group-version-response.d.ts +25 -0
- package/dist/models/get-group-version-response.js +15 -0
- package/dist/models/get-job-download-response.d.ts +25 -0
- package/dist/models/get-job-download-response.js +15 -0
- package/dist/models/get-job-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-job-filter-catalog-response.js +15 -0
- package/dist/models/get-job-response.d.ts +25 -0
- package/dist/models/get-job-response.js +15 -0
- package/dist/models/get-lead-filter-catalog-response.d.ts +44 -0
- package/dist/models/get-lead-filter-catalog-response.js +15 -0
- package/dist/models/get-lead-import-job-response.d.ts +25 -0
- package/dist/models/get-lead-import-job-response.js +15 -0
- package/dist/models/get-lead-import-template-response.d.ts +56 -0
- package/dist/models/get-lead-import-template-response.js +15 -0
- package/dist/models/get-lead-response.d.ts +32 -0
- package/dist/models/get-lead-response.js +15 -0
- package/dist/models/get-lead-schema-response.d.ts +55 -0
- package/dist/models/get-lead-schema-response.js +15 -0
- package/dist/models/get-lead-version-response.d.ts +25 -0
- package/dist/models/get-lead-version-response.js +15 -0
- package/dist/models/get-named-range-file-response.d.ts +61 -0
- package/dist/models/get-named-range-file-response.js +15 -0
- package/dist/models/get-named-range-response.d.ts +37 -0
- package/dist/models/get-named-range-response.js +15 -0
- package/dist/models/get-policy-filter-catalog-response.d.ts +44 -0
- package/dist/models/get-policy-filter-catalog-response.js +15 -0
- package/dist/models/get-policy-partner-history-response.d.ts +25 -0
- package/dist/models/get-policy-partner-history-response.js +15 -0
- package/dist/models/get-policy-response.d.ts +51 -0
- package/dist/models/get-policy-response.js +15 -0
- package/dist/models/get-policy-schema-response.d.ts +49 -0
- package/dist/models/get-policy-schema-response.js +15 -0
- package/dist/models/get-policy-timeline-response.d.ts +25 -0
- package/dist/models/get-policy-timeline-response.js +15 -0
- package/dist/models/get-resolved-billing-config-response.d.ts +44 -0
- package/dist/models/get-resolved-billing-config-response.js +15 -0
- package/dist/models/get-resolved-contract-data-response.d.ts +37 -0
- package/dist/models/get-resolved-contract-data-response.js +15 -0
- package/dist/models/get-resolved-core-config-response.d.ts +39 -0
- package/dist/models/get-resolved-core-config-response.js +15 -0
- package/dist/models/get-resolved-tariff-coverage-response.d.ts +50 -0
- package/dist/models/get-resolved-tariff-coverage-response.js +15 -0
- package/dist/models/get-tariff-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-tariff-filter-catalog-response.js +15 -0
- package/dist/models/get-tariff-response.d.ts +25 -0
- package/dist/models/get-tariff-response.js +15 -0
- package/dist/models/get-version-response.d.ts +25 -0
- package/dist/models/get-version-response.js +15 -0
- package/dist/models/golden-case-delta.d.ts +36 -0
- package/dist/models/golden-case-delta.js +15 -0
- package/dist/models/group-policy-list-entry.d.ts +57 -0
- package/dist/models/group-policy-list-entry.js +15 -0
- package/dist/models/group-policy-segment.d.ts +38 -0
- package/dist/models/group-policy-segment.js +15 -0
- package/dist/models/group-policy-status.d.ts +22 -0
- package/dist/models/group-policy-status.js +26 -0
- package/dist/models/group-policy.d.ts +124 -0
- package/dist/models/group-policy.js +15 -0
- package/dist/models/group-premium-summary.d.ts +69 -0
- package/dist/models/group-premium-summary.js +15 -0
- package/dist/models/group-tariff-version.d.ts +146 -0
- package/dist/models/group-tariff-version.js +15 -0
- package/dist/models/group-tariff.d.ts +109 -0
- package/dist/models/group-tariff.js +15 -0
- package/dist/models/highlight.d.ts +30 -0
- package/dist/models/highlight.js +15 -0
- package/dist/models/import-file.d.ts +36 -0
- package/dist/models/import-file.js +15 -0
- package/dist/models/import-leads-request.d.ts +86 -0
- package/dist/models/import-leads-request.js +15 -0
- package/dist/models/import-leads-response.d.ts +32 -0
- package/dist/models/import-leads-response.js +15 -0
- package/dist/models/index.d.ts +322 -0
- package/dist/models/index.js +338 -0
- package/dist/models/insured-person.d.ts +24 -0
- package/dist/models/insured-person.js +15 -0
- package/dist/models/job-download.d.ts +36 -0
- package/dist/models/job-download.js +15 -0
- package/dist/models/job-error.d.ts +30 -0
- package/dist/models/job-error.js +15 -0
- package/dist/models/job-progress.d.ts +36 -0
- package/dist/models/job-progress.js +15 -0
- package/dist/models/job.d.ts +134 -0
- package/dist/models/job.js +15 -0
- package/dist/models/lead-import-counts.d.ts +48 -0
- package/dist/models/lead-import-counts.js +15 -0
- package/dist/models/lead-import-item.d.ts +86 -0
- package/dist/models/lead-import-item.js +15 -0
- package/dist/models/lead-import-job.d.ts +128 -0
- package/dist/models/lead-import-job.js +15 -0
- package/dist/models/lead-import-template-column.d.ts +79 -0
- package/dist/models/lead-import-template-column.js +15 -0
- package/dist/models/lead-import-template-value.d.ts +30 -0
- package/dist/models/lead-import-template-value.js +15 -0
- package/dist/models/lead-status.d.ts +43 -0
- package/dist/models/lead-status.js +15 -0
- package/dist/models/lead-version.d.ts +73 -0
- package/dist/models/lead-version.js +15 -0
- package/dist/models/lead.d.ts +124 -0
- package/dist/models/lead.js +15 -0
- package/dist/models/liable-party.d.ts +36 -0
- package/dist/models/liable-party.js +15 -0
- package/dist/models/line-of-insurance.d.ts +68 -0
- package/dist/models/line-of-insurance.js +15 -0
- package/dist/models/list-approval-roles-response.d.ts +37 -0
- package/dist/models/list-approval-roles-response.js +15 -0
- package/dist/models/list-available-group-tariffs-response.d.ts +37 -0
- package/dist/models/list-available-group-tariffs-response.js +15 -0
- package/dist/models/list-available-versions-response.d.ts +37 -0
- package/dist/models/list-available-versions-response.js +15 -0
- package/dist/models/list-core-configs-response.d.ts +37 -0
- package/dist/models/list-core-configs-response.js +15 -0
- package/dist/models/list-generations-response.d.ts +37 -0
- package/dist/models/list-generations-response.js +15 -0
- package/dist/models/list-group-core-configs-response.d.ts +37 -0
- package/dist/models/list-group-core-configs-response.js +15 -0
- package/dist/models/list-group-generations-response.d.ts +37 -0
- package/dist/models/list-group-generations-response.js +15 -0
- package/dist/models/list-group-policies-response.d.ts +37 -0
- package/dist/models/list-group-policies-response.js +15 -0
- package/dist/models/list-group-policy-members-response.d.ts +37 -0
- package/dist/models/list-group-policy-members-response.js +15 -0
- package/dist/models/list-group-policy-upgrade-targets-response.d.ts +37 -0
- package/dist/models/list-group-policy-upgrade-targets-response.js +15 -0
- package/dist/models/list-group-tariffs-response.d.ts +37 -0
- package/dist/models/list-group-tariffs-response.js +15 -0
- package/dist/models/list-group-versions-response.d.ts +37 -0
- package/dist/models/list-group-versions-response.js +15 -0
- package/dist/models/list-jobs-response.d.ts +37 -0
- package/dist/models/list-jobs-response.js +15 -0
- package/dist/models/list-lead-versions-response.d.ts +37 -0
- package/dist/models/list-lead-versions-response.js +15 -0
- package/dist/models/list-leads-response.d.ts +37 -0
- package/dist/models/list-leads-response.js +15 -0
- package/dist/models/list-lines-of-insurance-response.d.ts +37 -0
- package/dist/models/list-lines-of-insurance-response.js +15 -0
- package/dist/models/list-partner-roles-response.d.ts +37 -0
- package/dist/models/list-partner-roles-response.js +15 -0
- package/dist/models/list-partner-types-response.d.ts +37 -0
- package/dist/models/list-partner-types-response.js +15 -0
- package/dist/models/list-policies-response.d.ts +37 -0
- package/dist/models/list-policies-response.js +15 -0
- package/dist/models/list-policy-filter-values-response.d.ts +37 -0
- package/dist/models/list-policy-filter-values-response.js +15 -0
- package/dist/models/list-policy-snapshots-response.d.ts +37 -0
- package/dist/models/list-policy-snapshots-response.js +15 -0
- package/dist/models/list-policy-upgrade-targets-response.d.ts +37 -0
- package/dist/models/list-policy-upgrade-targets-response.js +15 -0
- package/dist/models/list-request.d.ts +60 -0
- package/dist/models/list-request.js +15 -0
- package/dist/models/list-tariffs-response.d.ts +37 -0
- package/dist/models/list-tariffs-response.js +15 -0
- package/dist/models/list-versions-response.d.ts +37 -0
- package/dist/models/list-versions-response.js +15 -0
- package/dist/models/localized-text.d.ts +30 -0
- package/dist/models/localized-text.js +15 -0
- package/dist/models/manifest-diff.d.ts +44 -0
- package/dist/models/manifest-diff.js +15 -0
- package/dist/models/match.d.ts +69 -0
- package/dist/models/match.js +15 -0
- package/dist/models/member-projection.d.ts +93 -0
- package/dist/models/member-projection.js +15 -0
- package/dist/models/money.d.ts +30 -0
- package/dist/models/money.js +15 -0
- package/dist/models/named-range-name.d.ts +30 -0
- package/dist/models/named-range-name.js +15 -0
- package/dist/models/named-range-row.d.ts +30 -0
- package/dist/models/named-range-row.js +15 -0
- package/dist/models/partner-draft.d.ts +30 -0
- package/dist/models/partner-draft.js +15 -0
- package/dist/models/partner-link.d.ts +36 -0
- package/dist/models/partner-link.js +15 -0
- package/dist/models/partner-period.d.ts +42 -0
- package/dist/models/partner-period.js +15 -0
- package/dist/models/partner-role-catalog-entry.d.ts +48 -0
- package/dist/models/partner-role-catalog-entry.js +15 -0
- package/dist/models/partner-role-rule.d.ts +60 -0
- package/dist/models/partner-role-rule.js +15 -0
- package/dist/models/partner-type-catalog-entry.d.ts +36 -0
- package/dist/models/partner-type-catalog-entry.js +15 -0
- package/dist/models/policy-list-entry.d.ts +45 -0
- package/dist/models/policy-list-entry.js +15 -0
- package/dist/models/policy-membership.d.ts +21 -0
- package/dist/models/policy-membership.js +25 -0
- package/dist/models/policy-segment.d.ts +38 -0
- package/dist/models/policy-segment.js +15 -0
- package/dist/models/policy-slice-summary.d.ts +79 -0
- package/dist/models/policy-slice-summary.js +15 -0
- package/dist/models/policy-status.d.ts +21 -0
- package/dist/models/policy-status.js +25 -0
- package/dist/models/policy.d.ts +138 -0
- package/dist/models/policy.js +15 -0
- package/dist/models/policyholder-ref.d.ts +43 -0
- package/dist/models/policyholder-ref.js +15 -0
- package/dist/models/premium-adjustment-basis.d.ts +31 -0
- package/dist/models/premium-adjustment-basis.js +15 -0
- package/dist/models/premium-adjustment.d.ts +86 -0
- package/dist/models/premium-adjustment.js +15 -0
- package/dist/models/premium-engine.d.ts +36 -0
- package/dist/models/premium-engine.js +15 -0
- package/dist/models/premium-estimate.d.ts +88 -0
- package/dist/models/premium-estimate.js +15 -0
- package/dist/models/premium-item.d.ts +84 -0
- package/dist/models/premium-item.js +15 -0
- package/dist/models/premium-summary-basis.d.ts +36 -0
- package/dist/models/premium-summary-basis.js +15 -0
- package/dist/models/premium-tier.d.ts +30 -0
- package/dist/models/premium-tier.js +15 -0
- package/dist/models/premium-totals.d.ts +43 -0
- package/dist/models/premium-totals.js +15 -0
- package/dist/models/premium.d.ts +108 -0
- package/dist/models/premium.js +15 -0
- package/dist/models/preview-group-policy-correction-body.d.ts +55 -0
- package/dist/models/preview-group-policy-correction-body.js +15 -0
- package/dist/models/preview-group-policy-correction-response.d.ts +31 -0
- package/dist/models/preview-group-policy-correction-response.js +15 -0
- package/dist/models/preview-group-policy-termination-body.d.ts +43 -0
- package/dist/models/preview-group-policy-termination-body.js +15 -0
- package/dist/models/preview-group-policy-termination-response.d.ts +32 -0
- package/dist/models/preview-group-policy-termination-response.js +15 -0
- package/dist/models/preview-policy-correction-body.d.ts +42 -0
- package/dist/models/preview-policy-correction-body.js +15 -0
- package/dist/models/preview-policy-correction-response.d.ts +38 -0
- package/dist/models/preview-policy-correction-response.js +15 -0
- package/dist/models/publish-core-config-response.d.ts +25 -0
- package/dist/models/publish-core-config-response.js +15 -0
- package/dist/models/publish-group-core-config-response.d.ts +25 -0
- package/dist/models/publish-group-core-config-response.js +15 -0
- package/dist/models/publish-group-version-body.d.ts +36 -0
- package/dist/models/publish-group-version-body.js +15 -0
- package/dist/models/publish-group-version-response.d.ts +39 -0
- package/dist/models/publish-group-version-response.js +15 -0
- package/dist/models/publish-version-body.d.ts +36 -0
- package/dist/models/publish-version-body.js +15 -0
- package/dist/models/publish-version-response.d.ts +39 -0
- package/dist/models/publish-version-response.js +15 -0
- package/dist/models/put-core-config-document-body.d.ts +24 -0
- package/dist/models/put-core-config-document-body.js +15 -0
- package/dist/models/put-core-config-document-response.d.ts +32 -0
- package/dist/models/put-core-config-document-response.js +15 -0
- package/dist/models/put-factor-file-body.d.ts +73 -0
- package/dist/models/put-factor-file-body.js +15 -0
- package/dist/models/put-factor-file-response.d.ts +32 -0
- package/dist/models/put-factor-file-response.js +15 -0
- package/dist/models/put-named-range-file-body.d.ts +68 -0
- package/dist/models/put-named-range-file-body.js +15 -0
- package/dist/models/put-named-range-file-response.d.ts +32 -0
- package/dist/models/put-named-range-file-response.js +15 -0
- package/dist/models/put-named-range-json-body.d.ts +24 -0
- package/dist/models/put-named-range-json-body.js +15 -0
- package/dist/models/put-named-range-json-response.d.ts +32 -0
- package/dist/models/put-named-range-json-response.js +15 -0
- package/dist/models/ref-change.d.ts +43 -0
- package/dist/models/ref-change.js +15 -0
- package/dist/models/refresh-lead-response.d.ts +32 -0
- package/dist/models/refresh-lead-response.js +15 -0
- package/dist/models/register-lead-partners-response.d.ts +39 -0
- package/dist/models/register-lead-partners-response.js +15 -0
- package/dist/models/renew-group-policy-body.d.ts +30 -0
- package/dist/models/renew-group-policy-body.js +15 -0
- package/dist/models/renew-group-policy-response.d.ts +39 -0
- package/dist/models/renew-group-policy-response.js +15 -0
- package/dist/models/report-item.d.ts +49 -0
- package/dist/models/report-item.js +15 -0
- package/dist/models/report-severity.d.ts +21 -0
- package/dist/models/report-severity.js +25 -0
- package/dist/models/resolved-contract-field.d.ts +50 -0
- package/dist/models/resolved-contract-field.js +15 -0
- package/dist/models/resolved-factor.d.ts +49 -0
- package/dist/models/resolved-factor.js +15 -0
- package/dist/models/resolved-named-range.d.ts +43 -0
- package/dist/models/resolved-named-range.js +15 -0
- package/dist/models/resolved-partner.d.ts +61 -0
- package/dist/models/resolved-partner.js +15 -0
- package/dist/models/set-active-group-version-body.d.ts +24 -0
- package/dist/models/set-active-group-version-body.js +15 -0
- package/dist/models/set-active-group-version-response.d.ts +25 -0
- package/dist/models/set-active-group-version-response.js +15 -0
- package/dist/models/set-active-version-body.d.ts +24 -0
- package/dist/models/set-active-version-body.js +15 -0
- package/dist/models/set-active-version-response.d.ts +25 -0
- package/dist/models/set-active-version-response.js +15 -0
- package/dist/models/set-group-version-status-body.d.ts +37 -0
- package/dist/models/set-group-version-status-body.js +15 -0
- package/dist/models/set-group-version-status-response.d.ts +39 -0
- package/dist/models/set-group-version-status-response.js +15 -0
- package/dist/models/set-version-status-body.d.ts +37 -0
- package/dist/models/set-version-status-body.js +15 -0
- package/dist/models/set-version-status-response.d.ts +39 -0
- package/dist/models/set-version-status-response.js +15 -0
- package/dist/models/slice.d.ts +30 -0
- package/dist/models/slice.js +15 -0
- package/dist/models/snapshot-envelope.d.ts +42 -0
- package/dist/models/snapshot-envelope.js +15 -0
- package/dist/models/status-kind.d.ts +23 -0
- package/dist/models/status-kind.js +27 -0
- package/dist/models/status.d.ts +37 -0
- package/dist/models/status.js +15 -0
- package/dist/models/tariff-version.d.ts +146 -0
- package/dist/models/tariff-version.js +15 -0
- package/dist/models/tariff.d.ts +109 -0
- package/dist/models/tariff.js +15 -0
- package/dist/models/tax-amount.d.ts +42 -0
- package/dist/models/tax-amount.js +15 -0
- package/dist/models/terminate-group-policy-body.d.ts +49 -0
- package/dist/models/terminate-group-policy-body.js +15 -0
- package/dist/models/terminate-group-policy-response.d.ts +39 -0
- package/dist/models/terminate-group-policy-response.js +15 -0
- package/dist/models/terminate-policy-body.d.ts +30 -0
- package/dist/models/terminate-policy-body.js +15 -0
- package/dist/models/terminate-policy-response.d.ts +32 -0
- package/dist/models/terminate-policy-response.js +15 -0
- package/dist/models/transition-lead-body.d.ts +30 -0
- package/dist/models/transition-lead-body.js +15 -0
- package/dist/models/transition-lead-response.d.ts +32 -0
- package/dist/models/transition-lead-response.js +15 -0
- package/dist/models/update-core-config-body.d.ts +24 -0
- package/dist/models/update-core-config-body.js +15 -0
- package/dist/models/update-core-config-response.d.ts +25 -0
- package/dist/models/update-core-config-response.js +15 -0
- package/dist/models/update-generation-body.d.ts +30 -0
- package/dist/models/update-generation-body.js +15 -0
- package/dist/models/update-generation-response.d.ts +25 -0
- package/dist/models/update-generation-response.js +15 -0
- package/dist/models/update-group-core-config-body.d.ts +30 -0
- package/dist/models/update-group-core-config-body.js +15 -0
- package/dist/models/update-group-core-config-response.d.ts +25 -0
- package/dist/models/update-group-core-config-response.js +15 -0
- package/dist/models/update-group-policy-body.d.ts +50 -0
- package/dist/models/update-group-policy-body.js +15 -0
- package/dist/models/update-group-policy-response.d.ts +32 -0
- package/dist/models/update-group-policy-response.js +15 -0
- package/dist/models/update-group-version-body.d.ts +24 -0
- package/dist/models/update-group-version-body.js +15 -0
- package/dist/models/update-group-version-response.d.ts +25 -0
- package/dist/models/update-group-version-response.js +15 -0
- package/dist/models/update-lead-body.d.ts +44 -0
- package/dist/models/update-lead-body.js +15 -0
- package/dist/models/update-lead-response.d.ts +32 -0
- package/dist/models/update-lead-response.js +15 -0
- package/dist/models/update-tariff-body.d.ts +36 -0
- package/dist/models/update-tariff-body.js +15 -0
- package/dist/models/update-tariff-response.d.ts +25 -0
- package/dist/models/update-tariff-response.js +15 -0
- package/dist/models/update-version-body.d.ts +24 -0
- package/dist/models/update-version-body.js +15 -0
- package/dist/models/update-version-response.d.ts +25 -0
- package/dist/models/update-version-response.js +15 -0
- package/dist/models/upgrade-check-result.d.ts +62 -0
- package/dist/models/upgrade-check-result.js +15 -0
- package/dist/models/upgrade-group-policy-body.d.ts +30 -0
- package/dist/models/upgrade-group-policy-body.js +15 -0
- package/dist/models/upgrade-group-policy-response.d.ts +39 -0
- package/dist/models/upgrade-group-policy-response.js +15 -0
- package/dist/models/upgrade-issue.d.ts +42 -0
- package/dist/models/upgrade-issue.js +15 -0
- package/dist/models/upgrade-policy-body.d.ts +30 -0
- package/dist/models/upgrade-policy-body.js +15 -0
- package/dist/models/upgrade-policy-response.d.ts +39 -0
- package/dist/models/upgrade-policy-response.js +15 -0
- package/dist/models/upgrade-target.d.ts +48 -0
- package/dist/models/upgrade-target.js +15 -0
- package/dist/models/validate-core-config-expression-body.d.ts +31 -0
- package/dist/models/validate-core-config-expression-body.js +15 -0
- package/dist/models/validate-core-config-expression-response.d.ts +25 -0
- package/dist/models/validate-core-config-expression-response.js +15 -0
- package/dist/models/validate-core-config-response.d.ts +25 -0
- package/dist/models/validate-core-config-response.js +15 -0
- package/dist/models/validate-group-version-body.d.ts +30 -0
- package/dist/models/validate-group-version-body.js +15 -0
- package/dist/models/validate-group-version-response.d.ts +25 -0
- package/dist/models/validate-group-version-response.js +15 -0
- package/dist/models/validate-version-body.d.ts +24 -0
- package/dist/models/validate-version-body.js +15 -0
- package/dist/models/validate-version-response.d.ts +25 -0
- package/dist/models/validate-version-response.js +15 -0
- package/dist/models/validation-issue.d.ts +36 -0
- package/dist/models/validation-issue.js +15 -0
- package/dist/models/validation-report.d.ts +31 -0
- package/dist/models/validation-report.js +15 -0
- package/dist/models/version-status.d.ts +24 -0
- package/dist/models/version-status.js +28 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/accept-lead-body.ts +36 -0
- package/models/accept-lead-response.ts +45 -0
- package/models/activate-group-policy-body.ts +30 -0
- package/models/activate-group-policy-response.ts +38 -0
- package/models/actor.ts +31 -0
- package/models/analyze-config-file-body.ts +74 -0
- package/models/analyze-config-file-response.ts +94 -0
- package/models/any.ts +32 -0
- package/models/applied-factor.ts +36 -0
- package/models/approval-role.ts +36 -0
- package/models/asset-status.ts +32 -0
- package/models/available-group-tariff.ts +50 -0
- package/models/available-tariff.ts +61 -0
- package/models/available-transition.ts +61 -0
- package/models/available-version.ts +98 -0
- package/models/billing-config.ts +42 -0
- package/models/calculate-group-policy-adjustments-body.ts +49 -0
- package/models/calculate-group-policy-adjustments-response.ts +43 -0
- package/models/cancel-job-response.ts +31 -0
- package/models/change-kind.ts +32 -0
- package/models/check-group-policy-upgrade-body.ts +36 -0
- package/models/check-group-policy-upgrade-response.ts +31 -0
- package/models/check-policy-upgrade-body.ts +36 -0
- package/models/check-policy-upgrade-response.ts +31 -0
- package/models/child-fallback.ts +31 -0
- package/models/configuration-pin.ts +48 -0
- package/models/conflict-reason.ts +42 -0
- package/models/contract-default-kind.ts +33 -0
- package/models/contract-unresolved-reason.ts +30 -0
- package/models/core-config-file-kind.ts +31 -0
- package/models/core-config-file.ts +157 -0
- package/models/core-config.ts +133 -0
- package/models/correct-group-policy-body.ts +67 -0
- package/models/correct-group-policy-response.ts +37 -0
- package/models/correct-policy-body.ts +61 -0
- package/models/correct-policy-response.ts +50 -0
- package/models/coverage-amount.ts +36 -0
- package/models/coverage-approval-limit.ts +36 -0
- package/models/coverage-billing.ts +36 -0
- package/models/coverage-category.ts +62 -0
- package/models/coverage-deductible.ts +73 -0
- package/models/coverage-detail.ts +59 -0
- package/models/coverage-group-policy.ts +48 -0
- package/models/coverage-insured-object.ts +48 -0
- package/models/coverage-named.ts +43 -0
- package/models/coverage-policy.ts +61 -0
- package/models/coverage-term-detail.ts +55 -0
- package/models/coverage-variant.ts +36 -0
- package/models/coverage-waiting-period.ts +48 -0
- package/models/create-config-file-upload-body.ts +36 -0
- package/models/create-config-file-upload-response.ts +42 -0
- package/models/create-core-config-body.ts +48 -0
- package/models/create-core-config-response.ts +31 -0
- package/models/create-detail-export-job-request.ts +60 -0
- package/models/create-detail-export-job-response.ts +31 -0
- package/models/create-export-job-request.ts +74 -0
- package/models/create-export-job-response.ts +31 -0
- package/models/create-generation-body.ts +48 -0
- package/models/create-generation-response.ts +38 -0
- package/models/create-group-core-config-body.ts +48 -0
- package/models/create-group-core-config-response.ts +31 -0
- package/models/create-group-generation-body.ts +36 -0
- package/models/create-group-generation-response.ts +31 -0
- package/models/create-group-policy-request.ts +74 -0
- package/models/create-group-policy-response.ts +38 -0
- package/models/create-group-tariff-request.ts +54 -0
- package/models/create-group-tariff-response.ts +31 -0
- package/models/create-group-version-body.ts +36 -0
- package/models/create-group-version-response.ts +31 -0
- package/models/create-lead-import-upload-request.ts +36 -0
- package/models/create-lead-import-upload-response.ts +42 -0
- package/models/create-lead-request.ts +62 -0
- package/models/create-lead-response.ts +38 -0
- package/models/create-line-of-insurance-request.ts +36 -0
- package/models/create-line-of-insurance-response.ts +31 -0
- package/models/create-policy-request.ts +73 -0
- package/models/create-policy-response.ts +38 -0
- package/models/create-tariff-request.ts +54 -0
- package/models/create-tariff-response.ts +31 -0
- package/models/create-version-body.ts +36 -0
- package/models/create-version-response.ts +31 -0
- package/models/delete-factor-response.ts +31 -0
- package/models/delete-named-range-file-response.ts +31 -0
- package/models/detach-policy-body.ts +36 -0
- package/models/detach-policy-response.ts +44 -0
- package/models/discard-core-config-response.ts +31 -0
- package/models/discard-group-version-response.ts +31 -0
- package/models/discard-version-response.ts +31 -0
- package/models/endorse-policy-body.ts +43 -0
- package/models/endorse-policy-response.ts +38 -0
- package/models/estimate-error.ts +42 -0
- package/models/estimate-lead-premium-response.ts +31 -0
- package/models/estimate-policy-premium-response.ts +31 -0
- package/models/export-column.ts +42 -0
- package/models/expression-context.ts +43 -0
- package/models/expression-kind.ts +31 -0
- package/models/expression-problem.ts +54 -0
- package/models/factor-row.ts +42 -0
- package/models/field-source.ts +31 -0
- package/models/file-cell-ref.ts +36 -0
- package/models/file-detected.ts +78 -0
- package/models/file-finding.ts +66 -0
- package/models/file-preview-cell.ts +42 -0
- package/models/file-preview-row.ts +37 -0
- package/models/file-preview.ts +43 -0
- package/models/file-read-options.ts +54 -0
- package/models/file-report.ts +85 -0
- package/models/filter-field-versions.ts +36 -0
- package/models/filter-field.ts +116 -0
- package/models/filter-value.ts +43 -0
- package/models/gate-report.ts +74 -0
- package/models/generation.ts +108 -0
- package/models/get-core-config-policy-data-schema-response.ts +30 -0
- package/models/get-core-config-response.ts +31 -0
- package/models/get-core-config-schema-response.ts +30 -0
- package/models/get-coverage-at-date-response.ts +115 -0
- package/models/get-diff-response.ts +31 -0
- package/models/get-factor-file-response.ts +67 -0
- package/models/get-factor-response.ts +43 -0
- package/models/get-generation-response.ts +31 -0
- package/models/get-group-core-config-response.ts +31 -0
- package/models/get-group-diff-response.ts +31 -0
- package/models/get-group-generation-response.ts +31 -0
- package/models/get-group-policy-filter-catalog-response.ts +37 -0
- package/models/get-group-policy-member-filter-catalog-response.ts +37 -0
- package/models/get-group-policy-member-schema-response.ts +55 -0
- package/models/get-group-policy-partner-history-response.ts +31 -0
- package/models/get-group-policy-premium-summary-response.ts +31 -0
- package/models/get-group-policy-response.ts +51 -0
- package/models/get-group-policy-timeline-response.ts +31 -0
- package/models/get-group-tariff-filter-catalog-response.ts +37 -0
- package/models/get-group-tariff-response.ts +31 -0
- package/models/get-group-version-response.ts +31 -0
- package/models/get-job-download-response.ts +31 -0
- package/models/get-job-filter-catalog-response.ts +37 -0
- package/models/get-job-response.ts +31 -0
- package/models/get-lead-filter-catalog-response.ts +50 -0
- package/models/get-lead-import-job-response.ts +31 -0
- package/models/get-lead-import-template-response.ts +62 -0
- package/models/get-lead-response.ts +38 -0
- package/models/get-lead-schema-response.ts +61 -0
- package/models/get-lead-version-response.ts +31 -0
- package/models/get-named-range-file-response.ts +67 -0
- package/models/get-named-range-response.ts +43 -0
- package/models/get-policy-filter-catalog-response.ts +50 -0
- package/models/get-policy-partner-history-response.ts +31 -0
- package/models/get-policy-response.ts +57 -0
- package/models/get-policy-schema-response.ts +55 -0
- package/models/get-policy-timeline-response.ts +31 -0
- package/models/get-resolved-billing-config-response.ts +48 -0
- package/models/get-resolved-contract-data-response.ts +43 -0
- package/models/get-resolved-core-config-response.ts +45 -0
- package/models/get-resolved-tariff-coverage-response.ts +54 -0
- package/models/get-tariff-filter-catalog-response.ts +37 -0
- package/models/get-tariff-response.ts +31 -0
- package/models/get-version-response.ts +31 -0
- package/models/golden-case-delta.ts +42 -0
- package/models/group-policy-list-entry.ts +63 -0
- package/models/group-policy-segment.ts +44 -0
- package/models/group-policy-status.ts +32 -0
- package/models/group-policy.ts +130 -0
- package/models/group-premium-summary.ts +75 -0
- package/models/group-tariff-version.ts +152 -0
- package/models/group-tariff.ts +115 -0
- package/models/highlight.ts +36 -0
- package/models/import-file.ts +42 -0
- package/models/import-leads-request.ts +92 -0
- package/models/import-leads-response.ts +38 -0
- package/models/index.ts +322 -0
- package/models/insured-person.ts +30 -0
- package/models/job-download.ts +42 -0
- package/models/job-error.ts +36 -0
- package/models/job-progress.ts +42 -0
- package/models/job.ts +140 -0
- package/models/lead-import-counts.ts +54 -0
- package/models/lead-import-item.ts +92 -0
- package/models/lead-import-job.ts +134 -0
- package/models/lead-import-template-column.ts +85 -0
- package/models/lead-import-template-value.ts +36 -0
- package/models/lead-status.ts +49 -0
- package/models/lead-version.ts +79 -0
- package/models/lead.ts +130 -0
- package/models/liable-party.ts +42 -0
- package/models/line-of-insurance.ts +72 -0
- package/models/list-approval-roles-response.ts +43 -0
- package/models/list-available-group-tariffs-response.ts +43 -0
- package/models/list-available-versions-response.ts +43 -0
- package/models/list-core-configs-response.ts +43 -0
- package/models/list-generations-response.ts +43 -0
- package/models/list-group-core-configs-response.ts +43 -0
- package/models/list-group-generations-response.ts +43 -0
- package/models/list-group-policies-response.ts +43 -0
- package/models/list-group-policy-members-response.ts +43 -0
- package/models/list-group-policy-upgrade-targets-response.ts +43 -0
- package/models/list-group-tariffs-response.ts +43 -0
- package/models/list-group-versions-response.ts +43 -0
- package/models/list-jobs-response.ts +43 -0
- package/models/list-lead-versions-response.ts +43 -0
- package/models/list-leads-response.ts +43 -0
- package/models/list-lines-of-insurance-response.ts +43 -0
- package/models/list-partner-roles-response.ts +43 -0
- package/models/list-partner-types-response.ts +43 -0
- package/models/list-policies-response.ts +43 -0
- package/models/list-policy-filter-values-response.ts +43 -0
- package/models/list-policy-snapshots-response.ts +43 -0
- package/models/list-policy-upgrade-targets-response.ts +43 -0
- package/models/list-request.ts +66 -0
- package/models/list-tariffs-response.ts +43 -0
- package/models/list-versions-response.ts +43 -0
- package/models/localized-text.ts +36 -0
- package/models/manifest-diff.ts +50 -0
- package/models/match.ts +75 -0
- package/models/member-projection.ts +99 -0
- package/models/money.ts +36 -0
- package/models/named-range-name.ts +36 -0
- package/models/named-range-row.ts +36 -0
- package/models/partner-draft.ts +36 -0
- package/models/partner-link.ts +42 -0
- package/models/partner-period.ts +48 -0
- package/models/partner-role-catalog-entry.ts +54 -0
- package/models/partner-role-rule.ts +66 -0
- package/models/partner-type-catalog-entry.ts +42 -0
- package/models/policy-list-entry.ts +51 -0
- package/models/policy-membership.ts +31 -0
- package/models/policy-segment.ts +44 -0
- package/models/policy-slice-summary.ts +85 -0
- package/models/policy-status.ts +31 -0
- package/models/policy.ts +144 -0
- package/models/policyholder-ref.ts +49 -0
- package/models/premium-adjustment-basis.ts +37 -0
- package/models/premium-adjustment.ts +92 -0
- package/models/premium-engine.ts +42 -0
- package/models/premium-estimate.ts +94 -0
- package/models/premium-item.ts +90 -0
- package/models/premium-summary-basis.ts +42 -0
- package/models/premium-tier.ts +36 -0
- package/models/premium-totals.ts +49 -0
- package/models/premium.ts +114 -0
- package/models/preview-group-policy-correction-body.ts +61 -0
- package/models/preview-group-policy-correction-response.ts +37 -0
- package/models/preview-group-policy-termination-body.ts +49 -0
- package/models/preview-group-policy-termination-response.ts +38 -0
- package/models/preview-policy-correction-body.ts +48 -0
- package/models/preview-policy-correction-response.ts +44 -0
- package/models/publish-core-config-response.ts +31 -0
- package/models/publish-group-core-config-response.ts +31 -0
- package/models/publish-group-version-body.ts +42 -0
- package/models/publish-group-version-response.ts +45 -0
- package/models/publish-version-body.ts +42 -0
- package/models/publish-version-response.ts +45 -0
- package/models/put-core-config-document-body.ts +30 -0
- package/models/put-core-config-document-response.ts +38 -0
- package/models/put-factor-file-body.ts +79 -0
- package/models/put-factor-file-response.ts +38 -0
- package/models/put-named-range-file-body.ts +74 -0
- package/models/put-named-range-file-response.ts +38 -0
- package/models/put-named-range-json-body.ts +30 -0
- package/models/put-named-range-json-response.ts +38 -0
- package/models/ref-change.ts +49 -0
- package/models/refresh-lead-response.ts +38 -0
- package/models/register-lead-partners-response.ts +45 -0
- package/models/renew-group-policy-body.ts +36 -0
- package/models/renew-group-policy-response.ts +45 -0
- package/models/report-item.ts +55 -0
- package/models/report-severity.ts +31 -0
- package/models/resolved-contract-field.ts +56 -0
- package/models/resolved-factor.ts +55 -0
- package/models/resolved-named-range.ts +49 -0
- package/models/resolved-partner.ts +67 -0
- package/models/set-active-group-version-body.ts +30 -0
- package/models/set-active-group-version-response.ts +31 -0
- package/models/set-active-version-body.ts +30 -0
- package/models/set-active-version-response.ts +31 -0
- package/models/set-group-version-status-body.ts +43 -0
- package/models/set-group-version-status-response.ts +45 -0
- package/models/set-version-status-body.ts +43 -0
- package/models/set-version-status-response.ts +45 -0
- package/models/slice.ts +36 -0
- package/models/snapshot-envelope.ts +48 -0
- package/models/status-kind.ts +33 -0
- package/models/status.ts +43 -0
- package/models/tariff-version.ts +152 -0
- package/models/tariff.ts +115 -0
- package/models/tax-amount.ts +48 -0
- package/models/terminate-group-policy-body.ts +55 -0
- package/models/terminate-group-policy-response.ts +45 -0
- package/models/terminate-policy-body.ts +36 -0
- package/models/terminate-policy-response.ts +38 -0
- package/models/transition-lead-body.ts +36 -0
- package/models/transition-lead-response.ts +38 -0
- package/models/update-core-config-body.ts +30 -0
- package/models/update-core-config-response.ts +31 -0
- package/models/update-generation-body.ts +36 -0
- package/models/update-generation-response.ts +31 -0
- package/models/update-group-core-config-body.ts +36 -0
- package/models/update-group-core-config-response.ts +31 -0
- package/models/update-group-policy-body.ts +56 -0
- package/models/update-group-policy-response.ts +38 -0
- package/models/update-group-version-body.ts +30 -0
- package/models/update-group-version-response.ts +31 -0
- package/models/update-lead-body.ts +50 -0
- package/models/update-lead-response.ts +38 -0
- package/models/update-tariff-body.ts +42 -0
- package/models/update-tariff-response.ts +31 -0
- package/models/update-version-body.ts +30 -0
- package/models/update-version-response.ts +31 -0
- package/models/upgrade-check-result.ts +68 -0
- package/models/upgrade-group-policy-body.ts +36 -0
- package/models/upgrade-group-policy-response.ts +45 -0
- package/models/upgrade-issue.ts +48 -0
- package/models/upgrade-policy-body.ts +36 -0
- package/models/upgrade-policy-response.ts +45 -0
- package/models/upgrade-target.ts +54 -0
- package/models/validate-core-config-expression-body.ts +37 -0
- package/models/validate-core-config-expression-response.ts +31 -0
- package/models/validate-core-config-response.ts +31 -0
- package/models/validate-group-version-body.ts +36 -0
- package/models/validate-group-version-response.ts +31 -0
- package/models/validate-version-body.ts +30 -0
- package/models/validate-version-response.ts +31 -0
- package/models/validation-issue.ts +42 -0
- package/models/validation-report.ts +37 -0
- package/models/version-status.ts +34 -0
- package/package.json +27 -4
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,2427 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* insuranceservice/v2/config_common.proto
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
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 { CheckPolicyUpgradeBody } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CheckPolicyUpgradeResponse } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { CorrectPolicyBody } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { CorrectPolicyResponse } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { CreatePolicyRequest } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { CreatePolicyResponse } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { DetachPolicyBody } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { DetachPolicyResponse } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { EndorsePolicyBody } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { EndorsePolicyResponse } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { EstimatePolicyPremiumResponse } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { GetCoverageAtDateResponse } from '../models';
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import { GetPolicyFilterCatalogResponse } from '../models';
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
import { GetPolicyPartnerHistoryResponse } from '../models';
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
import { GetPolicyResponse } from '../models';
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
import { GetPolicySchemaResponse } from '../models';
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
import { GetPolicyTimelineResponse } from '../models';
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
import { ListPoliciesResponse } from '../models';
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
import { ListPolicyFilterValuesResponse } from '../models';
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
import { ListPolicySnapshotsResponse } from '../models';
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
import { ListPolicyUpgradeTargetsResponse } from '../models';
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
import { PreviewPolicyCorrectionBody } from '../models';
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
import { PreviewPolicyCorrectionResponse } from '../models';
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
import { Status } from '../models';
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
import { TerminatePolicyBody } from '../models';
|
|
73
|
+
// @ts-ignore
|
|
74
|
+
import { TerminatePolicyResponse } from '../models';
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
import { UpgradePolicyBody } from '../models';
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
import { UpgradePolicyResponse } from '../models';
|
|
79
|
+
// URLSearchParams not necessarily used
|
|
80
|
+
// @ts-ignore
|
|
81
|
+
import { URL, URLSearchParams } from 'url';
|
|
82
|
+
const FormData = require('form-data');
|
|
83
|
+
/**
|
|
84
|
+
* PoliciesApi - axios parameter creator
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const PoliciesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
88
|
+
return {
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @summary Checks whether a policy can be upgraded, without upgrading it.
|
|
92
|
+
* @param {string} code The policy\'s code.
|
|
93
|
+
* @param {CheckPolicyUpgradeBody} body
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
policyServiceCheckPolicyUpgrade: async (code: string, body: CheckPolicyUpgradeBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
|
+
// verify required parameter 'code' is not null or undefined
|
|
99
|
+
assertParamExists('policyServiceCheckPolicyUpgrade', 'code', code)
|
|
100
|
+
// verify required parameter 'body' is not null or undefined
|
|
101
|
+
assertParamExists('policyServiceCheckPolicyUpgrade', 'body', body)
|
|
102
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}:checkUpgrade`
|
|
103
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
let baseAccessToken;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
baseAccessToken = configuration.accessToken;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
114
|
+
const localVarHeaderParameter = {} as any;
|
|
115
|
+
const localVarQueryParameter = {} as any;
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
120
|
+
|
|
121
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
124
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
url: toPathString(localVarUrlObj),
|
|
128
|
+
options: localVarRequestOptions,
|
|
129
|
+
};
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @summary Corrects a policy over a range of business time.
|
|
134
|
+
* @param {string} code The policy\'s code.
|
|
135
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
136
|
+
* @param {CorrectPolicyBody} body
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
policyServiceCorrectPolicy: async (code: string, ifMatch: string, body: CorrectPolicyBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
141
|
+
// verify required parameter 'code' is not null or undefined
|
|
142
|
+
assertParamExists('policyServiceCorrectPolicy', 'code', code)
|
|
143
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
144
|
+
assertParamExists('policyServiceCorrectPolicy', 'ifMatch', ifMatch)
|
|
145
|
+
// verify required parameter 'body' is not null or undefined
|
|
146
|
+
assertParamExists('policyServiceCorrectPolicy', 'body', body)
|
|
147
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}/corrections`
|
|
148
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
151
|
+
let baseOptions;
|
|
152
|
+
let baseAccessToken;
|
|
153
|
+
if (configuration) {
|
|
154
|
+
baseOptions = configuration.baseOptions;
|
|
155
|
+
baseAccessToken = configuration.accessToken;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
159
|
+
const localVarHeaderParameter = {} as any;
|
|
160
|
+
const localVarQueryParameter = {} as any;
|
|
161
|
+
|
|
162
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
163
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
164
|
+
const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
165
|
+
const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
166
|
+
const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
167
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
168
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
174
|
+
|
|
175
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
176
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
177
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
178
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
179
|
+
|
|
180
|
+
return {
|
|
181
|
+
url: toPathString(localVarUrlObj),
|
|
182
|
+
options: localVarRequestOptions,
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @summary Creates a policy, standalone or as a member of a group policy.
|
|
188
|
+
* @param {CreatePolicyRequest} body The request of `CreatePolicy`.
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
policyServiceCreatePolicy: async (body: CreatePolicyRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
193
|
+
// verify required parameter 'body' is not null or undefined
|
|
194
|
+
assertParamExists('policyServiceCreatePolicy', 'body', body)
|
|
195
|
+
const localVarPath = `/insuranceservice/v2/policies`;
|
|
196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
197
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
198
|
+
let baseOptions;
|
|
199
|
+
let baseAccessToken;
|
|
200
|
+
if (configuration) {
|
|
201
|
+
baseOptions = configuration.baseOptions;
|
|
202
|
+
baseAccessToken = configuration.accessToken;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
206
|
+
const localVarHeaderParameter = {} as any;
|
|
207
|
+
const localVarQueryParameter = {} as any;
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
212
|
+
|
|
213
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
215
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
216
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
217
|
+
|
|
218
|
+
return {
|
|
219
|
+
url: toPathString(localVarUrlObj),
|
|
220
|
+
options: localVarRequestOptions,
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @summary Detaches a member from its group policy and makes it a standalone policy.
|
|
226
|
+
* @param {string} code The code of the member policy to detach.
|
|
227
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
228
|
+
* @param {DetachPolicyBody} body
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
policyServiceDetachPolicy: async (code: string, ifMatch: string, body: DetachPolicyBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
233
|
+
// verify required parameter 'code' is not null or undefined
|
|
234
|
+
assertParamExists('policyServiceDetachPolicy', 'code', code)
|
|
235
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
236
|
+
assertParamExists('policyServiceDetachPolicy', 'ifMatch', ifMatch)
|
|
237
|
+
// verify required parameter 'body' is not null or undefined
|
|
238
|
+
assertParamExists('policyServiceDetachPolicy', 'body', body)
|
|
239
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}/detach`
|
|
240
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
241
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
242
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
|
+
let baseOptions;
|
|
244
|
+
let baseAccessToken;
|
|
245
|
+
if (configuration) {
|
|
246
|
+
baseOptions = configuration.baseOptions;
|
|
247
|
+
baseAccessToken = configuration.accessToken;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
251
|
+
const localVarHeaderParameter = {} as any;
|
|
252
|
+
const localVarQueryParameter = {} as any;
|
|
253
|
+
|
|
254
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
255
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
256
|
+
const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
257
|
+
const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
258
|
+
const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
259
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
260
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
266
|
+
|
|
267
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
268
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
270
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
271
|
+
|
|
272
|
+
return {
|
|
273
|
+
url: toPathString(localVarUrlObj),
|
|
274
|
+
options: localVarRequestOptions,
|
|
275
|
+
};
|
|
276
|
+
},
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @summary Endorses a policy from a date on.
|
|
280
|
+
* @param {string} code The policy\'s code.
|
|
281
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
282
|
+
* @param {EndorsePolicyBody} body
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
policyServiceEndorsePolicy: async (code: string, ifMatch: string, body: EndorsePolicyBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
287
|
+
// verify required parameter 'code' is not null or undefined
|
|
288
|
+
assertParamExists('policyServiceEndorsePolicy', 'code', code)
|
|
289
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
290
|
+
assertParamExists('policyServiceEndorsePolicy', 'ifMatch', ifMatch)
|
|
291
|
+
// verify required parameter 'body' is not null or undefined
|
|
292
|
+
assertParamExists('policyServiceEndorsePolicy', 'body', body)
|
|
293
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}/endorsements`
|
|
294
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
295
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
296
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
297
|
+
let baseOptions;
|
|
298
|
+
let baseAccessToken;
|
|
299
|
+
if (configuration) {
|
|
300
|
+
baseOptions = configuration.baseOptions;
|
|
301
|
+
baseAccessToken = configuration.accessToken;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
305
|
+
const localVarHeaderParameter = {} as any;
|
|
306
|
+
const localVarQueryParameter = {} as any;
|
|
307
|
+
|
|
308
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
309
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
310
|
+
const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
311
|
+
const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
312
|
+
const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
313
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
314
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
320
|
+
|
|
321
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
322
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
323
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
324
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
325
|
+
|
|
326
|
+
return {
|
|
327
|
+
url: toPathString(localVarUrlObj),
|
|
328
|
+
options: localVarRequestOptions,
|
|
329
|
+
};
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @summary Returns a policy\'s actual premium beside an estimate of its next premium.
|
|
334
|
+
* @param {string} code The policy\'s code.
|
|
335
|
+
* @param {string} [validAt] The business day, as `YYYY-MM-DD`. The default is today (UTC).
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
policyServiceEstimatePolicyPremium: async (code: string, validAt?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
340
|
+
// verify required parameter 'code' is not null or undefined
|
|
341
|
+
assertParamExists('policyServiceEstimatePolicyPremium', 'code', code)
|
|
342
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}/premium-estimate`
|
|
343
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
344
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
345
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
346
|
+
let baseOptions;
|
|
347
|
+
let baseAccessToken;
|
|
348
|
+
if (configuration) {
|
|
349
|
+
baseOptions = configuration.baseOptions;
|
|
350
|
+
baseAccessToken = configuration.accessToken;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
354
|
+
const localVarHeaderParameter = {} as any;
|
|
355
|
+
const localVarQueryParameter = {} as any;
|
|
356
|
+
|
|
357
|
+
if (validAt !== undefined) {
|
|
358
|
+
localVarQueryParameter['validAt'] = validAt;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
364
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
365
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
366
|
+
|
|
367
|
+
return {
|
|
368
|
+
url: toPathString(localVarUrlObj),
|
|
369
|
+
options: localVarRequestOptions,
|
|
370
|
+
};
|
|
371
|
+
},
|
|
372
|
+
/**
|
|
373
|
+
* TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
|
|
374
|
+
* @summary Returns what a policy covered on the day of a loss.
|
|
375
|
+
* @param {string} [policyCode] The policy\'s code. Set exactly one of `policyCode` and `identifier`.
|
|
376
|
+
* @param {string} [identifier] The policy found by an identifier field, as `<field>==<value>`. The field is an identifier field of the policy filter catalog (`identifier: true`).
|
|
377
|
+
* @param {string} [damageDate] The day of the loss, as an RFC 3339 full-date (`YYYY-MM-DD`). Required. It is the business day the policy is read at.
|
|
378
|
+
* @param {string} [asOf] The system time to read: the belief held at that moment. Empty means now.
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
policyServiceGetCoverageAtDate: async (policyCode?: string, identifier?: string, damageDate?: string, asOf?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
383
|
+
const localVarPath = `/insuranceservice/v2/policies:coverageAtDate`;
|
|
384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
385
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
386
|
+
let baseOptions;
|
|
387
|
+
let baseAccessToken;
|
|
388
|
+
if (configuration) {
|
|
389
|
+
baseOptions = configuration.baseOptions;
|
|
390
|
+
baseAccessToken = configuration.accessToken;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
394
|
+
const localVarHeaderParameter = {} as any;
|
|
395
|
+
const localVarQueryParameter = {} as any;
|
|
396
|
+
|
|
397
|
+
if (policyCode !== undefined) {
|
|
398
|
+
localVarQueryParameter['policyCode'] = policyCode;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
if (identifier !== undefined) {
|
|
402
|
+
localVarQueryParameter['identifier'] = identifier;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if (damageDate !== undefined) {
|
|
406
|
+
localVarQueryParameter['damageDate'] = damageDate;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (asOf !== undefined) {
|
|
410
|
+
localVarQueryParameter['asOf'] = (asOf as any instanceof Date) ?
|
|
411
|
+
(asOf as any).toISOString() :
|
|
412
|
+
asOf;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
418
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
419
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
420
|
+
|
|
421
|
+
return {
|
|
422
|
+
url: toPathString(localVarUrlObj),
|
|
423
|
+
options: localVarRequestOptions,
|
|
424
|
+
};
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @summary Returns one policy at a point in business time and system time.
|
|
429
|
+
* @param {string} code The policy\'s code.
|
|
430
|
+
* @param {string} [validAt] The business day to read, as an RFC 3339 full-date (`YYYY-MM-DD`). Empty means today (the UTC date).
|
|
431
|
+
* @param {string} [asOf] The system time to read: what the service believed at that moment. Empty means the current belief.
|
|
432
|
+
* @param {string} [expand] The related data to include. The only value is `timeline`, which adds the policy\'s timeslices.
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
policyServiceGetPolicy: async (code: string, validAt?: string, asOf?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
437
|
+
// verify required parameter 'code' is not null or undefined
|
|
438
|
+
assertParamExists('policyServiceGetPolicy', 'code', code)
|
|
439
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}`
|
|
440
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
441
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
442
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
443
|
+
let baseOptions;
|
|
444
|
+
let baseAccessToken;
|
|
445
|
+
if (configuration) {
|
|
446
|
+
baseOptions = configuration.baseOptions;
|
|
447
|
+
baseAccessToken = configuration.accessToken;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
451
|
+
const localVarHeaderParameter = {} as any;
|
|
452
|
+
const localVarQueryParameter = {} as any;
|
|
453
|
+
|
|
454
|
+
if (validAt !== undefined) {
|
|
455
|
+
localVarQueryParameter['validAt'] = validAt;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
if (asOf !== undefined) {
|
|
459
|
+
localVarQueryParameter['asOf'] = (asOf as any instanceof Date) ?
|
|
460
|
+
(asOf as any).toISOString() :
|
|
461
|
+
asOf;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (expand !== undefined) {
|
|
465
|
+
localVarQueryParameter['expand'] = expand;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
471
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
472
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
473
|
+
|
|
474
|
+
return {
|
|
475
|
+
url: toPathString(localVarUrlObj),
|
|
476
|
+
options: localVarRequestOptions,
|
|
477
|
+
};
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @summary Returns the filter catalog of the policy list.
|
|
482
|
+
* @param {string} [tariffSlug] The slug of the tariff whose product fields to include. When empty, only the system fields are returned.
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
policyServiceGetPolicyFilterCatalog: async (tariffSlug?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
487
|
+
const localVarPath = `/insuranceservice/v2/policies:filterCatalog`;
|
|
488
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
489
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
490
|
+
let baseOptions;
|
|
491
|
+
let baseAccessToken;
|
|
492
|
+
if (configuration) {
|
|
493
|
+
baseOptions = configuration.baseOptions;
|
|
494
|
+
baseAccessToken = configuration.accessToken;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
498
|
+
const localVarHeaderParameter = {} as any;
|
|
499
|
+
const localVarQueryParameter = {} as any;
|
|
500
|
+
|
|
501
|
+
if (tariffSlug !== undefined) {
|
|
502
|
+
localVarQueryParameter['tariffSlug'] = tariffSlug;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
509
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
510
|
+
|
|
511
|
+
return {
|
|
512
|
+
url: toPathString(localVarUrlObj),
|
|
513
|
+
options: localVarRequestOptions,
|
|
514
|
+
};
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @summary Returns who filled which partner role on a policy, and when.
|
|
519
|
+
* @param {string} code The policy\'s code.
|
|
520
|
+
* @param {string} [asOf] The system time to read: the history as believed at that moment. Empty means now.
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
policyServiceGetPolicyPartnerHistory: async (code: string, asOf?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
525
|
+
// verify required parameter 'code' is not null or undefined
|
|
526
|
+
assertParamExists('policyServiceGetPolicyPartnerHistory', 'code', code)
|
|
527
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}/partner-history`
|
|
528
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
529
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
530
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
531
|
+
let baseOptions;
|
|
532
|
+
let baseAccessToken;
|
|
533
|
+
if (configuration) {
|
|
534
|
+
baseOptions = configuration.baseOptions;
|
|
535
|
+
baseAccessToken = configuration.accessToken;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
539
|
+
const localVarHeaderParameter = {} as any;
|
|
540
|
+
const localVarQueryParameter = {} as any;
|
|
541
|
+
|
|
542
|
+
if (asOf !== undefined) {
|
|
543
|
+
localVarQueryParameter['asOf'] = (asOf as any instanceof Date) ?
|
|
544
|
+
(asOf as any).toISOString() :
|
|
545
|
+
asOf;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
551
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
552
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
553
|
+
|
|
554
|
+
return {
|
|
555
|
+
url: toPathString(localVarUrlObj),
|
|
556
|
+
options: localVarRequestOptions,
|
|
557
|
+
};
|
|
558
|
+
},
|
|
559
|
+
/**
|
|
560
|
+
*
|
|
561
|
+
* @summary Returns the schema that this policy\'s data is validated against.
|
|
562
|
+
* @param {string} code The policy\'s code.
|
|
563
|
+
* @param {string} [validAt] The business day, as `YYYY-MM-DD`. Empty means today (UTC). The schema is the one of the tariff version the policy had on that day.
|
|
564
|
+
* @param {string} [asOf] The system time to read. Empty means the current belief.
|
|
565
|
+
* @param {*} [options] Override http request option.
|
|
566
|
+
* @throws {RequiredError}
|
|
567
|
+
*/
|
|
568
|
+
policyServiceGetPolicySchema: async (code: string, validAt?: string, asOf?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
569
|
+
// verify required parameter 'code' is not null or undefined
|
|
570
|
+
assertParamExists('policyServiceGetPolicySchema', 'code', code)
|
|
571
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}/schema`
|
|
572
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
573
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
574
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
575
|
+
let baseOptions;
|
|
576
|
+
let baseAccessToken;
|
|
577
|
+
if (configuration) {
|
|
578
|
+
baseOptions = configuration.baseOptions;
|
|
579
|
+
baseAccessToken = configuration.accessToken;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
583
|
+
const localVarHeaderParameter = {} as any;
|
|
584
|
+
const localVarQueryParameter = {} as any;
|
|
585
|
+
|
|
586
|
+
if (validAt !== undefined) {
|
|
587
|
+
localVarQueryParameter['validAt'] = validAt;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
if (asOf !== undefined) {
|
|
591
|
+
localVarQueryParameter['asOf'] = (asOf as any instanceof Date) ?
|
|
592
|
+
(asOf as any).toISOString() :
|
|
593
|
+
asOf;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
600
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
601
|
+
|
|
602
|
+
return {
|
|
603
|
+
url: toPathString(localVarUrlObj),
|
|
604
|
+
options: localVarRequestOptions,
|
|
605
|
+
};
|
|
606
|
+
},
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* @summary Returns the segments of a policy\'s timeline, ordered by business time.
|
|
610
|
+
* @param {string} code The policy\'s code.
|
|
611
|
+
* @param {string} [asOf] Not used: the timeline is always the one believed now.
|
|
612
|
+
* @param {boolean} [includeSuperseded] Whether to add the superseded segments. A past premium is reproduced from them.
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
policyServiceGetPolicyTimeline: async (code: string, asOf?: string, includeSuperseded?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
617
|
+
// verify required parameter 'code' is not null or undefined
|
|
618
|
+
assertParamExists('policyServiceGetPolicyTimeline', 'code', code)
|
|
619
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}/timeline`
|
|
620
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
621
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
622
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
623
|
+
let baseOptions;
|
|
624
|
+
let baseAccessToken;
|
|
625
|
+
if (configuration) {
|
|
626
|
+
baseOptions = configuration.baseOptions;
|
|
627
|
+
baseAccessToken = configuration.accessToken;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
631
|
+
const localVarHeaderParameter = {} as any;
|
|
632
|
+
const localVarQueryParameter = {} as any;
|
|
633
|
+
|
|
634
|
+
if (asOf !== undefined) {
|
|
635
|
+
localVarQueryParameter['asOf'] = (asOf as any instanceof Date) ?
|
|
636
|
+
(asOf as any).toISOString() :
|
|
637
|
+
asOf;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
if (includeSuperseded !== undefined) {
|
|
641
|
+
localVarQueryParameter['includeSuperseded'] = includeSuperseded;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
647
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
648
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
649
|
+
|
|
650
|
+
return {
|
|
651
|
+
url: toPathString(localVarUrlObj),
|
|
652
|
+
options: localVarRequestOptions,
|
|
653
|
+
};
|
|
654
|
+
},
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @summary Lists policies as they are valid today.
|
|
658
|
+
* @param {number} [pageSize]
|
|
659
|
+
* @param {string} [pageToken]
|
|
660
|
+
* @param {string} [filter]
|
|
661
|
+
* @param {string} [search]
|
|
662
|
+
* @param {string} [order]
|
|
663
|
+
* @param {string} [expand]
|
|
664
|
+
* @param {string} [filters]
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
policyServiceListPolicies: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
669
|
+
const localVarPath = `/insuranceservice/v2/policies`;
|
|
670
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
671
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
672
|
+
let baseOptions;
|
|
673
|
+
let baseAccessToken;
|
|
674
|
+
if (configuration) {
|
|
675
|
+
baseOptions = configuration.baseOptions;
|
|
676
|
+
baseAccessToken = configuration.accessToken;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
680
|
+
const localVarHeaderParameter = {} as any;
|
|
681
|
+
const localVarQueryParameter = {} as any;
|
|
682
|
+
|
|
683
|
+
if (pageSize !== undefined) {
|
|
684
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
if (pageToken !== undefined) {
|
|
688
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
if (filter !== undefined) {
|
|
692
|
+
localVarQueryParameter['filter'] = filter;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
if (search !== undefined) {
|
|
696
|
+
localVarQueryParameter['search'] = search;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
if (order !== undefined) {
|
|
700
|
+
localVarQueryParameter['order'] = order;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
if (expand !== undefined) {
|
|
704
|
+
localVarQueryParameter['expand'] = expand;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
if (filters !== undefined) {
|
|
708
|
+
localVarQueryParameter['filters'] = filters;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
714
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
715
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
716
|
+
|
|
717
|
+
return {
|
|
718
|
+
url: toPathString(localVarUrlObj),
|
|
719
|
+
options: localVarRequestOptions,
|
|
720
|
+
};
|
|
721
|
+
},
|
|
722
|
+
/**
|
|
723
|
+
*
|
|
724
|
+
* @summary Suggests values for one filter field of the policy list.
|
|
725
|
+
* @param {number} [pageSize]
|
|
726
|
+
* @param {string} [pageToken]
|
|
727
|
+
* @param {string} [filter]
|
|
728
|
+
* @param {string} [search]
|
|
729
|
+
* @param {string} [order]
|
|
730
|
+
* @param {string} [expand]
|
|
731
|
+
* @param {string} [filters]
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
*/
|
|
735
|
+
policyServiceListPolicyFilterValues: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
736
|
+
const localVarPath = `/insuranceservice/v2/policies:filterValues`;
|
|
737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
738
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
739
|
+
let baseOptions;
|
|
740
|
+
let baseAccessToken;
|
|
741
|
+
if (configuration) {
|
|
742
|
+
baseOptions = configuration.baseOptions;
|
|
743
|
+
baseAccessToken = configuration.accessToken;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
747
|
+
const localVarHeaderParameter = {} as any;
|
|
748
|
+
const localVarQueryParameter = {} as any;
|
|
749
|
+
|
|
750
|
+
if (pageSize !== undefined) {
|
|
751
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
if (pageToken !== undefined) {
|
|
755
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
if (filter !== undefined) {
|
|
759
|
+
localVarQueryParameter['filter'] = filter;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
if (search !== undefined) {
|
|
763
|
+
localVarQueryParameter['search'] = search;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
if (order !== undefined) {
|
|
767
|
+
localVarQueryParameter['order'] = order;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
if (expand !== undefined) {
|
|
771
|
+
localVarQueryParameter['expand'] = expand;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
if (filters !== undefined) {
|
|
775
|
+
localVarQueryParameter['filters'] = filters;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
781
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
782
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
783
|
+
|
|
784
|
+
return {
|
|
785
|
+
url: toPathString(localVarUrlObj),
|
|
786
|
+
options: localVarRequestOptions,
|
|
787
|
+
};
|
|
788
|
+
},
|
|
789
|
+
/**
|
|
790
|
+
* Name the policy with the filter `policy.code==<code>`; it is required and takes the operator `==` only. `includeSuperseded==true` adds the beliefs a later correction replaced, and `asOf==<RFC 3339 moment>` reads the slices as they were believed then.
|
|
791
|
+
* @summary Lists the timeslices of one policy, ordered by `validFrom`.
|
|
792
|
+
* @param {number} [pageSize]
|
|
793
|
+
* @param {string} [pageToken]
|
|
794
|
+
* @param {string} [filter]
|
|
795
|
+
* @param {string} [search]
|
|
796
|
+
* @param {string} [order]
|
|
797
|
+
* @param {string} [expand]
|
|
798
|
+
* @param {string} [filters]
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
policyServiceListPolicySnapshots: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
803
|
+
const localVarPath = `/insuranceservice/v2/policy-snapshots`;
|
|
804
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
805
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
806
|
+
let baseOptions;
|
|
807
|
+
let baseAccessToken;
|
|
808
|
+
if (configuration) {
|
|
809
|
+
baseOptions = configuration.baseOptions;
|
|
810
|
+
baseAccessToken = configuration.accessToken;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
814
|
+
const localVarHeaderParameter = {} as any;
|
|
815
|
+
const localVarQueryParameter = {} as any;
|
|
816
|
+
|
|
817
|
+
if (pageSize !== undefined) {
|
|
818
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
if (pageToken !== undefined) {
|
|
822
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
if (filter !== undefined) {
|
|
826
|
+
localVarQueryParameter['filter'] = filter;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
if (search !== undefined) {
|
|
830
|
+
localVarQueryParameter['search'] = search;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
if (order !== undefined) {
|
|
834
|
+
localVarQueryParameter['order'] = order;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
if (expand !== undefined) {
|
|
838
|
+
localVarQueryParameter['expand'] = expand;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
if (filters !== undefined) {
|
|
842
|
+
localVarQueryParameter['filters'] = filters;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
848
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
849
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
850
|
+
|
|
851
|
+
return {
|
|
852
|
+
url: toPathString(localVarUrlObj),
|
|
853
|
+
options: localVarRequestOptions,
|
|
854
|
+
};
|
|
855
|
+
},
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @summary Lists the tariff versions a policy can be upgraded to.
|
|
859
|
+
* @param {number} [pageSize]
|
|
860
|
+
* @param {string} [pageToken]
|
|
861
|
+
* @param {string} [filter]
|
|
862
|
+
* @param {string} [search]
|
|
863
|
+
* @param {string} [order]
|
|
864
|
+
* @param {string} [expand]
|
|
865
|
+
* @param {string} [filters]
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
policyServiceListPolicyUpgradeTargets: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
870
|
+
const localVarPath = `/insuranceservice/v2/policy-upgrade-targets`;
|
|
871
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
872
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
873
|
+
let baseOptions;
|
|
874
|
+
let baseAccessToken;
|
|
875
|
+
if (configuration) {
|
|
876
|
+
baseOptions = configuration.baseOptions;
|
|
877
|
+
baseAccessToken = configuration.accessToken;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
881
|
+
const localVarHeaderParameter = {} as any;
|
|
882
|
+
const localVarQueryParameter = {} as any;
|
|
883
|
+
|
|
884
|
+
if (pageSize !== undefined) {
|
|
885
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
if (pageToken !== undefined) {
|
|
889
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
if (filter !== undefined) {
|
|
893
|
+
localVarQueryParameter['filter'] = filter;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
if (search !== undefined) {
|
|
897
|
+
localVarQueryParameter['search'] = search;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
if (order !== undefined) {
|
|
901
|
+
localVarQueryParameter['order'] = order;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
if (expand !== undefined) {
|
|
905
|
+
localVarQueryParameter['expand'] = expand;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
if (filters !== undefined) {
|
|
909
|
+
localVarQueryParameter['filters'] = filters;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
915
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
916
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
917
|
+
|
|
918
|
+
return {
|
|
919
|
+
url: toPathString(localVarUrlObj),
|
|
920
|
+
options: localVarRequestOptions,
|
|
921
|
+
};
|
|
922
|
+
},
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @summary Previews a correction without writing it.
|
|
926
|
+
* @param {string} code The policy\'s code.
|
|
927
|
+
* @param {PreviewPolicyCorrectionBody} body
|
|
928
|
+
* @param {*} [options] Override http request option.
|
|
929
|
+
* @throws {RequiredError}
|
|
930
|
+
*/
|
|
931
|
+
policyServicePreviewPolicyCorrection: async (code: string, body: PreviewPolicyCorrectionBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
932
|
+
// verify required parameter 'code' is not null or undefined
|
|
933
|
+
assertParamExists('policyServicePreviewPolicyCorrection', 'code', code)
|
|
934
|
+
// verify required parameter 'body' is not null or undefined
|
|
935
|
+
assertParamExists('policyServicePreviewPolicyCorrection', 'body', body)
|
|
936
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}/corrections:preview`
|
|
937
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
938
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
939
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
940
|
+
let baseOptions;
|
|
941
|
+
let baseAccessToken;
|
|
942
|
+
if (configuration) {
|
|
943
|
+
baseOptions = configuration.baseOptions;
|
|
944
|
+
baseAccessToken = configuration.accessToken;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
948
|
+
const localVarHeaderParameter = {} as any;
|
|
949
|
+
const localVarQueryParameter = {} as any;
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
954
|
+
|
|
955
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
956
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
957
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
958
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
959
|
+
|
|
960
|
+
return {
|
|
961
|
+
url: toPathString(localVarUrlObj),
|
|
962
|
+
options: localVarRequestOptions,
|
|
963
|
+
};
|
|
964
|
+
},
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
* @summary Terminates a policy from a date on.
|
|
968
|
+
* @param {string} code The policy\'s code.
|
|
969
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
970
|
+
* @param {TerminatePolicyBody} body
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
*/
|
|
974
|
+
policyServiceTerminatePolicy: async (code: string, ifMatch: string, body: TerminatePolicyBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
975
|
+
// verify required parameter 'code' is not null or undefined
|
|
976
|
+
assertParamExists('policyServiceTerminatePolicy', 'code', code)
|
|
977
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
978
|
+
assertParamExists('policyServiceTerminatePolicy', 'ifMatch', ifMatch)
|
|
979
|
+
// verify required parameter 'body' is not null or undefined
|
|
980
|
+
assertParamExists('policyServiceTerminatePolicy', 'body', body)
|
|
981
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}/terminate`
|
|
982
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
983
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
984
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
985
|
+
let baseOptions;
|
|
986
|
+
let baseAccessToken;
|
|
987
|
+
if (configuration) {
|
|
988
|
+
baseOptions = configuration.baseOptions;
|
|
989
|
+
baseAccessToken = configuration.accessToken;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
993
|
+
const localVarHeaderParameter = {} as any;
|
|
994
|
+
const localVarQueryParameter = {} as any;
|
|
995
|
+
|
|
996
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
997
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
998
|
+
const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
999
|
+
const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
1000
|
+
const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
1001
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
1002
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1008
|
+
|
|
1009
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1010
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1011
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1012
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1013
|
+
|
|
1014
|
+
return {
|
|
1015
|
+
url: toPathString(localVarUrlObj),
|
|
1016
|
+
options: localVarRequestOptions,
|
|
1017
|
+
};
|
|
1018
|
+
},
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @summary Upgrades a policy to a newer tariff version.
|
|
1022
|
+
* @param {string} code The policy\'s code.
|
|
1023
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1024
|
+
* @param {UpgradePolicyBody} body
|
|
1025
|
+
* @param {*} [options] Override http request option.
|
|
1026
|
+
* @throws {RequiredError}
|
|
1027
|
+
*/
|
|
1028
|
+
policyServiceUpgradePolicy: async (code: string, ifMatch: string, body: UpgradePolicyBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1029
|
+
// verify required parameter 'code' is not null or undefined
|
|
1030
|
+
assertParamExists('policyServiceUpgradePolicy', 'code', code)
|
|
1031
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
1032
|
+
assertParamExists('policyServiceUpgradePolicy', 'ifMatch', ifMatch)
|
|
1033
|
+
// verify required parameter 'body' is not null or undefined
|
|
1034
|
+
assertParamExists('policyServiceUpgradePolicy', 'body', body)
|
|
1035
|
+
const localVarPath = `/insuranceservice/v2/policies/{code}:upgrade`
|
|
1036
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
1037
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1038
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1039
|
+
let baseOptions;
|
|
1040
|
+
let baseAccessToken;
|
|
1041
|
+
if (configuration) {
|
|
1042
|
+
baseOptions = configuration.baseOptions;
|
|
1043
|
+
baseAccessToken = configuration.accessToken;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1047
|
+
const localVarHeaderParameter = {} as any;
|
|
1048
|
+
const localVarQueryParameter = {} as any;
|
|
1049
|
+
|
|
1050
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
1051
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
1052
|
+
const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
1053
|
+
const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
1054
|
+
const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
1055
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
1056
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1062
|
+
|
|
1063
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1064
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1065
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1066
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1067
|
+
|
|
1068
|
+
return {
|
|
1069
|
+
url: toPathString(localVarUrlObj),
|
|
1070
|
+
options: localVarRequestOptions,
|
|
1071
|
+
};
|
|
1072
|
+
},
|
|
1073
|
+
}
|
|
1074
|
+
};
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* PoliciesApi - functional programming interface
|
|
1078
|
+
* @export
|
|
1079
|
+
*/
|
|
1080
|
+
export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
1081
|
+
const localVarAxiosParamCreator = PoliciesApiAxiosParamCreator(configuration)
|
|
1082
|
+
return {
|
|
1083
|
+
/**
|
|
1084
|
+
*
|
|
1085
|
+
* @summary Checks whether a policy can be upgraded, without upgrading it.
|
|
1086
|
+
* @param {string} code The policy\'s code.
|
|
1087
|
+
* @param {CheckPolicyUpgradeBody} body
|
|
1088
|
+
* @param {*} [options] Override http request option.
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
*/
|
|
1091
|
+
async policyServiceCheckPolicyUpgrade(code: string, body: CheckPolicyUpgradeBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckPolicyUpgradeResponse>> {
|
|
1092
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceCheckPolicyUpgrade(code, body, options);
|
|
1093
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1094
|
+
},
|
|
1095
|
+
/**
|
|
1096
|
+
*
|
|
1097
|
+
* @summary Corrects a policy over a range of business time.
|
|
1098
|
+
* @param {string} code The policy\'s code.
|
|
1099
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1100
|
+
* @param {CorrectPolicyBody} body
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
*/
|
|
1104
|
+
async policyServiceCorrectPolicy(code: string, ifMatch: string, body: CorrectPolicyBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CorrectPolicyResponse>> {
|
|
1105
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceCorrectPolicy(code, ifMatch, body, options);
|
|
1106
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1107
|
+
},
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @summary Creates a policy, standalone or as a member of a group policy.
|
|
1111
|
+
* @param {CreatePolicyRequest} body The request of `CreatePolicy`.
|
|
1112
|
+
* @param {*} [options] Override http request option.
|
|
1113
|
+
* @throws {RequiredError}
|
|
1114
|
+
*/
|
|
1115
|
+
async policyServiceCreatePolicy(body: CreatePolicyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponse>> {
|
|
1116
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceCreatePolicy(body, options);
|
|
1117
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1118
|
+
},
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @summary Detaches a member from its group policy and makes it a standalone policy.
|
|
1122
|
+
* @param {string} code The code of the member policy to detach.
|
|
1123
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1124
|
+
* @param {DetachPolicyBody} body
|
|
1125
|
+
* @param {*} [options] Override http request option.
|
|
1126
|
+
* @throws {RequiredError}
|
|
1127
|
+
*/
|
|
1128
|
+
async policyServiceDetachPolicy(code: string, ifMatch: string, body: DetachPolicyBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetachPolicyResponse>> {
|
|
1129
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceDetachPolicy(code, ifMatch, body, options);
|
|
1130
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1131
|
+
},
|
|
1132
|
+
/**
|
|
1133
|
+
*
|
|
1134
|
+
* @summary Endorses a policy from a date on.
|
|
1135
|
+
* @param {string} code The policy\'s code.
|
|
1136
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1137
|
+
* @param {EndorsePolicyBody} body
|
|
1138
|
+
* @param {*} [options] Override http request option.
|
|
1139
|
+
* @throws {RequiredError}
|
|
1140
|
+
*/
|
|
1141
|
+
async policyServiceEndorsePolicy(code: string, ifMatch: string, body: EndorsePolicyBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EndorsePolicyResponse>> {
|
|
1142
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceEndorsePolicy(code, ifMatch, body, options);
|
|
1143
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1144
|
+
},
|
|
1145
|
+
/**
|
|
1146
|
+
*
|
|
1147
|
+
* @summary Returns a policy\'s actual premium beside an estimate of its next premium.
|
|
1148
|
+
* @param {string} code The policy\'s code.
|
|
1149
|
+
* @param {string} [validAt] The business day, as `YYYY-MM-DD`. The default is today (UTC).
|
|
1150
|
+
* @param {*} [options] Override http request option.
|
|
1151
|
+
* @throws {RequiredError}
|
|
1152
|
+
*/
|
|
1153
|
+
async policyServiceEstimatePolicyPremium(code: string, validAt?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimatePolicyPremiumResponse>> {
|
|
1154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceEstimatePolicyPremium(code, validAt, options);
|
|
1155
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1156
|
+
},
|
|
1157
|
+
/**
|
|
1158
|
+
* TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
|
|
1159
|
+
* @summary Returns what a policy covered on the day of a loss.
|
|
1160
|
+
* @param {string} [policyCode] The policy\'s code. Set exactly one of `policyCode` and `identifier`.
|
|
1161
|
+
* @param {string} [identifier] The policy found by an identifier field, as `<field>==<value>`. The field is an identifier field of the policy filter catalog (`identifier: true`).
|
|
1162
|
+
* @param {string} [damageDate] The day of the loss, as an RFC 3339 full-date (`YYYY-MM-DD`). Required. It is the business day the policy is read at.
|
|
1163
|
+
* @param {string} [asOf] The system time to read: the belief held at that moment. Empty means now.
|
|
1164
|
+
* @param {*} [options] Override http request option.
|
|
1165
|
+
* @throws {RequiredError}
|
|
1166
|
+
*/
|
|
1167
|
+
async policyServiceGetCoverageAtDate(policyCode?: string, identifier?: string, damageDate?: string, asOf?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCoverageAtDateResponse>> {
|
|
1168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceGetCoverageAtDate(policyCode, identifier, damageDate, asOf, options);
|
|
1169
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1170
|
+
},
|
|
1171
|
+
/**
|
|
1172
|
+
*
|
|
1173
|
+
* @summary Returns one policy at a point in business time and system time.
|
|
1174
|
+
* @param {string} code The policy\'s code.
|
|
1175
|
+
* @param {string} [validAt] The business day to read, as an RFC 3339 full-date (`YYYY-MM-DD`). Empty means today (the UTC date).
|
|
1176
|
+
* @param {string} [asOf] The system time to read: what the service believed at that moment. Empty means the current belief.
|
|
1177
|
+
* @param {string} [expand] The related data to include. The only value is `timeline`, which adds the policy\'s timeslices.
|
|
1178
|
+
* @param {*} [options] Override http request option.
|
|
1179
|
+
* @throws {RequiredError}
|
|
1180
|
+
*/
|
|
1181
|
+
async policyServiceGetPolicy(code: string, validAt?: string, asOf?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponse>> {
|
|
1182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceGetPolicy(code, validAt, asOf, expand, options);
|
|
1183
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1184
|
+
},
|
|
1185
|
+
/**
|
|
1186
|
+
*
|
|
1187
|
+
* @summary Returns the filter catalog of the policy list.
|
|
1188
|
+
* @param {string} [tariffSlug] The slug of the tariff whose product fields to include. When empty, only the system fields are returned.
|
|
1189
|
+
* @param {*} [options] Override http request option.
|
|
1190
|
+
* @throws {RequiredError}
|
|
1191
|
+
*/
|
|
1192
|
+
async policyServiceGetPolicyFilterCatalog(tariffSlug?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyFilterCatalogResponse>> {
|
|
1193
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceGetPolicyFilterCatalog(tariffSlug, options);
|
|
1194
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1195
|
+
},
|
|
1196
|
+
/**
|
|
1197
|
+
*
|
|
1198
|
+
* @summary Returns who filled which partner role on a policy, and when.
|
|
1199
|
+
* @param {string} code The policy\'s code.
|
|
1200
|
+
* @param {string} [asOf] The system time to read: the history as believed at that moment. Empty means now.
|
|
1201
|
+
* @param {*} [options] Override http request option.
|
|
1202
|
+
* @throws {RequiredError}
|
|
1203
|
+
*/
|
|
1204
|
+
async policyServiceGetPolicyPartnerHistory(code: string, asOf?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyPartnerHistoryResponse>> {
|
|
1205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceGetPolicyPartnerHistory(code, asOf, options);
|
|
1206
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1207
|
+
},
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @summary Returns the schema that this policy\'s data is validated against.
|
|
1211
|
+
* @param {string} code The policy\'s code.
|
|
1212
|
+
* @param {string} [validAt] The business day, as `YYYY-MM-DD`. Empty means today (UTC). The schema is the one of the tariff version the policy had on that day.
|
|
1213
|
+
* @param {string} [asOf] The system time to read. Empty means the current belief.
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
*/
|
|
1217
|
+
async policyServiceGetPolicySchema(code: string, validAt?: string, asOf?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicySchemaResponse>> {
|
|
1218
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceGetPolicySchema(code, validAt, asOf, options);
|
|
1219
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1220
|
+
},
|
|
1221
|
+
/**
|
|
1222
|
+
*
|
|
1223
|
+
* @summary Returns the segments of a policy\'s timeline, ordered by business time.
|
|
1224
|
+
* @param {string} code The policy\'s code.
|
|
1225
|
+
* @param {string} [asOf] Not used: the timeline is always the one believed now.
|
|
1226
|
+
* @param {boolean} [includeSuperseded] Whether to add the superseded segments. A past premium is reproduced from them.
|
|
1227
|
+
* @param {*} [options] Override http request option.
|
|
1228
|
+
* @throws {RequiredError}
|
|
1229
|
+
*/
|
|
1230
|
+
async policyServiceGetPolicyTimeline(code: string, asOf?: string, includeSuperseded?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyTimelineResponse>> {
|
|
1231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceGetPolicyTimeline(code, asOf, includeSuperseded, options);
|
|
1232
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1233
|
+
},
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @summary Lists policies as they are valid today.
|
|
1237
|
+
* @param {number} [pageSize]
|
|
1238
|
+
* @param {string} [pageToken]
|
|
1239
|
+
* @param {string} [filter]
|
|
1240
|
+
* @param {string} [search]
|
|
1241
|
+
* @param {string} [order]
|
|
1242
|
+
* @param {string} [expand]
|
|
1243
|
+
* @param {string} [filters]
|
|
1244
|
+
* @param {*} [options] Override http request option.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
*/
|
|
1247
|
+
async policyServiceListPolicies(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponse>> {
|
|
1248
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceListPolicies(pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
1249
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1250
|
+
},
|
|
1251
|
+
/**
|
|
1252
|
+
*
|
|
1253
|
+
* @summary Suggests values for one filter field of the policy list.
|
|
1254
|
+
* @param {number} [pageSize]
|
|
1255
|
+
* @param {string} [pageToken]
|
|
1256
|
+
* @param {string} [filter]
|
|
1257
|
+
* @param {string} [search]
|
|
1258
|
+
* @param {string} [order]
|
|
1259
|
+
* @param {string} [expand]
|
|
1260
|
+
* @param {string} [filters]
|
|
1261
|
+
* @param {*} [options] Override http request option.
|
|
1262
|
+
* @throws {RequiredError}
|
|
1263
|
+
*/
|
|
1264
|
+
async policyServiceListPolicyFilterValues(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyFilterValuesResponse>> {
|
|
1265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceListPolicyFilterValues(pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
1266
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1267
|
+
},
|
|
1268
|
+
/**
|
|
1269
|
+
* Name the policy with the filter `policy.code==<code>`; it is required and takes the operator `==` only. `includeSuperseded==true` adds the beliefs a later correction replaced, and `asOf==<RFC 3339 moment>` reads the slices as they were believed then.
|
|
1270
|
+
* @summary Lists the timeslices of one policy, ordered by `validFrom`.
|
|
1271
|
+
* @param {number} [pageSize]
|
|
1272
|
+
* @param {string} [pageToken]
|
|
1273
|
+
* @param {string} [filter]
|
|
1274
|
+
* @param {string} [search]
|
|
1275
|
+
* @param {string} [order]
|
|
1276
|
+
* @param {string} [expand]
|
|
1277
|
+
* @param {string} [filters]
|
|
1278
|
+
* @param {*} [options] Override http request option.
|
|
1279
|
+
* @throws {RequiredError}
|
|
1280
|
+
*/
|
|
1281
|
+
async policyServiceListPolicySnapshots(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicySnapshotsResponse>> {
|
|
1282
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceListPolicySnapshots(pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
1283
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1284
|
+
},
|
|
1285
|
+
/**
|
|
1286
|
+
*
|
|
1287
|
+
* @summary Lists the tariff versions a policy can be upgraded to.
|
|
1288
|
+
* @param {number} [pageSize]
|
|
1289
|
+
* @param {string} [pageToken]
|
|
1290
|
+
* @param {string} [filter]
|
|
1291
|
+
* @param {string} [search]
|
|
1292
|
+
* @param {string} [order]
|
|
1293
|
+
* @param {string} [expand]
|
|
1294
|
+
* @param {string} [filters]
|
|
1295
|
+
* @param {*} [options] Override http request option.
|
|
1296
|
+
* @throws {RequiredError}
|
|
1297
|
+
*/
|
|
1298
|
+
async policyServiceListPolicyUpgradeTargets(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyUpgradeTargetsResponse>> {
|
|
1299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceListPolicyUpgradeTargets(pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
1300
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1301
|
+
},
|
|
1302
|
+
/**
|
|
1303
|
+
*
|
|
1304
|
+
* @summary Previews a correction without writing it.
|
|
1305
|
+
* @param {string} code The policy\'s code.
|
|
1306
|
+
* @param {PreviewPolicyCorrectionBody} body
|
|
1307
|
+
* @param {*} [options] Override http request option.
|
|
1308
|
+
* @throws {RequiredError}
|
|
1309
|
+
*/
|
|
1310
|
+
async policyServicePreviewPolicyCorrection(code: string, body: PreviewPolicyCorrectionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreviewPolicyCorrectionResponse>> {
|
|
1311
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServicePreviewPolicyCorrection(code, body, options);
|
|
1312
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1313
|
+
},
|
|
1314
|
+
/**
|
|
1315
|
+
*
|
|
1316
|
+
* @summary Terminates a policy from a date on.
|
|
1317
|
+
* @param {string} code The policy\'s code.
|
|
1318
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1319
|
+
* @param {TerminatePolicyBody} body
|
|
1320
|
+
* @param {*} [options] Override http request option.
|
|
1321
|
+
* @throws {RequiredError}
|
|
1322
|
+
*/
|
|
1323
|
+
async policyServiceTerminatePolicy(code: string, ifMatch: string, body: TerminatePolicyBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminatePolicyResponse>> {
|
|
1324
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceTerminatePolicy(code, ifMatch, body, options);
|
|
1325
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1326
|
+
},
|
|
1327
|
+
/**
|
|
1328
|
+
*
|
|
1329
|
+
* @summary Upgrades a policy to a newer tariff version.
|
|
1330
|
+
* @param {string} code The policy\'s code.
|
|
1331
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1332
|
+
* @param {UpgradePolicyBody} body
|
|
1333
|
+
* @param {*} [options] Override http request option.
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
*/
|
|
1336
|
+
async policyServiceUpgradePolicy(code: string, ifMatch: string, body: UpgradePolicyBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpgradePolicyResponse>> {
|
|
1337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.policyServiceUpgradePolicy(code, ifMatch, body, options);
|
|
1338
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1339
|
+
},
|
|
1340
|
+
}
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* PoliciesApi - factory interface
|
|
1345
|
+
* @export
|
|
1346
|
+
*/
|
|
1347
|
+
export const PoliciesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1348
|
+
const localVarFp = PoliciesApiFp(configuration)
|
|
1349
|
+
return {
|
|
1350
|
+
/**
|
|
1351
|
+
*
|
|
1352
|
+
* @summary Checks whether a policy can be upgraded, without upgrading it.
|
|
1353
|
+
* @param {string} code The policy\'s code.
|
|
1354
|
+
* @param {CheckPolicyUpgradeBody} body
|
|
1355
|
+
* @param {*} [options] Override http request option.
|
|
1356
|
+
* @throws {RequiredError}
|
|
1357
|
+
*/
|
|
1358
|
+
policyServiceCheckPolicyUpgrade(code: string, body: CheckPolicyUpgradeBody, options?: any): AxiosPromise<CheckPolicyUpgradeResponse> {
|
|
1359
|
+
return localVarFp.policyServiceCheckPolicyUpgrade(code, body, options).then((request) => request(axios, basePath));
|
|
1360
|
+
},
|
|
1361
|
+
/**
|
|
1362
|
+
*
|
|
1363
|
+
* @summary Corrects a policy over a range of business time.
|
|
1364
|
+
* @param {string} code The policy\'s code.
|
|
1365
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1366
|
+
* @param {CorrectPolicyBody} body
|
|
1367
|
+
* @param {*} [options] Override http request option.
|
|
1368
|
+
* @throws {RequiredError}
|
|
1369
|
+
*/
|
|
1370
|
+
policyServiceCorrectPolicy(code: string, ifMatch: string, body: CorrectPolicyBody, options?: any): AxiosPromise<CorrectPolicyResponse> {
|
|
1371
|
+
return localVarFp.policyServiceCorrectPolicy(code, ifMatch, body, options).then((request) => request(axios, basePath));
|
|
1372
|
+
},
|
|
1373
|
+
/**
|
|
1374
|
+
*
|
|
1375
|
+
* @summary Creates a policy, standalone or as a member of a group policy.
|
|
1376
|
+
* @param {CreatePolicyRequest} body The request of `CreatePolicy`.
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
*/
|
|
1380
|
+
policyServiceCreatePolicy(body: CreatePolicyRequest, options?: any): AxiosPromise<CreatePolicyResponse> {
|
|
1381
|
+
return localVarFp.policyServiceCreatePolicy(body, options).then((request) => request(axios, basePath));
|
|
1382
|
+
},
|
|
1383
|
+
/**
|
|
1384
|
+
*
|
|
1385
|
+
* @summary Detaches a member from its group policy and makes it a standalone policy.
|
|
1386
|
+
* @param {string} code The code of the member policy to detach.
|
|
1387
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1388
|
+
* @param {DetachPolicyBody} body
|
|
1389
|
+
* @param {*} [options] Override http request option.
|
|
1390
|
+
* @throws {RequiredError}
|
|
1391
|
+
*/
|
|
1392
|
+
policyServiceDetachPolicy(code: string, ifMatch: string, body: DetachPolicyBody, options?: any): AxiosPromise<DetachPolicyResponse> {
|
|
1393
|
+
return localVarFp.policyServiceDetachPolicy(code, ifMatch, body, options).then((request) => request(axios, basePath));
|
|
1394
|
+
},
|
|
1395
|
+
/**
|
|
1396
|
+
*
|
|
1397
|
+
* @summary Endorses a policy from a date on.
|
|
1398
|
+
* @param {string} code The policy\'s code.
|
|
1399
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1400
|
+
* @param {EndorsePolicyBody} body
|
|
1401
|
+
* @param {*} [options] Override http request option.
|
|
1402
|
+
* @throws {RequiredError}
|
|
1403
|
+
*/
|
|
1404
|
+
policyServiceEndorsePolicy(code: string, ifMatch: string, body: EndorsePolicyBody, options?: any): AxiosPromise<EndorsePolicyResponse> {
|
|
1405
|
+
return localVarFp.policyServiceEndorsePolicy(code, ifMatch, body, options).then((request) => request(axios, basePath));
|
|
1406
|
+
},
|
|
1407
|
+
/**
|
|
1408
|
+
*
|
|
1409
|
+
* @summary Returns a policy\'s actual premium beside an estimate of its next premium.
|
|
1410
|
+
* @param {string} code The policy\'s code.
|
|
1411
|
+
* @param {string} [validAt] The business day, as `YYYY-MM-DD`. The default is today (UTC).
|
|
1412
|
+
* @param {*} [options] Override http request option.
|
|
1413
|
+
* @throws {RequiredError}
|
|
1414
|
+
*/
|
|
1415
|
+
policyServiceEstimatePolicyPremium(code: string, validAt?: string, options?: any): AxiosPromise<EstimatePolicyPremiumResponse> {
|
|
1416
|
+
return localVarFp.policyServiceEstimatePolicyPremium(code, validAt, options).then((request) => request(axios, basePath));
|
|
1417
|
+
},
|
|
1418
|
+
/**
|
|
1419
|
+
* TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
|
|
1420
|
+
* @summary Returns what a policy covered on the day of a loss.
|
|
1421
|
+
* @param {string} [policyCode] The policy\'s code. Set exactly one of `policyCode` and `identifier`.
|
|
1422
|
+
* @param {string} [identifier] The policy found by an identifier field, as `<field>==<value>`. The field is an identifier field of the policy filter catalog (`identifier: true`).
|
|
1423
|
+
* @param {string} [damageDate] The day of the loss, as an RFC 3339 full-date (`YYYY-MM-DD`). Required. It is the business day the policy is read at.
|
|
1424
|
+
* @param {string} [asOf] The system time to read: the belief held at that moment. Empty means now.
|
|
1425
|
+
* @param {*} [options] Override http request option.
|
|
1426
|
+
* @throws {RequiredError}
|
|
1427
|
+
*/
|
|
1428
|
+
policyServiceGetCoverageAtDate(policyCode?: string, identifier?: string, damageDate?: string, asOf?: string, options?: any): AxiosPromise<GetCoverageAtDateResponse> {
|
|
1429
|
+
return localVarFp.policyServiceGetCoverageAtDate(policyCode, identifier, damageDate, asOf, options).then((request) => request(axios, basePath));
|
|
1430
|
+
},
|
|
1431
|
+
/**
|
|
1432
|
+
*
|
|
1433
|
+
* @summary Returns one policy at a point in business time and system time.
|
|
1434
|
+
* @param {string} code The policy\'s code.
|
|
1435
|
+
* @param {string} [validAt] The business day to read, as an RFC 3339 full-date (`YYYY-MM-DD`). Empty means today (the UTC date).
|
|
1436
|
+
* @param {string} [asOf] The system time to read: what the service believed at that moment. Empty means the current belief.
|
|
1437
|
+
* @param {string} [expand] The related data to include. The only value is `timeline`, which adds the policy\'s timeslices.
|
|
1438
|
+
* @param {*} [options] Override http request option.
|
|
1439
|
+
* @throws {RequiredError}
|
|
1440
|
+
*/
|
|
1441
|
+
policyServiceGetPolicy(code: string, validAt?: string, asOf?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponse> {
|
|
1442
|
+
return localVarFp.policyServiceGetPolicy(code, validAt, asOf, expand, options).then((request) => request(axios, basePath));
|
|
1443
|
+
},
|
|
1444
|
+
/**
|
|
1445
|
+
*
|
|
1446
|
+
* @summary Returns the filter catalog of the policy list.
|
|
1447
|
+
* @param {string} [tariffSlug] The slug of the tariff whose product fields to include. When empty, only the system fields are returned.
|
|
1448
|
+
* @param {*} [options] Override http request option.
|
|
1449
|
+
* @throws {RequiredError}
|
|
1450
|
+
*/
|
|
1451
|
+
policyServiceGetPolicyFilterCatalog(tariffSlug?: string, options?: any): AxiosPromise<GetPolicyFilterCatalogResponse> {
|
|
1452
|
+
return localVarFp.policyServiceGetPolicyFilterCatalog(tariffSlug, options).then((request) => request(axios, basePath));
|
|
1453
|
+
},
|
|
1454
|
+
/**
|
|
1455
|
+
*
|
|
1456
|
+
* @summary Returns who filled which partner role on a policy, and when.
|
|
1457
|
+
* @param {string} code The policy\'s code.
|
|
1458
|
+
* @param {string} [asOf] The system time to read: the history as believed at that moment. Empty means now.
|
|
1459
|
+
* @param {*} [options] Override http request option.
|
|
1460
|
+
* @throws {RequiredError}
|
|
1461
|
+
*/
|
|
1462
|
+
policyServiceGetPolicyPartnerHistory(code: string, asOf?: string, options?: any): AxiosPromise<GetPolicyPartnerHistoryResponse> {
|
|
1463
|
+
return localVarFp.policyServiceGetPolicyPartnerHistory(code, asOf, options).then((request) => request(axios, basePath));
|
|
1464
|
+
},
|
|
1465
|
+
/**
|
|
1466
|
+
*
|
|
1467
|
+
* @summary Returns the schema that this policy\'s data is validated against.
|
|
1468
|
+
* @param {string} code The policy\'s code.
|
|
1469
|
+
* @param {string} [validAt] The business day, as `YYYY-MM-DD`. Empty means today (UTC). The schema is the one of the tariff version the policy had on that day.
|
|
1470
|
+
* @param {string} [asOf] The system time to read. Empty means the current belief.
|
|
1471
|
+
* @param {*} [options] Override http request option.
|
|
1472
|
+
* @throws {RequiredError}
|
|
1473
|
+
*/
|
|
1474
|
+
policyServiceGetPolicySchema(code: string, validAt?: string, asOf?: string, options?: any): AxiosPromise<GetPolicySchemaResponse> {
|
|
1475
|
+
return localVarFp.policyServiceGetPolicySchema(code, validAt, asOf, options).then((request) => request(axios, basePath));
|
|
1476
|
+
},
|
|
1477
|
+
/**
|
|
1478
|
+
*
|
|
1479
|
+
* @summary Returns the segments of a policy\'s timeline, ordered by business time.
|
|
1480
|
+
* @param {string} code The policy\'s code.
|
|
1481
|
+
* @param {string} [asOf] Not used: the timeline is always the one believed now.
|
|
1482
|
+
* @param {boolean} [includeSuperseded] Whether to add the superseded segments. A past premium is reproduced from them.
|
|
1483
|
+
* @param {*} [options] Override http request option.
|
|
1484
|
+
* @throws {RequiredError}
|
|
1485
|
+
*/
|
|
1486
|
+
policyServiceGetPolicyTimeline(code: string, asOf?: string, includeSuperseded?: boolean, options?: any): AxiosPromise<GetPolicyTimelineResponse> {
|
|
1487
|
+
return localVarFp.policyServiceGetPolicyTimeline(code, asOf, includeSuperseded, options).then((request) => request(axios, basePath));
|
|
1488
|
+
},
|
|
1489
|
+
/**
|
|
1490
|
+
*
|
|
1491
|
+
* @summary Lists policies as they are valid today.
|
|
1492
|
+
* @param {number} [pageSize]
|
|
1493
|
+
* @param {string} [pageToken]
|
|
1494
|
+
* @param {string} [filter]
|
|
1495
|
+
* @param {string} [search]
|
|
1496
|
+
* @param {string} [order]
|
|
1497
|
+
* @param {string} [expand]
|
|
1498
|
+
* @param {string} [filters]
|
|
1499
|
+
* @param {*} [options] Override http request option.
|
|
1500
|
+
* @throws {RequiredError}
|
|
1501
|
+
*/
|
|
1502
|
+
policyServiceListPolicies(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPoliciesResponse> {
|
|
1503
|
+
return localVarFp.policyServiceListPolicies(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1504
|
+
},
|
|
1505
|
+
/**
|
|
1506
|
+
*
|
|
1507
|
+
* @summary Suggests values for one filter field of the policy list.
|
|
1508
|
+
* @param {number} [pageSize]
|
|
1509
|
+
* @param {string} [pageToken]
|
|
1510
|
+
* @param {string} [filter]
|
|
1511
|
+
* @param {string} [search]
|
|
1512
|
+
* @param {string} [order]
|
|
1513
|
+
* @param {string} [expand]
|
|
1514
|
+
* @param {string} [filters]
|
|
1515
|
+
* @param {*} [options] Override http request option.
|
|
1516
|
+
* @throws {RequiredError}
|
|
1517
|
+
*/
|
|
1518
|
+
policyServiceListPolicyFilterValues(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyFilterValuesResponse> {
|
|
1519
|
+
return localVarFp.policyServiceListPolicyFilterValues(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1520
|
+
},
|
|
1521
|
+
/**
|
|
1522
|
+
* Name the policy with the filter `policy.code==<code>`; it is required and takes the operator `==` only. `includeSuperseded==true` adds the beliefs a later correction replaced, and `asOf==<RFC 3339 moment>` reads the slices as they were believed then.
|
|
1523
|
+
* @summary Lists the timeslices of one policy, ordered by `validFrom`.
|
|
1524
|
+
* @param {number} [pageSize]
|
|
1525
|
+
* @param {string} [pageToken]
|
|
1526
|
+
* @param {string} [filter]
|
|
1527
|
+
* @param {string} [search]
|
|
1528
|
+
* @param {string} [order]
|
|
1529
|
+
* @param {string} [expand]
|
|
1530
|
+
* @param {string} [filters]
|
|
1531
|
+
* @param {*} [options] Override http request option.
|
|
1532
|
+
* @throws {RequiredError}
|
|
1533
|
+
*/
|
|
1534
|
+
policyServiceListPolicySnapshots(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicySnapshotsResponse> {
|
|
1535
|
+
return localVarFp.policyServiceListPolicySnapshots(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1536
|
+
},
|
|
1537
|
+
/**
|
|
1538
|
+
*
|
|
1539
|
+
* @summary Lists the tariff versions a policy can be upgraded to.
|
|
1540
|
+
* @param {number} [pageSize]
|
|
1541
|
+
* @param {string} [pageToken]
|
|
1542
|
+
* @param {string} [filter]
|
|
1543
|
+
* @param {string} [search]
|
|
1544
|
+
* @param {string} [order]
|
|
1545
|
+
* @param {string} [expand]
|
|
1546
|
+
* @param {string} [filters]
|
|
1547
|
+
* @param {*} [options] Override http request option.
|
|
1548
|
+
* @throws {RequiredError}
|
|
1549
|
+
*/
|
|
1550
|
+
policyServiceListPolicyUpgradeTargets(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyUpgradeTargetsResponse> {
|
|
1551
|
+
return localVarFp.policyServiceListPolicyUpgradeTargets(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1552
|
+
},
|
|
1553
|
+
/**
|
|
1554
|
+
*
|
|
1555
|
+
* @summary Previews a correction without writing it.
|
|
1556
|
+
* @param {string} code The policy\'s code.
|
|
1557
|
+
* @param {PreviewPolicyCorrectionBody} body
|
|
1558
|
+
* @param {*} [options] Override http request option.
|
|
1559
|
+
* @throws {RequiredError}
|
|
1560
|
+
*/
|
|
1561
|
+
policyServicePreviewPolicyCorrection(code: string, body: PreviewPolicyCorrectionBody, options?: any): AxiosPromise<PreviewPolicyCorrectionResponse> {
|
|
1562
|
+
return localVarFp.policyServicePreviewPolicyCorrection(code, body, options).then((request) => request(axios, basePath));
|
|
1563
|
+
},
|
|
1564
|
+
/**
|
|
1565
|
+
*
|
|
1566
|
+
* @summary Terminates a policy from a date on.
|
|
1567
|
+
* @param {string} code The policy\'s code.
|
|
1568
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1569
|
+
* @param {TerminatePolicyBody} body
|
|
1570
|
+
* @param {*} [options] Override http request option.
|
|
1571
|
+
* @throws {RequiredError}
|
|
1572
|
+
*/
|
|
1573
|
+
policyServiceTerminatePolicy(code: string, ifMatch: string, body: TerminatePolicyBody, options?: any): AxiosPromise<TerminatePolicyResponse> {
|
|
1574
|
+
return localVarFp.policyServiceTerminatePolicy(code, ifMatch, body, options).then((request) => request(axios, basePath));
|
|
1575
|
+
},
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* @summary Upgrades a policy to a newer tariff version.
|
|
1579
|
+
* @param {string} code The policy\'s code.
|
|
1580
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1581
|
+
* @param {UpgradePolicyBody} body
|
|
1582
|
+
* @param {*} [options] Override http request option.
|
|
1583
|
+
* @throws {RequiredError}
|
|
1584
|
+
*/
|
|
1585
|
+
policyServiceUpgradePolicy(code: string, ifMatch: string, body: UpgradePolicyBody, options?: any): AxiosPromise<UpgradePolicyResponse> {
|
|
1586
|
+
return localVarFp.policyServiceUpgradePolicy(code, ifMatch, body, options).then((request) => request(axios, basePath));
|
|
1587
|
+
},
|
|
1588
|
+
};
|
|
1589
|
+
};
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* Request parameters for policyServiceCheckPolicyUpgrade operation in PoliciesApi.
|
|
1593
|
+
* @export
|
|
1594
|
+
* @interface PoliciesApiPolicyServiceCheckPolicyUpgradeRequest
|
|
1595
|
+
*/
|
|
1596
|
+
export interface PoliciesApiPolicyServiceCheckPolicyUpgradeRequest {
|
|
1597
|
+
/**
|
|
1598
|
+
* The policy\'s code.
|
|
1599
|
+
* @type {string}
|
|
1600
|
+
* @memberof PoliciesApiPolicyServiceCheckPolicyUpgrade
|
|
1601
|
+
*/
|
|
1602
|
+
readonly code: string
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
*
|
|
1606
|
+
* @type {CheckPolicyUpgradeBody}
|
|
1607
|
+
* @memberof PoliciesApiPolicyServiceCheckPolicyUpgrade
|
|
1608
|
+
*/
|
|
1609
|
+
readonly body: CheckPolicyUpgradeBody
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* Request parameters for policyServiceCorrectPolicy operation in PoliciesApi.
|
|
1614
|
+
* @export
|
|
1615
|
+
* @interface PoliciesApiPolicyServiceCorrectPolicyRequest
|
|
1616
|
+
*/
|
|
1617
|
+
export interface PoliciesApiPolicyServiceCorrectPolicyRequest {
|
|
1618
|
+
/**
|
|
1619
|
+
* The policy\'s code.
|
|
1620
|
+
* @type {string}
|
|
1621
|
+
* @memberof PoliciesApiPolicyServiceCorrectPolicy
|
|
1622
|
+
*/
|
|
1623
|
+
readonly code: string
|
|
1624
|
+
|
|
1625
|
+
/**
|
|
1626
|
+
* The policy\'s `etag` as last read, sent back unchanged.
|
|
1627
|
+
* @type {string}
|
|
1628
|
+
* @memberof PoliciesApiPolicyServiceCorrectPolicy
|
|
1629
|
+
*/
|
|
1630
|
+
readonly ifMatch: string
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
*
|
|
1634
|
+
* @type {CorrectPolicyBody}
|
|
1635
|
+
* @memberof PoliciesApiPolicyServiceCorrectPolicy
|
|
1636
|
+
*/
|
|
1637
|
+
readonly body: CorrectPolicyBody
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* Request parameters for policyServiceCreatePolicy operation in PoliciesApi.
|
|
1642
|
+
* @export
|
|
1643
|
+
* @interface PoliciesApiPolicyServiceCreatePolicyRequest
|
|
1644
|
+
*/
|
|
1645
|
+
export interface PoliciesApiPolicyServiceCreatePolicyRequest {
|
|
1646
|
+
/**
|
|
1647
|
+
* The request of `CreatePolicy`.
|
|
1648
|
+
* @type {CreatePolicyRequest}
|
|
1649
|
+
* @memberof PoliciesApiPolicyServiceCreatePolicy
|
|
1650
|
+
*/
|
|
1651
|
+
readonly body: CreatePolicyRequest
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* Request parameters for policyServiceDetachPolicy operation in PoliciesApi.
|
|
1656
|
+
* @export
|
|
1657
|
+
* @interface PoliciesApiPolicyServiceDetachPolicyRequest
|
|
1658
|
+
*/
|
|
1659
|
+
export interface PoliciesApiPolicyServiceDetachPolicyRequest {
|
|
1660
|
+
/**
|
|
1661
|
+
* The code of the member policy to detach.
|
|
1662
|
+
* @type {string}
|
|
1663
|
+
* @memberof PoliciesApiPolicyServiceDetachPolicy
|
|
1664
|
+
*/
|
|
1665
|
+
readonly code: string
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* The policy\'s `etag` as last read, sent back unchanged.
|
|
1669
|
+
* @type {string}
|
|
1670
|
+
* @memberof PoliciesApiPolicyServiceDetachPolicy
|
|
1671
|
+
*/
|
|
1672
|
+
readonly ifMatch: string
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
*
|
|
1676
|
+
* @type {DetachPolicyBody}
|
|
1677
|
+
* @memberof PoliciesApiPolicyServiceDetachPolicy
|
|
1678
|
+
*/
|
|
1679
|
+
readonly body: DetachPolicyBody
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* Request parameters for policyServiceEndorsePolicy operation in PoliciesApi.
|
|
1684
|
+
* @export
|
|
1685
|
+
* @interface PoliciesApiPolicyServiceEndorsePolicyRequest
|
|
1686
|
+
*/
|
|
1687
|
+
export interface PoliciesApiPolicyServiceEndorsePolicyRequest {
|
|
1688
|
+
/**
|
|
1689
|
+
* The policy\'s code.
|
|
1690
|
+
* @type {string}
|
|
1691
|
+
* @memberof PoliciesApiPolicyServiceEndorsePolicy
|
|
1692
|
+
*/
|
|
1693
|
+
readonly code: string
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* The policy\'s `etag` as last read, sent back unchanged.
|
|
1697
|
+
* @type {string}
|
|
1698
|
+
* @memberof PoliciesApiPolicyServiceEndorsePolicy
|
|
1699
|
+
*/
|
|
1700
|
+
readonly ifMatch: string
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
*
|
|
1704
|
+
* @type {EndorsePolicyBody}
|
|
1705
|
+
* @memberof PoliciesApiPolicyServiceEndorsePolicy
|
|
1706
|
+
*/
|
|
1707
|
+
readonly body: EndorsePolicyBody
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Request parameters for policyServiceEstimatePolicyPremium operation in PoliciesApi.
|
|
1712
|
+
* @export
|
|
1713
|
+
* @interface PoliciesApiPolicyServiceEstimatePolicyPremiumRequest
|
|
1714
|
+
*/
|
|
1715
|
+
export interface PoliciesApiPolicyServiceEstimatePolicyPremiumRequest {
|
|
1716
|
+
/**
|
|
1717
|
+
* The policy\'s code.
|
|
1718
|
+
* @type {string}
|
|
1719
|
+
* @memberof PoliciesApiPolicyServiceEstimatePolicyPremium
|
|
1720
|
+
*/
|
|
1721
|
+
readonly code: string
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* The business day, as `YYYY-MM-DD`. The default is today (UTC).
|
|
1725
|
+
* @type {string}
|
|
1726
|
+
* @memberof PoliciesApiPolicyServiceEstimatePolicyPremium
|
|
1727
|
+
*/
|
|
1728
|
+
readonly validAt?: string
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* Request parameters for policyServiceGetCoverageAtDate operation in PoliciesApi.
|
|
1733
|
+
* @export
|
|
1734
|
+
* @interface PoliciesApiPolicyServiceGetCoverageAtDateRequest
|
|
1735
|
+
*/
|
|
1736
|
+
export interface PoliciesApiPolicyServiceGetCoverageAtDateRequest {
|
|
1737
|
+
/**
|
|
1738
|
+
* The policy\'s code. Set exactly one of `policyCode` and `identifier`.
|
|
1739
|
+
* @type {string}
|
|
1740
|
+
* @memberof PoliciesApiPolicyServiceGetCoverageAtDate
|
|
1741
|
+
*/
|
|
1742
|
+
readonly policyCode?: string
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* The policy found by an identifier field, as `<field>==<value>`. The field is an identifier field of the policy filter catalog (`identifier: true`).
|
|
1746
|
+
* @type {string}
|
|
1747
|
+
* @memberof PoliciesApiPolicyServiceGetCoverageAtDate
|
|
1748
|
+
*/
|
|
1749
|
+
readonly identifier?: string
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* The day of the loss, as an RFC 3339 full-date (`YYYY-MM-DD`). Required. It is the business day the policy is read at.
|
|
1753
|
+
* @type {string}
|
|
1754
|
+
* @memberof PoliciesApiPolicyServiceGetCoverageAtDate
|
|
1755
|
+
*/
|
|
1756
|
+
readonly damageDate?: string
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* The system time to read: the belief held at that moment. Empty means now.
|
|
1760
|
+
* @type {string}
|
|
1761
|
+
* @memberof PoliciesApiPolicyServiceGetCoverageAtDate
|
|
1762
|
+
*/
|
|
1763
|
+
readonly asOf?: string
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Request parameters for policyServiceGetPolicy operation in PoliciesApi.
|
|
1768
|
+
* @export
|
|
1769
|
+
* @interface PoliciesApiPolicyServiceGetPolicyRequest
|
|
1770
|
+
*/
|
|
1771
|
+
export interface PoliciesApiPolicyServiceGetPolicyRequest {
|
|
1772
|
+
/**
|
|
1773
|
+
* The policy\'s code.
|
|
1774
|
+
* @type {string}
|
|
1775
|
+
* @memberof PoliciesApiPolicyServiceGetPolicy
|
|
1776
|
+
*/
|
|
1777
|
+
readonly code: string
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* The business day to read, as an RFC 3339 full-date (`YYYY-MM-DD`). Empty means today (the UTC date).
|
|
1781
|
+
* @type {string}
|
|
1782
|
+
* @memberof PoliciesApiPolicyServiceGetPolicy
|
|
1783
|
+
*/
|
|
1784
|
+
readonly validAt?: string
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* The system time to read: what the service believed at that moment. Empty means the current belief.
|
|
1788
|
+
* @type {string}
|
|
1789
|
+
* @memberof PoliciesApiPolicyServiceGetPolicy
|
|
1790
|
+
*/
|
|
1791
|
+
readonly asOf?: string
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* The related data to include. The only value is `timeline`, which adds the policy\'s timeslices.
|
|
1795
|
+
* @type {string}
|
|
1796
|
+
* @memberof PoliciesApiPolicyServiceGetPolicy
|
|
1797
|
+
*/
|
|
1798
|
+
readonly expand?: string
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* Request parameters for policyServiceGetPolicyFilterCatalog operation in PoliciesApi.
|
|
1803
|
+
* @export
|
|
1804
|
+
* @interface PoliciesApiPolicyServiceGetPolicyFilterCatalogRequest
|
|
1805
|
+
*/
|
|
1806
|
+
export interface PoliciesApiPolicyServiceGetPolicyFilterCatalogRequest {
|
|
1807
|
+
/**
|
|
1808
|
+
* The slug of the tariff whose product fields to include. When empty, only the system fields are returned.
|
|
1809
|
+
* @type {string}
|
|
1810
|
+
* @memberof PoliciesApiPolicyServiceGetPolicyFilterCatalog
|
|
1811
|
+
*/
|
|
1812
|
+
readonly tariffSlug?: string
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* Request parameters for policyServiceGetPolicyPartnerHistory operation in PoliciesApi.
|
|
1817
|
+
* @export
|
|
1818
|
+
* @interface PoliciesApiPolicyServiceGetPolicyPartnerHistoryRequest
|
|
1819
|
+
*/
|
|
1820
|
+
export interface PoliciesApiPolicyServiceGetPolicyPartnerHistoryRequest {
|
|
1821
|
+
/**
|
|
1822
|
+
* The policy\'s code.
|
|
1823
|
+
* @type {string}
|
|
1824
|
+
* @memberof PoliciesApiPolicyServiceGetPolicyPartnerHistory
|
|
1825
|
+
*/
|
|
1826
|
+
readonly code: string
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* The system time to read: the history as believed at that moment. Empty means now.
|
|
1830
|
+
* @type {string}
|
|
1831
|
+
* @memberof PoliciesApiPolicyServiceGetPolicyPartnerHistory
|
|
1832
|
+
*/
|
|
1833
|
+
readonly asOf?: string
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Request parameters for policyServiceGetPolicySchema operation in PoliciesApi.
|
|
1838
|
+
* @export
|
|
1839
|
+
* @interface PoliciesApiPolicyServiceGetPolicySchemaRequest
|
|
1840
|
+
*/
|
|
1841
|
+
export interface PoliciesApiPolicyServiceGetPolicySchemaRequest {
|
|
1842
|
+
/**
|
|
1843
|
+
* The policy\'s code.
|
|
1844
|
+
* @type {string}
|
|
1845
|
+
* @memberof PoliciesApiPolicyServiceGetPolicySchema
|
|
1846
|
+
*/
|
|
1847
|
+
readonly code: string
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* The business day, as `YYYY-MM-DD`. Empty means today (UTC). The schema is the one of the tariff version the policy had on that day.
|
|
1851
|
+
* @type {string}
|
|
1852
|
+
* @memberof PoliciesApiPolicyServiceGetPolicySchema
|
|
1853
|
+
*/
|
|
1854
|
+
readonly validAt?: string
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* The system time to read. Empty means the current belief.
|
|
1858
|
+
* @type {string}
|
|
1859
|
+
* @memberof PoliciesApiPolicyServiceGetPolicySchema
|
|
1860
|
+
*/
|
|
1861
|
+
readonly asOf?: string
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* Request parameters for policyServiceGetPolicyTimeline operation in PoliciesApi.
|
|
1866
|
+
* @export
|
|
1867
|
+
* @interface PoliciesApiPolicyServiceGetPolicyTimelineRequest
|
|
1868
|
+
*/
|
|
1869
|
+
export interface PoliciesApiPolicyServiceGetPolicyTimelineRequest {
|
|
1870
|
+
/**
|
|
1871
|
+
* The policy\'s code.
|
|
1872
|
+
* @type {string}
|
|
1873
|
+
* @memberof PoliciesApiPolicyServiceGetPolicyTimeline
|
|
1874
|
+
*/
|
|
1875
|
+
readonly code: string
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* Not used: the timeline is always the one believed now.
|
|
1879
|
+
* @type {string}
|
|
1880
|
+
* @memberof PoliciesApiPolicyServiceGetPolicyTimeline
|
|
1881
|
+
*/
|
|
1882
|
+
readonly asOf?: string
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* Whether to add the superseded segments. A past premium is reproduced from them.
|
|
1886
|
+
* @type {boolean}
|
|
1887
|
+
* @memberof PoliciesApiPolicyServiceGetPolicyTimeline
|
|
1888
|
+
*/
|
|
1889
|
+
readonly includeSuperseded?: boolean
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* Request parameters for policyServiceListPolicies operation in PoliciesApi.
|
|
1894
|
+
* @export
|
|
1895
|
+
* @interface PoliciesApiPolicyServiceListPoliciesRequest
|
|
1896
|
+
*/
|
|
1897
|
+
export interface PoliciesApiPolicyServiceListPoliciesRequest {
|
|
1898
|
+
/**
|
|
1899
|
+
*
|
|
1900
|
+
* @type {number}
|
|
1901
|
+
* @memberof PoliciesApiPolicyServiceListPolicies
|
|
1902
|
+
*/
|
|
1903
|
+
readonly pageSize?: number
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
*
|
|
1907
|
+
* @type {string}
|
|
1908
|
+
* @memberof PoliciesApiPolicyServiceListPolicies
|
|
1909
|
+
*/
|
|
1910
|
+
readonly pageToken?: string
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
*
|
|
1914
|
+
* @type {string}
|
|
1915
|
+
* @memberof PoliciesApiPolicyServiceListPolicies
|
|
1916
|
+
*/
|
|
1917
|
+
readonly filter?: string
|
|
1918
|
+
|
|
1919
|
+
/**
|
|
1920
|
+
*
|
|
1921
|
+
* @type {string}
|
|
1922
|
+
* @memberof PoliciesApiPolicyServiceListPolicies
|
|
1923
|
+
*/
|
|
1924
|
+
readonly search?: string
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
*
|
|
1928
|
+
* @type {string}
|
|
1929
|
+
* @memberof PoliciesApiPolicyServiceListPolicies
|
|
1930
|
+
*/
|
|
1931
|
+
readonly order?: string
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
*
|
|
1935
|
+
* @type {string}
|
|
1936
|
+
* @memberof PoliciesApiPolicyServiceListPolicies
|
|
1937
|
+
*/
|
|
1938
|
+
readonly expand?: string
|
|
1939
|
+
|
|
1940
|
+
/**
|
|
1941
|
+
*
|
|
1942
|
+
* @type {string}
|
|
1943
|
+
* @memberof PoliciesApiPolicyServiceListPolicies
|
|
1944
|
+
*/
|
|
1945
|
+
readonly filters?: string
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Request parameters for policyServiceListPolicyFilterValues operation in PoliciesApi.
|
|
1950
|
+
* @export
|
|
1951
|
+
* @interface PoliciesApiPolicyServiceListPolicyFilterValuesRequest
|
|
1952
|
+
*/
|
|
1953
|
+
export interface PoliciesApiPolicyServiceListPolicyFilterValuesRequest {
|
|
1954
|
+
/**
|
|
1955
|
+
*
|
|
1956
|
+
* @type {number}
|
|
1957
|
+
* @memberof PoliciesApiPolicyServiceListPolicyFilterValues
|
|
1958
|
+
*/
|
|
1959
|
+
readonly pageSize?: number
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
*
|
|
1963
|
+
* @type {string}
|
|
1964
|
+
* @memberof PoliciesApiPolicyServiceListPolicyFilterValues
|
|
1965
|
+
*/
|
|
1966
|
+
readonly pageToken?: string
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
*
|
|
1970
|
+
* @type {string}
|
|
1971
|
+
* @memberof PoliciesApiPolicyServiceListPolicyFilterValues
|
|
1972
|
+
*/
|
|
1973
|
+
readonly filter?: string
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
*
|
|
1977
|
+
* @type {string}
|
|
1978
|
+
* @memberof PoliciesApiPolicyServiceListPolicyFilterValues
|
|
1979
|
+
*/
|
|
1980
|
+
readonly search?: string
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
*
|
|
1984
|
+
* @type {string}
|
|
1985
|
+
* @memberof PoliciesApiPolicyServiceListPolicyFilterValues
|
|
1986
|
+
*/
|
|
1987
|
+
readonly order?: string
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
*
|
|
1991
|
+
* @type {string}
|
|
1992
|
+
* @memberof PoliciesApiPolicyServiceListPolicyFilterValues
|
|
1993
|
+
*/
|
|
1994
|
+
readonly expand?: string
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
*
|
|
1998
|
+
* @type {string}
|
|
1999
|
+
* @memberof PoliciesApiPolicyServiceListPolicyFilterValues
|
|
2000
|
+
*/
|
|
2001
|
+
readonly filters?: string
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* Request parameters for policyServiceListPolicySnapshots operation in PoliciesApi.
|
|
2006
|
+
* @export
|
|
2007
|
+
* @interface PoliciesApiPolicyServiceListPolicySnapshotsRequest
|
|
2008
|
+
*/
|
|
2009
|
+
export interface PoliciesApiPolicyServiceListPolicySnapshotsRequest {
|
|
2010
|
+
/**
|
|
2011
|
+
*
|
|
2012
|
+
* @type {number}
|
|
2013
|
+
* @memberof PoliciesApiPolicyServiceListPolicySnapshots
|
|
2014
|
+
*/
|
|
2015
|
+
readonly pageSize?: number
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
*
|
|
2019
|
+
* @type {string}
|
|
2020
|
+
* @memberof PoliciesApiPolicyServiceListPolicySnapshots
|
|
2021
|
+
*/
|
|
2022
|
+
readonly pageToken?: string
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
*
|
|
2026
|
+
* @type {string}
|
|
2027
|
+
* @memberof PoliciesApiPolicyServiceListPolicySnapshots
|
|
2028
|
+
*/
|
|
2029
|
+
readonly filter?: string
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
*
|
|
2033
|
+
* @type {string}
|
|
2034
|
+
* @memberof PoliciesApiPolicyServiceListPolicySnapshots
|
|
2035
|
+
*/
|
|
2036
|
+
readonly search?: string
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
*
|
|
2040
|
+
* @type {string}
|
|
2041
|
+
* @memberof PoliciesApiPolicyServiceListPolicySnapshots
|
|
2042
|
+
*/
|
|
2043
|
+
readonly order?: string
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
*
|
|
2047
|
+
* @type {string}
|
|
2048
|
+
* @memberof PoliciesApiPolicyServiceListPolicySnapshots
|
|
2049
|
+
*/
|
|
2050
|
+
readonly expand?: string
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
*
|
|
2054
|
+
* @type {string}
|
|
2055
|
+
* @memberof PoliciesApiPolicyServiceListPolicySnapshots
|
|
2056
|
+
*/
|
|
2057
|
+
readonly filters?: string
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* Request parameters for policyServiceListPolicyUpgradeTargets operation in PoliciesApi.
|
|
2062
|
+
* @export
|
|
2063
|
+
* @interface PoliciesApiPolicyServiceListPolicyUpgradeTargetsRequest
|
|
2064
|
+
*/
|
|
2065
|
+
export interface PoliciesApiPolicyServiceListPolicyUpgradeTargetsRequest {
|
|
2066
|
+
/**
|
|
2067
|
+
*
|
|
2068
|
+
* @type {number}
|
|
2069
|
+
* @memberof PoliciesApiPolicyServiceListPolicyUpgradeTargets
|
|
2070
|
+
*/
|
|
2071
|
+
readonly pageSize?: number
|
|
2072
|
+
|
|
2073
|
+
/**
|
|
2074
|
+
*
|
|
2075
|
+
* @type {string}
|
|
2076
|
+
* @memberof PoliciesApiPolicyServiceListPolicyUpgradeTargets
|
|
2077
|
+
*/
|
|
2078
|
+
readonly pageToken?: string
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
*
|
|
2082
|
+
* @type {string}
|
|
2083
|
+
* @memberof PoliciesApiPolicyServiceListPolicyUpgradeTargets
|
|
2084
|
+
*/
|
|
2085
|
+
readonly filter?: string
|
|
2086
|
+
|
|
2087
|
+
/**
|
|
2088
|
+
*
|
|
2089
|
+
* @type {string}
|
|
2090
|
+
* @memberof PoliciesApiPolicyServiceListPolicyUpgradeTargets
|
|
2091
|
+
*/
|
|
2092
|
+
readonly search?: string
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
*
|
|
2096
|
+
* @type {string}
|
|
2097
|
+
* @memberof PoliciesApiPolicyServiceListPolicyUpgradeTargets
|
|
2098
|
+
*/
|
|
2099
|
+
readonly order?: string
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
*
|
|
2103
|
+
* @type {string}
|
|
2104
|
+
* @memberof PoliciesApiPolicyServiceListPolicyUpgradeTargets
|
|
2105
|
+
*/
|
|
2106
|
+
readonly expand?: string
|
|
2107
|
+
|
|
2108
|
+
/**
|
|
2109
|
+
*
|
|
2110
|
+
* @type {string}
|
|
2111
|
+
* @memberof PoliciesApiPolicyServiceListPolicyUpgradeTargets
|
|
2112
|
+
*/
|
|
2113
|
+
readonly filters?: string
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* Request parameters for policyServicePreviewPolicyCorrection operation in PoliciesApi.
|
|
2118
|
+
* @export
|
|
2119
|
+
* @interface PoliciesApiPolicyServicePreviewPolicyCorrectionRequest
|
|
2120
|
+
*/
|
|
2121
|
+
export interface PoliciesApiPolicyServicePreviewPolicyCorrectionRequest {
|
|
2122
|
+
/**
|
|
2123
|
+
* The policy\'s code.
|
|
2124
|
+
* @type {string}
|
|
2125
|
+
* @memberof PoliciesApiPolicyServicePreviewPolicyCorrection
|
|
2126
|
+
*/
|
|
2127
|
+
readonly code: string
|
|
2128
|
+
|
|
2129
|
+
/**
|
|
2130
|
+
*
|
|
2131
|
+
* @type {PreviewPolicyCorrectionBody}
|
|
2132
|
+
* @memberof PoliciesApiPolicyServicePreviewPolicyCorrection
|
|
2133
|
+
*/
|
|
2134
|
+
readonly body: PreviewPolicyCorrectionBody
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
/**
|
|
2138
|
+
* Request parameters for policyServiceTerminatePolicy operation in PoliciesApi.
|
|
2139
|
+
* @export
|
|
2140
|
+
* @interface PoliciesApiPolicyServiceTerminatePolicyRequest
|
|
2141
|
+
*/
|
|
2142
|
+
export interface PoliciesApiPolicyServiceTerminatePolicyRequest {
|
|
2143
|
+
/**
|
|
2144
|
+
* The policy\'s code.
|
|
2145
|
+
* @type {string}
|
|
2146
|
+
* @memberof PoliciesApiPolicyServiceTerminatePolicy
|
|
2147
|
+
*/
|
|
2148
|
+
readonly code: string
|
|
2149
|
+
|
|
2150
|
+
/**
|
|
2151
|
+
* The policy\'s `etag` as last read, sent back unchanged.
|
|
2152
|
+
* @type {string}
|
|
2153
|
+
* @memberof PoliciesApiPolicyServiceTerminatePolicy
|
|
2154
|
+
*/
|
|
2155
|
+
readonly ifMatch: string
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
*
|
|
2159
|
+
* @type {TerminatePolicyBody}
|
|
2160
|
+
* @memberof PoliciesApiPolicyServiceTerminatePolicy
|
|
2161
|
+
*/
|
|
2162
|
+
readonly body: TerminatePolicyBody
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
/**
|
|
2166
|
+
* Request parameters for policyServiceUpgradePolicy operation in PoliciesApi.
|
|
2167
|
+
* @export
|
|
2168
|
+
* @interface PoliciesApiPolicyServiceUpgradePolicyRequest
|
|
2169
|
+
*/
|
|
2170
|
+
export interface PoliciesApiPolicyServiceUpgradePolicyRequest {
|
|
2171
|
+
/**
|
|
2172
|
+
* The policy\'s code.
|
|
2173
|
+
* @type {string}
|
|
2174
|
+
* @memberof PoliciesApiPolicyServiceUpgradePolicy
|
|
2175
|
+
*/
|
|
2176
|
+
readonly code: string
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* The policy\'s `etag` as last read, sent back unchanged.
|
|
2180
|
+
* @type {string}
|
|
2181
|
+
* @memberof PoliciesApiPolicyServiceUpgradePolicy
|
|
2182
|
+
*/
|
|
2183
|
+
readonly ifMatch: string
|
|
2184
|
+
|
|
2185
|
+
/**
|
|
2186
|
+
*
|
|
2187
|
+
* @type {UpgradePolicyBody}
|
|
2188
|
+
* @memberof PoliciesApiPolicyServiceUpgradePolicy
|
|
2189
|
+
*/
|
|
2190
|
+
readonly body: UpgradePolicyBody
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* PoliciesApi - object-oriented interface
|
|
2195
|
+
* @export
|
|
2196
|
+
* @class PoliciesApi
|
|
2197
|
+
* @extends {BaseAPI}
|
|
2198
|
+
*/
|
|
2199
|
+
export class PoliciesApi extends BaseAPI {
|
|
2200
|
+
/**
|
|
2201
|
+
*
|
|
2202
|
+
* @summary Checks whether a policy can be upgraded, without upgrading it.
|
|
2203
|
+
* @param {PoliciesApiPolicyServiceCheckPolicyUpgradeRequest} requestParameters Request parameters.
|
|
2204
|
+
* @param {*} [options] Override http request option.
|
|
2205
|
+
* @throws {RequiredError}
|
|
2206
|
+
* @memberof PoliciesApi
|
|
2207
|
+
*/
|
|
2208
|
+
public policyServiceCheckPolicyUpgrade(requestParameters: PoliciesApiPolicyServiceCheckPolicyUpgradeRequest, options?: AxiosRequestConfig) {
|
|
2209
|
+
return PoliciesApiFp(this.configuration).policyServiceCheckPolicyUpgrade(requestParameters.code, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
/**
|
|
2213
|
+
*
|
|
2214
|
+
* @summary Corrects a policy over a range of business time.
|
|
2215
|
+
* @param {PoliciesApiPolicyServiceCorrectPolicyRequest} requestParameters Request parameters.
|
|
2216
|
+
* @param {*} [options] Override http request option.
|
|
2217
|
+
* @throws {RequiredError}
|
|
2218
|
+
* @memberof PoliciesApi
|
|
2219
|
+
*/
|
|
2220
|
+
public policyServiceCorrectPolicy(requestParameters: PoliciesApiPolicyServiceCorrectPolicyRequest, options?: AxiosRequestConfig) {
|
|
2221
|
+
return PoliciesApiFp(this.configuration).policyServiceCorrectPolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
*
|
|
2226
|
+
* @summary Creates a policy, standalone or as a member of a group policy.
|
|
2227
|
+
* @param {PoliciesApiPolicyServiceCreatePolicyRequest} requestParameters Request parameters.
|
|
2228
|
+
* @param {*} [options] Override http request option.
|
|
2229
|
+
* @throws {RequiredError}
|
|
2230
|
+
* @memberof PoliciesApi
|
|
2231
|
+
*/
|
|
2232
|
+
public policyServiceCreatePolicy(requestParameters: PoliciesApiPolicyServiceCreatePolicyRequest, options?: AxiosRequestConfig) {
|
|
2233
|
+
return PoliciesApiFp(this.configuration).policyServiceCreatePolicy(requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
*
|
|
2238
|
+
* @summary Detaches a member from its group policy and makes it a standalone policy.
|
|
2239
|
+
* @param {PoliciesApiPolicyServiceDetachPolicyRequest} requestParameters Request parameters.
|
|
2240
|
+
* @param {*} [options] Override http request option.
|
|
2241
|
+
* @throws {RequiredError}
|
|
2242
|
+
* @memberof PoliciesApi
|
|
2243
|
+
*/
|
|
2244
|
+
public policyServiceDetachPolicy(requestParameters: PoliciesApiPolicyServiceDetachPolicyRequest, options?: AxiosRequestConfig) {
|
|
2245
|
+
return PoliciesApiFp(this.configuration).policyServiceDetachPolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
*
|
|
2250
|
+
* @summary Endorses a policy from a date on.
|
|
2251
|
+
* @param {PoliciesApiPolicyServiceEndorsePolicyRequest} requestParameters Request parameters.
|
|
2252
|
+
* @param {*} [options] Override http request option.
|
|
2253
|
+
* @throws {RequiredError}
|
|
2254
|
+
* @memberof PoliciesApi
|
|
2255
|
+
*/
|
|
2256
|
+
public policyServiceEndorsePolicy(requestParameters: PoliciesApiPolicyServiceEndorsePolicyRequest, options?: AxiosRequestConfig) {
|
|
2257
|
+
return PoliciesApiFp(this.configuration).policyServiceEndorsePolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
*
|
|
2262
|
+
* @summary Returns a policy\'s actual premium beside an estimate of its next premium.
|
|
2263
|
+
* @param {PoliciesApiPolicyServiceEstimatePolicyPremiumRequest} requestParameters Request parameters.
|
|
2264
|
+
* @param {*} [options] Override http request option.
|
|
2265
|
+
* @throws {RequiredError}
|
|
2266
|
+
* @memberof PoliciesApi
|
|
2267
|
+
*/
|
|
2268
|
+
public policyServiceEstimatePolicyPremium(requestParameters: PoliciesApiPolicyServiceEstimatePolicyPremiumRequest, options?: AxiosRequestConfig) {
|
|
2269
|
+
return PoliciesApiFp(this.configuration).policyServiceEstimatePolicyPremium(requestParameters.code, requestParameters.validAt, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
/**
|
|
2273
|
+
* TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
|
|
2274
|
+
* @summary Returns what a policy covered on the day of a loss.
|
|
2275
|
+
* @param {PoliciesApiPolicyServiceGetCoverageAtDateRequest} requestParameters Request parameters.
|
|
2276
|
+
* @param {*} [options] Override http request option.
|
|
2277
|
+
* @throws {RequiredError}
|
|
2278
|
+
* @memberof PoliciesApi
|
|
2279
|
+
*/
|
|
2280
|
+
public policyServiceGetCoverageAtDate(requestParameters: PoliciesApiPolicyServiceGetCoverageAtDateRequest = {}, options?: AxiosRequestConfig) {
|
|
2281
|
+
return PoliciesApiFp(this.configuration).policyServiceGetCoverageAtDate(requestParameters.policyCode, requestParameters.identifier, requestParameters.damageDate, requestParameters.asOf, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
/**
|
|
2285
|
+
*
|
|
2286
|
+
* @summary Returns one policy at a point in business time and system time.
|
|
2287
|
+
* @param {PoliciesApiPolicyServiceGetPolicyRequest} requestParameters Request parameters.
|
|
2288
|
+
* @param {*} [options] Override http request option.
|
|
2289
|
+
* @throws {RequiredError}
|
|
2290
|
+
* @memberof PoliciesApi
|
|
2291
|
+
*/
|
|
2292
|
+
public policyServiceGetPolicy(requestParameters: PoliciesApiPolicyServiceGetPolicyRequest, options?: AxiosRequestConfig) {
|
|
2293
|
+
return PoliciesApiFp(this.configuration).policyServiceGetPolicy(requestParameters.code, requestParameters.validAt, requestParameters.asOf, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
*
|
|
2298
|
+
* @summary Returns the filter catalog of the policy list.
|
|
2299
|
+
* @param {PoliciesApiPolicyServiceGetPolicyFilterCatalogRequest} requestParameters Request parameters.
|
|
2300
|
+
* @param {*} [options] Override http request option.
|
|
2301
|
+
* @throws {RequiredError}
|
|
2302
|
+
* @memberof PoliciesApi
|
|
2303
|
+
*/
|
|
2304
|
+
public policyServiceGetPolicyFilterCatalog(requestParameters: PoliciesApiPolicyServiceGetPolicyFilterCatalogRequest = {}, options?: AxiosRequestConfig) {
|
|
2305
|
+
return PoliciesApiFp(this.configuration).policyServiceGetPolicyFilterCatalog(requestParameters.tariffSlug, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
*
|
|
2310
|
+
* @summary Returns who filled which partner role on a policy, and when.
|
|
2311
|
+
* @param {PoliciesApiPolicyServiceGetPolicyPartnerHistoryRequest} requestParameters Request parameters.
|
|
2312
|
+
* @param {*} [options] Override http request option.
|
|
2313
|
+
* @throws {RequiredError}
|
|
2314
|
+
* @memberof PoliciesApi
|
|
2315
|
+
*/
|
|
2316
|
+
public policyServiceGetPolicyPartnerHistory(requestParameters: PoliciesApiPolicyServiceGetPolicyPartnerHistoryRequest, options?: AxiosRequestConfig) {
|
|
2317
|
+
return PoliciesApiFp(this.configuration).policyServiceGetPolicyPartnerHistory(requestParameters.code, requestParameters.asOf, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
*
|
|
2322
|
+
* @summary Returns the schema that this policy\'s data is validated against.
|
|
2323
|
+
* @param {PoliciesApiPolicyServiceGetPolicySchemaRequest} requestParameters Request parameters.
|
|
2324
|
+
* @param {*} [options] Override http request option.
|
|
2325
|
+
* @throws {RequiredError}
|
|
2326
|
+
* @memberof PoliciesApi
|
|
2327
|
+
*/
|
|
2328
|
+
public policyServiceGetPolicySchema(requestParameters: PoliciesApiPolicyServiceGetPolicySchemaRequest, options?: AxiosRequestConfig) {
|
|
2329
|
+
return PoliciesApiFp(this.configuration).policyServiceGetPolicySchema(requestParameters.code, requestParameters.validAt, requestParameters.asOf, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
*
|
|
2334
|
+
* @summary Returns the segments of a policy\'s timeline, ordered by business time.
|
|
2335
|
+
* @param {PoliciesApiPolicyServiceGetPolicyTimelineRequest} requestParameters Request parameters.
|
|
2336
|
+
* @param {*} [options] Override http request option.
|
|
2337
|
+
* @throws {RequiredError}
|
|
2338
|
+
* @memberof PoliciesApi
|
|
2339
|
+
*/
|
|
2340
|
+
public policyServiceGetPolicyTimeline(requestParameters: PoliciesApiPolicyServiceGetPolicyTimelineRequest, options?: AxiosRequestConfig) {
|
|
2341
|
+
return PoliciesApiFp(this.configuration).policyServiceGetPolicyTimeline(requestParameters.code, requestParameters.asOf, requestParameters.includeSuperseded, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
*
|
|
2346
|
+
* @summary Lists policies as they are valid today.
|
|
2347
|
+
* @param {PoliciesApiPolicyServiceListPoliciesRequest} requestParameters Request parameters.
|
|
2348
|
+
* @param {*} [options] Override http request option.
|
|
2349
|
+
* @throws {RequiredError}
|
|
2350
|
+
* @memberof PoliciesApi
|
|
2351
|
+
*/
|
|
2352
|
+
public policyServiceListPolicies(requestParameters: PoliciesApiPolicyServiceListPoliciesRequest = {}, options?: AxiosRequestConfig) {
|
|
2353
|
+
return PoliciesApiFp(this.configuration).policyServiceListPolicies(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
/**
|
|
2357
|
+
*
|
|
2358
|
+
* @summary Suggests values for one filter field of the policy list.
|
|
2359
|
+
* @param {PoliciesApiPolicyServiceListPolicyFilterValuesRequest} requestParameters Request parameters.
|
|
2360
|
+
* @param {*} [options] Override http request option.
|
|
2361
|
+
* @throws {RequiredError}
|
|
2362
|
+
* @memberof PoliciesApi
|
|
2363
|
+
*/
|
|
2364
|
+
public policyServiceListPolicyFilterValues(requestParameters: PoliciesApiPolicyServiceListPolicyFilterValuesRequest = {}, options?: AxiosRequestConfig) {
|
|
2365
|
+
return PoliciesApiFp(this.configuration).policyServiceListPolicyFilterValues(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
/**
|
|
2369
|
+
* Name the policy with the filter `policy.code==<code>`; it is required and takes the operator `==` only. `includeSuperseded==true` adds the beliefs a later correction replaced, and `asOf==<RFC 3339 moment>` reads the slices as they were believed then.
|
|
2370
|
+
* @summary Lists the timeslices of one policy, ordered by `validFrom`.
|
|
2371
|
+
* @param {PoliciesApiPolicyServiceListPolicySnapshotsRequest} requestParameters Request parameters.
|
|
2372
|
+
* @param {*} [options] Override http request option.
|
|
2373
|
+
* @throws {RequiredError}
|
|
2374
|
+
* @memberof PoliciesApi
|
|
2375
|
+
*/
|
|
2376
|
+
public policyServiceListPolicySnapshots(requestParameters: PoliciesApiPolicyServiceListPolicySnapshotsRequest = {}, options?: AxiosRequestConfig) {
|
|
2377
|
+
return PoliciesApiFp(this.configuration).policyServiceListPolicySnapshots(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
*
|
|
2382
|
+
* @summary Lists the tariff versions a policy can be upgraded to.
|
|
2383
|
+
* @param {PoliciesApiPolicyServiceListPolicyUpgradeTargetsRequest} requestParameters Request parameters.
|
|
2384
|
+
* @param {*} [options] Override http request option.
|
|
2385
|
+
* @throws {RequiredError}
|
|
2386
|
+
* @memberof PoliciesApi
|
|
2387
|
+
*/
|
|
2388
|
+
public policyServiceListPolicyUpgradeTargets(requestParameters: PoliciesApiPolicyServiceListPolicyUpgradeTargetsRequest = {}, options?: AxiosRequestConfig) {
|
|
2389
|
+
return PoliciesApiFp(this.configuration).policyServiceListPolicyUpgradeTargets(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
/**
|
|
2393
|
+
*
|
|
2394
|
+
* @summary Previews a correction without writing it.
|
|
2395
|
+
* @param {PoliciesApiPolicyServicePreviewPolicyCorrectionRequest} requestParameters Request parameters.
|
|
2396
|
+
* @param {*} [options] Override http request option.
|
|
2397
|
+
* @throws {RequiredError}
|
|
2398
|
+
* @memberof PoliciesApi
|
|
2399
|
+
*/
|
|
2400
|
+
public policyServicePreviewPolicyCorrection(requestParameters: PoliciesApiPolicyServicePreviewPolicyCorrectionRequest, options?: AxiosRequestConfig) {
|
|
2401
|
+
return PoliciesApiFp(this.configuration).policyServicePreviewPolicyCorrection(requestParameters.code, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
*
|
|
2406
|
+
* @summary Terminates a policy from a date on.
|
|
2407
|
+
* @param {PoliciesApiPolicyServiceTerminatePolicyRequest} requestParameters Request parameters.
|
|
2408
|
+
* @param {*} [options] Override http request option.
|
|
2409
|
+
* @throws {RequiredError}
|
|
2410
|
+
* @memberof PoliciesApi
|
|
2411
|
+
*/
|
|
2412
|
+
public policyServiceTerminatePolicy(requestParameters: PoliciesApiPolicyServiceTerminatePolicyRequest, options?: AxiosRequestConfig) {
|
|
2413
|
+
return PoliciesApiFp(this.configuration).policyServiceTerminatePolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
/**
|
|
2417
|
+
*
|
|
2418
|
+
* @summary Upgrades a policy to a newer tariff version.
|
|
2419
|
+
* @param {PoliciesApiPolicyServiceUpgradePolicyRequest} requestParameters Request parameters.
|
|
2420
|
+
* @param {*} [options] Override http request option.
|
|
2421
|
+
* @throws {RequiredError}
|
|
2422
|
+
* @memberof PoliciesApi
|
|
2423
|
+
*/
|
|
2424
|
+
public policyServiceUpgradePolicy(requestParameters: PoliciesApiPolicyServiceUpgradePolicyRequest, options?: AxiosRequestConfig) {
|
|
2425
|
+
return PoliciesApiFp(this.configuration).policyServiceUpgradePolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
2426
|
+
}
|
|
2427
|
+
}
|