@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.
Files changed (160) hide show
  1. package/dist/client/client.contracts.d.ts +17 -17
  2. package/dist/client/client.contracts.js +33 -1
  3. package/dist/client/client.schema.d.ts +16 -16
  4. package/dist/client/client.schema.js +78 -1
  5. package/dist/client/index.js +4 -1
  6. package/dist/contracts/index.js +17 -1
  7. package/dist/docs/index.js +1 -1
  8. package/dist/docs/service-business-os.docblock.js +62 -5
  9. package/dist/entities/index.d.ts +155 -155
  10. package/dist/entities/index.js +289 -1
  11. package/dist/events.d.ts +90 -90
  12. package/dist/events.js +178 -1
  13. package/dist/example.js +45 -1
  14. package/dist/handlers/index.js +5 -1
  15. package/dist/index.js +17 -1
  16. package/dist/invoice/index.js +4 -1
  17. package/dist/invoice/invoice.contracts.d.ts +17 -17
  18. package/dist/invoice/invoice.contracts.js +33 -1
  19. package/dist/invoice/invoice.schema.d.ts +16 -16
  20. package/dist/invoice/invoice.schema.js +78 -1
  21. package/dist/job/index.js +4 -1
  22. package/dist/job/job.contracts.d.ts +62 -62
  23. package/dist/job/job.contracts.js +119 -1
  24. package/dist/job/job.schema.d.ts +20 -20
  25. package/dist/job/job.schema.js +99 -1
  26. package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -1
  27. package/dist/libs/contracts/dist/client/index.js +5 -1
  28. package/dist/libs/contracts/dist/client/react/feature-render.js +2 -1
  29. package/dist/libs/contracts/dist/client/react/form-render.js +4 -1
  30. package/dist/libs/contracts/dist/client/react/index.js +4 -1
  31. package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
  32. package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -1
  33. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -76
  34. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -350
  35. package/dist/libs/contracts/dist/docs/index.js +29 -1
  36. package/dist/libs/contracts/dist/docs/presentations.js +71 -1
  37. package/dist/libs/contracts/dist/docs/registry.js +44 -1
  38. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -383
  39. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -68
  40. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -140
  41. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -86
  42. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -1
  43. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +24 -2
  44. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +21 -2
  45. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -213
  46. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +73 -5
  47. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -1
  48. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -1
  49. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -262
  50. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -1
  51. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +24 -2
  52. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +23 -2
  53. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +25 -16
  54. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -1
  55. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +22 -2
  56. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +40 -36
  57. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -1
  58. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +23 -2
  59. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +36 -3
  60. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -1
  61. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +36 -3
  62. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -1
  63. package/dist/libs/contracts/dist/events.js +10 -1
  64. package/dist/libs/contracts/dist/experiments/evaluator.js +1 -1
  65. package/dist/libs/contracts/dist/index.js +71 -1
  66. package/dist/libs/contracts/dist/install.js +2 -1
  67. package/dist/libs/contracts/dist/integrations/contracts.js +377 -1
  68. package/dist/libs/contracts/dist/integrations/index.js +18 -1
  69. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -1
  70. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -1
  71. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -1
  72. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -1
  73. package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -1
  74. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -1
  75. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -1
  76. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -1
  77. package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -1
  78. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -1
  79. package/dist/libs/contracts/dist/integrations/providers/index.js +11 -1
  80. package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -1
  81. package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -1
  82. package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -1
  83. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -1
  84. package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -1
  85. package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -1
  86. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -1
  87. package/dist/libs/contracts/dist/jsonschema.js +1 -1
  88. package/dist/libs/contracts/dist/knowledge/contracts.js +306 -1
  89. package/dist/libs/contracts/dist/knowledge/index.js +7 -1
  90. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -1
  91. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -1
  92. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -1
  93. package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -1
  94. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -1
  95. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -1
  96. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -1
  97. package/dist/libs/contracts/dist/llm/exporters.js +19 -1
  98. package/dist/libs/contracts/dist/llm/index.js +2 -1
  99. package/dist/libs/contracts/dist/llm/prompts.js +1 -1
  100. package/dist/libs/contracts/dist/onboarding-base.js +196 -1
  101. package/dist/libs/contracts/dist/openapi.js +1 -1
  102. package/dist/libs/contracts/dist/ownership.js +21 -1
  103. package/dist/libs/contracts/dist/presentations.js +1 -1
  104. package/dist/libs/contracts/dist/presentations.v2.js +11 -1
  105. package/dist/libs/contracts/dist/prompt.js +1 -1
  106. package/dist/libs/contracts/dist/promptRegistry.js +1 -1
  107. package/dist/libs/contracts/dist/regenerator/index.js +1 -1
  108. package/dist/libs/contracts/dist/regenerator/service.js +6 -1
  109. package/dist/libs/contracts/dist/registry.js +2 -1
  110. package/dist/libs/contracts/dist/resources.js +1 -1
  111. package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -1
  112. package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -1
  113. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -1
  114. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +34 -1
  115. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -1
  116. package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -1
  117. package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -1
  118. package/dist/libs/contracts/dist/schema/dist/index.js +6 -1
  119. package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -1
  120. package/dist/libs/contracts/dist/server/index.js +8 -1
  121. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -1
  122. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -1
  123. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
  124. package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -1
  125. package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -1
  126. package/dist/libs/contracts/dist/server/provider-mcp.js +1 -1
  127. package/dist/libs/contracts/dist/server/rest-elysia.js +1 -1
  128. package/dist/libs/contracts/dist/server/rest-express.js +1 -1
  129. package/dist/libs/contracts/dist/server/rest-generic.js +1 -1
  130. package/dist/libs/contracts/dist/server/rest-next-app.js +1 -1
  131. package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -1
  132. package/dist/libs/contracts/dist/spec.js +34 -1
  133. package/dist/libs/contracts/dist/telemetry/index.js +1 -1
  134. package/dist/libs/contracts/dist/telemetry/tracker.js +1 -1
  135. package/dist/libs/contracts/dist/tests/index.js +1 -1
  136. package/dist/libs/contracts/dist/tests/runner.js +2 -1
  137. package/dist/libs/contracts/dist/workflow/index.js +1 -1
  138. package/dist/libs/contracts/dist/workflow/runner.js +1 -1
  139. package/dist/libs/schema/dist/EnumType.js +2 -1
  140. package/dist/libs/schema/dist/FieldType.js +49 -1
  141. package/dist/libs/schema/dist/ScalarTypeEnum.js +236 -1
  142. package/dist/libs/schema/dist/SchemaModel.js +39 -1
  143. package/dist/libs/schema/dist/entity/defineEntity.js +236 -1
  144. package/dist/libs/schema/dist/entity/index.js +2 -1
  145. package/dist/libs/schema/dist/entity/types.js +1 -1
  146. package/dist/libs/schema/dist/index.js +6 -1
  147. package/dist/payment/index.js +4 -1
  148. package/dist/payment/payment.contracts.d.ts +16 -16
  149. package/dist/payment/payment.contracts.js +33 -1
  150. package/dist/payment/payment.schema.d.ts +15 -15
  151. package/dist/payment/payment.schema.js +74 -1
  152. package/dist/presentations/index.js +17 -1
  153. package/dist/presentations.js +148 -1
  154. package/dist/quote/index.js +4 -1
  155. package/dist/quote/quote.contracts.d.ts +35 -35
  156. package/dist/quote/quote.contracts.js +57 -1
  157. package/dist/quote/quote.schema.d.ts +24 -24
  158. package/dist/quote/quote.schema.js +115 -1
  159. package/dist/service.feature.js +162 -1
  160. package/package.json +11 -11
