@lssm/example.marketplace 0.0.0-canary-20251212230121 → 0.0.0-canary-20251213172311

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.
@@ -0,0 +1 @@
1
+ var e={id:`marketplace`,title:`Marketplace (2-sided)`,summary:`Two-sided marketplace with stores, products, orders, payouts, and reviews (multi-actor flows).`,tags:[`marketplace`,`orders`,`payouts`,`reviews`],kind:`template`,visibility:`public`,docs:{rootDocId:`docs.examples.marketplace`,goalDocId:`docs.examples.marketplace.goal`,usageDocId:`docs.examples.marketplace.usage`,constraintsDocId:`docs.examples.marketplace.constraints`},entrypoints:{packageName:`@lssm/example.marketplace`,feature:`./feature`,contracts:`./contracts`,presentations:`./presentations`,handlers:`./handlers`,docs:`./docs`},surfaces:{templates:!0,sandbox:{enabled:!0,modes:[`playground`,`specs`,`builder`,`markdown`,`evolution`]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}};export{e as default};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{InventoryUpdatedEvent as e,MarketplaceEvents as t,OrderCompletedEvent as n,OrderCreatedEvent as r,OrderPaidEvent as i,OrderShippedEvent as a,OrderStatusUpdatedEvent as o,PayoutCreatedEvent as s,PayoutPaidEvent as c,ProductCreatedEvent as l,ProductPublishedEvent as u,ReviewCreatedEvent as d,ReviewRespondedEvent as f,StoreCreatedEvent as p,StoreStatusChangedEvent as m}from"./events.js";import{MarketplaceFeature as h}from"./feature.js";import{StoreCategoryEntity as g,StoreEntity as _,StoreStatusEnum as v,StoreTypeEnum as y}from"./entities/store.js";import{CategoryEntity as b,ProductEntity as x,ProductStatusEnum as S,ProductTypeEnum as C,ProductVariantEntity as w}from"./entities/product.js";import{OrderEntity as T,OrderItemEntity as E,OrderStatusEnum as D,PaymentStatusEnum as O,RefundEntity as k,RefundItemEntity as A}from"./entities/order.js";import{BankAccountEntity as j,PayoutEntity as M,PayoutItemEntity as N,PayoutScheduleEnum as P,PayoutSettingsEntity as F,PayoutStatusEnum as I}from"./entities/payout.js";import{ReviewEntity as L,ReviewReportEntity as R,ReviewResponseEntity as z,ReviewStatusEnum as B,ReviewTypeEnum as V,ReviewVoteEntity as H}from"./entities/review.js";import{marketplaceEntities as U,marketplaceSchemaContribution as W}from"./entities/index.js";import{CreateOrderContract as G,CreateOrderInputModel as K,CreateProductContract as q,CreateProductInputModel as J,CreateReviewContract as Y,CreateReviewInputModel as X,CreateStoreContract as Z,CreateStoreInputModel as Q,ListPayoutsContract as $,ListPayoutsInputModel as ee,ListPayoutsOutputModel as te,ListProductsContract as ne,ListProductsInputModel as re,ListProductsOutputModel as ie,ListReviewsContract as ae,ListReviewsInputModel as oe,ListReviewsOutputModel as se,OrderItemModel as ce,OrderModel as le,PayoutModel as ue,ProductModel as de,ReviewModel as fe,StoreModel as pe,UpdateOrderStatusContract as me,UpdateOrderStatusInputModel as he}from"./contracts/index.js";import{calculateCommission as ge,calculateRatingStats as _e,generateOrderNumber as ve,generatePayoutNumber as ye,handleCreateOrder as be,handleCreateProduct as xe,handleCreateReview as Se,handleCreateStore as Ce,mockMarketplaceStore as we}from"./handlers/index.js";import{CheckoutPresentation as Te,MarketplacePresentations as Ee,OrderDetailPresentation as De,OrderListPresentation as Oe,PayoutDetailPresentation as ke,PayoutListPresentation as Ae,ProductCatalogPresentation as je,ProductDetailPresentation as Me,ProductEditorPresentation as Ne,ReviewFormPresentation as Pe,ReviewListPresentation as Fe,SellerDashboardPresentation as Ie,StoreProfilePresentation as Le}from"./presentations/index.js";import"./docs/index.js";import{identityRbacSchemaContribution as Re}from"@lssm/lib.identity-rbac";import{auditTrailSchemaContribution as ze}from"@lssm/module.audit-trail";import{notificationsSchemaContribution as Be}from"@lssm/module.notifications";import{filesSchemaContribution as Ve}from"@lssm/lib.files";import{meteringSchemaContribution as He}from"@lssm/lib.metering";const Ue={modules:[Re,ze,Be,Ve,He,W],provider:`postgresql`,outputPath:`./prisma/schema/generated.prisma`};export{j as BankAccountEntity,b as CategoryEntity,Te as CheckoutPresentation,G as CreateOrderContract,K as CreateOrderInputModel,q as CreateProductContract,J as CreateProductInputModel,Y as CreateReviewContract,X as CreateReviewInputModel,Z as CreateStoreContract,Q as CreateStoreInputModel,e as InventoryUpdatedEvent,$ as ListPayoutsContract,ee as ListPayoutsInputModel,te as ListPayoutsOutputModel,ne as ListProductsContract,re as ListProductsInputModel,ie as ListProductsOutputModel,ae as ListReviewsContract,oe as ListReviewsInputModel,se as ListReviewsOutputModel,t as MarketplaceEvents,h as MarketplaceFeature,Ee as MarketplacePresentations,n as OrderCompletedEvent,r as OrderCreatedEvent,De as OrderDetailPresentation,T as OrderEntity,E as OrderItemEntity,ce as OrderItemModel,Oe as OrderListPresentation,le as OrderModel,i as OrderPaidEvent,a as OrderShippedEvent,D as OrderStatusEnum,o as OrderStatusUpdatedEvent,O as PaymentStatusEnum,s as PayoutCreatedEvent,ke as PayoutDetailPresentation,M as PayoutEntity,N as PayoutItemEntity,Ae as PayoutListPresentation,ue as PayoutModel,c as PayoutPaidEvent,P as PayoutScheduleEnum,F as PayoutSettingsEntity,I as PayoutStatusEnum,je as ProductCatalogPresentation,l as ProductCreatedEvent,Me as ProductDetailPresentation,Ne as ProductEditorPresentation,x as ProductEntity,de as ProductModel,u as ProductPublishedEvent,S as ProductStatusEnum,C as ProductTypeEnum,w as ProductVariantEntity,k as RefundEntity,A as RefundItemEntity,d as ReviewCreatedEvent,L as ReviewEntity,Pe as ReviewFormPresentation,Fe as ReviewListPresentation,fe as ReviewModel,R as ReviewReportEntity,f as ReviewRespondedEvent,z as ReviewResponseEntity,B as ReviewStatusEnum,V as ReviewTypeEnum,H as ReviewVoteEntity,Ie as SellerDashboardPresentation,g as StoreCategoryEntity,p as StoreCreatedEvent,_ as StoreEntity,pe as StoreModel,Le as StoreProfilePresentation,m as StoreStatusChangedEvent,v as StoreStatusEnum,y as StoreTypeEnum,me as UpdateOrderStatusContract,he as UpdateOrderStatusInputModel,ge as calculateCommission,_e as calculateRatingStats,ve as generateOrderNumber,ye as generatePayoutNumber,be as handleCreateOrder,xe as handleCreateProduct,Se as handleCreateReview,Ce as handleCreateStore,U as marketplaceEntities,W as marketplaceSchemaContribution,we as mockMarketplaceStore,Ue as schemaComposition};
1
+ import{InventoryUpdatedEvent as e,MarketplaceEvents as t,OrderCompletedEvent as n,OrderCreatedEvent as r,OrderPaidEvent as i,OrderShippedEvent as a,OrderStatusUpdatedEvent as o,PayoutCreatedEvent as s,PayoutPaidEvent as c,ProductCreatedEvent as l,ProductPublishedEvent as u,ReviewCreatedEvent as d,ReviewRespondedEvent as f,StoreCreatedEvent as p,StoreStatusChangedEvent as m}from"./events.js";import h from"./example.js";import{MarketplaceFeature as g}from"./feature.js";import{StoreCategoryEntity as _,StoreEntity as v,StoreStatusEnum as y,StoreTypeEnum as b}from"./entities/store.js";import{CategoryEntity as x,ProductEntity as S,ProductStatusEnum as C,ProductTypeEnum as w,ProductVariantEntity as T}from"./entities/product.js";import{OrderEntity as E,OrderItemEntity as D,OrderStatusEnum as O,PaymentStatusEnum as k,RefundEntity as A,RefundItemEntity as j}from"./entities/order.js";import{BankAccountEntity as M,PayoutEntity as N,PayoutItemEntity as P,PayoutScheduleEnum as F,PayoutSettingsEntity as I,PayoutStatusEnum as L}from"./entities/payout.js";import{ReviewEntity as R,ReviewReportEntity as z,ReviewResponseEntity as B,ReviewStatusEnum as V,ReviewTypeEnum as H,ReviewVoteEntity as U}from"./entities/review.js";import{marketplaceEntities as W,marketplaceSchemaContribution as G}from"./entities/index.js";import{CreateOrderContract as K,CreateOrderInputModel as q,CreateProductContract as J,CreateProductInputModel as Y,CreateReviewContract as X,CreateReviewInputModel as Z,CreateStoreContract as Q,CreateStoreInputModel as $,ListPayoutsContract as ee,ListPayoutsInputModel as te,ListPayoutsOutputModel as ne,ListProductsContract as re,ListProductsInputModel as ie,ListProductsOutputModel as ae,ListReviewsContract as oe,ListReviewsInputModel as se,ListReviewsOutputModel as ce,OrderItemModel as le,OrderModel as ue,PayoutModel as de,ProductModel as fe,ReviewModel as pe,StoreModel as me,UpdateOrderStatusContract as he,UpdateOrderStatusInputModel as ge}from"./contracts/index.js";import{calculateCommission as _e,calculateRatingStats as ve,generateOrderNumber as ye,generatePayoutNumber as be,handleCreateOrder as xe,handleCreateProduct as Se,handleCreateReview as Ce,handleCreateStore as we,mockMarketplaceStore as Te}from"./handlers/index.js";import{CheckoutPresentation as Ee,MarketplacePresentations as De,OrderDetailPresentation as Oe,OrderListPresentation as ke,PayoutDetailPresentation as Ae,PayoutListPresentation as je,ProductCatalogPresentation as Me,ProductDetailPresentation as Ne,ProductEditorPresentation as Pe,ReviewFormPresentation as Fe,ReviewListPresentation as Ie,SellerDashboardPresentation as Le,StoreProfilePresentation as Re}from"./presentations/index.js";import"./docs/index.js";import{identityRbacSchemaContribution as ze}from"@lssm/lib.identity-rbac";import{auditTrailSchemaContribution as Be}from"@lssm/module.audit-trail";import{notificationsSchemaContribution as Ve}from"@lssm/module.notifications";import{filesSchemaContribution as He}from"@lssm/lib.files";import{meteringSchemaContribution as Ue}from"@lssm/lib.metering";const We={modules:[ze,Be,Ve,He,Ue,G],provider:`postgresql`,outputPath:`./prisma/schema/generated.prisma`};export{M as BankAccountEntity,x as CategoryEntity,Ee as CheckoutPresentation,K as CreateOrderContract,q as CreateOrderInputModel,J as CreateProductContract,Y as CreateProductInputModel,X as CreateReviewContract,Z as CreateReviewInputModel,Q as CreateStoreContract,$ as CreateStoreInputModel,e as InventoryUpdatedEvent,ee as ListPayoutsContract,te as ListPayoutsInputModel,ne as ListPayoutsOutputModel,re as ListProductsContract,ie as ListProductsInputModel,ae as ListProductsOutputModel,oe as ListReviewsContract,se as ListReviewsInputModel,ce as ListReviewsOutputModel,t as MarketplaceEvents,g as MarketplaceFeature,De as MarketplacePresentations,n as OrderCompletedEvent,r as OrderCreatedEvent,Oe as OrderDetailPresentation,E as OrderEntity,D as OrderItemEntity,le as OrderItemModel,ke as OrderListPresentation,ue as OrderModel,i as OrderPaidEvent,a as OrderShippedEvent,O as OrderStatusEnum,o as OrderStatusUpdatedEvent,k as PaymentStatusEnum,s as PayoutCreatedEvent,Ae as PayoutDetailPresentation,N as PayoutEntity,P as PayoutItemEntity,je as PayoutListPresentation,de as PayoutModel,c as PayoutPaidEvent,F as PayoutScheduleEnum,I as PayoutSettingsEntity,L as PayoutStatusEnum,Me as ProductCatalogPresentation,l as ProductCreatedEvent,Ne as ProductDetailPresentation,Pe as ProductEditorPresentation,S as ProductEntity,fe as ProductModel,u as ProductPublishedEvent,C as ProductStatusEnum,w as ProductTypeEnum,T as ProductVariantEntity,A as RefundEntity,j as RefundItemEntity,d as ReviewCreatedEvent,R as ReviewEntity,Fe as ReviewFormPresentation,Ie as ReviewListPresentation,pe as ReviewModel,z as ReviewReportEntity,f as ReviewRespondedEvent,B as ReviewResponseEntity,V as ReviewStatusEnum,H as ReviewTypeEnum,U as ReviewVoteEntity,Le as SellerDashboardPresentation,_ as StoreCategoryEntity,p as StoreCreatedEvent,v as StoreEntity,me as StoreModel,Re as StoreProfilePresentation,m as StoreStatusChangedEvent,y as StoreStatusEnum,b as StoreTypeEnum,he as UpdateOrderStatusContract,ge as UpdateOrderStatusInputModel,_e as calculateCommission,ve as calculateRatingStats,h as example,ye as generateOrderNumber,be as generatePayoutNumber,xe as handleCreateOrder,Se as handleCreateProduct,Ce as handleCreateReview,we as handleCreateStore,W as marketplaceEntities,G as marketplaceSchemaContribution,Te as mockMarketplaceStore,We as schemaComposition};