@contractspec/example.marketplace 1.44.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 (152) 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 +40 -0
  33. package/dist/example.d.ts.map +1 -0
  34. package/dist/example.js +51 -0
  35. package/dist/example.js.map +1 -0
  36. package/dist/index.d.ts +26 -0
  37. package/dist/index.js +27 -0
  38. package/dist/marketplace.feature.d.ts +12 -0
  39. package/dist/marketplace.feature.d.ts.map +1 -0
  40. package/dist/marketplace.feature.js +310 -0
  41. package/dist/marketplace.feature.js.map +1 -0
  42. package/dist/order/index.d.ts +5 -0
  43. package/dist/order/index.js +6 -0
  44. package/dist/order/order.enum.d.ts +10 -0
  45. package/dist/order/order.enum.d.ts.map +1 -0
  46. package/dist/order/order.enum.js +22 -0
  47. package/dist/order/order.enum.js.map +1 -0
  48. package/dist/order/order.event.d.ts +145 -0
  49. package/dist/order/order.event.d.ts.map +1 -0
  50. package/dist/order/order.event.js +216 -0
  51. package/dist/order/order.event.js.map +1 -0
  52. package/dist/order/order.operations.d.ts +368 -0
  53. package/dist/order/order.operations.d.ts.map +1 -0
  54. package/dist/order/order.operations.js +119 -0
  55. package/dist/order/order.operations.js.map +1 -0
  56. package/dist/order/order.presentation.d.ts +9 -0
  57. package/dist/order/order.presentation.d.ts.map +1 -0
  58. package/dist/order/order.presentation.js +86 -0
  59. package/dist/order/order.presentation.js.map +1 -0
  60. package/dist/order/order.schema.d.ts +165 -0
  61. package/dist/order/order.schema.d.ts.map +1 -0
  62. package/dist/order/order.schema.js +155 -0
  63. package/dist/order/order.schema.js.map +1 -0
  64. package/dist/payout/index.d.ts +5 -0
  65. package/dist/payout/index.js +6 -0
  66. package/dist/payout/payout.enum.d.ts +10 -0
  67. package/dist/payout/payout.enum.d.ts.map +1 -0
  68. package/dist/payout/payout.enum.js +17 -0
  69. package/dist/payout/payout.enum.js.map +1 -0
  70. package/dist/payout/payout.event.d.ts +63 -0
  71. package/dist/payout/payout.event.d.ts.map +1 -0
  72. package/dist/payout/payout.event.js +92 -0
  73. package/dist/payout/payout.event.js.map +1 -0
  74. package/dist/payout/payout.operations.d.ts +97 -0
  75. package/dist/payout/payout.operations.d.ts.map +1 -0
  76. package/dist/payout/payout.operations.js +53 -0
  77. package/dist/payout/payout.operations.js.map +1 -0
  78. package/dist/payout/payout.presentation.d.ts +8 -0
  79. package/dist/payout/payout.presentation.d.ts.map +1 -0
  80. package/dist/payout/payout.presentation.js +60 -0
  81. package/dist/payout/payout.presentation.js.map +1 -0
  82. package/dist/payout/payout.schema.d.ts +157 -0
  83. package/dist/payout/payout.schema.d.ts.map +1 -0
  84. package/dist/payout/payout.schema.js +116 -0
  85. package/dist/payout/payout.schema.js.map +1 -0
  86. package/dist/product/index.d.ts +5 -0
  87. package/dist/product/index.js +6 -0
  88. package/dist/product/product.enum.d.ts +10 -0
  89. package/dist/product/product.enum.d.ts.map +1 -0
  90. package/dist/product/product.enum.js +18 -0
  91. package/dist/product/product.enum.js.map +1 -0
  92. package/dist/product/product.event.d.ts +73 -0
  93. package/dist/product/product.event.d.ts.map +1 -0
  94. package/dist/product/product.event.js +120 -0
  95. package/dist/product/product.event.js.map +1 -0
  96. package/dist/product/product.operations.d.ts +273 -0
  97. package/dist/product/product.operations.d.ts.map +1 -0
  98. package/dist/product/product.operations.js +108 -0
  99. package/dist/product/product.operations.js.map +1 -0
  100. package/dist/product/product.presentation.d.ts +9 -0
  101. package/dist/product/product.presentation.d.ts.map +1 -0
  102. package/dist/product/product.presentation.js +86 -0
  103. package/dist/product/product.presentation.js.map +1 -0
  104. package/dist/product/product.schema.d.ts +218 -0
  105. package/dist/product/product.schema.d.ts.map +1 -0
  106. package/dist/product/product.schema.js +176 -0
  107. package/dist/product/product.schema.js.map +1 -0
  108. package/dist/review/index.d.ts +5 -0
  109. package/dist/review/index.js +6 -0
  110. package/dist/review/review.enum.d.ts +10 -0
  111. package/dist/review/review.enum.d.ts.map +1 -0
  112. package/dist/review/review.enum.js +16 -0
  113. package/dist/review/review.enum.js.map +1 -0
  114. package/dist/review/review.event.d.ts +55 -0
  115. package/dist/review/review.event.d.ts.map +1 -0
  116. package/dist/review/review.event.js +84 -0
  117. package/dist/review/review.event.js.map +1 -0
  118. package/dist/review/review.operations.d.ts +237 -0
  119. package/dist/review/review.operations.d.ts.map +1 -0
  120. package/dist/review/review.operations.js +106 -0
  121. package/dist/review/review.operations.js.map +1 -0
  122. package/dist/review/review.presentation.d.ts +8 -0
  123. package/dist/review/review.presentation.d.ts.map +1 -0
  124. package/dist/review/review.presentation.js +60 -0
  125. package/dist/review/review.presentation.js.map +1 -0
  126. package/dist/review/review.schema.d.ts +190 -0
  127. package/dist/review/review.schema.d.ts.map +1 -0
  128. package/dist/review/review.schema.js +156 -0
  129. package/dist/review/review.schema.js.map +1 -0
  130. package/dist/store/index.d.ts +5 -0
  131. package/dist/store/index.js +6 -0
  132. package/dist/store/store.enum.d.ts +10 -0
  133. package/dist/store/store.enum.d.ts.map +1 -0
  134. package/dist/store/store.enum.js +16 -0
  135. package/dist/store/store.enum.js.map +1 -0
  136. package/dist/store/store.event.d.ts +51 -0
  137. package/dist/store/store.event.d.ts.map +1 -0
  138. package/dist/store/store.event.js +80 -0
  139. package/dist/store/store.event.js.map +1 -0
  140. package/dist/store/store.operations.d.ts +131 -0
  141. package/dist/store/store.operations.d.ts.map +1 -0
  142. package/dist/store/store.operations.js +61 -0
  143. package/dist/store/store.operations.js.map +1 -0
  144. package/dist/store/store.presentation.d.ts +8 -0
  145. package/dist/store/store.presentation.d.ts.map +1 -0
  146. package/dist/store/store.presentation.js +60 -0
  147. package/dist/store/store.presentation.js.map +1 -0
  148. package/dist/store/store.schema.d.ts +84 -0
  149. package/dist/store/store.schema.d.ts.map +1 -0
  150. package/dist/store/store.schema.js +93 -0
  151. package/dist/store/store.schema.js.map +1 -0
  152. package/package.json +141 -0
