@contractspec/example.crm-pipeline 0.0.0-canary-20260113170453

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 (206) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +172 -0
  2. package/.turbo/turbo-build.log +173 -0
  3. package/CHANGELOG.md +436 -0
  4. package/LICENSE +21 -0
  5. package/README.md +139 -0
  6. package/dist/crm-pipeline.feature.d.ts +12 -0
  7. package/dist/crm-pipeline.feature.d.ts.map +1 -0
  8. package/dist/crm-pipeline.feature.js +166 -0
  9. package/dist/crm-pipeline.feature.js.map +1 -0
  10. package/dist/deal/deal.enum.d.ts +14 -0
  11. package/dist/deal/deal.enum.d.ts.map +1 -0
  12. package/dist/deal/deal.enum.js +25 -0
  13. package/dist/deal/deal.enum.js.map +1 -0
  14. package/dist/deal/deal.operation.d.ts +513 -0
  15. package/dist/deal/deal.operation.d.ts.map +1 -0
  16. package/dist/deal/deal.operation.js +270 -0
  17. package/dist/deal/deal.operation.js.map +1 -0
  18. package/dist/deal/deal.schema.d.ts +300 -0
  19. package/dist/deal/deal.schema.d.ts.map +1 -0
  20. package/dist/deal/deal.schema.js +286 -0
  21. package/dist/deal/deal.schema.js.map +1 -0
  22. package/dist/deal/deal.test-spec.d.ts +8 -0
  23. package/dist/deal/deal.test-spec.d.ts.map +1 -0
  24. package/dist/deal/deal.test-spec.js +65 -0
  25. package/dist/deal/deal.test-spec.js.map +1 -0
  26. package/dist/deal/index.d.ts +4 -0
  27. package/dist/deal/index.js +5 -0
  28. package/dist/docs/crm-pipeline.docblock.d.ts +1 -0
  29. package/dist/docs/crm-pipeline.docblock.js +100 -0
  30. package/dist/docs/crm-pipeline.docblock.js.map +1 -0
  31. package/dist/docs/index.d.ts +1 -0
  32. package/dist/docs/index.js +1 -0
  33. package/dist/entities/company.entity.d.ts +40 -0
  34. package/dist/entities/company.entity.d.ts.map +1 -0
  35. package/dist/entities/company.entity.js +63 -0
  36. package/dist/entities/company.entity.js.map +1 -0
  37. package/dist/entities/contact.entity.d.ts +44 -0
  38. package/dist/entities/contact.entity.d.ts.map +1 -0
  39. package/dist/entities/contact.entity.js +78 -0
  40. package/dist/entities/contact.entity.js.map +1 -0
  41. package/dist/entities/deal.entity.d.ts +73 -0
  42. package/dist/entities/deal.entity.d.ts.map +1 -0
  43. package/dist/entities/deal.entity.js +120 -0
  44. package/dist/entities/deal.entity.js.map +1 -0
  45. package/dist/entities/index.d.ts +15 -0
  46. package/dist/entities/index.d.ts.map +1 -0
  47. package/dist/entities/index.js +33 -0
  48. package/dist/entities/index.js.map +1 -0
  49. package/dist/entities/task.entity.d.ts +65 -0
  50. package/dist/entities/task.entity.d.ts.map +1 -0
  51. package/dist/entities/task.entity.js +129 -0
  52. package/dist/entities/task.entity.js.map +1 -0
  53. package/dist/events/contact.event.d.ts +29 -0
  54. package/dist/events/contact.event.d.ts.map +1 -0
  55. package/dist/events/contact.event.js +45 -0
  56. package/dist/events/contact.event.js.map +1 -0
  57. package/dist/events/deal.event.d.ts +111 -0
  58. package/dist/events/deal.event.d.ts.map +1 -0
  59. package/dist/events/deal.event.js +172 -0
  60. package/dist/events/deal.event.js.map +1 -0
  61. package/dist/events/index.d.ts +4 -0
  62. package/dist/events/index.js +5 -0
  63. package/dist/events/task.event.d.ts +29 -0
  64. package/dist/events/task.event.d.ts.map +1 -0
  65. package/dist/events/task.event.js +45 -0
  66. package/dist/events/task.event.js.map +1 -0
  67. package/dist/example.d.ts +7 -0
  68. package/dist/example.d.ts.map +1 -0
  69. package/dist/example.js +53 -0
  70. package/dist/example.js.map +1 -0
  71. package/dist/handlers/crm.handlers.d.ts +89 -0
  72. package/dist/handlers/crm.handlers.d.ts.map +1 -0
  73. package/dist/handlers/crm.handlers.js +172 -0
  74. package/dist/handlers/crm.handlers.js.map +1 -0
  75. package/dist/handlers/deal.handlers.d.ts +94 -0
  76. package/dist/handlers/deal.handlers.d.ts.map +1 -0
  77. package/dist/handlers/deal.handlers.js +120 -0
  78. package/dist/handlers/deal.handlers.js.map +1 -0
  79. package/dist/handlers/index.d.ts +4 -0
  80. package/dist/handlers/index.js +5 -0
  81. package/dist/handlers/mock-data.d.ts +49 -0
  82. package/dist/handlers/mock-data.d.ts.map +1 -0
  83. package/dist/handlers/mock-data.js +188 -0
  84. package/dist/handlers/mock-data.js.map +1 -0
  85. package/dist/index.d.ts +47 -0
  86. package/dist/index.d.ts.map +1 -0
  87. package/dist/index.js +56 -0
  88. package/dist/index.js.map +1 -0
  89. package/dist/operations/index.d.ts +5 -0
  90. package/dist/operations/index.js +6 -0
  91. package/dist/presentations/dashboard.presentation.d.ts +14 -0
  92. package/dist/presentations/dashboard.presentation.d.ts.map +1 -0
  93. package/dist/presentations/dashboard.presentation.js +62 -0
  94. package/dist/presentations/dashboard.presentation.js.map +1 -0
  95. package/dist/presentations/index.d.ts +3 -0
  96. package/dist/presentations/index.js +4 -0
  97. package/dist/presentations/pipeline.presentation.d.ts +22 -0
  98. package/dist/presentations/pipeline.presentation.d.ts.map +1 -0
  99. package/dist/presentations/pipeline.presentation.js +122 -0
  100. package/dist/presentations/pipeline.presentation.js.map +1 -0
  101. package/dist/seeders/index.d.ts +10 -0
  102. package/dist/seeders/index.d.ts.map +1 -0
  103. package/dist/seeders/index.js +47 -0
  104. package/dist/seeders/index.js.map +1 -0
  105. package/dist/shared/overlay-types.d.ts +34 -0
  106. package/dist/shared/overlay-types.d.ts.map +1 -0
  107. package/dist/shared/overlay-types.js +0 -0
  108. package/dist/ui/CrmDashboard.d.ts +7 -0
  109. package/dist/ui/CrmDashboard.d.ts.map +1 -0
  110. package/dist/ui/CrmDashboard.js +304 -0
  111. package/dist/ui/CrmDashboard.js.map +1 -0
  112. package/dist/ui/CrmDealCard.d.ts +15 -0
  113. package/dist/ui/CrmDealCard.d.ts.map +1 -0
  114. package/dist/ui/CrmDealCard.js +49 -0
  115. package/dist/ui/CrmDealCard.js.map +1 -0
  116. package/dist/ui/CrmPipelineBoard.d.ts +23 -0
  117. package/dist/ui/CrmPipelineBoard.d.ts.map +1 -0
  118. package/dist/ui/CrmPipelineBoard.js +98 -0
  119. package/dist/ui/CrmPipelineBoard.js.map +1 -0
  120. package/dist/ui/hooks/index.d.ts +3 -0
  121. package/dist/ui/hooks/index.js +6 -0
  122. package/dist/ui/hooks/useDealList.d.ts +35 -0
  123. package/dist/ui/hooks/useDealList.d.ts.map +1 -0
  124. package/dist/ui/hooks/useDealList.js +94 -0
  125. package/dist/ui/hooks/useDealList.js.map +1 -0
  126. package/dist/ui/hooks/useDealMutations.d.ts +26 -0
  127. package/dist/ui/hooks/useDealMutations.d.ts.map +1 -0
  128. package/dist/ui/hooks/useDealMutations.js +159 -0
  129. package/dist/ui/hooks/useDealMutations.js.map +1 -0
  130. package/dist/ui/index.d.ts +14 -0
  131. package/dist/ui/index.js +15 -0
  132. package/dist/ui/modals/CreateDealModal.d.ts +33 -0
  133. package/dist/ui/modals/CreateDealModal.d.ts.map +1 -0
  134. package/dist/ui/modals/CreateDealModal.js +183 -0
  135. package/dist/ui/modals/CreateDealModal.js.map +1 -0
  136. package/dist/ui/modals/DealActionsModal.d.ts +51 -0
  137. package/dist/ui/modals/DealActionsModal.d.ts.map +1 -0
  138. package/dist/ui/modals/DealActionsModal.js +372 -0
  139. package/dist/ui/modals/DealActionsModal.js.map +1 -0
  140. package/dist/ui/modals/index.d.ts +3 -0
  141. package/dist/ui/modals/index.js +4 -0
  142. package/dist/ui/overlays/demo-overlays.d.ts +19 -0
  143. package/dist/ui/overlays/demo-overlays.d.ts.map +1 -0
  144. package/dist/ui/overlays/demo-overlays.js +68 -0
  145. package/dist/ui/overlays/demo-overlays.js.map +1 -0
  146. package/dist/ui/overlays/index.d.ts +2 -0
  147. package/dist/ui/overlays/index.js +3 -0
  148. package/dist/ui/renderers/index.d.ts +3 -0
  149. package/dist/ui/renderers/index.js +4 -0
  150. package/dist/ui/renderers/pipeline.markdown.d.ts +23 -0
  151. package/dist/ui/renderers/pipeline.markdown.d.ts.map +1 -0
  152. package/dist/ui/renderers/pipeline.markdown.js +118 -0
  153. package/dist/ui/renderers/pipeline.markdown.js.map +1 -0
  154. package/dist/ui/renderers/pipeline.renderer.d.ts +9 -0
  155. package/dist/ui/renderers/pipeline.renderer.d.ts.map +1 -0
  156. package/dist/ui/renderers/pipeline.renderer.js +28 -0
  157. package/dist/ui/renderers/pipeline.renderer.js.map +1 -0
  158. package/example.ts +1 -0
  159. package/package.json +127 -0
  160. package/src/crm-pipeline.feature.ts +100 -0
  161. package/src/deal/deal.enum.ts +21 -0
  162. package/src/deal/deal.operation.ts +291 -0
  163. package/src/deal/deal.schema.ts +154 -0
  164. package/src/deal/deal.test-spec.ts +55 -0
  165. package/src/deal/index.ts +26 -0
  166. package/src/docs/crm-pipeline.docblock.ts +98 -0
  167. package/src/docs/index.ts +1 -0
  168. package/src/entities/company.entity.ts +77 -0
  169. package/src/entities/contact.entity.ts +93 -0
  170. package/src/entities/deal.entity.ts +160 -0
  171. package/src/entities/index.ts +45 -0
  172. package/src/entities/task.entity.ts +137 -0
  173. package/src/events/contact.event.ts +31 -0
  174. package/src/events/deal.event.ts +104 -0
  175. package/src/events/index.ts +3 -0
  176. package/src/events/task.event.ts +28 -0
  177. package/src/example.ts +38 -0
  178. package/src/handlers/crm.handlers.ts +415 -0
  179. package/src/handlers/deal.handlers.ts +253 -0
  180. package/src/handlers/index.ts +30 -0
  181. package/src/handlers/mock-data.ts +198 -0
  182. package/src/index.ts +32 -0
  183. package/src/operations/index.ts +20 -0
  184. package/src/presentations/dashboard.presentation.ts +59 -0
  185. package/src/presentations/index.ts +2 -0
  186. package/src/presentations/pipeline.presentation.ts +117 -0
  187. package/src/seeders/index.ts +35 -0
  188. package/src/shared/overlay-types.ts +39 -0
  189. package/src/ui/CrmDashboard.tsx +311 -0
  190. package/src/ui/CrmDealCard.tsx +83 -0
  191. package/src/ui/CrmPipelineBoard.tsx +136 -0
  192. package/src/ui/hooks/index.ts +10 -0
  193. package/src/ui/hooks/useDealList.ts +113 -0
  194. package/src/ui/hooks/useDealMutations.ts +174 -0
  195. package/src/ui/index.ts +18 -0
  196. package/src/ui/modals/CreateDealModal.tsx +239 -0
  197. package/src/ui/modals/DealActionsModal.tsx +424 -0
  198. package/src/ui/modals/index.ts +2 -0
  199. package/src/ui/overlays/demo-overlays.ts +68 -0
  200. package/src/ui/overlays/index.ts +1 -0
  201. package/src/ui/renderers/index.ts +6 -0
  202. package/src/ui/renderers/pipeline.markdown.ts +198 -0
  203. package/src/ui/renderers/pipeline.renderer.tsx +35 -0
  204. package/tsconfig.json +10 -0
  205. package/tsconfig.tsbuildinfo +1 -0
  206. package/tsdown.config.js +7 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,436 @@
