@lssm/example.marketplace 0.0.0-canary-20251217083314 → 0.0.0-canary-20251219202229
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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/docs/marketplace.docblock.js +2 -1
- package/dist/docs/marketplace.docblock.js.map +1 -0
- package/dist/entities/index.d.ts +298 -297
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +2 -1
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/order.d.ts +80 -79
- package/dist/entities/order.d.ts.map +1 -0
- package/dist/entities/order.js +89 -89
- package/dist/entities/order.js.map +1 -0
- package/dist/entities/payout.d.ts +67 -66
- package/dist/entities/payout.d.ts.map +1 -0
- package/dist/entities/payout.js +74 -74
- package/dist/entities/payout.js.map +1 -0
- package/dist/entities/product.d.ts +72 -71
- package/dist/entities/product.d.ts.map +1 -0
- package/dist/entities/product.js +86 -86
- package/dist/entities/product.js.map +1 -0
- package/dist/entities/review.d.ts +58 -57
- package/dist/entities/review.d.ts.map +1 -0
- package/dist/entities/review.js +70 -70
- package/dist/entities/review.js.map +1 -0
- package/dist/entities/store.d.ts +43 -42
- package/dist/entities/store.d.ts.map +1 -0
- package/dist/entities/store.js +49 -49
- package/dist/entities/store.js.map +1 -0
- package/dist/example.d.ts +2 -1
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +2 -1
- package/dist/example.js.map +1 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/index.js +2 -6
- package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +2 -1
- package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +2 -1
- package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/libs/contracts/dist/events.js +2 -1
- package/dist/libs/contracts/dist/events.js.map +1 -0
- package/dist/libs/contracts/dist/index.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +2 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +22 -23
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/libs/contracts/dist/ownership.js +4 -2
- package/dist/libs/contracts/dist/ownership.js.map +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +2 -1
- package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +2 -1
- package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +3873 -6
- package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/spec.js +2 -1
- package/dist/libs/contracts/dist/spec.js.map +1 -0
- package/dist/libs/schema/dist/index.js +4922 -6
- package/dist/libs/schema/dist/index.js.map +1 -0
- package/dist/marketplace.feature.d.ts +2 -1
- package/dist/marketplace.feature.d.ts.map +1 -0
- package/dist/marketplace.feature.js +2 -1
- package/dist/marketplace.feature.js.map +1 -0
- package/dist/order/order.contracts.d.ts +92 -91
- package/dist/order/order.contracts.d.ts.map +1 -0
- package/dist/order/order.contracts.js +2 -1
- package/dist/order/order.contracts.js.map +1 -0
- package/dist/order/order.enum.d.ts +4 -3
- package/dist/order/order.enum.d.ts.map +1 -0
- package/dist/order/order.enum.js +4 -4
- package/dist/order/order.enum.js.map +1 -0
- package/dist/order/order.event.d.ts +41 -40
- package/dist/order/order.event.d.ts.map +1 -0
- package/dist/order/order.event.js +40 -41
- package/dist/order/order.event.js.map +1 -0
- package/dist/order/order.presentation.d.ts +2 -1
- package/dist/order/order.presentation.d.ts.map +1 -0
- package/dist/order/order.presentation.js +2 -1
- package/dist/order/order.presentation.js.map +1 -0
- package/dist/order/order.schema.d.ts +41 -40
- package/dist/order/order.schema.d.ts.map +1 -0
- package/dist/order/order.schema.js +32 -33
- package/dist/order/order.schema.js.map +1 -0
- package/dist/payout/payout.contracts.d.ts +26 -25
- package/dist/payout/payout.contracts.d.ts.map +1 -0
- package/dist/payout/payout.contracts.js +2 -1
- package/dist/payout/payout.contracts.js.map +1 -0
- package/dist/payout/payout.enum.d.ts +4 -3
- package/dist/payout/payout.enum.d.ts.map +1 -0
- package/dist/payout/payout.enum.js +4 -4
- package/dist/payout/payout.enum.js.map +1 -0
- package/dist/payout/payout.event.d.ts +19 -18
- package/dist/payout/payout.event.d.ts.map +1 -0
- package/dist/payout/payout.event.js +18 -19
- package/dist/payout/payout.event.js.map +1 -0
- package/dist/payout/payout.presentation.d.ts +2 -1
- package/dist/payout/payout.presentation.d.ts.map +1 -0
- package/dist/payout/payout.presentation.js +2 -1
- package/dist/payout/payout.presentation.js.map +1 -0
- package/dist/payout/payout.schema.d.ts +39 -38
- package/dist/payout/payout.schema.d.ts.map +1 -0
- package/dist/payout/payout.schema.js +23 -24
- package/dist/payout/payout.schema.js.map +1 -0
- package/dist/product/product.contracts.d.ts +70 -69
- package/dist/product/product.contracts.d.ts.map +1 -0
- package/dist/product/product.contracts.js +2 -1
- package/dist/product/product.contracts.js.map +1 -0
- package/dist/product/product.enum.d.ts +4 -3
- package/dist/product/product.enum.d.ts.map +1 -0
- package/dist/product/product.enum.js +4 -4
- package/dist/product/product.enum.js.map +1 -0
- package/dist/product/product.event.d.ts +22 -21
- package/dist/product/product.event.d.ts.map +1 -0
- package/dist/product/product.event.js +21 -22
- package/dist/product/product.event.js.map +1 -0
- package/dist/product/product.presentation.d.ts +2 -1
- package/dist/product/product.presentation.d.ts.map +1 -0
- package/dist/product/product.presentation.js +2 -1
- package/dist/product/product.presentation.js.map +1 -0
- package/dist/product/product.schema.d.ts +54 -53
- package/dist/product/product.schema.d.ts.map +1 -0
- package/dist/product/product.schema.js +37 -38
- package/dist/product/product.schema.js.map +1 -0
- package/dist/review/review.contracts.d.ts +61 -60
- package/dist/review/review.contracts.d.ts.map +1 -0
- package/dist/review/review.contracts.js +2 -1
- package/dist/review/review.contracts.js.map +1 -0
- package/dist/review/review.enum.d.ts +4 -3
- package/dist/review/review.enum.d.ts.map +1 -0
- package/dist/review/review.enum.js +4 -4
- package/dist/review/review.enum.js.map +1 -0
- package/dist/review/review.event.d.ts +17 -16
- package/dist/review/review.event.d.ts.map +1 -0
- package/dist/review/review.event.js +16 -17
- package/dist/review/review.event.js.map +1 -0
- package/dist/review/review.presentation.d.ts +2 -1
- package/dist/review/review.presentation.d.ts.map +1 -0
- package/dist/review/review.presentation.js +2 -1
- package/dist/review/review.presentation.js.map +1 -0
- package/dist/review/review.schema.d.ts +47 -46
- package/dist/review/review.schema.d.ts.map +1 -0
- package/dist/review/review.schema.js +32 -33
- package/dist/review/review.schema.js.map +1 -0
- package/dist/store/store.contracts.d.ts +35 -34
- package/dist/store/store.contracts.d.ts.map +1 -0
- package/dist/store/store.contracts.js +2 -1
- package/dist/store/store.contracts.js.map +1 -0
- package/dist/store/store.enum.d.ts +4 -3
- package/dist/store/store.enum.d.ts.map +1 -0
- package/dist/store/store.enum.js +4 -4
- package/dist/store/store.enum.js.map +1 -0
- package/dist/store/store.event.d.ts +16 -15
- package/dist/store/store.event.d.ts.map +1 -0
- package/dist/store/store.event.js +15 -16
- package/dist/store/store.event.js.map +1 -0
- package/dist/store/store.presentation.d.ts +2 -1
- package/dist/store/store.presentation.d.ts.map +1 -0
- package/dist/store/store.presentation.js +2 -1
- package/dist/store/store.presentation.js.map +1 -0
- package/dist/store/store.schema.d.ts +22 -21
- package/dist/store/store.schema.d.ts.map +1 -0
- package/dist/store/store.schema.js +21 -22
- package/dist/store/store.schema.js.map +1 -0
- package/package.json +14 -13
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/schema/dist/EnumType.js +0 -56
- package/dist/libs/schema/dist/FieldType.js +0 -49
- package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/schema/dist/SchemaModel.js +0 -39
- package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
- package/dist/libs/schema/dist/entity/index.js +0 -2
- package/dist/libs/schema/dist/entity/types.js +0 -1
|
@@ -1,163 +1,163 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema69 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts1 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/product/product.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a new product listing.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateProductContract:
|
|
8
|
+
declare const CreateProductContract: _lssm_lib_contracts1.ContractSpec<_lssm_lib_schema69.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
name: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
slug: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
description: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
23
23
|
isOptional: true;
|
|
24
24
|
};
|
|
25
25
|
price: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
currency: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
33
|
quantity: {
|
|
34
|
-
type:
|
|
34
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
35
35
|
isOptional: true;
|
|
36
36
|
};
|
|
37
37
|
categoryId: {
|
|
38
|
-
type:
|
|
38
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
39
39
|
isOptional: true;
|
|
40
40
|
};
|
|
41
41
|
sku: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
43
43
|
isOptional: true;
|
|
44
44
|
};
|
|
45
|
-
}>,
|
|
45
|
+
}>, _lssm_lib_schema69.SchemaModel<{
|
|
46
46
|
id: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
storeId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
name: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
slug: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
description: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
status: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema69.EnumType<[string, string, string, string, string, string]>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
price: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
currency: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
quantity: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
categoryId: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
84
84
|
isOptional: true;
|
|
85
85
|
};
|
|
86
86
|
primaryImageId: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
88
88
|
isOptional: true;
|
|
89
89
|
};
|
|
90
90
|
averageRating: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
totalSold: {
|
|
95
|
-
type:
|
|
95
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
96
96
|
isOptional: false;
|
|
97
97
|
};
|
|
98
98
|
createdAt: {
|
|
99
|
-
type:
|
|
99
|
+
type: _lssm_lib_schema69.FieldType<Date, string>;
|
|
100
100
|
isOptional: false;
|
|
101
101
|
};
|
|
102
102
|
}>, {
|
|
103
103
|
name: string;
|
|
104
104
|
version: number;
|
|
105
105
|
when: string;
|
|
106
|
-
payload:
|
|
106
|
+
payload: _lssm_lib_schema69.SchemaModel<{
|
|
107
107
|
id: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
storeId: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
name: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
slug: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
121
121
|
isOptional: false;
|
|
122
122
|
};
|
|
123
123
|
description: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
125
125
|
isOptional: true;
|
|
126
126
|
};
|
|
127
127
|
status: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema69.EnumType<[string, string, string, string, string, string]>;
|
|
129
129
|
isOptional: false;
|
|
130
130
|
};
|
|
131
131
|
price: {
|
|
132
|
-
type:
|
|
132
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
133
133
|
isOptional: false;
|
|
134
134
|
};
|
|
135
135
|
currency: {
|
|
136
|
-
type:
|
|
136
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
137
137
|
isOptional: false;
|
|
138
138
|
};
|
|
139
139
|
quantity: {
|
|
140
|
-
type:
|
|
140
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
141
141
|
isOptional: false;
|
|
142
142
|
};
|
|
143
143
|
categoryId: {
|
|
144
|
-
type:
|
|
144
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
145
145
|
isOptional: true;
|
|
146
146
|
};
|
|
147
147
|
primaryImageId: {
|
|
148
|
-
type:
|
|
148
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
149
149
|
isOptional: true;
|
|
150
150
|
};
|
|
151
151
|
averageRating: {
|
|
152
|
-
type:
|
|
152
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
totalSold: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
157
157
|
isOptional: false;
|
|
158
158
|
};
|
|
159
159
|
createdAt: {
|
|
160
|
-
type:
|
|
160
|
+
type: _lssm_lib_schema69.FieldType<Date, string>;
|
|
161
161
|
isOptional: false;
|
|
162
162
|
};
|
|
163
163
|
}>;
|
|
@@ -165,98 +165,98 @@ declare const CreateProductContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib
|
|
|
165
165
|
/**
|
|
166
166
|
* List products with filters.
|
|
167
167
|
*/
|
|
168
|
-
declare const ListProductsContract:
|
|
168
|
+
declare const ListProductsContract: _lssm_lib_contracts1.ContractSpec<_lssm_lib_schema69.SchemaModel<{
|
|
169
169
|
storeId: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
171
171
|
isOptional: true;
|
|
172
172
|
};
|
|
173
173
|
categoryId: {
|
|
174
|
-
type:
|
|
174
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
status: {
|
|
178
|
-
type:
|
|
178
|
+
type: _lssm_lib_schema69.EnumType<[string, string, string, string, string, string]>;
|
|
179
179
|
isOptional: true;
|
|
180
180
|
};
|
|
181
181
|
search: {
|
|
182
|
-
type:
|
|
182
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
183
183
|
isOptional: true;
|
|
184
184
|
};
|
|
185
185
|
minPrice: {
|
|
186
|
-
type:
|
|
186
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
187
187
|
isOptional: true;
|
|
188
188
|
};
|
|
189
189
|
maxPrice: {
|
|
190
|
-
type:
|
|
190
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
191
191
|
isOptional: true;
|
|
192
192
|
};
|
|
193
193
|
limit: {
|
|
194
|
-
type:
|
|
194
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
195
195
|
isOptional: true;
|
|
196
196
|
defaultValue: number;
|
|
197
197
|
};
|
|
198
198
|
offset: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
defaultValue: number;
|
|
202
202
|
};
|
|
203
|
-
}>,
|
|
203
|
+
}>, _lssm_lib_schema69.SchemaModel<{
|
|
204
204
|
products: {
|
|
205
|
-
type:
|
|
205
|
+
type: _lssm_lib_schema69.SchemaModel<{
|
|
206
206
|
id: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
208
208
|
isOptional: false;
|
|
209
209
|
};
|
|
210
210
|
storeId: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
212
212
|
isOptional: false;
|
|
213
213
|
};
|
|
214
214
|
name: {
|
|
215
|
-
type:
|
|
215
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
216
216
|
isOptional: false;
|
|
217
217
|
};
|
|
218
218
|
slug: {
|
|
219
|
-
type:
|
|
219
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
description: {
|
|
223
|
-
type:
|
|
223
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
224
224
|
isOptional: true;
|
|
225
225
|
};
|
|
226
226
|
status: {
|
|
227
|
-
type:
|
|
227
|
+
type: _lssm_lib_schema69.EnumType<[string, string, string, string, string, string]>;
|
|
228
228
|
isOptional: false;
|
|
229
229
|
};
|
|
230
230
|
price: {
|
|
231
|
-
type:
|
|
231
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
232
232
|
isOptional: false;
|
|
233
233
|
};
|
|
234
234
|
currency: {
|
|
235
|
-
type:
|
|
235
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
236
236
|
isOptional: false;
|
|
237
237
|
};
|
|
238
238
|
quantity: {
|
|
239
|
-
type:
|
|
239
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
240
240
|
isOptional: false;
|
|
241
241
|
};
|
|
242
242
|
categoryId: {
|
|
243
|
-
type:
|
|
243
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
244
244
|
isOptional: true;
|
|
245
245
|
};
|
|
246
246
|
primaryImageId: {
|
|
247
|
-
type:
|
|
247
|
+
type: _lssm_lib_schema69.FieldType<string, string>;
|
|
248
248
|
isOptional: true;
|
|
249
249
|
};
|
|
250
250
|
averageRating: {
|
|
251
|
-
type:
|
|
251
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
252
252
|
isOptional: false;
|
|
253
253
|
};
|
|
254
254
|
totalSold: {
|
|
255
|
-
type:
|
|
255
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
256
256
|
isOptional: false;
|
|
257
257
|
};
|
|
258
258
|
createdAt: {
|
|
259
|
-
type:
|
|
259
|
+
type: _lssm_lib_schema69.FieldType<Date, string>;
|
|
260
260
|
isOptional: false;
|
|
261
261
|
};
|
|
262
262
|
}>;
|
|
@@ -264,9 +264,10 @@ declare const ListProductsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_
|
|
|
264
264
|
isOptional: false;
|
|
265
265
|
};
|
|
266
266
|
total: {
|
|
267
|
-
type:
|
|
267
|
+
type: _lssm_lib_schema69.FieldType<number, number>;
|
|
268
268
|
isOptional: false;
|
|
269
269
|
};
|
|
270
270
|
}>, undefined>;
|
|
271
271
|
//#endregion
|
|
272
|
-
export { CreateProductContract, ListProductsContract };
|
|
272
|
+
export { CreateProductContract, ListProductsContract };
|
|
273
|
+
//# sourceMappingURL=product.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.contracts.d.ts","names":[],"sources":["../../src/product/product.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAaa,4CAAqB,gCAAA;EAArB,OAAA,EAAA;IAwBX,IAAA,EAAA,kBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;gBAxBgC,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAA,kBAAA,CAAA;;;;;qBAAA;EAAA,CAAA;EA6BrB,IAAA,EAAA;IAaX,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;sCAb+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;IAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAApB,2CAAoB,gCAAA;;UAa/B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAb+B,kBAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.contracts.js","names":[],"sources":["../../src/product/product.contracts.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/spec';\nimport {\n ProductModel,\n CreateProductInputModel,\n ListProductsInputModel,\n ListProductsOutputModel,\n} from './product.schema';\n\nconst OWNERS = ['@example.marketplace'] as const;\n\n/**\n * Create a new product listing.\n */\nexport const CreateProductContract = defineCommand({\n meta: {\n name: 'marketplace.product.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['marketplace', 'product', 'create'],\n description: 'Create a new product listing.',\n goal: 'Allow sellers to list products.',\n context: 'Product management.',\n },\n io: { input: CreateProductInputModel, output: ProductModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'marketplace.product.created',\n version: 1,\n when: 'Product is created',\n payload: ProductModel,\n },\n ],\n audit: ['marketplace.product.created'],\n },\n});\n\n/**\n * List products with filters.\n */\nexport const ListProductsContract = defineQuery({\n meta: {\n name: 'marketplace.product.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['marketplace', 'product', 'list'],\n description: 'List products with filters.',\n goal: 'Browse products on the marketplace.',\n context: 'Product catalog, search.',\n },\n io: { input: ListProductsInputModel, output: ListProductsOutputModel },\n policy: { auth: 'anonymous' },\n});\n"],"mappings":";;;;AAQA,MAAM,SAAS,CAAC,uBAAuB;;;;AAKvC,MAAa,wBAAwB,cAAc;CACjD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAW;GAAS;EAC1C,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAyB,QAAQ;EAAc;CAC5D,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,8BAA8B;EACvC;CACF,CAAC;;;;AAKF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAW;GAAO;EACxC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAwB,QAAQ;EAAyB;CACtE,QAAQ,EAAE,MAAM,aAAa;CAC9B,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema874 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/product/product.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Product status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const ProductStatusEnum:
|
|
7
|
+
declare const ProductStatusEnum: _lssm_lib_schema874.EnumType<[string, string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { ProductStatusEnum };
|
|
9
|
+
export { ProductStatusEnum };
|
|
10
|
+
//# sourceMappingURL=product.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.enum.d.ts","names":[],"sources":["../../src/product/product.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,iBAOX,EAAA,mBAAA,CAP4B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../libs/schema/dist/index.js";
|
|
1
|
+
import { N5 } from "../libs/schema/dist/index.js";
|
|
3
2
|
|
|
4
3
|
//#region src/product/product.enum.ts
|
|
5
4
|
/**
|
|
6
5
|
* Product status enum.
|
|
7
6
|
*/
|
|
8
|
-
const ProductStatusEnum =
|
|
7
|
+
const ProductStatusEnum = N5("ProductStatus", [
|
|
9
8
|
"DRAFT",
|
|
10
9
|
"PENDING_REVIEW",
|
|
11
10
|
"ACTIVE",
|
|
@@ -15,4 +14,5 @@ const ProductStatusEnum = defineEnum("ProductStatus", [
|
|
|
15
14
|
]);
|
|
16
15
|
|
|
17
16
|
//#endregion
|
|
18
|
-
export { ProductStatusEnum };
|
|
17
|
+
export { ProductStatusEnum };
|
|
18
|
+
//# sourceMappingURL=product.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.enum.js","names":["defineEnum"],"sources":["../../src/product/product.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Product status enum.\n */\nexport const ProductStatusEnum = defineEnum('ProductStatus', [\n 'DRAFT',\n 'PENDING_REVIEW',\n 'ACTIVE',\n 'OUT_OF_STOCK',\n 'DISCONTINUED',\n 'REJECTED',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,oBAAoBA,GAAW,iBAAiB;CAC3D;CACA;CACA;CACA;CACA;CACA;CACD,CAAC"}
|
|
@@ -1,72 +1,73 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema963 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts8 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/product/product.event.d.ts
|
|
5
|
-
declare const ProductCreatedEvent:
|
|
5
|
+
declare const ProductCreatedEvent: _lssm_lib_contracts8.EventSpec<_lssm_lib_schema963.SchemaModel<{
|
|
6
6
|
productId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema963.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
storeId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema963.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
name: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema963.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
price: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema963.FieldType<number, number>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
currency: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema963.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
timestamp: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema963.FieldType<Date, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
}>>;
|
|
31
|
-
declare const ProductPublishedEvent:
|
|
31
|
+
declare const ProductPublishedEvent: _lssm_lib_contracts8.EventSpec<_lssm_lib_schema963.SchemaModel<{
|
|
32
32
|
productId: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema963.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
storeId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema963.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
timestamp: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema963.FieldType<Date, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
}>>;
|
|
45
|
-
declare const InventoryUpdatedEvent:
|
|
45
|
+
declare const InventoryUpdatedEvent: _lssm_lib_contracts8.EventSpec<_lssm_lib_schema963.SchemaModel<{
|
|
46
46
|
productId: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema963.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
variantId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema963.FieldType<string, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
previousQuantity: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema963.FieldType<number, number>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
newQuantity: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema963.FieldType<number, number>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
reason: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema963.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
timestamp: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema963.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
}>>;
|
|
71
71
|
//#endregion
|
|
72
|
-
export { InventoryUpdatedEvent, ProductCreatedEvent, ProductPublishedEvent };
|
|
72
|
+
export { InventoryUpdatedEvent, ProductCreatedEvent, ProductPublishedEvent };
|
|
73
|
+
//# sourceMappingURL=product.event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.event.d.ts","names":[],"sources":["../../src/product/product.event.ts"],"sourcesContent":[],"mappings":";;;;cAuCa,qBAAmB,oBAAA,CAAA,8BAAA;;UAK9B,mBAAA,CAAA;;EALW,CAAA;EAKX,OAAA,EAAA;;;;;;;;EAL8B,KAAA,EAAA;IAAA,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAOnB,UAAA,EAAA,KAAA;EAKX,CAAA;;;;;EALgC,SAAA,EAAA;IAAA,IAAA,+BAAA,KAAA,EAAA,MAAA,CAAA;IAOrB,UAAA,EAAA,KAAA;EAKX,CAAA;;cAZW,uBAAqB,oBAAA,CAAA,8BAAA;;UAKhC,mBAAA,CAAA;;;;IAEgC,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;cAArB,uBAAqB,oBAAA,CAAA,8BAAA;;UAKhC,mBAAA,CAAA"}
|
|
@@ -1,81 +1,79 @@
|
|
|
1
|
-
import {
|
|
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/product/product.event.ts
|
|
8
|
-
const ProductCreatedPayload =
|
|
6
|
+
const ProductCreatedPayload = K5({
|
|
9
7
|
name: "ProductCreatedEventPayload",
|
|
10
8
|
fields: {
|
|
11
9
|
productId: {
|
|
12
|
-
type:
|
|
10
|
+
type: E5.String_unsecure(),
|
|
13
11
|
isOptional: false
|
|
14
12
|
},
|
|
15
13
|
storeId: {
|
|
16
|
-
type:
|
|
14
|
+
type: E5.String_unsecure(),
|
|
17
15
|
isOptional: false
|
|
18
16
|
},
|
|
19
17
|
name: {
|
|
20
|
-
type:
|
|
18
|
+
type: E5.String_unsecure(),
|
|
21
19
|
isOptional: false
|
|
22
20
|
},
|
|
23
21
|
price: {
|
|
24
|
-
type:
|
|
22
|
+
type: E5.Float_unsecure(),
|
|
25
23
|
isOptional: false
|
|
26
24
|
},
|
|
27
25
|
currency: {
|
|
28
|
-
type:
|
|
26
|
+
type: E5.String_unsecure(),
|
|
29
27
|
isOptional: false
|
|
30
28
|
},
|
|
31
29
|
timestamp: {
|
|
32
|
-
type:
|
|
30
|
+
type: E5.DateTime(),
|
|
33
31
|
isOptional: false
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
34
|
});
|
|
37
|
-
const ProductPublishedPayload =
|
|
35
|
+
const ProductPublishedPayload = K5({
|
|
38
36
|
name: "ProductPublishedEventPayload",
|
|
39
37
|
fields: {
|
|
40
38
|
productId: {
|
|
41
|
-
type:
|
|
39
|
+
type: E5.String_unsecure(),
|
|
42
40
|
isOptional: false
|
|
43
41
|
},
|
|
44
42
|
storeId: {
|
|
45
|
-
type:
|
|
43
|
+
type: E5.String_unsecure(),
|
|
46
44
|
isOptional: false
|
|
47
45
|
},
|
|
48
46
|
timestamp: {
|
|
49
|
-
type:
|
|
47
|
+
type: E5.DateTime(),
|
|
50
48
|
isOptional: false
|
|
51
49
|
}
|
|
52
50
|
}
|
|
53
51
|
});
|
|
54
|
-
const InventoryUpdatedPayload =
|
|
52
|
+
const InventoryUpdatedPayload = K5({
|
|
55
53
|
name: "InventoryUpdatedEventPayload",
|
|
56
54
|
fields: {
|
|
57
55
|
productId: {
|
|
58
|
-
type:
|
|
56
|
+
type: E5.String_unsecure(),
|
|
59
57
|
isOptional: false
|
|
60
58
|
},
|
|
61
59
|
variantId: {
|
|
62
|
-
type:
|
|
60
|
+
type: E5.String_unsecure(),
|
|
63
61
|
isOptional: true
|
|
64
62
|
},
|
|
65
63
|
previousQuantity: {
|
|
66
|
-
type:
|
|
64
|
+
type: E5.Int_unsecure(),
|
|
67
65
|
isOptional: false
|
|
68
66
|
},
|
|
69
67
|
newQuantity: {
|
|
70
|
-
type:
|
|
68
|
+
type: E5.Int_unsecure(),
|
|
71
69
|
isOptional: false
|
|
72
70
|
},
|
|
73
71
|
reason: {
|
|
74
|
-
type:
|
|
72
|
+
type: E5.String_unsecure(),
|
|
75
73
|
isOptional: false
|
|
76
74
|
},
|
|
77
75
|
timestamp: {
|
|
78
|
-
type:
|
|
76
|
+
type: E5.DateTime(),
|
|
79
77
|
isOptional: false
|
|
80
78
|
}
|
|
81
79
|
}
|
|
@@ -100,4 +98,5 @@ const InventoryUpdatedEvent = defineEvent({
|
|
|
100
98
|
});
|
|
101
99
|
|
|
102
100
|
//#endregion
|
|
103
|
-
export { InventoryUpdatedEvent, ProductCreatedEvent, ProductPublishedEvent };
|
|
101
|
+
export { InventoryUpdatedEvent, ProductCreatedEvent, ProductPublishedEvent };
|
|
102
|
+
//# sourceMappingURL=product.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.event.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/product/product.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\nimport { defineEvent } from '@lssm/lib.contracts';\n\nconst ProductCreatedPayload = defineSchemaModel({\n name: 'ProductCreatedEventPayload',\n fields: {\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n price: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst ProductPublishedPayload = defineSchemaModel({\n name: 'ProductPublishedEventPayload',\n fields: {\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst InventoryUpdatedPayload = defineSchemaModel({\n name: 'InventoryUpdatedEventPayload',\n fields: {\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n variantId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n previousQuantity: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n newQuantity: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const ProductCreatedEvent = defineEvent({\n name: 'marketplace.product.created',\n version: 1,\n description: 'A new product has been created.',\n payload: ProductCreatedPayload,\n});\n\nexport const ProductPublishedEvent = defineEvent({\n name: 'marketplace.product.published',\n version: 1,\n description: 'A product has been published.',\n payload: ProductPublishedPayload,\n});\n\nexport const InventoryUpdatedEvent = defineEvent({\n name: 'marketplace.inventory.updated',\n version: 1,\n description: 'Product inventory has been updated.',\n payload: InventoryUpdatedPayload,\n});\n"],"mappings":";;;;;AAGA,MAAM,wBAAwBA,GAAkB;CAC9C,MAAM;CACN,QAAQ;EACN,WAAW;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,OAAO;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACnE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAM,0BAA0BD,GAAkB;CAChD,MAAM;CACN,QAAQ;EACN,WAAW;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAM,0BAA0BD,GAAkB;CAChD,MAAM;CACN,QAAQ;EACN,WAAW;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,kBAAkB;GAChB,MAAMA,GAAe,cAAc;GACnC,YAAY;GACb;EACD,aAAa;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EACvE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,sBAAsB,YAAY;CAC7C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,wBAAwB,YAAY;CAC/C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,wBAAwB,YAAY;CAC/C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC"}
|
|
@@ -5,4 +5,5 @@ declare const ProductCatalogPresentation: PresentationDescriptorV2;
|
|
|
5
5
|
declare const ProductDetailPresentation: PresentationDescriptorV2;
|
|
6
6
|
declare const ProductEditorPresentation: PresentationDescriptorV2;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { ProductCatalogPresentation, ProductDetailPresentation, ProductEditorPresentation };
|
|
8
|
+
export { ProductCatalogPresentation, ProductDetailPresentation, ProductEditorPresentation };
|
|
9
|
+
//# sourceMappingURL=product.presentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.presentation.d.ts","names":[],"sources":["../../src/product/product.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,4BAA4B;cAqB5B,2BAA2B;AArB3B,cA0CA,yBA1C4B,EA0CD,wBAvBvC"}
|
|
@@ -69,4 +69,5 @@ const ProductEditorPresentation = {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
72
|
-
export { ProductCatalogPresentation, ProductDetailPresentation, ProductEditorPresentation };
|
|
72
|
+
export { ProductCatalogPresentation, ProductDetailPresentation, ProductEditorPresentation };
|
|
73
|
+
//# sourceMappingURL=product.presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.presentation.js","names":["ProductCatalogPresentation: PresentationDescriptorV2","ProductDetailPresentation: PresentationDescriptorV2","ProductEditorPresentation: PresentationDescriptorV2"],"sources":["../../src/product/product.presentation.ts"],"sourcesContent":["import type { PresentationDescriptorV2 } from '@lssm/lib.contracts';\nimport { ProductModel } from './product.schema';\n\nexport const ProductCatalogPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.product.catalog',\n version: 1,\n description: 'Product catalog with search and filters',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'product', 'catalog'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProductCatalog',\n props: ProductModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.products.enabled'],\n },\n};\n\nexport const ProductDetailPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.product.detail',\n version: 1,\n description: 'Product detail page with images and reviews',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'product', 'detail'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProductDetail',\n props: ProductModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.products.enabled'],\n },\n};\n\nexport const ProductEditorPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.product.editor',\n version: 1,\n description: 'Product editor for sellers',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'product', 'editor'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProductEditor',\n props: ProductModel,\n },\n targets: ['react'],\n policy: {\n flags: ['marketplace.seller.enabled'],\n },\n};\n"],"mappings":";;;AAGA,MAAaA,6BAAuD;CAClE,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAW;GAAU;EAC5C;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,+BAA+B,EACxC;CACF;AAED,MAAaC,4BAAsD;CACjE,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAW;GAAS;EAC3C;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,+BAA+B,EACxC;CACF;AAED,MAAaC,4BAAsD;CACjE,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAW;GAAS;EAC3C;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF"}
|