@@ -0,0 +1,110 @@
1
+ import { defineEntity, defineEntityEnum, field, index } from "@contractspec/lib.schema";
2
+
3
+ //#region src/entities/store.ts
4
+ /**
5
+ * Store status enum.
6
+ */
7
+ const StoreStatusEnum = defineEntityEnum({
8
+ name: "StoreStatus",
9
+ values: [
10
+ "PENDING",
11
+ "ACTIVE",
12
+ "SUSPENDED",
13
+ "CLOSED"
14
+ ],
15
+ schema: "marketplace",
16
+ description: "Status of a store."
17
+ });
18
+ /**
19
+ * Store type enum.
20
+ */
21
+ const StoreTypeEnum = defineEntityEnum({
22
+ name: "StoreType",
23
+ values: [
24
+ "INDIVIDUAL",
25
+ "BUSINESS",
26
+ "ENTERPRISE"
27
+ ],
28
+ schema: "marketplace",
29
+ description: "Type of store account."
30
+ });
31
+ /**
32
+ * Store entity - a seller's storefront on the marketplace.
33
+ */
34
+ const StoreEntity = defineEntity({
35
+ name: "Store",
36
+ description: "A seller storefront on the marketplace.",
37
+ schema: "marketplace",
38
+ map: "store",
39
+ fields: {
40
+ id: field.id({ description: "Unique store ID" }),
41
+ name: field.string({ description: "Store display name" }),
42
+ slug: field.string({ description: "URL-friendly identifier" }),
43
+ description: field.string({ isOptional: true }),
44
+ status: field.enum("StoreStatus", { default: "PENDING" }),
45
+ type: field.enum("StoreType", { default: "INDIVIDUAL" }),
46
+ ownerId: field.foreignKey({ description: "Store owner user ID" }),
47
+ organizationId: field.foreignKey({ isOptional: true }),
48
+ logoFileId: field.string({
49
+ isOptional: true,
50
+ description: "Logo file reference"
51
+ }),
52
+ bannerFileId: field.string({
53
+ isOptional: true,
54
+ description: "Banner file reference"
55
+ }),
56
+ email: field.string({ isOptional: true }),
57
+ phone: field.string({ isOptional: true }),
58
+ website: field.string({ isOptional: true }),
59
+ country: field.string({ isOptional: true }),
60
+ currency: field.string({ default: "\"USD\"" }),
61
+ timezone: field.string({ isOptional: true }),
62
+ commissionRate: field.decimal({
63
+ default: .1,
64
+ description: "Platform commission rate (e.g., 0.1 = 10%)"
65
+ }),
66
+ isVerified: field.boolean({ default: false }),
67
+ verifiedAt: field.dateTime({ isOptional: true }),
68
+ settings: field.json({ isOptional: true }),
69
+ metadata: field.json({ isOptional: true }),
70
+ totalProducts: field.int({ default: 0 }),
71
+ totalOrders: field.int({ default: 0 }),
72
+ totalRevenue: field.decimal({ default: 0 }),
73
+ averageRating: field.decimal({ default: 0 }),
74
+ createdAt: field.createdAt(),
75
+ updatedAt: field.updatedAt(),
76
+ products: field.hasMany("Product"),
77
+ orders: field.hasMany("Order"),
78
+ payouts: field.hasMany("Payout")
79
+ },
80
+ indexes: [
81
+ index.unique(["slug"]),
82
+ index.on(["ownerId"]),
83
+ index.on(["status"]),
84
+ index.on(["country", "status"]),
85
+ index.on(["averageRating"])
86
+ ],
87
+ enums: [StoreStatusEnum, StoreTypeEnum]
88
+ });
89
+ /**
90
+ * Store category entity - categorization for stores.
91
+ */
92
+ const StoreCategoryEntity = defineEntity({
93
+ name: "StoreCategory",
94
+ description: "Category assignment for stores.",
95
+ schema: "marketplace",
96
+ map: "store_category",
97
+ fields: {
98
+ id: field.id(),
99
+ storeId: field.foreignKey(),
100
+ categoryId: field.foreignKey(),
101
+ isPrimary: field.boolean({ default: false }),
102
+ createdAt: field.createdAt(),
103
+ store: field.belongsTo("Store", ["storeId"], ["id"], { onDelete: "Cascade" })
104
+ },
105
+ indexes: [index.unique(["storeId", "categoryId"]), index.on(["categoryId"])]
106
+ });
107
+
108
+ //#endregion
109
+ export { StoreCategoryEntity, StoreEntity, StoreStatusEnum, StoreTypeEnum };
110
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","names":[],"sources":["../../src/entities/store.ts"],"sourcesContent":["import {\n defineEntity,\n defineEntityEnum,\n field,\n index,\n} from '@contractspec/lib.schema';\n\n/**\n * Store status enum.\n */\nexport const StoreStatusEnum = defineEntityEnum({\n name: 'StoreStatus',\n values: ['PENDING', 'ACTIVE', 'SUSPENDED', 'CLOSED'] as const,\n schema: 'marketplace',\n description: 'Status of a store.',\n});\n\n/**\n * Store type enum.\n */\nexport const StoreTypeEnum = defineEntityEnum({\n name: 'StoreType',\n values: ['INDIVIDUAL', 'BUSINESS', 'ENTERPRISE'] as const,\n schema: 'marketplace',\n description: 'Type of store account.',\n});\n\n/**\n * Store entity - a seller's storefront on the marketplace.\n */\nexport const StoreEntity = defineEntity({\n name: 'Store',\n description: 'A seller storefront on the marketplace.',\n schema: 'marketplace',\n map: 'store',\n fields: {\n id: field.id({ description: 'Unique store ID' }),\n\n // Identity\n name: field.string({ description: 'Store display name' }),\n slug: field.string({ description: 'URL-friendly identifier' }),\n description: field.string({ isOptional: true }),\n\n // Status\n status: field.enum('StoreStatus', { default: 'PENDING' }),\n type: field.enum('StoreType', { default: 'INDIVIDUAL' }),\n\n // Owner\n ownerId: field.foreignKey({ description: 'Store owner user ID' }),\n organizationId: field.foreignKey({ isOptional: true }),\n\n // Branding\n logoFileId: field.string({\n isOptional: true,\n description: 'Logo file reference',\n }),\n bannerFileId: field.string({\n isOptional: true,\n description: 'Banner file reference',\n }),\n\n // Contact\n email: field.string({ isOptional: true }),\n phone: field.string({ isOptional: true }),\n website: field.string({ isOptional: true }),\n\n // Location\n country: field.string({ isOptional: true }),\n currency: field.string({ default: '\"USD\"' }),\n timezone: field.string({ isOptional: true }),\n\n // Commission\n commissionRate: field.decimal({\n default: 0.1,\n description: 'Platform commission rate (e.g., 0.1 = 10%)',\n }),\n\n // Verification\n isVerified: field.boolean({ default: false }),\n verifiedAt: field.dateTime({ isOptional: true }),\n\n // Settings\n settings: field.json({ isOptional: true }),\n metadata: field.json({ isOptional: true }),\n\n // Metrics (denormalized for performance)\n totalProducts: field.int({ default: 0 }),\n totalOrders: field.int({ default: 0 }),\n totalRevenue: field.decimal({ default: 0 }),\n averageRating: field.decimal({ default: 0 }),\n\n // Timestamps\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n\n // Relations\n products: field.hasMany('Product'),\n orders: field.hasMany('Order'),\n payouts: field.hasMany('Payout'),\n },\n indexes: [\n index.unique(['slug']),\n index.on(['ownerId']),\n index.on(['status']),\n index.on(['country', 'status']),\n index.on(['averageRating']),\n ],\n enums: [StoreStatusEnum, StoreTypeEnum],\n});\n\n/**\n * Store category entity - categorization for stores.\n */\nexport const StoreCategoryEntity = defineEntity({\n name: 'StoreCategory',\n description: 'Category assignment for stores.',\n schema: 'marketplace',\n map: 'store_category',\n fields: {\n id: field.id(),\n storeId: field.foreignKey(),\n categoryId: field.foreignKey(),\n isPrimary: field.boolean({ default: false }),\n createdAt: field.createdAt(),\n\n // Relations\n store: field.belongsTo('Store', ['storeId'], ['id'], {\n onDelete: 'Cascade',\n }),\n },\n indexes: [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AAG,CAAC,aAAa,CAAC,CAAC;CAC7E,CAAC"}
@@ -0,0 +1,40 @@
1
+ //#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
+ };
38
+ //#endregion
39
+ export { example as default };
40
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA+BI,EAAA,aAAA"}
@@ -0,0 +1,51 @@
1
+ //#region src/example.ts
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",
14
+ docs: {
15
+ rootDocId: "docs.examples.marketplace",
16
+ goalDocId: "docs.examples.marketplace.goal",
17
+ usageDocId: "docs.examples.marketplace.usage",
18
+ constraintsDocId: "docs.examples.marketplace.constraints"
19
+ },
20
+ entrypoints: {
21
+ packageName: "@contractspec/example.marketplace",
22
+ feature: "./feature",
23
+ contracts: "./contracts",
24
+ presentations: "./presentations",
25
+ handlers: "./handlers",
26
+ docs: "./docs"
27
+ },
28
+ surfaces: {
29
+ templates: true,
30
+ sandbox: {
31
+ enabled: true,
32
+ modes: [
33
+ "playground",
34
+ "specs",
35
+ "builder",
36
+ "markdown",
37
+ "evolution"
38
+ ]
39
+ },
40
+ studio: {
41
+ enabled: true,
42
+ installable: true
43
+ },
44
+ mcp: { enabled: true }
45
+ }
46
+ };
47
+ var example_default = example;
48
+
49
+ //#endregion
50
+ export { example_default as default };
51
+ //# sourceMappingURL=example.js.map
@@ -0,0 +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"}
@@ -0,0 +1,26 @@
1
+ import { StoreStatusEnum } from "./store/store.enum.js";
2
+ import { CreateStoreInputModel, StoreModel } from "./store/store.schema.js";
3
+ import { CreateStoreContract } from "./store/store.operations.js";
4
+ import { StoreCreatedEvent, StoreStatusChangedEvent } from "./store/store.event.js";
5
+ import "./store/index.js";
6
+ import { ProductStatusEnum } from "./product/product.enum.js";
7
+ import { CreateProductInputModel, ListProductsInputModel, ListProductsOutputModel, ProductModel } from "./product/product.schema.js";
8
+ import { CreateProductContract, ListProductsContract } from "./product/product.operations.js";
9
+ import { InventoryUpdatedEvent, ProductCreatedEvent, ProductPublishedEvent } from "./product/product.event.js";
10
+ import "./product/index.js";
11
+ import { OrderStatusEnum } from "./order/order.enum.js";
12
+ import { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel } from "./order/order.schema.js";
13
+ import { CreateOrderContract, UpdateOrderStatusContract } from "./order/order.operations.js";
14
+ import { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent } from "./order/order.event.js";
15
+ import "./order/index.js";
16
+ import { PayoutStatusEnum } from "./payout/payout.enum.js";
17
+ import { ListPayoutsInputModel, ListPayoutsOutputModel, PayoutModel } from "./payout/payout.schema.js";
18
+ import { ListPayoutsContract } from "./payout/payout.operations.js";
19
+ import { PayoutCreatedEvent, PayoutPaidEvent } from "./payout/payout.event.js";
20
+ import "./payout/index.js";
21
+ import { ReviewStatusEnum } from "./review/review.enum.js";
22
+ import { CreateReviewInputModel, ListReviewsInputModel, ListReviewsOutputModel, ReviewModel } from "./review/review.schema.js";
23
+ import { CreateReviewContract, ListReviewsContract } from "./review/review.operations.js";
24
+ import { ReviewCreatedEvent, ReviewRespondedEvent } from "./review/review.event.js";
25
+ import "./review/index.js";
26
+ export { CreateOrderContract, CreateOrderInputModel, CreateProductContract, CreateProductInputModel, CreateReviewContract, CreateReviewInputModel, CreateStoreContract, CreateStoreInputModel, InventoryUpdatedEvent, ListPayoutsContract, ListPayoutsInputModel, ListPayoutsOutputModel, ListProductsContract, ListProductsInputModel, ListProductsOutputModel, ListReviewsContract, ListReviewsInputModel, ListReviewsOutputModel, OrderCompletedEvent, OrderCreatedEvent, OrderItemModel, OrderModel, OrderPaidEvent, OrderShippedEvent, OrderStatusEnum, OrderStatusUpdatedEvent, PayoutCreatedEvent, PayoutModel, PayoutPaidEvent, PayoutStatusEnum, ProductCreatedEvent, ProductModel, ProductPublishedEvent, ProductStatusEnum, ReviewCreatedEvent, ReviewModel, ReviewRespondedEvent, ReviewStatusEnum, StoreCreatedEvent, StoreModel, StoreStatusChangedEvent, StoreStatusEnum, UpdateOrderStatusContract, UpdateOrderStatusInputModel };
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ import { StoreStatusEnum } from "./store/store.enum.js";
2
+ import { CreateStoreInputModel, StoreModel } from "./store/store.schema.js";
3
+ import { CreateStoreContract } from "./store/store.operations.js";
4
+ import { StoreCreatedEvent, StoreStatusChangedEvent } from "./store/store.event.js";
5
+ import "./store/index.js";
6
+ import { ProductStatusEnum } from "./product/product.enum.js";
7
+ import { CreateProductInputModel, ListProductsInputModel, ListProductsOutputModel, ProductModel } from "./product/product.schema.js";
8
+ import { CreateProductContract, ListProductsContract } from "./product/product.operations.js";
9
+ import { InventoryUpdatedEvent, ProductCreatedEvent, ProductPublishedEvent } from "./product/product.event.js";
10
+ import "./product/index.js";
11
+ import { OrderStatusEnum } from "./order/order.enum.js";
12
+ import { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel } from "./order/order.schema.js";
13
+ import { CreateOrderContract, UpdateOrderStatusContract } from "./order/order.operations.js";
14
+ import { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent } from "./order/order.event.js";
15
+ import "./order/index.js";
16
+ import { PayoutStatusEnum } from "./payout/payout.enum.js";
17
+ import { ListPayoutsInputModel, ListPayoutsOutputModel, PayoutModel } from "./payout/payout.schema.js";
18
+ import { ListPayoutsContract } from "./payout/payout.operations.js";
19
+ import { PayoutCreatedEvent, PayoutPaidEvent } from "./payout/payout.event.js";
20
+ import "./payout/index.js";
21
+ import { ReviewStatusEnum } from "./review/review.enum.js";
22
+ import { CreateReviewInputModel, ListReviewsInputModel, ListReviewsOutputModel, ReviewModel } from "./review/review.schema.js";
23
+ import { CreateReviewContract, ListReviewsContract } from "./review/review.operations.js";
24
+ import { ReviewCreatedEvent, ReviewRespondedEvent } from "./review/review.event.js";
25
+ import "./review/index.js";
26
+
27
+ export { CreateOrderContract, CreateOrderInputModel, CreateProductContract, CreateProductInputModel, CreateReviewContract, CreateReviewInputModel, CreateStoreContract, CreateStoreInputModel, InventoryUpdatedEvent, ListPayoutsContract, ListPayoutsInputModel, ListPayoutsOutputModel, ListProductsContract, ListProductsInputModel, ListProductsOutputModel, ListReviewsContract, ListReviewsInputModel, ListReviewsOutputModel, OrderCompletedEvent, OrderCreatedEvent, OrderItemModel, OrderModel, OrderPaidEvent, OrderShippedEvent, OrderStatusEnum, OrderStatusUpdatedEvent, PayoutCreatedEvent, PayoutModel, PayoutPaidEvent, PayoutStatusEnum, ProductCreatedEvent, ProductModel, ProductPublishedEvent, ProductStatusEnum, ReviewCreatedEvent, ReviewModel, ReviewRespondedEvent, ReviewStatusEnum, StoreCreatedEvent, StoreModel, StoreStatusChangedEvent, StoreStatusEnum, UpdateOrderStatusContract, UpdateOrderStatusInputModel };
@@ -0,0 +1,12 @@
1
+ import { FeatureModuleSpec } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/marketplace.feature.d.ts
4
+
5
+ /**
6
+ * Marketplace feature module that bundles multi-vendor marketplace
7
+ * capabilities including stores, products, orders, payouts, and reviews.
8
+ */
9
+ declare const MarketplaceFeature: FeatureModuleSpec;
10
+ //#endregion
11
+ export { MarketplaceFeature };
12
+ //# sourceMappingURL=marketplace.feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplace.feature.d.ts","names":[],"sources":["../src/marketplace.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;;cASa,oBAAoB"}
@@ -0,0 +1,310 @@
1
+ //#region src/marketplace.feature.ts
2
+ /**
3
+ * Marketplace feature module that bundles multi-vendor marketplace
4
+ * capabilities including stores, products, orders, payouts, and reviews.
5
+ */
6
+ const MarketplaceFeature = {
7
+ meta: {
8
+ key: "marketplace",
9
+ version: 1,
10
+ title: "Multi-Vendor Marketplace",
11
+ description: "Full-featured marketplace with stores, products, orders, payouts, and reviews",
12
+ domain: "marketplace",
13
+ owners: ["@marketplace-team"],
14
+ tags: [
15
+ "marketplace",
16
+ "ecommerce",
17
+ "multi-vendor",
18
+ "payments"
19
+ ],
20
+ stability: "experimental"
21
+ },
22
+ operations: [
23
+ {
24
+ key: "marketplace.store.create",
25
+ version: 1
26
+ },
27
+ {
28
+ key: "marketplace.product.create",
29
+ version: 1
30
+ },
31
+ {
32
+ key: "marketplace.product.list",
33
+ version: 1
34
+ },
35
+ {
36
+ key: "marketplace.order.create",
37
+ version: 1
38
+ },
39
+ {
40
+ key: "marketplace.order.updateStatus",
41
+ version: 1
42
+ },
43
+ {
44
+ key: "marketplace.payout.list",
45
+ version: 1
46
+ },
47
+ {
48
+ key: "marketplace.review.create",
49
+ version: 1
50
+ },
51
+ {
52
+ key: "marketplace.review.list",
53
+ version: 1
54
+ }
55
+ ],
56
+ events: [
57
+ {
58
+ key: "marketplace.store.created",
59
+ version: 1
60
+ },
61
+ {
62
+ key: "marketplace.store.statusChanged",
63
+ version: 1
64
+ },
65
+ {
66
+ key: "marketplace.product.created",
67
+ version: 1
68
+ },
69
+ {
70
+ key: "marketplace.product.published",
71
+ version: 1
72
+ },
73
+ {
74
+ key: "marketplace.inventory.updated",
75
+ version: 1
76
+ },
77
+ {
78
+ key: "marketplace.order.created",
79
+ version: 1
80
+ },
81
+ {
82
+ key: "marketplace.order.paid",
83
+ version: 1
84
+ },
85
+ {
86
+ key: "marketplace.order.statusUpdated",
87
+ version: 1
88
+ },
89
+ {
90
+ key: "marketplace.order.shipped",
91
+ version: 1
92
+ },
93
+ {
94
+ key: "marketplace.order.completed",
95
+ version: 1
96
+ },
97
+ {
98
+ key: "marketplace.payout.created",
99
+ version: 1
100
+ },
101
+ {
102
+ key: "marketplace.payout.paid",
103
+ version: 1
104
+ },
105
+ {
106
+ key: "marketplace.review.created",
107
+ version: 1
108
+ },
109
+ {
110
+ key: "marketplace.review.responded",
111
+ version: 1
112
+ }
113
+ ],
114
+ presentations: [
115
+ {
116
+ key: "marketplace.store.profile",
117
+ version: 1
118
+ },
119
+ {
120
+ key: "marketplace.seller.dashboard",
121
+ version: 1
122
+ },
123
+ {
124
+ key: "marketplace.product.catalog",
125
+ version: 1
126
+ },
127
+ {
128
+ key: "marketplace.product.detail",
129
+ version: 1
130
+ },
131
+ {
132
+ key: "marketplace.product.editor",
133
+ version: 1
134
+ },
135
+ {
136
+ key: "marketplace.order.list",
137
+ version: 1
138
+ },
139
+ {
140
+ key: "marketplace.order.detail",
141
+ version: 1
142
+ },
143
+ {
144
+ key: "marketplace.checkout",
145
+ version: 1
146
+ },
147
+ {
148
+ key: "marketplace.payout.list",
149
+ version: 1
150
+ },
151
+ {
152
+ key: "marketplace.payout.detail",
153
+ version: 1
154
+ },
155
+ {
156
+ key: "marketplace.review.list",
157
+ version: 1
158
+ },
159
+ {
160
+ key: "marketplace.review.form",
161
+ version: 1
162
+ }
163
+ ],
164
+ opToPresentation: [
165
+ {
166
+ op: {
167
+ key: "marketplace.product.list",
168
+ version: 1
169
+ },
170
+ pres: {
171
+ key: "marketplace.product.catalog",
172
+ version: 1
173
+ }
174
+ },
175
+ {
176
+ op: {
177
+ key: "marketplace.order.create",
178
+ version: 1
179
+ },
180
+ pres: {
181
+ key: "marketplace.checkout",
182
+ version: 1
183
+ }
184
+ },
185
+ {
186
+ op: {
187
+ key: "marketplace.payout.list",
188
+ version: 1
189
+ },
190
+ pres: {
191
+ key: "marketplace.payout.list",
192
+ version: 1
193
+ }
194
+ },
195
+ {
196
+ op: {
197
+ key: "marketplace.review.list",
198
+ version: 1
199
+ },
200
+ pres: {
201
+ key: "marketplace.review.list",
202
+ version: 1
203
+ }
204
+ },
205
+ {
206
+ op: {
207
+ key: "marketplace.review.create",
208
+ version: 1
209
+ },
210
+ pres: {
211
+ key: "marketplace.review.form",
212
+ version: 1
213
+ }
214
+ }
215
+ ],
216
+ presentationsTargets: [
217
+ {
218
+ key: "marketplace.store.profile",
219
+ version: 1,
220
+ targets: ["react", "markdown"]
221
+ },
222
+ {
223
+ key: "marketplace.seller.dashboard",
224
+ version: 1,
225
+ targets: ["react"]
226
+ },
227
+ {
228
+ key: "marketplace.product.catalog",
229
+ version: 1,
230
+ targets: ["react", "markdown"]
231
+ },
232
+ {
233
+ key: "marketplace.product.detail",
234
+ version: 1,
235
+ targets: ["react", "markdown"]
236
+ },
237
+ {
238
+ key: "marketplace.product.editor",
239
+ version: 1,
240
+ targets: ["react"]
241
+ },
242
+ {
243
+ key: "marketplace.order.list",
244
+ version: 1,
245
+ targets: ["react", "markdown"]
246
+ },
247
+ {
248
+ key: "marketplace.order.detail",
249
+ version: 1,
250
+ targets: ["react", "markdown"]
251
+ },
252
+ {
253
+ key: "marketplace.checkout",
254
+ version: 1,
255
+ targets: ["react"]
256
+ },
257
+ {
258
+ key: "marketplace.payout.list",
259
+ version: 1,
260
+ targets: ["react", "markdown"]
261
+ },
262
+ {
263
+ key: "marketplace.review.list",
264
+ version: 1,
265
+ targets: ["react", "markdown"]
266
+ }
267
+ ],
268
+ capabilities: {
269
+ requires: [
270
+ {
271
+ key: "identity",
272
+ version: 1
273
+ },
274
+ {
275
+ key: "audit-trail",
276
+ version: 1
277
+ },
278
+ {
279
+ key: "notifications",
280
+ version: 1
281
+ },
282
+ {
283
+ key: "files",
284
+ version: 1
285
+ },
286
+ {
287
+ key: "metering",
288
+ version: 1
289
+ }
290
+ ],
291
+ provides: [
292
+ {
293
+ key: "marketplace",
294
+ version: 1
295
+ },
296
+ {
297
+ key: "ecommerce",
298
+ version: 1
299
+ },
300
+ {
301
+ key: "payments",
302
+ version: 1
303
+ }
304
+ ]
305
+ }
306
+ };
307
+
308
+ //#endregion
309
+ export { MarketplaceFeature };
310
+ //# sourceMappingURL=marketplace.feature.js.map
@@ -0,0 +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 { key: 'marketplace.seller.dashboard', version: 1, targets: ['react'] },\n {\n key: 'marketplace.product.catalog',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n key: 'marketplace.product.detail',\n version: 1,\n targets: ['react', 'markdown'],\n },\n { key: 'marketplace.product.editor', version: 1, targets: ['react'] },\n {\n key: 'marketplace.order.list',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n key: 'marketplace.order.detail',\n version: 1,\n targets: ['react', 'markdown'],\n },\n { key: 'marketplace.checkout', version: 1, targets: ['react'] },\n {\n key: 'marketplace.payout.list',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n key: 'marketplace.review.list',\n version: 1,\n targets: ['react', 'markdown'],\n },\n ],\n\n capabilities: {\n requires: [\n { key: 'identity', version: 1 },\n { key: 'audit-trail', version: 1 },\n { key: 'notifications', version: 1 },\n { key: 'files', version: 1 },\n { key: 'metering', version: 1 },\n ],\n provides: [\n { key: 'marketplace', version: 1 },\n { key: 'ecommerce', version: 1 },\n { key: 'payments', version: 1 },\n ],\n },\n};\n"],"mappings":";;;;;AASA,MAAaA,qBAAwC;CACnD,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;GAAG;EAG/C;GAAE,KAAK;GAA8B,SAAS;GAAG;EACjD;GAAE,KAAK;GAA4B,SAAS;GAAG;EAG/C;GAAE,KAAK;GAA4B,SAAS;GAAG;EAC/C;GAAE,KAAK;GAAkC,SAAS;GAAG;EAGrD;GAAE,KAAK;GAA2B,SAAS;GAAG;EAG9C;GAAE,KAAK;GAA6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K;IAAe,SAAS;IAAG;GAClC;IAAE,KAAK;IAAa,SAAS;IAAG;GAChC;IAAE,KAAK;IAAY,SAAS;IAAG;GAChC;EACF;CACF"}
@@ -0,0 +1,5 @@
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
+ 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_schema58 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_schema58.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,0BAAA,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"}