@contractspec/example.crm-pipeline 1.52.0 → 1.53.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 +4 -4
- package/.turbo/turbo-build.log +175 -173
- package/CHANGELOG.md +22 -0
- package/dist/crm-pipeline.feature.js +2 -2
- package/dist/crm-pipeline.feature.js.map +1 -1
- package/dist/deal/deal.test-spec.d.ts +3 -3
- 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/events/contact.event.d.ts +8 -8
- 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/events/task.event.d.ts.map +1 -1
- package/dist/presentations/pipeline.presentation.js +1 -1
- package/dist/presentations/pipeline.presentation.js.map +1 -1
- package/dist/ui/CrmDashboard.d.ts +2 -2
- package/dist/ui/CrmDealCard.d.ts +2 -2
- package/dist/ui/CrmPipelineBoard.d.ts +2 -2
- package/dist/ui/modals/CreateDealModal.d.ts +2 -2
- package/dist/ui/modals/DealActionsModal.d.ts +2 -2
- package/package.json +13 -13
- package/src/crm-pipeline.feature.ts +2 -2
- package/src/presentations/pipeline.presentation.ts +1 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.presentation.js","names":[],"sources":["../../src/presentations/pipeline.presentation.ts"],"sourcesContent":["/**\n * Pipeline Presentation Descriptors\n */\nimport { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';\nimport { DealModel } from '../deal/deal.schema';\n\n/**\n * Kanban board presentation for the sales pipeline.\n */\nexport const PipelineKanbanPresentation = definePresentation({\n meta: {\n key: 'crm.pipeline.kanban',\n version: '1.0.0',\n title: 'Pipeline Kanban',\n description: 'Kanban board view of deals organized by stage',\n domain: 'crm-pipeline',\n owners: ['@crm-team'],\n tags: ['pipeline', 'kanban', 'deals'],\n stability: StabilityEnum.Experimental,\n goal: 'Visualize the sales pipeline status and deal distribution across stages.',\n context: 'Used in the sales dashboard and management reports.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PipelineKanbanView',\n props: DealModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['crm.pipeline.enabled'],\n },\n});\n\n/**\n * List view of deals with filtering.\n */\nexport const DealListPresentation = definePresentation({\n meta: {\n key: 'crm.deal.
|
|
1
|
+
{"version":3,"file":"pipeline.presentation.js","names":[],"sources":["../../src/presentations/pipeline.presentation.ts"],"sourcesContent":["/**\n * Pipeline Presentation Descriptors\n */\nimport { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';\nimport { DealModel } from '../deal/deal.schema';\n\n/**\n * Kanban board presentation for the sales pipeline.\n */\nexport const PipelineKanbanPresentation = definePresentation({\n meta: {\n key: 'crm.pipeline.kanban',\n version: '1.0.0',\n title: 'Pipeline Kanban',\n description: 'Kanban board view of deals organized by stage',\n domain: 'crm-pipeline',\n owners: ['@crm-team'],\n tags: ['pipeline', 'kanban', 'deals'],\n stability: StabilityEnum.Experimental,\n goal: 'Visualize the sales pipeline status and deal distribution across stages.',\n context: 'Used in the sales dashboard and management reports.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PipelineKanbanView',\n props: DealModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['crm.pipeline.enabled'],\n },\n});\n\n/**\n * List view of deals with filtering.\n */\nexport const DealListPresentation = definePresentation({\n meta: {\n key: 'crm.deal.viewList',\n version: '1.0.0',\n title: 'Deal List',\n description: 'List view of deals with value, status, and owner info',\n domain: 'crm-pipeline',\n owners: ['@crm-team'],\n tags: ['deal', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Search, filter, and review deal lists.',\n context: 'Standard view for deal management and bulk actions.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'DealListView',\n props: DealModel,\n },\n targets: ['react', 'markdown', 'application/json'],\n policy: {\n flags: ['crm.deals.enabled'],\n },\n});\n\n/**\n * Deal detail presentation.\n */\nexport const DealDetailPresentation = definePresentation({\n meta: {\n key: 'crm.deal.detail',\n version: '1.0.0',\n title: 'Deal Details',\n description:\n 'Detailed view of a deal with activities, contacts, and history',\n domain: 'crm-pipeline',\n owners: ['@crm-team'],\n tags: ['deal', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Deep dive into deal details and historical activities.',\n context: 'The main workspace for managing a single deal execution.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'DealDetailView',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['crm.deals.enabled'],\n },\n});\n\n/**\n * Deal card for kanban board.\n */\nexport const DealCardPresentation = definePresentation({\n meta: {\n key: 'crm.deal.card',\n version: '1.0.0',\n title: 'Deal Card',\n description: 'Compact deal card for kanban board display',\n domain: 'crm-pipeline',\n owners: ['@crm-team'],\n tags: ['deal', 'card', 'kanban'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide a quick overview of deal status in the pipeline view.',\n context: 'Condensed representation used within the Pipeline Kanban board.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'DealCard',\n props: DealModel,\n },\n targets: ['react'],\n policy: {\n flags: ['crm.deals.enabled'],\n },\n});\n"],"mappings":";;;;;;;;;;AASA,MAAa,6BAA6B,mBAAmB;CAC3D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAY;GAAU;GAAQ;EACrC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,uBAAuB,EAChC;CACF,CAAC;;;;AAKF,MAAa,uBAAuB,mBAAmB;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM,CAAC,QAAQ,OAAO;EACtB,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS;EAAC;EAAS;EAAY;EAAmB;CAClD,QAAQ,EACN,OAAO,CAAC,oBAAoB,EAC7B;CACF,CAAC;;;;AAKF,MAAa,yBAAyB,mBAAmB;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM,CAAC,QAAQ,SAAS;EACxB,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,oBAAoB,EAC7B;CACF,CAAC;;;;AAKF,MAAa,uBAAuB,mBAAmB;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAQ;GAAQ;GAAS;EAChC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,oBAAoB,EAC7B;CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/ui/CrmDashboard.d.ts
|
|
4
|
-
declare function CrmDashboard():
|
|
4
|
+
declare function CrmDashboard(): react_jsx_runtime2.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { CrmDashboard };
|
|
7
7
|
//# sourceMappingURL=CrmDashboard.d.ts.map
|
package/dist/ui/CrmDealCard.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Deal } from "./hooks/useDealList.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/ui/CrmDealCard.d.ts
|
|
5
5
|
interface CrmDealCardProps {
|
|
@@ -9,7 +9,7 @@ interface CrmDealCardProps {
|
|
|
9
9
|
declare function CrmDealCard({
|
|
10
10
|
deal,
|
|
11
11
|
onClick
|
|
12
|
-
}: CrmDealCardProps):
|
|
12
|
+
}: CrmDealCardProps): react_jsx_runtime1.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { CrmDealCard };
|
|
15
15
|
//# sourceMappingURL=CrmDealCard.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Deal } from "./hooks/useDealList.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/ui/CrmPipelineBoard.d.ts
|
|
5
5
|
interface CrmPipelineBoardProps {
|
|
@@ -17,7 +17,7 @@ declare function CrmPipelineBoard({
|
|
|
17
17
|
stages,
|
|
18
18
|
onDealClick,
|
|
19
19
|
onDealMove
|
|
20
|
-
}: CrmPipelineBoardProps):
|
|
20
|
+
}: CrmPipelineBoardProps): react_jsx_runtime3.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { CrmPipelineBoard };
|
|
23
23
|
//# sourceMappingURL=CrmPipelineBoard.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 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):
|
|
30
|
+
}: CreateDealModalProps): react_jsx_runtime0.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
|
|
1
|
+
import * as react_jsx_runtime0 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):
|
|
48
|
+
}: DealActionsModalProps): react_jsx_runtime0.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.
|
|
3
|
+
"version": "1.53.0",
|
|
4
4
|
"description": "CRM Pipeline - Contacts, Companies, Deals, Tasks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -63,24 +63,24 @@
|
|
|
63
63
|
"lint:fix": "eslint src --fix",
|
|
64
64
|
"lint:check": "eslint src",
|
|
65
65
|
"test": "bun test",
|
|
66
|
-
"validate": "contractspec validate"
|
|
66
|
+
"validate": "contractspec validate \"src/**/*\""
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@contractspec/lib.contracts": "1.
|
|
70
|
-
"@contractspec/lib.design-system": "1.
|
|
71
|
-
"@contractspec/lib.example-shared-ui": "1.
|
|
72
|
-
"@contractspec/lib.identity-rbac": "1.
|
|
73
|
-
"@contractspec/lib.runtime-sandbox": "0.
|
|
74
|
-
"@contractspec/lib.schema": "1.
|
|
75
|
-
"@contractspec/lib.ui-kit-web": "1.
|
|
76
|
-
"@contractspec/module.audit-trail": "1.
|
|
77
|
-
"@contractspec/module.notifications": "1.
|
|
69
|
+
"@contractspec/lib.contracts": "1.53.0",
|
|
70
|
+
"@contractspec/lib.design-system": "1.53.0",
|
|
71
|
+
"@contractspec/lib.example-shared-ui": "1.7.0",
|
|
72
|
+
"@contractspec/lib.identity-rbac": "1.53.0",
|
|
73
|
+
"@contractspec/lib.runtime-sandbox": "0.8.0",
|
|
74
|
+
"@contractspec/lib.schema": "1.53.0",
|
|
75
|
+
"@contractspec/lib.ui-kit-web": "1.53.0",
|
|
76
|
+
"@contractspec/module.audit-trail": "1.53.0",
|
|
77
|
+
"@contractspec/module.notifications": "1.53.0",
|
|
78
78
|
"react": "19.2.3",
|
|
79
79
|
"react-dom": "19.2.3"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@contractspec/tool.tsdown": "1.
|
|
83
|
-
"@contractspec/tool.typescript": "1.
|
|
82
|
+
"@contractspec/tool.tsdown": "1.53.0",
|
|
83
|
+
"@contractspec/tool.typescript": "1.53.0",
|
|
84
84
|
"tsdown": "^0.19.0",
|
|
85
85
|
"typescript": "^5.9.3",
|
|
86
86
|
"@types/react": "^19.2.8",
|
|
@@ -51,7 +51,7 @@ export const CrmPipelineFeature = defineFeature({
|
|
|
51
51
|
presentations: [
|
|
52
52
|
{ key: 'crm.dashboard', version: '1.0.0' },
|
|
53
53
|
{ key: 'crm.pipeline.kanban', version: '1.0.0' },
|
|
54
|
-
{ key: 'crm.deal.
|
|
54
|
+
{ key: 'crm.deal.viewList', version: '1.0.0' },
|
|
55
55
|
{ key: 'crm.deal.detail', version: '1.0.0' },
|
|
56
56
|
{ key: 'crm.deal.card', version: '1.0.0' },
|
|
57
57
|
{ key: 'crm.pipeline.metrics', version: '1.0.0' },
|
|
@@ -78,7 +78,7 @@ export const CrmPipelineFeature = defineFeature({
|
|
|
78
78
|
targets: ['react', 'markdown'],
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
key: 'crm.deal.
|
|
81
|
+
key: 'crm.deal.viewList',
|
|
82
82
|
version: '1.0.0',
|
|
83
83
|
targets: ['react', 'markdown', 'application/json'],
|
|
84
84
|
},
|
|
@@ -37,7 +37,7 @@ export const PipelineKanbanPresentation = definePresentation({
|
|
|
37
37
|
*/
|
|
38
38
|
export const DealListPresentation = definePresentation({
|
|
39
39
|
meta: {
|
|
40
|
-
key: 'crm.deal.
|
|
40
|
+
key: 'crm.deal.viewList',
|
|
41
41
|
version: '1.0.0',
|
|
42
42
|
title: 'Deal List',
|
|
43
43
|
description: 'List view of deals with value, status, and owner info',
|