@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,560 @@
1
+ {
2
+ "id": "3458764595831815463",
3
+ "status": "Done",
4
+ "title": "slice: remove item",
5
+ "context": "Cart",
6
+ "sliceType": "STATE_CHANGE",
7
+ "commands": [
8
+ {
9
+ "id": "3458764595830770125",
10
+ "tags": [],
11
+ "domain": "Cart",
12
+ "elementContext": "INTERNAL",
13
+ "modelContext": "Cart",
14
+ "context": "INTERNAL",
15
+ "slice": "slice: remove item",
16
+ "title": "Remove 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": "itemId",
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": "3458764595631345609",
46
+ "type": "OUTBOUND",
47
+ "title": "Item Removed",
48
+ "elementType": "EVENT"
49
+ },
50
+ {
51
+ "id": "3458764595668362949",
52
+ "type": "INBOUND",
53
+ "title": "title",
54
+ "elementType": "SCREEN"
55
+ }
56
+ ],
57
+ "apiEndpoint": "",
58
+ "createsAggregate": false,
59
+ "triggers": [],
60
+ "sketched": false,
61
+ "prototype": {
62
+ "projection": "",
63
+ "label": "Remove Item",
64
+ "placement": "MAIN",
65
+ "initialValue": null,
66
+ "css": null,
67
+ "pageTemplate": null,
68
+ "activeByDefault": false
69
+ }
70
+ }
71
+ ],
72
+ "events": [
73
+ {
74
+ "id": "3458764595631345609",
75
+ "tags": [],
76
+ "domain": "Cart",
77
+ "elementContext": "INTERNAL",
78
+ "modelContext": "Cart",
79
+ "context": "INTERNAL",
80
+ "slice": "slice: remove item",
81
+ "title": "Item Removed",
82
+ "fields": [
83
+ {
84
+ "name": "aggregateId",
85
+ "type": "UUID",
86
+ "example": "",
87
+ "mapping": "",
88
+ "optional": false,
89
+ "cardinality": "Single",
90
+ "idAttribute": false
91
+ },
92
+ {
93
+ "name": "itemId",
94
+ "type": "UUID",
95
+ "example": "",
96
+ "mapping": "",
97
+ "optional": false,
98
+ "cardinality": "Single",
99
+ "idAttribute": false
100
+ }
101
+ ],
102
+ "type": "EVENT",
103
+ "description": "",
104
+ "aggregate": "Cart",
105
+ "aggregateDependencies": [
106
+ "Cart"
107
+ ],
108
+ "dependencies": [
109
+ {
110
+ "id": "3458764596403196690",
111
+ "type": "OUTBOUND",
112
+ "title": "Carts with Products",
113
+ "elementType": "READMODEL"
114
+ },
115
+ {
116
+ "id": "3458764595831018749",
117
+ "type": "OUTBOUND",
118
+ "title": "cart items",
119
+ "elementType": "READMODEL"
120
+ },
121
+ {
122
+ "id": "3458764595830770125",
123
+ "type": "INBOUND",
124
+ "title": "Remove Item",
125
+ "elementType": "COMMAND"
126
+ }
127
+ ],
128
+ "apiEndpoint": "",
129
+ "createsAggregate": false,
130
+ "triggers": [],
131
+ "sketched": false,
132
+ "prototype": {
133
+ "activeByDefault": false
134
+ }
135
+ }
136
+ ],
137
+ "readmodels": [],
138
+ "screens": [
139
+ {
140
+ "id": "3458764595668362949",
141
+ "tags": [],
142
+ "domain": "Cart",
143
+ "elementContext": "INTERNAL",
144
+ "modelContext": "Cart",
145
+ "context": "INTERNAL",
146
+ "slice": "slice: remove item",
147
+ "title": "title",
148
+ "fields": [
149
+ {
150
+ "name": "aggregateId",
151
+ "type": "UUID",
152
+ "example": "",
153
+ "mapping": "",
154
+ "optional": false,
155
+ "cardinality": "Single",
156
+ "idAttribute": false
157
+ },
158
+ {
159
+ "name": "description",
160
+ "type": "String",
161
+ "example": "",
162
+ "mapping": "",
163
+ "optional": false,
164
+ "cardinality": "Single",
165
+ "idAttribute": false
166
+ },
167
+ {
168
+ "name": "image",
169
+ "type": "String",
170
+ "example": "",
171
+ "mapping": "",
172
+ "optional": false,
173
+ "cardinality": "Single",
174
+ "idAttribute": false
175
+ },
176
+ {
177
+ "name": "itemId",
178
+ "type": "UUID",
179
+ "example": "",
180
+ "mapping": "",
181
+ "optional": false,
182
+ "cardinality": "Single",
183
+ "idAttribute": false
184
+ },
185
+ {
186
+ "name": "price",
187
+ "type": "Double",
188
+ "example": "",
189
+ "mapping": "",
190
+ "optional": false,
191
+ "cardinality": "Single",
192
+ "idAttribute": false
193
+ },
194
+ {
195
+ "name": "totalPrice",
196
+ "type": "Double",
197
+ "example": "",
198
+ "mapping": "",
199
+ "optional": false,
200
+ "cardinality": "Single",
201
+ "idAttribute": false
202
+ }
203
+ ],
204
+ "type": "SCREEN",
205
+ "description": "",
206
+ "aggregate": "Cart",
207
+ "aggregateDependencies": [
208
+ "Cart"
209
+ ],
210
+ "dependencies": [
211
+ {
212
+ "id": "3458764595830770125",
213
+ "type": "OUTBOUND",
214
+ "title": "Remove Item",
215
+ "elementType": "COMMAND"
216
+ },
217
+ {
218
+ "id": "3458764595831018749",
219
+ "type": "INBOUND",
220
+ "title": "cart items",
221
+ "elementType": "READMODEL"
222
+ }
223
+ ],
224
+ "apiEndpoint": "",
225
+ "createsAggregate": false,
226
+ "triggers": [],
227
+ "sketched": false,
228
+ "prototype": {
229
+ "activeByDefault": false
230
+ }
231
+ }
232
+ ],
233
+ "screenImages": [],
234
+ "screenLayouts": [],
235
+ "processors": [],
236
+ "tables": [],
237
+ "specifications": [
238
+ {
239
+ "vertical": false,
240
+ "id": "3458764596855766863",
241
+ "sliceName": "slice: remove item",
242
+ "title": "spec: remove item which was already removed",
243
+ "given": [
244
+ {
245
+ "title": "Item Removed",
246
+ "tags": [],
247
+ "id": "3458764596855766866",
248
+ "index": 2,
249
+ "type": "SPEC_EVENT",
250
+ "fields": [
251
+ {
252
+ "name": "aggregateId",
253
+ "type": "UUID",
254
+ "example": "",
255
+ "mapping": "",
256
+ "optional": false,
257
+ "cardinality": "Single",
258
+ "subfields": []
259
+ },
260
+ {
261
+ "name": "itemId",
262
+ "type": "UUID",
263
+ "example": "",
264
+ "mapping": "",
265
+ "optional": false,
266
+ "cardinality": "Single",
267
+ "subfields": []
268
+ }
269
+ ],
270
+ "linkedId": "3458764595631345609"
271
+ },
272
+ {
273
+ "title": "Item Added",
274
+ "tags": [],
275
+ "id": "3458764596855766865",
276
+ "index": 1,
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
+ "name": "description",
290
+ "type": "String",
291
+ "example": "",
292
+ "mapping": "",
293
+ "optional": false,
294
+ "cardinality": "Single",
295
+ "subfields": []
296
+ },
297
+ {
298
+ "name": "image",
299
+ "type": "String",
300
+ "example": "",
301
+ "mapping": "",
302
+ "optional": false,
303
+ "cardinality": "Single",
304
+ "subfields": []
305
+ },
306
+ {
307
+ "name": "price",
308
+ "type": "Double",
309
+ "example": "",
310
+ "mapping": "",
311
+ "optional": false,
312
+ "cardinality": "Single",
313
+ "subfields": []
314
+ },
315
+ {
316
+ "name": "itemId",
317
+ "type": "UUID",
318
+ "example": "",
319
+ "mapping": "",
320
+ "optional": false,
321
+ "cardinality": "Single",
322
+ "subfields": []
323
+ },
324
+ {
325
+ "name": "productId",
326
+ "type": "UUID",
327
+ "example": "",
328
+ "mapping": "",
329
+ "optional": false,
330
+ "cardinality": "Single",
331
+ "subfields": []
332
+ }
333
+ ],
334
+ "linkedId": "3458764595631345476"
335
+ },
336
+ {
337
+ "title": "Cart Created",
338
+ "tags": [],
339
+ "id": "3458764596855766864",
340
+ "index": 0,
341
+ "type": "SPEC_EVENT",
342
+ "fields": [
343
+ {
344
+ "name": "aggregateId",
345
+ "type": "UUID",
346
+ "example": "",
347
+ "mapping": "",
348
+ "optional": false,
349
+ "cardinality": "Single",
350
+ "subfields": []
351
+ }
352
+ ],
353
+ "linkedId": "3458764596402400430"
354
+ }
355
+ ],
356
+ "when": [
357
+ {
358
+ "title": "Remove Item",
359
+ "tags": [],
360
+ "id": "3458764596855766867",
361
+ "index": 0,
362
+ "type": "SPEC_COMMAND",
363
+ "fields": [
364
+ {
365
+ "name": "aggregateId",
366
+ "type": "UUID",
367
+ "example": "",
368
+ "mapping": "",
369
+ "optional": false,
370
+ "cardinality": "Single",
371
+ "subfields": []
372
+ },
373
+ {
374
+ "name": "itemId",
375
+ "type": "UUID",
376
+ "example": "",
377
+ "mapping": "",
378
+ "optional": false,
379
+ "cardinality": "Single",
380
+ "subfields": []
381
+ }
382
+ ],
383
+ "linkedId": "3458764595830770125"
384
+ }
385
+ ],
386
+ "then": [
387
+ {
388
+ "title": "Error-Case",
389
+ "tags": [],
390
+ "id": "3458764596855766868",
391
+ "index": 0,
392
+ "type": "SPEC_ERROR"
393
+ }
394
+ ],
395
+ "comments": [],
396
+ "linkedId": "3458764595831815463"
397
+ },
398
+ {
399
+ "vertical": false,
400
+ "id": "3458764596855188305",
401
+ "sliceName": "slice: remove item",
402
+ "title": "spec: remove item",
403
+ "given": [
404
+ {
405
+ "title": "Item Added",
406
+ "tags": [],
407
+ "id": "3458764596855188308",
408
+ "index": 1,
409
+ "type": "SPEC_EVENT",
410
+ "fields": [
411
+ {
412
+ "name": "aggregateId",
413
+ "type": "UUID",
414
+ "example": "",
415
+ "mapping": "",
416
+ "optional": false,
417
+ "cardinality": "Single",
418
+ "subfields": []
419
+ },
420
+ {
421
+ "name": "description",
422
+ "type": "String",
423
+ "example": "",
424
+ "mapping": "",
425
+ "optional": false,
426
+ "cardinality": "Single",
427
+ "subfields": []
428
+ },
429
+ {
430
+ "name": "image",
431
+ "type": "String",
432
+ "example": "",
433
+ "mapping": "",
434
+ "optional": false,
435
+ "cardinality": "Single",
436
+ "subfields": []
437
+ },
438
+ {
439
+ "name": "price",
440
+ "type": "Double",
441
+ "example": "",
442
+ "mapping": "",
443
+ "optional": false,
444
+ "cardinality": "Single",
445
+ "subfields": []
446
+ },
447
+ {
448
+ "name": "itemId",
449
+ "type": "UUID",
450
+ "example": "",
451
+ "mapping": "",
452
+ "optional": false,
453
+ "cardinality": "Single",
454
+ "subfields": []
455
+ },
456
+ {
457
+ "name": "productId",
458
+ "type": "UUID",
459
+ "example": "",
460
+ "mapping": "",
461
+ "optional": false,
462
+ "cardinality": "Single",
463
+ "subfields": []
464
+ }
465
+ ],
466
+ "linkedId": "3458764595631345476"
467
+ },
468
+ {
469
+ "title": "Cart Created",
470
+ "tags": [],
471
+ "id": "3458764596855188307",
472
+ "index": 0,
473
+ "type": "SPEC_EVENT",
474
+ "fields": [
475
+ {
476
+ "name": "aggregateId",
477
+ "type": "UUID",
478
+ "example": "",
479
+ "mapping": "",
480
+ "optional": false,
481
+ "cardinality": "Single",
482
+ "subfields": []
483
+ }
484
+ ],
485
+ "linkedId": "3458764596402400430"
486
+ }
487
+ ],
488
+ "when": [
489
+ {
490
+ "title": "Remove Item",
491
+ "tags": [],
492
+ "id": "3458764596855188309",
493
+ "index": 0,
494
+ "type": "SPEC_COMMAND",
495
+ "fields": [
496
+ {
497
+ "name": "aggregateId",
498
+ "type": "UUID",
499
+ "example": "",
500
+ "mapping": "",
501
+ "optional": false,
502
+ "cardinality": "Single",
503
+ "subfields": []
504
+ },
505
+ {
506
+ "name": "itemId",
507
+ "type": "UUID",
508
+ "example": "",
509
+ "mapping": "",
510
+ "optional": false,
511
+ "cardinality": "Single",
512
+ "subfields": []
513
+ }
514
+ ],
515
+ "linkedId": "3458764595830770125"
516
+ }
517
+ ],
518
+ "then": [
519
+ {
520
+ "title": "Item Removed",
521
+ "tags": [],
522
+ "id": "3458764596855188310",
523
+ "index": 0,
524
+ "type": "SPEC_EVENT",
525
+ "fields": [
526
+ {
527
+ "name": "aggregateId",
528
+ "type": "UUID",
529
+ "example": "",
530
+ "mapping": "",
531
+ "optional": false,
532
+ "cardinality": "Single",
533
+ "subfields": []
534
+ },
535
+ {
536
+ "name": "itemId",
537
+ "type": "UUID",
538
+ "example": "",
539
+ "mapping": "",
540
+ "optional": false,
541
+ "cardinality": "Single",
542
+ "subfields": []
543
+ }
544
+ ],
545
+ "linkedId": "3458764595631345609"
546
+ }
547
+ ],
548
+ "comments": [],
549
+ "linkedId": "3458764595831815463"
550
+ }
551
+ ],
552
+ "actors": [
553
+ {
554
+ "name": "User"
555
+ }
556
+ ],
557
+ "aggregates": [
558
+ "Cart"
559
+ ]
560
+ }