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

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 +5 -0
  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 +5 -1
  12. package/dist/index.d.ts +5 -0
  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/payment/payment.contracts.d.ts +16 -16
  22. package/dist/payment/payment.contracts.js +1 -1
  23. package/dist/payment/payment.schema.d.ts +15 -15
  24. package/dist/payment/payment.schema.js +1 -1
  25. package/dist/quote/quote.contracts.d.ts +35 -35
  26. package/dist/quote/quote.contracts.js +1 -1
  27. package/dist/quote/quote.schema.d.ts +24 -24
  28. package/dist/quote/quote.schema.js +1 -1
  29. package/package.json +11 -11
  30. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -1
  31. package/dist/libs/contracts/dist/client/index.js +0 -1
  32. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -1
  33. package/dist/libs/contracts/dist/client/react/form-render.js +0 -1
  34. package/dist/libs/contracts/dist/client/react/index.js +0 -1
  35. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  36. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -1
  37. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -76
  38. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -350
  39. package/dist/libs/contracts/dist/docs/index.js +0 -1
  40. package/dist/libs/contracts/dist/docs/presentations.js +0 -1
  41. package/dist/libs/contracts/dist/docs/registry.js +0 -1
  42. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -383
  43. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -68
  44. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -140
  45. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -86
  46. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -1
  47. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -58
  48. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -38
  49. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -213
  50. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -289
  51. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -1
  52. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -1
  53. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -262
  54. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -1
  55. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -57
  56. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -63
  57. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -36
  58. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -1
  59. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -20
  60. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -65
  61. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -1
  62. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -41
  63. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -122
  64. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -1
  65. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -68
  66. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -1
  67. package/dist/libs/contracts/dist/events.js +0 -1
  68. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  69. package/dist/libs/contracts/dist/index.js +0 -1
  70. package/dist/libs/contracts/dist/install.js +0 -1
  71. package/dist/libs/contracts/dist/integrations/contracts.js +0 -1
  72. package/dist/libs/contracts/dist/integrations/index.js +0 -1
  73. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -1
  74. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -1
  75. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -1
  76. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -1
  77. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -1
  78. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -1
  79. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -1
  80. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -1
  81. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -1
  82. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -1
  83. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -1
  84. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -1
  85. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -1
  86. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -1
  87. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -1
  88. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -1
  89. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -1
  90. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -1
  91. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  92. package/dist/libs/contracts/dist/knowledge/contracts.js +0 -1
  93. package/dist/libs/contracts/dist/knowledge/index.js +0 -1
  94. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -1
  95. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -1
  96. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -1
  97. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -1
  98. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -1
  99. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -1
  100. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -1
  101. package/dist/libs/contracts/dist/llm/exporters.js +0 -1
  102. package/dist/libs/contracts/dist/llm/index.js +0 -1
  103. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  104. package/dist/libs/contracts/dist/onboarding-base.js +0 -1
  105. package/dist/libs/contracts/dist/openapi.js +0 -1
  106. package/dist/libs/contracts/dist/ownership.js +0 -1
  107. package/dist/libs/contracts/dist/presentations.js +0 -1
  108. package/dist/libs/contracts/dist/presentations.v2.js +0 -1
  109. package/dist/libs/contracts/dist/prompt.js +0 -1
  110. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  111. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  112. package/dist/libs/contracts/dist/regenerator/service.js +0 -1
  113. package/dist/libs/contracts/dist/registry.js +0 -1
  114. package/dist/libs/contracts/dist/resources.js +0 -1
  115. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -1
  116. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -1
  117. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -1
  118. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -1
  119. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  120. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -1
  121. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  122. package/dist/libs/contracts/dist/schema/dist/index.js +0 -1
  123. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -1
  124. package/dist/libs/contracts/dist/server/index.js +0 -1
  125. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -1
  126. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -1
  127. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  128. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -1
  129. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  130. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  131. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  132. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  133. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  134. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  135. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  136. package/dist/libs/contracts/dist/spec.js +0 -1
  137. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  138. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  139. package/dist/libs/contracts/dist/tests/index.js +0 -1
  140. package/dist/libs/contracts/dist/tests/runner.js +0 -1
  141. package/dist/libs/contracts/dist/workflow/index.js +0 -1
  142. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  143. package/dist/libs/schema/dist/EnumType.js +0 -1
  144. package/dist/libs/schema/dist/FieldType.js +0 -1
  145. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -1
  146. package/dist/libs/schema/dist/SchemaModel.js +0 -1
  147. package/dist/libs/schema/dist/entity/defineEntity.js +0 -1
  148. package/dist/libs/schema/dist/entity/index.js +0 -1
  149. package/dist/libs/schema/dist/entity/types.js +0 -1
  150. package/dist/libs/schema/dist/index.js +0 -1
