@contractspec/example.marketplace 0.0.0-canary-20260113170453

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 (188) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +141 -0
  3. package/dist/docs/index.d.ts +1 -0
  4. package/dist/docs/index.js +1 -0
  5. package/dist/docs/marketplace.docblock.d.ts +1 -0
  6. package/dist/docs/marketplace.docblock.js +115 -0
  7. package/dist/docs/marketplace.docblock.js.map +1 -0
  8. package/dist/entities/index.d.ts +309 -0
  9. package/dist/entities/index.d.ts.map +1 -0
  10. package/dist/entities/index.js +46 -0
  11. package/dist/entities/index.js.map +1 -0
  12. package/dist/entities/order.d.ts +105 -0
  13. package/dist/entities/order.d.ts.map +1 -0
  14. package/dist/entities/order.js +173 -0
  15. package/dist/entities/order.js.map +1 -0
  16. package/dist/entities/payout.d.ts +92 -0
  17. package/dist/entities/payout.d.ts.map +1 -0
  18. package/dist/entities/payout.js +162 -0
  19. package/dist/entities/payout.js.map +1 -0
  20. package/dist/entities/product.d.ts +93 -0
  21. package/dist/entities/product.d.ts.map +1 -0
  22. package/dist/entities/product.js +161 -0
  23. package/dist/entities/product.js.map +1 -0
  24. package/dist/entities/review.d.ts +83 -0
  25. package/dist/entities/review.d.ts.map +1 -0
  26. package/dist/entities/review.js +152 -0
  27. package/dist/entities/review.js.map +1 -0
  28. package/dist/entities/store.d.ts +60 -0
  29. package/dist/entities/store.d.ts.map +1 -0
  30. package/dist/entities/store.js +110 -0
  31. package/dist/entities/store.js.map +1 -0
  32. package/dist/example.d.ts +7 -0
  33. package/dist/example.d.ts.map +1 -0
  34. package/dist/example.js +58 -0
  35. package/dist/example.js.map +1 -0
  36. package/dist/handlers/index.d.ts +2 -0
  37. package/dist/handlers/index.js +3 -0
  38. package/dist/handlers/marketplace.handlers.d.ts +155 -0
  39. package/dist/handlers/marketplace.handlers.d.ts.map +1 -0
  40. package/dist/handlers/marketplace.handlers.js +329 -0
  41. package/dist/handlers/marketplace.handlers.js.map +1 -0
  42. package/dist/index.d.ts +31 -0
  43. package/dist/index.js +32 -0
  44. package/dist/marketplace.capability.d.ts +9 -0
  45. package/dist/marketplace.capability.d.ts.map +1 -0
  46. package/dist/marketplace.capability.js +34 -0
  47. package/dist/marketplace.capability.js.map +1 -0
  48. package/dist/marketplace.feature.d.ts +12 -0
  49. package/dist/marketplace.feature.d.ts.map +1 -0
  50. package/dist/marketplace.feature.js +315 -0
  51. package/dist/marketplace.feature.js.map +1 -0
  52. package/dist/order/index.d.ts +5 -0
  53. package/dist/order/index.js +6 -0
  54. package/dist/order/order.enum.d.ts +10 -0
  55. package/dist/order/order.enum.d.ts.map +1 -0
  56. package/dist/order/order.enum.js +22 -0
  57. package/dist/order/order.enum.js.map +1 -0
  58. package/dist/order/order.event.d.ts +145 -0
  59. package/dist/order/order.event.d.ts.map +1 -0
  60. package/dist/order/order.event.js +216 -0
  61. package/dist/order/order.event.js.map +1 -0
  62. package/dist/order/order.operations.d.ts +368 -0
  63. package/dist/order/order.operations.d.ts.map +1 -0
  64. package/dist/order/order.operations.js +119 -0
  65. package/dist/order/order.operations.js.map +1 -0
  66. package/dist/order/order.presentation.d.ts +9 -0
  67. package/dist/order/order.presentation.d.ts.map +1 -0
  68. package/dist/order/order.presentation.js +86 -0
  69. package/dist/order/order.presentation.js.map +1 -0
  70. package/dist/order/order.schema.d.ts +165 -0
  71. package/dist/order/order.schema.d.ts.map +1 -0
  72. package/dist/order/order.schema.js +155 -0
  73. package/dist/order/order.schema.js.map +1 -0
  74. package/dist/payout/index.d.ts +5 -0
  75. package/dist/payout/index.js +6 -0
  76. package/dist/payout/payout.enum.d.ts +10 -0
  77. package/dist/payout/payout.enum.d.ts.map +1 -0
  78. package/dist/payout/payout.enum.js +17 -0
  79. package/dist/payout/payout.enum.js.map +1 -0
  80. package/dist/payout/payout.event.d.ts +63 -0
  81. package/dist/payout/payout.event.d.ts.map +1 -0
  82. package/dist/payout/payout.event.js +92 -0
  83. package/dist/payout/payout.event.js.map +1 -0
  84. package/dist/payout/payout.operations.d.ts +97 -0
  85. package/dist/payout/payout.operations.d.ts.map +1 -0
  86. package/dist/payout/payout.operations.js +53 -0
  87. package/dist/payout/payout.operations.js.map +1 -0
  88. package/dist/payout/payout.presentation.d.ts +8 -0
  89. package/dist/payout/payout.presentation.d.ts.map +1 -0
  90. package/dist/payout/payout.presentation.js +60 -0
  91. package/dist/payout/payout.presentation.js.map +1 -0
  92. package/dist/payout/payout.schema.d.ts +157 -0
  93. package/dist/payout/payout.schema.d.ts.map +1 -0
  94. package/dist/payout/payout.schema.js +116 -0
  95. package/dist/payout/payout.schema.js.map +1 -0
  96. package/dist/product/index.d.ts +5 -0
  97. package/dist/product/index.js +6 -0
  98. package/dist/product/product.enum.d.ts +10 -0
  99. package/dist/product/product.enum.d.ts.map +1 -0
  100. package/dist/product/product.enum.js +18 -0
  101. package/dist/product/product.enum.js.map +1 -0
  102. package/dist/product/product.event.d.ts +73 -0
  103. package/dist/product/product.event.d.ts.map +1 -0
  104. package/dist/product/product.event.js +120 -0
  105. package/dist/product/product.event.js.map +1 -0
  106. package/dist/product/product.operations.d.ts +273 -0
  107. package/dist/product/product.operations.d.ts.map +1 -0
  108. package/dist/product/product.operations.js +108 -0
  109. package/dist/product/product.operations.js.map +1 -0
  110. package/dist/product/product.presentation.d.ts +9 -0
  111. package/dist/product/product.presentation.d.ts.map +1 -0
  112. package/dist/product/product.presentation.js +86 -0
  113. package/dist/product/product.presentation.js.map +1 -0
  114. package/dist/product/product.schema.d.ts +218 -0
  115. package/dist/product/product.schema.d.ts.map +1 -0
  116. package/dist/product/product.schema.js +176 -0
  117. package/dist/product/product.schema.js.map +1 -0
  118. package/dist/review/index.d.ts +5 -0
  119. package/dist/review/index.js +6 -0
  120. package/dist/review/review.enum.d.ts +10 -0
  121. package/dist/review/review.enum.d.ts.map +1 -0
  122. package/dist/review/review.enum.js +16 -0
  123. package/dist/review/review.enum.js.map +1 -0
  124. package/dist/review/review.event.d.ts +55 -0
  125. package/dist/review/review.event.d.ts.map +1 -0
  126. package/dist/review/review.event.js +84 -0
  127. package/dist/review/review.event.js.map +1 -0
  128. package/dist/review/review.operations.d.ts +237 -0
  129. package/dist/review/review.operations.d.ts.map +1 -0
  130. package/dist/review/review.operations.js +106 -0
  131. package/dist/review/review.operations.js.map +1 -0
  132. package/dist/review/review.presentation.d.ts +8 -0
  133. package/dist/review/review.presentation.d.ts.map +1 -0
  134. package/dist/review/review.presentation.js +60 -0
  135. package/dist/review/review.presentation.js.map +1 -0
  136. package/dist/review/review.schema.d.ts +190 -0
  137. package/dist/review/review.schema.d.ts.map +1 -0
  138. package/dist/review/review.schema.js +156 -0
  139. package/dist/review/review.schema.js.map +1 -0
  140. package/dist/seeders/index.d.ts +10 -0
  141. package/dist/seeders/index.d.ts.map +1 -0
  142. package/dist/seeders/index.js +18 -0
  143. package/dist/seeders/index.js.map +1 -0
  144. package/dist/store/index.d.ts +5 -0
  145. package/dist/store/index.js +6 -0
  146. package/dist/store/store.enum.d.ts +10 -0
  147. package/dist/store/store.enum.d.ts.map +1 -0
  148. package/dist/store/store.enum.js +16 -0
  149. package/dist/store/store.enum.js.map +1 -0
  150. package/dist/store/store.event.d.ts +51 -0
  151. package/dist/store/store.event.d.ts.map +1 -0
  152. package/dist/store/store.event.js +80 -0
  153. package/dist/store/store.event.js.map +1 -0
  154. package/dist/store/store.operations.d.ts +131 -0
  155. package/dist/store/store.operations.d.ts.map +1 -0
  156. package/dist/store/store.operations.js +61 -0
  157. package/dist/store/store.operations.js.map +1 -0
  158. package/dist/store/store.presentation.d.ts +8 -0
  159. package/dist/store/store.presentation.d.ts.map +1 -0
  160. package/dist/store/store.presentation.js +60 -0
  161. package/dist/store/store.presentation.js.map +1 -0
  162. package/dist/store/store.schema.d.ts +84 -0
  163. package/dist/store/store.schema.d.ts.map +1 -0
  164. package/dist/store/store.schema.js +93 -0
  165. package/dist/store/store.schema.js.map +1 -0
  166. package/dist/tests/operations.test-spec.d.ts +11 -0
  167. package/dist/tests/operations.test-spec.d.ts.map +1 -0
  168. package/dist/tests/operations.test-spec.js +152 -0
  169. package/dist/tests/operations.test-spec.js.map +1 -0
  170. package/dist/ui/MarketplaceDashboard.d.ts +7 -0
  171. package/dist/ui/MarketplaceDashboard.d.ts.map +1 -0
  172. package/dist/ui/MarketplaceDashboard.js +319 -0
  173. package/dist/ui/MarketplaceDashboard.js.map +1 -0
  174. package/dist/ui/hooks/index.d.ts +2 -0
  175. package/dist/ui/hooks/index.js +5 -0
  176. package/dist/ui/hooks/useMarketplaceData.d.ts +23 -0
  177. package/dist/ui/hooks/useMarketplaceData.d.ts.map +1 -0
  178. package/dist/ui/hooks/useMarketplaceData.js +64 -0
  179. package/dist/ui/hooks/useMarketplaceData.js.map +1 -0
  180. package/dist/ui/index.d.ts +6 -0
  181. package/dist/ui/index.js +6 -0
  182. package/dist/ui/renderers/index.d.ts +2 -0
  183. package/dist/ui/renderers/index.js +3 -0
  184. package/dist/ui/renderers/marketplace.markdown.d.ts +28 -0
  185. package/dist/ui/renderers/marketplace.markdown.d.ts.map +1 -0
  186. package/dist/ui/renderers/marketplace.markdown.js +244 -0
  187. package/dist/ui/renderers/marketplace.markdown.js.map +1 -0
  188. package/package.json +149 -0
