@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,76 @@
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:`ReviewCreatedEventPayload`,fields:{reviewId:{type:e.String_unsecure(),isOptional:!1},productId:{type:e.String_unsecure(),isOptional:!0},storeId:{type:e.String_unsecure(),isOptional:!0},authorId:{type:e.String_unsecure(),isOptional:!1},rating:{type:e.Int_unsecure(),isOptional:!1},isVerifiedPurchase:{type:e.Boolean(),isOptional:!1},timestamp:{type:e.DateTime(),isOptional:!1}}}),i=t({name:`ReviewRespondedEventPayload`,fields:{reviewId:{type:e.String_unsecure(),isOptional:!1},responseId:{type:e.String_unsecure(),isOptional:!1},authorId:{type:e.String_unsecure(),isOptional:!1},timestamp:{type:e.DateTime(),isOptional:!1}}}),a=n({name:`marketplace.review.created`,version:1,description:`A review has been created.`,payload:r}),o=n({name:`marketplace.review.responded`,version:1,description:`A seller has responded to a review.`,payload:i});export{a as ReviewCreatedEvent,o as ReviewRespondedEvent};
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/review/review.event.ts
8
+ const ReviewCreatedPayload = defineSchemaModel({
9
+ name: "ReviewCreatedEventPayload",
10
+ fields: {
11
+ reviewId: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: false
14
+ },
15
+ productId: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: true
18
+ },
19
+ storeId: {
20
+ type: ScalarTypeEnum.String_unsecure(),
21
+ isOptional: true
22
+ },
23
+ authorId: {
24
+ type: ScalarTypeEnum.String_unsecure(),
25
+ isOptional: false
26
+ },
27
+ rating: {
28
+ type: ScalarTypeEnum.Int_unsecure(),
29
+ isOptional: false
30
+ },
31
+ isVerifiedPurchase: {
32
+ type: ScalarTypeEnum.Boolean(),
33
+ isOptional: false
34
+ },
35
+ timestamp: {
36
+ type: ScalarTypeEnum.DateTime(),
37
+ isOptional: false
38
+ }
39
+ }
40
+ });
41
+ const ReviewRespondedPayload = defineSchemaModel({
42
+ name: "ReviewRespondedEventPayload",
43
+ fields: {
44
+ reviewId: {
45
+ type: ScalarTypeEnum.String_unsecure(),
46
+ isOptional: false
47
+ },
48
+ responseId: {
49
+ type: ScalarTypeEnum.String_unsecure(),
50
+ isOptional: false
51
+ },
52
+ authorId: {
53
+ type: ScalarTypeEnum.String_unsecure(),
54
+ isOptional: false
55
+ },
56
+ timestamp: {
57
+ type: ScalarTypeEnum.DateTime(),
58
+ isOptional: false
59
+ }
60
+ }
61
+ });
62
+ const ReviewCreatedEvent = defineEvent({
63
+ name: "marketplace.review.created",
64
+ version: 1,
65
+ description: "A review has been created.",
66
+ payload: ReviewCreatedPayload
67
+ });
68
+ const ReviewRespondedEvent = defineEvent({
69
+ name: "marketplace.review.responded",
70
+ version: 1,
71
+ description: "A seller has responded to a review.",
72
+ payload: ReviewRespondedPayload
73
+ });
74
+
75
+ //#endregion
76
+ export { ReviewCreatedEvent, ReviewRespondedEvent };
@@ -1 +1,50 @@
1
- import{ReviewModel as e}from"./review.schema.js";const t={meta:{name:`marketplace.review.list`,version:1,description:`List of product reviews`,domain:`marketplace`,owners:[`@marketplace-team`],tags:[`marketplace`,`review`,`list`]},source:{type:`component`,framework:`react`,componentKey:`ReviewList`,props:e},targets:[`react`,`markdown`],policy:{flags:[`marketplace.reviews.enabled`]}},n={meta:{name:`marketplace.review.form`,version:1,description:`Form for submitting product reviews`,domain:`marketplace`,owners:[`@marketplace-team`],tags:[`marketplace`,`review`,`form`]},source:{type:`component`,framework:`react`,componentKey:`ReviewForm`,props:e},targets:[`react`],policy:{flags:[`marketplace.reviews.enabled`]}};export{n as ReviewFormPresentation,t as ReviewListPresentation};
1
+ import { ReviewModel } from "./review.schema.js";
2
+
3
+ //#region src/review/review.presentation.ts
4
+ const ReviewListPresentation = {
5
+ meta: {
6
+ name: "marketplace.review.list",
7
+ version: 1,
8
+ description: "List of product reviews",
9
+ domain: "marketplace",
10
+ owners: ["@marketplace-team"],
11
+ tags: [
12
+ "marketplace",
13
+ "review",
14
+ "list"
15
+ ]
16
+ },
17
+ source: {
18
+ type: "component",
19
+ framework: "react",
20
+ componentKey: "ReviewList",
21
+ props: ReviewModel
22
+ },
23
+ targets: ["react", "markdown"],
24
+ policy: { flags: ["marketplace.reviews.enabled"] }
25
+ };
26
+ const ReviewFormPresentation = {
27
+ meta: {
28
+ name: "marketplace.review.form",
29
+ version: 1,
30
+ description: "Form for submitting product reviews",
31
+ domain: "marketplace",
32
+ owners: ["@marketplace-team"],
33
+ tags: [
34
+ "marketplace",
35
+ "review",
36
+ "form"
37
+ ]
38
+ },
39
+ source: {
40
+ type: "component",
41
+ framework: "react",
42
+ componentKey: "ReviewForm",
43
+ props: ReviewModel
44
+ },
45
+ targets: ["react"],
46
+ policy: { flags: ["marketplace.reviews.enabled"] }
47
+ };
48
+
49
+ //#endregion
50
+ export { ReviewFormPresentation, ReviewListPresentation };
@@ -1,115 +1,115 @@
1
- import * as _lssm_lib_schema942 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema876 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/review/review.schema.d.ts
4
4
  /**
5
5
  * A customer review.
6
6
  */
