@lssm/example.service-business-os 0.0.0-canary-20251217083314 → 0.0.0-canary-20251219202229
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/LICENSE +21 -0
- package/dist/client/client.contracts.d.ts +19 -18
- package/dist/client/client.contracts.d.ts.map +1 -0
- package/dist/client/client.contracts.js +2 -1
- package/dist/client/client.contracts.js.map +1 -0
- package/dist/client/client.schema.d.ts +18 -17
- package/dist/client/client.schema.d.ts.map +1 -0
- package/dist/client/client.schema.js +18 -19
- package/dist/client/client.schema.js.map +1 -0
- package/dist/docs/service-business-os.docblock.js +2 -1
- package/dist/docs/service-business-os.docblock.js.map +1 -0
- package/dist/entities/index.d.ts +157 -156
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +98 -98
- package/dist/entities/index.js.map +1 -0
- package/dist/events.d.ts +91 -90
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +32 -33
- package/dist/events.js.map +1 -0
- package/dist/example.d.ts +2 -1
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +2 -1
- package/dist/example.js.map +1 -0
- package/dist/handlers/index.d.ts +2 -1
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +2 -1
- package/dist/handlers/index.js.map +1 -0
- package/dist/invoice/invoice.contracts.d.ts +19 -18
- package/dist/invoice/invoice.contracts.d.ts.map +1 -0
- package/dist/invoice/invoice.contracts.js +2 -1
- package/dist/invoice/invoice.contracts.js.map +1 -0
- package/dist/invoice/invoice.schema.d.ts +18 -17
- package/dist/invoice/invoice.schema.d.ts.map +1 -0
- package/dist/invoice/invoice.schema.js +18 -19
- package/dist/invoice/invoice.schema.js.map +1 -0
- package/dist/job/job.contracts.d.ts +64 -63
- package/dist/job/job.contracts.d.ts.map +1 -0
- package/dist/job/job.contracts.js +10 -11
- package/dist/job/job.contracts.js.map +1 -0
- package/dist/job/job.schema.d.ts +22 -21
- package/dist/job/job.schema.d.ts.map +1 -0
- package/dist/job/job.schema.js +22 -23
- package/dist/job/job.schema.js.map +1 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/index.js +2 -6
- package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +2 -1
- package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +2 -1
- package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/libs/contracts/dist/events.js +2 -1
- package/dist/libs/contracts/dist/events.js.map +1 -0
- package/dist/libs/contracts/dist/index.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +2 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +22 -23
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/libs/contracts/dist/ownership.js +4 -2
- package/dist/libs/contracts/dist/ownership.js.map +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +2 -1
- package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +2 -1
- package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +3873 -6
- package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/spec.js +2 -1
- package/dist/libs/contracts/dist/spec.js.map +1 -0
- package/dist/libs/schema/dist/index.js +4889 -6
- package/dist/libs/schema/dist/index.js.map +1 -0
- package/dist/payment/payment.contracts.d.ts +18 -17
- package/dist/payment/payment.contracts.d.ts.map +1 -0
- package/dist/payment/payment.contracts.js +2 -1
- package/dist/payment/payment.contracts.js.map +1 -0
- package/dist/payment/payment.schema.d.ts +17 -16
- package/dist/payment/payment.schema.d.ts.map +1 -0
- package/dist/payment/payment.schema.js +17 -18
- package/dist/payment/payment.schema.js.map +1 -0
- package/dist/presentations/index.d.ts +2 -1
- package/dist/presentations/index.d.ts.map +1 -0
- package/dist/presentations/index.js +2 -1
- package/dist/presentations/index.js.map +1 -0
- package/dist/presentations.d.ts +2 -1
- package/dist/presentations.d.ts.map +1 -0
- package/dist/presentations.js +2 -1
- package/dist/presentations.js.map +1 -0
- package/dist/quote/quote.contracts.d.ts +37 -36
- package/dist/quote/quote.contracts.d.ts.map +1 -0
- package/dist/quote/quote.contracts.js +2 -1
- package/dist/quote/quote.contracts.js.map +1 -0
- package/dist/quote/quote.schema.d.ts +26 -25
- package/dist/quote/quote.schema.d.ts.map +1 -0
- package/dist/quote/quote.schema.js +26 -27
- package/dist/quote/quote.schema.js.map +1 -0
- package/dist/service.feature.d.ts +2 -1
- package/dist/service.feature.d.ts.map +1 -0
- package/dist/service.feature.js +2 -1
- package/dist/service.feature.js.map +1 -0
- package/package.json +13 -12
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/schema/dist/EnumType.js +0 -2
- package/dist/libs/schema/dist/FieldType.js +0 -49
- package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/schema/dist/SchemaModel.js +0 -39
- package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
- package/dist/libs/schema/dist/entity/index.js +0 -2
- package/dist/libs/schema/dist/entity/types.js +0 -1
package/dist/events.d.ts
CHANGED
|
@@ -1,336 +1,337 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema22 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const QuoteSentEvent: _lssm_lib_contracts0.EventSpec<
|
|
5
|
+
declare const QuoteSentEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
6
6
|
quoteId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
clientId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
amount: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema22.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
status: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
orgId: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
occurredAt: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
}>>;
|
|
31
|
-
declare const QuoteAcceptedEvent: _lssm_lib_contracts0.EventSpec<
|
|
31
|
+
declare const QuoteAcceptedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
32
32
|
quoteId: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
clientId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
amount: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema22.FieldType<number, number>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
status: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
orgId: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
occurredAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
}>>;
|
|
57
|
-
declare const JobScheduledEvent: _lssm_lib_contracts0.EventSpec<
|
|
57
|
+
declare const JobScheduledEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
58
58
|
jobId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
quoteId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
clientId: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
status: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
scheduledAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
76
76
|
isOptional: true;
|
|
77
77
|
};
|
|
78
78
|
orgId: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
occurredAt: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const JobCompletedEvent: _lssm_lib_contracts0.EventSpec<
|
|
87
|
+
declare const JobCompletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
88
88
|
jobId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
quoteId: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
clientId: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
status: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
scheduledAt: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
orgId: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
occurredAt: {
|
|
113
|
-
type:
|
|
113
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
}>>;
|
|
117
|
-
declare const InvoiceIssuedEvent: _lssm_lib_contracts0.EventSpec<
|
|
117
|
+
declare const InvoiceIssuedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
118
118
|
invoiceId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
jobId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
amount: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema22.FieldType<number, number>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
status: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
orgId: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
occurredAt: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
}>>;
|
|
143
|
-
declare const PaymentReceivedEvent: _lssm_lib_contracts0.EventSpec<
|
|
143
|
+
declare const PaymentReceivedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
144
144
|
paymentId: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
146
146
|
isOptional: false;
|
|
147
147
|
};
|
|
148
148
|
invoiceId: {
|
|
149
|
-
type:
|
|
149
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
150
150
|
isOptional: false;
|
|
151
151
|
};
|
|
152
152
|
amount: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema22.FieldType<number, number>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
method: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
orgId: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
receivedAt: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
}>>;
|
|
169
169
|
declare const ServiceBusinessEvents: {
|
|
170
|
-
QuoteSentEvent: _lssm_lib_contracts0.EventSpec<
|
|
170
|
+
QuoteSentEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
171
171
|
quoteId: {
|
|
172
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
clientId: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
amount: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema22.FieldType<number, number>;
|
|
181
181
|
isOptional: false;
|
|
182
182
|
};
|
|
183
183
|
status: {
|
|
184
|
-
type:
|
|
184
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
orgId: {
|
|
188
|
-
type:
|
|
188
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
189
189
|
isOptional: false;
|
|
190
190
|
};
|
|
191
191
|
occurredAt: {
|
|
192
|
-
type:
|
|
192
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
193
193
|
isOptional: false;
|
|
194
194
|
};
|
|
195
195
|
}>>;
|
|
196
|
-
QuoteAcceptedEvent: _lssm_lib_contracts0.EventSpec<
|
|
196
|
+
QuoteAcceptedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
197
197
|
quoteId: {
|
|
198
|
-
type:
|
|
198
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
199
199
|
isOptional: false;
|
|
200
200
|
};
|
|
201
201
|
clientId: {
|
|
202
|
-
type:
|
|
202
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
203
203
|
isOptional: false;
|
|
204
204
|
};
|
|
205
205
|
amount: {
|
|
206
|
-
type:
|
|
206
|
+
type: _lssm_lib_schema22.FieldType<number, number>;
|
|
207
207
|
isOptional: false;
|
|
208
208
|
};
|
|
209
209
|
status: {
|
|
210
|
-
type:
|
|
210
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
213
|
orgId: {
|
|
214
|
-
type:
|
|
214
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
occurredAt: {
|
|
218
|
-
type:
|
|
218
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
219
219
|
isOptional: false;
|
|
220
220
|
};
|
|
221
221
|
}>>;
|
|
222
|
-
JobScheduledEvent: _lssm_lib_contracts0.EventSpec<
|
|
222
|
+
JobScheduledEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
223
223
|
jobId: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
quoteId: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
229
229
|
isOptional: true;
|
|
230
230
|
};
|
|
231
231
|
clientId: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
233
233
|
isOptional: true;
|
|
234
234
|
};
|
|
235
235
|
status: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
scheduledAt: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
241
241
|
isOptional: true;
|
|
242
242
|
};
|
|
243
243
|
orgId: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
occurredAt: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
}>>;
|
|
252
|
-
JobCompletedEvent: _lssm_lib_contracts0.EventSpec<
|
|
252
|
+
JobCompletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
253
253
|
jobId: {
|
|
254
|
-
type:
|
|
254
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
quoteId: {
|
|
258
|
-
type:
|
|
258
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
259
259
|
isOptional: true;
|
|
260
260
|
};
|
|
261
261
|
clientId: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
263
263
|
isOptional: true;
|
|
264
264
|
};
|
|
265
265
|
status: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
scheduledAt: {
|
|
270
|
-
type:
|
|
270
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
271
271
|
isOptional: true;
|
|
272
272
|
};
|
|
273
273
|
orgId: {
|
|
274
|
-
type:
|
|
274
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
occurredAt: {
|
|
278
|
-
type:
|
|
278
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
279
279
|
isOptional: false;
|
|
280
280
|
};
|
|
281
281
|
}>>;
|
|
282
|
-
InvoiceIssuedEvent: _lssm_lib_contracts0.EventSpec<
|
|
282
|
+
InvoiceIssuedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
283
283
|
invoiceId: {
|
|
284
|
-
type:
|
|
284
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
285
285
|
isOptional: false;
|
|
286
286
|
};
|
|
287
287
|
jobId: {
|
|
288
|
-
type:
|
|
288
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
289
289
|
isOptional: false;
|
|
290
290
|
};
|
|
291
291
|
amount: {
|
|
292
|
-
type:
|
|
292
|
+
type: _lssm_lib_schema22.FieldType<number, number>;
|
|
293
293
|
isOptional: false;
|
|
294
294
|
};
|
|
295
295
|
status: {
|
|
296
|
-
type:
|
|
296
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
297
297
|
isOptional: false;
|
|
298
298
|
};
|
|
299
299
|
orgId: {
|
|
300
|
-
type:
|
|
300
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
301
301
|
isOptional: false;
|
|
302
302
|
};
|
|
303
303
|
occurredAt: {
|
|
304
|
-
type:
|
|
304
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
305
305
|
isOptional: false;
|
|
306
306
|
};
|
|
307
307
|
}>>;
|
|
308
|
-
PaymentReceivedEvent: _lssm_lib_contracts0.EventSpec<
|
|
308
|
+
PaymentReceivedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema22.SchemaModel<{
|
|
309
309
|
paymentId: {
|
|
310
|
-
type:
|
|
310
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
311
311
|
isOptional: false;
|
|
312
312
|
};
|
|
313
313
|
invoiceId: {
|
|
314
|
-
type:
|
|
314
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
315
315
|
isOptional: false;
|
|
316
316
|
};
|
|
317
317
|
amount: {
|
|
318
|
-
type:
|
|
318
|
+
type: _lssm_lib_schema22.FieldType<number, number>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
321
|
method: {
|
|
322
|
-
type:
|
|
322
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
323
323
|
isOptional: false;
|
|
324
324
|
};
|
|
325
325
|
orgId: {
|
|
326
|
-
type:
|
|
326
|
+
type: _lssm_lib_schema22.FieldType<string, string>;
|
|
327
327
|
isOptional: false;
|
|
328
328
|
};
|
|
329
329
|
receivedAt: {
|
|
330
|
-
type:
|
|
330
|
+
type: _lssm_lib_schema22.FieldType<Date, string>;
|
|
331
331
|
isOptional: false;
|
|
332
332
|
};
|
|
333
333
|
}>>;
|
|
334
334
|
};
|
|
335
335
|
//#endregion
|
|
336
|
-
export { InvoiceIssuedEvent, JobCompletedEvent, JobScheduledEvent, PaymentReceivedEvent, QuoteAcceptedEvent, QuoteSentEvent, ServiceBusinessEvents };
|
|
336
|
+
export { InvoiceIssuedEvent, JobCompletedEvent, JobScheduledEvent, PaymentReceivedEvent, QuoteAcceptedEvent, QuoteSentEvent, ServiceBusinessEvents };
|
|
337
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAwDa,gBAAc,oBAAA,CAAA,6BAAA;;UAKzB,kBAAA,CAAA;;EALW,CAAA;EAKX,QAAA,EAAA;;;;;;;;EALyB,MAAA,EAAA;IAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAOd,UAAA,EAAA,KAKX;EAAA,CAAA;;;;;;;gBAL6B,KAAA;EAAA,CAAA;CAAA,CAAA,CAAA;AAOlB,cAPA,kBAYX,EAZ6B,oBAAA,CAAA,SAY7B,oBAZ6B,WAY7B,CAAA;EAAA,OAAA,EAAA;UAPA,kBAAA,CAAA;;;;;;;;sCAE4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAOjB,MAAA,EAAA;IAKX,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;gBAL4B,KAAA;EAAA,CAAA;CAAA,CAAA,CAAA;AAOjB,cAdA,iBAmBX,EAnB4B,oBAAA,CAAA,SAmB5B,oBAnB4B,WAmB5B,CAAA;EAAA,KAAA,EAAA;UAdA,kBAAA,CAAA;;;;;;;EAS6B,QAAA,EAAA;IAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAOlB,UAAA,EAAA,IAAA;EAKX,CAAA;;;;;;;gBAL+B,IAAA;EAAA,CAAA;EAAA,KAAA,EAAA;IAOpB,IAAA,8BAOZ,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;cA5BY,mBAAiB,oBAAA,CAAA,6BAAA;;UAK5B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,oBAAkB,oBAAA,CAAA,6BAAA;;UAK7B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW,sBAAoB,oBAAA,CAAA,6BAAA;;UAK/B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW;;;YAOZ,kBAAA,CAAA"}
|
package/dist/events.js
CHANGED
|
@@ -1,130 +1,128 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineSchemaModel } from "./libs/schema/dist/SchemaModel.js";
|
|
3
|
-
import "./libs/schema/dist/index.js";
|
|
1
|
+
import { E5, K5 } from "./libs/schema/dist/index.js";
|
|
4
2
|
import { defineEvent } from "./libs/contracts/dist/events.js";
|
|
5
3
|
import "./libs/contracts/dist/index.js";
|
|
6
4
|
|
|
7
5
|
//#region src/events.ts
|
|
8
|
-
const QuoteEventPayload =
|
|
6
|
+
const QuoteEventPayload = K5({
|
|
9
7
|
name: "QuoteEventPayload",
|
|
10
8
|
description: "Event payload for quote lifecycle",
|
|
11
9
|
fields: {
|
|
12
10
|
quoteId: {
|
|
13
|
-
type:
|
|
11
|
+
type: E5.String_unsecure(),
|
|
14
12
|
isOptional: false
|
|
15
13
|
},
|
|
16
14
|
clientId: {
|
|
17
|
-
type:
|
|
15
|
+
type: E5.String_unsecure(),
|
|
18
16
|
isOptional: false
|
|
19
17
|
},
|
|
20
18
|
amount: {
|
|
21
|
-
type:
|
|
19
|
+
type: E5.Float_unsecure(),
|
|
22
20
|
isOptional: false
|
|
23
21
|
},
|
|
24
22
|
status: {
|
|
25
|
-
type:
|
|
23
|
+
type: E5.String_unsecure(),
|
|
26
24
|
isOptional: false
|
|
27
25
|
},
|
|
28
26
|
orgId: {
|
|
29
|
-
type:
|
|
27
|
+
type: E5.String_unsecure(),
|
|
30
28
|
isOptional: false
|
|
31
29
|
},
|
|
32
30
|
occurredAt: {
|
|
33
|
-
type:
|
|
31
|
+
type: E5.DateTime(),
|
|
34
32
|
isOptional: false
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
});
|
|
38
|
-
const JobEventPayload =
|
|
36
|
+
const JobEventPayload = K5({
|
|
39
37
|
name: "JobEventPayload",
|
|
40
38
|
description: "Event payload for job lifecycle",
|
|
41
39
|
fields: {
|
|
42
40
|
jobId: {
|
|
43
|
-
type:
|
|
41
|
+
type: E5.String_unsecure(),
|
|
44
42
|
isOptional: false
|
|
45
43
|
},
|
|
46
44
|
quoteId: {
|
|
47
|
-
type:
|
|
45
|
+
type: E5.String_unsecure(),
|
|
48
46
|
isOptional: true
|
|
49
47
|
},
|
|
50
48
|
clientId: {
|
|
51
|
-
type:
|
|
49
|
+
type: E5.String_unsecure(),
|
|
52
50
|
isOptional: true
|
|
53
51
|
},
|
|
54
52
|
status: {
|
|
55
|
-
type:
|
|
53
|
+
type: E5.String_unsecure(),
|
|
56
54
|
isOptional: false
|
|
57
55
|
},
|
|
58
56
|
scheduledAt: {
|
|
59
|
-
type:
|
|
57
|
+
type: E5.DateTime(),
|
|
60
58
|
isOptional: true
|
|
61
59
|
},
|
|
62
60
|
orgId: {
|
|
63
|
-
type:
|
|
61
|
+
type: E5.String_unsecure(),
|
|
64
62
|
isOptional: false
|
|
65
63
|
},
|
|
66
64
|
occurredAt: {
|
|
67
|
-
type:
|
|
65
|
+
type: E5.DateTime(),
|
|
68
66
|
isOptional: false
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
69
|
});
|
|
72
|
-
const InvoiceEventPayload =
|
|
70
|
+
const InvoiceEventPayload = K5({
|
|
73
71
|
name: "InvoiceEventPayload",
|
|
74
72
|
description: "Event payload for invoices",
|
|
75
73
|
fields: {
|
|
76
74
|
invoiceId: {
|
|
77
|
-
type:
|
|
75
|
+
type: E5.String_unsecure(),
|
|
78
76
|
isOptional: false
|
|
79
77
|
},
|
|
80
78
|
jobId: {
|
|
81
|
-
type:
|
|
79
|
+
type: E5.String_unsecure(),
|
|
82
80
|
isOptional: false
|
|
83
81
|
},
|
|
84
82
|
amount: {
|
|
85
|
-
type:
|
|
83
|
+
type: E5.Float_unsecure(),
|
|
86
84
|
isOptional: false
|
|
87
85
|
},
|
|
88
86
|
status: {
|
|
89
|
-
type:
|
|
87
|
+
type: E5.String_unsecure(),
|
|
90
88
|
isOptional: false
|
|
91
89
|
},
|
|
92
90
|
orgId: {
|
|
93
|
-
type:
|
|
91
|
+
type: E5.String_unsecure(),
|
|
94
92
|
isOptional: false
|
|
95
93
|
},
|
|
96
94
|
occurredAt: {
|
|
97
|
-
type:
|
|
95
|
+
type: E5.DateTime(),
|
|
98
96
|
isOptional: false
|
|
99
97
|
}
|
|
100
98
|
}
|
|
101
99
|
});
|
|
102
|
-
const PaymentEventPayload =
|
|
100
|
+
const PaymentEventPayload = K5({
|
|
103
101
|
name: "PaymentEventPayload",
|
|
104
102
|
description: "Event payload for payments",
|
|
105
103
|
fields: {
|
|
106
104
|
paymentId: {
|
|
107
|
-
type:
|
|
105
|
+
type: E5.String_unsecure(),
|
|
108
106
|
isOptional: false
|
|
109
107
|
},
|
|
110
108
|
invoiceId: {
|
|
111
|
-
type:
|
|
109
|
+
type: E5.String_unsecure(),
|
|
112
110
|
isOptional: false
|
|
113
111
|
},
|
|
114
112
|
amount: {
|
|
115
|
-
type:
|
|
113
|
+
type: E5.Float_unsecure(),
|
|
116
114
|
isOptional: false
|
|
117
115
|
},
|
|
118
116
|
method: {
|
|
119
|
-
type:
|
|
117
|
+
type: E5.String_unsecure(),
|
|
120
118
|
isOptional: false
|
|
121
119
|
},
|
|
122
120
|
orgId: {
|
|
123
|
-
type:
|
|
121
|
+
type: E5.String_unsecure(),
|
|
124
122
|
isOptional: false
|
|
125
123
|
},
|
|
126
124
|
receivedAt: {
|
|
127
|
-
type:
|
|
125
|
+
type: E5.DateTime(),
|
|
128
126
|
isOptional: false
|
|
129
127
|
}
|
|
130
128
|
}
|
|
@@ -175,4 +173,5 @@ const ServiceBusinessEvents = {
|
|
|
175
173
|
};
|
|
176
174
|
|
|
177
175
|
//#endregion
|
|
178
|
-
export { InvoiceIssuedEvent, JobCompletedEvent, JobScheduledEvent, PaymentReceivedEvent, QuoteAcceptedEvent, QuoteSentEvent, ServiceBusinessEvents };
|
|
176
|
+
export { InvoiceIssuedEvent, JobCompletedEvent, JobScheduledEvent, PaymentReceivedEvent, QuoteAcceptedEvent, QuoteSentEvent, ServiceBusinessEvents };
|
|
177
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../src/events.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\nimport { defineEvent } from '@lssm/lib.contracts';\n\nconst QuoteEventPayload = defineSchemaModel({\n name: 'QuoteEventPayload',\n description: 'Event payload for quote lifecycle',\n fields: {\n quoteId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n clientId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst JobEventPayload = defineSchemaModel({\n name: 'JobEventPayload',\n description: 'Event payload for job lifecycle',\n fields: {\n jobId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n quoteId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n clientId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n scheduledAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst InvoiceEventPayload = defineSchemaModel({\n name: 'InvoiceEventPayload',\n description: 'Event payload for invoices',\n fields: {\n invoiceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jobId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst PaymentEventPayload = defineSchemaModel({\n name: 'PaymentEventPayload',\n description: 'Event payload for payments',\n fields: {\n paymentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n invoiceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n method: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n receivedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const QuoteSentEvent = defineEvent({\n name: 'service.quote.sent',\n version: 1,\n description: 'A quote was sent to the client.',\n payload: QuoteEventPayload,\n});\n\nexport const QuoteAcceptedEvent = defineEvent({\n name: 'service.quote.accepted',\n version: 1,\n description: 'A quote was accepted.',\n payload: QuoteEventPayload,\n});\n\nexport const JobScheduledEvent = defineEvent({\n name: 'service.job.scheduled',\n version: 1,\n description: 'A job was scheduled.',\n payload: JobEventPayload,\n});\n\nexport const JobCompletedEvent = defineEvent({\n name: 'service.job.completed',\n version: 1,\n description: 'A job was completed.',\n payload: JobEventPayload,\n});\n\nexport const InvoiceIssuedEvent = defineEvent({\n name: 'service.invoice.issued',\n version: 1,\n description: 'An invoice was issued.',\n payload: InvoiceEventPayload,\n});\n\nexport const PaymentReceivedEvent = defineEvent({\n name: 'service.payment.received',\n version: 1,\n description: 'A payment was recorded.',\n payload: PaymentEventPayload,\n});\n\nexport const ServiceBusinessEvents = {\n QuoteSentEvent,\n QuoteAcceptedEvent,\n JobScheduledEvent,\n JobCompletedEvent,\n InvoiceIssuedEvent,\n PaymentReceivedEvent,\n};\n"],"mappings":";;;;;AAGA,MAAM,oBAAoBA,GAAkB;CAC1C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,QAAQ;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACpE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,YAAY;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACnE;CACF,CAAC;AAEF,MAAM,kBAAkBD,GAAkB;CACxC,MAAM;CACN,aAAa;CACb,QAAQ;EACN,OAAO;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACtE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,aAAa;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAM;EAClE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,YAAY;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACnE;CACF,CAAC;AAEF,MAAM,sBAAsBD,GAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,WAAW;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,QAAQ;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACpE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,YAAY;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACnE;CACF,CAAC;AAEF,MAAM,sBAAsBD,GAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,WAAW;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,QAAQ;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACpE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,YAAY;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACnE;CACF,CAAC;AAEF,MAAa,iBAAiB,YAAY;CACxC,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,qBAAqB,YAAY;CAC5C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,qBAAqB,YAAY;CAC5C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACA;CACA;CACD"}
|
package/dist/example.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA4BI,EAAA,qBAAA"}
|
package/dist/example.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'service-business-os',\n title: 'Service Business OS',\n summary:\n 'Service business operating system: jobs, clients, scheduling, invoicing, and ops dashboards.',\n tags: ['service-business', 'jobs', 'scheduling', 'invoicing'],\n kind: 'template',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.service-business-os',\n },\n entrypoints: {\n packageName: '@lssm/example.service-business-os',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAoB;EAAQ;EAAc;EAAY;CAC7D,MAAM;CACN,YAAY;CACZ,MAAM,EACJ,WAAW,qCACZ;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|
package/dist/handlers/index.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ import { RecordPaymentContract } from "../payment/payment.contracts.js";
|
|
|
9
9
|
declare function registerServiceBusinessHandlers(): void;
|
|
10
10
|
type ServiceBusinessHandlers = typeof AcceptQuoteContract | typeof CreateClientContract | typeof CreateQuoteContract | typeof ScheduleJobContract | typeof CompleteJobContract | typeof IssueInvoiceContract | typeof RecordPaymentContract;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { ServiceBusinessHandlers, registerServiceBusinessHandlers };
|
|
12
|
+
export { ServiceBusinessHandlers, registerServiceBusinessHandlers };
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/handlers/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAiBW,iBAPK,+BAAA,CAAA,CAOL,EAAA,IAAA;AACA,KAFC,uBAAA,GAED,OADA,mBACA,GAAA,OAAA,oBAAA,GAAA,OACA,mBADA,GAAA,OAEA,mBAFA,GAAA,OAGA,mBAHA,GAAA,OAIA,oBAJA,GAAA,OAKA,qBALA"}
|
package/dist/handlers/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/handlers/index.ts"],"sourcesContent":["/**\n * Placeholder handlers for Service Business OS.\n * Implementations would persist to DB and integrate with Files, Notifications, and Jobs.\n */\nimport type { CreateClientContract } from '../client';\nimport type { CreateQuoteContract, AcceptQuoteContract } from '../quote';\nimport type { ScheduleJobContract, CompleteJobContract } from '../job';\nimport type { IssueInvoiceContract } from '../invoice';\nimport type { RecordPaymentContract } from '../payment';\n\nexport function registerServiceBusinessHandlers() {\n // Wire contract names to runtime handlers in the host app.\n // Example:\n // registry.command(CreateQuoteContract.meta.name, handleCreateQuote);\n}\n\nexport type ServiceBusinessHandlers =\n | typeof AcceptQuoteContract\n | typeof CreateClientContract\n | typeof CreateQuoteContract\n | typeof ScheduleJobContract\n | typeof CompleteJobContract\n | typeof IssueInvoiceContract\n | typeof RecordPaymentContract;\n"],"mappings":";AAUA,SAAgB,kCAAkC"}
|