@lssm/example.marketplace 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217072406
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/index.js +1 -1
- package/dist/docs/marketplace.docblock.js +61 -5
- package/dist/entities/index.d.ts +296 -296
- package/dist/entities/index.js +45 -1
- package/dist/entities/order.d.ts +78 -78
- package/dist/entities/order.js +173 -1
- package/dist/entities/payout.d.ts +65 -65
- package/dist/entities/payout.js +162 -1
- package/dist/entities/product.d.ts +70 -70
- package/dist/entities/product.js +161 -1
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/review.js +152 -1
- package/dist/entities/store.d.ts +41 -41
- package/dist/entities/store.js +110 -1
- package/dist/example.js +50 -1
- package/dist/index.js +27 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -1
- package/dist/libs/contracts/dist/client/index.js +5 -1
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -1
- package/dist/libs/contracts/dist/client/react/form-render.js +4 -1
- package/dist/libs/contracts/dist/client/react/index.js +4 -1
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -1
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -76
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -350
- package/dist/libs/contracts/dist/docs/index.js +29 -1
- package/dist/libs/contracts/dist/docs/presentations.js +71 -1
- package/dist/libs/contracts/dist/docs/registry.js +44 -1
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -383
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -68
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -140
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -86
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +21 -2
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -213
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +73 -5
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -262
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +25 -16
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +22 -2
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +40 -36
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -1
- package/dist/libs/contracts/dist/events.js +10 -1
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -1
- package/dist/libs/contracts/dist/index.js +71 -1
- package/dist/libs/contracts/dist/install.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +377 -1
- package/dist/libs/contracts/dist/integrations/index.js +18 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -1
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -1
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -1
- package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -1
- package/dist/libs/contracts/dist/jsonschema.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +306 -1
- package/dist/libs/contracts/dist/knowledge/index.js +7 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -1
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -1
- package/dist/libs/contracts/dist/llm/exporters.js +19 -1
- package/dist/libs/contracts/dist/llm/index.js +2 -1
- package/dist/libs/contracts/dist/llm/prompts.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +196 -1
- package/dist/libs/contracts/dist/openapi.js +1 -1
- package/dist/libs/contracts/dist/ownership.js +21 -1
- package/dist/libs/contracts/dist/presentations.js +1 -1
- package/dist/libs/contracts/dist/presentations.v2.js +11 -1
- package/dist/libs/contracts/dist/prompt.js +1 -1
- package/dist/libs/contracts/dist/promptRegistry.js +1 -1
- package/dist/libs/contracts/dist/regenerator/index.js +1 -1
- package/dist/libs/contracts/dist/regenerator/service.js +6 -1
- package/dist/libs/contracts/dist/registry.js +2 -1
- package/dist/libs/contracts/dist/resources.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -1
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +34 -1
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +6 -1
- package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -1
- package/dist/libs/contracts/dist/server/index.js +8 -1
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -1
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -1
- package/dist/libs/contracts/dist/server/rest-express.js +1 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -1
- package/dist/libs/contracts/dist/spec.js +34 -1
- package/dist/libs/contracts/dist/telemetry/index.js +1 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -1
- package/dist/libs/contracts/dist/tests/index.js +1 -1
- package/dist/libs/contracts/dist/tests/runner.js +2 -1
- package/dist/libs/contracts/dist/workflow/index.js +1 -1
- package/dist/libs/contracts/dist/workflow/runner.js +1 -1
- package/dist/libs/schema/dist/EnumType.js +56 -1
- package/dist/libs/schema/dist/FieldType.js +49 -1
- package/dist/libs/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/schema/dist/SchemaModel.js +39 -1
- package/dist/libs/schema/dist/entity/defineEntity.js +236 -1
- package/dist/libs/schema/dist/entity/index.js +2 -1
- package/dist/libs/schema/dist/entity/types.js +1 -1
- package/dist/libs/schema/dist/index.js +6 -1
- package/dist/marketplace.feature.js +308 -1
- package/dist/order/index.js +6 -1
- package/dist/order/order.contracts.d.ts +90 -90
- package/dist/order/order.contracts.js +74 -1
- package/dist/order/order.enum.d.ts +2 -2
- package/dist/order/order.enum.js +22 -1
- package/dist/order/order.event.d.ts +39 -39
- package/dist/order/order.event.js +193 -1
- package/dist/order/order.presentation.js +72 -1
- package/dist/order/order.schema.d.ts +39 -39
- package/dist/order/order.schema.js +156 -1
- package/dist/payout/index.js +6 -1
- package/dist/payout/payout.contracts.d.ts +24 -24
- package/dist/payout/payout.contracts.js +32 -1
- package/dist/payout/payout.enum.d.ts +2 -2
- package/dist/payout/payout.enum.js +17 -1
- package/dist/payout/payout.event.d.ts +17 -17
- package/dist/payout/payout.event.js +84 -1
- package/dist/payout/payout.presentation.js +50 -1
- package/dist/payout/payout.schema.d.ts +37 -37
- package/dist/payout/payout.schema.js +117 -1
- package/dist/product/index.js +6 -1
- package/dist/product/product.contracts.d.ts +68 -68
- package/dist/product/product.contracts.js +65 -1
- package/dist/product/product.enum.d.ts +2 -2
- package/dist/product/product.enum.js +18 -1
- package/dist/product/product.event.d.ts +20 -20
- package/dist/product/product.event.js +103 -1
- package/dist/product/product.presentation.js +72 -1
- package/dist/product/product.schema.d.ts +52 -52
- package/dist/product/product.schema.js +177 -1
- package/dist/review/index.js +6 -1
- package/dist/review/review.contracts.d.ts +59 -59
- package/dist/review/review.contracts.js +65 -1
- package/dist/review/review.enum.d.ts +2 -2
- package/dist/review/review.enum.js +16 -1
- package/dist/review/review.event.d.ts +15 -15
- package/dist/review/review.event.js +76 -1
- package/dist/review/review.presentation.js +50 -1
- package/dist/review/review.schema.d.ts +45 -45
- package/dist/review/review.schema.js +157 -1
- package/dist/store/index.js +6 -1
- package/dist/store/store.contracts.d.ts +33 -33
- package/dist/store/store.contracts.js +41 -1
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.enum.js +16 -1
- package/dist/store/store.event.d.ts +14 -14
- package/dist/store/store.event.js +72 -1
- package/dist/store/store.presentation.js +50 -1
- package/dist/store/store.schema.d.ts +20 -20
- package/dist/store/store.schema.js +94 -1
- package/package.json +12 -12
|
@@ -1 +1,156 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
|
|
2
|
+
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
+
import "../libs/schema/dist/index.js";
|
|
4
|
+
import { OrderStatusEnum } from "./order.enum.js";
|
|
5
|
+
|
|
6
|
+
//#region src/order/order.schema.ts
|
|
7
|
+
/**
|
|
8
|
+
* An order item.
|
|
9
|
+
*/
|
|
10
|
+
const OrderItemModel = defineSchemaModel({
|
|
11
|
+
name: "OrderItemModel",
|
|
12
|
+
fields: {
|
|
13
|
+
id: {
|
|
14
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
15
|
+
isOptional: false
|
|
16
|
+
},
|
|
17
|
+
productId: {
|
|
18
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
19
|
+
isOptional: false
|
|
20
|
+
},
|
|
21
|
+
productName: {
|
|
22
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
23
|
+
isOptional: false
|
|
24
|
+
},
|
|
25
|
+
unitPrice: {
|
|
26
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
27
|
+
isOptional: false
|
|
28
|
+
},
|
|
29
|
+
quantity: {
|
|
30
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
31
|
+
isOptional: false
|
|
32
|
+
},
|
|
33
|
+
subtotal: {
|
|
34
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
35
|
+
isOptional: false
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* An order.
|
|
41
|
+
*/
|
|
42
|
+
const OrderModel = defineSchemaModel({
|
|
43
|
+
name: "OrderModel",
|
|
44
|
+
description: "An order",
|
|
45
|
+
fields: {
|
|
46
|
+
id: {
|
|
47
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
48
|
+
isOptional: false
|
|
49
|
+
},
|
|
50
|
+
orderNumber: {
|
|
51
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
52
|
+
isOptional: false
|
|
53
|
+
},
|
|
54
|
+
buyerId: {
|
|
55
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
56
|
+
isOptional: false
|
|
57
|
+
},
|
|
58
|
+
storeId: {
|
|
59
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
60
|
+
isOptional: false
|
|
61
|
+
},
|
|
62
|
+
status: {
|
|
63
|
+
type: OrderStatusEnum,
|
|
64
|
+
isOptional: false
|
|
65
|
+
},
|
|
66
|
+
subtotal: {
|
|
67
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
68
|
+
isOptional: false
|
|
69
|
+
},
|
|
70
|
+
shippingTotal: {
|
|
71
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
72
|
+
isOptional: false
|
|
73
|
+
},
|
|
74
|
+
taxTotal: {
|
|
75
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
76
|
+
isOptional: false
|
|
77
|
+
},
|
|
78
|
+
total: {
|
|
79
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
80
|
+
isOptional: false
|
|
81
|
+
},
|
|
82
|
+
currency: {
|
|
83
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
84
|
+
isOptional: false
|
|
85
|
+
},
|
|
86
|
+
items: {
|
|
87
|
+
type: OrderItemModel,
|
|
88
|
+
isArray: true,
|
|
89
|
+
isOptional: true
|
|
90
|
+
},
|
|
91
|
+
createdAt: {
|
|
92
|
+
type: ScalarTypeEnum.DateTime(),
|
|
93
|
+
isOptional: false
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
/**
|
|
98
|
+
* Input for creating an order.
|
|
99
|
+
*/
|
|
100
|
+
const CreateOrderInputModel = defineSchemaModel({
|
|
101
|
+
name: "CreateOrderInput",
|
|
102
|
+
fields: {
|
|
103
|
+
storeId: {
|
|
104
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
105
|
+
isOptional: false
|
|
106
|
+
},
|
|
107
|
+
items: {
|
|
108
|
+
type: ScalarTypeEnum.JSON(),
|
|
109
|
+
isOptional: false,
|
|
110
|
+
description: "Array of {productId, variantId?, quantity}"
|
|
111
|
+
},
|
|
112
|
+
shippingAddress: {
|
|
113
|
+
type: ScalarTypeEnum.JSON(),
|
|
114
|
+
isOptional: true
|
|
115
|
+
},
|
|
116
|
+
billingAddress: {
|
|
117
|
+
type: ScalarTypeEnum.JSON(),
|
|
118
|
+
isOptional: true
|
|
119
|
+
},
|
|
120
|
+
buyerNote: {
|
|
121
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
122
|
+
isOptional: true
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
/**
|
|
127
|
+
* Input for updating order status.
|
|
128
|
+
*/
|
|
129
|
+
const UpdateOrderStatusInputModel = defineSchemaModel({
|
|
130
|
+
name: "UpdateOrderStatusInput",
|
|
131
|
+
fields: {
|
|
132
|
+
orderId: {
|
|
133
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
134
|
+
isOptional: false
|
|
135
|
+
},
|
|
136
|
+
status: {
|
|
137
|
+
type: OrderStatusEnum,
|
|
138
|
+
isOptional: false
|
|
139
|
+
},
|
|
140
|
+
trackingNumber: {
|
|
141
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
142
|
+
isOptional: true
|
|
143
|
+
},
|
|
144
|
+
trackingUrl: {
|
|
145
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
146
|
+
isOptional: true
|
|
147
|
+
},
|
|
148
|
+
note: {
|
|
149
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
150
|
+
isOptional: true
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
//#endregion
|
|
156
|
+
export { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel };
|
package/dist/payout/index.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PayoutStatusEnum } from "./payout.enum.js";
|
|
2
|
+
import { ListPayoutsInputModel, ListPayoutsOutputModel, PayoutModel } from "./payout.schema.js";
|
|
3
|
+
import { ListPayoutsContract } from "./payout.contracts.js";
|
|
4
|
+
import { PayoutCreatedEvent, PayoutPaidEvent } from "./payout.event.js";
|
|
5
|
+
|
|
6
|
+
export { ListPayoutsContract, ListPayoutsInputModel, ListPayoutsOutputModel, PayoutCreatedEvent, PayoutModel, PayoutPaidEvent, PayoutStatusEnum };
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema758 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts4 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_contracts4.ContractSpec<_lssm_lib_schema758.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema758.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
status: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema758.EnumType<[string, string, string, string, string]>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
limit: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema758.FieldType<number, number>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
defaultValue: number;
|
|
21
21
|
};
|
|
22
22
|
offset: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema758.FieldType<number, number>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
defaultValue: number;
|
|
26
26
|
};
|
|
27
|
-
}>,
|
|
27
|
+
}>, _lssm_lib_schema758.SchemaModel<{
|
|
28
28
|
payouts: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema758.SchemaModel<{
|
|
30
30
|
id: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema758.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
payoutNumber: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema758.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
storeId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema758.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
status: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema758.EnumType<[string, string, string, string, string]>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
grossAmount: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema758.FieldType<number, number>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
platformFees: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema758.FieldType<number, number>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
netAmount: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema758.FieldType<number, number>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
currency: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema758.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
periodStart: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema758.FieldType<Date, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
periodEnd: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema758.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
orderCount: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema758.FieldType<number, number>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
createdAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema758.FieldType<Date, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
paidAt: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema758.FieldType<Date, string>;
|
|
80
80
|
isOptional: true;
|
|
81
81
|
};
|
|
82
82
|
}>;
|
|
@@ -84,11 +84,11 @@ declare const ListPayoutsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_
|
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
total: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema758.FieldType<number, number>;
|
|
88
88
|
isOptional: false;
|
|
89
89
|
};
|
|
90
90
|
totalPending: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema758.FieldType<number, number>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
}>, undefined>;
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { defineQuery } from "../libs/contracts/dist/spec.js";
|
|
2
|
+
import { ListPayoutsInputModel, ListPayoutsOutputModel } from "./payout.schema.js";
|
|
3
|
+
|
|
4
|
+
//#region src/payout/payout.contracts.ts
|
|
5
|
+
const OWNERS = ["@example.marketplace"];
|
|
6
|
+
/**
|
|
7
|
+
* List payouts for a store.
|
|
8
|
+
*/
|
|
9
|
+
const ListPayoutsContract = defineQuery({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "marketplace.payout.list",
|
|
12
|
+
version: 1,
|
|
13
|
+
stability: "stable",
|
|
14
|
+
owners: [...OWNERS],
|
|
15
|
+
tags: [
|
|
16
|
+
"marketplace",
|
|
17
|
+
"payout",
|
|
18
|
+
"list"
|
|
19
|
+
],
|
|
20
|
+
description: "List payouts for a store.",
|
|
21
|
+
goal: "View payout history.",
|
|
22
|
+
context: "Seller dashboard."
|
|
23
|
+
},
|
|
24
|
+
io: {
|
|
25
|
+
input: ListPayoutsInputModel,
|
|
26
|
+
output: ListPayoutsOutputModel
|
|
27
|
+
},
|
|
28
|
+
policy: { auth: "user" }
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { ListPayoutsContract };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema956 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_schema956.EnumType<[string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PayoutStatusEnum };
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { defineEnum } from "../libs/schema/dist/EnumType.js";
|
|
2
|
+
import "../libs/schema/dist/index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/payout/payout.enum.ts
|
|
5
|
+
/**
|
|
6
|
+
* Payout status enum.
|
|
7
|
+
*/
|
|
8
|
+
const PayoutStatusEnum = defineEnum("PayoutStatus", [
|
|
9
|
+
"PENDING",
|
|
10
|
+
"PROCESSING",
|
|
11
|
+
"PAID",
|
|
12
|
+
"FAILED",
|
|
13
|
+
"CANCELLED"
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { PayoutStatusEnum };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema1015 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts14 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_contracts14.EventSpec<_lssm_lib_schema1015.SchemaModel<{
|
|
6
6
|
payoutId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema1015.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
payoutNumber: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema1015.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
storeId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema1015.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
netAmount: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema1015.FieldType<number, number>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
currency: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema1015.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
orderCount: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema1015.FieldType<number, number>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
timestamp: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema1015.FieldType<Date, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
}>>;
|
|
35
|
-
declare const PayoutPaidEvent:
|
|
35
|
+
declare const PayoutPaidEvent: _lssm_lib_contracts14.EventSpec<_lssm_lib_schema1015.SchemaModel<{
|
|
36
36
|
payoutId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema1015.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
payoutNumber: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema1015.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
storeId: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema1015.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
netAmount: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema1015.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
paymentReference: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema1015.FieldType<string, string>;
|
|
54
54
|
isOptional: true;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema1015.FieldType<Date, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
@@ -1 +1,84 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
|
|
2
|
+
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
+
import "../libs/schema/dist/index.js";
|
|
4
|
+
import { defineEvent } from "../libs/contracts/dist/events.js";
|
|
5
|
+
import "../libs/contracts/dist/index.js";
|
|
6
|
+
|
|
7
|
+
//#region src/payout/payout.event.ts
|
|
8
|
+
const PayoutCreatedPayload = defineSchemaModel({
|
|
9
|
+
name: "PayoutCreatedEventPayload",
|
|
10
|
+
fields: {
|
|
11
|
+
payoutId: {
|
|
12
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
13
|
+
isOptional: false
|
|
14
|
+
},
|
|
15
|
+
payoutNumber: {
|
|
16
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
17
|
+
isOptional: false
|
|
18
|
+
},
|
|
19
|
+
storeId: {
|
|
20
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
21
|
+
isOptional: false
|
|
22
|
+
},
|
|
23
|
+
netAmount: {
|
|
24
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
25
|
+
isOptional: false
|
|
26
|
+
},
|
|
27
|
+
currency: {
|
|
28
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
29
|
+
isOptional: false
|
|
30
|
+
},
|
|
31
|
+
orderCount: {
|
|
32
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
33
|
+
isOptional: false
|
|
34
|
+
},
|
|
35
|
+
timestamp: {
|
|
36
|
+
type: ScalarTypeEnum.DateTime(),
|
|
37
|
+
isOptional: false
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const PayoutPaidPayload = defineSchemaModel({
|
|
42
|
+
name: "PayoutPaidEventPayload",
|
|
43
|
+
fields: {
|
|
44
|
+
payoutId: {
|
|
45
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
46
|
+
isOptional: false
|
|
47
|
+
},
|
|
48
|
+
payoutNumber: {
|
|
49
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
50
|
+
isOptional: false
|
|
51
|
+
},
|
|
52
|
+
storeId: {
|
|
53
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
54
|
+
isOptional: false
|
|
55
|
+
},
|
|
56
|
+
netAmount: {
|
|
57
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
58
|
+
isOptional: false
|
|
59
|
+
},
|
|
60
|
+
paymentReference: {
|
|
61
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
62
|
+
isOptional: true
|
|
63
|
+
},
|
|
64
|
+
timestamp: {
|
|
65
|
+
type: ScalarTypeEnum.DateTime(),
|
|
66
|
+
isOptional: false
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
const PayoutCreatedEvent = defineEvent({
|
|
71
|
+
name: "marketplace.payout.created",
|
|
72
|
+
version: 1,
|
|
73
|
+
description: "A payout has been created.",
|
|
74
|
+
payload: PayoutCreatedPayload
|
|
75
|
+
});
|
|
76
|
+
const PayoutPaidEvent = defineEvent({
|
|
77
|
+
name: "marketplace.payout.paid",
|
|
78
|
+
version: 1,
|
|
79
|
+
description: "A payout has been sent.",
|
|
80
|
+
payload: PayoutPaidPayload
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
export { PayoutCreatedEvent, PayoutPaidEvent };
|
|
@@ -1 +1,50 @@
|
|
|
1
|
-
import{PayoutModel
|
|
1
|
+
import { PayoutModel } from "./payout.schema.js";
|
|
2
|
+
|
|
3
|
+
//#region src/payout/payout.presentation.ts
|
|
4
|
+
const PayoutListPresentation = {
|
|
5
|
+
meta: {
|
|
6
|
+
name: "marketplace.payout.list",
|
|
7
|
+
version: 1,
|
|
8
|
+
description: "List of payouts for sellers",
|
|
9
|
+
domain: "marketplace",
|
|
10
|
+
owners: ["@marketplace-team"],
|
|
11
|
+
tags: [
|
|
12
|
+
"marketplace",
|
|
13
|
+
"payout",
|
|
14
|
+
"list"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
source: {
|
|
18
|
+
type: "component",
|
|
19
|
+
framework: "react",
|
|
20
|
+
componentKey: "PayoutList",
|
|
21
|
+
props: PayoutModel
|
|
22
|
+
},
|
|
23
|
+
targets: ["react", "markdown"],
|
|
24
|
+
policy: { flags: ["marketplace.payouts.enabled"] }
|
|
25
|
+
};
|
|
26
|
+
const PayoutDetailPresentation = {
|
|
27
|
+
meta: {
|
|
28
|
+
name: "marketplace.payout.detail",
|
|
29
|
+
version: 1,
|
|
30
|
+
description: "Payout detail with breakdown",
|
|
31
|
+
domain: "marketplace",
|
|
32
|
+
owners: ["@marketplace-team"],
|
|
33
|
+
tags: [
|
|
34
|
+
"marketplace",
|
|
35
|
+
"payout",
|
|
36
|
+
"detail"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
source: {
|
|
40
|
+
type: "component",
|
|
41
|
+
framework: "react",
|
|
42
|
+
componentKey: "PayoutDetail",
|
|
43
|
+
props: PayoutModel
|
|
44
|
+
},
|
|
45
|
+
targets: ["react", "markdown"],
|
|
46
|
+
policy: { flags: ["marketplace.payouts.enabled"] }
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { PayoutDetailPresentation, PayoutListPresentation };
|