@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 +1,156 @@
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{OrderStatusEnum as n}from"./order.enum.js";const r=t({name:`OrderItemModel`,fields:{id:{type:e.String_unsecure(),isOptional:!1},productId:{type:e.String_unsecure(),isOptional:!1},productName:{type:e.String_unsecure(),isOptional:!1},unitPrice:{type:e.Float_unsecure(),isOptional:!1},quantity:{type:e.Int_unsecure(),isOptional:!1},subtotal:{type:e.Float_unsecure(),isOptional:!1}}}),i=t({name:`OrderModel`,description:`An order`,fields:{id:{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},status:{type:n,isOptional:!1},subtotal:{type:e.Float_unsecure(),isOptional:!1},shippingTotal:{type:e.Float_unsecure(),isOptional:!1},taxTotal:{type:e.Float_unsecure(),isOptional:!1},total:{type:e.Float_unsecure(),isOptional:!1},currency:{type:e.String_unsecure(),isOptional:!1},items:{type:r,isArray:!0,isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1}}}),a=t({name:`CreateOrderInput`,fields:{storeId:{type:e.String_unsecure(),isOptional:!1},items:{type:e.JSON(),isOptional:!1,description:`Array of {productId, variantId?, quantity}`},shippingAddress:{type:e.JSON(),isOptional:!0},billingAddress:{type:e.JSON(),isOptional:!0},buyerNote:{type:e.String_unsecure(),isOptional:!0}}}),o=t({name:`UpdateOrderStatusInput`,fields:{orderId:{type:e.String_unsecure(),isOptional:!1},status:{type:n,isOptional:!1},trackingNumber:{type:e.String_unsecure(),isOptional:!0},trackingUrl:{type:e.String_unsecure(),isOptional:!0},note:{type:e.String_unsecure(),isOptional:!0}}});export{a as CreateOrderInputModel,r as OrderItemModel,i as OrderModel,o as UpdateOrderStatusInputModel};
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 { OrderStatusEnum } from "./order.enum.js";
5
+
6
+ //#region src/order/order.schema.ts
7
+ /**
8
+ * An order item.
9
+ */
10
+ const OrderItemModel = defineSchemaModel({
11
+ name: "OrderItemModel",
12
+ fields: {
13
+ id: {
14
+ type: ScalarTypeEnum.String_unsecure(),
15
+ isOptional: false
16
+ },
17
+ productId: {
18
+ type: ScalarTypeEnum.String_unsecure(),
19
+ isOptional: false
20
+ },
21
+ productName: {
22
+ type: ScalarTypeEnum.String_unsecure(),
23
+ isOptional: false
24
+ },
25
+ unitPrice: {
26
+ type: ScalarTypeEnum.Float_unsecure(),
27
+ isOptional: false
28
+ },
29
+ quantity: {
30
+ type: ScalarTypeEnum.Int_unsecure(),
31
+ isOptional: false
32
+ },
33
+ subtotal: {
34
+ type: ScalarTypeEnum.Float_unsecure(),
35
+ isOptional: false
36
+ }
37
+ }
38
+ });
39
+ /**
40
+ * An order.
41
+ */
42
+ const OrderModel = defineSchemaModel({
43
+ name: "OrderModel",
44
+ description: "An order",
45
+ fields: {
46
+ id: {
47
+ type: ScalarTypeEnum.String_unsecure(),
48
+ isOptional: false
49
+ },
50
+ orderNumber: {
51
+ type: ScalarTypeEnum.String_unsecure(),
52
+ isOptional: false
53
+ },
54
+ buyerId: {
55
+ type: ScalarTypeEnum.String_unsecure(),
56
+ isOptional: false
57
+ },
58
+ storeId: {
59
+ type: ScalarTypeEnum.String_unsecure(),
60
+ isOptional: false
61
+ },
62
+ status: {
63
+ type: OrderStatusEnum,
64
+ isOptional: false
65
+ },
66
+ subtotal: {
67
+ type: ScalarTypeEnum.Float_unsecure(),
68
+ isOptional: false
69
+ },
70
+ shippingTotal: {
71
+ type: ScalarTypeEnum.Float_unsecure(),
72
+ isOptional: false
73
+ },
74
+ taxTotal: {
75
+ type: ScalarTypeEnum.Float_unsecure(),
76
+ isOptional: false
77
+ },
78
+ total: {
79
+ type: ScalarTypeEnum.Float_unsecure(),
80
+ isOptional: false
81
+ },
82
+ currency: {
83
+ type: ScalarTypeEnum.String_unsecure(),
84
+ isOptional: false
85
+ },
86
+ items: {
87
+ type: OrderItemModel,
88
+ isArray: true,
89
+ isOptional: true
90
+ },
91
+ createdAt: {
92
+ type: ScalarTypeEnum.DateTime(),
93
+ isOptional: false
94
+ }
95
+ }
96
+ });
97
+ /**
98
+ * Input for creating an order.
99
+ */
100
+ const CreateOrderInputModel = defineSchemaModel({
101
+ name: "CreateOrderInput",
102
+ fields: {
103
+ storeId: {
104
+ type: ScalarTypeEnum.String_unsecure(),
105
+ isOptional: false
106
+ },
107
+ items: {
108
+ type: ScalarTypeEnum.JSON(),
109
+ isOptional: false,
110
+ description: "Array of {productId, variantId?, quantity}"
111
+ },
112
+ shippingAddress: {
113
+ type: ScalarTypeEnum.JSON(),
114
+ isOptional: true
115
+ },
116
+ billingAddress: {
117
+ type: ScalarTypeEnum.JSON(),
118
+ isOptional: true
119
+ },
120
+ buyerNote: {
121
+ type: ScalarTypeEnum.String_unsecure(),
122
+ isOptional: true
123
+ }
124
+ }
125
+ });
126
+ /**
127
+ * Input for updating order status.
128
+ */
129
+ const UpdateOrderStatusInputModel = defineSchemaModel({
130
+ name: "UpdateOrderStatusInput",
131
+ fields: {
132
+ orderId: {
133
+ type: ScalarTypeEnum.String_unsecure(),
134
+ isOptional: false
135
+ },
136
+ status: {
137
+ type: OrderStatusEnum,
138
+ isOptional: false
139
+ },
140
+ trackingNumber: {
141
+ type: ScalarTypeEnum.String_unsecure(),
142
+ isOptional: true
143
+ },
144
+ trackingUrl: {
145
+ type: ScalarTypeEnum.String_unsecure(),
146
+ isOptional: true
147
+ },
148
+ note: {
149
+ type: ScalarTypeEnum.String_unsecure(),
150
+ isOptional: true
151
+ }
152
+ }
153
+ });
154
+
155
+ //#endregion
156
+ export { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel };
@@ -1 +1,6 @@
1
- import{PayoutStatusEnum as e}from"./payout.enum.js";import{ListPayoutsInputModel as t,ListPayoutsOutputModel as n,PayoutModel as r}from"./payout.schema.js";import{ListPayoutsContract as i}from"./payout.contracts.js";import{PayoutCreatedEvent as a,PayoutPaidEvent as o}from"./payout.event.js";export{i as ListPayoutsContract,t as ListPayoutsInputModel,n as ListPayoutsOutputModel,a as PayoutCreatedEvent,r as PayoutModel,o as PayoutPaidEvent,e as PayoutStatusEnum};
1
+ import { PayoutStatusEnum } from "./payout.enum.js";
2
+ import { ListPayoutsInputModel, ListPayoutsOutputModel, PayoutModel } from "./payout.schema.js";
3
+ import { ListPayoutsContract } from "./payout.contracts.js";
4
+ import { PayoutCreatedEvent, PayoutPaidEvent } from "./payout.event.js";
5
+
6
+ export { ListPayoutsContract, ListPayoutsInputModel, ListPayoutsOutputModel, PayoutCreatedEvent, PayoutModel, PayoutPaidEvent, PayoutStatusEnum };
@@ -1,82 +1,82 @@
1
- import * as _lssm_lib_schema919 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts15 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema920 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts16 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/payout/payout.contracts.d.ts
5
5
  /**
6
6
  * List payouts for a store.
7
7
  */