@@ -1 +1,6 @@
1
- import"./EnumType.js";import{t as e}from"./FieldType.js";import{l as t}from"./ScalarTypeEnum.js";import{n,t as r}from"./SchemaModel.js";import{i,n as a,r as o,t as s}from"./entity/defineEntity.js";import"./entity/index.js";
1
+ import "./EnumType.js";
2
+ import { FieldType } from "./FieldType.js";
3
+ import { ScalarTypeEnum } from "./ScalarTypeEnum.js";
4
+ import { SchemaModel, defineSchemaModel } from "./SchemaModel.js";
5
+ import { defineEntity, defineEntityEnum, field, index } from "./entity/defineEntity.js";
6
+ import "./entity/index.js";
@@ -1 +1,4 @@
1
- import{PaymentModel as e,RecordPaymentInputModel as t}from"./payment.schema.js";import{RecordPaymentContract as n}from"./payment.contracts.js";export{e as PaymentModel,n as RecordPaymentContract,t as RecordPaymentInputModel};
1
+ import { PaymentModel, RecordPaymentInputModel } from "./payment.schema.js";
2
+ import { RecordPaymentContract } from "./payment.contracts.js";
3
+
4
+ export { PaymentModel, RecordPaymentContract, RecordPaymentInputModel };
@@ -1,58 +1,58 @@
1
- import * as _lssm_lib_schema296 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts18 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema146 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts4 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/payment/payment.contracts.d.ts
5
5
  /**
6
6
  * Record a payment.
7
7
  */
