Skip to content

Documentation


Documentation / @kizami/leave / GrantAllocationState

Interface: GrantAllocationState

Defined in: types.ts:78

1件の付与について、消化・残高を分単位で表した状態。

Properties

days

days: number

Defined in: types.ts:82


expired

expired: boolean

Defined in: types.ts:91


expiresOn

expiresOn: string

Defined in: types.ts:85


grantedMinutes

grantedMinutes: number

Defined in: types.ts:84

days × standardDayMinutes


grantedOn

grantedOn: string

Defined in: types.ts:81


hourlyUsedMinutes

hourlyUsedMinutes: number

Defined in: types.ts:88

unit='hourly' の消化のみの累計(年5日分上限の判定に使う)


id

id: string

Defined in: types.ts:79


leaveType

leaveType: LeaveType

Defined in: types.ts:80


remainingMinutes

remainingMinutes: number

Defined in: types.ts:90

時効済み(asOf >= expiresOn)の場合は 0 に補正される


usedMinutes

usedMinutes: number

Defined in: types.ts:86