@contractspec/example.crm-pipeline 1.62.0 → 2.1.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 +97 -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
|
@@ -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/browser/example.js
CHANGED
package/dist/browser/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",
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
* CRM Pipeline feature module that bundles deal management,
|
|
3
3
|
* pipeline operations, and contact management into an installable feature.
|
|
4
4
|
*/
|
|
5
|
-
export declare const CrmPipelineFeature: import("@contractspec/lib.contracts").FeatureModuleSpec;
|
|
6
|
-
//# sourceMappingURL=crm-pipeline.feature.d.ts.map
|
|
5
|
+
export declare const CrmPipelineFeature: import("@contractspec/lib.contracts-spec").FeatureModuleSpec;
|
package/dist/deal/deal.enum.d.ts
CHANGED
|
@@ -6,4 +6,3 @@ export declare const DealStatusEnum: import("@contractspec/lib.schema").EnumType
|
|
|
6
6
|
* Deal status filter enum.
|
|
7
7
|
*/
|
|
8
8
|
export declare const DealStatusFilterEnum: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
9
|
-
//# sourceMappingURL=deal.enum.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Create a new deal.
|
|
3
3
|
*/
|
|
4
|
-
export declare const CreateDealContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
4
|
+
export declare const CreateDealContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
5
|
name: {
|
|
6
6
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
@@ -149,7 +149,7 @@ export declare const CreateDealContract: import("@contractspec/lib.contracts").O
|
|
|
149
149
|
/**
|
|
150
150
|
* Move deal to a different stage.
|
|
151
151
|
*/
|
|
152
|
-
export declare const MoveDealContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
152
|
+
export declare const MoveDealContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
153
153
|
dealId: {
|
|
154
154
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
@@ -237,7 +237,7 @@ export declare const MoveDealContract: import("@contractspec/lib.contracts").Ope
|
|
|
237
237
|
/**
|
|
238
238
|
* Mark deal as won.
|
|
239
239
|
*/
|
|
240
|
-
export declare const WinDealContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
240
|
+
export declare const WinDealContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
241
241
|
dealId: {
|
|
242
242
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
243
243
|
isOptional: false;
|
|
@@ -321,7 +321,7 @@ export declare const WinDealContract: import("@contractspec/lib.contracts").Oper
|
|
|
321
321
|
/**
|
|
322
322
|
* Mark deal as lost.
|
|
323
323
|
*/
|
|
324
|
-
export declare const LoseDealContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
324
|
+
export declare const LoseDealContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
325
325
|
dealId: {
|
|
326
326
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
327
327
|
isOptional: false;
|
|
@@ -405,7 +405,7 @@ export declare const LoseDealContract: import("@contractspec/lib.contracts").Ope
|
|
|
405
405
|
/**
|
|
406
406
|
* List deals in pipeline.
|
|
407
407
|
*/
|
|
408
|
-
export declare const ListDealsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
408
|
+
export declare const ListDealsContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
409
409
|
pipelineId: {
|
|
410
410
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
411
411
|
isOptional: true;
|
|
@@ -504,4 +504,3 @@ export declare const ListDealsContract: import("@contractspec/lib.contracts").Op
|
|
|
504
504
|
isOptional: false;
|
|
505
505
|
};
|
|
506
506
|
}>, undefined>;
|
|
507
|
-
//# sourceMappingURL=deal.operation.d.ts.map
|
|
@@ -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,3 +1,2 @@
|
|
|
1
|
-
export declare const dealListTest: import("@contractspec/lib.contracts").TestSpec;
|
|
2
|
-
export declare const dealMoveTest: import("@contractspec/lib.contracts").TestSpec;
|
|
3
|
-
//# sourceMappingURL=deal.test-spec.d.ts.map
|
|
1
|
+
export declare const dealListTest: import("@contractspec/lib.contracts-spec/tests").TestSpec;
|
|
2
|
+
export declare const dealMoveTest: import("@contractspec/lib.contracts-spec/tests").TestSpec;
|
package/dist/deal/index.d.ts
CHANGED
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
export { DealStatusEnum, DealStatusFilterEnum } from './deal.enum';
|
|
5
5
|
export { DealModel, CreateDealInputModel, MoveDealInputModel, DealMovedPayloadModel, WinDealInputModel, DealWonPayloadModel, LoseDealInputModel, DealLostPayloadModel, ListDealsInputModel, ListDealsOutputModel, } from './deal.schema';
|
|
6
6
|
export { CreateDealContract, MoveDealContract, WinDealContract, LoseDealContract, ListDealsContract, } from './deal.operation';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/deal/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,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/docs/crm-pipeline.docblock.ts
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
4
|
var crmPipelineDocBlocks = [
|
|
5
5
|
{
|
|
6
6
|
id: "docs.examples.crm-pipeline.goal",
|
package/dist/docs/index.d.ts
CHANGED
package/dist/docs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/docs/crm-pipeline.docblock.ts
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
4
|
var crmPipelineDocBlocks = [
|
|
5
5
|
{
|
|
6
6
|
id: "docs.examples.crm-pipeline.goal",
|
|
@@ -36,4 +36,3 @@ export declare const ContactEntity: import("@contractspec/lib.schema").EntitySpe
|
|
|
36
36
|
tasks: import("@contractspec/lib.schema").EntityRelationField;
|
|
37
37
|
activities: import("@contractspec/lib.schema").EntityRelationField;
|
|
38
38
|
}>;
|
|
39
|
-
//# sourceMappingURL=contact.entity.d.ts.map
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ContactCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
1
|
+
export declare const ContactCreatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
2
2
|
contactId: {
|
|
3
3
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
4
4
|
isOptional: false;
|
|
@@ -20,4 +20,3 @@ export declare const ContactCreatedEvent: import("@contractspec/lib.contracts").
|
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
}>>;
|
|
23
|
-
//# sourceMappingURL=contact.event.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/events/contact.event.ts
|
|
3
3
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
4
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
4
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
5
5
|
var ContactCreatedPayload = defineSchemaModel({
|
|
6
6
|
name: "ContactCreatedPayload",
|
|
7
7
|
description: "Payload when a contact is created",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DealCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
1
|
+
export declare const DealCreatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
2
2
|
dealId: {
|
|
3
3
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
4
4
|
isOptional: false;
|
|
@@ -28,7 +28,7 @@ export declare const DealCreatedEvent: import("@contractspec/lib.contracts").Eve
|
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
}>>;
|
|
31
|
-
export declare const DealMovedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
31
|
+
export declare const DealMovedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
32
32
|
dealId: {
|
|
33
33
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
@@ -50,7 +50,7 @@ export declare const DealMovedEvent: import("@contractspec/lib.contracts").Event
|
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
}>>;
|
|
53
|
-
export declare const DealWonEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
53
|
+
export declare const DealWonEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
54
54
|
dealId: {
|
|
55
55
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
@@ -80,7 +80,7 @@ export declare const DealWonEvent: import("@contractspec/lib.contracts").EventSp
|
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
}>>;
|
|
83
|
-
export declare const DealLostEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
83
|
+
export declare const DealLostEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
84
84
|
dealId: {
|
|
85
85
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
@@ -102,4 +102,3 @@ export declare const DealLostEvent: import("@contractspec/lib.contracts").EventS
|
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
}>>;
|
|
105
|
-
//# sourceMappingURL=deal.event.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/events/deal.event.ts
|
|
3
3
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
4
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
4
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
5
5
|
var DealCreatedPayload = defineSchemaModel({
|
|
6
6
|
name: "DealCreatedPayload",
|
|
7
7
|
description: "Payload when a deal is created",
|
package/dist/events/index.d.ts
CHANGED
package/dist/events/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/events/contact.event.ts
|
|
3
3
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
4
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
4
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
5
5
|
var ContactCreatedPayload = defineSchemaModel({
|
|
6
6
|
name: "ContactCreatedPayload",
|
|
7
7
|
description: "Payload when a contact is created",
|
|
@@ -30,7 +30,7 @@ var ContactCreatedEvent = defineEvent({
|
|
|
30
30
|
|
|
31
31
|
// src/events/deal.event.ts
|
|
32
32
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
33
|
-
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
|
|
33
|
+
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
|
|
34
34
|
var DealCreatedPayload = defineSchemaModel2({
|
|
35
35
|
name: "DealCreatedPayload",
|
|
36
36
|
description: "Payload when a deal is created",
|
|
@@ -126,7 +126,7 @@ var DealLostEvent = defineEvent2({
|
|
|
126
126
|
|
|
127
127
|
// src/events/task.event.ts
|
|
128
128
|
import { ScalarTypeEnum as ScalarTypeEnum3, defineSchemaModel as defineSchemaModel3 } from "@contractspec/lib.schema";
|
|
129
|
-
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts";
|
|
129
|
+
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
|
|
130
130
|
var TaskCompletedPayload = defineSchemaModel3({
|
|
131
131
|
name: "TaskCompletedPayload",
|
|
132
132
|
description: "Payload when a task is completed",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const TaskCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
1
|
+
export declare const TaskCompletedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
2
2
|
taskId: {
|
|
3
3
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
4
4
|
isOptional: false;
|
|
@@ -20,4 +20,3 @@ export declare const TaskCompletedEvent: import("@contractspec/lib.contracts").E
|
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
}>>;
|
|
23
|
-
//# sourceMappingURL=task.event.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/events/task.event.ts
|
|
3
3
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
4
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
4
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
5
5
|
var TaskCompletedPayload = defineSchemaModel({
|
|
6
6
|
name: "TaskCompletedPayload",
|
|
7
7
|
description: "Payload when a task is completed",
|
package/dist/example.d.ts
CHANGED
package/dist/example.js
CHANGED
package/dist/handlers/index.d.ts
CHANGED
|
@@ -7,4 +7,3 @@
|
|
|
7
7
|
export * from './mock-data';
|
|
8
8
|
export { mockListDealsHandler, mockCreateDealHandler, mockMoveDealHandler, mockWinDealHandler, mockLoseDealHandler, mockGetDealsByStageHandler, mockGetPipelineStagesHandler, type Deal, type CreateDealInput, type MoveDealInput, type WinDealInput, type LoseDealInput, type ListDealsInput, type ListDealsOutput, } from './deal.handlers';
|
|
9
9
|
export * from './crm.handlers';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/crm-pipeline.feature.ts
|
|
3
|
-
import { defineFeature } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var CrmPipelineFeature = defineFeature({
|
|
5
5
|
meta: {
|
|
6
6
|
key: "crm-pipeline",
|
|
@@ -206,7 +206,7 @@ var ListDealsOutputModel = defineSchemaModel({
|
|
|
206
206
|
import {
|
|
207
207
|
defineCommand,
|
|
208
208
|
defineQuery
|
|
209
|
-
} from "@contractspec/lib.contracts/operations";
|
|
209
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
210
210
|
var OWNERS = ["@example.crm-pipeline"];
|
|
211
211
|
var CreateDealContract = defineCommand({
|
|
212
212
|
meta: {
|
|
@@ -462,7 +462,7 @@ var ListDealsContract = defineQuery({
|
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
464
|
// src/docs/crm-pipeline.docblock.ts
|
|
465
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
465
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
466
466
|
var crmPipelineDocBlocks = [
|
|
467
467
|
{
|
|
468
468
|
id: "docs.examples.crm-pipeline.goal",
|
|
@@ -904,7 +904,7 @@ var crmPipelineSchemaContribution = {
|
|
|
904
904
|
|
|
905
905
|
// src/events/contact.event.ts
|
|
906
906
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
907
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
907
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
908
908
|
var ContactCreatedPayload = defineSchemaModel2({
|
|
909
909
|
name: "ContactCreatedPayload",
|
|
910
910
|
description: "Payload when a contact is created",
|
|
@@ -933,7 +933,7 @@ var ContactCreatedEvent = defineEvent({
|
|
|
933
933
|
|
|
934
934
|
// src/events/deal.event.ts
|
|
935
935
|
import { ScalarTypeEnum as ScalarTypeEnum3, defineSchemaModel as defineSchemaModel3 } from "@contractspec/lib.schema";
|
|
936
|
-
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
|
|
936
|
+
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
|
|
937
937
|
var DealCreatedPayload = defineSchemaModel3({
|
|
938
938
|
name: "DealCreatedPayload",
|
|
939
939
|
description: "Payload when a deal is created",
|
|
@@ -1029,7 +1029,7 @@ var DealLostEvent = defineEvent2({
|
|
|
1029
1029
|
|
|
1030
1030
|
// src/events/task.event.ts
|
|
1031
1031
|
import { ScalarTypeEnum as ScalarTypeEnum4, defineSchemaModel as defineSchemaModel4 } from "@contractspec/lib.schema";
|
|
1032
|
-
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts";
|
|
1032
|
+
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
|
|
1033
1033
|
var TaskCompletedPayload = defineSchemaModel4({
|
|
1034
1034
|
name: "TaskCompletedPayload",
|
|
1035
1035
|
description: "Payload when a task is completed",
|
|
@@ -1053,7 +1053,7 @@ var TaskCompletedEvent = defineEvent3({
|
|
|
1053
1053
|
payload: TaskCompletedPayload
|
|
1054
1054
|
});
|
|
1055
1055
|
// src/example.ts
|
|
1056
|
-
import { defineExample } from "@contractspec/lib.contracts";
|
|
1056
|
+
import { defineExample } from "@contractspec/lib.contracts-spec";
|
|
1057
1057
|
var example = defineExample({
|
|
1058
1058
|
meta: {
|
|
1059
1059
|
key: "crm-pipeline",
|
|
@@ -1532,7 +1532,10 @@ async function mockGetPipelineStagesHandler(input) {
|
|
|
1532
1532
|
return MOCK_STAGES.filter((s) => s.pipelineId === input.pipelineId);
|
|
1533
1533
|
}
|
|
1534
1534
|
// src/presentations/dashboard.presentation.ts
|
|
1535
|
-
import {
|
|
1535
|
+
import {
|
|
1536
|
+
definePresentation,
|
|
1537
|
+
StabilityEnum
|
|
1538
|
+
} from "@contractspec/lib.contracts-spec";
|
|
1536
1539
|
var CrmDashboardPresentation = definePresentation({
|
|
1537
1540
|
meta: {
|
|
1538
1541
|
key: "crm.dashboard",
|
|
@@ -1581,7 +1584,10 @@ var PipelineMetricsPresentation = definePresentation({
|
|
|
1581
1584
|
});
|
|
1582
1585
|
|
|
1583
1586
|
// src/presentations/pipeline.presentation.ts
|
|
1584
|
-
import {
|
|
1587
|
+
import {
|
|
1588
|
+
definePresentation as definePresentation2,
|
|
1589
|
+
StabilityEnum as StabilityEnum2
|
|
1590
|
+
} from "@contractspec/lib.contracts-spec";
|
|
1585
1591
|
var PipelineKanbanPresentation = definePresentation2({
|
|
1586
1592
|
meta: {
|
|
1587
1593
|
key: "crm.pipeline.kanban",
|