@contractspec/example.crm-pipeline 1.57.0 → 1.59.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 (259) hide show
  1. package/.turbo/turbo-build.log +148 -164
  2. package/.turbo/turbo-prebuild.log +1 -0
  3. package/CHANGELOG.md +39 -0
  4. package/dist/browser/crm-pipeline.feature.js +75 -0
  5. package/dist/browser/deal/deal.enum.js +18 -0
  6. package/dist/browser/deal/deal.operation.js +396 -0
  7. package/dist/browser/deal/deal.schema.js +141 -0
  8. package/dist/browser/deal/deal.test-spec.js +58 -0
  9. package/dist/browser/deal/index.js +408 -0
  10. package/dist/browser/docs/crm-pipeline.docblock.js +113 -0
  11. package/dist/browser/docs/index.js +113 -0
  12. package/dist/browser/entities/company.entity.js +52 -0
  13. package/dist/browser/entities/contact.entity.js +66 -0
  14. package/dist/browser/entities/deal.entity.js +107 -0
  15. package/dist/browser/entities/index.js +343 -0
  16. package/dist/browser/entities/task.entity.js +99 -0
  17. package/dist/browser/events/contact.event.js +31 -0
  18. package/dist/browser/events/deal.event.js +101 -0
  19. package/dist/browser/events/index.js +158 -0
  20. package/dist/browser/events/task.event.js +28 -0
  21. package/dist/browser/example.js +39 -0
  22. package/dist/browser/handlers/crm.handlers.js +160 -0
  23. package/dist/browser/handlers/deal.handlers.js +293 -0
  24. package/dist/browser/handlers/index.js +456 -0
  25. package/dist/browser/handlers/mock-data.js +165 -0
  26. package/dist/browser/index.js +3279 -0
  27. package/dist/browser/operations/index.js +407 -0
  28. package/dist/browser/presentations/dashboard.presentation.js +52 -0
  29. package/dist/browser/presentations/index.js +284 -0
  30. package/dist/browser/presentations/pipeline.presentation.js +233 -0
  31. package/dist/browser/seeders/index.js +22 -0
  32. package/dist/browser/shared/overlay-types.js +0 -0
  33. package/dist/browser/ui/CrmDashboard.js +1325 -0
  34. package/dist/browser/ui/CrmDealCard.js +50 -0
  35. package/dist/browser/ui/CrmPipelineBoard.js +160 -0
  36. package/dist/browser/ui/hooks/index.js +186 -0
  37. package/dist/browser/ui/hooks/useDealList.js +84 -0
  38. package/dist/browser/ui/hooks/useDealMutations.js +100 -0
  39. package/dist/browser/ui/index.js +1972 -0
  40. package/dist/browser/ui/modals/CreateDealModal.js +211 -0
  41. package/dist/browser/ui/modals/DealActionsModal.js +428 -0
  42. package/dist/browser/ui/modals/index.js +638 -0
  43. package/dist/browser/ui/overlays/demo-overlays.js +55 -0
  44. package/dist/browser/ui/overlays/index.js +55 -0
  45. package/dist/browser/ui/renderers/index.js +827 -0
  46. package/dist/browser/ui/renderers/pipeline.markdown.js +564 -0
  47. package/dist/browser/ui/renderers/pipeline.renderer.js +264 -0
  48. package/dist/crm-pipeline.feature.d.ts +1 -6
  49. package/dist/crm-pipeline.feature.d.ts.map +1 -1
  50. package/dist/crm-pipeline.feature.js +74 -164
  51. package/dist/deal/deal.enum.d.ts +2 -7
  52. package/dist/deal/deal.enum.d.ts.map +1 -1
  53. package/dist/deal/deal.enum.js +16 -22
  54. package/dist/deal/deal.operation.d.ts +444 -450
  55. package/dist/deal/deal.operation.d.ts.map +1 -1
  56. package/dist/deal/deal.operation.js +390 -263
  57. package/dist/deal/deal.schema.d.ts +251 -256
  58. package/dist/deal/deal.schema.d.ts.map +1 -1
  59. package/dist/deal/deal.schema.js +131 -275
  60. package/dist/deal/deal.test-spec.d.ts +2 -7
  61. package/dist/deal/deal.test-spec.d.ts.map +1 -1
  62. package/dist/deal/deal.test-spec.js +56 -62
  63. package/dist/deal/index.d.ts +7 -4
  64. package/dist/deal/index.d.ts.map +1 -0
  65. package/dist/deal/index.js +408 -4
  66. package/dist/docs/crm-pipeline.docblock.d.ts +2 -1
  67. package/dist/docs/crm-pipeline.docblock.d.ts.map +1 -0
  68. package/dist/docs/crm-pipeline.docblock.js +45 -51
  69. package/dist/docs/index.d.ts +2 -1
  70. package/dist/docs/index.d.ts.map +1 -0
  71. package/dist/docs/index.js +114 -1
  72. package/dist/entities/company.entity.d.ts +27 -32
  73. package/dist/entities/company.entity.d.ts.map +1 -1
  74. package/dist/entities/company.entity.js +51 -61
  75. package/dist/entities/contact.entity.d.ts +31 -36
  76. package/dist/entities/contact.entity.d.ts.map +1 -1
  77. package/dist/entities/contact.entity.js +65 -76
  78. package/dist/entities/deal.entity.d.ts +52 -57
  79. package/dist/entities/deal.entity.d.ts.map +1 -1
  80. package/dist/entities/deal.entity.js +104 -116
  81. package/dist/entities/index.d.ts +6 -10
  82. package/dist/entities/index.d.ts.map +1 -1
  83. package/dist/entities/index.js +342 -31
  84. package/dist/entities/task.entity.d.ts +42 -47
  85. package/dist/entities/task.entity.d.ts.map +1 -1
  86. package/dist/entities/task.entity.js +95 -124
  87. package/dist/events/contact.event.d.ts +21 -27
  88. package/dist/events/contact.event.d.ts.map +1 -1
  89. package/dist/events/contact.event.js +29 -42
  90. package/dist/events/deal.event.d.ts +100 -106
  91. package/dist/events/deal.event.d.ts.map +1 -1
  92. package/dist/events/deal.event.js +93 -163
  93. package/dist/events/index.d.ts +4 -4
  94. package/dist/events/index.d.ts.map +1 -0
  95. package/dist/events/index.js +158 -4
  96. package/dist/events/task.event.d.ts +21 -27
  97. package/dist/events/task.event.d.ts.map +1 -1
  98. package/dist/events/task.event.js +26 -42
  99. package/dist/example.d.ts +2 -6
  100. package/dist/example.d.ts.map +1 -1
  101. package/dist/example.js +38 -50
  102. package/dist/handlers/crm.handlers.d.ts +80 -78
  103. package/dist/handlers/crm.handlers.d.ts.map +1 -1
  104. package/dist/handlers/crm.handlers.js +155 -166
  105. package/dist/handlers/deal.handlers.d.ts +58 -63
  106. package/dist/handlers/deal.handlers.d.ts.map +1 -1
  107. package/dist/handlers/deal.handlers.js +279 -105
  108. package/dist/handlers/index.d.ts +10 -4
  109. package/dist/handlers/index.d.ts.map +1 -0
  110. package/dist/handlers/index.js +456 -4
  111. package/dist/handlers/mock-data.d.ts +38 -41
  112. package/dist/handlers/mock-data.d.ts.map +1 -1
  113. package/dist/handlers/mock-data.js +162 -184
  114. package/dist/index.d.ts +13 -42
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +3277 -53
  117. package/dist/node/crm-pipeline.feature.js +75 -0
  118. package/dist/node/deal/deal.enum.js +18 -0
  119. package/dist/node/deal/deal.operation.js +396 -0
  120. package/dist/node/deal/deal.schema.js +141 -0
  121. package/dist/node/deal/deal.test-spec.js +58 -0
  122. package/dist/node/deal/index.js +408 -0
  123. package/dist/node/docs/crm-pipeline.docblock.js +113 -0
  124. package/dist/node/docs/index.js +113 -0
  125. package/dist/node/entities/company.entity.js +52 -0
  126. package/dist/node/entities/contact.entity.js +66 -0
  127. package/dist/node/entities/deal.entity.js +107 -0
  128. package/dist/node/entities/index.js +343 -0
  129. package/dist/node/entities/task.entity.js +99 -0
  130. package/dist/node/events/contact.event.js +31 -0
  131. package/dist/node/events/deal.event.js +101 -0
  132. package/dist/node/events/index.js +158 -0
  133. package/dist/node/events/task.event.js +28 -0
  134. package/dist/node/example.js +39 -0
  135. package/dist/node/handlers/crm.handlers.js +160 -0
  136. package/dist/node/handlers/deal.handlers.js +293 -0
  137. package/dist/node/handlers/index.js +456 -0
  138. package/dist/node/handlers/mock-data.js +165 -0
  139. package/dist/node/index.js +3279 -0
  140. package/dist/node/operations/index.js +407 -0
  141. package/dist/node/presentations/dashboard.presentation.js +52 -0
  142. package/dist/node/presentations/index.js +284 -0
  143. package/dist/node/presentations/pipeline.presentation.js +233 -0
  144. package/dist/node/seeders/index.js +22 -0
  145. package/dist/node/shared/overlay-types.js +0 -0
  146. package/dist/node/ui/CrmDashboard.js +1325 -0
  147. package/dist/node/ui/CrmDealCard.js +50 -0
  148. package/dist/node/ui/CrmPipelineBoard.js +160 -0
  149. package/dist/node/ui/hooks/index.js +186 -0
  150. package/dist/node/ui/hooks/useDealList.js +84 -0
  151. package/dist/node/ui/hooks/useDealMutations.js +100 -0
  152. package/dist/node/ui/index.js +1972 -0
  153. package/dist/node/ui/modals/CreateDealModal.js +211 -0
  154. package/dist/node/ui/modals/DealActionsModal.js +428 -0
  155. package/dist/node/ui/modals/index.js +638 -0
  156. package/dist/node/ui/overlays/demo-overlays.js +55 -0
  157. package/dist/node/ui/overlays/index.js +55 -0
  158. package/dist/node/ui/renderers/index.js +827 -0
  159. package/dist/node/ui/renderers/pipeline.markdown.js +564 -0
  160. package/dist/node/ui/renderers/pipeline.renderer.js +264 -0
  161. package/dist/operations/index.d.ts +2 -5
  162. package/dist/operations/index.d.ts.map +1 -0
  163. package/dist/operations/index.js +407 -5
  164. package/dist/presentations/dashboard.presentation.d.ts +2 -7
  165. package/dist/presentations/dashboard.presentation.d.ts.map +1 -1
  166. package/dist/presentations/dashboard.presentation.js +51 -60
  167. package/dist/presentations/index.d.ts +3 -3
  168. package/dist/presentations/index.d.ts.map +1 -0
  169. package/dist/presentations/index.js +284 -3
  170. package/dist/presentations/pipeline.presentation.d.ts +4 -9
  171. package/dist/presentations/pipeline.presentation.d.ts.map +1 -1
  172. package/dist/presentations/pipeline.presentation.js +228 -116
  173. package/dist/seeders/index.d.ts +4 -8
  174. package/dist/seeders/index.d.ts.map +1 -1
  175. package/dist/seeders/index.js +21 -45
  176. package/dist/shared/overlay-types.d.ts +25 -28
  177. package/dist/shared/overlay-types.d.ts.map +1 -1
  178. package/dist/shared/overlay-types.js +1 -0
  179. package/dist/ui/CrmDashboard.d.ts +1 -6
  180. package/dist/ui/CrmDashboard.d.ts.map +1 -1
  181. package/dist/ui/CrmDashboard.js +1318 -296
  182. package/dist/ui/CrmDealCard.d.ts +8 -12
  183. package/dist/ui/CrmDealCard.d.ts.map +1 -1
  184. package/dist/ui/CrmDealCard.js +47 -45
  185. package/dist/ui/CrmPipelineBoard.d.ts +11 -20
  186. package/dist/ui/CrmPipelineBoard.d.ts.map +1 -1
  187. package/dist/ui/CrmPipelineBoard.js +157 -94
  188. package/dist/ui/hooks/index.d.ts +3 -3
  189. package/dist/ui/hooks/index.d.ts.map +1 -0
  190. package/dist/ui/hooks/index.js +185 -4
  191. package/dist/ui/hooks/useDealList.d.ts +28 -32
  192. package/dist/ui/hooks/useDealList.d.ts.map +1 -1
  193. package/dist/ui/hooks/useDealList.js +81 -90
  194. package/dist/ui/hooks/useDealMutations.d.ts +18 -22
  195. package/dist/ui/hooks/useDealMutations.d.ts.map +1 -1
  196. package/dist/ui/hooks/useDealMutations.js +97 -155
  197. package/dist/ui/index.d.ts +8 -14
  198. package/dist/ui/index.d.ts.map +1 -0
  199. package/dist/ui/index.js +1973 -15
  200. package/dist/ui/modals/CreateDealModal.d.ts +19 -29
  201. package/dist/ui/modals/CreateDealModal.d.ts.map +1 -1
  202. package/dist/ui/modals/CreateDealModal.js +209 -180
  203. package/dist/ui/modals/DealActionsModal.d.ts +31 -44
  204. package/dist/ui/modals/DealActionsModal.d.ts.map +1 -1
  205. package/dist/ui/modals/DealActionsModal.js +424 -367
  206. package/dist/ui/modals/index.d.ts +3 -3
  207. package/dist/ui/modals/index.d.ts.map +1 -0
  208. package/dist/ui/modals/index.js +638 -3
  209. package/dist/ui/overlays/demo-overlays.d.ts +10 -8
  210. package/dist/ui/overlays/demo-overlays.d.ts.map +1 -1
  211. package/dist/ui/overlays/demo-overlays.js +54 -66
  212. package/dist/ui/overlays/index.d.ts +2 -2
  213. package/dist/ui/overlays/index.d.ts.map +1 -0
  214. package/dist/ui/overlays/index.js +56 -3
  215. package/dist/ui/renderers/index.d.ts +3 -3
  216. package/dist/ui/renderers/index.d.ts.map +1 -0
  217. package/dist/ui/renderers/index.js +827 -3
  218. package/dist/ui/renderers/pipeline.markdown.d.ts +12 -11
  219. package/dist/ui/renderers/pipeline.markdown.d.ts.map +1 -1
  220. package/dist/ui/renderers/pipeline.markdown.js +560 -114
  221. package/dist/ui/renderers/pipeline.renderer.d.ts +9 -7
  222. package/dist/ui/renderers/pipeline.renderer.d.ts.map +1 -1
  223. package/dist/ui/renderers/pipeline.renderer.js +261 -24
  224. package/package.json +476 -90
  225. package/tsdown.config.js +1 -2
  226. package/.turbo/turbo-build$colon$bundle.log +0 -164
  227. package/dist/crm-pipeline.feature.js.map +0 -1
  228. package/dist/deal/deal.enum.js.map +0 -1
  229. package/dist/deal/deal.operation.js.map +0 -1
  230. package/dist/deal/deal.schema.js.map +0 -1
  231. package/dist/deal/deal.test-spec.js.map +0 -1
  232. package/dist/docs/crm-pipeline.docblock.js.map +0 -1
  233. package/dist/entities/company.entity.js.map +0 -1
  234. package/dist/entities/contact.entity.js.map +0 -1
  235. package/dist/entities/deal.entity.js.map +0 -1
  236. package/dist/entities/index.js.map +0 -1
  237. package/dist/entities/task.entity.js.map +0 -1
  238. package/dist/events/contact.event.js.map +0 -1
  239. package/dist/events/deal.event.js.map +0 -1
  240. package/dist/events/task.event.js.map +0 -1
  241. package/dist/example.js.map +0 -1
  242. package/dist/handlers/crm.handlers.js.map +0 -1
  243. package/dist/handlers/deal.handlers.js.map +0 -1
  244. package/dist/handlers/mock-data.js.map +0 -1
  245. package/dist/index.js.map +0 -1
  246. package/dist/presentations/dashboard.presentation.js.map +0 -1
  247. package/dist/presentations/pipeline.presentation.js.map +0 -1
  248. package/dist/seeders/index.js.map +0 -1
  249. package/dist/ui/CrmDashboard.js.map +0 -1
  250. package/dist/ui/CrmDealCard.js.map +0 -1
  251. package/dist/ui/CrmPipelineBoard.js.map +0 -1
  252. package/dist/ui/hooks/useDealList.js.map +0 -1
  253. package/dist/ui/hooks/useDealMutations.js.map +0 -1
  254. package/dist/ui/modals/CreateDealModal.js.map +0 -1
  255. package/dist/ui/modals/DealActionsModal.js.map +0 -1
  256. package/dist/ui/overlays/demo-overlays.js.map +0 -1
  257. package/dist/ui/renderers/pipeline.markdown.js.map +0 -1
  258. package/dist/ui/renderers/pipeline.renderer.js.map +0 -1
  259. package/tsconfig.tsbuildinfo +0 -1