1
+ # @contractspec/example.crm-pipeline
2
+
3
+ ## 0.0.0-canary-20260113170453
4
+
5
+ ### Minor Changes
6
+
7
+ - caf8701: feat: add cli vibe command to run workflow
8
+ - c69b849: feat: add api web services (mcp & website)
9
+ - 42b8d78: feat: add cli `contractspec vibe` workflow to simplify usage
10
+ - fd38e85: feat: auto-fix contractspec issues
11
+
12
+ ### Patch Changes
13
+
14
+ - e7ded36: feat: improve stability (adding ts-morph)
15
+ - c231a8b: test: improve workspace stability
16
+ - Updated dependencies [e7ded36]
17
+ - Updated dependencies [caf8701]
18
+ - Updated dependencies [c69b849]
19
+ - Updated dependencies [c231a8b]
20
+ - Updated dependencies [42b8d78]
21
+ - Updated dependencies [fd38e85]
22
+ - @contractspec/lib.example-shared-ui@0.0.0-canary-20260113170453
23
+ - @contractspec/module.notifications@0.0.0-canary-20260113170453
24
+ - @contractspec/lib.runtime-sandbox@0.0.0-canary-20260113170453
25
+ - @contractspec/module.audit-trail@0.0.0-canary-20260113170453
26
+ - @contractspec/lib.design-system@0.0.0-canary-20260113170453
27
+ - @contractspec/lib.identity-rbac@0.0.0-canary-20260113170453
28
+ - @contractspec/lib.ui-kit-web@0.0.0-canary-20260113170453
29
+ - @contractspec/lib.contracts@0.0.0-canary-20260113170453
30
+ - @contractspec/lib.schema@0.0.0-canary-20260113170453
31
+
32
+ ## 1.46.2
33
+
34
+ ### Patch Changes
35
+
36
+ - 7e21625: feat: library services (landing page & api)
37
+ - Updated dependencies [7e21625]
38
+ - @contractspec/lib.example-shared-ui@1.0.1
39
+ - @contractspec/module.notifications@1.46.2
40
+ - @contractspec/lib.runtime-sandbox@0.1.1
41
+ - @contractspec/module.audit-trail@1.46.2
42
+ - @contractspec/lib.design-system@1.46.2
43
+ - @contractspec/lib.identity-rbac@1.46.2
44
+ - @contractspec/lib.contracts@1.46.2
45
+ - @contractspec/lib.schema@1.46.2
46
+
47
+ ## 1.46.1
48
+
49
+ ### Patch Changes
50
+
51
+ - 2d8a72b: fix: mcp for presentation
52
+ - Updated dependencies [2d8a72b]
53
+ - @contractspec/module.notifications@1.46.1
54
+ - @contractspec/module.audit-trail@1.46.1
55
+ - @contractspec/lib.identity-rbac@1.46.1
56
+ - @contractspec/lib.contracts@1.46.1
57
+ - @contractspec/lib.schema@1.46.1
58
+
59
+ ## 1.46.0
60
+
61
+ ### Minor Changes
62
+
63
+ - 07cb19b: feat: feat: cleaude code & opencode integrations
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [07cb19b]
68
+ - @contractspec/module.notifications@1.46.0
69
+ - @contractspec/module.audit-trail@1.46.0
70
+ - @contractspec/lib.identity-rbac@1.46.0
71
+ - @contractspec/lib.contracts@1.46.0
72
+ - @contractspec/lib.schema@1.46.0
73
+
74
+ ## 1.45.6
75
+
76
+ ### Patch Changes
77
+
78
+ - a913074: feat: improve ai agents rules management"
79
+ - Updated dependencies [a913074]
80
+ - @contractspec/module.notifications@1.45.6
81
+ - @contractspec/module.audit-trail@1.45.6
82
+ - @contractspec/lib.identity-rbac@1.45.6
83
+ - @contractspec/lib.contracts@1.45.6
84
+ - @contractspec/lib.schema@1.45.6
85
+
86
+ ## 1.45.5
87
+
88
+ ### Patch Changes
89
+
90
+ - 9ddd7fa: feat: improve versioning
91
+ - Updated dependencies [9ddd7fa]
92
+ - @contractspec/module.notifications@1.45.5
93
+ - @contractspec/module.audit-trail@1.45.5
94
+ - @contractspec/lib.identity-rbac@1.45.5
95
+ - @contractspec/lib.contracts@1.45.5
96
+ - @contractspec/lib.schema@1.45.5
97
+
98
+ ## 1.45.4
99
+
100
+ ### Patch Changes
101
+
102
+ - fix: github action
103
+ - Updated dependencies
104
+ - @contractspec/module.notifications@1.45.4
105
+ - @contractspec/module.audit-trail@1.45.4
106
+ - @contractspec/lib.identity-rbac@1.45.4
107
+ - @contractspec/lib.contracts@1.45.4
108
+ - @contractspec/lib.schema@1.45.4
109
+
110
+ ## 1.45.3
111
+
112
+ ### Patch Changes
113
+
114
+ - e74ea9e: feat: version management
115
+ - Updated dependencies [e74ea9e]
116
+ - @contractspec/module.notifications@1.45.3
117
+ - @contractspec/module.audit-trail@1.45.3
118
+ - @contractspec/lib.identity-rbac@1.45.3
119
+ - @contractspec/lib.contracts@1.45.3
120
+ - @contractspec/lib.schema@1.45.3
121
+
122
+ ## 1.45.2
123
+
124
+ ### Patch Changes
125
+
126
+ - 39ca241: code cleaning
127
+ - Updated dependencies [39ca241]
128
+ - @contractspec/module.notifications@1.45.2
129
+ - @contractspec/module.audit-trail@1.45.2
130
+ - @contractspec/lib.identity-rbac@1.45.2
131
+ - @contractspec/lib.contracts@1.45.2
132
+ - @contractspec/lib.schema@1.45.2
133
+
134
+ ## 1.45.1
135
+
136
+ ### Patch Changes
137
+
138
+ - feat: improve app config and examples contracts
139
+ - Updated dependencies
140
+ - @contractspec/module.notifications@1.45.1
141
+ - @contractspec/module.audit-trail@1.45.1
142
+ - @contractspec/lib.identity-rbac@1.45.1
143
+ - @contractspec/lib.contracts@1.45.1
144
+ - @contractspec/lib.schema@1.45.1
145
+ - @contractspec/lib.jobs@1.45.1
146
+ - @contractspec/lib.bus@1.45.1
147
+
148
+ ## 1.45.0
149
+
150
+ ### Minor Changes
151
+
152
+ - e73ca1d: feat: improve app config and examples contracts
153
+ feat: Contract layers support (features, examples, app-configs)
154
+
155
+ ### New CLI Commands
156
+ - `contractspec list layers` - List all contract layers with filtering
157
+
158
+ ### Enhanced Commands
159
+ - `contractspec ci` - New `layers` check category validates features/examples/config
160
+ - `contractspec doctor` - New `layers` health checks
161
+ - `contractspec integrity` - Now shows layer statistics
162
+
163
+ ### New APIs
164
+ - `discoverLayers()` - Scan workspace for all layer files
165
+ - `scanExampleSource()` - Parse ExampleSpec from source code
166
+ - `isExampleFile()` - Check if file is an example spec
167
+
168
+ ### Patch Changes
169
+
170
+ - Updated dependencies [e73ca1d]
171
+ - @contractspec/module.notifications@1.45.0
172
+ - @contractspec/module.audit-trail@1.45.0
173
+ - @contractspec/lib.identity-rbac@1.45.0
174
+ - @contractspec/lib.contracts@1.45.0
175
+ - @contractspec/lib.schema@1.45.0
176
+ - @contractspec/lib.jobs@1.45.0
177
+ - @contractspec/lib.bus@1.45.0
178
+
179
+ ## 1.44.1
180
+
181
+ ### Patch Changes
182
+
183
+ - 3c594fb: fix
184
+ - Updated dependencies [3c594fb]
185
+ - @contractspec/module.notifications@1.44.1
186
+ - @contractspec/module.audit-trail@1.44.1
187
+ - @contractspec/lib.identity-rbac@1.44.1
188
+ - @contractspec/lib.contracts@1.44.1
189
+ - @contractspec/lib.schema@1.44.1
190
+ - @contractspec/lib.jobs@1.44.1
191
+ - @contractspec/lib.bus@1.44.1
192
+
193
+ ## 1.44.0
194
+
195
+ ### Minor Changes
196
+
197
+ - 5f3a868: chore: isolate branding to contractspec.io
198
+
199
+ ### Patch Changes
200
+
201
+ - Updated dependencies [5f3a868]
202
+ - @contractspec/module.notifications@1.44.0
203
+ - @contractspec/module.audit-trail@1.44.0
204
+ - @contractspec/lib.identity-rbac@1.44.0
205
+ - @contractspec/lib.contracts@1.44.0
206
+ - @contractspec/lib.schema@1.44.0
207
+ - @contractspec/lib.jobs@1.44.0
208
+ - @contractspec/lib.bus@1.44.0
209
+
210
+ ## 1.43.4
211
+
212
+ ### Patch Changes
213
+
214
+ - 9216062: fix: cross-platform compatibility
215
+ - Updated dependencies [9216062]
216
+ - @contractspec/module.notifications@1.43.4
217
+ - @contractspec/module.audit-trail@1.43.4
218
+ - @contractspec/lib.identity-rbac@1.43.4
219
+ - @contractspec/lib.contracts@1.43.4
220
+ - @contractspec/lib.schema@1.43.3
221
+ - @contractspec/lib.jobs@1.43.4
222
+ - @contractspec/lib.bus@1.43.4
223
+
224
+ ## 1.43.3
225
+
226
+ ### Patch Changes
227
+
228
+ - 24d9759: improve documentation
229
+ - Updated dependencies [24d9759]
230
+ - @contractspec/module.notifications@1.43.3
231
+ - @contractspec/module.audit-trail@1.43.3
232
+ - @contractspec/lib.identity-rbac@1.43.3
233
+ - @contractspec/lib.contracts@1.43.3
234
+ - @contractspec/lib.schema@1.43.2
235
+ - @contractspec/lib.jobs@1.43.3
236
+ - @contractspec/lib.bus@1.43.3
237
+
238
+ ## 1.43.2
239
+
240
+ ### Patch Changes
241
+
242
+ - e147271: fix: improve stability
243
+ - Updated dependencies [e147271]
244
+ - @contractspec/module.notifications@1.43.2
245
+ - @contractspec/module.audit-trail@1.43.2
246
+ - @contractspec/lib.identity-rbac@1.43.2
247
+ - @contractspec/lib.contracts@1.43.2
248
+ - @contractspec/lib.jobs@1.43.2
249
+ - @contractspec/lib.bus@1.43.2
250
+ - @contractspec/lib.schema@1.43.1
251
+
252
+ ## 1.43.1
253
+
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [f28fdad]
257
+ - @contractspec/lib.contracts@1.43.1
258
+ - @contractspec/lib.bus@1.43.1
259
+ - @contractspec/lib.identity-rbac@1.43.1
260
+ - @contractspec/lib.jobs@1.43.1
261
+ - @contractspec/module.audit-trail@1.43.1
262
+ - @contractspec/module.notifications@1.43.1
263
+
264
+ ## 1.43.0
265
+
266
+ ### Minor Changes
267
+
268
+ - 042d072: feat: schema declaration using json schema, including zod
269
+
270
+ ### Patch Changes
271
+
272
+ - Updated dependencies [042d072]
273
+ - @contractspec/module.notifications@1.43.0
274
+ - @contractspec/module.audit-trail@1.43.0
275
+ - @contractspec/lib.identity-rbac@1.43.0
276
+ - @contractspec/lib.contracts@1.43.0
277
+ - @contractspec/lib.schema@1.43.0
278
+ - @contractspec/lib.jobs@1.43.0
279
+ - @contractspec/lib.bus@1.43.0
280
+
281
+ ## 1.42.10
282
+
283
+ ### Patch Changes
284
+
285
+ - 1e6a0f1: fix: mcp server
286
+ - Updated dependencies [1e6a0f1]
287
+ - @contractspec/module.notifications@1.42.10
288
+ - @contractspec/module.audit-trail@1.42.10
289
+ - @contractspec/lib.identity-rbac@1.42.10
290
+ - @contractspec/lib.contracts@1.42.10
291
+ - @contractspec/lib.schema@1.42.10
292
+ - @contractspec/lib.jobs@1.42.10
293
+ - @contractspec/lib.bus@1.42.10
294
+
295
+ ## 1.42.9
296
+
297
+ ### Patch Changes
298
+
299
+ - 9281db7: fix ModelRegistry
300
+ - Updated dependencies [9281db7]
301
+ - @contractspec/module.notifications@1.42.9
302
+ - @contractspec/module.audit-trail@1.42.9
303
+ - @contractspec/lib.identity-rbac@1.42.9
304
+ - @contractspec/lib.contracts@1.42.9
305
+ - @contractspec/lib.schema@1.42.9
306
+ - @contractspec/lib.jobs@1.42.9
307
+ - @contractspec/lib.bus@1.42.9
308
+
309
+ ## 1.42.8
310
+
311
+ ### Patch Changes
312
+
313
+ - e07b5ac: fix
314
+ - Updated dependencies [e07b5ac]
315
+ - @contractspec/module.notifications@1.42.8
316
+ - @contractspec/module.audit-trail@1.42.8
317
+ - @contractspec/lib.identity-rbac@1.42.8
318
+ - @contractspec/lib.contracts@1.42.8
319
+ - @contractspec/lib.schema@1.42.8
320
+ - @contractspec/lib.jobs@1.42.8
321
+ - @contractspec/lib.bus@1.42.8
322
+
323
+ ## 1.42.7
324
+
325
+ ### Patch Changes
326
+
327
+ - e9b575d: fix release
328
+ - Updated dependencies [e9b575d]
329
+ - @contractspec/module.notifications@1.42.7
330
+ - @contractspec/module.audit-trail@1.42.7
331
+ - @contractspec/lib.identity-rbac@1.42.7
332
+ - @contractspec/lib.contracts@1.42.7
333
+ - @contractspec/lib.schema@1.42.7
334
+ - @contractspec/lib.jobs@1.42.7
335
+ - @contractspec/lib.bus@1.42.7
336
+
337
+ ## 1.42.6
338
+
339
+ ### Patch Changes
340
+
341
+ - 1500242: fix tooling
342
+ - Updated dependencies [1500242]
343
+ - @contractspec/module.notifications@1.42.6
344
+ - @contractspec/module.audit-trail@1.42.6
345
+ - @contractspec/lib.identity-rbac@1.42.6
346
+ - @contractspec/lib.contracts@1.42.6
347
+ - @contractspec/lib.schema@1.42.6
348
+ - @contractspec/lib.jobs@1.42.6
349
+ - @contractspec/lib.bus@1.42.6
350
+
351
+ ## 1.42.5
352
+
353
+ ### Patch Changes
354
+
355
+ - 1299719: fix vscode
356
+ - Updated dependencies [1299719]
357
+ - @contractspec/module.notifications@1.42.5
358
+ - @contractspec/module.audit-trail@1.42.5
359
+ - @contractspec/lib.identity-rbac@1.42.5
360
+ - @contractspec/lib.contracts@1.42.5
361
+ - @contractspec/lib.schema@1.42.5
362
+ - @contractspec/lib.jobs@1.42.5
363
+ - @contractspec/lib.bus@1.42.5
364
+
365
+ ## 1.42.4
366
+
367
+ ### Patch Changes
368
+
369
+ - ac28b99: fix: generate from openapi
370
+ - Updated dependencies [ac28b99]
371
+ - @contractspec/module.notifications@1.42.4
372
+ - @contractspec/module.audit-trail@1.42.4
373
+ - @contractspec/lib.identity-rbac@1.42.4
374
+ - @contractspec/lib.contracts@1.42.4
375
+ - @contractspec/lib.schema@1.42.4
376
+ - @contractspec/lib.jobs@1.42.4
377
+ - @contractspec/lib.bus@1.42.4
378
+
379
+ ## 1.42.3
380
+
381
+ ### Patch Changes
382
+
383
+ - 3f5d015: fix(tooling): cicd
384
+ - Updated dependencies [3f5d015]
385
+ - @contractspec/lib.bus@1.42.3
386
+ - @contractspec/lib.contracts@1.42.3
387
+ - @contractspec/lib.identity-rbac@1.42.3
388
+ - @contractspec/lib.jobs@1.42.3
389
+ - @contractspec/lib.schema@1.42.3
390
+ - @contractspec/module.audit-trail@1.42.3
391
+ - @contractspec/module.notifications@1.42.3
392
+
393
+ ## 1.42.2
394
+
395
+ ### Patch Changes
396
+
397
+ - 1f9ac4c: fix
398
+ - Updated dependencies [1f9ac4c]
399
+ - @contractspec/lib.bus@1.42.2
400
+ - @contractspec/lib.contracts@1.42.2
401
+ - @contractspec/lib.identity-rbac@1.42.2
402
+ - @contractspec/lib.jobs@1.42.2
403
+ - @contractspec/lib.schema@1.42.2
404
+ - @contractspec/module.audit-trail@1.42.2
405
+ - @contractspec/module.notifications@1.42.2
406
+
407
+ ## 1.42.1
408
+
409
+ ### Patch Changes
410
+
411
+ - f043995: Fix release
412
+ - Updated dependencies [f043995]
413
+ - @contractspec/module.notifications@1.42.1
414
+ - @contractspec/module.audit-trail@1.42.1
415
+ - @contractspec/lib.identity-rbac@1.42.1
416
+ - @contractspec/lib.contracts@1.42.1
417
+ - @contractspec/lib.schema@1.42.1
418
+ - @contractspec/lib.jobs@1.42.1
419
+ - @contractspec/lib.bus@1.42.1
420
+
421
+ ## 1.42.0
422
+
423
+ ### Minor Changes
424
+
425
+ - 8eefd9c: initial release
426
+
427
+ ### Patch Changes
428
+
429
+ - Updated dependencies [8eefd9c]
430
+ - @contractspec/lib.bus@1.42.0
431
+ - @contractspec/lib.contracts@1.42.0
432
+ - @contractspec/lib.identity-rbac@1.42.0
433
+ - @contractspec/lib.jobs@1.42.0
434
+ - @contractspec/lib.schema@1.42.0
435
+ - @contractspec/module.audit-trail@1.42.0
436
+ - @contractspec/module.notifications@1.42.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,139 @@
1
+ # CRM Pipeline
2
+
3
+ Website: https://contractspec.io/
4
+
5
+
6
+ A complete CRM (Customer Relationship Management) application demonstrating ContractSpec principles.
7
+
8
+ ## What's Included
9
+
10
+ This example showcases a CRM system with:
11
+
12
+ - **Contacts**: Individual people with contact information
13
+ - **Companies**: Organizations/accounts that contacts belong to
14
+ - **Deals**: Sales opportunities with pipeline stages
15
+ - **Pipelines**: Customizable sales pipelines with stages
16
+ - **Tasks**: Follow-up activities tied to contacts/deals
17
+
18
+ ## Architecture
19
+
20
+ ```
21
+ crm-pipeline/
22
+ ├── entities/ # Entity specs (generates Prisma schema)
23
+ │ ├── contact.ts
24
+ │ ├── company.ts
25
+ │ ├── deal.ts
26
+ │ ├── pipeline.ts
27
+ │ └── task.ts
28
+ ├── contracts/ # API contracts
29
+ │ ├── contact.ts
30
+ │ ├── deal.ts
31
+ │ └── task.ts
32
+ ├── events/ # Domain events
33
+ │ └── index.ts
34
+ └── README.md
35
+ ```
36
+
37
+ ## Entities
38
+
39
+ ### Contact
40
+
41
+ ```typescript
42
+ const ContactEntity = defineEntity({
43
+ name: 'Contact',
44
+ fields: {
45
+ id: field.id(),
46
+ firstName: field.string(),
47
+ lastName: field.string(),
48
+ email: field.email({ isOptional: true }),
49
+ phone: field.string({ isOptional: true }),
50
+ companyId: field.foreignKey({ isOptional: true }),
51
+ ownerId: field.foreignKey(),
52
+ // ...
53
+ },
54
+ });
55
+ ```
56
+
57
+ ### Company
58
+
59
+ ```typescript
60
+ const CompanyEntity = defineEntity({
61
+ name: 'Company',
62
+ fields: {
63
+ id: field.id(),
64
+ name: field.string(),
65
+ domain: field.string({ isOptional: true }),
66
+ industry: field.string({ isOptional: true }),
67
+ size: field.enum('CompanySize'),
68
+ // ...
69
+ },
70
+ });
71
+ ```
72
+
73
+ ### Deal
74
+
75
+ ```typescript
76
+ const DealEntity = defineEntity({
77
+ name: 'Deal',
78
+ fields: {
79
+ id: field.id(),
80
+ name: field.string(),
81
+ value: field.decimal(),
82
+ currency: field.string(),
83
+ stageId: field.foreignKey(),
84
+ contactId: field.foreignKey({ isOptional: true }),
85
+ companyId: field.foreignKey({ isOptional: true }),
86
+ // ...
87
+ },
88
+ });
89
+ ```
90
+
91
+ ### Pipeline & Stage
92
+
93
+ ```typescript
94
+ const PipelineEntity = defineEntity({
95
+ name: 'Pipeline',
96
+ fields: {
97
+ id: field.id(),
98
+ name: field.string(),
99
+ isDefault: field.boolean(),
100
+ // ...
101
+ },
102
+ });
103
+
104
+ const StageEntity = defineEntity({
105
+ name: 'Stage',
106
+ fields: {
107
+ id: field.id(),
108
+ name: field.string(),
109
+ pipelineId: field.foreignKey(),
110
+ position: field.int(),
111
+ probability: field.int(), // Win probability %
112
+ // ...
113
+ },
114
+ });
115
+ ```
116
+
117
+ ## Events
118
+
119
+ | Event | Description |
120
+ |-------|-------------|
121
+ | contact.created | New contact added |
122
+ | deal.created | New deal created |
123
+ | deal.moved | Deal moved to new stage |
124
+ | deal.won | Deal marked as won |
125
+ | deal.lost | Deal marked as lost |
126
+ | task.completed | Task marked complete |
127
+
128
+ ## Usage
129
+
130
+ ### Load as Studio Template
131
+
132
+ This example is registered as `crm-pipeline` in the ContractSpec Studio.
133
+
134
+ ### Clone via Git
135
+
136
+ ```bash
137
+ npx degit lssm/contractspec/packages/examples/crm-pipeline my-crm-app
138
+ ```
139
+
@@ -0,0 +1,12 @@
1
+ import * as _contractspec_lib_contracts4 from "@contractspec/lib.contracts";
2
+
3
+ //#region src/crm-pipeline.feature.d.ts
4
+
5
+ /**
6
+ * CRM Pipeline feature module that bundles deal management,
7
+ * pipeline operations, and contact management into an installable feature.
8
+ */
9
+ declare const CrmPipelineFeature: _contractspec_lib_contracts4.FeatureModuleSpec;
10
+ //#endregion
11
+ export { CrmPipelineFeature };
12
+ //# sourceMappingURL=crm-pipeline.feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm-pipeline.feature.d.ts","names":[],"sources":["../src/crm-pipeline.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWA;cAAa,oBAwFX,4BAAA,CAxF6B"}