@lssm/example.marketplace 0.0.0-canary-20251217080011 → 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 +91 -90
- 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 +69 -68
- 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 +2 -1
- 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,115 +1,115 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema135 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:
|
|
7
|
+
declare const ReviewModel: _lssm_lib_schema135.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
productId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
14
14
|
isOptional: true;
|
|
15
15
|
};
|
|
16
16
|
storeId: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
18
18
|
isOptional: true;
|
|
19
19
|
};
|
|
20
20
|
authorId: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
rating: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
title: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
30
30
|
isOptional: true;
|
|
31
31
|
};
|
|
32
32
|
content: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
34
34
|
isOptional: true;
|
|
35
35
|
};
|
|
36
36
|
status: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema135.EnumType<[string, string, string, string]>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
isVerifiedPurchase: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema135.FieldType<boolean, boolean>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
helpfulCount: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
hasResponse: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema135.FieldType<boolean, boolean>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
createdAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema135.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:
|
|
60
|
+
declare const CreateReviewInputModel: _lssm_lib_schema135.SchemaModel<{
|
|
61
61
|
productId: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
63
63
|
isOptional: true;
|
|
64
64
|
};
|
|
65
65
|
storeId: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
67
67
|
isOptional: true;
|
|
68
68
|
};
|
|
69
69
|
orderId: {
|
|
70
|
-
type:
|
|
70
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
71
71
|
isOptional: true;
|
|
72
72
|
};
|
|
73
73
|
rating: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
title: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
79
79
|
isOptional: true;
|
|
80
80
|
};
|
|
81
81
|
content: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema135.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:
|
|
89
|
+
declare const ListReviewsInputModel: _lssm_lib_schema135.SchemaModel<{
|
|
90
90
|
productId: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
92
92
|
isOptional: true;
|
|
93
93
|
};
|
|
94
94
|
storeId: {
|
|
95
|
-
type:
|
|
95
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
96
96
|
isOptional: true;
|
|
97
97
|
};
|
|
98
98
|
status: {
|
|
99
|
-
type:
|
|
99
|
+
type: _lssm_lib_schema135.EnumType<[string, string, string, string]>;
|
|
100
100
|
isOptional: true;
|
|
101
101
|
};
|
|
102
102
|
minRating: {
|
|
103
|
-
type:
|
|
103
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
104
104
|
isOptional: true;
|
|
105
105
|
};
|
|
106
106
|
limit: {
|
|
107
|
-
type:
|
|
107
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
108
108
|
isOptional: true;
|
|
109
109
|
defaultValue: number;
|
|
110
110
|
};
|
|
111
111
|
offset: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
113
113
|
isOptional: true;
|
|
114
114
|
defaultValue: number;
|
|
115
115
|
};
|
|
@@ -117,55 +117,55 @@ declare const ListReviewsInputModel: _lssm_lib_schema629.SchemaModel<{
|
|
|
117
117
|
/**
|
|
118
118
|
* Output for listing reviews.
|
|
119
119
|
*/
|
|
120
|
-
declare const ListReviewsOutputModel:
|
|
120
|
+
declare const ListReviewsOutputModel: _lssm_lib_schema135.SchemaModel<{
|
|
121
121
|
reviews: {
|
|
122
|
-
type:
|
|
122
|
+
type: _lssm_lib_schema135.SchemaModel<{
|
|
123
123
|
id: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
125
125
|
isOptional: false;
|
|
126
126
|
};
|
|
127
127
|
productId: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
129
129
|
isOptional: true;
|
|
130
130
|
};
|
|
131
131
|
storeId: {
|
|
132
|
-
type:
|
|
132
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
133
133
|
isOptional: true;
|
|
134
134
|
};
|
|
135
135
|
authorId: {
|
|
136
|
-
type:
|
|
136
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
137
137
|
isOptional: false;
|
|
138
138
|
};
|
|
139
139
|
rating: {
|
|
140
|
-
type:
|
|
140
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
141
141
|
isOptional: false;
|
|
142
142
|
};
|
|
143
143
|
title: {
|
|
144
|
-
type:
|
|
144
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
145
145
|
isOptional: true;
|
|
146
146
|
};
|
|
147
147
|
content: {
|
|
148
|
-
type:
|
|
148
|
+
type: _lssm_lib_schema135.FieldType<string, string>;
|
|
149
149
|
isOptional: true;
|
|
150
150
|
};
|
|
151
151
|
status: {
|
|
152
|
-
type:
|
|
152
|
+
type: _lssm_lib_schema135.EnumType<[string, string, string, string]>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
isVerifiedPurchase: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema135.FieldType<boolean, boolean>;
|
|
157
157
|
isOptional: false;
|
|
158
158
|
};
|
|
159
159
|
helpfulCount: {
|
|
160
|
-
type:
|
|
160
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
161
161
|
isOptional: false;
|
|
162
162
|
};
|
|
163
163
|
hasResponse: {
|
|
164
|
-
type:
|
|
164
|
+
type: _lssm_lib_schema135.FieldType<boolean, boolean>;
|
|
165
165
|
isOptional: false;
|
|
166
166
|
};
|
|
167
167
|
createdAt: {
|
|
168
|
-
type:
|
|
168
|
+
type: _lssm_lib_schema135.FieldType<Date, string>;
|
|
169
169
|
isOptional: false;
|
|
170
170
|
};
|
|
171
171
|
}>;
|
|
@@ -173,17 +173,18 @@ declare const ListReviewsOutputModel: _lssm_lib_schema629.SchemaModel<{
|
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
total: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
averageRating: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema135.FieldType<number, number>;
|
|
181
181
|
isOptional: false;
|
|
182
182
|
};
|
|
183
183
|
ratingDistribution: {
|
|
184
|
-
type:
|
|
184
|
+
type: _lssm_lib_schema135.FieldType<unknown, unknown>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
}>;
|
|
188
188
|
//#endregion
|
|
189
|
-
export { CreateReviewInputModel, ListReviewsInputModel, ListReviewsOutputModel, ReviewModel };
|
|
189
|
+
export { CreateReviewInputModel, ListReviewsInputModel, ListReviewsOutputModel, ReviewModel };
|
|
190
|
+
//# sourceMappingURL=review.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.schema.d.ts","names":[],"sources":["../../src/review/review.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAMa,cAAA,WAiBX,sBAjBsB,WAiBtB,CAAA;EAAA,EAAA,EAAA;UAAA,mBAAA,CAAA;;;;;;;;;;;;uCAjBsB,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAsBX,CAAA;EAUX,MAAA,EAAA;;;;;;oBAViC;EAAA,CAAA;EAetB,OAAA,EAAA;IAkBX,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAlBgC,kBAAA,EAAA;IAuBrB,IAAA,+BAQX,CAAA,OAAA,EAAA,OAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;;;;;AARiC,cAtCtB,sBAsCsB,sBAtCA,WAsCA,CAAA;;UA5BjC,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,2CAAqB;;UAkBhC,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,4CAAsB;;;;cAQjC,mBAAA,CAAA"}
|
|
@@ -1,42 +1,40 @@
|
|
|
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 { ReviewStatusEnum } from "./review.enum.js";
|
|
5
3
|
|
|
6
4
|
//#region src/review/review.schema.ts
|
|
7
5
|
/**
|
|
8
6
|
* A customer review.
|
|
9
7
|
*/
|
|
10
|
-
const ReviewModel =
|
|
8
|
+
const ReviewModel = K5({
|
|
11
9
|
name: "ReviewModel",
|
|
12
10
|
description: "A customer review",
|
|
13
11
|
fields: {
|
|
14
12
|
id: {
|
|
15
|
-
type:
|
|
13
|
+
type: E5.String_unsecure(),
|
|
16
14
|
isOptional: false
|
|
17
15
|
},
|
|
18
16
|
productId: {
|
|
19
|
-
type:
|
|
17
|
+
type: E5.String_unsecure(),
|
|
20
18
|
isOptional: true
|
|
21
19
|
},
|
|
22
20
|
storeId: {
|
|
23
|
-
type:
|
|
21
|
+
type: E5.String_unsecure(),
|
|
24
22
|
isOptional: true
|
|
25
23
|
},
|
|
26
24
|
authorId: {
|
|
27
|
-
type:
|
|
25
|
+
type: E5.String_unsecure(),
|
|
28
26
|
isOptional: false
|
|
29
27
|
},
|
|
30
28
|
rating: {
|
|
31
|
-
type:
|
|
29
|
+
type: E5.Int_unsecure(),
|
|
32
30
|
isOptional: false
|
|
33
31
|
},
|
|
34
32
|
title: {
|
|
35
|
-
type:
|
|
33
|
+
type: E5.String_unsecure(),
|
|
36
34
|
isOptional: true
|
|
37
35
|
},
|
|
38
36
|
content: {
|
|
39
|
-
type:
|
|
37
|
+
type: E5.String_unsecure(),
|
|
40
38
|
isOptional: true
|
|
41
39
|
},
|
|
42
40
|
status: {
|
|
@@ -44,19 +42,19 @@ const ReviewModel = defineSchemaModel({
|
|
|
44
42
|
isOptional: false
|
|
45
43
|
},
|
|
46
44
|
isVerifiedPurchase: {
|
|
47
|
-
type:
|
|
45
|
+
type: E5.Boolean(),
|
|
48
46
|
isOptional: false
|
|
49
47
|
},
|
|
50
48
|
helpfulCount: {
|
|
51
|
-
type:
|
|
49
|
+
type: E5.Int_unsecure(),
|
|
52
50
|
isOptional: false
|
|
53
51
|
},
|
|
54
52
|
hasResponse: {
|
|
55
|
-
type:
|
|
53
|
+
type: E5.Boolean(),
|
|
56
54
|
isOptional: false
|
|
57
55
|
},
|
|
58
56
|
createdAt: {
|
|
59
|
-
type:
|
|
57
|
+
type: E5.DateTime(),
|
|
60
58
|
isOptional: false
|
|
61
59
|
}
|
|
62
60
|
}
|
|
@@ -64,31 +62,31 @@ const ReviewModel = defineSchemaModel({
|
|
|
64
62
|
/**
|
|
65
63
|
* Input for creating a review.
|
|
66
64
|
*/
|
|
67
|
-
const CreateReviewInputModel =
|
|
65
|
+
const CreateReviewInputModel = K5({
|
|
68
66
|
name: "CreateReviewInput",
|
|
69
67
|
fields: {
|
|
70
68
|
productId: {
|
|
71
|
-
type:
|
|
69
|
+
type: E5.String_unsecure(),
|
|
72
70
|
isOptional: true
|
|
73
71
|
},
|
|
74
72
|
storeId: {
|
|
75
|
-
type:
|
|
73
|
+
type: E5.String_unsecure(),
|
|
76
74
|
isOptional: true
|
|
77
75
|
},
|
|
78
76
|
orderId: {
|
|
79
|
-
type:
|
|
77
|
+
type: E5.String_unsecure(),
|
|
80
78
|
isOptional: true
|
|
81
79
|
},
|
|
82
80
|
rating: {
|
|
83
|
-
type:
|
|
81
|
+
type: E5.Int_unsecure(),
|
|
84
82
|
isOptional: false
|
|
85
83
|
},
|
|
86
84
|
title: {
|
|
87
|
-
type:
|
|
85
|
+
type: E5.String_unsecure(),
|
|
88
86
|
isOptional: true
|
|
89
87
|
},
|
|
90
88
|
content: {
|
|
91
|
-
type:
|
|
89
|
+
type: E5.String_unsecure(),
|
|
92
90
|
isOptional: true
|
|
93
91
|
}
|
|
94
92
|
}
|
|
@@ -96,15 +94,15 @@ const CreateReviewInputModel = defineSchemaModel({
|
|
|
96
94
|
/**
|
|
97
95
|
* Input for listing reviews.
|
|
98
96
|
*/
|
|
99
|
-
const ListReviewsInputModel =
|
|
97
|
+
const ListReviewsInputModel = K5({
|
|
100
98
|
name: "ListReviewsInput",
|
|
101
99
|
fields: {
|
|
102
100
|
productId: {
|
|
103
|
-
type:
|
|
101
|
+
type: E5.String_unsecure(),
|
|
104
102
|
isOptional: true
|
|
105
103
|
},
|
|
106
104
|
storeId: {
|
|
107
|
-
type:
|
|
105
|
+
type: E5.String_unsecure(),
|
|
108
106
|
isOptional: true
|
|
109
107
|
},
|
|
110
108
|
status: {
|
|
@@ -112,16 +110,16 @@ const ListReviewsInputModel = defineSchemaModel({
|
|
|
112
110
|
isOptional: true
|
|
113
111
|
},
|
|
114
112
|
minRating: {
|
|
115
|
-
type:
|
|
113
|
+
type: E5.Int_unsecure(),
|
|
116
114
|
isOptional: true
|
|
117
115
|
},
|
|
118
116
|
limit: {
|
|
119
|
-
type:
|
|
117
|
+
type: E5.Int_unsecure(),
|
|
120
118
|
isOptional: true,
|
|
121
119
|
defaultValue: 20
|
|
122
120
|
},
|
|
123
121
|
offset: {
|
|
124
|
-
type:
|
|
122
|
+
type: E5.Int_unsecure(),
|
|
125
123
|
isOptional: true,
|
|
126
124
|
defaultValue: 0
|
|
127
125
|
}
|
|
@@ -130,7 +128,7 @@ const ListReviewsInputModel = defineSchemaModel({
|
|
|
130
128
|
/**
|
|
131
129
|
* Output for listing reviews.
|
|
132
130
|
*/
|
|
133
|
-
const ListReviewsOutputModel =
|
|
131
|
+
const ListReviewsOutputModel = K5({
|
|
134
132
|
name: "ListReviewsOutput",
|
|
135
133
|
fields: {
|
|
136
134
|
reviews: {
|
|
@@ -139,19 +137,20 @@ const ListReviewsOutputModel = defineSchemaModel({
|
|
|
139
137
|
isOptional: false
|
|
140
138
|
},
|
|
141
139
|
total: {
|
|
142
|
-
type:
|
|
140
|
+
type: E5.Int_unsecure(),
|
|
143
141
|
isOptional: false
|
|
144
142
|
},
|
|
145
143
|
averageRating: {
|
|
146
|
-
type:
|
|
144
|
+
type: E5.Float_unsecure(),
|
|
147
145
|
isOptional: false
|
|
148
146
|
},
|
|
149
147
|
ratingDistribution: {
|
|
150
|
-
type:
|
|
148
|
+
type: E5.JSON(),
|
|
151
149
|
isOptional: false
|
|
152
150
|
}
|
|
153
151
|
}
|
|
154
152
|
});
|
|
155
153
|
|
|
156
154
|
//#endregion
|
|
157
|
-
export { CreateReviewInputModel, ListReviewsInputModel, ListReviewsOutputModel, ReviewModel };
|
|
155
|
+
export { CreateReviewInputModel, ListReviewsInputModel, ListReviewsOutputModel, ReviewModel };
|
|
156
|
+
//# sourceMappingURL=review.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/review/review.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { ReviewStatusEnum } from './review.enum';\n\n/**\n * A customer review.\n */\nexport const ReviewModel = defineSchemaModel({\n name: 'ReviewModel',\n description: 'A customer review',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n authorId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n rating: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n title: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n content: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ReviewStatusEnum, isOptional: false },\n isVerifiedPurchase: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n helpfulCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasResponse: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for creating a review.\n */\nexport const CreateReviewInputModel = defineSchemaModel({\n name: 'CreateReviewInput',\n fields: {\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n orderId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n rating: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n title: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n content: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\n/**\n * Input for listing reviews.\n */\nexport const ListReviewsInputModel = defineSchemaModel({\n name: 'ListReviewsInput',\n fields: {\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ReviewStatusEnum, isOptional: true },\n minRating: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n});\n\n/**\n * Output for listing reviews.\n */\nexport const ListReviewsOutputModel = defineSchemaModel({\n name: 'ListReviewsOutput',\n fields: {\n reviews: { type: ReviewModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n averageRating: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n ratingDistribution: { type: ScalarTypeEnum.JSON(), isOptional: false },\n },\n});\n"],"mappings":";;;;;;;AAMA,MAAa,cAAcA,GAAkB;CAC3C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,QAAQ;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAClE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACnE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,QAAQ;GAAE,MAAM;GAAkB,YAAY;GAAO;EACrD,oBAAoB;GAAE,MAAMA,GAAe,SAAS;GAAE,YAAY;GAAO;EACzE,cAAc;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EACxE,aAAa;GAAE,MAAMA,GAAe,SAAS;GAAE,YAAY;GAAO;EAClE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,yBAAyBD,GAAkB;CACtD,MAAM;CACN,QAAQ;EACN,WAAW;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,QAAQ;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAClE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACnE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACtE;CACF,CAAC;;;;AAKF,MAAa,wBAAwBD,GAAkB;CACrD,MAAM;CACN,QAAQ;EACN,WAAW;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,QAAQ;GAAE,MAAM;GAAkB,YAAY;GAAM;EACpD,WAAW;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EACpE,OAAO;GACL,MAAMA,GAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACD,QAAQ;GACN,MAAMA,GAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACF;CACF,CAAC;;;;AAKF,MAAa,yBAAyBD,GAAkB;CACtD,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAM;GAAa,SAAS;GAAM,YAAY;GAAO;EAChE,OAAO;GAAE,MAAMC,GAAe,cAAc;GAAE,YAAY;GAAO;EACjE,eAAe;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EAC3E,oBAAoB;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAO;EACvE;CACF,CAAC"}
|
|
@@ -1,130 +1,131 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema551 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts3 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_contracts3.ContractSpec<_lssm_lib_schema551.SchemaModel<{
|
|
9
9
|
name: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
slug: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
description: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
};
|
|
21
21
|
email: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
23
23
|
isOptional: true;
|
|
24
24
|
};
|
|
25
25
|
country: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
currency: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
|
-
}>,
|
|
33
|
+
}>, _lssm_lib_schema551.SchemaModel<{
|
|
34
34
|
id: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
name: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
slug: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
description: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
status: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema551.EnumType<[string, string, string, string]>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
ownerId: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
logoFileId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
isVerified: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema551.FieldType<boolean, boolean>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
totalProducts: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema551.FieldType<number, number>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
averageRating: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema551.FieldType<number, number>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
createdAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema551.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_schema551.SchemaModel<{
|
|
83
83
|
id: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
name: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
slug: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
description: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
97
97
|
isOptional: true;
|
|
98
98
|
};
|
|
99
99
|
status: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema551.EnumType<[string, string, string, string]>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
ownerId: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
logoFileId: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema551.FieldType<string, string>;
|
|
109
109
|
isOptional: true;
|
|
110
110
|
};
|
|
111
111
|
isVerified: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema551.FieldType<boolean, boolean>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
totalProducts: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema551.FieldType<number, number>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
averageRating: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema551.FieldType<number, number>;
|
|
121
121
|
isOptional: false;
|
|
122
122
|
};
|
|
123
123
|
createdAt: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema551.FieldType<Date, string>;
|
|
125
125
|
isOptional: false;
|
|
126
126
|
};
|
|
127
127
|
}>;
|
|
128
128
|
}[]>;
|
|
129
129
|
//#endregion
|
|
130
|
-
export { CreateStoreContract };
|
|
130
|
+
export { CreateStoreContract };
|
|
131
|
+
//# sourceMappingURL=store.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.contracts.d.ts","names":[],"sources":["../../src/store/store.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQa,0CAAmB,iCAAA;EAAnB,IAAA,EAAA;IAwBX,IAAA,EAAA,mBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAxB8B,WAAA,EAAA;;;;;;;;;;;;;;;;;;UAAA,mBAAA,CAAA;;;;;;;;uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.contracts.js","names":[],"sources":["../../src/store/store.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts/spec';\nimport { StoreModel, CreateStoreInputModel } from './store.schema';\n\nconst OWNERS = ['@example.marketplace'] as const;\n\n/**\n * Create a new seller store.\n */\nexport const CreateStoreContract = defineCommand({\n meta: {\n name: 'marketplace.store.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['marketplace', 'store', 'create'],\n description: 'Create a new seller store.',\n goal: 'Allow users to become sellers on the marketplace.',\n context: 'Seller onboarding.',\n },\n io: { input: CreateStoreInputModel, output: StoreModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'marketplace.store.created',\n version: 1,\n when: 'Store is created',\n payload: StoreModel,\n },\n ],\n audit: ['marketplace.store.created'],\n },\n});\n"],"mappings":";;;;AAGA,MAAM,SAAS,CAAC,uBAAuB;;;;AAKvC,MAAa,sBAAsB,cAAc;CAC/C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAS;GAAS;EACxC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAuB,QAAQ;EAAY;CACxD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,4BAA4B;EACrC;CACF,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema646 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_schema646.EnumType<[string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { StoreStatusEnum };
|
|
9
|
+
export { StoreStatusEnum };
|
|
10
|
+
//# sourceMappingURL=store.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.enum.d.ts","names":[],"sources":["../../src/store/store.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,eAKX,EAAA,mBAAA,CAL0B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
|
package/dist/store/store.enum.js
CHANGED
|
@@ -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/store/store.enum.ts
|
|
5
4
|
/**
|
|
6
5
|
* Store status enum.
|
|
7
6
|
*/
|
|
8
|
-
const StoreStatusEnum =
|
|
7
|
+
const StoreStatusEnum = N5("StoreStatus", [
|
|
9
8
|
"PENDING",
|
|
10
9
|
"ACTIVE",
|
|
11
10
|
"SUSPENDED",
|
|
@@ -13,4 +12,5 @@ const StoreStatusEnum = defineEnum("StoreStatus", [
|
|
|
13
12
|
]);
|
|
14
13
|
|
|
15
14
|
//#endregion
|
|
16
|
-
export { StoreStatusEnum };
|
|
15
|
+
export { StoreStatusEnum };
|
|
16
|
+
//# sourceMappingURL=store.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.enum.js","names":["defineEnum"],"sources":["../../src/store/store.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Store status enum.\n */\nexport const StoreStatusEnum = defineEnum('StoreStatus', [\n 'PENDING',\n 'ACTIVE',\n 'SUSPENDED',\n 'CLOSED',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,kBAAkBA,GAAW,eAAe;CACvD;CACA;CACA;CACA;CACD,CAAC"}
|