@@ -1,132 +1,132 @@
1
- import * as _lssm_lib_schema123 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts3 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema431 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts17 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_contracts3.ContractSpec<_lssm_lib_schema123.SchemaModel<{
8
+ declare const CreateQuoteContract: _lssm_lib_contracts17.ContractSpec<_lssm_lib_schema431.SchemaModel<{
9
9
  clientId: {
10
- type: _lssm_lib_schema123.FieldType<string, string>;
10
+ type: _lssm_lib_schema431.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  title: {
14
- type: _lssm_lib_schema123.FieldType<string, string>;
14
+ type: _lssm_lib_schema431.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  description: {
18
- type: _lssm_lib_schema123.FieldType<string, string>;
18
+ type: _lssm_lib_schema431.FieldType<string, string>;
19
19
  isOptional: true;
20
20
  };
21
21
  amount: {
22
- type: _lssm_lib_schema123.FieldType<number, number>;
22
+ type: _lssm_lib_schema431.FieldType<number, number>;
23
23
  isOptional: false;
24
24
  };
25
25
  currency: {
26
- type: _lssm_lib_schema123.FieldType<string, string>;
26
+ type: _lssm_lib_schema431.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  validUntil: {
30
- type: _lssm_lib_schema123.FieldType<Date, string>;
30
+ type: _lssm_lib_schema431.FieldType<Date, string>;
31
31
  isOptional: true;
32
32
  };
33
33
  orgId: {
34
- type: _lssm_lib_schema123.FieldType<string, string>;
34
+ type: _lssm_lib_schema431.FieldType<string, string>;
35
35
  isOptional: false;
36
36
  };
37
37
  ownerId: {
38
- type: _lssm_lib_schema123.FieldType<string, string>;
38
+ type: _lssm_lib_schema431.FieldType<string, string>;
39
39
  isOptional: false;
40
40
  };
41
- }>, _lssm_lib_schema123.SchemaModel<{
41
+ }>, _lssm_lib_schema431.SchemaModel<{
42
42
  id: {
43
- type: _lssm_lib_schema123.FieldType<string, string>;
43
+ type: _lssm_lib_schema431.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  clientId: {
47
- type: _lssm_lib_schema123.FieldType<string, string>;
47
+ type: _lssm_lib_schema431.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  title: {
51
- type: _lssm_lib_schema123.FieldType<string, string>;
51
+ type: _lssm_lib_schema431.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  description: {
55
- type: _lssm_lib_schema123.FieldType<string, string>;
55
+ type: _lssm_lib_schema431.FieldType<string, string>;
56
56
  isOptional: true;
57
57
  };
58
58
  amount: {
59
- type: _lssm_lib_schema123.FieldType<number, number>;
59
+ type: _lssm_lib_schema431.FieldType<number, number>;
60
60
  isOptional: false;
61
61
  };
62
62
  currency: {
63
- type: _lssm_lib_schema123.FieldType<string, string>;
63
+ type: _lssm_lib_schema431.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  status: {
67
- type: _lssm_lib_schema123.FieldType<string, string>;
67
+ type: _lssm_lib_schema431.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  validUntil: {
71
- type: _lssm_lib_schema123.FieldType<Date, string>;
71
+ type: _lssm_lib_schema431.FieldType<Date, string>;
72
72
  isOptional: true;
73
73
  };
74
74
  createdAt: {
75
- type: _lssm_lib_schema123.FieldType<Date, string>;
75
+ type: _lssm_lib_schema431.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_contracts3.ContractSpec<_lssm_lib_schema123.SchemaModel<{
82
+ declare const AcceptQuoteContract: _lssm_lib_contracts17.ContractSpec<_lssm_lib_schema431.SchemaModel<{
83
83
  quoteId: {
84
- type: _lssm_lib_schema123.FieldType<string, string>;
84
+ type: _lssm_lib_schema431.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  acceptedBy: {
88
- type: _lssm_lib_schema123.FieldType<string, string>;
88
+ type: _lssm_lib_schema431.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  notes: {
92
- type: _lssm_lib_schema123.FieldType<string, string>;
92
+ type: _lssm_lib_schema431.FieldType<string, string>;
93
93
  isOptional: true;
94
94
  };
95
- }>, _lssm_lib_schema123.SchemaModel<{
95
+ }>, _lssm_lib_schema431.SchemaModel<{
96
96
  id: {
97
- type: _lssm_lib_schema123.FieldType<string, string>;
97
+ type: _lssm_lib_schema431.FieldType<string, string>;
98
98
  isOptional: false;
99
99
  };
100
100
  clientId: {
101
- type: _lssm_lib_schema123.FieldType<string, string>;
101
+ type: _lssm_lib_schema431.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  title: {
105
- type: _lssm_lib_schema123.FieldType<string, string>;
105
+ type: _lssm_lib_schema431.FieldType<string, string>;
106
106
  isOptional: false;
107
107
  };
108
108
  description: {
109
- type: _lssm_lib_schema123.FieldType<string, string>;
109
+ type: _lssm_lib_schema431.FieldType<string, string>;
110
110
  isOptional: true;
111
111
  };
112
112
  amount: {
113
- type: _lssm_lib_schema123.FieldType<number, number>;
113
+ type: _lssm_lib_schema431.FieldType<number, number>;
114
114
  isOptional: false;
115
115
  };
116
116
  currency: {
117
- type: _lssm_lib_schema123.FieldType<string, string>;
117
+ type: _lssm_lib_schema431.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  status: {
121
- type: _lssm_lib_schema123.FieldType<string, string>;
121
+ type: _lssm_lib_schema431.FieldType<string, string>;
122
122
  isOptional: false;
123
123
  };
124
124
  validUntil: {
125
- type: _lssm_lib_schema123.FieldType<Date, string>;
125
+ type: _lssm_lib_schema431.FieldType<Date, string>;
126
126
  isOptional: true;
127
127
  };
128
128
  createdAt: {
129
- type: _lssm_lib_schema123.FieldType<Date, string>;
129
+ type: _lssm_lib_schema431.FieldType<Date, string>;
130
130
  isOptional: false;
131
131
  };
132
132
  }>, undefined>;
@@ -1 +1 @@
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
+ 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,98 +1,98 @@
1
- import * as _lssm_lib_schema441 from "@lssm/lib.schema";
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: _lssm_lib_schema441.SchemaModel<{
7
+ declare const QuoteModel: _lssm_lib_schema0.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema441.FieldType<string, string>;
9
+ type: _lssm_lib_schema0.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  clientId: {
13
- type: _lssm_lib_schema441.FieldType<string, string>;
13
+ type: _lssm_lib_schema0.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  title: {
17
- type: _lssm_lib_schema441.FieldType<string, string>;
17
+ type: _lssm_lib_schema0.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  description: {
21
- type: _lssm_lib_schema441.FieldType<string, string>;
21
+ type: _lssm_lib_schema0.FieldType<string, string>;
22
22
  isOptional: true;
23
23
  };
24
24
  amount: {
25
- type: _lssm_lib_schema441.FieldType<number, number>;
25
+ type: _lssm_lib_schema0.FieldType<number, number>;
26
26
  isOptional: false;
27
27
  };
28
28
  currency: {
29
- type: _lssm_lib_schema441.FieldType<string, string>;
29
+ type: _lssm_lib_schema0.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  status: {
33
- type: _lssm_lib_schema441.FieldType<string, string>;
33
+ type: _lssm_lib_schema0.FieldType<string, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  validUntil: {
37
- type: _lssm_lib_schema441.FieldType<Date, string>;
37
+ type: _lssm_lib_schema0.FieldType<Date, string>;
38
38
  isOptional: true;
39
39
  };
40
40
  createdAt: {
41
- type: _lssm_lib_schema441.FieldType<Date, string>;
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: _lssm_lib_schema441.SchemaModel<{
48
+ declare const CreateQuoteInputModel: _lssm_lib_schema0.SchemaModel<{
49
49
  clientId: {
50
- type: _lssm_lib_schema441.FieldType<string, string>;
50
+ type: _lssm_lib_schema0.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  title: {
54
- type: _lssm_lib_schema441.FieldType<string, string>;
54
+ type: _lssm_lib_schema0.FieldType<string, string>;
55
55
  isOptional: false;
56
56
  };
57
57
  description: {
58
- type: _lssm_lib_schema441.FieldType<string, string>;
58
+ type: _lssm_lib_schema0.FieldType<string, string>;
59
59
  isOptional: true;
60
60
  };
61
61
  amount: {
62
- type: _lssm_lib_schema441.FieldType<number, number>;
62
+ type: _lssm_lib_schema0.FieldType<number, number>;
63
63
  isOptional: false;
64
64
  };
65
65
  currency: {
66
- type: _lssm_lib_schema441.FieldType<string, string>;
66
+ type: _lssm_lib_schema0.FieldType<string, string>;
67
67
  isOptional: true;
68
68
  };
69
69
  validUntil: {
70
- type: _lssm_lib_schema441.FieldType<Date, string>;
70
+ type: _lssm_lib_schema0.FieldType<Date, string>;
71
71
  isOptional: true;
72
72
  };
73
73
  orgId: {
74
- type: _lssm_lib_schema441.FieldType<string, string>;
74
+ type: _lssm_lib_schema0.FieldType<string, string>;
75
75
  isOptional: false;
76
76
  };
77
77
  ownerId: {
78
- type: _lssm_lib_schema441.FieldType<string, string>;
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: _lssm_lib_schema441.SchemaModel<{
85
+ declare const AcceptQuoteInputModel: _lssm_lib_schema0.SchemaModel<{
86
86
  quoteId: {
87
- type: _lssm_lib_schema441.FieldType<string, string>;
87
+ type: _lssm_lib_schema0.FieldType<string, string>;
88
88
  isOptional: false;
89
89
  };
90
90
  acceptedBy: {
91
- type: _lssm_lib_schema441.FieldType<string, string>;
91
+ type: _lssm_lib_schema0.FieldType<string, string>;
92
92
  isOptional: false;
93
93
  };
94
94
  notes: {
95
- type: _lssm_lib_schema441.FieldType<string, string>;
95
+ type: _lssm_lib_schema0.FieldType<string, string>;
96
96
  isOptional: true;
97
97
  };
98
98
  }>;
@@ -1 +1 @@
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};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.service-business-os",
3
- "version": "0.0.0-canary-20251217062139",
3
+ "version": "0.0.0-canary-20251217060834",
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-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",
21
+ "@lssm/lib.schema": "0.0.0-canary-20251217060834",
22
+ "@lssm/lib.contracts": "0.0.0-canary-20251217060834",
23
+ "@lssm/lib.bus": "0.0.0-canary-20251217060834",
24
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251217060834",
25
+ "@lssm/lib.files": "0.0.0-canary-20251217060834",
26
+ "@lssm/lib.jobs": "0.0.0-canary-20251217060834",
27
+ "@lssm/module.audit-trail": "0.0.0-canary-20251217060834",
28
+ "@lssm/module.notifications": "0.0.0-canary-20251217060834",
29
29
  "zod": "^4.1.13"
30
30
  },
31
31
  "devDependencies": {
32
- "@lssm/tool.typescript": "0.0.0-canary-20251217062139",
33
- "@lssm/tool.tsdown": "0.0.0-canary-20251217062139",
32
+ "@lssm/tool.typescript": "0.0.0-canary-20251217060834",
33
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217060834",
34
34
  "typescript": "^5.9.3"
35
35
  },
36
36
  "exports": {
@@ -1 +0,0 @@
1
- import{e}from"../ownership.js";const t=[`platform.finance`],n=[`open-banking`,`finance`];[...t],[...n],e.Experimental,[...t],[...n],e.Experimental,[...t],[...n],e.Experimental;
@@ -1 +0,0 @@
1
- "use client";import"./react/feature-render.js";import"./react/form-render.js";import"./react/index.js";
@@ -1 +0,0 @@
1
- import"../../presentations.v2.js";import"react";
@@ -1 +0,0 @@
1
- import"react";import"react-hook-form";import"@hookform/resolvers/zod";import"react/jsx-runtime";
@@ -1 +0,0 @@
1
- "use client";import"./feature-render.js";import"./form-render.js";
@@ -1 +0,0 @@
1
- import{i as e,n as t,r as n}from"./schemas.js";
@@ -1 +0,0 @@
1
- import{e}from"../ownership.js";import t from"zod";const n=t.enum([`contractspec:operation`,`contractspec:event`,`contractspec:presentation`,`contractspec:form`,`contractspec:feature`,`contractspec:workflow`,`contractspec:template`,`contractspec:integration`,`contractspec:data-view`,`contractspec:migration`,`contractspec:telemetry`,`contractspec:experiment`,`contractspec:app-config`,`contractspec:knowledge`]),r=t.object({path:t.string().min(1),type:t.string().min(1),content:t.string().optional()}),i=t.object({name:t.string().min(1),type:n,version:t.number().int().nonnegative(),title:t.string().min(1),description:t.string().min(1),meta:t.object({stability:t.enum([e.Idea,e.InCreation,e.Experimental,e.Beta,e.Stable,e.Deprecated]),owners:t.array(t.string().min(1)).default([]),tags:t.array(t.string().min(1)).default([])}),dependencies:t.array(t.string().min(1)).optional(),registryDependencies:t.array(t.string().min(1)).optional(),files:t.array(r).min(1),schema:t.object({input:t.unknown().optional(),output:t.unknown().optional()}).optional()});t.object({$schema:t.string().min(1).optional(),name:t.string().min(1),homepage:t.string().min(1).optional(),items:t.array(i)});export{i,n,r};
@@ -1,76 +0,0 @@
1
- import{a as e}from"./registry.js";e([{id:`docs.PUBLISHING`,title:`Publishing ContractSpec Libraries`,summary:`This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).`,kind:`reference`,visibility:`public`,route:`/docs/PUBLISHING`,tags:[`PUBLISHING`],body:`# Publishing ContractSpec Libraries
2
-
3
- This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).
4
-
5
- ## Release Tracks
6
-
7
- | Track | Branch | npm Tag | Frequency | Versioning | Use Case |
8
- |-------|--------|---------|-----------|------------|----------|
9
- | **Stable** | \`release\` | \`latest\` | Manual | SemVer (e.g., \`1.7.4\`) | Production, external users |
10
- | **Canary** | \`main\` | \`canary\` | Every Push | Snapshot (e.g., \`1.7.4-canary...\`) | Dev, internal testing |
11
-
12
- ## Prerequisites
13
-
14
- - ✅ \`NPM_TOKEN\` secret is configured in GitHub (owner or automation token with _publish_ scope).
15
- - ✅ \`GITHUB_TOKEN\` (built-in) has permissions to create PRs (enabled by default in new repos).
16
- - ✅ For stable releases: \`release\` branch exists and is protected.
17
-
18
- ## Canary Workflow (Automatic)
19
-
20
- Every commit pushed to \`main\` triggers the \`.github/workflows/publish-canary.yml\` workflow.
21
-
22
- 1. **Trigger**: Push to \`main\`.
23
- 2. **Versioning**: Runs \`changeset version --snapshot canary\` to generate a temporary snapshot version.
24
- 3. **Publish**: Packages are published to npm with the \`canary\` tag using \`changeset publish --tag canary\`.
25
-
26
- ### Consuming Canary Builds
27
-
28
- To install the latest bleeding-edge version:
29
-
30
- \`\`\`bash
31
- npm install @lssm/lib.contracts@canary
32
- # or
33
- bun add @lssm/lib.contracts@canary
34
- \`\`\`
35
-
36
- ## Stable Release Workflow (Manual)
37
-
38
- Stable releases are managed via the \`release\` branch using the standard [Changesets Action](https://github.com/changesets/action).
39
-
40
- 1. **Develop on \`main\`**: Create features and fixes.
41
- 2. **Add Changesets**: Run \`bun changeset\` to document changes and impact (major/minor/patch).
42
- 3. **Merge to \`release\`**: When ready to ship, open a PR from \`main\` to \`release\` or merge manually.
43
- 4. **"Version Packages" PR**:
44
- - The GitHub Action detects new changesets and automatically creates a Pull Request titled **"Version Packages"**.
45
- - This PR contains the version bumps and updated \`CHANGELOG.md\` files.
46
- 5. **Merge & Publish**:
47
- - Review and merge the "Version Packages" PR.
48
- - The Action runs again, detects the versions have been bumped, builds the libraries, and publishes them to npm with the \`latest\` tag.
49
-
50
- ### Publishing Steps
51
-
52
- 1. Ensure all changesets are present on \`main\`.
53
- 2. Merge \`main\` into \`release\`:
54
- \`\`\`bash
55
- git checkout release
56
- git pull origin release
57
- git merge main
58
- git push origin release
59
- \`\`\`
60
- 3. Go to GitHub Pull Requests. You will see a **"Version Packages"** PR created by the bot.
61
- 4. Merge that PR.
62
- 5. The release is now live on npm!
63
-
64
- ## Manual Verification (Optional)
65
-
66
- Before publishing a new version you can run:
67
-
68
- \`\`\`bash
69
- bun run build:not-apps
70
- npx npm-packlist --json packages/libs/contracts
71
- \`\`\`
72
-
73
- ## Rollback
74
-
75
- If a publish fails mid-way, re-run the workflow once the issue is fixed. Already published packages are skipped automatically. Use \`npm deprecate <package>@<version>\` if we need to warn consumers about a broken release.
76
- `}]);