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