7
- declare const ReviewModel: _lssm_lib_schema942.SchemaModel<{
7
+ declare const ReviewModel: _lssm_lib_schema876.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema942.FieldType<string, string>;
9
+ type: _lssm_lib_schema876.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  productId: {
13
- type: _lssm_lib_schema942.FieldType<string, string>;
13
+ type: _lssm_lib_schema876.FieldType<string, string>;
14
14
  isOptional: true;
15
15
  };
16
16
  storeId: {
17
- type: _lssm_lib_schema942.FieldType<string, string>;
17
+ type: _lssm_lib_schema876.FieldType<string, string>;
18
18
  isOptional: true;
19
19
  };
20
20
  authorId: {
21
- type: _lssm_lib_schema942.FieldType<string, string>;
21
+ type: _lssm_lib_schema876.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  rating: {
25
- type: _lssm_lib_schema942.FieldType<number, number>;
25
+ type: _lssm_lib_schema876.FieldType<number, number>;
26
26
  isOptional: false;
27
27
  };
28
28
  title: {
29
- type: _lssm_lib_schema942.FieldType<string, string>;
29
+ type: _lssm_lib_schema876.FieldType<string, string>;
30
30
  isOptional: true;
31
31
  };
32
32
  content: {
33
- type: _lssm_lib_schema942.FieldType<string, string>;
33
+ type: _lssm_lib_schema876.FieldType<string, string>;
34
34
  isOptional: true;
35
35
  };
36
36
  status: {
37
- type: _lssm_lib_schema942.EnumType<[string, string, string, string]>;
37
+ type: _lssm_lib_schema876.EnumType<[string, string, string, string]>;
38
38
  isOptional: false;
39
39
  };
40
40
  isVerifiedPurchase: {
41
- type: _lssm_lib_schema942.FieldType<boolean, boolean>;
41
+ type: _lssm_lib_schema876.FieldType<boolean, boolean>;
42
42
  isOptional: false;
43
43
  };
44
44
  helpfulCount: {
45
- type: _lssm_lib_schema942.FieldType<number, number>;
45
+ type: _lssm_lib_schema876.FieldType<number, number>;
46
46
  isOptional: false;
47
47
  };
48
48
  hasResponse: {
49
- type: _lssm_lib_schema942.FieldType<boolean, boolean>;
49
+ type: _lssm_lib_schema876.FieldType<boolean, boolean>;
50
50
  isOptional: false;
51
51
  };
52
52
  createdAt: {
53
- type: _lssm_lib_schema942.FieldType<Date, string>;
53
+ type: _lssm_lib_schema876.FieldType<Date, string>;
54
54
  isOptional: false;
55
55
  };
56
56
  }>;
57
57
  /**
58
58
  * Input for creating a review.
59
59
  */
60
- declare const CreateReviewInputModel: _lssm_lib_schema942.SchemaModel<{
60
+ declare const CreateReviewInputModel: _lssm_lib_schema876.SchemaModel<{
61
61
  productId: {
62
- type: _lssm_lib_schema942.FieldType<string, string>;
62
+ type: _lssm_lib_schema876.FieldType<string, string>;
63
63
  isOptional: true;
64
64
  };
65
65
  storeId: {
66
- type: _lssm_lib_schema942.FieldType<string, string>;
66
+ type: _lssm_lib_schema876.FieldType<string, string>;
67
67
  isOptional: true;
68
68
  };
69
69
  orderId: {
70
- type: _lssm_lib_schema942.FieldType<string, string>;
70
+ type: _lssm_lib_schema876.FieldType<string, string>;
71
71
  isOptional: true;
72
72
  };
73
73
  rating: {
74
- type: _lssm_lib_schema942.FieldType<number, number>;
74
+ type: _lssm_lib_schema876.FieldType<number, number>;
75
75
  isOptional: false;
76
76
  };
77
77
  title: {
78
- type: _lssm_lib_schema942.FieldType<string, string>;
78
+ type: _lssm_lib_schema876.FieldType<string, string>;
79
79
  isOptional: true;
80
80
  };
81
81
  content: {
82
- type: _lssm_lib_schema942.FieldType<string, string>;
82
+ type: _lssm_lib_schema876.FieldType<string, string>;
83
83
  isOptional: true;
84
84
  };
85
85
  }>;
86
86
  /**
87
87
  * Input for listing reviews.
88
88
  */
89
- declare const ListReviewsInputModel: _lssm_lib_schema942.SchemaModel<{
89
+ declare const ListReviewsInputModel: _lssm_lib_schema876.SchemaModel<{
90
90
  productId: {
91
- type: _lssm_lib_schema942.FieldType<string, string>;
91
+ type: _lssm_lib_schema876.FieldType<string, string>;
92
92
  isOptional: true;
93
93
  };
94
94
  storeId: {
95
- type: _lssm_lib_schema942.FieldType<string, string>;
95
+ type: _lssm_lib_schema876.FieldType<string, string>;
96
96
  isOptional: true;
97
97
  };
98
98
  status: {
99
- type: _lssm_lib_schema942.EnumType<[string, string, string, string]>;
99
+ type: _lssm_lib_schema876.EnumType<[string, string, string, string]>;
100
100
  isOptional: true;
101
101
  };
102
102
  minRating: {
103
- type: _lssm_lib_schema942.FieldType<number, number>;
103
+ type: _lssm_lib_schema876.FieldType<number, number>;
104
104
  isOptional: true;
105
105
  };
106
106
  limit: {
107
- type: _lssm_lib_schema942.FieldType<number, number>;
107
+ type: _lssm_lib_schema876.FieldType<number, number>;
108
108
  isOptional: true;
109
109
  defaultValue: number;
110
110
  };
111
111
  offset: {
112
- type: _lssm_lib_schema942.FieldType<number, number>;
112
+ type: _lssm_lib_schema876.FieldType<number, number>;
113
113
  isOptional: true;
114
114
  defaultValue: number;
115
115
  };
@@ -117,55 +117,55 @@ declare const ListReviewsInputModel: _lssm_lib_schema942.SchemaModel<{
117
117
  /**
118
118
  * Output for listing reviews.
119
119
  */
120
- declare const ListReviewsOutputModel: _lssm_lib_schema942.SchemaModel<{
120
+ declare const ListReviewsOutputModel: _lssm_lib_schema876.SchemaModel<{
121
121
  reviews: {
122
- type: _lssm_lib_schema942.SchemaModel<{
122
+ type: _lssm_lib_schema876.SchemaModel<{
123
123
  id: {
124
- type: _lssm_lib_schema942.FieldType<string, string>;
124
+ type: _lssm_lib_schema876.FieldType<string, string>;
125
125
  isOptional: false;
126
126
  };
127
127
  productId: {
128
- type: _lssm_lib_schema942.FieldType<string, string>;
128
+ type: _lssm_lib_schema876.FieldType<string, string>;
129
129
  isOptional: true;
130
130
  };
131
131
  storeId: {
132
- type: _lssm_lib_schema942.FieldType<string, string>;
132
+ type: _lssm_lib_schema876.FieldType<string, string>;
133
133
  isOptional: true;
134
134
  };
135
135
  authorId: {
136
- type: _lssm_lib_schema942.FieldType<string, string>;
136
+ type: _lssm_lib_schema876.FieldType<string, string>;
137
137
  isOptional: false;
138
138
  };
139
139
  rating: {
140
- type: _lssm_lib_schema942.FieldType<number, number>;
140
+ type: _lssm_lib_schema876.FieldType<number, number>;
141
141
  isOptional: false;
142
142
  };
143
143
  title: {
144
- type: _lssm_lib_schema942.FieldType<string, string>;
144
+ type: _lssm_lib_schema876.FieldType<string, string>;
145
145
  isOptional: true;
146
146
  };
147
147
  content: {
148
- type: _lssm_lib_schema942.FieldType<string, string>;
148
+ type: _lssm_lib_schema876.FieldType<string, string>;
149
149
  isOptional: true;
150
150
  };
151
151
  status: {
152
- type: _lssm_lib_schema942.EnumType<[string, string, string, string]>;
152
+ type: _lssm_lib_schema876.EnumType<[string, string, string, string]>;
153
153
  isOptional: false;
154
154
  };
155
155
  isVerifiedPurchase: {
156
- type: _lssm_lib_schema942.FieldType<boolean, boolean>;
156
+ type: _lssm_lib_schema876.FieldType<boolean, boolean>;
157
157
  isOptional: false;
158
158
  };
159
159
  helpfulCount: {
160
- type: _lssm_lib_schema942.FieldType<number, number>;
160
+ type: _lssm_lib_schema876.FieldType<number, number>;
161
161
  isOptional: false;
162
162
  };
163
163
  hasResponse: {
164
- type: _lssm_lib_schema942.FieldType<boolean, boolean>;
164
+ type: _lssm_lib_schema876.FieldType<boolean, boolean>;
165
165
  isOptional: false;
166
166
  };
167
167
  createdAt: {
168
- type: _lssm_lib_schema942.FieldType<Date, string>;
168
+ type: _lssm_lib_schema876.FieldType<Date, string>;
169
169
  isOptional: false;
170
170
  };
171
171
  }>;
@@ -173,15 +173,15 @@ declare const ListReviewsOutputModel: _lssm_lib_schema942.SchemaModel<{
173
173
  isOptional: false;
174
174
  };
175
175
  total: {
176
- type: _lssm_lib_schema942.FieldType<number, number>;
176
+ type: _lssm_lib_schema876.FieldType<number, number>;
177
177
  isOptional: false;
178
178
  };
179
179
  averageRating: {
180
- type: _lssm_lib_schema942.FieldType<number, number>;
180
+ type: _lssm_lib_schema876.FieldType<number, number>;
181
181
  isOptional: false;
182
182
  };
183
183
  ratingDistribution: {
184
- type: _lssm_lib_schema942.FieldType<unknown, unknown>;
184
+ type: _lssm_lib_schema876.FieldType<unknown, unknown>;
185
185
  isOptional: false;
186
186
  };
187
187
  }>;
@@ -1 +1,157 @@
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{ReviewStatusEnum as n}from"./review.enum.js";const r=t({name:`ReviewModel`,description:`A customer review`,fields:{id:{type:e.String_unsecure(),isOptional:!1},productId:{type:e.String_unsecure(),isOptional:!0},storeId:{type:e.String_unsecure(),isOptional:!0},authorId:{type:e.String_unsecure(),isOptional:!1},rating:{type:e.Int_unsecure(),isOptional:!1},title:{type:e.String_unsecure(),isOptional:!0},content:{type:e.String_unsecure(),isOptional:!0},status:{type:n,isOptional:!1},isVerifiedPurchase:{type:e.Boolean(),isOptional:!1},helpfulCount:{type:e.Int_unsecure(),isOptional:!1},hasResponse:{type:e.Boolean(),isOptional:!1},createdAt:{type:e.DateTime(),isOptional:!1}}}),i=t({name:`CreateReviewInput`,fields:{productId:{type:e.String_unsecure(),isOptional:!0},storeId:{type:e.String_unsecure(),isOptional:!0},orderId:{type:e.String_unsecure(),isOptional:!0},rating:{type:e.Int_unsecure(),isOptional:!1},title:{type:e.String_unsecure(),isOptional:!0},content:{type:e.String_unsecure(),isOptional:!0}}}),a=t({name:`ListReviewsInput`,fields:{productId:{type:e.String_unsecure(),isOptional:!0},storeId:{type:e.String_unsecure(),isOptional:!0},status:{type:n,isOptional:!0},minRating:{type:e.Int_unsecure(),isOptional:!0},limit:{type:e.Int_unsecure(),isOptional:!0,defaultValue:20},offset:{type:e.Int_unsecure(),isOptional:!0,defaultValue:0}}}),o=t({name:`ListReviewsOutput`,fields:{reviews:{type:r,isArray:!0,isOptional:!1},total:{type:e.Int_unsecure(),isOptional:!1},averageRating:{type:e.Float_unsecure(),isOptional:!1},ratingDistribution:{type:e.JSON(),isOptional:!1}}});export{i as CreateReviewInputModel,a as ListReviewsInputModel,o as ListReviewsOutputModel,r as ReviewModel};
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 { ReviewStatusEnum } from "./review.enum.js";
5
+
6
+ //#region src/review/review.schema.ts
7
+ /**
8
+ * A customer review.
9
+ */
10
+ const ReviewModel = defineSchemaModel({
11
+ name: "ReviewModel",
12
+ description: "A customer review",
13
+ fields: {
14
+ id: {
15
+ type: ScalarTypeEnum.String_unsecure(),
16
+ isOptional: false
17
+ },
18
+ productId: {
19
+ type: ScalarTypeEnum.String_unsecure(),
20
+ isOptional: true
21
+ },
22
+ storeId: {
23
+ type: ScalarTypeEnum.String_unsecure(),
24
+ isOptional: true
25
+ },
26
+ authorId: {
27
+ type: ScalarTypeEnum.String_unsecure(),
28
+ isOptional: false
29
+ },
30
+ rating: {
31
+ type: ScalarTypeEnum.Int_unsecure(),
32
+ isOptional: false
33
+ },
34
+ title: {
35
+ type: ScalarTypeEnum.String_unsecure(),
36
+ isOptional: true
37
+ },
38
+ content: {
39
+ type: ScalarTypeEnum.String_unsecure(),
40
+ isOptional: true
41
+ },
42
+ status: {
43
+ type: ReviewStatusEnum,
44
+ isOptional: false
45
+ },
46
+ isVerifiedPurchase: {
47
+ type: ScalarTypeEnum.Boolean(),
48
+ isOptional: false
49
+ },
50
+ helpfulCount: {
51
+ type: ScalarTypeEnum.Int_unsecure(),
52
+ isOptional: false
53
+ },
54
+ hasResponse: {
55
+ type: ScalarTypeEnum.Boolean(),
56
+ isOptional: false
57
+ },
58
+ createdAt: {
59
+ type: ScalarTypeEnum.DateTime(),
60
+ isOptional: false
61
+ }
62
+ }
63
+ });
64
+ /**
65
+ * Input for creating a review.
66
+ */
67
+ const CreateReviewInputModel = defineSchemaModel({
68
+ name: "CreateReviewInput",
69
+ fields: {
70
+ productId: {
71
+ type: ScalarTypeEnum.String_unsecure(),
72
+ isOptional: true
73
+ },
74
+ storeId: {
75
+ type: ScalarTypeEnum.String_unsecure(),
76
+ isOptional: true
77
+ },
78
+ orderId: {
79
+ type: ScalarTypeEnum.String_unsecure(),
80
+ isOptional: true
81
+ },
82
+ rating: {
83
+ type: ScalarTypeEnum.Int_unsecure(),
84
+ isOptional: false
85
+ },
86
+ title: {
87
+ type: ScalarTypeEnum.String_unsecure(),
88
+ isOptional: true
89
+ },
90
+ content: {
91
+ type: ScalarTypeEnum.String_unsecure(),
92
+ isOptional: true
93
+ }
94
+ }
95
+ });
96
+ /**
97
+ * Input for listing reviews.
98
+ */
99
+ const ListReviewsInputModel = defineSchemaModel({
100
+ name: "ListReviewsInput",
101
+ fields: {
102
+ productId: {
103
+ type: ScalarTypeEnum.String_unsecure(),
104
+ isOptional: true
105
+ },
106
+ storeId: {
107
+ type: ScalarTypeEnum.String_unsecure(),
108
+ isOptional: true
109
+ },
110
+ status: {
111
+ type: ReviewStatusEnum,
112
+ isOptional: true
113
+ },
114
+ minRating: {
115
+ type: ScalarTypeEnum.Int_unsecure(),
116
+ isOptional: true
117
+ },
118
+ limit: {
119
+ type: ScalarTypeEnum.Int_unsecure(),
120
+ isOptional: true,
121
+ defaultValue: 20
122
+ },
123
+ offset: {
124
+ type: ScalarTypeEnum.Int_unsecure(),
125
+ isOptional: true,
126
+ defaultValue: 0
127
+ }
128
+ }
129
+ });
130
+ /**
131
+ * Output for listing reviews.
132
+ */
133
+ const ListReviewsOutputModel = defineSchemaModel({
134
+ name: "ListReviewsOutput",
135
+ fields: {
136
+ reviews: {
137
+ type: ReviewModel,
138
+ isArray: true,
139
+ isOptional: false
140
+ },
141
+ total: {
142
+ type: ScalarTypeEnum.Int_unsecure(),
143
+ isOptional: false
144
+ },
145
+ averageRating: {
146
+ type: ScalarTypeEnum.Float_unsecure(),
147
+ isOptional: false
148
+ },
149
+ ratingDistribution: {
150
+ type: ScalarTypeEnum.JSON(),
151
+ isOptional: false
152
+ }
153
+ }
154
+ });
155
+
156
+ //#endregion
157
+ export { CreateReviewInputModel, ListReviewsInputModel, ListReviewsOutputModel, ReviewModel };
@@ -1 +1,6 @@
1
- import{StoreStatusEnum as e}from"./store.enum.js";import{CreateStoreInputModel as t,StoreModel as n}from"./store.schema.js";import{CreateStoreContract as r}from"./store.contracts.js";import{StoreCreatedEvent as i,StoreStatusChangedEvent as a}from"./store.event.js";export{r as CreateStoreContract,t as CreateStoreInputModel,i as StoreCreatedEvent,n as StoreModel,a as StoreStatusChangedEvent,e as StoreStatusEnum};
1
+ import { StoreStatusEnum } from "./store.enum.js";
2
+ import { CreateStoreInputModel, StoreModel } from "./store.schema.js";
3
+ import { CreateStoreContract } from "./store.contracts.js";
4
+ import { StoreCreatedEvent, StoreStatusChangedEvent } from "./store.event.js";
5
+
6
+ export { CreateStoreContract, CreateStoreInputModel, StoreCreatedEvent, StoreModel, StoreStatusChangedEvent, StoreStatusEnum };