outbound-sdk 0.5.0 → 0.6.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/dist/cards/format.d.ts +1 -1
- package/dist/cards/index.js +47 -18
- package/dist/cards/parts.d.ts +1 -6
- package/dist/chunks/{chunk-X4RDBD4J.js → chunk-3JOC5DGD.js} +26 -7
- package/dist/chunks/chunk-53DCVFUB.js +55 -0
- package/dist/chunks/{chunk-3S32R2MH.js → chunk-MGR6HREO.js} +0 -51
- package/dist/chunks/{chunk-EHSJGQ5K.js → chunk-PHNQ3WC2.js} +1 -1
- package/dist/chunks/{chunk-6TKFISG4.js → chunk-SXGCKCAR.js} +4 -2
- package/dist/chunks/{chunk-WGW3ROLY.js → chunk-TFICTGM2.js} +1 -1
- package/dist/chunks/{chunk-BN6WCAWX.js → chunk-W22SDX6S.js} +1 -1
- package/dist/cli/bin.js +3 -3
- package/dist/cli/index.js +2 -2
- package/dist/cli/output.d.ts +9 -0
- package/dist/emailbison/index.js +3 -2
- package/dist/heyreach/index.js +4 -2
- package/dist/insights/copy/copy-preview.d.ts +58 -0
- package/dist/insights/copy/copy-reuse.d.ts +0 -13
- package/dist/insights/copy/index.d.ts +9 -0
- package/dist/insights/copy/reuse-base.d.ts +0 -2
- package/dist/insights/copy/shared.d.ts +3 -8
- package/dist/insights/copy/step-funnel.d.ts +1 -12
- package/dist/insights/copy/variant-test.d.ts +0 -5
- package/dist/insights/index.js +504 -413
- package/dist/insights/inputs.generated.d.ts +21 -24
- package/dist/insights/ops/campaign-diagnosis.d.ts +0 -2
- package/dist/insights/ops/client-report.d.ts +0 -2
- package/dist/insights/ops/index.d.ts +0 -4
- package/dist/insights/ops/shared.d.ts +0 -2
- package/dist/insights/registry.d.ts +8 -8
- package/dist/insights/senders/bounce-watch.d.ts +0 -11
- package/dist/insights/senders/domain-health.d.ts +0 -7
- package/dist/insights/senders/index.d.ts +0 -4
- package/dist/insights/senders/sender-load.d.ts +0 -2
- package/dist/insights/types.d.ts +1 -1
- package/dist/insights/variables.d.ts +33 -0
- package/dist/instantly/index.js +5 -3
- package/dist/loader/index.js +1 -1
- package/dist/smartlead/index.js +5 -3
- package/dist/webhooks/index.js +5 -4
- package/package.json +1 -1
- package/dist/internal/renamed.d.ts +0 -28
- /package/dist/chunks/{chunk-5J7GGV62.js → chunk-UWUPUMM2.js} +0 -0
|
@@ -336,6 +336,27 @@ export interface InsightInputs {
|
|
|
336
336
|
*/
|
|
337
337
|
readonly spam_words?: string[] | undefined;
|
|
338
338
|
};
|
|
339
|
+
/** The input of `copyPreview` (the `copy_preview` tool). */
|
|
340
|
+
readonly copyPreview: {
|
|
341
|
+
/**
|
|
342
|
+
* The campaign's ref, for example `instantly:acme:abc123`
|
|
343
|
+
*
|
|
344
|
+
* Not empty. Required.
|
|
345
|
+
*/
|
|
346
|
+
readonly campaign: string;
|
|
347
|
+
/**
|
|
348
|
+
* The lead's ref to render the copy for. null picks the lead read with the most variables filled.
|
|
349
|
+
*
|
|
350
|
+
* Not empty. Defaults to `null`.
|
|
351
|
+
*/
|
|
352
|
+
readonly lead?: string | null | undefined;
|
|
353
|
+
/**
|
|
354
|
+
* The most leads to read when picking one. Ignored when `lead` is given.
|
|
355
|
+
*
|
|
356
|
+
* A whole number from 1 to 1000. Defaults to `100`.
|
|
357
|
+
*/
|
|
358
|
+
readonly max_leads?: number | undefined;
|
|
359
|
+
};
|
|
339
360
|
/** The input of `copyReuse` (the `copy_reuse` tool). */
|
|
340
361
|
readonly copyReuse: {
|
|
341
362
|
/**
|
|
@@ -398,12 +419,6 @@ export interface InsightInputs {
|
|
|
398
419
|
* A number from 0 to 1. Defaults to `0.1`.
|
|
399
420
|
*/
|
|
400
421
|
readonly max_spam_rate?: number | undefined;
|
|
401
|
-
/**
|
|
402
|
-
* @deprecated Renamed to `max_spam_rate`. Removed in 0.6.0.
|
|
403
|
-
*
|
|
404
|
-
* A number from 0 to 1.
|
|
405
|
-
*/
|
|
406
|
-
readonly spam_rate_threshold?: number | undefined;
|
|
407
422
|
};
|
|
408
423
|
/** The input of `senderCapacity` (the `sender_capacity` tool). */
|
|
409
424
|
readonly senderCapacity: {
|
|
@@ -476,12 +491,6 @@ export interface InsightInputs {
|
|
|
476
491
|
* A whole number from 0 to 9,007,199,254,740,991. Defaults to `100`.
|
|
477
492
|
*/
|
|
478
493
|
readonly min_sent?: number | undefined;
|
|
479
|
-
/**
|
|
480
|
-
* @deprecated Renamed to `max_bounce_rate`. Removed in 0.6.0.
|
|
481
|
-
*
|
|
482
|
-
* A number from 0 to 1.
|
|
483
|
-
*/
|
|
484
|
-
readonly threshold?: number | undefined;
|
|
485
494
|
/**
|
|
486
495
|
* Only campaigns in one of these states are read: active, paused, completed, draft, archived or unknown
|
|
487
496
|
*
|
|
@@ -662,12 +671,6 @@ export interface InsightInputs {
|
|
|
662
671
|
* A number from 0 to 168. Defaults to `20`.
|
|
663
672
|
*/
|
|
664
673
|
readonly min_weekly_hours?: number | undefined;
|
|
665
|
-
/**
|
|
666
|
-
* @deprecated Renamed to `days`. Removed in 0.6.0.
|
|
667
|
-
*
|
|
668
|
-
* A whole number from 1 to 30.
|
|
669
|
-
*/
|
|
670
|
-
readonly recent_days?: number | undefined;
|
|
671
674
|
};
|
|
672
675
|
/** The input of `pipelineForecast` (the `pipeline_forecast` tool). */
|
|
673
676
|
readonly pipelineForecast: {
|
|
@@ -941,11 +944,5 @@ export interface InsightInputs {
|
|
|
941
944
|
* A number, 0 or more. Defaults to `7`.
|
|
942
945
|
*/
|
|
943
946
|
readonly runway_days?: number | undefined;
|
|
944
|
-
/**
|
|
945
|
-
* @deprecated Renamed to `limit`. Removed in 0.6.0.
|
|
946
|
-
*
|
|
947
|
-
* A whole number from 1 to 20.
|
|
948
|
-
*/
|
|
949
|
-
readonly top?: number | undefined;
|
|
950
947
|
};
|
|
951
948
|
}
|
|
@@ -23,7 +23,6 @@ export declare const campaignDiagnosis: import("../define.ts").InsightDefinition
|
|
|
23
23
|
min_weekly_hours: number;
|
|
24
24
|
from: string | null;
|
|
25
25
|
to: string | null;
|
|
26
|
-
recent_days?: number | undefined;
|
|
27
26
|
}, CampaignDiagnosis, {
|
|
28
27
|
campaign: string;
|
|
29
28
|
days?: number | undefined;
|
|
@@ -35,7 +34,6 @@ export declare const campaignDiagnosis: import("../define.ts").InsightDefinition
|
|
|
35
34
|
min_reply_rate?: number | undefined;
|
|
36
35
|
min_sent?: number | undefined;
|
|
37
36
|
min_weekly_hours?: number | undefined;
|
|
38
|
-
recent_days?: number | undefined;
|
|
39
37
|
from?: string | null | undefined;
|
|
40
38
|
to?: string | null | undefined;
|
|
41
39
|
}>;
|
|
@@ -71,7 +71,6 @@ export declare const clientReport: import("../define.ts").InsightDefinition<"cli
|
|
|
71
71
|
runway_days: number;
|
|
72
72
|
max_campaigns: number;
|
|
73
73
|
statuses: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[];
|
|
74
|
-
top?: number | undefined;
|
|
75
74
|
}, ClientReport, {
|
|
76
75
|
alpha?: number | undefined;
|
|
77
76
|
anomaly_threshold?: number | undefined;
|
|
@@ -83,7 +82,6 @@ export declare const clientReport: import("../define.ts").InsightDefinition<"cli
|
|
|
83
82
|
min_baseline_points?: number | undefined;
|
|
84
83
|
min_sent?: number | undefined;
|
|
85
84
|
runway_days?: number | undefined;
|
|
86
|
-
top?: number | undefined;
|
|
87
85
|
max_campaigns?: number | undefined;
|
|
88
86
|
statuses?: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[] | undefined;
|
|
89
87
|
}>;
|
|
@@ -11,7 +11,6 @@ export declare const OPS_INSIGHTS: readonly [import("../define.ts").InsightDefin
|
|
|
11
11
|
min_weekly_hours: number;
|
|
12
12
|
from: string | null;
|
|
13
13
|
to: string | null;
|
|
14
|
-
recent_days?: number | undefined;
|
|
15
14
|
}, import("./campaign-diagnosis.ts").CampaignDiagnosis, {
|
|
16
15
|
campaign: string;
|
|
17
16
|
days?: number | undefined;
|
|
@@ -23,7 +22,6 @@ export declare const OPS_INSIGHTS: readonly [import("../define.ts").InsightDefin
|
|
|
23
22
|
min_reply_rate?: number | undefined;
|
|
24
23
|
min_sent?: number | undefined;
|
|
25
24
|
min_weekly_hours?: number | undefined;
|
|
26
|
-
recent_days?: number | undefined;
|
|
27
25
|
from?: string | null | undefined;
|
|
28
26
|
to?: string | null | undefined;
|
|
29
27
|
}>, import("../define.ts").InsightDefinition<"pipelineForecast", {
|
|
@@ -111,7 +109,6 @@ export declare const OPS_INSIGHTS: readonly [import("../define.ts").InsightDefin
|
|
|
111
109
|
runway_days: number;
|
|
112
110
|
max_campaigns: number;
|
|
113
111
|
statuses: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[];
|
|
114
|
-
top?: number | undefined;
|
|
115
112
|
}, import("./client-report.ts").ClientReport, {
|
|
116
113
|
alpha?: number | undefined;
|
|
117
114
|
anomaly_threshold?: number | undefined;
|
|
@@ -123,7 +120,6 @@ export declare const OPS_INSIGHTS: readonly [import("../define.ts").InsightDefin
|
|
|
123
120
|
min_baseline_points?: number | undefined;
|
|
124
121
|
min_sent?: number | undefined;
|
|
125
122
|
runway_days?: number | undefined;
|
|
126
|
-
top?: number | undefined;
|
|
127
123
|
max_campaigns?: number | undefined;
|
|
128
124
|
statuses?: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[] | undefined;
|
|
129
125
|
}>];
|
|
@@ -50,8 +50,6 @@ export interface CampaignLabel {
|
|
|
50
50
|
/** The campaign's ref. */
|
|
51
51
|
readonly campaign: string;
|
|
52
52
|
readonly campaignName: string;
|
|
53
|
-
/** @deprecated Use `campaignName`. Removed in 0.6.0. */
|
|
54
|
-
readonly name: string;
|
|
55
53
|
readonly status: CampaignStatus;
|
|
56
54
|
readonly channel: "email" | "linkedin";
|
|
57
55
|
readonly provider: string;
|
|
@@ -121,6 +121,14 @@ export declare const INSIGHTS: readonly [import("./define.ts").InsightDefinition
|
|
|
121
121
|
max_links?: number | undefined;
|
|
122
122
|
max_subject_chars?: number | undefined;
|
|
123
123
|
spam_words?: string[] | undefined;
|
|
124
|
+
}>, import("./define.ts").InsightDefinition<"copyPreview", {
|
|
125
|
+
campaign: string;
|
|
126
|
+
lead: string | null;
|
|
127
|
+
max_leads: number;
|
|
128
|
+
}, import("./copy/copy-preview.ts").CopyPreview, {
|
|
129
|
+
campaign: string;
|
|
130
|
+
lead?: string | null | undefined;
|
|
131
|
+
max_leads?: number | undefined;
|
|
124
132
|
}>, import("./define.ts").InsightDefinition<"copyReuse", {
|
|
125
133
|
max_campaigns: number;
|
|
126
134
|
min_sent: number;
|
|
@@ -142,11 +150,9 @@ export declare const INSIGHTS: readonly [import("./define.ts").InsightDefinition
|
|
|
142
150
|
}>, import("./define.ts").InsightDefinition<"domainHealth", {
|
|
143
151
|
max_senders: number;
|
|
144
152
|
max_spam_rate: number;
|
|
145
|
-
spam_rate_threshold?: number | undefined;
|
|
146
153
|
}, import("./senders/domain-health.ts").DomainHealth, {
|
|
147
154
|
max_senders?: number | undefined;
|
|
148
155
|
max_spam_rate?: number | undefined;
|
|
149
|
-
spam_rate_threshold?: number | undefined;
|
|
150
156
|
}>, import("./define.ts").InsightDefinition<"senderCapacity", {
|
|
151
157
|
days: number;
|
|
152
158
|
max_campaigns: number;
|
|
@@ -166,14 +172,12 @@ export declare const INSIGHTS: readonly [import("./define.ts").InsightDefinition
|
|
|
166
172
|
statuses: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[];
|
|
167
173
|
from: string | null;
|
|
168
174
|
to: string | null;
|
|
169
|
-
threshold?: number | undefined;
|
|
170
175
|
}, import("./senders/bounce-watch.ts").BounceWatch, {
|
|
171
176
|
include_senders?: boolean | undefined;
|
|
172
177
|
max_bounce_rate?: number | undefined;
|
|
173
178
|
max_campaigns?: number | undefined;
|
|
174
179
|
max_senders_per_campaign?: number | undefined;
|
|
175
180
|
min_sent?: number | undefined;
|
|
176
|
-
threshold?: number | undefined;
|
|
177
181
|
statuses?: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[] | undefined;
|
|
178
182
|
from?: string | null | undefined;
|
|
179
183
|
to?: string | null | undefined;
|
|
@@ -226,7 +230,6 @@ export declare const INSIGHTS: readonly [import("./define.ts").InsightDefinition
|
|
|
226
230
|
min_weekly_hours: number;
|
|
227
231
|
from: string | null;
|
|
228
232
|
to: string | null;
|
|
229
|
-
recent_days?: number | undefined;
|
|
230
233
|
}, import("./ops/campaign-diagnosis.ts").CampaignDiagnosis, {
|
|
231
234
|
campaign: string;
|
|
232
235
|
days?: number | undefined;
|
|
@@ -238,7 +241,6 @@ export declare const INSIGHTS: readonly [import("./define.ts").InsightDefinition
|
|
|
238
241
|
min_reply_rate?: number | undefined;
|
|
239
242
|
min_sent?: number | undefined;
|
|
240
243
|
min_weekly_hours?: number | undefined;
|
|
241
|
-
recent_days?: number | undefined;
|
|
242
244
|
from?: string | null | undefined;
|
|
243
245
|
to?: string | null | undefined;
|
|
244
246
|
}>, import("./define.ts").InsightDefinition<"pipelineForecast", {
|
|
@@ -326,7 +328,6 @@ export declare const INSIGHTS: readonly [import("./define.ts").InsightDefinition
|
|
|
326
328
|
runway_days: number;
|
|
327
329
|
max_campaigns: number;
|
|
328
330
|
statuses: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[];
|
|
329
|
-
top?: number | undefined;
|
|
330
331
|
}, import("./ops/client-report.ts").ClientReport, {
|
|
331
332
|
alpha?: number | undefined;
|
|
332
333
|
anomaly_threshold?: number | undefined;
|
|
@@ -338,7 +339,6 @@ export declare const INSIGHTS: readonly [import("./define.ts").InsightDefinition
|
|
|
338
339
|
min_baseline_points?: number | undefined;
|
|
339
340
|
min_sent?: number | undefined;
|
|
340
341
|
runway_days?: number | undefined;
|
|
341
|
-
top?: number | undefined;
|
|
342
342
|
max_campaigns?: number | undefined;
|
|
343
343
|
statuses?: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[] | undefined;
|
|
344
344
|
}>];
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { Measured } from "../ops/shared.ts";
|
|
2
|
-
import type { Interval } from "../stats.ts";
|
|
3
2
|
export interface BounceCounts extends Measured {
|
|
4
3
|
readonly bounced: number;
|
|
5
4
|
readonly sent: number;
|
|
6
5
|
/** Bounced (`count`) divided by sent (`of`). `null` when nothing was sent. */
|
|
7
6
|
readonly rate: number | null;
|
|
8
|
-
/** @deprecated Use `low` and `high`, the Wilson interval of the rate. Removed in 0.6.0. */
|
|
9
|
-
readonly interval: Interval | null;
|
|
10
7
|
}
|
|
11
8
|
export interface BounceSender extends BounceCounts {
|
|
12
9
|
readonly sender: string;
|
|
@@ -16,8 +13,6 @@ export interface BounceSender extends BounceCounts {
|
|
|
16
13
|
export interface BounceCampaign extends BounceCounts {
|
|
17
14
|
readonly campaign: string;
|
|
18
15
|
readonly campaignName: string;
|
|
19
|
-
/** @deprecated Use `campaignName`. Removed in 0.6.0. */
|
|
20
|
-
readonly name: string;
|
|
21
16
|
readonly status: string;
|
|
22
17
|
readonly finding: string;
|
|
23
18
|
/**
|
|
@@ -30,8 +25,6 @@ export interface BounceCampaign extends BounceCounts {
|
|
|
30
25
|
export interface BounceUnknown {
|
|
31
26
|
readonly campaign: string;
|
|
32
27
|
readonly campaignName: string;
|
|
33
|
-
/** @deprecated Use `campaignName`. Removed in 0.6.0. */
|
|
34
|
-
readonly name: string;
|
|
35
28
|
readonly status: string;
|
|
36
29
|
readonly reason: string;
|
|
37
30
|
}
|
|
@@ -55,8 +48,6 @@ export interface BounceWatch {
|
|
|
55
48
|
};
|
|
56
49
|
/** The `max_bounce_rate` the campaigns were held to. */
|
|
57
50
|
readonly maxBounceRate: number;
|
|
58
|
-
/** @deprecated Use `maxBounceRate`. Removed in 0.6.0. */
|
|
59
|
-
readonly threshold: number;
|
|
60
51
|
readonly minSent: number;
|
|
61
52
|
/**
|
|
62
53
|
* Senders whose sent and bounce counts were read. `null` when senders were
|
|
@@ -73,14 +64,12 @@ export declare const bounceWatch: import("../define.ts").InsightDefinition<"boun
|
|
|
73
64
|
statuses: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[];
|
|
74
65
|
from: string | null;
|
|
75
66
|
to: string | null;
|
|
76
|
-
threshold?: number | undefined;
|
|
77
67
|
}, BounceWatch, {
|
|
78
68
|
include_senders?: boolean | undefined;
|
|
79
69
|
max_bounce_rate?: number | undefined;
|
|
80
70
|
max_campaigns?: number | undefined;
|
|
81
71
|
max_senders_per_campaign?: number | undefined;
|
|
82
72
|
min_sent?: number | undefined;
|
|
83
|
-
threshold?: number | undefined;
|
|
84
73
|
statuses?: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[] | undefined;
|
|
85
74
|
from?: string | null | undefined;
|
|
86
75
|
to?: string | null | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Measured } from "../ops/shared.ts";
|
|
2
|
-
import type { Interval } from "../stats.ts";
|
|
3
2
|
import type { DnsRecord } from "./read.ts";
|
|
4
3
|
export type DomainRisk = "high" | "low" | "medium" | "unknown";
|
|
5
4
|
export interface DomainMailbox {
|
|
@@ -18,10 +17,6 @@ export interface DomainWarmup extends Measured {
|
|
|
18
17
|
readonly mailboxes: number;
|
|
19
18
|
readonly sent: number | null;
|
|
20
19
|
readonly spam: number | null;
|
|
21
|
-
/** @deprecated Use `rate`: warmup emails in spam (`count`) over those sent (`of`). Removed in 0.6.0. */
|
|
22
|
-
readonly spamRate: number | null;
|
|
23
|
-
/** @deprecated Use `low` and `high`. Removed in 0.6.0. */
|
|
24
|
-
readonly interval: Interval | null;
|
|
25
20
|
}
|
|
26
21
|
export interface DomainReport {
|
|
27
22
|
readonly domain: string;
|
|
@@ -67,9 +62,7 @@ export interface DomainHealth {
|
|
|
67
62
|
export declare const domainHealth: import("../define.ts").InsightDefinition<"domainHealth", {
|
|
68
63
|
max_senders: number;
|
|
69
64
|
max_spam_rate: number;
|
|
70
|
-
spam_rate_threshold?: number | undefined;
|
|
71
65
|
}, DomainHealth, {
|
|
72
66
|
max_senders?: number | undefined;
|
|
73
67
|
max_spam_rate?: number | undefined;
|
|
74
|
-
spam_rate_threshold?: number | undefined;
|
|
75
68
|
}>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
export declare const SENDERS_INSIGHTS: readonly [import("../define.ts").InsightDefinition<"domainHealth", {
|
|
2
2
|
max_senders: number;
|
|
3
3
|
max_spam_rate: number;
|
|
4
|
-
spam_rate_threshold?: number | undefined;
|
|
5
4
|
}, import("./domain-health.ts").DomainHealth, {
|
|
6
5
|
max_senders?: number | undefined;
|
|
7
6
|
max_spam_rate?: number | undefined;
|
|
8
|
-
spam_rate_threshold?: number | undefined;
|
|
9
7
|
}>, import("../define.ts").InsightDefinition<"senderCapacity", {
|
|
10
8
|
days: number;
|
|
11
9
|
max_campaigns: number;
|
|
@@ -25,14 +23,12 @@ export declare const SENDERS_INSIGHTS: readonly [import("../define.ts").InsightD
|
|
|
25
23
|
statuses: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[];
|
|
26
24
|
from: string | null;
|
|
27
25
|
to: string | null;
|
|
28
|
-
threshold?: number | undefined;
|
|
29
26
|
}, import("./bounce-watch.ts").BounceWatch, {
|
|
30
27
|
include_senders?: boolean | undefined;
|
|
31
28
|
max_bounce_rate?: number | undefined;
|
|
32
29
|
max_campaigns?: number | undefined;
|
|
33
30
|
max_senders_per_campaign?: number | undefined;
|
|
34
31
|
min_sent?: number | undefined;
|
|
35
|
-
threshold?: number | undefined;
|
|
36
32
|
statuses?: ("active" | "archived" | "completed" | "draft" | "paused" | "unknown")[] | undefined;
|
|
37
33
|
from?: string | null | undefined;
|
|
38
34
|
to?: string | null | undefined;
|
|
@@ -16,8 +16,6 @@ export type CampaignSenderIssue = "inactive_sender" | "no_sender" | "single_send
|
|
|
16
16
|
export interface CampaignSenderRisk {
|
|
17
17
|
readonly campaign: string;
|
|
18
18
|
readonly campaignName: string;
|
|
19
|
-
/** @deprecated Use `campaignName`. Removed in 0.6.0. */
|
|
20
|
-
readonly name: string;
|
|
21
19
|
readonly senders: number;
|
|
22
20
|
readonly issues: readonly CampaignSenderIssue[];
|
|
23
21
|
/** The campaign's senders whose status is not active. */
|
package/dist/insights/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { CheckCount, CheckName, CopyAudit, CopyFinding, CopyPiece, CopyReuse, CopyUse, FunnelStep, FunnelVariant, HourCount, ReplyTiming, ReusedCopy, Severity, StepFunnel, TestedVariant, TimeTable, VariantStepTest, VariantTest, VariantVerdict, WeekdayCount, } from "./copy/index.ts";
|
|
1
|
+
export type { CheckCount, CheckName, CopyAudit, CopyFinding, CopyPiece, CopyPreview, CopyText, CopyReuse, CopyUse, FunnelStep, FunnelVariant, HourCount, PreviewLead, PreviewStep, PreviewVariant, RenderedCopy, ReplyTiming, ReusedCopy, Severity, StepFunnel, TestedVariant, TimeTable, VariantStepTest, VariantTest, VariantVerdict, WeekdayCount, } from "./copy/index.ts";
|
|
2
2
|
export type { ActionItem, Anomalies, Anomaly, AnomalyMetric, BounceProblem, CampaignComparison, CampaignDiagnosis, CampaignLabel, CampaignRanking, ChannelComparison, ChannelGroup, ChannelMix, ClientReport, Comparison, DayRange, DiagnosisCode, DiagnosisFinding, Estimate, LeadRunway, Measured, MetricCoverage, OpenRange, PeriodComparison, PeriodNumbers, PipelineForecast, ProviderGroup, RankedCampaign, RankingGap, RankingMetric, Rates, TagGroup, TagRollup, ThinCampaign, Totals, UnrankedCampaign, } from "./ops/index.ts";
|
|
3
3
|
export type { AccountPerson, AccountRecord, AccountSummary, CollisionCampaign, CopyVariable, DroppedReplies, DroppedReply, GapLead, HotLead, HotLeadParts, HotLeads, LeadCollision, LeadCollisions, PersonCampaign, PersonSummary, PersonalizationGaps, SuppressionCampaign, SuppressionCheck, SuppressionMatch, SuppressionViolation, VariableUse, } from "./people/index.ts";
|
|
4
4
|
export type { AuditedCampaign, BounceCampaign, BounceCounts, BounceSender, BounceUnknown, BounceWatch, CampaignSenderIssue, CampaignSenderRisk, CapacityAsk, CapacitySends, CapacityTotals, DnsRecord, DomainHealth, DomainMailbox, DomainReport, DomainRisk, DomainWarmup, LinkedinSeat, LoadedSender, OverusedSender, ReadinessCounts, ReadinessReason, SenderCapacity, SenderLoad, SettingsAudit, SettingsCheck, SettingsCheckCounts, SettingsFinding, SettingsSeverity, ShortCampaign, UnreadySender, WarmupReadiness, } from "./senders/index.ts";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Lead } from "../internal/entities.ts";
|
|
2
|
+
/** A variable's name lowercased, without spaces, underscores and hyphens. */
|
|
3
|
+
export declare const keyOf: (name: string) => string;
|
|
4
|
+
export declare const isBuiltin: (key: string) => boolean;
|
|
5
|
+
export interface VariableMatch {
|
|
6
|
+
/** The name as the copy writes it. */
|
|
7
|
+
readonly name: string;
|
|
8
|
+
/** The text after the `|`, or `null` when the variable has no fallback. */
|
|
9
|
+
readonly fallback: string | null;
|
|
10
|
+
/** The variable exactly as it appears in the copy. */
|
|
11
|
+
readonly raw: string;
|
|
12
|
+
readonly index: number;
|
|
13
|
+
}
|
|
14
|
+
/** Every variable in one text, in the order the patterns find them. */
|
|
15
|
+
export declare const variablesIn: (text: string) => VariableMatch[];
|
|
16
|
+
/**
|
|
17
|
+
* The lead's value for a variable: a built-in field, or a custom field of
|
|
18
|
+
* the same name without regard to case, spaces, underscores or hyphens.
|
|
19
|
+
* `null` when the lead has none or it is blank.
|
|
20
|
+
*/
|
|
21
|
+
export declare const valueOf: (lead: Lead, key: string) => string | null;
|
|
22
|
+
/** Every variable key a lead has a non-empty value for. */
|
|
23
|
+
export declare const keysWithValue: (lead: Lead) => Set<string>;
|
|
24
|
+
export interface Filled {
|
|
25
|
+
readonly text: string;
|
|
26
|
+
/** Variables left as written: no value and no fallback, as the copy writes them. */
|
|
27
|
+
readonly unfilled: readonly string[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* `text` with each variable replaced by the lead's value, or its fallback
|
|
31
|
+
* when the lead has none. A variable with neither is left as written.
|
|
32
|
+
*/
|
|
33
|
+
export declare const fillVariables: (text: string, lead: Lead) => Filled;
|
package/dist/instantly/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EVENT_TYPES,
|
|
3
3
|
instantlyEvents
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-W22SDX6S.js";
|
|
5
5
|
import {
|
|
6
6
|
flatMapPage,
|
|
7
7
|
mapPage,
|
|
@@ -12,10 +12,12 @@ import {
|
|
|
12
12
|
createVendorClient,
|
|
13
13
|
leadStanding,
|
|
14
14
|
listIn,
|
|
15
|
-
normalizeBody,
|
|
16
15
|
toVariant,
|
|
17
16
|
variantKey
|
|
18
|
-
} from "../chunks/chunk-
|
|
17
|
+
} from "../chunks/chunk-MGR6HREO.js";
|
|
18
|
+
import {
|
|
19
|
+
normalizeBody
|
|
20
|
+
} from "../chunks/chunk-53DCVFUB.js";
|
|
19
21
|
import {
|
|
20
22
|
defineNative,
|
|
21
23
|
inBody,
|
package/dist/loader/index.js
CHANGED
package/dist/smartlead/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
toWorkspace,
|
|
14
14
|
unwrap,
|
|
15
15
|
withoutSecrets
|
|
16
|
-
} from "../chunks/chunk-
|
|
16
|
+
} from "../chunks/chunk-PHNQ3WC2.js";
|
|
17
17
|
import {
|
|
18
18
|
flatMapPage,
|
|
19
19
|
mapPage,
|
|
@@ -23,9 +23,11 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
createVendorClient,
|
|
25
25
|
fromOne,
|
|
26
|
-
listIn
|
|
26
|
+
listIn
|
|
27
|
+
} from "../chunks/chunk-MGR6HREO.js";
|
|
28
|
+
import {
|
|
27
29
|
normalizeBody
|
|
28
|
-
} from "../chunks/chunk-
|
|
30
|
+
} from "../chunks/chunk-53DCVFUB.js";
|
|
29
31
|
import {
|
|
30
32
|
defineNative,
|
|
31
33
|
inBody,
|
package/dist/webhooks/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
instantlyEvents
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-W22SDX6S.js";
|
|
4
4
|
import {
|
|
5
5
|
smartleadEvents
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-PHNQ3WC2.js";
|
|
7
7
|
import {
|
|
8
8
|
heyreachEvents
|
|
9
9
|
} from "../chunks/chunk-JWGSB7PT.js";
|
|
10
10
|
import {
|
|
11
11
|
emailbisonEvents
|
|
12
|
-
} from "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-SXGCKCAR.js";
|
|
13
|
+
import "../chunks/chunk-MGR6HREO.js";
|
|
14
|
+
import "../chunks/chunk-53DCVFUB.js";
|
|
14
15
|
import "../chunks/chunk-2D42TQFU.js";
|
|
15
16
|
import "../chunks/chunk-BOWXGMN3.js";
|
|
16
17
|
import {
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { ZodType } from "zod";
|
|
3
|
-
import type { Json } from "./json.ts";
|
|
4
|
-
/** The fields of an object schema, by name. */
|
|
5
|
-
type Fields = Readonly<Record<string, ZodType>>;
|
|
6
|
-
/**
|
|
7
|
-
* The old name of the field `to`. Pass the new field's schema without its
|
|
8
|
-
* default, so leaving the old name out does not set it.
|
|
9
|
-
*/
|
|
10
|
-
export declare const renamed: <Schema extends ZodType>(to: string, base: Schema) => z.ZodOptional<Schema>;
|
|
11
|
-
/** The field names without the deprecated old names. */
|
|
12
|
-
export declare const liveKeys: (fields: Fields) => string[];
|
|
13
|
-
export type Renamed = {
|
|
14
|
-
readonly input: Json | undefined;
|
|
15
|
-
readonly notes: readonly string[];
|
|
16
|
-
} | {
|
|
17
|
-
readonly conflict: {
|
|
18
|
-
readonly from: string;
|
|
19
|
-
readonly to: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* The input with each old name's value moved to its new name, and a note
|
|
24
|
-
* for each old name used. Both names at once is a conflict, since either
|
|
25
|
-
* value could be the one meant.
|
|
26
|
-
*/
|
|
27
|
-
export declare const applyRenames: (fields: Fields, input: Json | undefined) => Renamed;
|
|
28
|
-
export {};
|
|
File without changes
|