@contractspec/example.crm-pipeline 1.57.0 → 1.59.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 +39 -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,513 +1,507 @@
|
|
|
1
|
-
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
|
-
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
3
|
-
|
|
4
|
-
//#region src/deal/deal.operation.d.ts
|
|
5
1
|
/**
|
|
6
2
|
* Create a new deal.
|
|
7
3
|
*/
|
|
8
|
-
declare const CreateDealContract:
|
|
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
|
-
id: {
|
|
43
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
44
|
-
isOptional: false;
|
|
45
|
-
};
|
|
46
|
-
name: {
|
|
47
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
48
|
-
isOptional: false;
|
|
49
|
-
};
|
|
50
|
-
value: {
|
|
51
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
52
|
-
isOptional: false;
|
|
53
|
-
};
|
|
54
|
-
currency: {
|
|
55
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
56
|
-
isOptional: false;
|
|
57
|
-
};
|
|
58
|
-
pipelineId: {
|
|
59
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
60
|
-
isOptional: false;
|
|
61
|
-
};
|
|
62
|
-
stageId: {
|
|
63
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
64
|
-
isOptional: false;
|
|
65
|
-
};
|
|
66
|
-
status: {
|
|
67
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
68
|
-
isOptional: false;
|
|
69
|
-
};
|
|
70
|
-
contactId: {
|
|
71
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
72
|
-
isOptional: true;
|
|
73
|
-
};
|
|
74
|
-
companyId: {
|
|
75
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
76
|
-
isOptional: true;
|
|
77
|
-
};
|
|
78
|
-
ownerId: {
|
|
79
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
80
|
-
isOptional: false;
|
|
81
|
-
};
|
|
82
|
-
expectedCloseDate: {
|
|
83
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
84
|
-
isOptional: true;
|
|
85
|
-
};
|
|
86
|
-
createdAt: {
|
|
87
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
88
|
-
isOptional: false;
|
|
89
|
-
};
|
|
90
|
-
updatedAt: {
|
|
91
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
92
|
-
isOptional: false;
|
|
93
|
-
};
|
|
94
|
-
}>, {
|
|
95
|
-
key: string;
|
|
96
|
-
version: string;
|
|
97
|
-
when: string;
|
|
98
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
4
|
+
export declare const CreateDealContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
|
+
name: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
value: {
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
currency: {
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
15
|
+
isOptional: true;
|
|
16
|
+
};
|
|
17
|
+
pipelineId: {
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
19
|
+
isOptional: false;
|
|
20
|
+
};
|
|
21
|
+
stageId: {
|
|
22
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
contactId: {
|
|
26
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
27
|
+
isOptional: true;
|
|
28
|
+
};
|
|
29
|
+
companyId: {
|
|
30
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
31
|
+
isOptional: true;
|
|
32
|
+
};
|
|
33
|
+
expectedCloseDate: {
|
|
34
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
35
|
+
isOptional: true;
|
|
36
|
+
};
|
|
37
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
99
38
|
id: {
|
|
100
|
-
|
|
101
|
-
|
|
39
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
102
41
|
};
|
|
103
42
|
name: {
|
|
104
|
-
|
|
105
|
-
|
|
43
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
106
45
|
};
|
|
107
46
|
value: {
|
|
108
|
-
|
|
109
|
-
|
|
47
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
48
|
+
isOptional: false;
|
|
110
49
|
};
|
|
111
50
|
currency: {
|
|
112
|
-
|
|
113
|
-
|
|
51
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
52
|
+
isOptional: false;
|
|
114
53
|
};
|
|
115
54
|
pipelineId: {
|
|
116
|
-
|
|
117
|
-
|
|
55
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
56
|
+
isOptional: false;
|
|
118
57
|
};
|
|
119
58
|
stageId: {
|
|
120
|
-
|
|
121
|
-
|
|
59
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
60
|
+
isOptional: false;
|
|
122
61
|
};
|
|
123
62
|
status: {
|
|
124
|
-
|
|
125
|
-
|
|
63
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
64
|
+
isOptional: false;
|
|
126
65
|
};
|
|
127
66
|
contactId: {
|
|
128
|
-
|
|
129
|
-
|
|
67
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
68
|
+
isOptional: true;
|
|
130
69
|
};
|
|
131
70
|
companyId: {
|
|
132
|
-
|
|
133
|
-
|
|
71
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
72
|
+
isOptional: true;
|
|
134
73
|
};
|
|
135
74
|
ownerId: {
|
|
136
|
-
|
|
137
|
-
|
|
75
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
76
|
+
isOptional: false;
|
|
138
77
|
};
|
|
139
78
|
expectedCloseDate: {
|
|
140
|
-
|
|
141
|
-
|
|
79
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
80
|
+
isOptional: true;
|
|
142
81
|
};
|
|
143
82
|
createdAt: {
|
|
144
|
-
|
|
145
|
-
|
|
83
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
84
|
+
isOptional: false;
|
|
146
85
|
};
|
|
147
86
|
updatedAt: {
|
|
148
|
-
|
|
149
|
-
|
|
87
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
88
|
+
isOptional: false;
|
|
150
89
|
};
|
|
151
|
-
|
|
90
|
+
}>, {
|
|
91
|
+
key: string;
|
|
92
|
+
version: string;
|
|
93
|
+
when: string;
|
|
94
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
95
|
+
id: {
|
|
96
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
97
|
+
isOptional: false;
|
|
98
|
+
};
|
|
99
|
+
name: {
|
|
100
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
101
|
+
isOptional: false;
|
|
102
|
+
};
|
|
103
|
+
value: {
|
|
104
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
105
|
+
isOptional: false;
|
|
106
|
+
};
|
|
107
|
+
currency: {
|
|
108
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
109
|
+
isOptional: false;
|
|
110
|
+
};
|
|
111
|
+
pipelineId: {
|
|
112
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
113
|
+
isOptional: false;
|
|
114
|
+
};
|
|
115
|
+
stageId: {
|
|
116
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
117
|
+
isOptional: false;
|
|
118
|
+
};
|
|
119
|
+
status: {
|
|
120
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
121
|
+
isOptional: false;
|
|
122
|
+
};
|
|
123
|
+
contactId: {
|
|
124
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
125
|
+
isOptional: true;
|
|
126
|
+
};
|
|
127
|
+
companyId: {
|
|
128
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
129
|
+
isOptional: true;
|
|
130
|
+
};
|
|
131
|
+
ownerId: {
|
|
132
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
133
|
+
isOptional: false;
|
|
134
|
+
};
|
|
135
|
+
expectedCloseDate: {
|
|
136
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
137
|
+
isOptional: true;
|
|
138
|
+
};
|
|
139
|
+
createdAt: {
|
|
140
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
141
|
+
isOptional: false;
|
|
142
|
+
};
|
|
143
|
+
updatedAt: {
|
|
144
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
145
|
+
isOptional: false;
|
|
146
|
+
};
|
|
147
|
+
}>;
|
|
152
148
|
}[]>;
|
|
153
149
|
/**
|
|
154
150
|
* Move deal to a different stage.
|
|
155
151
|
*/
|
|
156
|
-
declare const MoveDealContract:
|
|
157
|
-
dealId: {
|
|
158
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
159
|
-
isOptional: false;
|
|
160
|
-
};
|
|
161
|
-
stageId: {
|
|
162
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
163
|
-
isOptional: false;
|
|
164
|
-
};
|
|
165
|
-
position: {
|
|
166
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
167
|
-
isOptional: true;
|
|
168
|
-
};
|
|
169
|
-
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
170
|
-
id: {
|
|
171
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
172
|
-
isOptional: false;
|
|
173
|
-
};
|
|
174
|
-
name: {
|
|
175
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
176
|
-
isOptional: false;
|
|
177
|
-
};
|
|
178
|
-
value: {
|
|
179
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
180
|
-
isOptional: false;
|
|
181
|
-
};
|
|
182
|
-
currency: {
|
|
183
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
184
|
-
isOptional: false;
|
|
185
|
-
};
|
|
186
|
-
pipelineId: {
|
|
187
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
188
|
-
isOptional: false;
|
|
189
|
-
};
|
|
190
|
-
stageId: {
|
|
191
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
192
|
-
isOptional: false;
|
|
193
|
-
};
|
|
194
|
-
status: {
|
|
195
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
196
|
-
isOptional: false;
|
|
197
|
-
};
|
|
198
|
-
contactId: {
|
|
199
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
200
|
-
isOptional: true;
|
|
201
|
-
};
|
|
202
|
-
companyId: {
|
|
203
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
204
|
-
isOptional: true;
|
|
205
|
-
};
|
|
206
|
-
ownerId: {
|
|
207
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
208
|
-
isOptional: false;
|
|
209
|
-
};
|
|
210
|
-
expectedCloseDate: {
|
|
211
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
212
|
-
isOptional: true;
|
|
213
|
-
};
|
|
214
|
-
createdAt: {
|
|
215
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
216
|
-
isOptional: false;
|
|
217
|
-
};
|
|
218
|
-
updatedAt: {
|
|
219
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
220
|
-
isOptional: false;
|
|
221
|
-
};
|
|
222
|
-
}>, {
|
|
223
|
-
key: string;
|
|
224
|
-
version: string;
|
|
225
|
-
when: string;
|
|
226
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
152
|
+
export declare const MoveDealContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
227
153
|
dealId: {
|
|
228
|
-
|
|
229
|
-
|
|
154
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
155
|
+
isOptional: false;
|
|
156
|
+
};
|
|
157
|
+
stageId: {
|
|
158
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
159
|
+
isOptional: false;
|
|
230
160
|
};
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
161
|
+
position: {
|
|
162
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
163
|
+
isOptional: true;
|
|
234
164
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
165
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
166
|
+
id: {
|
|
167
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
168
|
+
isOptional: false;
|
|
238
169
|
};
|
|
239
|
-
|
|
170
|
+
name: {
|
|
171
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
172
|
+
isOptional: false;
|
|
173
|
+
};
|
|
174
|
+
value: {
|
|
175
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
176
|
+
isOptional: false;
|
|
177
|
+
};
|
|
178
|
+
currency: {
|
|
179
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
180
|
+
isOptional: false;
|
|
181
|
+
};
|
|
182
|
+
pipelineId: {
|
|
183
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
184
|
+
isOptional: false;
|
|
185
|
+
};
|
|
186
|
+
stageId: {
|
|
187
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
188
|
+
isOptional: false;
|
|
189
|
+
};
|
|
190
|
+
status: {
|
|
191
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
192
|
+
isOptional: false;
|
|
193
|
+
};
|
|
194
|
+
contactId: {
|
|
195
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
196
|
+
isOptional: true;
|
|
197
|
+
};
|
|
198
|
+
companyId: {
|
|
199
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
200
|
+
isOptional: true;
|
|
201
|
+
};
|
|
202
|
+
ownerId: {
|
|
203
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
204
|
+
isOptional: false;
|
|
205
|
+
};
|
|
206
|
+
expectedCloseDate: {
|
|
207
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
208
|
+
isOptional: true;
|
|
209
|
+
};
|
|
210
|
+
createdAt: {
|
|
211
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
212
|
+
isOptional: false;
|
|
213
|
+
};
|
|
214
|
+
updatedAt: {
|
|
215
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
216
|
+
isOptional: false;
|
|
217
|
+
};
|
|
218
|
+
}>, {
|
|
219
|
+
key: string;
|
|
220
|
+
version: string;
|
|
221
|
+
when: string;
|
|
222
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
223
|
+
dealId: {
|
|
224
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
225
|
+
isOptional: false;
|
|
226
|
+
};
|
|
227
|
+
fromStage: {
|
|
228
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
229
|
+
isOptional: false;
|
|
230
|
+
};
|
|
231
|
+
toStage: {
|
|
232
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
233
|
+
isOptional: false;
|
|
234
|
+
};
|
|
235
|
+
}>;
|
|
240
236
|
}[]>;
|
|
241
237
|
/**
|
|
242
238
|
* Mark deal as won.
|
|
243
239
|
*/
|
|
244
|
-
declare const WinDealContract:
|
|
245
|
-
dealId: {
|
|
246
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
247
|
-
isOptional: false;
|
|
248
|
-
};
|
|
249
|
-
wonSource: {
|
|
250
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
251
|
-
isOptional: true;
|
|
252
|
-
};
|
|
253
|
-
notes: {
|
|
254
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
255
|
-
isOptional: true;
|
|
256
|
-
};
|
|
257
|
-
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
258
|
-
id: {
|
|
259
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
260
|
-
isOptional: false;
|
|
261
|
-
};
|
|
262
|
-
name: {
|
|
263
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
264
|
-
isOptional: false;
|
|
265
|
-
};
|
|
266
|
-
value: {
|
|
267
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
268
|
-
isOptional: false;
|
|
269
|
-
};
|
|
270
|
-
currency: {
|
|
271
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
272
|
-
isOptional: false;
|
|
273
|
-
};
|
|
274
|
-
pipelineId: {
|
|
275
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
276
|
-
isOptional: false;
|
|
277
|
-
};
|
|
278
|
-
stageId: {
|
|
279
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
280
|
-
isOptional: false;
|
|
281
|
-
};
|
|
282
|
-
status: {
|
|
283
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
284
|
-
isOptional: false;
|
|
285
|
-
};
|
|
286
|
-
contactId: {
|
|
287
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
288
|
-
isOptional: true;
|
|
289
|
-
};
|
|
290
|
-
companyId: {
|
|
291
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
292
|
-
isOptional: true;
|
|
293
|
-
};
|
|
294
|
-
ownerId: {
|
|
295
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
296
|
-
isOptional: false;
|
|
297
|
-
};
|
|
298
|
-
expectedCloseDate: {
|
|
299
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
300
|
-
isOptional: true;
|
|
301
|
-
};
|
|
302
|
-
createdAt: {
|
|
303
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
304
|
-
isOptional: false;
|
|
305
|
-
};
|
|
306
|
-
updatedAt: {
|
|
307
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
308
|
-
isOptional: false;
|
|
309
|
-
};
|
|
310
|
-
}>, {
|
|
311
|
-
key: string;
|
|
312
|
-
version: string;
|
|
313
|
-
when: string;
|
|
314
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
240
|
+
export declare const WinDealContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
315
241
|
dealId: {
|
|
316
|
-
|
|
317
|
-
|
|
242
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
243
|
+
isOptional: false;
|
|
244
|
+
};
|
|
245
|
+
wonSource: {
|
|
246
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
247
|
+
isOptional: true;
|
|
248
|
+
};
|
|
249
|
+
notes: {
|
|
250
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
251
|
+
isOptional: true;
|
|
252
|
+
};
|
|
253
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
254
|
+
id: {
|
|
255
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
256
|
+
isOptional: false;
|
|
257
|
+
};
|
|
258
|
+
name: {
|
|
259
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
260
|
+
isOptional: false;
|
|
318
261
|
};
|
|
319
262
|
value: {
|
|
320
|
-
|
|
321
|
-
|
|
263
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
264
|
+
isOptional: false;
|
|
322
265
|
};
|
|
323
|
-
|
|
266
|
+
currency: {
|
|
267
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
268
|
+
isOptional: false;
|
|
269
|
+
};
|
|
270
|
+
pipelineId: {
|
|
271
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
272
|
+
isOptional: false;
|
|
273
|
+
};
|
|
274
|
+
stageId: {
|
|
275
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
276
|
+
isOptional: false;
|
|
277
|
+
};
|
|
278
|
+
status: {
|
|
279
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
280
|
+
isOptional: false;
|
|
281
|
+
};
|
|
282
|
+
contactId: {
|
|
283
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
284
|
+
isOptional: true;
|
|
285
|
+
};
|
|
286
|
+
companyId: {
|
|
287
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
288
|
+
isOptional: true;
|
|
289
|
+
};
|
|
290
|
+
ownerId: {
|
|
291
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
292
|
+
isOptional: false;
|
|
293
|
+
};
|
|
294
|
+
expectedCloseDate: {
|
|
295
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
296
|
+
isOptional: true;
|
|
297
|
+
};
|
|
298
|
+
createdAt: {
|
|
299
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
300
|
+
isOptional: false;
|
|
301
|
+
};
|
|
302
|
+
updatedAt: {
|
|
303
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
304
|
+
isOptional: false;
|
|
305
|
+
};
|
|
306
|
+
}>, {
|
|
307
|
+
key: string;
|
|
308
|
+
version: string;
|
|
309
|
+
when: string;
|
|
310
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
311
|
+
dealId: {
|
|
312
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
313
|
+
isOptional: false;
|
|
314
|
+
};
|
|
315
|
+
value: {
|
|
316
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
317
|
+
isOptional: false;
|
|
318
|
+
};
|
|
319
|
+
}>;
|
|
324
320
|
}[]>;
|
|
325
321
|
/**
|
|
326
322
|
* Mark deal as lost.
|
|
327
323
|
*/
|
|
328
|
-
declare const LoseDealContract:
|
|
329
|
-
dealId: {
|
|
330
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
331
|
-
isOptional: false;
|
|
332
|
-
};
|
|
333
|
-
lostReason: {
|
|
334
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
335
|
-
isOptional: false;
|
|
336
|
-
};
|
|
337
|
-
notes: {
|
|
338
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
339
|
-
isOptional: true;
|
|
340
|
-
};
|
|
341
|
-
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
342
|
-
id: {
|
|
343
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
344
|
-
isOptional: false;
|
|
345
|
-
};
|
|
346
|
-
name: {
|
|
347
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
348
|
-
isOptional: false;
|
|
349
|
-
};
|
|
350
|
-
value: {
|
|
351
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
352
|
-
isOptional: false;
|
|
353
|
-
};
|
|
354
|
-
currency: {
|
|
355
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
356
|
-
isOptional: false;
|
|
357
|
-
};
|
|
358
|
-
pipelineId: {
|
|
359
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
360
|
-
isOptional: false;
|
|
361
|
-
};
|
|
362
|
-
stageId: {
|
|
363
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
364
|
-
isOptional: false;
|
|
365
|
-
};
|
|
366
|
-
status: {
|
|
367
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
368
|
-
isOptional: false;
|
|
369
|
-
};
|
|
370
|
-
contactId: {
|
|
371
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
372
|
-
isOptional: true;
|
|
373
|
-
};
|
|
374
|
-
companyId: {
|
|
375
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
376
|
-
isOptional: true;
|
|
377
|
-
};
|
|
378
|
-
ownerId: {
|
|
379
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
380
|
-
isOptional: false;
|
|
381
|
-
};
|
|
382
|
-
expectedCloseDate: {
|
|
383
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
384
|
-
isOptional: true;
|
|
385
|
-
};
|
|
386
|
-
createdAt: {
|
|
387
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
388
|
-
isOptional: false;
|
|
389
|
-
};
|
|
390
|
-
updatedAt: {
|
|
391
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
392
|
-
isOptional: false;
|
|
393
|
-
};
|
|
394
|
-
}>, {
|
|
395
|
-
key: string;
|
|
396
|
-
version: string;
|
|
397
|
-
when: string;
|
|
398
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
324
|
+
export declare const LoseDealContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
399
325
|
dealId: {
|
|
400
|
-
|
|
401
|
-
|
|
326
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
327
|
+
isOptional: false;
|
|
328
|
+
};
|
|
329
|
+
lostReason: {
|
|
330
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
331
|
+
isOptional: false;
|
|
402
332
|
};
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
333
|
+
notes: {
|
|
334
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
335
|
+
isOptional: true;
|
|
406
336
|
};
|
|
407
|
-
|
|
337
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
338
|
+
id: {
|
|
339
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
340
|
+
isOptional: false;
|
|
341
|
+
};
|
|
342
|
+
name: {
|
|
343
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
344
|
+
isOptional: false;
|
|
345
|
+
};
|
|
346
|
+
value: {
|
|
347
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
348
|
+
isOptional: false;
|
|
349
|
+
};
|
|
350
|
+
currency: {
|
|
351
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
352
|
+
isOptional: false;
|
|
353
|
+
};
|
|
354
|
+
pipelineId: {
|
|
355
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
356
|
+
isOptional: false;
|
|
357
|
+
};
|
|
358
|
+
stageId: {
|
|
359
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
360
|
+
isOptional: false;
|
|
361
|
+
};
|
|
362
|
+
status: {
|
|
363
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
364
|
+
isOptional: false;
|
|
365
|
+
};
|
|
366
|
+
contactId: {
|
|
367
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
368
|
+
isOptional: true;
|
|
369
|
+
};
|
|
370
|
+
companyId: {
|
|
371
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
372
|
+
isOptional: true;
|
|
373
|
+
};
|
|
374
|
+
ownerId: {
|
|
375
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
376
|
+
isOptional: false;
|
|
377
|
+
};
|
|
378
|
+
expectedCloseDate: {
|
|
379
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
380
|
+
isOptional: true;
|
|
381
|
+
};
|
|
382
|
+
createdAt: {
|
|
383
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
384
|
+
isOptional: false;
|
|
385
|
+
};
|
|
386
|
+
updatedAt: {
|
|
387
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
388
|
+
isOptional: false;
|
|
389
|
+
};
|
|
390
|
+
}>, {
|
|
391
|
+
key: string;
|
|
392
|
+
version: string;
|
|
393
|
+
when: string;
|
|
394
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
395
|
+
dealId: {
|
|
396
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
397
|
+
isOptional: false;
|
|
398
|
+
};
|
|
399
|
+
reason: {
|
|
400
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
401
|
+
isOptional: false;
|
|
402
|
+
};
|
|
403
|
+
}>;
|
|
408
404
|
}[]>;
|
|
409
405
|
/**
|
|
410
406
|
* List deals in pipeline.
|
|
411
407
|
*/
|
|
412
|
-
declare const ListDealsContract:
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
isOptional: true;
|
|
420
|
-
};
|
|
421
|
-
status: {
|
|
422
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
423
|
-
isOptional: true;
|
|
424
|
-
};
|
|
425
|
-
ownerId: {
|
|
426
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
427
|
-
isOptional: true;
|
|
428
|
-
};
|
|
429
|
-
search: {
|
|
430
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
431
|
-
isOptional: true;
|
|
432
|
-
};
|
|
433
|
-
limit: {
|
|
434
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
435
|
-
isOptional: true;
|
|
436
|
-
defaultValue: number;
|
|
437
|
-
};
|
|
438
|
-
offset: {
|
|
439
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
440
|
-
isOptional: true;
|
|
441
|
-
defaultValue: number;
|
|
442
|
-
};
|
|
443
|
-
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
444
|
-
deals: {
|
|
445
|
-
type: _contractspec_lib_schema0.SchemaModel<{
|
|
446
|
-
id: {
|
|
447
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
448
|
-
isOptional: false;
|
|
449
|
-
};
|
|
450
|
-
name: {
|
|
451
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
452
|
-
isOptional: false;
|
|
453
|
-
};
|
|
454
|
-
value: {
|
|
455
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
456
|
-
isOptional: false;
|
|
457
|
-
};
|
|
458
|
-
currency: {
|
|
459
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
460
|
-
isOptional: false;
|
|
461
|
-
};
|
|
462
|
-
pipelineId: {
|
|
463
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
464
|
-
isOptional: false;
|
|
465
|
-
};
|
|
466
|
-
stageId: {
|
|
467
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
468
|
-
isOptional: false;
|
|
469
|
-
};
|
|
470
|
-
status: {
|
|
471
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
472
|
-
isOptional: false;
|
|
473
|
-
};
|
|
474
|
-
contactId: {
|
|
475
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
408
|
+
export declare const ListDealsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
409
|
+
pipelineId: {
|
|
410
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
411
|
+
isOptional: true;
|
|
412
|
+
};
|
|
413
|
+
stageId: {
|
|
414
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
476
415
|
isOptional: true;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
type:
|
|
416
|
+
};
|
|
417
|
+
status: {
|
|
418
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
480
419
|
isOptional: true;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
type:
|
|
484
|
-
isOptional: false;
|
|
485
|
-
};
|
|
486
|
-
expectedCloseDate: {
|
|
487
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
420
|
+
};
|
|
421
|
+
ownerId: {
|
|
422
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
488
423
|
isOptional: true;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
type:
|
|
424
|
+
};
|
|
425
|
+
search: {
|
|
426
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
427
|
+
isOptional: true;
|
|
428
|
+
};
|
|
429
|
+
limit: {
|
|
430
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
431
|
+
isOptional: true;
|
|
432
|
+
defaultValue: number;
|
|
433
|
+
};
|
|
434
|
+
offset: {
|
|
435
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
436
|
+
isOptional: true;
|
|
437
|
+
defaultValue: number;
|
|
438
|
+
};
|
|
439
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
440
|
+
deals: {
|
|
441
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
442
|
+
id: {
|
|
443
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
444
|
+
isOptional: false;
|
|
445
|
+
};
|
|
446
|
+
name: {
|
|
447
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
448
|
+
isOptional: false;
|
|
449
|
+
};
|
|
450
|
+
value: {
|
|
451
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
452
|
+
isOptional: false;
|
|
453
|
+
};
|
|
454
|
+
currency: {
|
|
455
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
456
|
+
isOptional: false;
|
|
457
|
+
};
|
|
458
|
+
pipelineId: {
|
|
459
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
460
|
+
isOptional: false;
|
|
461
|
+
};
|
|
462
|
+
stageId: {
|
|
463
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
464
|
+
isOptional: false;
|
|
465
|
+
};
|
|
466
|
+
status: {
|
|
467
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
468
|
+
isOptional: false;
|
|
469
|
+
};
|
|
470
|
+
contactId: {
|
|
471
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
472
|
+
isOptional: true;
|
|
473
|
+
};
|
|
474
|
+
companyId: {
|
|
475
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
476
|
+
isOptional: true;
|
|
477
|
+
};
|
|
478
|
+
ownerId: {
|
|
479
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
480
|
+
isOptional: false;
|
|
481
|
+
};
|
|
482
|
+
expectedCloseDate: {
|
|
483
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
484
|
+
isOptional: true;
|
|
485
|
+
};
|
|
486
|
+
createdAt: {
|
|
487
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
488
|
+
isOptional: false;
|
|
489
|
+
};
|
|
490
|
+
updatedAt: {
|
|
491
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
492
|
+
isOptional: false;
|
|
493
|
+
};
|
|
494
|
+
}>;
|
|
495
|
+
isArray: true;
|
|
492
496
|
isOptional: false;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
type:
|
|
497
|
+
};
|
|
498
|
+
total: {
|
|
499
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
496
500
|
isOptional: false;
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
total: {
|
|
503
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
504
|
-
isOptional: false;
|
|
505
|
-
};
|
|
506
|
-
totalValue: {
|
|
507
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
508
|
-
isOptional: false;
|
|
509
|
-
};
|
|
501
|
+
};
|
|
502
|
+
totalValue: {
|
|
503
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
504
|
+
isOptional: false;
|
|
505
|
+
};
|
|
510
506
|
}>, undefined>;
|
|
511
|
-
//#endregion
|
|
512
|
-
export { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract };
|
|
513
507
|
//# sourceMappingURL=deal.operation.d.ts.map
|