@sellable/mcp 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +12 -0
- package/.mcp.json +9 -0
- package/README.md +355 -0
- package/dist/api.d.ts +21 -0
- package/dist/api.js +73 -0
- package/dist/auth.d.ts +60 -0
- package/dist/auth.js +246 -0
- package/dist/engage-memory.d.ts +63 -0
- package/dist/engage-memory.js +354 -0
- package/dist/index-dev.d.ts +2 -0
- package/dist/index-dev.js +17 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +8 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +499 -0
- package/dist/skills.d.ts +11 -0
- package/dist/skills.js +97 -0
- package/dist/tools/auth.d.ts +30 -0
- package/dist/tools/auth.js +124 -0
- package/dist/tools/blueprint-commit.d.ts +174 -0
- package/dist/tools/blueprint-commit.js +286 -0
- package/dist/tools/bootstrap.d.ts +64 -0
- package/dist/tools/bootstrap.js +246 -0
- package/dist/tools/campaigns.d.ts +589 -0
- package/dist/tools/campaigns.js +892 -0
- package/dist/tools/cells.d.ts +58 -0
- package/dist/tools/cells.js +48 -0
- package/dist/tools/context.d.ts +88 -0
- package/dist/tools/context.js +271 -0
- package/dist/tools/csv-domains.d.ts +73 -0
- package/dist/tools/csv-domains.js +464 -0
- package/dist/tools/csv-linkedin.d.ts +102 -0
- package/dist/tools/csv-linkedin.js +712 -0
- package/dist/tools/direct-campaigns.d.ts +240 -0
- package/dist/tools/direct-campaigns.js +250 -0
- package/dist/tools/engage-bootstrap.d.ts +94 -0
- package/dist/tools/engage-bootstrap.js +205 -0
- package/dist/tools/engage-discovery.d.ts +78 -0
- package/dist/tools/engage-discovery.js +150 -0
- package/dist/tools/engage-memory.d.ts +181 -0
- package/dist/tools/engage-memory.js +143 -0
- package/dist/tools/engage-state.d.ts +72 -0
- package/dist/tools/engage-state.js +62 -0
- package/dist/tools/enrichment.d.ts +167 -0
- package/dist/tools/enrichment.js +174 -0
- package/dist/tools/flow-preflight.d.ts +68 -0
- package/dist/tools/flow-preflight.js +138 -0
- package/dist/tools/framework.d.ts +44 -0
- package/dist/tools/framework.js +153 -0
- package/dist/tools/interaction-mode.d.ts +27 -0
- package/dist/tools/interaction-mode.js +102 -0
- package/dist/tools/leads.d.ts +2417 -0
- package/dist/tools/leads.js +2307 -0
- package/dist/tools/linkedin.d.ts +210 -0
- package/dist/tools/linkedin.js +229 -0
- package/dist/tools/navigation.d.ts +91 -0
- package/dist/tools/navigation.js +381 -0
- package/dist/tools/one-off.d.ts +229 -0
- package/dist/tools/one-off.js +273 -0
- package/dist/tools/processing.d.ts +70 -0
- package/dist/tools/processing.js +56 -0
- package/dist/tools/prompts.d.ts +211 -0
- package/dist/tools/prompts.js +210 -0
- package/dist/tools/provider-preflight.d.ts +21 -0
- package/dist/tools/provider-preflight.js +59 -0
- package/dist/tools/readiness.d.ts +261 -0
- package/dist/tools/readiness.js +510 -0
- package/dist/tools/rows.d.ts +126 -0
- package/dist/tools/rows.js +105 -0
- package/dist/tools/rubrics.d.ts +497 -0
- package/dist/tools/rubrics.js +681 -0
- package/dist/tools/senders.d.ts +44 -0
- package/dist/tools/senders.js +69 -0
- package/dist/tools/sequencer.d.ts +127 -0
- package/dist/tools/sequencer.js +194 -0
- package/dist/tools/tables.d.ts +35 -0
- package/dist/tools/tables.js +36 -0
- package/dist/tools/verify-row.d.ts +36 -0
- package/dist/tools/verify-row.js +38 -0
- package/dist/tools/workspaces.d.ts +140 -0
- package/dist/tools/workspaces.js +139 -0
- package/dist/utils/workspace-root.d.ts +1 -0
- package/dist/utils/workspace-root.js +39 -0
- package/package.json +46 -0
- package/skills/building-gtm-tables/SKILL.md +216 -0
- package/skills/building-gtm-tables/core/auto-execute.yaml +19 -0
- package/skills/building-gtm-tables/core/blueprint-schema.json +72 -0
- package/skills/building-gtm-tables/references/brief-to-blueprint.md +334 -0
- package/skills/building-gtm-tables/references/column-type-catalog.md +318 -0
- package/skills/building-gtm-tables/references/common-blueprints.fixtures.ts +199 -0
- package/skills/building-gtm-tables/references/common-blueprints.md +44 -0
- package/skills/building-gtm-tables/references/failure-taxonomy.md +197 -0
- package/skills/building-gtm-tables/references/uat-seed-prompts.md +37 -0
- package/skills/building-gtm-tables/references/verify-loop.md +74 -0
- package/skills/campaign-messages/SKILL.md +173 -0
- package/skills/campaign-messages/flow.v1.json +75 -0
- package/skills/craft-message/SKILL.md +401 -0
- package/skills/create-campaign/ARCHITECTURE.md +232 -0
- package/skills/create-campaign/DISCUSS.md +296 -0
- package/skills/create-campaign/FLOW_ASCII.md +240 -0
- package/skills/create-campaign/HOST-PARITY-CHECKLIST.md +49 -0
- package/skills/create-campaign/README.md +142 -0
- package/skills/create-campaign/SKILL.md +286 -0
- package/skills/create-campaign/context/README.md +67 -0
- package/skills/create-campaign/context/_TEMPLATE.md +12 -0
- package/skills/create-campaign/context/context.md +35 -0
- package/skills/create-campaign/context/learnings.md +16 -0
- package/skills/create-campaign/context/registry.json +19 -0
- package/skills/create-campaign/core/flow.v1.json +217 -0
- package/skills/create-campaign/core/policy.md +191 -0
- package/skills/create-campaign/core/providers/apollo.json +35 -0
- package/skills/create-campaign/core/providers/prospeo.json +34 -0
- package/skills/create-campaign/core/providers/registry.json +31 -0
- package/skills/create-campaign/core/providers/sales-nav.json +37 -0
- package/skills/create-campaign/core/providers/signal-discovery.json +42 -0
- package/skills/create-campaign/references/brief-template.md +64 -0
- package/skills/create-campaign/references/campaign-quality.md +84 -0
- package/skills/create-campaign/references/copy-calibration-examples.md +120 -0
- package/skills/create-campaign/references/offer-patterns.md +108 -0
- package/skills/create-campaign/references/provider-selection-strategy.md +212 -0
- package/skills/create-campaign/references/question-examples.md +167 -0
- package/skills/create-campaign/references/token-fill-examples.md +81 -0
- package/skills/create-campaign-brief/ARCHITECTURE.md +72 -0
- package/skills/create-campaign-brief/DISCUSS.md +64 -0
- package/skills/create-campaign-brief/README.md +176 -0
- package/skills/create-campaign-brief/SKILL.md +537 -0
- package/skills/create-campaign-brief/references/brief-synthesis-rules.md +100 -0
- package/skills/create-campaign-brief/references/brief-template.md +220 -0
- package/skills/create-campaign-brief/references/campaign-idea-options.md +30 -0
- package/skills/create-campaign-brief/references/copy-appendix-template.md +62 -0
- package/skills/create-campaign-brief/references/draft-lifecycle.md +23 -0
- package/skills/create-campaign-brief/references/examples/MANIFEST.json +89 -0
- package/skills/create-campaign-brief/references/examples/briefs/clover.md +223 -0
- package/skills/create-campaign-brief/references/examples/briefs/galley.md +222 -0
- package/skills/create-campaign-brief/references/examples/briefs/gelee.md +220 -0
- package/skills/create-campaign-brief/references/examples/briefs/hey-digital.md +234 -0
- package/skills/create-campaign-brief/references/examples/briefs/persona.md +231 -0
- package/skills/create-campaign-brief/references/examples/briefs/revvix.md +220 -0
- package/skills/create-campaign-brief/references/examples/briefs/sellable-dev.md +220 -0
- package/skills/create-campaign-brief/references/examples/briefs/superposition.md +233 -0
- package/skills/create-campaign-brief/references/examples/briefs/superpower.md +219 -0
- package/skills/create-campaign-brief/references/examples/briefs/westpark-villas.md +220 -0
- package/skills/create-campaign-brief/references/icp-lock-question-bank.md +43 -0
- package/skills/create-campaign-brief/references/messaging-inputs.md +58 -0
- package/skills/create-campaign-brief/references/output-acceptance-rubric.md +62 -0
- package/skills/create-campaign-brief/references/phase75-active-runtime-message-pack.md +248 -0
- package/skills/create-campaign-brief/references/phase75-canonical-brief-template.md +319 -0
- package/skills/create-campaign-brief/references/phase75-good-brief-and-messaging-examples.md +445 -0
- package/skills/create-campaign-brief/references/quick-research-protocol.md +39 -0
- package/skills/create-campaign-brief/references/reference-sheet-protocol.md +60 -0
- package/skills/create-campaign-brief/references/zero-shot-iteration-rules.md +66 -0
- package/skills/create-campaign-v2/SKILL.md +1619 -0
- package/skills/create-campaign-v2/core/auto-execute.README.md +219 -0
- package/skills/create-campaign-v2/core/auto-execute.yaml +121 -0
- package/skills/create-campaign-v2/core/flow.v2.json +1643 -0
- package/skills/create-campaign-v2/core/policy.md +82 -0
- package/skills/create-campaign-v2/references/ai-tells.md +253 -0
- package/skills/create-campaign-v2/references/approval-gate-framing.md +346 -0
- package/skills/create-campaign-v2/references/draft-lifecycle.md +110 -0
- package/skills/create-campaign-v2/references/escalation-ladder.md +119 -0
- package/skills/create-campaign-v2/references/filter-leads.md +495 -0
- package/skills/create-campaign-v2/references/final-handoff-contract.md +176 -0
- package/skills/create-campaign-v2/references/gold-standard-message-examples.md +394 -0
- package/skills/create-campaign-v2/references/gold-standard-message-patterns.md +314 -0
- package/skills/create-campaign-v2/references/gold-standard-message-validation-example.md +212 -0
- package/skills/create-campaign-v2/references/lead-validation-preview.md +172 -0
- package/skills/create-campaign-v2/references/parallel-critique-protocol.md +368 -0
- package/skills/create-campaign-v2/references/sample-validation-loop.md +289 -0
- package/skills/create-campaign-v2/references/step-13-import-leads.md +151 -0
- package/skills/create-campaign-v2/references/step-15-re-cascade.md +90 -0
- package/skills/create-campaign-v2/references/thomas-revision-filters.md +521 -0
- package/skills/create-campaign-v2/references/thomas-variant-selection.md +202 -0
- package/skills/create-campaign-v2/references/tier-routing-matrix.md +66 -0
- package/skills/create-campaign-v2/references/validation-criteria.md +367 -0
- package/skills/create-campaign-v2/references/watch-link-handoff.md +106 -0
- package/skills/create-campaign-v2-validation/SKILL.md +296 -0
- package/skills/create-post/SKILL.md +1308 -0
- package/skills/create-rubric/SKILL.md +251 -0
- package/skills/engage/SKILL.md +549 -0
- package/skills/engage/core/README.md +23 -0
- package/skills/engage/core/proven-searches.json +11 -0
- package/skills/engage/core/style-guide.template.md +47 -0
- package/skills/engage/core/tracked-people.json +10 -0
- package/skills/enrich-prospects/SKILL.md +97 -0
- package/skills/find-leads/SKILL.md +467 -0
- package/skills/generate-messages/SKILL.md +2361 -0
- package/skills/interview/SKILL.md +132 -0
- package/skills/interview/core/ENGAGE_STYLE_GUIDE.template.md +54 -0
- package/skills/interview/core/ICP.template.md +54 -0
- package/skills/interview/core/VOICE_PROFILE.template.md +101 -0
- package/skills/providers/apollo.md +520 -0
- package/skills/providers/prospeo.md +398 -0
- package/skills/providers/sales-nav.md +372 -0
- package/skills/providers/signal-discovery.md +495 -0
- package/skills/research/SKILL.md +258 -0
- package/skills/research/config.json +9 -0
- package/skills/research/override.md +13 -0
- package/skills/research-prospect/SKILL.md +99 -0
- package/skills/research-sender/SKILL.md +158 -0
- package/skills/workflow-sequences/SKILL.md +85 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { getApi } from "../api.js";
|
|
2
|
+
export const rowToolDefinitions = [
|
|
3
|
+
{
|
|
4
|
+
name: "get_table_rows",
|
|
5
|
+
description: "List leads from a campaign table. Returns: id, name, company, title, linkedinUrl, message (preview), subject (preview), messageCellId, subjectCellId, carryData (extra CSV columns like 'Jobs Hiring For'). Use for selecting which lead to craft.",
|
|
6
|
+
inputSchema: {
|
|
7
|
+
type: "object",
|
|
8
|
+
properties: {
|
|
9
|
+
tableId: {
|
|
10
|
+
type: "string",
|
|
11
|
+
description: "Workflow table ID (from get_campaign response)",
|
|
12
|
+
},
|
|
13
|
+
limit: {
|
|
14
|
+
type: "number",
|
|
15
|
+
description: "Max rows to return (default 25)",
|
|
16
|
+
default: 25,
|
|
17
|
+
},
|
|
18
|
+
page: {
|
|
19
|
+
type: "number",
|
|
20
|
+
description: "Page number for pagination (default 1)",
|
|
21
|
+
default: 1,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
required: ["tableId"],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "get_rows_minimal",
|
|
29
|
+
description: "List leads from a campaign table with minimal payload. Returns: id, name, company, title, linkedinUrl, carryData (extra CSV columns). Use for fast handoff or enrichment.",
|
|
30
|
+
inputSchema: {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
tableId: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Workflow table ID (from get_campaign response)",
|
|
36
|
+
},
|
|
37
|
+
limit: {
|
|
38
|
+
type: "number",
|
|
39
|
+
description: "Max rows to return (default 25)",
|
|
40
|
+
default: 25,
|
|
41
|
+
},
|
|
42
|
+
page: {
|
|
43
|
+
type: "number",
|
|
44
|
+
description: "Page number for pagination (default 1)",
|
|
45
|
+
default: 1,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
required: ["tableId"],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "get_rows",
|
|
53
|
+
description: "Get row details for crafting. Returns: name, company, title, linkedinUrl, currentMessage, currentSubject, messageCellId, subjectCellId, approveCellId, exampleCellId, isExample, carryData (extra CSV columns like 'Jobs Hiring For'), enrichment (summary, experience, education). Use after selecting a lead.",
|
|
54
|
+
inputSchema: {
|
|
55
|
+
type: "object",
|
|
56
|
+
properties: {
|
|
57
|
+
tableId: {
|
|
58
|
+
type: "string",
|
|
59
|
+
description: "Workflow table ID",
|
|
60
|
+
},
|
|
61
|
+
rowIds: {
|
|
62
|
+
oneOf: [
|
|
63
|
+
{ type: "string" },
|
|
64
|
+
{ type: "array", items: { type: "string" } },
|
|
65
|
+
],
|
|
66
|
+
description: "Single row ID or array of row IDs",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
required: ["tableId", "rowIds"],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
export async function getTableRows(tableId, options) {
|
|
74
|
+
const api = getApi();
|
|
75
|
+
const params = new URLSearchParams();
|
|
76
|
+
if (options?.limit)
|
|
77
|
+
params.set("limit", String(options.limit));
|
|
78
|
+
if (options?.page)
|
|
79
|
+
params.set("page", String(options.page));
|
|
80
|
+
const queryString = params.toString();
|
|
81
|
+
// Use dedicated MCP endpoint for Claude Code (lightweight rows listing)
|
|
82
|
+
const path = `/api/v3/mcp/tables/${tableId}/rows${queryString ? `?${queryString}` : ""}`;
|
|
83
|
+
return api.get(path);
|
|
84
|
+
}
|
|
85
|
+
export async function getTableRowsMinimal(tableId, options) {
|
|
86
|
+
const api = getApi();
|
|
87
|
+
const params = new URLSearchParams();
|
|
88
|
+
if (options?.limit)
|
|
89
|
+
params.set("limit", String(options.limit));
|
|
90
|
+
if (options?.page)
|
|
91
|
+
params.set("page", String(options.page));
|
|
92
|
+
params.set("minimal", "1");
|
|
93
|
+
const queryString = params.toString();
|
|
94
|
+
const path = `/api/v3/mcp/tables/${tableId}/rows${queryString ? `?${queryString}` : ""}`;
|
|
95
|
+
return api.get(path);
|
|
96
|
+
}
|
|
97
|
+
export async function getRows(tableId, rowIds) {
|
|
98
|
+
const api = getApi();
|
|
99
|
+
const ids = Array.isArray(rowIds) ? rowIds : [rowIds];
|
|
100
|
+
// Use dedicated MCP endpoint for Claude Code (full row details for crafting)
|
|
101
|
+
const rows = await Promise.all(ids.map(async (rowId) => {
|
|
102
|
+
return api.get(`/api/v3/mcp/tables/${tableId}/rows/${rowId}`);
|
|
103
|
+
}));
|
|
104
|
+
return { rows };
|
|
105
|
+
}
|
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
import { type RubricItem } from "./processing.js";
|
|
2
|
+
type DraftRubricsInput = {
|
|
3
|
+
campaignOfferId: string;
|
|
4
|
+
leadScoringRubrics: RubricItem[];
|
|
5
|
+
};
|
|
6
|
+
type SelectNecessaryRubricsInput = {
|
|
7
|
+
campaignOfferId: string;
|
|
8
|
+
requiredCheckNames: string[];
|
|
9
|
+
};
|
|
10
|
+
type SaveRubricsInput = {
|
|
11
|
+
campaignOfferId: string;
|
|
12
|
+
leadScoringRubrics?: RubricItem[];
|
|
13
|
+
};
|
|
14
|
+
type AddRubricItemInput = {
|
|
15
|
+
campaignOfferId: string;
|
|
16
|
+
rubric: RubricItem;
|
|
17
|
+
};
|
|
18
|
+
type UpdateRubricItemInput = {
|
|
19
|
+
campaignOfferId: string;
|
|
20
|
+
rubricId: string;
|
|
21
|
+
updates: Partial<RubricItem>;
|
|
22
|
+
};
|
|
23
|
+
type DeleteRubricItemInput = {
|
|
24
|
+
campaignOfferId: string;
|
|
25
|
+
checkName: string;
|
|
26
|
+
};
|
|
27
|
+
type CheckRubricInput = {
|
|
28
|
+
campaignOfferId: string;
|
|
29
|
+
maxProspects?: number;
|
|
30
|
+
};
|
|
31
|
+
type WaitForRubricResultsInput = {
|
|
32
|
+
campaignOfferId?: string;
|
|
33
|
+
tableId?: string;
|
|
34
|
+
targetCount?: number;
|
|
35
|
+
timeoutMs?: number;
|
|
36
|
+
intervalMs?: number;
|
|
37
|
+
};
|
|
38
|
+
type WorkflowTableStats = {
|
|
39
|
+
tableId: string;
|
|
40
|
+
totalRows: number;
|
|
41
|
+
passRate?: {
|
|
42
|
+
completed: number;
|
|
43
|
+
passed: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const rubricToolDefinitions: ({
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
inputSchema: {
|
|
50
|
+
type: string;
|
|
51
|
+
properties: {
|
|
52
|
+
campaignOfferId: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
leadScoringRubrics: {
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
items: {
|
|
60
|
+
type: string;
|
|
61
|
+
properties: {
|
|
62
|
+
id: {
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
65
|
+
checkName: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
description: {
|
|
69
|
+
type: string;
|
|
70
|
+
};
|
|
71
|
+
criterion: {
|
|
72
|
+
type: string;
|
|
73
|
+
};
|
|
74
|
+
reason: {
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
useCheckForScoring: {
|
|
78
|
+
type: string;
|
|
79
|
+
};
|
|
80
|
+
isRequiredCheck: {
|
|
81
|
+
type: string;
|
|
82
|
+
};
|
|
83
|
+
allowPartialCredit: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
strictMatching: {
|
|
87
|
+
type: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
required: string[];
|
|
91
|
+
additionalProperties: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
requiredCheckNames?: undefined;
|
|
95
|
+
rubric?: undefined;
|
|
96
|
+
rubricId?: undefined;
|
|
97
|
+
updates?: undefined;
|
|
98
|
+
checkName?: undefined;
|
|
99
|
+
maxProspects?: undefined;
|
|
100
|
+
tableId?: undefined;
|
|
101
|
+
targetCount?: undefined;
|
|
102
|
+
timeoutMs?: undefined;
|
|
103
|
+
intervalMs?: undefined;
|
|
104
|
+
};
|
|
105
|
+
required: string[];
|
|
106
|
+
additionalProperties: boolean;
|
|
107
|
+
};
|
|
108
|
+
} | {
|
|
109
|
+
name: string;
|
|
110
|
+
description: string;
|
|
111
|
+
inputSchema: {
|
|
112
|
+
type: string;
|
|
113
|
+
properties: {
|
|
114
|
+
campaignOfferId: {
|
|
115
|
+
type: string;
|
|
116
|
+
description: string;
|
|
117
|
+
};
|
|
118
|
+
requiredCheckNames: {
|
|
119
|
+
type: string;
|
|
120
|
+
description: string;
|
|
121
|
+
items: {
|
|
122
|
+
type: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
leadScoringRubrics?: undefined;
|
|
126
|
+
rubric?: undefined;
|
|
127
|
+
rubricId?: undefined;
|
|
128
|
+
updates?: undefined;
|
|
129
|
+
checkName?: undefined;
|
|
130
|
+
maxProspects?: undefined;
|
|
131
|
+
tableId?: undefined;
|
|
132
|
+
targetCount?: undefined;
|
|
133
|
+
timeoutMs?: undefined;
|
|
134
|
+
intervalMs?: undefined;
|
|
135
|
+
};
|
|
136
|
+
required: string[];
|
|
137
|
+
additionalProperties: boolean;
|
|
138
|
+
};
|
|
139
|
+
} | {
|
|
140
|
+
name: string;
|
|
141
|
+
description: string;
|
|
142
|
+
inputSchema: {
|
|
143
|
+
type: string;
|
|
144
|
+
properties: {
|
|
145
|
+
campaignOfferId: {
|
|
146
|
+
type: string;
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
leadScoringRubrics: {
|
|
150
|
+
type: string;
|
|
151
|
+
description: string;
|
|
152
|
+
items: {
|
|
153
|
+
type: string;
|
|
154
|
+
properties: {
|
|
155
|
+
checkName: {
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
description: {
|
|
159
|
+
type: string;
|
|
160
|
+
};
|
|
161
|
+
criterion: {
|
|
162
|
+
type: string;
|
|
163
|
+
};
|
|
164
|
+
reason: {
|
|
165
|
+
type: string;
|
|
166
|
+
};
|
|
167
|
+
isRequiredCheck: {
|
|
168
|
+
type: string;
|
|
169
|
+
};
|
|
170
|
+
useCheckForScoring: {
|
|
171
|
+
type: string;
|
|
172
|
+
};
|
|
173
|
+
id?: undefined;
|
|
174
|
+
allowPartialCredit?: undefined;
|
|
175
|
+
strictMatching?: undefined;
|
|
176
|
+
};
|
|
177
|
+
required?: undefined;
|
|
178
|
+
additionalProperties?: undefined;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
requiredCheckNames?: undefined;
|
|
182
|
+
rubric?: undefined;
|
|
183
|
+
rubricId?: undefined;
|
|
184
|
+
updates?: undefined;
|
|
185
|
+
checkName?: undefined;
|
|
186
|
+
maxProspects?: undefined;
|
|
187
|
+
tableId?: undefined;
|
|
188
|
+
targetCount?: undefined;
|
|
189
|
+
timeoutMs?: undefined;
|
|
190
|
+
intervalMs?: undefined;
|
|
191
|
+
};
|
|
192
|
+
required: string[];
|
|
193
|
+
additionalProperties: boolean;
|
|
194
|
+
};
|
|
195
|
+
} | {
|
|
196
|
+
name: string;
|
|
197
|
+
description: string;
|
|
198
|
+
inputSchema: {
|
|
199
|
+
type: string;
|
|
200
|
+
properties: {
|
|
201
|
+
campaignOfferId: {
|
|
202
|
+
type: string;
|
|
203
|
+
description: string;
|
|
204
|
+
};
|
|
205
|
+
rubric: {
|
|
206
|
+
type: string;
|
|
207
|
+
description: string;
|
|
208
|
+
properties: {
|
|
209
|
+
checkName: {
|
|
210
|
+
type: string;
|
|
211
|
+
};
|
|
212
|
+
description: {
|
|
213
|
+
type: string;
|
|
214
|
+
};
|
|
215
|
+
criterion: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
reason: {
|
|
219
|
+
type: string;
|
|
220
|
+
};
|
|
221
|
+
useCheckForScoring: {
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
isRequiredCheck: {
|
|
225
|
+
type: string;
|
|
226
|
+
};
|
|
227
|
+
allowPartialCredit: {
|
|
228
|
+
type: string;
|
|
229
|
+
};
|
|
230
|
+
strictMatching: {
|
|
231
|
+
type: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
required: string[];
|
|
235
|
+
additionalProperties: boolean;
|
|
236
|
+
};
|
|
237
|
+
leadScoringRubrics?: undefined;
|
|
238
|
+
requiredCheckNames?: undefined;
|
|
239
|
+
rubricId?: undefined;
|
|
240
|
+
updates?: undefined;
|
|
241
|
+
checkName?: undefined;
|
|
242
|
+
maxProspects?: undefined;
|
|
243
|
+
tableId?: undefined;
|
|
244
|
+
targetCount?: undefined;
|
|
245
|
+
timeoutMs?: undefined;
|
|
246
|
+
intervalMs?: undefined;
|
|
247
|
+
};
|
|
248
|
+
required: string[];
|
|
249
|
+
additionalProperties: boolean;
|
|
250
|
+
};
|
|
251
|
+
} | {
|
|
252
|
+
name: string;
|
|
253
|
+
description: string;
|
|
254
|
+
inputSchema: {
|
|
255
|
+
type: string;
|
|
256
|
+
properties: {
|
|
257
|
+
campaignOfferId: {
|
|
258
|
+
type: string;
|
|
259
|
+
description: string;
|
|
260
|
+
};
|
|
261
|
+
rubricId: {
|
|
262
|
+
type: string;
|
|
263
|
+
description: string;
|
|
264
|
+
};
|
|
265
|
+
updates: {
|
|
266
|
+
type: string;
|
|
267
|
+
description: string;
|
|
268
|
+
properties: {
|
|
269
|
+
checkName: {
|
|
270
|
+
type: string;
|
|
271
|
+
};
|
|
272
|
+
description: {
|
|
273
|
+
type: string;
|
|
274
|
+
};
|
|
275
|
+
criterion: {
|
|
276
|
+
type: string;
|
|
277
|
+
};
|
|
278
|
+
reason: {
|
|
279
|
+
type: string;
|
|
280
|
+
};
|
|
281
|
+
useCheckForScoring: {
|
|
282
|
+
type: string;
|
|
283
|
+
};
|
|
284
|
+
isRequiredCheck: {
|
|
285
|
+
type: string;
|
|
286
|
+
};
|
|
287
|
+
allowPartialCredit: {
|
|
288
|
+
type: string;
|
|
289
|
+
};
|
|
290
|
+
strictMatching: {
|
|
291
|
+
type: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
additionalProperties: boolean;
|
|
295
|
+
};
|
|
296
|
+
leadScoringRubrics?: undefined;
|
|
297
|
+
requiredCheckNames?: undefined;
|
|
298
|
+
rubric?: undefined;
|
|
299
|
+
checkName?: undefined;
|
|
300
|
+
maxProspects?: undefined;
|
|
301
|
+
tableId?: undefined;
|
|
302
|
+
targetCount?: undefined;
|
|
303
|
+
timeoutMs?: undefined;
|
|
304
|
+
intervalMs?: undefined;
|
|
305
|
+
};
|
|
306
|
+
required: string[];
|
|
307
|
+
additionalProperties: boolean;
|
|
308
|
+
};
|
|
309
|
+
} | {
|
|
310
|
+
name: string;
|
|
311
|
+
description: string;
|
|
312
|
+
inputSchema: {
|
|
313
|
+
type: string;
|
|
314
|
+
properties: {
|
|
315
|
+
campaignOfferId: {
|
|
316
|
+
type: string;
|
|
317
|
+
description: string;
|
|
318
|
+
};
|
|
319
|
+
checkName: {
|
|
320
|
+
type: string;
|
|
321
|
+
description: string;
|
|
322
|
+
};
|
|
323
|
+
leadScoringRubrics?: undefined;
|
|
324
|
+
requiredCheckNames?: undefined;
|
|
325
|
+
rubric?: undefined;
|
|
326
|
+
rubricId?: undefined;
|
|
327
|
+
updates?: undefined;
|
|
328
|
+
maxProspects?: undefined;
|
|
329
|
+
tableId?: undefined;
|
|
330
|
+
targetCount?: undefined;
|
|
331
|
+
timeoutMs?: undefined;
|
|
332
|
+
intervalMs?: undefined;
|
|
333
|
+
};
|
|
334
|
+
required: string[];
|
|
335
|
+
additionalProperties: boolean;
|
|
336
|
+
};
|
|
337
|
+
} | {
|
|
338
|
+
name: string;
|
|
339
|
+
description: string;
|
|
340
|
+
inputSchema: {
|
|
341
|
+
type: string;
|
|
342
|
+
properties: {
|
|
343
|
+
campaignOfferId: {
|
|
344
|
+
type: string;
|
|
345
|
+
description: string;
|
|
346
|
+
};
|
|
347
|
+
maxProspects: {
|
|
348
|
+
type: string;
|
|
349
|
+
description: string;
|
|
350
|
+
};
|
|
351
|
+
leadScoringRubrics?: undefined;
|
|
352
|
+
requiredCheckNames?: undefined;
|
|
353
|
+
rubric?: undefined;
|
|
354
|
+
rubricId?: undefined;
|
|
355
|
+
updates?: undefined;
|
|
356
|
+
checkName?: undefined;
|
|
357
|
+
tableId?: undefined;
|
|
358
|
+
targetCount?: undefined;
|
|
359
|
+
timeoutMs?: undefined;
|
|
360
|
+
intervalMs?: undefined;
|
|
361
|
+
};
|
|
362
|
+
required: string[];
|
|
363
|
+
additionalProperties: boolean;
|
|
364
|
+
};
|
|
365
|
+
} | {
|
|
366
|
+
name: string;
|
|
367
|
+
description: string;
|
|
368
|
+
inputSchema: {
|
|
369
|
+
type: string;
|
|
370
|
+
properties: {
|
|
371
|
+
campaignOfferId: {
|
|
372
|
+
type: string;
|
|
373
|
+
description: string;
|
|
374
|
+
};
|
|
375
|
+
tableId: {
|
|
376
|
+
type: string;
|
|
377
|
+
description: string;
|
|
378
|
+
};
|
|
379
|
+
targetCount: {
|
|
380
|
+
type: string;
|
|
381
|
+
description: string;
|
|
382
|
+
};
|
|
383
|
+
timeoutMs: {
|
|
384
|
+
type: string;
|
|
385
|
+
description: string;
|
|
386
|
+
};
|
|
387
|
+
intervalMs: {
|
|
388
|
+
type: string;
|
|
389
|
+
description: string;
|
|
390
|
+
};
|
|
391
|
+
leadScoringRubrics?: undefined;
|
|
392
|
+
requiredCheckNames?: undefined;
|
|
393
|
+
rubric?: undefined;
|
|
394
|
+
rubricId?: undefined;
|
|
395
|
+
updates?: undefined;
|
|
396
|
+
checkName?: undefined;
|
|
397
|
+
maxProspects?: undefined;
|
|
398
|
+
};
|
|
399
|
+
required: never[];
|
|
400
|
+
additionalProperties: boolean;
|
|
401
|
+
};
|
|
402
|
+
})[];
|
|
403
|
+
export declare function draftRubrics(input: DraftRubricsInput): Promise<{
|
|
404
|
+
success: boolean;
|
|
405
|
+
message: string;
|
|
406
|
+
criteriaCount: number;
|
|
407
|
+
criteria: {
|
|
408
|
+
checkName: string | undefined;
|
|
409
|
+
description: string | undefined;
|
|
410
|
+
id: string | undefined;
|
|
411
|
+
}[];
|
|
412
|
+
}>;
|
|
413
|
+
export declare function selectNecessaryRubrics(input: SelectNecessaryRubricsInput): Promise<{
|
|
414
|
+
success: boolean;
|
|
415
|
+
message: string;
|
|
416
|
+
requiredCount: number;
|
|
417
|
+
deletedCount: number;
|
|
418
|
+
requiredChecks: (string | undefined)[];
|
|
419
|
+
}>;
|
|
420
|
+
export declare function addRubricItem(input: AddRubricItemInput): Promise<{
|
|
421
|
+
success: boolean;
|
|
422
|
+
message: string;
|
|
423
|
+
totalCriteria: number;
|
|
424
|
+
criteria: {
|
|
425
|
+
checkName: string | undefined;
|
|
426
|
+
description: string | undefined;
|
|
427
|
+
id: string | undefined;
|
|
428
|
+
}[];
|
|
429
|
+
}>;
|
|
430
|
+
export declare function updateRubricItem(input: UpdateRubricItemInput): Promise<{
|
|
431
|
+
success: boolean;
|
|
432
|
+
message: string;
|
|
433
|
+
rubricId: string;
|
|
434
|
+
updatedFields: string[];
|
|
435
|
+
}>;
|
|
436
|
+
export declare function deleteRubricItem(input: DeleteRubricItemInput): Promise<{
|
|
437
|
+
success: boolean;
|
|
438
|
+
message: string;
|
|
439
|
+
totalCriteria: number;
|
|
440
|
+
deletedFromDatabase: boolean;
|
|
441
|
+
}>;
|
|
442
|
+
export declare function saveRubrics(input: SaveRubricsInput): Promise<{
|
|
443
|
+
success: boolean;
|
|
444
|
+
message: string;
|
|
445
|
+
criteriaCount: number;
|
|
446
|
+
deletedCount: number;
|
|
447
|
+
enableICPFiltersSet: boolean;
|
|
448
|
+
}>;
|
|
449
|
+
export declare function checkRubric(input: CheckRubricInput): Promise<{
|
|
450
|
+
success: boolean;
|
|
451
|
+
message: string;
|
|
452
|
+
processedRows: number;
|
|
453
|
+
tableId: string;
|
|
454
|
+
queuedCount?: undefined;
|
|
455
|
+
dispatchedCount?: undefined;
|
|
456
|
+
failedCount?: undefined;
|
|
457
|
+
skippedCount?: undefined;
|
|
458
|
+
} | {
|
|
459
|
+
success: boolean;
|
|
460
|
+
message: string;
|
|
461
|
+
processedRows: number;
|
|
462
|
+
queuedCount: number;
|
|
463
|
+
dispatchedCount: number;
|
|
464
|
+
failedCount: number;
|
|
465
|
+
skippedCount: number;
|
|
466
|
+
tableId: string;
|
|
467
|
+
}>;
|
|
468
|
+
export declare function waitForRubricResults(input: WaitForRubricResultsInput): Promise<{
|
|
469
|
+
ready: boolean;
|
|
470
|
+
attempts: number;
|
|
471
|
+
elapsedMs: number;
|
|
472
|
+
tableId: string;
|
|
473
|
+
passRate: {
|
|
474
|
+
completed: number;
|
|
475
|
+
passed: number;
|
|
476
|
+
percent: number;
|
|
477
|
+
targetCount: number;
|
|
478
|
+
};
|
|
479
|
+
rows: import("./rows.js").LightweightRow[];
|
|
480
|
+
stats: WorkflowTableStats;
|
|
481
|
+
reason?: undefined;
|
|
482
|
+
} | {
|
|
483
|
+
ready: boolean;
|
|
484
|
+
reason: string;
|
|
485
|
+
attempts: number;
|
|
486
|
+
elapsedMs: number;
|
|
487
|
+
tableId: string;
|
|
488
|
+
passRate: {
|
|
489
|
+
completed: number;
|
|
490
|
+
passed: number;
|
|
491
|
+
percent: number;
|
|
492
|
+
targetCount: number;
|
|
493
|
+
};
|
|
494
|
+
stats: WorkflowTableStats | null;
|
|
495
|
+
rows?: undefined;
|
|
496
|
+
}>;
|
|
497
|
+
export {};
|