@contractspec/example.crm-pipeline 1.44.1 → 1.45.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.
- package/.turbo/turbo-build$colon$bundle.log +23 -23
- package/.turbo/turbo-build.log +22 -22
- package/CHANGELOG.md +45 -0
- package/dist/crm-pipeline.feature.js +29 -29
- package/dist/crm-pipeline.feature.js.map +1 -1
- package/dist/deal/deal.enum.d.ts +3 -3
- package/dist/deal/deal.enum.d.ts.map +1 -1
- package/dist/deal/deal.operation.d.ts +131 -131
- package/dist/deal/deal.operation.d.ts.map +1 -1
- package/dist/deal/deal.operation.js +9 -9
- package/dist/deal/deal.operation.js.map +1 -1
- package/dist/deal/deal.schema.d.ts +71 -71
- package/dist/entities/company.entity.d.ts +28 -28
- package/dist/entities/company.entity.d.ts.map +1 -1
- package/dist/entities/contact.entity.d.ts +32 -32
- package/dist/entities/contact.entity.d.ts.map +1 -1
- package/dist/entities/deal.entity.d.ts +53 -53
- package/dist/events/contact.event.js +1 -1
- package/dist/events/contact.event.js.map +1 -1
- package/dist/events/deal.event.js +4 -4
- package/dist/events/deal.event.js.map +1 -1
- package/dist/events/task.event.js +1 -1
- package/dist/events/task.event.js.map +1 -1
- package/dist/example.d.ts +3 -33
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +16 -11
- package/dist/example.js.map +1 -1
- package/dist/presentations/dashboard.presentation.js +2 -2
- package/dist/presentations/dashboard.presentation.js.map +1 -1
- package/dist/presentations/pipeline.presentation.js +4 -4
- package/dist/presentations/pipeline.presentation.js.map +1 -1
- package/package.json +10 -10
- package/src/crm-pipeline.feature.ts +33 -29
- package/src/deal/deal.operation.ts +9 -9
- package/src/events/contact.event.ts +1 -1
- package/src/events/deal.event.ts +4 -4
- package/src/events/task.event.ts +1 -1
- package/src/example.ts +16 -8
- package/src/presentations/dashboard.presentation.ts +2 -2
- package/src/presentations/pipeline.presentation.ts +4 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -23,7 +23,7 @@ const OWNERS = ['@example.crm-pipeline'] as const;
|
|
|
23
23
|
export const CreateDealContract = defineCommand({
|
|
24
24
|
meta: {
|
|
25
25
|
key: 'crm.deal.create',
|
|
26
|
-
version: 1,
|
|
26
|
+
version: '1.0.0',
|
|
27
27
|
stability: 'stable',
|
|
28
28
|
owners: [...OWNERS],
|
|
29
29
|
tags: ['crm', 'deal', 'create'],
|
|
@@ -42,7 +42,7 @@ export const CreateDealContract = defineCommand({
|
|
|
42
42
|
emits: [
|
|
43
43
|
{
|
|
44
44
|
key: 'deal.created',
|
|
45
|
-
version: 1,
|
|
45
|
+
version: '1.0.0',
|
|
46
46
|
when: 'Deal is created',
|
|
47
47
|
payload: DealModel,
|
|
48
48
|
},
|
|
@@ -83,7 +83,7 @@ export const CreateDealContract = defineCommand({
|
|
|
83
83
|
export const MoveDealContract = defineCommand({
|
|
84
84
|
meta: {
|
|
85
85
|
key: 'crm.deal.move',
|
|
86
|
-
version: 1,
|
|
86
|
+
version: '1.0.0',
|
|
87
87
|
stability: 'stable',
|
|
88
88
|
owners: [...OWNERS],
|
|
89
89
|
tags: ['crm', 'deal', 'move', 'kanban'],
|
|
@@ -102,7 +102,7 @@ export const MoveDealContract = defineCommand({
|
|
|
102
102
|
emits: [
|
|
103
103
|
{
|
|
104
104
|
key: 'deal.moved',
|
|
105
|
-
version: 1,
|
|
105
|
+
version: '1.0.0',
|
|
106
106
|
when: 'Deal stage changed',
|
|
107
107
|
payload: DealMovedPayloadModel,
|
|
108
108
|
},
|
|
@@ -138,7 +138,7 @@ export const MoveDealContract = defineCommand({
|
|
|
138
138
|
export const WinDealContract = defineCommand({
|
|
139
139
|
meta: {
|
|
140
140
|
key: 'crm.deal.win',
|
|
141
|
-
version: 1,
|
|
141
|
+
version: '1.0.0',
|
|
142
142
|
stability: 'stable',
|
|
143
143
|
owners: [...OWNERS],
|
|
144
144
|
tags: ['crm', 'deal', 'won'],
|
|
@@ -157,7 +157,7 @@ export const WinDealContract = defineCommand({
|
|
|
157
157
|
emits: [
|
|
158
158
|
{
|
|
159
159
|
key: 'deal.won',
|
|
160
|
-
version: 1,
|
|
160
|
+
version: '1.0.0',
|
|
161
161
|
when: 'Deal is won',
|
|
162
162
|
payload: DealWonPayloadModel,
|
|
163
163
|
},
|
|
@@ -197,7 +197,7 @@ export const WinDealContract = defineCommand({
|
|
|
197
197
|
export const LoseDealContract = defineCommand({
|
|
198
198
|
meta: {
|
|
199
199
|
key: 'crm.deal.lose',
|
|
200
|
-
version: 1,
|
|
200
|
+
version: '1.0.0',
|
|
201
201
|
stability: 'stable',
|
|
202
202
|
owners: [...OWNERS],
|
|
203
203
|
tags: ['crm', 'deal', 'lost'],
|
|
@@ -216,7 +216,7 @@ export const LoseDealContract = defineCommand({
|
|
|
216
216
|
emits: [
|
|
217
217
|
{
|
|
218
218
|
key: 'deal.lost',
|
|
219
|
-
version: 1,
|
|
219
|
+
version: '1.0.0',
|
|
220
220
|
when: 'Deal is lost',
|
|
221
221
|
payload: DealLostPayloadModel,
|
|
222
222
|
},
|
|
@@ -256,7 +256,7 @@ export const LoseDealContract = defineCommand({
|
|
|
256
256
|
export const ListDealsContract = defineQuery({
|
|
257
257
|
meta: {
|
|
258
258
|
key: 'crm.deal.list',
|
|
259
|
-
version: 1,
|
|
259
|
+
version: '1.0.0',
|
|
260
260
|
stability: 'stable',
|
|
261
261
|
owners: [...OWNERS],
|
|
262
262
|
tags: ['crm', 'deal', 'list'],
|
|
@@ -21,7 +21,7 @@ const ContactCreatedPayload = defineSchemaModel({
|
|
|
21
21
|
export const ContactCreatedEvent = defineEvent({
|
|
22
22
|
meta: {
|
|
23
23
|
key: 'contact.created',
|
|
24
|
-
version: 1,
|
|
24
|
+
version: '1.0.0',
|
|
25
25
|
description: 'A new contact has been created.',
|
|
26
26
|
stability: 'stable',
|
|
27
27
|
owners: ['@crm-team'],
|
package/src/events/deal.event.ts
CHANGED
|
@@ -58,7 +58,7 @@ const DealLostPayload = defineSchemaModel({
|
|
|
58
58
|
export const DealCreatedEvent = defineEvent({
|
|
59
59
|
meta: {
|
|
60
60
|
key: 'deal.created',
|
|
61
|
-
version: 1,
|
|
61
|
+
version: '1.0.0',
|
|
62
62
|
description: 'A new deal has been created.',
|
|
63
63
|
stability: 'stable',
|
|
64
64
|
owners: ['@crm-team'],
|
|
@@ -70,7 +70,7 @@ export const DealCreatedEvent = defineEvent({
|
|
|
70
70
|
export const DealMovedEvent = defineEvent({
|
|
71
71
|
meta: {
|
|
72
72
|
key: 'deal.moved',
|
|
73
|
-
version: 1,
|
|
73
|
+
version: '1.0.0',
|
|
74
74
|
description: 'A deal has been moved to a different stage.',
|
|
75
75
|
stability: 'stable',
|
|
76
76
|
owners: ['@crm-team'],
|
|
@@ -82,7 +82,7 @@ export const DealMovedEvent = defineEvent({
|
|
|
82
82
|
export const DealWonEvent = defineEvent({
|
|
83
83
|
meta: {
|
|
84
84
|
key: 'deal.won',
|
|
85
|
-
version: 1,
|
|
85
|
+
version: '1.0.0',
|
|
86
86
|
description: 'A deal has been won.',
|
|
87
87
|
stability: 'stable',
|
|
88
88
|
owners: ['@crm-team'],
|
|
@@ -94,7 +94,7 @@ export const DealWonEvent = defineEvent({
|
|
|
94
94
|
export const DealLostEvent = defineEvent({
|
|
95
95
|
meta: {
|
|
96
96
|
key: 'deal.lost',
|
|
97
|
-
version: 1,
|
|
97
|
+
version: '1.0.0',
|
|
98
98
|
description: 'A deal has been lost.',
|
|
99
99
|
stability: 'stable',
|
|
100
100
|
owners: ['@crm-team'],
|
package/src/events/task.event.ts
CHANGED
|
@@ -18,7 +18,7 @@ const TaskCompletedPayload = defineSchemaModel({
|
|
|
18
18
|
export const TaskCompletedEvent = defineEvent({
|
|
19
19
|
meta: {
|
|
20
20
|
key: 'task.completed',
|
|
21
|
-
version: 1,
|
|
21
|
+
version: '1.0.0',
|
|
22
22
|
description: 'A task has been completed.',
|
|
23
23
|
stability: 'stable',
|
|
24
24
|
owners: ['@crm-team'],
|
package/src/example.ts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { ExampleSpec } from '@contractspec/lib.contracts';
|
|
2
|
+
|
|
3
|
+
const example: ExampleSpec = {
|
|
4
|
+
meta: {
|
|
5
|
+
key: 'crm-pipeline',
|
|
6
|
+
version: '1.0.0',
|
|
7
|
+
title: 'CRM Pipeline',
|
|
8
|
+
description:
|
|
9
|
+
'Sales CRM with contacts, companies, deals, pipelines, and tasks.',
|
|
10
|
+
kind: 'template',
|
|
11
|
+
visibility: 'public',
|
|
12
|
+
stability: 'experimental',
|
|
13
|
+
owners: ['@platform.core'],
|
|
14
|
+
tags: ['crm', 'sales', 'pipeline', 'deals'],
|
|
15
|
+
},
|
|
8
16
|
docs: {
|
|
9
17
|
rootDocId: 'docs.examples.crm-pipeline',
|
|
10
18
|
},
|
|
@@ -25,6 +33,6 @@ const example = {
|
|
|
25
33
|
studio: { enabled: true, installable: true },
|
|
26
34
|
mcp: { enabled: true },
|
|
27
35
|
},
|
|
28
|
-
}
|
|
36
|
+
};
|
|
29
37
|
|
|
30
38
|
export default example;
|
|
@@ -10,7 +10,7 @@ import { StabilityEnum } from '@contractspec/lib.contracts';
|
|
|
10
10
|
export const CrmDashboardPresentation: PresentationSpec = {
|
|
11
11
|
meta: {
|
|
12
12
|
key: 'crm.dashboard',
|
|
13
|
-
version: 1,
|
|
13
|
+
version: '1.0.0',
|
|
14
14
|
title: 'CRM Dashboard',
|
|
15
15
|
description:
|
|
16
16
|
'Main CRM dashboard with pipeline overview, deal stats, and activities',
|
|
@@ -38,7 +38,7 @@ export const CrmDashboardPresentation: PresentationSpec = {
|
|
|
38
38
|
export const PipelineMetricsPresentation: PresentationSpec = {
|
|
39
39
|
meta: {
|
|
40
40
|
key: 'crm.pipeline.metrics',
|
|
41
|
-
version: 1,
|
|
41
|
+
version: '1.0.0',
|
|
42
42
|
title: 'Pipeline Metrics',
|
|
43
43
|
description: 'Pipeline metrics and forecasting view',
|
|
44
44
|
domain: 'crm-pipeline',
|
|
@@ -11,7 +11,7 @@ import { DealModel } from '../deal/deal.schema';
|
|
|
11
11
|
export const PipelineKanbanPresentation: PresentationSpec = {
|
|
12
12
|
meta: {
|
|
13
13
|
key: 'crm.pipeline.kanban',
|
|
14
|
-
version: 1,
|
|
14
|
+
version: '1.0.0',
|
|
15
15
|
title: 'Pipeline Kanban',
|
|
16
16
|
description: 'Kanban board view of deals organized by stage',
|
|
17
17
|
domain: 'crm-pipeline',
|
|
@@ -39,7 +39,7 @@ export const PipelineKanbanPresentation: PresentationSpec = {
|
|
|
39
39
|
export const DealListPresentation: PresentationSpec = {
|
|
40
40
|
meta: {
|
|
41
41
|
key: 'crm.deal.list',
|
|
42
|
-
version: 1,
|
|
42
|
+
version: '1.0.0',
|
|
43
43
|
title: 'Deal List',
|
|
44
44
|
description: 'List view of deals with value, status, and owner info',
|
|
45
45
|
domain: 'crm-pipeline',
|
|
@@ -67,7 +67,7 @@ export const DealListPresentation: PresentationSpec = {
|
|
|
67
67
|
export const DealDetailPresentation: PresentationSpec = {
|
|
68
68
|
meta: {
|
|
69
69
|
key: 'crm.deal.detail',
|
|
70
|
-
version: 1,
|
|
70
|
+
version: '1.0.0',
|
|
71
71
|
title: 'Deal Details',
|
|
72
72
|
description:
|
|
73
73
|
'Detailed view of a deal with activities, contacts, and history',
|
|
@@ -95,7 +95,7 @@ export const DealDetailPresentation: PresentationSpec = {
|
|
|
95
95
|
export const DealCardPresentation: PresentationSpec = {
|
|
96
96
|
meta: {
|
|
97
97
|
key: 'crm.deal.card',
|
|
98
|
-
version: 1,
|
|
98
|
+
version: '1.0.0',
|
|
99
99
|
title: 'Deal Card',
|
|
100
100
|
description: 'Compact deal card for kanban board display',
|
|
101
101
|
domain: 'crm-pipeline',
|