indiecrm-cli 0.1.0 → 0.2.1
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/CHANGELOG.md +447 -0
- package/CODE_OF_CONDUCT.md +35 -0
- package/CONTRIBUTING.md +7 -0
- package/README.md +14 -2
- package/RESEARCH.md +346 -0
- package/SECURITY.md +35 -0
- package/dist/affiliate-copy.js +49 -0
- package/dist/auth.js +453 -0
- package/dist/bigquery.js +199 -0
- package/dist/chrome-browser.js +231 -0
- package/dist/cli.js +19652 -0
- package/dist/company-identity-review.js +78 -0
- package/dist/company-leads.js +422 -0
- package/dist/company-recovery.js +84 -0
- package/dist/deel-outreach.js +469 -0
- package/dist/deel-salesnav.js +368 -0
- package/dist/direct-path.js +326 -0
- package/dist/domain.js +53 -0
- package/dist/domainfinder.js +764 -0
- package/dist/engine.js +216 -0
- package/dist/historical-queries.js +189 -0
- package/dist/hunter-emailfinder.js +252 -0
- package/dist/icp-templates.js +171 -0
- package/dist/indiecrm/commands.js +108 -0
- package/dist/indiecrm-cli.js +2 -104
- package/dist/instantly.js +136 -0
- package/dist/io.js +21 -0
- package/dist/leadlists-funnel.js +148 -0
- package/dist/linkedin-companies.js +562 -0
- package/dist/linkedin-product-details.js +1203 -0
- package/dist/linkedin-product-search.js +1081 -0
- package/dist/linkedin-products.js +786 -0
- package/dist/linkedin-session-contracts.js +3 -0
- package/dist/linkedin-session.js +846 -0
- package/dist/providers.js +1 -0
- package/dist/research-browser-preference.js +37 -0
- package/dist/sales-navigator.js +1231 -0
- package/dist/salesnav-backfill.js +710 -0
- package/dist/sample-data.js +34 -0
- package/dist/session-recovery.js +62 -0
- package/dist/vendor/salesprompter-shared/extension-session-contracts.js +29 -0
- package/dist/vendor/salesprompter-shared/linkedin-session.js +22 -0
- package/dist/vendor/salesprompter-shared/phantombuster-contracts.js +16 -0
- package/dist/vendor/salesprompter-shared/session-vault-contracts.js +17 -0
- package/package.json +73 -14
package/dist/domain.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const LeadCustomVariableValueSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]);
|
|
3
|
+
export const LeadCustomVariablesSchema = z.record(z.string(), LeadCustomVariableValueSchema);
|
|
4
|
+
export const IcpSchema = z.object({
|
|
5
|
+
name: z.string().min(1),
|
|
6
|
+
description: z.string().default(""),
|
|
7
|
+
industries: z.array(z.string().min(1)).default([]),
|
|
8
|
+
companySizes: z.array(z.string().min(1)).default([]),
|
|
9
|
+
regions: z.array(z.string().min(1)).default([]),
|
|
10
|
+
countries: z.array(z.string().min(1)).default([]),
|
|
11
|
+
titles: z.array(z.string().min(1)).default([]),
|
|
12
|
+
pains: z.array(z.string().min(1)).default([]),
|
|
13
|
+
requiredSignals: z.array(z.string().min(1)).default([]),
|
|
14
|
+
excludedSignals: z.array(z.string().min(1)).default([]),
|
|
15
|
+
keywords: z.array(z.string().min(1)).default([]),
|
|
16
|
+
excludedKeywords: z.array(z.string().min(1)).default([]),
|
|
17
|
+
});
|
|
18
|
+
export const AccountProfileSchema = z.object({
|
|
19
|
+
companyName: z.string().min(1),
|
|
20
|
+
domain: z.string().min(1),
|
|
21
|
+
industry: z.string().min(1),
|
|
22
|
+
region: z.string().min(1),
|
|
23
|
+
employeeCount: z.number().int().nonnegative(),
|
|
24
|
+
keywords: z.array(z.string().min(1)).default([]),
|
|
25
|
+
sources: z.array(z.string().min(1)).default([]),
|
|
26
|
+
});
|
|
27
|
+
export const LeadSchema = z.object({
|
|
28
|
+
companyName: z.string().min(1),
|
|
29
|
+
domain: z.string().min(1),
|
|
30
|
+
industry: z.string().min(1),
|
|
31
|
+
region: z.string().min(1),
|
|
32
|
+
employeeCount: z.number().int().nonnegative(),
|
|
33
|
+
contactName: z.string().min(1),
|
|
34
|
+
title: z.string().min(1),
|
|
35
|
+
email: z.string().email(),
|
|
36
|
+
source: z.string().min(1),
|
|
37
|
+
signals: z.array(z.string().min(1)).default([]),
|
|
38
|
+
customVariables: LeadCustomVariablesSchema.optional(),
|
|
39
|
+
});
|
|
40
|
+
export const EnrichedLeadSchema = LeadSchema.extend({
|
|
41
|
+
techStack: z.array(z.string().min(1)).default([]),
|
|
42
|
+
crmFit: z.enum(["high", "medium", "low"]),
|
|
43
|
+
outreachFit: z.enum(["high", "medium", "low"]),
|
|
44
|
+
buyingStage: z.enum(["problem-aware", "solution-aware", "active-evaluation"]),
|
|
45
|
+
notes: z.array(z.string().min(1)).default([]),
|
|
46
|
+
});
|
|
47
|
+
export const ScoredLeadSchema = EnrichedLeadSchema.extend({
|
|
48
|
+
score: z.number().int().min(0).max(100),
|
|
49
|
+
grade: z.enum(["A", "B", "C", "D"]),
|
|
50
|
+
rationale: z.array(z.string().min(1)).default([]),
|
|
51
|
+
});
|
|
52
|
+
export const SyncTargetSchema = z.enum(["hubspot", "salesforce", "pipedrive", "apollo", "instantly", "outreach"]);
|
|
53
|
+
export const ProviderModeSchema = z.enum(["real", "fallback"]);
|