@@ -1,300 +1,295 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
-
3
- //#region src/deal/deal.schema.d.ts
4
1
  /**
5
2
  * A deal in the CRM pipeline.
6
3
  */
7
- declare const DealModel: _contractspec_lib_schema0.SchemaModel<{
8
- id: {
9
- type: _contractspec_lib_schema0.FieldType<string, string>;
10
- isOptional: false;
11
- };
12
- name: {
13
- type: _contractspec_lib_schema0.FieldType<string, string>;
14
- isOptional: false;
15
- };
16
- value: {
17
- type: _contractspec_lib_schema0.FieldType<number, number>;
18
- isOptional: false;
19
- };
20
- currency: {
21
- type: _contractspec_lib_schema0.FieldType<string, string>;
22
- isOptional: false;
23
- };
24
- pipelineId: {
25
- type: _contractspec_lib_schema0.FieldType<string, string>;
26
- isOptional: false;
27
- };
28
- stageId: {
29
- type: _contractspec_lib_schema0.FieldType<string, string>;
30
- isOptional: false;
31
- };
32
- status: {
33
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
34
- isOptional: false;
35
- };
36
- contactId: {
37
- type: _contractspec_lib_schema0.FieldType<string, string>;
38
- isOptional: true;
39
- };
40
- companyId: {
41
- type: _contractspec_lib_schema0.FieldType<string, string>;
42
- isOptional: true;
43
- };
44
- ownerId: {
45
- type: _contractspec_lib_schema0.FieldType<string, string>;
46
- isOptional: false;
47
- };
48
- expectedCloseDate: {
49
- type: _contractspec_lib_schema0.FieldType<Date, string>;
50
- isOptional: true;
51
- };
52
- createdAt: {
53
- type: _contractspec_lib_schema0.FieldType<Date, string>;
54
- isOptional: false;
55
- };
56
- updatedAt: {
57
- type: _contractspec_lib_schema0.FieldType<Date, string>;
58
- isOptional: false;
59
- };
4
+ export declare const DealModel: import("@contractspec/lib.schema").SchemaModel<{
5
+ id: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ name: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ value: {
14
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
15
+ isOptional: false;
16
+ };
17
+ currency: {
18
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ pipelineId: {
22
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ stageId: {
26
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
27
+ isOptional: false;
28
+ };
29
+ status: {
30
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
31
+ isOptional: false;
32
+ };
33
+ contactId: {
34
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
35
+ isOptional: true;
36
+ };
37
+ companyId: {
38
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
39
+ isOptional: true;
40
+ };
41
+ ownerId: {
42
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
43
+ isOptional: false;
44
+ };
45
+ expectedCloseDate: {
46
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
47
+ isOptional: true;
48
+ };
49
+ createdAt: {
50
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
51
+ isOptional: false;
52
+ };
53
+ updatedAt: {
54
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
55
+ isOptional: false;
56
+ };
60
57
  }>;
61
58
  /**
62
59
  * Input for creating a deal.
63
60
  */
64
- declare const CreateDealInputModel: _contractspec_lib_schema0.SchemaModel<{
65
- name: {
66
- type: _contractspec_lib_schema0.FieldType<string, string>;
67
- isOptional: false;
68
- };
69
- value: {
70
- type: _contractspec_lib_schema0.FieldType<number, number>;
71
- isOptional: false;
72
- };
73
- currency: {
74
- type: _contractspec_lib_schema0.FieldType<string, string>;
75
- isOptional: true;
76
- };
77
- pipelineId: {
78
- type: _contractspec_lib_schema0.FieldType<string, string>;
79
- isOptional: false;
80
- };
81
- stageId: {
82
- type: _contractspec_lib_schema0.FieldType<string, string>;
83
- isOptional: false;
84
- };
85
- contactId: {
86
- type: _contractspec_lib_schema0.FieldType<string, string>;
87
- isOptional: true;
88
- };
89
- companyId: {
90
- type: _contractspec_lib_schema0.FieldType<string, string>;
91
- isOptional: true;
92
- };
93
- expectedCloseDate: {
94
- type: _contractspec_lib_schema0.FieldType<Date, string>;
95
- isOptional: true;
96
- };
61
+ export declare const CreateDealInputModel: import("@contractspec/lib.schema").SchemaModel<{
62
+ name: {
63
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ value: {
67
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
68
+ isOptional: false;
69
+ };
70
+ currency: {
71
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
72
+ isOptional: true;
73
+ };
74
+ pipelineId: {
75
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
76
+ isOptional: false;
77
+ };
78
+ stageId: {
79
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
80
+ isOptional: false;
81
+ };
82
+ contactId: {
83
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
84
+ isOptional: true;
85
+ };
86
+ companyId: {
87
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
88
+ isOptional: true;
89
+ };
90
+ expectedCloseDate: {
91
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
92
+ isOptional: true;
93
+ };
97
94
  }>;
98
95
  /**
99
96
  * Input for moving a deal to another stage.
100
97
  */
101
- declare const MoveDealInputModel: _contractspec_lib_schema0.SchemaModel<{
102
- dealId: {
103
- type: _contractspec_lib_schema0.FieldType<string, string>;
104
- isOptional: false;
105
- };
106
- stageId: {
107
- type: _contractspec_lib_schema0.FieldType<string, string>;
108
- isOptional: false;
109
- };
110
- position: {
111
- type: _contractspec_lib_schema0.FieldType<number, number>;
112
- isOptional: true;
113
- };
98
+ export declare const MoveDealInputModel: import("@contractspec/lib.schema").SchemaModel<{
99
+ dealId: {
100
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ stageId: {
104
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ position: {
108
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
109
+ isOptional: true;
110
+ };
114
111
  }>;
115
112
  /**
116
113
  * Payload for deal moved event.
117
114
  */
118
- declare const DealMovedPayloadModel: _contractspec_lib_schema0.SchemaModel<{
119
- dealId: {
120
- type: _contractspec_lib_schema0.FieldType<string, string>;
121
- isOptional: false;
122
- };
123
- fromStage: {
124
- type: _contractspec_lib_schema0.FieldType<string, string>;
125
- isOptional: false;
126
- };
127
- toStage: {
128
- type: _contractspec_lib_schema0.FieldType<string, string>;
129
- isOptional: false;
130
- };
115
+ export declare const DealMovedPayloadModel: import("@contractspec/lib.schema").SchemaModel<{
116
+ dealId: {
117
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
118
+ isOptional: false;
119
+ };
120
+ fromStage: {
121
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
122
+ isOptional: false;
123
+ };
124
+ toStage: {
125
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
126
+ isOptional: false;
127
+ };
131
128
  }>;
132
129
  /**
133
130
  * Input for marking a deal as won.
134
131
  */
135
- declare const WinDealInputModel: _contractspec_lib_schema0.SchemaModel<{
136
- dealId: {
137
- type: _contractspec_lib_schema0.FieldType<string, string>;
138
- isOptional: false;
139
- };
140
- wonSource: {
141
- type: _contractspec_lib_schema0.FieldType<string, string>;
142
- isOptional: true;
143
- };
144
- notes: {
145
- type: _contractspec_lib_schema0.FieldType<string, string>;
146
- isOptional: true;
147
- };
132
+ export declare const WinDealInputModel: import("@contractspec/lib.schema").SchemaModel<{
133
+ dealId: {
134
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
135
+ isOptional: false;
136
+ };
137
+ wonSource: {
138
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
139
+ isOptional: true;
140
+ };
141
+ notes: {
142
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
143
+ isOptional: true;
144
+ };
148
145
  }>;
149
146
  /**
150
147
  * Payload for deal won event.
151
148
  */
152
- declare const DealWonPayloadModel: _contractspec_lib_schema0.SchemaModel<{
153
- dealId: {
154
- type: _contractspec_lib_schema0.FieldType<string, string>;
155
- isOptional: false;
156
- };
157
- value: {
158
- type: _contractspec_lib_schema0.FieldType<number, number>;
159
- isOptional: false;
160
- };
149
+ export declare const DealWonPayloadModel: import("@contractspec/lib.schema").SchemaModel<{
150
+ dealId: {
151
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
152
+ isOptional: false;
153
+ };
154
+ value: {
155
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
156
+ isOptional: false;
157
+ };
161
158
  }>;
162
159
  /**
163
160
  * Input for marking a deal as lost.
164
161
  */
165
- declare const LoseDealInputModel: _contractspec_lib_schema0.SchemaModel<{
166
- dealId: {
167
- type: _contractspec_lib_schema0.FieldType<string, string>;
168
- isOptional: false;
169
- };
170
- lostReason: {
171
- type: _contractspec_lib_schema0.FieldType<string, string>;
172
- isOptional: false;
173
- };
174
- notes: {
175
- type: _contractspec_lib_schema0.FieldType<string, string>;
176
- isOptional: true;
177
- };
162
+ export declare const LoseDealInputModel: import("@contractspec/lib.schema").SchemaModel<{
163
+ dealId: {
164
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
165
+ isOptional: false;
166
+ };
167
+ lostReason: {
168
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
169
+ isOptional: false;
170
+ };
171
+ notes: {
172
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
173
+ isOptional: true;
174
+ };
178
175
  }>;
179
176
  /**
180
177
  * Payload for deal lost event.
181
178
  */
182
- declare const DealLostPayloadModel: _contractspec_lib_schema0.SchemaModel<{
183
- dealId: {
184
- type: _contractspec_lib_schema0.FieldType<string, string>;
185
- isOptional: false;
186
- };
187
- reason: {
188
- type: _contractspec_lib_schema0.FieldType<string, string>;
189
- isOptional: false;
190
- };
179
+ export declare const DealLostPayloadModel: import("@contractspec/lib.schema").SchemaModel<{
180
+ dealId: {
181
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
182
+ isOptional: false;
183
+ };
184
+ reason: {
185
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
186
+ isOptional: false;
187
+ };
191
188
  }>;
192
189
  /**
193
190
  * Input for listing deals.
194
191
  */
195
- declare const ListDealsInputModel: _contractspec_lib_schema0.SchemaModel<{
196
- pipelineId: {
197
- type: _contractspec_lib_schema0.FieldType<string, string>;
198
- isOptional: true;
199
- };
200
- stageId: {
201
- type: _contractspec_lib_schema0.FieldType<string, string>;
202
- isOptional: true;
203
- };
204
- status: {
205
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
206
- isOptional: true;
207
- };
208
- ownerId: {
209
- type: _contractspec_lib_schema0.FieldType<string, string>;
210
- isOptional: true;
211
- };
212
- search: {
213
- type: _contractspec_lib_schema0.FieldType<string, string>;
214
- isOptional: true;
215
- };
216
- limit: {
217
- type: _contractspec_lib_schema0.FieldType<number, number>;
218
- isOptional: true;
219
- defaultValue: number;
220
- };
221
- offset: {
222
- type: _contractspec_lib_schema0.FieldType<number, number>;
223
- isOptional: true;
224
- defaultValue: number;
225
- };
192
+ export declare const ListDealsInputModel: import("@contractspec/lib.schema").SchemaModel<{
193
+ pipelineId: {
194
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
195
+ isOptional: true;
196
+ };
197
+ stageId: {
198
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
199
+ isOptional: true;
200
+ };
201
+ status: {
202
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
203
+ isOptional: true;
204
+ };
205
+ ownerId: {
206
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
207
+ isOptional: true;
208
+ };
209
+ search: {
210
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
211
+ isOptional: true;
212
+ };
213
+ limit: {
214
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
215
+ isOptional: true;
216
+ defaultValue: number;
217
+ };
218
+ offset: {
219
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
220
+ isOptional: true;
221
+ defaultValue: number;
222
+ };
226
223
  }>;
227
224
  /**
228
225
  * Output for listing deals.
229
226
  */
230
- declare const ListDealsOutputModel: _contractspec_lib_schema0.SchemaModel<{
231
- deals: {
232
- type: _contractspec_lib_schema0.SchemaModel<{
233
- id: {
234
- type: _contractspec_lib_schema0.FieldType<string, string>;
235
- isOptional: false;
236
- };
237
- name: {
238
- type: _contractspec_lib_schema0.FieldType<string, string>;
239
- isOptional: false;
240
- };
241
- value: {
242
- type: _contractspec_lib_schema0.FieldType<number, number>;
243
- isOptional: false;
244
- };
245
- currency: {
246
- type: _contractspec_lib_schema0.FieldType<string, string>;
247
- isOptional: false;
248
- };
249
- pipelineId: {
250
- type: _contractspec_lib_schema0.FieldType<string, string>;
227
+ export declare const ListDealsOutputModel: import("@contractspec/lib.schema").SchemaModel<{
228
+ deals: {
229
+ type: import("@contractspec/lib.schema").SchemaModel<{
230
+ id: {
231
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
232
+ isOptional: false;
233
+ };
234
+ name: {
235
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
236
+ isOptional: false;
237
+ };
238
+ value: {
239
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
240
+ isOptional: false;
241
+ };
242
+ currency: {
243
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
244
+ isOptional: false;
245
+ };
246
+ pipelineId: {
247
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
248
+ isOptional: false;
249
+ };
250
+ stageId: {
251
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
252
+ isOptional: false;
253
+ };
254
+ status: {
255
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
256
+ isOptional: false;
257
+ };
258
+ contactId: {
259
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
260
+ isOptional: true;
261
+ };
262
+ companyId: {
263
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
264
+ isOptional: true;
265
+ };
266
+ ownerId: {
267
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
268
+ isOptional: false;
269
+ };
270
+ expectedCloseDate: {
271
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
272
+ isOptional: true;
273
+ };
274
+ createdAt: {
275
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
276
+ isOptional: false;
277
+ };
278
+ updatedAt: {
279
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
280
+ isOptional: false;
281
+ };
282
+ }>;
283
+ isArray: true;
251
284
  isOptional: false;
252
- };
253
- stageId: {
254
- type: _contractspec_lib_schema0.FieldType<string, string>;
255
- isOptional: false;
256
- };
257
- status: {
258
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
259
- isOptional: false;
260
- };
261
- contactId: {
262
- type: _contractspec_lib_schema0.FieldType<string, string>;
263
- isOptional: true;
264
- };
265
- companyId: {
266
- type: _contractspec_lib_schema0.FieldType<string, string>;
267
- isOptional: true;
268
- };
269
- ownerId: {
270
- type: _contractspec_lib_schema0.FieldType<string, string>;
271
- isOptional: false;
272
- };
273
- expectedCloseDate: {
274
- type: _contractspec_lib_schema0.FieldType<Date, string>;
275
- isOptional: true;
276
- };
277
- createdAt: {
278
- type: _contractspec_lib_schema0.FieldType<Date, string>;
285
+ };
286
+ total: {
287
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
279
288
  isOptional: false;
280
- };
281
- updatedAt: {
282
- type: _contractspec_lib_schema0.FieldType<Date, string>;
289
+ };
290
+ totalValue: {
291
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
283
292
  isOptional: false;
284
- };
285
- }>;
286
- isArray: true;
287
- isOptional: false;
288
- };
289
- total: {
290
- type: _contractspec_lib_schema0.FieldType<number, number>;
291
- isOptional: false;
292
- };
293
- totalValue: {
294
- type: _contractspec_lib_schema0.FieldType<number, number>;
295
- isOptional: false;
296
- };
293
+ };
297
294
  }>;
298
- //#endregion
299
- export { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel };
300
295
  //# sourceMappingURL=deal.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deal.schema.d.ts","names":[],"sources":["../../src/deal/deal.schema.ts"],"mappings":";;;;;;cAMa,SAAA,4BAAS,WAAA;;UAkBpB,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,oBAAA,4BAAoB,WAAA;;UAa/B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,kBAAA,4BAAkB,WAAA;;UAQ7B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKW,qBAAA,4BAAqB,WAAA;;UAOhC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKW,iBAAA,4BAAiB,WAAA;;UAQ5B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKW,mBAAA,4BAAmB,WAAA;;UAM9B,yBAAA,CAAA,SAAA;;;;;;;;AA/BF;;;AAAA,cAoCa,kBAAA,4BAAkB,WAAA;;UAQ7B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKW,oBAAA,4BAAoB,WAAA;;UAM/B,yBAAA,CAAA,SAAA;;;;;;;;;;;cAKW,mBAAA,4BAAmB,WAAA;;UAoB9B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5CF;cAiDa,oBAAA,4BAAoB,WAAA;;;;cAQ/B,yBAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"deal.schema.d.ts","sourceRoot":"","sources":["../../src/deal/deal.schema.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAQ7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;EAOhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;EAQ5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;EAM9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAQ7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;EAM/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ/B,CAAC"}