@elaraai/e3-ui 1.0.86 → 1.0.87
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/dist/src/bind/data-indexed.d.ts +159 -0
- package/dist/src/bind/data-indexed.d.ts.map +1 -0
- package/dist/src/bind/data-indexed.js +105 -0
- package/dist/src/bind/data-indexed.js.map +1 -0
- package/dist/src/bind/data.d.ts +5 -3
- package/dist/src/bind/data.d.ts.map +1 -1
- package/dist/src/bind/data.js +6 -0
- package/dist/src/bind/data.js.map +1 -1
- package/dist/src/bind/record.d.ts +34 -23
- package/dist/src/bind/record.d.ts.map +1 -1
- package/dist/src/bind/record.js +46 -19
- package/dist/src/bind/record.js.map +1 -1
- package/dist/src/calendar/index.d.ts +2923 -0
- package/dist/src/calendar/index.d.ts.map +1 -0
- package/dist/src/calendar/index.js +135 -0
- package/dist/src/calendar/index.js.map +1 -0
- package/dist/src/decision/queue.d.ts +3 -3
- package/dist/src/decision/queue.d.ts.map +1 -1
- package/dist/src/decision/queue.js +2 -2
- package/dist/src/decision/queue.js.map +1 -1
- package/dist/src/decision/types.d.ts +4 -0
- package/dist/src/decision/types.d.ts.map +1 -1
- package/dist/src/decision/types.js +4 -0
- package/dist/src/decision/types.js.map +1 -1
- package/dist/src/flowchart/canvas.d.ts +114 -0
- package/dist/src/flowchart/canvas.d.ts.map +1 -0
- package/dist/src/flowchart/canvas.js +84 -0
- package/dist/src/flowchart/canvas.js.map +1 -0
- package/dist/src/flowchart/flowchart.d.ts +79 -0
- package/dist/src/flowchart/flowchart.d.ts.map +1 -0
- package/dist/src/flowchart/flowchart.js +9 -0
- package/dist/src/flowchart/flowchart.js.map +1 -0
- package/dist/src/flowchart/index.d.ts +305 -0
- package/dist/src/flowchart/index.d.ts.map +1 -0
- package/dist/src/flowchart/index.js +267 -0
- package/dist/src/flowchart/index.js.map +1 -0
- package/dist/src/flowchart/library.d.ts +720 -0
- package/dist/src/flowchart/library.d.ts.map +1 -0
- package/dist/src/flowchart/library.js +611 -0
- package/dist/src/flowchart/library.js.map +1 -0
- package/dist/src/flowchart/over.d.ts +234 -0
- package/dist/src/flowchart/over.d.ts.map +1 -0
- package/dist/src/flowchart/over.js +220 -0
- package/dist/src/flowchart/over.js.map +1 -0
- package/dist/src/flowchart/patch.d.ts +64 -0
- package/dist/src/flowchart/patch.d.ts.map +1 -0
- package/dist/src/flowchart/patch.js +67 -0
- package/dist/src/flowchart/patch.js.map +1 -0
- package/dist/src/flowchart/payload.d.ts +8220 -0
- package/dist/src/flowchart/payload.d.ts.map +1 -0
- package/dist/src/flowchart/payload.js +521 -0
- package/dist/src/flowchart/payload.js.map +1 -0
- package/dist/src/flowchart/types.d.ts +393 -0
- package/dist/src/flowchart/types.d.ts.map +1 -0
- package/dist/src/flowchart/types.js +216 -0
- package/dist/src/flowchart/types.js.map +1 -0
- package/dist/src/flowchart/values.d.ts +267 -0
- package/dist/src/flowchart/values.d.ts.map +1 -0
- package/dist/src/flowchart/values.js +216 -0
- package/dist/src/flowchart/values.js.map +1 -0
- package/dist/src/flowchart/window.d.ts +521 -0
- package/dist/src/flowchart/window.d.ts.map +1 -0
- package/dist/src/flowchart/window.js +69 -0
- package/dist/src/flowchart/window.js.map +1 -0
- package/dist/src/index.d.ts +25 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +48 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +35 -3
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +72 -3
- package/dist/src/internal.js.map +1 -1
- package/dist/src/plan/assemble.d.ts +2224 -0
- package/dist/src/plan/assemble.d.ts.map +1 -0
- package/dist/src/plan/assemble.js +210 -0
- package/dist/src/plan/assemble.js.map +1 -0
- package/dist/src/plan/builders.d.ts +790 -0
- package/dist/src/plan/builders.d.ts.map +1 -0
- package/dist/src/plan/builders.js +749 -0
- package/dist/src/plan/builders.js.map +1 -0
- package/dist/src/plan/event-rows.d.ts +2565 -0
- package/dist/src/plan/event-rows.d.ts.map +1 -0
- package/dist/src/plan/event-rows.js +689 -0
- package/dist/src/plan/event-rows.js.map +1 -0
- package/dist/src/plan/factories.d.ts +458 -0
- package/dist/src/plan/factories.d.ts.map +1 -0
- package/dist/src/plan/factories.js +484 -0
- package/dist/src/plan/factories.js.map +1 -0
- package/dist/src/plan/index.d.ts +672 -0
- package/dist/src/plan/index.d.ts.map +1 -0
- package/dist/src/plan/index.js +532 -0
- package/dist/src/plan/index.js.map +1 -0
- package/dist/src/plan/ir.d.ts +2594 -0
- package/dist/src/plan/ir.d.ts.map +1 -0
- package/dist/src/plan/ir.js +78 -0
- package/dist/src/plan/ir.js.map +1 -0
- package/dist/src/plan/library.d.ts +772 -0
- package/dist/src/plan/library.d.ts.map +1 -0
- package/dist/src/plan/library.js +424 -0
- package/dist/src/plan/library.js.map +1 -0
- package/dist/src/plan/ordered-source.d.ts +27 -0
- package/dist/src/plan/ordered-source.d.ts.map +1 -0
- package/dist/src/plan/ordered-source.js +48 -0
- package/dist/src/plan/ordered-source.js.map +1 -0
- package/dist/src/plan/over.d.ts +247 -0
- package/dist/src/plan/over.d.ts.map +1 -0
- package/dist/src/plan/over.js +266 -0
- package/dist/src/plan/over.js.map +1 -0
- package/dist/src/plan/pick.d.ts +78 -0
- package/dist/src/plan/pick.d.ts.map +1 -0
- package/dist/src/plan/pick.js +146 -0
- package/dist/src/plan/pick.js.map +1 -0
- package/dist/src/plan/plan.d.ts +11611 -0
- package/dist/src/plan/plan.d.ts.map +1 -0
- package/dist/src/plan/plan.js +428 -0
- package/dist/src/plan/plan.js.map +1 -0
- package/dist/src/plan/refs.d.ts +218 -0
- package/dist/src/plan/refs.d.ts.map +1 -0
- package/dist/src/plan/refs.js +226 -0
- package/dist/src/plan/refs.js.map +1 -0
- package/dist/src/plan/root.d.ts +290 -0
- package/dist/src/plan/root.d.ts.map +1 -0
- package/dist/src/plan/root.js +463 -0
- package/dist/src/plan/root.js.map +1 -0
- package/dist/src/plan/series.d.ts +13554 -0
- package/dist/src/plan/series.d.ts.map +1 -0
- package/dist/src/plan/series.js +1921 -0
- package/dist/src/plan/series.js.map +1 -0
- package/dist/src/plan/types.d.ts +12400 -0
- package/dist/src/plan/types.d.ts.map +1 -0
- package/dist/src/plan/types.js +1335 -0
- package/dist/src/plan/types.js.map +1 -0
- package/dist/src/roster/coverage.d.ts +240 -0
- package/dist/src/roster/coverage.d.ts.map +1 -0
- package/dist/src/roster/coverage.js +109 -0
- package/dist/src/roster/coverage.js.map +1 -0
- package/dist/src/roster/index.d.ts +4028 -0
- package/dist/src/roster/index.d.ts.map +1 -0
- package/dist/src/roster/index.js +115 -0
- package/dist/src/roster/index.js.map +1 -0
- package/dist/src/roster/library.d.ts +106 -0
- package/dist/src/roster/library.d.ts.map +1 -0
- package/dist/src/roster/library.js +78 -0
- package/dist/src/roster/library.js.map +1 -0
- package/dist/src/roster/people.d.ts +50 -0
- package/dist/src/roster/people.d.ts.map +1 -0
- package/dist/src/roster/people.js +32 -0
- package/dist/src/roster/people.js.map +1 -0
- package/dist/src/roster/rules.d.ts +275 -0
- package/dist/src/roster/rules.d.ts.map +1 -0
- package/dist/src/roster/rules.js +162 -0
- package/dist/src/roster/rules.js.map +1 -0
- package/dist/src/roster/types.d.ts +672 -0
- package/dist/src/roster/types.d.ts.map +1 -0
- package/dist/src/roster/types.js +248 -0
- package/dist/src/roster/types.js.map +1 -0
- package/dist/src/roster/visibility.d.ts +66 -0
- package/dist/src/roster/visibility.d.ts.map +1 -0
- package/dist/src/roster/visibility.js +25 -0
- package/dist/src/roster/visibility.js.map +1 -0
- package/dist/src/schedule/days.d.ts +54 -0
- package/dist/src/schedule/days.d.ts.map +1 -0
- package/dist/src/schedule/days.js +68 -0
- package/dist/src/schedule/days.js.map +1 -0
- package/dist/src/schedule/events.d.ts +433 -0
- package/dist/src/schedule/events.d.ts.map +1 -0
- package/dist/src/schedule/events.js +851 -0
- package/dist/src/schedule/events.js.map +1 -0
- package/dist/src/schedule/index.d.ts +150 -0
- package/dist/src/schedule/index.d.ts.map +1 -0
- package/dist/src/schedule/index.js +132 -0
- package/dist/src/schedule/index.js.map +1 -0
- package/dist/src/schedule/library.d.ts +70 -0
- package/dist/src/schedule/library.d.ts.map +1 -0
- package/dist/src/schedule/library.js +102 -0
- package/dist/src/schedule/library.js.map +1 -0
- package/dist/src/schedule/patch.d.ts +74 -0
- package/dist/src/schedule/patch.d.ts.map +1 -0
- package/dist/src/schedule/patch.js +68 -0
- package/dist/src/schedule/patch.js.map +1 -0
- package/dist/src/schedule/record-window.d.ts +189 -0
- package/dist/src/schedule/record-window.d.ts.map +1 -0
- package/dist/src/schedule/record-window.js +95 -0
- package/dist/src/schedule/record-window.js.map +1 -0
- package/dist/src/schedule/resources.d.ts +165 -0
- package/dist/src/schedule/resources.d.ts.map +1 -0
- package/dist/src/schedule/resources.js +234 -0
- package/dist/src/schedule/resources.js.map +1 -0
- package/dist/src/schedule/templates.d.ts +47 -0
- package/dist/src/schedule/templates.d.ts.map +1 -0
- package/dist/src/schedule/templates.js +61 -0
- package/dist/src/schedule/templates.js.map +1 -0
- package/dist/src/schedule/types.d.ts +1677 -0
- package/dist/src/schedule/types.d.ts.map +1 -0
- package/dist/src/schedule/types.js +374 -0
- package/dist/src/schedule/types.js.map +1 -0
- package/dist/src/schedule/window.d.ts +154 -0
- package/dist/src/schedule/window.d.ts.map +1 -0
- package/dist/src/schedule/window.js +363 -0
- package/dist/src/schedule/window.js.map +1 -0
- package/dist/src/sheet/bridge.d.ts +385 -0
- package/dist/src/sheet/bridge.d.ts.map +1 -0
- package/dist/src/sheet/bridge.js +809 -0
- package/dist/src/sheet/bridge.js.map +1 -0
- package/dist/src/sheet/columns.d.ts +410 -0
- package/dist/src/sheet/columns.d.ts.map +1 -0
- package/dist/src/sheet/columns.js +99 -0
- package/dist/src/sheet/columns.js.map +1 -0
- package/dist/src/sheet/context-bridge.d.ts +48 -0
- package/dist/src/sheet/context-bridge.d.ts.map +1 -0
- package/dist/src/sheet/context-bridge.js +216 -0
- package/dist/src/sheet/context-bridge.js.map +1 -0
- package/dist/src/sheet/draft-bridge.d.ts +37 -0
- package/dist/src/sheet/draft-bridge.d.ts.map +1 -0
- package/dist/src/sheet/draft-bridge.js +153 -0
- package/dist/src/sheet/draft-bridge.js.map +1 -0
- package/dist/src/sheet/drafts.d.ts +14 -0
- package/dist/src/sheet/drafts.d.ts.map +1 -0
- package/dist/src/sheet/drafts.js +14 -0
- package/dist/src/sheet/drafts.js.map +1 -0
- package/dist/src/sheet/editing-bridge.d.ts +40 -0
- package/dist/src/sheet/editing-bridge.d.ts.map +1 -0
- package/dist/src/sheet/editing-bridge.js +231 -0
- package/dist/src/sheet/editing-bridge.js.map +1 -0
- package/dist/src/sheet/editing-types.d.ts +268 -0
- package/dist/src/sheet/editing-types.d.ts.map +1 -0
- package/dist/src/sheet/editing-types.js +34 -0
- package/dist/src/sheet/editing-types.js.map +1 -0
- package/dist/src/sheet/edits.d.ts +37 -0
- package/dist/src/sheet/edits.d.ts.map +1 -0
- package/dist/src/sheet/edits.js +31 -0
- package/dist/src/sheet/edits.js.map +1 -0
- package/dist/src/sheet/fields.d.ts +693 -0
- package/dist/src/sheet/fields.d.ts.map +1 -0
- package/dist/src/sheet/fields.js +280 -0
- package/dist/src/sheet/fields.js.map +1 -0
- package/dist/src/sheet/group.d.ts +165 -0
- package/dist/src/sheet/group.d.ts.map +1 -0
- package/dist/src/sheet/group.js +52 -0
- package/dist/src/sheet/group.js.map +1 -0
- package/dist/src/sheet/index.d.ts +542 -0
- package/dist/src/sheet/index.d.ts.map +1 -0
- package/dist/src/sheet/index.js +387 -0
- package/dist/src/sheet/index.js.map +1 -0
- package/dist/src/sheet/library.d.ts +284 -0
- package/dist/src/sheet/library.d.ts.map +1 -0
- package/dist/src/sheet/library.js +259 -0
- package/dist/src/sheet/library.js.map +1 -0
- package/dist/src/sheet/link.d.ts +398 -0
- package/dist/src/sheet/link.d.ts.map +1 -0
- package/dist/src/sheet/link.js +228 -0
- package/dist/src/sheet/link.js.map +1 -0
- package/dist/src/sheet/record.d.ts +75 -0
- package/dist/src/sheet/record.d.ts.map +1 -0
- package/dist/src/sheet/record.js +128 -0
- package/dist/src/sheet/record.js.map +1 -0
- package/dist/src/sheet/registers.d.ts +681 -0
- package/dist/src/sheet/registers.d.ts.map +1 -0
- package/dist/src/sheet/registers.js +671 -0
- package/dist/src/sheet/registers.js.map +1 -0
- package/dist/src/sheet/root.d.ts +329 -0
- package/dist/src/sheet/root.d.ts.map +1 -0
- package/dist/src/sheet/root.js +511 -0
- package/dist/src/sheet/root.js.map +1 -0
- package/dist/src/sheet/seed-bridge.d.ts +14 -0
- package/dist/src/sheet/seed-bridge.d.ts.map +1 -0
- package/dist/src/sheet/seed-bridge.js +51 -0
- package/dist/src/sheet/seed-bridge.js.map +1 -0
- package/dist/src/sheet/sheet.d.ts +11819 -0
- package/dist/src/sheet/sheet.d.ts.map +1 -0
- package/dist/src/sheet/sheet.js +236 -0
- package/dist/src/sheet/sheet.js.map +1 -0
- package/dist/src/sheet/sub-rows.d.ts +299 -0
- package/dist/src/sheet/sub-rows.d.ts.map +1 -0
- package/dist/src/sheet/sub-rows.js +272 -0
- package/dist/src/sheet/sub-rows.js.map +1 -0
- package/dist/src/sheet/templates.d.ts +161 -0
- package/dist/src/sheet/templates.d.ts.map +1 -0
- package/dist/src/sheet/templates.js +122 -0
- package/dist/src/sheet/templates.js.map +1 -0
- package/dist/src/sheet/transactions.d.ts +76 -0
- package/dist/src/sheet/transactions.d.ts.map +1 -0
- package/dist/src/sheet/transactions.js +40 -0
- package/dist/src/sheet/transactions.js.map +1 -0
- package/dist/src/sheet/types.d.ts +15226 -0
- package/dist/src/sheet/types.d.ts.map +1 -0
- package/dist/src/sheet/types.js +1070 -0
- package/dist/src/sheet/types.js.map +1 -0
- package/dist/src/sheet/views.d.ts +29 -0
- package/dist/src/sheet/views.d.ts.map +1 -0
- package/dist/src/sheet/views.js +43 -0
- package/dist/src/sheet/views.js.map +1 -0
- package/dist/src/studio/component.d.ts.map +1 -1
- package/dist/src/studio/component.js +11 -8
- package/dist/src/studio/component.js.map +1 -1
- package/dist/src/utils/derive.d.ts +134 -8
- package/dist/src/utils/derive.d.ts.map +1 -1
- package/dist/src/utils/derive.js +409 -7
- package/dist/src/utils/derive.js.map +1 -1
- package/dist/src/utils/ordered-source.d.ts +38 -0
- package/dist/src/utils/ordered-source.d.ts.map +1 -0
- package/dist/src/utils/ordered-source.js +45 -0
- package/dist/src/utils/ordered-source.js.map +1 -0
- package/dist/src/utils/row-inspector.d.ts +36 -0
- package/dist/src/utils/row-inspector.d.ts.map +1 -0
- package/dist/src/utils/row-inspector.js +49 -0
- package/dist/src/utils/row-inspector.js.map +1 -0
- package/dist/test/bind/data/data.examples.d.ts +21 -19
- package/dist/test/bind/data/data.examples.d.ts.map +1 -1
- package/dist/test/bind/data/data.examples.js +122 -122
- package/dist/test/bind/data/data.examples.js.map +1 -1
- package/dist/test/bind/record/record.examples.d.ts.map +1 -1
- package/dist/test/bind/record/record.examples.js +9 -9
- package/dist/test/bind/record/record.examples.js.map +1 -1
- package/dist/test/calendar/calendar-records.examples.d.ts +228 -0
- package/dist/test/calendar/calendar-records.examples.d.ts.map +1 -0
- package/dist/test/calendar/calendar-records.examples.js +91 -0
- package/dist/test/calendar/calendar-records.examples.js.map +1 -0
- package/dist/test/calendar/calendar.examples.d.ts +776 -0
- package/dist/test/calendar/calendar.examples.d.ts.map +1 -0
- package/dist/test/calendar/calendar.examples.js +336 -0
- package/dist/test/calendar/calendar.examples.js.map +1 -0
- package/dist/test/decision/journal.examples.d.ts +28 -28
- package/dist/test/decision/journal.examples.d.ts.map +1 -1
- package/dist/test/decision/journal.examples.js +4 -4
- package/dist/test/decision/journal.examples.js.map +1 -1
- package/dist/test/decision/queue.examples.d.ts.map +1 -1
- package/dist/test/decision/queue.examples.js +5 -7
- package/dist/test/decision/queue.examples.js.map +1 -1
- package/dist/test/flowchart/flowchart.examples.d.ts +3713 -0
- package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -0
- package/dist/test/flowchart/flowchart.examples.js +465 -0
- package/dist/test/flowchart/flowchart.examples.js.map +1 -0
- package/dist/test/plan/plan-events.examples.d.ts +3666 -0
- package/dist/test/plan/plan-events.examples.d.ts.map +1 -0
- package/dist/test/plan/plan-events.examples.js +773 -0
- package/dist/test/plan/plan-events.examples.js.map +1 -0
- package/dist/test/plan/plan-records.examples.d.ts +3 -0
- package/dist/test/plan/plan-records.examples.d.ts.map +1 -0
- package/dist/test/plan/plan-records.examples.js +45 -0
- package/dist/test/plan/plan-records.examples.js.map +1 -0
- package/dist/test/plan/plan-windows.examples.d.ts +588 -0
- package/dist/test/plan/plan-windows.examples.d.ts.map +1 -0
- package/dist/test/plan/plan-windows.examples.js +170 -0
- package/dist/test/plan/plan-windows.examples.js.map +1 -0
- package/dist/test/plan/plan.examples.d.ts +8095 -0
- package/dist/test/plan/plan.examples.d.ts.map +1 -0
- package/dist/test/plan/plan.examples.js +2500 -0
- package/dist/test/plan/plan.examples.js.map +1 -0
- package/dist/test/roster/domain.examples.d.ts +367 -0
- package/dist/test/roster/domain.examples.d.ts.map +1 -0
- package/dist/test/roster/domain.examples.js +72 -0
- package/dist/test/roster/domain.examples.js.map +1 -0
- package/dist/test/roster/roster-records.examples.d.ts +729 -0
- package/dist/test/roster/roster-records.examples.d.ts.map +1 -0
- package/dist/test/roster/roster-records.examples.js +86 -0
- package/dist/test/roster/roster-records.examples.js.map +1 -0
- package/dist/test/roster/roster.examples.d.ts +750 -0
- package/dist/test/roster/roster.examples.d.ts.map +1 -0
- package/dist/test/roster/roster.examples.js +198 -0
- package/dist/test/roster/roster.examples.js.map +1 -0
- package/dist/test/roster/warehouse.d.ts +87 -0
- package/dist/test/roster/warehouse.d.ts.map +1 -0
- package/dist/test/roster/warehouse.js +883 -0
- package/dist/test/roster/warehouse.js.map +1 -0
- package/dist/test/sheet/sheet-link.examples.d.ts +7 -0
- package/dist/test/sheet/sheet-link.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet-link.examples.js +41 -0
- package/dist/test/sheet/sheet-link.examples.js.map +1 -0
- package/dist/test/sheet/sheet-records.examples.d.ts +421 -0
- package/dist/test/sheet/sheet-records.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet-records.examples.js +79 -0
- package/dist/test/sheet/sheet-records.examples.js.map +1 -0
- package/dist/test/sheet/sheet-transactions.examples.d.ts +7 -0
- package/dist/test/sheet/sheet-transactions.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet-transactions.examples.js +58 -0
- package/dist/test/sheet/sheet-transactions.examples.js.map +1 -0
- package/dist/test/sheet/sheet.examples.d.ts +5562 -0
- package/dist/test/sheet/sheet.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet.examples.js +1178 -0
- package/dist/test/sheet/sheet.examples.js.map +1 -0
- package/dist/test/studio/studio.examples.d.ts.map +1 -1
- package/dist/test/studio/studio.examples.js +11 -11
- package/dist/test/studio/studio.examples.js.map +1 -1
- package/package.json +12 -9
|
@@ -0,0 +1,672 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { ArrayType, BooleanType, DateTimeType, DictType, FloatType, IntegerType, NullType, OptionType, SetType, StringType, StructType, VariantType } from "@elaraai/east";
|
|
6
|
+
/**
|
|
7
|
+
* One shift of one group on one day. Day zero is the record key's UTC date.
|
|
8
|
+
* @remarks Slot keys compare by East value, including when decoded in the browser.
|
|
9
|
+
* @property day - Day within the week, from zero to six
|
|
10
|
+
* @property group - Group key
|
|
11
|
+
* @property shift - Shift key
|
|
12
|
+
*/
|
|
13
|
+
export declare const RosterSlotType: StructType<{
|
|
14
|
+
readonly day: IntegerType;
|
|
15
|
+
readonly group: StringType;
|
|
16
|
+
readonly shift: StringType;
|
|
17
|
+
}>;
|
|
18
|
+
export type RosterSlotType = typeof RosterSlotType;
|
|
19
|
+
/**
|
|
20
|
+
* The subject of an assignment.
|
|
21
|
+
* @remarks Requests reserve positions without pretending an agency has supplied a named person.
|
|
22
|
+
* @property person - The original staff record key
|
|
23
|
+
* @property request - The agency asked to supply someone
|
|
24
|
+
*/
|
|
25
|
+
export declare const RosterWhoType: VariantType<{
|
|
26
|
+
readonly person: StringType;
|
|
27
|
+
readonly request: StringType;
|
|
28
|
+
}>;
|
|
29
|
+
export type RosterWhoType = typeof RosterWhoType;
|
|
30
|
+
/**
|
|
31
|
+
* An assignment stored within one week.
|
|
32
|
+
* @remarks A start offset moves the start; overtime extends the end. Agreement is absent for an unchanged shift.
|
|
33
|
+
* @property slot - The day, group and shift
|
|
34
|
+
* @property who - A named person or an agency request
|
|
35
|
+
* @property position - Position held on this assignment
|
|
36
|
+
* @property activity - One skill or duty, or none
|
|
37
|
+
* @property offset - Start offset in hours, negative for an early start
|
|
38
|
+
* @property overtime - Additional hours after the shift
|
|
39
|
+
* @property agreed - Whether the person agreed to changed hours
|
|
40
|
+
*/
|
|
41
|
+
export declare const RosterAssignmentType: StructType<{
|
|
42
|
+
readonly slot: StructType<{
|
|
43
|
+
readonly day: IntegerType;
|
|
44
|
+
readonly group: StringType;
|
|
45
|
+
readonly shift: StringType;
|
|
46
|
+
}>;
|
|
47
|
+
readonly who: VariantType<{
|
|
48
|
+
readonly person: StringType;
|
|
49
|
+
readonly request: StringType;
|
|
50
|
+
}>;
|
|
51
|
+
readonly position: StringType;
|
|
52
|
+
readonly activity: OptionType<StringType>;
|
|
53
|
+
readonly offset: FloatType;
|
|
54
|
+
readonly overtime: FloatType;
|
|
55
|
+
readonly agreed: OptionType<BooleanType>;
|
|
56
|
+
}>;
|
|
57
|
+
export type RosterAssignmentType = typeof RosterAssignmentType;
|
|
58
|
+
/**
|
|
59
|
+
* A slot's staffing and work targets.
|
|
60
|
+
* @remarks A duty needs assigned hours, whereas a skill also has holder capacity.
|
|
61
|
+
* @property positions - Positions to fill
|
|
62
|
+
* @property hours - Hours required by skill or duty key
|
|
63
|
+
*/
|
|
64
|
+
export declare const RosterRequirementType: StructType<{
|
|
65
|
+
readonly positions: IntegerType;
|
|
66
|
+
readonly hours: DictType<StringType, FloatType>;
|
|
67
|
+
}>;
|
|
68
|
+
export type RosterRequirementType = typeof RosterRequirementType;
|
|
69
|
+
/** Targets keyed by the complete slot. @remarks Use East's comparator for these struct keys. */
|
|
70
|
+
export declare const RosterRequirementsType: DictType<StructType<{
|
|
71
|
+
readonly day: IntegerType;
|
|
72
|
+
readonly group: StringType;
|
|
73
|
+
readonly shift: StringType;
|
|
74
|
+
}>, StructType<{
|
|
75
|
+
readonly positions: IntegerType;
|
|
76
|
+
readonly hours: DictType<StringType, FloatType>;
|
|
77
|
+
}>>;
|
|
78
|
+
export type RosterRequirementsType = typeof RosterRequirementsType;
|
|
79
|
+
/**
|
|
80
|
+
* The durable status of a week.
|
|
81
|
+
* @remarks Publishing saves the complete week and its status atomically.
|
|
82
|
+
* @property draft - An editable week
|
|
83
|
+
* @property published - A read-only week and its publication instant
|
|
84
|
+
*/
|
|
85
|
+
export declare const RosterStatusType: VariantType<{
|
|
86
|
+
readonly draft: NullType;
|
|
87
|
+
readonly published: StructType<{
|
|
88
|
+
readonly at: DateTimeType;
|
|
89
|
+
}>;
|
|
90
|
+
}>;
|
|
91
|
+
export type RosterStatusType = typeof RosterStatusType;
|
|
92
|
+
/**
|
|
93
|
+
* The single atomic entry in the roster record.
|
|
94
|
+
* @remarks Assignments, targets, dismissals and publication share one optimistic patch baseline.
|
|
95
|
+
* @property status - Draft or published
|
|
96
|
+
* @property assignments - Assignments by stable identifier
|
|
97
|
+
* @property requirements - Targets by slot
|
|
98
|
+
* @property dismissed - Proposal identifiers rejected for this week
|
|
99
|
+
*/
|
|
100
|
+
export declare const RosterWeekType: StructType<{
|
|
101
|
+
readonly status: VariantType<{
|
|
102
|
+
readonly draft: NullType;
|
|
103
|
+
readonly published: StructType<{
|
|
104
|
+
readonly at: DateTimeType;
|
|
105
|
+
}>;
|
|
106
|
+
}>;
|
|
107
|
+
readonly assignments: DictType<StringType, StructType<{
|
|
108
|
+
readonly slot: StructType<{
|
|
109
|
+
readonly day: IntegerType;
|
|
110
|
+
readonly group: StringType;
|
|
111
|
+
readonly shift: StringType;
|
|
112
|
+
}>;
|
|
113
|
+
readonly who: VariantType<{
|
|
114
|
+
readonly person: StringType;
|
|
115
|
+
readonly request: StringType;
|
|
116
|
+
}>;
|
|
117
|
+
readonly position: StringType;
|
|
118
|
+
readonly activity: OptionType<StringType>;
|
|
119
|
+
readonly offset: FloatType;
|
|
120
|
+
readonly overtime: FloatType;
|
|
121
|
+
readonly agreed: OptionType<BooleanType>;
|
|
122
|
+
}>>;
|
|
123
|
+
readonly requirements: DictType<StructType<{
|
|
124
|
+
readonly day: IntegerType;
|
|
125
|
+
readonly group: StringType;
|
|
126
|
+
readonly shift: StringType;
|
|
127
|
+
}>, StructType<{
|
|
128
|
+
readonly positions: IntegerType;
|
|
129
|
+
readonly hours: DictType<StringType, FloatType>;
|
|
130
|
+
}>>;
|
|
131
|
+
readonly dismissed: SetType<StringType>;
|
|
132
|
+
}>;
|
|
133
|
+
export type RosterWeekType = typeof RosterWeekType;
|
|
134
|
+
/** Weeks keyed by their first day at UTC midnight. @remarks This is the roster record's stored wire type. */
|
|
135
|
+
export declare const RosterWeeksType: DictType<DateTimeType, StructType<{
|
|
136
|
+
readonly status: VariantType<{
|
|
137
|
+
readonly draft: NullType;
|
|
138
|
+
readonly published: StructType<{
|
|
139
|
+
readonly at: DateTimeType;
|
|
140
|
+
}>;
|
|
141
|
+
}>;
|
|
142
|
+
readonly assignments: DictType<StringType, StructType<{
|
|
143
|
+
readonly slot: StructType<{
|
|
144
|
+
readonly day: IntegerType;
|
|
145
|
+
readonly group: StringType;
|
|
146
|
+
readonly shift: StringType;
|
|
147
|
+
}>;
|
|
148
|
+
readonly who: VariantType<{
|
|
149
|
+
readonly person: StringType;
|
|
150
|
+
readonly request: StringType;
|
|
151
|
+
}>;
|
|
152
|
+
readonly position: StringType;
|
|
153
|
+
readonly activity: OptionType<StringType>;
|
|
154
|
+
readonly offset: FloatType;
|
|
155
|
+
readonly overtime: FloatType;
|
|
156
|
+
readonly agreed: OptionType<BooleanType>;
|
|
157
|
+
}>>;
|
|
158
|
+
readonly requirements: DictType<StructType<{
|
|
159
|
+
readonly day: IntegerType;
|
|
160
|
+
readonly group: StringType;
|
|
161
|
+
readonly shift: StringType;
|
|
162
|
+
}>, StructType<{
|
|
163
|
+
readonly positions: IntegerType;
|
|
164
|
+
readonly hours: DictType<StringType, FloatType>;
|
|
165
|
+
}>>;
|
|
166
|
+
readonly dismissed: SetType<StringType>;
|
|
167
|
+
}>>;
|
|
168
|
+
export type RosterWeeksType = typeof RosterWeeksType;
|
|
169
|
+
/**
|
|
170
|
+
* A skill within a group, or a duty available to every group.
|
|
171
|
+
* @remarks Keys are unique across all skills and duties.
|
|
172
|
+
* @property key - Stable identifier
|
|
173
|
+
* @property label - Display name
|
|
174
|
+
* @property code - Short code on assignment chips
|
|
175
|
+
*/
|
|
176
|
+
export declare const RosterSkillType: StructType<{
|
|
177
|
+
readonly key: StringType;
|
|
178
|
+
readonly label: StringType;
|
|
179
|
+
readonly code: StringType;
|
|
180
|
+
}>;
|
|
181
|
+
export type RosterSkillType = typeof RosterSkillType;
|
|
182
|
+
/**
|
|
183
|
+
* A group of people and the skills its work requires.
|
|
184
|
+
* @remarks The array order controls the grid and library order.
|
|
185
|
+
* @property key - Stable identifier
|
|
186
|
+
* @property label - Display name
|
|
187
|
+
* @property skills - Skills in display order
|
|
188
|
+
*/
|
|
189
|
+
export declare const RosterGroupType: StructType<{
|
|
190
|
+
readonly key: StringType;
|
|
191
|
+
readonly label: StringType;
|
|
192
|
+
readonly skills: ArrayType<StructType<{
|
|
193
|
+
readonly key: StringType;
|
|
194
|
+
readonly label: StringType;
|
|
195
|
+
readonly code: StringType;
|
|
196
|
+
}>>;
|
|
197
|
+
}>;
|
|
198
|
+
export type RosterGroupType = typeof RosterGroupType;
|
|
199
|
+
/**
|
|
200
|
+
* A recurring shift's time and nominal hours.
|
|
201
|
+
* @remarks An end past midnight belongs to the following day; the assignment still belongs to its start day.
|
|
202
|
+
* @property key - Stable identifier
|
|
203
|
+
* @property label - Display name
|
|
204
|
+
* @property code - Short code in the week layout
|
|
205
|
+
* @property start - Start time in UTC, shared with Schedule
|
|
206
|
+
* @property hours - Nominal shift duration
|
|
207
|
+
*/
|
|
208
|
+
export declare const RosterShiftType: StructType<{
|
|
209
|
+
readonly key: StringType;
|
|
210
|
+
readonly label: StringType;
|
|
211
|
+
readonly code: StringType;
|
|
212
|
+
readonly start: StructType<{
|
|
213
|
+
readonly hour: IntegerType;
|
|
214
|
+
readonly minute: IntegerType;
|
|
215
|
+
}>;
|
|
216
|
+
readonly hours: FloatType;
|
|
217
|
+
}>;
|
|
218
|
+
export type RosterShiftType = typeof RosterShiftType;
|
|
219
|
+
/**
|
|
220
|
+
* A position someone may hold on a shift.
|
|
221
|
+
* @remarks Position order determines lead ordering in the grid.
|
|
222
|
+
* @property key - Stable identifier
|
|
223
|
+
* @property label - Display name
|
|
224
|
+
* @property code - Chip badge
|
|
225
|
+
* @property lead - Whether this position satisfies the lead rule
|
|
226
|
+
*/
|
|
227
|
+
export declare const RosterPositionType: StructType<{
|
|
228
|
+
readonly key: StringType;
|
|
229
|
+
readonly label: StringType;
|
|
230
|
+
readonly code: StringType;
|
|
231
|
+
readonly lead: BooleanType;
|
|
232
|
+
}>;
|
|
233
|
+
export type RosterPositionType = typeof RosterPositionType;
|
|
234
|
+
/**
|
|
235
|
+
* An agency from which positions may be requested.
|
|
236
|
+
* @remarks The first agency supplies the suggested open-position fix.
|
|
237
|
+
* @property key - Stable identifier
|
|
238
|
+
* @property name - Display name
|
|
239
|
+
*/
|
|
240
|
+
export declare const RosterAgencyType: StructType<{
|
|
241
|
+
readonly key: StringType;
|
|
242
|
+
readonly name: StringType;
|
|
243
|
+
}>;
|
|
244
|
+
export type RosterAgencyType = typeof RosterAgencyType;
|
|
245
|
+
/**
|
|
246
|
+
* A person resolved from the author's keyed staff data.
|
|
247
|
+
* @remarks Roster reads staff; all edits go to the weeks record.
|
|
248
|
+
* @property key - Original staff key
|
|
249
|
+
* @property name - Display name
|
|
250
|
+
* @property group - Home group
|
|
251
|
+
* @property position - Default position
|
|
252
|
+
* @property skills - Skill keys held
|
|
253
|
+
* @property contract - Contracted weekly hours
|
|
254
|
+
* @property agency - Whether this is a named agency worker
|
|
255
|
+
* @property trainer - Whether this person trains others
|
|
256
|
+
* @property trainee - Whether this person needs a trainer
|
|
257
|
+
* @property usual - Usual shift, or none
|
|
258
|
+
*/
|
|
259
|
+
export declare const RosterPersonType: StructType<{
|
|
260
|
+
readonly key: StringType;
|
|
261
|
+
readonly name: StringType;
|
|
262
|
+
readonly group: StringType;
|
|
263
|
+
readonly position: StringType;
|
|
264
|
+
readonly skills: SetType<StringType>;
|
|
265
|
+
readonly contract: FloatType;
|
|
266
|
+
readonly agency: BooleanType;
|
|
267
|
+
readonly trainer: BooleanType;
|
|
268
|
+
readonly trainee: BooleanType;
|
|
269
|
+
readonly usual: OptionType<StringType>;
|
|
270
|
+
}>;
|
|
271
|
+
export type RosterPersonType = typeof RosterPersonType;
|
|
272
|
+
/**
|
|
273
|
+
* Built-in checks enabled for the roster.
|
|
274
|
+
* @remarks Rest reads this week only; double booking is always reported.
|
|
275
|
+
* @property rest - Minimum hours between shifts; zero disables the rest check
|
|
276
|
+
* @property lead - Check staffed slots for a lead
|
|
277
|
+
* @property trainer - Check trainees have a trainer
|
|
278
|
+
* @property skill - Check activities against held skills
|
|
279
|
+
* @property agree - Report unagreed changed hours
|
|
280
|
+
*/
|
|
281
|
+
export declare const RosterRulesType: StructType<{
|
|
282
|
+
readonly rest: FloatType;
|
|
283
|
+
readonly lead: BooleanType;
|
|
284
|
+
readonly trainer: BooleanType;
|
|
285
|
+
readonly skill: BooleanType;
|
|
286
|
+
readonly agree: BooleanType;
|
|
287
|
+
}>;
|
|
288
|
+
export type RosterRulesType = typeof RosterRulesType;
|
|
289
|
+
/**
|
|
290
|
+
* Optional costing configuration.
|
|
291
|
+
* @remarks Omitting costs hides monetary readouts; it does not affect staffing checks.
|
|
292
|
+
* @property currency - Currency identifier for the shared formatter
|
|
293
|
+
* @property rates - Permanent, overtime and agency hourly rates
|
|
294
|
+
* @property budget - Daily budget, or none
|
|
295
|
+
*/
|
|
296
|
+
export declare const RosterCostsType: StructType<{
|
|
297
|
+
readonly currency: StringType;
|
|
298
|
+
readonly rates: StructType<{
|
|
299
|
+
readonly permanent: FloatType;
|
|
300
|
+
readonly overtime: FloatType;
|
|
301
|
+
readonly agency: FloatType;
|
|
302
|
+
}>;
|
|
303
|
+
readonly budget: OptionType<FloatType>;
|
|
304
|
+
}>;
|
|
305
|
+
export type RosterCostsType = typeof RosterCostsType;
|
|
306
|
+
/**
|
|
307
|
+
* Complete reference data used by coverage and checks.
|
|
308
|
+
* @remarks Visibility filters never remove people from this context.
|
|
309
|
+
* @property people - All resolved staff by original key
|
|
310
|
+
* @property groups - Groups and their skills
|
|
311
|
+
* @property duties - Activities available to every group
|
|
312
|
+
* @property shifts - Shift definitions
|
|
313
|
+
* @property positions - Position definitions
|
|
314
|
+
* @property agencies - Agencies available for gap fixes
|
|
315
|
+
* @property rules - Enabled rules
|
|
316
|
+
* @property costs - Optional monetary configuration
|
|
317
|
+
*/
|
|
318
|
+
export declare const RosterContextType: StructType<{
|
|
319
|
+
readonly people: DictType<StringType, StructType<{
|
|
320
|
+
readonly key: StringType;
|
|
321
|
+
readonly name: StringType;
|
|
322
|
+
readonly group: StringType;
|
|
323
|
+
readonly position: StringType;
|
|
324
|
+
readonly skills: SetType<StringType>;
|
|
325
|
+
readonly contract: FloatType;
|
|
326
|
+
readonly agency: BooleanType;
|
|
327
|
+
readonly trainer: BooleanType;
|
|
328
|
+
readonly trainee: BooleanType;
|
|
329
|
+
readonly usual: OptionType<StringType>;
|
|
330
|
+
}>>;
|
|
331
|
+
readonly groups: ArrayType<StructType<{
|
|
332
|
+
readonly key: StringType;
|
|
333
|
+
readonly label: StringType;
|
|
334
|
+
readonly skills: ArrayType<StructType<{
|
|
335
|
+
readonly key: StringType;
|
|
336
|
+
readonly label: StringType;
|
|
337
|
+
readonly code: StringType;
|
|
338
|
+
}>>;
|
|
339
|
+
}>>;
|
|
340
|
+
readonly duties: ArrayType<StructType<{
|
|
341
|
+
readonly key: StringType;
|
|
342
|
+
readonly label: StringType;
|
|
343
|
+
readonly code: StringType;
|
|
344
|
+
}>>;
|
|
345
|
+
readonly shifts: ArrayType<StructType<{
|
|
346
|
+
readonly key: StringType;
|
|
347
|
+
readonly label: StringType;
|
|
348
|
+
readonly code: StringType;
|
|
349
|
+
readonly start: StructType<{
|
|
350
|
+
readonly hour: IntegerType;
|
|
351
|
+
readonly minute: IntegerType;
|
|
352
|
+
}>;
|
|
353
|
+
readonly hours: FloatType;
|
|
354
|
+
}>>;
|
|
355
|
+
readonly positions: ArrayType<StructType<{
|
|
356
|
+
readonly key: StringType;
|
|
357
|
+
readonly label: StringType;
|
|
358
|
+
readonly code: StringType;
|
|
359
|
+
readonly lead: BooleanType;
|
|
360
|
+
}>>;
|
|
361
|
+
readonly agencies: ArrayType<StructType<{
|
|
362
|
+
readonly key: StringType;
|
|
363
|
+
readonly name: StringType;
|
|
364
|
+
}>>;
|
|
365
|
+
readonly rules: StructType<{
|
|
366
|
+
readonly rest: FloatType;
|
|
367
|
+
readonly lead: BooleanType;
|
|
368
|
+
readonly trainer: BooleanType;
|
|
369
|
+
readonly skill: BooleanType;
|
|
370
|
+
readonly agree: BooleanType;
|
|
371
|
+
}>;
|
|
372
|
+
readonly costs: OptionType<StructType<{
|
|
373
|
+
readonly currency: StringType;
|
|
374
|
+
readonly rates: StructType<{
|
|
375
|
+
readonly permanent: FloatType;
|
|
376
|
+
readonly overtime: FloatType;
|
|
377
|
+
readonly agency: FloatType;
|
|
378
|
+
}>;
|
|
379
|
+
readonly budget: OptionType<FloatType>;
|
|
380
|
+
}>>;
|
|
381
|
+
}>;
|
|
382
|
+
export type RosterContextType = typeof RosterContextType;
|
|
383
|
+
/**
|
|
384
|
+
* Coverage for one required activity.
|
|
385
|
+
* @remarks Duties have no holder count or capacity and no skill gap.
|
|
386
|
+
* @property skill - Skill or duty key
|
|
387
|
+
* @property needed - Required hours
|
|
388
|
+
* @property holders - Number of people holding the skill, or none for a duty
|
|
389
|
+
* @property capacity - Nominal hours available from holders, or none for a duty
|
|
390
|
+
* @property gap - Positive shortfall in skill capacity
|
|
391
|
+
* @property assigned - Hours explicitly assigned to this activity
|
|
392
|
+
*/
|
|
393
|
+
export declare const RosterCoverageLineType: StructType<{
|
|
394
|
+
readonly skill: StringType;
|
|
395
|
+
readonly needed: FloatType;
|
|
396
|
+
readonly holders: OptionType<IntegerType>;
|
|
397
|
+
readonly capacity: OptionType<FloatType>;
|
|
398
|
+
readonly gap: FloatType;
|
|
399
|
+
readonly assigned: FloatType;
|
|
400
|
+
}>;
|
|
401
|
+
export type RosterCoverageLineType = typeof RosterCoverageLineType;
|
|
402
|
+
/**
|
|
403
|
+
* Staffing, work and costs for a complete slot.
|
|
404
|
+
* @remarks Requests fill positions and contribute requested hours, but never count as named people or skilled holders.
|
|
405
|
+
* @property positions - Required positions
|
|
406
|
+
* @property filled - Assignments including requests
|
|
407
|
+
* @property open - Unfilled positions, at least zero
|
|
408
|
+
* @property people - Named people assigned
|
|
409
|
+
* @property hours - Permanent, agency, overtime, requested, needed and total rostered hours
|
|
410
|
+
* @property lines - Required skills in group order, then duties
|
|
411
|
+
* @property cost - Total cost, zero when costs are absent
|
|
412
|
+
* @property lead - A named person holds a lead position
|
|
413
|
+
* @property trainer - A trainer is assigned
|
|
414
|
+
*/
|
|
415
|
+
export declare const RosterCoverageType: StructType<{
|
|
416
|
+
readonly positions: IntegerType;
|
|
417
|
+
readonly filled: IntegerType;
|
|
418
|
+
readonly open: IntegerType;
|
|
419
|
+
readonly people: IntegerType;
|
|
420
|
+
readonly hours: StructType<{
|
|
421
|
+
readonly permanent: FloatType;
|
|
422
|
+
readonly agency: FloatType;
|
|
423
|
+
readonly overtime: FloatType;
|
|
424
|
+
readonly requested: FloatType;
|
|
425
|
+
readonly needed: FloatType;
|
|
426
|
+
readonly rostered: FloatType;
|
|
427
|
+
}>;
|
|
428
|
+
readonly lines: ArrayType<StructType<{
|
|
429
|
+
readonly skill: StringType;
|
|
430
|
+
readonly needed: FloatType;
|
|
431
|
+
readonly holders: OptionType<IntegerType>;
|
|
432
|
+
readonly capacity: OptionType<FloatType>;
|
|
433
|
+
readonly gap: FloatType;
|
|
434
|
+
readonly assigned: FloatType;
|
|
435
|
+
}>>;
|
|
436
|
+
readonly cost: FloatType;
|
|
437
|
+
readonly lead: BooleanType;
|
|
438
|
+
readonly trainer: BooleanType;
|
|
439
|
+
}>;
|
|
440
|
+
export type RosterCoverageType = typeof RosterCoverageType;
|
|
441
|
+
/**
|
|
442
|
+
* An externally computed staffing proposal.
|
|
443
|
+
* @remarks Acceptance creates an assignment; rejection stores this key in the week's dismissed set.
|
|
444
|
+
* @property key - Proposal identifier
|
|
445
|
+
* @property week - Week's first day
|
|
446
|
+
* @property slot - Suggested destination
|
|
447
|
+
* @property person - Original staff key
|
|
448
|
+
* @property reason - Explanation presented to the planner
|
|
449
|
+
*/
|
|
450
|
+
export declare const RosterProposalType: StructType<{
|
|
451
|
+
readonly key: StringType;
|
|
452
|
+
readonly week: DateTimeType;
|
|
453
|
+
readonly slot: StructType<{
|
|
454
|
+
readonly day: IntegerType;
|
|
455
|
+
readonly group: StringType;
|
|
456
|
+
readonly shift: StringType;
|
|
457
|
+
}>;
|
|
458
|
+
readonly person: StringType;
|
|
459
|
+
readonly reason: StringType;
|
|
460
|
+
}>;
|
|
461
|
+
export type RosterProposalType = typeof RosterProposalType;
|
|
462
|
+
/**
|
|
463
|
+
* A corrective action offered for an issue.
|
|
464
|
+
* @remarks Every data-changing action is one gesture of the shared edit session.
|
|
465
|
+
* @property request - Request someone from this agency
|
|
466
|
+
* @property agree - Mark the assignment agreed
|
|
467
|
+
* @property accept - Accept this proposal key
|
|
468
|
+
* @property move - Move the assignment to this shift
|
|
469
|
+
* @property start - Set this start offset in hours
|
|
470
|
+
* @property find - Show leads, trainers or holders of a skill in the library
|
|
471
|
+
*/
|
|
472
|
+
export declare const RosterFixType: VariantType<{
|
|
473
|
+
readonly request: StringType;
|
|
474
|
+
readonly agree: NullType;
|
|
475
|
+
readonly accept: StringType;
|
|
476
|
+
readonly move: StringType;
|
|
477
|
+
readonly start: FloatType;
|
|
478
|
+
readonly find: VariantType<{
|
|
479
|
+
readonly leads: NullType;
|
|
480
|
+
readonly trainers: NullType;
|
|
481
|
+
readonly skill: StringType;
|
|
482
|
+
}>;
|
|
483
|
+
}>;
|
|
484
|
+
export type RosterFixType = typeof RosterFixType;
|
|
485
|
+
/**
|
|
486
|
+
* One explanation or warning about the drafted roster.
|
|
487
|
+
* @remarks Warnings do not introduce a separate validation barrier to Save or Publish.
|
|
488
|
+
* @property kind - Breach, gap, agreement or proposal
|
|
489
|
+
* @property tone - Shared semantic tone
|
|
490
|
+
* @property title - Short explanation
|
|
491
|
+
* @property detail - Supporting explanation
|
|
492
|
+
* @property slot - Affected slot, or none
|
|
493
|
+
* @property assignment - Affected assignment key, or none
|
|
494
|
+
* @property flag - Short text on a chip, or none
|
|
495
|
+
* @property fix - Offered action, or none
|
|
496
|
+
*/
|
|
497
|
+
export declare const RosterIssueType: StructType<{
|
|
498
|
+
readonly kind: VariantType<{
|
|
499
|
+
readonly breach: NullType;
|
|
500
|
+
readonly gap: NullType;
|
|
501
|
+
readonly agree: NullType;
|
|
502
|
+
readonly proposal: NullType;
|
|
503
|
+
}>;
|
|
504
|
+
readonly tone: VariantType<{
|
|
505
|
+
readonly success: NullType;
|
|
506
|
+
readonly warning: NullType;
|
|
507
|
+
readonly danger: NullType;
|
|
508
|
+
readonly info: NullType;
|
|
509
|
+
readonly neutral: NullType;
|
|
510
|
+
}>;
|
|
511
|
+
readonly title: StringType;
|
|
512
|
+
readonly detail: StringType;
|
|
513
|
+
readonly slot: OptionType<StructType<{
|
|
514
|
+
readonly day: IntegerType;
|
|
515
|
+
readonly group: StringType;
|
|
516
|
+
readonly shift: StringType;
|
|
517
|
+
}>>;
|
|
518
|
+
readonly assignment: OptionType<StringType>;
|
|
519
|
+
readonly flag: OptionType<StringType>;
|
|
520
|
+
readonly fix: OptionType<VariantType<{
|
|
521
|
+
readonly request: StringType;
|
|
522
|
+
readonly agree: NullType;
|
|
523
|
+
readonly accept: StringType;
|
|
524
|
+
readonly move: StringType;
|
|
525
|
+
readonly start: FloatType;
|
|
526
|
+
readonly find: VariantType<{
|
|
527
|
+
readonly leads: NullType;
|
|
528
|
+
readonly trainers: NullType;
|
|
529
|
+
readonly skill: StringType;
|
|
530
|
+
}>;
|
|
531
|
+
}>>;
|
|
532
|
+
}>;
|
|
533
|
+
export type RosterIssueType = typeof RosterIssueType;
|
|
534
|
+
/**
|
|
535
|
+
* Input to an application's additional roster checks.
|
|
536
|
+
* @remarks The built-in coverage has already been calculated for the same draft.
|
|
537
|
+
* @property start - Week's first day
|
|
538
|
+
* @property week - Drafted week
|
|
539
|
+
* @property context - Complete reference data
|
|
540
|
+
* @property coverage - Coverage for every configured slot
|
|
541
|
+
*/
|
|
542
|
+
export declare const RosterCheckContextType: StructType<{
|
|
543
|
+
readonly start: DateTimeType;
|
|
544
|
+
readonly week: StructType<{
|
|
545
|
+
readonly status: VariantType<{
|
|
546
|
+
readonly draft: NullType;
|
|
547
|
+
readonly published: StructType<{
|
|
548
|
+
readonly at: DateTimeType;
|
|
549
|
+
}>;
|
|
550
|
+
}>;
|
|
551
|
+
readonly assignments: DictType<StringType, StructType<{
|
|
552
|
+
readonly slot: StructType<{
|
|
553
|
+
readonly day: IntegerType;
|
|
554
|
+
readonly group: StringType;
|
|
555
|
+
readonly shift: StringType;
|
|
556
|
+
}>;
|
|
557
|
+
readonly who: VariantType<{
|
|
558
|
+
readonly person: StringType;
|
|
559
|
+
readonly request: StringType;
|
|
560
|
+
}>;
|
|
561
|
+
readonly position: StringType;
|
|
562
|
+
readonly activity: OptionType<StringType>;
|
|
563
|
+
readonly offset: FloatType;
|
|
564
|
+
readonly overtime: FloatType;
|
|
565
|
+
readonly agreed: OptionType<BooleanType>;
|
|
566
|
+
}>>;
|
|
567
|
+
readonly requirements: DictType<StructType<{
|
|
568
|
+
readonly day: IntegerType;
|
|
569
|
+
readonly group: StringType;
|
|
570
|
+
readonly shift: StringType;
|
|
571
|
+
}>, StructType<{
|
|
572
|
+
readonly positions: IntegerType;
|
|
573
|
+
readonly hours: DictType<StringType, FloatType>;
|
|
574
|
+
}>>;
|
|
575
|
+
readonly dismissed: SetType<StringType>;
|
|
576
|
+
}>;
|
|
577
|
+
readonly context: StructType<{
|
|
578
|
+
readonly people: DictType<StringType, StructType<{
|
|
579
|
+
readonly key: StringType;
|
|
580
|
+
readonly name: StringType;
|
|
581
|
+
readonly group: StringType;
|
|
582
|
+
readonly position: StringType;
|
|
583
|
+
readonly skills: SetType<StringType>;
|
|
584
|
+
readonly contract: FloatType;
|
|
585
|
+
readonly agency: BooleanType;
|
|
586
|
+
readonly trainer: BooleanType;
|
|
587
|
+
readonly trainee: BooleanType;
|
|
588
|
+
readonly usual: OptionType<StringType>;
|
|
589
|
+
}>>;
|
|
590
|
+
readonly groups: ArrayType<StructType<{
|
|
591
|
+
readonly key: StringType;
|
|
592
|
+
readonly label: StringType;
|
|
593
|
+
readonly skills: ArrayType<StructType<{
|
|
594
|
+
readonly key: StringType;
|
|
595
|
+
readonly label: StringType;
|
|
596
|
+
readonly code: StringType;
|
|
597
|
+
}>>;
|
|
598
|
+
}>>;
|
|
599
|
+
readonly duties: ArrayType<StructType<{
|
|
600
|
+
readonly key: StringType;
|
|
601
|
+
readonly label: StringType;
|
|
602
|
+
readonly code: StringType;
|
|
603
|
+
}>>;
|
|
604
|
+
readonly shifts: ArrayType<StructType<{
|
|
605
|
+
readonly key: StringType;
|
|
606
|
+
readonly label: StringType;
|
|
607
|
+
readonly code: StringType;
|
|
608
|
+
readonly start: StructType<{
|
|
609
|
+
readonly hour: IntegerType;
|
|
610
|
+
readonly minute: IntegerType;
|
|
611
|
+
}>;
|
|
612
|
+
readonly hours: FloatType;
|
|
613
|
+
}>>;
|
|
614
|
+
readonly positions: ArrayType<StructType<{
|
|
615
|
+
readonly key: StringType;
|
|
616
|
+
readonly label: StringType;
|
|
617
|
+
readonly code: StringType;
|
|
618
|
+
readonly lead: BooleanType;
|
|
619
|
+
}>>;
|
|
620
|
+
readonly agencies: ArrayType<StructType<{
|
|
621
|
+
readonly key: StringType;
|
|
622
|
+
readonly name: StringType;
|
|
623
|
+
}>>;
|
|
624
|
+
readonly rules: StructType<{
|
|
625
|
+
readonly rest: FloatType;
|
|
626
|
+
readonly lead: BooleanType;
|
|
627
|
+
readonly trainer: BooleanType;
|
|
628
|
+
readonly skill: BooleanType;
|
|
629
|
+
readonly agree: BooleanType;
|
|
630
|
+
}>;
|
|
631
|
+
readonly costs: OptionType<StructType<{
|
|
632
|
+
readonly currency: StringType;
|
|
633
|
+
readonly rates: StructType<{
|
|
634
|
+
readonly permanent: FloatType;
|
|
635
|
+
readonly overtime: FloatType;
|
|
636
|
+
readonly agency: FloatType;
|
|
637
|
+
}>;
|
|
638
|
+
readonly budget: OptionType<FloatType>;
|
|
639
|
+
}>>;
|
|
640
|
+
}>;
|
|
641
|
+
readonly coverage: DictType<StructType<{
|
|
642
|
+
readonly day: IntegerType;
|
|
643
|
+
readonly group: StringType;
|
|
644
|
+
readonly shift: StringType;
|
|
645
|
+
}>, StructType<{
|
|
646
|
+
readonly positions: IntegerType;
|
|
647
|
+
readonly filled: IntegerType;
|
|
648
|
+
readonly open: IntegerType;
|
|
649
|
+
readonly people: IntegerType;
|
|
650
|
+
readonly hours: StructType<{
|
|
651
|
+
readonly permanent: FloatType;
|
|
652
|
+
readonly agency: FloatType;
|
|
653
|
+
readonly overtime: FloatType;
|
|
654
|
+
readonly requested: FloatType;
|
|
655
|
+
readonly needed: FloatType;
|
|
656
|
+
readonly rostered: FloatType;
|
|
657
|
+
}>;
|
|
658
|
+
readonly lines: ArrayType<StructType<{
|
|
659
|
+
readonly skill: StringType;
|
|
660
|
+
readonly needed: FloatType;
|
|
661
|
+
readonly holders: OptionType<IntegerType>;
|
|
662
|
+
readonly capacity: OptionType<FloatType>;
|
|
663
|
+
readonly gap: FloatType;
|
|
664
|
+
readonly assigned: FloatType;
|
|
665
|
+
}>>;
|
|
666
|
+
readonly cost: FloatType;
|
|
667
|
+
readonly lead: BooleanType;
|
|
668
|
+
readonly trainer: BooleanType;
|
|
669
|
+
}>>;
|
|
670
|
+
}>;
|
|
671
|
+
export type RosterCheckContextType = typeof RosterCheckContextType;
|
|
672
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/roster/types.ts"],"names":[],"mappings":"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"}
|