@contractspec/example.marketplace 1.44.1 → 1.45.1
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.
- package/dist/entities/index.d.ts +296 -296
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/order.d.ts +78 -78
- package/dist/entities/payout.d.ts +65 -65
- package/dist/entities/product.d.ts +70 -70
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/store.d.ts +41 -41
- package/dist/example.d.ts +3 -36
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +16 -11
- package/dist/example.js.map +1 -1
- package/dist/marketplace.feature.js +63 -63
- package/dist/marketplace.feature.js.map +1 -1
- package/dist/order/order.enum.d.ts +2 -2
- package/dist/order/order.event.d.ts +39 -39
- package/dist/order/order.event.js +5 -5
- package/dist/order/order.event.js.map +1 -1
- package/dist/order/order.operations.d.ts +92 -92
- package/dist/order/order.operations.d.ts.map +1 -1
- package/dist/order/order.operations.js +4 -4
- package/dist/order/order.operations.js.map +1 -1
- package/dist/order/order.presentation.js +3 -3
- package/dist/order/order.presentation.js.map +1 -1
- package/dist/order/order.schema.d.ts +39 -39
- package/dist/payout/payout.enum.d.ts +2 -2
- package/dist/payout/payout.event.d.ts +17 -17
- package/dist/payout/payout.event.js +2 -2
- package/dist/payout/payout.event.js.map +1 -1
- package/dist/payout/payout.operations.d.ts +24 -24
- package/dist/payout/payout.operations.js +1 -1
- package/dist/payout/payout.operations.js.map +1 -1
- package/dist/payout/payout.presentation.js +2 -2
- package/dist/payout/payout.presentation.js.map +1 -1
- package/dist/product/product.enum.d.ts +2 -2
- package/dist/product/product.event.d.ts +19 -19
- package/dist/product/product.event.js +3 -3
- package/dist/product/product.event.js.map +1 -1
- package/dist/product/product.operations.d.ts +68 -68
- package/dist/product/product.operations.js +3 -3
- package/dist/product/product.operations.js.map +1 -1
- package/dist/product/product.presentation.js +3 -3
- package/dist/product/product.presentation.js.map +1 -1
- package/dist/product/product.schema.d.ts +52 -52
- package/dist/review/review.event.js +2 -2
- package/dist/review/review.event.js.map +1 -1
- package/dist/review/review.operations.d.ts +1 -1
- package/dist/review/review.operations.js +3 -3
- package/dist/review/review.operations.js.map +1 -1
- package/dist/review/review.presentation.js +2 -2
- package/dist/review/review.presentation.js.map +1 -1
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.event.d.ts +13 -13
- package/dist/store/store.event.js +2 -2
- package/dist/store/store.event.js.map +1 -1
- package/dist/store/store.operations.d.ts +1 -1
- package/dist/store/store.operations.js +2 -2
- package/dist/store/store.operations.js.map +1 -1
- package/dist/store/store.presentation.js +2 -2
- package/dist/store/store.presentation.js.map +1 -1
- package/package.json +12 -12
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const MarketplaceFeature = {
|
|
7
7
|
meta: {
|
|
8
8
|
key: "marketplace",
|
|
9
|
-
version: 1,
|
|
9
|
+
version: "1.0.0",
|
|
10
10
|
title: "Multi-Vendor Marketplace",
|
|
11
11
|
description: "Full-featured marketplace with stores, products, orders, payouts, and reviews",
|
|
12
12
|
domain: "marketplace",
|
|
@@ -22,246 +22,246 @@ const MarketplaceFeature = {
|
|
|
22
22
|
operations: [
|
|
23
23
|
{
|
|
24
24
|
key: "marketplace.store.create",
|
|
25
|
-
version: 1
|
|
25
|
+
version: "1.0.0"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
key: "marketplace.product.create",
|
|
29
|
-
version: 1
|
|
29
|
+
version: "1.0.0"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
key: "marketplace.product.list",
|
|
33
|
-
version: 1
|
|
33
|
+
version: "1.0.0"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
key: "marketplace.order.create",
|
|
37
|
-
version: 1
|
|
37
|
+
version: "1.0.0"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
key: "marketplace.order.updateStatus",
|
|
41
|
-
version: 1
|
|
41
|
+
version: "1.0.0"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
key: "marketplace.payout.list",
|
|
45
|
-
version: 1
|
|
45
|
+
version: "1.0.0"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
key: "marketplace.review.create",
|
|
49
|
-
version: 1
|
|
49
|
+
version: "1.0.0"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
key: "marketplace.review.list",
|
|
53
|
-
version: 1
|
|
53
|
+
version: "1.0.0"
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
56
|
events: [
|
|
57
57
|
{
|
|
58
58
|
key: "marketplace.store.created",
|
|
59
|
-
version: 1
|
|
59
|
+
version: "1.0.0"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
key: "marketplace.store.statusChanged",
|
|
63
|
-
version: 1
|
|
63
|
+
version: "1.0.0"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
key: "marketplace.product.created",
|
|
67
|
-
version: 1
|
|
67
|
+
version: "1.0.0"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
key: "marketplace.product.published",
|
|
71
|
-
version: 1
|
|
71
|
+
version: "1.0.0"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
key: "marketplace.inventory.updated",
|
|
75
|
-
version: 1
|
|
75
|
+
version: "1.0.0"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
key: "marketplace.order.created",
|
|
79
|
-
version: 1
|
|
79
|
+
version: "1.0.0"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
key: "marketplace.order.paid",
|
|
83
|
-
version: 1
|
|
83
|
+
version: "1.0.0"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
key: "marketplace.order.statusUpdated",
|
|
87
|
-
version: 1
|
|
87
|
+
version: "1.0.0"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
key: "marketplace.order.shipped",
|
|
91
|
-
version: 1
|
|
91
|
+
version: "1.0.0"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
key: "marketplace.order.completed",
|
|
95
|
-
version: 1
|
|
95
|
+
version: "1.0.0"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
key: "marketplace.payout.created",
|
|
99
|
-
version: 1
|
|
99
|
+
version: "1.0.0"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
key: "marketplace.payout.paid",
|
|
103
|
-
version: 1
|
|
103
|
+
version: "1.0.0"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
key: "marketplace.review.created",
|
|
107
|
-
version: 1
|
|
107
|
+
version: "1.0.0"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
key: "marketplace.review.responded",
|
|
111
|
-
version: 1
|
|
111
|
+
version: "1.0.0"
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
114
|
presentations: [
|
|
115
115
|
{
|
|
116
116
|
key: "marketplace.store.profile",
|
|
117
|
-
version: 1
|
|
117
|
+
version: "1.0.0"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
key: "marketplace.seller.dashboard",
|
|
121
|
-
version: 1
|
|
121
|
+
version: "1.0.0"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
key: "marketplace.product.catalog",
|
|
125
|
-
version: 1
|
|
125
|
+
version: "1.0.0"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
key: "marketplace.product.detail",
|
|
129
|
-
version: 1
|
|
129
|
+
version: "1.0.0"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
key: "marketplace.product.editor",
|
|
133
|
-
version: 1
|
|
133
|
+
version: "1.0.0"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
key: "marketplace.order.list",
|
|
137
|
-
version: 1
|
|
137
|
+
version: "1.0.0"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
key: "marketplace.order.detail",
|
|
141
|
-
version: 1
|
|
141
|
+
version: "1.0.0"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
key: "marketplace.checkout",
|
|
145
|
-
version: 1
|
|
145
|
+
version: "1.0.0"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
key: "marketplace.payout.list",
|
|
149
|
-
version: 1
|
|
149
|
+
version: "1.0.0"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
key: "marketplace.payout.detail",
|
|
153
|
-
version: 1
|
|
153
|
+
version: "1.0.0"
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
key: "marketplace.review.list",
|
|
157
|
-
version: 1
|
|
157
|
+
version: "1.0.0"
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
key: "marketplace.review.form",
|
|
161
|
-
version: 1
|
|
161
|
+
version: "1.0.0"
|
|
162
162
|
}
|
|
163
163
|
],
|
|
164
164
|
opToPresentation: [
|
|
165
165
|
{
|
|
166
166
|
op: {
|
|
167
167
|
key: "marketplace.product.list",
|
|
168
|
-
version: 1
|
|
168
|
+
version: "1.0.0"
|
|
169
169
|
},
|
|
170
170
|
pres: {
|
|
171
171
|
key: "marketplace.product.catalog",
|
|
172
|
-
version: 1
|
|
172
|
+
version: "1.0.0"
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
op: {
|
|
177
177
|
key: "marketplace.order.create",
|
|
178
|
-
version: 1
|
|
178
|
+
version: "1.0.0"
|
|
179
179
|
},
|
|
180
180
|
pres: {
|
|
181
181
|
key: "marketplace.checkout",
|
|
182
|
-
version: 1
|
|
182
|
+
version: "1.0.0"
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
op: {
|
|
187
187
|
key: "marketplace.payout.list",
|
|
188
|
-
version: 1
|
|
188
|
+
version: "1.0.0"
|
|
189
189
|
},
|
|
190
190
|
pres: {
|
|
191
191
|
key: "marketplace.payout.list",
|
|
192
|
-
version: 1
|
|
192
|
+
version: "1.0.0"
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
op: {
|
|
197
197
|
key: "marketplace.review.list",
|
|
198
|
-
version: 1
|
|
198
|
+
version: "1.0.0"
|
|
199
199
|
},
|
|
200
200
|
pres: {
|
|
201
201
|
key: "marketplace.review.list",
|
|
202
|
-
version: 1
|
|
202
|
+
version: "1.0.0"
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
op: {
|
|
207
207
|
key: "marketplace.review.create",
|
|
208
|
-
version: 1
|
|
208
|
+
version: "1.0.0"
|
|
209
209
|
},
|
|
210
210
|
pres: {
|
|
211
211
|
key: "marketplace.review.form",
|
|
212
|
-
version: 1
|
|
212
|
+
version: "1.0.0"
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
],
|
|
216
216
|
presentationsTargets: [
|
|
217
217
|
{
|
|
218
218
|
key: "marketplace.store.profile",
|
|
219
|
-
version: 1,
|
|
219
|
+
version: "1.0.0",
|
|
220
220
|
targets: ["react", "markdown"]
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
key: "marketplace.seller.dashboard",
|
|
224
|
-
version: 1,
|
|
224
|
+
version: "1.0.0",
|
|
225
225
|
targets: ["react"]
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
key: "marketplace.product.catalog",
|
|
229
|
-
version: 1,
|
|
229
|
+
version: "1.0.0",
|
|
230
230
|
targets: ["react", "markdown"]
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
key: "marketplace.product.detail",
|
|
234
|
-
version: 1,
|
|
234
|
+
version: "1.0.0",
|
|
235
235
|
targets: ["react", "markdown"]
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
key: "marketplace.product.editor",
|
|
239
|
-
version: 1,
|
|
239
|
+
version: "1.0.0",
|
|
240
240
|
targets: ["react"]
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
key: "marketplace.order.list",
|
|
244
|
-
version: 1,
|
|
244
|
+
version: "1.0.0",
|
|
245
245
|
targets: ["react", "markdown"]
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
key: "marketplace.order.detail",
|
|
249
|
-
version: 1,
|
|
249
|
+
version: "1.0.0",
|
|
250
250
|
targets: ["react", "markdown"]
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
key: "marketplace.checkout",
|
|
254
|
-
version: 1,
|
|
254
|
+
version: "1.0.0",
|
|
255
255
|
targets: ["react"]
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
key: "marketplace.payout.list",
|
|
259
|
-
version: 1,
|
|
259
|
+
version: "1.0.0",
|
|
260
260
|
targets: ["react", "markdown"]
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
key: "marketplace.review.list",
|
|
264
|
-
version: 1,
|
|
264
|
+
version: "1.0.0",
|
|
265
265
|
targets: ["react", "markdown"]
|
|
266
266
|
}
|
|
267
267
|
],
|
|
@@ -269,37 +269,37 @@ const MarketplaceFeature = {
|
|
|
269
269
|
requires: [
|
|
270
270
|
{
|
|
271
271
|
key: "identity",
|
|
272
|
-
version: 1
|
|
272
|
+
version: "1.0.0"
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
275
|
key: "audit-trail",
|
|
276
|
-
version: 1
|
|
276
|
+
version: "1.0.0"
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
key: "notifications",
|
|
280
|
-
version: 1
|
|
280
|
+
version: "1.0.0"
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
key: "files",
|
|
284
|
-
version: 1
|
|
284
|
+
version: "1.0.0"
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
287
|
key: "metering",
|
|
288
|
-
version: 1
|
|
288
|
+
version: "1.0.0"
|
|
289
289
|
}
|
|
290
290
|
],
|
|
291
291
|
provides: [
|
|
292
292
|
{
|
|
293
293
|
key: "marketplace",
|
|
294
|
-
version: 1
|
|
294
|
+
version: "1.0.0"
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
key: "ecommerce",
|
|
298
|
-
version: 1
|
|
298
|
+
version: "1.0.0"
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
301
|
key: "payments",
|
|
302
|
-
version: 1
|
|
302
|
+
version: "1.0.0"
|
|
303
303
|
}
|
|
304
304
|
]
|
|
305
305
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.feature.js","names":["MarketplaceFeature: FeatureModuleSpec"],"sources":["../src/marketplace.feature.ts"],"sourcesContent":["/**\n * Marketplace Feature Module Specification\n */\nimport type { FeatureModuleSpec } 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: FeatureModuleSpec = {\n meta: {\n key: 'marketplace',\n version: 1,\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 },\n\n // Product operations\n { key: 'marketplace.product.create', version: 1 },\n { key: 'marketplace.product.list', version: 1 },\n\n // Order operations\n { key: 'marketplace.order.create', version: 1 },\n { key: 'marketplace.order.updateStatus', version: 1 },\n\n // Payout operations\n { key: 'marketplace.payout.list', version: 1 },\n\n // Review operations\n { key: 'marketplace.review.create', version: 1 },\n { key: 'marketplace.review.list', version: 1 },\n ],\n\n events: [\n // Store events\n { key: 'marketplace.store.created', version: 1 },\n { key: 'marketplace.store.statusChanged', version: 1 },\n\n // Product events\n { key: 'marketplace.product.created', version: 1 },\n { key: 'marketplace.product.published', version: 1 },\n { key: 'marketplace.inventory.updated', version: 1 },\n\n // Order events\n { key: 'marketplace.order.created', version: 1 },\n { key: 'marketplace.order.paid', version: 1 },\n { key: 'marketplace.order.statusUpdated', version: 1 },\n { key: 'marketplace.order.shipped', version: 1 },\n { key: 'marketplace.order.completed', version: 1 },\n\n // Payout events\n { key: 'marketplace.payout.created', version: 1 },\n { key: 'marketplace.payout.paid', version: 1 },\n\n // Review events\n { key: 'marketplace.review.created', version: 1 },\n { key: 'marketplace.review.responded', version: 1 },\n ],\n\n presentations: [\n // Store\n { key: 'marketplace.store.profile', version: 1 },\n { key: 'marketplace.seller.dashboard', version: 1 },\n\n // Product\n { key: 'marketplace.product.catalog', version: 1 },\n { key: 'marketplace.product.detail', version: 1 },\n { key: 'marketplace.product.editor', version: 1 },\n\n // Order\n { key: 'marketplace.order.list', version: 1 },\n { key: 'marketplace.order.detail', version: 1 },\n { key: 'marketplace.checkout', version: 1 },\n\n // Payout\n { key: 'marketplace.payout.list', version: 1 },\n { key: 'marketplace.payout.detail', version: 1 },\n\n // Review\n { key: 'marketplace.review.list', version: 1 },\n { key: 'marketplace.review.form', version: 1 },\n ],\n\n opToPresentation: [\n {\n op: { key: 'marketplace.product.list', version: 1 },\n pres: { key: 'marketplace.product.catalog', version: 1 },\n },\n {\n op: { key: 'marketplace.order.create', version: 1 },\n pres: { key: 'marketplace.checkout', version: 1 },\n },\n {\n op: { key: 'marketplace.payout.list', version: 1 },\n pres: { key: 'marketplace.payout.list', version: 1 },\n },\n {\n op: { key: 'marketplace.review.list', version: 1 },\n pres: { key: 'marketplace.review.list', version: 1 },\n },\n {\n op: { key: 'marketplace.review.create', version: 1 },\n pres: { key: 'marketplace.review.form', version: 1 },\n },\n ],\n\n presentationsTargets: [\n {\n key: 'marketplace.store.profile',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {
|
|
1
|
+
{"version":3,"file":"marketplace.feature.js","names":["MarketplaceFeature: FeatureModuleSpec"],"sources":["../src/marketplace.feature.ts"],"sourcesContent":["/**\n * Marketplace Feature Module Specification\n */\nimport type { FeatureModuleSpec } 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: FeatureModuleSpec = {\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":"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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema760 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/order/order.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Order status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const OrderStatusEnum:
|
|
7
|
+
declare const OrderStatusEnum: _contractspec_lib_schema760.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { OrderStatusEnum };
|
|
10
10
|
//# sourceMappingURL=order.enum.d.ts.map
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema783 from "@contractspec/lib.schema";
|
|
2
|
+
import * as _contractspec_lib_contracts4 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.event.d.ts
|
|
5
|
-
declare const OrderCreatedEvent:
|
|
5
|
+
declare const OrderCreatedEvent: _contractspec_lib_contracts4.EventSpec<_contractspec_lib_schema783.SchemaModel<{
|
|
6
6
|
orderId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
orderNumber: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
buyerId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
storeId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
total: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema783.FieldType<number, number>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
currency: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
itemCount: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema783.FieldType<number, number>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
timestamp: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema783.FieldType<Date, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
}>>;
|
|
39
|
-
declare const OrderPaidEvent:
|
|
39
|
+
declare const OrderPaidEvent: _contractspec_lib_contracts4.EventSpec<_contractspec_lib_schema783.SchemaModel<{
|
|
40
40
|
orderId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
orderNumber: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
total: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema783.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
paymentMethod: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
type:
|
|
57
|
+
type: _contractspec_lib_schema783.FieldType<Date, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
61
|
-
declare const OrderStatusUpdatedEvent:
|
|
61
|
+
declare const OrderStatusUpdatedEvent: _contractspec_lib_contracts4.EventSpec<_contractspec_lib_schema783.SchemaModel<{
|
|
62
62
|
orderId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
orderNumber: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
previousStatus: {
|
|
71
|
-
type:
|
|
71
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
newStatus: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
updatedBy: {
|
|
79
|
-
type:
|
|
79
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
timestamp: {
|
|
83
|
-
type:
|
|
83
|
+
type: _contractspec_lib_schema783.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const OrderShippedEvent:
|
|
87
|
+
declare const OrderShippedEvent: _contractspec_lib_contracts4.EventSpec<_contractspec_lib_schema783.SchemaModel<{
|
|
88
88
|
orderId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
orderNumber: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
trackingNumber: {
|
|
97
|
-
type:
|
|
97
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
trackingUrl: {
|
|
101
|
-
type:
|
|
101
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
102
102
|
isOptional: true;
|
|
103
103
|
};
|
|
104
104
|
carrier: {
|
|
105
|
-
type:
|
|
105
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
timestamp: {
|
|
109
|
-
type:
|
|
109
|
+
type: _contractspec_lib_schema783.FieldType<Date, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
}>>;
|
|
113
|
-
declare const OrderCompletedEvent:
|
|
113
|
+
declare const OrderCompletedEvent: _contractspec_lib_contracts4.EventSpec<_contractspec_lib_schema783.SchemaModel<{
|
|
114
114
|
orderId: {
|
|
115
|
-
type:
|
|
115
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
orderNumber: {
|
|
119
|
-
type:
|
|
119
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
buyerId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
storeId: {
|
|
127
|
-
type:
|
|
127
|
+
type: _contractspec_lib_schema783.FieldType<string, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
total: {
|
|
131
|
-
type:
|
|
131
|
+
type: _contractspec_lib_schema783.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
sellerPayout: {
|
|
135
|
-
type:
|
|
135
|
+
type: _contractspec_lib_schema783.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
timestamp: {
|
|
139
|
-
type:
|
|
139
|
+
type: _contractspec_lib_schema783.FieldType<Date, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
}>>;
|
|
@@ -158,7 +158,7 @@ const OrderCompletedPayload = defineSchemaModel({
|
|
|
158
158
|
const OrderCreatedEvent = defineEvent({
|
|
159
159
|
meta: {
|
|
160
160
|
key: "marketplace.order.created",
|
|
161
|
-
version: 1,
|
|
161
|
+
version: "1.0.0",
|
|
162
162
|
description: "A new order has been created.",
|
|
163
163
|
stability: "experimental",
|
|
164
164
|
owners: ["@marketplace-team"],
|
|
@@ -169,7 +169,7 @@ const OrderCreatedEvent = defineEvent({
|
|
|
169
169
|
const OrderPaidEvent = defineEvent({
|
|
170
170
|
meta: {
|
|
171
171
|
key: "marketplace.order.paid",
|
|
172
|
-
version: 1,
|
|
172
|
+
version: "1.0.0",
|
|
173
173
|
description: "An order has been paid.",
|
|
174
174
|
stability: "experimental",
|
|
175
175
|
owners: ["@marketplace-team"],
|
|
@@ -180,7 +180,7 @@ const OrderPaidEvent = defineEvent({
|
|
|
180
180
|
const OrderStatusUpdatedEvent = defineEvent({
|
|
181
181
|
meta: {
|
|
182
182
|
key: "marketplace.order.statusUpdated",
|
|
183
|
-
version: 1,
|
|
183
|
+
version: "1.0.0",
|
|
184
184
|
description: "An order status has been updated.",
|
|
185
185
|
stability: "experimental",
|
|
186
186
|
owners: ["@marketplace-team"],
|
|
@@ -191,7 +191,7 @@ const OrderStatusUpdatedEvent = defineEvent({
|
|
|
191
191
|
const OrderShippedEvent = defineEvent({
|
|
192
192
|
meta: {
|
|
193
193
|
key: "marketplace.order.shipped",
|
|
194
|
-
version: 1,
|
|
194
|
+
version: "1.0.0",
|
|
195
195
|
description: "An order has been shipped.",
|
|
196
196
|
stability: "experimental",
|
|
197
197
|
owners: ["@marketplace-team"],
|
|
@@ -202,7 +202,7 @@ const OrderShippedEvent = defineEvent({
|
|
|
202
202
|
const OrderCompletedEvent = defineEvent({
|
|
203
203
|
meta: {
|
|
204
204
|
key: "marketplace.order.completed",
|
|
205
|
-
version: 1,
|
|
205
|
+
version: "1.0.0",
|
|
206
206
|
description: "An order has been completed.",
|
|
207
207
|
stability: "experimental",
|
|
208
208
|
owners: ["@marketplace-team"],
|