@lssm/example.crm-pipeline 0.0.0-canary-20251217062139 → 0.0.0-canary-20251217063201
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 +79 -79
- package/CHANGELOG.md +8 -8
- package/dist/deal/deal.enum.d.ts +3 -3
- package/dist/deal/deal.schema.d.ts +71 -71
- package/dist/entities/company.entity.d.ts +28 -28
- package/dist/entities/contact.entity.d.ts +32 -32
- package/dist/entities/deal.entity.d.ts +53 -53
- package/dist/entities/task.entity.d.ts +43 -43
- package/dist/events/contact.event.d.ts +8 -8
- package/dist/events/deal.event.d.ts +30 -30
- package/dist/events/task.event.d.ts +8 -8
- package/dist/index.d.ts +2 -2
- package/package.json +10 -10
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema276 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/task.entity.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Task type enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const TaskTypeEnum:
|
|
7
|
+
declare const TaskTypeEnum: _lssm_lib_schema276.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Task priority enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const TaskPriorityEnum:
|
|
11
|
+
declare const TaskPriorityEnum: _lssm_lib_schema276.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Task status enum.
|
|
14
14
|
*/
|
|
15
|
-
declare const TaskStatusEnum:
|
|
15
|
+
declare const TaskStatusEnum: _lssm_lib_schema276.EntityEnumDef;
|
|
16
16
|
/**
|
|
17
17
|
* Task entity - follow-up activities.
|
|
18
18
|
*/
|
|
19
|
-
declare const TaskEntity:
|
|
20
|
-
id:
|
|
21
|
-
title:
|
|
22
|
-
description:
|
|
23
|
-
type:
|
|
24
|
-
priority:
|
|
25
|
-
status:
|
|
26
|
-
dueDate:
|
|
27
|
-
reminderAt:
|
|
28
|
-
contactId:
|
|
29
|
-
dealId:
|
|
30
|
-
companyId:
|
|
31
|
-
organizationId:
|
|
32
|
-
assignedTo:
|
|
33
|
-
createdBy:
|
|
34
|
-
completedAt:
|
|
35
|
-
completedBy:
|
|
36
|
-
createdAt:
|
|
37
|
-
updatedAt:
|
|
38
|
-
contact:
|
|
39
|
-
deal:
|
|
40
|
-
company:
|
|
19
|
+
declare const TaskEntity: _lssm_lib_schema276.EntitySpec<{
|
|
20
|
+
id: _lssm_lib_schema276.EntityScalarField;
|
|
21
|
+
title: _lssm_lib_schema276.EntityScalarField;
|
|
22
|
+
description: _lssm_lib_schema276.EntityScalarField;
|
|
23
|
+
type: _lssm_lib_schema276.EntityEnumField;
|
|
24
|
+
priority: _lssm_lib_schema276.EntityEnumField;
|
|
25
|
+
status: _lssm_lib_schema276.EntityEnumField;
|
|
26
|
+
dueDate: _lssm_lib_schema276.EntityScalarField;
|
|
27
|
+
reminderAt: _lssm_lib_schema276.EntityScalarField;
|
|
28
|
+
contactId: _lssm_lib_schema276.EntityScalarField;
|
|
29
|
+
dealId: _lssm_lib_schema276.EntityScalarField;
|
|
30
|
+
companyId: _lssm_lib_schema276.EntityScalarField;
|
|
31
|
+
organizationId: _lssm_lib_schema276.EntityScalarField;
|
|
32
|
+
assignedTo: _lssm_lib_schema276.EntityScalarField;
|
|
33
|
+
createdBy: _lssm_lib_schema276.EntityScalarField;
|
|
34
|
+
completedAt: _lssm_lib_schema276.EntityScalarField;
|
|
35
|
+
completedBy: _lssm_lib_schema276.EntityScalarField;
|
|
36
|
+
createdAt: _lssm_lib_schema276.EntityScalarField;
|
|
37
|
+
updatedAt: _lssm_lib_schema276.EntityScalarField;
|
|
38
|
+
contact: _lssm_lib_schema276.EntityRelationField;
|
|
39
|
+
deal: _lssm_lib_schema276.EntityRelationField;
|
|
40
|
+
company: _lssm_lib_schema276.EntityRelationField;
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* Activity entity - interaction history.
|
|
44
44
|
*/
|
|
45
|
-
declare const ActivityEntity:
|
|
46
|
-
id:
|
|
47
|
-
type:
|
|
48
|
-
subject:
|
|
49
|
-
description:
|
|
50
|
-
contactId:
|
|
51
|
-
dealId:
|
|
52
|
-
companyId:
|
|
53
|
-
organizationId:
|
|
54
|
-
performedBy:
|
|
55
|
-
outcome:
|
|
56
|
-
occurredAt:
|
|
57
|
-
duration:
|
|
58
|
-
createdAt:
|
|
59
|
-
contact:
|
|
60
|
-
deal:
|
|
61
|
-
company:
|
|
45
|
+
declare const ActivityEntity: _lssm_lib_schema276.EntitySpec<{
|
|
46
|
+
id: _lssm_lib_schema276.EntityScalarField;
|
|
47
|
+
type: _lssm_lib_schema276.EntityEnumField;
|
|
48
|
+
subject: _lssm_lib_schema276.EntityScalarField;
|
|
49
|
+
description: _lssm_lib_schema276.EntityScalarField;
|
|
50
|
+
contactId: _lssm_lib_schema276.EntityScalarField;
|
|
51
|
+
dealId: _lssm_lib_schema276.EntityScalarField;
|
|
52
|
+
companyId: _lssm_lib_schema276.EntityScalarField;
|
|
53
|
+
organizationId: _lssm_lib_schema276.EntityScalarField;
|
|
54
|
+
performedBy: _lssm_lib_schema276.EntityScalarField;
|
|
55
|
+
outcome: _lssm_lib_schema276.EntityScalarField;
|
|
56
|
+
occurredAt: _lssm_lib_schema276.EntityScalarField;
|
|
57
|
+
duration: _lssm_lib_schema276.EntityScalarField;
|
|
58
|
+
createdAt: _lssm_lib_schema276.EntityScalarField;
|
|
59
|
+
contact: _lssm_lib_schema276.EntityRelationField;
|
|
60
|
+
deal: _lssm_lib_schema276.EntityRelationField;
|
|
61
|
+
company: _lssm_lib_schema276.EntityRelationField;
|
|
62
62
|
}>;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { ActivityEntity, TaskEntity, TaskPriorityEnum, TaskStatusEnum, TaskTypeEnum };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema318 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts8 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events/contact.event.d.ts
|
|
5
|
-
declare const ContactCreatedEvent:
|
|
5
|
+
declare const ContactCreatedEvent: _lssm_lib_contracts8.EventSpec<_lssm_lib_schema318.SchemaModel<{
|
|
6
6
|
contactId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema318.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
email: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema318.FieldType<string, string>;
|
|
12
12
|
isOptional: true;
|
|
13
13
|
};
|
|
14
14
|
organizationId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema318.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
ownerId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema318.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
createdAt: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema318.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema126 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts4 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events/deal.event.d.ts
|
|
5
|
-
declare const DealCreatedEvent:
|
|
5
|
+
declare const DealCreatedEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema126.SchemaModel<{
|
|
6
6
|
dealId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
name: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
value: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema126.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
pipelineId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
stageId: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
ownerId: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
createdAt: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema126.FieldType<Date, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
}>>;
|
|
35
|
-
declare const DealMovedEvent:
|
|
35
|
+
declare const DealMovedEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema126.SchemaModel<{
|
|
36
36
|
dealId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
fromStageId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
toStageId: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
movedBy: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
movedAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema126.FieldType<Date, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
}>>;
|
|
57
|
-
declare const DealWonEvent:
|
|
57
|
+
declare const DealWonEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema126.SchemaModel<{
|
|
58
58
|
dealId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
value: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema126.FieldType<number, number>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
currency: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
contactId: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
72
72
|
isOptional: true;
|
|
73
73
|
};
|
|
74
74
|
companyId: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
76
76
|
isOptional: true;
|
|
77
77
|
};
|
|
78
78
|
ownerId: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
wonAt: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema126.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const DealLostEvent:
|
|
87
|
+
declare const DealLostEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema126.SchemaModel<{
|
|
88
88
|
dealId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
value: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema126.FieldType<number, number>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
reason: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
ownerId: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema126.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
lostAt: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema126.FieldType<Date, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
}>>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema357 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts9 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events/task.event.d.ts
|
|
5
|
-
declare const TaskCompletedEvent:
|
|
5
|
+
declare const TaskCompletedEvent: _lssm_lib_contracts9.EventSpec<_lssm_lib_schema357.SchemaModel<{
|
|
6
6
|
taskId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
type: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
assignedTo: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
completedBy: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
completedAt: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,14 +15,14 @@ import { MOCK_COMPANIES, MOCK_CONTACTS, MOCK_DEALS, MOCK_STAGES, MockDeal, MockS
|
|
|
15
15
|
import { CreateDealInput, Deal, ListDealsInput, ListDealsOutput, LoseDealInput, MoveDealInput, WinDealInput, mockCreateDealHandler, mockGetDealsByStageHandler, mockGetPipelineStagesHandler, mockListDealsHandler, mockLoseDealHandler, mockMoveDealHandler, mockWinDealHandler } from "./handlers/deal.handlers.js";
|
|
16
16
|
import { CrmDashboardPresentation, PipelineMetricsPresentation } from "./presentations/dashboard.presentation.js";
|
|
17
17
|
import { DealCardPresentation, DealDetailPresentation, DealListPresentation, PipelineKanbanPresentation } from "./presentations/pipeline.presentation.js";
|
|
18
|
-
import * as
|
|
18
|
+
import * as _lssm_lib_schema125 from "@lssm/lib.schema";
|
|
19
19
|
|
|
20
20
|
//#region src/index.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* Complete schema composition for CRM Pipeline.
|
|
23
23
|
*/
|
|
24
24
|
declare const schemaComposition: {
|
|
25
|
-
modules:
|
|
25
|
+
modules: _lssm_lib_schema125.ModuleSchemaContribution[];
|
|
26
26
|
provider: "postgresql";
|
|
27
27
|
outputPath: string;
|
|
28
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.crm-pipeline",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251217063201",
|
|
4
4
|
"description": "CRM Pipeline - Contacts, Companies, Deals, Tasks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
"test": "bun run"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
51
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
52
|
-
"@lssm/lib.bus": "0.0.0-canary-
|
|
53
|
-
"@lssm/lib.identity-rbac": "0.0.0-canary-
|
|
54
|
-
"@lssm/lib.jobs": "0.0.0-canary-
|
|
55
|
-
"@lssm/module.audit-trail": "0.0.0-canary-
|
|
56
|
-
"@lssm/module.notifications": "0.0.0-canary-
|
|
50
|
+
"@lssm/lib.schema": "0.0.0-canary-20251217063201",
|
|
51
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251217063201",
|
|
52
|
+
"@lssm/lib.bus": "0.0.0-canary-20251217063201",
|
|
53
|
+
"@lssm/lib.identity-rbac": "0.0.0-canary-20251217063201",
|
|
54
|
+
"@lssm/lib.jobs": "0.0.0-canary-20251217063201",
|
|
55
|
+
"@lssm/module.audit-trail": "0.0.0-canary-20251217063201",
|
|
56
|
+
"@lssm/module.notifications": "0.0.0-canary-20251217063201",
|
|
57
57
|
"zod": "^4.1.13"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
61
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
60
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251217063201",
|
|
61
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251217063201",
|
|
62
62
|
"tsdown": "^0.17.4",
|
|
63
63
|
"typescript": "^5.9.3"
|
|
64
64
|
},
|