@elevasis/core 0.14.0 → 0.15.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/package.json +1 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +979 -967
- package/src/business/acquisition/api-schemas.ts +1103 -1075
- package/src/business/acquisition/derive-actions.ts +113 -103
- package/src/business/acquisition/index.ts +153 -149
- package/src/business/acquisition/types.ts +4 -3
- package/src/execution/engine/tools/lead-service-types.ts +24 -21
- package/src/execution/engine/tools/tool-maps.ts +819 -816
- package/src/organization-model/domains/sales.test.ts +189 -0
- package/src/organization-model/domains/sales.ts +456 -366
- package/src/platform/constants/versions.ts +1 -1
- package/src/reference/_generated/contracts.md +979 -967
|
@@ -1,103 +1,113 @@
|
|
|
1
|
-
import { z } from 'zod'
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface
|
|
11
|
-
key: string
|
|
12
|
-
label: string
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export const
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{
|
|
32
|
-
key: '
|
|
33
|
-
label: 'Move to
|
|
34
|
-
isAvailableFor: (deal) => deal.stage_key === '
|
|
35
|
-
workflowId: '
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
key: '
|
|
39
|
-
label: '
|
|
40
|
-
isAvailableFor: (deal) => deal.stage_key === '
|
|
41
|
-
workflowId: '
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
key: '
|
|
45
|
-
label: 'Close
|
|
46
|
-
isAvailableFor: (deal) =>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
key: '
|
|
76
|
-
label: 'Send
|
|
77
|
-
isAvailableFor: (deal) =>
|
|
78
|
-
deal.stage_key === 'interested' &&
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
CRM_DISCOVERY_BOOKING_CANCELLED_STATE,
|
|
4
|
+
CRM_DISCOVERY_LINK_SENT_STATE,
|
|
5
|
+
CRM_DISCOVERY_NUDGING_STATE,
|
|
6
|
+
CRM_DISCOVERY_REPLIED_STATE
|
|
7
|
+
} from '@repo/core/organization-model'
|
|
8
|
+
import type { AcqDealRow } from './types'
|
|
9
|
+
|
|
10
|
+
export interface Action {
|
|
11
|
+
key: string
|
|
12
|
+
label: string
|
|
13
|
+
payloadSchema?: z.ZodTypeAny
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ActionDef {
|
|
17
|
+
key: string
|
|
18
|
+
label: string
|
|
19
|
+
isAvailableFor: (deal: AcqDealRow) => boolean
|
|
20
|
+
workflowId: string
|
|
21
|
+
payloadSchema?: z.ZodTypeAny
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const SendReplyActionPayloadSchema = z
|
|
25
|
+
.object({
|
|
26
|
+
replyBody: z.string().trim().min(1).max(10000)
|
|
27
|
+
})
|
|
28
|
+
.strict()
|
|
29
|
+
|
|
30
|
+
export const DEFAULT_CRM_ACTIONS: ActionDef[] = [
|
|
31
|
+
{
|
|
32
|
+
key: 'move_to_proposal',
|
|
33
|
+
label: 'Move to Proposal',
|
|
34
|
+
isAvailableFor: (deal) => deal.stage_key === 'interested',
|
|
35
|
+
workflowId: 'move_to_proposal-workflow'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: 'move_to_closing',
|
|
39
|
+
label: 'Move to Closing',
|
|
40
|
+
isAvailableFor: (deal) => deal.stage_key === 'proposal',
|
|
41
|
+
workflowId: 'move_to_closing-workflow'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: 'move_to_closed_won',
|
|
45
|
+
label: 'Close Won',
|
|
46
|
+
isAvailableFor: (deal) => deal.stage_key === 'closing',
|
|
47
|
+
workflowId: 'move_to_closed_won-workflow'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
key: 'move_to_closed_lost',
|
|
51
|
+
label: 'Close Lost',
|
|
52
|
+
isAvailableFor: (deal) =>
|
|
53
|
+
deal.stage_key === 'interested' || deal.stage_key === 'proposal' || deal.stage_key === 'closing',
|
|
54
|
+
workflowId: 'move_to_closed_lost-workflow'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: 'move_to_nurturing',
|
|
58
|
+
label: 'Move to Nurturing',
|
|
59
|
+
isAvailableFor: (deal) =>
|
|
60
|
+
deal.stage_key === 'interested' || deal.stage_key === 'proposal' || deal.stage_key === 'closing',
|
|
61
|
+
workflowId: 'move_to_nurturing-workflow'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: 'send_reply',
|
|
65
|
+
label: 'Send Reply',
|
|
66
|
+
isAvailableFor: (deal) =>
|
|
67
|
+
deal.stage_key === 'interested' &&
|
|
68
|
+
(deal.state_key === CRM_DISCOVERY_REPLIED_STATE.stateKey ||
|
|
69
|
+
deal.state_key === CRM_DISCOVERY_LINK_SENT_STATE.stateKey ||
|
|
70
|
+
deal.state_key === CRM_DISCOVERY_NUDGING_STATE.stateKey),
|
|
71
|
+
workflowId: 'crm-send-reply-workflow',
|
|
72
|
+
payloadSchema: SendReplyActionPayloadSchema
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: 'send_link',
|
|
76
|
+
label: 'Send Booking Link',
|
|
77
|
+
isAvailableFor: (deal) =>
|
|
78
|
+
deal.stage_key === 'interested' && deal.state_key === CRM_DISCOVERY_REPLIED_STATE.stateKey,
|
|
79
|
+
workflowId: 'crm-send-booking-link-workflow'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: 'send_nudge',
|
|
83
|
+
label: 'Send Nudge',
|
|
84
|
+
isAvailableFor: (deal) =>
|
|
85
|
+
deal.stage_key === 'interested' &&
|
|
86
|
+
(deal.state_key === CRM_DISCOVERY_LINK_SENT_STATE.stateKey ||
|
|
87
|
+
deal.state_key === CRM_DISCOVERY_NUDGING_STATE.stateKey),
|
|
88
|
+
workflowId: 'crm-send-nudge-workflow'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: 'mark_no_show',
|
|
92
|
+
label: 'Mark No-Show',
|
|
93
|
+
isAvailableFor: (deal) =>
|
|
94
|
+
deal.stage_key === 'interested' && deal.state_key === CRM_DISCOVERY_NUDGING_STATE.stateKey,
|
|
95
|
+
// Mirrors the auto-timeout precedent in operations/sales/crm/pipeline/timeout-actions.ts:
|
|
96
|
+
// both manual-click and timeout move the deal to closed_lost. The action_taken activity
|
|
97
|
+
// event captures operator intent and distinguishes the manual variant from the timed one.
|
|
98
|
+
workflowId: 'mark_no_show-workflow'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
key: 'rebook',
|
|
102
|
+
label: 'Rebook',
|
|
103
|
+
isAvailableFor: (deal) =>
|
|
104
|
+
deal.stage_key === 'interested' && deal.state_key === CRM_DISCOVERY_BOOKING_CANCELLED_STATE.stateKey,
|
|
105
|
+
workflowId: 'crm-rebook-workflow'
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
|
|
109
|
+
export function deriveActions(deal: AcqDealRow, actions: ActionDef[] = DEFAULT_CRM_ACTIONS): Action[] {
|
|
110
|
+
return actions
|
|
111
|
+
.filter((a) => a.isAvailableFor(deal))
|
|
112
|
+
.map(({ key, label, payloadSchema }) => ({ key, label, payloadSchema }))
|
|
113
|
+
}
|
|
@@ -1,149 +1,153 @@
|
|
|
1
|
-
export * from './types'
|
|
2
|
-
export * from './activity-events'
|
|
3
|
-
export * from './derive-actions'
|
|
4
|
-
export * from './stateful'
|
|
5
|
-
// Export api-schemas selectively to avoid re-exporting names already defined in types.ts
|
|
6
|
-
// (DealStage, AcqDealTaskKind are declared as union types there; api-schemas re-infers them from Zod)
|
|
7
|
-
export {
|
|
8
|
-
AcqCompanyStatusSchema,
|
|
9
|
-
AcqContactStatusSchema,
|
|
10
|
-
AcqEmailValidSchema,
|
|
11
|
-
CompanyIdParamsSchema,
|
|
12
|
-
ContactIdParamsSchema,
|
|
13
|
-
ListCompaniesQuerySchema,
|
|
14
|
-
ListContactsQuerySchema,
|
|
15
|
-
CreateCompanyRequestSchema,
|
|
16
|
-
UpdateCompanyRequestSchema,
|
|
17
|
-
CreateContactRequestSchema,
|
|
18
|
-
UpdateContactRequestSchema,
|
|
19
|
-
AcqCompanyResponseSchema,
|
|
20
|
-
AcqCompanyListResponseSchema,
|
|
21
|
-
AcqContactResponseSchema,
|
|
22
|
-
AcqContactListResponseSchema,
|
|
23
|
-
AcqCompanySchemas,
|
|
24
|
-
AcqContactSchemas,
|
|
25
|
-
DealStageSchema,
|
|
26
|
-
AcqDealTaskKindSchema,
|
|
27
|
-
DealIdParamsSchema,
|
|
28
|
-
DealTaskIdParamsSchema,
|
|
29
|
-
ListDealsQuerySchema,
|
|
30
|
-
ListDealTasksDueQuerySchema,
|
|
31
|
-
CreateDealNoteRequestSchema,
|
|
32
|
-
CreateDealTaskRequestSchema,
|
|
33
|
-
TransitionItemRequestSchema,
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
type
|
|
86
|
-
type
|
|
87
|
-
type
|
|
88
|
-
type
|
|
89
|
-
type
|
|
90
|
-
type
|
|
91
|
-
type
|
|
92
|
-
type
|
|
93
|
-
type
|
|
94
|
-
type
|
|
95
|
-
type
|
|
96
|
-
type
|
|
97
|
-
type
|
|
98
|
-
type
|
|
99
|
-
type
|
|
100
|
-
type
|
|
101
|
-
type
|
|
102
|
-
type
|
|
103
|
-
type
|
|
104
|
-
type
|
|
105
|
-
type
|
|
106
|
-
type
|
|
107
|
-
type
|
|
108
|
-
type
|
|
109
|
-
type
|
|
110
|
-
type
|
|
111
|
-
type
|
|
112
|
-
type
|
|
113
|
-
type
|
|
114
|
-
type
|
|
115
|
-
type
|
|
116
|
-
type
|
|
117
|
-
type
|
|
118
|
-
type
|
|
119
|
-
type
|
|
120
|
-
type
|
|
121
|
-
type
|
|
122
|
-
type
|
|
123
|
-
type
|
|
124
|
-
type
|
|
125
|
-
type
|
|
126
|
-
type
|
|
127
|
-
type
|
|
128
|
-
type
|
|
129
|
-
type
|
|
130
|
-
type
|
|
131
|
-
type
|
|
132
|
-
type
|
|
133
|
-
type
|
|
134
|
-
type
|
|
135
|
-
type
|
|
136
|
-
type
|
|
137
|
-
type
|
|
138
|
-
type
|
|
139
|
-
type
|
|
140
|
-
type
|
|
141
|
-
type
|
|
142
|
-
type
|
|
143
|
-
type
|
|
144
|
-
type
|
|
145
|
-
type
|
|
146
|
-
type
|
|
147
|
-
type
|
|
148
|
-
type
|
|
149
|
-
|
|
1
|
+
export * from './types'
|
|
2
|
+
export * from './activity-events'
|
|
3
|
+
export * from './derive-actions'
|
|
4
|
+
export * from './stateful'
|
|
5
|
+
// Export api-schemas selectively to avoid re-exporting names already defined in types.ts
|
|
6
|
+
// (DealStage, AcqDealTaskKind are declared as union types there; api-schemas re-infers them from Zod)
|
|
7
|
+
export {
|
|
8
|
+
AcqCompanyStatusSchema,
|
|
9
|
+
AcqContactStatusSchema,
|
|
10
|
+
AcqEmailValidSchema,
|
|
11
|
+
CompanyIdParamsSchema,
|
|
12
|
+
ContactIdParamsSchema,
|
|
13
|
+
ListCompaniesQuerySchema,
|
|
14
|
+
ListContactsQuerySchema,
|
|
15
|
+
CreateCompanyRequestSchema,
|
|
16
|
+
UpdateCompanyRequestSchema,
|
|
17
|
+
CreateContactRequestSchema,
|
|
18
|
+
UpdateContactRequestSchema,
|
|
19
|
+
AcqCompanyResponseSchema,
|
|
20
|
+
AcqCompanyListResponseSchema,
|
|
21
|
+
AcqContactResponseSchema,
|
|
22
|
+
AcqContactListResponseSchema,
|
|
23
|
+
AcqCompanySchemas,
|
|
24
|
+
AcqContactSchemas,
|
|
25
|
+
DealStageSchema,
|
|
26
|
+
AcqDealTaskKindSchema,
|
|
27
|
+
DealIdParamsSchema,
|
|
28
|
+
DealTaskIdParamsSchema,
|
|
29
|
+
ListDealsQuerySchema,
|
|
30
|
+
ListDealTasksDueQuerySchema,
|
|
31
|
+
CreateDealNoteRequestSchema,
|
|
32
|
+
CreateDealTaskRequestSchema,
|
|
33
|
+
TransitionItemRequestSchema,
|
|
34
|
+
TransitionDealStateRequestSchema,
|
|
35
|
+
ExecuteActionParamsSchema,
|
|
36
|
+
ExecuteActionRequestSchema,
|
|
37
|
+
DealContactSummarySchema,
|
|
38
|
+
DealListItemSchema,
|
|
39
|
+
DealListResponseSchema,
|
|
40
|
+
DealDetailResponseSchema,
|
|
41
|
+
DealNoteResponseSchema,
|
|
42
|
+
DealNoteListResponseSchema,
|
|
43
|
+
DealTaskResponseSchema,
|
|
44
|
+
DealTaskListResponseSchema,
|
|
45
|
+
DealSchemas,
|
|
46
|
+
ListStatusSchema,
|
|
47
|
+
ScrapingConfigSchema,
|
|
48
|
+
IcpRubricSchema,
|
|
49
|
+
PipelineStageSchema,
|
|
50
|
+
PipelineConfigSchema,
|
|
51
|
+
ProcessingStageStatusSchema,
|
|
52
|
+
ListStageCountsSchema,
|
|
53
|
+
ListTelemetrySchema,
|
|
54
|
+
ListIdParamsSchema,
|
|
55
|
+
CreateListRequestSchema,
|
|
56
|
+
UpdateListRequestSchema,
|
|
57
|
+
UpdateListStatusRequestSchema,
|
|
58
|
+
UpdateListConfigRequestSchema,
|
|
59
|
+
AddCompaniesToListRequestSchema,
|
|
60
|
+
RemoveCompaniesFromListRequestSchema,
|
|
61
|
+
AddContactsToListRequestSchema,
|
|
62
|
+
RecordListExecutionRequestSchema,
|
|
63
|
+
AcqListResponseSchema,
|
|
64
|
+
AcqListListResponseSchema,
|
|
65
|
+
ListTelemetryResponseSchema,
|
|
66
|
+
ListTelemetryListResponseSchema,
|
|
67
|
+
ListExecutionSummarySchema,
|
|
68
|
+
ListExecutionsResponseSchema,
|
|
69
|
+
ListStageProgressSchema,
|
|
70
|
+
ListProgressResponseSchema,
|
|
71
|
+
AcqListSchemas,
|
|
72
|
+
AcqSubstrateSchemas,
|
|
73
|
+
AcqArtifactOwnerKindSchema,
|
|
74
|
+
ListArtifactsQuerySchema,
|
|
75
|
+
CreateArtifactRequestSchema,
|
|
76
|
+
AcqArtifactResponseSchema,
|
|
77
|
+
AcqArtifactListResponseSchema,
|
|
78
|
+
ListMembersQuerySchema,
|
|
79
|
+
MemberIdParamsSchema,
|
|
80
|
+
AcqListMemberContactSummarySchema,
|
|
81
|
+
AcqListMemberResponseSchema,
|
|
82
|
+
AcqListMembersResponseSchema,
|
|
83
|
+
ListCompanyIdParamsSchema,
|
|
84
|
+
AcqListCompanyResponseSchema,
|
|
85
|
+
type AcqArtifactOwnerKind,
|
|
86
|
+
type ListArtifactsQuery,
|
|
87
|
+
type CreateArtifactRequest,
|
|
88
|
+
type AcqArtifactResponse,
|
|
89
|
+
type AcqArtifactListResponse,
|
|
90
|
+
type ListMembersQuery,
|
|
91
|
+
type MemberIdParams,
|
|
92
|
+
type AcqListMemberContactSummary,
|
|
93
|
+
type AcqListMemberResponse,
|
|
94
|
+
type AcqListMembersResponse,
|
|
95
|
+
type ListCompanyIdParams,
|
|
96
|
+
type AcqListCompanyResponse,
|
|
97
|
+
type CompanyIdParams,
|
|
98
|
+
type ContactIdParams,
|
|
99
|
+
type ListCompaniesQuery,
|
|
100
|
+
type ListContactsQuery,
|
|
101
|
+
type CreateCompanyRequest,
|
|
102
|
+
type UpdateCompanyRequest,
|
|
103
|
+
type CreateContactRequest,
|
|
104
|
+
type UpdateContactRequest,
|
|
105
|
+
type AcqCompanyResponse,
|
|
106
|
+
type AcqCompanyListResponse,
|
|
107
|
+
type AcqContactResponse,
|
|
108
|
+
type AcqContactListResponse,
|
|
109
|
+
type AcqCompanyStatus,
|
|
110
|
+
type AcqContactStatus,
|
|
111
|
+
type AcqEmailValid,
|
|
112
|
+
type DealIdParams,
|
|
113
|
+
type DealTaskIdParams,
|
|
114
|
+
type ListDealsQuery,
|
|
115
|
+
type ListDealTasksDueQuery,
|
|
116
|
+
type CreateDealNoteRequest,
|
|
117
|
+
type CreateDealTaskRequest,
|
|
118
|
+
type TransitionItemRequest,
|
|
119
|
+
type TransitionDealStateRequest,
|
|
120
|
+
type ExecuteActionParams,
|
|
121
|
+
type ExecuteActionRequest,
|
|
122
|
+
type DealListResponse,
|
|
123
|
+
type DealDetailResponse,
|
|
124
|
+
type DealNoteResponse,
|
|
125
|
+
type DealNoteListResponse,
|
|
126
|
+
type DealTaskResponse,
|
|
127
|
+
type DealTaskListResponse,
|
|
128
|
+
type ListStatus,
|
|
129
|
+
type ScrapingConfig,
|
|
130
|
+
type IcpRubric,
|
|
131
|
+
type PipelineStage,
|
|
132
|
+
type PipelineConfig,
|
|
133
|
+
type ProcessingStageStatus,
|
|
134
|
+
type ListStageCountsInput,
|
|
135
|
+
type ListTelemetryInput,
|
|
136
|
+
type ListIdParams,
|
|
137
|
+
type CreateListRequest,
|
|
138
|
+
type UpdateListRequest,
|
|
139
|
+
type UpdateListStatusRequest,
|
|
140
|
+
type UpdateListConfigRequest,
|
|
141
|
+
type AddCompaniesToListRequest,
|
|
142
|
+
type RemoveCompaniesFromListRequest,
|
|
143
|
+
type AddContactsToListRequest,
|
|
144
|
+
type RecordListExecutionRequest,
|
|
145
|
+
type AcqListResponse,
|
|
146
|
+
type AcqListListResponse,
|
|
147
|
+
type ListTelemetryResponse,
|
|
148
|
+
type ListTelemetryListResponse,
|
|
149
|
+
type ListExecutionSummaryInput,
|
|
150
|
+
type ListExecutionsResponse,
|
|
151
|
+
type ListStageProgress,
|
|
152
|
+
type ListProgress
|
|
153
|
+
} from './api-schemas'
|
|
@@ -341,9 +341,10 @@ export interface AcqDealTask {
|
|
|
341
341
|
// ─── Progress / Telemetry Types ──────────────────────────────────────────────
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
|
-
* Live-scan aggregate telemetry for a single list, computed on demand from
|
|
345
|
-
* the list junction tables and current contact deliverability state.
|
|
346
|
-
|
|
344
|
+
* Live-scan aggregate telemetry for a single list, computed on demand from
|
|
345
|
+
* the list junction tables and current contact deliverability state.
|
|
346
|
+
* `stageCounts` are attempted counts from list-row processing_state.
|
|
347
|
+
*/
|
|
347
348
|
export interface ListTelemetry {
|
|
348
349
|
listId: string
|
|
349
350
|
totalCompanies: number
|
|
@@ -18,10 +18,10 @@ import type {
|
|
|
18
18
|
ScrapingConfig,
|
|
19
19
|
IcpRubric,
|
|
20
20
|
PipelineConfig,
|
|
21
|
-
ListTelemetry,
|
|
22
|
-
DealDetail
|
|
23
|
-
} from '../../../business/acquisition/types'
|
|
24
|
-
import type { ListProgress } from '../../../business/acquisition/api-schemas'
|
|
21
|
+
ListTelemetry,
|
|
22
|
+
DealDetail
|
|
23
|
+
} from '../../../business/acquisition/types'
|
|
24
|
+
import type { ListProgress, ProcessingStageStatus } from '../../../business/acquisition/api-schemas'
|
|
25
25
|
|
|
26
26
|
export type {
|
|
27
27
|
AcqList,
|
|
@@ -32,8 +32,9 @@ export type {
|
|
|
32
32
|
ListStatus,
|
|
33
33
|
ScrapingConfig,
|
|
34
34
|
IcpRubric,
|
|
35
|
-
PipelineConfig,
|
|
36
|
-
|
|
35
|
+
PipelineConfig,
|
|
36
|
+
ProcessingStageStatus,
|
|
37
|
+
ListTelemetry,
|
|
37
38
|
DealDetail,
|
|
38
39
|
ListProgress
|
|
39
40
|
}
|
|
@@ -501,21 +502,23 @@ export interface UpdateListConfigParams {
|
|
|
501
502
|
pipelineConfig?: PipelineConfig
|
|
502
503
|
}
|
|
503
504
|
|
|
504
|
-
export interface UpdateCompanyStageParams {
|
|
505
|
-
organizationId: string
|
|
506
|
-
listId: string
|
|
507
|
-
companyId: string
|
|
508
|
-
stage: string
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
505
|
+
export interface UpdateCompanyStageParams {
|
|
506
|
+
organizationId: string
|
|
507
|
+
listId: string
|
|
508
|
+
companyId: string
|
|
509
|
+
stage: string
|
|
510
|
+
status?: ProcessingStageStatus
|
|
511
|
+
executionId?: string
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export interface UpdateContactStageParams {
|
|
515
|
+
organizationId: string
|
|
516
|
+
listId: string
|
|
517
|
+
contactId: string
|
|
518
|
+
stage: string
|
|
519
|
+
status?: ProcessingStageStatus
|
|
520
|
+
executionId?: string
|
|
521
|
+
}
|
|
519
522
|
|
|
520
523
|
export interface AddCompaniesToListParams {
|
|
521
524
|
organizationId: string
|