@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,513 @@
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
+
4
+ //#region src/deal/deal.operation.d.ts
5
+ /**
6
+ * Create a new deal.
7
+ */
8
+ declare const CreateDealContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
9
+ name: {
10
+ type: _contractspec_lib_schema0.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ value: {
14
+ type: _contractspec_lib_schema0.FieldType<number, number>;
15
+ isOptional: false;
16
+ };
17
+ currency: {
18
+ type: _contractspec_lib_schema0.FieldType<string, string>;
19
+ isOptional: true;
20
+ };
21
+ pipelineId: {
22
+ type: _contractspec_lib_schema0.FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ stageId: {
26
+ type: _contractspec_lib_schema0.FieldType<string, string>;
27
+ isOptional: false;
28
+ };
29
+ contactId: {
30
+ type: _contractspec_lib_schema0.FieldType<string, string>;
31
+ isOptional: true;
32
+ };
33
+ companyId: {
34
+ type: _contractspec_lib_schema0.FieldType<string, string>;
35
+ isOptional: true;
36
+ };
37
+ expectedCloseDate: {
38
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
39
+ isOptional: true;
40
+ };
41
+ }>, _contractspec_lib_schema0.SchemaModel<{
42
+ id: {
43
+ type: _contractspec_lib_schema0.FieldType<string, string>;
44
+ isOptional: false;
45
+ };
46
+ name: {
47
+ type: _contractspec_lib_schema0.FieldType<string, string>;
48
+ isOptional: false;
49
+ };
50
+ value: {
51
+ type: _contractspec_lib_schema0.FieldType<number, number>;
52
+ isOptional: false;
53
+ };
54
+ currency: {
55
+ type: _contractspec_lib_schema0.FieldType<string, string>;
56
+ isOptional: false;
57
+ };
58
+ pipelineId: {
59
+ type: _contractspec_lib_schema0.FieldType<string, string>;
60
+ isOptional: false;
61
+ };
62
+ stageId: {
63
+ type: _contractspec_lib_schema0.FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ status: {
67
+ type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
68
+ isOptional: false;
69
+ };
70
+ contactId: {
71
+ type: _contractspec_lib_schema0.FieldType<string, string>;
72
+ isOptional: true;
73
+ };
74
+ companyId: {
75
+ type: _contractspec_lib_schema0.FieldType<string, string>;
76
+ isOptional: true;
77
+ };
78
+ ownerId: {
79
+ type: _contractspec_lib_schema0.FieldType<string, string>;
80
+ isOptional: false;
81
+ };
82
+ expectedCloseDate: {
83
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
84
+ isOptional: true;
85
+ };
86
+ createdAt: {
87
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
88
+ isOptional: false;
89
+ };
90
+ updatedAt: {
91
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
92
+ isOptional: false;
93
+ };
94
+ }>, {
95
+ key: string;
96
+ version: string;
97
+ when: string;
98
+ payload: _contractspec_lib_schema0.SchemaModel<{
99
+ id: {
100
+ type: _contractspec_lib_schema0.FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ name: {
104
+ type: _contractspec_lib_schema0.FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ value: {
108
+ type: _contractspec_lib_schema0.FieldType<number, number>;
109
+ isOptional: false;
110
+ };
111
+ currency: {
112
+ type: _contractspec_lib_schema0.FieldType<string, string>;
113
+ isOptional: false;
114
+ };
115
+ pipelineId: {
116
+ type: _contractspec_lib_schema0.FieldType<string, string>;
117
+ isOptional: false;
118
+ };
119
+ stageId: {
120
+ type: _contractspec_lib_schema0.FieldType<string, string>;
121
+ isOptional: false;
122
+ };
123
+ status: {
124
+ type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
125
+ isOptional: false;
126
+ };
127
+ contactId: {
128
+ type: _contractspec_lib_schema0.FieldType<string, string>;
129
+ isOptional: true;
130
+ };
131
+ companyId: {
132
+ type: _contractspec_lib_schema0.FieldType<string, string>;
133
+ isOptional: true;
134
+ };
135
+ ownerId: {
136
+ type: _contractspec_lib_schema0.FieldType<string, string>;
137
+ isOptional: false;
138
+ };
139
+ expectedCloseDate: {
140
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
141
+ isOptional: true;
142
+ };
143
+ createdAt: {
144
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
145
+ isOptional: false;
146
+ };
147
+ updatedAt: {
148
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
149
+ isOptional: false;
150
+ };
151
+ }>;
152
+ }[]>;
153
+ /**
154
+ * Move deal to a different stage.
155
+ */
156
+ declare const MoveDealContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
157
+ dealId: {
158
+ type: _contractspec_lib_schema0.FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ stageId: {
162
+ type: _contractspec_lib_schema0.FieldType<string, string>;
163
+ isOptional: false;
164
+ };
165
+ position: {
166
+ type: _contractspec_lib_schema0.FieldType<number, number>;
167
+ isOptional: true;
168
+ };
169
+ }>, _contractspec_lib_schema0.SchemaModel<{
170
+ id: {
171
+ type: _contractspec_lib_schema0.FieldType<string, string>;
172
+ isOptional: false;
173
+ };
174
+ name: {
175
+ type: _contractspec_lib_schema0.FieldType<string, string>;
176
+ isOptional: false;
177
+ };
178
+ value: {
179
+ type: _contractspec_lib_schema0.FieldType<number, number>;
180
+ isOptional: false;
181
+ };
182
+ currency: {
183
+ type: _contractspec_lib_schema0.FieldType<string, string>;
184
+ isOptional: false;
185
+ };
186
+ pipelineId: {
187
+ type: _contractspec_lib_schema0.FieldType<string, string>;
188
+ isOptional: false;
189
+ };
190
+ stageId: {
191
+ type: _contractspec_lib_schema0.FieldType<string, string>;
192
+ isOptional: false;
193
+ };
194
+ status: {
195
+ type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
196
+ isOptional: false;
197
+ };
198
+ contactId: {
199
+ type: _contractspec_lib_schema0.FieldType<string, string>;
200
+ isOptional: true;
201
+ };
202
+ companyId: {
203
+ type: _contractspec_lib_schema0.FieldType<string, string>;
204
+ isOptional: true;
205
+ };
206
+ ownerId: {
207
+ type: _contractspec_lib_schema0.FieldType<string, string>;
208
+ isOptional: false;
209
+ };
210
+ expectedCloseDate: {
211
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
212
+ isOptional: true;
213
+ };
214
+ createdAt: {
215
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
216
+ isOptional: false;
217
+ };
218
+ updatedAt: {
219
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
220
+ isOptional: false;
221
+ };
222
+ }>, {
223
+ key: string;
224
+ version: string;
225
+ when: string;
226
+ payload: _contractspec_lib_schema0.SchemaModel<{
227
+ dealId: {
228
+ type: _contractspec_lib_schema0.FieldType<string, string>;
229
+ isOptional: false;
230
+ };
231
+ fromStage: {
232
+ type: _contractspec_lib_schema0.FieldType<string, string>;
233
+ isOptional: false;
234
+ };
235
+ toStage: {
236
+ type: _contractspec_lib_schema0.FieldType<string, string>;
237
+ isOptional: false;
238
+ };
239
+ }>;
240
+ }[]>;
241
+ /**
242
+ * Mark deal as won.
243
+ */
244
+ declare const WinDealContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
245
+ dealId: {
246
+ type: _contractspec_lib_schema0.FieldType<string, string>;
247
+ isOptional: false;
248
+ };
249
+ wonSource: {
250
+ type: _contractspec_lib_schema0.FieldType<string, string>;
251
+ isOptional: true;
252
+ };
253
+ notes: {
254
+ type: _contractspec_lib_schema0.FieldType<string, string>;
255
+ isOptional: true;
256
+ };
257
+ }>, _contractspec_lib_schema0.SchemaModel<{
258
+ id: {
259
+ type: _contractspec_lib_schema0.FieldType<string, string>;
260
+ isOptional: false;
261
+ };
262
+ name: {
263
+ type: _contractspec_lib_schema0.FieldType<string, string>;
264
+ isOptional: false;
265
+ };
266
+ value: {
267
+ type: _contractspec_lib_schema0.FieldType<number, number>;
268
+ isOptional: false;
269
+ };
270
+ currency: {
271
+ type: _contractspec_lib_schema0.FieldType<string, string>;
272
+ isOptional: false;
273
+ };
274
+ pipelineId: {
275
+ type: _contractspec_lib_schema0.FieldType<string, string>;
276
+ isOptional: false;
277
+ };
278
+ stageId: {
279
+ type: _contractspec_lib_schema0.FieldType<string, string>;
280
+ isOptional: false;
281
+ };
282
+ status: {
283
+ type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
284
+ isOptional: false;
285
+ };
286
+ contactId: {
287
+ type: _contractspec_lib_schema0.FieldType<string, string>;
288
+ isOptional: true;
289
+ };
290
+ companyId: {
291
+ type: _contractspec_lib_schema0.FieldType<string, string>;
292
+ isOptional: true;
293
+ };
294
+ ownerId: {
295
+ type: _contractspec_lib_schema0.FieldType<string, string>;
296
+ isOptional: false;
297
+ };
298
+ expectedCloseDate: {
299
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
300
+ isOptional: true;
301
+ };
302
+ createdAt: {
303
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
304
+ isOptional: false;
305
+ };
306
+ updatedAt: {
307
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
308
+ isOptional: false;
309
+ };
310
+ }>, {
311
+ key: string;
312
+ version: string;
313
+ when: string;
314
+ payload: _contractspec_lib_schema0.SchemaModel<{
315
+ dealId: {
316
+ type: _contractspec_lib_schema0.FieldType<string, string>;
317
+ isOptional: false;
318
+ };
319
+ value: {
320
+ type: _contractspec_lib_schema0.FieldType<number, number>;
321
+ isOptional: false;
322
+ };
323
+ }>;
324
+ }[]>;
325
+ /**
326
+ * Mark deal as lost.
327
+ */
328
+ declare const LoseDealContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
329
+ dealId: {
330
+ type: _contractspec_lib_schema0.FieldType<string, string>;
331
+ isOptional: false;
332
+ };
333
+ lostReason: {
334
+ type: _contractspec_lib_schema0.FieldType<string, string>;
335
+ isOptional: false;
336
+ };
337
+ notes: {
338
+ type: _contractspec_lib_schema0.FieldType<string, string>;
339
+ isOptional: true;
340
+ };
341
+ }>, _contractspec_lib_schema0.SchemaModel<{
342
+ id: {
343
+ type: _contractspec_lib_schema0.FieldType<string, string>;
344
+ isOptional: false;
345
+ };
346
+ name: {
347
+ type: _contractspec_lib_schema0.FieldType<string, string>;
348
+ isOptional: false;
349
+ };
350
+ value: {
351
+ type: _contractspec_lib_schema0.FieldType<number, number>;
352
+ isOptional: false;
353
+ };
354
+ currency: {
355
+ type: _contractspec_lib_schema0.FieldType<string, string>;
356
+ isOptional: false;
357
+ };
358
+ pipelineId: {
359
+ type: _contractspec_lib_schema0.FieldType<string, string>;
360
+ isOptional: false;
361
+ };
362
+ stageId: {
363
+ type: _contractspec_lib_schema0.FieldType<string, string>;
364
+ isOptional: false;
365
+ };
366
+ status: {
367
+ type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
368
+ isOptional: false;
369
+ };
370
+ contactId: {
371
+ type: _contractspec_lib_schema0.FieldType<string, string>;
372
+ isOptional: true;
373
+ };
374
+ companyId: {
375
+ type: _contractspec_lib_schema0.FieldType<string, string>;
376
+ isOptional: true;
377
+ };
378
+ ownerId: {
379
+ type: _contractspec_lib_schema0.FieldType<string, string>;
380
+ isOptional: false;
381
+ };
382
+ expectedCloseDate: {
383
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
384
+ isOptional: true;
385
+ };
386
+ createdAt: {
387
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
388
+ isOptional: false;
389
+ };
390
+ updatedAt: {
391
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
392
+ isOptional: false;
393
+ };
394
+ }>, {
395
+ key: string;
396
+ version: string;
397
+ when: string;
398
+ payload: _contractspec_lib_schema0.SchemaModel<{
399
+ dealId: {
400
+ type: _contractspec_lib_schema0.FieldType<string, string>;
401
+ isOptional: false;
402
+ };
403
+ reason: {
404
+ type: _contractspec_lib_schema0.FieldType<string, string>;
405
+ isOptional: false;
406
+ };
407
+ }>;
408
+ }[]>;
409
+ /**
410
+ * List deals in pipeline.
411
+ */
412
+ declare const ListDealsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
413
+ pipelineId: {
414
+ type: _contractspec_lib_schema0.FieldType<string, string>;
415
+ isOptional: true;
416
+ };
417
+ stageId: {
418
+ type: _contractspec_lib_schema0.FieldType<string, string>;
419
+ isOptional: true;
420
+ };
421
+ status: {
422
+ type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
423
+ isOptional: true;
424
+ };
425
+ ownerId: {
426
+ type: _contractspec_lib_schema0.FieldType<string, string>;
427
+ isOptional: true;
428
+ };
429
+ search: {
430
+ type: _contractspec_lib_schema0.FieldType<string, string>;
431
+ isOptional: true;
432
+ };
433
+ limit: {
434
+ type: _contractspec_lib_schema0.FieldType<number, number>;
435
+ isOptional: true;
436
+ defaultValue: number;
437
+ };
438
+ offset: {
439
+ type: _contractspec_lib_schema0.FieldType<number, number>;
440
+ isOptional: true;
441
+ defaultValue: number;
442
+ };
443
+ }>, _contractspec_lib_schema0.SchemaModel<{
444
+ deals: {
445
+ type: _contractspec_lib_schema0.SchemaModel<{
446
+ id: {
447
+ type: _contractspec_lib_schema0.FieldType<string, string>;
448
+ isOptional: false;
449
+ };
450
+ name: {
451
+ type: _contractspec_lib_schema0.FieldType<string, string>;
452
+ isOptional: false;
453
+ };
454
+ value: {
455
+ type: _contractspec_lib_schema0.FieldType<number, number>;
456
+ isOptional: false;
457
+ };
458
+ currency: {
459
+ type: _contractspec_lib_schema0.FieldType<string, string>;
460
+ isOptional: false;
461
+ };
462
+ pipelineId: {
463
+ type: _contractspec_lib_schema0.FieldType<string, string>;
464
+ isOptional: false;
465
+ };
466
+ stageId: {
467
+ type: _contractspec_lib_schema0.FieldType<string, string>;
468
+ isOptional: false;
469
+ };
470
+ status: {
471
+ type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
472
+ isOptional: false;
473
+ };
474
+ contactId: {
475
+ type: _contractspec_lib_schema0.FieldType<string, string>;
476
+ isOptional: true;
477
+ };
478
+ companyId: {
479
+ type: _contractspec_lib_schema0.FieldType<string, string>;
480
+ isOptional: true;
481
+ };
482
+ ownerId: {
483
+ type: _contractspec_lib_schema0.FieldType<string, string>;
484
+ isOptional: false;
485
+ };
486
+ expectedCloseDate: {
487
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
488
+ isOptional: true;
489
+ };
490
+ createdAt: {
491
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
492
+ isOptional: false;
493
+ };
494
+ updatedAt: {
495
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
496
+ isOptional: false;
497
+ };
498
+ }>;
499
+ isArray: true;
500
+ isOptional: false;
501
+ };
502
+ total: {
503
+ type: _contractspec_lib_schema0.FieldType<number, number>;
504
+ isOptional: false;
505
+ };
506
+ totalValue: {
507
+ type: _contractspec_lib_schema0.FieldType<number, number>;
508
+ isOptional: false;
509
+ };
510
+ }>, undefined>;
511
+ //#endregion
512
+ export { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract };
513
+ //# sourceMappingURL=deal.operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deal.operation.d.ts","names":[],"sources":["../../src/deal/deal.operation.ts"],"sourcesContent":[],"mappings":";;;;;;;cAsBa,iDAAkB,wCAAA;EAAlB,IAAA,EAAA;IAuDX,IAAA,EAAA,yBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;EAvD6B,CAAA;;;;;;;;;;;;;;;;;;;;;;;UAAA,yBAAA,CAAA;;;;;;;;;;;;IAAA,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IA4DlB,UAAA,EAAA,KAkDX;EAAA,CAAA;;;;EAlD2B,CAAA;;;;;;;;;;;;;;;;;;;;;;IAAA,IAAA,qCAAA,KAAA,EAAA,MAAA,CAAA;IAuDhB,UAAA,EAAA,IAsDX;EAAA,CAAA;;;;EAtD0B,CAAA;;;;;;;;;;;;;;;;;;;;;IAAA,CAAA;IA2Df,QAAA,EAAA;MAsDX,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;MAtD2B,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;+CAAA,CAAA,MAAA,EAAA,MAAA,CAAA;MAAA,UAAA,EAAA,KAAA;IA2DhB,CAAA;IAmCX,iBAAA,EAAA;;;;;;;;IAnC4B,SAAA,EAAA;;;;;;;;;cA7KjB,+CAAgB,wCAAA;;UAkD3B,yBAAA,CAAA;;;;;;;;;;EA2H4B,CAAA;;;UA7KD,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuDhB,8CAAe,wCAAA;;UAsD1B,yBAAA,CAAA;;;;;;;;;;;;;UAtD0B,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2Df,+CAAgB,wCAAA;;UAsD3B,yBAAA,CAAA;;;;;;;;;;;;;UAtD2B,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2DhB,gDAAiB,wCAAA;;UAmC5B,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAnC4B,yBAAA,CAAA"}