@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,37 +1,35 @@
|
|
|
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 { OrderStatusEnum } from "./order.enum.js";
|
|
5
3
|
|
|
6
4
|
//#region src/order/order.schema.ts
|
|
7
5
|
/**
|
|
8
6
|
* An order item.
|
|
9
7
|
*/
|
|
10
|
-
const OrderItemModel =
|
|
8
|
+
const OrderItemModel = K5({
|
|
11
9
|
name: "OrderItemModel",
|
|
12
10
|
fields: {
|
|
13
11
|
id: {
|
|
14
|
-
type:
|
|
12
|
+
type: E5.String_unsecure(),
|
|
15
13
|
isOptional: false
|
|
16
14
|
},
|
|
17
15
|
productId: {
|
|
18
|
-
type:
|
|
16
|
+
type: E5.String_unsecure(),
|
|
19
17
|
isOptional: false
|
|
20
18
|
},
|
|
21
19
|
productName: {
|
|
22
|
-
type:
|
|
20
|
+
type: E5.String_unsecure(),
|
|
23
21
|
isOptional: false
|
|
24
22
|
},
|
|
25
23
|
unitPrice: {
|
|
26
|
-
type:
|
|
24
|
+
type: E5.Float_unsecure(),
|
|
27
25
|
isOptional: false
|
|
28
26
|
},
|
|
29
27
|
quantity: {
|
|
30
|
-
type:
|
|
28
|
+
type: E5.Int_unsecure(),
|
|
31
29
|
isOptional: false
|
|
32
30
|
},
|
|
33
31
|
subtotal: {
|
|
34
|
-
type:
|
|
32
|
+
type: E5.Float_unsecure(),
|
|
35
33
|
isOptional: false
|
|
36
34
|
}
|
|
37
35
|
}
|
|
@@ -39,24 +37,24 @@ const OrderItemModel = defineSchemaModel({
|
|
|
39
37
|
/**
|
|
40
38
|
* An order.
|
|
41
39
|
*/
|
|
42
|
-
const OrderModel =
|
|
40
|
+
const OrderModel = K5({
|
|
43
41
|
name: "OrderModel",
|
|
44
42
|
description: "An order",
|
|
45
43
|
fields: {
|
|
46
44
|
id: {
|
|
47
|
-
type:
|
|
45
|
+
type: E5.String_unsecure(),
|
|
48
46
|
isOptional: false
|
|
49
47
|
},
|
|
50
48
|
orderNumber: {
|
|
51
|
-
type:
|
|
49
|
+
type: E5.String_unsecure(),
|
|
52
50
|
isOptional: false
|
|
53
51
|
},
|
|
54
52
|
buyerId: {
|
|
55
|
-
type:
|
|
53
|
+
type: E5.String_unsecure(),
|
|
56
54
|
isOptional: false
|
|
57
55
|
},
|
|
58
56
|
storeId: {
|
|
59
|
-
type:
|
|
57
|
+
type: E5.String_unsecure(),
|
|
60
58
|
isOptional: false
|
|
61
59
|
},
|
|
62
60
|
status: {
|
|
@@ -64,23 +62,23 @@ const OrderModel = defineSchemaModel({
|
|
|
64
62
|
isOptional: false
|
|
65
63
|
},
|
|
66
64
|
subtotal: {
|
|
67
|
-
type:
|
|
65
|
+
type: E5.Float_unsecure(),
|
|
68
66
|
isOptional: false
|
|
69
67
|
},
|
|
70
68
|
shippingTotal: {
|
|
71
|
-
type:
|
|
69
|
+
type: E5.Float_unsecure(),
|
|
72
70
|
isOptional: false
|
|
73
71
|
},
|
|
74
72
|
taxTotal: {
|
|
75
|
-
type:
|
|
73
|
+
type: E5.Float_unsecure(),
|
|
76
74
|
isOptional: false
|
|
77
75
|
},
|
|
78
76
|
total: {
|
|
79
|
-
type:
|
|
77
|
+
type: E5.Float_unsecure(),
|
|
80
78
|
isOptional: false
|
|
81
79
|
},
|
|
82
80
|
currency: {
|
|
83
|
-
type:
|
|
81
|
+
type: E5.String_unsecure(),
|
|
84
82
|
isOptional: false
|
|
85
83
|
},
|
|
86
84
|
items: {
|
|
@@ -89,7 +87,7 @@ const OrderModel = defineSchemaModel({
|
|
|
89
87
|
isOptional: true
|
|
90
88
|
},
|
|
91
89
|
createdAt: {
|
|
92
|
-
type:
|
|
90
|
+
type: E5.DateTime(),
|
|
93
91
|
isOptional: false
|
|
94
92
|
}
|
|
95
93
|
}
|
|
@@ -97,28 +95,28 @@ const OrderModel = defineSchemaModel({
|
|
|
97
95
|
/**
|
|
98
96
|
* Input for creating an order.
|
|
99
97
|
*/
|
|
100
|
-
const CreateOrderInputModel =
|
|
98
|
+
const CreateOrderInputModel = K5({
|
|
101
99
|
name: "CreateOrderInput",
|
|
102
100
|
fields: {
|
|
103
101
|
storeId: {
|
|
104
|
-
type:
|
|
102
|
+
type: E5.String_unsecure(),
|
|
105
103
|
isOptional: false
|
|
106
104
|
},
|
|
107
105
|
items: {
|
|
108
|
-
type:
|
|
106
|
+
type: E5.JSON(),
|
|
109
107
|
isOptional: false,
|
|
110
108
|
description: "Array of {productId, variantId?, quantity}"
|
|
111
109
|
},
|
|
112
110
|
shippingAddress: {
|
|
113
|
-
type:
|
|
111
|
+
type: E5.JSON(),
|
|
114
112
|
isOptional: true
|
|
115
113
|
},
|
|
116
114
|
billingAddress: {
|
|
117
|
-
type:
|
|
115
|
+
type: E5.JSON(),
|
|
118
116
|
isOptional: true
|
|
119
117
|
},
|
|
120
118
|
buyerNote: {
|
|
121
|
-
type:
|
|
119
|
+
type: E5.String_unsecure(),
|
|
122
120
|
isOptional: true
|
|
123
121
|
}
|
|
124
122
|
}
|
|
@@ -126,11 +124,11 @@ const CreateOrderInputModel = defineSchemaModel({
|
|
|
126
124
|
/**
|
|
127
125
|
* Input for updating order status.
|
|
128
126
|
*/
|
|
129
|
-
const UpdateOrderStatusInputModel =
|
|
127
|
+
const UpdateOrderStatusInputModel = K5({
|
|
130
128
|
name: "UpdateOrderStatusInput",
|
|
131
129
|
fields: {
|
|
132
130
|
orderId: {
|
|
133
|
-
type:
|
|
131
|
+
type: E5.String_unsecure(),
|
|
134
132
|
isOptional: false
|
|
135
133
|
},
|
|
136
134
|
status: {
|
|
@@ -138,19 +136,20 @@ const UpdateOrderStatusInputModel = defineSchemaModel({
|
|
|
138
136
|
isOptional: false
|
|
139
137
|
},
|
|
140
138
|
trackingNumber: {
|
|
141
|
-
type:
|
|
139
|
+
type: E5.String_unsecure(),
|
|
142
140
|
isOptional: true
|
|
143
141
|
},
|
|
144
142
|
trackingUrl: {
|
|
145
|
-
type:
|
|
143
|
+
type: E5.String_unsecure(),
|
|
146
144
|
isOptional: true
|
|
147
145
|
},
|
|
148
146
|
note: {
|
|
149
|
-
type:
|
|
147
|
+
type: E5.String_unsecure(),
|
|
150
148
|
isOptional: true
|
|
151
149
|
}
|
|
152
150
|
}
|
|
153
151
|
});
|
|
154
152
|
|
|
155
153
|
//#endregion
|
|
156
|
-
export { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel };
|
|
154
|
+
export { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel };
|
|
155
|
+
//# sourceMappingURL=order.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/order/order.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { OrderStatusEnum } from './order.enum';\n\n/**\n * An order item.\n */\nexport const OrderItemModel = defineSchemaModel({\n name: 'OrderItemModel',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n productName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n unitPrice: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n quantity: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n subtotal: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n },\n});\n\n/**\n * An order.\n */\nexport const OrderModel = defineSchemaModel({\n name: 'OrderModel',\n description: 'An order',\n fields: {\n id: { 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 status: { type: OrderStatusEnum, isOptional: false },\n subtotal: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n shippingTotal: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n taxTotal: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n total: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n items: { type: OrderItemModel, isArray: true, isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for creating an order.\n */\nexport const CreateOrderInputModel = defineSchemaModel({\n name: 'CreateOrderInput',\n fields: {\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n items: {\n type: ScalarTypeEnum.JSON(),\n isOptional: false,\n description: 'Array of {productId, variantId?, quantity}',\n },\n shippingAddress: { type: ScalarTypeEnum.JSON(), isOptional: true },\n billingAddress: { type: ScalarTypeEnum.JSON(), isOptional: true },\n buyerNote: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\n/**\n * Input for updating order status.\n */\nexport const UpdateOrderStatusInputModel = defineSchemaModel({\n name: 'UpdateOrderStatusInput',\n fields: {\n orderId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: OrderStatusEnum, isOptional: false },\n trackingNumber: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n trackingUrl: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n note: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n"],"mappings":";;;;;;;AAMA,MAAa,iBAAiBA,GAAkB;CAC9C,MAAM;CACN,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,WAAW;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACvE,UAAU;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EACpE,UAAU;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACvE;CACF,CAAC;;;;AAKF,MAAa,aAAaD,GAAkB;CAC1C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,QAAQ;GAAE,MAAM;GAAiB,YAAY;GAAO;EACpD,UAAU;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACtE,eAAe;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACtE,OAAO;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACnE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,OAAO;GAAE,MAAM;GAAgB,SAAS;GAAM,YAAY;GAAM;EAChE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,wBAAwBD,GAAkB;CACrD,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,OAAO;GACL,MAAMA,GAAe,MAAM;GAC3B,YAAY;GACZ,aAAa;GACd;EACD,iBAAiB;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAM;EAClE,gBAAgB;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAM;EACjE,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACxE;CACF,CAAC;;;;AAKF,MAAa,8BAA8BD,GAAkB;CAC3D,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,QAAQ;GAAE,MAAM;GAAiB,YAAY;GAAO;EACpD,gBAAgB;GACd,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACnE;CACF,CAAC"}
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema1128 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts20 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/payout/payout.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* List payouts for a store.
|
|
7
7
|
*/
|
|
8
|
-
declare const ListPayoutsContract:
|
|
8
|
+
declare const ListPayoutsContract: _lssm_lib_contracts20.ContractSpec<_lssm_lib_schema1128.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema1128.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
status: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema1128.EnumType<[string, string, string, string, string]>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
limit: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema1128.FieldType<number, number>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
defaultValue: number;
|
|
21
21
|
};
|
|
22
22
|
offset: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema1128.FieldType<number, number>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
defaultValue: number;
|
|
26
26
|
};
|
|
27
|
-
}>,
|
|
27
|
+
}>, _lssm_lib_schema1128.SchemaModel<{
|
|
28
28
|
payouts: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema1128.SchemaModel<{
|
|
30
30
|
id: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema1128.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
payoutNumber: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema1128.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
storeId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema1128.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
status: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema1128.EnumType<[string, string, string, string, string]>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
grossAmount: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema1128.FieldType<number, number>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
platformFees: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema1128.FieldType<number, number>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
netAmount: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema1128.FieldType<number, number>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
currency: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema1128.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
periodStart: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema1128.FieldType<Date, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
periodEnd: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema1128.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
orderCount: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema1128.FieldType<number, number>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
createdAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema1128.FieldType<Date, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
paidAt: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema1128.FieldType<Date, string>;
|
|
80
80
|
isOptional: true;
|
|
81
81
|
};
|
|
82
82
|
}>;
|
|
@@ -84,13 +84,14 @@ declare const ListPayoutsContract: _lssm_lib_contracts18.ContractSpec<_lssm_lib_
|
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
total: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema1128.FieldType<number, number>;
|
|
88
88
|
isOptional: false;
|
|
89
89
|
};
|
|
90
90
|
totalPending: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema1128.FieldType<number, number>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
}>, undefined>;
|
|
95
95
|
//#endregion
|
|
96
|
-
export { ListPayoutsContract };
|
|
96
|
+
export { ListPayoutsContract };
|
|
97
|
+
//# sourceMappingURL=payout.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.contracts.d.ts","names":[],"sources":["../../src/payout/payout.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQa,2CAAmB,kCAAA;EAAnB,OAAA,EAAA;IAaX,IAAA,EAAA,oBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;uCAb8B,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;;;;cAAA,oBAAA,CAAA;;;;;kBAAA,EAAA,KAAA;MAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.contracts.js","names":[],"sources":["../../src/payout/payout.contracts.ts"],"sourcesContent":["import { defineQuery } from '@lssm/lib.contracts/spec';\nimport { ListPayoutsInputModel, ListPayoutsOutputModel } from './payout.schema';\n\nconst OWNERS = ['@example.marketplace'] as const;\n\n/**\n * List payouts for a store.\n */\nexport const ListPayoutsContract = defineQuery({\n meta: {\n name: 'marketplace.payout.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['marketplace', 'payout', 'list'],\n description: 'List payouts for a store.',\n goal: 'View payout history.',\n context: 'Seller dashboard.',\n },\n io: { input: ListPayoutsInputModel, output: ListPayoutsOutputModel },\n policy: { auth: 'user' },\n});\n"],"mappings":";;;;AAGA,MAAM,SAAS,CAAC,uBAAuB;;;;AAKvC,MAAa,sBAAsB,YAAY;CAC7C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAU;GAAO;EACvC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAuB,QAAQ;EAAwB;CACpE,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema1150 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/payout/payout.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Payout status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const PayoutStatusEnum:
|
|
7
|
+
declare const PayoutStatusEnum: _lssm_lib_schema1150.EnumType<[string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { PayoutStatusEnum };
|
|
9
|
+
export { PayoutStatusEnum };
|
|
10
|
+
//# sourceMappingURL=payout.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.enum.d.ts","names":[],"sources":["../../src/payout/payout.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,gBAMX,EAAA,oBAAA,CAN2B,QAAA,CAAA,CAAA,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/payout/payout.enum.ts
|
|
5
4
|
/**
|
|
6
5
|
* Payout status enum.
|
|
7
6
|
*/
|
|
8
|
-
const PayoutStatusEnum =
|
|
7
|
+
const PayoutStatusEnum = N5("PayoutStatus", [
|
|
9
8
|
"PENDING",
|
|
10
9
|
"PROCESSING",
|
|
11
10
|
"PAID",
|
|
@@ -14,4 +13,5 @@ const PayoutStatusEnum = defineEnum("PayoutStatus", [
|
|
|
14
13
|
]);
|
|
15
14
|
|
|
16
15
|
//#endregion
|
|
17
|
-
export { PayoutStatusEnum };
|
|
16
|
+
export { PayoutStatusEnum };
|
|
17
|
+
//# sourceMappingURL=payout.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.enum.js","names":["defineEnum"],"sources":["../../src/payout/payout.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Payout status enum.\n */\nexport const PayoutStatusEnum = defineEnum('PayoutStatus', [\n 'PENDING',\n 'PROCESSING',\n 'PAID',\n 'FAILED',\n 'CANCELLED',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,mBAAmBA,GAAW,gBAAgB;CACzD;CACA;CACA;CACA;CACA;CACD,CAAC"}
|
|
@@ -1,62 +1,63 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema18 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/payout/payout.event.d.ts
|
|
5
|
-
declare const PayoutCreatedEvent:
|
|
5
|
+
declare const PayoutCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema18.SchemaModel<{
|
|
6
6
|
payoutId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema18.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
payoutNumber: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema18.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
storeId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema18.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
netAmount: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema18.FieldType<number, number>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
currency: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema18.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
orderCount: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema18.FieldType<number, number>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
timestamp: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema18.FieldType<Date, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
}>>;
|
|
35
|
-
declare const PayoutPaidEvent:
|
|
35
|
+
declare const PayoutPaidEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema18.SchemaModel<{
|
|
36
36
|
payoutId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema18.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
payoutNumber: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema18.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
storeId: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema18.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
netAmount: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema18.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
paymentReference: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema18.FieldType<string, string>;
|
|
54
54
|
isOptional: true;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema18.FieldType<Date, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
61
61
|
//#endregion
|
|
62
|
-
export { PayoutCreatedEvent, PayoutPaidEvent };
|
|
62
|
+
export { PayoutCreatedEvent, PayoutPaidEvent };
|
|
63
|
+
//# sourceMappingURL=payout.event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.event.d.ts","names":[],"sources":["../../src/payout/payout.event.ts"],"sourcesContent":[],"mappings":";;;;cA+Ba,oBAAkB,oBAAA,CAAA,6BAAA;;UAK7B,kBAAA,CAAA;;EALW,CAAA;EAKX,YAAA,EAAA;;;;;;;;;IAL6B,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAOlB,CAAA;EAKX,QAAA,EAAA;;;;;;;;EAL0B,SAAA,EAAA;IAAA,IAAA,8BAAA,KAAA,EAAA,MAAA,CAAA;;;;cAAf,iBAAe,oBAAA,CAAA,6BAAA;;UAK1B,kBAAA,CAAA"}
|
|
@@ -1,68 +1,66 @@
|
|
|
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/payout/payout.event.ts
|
|
8
|
-
const PayoutCreatedPayload =
|
|
6
|
+
const PayoutCreatedPayload = K5({
|
|
9
7
|
name: "PayoutCreatedEventPayload",
|
|
10
8
|
fields: {
|
|
11
9
|
payoutId: {
|
|
12
|
-
type:
|
|
10
|
+
type: E5.String_unsecure(),
|
|
13
11
|
isOptional: false
|
|
14
12
|
},
|
|
15
13
|
payoutNumber: {
|
|
16
|
-
type:
|
|
14
|
+
type: E5.String_unsecure(),
|
|
17
15
|
isOptional: false
|
|
18
16
|
},
|
|
19
17
|
storeId: {
|
|
20
|
-
type:
|
|
18
|
+
type: E5.String_unsecure(),
|
|
21
19
|
isOptional: false
|
|
22
20
|
},
|
|
23
21
|
netAmount: {
|
|
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
|
orderCount: {
|
|
32
|
-
type:
|
|
30
|
+
type: E5.Int_unsecure(),
|
|
33
31
|
isOptional: false
|
|
34
32
|
},
|
|
35
33
|
timestamp: {
|
|
36
|
-
type:
|
|
34
|
+
type: E5.DateTime(),
|
|
37
35
|
isOptional: false
|
|
38
36
|
}
|
|
39
37
|
}
|
|
40
38
|
});
|
|
41
|
-
const PayoutPaidPayload =
|
|
39
|
+
const PayoutPaidPayload = K5({
|
|
42
40
|
name: "PayoutPaidEventPayload",
|
|
43
41
|
fields: {
|
|
44
42
|
payoutId: {
|
|
45
|
-
type:
|
|
43
|
+
type: E5.String_unsecure(),
|
|
46
44
|
isOptional: false
|
|
47
45
|
},
|
|
48
46
|
payoutNumber: {
|
|
49
|
-
type:
|
|
47
|
+
type: E5.String_unsecure(),
|
|
50
48
|
isOptional: false
|
|
51
49
|
},
|
|
52
50
|
storeId: {
|
|
53
|
-
type:
|
|
51
|
+
type: E5.String_unsecure(),
|
|
54
52
|
isOptional: false
|
|
55
53
|
},
|
|
56
54
|
netAmount: {
|
|
57
|
-
type:
|
|
55
|
+
type: E5.Float_unsecure(),
|
|
58
56
|
isOptional: false
|
|
59
57
|
},
|
|
60
58
|
paymentReference: {
|
|
61
|
-
type:
|
|
59
|
+
type: E5.String_unsecure(),
|
|
62
60
|
isOptional: true
|
|
63
61
|
},
|
|
64
62
|
timestamp: {
|
|
65
|
-
type:
|
|
63
|
+
type: E5.DateTime(),
|
|
66
64
|
isOptional: false
|
|
67
65
|
}
|
|
68
66
|
}
|
|
@@ -81,4 +79,5 @@ const PayoutPaidEvent = defineEvent({
|
|
|
81
79
|
});
|
|
82
80
|
|
|
83
81
|
//#endregion
|
|
84
|
-
export { PayoutCreatedEvent, PayoutPaidEvent };
|
|
82
|
+
export { PayoutCreatedEvent, PayoutPaidEvent };
|
|
83
|
+
//# sourceMappingURL=payout.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.event.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/payout/payout.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\nimport { defineEvent } from '@lssm/lib.contracts';\n\nconst PayoutCreatedPayload = defineSchemaModel({\n name: 'PayoutCreatedEventPayload',\n fields: {\n payoutId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n payoutNumber: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n netAmount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orderCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst PayoutPaidPayload = defineSchemaModel({\n name: 'PayoutPaidEventPayload',\n fields: {\n payoutId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n payoutNumber: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n netAmount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n paymentReference: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const PayoutCreatedEvent = defineEvent({\n name: 'marketplace.payout.created',\n version: 1,\n description: 'A payout has been created.',\n payload: PayoutCreatedPayload,\n});\n\nexport const PayoutPaidEvent = defineEvent({\n name: 'marketplace.payout.paid',\n version: 1,\n description: 'A payout has been sent.',\n payload: PayoutPaidPayload,\n});\n"],"mappings":";;;;;AAGA,MAAM,uBAAuBA,GAAkB;CAC7C,MAAM;CACN,QAAQ;EACN,UAAU;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACvE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,YAAY;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAM,oBAAoBD,GAAkB;CAC1C,MAAM;CACN,QAAQ;EACN,UAAU;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACvE,kBAAkB;GAChB,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,qBAAqB,YAAY;CAC5C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,kBAAkB,YAAY;CACzC,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC"}
|
|
@@ -4,4 +4,5 @@ import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
|
|
|
4
4
|
declare const PayoutListPresentation: PresentationDescriptorV2;
|
|
5
5
|
declare const PayoutDetailPresentation: PresentationDescriptorV2;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { PayoutDetailPresentation, PayoutListPresentation };
|
|
7
|
+
export { PayoutDetailPresentation, PayoutListPresentation };
|
|
8
|
+
//# sourceMappingURL=payout.presentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.presentation.d.ts","names":[],"sources":["../../src/payout/payout.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,wBAAwB;cAqBxB,0BAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.presentation.js","names":["PayoutListPresentation: PresentationDescriptorV2","PayoutDetailPresentation: PresentationDescriptorV2"],"sources":["../../src/payout/payout.presentation.ts"],"sourcesContent":["import type { PresentationDescriptorV2 } from '@lssm/lib.contracts';\nimport { PayoutModel } from './payout.schema';\n\nexport const PayoutListPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.payout.list',\n version: 1,\n description: 'List of payouts for sellers',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'payout', 'list'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PayoutList',\n props: PayoutModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.payouts.enabled'],\n },\n};\n\nexport const PayoutDetailPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'marketplace.payout.detail',\n version: 1,\n description: 'Payout detail with breakdown',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'payout', 'detail'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PayoutDetail',\n props: PayoutModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.payouts.enabled'],\n },\n};\n"],"mappings":";;;AAGA,MAAaA,yBAAmD;CAC9D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAO;EACxC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,8BAA8B,EACvC;CACF;AAED,MAAaC,2BAAqD;CAChE,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAS;EAC1C;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,8BAA8B,EACvC;CACF"}
|