@lssm/example.crm-pipeline 0.0.0-canary-20251220041653 → 0.0.0-canary-20251221114240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build$colon$bundle.log +161 -149
- package/.turbo/turbo-build.log +167 -155
- package/CHANGELOG.md +8 -8
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/index.js +1 -1
- package/dist/deal/deal.enum.d.ts +3 -3
- package/dist/deal/deal.enum.d.ts.map +1 -1
- package/dist/deal/deal.operation.d.ts +513 -0
- package/dist/deal/{deal.contracts.d.ts.map → deal.operation.d.ts.map} +1 -1
- package/dist/deal/{deal.contracts.js → deal.operation.js} +3 -3
- package/dist/deal/deal.operation.js.map +1 -0
- package/dist/deal/deal.schema.d.ts +71 -71
- package/dist/deal/index.d.ts +1 -1
- package/dist/deal/index.js +1 -1
- package/dist/entities/company.entity.d.ts +28 -28
- package/dist/entities/contact.entity.d.ts +32 -32
- package/dist/entities/task.entity.d.ts +43 -43
- package/dist/entities/task.entity.d.ts.map +1 -1
- package/dist/events/contact.event.d.ts +8 -8
- package/dist/events/deal.event.d.ts +30 -30
- package/dist/events/task.event.d.ts +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/libs/contracts/dist/index.js +3 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +1 -1
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/libs/contracts/dist/operation.js.map +1 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +98 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/libs/identity-rbac/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/index.js +2 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/contracts.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/onboarding-base.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/libs/identity-rbac/dist/contracts/dist/operation.js.map +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/workspace-config/contractsrc-schema.js +94 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/workspace-config/index.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/organization.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/organization.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/rbac.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/rbac.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/user.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/user.js.map +1 -1
- package/dist/modules/audit-trail/dist/contracts/index.js +1 -1
- package/dist/modules/audit-trail/dist/contracts/index.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/modules/audit-trail/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/index.js +2 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/contracts.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/onboarding-base.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/modules/audit-trail/dist/libs/contracts/dist/operation.js.map +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +94 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/dist/modules/notifications/dist/contracts/index.js +1 -1
- package/dist/modules/notifications/dist/contracts/index.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/modules/notifications/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/index.js +2 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/contracts.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/onboarding-base.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/modules/notifications/dist/libs/contracts/dist/operation.js.map +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +94 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/package.json +12 -12
- package/src/deal/{deal.contracts.ts → deal.operation.ts} +1 -1
- package/src/deal/index.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/deal/deal.contracts.d.ts +0 -513
- package/dist/deal/deal.contracts.js.map +0 -1
- package/dist/libs/contracts/dist/spec.js.map +0 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/spec.js.map +0 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/spec.js.map +0 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/spec.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lssm/example.crm-pipeline
|
|
2
2
|
|
|
3
|
-
## 0.0.0-canary-
|
|
3
|
+
## 0.0.0-canary-20251221114240
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
11
|
- Updated dependencies [66a5dfd]
|
|
12
|
-
- @lssm/lib.bus@0.0.0-canary-
|
|
13
|
-
- @lssm/lib.contracts@0.0.0-canary-
|
|
14
|
-
- @lssm/lib.identity-rbac@0.0.0-canary-
|
|
15
|
-
- @lssm/lib.jobs@0.0.0-canary-
|
|
16
|
-
- @lssm/lib.schema@0.0.0-canary-
|
|
17
|
-
- @lssm/module.audit-trail@0.0.0-canary-
|
|
18
|
-
- @lssm/module.notifications@0.0.0-canary-
|
|
12
|
+
- @lssm/lib.bus@0.0.0-canary-20251221114240
|
|
13
|
+
- @lssm/lib.contracts@0.0.0-canary-20251221114240
|
|
14
|
+
- @lssm/lib.identity-rbac@0.0.0-canary-20251221114240
|
|
15
|
+
- @lssm/lib.jobs@0.0.0-canary-20251221114240
|
|
16
|
+
- @lssm/lib.schema@0.0.0-canary-20251221114240
|
|
17
|
+
- @lssm/module.audit-trail@0.0.0-canary-20251221114240
|
|
18
|
+
- @lssm/module.notifications@0.0.0-canary-20251221114240
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DealStatusFilterEnum } from "../deal/deal.enum.js";
|
|
2
2
|
import { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel } from "../deal/deal.schema.js";
|
|
3
|
-
import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "../deal/deal.
|
|
3
|
+
import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "../deal/deal.operation.js";
|
|
4
4
|
export { CreateDealContract, CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealStatusFilterEnum, DealWonPayloadModel, ListDealsContract, ListDealsInputModel, ListDealsOutputModel, LoseDealContract, LoseDealInputModel, MoveDealContract, MoveDealInputModel, WinDealContract, WinDealInputModel };
|
package/dist/contracts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DealStatusFilterEnum } from "../deal/deal.enum.js";
|
|
2
2
|
import { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel } from "../deal/deal.schema.js";
|
|
3
|
-
import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "../deal/deal.
|
|
3
|
+
import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "../deal/deal.operation.js";
|
|
4
4
|
import "../deal/index.js";
|
|
5
5
|
|
|
6
6
|
export { CreateDealContract, CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealStatusFilterEnum, DealWonPayloadModel, ListDealsContract, ListDealsInputModel, ListDealsOutputModel, LoseDealContract, LoseDealInputModel, MoveDealContract, MoveDealInputModel, WinDealContract, WinDealInputModel };
|
package/dist/deal/deal.enum.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema52 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/deal/deal.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Deal status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const DealStatusEnum:
|
|
7
|
+
declare const DealStatusEnum: _lssm_lib_schema52.EnumType<[string, string, string, string]>;
|
|
8
8
|
/**
|
|
9
9
|
* Deal status filter enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const DealStatusFilterEnum:
|
|
11
|
+
declare const DealStatusFilterEnum: _lssm_lib_schema52.EnumType<[string, string, string, string]>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { DealStatusEnum, DealStatusFilterEnum };
|
|
14
14
|
//# sourceMappingURL=deal.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal.enum.d.ts","names":[],"sources":["../../src/deal/deal.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,cAKX,EAAA,
|
|
1
|
+
{"version":3,"file":"deal.enum.d.ts","names":[],"sources":["../../src/deal/deal.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,cAKX,EAAA,kBAAA,CALyB,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;AAU3B;;;cAAa,sBAKX,kBAAA,CAL+B"}
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
import * as _lssm_lib_schema54 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/deal/deal.operation.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create a new deal.
|
|
7
|
+
*/
|
|
8
|
+
declare const CreateDealContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema54.SchemaModel<{
|
|
9
|
+
name: {
|
|
10
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
value: {
|
|
14
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
currency: {
|
|
18
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
19
|
+
isOptional: true;
|
|
20
|
+
};
|
|
21
|
+
pipelineId: {
|
|
22
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
stageId: {
|
|
26
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
27
|
+
isOptional: false;
|
|
28
|
+
};
|
|
29
|
+
contactId: {
|
|
30
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
31
|
+
isOptional: true;
|
|
32
|
+
};
|
|
33
|
+
companyId: {
|
|
34
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
35
|
+
isOptional: true;
|
|
36
|
+
};
|
|
37
|
+
expectedCloseDate: {
|
|
38
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
39
|
+
isOptional: true;
|
|
40
|
+
};
|
|
41
|
+
}>, _lssm_lib_schema54.SchemaModel<{
|
|
42
|
+
id: {
|
|
43
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
45
|
+
};
|
|
46
|
+
name: {
|
|
47
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
48
|
+
isOptional: false;
|
|
49
|
+
};
|
|
50
|
+
value: {
|
|
51
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
52
|
+
isOptional: false;
|
|
53
|
+
};
|
|
54
|
+
currency: {
|
|
55
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
56
|
+
isOptional: false;
|
|
57
|
+
};
|
|
58
|
+
pipelineId: {
|
|
59
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
60
|
+
isOptional: false;
|
|
61
|
+
};
|
|
62
|
+
stageId: {
|
|
63
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
};
|
|
66
|
+
status: {
|
|
67
|
+
type: _lssm_lib_schema54.EnumType<[string, string, string, string]>;
|
|
68
|
+
isOptional: false;
|
|
69
|
+
};
|
|
70
|
+
contactId: {
|
|
71
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
72
|
+
isOptional: true;
|
|
73
|
+
};
|
|
74
|
+
companyId: {
|
|
75
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
76
|
+
isOptional: true;
|
|
77
|
+
};
|
|
78
|
+
ownerId: {
|
|
79
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
80
|
+
isOptional: false;
|
|
81
|
+
};
|
|
82
|
+
expectedCloseDate: {
|
|
83
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
84
|
+
isOptional: true;
|
|
85
|
+
};
|
|
86
|
+
createdAt: {
|
|
87
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
88
|
+
isOptional: false;
|
|
89
|
+
};
|
|
90
|
+
updatedAt: {
|
|
91
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
92
|
+
isOptional: false;
|
|
93
|
+
};
|
|
94
|
+
}>, {
|
|
95
|
+
name: string;
|
|
96
|
+
version: number;
|
|
97
|
+
when: string;
|
|
98
|
+
payload: _lssm_lib_schema54.SchemaModel<{
|
|
99
|
+
id: {
|
|
100
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
101
|
+
isOptional: false;
|
|
102
|
+
};
|
|
103
|
+
name: {
|
|
104
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
105
|
+
isOptional: false;
|
|
106
|
+
};
|
|
107
|
+
value: {
|
|
108
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
109
|
+
isOptional: false;
|
|
110
|
+
};
|
|
111
|
+
currency: {
|
|
112
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
113
|
+
isOptional: false;
|
|
114
|
+
};
|
|
115
|
+
pipelineId: {
|
|
116
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
117
|
+
isOptional: false;
|
|
118
|
+
};
|
|
119
|
+
stageId: {
|
|
120
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
121
|
+
isOptional: false;
|
|
122
|
+
};
|
|
123
|
+
status: {
|
|
124
|
+
type: _lssm_lib_schema54.EnumType<[string, string, string, string]>;
|
|
125
|
+
isOptional: false;
|
|
126
|
+
};
|
|
127
|
+
contactId: {
|
|
128
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
129
|
+
isOptional: true;
|
|
130
|
+
};
|
|
131
|
+
companyId: {
|
|
132
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
133
|
+
isOptional: true;
|
|
134
|
+
};
|
|
135
|
+
ownerId: {
|
|
136
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
137
|
+
isOptional: false;
|
|
138
|
+
};
|
|
139
|
+
expectedCloseDate: {
|
|
140
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
141
|
+
isOptional: true;
|
|
142
|
+
};
|
|
143
|
+
createdAt: {
|
|
144
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
145
|
+
isOptional: false;
|
|
146
|
+
};
|
|
147
|
+
updatedAt: {
|
|
148
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
149
|
+
isOptional: false;
|
|
150
|
+
};
|
|
151
|
+
}>;
|
|
152
|
+
}[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Move deal to a different stage.
|
|
155
|
+
*/
|
|
156
|
+
declare const MoveDealContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema54.SchemaModel<{
|
|
157
|
+
dealId: {
|
|
158
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
159
|
+
isOptional: false;
|
|
160
|
+
};
|
|
161
|
+
stageId: {
|
|
162
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
163
|
+
isOptional: false;
|
|
164
|
+
};
|
|
165
|
+
position: {
|
|
166
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
167
|
+
isOptional: true;
|
|
168
|
+
};
|
|
169
|
+
}>, _lssm_lib_schema54.SchemaModel<{
|
|
170
|
+
id: {
|
|
171
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
172
|
+
isOptional: false;
|
|
173
|
+
};
|
|
174
|
+
name: {
|
|
175
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
176
|
+
isOptional: false;
|
|
177
|
+
};
|
|
178
|
+
value: {
|
|
179
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
180
|
+
isOptional: false;
|
|
181
|
+
};
|
|
182
|
+
currency: {
|
|
183
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
184
|
+
isOptional: false;
|
|
185
|
+
};
|
|
186
|
+
pipelineId: {
|
|
187
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
188
|
+
isOptional: false;
|
|
189
|
+
};
|
|
190
|
+
stageId: {
|
|
191
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
192
|
+
isOptional: false;
|
|
193
|
+
};
|
|
194
|
+
status: {
|
|
195
|
+
type: _lssm_lib_schema54.EnumType<[string, string, string, string]>;
|
|
196
|
+
isOptional: false;
|
|
197
|
+
};
|
|
198
|
+
contactId: {
|
|
199
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
200
|
+
isOptional: true;
|
|
201
|
+
};
|
|
202
|
+
companyId: {
|
|
203
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
204
|
+
isOptional: true;
|
|
205
|
+
};
|
|
206
|
+
ownerId: {
|
|
207
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
208
|
+
isOptional: false;
|
|
209
|
+
};
|
|
210
|
+
expectedCloseDate: {
|
|
211
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
212
|
+
isOptional: true;
|
|
213
|
+
};
|
|
214
|
+
createdAt: {
|
|
215
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
216
|
+
isOptional: false;
|
|
217
|
+
};
|
|
218
|
+
updatedAt: {
|
|
219
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
220
|
+
isOptional: false;
|
|
221
|
+
};
|
|
222
|
+
}>, {
|
|
223
|
+
name: string;
|
|
224
|
+
version: number;
|
|
225
|
+
when: string;
|
|
226
|
+
payload: _lssm_lib_schema54.SchemaModel<{
|
|
227
|
+
dealId: {
|
|
228
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
229
|
+
isOptional: false;
|
|
230
|
+
};
|
|
231
|
+
fromStage: {
|
|
232
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
233
|
+
isOptional: false;
|
|
234
|
+
};
|
|
235
|
+
toStage: {
|
|
236
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
237
|
+
isOptional: false;
|
|
238
|
+
};
|
|
239
|
+
}>;
|
|
240
|
+
}[]>;
|
|
241
|
+
/**
|
|
242
|
+
* Mark deal as won.
|
|
243
|
+
*/
|
|
244
|
+
declare const WinDealContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema54.SchemaModel<{
|
|
245
|
+
dealId: {
|
|
246
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
247
|
+
isOptional: false;
|
|
248
|
+
};
|
|
249
|
+
wonSource: {
|
|
250
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
251
|
+
isOptional: true;
|
|
252
|
+
};
|
|
253
|
+
notes: {
|
|
254
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
255
|
+
isOptional: true;
|
|
256
|
+
};
|
|
257
|
+
}>, _lssm_lib_schema54.SchemaModel<{
|
|
258
|
+
id: {
|
|
259
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
260
|
+
isOptional: false;
|
|
261
|
+
};
|
|
262
|
+
name: {
|
|
263
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
264
|
+
isOptional: false;
|
|
265
|
+
};
|
|
266
|
+
value: {
|
|
267
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
268
|
+
isOptional: false;
|
|
269
|
+
};
|
|
270
|
+
currency: {
|
|
271
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
272
|
+
isOptional: false;
|
|
273
|
+
};
|
|
274
|
+
pipelineId: {
|
|
275
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
276
|
+
isOptional: false;
|
|
277
|
+
};
|
|
278
|
+
stageId: {
|
|
279
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
280
|
+
isOptional: false;
|
|
281
|
+
};
|
|
282
|
+
status: {
|
|
283
|
+
type: _lssm_lib_schema54.EnumType<[string, string, string, string]>;
|
|
284
|
+
isOptional: false;
|
|
285
|
+
};
|
|
286
|
+
contactId: {
|
|
287
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
288
|
+
isOptional: true;
|
|
289
|
+
};
|
|
290
|
+
companyId: {
|
|
291
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
292
|
+
isOptional: true;
|
|
293
|
+
};
|
|
294
|
+
ownerId: {
|
|
295
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
296
|
+
isOptional: false;
|
|
297
|
+
};
|
|
298
|
+
expectedCloseDate: {
|
|
299
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
300
|
+
isOptional: true;
|
|
301
|
+
};
|
|
302
|
+
createdAt: {
|
|
303
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
304
|
+
isOptional: false;
|
|
305
|
+
};
|
|
306
|
+
updatedAt: {
|
|
307
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
308
|
+
isOptional: false;
|
|
309
|
+
};
|
|
310
|
+
}>, {
|
|
311
|
+
name: string;
|
|
312
|
+
version: number;
|
|
313
|
+
when: string;
|
|
314
|
+
payload: _lssm_lib_schema54.SchemaModel<{
|
|
315
|
+
dealId: {
|
|
316
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
317
|
+
isOptional: false;
|
|
318
|
+
};
|
|
319
|
+
value: {
|
|
320
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
321
|
+
isOptional: false;
|
|
322
|
+
};
|
|
323
|
+
}>;
|
|
324
|
+
}[]>;
|
|
325
|
+
/**
|
|
326
|
+
* Mark deal as lost.
|
|
327
|
+
*/
|
|
328
|
+
declare const LoseDealContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema54.SchemaModel<{
|
|
329
|
+
dealId: {
|
|
330
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
331
|
+
isOptional: false;
|
|
332
|
+
};
|
|
333
|
+
lostReason: {
|
|
334
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
335
|
+
isOptional: false;
|
|
336
|
+
};
|
|
337
|
+
notes: {
|
|
338
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
339
|
+
isOptional: true;
|
|
340
|
+
};
|
|
341
|
+
}>, _lssm_lib_schema54.SchemaModel<{
|
|
342
|
+
id: {
|
|
343
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
344
|
+
isOptional: false;
|
|
345
|
+
};
|
|
346
|
+
name: {
|
|
347
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
348
|
+
isOptional: false;
|
|
349
|
+
};
|
|
350
|
+
value: {
|
|
351
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
352
|
+
isOptional: false;
|
|
353
|
+
};
|
|
354
|
+
currency: {
|
|
355
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
356
|
+
isOptional: false;
|
|
357
|
+
};
|
|
358
|
+
pipelineId: {
|
|
359
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
360
|
+
isOptional: false;
|
|
361
|
+
};
|
|
362
|
+
stageId: {
|
|
363
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
364
|
+
isOptional: false;
|
|
365
|
+
};
|
|
366
|
+
status: {
|
|
367
|
+
type: _lssm_lib_schema54.EnumType<[string, string, string, string]>;
|
|
368
|
+
isOptional: false;
|
|
369
|
+
};
|
|
370
|
+
contactId: {
|
|
371
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
372
|
+
isOptional: true;
|
|
373
|
+
};
|
|
374
|
+
companyId: {
|
|
375
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
376
|
+
isOptional: true;
|
|
377
|
+
};
|
|
378
|
+
ownerId: {
|
|
379
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
380
|
+
isOptional: false;
|
|
381
|
+
};
|
|
382
|
+
expectedCloseDate: {
|
|
383
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
384
|
+
isOptional: true;
|
|
385
|
+
};
|
|
386
|
+
createdAt: {
|
|
387
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
388
|
+
isOptional: false;
|
|
389
|
+
};
|
|
390
|
+
updatedAt: {
|
|
391
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
392
|
+
isOptional: false;
|
|
393
|
+
};
|
|
394
|
+
}>, {
|
|
395
|
+
name: string;
|
|
396
|
+
version: number;
|
|
397
|
+
when: string;
|
|
398
|
+
payload: _lssm_lib_schema54.SchemaModel<{
|
|
399
|
+
dealId: {
|
|
400
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
401
|
+
isOptional: false;
|
|
402
|
+
};
|
|
403
|
+
reason: {
|
|
404
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
405
|
+
isOptional: false;
|
|
406
|
+
};
|
|
407
|
+
}>;
|
|
408
|
+
}[]>;
|
|
409
|
+
/**
|
|
410
|
+
* List deals in pipeline.
|
|
411
|
+
*/
|
|
412
|
+
declare const ListDealsContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema54.SchemaModel<{
|
|
413
|
+
pipelineId: {
|
|
414
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
415
|
+
isOptional: true;
|
|
416
|
+
};
|
|
417
|
+
stageId: {
|
|
418
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
419
|
+
isOptional: true;
|
|
420
|
+
};
|
|
421
|
+
status: {
|
|
422
|
+
type: _lssm_lib_schema54.EnumType<[string, string, string, string]>;
|
|
423
|
+
isOptional: true;
|
|
424
|
+
};
|
|
425
|
+
ownerId: {
|
|
426
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
427
|
+
isOptional: true;
|
|
428
|
+
};
|
|
429
|
+
search: {
|
|
430
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
431
|
+
isOptional: true;
|
|
432
|
+
};
|
|
433
|
+
limit: {
|
|
434
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
435
|
+
isOptional: true;
|
|
436
|
+
defaultValue: number;
|
|
437
|
+
};
|
|
438
|
+
offset: {
|
|
439
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
440
|
+
isOptional: true;
|
|
441
|
+
defaultValue: number;
|
|
442
|
+
};
|
|
443
|
+
}>, _lssm_lib_schema54.SchemaModel<{
|
|
444
|
+
deals: {
|
|
445
|
+
type: _lssm_lib_schema54.SchemaModel<{
|
|
446
|
+
id: {
|
|
447
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
448
|
+
isOptional: false;
|
|
449
|
+
};
|
|
450
|
+
name: {
|
|
451
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
452
|
+
isOptional: false;
|
|
453
|
+
};
|
|
454
|
+
value: {
|
|
455
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
456
|
+
isOptional: false;
|
|
457
|
+
};
|
|
458
|
+
currency: {
|
|
459
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
460
|
+
isOptional: false;
|
|
461
|
+
};
|
|
462
|
+
pipelineId: {
|
|
463
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
464
|
+
isOptional: false;
|
|
465
|
+
};
|
|
466
|
+
stageId: {
|
|
467
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
468
|
+
isOptional: false;
|
|
469
|
+
};
|
|
470
|
+
status: {
|
|
471
|
+
type: _lssm_lib_schema54.EnumType<[string, string, string, string]>;
|
|
472
|
+
isOptional: false;
|
|
473
|
+
};
|
|
474
|
+
contactId: {
|
|
475
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
476
|
+
isOptional: true;
|
|
477
|
+
};
|
|
478
|
+
companyId: {
|
|
479
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
480
|
+
isOptional: true;
|
|
481
|
+
};
|
|
482
|
+
ownerId: {
|
|
483
|
+
type: _lssm_lib_schema54.FieldType<string, string>;
|
|
484
|
+
isOptional: false;
|
|
485
|
+
};
|
|
486
|
+
expectedCloseDate: {
|
|
487
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
488
|
+
isOptional: true;
|
|
489
|
+
};
|
|
490
|
+
createdAt: {
|
|
491
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
492
|
+
isOptional: false;
|
|
493
|
+
};
|
|
494
|
+
updatedAt: {
|
|
495
|
+
type: _lssm_lib_schema54.FieldType<Date, string>;
|
|
496
|
+
isOptional: false;
|
|
497
|
+
};
|
|
498
|
+
}>;
|
|
499
|
+
isArray: true;
|
|
500
|
+
isOptional: false;
|
|
501
|
+
};
|
|
502
|
+
total: {
|
|
503
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
504
|
+
isOptional: false;
|
|
505
|
+
};
|
|
506
|
+
totalValue: {
|
|
507
|
+
type: _lssm_lib_schema54.FieldType<number, number>;
|
|
508
|
+
isOptional: false;
|
|
509
|
+
};
|
|
510
|
+
}>, undefined>;
|
|
511
|
+
//#endregion
|
|
512
|
+
export { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract };
|
|
513
|
+
//# sourceMappingURL=deal.operation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal.
|
|
1
|
+
{"version":3,"file":"deal.operation.d.ts","names":[],"sources":["../../src/deal/deal.operation.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmBa,yCAAkB,iCAAA;EAAlB,IAAA,EAAA;IA6BX,IAAA,EAAA,kBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;gBA7B6B,IAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;UAAA,kBAAA,CAAA;;;;;;;;;;;;IAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAkClB,UAAA,EAAA,KA6BX;EAAA,CAAA;;;gBA7B2B,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;qBAAA;IAAA,IAAA,8BAAA,KAAA,EAAA,MAAA,CAAA;IAkChB,UAAA,EAAA,IA6BX;EAAA,CAAA;;;gBA7B0B,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;gBAAA,EAAA,KAAA;IAAA,CAAA;IAkCf,QAAA,EAAA;MA6BX,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;gBA7B2B;MAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;wCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;MAAA,UAAA,EAAA,KAAA;IAkChB,CAAA;IAkBX,iBAAA,EAAA;;;;;;;;IAlB4B,SAAA,EAAA;;;;;;;;;cAtGjB,uCAAgB,iCAAA;;UA6B3B,kBAAA,CAAA;;;;;;;;;oBAyE4B;EAAA,CAAA;;;UAtGD,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkChB,sCAAe,iCAAA;;UA6B1B,kBAAA,CAAA;;;;;;;;;;;;;UA7B0B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCf,uCAAgB,iCAAA;;UA6B3B,kBAAA,CAAA;;;;;;;;;;;;;UA7B2B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkChB,wCAAiB,iCAAA;;UAkB5B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlB4B,kBAAA,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel } from "./deal.schema.js";
|
|
2
|
-
import { defineCommand, defineQuery } from "../libs/contracts/dist/
|
|
2
|
+
import { defineCommand, defineQuery } from "../libs/contracts/dist/operation.js";
|
|
3
3
|
|
|
4
|
-
//#region src/deal/deal.
|
|
4
|
+
//#region src/deal/deal.operation.ts
|
|
5
5
|
const OWNERS = ["@example.crm-pipeline"];
|
|
6
6
|
/**
|
|
7
7
|
* Create a new deal.
|
|
@@ -163,4 +163,4 @@ const ListDealsContract = defineQuery({
|
|
|
163
163
|
|
|
164
164
|
//#endregion
|
|
165
165
|
export { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract };
|
|
166
|
-
//# sourceMappingURL=deal.
|
|
166
|
+
//# sourceMappingURL=deal.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deal.operation.js","names":[],"sources":["../../src/deal/deal.operation.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/operation';\nimport {\n DealModel,\n CreateDealInputModel,\n MoveDealInputModel,\n DealMovedPayloadModel,\n WinDealInputModel,\n DealWonPayloadModel,\n LoseDealInputModel,\n DealLostPayloadModel,\n ListDealsInputModel,\n ListDealsOutputModel,\n} from './deal.schema';\n\nconst OWNERS = ['@example.crm-pipeline'] as const;\n\n/**\n * Create a new deal.\n */\nexport const CreateDealContract = defineCommand({\n meta: {\n name: 'crm.deal.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'create'],\n description: 'Create a new deal in the pipeline.',\n goal: 'Allow sales reps to create new opportunities.',\n context: 'Deal creation UI, quick add.',\n },\n io: {\n input: CreateDealInputModel,\n output: DealModel,\n },\n policy: {\n auth: 'user',\n },\n sideEffects: {\n emits: [\n {\n name: 'deal.created',\n version: 1,\n when: 'Deal is created',\n payload: DealModel,\n },\n ],\n audit: ['deal.created'],\n },\n});\n\n/**\n * Move deal to a different stage.\n */\nexport const MoveDealContract = defineCommand({\n meta: {\n name: 'crm.deal.move',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'move', 'kanban'],\n description: 'Move a deal to a different stage.',\n goal: 'Allow drag-and-drop stage movement in Kanban.',\n context: 'Pipeline Kanban view.',\n },\n io: {\n input: MoveDealInputModel,\n output: DealModel,\n },\n policy: {\n auth: 'user',\n },\n sideEffects: {\n emits: [\n {\n name: 'deal.moved',\n version: 1,\n when: 'Deal stage changed',\n payload: DealMovedPayloadModel,\n },\n ],\n audit: ['deal.moved'],\n },\n});\n\n/**\n * Mark deal as won.\n */\nexport const WinDealContract = defineCommand({\n meta: {\n name: 'crm.deal.win',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'won'],\n description: 'Mark a deal as won.',\n goal: 'Close a deal as successful.',\n context: 'Deal closing flow.',\n },\n io: {\n input: WinDealInputModel,\n output: DealModel,\n },\n policy: {\n auth: 'user',\n },\n sideEffects: {\n emits: [\n {\n name: 'deal.won',\n version: 1,\n when: 'Deal is won',\n payload: DealWonPayloadModel,\n },\n ],\n audit: ['deal.won'],\n },\n});\n\n/**\n * Mark deal as lost.\n */\nexport const LoseDealContract = defineCommand({\n meta: {\n name: 'crm.deal.lose',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'lost'],\n description: 'Mark a deal as lost.',\n goal: 'Close a deal as unsuccessful.',\n context: 'Deal closing flow.',\n },\n io: {\n input: LoseDealInputModel,\n output: DealModel,\n },\n policy: {\n auth: 'user',\n },\n sideEffects: {\n emits: [\n {\n name: 'deal.lost',\n version: 1,\n when: 'Deal is lost',\n payload: DealLostPayloadModel,\n },\n ],\n audit: ['deal.lost'],\n },\n});\n\n/**\n * List deals in pipeline.\n */\nexport const ListDealsContract = defineQuery({\n meta: {\n name: 'crm.deal.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'list'],\n description: 'List deals with filters.',\n goal: 'Show pipeline, deal lists, dashboards.',\n context: 'Pipeline view, deal list.',\n },\n io: {\n input: ListDealsInputModel,\n output: ListDealsOutputModel,\n },\n policy: {\n auth: 'user',\n },\n});\n"],"mappings":";;;;AAcA,MAAM,SAAS,CAAC,wBAAwB;;;;AAKxC,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAS;EAC/B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACD,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,eAAe;EACxB;CACF,CAAC;;;;AAKF,MAAa,mBAAmB,cAAc;CAC5C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAQ;GAAS;EACvC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACD,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,aAAa;EACtB;CACF,CAAC;;;;AAKF,MAAa,kBAAkB,cAAc;CAC3C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAM;EAC5B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACD,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,WAAW;EACpB;CACF,CAAC;;;;AAKF,MAAa,mBAAmB,cAAc;CAC5C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAO;EAC7B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACD,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,YAAY;EACrB;CACF,CAAC;;;;AAKF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAO;EAC7B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACF,CAAC"}
|