Skip to content

Documentation


Documentation / @kizami/db / getUserNotificationSettings

Function: getUserNotificationSettings()

getUserNotificationSettings(db, params): Promise<{ approvalRequestEmail: boolean; approvalRequestWebhook: boolean; correctionAlertEmail: boolean; correctionAlertWebhook: boolean; emailAddress: string | null; leaveAlertEmail: boolean; leaveAlertWebhook: boolean; missingClockOutEmail: boolean; missingClockOutWebhook: boolean; overtimeAlertEmail: boolean; overtimeAlertWebhook: boolean; shiftVarianceEmail: boolean; shiftVarianceWebhook: boolean; tenantId: string; updatedAt: number; userId: string; webhookUrl: string | null; } | null>

Defined in: packages/db/src/queries/user-notification-settings.ts:17

指定テナント・ユーザーの個人通知設定を返す(未設定なら null)。

Parameters

db

Database

params

tenantId

string

userId

string

Returns

Promise<{ approvalRequestEmail: boolean; approvalRequestWebhook: boolean; correctionAlertEmail: boolean; correctionAlertWebhook: boolean; emailAddress: string | null; leaveAlertEmail: boolean; leaveAlertWebhook: boolean; missingClockOutEmail: boolean; missingClockOutWebhook: boolean; overtimeAlertEmail: boolean; overtimeAlertWebhook: boolean; shiftVarianceEmail: boolean; shiftVarianceWebhook: boolean; tenantId: string; updatedAt: number; userId: string; webhookUrl: string | null; } | null>