@contractspec/example.crm-pipeline 1.47.0 → 1.48.1

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.
@@ -1,72 +1,72 @@
1
- import * as _contractspec_lib_schema198 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema30 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/entities/deal.entity.d.ts
4
4
  /**
5
5
  * Deal status enum.
6
6
  */
7
- declare const DealStatusEnum: _contractspec_lib_schema198.EntityEnumDef;
7
+ declare const DealStatusEnum: _contractspec_lib_schema30.EntityEnumDef;
8
8
  /**
9
9
  * Pipeline entity - sales pipeline definition.
10
10
  */
11
- declare const PipelineEntity: _contractspec_lib_schema198.EntitySpec<{
12
- id: _contractspec_lib_schema198.EntityScalarField;
13
- name: _contractspec_lib_schema198.EntityScalarField;
14
- description: _contractspec_lib_schema198.EntityScalarField;
15
- organizationId: _contractspec_lib_schema198.EntityScalarField;
16
- isDefault: _contractspec_lib_schema198.EntityScalarField;
17
- createdAt: _contractspec_lib_schema198.EntityScalarField;
18
- updatedAt: _contractspec_lib_schema198.EntityScalarField;
19
- stages: _contractspec_lib_schema198.EntityRelationField;
20
- deals: _contractspec_lib_schema198.EntityRelationField;
11
+ declare const PipelineEntity: _contractspec_lib_schema30.EntitySpec<{
12
+ id: _contractspec_lib_schema30.EntityScalarField;
13
+ name: _contractspec_lib_schema30.EntityScalarField;
14
+ description: _contractspec_lib_schema30.EntityScalarField;
15
+ organizationId: _contractspec_lib_schema30.EntityScalarField;
16
+ isDefault: _contractspec_lib_schema30.EntityScalarField;
17
+ createdAt: _contractspec_lib_schema30.EntityScalarField;
18
+ updatedAt: _contractspec_lib_schema30.EntityScalarField;
19
+ stages: _contractspec_lib_schema30.EntityRelationField;
20
+ deals: _contractspec_lib_schema30.EntityRelationField;
21
21
  }>;
22
22
  /**
23
23
  * Stage entity - pipeline stage.
24
24
  */
25
- declare const StageEntity: _contractspec_lib_schema198.EntitySpec<{
26
- id: _contractspec_lib_schema198.EntityScalarField;
27
- name: _contractspec_lib_schema198.EntityScalarField;
28
- pipelineId: _contractspec_lib_schema198.EntityScalarField;
29
- position: _contractspec_lib_schema198.EntityScalarField;
30
- probability: _contractspec_lib_schema198.EntityScalarField;
31
- isWonStage: _contractspec_lib_schema198.EntityScalarField;
32
- isLostStage: _contractspec_lib_schema198.EntityScalarField;
33
- color: _contractspec_lib_schema198.EntityScalarField;
34
- createdAt: _contractspec_lib_schema198.EntityScalarField;
35
- updatedAt: _contractspec_lib_schema198.EntityScalarField;
36
- pipeline: _contractspec_lib_schema198.EntityRelationField;
37
- deals: _contractspec_lib_schema198.EntityRelationField;
25
+ declare const StageEntity: _contractspec_lib_schema30.EntitySpec<{
26
+ id: _contractspec_lib_schema30.EntityScalarField;
27
+ name: _contractspec_lib_schema30.EntityScalarField;
28
+ pipelineId: _contractspec_lib_schema30.EntityScalarField;
29
+ position: _contractspec_lib_schema30.EntityScalarField;
30
+ probability: _contractspec_lib_schema30.EntityScalarField;
31
+ isWonStage: _contractspec_lib_schema30.EntityScalarField;
32
+ isLostStage: _contractspec_lib_schema30.EntityScalarField;
33
+ color: _contractspec_lib_schema30.EntityScalarField;
34
+ createdAt: _contractspec_lib_schema30.EntityScalarField;
35
+ updatedAt: _contractspec_lib_schema30.EntityScalarField;
36
+ pipeline: _contractspec_lib_schema30.EntityRelationField;
37
+ deals: _contractspec_lib_schema30.EntityRelationField;
38
38
  }>;
39
39
  /**
40
40
  * Deal entity - sales opportunity.
41
41
  */
42
- declare const DealEntity: _contractspec_lib_schema198.EntitySpec<{
43
- id: _contractspec_lib_schema198.EntityScalarField;
44
- name: _contractspec_lib_schema198.EntityScalarField;
45
- value: _contractspec_lib_schema198.EntityScalarField;
46
- currency: _contractspec_lib_schema198.EntityScalarField;
47
- pipelineId: _contractspec_lib_schema198.EntityScalarField;
48
- stageId: _contractspec_lib_schema198.EntityScalarField;
49
- status: _contractspec_lib_schema198.EntityEnumField;
50
- contactId: _contractspec_lib_schema198.EntityScalarField;
51
- companyId: _contractspec_lib_schema198.EntityScalarField;
52
- organizationId: _contractspec_lib_schema198.EntityScalarField;
53
- ownerId: _contractspec_lib_schema198.EntityScalarField;
54
- expectedCloseDate: _contractspec_lib_schema198.EntityScalarField;
55
- closedAt: _contractspec_lib_schema198.EntityScalarField;
56
- lostReason: _contractspec_lib_schema198.EntityScalarField;
57
- wonSource: _contractspec_lib_schema198.EntityScalarField;
58
- notes: _contractspec_lib_schema198.EntityScalarField;
59
- tags: _contractspec_lib_schema198.EntityScalarField;
60
- customFields: _contractspec_lib_schema198.EntityScalarField;
61
- stagePosition: _contractspec_lib_schema198.EntityScalarField;
62
- createdAt: _contractspec_lib_schema198.EntityScalarField;
63
- updatedAt: _contractspec_lib_schema198.EntityScalarField;
64
- pipeline: _contractspec_lib_schema198.EntityRelationField;
65
- stage: _contractspec_lib_schema198.EntityRelationField;
66
- contact: _contractspec_lib_schema198.EntityRelationField;
67
- company: _contractspec_lib_schema198.EntityRelationField;
68
- tasks: _contractspec_lib_schema198.EntityRelationField;
69
- activities: _contractspec_lib_schema198.EntityRelationField;
42
+ declare const DealEntity: _contractspec_lib_schema30.EntitySpec<{
43
+ id: _contractspec_lib_schema30.EntityScalarField;
44
+ name: _contractspec_lib_schema30.EntityScalarField;
45
+ value: _contractspec_lib_schema30.EntityScalarField;
46
+ currency: _contractspec_lib_schema30.EntityScalarField;
47
+ pipelineId: _contractspec_lib_schema30.EntityScalarField;
48
+ stageId: _contractspec_lib_schema30.EntityScalarField;
49
+ status: _contractspec_lib_schema30.EntityEnumField;
50
+ contactId: _contractspec_lib_schema30.EntityScalarField;
51
+ companyId: _contractspec_lib_schema30.EntityScalarField;
52
+ organizationId: _contractspec_lib_schema30.EntityScalarField;
53
+ ownerId: _contractspec_lib_schema30.EntityScalarField;
54
+ expectedCloseDate: _contractspec_lib_schema30.EntityScalarField;
55
+ closedAt: _contractspec_lib_schema30.EntityScalarField;
56
+ lostReason: _contractspec_lib_schema30.EntityScalarField;
57
+ wonSource: _contractspec_lib_schema30.EntityScalarField;
58
+ notes: _contractspec_lib_schema30.EntityScalarField;
59
+ tags: _contractspec_lib_schema30.EntityScalarField;
60
+ customFields: _contractspec_lib_schema30.EntityScalarField;
61
+ stagePosition: _contractspec_lib_schema30.EntityScalarField;
62
+ createdAt: _contractspec_lib_schema30.EntityScalarField;
63
+ updatedAt: _contractspec_lib_schema30.EntityScalarField;
64
+ pipeline: _contractspec_lib_schema30.EntityRelationField;
65
+ stage: _contractspec_lib_schema30.EntityRelationField;
66
+ contact: _contractspec_lib_schema30.EntityRelationField;
67
+ company: _contractspec_lib_schema30.EntityRelationField;
68
+ tasks: _contractspec_lib_schema30.EntityRelationField;
69
+ activities: _contractspec_lib_schema30.EntityRelationField;
70
70
  }>;
71
71
  //#endregion
72
72
  export { DealEntity, DealStatusEnum, PipelineEntity, StageEntity };
@@ -1 +1 @@
1
- {"version":3,"file":"deal.entity.d.ts","names":[],"sources":["../../src/entities/deal.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,cAKX,EAAA,2BAAA,CALyB,aAKzB;AAKF;;;cAAa,4CAAc;MAwBzB,2BAAA,CAAA;;;;;;0DAxByB;EAAA,MAAA,iDAAA;EA6Bd,KAAA,iDAwCX;CAAA,CAAA;;;;cAxCW,yCAAW;MAwCtB,2BAAA,CAAA;;;;;;;sDAxCsB;EAAA,SAAA,+CAAA;EA6CX,SAAA,+CAiEX;EAAA,QAAA,iDAAA;;;;;;cAjEW,wCAAU;MAiErB,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;0DAjEqB;EAAA,QAAA,iDAAA"}
1
+ {"version":3,"file":"deal.entity.d.ts","names":[],"sources":["../../src/entities/deal.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,cAKX,EAAA,0BAAA,CALyB,aAKzB;AAKF;;;cAAa,2CAAc;MAwBzB,0BAAA,CAAA;;;;;;yDAxByB;EAAA,MAAA,gDAAA;EA6Bd,KAAA,gDAwCX;CAAA,CAAA;;;;cAxCW,wCAAW;MAwCtB,0BAAA,CAAA;;;;;;;qDAxCsB;EAAA,SAAA,8CAAA;EA6CX,SAAA,8CAiEX;EAAA,QAAA,gDAAA;;;;;;cAjEW,uCAAU;MAiErB,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;yDAjEqB;EAAA,QAAA,gDAAA"}
@@ -1,64 +1,64 @@
1
- import * as _contractspec_lib_schema308 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema85 from "@contractspec/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: _contractspec_lib_schema308.EntityEnumDef;
7
+ declare const TaskTypeEnum: _contractspec_lib_schema85.EntityEnumDef;
8
8
  /**
9
9
  * Task priority enum.
10
10
  */
11
- declare const TaskPriorityEnum: _contractspec_lib_schema308.EntityEnumDef;
11
+ declare const TaskPriorityEnum: _contractspec_lib_schema85.EntityEnumDef;
12
12
  /**
13
13
  * Task status enum.
14
14
  */
15
- declare const TaskStatusEnum: _contractspec_lib_schema308.EntityEnumDef;
15
+ declare const TaskStatusEnum: _contractspec_lib_schema85.EntityEnumDef;
16
16
  /**
17
17
  * Task entity - follow-up activities.
18
18
  */
19
- declare const TaskEntity: _contractspec_lib_schema308.EntitySpec<{
20
- id: _contractspec_lib_schema308.EntityScalarField;
21
- title: _contractspec_lib_schema308.EntityScalarField;
22
- description: _contractspec_lib_schema308.EntityScalarField;
23
- type: _contractspec_lib_schema308.EntityEnumField;
24
- priority: _contractspec_lib_schema308.EntityEnumField;
25
- status: _contractspec_lib_schema308.EntityEnumField;
26
- dueDate: _contractspec_lib_schema308.EntityScalarField;
27
- reminderAt: _contractspec_lib_schema308.EntityScalarField;
28
- contactId: _contractspec_lib_schema308.EntityScalarField;
29
- dealId: _contractspec_lib_schema308.EntityScalarField;
30
- companyId: _contractspec_lib_schema308.EntityScalarField;
31
- organizationId: _contractspec_lib_schema308.EntityScalarField;
32
- assignedTo: _contractspec_lib_schema308.EntityScalarField;
33
- createdBy: _contractspec_lib_schema308.EntityScalarField;
34
- completedAt: _contractspec_lib_schema308.EntityScalarField;
35
- completedBy: _contractspec_lib_schema308.EntityScalarField;
36
- createdAt: _contractspec_lib_schema308.EntityScalarField;
37
- updatedAt: _contractspec_lib_schema308.EntityScalarField;
38
- contact: _contractspec_lib_schema308.EntityRelationField;
39
- deal: _contractspec_lib_schema308.EntityRelationField;
40
- company: _contractspec_lib_schema308.EntityRelationField;
19
+ declare const TaskEntity: _contractspec_lib_schema85.EntitySpec<{
20
+ id: _contractspec_lib_schema85.EntityScalarField;
21
+ title: _contractspec_lib_schema85.EntityScalarField;
22
+ description: _contractspec_lib_schema85.EntityScalarField;
23
+ type: _contractspec_lib_schema85.EntityEnumField;
24
+ priority: _contractspec_lib_schema85.EntityEnumField;
25
+ status: _contractspec_lib_schema85.EntityEnumField;
26
+ dueDate: _contractspec_lib_schema85.EntityScalarField;
27
+ reminderAt: _contractspec_lib_schema85.EntityScalarField;
28
+ contactId: _contractspec_lib_schema85.EntityScalarField;
29
+ dealId: _contractspec_lib_schema85.EntityScalarField;
30
+ companyId: _contractspec_lib_schema85.EntityScalarField;
31
+ organizationId: _contractspec_lib_schema85.EntityScalarField;
32
+ assignedTo: _contractspec_lib_schema85.EntityScalarField;
33
+ createdBy: _contractspec_lib_schema85.EntityScalarField;
34
+ completedAt: _contractspec_lib_schema85.EntityScalarField;
35
+ completedBy: _contractspec_lib_schema85.EntityScalarField;
36
+ createdAt: _contractspec_lib_schema85.EntityScalarField;
37
+ updatedAt: _contractspec_lib_schema85.EntityScalarField;
38
+ contact: _contractspec_lib_schema85.EntityRelationField;
39
+ deal: _contractspec_lib_schema85.EntityRelationField;
40
+ company: _contractspec_lib_schema85.EntityRelationField;
41
41
  }>;
42
42
  /**
43
43
  * Activity entity - interaction history.
44
44
  */
45
- declare const ActivityEntity: _contractspec_lib_schema308.EntitySpec<{
46
- id: _contractspec_lib_schema308.EntityScalarField;
47
- type: _contractspec_lib_schema308.EntityEnumField;
48
- subject: _contractspec_lib_schema308.EntityScalarField;
49
- description: _contractspec_lib_schema308.EntityScalarField;
50
- contactId: _contractspec_lib_schema308.EntityScalarField;
51
- dealId: _contractspec_lib_schema308.EntityScalarField;
52
- companyId: _contractspec_lib_schema308.EntityScalarField;
53
- organizationId: _contractspec_lib_schema308.EntityScalarField;
54
- performedBy: _contractspec_lib_schema308.EntityScalarField;
55
- outcome: _contractspec_lib_schema308.EntityScalarField;
56
- occurredAt: _contractspec_lib_schema308.EntityScalarField;
57
- duration: _contractspec_lib_schema308.EntityScalarField;
58
- createdAt: _contractspec_lib_schema308.EntityScalarField;
59
- contact: _contractspec_lib_schema308.EntityRelationField;
60
- deal: _contractspec_lib_schema308.EntityRelationField;
61
- company: _contractspec_lib_schema308.EntityRelationField;
45
+ declare const ActivityEntity: _contractspec_lib_schema85.EntitySpec<{
46
+ id: _contractspec_lib_schema85.EntityScalarField;
47
+ type: _contractspec_lib_schema85.EntityEnumField;
48
+ subject: _contractspec_lib_schema85.EntityScalarField;
49
+ description: _contractspec_lib_schema85.EntityScalarField;
50
+ contactId: _contractspec_lib_schema85.EntityScalarField;
51
+ dealId: _contractspec_lib_schema85.EntityScalarField;
52
+ companyId: _contractspec_lib_schema85.EntityScalarField;
53
+ organizationId: _contractspec_lib_schema85.EntityScalarField;
54
+ performedBy: _contractspec_lib_schema85.EntityScalarField;
55
+ outcome: _contractspec_lib_schema85.EntityScalarField;
56
+ occurredAt: _contractspec_lib_schema85.EntityScalarField;
57
+ duration: _contractspec_lib_schema85.EntityScalarField;
58
+ createdAt: _contractspec_lib_schema85.EntityScalarField;
59
+ contact: _contractspec_lib_schema85.EntityRelationField;
60
+ deal: _contractspec_lib_schema85.EntityRelationField;
61
+ company: _contractspec_lib_schema85.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":";;;;;;AAUa,cAAA,YAKX,EAAA,2BAAA,CALuB,aAKvB;AAKF;AAUA;AAUA;AAiDE,cArEW,gBAqEX,EAhEA,2BAAA,CAL2B,aAqE3B;;;;cA3DW,gBAKX,2BAAA,CALyB;;;;cAUd,wCAAU;MAiDrB,2BAAA,CAAA;;;;;;;;;;;;2DAjDqB;EAAA,SAAA,+CAAA;EAsDV,WAAA,+CA0CX;EAAA,WAAA,+CAAA;;;;;;;;;;cA1CW,4CAAc;MA0CzB,2BAAA,CAAA;;;;;uDA1CyB;EAAA,SAAA,+CAAA"}
1
+ {"version":3,"file":"task.entity.d.ts","names":[],"sources":["../../src/entities/task.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,YAKX,EAAA,0BAAA,CALuB,aAKvB;AAKF;AAUA;AAUA;AAiDE,cArEW,gBAqEX,EAhEA,0BAAA,CAL2B,aAqE3B;;;;cA3DW,gBAKX,0BAAA,CALyB;;;;cAUd,uCAAU;MAiDrB,0BAAA,CAAA;;;;;;;;;;;;0DAjDqB;EAAA,SAAA,8CAAA;EAsDV,WAAA,8CA0CX;EAAA,WAAA,8CAAA;;;;;;;;;;cA1CW,2CAAc;MA0CzB,0BAAA,CAAA;;;;;sDA1CyB;EAAA,SAAA,8CAAA"}
@@ -1,26 +1,26 @@
1
- import * as _contractspec_lib_contracts8 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema350 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_contracts6 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema253 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/events/contact.event.d.ts
5
- declare const ContactCreatedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema350.SchemaModel<{
5
+ declare const ContactCreatedEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema253.SchemaModel<{
6
6
  contactId: {
7
- type: _contractspec_lib_schema350.FieldType<string, string>;
7
+ type: _contractspec_lib_schema253.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  email: {
11
- type: _contractspec_lib_schema350.FieldType<string, string>;
11
+ type: _contractspec_lib_schema253.FieldType<string, string>;
12
12
  isOptional: true;
13
13
  };
14
14
  organizationId: {
15
- type: _contractspec_lib_schema350.FieldType<string, string>;
15
+ type: _contractspec_lib_schema253.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  ownerId: {
19
- type: _contractspec_lib_schema350.FieldType<string, string>;
19
+ type: _contractspec_lib_schema253.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  createdAt: {
23
- type: _contractspec_lib_schema350.FieldType<Date, string>;
23
+ type: _contractspec_lib_schema253.FieldType<Date, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  }>>;
@@ -1,108 +1,108 @@
1
- import * as _contractspec_lib_contracts9 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema356 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_contracts7 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema329 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/events/deal.event.d.ts
5
- declare const DealCreatedEvent: _contractspec_lib_contracts9.EventSpec<_contractspec_lib_schema356.SchemaModel<{
5
+ declare const DealCreatedEvent: _contractspec_lib_contracts7.EventSpec<_contractspec_lib_schema329.SchemaModel<{
6
6
  dealId: {
7
- type: _contractspec_lib_schema356.FieldType<string, string>;
7
+ type: _contractspec_lib_schema329.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  name: {
11
- type: _contractspec_lib_schema356.FieldType<string, string>;
11
+ type: _contractspec_lib_schema329.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  value: {
15
- type: _contractspec_lib_schema356.FieldType<number, number>;
15
+ type: _contractspec_lib_schema329.FieldType<number, number>;
16
16
  isOptional: false;
17
17
  };
18
18
  pipelineId: {
19
- type: _contractspec_lib_schema356.FieldType<string, string>;
19
+ type: _contractspec_lib_schema329.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  stageId: {
23
- type: _contractspec_lib_schema356.FieldType<string, string>;
23
+ type: _contractspec_lib_schema329.FieldType<string, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  ownerId: {
27
- type: _contractspec_lib_schema356.FieldType<string, string>;
27
+ type: _contractspec_lib_schema329.FieldType<string, string>;
28
28
  isOptional: false;
29
29
  };
30
30
  createdAt: {
31
- type: _contractspec_lib_schema356.FieldType<Date, string>;
31
+ type: _contractspec_lib_schema329.FieldType<Date, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  }>>;
35
- declare const DealMovedEvent: _contractspec_lib_contracts9.EventSpec<_contractspec_lib_schema356.SchemaModel<{
35
+ declare const DealMovedEvent: _contractspec_lib_contracts7.EventSpec<_contractspec_lib_schema329.SchemaModel<{
36
36
  dealId: {
37
- type: _contractspec_lib_schema356.FieldType<string, string>;
37
+ type: _contractspec_lib_schema329.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  fromStageId: {
41
- type: _contractspec_lib_schema356.FieldType<string, string>;
41
+ type: _contractspec_lib_schema329.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  toStageId: {
45
- type: _contractspec_lib_schema356.FieldType<string, string>;
45
+ type: _contractspec_lib_schema329.FieldType<string, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  movedBy: {
49
- type: _contractspec_lib_schema356.FieldType<string, string>;
49
+ type: _contractspec_lib_schema329.FieldType<string, string>;
50
50
  isOptional: false;
51
51
  };
52
52
  movedAt: {
53
- type: _contractspec_lib_schema356.FieldType<Date, string>;
53
+ type: _contractspec_lib_schema329.FieldType<Date, string>;
54
54
  isOptional: false;
55
55
  };
56
56
  }>>;
57
- declare const DealWonEvent: _contractspec_lib_contracts9.EventSpec<_contractspec_lib_schema356.SchemaModel<{
57
+ declare const DealWonEvent: _contractspec_lib_contracts7.EventSpec<_contractspec_lib_schema329.SchemaModel<{
58
58
  dealId: {
59
- type: _contractspec_lib_schema356.FieldType<string, string>;
59
+ type: _contractspec_lib_schema329.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  value: {
63
- type: _contractspec_lib_schema356.FieldType<number, number>;
63
+ type: _contractspec_lib_schema329.FieldType<number, number>;
64
64
  isOptional: false;
65
65
  };
66
66
  currency: {
67
- type: _contractspec_lib_schema356.FieldType<string, string>;
67
+ type: _contractspec_lib_schema329.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  contactId: {
71
- type: _contractspec_lib_schema356.FieldType<string, string>;
71
+ type: _contractspec_lib_schema329.FieldType<string, string>;
72
72
  isOptional: true;
73
73
  };
74
74
  companyId: {
75
- type: _contractspec_lib_schema356.FieldType<string, string>;
75
+ type: _contractspec_lib_schema329.FieldType<string, string>;
76
76
  isOptional: true;
77
77
  };
78
78
  ownerId: {
79
- type: _contractspec_lib_schema356.FieldType<string, string>;
79
+ type: _contractspec_lib_schema329.FieldType<string, string>;
80
80
  isOptional: false;
81
81
  };
82
82
  wonAt: {
83
- type: _contractspec_lib_schema356.FieldType<Date, string>;
83
+ type: _contractspec_lib_schema329.FieldType<Date, string>;
84
84
  isOptional: false;
85
85
  };
86
86
  }>>;
87
- declare const DealLostEvent: _contractspec_lib_contracts9.EventSpec<_contractspec_lib_schema356.SchemaModel<{
87
+ declare const DealLostEvent: _contractspec_lib_contracts7.EventSpec<_contractspec_lib_schema329.SchemaModel<{
88
88
  dealId: {
89
- type: _contractspec_lib_schema356.FieldType<string, string>;
89
+ type: _contractspec_lib_schema329.FieldType<string, string>;
90
90
  isOptional: false;
91
91
  };
92
92
  value: {
93
- type: _contractspec_lib_schema356.FieldType<number, number>;
93
+ type: _contractspec_lib_schema329.FieldType<number, number>;
94
94
  isOptional: false;
95
95
  };
96
96
  reason: {
97
- type: _contractspec_lib_schema356.FieldType<string, string>;
97
+ type: _contractspec_lib_schema329.FieldType<string, string>;
98
98
  isOptional: false;
99
99
  };
100
100
  ownerId: {
101
- type: _contractspec_lib_schema356.FieldType<string, string>;
101
+ type: _contractspec_lib_schema329.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  lostAt: {
105
- type: _contractspec_lib_schema356.FieldType<Date, string>;
105
+ type: _contractspec_lib_schema329.FieldType<Date, string>;
106
106
  isOptional: false;
107
107
  };
108
108
  }>>;
@@ -1,26 +1,26 @@
1
1
  import * as _contractspec_lib_contracts13 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema384 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_schema357 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/events/task.event.d.ts
5
- declare const TaskCompletedEvent: _contractspec_lib_contracts13.EventSpec<_contractspec_lib_schema384.SchemaModel<{
5
+ declare const TaskCompletedEvent: _contractspec_lib_contracts13.EventSpec<_contractspec_lib_schema357.SchemaModel<{
6
6
  taskId: {
7
- type: _contractspec_lib_schema384.FieldType<string, string>;
7
+ type: _contractspec_lib_schema357.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  type: {
11
- type: _contractspec_lib_schema384.FieldType<string, string>;
11
+ type: _contractspec_lib_schema357.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  assignedTo: {
15
- type: _contractspec_lib_schema384.FieldType<string, string>;
15
+ type: _contractspec_lib_schema357.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  completedBy: {
19
- type: _contractspec_lib_schema384.FieldType<string, string>;
19
+ type: _contractspec_lib_schema357.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  completedAt: {
23
- type: _contractspec_lib_schema384.FieldType<Date, string>;
23
+ type: _contractspec_lib_schema357.FieldType<Date, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  }>>;
package/dist/index.d.ts CHANGED
@@ -31,14 +31,14 @@ import { crmPipelineReactRenderer } from "./ui/renderers/pipeline.renderer.js";
31
31
  import { crmDashboardMarkdownRenderer, crmPipelineMarkdownRenderer } from "./ui/renderers/pipeline.markdown.js";
32
32
  import { crmDemoOverlay, crmOverlays, crmSalesRepOverlay } from "./ui/overlays/demo-overlays.js";
33
33
  import "./ui/index.js";
34
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
34
+ import * as _contractspec_lib_schema82 from "@contractspec/lib.schema";
35
35
 
36
36
  //#region src/index.d.ts
37
37
  /**
38
38
  * Complete schema composition for CRM Pipeline.
39
39
  */
40
40
  declare const schemaComposition: {
41
- modules: _contractspec_lib_schema0.ModuleSchemaContribution[];
41
+ modules: _contractspec_lib_schema82.ModuleSchemaContribution[];
42
42
  provider: "postgresql";
43
43
  outputPath: string;
44
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBa;WASZ,yBAAA,CAAA,wBAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBa;WASZ,0BAAA,CAAA,wBAAA"}
@@ -1,14 +1,14 @@
1
- import * as _contractspec_lib_contracts18 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts14 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/presentations/dashboard.presentation.d.ts
4
4
  /**
5
5
  * Main CRM dashboard presentation.
6
6
  */
7
- declare const CrmDashboardPresentation: _contractspec_lib_contracts18.PresentationSpec;
7
+ declare const CrmDashboardPresentation: _contractspec_lib_contracts14.PresentationSpec;
8
8
  /**
9
9
  * Pipeline metrics presentation.
10
10
  */
11
- declare const PipelineMetricsPresentation: _contractspec_lib_contracts18.PresentationSpec;
11
+ declare const PipelineMetricsPresentation: _contractspec_lib_contracts14.PresentationSpec;
12
12
  //#endregion
13
13
  export { CrmDashboardPresentation, PipelineMetricsPresentation };
14
14
  //# sourceMappingURL=dashboard.presentation.d.ts.map
@@ -1,22 +1,22 @@
1
- import * as _contractspec_lib_contracts14 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts16 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/presentations/pipeline.presentation.d.ts
4
4
  /**
5
5
  * Kanban board presentation for the sales pipeline.
6
6
  */
7
- declare const PipelineKanbanPresentation: _contractspec_lib_contracts14.PresentationSpec;
7
+ declare const PipelineKanbanPresentation: _contractspec_lib_contracts16.PresentationSpec;
8
8
  /**
9
9
  * List view of deals with filtering.
10
10
  */
11
- declare const DealListPresentation: _contractspec_lib_contracts14.PresentationSpec;
11
+ declare const DealListPresentation: _contractspec_lib_contracts16.PresentationSpec;
12
12
  /**
13
13
  * Deal detail presentation.
14
14
  */
15
- declare const DealDetailPresentation: _contractspec_lib_contracts14.PresentationSpec;
15
+ declare const DealDetailPresentation: _contractspec_lib_contracts16.PresentationSpec;
16
16
  /**
17
17
  * Deal card for kanban board.
18
18
  */
19
- declare const DealCardPresentation: _contractspec_lib_contracts14.PresentationSpec;
19
+ declare const DealCardPresentation: _contractspec_lib_contracts16.PresentationSpec;
20
20
  //#endregion
21
21
  export { DealCardPresentation, DealDetailPresentation, DealListPresentation, PipelineKanbanPresentation };
22
22
  //# sourceMappingURL=pipeline.presentation.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime2 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/ui/modals/CreateDealModal.d.ts
4
4
  interface CreateDealInput {
@@ -27,7 +27,7 @@ declare function CreateDealModal({
27
27
  onSubmit,
28
28
  stages,
29
29
  isLoading
30
- }: CreateDealModalProps): react_jsx_runtime2.JSX.Element | null;
30
+ }: CreateDealModalProps): react_jsx_runtime3.JSX.Element | null;
31
31
  //#endregion
32
32
  export { CreateDealInput, CreateDealModal };
33
33
  //# sourceMappingURL=CreateDealModal.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/ui/modals/DealActionsModal.d.ts
4
4
  interface Deal {
@@ -45,7 +45,7 @@ declare function DealActionsModal({
45
45
  onLose,
46
46
  onMove,
47
47
  isLoading
48
- }: DealActionsModalProps): react_jsx_runtime3.JSX.Element | null;
48
+ }: DealActionsModalProps): react_jsx_runtime2.JSX.Element | null;
49
49
  //#endregion
50
50
  export { Deal, DealActionsModal, LoseDealInput, MoveDealInput, WinDealInput };
51
51
  //# sourceMappingURL=DealActionsModal.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.crm-pipeline",
3
- "version": "1.47.0",
3
+ "version": "1.48.1",
4
4
  "description": "CRM Pipeline - Contacts, Companies, Deals, Tasks",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -62,24 +62,25 @@
62
62
  "lint": "bun lint:fix",
63
63
  "lint:fix": "eslint src --fix",
64
64
  "lint:check": "eslint src",
65
- "test": "bun test"
65
+ "test": "bun test",
66
+ "validate": "contractspec validate"
66
67
  },
67
68
  "dependencies": {
68
- "@contractspec/lib.contracts": "1.47.0",
69
- "@contractspec/lib.design-system": "1.47.0",
70
- "@contractspec/lib.example-shared-ui": "1.1.0",
71
- "@contractspec/lib.identity-rbac": "1.47.0",
72
- "@contractspec/lib.runtime-sandbox": "0.2.0",
73
- "@contractspec/lib.schema": "1.47.0",
74
- "@contractspec/lib.ui-kit-web": "1.47.0",
75
- "@contractspec/module.audit-trail": "1.47.0",
76
- "@contractspec/module.notifications": "1.47.0",
69
+ "@contractspec/lib.contracts": "1.48.1",
70
+ "@contractspec/lib.design-system": "1.48.1",
71
+ "@contractspec/lib.example-shared-ui": "1.2.1",
72
+ "@contractspec/lib.identity-rbac": "1.48.1",
73
+ "@contractspec/lib.runtime-sandbox": "0.3.0",
74
+ "@contractspec/lib.schema": "1.48.0",
75
+ "@contractspec/lib.ui-kit-web": "1.48.0",
76
+ "@contractspec/module.audit-trail": "1.48.1",
77
+ "@contractspec/module.notifications": "1.48.1",
77
78
  "react": "19.2.3",
78
79
  "react-dom": "19.2.3"
79
80
  },
80
81
  "devDependencies": {
81
- "@contractspec/tool.tsdown": "1.47.0",
82
- "@contractspec/tool.typescript": "1.47.0",
82
+ "@contractspec/tool.tsdown": "1.48.0",
83
+ "@contractspec/tool.typescript": "1.48.0",
83
84
  "tsdown": "^0.19.0",
84
85
  "typescript": "^5.9.3",
85
86
  "@types/react": "^19.2.8",
@@ -43,7 +43,27 @@ const crmPipelineDocBlocks: DocBlock[] = [
43
43
  ## Guardrails
44
44
  - Emit events for stage moves and task completions; log to Audit Trail.
45
45
  - Keep required fields enforced in contracts; avoid freeform state.
46
- - Redact contact PII in markdown/JSON outputs.`,
46
+ - Redact contact PII in markdown/JSON outputs.
47
+
48
+ ## Adoption narrative
49
+
50
+ ### Before
51
+ - A CRM app with hand-written data models and handler logic.
52
+ - Pipeline stage rules live in code and drift across UI/API/events.
53
+ - Regeneration is risky because specs and implementations are not aligned.
54
+
55
+ ### After
56
+ - Contracts define deals, stages, and tasks as the source of truth.
57
+ - Regeneration keeps UI/API/events in sync when stages change.
58
+ - Compliance surfaces (audits, notifications) stay consistent with specs.
59
+
60
+ ### Minimal adoption steps
61
+ 1) Add ContractSpec CLI and core libraries.
62
+ 2) Define one operation (for example, deal/create).
63
+ 3) Run contractspec build to generate handlers and types.
64
+ 4) Wire the generated handler into your existing router.
65
+ 5) Expand to events and presentations as you add surface areas.
66
+ `,
47
67
  },
48
68
  {
49
69
  id: 'docs.examples.crm-pipeline.reference',