@lssm/example.service-business-os 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821

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 (212) hide show
  1. package/LICENSE +21 -0
  2. package/dist/client/client.contracts.d.ts +19 -18
  3. package/dist/client/client.contracts.d.ts.map +1 -0
  4. package/dist/client/client.contracts.js +2 -1
  5. package/dist/client/client.contracts.js.map +1 -0
  6. package/dist/client/client.schema.d.ts +18 -17
  7. package/dist/client/client.schema.d.ts.map +1 -0
  8. package/dist/client/client.schema.js +18 -19
  9. package/dist/client/client.schema.js.map +1 -0
  10. package/dist/docs/service-business-os.docblock.js +2 -1
  11. package/dist/docs/service-business-os.docblock.js.map +1 -0
  12. package/dist/entities/index.d.ts +157 -156
  13. package/dist/entities/index.d.ts.map +1 -0
  14. package/dist/entities/index.js +98 -98
  15. package/dist/entities/index.js.map +1 -0
  16. package/dist/events.d.ts +91 -90
  17. package/dist/events.d.ts.map +1 -0
  18. package/dist/events.js +32 -33
  19. package/dist/events.js.map +1 -0
  20. package/dist/example.d.ts +2 -1
  21. package/dist/example.d.ts.map +1 -0
  22. package/dist/example.js +2 -1
  23. package/dist/example.js.map +1 -0
  24. package/dist/handlers/index.d.ts +2 -1
  25. package/dist/handlers/index.d.ts.map +1 -0
  26. package/dist/handlers/index.js +2 -1
  27. package/dist/handlers/index.js.map +1 -0
  28. package/dist/invoice/invoice.contracts.d.ts +19 -18
  29. package/dist/invoice/invoice.contracts.d.ts.map +1 -0
  30. package/dist/invoice/invoice.contracts.js +2 -1
  31. package/dist/invoice/invoice.contracts.js.map +1 -0
  32. package/dist/invoice/invoice.schema.d.ts +18 -17
  33. package/dist/invoice/invoice.schema.d.ts.map +1 -0
  34. package/dist/invoice/invoice.schema.js +18 -19
  35. package/dist/invoice/invoice.schema.js.map +1 -0
  36. package/dist/job/job.contracts.d.ts +64 -63
  37. package/dist/job/job.contracts.d.ts.map +1 -0
  38. package/dist/job/job.contracts.js +10 -11
  39. package/dist/job/job.contracts.js.map +1 -0
  40. package/dist/job/job.schema.d.ts +22 -21
  41. package/dist/job/job.schema.d.ts.map +1 -0
  42. package/dist/job/job.schema.js +22 -23
  43. package/dist/job/job.schema.js.map +1 -0
  44. package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
  45. package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
  46. package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
  47. package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
  48. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
  49. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
  50. package/dist/libs/contracts/dist/docs/index.js +2 -6
  51. package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
  52. package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
  53. package/dist/libs/contracts/dist/docs/presentations.js +2 -1
  54. package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
  55. package/dist/libs/contracts/dist/docs/registry.js +2 -1
  56. package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
  57. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
  58. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
  59. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
  60. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
  61. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
  62. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
  63. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
  64. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
  65. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
  66. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
  67. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
  68. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
  69. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
  70. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
  71. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
  72. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
  73. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
  74. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
  75. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
  76. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
  77. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
  78. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
  79. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
  80. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
  81. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
  82. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
  83. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
  84. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
  85. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
  86. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
  87. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
  88. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
  89. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
  90. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
  91. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
  92. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
  93. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
  94. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
  95. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
  96. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
  97. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
  98. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
  99. package/dist/libs/contracts/dist/events.js +2 -1
  100. package/dist/libs/contracts/dist/events.js.map +1 -0
  101. package/dist/libs/contracts/dist/index.js +2 -1
  102. package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
  103. package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
  104. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
  105. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
  106. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
  107. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
  108. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
  109. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
  110. package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
  111. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
  112. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
  113. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
  114. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
  115. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
  116. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
  117. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
  118. package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
  119. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
  120. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
  121. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
  122. package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
  123. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
  124. package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
  125. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
  126. package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
  127. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
  128. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
  129. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
  130. package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
  131. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
  132. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
  133. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
  134. package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
  135. package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
  136. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
  137. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
  138. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
  139. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
  140. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
  141. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
  142. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
  143. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
  144. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
  145. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
  146. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
  147. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
  148. package/dist/libs/contracts/dist/llm/exporters.js +2 -1
  149. package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
  150. package/dist/libs/contracts/dist/onboarding-base.js +22 -23
  151. package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
  152. package/dist/libs/contracts/dist/ownership.js +4 -2
  153. package/dist/libs/contracts/dist/ownership.js.map +1 -0
  154. package/dist/libs/contracts/dist/presentations.v2.js +2 -1
  155. package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
  156. package/dist/libs/contracts/dist/regenerator/service.js +2 -1
  157. package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
  158. package/dist/libs/contracts/dist/schema/dist/index.js +3873 -6
  159. package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
  160. package/dist/libs/contracts/dist/spec.js +2 -1
  161. package/dist/libs/contracts/dist/spec.js.map +1 -0
  162. package/dist/libs/schema/dist/index.js +4889 -6
  163. package/dist/libs/schema/dist/index.js.map +1 -0
  164. package/dist/payment/payment.contracts.d.ts +18 -17
  165. package/dist/payment/payment.contracts.d.ts.map +1 -0
  166. package/dist/payment/payment.contracts.js +2 -1
  167. package/dist/payment/payment.contracts.js.map +1 -0
  168. package/dist/payment/payment.schema.d.ts +17 -16
  169. package/dist/payment/payment.schema.d.ts.map +1 -0
  170. package/dist/payment/payment.schema.js +17 -18
  171. package/dist/payment/payment.schema.js.map +1 -0
  172. package/dist/presentations/index.d.ts +2 -1
  173. package/dist/presentations/index.d.ts.map +1 -0
  174. package/dist/presentations/index.js +2 -1
  175. package/dist/presentations/index.js.map +1 -0
  176. package/dist/presentations.d.ts +2 -1
  177. package/dist/presentations.d.ts.map +1 -0
  178. package/dist/presentations.js +2 -1
  179. package/dist/presentations.js.map +1 -0
  180. package/dist/quote/quote.contracts.d.ts +37 -36
  181. package/dist/quote/quote.contracts.d.ts.map +1 -0
  182. package/dist/quote/quote.contracts.js +2 -1
  183. package/dist/quote/quote.contracts.js.map +1 -0
  184. package/dist/quote/quote.schema.d.ts +26 -25
  185. package/dist/quote/quote.schema.d.ts.map +1 -0
  186. package/dist/quote/quote.schema.js +26 -27
  187. package/dist/quote/quote.schema.js.map +1 -0
  188. package/dist/service.feature.d.ts +2 -1
  189. package/dist/service.feature.d.ts.map +1 -0
  190. package/dist/service.feature.js +2 -1
  191. package/dist/service.feature.js.map +1 -0
  192. package/package.json +19 -12
  193. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  194. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  195. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  196. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  197. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  198. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  199. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  200. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
  201. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  202. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
  203. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  204. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  205. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  206. package/dist/libs/schema/dist/EnumType.js +0 -2
  207. package/dist/libs/schema/dist/FieldType.js +0 -49
  208. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
  209. package/dist/libs/schema/dist/SchemaModel.js +0 -39
  210. package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
  211. package/dist/libs/schema/dist/entity/index.js +0 -2
  212. package/dist/libs/schema/dist/entity/types.js +0 -1
