@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
@@ -0,0 +1,166 @@
1
+ import { defineFeature } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/crm-pipeline.feature.ts
4
+ /**
5
+ * CRM Pipeline Feature Module Specification
6
+ *
7
+ * Defines the feature module for CRM and sales pipeline capabilities.
8
+ */
9
+ /**
10
+ * CRM Pipeline feature module that bundles deal management,
11
+ * pipeline operations, and contact management into an installable feature.
12
+ */
13
+ const CrmPipelineFeature = defineFeature({
14
+ meta: {
15
+ key: "crm-pipeline",
16
+ title: "CRM Pipeline",
17
+ description: "CRM and sales pipeline management with deals, contacts, and companies",
18
+ domain: "crm",
19
+ owners: ["@crm-team"],
20
+ tags: [
21
+ "crm",
22
+ "sales",
23
+ "pipeline",
24
+ "deals"
25
+ ],
26
+ stability: "experimental",
27
+ version: "1.0.0"
28
+ },
29
+ operations: [
30
+ {
31
+ key: "crm.deal.create",
32
+ version: "1.0.0"
33
+ },
34
+ {
35
+ key: "crm.deal.move",
36
+ version: "1.0.0"
37
+ },
38
+ {
39
+ key: "crm.deal.win",
40
+ version: "1.0.0"
41
+ },
42
+ {
43
+ key: "crm.deal.lose",
44
+ version: "1.0.0"
45
+ },
46
+ {
47
+ key: "crm.deal.list",
48
+ version: "1.0.0"
49
+ }
50
+ ],
51
+ events: [
52
+ {
53
+ key: "deal.created",
54
+ version: "1.0.0"
55
+ },
56
+ {
57
+ key: "deal.moved",
58
+ version: "1.0.0"
59
+ },
60
+ {
61
+ key: "deal.won",
62
+ version: "1.0.0"
63
+ },
64
+ {
65
+ key: "deal.lost",
66
+ version: "1.0.0"
67
+ },
68
+ {
69
+ key: "contact.created",
70
+ version: "1.0.0"
71
+ },
72
+ {
73
+ key: "task.completed",
74
+ version: "1.0.0"
75
+ }
76
+ ],
77
+ presentations: [
78
+ {
79
+ key: "crm.dashboard",
80
+ version: "1.0.0"
81
+ },
82
+ {
83
+ key: "crm.pipeline.kanban",
84
+ version: "1.0.0"
85
+ },
86
+ {
87
+ key: "crm.deal.list",
88
+ version: "1.0.0"
89
+ },
90
+ {
91
+ key: "crm.deal.detail",
92
+ version: "1.0.0"
93
+ },
94
+ {
95
+ key: "crm.deal.card",
96
+ version: "1.0.0"
97
+ },
98
+ {
99
+ key: "crm.pipeline.metrics",
100
+ version: "1.0.0"
101
+ }
102
+ ],
103
+ opToPresentation: [{
104
+ op: {
105
+ key: "crm.deal.list",
106
+ version: "1.0.0"
107
+ },
108
+ pres: {
109
+ key: "crm.pipeline.kanban",
110
+ version: "1.0.0"
111
+ }
112
+ }, {
113
+ op: {
114
+ key: "crm.deal.move",
115
+ version: "1.0.0"
116
+ },
117
+ pres: {
118
+ key: "crm.pipeline.kanban",
119
+ version: "1.0.0"
120
+ }
121
+ }],
122
+ presentationsTargets: [
123
+ {
124
+ key: "crm.dashboard",
125
+ version: "1.0.0",
126
+ targets: ["react", "markdown"]
127
+ },
128
+ {
129
+ key: "crm.pipeline.kanban",
130
+ version: "1.0.0",
131
+ targets: ["react", "markdown"]
132
+ },
133
+ {
134
+ key: "crm.deal.list",
135
+ version: "1.0.0",
136
+ targets: [
137
+ "react",
138
+ "markdown",
139
+ "application/json"
140
+ ]
141
+ },
142
+ {
143
+ key: "crm.pipeline.metrics",
144
+ version: "1.0.0",
145
+ targets: ["react", "markdown"]
146
+ }
147
+ ],
148
+ capabilities: { requires: [
149
+ {
150
+ key: "identity",
151
+ version: "1.0.0"
152
+ },
153
+ {
154
+ key: "audit-trail",
155
+ version: "1.0.0"
156
+ },
157
+ {
158
+ key: "notifications",
159
+ version: "1.0.0"
160
+ }
161
+ ] }
162
+ });
163
+
164
+ //#endregion
165
+ export { CrmPipelineFeature };
166
+ //# sourceMappingURL=crm-pipeline.feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm-pipeline.feature.js","names":[],"sources":["../src/crm-pipeline.feature.ts"],"sourcesContent":["/**\n * CRM Pipeline Feature Module Specification\n *\n * Defines the feature module for CRM and sales pipeline capabilities.\n */\nimport { defineFeature } from '@contractspec/lib.contracts';\n\n/**\n * CRM Pipeline feature module that bundles deal management,\n * pipeline operations, and contact management into an installable feature.\n */\nexport const CrmPipelineFeature = defineFeature({\n meta: {\n key: 'crm-pipeline',\n title: 'CRM Pipeline',\n description:\n 'CRM and sales pipeline management with deals, contacts, and companies',\n domain: 'crm',\n owners: ['@crm-team'],\n tags: ['crm', 'sales', 'pipeline', 'deals'],\n stability: 'experimental',\n version: '1.0.0',\n },\n\n // All contract operations included in this feature\n operations: [\n // Deal operations\n { key: 'crm.deal.create', version: '1.0.0' },\n { key: 'crm.deal.move', version: '1.0.0' },\n { key: 'crm.deal.win', version: '1.0.0' },\n { key: 'crm.deal.lose', version: '1.0.0' },\n { key: 'crm.deal.list', version: '1.0.0' },\n ],\n\n // Events emitted by this feature\n events: [\n // Deal events\n { key: 'deal.created', version: '1.0.0' },\n { key: 'deal.moved', version: '1.0.0' },\n { key: 'deal.won', version: '1.0.0' },\n { key: 'deal.lost', version: '1.0.0' },\n\n // Contact events\n { key: 'contact.created', version: '1.0.0' },\n\n // Task events\n { key: 'task.completed', version: '1.0.0' },\n ],\n\n // Presentations associated with this feature\n presentations: [\n { key: 'crm.dashboard', version: '1.0.0' },\n { key: 'crm.pipeline.kanban', version: '1.0.0' },\n { key: 'crm.deal.list', version: '1.0.0' },\n { key: 'crm.deal.detail', version: '1.0.0' },\n { key: 'crm.deal.card', version: '1.0.0' },\n { key: 'crm.pipeline.metrics', version: '1.0.0' },\n ],\n\n // Link operations to their primary presentations\n opToPresentation: [\n {\n op: { key: 'crm.deal.list', version: '1.0.0' },\n pres: { key: 'crm.pipeline.kanban', version: '1.0.0' },\n },\n {\n op: { key: 'crm.deal.move', version: '1.0.0' },\n pres: { key: 'crm.pipeline.kanban', version: '1.0.0' },\n },\n ],\n\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n { key: 'crm.dashboard', version: '1.0.0', targets: ['react', 'markdown'] },\n {\n key: 'crm.pipeline.kanban',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'crm.deal.list',\n version: '1.0.0',\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'crm.pipeline.metrics',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n ],\n\n // Capability requirements\n capabilities: {\n requires: [\n { key: 'identity', version: '1.0.0' },\n { key: 'audit-trail', version: '1.0.0' },\n { key: 'notifications', version: '1.0.0' },\n ],\n },\n});\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,KAAK;EACL,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAO;GAAS;GAAY;GAAQ;EAC3C,WAAW;EACX,SAAS;EACV;CAGD,YAAY;EAEV;GAAE,KAAK;GAAmB,SAAS;GAAS;EAC5C;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC1C;GAAE,KAAK;GAAgB,SAAS;GAAS;EACzC;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC1C;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC3C;CAGD,QAAQ;EAEN;GAAE,KAAK;GAAgB,SAAS;GAAS;EACzC;GAAE,KAAK;GAAc,SAAS;GAAS;EACvC;GAAE,KAAK;GAAY,SAAS;GAAS;EACrC;GAAE,KAAK;GAAa,SAAS;GAAS;EAGtC;GAAE,KAAK;GAAmB,SAAS;GAAS;EAG5C;GAAE,KAAK;GAAkB,SAAS;GAAS;EAC5C;CAGD,eAAe;EACb;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC1C;GAAE,KAAK;GAAuB,SAAS;GAAS;EAChD;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC1C;GAAE,KAAK;GAAmB,SAAS;GAAS;EAC5C;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC1C;GAAE,KAAK;GAAwB,SAAS;GAAS;EAClD;CAGD,kBAAkB,CAChB;EACE,IAAI;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC9C,MAAM;GAAE,KAAK;GAAuB,SAAS;GAAS;EACvD,EACD;EACE,IAAI;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC9C,MAAM;GAAE,KAAK;GAAuB,SAAS;GAAS;EACvD,CACF;CAGD,sBAAsB;EACpB;GAAE,KAAK;GAAiB,SAAS;GAAS,SAAS,CAAC,SAAS,WAAW;GAAE;EAC1E;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACF;CAGD,cAAc,EACZ,UAAU;EACR;GAAE,KAAK;GAAY,SAAS;GAAS;EACrC;GAAE,KAAK;GAAe,SAAS;GAAS;EACxC;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC3C,EACF;CACF,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as _contractspec_lib_schema196 from "@contractspec/lib.schema";
2
+
3
+ //#region src/deal/deal.enum.d.ts
4
+ /**
5
+ * Deal status enum.
6
+ */
7
+ declare const DealStatusEnum: _contractspec_lib_schema196.EnumType<[string, string, string, string]>;
8
+ /**
9
+ * Deal status filter enum.
10
+ */
11
+ declare const DealStatusFilterEnum: _contractspec_lib_schema196.EnumType<[string, string, string, string]>;
12
+ //#endregion
13
+ export { DealStatusEnum, DealStatusFilterEnum };
14
+ //# sourceMappingURL=deal.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deal.enum.d.ts","names":[],"sources":["../../src/deal/deal.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,cAKX,EAAA,2BAAA,CALyB,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;AAU3B;;;cAAa,sBAKX,2BAAA,CAL+B"}
@@ -0,0 +1,25 @@
1
+ import { defineEnum } from "@contractspec/lib.schema";
2
+
3
+ //#region src/deal/deal.enum.ts
4
+ /**
5
+ * Deal status enum.
6
+ */
7
+ const DealStatusEnum = defineEnum("DealStatus", [
8
+ "OPEN",
9
+ "WON",
10
+ "LOST",
11
+ "STALE"
12
+ ]);
13
+ /**
14
+ * Deal status filter enum.
15
+ */
16
+ const DealStatusFilterEnum = defineEnum("DealStatusFilter", [
17
+ "OPEN",
18
+ "WON",
19
+ "LOST",
20
+ "all"
21
+ ]);
22
+
23
+ //#endregion
24
+ export { DealStatusEnum, DealStatusFilterEnum };
25
+ //# sourceMappingURL=deal.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deal.enum.js","names":[],"sources":["../../src/deal/deal.enum.ts"],"sourcesContent":["import { defineEnum } from '@contractspec/lib.schema';\n\n/**\n * Deal status enum.\n */\nexport const DealStatusEnum = defineEnum('DealStatus', [\n 'OPEN',\n 'WON',\n 'LOST',\n 'STALE',\n]);\n\n/**\n * Deal status filter enum.\n */\nexport const DealStatusFilterEnum = defineEnum('DealStatusFilter', [\n 'OPEN',\n 'WON',\n 'LOST',\n 'all',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,iBAAiB,WAAW,cAAc;CACrD;CACA;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,uBAAuB,WAAW,oBAAoB;CACjE;CACA;CACA;CACA;CACD,CAAC"}