eventmodeler 0.5.0 → 0.6.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.
Files changed (150) hide show
  1. package/dist/index.js +6776 -2132
  2. package/package.json +11 -5
  3. package/dist/api/index.d.ts +0 -285
  4. package/dist/api/index.js +0 -323
  5. package/dist/cloud/slices/index.d.ts +0 -276
  6. package/dist/cloud/slices/index.js +0 -406
  7. package/dist/eventmodeler.js +0 -5646
  8. package/dist/formatters.d.ts +0 -17
  9. package/dist/formatters.js +0 -482
  10. package/dist/index.d.ts +0 -2
  11. package/dist/lib/auth.d.ts +0 -24
  12. package/dist/lib/auth.js +0 -331
  13. package/dist/lib/backend.d.ts +0 -43
  14. package/dist/lib/backend.js +0 -73
  15. package/dist/lib/chapter-utils.d.ts +0 -13
  16. package/dist/lib/chapter-utils.js +0 -71
  17. package/dist/lib/cloud-client.d.ts +0 -69
  18. package/dist/lib/cloud-client.js +0 -364
  19. package/dist/lib/config.d.ts +0 -30
  20. package/dist/lib/config.js +0 -95
  21. package/dist/lib/diff/merge-rules.d.ts +0 -45
  22. package/dist/lib/diff/merge-rules.js +0 -210
  23. package/dist/lib/diff/model-differ.d.ts +0 -8
  24. package/dist/lib/diff/model-differ.js +0 -568
  25. package/dist/lib/diff/three-way-merge.d.ts +0 -7
  26. package/dist/lib/diff/three-way-merge.js +0 -390
  27. package/dist/lib/diff/types.d.ts +0 -75
  28. package/dist/lib/diff/types.js +0 -1
  29. package/dist/lib/element-lookup.d.ts +0 -58
  30. package/dist/lib/element-lookup.js +0 -126
  31. package/dist/lib/file-loader.d.ts +0 -8
  32. package/dist/lib/file-loader.js +0 -108
  33. package/dist/lib/flow-utils.d.ts +0 -53
  34. package/dist/lib/flow-utils.js +0 -348
  35. package/dist/lib/format.d.ts +0 -10
  36. package/dist/lib/format.js +0 -23
  37. package/dist/lib/project-config.d.ts +0 -27
  38. package/dist/lib/project-config.js +0 -83
  39. package/dist/lib/slice-utils.d.ts +0 -59
  40. package/dist/lib/slice-utils.js +0 -140
  41. package/dist/local/slices/index.d.ts +0 -11
  42. package/dist/local/slices/index.js +0 -13
  43. package/dist/projection.d.ts +0 -3
  44. package/dist/projection.js +0 -828
  45. package/dist/slices/add-field/index.d.ts +0 -8
  46. package/dist/slices/add-field/index.js +0 -211
  47. package/dist/slices/add-scenario/index.d.ts +0 -27
  48. package/dist/slices/add-scenario/index.js +0 -307
  49. package/dist/slices/codegen-chapter-events/index.d.ts +0 -2
  50. package/dist/slices/codegen-chapter-events/index.js +0 -145
  51. package/dist/slices/codegen-slice/index.d.ts +0 -2
  52. package/dist/slices/codegen-slice/index.js +0 -448
  53. package/dist/slices/create-automation-slice/index.d.ts +0 -2
  54. package/dist/slices/create-automation-slice/index.js +0 -304
  55. package/dist/slices/create-flow/index.d.ts +0 -2
  56. package/dist/slices/create-flow/index.js +0 -183
  57. package/dist/slices/create-state-change-slice/index.d.ts +0 -2
  58. package/dist/slices/create-state-change-slice/index.js +0 -263
  59. package/dist/slices/create-state-view-slice/index.d.ts +0 -2
  60. package/dist/slices/create-state-view-slice/index.js +0 -128
  61. package/dist/slices/diff/index.d.ts +0 -11
  62. package/dist/slices/diff/index.js +0 -293
  63. package/dist/slices/export-eventmodel-to-json/index.d.ts +0 -2
  64. package/dist/slices/export-eventmodel-to-json/index.js +0 -355
  65. package/dist/slices/git/index.d.ts +0 -2
  66. package/dist/slices/git/index.js +0 -125
  67. package/dist/slices/guide/guides/codegen.d.ts +0 -5
  68. package/dist/slices/guide/guides/codegen.js +0 -339
  69. package/dist/slices/guide/guides/connect-slices.d.ts +0 -5
  70. package/dist/slices/guide/guides/connect-slices.js +0 -202
  71. package/dist/slices/guide/guides/create-slices.d.ts +0 -5
  72. package/dist/slices/guide/guides/create-slices.js +0 -303
  73. package/dist/slices/guide/guides/explore.d.ts +0 -5
  74. package/dist/slices/guide/guides/explore.js +0 -251
  75. package/dist/slices/guide/guides/information-flow.d.ts +0 -5
  76. package/dist/slices/guide/guides/information-flow.js +0 -318
  77. package/dist/slices/guide/guides/scenarios.d.ts +0 -5
  78. package/dist/slices/guide/guides/scenarios.js +0 -269
  79. package/dist/slices/guide/index.d.ts +0 -1
  80. package/dist/slices/guide/index.js +0 -40
  81. package/dist/slices/import/index.d.ts +0 -8
  82. package/dist/slices/import/index.js +0 -63
  83. package/dist/slices/init/index.d.ts +0 -5
  84. package/dist/slices/init/index.js +0 -80
  85. package/dist/slices/list-chapters/index.d.ts +0 -3
  86. package/dist/slices/list-chapters/index.js +0 -21
  87. package/dist/slices/list-commands/index.d.ts +0 -3
  88. package/dist/slices/list-commands/index.js +0 -20
  89. package/dist/slices/list-events/index.d.ts +0 -3
  90. package/dist/slices/list-events/index.js +0 -98
  91. package/dist/slices/list-processors/index.d.ts +0 -3
  92. package/dist/slices/list-processors/index.js +0 -20
  93. package/dist/slices/list-readmodels/index.d.ts +0 -3
  94. package/dist/slices/list-readmodels/index.js +0 -21
  95. package/dist/slices/list-scenarios/index.d.ts +0 -3
  96. package/dist/slices/list-scenarios/index.js +0 -35
  97. package/dist/slices/list-screens/index.d.ts +0 -3
  98. package/dist/slices/list-screens/index.js +0 -47
  99. package/dist/slices/list-slices/index.d.ts +0 -3
  100. package/dist/slices/list-slices/index.js +0 -35
  101. package/dist/slices/login/index.d.ts +0 -1
  102. package/dist/slices/login/index.js +0 -20
  103. package/dist/slices/logout/index.d.ts +0 -1
  104. package/dist/slices/logout/index.js +0 -14
  105. package/dist/slices/map-fields/index.d.ts +0 -2
  106. package/dist/slices/map-fields/index.js +0 -269
  107. package/dist/slices/mark-slice-status/index.d.ts +0 -2
  108. package/dist/slices/mark-slice-status/index.js +0 -31
  109. package/dist/slices/merge/index.d.ts +0 -19
  110. package/dist/slices/merge/index.js +0 -147
  111. package/dist/slices/open-app/index.d.ts +0 -1
  112. package/dist/slices/open-app/index.js +0 -36
  113. package/dist/slices/remove-field/index.d.ts +0 -8
  114. package/dist/slices/remove-field/index.js +0 -167
  115. package/dist/slices/remove-scenario/index.d.ts +0 -2
  116. package/dist/slices/remove-scenario/index.js +0 -77
  117. package/dist/slices/search/index.d.ts +0 -3
  118. package/dist/slices/search/index.js +0 -302
  119. package/dist/slices/show-actor/index.d.ts +0 -4
  120. package/dist/slices/show-actor/index.js +0 -115
  121. package/dist/slices/show-aggregate/index.d.ts +0 -3
  122. package/dist/slices/show-aggregate/index.js +0 -108
  123. package/dist/slices/show-aggregate-completeness/index.d.ts +0 -4
  124. package/dist/slices/show-aggregate-completeness/index.js +0 -181
  125. package/dist/slices/show-chapter/index.d.ts +0 -3
  126. package/dist/slices/show-chapter/index.js +0 -195
  127. package/dist/slices/show-command/index.d.ts +0 -3
  128. package/dist/slices/show-command/index.js +0 -133
  129. package/dist/slices/show-completeness/index.d.ts +0 -4
  130. package/dist/slices/show-completeness/index.js +0 -731
  131. package/dist/slices/show-event/index.d.ts +0 -3
  132. package/dist/slices/show-event/index.js +0 -118
  133. package/dist/slices/show-model-summary/index.d.ts +0 -3
  134. package/dist/slices/show-model-summary/index.js +0 -31
  135. package/dist/slices/show-processor/index.d.ts +0 -3
  136. package/dist/slices/show-processor/index.js +0 -111
  137. package/dist/slices/show-readmodel/index.d.ts +0 -3
  138. package/dist/slices/show-readmodel/index.js +0 -158
  139. package/dist/slices/show-scenario/index.d.ts +0 -3
  140. package/dist/slices/show-scenario/index.js +0 -196
  141. package/dist/slices/show-screen/index.d.ts +0 -3
  142. package/dist/slices/show-screen/index.js +0 -139
  143. package/dist/slices/show-slice/index.d.ts +0 -3
  144. package/dist/slices/show-slice/index.js +0 -696
  145. package/dist/slices/update-field/index.d.ts +0 -15
  146. package/dist/slices/update-field/index.js +0 -208
  147. package/dist/slices/whoami/index.d.ts +0 -2
  148. package/dist/slices/whoami/index.js +0 -44
  149. package/dist/types.d.ts +0 -195
  150. package/dist/types.js +0 -1
