assignment-user-matcher 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +106 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -1
- package/dist/matcher.class.d.ts.map +1 -1
- package/dist/matcher.class.js +11 -0
- package/dist/scheduling/constraints/availability.d.ts +44 -0
- package/dist/scheduling/constraints/availability.d.ts.map +1 -0
- package/dist/scheduling/constraints/availability.js +142 -0
- package/dist/scheduling/constraints/consecutive.d.ts +25 -0
- package/dist/scheduling/constraints/consecutive.d.ts.map +1 -0
- package/dist/scheduling/constraints/consecutive.js +215 -0
- package/dist/scheduling/constraints/constraint.d.ts +35 -0
- package/dist/scheduling/constraints/constraint.d.ts.map +1 -0
- package/dist/scheduling/constraints/constraint.js +97 -0
- package/dist/scheduling/constraints/contract.d.ts +21 -0
- package/dist/scheduling/constraints/contract.d.ts.map +1 -0
- package/dist/scheduling/constraints/contract.js +106 -0
- package/dist/scheduling/constraints/cost.d.ts +18 -0
- package/dist/scheduling/constraints/cost.d.ts.map +1 -0
- package/dist/scheduling/constraints/cost.js +65 -0
- package/dist/scheduling/constraints/daily-rest.d.ts +22 -0
- package/dist/scheduling/constraints/daily-rest.d.ts.map +1 -0
- package/dist/scheduling/constraints/daily-rest.js +118 -0
- package/dist/scheduling/constraints/duty-quota.d.ts +20 -0
- package/dist/scheduling/constraints/duty-quota.d.ts.map +1 -0
- package/dist/scheduling/constraints/duty-quota.js +95 -0
- package/dist/scheduling/constraints/engagement-floor.d.ts +28 -0
- package/dist/scheduling/constraints/engagement-floor.d.ts.map +1 -0
- package/dist/scheduling/constraints/engagement-floor.js +79 -0
- package/dist/scheduling/constraints/fairness.d.ts +34 -0
- package/dist/scheduling/constraints/fairness.d.ts.map +1 -0
- package/dist/scheduling/constraints/fairness.js +149 -0
- package/dist/scheduling/constraints/group-composition.d.ts +19 -0
- package/dist/scheduling/constraints/group-composition.d.ts.map +1 -0
- package/dist/scheduling/constraints/group-composition.js +92 -0
- package/dist/scheduling/constraints/hour-budget.d.ts +13 -0
- package/dist/scheduling/constraints/hour-budget.d.ts.map +1 -0
- package/dist/scheduling/constraints/hour-budget.js +59 -0
- package/dist/scheduling/constraints/in-shift-breaks.d.ts +24 -0
- package/dist/scheduling/constraints/in-shift-breaks.d.ts.map +1 -0
- package/dist/scheduling/constraints/in-shift-breaks.js +97 -0
- package/dist/scheduling/constraints/intervals.d.ts +5 -0
- package/dist/scheduling/constraints/intervals.d.ts.map +1 -0
- package/dist/scheduling/constraints/intervals.js +17 -0
- package/dist/scheduling/constraints/max-shift-duration.d.ts +7 -0
- package/dist/scheduling/constraints/max-shift-duration.d.ts.map +1 -0
- package/dist/scheduling/constraints/max-shift-duration.js +38 -0
- package/dist/scheduling/constraints/min-rest.d.ts +22 -0
- package/dist/scheduling/constraints/min-rest.d.ts.map +1 -0
- package/dist/scheduling/constraints/min-rest.js +60 -0
- package/dist/scheduling/constraints/min-staffing.d.ts +14 -0
- package/dist/scheduling/constraints/min-staffing.d.ts.map +1 -0
- package/dist/scheduling/constraints/min-staffing.js +59 -0
- package/dist/scheduling/constraints/night-work.d.ts +24 -0
- package/dist/scheduling/constraints/night-work.d.ts.map +1 -0
- package/dist/scheduling/constraints/night-work.js +163 -0
- package/dist/scheduling/constraints/no-overlap.d.ts +7 -0
- package/dist/scheduling/constraints/no-overlap.d.ts.map +1 -0
- package/dist/scheduling/constraints/no-overlap.js +36 -0
- package/dist/scheduling/constraints/notice.d.ts +44 -0
- package/dist/scheduling/constraints/notice.d.ts.map +1 -0
- package/dist/scheduling/constraints/notice.js +140 -0
- package/dist/scheduling/constraints/one-shift-per-day.d.ts +7 -0
- package/dist/scheduling/constraints/one-shift-per-day.d.ts.map +1 -0
- package/dist/scheduling/constraints/one-shift-per-day.js +35 -0
- package/dist/scheduling/constraints/overtime.d.ts +47 -0
- package/dist/scheduling/constraints/overtime.d.ts.map +1 -0
- package/dist/scheduling/constraints/overtime.js +149 -0
- package/dist/scheduling/constraints/protections.d.ts +21 -0
- package/dist/scheduling/constraints/protections.d.ts.map +1 -0
- package/dist/scheduling/constraints/protections.js +93 -0
- package/dist/scheduling/constraints/qualification.d.ts +18 -0
- package/dist/scheduling/constraints/qualification.d.ts.map +1 -0
- package/dist/scheduling/constraints/qualification.js +78 -0
- package/dist/scheduling/constraints/rest-days.d.ts +30 -0
- package/dist/scheduling/constraints/rest-days.d.ts.map +1 -0
- package/dist/scheduling/constraints/rest-days.js +133 -0
- package/dist/scheduling/constraints/rolling-hours.d.ts +24 -0
- package/dist/scheduling/constraints/rolling-hours.d.ts.map +1 -0
- package/dist/scheduling/constraints/rolling-hours.js +147 -0
- package/dist/scheduling/constraints/start-interval.d.ts +20 -0
- package/dist/scheduling/constraints/start-interval.d.ts.map +1 -0
- package/dist/scheduling/constraints/start-interval.js +53 -0
- package/dist/scheduling/constraints/support.d.ts +48 -0
- package/dist/scheduling/constraints/support.d.ts.map +1 -0
- package/dist/scheduling/constraints/support.js +97 -0
- package/dist/scheduling/constraints/time-off.d.ts +7 -0
- package/dist/scheduling/constraints/time-off.d.ts.map +1 -0
- package/dist/scheduling/constraints/time-off.js +42 -0
- package/dist/scheduling/constraints/weekly-rest.d.ts +22 -0
- package/dist/scheduling/constraints/weekly-rest.d.ts.map +1 -0
- package/dist/scheduling/constraints/weekly-rest.js +92 -0
- package/dist/scheduling/cost.d.ts +56 -0
- package/dist/scheduling/cost.d.ts.map +1 -0
- package/dist/scheduling/cost.js +120 -0
- package/dist/scheduling/engine/construction.d.ts +22 -0
- package/dist/scheduling/engine/construction.d.ts.map +1 -0
- package/dist/scheduling/engine/construction.js +97 -0
- package/dist/scheduling/engine/explain.d.ts +12 -0
- package/dist/scheduling/engine/explain.d.ts.map +1 -0
- package/dist/scheduling/engine/explain.js +24 -0
- package/dist/scheduling/engine/objective.d.ts +73 -0
- package/dist/scheduling/engine/objective.d.ts.map +1 -0
- package/dist/scheduling/engine/objective.js +164 -0
- package/dist/scheduling/engine/prng.d.ts +5 -0
- package/dist/scheduling/engine/prng.d.ts.map +1 -0
- package/dist/scheduling/engine/prng.js +24 -0
- package/dist/scheduling/engine/propagation.d.ts +19 -0
- package/dist/scheduling/engine/propagation.d.ts.map +1 -0
- package/dist/scheduling/engine/propagation.js +40 -0
- package/dist/scheduling/engine/search.d.ts +50 -0
- package/dist/scheduling/engine/search.d.ts.map +1 -0
- package/dist/scheduling/engine/search.js +127 -0
- package/dist/scheduling/engine/state.d.ts +28 -0
- package/dist/scheduling/engine/state.d.ts.map +1 -0
- package/dist/scheduling/engine/state.js +96 -0
- package/dist/scheduling/engine/timeline.d.ts +179 -0
- package/dist/scheduling/engine/timeline.d.ts.map +1 -0
- package/dist/scheduling/engine/timeline.js +416 -0
- package/dist/scheduling/engine/verdicts.d.ts +18 -0
- package/dist/scheduling/engine/verdicts.d.ts.map +1 -0
- package/dist/scheduling/engine/verdicts.js +74 -0
- package/dist/scheduling/index.d.ts +10 -0
- package/dist/scheduling/index.d.ts.map +1 -0
- package/dist/scheduling/index.js +29 -0
- package/dist/scheduling/model.d.ts +53 -0
- package/dist/scheduling/model.d.ts.map +1 -0
- package/dist/scheduling/model.js +379 -0
- package/dist/scheduling/operations.d.ts +134 -0
- package/dist/scheduling/operations.d.ts.map +1 -0
- package/dist/scheduling/operations.js +376 -0
- package/dist/scheduling/provenance.d.ts +33 -0
- package/dist/scheduling/provenance.d.ts.map +1 -0
- package/dist/scheduling/provenance.js +70 -0
- package/dist/scheduling/rules.d.ts +23 -0
- package/dist/scheduling/rules.d.ts.map +1 -0
- package/dist/scheduling/rules.js +37 -0
- package/dist/scheduling/scheduler.class.d.ts +24 -0
- package/dist/scheduling/scheduler.class.d.ts.map +1 -0
- package/dist/scheduling/scheduler.class.js +150 -0
- package/dist/scheduling/time.d.ts +132 -0
- package/dist/scheduling/time.d.ts.map +1 -0
- package/dist/scheduling/time.js +256 -0
- package/dist/scheduling/types.d.ts +932 -0
- package/dist/scheduling/types.d.ts.map +1 -0
- package/dist/scheduling/types.js +19 -0
- package/dist/types/matcher.d.ts +15 -0
- package/dist/types/matcher.d.ts.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -385,6 +385,12 @@ The wait clock always survives an escalation: requeues go through `addAssignment
|
|
|
385
385
|
|
|
386
386
|
Subscribe via `onAssignmentLifecycle` for `escalated` (`{ fromWorkerId, level, blockedPreviousOwner }`) and `escalationExhausted` (`{ level, parked }`) events; `expired` is still emitted first, so existing consumers are unaffected. Parked assignments are reachable with `getParkedAssignments()`, returned to the queue with `unparkAssignment(id, { resetEscalation? })`, and report `_status: 'parked'` from `getAssignment()` — they never read as "not found". `getEscalationLevel(id)` reports how far an assignment has climbed.
|
|
387
387
|
|
|
388
|
+
#### `failed` — the worker-reported outcome
|
|
389
|
+
|
|
390
|
+
`failAssignment(userId, assignmentId, reason?)` now emits `{ kind: 'failed', taskId, workerId, reason?, failedAt }`. It previously emitted nothing at all, so an explicit failure was the one terminal transition invisible to `onAssignmentLifecycle` (the workflow event stream did hear it). It is deliberately distinct from `completionBreached` with `action: 'fail'`: that is a deadline a policy acted on, this is a person reporting that the work could not be done. No `assignment` snapshot rides along — the record stays in the completed store carrying `_failedBy` / `_failureReason`, so `getAssignment()` can still answer for it.
|
|
391
|
+
|
|
392
|
+
A host that `switch`es exhaustively over `AssignmentLifecycleEvent` will see a new `kind` here; the union is additive and every existing branch keeps its shape.
|
|
393
|
+
|
|
388
394
|
### SLA policies (`Assignment.sla`)
|
|
389
395
|
|
|
390
396
|
Escalation owns the _response_ side (how long a matched user has to accept). `SlaPolicy` owns everything after that: how long the accepting user has to finish, how many times the work may be refused before it is pulled from rotation, and an absolute freshness cutoff after which the work is moot.
|
|
@@ -459,7 +465,7 @@ Semantics worth knowing:
|
|
|
459
465
|
- **The offer deadline never extends.** `notAfter` is absolute, so rejection requeues carry the same deadline — a re-offered assignment can still miss.
|
|
460
466
|
- **Fire-once, replica-safe.** Sweep entries are claimed with a `ZREM` before acting, so concurrent replicas can run the sweep in parallel.
|
|
461
467
|
- **Sweep granularity.** Schedule clocks fire on the maintenance tick (`processScheduledAssignments()`), not at the exact millisecond.
|
|
462
|
-
- **Recurrence is out of scope.** Materialize each occurrence as its own assignment from your scheduler/shift tool; re-adding an existing id never resets its clocks, so materialization is idempotent.
|
|
468
|
+
- **Recurrence is out of scope.** Materialize each occurrence as its own assignment from your scheduler/shift tool; re-adding an existing id never resets its clocks, so materialization is idempotent. The [`scheduling` module](#shift-scheduling-scheduling-module) is that shift tool if you need one — it produces dated occurrences you can feed straight in.
|
|
463
469
|
- **Operator override.** `assignToUser(id, userId)` refuses held assignments; `{ force: true }` early-activates (clocks anchor there). If the user then rejects and `notBefore` is still in the future, the assignment returns to the scheduled store.
|
|
464
470
|
- **Unparking.** `unparkAssignment(id, { resetSchedule: true })` strips the schedule policy; without it a miss-parked assignment misses again on the next sweep.
|
|
465
471
|
|
|
@@ -1491,6 +1497,105 @@ Performance test finished.
|
|
|
1491
1497
|
|
|
1492
1498
|
This demonstrates the library's impressive performance even with large numbers of assignments and shows how subsequent matching operations can be even faster after initial assignment distribution.
|
|
1493
1499
|
|
|
1500
|
+
## Shift Scheduling (`scheduling` module)
|
|
1501
|
+
|
|
1502
|
+
A companion engine for **rostering**: generating fair, constraint-compliant timetables that assign employees to shifts over a period. Unlike the matcher, this module is **pure and Redis-free** — `solveSchedule(input)` is a synchronous in-process function; wrap it in your own queue if you need one.
|
|
1503
|
+
|
|
1504
|
+
```ts
|
|
1505
|
+
import { solveSchedule } from 'assignment-user-matcher';
|
|
1506
|
+
|
|
1507
|
+
const result = solveSchedule({
|
|
1508
|
+
period: { startDate: '2026-01-05', endDate: '2026-01-11' },
|
|
1509
|
+
employees: [
|
|
1510
|
+
{ id: 'alice', tags: ['nurse'], timeOff: [{ date: '2026-01-07' }], maxHoursForPeriod: 40 },
|
|
1511
|
+
{ id: 'bob', tags: ['nurse', 'lead'], timeOff: [] },
|
|
1512
|
+
],
|
|
1513
|
+
shifts: [
|
|
1514
|
+
{ id: 'day', name: 'Day', startTime: '08:00', endTime: '16:00', minEmployees: 1, tagRequirements: { nurse: 1 } },
|
|
1515
|
+
{ id: 'night', name: 'Night', startTime: '22:00', endTime: '06:00', minEmployees: 1 }, // overnight
|
|
1516
|
+
],
|
|
1517
|
+
objective: 'balanced', // or 'standard'
|
|
1518
|
+
seed: 42, // reproducible runs
|
|
1519
|
+
timeBudgetMs: 10_000, // improvement-loop wall clock
|
|
1520
|
+
});
|
|
1521
|
+
|
|
1522
|
+
// result.status: 'optimal' | 'feasible' | 'partial'
|
|
1523
|
+
// result.assignments: [{ shiftInstanceId: 'day@2026-01-05', employeeId, date, reasons }]
|
|
1524
|
+
// result.violations: structured report of unfilled slots, tag shortfalls, soft min-hours misses
|
|
1525
|
+
```
|
|
1526
|
+
|
|
1527
|
+
Modeling rules: every shift occurrence gets a unique **shift-instance id** (`<templateId>@<date>`), overnight shifts (`endTime <= startTime`) roll into the next day explicitly, and durations are resolved through a **DST-correct clock** — pass `period.timeZone` and a 22:00–06:00 shift is 7h on the spring transition and 9h on the autumn one, not 8h. Working time is the span less `unpaidBreakMinutes`, scaled by any duty classification, so hour budgets see 8h15 for a 9h shift with a 45-minute break.
|
|
1528
|
+
|
|
1529
|
+
Constraints are self-contained TypeScript classes behind a common interface. Override hardness/weights or register customs via `constraints: { overrides, custom }`.
|
|
1530
|
+
|
|
1531
|
+
### Working-time rules
|
|
1532
|
+
|
|
1533
|
+
The `rules` field is the labour-law layer. Every field is optional and **every value is caller-supplied** — the library ships the _shapes_ EU working-time law takes, never a jurisdiction's numbers, because those differ per member state, per sector and per collective agreement, and change without notice. This is plain JSON, so a template or an LLM can produce it and the same payload can back a public API.
|
|
1534
|
+
|
|
1535
|
+
```ts
|
|
1536
|
+
const result = solveSchedule({
|
|
1537
|
+
period: { startDate: '2026-01-05', endDate: '2026-02-01', timeZone: 'Europe/Berlin' },
|
|
1538
|
+
employees,
|
|
1539
|
+
shifts,
|
|
1540
|
+
rules: {
|
|
1541
|
+
dailyRest: { minMinutes: 660 }, // Art 3 floor; ES/RO use 720
|
|
1542
|
+
weeklyRest: { minMinutes: 2100, windowDays: 7 }, // 35h; EE uses 2880
|
|
1543
|
+
workingTime: {
|
|
1544
|
+
maxPerDayMinutes: 600, // DE ArbZG §3
|
|
1545
|
+
rollingAverages: [{ maxMinutes: 2880, windowDays: 7 }], // 48h in ANY 7 days
|
|
1546
|
+
},
|
|
1547
|
+
nightWork: { window: { from: '23:00', to: '06:00' }, maxShiftMinutes: 480 },
|
|
1548
|
+
breaks: [
|
|
1549
|
+
{ afterMinutes: 360, minMinutes: 30 },
|
|
1550
|
+
{ afterMinutes: 540, minMinutes: 45 },
|
|
1551
|
+
],
|
|
1552
|
+
consecutive: { maxWorkingDays: 6, forbiddenSuccessions: [{ fromTag: 'night', toTag: 'early' }] },
|
|
1553
|
+
fairness: [
|
|
1554
|
+
{ dimension: 'nights', weight: 2 },
|
|
1555
|
+
{ dimension: 'weekends', weight: 1 },
|
|
1556
|
+
],
|
|
1557
|
+
},
|
|
1558
|
+
history, // previous-period tail, so the 1st of the month is not non-compliant by construction
|
|
1559
|
+
});
|
|
1560
|
+
```
|
|
1561
|
+
|
|
1562
|
+
Rules cover: daily rest (rolling window, reduction allowances, clock-band containment), weekly rest (two-level floor plus average), rolling working-time averages with absence neutralisation, overtime (ordinary-vs-overtime split, consent, per-day and per-window caps, time-off-in-lieu), duty-type volume quotas, night work (configurable band, per-shift cap, averaging, hazardous absolute cap, volume quotas, prohibited bands), in-shift breaks, consecutive days and nights, forbidden shift successions, minimum start interval, Sunday and holiday rules, minimum engagement, publication and change notice, availability and preferences, date-valid qualifications, group composition, statutory protections, contract limits, and fairness.
|
|
1563
|
+
|
|
1564
|
+
`Employee.rules` overrides the global set per person — that is how age classes, individual opt-outs and hazardous-work status are expressed. `Employee.personId` aggregates several contracts onto one natural person, which rest and window rules require.
|
|
1565
|
+
|
|
1566
|
+
Break entitlements are checked against shift design: `unpaidBreakMinutes` (deducted from working time) and `paidBreakMinutes` (working time, and the only thing that discharges a `paid: true` break rule). Deadline arithmetic that needs a "now" — notably whether a cancellation of a published assignment fell inside `notice.cancellationDeadlineMinutes` — is anchored by the optional `asOf` input; without it every cancellation is treated as late, the conservative reading.
|
|
1567
|
+
|
|
1568
|
+
**Overtime** is regulated separately from total working time where national law does so. `rules.overtime` defines the ordinary baseline (`ordinaryPerDayMinutes` / `ordinaryPerWeekMinutes`; a person's `contract.weeklyMinutes` overrides the weekly figure, so a part-timer's overtime starts at their agreed hours), caps the overtime portion per rolling 24h or per rolling window, and with `requiresConsent` makes any overtime conditional on the employee's recorded `overtimeConsent`. With `compensation: 'timeOff'`, each employee's period overtime accrues a `timeOffInLieu` entry in `result.ledger`.
|
|
1569
|
+
|
|
1570
|
+
**Duty-type quotas** (`rules.dutyQuotas`) cap how much of one duty type a person may hold over a rolling window, matched on `shiftTypeTag` — e.g. "at most 30 hours of stand-by in any 28 days". `maxMinutes` counts _elapsed_ duty minutes (a stand-by cap limits clock occupation, which is exactly the time a duty classification keeps out of the working-time budget); `maxCount` caps occurrences.
|
|
1571
|
+
|
|
1572
|
+
### Labour cost
|
|
1573
|
+
|
|
1574
|
+
`Employee.cost` prices the roster: hourly rate, premium bands (`night` / `sunday` / `holiday`, stacked additively or by maximum), an overtime step (`overtimeAfterMinutes` + `overtimeMultiplier`), and a `standbyRateFraction` paying the non-working remainder of a duty-classified span (e.g. stand-by owed at 1/10 of the wage). When any employee carries a cost model, `result.cost` reports `{ totalCents, byEmployee }`.
|
|
1575
|
+
|
|
1576
|
+
Cost joins the _solve_ objective only when asked: `objectives: { costWeightPerEuro: n }` adds a soft term of `n` points per euro, so the solver prefers cheaper rosters among otherwise-equal ones — and can never trade a legal breach or an unfilled slot for a saving, because score levels are lexicographic. The same arithmetic drives `repairSchedule`'s per-candidate `marginalCostCents` (which accounts for the overtime step, so the same shift is dearer in the hands of someone already at their threshold). Objective weights are hashed into `provenance.rulesHash` alongside the rules.
|
|
1577
|
+
|
|
1578
|
+
### Operational APIs
|
|
1579
|
+
|
|
1580
|
+
```ts
|
|
1581
|
+
checkCompliance(input, roster); // validate a hand-edited or externally-produced roster
|
|
1582
|
+
explainCandidate(input, who, shift); // every rule's verdict, with numbers
|
|
1583
|
+
repairSchedule(input, disruption, published); // minimal-perturbation re-plan + ranked candidates
|
|
1584
|
+
diagnoseInfeasibility(input); // why it cannot be solved, before solving
|
|
1585
|
+
```
|
|
1586
|
+
|
|
1587
|
+
`repairSchedule` is the call-in path: everything untouched is pinned, so you get a **diff** rather than an unrecognisable new roster, plus a ranked list of who can lawfully cover, each with compliance verdicts, marginal cost and a rationale. All four share the solver's constraint set — there is deliberately no second validation path.
|
|
1588
|
+
|
|
1589
|
+
### Compliance boundary
|
|
1590
|
+
|
|
1591
|
+
Ranking uses declared qualifications, contractual availability, legal limits, cost, and fairness debt computed from **realised** assignment counts. It never consumes reliability scores, no-show prediction, acceptance history or learned per-worker behaviour, and the module is not wired to the matcher's learning layer. Under AI Act Annex III point 4(b), allocating on individual behaviour or traits is high-risk, and the Art 6(3) narrow-task filter has an absolute carve-back for profiling — so that boundary is what keeps this a constraint solver. `result.provenance` records `{ engineVersion, seed, rulesHash, profilingFree }` for audit.
|
|
1592
|
+
|
|
1593
|
+
Infeasibility is never silent: understaffed periods return a best-effort partial schedule with `status: 'partial'`, an `unfilledSlots` count, and per-slot violations; slots with zero eligible employees are reported before the search runs. Violations carry `actual`, `required`, `unit` and `citation`. Malformed input throws `ScheduleValidationError`.
|
|
1594
|
+
|
|
1595
|
+
`'optimal'` means _no known improvement_, not a proof of optimality.
|
|
1596
|
+
|
|
1597
|
+
Scale (500 employees × 31 days × 3 shifts/day, full EU rule set — `pnpm benchmark:scheduling`): first feasible ~0.4s, converged within the time budget, compliance re-check ~0.1s, repair ~0.15s.
|
|
1598
|
+
|
|
1494
1599
|
## Important Considerations (Disclaimer)
|
|
1495
1600
|
|
|
1496
1601
|
- **Optimized for a Specific Use Case:** `assignment-user-matcher` is primarily designed and optimized for scenarios with a **relatively small set of active users processing a large volume of incoming assignments** (e.g., call centers, customer support teams, back-office operations). While it might work for other scenarios, its performance characteristics are best suited for this model.
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type { WorkflowDefinition, WorkflowDefinitionInput, WorkflowDefinitionSum
|
|
|
5
5
|
export { explainMatchScore, type MatchScoreExplanation } from './scoring/match-score';
|
|
6
6
|
export { extractMatchFeatures, cosineSimilarity } from './learning/features';
|
|
7
7
|
export { synthesizeRoutingWeights, DEFAULT_AUTO_WEIGHTS_OPTIONS } from './learning/auto-weights';
|
|
8
|
+
export { ShiftScheduler, solveSchedule, ScheduleValidationError, DEFAULT_MIN_REST_MINUTES, PeriodClock, checkCompliance, explainCandidate, repairSchedule, rankCandidates, diagnoseInfeasibility, hours, days, weeklyAverageOver, type AssignmentPair, type AvailabilityRule, type ComplianceReport, type ConstraintOptions, type ConstraintViolation, type DailyRestRule, type Disruption, type DutyClassification, type DutyQuota, type Employee, type HistoricalAssignment, type InfeasibilityReport, type LedgerEntry, type ModelContext, type NightWorkRule, type ObjectiveWeights, type OvertimeRule, type RepairCandidate, type RepairResult, type RuleVerdict, type ScheduleInput, type ScheduleResult, type ScheduledAssignment, type SchedulingConstraint, type SearchState, type Severity, type ShiftInstance, type ShiftTemplate, type TimeOffEntry, type WeeklyRestRule, type WorkingTimeLimits, type WorkingTimeRules, } from './scheduling';
|
|
8
9
|
export { WorkflowBuilder, WorkflowStepBuilder, workflow, linearWorkflow, approvalWorkflow } from './workflow-builder';
|
|
9
10
|
export { normalizeWorkflowDefinition, validateWorkflowDefinition } from './workflow-validation';
|
|
10
11
|
export * from './utils/cidr';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB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,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACxB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtH,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAGhG,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAExF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,eAAe,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.AssignmentMatcher = exports.createKeyBuilders = exports.validateWorkflowDefinition = exports.normalizeWorkflowDefinition = exports.approvalWorkflow = exports.linearWorkflow = exports.workflow = exports.WorkflowStepBuilder = exports.WorkflowBuilder = exports.DEFAULT_AUTO_WEIGHTS_OPTIONS = exports.synthesizeRoutingWeights = exports.cosineSimilarity = exports.extractMatchFeatures = exports.explainMatchScore = exports.userCoversTag = exports.lintAssignment = void 0;
|
|
20
|
+
exports.AssignmentMatcher = exports.createKeyBuilders = exports.validateWorkflowDefinition = exports.normalizeWorkflowDefinition = exports.approvalWorkflow = exports.linearWorkflow = exports.workflow = exports.WorkflowStepBuilder = exports.WorkflowBuilder = exports.weeklyAverageOver = exports.days = exports.hours = exports.diagnoseInfeasibility = exports.rankCandidates = exports.repairSchedule = exports.explainCandidate = exports.checkCompliance = exports.PeriodClock = exports.DEFAULT_MIN_REST_MINUTES = exports.ScheduleValidationError = exports.solveSchedule = exports.ShiftScheduler = exports.DEFAULT_AUTO_WEIGHTS_OPTIONS = exports.synthesizeRoutingWeights = exports.cosineSimilarity = exports.extractMatchFeatures = exports.explainMatchScore = exports.userCoversTag = exports.lintAssignment = void 0;
|
|
21
21
|
const matcher_class_1 = __importDefault(require("./matcher.class"));
|
|
22
22
|
exports.AssignmentMatcher = matcher_class_1.default;
|
|
23
23
|
// Pre-flight lint (pure, Redis-free) — usable host-side before addAssignment
|
|
@@ -35,6 +35,24 @@ Object.defineProperty(exports, "cosineSimilarity", { enumerable: true, get: func
|
|
|
35
35
|
var auto_weights_1 = require("./learning/auto-weights");
|
|
36
36
|
Object.defineProperty(exports, "synthesizeRoutingWeights", { enumerable: true, get: function () { return auto_weights_1.synthesizeRoutingWeights; } });
|
|
37
37
|
Object.defineProperty(exports, "DEFAULT_AUTO_WEIGHTS_OPTIONS", { enumerable: true, get: function () { return auto_weights_1.DEFAULT_AUTO_WEIGHTS_OPTIONS; } });
|
|
38
|
+
// Shift scheduling (pure, Redis-free rostering engine)
|
|
39
|
+
var scheduling_1 = require("./scheduling");
|
|
40
|
+
Object.defineProperty(exports, "ShiftScheduler", { enumerable: true, get: function () { return scheduling_1.ShiftScheduler; } });
|
|
41
|
+
Object.defineProperty(exports, "solveSchedule", { enumerable: true, get: function () { return scheduling_1.solveSchedule; } });
|
|
42
|
+
Object.defineProperty(exports, "ScheduleValidationError", { enumerable: true, get: function () { return scheduling_1.ScheduleValidationError; } });
|
|
43
|
+
Object.defineProperty(exports, "DEFAULT_MIN_REST_MINUTES", { enumerable: true, get: function () { return scheduling_1.DEFAULT_MIN_REST_MINUTES; } });
|
|
44
|
+
Object.defineProperty(exports, "PeriodClock", { enumerable: true, get: function () { return scheduling_1.PeriodClock; } });
|
|
45
|
+
// Operational APIs: validate a hand-edited roster, explain a candidate,
|
|
46
|
+
// repair around a call-in, diagnose an impossible problem.
|
|
47
|
+
Object.defineProperty(exports, "checkCompliance", { enumerable: true, get: function () { return scheduling_1.checkCompliance; } });
|
|
48
|
+
Object.defineProperty(exports, "explainCandidate", { enumerable: true, get: function () { return scheduling_1.explainCandidate; } });
|
|
49
|
+
Object.defineProperty(exports, "repairSchedule", { enumerable: true, get: function () { return scheduling_1.repairSchedule; } });
|
|
50
|
+
Object.defineProperty(exports, "rankCandidates", { enumerable: true, get: function () { return scheduling_1.rankCandidates; } });
|
|
51
|
+
Object.defineProperty(exports, "diagnoseInfeasibility", { enumerable: true, get: function () { return scheduling_1.diagnoseInfeasibility; } });
|
|
52
|
+
// Rule-authoring arithmetic (weekly-average → rolling-window-total, etc.)
|
|
53
|
+
Object.defineProperty(exports, "hours", { enumerable: true, get: function () { return scheduling_1.hours; } });
|
|
54
|
+
Object.defineProperty(exports, "days", { enumerable: true, get: function () { return scheduling_1.days; } });
|
|
55
|
+
Object.defineProperty(exports, "weeklyAverageOver", { enumerable: true, get: function () { return scheduling_1.weeklyAverageOver; } });
|
|
38
56
|
// Workflow builder DSL
|
|
39
57
|
var workflow_builder_1 = require("./workflow-builder");
|
|
40
58
|
Object.defineProperty(exports, "WorkflowBuilder", { enumerable: true, get: function () { return workflow_builder_1.WorkflowBuilder; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matcher.class.d.ts","sourceRoot":"","sources":["../src/matcher.class.ts"],"names":[],"mappings":"AAMA,OAAO,EAMH,KAAK,iBAAiB,EACt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876,6 +2876,17 @@ class AssignmentMatcher {
|
|
|
2876
2876
|
payload: { reason },
|
|
2877
2877
|
});
|
|
2878
2878
|
}
|
|
2879
|
+
// Every other terminal transition emits one; this one did not, so a
|
|
2880
|
+
// worker-reported failure was invisible to lifecycle observers (and
|
|
2881
|
+
// therefore to the platform's webhooks, sockets and push) even though
|
|
2882
|
+
// the workflow stream above heard about it.
|
|
2883
|
+
this.emitAssignmentLifecycle({
|
|
2884
|
+
kind: 'failed',
|
|
2885
|
+
taskId: assignmentId,
|
|
2886
|
+
workerId: userId,
|
|
2887
|
+
reason,
|
|
2888
|
+
failedAt: now,
|
|
2889
|
+
});
|
|
2879
2890
|
return true;
|
|
2880
2891
|
}
|
|
2881
2892
|
// ============================================================================
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Availability and preferences.
|
|
3
|
+
*
|
|
4
|
+
* Four kinds, deliberately distinct rather than a single boolean:
|
|
5
|
+
*
|
|
6
|
+
* - `unavailable` — a hard blackout, like time off.
|
|
7
|
+
* - `available` — an allow-list. Once a person declares *any* availability
|
|
8
|
+
* window, anything outside every window is ineligible. This is the
|
|
9
|
+
* part-time and student pattern, and it inverts the default.
|
|
10
|
+
* - `preferred` / `avoid` — soft, weighted. A preference model that only has
|
|
11
|
+
* "can't work" cannot express "would rather not", so every unwanted shift
|
|
12
|
+
* becomes a refusal and the roster loses the flexibility it needs.
|
|
13
|
+
*
|
|
14
|
+
* The soft half matters for more than morale: pro-rata fairness in shift quality
|
|
15
|
+
* is a live discrimination question under the part-time and fixed-term
|
|
16
|
+
* directives, and it can only be traded off if it is scored rather than binary.
|
|
17
|
+
*/
|
|
18
|
+
import type { AvailabilityRule, SchedulingConstraint, SearchState, ShiftInstance } from '../types';
|
|
19
|
+
export declare function availability(): SchedulingConstraint;
|
|
20
|
+
/** Minutes of `range` covered by one availability rule's clock window. */
|
|
21
|
+
declare function overlapsRule(clock: {
|
|
22
|
+
minutesInClockRange: (r: {
|
|
23
|
+
start: number;
|
|
24
|
+
end: number;
|
|
25
|
+
}, c: {
|
|
26
|
+
from: string;
|
|
27
|
+
to: string;
|
|
28
|
+
}) => number;
|
|
29
|
+
}, range: {
|
|
30
|
+
start: number;
|
|
31
|
+
end: number;
|
|
32
|
+
}, rule: AvailabilityRule): number;
|
|
33
|
+
/**
|
|
34
|
+
* Weighted preference term over the whole roster, for the soft objective:
|
|
35
|
+
* every assigned pair contributes its `avoid` weights and is credited its
|
|
36
|
+
* `preferred` weights. This is what makes `preferred`/`avoid` *scored* rather
|
|
37
|
+
* than advisory — without it, the solver would treat a roster of avoided
|
|
38
|
+
* shifts and a roster of preferred ones as equal.
|
|
39
|
+
*/
|
|
40
|
+
export declare function preferencePenalty(state: SearchState): number;
|
|
41
|
+
/** Soft preference score for a pair: negative is better. Used by candidate ranking. */
|
|
42
|
+
export declare function preferenceScore(clock: Parameters<typeof overlapsRule>[0], rules: AvailabilityRule[] | undefined, inst: ShiftInstance): number;
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=availability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.d.ts","sourceRoot":"","sources":["../../../src/scheduling/constraints/availability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAe,oBAAoB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIhH,wBAAgB,YAAY,IAAI,oBAAoB,CAiFnD;AAED,0EAA0E;AAC1E,iBAAS,YAAY,CACjB,KAAK,EAAE;IAAE,mBAAmB,EAAE,CAAC,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAA;CAAE,EAC9G,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EACrC,IAAI,EAAE,gBAAgB,GACvB,MAAM,CAGR;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAW5D;AAED,uFAAuF;AACvF,wBAAgB,eAAe,CAC3B,KAAK,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,EACzC,KAAK,EAAE,gBAAgB,EAAE,GAAG,SAAS,EACrC,IAAI,EAAE,aAAa,GACpB,MAAM,CAWR"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Availability and preferences.
|
|
4
|
+
*
|
|
5
|
+
* Four kinds, deliberately distinct rather than a single boolean:
|
|
6
|
+
*
|
|
7
|
+
* - `unavailable` — a hard blackout, like time off.
|
|
8
|
+
* - `available` — an allow-list. Once a person declares *any* availability
|
|
9
|
+
* window, anything outside every window is ineligible. This is the
|
|
10
|
+
* part-time and student pattern, and it inverts the default.
|
|
11
|
+
* - `preferred` / `avoid` — soft, weighted. A preference model that only has
|
|
12
|
+
* "can't work" cannot express "would rather not", so every unwanted shift
|
|
13
|
+
* becomes a refusal and the roster loses the flexibility it needs.
|
|
14
|
+
*
|
|
15
|
+
* The soft half matters for more than morale: pro-rata fairness in shift quality
|
|
16
|
+
* is a live discrimination question under the part-time and fixed-term
|
|
17
|
+
* directives, and it can only be traded off if it is scored rather than binary.
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.preferenceScore = exports.preferencePenalty = exports.availability = void 0;
|
|
21
|
+
const model_1 = require("../model");
|
|
22
|
+
const support_1 = require("./support");
|
|
23
|
+
function availability() {
|
|
24
|
+
const constraint = (0, support_1.fromVerdict)({
|
|
25
|
+
id: 'availability',
|
|
26
|
+
hardness: 'hard',
|
|
27
|
+
weight: 1,
|
|
28
|
+
verdict(state, pair) {
|
|
29
|
+
const inst = (0, support_1.instanceOf)(state, pair);
|
|
30
|
+
const employee = state.ctx.employeeById.get(pair.employeeId);
|
|
31
|
+
if (!inst || !employee?.availability?.length)
|
|
32
|
+
return (0, support_1.pass)('availability', 'no availability rules');
|
|
33
|
+
const clock = state.ctx.clock;
|
|
34
|
+
const range = { start: inst.startMinute, end: inst.endMinute };
|
|
35
|
+
const span = range.end - range.start;
|
|
36
|
+
const matching = employee.availability.filter((rule) => (0, model_1.availabilityApplies)(rule, inst));
|
|
37
|
+
for (const rule of matching.filter((r) => r.kind === 'unavailable')) {
|
|
38
|
+
if (overlapsRule(clock, range, rule) > 0) {
|
|
39
|
+
return (0, support_1.fail)('availability', 'hard', `employee "${pair.employeeId}" is unavailable during "${inst.id}"`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// Declaring any 'available' window inverts the default: everything
|
|
43
|
+
// outside every declared window is ineligible, including days no
|
|
44
|
+
// window mentions — a Monday-only declaration bars Tuesdays too.
|
|
45
|
+
const allowLists = employee.availability.filter((r) => r.kind === 'available');
|
|
46
|
+
if (allowLists.length > 0) {
|
|
47
|
+
const covered = matching
|
|
48
|
+
.filter((r) => r.kind === 'available')
|
|
49
|
+
.reduce((max, rule) => Math.max(max, overlapsRule(clock, range, rule)), 0);
|
|
50
|
+
if (covered < span) {
|
|
51
|
+
return (0, support_1.fail)('availability', 'hard', `"${inst.id}" falls outside employee "${pair.employeeId}"'s declared availability`, { actual: covered, required: span, unit: 'minutes' });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const avoided = matching.find((r) => r.kind === 'avoid' && overlapsRule(clock, range, r) > 0);
|
|
55
|
+
if (avoided) {
|
|
56
|
+
return (0, support_1.fail)('availability', 'soft', `employee "${pair.employeeId}" prefers to avoid "${inst.id}"`, {
|
|
57
|
+
actual: avoided.weight ?? 1,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
const preferred = matching.find((r) => r.kind === 'preferred' && overlapsRule(clock, range, r) > 0);
|
|
61
|
+
return (0, support_1.pass)('availability', preferred ? `matches a preferred window` : 'no availability objection');
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
// A soft breach must not make the pair ineligible, and it must not leak
|
|
65
|
+
// into the hard score bucket (the SPI levels by constraint, not by
|
|
66
|
+
// verdict), so `delta` reports hard breaches only. The soft half is scored
|
|
67
|
+
// by `preferencePenalty`, which the objective adds at the soft level.
|
|
68
|
+
const innerDelta = constraint.delta;
|
|
69
|
+
constraint.delta = (state, pair) => {
|
|
70
|
+
const v = constraint.verdict(state, pair);
|
|
71
|
+
if (v.pass)
|
|
72
|
+
return 0;
|
|
73
|
+
return v.severity === 'hard' ? innerDelta(state, pair) : 0;
|
|
74
|
+
};
|
|
75
|
+
constraint.evaluate = (state) => {
|
|
76
|
+
const out = [];
|
|
77
|
+
for (const [instanceId, employees] of state.assignments) {
|
|
78
|
+
for (const employeeId of employees) {
|
|
79
|
+
const v = constraint.verdict(state, { employeeId, shiftInstanceId: instanceId });
|
|
80
|
+
if (v.pass || v.severity === 'hard')
|
|
81
|
+
continue;
|
|
82
|
+
out.push({
|
|
83
|
+
constraintId: 'availability',
|
|
84
|
+
severity: v.severity,
|
|
85
|
+
employeeId,
|
|
86
|
+
shiftInstanceId: instanceId,
|
|
87
|
+
message: v.message,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return out;
|
|
92
|
+
};
|
|
93
|
+
return constraint;
|
|
94
|
+
}
|
|
95
|
+
exports.availability = availability;
|
|
96
|
+
/** Minutes of `range` covered by one availability rule's clock window. */
|
|
97
|
+
function overlapsRule(clock, range, rule) {
|
|
98
|
+
if (rule.from === undefined || rule.to === undefined)
|
|
99
|
+
return range.end - range.start;
|
|
100
|
+
return clock.minutesInClockRange(range, { from: rule.from, to: rule.to });
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Weighted preference term over the whole roster, for the soft objective:
|
|
104
|
+
* every assigned pair contributes its `avoid` weights and is credited its
|
|
105
|
+
* `preferred` weights. This is what makes `preferred`/`avoid` *scored* rather
|
|
106
|
+
* than advisory — without it, the solver would treat a roster of avoided
|
|
107
|
+
* shifts and a roster of preferred ones as equal.
|
|
108
|
+
*/
|
|
109
|
+
function preferencePenalty(state) {
|
|
110
|
+
let penalty = 0;
|
|
111
|
+
for (const [instanceId, employees] of state.assignments) {
|
|
112
|
+
const inst = state.ctx.instanceById.get(instanceId);
|
|
113
|
+
if (!inst)
|
|
114
|
+
continue;
|
|
115
|
+
for (const employeeId of employees) {
|
|
116
|
+
const rules = state.ctx.employeeById.get(employeeId)?.availability;
|
|
117
|
+
if (rules?.length)
|
|
118
|
+
penalty += preferenceScore(state.ctx.clock, rules, inst);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return penalty;
|
|
122
|
+
}
|
|
123
|
+
exports.preferencePenalty = preferencePenalty;
|
|
124
|
+
/** Soft preference score for a pair: negative is better. Used by candidate ranking. */
|
|
125
|
+
function preferenceScore(clock, rules, inst) {
|
|
126
|
+
if (!rules?.length)
|
|
127
|
+
return 0;
|
|
128
|
+
const range = { start: inst.startMinute, end: inst.endMinute };
|
|
129
|
+
let score = 0;
|
|
130
|
+
for (const rule of rules) {
|
|
131
|
+
if (!(0, model_1.availabilityApplies)(rule, inst))
|
|
132
|
+
continue;
|
|
133
|
+
if (overlapsRule(clock, range, rule) <= 0)
|
|
134
|
+
continue;
|
|
135
|
+
if (rule.kind === 'preferred')
|
|
136
|
+
score -= rule.weight ?? 1;
|
|
137
|
+
if (rule.kind === 'avoid')
|
|
138
|
+
score += rule.weight ?? 1;
|
|
139
|
+
}
|
|
140
|
+
return score;
|
|
141
|
+
}
|
|
142
|
+
exports.preferenceScore = preferenceScore;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sequence rules — limits on runs rather than on totals.
|
|
3
|
+
*
|
|
4
|
+
* These are the rules a per-assignment check structurally cannot see, because
|
|
5
|
+
* the breach lives in the *pattern*, not in any one shift:
|
|
6
|
+
*
|
|
7
|
+
* - **Consecutive working days.** Portugal caps a shift worker at six.
|
|
8
|
+
* - **Consecutive night shifts, and the rest owed when the run ends.** Finland
|
|
9
|
+
* allows five and then requires 24h off; the Netherlands allows seven (eight
|
|
10
|
+
* by collective agreement) and then requires 46h. Only NL and FI legislate a
|
|
11
|
+
* cap at all — elsewhere it is collective-agreement territory, which is
|
|
12
|
+
* exactly why it has to be configuration rather than a built-in number.
|
|
13
|
+
* - **Forbidden successions.** The "quick return" — a late shift followed by
|
|
14
|
+
* an early one — is the single most-requested constraint in nurse rostering
|
|
15
|
+
* and is invisible to a rest rule whenever the gap technically clears the
|
|
16
|
+
* minimum.
|
|
17
|
+
*/
|
|
18
|
+
import type { ConsecutiveRule, SchedulingConstraint } from '../types';
|
|
19
|
+
export declare const CONSECUTIVE_CITATION = "National working-time law / collective agreement";
|
|
20
|
+
/** Every sequence constraint the rule configures. */
|
|
21
|
+
export declare function consecutiveConstraints(rule: ConsecutiveRule): SchedulingConstraint[];
|
|
22
|
+
export declare function consecutiveDays(maxDays: number): SchedulingConstraint;
|
|
23
|
+
export declare function consecutiveNights(rule: ConsecutiveRule): SchedulingConstraint;
|
|
24
|
+
export declare function shiftSuccession(forbidden: NonNullable<ConsecutiveRule['forbiddenSuccessions']>): SchedulingConstraint;
|
|
25
|
+
//# sourceMappingURL=consecutive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consecutive.d.ts","sourceRoot":"","sources":["../../../src/scheduling/constraints/consecutive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAe,oBAAoB,EAA8B,MAAM,UAAU,CAAC;AAI/G,eAAO,MAAM,oBAAoB,qDAAqD,CAAC;AAEvF,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,eAAe,GAAG,oBAAoB,EAAE,CAQpF;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB,CAiCrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,GAAG,oBAAoB,CAqE7E;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC,sBAAsB,CAAC,CAAC,GAAG,oBAAoB,CA6DrH"}
|