@@ -1,60 +1,61 @@
1
- import * as _lssm_lib_schema364 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts14 from "@lssm/lib.contracts";
1
+ import * as _lssm_lib_schema249 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts16 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_contracts14.ContractSpec<_lssm_lib_schema364.SchemaModel<{
8
+ declare const RecordPaymentContract: _lssm_lib_contracts16.ContractSpec<_lssm_lib_schema249.SchemaModel<{
9
9
  invoiceId: {
10
- type: _lssm_lib_schema364.FieldType<string, string>;
10
+ type: _lssm_lib_schema249.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  amount: {
14
- type: _lssm_lib_schema364.FieldType<number, number>;
14
+ type: _lssm_lib_schema249.FieldType<number, number>;
15
15
  isOptional: false;
16
16
  };
17
17
  method: {
18
- type: _lssm_lib_schema364.FieldType<string, string>;
18
+ type: _lssm_lib_schema249.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  reference: {
22
- type: _lssm_lib_schema364.FieldType<string, string>;
22
+ type: _lssm_lib_schema249.FieldType<string, string>;
23
23
  isOptional: true;
24
24
  };
25
25
  receivedAt: {
26
- type: _lssm_lib_schema364.FieldType<Date, string>;
26
+ type: _lssm_lib_schema249.FieldType<Date, string>;
27
27
  isOptional: true;
28
28
  };
29
- }>, _lssm_lib_schema364.SchemaModel<{
29
+ }>, _lssm_lib_schema249.SchemaModel<{
30
30
  id: {
31
- type: _lssm_lib_schema364.FieldType<string, string>;
31
+ type: _lssm_lib_schema249.FieldType<string, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  invoiceId: {
35
- type: _lssm_lib_schema364.FieldType<string, string>;
35
+ type: _lssm_lib_schema249.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  amount: {
39
- type: _lssm_lib_schema364.FieldType<number, number>;
39
+ type: _lssm_lib_schema249.FieldType<number, number>;
40
40
  isOptional: false;
41
41
  };
42
42
  currency: {
43
- type: _lssm_lib_schema364.FieldType<string, string>;
43
+ type: _lssm_lib_schema249.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  method: {
47
- type: _lssm_lib_schema364.FieldType<string, string>;
47
+ type: _lssm_lib_schema249.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  reference: {
51
- type: _lssm_lib_schema364.FieldType<string, string>;
51
+ type: _lssm_lib_schema249.FieldType<string, string>;
52
52
  isOptional: true;
53
53
  };
54
54
  receivedAt: {
55
- type: _lssm_lib_schema364.FieldType<Date, string>;
55
+ type: _lssm_lib_schema249.FieldType<Date, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  }>, undefined>;
59
59
  //#endregion
60
- export { RecordPaymentContract };
60
+ export { RecordPaymentContract };
61
+ //# sourceMappingURL=payment.contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.contracts.d.ts","names":[],"sources":["../../src/payment/payment.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQa,6CAAqB,iCAAA;EAArB,SAAA,EAAA;IAgBX,IAAA,EAAA,mBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAhBgC,MAAA,EAAA;;;;;;;;;uCAAA,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;UAAA,mBAAA,CAAA"}
@@ -30,4 +30,5 @@ const RecordPaymentContract = defineCommand({
30
30
  });
31
31
 
32
32
  //#endregion
33
- export { RecordPaymentContract };
33
+ export { RecordPaymentContract };
34
+ //# sourceMappingURL=payment.contracts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.contracts.js","names":[],"sources":["../../src/payment/payment.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts';\nimport { PaymentModel, RecordPaymentInputModel } from './payment.schema';\n\nconst OWNERS = ['@examples.service-business-os'] as const;\n\n/**\n * Record a payment.\n */\nexport const RecordPaymentContract = defineCommand({\n meta: {\n name: 'service.payment.record',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['service-business-os', 'payment', 'record'],\n description: 'Record a payment.',\n goal: 'Track payments.',\n context: 'Billing.',\n },\n io: {\n input: RecordPaymentInputModel,\n output: PaymentModel,\n },\n policy: { auth: 'user' },\n});\n"],"mappings":";;;;;AAGA,MAAM,SAAS,CAAC,gCAAgC;;;;AAKhD,MAAa,wBAAwB,cAAc;CACjD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAuB;GAAW;GAAS;EAClD,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC"}
@@ -1,63 +1,64 @@
1
- import * as _lssm_lib_schema271 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema263 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_schema271.SchemaModel<{
7
+ declare const PaymentModel: _lssm_lib_schema263.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema271.FieldType<string, string>;
9
+ type: _lssm_lib_schema263.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  invoiceId: {
13
- type: _lssm_lib_schema271.FieldType<string, string>;
13
+ type: _lssm_lib_schema263.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  amount: {
17
- type: _lssm_lib_schema271.FieldType<number, number>;
17
+ type: _lssm_lib_schema263.FieldType<number, number>;
18
18
  isOptional: false;
19
19
  };
20
20
  currency: {
21
- type: _lssm_lib_schema271.FieldType<string, string>;
21
+ type: _lssm_lib_schema263.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  method: {
25
- type: _lssm_lib_schema271.FieldType<string, string>;
25
+ type: _lssm_lib_schema263.FieldType<string, string>;
26
26
  isOptional: false;
27
27
  };
28
28
  reference: {
29
- type: _lssm_lib_schema271.FieldType<string, string>;
29
+ type: _lssm_lib_schema263.FieldType<string, string>;
30
30
  isOptional: true;
31
31
  };
32
32
  receivedAt: {
33
- type: _lssm_lib_schema271.FieldType<Date, string>;
33
+ type: _lssm_lib_schema263.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_schema271.SchemaModel<{
40
+ declare const RecordPaymentInputModel: _lssm_lib_schema263.SchemaModel<{
41
41
  invoiceId: {
42
- type: _lssm_lib_schema271.FieldType<string, string>;
42
+ type: _lssm_lib_schema263.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  amount: {
46
- type: _lssm_lib_schema271.FieldType<number, number>;
46
+ type: _lssm_lib_schema263.FieldType<number, number>;
47
47
  isOptional: false;
48
48
  };
49
49
  method: {
50
- type: _lssm_lib_schema271.FieldType<string, string>;
50
+ type: _lssm_lib_schema263.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  reference: {
54
- type: _lssm_lib_schema271.FieldType<string, string>;
54
+ type: _lssm_lib_schema263.FieldType<string, string>;
55
55
  isOptional: true;
56
56
  };
57
57
  receivedAt: {
58
- type: _lssm_lib_schema271.FieldType<Date, string>;
58
+ type: _lssm_lib_schema263.FieldType<Date, string>;
59
59
  isOptional: true;
60
60
  };
61
61
  }>;
62
62
  //#endregion
63
- export { PaymentModel, RecordPaymentInputModel };
63
+ export { PaymentModel, RecordPaymentInputModel };
64
+ //# sourceMappingURL=payment.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.schema.d.ts","names":[],"sources":["../../src/payment/payment.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,YAYX,sBAZuB,WAYvB,CAAA;EAAA,EAAA,EAAA;UAAA,mBAAA,CAAA;;;;;;;;IAZuB,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAiBZ,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;uCAVkC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;cAAvB,6CAAuB;;UAUlC,mBAAA,CAAA"}
@@ -1,41 +1,39 @@
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";
1
+ import { E5, K5 } from "../libs/schema/dist/index.js";
4
2
 
5
3
  //#region src/payment/payment.schema.ts
6
4
  /**
7
5
  * Payment applied to invoice.
8
6
  */
9
- const PaymentModel = defineSchemaModel({
7
+ const PaymentModel = K5({
10
8
  name: "Payment",
11
9
  description: "Payment applied to invoice",
12
10
  fields: {
13
11
  id: {
14
- type: ScalarTypeEnum.String_unsecure(),
12
+ type: E5.String_unsecure(),
15
13
  isOptional: false
16
14
  },
17
15
  invoiceId: {
18
- type: ScalarTypeEnum.String_unsecure(),
16
+ type: E5.String_unsecure(),
19
17
  isOptional: false
20
18
  },
21
19
  amount: {
22
- type: ScalarTypeEnum.Float_unsecure(),
20
+ type: E5.Float_unsecure(),
23
21
  isOptional: false
24
22
  },
25
23
  currency: {
26
- type: ScalarTypeEnum.String_unsecure(),
24
+ type: E5.String_unsecure(),
27
25
  isOptional: false
28
26
  },
29
27
  method: {
30
- type: ScalarTypeEnum.String_unsecure(),
28
+ type: E5.String_unsecure(),
31
29
  isOptional: false
32
30
  },
33
31
  reference: {
34
- type: ScalarTypeEnum.String_unsecure(),
32
+ type: E5.String_unsecure(),
35
33
  isOptional: true
36
34
  },
37
35
  receivedAt: {
38
- type: ScalarTypeEnum.DateTime(),
36
+ type: E5.DateTime(),
39
37
  isOptional: false
40
38
  }
41
39
  }
@@ -43,32 +41,33 @@ const PaymentModel = defineSchemaModel({
43
41
  /**
44
42
  * Input for recording a payment.
45
43
  */
46
- const RecordPaymentInputModel = defineSchemaModel({
44
+ const RecordPaymentInputModel = K5({
47
45
  name: "RecordPaymentInput",
48
46
  description: "Input for recording a payment",
49
47
  fields: {
50
48
  invoiceId: {
51
- type: ScalarTypeEnum.String_unsecure(),
49
+ type: E5.String_unsecure(),
52
50
  isOptional: false
53
51
  },
54
52
  amount: {
55
- type: ScalarTypeEnum.Float_unsecure(),
53
+ type: E5.Float_unsecure(),
56
54
  isOptional: false
57
55
  },
58
56
  method: {
59
- type: ScalarTypeEnum.String_unsecure(),
57
+ type: E5.String_unsecure(),
60
58
  isOptional: false
61
59
  },
62
60
  reference: {
63
- type: ScalarTypeEnum.String_unsecure(),
61
+ type: E5.String_unsecure(),
64
62
  isOptional: true
65
63
  },
66
64
  receivedAt: {
67
- type: ScalarTypeEnum.DateTime(),
65
+ type: E5.DateTime(),
68
66
  isOptional: true
69
67
  }
70
68
  }
71
69
  });
72
70
 
73
71
  //#endregion
74
- export { PaymentModel, RecordPaymentInputModel };
72
+ export { PaymentModel, RecordPaymentInputModel };
73
+ //# sourceMappingURL=payment.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/payment/payment.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\n\n/**\n * Payment applied to invoice.\n */\nexport const PaymentModel = defineSchemaModel({\n name: 'Payment',\n description: 'Payment applied to invoice',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n invoiceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n method: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n reference: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n receivedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for recording a payment.\n */\nexport const RecordPaymentInputModel = defineSchemaModel({\n name: 'RecordPaymentInput',\n description: 'Input for recording a payment',\n fields: {\n invoiceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n method: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n reference: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n receivedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n },\n});\n"],"mappings":";;;;;;AAKA,MAAa,eAAeA,GAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,QAAQ;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACpE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,YAAY;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACnE;CACF,CAAC;;;;AAKF,MAAa,0BAA0BD,GAAkB;CACvD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,WAAW;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,QAAQ;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACpE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,YAAY;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAM;EAClE;CACF,CAAC"}
@@ -5,4 +5,5 @@
5
5
  */
6
6
  declare const ServiceBusinessPresentations: string[];
7
7
  //#endregion
8
- export { ServiceBusinessPresentations };
8
+ export { ServiceBusinessPresentations };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/presentations/index.ts"],"sourcesContent":[],"mappings":";;AAIA;;;cAAa"}
@@ -14,4 +14,5 @@ const ServiceBusinessPresentations = [
14
14
  ];
15
15
 
16
16
  //#endregion
17
- export { ServiceBusinessPresentations };
17
+ export { ServiceBusinessPresentations };
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/presentations/index.ts"],"sourcesContent":["/**\n * Presentation descriptors for Service Business OS.\n * These names map to renderers in Studio (react/markdown) to keep specs multi-surface.\n */\nexport const ServiceBusinessPresentations = [\n 'service-business-os.dashboard',\n 'service-business-os.client.list',\n 'service-business-os.quote.list',\n 'service-business-os.quote.detail',\n 'service-business-os.job.board',\n 'service-business-os.invoice.list',\n 'service-business-os.payment.list',\n];\n"],"mappings":";;;;;AAIA,MAAa,+BAA+B;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
@@ -9,4 +9,5 @@ declare const JobBoardPresentation: PresentationDescriptorV2;
9
9
  declare const InvoiceListPresentation: PresentationDescriptorV2;
10
10
  declare const PaymentListPresentation: PresentationDescriptorV2;
11
11
  //#endregion
12
- export { ClientListPresentation, InvoiceListPresentation, JobBoardPresentation, PaymentListPresentation, QuoteDetailPresentation, QuoteListPresentation, ServiceDashboardPresentation };
12
+ export { ClientListPresentation, InvoiceListPresentation, JobBoardPresentation, PaymentListPresentation, QuoteDetailPresentation, QuoteListPresentation, ServiceDashboardPresentation };
13
+ //# sourceMappingURL=presentations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentations.d.ts","names":[],"sources":["../src/presentations.ts"],"sourcesContent":[],"mappings":";;;cAEa,8BAA8B;cAoB9B,wBAAwB;AApBxB,cAwCA,qBAtBZ,EAsBmC,wBAxCO;AAoB9B,cAwCA,uBAxCwB,EAwCC,wBAtBrC;AAEY,cAwCA,oBAxCuB,EAwCD,wBAtBlC;AAEY,cAwCA,uBAxCyB,EAwCA,wBAtBrC;AAEY,cAwCA,uBAxCsB,EAwCG,wBAtBrC"}
@@ -145,4 +145,5 @@ const PaymentListPresentation = {
145
145
  };
146
146
 
147
147
  //#endregion
148
- export { ClientListPresentation, InvoiceListPresentation, JobBoardPresentation, PaymentListPresentation, QuoteDetailPresentation, QuoteListPresentation, ServiceDashboardPresentation };
148
+ export { ClientListPresentation, InvoiceListPresentation, JobBoardPresentation, PaymentListPresentation, QuoteDetailPresentation, QuoteListPresentation, ServiceDashboardPresentation };
149
+ //# sourceMappingURL=presentations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentations.js","names":["ServiceDashboardPresentation: PresentationDescriptorV2","ClientListPresentation: PresentationDescriptorV2","QuoteListPresentation: PresentationDescriptorV2","QuoteDetailPresentation: PresentationDescriptorV2","JobBoardPresentation: PresentationDescriptorV2","InvoiceListPresentation: PresentationDescriptorV2","PaymentListPresentation: PresentationDescriptorV2"],"sources":["../src/presentations.ts"],"sourcesContent":["import type { PresentationDescriptorV2 } from '@lssm/lib.contracts';\n\nexport const ServiceDashboardPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'service-business-os.dashboard',\n version: 1,\n description: 'Service business dashboard with overview metrics',\n domain: 'services',\n owners: ['@service-os'],\n tags: ['services', 'dashboard'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ServiceDashboard',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['service.dashboard.enabled'],\n },\n};\n\nexport const ClientListPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'service-business-os.client.list',\n version: 1,\n description: 'List of service clients',\n domain: 'services',\n owners: ['@service-os'],\n tags: ['services', 'clients', 'list'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ClientList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['service.clients.enabled'],\n },\n};\n\nexport const QuoteListPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'service-business-os.quote.list',\n version: 1,\n description: 'List of quotes with status',\n domain: 'services',\n owners: ['@service-os'],\n tags: ['services', 'quotes', 'list'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'QuoteList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['service.quotes.enabled'],\n },\n};\n\nexport const QuoteDetailPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'service-business-os.quote.detail',\n version: 1,\n description: 'Quote detail with line items',\n domain: 'services',\n owners: ['@service-os'],\n tags: ['services', 'quote', 'detail'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'QuoteDetail',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['service.quotes.enabled'],\n },\n};\n\nexport const JobBoardPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'service-business-os.job.board',\n version: 1,\n description: 'Job board with kanban view',\n domain: 'services',\n owners: ['@service-os'],\n tags: ['services', 'jobs', 'board', 'kanban'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'JobBoard',\n },\n targets: ['react'],\n policy: {\n flags: ['service.jobs.enabled'],\n },\n};\n\nexport const InvoiceListPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'service-business-os.invoice.list',\n version: 1,\n description: 'List of invoices with payment status',\n domain: 'services',\n owners: ['@service-os'],\n tags: ['services', 'invoices', 'list'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'InvoiceList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['service.invoices.enabled'],\n },\n};\n\nexport const PaymentListPresentation: PresentationDescriptorV2 = {\n meta: {\n name: 'service-business-os.payment.list',\n version: 1,\n description: 'List of payments received',\n domain: 'services',\n owners: ['@service-os'],\n tags: ['services', 'payments', 'list'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PaymentList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['service.payments.enabled'],\n },\n};\n"],"mappings":";AAEA,MAAaA,+BAAyD;CACpE,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,cAAc;EACvB,MAAM,CAAC,YAAY,YAAY;EAChC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,4BAA4B,EACrC;CACF;AAED,MAAaC,yBAAmD;CAC9D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAY;GAAW;GAAO;EACtC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,0BAA0B,EACnC;CACF;AAED,MAAaC,wBAAkD;CAC7D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAY;GAAU;GAAO;EACrC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,yBAAyB,EAClC;CACF;AAED,MAAaC,0BAAoD;CAC/D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAY;GAAS;GAAS;EACtC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,yBAAyB,EAClC;CACF;AAED,MAAaC,uBAAiD;CAC5D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAY;GAAQ;GAAS;GAAS;EAC9C;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,uBAAuB,EAChC;CACF;AAED,MAAaC,0BAAoD;CAC/D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAY;GAAY;GAAO;EACvC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,2BAA2B,EACpC;CACF;AAED,MAAaC,0BAAoD;CAC/D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAY;GAAY;GAAO;EACvC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,2BAA2B,EACpC;CACF"}
@@ -1,134 +1,135 @@
1
- import * as _lssm_lib_schema401 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts15 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_contracts15.ContractSpec<_lssm_lib_schema401.SchemaModel<{
8
+ declare const CreateQuoteContract: _lssm_lib_contracts17.ContractSpec<_lssm_lib_schema431.SchemaModel<{
9
9
  clientId: {
10
- type: _lssm_lib_schema401.FieldType<string, string>;
10
+ type: _lssm_lib_schema431.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  title: {
14
- type: _lssm_lib_schema401.FieldType<string, string>;
14
+ type: _lssm_lib_schema431.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  description: {
18
- type: _lssm_lib_schema401.FieldType<string, string>;
18
+ type: _lssm_lib_schema431.FieldType<string, string>;
19
19
  isOptional: true;
20
20
  };
21
21
  amount: {
22
- type: _lssm_lib_schema401.FieldType<number, number>;
22
+ type: _lssm_lib_schema431.FieldType<number, number>;
23
23
  isOptional: false;
24
24
  };
25
25
  currency: {
26
- type: _lssm_lib_schema401.FieldType<string, string>;
26
+ type: _lssm_lib_schema431.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  validUntil: {
30
- type: _lssm_lib_schema401.FieldType<Date, string>;
30
+ type: _lssm_lib_schema431.FieldType<Date, string>;
31
31
  isOptional: true;
32
32
  };
33
33
  orgId: {
34
- type: _lssm_lib_schema401.FieldType<string, string>;
34
+ type: _lssm_lib_schema431.FieldType<string, string>;
35
35
  isOptional: false;
36
36
  };
37
37
  ownerId: {
38
- type: _lssm_lib_schema401.FieldType<string, string>;
38
+ type: _lssm_lib_schema431.FieldType<string, string>;
39
39
  isOptional: false;
40
40
  };
41
- }>, _lssm_lib_schema401.SchemaModel<{
41
+ }>, _lssm_lib_schema431.SchemaModel<{
42
42
  id: {
43
- type: _lssm_lib_schema401.FieldType<string, string>;
43
+ type: _lssm_lib_schema431.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  clientId: {
47
- type: _lssm_lib_schema401.FieldType<string, string>;
47
+ type: _lssm_lib_schema431.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  title: {
51
- type: _lssm_lib_schema401.FieldType<string, string>;
51
+ type: _lssm_lib_schema431.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  description: {
55
- type: _lssm_lib_schema401.FieldType<string, string>;
55
+ type: _lssm_lib_schema431.FieldType<string, string>;
56
56
  isOptional: true;
57
57
  };
58
58
  amount: {
59
- type: _lssm_lib_schema401.FieldType<number, number>;
59
+ type: _lssm_lib_schema431.FieldType<number, number>;
60
60
  isOptional: false;
61
61
  };
62
62
  currency: {
63
- type: _lssm_lib_schema401.FieldType<string, string>;
63
+ type: _lssm_lib_schema431.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  status: {
67
- type: _lssm_lib_schema401.FieldType<string, string>;
67
+ type: _lssm_lib_schema431.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  validUntil: {
71
- type: _lssm_lib_schema401.FieldType<Date, string>;
71
+ type: _lssm_lib_schema431.FieldType<Date, string>;
72
72
  isOptional: true;
73
73
  };
74
74
  createdAt: {
75
- type: _lssm_lib_schema401.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_contracts15.ContractSpec<_lssm_lib_schema401.SchemaModel<{
82
+ declare const AcceptQuoteContract: _lssm_lib_contracts17.ContractSpec<_lssm_lib_schema431.SchemaModel<{
83
83
  quoteId: {
84
- type: _lssm_lib_schema401.FieldType<string, string>;
84
+ type: _lssm_lib_schema431.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  acceptedBy: {
88
- type: _lssm_lib_schema401.FieldType<string, string>;
88
+ type: _lssm_lib_schema431.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  notes: {
92
- type: _lssm_lib_schema401.FieldType<string, string>;
92
+ type: _lssm_lib_schema431.FieldType<string, string>;
93
93
  isOptional: true;
94
94
  };
95
- }>, _lssm_lib_schema401.SchemaModel<{
95
+ }>, _lssm_lib_schema431.SchemaModel<{
96
96
  id: {
97
- type: _lssm_lib_schema401.FieldType<string, string>;
97
+ type: _lssm_lib_schema431.FieldType<string, string>;
98
98
  isOptional: false;
99
99
  };
100
100
  clientId: {
101
- type: _lssm_lib_schema401.FieldType<string, string>;
101
+ type: _lssm_lib_schema431.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  title: {
105
- type: _lssm_lib_schema401.FieldType<string, string>;
105
+ type: _lssm_lib_schema431.FieldType<string, string>;
106
106
  isOptional: false;
107
107
  };
108
108
  description: {
109
- type: _lssm_lib_schema401.FieldType<string, string>;
109
+ type: _lssm_lib_schema431.FieldType<string, string>;
110
110
  isOptional: true;
111
111
  };
112
112
  amount: {
113
- type: _lssm_lib_schema401.FieldType<number, number>;
113
+ type: _lssm_lib_schema431.FieldType<number, number>;
114
114
  isOptional: false;
115
115
  };
116
116
  currency: {
117
- type: _lssm_lib_schema401.FieldType<string, string>;
117
+ type: _lssm_lib_schema431.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  status: {
121
- type: _lssm_lib_schema401.FieldType<string, string>;
121
+ type: _lssm_lib_schema431.FieldType<string, string>;
122
122
  isOptional: false;
123
123
  };
124
124
  validUntil: {
125
- type: _lssm_lib_schema401.FieldType<Date, string>;
125
+ type: _lssm_lib_schema431.FieldType<Date, string>;
126
126
  isOptional: true;
127
127
  };
128
128
  createdAt: {
129
- type: _lssm_lib_schema401.FieldType<Date, string>;
129
+ type: _lssm_lib_schema431.FieldType<Date, string>;
130
130
  isOptional: false;
131
131
  };
132
132
  }>, undefined>;
133
133
  //#endregion
134
- export { AcceptQuoteContract, CreateQuoteContract };
134
+ export { AcceptQuoteContract, CreateQuoteContract };
135
+ //# sourceMappingURL=quote.contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quote.contracts.d.ts","names":[],"sources":["../../src/quote/quote.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAYa,2CAAmB,iCAAA;EAAnB,QAAA,EAAA;IAgBX,IAAA,EAAA,mBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;oBAhB8B;EAAA,CAAA;;;;;;;;;;;;;EAAA,KAAA,EAAA;IAqBnB,IAAA,+BAgBX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;uCAhB8B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;UArBA,mBAAA,CAAA;;;;;;;;uCAqBA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAnB,2CAAmB,iCAAA;;UAgB9B,mBAAA,CAAA;;;;;;;;;;;;;UAhB8B,mBAAA,CAAA"}
@@ -54,4 +54,5 @@ const AcceptQuoteContract = defineCommand({
54
54
  });
55
55
 
56
56
  //#endregion
57
- export { AcceptQuoteContract, CreateQuoteContract };
57
+ export { AcceptQuoteContract, CreateQuoteContract };
58
+ //# sourceMappingURL=quote.contracts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quote.contracts.js","names":[],"sources":["../../src/quote/quote.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts';\nimport {\n QuoteModel,\n CreateQuoteInputModel,\n AcceptQuoteInputModel,\n} from './quote.schema';\n\nconst OWNERS = ['@examples.service-business-os'] as const;\n\n/**\n * Create a new quote.\n */\nexport const CreateQuoteContract = defineCommand({\n meta: {\n name: 'service.quote.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['service-business-os', 'quote', 'create'],\n description: 'Create a quote/proposal.',\n goal: 'Quote clients.',\n context: 'Quote creation.',\n },\n io: {\n input: CreateQuoteInputModel,\n output: QuoteModel,\n },\n policy: { auth: 'user' },\n});\n\n/**\n * Accept a quote.\n */\nexport const AcceptQuoteContract = defineCommand({\n meta: {\n name: 'service.quote.accept',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['service-business-os', 'quote', 'accept'],\n description: 'Accept a quote.',\n goal: 'Confirm quote.',\n context: 'Quote acceptance.',\n },\n io: {\n input: AcceptQuoteInputModel,\n output: QuoteModel,\n },\n policy: { auth: 'user' },\n});\n"],"mappings":";;;;;AAOA,MAAM,SAAS,CAAC,gCAAgC;;;;AAKhD,MAAa,sBAAsB,cAAc;CAC/C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAuB;GAAS;GAAS;EAChD,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC;;;;AAKF,MAAa,sBAAsB,cAAc;CAC/C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAuB;GAAS;GAAS;EAChD,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC"}