8
- declare const RecordPaymentContract: _lssm_lib_contracts18.ContractSpec<_lssm_lib_schema296.SchemaModel<{
8
+ declare const RecordPaymentContract: _lssm_lib_contracts4.ContractSpec<_lssm_lib_schema146.SchemaModel<{
9
9
  invoiceId: {
10
- type: _lssm_lib_schema296.FieldType<string, string>;
10
+ type: _lssm_lib_schema146.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  amount: {
14
- type: _lssm_lib_schema296.FieldType<number, number>;
14
+ type: _lssm_lib_schema146.FieldType<number, number>;
15
15
  isOptional: false;
16
16
  };
17
17
  method: {
18
- type: _lssm_lib_schema296.FieldType<string, string>;
18
+ type: _lssm_lib_schema146.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  reference: {
22
- type: _lssm_lib_schema296.FieldType<string, string>;
22
+ type: _lssm_lib_schema146.FieldType<string, string>;
23
23
  isOptional: true;
24
24
  };
25
25
  receivedAt: {
26
- type: _lssm_lib_schema296.FieldType<Date, string>;
26
+ type: _lssm_lib_schema146.FieldType<Date, string>;
27
27
  isOptional: true;
28
28
  };
29
- }>, _lssm_lib_schema296.SchemaModel<{
29
+ }>, _lssm_lib_schema146.SchemaModel<{
30
30
  id: {
31
- type: _lssm_lib_schema296.FieldType<string, string>;
31
+ type: _lssm_lib_schema146.FieldType<string, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  invoiceId: {
35
- type: _lssm_lib_schema296.FieldType<string, string>;
35
+ type: _lssm_lib_schema146.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  amount: {
39
- type: _lssm_lib_schema296.FieldType<number, number>;
39
+ type: _lssm_lib_schema146.FieldType<number, number>;
40
40
  isOptional: false;
41
41
  };
42
42
  currency: {
43
- type: _lssm_lib_schema296.FieldType<string, string>;
43
+ type: _lssm_lib_schema146.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  method: {
47
- type: _lssm_lib_schema296.FieldType<string, string>;
47
+ type: _lssm_lib_schema146.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  reference: {
51
- type: _lssm_lib_schema296.FieldType<string, string>;
51
+ type: _lssm_lib_schema146.FieldType<string, string>;
52
52
  isOptional: true;
53
53
  };
54
54
  receivedAt: {
55
- type: _lssm_lib_schema296.FieldType<Date, string>;
55
+ type: _lssm_lib_schema146.FieldType<Date, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  }>, undefined>;
@@ -1 +1,33 @@
1
- import{t as e}from"../libs/contracts/dist/spec.js";import"../libs/contracts/dist/index.js";import{PaymentModel as t,RecordPaymentInputModel as n}from"./payment.schema.js";const r=e({meta:{name:`service.payment.record`,version:1,stability:`stable`,owners:[...[`@examples.service-business-os`]],tags:[`service-business-os`,`payment`,`record`],description:`Record a payment.`,goal:`Track payments.`,context:`Billing.`},io:{input:n,output:t},policy:{auth:`user`}});export{r as RecordPaymentContract};
1
+ import { defineCommand } from "../libs/contracts/dist/spec.js";
2
+ import "../libs/contracts/dist/index.js";
3
+ import { PaymentModel, RecordPaymentInputModel } from "./payment.schema.js";
4
+
5
+ //#region src/payment/payment.contracts.ts
6
+ const OWNERS = ["@examples.service-business-os"];
7
+ /**
8
+ * Record a payment.
9
+ */
10
+ const RecordPaymentContract = defineCommand({
11
+ meta: {
12
+ name: "service.payment.record",
13
+ version: 1,
14
+ stability: "stable",
15
+ owners: [...OWNERS],
16
+ tags: [
17
+ "service-business-os",
18
+ "payment",
19
+ "record"
20
+ ],
21
+ description: "Record a payment.",
22
+ goal: "Track payments.",
23
+ context: "Billing."
24
+ },
25
+ io: {
26
+ input: RecordPaymentInputModel,
27
+ output: PaymentModel
28
+ },
29
+ policy: { auth: "user" }
30
+ });
31
+
32
+ //#endregion
33
+ export { RecordPaymentContract };
@@ -1,61 +1,61 @@
1
- import * as _lssm_lib_schema151 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema160 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/payment/payment.schema.d.ts
4
4
  /**
5
5
  * Payment applied to invoice.
6
6
  */
7
- declare const PaymentModel: _lssm_lib_schema151.SchemaModel<{
7
+ declare const PaymentModel: _lssm_lib_schema160.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema151.FieldType<string, string>;
9
+ type: _lssm_lib_schema160.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  invoiceId: {
13
- type: _lssm_lib_schema151.FieldType<string, string>;
13
+ type: _lssm_lib_schema160.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  amount: {
17
- type: _lssm_lib_schema151.FieldType<number, number>;
17
+ type: _lssm_lib_schema160.FieldType<number, number>;
18
18
  isOptional: false;
19
19
  };
20
20
  currency: {
21
- type: _lssm_lib_schema151.FieldType<string, string>;
21
+ type: _lssm_lib_schema160.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  method: {
25
- type: _lssm_lib_schema151.FieldType<string, string>;
25
+ type: _lssm_lib_schema160.FieldType<string, string>;
26
26
  isOptional: false;
27
27
  };
28
28
  reference: {
29
- type: _lssm_lib_schema151.FieldType<string, string>;
29
+ type: _lssm_lib_schema160.FieldType<string, string>;
30
30
  isOptional: true;
31
31
  };
32
32
  receivedAt: {
33
- type: _lssm_lib_schema151.FieldType<Date, string>;
33
+ type: _lssm_lib_schema160.FieldType<Date, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  }>;
37
37
  /**
38
38
  * Input for recording a payment.
39
39
  */
40
- declare const RecordPaymentInputModel: _lssm_lib_schema151.SchemaModel<{
40
+ declare const RecordPaymentInputModel: _lssm_lib_schema160.SchemaModel<{
41
41
  invoiceId: {
42
- type: _lssm_lib_schema151.FieldType<string, string>;
42
+ type: _lssm_lib_schema160.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  amount: {
46
- type: _lssm_lib_schema151.FieldType<number, number>;
46
+ type: _lssm_lib_schema160.FieldType<number, number>;
47
47
  isOptional: false;
48
48
  };
49
49
  method: {
50
- type: _lssm_lib_schema151.FieldType<string, string>;
50
+ type: _lssm_lib_schema160.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  reference: {
54
- type: _lssm_lib_schema151.FieldType<string, string>;
54
+ type: _lssm_lib_schema160.FieldType<string, string>;
55
55
  isOptional: true;
56
56
  };
57
57
  receivedAt: {
58
- type: _lssm_lib_schema151.FieldType<Date, string>;
58
+ type: _lssm_lib_schema160.FieldType<Date, string>;
59
59
  isOptional: true;
60
60
  };
61
61
  }>;
@@ -1 +1,74 @@
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:`Payment`,description:`Payment applied to invoice`,fields:{id:{type:e.String_unsecure(),isOptional:!1},invoiceId:{type:e.String_unsecure(),isOptional:!1},amount:{type:e.Float_unsecure(),isOptional:!1},currency:{type:e.String_unsecure(),isOptional:!1},method:{type:e.String_unsecure(),isOptional:!1},reference:{type:e.String_unsecure(),isOptional:!0},receivedAt:{type:e.DateTime(),isOptional:!1}}}),r=t({name:`RecordPaymentInput`,description:`Input for recording a payment`,fields:{invoiceId:{type:e.String_unsecure(),isOptional:!1},amount:{type:e.Float_unsecure(),isOptional:!1},method:{type:e.String_unsecure(),isOptional:!1},reference:{type:e.String_unsecure(),isOptional:!0},receivedAt:{type:e.DateTime(),isOptional:!0}}});export{n as PaymentModel,r as RecordPaymentInputModel};
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/payment/payment.schema.ts
6
+ /**
7
+ * Payment applied to invoice.
8
+ */
9
+ const PaymentModel = defineSchemaModel({
10
+ name: "Payment",
11
+ description: "Payment applied to invoice",
12
+ fields: {
13
+ id: {
14
+ type: ScalarTypeEnum.String_unsecure(),
15
+ isOptional: false
16
+ },
17
+ invoiceId: {
18
+ type: ScalarTypeEnum.String_unsecure(),
19
+ isOptional: false
20
+ },
21
+ amount: {
22
+ type: ScalarTypeEnum.Float_unsecure(),
23
+ isOptional: false
24
+ },
25
+ currency: {
26
+ type: ScalarTypeEnum.String_unsecure(),
27
+ isOptional: false
28
+ },
29
+ method: {
30
+ type: ScalarTypeEnum.String_unsecure(),
31
+ isOptional: false
32
+ },
33
+ reference: {
34
+ type: ScalarTypeEnum.String_unsecure(),
35
+ isOptional: true
36
+ },
37
+ receivedAt: {
38
+ type: ScalarTypeEnum.DateTime(),
39
+ isOptional: false
40
+ }
41
+ }
42
+ });
43
+ /**
44
+ * Input for recording a payment.
45
+ */
46
+ const RecordPaymentInputModel = defineSchemaModel({
47
+ name: "RecordPaymentInput",
48
+ description: "Input for recording a payment",
49
+ fields: {
50
+ invoiceId: {
51
+ type: ScalarTypeEnum.String_unsecure(),
52
+ isOptional: false
53
+ },
54
+ amount: {
55
+ type: ScalarTypeEnum.Float_unsecure(),
56
+ isOptional: false
57
+ },
58
+ method: {
59
+ type: ScalarTypeEnum.String_unsecure(),
60
+ isOptional: false
61
+ },
62
+ reference: {
63
+ type: ScalarTypeEnum.String_unsecure(),
64
+ isOptional: true
65
+ },
66
+ receivedAt: {
67
+ type: ScalarTypeEnum.DateTime(),
68
+ isOptional: true
69
+ }
70
+ }
71
+ });
72
+
73
+ //#endregion
74
+ export { PaymentModel, RecordPaymentInputModel };
@@ -1 +1,17 @@
1
- const e=[`service-business-os.dashboard`,`service-business-os.client.list`,`service-business-os.quote.list`,`service-business-os.quote.detail`,`service-business-os.job.board`,`service-business-os.invoice.list`,`service-business-os.payment.list`];export{e as ServiceBusinessPresentations};
1
+ //#region src/presentations/index.ts
2
+ /**
3
+ * Presentation descriptors for Service Business OS.
4
+ * These names map to renderers in Studio (react/markdown) to keep specs multi-surface.
5
+ */
6
+ const ServiceBusinessPresentations = [
7
+ "service-business-os.dashboard",
8
+ "service-business-os.client.list",
9
+ "service-business-os.quote.list",
10
+ "service-business-os.quote.detail",
11
+ "service-business-os.job.board",
12
+ "service-business-os.invoice.list",
13
+ "service-business-os.payment.list"
14
+ ];
15
+
16
+ //#endregion
17
+ export { ServiceBusinessPresentations };
@@ -1 +1,148 @@
1
- const e={meta:{name:`service-business-os.dashboard`,version:1,description:`Service business dashboard with overview metrics`,domain:`services`,owners:[`@service-os`],tags:[`services`,`dashboard`]},source:{type:`component`,framework:`react`,componentKey:`ServiceDashboard`},targets:[`react`,`markdown`],policy:{flags:[`service.dashboard.enabled`]}},t={meta:{name:`service-business-os.client.list`,version:1,description:`List of service clients`,domain:`services`,owners:[`@service-os`],tags:[`services`,`clients`,`list`]},source:{type:`component`,framework:`react`,componentKey:`ClientList`},targets:[`react`,`markdown`],policy:{flags:[`service.clients.enabled`]}},n={meta:{name:`service-business-os.quote.list`,version:1,description:`List of quotes with status`,domain:`services`,owners:[`@service-os`],tags:[`services`,`quotes`,`list`]},source:{type:`component`,framework:`react`,componentKey:`QuoteList`},targets:[`react`,`markdown`],policy:{flags:[`service.quotes.enabled`]}},r={meta:{name:`service-business-os.quote.detail`,version:1,description:`Quote detail with line items`,domain:`services`,owners:[`@service-os`],tags:[`services`,`quote`,`detail`]},source:{type:`component`,framework:`react`,componentKey:`QuoteDetail`},targets:[`react`,`markdown`],policy:{flags:[`service.quotes.enabled`]}},i={meta:{name:`service-business-os.job.board`,version:1,description:`Job board with kanban view`,domain:`services`,owners:[`@service-os`],tags:[`services`,`jobs`,`board`,`kanban`]},source:{type:`component`,framework:`react`,componentKey:`JobBoard`},targets:[`react`],policy:{flags:[`service.jobs.enabled`]}},a={meta:{name:`service-business-os.invoice.list`,version:1,description:`List of invoices with payment status`,domain:`services`,owners:[`@service-os`],tags:[`services`,`invoices`,`list`]},source:{type:`component`,framework:`react`,componentKey:`InvoiceList`},targets:[`react`,`markdown`],policy:{flags:[`service.invoices.enabled`]}},o={meta:{name:`service-business-os.payment.list`,version:1,description:`List of payments received`,domain:`services`,owners:[`@service-os`],tags:[`services`,`payments`,`list`]},source:{type:`component`,framework:`react`,componentKey:`PaymentList`},targets:[`react`,`markdown`],policy:{flags:[`service.payments.enabled`]}};export{t as ClientListPresentation,a as InvoiceListPresentation,i as JobBoardPresentation,o as PaymentListPresentation,r as QuoteDetailPresentation,n as QuoteListPresentation,e as ServiceDashboardPresentation};
1
+ //#region src/presentations.ts
2
+ const ServiceDashboardPresentation = {
3
+ meta: {
4
+ name: "service-business-os.dashboard",
5
+ version: 1,
6
+ description: "Service business dashboard with overview metrics",
7
+ domain: "services",
8
+ owners: ["@service-os"],
9
+ tags: ["services", "dashboard"]
10
+ },
11
+ source: {
12
+ type: "component",
13
+ framework: "react",
14
+ componentKey: "ServiceDashboard"
15
+ },
16
+ targets: ["react", "markdown"],
17
+ policy: { flags: ["service.dashboard.enabled"] }
18
+ };
19
+ const ClientListPresentation = {
20
+ meta: {
21
+ name: "service-business-os.client.list",
22
+ version: 1,
23
+ description: "List of service clients",
24
+ domain: "services",
25
+ owners: ["@service-os"],
26
+ tags: [
27
+ "services",
28
+ "clients",
29
+ "list"
30
+ ]
31
+ },
32
+ source: {
33
+ type: "component",
34
+ framework: "react",
35
+ componentKey: "ClientList"
36
+ },
37
+ targets: ["react", "markdown"],
38
+ policy: { flags: ["service.clients.enabled"] }
39
+ };
40
+ const QuoteListPresentation = {
41
+ meta: {
42
+ name: "service-business-os.quote.list",
43
+ version: 1,
44
+ description: "List of quotes with status",
45
+ domain: "services",
46
+ owners: ["@service-os"],
47
+ tags: [
48
+ "services",
49
+ "quotes",
50
+ "list"
51
+ ]
52
+ },
53
+ source: {
54
+ type: "component",
55
+ framework: "react",
56
+ componentKey: "QuoteList"
57
+ },
58
+ targets: ["react", "markdown"],
59
+ policy: { flags: ["service.quotes.enabled"] }
60
+ };
61
+ const QuoteDetailPresentation = {
62
+ meta: {
63
+ name: "service-business-os.quote.detail",
64
+ version: 1,
65
+ description: "Quote detail with line items",
66
+ domain: "services",
67
+ owners: ["@service-os"],
68
+ tags: [
69
+ "services",
70
+ "quote",
71
+ "detail"
72
+ ]
73
+ },
74
+ source: {
75
+ type: "component",
76
+ framework: "react",
77
+ componentKey: "QuoteDetail"
78
+ },
79
+ targets: ["react", "markdown"],
80
+ policy: { flags: ["service.quotes.enabled"] }
81
+ };
82
+ const JobBoardPresentation = {
83
+ meta: {
84
+ name: "service-business-os.job.board",
85
+ version: 1,
86
+ description: "Job board with kanban view",
87
+ domain: "services",
88
+ owners: ["@service-os"],
89
+ tags: [
90
+ "services",
91
+ "jobs",
92
+ "board",
93
+ "kanban"
94
+ ]
95
+ },
96
+ source: {
97
+ type: "component",
98
+ framework: "react",
99
+ componentKey: "JobBoard"
100
+ },
101
+ targets: ["react"],
102
+ policy: { flags: ["service.jobs.enabled"] }
103
+ };
104
+ const InvoiceListPresentation = {
105
+ meta: {
106
+ name: "service-business-os.invoice.list",
107
+ version: 1,
108
+ description: "List of invoices with payment status",
109
+ domain: "services",
110
+ owners: ["@service-os"],
111
+ tags: [
112
+ "services",
113
+ "invoices",
114
+ "list"
115
+ ]
116
+ },
117
+ source: {
118
+ type: "component",
119
+ framework: "react",
120
+ componentKey: "InvoiceList"
121
+ },
122
+ targets: ["react", "markdown"],
123
+ policy: { flags: ["service.invoices.enabled"] }
124
+ };
125
+ const PaymentListPresentation = {
126
+ meta: {
127
+ name: "service-business-os.payment.list",
128
+ version: 1,
129
+ description: "List of payments received",
130
+ domain: "services",
131
+ owners: ["@service-os"],
132
+ tags: [
133
+ "services",
134
+ "payments",
135
+ "list"
136
+ ]
137
+ },
138
+ source: {
139
+ type: "component",
140
+ framework: "react",
141
+ componentKey: "PaymentList"
142
+ },
143
+ targets: ["react", "markdown"],
144
+ policy: { flags: ["service.payments.enabled"] }
145
+ };
146
+
147
+ //#endregion
148
+ export { ClientListPresentation, InvoiceListPresentation, JobBoardPresentation, PaymentListPresentation, QuoteDetailPresentation, QuoteListPresentation, ServiceDashboardPresentation };
@@ -1 +1,4 @@
1
- import{AcceptQuoteInputModel as e,CreateQuoteInputModel as t,QuoteModel as n}from"./quote.schema.js";import{AcceptQuoteContract as r,CreateQuoteContract as i}from"./quote.contracts.js";export{r as AcceptQuoteContract,e as AcceptQuoteInputModel,i as CreateQuoteContract,t as CreateQuoteInputModel,n as QuoteModel};
1
+ import { AcceptQuoteInputModel, CreateQuoteInputModel, QuoteModel } from "./quote.schema.js";
2
+ import { AcceptQuoteContract, CreateQuoteContract } from "./quote.contracts.js";
3
+
4
+ export { AcceptQuoteContract, AcceptQuoteInputModel, CreateQuoteContract, CreateQuoteInputModel, QuoteModel };
@@ -1,132 +1,132 @@
1
- import * as _lssm_lib_schema263 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts16 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema174 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts5 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/quote/quote.contracts.d.ts
5
5
  /**
6
6
  * Create a new quote.
7
7
  */
8
- declare const CreateQuoteContract: _lssm_lib_contracts16.ContractSpec<_lssm_lib_schema263.SchemaModel<{
8
+ declare const CreateQuoteContract: _lssm_lib_contracts5.ContractSpec<_lssm_lib_schema174.SchemaModel<{
9
9
  clientId: {
10
- type: _lssm_lib_schema263.FieldType<string, string>;
10
+ type: _lssm_lib_schema174.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  title: {
14
- type: _lssm_lib_schema263.FieldType<string, string>;
14
+ type: _lssm_lib_schema174.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  description: {
18
- type: _lssm_lib_schema263.FieldType<string, string>;
18
+ type: _lssm_lib_schema174.FieldType<string, string>;
19
19
  isOptional: true;
20
20
  };
21
21
  amount: {
22
- type: _lssm_lib_schema263.FieldType<number, number>;
22
+ type: _lssm_lib_schema174.FieldType<number, number>;
23
23
  isOptional: false;
24
24
  };
25
25
  currency: {
26
- type: _lssm_lib_schema263.FieldType<string, string>;
26
+ type: _lssm_lib_schema174.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  validUntil: {
30
- type: _lssm_lib_schema263.FieldType<Date, string>;
30
+ type: _lssm_lib_schema174.FieldType<Date, string>;
31
31
  isOptional: true;
32
32
  };
33
33
  orgId: {
34
- type: _lssm_lib_schema263.FieldType<string, string>;
34
+ type: _lssm_lib_schema174.FieldType<string, string>;
35
35
  isOptional: false;
36
36
  };
37
37
  ownerId: {
38
- type: _lssm_lib_schema263.FieldType<string, string>;
38
+ type: _lssm_lib_schema174.FieldType<string, string>;
39
39
  isOptional: false;
40
40
  };
41
- }>, _lssm_lib_schema263.SchemaModel<{
41
+ }>, _lssm_lib_schema174.SchemaModel<{
42
42
  id: {
43
- type: _lssm_lib_schema263.FieldType<string, string>;
43
+ type: _lssm_lib_schema174.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  clientId: {
47
- type: _lssm_lib_schema263.FieldType<string, string>;
47
+ type: _lssm_lib_schema174.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  title: {
51
- type: _lssm_lib_schema263.FieldType<string, string>;
51
+ type: _lssm_lib_schema174.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  description: {
55
- type: _lssm_lib_schema263.FieldType<string, string>;
55
+ type: _lssm_lib_schema174.FieldType<string, string>;
56
56
  isOptional: true;
57
57
  };
58
58
  amount: {
59
- type: _lssm_lib_schema263.FieldType<number, number>;
59
+ type: _lssm_lib_schema174.FieldType<number, number>;
60
60
  isOptional: false;
61
61
  };
62
62
  currency: {
63
- type: _lssm_lib_schema263.FieldType<string, string>;
63
+ type: _lssm_lib_schema174.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  status: {
67
- type: _lssm_lib_schema263.FieldType<string, string>;
67
+ type: _lssm_lib_schema174.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  validUntil: {
71
- type: _lssm_lib_schema263.FieldType<Date, string>;
71
+ type: _lssm_lib_schema174.FieldType<Date, string>;
72
72
  isOptional: true;
73
73
  };
74
74
  createdAt: {
75
- type: _lssm_lib_schema263.FieldType<Date, string>;
75
+ type: _lssm_lib_schema174.FieldType<Date, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  }>, undefined>;
79
79
  /**
80
80
  * Accept a quote.
81
81
  */
82
- declare const AcceptQuoteContract: _lssm_lib_contracts16.ContractSpec<_lssm_lib_schema263.SchemaModel<{
82
+ declare const AcceptQuoteContract: _lssm_lib_contracts5.ContractSpec<_lssm_lib_schema174.SchemaModel<{
83
83
  quoteId: {
84
- type: _lssm_lib_schema263.FieldType<string, string>;
84
+ type: _lssm_lib_schema174.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  acceptedBy: {
88
- type: _lssm_lib_schema263.FieldType<string, string>;
88
+ type: _lssm_lib_schema174.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  notes: {
92
- type: _lssm_lib_schema263.FieldType<string, string>;
92
+ type: _lssm_lib_schema174.FieldType<string, string>;
93
93
  isOptional: true;
94
94
  };
95
- }>, _lssm_lib_schema263.SchemaModel<{
95
+ }>, _lssm_lib_schema174.SchemaModel<{
96
96
  id: {
97
- type: _lssm_lib_schema263.FieldType<string, string>;
97
+ type: _lssm_lib_schema174.FieldType<string, string>;
98
98
  isOptional: false;
99
99
  };
100
100
  clientId: {
101
- type: _lssm_lib_schema263.FieldType<string, string>;
101
+ type: _lssm_lib_schema174.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  title: {
105
- type: _lssm_lib_schema263.FieldType<string, string>;
105
+ type: _lssm_lib_schema174.FieldType<string, string>;
106
106
  isOptional: false;
107
107
  };
108
108
  description: {
109
- type: _lssm_lib_schema263.FieldType<string, string>;
109
+ type: _lssm_lib_schema174.FieldType<string, string>;
110
110
  isOptional: true;
111
111
  };
112
112
  amount: {
113
- type: _lssm_lib_schema263.FieldType<number, number>;
113
+ type: _lssm_lib_schema174.FieldType<number, number>;
114
114
  isOptional: false;
115
115
  };
116
116
  currency: {
117
- type: _lssm_lib_schema263.FieldType<string, string>;
117
+ type: _lssm_lib_schema174.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  status: {
121
- type: _lssm_lib_schema263.FieldType<string, string>;
121
+ type: _lssm_lib_schema174.FieldType<string, string>;
122
122
  isOptional: false;
123
123
  };
124
124
  validUntil: {
125
- type: _lssm_lib_schema263.FieldType<Date, string>;
125
+ type: _lssm_lib_schema174.FieldType<Date, string>;
126
126
  isOptional: true;
127
127
  };
128
128
  createdAt: {
129
- type: _lssm_lib_schema263.FieldType<Date, string>;
129
+ type: _lssm_lib_schema174.FieldType<Date, string>;
130
130
  isOptional: false;
131
131
  };
132
132
  }>, undefined>;