Skip to content

Documentation


Documentation / @kizami/db / publishShiftPlan

Function: publishShiftPlan()

publishShiftPlan(db, params): Promise<{ createdAt: number; id: string; periodEnd: string; periodStart: string; publishedAt: number | null; publishedBy: string | null; tenantId: string; userId: string; } | null>

Defined in: packages/db/src/queries/shifts.ts:145

確定(publish)する。既に確定済み・存在しなければ null(呼び出し側が 404/409 を判断する)。

Parameters

db

Database | SQLiteTransaction<"async", ResultSet, schema, ExtractTablesWithRelations<schema>>

params

id

string

publishedAt

number

publishedBy

string

tenantId

string

Returns

Promise<{ createdAt: number; id: string; periodEnd: string; periodStart: string; publishedAt: number | null; publishedBy: string | null; tenantId: string; userId: string; } | null>