@lssm/example.marketplace 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821

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 (277) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/docs/marketplace.docblock.js +2 -1
  4. package/dist/docs/marketplace.docblock.js.map +1 -0
  5. package/dist/entities/index.d.ts +298 -297
  6. package/dist/entities/index.d.ts.map +1 -0
  7. package/dist/entities/index.js +2 -1
  8. package/dist/entities/index.js.map +1 -0
  9. package/dist/entities/order.d.ts +80 -79
  10. package/dist/entities/order.d.ts.map +1 -0
  11. package/dist/entities/order.js +89 -89
  12. package/dist/entities/order.js.map +1 -0
  13. package/dist/entities/payout.d.ts +67 -66
  14. package/dist/entities/payout.d.ts.map +1 -0
  15. package/dist/entities/payout.js +74 -74
  16. package/dist/entities/payout.js.map +1 -0
  17. package/dist/entities/product.d.ts +72 -71
  18. package/dist/entities/product.d.ts.map +1 -0
  19. package/dist/entities/product.js +86 -86
  20. package/dist/entities/product.js.map +1 -0
  21. package/dist/entities/review.d.ts +58 -57
  22. package/dist/entities/review.d.ts.map +1 -0
  23. package/dist/entities/review.js +70 -70
  24. package/dist/entities/review.js.map +1 -0
  25. package/dist/entities/store.d.ts +43 -42
  26. package/dist/entities/store.d.ts.map +1 -0
  27. package/dist/entities/store.js +49 -49
  28. package/dist/entities/store.js.map +1 -0
  29. package/dist/example.d.ts +2 -1
  30. package/dist/example.d.ts.map +1 -0
  31. package/dist/example.js +2 -1
  32. package/dist/example.js.map +1 -0
  33. package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
  34. package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
  35. package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
  36. package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
  37. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
  38. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
  39. package/dist/libs/contracts/dist/docs/index.js +2 -6
  40. package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
  41. package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
  42. package/dist/libs/contracts/dist/docs/presentations.js +2 -1
  43. package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
  44. package/dist/libs/contracts/dist/docs/registry.js +2 -1
  45. package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
  46. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
  47. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
  48. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
  49. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
  50. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
  51. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
  52. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
  53. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
  54. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
  55. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
  56. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
  57. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
  58. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
  59. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
  60. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
  61. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
  62. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
  63. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
  64. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
  65. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
  66. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
  67. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
  68. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
  69. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
  70. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
  71. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
  72. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
  73. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
  74. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
  75. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
  76. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
  77. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
  78. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
  79. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
  80. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
  81. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
  82. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
  83. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
  84. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
  85. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
  86. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
  87. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
  88. package/dist/libs/contracts/dist/events.js +2 -1
  89. package/dist/libs/contracts/dist/events.js.map +1 -0
  90. package/dist/libs/contracts/dist/index.js +2 -1
  91. package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
  92. package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
  93. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
  94. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
  95. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
  96. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
  97. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
  98. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
  99. package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
  100. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
  101. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
  102. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
  103. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
  104. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
  105. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
  106. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
  107. package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
  108. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
  109. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
  110. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
  111. package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
  112. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
  113. package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
  114. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
  115. package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
  116. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
  117. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
  118. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
  119. package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
  120. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
  121. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
  122. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
  123. package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
  124. package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
  125. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
  126. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
  127. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
  128. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
  129. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
  130. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
  131. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
  132. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
  133. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
  134. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
  135. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
  136. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
  137. package/dist/libs/contracts/dist/llm/exporters.js +2 -1
  138. package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
  139. package/dist/libs/contracts/dist/onboarding-base.js +22 -23
  140. package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
  141. package/dist/libs/contracts/dist/ownership.js +4 -2
  142. package/dist/libs/contracts/dist/ownership.js.map +1 -0
  143. package/dist/libs/contracts/dist/presentations.v2.js +2 -1
  144. package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
  145. package/dist/libs/contracts/dist/regenerator/service.js +2 -1
  146. package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
  147. package/dist/libs/contracts/dist/schema/dist/index.js +3873 -6
  148. package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
  149. package/dist/libs/contracts/dist/spec.js +2 -1
  150. package/dist/libs/contracts/dist/spec.js.map +1 -0
  151. package/dist/libs/schema/dist/index.js +4922 -6
  152. package/dist/libs/schema/dist/index.js.map +1 -0
  153. package/dist/marketplace.feature.d.ts +2 -1
  154. package/dist/marketplace.feature.d.ts.map +1 -0
  155. package/dist/marketplace.feature.js +2 -1
  156. package/dist/marketplace.feature.js.map +1 -0
  157. package/dist/order/order.contracts.d.ts +92 -91
  158. package/dist/order/order.contracts.d.ts.map +1 -0
  159. package/dist/order/order.contracts.js +2 -1
  160. package/dist/order/order.contracts.js.map +1 -0
  161. package/dist/order/order.enum.d.ts +4 -3
  162. package/dist/order/order.enum.d.ts.map +1 -0
  163. package/dist/order/order.enum.js +4 -4
  164. package/dist/order/order.enum.js.map +1 -0
  165. package/dist/order/order.event.d.ts +41 -40
  166. package/dist/order/order.event.d.ts.map +1 -0
  167. package/dist/order/order.event.js +40 -41
  168. package/dist/order/order.event.js.map +1 -0
  169. package/dist/order/order.presentation.d.ts +2 -1
  170. package/dist/order/order.presentation.d.ts.map +1 -0
  171. package/dist/order/order.presentation.js +2 -1
  172. package/dist/order/order.presentation.js.map +1 -0
  173. package/dist/order/order.schema.d.ts +41 -40
  174. package/dist/order/order.schema.d.ts.map +1 -0
  175. package/dist/order/order.schema.js +32 -33
  176. package/dist/order/order.schema.js.map +1 -0
  177. package/dist/payout/payout.contracts.d.ts +26 -25
  178. package/dist/payout/payout.contracts.d.ts.map +1 -0
  179. package/dist/payout/payout.contracts.js +2 -1
  180. package/dist/payout/payout.contracts.js.map +1 -0
  181. package/dist/payout/payout.enum.d.ts +4 -3
  182. package/dist/payout/payout.enum.d.ts.map +1 -0
  183. package/dist/payout/payout.enum.js +4 -4
  184. package/dist/payout/payout.enum.js.map +1 -0
  185. package/dist/payout/payout.event.d.ts +19 -18
  186. package/dist/payout/payout.event.d.ts.map +1 -0
  187. package/dist/payout/payout.event.js +18 -19
  188. package/dist/payout/payout.event.js.map +1 -0
  189. package/dist/payout/payout.presentation.d.ts +2 -1
  190. package/dist/payout/payout.presentation.d.ts.map +1 -0
  191. package/dist/payout/payout.presentation.js +2 -1
  192. package/dist/payout/payout.presentation.js.map +1 -0
  193. package/dist/payout/payout.schema.d.ts +39 -38
  194. package/dist/payout/payout.schema.d.ts.map +1 -0
  195. package/dist/payout/payout.schema.js +23 -24
  196. package/dist/payout/payout.schema.js.map +1 -0
  197. package/dist/product/product.contracts.d.ts +70 -69
  198. package/dist/product/product.contracts.d.ts.map +1 -0
  199. package/dist/product/product.contracts.js +2 -1
  200. package/dist/product/product.contracts.js.map +1 -0
  201. package/dist/product/product.enum.d.ts +4 -3
  202. package/dist/product/product.enum.d.ts.map +1 -0
  203. package/dist/product/product.enum.js +4 -4
  204. package/dist/product/product.enum.js.map +1 -0
  205. package/dist/product/product.event.d.ts +22 -21
  206. package/dist/product/product.event.d.ts.map +1 -0
  207. package/dist/product/product.event.js +21 -22
  208. package/dist/product/product.event.js.map +1 -0
  209. package/dist/product/product.presentation.d.ts +2 -1
  210. package/dist/product/product.presentation.d.ts.map +1 -0
  211. package/dist/product/product.presentation.js +2 -1
  212. package/dist/product/product.presentation.js.map +1 -0
  213. package/dist/product/product.schema.d.ts +54 -53
  214. package/dist/product/product.schema.d.ts.map +1 -0
  215. package/dist/product/product.schema.js +37 -38
  216. package/dist/product/product.schema.js.map +1 -0
  217. package/dist/review/review.contracts.d.ts +61 -60
  218. package/dist/review/review.contracts.d.ts.map +1 -0
  219. package/dist/review/review.contracts.js +2 -1
  220. package/dist/review/review.contracts.js.map +1 -0
  221. package/dist/review/review.enum.d.ts +4 -3
  222. package/dist/review/review.enum.d.ts.map +1 -0
  223. package/dist/review/review.enum.js +4 -4
  224. package/dist/review/review.enum.js.map +1 -0
  225. package/dist/review/review.event.d.ts +16 -15
  226. package/dist/review/review.event.d.ts.map +1 -0
  227. package/dist/review/review.event.js +16 -17
  228. package/dist/review/review.event.js.map +1 -0
  229. package/dist/review/review.presentation.d.ts +2 -1
  230. package/dist/review/review.presentation.d.ts.map +1 -0
  231. package/dist/review/review.presentation.js +2 -1
  232. package/dist/review/review.presentation.js.map +1 -0
  233. package/dist/review/review.schema.d.ts +47 -46
  234. package/dist/review/review.schema.d.ts.map +1 -0
  235. package/dist/review/review.schema.js +32 -33
  236. package/dist/review/review.schema.js.map +1 -0
  237. package/dist/store/store.contracts.d.ts +35 -34
  238. package/dist/store/store.contracts.d.ts.map +1 -0
  239. package/dist/store/store.contracts.js +2 -1
  240. package/dist/store/store.contracts.js.map +1 -0
  241. package/dist/store/store.enum.d.ts +4 -3
  242. package/dist/store/store.enum.d.ts.map +1 -0
  243. package/dist/store/store.enum.js +4 -4
  244. package/dist/store/store.enum.js.map +1 -0
  245. package/dist/store/store.event.d.ts +16 -15
  246. package/dist/store/store.event.d.ts.map +1 -0
  247. package/dist/store/store.event.js +15 -16
  248. package/dist/store/store.event.js.map +1 -0
  249. package/dist/store/store.presentation.d.ts +2 -1
  250. package/dist/store/store.presentation.d.ts.map +1 -0
  251. package/dist/store/store.presentation.js +2 -1
  252. package/dist/store/store.presentation.js.map +1 -0
  253. package/dist/store/store.schema.d.ts +22 -21
  254. package/dist/store/store.schema.d.ts.map +1 -0
  255. package/dist/store/store.schema.js +21 -22
  256. package/dist/store/store.schema.js.map +1 -0
  257. package/package.json +20 -13
  258. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  259. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  260. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  261. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  262. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  263. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  264. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  265. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
  266. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  267. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
  268. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  269. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  270. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  271. package/dist/libs/schema/dist/EnumType.js +0 -56
  272. package/dist/libs/schema/dist/FieldType.js +0 -49
  273. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
  274. package/dist/libs/schema/dist/SchemaModel.js +0 -39
  275. package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
  276. package/dist/libs/schema/dist/entity/index.js +0 -2
  277. package/dist/libs/schema/dist/entity/types.js +0 -1
