@contractspec/example.service-business-os 3.7.17 → 3.7.19

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 (82) hide show
  1. package/dist/browser/client/client.operations.js +1 -72
  2. package/dist/browser/client/client.schema.js +1 -31
  3. package/dist/browser/client/index.js +1 -74
  4. package/dist/browser/docs/index.js +5 -49
  5. package/dist/browser/docs/service-business-os.docblock.js +5 -49
  6. package/dist/browser/entities/index.js +1 -246
  7. package/dist/browser/events.js +1 -135
  8. package/dist/browser/example.js +1 -39
  9. package/dist/browser/handlers/index.js +1 -5
  10. package/dist/browser/index.js +1 -766
  11. package/dist/browser/invoice/index.js +1 -77
  12. package/dist/browser/invoice/invoice.operations.js +1 -75
  13. package/dist/browser/invoice/invoice.schema.js +1 -34
  14. package/dist/browser/job/index.js +1 -175
  15. package/dist/browser/job/job.operations.js +1 -172
  16. package/dist/browser/job/job.schema.js +1 -41
  17. package/dist/browser/operations/index.js +1 -506
  18. package/dist/browser/payment/index.js +1 -69
  19. package/dist/browser/payment/payment.operations.js +1 -67
  20. package/dist/browser/payment/payment.schema.js +1 -30
  21. package/dist/browser/presentations/index.js +1 -13
  22. package/dist/browser/presentations.js +1 -175
  23. package/dist/browser/quote/index.js +1 -122
  24. package/dist/browser/quote/quote.operations.js +1 -119
  25. package/dist/browser/quote/quote.schema.js +1 -45
  26. package/dist/browser/service-business-os.capability.js +1 -31
  27. package/dist/browser/service.feature.js +1 -85
  28. package/dist/client/client.operations.js +1 -72
  29. package/dist/client/client.schema.js +1 -31
  30. package/dist/client/index.js +1 -74
  31. package/dist/docs/index.js +5 -49
  32. package/dist/docs/service-business-os.docblock.js +5 -49
  33. package/dist/entities/index.js +1 -246
  34. package/dist/events.js +1 -135
  35. package/dist/example.js +1 -39
  36. package/dist/handlers/index.js +1 -5
  37. package/dist/index.js +1 -766
  38. package/dist/invoice/index.js +1 -77
  39. package/dist/invoice/invoice.operations.js +1 -75
  40. package/dist/invoice/invoice.schema.js +1 -34
  41. package/dist/job/index.js +1 -175
  42. package/dist/job/job.operations.js +1 -172
  43. package/dist/job/job.schema.js +1 -41
  44. package/dist/node/client/client.operations.js +1 -72
  45. package/dist/node/client/client.schema.js +1 -31
  46. package/dist/node/client/index.js +1 -74
  47. package/dist/node/docs/index.js +5 -49
  48. package/dist/node/docs/service-business-os.docblock.js +5 -49
  49. package/dist/node/entities/index.js +1 -246
  50. package/dist/node/events.js +1 -135
  51. package/dist/node/example.js +1 -39
  52. package/dist/node/handlers/index.js +1 -5
  53. package/dist/node/index.js +1 -766
  54. package/dist/node/invoice/index.js +1 -77
  55. package/dist/node/invoice/invoice.operations.js +1 -75
  56. package/dist/node/invoice/invoice.schema.js +1 -34
  57. package/dist/node/job/index.js +1 -175
  58. package/dist/node/job/job.operations.js +1 -172
  59. package/dist/node/job/job.schema.js +1 -41
  60. package/dist/node/operations/index.js +1 -506
  61. package/dist/node/payment/index.js +1 -69
  62. package/dist/node/payment/payment.operations.js +1 -67
  63. package/dist/node/payment/payment.schema.js +1 -30
  64. package/dist/node/presentations/index.js +1 -13
  65. package/dist/node/presentations.js +1 -175
  66. package/dist/node/quote/index.js +1 -122
  67. package/dist/node/quote/quote.operations.js +1 -119
  68. package/dist/node/quote/quote.schema.js +1 -45
  69. package/dist/node/service-business-os.capability.js +1 -31
  70. package/dist/node/service.feature.js +1 -85
  71. package/dist/operations/index.js +1 -506
  72. package/dist/payment/index.js +1 -69
  73. package/dist/payment/payment.operations.js +1 -67
  74. package/dist/payment/payment.schema.js +1 -30
  75. package/dist/presentations/index.js +1 -13
  76. package/dist/presentations.js +1 -175
  77. package/dist/quote/index.js +1 -122
  78. package/dist/quote/quote.operations.js +1 -119
  79. package/dist/quote/quote.schema.js +1 -45
  80. package/dist/service-business-os.capability.js +1 -31
  81. package/dist/service.feature.js +1 -85
  82. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,767 +1,2 @@
1
1
  // @bun
