@lssm/example.crm-pipeline 0.0.0-canary-20251206181705 → 0.0.0-canary-20251207013726
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.
- package/.turbo/turbo-build.log +48 -48
- package/CHANGELOG.md +8 -8
- package/dist/contracts/deal.d.ts +199 -199
- package/dist/entities/company.d.ts +28 -28
- package/dist/entities/contact.d.ts +32 -32
- package/dist/entities/deal.d.ts +53 -53
- package/dist/entities/index.d.ts +147 -147
- package/dist/entities/task.d.ts +43 -43
- package/dist/events.d.ts +82 -82
- package/dist/index.d.ts +2 -2
- package/dist/presentations/index.d.ts +2 -2
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/contracts/deal.d.ts
CHANGED
|
@@ -1,257 +1,257 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/deal.d.ts
|
|
5
|
-
declare const DealStatusFilterEnum:
|
|
6
|
-
declare const DealModel:
|
|
5
|
+
declare const DealStatusFilterEnum: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
6
|
+
declare const DealModel: _lssm_lib_schema0.SchemaModel<{
|
|
7
7
|
id: {
|
|
8
|
-
type:
|
|
8
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
9
9
|
isOptional: false;
|
|
10
10
|
};
|
|
11
11
|
name: {
|
|
12
|
-
type:
|
|
12
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
13
13
|
isOptional: false;
|
|
14
14
|
};
|
|
15
15
|
value: {
|
|
16
|
-
type:
|
|
16
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
17
17
|
isOptional: false;
|
|
18
18
|
};
|
|
19
19
|
currency: {
|
|
20
|
-
type:
|
|
20
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
21
21
|
isOptional: false;
|
|
22
22
|
};
|
|
23
23
|
pipelineId: {
|
|
24
|
-
type:
|
|
24
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
25
25
|
isOptional: false;
|
|
26
26
|
};
|
|
27
27
|
stageId: {
|
|
28
|
-
type:
|
|
28
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
29
29
|
isOptional: false;
|
|
30
30
|
};
|
|
31
31
|
status: {
|
|
32
|
-
type:
|
|
32
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
33
33
|
isOptional: false;
|
|
34
34
|
};
|
|
35
35
|
contactId: {
|
|
36
|
-
type:
|
|
36
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
37
37
|
isOptional: true;
|
|
38
38
|
};
|
|
39
39
|
companyId: {
|
|
40
|
-
type:
|
|
40
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
41
41
|
isOptional: true;
|
|
42
42
|
};
|
|
43
43
|
ownerId: {
|
|
44
|
-
type:
|
|
44
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
45
45
|
isOptional: false;
|
|
46
46
|
};
|
|
47
47
|
expectedCloseDate: {
|
|
48
|
-
type:
|
|
48
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
49
49
|
isOptional: true;
|
|
50
50
|
};
|
|
51
51
|
createdAt: {
|
|
52
|
-
type:
|
|
52
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
53
53
|
isOptional: false;
|
|
54
54
|
};
|
|
55
55
|
updatedAt: {
|
|
56
|
-
type:
|
|
56
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
}>;
|
|
60
|
-
declare const CreateDealInputModel:
|
|
60
|
+
declare const CreateDealInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
61
61
|
name: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
value: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
currency: {
|
|
70
|
-
type:
|
|
70
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
71
71
|
isOptional: true;
|
|
72
72
|
};
|
|
73
73
|
pipelineId: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
stageId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
contactId: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
83
83
|
isOptional: true;
|
|
84
84
|
};
|
|
85
85
|
companyId: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
87
87
|
isOptional: true;
|
|
88
88
|
};
|
|
89
89
|
expectedCloseDate: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
91
91
|
isOptional: true;
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
94
|
-
declare const MoveDealInputModel:
|
|
94
|
+
declare const MoveDealInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
95
95
|
dealId: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
stageId: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
position: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
105
105
|
isOptional: true;
|
|
106
106
|
};
|
|
107
107
|
}>;
|
|
108
|
-
declare const DealMovedPayloadModel:
|
|
108
|
+
declare const DealMovedPayloadModel: _lssm_lib_schema0.SchemaModel<{
|
|
109
109
|
dealId: {
|
|
110
|
-
type:
|
|
110
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
111
111
|
isOptional: false;
|
|
112
112
|
};
|
|
113
113
|
fromStage: {
|
|
114
|
-
type:
|
|
114
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
115
115
|
isOptional: false;
|
|
116
116
|
};
|
|
117
117
|
toStage: {
|
|
118
|
-
type:
|
|
118
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
119
119
|
isOptional: false;
|
|
120
120
|
};
|
|
121
121
|
}>;
|
|
122
|
-
declare const WinDealInputModel:
|
|
122
|
+
declare const WinDealInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
123
123
|
dealId: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
125
125
|
isOptional: false;
|
|
126
126
|
};
|
|
127
127
|
wonSource: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
129
129
|
isOptional: true;
|
|
130
130
|
};
|
|
131
131
|
notes: {
|
|
132
|
-
type:
|
|
132
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
133
133
|
isOptional: true;
|
|
134
134
|
};
|
|
135
135
|
}>;
|
|
136
|
-
declare const DealWonPayloadModel:
|
|
136
|
+
declare const DealWonPayloadModel: _lssm_lib_schema0.SchemaModel<{
|
|
137
137
|
dealId: {
|
|
138
|
-
type:
|
|
138
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
139
139
|
isOptional: false;
|
|
140
140
|
};
|
|
141
141
|
value: {
|
|
142
|
-
type:
|
|
142
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
143
143
|
isOptional: false;
|
|
144
144
|
};
|
|
145
145
|
}>;
|
|
146
|
-
declare const LoseDealInputModel:
|
|
146
|
+
declare const LoseDealInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
147
147
|
dealId: {
|
|
148
|
-
type:
|
|
148
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
149
149
|
isOptional: false;
|
|
150
150
|
};
|
|
151
151
|
lostReason: {
|
|
152
|
-
type:
|
|
152
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
notes: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
157
157
|
isOptional: true;
|
|
158
158
|
};
|
|
159
159
|
}>;
|
|
160
|
-
declare const DealLostPayloadModel:
|
|
160
|
+
declare const DealLostPayloadModel: _lssm_lib_schema0.SchemaModel<{
|
|
161
161
|
dealId: {
|
|
162
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
reason: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
}>;
|
|
170
|
-
declare const ListDealsInputModel:
|
|
170
|
+
declare const ListDealsInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
171
171
|
pipelineId: {
|
|
172
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
173
173
|
isOptional: true;
|
|
174
174
|
};
|
|
175
175
|
stageId: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
177
177
|
isOptional: true;
|
|
178
178
|
};
|
|
179
179
|
status: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
181
181
|
isOptional: true;
|
|
182
182
|
};
|
|
183
183
|
ownerId: {
|
|
184
|
-
type:
|
|
184
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
185
185
|
isOptional: true;
|
|
186
186
|
};
|
|
187
187
|
search: {
|
|
188
|
-
type:
|
|
188
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
189
189
|
isOptional: true;
|
|
190
190
|
};
|
|
191
191
|
limit: {
|
|
192
|
-
type:
|
|
192
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
193
193
|
isOptional: true;
|
|
194
194
|
defaultValue: number;
|
|
195
195
|
};
|
|
196
196
|
offset: {
|
|
197
|
-
type:
|
|
197
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
198
198
|
isOptional: true;
|
|
199
199
|
defaultValue: number;
|
|
200
200
|
};
|
|
201
201
|
}>;
|
|
202
|
-
declare const ListDealsOutputModel:
|
|
202
|
+
declare const ListDealsOutputModel: _lssm_lib_schema0.SchemaModel<{
|
|
203
203
|
deals: {
|
|
204
|
-
type:
|
|
204
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
205
205
|
id: {
|
|
206
|
-
type:
|
|
206
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
207
207
|
isOptional: false;
|
|
208
208
|
};
|
|
209
209
|
name: {
|
|
210
|
-
type:
|
|
210
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
213
|
value: {
|
|
214
|
-
type:
|
|
214
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
currency: {
|
|
218
|
-
type:
|
|
218
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
219
219
|
isOptional: false;
|
|
220
220
|
};
|
|
221
221
|
pipelineId: {
|
|
222
|
-
type:
|
|
222
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
223
223
|
isOptional: false;
|
|
224
224
|
};
|
|
225
225
|
stageId: {
|
|
226
|
-
type:
|
|
226
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
227
227
|
isOptional: false;
|
|
228
228
|
};
|
|
229
229
|
status: {
|
|
230
|
-
type:
|
|
230
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
231
231
|
isOptional: false;
|
|
232
232
|
};
|
|
233
233
|
contactId: {
|
|
234
|
-
type:
|
|
234
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
235
235
|
isOptional: true;
|
|
236
236
|
};
|
|
237
237
|
companyId: {
|
|
238
|
-
type:
|
|
238
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
239
239
|
isOptional: true;
|
|
240
240
|
};
|
|
241
241
|
ownerId: {
|
|
242
|
-
type:
|
|
242
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
243
243
|
isOptional: false;
|
|
244
244
|
};
|
|
245
245
|
expectedCloseDate: {
|
|
246
|
-
type:
|
|
246
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
247
247
|
isOptional: true;
|
|
248
248
|
};
|
|
249
249
|
createdAt: {
|
|
250
|
-
type:
|
|
250
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
251
251
|
isOptional: false;
|
|
252
252
|
};
|
|
253
253
|
updatedAt: {
|
|
254
|
-
type:
|
|
254
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
}>;
|
|
@@ -259,158 +259,158 @@ declare const ListDealsOutputModel: _lssm_lib_schema299.SchemaModel<{
|
|
|
259
259
|
isOptional: false;
|
|
260
260
|
};
|
|
261
261
|
total: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
263
263
|
isOptional: false;
|
|
264
264
|
};
|
|
265
265
|
totalValue: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
}>;
|
|
270
270
|
/**
|
|
271
271
|
* Create a new deal.
|
|
272
272
|
*/
|
|
273
|
-
declare const CreateDealContract:
|
|
273
|
+
declare const CreateDealContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
274
274
|
name: {
|
|
275
|
-
type:
|
|
275
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
276
276
|
isOptional: false;
|
|
277
277
|
};
|
|
278
278
|
value: {
|
|
279
|
-
type:
|
|
279
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
280
280
|
isOptional: false;
|
|
281
281
|
};
|
|
282
282
|
currency: {
|
|
283
|
-
type:
|
|
283
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
284
284
|
isOptional: true;
|
|
285
285
|
};
|
|
286
286
|
pipelineId: {
|
|
287
|
-
type:
|
|
287
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
288
288
|
isOptional: false;
|
|
289
289
|
};
|
|
290
290
|
stageId: {
|
|
291
|
-
type:
|
|
291
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
292
292
|
isOptional: false;
|
|
293
293
|
};
|
|
294
294
|
contactId: {
|
|
295
|
-
type:
|
|
295
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
296
296
|
isOptional: true;
|
|
297
297
|
};
|
|
298
298
|
companyId: {
|
|
299
|
-
type:
|
|
299
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
300
300
|
isOptional: true;
|
|
301
301
|
};
|
|
302
302
|
expectedCloseDate: {
|
|
303
|
-
type:
|
|
303
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
304
304
|
isOptional: true;
|
|
305
305
|
};
|
|
306
|
-
}>,
|
|
306
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
307
307
|
id: {
|
|
308
|
-
type:
|
|
308
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
309
309
|
isOptional: false;
|
|
310
310
|
};
|
|
311
311
|
name: {
|
|
312
|
-
type:
|
|
312
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
313
313
|
isOptional: false;
|
|
314
314
|
};
|
|
315
315
|
value: {
|
|
316
|
-
type:
|
|
316
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
317
317
|
isOptional: false;
|
|
318
318
|
};
|
|
319
319
|
currency: {
|
|
320
|
-
type:
|
|
320
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
321
321
|
isOptional: false;
|
|
322
322
|
};
|
|
323
323
|
pipelineId: {
|
|
324
|
-
type:
|
|
324
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
325
325
|
isOptional: false;
|
|
326
326
|
};
|
|
327
327
|
stageId: {
|
|
328
|
-
type:
|
|
328
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
329
329
|
isOptional: false;
|
|
330
330
|
};
|
|
331
331
|
status: {
|
|
332
|
-
type:
|
|
332
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
333
333
|
isOptional: false;
|
|
334
334
|
};
|
|
335
335
|
contactId: {
|
|
336
|
-
type:
|
|
336
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
337
337
|
isOptional: true;
|
|
338
338
|
};
|
|
339
339
|
companyId: {
|
|
340
|
-
type:
|
|
340
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
341
341
|
isOptional: true;
|
|
342
342
|
};
|
|
343
343
|
ownerId: {
|
|
344
|
-
type:
|
|
344
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
345
345
|
isOptional: false;
|
|
346
346
|
};
|
|
347
347
|
expectedCloseDate: {
|
|
348
|
-
type:
|
|
348
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
349
349
|
isOptional: true;
|
|
350
350
|
};
|
|
351
351
|
createdAt: {
|
|
352
|
-
type:
|
|
352
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
353
353
|
isOptional: false;
|
|
354
354
|
};
|
|
355
355
|
updatedAt: {
|
|
356
|
-
type:
|
|
356
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
357
357
|
isOptional: false;
|
|
358
358
|
};
|
|
359
359
|
}>, {
|
|
360
360
|
name: string;
|
|
361
361
|
version: number;
|
|
362
362
|
when: string;
|
|
363
|
-
payload:
|
|
363
|
+
payload: _lssm_lib_schema0.SchemaModel<{
|
|
364
364
|
id: {
|
|
365
|
-
type:
|
|
365
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
366
366
|
isOptional: false;
|
|
367
367
|
};
|
|
368
368
|
name: {
|
|
369
|
-
type:
|
|
369
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
370
370
|
isOptional: false;
|
|
371
371
|
};
|
|
372
372
|
value: {
|
|
373
|
-
type:
|
|
373
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
374
374
|
isOptional: false;
|
|
375
375
|
};
|
|
376
376
|
currency: {
|
|
377
|
-
type:
|
|
377
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
378
378
|
isOptional: false;
|
|
379
379
|
};
|
|
380
380
|
pipelineId: {
|
|
381
|
-
type:
|
|
381
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
382
382
|
isOptional: false;
|
|
383
383
|
};
|
|
384
384
|
stageId: {
|
|
385
|
-
type:
|
|
385
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
386
386
|
isOptional: false;
|
|
387
387
|
};
|
|
388
388
|
status: {
|
|
389
|
-
type:
|
|
389
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
390
390
|
isOptional: false;
|
|
391
391
|
};
|
|
392
392
|
contactId: {
|
|
393
|
-
type:
|
|
393
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
394
394
|
isOptional: true;
|
|
395
395
|
};
|
|
396
396
|
companyId: {
|
|
397
|
-
type:
|
|
397
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
398
398
|
isOptional: true;
|
|
399
399
|
};
|
|
400
400
|
ownerId: {
|
|
401
|
-
type:
|
|
401
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
402
402
|
isOptional: false;
|
|
403
403
|
};
|
|
404
404
|
expectedCloseDate: {
|
|
405
|
-
type:
|
|
405
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
406
406
|
isOptional: true;
|
|
407
407
|
};
|
|
408
408
|
createdAt: {
|
|
409
|
-
type:
|
|
409
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
410
410
|
isOptional: false;
|
|
411
411
|
};
|
|
412
412
|
updatedAt: {
|
|
413
|
-
type:
|
|
413
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
414
414
|
isOptional: false;
|
|
415
415
|
};
|
|
416
416
|
}>;
|
|
@@ -418,87 +418,87 @@ declare const CreateDealContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_s
|
|
|
418
418
|
/**
|
|
419
419
|
* Move deal to a different stage.
|
|
420
420
|
*/
|
|
421
|
-
declare const MoveDealContract:
|
|
421
|
+
declare const MoveDealContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
422
422
|
dealId: {
|
|
423
|
-
type:
|
|
423
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
424
424
|
isOptional: false;
|
|
425
425
|
};
|
|
426
426
|
stageId: {
|
|
427
|
-
type:
|
|
427
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
428
428
|
isOptional: false;
|
|
429
429
|
};
|
|
430
430
|
position: {
|
|
431
|
-
type:
|
|
431
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
432
432
|
isOptional: true;
|
|
433
433
|
};
|
|
434
|
-
}>,
|
|
434
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
435
435
|
id: {
|
|
436
|
-
type:
|
|
436
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
437
437
|
isOptional: false;
|
|
438
438
|
};
|
|
439
439
|
name: {
|
|
440
|
-
type:
|
|
440
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
441
441
|
isOptional: false;
|
|
442
442
|
};
|
|
443
443
|
value: {
|
|
444
|
-
type:
|
|
444
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
445
445
|
isOptional: false;
|
|
446
446
|
};
|
|
447
447
|
currency: {
|
|
448
|
-
type:
|
|
448
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
449
449
|
isOptional: false;
|
|
450
450
|
};
|
|
451
451
|
pipelineId: {
|
|
452
|
-
type:
|
|
452
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
453
453
|
isOptional: false;
|
|
454
454
|
};
|
|
455
455
|
stageId: {
|
|
456
|
-
type:
|
|
456
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
457
457
|
isOptional: false;
|
|
458
458
|
};
|
|
459
459
|
status: {
|
|
460
|
-
type:
|
|
460
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
461
461
|
isOptional: false;
|
|
462
462
|
};
|
|
463
463
|
contactId: {
|
|
464
|
-
type:
|
|
464
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
465
465
|
isOptional: true;
|
|
466
466
|
};
|
|
467
467
|
companyId: {
|
|
468
|
-
type:
|
|
468
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
469
469
|
isOptional: true;
|
|
470
470
|
};
|
|
471
471
|
ownerId: {
|
|
472
|
-
type:
|
|
472
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
473
473
|
isOptional: false;
|
|
474
474
|
};
|
|
475
475
|
expectedCloseDate: {
|
|
476
|
-
type:
|
|
476
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
477
477
|
isOptional: true;
|
|
478
478
|
};
|
|
479
479
|
createdAt: {
|
|
480
|
-
type:
|
|
480
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
481
481
|
isOptional: false;
|
|
482
482
|
};
|
|
483
483
|
updatedAt: {
|
|
484
|
-
type:
|
|
484
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
485
485
|
isOptional: false;
|
|
486
486
|
};
|
|
487
487
|
}>, {
|
|
488
488
|
name: string;
|
|
489
489
|
version: number;
|
|
490
490
|
when: string;
|
|
491
|
-
payload:
|
|
491
|
+
payload: _lssm_lib_schema0.SchemaModel<{
|
|
492
492
|
dealId: {
|
|
493
|
-
type:
|
|
493
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
494
494
|
isOptional: false;
|
|
495
495
|
};
|
|
496
496
|
fromStage: {
|
|
497
|
-
type:
|
|
497
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
498
498
|
isOptional: false;
|
|
499
499
|
};
|
|
500
500
|
toStage: {
|
|
501
|
-
type:
|
|
501
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
502
502
|
isOptional: false;
|
|
503
503
|
};
|
|
504
504
|
}>;
|
|
@@ -506,83 +506,83 @@ declare const MoveDealContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_sch
|
|
|
506
506
|
/**
|
|
507
507
|
* Mark deal as won.
|
|
508
508
|
*/
|
|
509
|
-
declare const WinDealContract:
|
|
509
|
+
declare const WinDealContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
510
510
|
dealId: {
|
|
511
|
-
type:
|
|
511
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
512
512
|
isOptional: false;
|
|
513
513
|
};
|
|
514
514
|
wonSource: {
|
|
515
|
-
type:
|
|
515
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
516
516
|
isOptional: true;
|
|
517
517
|
};
|
|
518
518
|
notes: {
|
|
519
|
-
type:
|
|
519
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
520
520
|
isOptional: true;
|
|
521
521
|
};
|
|
522
|
-
}>,
|
|
522
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
523
523
|
id: {
|
|
524
|
-
type:
|
|
524
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
525
525
|
isOptional: false;
|
|
526
526
|
};
|
|
527
527
|
name: {
|
|
528
|
-
type:
|
|
528
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
529
529
|
isOptional: false;
|
|
530
530
|
};
|
|
531
531
|
value: {
|
|
532
|
-
type:
|
|
532
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
533
533
|
isOptional: false;
|
|
534
534
|
};
|
|
535
535
|
currency: {
|
|
536
|
-
type:
|
|
536
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
537
537
|
isOptional: false;
|
|
538
538
|
};
|
|
539
539
|
pipelineId: {
|
|
540
|
-
type:
|
|
540
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
541
541
|
isOptional: false;
|
|
542
542
|
};
|
|
543
543
|
stageId: {
|
|
544
|
-
type:
|
|
544
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
545
545
|
isOptional: false;
|
|
546
546
|
};
|
|
547
547
|
status: {
|
|
548
|
-
type:
|
|
548
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
549
549
|
isOptional: false;
|
|
550
550
|
};
|
|
551
551
|
contactId: {
|
|
552
|
-
type:
|
|
552
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
553
553
|
isOptional: true;
|
|
554
554
|
};
|
|
555
555
|
companyId: {
|
|
556
|
-
type:
|
|
556
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
557
557
|
isOptional: true;
|
|
558
558
|
};
|
|
559
559
|
ownerId: {
|
|
560
|
-
type:
|
|
560
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
561
561
|
isOptional: false;
|
|
562
562
|
};
|
|
563
563
|
expectedCloseDate: {
|
|
564
|
-
type:
|
|
564
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
565
565
|
isOptional: true;
|
|
566
566
|
};
|
|
567
567
|
createdAt: {
|
|
568
|
-
type:
|
|
568
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
569
569
|
isOptional: false;
|
|
570
570
|
};
|
|
571
571
|
updatedAt: {
|
|
572
|
-
type:
|
|
572
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
573
573
|
isOptional: false;
|
|
574
574
|
};
|
|
575
575
|
}>, {
|
|
576
576
|
name: string;
|
|
577
577
|
version: number;
|
|
578
578
|
when: string;
|
|
579
|
-
payload:
|
|
579
|
+
payload: _lssm_lib_schema0.SchemaModel<{
|
|
580
580
|
dealId: {
|
|
581
|
-
type:
|
|
581
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
582
582
|
isOptional: false;
|
|
583
583
|
};
|
|
584
584
|
value: {
|
|
585
|
-
type:
|
|
585
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
586
586
|
isOptional: false;
|
|
587
587
|
};
|
|
588
588
|
}>;
|
|
@@ -590,83 +590,83 @@ declare const WinDealContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_sche
|
|
|
590
590
|
/**
|
|
591
591
|
* Mark deal as lost.
|
|
592
592
|
*/
|
|
593
|
-
declare const LoseDealContract:
|
|
593
|
+
declare const LoseDealContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
594
594
|
dealId: {
|
|
595
|
-
type:
|
|
595
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
596
596
|
isOptional: false;
|
|
597
597
|
};
|
|
598
598
|
lostReason: {
|
|
599
|
-
type:
|
|
599
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
600
600
|
isOptional: false;
|
|
601
601
|
};
|
|
602
602
|
notes: {
|
|
603
|
-
type:
|
|
603
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
604
604
|
isOptional: true;
|
|
605
605
|
};
|
|
606
|
-
}>,
|
|
606
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
607
607
|
id: {
|
|
608
|
-
type:
|
|
608
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
609
609
|
isOptional: false;
|
|
610
610
|
};
|
|
611
611
|
name: {
|
|
612
|
-
type:
|
|
612
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
613
613
|
isOptional: false;
|
|
614
614
|
};
|
|
615
615
|
value: {
|
|
616
|
-
type:
|
|
616
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
617
617
|
isOptional: false;
|
|
618
618
|
};
|
|
619
619
|
currency: {
|
|
620
|
-
type:
|
|
620
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
621
621
|
isOptional: false;
|
|
622
622
|
};
|
|
623
623
|
pipelineId: {
|
|
624
|
-
type:
|
|
624
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
625
625
|
isOptional: false;
|
|
626
626
|
};
|
|
627
627
|
stageId: {
|
|
628
|
-
type:
|
|
628
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
629
629
|
isOptional: false;
|
|
630
630
|
};
|
|
631
631
|
status: {
|
|
632
|
-
type:
|
|
632
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
633
633
|
isOptional: false;
|
|
634
634
|
};
|
|
635
635
|
contactId: {
|
|
636
|
-
type:
|
|
636
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
637
637
|
isOptional: true;
|
|
638
638
|
};
|
|
639
639
|
companyId: {
|
|
640
|
-
type:
|
|
640
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
641
641
|
isOptional: true;
|
|
642
642
|
};
|
|
643
643
|
ownerId: {
|
|
644
|
-
type:
|
|
644
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
645
645
|
isOptional: false;
|
|
646
646
|
};
|
|
647
647
|
expectedCloseDate: {
|
|
648
|
-
type:
|
|
648
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
649
649
|
isOptional: true;
|
|
650
650
|
};
|
|
651
651
|
createdAt: {
|
|
652
|
-
type:
|
|
652
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
653
653
|
isOptional: false;
|
|
654
654
|
};
|
|
655
655
|
updatedAt: {
|
|
656
|
-
type:
|
|
656
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
657
657
|
isOptional: false;
|
|
658
658
|
};
|
|
659
659
|
}>, {
|
|
660
660
|
name: string;
|
|
661
661
|
version: number;
|
|
662
662
|
when: string;
|
|
663
|
-
payload:
|
|
663
|
+
payload: _lssm_lib_schema0.SchemaModel<{
|
|
664
664
|
dealId: {
|
|
665
|
-
type:
|
|
665
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
666
666
|
isOptional: false;
|
|
667
667
|
};
|
|
668
668
|
reason: {
|
|
669
|
-
type:
|
|
669
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
670
670
|
isOptional: false;
|
|
671
671
|
};
|
|
672
672
|
}>;
|
|
@@ -674,90 +674,90 @@ declare const LoseDealContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_sch
|
|
|
674
674
|
/**
|
|
675
675
|
* List deals in pipeline.
|
|
676
676
|
*/
|
|
677
|
-
declare const ListDealsContract:
|
|
677
|
+
declare const ListDealsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
678
678
|
pipelineId: {
|
|
679
|
-
type:
|
|
679
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
680
680
|
isOptional: true;
|
|
681
681
|
};
|
|
682
682
|
stageId: {
|
|
683
|
-
type:
|
|
683
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
684
684
|
isOptional: true;
|
|
685
685
|
};
|
|
686
686
|
status: {
|
|
687
|
-
type:
|
|
687
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
688
688
|
isOptional: true;
|
|
689
689
|
};
|
|
690
690
|
ownerId: {
|
|
691
|
-
type:
|
|
691
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
692
692
|
isOptional: true;
|
|
693
693
|
};
|
|
694
694
|
search: {
|
|
695
|
-
type:
|
|
695
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
696
696
|
isOptional: true;
|
|
697
697
|
};
|
|
698
698
|
limit: {
|
|
699
|
-
type:
|
|
699
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
700
700
|
isOptional: true;
|
|
701
701
|
defaultValue: number;
|
|
702
702
|
};
|
|
703
703
|
offset: {
|
|
704
|
-
type:
|
|
704
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
705
705
|
isOptional: true;
|
|
706
706
|
defaultValue: number;
|
|
707
707
|
};
|
|
708
|
-
}>,
|
|
708
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
709
709
|
deals: {
|
|
710
|
-
type:
|
|
710
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
711
711
|
id: {
|
|
712
|
-
type:
|
|
712
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
713
713
|
isOptional: false;
|
|
714
714
|
};
|
|
715
715
|
name: {
|
|
716
|
-
type:
|
|
716
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
717
717
|
isOptional: false;
|
|
718
718
|
};
|
|
719
719
|
value: {
|
|
720
|
-
type:
|
|
720
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
721
721
|
isOptional: false;
|
|
722
722
|
};
|
|
723
723
|
currency: {
|
|
724
|
-
type:
|
|
724
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
725
725
|
isOptional: false;
|
|
726
726
|
};
|
|
727
727
|
pipelineId: {
|
|
728
|
-
type:
|
|
728
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
729
729
|
isOptional: false;
|
|
730
730
|
};
|
|
731
731
|
stageId: {
|
|
732
|
-
type:
|
|
732
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
733
733
|
isOptional: false;
|
|
734
734
|
};
|
|
735
735
|
status: {
|
|
736
|
-
type:
|
|
736
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
737
737
|
isOptional: false;
|
|
738
738
|
};
|
|
739
739
|
contactId: {
|
|
740
|
-
type:
|
|
740
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
741
741
|
isOptional: true;
|
|
742
742
|
};
|
|
743
743
|
companyId: {
|
|
744
|
-
type:
|
|
744
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
745
745
|
isOptional: true;
|
|
746
746
|
};
|
|
747
747
|
ownerId: {
|
|
748
|
-
type:
|
|
748
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
749
749
|
isOptional: false;
|
|
750
750
|
};
|
|
751
751
|
expectedCloseDate: {
|
|
752
|
-
type:
|
|
752
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
753
753
|
isOptional: true;
|
|
754
754
|
};
|
|
755
755
|
createdAt: {
|
|
756
|
-
type:
|
|
756
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
757
757
|
isOptional: false;
|
|
758
758
|
};
|
|
759
759
|
updatedAt: {
|
|
760
|
-
type:
|
|
760
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
761
761
|
isOptional: false;
|
|
762
762
|
};
|
|
763
763
|
}>;
|
|
@@ -765,11 +765,11 @@ declare const ListDealsContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_sc
|
|
|
765
765
|
isOptional: false;
|
|
766
766
|
};
|
|
767
767
|
total: {
|
|
768
|
-
type:
|
|
768
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
769
769
|
isOptional: false;
|
|
770
770
|
};
|
|
771
771
|
totalValue: {
|
|
772
|
-
type:
|
|
772
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
773
773
|
isOptional: false;
|
|
774
774
|
};
|
|
775
775
|
}>, undefined>;
|