Appearance
Documentation / @kizami/db / upsertNotificationSettings
Function: upsertNotificationSettings()
upsertNotificationSettings(
db,input):Promise<{smtpEnabled:boolean;smtpFrom:string|null;smtpHost:string|null;smtpPassword:string|null;smtpPort:number|null;smtpUser:string|null;tenantId:string;updatedAt:number;updatedBy:string;webhookEnabled:boolean;webhookUrl:string|null; }>
Defined in: packages/db/src/queries/notification-settings.ts:41
テナントの通知設定を作成、または既存行を丸ごと置き換える(部分更新ではない — 呼び出し側で既存値とマージ済みの完全な値を渡すこと)。
Parameters
db
input
UpsertNotificationSettingsInput
Returns
Promise<{ smtpEnabled: boolean; smtpFrom: string | null; smtpHost: string | null; smtpPassword: string | null; smtpPort: number | null; smtpUser: string | null; tenantId: string; updatedAt: number; updatedBy: string; webhookEnabled: boolean; webhookUrl: string | null; }>