@almadar/std 8.4.2 → 9.0.0

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 (187) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +97 -97
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +129 -129
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +127 -127
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +133 -133
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +419 -419
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +100 -100
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +112 -112
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +138 -138
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +78 -78
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +171 -171
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +202 -202
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +358 -358
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +79 -79
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -204
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +190 -190
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +152 -152
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +115 -115
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1240 -1226
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +3031 -3051
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2132 -2140
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1049 -1035
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +876 -876
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +840 -840
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1248 -1248
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +816 -816
  27. package/behaviors/registry/app/organisms/std-cms.orb +587 -587
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +416 -416
  29. package/behaviors/registry/app/organisms/std-crm.orb +966 -966
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1375 -1375
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +1109 -1109
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +716 -716
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1473 -1473
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +693 -693
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1252 -1252
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +895 -895
  37. package/behaviors/registry/app/organisms/std-lms.orb +876 -876
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +790 -790
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +740 -740
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +266 -266
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +699 -699
  42. package/behaviors/registry/core/atoms/std-browse.orb +67 -67
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +97 -97
  44. package/behaviors/registry/core/atoms/std-calendar.orb +62 -62
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +188 -188
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +34 -34
  47. package/behaviors/registry/core/atoms/std-display.orb +370 -370
  48. package/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  49. package/behaviors/registry/core/atoms/std-filter.orb +63 -63
  50. package/behaviors/registry/core/atoms/std-gallery.orb +55 -55
  51. package/behaviors/registry/core/atoms/std-modal.orb +19 -19
  52. package/behaviors/registry/core/atoms/std-pagination.orb +53 -53
  53. package/behaviors/registry/core/atoms/std-push.orb +50 -60
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +185 -185
  55. package/behaviors/registry/core/atoms/std-related.orb +39 -39
  56. package/behaviors/registry/core/atoms/std-search.orb +73 -73
  57. package/behaviors/registry/core/atoms/std-selection.orb +110 -110
  58. package/behaviors/registry/core/atoms/std-tabs.orb +47 -47
  59. package/behaviors/registry/core/molecules/std-cart.orb +60 -60
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +11 -11
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +140 -140
  62. package/behaviors/registry/core/molecules/std-list.orb +68 -68
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +152 -152
  64. package/behaviors/registry/game/atoms/std-collision.orb +140 -140
  65. package/behaviors/registry/game/atoms/std-combat.orb +76 -76
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +27 -27
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +47 -47
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +49 -49
  69. package/behaviors/registry/game/atoms/std-movement.orb +276 -276
  70. package/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +88 -88
  72. package/behaviors/registry/game/atoms/std-quest.orb +129 -129
  73. package/behaviors/registry/game/atoms/std-timer.orb +285 -285
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +172 -172
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +89 -89
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +281 -281
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +110 -110
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +446 -446
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +349 -349
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +550 -550
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +35 -35
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -93
  83. package/behaviors/registry/service/atoms/std-service-email.orb +92 -92
  84. package/behaviors/registry/service/atoms/std-service-github.orb +111 -111
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +132 -132
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +133 -133
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +114 -114
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +140 -140
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +115 -115
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +131 -131
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +128 -128
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +1072 -1072
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +979 -979
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +97 -97
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +129 -129
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +127 -127
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +133 -133
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +419 -419
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +100 -100
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +112 -112
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +138 -138
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +78 -78
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +171 -171
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +202 -202
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +358 -358
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +79 -79
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -204
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +190 -190
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +152 -152
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +115 -115
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1240 -1226
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3031 -3051
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2132 -2140
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1049 -1035
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +876 -876
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +840 -840
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1248 -1248
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +816 -816
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +587 -587
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +416 -416
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +966 -966
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1375 -1375
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +1109 -1109
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +716 -716
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1473 -1473
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +693 -693
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1252 -1252
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +895 -895
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +876 -876
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +790 -790
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +740 -740
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +266 -266
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +699 -699
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +67 -67
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +97 -97
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +62 -62
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +188 -188
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +34 -34
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +370 -370
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +63 -63
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +55 -55
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +19 -19
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +53 -53
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +50 -60
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +185 -185
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +39 -39
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +73 -73
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +110 -110
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +47 -47
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +60 -60
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +11 -11
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +140 -140
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +68 -68
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +152 -152
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +140 -140
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +76 -76
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +27 -27
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +47 -47
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +49 -49
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +276 -276
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +88 -88
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +129 -129
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +285 -285
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +172 -172
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +89 -89
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +281 -281
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +110 -110
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +446 -446
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +349 -349
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +550 -550
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +35 -35
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -93
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +92 -92
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +111 -111
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +132 -132
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +133 -133
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +114 -114
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +140 -140
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +115 -115
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +131 -131
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +128 -128
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +1072 -1072
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +979 -979
  187. package/package.json +1 -1
