@lssm/example.service-business-os 0.0.0-canary-20251217060804 → 0.0.0-canary-20251217062139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/client/client.contracts.d.ts +17 -17
  2. package/dist/client/client.contracts.js +1 -1
  3. package/dist/client/client.schema.d.ts +16 -16
  4. package/dist/client/client.schema.js +1 -1
  5. package/dist/contracts/index.d.ts +0 -5
  6. package/dist/docs/service-business-os.docblock.js +1 -1
  7. package/dist/entities/index.d.ts +155 -155
  8. package/dist/entities/index.js +1 -1
  9. package/dist/events.d.ts +90 -90
  10. package/dist/events.js +1 -1
  11. package/dist/handlers/index.d.ts +1 -5
  12. package/dist/index.d.ts +0 -5
  13. package/dist/invoice/invoice.contracts.d.ts +17 -17
  14. package/dist/invoice/invoice.contracts.js +1 -1
  15. package/dist/invoice/invoice.schema.d.ts +16 -16
  16. package/dist/invoice/invoice.schema.js +1 -1
  17. package/dist/job/job.contracts.d.ts +62 -62
  18. package/dist/job/job.contracts.js +1 -1
  19. package/dist/job/job.schema.d.ts +20 -20
  20. package/dist/job/job.schema.js +1 -1
  21. package/dist/libs/contracts/dist/capabilities/openbanking.js +1 -0
  22. package/dist/libs/contracts/dist/client/index.js +1 -0
  23. package/dist/libs/contracts/dist/client/react/feature-render.js +1 -0
  24. package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
  25. package/dist/libs/contracts/dist/client/react/index.js +1 -0
  26. package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
  27. package/dist/libs/contracts/dist/contract-registry/schemas.js +1 -0
  28. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +76 -0
  29. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +350 -0
  30. package/dist/libs/contracts/dist/docs/index.js +1 -0
  31. package/dist/libs/contracts/dist/docs/presentations.js +1 -0
  32. package/dist/libs/contracts/dist/docs/registry.js +1 -0
  33. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +383 -0
  34. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +68 -0
  35. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +140 -0
  36. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +86 -0
  37. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +1 -0
  38. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +58 -0
  39. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +38 -0
  40. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +213 -0
  41. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +289 -0
  42. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +1 -0
  43. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +1 -0
  44. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +262 -0
  45. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +1 -0
  46. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +57 -0
  47. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +63 -0
  48. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +36 -0
  49. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +1 -0
  50. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +20 -0
  51. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +65 -0
  52. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +1 -0
  53. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +41 -0
  54. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +122 -0
  55. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +1 -0
  56. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +68 -0
  57. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +1 -0
  58. package/dist/libs/contracts/dist/events.js +1 -0
  59. package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
  60. package/dist/libs/contracts/dist/index.js +1 -0
  61. package/dist/libs/contracts/dist/install.js +1 -0
  62. package/dist/libs/contracts/dist/integrations/contracts.js +1 -0
  63. package/dist/libs/contracts/dist/integrations/index.js +1 -0
  64. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -0
  65. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -0
  66. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +1 -0
  67. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -0
  68. package/dist/libs/contracts/dist/integrations/openbanking/models.js +1 -0
  69. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +1 -0
  70. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +1 -0
  71. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +1 -0
  72. package/dist/libs/contracts/dist/integrations/providers/gmail.js +1 -0
  73. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +1 -0
  74. package/dist/libs/contracts/dist/integrations/providers/index.js +1 -0
  75. package/dist/libs/contracts/dist/integrations/providers/mistral.js +1 -0
  76. package/dist/libs/contracts/dist/integrations/providers/postmark.js +1 -0
  77. package/dist/libs/contracts/dist/integrations/providers/powens.js +1 -0
  78. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +1 -0
  79. package/dist/libs/contracts/dist/integrations/providers/registry.js +1 -0
  80. package/dist/libs/contracts/dist/integrations/providers/stripe.js +1 -0
  81. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +1 -0
  82. package/dist/libs/contracts/dist/jsonschema.js +1 -0
  83. package/dist/libs/contracts/dist/knowledge/contracts.js +1 -0
  84. package/dist/libs/contracts/dist/knowledge/index.js +1 -0
  85. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +1 -0
  86. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +1 -0
  87. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +1 -0
  88. package/dist/libs/contracts/dist/knowledge/spaces/index.js +1 -0
  89. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +1 -0
  90. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +1 -0
  91. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +1 -0
  92. package/dist/libs/contracts/dist/llm/exporters.js +1 -0
  93. package/dist/libs/contracts/dist/llm/index.js +1 -0
  94. package/dist/libs/contracts/dist/llm/prompts.js +1 -0
  95. package/dist/libs/contracts/dist/onboarding-base.js +1 -0
  96. package/dist/libs/contracts/dist/openapi.js +1 -0
  97. package/dist/libs/contracts/dist/ownership.js +1 -0
  98. package/dist/libs/contracts/dist/presentations.js +1 -0
  99. package/dist/libs/contracts/dist/presentations.v2.js +1 -0
  100. package/dist/libs/contracts/dist/prompt.js +1 -0
  101. package/dist/libs/contracts/dist/promptRegistry.js +1 -0
  102. package/dist/libs/contracts/dist/regenerator/index.js +1 -0
  103. package/dist/libs/contracts/dist/regenerator/service.js +1 -0
  104. package/dist/libs/contracts/dist/registry.js +1 -0
  105. package/dist/libs/contracts/dist/resources.js +1 -0
  106. package/dist/libs/contracts/dist/schema/dist/EnumType.js +1 -0
  107. package/dist/libs/contracts/dist/schema/dist/FieldType.js +1 -0
  108. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +1 -0
  109. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +1 -0
  110. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
  111. package/dist/libs/contracts/dist/schema/dist/entity/index.js +1 -0
  112. package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
  113. package/dist/libs/contracts/dist/schema/dist/index.js +1 -0
  114. package/dist/libs/contracts/dist/server/graphql-pothos.js +1 -0
  115. package/dist/libs/contracts/dist/server/index.js +1 -0
  116. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +1 -0
  117. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +1 -0
  118. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
  119. package/dist/libs/contracts/dist/server/mcp/registerResources.js +1 -0
  120. package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
  121. package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
  122. package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
  123. package/dist/libs/contracts/dist/server/rest-express.js +1 -0
  124. package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
  125. package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
  126. package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
  127. package/dist/libs/contracts/dist/spec.js +1 -0
  128. package/dist/libs/contracts/dist/telemetry/index.js +1 -0
  129. package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
  130. package/dist/libs/contracts/dist/tests/index.js +1 -0
  131. package/dist/libs/contracts/dist/tests/runner.js +1 -0
  132. package/dist/libs/contracts/dist/workflow/index.js +1 -0
  133. package/dist/libs/contracts/dist/workflow/runner.js +1 -0
  134. package/dist/libs/schema/dist/EnumType.js +1 -0
  135. package/dist/libs/schema/dist/FieldType.js +1 -0
  136. package/dist/libs/schema/dist/ScalarTypeEnum.js +1 -0
  137. package/dist/libs/schema/dist/SchemaModel.js +1 -0
  138. package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
  139. package/dist/libs/schema/dist/entity/index.js +1 -0
  140. package/dist/libs/schema/dist/entity/types.js +1 -0
  141. package/dist/libs/schema/dist/index.js +1 -0
  142. package/dist/payment/payment.contracts.d.ts +16 -16
  143. package/dist/payment/payment.contracts.js +1 -1
  144. package/dist/payment/payment.schema.d.ts +15 -15
  145. package/dist/payment/payment.schema.js +1 -1
  146. package/dist/quote/quote.contracts.d.ts +35 -35
  147. package/dist/quote/quote.contracts.js +1 -1
  148. package/dist/quote/quote.schema.d.ts +24 -24
  149. package/dist/quote/quote.schema.js +1 -1
  150. package/package.json +11 -11
