@contractspec/example.marketplace 1.44.0 → 1.45.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 (70) hide show
  1. package/dist/entities/index.d.ts +296 -296
  2. package/dist/entities/order.d.ts +78 -78
  3. package/dist/entities/order.d.ts.map +1 -1
  4. package/dist/entities/payout.d.ts +65 -65
  5. package/dist/entities/product.d.ts +70 -70
  6. package/dist/entities/review.d.ts +56 -56
  7. package/dist/entities/store.d.ts +41 -41
  8. package/dist/entities/store.d.ts.map +1 -1
  9. package/dist/example.d.ts +3 -36
  10. package/dist/example.d.ts.map +1 -1
  11. package/dist/example.js +16 -11
  12. package/dist/example.js.map +1 -1
  13. package/dist/marketplace.feature.js +63 -63
  14. package/dist/marketplace.feature.js.map +1 -1
  15. package/dist/order/order.enum.d.ts +2 -2
  16. package/dist/order/order.enum.d.ts.map +1 -1
  17. package/dist/order/order.event.d.ts +39 -39
  18. package/dist/order/order.event.d.ts.map +1 -1
  19. package/dist/order/order.event.js +5 -5
  20. package/dist/order/order.event.js.map +1 -1
  21. package/dist/order/order.operations.d.ts +92 -92
  22. package/dist/order/order.operations.js +4 -4
  23. package/dist/order/order.operations.js.map +1 -1
  24. package/dist/order/order.presentation.js +3 -3
  25. package/dist/order/order.presentation.js.map +1 -1
  26. package/dist/order/order.schema.d.ts +39 -39
  27. package/dist/payout/payout.enum.d.ts +2 -2
  28. package/dist/payout/payout.event.d.ts +17 -17
  29. package/dist/payout/payout.event.js +2 -2
  30. package/dist/payout/payout.event.js.map +1 -1
  31. package/dist/payout/payout.operations.d.ts +24 -24
  32. package/dist/payout/payout.operations.d.ts.map +1 -1
  33. package/dist/payout/payout.operations.js +1 -1
  34. package/dist/payout/payout.operations.js.map +1 -1
  35. package/dist/payout/payout.presentation.js +2 -2
  36. package/dist/payout/payout.presentation.js.map +1 -1
  37. package/dist/payout/payout.schema.d.ts +37 -37
  38. package/dist/product/product.enum.d.ts +2 -2
  39. package/dist/product/product.event.d.ts +20 -20
  40. package/dist/product/product.event.js +3 -3
  41. package/dist/product/product.event.js.map +1 -1
  42. package/dist/product/product.operations.d.ts +68 -68
  43. package/dist/product/product.operations.js +3 -3
  44. package/dist/product/product.operations.js.map +1 -1
  45. package/dist/product/product.presentation.js +3 -3
  46. package/dist/product/product.presentation.js.map +1 -1
  47. package/dist/product/product.schema.d.ts +52 -52
  48. package/dist/review/review.enum.d.ts +2 -2
  49. package/dist/review/review.event.d.ts +14 -14
  50. package/dist/review/review.event.js +2 -2
  51. package/dist/review/review.event.js.map +1 -1
  52. package/dist/review/review.operations.d.ts +59 -59
  53. package/dist/review/review.operations.d.ts.map +1 -1
  54. package/dist/review/review.operations.js +3 -3
  55. package/dist/review/review.operations.js.map +1 -1
  56. package/dist/review/review.presentation.js +2 -2
  57. package/dist/review/review.presentation.js.map +1 -1
  58. package/dist/review/review.schema.d.ts +45 -45
  59. package/dist/review/review.schema.d.ts.map +1 -1
  60. package/dist/store/store.enum.d.ts +2 -2
  61. package/dist/store/store.enum.d.ts.map +1 -1
  62. package/dist/store/store.event.d.ts +13 -13
  63. package/dist/store/store.event.js +2 -2
  64. package/dist/store/store.event.js.map +1 -1
  65. package/dist/store/store.operations.d.ts +33 -33
  66. package/dist/store/store.operations.js +2 -2
  67. package/dist/store/store.operations.js.map +1 -1
  68. package/dist/store/store.presentation.js +2 -2
  69. package/dist/store/store.presentation.js.map +1 -1
  70. package/package.json +12 -12
