70 lines
2.4 KiB
TypeScript
70 lines
2.4 KiB
TypeScript
import type { SiteSettings } from '@prisma/client';
|
|
import type { UpdateSiteSettingsInput } from './settings.schemas';
|
|
declare const SENSITIVE_FIELDS: readonly ["smtpHost", "smtpPort", "smtpUser", "smtpPass", "smtpFromAddress", "testEmailRecipient"];
|
|
export declare const siteSettingsService: {
|
|
/** Full settings with encrypted fields decrypted (admin use) */
|
|
get(): Promise<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
organizationName: string;
|
|
organizationShortName: string;
|
|
organizationLogoUrl: string | null;
|
|
organizationFaviconUrl: string | null;
|
|
adminColorPrimary: string;
|
|
adminColorBgBase: string;
|
|
publicColorPrimary: string;
|
|
publicColorBgBase: string;
|
|
publicColorBgContainer: string;
|
|
publicHeaderGradient: string;
|
|
footerText: string;
|
|
loginSubtitle: string;
|
|
emailFromName: string;
|
|
smtpHost: string;
|
|
smtpPort: number;
|
|
smtpUser: string;
|
|
smtpPass: string;
|
|
smtpFromAddress: string;
|
|
smtpActiveProvider: string;
|
|
emailTestMode: boolean;
|
|
testEmailRecipient: string;
|
|
enableInfluence: boolean;
|
|
enableMap: boolean;
|
|
enableNewsletter: boolean;
|
|
enableLandingPages: boolean;
|
|
}>;
|
|
/** Public-safe settings (strips SMTP credentials) */
|
|
getPublic(): Promise<Omit<SiteSettings, (typeof SENSITIVE_FIELDS)[number]>>;
|
|
update(data: UpdateSiteSettingsInput): Promise<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
organizationName: string;
|
|
organizationShortName: string;
|
|
organizationLogoUrl: string | null;
|
|
organizationFaviconUrl: string | null;
|
|
adminColorPrimary: string;
|
|
adminColorBgBase: string;
|
|
publicColorPrimary: string;
|
|
publicColorBgBase: string;
|
|
publicColorBgContainer: string;
|
|
publicHeaderGradient: string;
|
|
footerText: string;
|
|
loginSubtitle: string;
|
|
emailFromName: string;
|
|
smtpHost: string;
|
|
smtpPort: number;
|
|
smtpUser: string;
|
|
smtpPass: string;
|
|
smtpFromAddress: string;
|
|
smtpActiveProvider: string;
|
|
emailTestMode: boolean;
|
|
testEmailRecipient: string;
|
|
enableInfluence: boolean;
|
|
enableMap: boolean;
|
|
enableNewsletter: boolean;
|
|
enableLandingPages: boolean;
|
|
}>;
|
|
};
|
|
export {};
|
|
//# sourceMappingURL=settings.service.d.ts.map
|