@contractspec/example.service-business-os 1.56.1 → 1.58.0

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 (155) hide show
  1. package/dist/browser/client/client.operations.js +72 -0
  2. package/dist/browser/client/client.schema.js +31 -0
  3. package/dist/browser/client/index.js +74 -0
  4. package/dist/browser/docs/index.js +96 -0
  5. package/dist/browser/docs/service-business-os.docblock.js +96 -0
  6. package/dist/browser/entities/index.js +246 -0
  7. package/dist/browser/events.js +135 -0
  8. package/dist/browser/example.js +39 -0
  9. package/dist/browser/handlers/index.js +5 -0
  10. package/dist/browser/index.js +752 -0
  11. package/dist/browser/invoice/index.js +77 -0
  12. package/dist/browser/invoice/invoice.operations.js +75 -0
  13. package/dist/browser/invoice/invoice.schema.js +34 -0
  14. package/dist/browser/job/index.js +175 -0
  15. package/dist/browser/job/job.operations.js +172 -0
  16. package/dist/browser/job/job.schema.js +41 -0
  17. package/dist/browser/operations/index.js +506 -0
  18. package/dist/browser/payment/index.js +69 -0
  19. package/dist/browser/payment/payment.operations.js +67 -0
  20. package/dist/browser/payment/payment.schema.js +30 -0
  21. package/dist/browser/presentations/index.js +13 -0
  22. package/dist/browser/presentations.js +172 -0
  23. package/dist/browser/quote/index.js +122 -0
  24. package/dist/browser/quote/quote.operations.js +119 -0
  25. package/dist/browser/quote/quote.schema.js +45 -0
  26. package/dist/browser/service-business-os.capability.js +28 -0
  27. package/dist/browser/service.feature.js +74 -0
  28. package/dist/client/client.operations.d.ts +54 -60
  29. package/dist/client/client.operations.d.ts.map +1 -1
  30. package/dist/client/client.operations.js +71 -51
  31. package/dist/client/client.schema.d.ts +54 -59
  32. package/dist/client/client.schema.d.ts.map +1 -1
  33. package/dist/client/client.schema.js +30 -75
  34. package/dist/client/index.d.ts +6 -3
  35. package/dist/client/index.d.ts.map +1 -0
  36. package/dist/client/index.js +74 -3
  37. package/dist/docs/index.d.ts +2 -1
  38. package/dist/docs/index.d.ts.map +1 -0
  39. package/dist/docs/index.js +97 -1
  40. package/dist/docs/service-business-os.docblock.d.ts +2 -1
  41. package/dist/docs/service-business-os.docblock.d.ts.map +1 -0
  42. package/dist/docs/service-business-os.docblock.js +52 -64
  43. package/dist/entities/index.d.ts +156 -161
  44. package/dist/entities/index.d.ts.map +1 -1
  45. package/dist/entities/index.js +236 -278
  46. package/dist/events.d.ts +253 -259
  47. package/dist/events.d.ts.map +1 -1
  48. package/dist/events.js +123 -217
  49. package/dist/example.d.ts +2 -6
  50. package/dist/example.d.ts.map +1 -1
  51. package/dist/example.js +37 -50
  52. package/dist/handlers/index.d.ts +11 -16
  53. package/dist/handlers/index.d.ts.map +1 -1
  54. package/dist/handlers/index.js +5 -5
  55. package/dist/index.d.ts +13 -18
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +752 -18
  58. package/dist/invoice/index.d.ts +6 -3
  59. package/dist/invoice/index.d.ts.map +1 -0
  60. package/dist/invoice/index.js +77 -3
  61. package/dist/invoice/invoice.operations.d.ts +54 -60
  62. package/dist/invoice/invoice.operations.d.ts.map +1 -1
  63. package/dist/invoice/invoice.operations.js +74 -55
  64. package/dist/invoice/invoice.schema.d.ts +54 -59
  65. package/dist/invoice/invoice.schema.d.ts.map +1 -1
  66. package/dist/invoice/invoice.schema.js +33 -75
  67. package/dist/job/index.d.ts +6 -3
  68. package/dist/job/index.d.ts.map +1 -0
  69. package/dist/job/index.js +175 -3
  70. package/dist/job/job.operations.d.ts +220 -226
  71. package/dist/job/job.operations.d.ts.map +1 -1
  72. package/dist/job/job.operations.js +167 -169
  73. package/dist/job/job.schema.d.ts +67 -72
  74. package/dist/job/job.schema.d.ts.map +1 -1
  75. package/dist/job/job.schema.js +39 -95
  76. package/dist/node/client/client.operations.js +72 -0
  77. package/dist/node/client/client.schema.js +31 -0
  78. package/dist/node/client/index.js +74 -0
  79. package/dist/node/docs/index.js +96 -0
  80. package/dist/node/docs/service-business-os.docblock.js +96 -0
  81. package/dist/node/entities/index.js +246 -0
  82. package/dist/node/events.js +135 -0
  83. package/dist/node/example.js +39 -0
  84. package/dist/node/handlers/index.js +5 -0
  85. package/dist/node/index.js +752 -0
  86. package/dist/node/invoice/index.js +77 -0
  87. package/dist/node/invoice/invoice.operations.js +75 -0
  88. package/dist/node/invoice/invoice.schema.js +34 -0
  89. package/dist/node/job/index.js +175 -0
  90. package/dist/node/job/job.operations.js +172 -0
  91. package/dist/node/job/job.schema.js +41 -0
  92. package/dist/node/operations/index.js +506 -0
  93. package/dist/node/payment/index.js +69 -0
  94. package/dist/node/payment/payment.operations.js +67 -0
  95. package/dist/node/payment/payment.schema.js +30 -0
  96. package/dist/node/presentations/index.js +13 -0
  97. package/dist/node/presentations.js +172 -0
  98. package/dist/node/quote/index.js +122 -0
  99. package/dist/node/quote/quote.operations.js +119 -0
  100. package/dist/node/quote/quote.schema.js +45 -0
  101. package/dist/node/service-business-os.capability.js +28 -0
  102. package/dist/node/service.feature.js +74 -0
  103. package/dist/operations/index.d.ts +6 -16
  104. package/dist/operations/index.d.ts.map +1 -0
  105. package/dist/operations/index.js +506 -16
  106. package/dist/payment/index.d.ts +6 -3
  107. package/dist/payment/index.d.ts.map +1 -0
  108. package/dist/payment/index.js +69 -3
  109. package/dist/payment/payment.operations.d.ts +50 -56
  110. package/dist/payment/payment.operations.d.ts.map +1 -1
  111. package/dist/payment/payment.operations.js +66 -51
  112. package/dist/payment/payment.schema.d.ts +50 -55
  113. package/dist/payment/payment.schema.d.ts.map +1 -1
  114. package/dist/payment/payment.schema.js +29 -71
  115. package/dist/presentations/index.d.ts +1 -4
  116. package/dist/presentations/index.d.ts.map +1 -1
  117. package/dist/presentations/index.js +13 -17
  118. package/dist/presentations.d.ts +7 -12
  119. package/dist/presentations.d.ts.map +1 -1
  120. package/dist/presentations.js +166 -172
  121. package/dist/quote/index.d.ts +6 -3
  122. package/dist/quote/index.d.ts.map +1 -0
  123. package/dist/quote/index.js +122 -3
  124. package/dist/quote/quote.operations.d.ts +120 -126
  125. package/dist/quote/quote.operations.d.ts.map +1 -1
  126. package/dist/quote/quote.operations.js +117 -96
  127. package/dist/quote/quote.schema.d.ts +83 -88
  128. package/dist/quote/quote.schema.d.ts.map +1 -1
  129. package/dist/quote/quote.schema.js +43 -111
  130. package/dist/service-business-os.capability.d.ts +2 -7
  131. package/dist/service-business-os.capability.d.ts.map +1 -1
  132. package/dist/service-business-os.capability.js +29 -29
  133. package/dist/service.feature.d.ts +1 -6
  134. package/dist/service.feature.d.ts.map +1 -1
  135. package/dist/service.feature.js +73 -164
  136. package/package.json +301 -64
  137. package/dist/client/client.operations.js.map +0 -1
  138. package/dist/client/client.schema.js.map +0 -1
  139. package/dist/docs/service-business-os.docblock.js.map +0 -1
  140. package/dist/entities/index.js.map +0 -1
  141. package/dist/events.js.map +0 -1
  142. package/dist/example.js.map +0 -1
  143. package/dist/handlers/index.js.map +0 -1
  144. package/dist/invoice/invoice.operations.js.map +0 -1
  145. package/dist/invoice/invoice.schema.js.map +0 -1
  146. package/dist/job/job.operations.js.map +0 -1
  147. package/dist/job/job.schema.js.map +0 -1
  148. package/dist/payment/payment.operations.js.map +0 -1
  149. package/dist/payment/payment.schema.js.map +0 -1
  150. package/dist/presentations/index.js.map +0 -1
  151. package/dist/presentations.js.map +0 -1
  152. package/dist/quote/quote.operations.js.map +0 -1
  153. package/dist/quote/quote.schema.js.map +0 -1
  154. package/dist/service-business-os.capability.js.map +0 -1
  155. package/dist/service.feature.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"quote.schema.d.ts","names":[],"sources":["../../src/quote/quote.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,UAcX,4BAdqB,WAcrB,CAAA;EAAA,EAAA,EAAA;UAAA,yBAAA,CAAA;;;;;;;;;;;EAdqB,WAAA,EAAA;IAmBV,IAAA,qCAaX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;EAbgC,MAAA,EAAA;IAkBrB,IAAA,qCAQX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;6CARgC,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;cAlBrB,iDAAqB;;UAahC,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,iDAAqB;;UAQhC,yBAAA,CAAA"}
