@lssm/example.service-business-os 0.0.0-canary-20251217060804 → 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/client/client.contracts.d.ts +17 -17
- package/dist/client/client.contracts.js +1 -1
- package/dist/client/client.schema.d.ts +16 -16
- package/dist/client/client.schema.js +1 -1
- package/dist/contracts/index.d.ts +0 -5
- package/dist/docs/service-business-os.docblock.js +1 -1
- package/dist/entities/index.d.ts +155 -155
- package/dist/entities/index.js +1 -1
- package/dist/events.d.ts +90 -90
- package/dist/events.js +1 -1
- package/dist/handlers/index.d.ts +1 -5
- package/dist/index.d.ts +0 -5
- package/dist/invoice/invoice.contracts.d.ts +17 -17
- package/dist/invoice/invoice.contracts.js +1 -1
- package/dist/invoice/invoice.schema.d.ts +16 -16
- package/dist/invoice/invoice.schema.js +1 -1
- package/dist/job/job.contracts.d.ts +62 -62
- package/dist/job/job.contracts.js +1 -1
- package/dist/job/job.schema.d.ts +20 -20
- package/dist/job/job.schema.js +1 -1
- 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/payment/payment.contracts.d.ts +16 -16
- package/dist/payment/payment.contracts.js +1 -1
- package/dist/payment/payment.schema.d.ts +15 -15
- package/dist/payment/payment.schema.js +1 -1
- package/dist/quote/quote.contracts.d.ts +35 -35
- package/dist/quote/quote.contracts.js +1 -1
- package/dist/quote/quote.schema.d.ts +24 -24
- package/dist/quote/quote.schema.js +1 -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_schema156 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts5 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const QuoteSentEvent:
|
|
5
|
+
declare const QuoteSentEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
6
6
|
quoteId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
clientId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
amount: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
status: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
orgId: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
occurredAt: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
}>>;
|
|
31
|
-
declare const QuoteAcceptedEvent:
|
|
31
|
+
declare const QuoteAcceptedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
32
32
|
quoteId: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
clientId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
amount: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
status: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
orgId: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
occurredAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
}>>;
|
|
57
|
-
declare const JobScheduledEvent:
|
|
57
|
+
declare const JobScheduledEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
58
58
|
jobId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
quoteId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
clientId: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
status: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
scheduledAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
76
76
|
isOptional: true;
|
|
77
77
|
};
|
|
78
78
|
orgId: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
occurredAt: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const JobCompletedEvent:
|
|
87
|
+
declare const JobCompletedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
88
88
|
jobId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
quoteId: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
clientId: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
status: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
scheduledAt: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
orgId: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
occurredAt: {
|
|
113
|
-
type:
|
|
113
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
}>>;
|
|
117
|
-
declare const InvoiceIssuedEvent:
|
|
117
|
+
declare const InvoiceIssuedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
118
118
|
invoiceId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
jobId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
amount: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
status: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
orgId: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
occurredAt: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
}>>;
|
|
143
|
-
declare const PaymentReceivedEvent:
|
|
143
|
+
declare const PaymentReceivedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
144
144
|
paymentId: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
146
146
|
isOptional: false;
|
|
147
147
|
};
|
|
148
148
|
invoiceId: {
|
|
149
|
-
type:
|
|
149
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
150
150
|
isOptional: false;
|
|
151
151
|
};
|
|
152
152
|
amount: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
method: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
orgId: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
receivedAt: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
}>>;
|
|
169
169
|
declare const ServiceBusinessEvents: {
|
|
170
|
-
QuoteSentEvent:
|
|
170
|
+
QuoteSentEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
171
171
|
quoteId: {
|
|
172
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
clientId: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
amount: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
181
181
|
isOptional: false;
|
|
182
182
|
};
|
|
183
183
|
status: {
|
|
184
|
-
type:
|
|
184
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
orgId: {
|
|
188
|
-
type:
|
|
188
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
189
189
|
isOptional: false;
|
|
190
190
|
};
|
|
191
191
|
occurredAt: {
|
|
192
|
-
type:
|
|
192
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
193
193
|
isOptional: false;
|
|
194
194
|
};
|
|
195
195
|
}>>;
|
|
196
|
-
QuoteAcceptedEvent:
|
|
196
|
+
QuoteAcceptedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
197
197
|
quoteId: {
|
|
198
|
-
type:
|
|
198
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
199
199
|
isOptional: false;
|
|
200
200
|
};
|
|
201
201
|
clientId: {
|
|
202
|
-
type:
|
|
202
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
203
203
|
isOptional: false;
|
|
204
204
|
};
|
|
205
205
|
amount: {
|
|
206
|
-
type:
|
|
206
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
207
207
|
isOptional: false;
|
|
208
208
|
};
|
|
209
209
|
status: {
|
|
210
|
-
type:
|
|
210
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
213
|
orgId: {
|
|
214
|
-
type:
|
|
214
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
occurredAt: {
|
|
218
|
-
type:
|
|
218
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
219
219
|
isOptional: false;
|
|
220
220
|
};
|
|
221
221
|
}>>;
|
|
222
|
-
JobScheduledEvent:
|
|
222
|
+
JobScheduledEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
223
223
|
jobId: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
quoteId: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
229
229
|
isOptional: true;
|
|
230
230
|
};
|
|
231
231
|
clientId: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
233
233
|
isOptional: true;
|
|
234
234
|
};
|
|
235
235
|
status: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
scheduledAt: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
241
241
|
isOptional: true;
|
|
242
242
|
};
|
|
243
243
|
orgId: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
occurredAt: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
}>>;
|
|
252
|
-
JobCompletedEvent:
|
|
252
|
+
JobCompletedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
253
253
|
jobId: {
|
|
254
|
-
type:
|
|
254
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
quoteId: {
|
|
258
|
-
type:
|
|
258
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
259
259
|
isOptional: true;
|
|
260
260
|
};
|
|
261
261
|
clientId: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
263
263
|
isOptional: true;
|
|
264
264
|
};
|
|
265
265
|
status: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
scheduledAt: {
|
|
270
|
-
type:
|
|
270
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
271
271
|
isOptional: true;
|
|
272
272
|
};
|
|
273
273
|
orgId: {
|
|
274
|
-
type:
|
|
274
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
occurredAt: {
|
|
278
|
-
type:
|
|
278
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
279
279
|
isOptional: false;
|
|
280
280
|
};
|
|
281
281
|
}>>;
|
|
282
|
-
InvoiceIssuedEvent:
|
|
282
|
+
InvoiceIssuedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
283
283
|
invoiceId: {
|
|
284
|
-
type:
|
|
284
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
285
285
|
isOptional: false;
|
|
286
286
|
};
|
|
287
287
|
jobId: {
|
|
288
|
-
type:
|
|
288
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
289
289
|
isOptional: false;
|
|
290
290
|
};
|
|
291
291
|
amount: {
|
|
292
|
-
type:
|
|
292
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
293
293
|
isOptional: false;
|
|
294
294
|
};
|
|
295
295
|
status: {
|
|
296
|
-
type:
|
|
296
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
297
297
|
isOptional: false;
|
|
298
298
|
};
|
|
299
299
|
orgId: {
|
|
300
|
-
type:
|
|
300
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
301
301
|
isOptional: false;
|
|
302
302
|
};
|
|
303
303
|
occurredAt: {
|
|
304
|
-
type:
|
|
304
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
305
305
|
isOptional: false;
|
|
306
306
|
};
|
|
307
307
|
}>>;
|
|
308
|
-
PaymentReceivedEvent:
|
|
308
|
+
PaymentReceivedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
309
309
|
paymentId: {
|
|
310
|
-
type:
|
|
310
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
311
311
|
isOptional: false;
|
|
312
312
|
};
|
|
313
313
|
invoiceId: {
|
|
314
|
-
type:
|
|
314
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
315
315
|
isOptional: false;
|
|
316
316
|
};
|
|
317
317
|
amount: {
|
|
318
|
-
type:
|
|
318
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
321
|
method: {
|
|
322
|
-
type:
|
|
322
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
323
323
|
isOptional: false;
|
|
324
324
|
};
|
|
325
325
|
orgId: {
|
|
326
|
-
type:
|
|
326
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
327
327
|
isOptional: false;
|
|
328
328
|
};
|
|
329
329
|
receivedAt: {
|
|
330
|
-
type:
|
|
330
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
331
331
|
isOptional: false;
|
|
332
332
|
};
|
|
333
333
|
}>>;
|
package/dist/events.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{l as e}from"./libs/schema/dist/ScalarTypeEnum.js";import{n as t}from"./libs/schema/dist/SchemaModel.js";import"./libs/schema/dist/index.js";import{e as n}from"./libs/contracts/dist/events.js";import"./libs/contracts/dist/index.js";const r=t({name:`QuoteEventPayload`,description:`Event payload for quote lifecycle`,fields:{quoteId:{type:e.String_unsecure(),isOptional:!1},clientId:{type:e.String_unsecure(),isOptional:!1},amount:{type:e.Float_unsecure(),isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},orgId:{type:e.String_unsecure(),isOptional:!1},occurredAt:{type:e.DateTime(),isOptional:!1}}}),i=t({name:`JobEventPayload`,description:`Event payload for job lifecycle`,fields:{jobId:{type:e.String_unsecure(),isOptional:!1},quoteId:{type:e.String_unsecure(),isOptional:!0},clientId:{type:e.String_unsecure(),isOptional:!0},status:{type:e.String_unsecure(),isOptional:!1},scheduledAt:{type:e.DateTime(),isOptional:!0},orgId:{type:e.String_unsecure(),isOptional:!1},occurredAt:{type:e.DateTime(),isOptional:!1}}}),a=t({name:`InvoiceEventPayload`,description:`Event payload for invoices`,fields:{invoiceId:{type:e.String_unsecure(),isOptional:!1},jobId:{type:e.String_unsecure(),isOptional:!1},amount:{type:e.Float_unsecure(),isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},orgId:{type:e.String_unsecure(),isOptional:!1},occurredAt:{type:e.DateTime(),isOptional:!1}}}),o=t({name:`PaymentEventPayload`,description:`Event payload for payments`,fields:{paymentId:{type:e.String_unsecure(),isOptional:!1},invoiceId:{type:e.String_unsecure(),isOptional:!1},amount:{type:e.Float_unsecure(),isOptional:!1},method:{type:e.String_unsecure(),isOptional:!1},orgId:{type:e.String_unsecure(),isOptional:!1},receivedAt:{type:e.DateTime(),isOptional:!1}}}),s=n({name:`service.quote.sent`,version:1,description:`A quote was sent to the client.`,payload:r}),c=n({name:`service.quote.accepted`,version:1,description:`A quote was accepted.`,payload:r}),l=n({name:`service.job.scheduled`,version:1,description:`A job was scheduled.`,payload:i}),u=n({name:`service.job.completed`,version:1,description:`A job was completed.`,payload:i}),d=n({name:`service.invoice.issued`,version:1,description:`An invoice was issued.`,payload:a}),f=n({name:`service.payment.received`,version:1,description:`A payment was recorded.`,payload:o}),p={QuoteSentEvent:s,QuoteAcceptedEvent:c,JobScheduledEvent:l,JobCompletedEvent:u,InvoiceIssuedEvent:d,PaymentReceivedEvent:f};export{d as InvoiceIssuedEvent,u as JobCompletedEvent,l as JobScheduledEvent,f as PaymentReceivedEvent,c as QuoteAcceptedEvent,s as QuoteSentEvent,p as ServiceBusinessEvents};
|
package/dist/handlers/index.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { CreateClientContract } from "../client/client.contracts.js";
|
|
2
|
-
import "../client/index.js";
|
|
3
2
|
import { AcceptQuoteContract, CreateQuoteContract } from "../quote/quote.contracts.js";
|
|
4
|
-
import "../quote/index.js";
|
|
5
3
|
import { CompleteJobContract, ScheduleJobContract } from "../job/job.contracts.js";
|
|
6
|
-
import "../job/index.js";
|
|
7
4
|
import { IssueInvoiceContract } from "../invoice/invoice.contracts.js";
|
|
8
|
-
import "../invoice/index.js";
|
|
9
5
|
import { RecordPaymentContract } from "../payment/payment.contracts.js";
|
|
10
|
-
import "../payment/index.js";
|
|
11
6
|
|
|
12
7
|
//#region src/handlers/index.d.ts
|
|
8
|
+
|
|
13
9
|
declare function registerServiceBusinessHandlers(): void;
|
|
14
10
|
type ServiceBusinessHandlers = typeof AcceptQuoteContract | typeof CreateClientContract | typeof CreateQuoteContract | typeof ScheduleJobContract | typeof CompleteJobContract | typeof IssueInvoiceContract | typeof RecordPaymentContract;
|
|
15
11
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { CreateClientContract } from "./client/client.contracts.js";
|
|
2
2
|
import { ClientModel, CreateClientInputModel } from "./client/client.schema.js";
|
|
3
|
-
import "./client/index.js";
|
|
4
3
|
import { AcceptQuoteInputModel, CreateQuoteInputModel, QuoteModel } from "./quote/quote.schema.js";
|
|
5
4
|
import { AcceptQuoteContract, CreateQuoteContract } from "./quote/quote.contracts.js";
|
|
6
|
-
import "./quote/index.js";
|
|
7
5
|
import { CompleteJobInputModel, JobModel, ScheduleJobInputModel } from "./job/job.schema.js";
|
|
8
6
|
import { CompleteJobContract, ListJobsInputModel, ListJobsOperation, ListJobsOutputModel, ScheduleJobContract } from "./job/job.contracts.js";
|
|
9
|
-
import "./job/index.js";
|
|
10
7
|
import { InvoiceModel, IssueInvoiceInputModel } from "./invoice/invoice.schema.js";
|
|
11
8
|
import { IssueInvoiceContract } from "./invoice/invoice.contracts.js";
|
|
12
|
-
import "./invoice/index.js";
|
|
13
9
|
import { PaymentModel, RecordPaymentInputModel } from "./payment/payment.schema.js";
|
|
14
10
|
import { RecordPaymentContract } from "./payment/payment.contracts.js";
|
|
15
|
-
import "./payment/index.js";
|
|
16
11
|
export { AcceptQuoteContract, AcceptQuoteInputModel, ClientModel, CompleteJobContract, CompleteJobInputModel, CreateClientContract, CreateClientInputModel, CreateQuoteContract, CreateQuoteInputModel, InvoiceModel, IssueInvoiceContract, IssueInvoiceInputModel, JobModel, ListJobsInputModel, ListJobsOperation, ListJobsOutputModel, PaymentModel, QuoteModel, RecordPaymentContract, RecordPaymentInputModel, ScheduleJobContract, ScheduleJobInputModel };
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema412 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts17 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/invoice/invoice.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Issue an invoice.
|
|
7
7
|
*/
|
|
8
|
-
declare const IssueInvoiceContract:
|
|
8
|
+
declare const IssueInvoiceContract: _lssm_lib_contracts17.ContractSpec<_lssm_lib_schema412.SchemaModel<{
|
|
9
9
|
jobId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema412.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
dueDate: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema412.FieldType<Date, string>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
notes: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema412.FieldType<string, string>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
};
|
|
21
21
|
lineItems: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema412.FieldType<unknown, unknown>;
|
|
23
23
|
isOptional: true;
|
|
24
24
|
};
|
|
25
|
-
}>,
|
|
25
|
+
}>, _lssm_lib_schema412.SchemaModel<{
|
|
26
26
|
id: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema412.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
jobId: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema412.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
invoiceNumber: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema412.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
amount: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema412.FieldType<number, number>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
currency: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema412.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
status: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema412.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
dueDate: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema412.FieldType<Date, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
issuedAt: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema412.FieldType<Date, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
paidAt: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema412.FieldType<Date, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
}>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as e}from"../libs/contracts/dist/spec.js";import"../libs/contracts/dist/index.js";import{InvoiceModel as t,IssueInvoiceInputModel as n}from"./invoice.schema.js";const r=e({meta:{name:`service.invoice.issue`,version:1,stability:`stable`,owners:[...[`@examples.service-business-os`]],tags:[`service-business-os`,`invoice`,`issue`],description:`Issue an invoice for a job.`,goal:`Bill clients.`,context:`Billing.`},io:{input:n,output:t},policy:{auth:`user`}});export{r as IssueInvoiceContract};
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema89 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/invoice/invoice.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Invoice issued for a job.
|
|
6
6
|
*/
|
|
7
|
-
declare const InvoiceModel:
|
|
7
|
+
declare const InvoiceModel: _lssm_lib_schema89.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
jobId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
invoiceNumber: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
amount: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
currency: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
status: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
dueDate: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
34
34
|
isOptional: true;
|
|
35
35
|
};
|
|
36
36
|
issuedAt: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
38
38
|
isOptional: true;
|
|
39
39
|
};
|
|
40
40
|
paidAt: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* Input for issuing an invoice.
|
|
47
47
|
*/
|
|
48
|
-
declare const IssueInvoiceInputModel:
|
|
48
|
+
declare const IssueInvoiceInputModel: _lssm_lib_schema89.SchemaModel<{
|
|
49
49
|
jobId: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
dueDate: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
55
55
|
isOptional: true;
|
|
56
56
|
};
|
|
57
57
|
notes: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
lineItems: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema89.FieldType<unknown, unknown>;
|
|
63
63
|
isOptional: true;
|
|
64
64
|
};
|
|
65
65
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{l as e}from"../libs/schema/dist/ScalarTypeEnum.js";import{n as t}from"../libs/schema/dist/SchemaModel.js";import"../libs/schema/dist/index.js";const n=t({name:`Invoice`,description:`Invoice issued for a job`,fields:{id:{type:e.String_unsecure(),isOptional:!1},jobId:{type:e.String_unsecure(),isOptional:!1},invoiceNumber:{type:e.String_unsecure(),isOptional:!1},amount:{type:e.Float_unsecure(),isOptional:!1},currency:{type:e.String_unsecure(),isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},dueDate:{type:e.DateTime(),isOptional:!0},issuedAt:{type:e.DateTime(),isOptional:!0},paidAt:{type:e.DateTime(),isOptional:!0}}}),r=t({name:`IssueInvoiceInput`,description:`Input for issuing an invoice`,fields:{jobId:{type:e.String_unsecure(),isOptional:!1},dueDate:{type:e.DateTime(),isOptional:!0},notes:{type:e.String_unsecure(),isOptional:!0},lineItems:{type:e.JSON(),isOptional:!0}}});export{n as InvoiceModel,r as IssueInvoiceInputModel};
|