@dench.com/cli 3.12.22-staging.1371 → 3.12.23-staging.1392
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/app-sdk.d.ts +47 -13
- package/lib/api-schemas.ts +29 -1
- package/lib/campaign-steps.ts +19 -0
- package/lib/references.generated.json +8 -8
- package/package.json +1 -1
package/app-sdk.d.ts
CHANGED
|
@@ -2886,6 +2886,8 @@ export interface ApiRequests {
|
|
|
2886
2886
|
emailMailboxAccountIds?: string[];
|
|
2887
2887
|
/** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
|
|
2888
2888
|
linkedinAccountIds?: string[];
|
|
2889
|
+
/** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
|
|
2890
|
+
xAccountIds?: string[];
|
|
2889
2891
|
/** IANA timezone for the default Mon-Fri 9-18 send window. */
|
|
2890
2892
|
timezone?: string;
|
|
2891
2893
|
};
|
|
@@ -2918,6 +2920,8 @@ export interface ApiRequests {
|
|
|
2918
2920
|
emailMailboxAccountIds?: string[];
|
|
2919
2921
|
/** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
|
|
2920
2922
|
linkedinAccountIds?: string[];
|
|
2923
|
+
/** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
|
|
2924
|
+
xAccountIds?: string[];
|
|
2921
2925
|
/** Stop a person's remaining steps when they reply. */
|
|
2922
2926
|
stopOnReply?: boolean;
|
|
2923
2927
|
/** Epoch ms; null clears the start. */
|
|
@@ -2953,7 +2957,7 @@ export interface ApiRequests {
|
|
|
2953
2957
|
/** Every step, in send order (a workflow may list them in any order; they are stored in path order). Rejected, not trimmed: a field the step type would drop (onlyIf off email/post-like steps, a body on a visit, reply-in-thread on the first email, condition fields its check ignores), a missing subject or required body, an overlength note/message/InMail subject, out-of-range wait/withdrawal/post-age/acceptance values, {TOKEN} single braces, which would be sent as typed, and workflow paths that don't hold together (duplicate keys, a target that isn't a key or end, a condition or wait_for_connection without both yesNext and noNext, or any other step with them). */
|
|
2954
2958
|
steps: Array<{
|
|
2955
2959
|
/** Step type. condition (If / else) and wait_for_connection (Wait for them to accept) send nothing; they continue on yesNext or noNext and make the campaign a workflow. */
|
|
2956
|
-
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
|
|
2960
|
+
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
|
|
2957
2961
|
/** wait steps: hours to wait before the next step. */
|
|
2958
2962
|
waitHours?: number;
|
|
2959
2963
|
/** Legacy email step sender. Pool campaigns choose senders in emailMailboxAccountIds on the campaign, not on individual steps. */
|
|
@@ -2990,6 +2994,12 @@ export interface ApiRequests {
|
|
|
2990
2994
|
inmailSubject?: string;
|
|
2991
2995
|
/** linkedin_connection only: withdraw a still-pending invitation sent by this campaign after 168-2160 hours (7-90 days). Omitted means off on creation; null turns it off on edit. */
|
|
2992
2996
|
withdrawAfterHours?: number | null;
|
|
2997
|
+
/** Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead. */
|
|
2998
|
+
xAccountId?: string;
|
|
2999
|
+
/** x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed. */
|
|
3000
|
+
xMessageBody?: string;
|
|
3001
|
+
/** x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30). */
|
|
3002
|
+
xMaxPostAgeDays?: number;
|
|
2993
3003
|
/** Workflow steps: this step's id, unique in the campaign, which next, yesNext and noNext point at (not "end"). Left out, one is made. */
|
|
2994
3004
|
key?: string;
|
|
2995
3005
|
/** Workflow steps: where a step that isn't a condition or wait_for_connection goes; left out, the following step: another step's key, or "end" to stop there. Fixed once the campaign launches. */
|
|
@@ -2998,8 +3008,8 @@ export interface ApiRequests {
|
|
|
2998
3008
|
yesNext?: string;
|
|
2999
3009
|
/** Workflow steps: condition and wait_for_connection only, required: where the No (Not accepted) path goes: another step's key, or "end" to stop there. Fixed once the campaign launches. */
|
|
3000
3010
|
noNext?: string;
|
|
3001
|
-
/** condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
|
|
3002
|
-
check?: "linkedin_connected" | "has_email" | "opened_last_email" | "field_value";
|
|
3011
|
+
/** condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
|
|
3012
|
+
check?: "linkedin_connected" | "has_email" | "has_x" | "opened_last_email" | "field_value";
|
|
3003
3013
|
/** condition with check=field_value: the lead field to check, like "Job Title" or "Source" (the campaign itself changes Status, Last touch and LinkedIn connection). Fixed once the campaign launches. */
|
|
3004
3014
|
conditionField?: string;
|
|
3005
3015
|
/** condition with check=field_value: is, is_not, contains, is_empty or is_not_empty (all case-insensitive). Fixed once the campaign launches. */
|
|
@@ -3018,7 +3028,7 @@ export interface ApiRequests {
|
|
|
3018
3028
|
/** The steps to change. Rejected, not trimmed: a field the step type would drop, an overlength note/message/InMail subject, out-of-range wait/withdrawal/post-age/acceptance values, {TOKEN} single braces, and a changed path or If / else check. */
|
|
3019
3029
|
steps: Array<{
|
|
3020
3030
|
/** The step's current type. A launched step's type can't change. */
|
|
3021
|
-
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
|
|
3031
|
+
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
|
|
3022
3032
|
/** wait steps: hours to wait before the next step. */
|
|
3023
3033
|
waitHours?: number;
|
|
3024
3034
|
/** Legacy email step sender. Pool campaigns choose senders in emailMailboxAccountIds on the campaign, not on individual steps. */
|
|
@@ -3055,6 +3065,12 @@ export interface ApiRequests {
|
|
|
3055
3065
|
inmailSubject?: string;
|
|
3056
3066
|
/** linkedin_connection only: withdraw a still-pending invitation sent by this campaign after 168-2160 hours (7-90 days). Omitted means off on creation; null turns it off on edit. */
|
|
3057
3067
|
withdrawAfterHours?: number | null;
|
|
3068
|
+
/** Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead. */
|
|
3069
|
+
xAccountId?: string;
|
|
3070
|
+
/** x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed. */
|
|
3071
|
+
xMessageBody?: string;
|
|
3072
|
+
/** x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30). */
|
|
3073
|
+
xMaxPostAgeDays?: number;
|
|
3058
3074
|
/** Workflow steps: this step's id, unique in the campaign, which next, yesNext and noNext point at (not "end"). Left out, one is made. */
|
|
3059
3075
|
key?: string;
|
|
3060
3076
|
/** Workflow steps: where a step that isn't a condition or wait_for_connection goes; left out, the following step: another step's key, or "end" to stop there. Fixed once the campaign launches. */
|
|
@@ -3063,8 +3079,8 @@ export interface ApiRequests {
|
|
|
3063
3079
|
yesNext?: string;
|
|
3064
3080
|
/** Workflow steps: condition and wait_for_connection only, required: where the No (Not accepted) path goes: another step's key, or "end" to stop there. Fixed once the campaign launches. */
|
|
3065
3081
|
noNext?: string;
|
|
3066
|
-
/** condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
|
|
3067
|
-
check?: "linkedin_connected" | "has_email" | "opened_last_email" | "field_value";
|
|
3082
|
+
/** condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
|
|
3083
|
+
check?: "linkedin_connected" | "has_email" | "has_x" | "opened_last_email" | "field_value";
|
|
3068
3084
|
/** condition with check=field_value: the lead field to check, like "Job Title" or "Source" (the campaign itself changes Status, Last touch and LinkedIn connection). Fixed once the campaign launches. */
|
|
3069
3085
|
conditionField?: string;
|
|
3070
3086
|
/** condition with check=field_value: is, is_not, contains, is_empty or is_not_empty (all case-insensitive). Fixed once the campaign launches. */
|
|
@@ -7076,6 +7092,8 @@ export interface ApiResponses {
|
|
|
7076
7092
|
emailMailboxAccountIds?: string[];
|
|
7077
7093
|
/** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
|
|
7078
7094
|
linkedinAccountIds?: string[];
|
|
7095
|
+
/** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
|
|
7096
|
+
xAccountIds?: string[];
|
|
7079
7097
|
timezone?: string;
|
|
7080
7098
|
startsAt?: number;
|
|
7081
7099
|
endsAt?: number;
|
|
@@ -7143,6 +7161,8 @@ export interface ApiResponses {
|
|
|
7143
7161
|
emailMailboxAccountIds?: string[];
|
|
7144
7162
|
/** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
|
|
7145
7163
|
linkedinAccountIds?: string[];
|
|
7164
|
+
/** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
|
|
7165
|
+
xAccountIds?: string[];
|
|
7146
7166
|
timezone?: string;
|
|
7147
7167
|
startsAt?: number;
|
|
7148
7168
|
endsAt?: number;
|
|
@@ -7343,6 +7363,8 @@ export interface ApiResponses {
|
|
|
7343
7363
|
emailMailboxAccountIds?: string[];
|
|
7344
7364
|
/** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
|
|
7345
7365
|
linkedinAccountIds?: string[];
|
|
7366
|
+
/** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
|
|
7367
|
+
xAccountIds?: string[];
|
|
7346
7368
|
timezone?: string;
|
|
7347
7369
|
startsAt?: number;
|
|
7348
7370
|
endsAt?: number;
|
|
@@ -7379,7 +7401,7 @@ export interface ApiResponses {
|
|
|
7379
7401
|
/** The steps in order, each with its _id. condition and wait_for_connection steps also carry a readable label. */
|
|
7380
7402
|
steps: Array<{
|
|
7381
7403
|
/** Step type. condition (If / else) and wait_for_connection (Wait for them to accept) send nothing; they continue on yesNext or noNext and make the campaign a workflow. */
|
|
7382
|
-
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
|
|
7404
|
+
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
|
|
7383
7405
|
/** wait steps: hours to wait before the next step. */
|
|
7384
7406
|
waitHours?: number;
|
|
7385
7407
|
/** Legacy email step sender. Pool campaigns choose senders in emailMailboxAccountIds on the campaign, not on individual steps. */
|
|
@@ -7416,6 +7438,12 @@ export interface ApiResponses {
|
|
|
7416
7438
|
inmailSubject?: string;
|
|
7417
7439
|
/** linkedin_connection only: withdraw a still-pending invitation sent by this campaign after 168-2160 hours (7-90 days). Omitted means off on creation; null turns it off on edit. */
|
|
7418
7440
|
withdrawAfterHours?: number | null;
|
|
7441
|
+
/** Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead. */
|
|
7442
|
+
xAccountId?: string;
|
|
7443
|
+
/** x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed. */
|
|
7444
|
+
xMessageBody?: string;
|
|
7445
|
+
/** x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30). */
|
|
7446
|
+
xMaxPostAgeDays?: number;
|
|
7419
7447
|
/** Workflow steps: this step's id, unique in the campaign, which next, yesNext and noNext point at (not "end"). Left out, one is made. */
|
|
7420
7448
|
key?: string;
|
|
7421
7449
|
/** Workflow steps: where a step that isn't a condition or wait_for_connection goes; left out, the following step: another step's key, or "end" to stop there. Fixed once the campaign launches. */
|
|
@@ -7424,8 +7452,8 @@ export interface ApiResponses {
|
|
|
7424
7452
|
yesNext?: string;
|
|
7425
7453
|
/** Workflow steps: condition and wait_for_connection only, required: where the No (Not accepted) path goes: another step's key, or "end" to stop there. Fixed once the campaign launches. */
|
|
7426
7454
|
noNext?: string;
|
|
7427
|
-
/** condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
|
|
7428
|
-
check?: "linkedin_connected" | "has_email" | "opened_last_email" | "field_value";
|
|
7455
|
+
/** condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
|
|
7456
|
+
check?: "linkedin_connected" | "has_email" | "has_x" | "opened_last_email" | "field_value";
|
|
7429
7457
|
/** condition with check=field_value: the lead field to check, like "Job Title" or "Source" (the campaign itself changes Status, Last touch and LinkedIn connection). Fixed once the campaign launches. */
|
|
7430
7458
|
conditionField?: string;
|
|
7431
7459
|
/** condition with check=field_value: is, is_not, contains, is_empty or is_not_empty (all case-insensitive). Fixed once the campaign launches. */
|
|
@@ -7772,7 +7800,7 @@ export interface ApiResponses {
|
|
|
7772
7800
|
/** The campaign's steps in order, each with its _id. */
|
|
7773
7801
|
steps: Array<{
|
|
7774
7802
|
/** Step type. condition (If / else) and wait_for_connection (Wait for them to accept) send nothing; they continue on yesNext or noNext and make the campaign a workflow. */
|
|
7775
|
-
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
|
|
7803
|
+
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
|
|
7776
7804
|
/** wait steps: hours to wait before the next step. */
|
|
7777
7805
|
waitHours?: number;
|
|
7778
7806
|
/** Legacy email step sender. Pool campaigns choose senders in emailMailboxAccountIds on the campaign, not on individual steps. */
|
|
@@ -7809,6 +7837,12 @@ export interface ApiResponses {
|
|
|
7809
7837
|
inmailSubject?: string;
|
|
7810
7838
|
/** linkedin_connection only: withdraw a still-pending invitation sent by this campaign after 168-2160 hours (7-90 days). Omitted means off on creation; null turns it off on edit. */
|
|
7811
7839
|
withdrawAfterHours?: number | null;
|
|
7840
|
+
/** Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead. */
|
|
7841
|
+
xAccountId?: string;
|
|
7842
|
+
/** x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed. */
|
|
7843
|
+
xMessageBody?: string;
|
|
7844
|
+
/** x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30). */
|
|
7845
|
+
xMaxPostAgeDays?: number;
|
|
7812
7846
|
/** Workflow steps: this step's id, unique in the campaign, which next, yesNext and noNext point at (not "end"). Left out, one is made. */
|
|
7813
7847
|
key?: string;
|
|
7814
7848
|
/** Workflow steps: where a step that isn't a condition or wait_for_connection goes; left out, the following step: another step's key, or "end" to stop there. Fixed once the campaign launches. */
|
|
@@ -7817,8 +7851,8 @@ export interface ApiResponses {
|
|
|
7817
7851
|
yesNext?: string;
|
|
7818
7852
|
/** Workflow steps: condition and wait_for_connection only, required: where the No (Not accepted) path goes: another step's key, or "end" to stop there. Fixed once the campaign launches. */
|
|
7819
7853
|
noNext?: string;
|
|
7820
|
-
/** condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
|
|
7821
|
-
check?: "linkedin_connected" | "has_email" | "opened_last_email" | "field_value";
|
|
7854
|
+
/** condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
|
|
7855
|
+
check?: "linkedin_connected" | "has_email" | "has_x" | "opened_last_email" | "field_value";
|
|
7822
7856
|
/** condition with check=field_value: the lead field to check, like "Job Title" or "Source" (the campaign itself changes Status, Last touch and LinkedIn connection). Fixed once the campaign launches. */
|
|
7823
7857
|
conditionField?: string;
|
|
7824
7858
|
/** condition with check=field_value: is, is_not, contains, is_empty or is_not_empty (all case-insensitive). Fixed once the campaign launches. */
|
|
@@ -7835,7 +7869,7 @@ export interface ApiResponses {
|
|
|
7835
7869
|
/** The step's place, from 0. */
|
|
7836
7870
|
stepIndex: number;
|
|
7837
7871
|
/** Step type. condition (If / else) and wait_for_connection (Wait for them to accept) send nothing; they continue on yesNext or noNext and make the campaign a workflow. */
|
|
7838
|
-
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
|
|
7872
|
+
type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
|
|
7839
7873
|
/** sent: done (a wait that finished is sent too). skipped: see result.reason. retry: will be tried again at retryAt. unknown: needs a look. */
|
|
7840
7874
|
status: "queued" | "running" | "waiting" | "retry" | "sent" | "skipped" | "failed" | "unknown";
|
|
7841
7875
|
scheduledAt?: number;
|
package/lib/api-schemas.ts
CHANGED
|
@@ -478,6 +478,13 @@ const campaignSenderPools = {
|
|
|
478
478
|
.describe(
|
|
479
479
|
"Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured.",
|
|
480
480
|
),
|
|
481
|
+
xAccountIds: z
|
|
482
|
+
.array(z.string().trim().min(1))
|
|
483
|
+
.max(50)
|
|
484
|
+
.optional()
|
|
485
|
+
.describe(
|
|
486
|
+
"Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool.",
|
|
487
|
+
),
|
|
481
488
|
};
|
|
482
489
|
|
|
483
490
|
const campaignLineVariable = z
|
|
@@ -866,6 +873,27 @@ const campaignStepInput = z
|
|
|
866
873
|
.describe(
|
|
867
874
|
`linkedin_connection only: withdraw a still-pending invitation sent by this campaign after ${MIN_WITHDRAW_AFTER_HOURS}-${MAX_WAIT_HOURS} hours (7-90 days). Omitted means off on creation; null turns it off on edit.`,
|
|
868
875
|
),
|
|
876
|
+
xAccountId: z
|
|
877
|
+
.string()
|
|
878
|
+
.optional()
|
|
879
|
+
.describe(
|
|
880
|
+
"Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead.",
|
|
881
|
+
),
|
|
882
|
+
xMessageBody: z
|
|
883
|
+
.string()
|
|
884
|
+
.optional()
|
|
885
|
+
.describe(
|
|
886
|
+
"x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed.",
|
|
887
|
+
),
|
|
888
|
+
xMaxPostAgeDays: z
|
|
889
|
+
.number()
|
|
890
|
+
.int()
|
|
891
|
+
.min(1)
|
|
892
|
+
.max(365)
|
|
893
|
+
.optional()
|
|
894
|
+
.describe(
|
|
895
|
+
"x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30).",
|
|
896
|
+
),
|
|
869
897
|
key: z
|
|
870
898
|
.string()
|
|
871
899
|
.min(1)
|
|
@@ -886,7 +914,7 @@ const campaignStepInput = z
|
|
|
886
914
|
.enum(CONDITION_CHECKS)
|
|
887
915
|
.optional()
|
|
888
916
|
.describe(
|
|
889
|
-
"condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches.",
|
|
917
|
+
"condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches.",
|
|
890
918
|
),
|
|
891
919
|
conditionField: z
|
|
892
920
|
.string()
|
package/lib/campaign-steps.ts
CHANGED
|
@@ -27,6 +27,10 @@ export const STEP_TYPES = [
|
|
|
27
27
|
"linkedin_visit",
|
|
28
28
|
"linkedin_like_post",
|
|
29
29
|
"linkedin_inmail",
|
|
30
|
+
"x_follow",
|
|
31
|
+
"x_like_post",
|
|
32
|
+
"x_reply_post",
|
|
33
|
+
"x_dm",
|
|
30
34
|
"condition",
|
|
31
35
|
"wait_for_connection",
|
|
32
36
|
] as const;
|
|
@@ -41,6 +45,7 @@ export const WORKFLOW_END = "end";
|
|
|
41
45
|
export const CONDITION_CHECKS = [
|
|
42
46
|
"linkedin_connected",
|
|
43
47
|
"has_email",
|
|
48
|
+
"has_x",
|
|
44
49
|
"opened_last_email",
|
|
45
50
|
"field_value",
|
|
46
51
|
] as const;
|
|
@@ -77,6 +82,9 @@ export const STEP_KEYS = [
|
|
|
77
82
|
"likeCount",
|
|
78
83
|
"inmailSubject",
|
|
79
84
|
"withdrawAfterHours",
|
|
85
|
+
"xAccountId",
|
|
86
|
+
"xMessageBody",
|
|
87
|
+
"xMaxPostAgeDays",
|
|
80
88
|
"key",
|
|
81
89
|
"next",
|
|
82
90
|
"yesNext",
|
|
@@ -143,6 +151,10 @@ const FIELDS_BY_TYPE: Record<StepType, readonly string[]> = {
|
|
|
143
151
|
"linkedinMessageBody",
|
|
144
152
|
"inmailSubject",
|
|
145
153
|
],
|
|
154
|
+
x_follow: ["xAccountId"],
|
|
155
|
+
x_like_post: ["xAccountId", "xMaxPostAgeDays"],
|
|
156
|
+
x_reply_post: ["xAccountId", "xMessageBody", "xMaxPostAgeDays"],
|
|
157
|
+
x_dm: ["xAccountId", "xMessageBody"],
|
|
146
158
|
condition: [
|
|
147
159
|
"linkedinAccountId",
|
|
148
160
|
"check",
|
|
@@ -161,6 +173,8 @@ const TEXT_FIELDS = [
|
|
|
161
173
|
"linkedinAccountId",
|
|
162
174
|
"linkedinMessageBody",
|
|
163
175
|
"inmailSubject",
|
|
176
|
+
"xAccountId",
|
|
177
|
+
"xMessageBody",
|
|
164
178
|
"conditionField",
|
|
165
179
|
"conditionValue",
|
|
166
180
|
] as const;
|
|
@@ -171,6 +185,7 @@ const TEMPLATE_FIELDS = [
|
|
|
171
185
|
"emailTextBody",
|
|
172
186
|
"linkedinMessageBody",
|
|
173
187
|
"inmailSubject",
|
|
188
|
+
"xMessageBody",
|
|
174
189
|
] as const;
|
|
175
190
|
|
|
176
191
|
const ONLY_IF = ["always", "connected", "not_connected"];
|
|
@@ -952,6 +967,10 @@ const TYPE_NAMES: Record<StepType, string> = {
|
|
|
952
967
|
linkedin_message: "a LinkedIn message",
|
|
953
968
|
linkedin_like_post: "a post reaction",
|
|
954
969
|
linkedin_inmail: "an InMail",
|
|
970
|
+
x_follow: "an X follow",
|
|
971
|
+
x_like_post: "an X post like",
|
|
972
|
+
x_reply_post: "an X reply",
|
|
973
|
+
x_dm: "an X DM",
|
|
955
974
|
condition: "an If / else",
|
|
956
975
|
wait_for_connection: "a Wait for them to accept",
|
|
957
976
|
};
|