@lssm/example.service-business-os 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/client/client.contracts.d.ts +17 -17
- package/dist/client/client.contracts.js +33 -1
- package/dist/client/client.schema.d.ts +16 -16
- package/dist/client/client.schema.js +78 -1
- package/dist/client/index.js +4 -1
- package/dist/contracts/index.js +17 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/service-business-os.docblock.js +62 -5
- package/dist/entities/index.d.ts +155 -155
- package/dist/entities/index.js +289 -1
- package/dist/events.d.ts +90 -90
- package/dist/events.js +178 -1
- package/dist/example.js +45 -1
- package/dist/handlers/index.js +5 -1
- package/dist/index.js +17 -1
- package/dist/invoice/index.js +4 -1
- package/dist/invoice/invoice.contracts.d.ts +17 -17
- package/dist/invoice/invoice.contracts.js +33 -1
- package/dist/invoice/invoice.schema.d.ts +16 -16
- package/dist/invoice/invoice.schema.js +78 -1
- package/dist/job/index.js +4 -1
- package/dist/job/job.contracts.d.ts +62 -62
- package/dist/job/job.contracts.js +119 -1
- package/dist/job/job.schema.d.ts +20 -20
- package/dist/job/job.schema.js +99 -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 +2 -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/payment/index.js +4 -1
- package/dist/payment/payment.contracts.d.ts +16 -16
- package/dist/payment/payment.contracts.js +33 -1
- package/dist/payment/payment.schema.d.ts +15 -15
- package/dist/payment/payment.schema.js +74 -1
- package/dist/presentations/index.js +17 -1
- package/dist/presentations.js +148 -1
- package/dist/quote/index.js +4 -1
- package/dist/quote/quote.contracts.d.ts +35 -35
- package/dist/quote/quote.contracts.js +57 -1
- package/dist/quote/quote.schema.d.ts +24 -24
- package/dist/quote/quote.schema.js +115 -1
- package/dist/service.feature.js +162 -1
- package/package.json +11 -11
package/dist/events.d.ts
CHANGED
|
@@ -1,333 +1,333 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema376 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts7 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const QuoteSentEvent:
|
|
5
|
+
declare const QuoteSentEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
6
6
|
quoteId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
clientId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
amount: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema376.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
status: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
orgId: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
occurredAt: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
}>>;
|
|
31
|
-
declare const QuoteAcceptedEvent:
|
|
31
|
+
declare const QuoteAcceptedEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
32
32
|
quoteId: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
clientId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
amount: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema376.FieldType<number, number>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
status: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
orgId: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
occurredAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
}>>;
|
|
57
|
-
declare const JobScheduledEvent:
|
|
57
|
+
declare const JobScheduledEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
58
58
|
jobId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
quoteId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
clientId: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
status: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
scheduledAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
76
76
|
isOptional: true;
|
|
77
77
|
};
|
|
78
78
|
orgId: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
occurredAt: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const JobCompletedEvent:
|
|
87
|
+
declare const JobCompletedEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
88
88
|
jobId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
quoteId: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
clientId: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
status: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
scheduledAt: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
orgId: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
occurredAt: {
|
|
113
|
-
type:
|
|
113
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
}>>;
|
|
117
|
-
declare const InvoiceIssuedEvent:
|
|
117
|
+
declare const InvoiceIssuedEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
118
118
|
invoiceId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
jobId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
amount: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema376.FieldType<number, number>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
status: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
orgId: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
occurredAt: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
}>>;
|
|
143
|
-
declare const PaymentReceivedEvent:
|
|
143
|
+
declare const PaymentReceivedEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
144
144
|
paymentId: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
146
146
|
isOptional: false;
|
|
147
147
|
};
|
|
148
148
|
invoiceId: {
|
|
149
|
-
type:
|
|
149
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
150
150
|
isOptional: false;
|
|
151
151
|
};
|
|
152
152
|
amount: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema376.FieldType<number, number>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
method: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
orgId: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
receivedAt: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
}>>;
|
|
169
169
|
declare const ServiceBusinessEvents: {
|
|
170
|
-
QuoteSentEvent:
|
|
170
|
+
QuoteSentEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
171
171
|
quoteId: {
|
|
172
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
clientId: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
amount: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema376.FieldType<number, number>;
|
|
181
181
|
isOptional: false;
|
|
182
182
|
};
|
|
183
183
|
status: {
|
|
184
|
-
type:
|
|
184
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
orgId: {
|
|
188
|
-
type:
|
|
188
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
189
189
|
isOptional: false;
|
|
190
190
|
};
|
|
191
191
|
occurredAt: {
|
|
192
|
-
type:
|
|
192
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
193
193
|
isOptional: false;
|
|
194
194
|
};
|
|
195
195
|
}>>;
|
|
196
|
-
QuoteAcceptedEvent:
|
|
196
|
+
QuoteAcceptedEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
197
197
|
quoteId: {
|
|
198
|
-
type:
|
|
198
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
199
199
|
isOptional: false;
|
|
200
200
|
};
|
|
201
201
|
clientId: {
|
|
202
|
-
type:
|
|
202
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
203
203
|
isOptional: false;
|
|
204
204
|
};
|
|
205
205
|
amount: {
|
|
206
|
-
type:
|
|
206
|
+
type: _lssm_lib_schema376.FieldType<number, number>;
|
|
207
207
|
isOptional: false;
|
|
208
208
|
};
|
|
209
209
|
status: {
|
|
210
|
-
type:
|
|
210
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
213
|
orgId: {
|
|
214
|
-
type:
|
|
214
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
occurredAt: {
|
|
218
|
-
type:
|
|
218
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
219
219
|
isOptional: false;
|
|
220
220
|
};
|
|
221
221
|
}>>;
|
|
222
|
-
JobScheduledEvent:
|
|
222
|
+
JobScheduledEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
223
223
|
jobId: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
quoteId: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
229
229
|
isOptional: true;
|
|
230
230
|
};
|
|
231
231
|
clientId: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
233
233
|
isOptional: true;
|
|
234
234
|
};
|
|
235
235
|
status: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
scheduledAt: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
241
241
|
isOptional: true;
|
|
242
242
|
};
|
|
243
243
|
orgId: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
occurredAt: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
}>>;
|
|
252
|
-
JobCompletedEvent:
|
|
252
|
+
JobCompletedEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
253
253
|
jobId: {
|
|
254
|
-
type:
|
|
254
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
quoteId: {
|
|
258
|
-
type:
|
|
258
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
259
259
|
isOptional: true;
|
|
260
260
|
};
|
|
261
261
|
clientId: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
263
263
|
isOptional: true;
|
|
264
264
|
};
|
|
265
265
|
status: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
scheduledAt: {
|
|
270
|
-
type:
|
|
270
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
271
271
|
isOptional: true;
|
|
272
272
|
};
|
|
273
273
|
orgId: {
|
|
274
|
-
type:
|
|
274
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
occurredAt: {
|
|
278
|
-
type:
|
|
278
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
279
279
|
isOptional: false;
|
|
280
280
|
};
|
|
281
281
|
}>>;
|
|
282
|
-
InvoiceIssuedEvent:
|
|
282
|
+
InvoiceIssuedEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
283
283
|
invoiceId: {
|
|
284
|
-
type:
|
|
284
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
285
285
|
isOptional: false;
|
|
286
286
|
};
|
|
287
287
|
jobId: {
|
|
288
|
-
type:
|
|
288
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
289
289
|
isOptional: false;
|
|
290
290
|
};
|
|
291
291
|
amount: {
|
|
292
|
-
type:
|
|
292
|
+
type: _lssm_lib_schema376.FieldType<number, number>;
|
|
293
293
|
isOptional: false;
|
|
294
294
|
};
|
|
295
295
|
status: {
|
|
296
|
-
type:
|
|
296
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
297
297
|
isOptional: false;
|
|
298
298
|
};
|
|
299
299
|
orgId: {
|
|
300
|
-
type:
|
|
300
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
301
301
|
isOptional: false;
|
|
302
302
|
};
|
|
303
303
|
occurredAt: {
|
|
304
|
-
type:
|
|
304
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
305
305
|
isOptional: false;
|
|
306
306
|
};
|
|
307
307
|
}>>;
|
|
308
|
-
PaymentReceivedEvent:
|
|
308
|
+
PaymentReceivedEvent: _lssm_lib_contracts7.EventSpec<_lssm_lib_schema376.SchemaModel<{
|
|
309
309
|
paymentId: {
|
|
310
|
-
type:
|
|
310
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
311
311
|
isOptional: false;
|
|
312
312
|
};
|
|
313
313
|
invoiceId: {
|
|
314
|
-
type:
|
|
314
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
315
315
|
isOptional: false;
|
|
316
316
|
};
|
|
317
317
|
amount: {
|
|
318
|
-
type:
|
|
318
|
+
type: _lssm_lib_schema376.FieldType<number, number>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
321
|
method: {
|
|
322
|
-
type:
|
|
322
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
323
323
|
isOptional: false;
|
|
324
324
|
};
|
|
325
325
|
orgId: {
|
|
326
|
-
type:
|
|
326
|
+
type: _lssm_lib_schema376.FieldType<string, string>;
|
|
327
327
|
isOptional: false;
|
|
328
328
|
};
|
|
329
329
|
receivedAt: {
|
|
330
|
-
type:
|
|
330
|
+
type: _lssm_lib_schema376.FieldType<Date, string>;
|
|
331
331
|
isOptional: false;
|
|
332
332
|
};
|
|
333
333
|
}>>;
|
package/dist/events.js
CHANGED
|
@@ -1 +1,178 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { ScalarTypeEnum } from "./libs/schema/dist/ScalarTypeEnum.js";
|
|
2
|
+
import { defineSchemaModel } from "./libs/schema/dist/SchemaModel.js";
|
|
3
|
+
import "./libs/schema/dist/index.js";
|
|
4
|
+
import { defineEvent } from "./libs/contracts/dist/events.js";
|
|
5
|
+
import "./libs/contracts/dist/index.js";
|
|
6
|
+
|
|
7
|
+
//#region src/events.ts
|
|
8
|
+
const QuoteEventPayload = defineSchemaModel({
|
|
9
|
+
name: "QuoteEventPayload",
|
|
10
|
+
description: "Event payload for quote lifecycle",
|
|
11
|
+
fields: {
|
|
12
|
+
quoteId: {
|
|
13
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
14
|
+
isOptional: false
|
|
15
|
+
},
|
|
16
|
+
clientId: {
|
|
17
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
18
|
+
isOptional: false
|
|
19
|
+
},
|
|
20
|
+
amount: {
|
|
21
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
22
|
+
isOptional: false
|
|
23
|
+
},
|
|
24
|
+
status: {
|
|
25
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
26
|
+
isOptional: false
|
|
27
|
+
},
|
|
28
|
+
orgId: {
|
|
29
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
30
|
+
isOptional: false
|
|
31
|
+
},
|
|
32
|
+
occurredAt: {
|
|
33
|
+
type: ScalarTypeEnum.DateTime(),
|
|
34
|
+
isOptional: false
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const JobEventPayload = defineSchemaModel({
|
|
39
|
+
name: "JobEventPayload",
|
|
40
|
+
description: "Event payload for job lifecycle",
|
|
41
|
+
fields: {
|
|
42
|
+
jobId: {
|
|
43
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
44
|
+
isOptional: false
|
|
45
|
+
},
|
|
46
|
+
quoteId: {
|
|
47
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
48
|
+
isOptional: true
|
|
49
|
+
},
|
|
50
|
+
clientId: {
|
|
51
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
52
|
+
isOptional: true
|
|
53
|
+
},
|
|
54
|
+
status: {
|
|
55
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
56
|
+
isOptional: false
|
|
57
|
+
},
|
|
58
|
+
scheduledAt: {
|
|
59
|
+
type: ScalarTypeEnum.DateTime(),
|
|
60
|
+
isOptional: true
|
|
61
|
+
},
|
|
62
|
+
orgId: {
|
|
63
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
64
|
+
isOptional: false
|
|
65
|
+
},
|
|
66
|
+
occurredAt: {
|
|
67
|
+
type: ScalarTypeEnum.DateTime(),
|
|
68
|
+
isOptional: false
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
const InvoiceEventPayload = defineSchemaModel({
|
|
73
|
+
name: "InvoiceEventPayload",
|
|
74
|
+
description: "Event payload for invoices",
|
|
75
|
+
fields: {
|
|
76
|
+
invoiceId: {
|
|
77
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
78
|
+
isOptional: false
|
|
79
|
+
},
|
|
80
|
+
jobId: {
|
|
81
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
82
|
+
isOptional: false
|
|
83
|
+
},
|
|
84
|
+
amount: {
|
|
85
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
86
|
+
isOptional: false
|
|
87
|
+
},
|
|
88
|
+
status: {
|
|
89
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
90
|
+
isOptional: false
|
|
91
|
+
},
|
|
92
|
+
orgId: {
|
|
93
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
94
|
+
isOptional: false
|
|
95
|
+
},
|
|
96
|
+
occurredAt: {
|
|
97
|
+
type: ScalarTypeEnum.DateTime(),
|
|
98
|
+
isOptional: false
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
const PaymentEventPayload = defineSchemaModel({
|
|
103
|
+
name: "PaymentEventPayload",
|
|
104
|
+
description: "Event payload for payments",
|
|
105
|
+
fields: {
|
|
106
|
+
paymentId: {
|
|
107
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
108
|
+
isOptional: false
|
|
109
|
+
},
|
|
110
|
+
invoiceId: {
|
|
111
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
112
|
+
isOptional: false
|
|
113
|
+
},
|
|
114
|
+
amount: {
|
|
115
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
116
|
+
isOptional: false
|
|
117
|
+
},
|
|
118
|
+
method: {
|
|
119
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
120
|
+
isOptional: false
|
|
121
|
+
},
|
|
122
|
+
orgId: {
|
|
123
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
124
|
+
isOptional: false
|
|
125
|
+
},
|
|
126
|
+
receivedAt: {
|
|
127
|
+
type: ScalarTypeEnum.DateTime(),
|
|
128
|
+
isOptional: false
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
const QuoteSentEvent = defineEvent({
|
|
133
|
+
name: "service.quote.sent",
|
|
134
|
+
version: 1,
|
|
135
|
+
description: "A quote was sent to the client.",
|
|
136
|
+
payload: QuoteEventPayload
|
|
137
|
+
});
|
|
138
|
+
const QuoteAcceptedEvent = defineEvent({
|
|
139
|
+
name: "service.quote.accepted",
|
|
140
|
+
version: 1,
|
|
141
|
+
description: "A quote was accepted.",
|
|
142
|
+
payload: QuoteEventPayload
|
|
143
|
+
});
|
|
144
|
+
const JobScheduledEvent = defineEvent({
|
|
145
|
+
name: "service.job.scheduled",
|
|
146
|
+
version: 1,
|
|
147
|
+
description: "A job was scheduled.",
|
|
148
|
+
payload: JobEventPayload
|
|
149
|
+
});
|
|
150
|
+
const JobCompletedEvent = defineEvent({
|
|
151
|
+
name: "service.job.completed",
|
|
152
|
+
version: 1,
|
|
153
|
+
description: "A job was completed.",
|
|
154
|
+
payload: JobEventPayload
|
|
155
|
+
});
|
|
156
|
+
const InvoiceIssuedEvent = defineEvent({
|
|
157
|
+
name: "service.invoice.issued",
|
|
158
|
+
version: 1,
|
|
159
|
+
description: "An invoice was issued.",
|
|
160
|
+
payload: InvoiceEventPayload
|
|
161
|
+
});
|
|
162
|
+
const PaymentReceivedEvent = defineEvent({
|
|
163
|
+
name: "service.payment.received",
|
|
164
|
+
version: 1,
|
|
165
|
+
description: "A payment was recorded.",
|
|
166
|
+
payload: PaymentEventPayload
|
|
167
|
+
});
|
|
168
|
+
const ServiceBusinessEvents = {
|
|
169
|
+
QuoteSentEvent,
|
|
170
|
+
QuoteAcceptedEvent,
|
|
171
|
+
JobScheduledEvent,
|
|
172
|
+
JobCompletedEvent,
|
|
173
|
+
InvoiceIssuedEvent,
|
|
174
|
+
PaymentReceivedEvent
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
//#endregion
|
|
178
|
+
export { InvoiceIssuedEvent, JobCompletedEvent, JobScheduledEvent, PaymentReceivedEvent, QuoteAcceptedEvent, QuoteSentEvent, ServiceBusinessEvents };
|
package/dist/example.js
CHANGED
|
@@ -1 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/example.ts
|
|
2
|
+
const example = {
|
|
3
|
+
id: "service-business-os",
|
|
4
|
+
title: "Service Business OS",
|
|
5
|
+
summary: "Service business operating system: jobs, clients, scheduling, invoicing, and ops dashboards.",
|
|
6
|
+
tags: [
|
|
7
|
+
"service-business",
|
|
8
|
+
"jobs",
|
|
9
|
+
"scheduling",
|
|
10
|
+
"invoicing"
|
|
11
|
+
],
|
|
12
|
+
kind: "template",
|
|
13
|
+
visibility: "public",
|
|
14
|
+
docs: { rootDocId: "docs.examples.service-business-os" },
|
|
15
|
+
entrypoints: {
|
|
16
|
+
packageName: "@lssm/example.service-business-os",
|
|
17
|
+
feature: "./feature",
|
|
18
|
+
contracts: "./contracts",
|
|
19
|
+
presentations: "./presentations",
|
|
20
|
+
handlers: "./handlers",
|
|
21
|
+
docs: "./docs"
|
|
22
|
+
},
|
|
23
|
+
surfaces: {
|
|
24
|
+
templates: true,
|
|
25
|
+
sandbox: {
|
|
26
|
+
enabled: true,
|
|
27
|
+
modes: [
|
|
28
|
+
"playground",
|
|
29
|
+
"specs",
|
|
30
|
+
"builder",
|
|
31
|
+
"markdown",
|
|
32
|
+
"evolution"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
studio: {
|
|
36
|
+
enabled: true,
|
|
37
|
+
installable: true
|
|
38
|
+
},
|
|
39
|
+
mcp: { enabled: true }
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
var example_default = example;
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { example_default as default };
|
package/dist/handlers/index.js
CHANGED