@@ -54,7 +54,7 @@
54
54
  {
55
55
  "event": "CHECKOUT",
56
56
  "scope": "external",
57
- "payload": [
57
+ "payloadSchema": [
58
58
  {
59
59
  "name": "id",
60
60
  "type": "string"
@@ -65,7 +65,7 @@
65
65
  "event": "ProductLoaded",
66
66
  "description": "Fired when Product finishes loading",
67
67
  "scope": "internal",
68
- "payload": [
68
+ "payloadSchema": [
69
69
  {
70
70
  "name": "data",
71
71
  "type": "[Product]"
@@ -76,7 +76,7 @@
76
76
  "event": "ProductLoadFailed",
77
77
  "description": "Fired when Product fails to load",
78
78
  "scope": "internal",
79
- "payload": [
79
+ "payloadSchema": [
80
80
  {
81
81
  "name": "error",
82
82
  "type": "string"
@@ -90,7 +90,7 @@
90
90
  {
91
91
  "event": "ProductSaved",
92
92
  "scope": "internal",
93
- "payload": [
93
+ "payloadSchema": [
94
94
  {
95
95
  "name": "id",
96
96
  "type": "string"
@@ -100,7 +100,7 @@
100
100
  {
101
101
  "event": "ProductSaveFailed",
102
102
  "scope": "internal",
103
- "payload": [
103
+ "payloadSchema": [
104
104
  {
105
105
  "name": "error",
106
106
  "type": "string"
@@ -114,7 +114,7 @@
114
114
  {
115
115
  "event": "ProductUpdated",
116
116
  "scope": "internal",
117
- "payload": [
117
+ "payloadSchema": [
118
118
  {
119
119
  "name": "id",
120
120
  "type": "string"
@@ -124,7 +124,7 @@
124
124
  {
125
125
  "event": "ProductUpdateFailed",
126
126
  "scope": "internal",
127
- "payload": [
127
+ "payloadSchema": [
128
128
  {
129
129
  "name": "error",
130
130
  "type": "string"
@@ -138,7 +138,7 @@
138
138
  {
139
139
  "event": "ProductDeleted",
140
140
  "scope": "internal",
141
- "payload": [
141
+ "payloadSchema": [
142
142
  {
143
143
  "name": "id",
144
144
  "type": "string"
@@ -148,7 +148,7 @@
148
148
  {
149
149
  "event": "ProductDeleteFailed",
150
150
  "scope": "internal",
151
- "payload": [
151
+ "payloadSchema": [
152
152
  {
153
153
  "name": "error",
154
154
  "type": "string"
@@ -162,9 +162,9 @@
162
162
  {
163
163
  "event": "ProductOauthCompleted",
164
164
  "scope": "internal",
165
- "payload": [
165
+ "payloadSchema": [
166
166
  {
167
- "name": "result",
167
+ "name": "data",
168
168
  "type": "object"
169
169
  }
170
170
  ]
@@ -172,7 +172,7 @@
172
172
  {
173
173
  "event": "ProductOauthFailed",
174
174
  "scope": "internal",
175
- "payload": [
175
+ "payloadSchema": [
176
176
  {
177
177
  "name": "error",
178
178
  "type": "string"
@@ -186,9 +186,9 @@
186
186
  {
187
187
  "event": "ProductStripeCompleted",
188
188
  "scope": "internal",
189
- "payload": [
189
+ "payloadSchema": [
190
190
  {
191
- "name": "result",
191
+ "name": "data",
192
192
  "type": "object"
193
193
  }
194
194
  ]
@@ -196,7 +196,7 @@
196
196
  {
197
197
  "event": "ProductStripeFailed",
198
198
  "scope": "internal",
199
- "payload": [
199
+ "payloadSchema": [
200
200
  {
201
201
  "name": "error",
202
202
  "type": "string"
@@ -210,9 +210,9 @@
210
210
  {
211
211
  "event": "ProductEmailCompleted",
212
212
  "scope": "internal",
213
- "payload": [
213
+ "payloadSchema": [
214
214
  {
215
- "name": "result",
215
+ "name": "data",
216
216
  "type": "object"
217
217
  }
218
218
  ]
@@ -220,7 +220,7 @@
220
220
  {
221
221
  "event": "ProductEmailFailed",
222
222
  "scope": "internal",
223
- "payload": [
223
+ "payloadSchema": [
224
224
  {
225
225
  "name": "error",
226
226
  "type": "string"
@@ -234,7 +234,7 @@
234
234
  {
235
235
  "event": "OrderSaved",
236
236
  "scope": "internal",
237
- "payload": [
237
+ "payloadSchema": [
238
238
  {
239
239
  "name": "id",
240
240
  "type": "string"
@@ -244,7 +244,7 @@
244
244
  {
245
245
  "event": "OrderSaveFailed",
246
246
  "scope": "internal",
247
- "payload": [
247
+ "payloadSchema": [
248
248
  {
249
249
  "name": "error",
250
250
  "type": "string"
@@ -258,7 +258,7 @@
258
258
  {
259
259
  "event": "OrderUpdated",
260
260
  "scope": "internal",
261
- "payload": [
261
+ "payloadSchema": [
262
262
  {
263
263
  "name": "id",
264
264
  "type": "string"
@@ -268,7 +268,7 @@
268
268
  {
269
269
  "event": "OrderUpdateFailed",
270
270
  "scope": "internal",
271
- "payload": [
271
+ "payloadSchema": [
272
272
  {
273
273
  "name": "error",
274
274
  "type": "string"
@@ -282,7 +282,7 @@
282
282
  {
283
283
  "event": "OrderDeleted",
284
284
  "scope": "internal",
285
- "payload": [
285
+ "payloadSchema": [
286
286
  {
287
287
  "name": "id",
288
288
  "type": "string"
@@ -292,7 +292,7 @@
292
292
  {
293
293
  "event": "OrderDeleteFailed",
294
294
  "scope": "internal",
295
- "payload": [
295
+ "payloadSchema": [
296
296
  {
297
297
  "name": "error",
298
298
  "type": "string"
@@ -345,7 +345,7 @@
345
345
  {
346
346
  "key": "ProductLoaded",
347
347
  "name": "Product loaded",
348
- "payload": [
348
+ "payloadSchema": [
349
349
  {
350
350
  "name": "data",
351
351
  "type": "[Product]"
@@ -355,7 +355,7 @@
355
355
  {
356
356
  "key": "ProductLoadFailed",
357
357
  "name": "Product load failed",
358
- "payload": [
358
+ "payloadSchema": [
359
359
  {
360
360
  "name": "error",
361
361
  "type": "string"
@@ -373,7 +373,7 @@
373
373
  {
374
374
  "key": "ProductSaved",
375
375
  "name": "Product saved",
376
- "payload": [
376
+ "payloadSchema": [
377
377
  {
378
378
  "name": "id",
379
379
  "type": "string"
@@ -383,7 +383,7 @@
383
383
  {
384
384
  "key": "ProductSaveFailed",
385
385
  "name": "Product save failed",
386
- "payload": [
386
+ "payloadSchema": [
387
387
  {
388
388
  "name": "error",
389
389
  "type": "string"
@@ -397,7 +397,7 @@
397
397
  {
398
398
  "key": "ProductUpdated",
399
399
  "name": "Product updated",
400
- "payload": [
400
+ "payloadSchema": [
401
401
  {
402
402
  "name": "id",
403
403
  "type": "string"
@@ -407,7 +407,7 @@
407
407
  {
408
408
  "key": "ProductUpdateFailed",
409
409
  "name": "Product update failed",
410
- "payload": [
410
+ "payloadSchema": [
411
411
  {
412
412
  "name": "error",
413
413
  "type": "string"
@@ -421,7 +421,7 @@
421
421
  {
422
422
  "key": "ProductDeleted",
423
423
  "name": "Product deleted",
424
- "payload": [
424
+ "payloadSchema": [
425
425
  {
426
426
  "name": "id",
427
427
  "type": "string"
@@ -431,7 +431,7 @@
431
431
  {
432
432
  "key": "ProductDeleteFailed",
433
433
  "name": "Product delete failed",
434
- "payload": [
434
+ "payloadSchema": [
435
435
  {
436
436
  "name": "error",
437
437
  "type": "string"
@@ -445,9 +445,9 @@
445
445
  {
446
446
  "key": "ProductOauthCompleted",
447
447
  "name": "Product oauth completed",
448
- "payload": [
448
+ "payloadSchema": [
449
449
  {
450
- "name": "result",
450
+ "name": "data",
451
451
  "type": "object"
452
452
  }
453
453
  ]
@@ -455,7 +455,7 @@
455
455
  {
456
456
  "key": "ProductOauthFailed",
457
457
  "name": "Product oauth failed",
458
- "payload": [
458
+ "payloadSchema": [
459
459
  {
460
460
  "name": "error",
461
461
  "type": "string"
@@ -469,9 +469,9 @@
469
469
  {
470
470
  "key": "ProductStripeCompleted",
471
471
  "name": "Product stripe completed",
472
- "payload": [
472
+ "payloadSchema": [
473
473
  {
474
- "name": "result",
474
+ "name": "data",
475
475
  "type": "object"
476
476
  }
477
477
  ]
@@ -479,7 +479,7 @@
479
479
  {
480
480
  "key": "ProductStripeFailed",
481
481
  "name": "Product stripe failed",
482
- "payload": [
482
+ "payloadSchema": [
483
483
  {
484
484
  "name": "error",
485
485
  "type": "string"
@@ -493,9 +493,9 @@
493
493
  {
494
494
  "key": "ProductEmailCompleted",
495
495
  "name": "Product email completed",
496
- "payload": [
496
+ "payloadSchema": [
497
497
  {
498
- "name": "result",
498
+ "name": "data",
499
499
  "type": "object"
500
500
  }
501
501
  ]
@@ -503,7 +503,7 @@
503
503
  {
504
504
  "key": "ProductEmailFailed",
505
505
  "name": "Product email failed",
506
- "payload": [
506
+ "payloadSchema": [
507
507
  {
508
508
  "name": "error",
509
509
  "type": "string"
@@ -517,7 +517,7 @@
517
517
  {
518
518
  "key": "OrderSaved",
519
519
  "name": "Order saved",
520
- "payload": [
520
+ "payloadSchema": [
521
521
  {
522
522
  "name": "id",
523
523
  "type": "string"
@@ -527,7 +527,7 @@
527
527
  {
528
528
  "key": "OrderSaveFailed",
529
529
  "name": "Order save failed",
530
- "payload": [
530
+ "payloadSchema": [
531
531
  {
532
532
  "name": "error",
533
533
  "type": "string"
@@ -541,7 +541,7 @@
541
541
  {
542
542
  "key": "OrderUpdated",
543
543
  "name": "Order updated",
544
- "payload": [
544
+ "payloadSchema": [
545
545
  {
546
546
  "name": "id",
547
547
  "type": "string"
@@ -551,7 +551,7 @@
551
551
  {
552
552
  "key": "OrderUpdateFailed",
553
553
  "name": "Order update failed",
554
- "payload": [
554
+ "payloadSchema": [
555
555
  {
556
556
  "name": "error",
557
557
  "type": "string"
@@ -565,7 +565,7 @@
565
565
  {
566
566
  "key": "OrderDeleted",
567
567
  "name": "Order deleted",
568
- "payload": [
568
+ "payloadSchema": [
569
569
  {
570
570
  "name": "id",
571
571
  "type": "string"
@@ -575,7 +575,7 @@
575
575
  {
576
576
  "key": "OrderDeleteFailed",
577
577
  "name": "Order delete failed",
578
- "payload": [
578
+ "payloadSchema": [
579
579
  {
580
580
  "name": "error",
581
581
  "type": "string"
@@ -589,7 +589,7 @@
589
589
  {
590
590
  "key": "VIEW",
591
591
  "name": "View",
592
- "payload": [
592
+ "payloadSchema": [
593
593
  {
594
594
  "name": "id",
595
595
  "type": "string",
@@ -604,7 +604,7 @@
604
604
  {
605
605
  "key": "EDIT",
606
606
  "name": "Edit",
607
- "payload": [
607
+ "payloadSchema": [
608
608
  {
609
609
  "name": "id",
610
610
  "type": "string",
@@ -619,7 +619,7 @@
619
619
  {
620
620
  "key": "DELETE",
621
621
  "name": "Delete",
622
- "payload": [
622
+ "payloadSchema": [
623
623
  {
624
624
  "name": "id",
625
625
  "type": "string",
@@ -655,18 +655,18 @@
655
655
  "direction": "vertical",
656
656
  "className": "py-12",
657
657
  "gap": "md",
658
+ "type": "stack",
658
659
  "children": [
659
660
  {
660
661
  "type": "spinner"
661
662
  },
662
663
  {
663
- "content": "Loading…",
664
664
  "variant": "caption",
665
+ "content": "Loading…",
665
666
  "type": "typography",
666
667
  "color": "muted"
667
668
  }
668
669
  ],
669
- "type": "stack",
670
670
  "align": "center"
671
671
  }
672
672
  ]
@@ -683,117 +683,116 @@
683
683
  {
684
684
  "children": [
685
685
  {
686
- "type": "stack",
686
+ "gap": "lg",
687
687
  "direction": "vertical",
688
- "className": "max-w-5xl mx-auto w-full",
689
688
  "children": [
690
689
  {
690
+ "direction": "horizontal",
691
+ "justify": "between",
691
692
  "children": [
692
693
  {
693
- "align": "center",
694
+ "gap": "sm",
695
+ "type": "stack",
694
696
  "direction": "horizontal",
697
+ "align": "center",
695
698
  "children": [
696
699
  {
697
- "name": "shopping-bag",
698
- "type": "icon"
700
+ "type": "icon",
701
+ "name": "shopping-bag"
699
702
  },
700
703
  {
701
704
  "type": "typography",
702
- "content": "Products",
703
- "variant": "h2"
705
+ "variant": "h2",
706
+ "content": "Products"
704
707
  }
705
- ],
706
- "type": "stack",
707
- "gap": "sm"
708
+ ]
708
709
  },
709
710
  {
711
+ "gap": "sm",
712
+ "direction": "horizontal",
713
+ "type": "stack",
710
714
  "children": [
711
715
  {
712
716
  "type": "button",
713
717
  "label": "Create Product",
714
718
  "action": "CREATE",
715
- "icon": "plus",
716
- "variant": "primary"
719
+ "variant": "primary",
720
+ "icon": "plus"
717
721
  }
718
- ],
719
- "type": "stack",
720
- "direction": "horizontal",
721
- "gap": "sm"
722
+ ]
722
723
  }
723
724
  ],
724
- "type": "stack",
725
725
  "gap": "md",
726
- "direction": "horizontal",
727
- "align": "center",
728
- "justify": "between"
726
+ "type": "stack",
727
+ "align": "center"
729
728
  },
730
729
  {
731
730
  "type": "divider"
732
731
  },
733
732
  {
734
- "entity": "@payload.data",
735
- "type": "data-grid",
736
- "itemActions": [
737
- {
738
- "event": "VIEW",
739
- "label": "View",
740
- "variant": "ghost"
741
- },
742
- {
743
- "label": "Edit",
744
- "variant": "ghost",
745
- "event": "EDIT"
746
- },
747
- {
748
- "variant": "danger",
749
- "event": "DELETE",
750
- "label": "Delete"
751
- }
752
- ],
753
- "fields": [],
754
733
  "columns": [
755
734
  {
756
- "variant": "h4",
757
- "name": "name",
758
735
  "label": "Name",
759
- "icon": "shopping-bag"
736
+ "icon": "shopping-bag",
737
+ "variant": "h4",
738
+ "name": "name"
760
739
  },
761
740
  {
762
741
  "label": "Description",
763
- "name": "description",
764
- "variant": "badge",
765
742
  "colorMap": {
766
- "archived": "neutral",
767
- "done": "success",
768
- "pending": "warning",
769
- "error": "destructive",
770
- "cancelled": "destructive",
771
- "scheduled": "warning",
772
743
  "completed": "success",
773
- "disabled": "neutral",
744
+ "cancelled": "destructive",
774
745
  "inactive": "neutral",
775
- "active": "success",
746
+ "error": "destructive",
747
+ "pending": "warning",
748
+ "disabled": "neutral",
749
+ "draft": "warning",
776
750
  "failed": "destructive",
777
- "draft": "warning"
778
- }
751
+ "scheduled": "warning",
752
+ "done": "success",
753
+ "active": "success",
754
+ "archived": "neutral"
755
+ },
756
+ "variant": "badge",
757
+ "name": "description"
779
758
  },
780
759
  {
781
- "variant": "caption",
782
760
  "label": "Price",
761
+ "variant": "caption",
783
762
  "name": "price"
784
763
  }
785
- ]
764
+ ],
765
+ "itemActions": [
766
+ {
767
+ "variant": "ghost",
768
+ "event": "VIEW",
769
+ "label": "View"
770
+ },
771
+ {
772
+ "label": "Edit",
773
+ "event": "EDIT",
774
+ "variant": "ghost"
775
+ },
776
+ {
777
+ "variant": "danger",
778
+ "label": "Delete",
779
+ "event": "DELETE"
780
+ }
781
+ ],
782
+ "type": "data-grid",
783
+ "entity": "@payload.data",
784
+ "fields": []
786
785
  }
787
786
  ],
788
- "gap": "lg"
787
+ "type": "stack",
788
+ "className": "max-w-5xl mx-auto w-full"
789
789
  }
790
790
  ],
791
- "appName": "ServiceMarketplace",
792
791
  "navItems": [
793
792
  {
794
- "label": "Products",
795
793
  "icon": "package",
796
- "href": "/products"
794
+ "href": "/products",
795
+ "label": "Products"
797
796
  },
798
797
  {
799
798
  "icon": "layout-list",
@@ -802,8 +801,8 @@
802
801
  },
803
802
  {
804
803
  "href": "/checkout",
805
- "icon": "credit-card",
806
- "label": "Checkout"
804
+ "label": "Checkout",
805
+ "icon": "credit-card"
807
806
  },
808
807
  {
809
808
  "label": "Orders",
@@ -811,6 +810,7 @@
811
810
  "icon": "clipboard-list"
812
811
  }
813
812
  ],
813
+ "appName": "ServiceMarketplace",
814
814
  "type": "dashboard-layout"
815
815
  }
816
816
  ]
@@ -826,35 +826,35 @@
826
826
  "main",
827
827
  {
828
828
  "gap": "md",
829
+ "type": "stack",
829
830
  "className": "py-12",
830
- "direction": "vertical",
831
831
  "children": [
832
832
  {
833
+ "color": "destructive",
833
834
  "type": "icon",
834
- "name": "alert-triangle",
835
- "color": "destructive"
835
+ "name": "alert-triangle"
836
836
  },
837
837
  {
838
- "content": "Failed to load product",
838
+ "type": "typography",
839
839
  "variant": "h3",
840
- "type": "typography"
840
+ "content": "Failed to load product"
841
841
  },
842
842
  {
843
- "variant": "body",
844
843
  "color": "muted",
845
- "content": "@payload.error",
846
- "type": "typography"
844
+ "variant": "body",
845
+ "type": "typography",
846
+ "content": "@payload.error"
847
847
  },
848
848
  {
849
849
  "label": "Retry",
850
- "variant": "primary",
851
850
  "type": "button",
851
+ "variant": "primary",
852
852
  "icon": "rotate-ccw",
853
853
  "action": "INIT"
854
854
  }
855
855
  ],
856
- "type": "stack",
857
- "align": "center"
856
+ "align": "center",
857
+ "direction": "vertical"
858
858
  }
859
859
  ]
860
860
  ]
@@ -871,7 +871,7 @@
871
871
  {
872
872
  "event": "PRODUCT_CREATED",
873
873
  "scope": "external",
874
- "payload": [
874
+ "payloadSchema": [
875
875
  {
876
876
  "name": "id",
877
877
  "type": "string"
@@ -882,7 +882,7 @@
882
882
  "event": "ProductLoadFailed",
883
883
  "description": "Fired when Product fails to load",
884
884
  "scope": "internal",
885
- "payload": [
885
+ "payloadSchema": [
886
886
  {
887
887
  "name": "error",
888
888
  "type": "string"
@@ -897,7 +897,7 @@
897
897
  "event": "ProductLoaded",
898
898
  "description": "Fired when Product finishes loading",
899
899
  "scope": "internal",
900
- "payload": [
900
+ "payloadSchema": [
901
901
  {
902
902
  "name": "data",
903
903
  "type": "[Product]"
@@ -907,7 +907,7 @@
907
907
  {
908
908
  "event": "ProductSaveFailed",
909
909
  "scope": "internal",
910
- "payload": [
910
+ "payloadSchema": [
911
911
  {
912
912
  "name": "error",
913
913
  "type": "string"
@@ -921,7 +921,7 @@
921
921
  {
922
922
  "event": "ProductSaved",
923
923
  "scope": "internal",
924
- "payload": [
924
+ "payloadSchema": [
925
925
  {
926
926
  "name": "id",
927
927
  "type": "string"
@@ -955,7 +955,7 @@
955
955
  {
956
956
  "key": "SAVE",
957
957
  "name": "Save",
958
- "payload": [
958
+ "payloadSchema": [
959
959
  {
960
960
  "name": "data",
961
961
  "type": "object",
@@ -970,7 +970,7 @@
970
970
  {
971
971
  "key": "ProductLoadFailed",
972
972
  "name": "Product load failed",
973
- "payload": [
973
+ "payloadSchema": [
974
974
  {
975
975
  "name": "error",
976
976
  "type": "string"
@@ -984,7 +984,7 @@
984
984
  {
985
985
  "key": "ProductLoaded",
986
986
  "name": "Product loaded",
987
- "payload": [
987
+ "payloadSchema": [
988
988
  {
989
989
  "name": "data",
990
990
  "type": "[Product]"
@@ -994,7 +994,7 @@
994
994
  {
995
995
  "key": "ProductSaveFailed",
996
996
  "name": "Product save failed",
997
- "payload": [
997
+ "payloadSchema": [
998
998
  {
999
999
  "name": "error",
1000
1000
  "type": "string"
@@ -1008,7 +1008,7 @@
1008
1008
  {
1009
1009
  "key": "ProductSaved",
1010
1010
  "name": "Product saved",
1011
- "payload": [
1011
+ "payloadSchema": [
1012
1012
  {
1013
1013
  "name": "id",
1014
1014
  "type": "string"
@@ -1047,31 +1047,33 @@
1047
1047
  "render-ui",
1048
1048
  "modal",
1049
1049
  {
1050
+ "gap": "md",
1050
1051
  "type": "stack",
1051
1052
  "direction": "vertical",
1052
1053
  "children": [
1053
1054
  {
1054
- "direction": "horizontal",
1055
- "type": "stack",
1056
- "gap": "sm",
1057
1055
  "children": [
1058
1056
  {
1059
- "type": "icon",
1060
- "name": "plus-circle"
1057
+ "name": "plus-circle",
1058
+ "type": "icon"
1061
1059
  },
1062
1060
  {
1061
+ "variant": "h3",
1063
1062
  "type": "typography",
1064
- "content": "Create Product",
1065
- "variant": "h3"
1063
+ "content": "Create Product"
1066
1064
  }
1067
- ]
1065
+ ],
1066
+ "gap": "sm",
1067
+ "direction": "horizontal",
1068
+ "type": "stack"
1068
1069
  },
1069
1070
  {
1070
1071
  "type": "divider"
1071
1072
  },
1072
1073
  {
1073
- "type": "form-section",
1074
1074
  "mode": "create",
1075
+ "submitEvent": "SAVE",
1076
+ "type": "form-section",
1075
1077
  "cancelEvent": "CLOSE",
1076
1078
  "fields": [
1077
1079
  "name",
@@ -1079,11 +1081,9 @@
1079
1081
  "price",
1080
1082
  "category",
1081
1083
  "inStock"
1082
- ],
1083
- "submitEvent": "SAVE"
1084
+ ]
1084
1085
  }
1085
- ],
1086
- "gap": "md"
1086
+ ]
1087
1087
  }
1088
1088
  ]
1089
1089
  ]
@@ -1124,8 +1124,8 @@
1124
1124
  "@payload.data",
1125
1125
  {
1126
1126
  "emit": {
1127
- "success": "ProductSaved",
1128
- "failure": "ProductSaveFailed"
1127
+ "failure": "ProductSaveFailed",
1128
+ "success": "ProductSaved"
1129
1129
  }
1130
1130
  }
1131
1131
  ],
@@ -1159,7 +1159,7 @@
1159
1159
  {
1160
1160
  "event": "PRODUCT_UPDATED",
1161
1161
  "scope": "external",
1162
- "payload": [
1162
+ "payloadSchema": [
1163
1163
  {
1164
1164
  "name": "id",
1165
1165
  "type": "string"
@@ -1170,7 +1170,7 @@
1170
1170
  "event": "ProductLoadFailed",
1171
1171
  "description": "Fired when Product fails to load",
1172
1172
  "scope": "internal",
1173
- "payload": [
1173
+ "payloadSchema": [
1174
1174
  {
1175
1175
  "name": "error",
1176
1176
  "type": "string"
@@ -1185,7 +1185,7 @@
1185
1185
  "event": "ProductLoaded",
1186
1186
  "description": "Fired when Product finishes loading",
1187
1187
  "scope": "internal",
1188
- "payload": [
1188
+ "payloadSchema": [
1189
1189
  {
1190
1190
  "name": "data",
1191
1191
  "type": "[Product]"
@@ -1195,7 +1195,7 @@
1195
1195
  {
1196
1196
  "event": "ProductUpdateFailed",
1197
1197
  "scope": "internal",
1198
- "payload": [
1198
+ "payloadSchema": [
1199
1199
  {
1200
1200
  "name": "error",
1201
1201
  "type": "string"
@@ -1209,7 +1209,7 @@
1209
1209
  {
1210
1210
  "event": "ProductUpdated",
1211
1211
  "scope": "internal",
1212
- "payload": [
1212
+ "payloadSchema": [
1213
1213
  {
1214
1214
  "name": "id",
1215
1215
  "type": "string"
@@ -1235,7 +1235,7 @@
1235
1235
  {
1236
1236
  "key": "EDIT",
1237
1237
  "name": "Edit",
1238
- "payload": [
1238
+ "payloadSchema": [
1239
1239
  {
1240
1240
  "name": "id",
1241
1241
  "type": "string",
@@ -1254,7 +1254,7 @@
1254
1254
  {
1255
1255
  "key": "SAVE",
1256
1256
  "name": "Save",
1257
- "payload": [
1257
+ "payloadSchema": [
1258
1258
  {
1259
1259
  "name": "data",
1260
1260
  "type": "object",
@@ -1269,7 +1269,7 @@
1269
1269
  {
1270
1270
  "key": "ProductLoadFailed",
1271
1271
  "name": "Product load failed",
1272
- "payload": [
1272
+ "payloadSchema": [
1273
1273
  {
1274
1274
  "name": "error",
1275
1275
  "type": "string"
@@ -1283,7 +1283,7 @@
1283
1283
  {
1284
1284
  "key": "ProductLoaded",
1285
1285
  "name": "Product loaded",
1286
- "payload": [
1286
+ "payloadSchema": [
1287
1287
  {
1288
1288
  "name": "data",
1289
1289
  "type": "[Product]"
@@ -1293,7 +1293,7 @@
1293
1293
  {
1294
1294
  "key": "ProductUpdateFailed",
1295
1295
  "name": "Product update failed",
1296
- "payload": [
1296
+ "payloadSchema": [
1297
1297
  {
1298
1298
  "name": "error",
1299
1299
  "type": "string"
@@ -1307,7 +1307,7 @@
1307
1307
  {
1308
1308
  "key": "ProductUpdated",
1309
1309
  "name": "Product updated",
1310
- "payload": [
1310
+ "payloadSchema": [
1311
1311
  {
1312
1312
  "name": "id",
1313
1313
  "type": "string"
@@ -1338,8 +1338,8 @@
1338
1338
  {
1339
1339
  "id": "@payload.id",
1340
1340
  "emit": {
1341
- "failure": "ProductLoadFailed",
1342
- "success": "ProductLoaded"
1341
+ "success": "ProductLoaded",
1342
+ "failure": "ProductLoadFailed"
1343
1343
  }
1344
1344
  }
1345
1345
  ],
@@ -1347,29 +1347,31 @@
1347
1347
  "render-ui",
1348
1348
  "modal",
1349
1349
  {
1350
+ "type": "stack",
1350
1351
  "direction": "vertical",
1352
+ "gap": "md",
1351
1353
  "children": [
1352
1354
  {
1353
1355
  "gap": "sm",
1354
1356
  "children": [
1355
1357
  {
1356
- "type": "icon",
1357
- "name": "edit"
1358
+ "name": "edit",
1359
+ "type": "icon"
1358
1360
  },
1359
1361
  {
1360
- "content": "Edit Product",
1361
1362
  "type": "typography",
1363
+ "content": "Edit Product",
1362
1364
  "variant": "h3"
1363
1365
  }
1364
1366
  ],
1365
- "type": "stack",
1366
- "direction": "horizontal"
1367
+ "direction": "horizontal",
1368
+ "type": "stack"
1367
1369
  },
1368
1370
  {
1369
1371
  "type": "divider"
1370
1372
  },
1371
1373
  {
1372
- "submitEvent": "SAVE",
1374
+ "entity": "@payload.row",
1373
1375
  "type": "form-section",
1374
1376
  "mode": "edit",
1375
1377
  "cancelEvent": "CLOSE",
@@ -1380,11 +1382,9 @@
1380
1382
  "category",
1381
1383
  "inStock"
1382
1384
  ],
1383
- "entity": "@payload.row"
1385
+ "submitEvent": "SAVE"
1384
1386
  }
1385
- ],
1386
- "gap": "md",
1387
- "type": "stack"
1387
+ ]
1388
1388
  }
1389
1389
  ]
1390
1390
  ]
@@ -1461,7 +1461,7 @@
1461
1461
  "event": "ProductLoaded",
1462
1462
  "description": "Fired when Product finishes loading",
1463
1463
  "scope": "internal",
1464
- "payload": [
1464
+ "payloadSchema": [
1465
1465
  {
1466
1466
  "name": "data",
1467
1467
  "type": "[Product]"
@@ -1472,7 +1472,7 @@
1472
1472
  "event": "ProductLoadFailed",
1473
1473
  "description": "Fired when Product fails to load",
1474
1474
  "scope": "internal",
1475
- "payload": [
1475
+ "payloadSchema": [
1476
1476
  {
1477
1477
  "name": "error",
1478
1478
  "type": "string"
@@ -1502,7 +1502,7 @@
1502
1502
  {
1503
1503
  "key": "VIEW",
1504
1504
  "name": "View",
1505
- "payload": [
1505
+ "payloadSchema": [
1506
1506
  {
1507
1507
  "name": "id",
1508
1508
  "type": "string",
@@ -1517,7 +1517,7 @@
1517
1517
  {
1518
1518
  "key": "SAVE",
1519
1519
  "name": "Save",
1520
- "payload": [
1520
+ "payloadSchema": [
1521
1521
  {
1522
1522
  "name": "data",
1523
1523
  "type": "object",
@@ -1528,7 +1528,7 @@
1528
1528
  {
1529
1529
  "key": "ProductLoaded",
1530
1530
  "name": "Product loaded",
1531
- "payload": [
1531
+ "payloadSchema": [
1532
1532
  {
1533
1533
  "name": "data",
1534
1534
  "type": "[Product]"
@@ -1538,7 +1538,7 @@
1538
1538
  {
1539
1539
  "key": "ProductLoadFailed",
1540
1540
  "name": "Product load failed",
1541
- "payload": [
1541
+ "payloadSchema": [
1542
1542
  {
1543
1543
  "name": "error",
1544
1544
  "type": "string"
@@ -1571,35 +1571,35 @@
1571
1571
  "fetch",
1572
1572
  "Product",
1573
1573
  {
1574
- "id": "@payload.id",
1575
1574
  "emit": {
1576
- "failure": "ProductLoadFailed",
1577
- "success": "ProductLoaded"
1578
- }
1575
+ "success": "ProductLoaded",
1576
+ "failure": "ProductLoadFailed"
1577
+ },
1578
+ "id": "@payload.id"
1579
1579
  }
1580
1580
  ],
1581
1581
  [
1582
1582
  "render-ui",
1583
1583
  "modal",
1584
1584
  {
1585
- "gap": "md",
1585
+ "type": "stack",
1586
1586
  "children": [
1587
1587
  {
1588
- "gap": "sm",
1589
- "type": "stack",
1590
1588
  "align": "center",
1589
+ "gap": "sm",
1591
1590
  "children": [
1592
1591
  {
1593
- "name": "eye",
1594
- "type": "icon"
1592
+ "type": "icon",
1593
+ "name": "eye"
1595
1594
  },
1596
1595
  {
1597
- "type": "typography",
1596
+ "content": "@entity.name",
1598
1597
  "variant": "h3",
1599
- "content": "@entity.name"
1598
+ "type": "typography"
1600
1599
  }
1601
1600
  ],
1602
- "direction": "horizontal"
1601
+ "direction": "horizontal",
1602
+ "type": "stack"
1603
1603
  },
1604
1604
  {
1605
1605
  "type": "divider"
@@ -1607,62 +1607,61 @@
1607
1607
  {
1608
1608
  "direction": "horizontal",
1609
1609
  "gap": "md",
1610
- "type": "stack",
1611
1610
  "children": [
1612
1611
  {
1612
+ "variant": "caption",
1613
1613
  "type": "typography",
1614
- "content": "Name",
1615
- "variant": "caption"
1614
+ "content": "Name"
1616
1615
  },
1617
1616
  {
1618
- "content": "@entity.name",
1619
1617
  "variant": "body",
1618
+ "content": "@entity.name",
1620
1619
  "type": "typography"
1621
1620
  }
1622
- ]
1621
+ ],
1622
+ "type": "stack"
1623
1623
  },
1624
1624
  {
1625
- "gap": "md",
1626
1625
  "type": "stack",
1626
+ "gap": "md",
1627
1627
  "direction": "horizontal",
1628
1628
  "children": [
1629
1629
  {
1630
- "type": "typography",
1631
1630
  "variant": "caption",
1632
- "content": "Description"
1631
+ "content": "Description",
1632
+ "type": "typography"
1633
1633
  },
1634
1634
  {
1635
1635
  "type": "typography",
1636
- "content": "@entity.description",
1637
- "variant": "body"
1636
+ "variant": "body",
1637
+ "content": "@entity.description"
1638
1638
  }
1639
1639
  ]
1640
1640
  },
1641
1641
  {
1642
- "type": "stack",
1643
1642
  "direction": "horizontal",
1643
+ "gap": "md",
1644
+ "type": "stack",
1644
1645
  "children": [
1645
1646
  {
1646
1647
  "variant": "caption",
1647
- "type": "typography",
1648
- "content": "Price"
1648
+ "content": "Price",
1649
+ "type": "typography"
1649
1650
  },
1650
1651
  {
1651
1652
  "type": "typography",
1652
- "content": "@entity.price",
1653
- "variant": "body"
1653
+ "variant": "body",
1654
+ "content": "@entity.price"
1654
1655
  }
1655
- ],
1656
- "gap": "md"
1656
+ ]
1657
1657
  },
1658
1658
  {
1659
1659
  "direction": "horizontal",
1660
- "gap": "md",
1661
1660
  "children": [
1662
1661
  {
1663
1662
  "variant": "caption",
1664
- "type": "typography",
1665
- "content": "Category"
1663
+ "content": "Category",
1664
+ "type": "typography"
1666
1665
  },
1667
1666
  {
1668
1667
  "variant": "body",
@@ -1670,21 +1669,22 @@
1670
1669
  "content": "@entity.category"
1671
1670
  }
1672
1671
  ],
1673
- "type": "stack"
1672
+ "type": "stack",
1673
+ "gap": "md"
1674
1674
  },
1675
1675
  {
1676
- "gap": "md",
1677
1676
  "direction": "horizontal",
1677
+ "gap": "md",
1678
1678
  "children": [
1679
1679
  {
1680
1680
  "variant": "caption",
1681
- "type": "typography",
1682
- "content": "In Stock"
1681
+ "content": "In Stock",
1682
+ "type": "typography"
1683
1683
  },
1684
1684
  {
1685
- "content": "@entity.inStock",
1686
1685
  "type": "typography",
1687
- "variant": "body"
1686
+ "variant": "body",
1687
+ "content": "@entity.inStock"
1688
1688
  }
1689
1689
  ],
1690
1690
  "type": "stack"
@@ -1693,29 +1693,29 @@
1693
1693
  "type": "divider"
1694
1694
  },
1695
1695
  {
1696
- "type": "stack",
1697
- "justify": "end",
1698
- "direction": "horizontal",
1699
- "gap": "sm",
1700
1696
  "children": [
1701
1697
  {
1702
- "type": "button",
1703
1698
  "icon": "edit",
1704
- "variant": "primary",
1705
1699
  "action": "EDIT",
1706
- "label": "Edit"
1700
+ "type": "button",
1701
+ "label": "Edit",
1702
+ "variant": "primary"
1707
1703
  },
1708
1704
  {
1709
1705
  "type": "button",
1710
1706
  "label": "Close",
1711
- "action": "CLOSE",
1712
- "variant": "ghost"
1707
+ "variant": "ghost",
1708
+ "action": "CLOSE"
1713
1709
  }
1714
- ]
1710
+ ],
1711
+ "direction": "horizontal",
1712
+ "type": "stack",
1713
+ "gap": "sm",
1714
+ "justify": "end"
1715
1715
  }
1716
1716
  ],
1717
- "direction": "vertical",
1718
- "type": "stack"
1717
+ "gap": "md",
1718
+ "direction": "vertical"
1719
1719
  }
1720
1720
  ]
1721
1721
  ]
@@ -1775,7 +1775,7 @@
1775
1775
  {
1776
1776
  "event": "PRODUCT_DELETED",
1777
1777
  "scope": "external",
1778
- "payload": [
1778
+ "payloadSchema": [
1779
1779
  {
1780
1780
  "name": "id",
1781
1781
  "type": "string"
@@ -1785,7 +1785,7 @@
1785
1785
  {
1786
1786
  "event": "ProductDeleteFailed",
1787
1787
  "scope": "internal",
1788
- "payload": [
1788
+ "payloadSchema": [
1789
1789
  {
1790
1790
  "name": "error",
1791
1791
  "type": "string"
@@ -1799,7 +1799,7 @@
1799
1799
  {
1800
1800
  "event": "ProductDeleted",
1801
1801
  "scope": "internal",
1802
- "payload": [
1802
+ "payloadSchema": [
1803
1803
  {
1804
1804
  "name": "id",
1805
1805
  "type": "string"
@@ -1810,7 +1810,7 @@
1810
1810
  "event": "ProductLoadFailed",
1811
1811
  "description": "Fired when Product fails to load",
1812
1812
  "scope": "internal",
1813
- "payload": [
1813
+ "payloadSchema": [
1814
1814
  {
1815
1815
  "name": "error",
1816
1816
  "type": "string"
@@ -1825,7 +1825,7 @@
1825
1825
  "event": "ProductLoaded",
1826
1826
  "description": "Fired when Product finishes loading",
1827
1827
  "scope": "internal",
1828
- "payload": [
1828
+ "payloadSchema": [
1829
1829
  {
1830
1830
  "name": "data",
1831
1831
  "type": "[Product]"
@@ -1851,7 +1851,7 @@
1851
1851
  {
1852
1852
  "key": "DELETE",
1853
1853
  "name": "Delete",
1854
- "payload": [
1854
+ "payloadSchema": [
1855
1855
  {
1856
1856
  "name": "id",
1857
1857
  "type": "string",
@@ -1878,7 +1878,7 @@
1878
1878
  {
1879
1879
  "key": "ProductDeleteFailed",
1880
1880
  "name": "Product delete failed",
1881
- "payload": [
1881
+ "payloadSchema": [
1882
1882
  {
1883
1883
  "name": "error",
1884
1884
  "type": "string"
@@ -1892,7 +1892,7 @@
1892
1892
  {
1893
1893
  "key": "ProductDeleted",
1894
1894
  "name": "Product deleted",
1895
- "payload": [
1895
+ "payloadSchema": [
1896
1896
  {
1897
1897
  "name": "id",
1898
1898
  "type": "string"
@@ -1902,7 +1902,7 @@
1902
1902
  {
1903
1903
  "key": "ProductLoadFailed",
1904
1904
  "name": "Product load failed",
1905
- "payload": [
1905
+ "payloadSchema": [
1906
1906
  {
1907
1907
  "name": "error",
1908
1908
  "type": "string"
@@ -1916,7 +1916,7 @@
1916
1916
  {
1917
1917
  "key": "ProductLoaded",
1918
1918
  "name": "Product loaded",
1919
- "payload": [
1919
+ "payloadSchema": [
1920
1920
  {
1921
1921
  "name": "data",
1922
1922
  "type": "[Product]"
@@ -1950,67 +1950,67 @@
1950
1950
  "fetch",
1951
1951
  "Product",
1952
1952
  {
1953
+ "id": "@payload.id",
1953
1954
  "emit": {
1954
- "failure": "ProductLoadFailed",
1955
- "success": "ProductLoaded"
1956
- },
1957
- "id": "@payload.id"
1955
+ "success": "ProductLoaded",
1956
+ "failure": "ProductLoadFailed"
1957
+ }
1958
1958
  }
1959
1959
  ],
1960
1960
  [
1961
1961
  "render-ui",
1962
1962
  "modal",
1963
1963
  {
1964
+ "direction": "vertical",
1965
+ "type": "stack",
1964
1966
  "children": [
1965
1967
  {
1966
1968
  "type": "stack",
1969
+ "align": "center",
1967
1970
  "children": [
1968
1971
  {
1969
- "type": "icon",
1970
- "name": "alert-triangle"
1972
+ "name": "alert-triangle",
1973
+ "type": "icon"
1971
1974
  },
1972
1975
  {
1973
1976
  "content": "Delete Product",
1974
- "type": "typography",
1975
- "variant": "h3"
1977
+ "variant": "h3",
1978
+ "type": "typography"
1976
1979
  }
1977
1980
  ],
1978
- "gap": "sm",
1979
- "align": "center",
1980
- "direction": "horizontal"
1981
+ "direction": "horizontal",
1982
+ "gap": "sm"
1981
1983
  },
1982
1984
  {
1983
1985
  "type": "divider"
1984
1986
  },
1985
1987
  {
1986
- "variant": "error",
1988
+ "message": "This action cannot be undone.",
1987
1989
  "type": "alert",
1988
- "message": "This action cannot be undone."
1990
+ "variant": "error"
1989
1991
  },
1990
1992
  {
1991
- "direction": "horizontal",
1992
- "gap": "sm",
1993
1993
  "type": "stack",
1994
+ "direction": "horizontal",
1994
1995
  "children": [
1995
1996
  {
1996
- "label": "Cancel",
1997
- "variant": "ghost",
1998
1997
  "type": "button",
1999
- "action": "CANCEL"
1998
+ "action": "CANCEL",
1999
+ "label": "Cancel",
2000
+ "variant": "ghost"
2000
2001
  },
2001
2002
  {
2002
- "label": "Delete",
2003
2003
  "action": "CONFIRM_DELETE",
2004
2004
  "icon": "check",
2005
2005
  "type": "button",
2006
- "variant": "danger"
2006
+ "variant": "danger",
2007
+ "label": "Delete"
2007
2008
  }
2008
2009
  ],
2010
+ "gap": "sm",
2009
2011
  "justify": "end"
2010
2012
  }
2011
2013
  ],
2012
- "type": "stack",
2013
- "direction": "vertical",
2014
2014
  "gap": "md"
2015
2015
  }
2016
2016
  ]
@@ -2177,7 +2177,7 @@
2177
2177
  "event": "AuthSessionLoadFailed",
2178
2178
  "description": "Fired when AuthSession fails to load",
2179
2179
  "scope": "internal",
2180
- "payload": [
2180
+ "payloadSchema": [
2181
2181
  {
2182
2182
  "name": "error",
2183
2183
  "type": "string"
@@ -2192,7 +2192,7 @@
2192
2192
  "event": "AuthSessionLoaded",
2193
2193
  "description": "Fired when AuthSession finishes loading",
2194
2194
  "scope": "internal",
2195
- "payload": [
2195
+ "payloadSchema": [
2196
2196
  {
2197
2197
  "name": "data",
2198
2198
  "type": "[AuthSession]"
@@ -2202,7 +2202,7 @@
2202
2202
  {
2203
2203
  "event": "ProductOauthCompleted",
2204
2204
  "scope": "internal",
2205
- "payload": [
2205
+ "payloadSchema": [
2206
2206
  {
2207
2207
  "name": "data",
2208
2208
  "type": "object"
@@ -2212,7 +2212,7 @@
2212
2212
  {
2213
2213
  "event": "ProductOauthFailed",
2214
2214
  "scope": "internal",
2215
- "payload": [
2215
+ "payloadSchema": [
2216
2216
  {
2217
2217
  "name": "error",
2218
2218
  "type": "string"
@@ -2255,7 +2255,7 @@
2255
2255
  {
2256
2256
  "key": "AUTH_URL_RECEIVED",
2257
2257
  "name": "Auth Url Received",
2258
- "payload": [
2258
+ "payloadSchema": [
2259
2259
  {
2260
2260
  "name": "authUrl",
2261
2261
  "type": "string"
@@ -2265,7 +2265,7 @@
2265
2265
  {
2266
2266
  "key": "CALLBACK",
2267
2267
  "name": "Callback",
2268
- "payload": [
2268
+ "payloadSchema": [
2269
2269
  {
2270
2270
  "name": "code",
2271
2271
  "type": "string"
@@ -2275,7 +2275,7 @@
2275
2275
  {
2276
2276
  "key": "FAILED",
2277
2277
  "name": "Failed",
2278
- "payload": [
2278
+ "payloadSchema": [
2279
2279
  {
2280
2280
  "name": "error",
2281
2281
  "type": "string"
@@ -2285,7 +2285,7 @@
2285
2285
  {
2286
2286
  "key": "TOKEN_RECEIVED",
2287
2287
  "name": "Token Received",
2288
- "payload": [
2288
+ "payloadSchema": [
2289
2289
  {
2290
2290
  "name": "accessToken",
2291
2291
  "type": "string"
@@ -2307,7 +2307,7 @@
2307
2307
  {
2308
2308
  "key": "TOKEN_REFRESHED",
2309
2309
  "name": "Token Refreshed",
2310
- "payload": [
2310
+ "payloadSchema": [
2311
2311
  {
2312
2312
  "name": "accessToken",
2313
2313
  "type": "string"
@@ -2321,7 +2321,7 @@
2321
2321
  {
2322
2322
  "key": "AuthSessionLoadFailed",
2323
2323
  "name": "AuthSession load failed",
2324
- "payload": [
2324
+ "payloadSchema": [
2325
2325
  {
2326
2326
  "name": "error",
2327
2327
  "type": "string"
@@ -2335,7 +2335,7 @@
2335
2335
  {
2336
2336
  "key": "AuthSessionLoaded",
2337
2337
  "name": "AuthSession loaded",
2338
- "payload": [
2338
+ "payloadSchema": [
2339
2339
  {
2340
2340
  "name": "data",
2341
2341
  "type": "[AuthSession]"
@@ -2345,7 +2345,7 @@
2345
2345
  {
2346
2346
  "key": "ProductOauthCompleted",
2347
2347
  "name": "Product oauth completed",
2348
- "payload": [
2348
+ "payloadSchema": [
2349
2349
  {
2350
2350
  "name": "data",
2351
2351
  "type": "object"
@@ -2355,7 +2355,7 @@
2355
2355
  {
2356
2356
  "key": "ProductOauthFailed",
2357
2357
  "name": "Product oauth failed",
2358
- "payload": [
2358
+ "payloadSchema": [
2359
2359
  {
2360
2360
  "name": "error",
2361
2361
  "type": "string"
@@ -2387,29 +2387,51 @@
2387
2387
  "render-ui",
2388
2388
  "main",
2389
2389
  {
2390
+ "navItems": [
2391
+ {
2392
+ "href": "/products",
2393
+ "label": "Products",
2394
+ "icon": "package"
2395
+ },
2396
+ {
2397
+ "icon": "layout-list",
2398
+ "label": "Login",
2399
+ "href": "/login"
2400
+ },
2401
+ {
2402
+ "label": "Checkout",
2403
+ "href": "/checkout",
2404
+ "icon": "credit-card"
2405
+ },
2406
+ {
2407
+ "label": "Orders",
2408
+ "href": "/orders",
2409
+ "icon": "clipboard-list"
2410
+ }
2411
+ ],
2412
+ "appName": "ServiceMarketplace",
2413
+ "type": "dashboard-layout",
2390
2414
  "children": [
2391
2415
  {
2392
- "align": "center",
2393
- "type": "stack",
2394
2416
  "direction": "vertical",
2395
2417
  "gap": "lg",
2396
2418
  "children": [
2397
2419
  {
2398
- "gap": "md",
2420
+ "type": "stack",
2421
+ "direction": "horizontal",
2399
2422
  "align": "center",
2400
2423
  "children": [
2401
2424
  {
2402
- "type": "icon",
2403
- "name": "lock"
2425
+ "name": "lock",
2426
+ "type": "icon"
2404
2427
  },
2405
2428
  {
2406
- "variant": "h2",
2407
2429
  "type": "typography",
2408
- "content": "Sign In"
2430
+ "content": "Sign In",
2431
+ "variant": "h2"
2409
2432
  }
2410
2433
  ],
2411
- "direction": "horizontal",
2412
- "type": "stack"
2434
+ "gap": "md"
2413
2435
  },
2414
2436
  {
2415
2437
  "type": "divider"
@@ -2418,8 +2440,8 @@
2418
2440
  "type": "select",
2419
2441
  "options": [
2420
2442
  {
2421
- "value": "google",
2422
- "label": "Google"
2443
+ "label": "Google",
2444
+ "value": "google"
2423
2445
  },
2424
2446
  {
2425
2447
  "label": "GitHub",
@@ -2432,39 +2454,17 @@
2432
2454
  ]
2433
2455
  },
2434
2456
  {
2435
- "type": "button",
2436
- "icon": "log-in",
2437
- "variant": "primary",
2438
2457
  "action": "LOGIN",
2439
- "label": "Login"
2458
+ "icon": "log-in",
2459
+ "type": "button",
2460
+ "label": "Login",
2461
+ "variant": "primary"
2440
2462
  }
2441
- ]
2442
- }
2443
- ],
2444
- "navItems": [
2445
- {
2446
- "href": "/products",
2447
- "label": "Products",
2448
- "icon": "package"
2449
- },
2450
- {
2451
- "icon": "layout-list",
2452
- "label": "Login",
2453
- "href": "/login"
2454
- },
2455
- {
2456
- "href": "/checkout",
2457
- "icon": "credit-card",
2458
- "label": "Checkout"
2459
- },
2460
- {
2461
- "href": "/orders",
2462
- "label": "Orders",
2463
- "icon": "clipboard-list"
2463
+ ],
2464
+ "align": "center",
2465
+ "type": "stack"
2464
2466
  }
2465
- ],
2466
- "appName": "ServiceMarketplace",
2467
- "type": "dashboard-layout"
2467
+ ]
2468
2468
  }
2469
2469
  ]
2470
2470
  ]
@@ -2478,25 +2478,25 @@
2478
2478
  "render-ui",
2479
2479
  "main",
2480
2480
  {
2481
- "appName": "ServiceMarketplace",
2482
- "type": "dashboard-layout",
2483
2481
  "children": [
2484
2482
  {
2485
2483
  "title": "Authorizing...",
2486
- "message": "Redirecting to provider for authorization.",
2487
- "type": "loading-state"
2484
+ "type": "loading-state",
2485
+ "message": "Redirecting to provider for authorization."
2488
2486
  }
2489
2487
  ],
2488
+ "type": "dashboard-layout",
2489
+ "appName": "ServiceMarketplace",
2490
2490
  "navItems": [
2491
2491
  {
2492
- "label": "Products",
2493
2492
  "href": "/products",
2494
- "icon": "package"
2493
+ "icon": "package",
2494
+ "label": "Products"
2495
2495
  },
2496
2496
  {
2497
2497
  "icon": "layout-list",
2498
- "label": "Login",
2499
- "href": "/login"
2498
+ "href": "/login",
2499
+ "label": "Login"
2500
2500
  },
2501
2501
  {
2502
2502
  "label": "Checkout",
@@ -2504,8 +2504,8 @@
2504
2504
  "icon": "credit-card"
2505
2505
  },
2506
2506
  {
2507
- "icon": "clipboard-list",
2508
2507
  "href": "/orders",
2508
+ "icon": "clipboard-list",
2509
2509
  "label": "Orders"
2510
2510
  }
2511
2511
  ]
@@ -2524,8 +2524,8 @@
2524
2524
  },
2525
2525
  {
2526
2526
  "emit": {
2527
- "success": "ProductOauthCompleted",
2528
- "failure": "ProductOauthFailed"
2527
+ "failure": "ProductOauthFailed",
2528
+ "success": "ProductOauthCompleted"
2529
2529
  }
2530
2530
  }
2531
2531
  ]
@@ -2545,13 +2545,11 @@
2545
2545
  "render-ui",
2546
2546
  "main",
2547
2547
  {
2548
- "appName": "ServiceMarketplace",
2549
- "type": "dashboard-layout",
2550
2548
  "navItems": [
2551
2549
  {
2550
+ "icon": "package",
2552
2551
  "label": "Products",
2553
- "href": "/products",
2554
- "icon": "package"
2552
+ "href": "/products"
2555
2553
  },
2556
2554
  {
2557
2555
  "label": "Login",
@@ -2559,19 +2557,19 @@
2559
2557
  "icon": "layout-list"
2560
2558
  },
2561
2559
  {
2562
- "href": "/checkout",
2563
2560
  "label": "Checkout",
2561
+ "href": "/checkout",
2564
2562
  "icon": "credit-card"
2565
2563
  },
2566
2564
  {
2567
- "label": "Orders",
2565
+ "icon": "clipboard-list",
2568
2566
  "href": "/orders",
2569
- "icon": "clipboard-list"
2567
+ "label": "Orders"
2570
2568
  }
2571
2569
  ],
2570
+ "appName": "ServiceMarketplace",
2572
2571
  "children": [
2573
2572
  {
2574
- "gap": "lg",
2575
2573
  "align": "center",
2576
2574
  "children": [
2577
2575
  {
@@ -2579,32 +2577,34 @@
2579
2577
  "type": "icon"
2580
2578
  },
2581
2579
  {
2582
- "variant": "h2",
2583
2580
  "content": "Authorization Required",
2584
- "type": "typography"
2581
+ "type": "typography",
2582
+ "variant": "h2"
2585
2583
  },
2586
2584
  {
2587
- "type": "typography",
2588
2585
  "content": "@entity.authUrl",
2589
2586
  "variant": "body",
2587
+ "type": "typography",
2590
2588
  "color": "muted"
2591
2589
  },
2592
2590
  {
2593
- "placeholder": "Paste authorization code here",
2594
- "type": "input"
2591
+ "type": "input",
2592
+ "placeholder": "Paste authorization code here"
2595
2593
  },
2596
2594
  {
2595
+ "label": "Submit",
2596
+ "icon": "check",
2597
2597
  "type": "button",
2598
- "action": "CALLBACK",
2599
2598
  "variant": "primary",
2600
- "label": "Submit",
2601
- "icon": "check"
2599
+ "action": "CALLBACK"
2602
2600
  }
2603
2601
  ],
2602
+ "gap": "lg",
2604
2603
  "type": "stack",
2605
2604
  "direction": "vertical"
2606
2605
  }
2607
- ]
2606
+ ],
2607
+ "type": "dashboard-layout"
2608
2608
  }
2609
2609
  ]
2610
2610
  ]
@@ -2632,35 +2632,30 @@
2632
2632
  "render-ui",
2633
2633
  "main",
2634
2634
  {
2635
- "appName": "ServiceMarketplace",
2636
- "type": "dashboard-layout",
2637
2635
  "navItems": [
2638
2636
  {
2639
2637
  "label": "Products",
2640
- "href": "/products",
2641
- "icon": "package"
2638
+ "icon": "package",
2639
+ "href": "/products"
2642
2640
  },
2643
2641
  {
2642
+ "label": "Login",
2644
2643
  "href": "/login",
2645
- "icon": "layout-list",
2646
- "label": "Login"
2644
+ "icon": "layout-list"
2647
2645
  },
2648
2646
  {
2649
- "href": "/checkout",
2650
2647
  "icon": "credit-card",
2651
- "label": "Checkout"
2648
+ "label": "Checkout",
2649
+ "href": "/checkout"
2652
2650
  },
2653
2651
  {
2654
- "href": "/orders",
2652
+ "label": "Orders",
2655
2653
  "icon": "clipboard-list",
2656
- "label": "Orders"
2654
+ "href": "/orders"
2657
2655
  }
2658
2656
  ],
2659
2657
  "children": [
2660
2658
  {
2661
- "direction": "vertical",
2662
- "type": "stack",
2663
- "gap": "lg",
2664
2659
  "align": "center",
2665
2660
  "children": [
2666
2661
  {
@@ -2668,35 +2663,40 @@
2668
2663
  "name": "check-circle"
2669
2664
  },
2670
2665
  {
2671
- "variant": "success",
2672
2666
  "message": "Authenticated successfully",
2673
- "type": "alert"
2667
+ "type": "alert",
2668
+ "variant": "success"
2674
2669
  },
2675
2670
  {
2671
+ "gap": "sm",
2672
+ "type": "stack",
2673
+ "justify": "center",
2676
2674
  "children": [
2677
2675
  {
2678
2676
  "type": "button",
2677
+ "action": "REFRESH",
2679
2678
  "label": "Refresh Token",
2680
2679
  "variant": "ghost",
2681
- "action": "REFRESH",
2682
2680
  "icon": "refresh-cw"
2683
2681
  },
2684
2682
  {
2685
- "icon": "log-out",
2686
- "action": "LOGOUT",
2687
2683
  "label": "Logout",
2684
+ "action": "LOGOUT",
2688
2685
  "type": "button",
2686
+ "icon": "log-out",
2689
2687
  "variant": "ghost"
2690
2688
  }
2691
2689
  ],
2692
- "justify": "center",
2693
- "direction": "horizontal",
2694
- "gap": "sm",
2695
- "type": "stack"
2690
+ "direction": "horizontal"
2696
2691
  }
2697
- ]
2692
+ ],
2693
+ "direction": "vertical",
2694
+ "gap": "lg",
2695
+ "type": "stack"
2698
2696
  }
2699
- ]
2697
+ ],
2698
+ "type": "dashboard-layout",
2699
+ "appName": "ServiceMarketplace"
2700
2700
  }
2701
2701
  ]
2702
2702
  ]
@@ -2715,53 +2715,53 @@
2715
2715
  "render-ui",
2716
2716
  "main",
2717
2717
  {
2718
+ "appName": "ServiceMarketplace",
2718
2719
  "children": [
2719
2720
  {
2720
- "direction": "vertical",
2721
- "gap": "lg",
2722
2721
  "children": [
2723
2722
  {
2724
- "onRetry": "RETRY",
2725
2723
  "type": "error-state",
2726
2724
  "title": "Authentication Failed",
2725
+ "onRetry": "RETRY",
2727
2726
  "message": "@entity.error"
2728
2727
  },
2729
2728
  {
2730
2729
  "type": "button",
2731
2730
  "label": "Try Again",
2732
- "action": "RETRY",
2733
2731
  "variant": "primary",
2732
+ "action": "RETRY",
2734
2733
  "icon": "rotate-ccw"
2735
2734
  }
2736
2735
  ],
2737
2736
  "align": "center",
2738
- "type": "stack"
2737
+ "direction": "vertical",
2738
+ "type": "stack",
2739
+ "gap": "lg"
2739
2740
  }
2740
2741
  ],
2742
+ "type": "dashboard-layout",
2741
2743
  "navItems": [
2742
2744
  {
2745
+ "label": "Products",
2743
2746
  "href": "/products",
2744
- "icon": "package",
2745
- "label": "Products"
2747
+ "icon": "package"
2746
2748
  },
2747
2749
  {
2748
- "label": "Login",
2749
2750
  "icon": "layout-list",
2751
+ "label": "Login",
2750
2752
  "href": "/login"
2751
2753
  },
2752
2754
  {
2753
- "href": "/checkout",
2755
+ "label": "Checkout",
2754
2756
  "icon": "credit-card",
2755
- "label": "Checkout"
2757
+ "href": "/checkout"
2756
2758
  },
2757
2759
  {
2760
+ "label": "Orders",
2758
2761
  "href": "/orders",
2759
- "icon": "clipboard-list",
2760
- "label": "Orders"
2762
+ "icon": "clipboard-list"
2761
2763
  }
2762
- ],
2763
- "appName": "ServiceMarketplace",
2764
- "type": "dashboard-layout"
2764
+ ]
2765
2765
  }
2766
2766
  ]
2767
2767
  ]
@@ -2792,43 +2792,43 @@
2792
2792
  {
2793
2793
  "children": [
2794
2794
  {
2795
+ "align": "center",
2795
2796
  "children": [
2796
2797
  {
2797
- "name": "check-circle",
2798
- "type": "icon"
2798
+ "type": "icon",
2799
+ "name": "check-circle"
2799
2800
  },
2800
2801
  {
2801
2802
  "type": "alert",
2802
- "variant": "success",
2803
- "message": "Authenticated successfully"
2803
+ "message": "Authenticated successfully",
2804
+ "variant": "success"
2804
2805
  },
2805
2806
  {
2806
- "gap": "sm",
2807
- "direction": "horizontal",
2808
2807
  "type": "stack",
2809
2808
  "justify": "center",
2809
+ "direction": "horizontal",
2810
2810
  "children": [
2811
2811
  {
2812
- "variant": "ghost",
2813
2812
  "type": "button",
2814
- "icon": "refresh-cw",
2813
+ "variant": "ghost",
2815
2814
  "label": "Refresh Token",
2816
- "action": "REFRESH"
2815
+ "action": "REFRESH",
2816
+ "icon": "refresh-cw"
2817
2817
  },
2818
2818
  {
2819
- "variant": "ghost",
2820
2819
  "type": "button",
2821
2820
  "icon": "log-out",
2822
2821
  "label": "Logout",
2822
+ "variant": "ghost",
2823
2823
  "action": "LOGOUT"
2824
2824
  }
2825
- ]
2825
+ ],
2826
+ "gap": "sm"
2826
2827
  }
2827
2828
  ],
2829
+ "gap": "lg",
2828
2830
  "direction": "vertical",
2829
- "align": "center",
2830
- "type": "stack",
2831
- "gap": "lg"
2831
+ "type": "stack"
2832
2832
  }
2833
2833
  ],
2834
2834
  "type": "dashboard-layout",
@@ -2840,19 +2840,19 @@
2840
2840
  "href": "/products"
2841
2841
  },
2842
2842
  {
2843
- "icon": "layout-list",
2843
+ "label": "Login",
2844
2844
  "href": "/login",
2845
- "label": "Login"
2845
+ "icon": "layout-list"
2846
2846
  },
2847
2847
  {
2848
+ "label": "Checkout",
2848
2849
  "href": "/checkout",
2849
- "icon": "credit-card",
2850
- "label": "Checkout"
2850
+ "icon": "credit-card"
2851
2851
  },
2852
2852
  {
2853
2853
  "href": "/orders",
2854
- "label": "Orders",
2855
- "icon": "clipboard-list"
2854
+ "icon": "clipboard-list",
2855
+ "label": "Orders"
2856
2856
  }
2857
2857
  ]
2858
2858
  }
@@ -2869,17 +2869,24 @@
2869
2869
  "main",
2870
2870
  {
2871
2871
  "type": "dashboard-layout",
2872
+ "children": [
2873
+ {
2874
+ "title": "Refreshing token...",
2875
+ "type": "loading-state",
2876
+ "message": "Obtaining a new access token."
2877
+ }
2878
+ ],
2872
2879
  "appName": "ServiceMarketplace",
2873
2880
  "navItems": [
2874
2881
  {
2875
2882
  "href": "/products",
2876
- "icon": "package",
2877
- "label": "Products"
2883
+ "label": "Products",
2884
+ "icon": "package"
2878
2885
  },
2879
2886
  {
2880
2887
  "href": "/login",
2881
- "label": "Login",
2882
- "icon": "layout-list"
2888
+ "icon": "layout-list",
2889
+ "label": "Login"
2883
2890
  },
2884
2891
  {
2885
2892
  "label": "Checkout",
@@ -2887,16 +2894,9 @@
2887
2894
  "icon": "credit-card"
2888
2895
  },
2889
2896
  {
2890
- "label": "Orders",
2897
+ "href": "/orders",
2891
2898
  "icon": "clipboard-list",
2892
- "href": "/orders"
2893
- }
2894
- ],
2895
- "children": [
2896
- {
2897
- "type": "loading-state",
2898
- "title": "Refreshing token...",
2899
- "message": "Obtaining a new access token."
2899
+ "label": "Orders"
2900
2900
  }
2901
2901
  ]
2902
2902
  }
@@ -2931,39 +2931,15 @@
2931
2931
  "render-ui",
2932
2932
  "main",
2933
2933
  {
2934
- "navItems": [
2935
- {
2936
- "href": "/products",
2937
- "label": "Products",
2938
- "icon": "package"
2939
- },
2940
- {
2941
- "label": "Login",
2942
- "href": "/login",
2943
- "icon": "layout-list"
2944
- },
2945
- {
2946
- "label": "Checkout",
2947
- "href": "/checkout",
2948
- "icon": "credit-card"
2949
- },
2950
- {
2951
- "label": "Orders",
2952
- "icon": "clipboard-list",
2953
- "href": "/orders"
2954
- }
2955
- ],
2956
2934
  "type": "dashboard-layout",
2957
- "appName": "ServiceMarketplace",
2958
2935
  "children": [
2959
2936
  {
2937
+ "gap": "lg",
2960
2938
  "type": "stack",
2961
- "align": "center",
2962
2939
  "direction": "vertical",
2940
+ "align": "center",
2963
2941
  "children": [
2964
2942
  {
2965
- "align": "center",
2966
- "type": "stack",
2967
2943
  "direction": "horizontal",
2968
2944
  "gap": "md",
2969
2945
  "children": [
@@ -2972,11 +2948,13 @@
2972
2948
  "name": "lock"
2973
2949
  },
2974
2950
  {
2975
- "type": "typography",
2976
2951
  "content": "Sign In",
2977
- "variant": "h2"
2952
+ "variant": "h2",
2953
+ "type": "typography"
2978
2954
  }
2979
- ]
2955
+ ],
2956
+ "type": "stack",
2957
+ "align": "center"
2980
2958
  },
2981
2959
  {
2982
2960
  "type": "divider"
@@ -2984,12 +2962,12 @@
2984
2962
  {
2985
2963
  "options": [
2986
2964
  {
2987
- "value": "google",
2988
- "label": "Google"
2965
+ "label": "Google",
2966
+ "value": "google"
2989
2967
  },
2990
2968
  {
2991
- "label": "GitHub",
2992
- "value": "github"
2969
+ "value": "github",
2970
+ "label": "GitHub"
2993
2971
  },
2994
2972
  {
2995
2973
  "label": "Microsoft",
@@ -2999,16 +2977,38 @@
2999
2977
  "type": "select"
3000
2978
  },
3001
2979
  {
2980
+ "type": "button",
2981
+ "action": "LOGIN",
3002
2982
  "variant": "primary",
3003
2983
  "icon": "log-in",
3004
- "label": "Login",
3005
- "type": "button",
3006
- "action": "LOGIN"
2984
+ "label": "Login"
3007
2985
  }
3008
- ],
3009
- "gap": "lg"
2986
+ ]
3010
2987
  }
3011
- ]
2988
+ ],
2989
+ "navItems": [
2990
+ {
2991
+ "href": "/products",
2992
+ "label": "Products",
2993
+ "icon": "package"
2994
+ },
2995
+ {
2996
+ "href": "/login",
2997
+ "icon": "layout-list",
2998
+ "label": "Login"
2999
+ },
3000
+ {
3001
+ "href": "/checkout",
3002
+ "label": "Checkout",
3003
+ "icon": "credit-card"
3004
+ },
3005
+ {
3006
+ "href": "/orders",
3007
+ "icon": "clipboard-list",
3008
+ "label": "Orders"
3009
+ }
3010
+ ],
3011
+ "appName": "ServiceMarketplace"
3012
3012
  }
3013
3013
  ]
3014
3014
  ]
@@ -3027,71 +3027,71 @@
3027
3027
  "render-ui",
3028
3028
  "main",
3029
3029
  {
3030
- "appName": "ServiceMarketplace",
3031
- "type": "dashboard-layout",
3032
- "navItems": [
3033
- {
3034
- "label": "Products",
3035
- "href": "/products",
3036
- "icon": "package"
3037
- },
3038
- {
3039
- "label": "Login",
3040
- "icon": "layout-list",
3041
- "href": "/login"
3042
- },
3043
- {
3044
- "href": "/checkout",
3045
- "icon": "credit-card",
3046
- "label": "Checkout"
3047
- },
3048
- {
3049
- "icon": "clipboard-list",
3050
- "label": "Orders",
3051
- "href": "/orders"
3052
- }
3053
- ],
3054
3030
  "children": [
3055
3031
  {
3056
- "direction": "vertical",
3057
- "gap": "lg",
3058
- "align": "center",
3059
- "type": "stack",
3060
3032
  "children": [
3061
3033
  {
3062
- "type": "icon",
3063
- "name": "check-circle"
3034
+ "name": "check-circle",
3035
+ "type": "icon"
3064
3036
  },
3065
3037
  {
3066
- "variant": "success",
3067
3038
  "type": "alert",
3039
+ "variant": "success",
3068
3040
  "message": "Authenticated successfully"
3069
3041
  },
3070
3042
  {
3071
- "direction": "horizontal",
3072
3043
  "justify": "center",
3073
3044
  "children": [
3074
3045
  {
3075
3046
  "type": "button",
3076
- "action": "REFRESH",
3077
- "variant": "ghost",
3078
3047
  "label": "Refresh Token",
3079
- "icon": "refresh-cw"
3048
+ "icon": "refresh-cw",
3049
+ "action": "REFRESH",
3050
+ "variant": "ghost"
3080
3051
  },
3081
3052
  {
3053
+ "action": "LOGOUT",
3054
+ "type": "button",
3082
3055
  "variant": "ghost",
3083
3056
  "icon": "log-out",
3084
- "type": "button",
3085
- "action": "LOGOUT",
3086
3057
  "label": "Logout"
3087
3058
  }
3088
3059
  ],
3089
- "gap": "sm",
3090
- "type": "stack"
3060
+ "type": "stack",
3061
+ "direction": "horizontal",
3062
+ "gap": "sm"
3091
3063
  }
3092
- ]
3064
+ ],
3065
+ "direction": "vertical",
3066
+ "align": "center",
3067
+ "type": "stack",
3068
+ "gap": "lg"
3093
3069
  }
3094
- ]
3070
+ ],
3071
+ "navItems": [
3072
+ {
3073
+ "icon": "package",
3074
+ "href": "/products",
3075
+ "label": "Products"
3076
+ },
3077
+ {
3078
+ "label": "Login",
3079
+ "href": "/login",
3080
+ "icon": "layout-list"
3081
+ },
3082
+ {
3083
+ "icon": "credit-card",
3084
+ "label": "Checkout",
3085
+ "href": "/checkout"
3086
+ },
3087
+ {
3088
+ "icon": "clipboard-list",
3089
+ "href": "/orders",
3090
+ "label": "Orders"
3091
+ }
3092
+ ],
3093
+ "appName": "ServiceMarketplace",
3094
+ "type": "dashboard-layout"
3095
3095
  }
3096
3096
  ]
3097
3097
  ]
@@ -3112,29 +3112,6 @@
3112
3112
  {
3113
3113
  "type": "dashboard-layout",
3114
3114
  "appName": "ServiceMarketplace",
3115
- "children": [
3116
- {
3117
- "gap": "lg",
3118
- "type": "stack",
3119
- "direction": "vertical",
3120
- "align": "center",
3121
- "children": [
3122
- {
3123
- "message": "@entity.error",
3124
- "title": "Authentication Failed",
3125
- "type": "error-state",
3126
- "onRetry": "RETRY"
3127
- },
3128
- {
3129
- "type": "button",
3130
- "label": "Try Again",
3131
- "variant": "primary",
3132
- "action": "RETRY",
3133
- "icon": "rotate-ccw"
3134
- }
3135
- ]
3136
- }
3137
- ],
3138
3115
  "navItems": [
3139
3116
  {
3140
3117
  "icon": "package",
@@ -3142,19 +3119,42 @@
3142
3119
  "href": "/products"
3143
3120
  },
3144
3121
  {
3145
- "label": "Login",
3146
3122
  "icon": "layout-list",
3147
- "href": "/login"
3123
+ "href": "/login",
3124
+ "label": "Login"
3148
3125
  },
3149
3126
  {
3150
3127
  "href": "/checkout",
3151
- "icon": "credit-card",
3152
- "label": "Checkout"
3128
+ "label": "Checkout",
3129
+ "icon": "credit-card"
3153
3130
  },
3154
3131
  {
3155
- "icon": "clipboard-list",
3132
+ "label": "Orders",
3156
3133
  "href": "/orders",
3157
- "label": "Orders"
3134
+ "icon": "clipboard-list"
3135
+ }
3136
+ ],
3137
+ "children": [
3138
+ {
3139
+ "gap": "lg",
3140
+ "direction": "vertical",
3141
+ "align": "center",
3142
+ "children": [
3143
+ {
3144
+ "type": "error-state",
3145
+ "title": "Authentication Failed",
3146
+ "message": "@entity.error",
3147
+ "onRetry": "RETRY"
3148
+ },
3149
+ {
3150
+ "variant": "primary",
3151
+ "action": "RETRY",
3152
+ "type": "button",
3153
+ "icon": "rotate-ccw",
3154
+ "label": "Try Again"
3155
+ }
3156
+ ],
3157
+ "type": "stack"
3158
3158
  }
3159
3159
  ]
3160
3160
  }
@@ -3172,36 +3172,33 @@
3172
3172
  {
3173
3173
  "children": [
3174
3174
  {
3175
- "type": "stack",
3176
- "gap": "lg",
3177
3175
  "align": "center",
3178
3176
  "children": [
3179
3177
  {
3180
- "gap": "md",
3181
- "type": "stack",
3182
- "direction": "horizontal",
3183
3178
  "align": "center",
3179
+ "type": "stack",
3180
+ "gap": "md",
3184
3181
  "children": [
3185
3182
  {
3186
- "type": "icon",
3187
- "name": "lock"
3183
+ "name": "lock",
3184
+ "type": "icon"
3188
3185
  },
3189
3186
  {
3190
- "variant": "h2",
3191
3187
  "type": "typography",
3188
+ "variant": "h2",
3192
3189
  "content": "Sign In"
3193
3190
  }
3194
- ]
3191
+ ],
3192
+ "direction": "horizontal"
3195
3193
  },
3196
3194
  {
3197
3195
  "type": "divider"
3198
3196
  },
3199
3197
  {
3200
- "type": "select",
3201
3198
  "options": [
3202
3199
  {
3203
- "label": "Google",
3204
- "value": "google"
3200
+ "value": "google",
3201
+ "label": "Google"
3205
3202
  },
3206
3203
  {
3207
3204
  "value": "github",
@@ -3211,43 +3208,46 @@
3211
3208
  "label": "Microsoft",
3212
3209
  "value": "microsoft"
3213
3210
  }
3214
- ]
3211
+ ],
3212
+ "type": "select"
3215
3213
  },
3216
3214
  {
3217
- "variant": "primary",
3218
3215
  "icon": "log-in",
3219
- "label": "Login",
3220
3216
  "type": "button",
3221
- "action": "LOGIN"
3217
+ "variant": "primary",
3218
+ "action": "LOGIN",
3219
+ "label": "Login"
3222
3220
  }
3223
3221
  ],
3224
- "direction": "vertical"
3222
+ "direction": "vertical",
3223
+ "type": "stack",
3224
+ "gap": "lg"
3225
3225
  }
3226
3226
  ],
3227
- "appName": "ServiceMarketplace",
3227
+ "type": "dashboard-layout",
3228
3228
  "navItems": [
3229
3229
  {
3230
+ "label": "Products",
3230
3231
  "icon": "package",
3231
- "href": "/products",
3232
- "label": "Products"
3232
+ "href": "/products"
3233
3233
  },
3234
3234
  {
3235
- "icon": "layout-list",
3236
3235
  "href": "/login",
3237
- "label": "Login"
3236
+ "label": "Login",
3237
+ "icon": "layout-list"
3238
3238
  },
3239
3239
  {
3240
+ "href": "/checkout",
3240
3241
  "label": "Checkout",
3241
- "icon": "credit-card",
3242
- "href": "/checkout"
3242
+ "icon": "credit-card"
3243
3243
  },
3244
3244
  {
3245
3245
  "label": "Orders",
3246
- "href": "/orders",
3247
- "icon": "clipboard-list"
3246
+ "icon": "clipboard-list",
3247
+ "href": "/orders"
3248
3248
  }
3249
3249
  ],
3250
- "type": "dashboard-layout"
3250
+ "appName": "ServiceMarketplace"
3251
3251
  }
3252
3252
  ]
3253
3253
  ]
@@ -3335,7 +3335,7 @@
3335
3335
  "event": "OrderPaymentLoadFailed",
3336
3336
  "description": "Fired when OrderPayment fails to load",
3337
3337
  "scope": "internal",
3338
- "payload": [
3338
+ "payloadSchema": [
3339
3339
  {
3340
3340
  "name": "error",
3341
3341
  "type": "string"
@@ -3350,7 +3350,7 @@
3350
3350
  "event": "OrderPaymentLoaded",
3351
3351
  "description": "Fired when OrderPayment finishes loading",
3352
3352
  "scope": "internal",
3353
- "payload": [
3353
+ "payloadSchema": [
3354
3354
  {
3355
3355
  "name": "data",
3356
3356
  "type": "[OrderPayment]"
@@ -3360,7 +3360,7 @@
3360
3360
  {
3361
3361
  "event": "ProductStripeCompleted",
3362
3362
  "scope": "internal",
3363
- "payload": [
3363
+ "payloadSchema": [
3364
3364
  {
3365
3365
  "name": "data",
3366
3366
  "type": "object"
@@ -3370,7 +3370,7 @@
3370
3370
  {
3371
3371
  "event": "ProductStripeFailed",
3372
3372
  "scope": "internal",
3373
- "payload": [
3373
+ "payloadSchema": [
3374
3374
  {
3375
3375
  "name": "error",
3376
3376
  "type": "string"
@@ -3422,7 +3422,7 @@
3422
3422
  {
3423
3423
  "key": "PAYMENT_CREATED",
3424
3424
  "name": "Payment Created",
3425
- "payload": [
3425
+ "payloadSchema": [
3426
3426
  {
3427
3427
  "name": "id",
3428
3428
  "type": "string"
@@ -3436,7 +3436,7 @@
3436
3436
  {
3437
3437
  "key": "FAILED",
3438
3438
  "name": "Failed",
3439
- "payload": [
3439
+ "payloadSchema": [
3440
3440
  {
3441
3441
  "name": "error",
3442
3442
  "type": "string"
@@ -3462,7 +3462,7 @@
3462
3462
  {
3463
3463
  "key": "OrderPaymentLoadFailed",
3464
3464
  "name": "OrderPayment load failed",
3465
- "payload": [
3465
+ "payloadSchema": [
3466
3466
  {
3467
3467
  "name": "error",
3468
3468
  "type": "string"
@@ -3476,7 +3476,7 @@
3476
3476
  {
3477
3477
  "key": "OrderPaymentLoaded",
3478
3478
  "name": "OrderPayment loaded",
3479
- "payload": [
3479
+ "payloadSchema": [
3480
3480
  {
3481
3481
  "name": "data",
3482
3482
  "type": "[OrderPayment]"
@@ -3486,7 +3486,7 @@
3486
3486
  {
3487
3487
  "key": "ProductStripeCompleted",
3488
3488
  "name": "Product stripe completed",
3489
- "payload": [
3489
+ "payloadSchema": [
3490
3490
  {
3491
3491
  "name": "data",
3492
3492
  "type": "object"
@@ -3496,7 +3496,7 @@
3496
3496
  {
3497
3497
  "key": "ProductStripeFailed",
3498
3498
  "name": "Product stripe failed",
3499
- "payload": [
3499
+ "payloadSchema": [
3500
3500
  {
3501
3501
  "name": "error",
3502
3502
  "type": "string"
@@ -3519,8 +3519,8 @@
3519
3519
  "OrderPayment",
3520
3520
  {
3521
3521
  "emit": {
3522
- "failure": "OrderPaymentLoadFailed",
3523
- "success": "OrderPaymentLoaded"
3522
+ "success": "OrderPaymentLoaded",
3523
+ "failure": "OrderPaymentLoadFailed"
3524
3524
  }
3525
3525
  }
3526
3526
  ],
@@ -3528,96 +3528,96 @@
3528
3528
  "render-ui",
3529
3529
  "main",
3530
3530
  {
3531
- "navItems": [
3532
- {
3533
- "label": "Products",
3534
- "href": "/products",
3535
- "icon": "package"
3536
- },
3537
- {
3538
- "label": "Login",
3539
- "href": "/login",
3540
- "icon": "layout-list"
3541
- },
3542
- {
3543
- "label": "Checkout",
3544
- "href": "/checkout",
3545
- "icon": "credit-card"
3546
- },
3547
- {
3548
- "icon": "clipboard-list",
3549
- "label": "Orders",
3550
- "href": "/orders"
3551
- }
3552
- ],
3531
+ "type": "dashboard-layout",
3553
3532
  "children": [
3554
3533
  {
3555
3534
  "type": "stack",
3556
- "gap": "lg",
3557
3535
  "children": [
3558
3536
  {
3537
+ "align": "center",
3559
3538
  "direction": "horizontal",
3539
+ "type": "stack",
3540
+ "gap": "md",
3560
3541
  "children": [
3561
3542
  {
3562
- "type": "icon",
3563
- "name": "credit-card"
3543
+ "name": "credit-card",
3544
+ "type": "icon"
3564
3545
  },
3565
3546
  {
3566
3547
  "type": "typography",
3567
- "variant": "h2",
3568
- "content": "Payment"
3548
+ "content": "Payment",
3549
+ "variant": "h2"
3569
3550
  }
3570
- ],
3571
- "align": "center",
3572
- "type": "stack",
3573
- "gap": "md"
3551
+ ]
3574
3552
  },
3575
3553
  {
3576
3554
  "type": "divider"
3577
3555
  },
3578
3556
  {
3579
- "gap": "md",
3580
3557
  "type": "stack",
3581
3558
  "direction": "vertical",
3559
+ "gap": "md",
3582
3560
  "children": [
3583
3561
  {
3584
- "placeholder": "0.00",
3562
+ "type": "input",
3585
3563
  "inputType": "number",
3586
- "type": "input"
3564
+ "placeholder": "0.00"
3587
3565
  },
3588
3566
  {
3589
- "type": "select",
3590
3567
  "options": [
3591
3568
  {
3592
- "value": "usd",
3593
- "label": "USD"
3569
+ "label": "USD",
3570
+ "value": "usd"
3594
3571
  },
3595
3572
  {
3596
3573
  "value": "eur",
3597
3574
  "label": "EUR"
3598
3575
  },
3599
3576
  {
3600
- "value": "gbp",
3601
- "label": "GBP"
3577
+ "label": "GBP",
3578
+ "value": "gbp"
3602
3579
  }
3603
- ]
3580
+ ],
3581
+ "type": "select"
3604
3582
  }
3605
3583
  ]
3606
3584
  },
3607
3585
  {
3586
+ "label": "Pay",
3608
3587
  "icon": "credit-card",
3609
3588
  "action": "CREATE_PAYMENT",
3610
3589
  "variant": "primary",
3611
- "type": "button",
3612
- "label": "Pay"
3590
+ "type": "button"
3613
3591
  }
3614
3592
  ],
3615
3593
  "direction": "vertical",
3594
+ "gap": "lg",
3616
3595
  "align": "center"
3617
3596
  }
3618
3597
  ],
3619
- "type": "dashboard-layout",
3620
- "appName": "ServiceMarketplace"
3598
+ "appName": "ServiceMarketplace",
3599
+ "navItems": [
3600
+ {
3601
+ "href": "/products",
3602
+ "icon": "package",
3603
+ "label": "Products"
3604
+ },
3605
+ {
3606
+ "icon": "layout-list",
3607
+ "href": "/login",
3608
+ "label": "Login"
3609
+ },
3610
+ {
3611
+ "label": "Checkout",
3612
+ "href": "/checkout",
3613
+ "icon": "credit-card"
3614
+ },
3615
+ {
3616
+ "label": "Orders",
3617
+ "href": "/orders",
3618
+ "icon": "clipboard-list"
3619
+ }
3620
+ ]
3621
3621
  }
3622
3622
  ]
3623
3623
  ]
@@ -3631,25 +3631,17 @@
3631
3631
  "render-ui",
3632
3632
  "main",
3633
3633
  {
3634
- "type": "dashboard-layout",
3635
- "children": [
3636
- {
3637
- "title": "Creating payment...",
3638
- "message": "Setting up your payment intent.",
3639
- "type": "loading-state"
3640
- }
3641
- ],
3642
3634
  "appName": "ServiceMarketplace",
3643
3635
  "navItems": [
3644
3636
  {
3637
+ "icon": "package",
3645
3638
  "label": "Products",
3646
- "href": "/products",
3647
- "icon": "package"
3639
+ "href": "/products"
3648
3640
  },
3649
3641
  {
3650
3642
  "href": "/login",
3651
- "label": "Login",
3652
- "icon": "layout-list"
3643
+ "icon": "layout-list",
3644
+ "label": "Login"
3653
3645
  },
3654
3646
  {
3655
3647
  "label": "Checkout",
@@ -3657,11 +3649,19 @@
3657
3649
  "icon": "credit-card"
3658
3650
  },
3659
3651
  {
3660
- "href": "/orders",
3652
+ "icon": "clipboard-list",
3661
3653
  "label": "Orders",
3662
- "icon": "clipboard-list"
3654
+ "href": "/orders"
3663
3655
  }
3664
- ]
3656
+ ],
3657
+ "children": [
3658
+ {
3659
+ "type": "loading-state",
3660
+ "title": "Creating payment...",
3661
+ "message": "Setting up your payment intent."
3662
+ }
3663
+ ],
3664
+ "type": "dashboard-layout"
3665
3665
  }
3666
3666
  ],
3667
3667
  [
@@ -3674,8 +3674,8 @@
3674
3674
  },
3675
3675
  {
3676
3676
  "emit": {
3677
- "failure": "ProductStripeFailed",
3678
- "success": "ProductStripeCompleted"
3677
+ "success": "ProductStripeCompleted",
3678
+ "failure": "ProductStripeFailed"
3679
3679
  }
3680
3680
  }
3681
3681
  ]
@@ -3700,13 +3700,13 @@
3700
3700
  "render-ui",
3701
3701
  "main",
3702
3702
  {
3703
- "type": "dashboard-layout",
3704
3703
  "appName": "ServiceMarketplace",
3704
+ "type": "dashboard-layout",
3705
3705
  "navItems": [
3706
3706
  {
3707
+ "icon": "package",
3707
3708
  "label": "Products",
3708
- "href": "/products",
3709
- "icon": "package"
3709
+ "href": "/products"
3710
3710
  },
3711
3711
  {
3712
3712
  "href": "/login",
@@ -3714,9 +3714,9 @@
3714
3714
  "label": "Login"
3715
3715
  },
3716
3716
  {
3717
+ "label": "Checkout",
3717
3718
  "href": "/checkout",
3718
- "icon": "credit-card",
3719
- "label": "Checkout"
3719
+ "icon": "credit-card"
3720
3720
  },
3721
3721
  {
3722
3722
  "href": "/orders",
@@ -3726,9 +3726,9 @@
3726
3726
  ],
3727
3727
  "children": [
3728
3728
  {
3729
+ "title": "Confirming payment...",
3729
3730
  "type": "loading-state",
3730
- "message": "Processing your payment.",
3731
- "title": "Confirming payment..."
3731
+ "message": "Processing your payment."
3732
3732
  }
3733
3733
  ]
3734
3734
  }
@@ -3742,8 +3742,8 @@
3742
3742
  },
3743
3743
  {
3744
3744
  "emit": {
3745
- "failure": "ProductStripeFailed",
3746
- "success": "ProductStripeCompleted"
3745
+ "success": "ProductStripeCompleted",
3746
+ "failure": "ProductStripeFailed"
3747
3747
  }
3748
3748
  }
3749
3749
  ]
@@ -3764,37 +3764,37 @@
3764
3764
  "main",
3765
3765
  {
3766
3766
  "type": "dashboard-layout",
3767
- "appName": "ServiceMarketplace",
3768
3767
  "children": [
3769
3768
  {
3770
3769
  "type": "error-state",
3771
3770
  "title": "Payment Failed",
3772
- "message": "@entity.error",
3773
- "onRetry": "RETRY"
3771
+ "onRetry": "RETRY",
3772
+ "message": "@entity.error"
3774
3773
  }
3775
3774
  ],
3776
3775
  "navItems": [
3777
3776
  {
3778
- "icon": "package",
3779
3777
  "href": "/products",
3778
+ "icon": "package",
3780
3779
  "label": "Products"
3781
3780
  },
3782
3781
  {
3783
- "icon": "layout-list",
3784
3782
  "label": "Login",
3785
- "href": "/login"
3783
+ "href": "/login",
3784
+ "icon": "layout-list"
3786
3785
  },
3787
3786
  {
3788
- "href": "/checkout",
3789
3787
  "label": "Checkout",
3788
+ "href": "/checkout",
3790
3789
  "icon": "credit-card"
3791
3790
  },
3792
3791
  {
3793
3792
  "label": "Orders",
3794
- "href": "/orders",
3795
- "icon": "clipboard-list"
3793
+ "icon": "clipboard-list",
3794
+ "href": "/orders"
3796
3795
  }
3797
- ]
3796
+ ],
3797
+ "appName": "ServiceMarketplace"
3798
3798
  }
3799
3799
  ]
3800
3800
  ]
@@ -3820,59 +3820,59 @@
3820
3820
  "navItems": [
3821
3821
  {
3822
3822
  "href": "/products",
3823
- "icon": "package",
3824
- "label": "Products"
3823
+ "label": "Products",
3824
+ "icon": "package"
3825
3825
  },
3826
3826
  {
3827
+ "icon": "layout-list",
3827
3828
  "label": "Login",
3828
- "href": "/login",
3829
- "icon": "layout-list"
3829
+ "href": "/login"
3830
3830
  },
3831
3831
  {
3832
3832
  "href": "/checkout",
3833
- "label": "Checkout",
3834
- "icon": "credit-card"
3833
+ "icon": "credit-card",
3834
+ "label": "Checkout"
3835
3835
  },
3836
3836
  {
3837
- "label": "Orders",
3838
3837
  "icon": "clipboard-list",
3839
- "href": "/orders"
3838
+ "href": "/orders",
3839
+ "label": "Orders"
3840
3840
  }
3841
3841
  ],
3842
- "appName": "ServiceMarketplace",
3843
- "type": "dashboard-layout",
3844
3842
  "children": [
3845
3843
  {
3846
- "type": "stack",
3847
- "gap": "lg",
3848
3844
  "align": "center",
3845
+ "type": "stack",
3846
+ "direction": "vertical",
3849
3847
  "children": [
3850
3848
  {
3851
3849
  "name": "check-circle",
3852
3850
  "type": "icon"
3853
3851
  },
3854
3852
  {
3855
- "message": "Payment successful! Sending receipt...",
3853
+ "type": "alert",
3856
3854
  "variant": "success",
3857
- "type": "alert"
3855
+ "message": "Payment successful! Sending receipt..."
3858
3856
  },
3859
3857
  {
3860
- "type": "typography",
3861
- "color": "muted",
3862
3858
  "content": "@entity.paymentIntentId",
3863
- "variant": "body"
3859
+ "type": "typography",
3860
+ "variant": "body",
3861
+ "color": "muted"
3864
3862
  },
3865
3863
  {
3866
- "icon": "rotate-ccw",
3867
- "action": "RESET",
3868
- "type": "button",
3869
3864
  "variant": "ghost",
3870
- "label": "New Payment"
3865
+ "label": "New Payment",
3866
+ "type": "button",
3867
+ "icon": "rotate-ccw",
3868
+ "action": "RESET"
3871
3869
  }
3872
3870
  ],
3873
- "direction": "vertical"
3871
+ "gap": "lg"
3874
3872
  }
3875
- ]
3873
+ ],
3874
+ "type": "dashboard-layout",
3875
+ "appName": "ServiceMarketplace"
3876
3876
  }
3877
3877
  ]
3878
3878
  ]
@@ -3891,38 +3891,38 @@
3891
3891
  "render-ui",
3892
3892
  "main",
3893
3893
  {
3894
+ "appName": "ServiceMarketplace",
3894
3895
  "navItems": [
3895
3896
  {
3896
- "icon": "package",
3897
+ "href": "/products",
3897
3898
  "label": "Products",
3898
- "href": "/products"
3899
+ "icon": "package"
3899
3900
  },
3900
3901
  {
3901
- "icon": "layout-list",
3902
3902
  "href": "/login",
3903
- "label": "Login"
3903
+ "label": "Login",
3904
+ "icon": "layout-list"
3904
3905
  },
3905
3906
  {
3906
- "label": "Checkout",
3907
+ "href": "/checkout",
3907
3908
  "icon": "credit-card",
3908
- "href": "/checkout"
3909
+ "label": "Checkout"
3909
3910
  },
3910
3911
  {
3911
- "href": "/orders",
3912
3912
  "label": "Orders",
3913
+ "href": "/orders",
3913
3914
  "icon": "clipboard-list"
3914
3915
  }
3915
3916
  ],
3916
- "type": "dashboard-layout",
3917
- "appName": "ServiceMarketplace",
3918
3917
  "children": [
3919
3918
  {
3920
3919
  "title": "Payment Failed",
3921
- "message": "@entity.error",
3922
3920
  "onRetry": "RETRY",
3923
- "type": "error-state"
3921
+ "type": "error-state",
3922
+ "message": "@entity.error"
3924
3923
  }
3925
- ]
3924
+ ],
3925
+ "type": "dashboard-layout"
3926
3926
  }
3927
3927
  ]
3928
3928
  ]
@@ -3936,36 +3936,38 @@
3936
3936
  "render-ui",
3937
3937
  "main",
3938
3938
  {
3939
- "type": "dashboard-layout",
3940
3939
  "appName": "ServiceMarketplace",
3940
+ "type": "dashboard-layout",
3941
3941
  "children": [
3942
3942
  {
3943
3943
  "align": "center",
3944
- "direction": "vertical",
3945
3944
  "gap": "lg",
3946
3945
  "type": "stack",
3946
+ "direction": "vertical",
3947
3947
  "children": [
3948
3948
  {
3949
- "type": "stack",
3950
- "direction": "horizontal",
3951
3949
  "align": "center",
3950
+ "gap": "md",
3951
+ "type": "stack",
3952
3952
  "children": [
3953
3953
  {
3954
3954
  "name": "credit-card",
3955
3955
  "type": "icon"
3956
3956
  },
3957
3957
  {
3958
- "variant": "h2",
3959
3958
  "content": "Payment",
3959
+ "variant": "h2",
3960
3960
  "type": "typography"
3961
3961
  }
3962
3962
  ],
3963
- "gap": "md"
3963
+ "direction": "horizontal"
3964
3964
  },
3965
3965
  {
3966
3966
  "type": "divider"
3967
3967
  },
3968
3968
  {
3969
+ "direction": "vertical",
3970
+ "gap": "md",
3969
3971
  "type": "stack",
3970
3972
  "children": [
3971
3973
  {
@@ -3976,8 +3978,8 @@
3976
3978
  {
3977
3979
  "options": [
3978
3980
  {
3979
- "value": "usd",
3980
- "label": "USD"
3981
+ "label": "USD",
3982
+ "value": "usd"
3981
3983
  },
3982
3984
  {
3983
3985
  "label": "EUR",
@@ -3990,16 +3992,14 @@
3990
3992
  ],
3991
3993
  "type": "select"
3992
3994
  }
3993
- ],
3994
- "direction": "vertical",
3995
- "gap": "md"
3995
+ ]
3996
3996
  },
3997
3997
  {
3998
3998
  "action": "CREATE_PAYMENT",
3999
- "variant": "primary",
4000
- "type": "button",
3999
+ "icon": "credit-card",
4001
4000
  "label": "Pay",
4002
- "icon": "credit-card"
4001
+ "type": "button",
4002
+ "variant": "primary"
4003
4003
  }
4004
4004
  ]
4005
4005
  }
@@ -4011,18 +4011,18 @@
4011
4011
  "icon": "package"
4012
4012
  },
4013
4013
  {
4014
+ "label": "Login",
4014
4015
  "href": "/login",
4015
- "icon": "layout-list",
4016
- "label": "Login"
4016
+ "icon": "layout-list"
4017
4017
  },
4018
4018
  {
4019
- "href": "/checkout",
4020
4019
  "label": "Checkout",
4021
- "icon": "credit-card"
4020
+ "icon": "credit-card",
4021
+ "href": "/checkout"
4022
4022
  },
4023
4023
  {
4024
- "icon": "clipboard-list",
4025
4024
  "label": "Orders",
4025
+ "icon": "clipboard-list",
4026
4026
  "href": "/orders"
4027
4027
  }
4028
4028
  ]
@@ -4042,13 +4042,12 @@
4042
4042
  "appName": "ServiceMarketplace",
4043
4043
  "children": [
4044
4044
  {
4045
- "align": "center",
4046
4045
  "type": "stack",
4046
+ "align": "center",
4047
4047
  "gap": "lg",
4048
4048
  "direction": "vertical",
4049
4049
  "children": [
4050
4050
  {
4051
- "direction": "horizontal",
4052
4051
  "type": "stack",
4053
4052
  "children": [
4054
4053
  {
@@ -4057,51 +4056,52 @@
4057
4056
  },
4058
4057
  {
4059
4058
  "content": "Payment",
4060
- "variant": "h2",
4061
- "type": "typography"
4059
+ "type": "typography",
4060
+ "variant": "h2"
4062
4061
  }
4063
4062
  ],
4064
4063
  "align": "center",
4064
+ "direction": "horizontal",
4065
4065
  "gap": "md"
4066
4066
  },
4067
4067
  {
4068
4068
  "type": "divider"
4069
4069
  },
4070
4070
  {
4071
- "gap": "md",
4072
- "direction": "vertical",
4073
4071
  "type": "stack",
4072
+ "gap": "md",
4074
4073
  "children": [
4075
4074
  {
4076
4075
  "inputType": "number",
4077
- "type": "input",
4078
- "placeholder": "0.00"
4076
+ "placeholder": "0.00",
4077
+ "type": "input"
4079
4078
  },
4080
4079
  {
4080
+ "type": "select",
4081
4081
  "options": [
4082
4082
  {
4083
- "label": "USD",
4084
- "value": "usd"
4083
+ "value": "usd",
4084
+ "label": "USD"
4085
4085
  },
4086
4086
  {
4087
4087
  "label": "EUR",
4088
4088
  "value": "eur"
4089
4089
  },
4090
4090
  {
4091
- "label": "GBP",
4092
- "value": "gbp"
4091
+ "value": "gbp",
4092
+ "label": "GBP"
4093
4093
  }
4094
- ],
4095
- "type": "select"
4094
+ ]
4096
4095
  }
4097
- ]
4096
+ ],
4097
+ "direction": "vertical"
4098
4098
  },
4099
4099
  {
4100
4100
  "icon": "credit-card",
4101
- "variant": "primary",
4102
- "type": "button",
4101
+ "action": "CREATE_PAYMENT",
4103
4102
  "label": "Pay",
4104
- "action": "CREATE_PAYMENT"
4103
+ "variant": "primary",
4104
+ "type": "button"
4105
4105
  }
4106
4106
  ]
4107
4107
  }
@@ -4119,14 +4119,14 @@
4119
4119
  "icon": "layout-list"
4120
4120
  },
4121
4121
  {
4122
- "label": "Checkout",
4123
4122
  "icon": "credit-card",
4123
+ "label": "Checkout",
4124
4124
  "href": "/checkout"
4125
4125
  },
4126
4126
  {
4127
4127
  "label": "Orders",
4128
- "href": "/orders",
4129
- "icon": "clipboard-list"
4128
+ "icon": "clipboard-list",
4129
+ "href": "/orders"
4130
4130
  }
4131
4131
  ]
4132
4132
  }
@@ -4142,16 +4142,40 @@
4142
4142
  "render-ui",
4143
4143
  "main",
4144
4144
  {
4145
- "type": "dashboard-layout",
4145
+ "navItems": [
4146
+ {
4147
+ "href": "/products",
4148
+ "icon": "package",
4149
+ "label": "Products"
4150
+ },
4151
+ {
4152
+ "icon": "layout-list",
4153
+ "href": "/login",
4154
+ "label": "Login"
4155
+ },
4156
+ {
4157
+ "icon": "credit-card",
4158
+ "href": "/checkout",
4159
+ "label": "Checkout"
4160
+ },
4161
+ {
4162
+ "href": "/orders",
4163
+ "icon": "clipboard-list",
4164
+ "label": "Orders"
4165
+ }
4166
+ ],
4146
4167
  "children": [
4147
4168
  {
4148
4169
  "type": "stack",
4149
4170
  "direction": "vertical",
4150
- "gap": "lg",
4151
4171
  "align": "center",
4172
+ "gap": "lg",
4152
4173
  "children": [
4153
4174
  {
4175
+ "gap": "md",
4176
+ "type": "stack",
4154
4177
  "direction": "horizontal",
4178
+ "align": "center",
4155
4179
  "children": [
4156
4180
  {
4157
4181
  "type": "icon",
@@ -4162,22 +4186,17 @@
4162
4186
  "variant": "h2",
4163
4187
  "type": "typography"
4164
4188
  }
4165
- ],
4166
- "gap": "md",
4167
- "align": "center",
4168
- "type": "stack"
4189
+ ]
4169
4190
  },
4170
4191
  {
4171
4192
  "type": "divider"
4172
4193
  },
4173
4194
  {
4174
- "type": "stack",
4175
- "gap": "md",
4176
4195
  "children": [
4177
4196
  {
4197
+ "inputType": "number",
4178
4198
  "placeholder": "0.00",
4179
- "type": "input",
4180
- "inputType": "number"
4199
+ "type": "input"
4181
4200
  },
4182
4201
  {
4183
4202
  "options": [
@@ -4197,41 +4216,22 @@
4197
4216
  "type": "select"
4198
4217
  }
4199
4218
  ],
4200
- "direction": "vertical"
4219
+ "gap": "md",
4220
+ "direction": "vertical",
4221
+ "type": "stack"
4201
4222
  },
4202
4223
  {
4203
- "icon": "credit-card",
4224
+ "action": "CREATE_PAYMENT",
4204
4225
  "type": "button",
4226
+ "icon": "credit-card",
4205
4227
  "label": "Pay",
4206
- "action": "CREATE_PAYMENT",
4207
4228
  "variant": "primary"
4208
4229
  }
4209
4230
  ]
4210
4231
  }
4211
4232
  ],
4212
- "appName": "ServiceMarketplace",
4213
- "navItems": [
4214
- {
4215
- "href": "/products",
4216
- "icon": "package",
4217
- "label": "Products"
4218
- },
4219
- {
4220
- "href": "/login",
4221
- "icon": "layout-list",
4222
- "label": "Login"
4223
- },
4224
- {
4225
- "label": "Checkout",
4226
- "icon": "credit-card",
4227
- "href": "/checkout"
4228
- },
4229
- {
4230
- "href": "/orders",
4231
- "icon": "clipboard-list",
4232
- "label": "Orders"
4233
- }
4234
- ]
4233
+ "type": "dashboard-layout",
4234
+ "appName": "ServiceMarketplace"
4235
4235
  }
4236
4236
  ]
4237
4237
  ]
@@ -4248,7 +4248,7 @@
4248
4248
  {
4249
4249
  "event": "ProductEmailCompleted",
4250
4250
  "scope": "internal",
4251
- "payload": [
4251
+ "payloadSchema": [
4252
4252
  {
4253
4253
  "name": "data",
4254
4254
  "type": "object"
@@ -4258,7 +4258,7 @@
4258
4258
  {
4259
4259
  "event": "ProductEmailFailed",
4260
4260
  "scope": "internal",
4261
- "payload": [
4261
+ "payloadSchema": [
4262
4262
  {
4263
4263
  "name": "error",
4264
4264
  "type": "string"
@@ -4320,7 +4320,7 @@
4320
4320
  {
4321
4321
  "key": "ProductEmailCompleted",
4322
4322
  "name": "Product email completed",
4323
- "payload": [
4323
+ "payloadSchema": [
4324
4324
  {
4325
4325
  "name": "data",
4326
4326
  "type": "object"
@@ -4330,7 +4330,7 @@
4330
4330
  {
4331
4331
  "key": "ProductEmailFailed",
4332
4332
  "name": "Product email failed",
4333
- "payload": [
4333
+ "payloadSchema": [
4334
4334
  {
4335
4335
  "name": "error",
4336
4336
  "type": "string"
@@ -4352,50 +4352,50 @@
4352
4352
  "render-ui",
4353
4353
  "main",
4354
4354
  {
4355
- "appName": "ServiceMarketplace",
4356
- "type": "dashboard-layout",
4357
4355
  "navItems": [
4358
4356
  {
4359
- "label": "Products",
4360
4357
  "icon": "package",
4361
- "href": "/products"
4358
+ "href": "/products",
4359
+ "label": "Products"
4362
4360
  },
4363
4361
  {
4364
- "href": "/login",
4362
+ "icon": "layout-list",
4365
4363
  "label": "Login",
4366
- "icon": "layout-list"
4364
+ "href": "/login"
4367
4365
  },
4368
4366
  {
4369
- "icon": "credit-card",
4367
+ "label": "Checkout",
4370
4368
  "href": "/checkout",
4371
- "label": "Checkout"
4369
+ "icon": "credit-card"
4372
4370
  },
4373
4371
  {
4374
- "icon": "clipboard-list",
4375
4372
  "href": "/orders",
4376
- "label": "Orders"
4373
+ "label": "Orders",
4374
+ "icon": "clipboard-list"
4377
4375
  }
4378
4376
  ],
4377
+ "type": "dashboard-layout",
4379
4378
  "children": [
4380
4379
  {
4380
+ "align": "center",
4381
+ "direction": "vertical",
4381
4382
  "gap": "md",
4382
4383
  "type": "stack",
4383
- "direction": "vertical",
4384
- "align": "center",
4385
4384
  "children": [
4386
4385
  {
4387
- "type": "icon",
4388
- "name": "mail"
4386
+ "name": "mail",
4387
+ "type": "icon"
4389
4388
  },
4390
4389
  {
4391
- "variant": "body",
4392
- "type": "typography",
4393
4390
  "content": "Receipt will be sent after payment.",
4394
- "color": "muted"
4391
+ "color": "muted",
4392
+ "type": "typography",
4393
+ "variant": "body"
4395
4394
  }
4396
4395
  ]
4397
4396
  }
4398
- ]
4397
+ ],
4398
+ "appName": "ServiceMarketplace"
4399
4399
  }
4400
4400
  ]
4401
4401
  ]
@@ -4409,37 +4409,37 @@
4409
4409
  "render-ui",
4410
4410
  "main",
4411
4411
  {
4412
- "type": "dashboard-layout",
4413
- "appName": "ServiceMarketplace",
4414
- "children": [
4415
- {
4416
- "type": "loading-state",
4417
- "title": "Sending receipt...",
4418
- "message": "Delivering your payment receipt."
4419
- }
4420
- ],
4421
4412
  "navItems": [
4422
4413
  {
4423
4414
  "icon": "package",
4424
- "label": "Products",
4425
- "href": "/products"
4415
+ "href": "/products",
4416
+ "label": "Products"
4426
4417
  },
4427
4418
  {
4428
- "icon": "layout-list",
4429
4419
  "label": "Login",
4420
+ "icon": "layout-list",
4430
4421
  "href": "/login"
4431
4422
  },
4432
4423
  {
4433
- "href": "/checkout",
4434
4424
  "icon": "credit-card",
4435
- "label": "Checkout"
4425
+ "label": "Checkout",
4426
+ "href": "/checkout"
4436
4427
  },
4437
4428
  {
4438
- "label": "Orders",
4439
4429
  "href": "/orders",
4440
- "icon": "clipboard-list"
4430
+ "icon": "clipboard-list",
4431
+ "label": "Orders"
4441
4432
  }
4442
- ]
4433
+ ],
4434
+ "type": "dashboard-layout",
4435
+ "children": [
4436
+ {
4437
+ "title": "Sending receipt...",
4438
+ "message": "Delivering your payment receipt.",
4439
+ "type": "loading-state"
4440
+ }
4441
+ ],
4442
+ "appName": "ServiceMarketplace"
4443
4443
  }
4444
4444
  ],
4445
4445
  [
@@ -4447,14 +4447,14 @@
4447
4447
  "email",
4448
4448
  "send",
4449
4449
  {
4450
+ "body": "@entity.body",
4450
4451
  "to": "@entity.to",
4451
- "subject": "@entity.subject",
4452
- "body": "@entity.body"
4452
+ "subject": "@entity.subject"
4453
4453
  },
4454
4454
  {
4455
4455
  "emit": {
4456
- "failure": "ProductEmailFailed",
4457
- "success": "ProductEmailCompleted"
4456
+ "success": "ProductEmailCompleted",
4457
+ "failure": "ProductEmailFailed"
4458
4458
  }
4459
4459
  }
4460
4460
  ]
@@ -4474,27 +4474,7 @@
4474
4474
  "render-ui",
4475
4475
  "main",
4476
4476
  {
4477
- "appName": "ServiceMarketplace",
4478
4477
  "type": "dashboard-layout",
4479
- "children": [
4480
- {
4481
- "align": "center",
4482
- "gap": "md",
4483
- "children": [
4484
- {
4485
- "type": "icon",
4486
- "name": "check-circle"
4487
- },
4488
- {
4489
- "message": "Receipt sent successfully",
4490
- "type": "alert",
4491
- "variant": "success"
4492
- }
4493
- ],
4494
- "type": "stack",
4495
- "direction": "vertical"
4496
- }
4497
- ],
4498
4478
  "navItems": [
4499
4479
  {
4500
4480
  "icon": "package",
@@ -4502,19 +4482,39 @@
4502
4482
  "href": "/products"
4503
4483
  },
4504
4484
  {
4505
- "href": "/login",
4506
4485
  "icon": "layout-list",
4486
+ "href": "/login",
4507
4487
  "label": "Login"
4508
4488
  },
4509
4489
  {
4510
- "icon": "credit-card",
4490
+ "label": "Checkout",
4511
4491
  "href": "/checkout",
4512
- "label": "Checkout"
4492
+ "icon": "credit-card"
4513
4493
  },
4514
4494
  {
4495
+ "href": "/orders",
4515
4496
  "icon": "clipboard-list",
4516
- "label": "Orders",
4517
- "href": "/orders"
4497
+ "label": "Orders"
4498
+ }
4499
+ ],
4500
+ "appName": "ServiceMarketplace",
4501
+ "children": [
4502
+ {
4503
+ "align": "center",
4504
+ "direction": "vertical",
4505
+ "type": "stack",
4506
+ "children": [
4507
+ {
4508
+ "type": "icon",
4509
+ "name": "check-circle"
4510
+ },
4511
+ {
4512
+ "type": "alert",
4513
+ "message": "Receipt sent successfully",
4514
+ "variant": "success"
4515
+ }
4516
+ ],
4517
+ "gap": "md"
4518
4518
  }
4519
4519
  ]
4520
4520
  }
@@ -4536,52 +4536,52 @@
4536
4536
  "main",
4537
4537
  {
4538
4538
  "appName": "ServiceMarketplace",
4539
+ "type": "dashboard-layout",
4539
4540
  "children": [
4540
4541
  {
4541
- "type": "stack",
4542
4542
  "gap": "md",
4543
- "align": "center",
4544
- "direction": "vertical",
4543
+ "type": "stack",
4545
4544
  "children": [
4546
4545
  {
4547
4546
  "type": "error-state",
4548
- "onRetry": "RETRY_RECEIPT",
4547
+ "title": "Receipt Failed",
4549
4548
  "message": "Could not send receipt email.",
4550
- "title": "Receipt Failed"
4549
+ "onRetry": "RETRY_RECEIPT"
4551
4550
  },
4552
4551
  {
4553
- "icon": "refresh-cw",
4554
- "action": "RETRY_RECEIPT",
4555
4552
  "label": "Retry",
4556
4553
  "variant": "primary",
4557
- "type": "button"
4554
+ "type": "button",
4555
+ "icon": "refresh-cw",
4556
+ "action": "RETRY_RECEIPT"
4558
4557
  }
4559
- ]
4558
+ ],
4559
+ "align": "center",
4560
+ "direction": "vertical"
4560
4561
  }
4561
4562
  ],
4562
4563
  "navItems": [
4563
4564
  {
4565
+ "label": "Products",
4564
4566
  "href": "/products",
4565
- "icon": "package",
4566
- "label": "Products"
4567
+ "icon": "package"
4567
4568
  },
4568
4569
  {
4569
4570
  "label": "Login",
4570
- "href": "/login",
4571
- "icon": "layout-list"
4571
+ "icon": "layout-list",
4572
+ "href": "/login"
4572
4573
  },
4573
4574
  {
4574
4575
  "label": "Checkout",
4575
- "href": "/checkout",
4576
- "icon": "credit-card"
4576
+ "icon": "credit-card",
4577
+ "href": "/checkout"
4577
4578
  },
4578
4579
  {
4580
+ "label": "Orders",
4579
4581
  "href": "/orders",
4580
- "icon": "clipboard-list",
4581
- "label": "Orders"
4582
+ "icon": "clipboard-list"
4582
4583
  }
4583
- ],
4584
- "type": "dashboard-layout"
4584
+ ]
4585
4585
  }
4586
4586
  ]
4587
4587
  ]
@@ -4604,9 +4604,9 @@
4604
4604
  "email",
4605
4605
  "send",
4606
4606
  {
4607
- "body": "@entity.body",
4607
+ "to": "@entity.to",
4608
4608
  "subject": "@entity.subject",
4609
- "to": "@entity.to"
4609
+ "body": "@entity.body"
4610
4610
  },
4611
4611
  {
4612
4612
  "emit": {
@@ -4626,7 +4626,7 @@
4626
4626
  "render-ui",
4627
4627
  "main",
4628
4628
  {
4629
- "type": "dashboard-layout",
4629
+ "appName": "ServiceMarketplace",
4630
4630
  "navItems": [
4631
4631
  {
4632
4632
  "href": "/products",
@@ -4634,27 +4634,27 @@
4634
4634
  "label": "Products"
4635
4635
  },
4636
4636
  {
4637
- "icon": "layout-list",
4638
4637
  "label": "Login",
4639
- "href": "/login"
4638
+ "href": "/login",
4639
+ "icon": "layout-list"
4640
4640
  },
4641
4641
  {
4642
- "label": "Checkout",
4643
4642
  "href": "/checkout",
4644
- "icon": "credit-card"
4643
+ "icon": "credit-card",
4644
+ "label": "Checkout"
4645
4645
  },
4646
4646
  {
4647
4647
  "href": "/orders",
4648
- "icon": "clipboard-list",
4649
- "label": "Orders"
4648
+ "label": "Orders",
4649
+ "icon": "clipboard-list"
4650
4650
  }
4651
4651
  ],
4652
- "appName": "ServiceMarketplace",
4652
+ "type": "dashboard-layout",
4653
4653
  "children": [
4654
4654
  {
4655
+ "message": "Delivering your payment receipt.",
4655
4656
  "type": "loading-state",
4656
- "title": "Sending receipt...",
4657
- "message": "Delivering your payment receipt."
4657
+ "title": "Sending receipt..."
4658
4658
  }
4659
4659
  ]
4660
4660
  }
@@ -4744,7 +4744,7 @@
4744
4744
  "event": "OrderLoaded",
4745
4745
  "description": "Fired when Order finishes loading",
4746
4746
  "scope": "internal",
4747
- "payload": [
4747
+ "payloadSchema": [
4748
4748
  {
4749
4749
  "name": "data",
4750
4750
  "type": "[Order]"
@@ -4755,7 +4755,7 @@
4755
4755
  "event": "OrderLoadFailed",
4756
4756
  "description": "Fired when Order fails to load",
4757
4757
  "scope": "internal",
4758
- "payload": [
4758
+ "payloadSchema": [
4759
4759
  {
4760
4760
  "name": "error",
4761
4761
  "type": "string"
@@ -4808,7 +4808,7 @@
4808
4808
  {
4809
4809
  "key": "OrderLoaded",
4810
4810
  "name": "Order loaded",
4811
- "payload": [
4811
+ "payloadSchema": [
4812
4812
  {
4813
4813
  "name": "data",
4814
4814
  "type": "[Order]"
@@ -4818,7 +4818,7 @@
4818
4818
  {
4819
4819
  "key": "OrderLoadFailed",
4820
4820
  "name": "Order load failed",
4821
- "payload": [
4821
+ "payloadSchema": [
4822
4822
  {
4823
4823
  "name": "error",
4824
4824
  "type": "string"
@@ -4850,7 +4850,7 @@
4850
4850
  "render-ui",
4851
4851
  "main",
4852
4852
  {
4853
- "type": "stack",
4853
+ "direction": "vertical",
4854
4854
  "align": "center",
4855
4855
  "className": "py-12",
4856
4856
  "children": [
@@ -4864,8 +4864,8 @@
4864
4864
  "color": "muted"
4865
4865
  }
4866
4866
  ],
4867
- "gap": "md",
4868
- "direction": "vertical"
4867
+ "type": "stack",
4868
+ "gap": "md"
4869
4869
  }
4870
4870
  ]
4871
4871
  ]
@@ -4880,134 +4880,134 @@
4880
4880
  "main",
4881
4881
  {
4882
4882
  "type": "dashboard-layout",
4883
- "navItems": [
4884
- {
4885
- "label": "Products",
4886
- "href": "/products",
4887
- "icon": "package"
4888
- },
4889
- {
4890
- "label": "Login",
4891
- "href": "/login",
4892
- "icon": "layout-list"
4893
- },
4894
- {
4895
- "icon": "credit-card",
4896
- "href": "/checkout",
4897
- "label": "Checkout"
4898
- },
4899
- {
4900
- "label": "Orders",
4901
- "icon": "clipboard-list",
4902
- "href": "/orders"
4903
- }
4904
- ],
4905
4883
  "appName": "ServiceMarketplace",
4906
4884
  "children": [
4907
4885
  {
4908
- "type": "stack",
4909
4886
  "className": "max-w-5xl mx-auto w-full",
4910
4887
  "children": [
4911
4888
  {
4912
4889
  "justify": "between",
4913
- "gap": "md",
4914
4890
  "direction": "horizontal",
4915
- "type": "stack",
4916
4891
  "align": "center",
4917
4892
  "children": [
4918
4893
  {
4919
- "type": "stack",
4920
4894
  "gap": "sm",
4921
4895
  "align": "center",
4922
- "direction": "horizontal",
4923
4896
  "children": [
4924
4897
  {
4925
- "name": "list",
4926
- "type": "icon"
4898
+ "type": "icon",
4899
+ "name": "list"
4927
4900
  },
4928
4901
  {
4929
- "variant": "h2",
4930
4902
  "content": "Orders",
4903
+ "variant": "h2",
4931
4904
  "type": "typography"
4932
4905
  }
4933
- ]
4906
+ ],
4907
+ "type": "stack",
4908
+ "direction": "horizontal"
4934
4909
  },
4935
4910
  {
4911
+ "gap": "sm",
4912
+ "type": "stack",
4913
+ "direction": "horizontal",
4936
4914
  "children": [
4937
4915
  {
4938
- "icon": "plus",
4939
4916
  "action": "CREATE",
4940
- "variant": "primary",
4941
4917
  "label": "Create Order",
4942
- "type": "button"
4943
- }
4944
- ],
4945
- "gap": "sm",
4946
- "type": "stack",
4947
- "direction": "horizontal"
4918
+ "type": "button",
4919
+ "icon": "plus",
4920
+ "variant": "primary"
4921
+ }
4922
+ ]
4948
4923
  }
4949
- ]
4924
+ ],
4925
+ "type": "stack",
4926
+ "gap": "md"
4950
4927
  },
4951
4928
  {
4952
4929
  "type": "divider"
4953
4930
  },
4954
4931
  {
4955
4932
  "entity": "@payload.data",
4956
- "fields": [],
4957
- "itemActions": [
4958
- {
4959
- "event": "VIEW",
4960
- "variant": "ghost",
4961
- "label": "View"
4962
- },
4963
- {
4964
- "variant": "ghost",
4965
- "event": "EDIT",
4966
- "label": "Edit"
4967
- },
4968
- {
4969
- "variant": "danger",
4970
- "event": "DELETE",
4971
- "label": "Delete"
4972
- }
4973
- ],
4974
4933
  "columns": [
4975
4934
  {
4976
- "icon": "list",
4977
4935
  "variant": "h4",
4936
+ "label": "Product Name",
4978
4937
  "name": "productName",
4979
- "label": "Product Name"
4938
+ "icon": "list"
4980
4939
  },
4981
4940
  {
4982
- "variant": "badge",
4983
- "name": "amount",
4984
- "label": "Amount",
4985
4941
  "colorMap": {
4986
- "active": "success",
4987
- "draft": "warning",
4988
- "failed": "destructive",
4989
- "disabled": "neutral",
4990
- "cancelled": "destructive",
4991
4942
  "scheduled": "warning",
4943
+ "active": "success",
4992
4944
  "archived": "neutral",
4993
- "done": "success",
4994
- "error": "destructive",
4945
+ "cancelled": "destructive",
4995
4946
  "completed": "success",
4947
+ "failed": "destructive",
4948
+ "pending": "warning",
4949
+ "done": "success",
4996
4950
  "inactive": "neutral",
4997
- "pending": "warning"
4998
- }
4951
+ "draft": "warning",
4952
+ "error": "destructive",
4953
+ "disabled": "neutral"
4954
+ },
4955
+ "variant": "badge",
4956
+ "name": "amount",
4957
+ "label": "Amount"
4999
4958
  },
5000
4959
  {
4960
+ "name": "paymentStatus",
5001
4961
  "variant": "caption",
5002
- "label": "Payment Status",
5003
- "name": "paymentStatus"
4962
+ "label": "Payment Status"
5004
4963
  }
5005
4964
  ],
5006
- "type": "data-grid"
4965
+ "fields": [],
4966
+ "type": "data-grid",
4967
+ "itemActions": [
4968
+ {
4969
+ "event": "VIEW",
4970
+ "variant": "ghost",
4971
+ "label": "View"
4972
+ },
4973
+ {
4974
+ "label": "Edit",
4975
+ "event": "EDIT",
4976
+ "variant": "ghost"
4977
+ },
4978
+ {
4979
+ "variant": "danger",
4980
+ "label": "Delete",
4981
+ "event": "DELETE"
4982
+ }
4983
+ ]
5007
4984
  }
5008
4985
  ],
5009
4986
  "gap": "lg",
5010
- "direction": "vertical"
4987
+ "direction": "vertical",
4988
+ "type": "stack"
4989
+ }
4990
+ ],
4991
+ "navItems": [
4992
+ {
4993
+ "label": "Products",
4994
+ "href": "/products",
4995
+ "icon": "package"
4996
+ },
4997
+ {
4998
+ "icon": "layout-list",
4999
+ "label": "Login",
5000
+ "href": "/login"
5001
+ },
5002
+ {
5003
+ "label": "Checkout",
5004
+ "href": "/checkout",
5005
+ "icon": "credit-card"
5006
+ },
5007
+ {
5008
+ "label": "Orders",
5009
+ "icon": "clipboard-list",
5010
+ "href": "/orders"
5011
5011
  }
5012
5012
  ]
5013
5013
  }
@@ -5023,36 +5023,36 @@
5023
5023
  "render-ui",
5024
5024
  "main",
5025
5025
  {
5026
- "type": "stack",
5027
- "align": "center",
5028
- "className": "py-12",
5029
- "gap": "md",
5030
5026
  "children": [
5031
5027
  {
5028
+ "color": "destructive",
5032
5029
  "type": "icon",
5033
- "name": "alert-triangle",
5034
- "color": "destructive"
5030
+ "name": "alert-triangle"
5035
5031
  },
5036
5032
  {
5037
- "variant": "h3",
5033
+ "type": "typography",
5038
5034
  "content": "Failed to load order",
5039
- "type": "typography"
5035
+ "variant": "h3"
5040
5036
  },
5041
5037
  {
5042
- "color": "muted",
5043
- "type": "typography",
5044
5038
  "content": "@payload.error",
5045
- "variant": "body"
5039
+ "variant": "body",
5040
+ "color": "muted",
5041
+ "type": "typography"
5046
5042
  },
5047
5043
  {
5048
- "label": "Retry",
5049
- "action": "INIT",
5050
- "variant": "primary",
5051
5044
  "icon": "rotate-ccw",
5052
- "type": "button"
5045
+ "variant": "primary",
5046
+ "type": "button",
5047
+ "label": "Retry",
5048
+ "action": "INIT"
5053
5049
  }
5054
5050
  ],
5055
- "direction": "vertical"
5051
+ "gap": "md",
5052
+ "type": "stack",
5053
+ "direction": "vertical",
5054
+ "align": "center",
5055
+ "className": "py-12"
5056
5056
  }
5057
5057
  ]
5058
5058
  ]
@@ -5073,7 +5073,7 @@
5073
5073
  "event": "OrderLoadFailed",
5074
5074
  "description": "Fired when Order fails to load",
5075
5075
  "scope": "internal",
5076
- "payload": [
5076
+ "payloadSchema": [
5077
5077
  {
5078
5078
  "name": "error",
5079
5079
  "type": "string"
@@ -5088,7 +5088,7 @@
5088
5088
  "event": "OrderLoaded",
5089
5089
  "description": "Fired when Order finishes loading",
5090
5090
  "scope": "internal",
5091
- "payload": [
5091
+ "payloadSchema": [
5092
5092
  {
5093
5093
  "name": "data",
5094
5094
  "type": "[Order]"
@@ -5098,7 +5098,7 @@
5098
5098
  {
5099
5099
  "event": "OrderSaveFailed",
5100
5100
  "scope": "internal",
5101
- "payload": [
5101
+ "payloadSchema": [
5102
5102
  {
5103
5103
  "name": "error",
5104
5104
  "type": "string"
@@ -5112,7 +5112,7 @@
5112
5112
  {
5113
5113
  "event": "OrderSaved",
5114
5114
  "scope": "internal",
5115
- "payload": [
5115
+ "payloadSchema": [
5116
5116
  {
5117
5117
  "name": "id",
5118
5118
  "type": "string"
@@ -5146,7 +5146,7 @@
5146
5146
  {
5147
5147
  "key": "SAVE",
5148
5148
  "name": "Save",
5149
- "payload": [
5149
+ "payloadSchema": [
5150
5150
  {
5151
5151
  "name": "data",
5152
5152
  "type": "string"
@@ -5160,7 +5160,7 @@
5160
5160
  {
5161
5161
  "key": "OrderLoadFailed",
5162
5162
  "name": "Order load failed",
5163
- "payload": [
5163
+ "payloadSchema": [
5164
5164
  {
5165
5165
  "name": "error",
5166
5166
  "type": "string"
@@ -5174,7 +5174,7 @@
5174
5174
  {
5175
5175
  "key": "OrderLoaded",
5176
5176
  "name": "Order loaded",
5177
- "payload": [
5177
+ "payloadSchema": [
5178
5178
  {
5179
5179
  "name": "data",
5180
5180
  "type": "[Order]"
@@ -5184,7 +5184,7 @@
5184
5184
  {
5185
5185
  "key": "OrderSaveFailed",
5186
5186
  "name": "Order save failed",
5187
- "payload": [
5187
+ "payloadSchema": [
5188
5188
  {
5189
5189
  "name": "error",
5190
5190
  "type": "string"
@@ -5198,7 +5198,7 @@
5198
5198
  {
5199
5199
  "key": "OrderSaved",
5200
5200
  "name": "Order saved",
5201
- "payload": [
5201
+ "payloadSchema": [
5202
5202
  {
5203
5203
  "name": "id",
5204
5204
  "type": "string"
@@ -5238,38 +5238,38 @@
5238
5238
  "modal",
5239
5239
  {
5240
5240
  "type": "stack",
5241
- "gap": "md",
5242
5241
  "direction": "vertical",
5242
+ "gap": "md",
5243
5243
  "children": [
5244
5244
  {
5245
- "type": "stack",
5246
5245
  "direction": "horizontal",
5247
- "gap": "sm",
5248
5246
  "children": [
5249
5247
  {
5250
- "type": "icon",
5251
- "name": "plus-circle"
5248
+ "name": "plus-circle",
5249
+ "type": "icon"
5252
5250
  },
5253
5251
  {
5254
- "variant": "h3",
5255
5252
  "type": "typography",
5253
+ "variant": "h3",
5256
5254
  "content": "Create Order"
5257
5255
  }
5258
- ]
5256
+ ],
5257
+ "gap": "sm",
5258
+ "type": "stack"
5259
5259
  },
5260
5260
  {
5261
5261
  "type": "divider"
5262
5262
  },
5263
5263
  {
5264
5264
  "mode": "create",
5265
+ "cancelEvent": "CLOSE",
5266
+ "submitEvent": "SAVE",
5265
5267
  "fields": [
5266
5268
  "productName",
5267
5269
  "amount",
5268
5270
  "paymentStatus",
5269
5271
  "orderDate"
5270
5272
  ],
5271
- "submitEvent": "SAVE",
5272
- "cancelEvent": "CLOSE",
5273
5273
  "type": "form-section"
5274
5274
  }
5275
5275
  ]
@@ -5352,7 +5352,7 @@
5352
5352
  "event": "OrderLoadFailed",
5353
5353
  "description": "Fired when Order fails to load",
5354
5354
  "scope": "internal",
5355
- "payload": [
5355
+ "payloadSchema": [
5356
5356
  {
5357
5357
  "name": "error",
5358
5358
  "type": "string"
@@ -5367,7 +5367,7 @@
5367
5367
  "event": "OrderLoaded",
5368
5368
  "description": "Fired when Order finishes loading",
5369
5369
  "scope": "internal",
5370
- "payload": [
5370
+ "payloadSchema": [
5371
5371
  {
5372
5372
  "name": "data",
5373
5373
  "type": "[Order]"
@@ -5377,7 +5377,7 @@
5377
5377
  {
5378
5378
  "event": "OrderUpdateFailed",
5379
5379
  "scope": "internal",
5380
- "payload": [
5380
+ "payloadSchema": [
5381
5381
  {
5382
5382
  "name": "error",
5383
5383
  "type": "string"
@@ -5391,7 +5391,7 @@
5391
5391
  {
5392
5392
  "event": "OrderUpdated",
5393
5393
  "scope": "internal",
5394
- "payload": [
5394
+ "payloadSchema": [
5395
5395
  {
5396
5396
  "name": "id",
5397
5397
  "type": "string"
@@ -5417,7 +5417,7 @@
5417
5417
  {
5418
5418
  "key": "EDIT",
5419
5419
  "name": "Edit",
5420
- "payload": [
5420
+ "payloadSchema": [
5421
5421
  {
5422
5422
  "name": "id",
5423
5423
  "type": "string"
@@ -5435,7 +5435,7 @@
5435
5435
  {
5436
5436
  "key": "SAVE",
5437
5437
  "name": "Save",
5438
- "payload": [
5438
+ "payloadSchema": [
5439
5439
  {
5440
5440
  "name": "data",
5441
5441
  "type": "string"
@@ -5449,7 +5449,7 @@
5449
5449
  {
5450
5450
  "key": "OrderLoadFailed",
5451
5451
  "name": "Order load failed",
5452
- "payload": [
5452
+ "payloadSchema": [
5453
5453
  {
5454
5454
  "name": "error",
5455
5455
  "type": "string"
@@ -5463,7 +5463,7 @@
5463
5463
  {
5464
5464
  "key": "OrderLoaded",
5465
5465
  "name": "Order loaded",
5466
- "payload": [
5466
+ "payloadSchema": [
5467
5467
  {
5468
5468
  "name": "data",
5469
5469
  "type": "[Order]"
@@ -5473,7 +5473,7 @@
5473
5473
  {
5474
5474
  "key": "OrderUpdateFailed",
5475
5475
  "name": "Order update failed",
5476
- "payload": [
5476
+ "payloadSchema": [
5477
5477
  {
5478
5478
  "name": "error",
5479
5479
  "type": "string"
@@ -5487,7 +5487,7 @@
5487
5487
  {
5488
5488
  "key": "OrderUpdated",
5489
5489
  "name": "Order updated",
5490
- "payload": [
5490
+ "payloadSchema": [
5491
5491
  {
5492
5492
  "name": "id",
5493
5493
  "type": "string"
@@ -5516,24 +5516,23 @@
5516
5516
  "fetch",
5517
5517
  "Order",
5518
5518
  {
5519
+ "id": "@payload.id",
5519
5520
  "emit": {
5520
- "success": "OrderLoaded",
5521
- "failure": "OrderLoadFailed"
5522
- },
5523
- "id": "@payload.id"
5521
+ "failure": "OrderLoadFailed",
5522
+ "success": "OrderLoaded"
5523
+ }
5524
5524
  }
5525
5525
  ],
5526
5526
  [
5527
5527
  "render-ui",
5528
5528
  "modal",
5529
5529
  {
5530
- "gap": "md",
5531
5530
  "type": "stack",
5531
+ "gap": "md",
5532
5532
  "direction": "vertical",
5533
5533
  "children": [
5534
5534
  {
5535
5535
  "type": "stack",
5536
- "gap": "sm",
5537
5536
  "children": [
5538
5537
  {
5539
5538
  "type": "icon",
@@ -5541,27 +5540,28 @@
5541
5540
  },
5542
5541
  {
5543
5542
  "type": "typography",
5544
- "variant": "h3",
5545
- "content": "Edit Order"
5543
+ "content": "Edit Order",
5544
+ "variant": "h3"
5546
5545
  }
5547
5546
  ],
5547
+ "gap": "sm",
5548
5548
  "direction": "horizontal"
5549
5549
  },
5550
5550
  {
5551
5551
  "type": "divider"
5552
5552
  },
5553
5553
  {
5554
+ "cancelEvent": "CLOSE",
5555
+ "mode": "edit",
5556
+ "type": "form-section",
5554
5557
  "entity": "@payload.row",
5558
+ "submitEvent": "SAVE",
5555
5559
  "fields": [
5556
5560
  "productName",
5557
5561
  "amount",
5558
5562
  "paymentStatus",
5559
5563
  "orderDate"
5560
- ],
5561
- "submitEvent": "SAVE",
5562
- "type": "form-section",
5563
- "mode": "edit",
5564
- "cancelEvent": "CLOSE"
5564
+ ]
5565
5565
  }
5566
5566
  ]
5567
5567
  }
@@ -5640,7 +5640,7 @@
5640
5640
  "event": "OrderLoaded",
5641
5641
  "description": "Fired when Order finishes loading",
5642
5642
  "scope": "internal",
5643
- "payload": [
5643
+ "payloadSchema": [
5644
5644
  {
5645
5645
  "name": "data",
5646
5646
  "type": "[Order]"
@@ -5651,7 +5651,7 @@
5651
5651
  "event": "OrderLoadFailed",
5652
5652
  "description": "Fired when Order fails to load",
5653
5653
  "scope": "internal",
5654
- "payload": [
5654
+ "payloadSchema": [
5655
5655
  {
5656
5656
  "name": "error",
5657
5657
  "type": "string"
@@ -5681,7 +5681,7 @@
5681
5681
  {
5682
5682
  "key": "VIEW",
5683
5683
  "name": "View",
5684
- "payload": [
5684
+ "payloadSchema": [
5685
5685
  {
5686
5686
  "name": "id",
5687
5687
  "type": "string"
@@ -5699,7 +5699,7 @@
5699
5699
  {
5700
5700
  "key": "OrderLoaded",
5701
5701
  "name": "Order loaded",
5702
- "payload": [
5702
+ "payloadSchema": [
5703
5703
  {
5704
5704
  "name": "data",
5705
5705
  "type": "[Order]"
@@ -5709,7 +5709,7 @@
5709
5709
  {
5710
5710
  "key": "OrderLoadFailed",
5711
5711
  "name": "Order load failed",
5712
- "payload": [
5712
+ "payloadSchema": [
5713
5713
  {
5714
5714
  "name": "error",
5715
5715
  "type": "string"
@@ -5744,8 +5744,8 @@
5744
5744
  {
5745
5745
  "id": "@payload.id",
5746
5746
  "emit": {
5747
- "failure": "OrderLoadFailed",
5748
- "success": "OrderLoaded"
5747
+ "success": "OrderLoaded",
5748
+ "failure": "OrderLoadFailed"
5749
5749
  }
5750
5750
  }
5751
5751
  ],
@@ -5754,11 +5754,10 @@
5754
5754
  "modal",
5755
5755
  {
5756
5756
  "gap": "md",
5757
+ "type": "stack",
5758
+ "direction": "vertical",
5757
5759
  "children": [
5758
5760
  {
5759
- "direction": "horizontal",
5760
- "align": "center",
5761
- "type": "stack",
5762
5761
  "gap": "sm",
5763
5762
  "children": [
5764
5763
  {
@@ -5770,7 +5769,10 @@
5770
5769
  "variant": "h3",
5771
5770
  "content": "@entity.productName"
5772
5771
  }
5773
- ]
5772
+ ],
5773
+ "type": "stack",
5774
+ "direction": "horizontal",
5775
+ "align": "center"
5774
5776
  },
5775
5777
  {
5776
5778
  "type": "divider"
@@ -5783,93 +5785,91 @@
5783
5785
  "type": "typography"
5784
5786
  },
5785
5787
  {
5786
- "type": "typography",
5788
+ "variant": "body",
5787
5789
  "content": "@entity.productName",
5788
- "variant": "body"
5790
+ "type": "typography"
5789
5791
  }
5790
5792
  ],
5791
5793
  "direction": "horizontal",
5792
- "type": "stack",
5793
- "gap": "md"
5794
+ "gap": "md",
5795
+ "type": "stack"
5794
5796
  },
5795
5797
  {
5796
- "direction": "horizontal",
5797
- "gap": "md",
5798
+ "type": "stack",
5798
5799
  "children": [
5799
5800
  {
5800
- "content": "Amount",
5801
+ "type": "typography",
5801
5802
  "variant": "caption",
5802
- "type": "typography"
5803
+ "content": "Amount"
5803
5804
  },
5804
5805
  {
5805
- "variant": "body",
5806
+ "content": "@entity.amount",
5806
5807
  "type": "typography",
5807
- "content": "@entity.amount"
5808
+ "variant": "body"
5808
5809
  }
5809
5810
  ],
5810
- "type": "stack"
5811
+ "gap": "md",
5812
+ "direction": "horizontal"
5811
5813
  },
5812
5814
  {
5815
+ "direction": "horizontal",
5816
+ "type": "stack",
5813
5817
  "children": [
5814
5818
  {
5815
- "content": "Payment Status",
5816
5819
  "type": "typography",
5817
- "variant": "caption"
5820
+ "variant": "caption",
5821
+ "content": "Payment Status"
5818
5822
  },
5819
5823
  {
5820
5824
  "type": "typography",
5821
- "variant": "body",
5822
- "content": "@entity.paymentStatus"
5825
+ "content": "@entity.paymentStatus",
5826
+ "variant": "body"
5823
5827
  }
5824
5828
  ],
5825
- "gap": "md",
5826
- "direction": "horizontal",
5827
- "type": "stack"
5829
+ "gap": "md"
5828
5830
  },
5829
5831
  {
5830
- "direction": "horizontal",
5831
- "gap": "md",
5832
- "type": "stack",
5833
5832
  "children": [
5834
5833
  {
5834
+ "content": "Order Date",
5835
5835
  "type": "typography",
5836
- "variant": "caption",
5837
- "content": "Order Date"
5836
+ "variant": "caption"
5838
5837
  },
5839
5838
  {
5839
+ "type": "typography",
5840
5840
  "variant": "body",
5841
- "content": "@entity.orderDate",
5842
- "type": "typography"
5841
+ "content": "@entity.orderDate"
5843
5842
  }
5844
- ]
5843
+ ],
5844
+ "gap": "md",
5845
+ "type": "stack",
5846
+ "direction": "horizontal"
5845
5847
  },
5846
5848
  {
5847
5849
  "type": "divider"
5848
5850
  },
5849
5851
  {
5850
- "justify": "end",
5851
5852
  "children": [
5852
5853
  {
5854
+ "icon": "edit",
5855
+ "action": "EDIT",
5853
5856
  "label": "Edit",
5854
5857
  "type": "button",
5855
- "variant": "primary",
5856
- "icon": "edit",
5857
- "action": "EDIT"
5858
+ "variant": "primary"
5858
5859
  },
5859
5860
  {
5860
- "type": "button",
5861
5861
  "label": "Close",
5862
+ "type": "button",
5862
5863
  "variant": "ghost",
5863
5864
  "action": "CLOSE"
5864
5865
  }
5865
5866
  ],
5866
- "type": "stack",
5867
5867
  "gap": "sm",
5868
+ "justify": "end",
5869
+ "type": "stack",
5868
5870
  "direction": "horizontal"
5869
5871
  }
5870
- ],
5871
- "type": "stack",
5872
- "direction": "vertical"
5872
+ ]
5873
5873
  }
5874
5874
  ]
5875
5875
  ]
@@ -5932,7 +5932,7 @@
5932
5932
  {
5933
5933
  "event": "OrderDeleteFailed",
5934
5934
  "scope": "internal",
5935
- "payload": [
5935
+ "payloadSchema": [
5936
5936
  {
5937
5937
  "name": "error",
5938
5938
  "type": "string"
@@ -5946,7 +5946,7 @@
5946
5946
  {
5947
5947
  "event": "OrderDeleted",
5948
5948
  "scope": "internal",
5949
- "payload": [
5949
+ "payloadSchema": [
5950
5950
  {
5951
5951
  "name": "id",
5952
5952
  "type": "string"
@@ -5957,7 +5957,7 @@
5957
5957
  "event": "OrderLoadFailed",
5958
5958
  "description": "Fired when Order fails to load",
5959
5959
  "scope": "internal",
5960
- "payload": [
5960
+ "payloadSchema": [
5961
5961
  {
5962
5962
  "name": "error",
5963
5963
  "type": "string"
@@ -5972,7 +5972,7 @@
5972
5972
  "event": "OrderLoaded",
5973
5973
  "description": "Fired when Order finishes loading",
5974
5974
  "scope": "internal",
5975
- "payload": [
5975
+ "payloadSchema": [
5976
5976
  {
5977
5977
  "name": "data",
5978
5978
  "type": "[Order]"
@@ -5998,7 +5998,7 @@
5998
5998
  {
5999
5999
  "key": "DELETE",
6000
6000
  "name": "Delete",
6001
- "payload": [
6001
+ "payloadSchema": [
6002
6002
  {
6003
6003
  "name": "id",
6004
6004
  "type": "string"
@@ -6024,7 +6024,7 @@
6024
6024
  {
6025
6025
  "key": "OrderDeleteFailed",
6026
6026
  "name": "Order delete failed",
6027
- "payload": [
6027
+ "payloadSchema": [
6028
6028
  {
6029
6029
  "name": "error",
6030
6030
  "type": "string"
@@ -6038,7 +6038,7 @@
6038
6038
  {
6039
6039
  "key": "OrderDeleted",
6040
6040
  "name": "Order deleted",
6041
- "payload": [
6041
+ "payloadSchema": [
6042
6042
  {
6043
6043
  "name": "id",
6044
6044
  "type": "string"
@@ -6048,7 +6048,7 @@
6048
6048
  {
6049
6049
  "key": "OrderLoadFailed",
6050
6050
  "name": "Order load failed",
6051
- "payload": [
6051
+ "payloadSchema": [
6052
6052
  {
6053
6053
  "name": "error",
6054
6054
  "type": "string"
@@ -6062,7 +6062,7 @@
6062
6062
  {
6063
6063
  "key": "OrderLoaded",
6064
6064
  "name": "Order loaded",
6065
- "payload": [
6065
+ "payloadSchema": [
6066
6066
  {
6067
6067
  "name": "data",
6068
6068
  "type": "[Order]"
@@ -6098,8 +6098,8 @@
6098
6098
  {
6099
6099
  "id": "@payload.id",
6100
6100
  "emit": {
6101
- "success": "OrderLoaded",
6102
- "failure": "OrderLoadFailed"
6101
+ "failure": "OrderLoadFailed",
6102
+ "success": "OrderLoaded"
6103
6103
  }
6104
6104
  }
6105
6105
  ],
@@ -6107,57 +6107,57 @@
6107
6107
  "render-ui",
6108
6108
  "modal",
6109
6109
  {
6110
- "gap": "md",
6111
- "type": "stack",
6112
6110
  "direction": "vertical",
6113
6111
  "children": [
6114
6112
  {
6115
- "align": "center",
6116
6113
  "children": [
6117
6114
  {
6118
- "name": "alert-triangle",
6119
- "type": "icon"
6115
+ "type": "icon",
6116
+ "name": "alert-triangle"
6120
6117
  },
6121
6118
  {
6119
+ "type": "typography",
6122
6120
  "content": "Delete Order",
6123
- "variant": "h3",
6124
- "type": "typography"
6121
+ "variant": "h3"
6125
6122
  }
6126
6123
  ],
6127
- "gap": "sm",
6124
+ "type": "stack",
6128
6125
  "direction": "horizontal",
6129
- "type": "stack"
6126
+ "gap": "sm",
6127
+ "align": "center"
6130
6128
  },
6131
6129
  {
6132
6130
  "type": "divider"
6133
6131
  },
6134
6132
  {
6135
- "message": "This action cannot be undone.",
6133
+ "variant": "error",
6136
6134
  "type": "alert",
6137
- "variant": "error"
6135
+ "message": "This action cannot be undone."
6138
6136
  },
6139
6137
  {
6140
- "direction": "horizontal",
6141
- "justify": "end",
6138
+ "gap": "sm",
6142
6139
  "children": [
6143
6140
  {
6144
- "action": "CANCEL",
6145
- "variant": "ghost",
6146
6141
  "label": "Cancel",
6142
+ "variant": "ghost",
6143
+ "action": "CANCEL",
6147
6144
  "type": "button"
6148
6145
  },
6149
6146
  {
6150
- "label": "Delete",
6151
- "action": "CONFIRM_DELETE",
6152
6147
  "variant": "danger",
6148
+ "icon": "check",
6153
6149
  "type": "button",
6154
- "icon": "check"
6150
+ "label": "Delete",
6151
+ "action": "CONFIRM_DELETE"
6155
6152
  }
6156
6153
  ],
6154
+ "direction": "horizontal",
6157
6155
  "type": "stack",
6158
- "gap": "sm"
6156
+ "justify": "end"
6159
6157
  }
6160
- ]
6158
+ ],
6159
+ "type": "stack",
6160
+ "gap": "md"
6161
6161
  }
6162
6162
  ]
6163
6163
  ]
@@ -6277,4 +6277,4 @@
6277
6277
  ]
6278
6278
  }
6279
6279
  ]
6280
- }
6280
+ }