@lssm/example.marketplace 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217073102
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,97 +1,97 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema651 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts8 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a new order.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateOrderContract:
|
|
8
|
+
declare const CreateOrderContract: _lssm_lib_contracts8.ContractSpec<_lssm_lib_schema651.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
items: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema651.FieldType<unknown, unknown>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
description: string;
|
|
17
17
|
};
|
|
18
18
|
shippingAddress: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema651.FieldType<unknown, unknown>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
billingAddress: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema651.FieldType<unknown, unknown>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
};
|
|
26
26
|
buyerNote: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
28
28
|
isOptional: true;
|
|
29
29
|
};
|
|
30
|
-
}>,
|
|
30
|
+
}>, _lssm_lib_schema651.SchemaModel<{
|
|
31
31
|
id: {
|
|
32
|
-
type:
|
|
32
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
33
33
|
isOptional: false;
|
|
34
34
|
};
|
|
35
35
|
orderNumber: {
|
|
36
|
-
type:
|
|
36
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
buyerId: {
|
|
40
|
-
type:
|
|
40
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
41
41
|
isOptional: false;
|
|
42
42
|
};
|
|
43
43
|
storeId: {
|
|
44
|
-
type:
|
|
44
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
45
45
|
isOptional: false;
|
|
46
46
|
};
|
|
47
47
|
status: {
|
|
48
|
-
type:
|
|
48
|
+
type: _lssm_lib_schema651.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
49
49
|
isOptional: false;
|
|
50
50
|
};
|
|
51
51
|
subtotal: {
|
|
52
|
-
type:
|
|
52
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
53
53
|
isOptional: false;
|
|
54
54
|
};
|
|
55
55
|
shippingTotal: {
|
|
56
|
-
type:
|
|
56
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
taxTotal: {
|
|
60
|
-
type:
|
|
60
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
total: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
currency: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
items: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema651.SchemaModel<{
|
|
73
73
|
id: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
productId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
productName: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
unitPrice: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
quantity: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
subtotal: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
}>;
|
|
@@ -99,78 +99,78 @@ declare const CreateOrderContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_s
|
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
createdAt: {
|
|
102
|
-
type:
|
|
102
|
+
type: _lssm_lib_schema651.FieldType<Date, string>;
|
|
103
103
|
isOptional: false;
|
|
104
104
|
};
|
|
105
105
|
}>, {
|
|
106
106
|
name: string;
|
|
107
107
|
version: number;
|
|
108
108
|
when: string;
|
|
109
|
-
payload:
|
|
109
|
+
payload: _lssm_lib_schema651.SchemaModel<{
|
|
110
110
|
id: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
orderNumber: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
buyerId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
storeId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
status: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema651.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
subtotal: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
shippingTotal: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
taxTotal: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
total: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
currency: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
items: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema651.SchemaModel<{
|
|
152
152
|
id: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
productId: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
productName: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
unitPrice: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
quantity: {
|
|
169
|
-
type:
|
|
169
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
subtotal: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
}>;
|
|
@@ -178,7 +178,7 @@ declare const CreateOrderContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_s
|
|
|
178
178
|
isOptional: true;
|
|
179
179
|
};
|
|
180
180
|
createdAt: {
|
|
181
|
-
type:
|
|
181
|
+
type: _lssm_lib_schema651.FieldType<Date, string>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
}>;
|
|
@@ -186,92 +186,92 @@ declare const CreateOrderContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_s
|
|
|
186
186
|
/**
|
|
187
187
|
* Update order status.
|
|
188
188
|
*/
|
|
189
|
-
declare const UpdateOrderStatusContract:
|
|
189
|
+
declare const UpdateOrderStatusContract: _lssm_lib_contracts8.ContractSpec<_lssm_lib_schema651.SchemaModel<{
|
|
190
190
|
orderId: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
status: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema651.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
196
196
|
isOptional: false;
|
|
197
197
|
};
|
|
198
198
|
trackingNumber: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
202
|
trackingUrl: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
note: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
|
-
}>,
|
|
210
|
+
}>, _lssm_lib_schema651.SchemaModel<{
|
|
211
211
|
id: {
|
|
212
|
-
type:
|
|
212
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
orderNumber: {
|
|
216
|
-
type:
|
|
216
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
217
217
|
isOptional: false;
|
|
218
218
|
};
|
|
219
219
|
buyerId: {
|
|
220
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
};
|
|
223
223
|
storeId: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
status: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema651.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
229
229
|
isOptional: false;
|
|
230
230
|
};
|
|
231
231
|
subtotal: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
233
233
|
isOptional: false;
|
|
234
234
|
};
|
|
235
235
|
shippingTotal: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
taxTotal: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
241
241
|
isOptional: false;
|
|
242
242
|
};
|
|
243
243
|
total: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
currency: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
items: {
|
|
252
|
-
type:
|
|
252
|
+
type: _lssm_lib_schema651.SchemaModel<{
|
|
253
253
|
id: {
|
|
254
|
-
type:
|
|
254
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
productId: {
|
|
258
|
-
type:
|
|
258
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
259
259
|
isOptional: false;
|
|
260
260
|
};
|
|
261
261
|
productName: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
263
263
|
isOptional: false;
|
|
264
264
|
};
|
|
265
265
|
unitPrice: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
quantity: {
|
|
270
|
-
type:
|
|
270
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
271
271
|
isOptional: false;
|
|
272
272
|
};
|
|
273
273
|
subtotal: {
|
|
274
|
-
type:
|
|
274
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
}>;
|
|
@@ -279,78 +279,78 @@ declare const UpdateOrderStatusContract: _lssm_lib_contracts0.ContractSpec<_lssm
|
|
|
279
279
|
isOptional: true;
|
|
280
280
|
};
|
|
281
281
|
createdAt: {
|
|
282
|
-
type:
|
|
282
|
+
type: _lssm_lib_schema651.FieldType<Date, string>;
|
|
283
283
|
isOptional: false;
|
|
284
284
|
};
|
|
285
285
|
}>, {
|
|
286
286
|
name: string;
|
|
287
287
|
version: number;
|
|
288
288
|
when: string;
|
|
289
|
-
payload:
|
|
289
|
+
payload: _lssm_lib_schema651.SchemaModel<{
|
|
290
290
|
id: {
|
|
291
|
-
type:
|
|
291
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
292
292
|
isOptional: false;
|
|
293
293
|
};
|
|
294
294
|
orderNumber: {
|
|
295
|
-
type:
|
|
295
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
296
296
|
isOptional: false;
|
|
297
297
|
};
|
|
298
298
|
buyerId: {
|
|
299
|
-
type:
|
|
299
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
300
300
|
isOptional: false;
|
|
301
301
|
};
|
|
302
302
|
storeId: {
|
|
303
|
-
type:
|
|
303
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
304
304
|
isOptional: false;
|
|
305
305
|
};
|
|
306
306
|
status: {
|
|
307
|
-
type:
|
|
307
|
+
type: _lssm_lib_schema651.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
308
308
|
isOptional: false;
|
|
309
309
|
};
|
|
310
310
|
subtotal: {
|
|
311
|
-
type:
|
|
311
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
312
312
|
isOptional: false;
|
|
313
313
|
};
|
|
314
314
|
shippingTotal: {
|
|
315
|
-
type:
|
|
315
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
316
316
|
isOptional: false;
|
|
317
317
|
};
|
|
318
318
|
taxTotal: {
|
|
319
|
-
type:
|
|
319
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
320
320
|
isOptional: false;
|
|
321
321
|
};
|
|
322
322
|
total: {
|
|
323
|
-
type:
|
|
323
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
324
324
|
isOptional: false;
|
|
325
325
|
};
|
|
326
326
|
currency: {
|
|
327
|
-
type:
|
|
327
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
328
328
|
isOptional: false;
|
|
329
329
|
};
|
|
330
330
|
items: {
|
|
331
|
-
type:
|
|
331
|
+
type: _lssm_lib_schema651.SchemaModel<{
|
|
332
332
|
id: {
|
|
333
|
-
type:
|
|
333
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
334
334
|
isOptional: false;
|
|
335
335
|
};
|
|
336
336
|
productId: {
|
|
337
|
-
type:
|
|
337
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
338
338
|
isOptional: false;
|
|
339
339
|
};
|
|
340
340
|
productName: {
|
|
341
|
-
type:
|
|
341
|
+
type: _lssm_lib_schema651.FieldType<string, string>;
|
|
342
342
|
isOptional: false;
|
|
343
343
|
};
|
|
344
344
|
unitPrice: {
|
|
345
|
-
type:
|
|
345
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
346
346
|
isOptional: false;
|
|
347
347
|
};
|
|
348
348
|
quantity: {
|
|
349
|
-
type:
|
|
349
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
350
350
|
isOptional: false;
|
|
351
351
|
};
|
|
352
352
|
subtotal: {
|
|
353
|
-
type:
|
|
353
|
+
type: _lssm_lib_schema651.FieldType<number, number>;
|
|
354
354
|
isOptional: false;
|
|
355
355
|
};
|
|
356
356
|
}>;
|
|
@@ -358,7 +358,7 @@ declare const UpdateOrderStatusContract: _lssm_lib_contracts0.ContractSpec<_lssm
|
|
|
358
358
|
isOptional: true;
|
|
359
359
|
};
|
|
360
360
|
createdAt: {
|
|
361
|
-
type:
|
|
361
|
+
type: _lssm_lib_schema651.FieldType<Date, string>;
|
|
362
362
|
isOptional: false;
|
|
363
363
|
};
|
|
364
364
|
}>;
|
|
@@ -1 +1,74 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { defineCommand } from "../libs/contracts/dist/spec.js";
|
|
2
|
+
import { CreateOrderInputModel, OrderModel, UpdateOrderStatusInputModel } from "./order.schema.js";
|
|
3
|
+
|
|
4
|
+
//#region src/order/order.contracts.ts
|
|
5
|
+
const OWNERS = ["@example.marketplace"];
|
|
6
|
+
/**
|
|
7
|
+
* Create a new order.
|
|
8
|
+
*/
|
|
9
|
+
const CreateOrderContract = defineCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "marketplace.order.create",
|
|
12
|
+
version: 1,
|
|
13
|
+
stability: "stable",
|
|
14
|
+
owners: [...OWNERS],
|
|
15
|
+
tags: [
|
|
16
|
+
"marketplace",
|
|
17
|
+
"order",
|
|
18
|
+
"create"
|
|
19
|
+
],
|
|
20
|
+
description: "Create a new order.",
|
|
21
|
+
goal: "Allow buyers to purchase products.",
|
|
22
|
+
context: "Checkout flow."
|
|
23
|
+
},
|
|
24
|
+
io: {
|
|
25
|
+
input: CreateOrderInputModel,
|
|
26
|
+
output: OrderModel
|
|
27
|
+
},
|
|
28
|
+
policy: { auth: "user" },
|
|
29
|
+
sideEffects: {
|
|
30
|
+
emits: [{
|
|
31
|
+
name: "marketplace.order.created",
|
|
32
|
+
version: 1,
|
|
33
|
+
when: "Order is created",
|
|
34
|
+
payload: OrderModel
|
|
35
|
+
}],
|
|
36
|
+
audit: ["marketplace.order.created"]
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* Update order status.
|
|
41
|
+
*/
|
|
42
|
+
const UpdateOrderStatusContract = defineCommand({
|
|
43
|
+
meta: {
|
|
44
|
+
name: "marketplace.order.updateStatus",
|
|
45
|
+
version: 1,
|
|
46
|
+
stability: "stable",
|
|
47
|
+
owners: [...OWNERS],
|
|
48
|
+
tags: [
|
|
49
|
+
"marketplace",
|
|
50
|
+
"order",
|
|
51
|
+
"status"
|
|
52
|
+
],
|
|
53
|
+
description: "Update order status.",
|
|
54
|
+
goal: "Track order fulfillment.",
|
|
55
|
+
context: "Order management."
|
|
56
|
+
},
|
|
57
|
+
io: {
|
|
58
|
+
input: UpdateOrderStatusInputModel,
|
|
59
|
+
output: OrderModel
|
|
60
|
+
},
|
|
61
|
+
policy: { auth: "user" },
|
|
62
|
+
sideEffects: {
|
|
63
|
+
emits: [{
|
|
64
|
+
name: "marketplace.order.statusUpdated",
|
|
65
|
+
version: 1,
|
|
66
|
+
when: "Status changes",
|
|
67
|
+
payload: OrderModel
|
|
68
|
+
}],
|
|
69
|
+
audit: ["marketplace.order.statusUpdated"]
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
export { CreateOrderContract, UpdateOrderStatusContract };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema777 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/order/order.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Order status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const OrderStatusEnum:
|
|
7
|
+
declare const OrderStatusEnum: _lssm_lib_schema777.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { OrderStatusEnum };
|
package/dist/order/order.enum.js
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { defineEnum } from "../libs/schema/dist/EnumType.js";
|
|
2
|
+
import "../libs/schema/dist/index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/order/order.enum.ts
|
|
5
|
+
/**
|
|
6
|
+
* Order status enum.
|
|
7
|
+
*/
|
|
8
|
+
const OrderStatusEnum = defineEnum("OrderStatus", [
|
|
9
|
+
"PENDING",
|
|
10
|
+
"PAID",
|
|
11
|
+
"PROCESSING",
|
|
12
|
+
"SHIPPED",
|
|
13
|
+
"DELIVERED",
|
|
14
|
+
"COMPLETED",
|
|
15
|
+
"CANCELLED",
|
|
16
|
+
"REFUNDED",
|
|
17
|
+
"PARTIALLY_REFUNDED",
|
|
18
|
+
"DISPUTED"
|
|
19
|
+
]);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { OrderStatusEnum };
|