variable settings

Properties

email: { get apiKey(): string; get fromAddress(): string; get hasApiKey(): boolean; get provider(): string; template(): string; templateSet(type: EmailTemplateType): { subject: string; html: string; text: string; }; }

Read a raw (possibly encrypted) value from the cache.

Write a raw value to the DB (low-level, prefer update.*).

setup: { clearCache; complete; isComplete; }
square: { get accessToken(): string; get hasToken(): boolean; get locationId(): string; get sandbox(): boolean; get webhookSignatureKey(): string; }
stripe: { get hasKey(): boolean; get keyMode(): "test" | "live" | null; get secretKey(): string; get webhookEndpointId(): string; get webhookSecret(): string; }
update: { appleWallet; attendeeColumnOrder; bookingFee: (v: string) => Promise<void>; bunnySubdomain; businessEmail; clearPaymentProvider: () => Promise<void>; contactPageText; country: (v: string) => Promise<void>; currentTask; customDomain; customDomainLastValidated: () => Promise<void>; email: { apiKey; fromAddress; provider; template: (
content: string
) => Promise<void>
; }
; embedHosts; eventColumnOrder; googleWallet; headerImageUrl; homepageText; lastPrunedLogins; lastPrunedPayments; lastPrunedSessions; lastPrunedTokens; latestScriptVersion; latestScriptVersionName; paymentProvider: (v: PaymentProviderType) => Promise<void>; showPublicApi; showPublicSite; square: { accessToken; locationId; sandbox; webhookSignatureKey; }; stripe: { secretKey; webhookConfig: (config: { secret: string; endpointId: string; }) => Promise<void>; }; terms; theme: (v: Theme) => Promise<void>; websiteTitle; }

Methods

bookingFee(): string
businessEmail(): string
clearTestOverride(...keys: (keyof SettingsData)[]): void

Remove specific test override keys (falls back to data).

Clear all test overrides.

country(): string
currency(): string
currentTask(): string
customDomain(): string
embedHosts(): string
homepageText(): string
paymentProvider(): PaymentProviderType | null
phonePrefix(): string
publicKey(): string
setForTest(overrides: Partial<SettingsData>): void

Set test overrides (survive invalidateCache, cleared by clearTestOverrides).

showPublicApi(): boolean
showPublicSite(): boolean
terms(): string
theme(): Theme
timezone(): string
websiteTitle(): string