@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
|
@@ -1 +1,57 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { defineCommand } from "../libs/contracts/dist/spec.js";
|
|
2
|
+
import "../libs/contracts/dist/index.js";
|
|
3
|
+
import { AcceptQuoteInputModel, CreateQuoteInputModel, QuoteModel } from "./quote.schema.js";
|
|
4
|
+
|
|
5
|
+
//#region src/quote/quote.contracts.ts
|
|
6
|
+
const OWNERS = ["@examples.service-business-os"];
|
|
7
|
+
/**
|
|
8
|
+
* Create a new quote.
|
|
9
|
+
*/
|
|
10
|
+
const CreateQuoteContract = defineCommand({
|
|
11
|
+
meta: {
|
|
12
|
+
name: "service.quote.create",
|
|
13
|
+
version: 1,
|
|
14
|
+
stability: "stable",
|
|
15
|
+
owners: [...OWNERS],
|
|
16
|
+
tags: [
|
|
17
|
+
"service-business-os",
|
|
18
|
+
"quote",
|
|
19
|
+
"create"
|
|
20
|
+
],
|
|
21
|
+
description: "Create a quote/proposal.",
|
|
22
|
+
goal: "Quote clients.",
|
|
23
|
+
context: "Quote creation."
|
|
24
|
+
},
|
|
25
|
+
io: {
|
|
26
|
+
input: CreateQuoteInputModel,
|
|
27
|
+
output: QuoteModel
|
|
28
|
+
},
|
|
29
|
+
policy: { auth: "user" }
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Accept a quote.
|
|
33
|
+
*/
|
|
34
|
+
const AcceptQuoteContract = defineCommand({
|
|
35
|
+
meta: {
|
|
36
|
+
name: "service.quote.accept",
|
|
37
|
+
version: 1,
|
|
38
|
+
stability: "stable",
|
|
39
|
+
owners: [...OWNERS],
|
|
40
|
+
tags: [
|
|
41
|
+
"service-business-os",
|
|
42
|
+
"quote",
|
|
43
|
+
"accept"
|
|
44
|
+
],
|
|
45
|
+
description: "Accept a quote.",
|
|
46
|
+
goal: "Confirm quote.",
|
|
47
|
+
context: "Quote acceptance."
|
|
48
|
+
},
|
|
49
|
+
io: {
|
|
50
|
+
input: AcceptQuoteInputModel,
|
|
51
|
+
output: QuoteModel
|
|
52
|
+
},
|
|
53
|
+
policy: { auth: "user" }
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { AcceptQuoteContract, CreateQuoteContract };
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/quote/quote.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Quote/proposal.
|
|
6
6
|
*/
|
|
7
|
-
declare const QuoteModel:
|
|
7
|
+
declare const QuoteModel: _lssm_lib_schema0.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
clientId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
title: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
description: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
22
22
|
isOptional: true;
|
|
23
23
|
};
|
|
24
24
|
amount: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
currency: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
status: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
validUntil: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
38
38
|
isOptional: true;
|
|
39
39
|
};
|
|
40
40
|
createdAt: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* Input for creating a quote.
|
|
47
47
|
*/
|
|
48
|
-
declare const CreateQuoteInputModel:
|
|
48
|
+
declare const CreateQuoteInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
49
49
|
clientId: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
title: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
description: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
amount: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
currency: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
67
67
|
isOptional: true;
|
|
68
68
|
};
|
|
69
69
|
validUntil: {
|
|
70
|
-
type:
|
|
70
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
71
71
|
isOptional: true;
|
|
72
72
|
};
|
|
73
73
|
orgId: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
ownerId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
}>;
|
|
82
82
|
/**
|
|
83
83
|
* Input for accepting a quote.
|
|
84
84
|
*/
|
|
85
|
-
declare const AcceptQuoteInputModel:
|
|
85
|
+
declare const AcceptQuoteInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
86
86
|
quoteId: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
88
88
|
isOptional: false;
|
|
89
89
|
};
|
|
90
90
|
acceptedBy: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
notes: {
|
|
95
|
-
type:
|
|
95
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
96
96
|
isOptional: true;
|
|
97
97
|
};
|
|
98
98
|
}>;
|
|
@@ -1 +1,115 @@
|
|
|
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
|
+
|
|
5
|
+
//#region src/quote/quote.schema.ts
|
|
6
|
+
/**
|
|
7
|
+
* Quote/proposal.
|
|
8
|
+
*/
|
|
9
|
+
const QuoteModel = defineSchemaModel({
|
|
10
|
+
name: "Quote",
|
|
11
|
+
description: "Quote/proposal",
|
|
12
|
+
fields: {
|
|
13
|
+
id: {
|
|
14
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
15
|
+
isOptional: false
|
|
16
|
+
},
|
|
17
|
+
clientId: {
|
|
18
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
19
|
+
isOptional: false
|
|
20
|
+
},
|
|
21
|
+
title: {
|
|
22
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
23
|
+
isOptional: false
|
|
24
|
+
},
|
|
25
|
+
description: {
|
|
26
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
27
|
+
isOptional: true
|
|
28
|
+
},
|
|
29
|
+
amount: {
|
|
30
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
31
|
+
isOptional: false
|
|
32
|
+
},
|
|
33
|
+
currency: {
|
|
34
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
35
|
+
isOptional: false
|
|
36
|
+
},
|
|
37
|
+
status: {
|
|
38
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
39
|
+
isOptional: false
|
|
40
|
+
},
|
|
41
|
+
validUntil: {
|
|
42
|
+
type: ScalarTypeEnum.DateTime(),
|
|
43
|
+
isOptional: true
|
|
44
|
+
},
|
|
45
|
+
createdAt: {
|
|
46
|
+
type: ScalarTypeEnum.DateTime(),
|
|
47
|
+
isOptional: false
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* Input for creating a quote.
|
|
53
|
+
*/
|
|
54
|
+
const CreateQuoteInputModel = defineSchemaModel({
|
|
55
|
+
name: "CreateQuoteInput",
|
|
56
|
+
description: "Input for creating a quote",
|
|
57
|
+
fields: {
|
|
58
|
+
clientId: {
|
|
59
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
60
|
+
isOptional: false
|
|
61
|
+
},
|
|
62
|
+
title: {
|
|
63
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
64
|
+
isOptional: false
|
|
65
|
+
},
|
|
66
|
+
description: {
|
|
67
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
68
|
+
isOptional: true
|
|
69
|
+
},
|
|
70
|
+
amount: {
|
|
71
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
72
|
+
isOptional: false
|
|
73
|
+
},
|
|
74
|
+
currency: {
|
|
75
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
76
|
+
isOptional: true
|
|
77
|
+
},
|
|
78
|
+
validUntil: {
|
|
79
|
+
type: ScalarTypeEnum.DateTime(),
|
|
80
|
+
isOptional: true
|
|
81
|
+
},
|
|
82
|
+
orgId: {
|
|
83
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
84
|
+
isOptional: false
|
|
85
|
+
},
|
|
86
|
+
ownerId: {
|
|
87
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
88
|
+
isOptional: false
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* Input for accepting a quote.
|
|
94
|
+
*/
|
|
95
|
+
const AcceptQuoteInputModel = defineSchemaModel({
|
|
96
|
+
name: "AcceptQuoteInput",
|
|
97
|
+
description: "Input for accepting a quote",
|
|
98
|
+
fields: {
|
|
99
|
+
quoteId: {
|
|
100
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
101
|
+
isOptional: false
|
|
102
|
+
},
|
|
103
|
+
acceptedBy: {
|
|
104
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
105
|
+
isOptional: false
|
|
106
|
+
},
|
|
107
|
+
notes: {
|
|
108
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
109
|
+
isOptional: true
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
//#endregion
|
|
115
|
+
export { AcceptQuoteInputModel, CreateQuoteInputModel, QuoteModel };
|
package/dist/service.feature.js
CHANGED
|
@@ -1 +1,162 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/service.feature.ts
|
|
2
|
+
const ServiceBusinessFeature = {
|
|
3
|
+
meta: {
|
|
4
|
+
key: "service-business-os",
|
|
5
|
+
title: "Service Business OS",
|
|
6
|
+
description: "Quotes → jobs → invoices → payments for field services and agencies.",
|
|
7
|
+
domain: "services",
|
|
8
|
+
owners: ["@service-os"],
|
|
9
|
+
tags: [
|
|
10
|
+
"services",
|
|
11
|
+
"quotes",
|
|
12
|
+
"jobs",
|
|
13
|
+
"invoices",
|
|
14
|
+
"payments"
|
|
15
|
+
],
|
|
16
|
+
stability: "experimental"
|
|
17
|
+
},
|
|
18
|
+
operations: [
|
|
19
|
+
{
|
|
20
|
+
name: "service.client.create",
|
|
21
|
+
version: 1
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "service.quote.create",
|
|
25
|
+
version: 1
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "service.quote.accept",
|
|
29
|
+
version: 1
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "service.job.schedule",
|
|
33
|
+
version: 1
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "service.job.complete",
|
|
37
|
+
version: 1
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "service.invoice.issue",
|
|
41
|
+
version: 1
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "service.payment.record",
|
|
45
|
+
version: 1
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "service.job.list",
|
|
49
|
+
version: 1
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
events: [
|
|
53
|
+
{
|
|
54
|
+
name: "service.quote.sent",
|
|
55
|
+
version: 1
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "service.quote.accepted",
|
|
59
|
+
version: 1
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "service.job.scheduled",
|
|
63
|
+
version: 1
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "service.job.completed",
|
|
67
|
+
version: 1
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "service.invoice.issued",
|
|
71
|
+
version: 1
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "service.payment.received",
|
|
75
|
+
version: 1
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
presentations: [
|
|
79
|
+
{
|
|
80
|
+
name: "service-business-os.dashboard",
|
|
81
|
+
version: 1
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "service-business-os.client.list",
|
|
85
|
+
version: 1
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "service-business-os.quote.list",
|
|
89
|
+
version: 1
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "service-business-os.quote.detail",
|
|
93
|
+
version: 1
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "service-business-os.job.board",
|
|
97
|
+
version: 1
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "service-business-os.invoice.list",
|
|
101
|
+
version: 1
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "service-business-os.payment.list",
|
|
105
|
+
version: 1
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
presentationsTargets: [
|
|
109
|
+
{
|
|
110
|
+
name: "service-business-os.dashboard",
|
|
111
|
+
version: 1,
|
|
112
|
+
targets: ["react", "markdown"]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "service-business-os.quote.list",
|
|
116
|
+
version: 1,
|
|
117
|
+
targets: ["react", "markdown"]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "service-business-os.invoice.list",
|
|
121
|
+
version: 1,
|
|
122
|
+
targets: ["react", "markdown"]
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
capabilities: {
|
|
126
|
+
requires: [
|
|
127
|
+
{
|
|
128
|
+
key: "identity",
|
|
129
|
+
version: 1
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
key: "audit-trail",
|
|
133
|
+
version: 1
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
key: "notifications",
|
|
137
|
+
version: 1
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
key: "files",
|
|
141
|
+
version: 1
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
provides: [
|
|
145
|
+
{
|
|
146
|
+
key: "quotes",
|
|
147
|
+
version: 1
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
key: "jobs",
|
|
151
|
+
version: 1
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
key: "invoices",
|
|
155
|
+
version: 1
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
//#endregion
|
|
162
|
+
export { ServiceBusinessFeature };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.service-business-os",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251217073102",
|
|
4
4
|
"description": "Service Business OS example (clients, quotes, jobs, invoices) for ContractSpec",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
"lint:check": "eslint src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
22
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
23
|
-
"@lssm/lib.bus": "0.0.0-canary-
|
|
24
|
-
"@lssm/lib.identity-rbac": "0.0.0-canary-
|
|
25
|
-
"@lssm/lib.files": "0.0.0-canary-
|
|
26
|
-
"@lssm/lib.jobs": "0.0.0-canary-
|
|
27
|
-
"@lssm/module.audit-trail": "0.0.0-canary-
|
|
28
|
-
"@lssm/module.notifications": "0.0.0-canary-
|
|
21
|
+
"@lssm/lib.schema": "0.0.0-canary-20251217073102",
|
|
22
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251217073102",
|
|
23
|
+
"@lssm/lib.bus": "0.0.0-canary-20251217073102",
|
|
24
|
+
"@lssm/lib.identity-rbac": "0.0.0-canary-20251217073102",
|
|
25
|
+
"@lssm/lib.files": "0.0.0-canary-20251217073102",
|
|
26
|
+
"@lssm/lib.jobs": "0.0.0-canary-20251217073102",
|
|
27
|
+
"@lssm/module.audit-trail": "0.0.0-canary-20251217073102",
|
|
28
|
+
"@lssm/module.notifications": "0.0.0-canary-20251217073102",
|
|
29
29
|
"zod": "^4.1.13"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
33
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
32
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251217073102",
|
|
33
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251217073102",
|
|
34
34
|
"typescript": "^5.9.3"
|
|
35
35
|
},
|
|
36
36
|
"exports": {
|