@contractspec/example.crm-pipeline 1.62.0 → 2.0.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.log +35 -35
- package/CHANGELOG.md +76 -45
- package/dist/browser/crm-pipeline.feature.js +1 -1
- package/dist/browser/deal/deal.operation.js +1 -1
- package/dist/browser/deal/deal.test-spec.js +1 -1
- package/dist/browser/deal/index.js +1 -1
- package/dist/browser/docs/crm-pipeline.docblock.js +1 -1
- package/dist/browser/docs/index.js +1 -1
- package/dist/browser/events/contact.event.js +1 -1
- package/dist/browser/events/deal.event.js +1 -1
- package/dist/browser/events/index.js +3 -3
- package/dist/browser/events/task.event.js +1 -1
- package/dist/browser/example.js +1 -1
- package/dist/browser/index.js +15 -9
- package/dist/browser/operations/index.js +1 -1
- package/dist/browser/presentations/dashboard.presentation.js +4 -1
- package/dist/browser/presentations/index.js +8 -2
- package/dist/browser/presentations/pipeline.presentation.js +4 -1
- package/dist/crm-pipeline.feature.d.ts +1 -2
- package/dist/crm-pipeline.feature.js +1 -1
- package/dist/deal/deal.enum.d.ts +0 -1
- package/dist/deal/deal.operation.d.ts +5 -6
- package/dist/deal/deal.operation.js +1 -1
- package/dist/deal/deal.schema.d.ts +0 -1
- package/dist/deal/deal.test-spec.d.ts +2 -3
- package/dist/deal/deal.test-spec.js +1 -1
- package/dist/deal/index.d.ts +0 -1
- package/dist/deal/index.js +1 -1
- package/dist/docs/crm-pipeline.docblock.d.ts +0 -1
- package/dist/docs/crm-pipeline.docblock.js +1 -1
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/index.js +1 -1
- package/dist/entities/company.entity.d.ts +0 -1
- package/dist/entities/contact.entity.d.ts +0 -1
- package/dist/entities/deal.entity.d.ts +0 -1
- package/dist/entities/index.d.ts +0 -1
- package/dist/entities/task.entity.d.ts +0 -1
- package/dist/events/contact.event.d.ts +1 -2
- package/dist/events/contact.event.js +1 -1
- package/dist/events/deal.event.d.ts +4 -5
- package/dist/events/deal.event.js +1 -1
- package/dist/events/index.d.ts +0 -1
- package/dist/events/index.js +3 -3
- package/dist/events/task.event.d.ts +1 -2
- package/dist/events/task.event.js +1 -1
- package/dist/example.d.ts +1 -2
- package/dist/example.js +1 -1
- package/dist/handlers/crm.handlers.d.ts +0 -1
- package/dist/handlers/deal.handlers.d.ts +0 -1
- package/dist/handlers/index.d.ts +0 -1
- package/dist/handlers/mock-data.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +15 -9
- package/dist/node/crm-pipeline.feature.js +1 -1
- package/dist/node/deal/deal.operation.js +1 -1
- package/dist/node/deal/deal.test-spec.js +1 -1
- package/dist/node/deal/index.js +1 -1
- package/dist/node/docs/crm-pipeline.docblock.js +1 -1
- package/dist/node/docs/index.js +1 -1
- package/dist/node/events/contact.event.js +1 -1
- package/dist/node/events/deal.event.js +1 -1
- package/dist/node/events/index.js +3 -3
- package/dist/node/events/task.event.js +1 -1
- package/dist/node/example.js +1 -1
- package/dist/node/index.js +15 -9
- package/dist/node/operations/index.js +1 -1
- package/dist/node/presentations/dashboard.presentation.js +4 -1
- package/dist/node/presentations/index.js +8 -2
- package/dist/node/presentations/pipeline.presentation.js +4 -1
- package/dist/operations/index.d.ts +0 -1
- package/dist/operations/index.js +1 -1
- package/dist/presentations/dashboard.presentation.d.ts +2 -3
- package/dist/presentations/dashboard.presentation.js +4 -1
- package/dist/presentations/index.d.ts +0 -1
- package/dist/presentations/index.js +8 -2
- package/dist/presentations/pipeline.presentation.d.ts +4 -5
- package/dist/presentations/pipeline.presentation.js +4 -1
- package/dist/seeders/index.d.ts +0 -1
- package/dist/shared/overlay-types.d.ts +0 -1
- package/dist/ui/CrmDashboard.d.ts +0 -1
- package/dist/ui/CrmDealCard.d.ts +0 -1
- package/dist/ui/CrmPipelineBoard.d.ts +0 -1
- package/dist/ui/hooks/index.d.ts +0 -1
- package/dist/ui/hooks/useDealList.d.ts +0 -1
- package/dist/ui/hooks/useDealMutations.d.ts +0 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/modals/CreateDealModal.d.ts +0 -1
- package/dist/ui/modals/DealActionsModal.d.ts +0 -1
- package/dist/ui/modals/index.d.ts +0 -1
- package/dist/ui/overlays/demo-overlays.d.ts +0 -1
- package/dist/ui/overlays/index.d.ts +0 -1
- package/dist/ui/renderers/index.d.ts +0 -1
- package/dist/ui/renderers/pipeline.markdown.d.ts +1 -2
- package/dist/ui/renderers/pipeline.renderer.d.ts +1 -2
- package/package.json +13 -13
- package/src/crm-pipeline.feature.ts +1 -1
- package/src/deal/deal.operation.ts +1 -1
- package/src/deal/deal.test-spec.ts +1 -1
- package/src/docs/crm-pipeline.docblock.ts +2 -2
- package/src/events/contact.event.ts +1 -1
- package/src/events/deal.event.ts +1 -1
- package/src/events/task.event.ts +1 -1
- package/src/example.ts +1 -1
- package/src/presentations/dashboard.presentation.ts +4 -1
- package/src/presentations/pipeline.presentation.ts +4 -1
- package/src/ui/renderers/pipeline.markdown.ts +1 -1
- package/src/ui/renderers/pipeline.renderer.tsx +1 -1
- package/dist/crm-pipeline.feature.d.ts.map +0 -1
- package/dist/deal/deal.enum.d.ts.map +0 -1
- package/dist/deal/deal.operation.d.ts.map +0 -1
- package/dist/deal/deal.schema.d.ts.map +0 -1
- package/dist/deal/deal.test-spec.d.ts.map +0 -1
- package/dist/deal/index.d.ts.map +0 -1
- package/dist/docs/crm-pipeline.docblock.d.ts.map +0 -1
- package/dist/docs/index.d.ts.map +0 -1
- package/dist/entities/company.entity.d.ts.map +0 -1
- package/dist/entities/contact.entity.d.ts.map +0 -1
- package/dist/entities/deal.entity.d.ts.map +0 -1
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/task.entity.d.ts.map +0 -1
- package/dist/events/contact.event.d.ts.map +0 -1
- package/dist/events/deal.event.d.ts.map +0 -1
- package/dist/events/index.d.ts.map +0 -1
- package/dist/events/task.event.d.ts.map +0 -1
- package/dist/example.d.ts.map +0 -1
- package/dist/handlers/crm.handlers.d.ts.map +0 -1
- package/dist/handlers/deal.handlers.d.ts.map +0 -1
- package/dist/handlers/index.d.ts.map +0 -1
- package/dist/handlers/mock-data.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/operations/index.d.ts.map +0 -1
- package/dist/presentations/dashboard.presentation.d.ts.map +0 -1
- package/dist/presentations/index.d.ts.map +0 -1
- package/dist/presentations/pipeline.presentation.d.ts.map +0 -1
- package/dist/seeders/index.d.ts.map +0 -1
- package/dist/shared/overlay-types.d.ts.map +0 -1
- package/dist/ui/CrmDashboard.d.ts.map +0 -1
- package/dist/ui/CrmDealCard.d.ts.map +0 -1
- package/dist/ui/CrmPipelineBoard.d.ts.map +0 -1
- package/dist/ui/hooks/index.d.ts.map +0 -1
- package/dist/ui/hooks/useDealList.d.ts.map +0 -1
- package/dist/ui/hooks/useDealMutations.d.ts.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/modals/CreateDealModal.d.ts.map +0 -1
- package/dist/ui/modals/DealActionsModal.d.ts.map +0 -1
- package/dist/ui/modals/index.d.ts.map +0 -1
- package/dist/ui/overlays/demo-overlays.d.ts.map +0 -1
- package/dist/ui/overlays/index.d.ts.map +0 -1
- package/dist/ui/renderers/index.d.ts.map +0 -1
- package/dist/ui/renderers/pipeline.markdown.d.ts.map +0 -1
- package/dist/ui/renderers/pipeline.renderer.d.ts.map +0 -1
package/dist/node/docs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/events/contact.event.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var ContactCreatedPayload = defineSchemaModel({
|
|
5
5
|
name: "ContactCreatedPayload",
|
|
6
6
|
description: "Payload when a contact is created",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/events/deal.event.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var DealCreatedPayload = defineSchemaModel({
|
|
5
5
|
name: "DealCreatedPayload",
|
|
6
6
|
description: "Payload when a deal is created",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/events/contact.event.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var ContactCreatedPayload = defineSchemaModel({
|
|
5
5
|
name: "ContactCreatedPayload",
|
|
6
6
|
description: "Payload when a contact is created",
|
|
@@ -29,7 +29,7 @@ var ContactCreatedEvent = defineEvent({
|
|
|
29
29
|
|
|
30
30
|
// src/events/deal.event.ts
|
|
31
31
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
32
|
-
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
|
|
32
|
+
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
|
|
33
33
|
var DealCreatedPayload = defineSchemaModel2({
|
|
34
34
|
name: "DealCreatedPayload",
|
|
35
35
|
description: "Payload when a deal is created",
|
|
@@ -125,7 +125,7 @@ var DealLostEvent = defineEvent2({
|
|
|
125
125
|
|
|
126
126
|
// src/events/task.event.ts
|
|
127
127
|
import { ScalarTypeEnum as ScalarTypeEnum3, defineSchemaModel as defineSchemaModel3 } from "@contractspec/lib.schema";
|
|
128
|
-
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts";
|
|
128
|
+
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
|
|
129
129
|
var TaskCompletedPayload = defineSchemaModel3({
|
|
130
130
|
name: "TaskCompletedPayload",
|
|
131
131
|
description: "Payload when a task is completed",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/events/task.event.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var TaskCompletedPayload = defineSchemaModel({
|
|
5
5
|
name: "TaskCompletedPayload",
|
|
6
6
|
description: "Payload when a task is completed",
|
package/dist/node/example.js
CHANGED
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/crm-pipeline.feature.ts
|
|
2
|
-
import { defineFeature } from "@contractspec/lib.contracts";
|
|
2
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
3
3
|
var CrmPipelineFeature = defineFeature({
|
|
4
4
|
meta: {
|
|
5
5
|
key: "crm-pipeline",
|
|
@@ -205,7 +205,7 @@ var ListDealsOutputModel = defineSchemaModel({
|
|
|
205
205
|
import {
|
|
206
206
|
defineCommand,
|
|
207
207
|
defineQuery
|
|
208
|
-
} from "@contractspec/lib.contracts/operations";
|
|
208
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
209
209
|
var OWNERS = ["@example.crm-pipeline"];
|
|
210
210
|
var CreateDealContract = defineCommand({
|
|
211
211
|
meta: {
|
|
@@ -461,7 +461,7 @@ var ListDealsContract = defineQuery({
|
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
463
|
// src/docs/crm-pipeline.docblock.ts
|
|
464
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
464
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
465
465
|
var crmPipelineDocBlocks = [
|
|
466
466
|
{
|
|
467
467
|
id: "docs.examples.crm-pipeline.goal",
|
|
@@ -903,7 +903,7 @@ var crmPipelineSchemaContribution = {
|
|
|
903
903
|
|
|
904
904
|
// src/events/contact.event.ts
|
|
905
905
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
906
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
906
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
907
907
|
var ContactCreatedPayload = defineSchemaModel2({
|
|
908
908
|
name: "ContactCreatedPayload",
|
|
909
909
|
description: "Payload when a contact is created",
|
|
@@ -932,7 +932,7 @@ var ContactCreatedEvent = defineEvent({
|
|
|
932
932
|
|
|
933
933
|
// src/events/deal.event.ts
|
|
934
934
|
import { ScalarTypeEnum as ScalarTypeEnum3, defineSchemaModel as defineSchemaModel3 } from "@contractspec/lib.schema";
|
|
935
|
-
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
|
|
935
|
+
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
|
|
936
936
|
var DealCreatedPayload = defineSchemaModel3({
|
|
937
937
|
name: "DealCreatedPayload",
|
|
938
938
|
description: "Payload when a deal is created",
|
|
@@ -1028,7 +1028,7 @@ var DealLostEvent = defineEvent2({
|
|
|
1028
1028
|
|
|
1029
1029
|
// src/events/task.event.ts
|
|
1030
1030
|
import { ScalarTypeEnum as ScalarTypeEnum4, defineSchemaModel as defineSchemaModel4 } from "@contractspec/lib.schema";
|
|
1031
|
-
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts";
|
|
1031
|
+
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
|
|
1032
1032
|
var TaskCompletedPayload = defineSchemaModel4({
|
|
1033
1033
|
name: "TaskCompletedPayload",
|
|
1034
1034
|
description: "Payload when a task is completed",
|
|
@@ -1052,7 +1052,7 @@ var TaskCompletedEvent = defineEvent3({
|
|
|
1052
1052
|
payload: TaskCompletedPayload
|
|
1053
1053
|
});
|
|
1054
1054
|
// src/example.ts
|
|
1055
|
-
import { defineExample } from "@contractspec/lib.contracts";
|
|
1055
|
+
import { defineExample } from "@contractspec/lib.contracts-spec";
|
|
1056
1056
|
var example = defineExample({
|
|
1057
1057
|
meta: {
|
|
1058
1058
|
key: "crm-pipeline",
|
|
@@ -1531,7 +1531,10 @@ async function mockGetPipelineStagesHandler(input) {
|
|
|
1531
1531
|
return MOCK_STAGES.filter((s) => s.pipelineId === input.pipelineId);
|
|
1532
1532
|
}
|
|
1533
1533
|
// src/presentations/dashboard.presentation.ts
|
|
1534
|
-
import {
|
|
1534
|
+
import {
|
|
1535
|
+
definePresentation,
|
|
1536
|
+
StabilityEnum
|
|
1537
|
+
} from "@contractspec/lib.contracts-spec";
|
|
1535
1538
|
var CrmDashboardPresentation = definePresentation({
|
|
1536
1539
|
meta: {
|
|
1537
1540
|
key: "crm.dashboard",
|
|
@@ -1580,7 +1583,10 @@ var PipelineMetricsPresentation = definePresentation({
|
|
|
1580
1583
|
});
|
|
1581
1584
|
|
|
1582
1585
|
// src/presentations/pipeline.presentation.ts
|
|
1583
|
-
import {
|
|
1586
|
+
import {
|
|
1587
|
+
definePresentation as definePresentation2,
|
|
1588
|
+
StabilityEnum as StabilityEnum2
|
|
1589
|
+
} from "@contractspec/lib.contracts-spec";
|
|
1584
1590
|
var PipelineKanbanPresentation = definePresentation2({
|
|
1585
1591
|
meta: {
|
|
1586
1592
|
key: "crm.pipeline.kanban",
|
|
@@ -132,7 +132,7 @@ var ListDealsOutputModel = defineSchemaModel({
|
|
|
132
132
|
import {
|
|
133
133
|
defineCommand,
|
|
134
134
|
defineQuery
|
|
135
|
-
} from "@contractspec/lib.contracts/operations";
|
|
135
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
136
136
|
var OWNERS = ["@example.crm-pipeline"];
|
|
137
137
|
var CreateDealContract = defineCommand({
|
|
138
138
|
meta: {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// src/presentations/dashboard.presentation.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
definePresentation,
|
|
4
|
+
StabilityEnum
|
|
5
|
+
} from "@contractspec/lib.contracts-spec";
|
|
3
6
|
var CrmDashboardPresentation = definePresentation({
|
|
4
7
|
meta: {
|
|
5
8
|
key: "crm.dashboard",
|
|
@@ -129,7 +129,10 @@ var ListDealsOutputModel = defineSchemaModel({
|
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
// src/presentations/dashboard.presentation.ts
|
|
132
|
-
import {
|
|
132
|
+
import {
|
|
133
|
+
definePresentation,
|
|
134
|
+
StabilityEnum
|
|
135
|
+
} from "@contractspec/lib.contracts-spec";
|
|
133
136
|
var CrmDashboardPresentation = definePresentation({
|
|
134
137
|
meta: {
|
|
135
138
|
key: "crm.dashboard",
|
|
@@ -178,7 +181,10 @@ var PipelineMetricsPresentation = definePresentation({
|
|
|
178
181
|
});
|
|
179
182
|
|
|
180
183
|
// src/presentations/pipeline.presentation.ts
|
|
181
|
-
import {
|
|
184
|
+
import {
|
|
185
|
+
definePresentation as definePresentation2,
|
|
186
|
+
StabilityEnum as StabilityEnum2
|
|
187
|
+
} from "@contractspec/lib.contracts-spec";
|
|
182
188
|
var PipelineKanbanPresentation = definePresentation2({
|
|
183
189
|
meta: {
|
|
184
190
|
key: "crm.pipeline.kanban",
|
|
@@ -129,7 +129,10 @@ var ListDealsOutputModel = defineSchemaModel({
|
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
// src/presentations/pipeline.presentation.ts
|
|
132
|
-
import {
|
|
132
|
+
import {
|
|
133
|
+
definePresentation,
|
|
134
|
+
StabilityEnum
|
|
135
|
+
} from "@contractspec/lib.contracts-spec";
|
|
133
136
|
var PipelineKanbanPresentation = definePresentation({
|
|
134
137
|
meta: {
|
|
135
138
|
key: "crm.pipeline.kanban",
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export { DealStatusFilterEnum, DealModel, CreateDealInputModel, MoveDealInputModel, DealMovedPayloadModel, WinDealInputModel, DealWonPayloadModel, LoseDealInputModel, DealLostPayloadModel, ListDealsInputModel, ListDealsOutputModel, CreateDealContract, MoveDealContract, WinDealContract, LoseDealContract, ListDealsContract, } from '../deal';
|
|
2
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/operations/index.js
CHANGED
|
@@ -133,7 +133,7 @@ var ListDealsOutputModel = defineSchemaModel({
|
|
|
133
133
|
import {
|
|
134
134
|
defineCommand,
|
|
135
135
|
defineQuery
|
|
136
|
-
} from "@contractspec/lib.contracts/operations";
|
|
136
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
137
137
|
var OWNERS = ["@example.crm-pipeline"];
|
|
138
138
|
var CreateDealContract = defineCommand({
|
|
139
139
|
meta: {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Main CRM dashboard presentation.
|
|
3
3
|
*/
|
|
4
|
-
export declare const CrmDashboardPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
4
|
+
export declare const CrmDashboardPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
5
5
|
/**
|
|
6
6
|
* Pipeline metrics presentation.
|
|
7
7
|
*/
|
|
8
|
-
export declare const PipelineMetricsPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
9
|
-
//# sourceMappingURL=dashboard.presentation.d.ts.map
|
|
8
|
+
export declare const PipelineMetricsPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/presentations/dashboard.presentation.ts
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
definePresentation,
|
|
5
|
+
StabilityEnum
|
|
6
|
+
} from "@contractspec/lib.contracts-spec";
|
|
4
7
|
var CrmDashboardPresentation = definePresentation({
|
|
5
8
|
meta: {
|
|
6
9
|
key: "crm.dashboard",
|
|
@@ -130,7 +130,10 @@ var ListDealsOutputModel = defineSchemaModel({
|
|
|
130
130
|
});
|
|
131
131
|
|
|
132
132
|
// src/presentations/dashboard.presentation.ts
|
|
133
|
-
import {
|
|
133
|
+
import {
|
|
134
|
+
definePresentation,
|
|
135
|
+
StabilityEnum
|
|
136
|
+
} from "@contractspec/lib.contracts-spec";
|
|
134
137
|
var CrmDashboardPresentation = definePresentation({
|
|
135
138
|
meta: {
|
|
136
139
|
key: "crm.dashboard",
|
|
@@ -179,7 +182,10 @@ var PipelineMetricsPresentation = definePresentation({
|
|
|
179
182
|
});
|
|
180
183
|
|
|
181
184
|
// src/presentations/pipeline.presentation.ts
|
|
182
|
-
import {
|
|
185
|
+
import {
|
|
186
|
+
definePresentation as definePresentation2,
|
|
187
|
+
StabilityEnum as StabilityEnum2
|
|
188
|
+
} from "@contractspec/lib.contracts-spec";
|
|
183
189
|
var PipelineKanbanPresentation = definePresentation2({
|
|
184
190
|
meta: {
|
|
185
191
|
key: "crm.pipeline.kanban",
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Kanban board presentation for the sales pipeline.
|
|
3
3
|
*/
|
|
4
|
-
export declare const PipelineKanbanPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
4
|
+
export declare const PipelineKanbanPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
5
5
|
/**
|
|
6
6
|
* List view of deals with filtering.
|
|
7
7
|
*/
|
|
8
|
-
export declare const DealListPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
8
|
+
export declare const DealListPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
9
9
|
/**
|
|
10
10
|
* Deal detail presentation.
|
|
11
11
|
*/
|
|
12
|
-
export declare const DealDetailPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
12
|
+
export declare const DealDetailPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
13
13
|
/**
|
|
14
14
|
* Deal card for kanban board.
|
|
15
15
|
*/
|
|
16
|
-
export declare const DealCardPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
17
|
-
//# sourceMappingURL=pipeline.presentation.d.ts.map
|
|
16
|
+
export declare const DealCardPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
@@ -130,7 +130,10 @@ var ListDealsOutputModel = defineSchemaModel({
|
|
|
130
130
|
});
|
|
131
131
|
|
|
132
132
|
// src/presentations/pipeline.presentation.ts
|
|
133
|
-
import {
|
|
133
|
+
import {
|
|
134
|
+
definePresentation,
|
|
135
|
+
StabilityEnum
|
|
136
|
+
} from "@contractspec/lib.contracts-spec";
|
|
134
137
|
var PipelineKanbanPresentation = definePresentation({
|
|
135
138
|
meta: {
|
|
136
139
|
key: "crm.pipeline.kanban",
|
package/dist/seeders/index.d.ts
CHANGED
package/dist/ui/CrmDealCard.d.ts
CHANGED
package/dist/ui/hooks/index.d.ts
CHANGED
package/dist/ui/index.d.ts
CHANGED
|
@@ -35,4 +35,3 @@ interface DealActionsModalProps {
|
|
|
35
35
|
}
|
|
36
36
|
export declare function DealActionsModal({ isOpen, deal, stages, onClose, onWin, onLose, onMove, isLoading, }: DealActionsModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
37
37
|
export {};
|
|
38
|
-
//# sourceMappingURL=DealActionsModal.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Imports handlers from the hooks module to ensure correct build order.
|
|
5
5
|
*/
|
|
6
|
-
import type { PresentationRenderer } from '@contractspec/lib.contracts';
|
|
6
|
+
import type { PresentationRenderer } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
|
|
7
7
|
/**
|
|
8
8
|
* Markdown renderer for CRM Pipeline Kanban view (crm-pipeline.deal.pipeline)
|
|
9
9
|
* Only handles PipelineKanbanView component
|
|
@@ -20,4 +20,3 @@ export declare const crmDashboardMarkdownRenderer: PresentationRenderer<{
|
|
|
20
20
|
mimeType: string;
|
|
21
21
|
body: string;
|
|
22
22
|
}>;
|
|
23
|
-
//# sourceMappingURL=pipeline.markdown.d.ts.map
|
|
@@ -5,6 +5,5 @@
|
|
|
5
5
|
* Data is fetched via the CrmPipelineBoard component's internal hooks.
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
|
-
import type { PresentationRenderer } from '@contractspec/lib.contracts';
|
|
8
|
+
import type { PresentationRenderer } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
|
|
9
9
|
export declare const crmPipelineReactRenderer: PresentationRenderer<React.ReactElement>;
|
|
10
|
-
//# sourceMappingURL=pipeline.renderer.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.crm-pipeline",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "CRM Pipeline - Contacts, Companies, Deals, Tasks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -416,30 +416,30 @@
|
|
|
416
416
|
"lint": "bun lint:fix",
|
|
417
417
|
"lint:fix": "eslint src --fix",
|
|
418
418
|
"lint:check": "eslint src",
|
|
419
|
-
"test": "bun test",
|
|
419
|
+
"test": "bun test --pass-with-no-tests",
|
|
420
420
|
"validate": "contractspec validate \"src/**/*\"",
|
|
421
421
|
"prebuild": "contractspec-bun-build prebuild",
|
|
422
422
|
"typecheck": "tsc --noEmit"
|
|
423
423
|
},
|
|
424
424
|
"dependencies": {
|
|
425
|
-
"@contractspec/lib.contracts": "
|
|
426
|
-
"@contractspec/lib.design-system": "
|
|
427
|
-
"@contractspec/lib.example-shared-ui": "
|
|
428
|
-
"@contractspec/lib.identity-rbac": "
|
|
429
|
-
"@contractspec/lib.runtime-sandbox": "0.
|
|
430
|
-
"@contractspec/lib.schema": "
|
|
431
|
-
"@contractspec/lib.ui-kit-web": "
|
|
432
|
-
"@contractspec/module.audit-trail": "
|
|
433
|
-
"@contractspec/module.notifications": "
|
|
425
|
+
"@contractspec/lib.contracts-spec": "2.0.0",
|
|
426
|
+
"@contractspec/lib.design-system": "2.0.0",
|
|
427
|
+
"@contractspec/lib.example-shared-ui": "2.0.0",
|
|
428
|
+
"@contractspec/lib.identity-rbac": "2.0.0",
|
|
429
|
+
"@contractspec/lib.runtime-sandbox": "1.0.0",
|
|
430
|
+
"@contractspec/lib.schema": "2.0.0",
|
|
431
|
+
"@contractspec/lib.ui-kit-web": "2.0.0",
|
|
432
|
+
"@contractspec/module.audit-trail": "2.0.0",
|
|
433
|
+
"@contractspec/module.notifications": "2.0.0",
|
|
434
434
|
"react": "19.2.4",
|
|
435
435
|
"react-dom": "19.2.4"
|
|
436
436
|
},
|
|
437
437
|
"devDependencies": {
|
|
438
|
-
"@contractspec/tool.typescript": "
|
|
438
|
+
"@contractspec/tool.typescript": "2.0.0",
|
|
439
439
|
"typescript": "^5.9.3",
|
|
440
440
|
"@types/react": "^19.2.14",
|
|
441
441
|
"@types/react-dom": "^19.2.2",
|
|
442
|
-
"@contractspec/tool.bun": "
|
|
442
|
+
"@contractspec/tool.bun": "2.0.0"
|
|
443
443
|
},
|
|
444
444
|
"publishConfig": {
|
|
445
445
|
"exports": {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Defines the feature module for CRM and sales pipeline capabilities.
|
|
5
5
|
*/
|
|
6
|
-
import { defineFeature } from '@contractspec/lib.contracts';
|
|
6
|
+
import { defineFeature } from '@contractspec/lib.contracts-spec';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* CRM Pipeline feature module that bundles deal management,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DocBlock } from '@contractspec/lib.contracts/docs';
|
|
2
|
-
import { registerDocBlocks } from '@contractspec/lib.contracts/docs';
|
|
1
|
+
import type { DocBlock } from '@contractspec/lib.contracts-spec/docs';
|
|
2
|
+
import { registerDocBlocks } from '@contractspec/lib.contracts-spec/docs';
|
|
3
3
|
|
|
4
4
|
const crmPipelineDocBlocks: DocBlock[] = [
|
|
5
5
|
{
|
package/src/events/deal.event.ts
CHANGED
package/src/events/task.event.ts
CHANGED
package/src/example.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CRM Dashboard Presentation Descriptor
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
definePresentation,
|
|
6
|
+
StabilityEnum,
|
|
7
|
+
} from '@contractspec/lib.contracts-spec';
|
|
5
8
|
|
|
6
9
|
/**
|
|
7
10
|
* Main CRM dashboard presentation.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Pipeline Presentation Descriptors
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
definePresentation,
|
|
6
|
+
StabilityEnum,
|
|
7
|
+
} from '@contractspec/lib.contracts-spec';
|
|
5
8
|
import { DealModel } from '../deal/deal.schema';
|
|
6
9
|
|
|
7
10
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Imports handlers from the hooks module to ensure correct build order.
|
|
5
5
|
*/
|
|
6
|
-
import type { PresentationRenderer } from '@contractspec/lib.contracts';
|
|
6
|
+
import type { PresentationRenderer } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
|
|
7
7
|
import {
|
|
8
8
|
mockListDealsHandler,
|
|
9
9
|
mockGetPipelineStagesHandler,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Data is fetched via the CrmPipelineBoard component's internal hooks.
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
|
-
import type { PresentationRenderer } from '@contractspec/lib.contracts';
|
|
8
|
+
import type { PresentationRenderer } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
|
|
9
9
|
import { CrmPipelineBoard } from '../CrmPipelineBoard';
|
|
10
10
|
import { useDealList } from '../hooks/useDealList';
|
|
11
11
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crm-pipeline.feature.d.ts","sourceRoot":"","sources":["../src/crm-pipeline.feature.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,yDAwF7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deal.enum.d.ts","sourceRoot":"","sources":["../../src/deal/deal.enum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,cAAc,+EAKzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB,+EAK/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deal.operation.d.ts","sourceRoot":"","sources":["../../src/deal/deal.operation.ts"],"names":[],"mappings":"AAmBA;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuD7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkD3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsD1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsD3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmC5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deal.schema.d.ts","sourceRoot":"","sources":["../../src/deal/deal.schema.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAQ7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;EAOhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;EAQ5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;EAM9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAQ7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;EAM/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deal.test-spec.d.ts","sourceRoot":"","sources":["../../src/deal/deal.test-spec.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,gDAyBvB,CAAC;AAEH,eAAO,MAAM,YAAY,gDAyBvB,CAAC"}
|