@contractspec/example.crm-pipeline 1.57.0 → 1.58.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 +148 -164
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +20 -0
- package/dist/browser/crm-pipeline.feature.js +75 -0
- package/dist/browser/deal/deal.enum.js +18 -0
- package/dist/browser/deal/deal.operation.js +396 -0
- package/dist/browser/deal/deal.schema.js +141 -0
- package/dist/browser/deal/deal.test-spec.js +58 -0
- package/dist/browser/deal/index.js +408 -0
- package/dist/browser/docs/crm-pipeline.docblock.js +113 -0
- package/dist/browser/docs/index.js +113 -0
- package/dist/browser/entities/company.entity.js +52 -0
- package/dist/browser/entities/contact.entity.js +66 -0
- package/dist/browser/entities/deal.entity.js +107 -0
- package/dist/browser/entities/index.js +343 -0
- package/dist/browser/entities/task.entity.js +99 -0
- package/dist/browser/events/contact.event.js +31 -0
- package/dist/browser/events/deal.event.js +101 -0
- package/dist/browser/events/index.js +158 -0
- package/dist/browser/events/task.event.js +28 -0
- package/dist/browser/example.js +39 -0
- package/dist/browser/handlers/crm.handlers.js +160 -0
- package/dist/browser/handlers/deal.handlers.js +293 -0
- package/dist/browser/handlers/index.js +456 -0
- package/dist/browser/handlers/mock-data.js +165 -0
- package/dist/browser/index.js +3279 -0
- package/dist/browser/operations/index.js +407 -0
- package/dist/browser/presentations/dashboard.presentation.js +52 -0
- package/dist/browser/presentations/index.js +284 -0
- package/dist/browser/presentations/pipeline.presentation.js +233 -0
- package/dist/browser/seeders/index.js +22 -0
- package/dist/browser/shared/overlay-types.js +0 -0
- package/dist/browser/ui/CrmDashboard.js +1325 -0
- package/dist/browser/ui/CrmDealCard.js +50 -0
- package/dist/browser/ui/CrmPipelineBoard.js +160 -0
- package/dist/browser/ui/hooks/index.js +186 -0
- package/dist/browser/ui/hooks/useDealList.js +84 -0
- package/dist/browser/ui/hooks/useDealMutations.js +100 -0
- package/dist/browser/ui/index.js +1972 -0
- package/dist/browser/ui/modals/CreateDealModal.js +211 -0
- package/dist/browser/ui/modals/DealActionsModal.js +428 -0
- package/dist/browser/ui/modals/index.js +638 -0
- package/dist/browser/ui/overlays/demo-overlays.js +55 -0
- package/dist/browser/ui/overlays/index.js +55 -0
- package/dist/browser/ui/renderers/index.js +827 -0
- package/dist/browser/ui/renderers/pipeline.markdown.js +564 -0
- package/dist/browser/ui/renderers/pipeline.renderer.js +264 -0
- package/dist/crm-pipeline.feature.d.ts +1 -6
- package/dist/crm-pipeline.feature.d.ts.map +1 -1
- package/dist/crm-pipeline.feature.js +74 -164
- package/dist/deal/deal.enum.d.ts +2 -7
- package/dist/deal/deal.enum.d.ts.map +1 -1
- package/dist/deal/deal.enum.js +16 -22
- package/dist/deal/deal.operation.d.ts +444 -450
- package/dist/deal/deal.operation.d.ts.map +1 -1
- package/dist/deal/deal.operation.js +390 -263
- package/dist/deal/deal.schema.d.ts +251 -256
- package/dist/deal/deal.schema.d.ts.map +1 -1
- package/dist/deal/deal.schema.js +131 -275
- package/dist/deal/deal.test-spec.d.ts +2 -7
- package/dist/deal/deal.test-spec.d.ts.map +1 -1
- package/dist/deal/deal.test-spec.js +56 -62
- package/dist/deal/index.d.ts +7 -4
- package/dist/deal/index.d.ts.map +1 -0
- package/dist/deal/index.js +408 -4
- package/dist/docs/crm-pipeline.docblock.d.ts +2 -1
- package/dist/docs/crm-pipeline.docblock.d.ts.map +1 -0
- package/dist/docs/crm-pipeline.docblock.js +45 -51
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +114 -1
- package/dist/entities/company.entity.d.ts +27 -32
- package/dist/entities/company.entity.d.ts.map +1 -1
- package/dist/entities/company.entity.js +51 -61
- package/dist/entities/contact.entity.d.ts +31 -36
- package/dist/entities/contact.entity.d.ts.map +1 -1
- package/dist/entities/contact.entity.js +65 -76
- package/dist/entities/deal.entity.d.ts +52 -57
- package/dist/entities/deal.entity.d.ts.map +1 -1
- package/dist/entities/deal.entity.js +104 -116
- package/dist/entities/index.d.ts +6 -10
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +342 -31
- package/dist/entities/task.entity.d.ts +42 -47
- package/dist/entities/task.entity.d.ts.map +1 -1
- package/dist/entities/task.entity.js +95 -124
- package/dist/events/contact.event.d.ts +21 -27
- package/dist/events/contact.event.d.ts.map +1 -1
- package/dist/events/contact.event.js +29 -42
- package/dist/events/deal.event.d.ts +100 -106
- package/dist/events/deal.event.d.ts.map +1 -1
- package/dist/events/deal.event.js +93 -163
- package/dist/events/index.d.ts +4 -4
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +158 -4
- package/dist/events/task.event.d.ts +21 -27
- package/dist/events/task.event.d.ts.map +1 -1
- package/dist/events/task.event.js +26 -42
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +38 -50
- package/dist/handlers/crm.handlers.d.ts +80 -78
- package/dist/handlers/crm.handlers.d.ts.map +1 -1
- package/dist/handlers/crm.handlers.js +155 -166
- package/dist/handlers/deal.handlers.d.ts +58 -63
- package/dist/handlers/deal.handlers.d.ts.map +1 -1
- package/dist/handlers/deal.handlers.js +279 -105
- package/dist/handlers/index.d.ts +10 -4
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +456 -4
- package/dist/handlers/mock-data.d.ts +38 -41
- package/dist/handlers/mock-data.d.ts.map +1 -1
- package/dist/handlers/mock-data.js +162 -184
- package/dist/index.d.ts +13 -42
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3277 -53
- package/dist/node/crm-pipeline.feature.js +75 -0
- package/dist/node/deal/deal.enum.js +18 -0
- package/dist/node/deal/deal.operation.js +396 -0
- package/dist/node/deal/deal.schema.js +141 -0
- package/dist/node/deal/deal.test-spec.js +58 -0
- package/dist/node/deal/index.js +408 -0
- package/dist/node/docs/crm-pipeline.docblock.js +113 -0
- package/dist/node/docs/index.js +113 -0
- package/dist/node/entities/company.entity.js +52 -0
- package/dist/node/entities/contact.entity.js +66 -0
- package/dist/node/entities/deal.entity.js +107 -0
- package/dist/node/entities/index.js +343 -0
- package/dist/node/entities/task.entity.js +99 -0
- package/dist/node/events/contact.event.js +31 -0
- package/dist/node/events/deal.event.js +101 -0
- package/dist/node/events/index.js +158 -0
- package/dist/node/events/task.event.js +28 -0
- package/dist/node/example.js +39 -0
- package/dist/node/handlers/crm.handlers.js +160 -0
- package/dist/node/handlers/deal.handlers.js +293 -0
- package/dist/node/handlers/index.js +456 -0
- package/dist/node/handlers/mock-data.js +165 -0
- package/dist/node/index.js +3279 -0
- package/dist/node/operations/index.js +407 -0
- package/dist/node/presentations/dashboard.presentation.js +52 -0
- package/dist/node/presentations/index.js +284 -0
- package/dist/node/presentations/pipeline.presentation.js +233 -0
- package/dist/node/seeders/index.js +22 -0
- package/dist/node/shared/overlay-types.js +0 -0
- package/dist/node/ui/CrmDashboard.js +1325 -0
- package/dist/node/ui/CrmDealCard.js +50 -0
- package/dist/node/ui/CrmPipelineBoard.js +160 -0
- package/dist/node/ui/hooks/index.js +186 -0
- package/dist/node/ui/hooks/useDealList.js +84 -0
- package/dist/node/ui/hooks/useDealMutations.js +100 -0
- package/dist/node/ui/index.js +1972 -0
- package/dist/node/ui/modals/CreateDealModal.js +211 -0
- package/dist/node/ui/modals/DealActionsModal.js +428 -0
- package/dist/node/ui/modals/index.js +638 -0
- package/dist/node/ui/overlays/demo-overlays.js +55 -0
- package/dist/node/ui/overlays/index.js +55 -0
- package/dist/node/ui/renderers/index.js +827 -0
- package/dist/node/ui/renderers/pipeline.markdown.js +564 -0
- package/dist/node/ui/renderers/pipeline.renderer.js +264 -0
- package/dist/operations/index.d.ts +2 -5
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/index.js +407 -5
- package/dist/presentations/dashboard.presentation.d.ts +2 -7
- package/dist/presentations/dashboard.presentation.d.ts.map +1 -1
- package/dist/presentations/dashboard.presentation.js +51 -60
- package/dist/presentations/index.d.ts +3 -3
- package/dist/presentations/index.d.ts.map +1 -0
- package/dist/presentations/index.js +284 -3
- package/dist/presentations/pipeline.presentation.d.ts +4 -9
- package/dist/presentations/pipeline.presentation.d.ts.map +1 -1
- package/dist/presentations/pipeline.presentation.js +228 -116
- package/dist/seeders/index.d.ts +4 -8
- package/dist/seeders/index.d.ts.map +1 -1
- package/dist/seeders/index.js +21 -45
- package/dist/shared/overlay-types.d.ts +25 -28
- package/dist/shared/overlay-types.d.ts.map +1 -1
- package/dist/shared/overlay-types.js +1 -0
- package/dist/ui/CrmDashboard.d.ts +1 -6
- package/dist/ui/CrmDashboard.d.ts.map +1 -1
- package/dist/ui/CrmDashboard.js +1318 -296
- package/dist/ui/CrmDealCard.d.ts +8 -12
- package/dist/ui/CrmDealCard.d.ts.map +1 -1
- package/dist/ui/CrmDealCard.js +47 -45
- package/dist/ui/CrmPipelineBoard.d.ts +11 -20
- package/dist/ui/CrmPipelineBoard.d.ts.map +1 -1
- package/dist/ui/CrmPipelineBoard.js +157 -94
- package/dist/ui/hooks/index.d.ts +3 -3
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +185 -4
- package/dist/ui/hooks/useDealList.d.ts +28 -32
- package/dist/ui/hooks/useDealList.d.ts.map +1 -1
- package/dist/ui/hooks/useDealList.js +81 -90
- package/dist/ui/hooks/useDealMutations.d.ts +18 -22
- package/dist/ui/hooks/useDealMutations.d.ts.map +1 -1
- package/dist/ui/hooks/useDealMutations.js +97 -155
- package/dist/ui/index.d.ts +8 -14
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +1973 -15
- package/dist/ui/modals/CreateDealModal.d.ts +19 -29
- package/dist/ui/modals/CreateDealModal.d.ts.map +1 -1
- package/dist/ui/modals/CreateDealModal.js +209 -180
- package/dist/ui/modals/DealActionsModal.d.ts +31 -44
- package/dist/ui/modals/DealActionsModal.d.ts.map +1 -1
- package/dist/ui/modals/DealActionsModal.js +424 -367
- package/dist/ui/modals/index.d.ts +3 -3
- package/dist/ui/modals/index.d.ts.map +1 -0
- package/dist/ui/modals/index.js +638 -3
- package/dist/ui/overlays/demo-overlays.d.ts +10 -8
- package/dist/ui/overlays/demo-overlays.d.ts.map +1 -1
- package/dist/ui/overlays/demo-overlays.js +54 -66
- package/dist/ui/overlays/index.d.ts +2 -2
- package/dist/ui/overlays/index.d.ts.map +1 -0
- package/dist/ui/overlays/index.js +56 -3
- package/dist/ui/renderers/index.d.ts +3 -3
- package/dist/ui/renderers/index.d.ts.map +1 -0
- package/dist/ui/renderers/index.js +827 -3
- package/dist/ui/renderers/pipeline.markdown.d.ts +12 -11
- package/dist/ui/renderers/pipeline.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/pipeline.markdown.js +560 -114
- package/dist/ui/renderers/pipeline.renderer.d.ts +9 -7
- package/dist/ui/renderers/pipeline.renderer.d.ts.map +1 -1
- package/dist/ui/renderers/pipeline.renderer.js +261 -24
- package/package.json +476 -90
- package/tsdown.config.js +1 -2
- package/.turbo/turbo-build$colon$bundle.log +0 -164
- package/dist/crm-pipeline.feature.js.map +0 -1
- package/dist/deal/deal.enum.js.map +0 -1
- package/dist/deal/deal.operation.js.map +0 -1
- package/dist/deal/deal.schema.js.map +0 -1
- package/dist/deal/deal.test-spec.js.map +0 -1
- package/dist/docs/crm-pipeline.docblock.js.map +0 -1
- package/dist/entities/company.entity.js.map +0 -1
- package/dist/entities/contact.entity.js.map +0 -1
- package/dist/entities/deal.entity.js.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/task.entity.js.map +0 -1
- package/dist/events/contact.event.js.map +0 -1
- package/dist/events/deal.event.js.map +0 -1
- package/dist/events/task.event.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/crm.handlers.js.map +0 -1
- package/dist/handlers/deal.handlers.js.map +0 -1
- package/dist/handlers/mock-data.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/presentations/dashboard.presentation.js.map +0 -1
- package/dist/presentations/pipeline.presentation.js.map +0 -1
- package/dist/seeders/index.js.map +0 -1
- package/dist/ui/CrmDashboard.js.map +0 -1
- package/dist/ui/CrmDealCard.js.map +0 -1
- package/dist/ui/CrmPipelineBoard.js.map +0 -1
- package/dist/ui/hooks/useDealList.js.map +0 -1
- package/dist/ui/hooks/useDealMutations.js.map +0 -1
- package/dist/ui/modals/CreateDealModal.js.map +0 -1
- package/dist/ui/modals/DealActionsModal.js.map +0 -1
- package/dist/ui/overlays/demo-overlays.js.map +0 -1
- package/dist/ui/renderers/pipeline.markdown.js.map +0 -1
- package/dist/ui/renderers/pipeline.renderer.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,300 +1,295 @@
|
|
|
1
|
-
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
2
|
-
|
|
3
|
-
//#region src/deal/deal.schema.d.ts
|
|
4
1
|
/**
|
|
5
2
|
* A deal in the CRM pipeline.
|
|
6
3
|
*/
|
|
7
|
-
declare const DealModel:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
4
|
+
export declare const DealModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
5
|
+
id: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
name: {
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
value: {
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
currency: {
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
19
|
+
isOptional: false;
|
|
20
|
+
};
|
|
21
|
+
pipelineId: {
|
|
22
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
stageId: {
|
|
26
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
27
|
+
isOptional: false;
|
|
28
|
+
};
|
|
29
|
+
status: {
|
|
30
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
31
|
+
isOptional: false;
|
|
32
|
+
};
|
|
33
|
+
contactId: {
|
|
34
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
35
|
+
isOptional: true;
|
|
36
|
+
};
|
|
37
|
+
companyId: {
|
|
38
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
39
|
+
isOptional: true;
|
|
40
|
+
};
|
|
41
|
+
ownerId: {
|
|
42
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
43
|
+
isOptional: false;
|
|
44
|
+
};
|
|
45
|
+
expectedCloseDate: {
|
|
46
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
47
|
+
isOptional: true;
|
|
48
|
+
};
|
|
49
|
+
createdAt: {
|
|
50
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
51
|
+
isOptional: false;
|
|
52
|
+
};
|
|
53
|
+
updatedAt: {
|
|
54
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
55
|
+
isOptional: false;
|
|
56
|
+
};
|
|
60
57
|
}>;
|
|
61
58
|
/**
|
|
62
59
|
* Input for creating a deal.
|
|
63
60
|
*/
|
|
64
|
-
declare const CreateDealInputModel:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
61
|
+
export declare const CreateDealInputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
62
|
+
name: {
|
|
63
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
};
|
|
66
|
+
value: {
|
|
67
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
68
|
+
isOptional: false;
|
|
69
|
+
};
|
|
70
|
+
currency: {
|
|
71
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
72
|
+
isOptional: true;
|
|
73
|
+
};
|
|
74
|
+
pipelineId: {
|
|
75
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
76
|
+
isOptional: false;
|
|
77
|
+
};
|
|
78
|
+
stageId: {
|
|
79
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
80
|
+
isOptional: false;
|
|
81
|
+
};
|
|
82
|
+
contactId: {
|
|
83
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
84
|
+
isOptional: true;
|
|
85
|
+
};
|
|
86
|
+
companyId: {
|
|
87
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
88
|
+
isOptional: true;
|
|
89
|
+
};
|
|
90
|
+
expectedCloseDate: {
|
|
91
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
92
|
+
isOptional: true;
|
|
93
|
+
};
|
|
97
94
|
}>;
|
|
98
95
|
/**
|
|
99
96
|
* Input for moving a deal to another stage.
|
|
100
97
|
*/
|
|
101
|
-
declare const MoveDealInputModel:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
98
|
+
export declare const MoveDealInputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
99
|
+
dealId: {
|
|
100
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
101
|
+
isOptional: false;
|
|
102
|
+
};
|
|
103
|
+
stageId: {
|
|
104
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
105
|
+
isOptional: false;
|
|
106
|
+
};
|
|
107
|
+
position: {
|
|
108
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
109
|
+
isOptional: true;
|
|
110
|
+
};
|
|
114
111
|
}>;
|
|
115
112
|
/**
|
|
116
113
|
* Payload for deal moved event.
|
|
117
114
|
*/
|
|
118
|
-
declare const DealMovedPayloadModel:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
115
|
+
export declare const DealMovedPayloadModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
116
|
+
dealId: {
|
|
117
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
118
|
+
isOptional: false;
|
|
119
|
+
};
|
|
120
|
+
fromStage: {
|
|
121
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
122
|
+
isOptional: false;
|
|
123
|
+
};
|
|
124
|
+
toStage: {
|
|
125
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
126
|
+
isOptional: false;
|
|
127
|
+
};
|
|
131
128
|
}>;
|
|
132
129
|
/**
|
|
133
130
|
* Input for marking a deal as won.
|
|
134
131
|
*/
|
|
135
|
-
declare const WinDealInputModel:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
132
|
+
export declare const WinDealInputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
133
|
+
dealId: {
|
|
134
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
135
|
+
isOptional: false;
|
|
136
|
+
};
|
|
137
|
+
wonSource: {
|
|
138
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
139
|
+
isOptional: true;
|
|
140
|
+
};
|
|
141
|
+
notes: {
|
|
142
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
143
|
+
isOptional: true;
|
|
144
|
+
};
|
|
148
145
|
}>;
|
|
149
146
|
/**
|
|
150
147
|
* Payload for deal won event.
|
|
151
148
|
*/
|
|
152
|
-
declare const DealWonPayloadModel:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
149
|
+
export declare const DealWonPayloadModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
150
|
+
dealId: {
|
|
151
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
152
|
+
isOptional: false;
|
|
153
|
+
};
|
|
154
|
+
value: {
|
|
155
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
156
|
+
isOptional: false;
|
|
157
|
+
};
|
|
161
158
|
}>;
|
|
162
159
|
/**
|
|
163
160
|
* Input for marking a deal as lost.
|
|
164
161
|
*/
|
|
165
|
-
declare const LoseDealInputModel:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
162
|
+
export declare const LoseDealInputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
163
|
+
dealId: {
|
|
164
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
165
|
+
isOptional: false;
|
|
166
|
+
};
|
|
167
|
+
lostReason: {
|
|
168
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
169
|
+
isOptional: false;
|
|
170
|
+
};
|
|
171
|
+
notes: {
|
|
172
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
173
|
+
isOptional: true;
|
|
174
|
+
};
|
|
178
175
|
}>;
|
|
179
176
|
/**
|
|
180
177
|
* Payload for deal lost event.
|
|
181
178
|
*/
|
|
182
|
-
declare const DealLostPayloadModel:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
179
|
+
export declare const DealLostPayloadModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
180
|
+
dealId: {
|
|
181
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
182
|
+
isOptional: false;
|
|
183
|
+
};
|
|
184
|
+
reason: {
|
|
185
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
186
|
+
isOptional: false;
|
|
187
|
+
};
|
|
191
188
|
}>;
|
|
192
189
|
/**
|
|
193
190
|
* Input for listing deals.
|
|
194
191
|
*/
|
|
195
|
-
declare const ListDealsInputModel:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
192
|
+
export declare const ListDealsInputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
193
|
+
pipelineId: {
|
|
194
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
195
|
+
isOptional: true;
|
|
196
|
+
};
|
|
197
|
+
stageId: {
|
|
198
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
199
|
+
isOptional: true;
|
|
200
|
+
};
|
|
201
|
+
status: {
|
|
202
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
203
|
+
isOptional: true;
|
|
204
|
+
};
|
|
205
|
+
ownerId: {
|
|
206
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
207
|
+
isOptional: true;
|
|
208
|
+
};
|
|
209
|
+
search: {
|
|
210
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
211
|
+
isOptional: true;
|
|
212
|
+
};
|
|
213
|
+
limit: {
|
|
214
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
215
|
+
isOptional: true;
|
|
216
|
+
defaultValue: number;
|
|
217
|
+
};
|
|
218
|
+
offset: {
|
|
219
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
220
|
+
isOptional: true;
|
|
221
|
+
defaultValue: number;
|
|
222
|
+
};
|
|
226
223
|
}>;
|
|
227
224
|
/**
|
|
228
225
|
* Output for listing deals.
|
|
229
226
|
*/
|
|
230
|
-
declare const ListDealsOutputModel:
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
227
|
+
export declare const ListDealsOutputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
228
|
+
deals: {
|
|
229
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
230
|
+
id: {
|
|
231
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
232
|
+
isOptional: false;
|
|
233
|
+
};
|
|
234
|
+
name: {
|
|
235
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
236
|
+
isOptional: false;
|
|
237
|
+
};
|
|
238
|
+
value: {
|
|
239
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
240
|
+
isOptional: false;
|
|
241
|
+
};
|
|
242
|
+
currency: {
|
|
243
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
244
|
+
isOptional: false;
|
|
245
|
+
};
|
|
246
|
+
pipelineId: {
|
|
247
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
248
|
+
isOptional: false;
|
|
249
|
+
};
|
|
250
|
+
stageId: {
|
|
251
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
252
|
+
isOptional: false;
|
|
253
|
+
};
|
|
254
|
+
status: {
|
|
255
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
256
|
+
isOptional: false;
|
|
257
|
+
};
|
|
258
|
+
contactId: {
|
|
259
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
260
|
+
isOptional: true;
|
|
261
|
+
};
|
|
262
|
+
companyId: {
|
|
263
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
264
|
+
isOptional: true;
|
|
265
|
+
};
|
|
266
|
+
ownerId: {
|
|
267
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
268
|
+
isOptional: false;
|
|
269
|
+
};
|
|
270
|
+
expectedCloseDate: {
|
|
271
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
272
|
+
isOptional: true;
|
|
273
|
+
};
|
|
274
|
+
createdAt: {
|
|
275
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
276
|
+
isOptional: false;
|
|
277
|
+
};
|
|
278
|
+
updatedAt: {
|
|
279
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
280
|
+
isOptional: false;
|
|
281
|
+
};
|
|
282
|
+
}>;
|
|
283
|
+
isArray: true;
|
|
251
284
|
isOptional: false;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
type:
|
|
255
|
-
isOptional: false;
|
|
256
|
-
};
|
|
257
|
-
status: {
|
|
258
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
259
|
-
isOptional: false;
|
|
260
|
-
};
|
|
261
|
-
contactId: {
|
|
262
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
263
|
-
isOptional: true;
|
|
264
|
-
};
|
|
265
|
-
companyId: {
|
|
266
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
267
|
-
isOptional: true;
|
|
268
|
-
};
|
|
269
|
-
ownerId: {
|
|
270
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
271
|
-
isOptional: false;
|
|
272
|
-
};
|
|
273
|
-
expectedCloseDate: {
|
|
274
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
275
|
-
isOptional: true;
|
|
276
|
-
};
|
|
277
|
-
createdAt: {
|
|
278
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
285
|
+
};
|
|
286
|
+
total: {
|
|
287
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
279
288
|
isOptional: false;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
type:
|
|
289
|
+
};
|
|
290
|
+
totalValue: {
|
|
291
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
283
292
|
isOptional: false;
|
|
284
|
-
|
|
285
|
-
}>;
|
|
286
|
-
isArray: true;
|
|
287
|
-
isOptional: false;
|
|
288
|
-
};
|
|
289
|
-
total: {
|
|
290
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
291
|
-
isOptional: false;
|
|
292
|
-
};
|
|
293
|
-
totalValue: {
|
|
294
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
295
|
-
isOptional: false;
|
|
296
|
-
};
|
|
293
|
+
};
|
|
297
294
|
}>;
|
|
298
|
-
//#endregion
|
|
299
|
-
export { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel };
|
|
300
295
|
//# sourceMappingURL=deal.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal.schema.d.ts","
|
|
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"}
|