Appearance
Documentation / @kizami/law / LawRules
Interface: LawRules
Defined in: types.ts:34
Properties
agreement36
agreement36:
object
Defined in: types.ts:56
36協定の上限(分)。v0.2で使う月45h、v0.3で使う年360h・特別条項
annualLimitMinutes
annualLimitMinutes:
number
年360時間 = 21600分
monthlyLimitMinutes
monthlyLimitMinutes:
number
月45時間 = 2700分
specialAnnualLimitMinutes
specialAnnualLimitMinutes:
number
特別条項時、年720時間 = 43200分
specialMonthlyCapMinutes
specialMonthlyCapMinutes:
number
特別条項の月上限。100時間未満(=この値に達してはならない、比較は呼び出し側で <)
specialMonthlyExceedCountLimit
specialMonthlyExceedCountLimit:
number
月45時間超が許される回数、年6回まで
specialMultiMonthAverageMinutes
specialMultiMonthAverageMinutes:
number
特別条項時、複数月平均80時間 = 4800分
annualLeave
annualLeave:
object
Defined in: types.ts:71
有給の法定付与(週所定5日/フルタイムの表。比例付与の日数表は @kizami/leave が持つ)
expiryMonths
expiryMonths:
number
時効(月数)。労基法115条により24
grantTable
grantTable:
object[]
勤続月数 → 付与日数。昇順。例 [{months:6,days:10}, {months:18,days:11}, ...]
hourlyMaxDays
hourlyMaxDays:
number
時間単位年休の年間上限日数(法定5。労使協定でこれ以下に設定可)。制度導入前は 0
mandatoryTaking
mandatoryTaking:
object
年5日取得義務の対象となる付与日数の下限と、必要日数。義務がまだ存在しない期間は requiredDays: 0 で表す
mandatoryTaking.grantedDaysThreshold
grantedDaysThreshold:
number
mandatoryTaking.requiredDays
requiredDays:
number
breakRequirements
breakRequirements: readonly
object[]
Defined in: types.ts:50
休憩の付与義務(労基法34条1項)。実労働が overMinutes を超えたら minimumMinutes 以上の休憩が必要。閾値の大きい順に評価する。 「超える」は厳密な超過(ちょうど overMinutes なら義務は発生しない)。 判定側の実装は engine/src/break-check.ts 参照。
dailyStatutoryMinutes
dailyStatutoryMinutes:
number
Defined in: types.ts:43
1日の法定労働時間(分)。480(8時間)。労基法32条2項。 特例措置対象事業場(週44時間)でも1日8時間は変わらない — 緩和されるのは週の方だけ (労基法40条・労基法施行規則25条の2は「週」の特例であり「日」には及ばない)。 そのため resolve.ts の applySpecialProvisionWorkplaceOverride はこのフィールドを上書きしない。
lateNight
lateNight:
object
Defined in: types.ts:52
深夜帯(ローカル時刻の分。22:00=1320, 翌5:00=300)。労基法37条4項
endMinutes
endMinutes:
number
startMinutes
startMinutes:
number
overtime60h
overtime60h:
object
Defined in: types.ts:54
月60時間超の時間外に対する区分を分けるかと、その閾値(分)。労基法37条1項ただし書
enabled
enabled:
boolean
thresholdMinutes
thresholdMinutes:
number
weeklyStatutoryMinutes
weeklyStatutoryMinutes:
number
Defined in: types.ts:36
週の法定労働時間(分)。原則 2400(40時間)。労基法32条1項