@lssm/example.crm-pipeline 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060433

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.
@@ -0,0 +1,61 @@
1
+
2
+ $ tsdown
3
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
+ ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/crm-pipeline/tsdown.config.js (unrun)
5
+ ℹ entry: src/crm-pipeline.feature.ts, src/example.ts, src/index.ts, src/contracts/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/presentations/dashboard.presentation.ts, src/presentations/index.ts, src/presentations/pipeline.presentation.ts, src/deal/deal.contracts.ts, src/deal/deal.enum.ts, src/deal/deal.schema.ts, src/deal/index.ts
6
+ ℹ target: esnext
7
+ ℹ tsconfig: tsconfig.json
8
+ ℹ Build start
9
+ ℹ Cleaning 57 files
10
+ ℹ dist/index.js  3.66 kB │ gzip: 1.11 kB
11
+ ℹ dist/handlers/mock-data.js  3.36 kB │ gzip: 0.97 kB
12
+ ℹ dist/deal/deal.schema.js  3.34 kB │ gzip: 0.70 kB
13
+ ℹ dist/docs/crm-pipeline.docblock.js  3.31 kB │ gzip: 1.36 kB
14
+ ℹ dist/entities/deal.entity.js  2.52 kB │ gzip: 0.87 kB
15
+ ℹ dist/entities/task.entity.js  2.35 kB │ gzip: 0.81 kB
16
+ ℹ dist/deal/deal.contracts.js  2.26 kB │ gzip: 0.74 kB
17
+ ℹ dist/events/deal.event.js  2.07 kB │ gzip: 0.50 kB
18
+ ℹ dist/handlers/deal.handlers.js  1.85 kB │ gzip: 0.78 kB
19
+ ℹ dist/entities/contact.entity.js  1.68 kB │ gzip: 0.70 kB
20
+ ℹ dist/presentations/pipeline.presentation.js  1.49 kB │ gzip: 0.49 kB
21
+ ℹ dist/crm-pipeline.feature.js  1.48 kB │ gzip: 0.46 kB
22
+ ℹ dist/entities/company.entity.js  1.35 kB │ gzip: 0.59 kB
23
+ ℹ dist/contracts/index.js  0.90 kB │ gzip: 0.30 kB
24
+ ℹ dist/deal/index.js  0.90 kB │ gzip: 0.30 kB
25
+ ℹ dist/entities/index.js  0.76 kB │ gzip: 0.33 kB
26
+ ℹ dist/presentations/dashboard.presentation.js  0.74 kB │ gzip: 0.33 kB
27
+ ℹ dist/handlers/index.js  0.60 kB │ gzip: 0.25 kB
28
+ ℹ dist/events/contact.event.js  0.59 kB │ gzip: 0.30 kB
29
+ ℹ dist/example.js  0.59 kB │ gzip: 0.36 kB
30
+ ℹ dist/events/task.event.js  0.58 kB │ gzip: 0.29 kB
31
+ ℹ dist/presentations/index.js  0.44 kB │ gzip: 0.17 kB
32
+ ℹ dist/events/index.js  0.35 kB │ gzip: 0.17 kB
33
+ ℹ dist/deal/deal.enum.js  0.21 kB │ gzip: 0.16 kB
34
+ ℹ dist/docs/index.js  0.04 kB │ gzip: 0.06 kB
35
+ ℹ dist/deal/deal.contracts.d.ts 13.13 kB │ gzip: 0.94 kB
36
+ ℹ dist/deal/deal.schema.d.ts  7.65 kB │ gzip: 0.81 kB
37
+ ℹ dist/index.d.ts  3.51 kB │ gzip: 0.89 kB
38
+ ℹ dist/entities/deal.entity.d.ts  3.02 kB │ gzip: 0.53 kB
39
+ ℹ dist/events/deal.event.d.ts  2.92 kB │ gzip: 0.39 kB
40
+ ℹ dist/entities/task.entity.d.ts  2.55 kB │ gzip: 0.48 kB
41
+ ℹ dist/handlers/deal.handlers.d.ts  2.36 kB │ gzip: 0.67 kB
42
+ ℹ dist/entities/contact.entity.d.ts  1.85 kB │ gzip: 0.43 kB
43
+ ℹ dist/entities/company.entity.d.ts  1.64 kB │ gzip: 0.39 kB
44
+ ℹ dist/example.d.ts  1.09 kB │ gzip: 0.44 kB
45
+ ℹ dist/handlers/mock-data.d.ts  1.00 kB │ gzip: 0.41 kB
46
+ ℹ dist/entities/index.d.ts  0.81 kB │ gzip: 0.30 kB
47
+ ℹ dist/handlers/index.d.ts  0.80 kB │ gzip: 0.25 kB
48
+ ℹ dist/events/contact.event.d.ts  0.80 kB │ gzip: 0.28 kB
49
+ ℹ dist/contracts/index.d.ts  0.79 kB │ gzip: 0.23 kB
50
+ ℹ dist/events/task.event.d.ts  0.79 kB │ gzip: 0.28 kB
51
+ ℹ dist/deal/index.d.ts  0.78 kB │ gzip: 0.23 kB
52
+ ℹ dist/presentations/pipeline.presentation.d.ts  0.68 kB │ gzip: 0.26 kB
53
+ ℹ dist/presentations/dashboard.presentation.d.ts  0.42 kB │ gzip: 0.20 kB
54
+ ℹ dist/deal/deal.enum.d.ts  0.41 kB │ gzip: 0.20 kB
55
+ ℹ dist/presentations/index.d.ts  0.40 kB │ gzip: 0.15 kB
56
+ ℹ dist/crm-pipeline.feature.d.ts  0.34 kB │ gzip: 0.22 kB
57
+ ℹ dist/events/index.d.ts  0.32 kB │ gzip: 0.14 kB
58
+ ℹ dist/docs/crm-pipeline.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
59
+ ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
60
+ ℹ 50 files, total: 85.51 kB
61
+ ✔ Build complete in 8840ms
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lssm/example.crm-pipeline
2
2
 
