@contractspec/example.workflow-system 1.56.0 → 1.57.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.
Files changed (61) hide show
  1. package/dist/approval/approval.enum.d.ts +3 -3
  2. package/dist/approval/approval.enum.d.ts.map +1 -1
  3. package/dist/approval/approval.event.d.ts +32 -32
  4. package/dist/approval/approval.event.d.ts.map +1 -1
  5. package/dist/approval/approval.handler.d.ts +0 -1
  6. package/dist/approval/approval.handler.d.ts.map +1 -1
  7. package/dist/approval/approval.operations.d.ts +134 -134
  8. package/dist/approval/approval.operations.d.ts.map +1 -1
  9. package/dist/approval/approval.schema.d.ts +24 -24
  10. package/dist/approval/approval.schema.d.ts.map +1 -1
  11. package/dist/entities/approval.d.ts.map +1 -1
  12. package/dist/entities/index.d.ts +127 -127
  13. package/dist/entities/index.d.ts.map +1 -1
  14. package/dist/entities/instance.d.ts +47 -47
  15. package/dist/entities/instance.d.ts.map +1 -1
  16. package/dist/entities/step.d.ts +32 -32
  17. package/dist/entities/step.d.ts.map +1 -1
  18. package/dist/entities/workflow.d.ts +23 -23
  19. package/dist/entities/workflow.d.ts.map +1 -1
  20. package/dist/example.d.ts.map +1 -1
  21. package/dist/example.js +1 -2
  22. package/dist/example.js.map +1 -1
  23. package/dist/handlers/workflow.handlers.d.ts +0 -1
  24. package/dist/handlers/workflow.handlers.d.ts.map +1 -1
  25. package/dist/instance/instance.enum.d.ts +2 -2
  26. package/dist/instance/instance.enum.d.ts.map +1 -1
  27. package/dist/instance/instance.event.d.ts +87 -87
  28. package/dist/instance/instance.event.d.ts.map +1 -1
  29. package/dist/instance/instance.handler.d.ts +0 -1
  30. package/dist/instance/instance.handler.d.ts.map +1 -1
  31. package/dist/instance/instance.operations.d.ts +256 -256
  32. package/dist/instance/instance.operations.d.ts.map +1 -1
  33. package/dist/instance/instance.schema.d.ts +54 -54
  34. package/dist/instance/instance.schema.d.ts.map +1 -1
  35. package/dist/presentations/index.d.ts +23 -23
  36. package/dist/presentations/index.d.ts.map +1 -1
  37. package/dist/seeders/index.d.ts.map +1 -1
  38. package/dist/shared/mock-data.d.ts +0 -1
  39. package/dist/shared/mock-data.d.ts.map +1 -1
  40. package/dist/shared/types.d.ts.map +1 -1
  41. package/dist/state-machine/index.d.ts.map +1 -1
  42. package/dist/tests/operations.test-spec.d.ts +5 -5
  43. package/dist/tests/operations.test-spec.d.ts.map +1 -1
  44. package/dist/ui/WorkflowDashboard.d.ts.map +1 -1
  45. package/dist/ui/hooks/useWorkflowList.d.ts.map +1 -1
  46. package/dist/ui/renderers/workflow.markdown.d.ts +0 -1
  47. package/dist/ui/renderers/workflow.markdown.d.ts.map +1 -1
  48. package/dist/workflow/workflow.enum.d.ts +5 -5
  49. package/dist/workflow/workflow.enum.d.ts.map +1 -1
  50. package/dist/workflow/workflow.event.d.ts +33 -33
  51. package/dist/workflow/workflow.event.d.ts.map +1 -1
  52. package/dist/workflow/workflow.handler.d.ts +0 -1
  53. package/dist/workflow/workflow.handler.d.ts.map +1 -1
  54. package/dist/workflow/workflow.operations.d.ts +246 -246
  55. package/dist/workflow/workflow.operations.d.ts.map +1 -1
  56. package/dist/workflow/workflow.schema.d.ts +63 -63
  57. package/dist/workflow/workflow.schema.d.ts.map +1 -1
  58. package/dist/workflow-system.capability.d.ts.map +1 -1
  59. package/dist/workflow-system.feature.d.ts +2 -3
  60. package/dist/workflow-system.feature.d.ts.map +1 -1
  61. package/package.json +9 -9
@@ -1,132 +1,132 @@
1
- import * as _contractspec_lib_contracts55 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema843 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/workflow/workflow.event.d.ts
5
5
  /**
6
6
  * WorkflowCreatedEvent - A new workflow definition has been created.
7
7
  */
