import { AccountingProvider, ProviderName } from './accounting-provider'; import { tahesabProvider } from './tahesab.provider'; import { zarrinProvider } from './zarrin.provider'; /** * Every accounting software, keyed by the admin switch's value. A new one is a * driver file plus one line here — the same shape as the SMS drivers (D26). */ export const ACCOUNTING_PROVIDERS: Readonly> = { tahesab: tahesabProvider, zarrin: zarrinProvider, }; export function isProviderName(v: unknown): v is ProviderName { return typeof v === 'string' && Object.prototype.hasOwnProperty.call(ACCOUNTING_PROVIDERS, v); } export * from './accounting-provider';