@contractspec/example.crm-pipeline 1.44.1 → 1.45.0

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.
Files changed (48) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +25 -25
  2. package/.turbo/turbo-build.log +22 -22
  3. package/CHANGELOG.md +31 -0
  4. package/dist/crm-pipeline.feature.js +29 -29
  5. package/dist/crm-pipeline.feature.js.map +1 -1
  6. package/dist/deal/deal.enum.d.ts +3 -3
  7. package/dist/deal/deal.enum.d.ts.map +1 -1
  8. package/dist/deal/deal.operation.d.ts +132 -132
  9. package/dist/deal/deal.operation.d.ts.map +1 -1
  10. package/dist/deal/deal.operation.js +9 -9
  11. package/dist/deal/deal.operation.js.map +1 -1
  12. package/dist/deal/deal.schema.d.ts +71 -71
  13. package/dist/deal/deal.schema.d.ts.map +1 -1
  14. package/dist/entities/company.entity.d.ts +28 -28
  15. package/dist/entities/company.entity.d.ts.map +1 -1
  16. package/dist/entities/contact.entity.d.ts +32 -32
  17. package/dist/entities/contact.entity.d.ts.map +1 -1
  18. package/dist/entities/deal.entity.d.ts +53 -53
  19. package/dist/entities/task.entity.d.ts +43 -43
  20. package/dist/events/contact.event.d.ts +8 -8
  21. package/dist/events/contact.event.js +1 -1
  22. package/dist/events/contact.event.js.map +1 -1
  23. package/dist/events/deal.event.d.ts +30 -30
  24. package/dist/events/deal.event.js +4 -4
  25. package/dist/events/deal.event.js.map +1 -1
  26. package/dist/events/task.event.d.ts +8 -8
  27. package/dist/events/task.event.js +1 -1
  28. package/dist/events/task.event.js.map +1 -1
  29. package/dist/example.d.ts +3 -33
  30. package/dist/example.d.ts.map +1 -1
  31. package/dist/example.js +16 -11
  32. package/dist/example.js.map +1 -1
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/presentations/dashboard.presentation.js +2 -2
  36. package/dist/presentations/dashboard.presentation.js.map +1 -1
  37. package/dist/presentations/pipeline.presentation.js +4 -4
  38. package/dist/presentations/pipeline.presentation.js.map +1 -1
  39. package/package.json +10 -10
  40. package/src/crm-pipeline.feature.ts +33 -29
  41. package/src/deal/deal.operation.ts +9 -9
  42. package/src/events/contact.event.ts +1 -1
  43. package/src/events/deal.event.ts +4 -4
  44. package/src/events/task.event.ts +1 -1
  45. package/src/example.ts +16 -8
  46. package/src/presentations/dashboard.presentation.ts +2 -2
  47. package/src/presentations/pipeline.presentation.ts +4 -4
  48. package/tsconfig.tsbuildinfo +1 -1
@@ -1,43 +1,43 @@
1
- import * as _contractspec_lib_schema225 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema96 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/entities/contact.entity.d.ts
4
4
  /**
5
5
  * Contact status enum.
6
6
  */
7
- declare const ContactStatusEnum: _contractspec_lib_schema225.EntityEnumDef;
7
+ declare const ContactStatusEnum: _contractspec_lib_schema96.EntityEnumDef;
8
8
  /**
9
9
  * Contact entity - individual person.
10
10
  */