8
- declare const WorkflowCreatedEvent: _contractspec_lib_contracts55.EventSpec<_contractspec_lib_schema843.SchemaModel<{
8
+ declare const WorkflowCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
9
9
  workflowId: {
10
- type: _contractspec_lib_schema843.FieldType<string, string>;
10
+ type: _contractspec_lib_schema0.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  key: {
14
- type: _contractspec_lib_schema843.FieldType<string, string>;
14
+ type: _contractspec_lib_schema0.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  name: {
18
- type: _contractspec_lib_schema843.FieldType<string, string>;
18
+ type: _contractspec_lib_schema0.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  version: {
22
- type: _contractspec_lib_schema843.FieldType<string, string>;
22
+ type: _contractspec_lib_schema0.FieldType<string, string>;
23
23
  isOptional: false;
24
24
  };
25
25
  organizationId: {
26
- type: _contractspec_lib_schema843.FieldType<string, string>;
26
+ type: _contractspec_lib_schema0.FieldType<string, string>;
27
27
  isOptional: false;
28
28
  };
29
29
  createdBy: {
30
- type: _contractspec_lib_schema843.FieldType<string, string>;
30
+ type: _contractspec_lib_schema0.FieldType<string, string>;
31
31
  isOptional: false;
32
32
  };
33
33
  timestamp: {
34
- type: _contractspec_lib_schema843.FieldType<Date, string>;
34
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
35
35
  isOptional: false;
36
36
  };
37
37
  }>>;
38
38
  /**
39
39
  * WorkflowUpdatedEvent - A workflow definition has been updated.
40
40
  */
41
- declare const WorkflowUpdatedEvent: _contractspec_lib_contracts55.EventSpec<_contractspec_lib_schema843.SchemaModel<{
41
+ declare const WorkflowUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
42
42
  workflowId: {
43
- type: _contractspec_lib_schema843.FieldType<string, string>;
43
+ type: _contractspec_lib_schema0.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  key: {
47
- type: _contractspec_lib_schema843.FieldType<string, string>;
47
+ type: _contractspec_lib_schema0.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  name: {
51
- type: _contractspec_lib_schema843.FieldType<string, string>;
51
+ type: _contractspec_lib_schema0.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  version: {
55
- type: _contractspec_lib_schema843.FieldType<string, string>;
55
+ type: _contractspec_lib_schema0.FieldType<string, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  organizationId: {
59
- type: _contractspec_lib_schema843.FieldType<string, string>;
59
+ type: _contractspec_lib_schema0.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  createdBy: {
63
- type: _contractspec_lib_schema843.FieldType<string, string>;
63
+ type: _contractspec_lib_schema0.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  timestamp: {
67
- type: _contractspec_lib_schema843.FieldType<Date, string>;
67
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  }>>;
71
71
  /**
72
72
  * WorkflowPublishedEvent - A workflow definition has been published.
73
73
  */
74
- declare const WorkflowPublishedEvent: _contractspec_lib_contracts55.EventSpec<_contractspec_lib_schema843.SchemaModel<{
74
+ declare const WorkflowPublishedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
75
75
  workflowId: {
76
- type: _contractspec_lib_schema843.FieldType<string, string>;
76
+ type: _contractspec_lib_schema0.FieldType<string, string>;
77
77
  isOptional: false;
78
78
  };
79
79
  key: {
80
- type: _contractspec_lib_schema843.FieldType<string, string>;
80
+ type: _contractspec_lib_schema0.FieldType<string, string>;
81
81
  isOptional: false;
82
82
  };
83
83
  name: {
84
- type: _contractspec_lib_schema843.FieldType<string, string>;
84
+ type: _contractspec_lib_schema0.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  version: {
88
- type: _contractspec_lib_schema843.FieldType<string, string>;
88
+ type: _contractspec_lib_schema0.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  organizationId: {
92
- type: _contractspec_lib_schema843.FieldType<string, string>;
92
+ type: _contractspec_lib_schema0.FieldType<string, string>;
93
93
  isOptional: false;
94
94
  };
95
95
  createdBy: {
96
- type: _contractspec_lib_schema843.FieldType<string, string>;
96
+ type: _contractspec_lib_schema0.FieldType<string, string>;
97
97
  isOptional: false;
98
98
  };
99
99
  timestamp: {
100
- type: _contractspec_lib_schema843.FieldType<Date, string>;
100
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
101
101
  isOptional: false;
102
102
  };
103
103
  }>>;
104
104
  /**
105
105
  * StepAddedEvent - A step has been added to a workflow definition.
106
106
  */
107
- declare const StepAddedEvent: _contractspec_lib_contracts55.EventSpec<_contractspec_lib_schema843.SchemaModel<{
107
+ declare const StepAddedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
108
108
  stepId: {
109
- type: _contractspec_lib_schema843.FieldType<string, string>;
109
+ type: _contractspec_lib_schema0.FieldType<string, string>;
110
110
  isOptional: false;
111
111
  };
112
112
  workflowId: {
113
- type: _contractspec_lib_schema843.FieldType<string, string>;
113
+ type: _contractspec_lib_schema0.FieldType<string, string>;
114
114
  isOptional: false;
115
115
  };
116
116
  stepKey: {
117
- type: _contractspec_lib_schema843.FieldType<string, string>;
117
+ type: _contractspec_lib_schema0.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  stepType: {
121
- type: _contractspec_lib_schema843.FieldType<string, string>;
121
+ type: _contractspec_lib_schema0.FieldType<string, string>;
122
122
  isOptional: false;
123
123
  };
124
124
  position: {
125
- type: _contractspec_lib_schema843.FieldType<number, number>;
125
+ type: _contractspec_lib_schema0.FieldType<number, number>;
126
126
  isOptional: false;
127
127
  };
128
128
  timestamp: {
129
- type: _contractspec_lib_schema843.FieldType<Date, string>;
129
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
130
130
  isOptional: false;
131
131
  };
132
132
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.event.d.ts","names":[],"sources":["../../src/workflow/workflow.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cA0Ca,sBAAoB,6BAAA,CAAA,sCAAA;EAApB,UAAA,EAAA;IAUX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;+CAV+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAepB,OAAA,EAAA;IAUX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;+CAV+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAepB,SAAA,EAAA;IAUX,IAAA,uCAAA,KAAA,EAAA,MAAA,CAAA;;;;;;;cAzBW,sBAAoB,6BAAA,CAAA,sCAAA;;IAeE,IAAA,EALjC,2BAAA,CAAA,SAKiC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAetB,CAAA;EAUX,GAAA,EAAA;;;;;;;;EAVyB,OAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;cAfd,wBAAsB,6BAAA,CAAA,sCAAA;;UAUjC,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,gBAAc,6BAAA,CAAA,sCAAA;;UAUzB,2BAAA,CAAA"}
1
+ {"version":3,"file":"workflow.event.d.ts","names":[],"sources":["../../src/workflow/workflow.event.ts"],"mappings":";;;;;;;cA0Ca,oBAAA,EAAoB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAU/B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,oBAAA,EAAoB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAU/B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,sBAAA,EAAsB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAUjC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAVF;;cAea,cAAA,EAAc,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAUzB,yBAAA,CAAA,SAAA"}
@@ -1,7 +1,6 @@
1
1
  import { HandlerContext, WorkflowDefinitionRecord, WorkflowStepRecord } from "../shared/types.js";
2
2
 
3
3
  //#region src/workflow/workflow.handler.d.ts
4
-
5
4
  declare function handleCreateWorkflow(input: {
6
5
  name: string;
7
6
  key: string;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.handler.d.ts","names":[],"sources":["../../src/workflow/workflow.handler.ts"],"sourcesContent":[],"mappings":";;;;AAmBW,iBARW,oBAAA,CAQX,KAAA,EAAA;EACA,IAAA,EAAA,MAAA;EAAR,GAAA,EAAA,MAAA;EAAO,WAAA,CAAA,EAAA,MAAA;EAuBY,WAAA,CAAA,EAAA,QAAa,GAAA,OAAA,GAAA,WAAA,GAAA,KAAA;EAgBlB,cAAA,CAAA,EAAA,MAAA;CAKL,EAAA,OAAA,EA7CD,cA6CC,CAAA,EA5CT,OA4CS,CA5CD,wBA4CC,CAAA;AACD,iBAtBW,aAAA,CAsBX,KAAA,EAAA;EAAR,UAAA,EAAA,MAAA;EAAO,GAAA,EAAA,MAAA;EAwCY,IAAA,EAAA,MAAA;EAEV,WAAA,CAAA,EAAA,MAAA;EACD,IAAA,EAAA,OAAA,GAAA,UAAA,GAAA,MAAA,GAAA,WAAA,GAAA,UAAA,GAAA,MAAA,GAAA,QAAA,GAAA,KAAA;EAAR,QAAA,CAAA,EAAA,MAAA;EAAO,WAAA,EAjDO,MAiDP,CAAA,MAAA,EAAA,MAAA,CAAA;;;;aA5CE,iBACT,QAAQ;iBAwCW,qBAAA;;aAEV,iBACT,QAAQ"}
1
+ {"version":3,"file":"workflow.handler.d.ts","names":[],"sources":["../../src/workflow/workflow.handler.ts"],"mappings":";;;iBAWsB,oBAAA,CACpB,KAAA;EACE,IAAA;EACA,GAAA;EACA,WAAA;EACA,WAAA;EACA,cAAA;AAAA,GAEF,OAAA,EAAS,cAAA,GACR,OAAA,CAAQ,wBAAA;AAAA,iBAuBW,aAAA,CACpB,KAAA;EACE,UAAA;EACA,GAAA;EACA,IAAA;EACA,WAAA;EACA,IAAA;EASA,QAAA;EACA,WAAA,EAAa,MAAA;EACb,YAAA;EACA,aAAA;EACA,cAAA;AAAA,GAEF,QAAA,EAAU,cAAA,GACT,OAAA,CAAQ,kBAAA;AAAA,iBAwCW,qBAAA,CACpB,KAAA;EAAS,UAAA;AAAA,GACT,QAAA,EAAU,cAAA,GACT,OAAA,CAAQ,wBAAA"}