@@ -0,0 +1,315 @@
1
+ import { defineFeature } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/marketplace.feature.ts
4
+ /**
5
+ * Marketplace Feature Module Specification
6
+ */
7
+ /**
8
+ * Marketplace feature module that bundles multi-vendor marketplace
9
+ * capabilities including stores, products, orders, payouts, and reviews.
10
+ */
11
+ const MarketplaceFeature = defineFeature({
12
+ meta: {
13
+ key: "marketplace",
14
+ version: "1.0.0",
15
+ title: "Multi-Vendor Marketplace",
16
+ description: "Full-featured marketplace with stores, products, orders, payouts, and reviews",
17
+ domain: "marketplace",
18
+ owners: ["@marketplace-team"],
19
+ tags: [
20
+ "marketplace",
21
+ "ecommerce",
22
+ "multi-vendor",
23
+ "payments"
24
+ ],
25
+ stability: "experimental"
26
+ },
27
+ operations: [
28
+ {
29
+ key: "marketplace.store.create",
30
+ version: "1.0.0"
31
+ },
32
+ {
33
+ key: "marketplace.product.create",
34
+ version: "1.0.0"
35
+ },
36
+ {
37
+ key: "marketplace.product.list",
38
+ version: "1.0.0"
39
+ },
40
+ {
41
+ key: "marketplace.order.create",
42
+ version: "1.0.0"
43
+ },
44
+ {
45
+ key: "marketplace.order.updateStatus",
46
+ version: "1.0.0"
47
+ },
48
+ {
49
+ key: "marketplace.payout.list",
50
+ version: "1.0.0"
51
+ },
52
+ {
53
+ key: "marketplace.review.create",
54
+ version: "1.0.0"
55
+ },
56
+ {
57
+ key: "marketplace.review.list",
58
+ version: "1.0.0"
59
+ }
60
+ ],
61
+ events: [
62
+ {
63
+ key: "marketplace.store.created",
64
+ version: "1.0.0"
65
+ },
66
+ {
67
+ key: "marketplace.store.statusChanged",
68
+ version: "1.0.0"
69
+ },
70
+ {
71
+ key: "marketplace.product.created",
72
+ version: "1.0.0"
73
+ },
74
+ {
75
+ key: "marketplace.product.published",
76
+ version: "1.0.0"
77
+ },
78
+ {
79
+ key: "marketplace.inventory.updated",
80
+ version: "1.0.0"
81
+ },
82
+ {
83
+ key: "marketplace.order.created",
84
+ version: "1.0.0"
85
+ },
86
+ {
87
+ key: "marketplace.order.paid",
88
+ version: "1.0.0"
89
+ },
90
+ {
91
+ key: "marketplace.order.statusUpdated",
92
+ version: "1.0.0"
93
+ },
94
+ {
95
+ key: "marketplace.order.shipped",
96
+ version: "1.0.0"
97
+ },
98
+ {
99
+ key: "marketplace.order.completed",
100
+ version: "1.0.0"
101
+ },
102
+ {
103
+ key: "marketplace.payout.created",
104
+ version: "1.0.0"
105
+ },
106
+ {
107
+ key: "marketplace.payout.paid",
108
+ version: "1.0.0"
109
+ },
110
+ {
111
+ key: "marketplace.review.created",
112
+ version: "1.0.0"
113
+ },
114
+ {
115
+ key: "marketplace.review.responded",
116
+ version: "1.0.0"
117
+ }
118
+ ],
119
+ presentations: [
120
+ {
121
+ key: "marketplace.store.profile",
122
+ version: "1.0.0"
123
+ },
124
+ {
125
+ key: "marketplace.seller.dashboard",
126
+ version: "1.0.0"
127
+ },
128
+ {
129
+ key: "marketplace.product.catalog",
130
+ version: "1.0.0"
131
+ },
132
+ {
133
+ key: "marketplace.product.detail",
134
+ version: "1.0.0"
135
+ },
136
+ {
137
+ key: "marketplace.product.editor",
138
+ version: "1.0.0"
139
+ },
140
+ {
141
+ key: "marketplace.order.list",
142
+ version: "1.0.0"
143
+ },
144
+ {
145
+ key: "marketplace.order.detail",
146
+ version: "1.0.0"
147
+ },
148
+ {
149
+ key: "marketplace.checkout",
150
+ version: "1.0.0"
151
+ },
152
+ {
153
+ key: "marketplace.payout.list",
154
+ version: "1.0.0"
155
+ },
156
+ {
157
+ key: "marketplace.payout.detail",
158
+ version: "1.0.0"
159
+ },
160
+ {
161
+ key: "marketplace.review.list",
162
+ version: "1.0.0"
163
+ },
164
+ {
165
+ key: "marketplace.review.form",
166
+ version: "1.0.0"
167
+ }
168
+ ],
169
+ opToPresentation: [
170
+ {
171
+ op: {
172
+ key: "marketplace.product.list",
173
+ version: "1.0.0"
174
+ },
175
+ pres: {
176
+ key: "marketplace.product.catalog",
177
+ version: "1.0.0"
178
+ }
179
+ },
180
+ {
181
+ op: {
182
+ key: "marketplace.order.create",
183
+ version: "1.0.0"
184
+ },
185
+ pres: {
186
+ key: "marketplace.checkout",
187
+ version: "1.0.0"
188
+ }
189
+ },
190
+ {
191
+ op: {
192
+ key: "marketplace.payout.list",
193
+ version: "1.0.0"
194
+ },
195
+ pres: {
196
+ key: "marketplace.payout.list",
197
+ version: "1.0.0"
198
+ }
199
+ },
200
+ {
201
+ op: {
202
+ key: "marketplace.review.list",
203
+ version: "1.0.0"
204
+ },
205
+ pres: {
206
+ key: "marketplace.review.list",
207
+ version: "1.0.0"
208
+ }
209
+ },
210
+ {
211
+ op: {
212
+ key: "marketplace.review.create",
213
+ version: "1.0.0"
214
+ },
215
+ pres: {
216
+ key: "marketplace.review.form",
217
+ version: "1.0.0"
218
+ }
219
+ }
220
+ ],
221
+ presentationsTargets: [
222
+ {
223
+ key: "marketplace.store.profile",
224
+ version: "1.0.0",
225
+ targets: ["react", "markdown"]
226
+ },
227
+ {
228
+ key: "marketplace.seller.dashboard",
229
+ version: "1.0.0",
230
+ targets: ["react"]
231
+ },
232
+ {
233
+ key: "marketplace.product.catalog",
234
+ version: "1.0.0",
235
+ targets: ["react", "markdown"]
236
+ },
237
+ {
238
+ key: "marketplace.product.detail",
239
+ version: "1.0.0",
240
+ targets: ["react", "markdown"]
241
+ },
242
+ {
243
+ key: "marketplace.product.editor",
244
+ version: "1.0.0",
245
+ targets: ["react"]
246
+ },
247
+ {
248
+ key: "marketplace.order.list",
249
+ version: "1.0.0",
250
+ targets: ["react", "markdown"]
251
+ },
252
+ {
253
+ key: "marketplace.order.detail",
254
+ version: "1.0.0",
255
+ targets: ["react", "markdown"]
256
+ },
257
+ {
258
+ key: "marketplace.checkout",
259
+ version: "1.0.0",
260
+ targets: ["react"]
261
+ },
262
+ {
263
+ key: "marketplace.payout.list",
264
+ version: "1.0.0",
265
+ targets: ["react", "markdown"]
266
+ },
267
+ {
268
+ key: "marketplace.review.list",
269
+ version: "1.0.0",
270
+ targets: ["react", "markdown"]
271
+ }
272
+ ],
273
+ capabilities: {
274
+ requires: [
275
+ {
276
+ key: "identity",
277
+ version: "1.0.0"
278
+ },
279
+ {
280
+ key: "audit-trail",
281
+ version: "1.0.0"
282
+ },
283
+ {
284
+ key: "notifications",
285
+ version: "1.0.0"
286
+ },
287
+ {
288
+ key: "files",
289
+ version: "1.0.0"
290
+ },
291
+ {
292
+ key: "metering",
293
+ version: "1.0.0"
294
+ }
295
+ ],
296
+ provides: [
297
+ {
298
+ key: "marketplace",
299
+ version: "1.0.0"
300
+ },
301
+ {
302
+ key: "ecommerce",
303
+ version: "1.0.0"
304
+ },
305
+ {
306
+ key: "payments",
307
+ version: "1.0.0"
308
+ }
309
+ ]
310
+ }
311
+ });
312
+
313
+ //#endregion
314
+ export { MarketplaceFeature };
315
+ //# sourceMappingURL=marketplace.feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplace.feature.js","names":[],"sources":["../src/marketplace.feature.ts"],"sourcesContent":["/**\n * Marketplace Feature Module Specification\n */\nimport { defineFeature } from '@contractspec/lib.contracts';\n\n/**\n * Marketplace feature module that bundles multi-vendor marketplace\n * capabilities including stores, products, orders, payouts, and reviews.\n */\nexport const MarketplaceFeature = defineFeature({\n meta: {\n key: 'marketplace',\n version: '1.0.0',\n title: 'Multi-Vendor Marketplace',\n description:\n 'Full-featured marketplace with stores, products, orders, payouts, and reviews',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'ecommerce', 'multi-vendor', 'payments'],\n stability: 'experimental',\n },\n\n operations: [\n // Store operations\n { key: 'marketplace.store.create', version: '1.0.0' },\n\n // Product operations\n { key: 'marketplace.product.create', version: '1.0.0' },\n { key: 'marketplace.product.list', version: '1.0.0' },\n\n // Order operations\n { key: 'marketplace.order.create', version: '1.0.0' },\n { key: 'marketplace.order.updateStatus', version: '1.0.0' },\n\n // Payout operations\n { key: 'marketplace.payout.list', version: '1.0.0' },\n\n // Review operations\n { key: 'marketplace.review.create', version: '1.0.0' },\n { key: 'marketplace.review.list', version: '1.0.0' },\n ],\n\n events: [\n // Store events\n { key: 'marketplace.store.created', version: '1.0.0' },\n { key: 'marketplace.store.statusChanged', version: '1.0.0' },\n\n // Product events\n { key: 'marketplace.product.created', version: '1.0.0' },\n { key: 'marketplace.product.published', version: '1.0.0' },\n { key: 'marketplace.inventory.updated', version: '1.0.0' },\n\n // Order events\n { key: 'marketplace.order.created', version: '1.0.0' },\n { key: 'marketplace.order.paid', version: '1.0.0' },\n { key: 'marketplace.order.statusUpdated', version: '1.0.0' },\n { key: 'marketplace.order.shipped', version: '1.0.0' },\n { key: 'marketplace.order.completed', version: '1.0.0' },\n\n // Payout events\n { key: 'marketplace.payout.created', version: '1.0.0' },\n { key: 'marketplace.payout.paid', version: '1.0.0' },\n\n // Review events\n { key: 'marketplace.review.created', version: '1.0.0' },\n { key: 'marketplace.review.responded', version: '1.0.0' },\n ],\n\n presentations: [\n // Store\n { key: 'marketplace.store.profile', version: '1.0.0' },\n { key: 'marketplace.seller.dashboard', version: '1.0.0' },\n\n // Product\n { key: 'marketplace.product.catalog', version: '1.0.0' },\n { key: 'marketplace.product.detail', version: '1.0.0' },\n { key: 'marketplace.product.editor', version: '1.0.0' },\n\n // Order\n { key: 'marketplace.order.list', version: '1.0.0' },\n { key: 'marketplace.order.detail', version: '1.0.0' },\n { key: 'marketplace.checkout', version: '1.0.0' },\n\n // Payout\n { key: 'marketplace.payout.list', version: '1.0.0' },\n { key: 'marketplace.payout.detail', version: '1.0.0' },\n\n // Review\n { key: 'marketplace.review.list', version: '1.0.0' },\n { key: 'marketplace.review.form', version: '1.0.0' },\n ],\n\n opToPresentation: [\n {\n op: { key: 'marketplace.product.list', version: '1.0.0' },\n pres: { key: 'marketplace.product.catalog', version: '1.0.0' },\n },\n {\n op: { key: 'marketplace.order.create', version: '1.0.0' },\n pres: { key: 'marketplace.checkout', version: '1.0.0' },\n },\n {\n op: { key: 'marketplace.payout.list', version: '1.0.0' },\n pres: { key: 'marketplace.payout.list', version: '1.0.0' },\n },\n {\n op: { key: 'marketplace.review.list', version: '1.0.0' },\n pres: { key: 'marketplace.review.list', version: '1.0.0' },\n },\n {\n op: { key: 'marketplace.review.create', version: '1.0.0' },\n pres: { key: 'marketplace.review.form', version: '1.0.0' },\n },\n ],\n\n presentationsTargets: [\n {\n key: 'marketplace.store.profile',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'marketplace.seller.dashboard',\n version: '1.0.0',\n targets: ['react'],\n },\n {\n key: 'marketplace.product.catalog',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'marketplace.product.detail',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n { key: 'marketplace.product.editor', version: '1.0.0', targets: ['react'] },\n {\n key: 'marketplace.order.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'marketplace.order.detail',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n { key: 'marketplace.checkout', version: '1.0.0', targets: ['react'] },\n {\n key: 'marketplace.payout.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'marketplace.review.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n ],\n\n capabilities: {\n requires: [\n { key: 'identity', version: '1.0.0' },\n { key: 'audit-trail', version: '1.0.0' },\n { key: 'notifications', version: '1.0.0' },\n { key: 'files', version: '1.0.0' },\n { key: 'metering', version: '1.0.0' },\n ],\n provides: [\n { key: 'marketplace', version: '1.0.0' },\n { key: 'ecommerce', version: '1.0.0' },\n { key: 'payments', version: '1.0.0' },\n ],\n },\n});\n"],"mappings":";;;;;;;;;;AASA,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAa;GAAgB;GAAW;EAC9D,WAAW;EACZ;CAED,YAAY;EAEV;GAAE,KAAK;GAA4B,SAAS;GAAS;EAGrD;GAAE,KAAK;GAA8B,SAAS;GAAS;EACvD;GAAE,KAAK;GAA4B,SAAS;GAAS;EAGrD;GAAE,KAAK;GAA4B,SAAS;GAAS;EACrD;GAAE,KAAK;GAAkC,SAAS;GAAS;EAG3D;GAAE,KAAK;GAA2B,SAAS;GAAS;EAGpD;GAAE,KAAK;GAA6B,SAAS;GAAS;EACtD;GAAE,KAAK;GAA2B,SAAS;GAAS;EACrD;CAED,QAAQ;EAEN;GAAE,KAAK;GAA6B,SAAS;GAAS;EACtD;GAAE,KAAK;GAAmC,SAAS;GAAS;EAG5D;GAAE,KAAK;GAA+B,SAA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rderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel } from "./order.schema.js";
3
+ import { CreateOrderContract, UpdateOrderStatusContract } from "./order.operations.js";
4
+ import { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent } from "./order.event.js";
5
+ export { CreateOrderContract, CreateOrderInputModel, OrderCompletedEvent, OrderCreatedEvent, OrderItemModel, OrderModel, OrderPaidEvent, OrderShippedEvent, OrderStatusEnum, OrderStatusUpdatedEvent, UpdateOrderStatusContract, UpdateOrderStatusInputModel };
@@ -0,0 +1,6 @@
1
+ import { OrderStatusEnum } from "./order.enum.js";
2
+ import { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel } from "./order.schema.js";
3
+ import { CreateOrderContract, UpdateOrderStatusContract } from "./order.operations.js";
4
+ import { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent } from "./order.event.js";
5
+
6
+ export { CreateOrderContract, CreateOrderInputModel, OrderCompletedEvent, OrderCreatedEvent, OrderItemModel, OrderModel, OrderPaidEvent, OrderShippedEvent, OrderStatusEnum, OrderStatusUpdatedEvent, UpdateOrderStatusContract, UpdateOrderStatusInputModel };
@@ -0,0 +1,10 @@
1
+ import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
+
3
+ //#region src/order/order.enum.d.ts
4
+ /**
5
+ * Order status enum.
6
+ */
7
+ declare const OrderStatusEnum: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
8
+ //#endregion
9
+ export { OrderStatusEnum };
10
+ //# sourceMappingURL=order.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.enum.d.ts","names":[],"sources":["../../src/order/order.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,eAWX,EAAA,yBAAA,CAX0B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { defineEnum } from "@contractspec/lib.schema";
2
+
3
+ //#region src/order/order.enum.ts
4
+ /**
5
+ * Order status enum.
6
+ */
7
+ const OrderStatusEnum = defineEnum("OrderStatus", [
8
+ "PENDING",
9
+ "PAID",
10
+ "PROCESSING",
11
+ "SHIPPED",
12
+ "DELIVERED",
13
+ "COMPLETED",
14
+ "CANCELLED",
15
+ "REFUNDED",
16
+ "PARTIALLY_REFUNDED",
17
+ "DISPUTED"
18
+ ]);
19
+
20
+ //#endregion
21
+ export { OrderStatusEnum };
22
+ //# sourceMappingURL=order.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.enum.js","names":[],"sources":["../../src/order/order.enum.ts"],"sourcesContent":["import { defineEnum } from '@contractspec/lib.schema';\n\n/**\n * Order status enum.\n */\nexport const OrderStatusEnum = defineEnum('OrderStatus', [\n 'PENDING',\n 'PAID',\n 'PROCESSING',\n 'SHIPPED',\n 'DELIVERED',\n 'COMPLETED',\n 'CANCELLED',\n 'REFUNDED',\n 'PARTIALLY_REFUNDED',\n 'DISPUTED',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,kBAAkB,WAAW,eAAe;CACvD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,CAAC"}
@@ -0,0 +1,145 @@
1
+ import * as _contractspec_lib_contracts5 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema36 from "@contractspec/lib.schema";
3
+
4
+ //#region src/order/order.event.d.ts
5
+ declare const OrderCreatedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema36.SchemaModel<{
6
+ orderId: {
7
+ type: _contractspec_lib_schema36.FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ orderNumber: {
11
+ type: _contractspec_lib_schema36.FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ buyerId: {
15
+ type: _contractspec_lib_schema36.FieldType<string, string>;
16
+ isOptional: false;
17
+ };
18
+ storeId: {
19
+ type: _contractspec_lib_schema36.FieldType<string, string>;
20
+ isOptional: false;
21
+ };
22
+ total: {
23
+ type: _contractspec_lib_schema36.FieldType<number, number>;
24
+ isOptional: false;
25
+ };
26
+ currency: {
27
+ type: _contractspec_lib_schema36.FieldType<string, string>;
28
+ isOptional: false;
29
+ };
30
+ itemCount: {
31
+ type: _contractspec_lib_schema36.FieldType<number, number>;
32
+ isOptional: false;
33
+ };
34
+ timestamp: {
35
+ type: _contractspec_lib_schema36.FieldType<Date, string>;
36
+ isOptional: false;
37
+ };
38
+ }>>;
39
+ declare const OrderPaidEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema36.SchemaModel<{
40
+ orderId: {
41
+ type: _contractspec_lib_schema36.FieldType<string, string>;
42
+ isOptional: false;
43
+ };
44
+ orderNumber: {
45
+ type: _contractspec_lib_schema36.FieldType<string, string>;
46
+ isOptional: false;
47
+ };
48
+ total: {
49
+ type: _contractspec_lib_schema36.FieldType<number, number>;
50
+ isOptional: false;
51
+ };
52
+ paymentMethod: {
53
+ type: _contractspec_lib_schema36.FieldType<string, string>;
54
+ isOptional: false;
55
+ };
56
+ timestamp: {
57
+ type: _contractspec_lib_schema36.FieldType<Date, string>;
58
+ isOptional: false;
59
+ };
60
+ }>>;
61
+ declare const OrderStatusUpdatedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema36.SchemaModel<{
62
+ orderId: {
63
+ type: _contractspec_lib_schema36.FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ orderNumber: {
67
+ type: _contractspec_lib_schema36.FieldType<string, string>;
68
+ isOptional: false;
69
+ };
70
+ previousStatus: {
71
+ type: _contractspec_lib_schema36.FieldType<string, string>;
72
+ isOptional: false;
73
+ };
74
+ newStatus: {
75
+ type: _contractspec_lib_schema36.FieldType<string, string>;
76
+ isOptional: false;
77
+ };
78
+ updatedBy: {
79
+ type: _contractspec_lib_schema36.FieldType<string, string>;
80
+ isOptional: false;
81
+ };
82
+ timestamp: {
83
+ type: _contractspec_lib_schema36.FieldType<Date, string>;
84
+ isOptional: false;
85
+ };
86
+ }>>;
87
+ declare const OrderShippedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema36.SchemaModel<{
88
+ orderId: {
89
+ type: _contractspec_lib_schema36.FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ orderNumber: {
93
+ type: _contractspec_lib_schema36.FieldType<string, string>;
94
+ isOptional: false;
95
+ };
96
+ trackingNumber: {
97
+ type: _contractspec_lib_schema36.FieldType<string, string>;
98
+ isOptional: true;
99
+ };
100
+ trackingUrl: {
101
+ type: _contractspec_lib_schema36.FieldType<string, string>;
102
+ isOptional: true;
103
+ };
104
+ carrier: {
105
+ type: _contractspec_lib_schema36.FieldType<string, string>;
106
+ isOptional: true;
107
+ };
108
+ timestamp: {
109
+ type: _contractspec_lib_schema36.FieldType<Date, string>;
110
+ isOptional: false;
111
+ };
112
+ }>>;
113
+ declare const OrderCompletedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema36.SchemaModel<{
114
+ orderId: {
115
+ type: _contractspec_lib_schema36.FieldType<string, string>;
116
+ isOptional: false;
117
+ };
118
+ orderNumber: {
119
+ type: _contractspec_lib_schema36.FieldType<string, string>;
120
+ isOptional: false;
121
+ };
122
+ buyerId: {
123
+ type: _contractspec_lib_schema36.FieldType<string, string>;
124
+ isOptional: false;
125
+ };
126
+ storeId: {
127
+ type: _contractspec_lib_schema36.FieldType<string, string>;
128
+ isOptional: false;
129
+ };
130
+ total: {
131
+ type: _contractspec_lib_schema36.FieldType<number, number>;
132
+ isOptional: false;
133
+ };
134
+ sellerPayout: {
135
+ type: _contractspec_lib_schema36.FieldType<number, number>;
136
+ isOptional: false;
137
+ };
138
+ timestamp: {
139
+ type: _contractspec_lib_schema36.FieldType<Date, string>;
140
+ isOptional: false;
141
+ };
142
+ }>>;
143
+ //#endregion
144
+ export { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent };
145
+ //# sourceMappingURL=order.event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.event.d.ts","names":[],"sources":["../../src/order/order.event.ts"],"sourcesContent":[],"mappings":";;;;cA0Ea,mBAAiB,4BAAA,CAAA,qCAAA;;UAU5B,0BAAA,CAAA;;EAVW,CAAA;EAUX,WAAA,EAAA;;;;;;;;;8CAV4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAYjB,KAAA,EAAA;IAUX,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAVyB,SAAA,EAAA;IAAA,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYd,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;cAtBW,gBAAc,4BAAA,CAAA,qCAAA;;IAYS,IAAA,EAFlC,0BAAA,CAAA,SAEkC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYvB,CAAA;EAUX,WAAA,EAAA;;;;;;;;EAV4B,aAAA,EAAA;IAAA,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYjB,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;cAlCW,yBAAuB,4BAAA,CAAA,qCAAA;;UAUlC,0BAAA,CAAA,SAc8B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;cAZnB,mBAAiB,4BAAA,CAAA,qCAAA;;UAU5B,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW,qBAAmB,4BAAA,CAAA,qCAAA;;UAU9B,0BAAA,CAAA"}