@contractspec/example.crm-pipeline 1.44.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 (122) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +97 -0
  2. package/.turbo/turbo-build.log +98 -0
  3. package/CHANGELOG.md +246 -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 +159 -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/index.d.ts +4 -0
  23. package/dist/deal/index.js +5 -0
  24. package/dist/docs/crm-pipeline.docblock.d.ts +1 -0
  25. package/dist/docs/crm-pipeline.docblock.js +100 -0
  26. package/dist/docs/crm-pipeline.docblock.js.map +1 -0
  27. package/dist/docs/index.d.ts +1 -0
  28. package/dist/docs/index.js +1 -0
  29. package/dist/entities/company.entity.d.ts +40 -0
  30. package/dist/entities/company.entity.d.ts.map +1 -0
  31. package/dist/entities/company.entity.js +63 -0
  32. package/dist/entities/company.entity.js.map +1 -0
  33. package/dist/entities/contact.entity.d.ts +44 -0
  34. package/dist/entities/contact.entity.d.ts.map +1 -0
  35. package/dist/entities/contact.entity.js +78 -0
  36. package/dist/entities/contact.entity.js.map +1 -0
  37. package/dist/entities/deal.entity.d.ts +73 -0
  38. package/dist/entities/deal.entity.d.ts.map +1 -0
  39. package/dist/entities/deal.entity.js +120 -0
  40. package/dist/entities/deal.entity.js.map +1 -0
  41. package/dist/entities/index.d.ts +15 -0
  42. package/dist/entities/index.d.ts.map +1 -0
  43. package/dist/entities/index.js +33 -0
  44. package/dist/entities/index.js.map +1 -0
  45. package/dist/entities/task.entity.d.ts +65 -0
  46. package/dist/entities/task.entity.d.ts.map +1 -0
  47. package/dist/entities/task.entity.js +129 -0
  48. package/dist/entities/task.entity.js.map +1 -0
  49. package/dist/events/contact.event.d.ts +29 -0
  50. package/dist/events/contact.event.d.ts.map +1 -0
  51. package/dist/events/contact.event.js +45 -0
  52. package/dist/events/contact.event.js.map +1 -0
  53. package/dist/events/deal.event.d.ts +111 -0
  54. package/dist/events/deal.event.d.ts.map +1 -0
  55. package/dist/events/deal.event.js +172 -0
  56. package/dist/events/deal.event.js.map +1 -0
  57. package/dist/events/index.d.ts +4 -0
  58. package/dist/events/index.js +5 -0
  59. package/dist/events/task.event.d.ts +29 -0
  60. package/dist/events/task.event.d.ts.map +1 -0
  61. package/dist/events/task.event.js +45 -0
  62. package/dist/events/task.event.js.map +1 -0
  63. package/dist/example.d.ts +37 -0
  64. package/dist/example.d.ts.map +1 -0
  65. package/dist/example.js +46 -0
  66. package/dist/example.js.map +1 -0
  67. package/dist/handlers/deal.handlers.d.ts +94 -0
  68. package/dist/handlers/deal.handlers.d.ts.map +1 -0
  69. package/dist/handlers/deal.handlers.js +120 -0
  70. package/dist/handlers/deal.handlers.js.map +1 -0
  71. package/dist/handlers/index.d.ts +3 -0
  72. package/dist/handlers/index.js +4 -0
  73. package/dist/handlers/mock-data.d.ts +49 -0
  74. package/dist/handlers/mock-data.d.ts.map +1 -0
  75. package/dist/handlers/mock-data.js +188 -0
  76. package/dist/handlers/mock-data.js.map +1 -0
  77. package/dist/index.d.ts +34 -0
  78. package/dist/index.d.ts.map +1 -0
  79. package/dist/index.js +43 -0
  80. package/dist/index.js.map +1 -0
  81. package/dist/operations/index.d.ts +5 -0
  82. package/dist/operations/index.js +6 -0
  83. package/dist/presentations/dashboard.presentation.d.ts +15 -0
  84. package/dist/presentations/dashboard.presentation.d.ts.map +1 -0
  85. package/dist/presentations/dashboard.presentation.js +59 -0
  86. package/dist/presentations/dashboard.presentation.js.map +1 -0
  87. package/dist/presentations/index.d.ts +3 -0
  88. package/dist/presentations/index.js +4 -0
  89. package/dist/presentations/pipeline.presentation.d.ts +23 -0
  90. package/dist/presentations/pipeline.presentation.d.ts.map +1 -0
  91. package/dist/presentations/pipeline.presentation.js +119 -0
  92. package/dist/presentations/pipeline.presentation.js.map +1 -0
  93. package/example.ts +1 -0
  94. package/package.json +105 -0
  95. package/src/crm-pipeline.feature.ts +96 -0
  96. package/src/deal/deal.enum.ts +21 -0
  97. package/src/deal/deal.operation.ts +291 -0
  98. package/src/deal/deal.schema.ts +154 -0
  99. package/src/deal/index.ts +26 -0
  100. package/src/docs/crm-pipeline.docblock.ts +98 -0
  101. package/src/docs/index.ts +1 -0
  102. package/src/entities/company.entity.ts +77 -0
  103. package/src/entities/contact.entity.ts +93 -0
  104. package/src/entities/deal.entity.ts +160 -0
  105. package/src/entities/index.ts +45 -0
  106. package/src/entities/task.entity.ts +137 -0
  107. package/src/events/contact.event.ts +31 -0
  108. package/src/events/deal.event.ts +104 -0
  109. package/src/events/index.ts +3 -0
  110. package/src/events/task.event.ts +28 -0
  111. package/src/example.ts +30 -0
  112. package/src/handlers/deal.handlers.ts +253 -0
  113. package/src/handlers/index.ts +27 -0
  114. package/src/handlers/mock-data.ts +198 -0
  115. package/src/index.ts +31 -0
  116. package/src/operations/index.ts +20 -0
  117. package/src/presentations/dashboard.presentation.ts +60 -0
  118. package/src/presentations/index.ts +2 -0
  119. package/src/presentations/pipeline.presentation.ts +118 -0
  120. package/tsconfig.json +10 -0
  121. package/tsconfig.tsbuildinfo +1 -0
  122. package/tsdown.config.js +7 -0
