@emilgroup/insurance-sdk-node 1.36.0 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -1
- package/README.md +2 -2
- package/api/lead-versions-api.ts +365 -0
- package/api/status-transition-rules-api.ts +803 -0
- package/api.ts +4 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/insured-object-types-api.d.ts +141 -0
- package/dist/api/insured-object-types-api.js +258 -0
- package/dist/api/insured-objects-api.d.ts +318 -0
- package/dist/api/insured-objects-api.js +539 -0
- package/dist/api/lead-statuses-api.d.ts +265 -0
- package/dist/api/lead-statuses-api.js +505 -0
- package/dist/api/lead-versions-api.d.ts +215 -0
- package/dist/api/lead-versions-api.js +361 -0
- package/dist/api/leads-api.d.ts +626 -0
- package/dist/api/leads-api.js +1024 -0
- package/dist/api/named-ranges-api.d.ts +376 -0
- package/dist/api/named-ranges-api.js +634 -0
- package/dist/api/policies-api.d.ts +722 -0
- package/dist/api/policies-api.js +1141 -0
- package/dist/api/premium-formulas-api.d.ts +433 -0
- package/dist/api/premium-formulas-api.js +727 -0
- package/dist/api/product-factors-api.d.ts +493 -0
- package/dist/api/product-factors-api.js +788 -0
- package/dist/api/product-fields-api.d.ts +477 -0
- package/dist/api/product-fields-api.js +757 -0
- package/dist/api/product-versions-api.d.ts +189 -0
- package/dist/api/product-versions-api.js +346 -0
- package/dist/api/products-api.d.ts +485 -0
- package/dist/api/products-api.js +772 -0
- package/dist/api/status-transition-rules-api.d.ts +451 -0
- package/dist/api/status-transition-rules-api.js +739 -0
- package/dist/api.d.ts +25 -0
- package/dist/api.js +43 -0
- package/dist/base.d.ts +78 -0
- package/dist/base.js +394 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/activate-policy-request-dto.d.ts +24 -0
- package/{models/delete-request-dto.ts → dist/models/activate-policy-request-dto.js} +2 -17
- package/dist/models/activate-policy-response-class.d.ts +25 -0
- package/dist/models/activate-policy-response-class.js +15 -0
- package/dist/models/calculate-custom-premium-request-dto.d.ts +35 -0
- package/dist/models/calculate-custom-premium-request-dto.js +20 -0
- package/dist/models/calculate-premium-request-dto.d.ts +38 -0
- package/dist/models/calculate-premium-request-dto.js +15 -0
- package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
- package/dist/models/calculate-product-fields-request-dto.js +15 -0
- package/dist/models/clone-product-version-request-dto.d.ts +36 -0
- package/dist/models/clone-product-version-request-dto.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +120 -0
- package/dist/models/create-account-request-dto.js +26 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-custom-application-request-dto.d.ts +41 -0
- package/dist/models/create-custom-application-request-dto.js +20 -0
- package/dist/models/create-dummy-policy-request-dto.d.ts +44 -0
- package/dist/models/create-dummy-policy-request-dto.js +15 -0
- package/dist/models/create-insured-object-request-dto.d.ts +60 -0
- package/dist/models/create-insured-object-request-dto.js +15 -0
- package/dist/models/create-insured-object-response-class.d.ts +25 -0
- package/dist/models/create-insured-object-response-class.js +15 -0
- package/dist/models/create-lead-async-response-class.d.ts +24 -0
- package/dist/models/create-lead-async-response-class.js +15 -0
- package/dist/models/create-lead-policy-request-dto.d.ts +56 -0
- package/dist/models/create-lead-policy-request-dto.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +96 -0
- package/dist/models/create-lead-request-dto.js +15 -0
- package/dist/models/create-lead-response-class.d.ts +25 -0
- package/dist/models/create-lead-response-class.js +15 -0
- package/dist/models/create-lead-status-request-dto.d.ts +30 -0
- package/dist/models/create-lead-status-request-dto.js +15 -0
- package/dist/models/create-lead-status-response-class.d.ts +25 -0
- package/dist/models/create-lead-status-response-class.js +15 -0
- package/dist/models/create-named-range-request-dto.d.ts +55 -0
- package/dist/models/create-named-range-request-dto.js +15 -0
- package/dist/models/create-named-range-response-class.d.ts +25 -0
- package/dist/models/create-named-range-response-class.js +15 -0
- package/dist/models/create-named-request-s3-data-class.d.ts +30 -0
- package/dist/models/create-named-request-s3-data-class.js +15 -0
- package/dist/models/create-payment-method-request-dto.d.ts +31 -0
- package/dist/models/create-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-request-dto.d.ts +62 -0
- package/dist/models/create-policy-request-dto.js +15 -0
- package/dist/models/create-policy-response-class.d.ts +25 -0
- package/dist/models/create-policy-response-class.js +15 -0
- package/dist/models/create-premium-formula-request-dto.d.ts +105 -0
- package/dist/models/create-premium-formula-request-dto.js +39 -0
- package/dist/models/create-premium-formula-response-class.d.ts +25 -0
- package/dist/models/create-premium-formula-response-class.js +15 -0
- package/dist/models/create-product-field-request-dto.d.ts +137 -0
- package/dist/models/create-product-field-request-dto.js +20 -0
- package/dist/models/create-product-field-response-class.d.ts +25 -0
- package/dist/models/create-product-field-response-class.js +15 -0
- package/dist/models/create-product-request-dto.d.ts +85 -0
- package/dist/models/create-product-request-dto.js +51 -0
- package/dist/models/create-product-response-class.d.ts +25 -0
- package/dist/models/create-product-response-class.js +15 -0
- package/dist/models/create-status-transition-rule-request-dto.d.ts +47 -0
- package/dist/models/create-status-transition-rule-request-dto.js +20 -0
- package/dist/models/create-status-transition-rule-response-class.d.ts +25 -0
- package/dist/models/create-status-transition-rule-response-class.js +15 -0
- package/dist/models/csv-product-factor-dto.d.ts +48 -0
- package/dist/models/csv-product-factor-dto.js +15 -0
- package/dist/models/delete-response-class.d.ts +24 -0
- package/dist/models/delete-response-class.js +15 -0
- package/dist/models/empty-response-class.d.ts +24 -0
- package/dist/models/empty-response-class.js +15 -0
- package/dist/models/get-insured-object-response-class.d.ts +25 -0
- package/dist/models/get-insured-object-response-class.js +15 -0
- package/dist/models/get-lead-response-class.d.ts +25 -0
- package/dist/models/get-lead-response-class.js +15 -0
- package/dist/models/get-lead-status-response-class.d.ts +25 -0
- package/dist/models/get-lead-status-response-class.js +15 -0
- package/dist/models/get-lead-version-request-dto.d.ts +30 -0
- package/dist/models/get-lead-version-request-dto.js +15 -0
- package/dist/models/get-lead-version-response-class.d.ts +25 -0
- package/dist/models/get-lead-version-response-class.js +15 -0
- package/dist/models/get-named-range-response-class.d.ts +25 -0
- package/dist/models/get-named-range-response-class.js +15 -0
- package/dist/models/get-policy-data-by-date-request-dto.d.ts +30 -0
- package/dist/models/get-policy-data-by-date-request-dto.js +15 -0
- package/dist/models/get-policy-request-dto.d.ts +30 -0
- package/dist/models/get-policy-request-dto.js +15 -0
- package/dist/models/get-policy-response-class.d.ts +25 -0
- package/dist/models/get-policy-response-class.js +15 -0
- package/dist/models/get-premium-formula-request-dto.d.ts +24 -0
- package/dist/models/get-premium-formula-request-dto.js +15 -0
- package/dist/models/get-premium-formula-response-class.d.ts +25 -0
- package/dist/models/get-premium-formula-response-class.js +15 -0
- package/dist/models/get-product-factor-response-class.d.ts +32 -0
- package/dist/models/get-product-factor-response-class.js +15 -0
- package/dist/models/get-product-factor-value-request-dto.d.ts +42 -0
- package/dist/models/get-product-factor-value-request-dto.js +15 -0
- package/dist/models/get-product-factor-value-response-class.d.ts +25 -0
- package/dist/models/get-product-factor-value-response-class.js +15 -0
- package/dist/models/get-product-factors-for-version-request-dto.d.ts +36 -0
- package/dist/models/get-product-factors-for-version-request-dto.js +15 -0
- package/dist/models/get-product-factors-for-version-response-class.d.ts +25 -0
- package/dist/models/get-product-factors-for-version-response-class.js +15 -0
- package/dist/models/get-product-field-request-dto.d.ts +24 -0
- package/dist/models/get-product-field-request-dto.js +15 -0
- package/dist/models/get-product-field-response-class.d.ts +25 -0
- package/dist/models/get-product-field-response-class.js +15 -0
- package/dist/models/get-product-request-dto.d.ts +42 -0
- package/dist/models/get-product-request-dto.js +15 -0
- package/dist/models/get-product-response-class.d.ts +25 -0
- package/dist/models/get-product-response-class.js +15 -0
- package/dist/models/get-product-version-request-dto.d.ts +36 -0
- package/dist/models/get-product-version-request-dto.js +15 -0
- package/dist/models/get-product-version-response-class.d.ts +25 -0
- package/dist/models/get-product-version-response-class.js +15 -0
- package/dist/models/get-status-transition-rule-response-class.d.ts +25 -0
- package/dist/models/get-status-transition-rule-response-class.js +15 -0
- package/dist/models/grouped-product-factor-class.d.ts +37 -0
- package/dist/models/grouped-product-factor-class.js +15 -0
- package/dist/models/grouped-product-factor-value-class.d.ts +42 -0
- package/dist/models/grouped-product-factor-value-class.js +15 -0
- package/dist/models/grouped-product-factors-response-class.d.ts +25 -0
- package/dist/models/grouped-product-factors-response-class.js +15 -0
- package/dist/models/grpc-patch-lead-request-dto.d.ts +102 -0
- package/dist/models/grpc-patch-lead-request-dto.js +15 -0
- package/dist/models/grpc-update-lead-request-dto.d.ts +102 -0
- package/dist/models/grpc-update-lead-request-dto.js +15 -0
- package/dist/models/index.d.ts +147 -0
- package/dist/models/index.js +163 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/insured-object-class.d.ts +85 -0
- package/dist/models/insured-object-class.js +15 -0
- package/dist/models/insured-object-type-class.d.ts +48 -0
- package/dist/models/insured-object-type-class.js +15 -0
- package/dist/models/invoice-item-class.d.ts +117 -0
- package/dist/models/invoice-item-class.js +24 -0
- package/dist/models/invoice-status-class.d.ts +47 -0
- package/dist/models/invoice-status-class.js +20 -0
- package/dist/models/lead-bank-account-class.d.ts +30 -0
- package/dist/models/lead-bank-account-class.js +15 -0
- package/dist/models/lead-class.d.ts +139 -0
- package/dist/models/lead-class.js +15 -0
- package/dist/models/lead-status-class.d.ts +36 -0
- package/dist/models/lead-status-class.js +15 -0
- package/dist/models/list-insured-object-types-response-class.d.ts +31 -0
- package/dist/models/list-insured-object-types-response-class.js +15 -0
- package/dist/models/list-insured-objects-response-class.d.ts +31 -0
- package/dist/models/list-insured-objects-response-class.js +15 -0
- package/dist/models/list-lead-statuses-response-class.d.ts +31 -0
- package/dist/models/list-lead-statuses-response-class.js +15 -0
- package/dist/models/list-lead-versions-response-class.d.ts +31 -0
- package/dist/models/list-lead-versions-response-class.js +15 -0
- package/dist/models/list-leads-response-class.d.ts +43 -0
- package/dist/models/list-leads-response-class.js +15 -0
- package/dist/models/list-named-ranges-response-class.d.ts +30 -0
- package/dist/models/list-named-ranges-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +43 -0
- package/dist/models/list-policies-response-class.js +15 -0
- package/dist/models/list-premium-formulas-response-class.d.ts +31 -0
- package/dist/models/list-premium-formulas-response-class.js +15 -0
- package/dist/models/list-product-factors-response-class.d.ts +31 -0
- package/dist/models/list-product-factors-response-class.js +15 -0
- package/dist/models/list-product-field-types-response-class.d.ts +31 -0
- package/dist/models/list-product-field-types-response-class.js +15 -0
- package/dist/models/list-product-fields-response-class.d.ts +31 -0
- package/dist/models/list-product-fields-response-class.js +15 -0
- package/dist/models/list-products-response-class.d.ts +31 -0
- package/dist/models/list-products-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/list-status-transition-rules-response-class.d.ts +31 -0
- package/dist/models/list-status-transition-rules-response-class.js +15 -0
- package/dist/models/named-range-class.d.ts +78 -0
- package/dist/models/named-range-class.js +15 -0
- package/dist/models/patch-lead-request-dto.d.ts +90 -0
- package/dist/models/patch-lead-request-dto.js +15 -0
- package/dist/models/patch-lead-response-class.d.ts +25 -0
- package/dist/models/patch-lead-response-class.js +15 -0
- package/dist/models/patch-policy-request-dto.d.ts +56 -0
- package/dist/models/patch-policy-request-dto.js +15 -0
- package/dist/models/patch-policy-response-class.d.ts +25 -0
- package/dist/models/patch-policy-response-class.js +15 -0
- package/dist/models/patch-status-transition-rule-request-dto.d.ts +53 -0
- package/dist/models/patch-status-transition-rule-request-dto.js +20 -0
- package/dist/models/patch-status-transition-rule-response-class.d.ts +25 -0
- package/dist/models/patch-status-transition-rule-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +128 -0
- package/dist/models/policy-class.js +15 -0
- package/dist/models/policy-object-class.d.ts +60 -0
- package/dist/models/policy-object-class.js +15 -0
- package/dist/models/policy-object-dto.d.ts +42 -0
- package/dist/models/policy-object-dto.js +15 -0
- package/dist/models/policy-premium-class.d.ts +49 -0
- package/dist/models/policy-premium-class.js +15 -0
- package/dist/models/policy-premium-item-class.d.ts +55 -0
- package/dist/models/policy-premium-item-class.js +15 -0
- package/dist/models/policy-version-class.d.ts +55 -0
- package/dist/models/policy-version-class.js +15 -0
- package/dist/models/premium-formula-class.d.ts +96 -0
- package/dist/models/premium-formula-class.js +15 -0
- package/dist/models/premium-override-dto.d.ts +55 -0
- package/dist/models/premium-override-dto.js +27 -0
- package/dist/models/premium-override-request-class.d.ts +25 -0
- package/dist/models/premium-override-request-class.js +15 -0
- package/dist/models/premium-override-request-dto.d.ts +25 -0
- package/dist/models/premium-override-request-dto.js +15 -0
- package/dist/models/product-class.d.ts +80 -0
- package/dist/models/product-class.js +15 -0
- package/dist/models/product-factor-class.d.ts +61 -0
- package/dist/models/product-factor-class.js +15 -0
- package/dist/models/product-factor-for-version-class.d.ts +61 -0
- package/dist/models/product-factor-for-version-class.js +15 -0
- package/dist/models/product-factor-value-class.d.ts +60 -0
- package/dist/models/product-factor-value-class.js +15 -0
- package/dist/models/product-factor-value-for-version-class.d.ts +42 -0
- package/dist/models/product-factor-value-for-version-class.js +15 -0
- package/dist/models/product-field-class.d.ts +132 -0
- package/dist/models/product-field-class.js +15 -0
- package/dist/models/product-field-type-class.d.ts +48 -0
- package/dist/models/product-field-type-class.js +15 -0
- package/dist/models/product-version-class.d.ts +61 -0
- package/dist/models/product-version-class.js +22 -0
- package/dist/models/sepa-dto.d.ts +30 -0
- package/dist/models/sepa-dto.js +15 -0
- package/dist/models/shared-create-lead-policy-request-dto.d.ts +56 -0
- package/dist/models/shared-create-lead-policy-request-dto.js +15 -0
- package/dist/models/shared-invoice-class.d.ts +150 -0
- package/dist/models/shared-invoice-class.js +30 -0
- package/dist/models/shared-lead-policy-object-dto.d.ts +42 -0
- package/dist/models/shared-lead-policy-object-dto.js +15 -0
- package/dist/models/shared-product-field-class.d.ts +132 -0
- package/dist/models/shared-product-field-class.js +15 -0
- package/dist/models/shared-update-named-range-request-dto.d.ts +42 -0
- package/dist/models/shared-update-named-range-request-dto.js +15 -0
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +111 -0
- package/dist/models/shared-update-premium-formula-request-dto.js +39 -0
- package/dist/models/status-transition-rule-class.d.ts +66 -0
- package/dist/models/status-transition-rule-class.js +15 -0
- package/dist/models/store-product-factors-request-dto.d.ts +31 -0
- package/dist/models/store-product-factors-request-dto.js +15 -0
- package/dist/models/store-product-factors-response-class.d.ts +25 -0
- package/dist/models/store-product-factors-response-class.js +15 -0
- package/dist/models/suspend-policy-request-dto.d.ts +24 -0
- package/dist/models/suspend-policy-request-dto.js +15 -0
- package/dist/models/suspend-policy-response-class.d.ts +25 -0
- package/dist/models/suspend-policy-response-class.js +15 -0
- package/dist/models/swap-premium-formulas-order-request-dto.d.ts +30 -0
- package/dist/models/swap-premium-formulas-order-request-dto.js +15 -0
- package/dist/models/terminate-policy-request-dto.d.ts +44 -0
- package/dist/models/terminate-policy-request-dto.js +29 -0
- package/dist/models/terminate-policy-response-class.d.ts +25 -0
- package/dist/models/terminate-policy-response-class.js +15 -0
- package/dist/models/timeslice-class.d.ts +62 -0
- package/dist/models/timeslice-class.js +15 -0
- package/dist/models/update-insured-object-request-dto.d.ts +66 -0
- package/dist/models/update-insured-object-request-dto.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +90 -0
- package/dist/models/update-lead-request-dto.js +15 -0
- package/dist/models/update-lead-response-class.d.ts +25 -0
- package/dist/models/update-lead-response-class.js +15 -0
- package/dist/models/update-named-range-request-dto.d.ts +36 -0
- package/dist/models/update-named-range-request-dto.js +15 -0
- package/dist/models/update-named-range-response-class.d.ts +25 -0
- package/dist/models/update-named-range-response-class.js +15 -0
- package/dist/models/update-policy-request-dto.d.ts +76 -0
- package/dist/models/update-policy-request-dto.js +23 -0
- package/dist/models/update-policy-response-class.d.ts +25 -0
- package/dist/models/update-policy-response-class.js +15 -0
- package/dist/models/update-premium-formula-request-dto.d.ts +105 -0
- package/dist/models/update-premium-formula-request-dto.js +39 -0
- package/dist/models/update-premium-formula-response-class.d.ts +25 -0
- package/dist/models/update-premium-formula-response-class.js +15 -0
- package/dist/models/update-product-field-request-dto.d.ts +143 -0
- package/dist/models/update-product-field-request-dto.js +20 -0
- package/dist/models/update-product-field-response-class.d.ts +25 -0
- package/dist/models/update-product-field-response-class.js +15 -0
- package/dist/models/update-product-request-dto.d.ts +42 -0
- package/dist/models/update-product-request-dto.js +15 -0
- package/dist/models/update-product-response-class.d.ts +25 -0
- package/dist/models/update-product-response-class.js +15 -0
- package/dist/models/update-product-version-request-dto.d.ts +43 -0
- package/dist/models/update-product-version-request-dto.js +22 -0
- package/dist/models/update-product-version-response-class.d.ts +25 -0
- package/dist/models/update-product-version-response-class.js +15 -0
- package/dist/models/update-status-transition-rule-request-dto.d.ts +53 -0
- package/dist/models/update-status-transition-rule-request-dto.js +20 -0
- package/dist/models/update-status-transition-rule-response-class.d.ts +25 -0
- package/dist/models/update-status-transition-rule-response-class.js +15 -0
- package/dist/models/uploaded-document-dto.d.ts +24 -0
- package/dist/models/uploaded-document-dto.js +15 -0
- package/dist/models/validate-product-factors-request-dto.d.ts +31 -0
- package/dist/models/validate-product-factors-request-dto.js +15 -0
- package/dist/models/withdraw-policy-response-class.d.ts +25 -0
- package/dist/models/withdraw-policy-response-class.js +15 -0
- package/models/create-status-transition-rule-request-dto.ts +56 -0
- package/models/create-status-transition-rule-response-class.ts +31 -0
- package/models/get-lead-version-request-dto.ts +36 -0
- package/models/get-lead-version-response-class.ts +31 -0
- package/models/get-status-transition-rule-response-class.ts +31 -0
- package/models/index.ts +12 -1
- package/models/lead-class.ts +6 -0
- package/models/list-lead-versions-response-class.ts +37 -0
- package/models/list-status-transition-rules-response-class.ts +37 -0
- package/models/patch-policy-request-dto.ts +6 -0
- package/models/patch-status-transition-rule-request-dto.ts +62 -0
- package/models/patch-status-transition-rule-response-class.ts +31 -0
- package/models/product-field-class.ts +1 -1
- package/models/shared-product-field-class.ts +1 -1
- package/models/status-transition-rule-class.ts +72 -0
- package/models/update-status-transition-rule-request-dto.ts +62 -0
- package/models/update-status-transition-rule-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,803 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateStatusTransitionRuleRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateStatusTransitionRuleResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { GetStatusTransitionRuleResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListStatusTransitionRulesResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { PatchStatusTransitionRuleRequestDto } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { PatchStatusTransitionRuleResponseClass } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { UpdateStatusTransitionRuleRequestDto } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { UpdateStatusTransitionRuleResponseClass } from '../models';
|
|
41
|
+
// URLSearchParams not necessarily used
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
import { URL, URLSearchParams } from 'url';
|
|
44
|
+
const FormData = require('form-data');
|
|
45
|
+
/**
|
|
46
|
+
* StatusTransitionRulesApi - axios parameter creator
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export const StatusTransitionRulesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
50
|
+
return {
|
|
51
|
+
/**
|
|
52
|
+
* This will create a status transition rule. Status transition rules allow or deny a transition from one status to another based on custom conditions.
|
|
53
|
+
* @summary Create the status transition rule
|
|
54
|
+
* @param {CreateStatusTransitionRuleRequestDto} createStatusTransitionRuleRequestDto
|
|
55
|
+
* @param {string} [authorization] Bearer Token
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
createStatusTransitionRule: async (createStatusTransitionRuleRequestDto: CreateStatusTransitionRuleRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
60
|
+
// verify required parameter 'createStatusTransitionRuleRequestDto' is not null or undefined
|
|
61
|
+
assertParamExists('createStatusTransitionRule', 'createStatusTransitionRuleRequestDto', createStatusTransitionRuleRequestDto)
|
|
62
|
+
const localVarPath = `/insuranceservice/v1/status-transitions/rules`;
|
|
63
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
64
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
65
|
+
let baseOptions;
|
|
66
|
+
let baseAccessToken;
|
|
67
|
+
if (configuration) {
|
|
68
|
+
baseOptions = configuration.baseOptions;
|
|
69
|
+
baseAccessToken = configuration.accessToken;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
73
|
+
const localVarHeaderParameter = {} as any;
|
|
74
|
+
const localVarQueryParameter = {} as any;
|
|
75
|
+
|
|
76
|
+
// authentication bearer required
|
|
77
|
+
// http bearer authentication required
|
|
78
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
79
|
+
|
|
80
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
81
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
87
|
+
|
|
88
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
91
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createStatusTransitionRuleRequestDto, localVarRequestOptions, configuration)
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
url: toPathString(localVarUrlObj),
|
|
95
|
+
options: localVarRequestOptions,
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* Permanently deletes the status transition rule. Supply the unique code that was returned when you created the status transition rule and this will delete it.
|
|
100
|
+
* @summary Delete the status transition rule
|
|
101
|
+
* @param {string} code
|
|
102
|
+
* @param {string} [authorization] Bearer Token
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
deleteStatusTransitionRule: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
+
// verify required parameter 'code' is not null or undefined
|
|
108
|
+
assertParamExists('deleteStatusTransitionRule', 'code', code)
|
|
109
|
+
const localVarPath = `/insuranceservice/v1/status-transitions/rules/{code}`
|
|
110
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
111
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
113
|
+
let baseOptions;
|
|
114
|
+
let baseAccessToken;
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
121
|
+
const localVarHeaderParameter = {} as any;
|
|
122
|
+
const localVarQueryParameter = {} as any;
|
|
123
|
+
|
|
124
|
+
// authentication bearer required
|
|
125
|
+
// http bearer authentication required
|
|
126
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
127
|
+
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
url: toPathString(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
145
|
+
* @summary Retrieve the status transition rule
|
|
146
|
+
* @param {string} code Unique identifier for the object.
|
|
147
|
+
* @param {string} [authorization] Bearer Token
|
|
148
|
+
* @param {string} [expand]
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
getStatusTransitionRule: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
153
|
+
// verify required parameter 'code' is not null or undefined
|
|
154
|
+
assertParamExists('getStatusTransitionRule', 'code', code)
|
|
155
|
+
const localVarPath = `/insuranceservice/v1/status-transitions/rules/{code}`
|
|
156
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
157
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
158
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
159
|
+
let baseOptions;
|
|
160
|
+
let baseAccessToken;
|
|
161
|
+
if (configuration) {
|
|
162
|
+
baseOptions = configuration.baseOptions;
|
|
163
|
+
baseAccessToken = configuration.accessToken;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
167
|
+
const localVarHeaderParameter = {} as any;
|
|
168
|
+
const localVarQueryParameter = {} as any;
|
|
169
|
+
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
173
|
+
|
|
174
|
+
if (expand !== undefined) {
|
|
175
|
+
localVarQueryParameter['expand'] = expand;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
url: toPathString(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* Returns a list of status transition rules you have previously created. The status transition rules are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
195
|
+
* @summary List status transition rules
|
|
196
|
+
* @param {string} [authorization] Bearer Token
|
|
197
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
198
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
199
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
200
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
201
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
202
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
listStatusTransitionRules: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
207
|
+
const localVarPath = `/insuranceservice/v1/status-transitions/rules`;
|
|
208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
210
|
+
let baseOptions;
|
|
211
|
+
let baseAccessToken;
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
baseAccessToken = configuration.accessToken;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
218
|
+
const localVarHeaderParameter = {} as any;
|
|
219
|
+
const localVarQueryParameter = {} as any;
|
|
220
|
+
|
|
221
|
+
// authentication bearer required
|
|
222
|
+
// http bearer authentication required
|
|
223
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
224
|
+
|
|
225
|
+
if (pageSize !== undefined) {
|
|
226
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
if (pageToken !== undefined) {
|
|
230
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
if (filter !== undefined) {
|
|
234
|
+
localVarQueryParameter['filter'] = filter;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if (search !== undefined) {
|
|
238
|
+
localVarQueryParameter['search'] = search;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if (order !== undefined) {
|
|
242
|
+
localVarQueryParameter['order'] = order;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if (expand !== undefined) {
|
|
246
|
+
localVarQueryParameter['expand'] = expand;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
250
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
256
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
257
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
258
|
+
|
|
259
|
+
return {
|
|
260
|
+
url: toPathString(localVarUrlObj),
|
|
261
|
+
options: localVarRequestOptions,
|
|
262
|
+
};
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
266
|
+
* @summary Patch the status transition rule
|
|
267
|
+
* @param {string} code Unique identifier for the object.
|
|
268
|
+
* @param {PatchStatusTransitionRuleRequestDto} patchStatusTransitionRuleRequestDto
|
|
269
|
+
* @param {string} [authorization] Bearer Token
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
patchStatusTransitionRule: async (code: string, patchStatusTransitionRuleRequestDto: PatchStatusTransitionRuleRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
274
|
+
// verify required parameter 'code' is not null or undefined
|
|
275
|
+
assertParamExists('patchStatusTransitionRule', 'code', code)
|
|
276
|
+
// verify required parameter 'patchStatusTransitionRuleRequestDto' is not null or undefined
|
|
277
|
+
assertParamExists('patchStatusTransitionRule', 'patchStatusTransitionRuleRequestDto', patchStatusTransitionRuleRequestDto)
|
|
278
|
+
const localVarPath = `/insuranceservice/v1/status-transitions/rules/{code}`
|
|
279
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
282
|
+
let baseOptions;
|
|
283
|
+
let baseAccessToken;
|
|
284
|
+
if (configuration) {
|
|
285
|
+
baseOptions = configuration.baseOptions;
|
|
286
|
+
baseAccessToken = configuration.accessToken;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
290
|
+
const localVarHeaderParameter = {} as any;
|
|
291
|
+
const localVarQueryParameter = {} as any;
|
|
292
|
+
|
|
293
|
+
// authentication bearer required
|
|
294
|
+
// http bearer authentication required
|
|
295
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
296
|
+
|
|
297
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
298
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
304
|
+
|
|
305
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
306
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
308
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchStatusTransitionRuleRequestDto, localVarRequestOptions, configuration)
|
|
309
|
+
|
|
310
|
+
return {
|
|
311
|
+
url: toPathString(localVarUrlObj),
|
|
312
|
+
options: localVarRequestOptions,
|
|
313
|
+
};
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
317
|
+
* @summary Update the status transition rule
|
|
318
|
+
* @param {string} code Unique identifier for the object.
|
|
319
|
+
* @param {UpdateStatusTransitionRuleRequestDto} updateStatusTransitionRuleRequestDto
|
|
320
|
+
* @param {string} [authorization] Bearer Token
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
updateStatusTransitionRule: async (code: string, updateStatusTransitionRuleRequestDto: UpdateStatusTransitionRuleRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
325
|
+
// verify required parameter 'code' is not null or undefined
|
|
326
|
+
assertParamExists('updateStatusTransitionRule', 'code', code)
|
|
327
|
+
// verify required parameter 'updateStatusTransitionRuleRequestDto' is not null or undefined
|
|
328
|
+
assertParamExists('updateStatusTransitionRule', 'updateStatusTransitionRuleRequestDto', updateStatusTransitionRuleRequestDto)
|
|
329
|
+
const localVarPath = `/insuranceservice/v1/status-transitions/rules/{code}`
|
|
330
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
331
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
332
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
333
|
+
let baseOptions;
|
|
334
|
+
let baseAccessToken;
|
|
335
|
+
if (configuration) {
|
|
336
|
+
baseOptions = configuration.baseOptions;
|
|
337
|
+
baseAccessToken = configuration.accessToken;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
341
|
+
const localVarHeaderParameter = {} as any;
|
|
342
|
+
const localVarQueryParameter = {} as any;
|
|
343
|
+
|
|
344
|
+
// authentication bearer required
|
|
345
|
+
// http bearer authentication required
|
|
346
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
347
|
+
|
|
348
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
349
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
355
|
+
|
|
356
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
358
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
359
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateStatusTransitionRuleRequestDto, localVarRequestOptions, configuration)
|
|
360
|
+
|
|
361
|
+
return {
|
|
362
|
+
url: toPathString(localVarUrlObj),
|
|
363
|
+
options: localVarRequestOptions,
|
|
364
|
+
};
|
|
365
|
+
},
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* StatusTransitionRulesApi - functional programming interface
|
|
371
|
+
* @export
|
|
372
|
+
*/
|
|
373
|
+
export const StatusTransitionRulesApiFp = function(configuration?: Configuration) {
|
|
374
|
+
const localVarAxiosParamCreator = StatusTransitionRulesApiAxiosParamCreator(configuration)
|
|
375
|
+
return {
|
|
376
|
+
/**
|
|
377
|
+
* This will create a status transition rule. Status transition rules allow or deny a transition from one status to another based on custom conditions.
|
|
378
|
+
* @summary Create the status transition rule
|
|
379
|
+
* @param {CreateStatusTransitionRuleRequestDto} createStatusTransitionRuleRequestDto
|
|
380
|
+
* @param {string} [authorization] Bearer Token
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
*/
|
|
384
|
+
async createStatusTransitionRule(createStatusTransitionRuleRequestDto: CreateStatusTransitionRuleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateStatusTransitionRuleResponseClass>> {
|
|
385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createStatusTransitionRule(createStatusTransitionRuleRequestDto, authorization, options);
|
|
386
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
* Permanently deletes the status transition rule. Supply the unique code that was returned when you created the status transition rule and this will delete it.
|
|
390
|
+
* @summary Delete the status transition rule
|
|
391
|
+
* @param {string} code
|
|
392
|
+
* @param {string} [authorization] Bearer Token
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
async deleteStatusTransitionRule(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStatusTransitionRule(code, authorization, options);
|
|
398
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
399
|
+
},
|
|
400
|
+
/**
|
|
401
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
402
|
+
* @summary Retrieve the status transition rule
|
|
403
|
+
* @param {string} code Unique identifier for the object.
|
|
404
|
+
* @param {string} [authorization] Bearer Token
|
|
405
|
+
* @param {string} [expand]
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
*/
|
|
409
|
+
async getStatusTransitionRule(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusTransitionRuleResponseClass>> {
|
|
410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStatusTransitionRule(code, authorization, expand, options);
|
|
411
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
412
|
+
},
|
|
413
|
+
/**
|
|
414
|
+
* Returns a list of status transition rules you have previously created. The status transition rules are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
415
|
+
* @summary List status transition rules
|
|
416
|
+
* @param {string} [authorization] Bearer Token
|
|
417
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
418
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
419
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
420
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
421
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
422
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
async listStatusTransitionRules(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusTransitionRulesResponseClass>> {
|
|
427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listStatusTransitionRules(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
428
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
429
|
+
},
|
|
430
|
+
/**
|
|
431
|
+
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
432
|
+
* @summary Patch the status transition rule
|
|
433
|
+
* @param {string} code Unique identifier for the object.
|
|
434
|
+
* @param {PatchStatusTransitionRuleRequestDto} patchStatusTransitionRuleRequestDto
|
|
435
|
+
* @param {string} [authorization] Bearer Token
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
*/
|
|
439
|
+
async patchStatusTransitionRule(code: string, patchStatusTransitionRuleRequestDto: PatchStatusTransitionRuleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusTransitionRuleResponseClass>> {
|
|
440
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatusTransitionRule(code, patchStatusTransitionRuleRequestDto, authorization, options);
|
|
441
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
442
|
+
},
|
|
443
|
+
/**
|
|
444
|
+
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
445
|
+
* @summary Update the status transition rule
|
|
446
|
+
* @param {string} code Unique identifier for the object.
|
|
447
|
+
* @param {UpdateStatusTransitionRuleRequestDto} updateStatusTransitionRuleRequestDto
|
|
448
|
+
* @param {string} [authorization] Bearer Token
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
async updateStatusTransitionRule(code: string, updateStatusTransitionRuleRequestDto: UpdateStatusTransitionRuleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateStatusTransitionRuleResponseClass>> {
|
|
453
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateStatusTransitionRule(code, updateStatusTransitionRuleRequestDto, authorization, options);
|
|
454
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
455
|
+
},
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* StatusTransitionRulesApi - factory interface
|
|
461
|
+
* @export
|
|
462
|
+
*/
|
|
463
|
+
export const StatusTransitionRulesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
464
|
+
const localVarFp = StatusTransitionRulesApiFp(configuration)
|
|
465
|
+
return {
|
|
466
|
+
/**
|
|
467
|
+
* This will create a status transition rule. Status transition rules allow or deny a transition from one status to another based on custom conditions.
|
|
468
|
+
* @summary Create the status transition rule
|
|
469
|
+
* @param {CreateStatusTransitionRuleRequestDto} createStatusTransitionRuleRequestDto
|
|
470
|
+
* @param {string} [authorization] Bearer Token
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
createStatusTransitionRule(createStatusTransitionRuleRequestDto: CreateStatusTransitionRuleRequestDto, authorization?: string, options?: any): AxiosPromise<CreateStatusTransitionRuleResponseClass> {
|
|
475
|
+
return localVarFp.createStatusTransitionRule(createStatusTransitionRuleRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
476
|
+
},
|
|
477
|
+
/**
|
|
478
|
+
* Permanently deletes the status transition rule. Supply the unique code that was returned when you created the status transition rule and this will delete it.
|
|
479
|
+
* @summary Delete the status transition rule
|
|
480
|
+
* @param {string} code
|
|
481
|
+
* @param {string} [authorization] Bearer Token
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
*/
|
|
485
|
+
deleteStatusTransitionRule(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
486
|
+
return localVarFp.deleteStatusTransitionRule(code, authorization, options).then((request) => request(axios, basePath));
|
|
487
|
+
},
|
|
488
|
+
/**
|
|
489
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
490
|
+
* @summary Retrieve the status transition rule
|
|
491
|
+
* @param {string} code Unique identifier for the object.
|
|
492
|
+
* @param {string} [authorization] Bearer Token
|
|
493
|
+
* @param {string} [expand]
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
getStatusTransitionRule(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetStatusTransitionRuleResponseClass> {
|
|
498
|
+
return localVarFp.getStatusTransitionRule(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
499
|
+
},
|
|
500
|
+
/**
|
|
501
|
+
* Returns a list of status transition rules you have previously created. The status transition rules are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
502
|
+
* @summary List status transition rules
|
|
503
|
+
* @param {string} [authorization] Bearer Token
|
|
504
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
505
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
506
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
507
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
508
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
509
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
listStatusTransitionRules(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListStatusTransitionRulesResponseClass> {
|
|
514
|
+
return localVarFp.listStatusTransitionRules(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
518
|
+
* @summary Patch the status transition rule
|
|
519
|
+
* @param {string} code Unique identifier for the object.
|
|
520
|
+
* @param {PatchStatusTransitionRuleRequestDto} patchStatusTransitionRuleRequestDto
|
|
521
|
+
* @param {string} [authorization] Bearer Token
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
patchStatusTransitionRule(code: string, patchStatusTransitionRuleRequestDto: PatchStatusTransitionRuleRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusTransitionRuleResponseClass> {
|
|
526
|
+
return localVarFp.patchStatusTransitionRule(code, patchStatusTransitionRuleRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
527
|
+
},
|
|
528
|
+
/**
|
|
529
|
+
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
530
|
+
* @summary Update the status transition rule
|
|
531
|
+
* @param {string} code Unique identifier for the object.
|
|
532
|
+
* @param {UpdateStatusTransitionRuleRequestDto} updateStatusTransitionRuleRequestDto
|
|
533
|
+
* @param {string} [authorization] Bearer Token
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
updateStatusTransitionRule(code: string, updateStatusTransitionRuleRequestDto: UpdateStatusTransitionRuleRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateStatusTransitionRuleResponseClass> {
|
|
538
|
+
return localVarFp.updateStatusTransitionRule(code, updateStatusTransitionRuleRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
539
|
+
},
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Request parameters for createStatusTransitionRule operation in StatusTransitionRulesApi.
|
|
545
|
+
* @export
|
|
546
|
+
* @interface StatusTransitionRulesApiCreateStatusTransitionRuleRequest
|
|
547
|
+
*/
|
|
548
|
+
export interface StatusTransitionRulesApiCreateStatusTransitionRuleRequest {
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @type {CreateStatusTransitionRuleRequestDto}
|
|
552
|
+
* @memberof StatusTransitionRulesApiCreateStatusTransitionRule
|
|
553
|
+
*/
|
|
554
|
+
readonly createStatusTransitionRuleRequestDto: CreateStatusTransitionRuleRequestDto
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Bearer Token
|
|
558
|
+
* @type {string}
|
|
559
|
+
* @memberof StatusTransitionRulesApiCreateStatusTransitionRule
|
|
560
|
+
*/
|
|
561
|
+
readonly authorization?: string
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Request parameters for deleteStatusTransitionRule operation in StatusTransitionRulesApi.
|
|
566
|
+
* @export
|
|
567
|
+
* @interface StatusTransitionRulesApiDeleteStatusTransitionRuleRequest
|
|
568
|
+
*/
|
|
569
|
+
export interface StatusTransitionRulesApiDeleteStatusTransitionRuleRequest {
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
* @type {string}
|
|
573
|
+
* @memberof StatusTransitionRulesApiDeleteStatusTransitionRule
|
|
574
|
+
*/
|
|
575
|
+
readonly code: string
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Bearer Token
|
|
579
|
+
* @type {string}
|
|
580
|
+
* @memberof StatusTransitionRulesApiDeleteStatusTransitionRule
|
|
581
|
+
*/
|
|
582
|
+
readonly authorization?: string
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Request parameters for getStatusTransitionRule operation in StatusTransitionRulesApi.
|
|
587
|
+
* @export
|
|
588
|
+
* @interface StatusTransitionRulesApiGetStatusTransitionRuleRequest
|
|
589
|
+
*/
|
|
590
|
+
export interface StatusTransitionRulesApiGetStatusTransitionRuleRequest {
|
|
591
|
+
/**
|
|
592
|
+
* Unique identifier for the object.
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof StatusTransitionRulesApiGetStatusTransitionRule
|
|
595
|
+
*/
|
|
596
|
+
readonly code: string
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Bearer Token
|
|
600
|
+
* @type {string}
|
|
601
|
+
* @memberof StatusTransitionRulesApiGetStatusTransitionRule
|
|
602
|
+
*/
|
|
603
|
+
readonly authorization?: string
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof StatusTransitionRulesApiGetStatusTransitionRule
|
|
609
|
+
*/
|
|
610
|
+
readonly expand?: string
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Request parameters for listStatusTransitionRules operation in StatusTransitionRulesApi.
|
|
615
|
+
* @export
|
|
616
|
+
* @interface StatusTransitionRulesApiListStatusTransitionRulesRequest
|
|
617
|
+
*/
|
|
618
|
+
export interface StatusTransitionRulesApiListStatusTransitionRulesRequest {
|
|
619
|
+
/**
|
|
620
|
+
* Bearer Token
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof StatusTransitionRulesApiListStatusTransitionRules
|
|
623
|
+
*/
|
|
624
|
+
readonly authorization?: string
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
628
|
+
* @type {any}
|
|
629
|
+
* @memberof StatusTransitionRulesApiListStatusTransitionRules
|
|
630
|
+
*/
|
|
631
|
+
readonly pageSize?: any
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
635
|
+
* @type {any}
|
|
636
|
+
* @memberof StatusTransitionRulesApiListStatusTransitionRules
|
|
637
|
+
*/
|
|
638
|
+
readonly pageToken?: any
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
642
|
+
* @type {any}
|
|
643
|
+
* @memberof StatusTransitionRulesApiListStatusTransitionRules
|
|
644
|
+
*/
|
|
645
|
+
readonly filter?: any
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
649
|
+
* @type {any}
|
|
650
|
+
* @memberof StatusTransitionRulesApiListStatusTransitionRules
|
|
651
|
+
*/
|
|
652
|
+
readonly search?: any
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
656
|
+
* @type {any}
|
|
657
|
+
* @memberof StatusTransitionRulesApiListStatusTransitionRules
|
|
658
|
+
*/
|
|
659
|
+
readonly order?: any
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
663
|
+
* @type {any}
|
|
664
|
+
* @memberof StatusTransitionRulesApiListStatusTransitionRules
|
|
665
|
+
*/
|
|
666
|
+
readonly expand?: any
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Request parameters for patchStatusTransitionRule operation in StatusTransitionRulesApi.
|
|
671
|
+
* @export
|
|
672
|
+
* @interface StatusTransitionRulesApiPatchStatusTransitionRuleRequest
|
|
673
|
+
*/
|
|
674
|
+
export interface StatusTransitionRulesApiPatchStatusTransitionRuleRequest {
|
|
675
|
+
/**
|
|
676
|
+
* Unique identifier for the object.
|
|
677
|
+
* @type {string}
|
|
678
|
+
* @memberof StatusTransitionRulesApiPatchStatusTransitionRule
|
|
679
|
+
*/
|
|
680
|
+
readonly code: string
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @type {PatchStatusTransitionRuleRequestDto}
|
|
685
|
+
* @memberof StatusTransitionRulesApiPatchStatusTransitionRule
|
|
686
|
+
*/
|
|
687
|
+
readonly patchStatusTransitionRuleRequestDto: PatchStatusTransitionRuleRequestDto
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Bearer Token
|
|
691
|
+
* @type {string}
|
|
692
|
+
* @memberof StatusTransitionRulesApiPatchStatusTransitionRule
|
|
693
|
+
*/
|
|
694
|
+
readonly authorization?: string
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Request parameters for updateStatusTransitionRule operation in StatusTransitionRulesApi.
|
|
699
|
+
* @export
|
|
700
|
+
* @interface StatusTransitionRulesApiUpdateStatusTransitionRuleRequest
|
|
701
|
+
*/
|
|
702
|
+
export interface StatusTransitionRulesApiUpdateStatusTransitionRuleRequest {
|
|
703
|
+
/**
|
|
704
|
+
* Unique identifier for the object.
|
|
705
|
+
* @type {string}
|
|
706
|
+
* @memberof StatusTransitionRulesApiUpdateStatusTransitionRule
|
|
707
|
+
*/
|
|
708
|
+
readonly code: string
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @type {UpdateStatusTransitionRuleRequestDto}
|
|
713
|
+
* @memberof StatusTransitionRulesApiUpdateStatusTransitionRule
|
|
714
|
+
*/
|
|
715
|
+
readonly updateStatusTransitionRuleRequestDto: UpdateStatusTransitionRuleRequestDto
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Bearer Token
|
|
719
|
+
* @type {string}
|
|
720
|
+
* @memberof StatusTransitionRulesApiUpdateStatusTransitionRule
|
|
721
|
+
*/
|
|
722
|
+
readonly authorization?: string
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* StatusTransitionRulesApi - object-oriented interface
|
|
727
|
+
* @export
|
|
728
|
+
* @class StatusTransitionRulesApi
|
|
729
|
+
* @extends {BaseAPI}
|
|
730
|
+
*/
|
|
731
|
+
export class StatusTransitionRulesApi extends BaseAPI {
|
|
732
|
+
/**
|
|
733
|
+
* This will create a status transition rule. Status transition rules allow or deny a transition from one status to another based on custom conditions.
|
|
734
|
+
* @summary Create the status transition rule
|
|
735
|
+
* @param {StatusTransitionRulesApiCreateStatusTransitionRuleRequest} requestParameters Request parameters.
|
|
736
|
+
* @param {*} [options] Override http request option.
|
|
737
|
+
* @throws {RequiredError}
|
|
738
|
+
* @memberof StatusTransitionRulesApi
|
|
739
|
+
*/
|
|
740
|
+
public createStatusTransitionRule(requestParameters: StatusTransitionRulesApiCreateStatusTransitionRuleRequest, options?: AxiosRequestConfig) {
|
|
741
|
+
return StatusTransitionRulesApiFp(this.configuration).createStatusTransitionRule(requestParameters.createStatusTransitionRuleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Permanently deletes the status transition rule. Supply the unique code that was returned when you created the status transition rule and this will delete it.
|
|
746
|
+
* @summary Delete the status transition rule
|
|
747
|
+
* @param {StatusTransitionRulesApiDeleteStatusTransitionRuleRequest} requestParameters Request parameters.
|
|
748
|
+
* @param {*} [options] Override http request option.
|
|
749
|
+
* @throws {RequiredError}
|
|
750
|
+
* @memberof StatusTransitionRulesApi
|
|
751
|
+
*/
|
|
752
|
+
public deleteStatusTransitionRule(requestParameters: StatusTransitionRulesApiDeleteStatusTransitionRuleRequest, options?: AxiosRequestConfig) {
|
|
753
|
+
return StatusTransitionRulesApiFp(this.configuration).deleteStatusTransitionRule(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
758
|
+
* @summary Retrieve the status transition rule
|
|
759
|
+
* @param {StatusTransitionRulesApiGetStatusTransitionRuleRequest} requestParameters Request parameters.
|
|
760
|
+
* @param {*} [options] Override http request option.
|
|
761
|
+
* @throws {RequiredError}
|
|
762
|
+
* @memberof StatusTransitionRulesApi
|
|
763
|
+
*/
|
|
764
|
+
public getStatusTransitionRule(requestParameters: StatusTransitionRulesApiGetStatusTransitionRuleRequest, options?: AxiosRequestConfig) {
|
|
765
|
+
return StatusTransitionRulesApiFp(this.configuration).getStatusTransitionRule(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Returns a list of status transition rules you have previously created. The status transition rules are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
770
|
+
* @summary List status transition rules
|
|
771
|
+
* @param {StatusTransitionRulesApiListStatusTransitionRulesRequest} requestParameters Request parameters.
|
|
772
|
+
* @param {*} [options] Override http request option.
|
|
773
|
+
* @throws {RequiredError}
|
|
774
|
+
* @memberof StatusTransitionRulesApi
|
|
775
|
+
*/
|
|
776
|
+
public listStatusTransitionRules(requestParameters: StatusTransitionRulesApiListStatusTransitionRulesRequest = {}, options?: AxiosRequestConfig) {
|
|
777
|
+
return StatusTransitionRulesApiFp(this.configuration).listStatusTransitionRules(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
782
|
+
* @summary Patch the status transition rule
|
|
783
|
+
* @param {StatusTransitionRulesApiPatchStatusTransitionRuleRequest} requestParameters Request parameters.
|
|
784
|
+
* @param {*} [options] Override http request option.
|
|
785
|
+
* @throws {RequiredError}
|
|
786
|
+
* @memberof StatusTransitionRulesApi
|
|
787
|
+
*/
|
|
788
|
+
public patchStatusTransitionRule(requestParameters: StatusTransitionRulesApiPatchStatusTransitionRuleRequest, options?: AxiosRequestConfig) {
|
|
789
|
+
return StatusTransitionRulesApiFp(this.configuration).patchStatusTransitionRule(requestParameters.code, requestParameters.patchStatusTransitionRuleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
794
|
+
* @summary Update the status transition rule
|
|
795
|
+
* @param {StatusTransitionRulesApiUpdateStatusTransitionRuleRequest} requestParameters Request parameters.
|
|
796
|
+
* @param {*} [options] Override http request option.
|
|
797
|
+
* @throws {RequiredError}
|
|
798
|
+
* @memberof StatusTransitionRulesApi
|
|
799
|
+
*/
|
|
800
|
+
public updateStatusTransitionRule(requestParameters: StatusTransitionRulesApiUpdateStatusTransitionRuleRequest, options?: AxiosRequestConfig) {
|
|
801
|
+
return StatusTransitionRulesApiFp(this.configuration).updateStatusTransitionRule(requestParameters.code, requestParameters.updateStatusTransitionRuleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
802
|
+
}
|
|
803
|
+
}
|