@nebulit/embuilder 0.1.39

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 (212) hide show
  1. package/README.md +254 -0
  2. package/dist/cli.d.ts +2 -0
  3. package/dist/cli.js +138 -0
  4. package/package.json +49 -0
  5. package/templates/.claude/hooks/QUICKSTART.md +256 -0
  6. package/templates/.claude/hooks/README.md +533 -0
  7. package/templates/.claude/hooks/analyze-commit.sh +22 -0
  8. package/templates/.claude/hooks/analyze-commit.ts +518 -0
  9. package/templates/.claude/hooks/analyzers/README.md +198 -0
  10. package/templates/.claude/hooks/analyzers/code-quality-checker.ts +154 -0
  11. package/templates/.claude/hooks/analyzers/code-quality.md +54 -0
  12. package/templates/.claude/hooks/analyzers/commit-blocker-example.ts.disabled +110 -0
  13. package/templates/.claude/hooks/analyzers/commit-policy.md +49 -0
  14. package/templates/.claude/hooks/analyzers/event-model-validator.md +49 -0
  15. package/templates/.claude/hooks/analyzers/event-model-validator.ts +169 -0
  16. package/templates/.claude/hooks/analyzers/example-logger.ts +70 -0
  17. package/templates/.claude/hooks/analyzers/slice-scope-validator.md +81 -0
  18. package/templates/.claude/hooks/check-review-result.sh +47 -0
  19. package/templates/.claude/hooks/prepare-review.sh +34 -0
  20. package/templates/.claude/hooks/review-agent-prompt.md +42 -0
  21. package/templates/.claude/hooks/run-review-agent.sh +124 -0
  22. package/templates/.claude/settings.local.json +37 -0
  23. package/templates/.claude/skills/help/README.md +84 -0
  24. package/templates/.claude/skills/help/SKILL.md +393 -0
  25. package/templates/.claude/skills/help/templates/demo-config.json +6753 -0
  26. package/templates/.claude/skills/sample-slices/SKILL.md +8 -0
  27. package/templates/.claude/skills/sample-slices/templates/.slices/Library/addbook/code-slice.json +124 -0
  28. package/templates/.claude/skills/sample-slices/templates/.slices/Library/addbook/slice.json +255 -0
  29. package/templates/.claude/skills/sample-slices/templates/.slices/Library/availablebooks/slice.json +107 -0
  30. package/templates/.claude/skills/sample-slices/templates/.slices/index.json +20 -0
  31. package/templates/.claude/skills/sample-slices/templates/Cart/additem/slice.json +979 -0
  32. package/templates/.claude/skills/sample-slices/templates/Cart/archiveitem/slice.json +529 -0
  33. package/templates/.claude/skills/sample-slices/templates/Cart/cartitems/slice.json +1072 -0
  34. package/templates/.claude/skills/sample-slices/templates/Cart/cartwithproducts/slice.json +394 -0
  35. package/templates/.claude/skills/sample-slices/templates/Cart/changedprices/slice.json +88 -0
  36. package/templates/.claude/skills/sample-slices/templates/Cart/changeinventory/slice.json +264 -0
  37. package/templates/.claude/skills/sample-slices/templates/Cart/changeprice/slice.json +308 -0
  38. package/templates/.claude/skills/sample-slices/templates/Cart/clearcart/slice.json +358 -0
  39. package/templates/.claude/skills/sample-slices/templates/Cart/inventories/slice.json +203 -0
  40. package/templates/.claude/skills/sample-slices/templates/Cart/publishcart/slice.json +876 -0
  41. package/templates/.claude/skills/sample-slices/templates/Cart/removeitem/slice.json +560 -0
  42. package/templates/.claude/skills/sample-slices/templates/Cart/submitcart/slice.json +708 -0
  43. package/templates/.claude/skills/sample-slices/templates/Cart/submittedcartdata/slice.json +399 -0
  44. package/templates/.claude/skills/sample-slices/templates/index.json +108 -0
  45. package/templates/.claude/skills/slice-automation/SKILL.md +49 -0
  46. package/templates/.claude/skills/slice-state-change/SKILL.md +369 -0
  47. package/templates/.claude/skills/slice-state-change/templates/AddLocation/AddLocation.test.ts.sample +76 -0
  48. package/templates/.claude/skills/slice-state-change/templates/AddLocation/AddLocationCommand.ts.sample +84 -0
  49. package/templates/.claude/skills/slice-state-change/templates/AddLocation/routes.ts.sample +73 -0
  50. package/templates/.claude/skills/slice-state-change/templates/README.md +46 -0
  51. package/templates/.claude/skills/slice-state-view/SKILL.md +336 -0
  52. package/templates/.claude/skills/slice-state-view/templates/Locations/Locations.test.ts.sample +84 -0
  53. package/templates/.claude/skills/slice-state-view/templates/Locations/LocationsProjection.ts.sample +50 -0
  54. package/templates/.claude/skills/slice-state-view/templates/Locations/routes.ts.sample +46 -0
  55. package/templates/.claude/skills/slice-state-view/templates/README.md +109 -0
  56. package/templates/.claude/skills/slice-state-view/templates/Tables/Tables.test.ts.sample +104 -0
  57. package/templates/.claude/skills/slice-state-view/templates/Tables/TablesProjection.ts.sample +59 -0
  58. package/templates/.claude/skills/slice-state-view/templates/Tables/routes.ts.sample +46 -0
  59. package/templates/.claude/skills/slice-state-view/templates/V2__tables.sql +7 -0
  60. package/templates/.claude/skills/slice-state-view/templates/V8__locations.sql +7 -0
  61. package/templates/.claude/skills/test-analyzer/SKILL.md +373 -0
  62. package/templates/.claude/skills/test-analyzer/examples/specification-format.md +143 -0
  63. package/templates/.claude/skills/test-analyzer/examples/state-change-example.md +111 -0
  64. package/templates/.claude/skills/test-analyzer/examples/state-view-example.md +122 -0
  65. package/templates/AGENTS.md +110 -0
  66. package/templates/Claude.md +58 -0
  67. package/templates/README.md +178 -0
  68. package/templates/backend/.env +9 -0
  69. package/templates/backend/BACKEND_AUTH_SETUP.md +183 -0
  70. package/templates/backend/SWAGGER.md +213 -0
  71. package/templates/backend/eslint.config.mjs +31 -0
  72. package/templates/backend/flyway.conf +17 -0
  73. package/templates/backend/package.json +44 -0
  74. package/templates/backend/prd.json.example +64 -0
  75. package/templates/backend/public/assets/images/banner.png +0 -0
  76. package/templates/backend/public/assets/logo.png +0 -0
  77. package/templates/backend/public/file.svg +4 -0
  78. package/templates/backend/public/globe.svg +12 -0
  79. package/templates/backend/public/next.svg +6 -0
  80. package/templates/backend/public/vercel.svg +3 -0
  81. package/templates/backend/public/window.svg +5 -0
  82. package/templates/backend/server.ts +129 -0
  83. package/templates/backend/setup-env.sh +50 -0
  84. package/templates/backend/src/common/assertions.ts +6 -0
  85. package/templates/backend/src/common/db.ts +1 -0
  86. package/templates/backend/src/common/loadPostgresEventstore.ts +16 -0
  87. package/templates/backend/src/common/parseEndpoint.ts +51 -0
  88. package/templates/backend/src/common/replay.ts +9 -0
  89. package/templates/backend/src/common/routes.ts +19 -0
  90. package/templates/backend/src/common/testHelpers.ts +53 -0
  91. package/templates/backend/src/core/readmodel.ts +28 -0
  92. package/templates/backend/src/core/types.ts +26 -0
  93. package/templates/backend/src/process/process.ts +53 -0
  94. package/templates/backend/src/supabase/LoginHandler.ts +36 -0
  95. package/templates/backend/src/supabase/ProtectedPageProps.ts +21 -0
  96. package/templates/backend/src/supabase/README.md +171 -0
  97. package/templates/backend/src/supabase/api.ts +63 -0
  98. package/templates/backend/src/supabase/authMiddleware.ts +53 -0
  99. package/templates/backend/src/supabase/component.ts +12 -0
  100. package/templates/backend/src/supabase/requireUser.ts +72 -0
  101. package/templates/backend/src/supabase/serverProps.ts +25 -0
  102. package/templates/backend/src/supabase/staticProps.ts +10 -0
  103. package/templates/backend/src/swagger.ts +34 -0
  104. package/templates/backend/src/util/assertions.ts +6 -0
  105. package/templates/backend/supabase/config.toml +295 -0
  106. package/templates/backend/supabase/migrations/20260121155918593_catalogentries.sql.sample +23 -0
  107. package/templates/backend/supabase/seed.sql +1 -0
  108. package/templates/backend/tsconfig.json +31 -0
  109. package/templates/frontend/.env.development +3 -0
  110. package/templates/frontend/AGENTS.md +7 -0
  111. package/templates/frontend/README.md +73 -0
  112. package/templates/frontend/components.json +20 -0
  113. package/templates/frontend/eslint.config.js +26 -0
  114. package/templates/frontend/index.html +18 -0
  115. package/templates/frontend/package-lock.json +8347 -0
  116. package/templates/frontend/package.json +94 -0
  117. package/templates/frontend/postcss.config.js +6 -0
  118. package/templates/frontend/public/favicon.ico +0 -0
  119. package/templates/frontend/public/logo.png +0 -0
  120. package/templates/frontend/public/placeholder.svg +1 -0
  121. package/templates/frontend/public/robots.txt +14 -0
  122. package/templates/frontend/src/App.css +42 -0
  123. package/templates/frontend/src/App.tsx +47 -0
  124. package/templates/frontend/src/components/NavLink.tsx +28 -0
  125. package/templates/frontend/src/components/ProtectedRoute.tsx +24 -0
  126. package/templates/frontend/src/components/calendar/Calendar.tsx +302 -0
  127. package/templates/frontend/src/components/layout/DashboardLayout.tsx +21 -0
  128. package/templates/frontend/src/components/layout/Header.tsx +45 -0
  129. package/templates/frontend/src/components/layout/Sidebar.tsx +82 -0
  130. package/templates/frontend/src/components/tables/ReservationTemplates.tsx +189 -0
  131. package/templates/frontend/src/components/ui/accordion.tsx +52 -0
  132. package/templates/frontend/src/components/ui/alert-dialog.tsx +104 -0
  133. package/templates/frontend/src/components/ui/alert.tsx +43 -0
  134. package/templates/frontend/src/components/ui/aspect-ratio.tsx +5 -0
  135. package/templates/frontend/src/components/ui/avatar.tsx +38 -0
  136. package/templates/frontend/src/components/ui/badge.tsx +29 -0
  137. package/templates/frontend/src/components/ui/breadcrumb.tsx +90 -0
  138. package/templates/frontend/src/components/ui/button.tsx +47 -0
  139. package/templates/frontend/src/components/ui/calendar.tsx +54 -0
  140. package/templates/frontend/src/components/ui/card.tsx +43 -0
  141. package/templates/frontend/src/components/ui/carousel.tsx +224 -0
  142. package/templates/frontend/src/components/ui/chart.tsx +303 -0
  143. package/templates/frontend/src/components/ui/checkbox.tsx +26 -0
  144. package/templates/frontend/src/components/ui/collapsible.tsx +9 -0
  145. package/templates/frontend/src/components/ui/command.tsx +132 -0
  146. package/templates/frontend/src/components/ui/context-menu.tsx +178 -0
  147. package/templates/frontend/src/components/ui/dialog.tsx +95 -0
  148. package/templates/frontend/src/components/ui/drawer.tsx +87 -0
  149. package/templates/frontend/src/components/ui/dropdown-menu.tsx +179 -0
  150. package/templates/frontend/src/components/ui/form.tsx +129 -0
  151. package/templates/frontend/src/components/ui/hover-card.tsx +27 -0
  152. package/templates/frontend/src/components/ui/input-otp.tsx +61 -0
  153. package/templates/frontend/src/components/ui/input.tsx +22 -0
  154. package/templates/frontend/src/components/ui/label.tsx +17 -0
  155. package/templates/frontend/src/components/ui/menubar.tsx +207 -0
  156. package/templates/frontend/src/components/ui/navigation-menu.tsx +120 -0
  157. package/templates/frontend/src/components/ui/pagination.tsx +81 -0
  158. package/templates/frontend/src/components/ui/popover.tsx +29 -0
  159. package/templates/frontend/src/components/ui/progress.tsx +23 -0
  160. package/templates/frontend/src/components/ui/radio-group.tsx +36 -0
  161. package/templates/frontend/src/components/ui/resizable.tsx +37 -0
  162. package/templates/frontend/src/components/ui/scroll-area.tsx +38 -0
  163. package/templates/frontend/src/components/ui/select.tsx +143 -0
  164. package/templates/frontend/src/components/ui/separator.tsx +20 -0
  165. package/templates/frontend/src/components/ui/sheet.tsx +107 -0
  166. package/templates/frontend/src/components/ui/sidebar.tsx +637 -0
  167. package/templates/frontend/src/components/ui/skeleton.tsx +7 -0
  168. package/templates/frontend/src/components/ui/slider.tsx +23 -0
  169. package/templates/frontend/src/components/ui/sonner.tsx +27 -0
  170. package/templates/frontend/src/components/ui/stat-card.tsx +44 -0
  171. package/templates/frontend/src/components/ui/switch.tsx +27 -0
  172. package/templates/frontend/src/components/ui/table.tsx +72 -0
  173. package/templates/frontend/src/components/ui/tabs.tsx +53 -0
  174. package/templates/frontend/src/components/ui/textarea.tsx +21 -0
  175. package/templates/frontend/src/components/ui/toast.tsx +111 -0
  176. package/templates/frontend/src/components/ui/toaster.tsx +24 -0
  177. package/templates/frontend/src/components/ui/toggle-group.tsx +49 -0
  178. package/templates/frontend/src/components/ui/toggle.tsx +37 -0
  179. package/templates/frontend/src/components/ui/tooltip.tsx +28 -0
  180. package/templates/frontend/src/components/ui/use-toast.ts +3 -0
  181. package/templates/frontend/src/contexts/AuthContext.tsx +94 -0
  182. package/templates/frontend/src/contexts/RefreshContext.tsx +236 -0
  183. package/templates/frontend/src/hooks/api/index.ts +2 -0
  184. package/templates/frontend/src/hooks/api/useLocations.ts +15 -0
  185. package/templates/frontend/src/hooks/use-mobile.tsx +19 -0
  186. package/templates/frontend/src/hooks/use-toast.ts +186 -0
  187. package/templates/frontend/src/hooks/useApiContext.ts +11 -0
  188. package/templates/frontend/src/index.css +118 -0
  189. package/templates/frontend/src/integrations/supabase/client.ts +9 -0
  190. package/templates/frontend/src/lib/api-client.ts +136 -0
  191. package/templates/frontend/src/lib/api.ts +1028 -0
  192. package/templates/frontend/src/lib/utils.ts +6 -0
  193. package/templates/frontend/src/main.tsx +5 -0
  194. package/templates/frontend/src/pages/Auth.tsx +408 -0
  195. package/templates/frontend/src/pages/Dashboard.tsx +168 -0
  196. package/templates/frontend/src/pages/Menus.tsx +224 -0
  197. package/templates/frontend/src/pages/NotFound.tsx +24 -0
  198. package/templates/frontend/src/pages/Register.tsx +285 -0
  199. package/templates/frontend/src/test/example.test.ts +0 -0
  200. package/templates/frontend/src/test/setup.ts +15 -0
  201. package/templates/frontend/src/types/index.ts +8 -0
  202. package/templates/frontend/src/vite-env.d.ts +1 -0
  203. package/templates/frontend/tailwind.config.ts +101 -0
  204. package/templates/frontend/tsconfig.app.json +31 -0
  205. package/templates/frontend/tsconfig.json +16 -0
  206. package/templates/frontend/tsconfig.node.json +22 -0
  207. package/templates/frontend/vite.config.ts +21 -0
  208. package/templates/frontend/vitest.config.ts +16 -0
  209. package/templates/init.sh +1 -0
  210. package/templates/prompt.md +139 -0
  211. package/templates/ralph.sh +120 -0
  212. package/templates/server.mjs +505 -0
