Skip to content

Documentation


Documentation / @kizami/db / index / getUserNotificationSettings

Function: getUserNotificationSettings() ​

getUserNotificationSettings(db, params): Promise<{ approvalRequestEmail: boolean; approvalRequestPush: boolean; approvalRequestWebhook: boolean; correctionAlertEmail: boolean; correctionAlertPush: boolean; correctionAlertWebhook: boolean; emailAddress: string | null; leaveAlertEmail: boolean; leaveAlertPush: boolean; leaveAlertWebhook: boolean; missingClockOutEmail: boolean; missingClockOutPush: boolean; missingClockOutWebhook: boolean; overtimeAlertEmail: boolean; overtimeAlertPush: boolean; overtimeAlertWebhook: boolean; shiftVarianceEmail: boolean; shiftVariancePush: 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; approvalRequestPush: boolean; approvalRequestWebhook: boolean; correctionAlertEmail: boolean; correctionAlertPush: boolean; correctionAlertWebhook: boolean; emailAddress: string | null; leaveAlertEmail: boolean; leaveAlertPush: boolean; leaveAlertWebhook: boolean; missingClockOutEmail: boolean; missingClockOutPush: boolean; missingClockOutWebhook: boolean; overtimeAlertEmail: boolean; overtimeAlertPush: boolean; overtimeAlertWebhook: boolean; shiftVarianceEmail: boolean; shiftVariancePush: boolean; shiftVarianceWebhook: boolean; tenantId: string; updatedAt: number; userId: string; webhookUrl: string | null; } | null>