@lssm/example.marketplace 0.0.0-canary-20251217060433 → 0.0.0-canary-20251217062139
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/marketplace.docblock.js +1 -1
- package/dist/entities/index.d.ts +296 -296
- package/dist/entities/order.d.ts +78 -78
- package/dist/entities/order.js +1 -1
- package/dist/entities/payout.d.ts +65 -65
- package/dist/entities/payout.js +1 -1
- package/dist/entities/product.d.ts +70 -70
- package/dist/entities/product.js +1 -1
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/review.js +1 -1
- package/dist/entities/store.d.ts +41 -41
- package/dist/entities/store.js +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/libs/contracts/dist/capabilities/openbanking.js +1 -0
- package/dist/libs/contracts/dist/client/index.js +1 -0
- package/dist/libs/contracts/dist/client/react/feature-render.js +1 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
- package/dist/libs/contracts/dist/client/react/index.js +1 -0
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +1 -0
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +76 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +350 -0
- package/dist/libs/contracts/dist/docs/index.js +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +383 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +68 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +140 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +86 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +58 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +38 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +213 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +289 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +262 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +63 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +36 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +65 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +41 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +122 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +68 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +1 -0
- package/dist/libs/contracts/dist/events.js +1 -0
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
- package/dist/libs/contracts/dist/index.js +1 -0
- package/dist/libs/contracts/dist/install.js +1 -0
- package/dist/libs/contracts/dist/integrations/contracts.js +1 -0
- package/dist/libs/contracts/dist/integrations/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/registry.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +1 -0
- package/dist/libs/contracts/dist/jsonschema.js +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +1 -0
- package/dist/libs/contracts/dist/knowledge/index.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +1 -0
- package/dist/libs/contracts/dist/llm/index.js +1 -0
- package/dist/libs/contracts/dist/llm/prompts.js +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +1 -0
- package/dist/libs/contracts/dist/openapi.js +1 -0
- package/dist/libs/contracts/dist/ownership.js +1 -0
- package/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +1 -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 +1 -0
- package/dist/libs/contracts/dist/registry.js +1 -0
- package/dist/libs/contracts/dist/resources.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +1 -0
- package/dist/libs/contracts/dist/server/graphql-pothos.js +1 -0
- package/dist/libs/contracts/dist/server/index.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +1 -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 +1 -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 +1 -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 +1 -0
- package/dist/libs/schema/dist/FieldType.js +1 -0
- package/dist/libs/schema/dist/ScalarTypeEnum.js +1 -0
- package/dist/libs/schema/dist/SchemaModel.js +1 -0
- package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/schema/dist/entity/index.js +1 -0
- package/dist/libs/schema/dist/entity/types.js +1 -0
- package/dist/libs/schema/dist/index.js +1 -0
- package/dist/order/order.contracts.d.ts +90 -90
- package/dist/order/order.contracts.js +1 -1
- package/dist/order/order.enum.d.ts +2 -2
- package/dist/order/order.enum.js +1 -1
- package/dist/order/order.event.d.ts +38 -38
- package/dist/order/order.event.js +1 -1
- package/dist/order/order.schema.d.ts +39 -39
- package/dist/order/order.schema.js +1 -1
- package/dist/payout/payout.contracts.d.ts +23 -23
- package/dist/payout/payout.contracts.js +1 -1
- package/dist/payout/payout.enum.d.ts +2 -2
- package/dist/payout/payout.enum.js +1 -1
- package/dist/payout/payout.event.d.ts +17 -17
- package/dist/payout/payout.event.js +1 -1
- package/dist/payout/payout.schema.d.ts +37 -37
- package/dist/payout/payout.schema.js +1 -1
- package/dist/product/product.contracts.d.ts +68 -68
- package/dist/product/product.contracts.js +1 -1
- package/dist/product/product.enum.d.ts +2 -2
- package/dist/product/product.enum.js +1 -1
- package/dist/product/product.event.d.ts +20 -20
- package/dist/product/product.event.js +1 -1
- package/dist/product/product.schema.d.ts +52 -52
- package/dist/product/product.schema.js +1 -1
- package/dist/review/review.contracts.d.ts +59 -59
- package/dist/review/review.contracts.js +1 -1
- package/dist/review/review.enum.d.ts +2 -2
- package/dist/review/review.enum.js +1 -1
- package/dist/review/review.event.d.ts +14 -14
- package/dist/review/review.event.js +1 -1
- package/dist/review/review.schema.d.ts +45 -45
- package/dist/review/review.schema.js +1 -1
- package/dist/store/store.contracts.d.ts +33 -33
- package/dist/store/store.contracts.js +1 -1
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.enum.js +1 -1
- package/dist/store/store.event.d.ts +14 -14
- package/dist/store/store.event.js +1 -1
- package/dist/store/store.schema.d.ts +20 -20
- package/dist/store/store.schema.js +1 -1
- package/package.json +12 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./defineEntity.js";import"./types.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"zod";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t}from"./EnumType.js";import{t as n}from"./FieldType.js";import{l as r}from"./ScalarTypeEnum.js";import{n as i,t as a}from"./SchemaModel.js";import{i as o,n as s,r as c,t as l}from"./entity/defineEntity.js";import"./entity/index.js";
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema223 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts4 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_contracts4.ContractSpec<_lssm_lib_schema223.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
items: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema223.FieldType<unknown, unknown>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
description: string;
|
|
17
17
|
};
|
|
18
18
|
shippingAddress: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema223.FieldType<unknown, unknown>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
billingAddress: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema223.FieldType<unknown, unknown>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
};
|
|
26
26
|
buyerNote: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
28
28
|
isOptional: true;
|
|
29
29
|
};
|
|
30
|
-
}>,
|
|
30
|
+
}>, _lssm_lib_schema223.SchemaModel<{
|
|
31
31
|
id: {
|
|
32
|
-
type:
|
|
32
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
33
33
|
isOptional: false;
|
|
34
34
|
};
|
|
35
35
|
orderNumber: {
|
|
36
|
-
type:
|
|
36
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
buyerId: {
|
|
40
|
-
type:
|
|
40
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
41
41
|
isOptional: false;
|
|
42
42
|
};
|
|
43
43
|
storeId: {
|
|
44
|
-
type:
|
|
44
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
45
45
|
isOptional: false;
|
|
46
46
|
};
|
|
47
47
|
status: {
|
|
48
|
-
type:
|
|
48
|
+
type: _lssm_lib_schema223.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_schema223.FieldType<number, number>;
|
|
53
53
|
isOptional: false;
|
|
54
54
|
};
|
|
55
55
|
shippingTotal: {
|
|
56
|
-
type:
|
|
56
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
taxTotal: {
|
|
60
|
-
type:
|
|
60
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
total: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
currency: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
items: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema223.SchemaModel<{
|
|
73
73
|
id: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
productId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
productName: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
unitPrice: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
quantity: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
subtotal: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
}>;
|
|
@@ -99,78 +99,78 @@ declare const CreateOrderContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_s
|
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
createdAt: {
|
|
102
|
-
type:
|
|
102
|
+
type: _lssm_lib_schema223.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_schema223.SchemaModel<{
|
|
110
110
|
id: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
orderNumber: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
buyerId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
storeId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
status: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema223.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_schema223.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
shippingTotal: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
taxTotal: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
total: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
currency: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
items: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema223.SchemaModel<{
|
|
152
152
|
id: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
productId: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
productName: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
unitPrice: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
quantity: {
|
|
169
|
-
type:
|
|
169
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
subtotal: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
}>;
|
|
@@ -178,7 +178,7 @@ declare const CreateOrderContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_s
|
|
|
178
178
|
isOptional: true;
|
|
179
179
|
};
|
|
180
180
|
createdAt: {
|
|
181
|
-
type:
|
|
181
|
+
type: _lssm_lib_schema223.FieldType<Date, string>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
}>;
|
|
@@ -186,92 +186,92 @@ declare const CreateOrderContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_s
|
|
|
186
186
|
/**
|
|
187
187
|
* Update order status.
|
|
188
188
|
*/
|
|
189
|
-
declare const UpdateOrderStatusContract:
|
|
189
|
+
declare const UpdateOrderStatusContract: _lssm_lib_contracts4.ContractSpec<_lssm_lib_schema223.SchemaModel<{
|
|
190
190
|
orderId: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
status: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema223.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_schema223.FieldType<string, string>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
202
|
trackingUrl: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
note: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
|
-
}>,
|
|
210
|
+
}>, _lssm_lib_schema223.SchemaModel<{
|
|
211
211
|
id: {
|
|
212
|
-
type:
|
|
212
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
orderNumber: {
|
|
216
|
-
type:
|
|
216
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
217
217
|
isOptional: false;
|
|
218
218
|
};
|
|
219
219
|
buyerId: {
|
|
220
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
};
|
|
223
223
|
storeId: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
status: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema223.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_schema223.FieldType<number, number>;
|
|
233
233
|
isOptional: false;
|
|
234
234
|
};
|
|
235
235
|
shippingTotal: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
taxTotal: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
241
241
|
isOptional: false;
|
|
242
242
|
};
|
|
243
243
|
total: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
currency: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
items: {
|
|
252
|
-
type:
|
|
252
|
+
type: _lssm_lib_schema223.SchemaModel<{
|
|
253
253
|
id: {
|
|
254
|
-
type:
|
|
254
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
productId: {
|
|
258
|
-
type:
|
|
258
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
259
259
|
isOptional: false;
|
|
260
260
|
};
|
|
261
261
|
productName: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
263
263
|
isOptional: false;
|
|
264
264
|
};
|
|
265
265
|
unitPrice: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
quantity: {
|
|
270
|
-
type:
|
|
270
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
271
271
|
isOptional: false;
|
|
272
272
|
};
|
|
273
273
|
subtotal: {
|
|
274
|
-
type:
|
|
274
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
}>;
|
|
@@ -279,78 +279,78 @@ declare const UpdateOrderStatusContract: _lssm_lib_contracts3.ContractSpec<_lssm
|
|
|
279
279
|
isOptional: true;
|
|
280
280
|
};
|
|
281
281
|
createdAt: {
|
|
282
|
-
type:
|
|
282
|
+
type: _lssm_lib_schema223.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_schema223.SchemaModel<{
|
|
290
290
|
id: {
|
|
291
|
-
type:
|
|
291
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
292
292
|
isOptional: false;
|
|
293
293
|
};
|
|
294
294
|
orderNumber: {
|
|
295
|
-
type:
|
|
295
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
296
296
|
isOptional: false;
|
|
297
297
|
};
|
|
298
298
|
buyerId: {
|
|
299
|
-
type:
|
|
299
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
300
300
|
isOptional: false;
|
|
301
301
|
};
|
|
302
302
|
storeId: {
|
|
303
|
-
type:
|
|
303
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
304
304
|
isOptional: false;
|
|
305
305
|
};
|
|
306
306
|
status: {
|
|
307
|
-
type:
|
|
307
|
+
type: _lssm_lib_schema223.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_schema223.FieldType<number, number>;
|
|
312
312
|
isOptional: false;
|
|
313
313
|
};
|
|
314
314
|
shippingTotal: {
|
|
315
|
-
type:
|
|
315
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
316
316
|
isOptional: false;
|
|
317
317
|
};
|
|
318
318
|
taxTotal: {
|
|
319
|
-
type:
|
|
319
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
320
320
|
isOptional: false;
|
|
321
321
|
};
|
|
322
322
|
total: {
|
|
323
|
-
type:
|
|
323
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
324
324
|
isOptional: false;
|
|
325
325
|
};
|
|
326
326
|
currency: {
|
|
327
|
-
type:
|
|
327
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
328
328
|
isOptional: false;
|
|
329
329
|
};
|
|
330
330
|
items: {
|
|
331
|
-
type:
|
|
331
|
+
type: _lssm_lib_schema223.SchemaModel<{
|
|
332
332
|
id: {
|
|
333
|
-
type:
|
|
333
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
334
334
|
isOptional: false;
|
|
335
335
|
};
|
|
336
336
|
productId: {
|
|
337
|
-
type:
|
|
337
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
338
338
|
isOptional: false;
|
|
339
339
|
};
|
|
340
340
|
productName: {
|
|
341
|
-
type:
|
|
341
|
+
type: _lssm_lib_schema223.FieldType<string, string>;
|
|
342
342
|
isOptional: false;
|
|
343
343
|
};
|
|
344
344
|
unitPrice: {
|
|
345
|
-
type:
|
|
345
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
346
346
|
isOptional: false;
|
|
347
347
|
};
|
|
348
348
|
quantity: {
|
|
349
|
-
type:
|
|
349
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
350
350
|
isOptional: false;
|
|
351
351
|
};
|
|
352
352
|
subtotal: {
|
|
353
|
-
type:
|
|
353
|
+
type: _lssm_lib_schema223.FieldType<number, number>;
|
|
354
354
|
isOptional: false;
|
|
355
355
|
};
|
|
356
356
|
}>;
|
|
@@ -358,7 +358,7 @@ declare const UpdateOrderStatusContract: _lssm_lib_contracts3.ContractSpec<_lssm
|
|
|
358
358
|
isOptional: true;
|
|
359
359
|
};
|
|
360
360
|
createdAt: {
|
|
361
|
-
type:
|
|
361
|
+
type: _lssm_lib_schema223.FieldType<Date, string>;
|
|
362
362
|
isOptional: false;
|
|
363
363
|
};
|
|
364
364
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CreateOrderInputModel as
|
|
1
|
+
import{t as e}from"../libs/contracts/dist/spec.js";import{CreateOrderInputModel as t,OrderModel as n,UpdateOrderStatusInputModel as r}from"./order.schema.js";const i=[`@example.marketplace`],a=e({meta:{name:`marketplace.order.create`,version:1,stability:`stable`,owners:[...i],tags:[`marketplace`,`order`,`create`],description:`Create a new order.`,goal:`Allow buyers to purchase products.`,context:`Checkout flow.`},io:{input:t,output:n},policy:{auth:`user`},sideEffects:{emits:[{name:`marketplace.order.created`,version:1,when:`Order is created`,payload:n}],audit:[`marketplace.order.created`]}}),o=e({meta:{name:`marketplace.order.updateStatus`,version:1,stability:`stable`,owners:[...i],tags:[`marketplace`,`order`,`status`],description:`Update order status.`,goal:`Track order fulfillment.`,context:`Order management.`},io:{input:r,output:n},policy:{auth:`user`},sideEffects:{emits:[{name:`marketplace.order.statusUpdated`,version:1,when:`Status changes`,payload:n}],audit:[`marketplace.order.statusUpdated`]}});export{a as CreateOrderContract,o as UpdateOrderStatusContract};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema222 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_schema222.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 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../libs/schema/dist/EnumType.js";import"../libs/schema/dist/index.js";const t=e(`OrderStatus`,[`PENDING`,`PAID`,`PROCESSING`,`SHIPPED`,`DELIVERED`,`COMPLETED`,`CANCELLED`,`REFUNDED`,`PARTIALLY_REFUNDED`,`DISPUTED`]);export{t as OrderStatusEnum};
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema734 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts14 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.event.d.ts
|
|
5
|
-
declare const OrderCreatedEvent: _lssm_lib_contracts14.EventSpec<
|
|
5
|
+
declare const OrderCreatedEvent: _lssm_lib_contracts14.EventSpec<_lssm_lib_schema734.SchemaModel<{
|
|
6
6
|
orderId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
orderNumber: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
buyerId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
storeId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
total: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema734.FieldType<number, number>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
currency: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
itemCount: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema734.FieldType<number, number>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
timestamp: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema734.FieldType<Date, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
}>>;
|
|
39
|
-
declare const OrderPaidEvent: _lssm_lib_contracts14.EventSpec<
|
|
39
|
+
declare const OrderPaidEvent: _lssm_lib_contracts14.EventSpec<_lssm_lib_schema734.SchemaModel<{
|
|
40
40
|
orderId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
orderNumber: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
total: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema734.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
paymentMethod: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema734.FieldType<Date, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
61
|
-
declare const OrderStatusUpdatedEvent: _lssm_lib_contracts14.EventSpec<
|
|
61
|
+
declare const OrderStatusUpdatedEvent: _lssm_lib_contracts14.EventSpec<_lssm_lib_schema734.SchemaModel<{
|
|
62
62
|
orderId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
orderNumber: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
previousStatus: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
newStatus: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
updatedBy: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
timestamp: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema734.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const OrderShippedEvent: _lssm_lib_contracts14.EventSpec<
|
|
87
|
+
declare const OrderShippedEvent: _lssm_lib_contracts14.EventSpec<_lssm_lib_schema734.SchemaModel<{
|
|
88
88
|
orderId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
orderNumber: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
trackingNumber: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
trackingUrl: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
102
102
|
isOptional: true;
|
|
103
103
|
};
|
|
104
104
|
carrier: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
timestamp: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema734.FieldType<Date, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
}>>;
|
|
113
|
-
declare const OrderCompletedEvent: _lssm_lib_contracts14.EventSpec<
|
|
113
|
+
declare const OrderCompletedEvent: _lssm_lib_contracts14.EventSpec<_lssm_lib_schema734.SchemaModel<{
|
|
114
114
|
orderId: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
orderNumber: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
buyerId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
storeId: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema734.FieldType<string, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
total: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema734.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
sellerPayout: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema734.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
timestamp: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema734.FieldType<Date, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
}>>;
|