@lssm/example.marketplace 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217072406

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 (189) hide show
  1. package/dist/docs/index.js +1 -1
  2. package/dist/docs/marketplace.docblock.js +61 -5
  3. package/dist/entities/index.d.ts +296 -296
  4. package/dist/entities/index.js +45 -1
  5. package/dist/entities/order.d.ts +78 -78
  6. package/dist/entities/order.js +173 -1
  7. package/dist/entities/payout.d.ts +65 -65
  8. package/dist/entities/payout.js +162 -1
  9. package/dist/entities/product.d.ts +70 -70
  10. package/dist/entities/product.js +161 -1
  11. package/dist/entities/review.d.ts +56 -56
  12. package/dist/entities/review.js +152 -1
  13. package/dist/entities/store.d.ts +41 -41
  14. package/dist/entities/store.js +110 -1
  15. package/dist/example.js +50 -1
  16. package/dist/index.js +27 -1
  17. package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -1
  18. package/dist/libs/contracts/dist/client/index.js +5 -1
  19. package/dist/libs/contracts/dist/client/react/feature-render.js +2 -1
  20. package/dist/libs/contracts/dist/client/react/form-render.js +4 -1
  21. package/dist/libs/contracts/dist/client/react/index.js +4 -1
  22. package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
  23. package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -1
  24. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -76
  25. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -350
  26. package/dist/libs/contracts/dist/docs/index.js +29 -1
  27. package/dist/libs/contracts/dist/docs/presentations.js +71 -1
  28. package/dist/libs/contracts/dist/docs/registry.js +44 -1
  29. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -383
  30. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -68
  31. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -140
  32. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -86
  33. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -1
  34. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +24 -2
  35. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +21 -2
  36. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -213
  37. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +73 -5
  38. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -1
  39. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -1
  40. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -262
  41. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -1
  42. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +24 -2
  43. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +23 -2
  44. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +25 -16
  45. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -1
  46. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +22 -2
  47. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +40 -36
  48. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -1
  49. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +23 -2
  50. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +36 -3
  51. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -1
  52. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +36 -3
  53. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -1
  54. package/dist/libs/contracts/dist/events.js +10 -1
  55. package/dist/libs/contracts/dist/experiments/evaluator.js +1 -1
  56. package/dist/libs/contracts/dist/index.js +71 -1
  57. package/dist/libs/contracts/dist/install.js +2 -1
  58. package/dist/libs/contracts/dist/integrations/contracts.js +377 -1
  59. package/dist/libs/contracts/dist/integrations/index.js +18 -1
  60. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -1
  61. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -1
  62. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -1
  63. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -1
  64. package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -1
  65. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -1
  66. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -1
  67. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -1
  68. package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -1
  69. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -1
  70. package/dist/libs/contracts/dist/integrations/providers/index.js +11 -1
  71. package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -1
  72. package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -1
  73. package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -1
  74. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -1
  75. package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -1
  76. package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -1
  77. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -1
  78. package/dist/libs/contracts/dist/jsonschema.js +1 -1
  79. package/dist/libs/contracts/dist/knowledge/contracts.js +306 -1
  80. package/dist/libs/contracts/dist/knowledge/index.js +7 -1
  81. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -1
  82. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -1
  83. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -1
  84. package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -1
  85. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -1
  86. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -1
  87. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -1
  88. package/dist/libs/contracts/dist/llm/exporters.js +19 -1
  89. package/dist/libs/contracts/dist/llm/index.js +2 -1
  90. package/dist/libs/contracts/dist/llm/prompts.js +1 -1
  91. package/dist/libs/contracts/dist/onboarding-base.js +196 -1
  92. package/dist/libs/contracts/dist/openapi.js +1 -1
  93. package/dist/libs/contracts/dist/ownership.js +21 -1
  94. package/dist/libs/contracts/dist/presentations.js +1 -1
  95. package/dist/libs/contracts/dist/presentations.v2.js +11 -1
  96. package/dist/libs/contracts/dist/prompt.js +1 -1
  97. package/dist/libs/contracts/dist/promptRegistry.js +1 -1
  98. package/dist/libs/contracts/dist/regenerator/index.js +1 -1
  99. package/dist/libs/contracts/dist/regenerator/service.js +6 -1
  100. package/dist/libs/contracts/dist/registry.js +2 -1
  101. package/dist/libs/contracts/dist/resources.js +1 -1
  102. package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -1
  103. package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -1
  104. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -1
  105. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +34 -1
  106. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -1
  107. package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -1
  108. package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -1
  109. package/dist/libs/contracts/dist/schema/dist/index.js +6 -1
  110. package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -1
  111. package/dist/libs/contracts/dist/server/index.js +8 -1
  112. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -1
  113. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -1
  114. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
  115. package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -1
  116. package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -1
  117. package/dist/libs/contracts/dist/server/provider-mcp.js +1 -1
  118. package/dist/libs/contracts/dist/server/rest-elysia.js +1 -1
  119. package/dist/libs/contracts/dist/server/rest-express.js +1 -1
  120. package/dist/libs/contracts/dist/server/rest-generic.js +1 -1
  121. package/dist/libs/contracts/dist/server/rest-next-app.js +1 -1
  122. package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -1
  123. package/dist/libs/contracts/dist/spec.js +34 -1
  124. package/dist/libs/contracts/dist/telemetry/index.js +1 -1
  125. package/dist/libs/contracts/dist/telemetry/tracker.js +1 -1
  126. package/dist/libs/contracts/dist/tests/index.js +1 -1
  127. package/dist/libs/contracts/dist/tests/runner.js +2 -1
  128. package/dist/libs/contracts/dist/workflow/index.js +1 -1
  129. package/dist/libs/contracts/dist/workflow/runner.js +1 -1
  130. package/dist/libs/schema/dist/EnumType.js +56 -1
  131. package/dist/libs/schema/dist/FieldType.js +49 -1
  132. package/dist/libs/schema/dist/ScalarTypeEnum.js +236 -1
  133. package/dist/libs/schema/dist/SchemaModel.js +39 -1
  134. package/dist/libs/schema/dist/entity/defineEntity.js +236 -1
  135. package/dist/libs/schema/dist/entity/index.js +2 -1
  136. package/dist/libs/schema/dist/entity/types.js +1 -1
  137. package/dist/libs/schema/dist/index.js +6 -1
  138. package/dist/marketplace.feature.js +308 -1
  139. package/dist/order/index.js +6 -1
  140. package/dist/order/order.contracts.d.ts +90 -90
  141. package/dist/order/order.contracts.js +74 -1
  142. package/dist/order/order.enum.d.ts +2 -2
  143. package/dist/order/order.enum.js +22 -1
  144. package/dist/order/order.event.d.ts +39 -39
  145. package/dist/order/order.event.js +193 -1
  146. package/dist/order/order.presentation.js +72 -1
  147. package/dist/order/order.schema.d.ts +39 -39
  148. package/dist/order/order.schema.js +156 -1
  149. package/dist/payout/index.js +6 -1
  150. package/dist/payout/payout.contracts.d.ts +24 -24
  151. package/dist/payout/payout.contracts.js +32 -1
  152. package/dist/payout/payout.enum.d.ts +2 -2
  153. package/dist/payout/payout.enum.js +17 -1
  154. package/dist/payout/payout.event.d.ts +17 -17
  155. package/dist/payout/payout.event.js +84 -1
  156. package/dist/payout/payout.presentation.js +50 -1
  157. package/dist/payout/payout.schema.d.ts +37 -37
  158. package/dist/payout/payout.schema.js +117 -1
  159. package/dist/product/index.js +6 -1
  160. package/dist/product/product.contracts.d.ts +68 -68
  161. package/dist/product/product.contracts.js +65 -1
  162. package/dist/product/product.enum.d.ts +2 -2
  163. package/dist/product/product.enum.js +18 -1
  164. package/dist/product/product.event.d.ts +20 -20
  165. package/dist/product/product.event.js +103 -1
  166. package/dist/product/product.presentation.js +72 -1
  167. package/dist/product/product.schema.d.ts +52 -52
  168. package/dist/product/product.schema.js +177 -1
  169. package/dist/review/index.js +6 -1
  170. package/dist/review/review.contracts.d.ts +59 -59
  171. package/dist/review/review.contracts.js +65 -1
  172. package/dist/review/review.enum.d.ts +2 -2
  173. package/dist/review/review.enum.js +16 -1
  174. package/dist/review/review.event.d.ts +15 -15
  175. package/dist/review/review.event.js +76 -1
  176. package/dist/review/review.presentation.js +50 -1
  177. package/dist/review/review.schema.d.ts +45 -45
  178. package/dist/review/review.schema.js +157 -1
  179. package/dist/store/index.js +6 -1
  180. package/dist/store/store.contracts.d.ts +33 -33
  181. package/dist/store/store.contracts.js +41 -1
  182. package/dist/store/store.enum.d.ts +2 -2
  183. package/dist/store/store.enum.js +16 -1
  184. package/dist/store/store.event.d.ts +14 -14
  185. package/dist/store/store.event.js +72 -1
  186. package/dist/store/store.presentation.js +50 -1
  187. package/dist/store/store.schema.d.ts +20 -20
  188. package/dist/store/store.schema.js +94 -1
  189. package/package.json +12 -12
