@lssm/example.crm-pipeline 0.0.0-canary-20251217034842 → 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,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 };