• erio's avatar
    refactor(channels): centralize BillingModelSource normalization and exhaustive enum maps · 375aefa2
    erio authored
    - service: add normalizeBillingModelSource helper, apply in Create/GetByID/Update/List/ListAvailable outputs
    - handler: drop channelToResponse fallback now that service owns the default; add passthrough test
    - frontend: replace ternary status/billing-source lookups with Record<Enum, ...> maps so new union members fail the build
    - chip/table: drop local type aliases, reuse UserSupportedModel/UserPricingInterval directly
    - tests: assert short-circuit on ListAll error, wrap-prefix preservation, and Name-based default lookup
    375aefa2
SupportedModelChip.vue 6.66 KB