@outbuild-company/schedule-core 1.10.1 → 1.10.2

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.
Files changed (2) hide show
  1. package/README.md +35 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,9 +15,41 @@ The package exposes a single public entry point:
15
15
  import { ScheduleCore } from '@outbuild-company/schedule-core';
16
16
  ```
17
17
 
18
- Schedule Core owns domain state and mutations. Consumers send commands through
19
- `ScheduleCore.dispatch()` and translate the returned changes at their own UI
20
- and persistence boundaries.
18
+ ## Quick start
19
+
20
+ ```ts
21
+ import {
22
+ COLUMN,
23
+ ScheduleCore,
24
+ type ScheduleCoreInput
25
+ } from '@outbuild-company/schedule-core';
26
+
27
+ const input: ScheduleCoreInput = getScheduleInput();
28
+ const core = new ScheduleCore(input);
29
+ await core.ready;
30
+
31
+ const result = await core.dispatch({
32
+ kind: 'inline-edit',
33
+ activityId,
34
+ column: COLUMN.TEXT,
35
+ newValue: 'Updated activity'
36
+ });
37
+
38
+ if (!result.ok) throw new Error(result.reason);
39
+ applyChangeSet(result.changes);
40
+
41
+ core.destroy();
42
+ ```
43
+
44
+ `getScheduleInput`, `activityId`, and `applyChangeSet` are consumer-provided
45
+ values.
46
+
47
+ Schedule Core owns domain state and mutations. Consumers provide normalized
48
+ input, send commands through `dispatch()`, apply returned changes at the UI
49
+ boundary, and persist them at the storage boundary.
50
+
51
+ See the [complete API reference](docs/API.md) for initialization, every command,
52
+ read APIs, persistence, history, critical path, helpers, constants, and types.
21
53
 
22
54
  ## Development
23
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outbuild-company/schedule-core",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "Schedule business logic core — owns activities, links, calendars, autoscheduler and critical path. UI-agnostic.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",