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