@@ -0,0 +1 @@
1
+ import{i as e,n as t,r as n,t as r}from"./defineEntity.js";import"./types.js";
@@ -0,0 +1 @@
1
+ import"zod";
@@ -0,0 +1 @@
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,58 +1,58 @@
1
- import * as _lssm_lib_schema87 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts11 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema427 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts18 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_contracts11.ContractSpec<_lssm_lib_schema87.SchemaModel<{
8
+ declare const RecordPaymentContract: _lssm_lib_contracts18.ContractSpec<_lssm_lib_schema427.SchemaModel<{
9
9
  invoiceId: {
10
- type: _lssm_lib_schema87.FieldType<string, string>;
10
+ type: _lssm_lib_schema427.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  amount: {
14
- type: _lssm_lib_schema87.FieldType<number, number>;
14
+ type: _lssm_lib_schema427.FieldType<number, number>;
15
15
  isOptional: false;
16
16
  };
17
17
  method: {
18
- type: _lssm_lib_schema87.FieldType<string, string>;
18
+ type: _lssm_lib_schema427.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  reference: {
22
- type: _lssm_lib_schema87.FieldType<string, string>;
22
+ type: _lssm_lib_schema427.FieldType<string, string>;
23
23
  isOptional: true;
24
24
  };
25
25
  receivedAt: {
26
- type: _lssm_lib_schema87.FieldType<Date, string>;
26
+ type: _lssm_lib_schema427.FieldType<Date, string>;
27
27
  isOptional: true;
28
28
  };
29
- }>, _lssm_lib_schema87.SchemaModel<{
29
+ }>, _lssm_lib_schema427.SchemaModel<{
30
30
  id: {
31
- type: _lssm_lib_schema87.FieldType<string, string>;
31
+ type: _lssm_lib_schema427.FieldType<string, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  invoiceId: {
35
- type: _lssm_lib_schema87.FieldType<string, string>;
35
+ type: _lssm_lib_schema427.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  amount: {
39
- type: _lssm_lib_schema87.FieldType<number, number>;
39
+ type: _lssm_lib_schema427.FieldType<number, number>;
40
40
  isOptional: false;
41
41
  };
42
42
  currency: {
43
- type: _lssm_lib_schema87.FieldType<string, string>;
43
+ type: _lssm_lib_schema427.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  method: {
47
- type: _lssm_lib_schema87.FieldType<string, string>;
47
+ type: _lssm_lib_schema427.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  reference: {
51
- type: _lssm_lib_schema87.FieldType<string, string>;
51
+ type: _lssm_lib_schema427.FieldType<string, string>;
52
52
  isOptional: true;
53
53
  };
54
54
  receivedAt: {
55
- type: _lssm_lib_schema87.FieldType<Date, string>;
55
+ type: _lssm_lib_schema427.FieldType<Date, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  }>, undefined>;
@@ -1 +1 @@
1
- import{PaymentModel as e,RecordPaymentInputModel as t}from"./payment.schema.js";import{defineCommand as n}from"@lssm/lib.contracts";const r=n({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:t,output:e},policy:{auth:`user`}});export{r as RecordPaymentContract};
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,61 +1,61 @@
1
- import * as _lssm_lib_schema281 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema244 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_schema281.SchemaModel<{
7
+ declare const PaymentModel: _lssm_lib_schema244.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema281.FieldType<string, string>;
9
+ type: _lssm_lib_schema244.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  invoiceId: {
13
- type: _lssm_lib_schema281.FieldType<string, string>;
13
+ type: _lssm_lib_schema244.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  amount: {
17
- type: _lssm_lib_schema281.FieldType<number, number>;
17
+ type: _lssm_lib_schema244.FieldType<number, number>;
18
18
  isOptional: false;
19
19
  };
20
20
  currency: {
21
- type: _lssm_lib_schema281.FieldType<string, string>;
21
+ type: _lssm_lib_schema244.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  method: {
25
- type: _lssm_lib_schema281.FieldType<string, string>;
25
+ type: _lssm_lib_schema244.FieldType<string, string>;
26
26
  isOptional: false;
27
27
  };
28
28
  reference: {
29
- type: _lssm_lib_schema281.FieldType<string, string>;
29
+ type: _lssm_lib_schema244.FieldType<string, string>;
30
30
  isOptional: true;
31
31
  };
32
32
  receivedAt: {
33
- type: _lssm_lib_schema281.FieldType<Date, string>;
33
+ type: _lssm_lib_schema244.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_schema281.SchemaModel<{
40
+ declare const RecordPaymentInputModel: _lssm_lib_schema244.SchemaModel<{
41
41
  invoiceId: {
42
- type: _lssm_lib_schema281.FieldType<string, string>;
42
+ type: _lssm_lib_schema244.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  amount: {
46
- type: _lssm_lib_schema281.FieldType<number, number>;
46
+ type: _lssm_lib_schema244.FieldType<number, number>;
47
47
  isOptional: false;
48
48
  };
49
49
  method: {
50
- type: _lssm_lib_schema281.FieldType<string, string>;
50
+ type: _lssm_lib_schema244.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  reference: {
54
- type: _lssm_lib_schema281.FieldType<string, string>;
54
+ type: _lssm_lib_schema244.FieldType<string, string>;
55
55
  isOptional: true;
56
56
  };
57
57
  receivedAt: {
58
- type: _lssm_lib_schema281.FieldType<Date, string>;
58
+ type: _lssm_lib_schema244.FieldType<Date, string>;
59
59
  isOptional: true;
60
60
  };
61
61
  }>;
@@ -1 +1 @@
1
- import{ScalarTypeEnum as e,defineSchemaModel as t}from"@lssm/lib.schema";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{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,132 +1,132 @@
1
- import * as _lssm_lib_schema195 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts15 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema123 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts3 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_contracts15.ContractSpec<_lssm_lib_schema195.SchemaModel<{
8
+ declare const CreateQuoteContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema123.SchemaModel<{
9
9
  clientId: {
10
- type: _lssm_lib_schema195.FieldType<string, string>;
10
+ type: _lssm_lib_schema123.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  title: {
14
- type: _lssm_lib_schema195.FieldType<string, string>;
14
+ type: _lssm_lib_schema123.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  description: {
18
- type: _lssm_lib_schema195.FieldType<string, string>;
18
+ type: _lssm_lib_schema123.FieldType<string, string>;
19
19
  isOptional: true;
20
20
  };
21
21
  amount: {
22
- type: _lssm_lib_schema195.FieldType<number, number>;
22
+ type: _lssm_lib_schema123.FieldType<number, number>;
23
23
  isOptional: false;
24
24
  };
25
25
  currency: {
26
- type: _lssm_lib_schema195.FieldType<string, string>;
26
+ type: _lssm_lib_schema123.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  validUntil: {
30
- type: _lssm_lib_schema195.FieldType<Date, string>;
30
+ type: _lssm_lib_schema123.FieldType<Date, string>;
31
31
  isOptional: true;
32
32
  };
33
33
  orgId: {
34
- type: _lssm_lib_schema195.FieldType<string, string>;
34
+ type: _lssm_lib_schema123.FieldType<string, string>;
35
35
  isOptional: false;
36
36
  };
37
37
  ownerId: {
38
- type: _lssm_lib_schema195.FieldType<string, string>;
38
+ type: _lssm_lib_schema123.FieldType<string, string>;
39
39
  isOptional: false;
40
40
  };
41
- }>, _lssm_lib_schema195.SchemaModel<{
41
+ }>, _lssm_lib_schema123.SchemaModel<{
42
42
  id: {
43
- type: _lssm_lib_schema195.FieldType<string, string>;
43
+ type: _lssm_lib_schema123.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  clientId: {
47
- type: _lssm_lib_schema195.FieldType<string, string>;
47
+ type: _lssm_lib_schema123.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  title: {
51
- type: _lssm_lib_schema195.FieldType<string, string>;
51
+ type: _lssm_lib_schema123.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  description: {
55
- type: _lssm_lib_schema195.FieldType<string, string>;
55
+ type: _lssm_lib_schema123.FieldType<string, string>;
56
56
  isOptional: true;
57
57
  };
58
58
  amount: {
59
- type: _lssm_lib_schema195.FieldType<number, number>;
59
+ type: _lssm_lib_schema123.FieldType<number, number>;
60
60
  isOptional: false;
61
61
  };
62
62
  currency: {
63
- type: _lssm_lib_schema195.FieldType<string, string>;
63
+ type: _lssm_lib_schema123.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  status: {
67
- type: _lssm_lib_schema195.FieldType<string, string>;
67
+ type: _lssm_lib_schema123.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  validUntil: {
71
- type: _lssm_lib_schema195.FieldType<Date, string>;
71
+ type: _lssm_lib_schema123.FieldType<Date, string>;
72
72
  isOptional: true;
73
73
  };
74
74
  createdAt: {
75
- type: _lssm_lib_schema195.FieldType<Date, string>;
75
+ type: _lssm_lib_schema123.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_contracts15.ContractSpec<_lssm_lib_schema195.SchemaModel<{
82
+ declare const AcceptQuoteContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema123.SchemaModel<{
83
83
  quoteId: {
84
- type: _lssm_lib_schema195.FieldType<string, string>;
84
+ type: _lssm_lib_schema123.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  acceptedBy: {
88
- type: _lssm_lib_schema195.FieldType<string, string>;
88
+ type: _lssm_lib_schema123.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  notes: {
92
- type: _lssm_lib_schema195.FieldType<string, string>;
92
+ type: _lssm_lib_schema123.FieldType<string, string>;
93
93
  isOptional: true;
94
94
  };
95
- }>, _lssm_lib_schema195.SchemaModel<{
95
+ }>, _lssm_lib_schema123.SchemaModel<{
96
96
  id: {
97
- type: _lssm_lib_schema195.FieldType<string, string>;
97
+ type: _lssm_lib_schema123.FieldType<string, string>;
98
98
  isOptional: false;
99
99
  };
100
100
  clientId: {
101
- type: _lssm_lib_schema195.FieldType<string, string>;
101
+ type: _lssm_lib_schema123.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  title: {
105
- type: _lssm_lib_schema195.FieldType<string, string>;
105
+ type: _lssm_lib_schema123.FieldType<string, string>;
106
106
  isOptional: false;
107
107
  };
108
108
  description: {
109
- type: _lssm_lib_schema195.FieldType<string, string>;
109
+ type: _lssm_lib_schema123.FieldType<string, string>;
110
110
  isOptional: true;
111
111
  };
112
112
  amount: {
113
- type: _lssm_lib_schema195.FieldType<number, number>;
113
+ type: _lssm_lib_schema123.FieldType<number, number>;
114
114
  isOptional: false;
115
115
  };
116
116
  currency: {
117
- type: _lssm_lib_schema195.FieldType<string, string>;
117
+ type: _lssm_lib_schema123.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  status: {
121
- type: _lssm_lib_schema195.FieldType<string, string>;
121
+ type: _lssm_lib_schema123.FieldType<string, string>;
122
122
  isOptional: false;
123
123
  };
124
124
  validUntil: {
125
- type: _lssm_lib_schema195.FieldType<Date, string>;
125
+ type: _lssm_lib_schema123.FieldType<Date, string>;
126
126
  isOptional: true;
127
127
  };
128
128
  createdAt: {
129
- type: _lssm_lib_schema195.FieldType<Date, string>;
129
+ type: _lssm_lib_schema123.FieldType<Date, string>;
130
130
  isOptional: false;
131
131
  };
132
132
  }>, undefined>;
@@ -1 +1 @@
1
- import{AcceptQuoteInputModel as e,CreateQuoteInputModel as t,QuoteModel as n}from"./quote.schema.js";import{defineCommand as r}from"@lssm/lib.contracts";const i=[`@examples.service-business-os`],a=r({meta:{name:`service.quote.create`,version:1,stability:`stable`,owners:[...i],tags:[`service-business-os`,`quote`,`create`],description:`Create a quote/proposal.`,goal:`Quote clients.`,context:`Quote creation.`},io:{input:t,output:n},policy:{auth:`user`}}),o=r({meta:{name:`service.quote.accept`,version:1,stability:`stable`,owners:[...i],tags:[`service-business-os`,`quote`,`accept`],description:`Accept a quote.`,goal:`Confirm quote.`,context:`Quote acceptance.`},io:{input:e,output:n},policy:{auth:`user`}});export{o as AcceptQuoteContract,a as CreateQuoteContract};
1
+ import{t as e}from"../libs/contracts/dist/spec.js";import"../libs/contracts/dist/index.js";import{AcceptQuoteInputModel as t,CreateQuoteInputModel as n,QuoteModel as r}from"./quote.schema.js";const i=[`@examples.service-business-os`],a=e({meta:{name:`service.quote.create`,version:1,stability:`stable`,owners:[...i],tags:[`service-business-os`,`quote`,`create`],description:`Create a quote/proposal.`,goal:`Quote clients.`,context:`Quote creation.`},io:{input:n,output:r},policy:{auth:`user`}}),o=e({meta:{name:`service.quote.accept`,version:1,stability:`stable`,owners:[...i],tags:[`service-business-os`,`quote`,`accept`],description:`Accept a quote.`,goal:`Confirm quote.`,context:`Quote acceptance.`},io:{input:t,output:r},policy:{auth:`user`}});export{o as AcceptQuoteContract,a as CreateQuoteContract};
@@ -1,98 +1,98 @@
1
- import * as _lssm_lib_schema228 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema441 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: _lssm_lib_schema228.SchemaModel<{
7
+ declare const QuoteModel: _lssm_lib_schema441.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema228.FieldType<string, string>;
9
+ type: _lssm_lib_schema441.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  clientId: {
13
- type: _lssm_lib_schema228.FieldType<string, string>;
13
+ type: _lssm_lib_schema441.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  title: {
17
- type: _lssm_lib_schema228.FieldType<string, string>;
17
+ type: _lssm_lib_schema441.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  description: {
21
- type: _lssm_lib_schema228.FieldType<string, string>;
21
+ type: _lssm_lib_schema441.FieldType<string, string>;
22
22
  isOptional: true;
23
23
  };
24
24
  amount: {
25
- type: _lssm_lib_schema228.FieldType<number, number>;
25
+ type: _lssm_lib_schema441.FieldType<number, number>;
26
26
  isOptional: false;
27
27
  };
28
28
  currency: {
29
- type: _lssm_lib_schema228.FieldType<string, string>;
29
+ type: _lssm_lib_schema441.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  status: {
33
- type: _lssm_lib_schema228.FieldType<string, string>;
33
+ type: _lssm_lib_schema441.FieldType<string, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  validUntil: {
37
- type: _lssm_lib_schema228.FieldType<Date, string>;
37
+ type: _lssm_lib_schema441.FieldType<Date, string>;
38
38
  isOptional: true;
39
39
  };
40
40
  createdAt: {
41
- type: _lssm_lib_schema228.FieldType<Date, string>;
41
+ type: _lssm_lib_schema441.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: _lssm_lib_schema228.SchemaModel<{
48
+ declare const CreateQuoteInputModel: _lssm_lib_schema441.SchemaModel<{
49
49
  clientId: {
50
- type: _lssm_lib_schema228.FieldType<string, string>;
50
+ type: _lssm_lib_schema441.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  title: {
54
- type: _lssm_lib_schema228.FieldType<string, string>;
54
+ type: _lssm_lib_schema441.FieldType<string, string>;
55
55
  isOptional: false;
56
56
  };
57
57
  description: {
58
- type: _lssm_lib_schema228.FieldType<string, string>;
58
+ type: _lssm_lib_schema441.FieldType<string, string>;
59
59
  isOptional: true;
60
60
  };
61
61
  amount: {
62
- type: _lssm_lib_schema228.FieldType<number, number>;
62
+ type: _lssm_lib_schema441.FieldType<number, number>;
63
63
  isOptional: false;
64
64
  };
65
65
  currency: {
66
- type: _lssm_lib_schema228.FieldType<string, string>;
66
+ type: _lssm_lib_schema441.FieldType<string, string>;
67
67
  isOptional: true;
68
68
  };
69
69
  validUntil: {
70
- type: _lssm_lib_schema228.FieldType<Date, string>;
70
+ type: _lssm_lib_schema441.FieldType<Date, string>;
71
71
  isOptional: true;
72
72
  };
73
73
  orgId: {
74
- type: _lssm_lib_schema228.FieldType<string, string>;
74
+ type: _lssm_lib_schema441.FieldType<string, string>;
75
75
  isOptional: false;
76
76
  };
77
77
  ownerId: {
78
- type: _lssm_lib_schema228.FieldType<string, string>;
78
+ type: _lssm_lib_schema441.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: _lssm_lib_schema228.SchemaModel<{
85
+ declare const AcceptQuoteInputModel: _lssm_lib_schema441.SchemaModel<{
86
86
  quoteId: {
87
- type: _lssm_lib_schema228.FieldType<string, string>;
87
+ type: _lssm_lib_schema441.FieldType<string, string>;
88
88
  isOptional: false;
89
89
  };
90
90
  acceptedBy: {
91
- type: _lssm_lib_schema228.FieldType<string, string>;
91
+ type: _lssm_lib_schema441.FieldType<string, string>;
92
92
  isOptional: false;
93
93
  };
94
94
  notes: {
95
- type: _lssm_lib_schema228.FieldType<string, string>;
95
+ type: _lssm_lib_schema441.FieldType<string, string>;
96
96
  isOptional: true;
97
97
  };
98
98
  }>;
@@ -1 +1 @@
1
- import{ScalarTypeEnum as e,defineSchemaModel as t}from"@lssm/lib.schema";const n=t({name:`Quote`,description:`Quote/proposal`,fields:{id:{type:e.String_unsecure(),isOptional:!1},clientId:{type:e.String_unsecure(),isOptional:!1},title:{type:e.String_unsecure(),isOptional:!1},description:{type:e.String_unsecure(),isOptional:!0},amount:{type:e.Float_unsecure(),isOptional:!1},currency:{type:e.String_unsecure(),isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},validUntil:{type:e.DateTime(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1}}}),r=t({name:`CreateQuoteInput`,description:`Input for creating a quote`,fields:{clientId:{type:e.String_unsecure(),isOptional:!1},title:{type:e.String_unsecure(),isOptional:!1},description:{type:e.String_unsecure(),isOptional:!0},amount:{type:e.Float_unsecure(),isOptional:!1},currency:{type:e.String_unsecure(),isOptional:!0},validUntil:{type:e.DateTime(),isOptional:!0},orgId:{type:e.String_unsecure(),isOptional:!1},ownerId:{type:e.String_unsecure(),isOptional:!1}}}),i=t({name:`AcceptQuoteInput`,description:`Input for accepting a quote`,fields:{quoteId:{type:e.String_unsecure(),isOptional:!1},acceptedBy:{type:e.String_unsecure(),isOptional:!1},notes:{type:e.String_unsecure(),isOptional:!0}}});export{i as AcceptQuoteInputModel,r as CreateQuoteInputModel,n as QuoteModel};
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:`Quote`,description:`Quote/proposal`,fields:{id:{type:e.String_unsecure(),isOptional:!1},clientId:{type:e.String_unsecure(),isOptional:!1},title:{type:e.String_unsecure(),isOptional:!1},description:{type:e.String_unsecure(),isOptional:!0},amount:{type:e.Float_unsecure(),isOptional:!1},currency:{type:e.String_unsecure(),isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},validUntil:{type:e.DateTime(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1}}}),r=t({name:`CreateQuoteInput`,description:`Input for creating a quote`,fields:{clientId:{type:e.String_unsecure(),isOptional:!1},title:{type:e.String_unsecure(),isOptional:!1},description:{type:e.String_unsecure(),isOptional:!0},amount:{type:e.Float_unsecure(),isOptional:!1},currency:{type:e.String_unsecure(),isOptional:!0},validUntil:{type:e.DateTime(),isOptional:!0},orgId:{type:e.String_unsecure(),isOptional:!1},ownerId:{type:e.String_unsecure(),isOptional:!1}}}),i=t({name:`AcceptQuoteInput`,description:`Input for accepting a quote`,fields:{quoteId:{type:e.String_unsecure(),isOptional:!1},acceptedBy:{type:e.String_unsecure(),isOptional:!1},notes:{type:e.String_unsecure(),isOptional:!0}}});export{i as AcceptQuoteInputModel,r as CreateQuoteInputModel,n as QuoteModel};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.service-business-os",
3
- "version": "0.0.0-canary-20251217060804",
3
+ "version": "0.0.0-canary-20251217062139",
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-20251217060804",
22
- "@lssm/lib.contracts": "0.0.0-canary-20251217060804",
23
- "@lssm/lib.bus": "0.0.0-canary-20251217060804",
24
- "@lssm/lib.identity-rbac": "0.0.0-canary-20251217060804",
25
- "@lssm/lib.files": "0.0.0-canary-20251217060804",
26
- "@lssm/lib.jobs": "0.0.0-canary-20251217060804",
27
- "@lssm/module.audit-trail": "0.0.0-canary-20251217060804",
28
- "@lssm/module.notifications": "0.0.0-canary-20251217060804",
21
+ "@lssm/lib.schema": "0.0.0-canary-20251217062139",
22
+ "@lssm/lib.contracts": "0.0.0-canary-20251217062139",
23
+ "@lssm/lib.bus": "0.0.0-canary-20251217062139",
24
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251217062139",
25
+ "@lssm/lib.files": "0.0.0-canary-20251217062139",
26
+ "@lssm/lib.jobs": "0.0.0-canary-20251217062139",
27
+ "@lssm/module.audit-trail": "0.0.0-canary-20251217062139",
28
+ "@lssm/module.notifications": "0.0.0-canary-20251217062139",
29
29
  "zod": "^4.1.13"
30
30
  },
31
31
  "devDependencies": {
32
- "@lssm/tool.typescript": "0.0.0-canary-20251217060804",
33
- "@lssm/tool.tsdown": "0.0.0-canary-20251217060804",
32
+ "@lssm/tool.typescript": "0.0.0-canary-20251217062139",
33
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217062139",
34
34
  "typescript": "^5.9.3"
35
35
  },
36
36
  "exports": {