@vindentech/api-client 0.3.0-next.7 โ 0.3.0-next.73
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/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/generated/_all.d.ts +82 -0
- package/dist/generated/_all.d.ts.map +1 -1
- package/dist/generated/_all.js +82 -0
- package/dist/generated/_all.js.map +1 -1
- package/dist/generated/_permissions.d.ts +1512 -35
- package/dist/generated/_permissions.d.ts.map +1 -1
- package/dist/generated/_permissions.js +372 -1
- package/dist/generated/_permissions.js.map +1 -1
- package/dist/generated/account-credits/account-credits.d.ts +18 -17
- package/dist/generated/account-credits/account-credits.d.ts.map +1 -1
- package/dist/generated/account-credits/account-credits.js +28 -3
- package/dist/generated/account-credits/account-credits.js.map +1 -1
- package/dist/generated/addresses/addresses.d.ts +87 -0
- package/dist/generated/addresses/addresses.d.ts.map +1 -0
- package/dist/generated/addresses/addresses.js +100 -0
- package/dist/generated/addresses/addresses.js.map +1 -0
- package/dist/generated/articles/articles.d.ts +16 -15
- package/dist/generated/articles/articles.d.ts.map +1 -1
- package/dist/generated/articles/articles.js +37 -3
- package/dist/generated/articles/articles.js.map +1 -1
- package/dist/generated/billable-event-types/billable-event-types.d.ts +7 -6
- package/dist/generated/billable-event-types/billable-event-types.d.ts.map +1 -1
- package/dist/generated/billable-event-types/billable-event-types.js +4 -0
- package/dist/generated/billable-event-types/billable-event-types.js.map +1 -1
- package/dist/generated/billable-events/billable-events.d.ts +59 -0
- package/dist/generated/billable-events/billable-events.d.ts.map +1 -0
- package/dist/generated/billable-events/billable-events.js +61 -0
- package/dist/generated/billable-events/billable-events.js.map +1 -0
- package/dist/generated/billable-events-webhook/billable-events-webhook.d.ts +7 -6
- package/dist/generated/billable-events-webhook/billable-events-webhook.d.ts.map +1 -1
- package/dist/generated/billable-events-webhook/billable-events-webhook.js +14 -1
- package/dist/generated/billable-events-webhook/billable-events-webhook.js.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.d.ts +16 -15
- package/dist/generated/billing-accounts/billing-accounts.d.ts.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.js +37 -3
- package/dist/generated/billing-accounts/billing-accounts.js.map +1 -1
- package/dist/generated/billing-frequencies/billing-frequencies.d.ts +24 -0
- package/dist/generated/billing-frequencies/billing-frequencies.d.ts.map +1 -0
- package/dist/generated/billing-frequencies/billing-frequencies.js +23 -0
- package/dist/generated/billing-frequencies/billing-frequencies.js.map +1 -0
- package/dist/generated/billing-model-templates/billing-model-templates.d.ts +7 -6
- package/dist/generated/billing-model-templates/billing-model-templates.d.ts.map +1 -1
- package/dist/generated/billing-model-templates/billing-model-templates.js +4 -0
- package/dist/generated/billing-model-templates/billing-model-templates.js.map +1 -1
- package/dist/generated/binding-plans/binding-plans.d.ts +74 -10
- package/dist/generated/binding-plans/binding-plans.d.ts.map +1 -1
- package/dist/generated/binding-plans/binding-plans.js +91 -2
- package/dist/generated/binding-plans/binding-plans.js.map +1 -1
- package/dist/generated/bookings/bookings.d.ts +52 -0
- package/dist/generated/bookings/bookings.d.ts.map +1 -0
- package/dist/generated/bookings/bookings.js +55 -0
- package/dist/generated/bookings/bookings.js.map +1 -0
- package/dist/generated/capacity/capacity.d.ts +136 -0
- package/dist/generated/capacity/capacity.d.ts.map +1 -0
- package/dist/generated/capacity/capacity.js +175 -0
- package/dist/generated/capacity/capacity.js.map +1 -0
- package/dist/generated/carrier-bookings/carrier-bookings.d.ts +24 -0
- package/dist/generated/carrier-bookings/carrier-bookings.d.ts.map +1 -0
- package/dist/generated/carrier-bookings/carrier-bookings.js +23 -0
- package/dist/generated/carrier-bookings/carrier-bookings.js.map +1 -0
- package/dist/generated/carrier-methods/carrier-methods.d.ts +38 -0
- package/dist/generated/carrier-methods/carrier-methods.d.ts.map +1 -0
- package/dist/generated/carrier-methods/carrier-methods.js +41 -0
- package/dist/generated/carrier-methods/carrier-methods.js.map +1 -0
- package/dist/generated/carriers/carriers.d.ts +150 -0
- package/dist/generated/carriers/carriers.d.ts.map +1 -0
- package/dist/generated/carriers/carriers.js +196 -0
- package/dist/generated/carriers/carriers.js.map +1 -0
- package/dist/generated/carts/carts.d.ts +136 -0
- package/dist/generated/carts/carts.d.ts.map +1 -0
- package/dist/generated/carts/carts.js +183 -0
- package/dist/generated/carts/carts.js.map +1 -0
- package/dist/generated/categories/categories.d.ts +24 -0
- package/dist/generated/categories/categories.d.ts.map +1 -0
- package/dist/generated/categories/categories.js +16 -0
- package/dist/generated/categories/categories.js.map +1 -0
- package/dist/generated/check-in/check-in.d.ts +66 -0
- package/dist/generated/check-in/check-in.d.ts.map +1 -0
- package/dist/generated/check-in/check-in.js +102 -0
- package/dist/generated/check-in/check-in.js.map +1 -0
- package/dist/generated/checkout/checkout.d.ts +45 -0
- package/dist/generated/checkout/checkout.d.ts.map +1 -0
- package/dist/generated/checkout/checkout.js +43 -0
- package/dist/generated/checkout/checkout.js.map +1 -0
- package/dist/generated/client-config/client-config.d.ts +31 -0
- package/dist/generated/client-config/client-config.d.ts.map +1 -0
- package/dist/generated/client-config/client-config.js +22 -0
- package/dist/generated/client-config/client-config.js.map +1 -0
- package/dist/generated/container-types/container-types.d.ts +31 -0
- package/dist/generated/container-types/container-types.d.ts.map +1 -0
- package/dist/generated/container-types/container-types.js +26 -0
- package/dist/generated/container-types/container-types.js.map +1 -0
- package/dist/generated/containers/containers.d.ts +101 -0
- package/dist/generated/containers/containers.d.ts.map +1 -0
- package/dist/generated/containers/containers.js +114 -0
- package/dist/generated/containers/containers.js.map +1 -0
- package/dist/generated/coupons/coupons.d.ts +100 -22
- package/dist/generated/coupons/coupons.d.ts.map +1 -1
- package/dist/generated/coupons/coupons.js +142 -5
- package/dist/generated/coupons/coupons.js.map +1 -1
- package/dist/generated/damage-reports/damage-reports.d.ts +94 -0
- package/dist/generated/damage-reports/damage-reports.d.ts.map +1 -0
- package/dist/generated/damage-reports/damage-reports.js +115 -0
- package/dist/generated/damage-reports/damage-reports.js.map +1 -0
- package/dist/generated/discount-rules/discount-rules.d.ts +10 -9
- package/dist/generated/discount-rules/discount-rules.d.ts.map +1 -1
- package/dist/generated/discount-rules/discount-rules.js +19 -2
- package/dist/generated/discount-rules/discount-rules.js.map +1 -1
- package/dist/generated/employee-assignments/employee-assignments.d.ts +153 -0
- package/dist/generated/employee-assignments/employee-assignments.d.ts.map +1 -0
- package/dist/generated/employee-assignments/employee-assignments.js +121 -0
- package/dist/generated/employee-assignments/employee-assignments.js.map +1 -0
- package/dist/generated/files/files.d.ts +24 -0
- package/dist/generated/files/files.d.ts.map +1 -0
- package/dist/generated/files/files.js +27 -0
- package/dist/generated/files/files.js.map +1 -0
- package/dist/generated/folders/folders.d.ts +101 -0
- package/dist/generated/folders/folders.d.ts.map +1 -0
- package/dist/generated/folders/folders.js +125 -0
- package/dist/generated/folders/folders.js.map +1 -0
- package/dist/generated/forklift/forklift.d.ts +213 -0
- package/dist/generated/forklift/forklift.d.ts.map +1 -0
- package/dist/generated/forklift/forklift.js +162 -0
- package/dist/generated/forklift/forklift.js.map +1 -0
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.d.ts +7 -6
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.d.ts.map +1 -1
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.js +4 -0
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.js.map +1 -1
- package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.d.ts +7 -6
- package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.d.ts.map +1 -1
- package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.js +4 -0
- package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.js.map +1 -1
- package/dist/generated/hasura-user-webhook/hasura-user-webhook.d.ts +7 -6
- package/dist/generated/hasura-user-webhook/hasura-user-webhook.d.ts.map +1 -1
- package/dist/generated/hasura-user-webhook/hasura-user-webhook.js +4 -0
- package/dist/generated/hasura-user-webhook/hasura-user-webhook.js.map +1 -1
- package/dist/generated/health/health.d.ts +7 -6
- package/dist/generated/health/health.d.ts.map +1 -1
- package/dist/generated/health/health.js +4 -0
- package/dist/generated/health/health.js.map +1 -1
- package/dist/generated/index.schemas.d.ts +13567 -1128
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +1684 -19
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/integration-requests/integration-requests.d.ts +24 -0
- package/dist/generated/integration-requests/integration-requests.d.ts.map +1 -0
- package/dist/generated/integration-requests/integration-requests.js +23 -0
- package/dist/generated/integration-requests/integration-requests.js.map +1 -0
- package/dist/generated/integrations/integrations.d.ts +62 -19
- package/dist/generated/integrations/integrations.d.ts.map +1 -1
- package/dist/generated/integrations/integrations.js +93 -2
- package/dist/generated/integrations/integrations.js.map +1 -1
- package/dist/generated/invoice-basis-rows/invoice-basis-rows.d.ts +24 -0
- package/dist/generated/invoice-basis-rows/invoice-basis-rows.d.ts.map +1 -0
- package/dist/generated/invoice-basis-rows/invoice-basis-rows.js +23 -0
- package/dist/generated/invoice-basis-rows/invoice-basis-rows.js.map +1 -0
- package/dist/generated/invoice-details/invoice-details.d.ts +60 -0
- package/dist/generated/invoice-details/invoice-details.d.ts.map +1 -0
- package/dist/generated/invoice-details/invoice-details.js +39 -0
- package/dist/generated/invoice-details/invoice-details.js.map +1 -0
- package/dist/generated/invoices/invoices.d.ts +49 -27
- package/dist/generated/invoices/invoices.d.ts.map +1 -1
- package/dist/generated/invoices/invoices.js +92 -5
- package/dist/generated/invoices/invoices.js.map +1 -1
- package/dist/generated/items/items.d.ts +59 -0
- package/dist/generated/items/items.d.ts.map +1 -0
- package/dist/generated/items/items.js +68 -0
- package/dist/generated/items/items.js.map +1 -0
- package/dist/generated/lookups/lookups.d.ts +24 -0
- package/dist/generated/lookups/lookups.d.ts.map +1 -0
- package/dist/generated/lookups/lookups.js +23 -0
- package/dist/generated/lookups/lookups.js.map +1 -0
- package/dist/generated/manual-billing-line/manual-billing-line.d.ts +24 -0
- package/dist/generated/manual-billing-line/manual-billing-line.d.ts.map +1 -0
- package/dist/generated/manual-billing-line/manual-billing-line.js +27 -0
- package/dist/generated/manual-billing-line/manual-billing-line.js.map +1 -0
- package/dist/generated/me/me.d.ts +90 -7
- package/dist/generated/me/me.d.ts.map +1 -1
- package/dist/generated/me/me.js +91 -0
- package/dist/generated/me/me.js.map +1 -1
- package/dist/generated/me-notification-preferences/me-notification-preferences.d.ts +45 -0
- package/dist/generated/me-notification-preferences/me-notification-preferences.d.ts.map +1 -0
- package/dist/generated/me-notification-preferences/me-notification-preferences.js +40 -0
- package/dist/generated/me-notification-preferences/me-notification-preferences.js.map +1 -0
- package/dist/generated/merchandise/merchandise.d.ts +211 -0
- package/dist/generated/merchandise/merchandise.d.ts.map +1 -0
- package/dist/generated/merchandise/merchandise.js +220 -0
- package/dist/generated/merchandise/merchandise.js.map +1 -0
- package/dist/generated/merchandise-checkout/merchandise-checkout.d.ts +38 -0
- package/dist/generated/merchandise-checkout/merchandise-checkout.d.ts.map +1 -0
- package/dist/generated/merchandise-checkout/merchandise-checkout.js +48 -0
- package/dist/generated/merchandise-checkout/merchandise-checkout.js.map +1 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.d.ts +84 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.d.ts.map +1 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.js +85 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.js.map +1 -0
- package/dist/generated/move-adjust/move-adjust.d.ts +38 -0
- package/dist/generated/move-adjust/move-adjust.d.ts.map +1 -0
- package/dist/generated/move-adjust/move-adjust.js +52 -0
- package/dist/generated/move-adjust/move-adjust.js.map +1 -0
- package/dist/generated/notification-debug/notification-debug.d.ts +35 -0
- package/dist/generated/notification-debug/notification-debug.d.ts.map +1 -0
- package/dist/generated/notification-debug/notification-debug.js +26 -0
- package/dist/generated/notification-debug/notification-debug.js.map +1 -0
- package/dist/generated/notification-dispatches/notification-dispatches.d.ts +102 -0
- package/dist/generated/notification-dispatches/notification-dispatches.d.ts.map +1 -0
- package/dist/generated/notification-dispatches/notification-dispatches.js +72 -0
- package/dist/generated/notification-dispatches/notification-dispatches.js.map +1 -0
- package/dist/generated/notification-events/notification-events.d.ts +45 -0
- package/dist/generated/notification-events/notification-events.d.ts.map +1 -0
- package/dist/generated/notification-events/notification-events.js +43 -0
- package/dist/generated/notification-events/notification-events.js.map +1 -0
- package/dist/generated/notification-health/notification-health.d.ts +24 -0
- package/dist/generated/notification-health/notification-health.d.ts.map +1 -0
- package/dist/generated/notification-health/notification-health.js +16 -0
- package/dist/generated/notification-health/notification-health.js.map +1 -0
- package/dist/generated/notification-preferences/notification-preferences.d.ts +56 -0
- package/dist/generated/notification-preferences/notification-preferences.d.ts.map +1 -0
- package/dist/generated/notification-preferences/notification-preferences.js +46 -0
- package/dist/generated/notification-preferences/notification-preferences.js.map +1 -0
- package/dist/generated/notification-requests/notification-requests.d.ts +52 -0
- package/dist/generated/notification-requests/notification-requests.d.ts.map +1 -0
- package/dist/generated/notification-requests/notification-requests.js +28 -0
- package/dist/generated/notification-requests/notification-requests.js.map +1 -0
- package/dist/generated/notification-rules/notification-rules.d.ts +187 -0
- package/dist/generated/notification-rules/notification-rules.d.ts.map +1 -0
- package/dist/generated/notification-rules/notification-rules.js +147 -0
- package/dist/generated/notification-rules/notification-rules.js.map +1 -0
- package/dist/generated/notification-settings/notification-settings.d.ts +73 -0
- package/dist/generated/notification-settings/notification-settings.d.ts.map +1 -0
- package/dist/generated/notification-settings/notification-settings.js +90 -0
- package/dist/generated/notification-settings/notification-settings.js.map +1 -0
- package/dist/generated/notification-templates/notification-templates.d.ts +352 -0
- package/dist/generated/notification-templates/notification-templates.d.ts.map +1 -0
- package/dist/generated/notification-templates/notification-templates.js +245 -0
- package/dist/generated/notification-templates/notification-templates.js.map +1 -0
- package/dist/generated/order-groups/order-groups.d.ts +38 -0
- package/dist/generated/order-groups/order-groups.d.ts.map +1 -0
- package/dist/generated/order-groups/order-groups.js +37 -0
- package/dist/generated/order-groups/order-groups.js.map +1 -0
- package/dist/generated/orders/orders.d.ts +248 -9
- package/dist/generated/orders/orders.d.ts.map +1 -1
- package/dist/generated/orders/orders.js +428 -4
- package/dist/generated/orders/orders.js.map +1 -1
- package/dist/generated/org-contacts/org-contacts.d.ts +66 -0
- package/dist/generated/org-contacts/org-contacts.d.ts.map +1 -0
- package/dist/generated/org-contacts/org-contacts.js +87 -0
- package/dist/generated/org-contacts/org-contacts.js.map +1 -0
- package/dist/generated/organization-contracts/organization-contracts.d.ts +60 -0
- package/dist/generated/organization-contracts/organization-contracts.d.ts.map +1 -0
- package/dist/generated/organization-contracts/organization-contracts.js +39 -0
- package/dist/generated/organization-contracts/organization-contracts.js.map +1 -0
- package/dist/generated/organization-members/organization-members.d.ts +164 -0
- package/dist/generated/organization-members/organization-members.d.ts.map +1 -0
- package/dist/generated/organization-members/organization-members.js +113 -0
- package/dist/generated/organization-members/organization-members.js.map +1 -0
- package/dist/generated/organization-settings/organization-settings.d.ts +38 -0
- package/dist/generated/organization-settings/organization-settings.d.ts.map +1 -0
- package/dist/generated/organization-settings/organization-settings.js +41 -0
- package/dist/generated/organization-settings/organization-settings.js.map +1 -0
- package/dist/generated/organizations/organizations.d.ts +94 -0
- package/dist/generated/organizations/organizations.d.ts.map +1 -0
- package/dist/generated/organizations/organizations.js +129 -0
- package/dist/generated/organizations/organizations.js.map +1 -0
- package/dist/generated/outbound/outbound.d.ts +52 -0
- package/dist/generated/outbound/outbound.d.ts.map +1 -0
- package/dist/generated/outbound/outbound.js +77 -0
- package/dist/generated/outbound/outbound.js.map +1 -0
- package/dist/generated/payment-instruments/payment-instruments.d.ts +59 -5
- package/dist/generated/payment-instruments/payment-instruments.d.ts.map +1 -1
- package/dist/generated/payment-instruments/payment-instruments.js +45 -0
- package/dist/generated/payment-instruments/payment-instruments.js.map +1 -1
- package/dist/generated/payment-methods/payment-methods.d.ts +24 -0
- package/dist/generated/payment-methods/payment-methods.d.ts.map +1 -0
- package/dist/generated/payment-methods/payment-methods.js +23 -0
- package/dist/generated/payment-methods/payment-methods.js.map +1 -0
- package/dist/generated/payment-terms/payment-terms.d.ts +24 -0
- package/dist/generated/payment-terms/payment-terms.d.ts.map +1 -0
- package/dist/generated/payment-terms/payment-terms.js +23 -0
- package/dist/generated/payment-terms/payment-terms.js.map +1 -0
- package/dist/generated/pickup-label/pickup-label.d.ts +24 -0
- package/dist/generated/pickup-label/pickup-label.d.ts.map +1 -0
- package/dist/generated/pickup-label/pickup-label.js +16 -0
- package/dist/generated/pickup-label/pickup-label.js.map +1 -0
- package/dist/generated/pods/pods.d.ts +122 -0
- package/dist/generated/pods/pods.d.ts.map +1 -0
- package/dist/generated/pods/pods.js +172 -0
- package/dist/generated/pods/pods.js.map +1 -0
- package/dist/generated/positions/positions.d.ts +136 -0
- package/dist/generated/positions/positions.d.ts.map +1 -0
- package/dist/generated/positions/positions.js +141 -0
- package/dist/generated/positions/positions.js.map +1 -0
- package/dist/generated/posti-integration-mode/posti-integration-mode.d.ts +45 -0
- package/dist/generated/posti-integration-mode/posti-integration-mode.d.ts.map +1 -0
- package/dist/generated/posti-integration-mode/posti-integration-mode.js +40 -0
- package/dist/generated/posti-integration-mode/posti-integration-mode.js.map +1 -0
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.d.ts +74 -0
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.d.ts.map +1 -0
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.js +64 -0
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.js.map +1 -0
- package/dist/generated/posti-wms-ops/posti-wms-ops.d.ts +24 -0
- package/dist/generated/posti-wms-ops/posti-wms-ops.d.ts.map +1 -0
- package/dist/generated/posti-wms-ops/posti-wms-ops.js +16 -0
- package/dist/generated/posti-wms-ops/posti-wms-ops.js.map +1 -0
- package/dist/generated/price-lists/price-lists.d.ts +73 -23
- package/dist/generated/price-lists/price-lists.d.ts.map +1 -1
- package/dist/generated/price-lists/price-lists.js +104 -6
- package/dist/generated/price-lists/price-lists.js.map +1 -1
- package/dist/generated/price-suggestion/price-suggestion.d.ts +24 -0
- package/dist/generated/price-suggestion/price-suggestion.d.ts.map +1 -0
- package/dist/generated/price-suggestion/price-suggestion.js +23 -0
- package/dist/generated/price-suggestion/price-suggestion.js.map +1 -0
- package/dist/generated/pricing-rules/pricing-rules.d.ts +81 -10
- package/dist/generated/pricing-rules/pricing-rules.d.ts.map +1 -1
- package/dist/generated/pricing-rules/pricing-rules.js +106 -2
- package/dist/generated/pricing-rules/pricing-rules.js.map +1 -1
- package/dist/generated/products/products.d.ts +158 -0
- package/dist/generated/products/products.d.ts.map +1 -0
- package/dist/generated/products/products.js +198 -0
- package/dist/generated/products/products.js.map +1 -0
- package/dist/generated/provider-switch/provider-switch.d.ts +9 -8
- package/dist/generated/provider-switch/provider-switch.d.ts.map +1 -1
- package/dist/generated/provider-switch/provider-switch.js +28 -2
- package/dist/generated/provider-switch/provider-switch.js.map +1 -1
- package/dist/generated/receive/receive.d.ts +66 -0
- package/dist/generated/receive/receive.d.ts.map +1 -0
- package/dist/generated/receive/receive.js +102 -0
- package/dist/generated/receive/receive.js.map +1 -0
- package/dist/generated/recurring-fee-configs/recurring-fee-configs.d.ts +66 -0
- package/dist/generated/recurring-fee-configs/recurring-fee-configs.d.ts.map +1 -0
- package/dist/generated/recurring-fee-configs/recurring-fee-configs.js +87 -0
- package/dist/generated/recurring-fee-configs/recurring-fee-configs.js.map +1 -0
- package/dist/generated/route-stops/route-stops.d.ts +66 -0
- package/dist/generated/route-stops/route-stops.d.ts.map +1 -0
- package/dist/generated/route-stops/route-stops.js +102 -0
- package/dist/generated/route-stops/route-stops.js.map +1 -0
- package/dist/generated/routes/routes.d.ts +220 -0
- package/dist/generated/routes/routes.d.ts.map +1 -0
- package/dist/generated/routes/routes.js +340 -0
- package/dist/generated/routes/routes.js.map +1 -0
- package/dist/generated/sales-orders/sales-orders.d.ts +38 -0
- package/dist/generated/sales-orders/sales-orders.d.ts.map +1 -0
- package/dist/generated/sales-orders/sales-orders.js +37 -0
- package/dist/generated/sales-orders/sales-orders.js.map +1 -0
- package/dist/generated/sender-identities/sender-identities.d.ts +137 -0
- package/dist/generated/sender-identities/sender-identities.d.ts.map +1 -0
- package/dist/generated/sender-identities/sender-identities.js +110 -0
- package/dist/generated/sender-identities/sender-identities.js.map +1 -0
- package/dist/generated/service-catalog/service-catalog.d.ts +24 -0
- package/dist/generated/service-catalog/service-catalog.d.ts.map +1 -0
- package/dist/generated/service-catalog/service-catalog.js +16 -0
- package/dist/generated/service-catalog/service-catalog.js.map +1 -0
- package/dist/generated/service-points/service-points.d.ts +35 -0
- package/dist/generated/service-points/service-points.d.ts.map +1 -0
- package/dist/generated/service-points/service-points.js +22 -0
- package/dist/generated/service-points/service-points.js.map +1 -0
- package/dist/generated/service-zones/service-zones.d.ts +94 -0
- package/dist/generated/service-zones/service-zones.d.ts.map +1 -0
- package/dist/generated/service-zones/service-zones.js +122 -0
- package/dist/generated/service-zones/service-zones.js.map +1 -0
- package/dist/generated/sessions/sessions.d.ts +24 -0
- package/dist/generated/sessions/sessions.d.ts.map +1 -0
- package/dist/generated/sessions/sessions.js +16 -0
- package/dist/generated/sessions/sessions.js.map +1 -0
- package/dist/generated/shipments/shipments.d.ts +24 -0
- package/dist/generated/shipments/shipments.d.ts.map +1 -0
- package/dist/generated/shipments/shipments.js +16 -0
- package/dist/generated/shipments/shipments.js.map +1 -0
- package/dist/generated/slot-configs/slot-configs.d.ts +80 -0
- package/dist/generated/slot-configs/slot-configs.d.ts.map +1 -0
- package/dist/generated/slot-configs/slot-configs.js +112 -0
- package/dist/generated/slot-configs/slot-configs.js.map +1 -0
- package/dist/generated/stripe-webhook/stripe-webhook.d.ts +7 -6
- package/dist/generated/stripe-webhook/stripe-webhook.d.ts.map +1 -1
- package/dist/generated/stripe-webhook/stripe-webhook.js +4 -0
- package/dist/generated/stripe-webhook/stripe-webhook.js.map +1 -1
- package/dist/generated/subscription-configs/subscription-configs.d.ts +12 -11
- package/dist/generated/subscription-configs/subscription-configs.d.ts.map +1 -1
- package/dist/generated/subscription-configs/subscription-configs.js +32 -2
- package/dist/generated/subscription-configs/subscription-configs.js.map +1 -1
- package/dist/generated/suppressions/suppressions.d.ts +92 -0
- package/dist/generated/suppressions/suppressions.d.ts.map +1 -0
- package/dist/generated/suppressions/suppressions.js +92 -0
- package/dist/generated/suppressions/suppressions.js.map +1 -0
- package/dist/generated/sync-dimensions/sync-dimensions.d.ts +24 -0
- package/dist/generated/sync-dimensions/sync-dimensions.d.ts.map +1 -0
- package/dist/generated/sync-dimensions/sync-dimensions.js +27 -0
- package/dist/generated/sync-dimensions/sync-dimensions.js.map +1 -0
- package/dist/generated/tenant-config/tenant-config.d.ts +25 -10
- package/dist/generated/tenant-config/tenant-config.d.ts.map +1 -1
- package/dist/generated/tenant-config/tenant-config.js +43 -1
- package/dist/generated/tenant-config/tenant-config.js.map +1 -1
- package/dist/generated/tenant-maintenance/tenant-maintenance.d.ts +38 -0
- package/dist/generated/tenant-maintenance/tenant-maintenance.d.ts.map +1 -0
- package/dist/generated/tenant-maintenance/tenant-maintenance.js +41 -0
- package/dist/generated/tenant-maintenance/tenant-maintenance.js.map +1 -0
- package/dist/generated/tenant-modules/tenant-modules.d.ts +38 -0
- package/dist/generated/tenant-modules/tenant-modules.d.ts.map +1 -0
- package/dist/generated/tenant-modules/tenant-modules.js +41 -0
- package/dist/generated/tenant-modules/tenant-modules.js.map +1 -0
- package/dist/generated/tenant-services/tenant-services.d.ts +66 -0
- package/dist/generated/tenant-services/tenant-services.d.ts.map +1 -0
- package/dist/generated/tenant-services/tenant-services.js +80 -0
- package/dist/generated/tenant-services/tenant-services.js.map +1 -0
- package/dist/generated/transport-leg-booking/transport-leg-booking.d.ts +38 -0
- package/dist/generated/transport-leg-booking/transport-leg-booking.d.ts.map +1 -0
- package/dist/generated/transport-leg-booking/transport-leg-booking.js +41 -0
- package/dist/generated/transport-leg-booking/transport-leg-booking.js.map +1 -0
- package/dist/generated/transport-legs/transport-legs.d.ts +178 -0
- package/dist/generated/transport-legs/transport-legs.d.ts.map +1 -0
- package/dist/generated/transport-legs/transport-legs.js +287 -0
- package/dist/generated/transport-legs/transport-legs.js.map +1 -0
- package/dist/generated/transport-options/transport-options.d.ts +73 -0
- package/dist/generated/transport-options/transport-options.d.ts.map +1 -0
- package/dist/generated/transport-options/transport-options.js +86 -0
- package/dist/generated/transport-options/transport-options.js.map +1 -0
- package/dist/generated/transport-services/transport-services.d.ts +122 -0
- package/dist/generated/transport-services/transport-services.d.ts.map +1 -0
- package/dist/generated/transport-services/transport-services.js +150 -0
- package/dist/generated/transport-services/transport-services.js.map +1 -0
- package/dist/generated/units-of-measure/units-of-measure.d.ts +9 -8
- package/dist/generated/units-of-measure/units-of-measure.d.ts.map +1 -1
- package/dist/generated/units-of-measure/units-of-measure.js +9 -1
- package/dist/generated/units-of-measure/units-of-measure.js.map +1 -1
- package/dist/generated/unsubscribe/unsubscribe.d.ts +56 -0
- package/dist/generated/unsubscribe/unsubscribe.d.ts.map +1 -0
- package/dist/generated/unsubscribe/unsubscribe.js +39 -0
- package/dist/generated/unsubscribe/unsubscribe.js.map +1 -0
- package/dist/generated/users/users.d.ts +99 -0
- package/dist/generated/users/users.d.ts.map +1 -0
- package/dist/generated/users/users.js +95 -0
- package/dist/generated/users/users.js.map +1 -0
- package/dist/generated/warehouse-orders/warehouse-orders.d.ts +164 -0
- package/dist/generated/warehouse-orders/warehouse-orders.d.ts.map +1 -0
- package/dist/generated/warehouse-orders/warehouse-orders.js +251 -0
- package/dist/generated/warehouse-orders/warehouse-orders.js.map +1 -0
- package/dist/generated/warehouses/warehouses.d.ts +217 -0
- package/dist/generated/warehouses/warehouses.d.ts.map +1 -0
- package/dist/generated/warehouses/warehouses.js +238 -0
- package/dist/generated/warehouses/warehouses.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/permissions.d.ts +10 -3
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +11 -4
- package/dist/permissions.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-requests.js","sourceRoot":"","sources":["../../../src/generated/notification-requests/notification-requests.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAqB/C,MAAM,CAAC,MAAM,6CAA6C,GAAG,CAAC,EAAU,EAAG,EAAE;IAK3E,OAAO,6BAA6B,EAAE,EAAE,CAAA;AAC1C,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,KAAK,EAAE,EAAU,EAAE,OAA2C,EAA4D,EAAE;IAEjL,OAAO,WAAW,CAAkD,6CAA6C,CAAC,EAAE,CAAC,EACrH;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA;AAsBH,MAAM,CAAC,MAAM,+CAA+C,GAAG,CAAC,EAAU,EAAG,EAAE;IAK7E,OAAO,6BAA6B,EAAE,YAAY,CAAA;AACpD,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAG,KAAK,EAAE,EAAU,EAAE,OAA2C,EAA8D,EAAE;IAErL,OAAO,WAAW,CAAoD,+CAA+C,CAAC,EAAE,CAAC,EACzH;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;KAGf,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval ๐บ
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Vinden Core API
|
|
5
|
+
* Core API for the Vinden Platform
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CreateNotificationRuleDto, EnableRuleDto, NotificationRuleDto, NotificationRulesControllerListV1Params, RecipientEstimateDto, UpdateNotificationRuleDto } from '../index.schemas.js';
|
|
9
|
+
import { customFetch } from '../../mutator.js';
|
|
10
|
+
export type notificationRulesControllerListV1Response200 = {
|
|
11
|
+
data: NotificationRuleDto[];
|
|
12
|
+
status: 200;
|
|
13
|
+
};
|
|
14
|
+
export type notificationRulesControllerListV1ResponseSuccess = (notificationRulesControllerListV1Response200) & {
|
|
15
|
+
headers: Headers;
|
|
16
|
+
};
|
|
17
|
+
export type notificationRulesControllerListV1Response = (notificationRulesControllerListV1ResponseSuccess);
|
|
18
|
+
export declare const getNotificationRulesControllerListV1Url: (params?: NotificationRulesControllerListV1Params) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Bounded by events ร channels, so a raw array rather than a pagination envelope. Ordered by event then channel; the admin UI groups per event. ๐ Requires permission: notification:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
21
|
+
* @summary List notification rules
|
|
22
|
+
*/
|
|
23
|
+
export declare const notificationRulesControllerListV1: (params?: NotificationRulesControllerListV1Params, options?: Parameters<typeof customFetch>[1]) => Promise<notificationRulesControllerListV1Response>;
|
|
24
|
+
export type notificationRulesControllerCreateV1Response201 = {
|
|
25
|
+
data: NotificationRuleDto;
|
|
26
|
+
status: 201;
|
|
27
|
+
};
|
|
28
|
+
export type notificationRulesControllerCreateV1Response400 = {
|
|
29
|
+
data: void;
|
|
30
|
+
status: 400;
|
|
31
|
+
};
|
|
32
|
+
export type notificationRulesControllerCreateV1Response404 = {
|
|
33
|
+
data: void;
|
|
34
|
+
status: 404;
|
|
35
|
+
};
|
|
36
|
+
export type notificationRulesControllerCreateV1Response409 = {
|
|
37
|
+
data: void;
|
|
38
|
+
status: 409;
|
|
39
|
+
};
|
|
40
|
+
export type notificationRulesControllerCreateV1ResponseSuccess = (notificationRulesControllerCreateV1Response201) & {
|
|
41
|
+
headers: Headers;
|
|
42
|
+
};
|
|
43
|
+
export type notificationRulesControllerCreateV1ResponseError = (notificationRulesControllerCreateV1Response400 | notificationRulesControllerCreateV1Response404 | notificationRulesControllerCreateV1Response409) & {
|
|
44
|
+
headers: Headers;
|
|
45
|
+
};
|
|
46
|
+
export type notificationRulesControllerCreateV1Response = (notificationRulesControllerCreateV1ResponseSuccess | notificationRulesControllerCreateV1ResponseError);
|
|
47
|
+
export declare const getNotificationRulesControllerCreateV1Url: () => string;
|
|
48
|
+
/**
|
|
49
|
+
* The rule starts DISABLED โ enabling is the separate gated action with the blast-radius confirmation. `recipients` is validated against the pinned contract version's paths at save (02 ยง5), and the category override is pre-checked app-side for a readable message before `trg_rule_category` would reject it. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
50
|
+
* @summary Create a notification rule
|
|
51
|
+
*/
|
|
52
|
+
export declare const notificationRulesControllerCreateV1: (createNotificationRuleDto: CreateNotificationRuleDto, options?: Parameters<typeof customFetch>[1]) => Promise<notificationRulesControllerCreateV1Response>;
|
|
53
|
+
export type notificationRulesControllerGetByIdV1Response200 = {
|
|
54
|
+
data: NotificationRuleDto;
|
|
55
|
+
status: 200;
|
|
56
|
+
};
|
|
57
|
+
export type notificationRulesControllerGetByIdV1Response404 = {
|
|
58
|
+
data: void;
|
|
59
|
+
status: 404;
|
|
60
|
+
};
|
|
61
|
+
export type notificationRulesControllerGetByIdV1ResponseSuccess = (notificationRulesControllerGetByIdV1Response200) & {
|
|
62
|
+
headers: Headers;
|
|
63
|
+
};
|
|
64
|
+
export type notificationRulesControllerGetByIdV1ResponseError = (notificationRulesControllerGetByIdV1Response404) & {
|
|
65
|
+
headers: Headers;
|
|
66
|
+
};
|
|
67
|
+
export type notificationRulesControllerGetByIdV1Response = (notificationRulesControllerGetByIdV1ResponseSuccess | notificationRulesControllerGetByIdV1ResponseError);
|
|
68
|
+
export declare const getNotificationRulesControllerGetByIdV1Url: (id: string) => string;
|
|
69
|
+
/**
|
|
70
|
+
* ๐ Requires permission: notification:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
71
|
+
* @summary Get one notification rule
|
|
72
|
+
*/
|
|
73
|
+
export declare const notificationRulesControllerGetByIdV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<notificationRulesControllerGetByIdV1Response>;
|
|
74
|
+
export type notificationRulesControllerUpdateV1Response200 = {
|
|
75
|
+
data: NotificationRuleDto;
|
|
76
|
+
status: 200;
|
|
77
|
+
};
|
|
78
|
+
export type notificationRulesControllerUpdateV1Response400 = {
|
|
79
|
+
data: void;
|
|
80
|
+
status: 400;
|
|
81
|
+
};
|
|
82
|
+
export type notificationRulesControllerUpdateV1Response404 = {
|
|
83
|
+
data: void;
|
|
84
|
+
status: 404;
|
|
85
|
+
};
|
|
86
|
+
export type notificationRulesControllerUpdateV1ResponseSuccess = (notificationRulesControllerUpdateV1Response200) & {
|
|
87
|
+
headers: Headers;
|
|
88
|
+
};
|
|
89
|
+
export type notificationRulesControllerUpdateV1ResponseError = (notificationRulesControllerUpdateV1Response400 | notificationRulesControllerUpdateV1Response404) & {
|
|
90
|
+
headers: Headers;
|
|
91
|
+
};
|
|
92
|
+
export type notificationRulesControllerUpdateV1Response = (notificationRulesControllerUpdateV1ResponseSuccess | notificationRulesControllerUpdateV1ResponseError);
|
|
93
|
+
export declare const getNotificationRulesControllerUpdateV1Url: (id: string) => string;
|
|
94
|
+
/**
|
|
95
|
+
* `eventKey` and `channel` are the rule's identity and cannot be patched. Changing `eventVersion` is the migrate-this-rule action: the recipients AND the bound template's referenced variables are re-validated against the new contract, and the migration is refused with the offenders named rather than silently re-pinned. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
96
|
+
* @summary Update a notification rule
|
|
97
|
+
*/
|
|
98
|
+
export declare const notificationRulesControllerUpdateV1: (id: string, updateNotificationRuleDto: UpdateNotificationRuleDto, options?: Parameters<typeof customFetch>[1]) => Promise<notificationRulesControllerUpdateV1Response>;
|
|
99
|
+
export type notificationRulesControllerRemoveV1Response204 = {
|
|
100
|
+
data: void;
|
|
101
|
+
status: 204;
|
|
102
|
+
};
|
|
103
|
+
export type notificationRulesControllerRemoveV1Response404 = {
|
|
104
|
+
data: void;
|
|
105
|
+
status: 404;
|
|
106
|
+
};
|
|
107
|
+
export type notificationRulesControllerRemoveV1ResponseSuccess = (notificationRulesControllerRemoveV1Response204) & {
|
|
108
|
+
headers: Headers;
|
|
109
|
+
};
|
|
110
|
+
export type notificationRulesControllerRemoveV1ResponseError = (notificationRulesControllerRemoveV1Response404) & {
|
|
111
|
+
headers: Headers;
|
|
112
|
+
};
|
|
113
|
+
export type notificationRulesControllerRemoveV1Response = (notificationRulesControllerRemoveV1ResponseSuccess | notificationRulesControllerRemoveV1ResponseError);
|
|
114
|
+
export declare const getNotificationRulesControllerRemoveV1Url: (id: string) => string;
|
|
115
|
+
/**
|
|
116
|
+
* Clears the live-uniqueness index, so the same (event, channel) may be authored again. History on the dispatches the rule produced is untouched. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
117
|
+
* @summary Delete a notification rule (soft delete)
|
|
118
|
+
*/
|
|
119
|
+
export declare const notificationRulesControllerRemoveV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<notificationRulesControllerRemoveV1Response>;
|
|
120
|
+
export type notificationRulesControllerEnableV1Response200 = {
|
|
121
|
+
data: NotificationRuleDto;
|
|
122
|
+
status: 200;
|
|
123
|
+
};
|
|
124
|
+
export type notificationRulesControllerEnableV1Response404 = {
|
|
125
|
+
data: void;
|
|
126
|
+
status: 404;
|
|
127
|
+
};
|
|
128
|
+
export type notificationRulesControllerEnableV1Response409 = {
|
|
129
|
+
data: void;
|
|
130
|
+
status: 409;
|
|
131
|
+
};
|
|
132
|
+
export type notificationRulesControllerEnableV1ResponseSuccess = (notificationRulesControllerEnableV1Response200) & {
|
|
133
|
+
headers: Headers;
|
|
134
|
+
};
|
|
135
|
+
export type notificationRulesControllerEnableV1ResponseError = (notificationRulesControllerEnableV1Response404 | notificationRulesControllerEnableV1Response409) & {
|
|
136
|
+
headers: Headers;
|
|
137
|
+
};
|
|
138
|
+
export type notificationRulesControllerEnableV1Response = (notificationRulesControllerEnableV1ResponseSuccess | notificationRulesControllerEnableV1ResponseError);
|
|
139
|
+
export declare const getNotificationRulesControllerEnableV1Url: (id: string) => string;
|
|
140
|
+
/**
|
|
141
|
+
* Four preconditions, each its own 409 code so the client can render the specific fix: a published template for what the rule renders, at least one `to` recipient, a verified default sender identity on the channel, and a live contract version. Then the blast radius: the server re-estimates and refuses when the fresh number is materially above the one the admin confirmed, or when it is over the typed-confirmation threshold without the tenant slug typed in. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
142
|
+
* @summary Enable a rule, with the blast-radius confirmation
|
|
143
|
+
*/
|
|
144
|
+
export declare const notificationRulesControllerEnableV1: (id: string, enableRuleDto: EnableRuleDto, options?: Parameters<typeof customFetch>[1]) => Promise<notificationRulesControllerEnableV1Response>;
|
|
145
|
+
export type notificationRulesControllerDisableV1Response200 = {
|
|
146
|
+
data: NotificationRuleDto;
|
|
147
|
+
status: 200;
|
|
148
|
+
};
|
|
149
|
+
export type notificationRulesControllerDisableV1Response404 = {
|
|
150
|
+
data: void;
|
|
151
|
+
status: 404;
|
|
152
|
+
};
|
|
153
|
+
export type notificationRulesControllerDisableV1ResponseSuccess = (notificationRulesControllerDisableV1Response200) & {
|
|
154
|
+
headers: Headers;
|
|
155
|
+
};
|
|
156
|
+
export type notificationRulesControllerDisableV1ResponseError = (notificationRulesControllerDisableV1Response404) & {
|
|
157
|
+
headers: Headers;
|
|
158
|
+
};
|
|
159
|
+
export type notificationRulesControllerDisableV1Response = (notificationRulesControllerDisableV1ResponseSuccess | notificationRulesControllerDisableV1ResponseError);
|
|
160
|
+
export declare const getNotificationRulesControllerDisableV1Url: (id: string) => string;
|
|
161
|
+
/**
|
|
162
|
+
* Ungated โ stopping a send is never the risky direction. Dispatches already queued still go out; new events skip as `skipped_disabled`. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
163
|
+
* @summary Disable a rule
|
|
164
|
+
*/
|
|
165
|
+
export declare const notificationRulesControllerDisableV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<notificationRulesControllerDisableV1Response>;
|
|
166
|
+
export type notificationRulesControllerRecipientEstimateV1Response200 = {
|
|
167
|
+
data: RecipientEstimateDto;
|
|
168
|
+
status: 200;
|
|
169
|
+
};
|
|
170
|
+
export type notificationRulesControllerRecipientEstimateV1Response404 = {
|
|
171
|
+
data: void;
|
|
172
|
+
status: 404;
|
|
173
|
+
};
|
|
174
|
+
export type notificationRulesControllerRecipientEstimateV1ResponseSuccess = (notificationRulesControllerRecipientEstimateV1Response200) & {
|
|
175
|
+
headers: Headers;
|
|
176
|
+
};
|
|
177
|
+
export type notificationRulesControllerRecipientEstimateV1ResponseError = (notificationRulesControllerRecipientEstimateV1Response404) & {
|
|
178
|
+
headers: Headers;
|
|
179
|
+
};
|
|
180
|
+
export type notificationRulesControllerRecipientEstimateV1Response = (notificationRulesControllerRecipientEstimateV1ResponseSuccess | notificationRulesControllerRecipientEstimateV1ResponseError);
|
|
181
|
+
export declare const getNotificationRulesControllerRecipientEstimateV1Url: (id: string) => string;
|
|
182
|
+
/**
|
|
183
|
+
* Resolves the rule's recipient specs against up to 50 recent event payloads (falling back to a sample folded out of the contract's example values when the tenant has no traffic for the event yet). Read-only and live โ `organization_contact` and the staff roster are read per call, so the client shows a spinner. Specs are NOT deduplicated against each other: the number an admin confirms is a ceiling. ๐ Requires permission: notification:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
184
|
+
* @summary Blast-radius estimate for a rule
|
|
185
|
+
*/
|
|
186
|
+
export declare const notificationRulesControllerRecipientEstimateV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<notificationRulesControllerRecipientEstimateV1Response>;
|
|
187
|
+
//# sourceMappingURL=notification-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-rules.d.ts","sourceRoot":"","sources":["../../../src/generated/notification-rules/notification-rules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,yBAAyB,EACzB,aAAa,EACb,mBAAmB,EACnB,uCAAuC,EACvC,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,mBAAmB,EAAE,CAAA;IAC3B,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,gDAAgD,GAAG,CAAC,4CAA4C,CAAC,GAAG;IAC9G,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,yCAAyC,GAAG,CAAC,gDAAgD,CAAC,CAAA;AAE1G,eAAO,MAAM,uCAAuC,GAAI,SAAS,uCAAuC,WAavG,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iCAAiC,GAAU,SAAS,uCAAuC,EAAE,UAAU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,yCAAyC,CAStM,CAAA;AAGH,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,mBAAmB,CAAA;IACzB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MA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,eAAO,MAAM,8CAA8C,GAAU,IAAI,MAAM,EAAE,UAAU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,sDAAsD,CAS1L,CAAA"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getNotificationRulesControllerListV1Url = (params) => {
|
|
4
|
+
const normalizedParams = new URLSearchParams();
|
|
5
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
6
|
+
if (value !== undefined) {
|
|
7
|
+
normalizedParams.append(key, value === null ? 'null' : String(value));
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const stringifiedParams = normalizedParams.toString();
|
|
11
|
+
return stringifiedParams.length > 0 ? `/v1/notification-rules?${stringifiedParams}` : `/v1/notification-rules`;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Bounded by events ร channels, so a raw array rather than a pagination envelope. Ordered by event then channel; the admin UI groups per event. ๐ Requires permission: notification:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
15
|
+
* @summary List notification rules
|
|
16
|
+
*/
|
|
17
|
+
export const notificationRulesControllerListV1 = async (params, options) => {
|
|
18
|
+
return customFetch(getNotificationRulesControllerListV1Url(params), {
|
|
19
|
+
...options,
|
|
20
|
+
method: 'GET'
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export const getNotificationRulesControllerCreateV1Url = () => {
|
|
24
|
+
return `/v1/notification-rules`;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The rule starts DISABLED โ enabling is the separate gated action with the blast-radius confirmation. `recipients` is validated against the pinned contract version's paths at save (02 ยง5), and the category override is pre-checked app-side for a readable message before `trg_rule_category` would reject it. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
28
|
+
* @summary Create a notification rule
|
|
29
|
+
*/
|
|
30
|
+
export const notificationRulesControllerCreateV1 = async (createNotificationRuleDto, options) => {
|
|
31
|
+
const getHeaders = (h) => {
|
|
32
|
+
if (!h)
|
|
33
|
+
return {};
|
|
34
|
+
if (h instanceof Headers)
|
|
35
|
+
return Object.fromEntries(h.entries());
|
|
36
|
+
if (Array.isArray(h))
|
|
37
|
+
return Object.fromEntries(h);
|
|
38
|
+
return h;
|
|
39
|
+
};
|
|
40
|
+
return customFetch(getNotificationRulesControllerCreateV1Url(), {
|
|
41
|
+
...options,
|
|
42
|
+
method: 'POST',
|
|
43
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
44
|
+
body: JSON.stringify(createNotificationRuleDto)
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
export const getNotificationRulesControllerGetByIdV1Url = (id) => {
|
|
48
|
+
return `/v1/notification-rules/${id}`;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* ๐ Requires permission: notification:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
52
|
+
* @summary Get one notification rule
|
|
53
|
+
*/
|
|
54
|
+
export const notificationRulesControllerGetByIdV1 = async (id, options) => {
|
|
55
|
+
return customFetch(getNotificationRulesControllerGetByIdV1Url(id), {
|
|
56
|
+
...options,
|
|
57
|
+
method: 'GET'
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
export const getNotificationRulesControllerUpdateV1Url = (id) => {
|
|
61
|
+
return `/v1/notification-rules/${id}`;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* `eventKey` and `channel` are the rule's identity and cannot be patched. Changing `eventVersion` is the migrate-this-rule action: the recipients AND the bound template's referenced variables are re-validated against the new contract, and the migration is refused with the offenders named rather than silently re-pinned. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
65
|
+
* @summary Update a notification rule
|
|
66
|
+
*/
|
|
67
|
+
export const notificationRulesControllerUpdateV1 = async (id, updateNotificationRuleDto, options) => {
|
|
68
|
+
const getHeaders = (h) => {
|
|
69
|
+
if (!h)
|
|
70
|
+
return {};
|
|
71
|
+
if (h instanceof Headers)
|
|
72
|
+
return Object.fromEntries(h.entries());
|
|
73
|
+
if (Array.isArray(h))
|
|
74
|
+
return Object.fromEntries(h);
|
|
75
|
+
return h;
|
|
76
|
+
};
|
|
77
|
+
return customFetch(getNotificationRulesControllerUpdateV1Url(id), {
|
|
78
|
+
...options,
|
|
79
|
+
method: 'PATCH',
|
|
80
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
81
|
+
body: JSON.stringify(updateNotificationRuleDto)
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
export const getNotificationRulesControllerRemoveV1Url = (id) => {
|
|
85
|
+
return `/v1/notification-rules/${id}`;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Clears the live-uniqueness index, so the same (event, channel) may be authored again. History on the dispatches the rule produced is untouched. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
89
|
+
* @summary Delete a notification rule (soft delete)
|
|
90
|
+
*/
|
|
91
|
+
export const notificationRulesControllerRemoveV1 = async (id, options) => {
|
|
92
|
+
return customFetch(getNotificationRulesControllerRemoveV1Url(id), {
|
|
93
|
+
...options,
|
|
94
|
+
method: 'DELETE'
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
export const getNotificationRulesControllerEnableV1Url = (id) => {
|
|
98
|
+
return `/v1/notification-rules/${id}/enable`;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Four preconditions, each its own 409 code so the client can render the specific fix: a published template for what the rule renders, at least one `to` recipient, a verified default sender identity on the channel, and a live contract version. Then the blast radius: the server re-estimates and refuses when the fresh number is materially above the one the admin confirmed, or when it is over the typed-confirmation threshold without the tenant slug typed in. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
102
|
+
* @summary Enable a rule, with the blast-radius confirmation
|
|
103
|
+
*/
|
|
104
|
+
export const notificationRulesControllerEnableV1 = async (id, enableRuleDto, options) => {
|
|
105
|
+
const getHeaders = (h) => {
|
|
106
|
+
if (!h)
|
|
107
|
+
return {};
|
|
108
|
+
if (h instanceof Headers)
|
|
109
|
+
return Object.fromEntries(h.entries());
|
|
110
|
+
if (Array.isArray(h))
|
|
111
|
+
return Object.fromEntries(h);
|
|
112
|
+
return h;
|
|
113
|
+
};
|
|
114
|
+
return customFetch(getNotificationRulesControllerEnableV1Url(id), {
|
|
115
|
+
...options,
|
|
116
|
+
method: 'POST',
|
|
117
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
118
|
+
body: JSON.stringify(enableRuleDto)
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
export const getNotificationRulesControllerDisableV1Url = (id) => {
|
|
122
|
+
return `/v1/notification-rules/${id}/disable`;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Ungated โ stopping a send is never the risky direction. Dispatches already queued still go out; new events skip as `skipped_disabled`. ๐ Requires permission: notification:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
126
|
+
* @summary Disable a rule
|
|
127
|
+
*/
|
|
128
|
+
export const notificationRulesControllerDisableV1 = async (id, options) => {
|
|
129
|
+
return customFetch(getNotificationRulesControllerDisableV1Url(id), {
|
|
130
|
+
...options,
|
|
131
|
+
method: 'POST'
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
export const getNotificationRulesControllerRecipientEstimateV1Url = (id) => {
|
|
135
|
+
return `/v1/notification-rules/${id}/recipient-estimate`;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Resolves the rule's recipient specs against up to 50 recent event payloads (falling back to a sample folded out of the contract's example values when the tenant has no traffic for the event yet). Read-only and live โ `organization_contact` and the staff roster are read per call, so the client shows a spinner. Specs are NOT deduplicated against each other: the number an admin confirms is a ceiling. ๐ Requires permission: notification:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
139
|
+
* @summary Blast-radius estimate for a rule
|
|
140
|
+
*/
|
|
141
|
+
export const notificationRulesControllerRecipientEstimateV1 = async (id, options) => {
|
|
142
|
+
return customFetch(getNotificationRulesControllerRecipientEstimateV1Url(id), {
|
|
143
|
+
...options,
|
|
144
|
+
method: 'GET'
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
//# sourceMappingURL=notification-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-rules.js","sourceRoot":"","sources":["../../../src/generated/notification-rules/notification-rules.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAU/C,CAAC;AAID,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,MAAgD,EAAG,EAAE;IAC3G,MAAM,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;IAE/C,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAEpD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,gBAAgB,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QACvE,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IAEtD,OAAO,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,0BAA0B,iBAAiB,EAAE,CAAC,CAAC,CAAC,wBAAwB,CAAA;AAChH,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,KAAK,EAAE,MAAgD,EAAE,OAA2C,EAAsD,EAAE;IAE3M,OAAO,WAAW,CAA4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AA,CAAC,CAAA;AAsBH,MAAM,CAAC,MAAM,oDAAoD,GAAG,CAAC,EAAU,EAAG,EAAE;IAKlF,OAAO,0BAA0B,EAAE,qBAAqB,CAAA;AAC1D,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,8CAA8C,GAAG,KAAK,EAAE,EAAU,EAAE,OAA2C,EAAmE,EAAE;IAE/L,OAAO,WAAW,CAAyD,oDAAoD,CAAC,EAAE,CAAC,EACnI;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval ๐บ
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Vinden Core API
|
|
5
|
+
* Core API for the Vinden Platform
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { NotificationSettingsDto, SendPauseDto, SetEventModeDto } from '../index.schemas.js';
|
|
9
|
+
import { customFetch } from '../../mutator.js';
|
|
10
|
+
export type notificationSettingsControllerGetV1Response200 = {
|
|
11
|
+
data: NotificationSettingsDto;
|
|
12
|
+
status: 200;
|
|
13
|
+
};
|
|
14
|
+
export type notificationSettingsControllerGetV1ResponseSuccess = (notificationSettingsControllerGetV1Response200) & {
|
|
15
|
+
headers: Headers;
|
|
16
|
+
};
|
|
17
|
+
export type notificationSettingsControllerGetV1Response = (notificationSettingsControllerGetV1ResponseSuccess);
|
|
18
|
+
export declare const getNotificationSettingsControllerGetV1Url: () => string;
|
|
19
|
+
/**
|
|
20
|
+
* The send-pause state with who toggled it, when and why (from the last pause/resume admin_action), plus the SMS and rendered-body flags. Send caps are null until the config surface lands with the write slice. ๐ Requires permission: notification:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
21
|
+
* @summary Get the tenant's notification settings
|
|
22
|
+
*/
|
|
23
|
+
export declare const notificationSettingsControllerGetV1: (options?: Parameters<typeof customFetch>[1]) => Promise<notificationSettingsControllerGetV1Response>;
|
|
24
|
+
export type notificationSettingsControllerPauseV1Response200 = {
|
|
25
|
+
data: NotificationSettingsDto;
|
|
26
|
+
status: 200;
|
|
27
|
+
};
|
|
28
|
+
export type notificationSettingsControllerPauseV1Response409 = {
|
|
29
|
+
data: void;
|
|
30
|
+
status: 409;
|
|
31
|
+
};
|
|
32
|
+
export type notificationSettingsControllerPauseV1ResponseSuccess = (notificationSettingsControllerPauseV1Response200) & {
|
|
33
|
+
headers: Headers;
|
|
34
|
+
};
|
|
35
|
+
export type notificationSettingsControllerPauseV1ResponseError = (notificationSettingsControllerPauseV1Response409) & {
|
|
36
|
+
headers: Headers;
|
|
37
|
+
};
|
|
38
|
+
export type notificationSettingsControllerPauseV1Response = (notificationSettingsControllerPauseV1ResponseSuccess | notificationSettingsControllerPauseV1ResponseError);
|
|
39
|
+
export declare const getNotificationSettingsControllerPauseV1Url: () => string;
|
|
40
|
+
/**
|
|
41
|
+
* The kill-switch every runbook reaches for. Dispatches PARK in `queued` โ Phase B stops claiming them, nothing fails and nothing is lost โ and fan-out keeps running, so no event is dropped. A `reason` is required, the command is audited, and pausing emits the real-time on-call alert: a paused tenant cannot receive security or system mail either. ๐ Requires permission: notification:pause. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
42
|
+
* @summary Pause all sending for this tenant
|
|
43
|
+
*/
|
|
44
|
+
export declare const notificationSettingsControllerPauseV1: (sendPauseDto: SendPauseDto, options?: Parameters<typeof customFetch>[1]) => Promise<notificationSettingsControllerPauseV1Response>;
|
|
45
|
+
export type notificationSettingsControllerResumeV1Response200 = {
|
|
46
|
+
data: NotificationSettingsDto;
|
|
47
|
+
status: 200;
|
|
48
|
+
};
|
|
49
|
+
export type notificationSettingsControllerResumeV1ResponseSuccess = (notificationSettingsControllerResumeV1Response200) & {
|
|
50
|
+
headers: Headers;
|
|
51
|
+
};
|
|
52
|
+
export type notificationSettingsControllerResumeV1Response = (notificationSettingsControllerResumeV1ResponseSuccess);
|
|
53
|
+
export declare const getNotificationSettingsControllerResumeV1Url: () => string;
|
|
54
|
+
/**
|
|
55
|
+
* Parked dispatches flow again on the next claim pass. Equally gated and equally audited โ the question after an incident is who turned sending back on and why. Resuming an already-running tenant succeeds: an operator making sure sending is ON must never be told no. ๐ Requires permission: notification:pause. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
56
|
+
* @summary Resume sending for this tenant
|
|
57
|
+
*/
|
|
58
|
+
export declare const notificationSettingsControllerResumeV1: (sendPauseDto: SendPauseDto, options?: Parameters<typeof customFetch>[1]) => Promise<notificationSettingsControllerResumeV1Response>;
|
|
59
|
+
export type notificationSettingsControllerSetEventModeV1Response200 = {
|
|
60
|
+
data: NotificationSettingsDto;
|
|
61
|
+
status: 200;
|
|
62
|
+
};
|
|
63
|
+
export type notificationSettingsControllerSetEventModeV1ResponseSuccess = (notificationSettingsControllerSetEventModeV1Response200) & {
|
|
64
|
+
headers: Headers;
|
|
65
|
+
};
|
|
66
|
+
export type notificationSettingsControllerSetEventModeV1Response = (notificationSettingsControllerSetEventModeV1ResponseSuccess);
|
|
67
|
+
export declare const getNotificationSettingsControllerSetEventModeV1Url: (eventKey: string) => string;
|
|
68
|
+
/**
|
|
69
|
+
* The per-event migration control (05 ยง12 step 5): `off` (the pipeline ignores the event โ no request row, no dispatch row), `shadow` (full fan-out and render, settling `skipped_shadow` instead of sending), or `live` (this platform sends it). An event with no mode set is `shadow`, so nothing sends until it is named here, and a rollback is this call with the previous mode โ no deploy, because both paths stay wired during the window. **This sets our side only:** the legacy `message-service` stops handling a trigger by a change in its own repo, so a flip to `live` is the second half of a two-repo operation. ๐ Requires permission: notification:pause. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
70
|
+
* @summary Set one event's cutover mode
|
|
71
|
+
*/
|
|
72
|
+
export declare const notificationSettingsControllerSetEventModeV1: (eventKey: string, setEventModeDto: SetEventModeDto, options?: Parameters<typeof customFetch>[1]) => Promise<notificationSettingsControllerSetEventModeV1Response>;
|
|
73
|
+
//# sourceMappingURL=notification-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-settings.d.ts","sourceRoot":"","sources":["../../../src/generated/notification-settings/notification-settings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EACZ,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,uBAAuB,CAAA;IAC7B,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,kDAAkD,GAAG,CAAC,8CAA8C,CAAC,GAAG;IAClH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,2CAA2C,GAAG,CAAC,kDAAkD,CAAC,CAAA;AAE9G,eAAO,MAAM,yCAAyC,cAMrD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,mCAAmC,GAAW,UAAU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,2CAA2C,CASzJ,CAAA;AAGH,MAAM,MAAM,gDAAgD,GAAG;IAC7D,IAAI,EAAE,uBAAuB,CAAA;IAC7B,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,gDAAgD,GAAG;IAC7D,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,oDAAoD,GAAG,CAAC,gDAAgD,CAAC,GAAG;IACtH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,kDAAkD,GAAG,CAAC,gDAAgD,CAAC,GAAG;IACpH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,6CAA6C,GAA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@@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getNotificationSettingsControllerGetV1Url = () => {
|
|
4
|
+
return `/v1/notification-settings`;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* The send-pause state with who toggled it, when and why (from the last pause/resume admin_action), plus the SMS and rendered-body flags. Send caps are null until the config surface lands with the write slice. ๐ Requires permission: notification:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
8
|
+
* @summary Get the tenant's notification settings
|
|
9
|
+
*/
|
|
10
|
+
export const notificationSettingsControllerGetV1 = async (options) => {
|
|
11
|
+
return customFetch(getNotificationSettingsControllerGetV1Url(), {
|
|
12
|
+
...options,
|
|
13
|
+
method: 'GET'
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export const getNotificationSettingsControllerPauseV1Url = () => {
|
|
17
|
+
return `/v1/notification-settings/pause`;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The kill-switch every runbook reaches for. Dispatches PARK in `queued` โ Phase B stops claiming them, nothing fails and nothing is lost โ and fan-out keeps running, so no event is dropped. A `reason` is required, the command is audited, and pausing emits the real-time on-call alert: a paused tenant cannot receive security or system mail either. ๐ Requires permission: notification:pause. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
21
|
+
* @summary Pause all sending for this tenant
|
|
22
|
+
*/
|
|
23
|
+
export const notificationSettingsControllerPauseV1 = async (sendPauseDto, options) => {
|
|
24
|
+
const getHeaders = (h) => {
|
|
25
|
+
if (!h)
|
|
26
|
+
return {};
|
|
27
|
+
if (h instanceof Headers)
|
|
28
|
+
return Object.fromEntries(h.entries());
|
|
29
|
+
if (Array.isArray(h))
|
|
30
|
+
return Object.fromEntries(h);
|
|
31
|
+
return h;
|
|
32
|
+
};
|
|
33
|
+
return customFetch(getNotificationSettingsControllerPauseV1Url(), {
|
|
34
|
+
...options,
|
|
35
|
+
method: 'POST',
|
|
36
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
37
|
+
body: JSON.stringify(sendPauseDto)
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
;
|
|
41
|
+
export const getNotificationSettingsControllerResumeV1Url = () => {
|
|
42
|
+
return `/v1/notification-settings/resume`;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Parked dispatches flow again on the next claim pass. Equally gated and equally audited โ the question after an incident is who turned sending back on and why. Resuming an already-running tenant succeeds: an operator making sure sending is ON must never be told no. ๐ Requires permission: notification:pause. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
46
|
+
* @summary Resume sending for this tenant
|
|
47
|
+
*/
|
|
48
|
+
export const notificationSettingsControllerResumeV1 = async (sendPauseDto, options) => {
|
|
49
|
+
const getHeaders = (h) => {
|
|
50
|
+
if (!h)
|
|
51
|
+
return {};
|
|
52
|
+
if (h instanceof Headers)
|
|
53
|
+
return Object.fromEntries(h.entries());
|
|
54
|
+
if (Array.isArray(h))
|
|
55
|
+
return Object.fromEntries(h);
|
|
56
|
+
return h;
|
|
57
|
+
};
|
|
58
|
+
return customFetch(getNotificationSettingsControllerResumeV1Url(), {
|
|
59
|
+
...options,
|
|
60
|
+
method: 'POST',
|
|
61
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
62
|
+
body: JSON.stringify(sendPauseDto)
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
;
|
|
66
|
+
export const getNotificationSettingsControllerSetEventModeV1Url = (eventKey) => {
|
|
67
|
+
return `/v1/notification-settings/event-modes/${eventKey}`;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* The per-event migration control (05 ยง12 step 5): `off` (the pipeline ignores the event โ no request row, no dispatch row), `shadow` (full fan-out and render, settling `skipped_shadow` instead of sending), or `live` (this platform sends it). An event with no mode set is `shadow`, so nothing sends until it is named here, and a rollback is this call with the previous mode โ no deploy, because both paths stay wired during the window. **This sets our side only:** the legacy `message-service` stops handling a trigger by a change in its own repo, so a flip to `live` is the second half of a two-repo operation. ๐ Requires permission: notification:pause. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
71
|
+
* @summary Set one event's cutover mode
|
|
72
|
+
*/
|
|
73
|
+
export const notificationSettingsControllerSetEventModeV1 = async (eventKey, setEventModeDto, options) => {
|
|
74
|
+
const getHeaders = (h) => {
|
|
75
|
+
if (!h)
|
|
76
|
+
return {};
|
|
77
|
+
if (h instanceof Headers)
|
|
78
|
+
return Object.fromEntries(h.entries());
|
|
79
|
+
if (Array.isArray(h))
|
|
80
|
+
return Object.fromEntries(h);
|
|
81
|
+
return h;
|
|
82
|
+
};
|
|
83
|
+
return customFetch(getNotificationSettingsControllerSetEventModeV1Url(eventKey), {
|
|
84
|
+
...options,
|
|
85
|
+
method: 'PUT',
|
|
86
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
87
|
+
body: JSON.stringify(setEventModeDto)
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=notification-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-settings.js","sourceRoot":"","sources":["../../../src/generated/notification-settings/notification-settings.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAU/C,CAAC;AAID,MAAM,CAAC,MAAM,yCAAyC,GAAG,GAAG,EAAE;IAK5D,OAAO,2BAA2B,CAAA;AACpC,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,KAAK,EAAG,OAA2C,EAAwD,EAAE;IAE9J,OAAO,WAAW,CAA8C,yCAAyC,EAAE,EAC3G;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA;AAsBH,MAAM,CAAC,MAAM,2CAA2C,GAAG,GAAG,EAAE;IAK9D,OAAO,iCAAiC,CAAA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