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

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,142 +1,142 @@
1
- import * as _lssm_lib_schema881 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts10 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema398 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/order/order.event.d.ts
5
- declare const OrderCreatedEvent: _lssm_lib_contracts10.EventSpec<_lssm_lib_schema881.SchemaModel<{
5
+ declare const OrderCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema398.SchemaModel<{
6
6
  orderId: {
7
- type: _lssm_lib_schema881.FieldType<string, string>;
7
+ type: _lssm_lib_schema398.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  orderNumber: {
11
- type: _lssm_lib_schema881.FieldType<string, string>;
11
+ type: _lssm_lib_schema398.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  buyerId: {
15
- type: _lssm_lib_schema881.FieldType<string, string>;
15
+ type: _lssm_lib_schema398.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  storeId: {
19
- type: _lssm_lib_schema881.FieldType<string, string>;
19
+ type: _lssm_lib_schema398.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  total: {
23
- type: _lssm_lib_schema881.FieldType<number, number>;
23
+ type: _lssm_lib_schema398.FieldType<number, number>;
24
24
  isOptional: false;
25
25
  };
26
26
  currency: {
27
- type: _lssm_lib_schema881.FieldType<string, string>;
27
+ type: _lssm_lib_schema398.FieldType<string, string>;
28
28
  isOptional: false;
29
29
  };
30
30
  itemCount: {
31
- type: _lssm_lib_schema881.FieldType<number, number>;
31
+ type: _lssm_lib_schema398.FieldType<number, number>;
32
32
  isOptional: false;
33
33
  };
34
34
  timestamp: {
35
- type: _lssm_lib_schema881.FieldType<Date, string>;
35
+ type: _lssm_lib_schema398.FieldType<Date, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  }>>;
39
- declare const OrderPaidEvent: _lssm_lib_contracts10.EventSpec<_lssm_lib_schema881.SchemaModel<{
39
+ declare const OrderPaidEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema398.SchemaModel<{
40
40
  orderId: {
41
- type: _lssm_lib_schema881.FieldType<string, string>;
41
+ type: _lssm_lib_schema398.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  orderNumber: {
45
- type: _lssm_lib_schema881.FieldType<string, string>;
45
+ type: _lssm_lib_schema398.FieldType<string, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  total: {
49
- type: _lssm_lib_schema881.FieldType<number, number>;
49
+ type: _lssm_lib_schema398.FieldType<number, number>;
50
50
  isOptional: false;
51
51
  };
52
52
  paymentMethod: {
53
- type: _lssm_lib_schema881.FieldType<string, string>;
53
+ type: _lssm_lib_schema398.FieldType<string, string>;
54
54
  isOptional: false;
55
55
  };
56
56
  timestamp: {
57
- type: _lssm_lib_schema881.FieldType<Date, string>;
57
+ type: _lssm_lib_schema398.FieldType<Date, string>;
58
58
  isOptional: false;
59
59
  };
60
60
  }>>;
61
- declare const OrderStatusUpdatedEvent: _lssm_lib_contracts10.EventSpec<_lssm_lib_schema881.SchemaModel<{
61
+ declare const OrderStatusUpdatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema398.SchemaModel<{
62
62
  orderId: {
63
- type: _lssm_lib_schema881.FieldType<string, string>;
63
+ type: _lssm_lib_schema398.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  orderNumber: {
67
- type: _lssm_lib_schema881.FieldType<string, string>;
67
+ type: _lssm_lib_schema398.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  previousStatus: {
71
- type: _lssm_lib_schema881.FieldType<string, string>;
71
+ type: _lssm_lib_schema398.FieldType<string, string>;
72
72
  isOptional: false;
73
73
  };
74
74
  newStatus: {
75
- type: _lssm_lib_schema881.FieldType<string, string>;
75
+ type: _lssm_lib_schema398.FieldType<string, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  updatedBy: {
79
- type: _lssm_lib_schema881.FieldType<string, string>;
79
+ type: _lssm_lib_schema398.FieldType<string, string>;
80
80
  isOptional: false;
81
81
  };
82
82
  timestamp: {
83
- type: _lssm_lib_schema881.FieldType<Date, string>;
83
+ type: _lssm_lib_schema398.FieldType<Date, string>;
84
84
  isOptional: false;
85
85
  };
86
86
  }>>;
87
- declare const OrderShippedEvent: _lssm_lib_contracts10.EventSpec<_lssm_lib_schema881.SchemaModel<{
87
+ declare const OrderShippedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema398.SchemaModel<{
88
88
  orderId: {
89
- type: _lssm_lib_schema881.FieldType<string, string>;
89
+ type: _lssm_lib_schema398.FieldType<string, string>;
90
90
  isOptional: false;
91
91
  };
92
92
  orderNumber: {
93
- type: _lssm_lib_schema881.FieldType<string, string>;
93
+ type: _lssm_lib_schema398.FieldType<string, string>;
94
94
  isOptional: false;
95
95
  };
96
96
  trackingNumber: {
97
- type: _lssm_lib_schema881.FieldType<string, string>;
97
+ type: _lssm_lib_schema398.FieldType<string, string>;
98
98
  isOptional: true;
99
99
  };
100
100
  trackingUrl: {
101
- type: _lssm_lib_schema881.FieldType<string, string>;
101
+ type: _lssm_lib_schema398.FieldType<string, string>;
102
102
  isOptional: true;
103
103
  };
104
104
  carrier: {
105
- type: _lssm_lib_schema881.FieldType<string, string>;
105
+ type: _lssm_lib_schema398.FieldType<string, string>;
106
106
  isOptional: true;
107
107
  };
108
108
  timestamp: {
109
- type: _lssm_lib_schema881.FieldType<Date, string>;
109
+ type: _lssm_lib_schema398.FieldType<Date, string>;
110
110
  isOptional: false;
111
111
  };
112
112
  }>>;
113
- declare const OrderCompletedEvent: _lssm_lib_contracts10.EventSpec<_lssm_lib_schema881.SchemaModel<{
113
+ declare const OrderCompletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema398.SchemaModel<{
114
114
  orderId: {
115
- type: _lssm_lib_schema881.FieldType<string, string>;
115
+ type: _lssm_lib_schema398.FieldType<string, string>;
116
116
  isOptional: false;
117
117
  };
118
118
  orderNumber: {
119
- type: _lssm_lib_schema881.FieldType<string, string>;
119
+ type: _lssm_lib_schema398.FieldType<string, string>;
120
120
  isOptional: false;
121
121
  };
122
122
  buyerId: {
123
- type: _lssm_lib_schema881.FieldType<string, string>;
123
+ type: _lssm_lib_schema398.FieldType<string, string>;
124
124
  isOptional: false;
125
125
  };
126
126
  storeId: {
127
- type: _lssm_lib_schema881.FieldType<string, string>;
127
+ type: _lssm_lib_schema398.FieldType<string, string>;
128
128
  isOptional: false;
129
129
  };
130
130
  total: {
131
- type: _lssm_lib_schema881.FieldType<number, number>;
131
+ type: _lssm_lib_schema398.FieldType<number, number>;
132
132
  isOptional: false;
133
133
  };
134
134
  sellerPayout: {
135
- type: _lssm_lib_schema881.FieldType<number, number>;
135
+ type: _lssm_lib_schema398.FieldType<number, number>;
136
136
  isOptional: false;
137
137
  };
138
138
  timestamp: {
139
- type: _lssm_lib_schema881.FieldType<Date, string>;
139
+ type: _lssm_lib_schema398.FieldType<Date, string>;
140
140
  isOptional: false;
141
141
  };
142
142
  }>>;
@@ -1 +1,193 @@
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:`OrderCreatedEventPayload`,fields:{orderId:{type:e.String_unsecure(),isOptional:!1},orderNumber:{type:e.String_unsecure(),isOptional:!1},buyerId:{type:e.String_unsecure(),isOptional:!1},storeId:{type:e.String_unsecure(),isOptional:!1},total:{type:e.Float_unsecure(),isOptional:!1},currency:{type:e.String_unsecure(),isOptional:!1},itemCount:{type:e.Int_unsecure(),isOptional:!1},timestamp:{type:e.DateTime(),isOptional:!1}}}),i=t({name:`OrderPaidEventPayload`,fields:{orderId:{type:e.String_unsecure(),isOptional:!1},orderNumber:{type:e.String_unsecure(),isOptional:!1},total:{type:e.Float_unsecure(),isOptional:!1},paymentMethod:{type:e.String_unsecure(),isOptional:!1},timestamp:{type:e.DateTime(),isOptional:!1}}}),a=t({name:`OrderStatusUpdatedEventPayload`,fields:{orderId:{type:e.String_unsecure(),isOptional:!1},orderNumber:{type:e.String_unsecure(),isOptional:!1},previousStatus:{type:e.String_unsecure(),isOptional:!1},newStatus:{type:e.String_unsecure(),isOptional:!1},updatedBy:{type:e.String_unsecure(),isOptional:!1},timestamp:{type:e.DateTime(),isOptional:!1}}}),o=t({name:`OrderShippedEventPayload`,fields:{orderId:{type:e.String_unsecure(),isOptional:!1},orderNumber:{type:e.String_unsecure(),isOptional:!1},trackingNumber:{type:e.String_unsecure(),isOptional:!0},trackingUrl:{type:e.String_unsecure(),isOptional:!0},carrier:{type:e.String_unsecure(),isOptional:!0},timestamp:{type:e.DateTime(),isOptional:!1}}}),s=t({name:`OrderCompletedEventPayload`,fields:{orderId:{type:e.String_unsecure(),isOptional:!1},orderNumber:{type:e.String_unsecure(),isOptional:!1},buyerId:{type:e.String_unsecure(),isOptional:!1},storeId:{type:e.String_unsecure(),isOptional:!1},total:{type:e.Float_unsecure(),isOptional:!1},sellerPayout:{type:e.Float_unsecure(),isOptional:!1},timestamp:{type:e.DateTime(),isOptional:!1}}}),c=n({name:`marketplace.order.created`,version:1,description:`A new order has been created.`,payload:r}),l=n({name:`marketplace.order.paid`,version:1,description:`An order has been paid.`,payload:i}),u=n({name:`marketplace.order.statusUpdated`,version:1,description:`An order status has been updated.`,payload:a}),d=n({name:`marketplace.order.shipped`,version:1,description:`An order has been shipped.`,payload:o}),f=n({name:`marketplace.order.completed`,version:1,description:`An order has been completed.`,payload:s});export{f as OrderCompletedEvent,c as OrderCreatedEvent,l as OrderPaidEvent,d as OrderShippedEvent,u as OrderStatusUpdatedEvent};
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/order/order.event.ts
8
+ const OrderCreatedPayload = defineSchemaModel({
9
+ name: "OrderCreatedEventPayload",
10
+ fields: {
11
+ orderId: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: false
14
+ },
15
+ orderNumber: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: false
18
+ },
19
+ buyerId: {
20
+ type: ScalarTypeEnum.String_unsecure(),
21
+ isOptional: false
22
+ },
23
+ storeId: {
24
+ type: ScalarTypeEnum.String_unsecure(),
25
+ isOptional: false
26
+ },
27
+ total: {
28
+ type: ScalarTypeEnum.Float_unsecure(),
29
+ isOptional: false
30
+ },
31
+ currency: {
32
+ type: ScalarTypeEnum.String_unsecure(),
33
+ isOptional: false
34
+ },
35
+ itemCount: {
36
+ type: ScalarTypeEnum.Int_unsecure(),
37
+ isOptional: false
38
+ },
39
+ timestamp: {
40
+ type: ScalarTypeEnum.DateTime(),
41
+ isOptional: false
42
+ }
43
+ }
44
+ });
45
+ const OrderPaidPayload = defineSchemaModel({
46
+ name: "OrderPaidEventPayload",
47
+ fields: {
48
+ orderId: {
49
+ type: ScalarTypeEnum.String_unsecure(),
50
+ isOptional: false
51
+ },
52
+ orderNumber: {
53
+ type: ScalarTypeEnum.String_unsecure(),
54
+ isOptional: false
55
+ },
56
+ total: {
57
+ type: ScalarTypeEnum.Float_unsecure(),
58
+ isOptional: false
59
+ },
60
+ paymentMethod: {
61
+ type: ScalarTypeEnum.String_unsecure(),
62
+ isOptional: false
63
+ },
64
+ timestamp: {
65
+ type: ScalarTypeEnum.DateTime(),
66
+ isOptional: false
67
+ }
68
+ }
69
+ });
70
+ const OrderStatusUpdatedPayload = defineSchemaModel({
71
+ name: "OrderStatusUpdatedEventPayload",
72
+ fields: {
73
+ orderId: {
74
+ type: ScalarTypeEnum.String_unsecure(),
75
+ isOptional: false
76
+ },
77
+ orderNumber: {
78
+ type: ScalarTypeEnum.String_unsecure(),
79
+ isOptional: false
80
+ },
81
+ previousStatus: {
82
+ type: ScalarTypeEnum.String_unsecure(),
83
+ isOptional: false
84
+ },
85
+ newStatus: {
86
+ type: ScalarTypeEnum.String_unsecure(),
87
+ isOptional: false
88
+ },
89
+ updatedBy: {
90
+ type: ScalarTypeEnum.String_unsecure(),
91
+ isOptional: false
92
+ },
93
+ timestamp: {
94
+ type: ScalarTypeEnum.DateTime(),
95
+ isOptional: false
96
+ }
97
+ }
98
+ });
99
+ const OrderShippedPayload = defineSchemaModel({
100
+ name: "OrderShippedEventPayload",
101
+ fields: {
102
+ orderId: {
103
+ type: ScalarTypeEnum.String_unsecure(),
104
+ isOptional: false
105
+ },
106
+ orderNumber: {
107
+ type: ScalarTypeEnum.String_unsecure(),
108
+ isOptional: false
109
+ },
110
+ trackingNumber: {
111
+ type: ScalarTypeEnum.String_unsecure(),
112
+ isOptional: true
113
+ },
114
+ trackingUrl: {
115
+ type: ScalarTypeEnum.String_unsecure(),
116
+ isOptional: true
117
+ },
118
+ carrier: {
119
+ type: ScalarTypeEnum.String_unsecure(),
120
+ isOptional: true
121
+ },
122
+ timestamp: {
123
+ type: ScalarTypeEnum.DateTime(),
124
+ isOptional: false
125
+ }
126
+ }
127
+ });
128
+ const OrderCompletedPayload = defineSchemaModel({
129
+ name: "OrderCompletedEventPayload",
130
+ fields: {
131
+ orderId: {
132
+ type: ScalarTypeEnum.String_unsecure(),
133
+ isOptional: false
134
+ },
135
+ orderNumber: {
136
+ type: ScalarTypeEnum.String_unsecure(),
137
+ isOptional: false
138
+ },
139
+ buyerId: {
140
+ type: ScalarTypeEnum.String_unsecure(),
141
+ isOptional: false
142
+ },
143
+ storeId: {
144
+ type: ScalarTypeEnum.String_unsecure(),
145
+ isOptional: false
146
+ },
147
+ total: {
148
+ type: ScalarTypeEnum.Float_unsecure(),
149
+ isOptional: false
150
+ },
151
+ sellerPayout: {
152
+ type: ScalarTypeEnum.Float_unsecure(),
153
+ isOptional: false
154
+ },
155
+ timestamp: {
156
+ type: ScalarTypeEnum.DateTime(),
157
+ isOptional: false
158
+ }
159
+ }
160
+ });
161
+ const OrderCreatedEvent = defineEvent({
162
+ name: "marketplace.order.created",
163
+ version: 1,
164
+ description: "A new order has been created.",
165
+ payload: OrderCreatedPayload
166
+ });
167
+ const OrderPaidEvent = defineEvent({
168
+ name: "marketplace.order.paid",
169
+ version: 1,
170
+ description: "An order has been paid.",
171
+ payload: OrderPaidPayload
172
+ });
173
+ const OrderStatusUpdatedEvent = defineEvent({
174
+ name: "marketplace.order.statusUpdated",
175
+ version: 1,
176
+ description: "An order status has been updated.",
177
+ payload: OrderStatusUpdatedPayload
178
+ });
179
+ const OrderShippedEvent = defineEvent({
180
+ name: "marketplace.order.shipped",
181
+ version: 1,
182
+ description: "An order has been shipped.",
183
+ payload: OrderShippedPayload
184
+ });
185
+ const OrderCompletedEvent = defineEvent({
186
+ name: "marketplace.order.completed",
187
+ version: 1,
188
+ description: "An order has been completed.",
189
+ payload: OrderCompletedPayload
190
+ });
191
+
192
+ //#endregion
193
+ export { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent };
@@ -1 +1,72 @@
1
- import{OrderModel as e}from"./order.schema.js";const t={meta:{name:`marketplace.order.list`,version:1,description:`List of orders with status and tracking`,domain:`marketplace`,owners:[`@marketplace-team`],tags:[`marketplace`,`order`,`list`]},source:{type:`component`,framework:`react`,componentKey:`OrderList`,props:e},targets:[`react`,`markdown`],policy:{flags:[`marketplace.orders.enabled`]}},n={meta:{name:`marketplace.order.detail`,version:1,description:`Order detail with items and shipping info`,domain:`marketplace`,owners:[`@marketplace-team`],tags:[`marketplace`,`order`,`detail`]},source:{type:`component`,framework:`react`,componentKey:`OrderDetail`,props:e},targets:[`react`,`markdown`],policy:{flags:[`marketplace.orders.enabled`]}},r={meta:{name:`marketplace.checkout`,version:1,description:`Checkout flow with cart and payment`,domain:`marketplace`,owners:[`@marketplace-team`],tags:[`marketplace`,`checkout`,`cart`]},source:{type:`component`,framework:`react`,componentKey:`Checkout`,props:e},targets:[`react`],policy:{flags:[`marketplace.checkout.enabled`]}};export{r as CheckoutPresentation,n as OrderDetailPresentation,t as OrderListPresentation};
1
+ import { OrderModel } from "./order.schema.js";
2
+
3
+ //#region src/order/order.presentation.ts
4
+ const OrderListPresentation = {
5
+ meta: {
6
+ name: "marketplace.order.list",
7
+ version: 1,
8
+ description: "List of orders with status and tracking",
9
+ domain: "marketplace",
10
+ owners: ["@marketplace-team"],
11
+ tags: [
12
+ "marketplace",
13
+ "order",
14
+ "list"
15
+ ]
16
+ },
17
+ source: {
18
+ type: "component",
19
+ framework: "react",
20
+ componentKey: "OrderList",
21
+ props: OrderModel
22
+ },
23
+ targets: ["react", "markdown"],
24
+ policy: { flags: ["marketplace.orders.enabled"] }
25
+ };
26
+ const OrderDetailPresentation = {
27
+ meta: {
28
+ name: "marketplace.order.detail",
29
+ version: 1,
30
+ description: "Order detail with items and shipping info",
31
+ domain: "marketplace",
32
+ owners: ["@marketplace-team"],
33
+ tags: [
34
+ "marketplace",
35
+ "order",
36
+ "detail"
37
+ ]
38
+ },
39
+ source: {
40
+ type: "component",
41
+ framework: "react",
42
+ componentKey: "OrderDetail",
43
+ props: OrderModel
44
+ },
45
+ targets: ["react", "markdown"],
46
+ policy: { flags: ["marketplace.orders.enabled"] }
47
+ };
48
+ const CheckoutPresentation = {
49
+ meta: {
50
+ name: "marketplace.checkout",
51
+ version: 1,
52
+ description: "Checkout flow with cart and payment",
53
+ domain: "marketplace",
54
+ owners: ["@marketplace-team"],
55
+ tags: [
56
+ "marketplace",
57
+ "checkout",
58
+ "cart"
59
+ ]
60
+ },
61
+ source: {
62
+ type: "component",
63
+ framework: "react",
64
+ componentKey: "Checkout",
65
+ props: OrderModel
66
+ },
67
+ targets: ["react"],
68
+ policy: { flags: ["marketplace.checkout.enabled"] }
69
+ };
70
+
71
+ //#endregion
72
+ export { CheckoutPresentation, OrderDetailPresentation, OrderListPresentation };
@@ -1,103 +1,103 @@
1
- import * as _lssm_lib_schema1062 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema739 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/order/order.schema.d.ts
4
4
  /**
5
5
  * An order item.
6
6
  */
7
- declare const OrderItemModel: _lssm_lib_schema1062.SchemaModel<{
7
+ declare const OrderItemModel: _lssm_lib_schema739.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema1062.FieldType<string, string>;
9
+ type: _lssm_lib_schema739.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  productId: {
13
- type: _lssm_lib_schema1062.FieldType<string, string>;
13
+ type: _lssm_lib_schema739.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  productName: {
17
- type: _lssm_lib_schema1062.FieldType<string, string>;
17
+ type: _lssm_lib_schema739.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  unitPrice: {
21
- type: _lssm_lib_schema1062.FieldType<number, number>;
21
+ type: _lssm_lib_schema739.FieldType<number, number>;
22
22
  isOptional: false;
23
23
  };
24
24
  quantity: {
25
- type: _lssm_lib_schema1062.FieldType<number, number>;
25
+ type: _lssm_lib_schema739.FieldType<number, number>;
26
26
  isOptional: false;
27
27
  };
28
28
  subtotal: {
29
- type: _lssm_lib_schema1062.FieldType<number, number>;
29
+ type: _lssm_lib_schema739.FieldType<number, number>;
30
30
  isOptional: false;
31
31
  };
32
32
  }>;
33
33
  /**
34
34
  * An order.
35
35
  */
36
- declare const OrderModel: _lssm_lib_schema1062.SchemaModel<{
36
+ declare const OrderModel: _lssm_lib_schema739.SchemaModel<{
37
37
  id: {
38
- type: _lssm_lib_schema1062.FieldType<string, string>;
38
+ type: _lssm_lib_schema739.FieldType<string, string>;
39
39
  isOptional: false;
40
40
  };
41
41
  orderNumber: {
42
- type: _lssm_lib_schema1062.FieldType<string, string>;
42
+ type: _lssm_lib_schema739.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  buyerId: {
46
- type: _lssm_lib_schema1062.FieldType<string, string>;
46
+ type: _lssm_lib_schema739.FieldType<string, string>;
47
47
  isOptional: false;
48
48
  };
49
49
  storeId: {
50
- type: _lssm_lib_schema1062.FieldType<string, string>;
50
+ type: _lssm_lib_schema739.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  status: {
54
- type: _lssm_lib_schema1062.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
54
+ type: _lssm_lib_schema739.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
55
55
  isOptional: false;
56
56
  };
57
57
  subtotal: {
58
- type: _lssm_lib_schema1062.FieldType<number, number>;
58
+ type: _lssm_lib_schema739.FieldType<number, number>;
59
59
  isOptional: false;
60
60
  };
61
61
  shippingTotal: {
62
- type: _lssm_lib_schema1062.FieldType<number, number>;
62
+ type: _lssm_lib_schema739.FieldType<number, number>;
63
63
  isOptional: false;
64
64
  };
65
65
  taxTotal: {
66
- type: _lssm_lib_schema1062.FieldType<number, number>;
66
+ type: _lssm_lib_schema739.FieldType<number, number>;
67
67
  isOptional: false;
68
68
  };
69
69
  total: {
70
- type: _lssm_lib_schema1062.FieldType<number, number>;
70
+ type: _lssm_lib_schema739.FieldType<number, number>;
71
71
  isOptional: false;
72
72
  };
73
73
  currency: {
74
- type: _lssm_lib_schema1062.FieldType<string, string>;
74
+ type: _lssm_lib_schema739.FieldType<string, string>;
75
75
  isOptional: false;
76
76
  };
77
77
  items: {
78
- type: _lssm_lib_schema1062.SchemaModel<{
78
+ type: _lssm_lib_schema739.SchemaModel<{
79
79
  id: {
80
- type: _lssm_lib_schema1062.FieldType<string, string>;
80
+ type: _lssm_lib_schema739.FieldType<string, string>;
81
81
  isOptional: false;
82
82
  };
83
83
  productId: {
84
- type: _lssm_lib_schema1062.FieldType<string, string>;
84
+ type: _lssm_lib_schema739.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  productName: {
88
- type: _lssm_lib_schema1062.FieldType<string, string>;
88
+ type: _lssm_lib_schema739.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  unitPrice: {
92
- type: _lssm_lib_schema1062.FieldType<number, number>;
92
+ type: _lssm_lib_schema739.FieldType<number, number>;
93
93
  isOptional: false;
94
94
  };
95
95
  quantity: {
96
- type: _lssm_lib_schema1062.FieldType<number, number>;
96
+ type: _lssm_lib_schema739.FieldType<number, number>;
97
97
  isOptional: false;
98
98
  };
99
99
  subtotal: {
100
- type: _lssm_lib_schema1062.FieldType<number, number>;
100
+ type: _lssm_lib_schema739.FieldType<number, number>;
101
101
  isOptional: false;
102
102
  };
103
103
  }>;
@@ -105,58 +105,58 @@ declare const OrderModel: _lssm_lib_schema1062.SchemaModel<{
105
105
  isOptional: true;
106
106
  };
107
107
  createdAt: {
108
- type: _lssm_lib_schema1062.FieldType<Date, string>;
108
+ type: _lssm_lib_schema739.FieldType<Date, string>;
109
109
  isOptional: false;
110
110
  };
111
111
  }>;
112
112
  /**
113
113
  * Input for creating an order.
114
114
  */
115
- declare const CreateOrderInputModel: _lssm_lib_schema1062.SchemaModel<{
115
+ declare const CreateOrderInputModel: _lssm_lib_schema739.SchemaModel<{
116
116
  storeId: {
117
- type: _lssm_lib_schema1062.FieldType<string, string>;
117
+ type: _lssm_lib_schema739.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  items: {
121
- type: _lssm_lib_schema1062.FieldType<unknown, unknown>;
121
+ type: _lssm_lib_schema739.FieldType<unknown, unknown>;
122
122
  isOptional: false;
123
123
  description: string;
124
124
  };
125
125
  shippingAddress: {
126
- type: _lssm_lib_schema1062.FieldType<unknown, unknown>;
126
+ type: _lssm_lib_schema739.FieldType<unknown, unknown>;
127
127
  isOptional: true;
128
128
  };
129
129
  billingAddress: {
130
- type: _lssm_lib_schema1062.FieldType<unknown, unknown>;
130
+ type: _lssm_lib_schema739.FieldType<unknown, unknown>;
131
131
  isOptional: true;
132
132
  };
133
133
  buyerNote: {
134
- type: _lssm_lib_schema1062.FieldType<string, string>;
134
+ type: _lssm_lib_schema739.FieldType<string, string>;
135
135
  isOptional: true;
136
136
  };
137
137
  }>;
138
138
  /**
139
139
  * Input for updating order status.
140
140
  */
141
- declare const UpdateOrderStatusInputModel: _lssm_lib_schema1062.SchemaModel<{
141
+ declare const UpdateOrderStatusInputModel: _lssm_lib_schema739.SchemaModel<{
142
142
  orderId: {
143
- type: _lssm_lib_schema1062.FieldType<string, string>;
143
+ type: _lssm_lib_schema739.FieldType<string, string>;
144
144
  isOptional: false;
145
145
  };
146
146
  status: {
147
- type: _lssm_lib_schema1062.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
147
+ type: _lssm_lib_schema739.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
148
148
  isOptional: false;
149
149
  };
150
150
  trackingNumber: {
151
- type: _lssm_lib_schema1062.FieldType<string, string>;
151
+ type: _lssm_lib_schema739.FieldType<string, string>;
152
152
  isOptional: true;
153
153
  };
154
154
  trackingUrl: {
155
- type: _lssm_lib_schema1062.FieldType<string, string>;
155
+ type: _lssm_lib_schema739.FieldType<string, string>;
156
156
  isOptional: true;
157
157
  };
158
158
  note: {
159
- type: _lssm_lib_schema1062.FieldType<string, string>;
159
+ type: _lssm_lib_schema739.FieldType<string, string>;
160
160
  isOptional: true;
161
161
  };
162
162
  }>;