@@ -0,0 +1,97 @@
1
+ $ tsdown
2
+ ℹ tsdown v0.18.3 powered by rolldown v1.0.0-beta.57
3
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/crm-pipeline/tsdown.config.js
4
+ ℹ entry: src/crm-pipeline.feature.ts, src/example.ts, src/index.ts, src/deal/deal.enum.ts, src/deal/deal.operation.ts, src/deal/deal.schema.ts, src/deal/index.ts, src/docs/crm-pipeline.docblock.ts, src/docs/index.ts, src/entities/company.entity.ts, src/entities/contact.entity.ts, src/entities/deal.entity.ts, src/entities/index.ts, src/entities/task.entity.ts, src/events/contact.event.ts, src/events/deal.event.ts, src/events/index.ts, src/events/task.event.ts, src/handlers/deal.handlers.ts, src/handlers/index.ts, src/handlers/mock-data.ts, src/operations/index.ts, src/presentations/dashboard.presentation.ts, src/presentations/index.ts, src/presentations/pipeline.presentation.ts
5
+ ℹ target: esnext
6
+ ℹ tsconfig: tsconfig.json
7
+ ℹ Build start
8
+ ℹ Cleaning 94 files
9
+ ℹ dist/deal/deal.schema.js  5.86 kB │ gzip: 0.87 kB
10
+ ℹ dist/deal/deal.operation.js  5.57 kB │ gzip: 1.47 kB
11
+ ℹ dist/handlers/mock-data.js  4.50 kB │ gzip: 1.09 kB
12
+ ℹ dist/events/deal.event.js  3.75 kB │ gzip: 0.67 kB
13
+ ℹ dist/handlers/deal.handlers.js  3.73 kB │ gzip: 1.06 kB
14
+ ℹ dist/index.js  3.65 kB │ gzip: 0.94 kB
15
+ ℹ dist/docs/crm-pipeline.docblock.js  3.60 kB │ gzip: 1.44 kB
16
+ ℹ dist/entities/deal.entity.js  3.56 kB │ gzip: 1.05 kB
17
+ ℹ dist/entities/task.entity.js  3.41 kB │ gzip: 0.98 kB
18
+ ℹ dist/presentations/pipeline.presentation.js  3.06 kB │ gzip: 0.93 kB
19
+ ℹ dist/entities/contact.entity.js  2.38 kB │ gzip: 0.83 kB
20
+ ℹ dist/crm-pipeline.feature.js  2.31 kB │ gzip: 0.63 kB
21
+ ℹ dist/entities/company.entity.js  1.97 kB │ gzip: 0.72 kB
22
+ ℹ dist/presentations/dashboard.presentation.js  1.55 kB │ gzip: 0.61 kB
23
+ ℹ dist/events/contact.event.js  1.08 kB │ gzip: 0.45 kB
24
+ ℹ dist/events/task.event.js  1.06 kB │ gzip: 0.44 kB
25
+ ℹ dist/entities/index.js  1.05 kB │ gzip: 0.39 kB
26
+ ℹ dist/example.js  0.89 kB │ gzip: 0.47 kB
27
+ ℹ dist/operations/index.js  0.79 kB │ gzip: 0.23 kB
28
+ ℹ dist/deal/index.js  0.78 kB │ gzip: 0.23 kB
29
+ ℹ dist/handlers/index.js  0.52 kB │ gzip: 0.19 kB
30
+ ℹ dist/deal/deal.enum.js  0.44 kB │ gzip: 0.24 kB
31
+ ℹ dist/presentations/index.js  0.40 kB │ gzip: 0.15 kB
32
+ ℹ dist/events/index.js  0.32 kB │ gzip: 0.14 kB
33
+ ℹ dist/docs/index.js  0.04 kB │ gzip: 0.06 kB
34
+ ℹ dist/deal/deal.operation.js.map  9.52 kB │ gzip: 2.05 kB
35
+ ℹ dist/deal/deal.schema.js.map  8.70 kB │ gzip: 1.25 kB
36
+ ℹ dist/handlers/deal.handlers.js.map  7.89 kB │ gzip: 2.07 kB
37
+ ℹ dist/handlers/mock-data.js.map  7.48 kB │ gzip: 1.55 kB
38
+ ℹ dist/entities/deal.entity.js.map  6.68 kB │ gzip: 1.76 kB
39
+ ℹ dist/entities/task.entity.js.map  6.10 kB │ gzip: 1.56 kB
40
+ ℹ dist/events/deal.event.js.map  5.86 kB │ gzip: 1.01 kB
41
+ ℹ dist/presentations/pipeline.presentation.js.map  4.83 kB │ gzip: 1.24 kB
42
+ ℹ dist/docs/crm-pipeline.docblock.js.map  4.46 kB │ gzip: 1.65 kB
43
+ ℹ dist/entities/contact.entity.js.map  4.32 kB │ gzip: 1.37 kB
44
+ ℹ dist/crm-pipeline.feature.js.map  4.27 kB │ gzip: 1.20 kB
45
+ ℹ dist/entities/company.entity.js.map  3.58 kB │ gzip: 1.17 kB
46
+ ℹ dist/presentations/dashboard.presentation.js.map  2.50 kB │ gzip: 0.87 kB
47
+ ℹ dist/events/contact.event.js.map  1.65 kB │ gzip: 0.69 kB
48
+ ℹ dist/events/task.event.js.map  1.61 kB │ gzip: 0.64 kB
49
+ ℹ dist/entities/index.js.map  1.38 kB │ gzip: 0.49 kB
50
+ ℹ dist/handlers/deal.handlers.d.ts.map  1.35 kB │ gzip: 0.52 kB
51
+ ℹ dist/example.js.map  1.30 kB │ gzip: 0.66 kB
52
+ ℹ dist/deal/deal.schema.d.ts.map  1.29 kB │ gzip: 0.45 kB
53
+ ℹ dist/deal/deal.operation.d.ts.map  1.27 kB │ gzip: 0.38 kB
54
+ ℹ dist/index.js.map  1.27 kB │ gzip: 0.54 kB
55
+ ℹ dist/events/deal.event.d.ts.map  0.68 kB │ gzip: 0.28 kB
56
+ ℹ dist/deal/deal.enum.js.map  0.60 kB │ gzip: 0.32 kB
57
+ ℹ dist/entities/deal.entity.d.ts.map  0.44 kB │ gzip: 0.26 kB
58
+ ℹ dist/entities/task.entity.d.ts.map  0.43 kB │ gzip: 0.26 kB
59
+ ℹ dist/handlers/mock-data.d.ts.map  0.42 kB │ gzip: 0.26 kB
60
+ ℹ dist/entities/contact.entity.d.ts.map  0.27 kB │ gzip: 0.19 kB
61
+ ℹ dist/entities/company.entity.d.ts.map  0.26 kB │ gzip: 0.19 kB
62
+ ℹ dist/deal/deal.enum.d.ts.map  0.25 kB │ gzip: 0.17 kB
63
+ ℹ dist/events/contact.event.d.ts.map  0.24 kB │ gzip: 0.18 kB
64
+ ℹ dist/presentations/pipeline.presentation.d.ts.map  0.24 kB │ gzip: 0.17 kB
65
+ ℹ dist/events/task.event.d.ts.map  0.24 kB │ gzip: 0.18 kB
66
+ ℹ dist/presentations/dashboard.presentation.d.ts.map  0.20 kB │ gzip: 0.15 kB
67
+ ℹ dist/index.d.ts.map  0.16 kB │ gzip: 0.13 kB
68
+ ℹ dist/crm-pipeline.feature.d.ts.map  0.16 kB │ gzip: 0.13 kB
69
+ ℹ dist/entities/index.d.ts.map  0.15 kB │ gzip: 0.13 kB
70
+ ℹ dist/example.d.ts.map  0.14 kB │ gzip: 0.13 kB
71
+ ℹ dist/deal/deal.operation.d.ts 14.01 kB │ gzip: 0.98 kB
72
+ ℹ dist/deal/deal.schema.d.ts  8.27 kB │ gzip: 0.84 kB
73
+ ℹ dist/index.d.ts  3.56 kB │ gzip: 0.91 kB
74
+ ℹ dist/entities/deal.entity.d.ts  3.54 kB │ gzip: 0.56 kB
75
+ ℹ dist/events/deal.event.d.ts  3.31 kB │ gzip: 0.43 kB
76
+ ℹ dist/entities/task.entity.d.ts  2.99 kB │ gzip: 0.51 kB
77
+ ℹ dist/handlers/deal.handlers.d.ts  2.40 kB │ gzip: 0.69 kB
78
+ ℹ dist/entities/contact.entity.d.ts  2.16 kB │ gzip: 0.45 kB
79
+ ℹ dist/entities/company.entity.d.ts  1.91 kB │ gzip: 0.42 kB
80
+ ℹ dist/example.d.ts  1.14 kB │ gzip: 0.46 kB
81
+ ℹ dist/handlers/mock-data.d.ts  1.04 kB │ gzip: 0.43 kB
82
+ ℹ dist/events/contact.event.d.ts  0.94 kB │ gzip: 0.31 kB
83
+ ℹ dist/events/task.event.d.ts  0.93 kB │ gzip: 0.30 kB
84
+ ℹ dist/entities/index.d.ts  0.85 kB │ gzip: 0.32 kB
85
+ ℹ dist/handlers/index.d.ts  0.80 kB │ gzip: 0.25 kB
86
+ ℹ dist/operations/index.d.ts  0.79 kB │ gzip: 0.24 kB
87
+ ℹ dist/deal/index.d.ts  0.78 kB │ gzip: 0.23 kB
88
+ ℹ dist/presentations/pipeline.presentation.d.ts  0.70 kB │ gzip: 0.28 kB
89
+ ℹ dist/deal/deal.enum.d.ts  0.48 kB │ gzip: 0.23 kB
90
+ ℹ dist/presentations/dashboard.presentation.d.ts  0.46 kB │ gzip: 0.22 kB
91
+ ℹ dist/presentations/index.d.ts  0.40 kB │ gzip: 0.15 kB
92
+ ℹ dist/crm-pipeline.feature.d.ts  0.40 kB │ gzip: 0.24 kB
93
+ ℹ dist/events/index.d.ts  0.32 kB │ gzip: 0.14 kB
94
+ ℹ dist/docs/crm-pipeline.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
95
+ ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
96
+ ℹ 87 files, total: 200.69 kB
97
+ ✔ Build complete in 19427ms
@@ -0,0 +1,98 @@
1
+ $ bun build:types && bun build:bundle
2
+ $ tsc --noEmit
3
+ $ tsdown
4
+ ℹ tsdown v0.18.3 powered by rolldown v1.0.0-beta.57
5
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/crm-pipeline/tsdown.config.js
6
+ ℹ entry: src/crm-pipeline.feature.ts, src/example.ts, src/index.ts, src/deal/deal.enum.ts, src/deal/deal.operation.ts, src/deal/deal.schema.ts, src/deal/index.ts, src/docs/crm-pipeline.docblock.ts, src/docs/index.ts, src/entities/company.entity.ts, src/entities/contact.entity.ts, src/entities/deal.entity.ts, src/entities/index.ts, src/entities/task.entity.ts, src/events/contact.event.ts, src/events/deal.event.ts, src/events/index.ts, src/events/task.event.ts, src/handlers/deal.handlers.ts, src/handlers/index.ts, src/handlers/mock-data.ts, src/operations/index.ts, src/presentations/dashboard.presentation.ts, src/presentations/index.ts, src/presentations/pipeline.presentation.ts
7
+ ℹ target: esnext
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ dist/deal/deal.schema.js  5.86 kB │ gzip: 0.87 kB
11
+ ℹ dist/deal/deal.operation.js  5.57 kB │ gzip: 1.47 kB
12
+ ℹ dist/handlers/mock-data.js  4.50 kB │ gzip: 1.09 kB
13
+ ℹ dist/events/deal.event.js  3.75 kB │ gzip: 0.67 kB
14
+ ℹ dist/handlers/deal.handlers.js  3.73 kB │ gzip: 1.06 kB
15
+ ℹ dist/index.js  3.65 kB │ gzip: 0.94 kB
16
+ ℹ dist/docs/crm-pipeline.docblock.js  3.60 kB │ gzip: 1.44 kB
17
+ ℹ dist/entities/deal.entity.js  3.56 kB │ gzip: 1.05 kB
18
+ ℹ dist/entities/task.entity.js  3.41 kB │ gzip: 0.98 kB
19
+ ℹ dist/presentations/pipeline.presentation.js  3.06 kB │ gzip: 0.93 kB
20
+ ℹ dist/entities/contact.entity.js  2.38 kB │ gzip: 0.83 kB
21
+ ℹ dist/crm-pipeline.feature.js  2.31 kB │ gzip: 0.63 kB
22
+ ℹ dist/entities/company.entity.js  1.97 kB │ gzip: 0.72 kB
23
+ ℹ dist/presentations/dashboard.presentation.js  1.55 kB │ gzip: 0.61 kB
24
+ ℹ dist/events/contact.event.js  1.08 kB │ gzip: 0.45 kB
25
+ ℹ dist/events/task.event.js  1.06 kB │ gzip: 0.44 kB
26
+ ℹ dist/entities/index.js  1.05 kB │ gzip: 0.39 kB
27
+ ℹ dist/example.js  0.89 kB │ gzip: 0.47 kB
28
+ ℹ dist/operations/index.js  0.79 kB │ gzip: 0.23 kB
29
+ ℹ dist/deal/index.js  0.78 kB │ gzip: 0.23 kB
30
+ ℹ dist/handlers/index.js  0.52 kB │ gzip: 0.19 kB
31
+ ℹ dist/deal/deal.enum.js  0.44 kB │ gzip: 0.24 kB
32
+ ℹ dist/presentations/index.js  0.40 kB │ gzip: 0.15 kB
33
+ ℹ dist/events/index.js  0.32 kB │ gzip: 0.14 kB
34
+ ℹ dist/docs/index.js  0.04 kB │ gzip: 0.06 kB
35
+ ℹ dist/deal/deal.operation.js.map  9.52 kB │ gzip: 2.05 kB
36
+ ℹ dist/deal/deal.schema.js.map  8.70 kB │ gzip: 1.25 kB
37
+ ℹ dist/handlers/deal.handlers.js.map  7.89 kB │ gzip: 2.07 kB
38
+ ℹ dist/handlers/mock-data.js.map  7.48 kB │ gzip: 1.55 kB
39
+ ℹ dist/entities/deal.entity.js.map  6.68 kB │ gzip: 1.76 kB
40
+ ℹ dist/entities/task.entity.js.map  6.10 kB │ gzip: 1.56 kB
41
+ ℹ dist/events/deal.event.js.map  5.86 kB │ gzip: 1.01 kB
42
+ ℹ dist/presentations/pipeline.presentation.js.map  4.83 kB │ gzip: 1.24 kB
43
+ ℹ dist/docs/crm-pipeline.docblock.js.map  4.46 kB │ gzip: 1.65 kB
44
+ ℹ dist/entities/contact.entity.js.map  4.32 kB │ gzip: 1.37 kB
45
+ ℹ dist/crm-pipeline.feature.js.map  4.27 kB │ gzip: 1.20 kB
46
+ ℹ dist/entities/company.entity.js.map  3.58 kB │ gzip: 1.17 kB
47
+ ℹ dist/presentations/dashboard.presentation.js.map  2.50 kB │ gzip: 0.87 kB
48
+ ℹ dist/events/contact.event.js.map  1.65 kB │ gzip: 0.69 kB
49
+ ℹ dist/events/task.event.js.map  1.61 kB │ gzip: 0.64 kB
50
+ ℹ dist/entities/index.js.map  1.38 kB │ gzip: 0.49 kB
51
+ ℹ dist/handlers/deal.handlers.d.ts.map  1.35 kB │ gzip: 0.52 kB
52
+ ℹ dist/example.js.map  1.30 kB │ gzip: 0.66 kB
53
+ ℹ dist/deal/deal.schema.d.ts.map  1.29 kB │ gzip: 0.45 kB
54
+ ℹ dist/deal/deal.operation.d.ts.map  1.27 kB │ gzip: 0.38 kB
55
+ ℹ dist/index.js.map  1.27 kB │ gzip: 0.54 kB
56
+ ℹ dist/events/deal.event.d.ts.map  0.68 kB │ gzip: 0.28 kB
57
+ ℹ dist/deal/deal.enum.js.map  0.60 kB │ gzip: 0.32 kB
58
+ ℹ dist/entities/deal.entity.d.ts.map  0.44 kB │ gzip: 0.26 kB
59
+ ℹ dist/entities/task.entity.d.ts.map  0.43 kB │ gzip: 0.26 kB
60
+ ℹ dist/handlers/mock-data.d.ts.map  0.42 kB │ gzip: 0.26 kB
61
+ ℹ dist/entities/contact.entity.d.ts.map  0.27 kB │ gzip: 0.19 kB
62
+ ℹ dist/entities/company.entity.d.ts.map  0.26 kB │ gzip: 0.19 kB
63
+ ℹ dist/deal/deal.enum.d.ts.map  0.25 kB │ gzip: 0.17 kB
64
+ ℹ dist/events/contact.event.d.ts.map  0.24 kB │ gzip: 0.18 kB
65
+ ℹ dist/presentations/pipeline.presentation.d.ts.map  0.24 kB │ gzip: 0.17 kB
66
+ ℹ dist/events/task.event.d.ts.map  0.24 kB │ gzip: 0.18 kB
67
+ ℹ dist/presentations/dashboard.presentation.d.ts.map  0.20 kB │ gzip: 0.15 kB
68
+ ℹ dist/index.d.ts.map  0.16 kB │ gzip: 0.13 kB
69
+ ℹ dist/crm-pipeline.feature.d.ts.map  0.16 kB │ gzip: 0.13 kB
70
+ ℹ dist/entities/index.d.ts.map  0.15 kB │ gzip: 0.13 kB
71
+ ℹ dist/example.d.ts.map  0.14 kB │ gzip: 0.13 kB
72
+ ℹ dist/deal/deal.operation.d.ts 14.01 kB │ gzip: 0.98 kB
73
+ ℹ dist/deal/deal.schema.d.ts  8.27 kB │ gzip: 0.84 kB
74
+ ℹ dist/index.d.ts  3.56 kB │ gzip: 0.91 kB
75
+ ℹ dist/entities/deal.entity.d.ts  3.54 kB │ gzip: 0.55 kB
76
+ ℹ dist/events/deal.event.d.ts  3.31 kB │ gzip: 0.43 kB
77
+ ℹ dist/entities/task.entity.d.ts  2.99 kB │ gzip: 0.51 kB
78
+ ℹ dist/handlers/deal.handlers.d.ts  2.40 kB │ gzip: 0.69 kB
79
+ ℹ dist/entities/contact.entity.d.ts  2.16 kB │ gzip: 0.45 kB
80
+ ℹ dist/entities/company.entity.d.ts  1.91 kB │ gzip: 0.42 kB
81
+ ℹ dist/example.d.ts  1.14 kB │ gzip: 0.46 kB
82
+ ℹ dist/handlers/mock-data.d.ts  1.04 kB │ gzip: 0.43 kB
83
+ ℹ dist/events/contact.event.d.ts  0.94 kB │ gzip: 0.31 kB
84
+ ℹ dist/events/task.event.d.ts  0.93 kB │ gzip: 0.30 kB
85
+ ℹ dist/entities/index.d.ts  0.85 kB │ gzip: 0.32 kB
86
+ ℹ dist/handlers/index.d.ts  0.80 kB │ gzip: 0.25 kB
87
+ ℹ dist/operations/index.d.ts  0.79 kB │ gzip: 0.24 kB
88
+ ℹ dist/deal/index.d.ts  0.78 kB │ gzip: 0.23 kB
89
+ ℹ dist/presentations/pipeline.presentation.d.ts  0.70 kB │ gzip: 0.28 kB
90
+ ℹ dist/deal/deal.enum.d.ts  0.48 kB │ gzip: 0.23 kB
91
+ ℹ dist/presentations/dashboard.presentation.d.ts  0.46 kB │ gzip: 0.22 kB
92
+ ℹ dist/presentations/index.d.ts  0.40 kB │ gzip: 0.15 kB
93
+ ℹ dist/crm-pipeline.feature.d.ts  0.40 kB │ gzip: 0.24 kB
94
+ ℹ dist/events/index.d.ts  0.32 kB │ gzip: 0.14 kB
95
+ ℹ dist/docs/crm-pipeline.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
96
+ ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
97
+ ℹ 87 files, total: 200.69 kB
98
+ ✔ Build complete in 24010ms
package/CHANGELOG.md ADDED
@@ -0,0 +1,246 @@
1
+ # @contractspec/example.crm-pipeline
2
+
3
+ ## 1.44.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5f3a868: chore: isolate branding to contractspec.io
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [5f3a868]
12
+ - @contractspec/module.notifications@1.44.0
13
+ - @contractspec/module.audit-trail@1.44.0
14
+ - @contractspec/lib.identity-rbac@1.44.0
15
+ - @contractspec/lib.contracts@1.44.0
16
+ - @contractspec/lib.schema@1.44.0
17
+ - @contractspec/lib.jobs@1.44.0
18
+ - @contractspec/lib.bus@1.44.0
19
+
20
+ ## 1.43.4
21
+
22
+ ### Patch Changes
23
+
24
+ - 9216062: fix: cross-platform compatibility
25
+ - Updated dependencies [9216062]
26
+ - @contractspec/module.notifications@1.43.4
27
+ - @contractspec/module.audit-trail@1.43.4
28
+ - @contractspec/lib.identity-rbac@1.43.4
29
+ - @contractspec/lib.contracts@1.43.4
30
+ - @contractspec/lib.schema@1.43.3
31
+ - @contractspec/lib.jobs@1.43.4
32
+ - @contractspec/lib.bus@1.43.4
33
+
34
+ ## 1.43.3
35
+
36
+ ### Patch Changes
37
+
38
+ - 24d9759: improve documentation
39
+ - Updated dependencies [24d9759]
40
+ - @contractspec/module.notifications@1.43.3
41
+ - @contractspec/module.audit-trail@1.43.3
42
+ - @contractspec/lib.identity-rbac@1.43.3
43
+ - @contractspec/lib.contracts@1.43.3
44
+ - @contractspec/lib.schema@1.43.2
45
+ - @contractspec/lib.jobs@1.43.3
46
+ - @contractspec/lib.bus@1.43.3
47
+
48
+ ## 1.43.2
49
+
50
+ ### Patch Changes
51
+
52
+ - e147271: fix: improve stability
53
+ - Updated dependencies [e147271]
54
+ - @contractspec/module.notifications@1.43.2
55
+ - @contractspec/module.audit-trail@1.43.2
56
+ - @contractspec/lib.identity-rbac@1.43.2
57
+ - @contractspec/lib.contracts@1.43.2
58
+ - @contractspec/lib.jobs@1.43.2
59
+ - @contractspec/lib.bus@1.43.2
60
+ - @contractspec/lib.schema@1.43.1
61
+
62
+ ## 1.43.1
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [f28fdad]
67
+ - @contractspec/lib.contracts@1.43.1
68
+ - @contractspec/lib.bus@1.43.1
69
+ - @contractspec/lib.identity-rbac@1.43.1
70
+ - @contractspec/lib.jobs@1.43.1
71
+ - @contractspec/module.audit-trail@1.43.1
72
+ - @contractspec/module.notifications@1.43.1
73
+
74
+ ## 1.43.0
75
+
76
+ ### Minor Changes
77
+
78
+ - 042d072: feat: schema declaration using json schema, including zod
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [042d072]
83
+ - @contractspec/module.notifications@1.43.0
84
+ - @contractspec/module.audit-trail@1.43.0
85
+ - @contractspec/lib.identity-rbac@1.43.0
86
+ - @contractspec/lib.contracts@1.43.0
87
+ - @contractspec/lib.schema@1.43.0
88
+ - @contractspec/lib.jobs@1.43.0
89
+ - @contractspec/lib.bus@1.43.0
90
+
91
+ ## 1.42.10
92
+
93
+ ### Patch Changes
94
+
95
+ - 1e6a0f1: fix: mcp server
96
+ - Updated dependencies [1e6a0f1]
97
+ - @contractspec/module.notifications@1.42.10
98
+ - @contractspec/module.audit-trail@1.42.10
99
+ - @contractspec/lib.identity-rbac@1.42.10
100
+ - @contractspec/lib.contracts@1.42.10
101
+ - @contractspec/lib.schema@1.42.10
102
+ - @contractspec/lib.jobs@1.42.10
103
+ - @contractspec/lib.bus@1.42.10
104
+
105
+ ## 1.42.9
106
+
107
+ ### Patch Changes
108
+
109
+ - 9281db7: fix ModelRegistry
110
+ - Updated dependencies [9281db7]
111
+ - @contractspec/module.notifications@1.42.9
112
+ - @contractspec/module.audit-trail@1.42.9
113
+ - @contractspec/lib.identity-rbac@1.42.9
114
+ - @contractspec/lib.contracts@1.42.9
115
+ - @contractspec/lib.schema@1.42.9
116
+ - @contractspec/lib.jobs@1.42.9
117
+ - @contractspec/lib.bus@1.42.9
118
+
119
+ ## 1.42.8
120
+
121
+ ### Patch Changes
122
+
123
+ - e07b5ac: fix
124
+ - Updated dependencies [e07b5ac]
125
+ - @contractspec/module.notifications@1.42.8
126
+ - @contractspec/module.audit-trail@1.42.8
127
+ - @contractspec/lib.identity-rbac@1.42.8
128
+ - @contractspec/lib.contracts@1.42.8
129
+ - @contractspec/lib.schema@1.42.8
130
+ - @contractspec/lib.jobs@1.42.8
131
+ - @contractspec/lib.bus@1.42.8
132
+
133
+ ## 1.42.7
134
+
135
+ ### Patch Changes
136
+
137
+ - e9b575d: fix release
138
+ - Updated dependencies [e9b575d]
139
+ - @contractspec/module.notifications@1.42.7
140
+ - @contractspec/module.audit-trail@1.42.7
141
+ - @contractspec/lib.identity-rbac@1.42.7
142
+ - @contractspec/lib.contracts@1.42.7
143
+ - @contractspec/lib.schema@1.42.7
144
+ - @contractspec/lib.jobs@1.42.7
145
+ - @contractspec/lib.bus@1.42.7
146
+
147
+ ## 1.42.6
148
+
149
+ ### Patch Changes
150
+
151
+ - 1500242: fix tooling
152
+ - Updated dependencies [1500242]
153
+ - @contractspec/module.notifications@1.42.6
154
+ - @contractspec/module.audit-trail@1.42.6
155
+ - @contractspec/lib.identity-rbac@1.42.6
156
+ - @contractspec/lib.contracts@1.42.6
157
+ - @contractspec/lib.schema@1.42.6
158
+ - @contractspec/lib.jobs@1.42.6
159
+ - @contractspec/lib.bus@1.42.6
160
+
161
+ ## 1.42.5
162
+
163
+ ### Patch Changes
164
+
165
+ - 1299719: fix vscode
166
+ - Updated dependencies [1299719]
167
+ - @contractspec/module.notifications@1.42.5
168
+ - @contractspec/module.audit-trail@1.42.5
169
+ - @contractspec/lib.identity-rbac@1.42.5
170
+ - @contractspec/lib.contracts@1.42.5
171
+ - @contractspec/lib.schema@1.42.5
172
+ - @contractspec/lib.jobs@1.42.5
173
+ - @contractspec/lib.bus@1.42.5
174
+
175
+ ## 1.42.4
176
+
177
+ ### Patch Changes
178
+
179
+ - ac28b99: fix: generate from openapi
180
+ - Updated dependencies [ac28b99]
181
+ - @contractspec/module.notifications@1.42.4
182
+ - @contractspec/module.audit-trail@1.42.4
183
+ - @contractspec/lib.identity-rbac@1.42.4
184
+ - @contractspec/lib.contracts@1.42.4
185
+ - @contractspec/lib.schema@1.42.4
186
+ - @contractspec/lib.jobs@1.42.4
187
+ - @contractspec/lib.bus@1.42.4
188
+
189
+ ## 1.42.3
190
+
191
+ ### Patch Changes
192
+
193
+ - 3f5d015: fix(tooling): cicd
194
+ - Updated dependencies [3f5d015]
195
+ - @contractspec/lib.bus@1.42.3
196
+ - @contractspec/lib.contracts@1.42.3
197
+ - @contractspec/lib.identity-rbac@1.42.3
198
+ - @contractspec/lib.jobs@1.42.3
199
+ - @contractspec/lib.schema@1.42.3
200
+ - @contractspec/module.audit-trail@1.42.3
201
+ - @contractspec/module.notifications@1.42.3
202
+
203
+ ## 1.42.2
204
+
205
+ ### Patch Changes
206
+
207
+ - 1f9ac4c: fix
208
+ - Updated dependencies [1f9ac4c]
209
+ - @contractspec/lib.bus@1.42.2
210
+ - @contractspec/lib.contracts@1.42.2
211
+ - @contractspec/lib.identity-rbac@1.42.2
212
+ - @contractspec/lib.jobs@1.42.2
213
+ - @contractspec/lib.schema@1.42.2
214
+ - @contractspec/module.audit-trail@1.42.2
215
+ - @contractspec/module.notifications@1.42.2
216
+
217
+ ## 1.42.1
218
+
219
+ ### Patch Changes
220
+
221
+ - f043995: Fix release
222
+ - Updated dependencies [f043995]
223
+ - @contractspec/module.notifications@1.42.1
224
+ - @contractspec/module.audit-trail@1.42.1
225
+ - @contractspec/lib.identity-rbac@1.42.1
226
+ - @contractspec/lib.contracts@1.42.1
227
+ - @contractspec/lib.schema@1.42.1
228
+ - @contractspec/lib.jobs@1.42.1
229
+ - @contractspec/lib.bus@1.42.1
230
+
231
+ ## 1.42.0
232
+
233
+ ### Minor Changes
234
+
235
+ - 8eefd9c: initial release
236
+
237
+ ### Patch Changes
238
+
239
+ - Updated dependencies [8eefd9c]
240
+ - @contractspec/lib.bus@1.42.0
241
+ - @contractspec/lib.contracts@1.42.0
242
+ - @contractspec/lib.identity-rbac@1.42.0
243
+ - @contractspec/lib.jobs@1.42.0
244
+ - @contractspec/lib.schema@1.42.0
245
+ - @contractspec/module.audit-trail@1.42.0
246
+ - @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 { FeatureModuleSpec } 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: 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":";;;;;;;;cAWa,oBAAoB"}