@@ -1,135 +1,135 @@
1
- import * as _lssm_lib_schema895 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts14 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema1080 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts17 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/review/review.contracts.d.ts
5
5
  /**
6
6
  * Create a product/store review.
7
7
  */
8
- declare const CreateReviewContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema895.SchemaModel<{
8
+ declare const CreateReviewContract: _lssm_lib_contracts17.ContractSpec<_lssm_lib_schema1080.SchemaModel<{
9
9
  productId: {
10
- type: _lssm_lib_schema895.FieldType<string, string>;
10
+ type: _lssm_lib_schema1080.FieldType<string, string>;
11
11
  isOptional: true;
12
12
  };
13
13
  storeId: {
14
- type: _lssm_lib_schema895.FieldType<string, string>;
14
+ type: _lssm_lib_schema1080.FieldType<string, string>;
15
15
  isOptional: true;
16
16
  };
17
17
  orderId: {
18
- type: _lssm_lib_schema895.FieldType<string, string>;
18
+ type: _lssm_lib_schema1080.FieldType<string, string>;
19
19
  isOptional: true;
20
20
  };
21
21
  rating: {
22
- type: _lssm_lib_schema895.FieldType<number, number>;
22
+ type: _lssm_lib_schema1080.FieldType<number, number>;
23
23
  isOptional: false;
24
24
  };
25
25
  title: {
26
- type: _lssm_lib_schema895.FieldType<string, string>;
26
+ type: _lssm_lib_schema1080.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  content: {
30
- type: _lssm_lib_schema895.FieldType<string, string>;
30
+ type: _lssm_lib_schema1080.FieldType<string, string>;
31
31
  isOptional: true;
32
32
  };
33
- }>, _lssm_lib_schema895.SchemaModel<{
33
+ }>, _lssm_lib_schema1080.SchemaModel<{
34
34
  id: {
35
- type: _lssm_lib_schema895.FieldType<string, string>;
35
+ type: _lssm_lib_schema1080.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  productId: {
39
- type: _lssm_lib_schema895.FieldType<string, string>;
39
+ type: _lssm_lib_schema1080.FieldType<string, string>;
40
40
  isOptional: true;
41
41
  };
42
42
  storeId: {
43
- type: _lssm_lib_schema895.FieldType<string, string>;
43
+ type: _lssm_lib_schema1080.FieldType<string, string>;
44
44
  isOptional: true;
45
45
  };
46
46
  authorId: {
47
- type: _lssm_lib_schema895.FieldType<string, string>;
47
+ type: _lssm_lib_schema1080.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  rating: {
51
- type: _lssm_lib_schema895.FieldType<number, number>;
51
+ type: _lssm_lib_schema1080.FieldType<number, number>;
52
52
  isOptional: false;
53
53
  };
54
54
  title: {
55
- type: _lssm_lib_schema895.FieldType<string, string>;
55
+ type: _lssm_lib_schema1080.FieldType<string, string>;
56
56
  isOptional: true;
57
57
  };
58
58
  content: {
59
- type: _lssm_lib_schema895.FieldType<string, string>;
59
+ type: _lssm_lib_schema1080.FieldType<string, string>;
60
60
  isOptional: true;
61
61
  };
62
62
  status: {
63
- type: _lssm_lib_schema895.EnumType<[string, string, string, string]>;
63
+ type: _lssm_lib_schema1080.EnumType<[string, string, string, string]>;
64
64
  isOptional: false;
65
65
  };
66
66
  isVerifiedPurchase: {
67
- type: _lssm_lib_schema895.FieldType<boolean, boolean>;
67
+ type: _lssm_lib_schema1080.FieldType<boolean, boolean>;
68
68
  isOptional: false;
69
69
  };
70
70
  helpfulCount: {
71
- type: _lssm_lib_schema895.FieldType<number, number>;
71
+ type: _lssm_lib_schema1080.FieldType<number, number>;
72
72
  isOptional: false;
73
73
  };
74
74
  hasResponse: {
75
- type: _lssm_lib_schema895.FieldType<boolean, boolean>;
75
+ type: _lssm_lib_schema1080.FieldType<boolean, boolean>;
76
76
  isOptional: false;
77
77
  };
78
78
  createdAt: {
79
- type: _lssm_lib_schema895.FieldType<Date, string>;
79
+ type: _lssm_lib_schema1080.FieldType<Date, string>;
80
80
  isOptional: false;
81
81
  };
82
82
  }>, {
83
83
  name: string;
84
84
  version: number;
85
85
  when: string;
86
- payload: _lssm_lib_schema895.SchemaModel<{
86
+ payload: _lssm_lib_schema1080.SchemaModel<{
87
87
  id: {
88
- type: _lssm_lib_schema895.FieldType<string, string>;
88
+ type: _lssm_lib_schema1080.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  productId: {
92
- type: _lssm_lib_schema895.FieldType<string, string>;
92
+ type: _lssm_lib_schema1080.FieldType<string, string>;
93
93
  isOptional: true;
94
94
  };
95
95
  storeId: {
96
- type: _lssm_lib_schema895.FieldType<string, string>;
96
+ type: _lssm_lib_schema1080.FieldType<string, string>;
97
97
  isOptional: true;
98
98
  };
99
99
  authorId: {
100
- type: _lssm_lib_schema895.FieldType<string, string>;
100
+ type: _lssm_lib_schema1080.FieldType<string, string>;
101
101
  isOptional: false;
102
102
  };
103
103
  rating: {
104
- type: _lssm_lib_schema895.FieldType<number, number>;
104
+ type: _lssm_lib_schema1080.FieldType<number, number>;
105
105
  isOptional: false;
106
106
  };
107
107
  title: {
108
- type: _lssm_lib_schema895.FieldType<string, string>;
108
+ type: _lssm_lib_schema1080.FieldType<string, string>;
109
109
  isOptional: true;
110
110
  };
111
111
  content: {
112
- type: _lssm_lib_schema895.FieldType<string, string>;
112
+ type: _lssm_lib_schema1080.FieldType<string, string>;
113
113
  isOptional: true;
114
114
  };
115
115
  status: {
116
- type: _lssm_lib_schema895.EnumType<[string, string, string, string]>;
116
+ type: _lssm_lib_schema1080.EnumType<[string, string, string, string]>;
117
117
  isOptional: false;
118
118
  };
119
119
  isVerifiedPurchase: {
120
- type: _lssm_lib_schema895.FieldType<boolean, boolean>;
120
+ type: _lssm_lib_schema1080.FieldType<boolean, boolean>;
121
121
  isOptional: false;
122
122
  };
123
123
  helpfulCount: {
124
- type: _lssm_lib_schema895.FieldType<number, number>;
124
+ type: _lssm_lib_schema1080.FieldType<number, number>;
125
125
  isOptional: false;
126
126
  };
127
127
  hasResponse: {
128
- type: _lssm_lib_schema895.FieldType<boolean, boolean>;
128
+ type: _lssm_lib_schema1080.FieldType<boolean, boolean>;
129
129
  isOptional: false;
130
130
  };
131
131
  createdAt: {
132
- type: _lssm_lib_schema895.FieldType<Date, string>;
132
+ type: _lssm_lib_schema1080.FieldType<Date, string>;
133
133
  isOptional: false;
134
134
  };
135
135
  }>;
@@ -137,82 +137,82 @@ declare const CreateReviewContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib
137
137
  /**
138
138
  * List reviews with filters.
139
139
  */
140
- declare const ListReviewsContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema895.SchemaModel<{
140
+ declare const ListReviewsContract: _lssm_lib_contracts17.ContractSpec<_lssm_lib_schema1080.SchemaModel<{
141
141
  productId: {
142
- type: _lssm_lib_schema895.FieldType<string, string>;
142
+ type: _lssm_lib_schema1080.FieldType<string, string>;
143
143
  isOptional: true;
144
144
  };
145
145
  storeId: {
146
- type: _lssm_lib_schema895.FieldType<string, string>;
146
+ type: _lssm_lib_schema1080.FieldType<string, string>;
147
147
  isOptional: true;
148
148
  };
149
149
  status: {
150
- type: _lssm_lib_schema895.EnumType<[string, string, string, string]>;
150
+ type: _lssm_lib_schema1080.EnumType<[string, string, string, string]>;
151
151
  isOptional: true;
152
152
  };
153
153
  minRating: {
154
- type: _lssm_lib_schema895.FieldType<number, number>;
154
+ type: _lssm_lib_schema1080.FieldType<number, number>;
155
155
  isOptional: true;
156
156
  };
157
157
  limit: {
158
- type: _lssm_lib_schema895.FieldType<number, number>;
158
+ type: _lssm_lib_schema1080.FieldType<number, number>;
159
159
  isOptional: true;
160
160
  defaultValue: number;
161
161
  };
162
162
  offset: {
163
- type: _lssm_lib_schema895.FieldType<number, number>;
163
+ type: _lssm_lib_schema1080.FieldType<number, number>;
164
164
  isOptional: true;
165
165
  defaultValue: number;
166
166
  };
167
- }>, _lssm_lib_schema895.SchemaModel<{
167
+ }>, _lssm_lib_schema1080.SchemaModel<{
168
168
  reviews: {
169
- type: _lssm_lib_schema895.SchemaModel<{
169
+ type: _lssm_lib_schema1080.SchemaModel<{
170
170
  id: {
171
- type: _lssm_lib_schema895.FieldType<string, string>;
171
+ type: _lssm_lib_schema1080.FieldType<string, string>;
172
172
  isOptional: false;
173
173
  };
174
174
  productId: {
175
- type: _lssm_lib_schema895.FieldType<string, string>;
175
+ type: _lssm_lib_schema1080.FieldType<string, string>;
176
176
  isOptional: true;
177
177
  };
178
178
  storeId: {
179
- type: _lssm_lib_schema895.FieldType<string, string>;
179
+ type: _lssm_lib_schema1080.FieldType<string, string>;
180
180
  isOptional: true;
181
181
  };
182
182
  authorId: {
183
- type: _lssm_lib_schema895.FieldType<string, string>;
183
+ type: _lssm_lib_schema1080.FieldType<string, string>;
184
184
  isOptional: false;
185
185
  };
186
186
  rating: {
187
- type: _lssm_lib_schema895.FieldType<number, number>;
187
+ type: _lssm_lib_schema1080.FieldType<number, number>;
188
188
  isOptional: false;
189
189
  };
190
190
  title: {
191
- type: _lssm_lib_schema895.FieldType<string, string>;
191
+ type: _lssm_lib_schema1080.FieldType<string, string>;
192
192
  isOptional: true;
193
193
  };
194
194
  content: {
195
- type: _lssm_lib_schema895.FieldType<string, string>;
195
+ type: _lssm_lib_schema1080.FieldType<string, string>;
196
196
  isOptional: true;
197
197
  };
198
198
  status: {
199
- type: _lssm_lib_schema895.EnumType<[string, string, string, string]>;
199
+ type: _lssm_lib_schema1080.EnumType<[string, string, string, string]>;
200
200
  isOptional: false;
201
201
  };
202
202
  isVerifiedPurchase: {
203
- type: _lssm_lib_schema895.FieldType<boolean, boolean>;
203
+ type: _lssm_lib_schema1080.FieldType<boolean, boolean>;
204
204
  isOptional: false;
205
205
  };
206
206
  helpfulCount: {
207
- type: _lssm_lib_schema895.FieldType<number, number>;
207
+ type: _lssm_lib_schema1080.FieldType<number, number>;
208
208
  isOptional: false;
209
209
  };
210
210
  hasResponse: {
211
- type: _lssm_lib_schema895.FieldType<boolean, boolean>;
211
+ type: _lssm_lib_schema1080.FieldType<boolean, boolean>;
212
212
  isOptional: false;
213
213
  };
214
214
  createdAt: {
215
- type: _lssm_lib_schema895.FieldType<Date, string>;
215
+ type: _lssm_lib_schema1080.FieldType<Date, string>;
216
216
  isOptional: false;
217
217
  };
218
218
  }>;
@@ -220,17 +220,18 @@ declare const ListReviewsContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_
220
220
  isOptional: false;
221
221
  };
222
222
  total: {
223
- type: _lssm_lib_schema895.FieldType<number, number>;
223
+ type: _lssm_lib_schema1080.FieldType<number, number>;
224
224
  isOptional: false;
225
225
  };
226
226
  averageRating: {
227
- type: _lssm_lib_schema895.FieldType<number, number>;
227
+ type: _lssm_lib_schema1080.FieldType<number, number>;
228
228
  isOptional: false;
229
229
  };
230
230
  ratingDistribution: {
231
- type: _lssm_lib_schema895.FieldType<unknown, unknown>;
231
+ type: _lssm_lib_schema1080.FieldType<unknown, unknown>;
232
232
  isOptional: false;
233
233
  };
234
234
  }>, undefined>;
235
235
  //#endregion
236
- export { CreateReviewContract, ListReviewsContract };
236
+ export { CreateReviewContract, ListReviewsContract };
237
+ //# sourceMappingURL=review.contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.contracts.d.ts","names":[],"sources":["../../src/review/review.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAaa,4CAAoB,kCAAA;EAApB,SAAA,EAAA;IAwBX,IAAA,EAAA,oBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAxB+B,OAAA,EAAA;;;;;;;;;;;;;;;;;;UAAA,oBAAA,CAAA;;;;;;;;;;;EAAA,QAAA,EAAA;IA6BpB,IAAA,gCAaX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;IAb8B,IAAA,gCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;EAAA,WAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAnB,2CAAmB,kCAAA;;UAa9B,oBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAb8B,oBAAA,CAAA"}
@@ -62,4 +62,5 @@ const ListReviewsContract = defineQuery({
62
62
  });
63
63
 
64
64
  //#endregion
65
- export { CreateReviewContract, ListReviewsContract };
65
+ export { CreateReviewContract, ListReviewsContract };
66
+ //# sourceMappingURL=review.contracts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.contracts.js","names":[],"sources":["../../src/review/review.contracts.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/spec';\nimport {\n ReviewModel,\n CreateReviewInputModel,\n ListReviewsInputModel,\n ListReviewsOutputModel,\n} from './review.schema';\n\nconst OWNERS = ['@example.marketplace'] as const;\n\n/**\n * Create a product/store review.\n */\nexport const CreateReviewContract = defineCommand({\n meta: {\n name: 'marketplace.review.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['marketplace', 'review', 'create'],\n description: 'Create a product/store review.',\n goal: 'Allow buyers to leave feedback.',\n context: 'Post-purchase.',\n },\n io: { input: CreateReviewInputModel, output: ReviewModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'marketplace.review.created',\n version: 1,\n when: 'Review is created',\n payload: ReviewModel,\n },\n ],\n audit: ['marketplace.review.created'],\n },\n});\n\n/**\n * List reviews with filters.\n */\nexport const ListReviewsContract = defineQuery({\n meta: {\n name: 'marketplace.review.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['marketplace', 'review', 'list'],\n description: 'List reviews with filters.',\n goal: 'Display product/store reviews.',\n context: 'Product page, store page.',\n },\n io: { input: ListReviewsInputModel, output: ListReviewsOutputModel },\n policy: { auth: 'anonymous' },\n});\n"],"mappings":";;;;AAQA,MAAM,SAAS,CAAC,uBAAuB;;;;AAKvC,MAAa,uBAAuB,cAAc;CAChD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAU;GAAS;EACzC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAwB,QAAQ;EAAa;CAC1D,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,6BAA6B;EACtC;CACF,CAAC;;;;AAKF,MAAa,sBAAsB,YAAY;CAC7C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAU;GAAO;EACvC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAuB,QAAQ;EAAwB;CACpE,QAAQ,EAAE,MAAM,aAAa;CAC9B,CAAC"}
@@ -1,9 +1,10 @@
1
- import * as _lssm_lib_schema894 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema1150 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/review/review.enum.d.ts
4
4
  /**
5
5
  * Review status enum.
6
6
  */
7
- declare const ReviewStatusEnum: _lssm_lib_schema894.EnumType<[string, string, string, string]>;
7
+ declare const ReviewStatusEnum: _lssm_lib_schema1150.EnumType<[string, string, string, string]>;
8
8
  //#endregion
9
- export { ReviewStatusEnum };
9
+ export { ReviewStatusEnum };
10
+ //# sourceMappingURL=review.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.enum.d.ts","names":[],"sources":["../../src/review/review.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,gBAKX,EAAA,oBAAA,CAL2B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
@@ -1,11 +1,10 @@
1
- import { defineEnum } from "../libs/schema/dist/EnumType.js";
2
- import "../libs/schema/dist/index.js";
1
+ import { N5 } from "../libs/schema/dist/index.js";
3
2
 
4
3
  //#region src/review/review.enum.ts
5
4
  /**
6
5
  * Review status enum.
7
6
  */
8
- const ReviewStatusEnum = defineEnum("ReviewStatus", [
7
+ const ReviewStatusEnum = N5("ReviewStatus", [
9
8
  "PENDING",
10
9
  "APPROVED",
11
10
  "REJECTED",
@@ -13,4 +12,5 @@ const ReviewStatusEnum = defineEnum("ReviewStatus", [
13
12
  ]);
14
13
 
15
14
  //#endregion
16
- export { ReviewStatusEnum };
15
+ export { ReviewStatusEnum };
16
+ //# sourceMappingURL=review.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.enum.js","names":["defineEnum"],"sources":["../../src/review/review.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Review status enum.\n */\nexport const ReviewStatusEnum = defineEnum('ReviewStatus', [\n 'PENDING',\n 'APPROVED',\n 'REJECTED',\n 'FLAGGED',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,mBAAmBA,GAAW,gBAAgB;CACzD;CACA;CACA;CACA;CACD,CAAC"}
@@ -1,54 +1,55 @@
1
- import * as _lssm_lib_schema998 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema1137 from "@lssm/lib.schema";
2
2
  import * as _lssm_lib_contracts19 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/review/review.event.d.ts
5
- declare const ReviewCreatedEvent: _lssm_lib_contracts19.EventSpec<_lssm_lib_schema998.SchemaModel<{
5
+ declare const ReviewCreatedEvent: _lssm_lib_contracts19.EventSpec<_lssm_lib_schema1137.SchemaModel<{
6
6
  reviewId: {
7
- type: _lssm_lib_schema998.FieldType<string, string>;
7
+ type: _lssm_lib_schema1137.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  productId: {
11
- type: _lssm_lib_schema998.FieldType<string, string>;
11
+ type: _lssm_lib_schema1137.FieldType<string, string>;
12
12
  isOptional: true;
13
13
  };
14
14
  storeId: {
15
- type: _lssm_lib_schema998.FieldType<string, string>;
15
+ type: _lssm_lib_schema1137.FieldType<string, string>;
16
16
  isOptional: true;
17
17
  };
18
18
  authorId: {
19
- type: _lssm_lib_schema998.FieldType<string, string>;
19
+ type: _lssm_lib_schema1137.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  rating: {
23
- type: _lssm_lib_schema998.FieldType<number, number>;
23
+ type: _lssm_lib_schema1137.FieldType<number, number>;
24
24
  isOptional: false;
25
25
  };
26
26
  isVerifiedPurchase: {
27
- type: _lssm_lib_schema998.FieldType<boolean, boolean>;
27
+ type: _lssm_lib_schema1137.FieldType<boolean, boolean>;
28
28
  isOptional: false;
29
29
  };
30
30
  timestamp: {
31
- type: _lssm_lib_schema998.FieldType<Date, string>;
31
+ type: _lssm_lib_schema1137.FieldType<Date, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  }>>;
35
- declare const ReviewRespondedEvent: _lssm_lib_contracts19.EventSpec<_lssm_lib_schema998.SchemaModel<{
35
+ declare const ReviewRespondedEvent: _lssm_lib_contracts19.EventSpec<_lssm_lib_schema1137.SchemaModel<{
36
36
  reviewId: {
37
- type: _lssm_lib_schema998.FieldType<string, string>;
37
+ type: _lssm_lib_schema1137.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  responseId: {
41
- type: _lssm_lib_schema998.FieldType<string, string>;
41
+ type: _lssm_lib_schema1137.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  authorId: {
45
- type: _lssm_lib_schema998.FieldType<string, string>;
45
+ type: _lssm_lib_schema1137.FieldType<string, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  timestamp: {
49
- type: _lssm_lib_schema998.FieldType<Date, string>;
49
+ type: _lssm_lib_schema1137.FieldType<Date, string>;
50
50
  isOptional: false;
51
51
  };
52
52
  }>>;
53
53
  //#endregion
54
- export { ReviewCreatedEvent, ReviewRespondedEvent };
54
+ export { ReviewCreatedEvent, ReviewRespondedEvent };
55
+ //# sourceMappingURL=review.event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.event.d.ts","names":[],"sources":["../../src/review/review.event.ts"],"sourcesContent":[],"mappings":";;;;cA0Ba,oBAAkB,qBAAA,CAAA,+BAAA;;UAK7B,oBAAA,CAAA;;EALW,CAAA;EAKX,SAAA,EAAA;;;;;;;;;IAL6B,IAAA,gCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAOlB,CAAA;EAKX,MAAA,EAAA;;;;;wCAL+B,CAAA,OAAA,EAAA,OAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;;;;;;cAApB,sBAAoB,qBAAA,CAAA,+BAAA;;UAK/B,oBAAA,CAAA"}
@@ -1,60 +1,58 @@
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";
1
+ import { E5, K5 } from "../libs/schema/dist/index.js";
4
2
  import { defineEvent } from "../libs/contracts/dist/events.js";
5
3
  import "../libs/contracts/dist/index.js";
6
4
 
7
5
  //#region src/review/review.event.ts
8
- const ReviewCreatedPayload = defineSchemaModel({
6
+ const ReviewCreatedPayload = K5({
9
7
  name: "ReviewCreatedEventPayload",
10
8
  fields: {
11
9
  reviewId: {
12
- type: ScalarTypeEnum.String_unsecure(),
10
+ type: E5.String_unsecure(),
13
11
  isOptional: false
14
12
  },
15
13
  productId: {
16
- type: ScalarTypeEnum.String_unsecure(),
14
+ type: E5.String_unsecure(),
17
15
  isOptional: true
18
16
  },
19
17
  storeId: {
20
- type: ScalarTypeEnum.String_unsecure(),
18
+ type: E5.String_unsecure(),
21
19
  isOptional: true
22
20
  },
23
21
  authorId: {
24
- type: ScalarTypeEnum.String_unsecure(),
22
+ type: E5.String_unsecure(),
25
23
  isOptional: false
26
24
  },
27
25
  rating: {
28
- type: ScalarTypeEnum.Int_unsecure(),
26
+ type: E5.Int_unsecure(),
29
27
  isOptional: false
30
28
  },
31
29
  isVerifiedPurchase: {
32
- type: ScalarTypeEnum.Boolean(),
30
+ type: E5.Boolean(),
33
31
  isOptional: false
34
32
  },
35
33
  timestamp: {
36
- type: ScalarTypeEnum.DateTime(),
34
+ type: E5.DateTime(),
37
35
  isOptional: false
38
36
  }
39
37
  }
40
38
  });
41
- const ReviewRespondedPayload = defineSchemaModel({
39
+ const ReviewRespondedPayload = K5({
42
40
  name: "ReviewRespondedEventPayload",
43
41
  fields: {
44
42
  reviewId: {
45
- type: ScalarTypeEnum.String_unsecure(),
43
+ type: E5.String_unsecure(),
46
44
  isOptional: false
47
45
  },
48
46
  responseId: {
49
- type: ScalarTypeEnum.String_unsecure(),
47
+ type: E5.String_unsecure(),
50
48
  isOptional: false
51
49
  },
52
50
  authorId: {
53
- type: ScalarTypeEnum.String_unsecure(),
51
+ type: E5.String_unsecure(),
54
52
  isOptional: false
55
53
  },
56
54
  timestamp: {
57
- type: ScalarTypeEnum.DateTime(),
55
+ type: E5.DateTime(),
58
56
  isOptional: false
59
57
  }
60
58
  }
@@ -73,4 +71,5 @@ const ReviewRespondedEvent = defineEvent({
73
71
  });
74
72
 
75
73
  //#endregion
76
- export { ReviewCreatedEvent, ReviewRespondedEvent };
74
+ export { ReviewCreatedEvent, ReviewRespondedEvent };
75
+ //# sourceMappingURL=review.event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.event.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/review/review.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\nimport { defineEvent } from '@lssm/lib.contracts';\n\nconst ReviewCreatedPayload = defineSchemaModel({\n name: 'ReviewCreatedEventPayload',\n fields: {\n reviewId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n authorId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n rating: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n isVerifiedPurchase: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst ReviewRespondedPayload = defineSchemaModel({\n name: 'ReviewRespondedEventPayload',\n fields: {\n reviewId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n responseId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n authorId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const ReviewCreatedEvent = defineEvent({\n name: 'marketplace.review.created',\n version: 1,\n description: 'A review has been created.',\n payload: ReviewCreatedPayload,\n});\n\nexport const ReviewRespondedEvent = defineEvent({\n name: 'marketplace.review.responded',\n version: 1,\n description: 'A seller has responded to a review.',\n payload: ReviewRespondedPayload,\n});\n"],"mappings":";;;;;AAGA,MAAM,uBAAuBA,GAAkB;CAC7C,MAAM;CACN,QAAQ;EACN,UAAU;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,QAAQ;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAClE,oBAAoB;GAAE,MAAMA,GAAe,SAAS;GAAE,YAAY;GAAO;EACzE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAM,yBAAyBD,GAAkB;CAC/C,MAAM;CACN,QAAQ;EACN,UAAU;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,YAAY;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,qBAAqB,YAAY;CAC5C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC"}
@@ -4,4 +4,5 @@ import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
4
4
  declare const ReviewListPresentation: PresentationDescriptorV2;
5
5
  declare const ReviewFormPresentation: PresentationDescriptorV2;
6
6
  //#endregion
7
- export { ReviewFormPresentation, ReviewListPresentation };
7
+ export { ReviewFormPresentation, ReviewListPresentation };
8
+ //# sourceMappingURL=review.presentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.presentation.d.ts","names":[],"sources":["../../src/review/review.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,wBAAwB;cAqBxB,wBAAwB"}
@@ -47,4 +47,5 @@ const ReviewFormPresentation = {
47
47
  };
48
48
 
49
49
  //#endregion
50
- export { ReviewFormPresentation, ReviewListPresentation };
50
+ export { ReviewFormPresentation, ReviewListPresentation };
51
+ //# sourceMappingURL=review.presentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.presentation.js","names":["ReviewListPresentation: PresentationDescriptorV2","ReviewFormPresentation: PresentationDescriptorV2"],"sources":["../../src/review/review.presentation.ts"],"sourcesContent":["import type { PresentationDescriptorV2 } from '@lssm/lib.contracts';\nimport { ReviewModel } from './review.schema';\n\nexport const ReviewListPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.review.list',\n version: 1,\n description: 'List of product reviews',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'review', 'list'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ReviewList',\n props: ReviewModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.reviews.enabled'],\n },\n};\n\nexport const ReviewFormPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.review.form',\n version: 1,\n description: 'Form for submitting product reviews',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'review', 'form'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ReviewForm',\n props: ReviewModel,\n },\n targets: ['react'],\n policy: {\n flags: ['marketplace.reviews.enabled'],\n },\n};\n"],"mappings":";;;AAGA,MAAaA,yBAAmD;CAC9D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAO;EACxC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,8BAA8B,EACvC;CACF;AAED,MAAaC,yBAAmD;CAC9D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAO;EACxC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,8BAA8B,EACvC;CACF"}