@@ -1,127 +1,127 @@
1
- import * as _lssm_lib_schema1120 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts20 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema75 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts1 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/store/store.contracts.d.ts
5
5
  /**
6
6
  * Create a new seller store.
7
7
  */
8
- declare const CreateStoreContract: _lssm_lib_contracts20.ContractSpec<_lssm_lib_schema1120.SchemaModel<{
8
+ declare const CreateStoreContract: _lssm_lib_contracts1.ContractSpec<_lssm_lib_schema75.SchemaModel<{
9
9
  name: {
10
- type: _lssm_lib_schema1120.FieldType<string, string>;
10
+ type: _lssm_lib_schema75.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  slug: {
14
- type: _lssm_lib_schema1120.FieldType<string, string>;
14
+ type: _lssm_lib_schema75.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  description: {
18
- type: _lssm_lib_schema1120.FieldType<string, string>;
18
+ type: _lssm_lib_schema75.FieldType<string, string>;
19
19
  isOptional: true;
20
20
  };
21
21
  email: {
22
- type: _lssm_lib_schema1120.FieldType<string, string>;
22
+ type: _lssm_lib_schema75.FieldType<string, string>;
23
23
  isOptional: true;
24
24
  };
25
25
  country: {
26
- type: _lssm_lib_schema1120.FieldType<string, string>;
26
+ type: _lssm_lib_schema75.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  currency: {
30
- type: _lssm_lib_schema1120.FieldType<string, string>;
30
+ type: _lssm_lib_schema75.FieldType<string, string>;
31
31
  isOptional: true;
32
32
  };
33
- }>, _lssm_lib_schema1120.SchemaModel<{
33
+ }>, _lssm_lib_schema75.SchemaModel<{
34
34
  id: {
35
- type: _lssm_lib_schema1120.FieldType<string, string>;
35
+ type: _lssm_lib_schema75.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  name: {
39
- type: _lssm_lib_schema1120.FieldType<string, string>;
39
+ type: _lssm_lib_schema75.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  slug: {
43
- type: _lssm_lib_schema1120.FieldType<string, string>;
43
+ type: _lssm_lib_schema75.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  description: {
47
- type: _lssm_lib_schema1120.FieldType<string, string>;
47
+ type: _lssm_lib_schema75.FieldType<string, string>;
48
48
  isOptional: true;
49
49
  };
50
50
  status: {
51
- type: _lssm_lib_schema1120.EnumType<[string, string, string, string]>;
51
+ type: _lssm_lib_schema75.EnumType<[string, string, string, string]>;
52
52
  isOptional: false;
53
53
  };
54
54
  ownerId: {
55
- type: _lssm_lib_schema1120.FieldType<string, string>;
55
+ type: _lssm_lib_schema75.FieldType<string, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  logoFileId: {
59
- type: _lssm_lib_schema1120.FieldType<string, string>;
59
+ type: _lssm_lib_schema75.FieldType<string, string>;
60
60
  isOptional: true;
61
61
  };
62
62
  isVerified: {
63
- type: _lssm_lib_schema1120.FieldType<boolean, boolean>;
63
+ type: _lssm_lib_schema75.FieldType<boolean, boolean>;
64
64
  isOptional: false;
65
65
  };
66
66
  totalProducts: {
67
- type: _lssm_lib_schema1120.FieldType<number, number>;
67
+ type: _lssm_lib_schema75.FieldType<number, number>;
68
68
  isOptional: false;
69
69
  };
70
70
  averageRating: {
71
- type: _lssm_lib_schema1120.FieldType<number, number>;
71
+ type: _lssm_lib_schema75.FieldType<number, number>;
72
72
  isOptional: false;
73
73
  };
74
74
  createdAt: {
75
- type: _lssm_lib_schema1120.FieldType<Date, string>;
75
+ type: _lssm_lib_schema75.FieldType<Date, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  }>, {
79
79
  name: string;
80
80
  version: number;
81
81
  when: string;
82
- payload: _lssm_lib_schema1120.SchemaModel<{
82
+ payload: _lssm_lib_schema75.SchemaModel<{
83
83
  id: {
84
- type: _lssm_lib_schema1120.FieldType<string, string>;
84
+ type: _lssm_lib_schema75.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  name: {
88
- type: _lssm_lib_schema1120.FieldType<string, string>;
88
+ type: _lssm_lib_schema75.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  slug: {
92
- type: _lssm_lib_schema1120.FieldType<string, string>;
92
+ type: _lssm_lib_schema75.FieldType<string, string>;
93
93
  isOptional: false;
94
94
  };
95
95
  description: {
96
- type: _lssm_lib_schema1120.FieldType<string, string>;
96
+ type: _lssm_lib_schema75.FieldType<string, string>;
97
97
  isOptional: true;
98
98
  };
99
99
  status: {
100
- type: _lssm_lib_schema1120.EnumType<[string, string, string, string]>;
100
+ type: _lssm_lib_schema75.EnumType<[string, string, string, string]>;
101
101
  isOptional: false;
102
102
  };
103
103
  ownerId: {
104
- type: _lssm_lib_schema1120.FieldType<string, string>;
104
+ type: _lssm_lib_schema75.FieldType<string, string>;
105
105
  isOptional: false;
106
106
  };
107
107
  logoFileId: {
108
- type: _lssm_lib_schema1120.FieldType<string, string>;
108
+ type: _lssm_lib_schema75.FieldType<string, string>;
109
109
  isOptional: true;
110
110
  };
111
111
  isVerified: {
112
- type: _lssm_lib_schema1120.FieldType<boolean, boolean>;
112
+ type: _lssm_lib_schema75.FieldType<boolean, boolean>;
113
113
  isOptional: false;
114
114
  };
115
115
  totalProducts: {
116
- type: _lssm_lib_schema1120.FieldType<number, number>;
116
+ type: _lssm_lib_schema75.FieldType<number, number>;
117
117
  isOptional: false;
118
118
  };
119
119
  averageRating: {
120
- type: _lssm_lib_schema1120.FieldType<number, number>;
120
+ type: _lssm_lib_schema75.FieldType<number, number>;
121
121
  isOptional: false;
122
122
  };
123
123
  createdAt: {
124
- type: _lssm_lib_schema1120.FieldType<Date, string>;
124
+ type: _lssm_lib_schema75.FieldType<Date, string>;
125
125
  isOptional: false;
126
126
  };
127
127
  }>;
@@ -1 +1,41 @@
1
- import{CreateStoreInputModel as e,StoreModel as t}from"./store.schema.js";import{t as n}from"../libs/contracts/dist/spec.js";const r=n({meta:{name:`marketplace.store.create`,version:1,stability:`stable`,owners:[...[`@example.marketplace`]],tags:[`marketplace`,`store`,`create`],description:`Create a new seller store.`,goal:`Allow users to become sellers on the marketplace.`,context:`Seller onboarding.`},io:{input:e,output:t},policy:{auth:`user`},sideEffects:{emits:[{name:`marketplace.store.created`,version:1,when:`Store is created`,payload:t}],audit:[`marketplace.store.created`]}});export{r as CreateStoreContract};
1
+ import { CreateStoreInputModel, StoreModel } from "./store.schema.js";
2
+ import { defineCommand } from "../libs/contracts/dist/spec.js";
3
+
4
+ //#region src/store/store.contracts.ts
5
+ const OWNERS = ["@example.marketplace"];
6
+ /**
7
+ * Create a new seller store.
8
+ */
9
+ const CreateStoreContract = defineCommand({
10
+ meta: {
11
+ name: "marketplace.store.create",
12
+ version: 1,
13
+ stability: "stable",
14
+ owners: [...OWNERS],
15
+ tags: [
16
+ "marketplace",
17
+ "store",
18
+ "create"
19
+ ],
20
+ description: "Create a new seller store.",
21
+ goal: "Allow users to become sellers on the marketplace.",
22
+ context: "Seller onboarding."
23
+ },
24
+ io: {
25
+ input: CreateStoreInputModel,
26
+ output: StoreModel
27
+ },
28
+ policy: { auth: "user" },
29
+ sideEffects: {
30
+ emits: [{
31
+ name: "marketplace.store.created",
32
+ version: 1,
33
+ when: "Store is created",
34
+ payload: StoreModel
35
+ }],
36
+ audit: ["marketplace.store.created"]
37
+ }
38
+ });
39
+
40
+ //#endregion
41
+ export { CreateStoreContract };
@@ -1,9 +1,9 @@
1
- import * as _lssm_lib_schema862 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema401 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/store/store.enum.d.ts
4
4
  /**
5
5
  * Store status enum.
6
6
  */
7
- declare const StoreStatusEnum: _lssm_lib_schema862.EnumType<[string, string, string, string]>;
7
+ declare const StoreStatusEnum: _lssm_lib_schema401.EnumType<[string, string, string, string]>;
8
8
  //#endregion
9
9
  export { StoreStatusEnum };
@@ -1 +1,16 @@
1
- import{r as e}from"../libs/schema/dist/EnumType.js";import"../libs/schema/dist/index.js";const t=e(`StoreStatus`,[`PENDING`,`ACTIVE`,`SUSPENDED`,`CLOSED`]);export{t as StoreStatusEnum};
1
+ import { defineEnum } from "../libs/schema/dist/EnumType.js";
2
+ import "../libs/schema/dist/index.js";
3
+
4
+ //#region src/store/store.enum.ts
5
+ /**
6
+ * Store status enum.
7
+ */
8
+ const StoreStatusEnum = defineEnum("StoreStatus", [
9
+ "PENDING",
10
+ "ACTIVE",
11
+ "SUSPENDED",
12
+ "CLOSED"
13
+ ]);
14
+
15
+ //#endregion
16
+ export { StoreStatusEnum };
@@ -1,48 +1,48 @@
1
- import * as _lssm_lib_schema1050 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts18 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema479 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts2 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/store/store.event.d.ts
5
- declare const StoreCreatedEvent: _lssm_lib_contracts18.EventSpec<_lssm_lib_schema1050.SchemaModel<{
5
+ declare const StoreCreatedEvent: _lssm_lib_contracts2.EventSpec<_lssm_lib_schema479.SchemaModel<{
6
6
  storeId: {
7
- type: _lssm_lib_schema1050.FieldType<string, string>;
7
+ type: _lssm_lib_schema479.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  name: {
11
- type: _lssm_lib_schema1050.FieldType<string, string>;
11
+ type: _lssm_lib_schema479.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  slug: {
15
- type: _lssm_lib_schema1050.FieldType<string, string>;
15
+ type: _lssm_lib_schema479.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  ownerId: {
19
- type: _lssm_lib_schema1050.FieldType<string, string>;
19
+ type: _lssm_lib_schema479.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  timestamp: {
23
- type: _lssm_lib_schema1050.FieldType<Date, string>;
23
+ type: _lssm_lib_schema479.FieldType<Date, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  }>>;
27
- declare const StoreStatusChangedEvent: _lssm_lib_contracts18.EventSpec<_lssm_lib_schema1050.SchemaModel<{
27
+ declare const StoreStatusChangedEvent: _lssm_lib_contracts2.EventSpec<_lssm_lib_schema479.SchemaModel<{
28
28
  storeId: {
29
- type: _lssm_lib_schema1050.FieldType<string, string>;
29
+ type: _lssm_lib_schema479.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  previousStatus: {
33
- type: _lssm_lib_schema1050.FieldType<string, string>;
33
+ type: _lssm_lib_schema479.FieldType<string, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  newStatus: {
37
- type: _lssm_lib_schema1050.FieldType<string, string>;
37
+ type: _lssm_lib_schema479.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  reason: {
41
- type: _lssm_lib_schema1050.FieldType<string, string>;
41
+ type: _lssm_lib_schema479.FieldType<string, string>;
42
42
  isOptional: true;
43
43
  };
44
44
  timestamp: {
45
- type: _lssm_lib_schema1050.FieldType<Date, string>;
45
+ type: _lssm_lib_schema479.FieldType<Date, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  }>>;
@@ -1 +1,72 @@
1
- import{l as e}from"../libs/schema/dist/ScalarTypeEnum.js";import{n as t}from"../libs/schema/dist/SchemaModel.js";import"../libs/schema/dist/index.js";import{e as n}from"../libs/contracts/dist/events.js";import"../libs/contracts/dist/index.js";const r=t({name:`StoreCreatedEventPayload`,fields:{storeId:{type:e.String_unsecure(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!1},slug:{type:e.String_unsecure(),isOptional:!1},ownerId:{type:e.String_unsecure(),isOptional:!1},timestamp:{type:e.DateTime(),isOptional:!1}}}),i=t({name:`StoreStatusChangedEventPayload`,fields:{storeId:{type:e.String_unsecure(),isOptional:!1},previousStatus:{type:e.String_unsecure(),isOptional:!1},newStatus:{type:e.String_unsecure(),isOptional:!1},reason:{type:e.String_unsecure(),isOptional:!0},timestamp:{type:e.DateTime(),isOptional:!1}}}),a=n({name:`marketplace.store.created`,version:1,description:`A new seller store has been created.`,payload:r}),o=n({name:`marketplace.store.statusChanged`,version:1,description:`A store status has changed.`,payload:i});export{a as StoreCreatedEvent,o as StoreStatusChangedEvent};
1
+ import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
2
+ import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
3
+ import "../libs/schema/dist/index.js";
4
+ import { defineEvent } from "../libs/contracts/dist/events.js";
5
+ import "../libs/contracts/dist/index.js";
6
+
7
+ //#region src/store/store.event.ts
8
+ const StoreCreatedPayload = defineSchemaModel({
9
+ name: "StoreCreatedEventPayload",
10
+ fields: {
11
+ storeId: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: false
14
+ },
15
+ name: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: false
18
+ },
19
+ slug: {
20
+ type: ScalarTypeEnum.String_unsecure(),
21
+ isOptional: false
22
+ },
23
+ ownerId: {
24
+ type: ScalarTypeEnum.String_unsecure(),
25
+ isOptional: false
26
+ },
27
+ timestamp: {
28
+ type: ScalarTypeEnum.DateTime(),
29
+ isOptional: false
30
+ }
31
+ }
32
+ });
33
+ const StoreStatusChangedPayload = defineSchemaModel({
34
+ name: "StoreStatusChangedEventPayload",
35
+ fields: {
36
+ storeId: {
37
+ type: ScalarTypeEnum.String_unsecure(),
38
+ isOptional: false
39
+ },
40
+ previousStatus: {
41
+ type: ScalarTypeEnum.String_unsecure(),
42
+ isOptional: false
43
+ },
44
+ newStatus: {
45
+ type: ScalarTypeEnum.String_unsecure(),
46
+ isOptional: false
47
+ },
48
+ reason: {
49
+ type: ScalarTypeEnum.String_unsecure(),
50
+ isOptional: true
51
+ },
52
+ timestamp: {
53
+ type: ScalarTypeEnum.DateTime(),
54
+ isOptional: false
55
+ }
56
+ }
57
+ });
58
+ const StoreCreatedEvent = defineEvent({
59
+ name: "marketplace.store.created",
60
+ version: 1,
61
+ description: "A new seller store has been created.",
62
+ payload: StoreCreatedPayload
63
+ });
64
+ const StoreStatusChangedEvent = defineEvent({
65
+ name: "marketplace.store.statusChanged",
66
+ version: 1,
67
+ description: "A store status has changed.",
68
+ payload: StoreStatusChangedPayload
69
+ });
70
+
71
+ //#endregion
72
+ export { StoreCreatedEvent, StoreStatusChangedEvent };
@@ -1 +1,50 @@
1
- import{StoreModel as e}from"./store.schema.js";const t={meta:{name:`marketplace.store.profile`,version:1,description:`Public store profile page`,domain:`marketplace`,owners:[`@marketplace-team`],tags:[`marketplace`,`store`,`profile`]},source:{type:`component`,framework:`react`,componentKey:`StoreProfile`,props:e},targets:[`react`,`markdown`],policy:{flags:[`marketplace.stores.enabled`]}},n={meta:{name:`marketplace.seller.dashboard`,version:1,description:`Seller dashboard with sales and analytics`,domain:`marketplace`,owners:[`@marketplace-team`],tags:[`marketplace`,`seller`,`dashboard`]},source:{type:`component`,framework:`react`,componentKey:`SellerDashboard`,props:e},targets:[`react`],policy:{flags:[`marketplace.seller.enabled`]}};export{n as SellerDashboardPresentation,t as StoreProfilePresentation};
1
+ import { StoreModel } from "./store.schema.js";
2
+
3
+ //#region src/store/store.presentation.ts
4
+ const StoreProfilePresentation = {
5
+ meta: {
6
+ name: "marketplace.store.profile",
7
+ version: 1,
8
+ description: "Public store profile page",
9
+ domain: "marketplace",
10
+ owners: ["@marketplace-team"],
11
+ tags: [
12
+ "marketplace",
13
+ "store",
14
+ "profile"
15
+ ]
16
+ },
17
+ source: {
18
+ type: "component",
19
+ framework: "react",
20
+ componentKey: "StoreProfile",
21
+ props: StoreModel
22
+ },
23
+ targets: ["react", "markdown"],
24
+ policy: { flags: ["marketplace.stores.enabled"] }
25
+ };
26
+ const SellerDashboardPresentation = {
27
+ meta: {
28
+ name: "marketplace.seller.dashboard",
29
+ version: 1,
30
+ description: "Seller dashboard with sales and analytics",
31
+ domain: "marketplace",
32
+ owners: ["@marketplace-team"],
33
+ tags: [
34
+ "marketplace",
35
+ "seller",
36
+ "dashboard"
37
+ ]
38
+ },
39
+ source: {
40
+ type: "component",
41
+ framework: "react",
42
+ componentKey: "SellerDashboard",
43
+ props: StoreModel
44
+ },
45
+ targets: ["react"],
46
+ policy: { flags: ["marketplace.seller.enabled"] }
47
+ };
48
+
49
+ //#endregion
50
+ export { SellerDashboardPresentation, StoreProfilePresentation };
@@ -1,81 +1,81 @@
1
- import * as _lssm_lib_schema1101 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema0 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/store/store.schema.d.ts
4
4
  /**
5
5
  * A seller store.
6
6
  */
7
- declare const StoreModel: _lssm_lib_schema1101.SchemaModel<{
7
+ declare const StoreModel: _lssm_lib_schema0.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema1101.FieldType<string, string>;
9
+ type: _lssm_lib_schema0.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  name: {
13
- type: _lssm_lib_schema1101.FieldType<string, string>;
13
+ type: _lssm_lib_schema0.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  slug: {
17
- type: _lssm_lib_schema1101.FieldType<string, string>;
17
+ type: _lssm_lib_schema0.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  description: {
21
- type: _lssm_lib_schema1101.FieldType<string, string>;
21
+ type: _lssm_lib_schema0.FieldType<string, string>;
22
22
  isOptional: true;
23
23
  };
24
24
  status: {
25
- type: _lssm_lib_schema1101.EnumType<[string, string, string, string]>;
25
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
26
26
  isOptional: false;
27
27
  };
28
28
  ownerId: {
29
- type: _lssm_lib_schema1101.FieldType<string, string>;
29
+ type: _lssm_lib_schema0.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  logoFileId: {
33
- type: _lssm_lib_schema1101.FieldType<string, string>;
33
+ type: _lssm_lib_schema0.FieldType<string, string>;
34
34
  isOptional: true;
35
35
  };
36
36
  isVerified: {
37
- type: _lssm_lib_schema1101.FieldType<boolean, boolean>;
37
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
38
38
  isOptional: false;
39
39
  };
40
40
  totalProducts: {
41
- type: _lssm_lib_schema1101.FieldType<number, number>;
41
+ type: _lssm_lib_schema0.FieldType<number, number>;
42
42
  isOptional: false;
43
43
  };
44
44
  averageRating: {
45
- type: _lssm_lib_schema1101.FieldType<number, number>;
45
+ type: _lssm_lib_schema0.FieldType<number, number>;
46
46
  isOptional: false;
47
47
  };
48
48
  createdAt: {
49
- type: _lssm_lib_schema1101.FieldType<Date, string>;
49
+ type: _lssm_lib_schema0.FieldType<Date, string>;
50
50
  isOptional: false;
51
51
  };
52
52
  }>;
53
53
  /**
54
54
  * Input for creating a store.
55
55
  */
56
- declare const CreateStoreInputModel: _lssm_lib_schema1101.SchemaModel<{
56
+ declare const CreateStoreInputModel: _lssm_lib_schema0.SchemaModel<{
57
57
  name: {
58
- type: _lssm_lib_schema1101.FieldType<string, string>;
58
+ type: _lssm_lib_schema0.FieldType<string, string>;
59
59
  isOptional: false;
60
60
  };
61
61
  slug: {
62
- type: _lssm_lib_schema1101.FieldType<string, string>;
62
+ type: _lssm_lib_schema0.FieldType<string, string>;
63
63
  isOptional: false;
64
64
  };
65
65
  description: {
66
- type: _lssm_lib_schema1101.FieldType<string, string>;
66
+ type: _lssm_lib_schema0.FieldType<string, string>;
67
67
  isOptional: true;
68
68
  };
69
69
  email: {
70
- type: _lssm_lib_schema1101.FieldType<string, string>;
70
+ type: _lssm_lib_schema0.FieldType<string, string>;
71
71
  isOptional: true;
72
72
  };
73
73
  country: {
74
- type: _lssm_lib_schema1101.FieldType<string, string>;
74
+ type: _lssm_lib_schema0.FieldType<string, string>;
75
75
  isOptional: true;
76
76
  };
77
77
  currency: {
78
- type: _lssm_lib_schema1101.FieldType<string, string>;
78
+ type: _lssm_lib_schema0.FieldType<string, string>;
79
79
  isOptional: true;
80
80
  };
81
81
  }>;
@@ -1 +1,94 @@
1
- import{l as e}from"../libs/schema/dist/ScalarTypeEnum.js";import{n as t}from"../libs/schema/dist/SchemaModel.js";import"../libs/schema/dist/index.js";import{StoreStatusEnum as n}from"./store.enum.js";const r=t({name:`StoreModel`,description:`A seller store`,fields:{id:{type:e.String_unsecure(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!1},slug:{type:e.String_unsecure(),isOptional:!1},description:{type:e.String_unsecure(),isOptional:!0},status:{type:n,isOptional:!1},ownerId:{type:e.String_unsecure(),isOptional:!1},logoFileId:{type:e.String_unsecure(),isOptional:!0},isVerified:{type:e.Boolean(),isOptional:!1},totalProducts:{type:e.Int_unsecure(),isOptional:!1},averageRating:{type:e.Float_unsecure(),isOptional:!1},createdAt:{type:e.DateTime(),isOptional:!1}}}),i=t({name:`CreateStoreInput`,fields:{name:{type:e.NonEmptyString(),isOptional:!1},slug:{type:e.NonEmptyString(),isOptional:!1},description:{type:e.String_unsecure(),isOptional:!0},email:{type:e.EmailAddress(),isOptional:!0},country:{type:e.String_unsecure(),isOptional:!0},currency:{type:e.String_unsecure(),isOptional:!0}}});export{i as CreateStoreInputModel,r as StoreModel};
1
+ import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
2
+ import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
3
+ import "../libs/schema/dist/index.js";
4
+ import { StoreStatusEnum } from "./store.enum.js";
5
+
6
+ //#region src/store/store.schema.ts
7
+ /**
8
+ * A seller store.
9
+ */
10
+ const StoreModel = defineSchemaModel({
11
+ name: "StoreModel",
12
+ description: "A seller store",
13
+ fields: {
14
+ id: {
15
+ type: ScalarTypeEnum.String_unsecure(),
16
+ isOptional: false
17
+ },
18
+ name: {
19
+ type: ScalarTypeEnum.String_unsecure(),
20
+ isOptional: false
21
+ },
22
+ slug: {
23
+ type: ScalarTypeEnum.String_unsecure(),
24
+ isOptional: false
25
+ },
26
+ description: {
27
+ type: ScalarTypeEnum.String_unsecure(),
28
+ isOptional: true
29
+ },
30
+ status: {
31
+ type: StoreStatusEnum,
32
+ isOptional: false
33
+ },
34
+ ownerId: {
35
+ type: ScalarTypeEnum.String_unsecure(),
36
+ isOptional: false
37
+ },
38
+ logoFileId: {
39
+ type: ScalarTypeEnum.String_unsecure(),
40
+ isOptional: true
41
+ },
42
+ isVerified: {
43
+ type: ScalarTypeEnum.Boolean(),
44
+ isOptional: false
45
+ },
46
+ totalProducts: {
47
+ type: ScalarTypeEnum.Int_unsecure(),
48
+ isOptional: false
49
+ },
50
+ averageRating: {
51
+ type: ScalarTypeEnum.Float_unsecure(),
52
+ isOptional: false
53
+ },
54
+ createdAt: {
55
+ type: ScalarTypeEnum.DateTime(),
56
+ isOptional: false
57
+ }
58
+ }
59
+ });
60
+ /**
61
+ * Input for creating a store.
62
+ */
63
+ const CreateStoreInputModel = defineSchemaModel({
64
+ name: "CreateStoreInput",
65
+ fields: {
66
+ name: {
67
+ type: ScalarTypeEnum.NonEmptyString(),
68
+ isOptional: false
69
+ },
70
+ slug: {
71
+ type: ScalarTypeEnum.NonEmptyString(),
72
+ isOptional: false
73
+ },
74
+ description: {
75
+ type: ScalarTypeEnum.String_unsecure(),
76
+ isOptional: true
77
+ },
78
+ email: {
79
+ type: ScalarTypeEnum.EmailAddress(),
80
+ isOptional: true
81
+ },
82
+ country: {
83
+ type: ScalarTypeEnum.String_unsecure(),
84
+ isOptional: true
85
+ },
86
+ currency: {
87
+ type: ScalarTypeEnum.String_unsecure(),
88
+ isOptional: true
89
+ }
90
+ }
91
+ });
92
+
93
+ //#endregion
94
+ export { CreateStoreInputModel, StoreModel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.marketplace",
3
- "version": "0.0.0-canary-20251217063201",
3
+ "version": "0.0.0-canary-20251217072406",
4
4
  "description": "Marketplace example with orders, payouts, and reviews for ContractSpec",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,20 +18,20 @@
18
18
  "lint:check": "eslint src"
19
19
  },
20
20
  "dependencies": {
21
- "@lssm/lib.schema": "0.0.0-canary-20251217063201",
22
- "@lssm/lib.contracts": "0.0.0-canary-20251217063201",
23
- "@lssm/lib.bus": "0.0.0-canary-20251217063201",
24
- "@lssm/lib.identity-rbac": "0.0.0-canary-20251217063201",
25
- "@lssm/lib.files": "0.0.0-canary-20251217063201",
26
- "@lssm/lib.metering": "0.0.0-canary-20251217063201",
27
- "@lssm/lib.jobs": "0.0.0-canary-20251217063201",
28
- "@lssm/module.audit-trail": "0.0.0-canary-20251217063201",
29
- "@lssm/module.notifications": "0.0.0-canary-20251217063201",
21
+ "@lssm/lib.schema": "0.0.0-canary-20251217072406",
22
+ "@lssm/lib.contracts": "0.0.0-canary-20251217072406",
23
+ "@lssm/lib.bus": "0.0.0-canary-20251217072406",
24
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251217072406",
25
+ "@lssm/lib.files": "0.0.0-canary-20251217072406",
26
+ "@lssm/lib.metering": "0.0.0-canary-20251217072406",
27
+ "@lssm/lib.jobs": "0.0.0-canary-20251217072406",
28
+ "@lssm/module.audit-trail": "0.0.0-canary-20251217072406",
29
+ "@lssm/module.notifications": "0.0.0-canary-20251217072406",
30
30
  "zod": "^4.1.13"
31
31
  },
32
32
  "devDependencies": {
33
- "@lssm/tool.typescript": "0.0.0-canary-20251217063201",
34
- "@lssm/tool.tsdown": "0.0.0-canary-20251217063201",
33
+ "@lssm/tool.typescript": "0.0.0-canary-20251217072406",
34
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217072406",
35
35
  "typescript": "^5.9.3"
36
36
  },
37
37
  "exports": {