@lssm/example.crm-pipeline 0.0.0-canary-20251220002821 → 0.0.0-canary-20251220021406
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 +95 -95
- package/.turbo/turbo-build.log +99 -99
- package/CHANGELOG.md +8 -8
- package/dist/deal/deal.contracts.d.ts +127 -127
- package/dist/deal/deal.contracts.d.ts.map +1 -1
- 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/entities/task.entity.d.ts.map +1 -1
- package/dist/events/contact.event.d.ts +7 -7
- package/dist/events/deal.event.d.ts +29 -29
- package/dist/events/task.event.d.ts +7 -7
- package/dist/handlers/deal.handlers.d.ts.map +1 -1
- package/dist/handlers/deal.handlers.js +4 -1
- package/dist/handlers/deal.handlers.js.map +1 -1
- package/dist/libs/contracts/dist/ownership.js +1 -0
- package/dist/libs/contracts/dist/ownership.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/ownership.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/ownership.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/ownership.js +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/ownership.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/ownership.js +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/ownership.js.map +1 -1
- package/package.json +10 -10
- package/src/handlers/deal.handlers.ts +9 -3
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema308 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_schema308.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Task priority enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const TaskPriorityEnum:
|
|
11
|
+
declare const TaskPriorityEnum: _lssm_lib_schema308.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Task status enum.
|
|
14
14
|
*/
|
|
15
|
-
declare const TaskStatusEnum:
|
|
15
|
+
declare const TaskStatusEnum: _lssm_lib_schema308.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_schema308.EntitySpec<{
|
|
20
|
+
id: _lssm_lib_schema308.EntityScalarField;
|
|
21
|
+
title: _lssm_lib_schema308.EntityScalarField;
|
|
22
|
+
description: _lssm_lib_schema308.EntityScalarField;
|
|
23
|
+
type: _lssm_lib_schema308.EntityEnumField;
|
|
24
|
+
priority: _lssm_lib_schema308.EntityEnumField;
|
|
25
|
+
status: _lssm_lib_schema308.EntityEnumField;
|
|
26
|
+
dueDate: _lssm_lib_schema308.EntityScalarField;
|
|
27
|
+
reminderAt: _lssm_lib_schema308.EntityScalarField;
|
|
28
|
+
contactId: _lssm_lib_schema308.EntityScalarField;
|
|
29
|
+
dealId: _lssm_lib_schema308.EntityScalarField;
|
|
30
|
+
companyId: _lssm_lib_schema308.EntityScalarField;
|
|
31
|
+
organizationId: _lssm_lib_schema308.EntityScalarField;
|
|
32
|
+
assignedTo: _lssm_lib_schema308.EntityScalarField;
|
|
33
|
+
createdBy: _lssm_lib_schema308.EntityScalarField;
|
|
34
|
+
completedAt: _lssm_lib_schema308.EntityScalarField;
|
|
35
|
+
completedBy: _lssm_lib_schema308.EntityScalarField;
|
|
36
|
+
createdAt: _lssm_lib_schema308.EntityScalarField;
|
|
37
|
+
updatedAt: _lssm_lib_schema308.EntityScalarField;
|
|
38
|
+
contact: _lssm_lib_schema308.EntityRelationField;
|
|
39
|
+
deal: _lssm_lib_schema308.EntityRelationField;
|
|
40
|
+
company: _lssm_lib_schema308.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_schema308.EntitySpec<{
|
|
46
|
+
id: _lssm_lib_schema308.EntityScalarField;
|
|
47
|
+
type: _lssm_lib_schema308.EntityEnumField;
|
|
48
|
+
subject: _lssm_lib_schema308.EntityScalarField;
|
|
49
|
+
description: _lssm_lib_schema308.EntityScalarField;
|
|
50
|
+
contactId: _lssm_lib_schema308.EntityScalarField;
|
|
51
|
+
dealId: _lssm_lib_schema308.EntityScalarField;
|
|
52
|
+
companyId: _lssm_lib_schema308.EntityScalarField;
|
|
53
|
+
organizationId: _lssm_lib_schema308.EntityScalarField;
|
|
54
|
+
performedBy: _lssm_lib_schema308.EntityScalarField;
|
|
55
|
+
outcome: _lssm_lib_schema308.EntityScalarField;
|
|
56
|
+
occurredAt: _lssm_lib_schema308.EntityScalarField;
|
|
57
|
+
duration: _lssm_lib_schema308.EntityScalarField;
|
|
58
|
+
createdAt: _lssm_lib_schema308.EntityScalarField;
|
|
59
|
+
contact: _lssm_lib_schema308.EntityRelationField;
|
|
60
|
+
deal: _lssm_lib_schema308.EntityRelationField;
|
|
61
|
+
company: _lssm_lib_schema308.EntityRelationField;
|
|
62
62
|
}>;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { ActivityEntity, TaskEntity, TaskPriorityEnum, TaskStatusEnum, TaskTypeEnum };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.entity.d.ts","names":[],"sources":["../../src/entities/task.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,YAKX,EAAA,
|
|
1
|
+
{"version":3,"file":"task.entity.d.ts","names":[],"sources":["../../src/entities/task.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,YAKX,EAAA,mBAAA,CALuB,aAKvB;AAKF;AAUA;AAUA;AAiDE,cArEW,gBAqEX,EAhEA,mBAAA,CAL2B,aAqE3B;;;;cA3DW,gBAKX,mBAAA,CALyB;;;;cAUd,gCAAU;MAiDrB,mBAAA,CAAA;;;;;;;;;;;;mDAjDqB;EAAA,SAAA,uCAAA;EAsDV,WAAA,uCA0CX;EAAA,WAAA,uCAAA;;;;;;;;;;cA1CW,oCAAc;MA0CzB,mBAAA,CAAA;;;;;+CA1CyB;EAAA,SAAA,uCAAA"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema350 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts4 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events/contact.event.d.ts
|
|
5
|
-
declare const ContactCreatedEvent: _lssm_lib_contracts4.EventSpec<
|
|
5
|
+
declare const ContactCreatedEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema350.SchemaModel<{
|
|
6
6
|
contactId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema350.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
email: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema350.FieldType<string, string>;
|
|
12
12
|
isOptional: true;
|
|
13
13
|
};
|
|
14
14
|
organizationId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema350.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
ownerId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema350.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
createdAt: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema350.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema356 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts5 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events/deal.event.d.ts
|
|
5
|
-
declare const DealCreatedEvent: _lssm_lib_contracts5.EventSpec<
|
|
5
|
+
declare const DealCreatedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema356.SchemaModel<{
|
|
6
6
|
dealId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
name: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
value: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema356.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
pipelineId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
stageId: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
ownerId: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
createdAt: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema356.FieldType<Date, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
}>>;
|
|
35
|
-
declare const DealMovedEvent: _lssm_lib_contracts5.EventSpec<
|
|
35
|
+
declare const DealMovedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema356.SchemaModel<{
|
|
36
36
|
dealId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
fromStageId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
toStageId: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
movedBy: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
movedAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema356.FieldType<Date, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
}>>;
|
|
57
|
-
declare const DealWonEvent: _lssm_lib_contracts5.EventSpec<
|
|
57
|
+
declare const DealWonEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema356.SchemaModel<{
|
|
58
58
|
dealId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
value: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema356.FieldType<number, number>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
currency: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
contactId: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
72
72
|
isOptional: true;
|
|
73
73
|
};
|
|
74
74
|
companyId: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
76
76
|
isOptional: true;
|
|
77
77
|
};
|
|
78
78
|
ownerId: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
wonAt: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema356.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const DealLostEvent: _lssm_lib_contracts5.EventSpec<
|
|
87
|
+
declare const DealLostEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema356.SchemaModel<{
|
|
88
88
|
dealId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
value: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema356.FieldType<number, number>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
reason: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
ownerId: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
lostAt: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema356.FieldType<Date, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
}>>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema384 from "@lssm/lib.schema";
|
|
2
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: _lssm_lib_contracts9.EventSpec<
|
|
5
|
+
declare const TaskCompletedEvent: _lssm_lib_contracts9.EventSpec<_lssm_lib_schema384.SchemaModel<{
|
|
6
6
|
taskId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema384.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
type: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema384.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
assignedTo: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema384.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
completedBy: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema384.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
completedAt: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema384.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal.handlers.d.ts","names":[],"sources":["../../src/handlers/deal.handlers.ts"],"sourcesContent":[],"mappings":";;;UAMiB,IAAA;;;EAAA,KAAA,EAAI,MAAA;EAWC,QAAA,EAAA,MAAA;EACT,UAAA,EAAA,MAAA;EACA,OAAA,EAAA,MAAA;EAAI,MAAA,EAAA,MAAA,GAAA,KAAA,GAAA,MAAA,GAAA,OAAA;EAGA,SAAA,CAAA,EAAA,MAAe;EAWf,SAAA,CAAA,EAAA,MAAa;EAMb,OAAA,EAAA,MAAY;EAMZ,iBAAa,CAAA,EA5BR,IA4BQ;EAMb,SAAA,EAjCJ,IAiCI;EAUA,SAAA,EA1CJ,IA0CI;AASjB;AACS,UAjDQ,eAAA,CAiDR;EACE,IAAA,EAAA,MAAA;EAAR,KAAA,EAAA,MAAA;EAAO,QAAA,CAAA,EAAA,MAAA;EAmDY,UAAA,EAAA,MAAA;EACb,OAAA,EAAA,MAAA;EAEE,SAAA,CAAA,EAAA,MAAA;EAAR,SAAA,CAAA,EAAA,MAAA;EAAO,iBAAA,CAAA,EAhGY,IAgGZ;AA2BV;AAAiD,UAxHhC,aAAA,CAwHgC;EAAwB,MAAA,EAAA,MAAA;EAAR,OAAA,EAAA,MAAA;EAAO,QAAA,CAAA,EAAA,MAAA;
|
|
1
|
+
{"version":3,"file":"deal.handlers.d.ts","names":[],"sources":["../../src/handlers/deal.handlers.ts"],"sourcesContent":[],"mappings":";;;UAMiB,IAAA;;;EAAA,KAAA,EAAI,MAAA;EAWC,QAAA,EAAA,MAAA;EACT,UAAA,E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AAA,QAA0B,eAAe,QAAQ;;;;iBAwBjD,mBAAA,QAA2B,gBAAgB,QAAQ;;;;iBAwBnD,0BAAA;;IAElB,QAAQ,eAAe;;;;iBAgBL,4BAAA;;IAErB,QAFiD,SAAA"}
|
|
@@ -57,6 +57,7 @@ async function mockMoveDealHandler(input) {
|
|
|
57
57
|
const dealIndex = MOCK_DEALS.findIndex((d) => d.id === input.dealId);
|
|
58
58
|
if (dealIndex === -1) throw new Error("NOT_FOUND");
|
|
59
59
|
const deal = MOCK_DEALS[dealIndex];
|
|
60
|
+
if (!deal) throw new Error("NOT_FOUND");
|
|
60
61
|
if (!MOCK_STAGES.find((s) => s.id === input.stageId)) throw new Error("INVALID_STAGE");
|
|
61
62
|
const updatedDeal = {
|
|
62
63
|
...deal,
|
|
@@ -88,8 +89,10 @@ async function mockWinDealHandler(input) {
|
|
|
88
89
|
async function mockLoseDealHandler(input) {
|
|
89
90
|
const dealIndex = MOCK_DEALS.findIndex((d) => d.id === input.dealId);
|
|
90
91
|
if (dealIndex === -1) throw new Error("NOT_FOUND");
|
|
92
|
+
const deal = MOCK_DEALS[dealIndex];
|
|
93
|
+
if (!deal) throw new Error("NOT_FOUND");
|
|
91
94
|
const updatedDeal = {
|
|
92
|
-
...
|
|
95
|
+
...deal,
|
|
93
96
|
status: "LOST",
|
|
94
97
|
updatedAt: /* @__PURE__ */ new Date()
|
|
95
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal.handlers.js","names":["deal: Deal","updatedDeal: Deal","grouped: Record<string, Deal[]>"],"sources":["../../src/handlers/deal.handlers.ts"],"sourcesContent":["/**\n * Mock handlers for Deal contracts\n */\nimport { MOCK_DEALS, MOCK_STAGES } from './mock-data';\n\n// Types inferred from contract schemas\nexport interface Deal {\n id: string;\n name: string;\n value: number;\n currency: string;\n pipelineId: string;\n stageId: string;\n status: 'OPEN' | 'WON' | 'LOST' | 'STALE';\n contactId?: string;\n companyId?: string;\n ownerId: string;\n expectedCloseDate?: Date;\n createdAt: Date;\n updatedAt: Date;\n}\n\nexport interface CreateDealInput {\n name: string;\n value: number;\n currency?: string;\n pipelineId: string;\n stageId: string;\n contactId?: string;\n companyId?: string;\n expectedCloseDate?: Date;\n}\n\nexport interface MoveDealInput {\n dealId: string;\n stageId: string;\n position?: number;\n}\n\nexport interface WinDealInput {\n dealId: string;\n wonSource?: string;\n notes?: string;\n}\n\nexport interface LoseDealInput {\n dealId: string;\n lostReason: string;\n notes?: string;\n}\n\nexport interface ListDealsInput {\n pipelineId?: string;\n stageId?: string;\n status?: 'OPEN' | 'WON' | 'LOST' | 'all';\n ownerId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n}\n\nexport interface ListDealsOutput {\n deals: Deal[];\n total: number;\n totalValue: number;\n}\n\n/**\n * Mock handler for ListDealsContract\n */\nexport async function mockListDealsHandler(\n input: ListDealsInput\n): Promise<ListDealsOutput> {\n const {\n pipelineId,\n stageId,\n status,\n ownerId,\n search,\n limit = 20,\n offset = 0,\n } = input;\n\n let filtered = [...MOCK_DEALS];\n\n if (pipelineId) {\n filtered = filtered.filter((d) => d.pipelineId === pipelineId);\n }\n\n if (stageId) {\n filtered = filtered.filter((d) => d.stageId === stageId);\n }\n\n if (status && status !== 'all') {\n filtered = filtered.filter((d) => d.status === status);\n }\n\n if (ownerId) {\n filtered = filtered.filter((d) => d.ownerId === ownerId);\n }\n\n if (search) {\n const q = search.toLowerCase();\n filtered = filtered.filter((d) => d.name.toLowerCase().includes(q));\n }\n\n // Sort by value descending\n filtered.sort((a, b) => b.value - a.value);\n\n const total = filtered.length;\n const totalValue = filtered.reduce((sum, d) => sum + d.value, 0);\n const deals = filtered.slice(offset, offset + limit);\n\n return {\n deals,\n total,\n totalValue,\n };\n}\n\n/**\n * Mock handler for CreateDealContract\n */\nexport async function mockCreateDealHandler(\n input: CreateDealInput,\n context: { ownerId: string }\n): Promise<Deal> {\n const now = new Date();\n\n const deal: Deal = {\n id: `deal-${Date.now()}`,\n name: input.name,\n value: input.value,\n currency: input.currency ?? 'USD',\n pipelineId: input.pipelineId,\n stageId: input.stageId,\n status: 'OPEN',\n contactId: input.contactId,\n companyId: input.companyId,\n ownerId: context.ownerId,\n expectedCloseDate: input.expectedCloseDate,\n createdAt: now,\n updatedAt: now,\n };\n\n MOCK_DEALS.push(deal);\n\n return deal;\n}\n\n/**\n * Mock handler for MoveDealContract\n */\nexport async function mockMoveDealHandler(input: MoveDealInput): Promise<Deal> {\n const dealIndex = MOCK_DEALS.findIndex((d) => d.id === input.dealId);\n if (dealIndex === -1) {\n throw new Error('NOT_FOUND');\n }\n const deal = MOCK_DEALS[dealIndex]
|
|
1
|
+
{"version":3,"file":"deal.handlers.js","names":["deal: Deal","updatedDeal: Deal","grouped: Record<string, Deal[]>"],"sources":["../../src/handlers/deal.handlers.ts"],"sourcesContent":["/**\n * Mock handlers for Deal contracts\n */\nimport { MOCK_DEALS, MOCK_STAGES } from './mock-data';\n\n// Types inferred from contract schemas\nexport interface Deal {\n id: string;\n name: string;\n value: number;\n currency: string;\n pipelineId: string;\n stageId: string;\n status: 'OPEN' | 'WON' | 'LOST' | 'STALE';\n contactId?: string;\n companyId?: string;\n ownerId: string;\n expectedCloseDate?: Date;\n createdAt: Date;\n updatedAt: Date;\n}\n\nexport interface CreateDealInput {\n name: string;\n value: number;\n currency?: string;\n pipelineId: string;\n stageId: string;\n contactId?: string;\n companyId?: string;\n expectedCloseDate?: Date;\n}\n\nexport interface MoveDealInput {\n dealId: string;\n stageId: string;\n position?: number;\n}\n\nexport interface WinDealInput {\n dealId: string;\n wonSource?: string;\n notes?: string;\n}\n\nexport interface LoseDealInput {\n dealId: string;\n lostReason: string;\n notes?: string;\n}\n\nexport interface ListDealsInput {\n pipelineId?: string;\n stageId?: string;\n status?: 'OPEN' | 'WON' | 'LOST' | 'all';\n ownerId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n}\n\nexport interface ListDealsOutput {\n deals: Deal[];\n total: number;\n totalValue: number;\n}\n\n/**\n * Mock handler for ListDealsContract\n */\nexport async function mockListDealsHandler(\n input: ListDealsInput\n): Promise<ListDealsOutput> {\n const {\n pipelineId,\n stageId,\n status,\n ownerId,\n search,\n limit = 20,\n offset = 0,\n } = input;\n\n let filtered = [...MOCK_DEALS];\n\n if (pipelineId) {\n filtered = filtered.filter((d) => d.pipelineId === pipelineId);\n }\n\n if (stageId) {\n filtered = filtered.filter((d) => d.stageId === stageId);\n }\n\n if (status && status !== 'all') {\n filtered = filtered.filter((d) => d.status === status);\n }\n\n if (ownerId) {\n filtered = filtered.filter((d) => d.ownerId === ownerId);\n }\n\n if (search) {\n const q = search.toLowerCase();\n filtered = filtered.filter((d) => d.name.toLowerCase().includes(q));\n }\n\n // Sort by value descending\n filtered.sort((a, b) => b.value - a.value);\n\n const total = filtered.length;\n const totalValue = filtered.reduce((sum, d) => sum + d.value, 0);\n const deals = filtered.slice(offset, offset + limit);\n\n return {\n deals,\n total,\n totalValue,\n };\n}\n\n/**\n * Mock handler for CreateDealContract\n */\nexport async function mockCreateDealHandler(\n input: CreateDealInput,\n context: { ownerId: string }\n): Promise<Deal> {\n const now = new Date();\n\n const deal: Deal = {\n id: `deal-${Date.now()}`,\n name: input.name,\n value: input.value,\n currency: input.currency ?? 'USD',\n pipelineId: input.pipelineId,\n stageId: input.stageId,\n status: 'OPEN',\n contactId: input.contactId,\n companyId: input.companyId,\n ownerId: context.ownerId,\n expectedCloseDate: input.expectedCloseDate,\n createdAt: now,\n updatedAt: now,\n };\n\n MOCK_DEALS.push(deal);\n\n return deal;\n}\n\n/**\n * Mock handler for MoveDealContract\n */\nexport async function mockMoveDealHandler(input: MoveDealInput): Promise<Deal> {\n const dealIndex = MOCK_DEALS.findIndex((d) => d.id === input.dealId);\n if (dealIndex === -1) {\n throw new Error('NOT_FOUND');\n }\n const deal = MOCK_DEALS[dealIndex];\n if (!deal) {\n throw new Error('NOT_FOUND');\n }\n\n const stage = MOCK_STAGES.find((s) => s.id === input.stageId);\n if (!stage) {\n throw new Error('INVALID_STAGE');\n }\n\n const updatedDeal: Deal = {\n ...deal,\n stageId: input.stageId,\n updatedAt: new Date(),\n };\n\n MOCK_DEALS[dealIndex] = updatedDeal;\n\n return updatedDeal;\n}\n\n/**\n * Mock handler for WinDealContract\n */\nexport async function mockWinDealHandler(input: WinDealInput): Promise<Deal> {\n const dealIndex = MOCK_DEALS.findIndex((d) => d.id === input.dealId);\n if (dealIndex === -1) {\n throw new Error('NOT_FOUND');\n }\n const deal = MOCK_DEALS[dealIndex];\n if (!deal) {\n throw new Error('NOT_FOUND');\n }\n\n const updatedDeal: Deal = {\n ...deal,\n status: 'WON' as const,\n updatedAt: new Date(),\n };\n\n MOCK_DEALS[dealIndex] = updatedDeal;\n\n return updatedDeal;\n}\n\n/**\n * Mock handler for LoseDealContract\n */\nexport async function mockLoseDealHandler(input: LoseDealInput): Promise<Deal> {\n const dealIndex = MOCK_DEALS.findIndex((d) => d.id === input.dealId);\n if (dealIndex === -1) {\n throw new Error('NOT_FOUND');\n }\n const deal = MOCK_DEALS[dealIndex];\n if (!deal) {\n throw new Error('NOT_FOUND');\n }\n\n const updatedDeal: Deal = {\n ...deal,\n status: 'LOST' as const,\n updatedAt: new Date(),\n };\n\n MOCK_DEALS[dealIndex] = updatedDeal;\n\n return updatedDeal;\n}\n\n/**\n * Get deals grouped by stage for Kanban view\n */\nexport async function mockGetDealsByStageHandler(input: {\n pipelineId: string;\n}): Promise<Record<string, Deal[]>> {\n const deals = MOCK_DEALS.filter(\n (d) => d.pipelineId === input.pipelineId && d.status === 'OPEN'\n );\n\n const grouped: Record<string, Deal[]> = {};\n for (const stage of MOCK_STAGES) {\n grouped[stage.id] = deals.filter((d) => d.stageId === stage.id);\n }\n\n return grouped;\n}\n\n/**\n * Get pipeline stages\n */\nexport async function mockGetPipelineStagesHandler(input: {\n pipelineId: string;\n}) {\n return MOCK_STAGES.filter((s) => s.pipelineId === input.pipelineId);\n}\n"],"mappings":";;;;;;;;;AAsEA,eAAsB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E,eAAe,MAAM,WAAW"}
|
|
@@ -13,6 +13,7 @@ const OwnersEnum = {
|
|
|
13
13
|
ProductArtisanos: "product.artisanos",
|
|
14
14
|
PlatformSigil: "platform.sigil",
|
|
15
15
|
PlatformMarketplace: "platform.marketplace",
|
|
16
|
+
PlatformMessaging: "platform.messaging",
|
|
16
17
|
PlatformContent: "platform.content",
|
|
17
18
|
PlatformFeatureFlags: "platform.featureflags",
|
|
18
19
|
PlatformFinance: "platform.finance"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../libs/contracts/dist/ownership.js"],"sourcesContent":["//#region src/ownership.ts\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\nconst Owners = OwnersEnum;\nconst TagsEnum = {\n\tSpots: \"spots\",\n\tCollectivity: \"collectivity\",\n\tMarketplace: \"marketplace\",\n\tSellers: \"sellers\",\n\tAuth: \"auth\",\n\tLogin: \"login\",\n\tSignup: \"signup\",\n\tGuide: \"guide\",\n\tDocs: \"docs\",\n\tI18n: \"i18n\",\n\tIncident: \"incident\",\n\tAutomation: \"automation\",\n\tHygiene: \"hygiene\"\n};\nconst Tags = TagsEnum;\n\n//#endregion\nexport { Owners, OwnersEnum, StabilityEnum, Tags, TagsEnum };"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
1
|
+
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../libs/contracts/dist/ownership.js"],"sourcesContent":["//#region src/ownership.ts\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformMessaging: \"platform.messaging\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\nconst Owners = OwnersEnum;\nconst TagsEnum = {\n\tSpots: \"spots\",\n\tCollectivity: \"collectivity\",\n\tMarketplace: \"marketplace\",\n\tSellers: \"sellers\",\n\tAuth: \"auth\",\n\tLogin: \"login\",\n\tSignup: \"signup\",\n\tGuide: \"guide\",\n\tDocs: \"docs\",\n\tI18n: \"i18n\",\n\tIncident: \"incident\",\n\tAutomation: \"automation\",\n\tHygiene: \"hygiene\"\n};\nconst Tags = TagsEnum;\n\n//#endregion\nexport { Owners, OwnersEnum, StabilityEnum, Tags, TagsEnum };"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,mBAAmB;CACnB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
@@ -13,6 +13,7 @@ const OwnersEnum = {
|
|
|
13
13
|
ProductArtisanos: "product.artisanos",
|
|
14
14
|
PlatformSigil: "platform.sigil",
|
|
15
15
|
PlatformMarketplace: "platform.marketplace",
|
|
16
|
+
PlatformMessaging: "platform.messaging",
|
|
16
17
|
PlatformContent: "platform.content",
|
|
17
18
|
PlatformFeatureFlags: "platform.featureflags",
|
|
18
19
|
PlatformFinance: "platform.finance"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../libs/identity-rbac/dist/contracts/dist/ownership.js"],"sourcesContent":["//#region ../contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
1
|
+
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../libs/identity-rbac/dist/contracts/dist/ownership.js"],"sourcesContent":["//#region ../contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformMessaging: \"platform.messaging\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,mBAAmB;CACnB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
@@ -13,6 +13,7 @@ const OwnersEnum = {
|
|
|
13
13
|
ProductArtisanos: "product.artisanos",
|
|
14
14
|
PlatformSigil: "platform.sigil",
|
|
15
15
|
PlatformMarketplace: "platform.marketplace",
|
|
16
|
+
PlatformMessaging: "platform.messaging",
|
|
16
17
|
PlatformContent: "platform.content",
|
|
17
18
|
PlatformFeatureFlags: "platform.featureflags",
|
|
18
19
|
PlatformFinance: "platform.finance"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../../modules/audit-trail/dist/libs/contracts/dist/ownership.js"],"sourcesContent":["//#region ../../libs/contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
1
|
+
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../../modules/audit-trail/dist/libs/contracts/dist/ownership.js"],"sourcesContent":["//#region ../../libs/contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformMessaging: \"platform.messaging\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,mBAAmB;CACnB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
@@ -13,6 +13,7 @@ const OwnersEnum = {
|
|
|
13
13
|
ProductArtisanos: "product.artisanos",
|
|
14
14
|
PlatformSigil: "platform.sigil",
|
|
15
15
|
PlatformMarketplace: "platform.marketplace",
|
|
16
|
+
PlatformMessaging: "platform.messaging",
|
|
16
17
|
PlatformContent: "platform.content",
|
|
17
18
|
PlatformFeatureFlags: "platform.featureflags",
|
|
18
19
|
PlatformFinance: "platform.finance"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../../modules/notifications/dist/libs/contracts/dist/ownership.js"],"sourcesContent":["//#region ../../libs/contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
1
|
+
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../../modules/notifications/dist/libs/contracts/dist/ownership.js"],"sourcesContent":["//#region ../../libs/contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformMessaging: \"platform.messaging\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,mBAAmB;CACnB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
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-20251220021406",
|
|
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-20251220021406",
|
|
51
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251220021406",
|
|
52
|
+
"@lssm/lib.bus": "0.0.0-canary-20251220021406",
|
|
53
|
+
"@lssm/lib.identity-rbac": "0.0.0-canary-20251220021406",
|
|
54
|
+
"@lssm/lib.jobs": "0.0.0-canary-20251220021406",
|
|
55
|
+
"@lssm/module.audit-trail": "0.0.0-canary-20251220021406",
|
|
56
|
+
"@lssm/module.notifications": "0.0.0-canary-20251220021406",
|
|
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-20251220021406",
|
|
61
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251220021406",
|
|
62
62
|
"tsdown": "^0.18.1",
|
|
63
63
|
"typescript": "^5.9.3"
|
|
64
64
|
},
|
|
@@ -156,7 +156,10 @@ export async function mockMoveDealHandler(input: MoveDealInput): Promise<Deal> {
|
|
|
156
156
|
if (dealIndex === -1) {
|
|
157
157
|
throw new Error('NOT_FOUND');
|
|
158
158
|
}
|
|
159
|
-
const deal = MOCK_DEALS[dealIndex]
|
|
159
|
+
const deal = MOCK_DEALS[dealIndex];
|
|
160
|
+
if (!deal) {
|
|
161
|
+
throw new Error('NOT_FOUND');
|
|
162
|
+
}
|
|
160
163
|
|
|
161
164
|
const stage = MOCK_STAGES.find((s) => s.id === input.stageId);
|
|
162
165
|
if (!stage) {
|
|
@@ -182,7 +185,7 @@ export async function mockWinDealHandler(input: WinDealInput): Promise<Deal> {
|
|
|
182
185
|
if (dealIndex === -1) {
|
|
183
186
|
throw new Error('NOT_FOUND');
|
|
184
187
|
}
|
|
185
|
-
const deal = MOCK_DEALS[dealIndex]
|
|
188
|
+
const deal = MOCK_DEALS[dealIndex];
|
|
186
189
|
if (!deal) {
|
|
187
190
|
throw new Error('NOT_FOUND');
|
|
188
191
|
}
|
|
@@ -206,7 +209,10 @@ export async function mockLoseDealHandler(input: LoseDealInput): Promise<Deal> {
|
|
|
206
209
|
if (dealIndex === -1) {
|
|
207
210
|
throw new Error('NOT_FOUND');
|
|
208
211
|
}
|
|
209
|
-
const deal = MOCK_DEALS[dealIndex]
|
|
212
|
+
const deal = MOCK_DEALS[dealIndex];
|
|
213
|
+
if (!deal) {
|
|
214
|
+
throw new Error('NOT_FOUND');
|
|
215
|
+
}
|
|
210
216
|
|
|
211
217
|
const updatedDeal: Deal = {
|
|
212
218
|
...deal,
|