@@ -1,82 +1,82 @@
1
- import * as _contractspec_lib_schema727 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema461 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/entities/review.d.ts
4
4
  /**
5
5
  * Review status enum.
6
6
  */
7
- declare const ReviewStatusEnum: _contractspec_lib_schema727.EntityEnumDef;
7
+ declare const ReviewStatusEnum: _contractspec_lib_schema461.EntityEnumDef;
8
8
  /**
9
9
  * Review type enum.
10
10
  */
11
- declare const ReviewTypeEnum: _contractspec_lib_schema727.EntityEnumDef;
11
+ declare const ReviewTypeEnum: _contractspec_lib_schema461.EntityEnumDef;
12
12
  /**
13
13
  * Review entity - customer reviews and ratings.
14
14
  */
15
- declare const ReviewEntity: _contractspec_lib_schema727.EntitySpec<{
16
- id: _contractspec_lib_schema727.EntityScalarField;
17
- type: _contractspec_lib_schema727.EntityEnumField;
18
- productId: _contractspec_lib_schema727.EntityScalarField;
19
- storeId: _contractspec_lib_schema727.EntityScalarField;
20
- orderId: _contractspec_lib_schema727.EntityScalarField;
21
- orderItemId: _contractspec_lib_schema727.EntityScalarField;
22
- authorId: _contractspec_lib_schema727.EntityScalarField;
23
- rating: _contractspec_lib_schema727.EntityScalarField;
24
- title: _contractspec_lib_schema727.EntityScalarField;
25
- content: _contractspec_lib_schema727.EntityScalarField;
26
- isVerifiedPurchase: _contractspec_lib_schema727.EntityScalarField;
27
- status: _contractspec_lib_schema727.EntityEnumField;
28
- hasMedia: _contractspec_lib_schema727.EntityScalarField;
29
- helpfulCount: _contractspec_lib_schema727.EntityScalarField;
30
- notHelpfulCount: _contractspec_lib_schema727.EntityScalarField;
31
- moderatedBy: _contractspec_lib_schema727.EntityScalarField;
32
- moderatedAt: _contractspec_lib_schema727.EntityScalarField;
33
- moderationNote: _contractspec_lib_schema727.EntityScalarField;
34
- hasResponse: _contractspec_lib_schema727.EntityScalarField;
35
- createdAt: _contractspec_lib_schema727.EntityScalarField;
36
- updatedAt: _contractspec_lib_schema727.EntityScalarField;
37
- product: _contractspec_lib_schema727.EntityRelationField;
38
- store: _contractspec_lib_schema727.EntityRelationField;
39
- responses: _contractspec_lib_schema727.EntityRelationField;
40
- votes: _contractspec_lib_schema727.EntityRelationField;
15
+ declare const ReviewEntity: _contractspec_lib_schema461.EntitySpec<{
16
+ id: _contractspec_lib_schema461.EntityScalarField;
17
+ type: _contractspec_lib_schema461.EntityEnumField;
18
+ productId: _contractspec_lib_schema461.EntityScalarField;
19
+ storeId: _contractspec_lib_schema461.EntityScalarField;
20
+ orderId: _contractspec_lib_schema461.EntityScalarField;
21
+ orderItemId: _contractspec_lib_schema461.EntityScalarField;
22
+ authorId: _contractspec_lib_schema461.EntityScalarField;
23
+ rating: _contractspec_lib_schema461.EntityScalarField;
24
+ title: _contractspec_lib_schema461.EntityScalarField;
25
+ content: _contractspec_lib_schema461.EntityScalarField;
26
+ isVerifiedPurchase: _contractspec_lib_schema461.EntityScalarField;
27
+ status: _contractspec_lib_schema461.EntityEnumField;
28
+ hasMedia: _contractspec_lib_schema461.EntityScalarField;
29
+ helpfulCount: _contractspec_lib_schema461.EntityScalarField;
30
+ notHelpfulCount: _contractspec_lib_schema461.EntityScalarField;
31
+ moderatedBy: _contractspec_lib_schema461.EntityScalarField;
32
+ moderatedAt: _contractspec_lib_schema461.EntityScalarField;
33
+ moderationNote: _contractspec_lib_schema461.EntityScalarField;
34
+ hasResponse: _contractspec_lib_schema461.EntityScalarField;
35
+ createdAt: _contractspec_lib_schema461.EntityScalarField;
36
+ updatedAt: _contractspec_lib_schema461.EntityScalarField;
37
+ product: _contractspec_lib_schema461.EntityRelationField;
38
+ store: _contractspec_lib_schema461.EntityRelationField;
39
+ responses: _contractspec_lib_schema461.EntityRelationField;
40
+ votes: _contractspec_lib_schema461.EntityRelationField;
41
41
  }>;
42
42
  /**
43
43
  * Review response entity - seller responses to reviews.
44
44
  */
45
- declare const ReviewResponseEntity: _contractspec_lib_schema727.EntitySpec<{
46
- id: _contractspec_lib_schema727.EntityScalarField;
47
- reviewId: _contractspec_lib_schema727.EntityScalarField;
48
- authorId: _contractspec_lib_schema727.EntityScalarField;
49
- content: _contractspec_lib_schema727.EntityScalarField;
50
- createdAt: _contractspec_lib_schema727.EntityScalarField;
51
- updatedAt: _contractspec_lib_schema727.EntityScalarField;
52
- review: _contractspec_lib_schema727.EntityRelationField;
45
+ declare const ReviewResponseEntity: _contractspec_lib_schema461.EntitySpec<{
46
+ id: _contractspec_lib_schema461.EntityScalarField;
47
+ reviewId: _contractspec_lib_schema461.EntityScalarField;
48
+ authorId: _contractspec_lib_schema461.EntityScalarField;
49
+ content: _contractspec_lib_schema461.EntityScalarField;
50
+ createdAt: _contractspec_lib_schema461.EntityScalarField;
51
+ updatedAt: _contractspec_lib_schema461.EntityScalarField;
52
+ review: _contractspec_lib_schema461.EntityRelationField;
53
53
  }>;
54
54
  /**
55
55
  * Review vote entity - helpfulness votes.
56
56
  */
57
- declare const ReviewVoteEntity: _contractspec_lib_schema727.EntitySpec<{
58
- id: _contractspec_lib_schema727.EntityScalarField;
59
- reviewId: _contractspec_lib_schema727.EntityScalarField;
60
- userId: _contractspec_lib_schema727.EntityScalarField;
61
- isHelpful: _contractspec_lib_schema727.EntityScalarField;
62
- createdAt: _contractspec_lib_schema727.EntityScalarField;
63
- review: _contractspec_lib_schema727.EntityRelationField;
57
+ declare const ReviewVoteEntity: _contractspec_lib_schema461.EntitySpec<{
58
+ id: _contractspec_lib_schema461.EntityScalarField;
59
+ reviewId: _contractspec_lib_schema461.EntityScalarField;
60
+ userId: _contractspec_lib_schema461.EntityScalarField;
61
+ isHelpful: _contractspec_lib_schema461.EntityScalarField;
62
+ createdAt: _contractspec_lib_schema461.EntityScalarField;
63
+ review: _contractspec_lib_schema461.EntityRelationField;
64
64
  }>;
65
65
  /**
66
66
  * Review report entity - flagged reviews.
67
67
  */
68
- declare const ReviewReportEntity: _contractspec_lib_schema727.EntitySpec<{
69
- id: _contractspec_lib_schema727.EntityScalarField;
70
- reviewId: _contractspec_lib_schema727.EntityScalarField;
71
- reporterId: _contractspec_lib_schema727.EntityScalarField;
72
- reason: _contractspec_lib_schema727.EntityScalarField;
73
- details: _contractspec_lib_schema727.EntityScalarField;
74
- status: _contractspec_lib_schema727.EntityScalarField;
75
- resolvedBy: _contractspec_lib_schema727.EntityScalarField;
76
- resolvedAt: _contractspec_lib_schema727.EntityScalarField;
77
- resolution: _contractspec_lib_schema727.EntityScalarField;
78
- createdAt: _contractspec_lib_schema727.EntityScalarField;
79
- review: _contractspec_lib_schema727.EntityRelationField;
68
+ declare const ReviewReportEntity: _contractspec_lib_schema461.EntitySpec<{
69
+ id: _contractspec_lib_schema461.EntityScalarField;
70
+ reviewId: _contractspec_lib_schema461.EntityScalarField;
71
+ reporterId: _contractspec_lib_schema461.EntityScalarField;
72
+ reason: _contractspec_lib_schema461.EntityScalarField;
73
+ details: _contractspec_lib_schema461.EntityScalarField;
74
+ status: _contractspec_lib_schema461.EntityScalarField;
75
+ resolvedBy: _contractspec_lib_schema461.EntityScalarField;
76
+ resolvedAt: _contractspec_lib_schema461.EntityScalarField;
77
+ resolution: _contractspec_lib_schema461.EntityScalarField;
78
+ createdAt: _contractspec_lib_schema461.EntityScalarField;
79
+ review: _contractspec_lib_schema461.EntityRelationField;
80
80
  }>;
81
81
  //#endregion
82
82
  export { ReviewEntity, ReviewReportEntity, ReviewResponseEntity, ReviewStatusEnum, ReviewTypeEnum, ReviewVoteEntity };
@@ -1,59 +1,59 @@
1
- import * as _contractspec_lib_schema18 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema538 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/entities/store.d.ts
4
4
  /**
5
5
  * Store status enum.
6
6
  */
7
- declare const StoreStatusEnum: _contractspec_lib_schema18.EntityEnumDef;
7
+ declare const StoreStatusEnum: _contractspec_lib_schema538.EntityEnumDef;
8
8
  /**
9
9
  * Store type enum.
10
10
  */
11
- declare const StoreTypeEnum: _contractspec_lib_schema18.EntityEnumDef;
11
+ declare const StoreTypeEnum: _contractspec_lib_schema538.EntityEnumDef;
12
12
  /**
13
13
  * Store entity - a seller's storefront on the marketplace.
14
14
  */
15
- declare const StoreEntity: _contractspec_lib_schema18.EntitySpec<{
16
- id: _contractspec_lib_schema18.EntityScalarField;
17
- name: _contractspec_lib_schema18.EntityScalarField;
18
- slug: _contractspec_lib_schema18.EntityScalarField;
19
- description: _contractspec_lib_schema18.EntityScalarField;
20
- status: _contractspec_lib_schema18.EntityEnumField;
21
- type: _contractspec_lib_schema18.EntityEnumField;
22
- ownerId: _contractspec_lib_schema18.EntityScalarField;
23
- organizationId: _contractspec_lib_schema18.EntityScalarField;
24
- logoFileId: _contractspec_lib_schema18.EntityScalarField;
25
- bannerFileId: _contractspec_lib_schema18.EntityScalarField;
26
- email: _contractspec_lib_schema18.EntityScalarField;
27
- phone: _contractspec_lib_schema18.EntityScalarField;
28
- website: _contractspec_lib_schema18.EntityScalarField;
29
- country: _contractspec_lib_schema18.EntityScalarField;
30
- currency: _contractspec_lib_schema18.EntityScalarField;
31
- timezone: _contractspec_lib_schema18.EntityScalarField;
32
- commissionRate: _contractspec_lib_schema18.EntityScalarField;
33
- isVerified: _contractspec_lib_schema18.EntityScalarField;
34
- verifiedAt: _contractspec_lib_schema18.EntityScalarField;
35
- settings: _contractspec_lib_schema18.EntityScalarField;
36
- metadata: _contractspec_lib_schema18.EntityScalarField;
37
- totalProducts: _contractspec_lib_schema18.EntityScalarField;
38
- totalOrders: _contractspec_lib_schema18.EntityScalarField;
39
- totalRevenue: _contractspec_lib_schema18.EntityScalarField;
40
- averageRating: _contractspec_lib_schema18.EntityScalarField;
41
- createdAt: _contractspec_lib_schema18.EntityScalarField;
42
- updatedAt: _contractspec_lib_schema18.EntityScalarField;
43
- products: _contractspec_lib_schema18.EntityRelationField;
44
- orders: _contractspec_lib_schema18.EntityRelationField;
45
- payouts: _contractspec_lib_schema18.EntityRelationField;
15
+ declare const StoreEntity: _contractspec_lib_schema538.EntitySpec<{
16
+ id: _contractspec_lib_schema538.EntityScalarField;
17
+ name: _contractspec_lib_schema538.EntityScalarField;
18
+ slug: _contractspec_lib_schema538.EntityScalarField;
19
+ description: _contractspec_lib_schema538.EntityScalarField;
20
+ status: _contractspec_lib_schema538.EntityEnumField;
21
+ type: _contractspec_lib_schema538.EntityEnumField;
22
+ ownerId: _contractspec_lib_schema538.EntityScalarField;
23
+ organizationId: _contractspec_lib_schema538.EntityScalarField;
24
+ logoFileId: _contractspec_lib_schema538.EntityScalarField;
25
+ bannerFileId: _contractspec_lib_schema538.EntityScalarField;
26
+ email: _contractspec_lib_schema538.EntityScalarField;
27
+ phone: _contractspec_lib_schema538.EntityScalarField;
28
+ website: _contractspec_lib_schema538.EntityScalarField;
29
+ country: _contractspec_lib_schema538.EntityScalarField;
30
+ currency: _contractspec_lib_schema538.EntityScalarField;
31
+ timezone: _contractspec_lib_schema538.EntityScalarField;
32
+ commissionRate: _contractspec_lib_schema538.EntityScalarField;
33
+ isVerified: _contractspec_lib_schema538.EntityScalarField;
34
+ verifiedAt: _contractspec_lib_schema538.EntityScalarField;
35
+ settings: _contractspec_lib_schema538.EntityScalarField;
36
+ metadata: _contractspec_lib_schema538.EntityScalarField;
37
+ totalProducts: _contractspec_lib_schema538.EntityScalarField;
38
+ totalOrders: _contractspec_lib_schema538.EntityScalarField;
39
+ totalRevenue: _contractspec_lib_schema538.EntityScalarField;
40
+ averageRating: _contractspec_lib_schema538.EntityScalarField;
41
+ createdAt: _contractspec_lib_schema538.EntityScalarField;
42
+ updatedAt: _contractspec_lib_schema538.EntityScalarField;
43
+ products: _contractspec_lib_schema538.EntityRelationField;
44
+ orders: _contractspec_lib_schema538.EntityRelationField;
45
+ payouts: _contractspec_lib_schema538.EntityRelationField;
46
46
  }>;
47
47
  /**
48
48
  * Store category entity - categorization for stores.
49
49
  */
50
- declare const StoreCategoryEntity: _contractspec_lib_schema18.EntitySpec<{
51
- id: _contractspec_lib_schema18.EntityScalarField;
52
- storeId: _contractspec_lib_schema18.EntityScalarField;
53
- categoryId: _contractspec_lib_schema18.EntityScalarField;
54
- isPrimary: _contractspec_lib_schema18.EntityScalarField;
55
- createdAt: _contractspec_lib_schema18.EntityScalarField;
56
- store: _contractspec_lib_schema18.EntityRelationField;
50
+ declare const StoreCategoryEntity: _contractspec_lib_schema538.EntitySpec<{
51
+ id: _contractspec_lib_schema538.EntityScalarField;
52
+ storeId: _contractspec_lib_schema538.EntityScalarField;
53
+ categoryId: _contractspec_lib_schema538.EntityScalarField;
54
+ isPrimary: _contractspec_lib_schema538.EntityScalarField;
55
+ createdAt: _contractspec_lib_schema538.EntityScalarField;
56
+ store: _contractspec_lib_schema538.EntityRelationField;
57
57
  }>;
58
58
  //#endregion
59
59
  export { StoreCategoryEntity, StoreEntity, StoreStatusEnum, StoreTypeEnum };
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","names":[],"sources":["../../src/entities/store.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,eAKX,EAAA,0BAAA,CAL0B,aAK1B;AAKF;AAUA;;cAVa,eAKX,0BAAA,CALwB;;;;cAUb,wCAAW;MA8EtB,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;6DA9EsB;EAAA,SAAA,8CAAA;EAmFX,SAAA,8CAkBX;EAAA,QAAA,gDAAA;;;;;;;AAlB8B,cAAnB,mBAAmB,6BAAA,UAAA,CAAA;MAkB9B,0BAAA,CAAA"}
1
+ {"version":3,"file":"store.d.ts","names":[],"sources":["../../src/entities/store.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,eAKX,EAAA,2BAAA,CAL0B,aAK1B;AAKF;AAUA;;cAVa,eAKX,2BAAA,CALwB;;;;cAUb,yCAAW;MA8EtB,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;8DA9EsB;EAAA,SAAA,+CAAA;EAmFX,SAAA,+CAkBX;EAAA,QAAA,iDAAA;;;;;;;AAlB8B,cAAnB,mBAAmB,8BAAA,UAAA,CAAA;MAkB9B,2BAAA,CAAA"}
package/dist/example.d.ts CHANGED
@@ -1,40 +1,7 @@
1
+ import { ExampleSpec } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.d.ts
2
- declare const example: {
3
- readonly id: "marketplace";
4
- readonly title: "Marketplace (2-sided)";
5
- readonly summary: "Two-sided marketplace with stores, products, orders, payouts, and reviews (multi-actor flows).";
6
- readonly tags: readonly ["marketplace", "orders", "payouts", "reviews"];
7
- readonly kind: "template";
8
- readonly visibility: "public";
9
- readonly docs: {
10
- readonly rootDocId: "docs.examples.marketplace";
11
- readonly goalDocId: "docs.examples.marketplace.goal";
12
- readonly usageDocId: "docs.examples.marketplace.usage";
13
- readonly constraintsDocId: "docs.examples.marketplace.constraints";
14
- };
15
- readonly entrypoints: {
16
- readonly packageName: "@contractspec/example.marketplace";
17
- readonly feature: "./feature";
18
- readonly contracts: "./contracts";
19
- readonly presentations: "./presentations";
20
- readonly handlers: "./handlers";
21
- readonly docs: "./docs";
22
- };
23
- readonly surfaces: {
24
- readonly templates: true;
25
- readonly sandbox: {
26
- readonly enabled: true;
27
- readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
28
- };
29
- readonly studio: {
30
- readonly enabled: true;
31
- readonly installable: true;
32
- };
33
- readonly mcp: {
34
- readonly enabled: true;
35
- };
36
- };
37
- };
4
+ declare const example: ExampleSpec;
38
5
  //#endregion
39
6
  export { example as default };
40
7
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA+BI,EAAA,aAAA"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
package/dist/example.js CHANGED
@@ -1,16 +1,21 @@
1
1
  //#region src/example.ts
2
2
  const example = {
3
- id: "marketplace",
4
- title: "Marketplace (2-sided)",
5
- summary: "Two-sided marketplace with stores, products, orders, payouts, and reviews (multi-actor flows).",
6
- tags: [
7
- "marketplace",
8
- "orders",
9
- "payouts",
10
- "reviews"
11
- ],
12
- kind: "template",
13
- visibility: "public",
3
+ meta: {
4
+ key: "marketplace",
5
+ version: "1.0.0",
6
+ title: "Marketplace (2-sided)",
7
+ description: "Two-sided marketplace with stores, products, orders, payouts, and reviews (multi-actor flows).",
8
+ kind: "template",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "marketplace",
14
+ "orders",
15
+ "payouts",
16
+ "reviews"
17
+ ]
18
+ },
14
19
  docs: {
15
20
  rootDocId: "docs.examples.marketplace",
16
21
  goalDocId: "docs.examples.marketplace.goal",
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'marketplace',\n title: 'Marketplace (2-sided)',\n summary:\n 'Two-sided marketplace with stores, products, orders, payouts, and reviews (multi-actor flows).',\n tags: ['marketplace', 'orders', 'payouts', 'reviews'],\n kind: 'template',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.marketplace',\n goalDocId: 'docs.examples.marketplace.goal',\n usageDocId: 'docs.examples.marketplace.usage',\n constraintsDocId: 'docs.examples.marketplace.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.marketplace',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAe;EAAU;EAAW;EAAU;CACrD,MAAM;CACN,YAAY;CACZ,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
1
+ {"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'marketplace',\n version: '1.0.0',\n title: 'Marketplace (2-sided)',\n description:\n 'Two-sided marketplace with stores, products, orders, payouts, and reviews (multi-actor flows).',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['marketplace', 'orders', 'payouts', 'reviews'],\n },\n docs: {\n rootDocId: 'docs.examples.marketplace',\n goalDocId: 'docs.examples.marketplace.goal',\n usageDocId: 'docs.examples.marketplace.usage',\n constraintsDocId: 'docs.examples.marketplace.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.marketplace',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAe;GAAU;GAAW;GAAU;EACtD;CACD,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}