@@ -1,15 +0,0 @@
1
- import type { EventModel } from '../../types.js';
2
- interface UpdateOptions {
3
- optional?: boolean;
4
- generated?: boolean;
5
- userInput?: boolean;
6
- type?: string;
7
- }
8
- export declare function updateField(model: EventModel, filePath: string, options: {
9
- command?: string;
10
- event?: string;
11
- readModel?: string;
12
- screen?: string;
13
- processor?: string;
14
- }, fieldName: string, updates: UpdateOptions): void;
15
- export {};
@@ -1,208 +0,0 @@
1
- import { appendEvent } from '../../lib/file-loader.js';
2
- import { findElementOrExit, excludeLinkedCopies } from '../../lib/element-lookup.js';
3
- function findFieldByName(fields, fieldName) {
4
- const nameLower = fieldName.toLowerCase();
5
- for (const field of fields) {
6
- if (field.name.toLowerCase() === nameLower) {
7
- return field;
8
- }
9
- // Check subfields for Custom types
10
- if (field.fieldType === 'Custom' && field.subfields) {
11
- // Check for dot notation path (e.g., "address.street")
12
- if (fieldName.toLowerCase().startsWith(field.name.toLowerCase() + '.')) {
13
- const subPath = fieldName.slice(field.name.length + 1);
14
- const subField = findFieldByName(field.subfields, subPath);
15
- if (subField)
16
- return subField;
17
- }
18
- // Also check direct match in subfields
19
- const subField = findFieldByName(field.subfields, fieldName);
20
- if (subField)
21
- return subField;
22
- }
23
- }
24
- return undefined;
25
- }
26
- function createUpdatedField(original, updates) {
27
- return {
28
- ...original,
29
- isOptional: updates.optional !== undefined ? updates.optional : original.isOptional,
30
- isGenerated: updates.generated !== undefined ? updates.generated : original.isGenerated,
31
- isUserInput: updates.userInput !== undefined ? updates.userInput : original.isUserInput,
32
- fieldType: updates.type !== undefined ? updates.type : original.fieldType,
33
- };
34
- }
35
- export function updateField(model, filePath, options, fieldName, updates) {
36
- // Determine which entity type
37
- const entityCount = [options.command, options.event, options.readModel, options.screen, options.processor].filter(Boolean).length;
38
- if (entityCount === 0) {
39
- console.error('Error: Must specify one of --command, --event, --read-model, --screen, or --processor');
40
- process.exit(1);
41
- }
42
- if (entityCount > 1) {
43
- console.error('Error: Can only specify one of --command, --event, --read-model, --screen, or --processor');
44
- process.exit(1);
45
- }
46
- if (options.command) {
47
- updateCommandField(model, filePath, options.command, fieldName, updates);
48
- }
49
- else if (options.event) {
50
- updateEventField(model, filePath, options.event, fieldName, updates);
51
- }
52
- else if (options.readModel) {
53
- updateReadModelField(model, filePath, options.readModel, fieldName, updates);
54
- }
55
- else if (options.screen) {
56
- updateScreenField(model, filePath, options.screen, fieldName, updates);
57
- }
58
- else if (options.processor) {
59
- updateProcessorField(model, filePath, options.processor, fieldName, updates);
60
- }
61
- }
62
- function updateCommandField(model, filePath, commandName, fieldName, updates) {
63
- const command = findElementOrExit(model.commands, commandName, 'command');
64
- const field = findFieldByName(command.fields, fieldName);
65
- if (!field) {
66
- console.error(`Error: Field "${fieldName}" not found on command "${command.name}"`);
67
- if (command.fields.length > 0) {
68
- console.error('Available fields:');
69
- for (const f of command.fields) {
70
- console.error(` - ${f.name}`);
71
- }
72
- }
73
- process.exit(1);
74
- }
75
- const updatedField = createUpdatedField(field, updates);
76
- appendEvent(filePath, {
77
- type: 'CommandFieldAdjusted',
78
- data: {
79
- commandStickyId: command.id,
80
- fieldId: field.id,
81
- field: updatedField,
82
- timestamp: Date.now(),
83
- },
84
- });
85
- console.log(`Updated field "${field.name}" on command "${command.name}"`);
86
- logUpdates(updates);
87
- }
88
- function updateEventField(model, filePath, eventName, fieldName, updates) {
89
- // Exclude linked copies - they share fields with their canonical original
90
- const event = findElementOrExit(excludeLinkedCopies(model.events), eventName, 'event');
91
- const field = findFieldByName(event.fields, fieldName);
92
- if (!field) {
93
- console.error(`Error: Field "${fieldName}" not found on event "${event.name}"`);
94
- if (event.fields.length > 0) {
95
- console.error('Available fields:');
96
- for (const f of event.fields) {
97
- console.error(` - ${f.name}`);
98
- }
99
- }
100
- process.exit(1);
101
- }
102
- const updatedField = createUpdatedField(field, updates);
103
- appendEvent(filePath, {
104
- type: 'EventFieldAdjusted',
105
- data: {
106
- eventStickyId: event.id,
107
- fieldId: field.id,
108
- field: updatedField,
109
- timestamp: Date.now(),
110
- },
111
- });
112
- console.log(`Updated field "${field.name}" on event "${event.name}"`);
113
- logUpdates(updates);
114
- }
115
- function updateReadModelField(model, filePath, readModelName, fieldName, updates) {
116
- // Exclude linked copies - they share fields with their canonical original
117
- const readModel = findElementOrExit(excludeLinkedCopies(model.readModels), readModelName, 'read model');
118
- const field = findFieldByName(readModel.fields, fieldName);
119
- if (!field) {
120
- console.error(`Error: Field "${fieldName}" not found on read model "${readModel.name}"`);
121
- if (readModel.fields.length > 0) {
122
- console.error('Available fields:');
123
- for (const f of readModel.fields) {
124
- console.error(` - ${f.name}`);
125
- }
126
- }
127
- process.exit(1);
128
- }
129
- const updatedField = createUpdatedField(field, updates);
130
- appendEvent(filePath, {
131
- type: 'ReadModelFieldAdjusted',
132
- data: {
133
- readModelStickyId: readModel.id,
134
- fieldId: field.id,
135
- field: updatedField,
136
- timestamp: Date.now(),
137
- },
138
- });
139
- console.log(`Updated field "${field.name}" on read model "${readModel.name}"`);
140
- logUpdates(updates);
141
- }
142
- function updateScreenField(model, filePath, screenName, fieldName, updates) {
143
- // Exclude linked copies - they share fields with their canonical original
144
- const screen = findElementOrExit(excludeLinkedCopies(model.screens), screenName, 'screen');
145
- const field = findFieldByName(screen.fields, fieldName);
146
- if (!field) {
147
- console.error(`Error: Field "${fieldName}" not found on screen "${screen.name}"`);
148
- if (screen.fields.length > 0) {
149
- console.error('Available fields:');
150
- for (const f of screen.fields) {
151
- console.error(` - ${f.name}`);
152
- }
153
- }
154
- process.exit(1);
155
- }
156
- const updatedField = createUpdatedField(field, updates);
157
- appendEvent(filePath, {
158
- type: 'ScreenFieldAdjusted',
159
- data: {
160
- screenId: screen.id,
161
- fieldId: field.id,
162
- field: updatedField,
163
- timestamp: Date.now(),
164
- },
165
- });
166
- console.log(`Updated field "${field.name}" on screen "${screen.name}"`);
167
- logUpdates(updates);
168
- }
169
- function updateProcessorField(model, filePath, processorName, fieldName, updates) {
170
- const processor = findElementOrExit(model.processors, processorName, 'processor');
171
- const field = findFieldByName(processor.fields, fieldName);
172
- if (!field) {
173
- console.error(`Error: Field "${fieldName}" not found on processor "${processor.name}"`);
174
- if (processor.fields.length > 0) {
175
- console.error('Available fields:');
176
- for (const f of processor.fields) {
177
- console.error(` - ${f.name}`);
178
- }
179
- }
180
- process.exit(1);
181
- }
182
- const updatedField = createUpdatedField(field, updates);
183
- appendEvent(filePath, {
184
- type: 'ProcessorFieldAdjusted',
185
- data: {
186
- processorId: processor.id,
187
- fieldId: field.id,
188
- field: updatedField,
189
- timestamp: Date.now(),
190
- },
191
- });
192
- console.log(`Updated field "${field.name}" on processor "${processor.name}"`);
193
- logUpdates(updates);
194
- }
195
- function logUpdates(updates) {
196
- if (updates.optional !== undefined) {
197
- console.log(` isOptional: ${updates.optional}`);
198
- }
199
- if (updates.generated !== undefined) {
200
- console.log(` isGenerated: ${updates.generated}`);
201
- }
202
- if (updates.userInput !== undefined) {
203
- console.log(` isUserInput: ${updates.userInput}`);
204
- }
205
- if (updates.type !== undefined) {
206
- console.log(` fieldType: ${updates.type}`);
207
- }
208
- }
@@ -1,2 +0,0 @@
1
- import type { OutputFormat } from '../../api/index.js';
2
- export declare function whoami(format: OutputFormat): void;
@@ -1,44 +0,0 @@
1
- import { isAuthenticated, getAuthTokens, getBackendUrl, getKeycloakUrl } from '../../lib/config.js';
2
- import { XMLBuilder } from 'fast-xml-parser';
3
- const xmlBuilder = new XMLBuilder({
4
- ignoreAttributes: false,
5
- attributeNamePrefix: '@_',
6
- suppressEmptyNode: true,
7
- format: false,
8
- });
9
- export function whoami(format) {
10
- const tokens = getAuthTokens();
11
- const backendUrl = getBackendUrl();
12
- const keycloakUrl = getKeycloakUrl();
13
- if (!tokens) {
14
- if (format === 'json') {
15
- console.log(JSON.stringify({ authenticated: false, backendUrl, keycloakUrl }, null, 2));
16
- }
17
- else {
18
- console.log(xmlBuilder.build({ auth: { '@_authenticated': 'false', '@_backendUrl': backendUrl, '@_keycloakUrl': keycloakUrl } }));
19
- }
20
- return;
21
- }
22
- const isValid = isAuthenticated();
23
- if (format === 'json') {
24
- console.log(JSON.stringify({
25
- authenticated: isValid,
26
- email: tokens.email,
27
- userId: tokens.userId,
28
- backendUrl,
29
- keycloakUrl,
30
- expiresAt: new Date(tokens.expiresAt).toISOString(),
31
- }, null, 2));
32
- }
33
- else {
34
- const attrs = {
35
- '@_authenticated': String(isValid),
36
- '@_email': tokens.email,
37
- '@_backendUrl': backendUrl,
38
- };
39
- if (!isValid) {
40
- attrs['@_reason'] = 'token_expired';
41
- }
42
- console.log(xmlBuilder.build({ auth: attrs }));
43
- }
44
- }
package/dist/types.d.ts DELETED
@@ -1,195 +0,0 @@
1
- export interface Field {
2
- id: string;
3
- name: string;
4
- fieldType: 'UUID' | 'Boolean' | 'Double' | 'Decimal' | 'Date' | 'DateTime' | 'Long' | 'Int' | 'String' | 'Custom';
5
- isList: boolean;
6
- isGenerated: boolean;
7
- isOptional?: boolean;
8
- isUserInput?: boolean;
9
- subfields?: Field[];
10
- }
11
- export type SliceStatus = 'created' | 'in-progress' | 'blocked' | 'done';
12
- export interface EventReference {
13
- eventStickyId: string;
14
- fieldValues?: Record<string, unknown>;
15
- }
16
- export interface CommandReference {
17
- commandStickyId: string;
18
- fieldValues?: Record<string, unknown>;
19
- }
20
- export interface ReadModelAssertion {
21
- readModelStickyId: string;
22
- givenEvents: EventReference[];
23
- expectedFieldValues: Record<string, unknown>;
24
- }
25
- export type ScenarioThenType = 'error' | 'events' | 'readModelAssertion' | 'command' | 'noCommand';
26
- export interface ScenarioThen {
27
- type: ScenarioThenType;
28
- errorMessage?: string;
29
- errorType?: string;
30
- expectedEvents?: EventReference[];
31
- readModelAssertion?: ReadModelAssertion;
32
- expectedCommand?: CommandReference;
33
- }
34
- export interface FieldMapping {
35
- sourceFieldId: string;
36
- targetFieldId: string;
37
- }
38
- export interface CommandSticky {
39
- id: string;
40
- name: string;
41
- fields: Field[];
42
- position: {
43
- x: number;
44
- y: number;
45
- };
46
- width: number;
47
- height: number;
48
- }
49
- export interface EventSticky {
50
- id: string;
51
- name: string;
52
- fields: Field[];
53
- position: {
54
- x: number;
55
- y: number;
56
- };
57
- width: number;
58
- height: number;
59
- canonicalId?: string;
60
- originalNodeId?: string;
61
- }
62
- export interface ReadModelSticky {
63
- id: string;
64
- name: string;
65
- fields: Field[];
66
- position: {
67
- x: number;
68
- y: number;
69
- };
70
- width: number;
71
- height: number;
72
- canonicalId?: string;
73
- originalNodeId?: string;
74
- }
75
- export interface Screen {
76
- id: string;
77
- name: string;
78
- fields: Field[];
79
- position: {
80
- x: number;
81
- y: number;
82
- };
83
- width: number;
84
- height: number;
85
- canonicalId?: string;
86
- originalNodeId?: string;
87
- }
88
- export interface Processor {
89
- id: string;
90
- name: string;
91
- fields: Field[];
92
- position: {
93
- x: number;
94
- y: number;
95
- };
96
- width: number;
97
- height: number;
98
- }
99
- export interface Slice {
100
- id: string;
101
- name: string;
102
- status: SliceStatus;
103
- position: {
104
- x: number;
105
- y: number;
106
- };
107
- size: {
108
- width: number;
109
- height: number;
110
- };
111
- nodeIds: string[];
112
- }
113
- export interface Chapter {
114
- id: string;
115
- name: string;
116
- position: {
117
- x: number;
118
- y: number;
119
- };
120
- size: {
121
- width: number;
122
- height: number;
123
- };
124
- }
125
- export interface Aggregate {
126
- id: string;
127
- name: string;
128
- position: {
129
- x: number;
130
- y: number;
131
- };
132
- size: {
133
- width: number;
134
- height: number;
135
- };
136
- eventIds: string[];
137
- aggregateIdFieldName?: string;
138
- aggregateIdFieldType?: Field['fieldType'];
139
- }
140
- export interface Actor {
141
- id: string;
142
- name: string;
143
- position: {
144
- x: number;
145
- y: number;
146
- };
147
- size: {
148
- width: number;
149
- height: number;
150
- };
151
- screenIds: string[];
152
- }
153
- export interface Scenario {
154
- id: string;
155
- sliceId: string;
156
- name: string;
157
- description: string;
158
- position: {
159
- x: number;
160
- y: number;
161
- };
162
- width: number;
163
- height: number;
164
- givenEvents: EventReference[];
165
- whenCommand: CommandReference | null;
166
- whenEvents: EventReference[];
167
- then: ScenarioThen;
168
- }
169
- export type FlowType = 'CommandToEvent' | 'EventToReadModel' | 'ReadModelToScreen' | 'ReadModelToProcessor' | 'ScreenToCommand' | 'ProcessorToCommand';
170
- export interface Flow {
171
- id: string;
172
- flowType: FlowType;
173
- sourceId: string;
174
- targetId: string;
175
- fieldMappings: FieldMapping[];
176
- }
177
- export interface EventModel {
178
- modelId: string;
179
- name: string;
180
- commands: Map<string, CommandSticky>;
181
- events: Map<string, EventSticky>;
182
- readModels: Map<string, ReadModelSticky>;
183
- screens: Map<string, Screen>;
184
- processors: Map<string, Processor>;
185
- slices: Map<string, Slice>;
186
- chapters: Map<string, Chapter>;
187
- aggregates: Map<string, Aggregate>;
188
- actors: Map<string, Actor>;
189
- scenarios: Map<string, Scenario>;
190
- flows: Map<string, Flow>;
191
- }
192
- export interface RawEvent {
193
- type: string;
194
- data: Record<string, unknown>;
195
- }
package/dist/types.js DELETED
@@ -1 +0,0 @@
1
- export {};