@lssm/example.crm-pipeline 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060804
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$colon$bundle.log +61 -0
- package/CHANGELOG.md +8 -42
- package/dist/contracts/index.d.ts +5 -0
- package/dist/crm-pipeline.feature.d.ts +11 -0
- package/dist/deal/deal.contracts.d.ts +512 -0
- package/dist/deal/deal.enum.d.ts +13 -0
- package/dist/deal/deal.schema.d.ts +299 -0
- package/dist/deal/index.d.ts +4 -0
- package/dist/docs/crm-pipeline.docblock.d.ts +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/entities/company.entity.d.ts +39 -0
- package/dist/entities/contact.entity.d.ts +43 -0
- package/dist/entities/deal.entity.d.ts +72 -0
- package/dist/entities/index.d.ts +14 -0
- package/dist/entities/task.entity.d.ts +64 -0
- package/dist/events/contact.event.d.ts +28 -0
- package/dist/events/deal.event.d.ts +110 -0
- package/dist/events/index.d.ts +4 -0
- package/dist/events/task.event.d.ts +28 -0
- package/dist/example.d.ts +36 -0
- package/dist/handlers/deal.handlers.d.ts +93 -0
- package/dist/handlers/index.d.ts +3 -0
- package/dist/handlers/mock-data.d.ts +48 -0
- package/dist/index.d.ts +33 -0
- package/dist/presentations/dashboard.presentation.d.ts +14 -0
- package/dist/presentations/index.d.ts +3 -0
- package/dist/presentations/pipeline.presentation.d.ts +22 -0
- package/package.json +35 -35
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import * as _lssm_lib_schema87 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/deal/deal.schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* A deal in the CRM pipeline.
|
|
6
|
+
*/
|
|
7
|
+
declare const DealModel: _lssm_lib_schema87.SchemaModel<{
|
|
8
|
+
id: {
|
|
9
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
name: {
|
|
13
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
14
|
+
isOptional: false;
|
|
15
|
+
};
|
|
16
|
+
value: {
|
|
17
|
+
type: _lssm_lib_schema87.FieldType<number, number>;
|
|
18
|
+
isOptional: false;
|
|
19
|
+
};
|
|
20
|
+
currency: {
|
|
21
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
22
|
+
isOptional: false;
|
|
23
|
+
};
|
|
24
|
+
pipelineId: {
|
|
25
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
stageId: {
|
|
29
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
status: {
|
|
33
|
+
type: _lssm_lib_schema87.EnumType<[string, string, string, string]>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
contactId: {
|
|
37
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
38
|
+
isOptional: true;
|
|
39
|
+
};
|
|
40
|
+
companyId: {
|
|
41
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
42
|
+
isOptional: true;
|
|
43
|
+
};
|
|
44
|
+
ownerId: {
|
|
45
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
expectedCloseDate: {
|
|
49
|
+
type: _lssm_lib_schema87.FieldType<Date, string>;
|
|
50
|
+
isOptional: true;
|
|
51
|
+
};
|
|
52
|
+
createdAt: {
|
|
53
|
+
type: _lssm_lib_schema87.FieldType<Date, string>;
|
|
54
|
+
isOptional: false;
|
|
55
|
+
};
|
|
56
|
+
updatedAt: {
|
|
57
|
+
type: _lssm_lib_schema87.FieldType<Date, string>;
|
|
58
|
+
isOptional: false;
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
/**
|
|
62
|
+
* Input for creating a deal.
|
|
63
|
+
*/
|
|
64
|
+
declare const CreateDealInputModel: _lssm_lib_schema87.SchemaModel<{
|
|
65
|
+
name: {
|
|
66
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
67
|
+
isOptional: false;
|
|
68
|
+
};
|
|
69
|
+
value: {
|
|
70
|
+
type: _lssm_lib_schema87.FieldType<number, number>;
|
|
71
|
+
isOptional: false;
|
|
72
|
+
};
|
|
73
|
+
currency: {
|
|
74
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
75
|
+
isOptional: true;
|
|
76
|
+
};
|
|
77
|
+
pipelineId: {
|
|
78
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
79
|
+
isOptional: false;
|
|
80
|
+
};
|
|
81
|
+
stageId: {
|
|
82
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
83
|
+
isOptional: false;
|
|
84
|
+
};
|
|
85
|
+
contactId: {
|
|
86
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
87
|
+
isOptional: true;
|
|
88
|
+
};
|
|
89
|
+
companyId: {
|
|
90
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
91
|
+
isOptional: true;
|
|
92
|
+
};
|
|
93
|
+
expectedCloseDate: {
|
|
94
|
+
type: _lssm_lib_schema87.FieldType<Date, string>;
|
|
95
|
+
isOptional: true;
|
|
96
|
+
};
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* Input for moving a deal to another stage.
|
|
100
|
+
*/
|
|
101
|
+
declare const MoveDealInputModel: _lssm_lib_schema87.SchemaModel<{
|
|
102
|
+
dealId: {
|
|
103
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
104
|
+
isOptional: false;
|
|
105
|
+
};
|
|
106
|
+
stageId: {
|
|
107
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
108
|
+
isOptional: false;
|
|
109
|
+
};
|
|
110
|
+
position: {
|
|
111
|
+
type: _lssm_lib_schema87.FieldType<number, number>;
|
|
112
|
+
isOptional: true;
|
|
113
|
+
};
|
|
114
|
+
}>;
|
|
115
|
+
/**
|
|
116
|
+
* Payload for deal moved event.
|
|
117
|
+
*/
|
|
118
|
+
declare const DealMovedPayloadModel: _lssm_lib_schema87.SchemaModel<{
|
|
119
|
+
dealId: {
|
|
120
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
121
|
+
isOptional: false;
|
|
122
|
+
};
|
|
123
|
+
fromStage: {
|
|
124
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
125
|
+
isOptional: false;
|
|
126
|
+
};
|
|
127
|
+
toStage: {
|
|
128
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
129
|
+
isOptional: false;
|
|
130
|
+
};
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Input for marking a deal as won.
|
|
134
|
+
*/
|
|
135
|
+
declare const WinDealInputModel: _lssm_lib_schema87.SchemaModel<{
|
|
136
|
+
dealId: {
|
|
137
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
138
|
+
isOptional: false;
|
|
139
|
+
};
|
|
140
|
+
wonSource: {
|
|
141
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
142
|
+
isOptional: true;
|
|
143
|
+
};
|
|
144
|
+
notes: {
|
|
145
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
146
|
+
isOptional: true;
|
|
147
|
+
};
|
|
148
|
+
}>;
|
|
149
|
+
/**
|
|
150
|
+
* Payload for deal won event.
|
|
151
|
+
*/
|
|
152
|
+
declare const DealWonPayloadModel: _lssm_lib_schema87.SchemaModel<{
|
|
153
|
+
dealId: {
|
|
154
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
155
|
+
isOptional: false;
|
|
156
|
+
};
|
|
157
|
+
value: {
|
|
158
|
+
type: _lssm_lib_schema87.FieldType<number, number>;
|
|
159
|
+
isOptional: false;
|
|
160
|
+
};
|
|
161
|
+
}>;
|
|
162
|
+
/**
|
|
163
|
+
* Input for marking a deal as lost.
|
|
164
|
+
*/
|
|
165
|
+
declare const LoseDealInputModel: _lssm_lib_schema87.SchemaModel<{
|
|
166
|
+
dealId: {
|
|
167
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
168
|
+
isOptional: false;
|
|
169
|
+
};
|
|
170
|
+
lostReason: {
|
|
171
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
172
|
+
isOptional: false;
|
|
173
|
+
};
|
|
174
|
+
notes: {
|
|
175
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
176
|
+
isOptional: true;
|
|
177
|
+
};
|
|
178
|
+
}>;
|
|
179
|
+
/**
|
|
180
|
+
* Payload for deal lost event.
|
|
181
|
+
*/
|
|
182
|
+
declare const DealLostPayloadModel: _lssm_lib_schema87.SchemaModel<{
|
|
183
|
+
dealId: {
|
|
184
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
185
|
+
isOptional: false;
|
|
186
|
+
};
|
|
187
|
+
reason: {
|
|
188
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
189
|
+
isOptional: false;
|
|
190
|
+
};
|
|
191
|
+
}>;
|
|
192
|
+
/**
|
|
193
|
+
* Input for listing deals.
|
|
194
|
+
*/
|
|
195
|
+
declare const ListDealsInputModel: _lssm_lib_schema87.SchemaModel<{
|
|
196
|
+
pipelineId: {
|
|
197
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
198
|
+
isOptional: true;
|
|
199
|
+
};
|
|
200
|
+
stageId: {
|
|
201
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
202
|
+
isOptional: true;
|
|
203
|
+
};
|
|
204
|
+
status: {
|
|
205
|
+
type: _lssm_lib_schema87.EnumType<[string, string, string, string]>;
|
|
206
|
+
isOptional: true;
|
|
207
|
+
};
|
|
208
|
+
ownerId: {
|
|
209
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
210
|
+
isOptional: true;
|
|
211
|
+
};
|
|
212
|
+
search: {
|
|
213
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
214
|
+
isOptional: true;
|
|
215
|
+
};
|
|
216
|
+
limit: {
|
|
217
|
+
type: _lssm_lib_schema87.FieldType<number, number>;
|
|
218
|
+
isOptional: true;
|
|
219
|
+
defaultValue: number;
|
|
220
|
+
};
|
|
221
|
+
offset: {
|
|
222
|
+
type: _lssm_lib_schema87.FieldType<number, number>;
|
|
223
|
+
isOptional: true;
|
|
224
|
+
defaultValue: number;
|
|
225
|
+
};
|
|
226
|
+
}>;
|
|
227
|
+
/**
|
|
228
|
+
* Output for listing deals.
|
|
229
|
+
*/
|
|
230
|
+
declare const ListDealsOutputModel: _lssm_lib_schema87.SchemaModel<{
|
|
231
|
+
deals: {
|
|
232
|
+
type: _lssm_lib_schema87.SchemaModel<{
|
|
233
|
+
id: {
|
|
234
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
235
|
+
isOptional: false;
|
|
236
|
+
};
|
|
237
|
+
name: {
|
|
238
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
239
|
+
isOptional: false;
|
|
240
|
+
};
|
|
241
|
+
value: {
|
|
242
|
+
type: _lssm_lib_schema87.FieldType<number, number>;
|
|
243
|
+
isOptional: false;
|
|
244
|
+
};
|
|
245
|
+
currency: {
|
|
246
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
247
|
+
isOptional: false;
|
|
248
|
+
};
|
|
249
|
+
pipelineId: {
|
|
250
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
251
|
+
isOptional: false;
|
|
252
|
+
};
|
|
253
|
+
stageId: {
|
|
254
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
255
|
+
isOptional: false;
|
|
256
|
+
};
|
|
257
|
+
status: {
|
|
258
|
+
type: _lssm_lib_schema87.EnumType<[string, string, string, string]>;
|
|
259
|
+
isOptional: false;
|
|
260
|
+
};
|
|
261
|
+
contactId: {
|
|
262
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
263
|
+
isOptional: true;
|
|
264
|
+
};
|
|
265
|
+
companyId: {
|
|
266
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
267
|
+
isOptional: true;
|
|
268
|
+
};
|
|
269
|
+
ownerId: {
|
|
270
|
+
type: _lssm_lib_schema87.FieldType<string, string>;
|
|
271
|
+
isOptional: false;
|
|
272
|
+
};
|
|
273
|
+
expectedCloseDate: {
|
|
274
|
+
type: _lssm_lib_schema87.FieldType<Date, string>;
|
|
275
|
+
isOptional: true;
|
|
276
|
+
};
|
|
277
|
+
createdAt: {
|
|
278
|
+
type: _lssm_lib_schema87.FieldType<Date, string>;
|
|
279
|
+
isOptional: false;
|
|
280
|
+
};
|
|
281
|
+
updatedAt: {
|
|
282
|
+
type: _lssm_lib_schema87.FieldType<Date, string>;
|
|
283
|
+
isOptional: false;
|
|
284
|
+
};
|
|
285
|
+
}>;
|
|
286
|
+
isArray: true;
|
|
287
|
+
isOptional: false;
|
|
288
|
+
};
|
|
289
|
+
total: {
|
|
290
|
+
type: _lssm_lib_schema87.FieldType<number, number>;
|
|
291
|
+
isOptional: false;
|
|
292
|
+
};
|
|
293
|
+
totalValue: {
|
|
294
|
+
type: _lssm_lib_schema87.FieldType<number, number>;
|
|
295
|
+
isOptional: false;
|
|
296
|
+
};
|
|
297
|
+
}>;
|
|
298
|
+
//#endregion
|
|
299
|
+
export { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DealStatusEnum, DealStatusFilterEnum } from "./deal.enum.js";
|
|
2
|
+
import { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel } from "./deal.schema.js";
|
|
3
|
+
import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "./deal.contracts.js";
|
|
4
|
+
export { CreateDealContract, CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealStatusEnum, DealStatusFilterEnum, DealWonPayloadModel, ListDealsContract, ListDealsInputModel, ListDealsOutputModel, LoseDealContract, LoseDealInputModel, MoveDealContract, MoveDealInputModel, WinDealContract, WinDealInputModel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as _lssm_lib_schema58 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/company.entity.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Company size enum.
|
|
6
|
+
*/
|
|
7
|
+
declare const CompanySizeEnum: _lssm_lib_schema58.EntityEnumDef;
|
|
8
|
+
/**
|
|
9
|
+
* Company entity - organization/account.
|
|
10
|
+
*/
|
|
11
|
+
declare const CompanyEntity: _lssm_lib_schema58.EntitySpec<{
|
|
12
|
+
id: _lssm_lib_schema58.EntityScalarField;
|
|
13
|
+
name: _lssm_lib_schema58.EntityScalarField;
|
|
14
|
+
domain: _lssm_lib_schema58.EntityScalarField;
|
|
15
|
+
website: _lssm_lib_schema58.EntityScalarField;
|
|
16
|
+
industry: _lssm_lib_schema58.EntityScalarField;
|
|
17
|
+
size: _lssm_lib_schema58.EntityEnumField;
|
|
18
|
+
employeeCount: _lssm_lib_schema58.EntityScalarField;
|
|
19
|
+
annualRevenue: _lssm_lib_schema58.EntityScalarField;
|
|
20
|
+
organizationId: _lssm_lib_schema58.EntityScalarField;
|
|
21
|
+
ownerId: _lssm_lib_schema58.EntityScalarField;
|
|
22
|
+
phone: _lssm_lib_schema58.EntityScalarField;
|
|
23
|
+
email: _lssm_lib_schema58.EntityScalarField;
|
|
24
|
+
address: _lssm_lib_schema58.EntityScalarField;
|
|
25
|
+
city: _lssm_lib_schema58.EntityScalarField;
|
|
26
|
+
state: _lssm_lib_schema58.EntityScalarField;
|
|
27
|
+
country: _lssm_lib_schema58.EntityScalarField;
|
|
28
|
+
postalCode: _lssm_lib_schema58.EntityScalarField;
|
|
29
|
+
linkedInUrl: _lssm_lib_schema58.EntityScalarField;
|
|
30
|
+
description: _lssm_lib_schema58.EntityScalarField;
|
|
31
|
+
tags: _lssm_lib_schema58.EntityScalarField;
|
|
32
|
+
customFields: _lssm_lib_schema58.EntityScalarField;
|
|
33
|
+
createdAt: _lssm_lib_schema58.EntityScalarField;
|
|
34
|
+
updatedAt: _lssm_lib_schema58.EntityScalarField;
|
|
35
|
+
contacts: _lssm_lib_schema58.EntityRelationField;
|
|
36
|
+
deals: _lssm_lib_schema58.EntityRelationField;
|
|
37
|
+
}>;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { CompanyEntity, CompanySizeEnum };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as _lssm_lib_schema27 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/contact.entity.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Contact status enum.
|
|
6
|
+
*/
|
|
7
|
+
declare const ContactStatusEnum: _lssm_lib_schema27.EntityEnumDef;
|
|
8
|
+
/**
|
|
9
|
+
* Contact entity - individual person.
|
|
10
|
+
*/
|
|
11
|
+
declare const ContactEntity: _lssm_lib_schema27.EntitySpec<{
|
|
12
|
+
id: _lssm_lib_schema27.EntityScalarField;
|
|
13
|
+
firstName: _lssm_lib_schema27.EntityScalarField;
|
|
14
|
+
lastName: _lssm_lib_schema27.EntityScalarField;
|
|
15
|
+
email: _lssm_lib_schema27.EntityScalarField;
|
|
16
|
+
phone: _lssm_lib_schema27.EntityScalarField;
|
|
17
|
+
companyId: _lssm_lib_schema27.EntityScalarField;
|
|
18
|
+
jobTitle: _lssm_lib_schema27.EntityScalarField;
|
|
19
|
+
status: _lssm_lib_schema27.EntityEnumField;
|
|
20
|
+
organizationId: _lssm_lib_schema27.EntityScalarField;
|
|
21
|
+
ownerId: _lssm_lib_schema27.EntityScalarField;
|
|
22
|
+
source: _lssm_lib_schema27.EntityScalarField;
|
|
23
|
+
linkedInUrl: _lssm_lib_schema27.EntityScalarField;
|
|
24
|
+
twitterHandle: _lssm_lib_schema27.EntityScalarField;
|
|
25
|
+
address: _lssm_lib_schema27.EntityScalarField;
|
|
26
|
+
city: _lssm_lib_schema27.EntityScalarField;
|
|
27
|
+
state: _lssm_lib_schema27.EntityScalarField;
|
|
28
|
+
country: _lssm_lib_schema27.EntityScalarField;
|
|
29
|
+
postalCode: _lssm_lib_schema27.EntityScalarField;
|
|
30
|
+
notes: _lssm_lib_schema27.EntityScalarField;
|
|
31
|
+
tags: _lssm_lib_schema27.EntityScalarField;
|
|
32
|
+
customFields: _lssm_lib_schema27.EntityScalarField;
|
|
33
|
+
lastContactedAt: _lssm_lib_schema27.EntityScalarField;
|
|
34
|
+
nextFollowUpAt: _lssm_lib_schema27.EntityScalarField;
|
|
35
|
+
createdAt: _lssm_lib_schema27.EntityScalarField;
|
|
36
|
+
updatedAt: _lssm_lib_schema27.EntityScalarField;
|
|
37
|
+
company: _lssm_lib_schema27.EntityRelationField;
|
|
38
|
+
deals: _lssm_lib_schema27.EntityRelationField;
|
|
39
|
+
tasks: _lssm_lib_schema27.EntityRelationField;
|
|
40
|
+
activities: _lssm_lib_schema27.EntityRelationField;
|
|
41
|
+
}>;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ContactEntity, ContactStatusEnum };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as _lssm_lib_schema206 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/deal.entity.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Deal status enum.
|
|
6
|
+
*/
|
|
7
|
+
declare const DealStatusEnum: _lssm_lib_schema206.EntityEnumDef;
|
|
8
|
+
/**
|
|
9
|
+
* Pipeline entity - sales pipeline definition.
|
|
10
|
+
*/
|
|
11
|
+
declare const PipelineEntity: _lssm_lib_schema206.EntitySpec<{
|
|
12
|
+
id: _lssm_lib_schema206.EntityScalarField;
|
|
13
|
+
name: _lssm_lib_schema206.EntityScalarField;
|
|
14
|
+
description: _lssm_lib_schema206.EntityScalarField;
|
|
15
|
+
organizationId: _lssm_lib_schema206.EntityScalarField;
|
|
16
|
+
isDefault: _lssm_lib_schema206.EntityScalarField;
|
|
17
|
+
createdAt: _lssm_lib_schema206.EntityScalarField;
|
|
18
|
+
updatedAt: _lssm_lib_schema206.EntityScalarField;
|
|
19
|
+
stages: _lssm_lib_schema206.EntityRelationField;
|
|
20
|
+
deals: _lssm_lib_schema206.EntityRelationField;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Stage entity - pipeline stage.
|
|
24
|
+
*/
|
|
25
|
+
declare const StageEntity: _lssm_lib_schema206.EntitySpec<{
|
|
26
|
+
id: _lssm_lib_schema206.EntityScalarField;
|
|
27
|
+
name: _lssm_lib_schema206.EntityScalarField;
|
|
28
|
+
pipelineId: _lssm_lib_schema206.EntityScalarField;
|
|
29
|
+
position: _lssm_lib_schema206.EntityScalarField;
|
|
30
|
+
probability: _lssm_lib_schema206.EntityScalarField;
|
|
31
|
+
isWonStage: _lssm_lib_schema206.EntityScalarField;
|
|
32
|
+
isLostStage: _lssm_lib_schema206.EntityScalarField;
|
|
33
|
+
color: _lssm_lib_schema206.EntityScalarField;
|
|
34
|
+
createdAt: _lssm_lib_schema206.EntityScalarField;
|
|
35
|
+
updatedAt: _lssm_lib_schema206.EntityScalarField;
|
|
36
|
+
pipeline: _lssm_lib_schema206.EntityRelationField;
|
|
37
|
+
deals: _lssm_lib_schema206.EntityRelationField;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Deal entity - sales opportunity.
|
|
41
|
+
*/
|
|
42
|
+
declare const DealEntity: _lssm_lib_schema206.EntitySpec<{
|
|
43
|
+
id: _lssm_lib_schema206.EntityScalarField;
|
|
44
|
+
name: _lssm_lib_schema206.EntityScalarField;
|
|
45
|
+
value: _lssm_lib_schema206.EntityScalarField;
|
|
46
|
+
currency: _lssm_lib_schema206.EntityScalarField;
|
|
47
|
+
pipelineId: _lssm_lib_schema206.EntityScalarField;
|
|
48
|
+
stageId: _lssm_lib_schema206.EntityScalarField;
|
|
49
|
+
status: _lssm_lib_schema206.EntityEnumField;
|
|
50
|
+
contactId: _lssm_lib_schema206.EntityScalarField;
|
|
51
|
+
companyId: _lssm_lib_schema206.EntityScalarField;
|
|
52
|
+
organizationId: _lssm_lib_schema206.EntityScalarField;
|
|
53
|
+
ownerId: _lssm_lib_schema206.EntityScalarField;
|
|
54
|
+
expectedCloseDate: _lssm_lib_schema206.EntityScalarField;
|
|
55
|
+
closedAt: _lssm_lib_schema206.EntityScalarField;
|
|
56
|
+
lostReason: _lssm_lib_schema206.EntityScalarField;
|
|
57
|
+
wonSource: _lssm_lib_schema206.EntityScalarField;
|
|
58
|
+
notes: _lssm_lib_schema206.EntityScalarField;
|
|
59
|
+
tags: _lssm_lib_schema206.EntityScalarField;
|
|
60
|
+
customFields: _lssm_lib_schema206.EntityScalarField;
|
|
61
|
+
stagePosition: _lssm_lib_schema206.EntityScalarField;
|
|
62
|
+
createdAt: _lssm_lib_schema206.EntityScalarField;
|
|
63
|
+
updatedAt: _lssm_lib_schema206.EntityScalarField;
|
|
64
|
+
pipeline: _lssm_lib_schema206.EntityRelationField;
|
|
65
|
+
stage: _lssm_lib_schema206.EntityRelationField;
|
|
66
|
+
contact: _lssm_lib_schema206.EntityRelationField;
|
|
67
|
+
company: _lssm_lib_schema206.EntityRelationField;
|
|
68
|
+
tasks: _lssm_lib_schema206.EntityRelationField;
|
|
69
|
+
activities: _lssm_lib_schema206.EntityRelationField;
|
|
70
|
+
}>;
|
|
71
|
+
//#endregion
|
|
72
|
+
export { DealEntity, DealStatusEnum, PipelineEntity, StageEntity };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CompanyEntity, CompanySizeEnum } from "./company.entity.js";
|
|
2
|
+
import { ContactEntity, ContactStatusEnum } from "./contact.entity.js";
|
|
3
|
+
import { DealEntity, DealStatusEnum, PipelineEntity, StageEntity } from "./deal.entity.js";
|
|
4
|
+
import { ActivityEntity, TaskEntity, TaskPriorityEnum, TaskStatusEnum, TaskTypeEnum } from "./task.entity.js";
|
|
5
|
+
import { ModuleSchemaContribution } from "@lssm/lib.schema";
|
|
6
|
+
|
|
7
|
+
//#region src/entities/index.d.ts
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* CRM Pipeline schema contribution.
|
|
11
|
+
*/
|
|
12
|
+
declare const crmPipelineSchemaContribution: ModuleSchemaContribution;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ActivityEntity, CompanyEntity, CompanySizeEnum, ContactEntity, ContactStatusEnum, DealEntity, DealStatusEnum, PipelineEntity, StageEntity, TaskEntity, TaskPriorityEnum, TaskStatusEnum, TaskTypeEnum, crmPipelineSchemaContribution };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as _lssm_lib_schema163 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/task.entity.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Task type enum.
|
|
6
|
+
*/
|
|
7
|
+
declare const TaskTypeEnum: _lssm_lib_schema163.EntityEnumDef;
|
|
8
|
+
/**
|
|
9
|
+
* Task priority enum.
|
|
10
|
+
*/
|
|
11
|
+
declare const TaskPriorityEnum: _lssm_lib_schema163.EntityEnumDef;
|
|
12
|
+
/**
|
|
13
|
+
* Task status enum.
|
|
14
|
+
*/
|
|
15
|
+
declare const TaskStatusEnum: _lssm_lib_schema163.EntityEnumDef;
|
|
16
|
+
/**
|
|
17
|
+
* Task entity - follow-up activities.
|
|
18
|
+
*/
|
|
19
|
+
declare const TaskEntity: _lssm_lib_schema163.EntitySpec<{
|
|
20
|
+
id: _lssm_lib_schema163.EntityScalarField;
|
|
21
|
+
title: _lssm_lib_schema163.EntityScalarField;
|
|
22
|
+
description: _lssm_lib_schema163.EntityScalarField;
|
|
23
|
+
type: _lssm_lib_schema163.EntityEnumField;
|
|
24
|
+
priority: _lssm_lib_schema163.EntityEnumField;
|
|
25
|
+
status: _lssm_lib_schema163.EntityEnumField;
|
|
26
|
+
dueDate: _lssm_lib_schema163.EntityScalarField;
|
|
27
|
+
reminderAt: _lssm_lib_schema163.EntityScalarField;
|
|
28
|
+
contactId: _lssm_lib_schema163.EntityScalarField;
|
|
29
|
+
dealId: _lssm_lib_schema163.EntityScalarField;
|
|
30
|
+
companyId: _lssm_lib_schema163.EntityScalarField;
|
|
31
|
+
organizationId: _lssm_lib_schema163.EntityScalarField;
|
|
32
|
+
assignedTo: _lssm_lib_schema163.EntityScalarField;
|
|
33
|
+
createdBy: _lssm_lib_schema163.EntityScalarField;
|
|
34
|
+
completedAt: _lssm_lib_schema163.EntityScalarField;
|
|
35
|
+
completedBy: _lssm_lib_schema163.EntityScalarField;
|
|
36
|
+
createdAt: _lssm_lib_schema163.EntityScalarField;
|
|
37
|
+
updatedAt: _lssm_lib_schema163.EntityScalarField;
|
|
38
|
+
contact: _lssm_lib_schema163.EntityRelationField;
|
|
39
|
+
deal: _lssm_lib_schema163.EntityRelationField;
|
|
40
|
+
company: _lssm_lib_schema163.EntityRelationField;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* Activity entity - interaction history.
|
|
44
|
+
*/
|
|
45
|
+
declare const ActivityEntity: _lssm_lib_schema163.EntitySpec<{
|
|
46
|
+
id: _lssm_lib_schema163.EntityScalarField;
|
|
47
|
+
type: _lssm_lib_schema163.EntityEnumField;
|
|
48
|
+
subject: _lssm_lib_schema163.EntityScalarField;
|
|
49
|
+
description: _lssm_lib_schema163.EntityScalarField;
|
|
50
|
+
contactId: _lssm_lib_schema163.EntityScalarField;
|
|
51
|
+
dealId: _lssm_lib_schema163.EntityScalarField;
|
|
52
|
+
companyId: _lssm_lib_schema163.EntityScalarField;
|
|
53
|
+
organizationId: _lssm_lib_schema163.EntityScalarField;
|
|
54
|
+
performedBy: _lssm_lib_schema163.EntityScalarField;
|
|
55
|
+
outcome: _lssm_lib_schema163.EntityScalarField;
|
|
56
|
+
occurredAt: _lssm_lib_schema163.EntityScalarField;
|
|
57
|
+
duration: _lssm_lib_schema163.EntityScalarField;
|
|
58
|
+
createdAt: _lssm_lib_schema163.EntityScalarField;
|
|
59
|
+
contact: _lssm_lib_schema163.EntityRelationField;
|
|
60
|
+
deal: _lssm_lib_schema163.EntityRelationField;
|
|
61
|
+
company: _lssm_lib_schema163.EntityRelationField;
|
|
62
|
+
}>;
|
|
63
|
+
//#endregion
|
|
64
|
+
export { ActivityEntity, TaskEntity, TaskPriorityEnum, TaskStatusEnum, TaskTypeEnum };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as _lssm_lib_schema157 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts3 from "@lssm/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/events/contact.event.d.ts
|
|
5
|
+
declare const ContactCreatedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema157.SchemaModel<{
|
|
6
|
+
contactId: {
|
|
7
|
+
type: _lssm_lib_schema157.FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
email: {
|
|
11
|
+
type: _lssm_lib_schema157.FieldType<string, string>;
|
|
12
|
+
isOptional: true;
|
|
13
|
+
};
|
|
14
|
+
organizationId: {
|
|
15
|
+
type: _lssm_lib_schema157.FieldType<string, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
ownerId: {
|
|
19
|
+
type: _lssm_lib_schema157.FieldType<string, string>;
|
|
20
|
+
isOptional: false;
|
|
21
|
+
};
|
|
22
|
+
createdAt: {
|
|
23
|
+
type: _lssm_lib_schema157.FieldType<Date, string>;
|
|
24
|
+
isOptional: false;
|
|
25
|
+
};
|
|
26
|
+
}>>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ContactCreatedEvent };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/events/deal.event.d.ts
|
|
5
|
+
declare const DealCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
6
|
+
dealId: {
|
|
7
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
name: {
|
|
11
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
value: {
|
|
15
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
pipelineId: {
|
|
19
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
20
|
+
isOptional: false;
|
|
21
|
+
};
|
|
22
|
+
stageId: {
|
|
23
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
24
|
+
isOptional: false;
|
|
25
|
+
};
|
|
26
|
+
ownerId: {
|
|
27
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
28
|
+
isOptional: false;
|
|
29
|
+
};
|
|
30
|
+
createdAt: {
|
|
31
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
32
|
+
isOptional: false;
|
|
33
|
+
};
|
|
34
|
+
}>>;
|
|
35
|
+
declare const DealMovedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
36
|
+
dealId: {
|
|
37
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
38
|
+
isOptional: false;
|
|
39
|
+
};
|
|
40
|
+
fromStageId: {
|
|
41
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
42
|
+
isOptional: false;
|
|
43
|
+
};
|
|
44
|
+
toStageId: {
|
|
45
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
movedBy: {
|
|
49
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
50
|
+
isOptional: false;
|
|
51
|
+
};
|
|
52
|
+
movedAt: {
|
|
53
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
54
|
+
isOptional: false;
|
|
55
|
+
};
|
|
56
|
+
}>>;
|
|
57
|
+
declare const DealWonEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
58
|
+
dealId: {
|
|
59
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
60
|
+
isOptional: false;
|
|
61
|
+
};
|
|
62
|
+
value: {
|
|
63
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
};
|
|
66
|
+
currency: {
|
|
67
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
68
|
+
isOptional: false;
|
|
69
|
+
};
|
|
70
|
+
contactId: {
|
|
71
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
72
|
+
isOptional: true;
|
|
73
|
+
};
|
|
74
|
+
companyId: {
|
|
75
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
76
|
+
isOptional: true;
|
|
77
|
+
};
|
|
78
|
+
ownerId: {
|
|
79
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
80
|
+
isOptional: false;
|
|
81
|
+
};
|
|
82
|
+
wonAt: {
|
|
83
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
84
|
+
isOptional: false;
|
|
85
|
+
};
|
|
86
|
+
}>>;
|
|
87
|
+
declare const DealLostEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
88
|
+
dealId: {
|
|
89
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
91
|
+
};
|
|
92
|
+
value: {
|
|
93
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
94
|
+
isOptional: false;
|
|
95
|
+
};
|
|
96
|
+
reason: {
|
|
97
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
98
|
+
isOptional: false;
|
|
99
|
+
};
|
|
100
|
+
ownerId: {
|
|
101
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
102
|
+
isOptional: false;
|
|
103
|
+
};
|
|
104
|
+
lostAt: {
|
|
105
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
106
|
+
isOptional: false;
|
|
107
|
+
};
|
|
108
|
+
}>>;
|
|
109
|
+
//#endregion
|
|
110
|
+
export { DealCreatedEvent, DealLostEvent, DealMovedEvent, DealWonEvent };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ContactCreatedEvent } from "./contact.event.js";
|
|
2
|
+
import { DealCreatedEvent, DealLostEvent, DealMovedEvent, DealWonEvent } from "./deal.event.js";
|
|
3
|
+
import { TaskCompletedEvent } from "./task.event.js";
|
|
4
|
+
export { ContactCreatedEvent, DealCreatedEvent, DealLostEvent, DealMovedEvent, DealWonEvent, TaskCompletedEvent };
|