@opencxh/domain 1.265.0 → 1.265.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/entities/playbook/run-kind.test.d.ts +1 -0
- package/dist/entities/playbook/types.d.ts +15 -0
- package/dist/index.cjs +13 -13
- package/dist/index.js +301 -297
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -268,6 +268,21 @@ export declare const EMPTY_WORKFLOW: Decider;
|
|
|
268
268
|
export declare function stepsOf(decider: Decider | undefined): Step[];
|
|
269
269
|
/** The procedure of this decider, or `undefined` when it is a workflow. */
|
|
270
270
|
export declare function procedureOf(decider: Decider | undefined): Procedure | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* What sort of run this is, for anything that reads runs.
|
|
273
|
+
*
|
|
274
|
+
* **Derived, not a column.** The three answers already follow from what the row holds — a turn of
|
|
275
|
+
* an assignment carries `assignmentId`, and the rest is the decider's own kind — so storing it
|
|
276
|
+
* would be a second place to keep in step with the first. What was missing is that the
|
|
277
|
+
* classification lived nowhere: the run list expressed it as `playbookId ? name : "Opdracht"`, a
|
|
278
|
+
* hardcoded Dutch string inside a hook, which is both untranslatable and a statement about *kind*
|
|
279
|
+
* dressed up as a fallback for a missing name.
|
|
280
|
+
*
|
|
281
|
+
* The set grows the day another executor writes runs (a rule, a sync, a delivery). Growing it is
|
|
282
|
+
* a member here plus a label — not a column on every existing row.
|
|
283
|
+
*/
|
|
284
|
+
export type RunKind = "workflow" | "procedure" | "assignment";
|
|
285
|
+
export declare function runKind(run: Pick<PlaybookRun, "assignmentId" | "decider">): RunKind;
|
|
271
286
|
export interface Playbook {
|
|
272
287
|
id: string;
|
|
273
288
|
organizationId: string;
|