@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,144 +1,145 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema982 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts11 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.event.d.ts
|
|
5
|
-
declare const OrderCreatedEvent:
|
|
5
|
+
declare const OrderCreatedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema982.SchemaModel<{
|
|
6
6
|
orderId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
orderNumber: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
buyerId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
storeId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
total: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema982.FieldType<number, number>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
currency: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
itemCount: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema982.FieldType<number, number>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
timestamp: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema982.FieldType<Date, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
}>>;
|
|
39
|
-
declare const OrderPaidEvent:
|
|
39
|
+
declare const OrderPaidEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema982.SchemaModel<{
|
|
40
40
|
orderId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
orderNumber: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
total: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema982.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
paymentMethod: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema982.FieldType<Date, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
61
|
-
declare const OrderStatusUpdatedEvent:
|
|
61
|
+
declare const OrderStatusUpdatedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema982.SchemaModel<{
|
|
62
62
|
orderId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
orderNumber: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
previousStatus: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
newStatus: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
updatedBy: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
timestamp: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema982.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const OrderShippedEvent:
|
|
87
|
+
declare const OrderShippedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema982.SchemaModel<{
|
|
88
88
|
orderId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
orderNumber: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
trackingNumber: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
trackingUrl: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
102
102
|
isOptional: true;
|
|
103
103
|
};
|
|
104
104
|
carrier: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
timestamp: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema982.FieldType<Date, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
}>>;
|
|
113
|
-
declare const OrderCompletedEvent:
|
|
113
|
+
declare const OrderCompletedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema982.SchemaModel<{
|
|
114
114
|
orderId: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
orderNumber: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
buyerId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
storeId: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema982.FieldType<string, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
total: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema982.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
sellerPayout: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema982.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
timestamp: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema982.FieldType<Date, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
}>>;
|
|
143
143
|
//#endregion
|
|
144
|
-
export { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent };
|
|
144
|
+
export { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent };
|
|
145
|
+
//# sourceMappingURL=order.event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.event.d.ts","names":[],"sources":["../../src/order/order.event.ts"],"sourcesContent":[],"mappings":";;;;cA0Ea,mBAAiB,qBAAA,CAAA,8BAAA;;UAK5B,mBAAA,CAAA;;EALW,CAAA;EAKX,WAAA,EAAA;;;;;;;;;uCAL4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAOjB,KAAA,EAAA;IAKX,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EALyB,SAAA,EAAA;IAAA,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAOd,UAAA,EAAA,KAAA;EAKX,CAAA;;;;;;cAZW,gBAAc,qBAAA,CAAA,8BAAA;;IAOS,IAAA,EAFlC,mBAAA,CAAA,SAEkC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAOvB,CAAA;EAKX,WAAA,EAAA;;;;;;;;EAL4B,aAAA,EAAA;IAAA,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAOjB,UAAA,EAAA,KAAA;EAKX,CAAA;;;;;;cAnBW,yBAAuB,qBAAA,CAAA,8BAAA;;UAKlC,mBAAA,CAAA,SAS8B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;cAPnB,mBAAiB,qBAAA,CAAA,8BAAA;;UAK5B,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW,qBAAmB,qBAAA,CAAA,8BAAA;;UAK9B,mBAAA,CAAA"}
|
|
@@ -1,159 +1,157 @@
|
|
|
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/order/order.event.ts
|
|
8
|
-
const OrderCreatedPayload =
|
|
6
|
+
const OrderCreatedPayload = K5({
|
|
9
7
|
name: "OrderCreatedEventPayload",
|
|
10
8
|
fields: {
|
|
11
9
|
orderId: {
|
|
12
|
-
type:
|
|
10
|
+
type: E5.String_unsecure(),
|
|
13
11
|
isOptional: false
|
|
14
12
|
},
|
|
15
13
|
orderNumber: {
|
|
16
|
-
type:
|
|
14
|
+
type: E5.String_unsecure(),
|
|
17
15
|
isOptional: false
|
|
18
16
|
},
|
|
19
17
|
buyerId: {
|
|
20
|
-
type:
|
|
18
|
+
type: E5.String_unsecure(),
|
|
21
19
|
isOptional: false
|
|
22
20
|
},
|
|
23
21
|
storeId: {
|
|
24
|
-
type:
|
|
22
|
+
type: E5.String_unsecure(),
|
|
25
23
|
isOptional: false
|
|
26
24
|
},
|
|
27
25
|
total: {
|
|
28
|
-
type:
|
|
26
|
+
type: E5.Float_unsecure(),
|
|
29
27
|
isOptional: false
|
|
30
28
|
},
|
|
31
29
|
currency: {
|
|
32
|
-
type:
|
|
30
|
+
type: E5.String_unsecure(),
|
|
33
31
|
isOptional: false
|
|
34
32
|
},
|
|
35
33
|
itemCount: {
|
|
36
|
-
type:
|
|
34
|
+
type: E5.Int_unsecure(),
|
|
37
35
|
isOptional: false
|
|
38
36
|
},
|
|
39
37
|
timestamp: {
|
|
40
|
-
type:
|
|
38
|
+
type: E5.DateTime(),
|
|
41
39
|
isOptional: false
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
});
|
|
45
|
-
const OrderPaidPayload =
|
|
43
|
+
const OrderPaidPayload = K5({
|
|
46
44
|
name: "OrderPaidEventPayload",
|
|
47
45
|
fields: {
|
|
48
46
|
orderId: {
|
|
49
|
-
type:
|
|
47
|
+
type: E5.String_unsecure(),
|
|
50
48
|
isOptional: false
|
|
51
49
|
},
|
|
52
50
|
orderNumber: {
|
|
53
|
-
type:
|
|
51
|
+
type: E5.String_unsecure(),
|
|
54
52
|
isOptional: false
|
|
55
53
|
},
|
|
56
54
|
total: {
|
|
57
|
-
type:
|
|
55
|
+
type: E5.Float_unsecure(),
|
|
58
56
|
isOptional: false
|
|
59
57
|
},
|
|
60
58
|
paymentMethod: {
|
|
61
|
-
type:
|
|
59
|
+
type: E5.String_unsecure(),
|
|
62
60
|
isOptional: false
|
|
63
61
|
},
|
|
64
62
|
timestamp: {
|
|
65
|
-
type:
|
|
63
|
+
type: E5.DateTime(),
|
|
66
64
|
isOptional: false
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
});
|
|
70
|
-
const OrderStatusUpdatedPayload =
|
|
68
|
+
const OrderStatusUpdatedPayload = K5({
|
|
71
69
|
name: "OrderStatusUpdatedEventPayload",
|
|
72
70
|
fields: {
|
|
73
71
|
orderId: {
|
|
74
|
-
type:
|
|
72
|
+
type: E5.String_unsecure(),
|
|
75
73
|
isOptional: false
|
|
76
74
|
},
|
|
77
75
|
orderNumber: {
|
|
78
|
-
type:
|
|
76
|
+
type: E5.String_unsecure(),
|
|
79
77
|
isOptional: false
|
|
80
78
|
},
|
|
81
79
|
previousStatus: {
|
|
82
|
-
type:
|
|
80
|
+
type: E5.String_unsecure(),
|
|
83
81
|
isOptional: false
|
|
84
82
|
},
|
|
85
83
|
newStatus: {
|
|
86
|
-
type:
|
|
84
|
+
type: E5.String_unsecure(),
|
|
87
85
|
isOptional: false
|
|
88
86
|
},
|
|
89
87
|
updatedBy: {
|
|
90
|
-
type:
|
|
88
|
+
type: E5.String_unsecure(),
|
|
91
89
|
isOptional: false
|
|
92
90
|
},
|
|
93
91
|
timestamp: {
|
|
94
|
-
type:
|
|
92
|
+
type: E5.DateTime(),
|
|
95
93
|
isOptional: false
|
|
96
94
|
}
|
|
97
95
|
}
|
|
98
96
|
});
|
|
99
|
-
const OrderShippedPayload =
|
|
97
|
+
const OrderShippedPayload = K5({
|
|
100
98
|
name: "OrderShippedEventPayload",
|
|
101
99
|
fields: {
|
|
102
100
|
orderId: {
|
|
103
|
-
type:
|
|
101
|
+
type: E5.String_unsecure(),
|
|
104
102
|
isOptional: false
|
|
105
103
|
},
|
|
106
104
|
orderNumber: {
|
|
107
|
-
type:
|
|
105
|
+
type: E5.String_unsecure(),
|
|
108
106
|
isOptional: false
|
|
109
107
|
},
|
|
110
108
|
trackingNumber: {
|
|
111
|
-
type:
|
|
109
|
+
type: E5.String_unsecure(),
|
|
112
110
|
isOptional: true
|
|
113
111
|
},
|
|
114
112
|
trackingUrl: {
|
|
115
|
-
type:
|
|
113
|
+
type: E5.String_unsecure(),
|
|
116
114
|
isOptional: true
|
|
117
115
|
},
|
|
118
116
|
carrier: {
|
|
119
|
-
type:
|
|
117
|
+
type: E5.String_unsecure(),
|
|
120
118
|
isOptional: true
|
|
121
119
|
},
|
|
122
120
|
timestamp: {
|
|
123
|
-
type:
|
|
121
|
+
type: E5.DateTime(),
|
|
124
122
|
isOptional: false
|
|
125
123
|
}
|
|
126
124
|
}
|
|
127
125
|
});
|
|
128
|
-
const OrderCompletedPayload =
|
|
126
|
+
const OrderCompletedPayload = K5({
|
|
129
127
|
name: "OrderCompletedEventPayload",
|
|
130
128
|
fields: {
|
|
131
129
|
orderId: {
|
|
132
|
-
type:
|
|
130
|
+
type: E5.String_unsecure(),
|
|
133
131
|
isOptional: false
|
|
134
132
|
},
|
|
135
133
|
orderNumber: {
|
|
136
|
-
type:
|
|
134
|
+
type: E5.String_unsecure(),
|
|
137
135
|
isOptional: false
|
|
138
136
|
},
|
|
139
137
|
buyerId: {
|
|
140
|
-
type:
|
|
138
|
+
type: E5.String_unsecure(),
|
|
141
139
|
isOptional: false
|
|
142
140
|
},
|
|
143
141
|
storeId: {
|
|
144
|
-
type:
|
|
142
|
+
type: E5.String_unsecure(),
|
|
145
143
|
isOptional: false
|
|
146
144
|
},
|
|
147
145
|
total: {
|
|
148
|
-
type:
|
|
146
|
+
type: E5.Float_unsecure(),
|
|
149
147
|
isOptional: false
|
|
150
148
|
},
|
|
151
149
|
sellerPayout: {
|
|
152
|
-
type:
|
|
150
|
+
type: E5.Float_unsecure(),
|
|
153
151
|
isOptional: false
|
|
154
152
|
},
|
|
155
153
|
timestamp: {
|
|
156
|
-
type:
|
|
154
|
+
type: E5.DateTime(),
|
|
157
155
|
isOptional: false
|
|
158
156
|
}
|
|
159
157
|
}
|
|
@@ -190,4 +188,5 @@ const OrderCompletedEvent = defineEvent({
|
|
|
190
188
|
});
|
|
191
189
|
|
|
192
190
|
//#endregion
|
|
193
|
-
export { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent };
|
|
191
|
+
export { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent };
|
|
192
|
+
//# sourceMappingURL=order.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.event.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/order/order.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\nimport { defineEvent } from '@lssm/lib.contracts';\n\nconst OrderCreatedPayload = defineSchemaModel({\n name: 'OrderCreatedEventPayload',\n fields: {\n orderId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orderNumber: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n buyerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n total: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n itemCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst OrderPaidPayload = defineSchemaModel({\n name: 'OrderPaidEventPayload',\n fields: {\n orderId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orderNumber: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n total: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n paymentMethod: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst OrderStatusUpdatedPayload = defineSchemaModel({\n name: 'OrderStatusUpdatedEventPayload',\n fields: {\n orderId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orderNumber: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n previousStatus: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n newStatus: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n updatedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst OrderShippedPayload = defineSchemaModel({\n name: 'OrderShippedEventPayload',\n fields: {\n orderId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orderNumber: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n trackingNumber: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n trackingUrl: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n carrier: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst OrderCompletedPayload = defineSchemaModel({\n name: 'OrderCompletedEventPayload',\n fields: {\n orderId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orderNumber: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n buyerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n total: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n sellerPayout: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const OrderCreatedEvent = defineEvent({\n name: 'marketplace.order.created',\n version: 1,\n description: 'A new order has been created.',\n payload: OrderCreatedPayload,\n});\n\nexport const OrderPaidEvent = defineEvent({\n name: 'marketplace.order.paid',\n version: 1,\n description: 'An order has been paid.',\n payload: OrderPaidPayload,\n});\n\nexport const OrderStatusUpdatedEvent = defineEvent({\n name: 'marketplace.order.statusUpdated',\n version: 1,\n description: 'An order status has been updated.',\n payload: OrderStatusUpdatedPayload,\n});\n\nexport const OrderShippedEvent = defineEvent({\n name: 'marketplace.order.shipped',\n version: 1,\n description: 'An order has been shipped.',\n payload: OrderShippedPayload,\n});\n\nexport const OrderCompletedEvent = defineEvent({\n name: 'marketplace.order.completed',\n version: 1,\n description: 'An order has been completed.',\n payload: OrderCompletedPayload,\n});\n"],"mappings":"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"}
|
|
@@ -5,4 +5,5 @@ declare const OrderListPresentation: PresentationDescriptorV2;
|
|
|
5
5
|
declare const OrderDetailPresentation: PresentationDescriptorV2;
|
|
6
6
|
declare const CheckoutPresentation: PresentationDescriptorV2;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { CheckoutPresentation, OrderDetailPresentation, OrderListPresentation };
|
|
8
|
+
export { CheckoutPresentation, OrderDetailPresentation, OrderListPresentation };
|
|
9
|
+
//# sourceMappingURL=order.presentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.presentation.d.ts","names":[],"sources":["../../src/order/order.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,uBAAuB;cAqBvB,yBAAyB;AArBzB,cA0CA,oBA1CuB,EA0CD,wBAvBlC"}
|
|
@@ -69,4 +69,5 @@ const CheckoutPresentation = {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
72
|
-
export { CheckoutPresentation, OrderDetailPresentation, OrderListPresentation };
|
|
72
|
+
export { CheckoutPresentation, OrderDetailPresentation, OrderListPresentation };
|
|
73
|
+
//# sourceMappingURL=order.presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.presentation.js","names":["OrderListPresentation: PresentationDescriptorV2","OrderDetailPresentation: PresentationDescriptorV2","CheckoutPresentation: PresentationDescriptorV2"],"sources":["../../src/order/order.presentation.ts"],"sourcesContent":["import type { PresentationDescriptorV2 } from '@lssm/lib.contracts';\nimport { OrderModel } from './order.schema';\n\nexport const OrderListPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.order.list',\n version: 1,\n description: 'List of orders with status and tracking',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'order', 'list'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'OrderList',\n props: OrderModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.orders.enabled'],\n },\n};\n\nexport const OrderDetailPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.order.detail',\n version: 1,\n description: 'Order detail with items and shipping info',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'order', 'detail'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'OrderDetail',\n props: OrderModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.orders.enabled'],\n },\n};\n\nexport const CheckoutPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.checkout',\n version: 1,\n description: 'Checkout flow with cart and payment',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'checkout', 'cart'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'Checkout',\n props: OrderModel,\n },\n targets: ['react'],\n policy: {\n flags: ['marketplace.checkout.enabled'],\n },\n};\n"],"mappings":";;;AAGA,MAAaA,wBAAkD;CAC7D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAS;GAAO;EACvC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF;AAED,MAAaC,0BAAoD;CAC/D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAS;GAAS;EACzC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF;AAED,MAAaC,uBAAiD;CAC5D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAY;GAAO;EAC1C;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,+BAA+B,EACxC;CACF"}
|
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema1076 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/order/order.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* An order item.
|
|
6
6
|
*/
|
|
7
|
-
declare const OrderItemModel:
|
|
7
|
+
declare const OrderItemModel: _lssm_lib_schema1076.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
productId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
productName: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
unitPrice: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
quantity: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
subtotal: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
}>;
|
|
33
33
|
/**
|
|
34
34
|
* An order.
|
|
35
35
|
*/
|
|
36
|
-
declare const OrderModel:
|
|
36
|
+
declare const OrderModel: _lssm_lib_schema1076.SchemaModel<{
|
|
37
37
|
id: {
|
|
38
|
-
type:
|
|
38
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
orderNumber: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
buyerId: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
storeId: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
status: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema1076.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
subtotal: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
shippingTotal: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
taxTotal: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
total: {
|
|
70
|
-
type:
|
|
70
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
71
71
|
isOptional: false;
|
|
72
72
|
};
|
|
73
73
|
currency: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
items: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema1076.SchemaModel<{
|
|
79
79
|
id: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
productId: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
productName: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
unitPrice: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
quantity: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
subtotal: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema1076.FieldType<number, number>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
}>;
|
|
@@ -105,60 +105,61 @@ declare const OrderModel: _lssm_lib_schema1036.SchemaModel<{
|
|
|
105
105
|
isOptional: true;
|
|
106
106
|
};
|
|
107
107
|
createdAt: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema1076.FieldType<Date, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
}>;
|
|
112
112
|
/**
|
|
113
113
|
* Input for creating an order.
|
|
114
114
|
*/
|
|
115
|
-
declare const CreateOrderInputModel:
|
|
115
|
+
declare const CreateOrderInputModel: _lssm_lib_schema1076.SchemaModel<{
|
|
116
116
|
storeId: {
|
|
117
|
-
type:
|
|
117
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
items: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema1076.FieldType<unknown, unknown>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
description: string;
|
|
124
124
|
};
|
|
125
125
|
shippingAddress: {
|
|
126
|
-
type:
|
|
126
|
+
type: _lssm_lib_schema1076.FieldType<unknown, unknown>;
|
|
127
127
|
isOptional: true;
|
|
128
128
|
};
|
|
129
129
|
billingAddress: {
|
|
130
|
-
type:
|
|
130
|
+
type: _lssm_lib_schema1076.FieldType<unknown, unknown>;
|
|
131
131
|
isOptional: true;
|
|
132
132
|
};
|
|
133
133
|
buyerNote: {
|
|
134
|
-
type:
|
|
134
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
135
135
|
isOptional: true;
|
|
136
136
|
};
|
|
137
137
|
}>;
|
|
138
138
|
/**
|
|
139
139
|
* Input for updating order status.
|
|
140
140
|
*/
|
|
141
|
-
declare const UpdateOrderStatusInputModel:
|
|
141
|
+
declare const UpdateOrderStatusInputModel: _lssm_lib_schema1076.SchemaModel<{
|
|
142
142
|
orderId: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
status: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema1076.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
trackingNumber: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
152
152
|
isOptional: true;
|
|
153
153
|
};
|
|
154
154
|
trackingUrl: {
|
|
155
|
-
type:
|
|
155
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
156
156
|
isOptional: true;
|
|
157
157
|
};
|
|
158
158
|
note: {
|
|
159
|
-
type:
|
|
159
|
+
type: _lssm_lib_schema1076.FieldType<string, string>;
|
|
160
160
|
isOptional: true;
|
|
161
161
|
};
|
|
162
162
|
}>;
|
|
163
163
|
//#endregion
|
|
164
|
-
export { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel };
|
|
164
|
+
export { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel };
|
|
165
|
+
//# sourceMappingURL=order.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.schema.d.ts","names":[],"sources":["../../src/order/order.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAMa,cAAA,cAUX,uBAVyB,WAUzB,CAAA;EAAA,EAAA,EAAA;UAAA,oBAAA,CAAA;;;;;qBAVyB;EAAA,CAAA;EAed,WAAA,EAiBX;IAAA,IAAA,gCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;cAjBW,UAAU,uBAAA,WAAA,CAAA;EAAA,EAAA,EAAA;IAsBV,IAAA,EALX,oBAAA,CAAA,SAkBA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;EAbgC,OAAA,EAAA;IAkBrB,IAAA,gCAYX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;EAZsC,MAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlB3B,4CAAqB;;UAahC,oBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAKW,kDAA2B;;UAYtC,oBAAA,CAAA"}
|