@@ -0,0 +1,529 @@
1
+ {
2
+ "id": "3458764596700962479",
3
+ "status": "Done",
4
+ "title": "slice: Archive Item",
5
+ "context": "Cart",
6
+ "sliceType": "STATE_CHANGE",
7
+ "commands": [
8
+ {
9
+ "id": "3458764597673526089",
10
+ "tags": [],
11
+ "domain": "Cart",
12
+ "elementContext": "INTERNAL",
13
+ "modelContext": "Cart",
14
+ "context": "INTERNAL",
15
+ "slice": "slice: Archive Item",
16
+ "title": "Archive Item",
17
+ "fields": [
18
+ {
19
+ "name": "aggregateId",
20
+ "type": "UUID",
21
+ "example": "",
22
+ "mapping": "",
23
+ "optional": false,
24
+ "cardinality": "Single",
25
+ "idAttribute": false
26
+ },
27
+ {
28
+ "name": "productId",
29
+ "type": "UUID",
30
+ "example": "",
31
+ "mapping": "",
32
+ "optional": false,
33
+ "cardinality": "Single",
34
+ "idAttribute": false
35
+ }
36
+ ],
37
+ "type": "COMMAND",
38
+ "description": "",
39
+ "aggregate": "Cart",
40
+ "aggregateDependencies": [
41
+ "Cart"
42
+ ],
43
+ "dependencies": [
44
+ {
45
+ "id": "3458764595641022551",
46
+ "type": "OUTBOUND",
47
+ "title": "Item Archived",
48
+ "elementType": "EVENT"
49
+ },
50
+ {
51
+ "id": "3458764596406327949",
52
+ "type": "INBOUND",
53
+ "title": "automation",
54
+ "elementType": "AUTOMATION"
55
+ }
56
+ ],
57
+ "apiEndpoint": "",
58
+ "createsAggregate": false,
59
+ "triggers": [],
60
+ "sketched": false,
61
+ "prototype": {
62
+ "activeByDefault": false
63
+ }
64
+ }
65
+ ],
66
+ "events": [
67
+ {
68
+ "id": "3458764595641022551",
69
+ "tags": [],
70
+ "domain": "Cart",
71
+ "elementContext": "INTERNAL",
72
+ "modelContext": "Cart",
73
+ "context": "INTERNAL",
74
+ "slice": "slice: Archive Item",
75
+ "title": "Item Archived",
76
+ "fields": [
77
+ {
78
+ "name": "aggregateId",
79
+ "type": "UUID",
80
+ "example": "",
81
+ "mapping": "",
82
+ "optional": false,
83
+ "cardinality": "Single",
84
+ "idAttribute": false
85
+ },
86
+ {
87
+ "name": "itemId",
88
+ "type": "UUID",
89
+ "example": "",
90
+ "mapping": "productId",
91
+ "optional": false,
92
+ "cardinality": "Single",
93
+ "idAttribute": false
94
+ }
95
+ ],
96
+ "type": "EVENT",
97
+ "description": "",
98
+ "aggregate": "Cart",
99
+ "aggregateDependencies": [
100
+ "Cart"
101
+ ],
102
+ "dependencies": [
103
+ {
104
+ "id": "3458764596403196690",
105
+ "type": "OUTBOUND",
106
+ "title": "Carts with Products",
107
+ "elementType": "READMODEL"
108
+ },
109
+ {
110
+ "id": "3458764595831018749",
111
+ "type": "OUTBOUND",
112
+ "title": "cart items",
113
+ "elementType": "READMODEL"
114
+ },
115
+ {
116
+ "id": "3458764597673526089",
117
+ "type": "INBOUND",
118
+ "title": "Archive Item",
119
+ "elementType": "COMMAND"
120
+ }
121
+ ],
122
+ "apiEndpoint": "",
123
+ "createsAggregate": false,
124
+ "triggers": [],
125
+ "sketched": false,
126
+ "prototype": {
127
+ "activeByDefault": false
128
+ }
129
+ }
130
+ ],
131
+ "readmodels": [],
132
+ "screens": [],
133
+ "screenImages": [],
134
+ "screenLayouts": [],
135
+ "processors": [
136
+ {
137
+ "id": "3458764596406327949",
138
+ "tags": [],
139
+ "domain": "Cart",
140
+ "elementContext": "INTERNAL",
141
+ "modelContext": "Cart",
142
+ "context": "INTERNAL",
143
+ "slice": "slice: Archive Item",
144
+ "title": "automation",
145
+ "fields": [
146
+ {
147
+ "name": "aggregateId",
148
+ "type": "UUID",
149
+ "example": "",
150
+ "mapping": "cartId",
151
+ "optional": false,
152
+ "cardinality": "Single",
153
+ "idAttribute": false
154
+ },
155
+ {
156
+ "name": "productId",
157
+ "type": "UUID",
158
+ "example": "",
159
+ "mapping": "",
160
+ "optional": false,
161
+ "cardinality": "Single",
162
+ "idAttribute": false
163
+ }
164
+ ],
165
+ "type": "AUTOMATION",
166
+ "description": "",
167
+ "aggregate": "Cart",
168
+ "aggregateDependencies": [
169
+ "Cart"
170
+ ],
171
+ "dependencies": [
172
+ {
173
+ "id": "3458764597673526089",
174
+ "type": "OUTBOUND",
175
+ "title": "Archive Item",
176
+ "elementType": "COMMAND"
177
+ },
178
+ {
179
+ "id": "3458764596403196690",
180
+ "type": "INBOUND",
181
+ "title": "Carts with Products",
182
+ "elementType": "READMODEL"
183
+ },
184
+ {
185
+ "id": "3458764596409128019",
186
+ "type": "INBOUND",
187
+ "title": "Changed Prices",
188
+ "elementType": "READMODEL"
189
+ }
190
+ ],
191
+ "apiEndpoint": "",
192
+ "createsAggregate": false,
193
+ "triggers": [],
194
+ "sketched": false,
195
+ "prototype": {
196
+ "activeByDefault": false
197
+ }
198
+ }
199
+ ],
200
+ "tables": [],
201
+ "specifications": [
202
+ {
203
+ "vertical": false,
204
+ "id": "3458764598488463406",
205
+ "sliceName": "slice: Archive Item",
206
+ "title": "spec: Archive Item Aggregate Test",
207
+ "given": [
208
+ {
209
+ "title": "Item Added",
210
+ "tags": [],
211
+ "id": "3458764598488463409",
212
+ "index": 1,
213
+ "type": "SPEC_EVENT",
214
+ "fields": [
215
+ {
216
+ "name": "aggregateId",
217
+ "type": "UUID",
218
+ "example": "",
219
+ "mapping": "",
220
+ "optional": false,
221
+ "cardinality": "Single",
222
+ "subfields": []
223
+ },
224
+ {
225
+ "name": "description",
226
+ "type": "String",
227
+ "example": "",
228
+ "mapping": "",
229
+ "optional": false,
230
+ "cardinality": "Single",
231
+ "subfields": []
232
+ },
233
+ {
234
+ "name": "image",
235
+ "type": "String",
236
+ "example": "",
237
+ "mapping": "",
238
+ "optional": false,
239
+ "cardinality": "Single",
240
+ "subfields": []
241
+ },
242
+ {
243
+ "name": "price",
244
+ "type": "Double",
245
+ "example": "",
246
+ "mapping": "",
247
+ "optional": false,
248
+ "cardinality": "Single",
249
+ "subfields": []
250
+ },
251
+ {
252
+ "name": "itemId",
253
+ "type": "UUID",
254
+ "example": "",
255
+ "mapping": "",
256
+ "optional": false,
257
+ "cardinality": "Single",
258
+ "subfields": []
259
+ },
260
+ {
261
+ "name": "productId",
262
+ "type": "UUID",
263
+ "example": "",
264
+ "mapping": "",
265
+ "optional": false,
266
+ "cardinality": "Single",
267
+ "subfields": []
268
+ }
269
+ ],
270
+ "linkedId": "3458764595631345476"
271
+ },
272
+ {
273
+ "title": "Cart Created",
274
+ "tags": [],
275
+ "id": "3458764598488463408",
276
+ "index": 0,
277
+ "type": "SPEC_EVENT",
278
+ "fields": [
279
+ {
280
+ "name": "aggregateId",
281
+ "type": "UUID",
282
+ "example": "",
283
+ "mapping": "",
284
+ "optional": false,
285
+ "cardinality": "Single",
286
+ "subfields": []
287
+ }
288
+ ],
289
+ "linkedId": "3458764596402400430"
290
+ }
291
+ ],
292
+ "when": [
293
+ {
294
+ "title": "Archive Item",
295
+ "tags": [],
296
+ "id": "3458764598488463410",
297
+ "index": 0,
298
+ "type": "SPEC_COMMAND",
299
+ "fields": [
300
+ {
301
+ "name": "aggregateId",
302
+ "type": "UUID",
303
+ "example": "",
304
+ "mapping": "",
305
+ "optional": false,
306
+ "cardinality": "Single",
307
+ "subfields": []
308
+ },
309
+ {
310
+ "name": "productId",
311
+ "type": "UUID",
312
+ "example": "",
313
+ "mapping": "",
314
+ "optional": false,
315
+ "cardinality": "Single",
316
+ "subfields": []
317
+ }
318
+ ],
319
+ "linkedId": "3458764597673526089"
320
+ }
321
+ ],
322
+ "then": [
323
+ {
324
+ "title": "Item Archived",
325
+ "tags": [],
326
+ "id": "3458764598488463411",
327
+ "index": 0,
328
+ "type": "SPEC_EVENT",
329
+ "fields": [
330
+ {
331
+ "name": "aggregateId",
332
+ "type": "UUID",
333
+ "example": "",
334
+ "mapping": "",
335
+ "optional": false,
336
+ "cardinality": "Single",
337
+ "subfields": []
338
+ },
339
+ {
340
+ "name": "itemId",
341
+ "type": "UUID",
342
+ "example": "",
343
+ "mapping": "productId",
344
+ "optional": false,
345
+ "cardinality": "Single",
346
+ "subfields": []
347
+ }
348
+ ],
349
+ "linkedId": "3458764595641022551"
350
+ }
351
+ ],
352
+ "comments": [],
353
+ "linkedId": "3458764596700962479"
354
+ },
355
+ {
356
+ "vertical": false,
357
+ "id": "3458764598269773158",
358
+ "sliceName": "slice: Archive Item",
359
+ "title": "spec: Archive Item",
360
+ "given": [
361
+ {
362
+ "title": "Price Changed",
363
+ "tags": [],
364
+ "id": "3458764598269773163",
365
+ "index": 4,
366
+ "type": "SPEC_EVENT",
367
+ "fields": [
368
+ {
369
+ "name": "newPrice",
370
+ "type": "Double",
371
+ "example": "",
372
+ "mapping": "",
373
+ "optional": false,
374
+ "cardinality": "Single",
375
+ "subfields": []
376
+ },
377
+ {
378
+ "name": "oldPrice",
379
+ "type": "Double",
380
+ "example": "",
381
+ "mapping": "",
382
+ "optional": false,
383
+ "cardinality": "Single",
384
+ "subfields": []
385
+ },
386
+ {
387
+ "name": "productId",
388
+ "type": "UUID",
389
+ "example": "",
390
+ "mapping": "",
391
+ "optional": false,
392
+ "cardinality": "Single",
393
+ "subfields": []
394
+ }
395
+ ],
396
+ "linkedId": "3458764595641022550"
397
+ },
398
+ {
399
+ "title": "Item Added",
400
+ "tags": [],
401
+ "id": "3458764598269773160",
402
+ "index": 1,
403
+ "type": "SPEC_EVENT",
404
+ "fields": [
405
+ {
406
+ "name": "aggregateId",
407
+ "type": "UUID",
408
+ "example": "",
409
+ "mapping": "",
410
+ "optional": false,
411
+ "cardinality": "Single",
412
+ "subfields": []
413
+ },
414
+ {
415
+ "name": "description",
416
+ "type": "String",
417
+ "example": "",
418
+ "mapping": "",
419
+ "optional": false,
420
+ "cardinality": "Single",
421
+ "subfields": []
422
+ },
423
+ {
424
+ "name": "image",
425
+ "type": "String",
426
+ "example": "",
427
+ "mapping": "",
428
+ "optional": false,
429
+ "cardinality": "Single",
430
+ "subfields": []
431
+ },
432
+ {
433
+ "name": "price",
434
+ "type": "Double",
435
+ "example": "",
436
+ "mapping": "",
437
+ "optional": false,
438
+ "cardinality": "Single",
439
+ "subfields": []
440
+ },
441
+ {
442
+ "name": "itemId",
443
+ "type": "UUID",
444
+ "example": "",
445
+ "mapping": "",
446
+ "optional": false,
447
+ "cardinality": "Single",
448
+ "subfields": []
449
+ },
450
+ {
451
+ "name": "productId",
452
+ "type": "UUID",
453
+ "example": "",
454
+ "mapping": "",
455
+ "optional": false,
456
+ "cardinality": "Single",
457
+ "subfields": []
458
+ }
459
+ ],
460
+ "linkedId": "3458764595631345476"
461
+ },
462
+ {
463
+ "title": "Cart Created",
464
+ "tags": [],
465
+ "id": "3458764598269773159",
466
+ "index": 0,
467
+ "type": "SPEC_EVENT",
468
+ "fields": [
469
+ {
470
+ "name": "aggregateId",
471
+ "type": "UUID",
472
+ "example": "",
473
+ "mapping": "",
474
+ "optional": false,
475
+ "cardinality": "Single",
476
+ "subfields": []
477
+ }
478
+ ],
479
+ "linkedId": "3458764596402400430"
480
+ }
481
+ ],
482
+ "when": [],
483
+ "then": [
484
+ {
485
+ "title": "Item Archived",
486
+ "tags": [],
487
+ "id": "3458764598269773164",
488
+ "index": 0,
489
+ "type": "SPEC_EVENT",
490
+ "fields": [
491
+ {
492
+ "name": "aggregateId",
493
+ "type": "UUID",
494
+ "example": "",
495
+ "mapping": "",
496
+ "optional": false,
497
+ "cardinality": "Single",
498
+ "subfields": []
499
+ },
500
+ {
501
+ "name": "itemId",
502
+ "type": "UUID",
503
+ "example": "",
504
+ "mapping": "productId",
505
+ "optional": false,
506
+ "cardinality": "Single",
507
+ "subfields": []
508
+ }
509
+ ],
510
+ "linkedId": "3458764595641022551"
511
+ }
512
+ ],
513
+ "comments": [
514
+ {
515
+ "description": "cart containing the product should react if the price of the product changes"
516
+ }
517
+ ],
518
+ "linkedId": "3458764596700962479"
519
+ }
520
+ ],
521
+ "actors": [
522
+ {
523
+ "name": "bots"
524
+ }
525
+ ],
526
+ "aggregates": [
527
+ "Cart"
528
+ ]
529
+ }