@leitwerk-dev/domain 0.3.1 → 0.4.1
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/dependency-order.d.ts +3 -0
- package/dist/dependency-order.d.ts.map +1 -0
- package/dist/domain-model.d.ts +34 -4
- package/dist/domain-model.d.ts.map +1 -1
- package/dist/execution-inspection.d.ts +145 -0
- package/dist/execution-inspection.d.ts.map +1 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +71 -0
- package/dist/index.js.map +1 -1
- package/dist/json-pointer.d.ts +3 -0
- package/dist/json-pointer.d.ts.map +1 -0
- package/dist/process-definitions.d.ts +28 -3
- package/dist/process-definitions.d.ts.map +1 -1
- package/dist/process-path.d.ts +4 -0
- package/dist/process-path.d.ts.map +1 -0
- package/dist/scoped-settings.d.ts +87 -0
- package/dist/scoped-settings.d.ts.map +1 -0
- package/dist/turn-recovery.d.ts +1 -1
- package/dist/turn-recovery.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/dependency-order.ts +19 -0
- package/src/domain-model.ts +38 -3
- package/src/execution-inspection.ts +182 -0
- package/src/index.ts +15 -0
- package/src/json-pointer.ts +10 -0
- package/src/process-definitions.ts +29 -3
- package/src/process-path.ts +25 -0
- package/src/scoped-settings.ts +92 -0
- package/src/turn-recovery.ts +1 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { Actor } from "./domain-model.js";
|
|
2
|
+
|
|
3
|
+
/** One stable subject per named scope type. @public */
|
|
4
|
+
export type SettingsContext = Readonly<Record<string, string>>;
|
|
5
|
+
|
|
6
|
+
/** @public */
|
|
7
|
+
export interface SettingsSubject {
|
|
8
|
+
/** @public */
|
|
9
|
+
id: string;
|
|
10
|
+
/** @public */
|
|
11
|
+
scopeType: string;
|
|
12
|
+
/** @public */
|
|
13
|
+
identity: string;
|
|
14
|
+
/** @public */
|
|
15
|
+
label: string;
|
|
16
|
+
/** Lower scopes supplied by the owning integration, never matched by expression. @public */
|
|
17
|
+
context: SettingsContext;
|
|
18
|
+
/** @public */
|
|
19
|
+
schemaVersion: number;
|
|
20
|
+
/** @public */
|
|
21
|
+
revision: number;
|
|
22
|
+
/** @public */
|
|
23
|
+
createdAt: string;
|
|
24
|
+
/** @public */
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
/** Discovery is attributed to the server system actor. @public */
|
|
27
|
+
actor: Actor;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** A reset retains its revision to prevent delete/recreate races. @internal */
|
|
31
|
+
export interface SettingsOverride {
|
|
32
|
+
/** @internal */
|
|
33
|
+
subjectId: string;
|
|
34
|
+
/** @internal */
|
|
35
|
+
key: string;
|
|
36
|
+
/** @internal */
|
|
37
|
+
value: unknown;
|
|
38
|
+
/** @internal */
|
|
39
|
+
mode: "append" | "replace";
|
|
40
|
+
/** @internal */
|
|
41
|
+
reset: boolean;
|
|
42
|
+
/** @internal */
|
|
43
|
+
schemaVersion: number;
|
|
44
|
+
/** @internal */
|
|
45
|
+
revision: number;
|
|
46
|
+
/** @internal */
|
|
47
|
+
createdAt: string;
|
|
48
|
+
/** @internal */
|
|
49
|
+
updatedAt: string;
|
|
50
|
+
/** @internal */
|
|
51
|
+
actor: Actor;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** @public */
|
|
55
|
+
export interface SettingsSource {
|
|
56
|
+
/** @public */
|
|
57
|
+
subjectId: string | null;
|
|
58
|
+
/** @public */
|
|
59
|
+
scopeType: string;
|
|
60
|
+
/** @public */
|
|
61
|
+
label: string;
|
|
62
|
+
/** @public */
|
|
63
|
+
revision: number;
|
|
64
|
+
/** @public */
|
|
65
|
+
schemaVersion: number;
|
|
66
|
+
/** @public */
|
|
67
|
+
mode: "append" | "replace";
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @public */
|
|
71
|
+
export interface ResolvedSetting<T = unknown> {
|
|
72
|
+
/** @public */
|
|
73
|
+
key: string;
|
|
74
|
+
/** @public */
|
|
75
|
+
value: T;
|
|
76
|
+
/** @public */
|
|
77
|
+
sources: SettingsSource[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** Immutable, non-secret settings consumed by a prepared turn. @public */
|
|
81
|
+
export interface ScopedSettingsSnapshot {
|
|
82
|
+
/** @public */
|
|
83
|
+
version: 1;
|
|
84
|
+
/** @public */
|
|
85
|
+
purpose: string;
|
|
86
|
+
/** @public */
|
|
87
|
+
context: SettingsContext;
|
|
88
|
+
/** @public */
|
|
89
|
+
values: ResolvedSetting[];
|
|
90
|
+
/** @public */
|
|
91
|
+
explanations: string[];
|
|
92
|
+
}
|
package/src/turn-recovery.ts
CHANGED