2
- // src/client/client.schema.ts
3
- import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
4
- var ClientModel = defineSchemaModel({
5
- name: "Client",
6
- description: "Client profile",
7
- fields: {
8
- id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
9
- name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
10
- contactEmail: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
11
- phone: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
12
- orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
13
- ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
14
- createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
15
- }
16
- });
17
- var CreateClientInputModel = defineSchemaModel({
18
- name: "CreateClientInput",
19
- description: "Input for creating a client",
20
- fields: {
21
- name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
22
- contactEmail: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
23
- phone: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
24
- orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
25
- ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
26
- metadata: { type: ScalarTypeEnum.JSON(), isOptional: true }
27
- }
28
- });
29
-
30
- // src/client/client.operations.ts
31
- import { defineCommand } from "@contractspec/lib.contracts-spec";
32
- var OWNERS = ["@examples.service-business-os"];
33
- var CreateClientContract = defineCommand({
34
- meta: {
35
- key: "service.client.create",
36
- version: "1.0.0",
37
- stability: "stable",
38
- owners: [...OWNERS],
39
- tags: ["service-business-os", "client", "create"],
40
- description: "Create a new client.",
41
- goal: "Onboard clients.",
42
- context: "CRM."
43
- },
44
- io: {
45
- input: CreateClientInputModel,
46
- output: ClientModel
47
- },
48
- policy: { auth: "user" },
49
- acceptance: {
50
- scenarios: [
51
- {
52
- key: "create-client-happy-path",
53
- given: ["User is authenticated"],
54
- when: ["User creates a new client"],
55
- then: ["Client is created"]
56
- }
57
- ],
58
- examples: [
59
- {
60
- key: "create-basic",
61
- input: {
62
- name: "Acme Corp",
63
- email: "contact@acme.com",
64
- phone: "555-0123"
65
- },
66
- output: { id: "client-123", name: "Acme Corp" }
67
- }
68
- ]
69
- }
70
- });
71
- // src/invoice/invoice.schema.ts
72
- import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
73
- var InvoiceModel = defineSchemaModel2({
74
- name: "Invoice",
75
- description: "Invoice issued for a job",
76
- fields: {
77
- id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
78
- jobId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
79
- invoiceNumber: {
80
- type: ScalarTypeEnum2.String_unsecure(),
81
- isOptional: false
82
- },
83
- amount: { type: ScalarTypeEnum2.Float_unsecure(), isOptional: false },
84
- currency: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
85
- status: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
86
- dueDate: { type: ScalarTypeEnum2.DateTime(), isOptional: true },
87
- issuedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: true },
88
- paidAt: { type: ScalarTypeEnum2.DateTime(), isOptional: true }
89
- }
90
- });
91
- var IssueInvoiceInputModel = defineSchemaModel2({
92
- name: "IssueInvoiceInput",
93
- description: "Input for issuing an invoice",
94
- fields: {
95
- jobId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
96
- dueDate: { type: ScalarTypeEnum2.DateTime(), isOptional: true },
97
- notes: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
98
- lineItems: { type: ScalarTypeEnum2.JSON(), isOptional: true }
99
- }
100
- });
101
-
102
- // src/invoice/invoice.operations.ts
103
- import { defineCommand as defineCommand2 } from "@contractspec/lib.contracts-spec";
104
- var OWNERS2 = ["@examples.service-business-os"];
105
- var IssueInvoiceContract = defineCommand2({
106
- meta: {
107
- key: "service.invoice.issue",
108
- version: "1.0.0",
109
- stability: "stable",
110
- owners: [...OWNERS2],
111
- tags: ["service-business-os", "invoice", "issue"],
112
- description: "Issue an invoice for a job.",
113
- goal: "Bill clients.",
114
- context: "Billing."
115
- },
116
- io: {
117
- input: IssueInvoiceInputModel,
118
- output: InvoiceModel
119
- },
120
- policy: { auth: "user" },
121
- acceptance: {
122
- scenarios: [
123
- {
124
- key: "issue-invoice-happy-path",
125
- given: ["Job is complete"],
126
- when: ["User issues invoice"],
127
- then: ["Invoice is created and sent"]
128
- }
129
- ],
130
- examples: [
131
- {
132
- key: "issue-standard",
133
- input: {
134
- jobId: "job-123",
135
- dueDate: "2025-02-01",
136
- items: [{ description: "Service", amount: 100 }]
137
- },
138
- output: { id: "inv-456", status: "issued", total: 100 }
139
- }
140
- ]
141
- }
142
- });
143
- // src/job/job.schema.ts
144
- import { defineSchemaModel as defineSchemaModel3, ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
145
- var JobModel = defineSchemaModel3({
146
- name: "Job",
147
- description: "Scheduled job",
148
- fields: {
149
- id: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
150
- quoteId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
151
- clientId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
152
- title: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
153
- status: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
154
- scheduledAt: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
155
- completedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
156
- assignedTo: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true }
157
- }
158
- });
159
- var ScheduleJobInputModel = defineSchemaModel3({
160
- name: "ScheduleJobInput",
161
- description: "Input for scheduling a job",
162
- fields: {
163
- quoteId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
164
- scheduledAt: { type: ScalarTypeEnum3.DateTime(), isOptional: false },
165
- assignedTo: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
166
- location: { type: ScalarTypeEnum3.JSON(), isOptional: true },
167
- title: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true }
168
- }
169
- });
170
- var CompleteJobInputModel = defineSchemaModel3({
171
- name: "CompleteJobInput",
172
- description: "Input for completing a job",
173
- fields: {
174
- jobId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
175
- completedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
176
- notes: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true }
177
- }
178
- });
179
-
180
- // src/job/job.operations.ts
181
- import { defineCommand as defineCommand3, defineQuery } from "@contractspec/lib.contracts-spec";
182
- import { defineSchemaModel as defineSchemaModel4, ScalarTypeEnum as ScalarTypeEnum4 } from "@contractspec/lib.schema";
183
- var OWNERS3 = ["@examples.service-business-os"];
184
- var ListJobsInputModel = defineSchemaModel4({
185
- name: "ListJobsInput",
186
- description: "Input for listing jobs",
187
- fields: {
188
- status: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
189
- clientId: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
190
- limit: { type: ScalarTypeEnum4.Int_unsecure(), isOptional: true },
191
- offset: { type: ScalarTypeEnum4.Int_unsecure(), isOptional: true }
192
- }
193
- });
194
- var ListJobsOutputModel = defineSchemaModel4({
195
- name: "ListJobsOutput",
196
- description: "Output for listing jobs",
197
- fields: {
198
- jobs: { type: JobModel, isOptional: false, isList: true },
199
- total: { type: ScalarTypeEnum4.Int_unsecure(), isOptional: false }
200
- }
201
- });
202
- var ListJobsOperation = defineQuery({
203
- meta: {
204
- key: "service.job.list",
205
- version: "1.0.0",
206
- stability: "stable",
207
- owners: [...OWNERS3],
208
- tags: ["service-business-os", "job", "list", "query"],
209
- description: "List all jobs with filtering",
210
- goal: "Retrieve list of jobs",
211
- context: "Job management"
212
- },
213
- io: {
214
- input: ListJobsInputModel,
215
- output: ListJobsOutputModel
216
- },
217
- policy: { auth: "user" },
218
- acceptance: {
219
- scenarios: [
220
- {
221
- key: "list-jobs-happy-path",
222
- given: ["Jobs exist"],
223
- when: ["User lists jobs"],
224
- then: ["List of jobs is returned"]
225
- }
226
- ],
227
- examples: [
228
- {
229
- key: "list-active",
230
- input: { status: "scheduled", limit: 10 },
231
- output: { jobs: [], total: 5 }
232
- }
233
- ]
234
- }
235
- });
236
- var ScheduleJobContract = defineCommand3({
237
- meta: {
238
- key: "service.job.schedule",
239
- version: "1.0.0",
240
- stability: "stable",
241
- owners: [...OWNERS3],
242
- tags: ["service-business-os", "job", "schedule"],
243
- description: "Schedule a job.",
244
- goal: "Schedule work.",
245
- context: "Job scheduling."
246
- },
247
- io: {
248
- input: ScheduleJobInputModel,
249
- output: JobModel
250
- },
251
- policy: { auth: "user" },
252
- acceptance: {
253
- scenarios: [
254
- {
255
- key: "schedule-job-happy-path",
256
- given: ["Client exists"],
257
- when: ["User schedules job"],
258
- then: ["Job is created with status SCHEDULED"]
259
- }
260
- ],
261
- examples: [
262
- {
263
- key: "schedule-repair",
264
- input: {
265
- clientId: "client-123",
266
- date: "2025-01-20T10:00:00Z",
267
- type: "repair"
268
- },
269
- output: { id: "job-456", status: "scheduled" }
270
- }
271
- ]
272
- }
273
- });
274
- var CompleteJobContract = defineCommand3({
275
- meta: {
276
- key: "service.job.complete",
277
- version: "1.0.0",
278
- stability: "stable",
279
- owners: [...OWNERS3],
280
- tags: ["service-business-os", "job", "complete"],
281
- description: "Mark a job as complete.",
282
- goal: "Record job completion.",
283
- context: "Job management."
284
- },
285
- io: {
286
- input: CompleteJobInputModel,
287
- output: JobModel
288
- },
289
- policy: { auth: "user" },
290
- acceptance: {
291
- scenarios: [
292
- {
293
- key: "complete-job-happy-path",
294
- given: ["Job is scheduled"],
295
- when: ["User completes job"],
296
- then: ["Job status becomes COMPLETED"]
297
- }
298
- ],
299
- examples: [
300
- {
301
- key: "mark-complete",
302
- input: { jobId: "job-456", notes: "Done successfully" },
303
- output: { id: "job-456", status: "completed" }
304
- }
305
- ]
306
- }
307
- });
308
- // src/payment/payment.schema.ts
309
- import { defineSchemaModel as defineSchemaModel5, ScalarTypeEnum as ScalarTypeEnum5 } from "@contractspec/lib.schema";
310
- var PaymentModel = defineSchemaModel5({
311
- name: "Payment",
312
- description: "Payment applied to invoice",
313
- fields: {
314
- id: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
315
- invoiceId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
316
- amount: { type: ScalarTypeEnum5.Float_unsecure(), isOptional: false },
317
- currency: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
318
- method: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
319
- reference: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
320
- receivedAt: { type: ScalarTypeEnum5.DateTime(), isOptional: false }
321
- }
322
- });
323
- var RecordPaymentInputModel = defineSchemaModel5({
324
- name: "RecordPaymentInput",
325
- description: "Input for recording a payment",
326
- fields: {
327
- invoiceId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
328
- amount: { type: ScalarTypeEnum5.Float_unsecure(), isOptional: false },
329
- method: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
330
- reference: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
331
- receivedAt: { type: ScalarTypeEnum5.DateTime(), isOptional: true }
332
- }
333
- });
334
-
335
- // src/payment/payment.operations.ts
336
- import { defineCommand as defineCommand4 } from "@contractspec/lib.contracts-spec";
337
- var OWNERS4 = ["@examples.service-business-os"];
338
- var RecordPaymentContract = defineCommand4({
339
- meta: {
340
- key: "service.payment.record",
341
- version: "1.0.0",
342
- stability: "stable",
343
- owners: [...OWNERS4],
344
- tags: ["service-business-os", "payment", "record"],
345
- description: "Record a payment.",
346
- goal: "Track payments.",
347
- context: "Billing."
348
- },
349
- io: {
350
- input: RecordPaymentInputModel,
351
- output: PaymentModel
352
- },
353
- policy: { auth: "user" },
354
- acceptance: {
355
- scenarios: [
356
- {
357
- key: "record-payment-happy-path",
358
- given: ["Invoice exists"],
359
- when: ["User records payment"],
360
- then: ["Payment is recorded"]
361
- }
362
- ],
363
- examples: [
364
- {
365
- key: "record-check",
366
- input: { invoiceId: "inv-456", amount: 100, method: "check" },
367
- output: { id: "pay-123", status: "completed" }
368
- }
369
- ]
370
- }
371
- });
372
- // src/presentations.ts
373
- import {
374
- definePresentation,
375
- StabilityEnum
376
- } from "@contractspec/lib.contracts-spec";
377
- var ServiceDashboardPresentation = definePresentation({
378
- meta: {
379
- key: "service-business-os.dashboard",
380
- version: "1.0.0",
381
- title: "Service Dashboard",
382
- description: "Service business dashboard with overview metrics",
383
- domain: "services",
384
- owners: ["@service-os"],
385
- tags: ["services", "dashboard"],
386
- stability: StabilityEnum.Experimental,
387
- goal: "Overview of service business metrics",
388
- context: "Service home page"
389
- },
390
- source: {
391
- type: "component",
392
- framework: "react",
393
- componentKey: "ServiceDashboard"
394
- },
395
- targets: ["react", "markdown"],
396
- policy: {
397
- flags: ["service.dashboard.enabled"]
398
- }
399
- });
400
- var ClientListPresentation = definePresentation({
401
- meta: {
402
- key: "service-business-os.client.list",
403
- version: "1.0.0",
404
- title: "Client List",
405
- description: "List of service clients",
406
- domain: "services",
407
- owners: ["@service-os"],
408
- tags: ["services", "clients", "list"],
409
- stability: StabilityEnum.Experimental,
410
- goal: "Browse and manage service clients",
411
- context: "Client management"
412
- },
413
- source: {
414
- type: "component",
415
- framework: "react",
416
- componentKey: "ClientList"
417
- },
418
- targets: ["react", "markdown"],
419
- policy: {
420
- flags: ["service.clients.enabled"]
421
- }
422
- });
423
- var QuoteListPresentation = definePresentation({
424
- meta: {
425
- key: "service-business-os.quote.list",
426
- version: "1.0.0",
427
- title: "Quote List",
428
- description: "List of quotes with status",
429
- domain: "services",
430
- owners: ["@service-os"],
431
- tags: ["services", "quotes", "list"],
432
- stability: StabilityEnum.Experimental,
433
- goal: "Track and manage quotes",
434
- context: "Quote management"
435
- },
436
- source: {
437
- type: "component",
438
- framework: "react",
439
- componentKey: "QuoteList"
440
- },
441
- targets: ["react", "markdown"],
442
- policy: {
443
- flags: ["service.quotes.enabled"]
444
- }
445
- });
446
- var QuoteDetailPresentation = definePresentation({
447
- meta: {
448
- key: "service-business-os.quote.detail",
449
- version: "1.0.0",
450
- title: "Quote Details",
451
- description: "Quote detail with line items",
452
- domain: "services",
453
- owners: ["@service-os"],
454
- tags: ["services", "quote", "detail"],
455
- stability: StabilityEnum.Experimental,
456
- goal: "View and edit quote details",
457
- context: "Quote inspection"
458
- },
459
- source: {
460
- type: "component",
461
- framework: "react",
462
- componentKey: "QuoteDetail"
463
- },
464
- targets: ["react", "markdown"],
465
- policy: {
466
- flags: ["service.quotes.enabled"]
467
- }
468
- });
469
- var JobBoardPresentation = definePresentation({
470
- meta: {
471
- key: "service-business-os.job.board",
472
- version: "1.0.0",
473
- title: "Job Board",
474
- description: "Job board with kanban view",
475
- domain: "services",
476
- owners: ["@service-os"],
477
- tags: ["services", "jobs", "board", "kanban"],
478
- stability: StabilityEnum.Experimental,
479
- goal: "Visual job management",
480
- context: "Field service scheduling"
481
- },
482
- source: {
483
- type: "component",
484
- framework: "react",
485
- componentKey: "JobBoard"
486
- },
487
- targets: ["react"],
488
- policy: {
489
- flags: ["service.jobs.enabled"]
490
- }
491
- });
492
- var InvoiceListPresentation = definePresentation({
493
- meta: {
494
- key: "service-business-os.invoice.list",
495
- version: "1.0.0",
496
- title: "Invoice List",
497
- description: "List of invoices with payment status",
498
- domain: "services",
499
- owners: ["@service-os"],
500
- tags: ["services", "invoices", "list"],
501
- stability: StabilityEnum.Experimental,
502
- goal: "Track invoices and payments",
503
- context: "Billing management"
504
- },
505
- source: {
506
- type: "component",
507
- framework: "react",
508
- componentKey: "InvoiceList"
509
- },
510
- targets: ["react", "markdown"],
511
- policy: {
512
- flags: ["service.invoices.enabled"]
513
- }
514
- });
515
- var PaymentListPresentation = definePresentation({
516
- meta: {
517
- key: "service-business-os.payment.list",
518
- version: "1.0.0",
519
- title: "Payment List",
520
- description: "List of payments received",
521
- domain: "services",
522
- owners: ["@service-os"],
523
- tags: ["services", "payments", "list"],
524
- stability: StabilityEnum.Experimental,
525
- goal: "Track received payments",
526
- context: "Payment reconciliation"
527
- },
528
- source: {
529
- type: "component",
530
- framework: "react",
531
- componentKey: "PaymentList"
532
- },
533
- targets: ["react", "markdown"],
534
- policy: {
535
- flags: ["service.payments.enabled"]
536
- }
537
- });
538
-
539
- // src/quote/quote.schema.ts
540
- import { defineSchemaModel as defineSchemaModel6, ScalarTypeEnum as ScalarTypeEnum6 } from "@contractspec/lib.schema";
541
- var QuoteModel = defineSchemaModel6({
542
- name: "Quote",
543
- description: "Quote/proposal",
544
- fields: {
545
- id: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
546
- clientId: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
547
- title: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
548
- description: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
549
- amount: { type: ScalarTypeEnum6.Float_unsecure(), isOptional: false },
550
- currency: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
551
- status: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
552
- validUntil: { type: ScalarTypeEnum6.DateTime(), isOptional: true },
553
- createdAt: { type: ScalarTypeEnum6.DateTime(), isOptional: false }
554
- }
555
- });
556
- var CreateQuoteInputModel = defineSchemaModel6({
557
- name: "CreateQuoteInput",
558
- description: "Input for creating a quote",
559
- fields: {
560
- clientId: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
561
- title: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
562
- description: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
563
- amount: { type: ScalarTypeEnum6.Float_unsecure(), isOptional: false },
564
- currency: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
565
- validUntil: { type: ScalarTypeEnum6.DateTime(), isOptional: true },
566
- orgId: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
567
- ownerId: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false }
568
- }
569
- });
570
- var AcceptQuoteInputModel = defineSchemaModel6({
571
- name: "AcceptQuoteInput",
572
- description: "Input for accepting a quote",
573
- fields: {
574
- quoteId: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
575
- acceptedBy: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
576
- notes: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true }
577
- }
578
- });
579
-
580
- // src/quote/quote.operations.ts
581
- import { defineCommand as defineCommand5 } from "@contractspec/lib.contracts-spec";
582
- var OWNERS5 = ["@examples.service-business-os"];
583
- var CreateQuoteContract = defineCommand5({
584
- meta: {
585
- key: "service.quote.create",
586
- version: "1.0.0",
587
- stability: "stable",
588
- owners: [...OWNERS5],
589
- tags: ["service-business-os", "quote", "create"],
590
- description: "Create a quote/proposal.",
591
- goal: "Quote clients.",
592
- context: "Quote creation."
593
- },
594
- io: {
595
- input: CreateQuoteInputModel,
596
- output: QuoteModel
597
- },
598
- policy: { auth: "user" },
599
- acceptance: {
600
- scenarios: [
601
- {
602
- key: "create-quote-happy-path",
603
- given: ["Client exists"],
604
- when: ["User creates quote"],
605
- then: ["Quote is created"]
606
- }
607
- ],
608
- examples: [
609
- {
610
- key: "create-proposal",
611
- input: {
612
- clientId: "client-123",
613
- items: [{ description: "Project A", price: 5000 }]
614
- },
615
- output: { id: "quote-123", status: "draft", total: 5000 }
616
- }
617
- ]
618
- }
619
- });
620
- var AcceptQuoteContract = defineCommand5({
621
- meta: {
622
- key: "service.quote.accept",
623
- version: "1.0.0",
624
- stability: "stable",
625
- owners: [...OWNERS5],
626
- tags: ["service-business-os", "quote", "accept"],
627
- description: "Accept a quote.",
628
- goal: "Confirm quote.",
629
- context: "Quote acceptance."
630
- },
631
- io: {
632
- input: AcceptQuoteInputModel,
633
- output: QuoteModel
634
- },
635
- policy: { auth: "user" },
636
- acceptance: {
637
- scenarios: [
638
- {
639
- key: "accept-quote-happy-path",
640
- given: ["Quote is open"],
641
- when: ["Client accepts quote"],
642
- then: ["Quote status becomes ACCEPTED"]
643
- }
644
- ],
645
- examples: [
646
- {
647
- key: "client-accepts",
648
- input: { quoteId: "quote-123", signature: "John Doe" },
649
- output: { id: "quote-123", status: "accepted" }
650
- }
651
- ]
652
- }
653
- });
654
- // src/service.feature.ts
655
- import { defineFeature } from "@contractspec/lib.contracts-spec";
656
- var ServiceBusinessFeature = defineFeature({
657
- meta: {
658
- key: "service-business-os",
659
- title: "Service Business OS",
660
- description: "Quotes \u2192 jobs \u2192 invoices \u2192 payments for field services and agencies.",
661
- domain: "services",
662
- owners: ["@service-os"],
663
- tags: ["services", "quotes", "jobs", "invoices", "payments"],
664
- stability: "experimental",
665
- version: "1.0.0"
666
- },
667
- operations: [
668
- { key: "service.client.create", version: "1.0.0" },
669
- { key: "service.quote.create", version: "1.0.0" },
670
- { key: "service.quote.accept", version: "1.0.0" },
671
- { key: "service.job.schedule", version: "1.0.0" },
672
- { key: "service.job.complete", version: "1.0.0" },
673
- { key: "service.invoice.issue", version: "1.0.0" },
674
- { key: "service.payment.record", version: "1.0.0" },
675
- { key: "service.job.list", version: "1.0.0" }
676
- ],
677
- events: [
678
- { key: "service.quote.sent", version: "1.0.0" },
679
- { key: "service.quote.accepted", version: "1.0.0" },
680
- { key: "service.job.scheduled", version: "1.0.0" },
681
- { key: "service.job.completed", version: "1.0.0" },
682
- { key: "service.invoice.issued", version: "1.0.0" },
683
- { key: "service.payment.received", version: "1.0.0" }
684
- ],
685
- presentations: [
686
- { key: "service-business-os.dashboard", version: "1.0.0" },
687
- { key: "service-business-os.client.list", version: "1.0.0" },
688
- { key: "service-business-os.quote.list", version: "1.0.0" },
689
- { key: "service-business-os.quote.detail", version: "1.0.0" },
690
- { key: "service-business-os.job.board", version: "1.0.0" },
691
- { key: "service-business-os.invoice.list", version: "1.0.0" },
692
- { key: "service-business-os.payment.list", version: "1.0.0" }
693
- ],
694
- presentationsTargets: [
695
- {
696
- key: "service-business-os.dashboard",
697
- version: "1.0.0",
698
- targets: ["react", "markdown"]
699
- },
700
- {
701
- key: "service-business-os.quote.list",
702
- version: "1.0.0",
703
- targets: ["react", "markdown"]
704
- },
705
- {
706
- key: "service-business-os.invoice.list",
707
- version: "1.0.0",
708
- targets: ["react", "markdown"]
709
- }
710
- ],
711
- capabilities: {
712
- requires: [
713
- { key: "identity", version: "1.0.0" },
714
- { key: "audit-trail", version: "1.0.0" },
715
- { key: "notifications", version: "1.0.0" },
716
- { key: "files", version: "1.0.0" }
717
- ],
718
- provides: [
719
- { key: "quotes", version: "1.0.0" },
720
- { key: "jobs", version: "1.0.0" },
721
- { key: "invoices", version: "1.0.0" }
722
- ]
723
- },
724
- telemetry: [{ key: "service-business-os.telemetry", version: "1.0.0" }],
725
- jobs: [
726
- { key: "service-business-os.job.schedule-dispatch", version: "1.0.0" },
727
- { key: "service-business-os.job.invoice-reminder", version: "1.0.0" }
728
- ],
729
- docs: [
730
- "docs.examples.service-business-os",
731
- "docs.examples.service-business-os.goal",
732
- "docs.examples.service-business-os.usage",
733
- "docs.examples.service-business-os.constraints"
734
- ]
735
- });
736
- export {
737
- ServiceDashboardPresentation,
738
- ServiceBusinessFeature,
739
- ScheduleJobInputModel,
740
- ScheduleJobContract,
741
- RecordPaymentInputModel,
742
- RecordPaymentContract,
743
- QuoteModel,
744
- QuoteListPresentation,
745
- QuoteDetailPresentation,
746
- PaymentModel,
747
- PaymentListPresentation,
748
- ListJobsOutputModel,
749
- ListJobsOperation,
750
- ListJobsInputModel,
751
- JobModel,
752
- JobBoardPresentation,
753
- IssueInvoiceInputModel,
754
- IssueInvoiceContract,
755
- InvoiceModel,
756
- InvoiceListPresentation,
757
- CreateQuoteInputModel,
758
- CreateQuoteContract,
759
- CreateClientInputModel,
760
- CreateClientContract,
761
- CompleteJobInputModel,
762
- CompleteJobContract,
763
- ClientModel,
764
- ClientListPresentation,
765
- AcceptQuoteInputModel,
766
- AcceptQuoteContract
767
- };
2
+ import{defineSchemaModel as $,ScalarTypeEnum as o}from"@contractspec/lib.schema";var A=$({name:"Client",description:"Client profile",fields:{id:{type:o.String_unsecure(),isOptional:!1},name:{type:o.String_unsecure(),isOptional:!1},contactEmail:{type:o.String_unsecure(),isOptional:!0},phone:{type:o.String_unsecure(),isOptional:!0},orgId:{type:o.String_unsecure(),isOptional:!1},ownerId:{type:o.String_unsecure(),isOptional:!1},createdAt:{type:o.DateTime(),isOptional:!1}}}),B=$({name:"CreateClientInput",description:"Input for creating a client",fields:{name:{type:o.String_unsecure(),isOptional:!1},contactEmail:{type:o.String_unsecure(),isOptional:!0},phone:{type:o.String_unsecure(),isOptional:!0},orgId:{type:o.String_unsecure(),isOptional:!1},ownerId:{type:o.String_unsecure(),isOptional:!1},metadata:{type:o.JSON(),isOptional:!0}}});import{defineCommand as W}from"@contractspec/lib.contracts-spec";var b=["@examples.service-business-os"],f=W({meta:{key:"service.client.create",version:"1.0.0",stability:"stable",owners:[...b],tags:["service-business-os","client","create"],description:"Create a new client.",goal:"Onboard clients.",context:"CRM."},io:{input:B,output:A},policy:{auth:"user"},acceptance:{scenarios:[{key:"create-client-happy-path",given:["User is authenticated"],when:["User creates a new client"],then:["Client is created"]}],examples:[{key:"create-basic",input:{name:"Acme Corp",email:"contact@acme.com",phone:"555-0123"},output:{id:"client-123",name:"Acme Corp"}}]}});import{defineSchemaModel as j,ScalarTypeEnum as v}from"@contractspec/lib.schema";var L=j({name:"Invoice",description:"Invoice issued for a job",fields:{id:{type:v.String_unsecure(),isOptional:!1},jobId:{type:v.String_unsecure(),isOptional:!1},invoiceNumber:{type:v.String_unsecure(),isOptional:!1},amount:{type:v.Float_unsecure(),isOptional:!1},currency:{type:v.String_unsecure(),isOptional:!1},status:{type:v.String_unsecure(),isOptional:!1},dueDate:{type:v.DateTime(),isOptional:!0},issuedAt:{type:v.DateTime(),isOptional:!0},paidAt:{type:v.DateTime(),isOptional:!0}}}),z=j({name:"IssueInvoiceInput",description:"Input for issuing an invoice",fields:{jobId:{type:v.String_unsecure(),isOptional:!1},dueDate:{type:v.DateTime(),isOptional:!0},notes:{type:v.String_unsecure(),isOptional:!0},lineItems:{type:v.JSON(),isOptional:!0}}});import{defineCommand as M}from"@contractspec/lib.contracts-spec";var h=["@examples.service-business-os"],t=M({meta:{key:"service.invoice.issue",version:"1.0.0",stability:"stable",owners:[...h],tags:["service-business-os","invoice","issue"],description:"Issue an invoice for a job.",goal:"Bill clients.",context:"Billing."},io:{input:z,output:L},policy:{auth:"user"},acceptance:{scenarios:[{key:"issue-invoice-happy-path",given:["Job is complete"],when:["User issues invoice"],then:["Invoice is created and sent"]}],examples:[{key:"issue-standard",input:{jobId:"job-123",dueDate:"2025-02-01",items:[{description:"Service",amount:100}]},output:{id:"inv-456",status:"issued",total:100}}]}});import{defineSchemaModel as G,ScalarTypeEnum as C}from"@contractspec/lib.schema";var Q=G({name:"Job",description:"Scheduled job",fields:{id:{type:C.String_unsecure(),isOptional:!1},quoteId:{type:C.String_unsecure(),isOptional:!1},clientId:{type:C.String_unsecure(),isOptional:!1},title:{type:C.String_unsecure(),isOptional:!1},status:{type:C.String_unsecure(),isOptional:!1},scheduledAt:{type:C.DateTime(),isOptional:!0},completedAt:{type:C.DateTime(),isOptional:!0},assignedTo:{type:C.String_unsecure(),isOptional:!0}}}),H=G({name:"ScheduleJobInput",description:"Input for scheduling a job",fields:{quoteId:{type:C.String_unsecure(),isOptional:!1},scheduledAt:{type:C.DateTime(),isOptional:!1},assignedTo:{type:C.String_unsecure(),isOptional:!0},location:{type:C.JSON(),isOptional:!0},title:{type:C.String_unsecure(),isOptional:!0}}}),K=G({name:"CompleteJobInput",description:"Input for completing a job",fields:{jobId:{type:C.String_unsecure(),isOptional:!1},completedAt:{type:C.DateTime(),isOptional:!0},notes:{type:C.String_unsecure(),isOptional:!0}}});import{defineCommand as q,defineQuery as s}from"@contractspec/lib.contracts-spec";import{defineSchemaModel as F,ScalarTypeEnum as g}from"@contractspec/lib.schema";var U=["@examples.service-business-os"],I=F({name:"ListJobsInput",description:"Input for listing jobs",fields:{status:{type:g.String_unsecure(),isOptional:!0},clientId:{type:g.String_unsecure(),isOptional:!0},limit:{type:g.Int_unsecure(),isOptional:!0},offset:{type:g.Int_unsecure(),isOptional:!0}}}),P=F({name:"ListJobsOutput",description:"Output for listing jobs",fields:{jobs:{type:Q,isOptional:!1,isList:!0},total:{type:g.Int_unsecure(),isOptional:!1}}}),d=s({meta:{key:"service.job.list",version:"1.0.0",stability:"stable",owners:[...U],tags:["service-business-os","job","list","query"],description:"List all jobs with filtering",goal:"Retrieve list of jobs",context:"Job management"},io:{input:I,output:P},policy:{auth:"user"},acceptance:{scenarios:[{key:"list-jobs-happy-path",given:["Jobs exist"],when:["User lists jobs"],then:["List of jobs is returned"]}],examples:[{key:"list-active",input:{status:"scheduled",limit:10},output:{jobs:[],total:5}}]}}),i=q({meta:{key:"service.job.schedule",version:"1.0.0",stability:"stable",owners:[...U],tags:["service-business-os","job","schedule"],description:"Schedule a job.",goal:"Schedule work.",context:"Job scheduling."},io:{input:H,output:Q},policy:{auth:"user"},acceptance:{scenarios:[{key:"schedule-job-happy-path",given:["Client exists"],when:["User schedules job"],then:["Job is created with status SCHEDULED"]}],examples:[{key:"schedule-repair",input:{clientId:"client-123",date:"2025-01-20T10:00:00Z",type:"repair"},output:{id:"job-456",status:"scheduled"}}]}}),r=q({meta:{key:"service.job.complete",version:"1.0.0",stability:"stable",owners:[...U],tags:["service-business-os","job","complete"],description:"Mark a job as complete.",goal:"Record job completion.",context:"Job management."},io:{input:K,output:Q},policy:{auth:"user"},acceptance:{scenarios:[{key:"complete-job-happy-path",given:["Job is scheduled"],when:["User completes job"],then:["Job status becomes COMPLETED"]}],examples:[{key:"mark-complete",input:{jobId:"job-456",notes:"Done successfully"},output:{id:"job-456",status:"completed"}}]}});import{defineSchemaModel as O,ScalarTypeEnum as w}from"@contractspec/lib.schema";var V=O({name:"Payment",description:"Payment applied to invoice",fields:{id:{type:w.String_unsecure(),isOptional:!1},invoiceId:{type:w.String_unsecure(),isOptional:!1},amount:{type:w.Float_unsecure(),isOptional:!1},currency:{type:w.String_unsecure(),isOptional:!1},method:{type:w.String_unsecure(),isOptional:!1},reference:{type:w.String_unsecure(),isOptional:!0},receivedAt:{type:w.DateTime(),isOptional:!1}}}),X=O({name:"RecordPaymentInput",description:"Input for recording a payment",fields:{invoiceId:{type:w.String_unsecure(),isOptional:!1},amount:{type:w.Float_unsecure(),isOptional:!1},method:{type:w.String_unsecure(),isOptional:!1},reference:{type:w.String_unsecure(),isOptional:!0},receivedAt:{type:w.DateTime(),isOptional:!0}}});import{defineCommand as T}from"@contractspec/lib.contracts-spec";var p=["@examples.service-business-os"],y=T({meta:{key:"service.payment.record",version:"1.0.0",stability:"stable",owners:[...p],tags:["service-business-os","payment","record"],description:"Record a payment.",goal:"Track payments.",context:"Billing."},io:{input:X,output:V},policy:{auth:"user"},acceptance:{scenarios:[{key:"record-payment-happy-path",given:["Invoice exists"],when:["User records payment"],then:["Payment is recorded"]}],examples:[{key:"record-check",input:{invoiceId:"inv-456",amount:100,method:"check"},output:{id:"pay-123",status:"completed"}}]}});import{definePresentation as J,StabilityEnum as D}from"@contractspec/lib.contracts-spec";var Px=J({meta:{key:"service-business-os.dashboard",version:"1.0.0",title:"Service Dashboard",description:"Service business dashboard with overview metrics",domain:"services",owners:["@service-os"],tags:["services","dashboard"],stability:D.Experimental,goal:"Overview of service business metrics",context:"Service home page"},source:{type:"component",framework:"react",componentKey:"ServiceDashboard"},targets:["react","markdown"],policy:{flags:["service.dashboard.enabled"]}}),Ox=J({meta:{key:"service-business-os.client.list",version:"1.0.0",title:"Client List",description:"List of service clients",domain:"services",owners:["@service-os"],tags:["services","clients","list"],stability:D.Experimental,goal:"Browse and manage service clients",context:"Client management"},source:{type:"component",framework:"react",componentKey:"ClientList"},targets:["react","markdown"],policy:{flags:["service.clients.enabled"]}}),Rx=J({meta:{key:"service-business-os.quote.list",version:"1.0.0",title:"Quote List",description:"List of quotes with status",domain:"services",owners:["@service-os"],tags:["services","quotes","list"],stability:D.Experimental,goal:"Track and manage quotes",context:"Quote management"},source:{type:"component",framework:"react",componentKey:"QuoteList"},targets:["react","markdown"],policy:{flags:["service.quotes.enabled"]}}),Nx=J({meta:{key:"service-business-os.quote.detail",version:"1.0.0",title:"Quote Details",description:"Quote detail with line items",domain:"services",owners:["@service-os"],tags:["services","quote","detail"],stability:D.Experimental,goal:"View and edit quote details",context:"Quote inspection"},source:{type:"component",framework:"react",componentKey:"QuoteDetail"},targets:["react","markdown"],policy:{flags:["service.quotes.enabled"]}}),Wx=J({meta:{key:"service-business-os.job.board",version:"1.0.0",title:"Job Board",description:"Job board with kanban view",domain:"services",owners:["@service-os"],tags:["services","jobs","board","kanban"],stability:D.Experimental,goal:"Visual job management",context:"Field service scheduling"},source:{type:"component",framework:"react",componentKey:"JobBoard"},targets:["react"],policy:{flags:["service.jobs.enabled"]}}),bx=J({meta:{key:"service-business-os.invoice.list",version:"1.0.0",title:"Invoice List",description:"List of invoices with payment status",domain:"services",owners:["@service-os"],tags:["services","invoices","list"],stability:D.Experimental,goal:"Track invoices and payments",context:"Billing management"},source:{type:"component",framework:"react",componentKey:"InvoiceList"},targets:["react","markdown"],policy:{flags:["service.invoices.enabled"]}}),fx=J({meta:{key:"service-business-os.payment.list",version:"1.0.0",title:"Payment List",description:"List of payments received",domain:"services",owners:["@service-os"],tags:["services","payments","list"],stability:D.Experimental,goal:"Track received payments",context:"Payment reconciliation"},source:{type:"component",framework:"react",componentKey:"PaymentList"},targets:["react","markdown"],policy:{flags:["service.payments.enabled"]}});import{defineSchemaModel as Y,ScalarTypeEnum as x}from"@contractspec/lib.schema";var k=Y({name:"Quote",description:"Quote/proposal",fields:{id:{type:x.String_unsecure(),isOptional:!1},clientId:{type:x.String_unsecure(),isOptional:!1},title:{type:x.String_unsecure(),isOptional:!1},description:{type:x.String_unsecure(),isOptional:!0},amount:{type:x.Float_unsecure(),isOptional:!1},currency:{type:x.String_unsecure(),isOptional:!1},status:{type:x.String_unsecure(),isOptional:!1},validUntil:{type:x.DateTime(),isOptional:!0},createdAt:{type:x.DateTime(),isOptional:!1}}}),Z=Y({name:"CreateQuoteInput",description:"Input for creating a quote",fields:{clientId:{type:x.String_unsecure(),isOptional:!1},title:{type:x.String_unsecure(),isOptional:!1},description:{type:x.String_unsecure(),isOptional:!0},amount:{type:x.Float_unsecure(),isOptional:!1},currency:{type:x.String_unsecure(),isOptional:!0},validUntil:{type:x.DateTime(),isOptional:!0},orgId:{type:x.String_unsecure(),isOptional:!1},ownerId:{type:x.String_unsecure(),isOptional:!1}}}),_=Y({name:"AcceptQuoteInput",description:"Input for accepting a quote",fields:{quoteId:{type:x.String_unsecure(),isOptional:!1},acceptedBy:{type:x.String_unsecure(),isOptional:!1},notes:{type:x.String_unsecure(),isOptional:!0}}});import{defineCommand as R}from"@contractspec/lib.contracts-spec";var N=["@examples.service-business-os"],m=R({meta:{key:"service.quote.create",version:"1.0.0",stability:"stable",owners:[...N],tags:["service-business-os","quote","create"],description:"Create a quote/proposal.",goal:"Quote clients.",context:"Quote creation."},io:{input:Z,output:k},policy:{auth:"user"},acceptance:{scenarios:[{key:"create-quote-happy-path",given:["Client exists"],when:["User creates quote"],then:["Quote is created"]}],examples:[{key:"create-proposal",input:{clientId:"client-123",items:[{description:"Project A",price:5000}]},output:{id:"quote-123",status:"draft",total:5000}}]}}),u=R({meta:{key:"service.quote.accept",version:"1.0.0",stability:"stable",owners:[...N],tags:["service-business-os","quote","accept"],description:"Accept a quote.",goal:"Confirm quote.",context:"Quote acceptance."},io:{input:_,output:k},policy:{auth:"user"},acceptance:{scenarios:[{key:"accept-quote-happy-path",given:["Quote is open"],when:["Client accepts quote"],then:["Quote status becomes ACCEPTED"]}],examples:[{key:"client-accepts",input:{quoteId:"quote-123",signature:"John Doe"},output:{id:"quote-123",status:"accepted"}}]}});import{defineFeature as E}from"@contractspec/lib.contracts-spec";var mx=E({meta:{key:"service-business-os",title:"Service Business OS",description:"Quotes \u2192 jobs \u2192 invoices \u2192 payments for field services and agencies.",domain:"services",owners:["@service-os"],tags:["services","quotes","jobs","invoices","payments"],stability:"experimental",version:"1.0.0"},operations:[{key:"service.client.create",version:"1.0.0"},{key:"service.quote.create",version:"1.0.0"},{key:"service.quote.accept",version:"1.0.0"},{key:"service.job.schedule",version:"1.0.0"},{key:"service.job.complete",version:"1.0.0"},{key:"service.invoice.issue",version:"1.0.0"},{key:"service.payment.record",version:"1.0.0"},{key:"service.job.list",version:"1.0.0"}],events:[{key:"service.quote.sent",version:"1.0.0"},{key:"service.quote.accepted",version:"1.0.0"},{key:"service.job.scheduled",version:"1.0.0"},{key:"service.job.completed",version:"1.0.0"},{key:"service.invoice.issued",version:"1.0.0"},{key:"service.payment.received",version:"1.0.0"}],presentations:[{key:"service-business-os.dashboard",version:"1.0.0"},{key:"service-business-os.client.list",version:"1.0.0"},{key:"service-business-os.quote.list",version:"1.0.0"},{key:"service-business-os.quote.detail",version:"1.0.0"},{key:"service-business-os.job.board",version:"1.0.0"},{key:"service-business-os.invoice.list",version:"1.0.0"},{key:"service-business-os.payment.list",version:"1.0.0"}],presentationsTargets:[{key:"service-business-os.dashboard",version:"1.0.0",targets:["react","markdown"]},{key:"service-business-os.quote.list",version:"1.0.0",targets:["react","markdown"]},{key:"service-business-os.invoice.list",version:"1.0.0",targets:["react","markdown"]}],capabilities:{requires:[{key:"identity",version:"1.0.0"},{key:"audit-trail",version:"1.0.0"},{key:"notifications",version:"1.0.0"},{key:"files",version:"1.0.0"}],provides:[{key:"quotes",version:"1.0.0"},{key:"jobs",version:"1.0.0"},{key:"invoices",version:"1.0.0"}]},telemetry:[{key:"service-business-os.telemetry",version:"1.0.0"}],jobs:[{key:"service-business-os.job.schedule-dispatch",version:"1.0.0"},{key:"service-business-os.job.invoice-reminder",version:"1.0.0"}],docs:["docs.examples.service-business-os","docs.examples.service-business-os.goal","docs.examples.service-business-os.usage","docs.examples.service-business-os.constraints"]});export{Px as ServiceDashboardPresentation,mx as ServiceBusinessFeature,H as ScheduleJobInputModel,i as ScheduleJobContract,X as RecordPaymentInputModel,y as RecordPaymentContract,k as QuoteModel,Rx as QuoteListPresentation,Nx as QuoteDetailPresentation,V as PaymentModel,fx as PaymentListPresentation,P as ListJobsOutputModel,d as ListJobsOperation,I as ListJobsInputModel,Q as JobModel,Wx as JobBoardPresentation,z as IssueInvoiceInputModel,t as IssueInvoiceContract,L as InvoiceModel,bx as InvoiceListPresentation,Z as CreateQuoteInputModel,m as CreateQuoteContract,B as CreateClientInputModel,f as CreateClientContract,K as CompleteJobInputModel,r as CompleteJobContract,A as ClientModel,Ox as ClientListPresentation,_ as AcceptQuoteInputModel,u as AcceptQuoteContract};