3
- ## 0.0.0-canary-20251217054315
3
+ ## 0.0.0-canary-20251217060433
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,44 +9,10 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [66a5dfd]
12
- - @lssm/lib.bus@0.0.0-canary-20251217054315
13
- - @lssm/lib.contracts@0.0.0-canary-20251217054315
14
- - @lssm/lib.identity-rbac@0.0.0-canary-20251217054315
15
- - @lssm/lib.jobs@0.0.0-canary-20251217054315
16
- - @lssm/lib.schema@0.0.0-canary-20251217054315
17
- - @lssm/module.audit-trail@0.0.0-canary-20251217054315
18
- - @lssm/module.notifications@0.0.0-canary-20251217054315
19
-
20
- ## 1.42.0
21
-
22
- ### Minor Changes
23
-
24
- - 66a5dfd: initial release
25
-
26
- ### Patch Changes
27
-
28
- - Updated dependencies [66a5dfd]
29
- - @lssm/lib.bus@1.42.0
30
- - @lssm/lib.contracts@1.42.0
31
- - @lssm/lib.identity-rbac@1.42.0
32
- - @lssm/lib.jobs@1.42.0
33
- - @lssm/lib.schema@1.42.0
34
- - @lssm/module.audit-trail@1.42.0
35
- - @lssm/module.notifications@1.42.0
36
-
37
- ## 0.0.0-canary-20251217053014
38
-
39
- ### Minor Changes
40
-
41
- - 66a5dfd: initial release
42
-
43
- ### Patch Changes
44
-
45
- - Updated dependencies [66a5dfd]
46
- - @lssm/lib.bus@0.0.0-canary-20251217053014
47
- - @lssm/lib.contracts@0.0.0-canary-20251217053014
48
- - @lssm/lib.identity-rbac@0.0.0-canary-20251217053014
49
- - @lssm/lib.jobs@0.0.0-canary-20251217053014
50
- - @lssm/lib.schema@0.0.0-canary-20251217053014
51
- - @lssm/module.audit-trail@0.0.0-canary-20251217053014
52
- - @lssm/module.notifications@0.0.0-canary-20251217053014
12
+ - @lssm/lib.bus@0.0.0-canary-20251217060433
13
+ - @lssm/lib.contracts@0.0.0-canary-20251217060433
14
+ - @lssm/lib.identity-rbac@0.0.0-canary-20251217060433
15
+ - @lssm/lib.jobs@0.0.0-canary-20251217060433
16
+ - @lssm/lib.schema@0.0.0-canary-20251217060433
17
+ - @lssm/module.audit-trail@0.0.0-canary-20251217060433
18
+ - @lssm/module.notifications@0.0.0-canary-20251217060433
@@ -0,0 +1,5 @@
1
+ import { DealStatusFilterEnum } from "../deal/deal.enum.js";
2
+ import { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel } from "../deal/deal.schema.js";
3
+ import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "../deal/deal.contracts.js";
4
+ import "../deal/index.js";
5
+ export { CreateDealContract, CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealStatusFilterEnum, DealWonPayloadModel, ListDealsContract, ListDealsInputModel, ListDealsOutputModel, LoseDealContract, LoseDealInputModel, MoveDealContract, MoveDealInputModel, WinDealContract, WinDealInputModel };
@@ -0,0 +1,11 @@
1
+ import { FeatureModuleSpec } from "@lssm/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 };
@@ -0,0 +1,512 @@
1
+ import * as _lssm_lib_schema133 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts5 from "@lssm/lib.contracts";
3
+
4
+ //#region src/deal/deal.contracts.d.ts
5
+ /**
6
+ * Create a new deal.
7
+ */
8
+ declare const CreateDealContract: _lssm_lib_contracts5.ContractSpec<_lssm_lib_schema133.SchemaModel<{
9
+ name: {
10
+ type: _lssm_lib_schema133.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ value: {
14
+ type: _lssm_lib_schema133.FieldType<number, number>;
15
+ isOptional: false;
16
+ };
17
+ currency: {
18
+ type: _lssm_lib_schema133.FieldType<string, string>;
19
+ isOptional: true;
20
+ };
21
+ pipelineId: {
22
+ type: _lssm_lib_schema133.FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ stageId: {
26
+ type: _lssm_lib_schema133.FieldType<string, string>;
27
+ isOptional: false;
28
+ };
29
+ contactId: {
30
+ type: _lssm_lib_schema133.FieldType<string, string>;
31
+ isOptional: true;
32
+ };
33
+ companyId: {
34
+ type: _lssm_lib_schema133.FieldType<string, string>;
35
+ isOptional: true;
36
+ };
37
+ expectedCloseDate: {
38
+ type: _lssm_lib_schema133.FieldType<Date, string>;
39
+ isOptional: true;
40
+ };
41
+ }>, _lssm_lib_schema133.SchemaModel<{
42
+ id: {
43
+ type: _lssm_lib_schema133.FieldType<string, string>;
44
+ isOptional: false;
45
+ };
46
+ name: {
47
+ type: _lssm_lib_schema133.FieldType<string, string>;
48
+ isOptional: false;
49
+ };
50
+ value: {
51
+ type: _lssm_lib_schema133.FieldType<number, number>;
52
+ isOptional: false;
53
+ };
54
+ currency: {
55
+ type: _lssm_lib_schema133.FieldType<string, string>;
56
+ isOptional: false;
57
+ };
58
+ pipelineId: {
59
+ type: _lssm_lib_schema133.FieldType<string, string>;
60
+ isOptional: false;
61
+ };
62
+ stageId: {
63
+ type: _lssm_lib_schema133.FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ status: {
67
+ type: _lssm_lib_schema133.EnumType<[string, string, string, string]>;
68
+ isOptional: false;
69
+ };
70
+ contactId: {
71
+ type: _lssm_lib_schema133.FieldType<string, string>;
72
+ isOptional: true;
73
+ };
74
+ companyId: {
75
+ type: _lssm_lib_schema133.FieldType<string, string>;
76
+ isOptional: true;
77
+ };
78
+ ownerId: {
79
+ type: _lssm_lib_schema133.FieldType<string, string>;
80
+ isOptional: false;
81
+ };
82
+ expectedCloseDate: {
83
+ type: _lssm_lib_schema133.FieldType<Date, string>;
84
+ isOptional: true;
85
+ };
86
+ createdAt: {
87
+ type: _lssm_lib_schema133.FieldType<Date, string>;
88
+ isOptional: false;
89
+ };
90
+ updatedAt: {
91
+ type: _lssm_lib_schema133.FieldType<Date, string>;
92
+ isOptional: false;
93
+ };
94
+ }>, {
95
+ name: string;
96
+ version: number;
97
+ when: string;
98
+ payload: _lssm_lib_schema133.SchemaModel<{
99
+ id: {
100
+ type: _lssm_lib_schema133.FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ name: {
104
+ type: _lssm_lib_schema133.FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ value: {
108
+ type: _lssm_lib_schema133.FieldType<number, number>;
109
+ isOptional: false;
110
+ };
111
+ currency: {
112
+ type: _lssm_lib_schema133.FieldType<string, string>;
113
+ isOptional: false;
114
+ };
115
+ pipelineId: {
116
+ type: _lssm_lib_schema133.FieldType<string, string>;
117
+ isOptional: false;
118
+ };
119
+ stageId: {
120
+ type: _lssm_lib_schema133.FieldType<string, string>;
121
+ isOptional: false;
122
+ };
123
+ status: {
124
+ type: _lssm_lib_schema133.EnumType<[string, string, string, string]>;
125
+ isOptional: false;
126
+ };
127
+ contactId: {
128
+ type: _lssm_lib_schema133.FieldType<string, string>;
129
+ isOptional: true;
130
+ };
131
+ companyId: {
132
+ type: _lssm_lib_schema133.FieldType<string, string>;
133
+ isOptional: true;
134
+ };
135
+ ownerId: {
136
+ type: _lssm_lib_schema133.FieldType<string, string>;
137
+ isOptional: false;
138
+ };
139
+ expectedCloseDate: {
140
+ type: _lssm_lib_schema133.FieldType<Date, string>;
141
+ isOptional: true;
142
+ };
143
+ createdAt: {
144
+ type: _lssm_lib_schema133.FieldType<Date, string>;
145
+ isOptional: false;
146
+ };
147
+ updatedAt: {
148
+ type: _lssm_lib_schema133.FieldType<Date, string>;
149
+ isOptional: false;
150
+ };
151
+ }>;
152
+ }[]>;
153
+ /**
154
+ * Move deal to a different stage.
155
+ */
156
+ declare const MoveDealContract: _lssm_lib_contracts5.ContractSpec<_lssm_lib_schema133.SchemaModel<{
157
+ dealId: {
158
+ type: _lssm_lib_schema133.FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ stageId: {
162
+ type: _lssm_lib_schema133.FieldType<string, string>;
163
+ isOptional: false;
164
+ };
165
+ position: {
166
+ type: _lssm_lib_schema133.FieldType<number, number>;
167
+ isOptional: true;
168
+ };
169
+ }>, _lssm_lib_schema133.SchemaModel<{
170
+ id: {
171
+ type: _lssm_lib_schema133.FieldType<string, string>;
172
+ isOptional: false;
173
+ };
174
+ name: {
175
+ type: _lssm_lib_schema133.FieldType<string, string>;
176
+ isOptional: false;
177
+ };
178
+ value: {
179
+ type: _lssm_lib_schema133.FieldType<number, number>;
180
+ isOptional: false;
181
+ };
182
+ currency: {
183
+ type: _lssm_lib_schema133.FieldType<string, string>;
184
+ isOptional: false;
185
+ };
186
+ pipelineId: {
187
+ type: _lssm_lib_schema133.FieldType<string, string>;
188
+ isOptional: false;
189
+ };
190
+ stageId: {
191
+ type: _lssm_lib_schema133.FieldType<string, string>;
192
+ isOptional: false;
193
+ };
194
+ status: {
195
+ type: _lssm_lib_schema133.EnumType<[string, string, string, string]>;
196
+ isOptional: false;
197
+ };
198
+ contactId: {
199
+ type: _lssm_lib_schema133.FieldType<string, string>;
200
+ isOptional: true;
201
+ };
202
+ companyId: {
203
+ type: _lssm_lib_schema133.FieldType<string, string>;
204
+ isOptional: true;
205
+ };
206
+ ownerId: {
207
+ type: _lssm_lib_schema133.FieldType<string, string>;
208
+ isOptional: false;
209
+ };
210
+ expectedCloseDate: {
211
+ type: _lssm_lib_schema133.FieldType<Date, string>;
212
+ isOptional: true;
213
+ };
214
+ createdAt: {
215
+ type: _lssm_lib_schema133.FieldType<Date, string>;
216
+ isOptional: false;
217
+ };
218
+ updatedAt: {
219
+ type: _lssm_lib_schema133.FieldType<Date, string>;
220
+ isOptional: false;
221
+ };
222
+ }>, {
223
+ name: string;
224
+ version: number;
225
+ when: string;
226
+ payload: _lssm_lib_schema133.SchemaModel<{
227
+ dealId: {
228
+ type: _lssm_lib_schema133.FieldType<string, string>;
229
+ isOptional: false;
230
+ };
231
+ fromStage: {
232
+ type: _lssm_lib_schema133.FieldType<string, string>;
233
+ isOptional: false;
234
+ };
235
+ toStage: {
236
+ type: _lssm_lib_schema133.FieldType<string, string>;
237
+ isOptional: false;
238
+ };
239
+ }>;
240
+ }[]>;
241
+ /**
242
+ * Mark deal as won.
243
+ */
244
+ declare const WinDealContract: _lssm_lib_contracts5.ContractSpec<_lssm_lib_schema133.SchemaModel<{
245
+ dealId: {
246
+ type: _lssm_lib_schema133.FieldType<string, string>;
247
+ isOptional: false;
248
+ };
249
+ wonSource: {
250
+ type: _lssm_lib_schema133.FieldType<string, string>;
251
+ isOptional: true;
252
+ };
253
+ notes: {
254
+ type: _lssm_lib_schema133.FieldType<string, string>;
255
+ isOptional: true;
256
+ };
257
+ }>, _lssm_lib_schema133.SchemaModel<{
258
+ id: {
259
+ type: _lssm_lib_schema133.FieldType<string, string>;
260
+ isOptional: false;
261
+ };
262
+ name: {
263
+ type: _lssm_lib_schema133.FieldType<string, string>;
264
+ isOptional: false;
265
+ };
266
+ value: {
267
+ type: _lssm_lib_schema133.FieldType<number, number>;
268
+ isOptional: false;
269
+ };
270
+ currency: {
271
+ type: _lssm_lib_schema133.FieldType<string, string>;
272
+ isOptional: false;
273
+ };
274
+ pipelineId: {
275
+ type: _lssm_lib_schema133.FieldType<string, string>;
276
+ isOptional: false;
277
+ };
278
+ stageId: {
279
+ type: _lssm_lib_schema133.FieldType<string, string>;
280
+ isOptional: false;
281
+ };
282
+ status: {
283
+ type: _lssm_lib_schema133.EnumType<[string, string, string, string]>;
284
+ isOptional: false;
285
+ };
286
+ contactId: {
287
+ type: _lssm_lib_schema133.FieldType<string, string>;
288
+ isOptional: true;
289
+ };
290
+ companyId: {
291
+ type: _lssm_lib_schema133.FieldType<string, string>;
292
+ isOptional: true;
293
+ };
294
+ ownerId: {
295
+ type: _lssm_lib_schema133.FieldType<string, string>;
296
+ isOptional: false;
297
+ };
298
+ expectedCloseDate: {
299
+ type: _lssm_lib_schema133.FieldType<Date, string>;
300
+ isOptional: true;
301
+ };
302
+ createdAt: {
303
+ type: _lssm_lib_schema133.FieldType<Date, string>;
304
+ isOptional: false;
305
+ };
306
+ updatedAt: {
307
+ type: _lssm_lib_schema133.FieldType<Date, string>;
308
+ isOptional: false;
309
+ };
310
+ }>, {
311
+ name: string;
312
+ version: number;
313
+ when: string;
314
+ payload: _lssm_lib_schema133.SchemaModel<{
315
+ dealId: {
316
+ type: _lssm_lib_schema133.FieldType<string, string>;
317
+ isOptional: false;
318
+ };
319
+ value: {
320
+ type: _lssm_lib_schema133.FieldType<number, number>;
321
+ isOptional: false;
322
+ };
323
+ }>;
324
+ }[]>;
325
+ /**
326
+ * Mark deal as lost.
327
+ */
328
+ declare const LoseDealContract: _lssm_lib_contracts5.ContractSpec<_lssm_lib_schema133.SchemaModel<{
329
+ dealId: {
330
+ type: _lssm_lib_schema133.FieldType<string, string>;
331
+ isOptional: false;
332
+ };
333
+ lostReason: {
334
+ type: _lssm_lib_schema133.FieldType<string, string>;
335
+ isOptional: false;
336
+ };
337
+ notes: {
338
+ type: _lssm_lib_schema133.FieldType<string, string>;
339
+ isOptional: true;
340
+ };
341
+ }>, _lssm_lib_schema133.SchemaModel<{
342
+ id: {
343
+ type: _lssm_lib_schema133.FieldType<string, string>;
344
+ isOptional: false;
345
+ };
346
+ name: {
347
+ type: _lssm_lib_schema133.FieldType<string, string>;
348
+ isOptional: false;
349
+ };
350
+ value: {
351
+ type: _lssm_lib_schema133.FieldType<number, number>;
352
+ isOptional: false;
353
+ };
354
+ currency: {
355
+ type: _lssm_lib_schema133.FieldType<string, string>;
356
+ isOptional: false;
357
+ };
358
+ pipelineId: {
359
+ type: _lssm_lib_schema133.FieldType<string, string>;
360
+ isOptional: false;
361
+ };
362
+ stageId: {
363
+ type: _lssm_lib_schema133.FieldType<string, string>;
364
+ isOptional: false;
365
+ };
366
+ status: {
367
+ type: _lssm_lib_schema133.EnumType<[string, string, string, string]>;
368
+ isOptional: false;
369
+ };
370
+ contactId: {
371
+ type: _lssm_lib_schema133.FieldType<string, string>;
372
+ isOptional: true;
373
+ };
374
+ companyId: {
375
+ type: _lssm_lib_schema133.FieldType<string, string>;
376
+ isOptional: true;
377
+ };
378
+ ownerId: {
379
+ type: _lssm_lib_schema133.FieldType<string, string>;
380
+ isOptional: false;
381
+ };
382
+ expectedCloseDate: {
383
+ type: _lssm_lib_schema133.FieldType<Date, string>;
384
+ isOptional: true;
385
+ };
386
+ createdAt: {
387
+ type: _lssm_lib_schema133.FieldType<Date, string>;
388
+ isOptional: false;
389
+ };
390
+ updatedAt: {
391
+ type: _lssm_lib_schema133.FieldType<Date, string>;
392
+ isOptional: false;
393
+ };
394
+ }>, {
395
+ name: string;
396
+ version: number;
397
+ when: string;
398
+ payload: _lssm_lib_schema133.SchemaModel<{
399
+ dealId: {
400
+ type: _lssm_lib_schema133.FieldType<string, string>;
401
+ isOptional: false;
402
+ };
403
+ reason: {
404
+ type: _lssm_lib_schema133.FieldType<string, string>;
405
+ isOptional: false;
406
+ };
407
+ }>;
408
+ }[]>;
409
+ /**
410
+ * List deals in pipeline.
411
+ */
412
+ declare const ListDealsContract: _lssm_lib_contracts5.ContractSpec<_lssm_lib_schema133.SchemaModel<{
413
+ pipelineId: {
414
+ type: _lssm_lib_schema133.FieldType<string, string>;
415
+ isOptional: true;
416
+ };
417
+ stageId: {
418
+ type: _lssm_lib_schema133.FieldType<string, string>;
419
+ isOptional: true;
420
+ };
421
+ status: {
422
+ type: _lssm_lib_schema133.EnumType<[string, string, string, string]>;
423
+ isOptional: true;
424
+ };
425
+ ownerId: {
426
+ type: _lssm_lib_schema133.FieldType<string, string>;
427
+ isOptional: true;
428
+ };
429
+ search: {
430
+ type: _lssm_lib_schema133.FieldType<string, string>;
431
+ isOptional: true;
432
+ };
433
+ limit: {
434
+ type: _lssm_lib_schema133.FieldType<number, number>;
435
+ isOptional: true;
436
+ defaultValue: number;
437
+ };
438
+ offset: {
439
+ type: _lssm_lib_schema133.FieldType<number, number>;
440
+ isOptional: true;
441
+ defaultValue: number;
442
+ };
443
+ }>, _lssm_lib_schema133.SchemaModel<{
444
+ deals: {
445
+ type: _lssm_lib_schema133.SchemaModel<{
446
+ id: {
447
+ type: _lssm_lib_schema133.FieldType<string, string>;
448
+ isOptional: false;
449
+ };
450
+ name: {
451
+ type: _lssm_lib_schema133.FieldType<string, string>;
452
+ isOptional: false;
453
+ };
454
+ value: {
455
+ type: _lssm_lib_schema133.FieldType<number, number>;
456
+ isOptional: false;
457
+ };
458
+ currency: {
459
+ type: _lssm_lib_schema133.FieldType<string, string>;
460
+ isOptional: false;
461
+ };
462
+ pipelineId: {
463
+ type: _lssm_lib_schema133.FieldType<string, string>;
464
+ isOptional: false;
465
+ };
466
+ stageId: {
467
+ type: _lssm_lib_schema133.FieldType<string, string>;
468
+ isOptional: false;
469
+ };
470
+ status: {
471
+ type: _lssm_lib_schema133.EnumType<[string, string, string, string]>;
472
+ isOptional: false;
473
+ };
474
+ contactId: {
475
+ type: _lssm_lib_schema133.FieldType<string, string>;
476
+ isOptional: true;
477
+ };
478
+ companyId: {
479
+ type: _lssm_lib_schema133.FieldType<string, string>;
480
+ isOptional: true;
481
+ };
482
+ ownerId: {
483
+ type: _lssm_lib_schema133.FieldType<string, string>;
484
+ isOptional: false;
485
+ };
486
+ expectedCloseDate: {
487
+ type: _lssm_lib_schema133.FieldType<Date, string>;
488
+ isOptional: true;
489
+ };
490
+ createdAt: {
491
+ type: _lssm_lib_schema133.FieldType<Date, string>;
492
+ isOptional: false;
493
+ };
494
+ updatedAt: {
495
+ type: _lssm_lib_schema133.FieldType<Date, string>;
496
+ isOptional: false;
497
+ };
498
+ }>;
499
+ isArray: true;
500
+ isOptional: false;
501
+ };
502
+ total: {
503
+ type: _lssm_lib_schema133.FieldType<number, number>;
504
+ isOptional: false;
505
+ };
506
+ totalValue: {
507
+ type: _lssm_lib_schema133.FieldType<number, number>;
508
+ isOptional: false;
509
+ };
510
+ }>, undefined>;
511
+ //#endregion
512
+ export { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract };
@@ -0,0 +1,13 @@
1
+ import * as _lssm_lib_schema388 from "@lssm/lib.schema";
2
+
3
+ //#region src/deal/deal.enum.d.ts
4
+ /**
5
+ * Deal status enum.
6
+ */
7
+ declare const DealStatusEnum: _lssm_lib_schema388.EnumType<[string, string, string, string]>;
8
+ /**
9
+ * Deal status filter enum.
10
+ */
11
+ declare const DealStatusFilterEnum: _lssm_lib_schema388.EnumType<[string, string, string, string]>;
12
+ //#endregion
13
+ export { DealStatusEnum, DealStatusFilterEnum };