@lssm/example.marketplace 0.0.0-canary-20251217060834 → 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.d.ts +0 -5
- package/dist/index.js +27 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -0
- package/dist/libs/contracts/dist/client/index.js +5 -0
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +4 -0
- package/dist/libs/contracts/dist/client/react/index.js +4 -0
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -0
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/index.js +29 -0
- package/dist/libs/contracts/dist/docs/presentations.js +71 -0
- package/dist/libs/contracts/dist/docs/registry.js +44 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +80 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +357 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +79 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +84 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +45 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +40 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +69 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +62 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +155 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +101 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -0
- package/dist/libs/contracts/dist/events.js +10 -0
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
- package/dist/libs/contracts/dist/index.js +71 -0
- package/dist/libs/contracts/dist/install.js +2 -0
- package/dist/libs/contracts/dist/integrations/contracts.js +377 -0
- package/dist/libs/contracts/dist/integrations/index.js +18 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -0
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -0
- package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -0
- package/dist/libs/contracts/dist/jsonschema.js +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +306 -0
- package/dist/libs/contracts/dist/knowledge/index.js +7 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -0
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -0
- package/dist/libs/contracts/dist/llm/exporters.js +19 -0
- package/dist/libs/contracts/dist/llm/index.js +2 -0
- package/dist/libs/contracts/dist/llm/prompts.js +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +196 -0
- package/dist/libs/contracts/dist/openapi.js +1 -0
- package/dist/libs/contracts/dist/ownership.js +21 -0
- package/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +11 -0
- package/dist/libs/contracts/dist/prompt.js +1 -0
- package/dist/libs/contracts/dist/promptRegistry.js +1 -0
- package/dist/libs/contracts/dist/regenerator/index.js +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +6 -0
- package/dist/libs/contracts/dist/registry.js +2 -0
- package/dist/libs/contracts/dist/resources.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -0
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -0
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -0
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +34 -0
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -0
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +6 -0
- package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -0
- package/dist/libs/contracts/dist/server/index.js +8 -0
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -0
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
- package/dist/libs/contracts/dist/server/rest-express.js +1 -0
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
- package/dist/libs/contracts/dist/spec.js +34 -0
- package/dist/libs/contracts/dist/telemetry/index.js +1 -0
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
- package/dist/libs/contracts/dist/tests/index.js +1 -0
- package/dist/libs/contracts/dist/tests/runner.js +2 -0
- package/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/contracts/dist/workflow/runner.js +1 -0
- package/dist/libs/schema/dist/EnumType.js +56 -0
- package/dist/libs/schema/dist/FieldType.js +49 -0
- package/dist/libs/schema/dist/ScalarTypeEnum.js +236 -0
- package/dist/libs/schema/dist/SchemaModel.js +39 -0
- package/dist/libs/schema/dist/entity/defineEntity.js +236 -0
- package/dist/libs/schema/dist/entity/index.js +2 -0
- package/dist/libs/schema/dist/entity/types.js +1 -0
- package/dist/libs/schema/dist/index.js +6 -0
- 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.js +94 -1
- package/package.json +12 -12
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema1114 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/payout/payout.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A payout to seller.
|
|
6
6
|
*/
|
|
7
|
-
declare const PayoutModel:
|
|
7
|
+
declare const PayoutModel: _lssm_lib_schema1114.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema1114.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
payoutNumber: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema1114.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
storeId: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema1114.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
status: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema1114.EnumType<[string, string, string, string, string]>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
grossAmount: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
platformFees: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
netAmount: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
currency: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema1114.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
periodStart: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema1114.FieldType<Date, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
periodEnd: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema1114.FieldType<Date, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
orderCount: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
createdAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema1114.FieldType<Date, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
paidAt: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema1114.FieldType<Date, string>;
|
|
58
58
|
isOptional: true;
|
|
59
59
|
};
|
|
60
60
|
}>;
|
|
61
61
|
/**
|
|
62
62
|
* Input for listing payouts.
|
|
63
63
|
*/
|
|
64
|
-
declare const ListPayoutsInputModel:
|
|
64
|
+
declare const ListPayoutsInputModel: _lssm_lib_schema1114.SchemaModel<{
|
|
65
65
|
storeId: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema1114.FieldType<string, string>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
status: {
|
|
70
|
-
type:
|
|
70
|
+
type: _lssm_lib_schema1114.EnumType<[string, string, string, string, string]>;
|
|
71
71
|
isOptional: true;
|
|
72
72
|
};
|
|
73
73
|
limit: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
75
75
|
isOptional: true;
|
|
76
76
|
defaultValue: number;
|
|
77
77
|
};
|
|
78
78
|
offset: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
80
80
|
isOptional: true;
|
|
81
81
|
defaultValue: number;
|
|
82
82
|
};
|
|
@@ -84,59 +84,59 @@ declare const ListPayoutsInputModel: _lssm_lib_schema1013.SchemaModel<{
|
|
|
84
84
|
/**
|
|
85
85
|
* Output for listing payouts.
|
|
86
86
|
*/
|
|
87
|
-
declare const ListPayoutsOutputModel:
|
|
87
|
+
declare const ListPayoutsOutputModel: _lssm_lib_schema1114.SchemaModel<{
|
|
88
88
|
payouts: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema1114.SchemaModel<{
|
|
90
90
|
id: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema1114.FieldType<string, string>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
payoutNumber: {
|
|
95
|
-
type:
|
|
95
|
+
type: _lssm_lib_schema1114.FieldType<string, string>;
|
|
96
96
|
isOptional: false;
|
|
97
97
|
};
|
|
98
98
|
storeId: {
|
|
99
|
-
type:
|
|
99
|
+
type: _lssm_lib_schema1114.FieldType<string, string>;
|
|
100
100
|
isOptional: false;
|
|
101
101
|
};
|
|
102
102
|
status: {
|
|
103
|
-
type:
|
|
103
|
+
type: _lssm_lib_schema1114.EnumType<[string, string, string, string, string]>;
|
|
104
104
|
isOptional: false;
|
|
105
105
|
};
|
|
106
106
|
grossAmount: {
|
|
107
|
-
type:
|
|
107
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
108
108
|
isOptional: false;
|
|
109
109
|
};
|
|
110
110
|
platformFees: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
netAmount: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
currency: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema1114.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
periodStart: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema1114.FieldType<Date, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
periodEnd: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema1114.FieldType<Date, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
orderCount: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
createdAt: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema1114.FieldType<Date, string>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
paidAt: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema1114.FieldType<Date, string>;
|
|
140
140
|
isOptional: true;
|
|
141
141
|
};
|
|
142
142
|
}>;
|
|
@@ -144,11 +144,11 @@ declare const ListPayoutsOutputModel: _lssm_lib_schema1013.SchemaModel<{
|
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
total: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
totalPending: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema1114.FieldType<number, number>;
|
|
152
152
|
isOptional: false;
|
|
153
153
|
};
|
|
154
154
|
}>;
|
|
@@ -1 +1,117 @@
|
|
|
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 { PayoutStatusEnum } from "./payout.enum.js";
|
|
5
|
+
|
|
6
|
+
//#region src/payout/payout.schema.ts
|
|
7
|
+
/**
|
|
8
|
+
* A payout to seller.
|
|
9
|
+
*/
|
|
10
|
+
const PayoutModel = defineSchemaModel({
|
|
11
|
+
name: "PayoutModel",
|
|
12
|
+
description: "A payout to seller",
|
|
13
|
+
fields: {
|
|
14
|
+
id: {
|
|
15
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
16
|
+
isOptional: false
|
|
17
|
+
},
|
|
18
|
+
payoutNumber: {
|
|
19
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
20
|
+
isOptional: false
|
|
21
|
+
},
|
|
22
|
+
storeId: {
|
|
23
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
24
|
+
isOptional: false
|
|
25
|
+
},
|
|
26
|
+
status: {
|
|
27
|
+
type: PayoutStatusEnum,
|
|
28
|
+
isOptional: false
|
|
29
|
+
},
|
|
30
|
+
grossAmount: {
|
|
31
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
32
|
+
isOptional: false
|
|
33
|
+
},
|
|
34
|
+
platformFees: {
|
|
35
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
36
|
+
isOptional: false
|
|
37
|
+
},
|
|
38
|
+
netAmount: {
|
|
39
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
40
|
+
isOptional: false
|
|
41
|
+
},
|
|
42
|
+
currency: {
|
|
43
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
44
|
+
isOptional: false
|
|
45
|
+
},
|
|
46
|
+
periodStart: {
|
|
47
|
+
type: ScalarTypeEnum.DateTime(),
|
|
48
|
+
isOptional: false
|
|
49
|
+
},
|
|
50
|
+
periodEnd: {
|
|
51
|
+
type: ScalarTypeEnum.DateTime(),
|
|
52
|
+
isOptional: false
|
|
53
|
+
},
|
|
54
|
+
orderCount: {
|
|
55
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
56
|
+
isOptional: false
|
|
57
|
+
},
|
|
58
|
+
createdAt: {
|
|
59
|
+
type: ScalarTypeEnum.DateTime(),
|
|
60
|
+
isOptional: false
|
|
61
|
+
},
|
|
62
|
+
paidAt: {
|
|
63
|
+
type: ScalarTypeEnum.DateTime(),
|
|
64
|
+
isOptional: true
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* Input for listing payouts.
|
|
70
|
+
*/
|
|
71
|
+
const ListPayoutsInputModel = defineSchemaModel({
|
|
72
|
+
name: "ListPayoutsInput",
|
|
73
|
+
fields: {
|
|
74
|
+
storeId: {
|
|
75
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
76
|
+
isOptional: false
|
|
77
|
+
},
|
|
78
|
+
status: {
|
|
79
|
+
type: PayoutStatusEnum,
|
|
80
|
+
isOptional: true
|
|
81
|
+
},
|
|
82
|
+
limit: {
|
|
83
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
84
|
+
isOptional: true,
|
|
85
|
+
defaultValue: 20
|
|
86
|
+
},
|
|
87
|
+
offset: {
|
|
88
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
89
|
+
isOptional: true,
|
|
90
|
+
defaultValue: 0
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* Output for listing payouts.
|
|
96
|
+
*/
|
|
97
|
+
const ListPayoutsOutputModel = defineSchemaModel({
|
|
98
|
+
name: "ListPayoutsOutput",
|
|
99
|
+
fields: {
|
|
100
|
+
payouts: {
|
|
101
|
+
type: PayoutModel,
|
|
102
|
+
isArray: true,
|
|
103
|
+
isOptional: false
|
|
104
|
+
},
|
|
105
|
+
total: {
|
|
106
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
107
|
+
isOptional: false
|
|
108
|
+
},
|
|
109
|
+
totalPending: {
|
|
110
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
111
|
+
isOptional: false
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
//#endregion
|
|
117
|
+
export { ListPayoutsInputModel, ListPayoutsOutputModel, PayoutModel };
|
package/dist/product/index.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ProductStatusEnum } from "./product.enum.js";
|
|
2
|
+
import { CreateProductInputModel, ListProductsInputModel, ListProductsOutputModel, ProductModel } from "./product.schema.js";
|
|
3
|
+
import { CreateProductContract, ListProductsContract } from "./product.contracts.js";
|
|
4
|
+
import { InventoryUpdatedEvent, ProductCreatedEvent, ProductPublishedEvent } from "./product.event.js";
|
|
5
|
+
|
|
6
|
+
export { CreateProductContract, CreateProductInputModel, InventoryUpdatedEvent, ListProductsContract, ListProductsInputModel, ListProductsOutputModel, ProductCreatedEvent, ProductModel, ProductPublishedEvent, ProductStatusEnum };
|
|
@@ -1,163 +1,163 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema1048 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts19 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/product/product.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a new product listing.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateProductContract:
|
|
8
|
+
declare const CreateProductContract: _lssm_lib_contracts19.ContractSpec<_lssm_lib_schema1048.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
name: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
slug: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
description: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
23
23
|
isOptional: true;
|
|
24
24
|
};
|
|
25
25
|
price: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
currency: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
33
|
quantity: {
|
|
34
|
-
type:
|
|
34
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
35
35
|
isOptional: true;
|
|
36
36
|
};
|
|
37
37
|
categoryId: {
|
|
38
|
-
type:
|
|
38
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
39
39
|
isOptional: true;
|
|
40
40
|
};
|
|
41
41
|
sku: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
43
43
|
isOptional: true;
|
|
44
44
|
};
|
|
45
|
-
}>,
|
|
45
|
+
}>, _lssm_lib_schema1048.SchemaModel<{
|
|
46
46
|
id: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
storeId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
name: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
slug: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
description: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
status: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema1048.EnumType<[string, string, string, string, string, string]>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
price: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
currency: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
quantity: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
categoryId: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
84
84
|
isOptional: true;
|
|
85
85
|
};
|
|
86
86
|
primaryImageId: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
88
88
|
isOptional: true;
|
|
89
89
|
};
|
|
90
90
|
averageRating: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
totalSold: {
|
|
95
|
-
type:
|
|
95
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
96
96
|
isOptional: false;
|
|
97
97
|
};
|
|
98
98
|
createdAt: {
|
|
99
|
-
type:
|
|
99
|
+
type: _lssm_lib_schema1048.FieldType<Date, string>;
|
|
100
100
|
isOptional: false;
|
|
101
101
|
};
|
|
102
102
|
}>, {
|
|
103
103
|
name: string;
|
|
104
104
|
version: number;
|
|
105
105
|
when: string;
|
|
106
|
-
payload:
|
|
106
|
+
payload: _lssm_lib_schema1048.SchemaModel<{
|
|
107
107
|
id: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
storeId: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
name: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
slug: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
121
121
|
isOptional: false;
|
|
122
122
|
};
|
|
123
123
|
description: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
125
125
|
isOptional: true;
|
|
126
126
|
};
|
|
127
127
|
status: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema1048.EnumType<[string, string, string, string, string, string]>;
|
|
129
129
|
isOptional: false;
|
|
130
130
|
};
|
|
131
131
|
price: {
|
|
132
|
-
type:
|
|
132
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
133
133
|
isOptional: false;
|
|
134
134
|
};
|
|
135
135
|
currency: {
|
|
136
|
-
type:
|
|
136
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
137
137
|
isOptional: false;
|
|
138
138
|
};
|
|
139
139
|
quantity: {
|
|
140
|
-
type:
|
|
140
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
141
141
|
isOptional: false;
|
|
142
142
|
};
|
|
143
143
|
categoryId: {
|
|
144
|
-
type:
|
|
144
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
145
145
|
isOptional: true;
|
|
146
146
|
};
|
|
147
147
|
primaryImageId: {
|
|
148
|
-
type:
|
|
148
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
149
149
|
isOptional: true;
|
|
150
150
|
};
|
|
151
151
|
averageRating: {
|
|
152
|
-
type:
|
|
152
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
totalSold: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
157
157
|
isOptional: false;
|
|
158
158
|
};
|
|
159
159
|
createdAt: {
|
|
160
|
-
type:
|
|
160
|
+
type: _lssm_lib_schema1048.FieldType<Date, string>;
|
|
161
161
|
isOptional: false;
|
|
162
162
|
};
|
|
163
163
|
}>;
|
|
@@ -165,98 +165,98 @@ declare const CreateProductContract: _lssm_lib_contracts4.ContractSpec<_lssm_lib
|
|
|
165
165
|
/**
|
|
166
166
|
* List products with filters.
|
|
167
167
|
*/
|
|
168
|
-
declare const ListProductsContract:
|
|
168
|
+
declare const ListProductsContract: _lssm_lib_contracts19.ContractSpec<_lssm_lib_schema1048.SchemaModel<{
|
|
169
169
|
storeId: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
171
171
|
isOptional: true;
|
|
172
172
|
};
|
|
173
173
|
categoryId: {
|
|
174
|
-
type:
|
|
174
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
status: {
|
|
178
|
-
type:
|
|
178
|
+
type: _lssm_lib_schema1048.EnumType<[string, string, string, string, string, string]>;
|
|
179
179
|
isOptional: true;
|
|
180
180
|
};
|
|
181
181
|
search: {
|
|
182
|
-
type:
|
|
182
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
183
183
|
isOptional: true;
|
|
184
184
|
};
|
|
185
185
|
minPrice: {
|
|
186
|
-
type:
|
|
186
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
187
187
|
isOptional: true;
|
|
188
188
|
};
|
|
189
189
|
maxPrice: {
|
|
190
|
-
type:
|
|
190
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
191
191
|
isOptional: true;
|
|
192
192
|
};
|
|
193
193
|
limit: {
|
|
194
|
-
type:
|
|
194
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
195
195
|
isOptional: true;
|
|
196
196
|
defaultValue: number;
|
|
197
197
|
};
|
|
198
198
|
offset: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
defaultValue: number;
|
|
202
202
|
};
|
|
203
|
-
}>,
|
|
203
|
+
}>, _lssm_lib_schema1048.SchemaModel<{
|
|
204
204
|
products: {
|
|
205
|
-
type:
|
|
205
|
+
type: _lssm_lib_schema1048.SchemaModel<{
|
|
206
206
|
id: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
208
208
|
isOptional: false;
|
|
209
209
|
};
|
|
210
210
|
storeId: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
212
212
|
isOptional: false;
|
|
213
213
|
};
|
|
214
214
|
name: {
|
|
215
|
-
type:
|
|
215
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
216
216
|
isOptional: false;
|
|
217
217
|
};
|
|
218
218
|
slug: {
|
|
219
|
-
type:
|
|
219
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
description: {
|
|
223
|
-
type:
|
|
223
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
224
224
|
isOptional: true;
|
|
225
225
|
};
|
|
226
226
|
status: {
|
|
227
|
-
type:
|
|
227
|
+
type: _lssm_lib_schema1048.EnumType<[string, string, string, string, string, string]>;
|
|
228
228
|
isOptional: false;
|
|
229
229
|
};
|
|
230
230
|
price: {
|
|
231
|
-
type:
|
|
231
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
232
232
|
isOptional: false;
|
|
233
233
|
};
|
|
234
234
|
currency: {
|
|
235
|
-
type:
|
|
235
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
236
236
|
isOptional: false;
|
|
237
237
|
};
|
|
238
238
|
quantity: {
|
|
239
|
-
type:
|
|
239
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
240
240
|
isOptional: false;
|
|
241
241
|
};
|
|
242
242
|
categoryId: {
|
|
243
|
-
type:
|
|
243
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
244
244
|
isOptional: true;
|
|
245
245
|
};
|
|
246
246
|
primaryImageId: {
|
|
247
|
-
type:
|
|
247
|
+
type: _lssm_lib_schema1048.FieldType<string, string>;
|
|
248
248
|
isOptional: true;
|
|
249
249
|
};
|
|
250
250
|
averageRating: {
|
|
251
|
-
type:
|
|
251
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
252
252
|
isOptional: false;
|
|
253
253
|
};
|
|
254
254
|
totalSold: {
|
|
255
|
-
type:
|
|
255
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
256
256
|
isOptional: false;
|
|
257
257
|
};
|
|
258
258
|
createdAt: {
|
|
259
|
-
type:
|
|
259
|
+
type: _lssm_lib_schema1048.FieldType<Date, string>;
|
|
260
260
|
isOptional: false;
|
|
261
261
|
};
|
|
262
262
|
}>;
|
|
@@ -264,7 +264,7 @@ declare const ListProductsContract: _lssm_lib_contracts4.ContractSpec<_lssm_lib_
|
|
|
264
264
|
isOptional: false;
|
|
265
265
|
};
|
|
266
266
|
total: {
|
|
267
|
-
type:
|
|
267
|
+
type: _lssm_lib_schema1048.FieldType<number, number>;
|
|
268
268
|
isOptional: false;
|
|
269
269
|
};
|
|
270
270
|
}>, undefined>;
|