@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,358 @@
1
+ {
2
+ "id": "3458764595935790438",
3
+ "status": "Done",
4
+ "title": "slice: clear cart",
5
+ "context": "Cart",
6
+ "sliceType": "STATE_CHANGE",
7
+ "commands": [
8
+ {
9
+ "id": "3458764595934952195",
10
+ "tags": [],
11
+ "domain": "Cart",
12
+ "elementContext": "INTERNAL",
13
+ "modelContext": "Cart",
14
+ "context": "INTERNAL",
15
+ "slice": "slice: clear cart",
16
+ "title": "Clear Cart",
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
+ "type": "COMMAND",
29
+ "description": "",
30
+ "aggregate": "Cart",
31
+ "aggregateDependencies": [
32
+ "Cart"
33
+ ],
34
+ "dependencies": [
35
+ {
36
+ "id": "3458764595641022548",
37
+ "type": "OUTBOUND",
38
+ "title": "Cart Cleared",
39
+ "elementType": "EVENT"
40
+ },
41
+ {
42
+ "id": "3458764595831398076",
43
+ "type": "INBOUND",
44
+ "title": "title",
45
+ "elementType": "SCREEN"
46
+ }
47
+ ],
48
+ "apiEndpoint": "",
49
+ "createsAggregate": false,
50
+ "triggers": [],
51
+ "sketched": false,
52
+ "prototype": {
53
+ "activeByDefault": false
54
+ }
55
+ }
56
+ ],
57
+ "events": [
58
+ {
59
+ "id": "3458764595641022548",
60
+ "tags": [],
61
+ "domain": "Cart",
62
+ "elementContext": "INTERNAL",
63
+ "modelContext": "Cart",
64
+ "context": "INTERNAL",
65
+ "slice": "slice: clear cart",
66
+ "title": "Cart Cleared",
67
+ "fields": [
68
+ {
69
+ "name": "aggregateId",
70
+ "type": "UUID",
71
+ "example": "",
72
+ "mapping": "",
73
+ "optional": false,
74
+ "cardinality": "Single",
75
+ "idAttribute": false
76
+ }
77
+ ],
78
+ "type": "EVENT",
79
+ "description": "",
80
+ "aggregate": "Cart",
81
+ "aggregateDependencies": [
82
+ "Cart"
83
+ ],
84
+ "dependencies": [
85
+ {
86
+ "id": "3458764596403196690",
87
+ "type": "OUTBOUND",
88
+ "title": "Carts with Products",
89
+ "elementType": "READMODEL"
90
+ },
91
+ {
92
+ "id": "3458764595831018749",
93
+ "type": "OUTBOUND",
94
+ "title": "cart items",
95
+ "elementType": "READMODEL"
96
+ },
97
+ {
98
+ "id": "3458764595934952195",
99
+ "type": "INBOUND",
100
+ "title": "Clear Cart",
101
+ "elementType": "COMMAND"
102
+ }
103
+ ],
104
+ "apiEndpoint": "",
105
+ "createsAggregate": false,
106
+ "triggers": [],
107
+ "sketched": false,
108
+ "prototype": {
109
+ "activeByDefault": false
110
+ }
111
+ }
112
+ ],
113
+ "readmodels": [],
114
+ "screens": [
115
+ {
116
+ "id": "3458764595831398076",
117
+ "tags": [],
118
+ "domain": "Cart",
119
+ "elementContext": "INTERNAL",
120
+ "modelContext": "Cart",
121
+ "context": "INTERNAL",
122
+ "slice": "slice: clear cart",
123
+ "title": "title",
124
+ "fields": [
125
+ {
126
+ "name": "aggregateId",
127
+ "type": "UUID",
128
+ "example": "",
129
+ "mapping": "",
130
+ "optional": false,
131
+ "cardinality": "Single",
132
+ "idAttribute": false
133
+ },
134
+ {
135
+ "name": "description",
136
+ "type": "String",
137
+ "example": "",
138
+ "mapping": "",
139
+ "optional": false,
140
+ "cardinality": "Single",
141
+ "idAttribute": false
142
+ },
143
+ {
144
+ "name": "image",
145
+ "type": "String",
146
+ "example": "",
147
+ "mapping": "",
148
+ "optional": false,
149
+ "cardinality": "Single",
150
+ "idAttribute": false
151
+ },
152
+ {
153
+ "name": "itemId",
154
+ "type": "UUID",
155
+ "example": "",
156
+ "mapping": "",
157
+ "optional": false,
158
+ "cardinality": "Single",
159
+ "idAttribute": false
160
+ },
161
+ {
162
+ "name": "price",
163
+ "type": "Double",
164
+ "example": "",
165
+ "mapping": "",
166
+ "optional": false,
167
+ "cardinality": "Single",
168
+ "idAttribute": false
169
+ },
170
+ {
171
+ "name": "totalPrice",
172
+ "type": "Double",
173
+ "example": "",
174
+ "mapping": "",
175
+ "optional": false,
176
+ "cardinality": "Single",
177
+ "idAttribute": false
178
+ }
179
+ ],
180
+ "type": "SCREEN",
181
+ "description": "",
182
+ "aggregate": "Cart",
183
+ "aggregateDependencies": [
184
+ "Cart"
185
+ ],
186
+ "dependencies": [
187
+ {
188
+ "id": "3458764595934952195",
189
+ "type": "OUTBOUND",
190
+ "title": "Clear Cart",
191
+ "elementType": "COMMAND"
192
+ },
193
+ {
194
+ "id": "3458764595831018749",
195
+ "type": "INBOUND",
196
+ "title": "cart items",
197
+ "elementType": "READMODEL"
198
+ }
199
+ ],
200
+ "apiEndpoint": "",
201
+ "createsAggregate": false,
202
+ "triggers": [],
203
+ "sketched": false,
204
+ "prototype": {
205
+ "activeByDefault": false
206
+ }
207
+ }
208
+ ],
209
+ "screenImages": [],
210
+ "screenLayouts": [],
211
+ "processors": [],
212
+ "tables": [],
213
+ "specifications": [
214
+ {
215
+ "vertical": false,
216
+ "id": "3458764596856777915",
217
+ "sliceName": "slice: clear cart",
218
+ "title": "spec: clear cart",
219
+ "given": [
220
+ {
221
+ "title": "Item Added",
222
+ "tags": [],
223
+ "id": "3458764596856777917",
224
+ "index": 1,
225
+ "type": "SPEC_EVENT",
226
+ "fields": [
227
+ {
228
+ "name": "aggregateId",
229
+ "type": "UUID",
230
+ "example": "",
231
+ "mapping": "",
232
+ "optional": false,
233
+ "cardinality": "Single",
234
+ "subfields": []
235
+ },
236
+ {
237
+ "name": "description",
238
+ "type": "String",
239
+ "example": "",
240
+ "mapping": "",
241
+ "optional": false,
242
+ "cardinality": "Single",
243
+ "subfields": []
244
+ },
245
+ {
246
+ "name": "image",
247
+ "type": "String",
248
+ "example": "",
249
+ "mapping": "",
250
+ "optional": false,
251
+ "cardinality": "Single",
252
+ "subfields": []
253
+ },
254
+ {
255
+ "name": "price",
256
+ "type": "Double",
257
+ "example": "",
258
+ "mapping": "",
259
+ "optional": false,
260
+ "cardinality": "Single",
261
+ "subfields": []
262
+ },
263
+ {
264
+ "name": "itemId",
265
+ "type": "UUID",
266
+ "example": "",
267
+ "mapping": "",
268
+ "optional": false,
269
+ "cardinality": "Single",
270
+ "subfields": []
271
+ },
272
+ {
273
+ "name": "productId",
274
+ "type": "UUID",
275
+ "example": "",
276
+ "mapping": "",
277
+ "optional": false,
278
+ "cardinality": "Single",
279
+ "subfields": []
280
+ }
281
+ ],
282
+ "linkedId": "3458764595631345476"
283
+ },
284
+ {
285
+ "title": "Cart Created",
286
+ "tags": [],
287
+ "id": "3458764596856777916",
288
+ "index": 0,
289
+ "type": "SPEC_EVENT",
290
+ "fields": [
291
+ {
292
+ "name": "aggregateId",
293
+ "type": "UUID",
294
+ "example": "",
295
+ "mapping": "",
296
+ "optional": false,
297
+ "cardinality": "Single",
298
+ "subfields": []
299
+ }
300
+ ],
301
+ "linkedId": "3458764596402400430"
302
+ }
303
+ ],
304
+ "when": [
305
+ {
306
+ "title": "Clear Cart",
307
+ "tags": [],
308
+ "id": "3458764596856777918",
309
+ "index": 0,
310
+ "type": "SPEC_COMMAND",
311
+ "fields": [
312
+ {
313
+ "name": "aggregateId",
314
+ "type": "UUID",
315
+ "example": "",
316
+ "mapping": "",
317
+ "optional": false,
318
+ "cardinality": "Single",
319
+ "subfields": []
320
+ }
321
+ ],
322
+ "linkedId": "3458764595934952195"
323
+ }
324
+ ],
325
+ "then": [
326
+ {
327
+ "title": "Cart Cleared",
328
+ "tags": [],
329
+ "id": "3458764596856777919",
330
+ "index": 0,
331
+ "type": "SPEC_EVENT",
332
+ "fields": [
333
+ {
334
+ "name": "aggregateId",
335
+ "type": "UUID",
336
+ "example": "",
337
+ "mapping": "",
338
+ "optional": false,
339
+ "cardinality": "Single",
340
+ "subfields": []
341
+ }
342
+ ],
343
+ "linkedId": "3458764595641022548"
344
+ }
345
+ ],
346
+ "comments": [],
347
+ "linkedId": "3458764595935790438"
348
+ }
349
+ ],
350
+ "actors": [
351
+ {
352
+ "name": "User"
353
+ }
354
+ ],
355
+ "aggregates": [
356
+ "Cart"
357
+ ]
358
+ }
@@ -0,0 +1,203 @@
1
+ {
2
+ "id": "3458764596700878694",
3
+ "status": "Done",
4
+ "title": "slice: Inventories",
5
+ "context": "Cart",
6
+ "sliceType": "STATE_VIEW",
7
+ "commands": [],
8
+ "events": [],
9
+ "readmodels": [
10
+ {
11
+ "id": "3458764596395903488",
12
+ "tags": [],
13
+ "domain": "Cart",
14
+ "elementContext": "INTERNAL",
15
+ "modelContext": "Cart",
16
+ "context": "INTERNAL",
17
+ "slice": "slice: Inventories",
18
+ "title": "Inventories",
19
+ "fields": [
20
+ {
21
+ "name": "inventory",
22
+ "type": "Int",
23
+ "example": "",
24
+ "mapping": "",
25
+ "optional": false,
26
+ "cardinality": "Single",
27
+ "idAttribute": false
28
+ },
29
+ {
30
+ "name": "productId",
31
+ "type": "UUID",
32
+ "example": "",
33
+ "mapping": "",
34
+ "optional": false,
35
+ "cardinality": "Single",
36
+ "idAttribute": true
37
+ }
38
+ ],
39
+ "type": "READMODEL",
40
+ "description": "",
41
+ "aggregate": "Inventory",
42
+ "aggregateDependencies": [
43
+ "Inventory"
44
+ ],
45
+ "dependencies": [
46
+ {
47
+ "id": "3458764596395903754",
48
+ "type": "OUTBOUND",
49
+ "title": "title",
50
+ "elementType": "SCREEN"
51
+ },
52
+ {
53
+ "id": "3458764596395403355",
54
+ "type": "INBOUND",
55
+ "title": "Inventory Changed",
56
+ "elementType": "EVENT"
57
+ }
58
+ ],
59
+ "apiEndpoint": "",
60
+ "service": null,
61
+ "createsAggregate": false,
62
+ "triggers": [],
63
+ "sketched": false,
64
+ "prototype": {
65
+ "activeByDefault": false
66
+ }
67
+ }
68
+ ],
69
+ "screens": [
70
+ {
71
+ "id": "3458764596395903754",
72
+ "tags": [],
73
+ "domain": "Cart",
74
+ "elementContext": "INTERNAL",
75
+ "modelContext": "Cart",
76
+ "context": "INTERNAL",
77
+ "slice": "slice: Inventories",
78
+ "title": "title",
79
+ "fields": [
80
+ {
81
+ "name": "inventory",
82
+ "type": "Int",
83
+ "example": "",
84
+ "mapping": "",
85
+ "optional": false,
86
+ "cardinality": "Single",
87
+ "idAttribute": false
88
+ },
89
+ {
90
+ "name": "productId",
91
+ "type": "String",
92
+ "example": "",
93
+ "mapping": "",
94
+ "optional": false,
95
+ "cardinality": "Single",
96
+ "idAttribute": false
97
+ }
98
+ ],
99
+ "type": "SCREEN",
100
+ "description": "",
101
+ "aggregate": "Inventory",
102
+ "aggregateDependencies": [
103
+ "Inventory"
104
+ ],
105
+ "dependencies": [
106
+ {
107
+ "id": "3458764596395903488",
108
+ "type": "INBOUND",
109
+ "title": "Inventories",
110
+ "elementType": "READMODEL"
111
+ }
112
+ ],
113
+ "apiEndpoint": "",
114
+ "createsAggregate": false,
115
+ "triggers": [],
116
+ "sketched": false,
117
+ "prototype": {
118
+ "activeByDefault": false
119
+ }
120
+ }
121
+ ],
122
+ "screenImages": [],
123
+ "screenLayouts": [],
124
+ "processors": [],
125
+ "tables": [],
126
+ "specifications": [
127
+ {
128
+ "vertical": false,
129
+ "id": "3458764597266169273",
130
+ "sliceName": "slice: Inventories",
131
+ "title": "spec: Inventories",
132
+ "given": [
133
+ {
134
+ "title": "Inventory Changed",
135
+ "tags": [],
136
+ "id": "3458764597266169274",
137
+ "index": 0,
138
+ "type": "SPEC_EVENT",
139
+ "fields": [
140
+ {
141
+ "name": "inventory",
142
+ "type": "Int",
143
+ "example": "",
144
+ "mapping": "",
145
+ "optional": false,
146
+ "cardinality": "Single",
147
+ "subfields": []
148
+ },
149
+ {
150
+ "name": "productId",
151
+ "type": "UUID",
152
+ "example": "",
153
+ "mapping": "",
154
+ "optional": false,
155
+ "cardinality": "Single",
156
+ "idAttribute": true,
157
+ "subfields": []
158
+ }
159
+ ],
160
+ "linkedId": "3458764596395403355"
161
+ }
162
+ ],
163
+ "when": [],
164
+ "then": [
165
+ {
166
+ "title": "Inventories",
167
+ "tags": [],
168
+ "id": "3458764597266169275",
169
+ "index": 0,
170
+ "type": "SPEC_READMODEL",
171
+ "fields": [
172
+ {
173
+ "name": "inventory",
174
+ "type": "Int",
175
+ "example": "",
176
+ "mapping": "",
177
+ "optional": false,
178
+ "cardinality": "Single",
179
+ "subfields": []
180
+ },
181
+ {
182
+ "name": "productId",
183
+ "type": "UUID",
184
+ "example": "",
185
+ "mapping": "",
186
+ "optional": false,
187
+ "cardinality": "Single",
188
+ "idAttribute": true,
189
+ "subfields": []
190
+ }
191
+ ],
192
+ "linkedId": "3458764596395903488"
193
+ }
194
+ ],
195
+ "comments": [],
196
+ "linkedId": "3458764596700878694"
197
+ }
198
+ ],
199
+ "actors": [],
200
+ "aggregates": [
201
+ "Inventory"
202
+ ]
203
+ }