@contractspec/example.crm-pipeline 1.48.0 → 1.49.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.
- package/.turbo/turbo-build$colon$bundle.log +21 -21
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +32 -0
- package/README.md +29 -9
- 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 +128 -128
- package/dist/deal/deal.operation.d.ts.map +1 -1
- package/dist/deal/deal.schema.d.ts +71 -71
- package/dist/docs/crm-pipeline.docblock.js +21 -1
- package/dist/docs/crm-pipeline.docblock.js.map +1 -1
- package/dist/entities/company.entity.d.ts +28 -28
- 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/entities/deal.entity.d.ts.map +1 -1
- 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 +8 -8
- package/dist/events/contact.event.d.ts.map +1 -1
- package/dist/events/deal.event.d.ts +30 -30
- package/dist/events/deal.event.d.ts.map +1 -1
- package/dist/events/task.event.d.ts +8 -8
- package/dist/example.d.ts +2 -2
- package/dist/example.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/presentations/dashboard.presentation.d.ts +3 -3
- package/dist/presentations/dashboard.presentation.d.ts.map +1 -1
- package/dist/presentations/pipeline.presentation.d.ts +5 -5
- package/dist/presentations/pipeline.presentation.d.ts.map +1 -1
- package/dist/ui/CrmDealCard.d.ts +2 -2
- package/dist/ui/CrmPipelineBoard.d.ts +2 -2
- package/dist/ui/modals/DealActionsModal.d.ts +2 -2
- package/package.json +14 -13
- package/src/docs/crm-pipeline.docblock.ts +21 -1
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.crm-pipeline",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.0",
|
|
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.
|
|
69
|
-
"@contractspec/lib.design-system": "1.
|
|
70
|
-
"@contractspec/lib.example-shared-ui": "1.
|
|
71
|
-
"@contractspec/lib.identity-rbac": "1.
|
|
72
|
-
"@contractspec/lib.runtime-sandbox": "0.
|
|
73
|
-
"@contractspec/lib.schema": "1.
|
|
74
|
-
"@contractspec/lib.ui-kit-web": "1.
|
|
75
|
-
"@contractspec/module.audit-trail": "1.
|
|
76
|
-
"@contractspec/module.notifications": "1.
|
|
69
|
+
"@contractspec/lib.contracts": "1.49.0",
|
|
70
|
+
"@contractspec/lib.design-system": "1.49.0",
|
|
71
|
+
"@contractspec/lib.example-shared-ui": "1.3.0",
|
|
72
|
+
"@contractspec/lib.identity-rbac": "1.49.0",
|
|
73
|
+
"@contractspec/lib.runtime-sandbox": "0.4.0",
|
|
74
|
+
"@contractspec/lib.schema": "1.49.0",
|
|
75
|
+
"@contractspec/lib.ui-kit-web": "1.49.0",
|
|
76
|
+
"@contractspec/module.audit-trail": "1.49.0",
|
|
77
|
+
"@contractspec/module.notifications": "1.49.0",
|
|
77
78
|
"react": "19.2.3",
|
|
78
79
|
"react-dom": "19.2.3"
|
|
79
80
|
},
|
|
80
81
|
"devDependencies": {
|
|
81
|
-
"@contractspec/tool.tsdown": "1.
|
|
82
|
-
"@contractspec/tool.typescript": "1.
|
|
82
|
+
"@contractspec/tool.tsdown": "1.49.0",
|
|
83
|
+
"@contractspec/tool.typescript": "1.49.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',
|