@lssm/example.marketplace 0.0.0-canary-20251220030446 → 0.0.0-canary-20251221114240
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/entities/index.d.ts +296 -296
- package/dist/entities/order.d.ts +78 -78
- package/dist/entities/payout.d.ts +65 -65
- package/dist/entities/product.d.ts +70 -70
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/store.d.ts +41 -41
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/libs/contracts/dist/index.js +3 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +1 -1
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/libs/contracts/dist/operation.js.map +1 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +98 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/dist/order/order.contracts.d.ts +89 -89
- package/dist/order/order.contracts.d.ts.map +1 -1
- package/dist/order/order.contracts.js +1 -1
- package/dist/order/order.contracts.js.map +1 -1
- package/dist/order/order.enum.d.ts +2 -2
- package/dist/order/order.event.d.ts +39 -39
- package/dist/order/order.schema.d.ts +39 -39
- package/dist/payout/payout.contracts.d.ts +23 -23
- package/dist/payout/payout.contracts.d.ts.map +1 -1
- package/dist/payout/payout.contracts.js +1 -1
- package/dist/payout/payout.contracts.js.map +1 -1
- package/dist/payout/payout.enum.d.ts +2 -2
- package/dist/product/product.contracts.d.ts +68 -68
- package/dist/product/product.contracts.d.ts.map +1 -1
- package/dist/product/product.contracts.js +1 -1
- package/dist/product/product.contracts.js.map +1 -1
- package/dist/product/product.enum.d.ts +2 -2
- package/dist/product/product.event.d.ts +20 -20
- package/dist/product/product.schema.d.ts +52 -52
- package/dist/review/review.contracts.d.ts +59 -59
- package/dist/review/review.contracts.d.ts.map +1 -1
- package/dist/review/review.contracts.js +1 -1
- package/dist/review/review.contracts.js.map +1 -1
- package/dist/review/review.enum.d.ts +2 -2
- package/dist/review/review.enum.d.ts.map +1 -1
- package/dist/review/review.event.d.ts +15 -15
- package/dist/review/review.event.d.ts.map +1 -1
- package/dist/review/review.schema.d.ts +45 -45
- package/dist/review/review.schema.d.ts.map +1 -1
- package/dist/store/store.contracts.d.ts +33 -33
- package/dist/store/store.contracts.d.ts.map +1 -1
- package/dist/store/store.contracts.js +1 -1
- package/dist/store/store.contracts.js.map +1 -1
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.event.d.ts +14 -14
- package/package.json +17 -17
- package/dist/libs/contracts/dist/spec.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding-base.js","names":[],"sources":["../../../../../../libs/contracts/dist/onboarding-base.js"],"sourcesContent":["import { E5, x8 } from \"./schema/dist/index.js\";\nimport { defineCommand, defineQuery } from \"./
|
|
1
|
+
{"version":3,"file":"onboarding-base.js","names":[],"sources":["../../../../../../libs/contracts/dist/onboarding-base.js"],"sourcesContent":["import { E5, x8 } from \"./schema/dist/index.js\";\nimport { defineCommand, defineQuery } from \"./operation.js\";\nimport { OwnersEnum, StabilityEnum } from \"./ownership.js\";\n\n//#region src/onboarding-base.ts\n/**\n* Shared base contracts for onboarding flows across verticals.\n* These operations are reusable for any app that needs multi-step onboarding with draft persistence.\n*/\n/** Save/update onboarding draft (auto-save during flow) */\nconst SaveOnboardingDraftInput = new x8({\n\tname: \"SaveOnboardingDraftInput\",\n\tdescription: \"Input for saving onboarding draft\",\n\tfields: { data: {\n\t\ttype: E5.JSON(),\n\t\tisOptional: false\n\t} }\n});\nconst SaveOnboardingDraftOutput = new x8({\n\tname: \"SaveOnboardingDraftOutput\",\n\tdescription: \"Output for saving onboarding draft\",\n\tfields: {\n\t\tid: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\torganizationId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t}\n\t}\n});\nconst SaveOnboardingDraftBaseSpec = defineCommand({\n\tmeta: {\n\t\tname: \"base.onboarding.saveDraft\",\n\t\tversion: 1,\n\t\tstability: StabilityEnum.Beta,\n\t\towners: [OwnersEnum.PlatformSigil],\n\t\ttags: [\"onboarding\", \"draft\"],\n\t\tdescription: \"Save or update onboarding draft for active organization\",\n\t\tgoal: \"Persist onboarding progress incrementally for resumption and safety\",\n\t\tcontext: \"Auto-saves every few seconds during onboarding; enables users to leave and resume\"\n\t},\n\tio: {\n\t\tinput: SaveOnboardingDraftInput,\n\t\toutput: SaveOnboardingDraftOutput\n\t},\n\tpolicy: {\n\t\tauth: \"user\",\n\t\tescalate: null\n\t},\n\ttransport: {\n\t\tgql: { field: \"saveOnboardingDraft\" },\n\t\trest: { method: \"POST\" }\n\t}\n});\n/** Get current onboarding draft (on mount/restore) */\nconst GetOnboardingDraftOutput = new x8({\n\tname: \"GetOnboardingDraftOutput\",\n\tdescription: \"Onboarding draft payload\",\n\tfields: {\n\t\tid: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: true\n\t\t},\n\t\torganizationId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: true\n\t\t},\n\t\tdata: {\n\t\t\ttype: E5.JSON(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcreatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tupdatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst GetOnboardingDraftBaseSpec = defineQuery({\n\tmeta: {\n\t\tname: \"base.onboarding.getDraft\",\n\t\tversion: 1,\n\t\tstability: StabilityEnum.Beta,\n\t\towners: [OwnersEnum.PlatformSigil],\n\t\ttags: [\"onboarding\", \"draft\"],\n\t\tdescription: \"Get onboarding draft for active organization\",\n\t\tgoal: \"Retrieve saved onboarding progress\",\n\t\tcontext: \"Called on mount to restore in-progress onboarding\"\n\t},\n\tio: {\n\t\tinput: null,\n\t\toutput: GetOnboardingDraftOutput\n\t},\n\tpolicy: {\n\t\tauth: \"user\",\n\t\tescalate: null\n\t},\n\ttransport: {\n\t\tgql: { field: \"getOnboardingDraft\" },\n\t\trest: { method: \"GET\" }\n\t}\n});\n/** Delete onboarding draft (cleanup after completion or cancel) */\nconst DeleteOnboardingDraftOutput = new x8({\n\tname: \"DeleteOnboardingDraftOutput\",\n\tdescription: \"Result of delete operation\",\n\tfields: { ok: {\n\t\ttype: E5.Boolean(),\n\t\tisOptional: false\n\t} }\n});\nconst DeleteOnboardingDraftBaseSpec = defineCommand({\n\tmeta: {\n\t\tname: \"base.onboarding.deleteDraft\",\n\t\tversion: 1,\n\t\tstability: StabilityEnum.Beta,\n\t\towners: [OwnersEnum.PlatformSigil],\n\t\ttags: [\"onboarding\", \"draft\"],\n\t\tdescription: \"Delete onboarding draft for active organization\",\n\t\tgoal: \"Clear draft after completion or if user wants to restart\",\n\t\tcontext: \"Called after successful onboarding or explicit user reset\"\n\t},\n\tio: {\n\t\tinput: null,\n\t\toutput: DeleteOnboardingDraftOutput\n\t},\n\tpolicy: {\n\t\tauth: \"user\",\n\t\tescalate: null\n\t},\n\ttransport: {\n\t\tgql: { field: \"deleteOnboardingDraft\" },\n\t\trest: { method: \"POST\" }\n\t}\n});\n/** Complete onboarding (final submit, creates entities) */\nconst CompleteOnboardingBaseInput = new x8({\n\tname: \"CompleteOnboardingBaseInput\",\n\tdescription: \"Input for completing onboarding\",\n\tfields: { data: {\n\t\ttype: E5.JSON(),\n\t\tisOptional: false\n\t} }\n});\nconst CompleteOnboardingBaseOutput = new x8({\n\tname: \"CompleteOnboardingBaseOutput\",\n\tdescription: \"Result of onboarding completion\",\n\tfields: {\n\t\tsuccess: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: false\n\t\t},\n\t\tuserId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: true\n\t\t},\n\t\torganizationId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst CompleteOnboardingBaseSpec = defineCommand({\n\tmeta: {\n\t\tname: \"base.onboarding.complete\",\n\t\tversion: 1,\n\t\tstability: StabilityEnum.Beta,\n\t\towners: [OwnersEnum.PlatformSigil],\n\t\ttags: [\"onboarding\"],\n\t\tdescription: \"Complete onboarding and finalize user/organization setup\",\n\t\tgoal: \"Transition from draft to active profile\",\n\t\tcontext: \"Validates all required fields, creates/updates entities, marks onboarding complete\"\n\t},\n\tio: {\n\t\tinput: CompleteOnboardingBaseInput,\n\t\toutput: CompleteOnboardingBaseOutput\n\t},\n\tpolicy: {\n\t\tauth: \"user\",\n\t\tescalate: null\n\t},\n\ttransport: {\n\t\tgql: { field: \"completeOnboarding\" },\n\t\trest: { method: \"POST\" }\n\t}\n});\n\n//#endregion\nexport { CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput };"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/contracts/dist/
|
|
1
|
+
//#region ../../libs/contracts/dist/operation.js
|
|
2
2
|
/**
|
|
3
3
|
* Helper to define a Command (write operation).
|
|
4
4
|
* Sets `kind: 'command'` and defaults `idempotent: false`.
|
|
@@ -32,4 +32,4 @@ const defineQuery = (spec) => ({
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
export { defineCommand, defineQuery };
|
|
35
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.js","names":[],"sources":["../../../../../../libs/contracts/dist/operation.js"],"sourcesContent":["//#region src/operation.ts\nconst isEmitDeclRef = (e) => \"ref\" in e;\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery, isEmitDeclRef };"],"mappings":";;;;;AAMA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as z$1 from "zod";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/workspace-config/contractsrc-schema.js
|
|
4
|
+
/**
|
|
5
|
+
* ContractSpec configuration schema definitions.
|
|
6
|
+
*
|
|
7
|
+
* These schemas define the structure of .contractsrc.json files
|
|
8
|
+
* and are shared across CLI tools and libraries.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* OpenAPI source configuration for import/sync/validate operations.
|
|
12
|
+
*/
|
|
13
|
+
const OpenApiSourceConfigSchema = z$1.object({
|
|
14
|
+
name: z$1.string(),
|
|
15
|
+
url: z$1.url().optional(),
|
|
16
|
+
file: z$1.string().optional(),
|
|
17
|
+
syncMode: z$1.enum([
|
|
18
|
+
"import",
|
|
19
|
+
"sync",
|
|
20
|
+
"validate"
|
|
21
|
+
]).default("validate"),
|
|
22
|
+
tags: z$1.array(z$1.string()).optional(),
|
|
23
|
+
exclude: z$1.array(z$1.string()).optional(),
|
|
24
|
+
include: z$1.array(z$1.string()).optional(),
|
|
25
|
+
prefix: z$1.string().optional(),
|
|
26
|
+
defaultStability: z$1.enum([
|
|
27
|
+
"experimental",
|
|
28
|
+
"beta",
|
|
29
|
+
"stable",
|
|
30
|
+
"deprecated"
|
|
31
|
+
]).optional(),
|
|
32
|
+
defaultAuth: z$1.enum([
|
|
33
|
+
"anonymous",
|
|
34
|
+
"user",
|
|
35
|
+
"admin"
|
|
36
|
+
]).optional(),
|
|
37
|
+
defaultOwners: z$1.array(z$1.string()).optional()
|
|
38
|
+
});
|
|
39
|
+
const OpenApiExportConfigSchema = z$1.object({
|
|
40
|
+
outputPath: z$1.string().default("./openapi.json"),
|
|
41
|
+
format: z$1.enum(["json", "yaml"]).default("json"),
|
|
42
|
+
title: z$1.string().optional(),
|
|
43
|
+
version: z$1.string().optional(),
|
|
44
|
+
description: z$1.string().optional(),
|
|
45
|
+
servers: z$1.array(z$1.object({
|
|
46
|
+
url: z$1.string(),
|
|
47
|
+
description: z$1.string().optional()
|
|
48
|
+
})).optional()
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* OpenAPI configuration section.
|
|
52
|
+
*/
|
|
53
|
+
const OpenApiConfigSchema = z$1.object({
|
|
54
|
+
sources: z$1.array(OpenApiSourceConfigSchema).optional(),
|
|
55
|
+
export: OpenApiExportConfigSchema.optional()
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* Output directory conventions for generated specs.
|
|
59
|
+
*/
|
|
60
|
+
const FolderConventionsSchema = z$1.object({
|
|
61
|
+
models: z$1.string().default("models"),
|
|
62
|
+
operations: z$1.string().default("operations/commands|queries"),
|
|
63
|
+
events: z$1.string().default("events"),
|
|
64
|
+
presentations: z$1.string().default("presentations"),
|
|
65
|
+
forms: z$1.string().default("forms")
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* Full ContractSpec configuration schema (.contractsrc.json).
|
|
69
|
+
*/
|
|
70
|
+
const ContractsrcSchema = z$1.object({
|
|
71
|
+
aiProvider: z$1.enum([
|
|
72
|
+
"claude",
|
|
73
|
+
"openai",
|
|
74
|
+
"ollama",
|
|
75
|
+
"custom"
|
|
76
|
+
]).default("claude"),
|
|
77
|
+
aiModel: z$1.string().optional(),
|
|
78
|
+
agentMode: z$1.enum([
|
|
79
|
+
"simple",
|
|
80
|
+
"cursor",
|
|
81
|
+
"claude-code",
|
|
82
|
+
"openai-codex"
|
|
83
|
+
]).default("simple"),
|
|
84
|
+
customEndpoint: z$1.url().nullable().optional(),
|
|
85
|
+
customApiKey: z$1.string().nullable().optional(),
|
|
86
|
+
outputDir: z$1.string().default("./src"),
|
|
87
|
+
conventions: FolderConventionsSchema,
|
|
88
|
+
defaultOwners: z$1.array(z$1.string()).default([]),
|
|
89
|
+
defaultTags: z$1.array(z$1.string()).default([]),
|
|
90
|
+
packages: z$1.array(z$1.string()).optional(),
|
|
91
|
+
excludePackages: z$1.array(z$1.string()).optional(),
|
|
92
|
+
recursive: z$1.boolean().optional(),
|
|
93
|
+
openapi: OpenApiConfigSchema.optional()
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
export { FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema };
|
|
98
|
+
//# sourceMappingURL=contractsrc-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractsrc-schema.js","names":[],"sources":["../../../../../../../libs/contracts/dist/workspace-config/contractsrc-schema.js"],"sourcesContent":["import * as z$1 from \"zod\";\n\n//#region src/workspace-config/contractsrc-schema.ts\n/**\n* ContractSpec configuration schema definitions.\n*\n* These schemas define the structure of .contractsrc.json files\n* and are shared across CLI tools and libraries.\n*/\n/**\n* OpenAPI source configuration for import/sync/validate operations.\n*/\nconst OpenApiSourceConfigSchema = z$1.object({\n\tname: z$1.string(),\n\turl: z$1.url().optional(),\n\tfile: z$1.string().optional(),\n\tsyncMode: z$1.enum([\n\t\t\"import\",\n\t\t\"sync\",\n\t\t\"validate\"\n\t]).default(\"validate\"),\n\ttags: z$1.array(z$1.string()).optional(),\n\texclude: z$1.array(z$1.string()).optional(),\n\tinclude: z$1.array(z$1.string()).optional(),\n\tprefix: z$1.string().optional(),\n\tdefaultStability: z$1.enum([\n\t\t\"experimental\",\n\t\t\"beta\",\n\t\t\"stable\",\n\t\t\"deprecated\"\n\t]).optional(),\n\tdefaultAuth: z$1.enum([\n\t\t\"anonymous\",\n\t\t\"user\",\n\t\t\"admin\"\n\t]).optional(),\n\tdefaultOwners: z$1.array(z$1.string()).optional()\n});\nconst OpenApiExportConfigSchema = z$1.object({\n\toutputPath: z$1.string().default(\"./openapi.json\"),\n\tformat: z$1.enum([\"json\", \"yaml\"]).default(\"json\"),\n\ttitle: z$1.string().optional(),\n\tversion: z$1.string().optional(),\n\tdescription: z$1.string().optional(),\n\tservers: z$1.array(z$1.object({\n\t\turl: z$1.string(),\n\t\tdescription: z$1.string().optional()\n\t})).optional()\n});\n/**\n* OpenAPI configuration section.\n*/\nconst OpenApiConfigSchema = z$1.object({\n\tsources: z$1.array(OpenApiSourceConfigSchema).optional(),\n\texport: OpenApiExportConfigSchema.optional()\n});\n/**\n* Output directory conventions for generated specs.\n*/\nconst FolderConventionsSchema = z$1.object({\n\tmodels: z$1.string().default(\"models\"),\n\toperations: z$1.string().default(\"operations/commands|queries\"),\n\tevents: z$1.string().default(\"events\"),\n\tpresentations: z$1.string().default(\"presentations\"),\n\tforms: z$1.string().default(\"forms\")\n});\n/**\n* Full ContractSpec configuration schema (.contractsrc.json).\n*/\nconst ContractsrcSchema = z$1.object({\n\taiProvider: z$1.enum([\n\t\t\"claude\",\n\t\t\"openai\",\n\t\t\"ollama\",\n\t\t\"custom\"\n\t]).default(\"claude\"),\n\taiModel: z$1.string().optional(),\n\tagentMode: z$1.enum([\n\t\t\"simple\",\n\t\t\"cursor\",\n\t\t\"claude-code\",\n\t\t\"openai-codex\"\n\t]).default(\"simple\"),\n\tcustomEndpoint: z$1.url().nullable().optional(),\n\tcustomApiKey: z$1.string().nullable().optional(),\n\toutputDir: z$1.string().default(\"./src\"),\n\tconventions: FolderConventionsSchema,\n\tdefaultOwners: z$1.array(z$1.string()).default([]),\n\tdefaultTags: z$1.array(z$1.string()).default([]),\n\tpackages: z$1.array(z$1.string()).optional(),\n\texcludePackages: z$1.array(z$1.string()).optional(),\n\trecursive: z$1.boolean().optional(),\n\topenapi: OpenApiConfigSchema.optional()\n});\n/**\n* Default configuration values.\n*/\nconst DEFAULT_CONTRACTSRC = {\n\taiProvider: \"claude\",\n\tagentMode: \"simple\",\n\toutputDir: \"./src\",\n\tconventions: {\n\t\tmodels: \"models\",\n\t\toperations: \"interactions/commands|queries\",\n\t\tevents: \"events\",\n\t\tpresentations: \"presentations\",\n\t\tforms: \"forms\"\n\t},\n\tdefaultOwners: [],\n\tdefaultTags: []\n};\n\n//#endregion\nexport { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema };"],"mappings":";;;;;;;;;;;;AAYA,MAAM,4BAA4B,IAAI,OAAO;CAC5C,MAAM,IAAI,QAAQ;CAClB,KAAK,IAAI,KAAK,CAAC,UAAU;CACzB,MAAM,IAAI,QAAQ,CAAC,UAAU;CAC7B,UAAU,IAAI,KAAK;EAClB;EACA;EACA;EACA,CAAC,CAAC,QAAQ,WAAW;CACtB,MAAM,IAAI,MAAM,IAAI,QAAQ,CAAC,CAAC,UAAU;CACxC,SAAS,IAAI,MAAM,IAAI,QAAQ,CAAC,CAAC,UAAU;CAC3C,SAAS,IAAI,MAAM,IAAI,QAAQ,CAAC,CAAC,UAAU;CAC3C,QAAQ,IAAI,QAAQ,CAAC,UAAU;CAC/B,kBAAkB,IAAI,KAAK;EAC1B;EACA;EACA;EACA;EACA,CAAC,CAAC,UAAU;CACb,aAAa,IAAI,KAAK;EACrB;EACA;EACA;EACA,CAAC,CAAC,UAAU;CACb,eAAe,IAAI,MAAM,IAAI,QAAQ,CAAC,CAAC,UAAU;CACjD,CAAC;AACF,MAAM,4BAA4B,IAAI,OAAO;CAC5C,YAAY,IAAI,QAAQ,CAAC,QAAQ,iBAAiB;CAClD,QAAQ,IAAI,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,QAAQ,OAAO;CAClD,OAAO,IAAI,QAAQ,CAAC,UAAU;CAC9B,SAAS,IAAI,QAAQ,CAAC,UAAU;CAChC,aAAa,IAAI,QAAQ,CAAC,UAAU;CACpC,SAAS,IAAI,MAAM,IAAI,OAAO;EAC7B,KAAK,IAAI,QAAQ;EACjB,aAAa,IAAI,QAAQ,CAAC,UAAU;EACpC,CAAC,CAAC,CAAC,UAAU;CACd,CAAC;;;;AAIF,MAAM,sBAAsB,IAAI,OAAO;CACtC,SAAS,IAAI,MAAM,0BAA0B,CAAC,UAAU;CACxD,QAAQ,0BAA0B,UAAU;CAC5C,CAAC;;;;AAIF,MAAM,0BAA0B,IAAI,OAAO;CAC1C,QAAQ,IAAI,QAAQ,CAAC,QAAQ,SAAS;CACtC,YAAY,IAAI,QAAQ,CAAC,QAAQ,8BAA8B;CAC/D,QAAQ,IAAI,QAAQ,CAAC,QAAQ,SAAS;CACtC,eAAe,IAAI,QAAQ,CAAC,QAAQ,gBAAgB;CACpD,OAAO,IAAI,QAAQ,CAAC,QAAQ,QAAQ;CACpC,CAAC;;;;AAIF,MAAM,oBAAoB,IAAI,OAAO;CACpC,YAAY,IAAI,KAAK;EACpB;EACA;EACA;EACA;EACA,CAAC,CAAC,QAAQ,SAAS;CACpB,SAAS,IAAI,QAAQ,CAAC,UAAU;CAChC,WAAW,IAAI,KAAK;EACnB;EACA;EACA;EACA;EACA,CAAC,CAAC,QAAQ,SAAS;CACpB,gBAAgB,IAAI,KAAK,CAAC,UAAU,CAAC,UAAU;CAC/C,cAAc,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU;CAChD,WAAW,IAAI,QAAQ,CAAC,QAAQ,QAAQ;CACxC,aAAa;CACb,eAAe,IAAI,MAAM,IAAI,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;CAClD,aAAa,IAAI,MAAM,IAAI,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;CAChD,UAAU,IAAI,MAAM,IAAI,QAAQ,CAAC,CAAC,UAAU;CAC5C,iBAAiB,IAAI,MAAM,IAAI,QAAQ,CAAC,CAAC,UAAU;CACnD,WAAW,IAAI,SAAS,CAAC,UAAU;CACnC,SAAS,oBAAoB,UAAU;CACvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema } from "./contractsrc-schema.js";
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema849 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts9 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: _lssm_lib_contracts9.
|
|
8
|
+
declare const CreateOrderContract: _lssm_lib_contracts9.OperationSpec<_lssm_lib_schema849.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
items: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema849.FieldType<unknown, unknown>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
description: string;
|
|
17
17
|
};
|
|
18
18
|
shippingAddress: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema849.FieldType<unknown, unknown>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
billingAddress: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema849.FieldType<unknown, unknown>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
};
|
|
26
26
|
buyerNote: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
28
28
|
isOptional: true;
|
|
29
29
|
};
|
|
30
|
-
}>,
|
|
30
|
+
}>, _lssm_lib_schema849.SchemaModel<{
|
|
31
31
|
id: {
|
|
32
|
-
type:
|
|
32
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
33
33
|
isOptional: false;
|
|
34
34
|
};
|
|
35
35
|
orderNumber: {
|
|
36
|
-
type:
|
|
36
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
buyerId: {
|
|
40
|
-
type:
|
|
40
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
41
41
|
isOptional: false;
|
|
42
42
|
};
|
|
43
43
|
storeId: {
|
|
44
|
-
type:
|
|
44
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
45
45
|
isOptional: false;
|
|
46
46
|
};
|
|
47
47
|
status: {
|
|
48
|
-
type:
|
|
48
|
+
type: _lssm_lib_schema849.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_schema849.FieldType<number, number>;
|
|
53
53
|
isOptional: false;
|
|
54
54
|
};
|
|
55
55
|
shippingTotal: {
|
|
56
|
-
type:
|
|
56
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
taxTotal: {
|
|
60
|
-
type:
|
|
60
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
total: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
currency: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
items: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema849.SchemaModel<{
|
|
73
73
|
id: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
productId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
productName: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
unitPrice: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
quantity: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
subtotal: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
}>;
|
|
@@ -99,78 +99,78 @@ declare const CreateOrderContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_s
|
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
createdAt: {
|
|
102
|
-
type:
|
|
102
|
+
type: _lssm_lib_schema849.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_schema849.SchemaModel<{
|
|
110
110
|
id: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
orderNumber: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
buyerId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
storeId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
status: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema849.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_schema849.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
shippingTotal: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
taxTotal: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
total: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
currency: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
items: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema849.SchemaModel<{
|
|
152
152
|
id: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
productId: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
productName: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
unitPrice: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
quantity: {
|
|
169
|
-
type:
|
|
169
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
subtotal: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
}>;
|
|
@@ -178,7 +178,7 @@ declare const CreateOrderContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_s
|
|
|
178
178
|
isOptional: true;
|
|
179
179
|
};
|
|
180
180
|
createdAt: {
|
|
181
|
-
type:
|
|
181
|
+
type: _lssm_lib_schema849.FieldType<Date, string>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
}>;
|
|
@@ -186,92 +186,92 @@ declare const CreateOrderContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_s
|
|
|
186
186
|
/**
|
|
187
187
|
* Update order status.
|
|
188
188
|
*/
|
|
189
|
-
declare const UpdateOrderStatusContract: _lssm_lib_contracts9.
|
|
189
|
+
declare const UpdateOrderStatusContract: _lssm_lib_contracts9.OperationSpec<_lssm_lib_schema849.SchemaModel<{
|
|
190
190
|
orderId: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
status: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema849.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_schema849.FieldType<string, string>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
202
|
trackingUrl: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
note: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
|
-
}>,
|
|
210
|
+
}>, _lssm_lib_schema849.SchemaModel<{
|
|
211
211
|
id: {
|
|
212
|
-
type:
|
|
212
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
orderNumber: {
|
|
216
|
-
type:
|
|
216
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
217
217
|
isOptional: false;
|
|
218
218
|
};
|
|
219
219
|
buyerId: {
|
|
220
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
};
|
|
223
223
|
storeId: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
status: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema849.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_schema849.FieldType<number, number>;
|
|
233
233
|
isOptional: false;
|
|
234
234
|
};
|
|
235
235
|
shippingTotal: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
taxTotal: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
241
241
|
isOptional: false;
|
|
242
242
|
};
|
|
243
243
|
total: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
currency: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
items: {
|
|
252
|
-
type:
|
|
252
|
+
type: _lssm_lib_schema849.SchemaModel<{
|
|
253
253
|
id: {
|
|
254
|
-
type:
|
|
254
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
productId: {
|
|
258
|
-
type:
|
|
258
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
259
259
|
isOptional: false;
|
|
260
260
|
};
|
|
261
261
|
productName: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
263
263
|
isOptional: false;
|
|
264
264
|
};
|
|
265
265
|
unitPrice: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
quantity: {
|
|
270
|
-
type:
|
|
270
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
271
271
|
isOptional: false;
|
|
272
272
|
};
|
|
273
273
|
subtotal: {
|
|
274
|
-
type:
|
|
274
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
}>;
|
|
@@ -279,78 +279,78 @@ declare const UpdateOrderStatusContract: _lssm_lib_contracts9.ContractSpec<_lssm
|
|
|
279
279
|
isOptional: true;
|
|
280
280
|
};
|
|
281
281
|
createdAt: {
|
|
282
|
-
type:
|
|
282
|
+
type: _lssm_lib_schema849.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_schema849.SchemaModel<{
|
|
290
290
|
id: {
|
|
291
|
-
type:
|
|
291
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
292
292
|
isOptional: false;
|
|
293
293
|
};
|
|
294
294
|
orderNumber: {
|
|
295
|
-
type:
|
|
295
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
296
296
|
isOptional: false;
|
|
297
297
|
};
|
|
298
298
|
buyerId: {
|
|
299
|
-
type:
|
|
299
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
300
300
|
isOptional: false;
|
|
301
301
|
};
|
|
302
302
|
storeId: {
|
|
303
|
-
type:
|
|
303
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
304
304
|
isOptional: false;
|
|
305
305
|
};
|
|
306
306
|
status: {
|
|
307
|
-
type:
|
|
307
|
+
type: _lssm_lib_schema849.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_schema849.FieldType<number, number>;
|
|
312
312
|
isOptional: false;
|
|
313
313
|
};
|
|
314
314
|
shippingTotal: {
|
|
315
|
-
type:
|
|
315
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
316
316
|
isOptional: false;
|
|
317
317
|
};
|
|
318
318
|
taxTotal: {
|
|
319
|
-
type:
|
|
319
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
320
320
|
isOptional: false;
|
|
321
321
|
};
|
|
322
322
|
total: {
|
|
323
|
-
type:
|
|
323
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
324
324
|
isOptional: false;
|
|
325
325
|
};
|
|
326
326
|
currency: {
|
|
327
|
-
type:
|
|
327
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
328
328
|
isOptional: false;
|
|
329
329
|
};
|
|
330
330
|
items: {
|
|
331
|
-
type:
|
|
331
|
+
type: _lssm_lib_schema849.SchemaModel<{
|
|
332
332
|
id: {
|
|
333
|
-
type:
|
|
333
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
334
334
|
isOptional: false;
|
|
335
335
|
};
|
|
336
336
|
productId: {
|
|
337
|
-
type:
|
|
337
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
338
338
|
isOptional: false;
|
|
339
339
|
};
|
|
340
340
|
productName: {
|
|
341
|
-
type:
|
|
341
|
+
type: _lssm_lib_schema849.FieldType<string, string>;
|
|
342
342
|
isOptional: false;
|
|
343
343
|
};
|
|
344
344
|
unitPrice: {
|
|
345
|
-
type:
|
|
345
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
346
346
|
isOptional: false;
|
|
347
347
|
};
|
|
348
348
|
quantity: {
|
|
349
|
-
type:
|
|
349
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
350
350
|
isOptional: false;
|
|
351
351
|
};
|
|
352
352
|
subtotal: {
|
|
353
|
-
type:
|
|
353
|
+
type: _lssm_lib_schema849.FieldType<number, number>;
|
|
354
354
|
isOptional: false;
|
|
355
355
|
};
|
|
356
356
|
}>;
|
|
@@ -358,7 +358,7 @@ declare const UpdateOrderStatusContract: _lssm_lib_contracts9.ContractSpec<_lssm
|
|
|
358
358
|
isOptional: true;
|
|
359
359
|
};
|
|
360
360
|
createdAt: {
|
|
361
|
-
type:
|
|
361
|
+
type: _lssm_lib_schema849.FieldType<Date, string>;
|
|
362
362
|
isOptional: false;
|
|
363
363
|
};
|
|
364
364
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.contracts.d.ts","names":[],"sources":["../../src/order/order.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAYa,0CAAmB,
|
|
1
|
+
{"version":3,"file":"order.contracts.d.ts","names":[],"sources":["../../src/order/order.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAYa,0CAAmB,kCAAA;EAAnB,OAAA,EAAA;IAwBX,IAAA,EAAA,mBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;qBAxB8B;IAAA,WAAA,EAAA,MAAA;;;;;;;;;;;;;;;;UAAA,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EA6BnB,CAAA;EAwBX,QAAA,EAAA;;;;;uCAxBoC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA,IAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAzB,gDAAyB,kCAAA;;UAwBpC,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;UAxBoC,mBAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineCommand } from "../libs/contracts/dist/
|
|
1
|
+
import { defineCommand } from "../libs/contracts/dist/operation.js";
|
|
2
2
|
import { CreateOrderInputModel, OrderModel, UpdateOrderStatusInputModel } from "./order.schema.js";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.contracts.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.contracts.js","names":[],"sources":["../../src/order/order.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts/
|
|
1
|
+
{"version":3,"file":"order.contracts.js","names":[],"sources":["../../src/order/order.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts/operation';\nimport {\n OrderModel,\n CreateOrderInputModel,\n UpdateOrderStatusInputModel,\n} from './order.schema';\n\nconst OWNERS = ['@example.marketplace'] as const;\n\n/**\n * Create a new order.\n */\nexport const CreateOrderContract = defineCommand({\n meta: {\n name: 'marketplace.order.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['marketplace', 'order', 'create'],\n description: 'Create a new order.',\n goal: 'Allow buyers to purchase products.',\n context: 'Checkout flow.',\n },\n io: { input: CreateOrderInputModel, output: OrderModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'marketplace.order.created',\n version: 1,\n when: 'Order is created',\n payload: OrderModel,\n },\n ],\n audit: ['marketplace.order.created'],\n },\n});\n\n/**\n * Update order status.\n */\nexport const UpdateOrderStatusContract = defineCommand({\n meta: {\n name: 'marketplace.order.updateStatus',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['marketplace', 'order', 'status'],\n description: 'Update order status.',\n goal: 'Track order fulfillment.',\n context: 'Order management.',\n },\n io: { input: UpdateOrderStatusInputModel, output: OrderModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'marketplace.order.statusUpdated',\n version: 1,\n when: 'Status changes',\n payload: OrderModel,\n },\n ],\n audit: ['marketplace.order.statusUpdated'],\n },\n});\n"],"mappings":";;;;AAOA,MAAM,SAAS,CAAC,uBAAuB;;;;AAKvC,MAAa,sBAAsB,cAAc;CAC/C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAS;GAAS;EACxC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAuB,QAAQ;EAAY;CACxD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,4BAA4B;EACrC;CACF,CAAC;;;;AAKF,MAAa,4BAA4B,cAAc;CACrD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAS;GAAS;EACxC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAA6B,QAAQ;EAAY;CAC9D,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,kCAAkC;EAC3C;CACF,CAAC"}
|