8
- declare const ListPayoutsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema919.SchemaModel<{
8
+ declare const ListPayoutsContract: _lssm_lib_contracts16.ContractSpec<_lssm_lib_schema920.SchemaModel<{
9
9
  storeId: {
10
- type: _lssm_lib_schema919.FieldType<string, string>;
10
+ type: _lssm_lib_schema920.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  status: {
14
- type: _lssm_lib_schema919.EnumType<[string, string, string, string, string]>;
14
+ type: _lssm_lib_schema920.EnumType<[string, string, string, string, string]>;
15
15
  isOptional: true;
16
16
  };
17
17
  limit: {
18
- type: _lssm_lib_schema919.FieldType<number, number>;
18
+ type: _lssm_lib_schema920.FieldType<number, number>;
19
19
  isOptional: true;
20
20
  defaultValue: number;
21
21
  };
22
22
  offset: {
23
- type: _lssm_lib_schema919.FieldType<number, number>;
23
+ type: _lssm_lib_schema920.FieldType<number, number>;
24
24
  isOptional: true;
25
25
  defaultValue: number;
26
26
  };
27
- }>, _lssm_lib_schema919.SchemaModel<{
27
+ }>, _lssm_lib_schema920.SchemaModel<{
28
28
  payouts: {
29
- type: _lssm_lib_schema919.SchemaModel<{
29
+ type: _lssm_lib_schema920.SchemaModel<{
30
30
  id: {
31
- type: _lssm_lib_schema919.FieldType<string, string>;
31
+ type: _lssm_lib_schema920.FieldType<string, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  payoutNumber: {
35
- type: _lssm_lib_schema919.FieldType<string, string>;
35
+ type: _lssm_lib_schema920.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  storeId: {
39
- type: _lssm_lib_schema919.FieldType<string, string>;
39
+ type: _lssm_lib_schema920.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  status: {
43
- type: _lssm_lib_schema919.EnumType<[string, string, string, string, string]>;
43
+ type: _lssm_lib_schema920.EnumType<[string, string, string, string, string]>;
44
44
  isOptional: false;
45
45
  };
46
46
  grossAmount: {
47
- type: _lssm_lib_schema919.FieldType<number, number>;
47
+ type: _lssm_lib_schema920.FieldType<number, number>;
48
48
  isOptional: false;
49
49
  };
50
50
  platformFees: {
51
- type: _lssm_lib_schema919.FieldType<number, number>;
51
+ type: _lssm_lib_schema920.FieldType<number, number>;
52
52
  isOptional: false;
53
53
  };
54
54
  netAmount: {
55
- type: _lssm_lib_schema919.FieldType<number, number>;
55
+ type: _lssm_lib_schema920.FieldType<number, number>;
56
56
  isOptional: false;
57
57
  };
58
58
  currency: {
59
- type: _lssm_lib_schema919.FieldType<string, string>;
59
+ type: _lssm_lib_schema920.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  periodStart: {
63
- type: _lssm_lib_schema919.FieldType<Date, string>;
63
+ type: _lssm_lib_schema920.FieldType<Date, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  periodEnd: {
67
- type: _lssm_lib_schema919.FieldType<Date, string>;
67
+ type: _lssm_lib_schema920.FieldType<Date, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  orderCount: {
71
- type: _lssm_lib_schema919.FieldType<number, number>;
71
+ type: _lssm_lib_schema920.FieldType<number, number>;
72
72
  isOptional: false;
73
73
  };
74
74
  createdAt: {
75
- type: _lssm_lib_schema919.FieldType<Date, string>;
75
+ type: _lssm_lib_schema920.FieldType<Date, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  paidAt: {
79
- type: _lssm_lib_schema919.FieldType<Date, string>;
79
+ type: _lssm_lib_schema920.FieldType<Date, string>;
80
80
  isOptional: true;
81
81
  };
82
82
  }>;
@@ -84,11 +84,11 @@ declare const ListPayoutsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_
84
84
  isOptional: false;
85
85
  };
86
86
  total: {
87
- type: _lssm_lib_schema919.FieldType<number, number>;
87
+ type: _lssm_lib_schema920.FieldType<number, number>;
88
88
  isOptional: false;
89
89
  };
90
90
  totalPending: {
91
- type: _lssm_lib_schema919.FieldType<number, number>;
91
+ type: _lssm_lib_schema920.FieldType<number, number>;
92
92
  isOptional: false;
93
93
  };
94
94
  }>, undefined>;
@@ -1 +1,32 @@
1
- import{n as e}from"../libs/contracts/dist/spec.js";import{ListPayoutsInputModel as t,ListPayoutsOutputModel as n}from"./payout.schema.js";const r=e({meta:{name:`marketplace.payout.list`,version:1,stability:`stable`,owners:[...[`@example.marketplace`]],tags:[`marketplace`,`payout`,`list`],description:`List payouts for a store.`,goal:`View payout history.`,context:`Seller dashboard.`},io:{input:t,output:n},policy:{auth:`user`}});export{r as ListPayoutsContract};
1
+ import { defineQuery } from "../libs/contracts/dist/spec.js";
2
+ import { ListPayoutsInputModel, ListPayoutsOutputModel } from "./payout.schema.js";
3
+
4
+ //#region src/payout/payout.contracts.ts
5
+ const OWNERS = ["@example.marketplace"];
6
+ /**
7
+ * List payouts for a store.
8
+ */
9
+ const ListPayoutsContract = defineQuery({
10
+ meta: {
11
+ name: "marketplace.payout.list",
12
+ version: 1,
13
+ stability: "stable",
14
+ owners: [...OWNERS],
15
+ tags: [
16
+ "marketplace",
17
+ "payout",
18
+ "list"
19
+ ],
20
+ description: "List payouts for a store.",
21
+ goal: "View payout history.",
22
+ context: "Seller dashboard."
23
+ },
24
+ io: {
25
+ input: ListPayoutsInputModel,
26
+ output: ListPayoutsOutputModel
27
+ },
28
+ policy: { auth: "user" }
29
+ });
30
+
31
+ //#endregion
32
+ export { ListPayoutsContract };
@@ -1,9 +1,9 @@
1
- import * as _lssm_lib_schema918 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema501 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/payout/payout.enum.d.ts
4
4
  /**
5
5
  * Payout status enum.
6
6
  */
7
- declare const PayoutStatusEnum: _lssm_lib_schema918.EnumType<[string, string, string, string, string]>;
7
+ declare const PayoutStatusEnum: _lssm_lib_schema501.EnumType<[string, string, string, string, string]>;
8
8
  //#endregion
9
9
  export { PayoutStatusEnum };
@@ -1 +1,17 @@
1
- import{r as e}from"../libs/schema/dist/EnumType.js";import"../libs/schema/dist/index.js";const t=e(`PayoutStatus`,[`PENDING`,`PROCESSING`,`PAID`,`FAILED`,`CANCELLED`]);export{t as PayoutStatusEnum};
1
+ import { defineEnum } from "../libs/schema/dist/EnumType.js";
2
+ import "../libs/schema/dist/index.js";
3
+
4
+ //#region src/payout/payout.enum.ts
5
+ /**
6
+ * Payout status enum.
7
+ */
8
+ const PayoutStatusEnum = defineEnum("PayoutStatus", [
9
+ "PENDING",
10
+ "PROCESSING",
11
+ "PAID",
12
+ "FAILED",
13
+ "CANCELLED"
14
+ ]);
15
+
16
+ //#endregion
17
+ export { PayoutStatusEnum };
@@ -1,60 +1,60 @@
1
- import * as _lssm_lib_schema683 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts1 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema504 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts6 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/payout/payout.event.d.ts
5
- declare const PayoutCreatedEvent: _lssm_lib_contracts1.EventSpec<_lssm_lib_schema683.SchemaModel<{
5
+ declare const PayoutCreatedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema504.SchemaModel<{
6
6
  payoutId: {
7
- type: _lssm_lib_schema683.FieldType<string, string>;
7
+ type: _lssm_lib_schema504.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  payoutNumber: {
11
- type: _lssm_lib_schema683.FieldType<string, string>;
11
+ type: _lssm_lib_schema504.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  storeId: {
15
- type: _lssm_lib_schema683.FieldType<string, string>;
15
+ type: _lssm_lib_schema504.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  netAmount: {
19
- type: _lssm_lib_schema683.FieldType<number, number>;
19
+ type: _lssm_lib_schema504.FieldType<number, number>;
20
20
  isOptional: false;
21
21
  };
22
22
  currency: {
23
- type: _lssm_lib_schema683.FieldType<string, string>;
23
+ type: _lssm_lib_schema504.FieldType<string, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  orderCount: {
27
- type: _lssm_lib_schema683.FieldType<number, number>;
27
+ type: _lssm_lib_schema504.FieldType<number, number>;
28
28
  isOptional: false;
29
29
  };
30
30
  timestamp: {
31
- type: _lssm_lib_schema683.FieldType<Date, string>;
31
+ type: _lssm_lib_schema504.FieldType<Date, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  }>>;
35
- declare const PayoutPaidEvent: _lssm_lib_contracts1.EventSpec<_lssm_lib_schema683.SchemaModel<{
35
+ declare const PayoutPaidEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema504.SchemaModel<{
36
36
  payoutId: {
37
- type: _lssm_lib_schema683.FieldType<string, string>;
37
+ type: _lssm_lib_schema504.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  payoutNumber: {
41
- type: _lssm_lib_schema683.FieldType<string, string>;
41
+ type: _lssm_lib_schema504.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  storeId: {
45
- type: _lssm_lib_schema683.FieldType<string, string>;
45
+ type: _lssm_lib_schema504.FieldType<string, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  netAmount: {
49
- type: _lssm_lib_schema683.FieldType<number, number>;
49
+ type: _lssm_lib_schema504.FieldType<number, number>;
50
50
  isOptional: false;
51
51
  };
52
52
  paymentReference: {
53
- type: _lssm_lib_schema683.FieldType<string, string>;
53
+ type: _lssm_lib_schema504.FieldType<string, string>;
54
54
  isOptional: true;
55
55
  };
56
56
  timestamp: {
57
- type: _lssm_lib_schema683.FieldType<Date, string>;
57
+ type: _lssm_lib_schema504.FieldType<Date, string>;
58
58
  isOptional: false;
59
59
  };
60
60
  }>>;
@@ -1 +1,84 @@
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:`PayoutCreatedEventPayload`,fields:{payoutId:{type:e.String_unsecure(),isOptional:!1},payoutNumber:{type:e.String_unsecure(),isOptional:!1},storeId:{type:e.String_unsecure(),isOptional:!1},netAmount:{type:e.Float_unsecure(),isOptional:!1},currency:{type:e.String_unsecure(),isOptional:!1},orderCount:{type:e.Int_unsecure(),isOptional:!1},timestamp:{type:e.DateTime(),isOptional:!1}}}),i=t({name:`PayoutPaidEventPayload`,fields:{payoutId:{type:e.String_unsecure(),isOptional:!1},payoutNumber:{type:e.String_unsecure(),isOptional:!1},storeId:{type:e.String_unsecure(),isOptional:!1},netAmount:{type:e.Float_unsecure(),isOptional:!1},paymentReference:{type:e.String_unsecure(),isOptional:!0},timestamp:{type:e.DateTime(),isOptional:!1}}}),a=n({name:`marketplace.payout.created`,version:1,description:`A payout has been created.`,payload:r}),o=n({name:`marketplace.payout.paid`,version:1,description:`A payout has been sent.`,payload:i});export{a as PayoutCreatedEvent,o as PayoutPaidEvent};
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/payout/payout.event.ts
8
+ const PayoutCreatedPayload = defineSchemaModel({
9
+ name: "PayoutCreatedEventPayload",
10
+ fields: {
11
+ payoutId: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: false
14
+ },
15
+ payoutNumber: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: false
18
+ },
19
+ storeId: {
20
+ type: ScalarTypeEnum.String_unsecure(),
21
+ isOptional: false
22
+ },
23
+ netAmount: {
24
+ type: ScalarTypeEnum.Float_unsecure(),
25
+ isOptional: false
26
+ },
27
+ currency: {
28
+ type: ScalarTypeEnum.String_unsecure(),
29
+ isOptional: false
30
+ },
31
+ orderCount: {
32
+ type: ScalarTypeEnum.Int_unsecure(),
33
+ isOptional: false
34
+ },
35
+ timestamp: {
36
+ type: ScalarTypeEnum.DateTime(),
37
+ isOptional: false
38
+ }
39
+ }
40
+ });
41
+ const PayoutPaidPayload = defineSchemaModel({
42
+ name: "PayoutPaidEventPayload",
43
+ fields: {
44
+ payoutId: {
45
+ type: ScalarTypeEnum.String_unsecure(),
46
+ isOptional: false
47
+ },
48
+ payoutNumber: {
49
+ type: ScalarTypeEnum.String_unsecure(),
50
+ isOptional: false
51
+ },
52
+ storeId: {
53
+ type: ScalarTypeEnum.String_unsecure(),
54
+ isOptional: false
55
+ },
56
+ netAmount: {
57
+ type: ScalarTypeEnum.Float_unsecure(),
58
+ isOptional: false
59
+ },
60
+ paymentReference: {
61
+ type: ScalarTypeEnum.String_unsecure(),
62
+ isOptional: true
63
+ },
64
+ timestamp: {
65
+ type: ScalarTypeEnum.DateTime(),
66
+ isOptional: false
67
+ }
68
+ }
69
+ });
70
+ const PayoutCreatedEvent = defineEvent({
71
+ name: "marketplace.payout.created",
72
+ version: 1,
73
+ description: "A payout has been created.",
74
+ payload: PayoutCreatedPayload
75
+ });
76
+ const PayoutPaidEvent = defineEvent({
77
+ name: "marketplace.payout.paid",
78
+ version: 1,
79
+ description: "A payout has been sent.",
80
+ payload: PayoutPaidPayload
81
+ });
82
+
83
+ //#endregion
84
+ export { PayoutCreatedEvent, PayoutPaidEvent };
@@ -1 +1,50 @@
1
- import{PayoutModel as e}from"./payout.schema.js";const t={meta:{name:`marketplace.payout.list`,version:1,description:`List of payouts for sellers`,domain:`marketplace`,owners:[`@marketplace-team`],tags:[`marketplace`,`payout`,`list`]},source:{type:`component`,framework:`react`,componentKey:`PayoutList`,props:e},targets:[`react`,`markdown`],policy:{flags:[`marketplace.payouts.enabled`]}},n={meta:{name:`marketplace.payout.detail`,version:1,description:`Payout detail with breakdown`,domain:`marketplace`,owners:[`@marketplace-team`],tags:[`marketplace`,`payout`,`detail`]},source:{type:`component`,framework:`react`,componentKey:`PayoutDetail`,props:e},targets:[`react`,`markdown`],policy:{flags:[`marketplace.payouts.enabled`]}};export{n as PayoutDetailPresentation,t as PayoutListPresentation};
1
+ import { PayoutModel } from "./payout.schema.js";
2
+
3
+ //#region src/payout/payout.presentation.ts
4
+ const PayoutListPresentation = {
5
+ meta: {
6
+ name: "marketplace.payout.list",
7
+ version: 1,
8
+ description: "List of payouts for sellers",
9
+ domain: "marketplace",
10
+ owners: ["@marketplace-team"],
11
+ tags: [
12
+ "marketplace",
13
+ "payout",
14
+ "list"
15
+ ]
16
+ },
17
+ source: {
18
+ type: "component",
19
+ framework: "react",
20
+ componentKey: "PayoutList",
21
+ props: PayoutModel
22
+ },
23
+ targets: ["react", "markdown"],
24
+ policy: { flags: ["marketplace.payouts.enabled"] }
25
+ };
26
+ const PayoutDetailPresentation = {
27
+ meta: {
28
+ name: "marketplace.payout.detail",
29
+ version: 1,
30
+ description: "Payout detail with breakdown",
31
+ domain: "marketplace",
32
+ owners: ["@marketplace-team"],
33
+ tags: [
34
+ "marketplace",
35
+ "payout",
36
+ "detail"
37
+ ]
38
+ },
39
+ source: {
40
+ type: "component",
41
+ framework: "react",
42
+ componentKey: "PayoutDetail",
43
+ props: PayoutModel
44
+ },
45
+ targets: ["react", "markdown"],
46
+ policy: { flags: ["marketplace.payouts.enabled"] }
47
+ };
48
+
49
+ //#endregion
50
+ export { PayoutDetailPresentation, PayoutListPresentation };