1
+ {"version":3,"file":"quote.schema.d.ts","sourceRoot":"","sources":["../../src/quote/quote.schema.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcrB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAahC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;EAQhC,CAAC"}
@@ -1,114 +1,46 @@
1
- import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
2
-
3
- //#region src/quote/quote.schema.ts
4
- /**
5
- * Quote/proposal.
6
- */
7
- const QuoteModel = defineSchemaModel({
8
- name: "Quote",
9
- description: "Quote/proposal",
10
- fields: {
11
- id: {
12
- type: ScalarTypeEnum.String_unsecure(),
13
- isOptional: false
14
- },
15
- clientId: {
16
- type: ScalarTypeEnum.String_unsecure(),
17
- isOptional: false
18
- },
19
- title: {
20
- type: ScalarTypeEnum.String_unsecure(),
21
- isOptional: false
22
- },
23
- description: {
24
- type: ScalarTypeEnum.String_unsecure(),
25
- isOptional: true
26
- },
27
- amount: {
28
- type: ScalarTypeEnum.Float_unsecure(),
29
- isOptional: false
30
- },
31
- currency: {
32
- type: ScalarTypeEnum.String_unsecure(),
33
- isOptional: false
34
- },
35
- status: {
36
- type: ScalarTypeEnum.String_unsecure(),
37
- isOptional: false
38
- },
39
- validUntil: {
40
- type: ScalarTypeEnum.DateTime(),
41
- isOptional: true
42
- },
43
- createdAt: {
44
- type: ScalarTypeEnum.DateTime(),
45
- isOptional: false
46
- }
47
- }
1
+ // @bun
2
+ // src/quote/quote.schema.ts
3
+ import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
4
+ var QuoteModel = defineSchemaModel({
5
+ name: "Quote",
6
+ description: "Quote/proposal",
7
+ fields: {
8
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
9
+ clientId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
10
+ title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
11
+ description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
12
+ amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
13
+ currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
14
+ status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
15
+ validUntil: { type: ScalarTypeEnum.DateTime(), isOptional: true },
16
+ createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
17
+ }
48
18
  });
49
- /**
50
- * Input for creating a quote.
51
- */
52
- const CreateQuoteInputModel = defineSchemaModel({
53
- name: "CreateQuoteInput",
54
- description: "Input for creating a quote",
55
- fields: {
56
- clientId: {
57
- type: ScalarTypeEnum.String_unsecure(),
58
- isOptional: false
59
- },
60
- title: {
61
- type: ScalarTypeEnum.String_unsecure(),
62
- isOptional: false
63
- },
64
- description: {
65
- type: ScalarTypeEnum.String_unsecure(),
66
- isOptional: true
67
- },
68
- amount: {
69
- type: ScalarTypeEnum.Float_unsecure(),
70
- isOptional: false
71
- },
72
- currency: {
73
- type: ScalarTypeEnum.String_unsecure(),
74
- isOptional: true
75
- },
76
- validUntil: {
77
- type: ScalarTypeEnum.DateTime(),
78
- isOptional: true
79
- },
80
- orgId: {
81
- type: ScalarTypeEnum.String_unsecure(),
82
- isOptional: false
83
- },
84
- ownerId: {
85
- type: ScalarTypeEnum.String_unsecure(),
86
- isOptional: false
87
- }
88
- }
19
+ var CreateQuoteInputModel = defineSchemaModel({
20
+ name: "CreateQuoteInput",
21
+ description: "Input for creating a quote",
22
+ fields: {
23
+ clientId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
24
+ title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
25
+ description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
26
+ amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
27
+ currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
28
+ validUntil: { type: ScalarTypeEnum.DateTime(), isOptional: true },
29
+ orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
30
+ ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
31
+ }
89
32
  });
90
- /**
91
- * Input for accepting a quote.
92
- */
93
- const AcceptQuoteInputModel = defineSchemaModel({
94
- name: "AcceptQuoteInput",
95
- description: "Input for accepting a quote",
96
- fields: {
97
- quoteId: {
98
- type: ScalarTypeEnum.String_unsecure(),
99
- isOptional: false
100
- },
101
- acceptedBy: {
102
- type: ScalarTypeEnum.String_unsecure(),
103
- isOptional: false
104
- },
105
- notes: {
106
- type: ScalarTypeEnum.String_unsecure(),
107
- isOptional: true
108
- }
109
- }
33
+ var AcceptQuoteInputModel = defineSchemaModel({
34
+ name: "AcceptQuoteInput",
35
+ description: "Input for accepting a quote",
36
+ fields: {
37
+ quoteId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
38
+ acceptedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
39
+ notes: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
40
+ }
110
41
  });
111
-
112
- //#endregion
113
- export { AcceptQuoteInputModel, CreateQuoteInputModel, QuoteModel };
114
- //# sourceMappingURL=quote.schema.js.map
42
+ export {
43
+ QuoteModel,
44
+ CreateQuoteInputModel,
45
+ AcceptQuoteInputModel
46
+ };
@@ -1,8 +1,3 @@
1
- import * as _contractspec_lib_contracts19 from "@contractspec/lib.contracts";
2
-
3
- //#region src/service-business-os.capability.d.ts
4
- declare const QuotesCapability: _contractspec_lib_contracts19.CapabilitySpec;
5
- declare const InvoicesCapability: _contractspec_lib_contracts19.CapabilitySpec;
6
- //#endregion
7
- export { InvoicesCapability, QuotesCapability };
1
+ export declare const QuotesCapability: import("@contractspec/lib.contracts").CapabilitySpec;
2
+ export declare const InvoicesCapability: import("@contractspec/lib.contracts").CapabilitySpec;
8
3
  //# sourceMappingURL=service-business-os.capability.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-business-os.capability.d.ts","names":[],"sources":["../src/service-business-os.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,kBAUX,6BAAA,CAV2B;cAYhB,oBAUX,6BAAA,CAV6B"}
1
+ {"version":3,"file":"service-business-os.capability.d.ts","sourceRoot":"","sources":["../src/service-business-os.capability.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,sDAU3B,CAAC;AAEH,eAAO,MAAM,kBAAkB,sDAU7B,CAAC"}
@@ -1,29 +1,29 @@
1
- import { StabilityEnum, defineCapability } from "@contractspec/lib.contracts";
2
-
3
- //#region src/service-business-os.capability.ts
4
- const QuotesCapability = defineCapability({ meta: {
5
- key: "quotes",
6
- version: "1.0.0",
7
- kind: "api",
8
- stability: StabilityEnum.Experimental,
9
- description: "Quote generation and management for service businesses",
10
- owners: ["platform.core"],
11
- tags: [
12
- "quotes",
13
- "service",
14
- "business"
15
- ]
16
- } });
17
- const InvoicesCapability = defineCapability({ meta: {
18
- key: "invoices",
19
- version: "1.0.0",
20
- kind: "api",
21
- stability: StabilityEnum.Experimental,
22
- description: "Invoice creation and payment tracking",
23
- owners: ["platform.finance"],
24
- tags: ["invoices", "billing"]
25
- } });
26
-
27
- //#endregion
28
- export { InvoicesCapability, QuotesCapability };
29
- //# sourceMappingURL=service-business-os.capability.js.map
1
+ // @bun
2
+ // src/service-business-os.capability.ts
3
+ import { defineCapability, StabilityEnum } from "@contractspec/lib.contracts";
4
+ var QuotesCapability = defineCapability({
5
+ meta: {
6
+ key: "quotes",
7
+ version: "1.0.0",
8
+ kind: "api",
9
+ stability: StabilityEnum.Experimental,
10
+ description: "Quote generation and management for service businesses",
11
+ owners: ["platform.core"],
12
+ tags: ["quotes", "service", "business"]
13
+ }
14
+ });
15
+ var InvoicesCapability = defineCapability({
16
+ meta: {
17
+ key: "invoices",
18
+ version: "1.0.0",
19
+ kind: "api",
20
+ stability: StabilityEnum.Experimental,
21
+ description: "Invoice creation and payment tracking",
22
+ owners: ["platform.finance"],
23
+ tags: ["invoices", "billing"]
24
+ }
25
+ });
26
+ export {
27
+ QuotesCapability,
28
+ InvoicesCapability
29
+ };
@@ -1,7 +1,2 @@
1
- import * as _contractspec_lib_contracts21 from "@contractspec/lib.contracts";
2
-
3
- //#region src/service.feature.d.ts
4
- declare const ServiceBusinessFeature: _contractspec_lib_contracts21.FeatureModuleSpec;
5
- //#endregion
6
- export { ServiceBusinessFeature };
1
+ export declare const ServiceBusinessFeature: import("@contractspec/lib.contracts").FeatureModuleSpec;
7
2
  //# sourceMappingURL=service.feature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.feature.d.ts","names":[],"sources":["../src/service.feature.ts"],"sourcesContent":[],"mappings":";;;cAEa,wBAqEX,6BAAA,CArEiC"}
1
+ {"version":3,"file":"service.feature.d.ts","sourceRoot":"","sources":["../src/service.feature.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,yDAqEjC,CAAC"}
@@ -1,166 +1,75 @@
1
+ // @bun
2
+ // src/service.feature.ts
1
3
  import { defineFeature } from "@contractspec/lib.contracts";
2
-
3
- //#region src/service.feature.ts
4
- const ServiceBusinessFeature = defineFeature({
5
- meta: {
6
- key: "service-business-os",
7
- title: "Service Business OS",
8
- description: "Quotes → jobs → invoices → payments for field services and agencies.",
9
- domain: "services",
10
- owners: ["@service-os"],
11
- tags: [
12
- "services",
13
- "quotes",
14
- "jobs",
15
- "invoices",
16
- "payments"
17
- ],
18
- stability: "experimental",
19
- version: "1.0.0"
20
- },
21
- operations: [
22
- {
23
- key: "service.client.create",
24
- version: "1.0.0"
25
- },
26
- {
27
- key: "service.quote.create",
28
- version: "1.0.0"
29
- },
30
- {
31
- key: "service.quote.accept",
32
- version: "1.0.0"
33
- },
34
- {
35
- key: "service.job.schedule",
36
- version: "1.0.0"
37
- },
38
- {
39
- key: "service.job.complete",
40
- version: "1.0.0"
41
- },
42
- {
43
- key: "service.invoice.issue",
44
- version: "1.0.0"
45
- },
46
- {
47
- key: "service.payment.record",
48
- version: "1.0.0"
49
- },
50
- {
51
- key: "service.job.list",
52
- version: "1.0.0"
53
- }
54
- ],
55
- events: [
56
- {
57
- key: "service.quote.sent",
58
- version: "1.0.0"
59
- },
60
- {
61
- key: "service.quote.accepted",
62
- version: "1.0.0"
63
- },
64
- {
65
- key: "service.job.scheduled",
66
- version: "1.0.0"
67
- },
68
- {
69
- key: "service.job.completed",
70
- version: "1.0.0"
71
- },
72
- {
73
- key: "service.invoice.issued",
74
- version: "1.0.0"
75
- },
76
- {
77
- key: "service.payment.received",
78
- version: "1.0.0"
79
- }
80
- ],
81
- presentations: [
82
- {
83
- key: "service-business-os.dashboard",
84
- version: "1.0.0"
85
- },
86
- {
87
- key: "service-business-os.client.list",
88
- version: "1.0.0"
89
- },
90
- {
91
- key: "service-business-os.quote.list",
92
- version: "1.0.0"
93
- },
94
- {
95
- key: "service-business-os.quote.detail",
96
- version: "1.0.0"
97
- },
98
- {
99
- key: "service-business-os.job.board",
100
- version: "1.0.0"
101
- },
102
- {
103
- key: "service-business-os.invoice.list",
104
- version: "1.0.0"
105
- },
106
- {
107
- key: "service-business-os.payment.list",
108
- version: "1.0.0"
109
- }
110
- ],
111
- presentationsTargets: [
112
- {
113
- key: "service-business-os.dashboard",
114
- version: "1.0.0",
115
- targets: ["react", "markdown"]
116
- },
117
- {
118
- key: "service-business-os.quote.list",
119
- version: "1.0.0",
120
- targets: ["react", "markdown"]
121
- },
122
- {
123
- key: "service-business-os.invoice.list",
124
- version: "1.0.0",
125
- targets: ["react", "markdown"]
126
- }
127
- ],
128
- capabilities: {
129
- requires: [
130
- {
131
- key: "identity",
132
- version: "1.0.0"
133
- },
134
- {
135
- key: "audit-trail",
136
- version: "1.0.0"
137
- },
138
- {
139
- key: "notifications",
140
- version: "1.0.0"
141
- },
142
- {
143
- key: "files",
144
- version: "1.0.0"
145
- }
146
- ],
147
- provides: [
148
- {
149
- key: "quotes",
150
- version: "1.0.0"
151
- },
152
- {
153
- key: "jobs",
154
- version: "1.0.0"
155
- },
156
- {
157
- key: "invoices",
158
- version: "1.0.0"
159
- }
160
- ]
161
- }
4
+ var ServiceBusinessFeature = defineFeature({
5
+ meta: {
6
+ key: "service-business-os",
7
+ title: "Service Business OS",
8
+ description: "Quotes \u2192 jobs \u2192 invoices \u2192 payments for field services and agencies.",
9
+ domain: "services",
10
+ owners: ["@service-os"],
11
+ tags: ["services", "quotes", "jobs", "invoices", "payments"],
12
+ stability: "experimental",
13
+ version: "1.0.0"
14
+ },
15
+ operations: [
16
+ { key: "service.client.create", version: "1.0.0" },
17
+ { key: "service.quote.create", version: "1.0.0" },
18
+ { key: "service.quote.accept", version: "1.0.0" },
19
+ { key: "service.job.schedule", version: "1.0.0" },
20
+ { key: "service.job.complete", version: "1.0.0" },
21
+ { key: "service.invoice.issue", version: "1.0.0" },
22
+ { key: "service.payment.record", version: "1.0.0" },
23
+ { key: "service.job.list", version: "1.0.0" }
24
+ ],
25
+ events: [
26
+ { key: "service.quote.sent", version: "1.0.0" },
27
+ { key: "service.quote.accepted", version: "1.0.0" },
28
+ { key: "service.job.scheduled", version: "1.0.0" },
29
+ { key: "service.job.completed", version: "1.0.0" },
30
+ { key: "service.invoice.issued", version: "1.0.0" },
31
+ { key: "service.payment.received", version: "1.0.0" }
32
+ ],
33
+ presentations: [
34
+ { key: "service-business-os.dashboard", version: "1.0.0" },
35
+ { key: "service-business-os.client.list", version: "1.0.0" },
36
+ { key: "service-business-os.quote.list", version: "1.0.0" },
37
+ { key: "service-business-os.quote.detail", version: "1.0.0" },
38
+ { key: "service-business-os.job.board", version: "1.0.0" },
39
+ { key: "service-business-os.invoice.list", version: "1.0.0" },
40
+ { key: "service-business-os.payment.list", version: "1.0.0" }
41
+ ],
42
+ presentationsTargets: [
43
+ {
44
+ key: "service-business-os.dashboard",
45
+ version: "1.0.0",
46
+ targets: ["react", "markdown"]
47
+ },
48
+ {
49
+ key: "service-business-os.quote.list",
50
+ version: "1.0.0",
51
+ targets: ["react", "markdown"]
52
+ },
53
+ {
54
+ key: "service-business-os.invoice.list",
55
+ version: "1.0.0",
56
+ targets: ["react", "markdown"]
57
+ }
58
+ ],
59
+ capabilities: {
60
+ requires: [
61
+ { key: "identity", version: "1.0.0" },
62
+ { key: "audit-trail", version: "1.0.0" },
63
+ { key: "notifications", version: "1.0.0" },
64
+ { key: "files", version: "1.0.0" }
65
+ ],
66
+ provides: [
67
+ { key: "quotes", version: "1.0.0" },
68
+ { key: "jobs", version: "1.0.0" },
69
+ { key: "invoices", version: "1.0.0" }
70
+ ]
71
+ }
162
72
  });
163
-
164
- //#endregion
165
- export { ServiceBusinessFeature };
166
- //# sourceMappingURL=service.feature.js.map
73
+ export {
74
+ ServiceBusinessFeature
75
+ };