@emilgroup/insurance-v2-sdk-node 0.0.0-stage → 1.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +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,1921 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* insuranceservice/v2/config_common.proto
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: version not set
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.PoliciesApi = exports.PoliciesApiFactory = exports.PoliciesApiFp = exports.PoliciesApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
92
|
+
/**
|
|
93
|
+
* PoliciesApi - axios parameter creator
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @summary Checks whether a policy can be upgraded, without upgrading it.
|
|
102
|
+
* @param {string} code The policy\'s code.
|
|
103
|
+
* @param {CheckPolicyUpgradeBody} body
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
policyServiceCheckPolicyUpgrade: function (code, body, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
// verify required parameter 'code' is not null or undefined
|
|
113
|
+
(0, common_1.assertParamExists)('policyServiceCheckPolicyUpgrade', 'code', code);
|
|
114
|
+
// verify required parameter 'body' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('policyServiceCheckPolicyUpgrade', 'body', body);
|
|
116
|
+
localVarPath = "/insuranceservice/v2/policies/{code}:checkUpgrade"
|
|
117
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
118
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
baseAccessToken = configuration.accessToken;
|
|
122
|
+
}
|
|
123
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
124
|
+
localVarHeaderParameter = {};
|
|
125
|
+
localVarQueryParameter = {};
|
|
126
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
127
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
131
|
+
return [2 /*return*/, {
|
|
132
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions,
|
|
134
|
+
}];
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @summary Corrects a policy over a range of business time.
|
|
141
|
+
* @param {string} code The policy\'s code.
|
|
142
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
143
|
+
* @param {CorrectPolicyBody} body
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
policyServiceCorrectPolicy: function (code, ifMatch, body, options) {
|
|
148
|
+
if (options === void 0) { options = {}; }
|
|
149
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
150
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
|
|
151
|
+
var _a;
|
|
152
|
+
return __generator(this, function (_b) {
|
|
153
|
+
// verify required parameter 'code' is not null or undefined
|
|
154
|
+
(0, common_1.assertParamExists)('policyServiceCorrectPolicy', 'code', code);
|
|
155
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
156
|
+
(0, common_1.assertParamExists)('policyServiceCorrectPolicy', 'ifMatch', ifMatch);
|
|
157
|
+
// verify required parameter 'body' is not null or undefined
|
|
158
|
+
(0, common_1.assertParamExists)('policyServiceCorrectPolicy', 'body', body);
|
|
159
|
+
localVarPath = "/insuranceservice/v2/policies/{code}/corrections"
|
|
160
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
161
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
162
|
+
if (configuration) {
|
|
163
|
+
baseOptions = configuration.baseOptions;
|
|
164
|
+
baseAccessToken = configuration.accessToken;
|
|
165
|
+
}
|
|
166
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
167
|
+
localVarHeaderParameter = {};
|
|
168
|
+
localVarQueryParameter = {};
|
|
169
|
+
ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
170
|
+
ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
171
|
+
ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
172
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
173
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
174
|
+
}
|
|
175
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
176
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
177
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
179
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
180
|
+
return [2 /*return*/, {
|
|
181
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
182
|
+
options: localVarRequestOptions,
|
|
183
|
+
}];
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @summary Creates a policy, standalone or as a member of a group policy.
|
|
190
|
+
* @param {CreatePolicyRequest} body The request of `CreatePolicy`.
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
policyServiceCreatePolicy: function (body, options) {
|
|
195
|
+
if (options === void 0) { options = {}; }
|
|
196
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
197
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
198
|
+
return __generator(this, function (_a) {
|
|
199
|
+
// verify required parameter 'body' is not null or undefined
|
|
200
|
+
(0, common_1.assertParamExists)('policyServiceCreatePolicy', 'body', body);
|
|
201
|
+
localVarPath = "/insuranceservice/v2/policies";
|
|
202
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
203
|
+
if (configuration) {
|
|
204
|
+
baseOptions = configuration.baseOptions;
|
|
205
|
+
baseAccessToken = configuration.accessToken;
|
|
206
|
+
}
|
|
207
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
208
|
+
localVarHeaderParameter = {};
|
|
209
|
+
localVarQueryParameter = {};
|
|
210
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
211
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
212
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
214
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
215
|
+
return [2 /*return*/, {
|
|
216
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
217
|
+
options: localVarRequestOptions,
|
|
218
|
+
}];
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @summary Detaches a member from its group policy and makes it a standalone policy.
|
|
225
|
+
* @param {string} code The code of the member policy to detach.
|
|
226
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
227
|
+
* @param {DetachPolicyBody} body
|
|
228
|
+
* @param {*} [options] Override http request option.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
policyServiceDetachPolicy: function (code, ifMatch, body, options) {
|
|
232
|
+
if (options === void 0) { options = {}; }
|
|
233
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
234
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
|
|
235
|
+
var _a;
|
|
236
|
+
return __generator(this, function (_b) {
|
|
237
|
+
// verify required parameter 'code' is not null or undefined
|
|
238
|
+
(0, common_1.assertParamExists)('policyServiceDetachPolicy', 'code', code);
|
|
239
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
240
|
+
(0, common_1.assertParamExists)('policyServiceDetachPolicy', 'ifMatch', ifMatch);
|
|
241
|
+
// verify required parameter 'body' is not null or undefined
|
|
242
|
+
(0, common_1.assertParamExists)('policyServiceDetachPolicy', 'body', body);
|
|
243
|
+
localVarPath = "/insuranceservice/v2/policies/{code}/detach"
|
|
244
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
245
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
246
|
+
if (configuration) {
|
|
247
|
+
baseOptions = configuration.baseOptions;
|
|
248
|
+
baseAccessToken = configuration.accessToken;
|
|
249
|
+
}
|
|
250
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
251
|
+
localVarHeaderParameter = {};
|
|
252
|
+
localVarQueryParameter = {};
|
|
253
|
+
ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
254
|
+
ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
255
|
+
ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
256
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
257
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
258
|
+
}
|
|
259
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
260
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
261
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
263
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
264
|
+
return [2 /*return*/, {
|
|
265
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
266
|
+
options: localVarRequestOptions,
|
|
267
|
+
}];
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @summary Endorses a policy from a date on.
|
|
274
|
+
* @param {string} code The policy\'s code.
|
|
275
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
276
|
+
* @param {EndorsePolicyBody} body
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
policyServiceEndorsePolicy: function (code, ifMatch, body, options) {
|
|
281
|
+
if (options === void 0) { options = {}; }
|
|
282
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
283
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
|
|
284
|
+
var _a;
|
|
285
|
+
return __generator(this, function (_b) {
|
|
286
|
+
// verify required parameter 'code' is not null or undefined
|
|
287
|
+
(0, common_1.assertParamExists)('policyServiceEndorsePolicy', 'code', code);
|
|
288
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
289
|
+
(0, common_1.assertParamExists)('policyServiceEndorsePolicy', 'ifMatch', ifMatch);
|
|
290
|
+
// verify required parameter 'body' is not null or undefined
|
|
291
|
+
(0, common_1.assertParamExists)('policyServiceEndorsePolicy', 'body', body);
|
|
292
|
+
localVarPath = "/insuranceservice/v2/policies/{code}/endorsements"
|
|
293
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
294
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
295
|
+
if (configuration) {
|
|
296
|
+
baseOptions = configuration.baseOptions;
|
|
297
|
+
baseAccessToken = configuration.accessToken;
|
|
298
|
+
}
|
|
299
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
300
|
+
localVarHeaderParameter = {};
|
|
301
|
+
localVarQueryParameter = {};
|
|
302
|
+
ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
303
|
+
ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
304
|
+
ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
305
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
306
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
307
|
+
}
|
|
308
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
309
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
310
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
311
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
312
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
313
|
+
return [2 /*return*/, {
|
|
314
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
315
|
+
options: localVarRequestOptions,
|
|
316
|
+
}];
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @summary Returns a policy\'s actual premium beside an estimate of its next premium.
|
|
323
|
+
* @param {string} code The policy\'s code.
|
|
324
|
+
* @param {string} [validAt] The business day, as `YYYY-MM-DD`. The default is today (UTC).
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
policyServiceEstimatePolicyPremium: function (code, validAt, options) {
|
|
329
|
+
if (options === void 0) { options = {}; }
|
|
330
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
331
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
332
|
+
return __generator(this, function (_a) {
|
|
333
|
+
// verify required parameter 'code' is not null or undefined
|
|
334
|
+
(0, common_1.assertParamExists)('policyServiceEstimatePolicyPremium', 'code', code);
|
|
335
|
+
localVarPath = "/insuranceservice/v2/policies/{code}/premium-estimate"
|
|
336
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
337
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
338
|
+
if (configuration) {
|
|
339
|
+
baseOptions = configuration.baseOptions;
|
|
340
|
+
baseAccessToken = configuration.accessToken;
|
|
341
|
+
}
|
|
342
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
343
|
+
localVarHeaderParameter = {};
|
|
344
|
+
localVarQueryParameter = {};
|
|
345
|
+
if (validAt !== undefined) {
|
|
346
|
+
localVarQueryParameter['validAt'] = validAt;
|
|
347
|
+
}
|
|
348
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
349
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
351
|
+
return [2 /*return*/, {
|
|
352
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
353
|
+
options: localVarRequestOptions,
|
|
354
|
+
}];
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
},
|
|
358
|
+
/**
|
|
359
|
+
* TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
|
|
360
|
+
* @summary Returns what a policy covered on the day of a loss.
|
|
361
|
+
* @param {string} [policyCode] The policy\'s code. Set exactly one of `policyCode` and `identifier`.
|
|
362
|
+
* @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`).
|
|
363
|
+
* @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.
|
|
364
|
+
* @param {string} [asOf] The system time to read: the belief held at that moment. Empty means now.
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
policyServiceGetCoverageAtDate: function (policyCode, identifier, damageDate, asOf, options) {
|
|
369
|
+
if (options === void 0) { options = {}; }
|
|
370
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
371
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
372
|
+
return __generator(this, function (_a) {
|
|
373
|
+
localVarPath = "/insuranceservice/v2/policies:coverageAtDate";
|
|
374
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
375
|
+
if (configuration) {
|
|
376
|
+
baseOptions = configuration.baseOptions;
|
|
377
|
+
baseAccessToken = configuration.accessToken;
|
|
378
|
+
}
|
|
379
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
380
|
+
localVarHeaderParameter = {};
|
|
381
|
+
localVarQueryParameter = {};
|
|
382
|
+
if (policyCode !== undefined) {
|
|
383
|
+
localVarQueryParameter['policyCode'] = policyCode;
|
|
384
|
+
}
|
|
385
|
+
if (identifier !== undefined) {
|
|
386
|
+
localVarQueryParameter['identifier'] = identifier;
|
|
387
|
+
}
|
|
388
|
+
if (damageDate !== undefined) {
|
|
389
|
+
localVarQueryParameter['damageDate'] = damageDate;
|
|
390
|
+
}
|
|
391
|
+
if (asOf !== undefined) {
|
|
392
|
+
localVarQueryParameter['asOf'] = (asOf instanceof Date) ?
|
|
393
|
+
asOf.toISOString() :
|
|
394
|
+
asOf;
|
|
395
|
+
}
|
|
396
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
397
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
398
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
399
|
+
return [2 /*return*/, {
|
|
400
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
401
|
+
options: localVarRequestOptions,
|
|
402
|
+
}];
|
|
403
|
+
});
|
|
404
|
+
});
|
|
405
|
+
},
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @summary Returns one policy at a point in business time and system time.
|
|
409
|
+
* @param {string} code The policy\'s code.
|
|
410
|
+
* @param {string} [validAt] The business day to read, as an RFC 3339 full-date (`YYYY-MM-DD`). Empty means today (the UTC date).
|
|
411
|
+
* @param {string} [asOf] The system time to read: what the service believed at that moment. Empty means the current belief.
|
|
412
|
+
* @param {string} [expand] The related data to include. The only value is `timeline`, which adds the policy\'s timeslices.
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
*/
|
|
416
|
+
policyServiceGetPolicy: function (code, validAt, asOf, expand, options) {
|
|
417
|
+
if (options === void 0) { options = {}; }
|
|
418
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
419
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
420
|
+
return __generator(this, function (_a) {
|
|
421
|
+
// verify required parameter 'code' is not null or undefined
|
|
422
|
+
(0, common_1.assertParamExists)('policyServiceGetPolicy', 'code', code);
|
|
423
|
+
localVarPath = "/insuranceservice/v2/policies/{code}"
|
|
424
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
425
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
426
|
+
if (configuration) {
|
|
427
|
+
baseOptions = configuration.baseOptions;
|
|
428
|
+
baseAccessToken = configuration.accessToken;
|
|
429
|
+
}
|
|
430
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
431
|
+
localVarHeaderParameter = {};
|
|
432
|
+
localVarQueryParameter = {};
|
|
433
|
+
if (validAt !== undefined) {
|
|
434
|
+
localVarQueryParameter['validAt'] = validAt;
|
|
435
|
+
}
|
|
436
|
+
if (asOf !== undefined) {
|
|
437
|
+
localVarQueryParameter['asOf'] = (asOf instanceof Date) ?
|
|
438
|
+
asOf.toISOString() :
|
|
439
|
+
asOf;
|
|
440
|
+
}
|
|
441
|
+
if (expand !== undefined) {
|
|
442
|
+
localVarQueryParameter['expand'] = expand;
|
|
443
|
+
}
|
|
444
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
445
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
446
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
447
|
+
return [2 /*return*/, {
|
|
448
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
449
|
+
options: localVarRequestOptions,
|
|
450
|
+
}];
|
|
451
|
+
});
|
|
452
|
+
});
|
|
453
|
+
},
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
* @summary Returns the filter catalog of the policy list.
|
|
457
|
+
* @param {string} [tariffSlug] The slug of the tariff whose product fields to include. When empty, only the system fields are returned.
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
policyServiceGetPolicyFilterCatalog: function (tariffSlug, options) {
|
|
462
|
+
if (options === void 0) { options = {}; }
|
|
463
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
464
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
465
|
+
return __generator(this, function (_a) {
|
|
466
|
+
localVarPath = "/insuranceservice/v2/policies:filterCatalog";
|
|
467
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
468
|
+
if (configuration) {
|
|
469
|
+
baseOptions = configuration.baseOptions;
|
|
470
|
+
baseAccessToken = configuration.accessToken;
|
|
471
|
+
}
|
|
472
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
473
|
+
localVarHeaderParameter = {};
|
|
474
|
+
localVarQueryParameter = {};
|
|
475
|
+
if (tariffSlug !== undefined) {
|
|
476
|
+
localVarQueryParameter['tariffSlug'] = tariffSlug;
|
|
477
|
+
}
|
|
478
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
479
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
480
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
481
|
+
return [2 /*return*/, {
|
|
482
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
483
|
+
options: localVarRequestOptions,
|
|
484
|
+
}];
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
},
|
|
488
|
+
/**
|
|
489
|
+
*
|
|
490
|
+
* @summary Returns who filled which partner role on a policy, and when.
|
|
491
|
+
* @param {string} code The policy\'s code.
|
|
492
|
+
* @param {string} [asOf] The system time to read: the history as believed at that moment. Empty means now.
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
*/
|
|
496
|
+
policyServiceGetPolicyPartnerHistory: function (code, asOf, options) {
|
|
497
|
+
if (options === void 0) { options = {}; }
|
|
498
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
499
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
500
|
+
return __generator(this, function (_a) {
|
|
501
|
+
// verify required parameter 'code' is not null or undefined
|
|
502
|
+
(0, common_1.assertParamExists)('policyServiceGetPolicyPartnerHistory', 'code', code);
|
|
503
|
+
localVarPath = "/insuranceservice/v2/policies/{code}/partner-history"
|
|
504
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
505
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
506
|
+
if (configuration) {
|
|
507
|
+
baseOptions = configuration.baseOptions;
|
|
508
|
+
baseAccessToken = configuration.accessToken;
|
|
509
|
+
}
|
|
510
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
511
|
+
localVarHeaderParameter = {};
|
|
512
|
+
localVarQueryParameter = {};
|
|
513
|
+
if (asOf !== undefined) {
|
|
514
|
+
localVarQueryParameter['asOf'] = (asOf instanceof Date) ?
|
|
515
|
+
asOf.toISOString() :
|
|
516
|
+
asOf;
|
|
517
|
+
}
|
|
518
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
519
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
520
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
521
|
+
return [2 /*return*/, {
|
|
522
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
523
|
+
options: localVarRequestOptions,
|
|
524
|
+
}];
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
},
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
* @summary Returns the schema that this policy\'s data is validated against.
|
|
531
|
+
* @param {string} code The policy\'s code.
|
|
532
|
+
* @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.
|
|
533
|
+
* @param {string} [asOf] The system time to read. Empty means the current belief.
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
policyServiceGetPolicySchema: function (code, validAt, asOf, options) {
|
|
538
|
+
if (options === void 0) { options = {}; }
|
|
539
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
540
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
541
|
+
return __generator(this, function (_a) {
|
|
542
|
+
// verify required parameter 'code' is not null or undefined
|
|
543
|
+
(0, common_1.assertParamExists)('policyServiceGetPolicySchema', 'code', code);
|
|
544
|
+
localVarPath = "/insuranceservice/v2/policies/{code}/schema"
|
|
545
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
546
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
547
|
+
if (configuration) {
|
|
548
|
+
baseOptions = configuration.baseOptions;
|
|
549
|
+
baseAccessToken = configuration.accessToken;
|
|
550
|
+
}
|
|
551
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
552
|
+
localVarHeaderParameter = {};
|
|
553
|
+
localVarQueryParameter = {};
|
|
554
|
+
if (validAt !== undefined) {
|
|
555
|
+
localVarQueryParameter['validAt'] = validAt;
|
|
556
|
+
}
|
|
557
|
+
if (asOf !== undefined) {
|
|
558
|
+
localVarQueryParameter['asOf'] = (asOf instanceof Date) ?
|
|
559
|
+
asOf.toISOString() :
|
|
560
|
+
asOf;
|
|
561
|
+
}
|
|
562
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
563
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
564
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
565
|
+
return [2 /*return*/, {
|
|
566
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
567
|
+
options: localVarRequestOptions,
|
|
568
|
+
}];
|
|
569
|
+
});
|
|
570
|
+
});
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @summary Returns the segments of a policy\'s timeline, ordered by business time.
|
|
575
|
+
* @param {string} code The policy\'s code.
|
|
576
|
+
* @param {string} [asOf] Not used: the timeline is always the one believed now.
|
|
577
|
+
* @param {boolean} [includeSuperseded] Whether to add the superseded segments. A past premium is reproduced from them.
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
policyServiceGetPolicyTimeline: function (code, asOf, includeSuperseded, options) {
|
|
582
|
+
if (options === void 0) { options = {}; }
|
|
583
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
584
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
585
|
+
return __generator(this, function (_a) {
|
|
586
|
+
// verify required parameter 'code' is not null or undefined
|
|
587
|
+
(0, common_1.assertParamExists)('policyServiceGetPolicyTimeline', 'code', code);
|
|
588
|
+
localVarPath = "/insuranceservice/v2/policies/{code}/timeline"
|
|
589
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
590
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
591
|
+
if (configuration) {
|
|
592
|
+
baseOptions = configuration.baseOptions;
|
|
593
|
+
baseAccessToken = configuration.accessToken;
|
|
594
|
+
}
|
|
595
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
596
|
+
localVarHeaderParameter = {};
|
|
597
|
+
localVarQueryParameter = {};
|
|
598
|
+
if (asOf !== undefined) {
|
|
599
|
+
localVarQueryParameter['asOf'] = (asOf instanceof Date) ?
|
|
600
|
+
asOf.toISOString() :
|
|
601
|
+
asOf;
|
|
602
|
+
}
|
|
603
|
+
if (includeSuperseded !== undefined) {
|
|
604
|
+
localVarQueryParameter['includeSuperseded'] = includeSuperseded;
|
|
605
|
+
}
|
|
606
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
607
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
608
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
609
|
+
return [2 /*return*/, {
|
|
610
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
611
|
+
options: localVarRequestOptions,
|
|
612
|
+
}];
|
|
613
|
+
});
|
|
614
|
+
});
|
|
615
|
+
},
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @summary Lists policies as they are valid today.
|
|
619
|
+
* @param {number} [pageSize]
|
|
620
|
+
* @param {string} [pageToken]
|
|
621
|
+
* @param {string} [filter]
|
|
622
|
+
* @param {string} [search]
|
|
623
|
+
* @param {string} [order]
|
|
624
|
+
* @param {string} [expand]
|
|
625
|
+
* @param {string} [filters]
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
*/
|
|
629
|
+
policyServiceListPolicies: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
630
|
+
if (options === void 0) { options = {}; }
|
|
631
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
632
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
633
|
+
return __generator(this, function (_a) {
|
|
634
|
+
localVarPath = "/insuranceservice/v2/policies";
|
|
635
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
636
|
+
if (configuration) {
|
|
637
|
+
baseOptions = configuration.baseOptions;
|
|
638
|
+
baseAccessToken = configuration.accessToken;
|
|
639
|
+
}
|
|
640
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
641
|
+
localVarHeaderParameter = {};
|
|
642
|
+
localVarQueryParameter = {};
|
|
643
|
+
if (pageSize !== undefined) {
|
|
644
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
645
|
+
}
|
|
646
|
+
if (pageToken !== undefined) {
|
|
647
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
648
|
+
}
|
|
649
|
+
if (filter !== undefined) {
|
|
650
|
+
localVarQueryParameter['filter'] = filter;
|
|
651
|
+
}
|
|
652
|
+
if (search !== undefined) {
|
|
653
|
+
localVarQueryParameter['search'] = search;
|
|
654
|
+
}
|
|
655
|
+
if (order !== undefined) {
|
|
656
|
+
localVarQueryParameter['order'] = order;
|
|
657
|
+
}
|
|
658
|
+
if (expand !== undefined) {
|
|
659
|
+
localVarQueryParameter['expand'] = expand;
|
|
660
|
+
}
|
|
661
|
+
if (filters !== undefined) {
|
|
662
|
+
localVarQueryParameter['filters'] = filters;
|
|
663
|
+
}
|
|
664
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
665
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
666
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
667
|
+
return [2 /*return*/, {
|
|
668
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
669
|
+
options: localVarRequestOptions,
|
|
670
|
+
}];
|
|
671
|
+
});
|
|
672
|
+
});
|
|
673
|
+
},
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @summary Suggests values for one filter field of the policy list.
|
|
677
|
+
* @param {number} [pageSize]
|
|
678
|
+
* @param {string} [pageToken]
|
|
679
|
+
* @param {string} [filter]
|
|
680
|
+
* @param {string} [search]
|
|
681
|
+
* @param {string} [order]
|
|
682
|
+
* @param {string} [expand]
|
|
683
|
+
* @param {string} [filters]
|
|
684
|
+
* @param {*} [options] Override http request option.
|
|
685
|
+
* @throws {RequiredError}
|
|
686
|
+
*/
|
|
687
|
+
policyServiceListPolicyFilterValues: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
688
|
+
if (options === void 0) { options = {}; }
|
|
689
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
690
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
691
|
+
return __generator(this, function (_a) {
|
|
692
|
+
localVarPath = "/insuranceservice/v2/policies:filterValues";
|
|
693
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
694
|
+
if (configuration) {
|
|
695
|
+
baseOptions = configuration.baseOptions;
|
|
696
|
+
baseAccessToken = configuration.accessToken;
|
|
697
|
+
}
|
|
698
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
699
|
+
localVarHeaderParameter = {};
|
|
700
|
+
localVarQueryParameter = {};
|
|
701
|
+
if (pageSize !== undefined) {
|
|
702
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
703
|
+
}
|
|
704
|
+
if (pageToken !== undefined) {
|
|
705
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
706
|
+
}
|
|
707
|
+
if (filter !== undefined) {
|
|
708
|
+
localVarQueryParameter['filter'] = filter;
|
|
709
|
+
}
|
|
710
|
+
if (search !== undefined) {
|
|
711
|
+
localVarQueryParameter['search'] = search;
|
|
712
|
+
}
|
|
713
|
+
if (order !== undefined) {
|
|
714
|
+
localVarQueryParameter['order'] = order;
|
|
715
|
+
}
|
|
716
|
+
if (expand !== undefined) {
|
|
717
|
+
localVarQueryParameter['expand'] = expand;
|
|
718
|
+
}
|
|
719
|
+
if (filters !== undefined) {
|
|
720
|
+
localVarQueryParameter['filters'] = filters;
|
|
721
|
+
}
|
|
722
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
723
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
724
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
725
|
+
return [2 /*return*/, {
|
|
726
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
727
|
+
options: localVarRequestOptions,
|
|
728
|
+
}];
|
|
729
|
+
});
|
|
730
|
+
});
|
|
731
|
+
},
|
|
732
|
+
/**
|
|
733
|
+
* 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.
|
|
734
|
+
* @summary Lists the timeslices of one policy, ordered by `validFrom`.
|
|
735
|
+
* @param {number} [pageSize]
|
|
736
|
+
* @param {string} [pageToken]
|
|
737
|
+
* @param {string} [filter]
|
|
738
|
+
* @param {string} [search]
|
|
739
|
+
* @param {string} [order]
|
|
740
|
+
* @param {string} [expand]
|
|
741
|
+
* @param {string} [filters]
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
policyServiceListPolicySnapshots: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
746
|
+
if (options === void 0) { options = {}; }
|
|
747
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
748
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
749
|
+
return __generator(this, function (_a) {
|
|
750
|
+
localVarPath = "/insuranceservice/v2/policy-snapshots";
|
|
751
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
752
|
+
if (configuration) {
|
|
753
|
+
baseOptions = configuration.baseOptions;
|
|
754
|
+
baseAccessToken = configuration.accessToken;
|
|
755
|
+
}
|
|
756
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
757
|
+
localVarHeaderParameter = {};
|
|
758
|
+
localVarQueryParameter = {};
|
|
759
|
+
if (pageSize !== undefined) {
|
|
760
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
761
|
+
}
|
|
762
|
+
if (pageToken !== undefined) {
|
|
763
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
764
|
+
}
|
|
765
|
+
if (filter !== undefined) {
|
|
766
|
+
localVarQueryParameter['filter'] = filter;
|
|
767
|
+
}
|
|
768
|
+
if (search !== undefined) {
|
|
769
|
+
localVarQueryParameter['search'] = search;
|
|
770
|
+
}
|
|
771
|
+
if (order !== undefined) {
|
|
772
|
+
localVarQueryParameter['order'] = order;
|
|
773
|
+
}
|
|
774
|
+
if (expand !== undefined) {
|
|
775
|
+
localVarQueryParameter['expand'] = expand;
|
|
776
|
+
}
|
|
777
|
+
if (filters !== undefined) {
|
|
778
|
+
localVarQueryParameter['filters'] = filters;
|
|
779
|
+
}
|
|
780
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
781
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
782
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
783
|
+
return [2 /*return*/, {
|
|
784
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
785
|
+
options: localVarRequestOptions,
|
|
786
|
+
}];
|
|
787
|
+
});
|
|
788
|
+
});
|
|
789
|
+
},
|
|
790
|
+
/**
|
|
791
|
+
*
|
|
792
|
+
* @summary Lists the tariff versions a policy can be upgraded to.
|
|
793
|
+
* @param {number} [pageSize]
|
|
794
|
+
* @param {string} [pageToken]
|
|
795
|
+
* @param {string} [filter]
|
|
796
|
+
* @param {string} [search]
|
|
797
|
+
* @param {string} [order]
|
|
798
|
+
* @param {string} [expand]
|
|
799
|
+
* @param {string} [filters]
|
|
800
|
+
* @param {*} [options] Override http request option.
|
|
801
|
+
* @throws {RequiredError}
|
|
802
|
+
*/
|
|
803
|
+
policyServiceListPolicyUpgradeTargets: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
804
|
+
if (options === void 0) { options = {}; }
|
|
805
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
806
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
807
|
+
return __generator(this, function (_a) {
|
|
808
|
+
localVarPath = "/insuranceservice/v2/policy-upgrade-targets";
|
|
809
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
810
|
+
if (configuration) {
|
|
811
|
+
baseOptions = configuration.baseOptions;
|
|
812
|
+
baseAccessToken = configuration.accessToken;
|
|
813
|
+
}
|
|
814
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
815
|
+
localVarHeaderParameter = {};
|
|
816
|
+
localVarQueryParameter = {};
|
|
817
|
+
if (pageSize !== undefined) {
|
|
818
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
819
|
+
}
|
|
820
|
+
if (pageToken !== undefined) {
|
|
821
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
822
|
+
}
|
|
823
|
+
if (filter !== undefined) {
|
|
824
|
+
localVarQueryParameter['filter'] = filter;
|
|
825
|
+
}
|
|
826
|
+
if (search !== undefined) {
|
|
827
|
+
localVarQueryParameter['search'] = search;
|
|
828
|
+
}
|
|
829
|
+
if (order !== undefined) {
|
|
830
|
+
localVarQueryParameter['order'] = order;
|
|
831
|
+
}
|
|
832
|
+
if (expand !== undefined) {
|
|
833
|
+
localVarQueryParameter['expand'] = expand;
|
|
834
|
+
}
|
|
835
|
+
if (filters !== undefined) {
|
|
836
|
+
localVarQueryParameter['filters'] = filters;
|
|
837
|
+
}
|
|
838
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
839
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
840
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
841
|
+
return [2 /*return*/, {
|
|
842
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
843
|
+
options: localVarRequestOptions,
|
|
844
|
+
}];
|
|
845
|
+
});
|
|
846
|
+
});
|
|
847
|
+
},
|
|
848
|
+
/**
|
|
849
|
+
*
|
|
850
|
+
* @summary Previews a correction without writing it.
|
|
851
|
+
* @param {string} code The policy\'s code.
|
|
852
|
+
* @param {PreviewPolicyCorrectionBody} body
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
*/
|
|
856
|
+
policyServicePreviewPolicyCorrection: function (code, body, options) {
|
|
857
|
+
if (options === void 0) { options = {}; }
|
|
858
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
859
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
860
|
+
return __generator(this, function (_a) {
|
|
861
|
+
// verify required parameter 'code' is not null or undefined
|
|
862
|
+
(0, common_1.assertParamExists)('policyServicePreviewPolicyCorrection', 'code', code);
|
|
863
|
+
// verify required parameter 'body' is not null or undefined
|
|
864
|
+
(0, common_1.assertParamExists)('policyServicePreviewPolicyCorrection', 'body', body);
|
|
865
|
+
localVarPath = "/insuranceservice/v2/policies/{code}/corrections:preview"
|
|
866
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
867
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
868
|
+
if (configuration) {
|
|
869
|
+
baseOptions = configuration.baseOptions;
|
|
870
|
+
baseAccessToken = configuration.accessToken;
|
|
871
|
+
}
|
|
872
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
873
|
+
localVarHeaderParameter = {};
|
|
874
|
+
localVarQueryParameter = {};
|
|
875
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
876
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
877
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
878
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
879
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
880
|
+
return [2 /*return*/, {
|
|
881
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
882
|
+
options: localVarRequestOptions,
|
|
883
|
+
}];
|
|
884
|
+
});
|
|
885
|
+
});
|
|
886
|
+
},
|
|
887
|
+
/**
|
|
888
|
+
*
|
|
889
|
+
* @summary Terminates a policy from a date on.
|
|
890
|
+
* @param {string} code The policy\'s code.
|
|
891
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
892
|
+
* @param {TerminatePolicyBody} body
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
*/
|
|
896
|
+
policyServiceTerminatePolicy: function (code, ifMatch, body, options) {
|
|
897
|
+
if (options === void 0) { options = {}; }
|
|
898
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
899
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
|
|
900
|
+
var _a;
|
|
901
|
+
return __generator(this, function (_b) {
|
|
902
|
+
// verify required parameter 'code' is not null or undefined
|
|
903
|
+
(0, common_1.assertParamExists)('policyServiceTerminatePolicy', 'code', code);
|
|
904
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
905
|
+
(0, common_1.assertParamExists)('policyServiceTerminatePolicy', 'ifMatch', ifMatch);
|
|
906
|
+
// verify required parameter 'body' is not null or undefined
|
|
907
|
+
(0, common_1.assertParamExists)('policyServiceTerminatePolicy', 'body', body);
|
|
908
|
+
localVarPath = "/insuranceservice/v2/policies/{code}/terminate"
|
|
909
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
910
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
911
|
+
if (configuration) {
|
|
912
|
+
baseOptions = configuration.baseOptions;
|
|
913
|
+
baseAccessToken = configuration.accessToken;
|
|
914
|
+
}
|
|
915
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
916
|
+
localVarHeaderParameter = {};
|
|
917
|
+
localVarQueryParameter = {};
|
|
918
|
+
ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
919
|
+
ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
920
|
+
ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
921
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
922
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
923
|
+
}
|
|
924
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
925
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
926
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
927
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
928
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
929
|
+
return [2 /*return*/, {
|
|
930
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
931
|
+
options: localVarRequestOptions,
|
|
932
|
+
}];
|
|
933
|
+
});
|
|
934
|
+
});
|
|
935
|
+
},
|
|
936
|
+
/**
|
|
937
|
+
*
|
|
938
|
+
* @summary Upgrades a policy to a newer tariff version.
|
|
939
|
+
* @param {string} code The policy\'s code.
|
|
940
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
941
|
+
* @param {UpgradePolicyBody} body
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
*/
|
|
945
|
+
policyServiceUpgradePolicy: function (code, ifMatch, body, options) {
|
|
946
|
+
if (options === void 0) { options = {}; }
|
|
947
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
948
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
|
|
949
|
+
var _a;
|
|
950
|
+
return __generator(this, function (_b) {
|
|
951
|
+
// verify required parameter 'code' is not null or undefined
|
|
952
|
+
(0, common_1.assertParamExists)('policyServiceUpgradePolicy', 'code', code);
|
|
953
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
954
|
+
(0, common_1.assertParamExists)('policyServiceUpgradePolicy', 'ifMatch', ifMatch);
|
|
955
|
+
// verify required parameter 'body' is not null or undefined
|
|
956
|
+
(0, common_1.assertParamExists)('policyServiceUpgradePolicy', 'body', body);
|
|
957
|
+
localVarPath = "/insuranceservice/v2/policies/{code}:upgrade"
|
|
958
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
959
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
960
|
+
if (configuration) {
|
|
961
|
+
baseOptions = configuration.baseOptions;
|
|
962
|
+
baseAccessToken = configuration.accessToken;
|
|
963
|
+
}
|
|
964
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
965
|
+
localVarHeaderParameter = {};
|
|
966
|
+
localVarQueryParameter = {};
|
|
967
|
+
ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
968
|
+
ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
969
|
+
ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
970
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
971
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
972
|
+
}
|
|
973
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
974
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
975
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
976
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
977
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
978
|
+
return [2 /*return*/, {
|
|
979
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
980
|
+
options: localVarRequestOptions,
|
|
981
|
+
}];
|
|
982
|
+
});
|
|
983
|
+
});
|
|
984
|
+
},
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
exports.PoliciesApiAxiosParamCreator = PoliciesApiAxiosParamCreator;
|
|
988
|
+
/**
|
|
989
|
+
* PoliciesApi - functional programming interface
|
|
990
|
+
* @export
|
|
991
|
+
*/
|
|
992
|
+
var PoliciesApiFp = function (configuration) {
|
|
993
|
+
var localVarAxiosParamCreator = (0, exports.PoliciesApiAxiosParamCreator)(configuration);
|
|
994
|
+
return {
|
|
995
|
+
/**
|
|
996
|
+
*
|
|
997
|
+
* @summary Checks whether a policy can be upgraded, without upgrading it.
|
|
998
|
+
* @param {string} code The policy\'s code.
|
|
999
|
+
* @param {CheckPolicyUpgradeBody} body
|
|
1000
|
+
* @param {*} [options] Override http request option.
|
|
1001
|
+
* @throws {RequiredError}
|
|
1002
|
+
*/
|
|
1003
|
+
policyServiceCheckPolicyUpgrade: function (code, body, options) {
|
|
1004
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1005
|
+
var localVarAxiosArgs;
|
|
1006
|
+
return __generator(this, function (_a) {
|
|
1007
|
+
switch (_a.label) {
|
|
1008
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceCheckPolicyUpgrade(code, body, options)];
|
|
1009
|
+
case 1:
|
|
1010
|
+
localVarAxiosArgs = _a.sent();
|
|
1011
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
});
|
|
1015
|
+
},
|
|
1016
|
+
/**
|
|
1017
|
+
*
|
|
1018
|
+
* @summary Corrects a policy over a range of business time.
|
|
1019
|
+
* @param {string} code The policy\'s code.
|
|
1020
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1021
|
+
* @param {CorrectPolicyBody} body
|
|
1022
|
+
* @param {*} [options] Override http request option.
|
|
1023
|
+
* @throws {RequiredError}
|
|
1024
|
+
*/
|
|
1025
|
+
policyServiceCorrectPolicy: function (code, ifMatch, body, options) {
|
|
1026
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1027
|
+
var localVarAxiosArgs;
|
|
1028
|
+
return __generator(this, function (_a) {
|
|
1029
|
+
switch (_a.label) {
|
|
1030
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceCorrectPolicy(code, ifMatch, body, options)];
|
|
1031
|
+
case 1:
|
|
1032
|
+
localVarAxiosArgs = _a.sent();
|
|
1033
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1036
|
+
});
|
|
1037
|
+
},
|
|
1038
|
+
/**
|
|
1039
|
+
*
|
|
1040
|
+
* @summary Creates a policy, standalone or as a member of a group policy.
|
|
1041
|
+
* @param {CreatePolicyRequest} body The request of `CreatePolicy`.
|
|
1042
|
+
* @param {*} [options] Override http request option.
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
*/
|
|
1045
|
+
policyServiceCreatePolicy: function (body, options) {
|
|
1046
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1047
|
+
var localVarAxiosArgs;
|
|
1048
|
+
return __generator(this, function (_a) {
|
|
1049
|
+
switch (_a.label) {
|
|
1050
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceCreatePolicy(body, options)];
|
|
1051
|
+
case 1:
|
|
1052
|
+
localVarAxiosArgs = _a.sent();
|
|
1053
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
});
|
|
1057
|
+
},
|
|
1058
|
+
/**
|
|
1059
|
+
*
|
|
1060
|
+
* @summary Detaches a member from its group policy and makes it a standalone policy.
|
|
1061
|
+
* @param {string} code The code of the member policy to detach.
|
|
1062
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1063
|
+
* @param {DetachPolicyBody} body
|
|
1064
|
+
* @param {*} [options] Override http request option.
|
|
1065
|
+
* @throws {RequiredError}
|
|
1066
|
+
*/
|
|
1067
|
+
policyServiceDetachPolicy: function (code, ifMatch, body, options) {
|
|
1068
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1069
|
+
var localVarAxiosArgs;
|
|
1070
|
+
return __generator(this, function (_a) {
|
|
1071
|
+
switch (_a.label) {
|
|
1072
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceDetachPolicy(code, ifMatch, body, options)];
|
|
1073
|
+
case 1:
|
|
1074
|
+
localVarAxiosArgs = _a.sent();
|
|
1075
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
});
|
|
1079
|
+
},
|
|
1080
|
+
/**
|
|
1081
|
+
*
|
|
1082
|
+
* @summary Endorses a policy from a date on.
|
|
1083
|
+
* @param {string} code The policy\'s code.
|
|
1084
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1085
|
+
* @param {EndorsePolicyBody} body
|
|
1086
|
+
* @param {*} [options] Override http request option.
|
|
1087
|
+
* @throws {RequiredError}
|
|
1088
|
+
*/
|
|
1089
|
+
policyServiceEndorsePolicy: function (code, ifMatch, body, options) {
|
|
1090
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1091
|
+
var localVarAxiosArgs;
|
|
1092
|
+
return __generator(this, function (_a) {
|
|
1093
|
+
switch (_a.label) {
|
|
1094
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceEndorsePolicy(code, ifMatch, body, options)];
|
|
1095
|
+
case 1:
|
|
1096
|
+
localVarAxiosArgs = _a.sent();
|
|
1097
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
});
|
|
1101
|
+
},
|
|
1102
|
+
/**
|
|
1103
|
+
*
|
|
1104
|
+
* @summary Returns a policy\'s actual premium beside an estimate of its next premium.
|
|
1105
|
+
* @param {string} code The policy\'s code.
|
|
1106
|
+
* @param {string} [validAt] The business day, as `YYYY-MM-DD`. The default is today (UTC).
|
|
1107
|
+
* @param {*} [options] Override http request option.
|
|
1108
|
+
* @throws {RequiredError}
|
|
1109
|
+
*/
|
|
1110
|
+
policyServiceEstimatePolicyPremium: function (code, validAt, options) {
|
|
1111
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1112
|
+
var localVarAxiosArgs;
|
|
1113
|
+
return __generator(this, function (_a) {
|
|
1114
|
+
switch (_a.label) {
|
|
1115
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceEstimatePolicyPremium(code, validAt, options)];
|
|
1116
|
+
case 1:
|
|
1117
|
+
localVarAxiosArgs = _a.sent();
|
|
1118
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
1121
|
+
});
|
|
1122
|
+
},
|
|
1123
|
+
/**
|
|
1124
|
+
* TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
|
|
1125
|
+
* @summary Returns what a policy covered on the day of a loss.
|
|
1126
|
+
* @param {string} [policyCode] The policy\'s code. Set exactly one of `policyCode` and `identifier`.
|
|
1127
|
+
* @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`).
|
|
1128
|
+
* @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.
|
|
1129
|
+
* @param {string} [asOf] The system time to read: the belief held at that moment. Empty means now.
|
|
1130
|
+
* @param {*} [options] Override http request option.
|
|
1131
|
+
* @throws {RequiredError}
|
|
1132
|
+
*/
|
|
1133
|
+
policyServiceGetCoverageAtDate: function (policyCode, identifier, damageDate, asOf, options) {
|
|
1134
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1135
|
+
var localVarAxiosArgs;
|
|
1136
|
+
return __generator(this, function (_a) {
|
|
1137
|
+
switch (_a.label) {
|
|
1138
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceGetCoverageAtDate(policyCode, identifier, damageDate, asOf, options)];
|
|
1139
|
+
case 1:
|
|
1140
|
+
localVarAxiosArgs = _a.sent();
|
|
1141
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1142
|
+
}
|
|
1143
|
+
});
|
|
1144
|
+
});
|
|
1145
|
+
},
|
|
1146
|
+
/**
|
|
1147
|
+
*
|
|
1148
|
+
* @summary Returns one policy at a point in business time and system time.
|
|
1149
|
+
* @param {string} code The policy\'s code.
|
|
1150
|
+
* @param {string} [validAt] The business day to read, as an RFC 3339 full-date (`YYYY-MM-DD`). Empty means today (the UTC date).
|
|
1151
|
+
* @param {string} [asOf] The system time to read: what the service believed at that moment. Empty means the current belief.
|
|
1152
|
+
* @param {string} [expand] The related data to include. The only value is `timeline`, which adds the policy\'s timeslices.
|
|
1153
|
+
* @param {*} [options] Override http request option.
|
|
1154
|
+
* @throws {RequiredError}
|
|
1155
|
+
*/
|
|
1156
|
+
policyServiceGetPolicy: function (code, validAt, asOf, expand, options) {
|
|
1157
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1158
|
+
var localVarAxiosArgs;
|
|
1159
|
+
return __generator(this, function (_a) {
|
|
1160
|
+
switch (_a.label) {
|
|
1161
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceGetPolicy(code, validAt, asOf, expand, options)];
|
|
1162
|
+
case 1:
|
|
1163
|
+
localVarAxiosArgs = _a.sent();
|
|
1164
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
});
|
|
1168
|
+
},
|
|
1169
|
+
/**
|
|
1170
|
+
*
|
|
1171
|
+
* @summary Returns the filter catalog of the policy list.
|
|
1172
|
+
* @param {string} [tariffSlug] The slug of the tariff whose product fields to include. When empty, only the system fields are returned.
|
|
1173
|
+
* @param {*} [options] Override http request option.
|
|
1174
|
+
* @throws {RequiredError}
|
|
1175
|
+
*/
|
|
1176
|
+
policyServiceGetPolicyFilterCatalog: function (tariffSlug, options) {
|
|
1177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1178
|
+
var localVarAxiosArgs;
|
|
1179
|
+
return __generator(this, function (_a) {
|
|
1180
|
+
switch (_a.label) {
|
|
1181
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceGetPolicyFilterCatalog(tariffSlug, options)];
|
|
1182
|
+
case 1:
|
|
1183
|
+
localVarAxiosArgs = _a.sent();
|
|
1184
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1185
|
+
}
|
|
1186
|
+
});
|
|
1187
|
+
});
|
|
1188
|
+
},
|
|
1189
|
+
/**
|
|
1190
|
+
*
|
|
1191
|
+
* @summary Returns who filled which partner role on a policy, and when.
|
|
1192
|
+
* @param {string} code The policy\'s code.
|
|
1193
|
+
* @param {string} [asOf] The system time to read: the history as believed at that moment. Empty means now.
|
|
1194
|
+
* @param {*} [options] Override http request option.
|
|
1195
|
+
* @throws {RequiredError}
|
|
1196
|
+
*/
|
|
1197
|
+
policyServiceGetPolicyPartnerHistory: function (code, asOf, options) {
|
|
1198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1199
|
+
var localVarAxiosArgs;
|
|
1200
|
+
return __generator(this, function (_a) {
|
|
1201
|
+
switch (_a.label) {
|
|
1202
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceGetPolicyPartnerHistory(code, asOf, options)];
|
|
1203
|
+
case 1:
|
|
1204
|
+
localVarAxiosArgs = _a.sent();
|
|
1205
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1206
|
+
}
|
|
1207
|
+
});
|
|
1208
|
+
});
|
|
1209
|
+
},
|
|
1210
|
+
/**
|
|
1211
|
+
*
|
|
1212
|
+
* @summary Returns the schema that this policy\'s data is validated against.
|
|
1213
|
+
* @param {string} code The policy\'s code.
|
|
1214
|
+
* @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.
|
|
1215
|
+
* @param {string} [asOf] The system time to read. Empty means the current belief.
|
|
1216
|
+
* @param {*} [options] Override http request option.
|
|
1217
|
+
* @throws {RequiredError}
|
|
1218
|
+
*/
|
|
1219
|
+
policyServiceGetPolicySchema: function (code, validAt, asOf, options) {
|
|
1220
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1221
|
+
var localVarAxiosArgs;
|
|
1222
|
+
return __generator(this, function (_a) {
|
|
1223
|
+
switch (_a.label) {
|
|
1224
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceGetPolicySchema(code, validAt, asOf, options)];
|
|
1225
|
+
case 1:
|
|
1226
|
+
localVarAxiosArgs = _a.sent();
|
|
1227
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
});
|
|
1231
|
+
},
|
|
1232
|
+
/**
|
|
1233
|
+
*
|
|
1234
|
+
* @summary Returns the segments of a policy\'s timeline, ordered by business time.
|
|
1235
|
+
* @param {string} code The policy\'s code.
|
|
1236
|
+
* @param {string} [asOf] Not used: the timeline is always the one believed now.
|
|
1237
|
+
* @param {boolean} [includeSuperseded] Whether to add the superseded segments. A past premium is reproduced from them.
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
*/
|
|
1241
|
+
policyServiceGetPolicyTimeline: function (code, asOf, includeSuperseded, options) {
|
|
1242
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1243
|
+
var localVarAxiosArgs;
|
|
1244
|
+
return __generator(this, function (_a) {
|
|
1245
|
+
switch (_a.label) {
|
|
1246
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceGetPolicyTimeline(code, asOf, includeSuperseded, options)];
|
|
1247
|
+
case 1:
|
|
1248
|
+
localVarAxiosArgs = _a.sent();
|
|
1249
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1250
|
+
}
|
|
1251
|
+
});
|
|
1252
|
+
});
|
|
1253
|
+
},
|
|
1254
|
+
/**
|
|
1255
|
+
*
|
|
1256
|
+
* @summary Lists policies as they are valid today.
|
|
1257
|
+
* @param {number} [pageSize]
|
|
1258
|
+
* @param {string} [pageToken]
|
|
1259
|
+
* @param {string} [filter]
|
|
1260
|
+
* @param {string} [search]
|
|
1261
|
+
* @param {string} [order]
|
|
1262
|
+
* @param {string} [expand]
|
|
1263
|
+
* @param {string} [filters]
|
|
1264
|
+
* @param {*} [options] Override http request option.
|
|
1265
|
+
* @throws {RequiredError}
|
|
1266
|
+
*/
|
|
1267
|
+
policyServiceListPolicies: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1268
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1269
|
+
var localVarAxiosArgs;
|
|
1270
|
+
return __generator(this, function (_a) {
|
|
1271
|
+
switch (_a.label) {
|
|
1272
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceListPolicies(pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
1273
|
+
case 1:
|
|
1274
|
+
localVarAxiosArgs = _a.sent();
|
|
1275
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
});
|
|
1279
|
+
},
|
|
1280
|
+
/**
|
|
1281
|
+
*
|
|
1282
|
+
* @summary Suggests values for one filter field of the policy list.
|
|
1283
|
+
* @param {number} [pageSize]
|
|
1284
|
+
* @param {string} [pageToken]
|
|
1285
|
+
* @param {string} [filter]
|
|
1286
|
+
* @param {string} [search]
|
|
1287
|
+
* @param {string} [order]
|
|
1288
|
+
* @param {string} [expand]
|
|
1289
|
+
* @param {string} [filters]
|
|
1290
|
+
* @param {*} [options] Override http request option.
|
|
1291
|
+
* @throws {RequiredError}
|
|
1292
|
+
*/
|
|
1293
|
+
policyServiceListPolicyFilterValues: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1294
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1295
|
+
var localVarAxiosArgs;
|
|
1296
|
+
return __generator(this, function (_a) {
|
|
1297
|
+
switch (_a.label) {
|
|
1298
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceListPolicyFilterValues(pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
1299
|
+
case 1:
|
|
1300
|
+
localVarAxiosArgs = _a.sent();
|
|
1301
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1302
|
+
}
|
|
1303
|
+
});
|
|
1304
|
+
});
|
|
1305
|
+
},
|
|
1306
|
+
/**
|
|
1307
|
+
* 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.
|
|
1308
|
+
* @summary Lists the timeslices of one policy, ordered by `validFrom`.
|
|
1309
|
+
* @param {number} [pageSize]
|
|
1310
|
+
* @param {string} [pageToken]
|
|
1311
|
+
* @param {string} [filter]
|
|
1312
|
+
* @param {string} [search]
|
|
1313
|
+
* @param {string} [order]
|
|
1314
|
+
* @param {string} [expand]
|
|
1315
|
+
* @param {string} [filters]
|
|
1316
|
+
* @param {*} [options] Override http request option.
|
|
1317
|
+
* @throws {RequiredError}
|
|
1318
|
+
*/
|
|
1319
|
+
policyServiceListPolicySnapshots: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1320
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1321
|
+
var localVarAxiosArgs;
|
|
1322
|
+
return __generator(this, function (_a) {
|
|
1323
|
+
switch (_a.label) {
|
|
1324
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceListPolicySnapshots(pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
1325
|
+
case 1:
|
|
1326
|
+
localVarAxiosArgs = _a.sent();
|
|
1327
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1328
|
+
}
|
|
1329
|
+
});
|
|
1330
|
+
});
|
|
1331
|
+
},
|
|
1332
|
+
/**
|
|
1333
|
+
*
|
|
1334
|
+
* @summary Lists the tariff versions a policy can be upgraded to.
|
|
1335
|
+
* @param {number} [pageSize]
|
|
1336
|
+
* @param {string} [pageToken]
|
|
1337
|
+
* @param {string} [filter]
|
|
1338
|
+
* @param {string} [search]
|
|
1339
|
+
* @param {string} [order]
|
|
1340
|
+
* @param {string} [expand]
|
|
1341
|
+
* @param {string} [filters]
|
|
1342
|
+
* @param {*} [options] Override http request option.
|
|
1343
|
+
* @throws {RequiredError}
|
|
1344
|
+
*/
|
|
1345
|
+
policyServiceListPolicyUpgradeTargets: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1346
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1347
|
+
var localVarAxiosArgs;
|
|
1348
|
+
return __generator(this, function (_a) {
|
|
1349
|
+
switch (_a.label) {
|
|
1350
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceListPolicyUpgradeTargets(pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
1351
|
+
case 1:
|
|
1352
|
+
localVarAxiosArgs = _a.sent();
|
|
1353
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1354
|
+
}
|
|
1355
|
+
});
|
|
1356
|
+
});
|
|
1357
|
+
},
|
|
1358
|
+
/**
|
|
1359
|
+
*
|
|
1360
|
+
* @summary Previews a correction without writing it.
|
|
1361
|
+
* @param {string} code The policy\'s code.
|
|
1362
|
+
* @param {PreviewPolicyCorrectionBody} body
|
|
1363
|
+
* @param {*} [options] Override http request option.
|
|
1364
|
+
* @throws {RequiredError}
|
|
1365
|
+
*/
|
|
1366
|
+
policyServicePreviewPolicyCorrection: function (code, body, options) {
|
|
1367
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1368
|
+
var localVarAxiosArgs;
|
|
1369
|
+
return __generator(this, function (_a) {
|
|
1370
|
+
switch (_a.label) {
|
|
1371
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServicePreviewPolicyCorrection(code, body, options)];
|
|
1372
|
+
case 1:
|
|
1373
|
+
localVarAxiosArgs = _a.sent();
|
|
1374
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
});
|
|
1378
|
+
},
|
|
1379
|
+
/**
|
|
1380
|
+
*
|
|
1381
|
+
* @summary Terminates a policy from a date on.
|
|
1382
|
+
* @param {string} code The policy\'s code.
|
|
1383
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1384
|
+
* @param {TerminatePolicyBody} body
|
|
1385
|
+
* @param {*} [options] Override http request option.
|
|
1386
|
+
* @throws {RequiredError}
|
|
1387
|
+
*/
|
|
1388
|
+
policyServiceTerminatePolicy: function (code, ifMatch, body, options) {
|
|
1389
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1390
|
+
var localVarAxiosArgs;
|
|
1391
|
+
return __generator(this, function (_a) {
|
|
1392
|
+
switch (_a.label) {
|
|
1393
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceTerminatePolicy(code, ifMatch, body, options)];
|
|
1394
|
+
case 1:
|
|
1395
|
+
localVarAxiosArgs = _a.sent();
|
|
1396
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
1399
|
+
});
|
|
1400
|
+
},
|
|
1401
|
+
/**
|
|
1402
|
+
*
|
|
1403
|
+
* @summary Upgrades a policy to a newer tariff version.
|
|
1404
|
+
* @param {string} code The policy\'s code.
|
|
1405
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1406
|
+
* @param {UpgradePolicyBody} body
|
|
1407
|
+
* @param {*} [options] Override http request option.
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
*/
|
|
1410
|
+
policyServiceUpgradePolicy: function (code, ifMatch, body, options) {
|
|
1411
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1412
|
+
var localVarAxiosArgs;
|
|
1413
|
+
return __generator(this, function (_a) {
|
|
1414
|
+
switch (_a.label) {
|
|
1415
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policyServiceUpgradePolicy(code, ifMatch, body, options)];
|
|
1416
|
+
case 1:
|
|
1417
|
+
localVarAxiosArgs = _a.sent();
|
|
1418
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
});
|
|
1422
|
+
},
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
exports.PoliciesApiFp = PoliciesApiFp;
|
|
1426
|
+
/**
|
|
1427
|
+
* PoliciesApi - factory interface
|
|
1428
|
+
* @export
|
|
1429
|
+
*/
|
|
1430
|
+
var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
1431
|
+
var localVarFp = (0, exports.PoliciesApiFp)(configuration);
|
|
1432
|
+
return {
|
|
1433
|
+
/**
|
|
1434
|
+
*
|
|
1435
|
+
* @summary Checks whether a policy can be upgraded, without upgrading it.
|
|
1436
|
+
* @param {string} code The policy\'s code.
|
|
1437
|
+
* @param {CheckPolicyUpgradeBody} body
|
|
1438
|
+
* @param {*} [options] Override http request option.
|
|
1439
|
+
* @throws {RequiredError}
|
|
1440
|
+
*/
|
|
1441
|
+
policyServiceCheckPolicyUpgrade: function (code, body, options) {
|
|
1442
|
+
return localVarFp.policyServiceCheckPolicyUpgrade(code, body, options).then(function (request) { return request(axios, basePath); });
|
|
1443
|
+
},
|
|
1444
|
+
/**
|
|
1445
|
+
*
|
|
1446
|
+
* @summary Corrects a policy over a range of business time.
|
|
1447
|
+
* @param {string} code The policy\'s code.
|
|
1448
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1449
|
+
* @param {CorrectPolicyBody} body
|
|
1450
|
+
* @param {*} [options] Override http request option.
|
|
1451
|
+
* @throws {RequiredError}
|
|
1452
|
+
*/
|
|
1453
|
+
policyServiceCorrectPolicy: function (code, ifMatch, body, options) {
|
|
1454
|
+
return localVarFp.policyServiceCorrectPolicy(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
|
|
1455
|
+
},
|
|
1456
|
+
/**
|
|
1457
|
+
*
|
|
1458
|
+
* @summary Creates a policy, standalone or as a member of a group policy.
|
|
1459
|
+
* @param {CreatePolicyRequest} body The request of `CreatePolicy`.
|
|
1460
|
+
* @param {*} [options] Override http request option.
|
|
1461
|
+
* @throws {RequiredError}
|
|
1462
|
+
*/
|
|
1463
|
+
policyServiceCreatePolicy: function (body, options) {
|
|
1464
|
+
return localVarFp.policyServiceCreatePolicy(body, options).then(function (request) { return request(axios, basePath); });
|
|
1465
|
+
},
|
|
1466
|
+
/**
|
|
1467
|
+
*
|
|
1468
|
+
* @summary Detaches a member from its group policy and makes it a standalone policy.
|
|
1469
|
+
* @param {string} code The code of the member policy to detach.
|
|
1470
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1471
|
+
* @param {DetachPolicyBody} body
|
|
1472
|
+
* @param {*} [options] Override http request option.
|
|
1473
|
+
* @throws {RequiredError}
|
|
1474
|
+
*/
|
|
1475
|
+
policyServiceDetachPolicy: function (code, ifMatch, body, options) {
|
|
1476
|
+
return localVarFp.policyServiceDetachPolicy(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
|
|
1477
|
+
},
|
|
1478
|
+
/**
|
|
1479
|
+
*
|
|
1480
|
+
* @summary Endorses a policy from a date on.
|
|
1481
|
+
* @param {string} code The policy\'s code.
|
|
1482
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1483
|
+
* @param {EndorsePolicyBody} body
|
|
1484
|
+
* @param {*} [options] Override http request option.
|
|
1485
|
+
* @throws {RequiredError}
|
|
1486
|
+
*/
|
|
1487
|
+
policyServiceEndorsePolicy: function (code, ifMatch, body, options) {
|
|
1488
|
+
return localVarFp.policyServiceEndorsePolicy(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
|
|
1489
|
+
},
|
|
1490
|
+
/**
|
|
1491
|
+
*
|
|
1492
|
+
* @summary Returns a policy\'s actual premium beside an estimate of its next premium.
|
|
1493
|
+
* @param {string} code The policy\'s code.
|
|
1494
|
+
* @param {string} [validAt] The business day, as `YYYY-MM-DD`. The default is today (UTC).
|
|
1495
|
+
* @param {*} [options] Override http request option.
|
|
1496
|
+
* @throws {RequiredError}
|
|
1497
|
+
*/
|
|
1498
|
+
policyServiceEstimatePolicyPremium: function (code, validAt, options) {
|
|
1499
|
+
return localVarFp.policyServiceEstimatePolicyPremium(code, validAt, options).then(function (request) { return request(axios, basePath); });
|
|
1500
|
+
},
|
|
1501
|
+
/**
|
|
1502
|
+
* TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
|
|
1503
|
+
* @summary Returns what a policy covered on the day of a loss.
|
|
1504
|
+
* @param {string} [policyCode] The policy\'s code. Set exactly one of `policyCode` and `identifier`.
|
|
1505
|
+
* @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`).
|
|
1506
|
+
* @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.
|
|
1507
|
+
* @param {string} [asOf] The system time to read: the belief held at that moment. Empty means now.
|
|
1508
|
+
* @param {*} [options] Override http request option.
|
|
1509
|
+
* @throws {RequiredError}
|
|
1510
|
+
*/
|
|
1511
|
+
policyServiceGetCoverageAtDate: function (policyCode, identifier, damageDate, asOf, options) {
|
|
1512
|
+
return localVarFp.policyServiceGetCoverageAtDate(policyCode, identifier, damageDate, asOf, options).then(function (request) { return request(axios, basePath); });
|
|
1513
|
+
},
|
|
1514
|
+
/**
|
|
1515
|
+
*
|
|
1516
|
+
* @summary Returns one policy at a point in business time and system time.
|
|
1517
|
+
* @param {string} code The policy\'s code.
|
|
1518
|
+
* @param {string} [validAt] The business day to read, as an RFC 3339 full-date (`YYYY-MM-DD`). Empty means today (the UTC date).
|
|
1519
|
+
* @param {string} [asOf] The system time to read: what the service believed at that moment. Empty means the current belief.
|
|
1520
|
+
* @param {string} [expand] The related data to include. The only value is `timeline`, which adds the policy\'s timeslices.
|
|
1521
|
+
* @param {*} [options] Override http request option.
|
|
1522
|
+
* @throws {RequiredError}
|
|
1523
|
+
*/
|
|
1524
|
+
policyServiceGetPolicy: function (code, validAt, asOf, expand, options) {
|
|
1525
|
+
return localVarFp.policyServiceGetPolicy(code, validAt, asOf, expand, options).then(function (request) { return request(axios, basePath); });
|
|
1526
|
+
},
|
|
1527
|
+
/**
|
|
1528
|
+
*
|
|
1529
|
+
* @summary Returns the filter catalog of the policy list.
|
|
1530
|
+
* @param {string} [tariffSlug] The slug of the tariff whose product fields to include. When empty, only the system fields are returned.
|
|
1531
|
+
* @param {*} [options] Override http request option.
|
|
1532
|
+
* @throws {RequiredError}
|
|
1533
|
+
*/
|
|
1534
|
+
policyServiceGetPolicyFilterCatalog: function (tariffSlug, options) {
|
|
1535
|
+
return localVarFp.policyServiceGetPolicyFilterCatalog(tariffSlug, options).then(function (request) { return request(axios, basePath); });
|
|
1536
|
+
},
|
|
1537
|
+
/**
|
|
1538
|
+
*
|
|
1539
|
+
* @summary Returns who filled which partner role on a policy, and when.
|
|
1540
|
+
* @param {string} code The policy\'s code.
|
|
1541
|
+
* @param {string} [asOf] The system time to read: the history as believed at that moment. Empty means now.
|
|
1542
|
+
* @param {*} [options] Override http request option.
|
|
1543
|
+
* @throws {RequiredError}
|
|
1544
|
+
*/
|
|
1545
|
+
policyServiceGetPolicyPartnerHistory: function (code, asOf, options) {
|
|
1546
|
+
return localVarFp.policyServiceGetPolicyPartnerHistory(code, asOf, options).then(function (request) { return request(axios, basePath); });
|
|
1547
|
+
},
|
|
1548
|
+
/**
|
|
1549
|
+
*
|
|
1550
|
+
* @summary Returns the schema that this policy\'s data is validated against.
|
|
1551
|
+
* @param {string} code The policy\'s code.
|
|
1552
|
+
* @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.
|
|
1553
|
+
* @param {string} [asOf] The system time to read. Empty means the current belief.
|
|
1554
|
+
* @param {*} [options] Override http request option.
|
|
1555
|
+
* @throws {RequiredError}
|
|
1556
|
+
*/
|
|
1557
|
+
policyServiceGetPolicySchema: function (code, validAt, asOf, options) {
|
|
1558
|
+
return localVarFp.policyServiceGetPolicySchema(code, validAt, asOf, options).then(function (request) { return request(axios, basePath); });
|
|
1559
|
+
},
|
|
1560
|
+
/**
|
|
1561
|
+
*
|
|
1562
|
+
* @summary Returns the segments of a policy\'s timeline, ordered by business time.
|
|
1563
|
+
* @param {string} code The policy\'s code.
|
|
1564
|
+
* @param {string} [asOf] Not used: the timeline is always the one believed now.
|
|
1565
|
+
* @param {boolean} [includeSuperseded] Whether to add the superseded segments. A past premium is reproduced from them.
|
|
1566
|
+
* @param {*} [options] Override http request option.
|
|
1567
|
+
* @throws {RequiredError}
|
|
1568
|
+
*/
|
|
1569
|
+
policyServiceGetPolicyTimeline: function (code, asOf, includeSuperseded, options) {
|
|
1570
|
+
return localVarFp.policyServiceGetPolicyTimeline(code, asOf, includeSuperseded, options).then(function (request) { return request(axios, basePath); });
|
|
1571
|
+
},
|
|
1572
|
+
/**
|
|
1573
|
+
*
|
|
1574
|
+
* @summary Lists policies as they are valid today.
|
|
1575
|
+
* @param {number} [pageSize]
|
|
1576
|
+
* @param {string} [pageToken]
|
|
1577
|
+
* @param {string} [filter]
|
|
1578
|
+
* @param {string} [search]
|
|
1579
|
+
* @param {string} [order]
|
|
1580
|
+
* @param {string} [expand]
|
|
1581
|
+
* @param {string} [filters]
|
|
1582
|
+
* @param {*} [options] Override http request option.
|
|
1583
|
+
* @throws {RequiredError}
|
|
1584
|
+
*/
|
|
1585
|
+
policyServiceListPolicies: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1586
|
+
return localVarFp.policyServiceListPolicies(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1587
|
+
},
|
|
1588
|
+
/**
|
|
1589
|
+
*
|
|
1590
|
+
* @summary Suggests values for one filter field of the policy list.
|
|
1591
|
+
* @param {number} [pageSize]
|
|
1592
|
+
* @param {string} [pageToken]
|
|
1593
|
+
* @param {string} [filter]
|
|
1594
|
+
* @param {string} [search]
|
|
1595
|
+
* @param {string} [order]
|
|
1596
|
+
* @param {string} [expand]
|
|
1597
|
+
* @param {string} [filters]
|
|
1598
|
+
* @param {*} [options] Override http request option.
|
|
1599
|
+
* @throws {RequiredError}
|
|
1600
|
+
*/
|
|
1601
|
+
policyServiceListPolicyFilterValues: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1602
|
+
return localVarFp.policyServiceListPolicyFilterValues(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1603
|
+
},
|
|
1604
|
+
/**
|
|
1605
|
+
* 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.
|
|
1606
|
+
* @summary Lists the timeslices of one policy, ordered by `validFrom`.
|
|
1607
|
+
* @param {number} [pageSize]
|
|
1608
|
+
* @param {string} [pageToken]
|
|
1609
|
+
* @param {string} [filter]
|
|
1610
|
+
* @param {string} [search]
|
|
1611
|
+
* @param {string} [order]
|
|
1612
|
+
* @param {string} [expand]
|
|
1613
|
+
* @param {string} [filters]
|
|
1614
|
+
* @param {*} [options] Override http request option.
|
|
1615
|
+
* @throws {RequiredError}
|
|
1616
|
+
*/
|
|
1617
|
+
policyServiceListPolicySnapshots: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1618
|
+
return localVarFp.policyServiceListPolicySnapshots(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1619
|
+
},
|
|
1620
|
+
/**
|
|
1621
|
+
*
|
|
1622
|
+
* @summary Lists the tariff versions a policy can be upgraded to.
|
|
1623
|
+
* @param {number} [pageSize]
|
|
1624
|
+
* @param {string} [pageToken]
|
|
1625
|
+
* @param {string} [filter]
|
|
1626
|
+
* @param {string} [search]
|
|
1627
|
+
* @param {string} [order]
|
|
1628
|
+
* @param {string} [expand]
|
|
1629
|
+
* @param {string} [filters]
|
|
1630
|
+
* @param {*} [options] Override http request option.
|
|
1631
|
+
* @throws {RequiredError}
|
|
1632
|
+
*/
|
|
1633
|
+
policyServiceListPolicyUpgradeTargets: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1634
|
+
return localVarFp.policyServiceListPolicyUpgradeTargets(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1635
|
+
},
|
|
1636
|
+
/**
|
|
1637
|
+
*
|
|
1638
|
+
* @summary Previews a correction without writing it.
|
|
1639
|
+
* @param {string} code The policy\'s code.
|
|
1640
|
+
* @param {PreviewPolicyCorrectionBody} body
|
|
1641
|
+
* @param {*} [options] Override http request option.
|
|
1642
|
+
* @throws {RequiredError}
|
|
1643
|
+
*/
|
|
1644
|
+
policyServicePreviewPolicyCorrection: function (code, body, options) {
|
|
1645
|
+
return localVarFp.policyServicePreviewPolicyCorrection(code, body, options).then(function (request) { return request(axios, basePath); });
|
|
1646
|
+
},
|
|
1647
|
+
/**
|
|
1648
|
+
*
|
|
1649
|
+
* @summary Terminates a policy from a date on.
|
|
1650
|
+
* @param {string} code The policy\'s code.
|
|
1651
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1652
|
+
* @param {TerminatePolicyBody} body
|
|
1653
|
+
* @param {*} [options] Override http request option.
|
|
1654
|
+
* @throws {RequiredError}
|
|
1655
|
+
*/
|
|
1656
|
+
policyServiceTerminatePolicy: function (code, ifMatch, body, options) {
|
|
1657
|
+
return localVarFp.policyServiceTerminatePolicy(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
|
|
1658
|
+
},
|
|
1659
|
+
/**
|
|
1660
|
+
*
|
|
1661
|
+
* @summary Upgrades a policy to a newer tariff version.
|
|
1662
|
+
* @param {string} code The policy\'s code.
|
|
1663
|
+
* @param {string} ifMatch The policy\'s `etag` as last read, sent back unchanged.
|
|
1664
|
+
* @param {UpgradePolicyBody} body
|
|
1665
|
+
* @param {*} [options] Override http request option.
|
|
1666
|
+
* @throws {RequiredError}
|
|
1667
|
+
*/
|
|
1668
|
+
policyServiceUpgradePolicy: function (code, ifMatch, body, options) {
|
|
1669
|
+
return localVarFp.policyServiceUpgradePolicy(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
|
|
1670
|
+
},
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1673
|
+
exports.PoliciesApiFactory = PoliciesApiFactory;
|
|
1674
|
+
/**
|
|
1675
|
+
* PoliciesApi - object-oriented interface
|
|
1676
|
+
* @export
|
|
1677
|
+
* @class PoliciesApi
|
|
1678
|
+
* @extends {BaseAPI}
|
|
1679
|
+
*/
|
|
1680
|
+
var PoliciesApi = /** @class */ (function (_super) {
|
|
1681
|
+
__extends(PoliciesApi, _super);
|
|
1682
|
+
function PoliciesApi() {
|
|
1683
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* @summary Checks whether a policy can be upgraded, without upgrading it.
|
|
1688
|
+
* @param {PoliciesApiPolicyServiceCheckPolicyUpgradeRequest} requestParameters Request parameters.
|
|
1689
|
+
* @param {*} [options] Override http request option.
|
|
1690
|
+
* @throws {RequiredError}
|
|
1691
|
+
* @memberof PoliciesApi
|
|
1692
|
+
*/
|
|
1693
|
+
PoliciesApi.prototype.policyServiceCheckPolicyUpgrade = function (requestParameters, options) {
|
|
1694
|
+
var _this = this;
|
|
1695
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceCheckPolicyUpgrade(requestParameters.code, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1696
|
+
};
|
|
1697
|
+
/**
|
|
1698
|
+
*
|
|
1699
|
+
* @summary Corrects a policy over a range of business time.
|
|
1700
|
+
* @param {PoliciesApiPolicyServiceCorrectPolicyRequest} requestParameters Request parameters.
|
|
1701
|
+
* @param {*} [options] Override http request option.
|
|
1702
|
+
* @throws {RequiredError}
|
|
1703
|
+
* @memberof PoliciesApi
|
|
1704
|
+
*/
|
|
1705
|
+
PoliciesApi.prototype.policyServiceCorrectPolicy = function (requestParameters, options) {
|
|
1706
|
+
var _this = this;
|
|
1707
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceCorrectPolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1708
|
+
};
|
|
1709
|
+
/**
|
|
1710
|
+
*
|
|
1711
|
+
* @summary Creates a policy, standalone or as a member of a group policy.
|
|
1712
|
+
* @param {PoliciesApiPolicyServiceCreatePolicyRequest} requestParameters Request parameters.
|
|
1713
|
+
* @param {*} [options] Override http request option.
|
|
1714
|
+
* @throws {RequiredError}
|
|
1715
|
+
* @memberof PoliciesApi
|
|
1716
|
+
*/
|
|
1717
|
+
PoliciesApi.prototype.policyServiceCreatePolicy = function (requestParameters, options) {
|
|
1718
|
+
var _this = this;
|
|
1719
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceCreatePolicy(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1720
|
+
};
|
|
1721
|
+
/**
|
|
1722
|
+
*
|
|
1723
|
+
* @summary Detaches a member from its group policy and makes it a standalone policy.
|
|
1724
|
+
* @param {PoliciesApiPolicyServiceDetachPolicyRequest} requestParameters Request parameters.
|
|
1725
|
+
* @param {*} [options] Override http request option.
|
|
1726
|
+
* @throws {RequiredError}
|
|
1727
|
+
* @memberof PoliciesApi
|
|
1728
|
+
*/
|
|
1729
|
+
PoliciesApi.prototype.policyServiceDetachPolicy = function (requestParameters, options) {
|
|
1730
|
+
var _this = this;
|
|
1731
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceDetachPolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1732
|
+
};
|
|
1733
|
+
/**
|
|
1734
|
+
*
|
|
1735
|
+
* @summary Endorses a policy from a date on.
|
|
1736
|
+
* @param {PoliciesApiPolicyServiceEndorsePolicyRequest} requestParameters Request parameters.
|
|
1737
|
+
* @param {*} [options] Override http request option.
|
|
1738
|
+
* @throws {RequiredError}
|
|
1739
|
+
* @memberof PoliciesApi
|
|
1740
|
+
*/
|
|
1741
|
+
PoliciesApi.prototype.policyServiceEndorsePolicy = function (requestParameters, options) {
|
|
1742
|
+
var _this = this;
|
|
1743
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceEndorsePolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1744
|
+
};
|
|
1745
|
+
/**
|
|
1746
|
+
*
|
|
1747
|
+
* @summary Returns a policy\'s actual premium beside an estimate of its next premium.
|
|
1748
|
+
* @param {PoliciesApiPolicyServiceEstimatePolicyPremiumRequest} requestParameters Request parameters.
|
|
1749
|
+
* @param {*} [options] Override http request option.
|
|
1750
|
+
* @throws {RequiredError}
|
|
1751
|
+
* @memberof PoliciesApi
|
|
1752
|
+
*/
|
|
1753
|
+
PoliciesApi.prototype.policyServiceEstimatePolicyPremium = function (requestParameters, options) {
|
|
1754
|
+
var _this = this;
|
|
1755
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceEstimatePolicyPremium(requestParameters.code, requestParameters.validAt, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1756
|
+
};
|
|
1757
|
+
/**
|
|
1758
|
+
* TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
|
|
1759
|
+
* @summary Returns what a policy covered on the day of a loss.
|
|
1760
|
+
* @param {PoliciesApiPolicyServiceGetCoverageAtDateRequest} requestParameters Request parameters.
|
|
1761
|
+
* @param {*} [options] Override http request option.
|
|
1762
|
+
* @throws {RequiredError}
|
|
1763
|
+
* @memberof PoliciesApi
|
|
1764
|
+
*/
|
|
1765
|
+
PoliciesApi.prototype.policyServiceGetCoverageAtDate = function (requestParameters, options) {
|
|
1766
|
+
var _this = this;
|
|
1767
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1768
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceGetCoverageAtDate(requestParameters.policyCode, requestParameters.identifier, requestParameters.damageDate, requestParameters.asOf, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1769
|
+
};
|
|
1770
|
+
/**
|
|
1771
|
+
*
|
|
1772
|
+
* @summary Returns one policy at a point in business time and system time.
|
|
1773
|
+
* @param {PoliciesApiPolicyServiceGetPolicyRequest} requestParameters Request parameters.
|
|
1774
|
+
* @param {*} [options] Override http request option.
|
|
1775
|
+
* @throws {RequiredError}
|
|
1776
|
+
* @memberof PoliciesApi
|
|
1777
|
+
*/
|
|
1778
|
+
PoliciesApi.prototype.policyServiceGetPolicy = function (requestParameters, options) {
|
|
1779
|
+
var _this = this;
|
|
1780
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceGetPolicy(requestParameters.code, requestParameters.validAt, requestParameters.asOf, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1781
|
+
};
|
|
1782
|
+
/**
|
|
1783
|
+
*
|
|
1784
|
+
* @summary Returns the filter catalog of the policy list.
|
|
1785
|
+
* @param {PoliciesApiPolicyServiceGetPolicyFilterCatalogRequest} requestParameters Request parameters.
|
|
1786
|
+
* @param {*} [options] Override http request option.
|
|
1787
|
+
* @throws {RequiredError}
|
|
1788
|
+
* @memberof PoliciesApi
|
|
1789
|
+
*/
|
|
1790
|
+
PoliciesApi.prototype.policyServiceGetPolicyFilterCatalog = function (requestParameters, options) {
|
|
1791
|
+
var _this = this;
|
|
1792
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1793
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceGetPolicyFilterCatalog(requestParameters.tariffSlug, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1794
|
+
};
|
|
1795
|
+
/**
|
|
1796
|
+
*
|
|
1797
|
+
* @summary Returns who filled which partner role on a policy, and when.
|
|
1798
|
+
* @param {PoliciesApiPolicyServiceGetPolicyPartnerHistoryRequest} requestParameters Request parameters.
|
|
1799
|
+
* @param {*} [options] Override http request option.
|
|
1800
|
+
* @throws {RequiredError}
|
|
1801
|
+
* @memberof PoliciesApi
|
|
1802
|
+
*/
|
|
1803
|
+
PoliciesApi.prototype.policyServiceGetPolicyPartnerHistory = function (requestParameters, options) {
|
|
1804
|
+
var _this = this;
|
|
1805
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceGetPolicyPartnerHistory(requestParameters.code, requestParameters.asOf, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1806
|
+
};
|
|
1807
|
+
/**
|
|
1808
|
+
*
|
|
1809
|
+
* @summary Returns the schema that this policy\'s data is validated against.
|
|
1810
|
+
* @param {PoliciesApiPolicyServiceGetPolicySchemaRequest} requestParameters Request parameters.
|
|
1811
|
+
* @param {*} [options] Override http request option.
|
|
1812
|
+
* @throws {RequiredError}
|
|
1813
|
+
* @memberof PoliciesApi
|
|
1814
|
+
*/
|
|
1815
|
+
PoliciesApi.prototype.policyServiceGetPolicySchema = function (requestParameters, options) {
|
|
1816
|
+
var _this = this;
|
|
1817
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceGetPolicySchema(requestParameters.code, requestParameters.validAt, requestParameters.asOf, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1818
|
+
};
|
|
1819
|
+
/**
|
|
1820
|
+
*
|
|
1821
|
+
* @summary Returns the segments of a policy\'s timeline, ordered by business time.
|
|
1822
|
+
* @param {PoliciesApiPolicyServiceGetPolicyTimelineRequest} requestParameters Request parameters.
|
|
1823
|
+
* @param {*} [options] Override http request option.
|
|
1824
|
+
* @throws {RequiredError}
|
|
1825
|
+
* @memberof PoliciesApi
|
|
1826
|
+
*/
|
|
1827
|
+
PoliciesApi.prototype.policyServiceGetPolicyTimeline = function (requestParameters, options) {
|
|
1828
|
+
var _this = this;
|
|
1829
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceGetPolicyTimeline(requestParameters.code, requestParameters.asOf, requestParameters.includeSuperseded, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1830
|
+
};
|
|
1831
|
+
/**
|
|
1832
|
+
*
|
|
1833
|
+
* @summary Lists policies as they are valid today.
|
|
1834
|
+
* @param {PoliciesApiPolicyServiceListPoliciesRequest} requestParameters Request parameters.
|
|
1835
|
+
* @param {*} [options] Override http request option.
|
|
1836
|
+
* @throws {RequiredError}
|
|
1837
|
+
* @memberof PoliciesApi
|
|
1838
|
+
*/
|
|
1839
|
+
PoliciesApi.prototype.policyServiceListPolicies = function (requestParameters, options) {
|
|
1840
|
+
var _this = this;
|
|
1841
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1842
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceListPolicies(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1843
|
+
};
|
|
1844
|
+
/**
|
|
1845
|
+
*
|
|
1846
|
+
* @summary Suggests values for one filter field of the policy list.
|
|
1847
|
+
* @param {PoliciesApiPolicyServiceListPolicyFilterValuesRequest} requestParameters Request parameters.
|
|
1848
|
+
* @param {*} [options] Override http request option.
|
|
1849
|
+
* @throws {RequiredError}
|
|
1850
|
+
* @memberof PoliciesApi
|
|
1851
|
+
*/
|
|
1852
|
+
PoliciesApi.prototype.policyServiceListPolicyFilterValues = function (requestParameters, options) {
|
|
1853
|
+
var _this = this;
|
|
1854
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1855
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceListPolicyFilterValues(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1856
|
+
};
|
|
1857
|
+
/**
|
|
1858
|
+
* 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.
|
|
1859
|
+
* @summary Lists the timeslices of one policy, ordered by `validFrom`.
|
|
1860
|
+
* @param {PoliciesApiPolicyServiceListPolicySnapshotsRequest} requestParameters Request parameters.
|
|
1861
|
+
* @param {*} [options] Override http request option.
|
|
1862
|
+
* @throws {RequiredError}
|
|
1863
|
+
* @memberof PoliciesApi
|
|
1864
|
+
*/
|
|
1865
|
+
PoliciesApi.prototype.policyServiceListPolicySnapshots = function (requestParameters, options) {
|
|
1866
|
+
var _this = this;
|
|
1867
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1868
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceListPolicySnapshots(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1869
|
+
};
|
|
1870
|
+
/**
|
|
1871
|
+
*
|
|
1872
|
+
* @summary Lists the tariff versions a policy can be upgraded to.
|
|
1873
|
+
* @param {PoliciesApiPolicyServiceListPolicyUpgradeTargetsRequest} requestParameters Request parameters.
|
|
1874
|
+
* @param {*} [options] Override http request option.
|
|
1875
|
+
* @throws {RequiredError}
|
|
1876
|
+
* @memberof PoliciesApi
|
|
1877
|
+
*/
|
|
1878
|
+
PoliciesApi.prototype.policyServiceListPolicyUpgradeTargets = function (requestParameters, options) {
|
|
1879
|
+
var _this = this;
|
|
1880
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1881
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceListPolicyUpgradeTargets(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1882
|
+
};
|
|
1883
|
+
/**
|
|
1884
|
+
*
|
|
1885
|
+
* @summary Previews a correction without writing it.
|
|
1886
|
+
* @param {PoliciesApiPolicyServicePreviewPolicyCorrectionRequest} requestParameters Request parameters.
|
|
1887
|
+
* @param {*} [options] Override http request option.
|
|
1888
|
+
* @throws {RequiredError}
|
|
1889
|
+
* @memberof PoliciesApi
|
|
1890
|
+
*/
|
|
1891
|
+
PoliciesApi.prototype.policyServicePreviewPolicyCorrection = function (requestParameters, options) {
|
|
1892
|
+
var _this = this;
|
|
1893
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServicePreviewPolicyCorrection(requestParameters.code, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1894
|
+
};
|
|
1895
|
+
/**
|
|
1896
|
+
*
|
|
1897
|
+
* @summary Terminates a policy from a date on.
|
|
1898
|
+
* @param {PoliciesApiPolicyServiceTerminatePolicyRequest} requestParameters Request parameters.
|
|
1899
|
+
* @param {*} [options] Override http request option.
|
|
1900
|
+
* @throws {RequiredError}
|
|
1901
|
+
* @memberof PoliciesApi
|
|
1902
|
+
*/
|
|
1903
|
+
PoliciesApi.prototype.policyServiceTerminatePolicy = function (requestParameters, options) {
|
|
1904
|
+
var _this = this;
|
|
1905
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceTerminatePolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1906
|
+
};
|
|
1907
|
+
/**
|
|
1908
|
+
*
|
|
1909
|
+
* @summary Upgrades a policy to a newer tariff version.
|
|
1910
|
+
* @param {PoliciesApiPolicyServiceUpgradePolicyRequest} requestParameters Request parameters.
|
|
1911
|
+
* @param {*} [options] Override http request option.
|
|
1912
|
+
* @throws {RequiredError}
|
|
1913
|
+
* @memberof PoliciesApi
|
|
1914
|
+
*/
|
|
1915
|
+
PoliciesApi.prototype.policyServiceUpgradePolicy = function (requestParameters, options) {
|
|
1916
|
+
var _this = this;
|
|
1917
|
+
return (0, exports.PoliciesApiFp)(this.configuration).policyServiceUpgradePolicy(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1918
|
+
};
|
|
1919
|
+
return PoliciesApi;
|
|
1920
|
+
}(base_1.BaseAPI));
|
|
1921
|
+
exports.PoliciesApi = PoliciesApi;
|