11
- declare const ContactEntity: _contractspec_lib_schema225.EntitySpec<{
12
- id: _contractspec_lib_schema225.EntityScalarField;
13
- firstName: _contractspec_lib_schema225.EntityScalarField;
14
- lastName: _contractspec_lib_schema225.EntityScalarField;
15
- email: _contractspec_lib_schema225.EntityScalarField;
16
- phone: _contractspec_lib_schema225.EntityScalarField;
17
- companyId: _contractspec_lib_schema225.EntityScalarField;
18
- jobTitle: _contractspec_lib_schema225.EntityScalarField;
19
- status: _contractspec_lib_schema225.EntityEnumField;
20
- organizationId: _contractspec_lib_schema225.EntityScalarField;
21
- ownerId: _contractspec_lib_schema225.EntityScalarField;
22
- source: _contractspec_lib_schema225.EntityScalarField;
23
- linkedInUrl: _contractspec_lib_schema225.EntityScalarField;
24
- twitterHandle: _contractspec_lib_schema225.EntityScalarField;
25
- address: _contractspec_lib_schema225.EntityScalarField;
26
- city: _contractspec_lib_schema225.EntityScalarField;
27
- state: _contractspec_lib_schema225.EntityScalarField;
28
- country: _contractspec_lib_schema225.EntityScalarField;
29
- postalCode: _contractspec_lib_schema225.EntityScalarField;
30
- notes: _contractspec_lib_schema225.EntityScalarField;
31
- tags: _contractspec_lib_schema225.EntityScalarField;
32
- customFields: _contractspec_lib_schema225.EntityScalarField;
33
- lastContactedAt: _contractspec_lib_schema225.EntityScalarField;
34
- nextFollowUpAt: _contractspec_lib_schema225.EntityScalarField;
35
- createdAt: _contractspec_lib_schema225.EntityScalarField;
36
- updatedAt: _contractspec_lib_schema225.EntityScalarField;
37
- company: _contractspec_lib_schema225.EntityRelationField;
38
- deals: _contractspec_lib_schema225.EntityRelationField;
39
- tasks: _contractspec_lib_schema225.EntityRelationField;
40
- activities: _contractspec_lib_schema225.EntityRelationField;
11
+ declare const ContactEntity: _contractspec_lib_schema96.EntitySpec<{
12
+ id: _contractspec_lib_schema96.EntityScalarField;
13
+ firstName: _contractspec_lib_schema96.EntityScalarField;
14
+ lastName: _contractspec_lib_schema96.EntityScalarField;
15
+ email: _contractspec_lib_schema96.EntityScalarField;
16
+ phone: _contractspec_lib_schema96.EntityScalarField;
17
+ companyId: _contractspec_lib_schema96.EntityScalarField;
18
+ jobTitle: _contractspec_lib_schema96.EntityScalarField;
19
+ status: _contractspec_lib_schema96.EntityEnumField;
20
+ organizationId: _contractspec_lib_schema96.EntityScalarField;
21
+ ownerId: _contractspec_lib_schema96.EntityScalarField;
22
+ source: _contractspec_lib_schema96.EntityScalarField;
23
+ linkedInUrl: _contractspec_lib_schema96.EntityScalarField;
24
+ twitterHandle: _contractspec_lib_schema96.EntityScalarField;
25
+ address: _contractspec_lib_schema96.EntityScalarField;
26
+ city: _contractspec_lib_schema96.EntityScalarField;
27
+ state: _contractspec_lib_schema96.EntityScalarField;
28
+ country: _contractspec_lib_schema96.EntityScalarField;
29
+ postalCode: _contractspec_lib_schema96.EntityScalarField;
30
+ notes: _contractspec_lib_schema96.EntityScalarField;
31
+ tags: _contractspec_lib_schema96.EntityScalarField;
32
+ customFields: _contractspec_lib_schema96.EntityScalarField;
33
+ lastContactedAt: _contractspec_lib_schema96.EntityScalarField;
34
+ nextFollowUpAt: _contractspec_lib_schema96.EntityScalarField;
35
+ createdAt: _contractspec_lib_schema96.EntityScalarField;
36
+ updatedAt: _contractspec_lib_schema96.EntityScalarField;
37
+ company: _contractspec_lib_schema96.EntityRelationField;
38
+ deals: _contractspec_lib_schema96.EntityRelationField;
39
+ tasks: _contractspec_lib_schema96.EntityRelationField;
40
+ activities: _contractspec_lib_schema96.EntityRelationField;
41
41
  }>;
42
42
  //#endregion
43
43
  export { ContactEntity, ContactStatusEnum };
@@ -1 +1 @@
1
- {"version":3,"file":"contact.entity.d.ts","names":[],"sources":["../../src/entities/contact.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,iBAKX,EAAA,2BAAA,CAL4B,aAK5B;AAKF;;;cAAa,2CAAa;MAwExB,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;wDAxEwB;EAAA,KAAA,iDAAA"}
1
+ {"version":3,"file":"contact.entity.d.ts","names":[],"sources":["../../src/entities/contact.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,iBAKX,EAAA,0BAAA,CAL4B,aAK5B;AAKF;;;cAAa,0CAAa;MAwExB,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;uDAxEwB;EAAA,KAAA,gDAAA"}
@@ -1,72 +1,72 @@
1
- import * as _contractspec_lib_schema256 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema127 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_schema256.EntityEnumDef;
7
+ declare const DealStatusEnum: _contractspec_lib_schema127.EntityEnumDef;
8
8
  /**
9
9
  * Pipeline entity - sales pipeline definition.
10
10
  */
11
- declare const PipelineEntity: _contractspec_lib_schema256.EntitySpec<{
12
- id: _contractspec_lib_schema256.EntityScalarField;
13
- name: _contractspec_lib_schema256.EntityScalarField;
14
- description: _contractspec_lib_schema256.EntityScalarField;
15
- organizationId: _contractspec_lib_schema256.EntityScalarField;
16
- isDefault: _contractspec_lib_schema256.EntityScalarField;
17
- createdAt: _contractspec_lib_schema256.EntityScalarField;
18
- updatedAt: _contractspec_lib_schema256.EntityScalarField;
19
- stages: _contractspec_lib_schema256.EntityRelationField;
20
- deals: _contractspec_lib_schema256.EntityRelationField;
11
+ declare const PipelineEntity: _contractspec_lib_schema127.EntitySpec<{
12
+ id: _contractspec_lib_schema127.EntityScalarField;
13
+ name: _contractspec_lib_schema127.EntityScalarField;
14
+ description: _contractspec_lib_schema127.EntityScalarField;
15
+ organizationId: _contractspec_lib_schema127.EntityScalarField;
16
+ isDefault: _contractspec_lib_schema127.EntityScalarField;
17
+ createdAt: _contractspec_lib_schema127.EntityScalarField;
18
+ updatedAt: _contractspec_lib_schema127.EntityScalarField;
19
+ stages: _contractspec_lib_schema127.EntityRelationField;
20
+ deals: _contractspec_lib_schema127.EntityRelationField;
21
21
  }>;
22
22
  /**
23
23
  * Stage entity - pipeline stage.
24
24
  */
25
- declare const StageEntity: _contractspec_lib_schema256.EntitySpec<{
26
- id: _contractspec_lib_schema256.EntityScalarField;
27
- name: _contractspec_lib_schema256.EntityScalarField;
28
- pipelineId: _contractspec_lib_schema256.EntityScalarField;
29
- position: _contractspec_lib_schema256.EntityScalarField;
30
- probability: _contractspec_lib_schema256.EntityScalarField;
31
- isWonStage: _contractspec_lib_schema256.EntityScalarField;
32
- isLostStage: _contractspec_lib_schema256.EntityScalarField;
33
- color: _contractspec_lib_schema256.EntityScalarField;
34
- createdAt: _contractspec_lib_schema256.EntityScalarField;
35
- updatedAt: _contractspec_lib_schema256.EntityScalarField;
36
- pipeline: _contractspec_lib_schema256.EntityRelationField;
37
- deals: _contractspec_lib_schema256.EntityRelationField;
25
+ declare const StageEntity: _contractspec_lib_schema127.EntitySpec<{
26
+ id: _contractspec_lib_schema127.EntityScalarField;
27
+ name: _contractspec_lib_schema127.EntityScalarField;
28
+ pipelineId: _contractspec_lib_schema127.EntityScalarField;
29
+ position: _contractspec_lib_schema127.EntityScalarField;
30
+ probability: _contractspec_lib_schema127.EntityScalarField;
31
+ isWonStage: _contractspec_lib_schema127.EntityScalarField;
32
+ isLostStage: _contractspec_lib_schema127.EntityScalarField;
33
+ color: _contractspec_lib_schema127.EntityScalarField;
34
+ createdAt: _contractspec_lib_schema127.EntityScalarField;
35
+ updatedAt: _contractspec_lib_schema127.EntityScalarField;
36
+ pipeline: _contractspec_lib_schema127.EntityRelationField;
37
+ deals: _contractspec_lib_schema127.EntityRelationField;
38
38
  }>;
39
39
  /**
40
40
  * Deal entity - sales opportunity.
41
41
  */
42
- declare const DealEntity: _contractspec_lib_schema256.EntitySpec<{
43
- id: _contractspec_lib_schema256.EntityScalarField;
44
- name: _contractspec_lib_schema256.EntityScalarField;
45
- value: _contractspec_lib_schema256.EntityScalarField;
46
- currency: _contractspec_lib_schema256.EntityScalarField;
47
- pipelineId: _contractspec_lib_schema256.EntityScalarField;
48
- stageId: _contractspec_lib_schema256.EntityScalarField;
49
- status: _contractspec_lib_schema256.EntityEnumField;
50
- contactId: _contractspec_lib_schema256.EntityScalarField;
51
- companyId: _contractspec_lib_schema256.EntityScalarField;
52
- organizationId: _contractspec_lib_schema256.EntityScalarField;
53
- ownerId: _contractspec_lib_schema256.EntityScalarField;
54
- expectedCloseDate: _contractspec_lib_schema256.EntityScalarField;
55
- closedAt: _contractspec_lib_schema256.EntityScalarField;
56
- lostReason: _contractspec_lib_schema256.EntityScalarField;
57
- wonSource: _contractspec_lib_schema256.EntityScalarField;
58
- notes: _contractspec_lib_schema256.EntityScalarField;
59
- tags: _contractspec_lib_schema256.EntityScalarField;
60
- customFields: _contractspec_lib_schema256.EntityScalarField;
61
- stagePosition: _contractspec_lib_schema256.EntityScalarField;
62
- createdAt: _contractspec_lib_schema256.EntityScalarField;
63
- updatedAt: _contractspec_lib_schema256.EntityScalarField;
64
- pipeline: _contractspec_lib_schema256.EntityRelationField;
65
- stage: _contractspec_lib_schema256.EntityRelationField;
66
- contact: _contractspec_lib_schema256.EntityRelationField;
67
- company: _contractspec_lib_schema256.EntityRelationField;
68
- tasks: _contractspec_lib_schema256.EntityRelationField;
69
- activities: _contractspec_lib_schema256.EntityRelationField;
42
+ declare const DealEntity: _contractspec_lib_schema127.EntitySpec<{
43
+ id: _contractspec_lib_schema127.EntityScalarField;
44
+ name: _contractspec_lib_schema127.EntityScalarField;
45
+ value: _contractspec_lib_schema127.EntityScalarField;
46
+ currency: _contractspec_lib_schema127.EntityScalarField;
47
+ pipelineId: _contractspec_lib_schema127.EntityScalarField;
48
+ stageId: _contractspec_lib_schema127.EntityScalarField;
49
+ status: _contractspec_lib_schema127.EntityEnumField;
50
+ contactId: _contractspec_lib_schema127.EntityScalarField;
51
+ companyId: _contractspec_lib_schema127.EntityScalarField;
52
+ organizationId: _contractspec_lib_schema127.EntityScalarField;
53
+ ownerId: _contractspec_lib_schema127.EntityScalarField;
54
+ expectedCloseDate: _contractspec_lib_schema127.EntityScalarField;
55
+ closedAt: _contractspec_lib_schema127.EntityScalarField;
56
+ lostReason: _contractspec_lib_schema127.EntityScalarField;
57
+ wonSource: _contractspec_lib_schema127.EntityScalarField;
58
+ notes: _contractspec_lib_schema127.EntityScalarField;
59
+ tags: _contractspec_lib_schema127.EntityScalarField;
60
+ customFields: _contractspec_lib_schema127.EntityScalarField;
61
+ stagePosition: _contractspec_lib_schema127.EntityScalarField;
62
+ createdAt: _contractspec_lib_schema127.EntityScalarField;
63
+ updatedAt: _contractspec_lib_schema127.EntityScalarField;
64
+ pipeline: _contractspec_lib_schema127.EntityRelationField;
65
+ stage: _contractspec_lib_schema127.EntityRelationField;
66
+ contact: _contractspec_lib_schema127.EntityRelationField;
67
+ company: _contractspec_lib_schema127.EntityRelationField;
68
+ tasks: _contractspec_lib_schema127.EntityRelationField;
69
+ activities: _contractspec_lib_schema127.EntityRelationField;
70
70
  }>;
71
71
  //#endregion
72
72
  export { DealEntity, DealStatusEnum, PipelineEntity, StageEntity };
@@ -1,64 +1,64 @@
1
- import * as _contractspec_lib_schema308 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema179 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_schema179.EntityEnumDef;
8
8
  /**
9
9
  * Task priority enum.
10
10
  */
11
- declare const TaskPriorityEnum: _contractspec_lib_schema308.EntityEnumDef;
11
+ declare const TaskPriorityEnum: _contractspec_lib_schema179.EntityEnumDef;
12
12
  /**
13
13
  * Task status enum.
14
14
  */
15
- declare const TaskStatusEnum: _contractspec_lib_schema308.EntityEnumDef;
15
+ declare const TaskStatusEnum: _contractspec_lib_schema179.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_schema179.EntitySpec<{
20
+ id: _contractspec_lib_schema179.EntityScalarField;
21
+ title: _contractspec_lib_schema179.EntityScalarField;
22
+ description: _contractspec_lib_schema179.EntityScalarField;
23
+ type: _contractspec_lib_schema179.EntityEnumField;
24
+ priority: _contractspec_lib_schema179.EntityEnumField;
25
+ status: _contractspec_lib_schema179.EntityEnumField;
26
+ dueDate: _contractspec_lib_schema179.EntityScalarField;
27
+ reminderAt: _contractspec_lib_schema179.EntityScalarField;
28
+ contactId: _contractspec_lib_schema179.EntityScalarField;
29
+ dealId: _contractspec_lib_schema179.EntityScalarField;
30
+ companyId: _contractspec_lib_schema179.EntityScalarField;
31
+ organizationId: _contractspec_lib_schema179.EntityScalarField;
32
+ assignedTo: _contractspec_lib_schema179.EntityScalarField;
33
+ createdBy: _contractspec_lib_schema179.EntityScalarField;
34
+ completedAt: _contractspec_lib_schema179.EntityScalarField;
35
+ completedBy: _contractspec_lib_schema179.EntityScalarField;
36
+ createdAt: _contractspec_lib_schema179.EntityScalarField;
37
+ updatedAt: _contractspec_lib_schema179.EntityScalarField;
38
+ contact: _contractspec_lib_schema179.EntityRelationField;
39
+ deal: _contractspec_lib_schema179.EntityRelationField;
40
+ company: _contractspec_lib_schema179.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_schema179.EntitySpec<{
46
+ id: _contractspec_lib_schema179.EntityScalarField;
47
+ type: _contractspec_lib_schema179.EntityEnumField;
48
+ subject: _contractspec_lib_schema179.EntityScalarField;
49
+ description: _contractspec_lib_schema179.EntityScalarField;
50
+ contactId: _contractspec_lib_schema179.EntityScalarField;
51
+ dealId: _contractspec_lib_schema179.EntityScalarField;
52
+ companyId: _contractspec_lib_schema179.EntityScalarField;
53
+ organizationId: _contractspec_lib_schema179.EntityScalarField;
54
+ performedBy: _contractspec_lib_schema179.EntityScalarField;
55
+ outcome: _contractspec_lib_schema179.EntityScalarField;
56
+ occurredAt: _contractspec_lib_schema179.EntityScalarField;
57
+ duration: _contractspec_lib_schema179.EntityScalarField;
58
+ createdAt: _contractspec_lib_schema179.EntityScalarField;
59
+ contact: _contractspec_lib_schema179.EntityRelationField;
60
+ deal: _contractspec_lib_schema179.EntityRelationField;
61
+ company: _contractspec_lib_schema179.EntityRelationField;
62
62
  }>;
63
63
  //#endregion
64
64
  export { ActivityEntity, TaskEntity, TaskPriorityEnum, TaskStatusEnum, TaskTypeEnum };
@@ -1,26 +1,26 @@
1
- import * as _contractspec_lib_schema350 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts4 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_schema221 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/events/contact.event.d.ts
5
- declare const ContactCreatedEvent: _contractspec_lib_contracts4.EventSpec<_contractspec_lib_schema350.SchemaModel<{
5
+ declare const ContactCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema221.SchemaModel<{
6
6
  contactId: {
7
- type: _contractspec_lib_schema350.FieldType<string, string>;
7
+ type: _contractspec_lib_schema221.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  email: {
11
- type: _contractspec_lib_schema350.FieldType<string, string>;
11
+ type: _contractspec_lib_schema221.FieldType<string, string>;
12
12
  isOptional: true;
13
13
  };
14
14
  organizationId: {
15
- type: _contractspec_lib_schema350.FieldType<string, string>;
15
+ type: _contractspec_lib_schema221.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  ownerId: {
19
- type: _contractspec_lib_schema350.FieldType<string, string>;
19
+ type: _contractspec_lib_schema221.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  createdAt: {
23
- type: _contractspec_lib_schema350.FieldType<Date, string>;
23
+ type: _contractspec_lib_schema221.FieldType<Date, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  }>>;
@@ -31,7 +31,7 @@ const ContactCreatedPayload = defineSchemaModel({
31
31
  const ContactCreatedEvent = defineEvent({
32
32
  meta: {
33
33
  key: "contact.created",
34
- version: 1,
34
+ version: "1.0.0",
35
35
  description: "A new contact has been created.",
36
36
  stability: "stable",
37
37
  owners: ["@crm-team"],
@@ -1 +1 @@
1
- {"version":3,"file":"contact.event.js","names":[],"sources":["../../src/events/contact.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\n// ============ Contact Event Payloads ============\n\nconst ContactCreatedPayload = defineSchemaModel({\n name: 'ContactCreatedPayload',\n description: 'Payload when a contact is created',\n fields: {\n contactId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n email: { type: ScalarTypeEnum.EmailAddress(), isOptional: true },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const ContactCreatedEvent = defineEvent({\n meta: {\n key: 'contact.created',\n version: 1,\n description: 'A new contact has been created.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['contact', 'created'],\n },\n payload: ContactCreatedPayload,\n});\n"],"mappings":";;;;AAKA,MAAM,wBAAwB,kBAAkB;CAC9C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,OAAO;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EAChE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,sBAAsB,YAAY;CAC7C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,YAAY;EACrB,MAAM,CAAC,WAAW,UAAU;EAC7B;CACD,SAAS;CACV,CAAC"}
1
+ {"version":3,"file":"contact.event.js","names":[],"sources":["../../src/events/contact.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\n// ============ Contact Event Payloads ============\n\nconst ContactCreatedPayload = defineSchemaModel({\n name: 'ContactCreatedPayload',\n description: 'Payload when a contact is created',\n fields: {\n contactId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n email: { type: ScalarTypeEnum.EmailAddress(), isOptional: true },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const ContactCreatedEvent = defineEvent({\n meta: {\n key: 'contact.created',\n version: '1.0.0',\n description: 'A new contact has been created.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['contact', 'created'],\n },\n payload: ContactCreatedPayload,\n});\n"],"mappings":";;;;AAKA,MAAM,wBAAwB,kBAAkB;CAC9C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,OAAO;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EAChE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,sBAAsB,YAAY;CAC7C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,YAAY;EACrB,MAAM,CAAC,WAAW,UAAU;EAC7B;CACD,SAAS;CACV,CAAC"}
@@ -1,108 +1,108 @@
1
- import * as _contractspec_lib_schema356 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts5 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_schema362 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts6 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/events/deal.event.d.ts
5
- declare const DealCreatedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema356.SchemaModel<{
5
+ declare const DealCreatedEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema362.SchemaModel<{
6
6
  dealId: {
7
- type: _contractspec_lib_schema356.FieldType<string, string>;
7
+ type: _contractspec_lib_schema362.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  name: {
11
- type: _contractspec_lib_schema356.FieldType<string, string>;
11
+ type: _contractspec_lib_schema362.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  value: {
15
- type: _contractspec_lib_schema356.FieldType<number, number>;
15
+ type: _contractspec_lib_schema362.FieldType<number, number>;
16
16
  isOptional: false;
17
17
  };
18
18
  pipelineId: {
19
- type: _contractspec_lib_schema356.FieldType<string, string>;
19
+ type: _contractspec_lib_schema362.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  stageId: {
23
- type: _contractspec_lib_schema356.FieldType<string, string>;
23
+ type: _contractspec_lib_schema362.FieldType<string, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  ownerId: {
27
- type: _contractspec_lib_schema356.FieldType<string, string>;
27
+ type: _contractspec_lib_schema362.FieldType<string, string>;
28
28
  isOptional: false;
29
29
  };
30
30
  createdAt: {
31
- type: _contractspec_lib_schema356.FieldType<Date, string>;
31
+ type: _contractspec_lib_schema362.FieldType<Date, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  }>>;
35
- declare const DealMovedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema356.SchemaModel<{
35
+ declare const DealMovedEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema362.SchemaModel<{
36
36
  dealId: {
37
- type: _contractspec_lib_schema356.FieldType<string, string>;
37
+ type: _contractspec_lib_schema362.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  fromStageId: {
41
- type: _contractspec_lib_schema356.FieldType<string, string>;
41
+ type: _contractspec_lib_schema362.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  toStageId: {
45
- type: _contractspec_lib_schema356.FieldType<string, string>;
45
+ type: _contractspec_lib_schema362.FieldType<string, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  movedBy: {
49
- type: _contractspec_lib_schema356.FieldType<string, string>;
49
+ type: _contractspec_lib_schema362.FieldType<string, string>;
50
50
  isOptional: false;
51
51
  };
52
52
  movedAt: {
53
- type: _contractspec_lib_schema356.FieldType<Date, string>;
53
+ type: _contractspec_lib_schema362.FieldType<Date, string>;
54
54
  isOptional: false;
55
55
  };
56
56
  }>>;
57
- declare const DealWonEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema356.SchemaModel<{
57
+ declare const DealWonEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema362.SchemaModel<{
58
58
  dealId: {
59
- type: _contractspec_lib_schema356.FieldType<string, string>;
59
+ type: _contractspec_lib_schema362.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  value: {
63
- type: _contractspec_lib_schema356.FieldType<number, number>;
63
+ type: _contractspec_lib_schema362.FieldType<number, number>;
64
64
  isOptional: false;
65
65
  };
66
66
  currency: {
67
- type: _contractspec_lib_schema356.FieldType<string, string>;
67
+ type: _contractspec_lib_schema362.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  contactId: {
71
- type: _contractspec_lib_schema356.FieldType<string, string>;
71
+ type: _contractspec_lib_schema362.FieldType<string, string>;
72
72
  isOptional: true;
73
73
  };
74
74
  companyId: {
75
- type: _contractspec_lib_schema356.FieldType<string, string>;
75
+ type: _contractspec_lib_schema362.FieldType<string, string>;
76
76
  isOptional: true;
77
77
  };
78
78
  ownerId: {
79
- type: _contractspec_lib_schema356.FieldType<string, string>;
79
+ type: _contractspec_lib_schema362.FieldType<string, string>;
80
80
  isOptional: false;
81
81
  };
82
82
  wonAt: {
83
- type: _contractspec_lib_schema356.FieldType<Date, string>;
83
+ type: _contractspec_lib_schema362.FieldType<Date, string>;
84
84
  isOptional: false;
85
85
  };
86
86
  }>>;
87
- declare const DealLostEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema356.SchemaModel<{
87
+ declare const DealLostEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema362.SchemaModel<{
88
88
  dealId: {
89
- type: _contractspec_lib_schema356.FieldType<string, string>;
89
+ type: _contractspec_lib_schema362.FieldType<string, string>;
90
90
  isOptional: false;
91
91
  };
92
92
  value: {
93
- type: _contractspec_lib_schema356.FieldType<number, number>;
93
+ type: _contractspec_lib_schema362.FieldType<number, number>;
94
94
  isOptional: false;
95
95
  };
96
96
  reason: {
97
- type: _contractspec_lib_schema356.FieldType<string, string>;
97
+ type: _contractspec_lib_schema362.FieldType<string, string>;
98
98
  isOptional: false;
99
99
  };
100
100
  ownerId: {
101
- type: _contractspec_lib_schema356.FieldType<string, string>;
101
+ type: _contractspec_lib_schema362.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  lostAt: {
105
- type: _contractspec_lib_schema356.FieldType<Date, string>;
105
+ type: _contractspec_lib_schema362.FieldType<Date, string>;
106
106
  isOptional: false;
107
107
  };
108
108
  }>>;
@@ -125,7 +125,7 @@ const DealLostPayload = defineSchemaModel({
125
125
  const DealCreatedEvent = defineEvent({
126
126
  meta: {
127
127
  key: "deal.created",
128
- version: 1,
128
+ version: "1.0.0",
129
129
  description: "A new deal has been created.",
130
130
  stability: "stable",
131
131
  owners: ["@crm-team"],
@@ -136,7 +136,7 @@ const DealCreatedEvent = defineEvent({
136
136
  const DealMovedEvent = defineEvent({
137
137
  meta: {
138
138
  key: "deal.moved",
139
- version: 1,
139
+ version: "1.0.0",
140
140
  description: "A deal has been moved to a different stage.",
141
141
  stability: "stable",
142
142
  owners: ["@crm-team"],
@@ -147,7 +147,7 @@ const DealMovedEvent = defineEvent({
147
147
  const DealWonEvent = defineEvent({
148
148
  meta: {
149
149
  key: "deal.won",
150
- version: 1,
150
+ version: "1.0.0",
151
151
  description: "A deal has been won.",
152
152
  stability: "stable",
153
153
  owners: ["@crm-team"],
@@ -158,7 +158,7 @@ const DealWonEvent = defineEvent({
158
158
  const DealLostEvent = defineEvent({
159
159
  meta: {
160
160
  key: "deal.lost",
161
- version: 1,
161
+ version: "1.0.0",
162
162
  description: "A deal has been lost.",
163
163
  stability: "stable",
164
164
  owners: ["@crm-team"],
@@ -1 +1 @@
1
- {"version":3,"file":"deal.event.js","names":[],"sources":["../../src/events/deal.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\n// ============ Deal Event Payloads ============\n\nconst DealCreatedPayload = defineSchemaModel({\n name: 'DealCreatedPayload',\n description: 'Payload when a deal is created',\n fields: {\n dealId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n value: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n pipelineId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n stageId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst DealMovedPayload = defineSchemaModel({\n name: 'DealMovedEventPayload',\n description: 'Payload when a deal is moved to another stage',\n fields: {\n dealId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fromStageId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toStageId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n movedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n movedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst DealWonPayload = defineSchemaModel({\n name: 'DealWonEventPayload',\n description: 'Payload when a deal is won',\n fields: {\n dealId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n value: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n contactId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n companyId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n wonAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst DealLostPayload = defineSchemaModel({\n name: 'DealLostEventPayload',\n description: 'Payload when a deal is lost',\n fields: {\n dealId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n value: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n lostAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const DealCreatedEvent = defineEvent({\n meta: {\n key: 'deal.created',\n version: 1,\n description: 'A new deal has been created.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['deal', 'created'],\n },\n payload: DealCreatedPayload,\n});\n\nexport const DealMovedEvent = defineEvent({\n meta: {\n key: 'deal.moved',\n version: 1,\n description: 'A deal has been moved to a different stage.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['deal', 'moved'],\n },\n payload: DealMovedPayload,\n});\n\nexport const DealWonEvent = defineEvent({\n meta: {\n key: 'deal.won',\n version: 1,\n description: 'A deal has been won.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['deal', 'won'],\n },\n payload: DealWonPayload,\n});\n\nexport const DealLostEvent = defineEvent({\n meta: {\n key: 'deal.lost',\n version: 1,\n description: 'A deal has been lost.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['deal', 'lost'],\n },\n payload: DealLostPayload,\n});\n"],"mappings":"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"}
1
+ {"version":3,"file":"deal.event.js","names":[],"sources":["../../src/events/deal.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\n// ============ Deal Event Payloads ============\n\nconst DealCreatedPayload = defineSchemaModel({\n name: 'DealCreatedPayload',\n description: 'Payload when a deal is created',\n fields: {\n dealId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n value: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n pipelineId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n stageId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst DealMovedPayload = defineSchemaModel({\n name: 'DealMovedEventPayload',\n description: 'Payload when a deal is moved to another stage',\n fields: {\n dealId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fromStageId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toStageId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n movedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n movedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst DealWonPayload = defineSchemaModel({\n name: 'DealWonEventPayload',\n description: 'Payload when a deal is won',\n fields: {\n dealId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n value: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n contactId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n companyId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n wonAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst DealLostPayload = defineSchemaModel({\n name: 'DealLostEventPayload',\n description: 'Payload when a deal is lost',\n fields: {\n dealId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n value: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n lostAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const DealCreatedEvent = defineEvent({\n meta: {\n key: 'deal.created',\n version: '1.0.0',\n description: 'A new deal has been created.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['deal', 'created'],\n },\n payload: DealCreatedPayload,\n});\n\nexport const DealMovedEvent = defineEvent({\n meta: {\n key: 'deal.moved',\n version: '1.0.0',\n description: 'A deal has been moved to a different stage.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['deal', 'moved'],\n },\n payload: DealMovedPayload,\n});\n\nexport const DealWonEvent = defineEvent({\n meta: {\n key: 'deal.won',\n version: '1.0.0',\n description: 'A deal has been won.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['deal', 'won'],\n },\n payload: DealWonPayload,\n});\n\nexport const DealLostEvent = defineEvent({\n meta: {\n key: 'deal.lost',\n version: '1.0.0',\n description: 'A deal has been lost.',\n stability: 'stable',\n owners: ['@crm-team'],\n tags: ['deal', 'lost'],\n },\n payload: DealLostPayload,\n});\n"],"mappings":"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"}
@@ -1,26 +1,26 @@
1
- import * as _contractspec_lib_schema384 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts9 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_schema227 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/events/task.event.d.ts
5
- declare const TaskCompletedEvent: _contractspec_lib_contracts9.EventSpec<_contractspec_lib_schema384.SchemaModel<{
5
+ declare const TaskCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema227.SchemaModel<{
6
6
  taskId: {
7
- type: _contractspec_lib_schema384.FieldType<string, string>;
7
+ type: _contractspec_lib_schema227.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  type: {
11
- type: _contractspec_lib_schema384.FieldType<string, string>;
11
+ type: _contractspec_lib_schema227.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  assignedTo: {
15
- type: _contractspec_lib_schema384.FieldType<string, string>;
15
+ type: _contractspec_lib_schema227.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  completedBy: {
19
- type: _contractspec_lib_schema384.FieldType<string, string>;
19
+ type: _contractspec_lib_schema227.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  completedAt: {
23
- type: _contractspec_lib_schema384.FieldType<Date, string>;
23
+ type: _contractspec_lib_schema227.FieldType<Date, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  }>>;
@@ -31,7 +31,7 @@ const TaskCompletedPayload = defineSchemaModel({
31
31
  const TaskCompletedEvent = defineEvent({
32
32
  meta: {
33
33
  key: "task.completed",
34
- version: 1,
34
+ version: "1.0.0",
35
35
  description: "A task has been completed.",
36
36
  stability: "stable",
37
37
  owners: ["@crm-team"],