placementt-core 1.400.1261 → 1.400.1263
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/lib/callables/__tests__/outreach.test.js +1 -21
- package/lib/callables/__tests__/outreach.test.js.map +1 -1
- package/lib/callables/outreach.d.ts +11 -121
- package/lib/callables/outreach.js +2 -33
- package/lib/callables/outreach.js.map +1 -1
- package/lib/callables/registry.d.ts +20 -238
- package/lib/typeDefinitions.d.ts +20 -47
- package/package.json +1 -1
- package/src/callables/__tests__/outreach.test.ts +1 -21
- package/src/callables/outreach.ts +2 -33
- package/src/typeDefinitions.ts +20 -48
|
@@ -21,7 +21,7 @@ const samples = {
|
|
|
21
21
|
response: { leadId: "lead1" },
|
|
22
22
|
},
|
|
23
23
|
"outreach-setupWoodpecker": {
|
|
24
|
-
request: { coldCampaigns: { secondary: 11, college: 12 }
|
|
24
|
+
request: { coldCampaigns: { secondary: 11, college: 12 } },
|
|
25
25
|
response: { subscribed: ["campaign_sent"], mailboxes: 5, blacklistQueued: 40 },
|
|
26
26
|
},
|
|
27
27
|
"outreach-migrateWoodpecker": {
|
|
@@ -44,30 +44,10 @@ const samples = {
|
|
|
44
44
|
starts: 50, blocked: [{ urn: 100000, reason: "Trust hold" }],
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
|
-
"outreach-approveSequenceRun": {
|
|
48
|
-
request: { id: "2026-11-03", action: "approve" },
|
|
49
|
-
response: { status: "approved", added: 50 },
|
|
50
|
-
},
|
|
51
47
|
"outreach-setSequenceConfig": {
|
|
52
48
|
request: { dailyBatch: 50, onlyGroups: ["Derby"] },
|
|
53
49
|
response: { saved: true },
|
|
54
50
|
},
|
|
55
|
-
"outreach-saveCustomerSend": {
|
|
56
|
-
request: { name: "Autumn update", campaignId: 44, sendDate: "2026-11-10", packages: ["institutes-one"], products: ["wex"], includeLeads: true },
|
|
57
|
-
response: { id: "c1", recipients: 120, warnings: [] },
|
|
58
|
-
},
|
|
59
|
-
"outreach-testCustomerSend": {
|
|
60
|
-
request: { id: "c1" },
|
|
61
|
-
response: { testedAt: "2026-10-30T10:00:00.000Z" },
|
|
62
|
-
},
|
|
63
|
-
"outreach-approveCustomerSend": {
|
|
64
|
-
request: { id: "c1" },
|
|
65
|
-
response: { date: "2026-11-10", added: false },
|
|
66
|
-
},
|
|
67
|
-
"outreach-cancelCustomerSend": {
|
|
68
|
-
request: { id: "c1" },
|
|
69
|
-
response: { status: "cancelled" },
|
|
70
|
-
},
|
|
71
51
|
"outreach-setFeatures": {
|
|
72
52
|
request: { coldSequence: true, senderSync: false },
|
|
73
53
|
response: { saved: true },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outreach.test.js","sourceRoot":"","sources":["../../../src/callables/__tests__/outreach.test.ts"],"names":[],"mappings":";;AAAA,0CAA8C;AAE9C;yDACyD;AACzD,MAAM,OAAO,GAAmF;IAC5F,yBAAyB,EAAE;QACvB,OAAO,EAAE,EAAC,IAAI,EAAE,CAAC,EAAC,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAC;QACvH,QAAQ,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,sBAAsB,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAC,CAAC,EAAC;KACjJ;IACD,oBAAoB,EAAE;QAClB,OAAO,EAAE,EAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAC;QACzF,QAAQ,EAAE,EAAC,GAAG,EAAE,MAAM,EAAE,MAAM,E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"}
|
|
@@ -237,19 +237,16 @@ export declare const outreachCallables: {
|
|
|
237
237
|
college?: number | undefined;
|
|
238
238
|
secondary?: number | undefined;
|
|
239
239
|
}>>;
|
|
240
|
-
customerCampaignId: z.ZodOptional<z.ZodNumber>;
|
|
241
240
|
}, "strip", z.ZodTypeAny, {
|
|
242
241
|
coldCampaigns?: {
|
|
243
242
|
college?: number | undefined;
|
|
244
243
|
secondary?: number | undefined;
|
|
245
244
|
} | undefined;
|
|
246
|
-
customerCampaignId?: number | undefined;
|
|
247
245
|
}, {
|
|
248
246
|
coldCampaigns?: {
|
|
249
247
|
college?: number | undefined;
|
|
250
248
|
secondary?: number | undefined;
|
|
251
249
|
} | undefined;
|
|
252
|
-
customerCampaignId?: number | undefined;
|
|
253
250
|
}>;
|
|
254
251
|
response: z.ZodObject<{
|
|
255
252
|
subscribed: z.ZodArray<z.ZodString, "many">;
|
|
@@ -544,7 +541,7 @@ export declare const outreachCallables: {
|
|
|
544
541
|
};
|
|
545
542
|
"outreach-runSequence": {
|
|
546
543
|
request: z.ZodObject<{
|
|
547
|
-
/** Preview next week's
|
|
544
|
+
/** Preview next week's campaigns: nothing is made and schools are not touched. */
|
|
548
545
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
549
546
|
}, "strip", z.ZodTypeAny, {
|
|
550
547
|
dryRun?: boolean | undefined;
|
|
@@ -559,14 +556,20 @@ export declare const outreachCallables: {
|
|
|
559
556
|
date: z.ZodString;
|
|
560
557
|
secondary: z.ZodNumber;
|
|
561
558
|
college: z.ZodNumber;
|
|
559
|
+
campaignId: z.ZodOptional<z.ZodNumber>;
|
|
560
|
+
error: z.ZodOptional<z.ZodString>;
|
|
562
561
|
}, "strip", z.ZodTypeAny, {
|
|
563
562
|
date: string;
|
|
564
563
|
college: number;
|
|
565
564
|
secondary: number;
|
|
565
|
+
error?: string | undefined;
|
|
566
|
+
campaignId?: number | undefined;
|
|
566
567
|
}, {
|
|
567
568
|
date: string;
|
|
568
569
|
college: number;
|
|
569
570
|
secondary: number;
|
|
571
|
+
error?: string | undefined;
|
|
572
|
+
campaignId?: number | undefined;
|
|
570
573
|
}>, "many">;
|
|
571
574
|
capacity: z.ZodOptional<z.ZodObject<{
|
|
572
575
|
mailboxes: z.ZodNumber;
|
|
@@ -609,6 +612,8 @@ export declare const outreachCallables: {
|
|
|
609
612
|
date: string;
|
|
610
613
|
college: number;
|
|
611
614
|
secondary: number;
|
|
615
|
+
error?: string | undefined;
|
|
616
|
+
campaignId?: number | undefined;
|
|
612
617
|
}[];
|
|
613
618
|
starts: number;
|
|
614
619
|
skip?: "disabled" | "blackout" | "notSendDay" | undefined;
|
|
@@ -630,6 +635,8 @@ export declare const outreachCallables: {
|
|
|
630
635
|
date: string;
|
|
631
636
|
college: number;
|
|
632
637
|
secondary: number;
|
|
638
|
+
error?: string | undefined;
|
|
639
|
+
campaignId?: number | undefined;
|
|
633
640
|
}[];
|
|
634
641
|
starts: number;
|
|
635
642
|
skip?: "disabled" | "blackout" | "notSendDay" | undefined;
|
|
@@ -642,28 +649,6 @@ export declare const outreachCallables: {
|
|
|
642
649
|
} | undefined;
|
|
643
650
|
}>;
|
|
644
651
|
};
|
|
645
|
-
"outreach-approveSequenceRun": {
|
|
646
|
-
request: z.ZodObject<{
|
|
647
|
-
id: z.ZodString;
|
|
648
|
-
action: z.ZodEnum<["approve", "reject"]>;
|
|
649
|
-
}, "strip", z.ZodTypeAny, {
|
|
650
|
-
id: string;
|
|
651
|
-
action: "reject" | "approve";
|
|
652
|
-
}, {
|
|
653
|
-
id: string;
|
|
654
|
-
action: "reject" | "approve";
|
|
655
|
-
}>;
|
|
656
|
-
response: z.ZodObject<{
|
|
657
|
-
status: z.ZodEnum<["approved", "rejected", "done"]>;
|
|
658
|
-
added: z.ZodNumber;
|
|
659
|
-
}, "strip", z.ZodTypeAny, {
|
|
660
|
-
status: "done" | "rejected" | "approved";
|
|
661
|
-
added: number;
|
|
662
|
-
}, {
|
|
663
|
-
status: "done" | "rejected" | "approved";
|
|
664
|
-
added: number;
|
|
665
|
-
}>;
|
|
666
|
-
};
|
|
667
652
|
"outreach-setSequenceConfig": {
|
|
668
653
|
request: z.ZodObject<{
|
|
669
654
|
onlyGroups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -686,103 +671,10 @@ export declare const outreachCallables: {
|
|
|
686
671
|
saved: boolean;
|
|
687
672
|
}>;
|
|
688
673
|
};
|
|
689
|
-
"outreach-saveCustomerSend": {
|
|
690
|
-
request: z.ZodObject<{
|
|
691
|
-
/** Omit to create one. Only drafts and tested sends can be edited. */
|
|
692
|
-
id: z.ZodOptional<z.ZodString>;
|
|
693
|
-
name: z.ZodString;
|
|
694
|
-
campaignId: z.ZodNumber;
|
|
695
|
-
sendDate: z.ZodString;
|
|
696
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
697
|
-
products: z.ZodOptional<z.ZodArray<z.ZodEnum<["wex", "employerEvents", "destinations"]>, "many">>;
|
|
698
|
-
includeLeads: z.ZodBoolean;
|
|
699
|
-
}, "strip", z.ZodTypeAny, {
|
|
700
|
-
name: string;
|
|
701
|
-
campaignId: number;
|
|
702
|
-
sendDate: string;
|
|
703
|
-
includeLeads: boolean;
|
|
704
|
-
id?: string | undefined;
|
|
705
|
-
packages?: string[] | undefined;
|
|
706
|
-
products?: ("employerEvents" | "wex" | "destinations")[] | undefined;
|
|
707
|
-
}, {
|
|
708
|
-
name: string;
|
|
709
|
-
campaignId: number;
|
|
710
|
-
sendDate: string;
|
|
711
|
-
includeLeads: boolean;
|
|
712
|
-
id?: string | undefined;
|
|
713
|
-
packages?: string[] | undefined;
|
|
714
|
-
products?: ("employerEvents" | "wex" | "destinations")[] | undefined;
|
|
715
|
-
}>;
|
|
716
|
-
response: z.ZodObject<{
|
|
717
|
-
id: z.ZodString;
|
|
718
|
-
recipients: z.ZodNumber;
|
|
719
|
-
warnings: z.ZodArray<z.ZodString, "many">;
|
|
720
|
-
}, "strip", z.ZodTypeAny, {
|
|
721
|
-
id: string;
|
|
722
|
-
recipients: number;
|
|
723
|
-
warnings: string[];
|
|
724
|
-
}, {
|
|
725
|
-
id: string;
|
|
726
|
-
recipients: number;
|
|
727
|
-
warnings: string[];
|
|
728
|
-
}>;
|
|
729
|
-
};
|
|
730
|
-
"outreach-testCustomerSend": {
|
|
731
|
-
request: z.ZodObject<{
|
|
732
|
-
id: z.ZodString;
|
|
733
|
-
}, "strip", z.ZodTypeAny, {
|
|
734
|
-
id: string;
|
|
735
|
-
}, {
|
|
736
|
-
id: string;
|
|
737
|
-
}>;
|
|
738
|
-
response: z.ZodObject<{
|
|
739
|
-
testedAt: z.ZodString;
|
|
740
|
-
}, "strip", z.ZodTypeAny, {
|
|
741
|
-
testedAt: string;
|
|
742
|
-
}, {
|
|
743
|
-
testedAt: string;
|
|
744
|
-
}>;
|
|
745
|
-
};
|
|
746
|
-
"outreach-approveCustomerSend": {
|
|
747
|
-
request: z.ZodObject<{
|
|
748
|
-
id: z.ZodString;
|
|
749
|
-
}, "strip", z.ZodTypeAny, {
|
|
750
|
-
id: string;
|
|
751
|
-
}, {
|
|
752
|
-
id: string;
|
|
753
|
-
}>;
|
|
754
|
-
response: z.ZodObject<{
|
|
755
|
-
date: z.ZodString;
|
|
756
|
-
added: z.ZodBoolean;
|
|
757
|
-
}, "strip", z.ZodTypeAny, {
|
|
758
|
-
added: boolean;
|
|
759
|
-
date: string;
|
|
760
|
-
}, {
|
|
761
|
-
added: boolean;
|
|
762
|
-
date: string;
|
|
763
|
-
}>;
|
|
764
|
-
};
|
|
765
|
-
"outreach-cancelCustomerSend": {
|
|
766
|
-
request: z.ZodObject<{
|
|
767
|
-
id: z.ZodString;
|
|
768
|
-
}, "strip", z.ZodTypeAny, {
|
|
769
|
-
id: string;
|
|
770
|
-
}, {
|
|
771
|
-
id: string;
|
|
772
|
-
}>;
|
|
773
|
-
response: z.ZodObject<{
|
|
774
|
-
status: z.ZodEnum<["cancelled"]>;
|
|
775
|
-
}, "strip", z.ZodTypeAny, {
|
|
776
|
-
status: "cancelled";
|
|
777
|
-
}, {
|
|
778
|
-
status: "cancelled";
|
|
779
|
-
}>;
|
|
780
|
-
};
|
|
781
674
|
"outreach-setFeatures": {
|
|
782
675
|
request: z.ZodObject<{
|
|
783
676
|
coldSequence: z.ZodOptional<z.ZodBoolean>;
|
|
784
677
|
monthlyEmails: z.ZodOptional<z.ZodBoolean>;
|
|
785
|
-
customerEmails: z.ZodOptional<z.ZodBoolean>;
|
|
786
678
|
replyPause: z.ZodOptional<z.ZodBoolean>;
|
|
787
679
|
replyTriage: z.ZodOptional<z.ZodBoolean>;
|
|
788
680
|
statusSync: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -793,7 +685,6 @@ export declare const outreachCallables: {
|
|
|
793
685
|
autoSend?: boolean | undefined;
|
|
794
686
|
coldSequence?: boolean | undefined;
|
|
795
687
|
monthlyEmails?: boolean | undefined;
|
|
796
|
-
customerEmails?: boolean | undefined;
|
|
797
688
|
replyPause?: boolean | undefined;
|
|
798
689
|
replyTriage?: boolean | undefined;
|
|
799
690
|
statusSync?: boolean | undefined;
|
|
@@ -802,7 +693,6 @@ export declare const outreachCallables: {
|
|
|
802
693
|
autoSend?: boolean | undefined;
|
|
803
694
|
coldSequence?: boolean | undefined;
|
|
804
695
|
monthlyEmails?: boolean | undefined;
|
|
805
|
-
customerEmails?: boolean | undefined;
|
|
806
696
|
replyPause?: boolean | undefined;
|
|
807
697
|
replyTriage?: boolean | undefined;
|
|
808
698
|
statusSync?: boolean | undefined;
|
|
@@ -105,7 +105,6 @@ exports.outreachCallables = {
|
|
|
105
105
|
"outreach-setupWoodpecker": {
|
|
106
106
|
request: zod_1.z.object({
|
|
107
107
|
coldCampaigns: zod_1.z.object({ secondary: zod_1.z.number().int().optional(), college: zod_1.z.number().int().optional() }).optional(),
|
|
108
|
-
customerCampaignId: zod_1.z.number().int().optional(),
|
|
109
108
|
}),
|
|
110
109
|
response: zod_1.z.object({
|
|
111
110
|
subscribed: zod_1.z.array(zod_1.z.string()),
|
|
@@ -190,23 +189,19 @@ exports.outreachCallables = {
|
|
|
190
189
|
},
|
|
191
190
|
"outreach-runSequence": {
|
|
192
191
|
request: zod_1.z.object({
|
|
193
|
-
/** Preview next week's
|
|
192
|
+
/** Preview next week's campaigns: nothing is made and schools are not touched. */
|
|
194
193
|
dryRun: zod_1.z.boolean().optional(),
|
|
195
194
|
}),
|
|
196
195
|
response: zod_1.z.object({
|
|
197
196
|
date: isoDate,
|
|
198
197
|
dryRun: zod_1.z.boolean(),
|
|
199
198
|
skip: zod_1.z.enum(["disabled", "blackout", "notSendDay"]).optional(),
|
|
200
|
-
tranches: zod_1.z.array(zod_1.z.object({ date: isoDate, secondary: zod_1.z.number(), college: zod_1.z.number() })),
|
|
199
|
+
tranches: zod_1.z.array(zod_1.z.object({ date: isoDate, secondary: zod_1.z.number(), college: zod_1.z.number(), campaignId: zod_1.z.number().optional(), error: zod_1.z.string().optional() })),
|
|
201
200
|
capacity: capacity.optional(),
|
|
202
201
|
starts: zod_1.z.number(),
|
|
203
202
|
blocked: zod_1.z.array(zod_1.z.object({ urn: zod_1.z.number(), reason: zod_1.z.string() })),
|
|
204
203
|
}),
|
|
205
204
|
},
|
|
206
|
-
"outreach-approveSequenceRun": {
|
|
207
|
-
request: zod_1.z.object({ id: isoDate, action: zod_1.z.enum(["approve", "reject"]) }),
|
|
208
|
-
response: zod_1.z.object({ status: zod_1.z.enum(["approved", "rejected", "done"]), added: zod_1.z.number() }),
|
|
209
|
-
},
|
|
210
205
|
"outreach-setSequenceConfig": {
|
|
211
206
|
request: zod_1.z.object({
|
|
212
207
|
onlyGroups: zod_1.z.array(zod_1.z.string()).optional(),
|
|
@@ -215,36 +210,10 @@ exports.outreachCallables = {
|
|
|
215
210
|
}),
|
|
216
211
|
response: zod_1.z.object({ saved: zod_1.z.boolean() }),
|
|
217
212
|
},
|
|
218
|
-
"outreach-saveCustomerSend": {
|
|
219
|
-
request: zod_1.z.object({
|
|
220
|
-
/** Omit to create one. Only drafts and tested sends can be edited. */
|
|
221
|
-
id: zod_1.z.string().optional(),
|
|
222
|
-
name: zod_1.z.string().trim().min(1),
|
|
223
|
-
campaignId: zod_1.z.number().int(),
|
|
224
|
-
sendDate: isoDate,
|
|
225
|
-
packages: zod_1.z.array(zod_1.z.string()).optional(),
|
|
226
|
-
products: zod_1.z.array(zod_1.z.enum(["wex", "employerEvents", "destinations"])).optional(),
|
|
227
|
-
includeLeads: zod_1.z.boolean(),
|
|
228
|
-
}),
|
|
229
|
-
response: zod_1.z.object({ id: zod_1.z.string(), recipients: zod_1.z.number(), warnings: zod_1.z.array(zod_1.z.string()) }),
|
|
230
|
-
},
|
|
231
|
-
"outreach-testCustomerSend": {
|
|
232
|
-
request: zod_1.z.object({ id: zod_1.z.string() }),
|
|
233
|
-
response: zod_1.z.object({ testedAt: zod_1.z.string() }),
|
|
234
|
-
},
|
|
235
|
-
"outreach-approveCustomerSend": {
|
|
236
|
-
request: zod_1.z.object({ id: zod_1.z.string() }),
|
|
237
|
-
response: zod_1.z.object({ date: isoDate, added: zod_1.z.boolean() }),
|
|
238
|
-
},
|
|
239
|
-
"outreach-cancelCustomerSend": {
|
|
240
|
-
request: zod_1.z.object({ id: zod_1.z.string() }),
|
|
241
|
-
response: zod_1.z.object({ status: zod_1.z.enum(["cancelled"]) }),
|
|
242
|
-
},
|
|
243
213
|
"outreach-setFeatures": {
|
|
244
214
|
request: zod_1.z.object({
|
|
245
215
|
coldSequence: zod_1.z.boolean().optional(),
|
|
246
216
|
monthlyEmails: zod_1.z.boolean().optional(),
|
|
247
|
-
customerEmails: zod_1.z.boolean().optional(),
|
|
248
217
|
replyPause: zod_1.z.boolean().optional(),
|
|
249
218
|
replyTriage: zod_1.z.boolean().optional(),
|
|
250
219
|
statusSync: zod_1.z.boolean().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outreach.js","sourceRoot":"","sources":["../../src/callables/outreach.ts"],"names":[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AE,OAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAC,CAAC,CAAC;YAC5E,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;YACvB,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE;YAC9B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;YAClB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,EAAC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,EAAC,CAAC;SAClE,CAAC;KACL;IACD,0FAA0F;IAC1F,qBAAqB,EAAE;QACnB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,EAAC,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAC,CAAC;QACnD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;YACf,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;YACnB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;YACxB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;SACxB,CAAC;KACL;CACoB,CAAC"}
|
|
@@ -790,19 +790,16 @@ export declare const allCallables: {
|
|
|
790
790
|
college?: number | undefined;
|
|
791
791
|
secondary?: number | undefined;
|
|
792
792
|
}>>;
|
|
793
|
-
customerCampaignId: z.ZodOptional<z.ZodNumber>;
|
|
794
793
|
}, "strip", z.ZodTypeAny, {
|
|
795
794
|
coldCampaigns?: {
|
|
796
795
|
college?: number | undefined;
|
|
797
796
|
secondary?: number | undefined;
|
|
798
797
|
} | undefined;
|
|
799
|
-
customerCampaignId?: number | undefined;
|
|
800
798
|
}, {
|
|
801
799
|
coldCampaigns?: {
|
|
802
800
|
college?: number | undefined;
|
|
803
801
|
secondary?: number | undefined;
|
|
804
802
|
} | undefined;
|
|
805
|
-
customerCampaignId?: number | undefined;
|
|
806
803
|
}>;
|
|
807
804
|
response: z.ZodObject<{
|
|
808
805
|
subscribed: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1101,14 +1098,20 @@ export declare const allCallables: {
|
|
|
1101
1098
|
date: z.ZodString;
|
|
1102
1099
|
secondary: z.ZodNumber;
|
|
1103
1100
|
college: z.ZodNumber;
|
|
1101
|
+
campaignId: z.ZodOptional<z.ZodNumber>;
|
|
1102
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1104
1103
|
}, "strip", z.ZodTypeAny, {
|
|
1105
1104
|
date: string;
|
|
1106
1105
|
college: number;
|
|
1107
1106
|
secondary: number;
|
|
1107
|
+
error?: string | undefined;
|
|
1108
|
+
campaignId?: number | undefined;
|
|
1108
1109
|
}, {
|
|
1109
1110
|
date: string;
|
|
1110
1111
|
college: number;
|
|
1111
1112
|
secondary: number;
|
|
1113
|
+
error?: string | undefined;
|
|
1114
|
+
campaignId?: number | undefined;
|
|
1112
1115
|
}>, "many">;
|
|
1113
1116
|
capacity: z.ZodOptional<z.ZodObject<{
|
|
1114
1117
|
mailboxes: z.ZodNumber;
|
|
@@ -1151,6 +1154,8 @@ export declare const allCallables: {
|
|
|
1151
1154
|
date: string;
|
|
1152
1155
|
college: number;
|
|
1153
1156
|
secondary: number;
|
|
1157
|
+
error?: string | undefined;
|
|
1158
|
+
campaignId?: number | undefined;
|
|
1154
1159
|
}[];
|
|
1155
1160
|
starts: number;
|
|
1156
1161
|
skip?: "disabled" | "blackout" | "notSendDay" | undefined;
|
|
@@ -1172,6 +1177,8 @@ export declare const allCallables: {
|
|
|
1172
1177
|
date: string;
|
|
1173
1178
|
college: number;
|
|
1174
1179
|
secondary: number;
|
|
1180
|
+
error?: string | undefined;
|
|
1181
|
+
campaignId?: number | undefined;
|
|
1175
1182
|
}[];
|
|
1176
1183
|
starts: number;
|
|
1177
1184
|
skip?: "disabled" | "blackout" | "notSendDay" | undefined;
|
|
@@ -1184,28 +1191,6 @@ export declare const allCallables: {
|
|
|
1184
1191
|
} | undefined;
|
|
1185
1192
|
}>;
|
|
1186
1193
|
};
|
|
1187
|
-
"outreach-approveSequenceRun": {
|
|
1188
|
-
request: z.ZodObject<{
|
|
1189
|
-
id: z.ZodString;
|
|
1190
|
-
action: z.ZodEnum<["approve", "reject"]>;
|
|
1191
|
-
}, "strip", z.ZodTypeAny, {
|
|
1192
|
-
id: string;
|
|
1193
|
-
action: "reject" | "approve";
|
|
1194
|
-
}, {
|
|
1195
|
-
id: string;
|
|
1196
|
-
action: "reject" | "approve";
|
|
1197
|
-
}>;
|
|
1198
|
-
response: z.ZodObject<{
|
|
1199
|
-
status: z.ZodEnum<["approved", "rejected", "done"]>;
|
|
1200
|
-
added: z.ZodNumber;
|
|
1201
|
-
}, "strip", z.ZodTypeAny, {
|
|
1202
|
-
status: "done" | "rejected" | "approved";
|
|
1203
|
-
added: number;
|
|
1204
|
-
}, {
|
|
1205
|
-
status: "done" | "rejected" | "approved";
|
|
1206
|
-
added: number;
|
|
1207
|
-
}>;
|
|
1208
|
-
};
|
|
1209
1194
|
"outreach-setSequenceConfig": {
|
|
1210
1195
|
request: z.ZodObject<{
|
|
1211
1196
|
onlyGroups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1228,102 +1213,10 @@ export declare const allCallables: {
|
|
|
1228
1213
|
saved: boolean;
|
|
1229
1214
|
}>;
|
|
1230
1215
|
};
|
|
1231
|
-
"outreach-saveCustomerSend": {
|
|
1232
|
-
request: z.ZodObject<{
|
|
1233
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1234
|
-
name: z.ZodString;
|
|
1235
|
-
campaignId: z.ZodNumber;
|
|
1236
|
-
sendDate: z.ZodString;
|
|
1237
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1238
|
-
products: z.ZodOptional<z.ZodArray<z.ZodEnum<["wex", "employerEvents", "destinations"]>, "many">>;
|
|
1239
|
-
includeLeads: z.ZodBoolean;
|
|
1240
|
-
}, "strip", z.ZodTypeAny, {
|
|
1241
|
-
name: string;
|
|
1242
|
-
campaignId: number;
|
|
1243
|
-
sendDate: string;
|
|
1244
|
-
includeLeads: boolean;
|
|
1245
|
-
id?: string | undefined;
|
|
1246
|
-
packages?: string[] | undefined;
|
|
1247
|
-
products?: ("employerEvents" | "wex" | "destinations")[] | undefined;
|
|
1248
|
-
}, {
|
|
1249
|
-
name: string;
|
|
1250
|
-
campaignId: number;
|
|
1251
|
-
sendDate: string;
|
|
1252
|
-
includeLeads: boolean;
|
|
1253
|
-
id?: string | undefined;
|
|
1254
|
-
packages?: string[] | undefined;
|
|
1255
|
-
products?: ("employerEvents" | "wex" | "destinations")[] | undefined;
|
|
1256
|
-
}>;
|
|
1257
|
-
response: z.ZodObject<{
|
|
1258
|
-
id: z.ZodString;
|
|
1259
|
-
recipients: z.ZodNumber;
|
|
1260
|
-
warnings: z.ZodArray<z.ZodString, "many">;
|
|
1261
|
-
}, "strip", z.ZodTypeAny, {
|
|
1262
|
-
id: string;
|
|
1263
|
-
recipients: number;
|
|
1264
|
-
warnings: string[];
|
|
1265
|
-
}, {
|
|
1266
|
-
id: string;
|
|
1267
|
-
recipients: number;
|
|
1268
|
-
warnings: string[];
|
|
1269
|
-
}>;
|
|
1270
|
-
};
|
|
1271
|
-
"outreach-testCustomerSend": {
|
|
1272
|
-
request: z.ZodObject<{
|
|
1273
|
-
id: z.ZodString;
|
|
1274
|
-
}, "strip", z.ZodTypeAny, {
|
|
1275
|
-
id: string;
|
|
1276
|
-
}, {
|
|
1277
|
-
id: string;
|
|
1278
|
-
}>;
|
|
1279
|
-
response: z.ZodObject<{
|
|
1280
|
-
testedAt: z.ZodString;
|
|
1281
|
-
}, "strip", z.ZodTypeAny, {
|
|
1282
|
-
testedAt: string;
|
|
1283
|
-
}, {
|
|
1284
|
-
testedAt: string;
|
|
1285
|
-
}>;
|
|
1286
|
-
};
|
|
1287
|
-
"outreach-approveCustomerSend": {
|
|
1288
|
-
request: z.ZodObject<{
|
|
1289
|
-
id: z.ZodString;
|
|
1290
|
-
}, "strip", z.ZodTypeAny, {
|
|
1291
|
-
id: string;
|
|
1292
|
-
}, {
|
|
1293
|
-
id: string;
|
|
1294
|
-
}>;
|
|
1295
|
-
response: z.ZodObject<{
|
|
1296
|
-
date: z.ZodString;
|
|
1297
|
-
added: z.ZodBoolean;
|
|
1298
|
-
}, "strip", z.ZodTypeAny, {
|
|
1299
|
-
added: boolean;
|
|
1300
|
-
date: string;
|
|
1301
|
-
}, {
|
|
1302
|
-
added: boolean;
|
|
1303
|
-
date: string;
|
|
1304
|
-
}>;
|
|
1305
|
-
};
|
|
1306
|
-
"outreach-cancelCustomerSend": {
|
|
1307
|
-
request: z.ZodObject<{
|
|
1308
|
-
id: z.ZodString;
|
|
1309
|
-
}, "strip", z.ZodTypeAny, {
|
|
1310
|
-
id: string;
|
|
1311
|
-
}, {
|
|
1312
|
-
id: string;
|
|
1313
|
-
}>;
|
|
1314
|
-
response: z.ZodObject<{
|
|
1315
|
-
status: z.ZodEnum<["cancelled"]>;
|
|
1316
|
-
}, "strip", z.ZodTypeAny, {
|
|
1317
|
-
status: "cancelled";
|
|
1318
|
-
}, {
|
|
1319
|
-
status: "cancelled";
|
|
1320
|
-
}>;
|
|
1321
|
-
};
|
|
1322
1216
|
"outreach-setFeatures": {
|
|
1323
1217
|
request: z.ZodObject<{
|
|
1324
1218
|
coldSequence: z.ZodOptional<z.ZodBoolean>;
|
|
1325
1219
|
monthlyEmails: z.ZodOptional<z.ZodBoolean>;
|
|
1326
|
-
customerEmails: z.ZodOptional<z.ZodBoolean>;
|
|
1327
1220
|
replyPause: z.ZodOptional<z.ZodBoolean>;
|
|
1328
1221
|
replyTriage: z.ZodOptional<z.ZodBoolean>;
|
|
1329
1222
|
statusSync: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1333,7 +1226,6 @@ export declare const allCallables: {
|
|
|
1333
1226
|
autoSend?: boolean | undefined;
|
|
1334
1227
|
coldSequence?: boolean | undefined;
|
|
1335
1228
|
monthlyEmails?: boolean | undefined;
|
|
1336
|
-
customerEmails?: boolean | undefined;
|
|
1337
1229
|
replyPause?: boolean | undefined;
|
|
1338
1230
|
replyTriage?: boolean | undefined;
|
|
1339
1231
|
statusSync?: boolean | undefined;
|
|
@@ -1342,7 +1234,6 @@ export declare const allCallables: {
|
|
|
1342
1234
|
autoSend?: boolean | undefined;
|
|
1343
1235
|
coldSequence?: boolean | undefined;
|
|
1344
1236
|
monthlyEmails?: boolean | undefined;
|
|
1345
|
-
customerEmails?: boolean | undefined;
|
|
1346
1237
|
replyPause?: boolean | undefined;
|
|
1347
1238
|
replyTriage?: boolean | undefined;
|
|
1348
1239
|
statusSync?: boolean | undefined;
|
|
@@ -7107,19 +6998,16 @@ export declare const callableGroups: {
|
|
|
7107
6998
|
college?: number | undefined;
|
|
7108
6999
|
secondary?: number | undefined;
|
|
7109
7000
|
}>>;
|
|
7110
|
-
customerCampaignId: z.ZodOptional<z.ZodNumber>;
|
|
7111
7001
|
}, "strip", z.ZodTypeAny, {
|
|
7112
7002
|
coldCampaigns?: {
|
|
7113
7003
|
college?: number | undefined;
|
|
7114
7004
|
secondary?: number | undefined;
|
|
7115
7005
|
} | undefined;
|
|
7116
|
-
customerCampaignId?: number | undefined;
|
|
7117
7006
|
}, {
|
|
7118
7007
|
coldCampaigns?: {
|
|
7119
7008
|
college?: number | undefined;
|
|
7120
7009
|
secondary?: number | undefined;
|
|
7121
7010
|
} | undefined;
|
|
7122
|
-
customerCampaignId?: number | undefined;
|
|
7123
7011
|
}>;
|
|
7124
7012
|
response: z.ZodObject<{
|
|
7125
7013
|
subscribed: z.ZodArray<z.ZodString, "many">;
|
|
@@ -7418,14 +7306,20 @@ export declare const callableGroups: {
|
|
|
7418
7306
|
date: z.ZodString;
|
|
7419
7307
|
secondary: z.ZodNumber;
|
|
7420
7308
|
college: z.ZodNumber;
|
|
7309
|
+
campaignId: z.ZodOptional<z.ZodNumber>;
|
|
7310
|
+
error: z.ZodOptional<z.ZodString>;
|
|
7421
7311
|
}, "strip", z.ZodTypeAny, {
|
|
7422
7312
|
date: string;
|
|
7423
7313
|
college: number;
|
|
7424
7314
|
secondary: number;
|
|
7315
|
+
error?: string | undefined;
|
|
7316
|
+
campaignId?: number | undefined;
|
|
7425
7317
|
}, {
|
|
7426
7318
|
date: string;
|
|
7427
7319
|
college: number;
|
|
7428
7320
|
secondary: number;
|
|
7321
|
+
error?: string | undefined;
|
|
7322
|
+
campaignId?: number | undefined;
|
|
7429
7323
|
}>, "many">;
|
|
7430
7324
|
capacity: z.ZodOptional<z.ZodObject<{
|
|
7431
7325
|
mailboxes: z.ZodNumber;
|
|
@@ -7468,6 +7362,8 @@ export declare const callableGroups: {
|
|
|
7468
7362
|
date: string;
|
|
7469
7363
|
college: number;
|
|
7470
7364
|
secondary: number;
|
|
7365
|
+
error?: string | undefined;
|
|
7366
|
+
campaignId?: number | undefined;
|
|
7471
7367
|
}[];
|
|
7472
7368
|
starts: number;
|
|
7473
7369
|
skip?: "disabled" | "blackout" | "notSendDay" | undefined;
|
|
@@ -7489,6 +7385,8 @@ export declare const callableGroups: {
|
|
|
7489
7385
|
date: string;
|
|
7490
7386
|
college: number;
|
|
7491
7387
|
secondary: number;
|
|
7388
|
+
error?: string | undefined;
|
|
7389
|
+
campaignId?: number | undefined;
|
|
7492
7390
|
}[];
|
|
7493
7391
|
starts: number;
|
|
7494
7392
|
skip?: "disabled" | "blackout" | "notSendDay" | undefined;
|
|
@@ -7501,28 +7399,6 @@ export declare const callableGroups: {
|
|
|
7501
7399
|
} | undefined;
|
|
7502
7400
|
}>;
|
|
7503
7401
|
};
|
|
7504
|
-
"outreach-approveSequenceRun": {
|
|
7505
|
-
request: z.ZodObject<{
|
|
7506
|
-
id: z.ZodString;
|
|
7507
|
-
action: z.ZodEnum<["approve", "reject"]>;
|
|
7508
|
-
}, "strip", z.ZodTypeAny, {
|
|
7509
|
-
id: string;
|
|
7510
|
-
action: "reject" | "approve";
|
|
7511
|
-
}, {
|
|
7512
|
-
id: string;
|
|
7513
|
-
action: "reject" | "approve";
|
|
7514
|
-
}>;
|
|
7515
|
-
response: z.ZodObject<{
|
|
7516
|
-
status: z.ZodEnum<["approved", "rejected", "done"]>;
|
|
7517
|
-
added: z.ZodNumber;
|
|
7518
|
-
}, "strip", z.ZodTypeAny, {
|
|
7519
|
-
status: "done" | "rejected" | "approved";
|
|
7520
|
-
added: number;
|
|
7521
|
-
}, {
|
|
7522
|
-
status: "done" | "rejected" | "approved";
|
|
7523
|
-
added: number;
|
|
7524
|
-
}>;
|
|
7525
|
-
};
|
|
7526
7402
|
"outreach-setSequenceConfig": {
|
|
7527
7403
|
request: z.ZodObject<{
|
|
7528
7404
|
onlyGroups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -7545,102 +7421,10 @@ export declare const callableGroups: {
|
|
|
7545
7421
|
saved: boolean;
|
|
7546
7422
|
}>;
|
|
7547
7423
|
};
|
|
7548
|
-
"outreach-saveCustomerSend": {
|
|
7549
|
-
request: z.ZodObject<{
|
|
7550
|
-
id: z.ZodOptional<z.ZodString>;
|
|
7551
|
-
name: z.ZodString;
|
|
7552
|
-
campaignId: z.ZodNumber;
|
|
7553
|
-
sendDate: z.ZodString;
|
|
7554
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7555
|
-
products: z.ZodOptional<z.ZodArray<z.ZodEnum<["wex", "employerEvents", "destinations"]>, "many">>;
|
|
7556
|
-
includeLeads: z.ZodBoolean;
|
|
7557
|
-
}, "strip", z.ZodTypeAny, {
|
|
7558
|
-
name: string;
|
|
7559
|
-
campaignId: number;
|
|
7560
|
-
sendDate: string;
|
|
7561
|
-
includeLeads: boolean;
|
|
7562
|
-
id?: string | undefined;
|
|
7563
|
-
packages?: string[] | undefined;
|
|
7564
|
-
products?: ("employerEvents" | "wex" | "destinations")[] | undefined;
|
|
7565
|
-
}, {
|
|
7566
|
-
name: string;
|
|
7567
|
-
campaignId: number;
|
|
7568
|
-
sendDate: string;
|
|
7569
|
-
includeLeads: boolean;
|
|
7570
|
-
id?: string | undefined;
|
|
7571
|
-
packages?: string[] | undefined;
|
|
7572
|
-
products?: ("employerEvents" | "wex" | "destinations")[] | undefined;
|
|
7573
|
-
}>;
|
|
7574
|
-
response: z.ZodObject<{
|
|
7575
|
-
id: z.ZodString;
|
|
7576
|
-
recipients: z.ZodNumber;
|
|
7577
|
-
warnings: z.ZodArray<z.ZodString, "many">;
|
|
7578
|
-
}, "strip", z.ZodTypeAny, {
|
|
7579
|
-
id: string;
|
|
7580
|
-
recipients: number;
|
|
7581
|
-
warnings: string[];
|
|
7582
|
-
}, {
|
|
7583
|
-
id: string;
|
|
7584
|
-
recipients: number;
|
|
7585
|
-
warnings: string[];
|
|
7586
|
-
}>;
|
|
7587
|
-
};
|
|
7588
|
-
"outreach-testCustomerSend": {
|
|
7589
|
-
request: z.ZodObject<{
|
|
7590
|
-
id: z.ZodString;
|
|
7591
|
-
}, "strip", z.ZodTypeAny, {
|
|
7592
|
-
id: string;
|
|
7593
|
-
}, {
|
|
7594
|
-
id: string;
|
|
7595
|
-
}>;
|
|
7596
|
-
response: z.ZodObject<{
|
|
7597
|
-
testedAt: z.ZodString;
|
|
7598
|
-
}, "strip", z.ZodTypeAny, {
|
|
7599
|
-
testedAt: string;
|
|
7600
|
-
}, {
|
|
7601
|
-
testedAt: string;
|
|
7602
|
-
}>;
|
|
7603
|
-
};
|
|
7604
|
-
"outreach-approveCustomerSend": {
|
|
7605
|
-
request: z.ZodObject<{
|
|
7606
|
-
id: z.ZodString;
|
|
7607
|
-
}, "strip", z.ZodTypeAny, {
|
|
7608
|
-
id: string;
|
|
7609
|
-
}, {
|
|
7610
|
-
id: string;
|
|
7611
|
-
}>;
|
|
7612
|
-
response: z.ZodObject<{
|
|
7613
|
-
date: z.ZodString;
|
|
7614
|
-
added: z.ZodBoolean;
|
|
7615
|
-
}, "strip", z.ZodTypeAny, {
|
|
7616
|
-
added: boolean;
|
|
7617
|
-
date: string;
|
|
7618
|
-
}, {
|
|
7619
|
-
added: boolean;
|
|
7620
|
-
date: string;
|
|
7621
|
-
}>;
|
|
7622
|
-
};
|
|
7623
|
-
"outreach-cancelCustomerSend": {
|
|
7624
|
-
request: z.ZodObject<{
|
|
7625
|
-
id: z.ZodString;
|
|
7626
|
-
}, "strip", z.ZodTypeAny, {
|
|
7627
|
-
id: string;
|
|
7628
|
-
}, {
|
|
7629
|
-
id: string;
|
|
7630
|
-
}>;
|
|
7631
|
-
response: z.ZodObject<{
|
|
7632
|
-
status: z.ZodEnum<["cancelled"]>;
|
|
7633
|
-
}, "strip", z.ZodTypeAny, {
|
|
7634
|
-
status: "cancelled";
|
|
7635
|
-
}, {
|
|
7636
|
-
status: "cancelled";
|
|
7637
|
-
}>;
|
|
7638
|
-
};
|
|
7639
7424
|
"outreach-setFeatures": {
|
|
7640
7425
|
request: z.ZodObject<{
|
|
7641
7426
|
coldSequence: z.ZodOptional<z.ZodBoolean>;
|
|
7642
7427
|
monthlyEmails: z.ZodOptional<z.ZodBoolean>;
|
|
7643
|
-
customerEmails: z.ZodOptional<z.ZodBoolean>;
|
|
7644
7428
|
replyPause: z.ZodOptional<z.ZodBoolean>;
|
|
7645
7429
|
replyTriage: z.ZodOptional<z.ZodBoolean>;
|
|
7646
7430
|
statusSync: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7650,7 +7434,6 @@ export declare const callableGroups: {
|
|
|
7650
7434
|
autoSend?: boolean | undefined;
|
|
7651
7435
|
coldSequence?: boolean | undefined;
|
|
7652
7436
|
monthlyEmails?: boolean | undefined;
|
|
7653
|
-
customerEmails?: boolean | undefined;
|
|
7654
7437
|
replyPause?: boolean | undefined;
|
|
7655
7438
|
replyTriage?: boolean | undefined;
|
|
7656
7439
|
statusSync?: boolean | undefined;
|
|
@@ -7659,7 +7442,6 @@ export declare const callableGroups: {
|
|
|
7659
7442
|
autoSend?: boolean | undefined;
|
|
7660
7443
|
coldSequence?: boolean | undefined;
|
|
7661
7444
|
monthlyEmails?: boolean | undefined;
|
|
7662
|
-
customerEmails?: boolean | undefined;
|
|
7663
7445
|
replyPause?: boolean | undefined;
|
|
7664
7446
|
replyTriage?: boolean | undefined;
|
|
7665
7447
|
statusSync?: boolean | undefined;
|
package/lib/typeDefinitions.d.ts
CHANGED
|
@@ -4741,7 +4741,7 @@ export type OutreachDeliverability = "ok" | "unsubscribed" | "hardBounce" | "noE
|
|
|
4741
4741
|
*/
|
|
4742
4742
|
export type OutreachContactCampaign = {
|
|
4743
4743
|
sentAt: string;
|
|
4744
|
-
/** cold
|
|
4744
|
+
/** cold or monthly. Woodpecker sends only. */
|
|
4745
4745
|
kind?: OutreachSendKind;
|
|
4746
4746
|
step?: number;
|
|
4747
4747
|
subject?: string;
|
|
@@ -4751,7 +4751,7 @@ export type OutreachContactCampaign = {
|
|
|
4751
4751
|
opens?: number;
|
|
4752
4752
|
clicks?: number;
|
|
4753
4753
|
};
|
|
4754
|
-
export type OutreachSendKind = "cold" | "monthly"
|
|
4754
|
+
export type OutreachSendKind = "cold" | "monthly";
|
|
4755
4755
|
/** The contact's place in the sending provider (Woodpecker). */
|
|
4756
4756
|
export type OutreachSenderState = {
|
|
4757
4757
|
prospectId?: number;
|
|
@@ -4834,17 +4834,17 @@ export type OutreachBlackout = {
|
|
|
4834
4834
|
label: string;
|
|
4835
4835
|
};
|
|
4836
4836
|
/**
|
|
4837
|
-
* The cold sequence runs in Woodpecker. Each Monday the backend
|
|
4838
|
-
*
|
|
4839
|
-
* approves
|
|
4840
|
-
* schoolHolidays in outreachRules.
|
|
4837
|
+
* The cold sequence runs in Woodpecker. Each Monday the backend copies the
|
|
4838
|
+
* master campaign into three draft campaigns of up to 50 schools, and Tom
|
|
4839
|
+
* approves them in Woodpecker. Switched on with features.coldSequence. The
|
|
4840
|
+
* holidays come from schoolHolidays in outreachRules.
|
|
4841
4841
|
*/
|
|
4842
4842
|
export type OutreachSequenceConfig = {
|
|
4843
4843
|
/** Only start schools in these groups. */
|
|
4844
4844
|
onlyGroups?: string[];
|
|
4845
4845
|
/** Only send to these emails (testing). */
|
|
4846
4846
|
allowlist?: string[];
|
|
4847
|
-
/** Schools
|
|
4847
|
+
/** Schools in each campaign. Defaults to 50. */
|
|
4848
4848
|
dailyBatch?: number;
|
|
4849
4849
|
};
|
|
4850
4850
|
/** `outreachReviews/{id}`: things an admin must decide. */
|
|
@@ -4898,17 +4898,20 @@ export type OutreachSuppression = {
|
|
|
4898
4898
|
by: string;
|
|
4899
4899
|
urn?: number;
|
|
4900
4900
|
};
|
|
4901
|
-
/** One school email in a
|
|
4901
|
+
/** One school email in a cold batch. */
|
|
4902
4902
|
export type OutreachBatchRecipient = {
|
|
4903
4903
|
email: string;
|
|
4904
4904
|
urns: number[];
|
|
4905
4905
|
variant: OutreachSequenceVariant;
|
|
4906
4906
|
};
|
|
4907
|
-
/** One
|
|
4907
|
+
/** One draft campaign in a week's cold batch. */
|
|
4908
4908
|
export type OutreachSequenceTranche = {
|
|
4909
|
-
/** YYYY-MM-DD. */
|
|
4909
|
+
/** YYYY-MM-DD: the send day it is meant for. */
|
|
4910
4910
|
date: string;
|
|
4911
4911
|
status: "pending" | "added" | "failed";
|
|
4912
|
+
/** The Woodpecker campaign made for it. */
|
|
4913
|
+
campaignId?: number;
|
|
4914
|
+
campaignName?: string;
|
|
4912
4915
|
recipients: OutreachBatchRecipient[];
|
|
4913
4916
|
added?: number;
|
|
4914
4917
|
skipped?: number;
|
|
@@ -4922,14 +4925,12 @@ export type OutreachCapacity = {
|
|
|
4922
4925
|
scheduled: number;
|
|
4923
4926
|
available: number;
|
|
4924
4927
|
};
|
|
4925
|
-
/** `outreachSequenceRuns/{tuesday YYYY-MM-DD}`: one week's
|
|
4928
|
+
/** `outreachSequenceRuns/{tuesday YYYY-MM-DD}`: one week's cold campaigns (or a dry run, `-preview`). */
|
|
4926
4929
|
export type OutreachSequenceRun = {
|
|
4927
4930
|
at: string;
|
|
4928
4931
|
dryRun: boolean;
|
|
4929
4932
|
skip?: "disabled" | "blackout" | "notSendDay";
|
|
4930
|
-
status?: "
|
|
4931
|
-
approvedAt?: string;
|
|
4932
|
-
approvedBy?: string;
|
|
4933
|
+
status?: "done";
|
|
4933
4934
|
tranches?: OutreachSequenceTranche[];
|
|
4934
4935
|
capacity?: OutreachCapacity;
|
|
4935
4936
|
starts: number;
|
|
@@ -4956,6 +4957,8 @@ export type OutreachCampaign = {
|
|
|
4956
4957
|
/** Woodpecker campaign, when this is one. */
|
|
4957
4958
|
woodpeckerId?: number;
|
|
4958
4959
|
kind?: OutreachSendKind;
|
|
4960
|
+
/** When the backend made it. */
|
|
4961
|
+
createdAt?: string;
|
|
4959
4962
|
/** Brevo only: kept readable. */
|
|
4960
4963
|
brevoUrl?: string;
|
|
4961
4964
|
/** Brevo only: kept readable. */
|
|
@@ -4972,13 +4975,11 @@ export type OutreachCampaign = {
|
|
|
4972
4975
|
};
|
|
4973
4976
|
/** Woodpecker ids in `adminConfig/outreach`. */
|
|
4974
4977
|
export type OutreachWoodpeckerConfig = {
|
|
4975
|
-
/** The
|
|
4978
|
+
/** The master campaign per variant, built in Woodpecker. Each week's campaigns copy these. */
|
|
4976
4979
|
coldCampaigns?: {
|
|
4977
4980
|
secondary?: number;
|
|
4978
4981
|
college?: number;
|
|
4979
4982
|
};
|
|
4980
|
-
/** Default campaign for customer and lead updates. */
|
|
4981
|
-
customerCampaignId?: number;
|
|
4982
4983
|
/** Events the webhook is subscribed to. */
|
|
4983
4984
|
webhookEvents?: string[];
|
|
4984
4985
|
};
|
|
@@ -5017,12 +5018,10 @@ export type OutreachConfig = {
|
|
|
5017
5018
|
features?: OutreachFeatures;
|
|
5018
5019
|
};
|
|
5019
5020
|
export type OutreachFeatures = {
|
|
5020
|
-
/** Cold
|
|
5021
|
+
/** Cold campaigns made each Monday as drafts in Woodpecker. */
|
|
5021
5022
|
coldSequence?: boolean;
|
|
5022
5023
|
/** Monthly entries made and approved ones added on their date. */
|
|
5023
5024
|
monthlyEmails?: boolean;
|
|
5024
|
-
/** Approved customer and lead updates added on their date. */
|
|
5025
|
-
customerEmails?: boolean;
|
|
5026
5025
|
/** Replies pause a school in the sequence. */
|
|
5027
5026
|
replyPause?: boolean;
|
|
5028
5027
|
/** Woodpecker interest labels drive statuses. */
|
|
@@ -5031,7 +5030,7 @@ export type OutreachFeatures = {
|
|
|
5031
5030
|
statusSync?: boolean;
|
|
5032
5031
|
/** Status changes stop sends and the nightly reconcile runs. */
|
|
5033
5032
|
senderSync?: boolean;
|
|
5034
|
-
/**
|
|
5033
|
+
/** Sends without Tom: cold campaigns are started as soon as they are made, and monthly sends may go into running campaigns. Off means draft only, and Tom approves in Woodpecker. */
|
|
5035
5034
|
autoSend?: boolean;
|
|
5036
5035
|
};
|
|
5037
5036
|
export type OutreachCampaignStats = {
|
|
@@ -5093,32 +5092,6 @@ export type OutreachMonthlySend = {
|
|
|
5093
5092
|
/** Brevo only: kept readable. */
|
|
5094
5093
|
stats?: OutreachCampaignStats;
|
|
5095
5094
|
};
|
|
5096
|
-
/**
|
|
5097
|
-
* `outreachCustomerSends/{id}`: an update to customers and engaged leads, sent
|
|
5098
|
-
* from tom@careerthread.co.uk through its own Woodpecker campaign. The audience
|
|
5099
|
-
* is built from Firestore on the send date.
|
|
5100
|
-
*/
|
|
5101
|
-
export type OutreachCustomerSend = {
|
|
5102
|
-
name: string;
|
|
5103
|
-
campaignId: number;
|
|
5104
|
-
/** The first day recipients are added, YYYY-MM-DD. */
|
|
5105
|
-
sendDate: string;
|
|
5106
|
-
/** drafted: added to a held campaign, waiting for Run in Woodpecker. */
|
|
5107
|
-
status: "draft" | "tested" | "approved" | "drafted" | "sent" | "cancelled";
|
|
5108
|
-
/** Empty means every account type. */
|
|
5109
|
-
packages?: string[];
|
|
5110
|
-
/** Empty means every product. */
|
|
5111
|
-
products?: ("wex" | "employerEvents" | "destinations")[];
|
|
5112
|
-
includeLeads: boolean;
|
|
5113
|
-
testedAt?: string;
|
|
5114
|
-
approvedAt?: string;
|
|
5115
|
-
approvedBy?: string;
|
|
5116
|
-
count?: number;
|
|
5117
|
-
sentAt?: string;
|
|
5118
|
-
createdAt: string;
|
|
5119
|
-
createdBy: string;
|
|
5120
|
-
updatedAt: string;
|
|
5121
|
-
};
|
|
5122
5095
|
export type LeaverGroup = {
|
|
5123
5096
|
title: string;
|
|
5124
5097
|
academicYear: string;
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ const samples: {[K in keyof typeof outreachCallables]: {request: unknown, respon
|
|
|
20
20
|
response: {leadId: "lead1"},
|
|
21
21
|
},
|
|
22
22
|
"outreach-setupWoodpecker": {
|
|
23
|
-
request: {coldCampaigns: {secondary: 11, college: 12}
|
|
23
|
+
request: {coldCampaigns: {secondary: 11, college: 12}},
|
|
24
24
|
response: {subscribed: ["campaign_sent"], mailboxes: 5, blacklistQueued: 40},
|
|
25
25
|
},
|
|
26
26
|
"outreach-migrateWoodpecker": {
|
|
@@ -43,30 +43,10 @@ const samples: {[K in keyof typeof outreachCallables]: {request: unknown, respon
|
|
|
43
43
|
starts: 50, blocked: [{urn: 100000, reason: "Trust hold"}],
|
|
44
44
|
},
|
|
45
45
|
},
|
|
46
|
-
"outreach-approveSequenceRun": {
|
|
47
|
-
request: {id: "2026-11-03", action: "approve"},
|
|
48
|
-
response: {status: "approved", added: 50},
|
|
49
|
-
},
|
|
50
46
|
"outreach-setSequenceConfig": {
|
|
51
47
|
request: {dailyBatch: 50, onlyGroups: ["Derby"]},
|
|
52
48
|
response: {saved: true},
|
|
53
49
|
},
|
|
54
|
-
"outreach-saveCustomerSend": {
|
|
55
|
-
request: {name: "Autumn update", campaignId: 44, sendDate: "2026-11-10", packages: ["institutes-one"], products: ["wex"], includeLeads: true},
|
|
56
|
-
response: {id: "c1", recipients: 120, warnings: []},
|
|
57
|
-
},
|
|
58
|
-
"outreach-testCustomerSend": {
|
|
59
|
-
request: {id: "c1"},
|
|
60
|
-
response: {testedAt: "2026-10-30T10:00:00.000Z"},
|
|
61
|
-
},
|
|
62
|
-
"outreach-approveCustomerSend": {
|
|
63
|
-
request: {id: "c1"},
|
|
64
|
-
response: {date: "2026-11-10", added: false},
|
|
65
|
-
},
|
|
66
|
-
"outreach-cancelCustomerSend": {
|
|
67
|
-
request: {id: "c1"},
|
|
68
|
-
response: {status: "cancelled"},
|
|
69
|
-
},
|
|
70
50
|
"outreach-setFeatures": {
|
|
71
51
|
request: {coldSequence: true, senderSync: false},
|
|
72
52
|
response: {saved: true},
|
|
@@ -110,7 +110,6 @@ export const outreachCallables = {
|
|
|
110
110
|
"outreach-setupWoodpecker": {
|
|
111
111
|
request: z.object({
|
|
112
112
|
coldCampaigns: z.object({secondary: z.number().int().optional(), college: z.number().int().optional()}).optional(),
|
|
113
|
-
customerCampaignId: z.number().int().optional(),
|
|
114
113
|
}),
|
|
115
114
|
response: z.object({
|
|
116
115
|
subscribed: z.array(z.string()),
|
|
@@ -195,23 +194,19 @@ export const outreachCallables = {
|
|
|
195
194
|
},
|
|
196
195
|
"outreach-runSequence": {
|
|
197
196
|
request: z.object({
|
|
198
|
-
/** Preview next week's
|
|
197
|
+
/** Preview next week's campaigns: nothing is made and schools are not touched. */
|
|
199
198
|
dryRun: z.boolean().optional(),
|
|
200
199
|
}),
|
|
201
200
|
response: z.object({
|
|
202
201
|
date: isoDate,
|
|
203
202
|
dryRun: z.boolean(),
|
|
204
203
|
skip: z.enum(["disabled", "blackout", "notSendDay"]).optional(),
|
|
205
|
-
tranches: z.array(z.object({date: isoDate, secondary: z.number(), college: z.number()})),
|
|
204
|
+
tranches: z.array(z.object({date: isoDate, secondary: z.number(), college: z.number(), campaignId: z.number().optional(), error: z.string().optional()})),
|
|
206
205
|
capacity: capacity.optional(),
|
|
207
206
|
starts: z.number(),
|
|
208
207
|
blocked: z.array(z.object({urn: z.number(), reason: z.string()})),
|
|
209
208
|
}),
|
|
210
209
|
},
|
|
211
|
-
"outreach-approveSequenceRun": {
|
|
212
|
-
request: z.object({id: isoDate, action: z.enum(["approve", "reject"])}),
|
|
213
|
-
response: z.object({status: z.enum(["approved", "rejected", "done"]), added: z.number()}),
|
|
214
|
-
},
|
|
215
210
|
"outreach-setSequenceConfig": {
|
|
216
211
|
request: z.object({
|
|
217
212
|
onlyGroups: z.array(z.string()).optional(),
|
|
@@ -220,36 +215,10 @@ export const outreachCallables = {
|
|
|
220
215
|
}),
|
|
221
216
|
response: z.object({saved: z.boolean()}),
|
|
222
217
|
},
|
|
223
|
-
"outreach-saveCustomerSend": {
|
|
224
|
-
request: z.object({
|
|
225
|
-
/** Omit to create one. Only drafts and tested sends can be edited. */
|
|
226
|
-
id: z.string().optional(),
|
|
227
|
-
name: z.string().trim().min(1),
|
|
228
|
-
campaignId: z.number().int(),
|
|
229
|
-
sendDate: isoDate,
|
|
230
|
-
packages: z.array(z.string()).optional(),
|
|
231
|
-
products: z.array(z.enum(["wex", "employerEvents", "destinations"])).optional(),
|
|
232
|
-
includeLeads: z.boolean(),
|
|
233
|
-
}),
|
|
234
|
-
response: z.object({id: z.string(), recipients: z.number(), warnings: z.array(z.string())}),
|
|
235
|
-
},
|
|
236
|
-
"outreach-testCustomerSend": {
|
|
237
|
-
request: z.object({id: z.string()}),
|
|
238
|
-
response: z.object({testedAt: z.string()}),
|
|
239
|
-
},
|
|
240
|
-
"outreach-approveCustomerSend": {
|
|
241
|
-
request: z.object({id: z.string()}),
|
|
242
|
-
response: z.object({date: isoDate, added: z.boolean()}),
|
|
243
|
-
},
|
|
244
|
-
"outreach-cancelCustomerSend": {
|
|
245
|
-
request: z.object({id: z.string()}),
|
|
246
|
-
response: z.object({status: z.enum(["cancelled"])}),
|
|
247
|
-
},
|
|
248
218
|
"outreach-setFeatures": {
|
|
249
219
|
request: z.object({
|
|
250
220
|
coldSequence: z.boolean().optional(),
|
|
251
221
|
monthlyEmails: z.boolean().optional(),
|
|
252
|
-
customerEmails: z.boolean().optional(),
|
|
253
222
|
replyPause: z.boolean().optional(),
|
|
254
223
|
replyTriage: z.boolean().optional(),
|
|
255
224
|
statusSync: z.boolean().optional(),
|
package/src/typeDefinitions.ts
CHANGED
|
@@ -4900,7 +4900,7 @@ export type OutreachDeliverability = "ok" | "unsubscribed" | "hardBounce" | "noE
|
|
|
4900
4900
|
*/
|
|
4901
4901
|
export type OutreachContactCampaign = {
|
|
4902
4902
|
sentAt: string,
|
|
4903
|
-
/** cold
|
|
4903
|
+
/** cold or monthly. Woodpecker sends only. */
|
|
4904
4904
|
kind?: OutreachSendKind,
|
|
4905
4905
|
step?: number,
|
|
4906
4906
|
subject?: string,
|
|
@@ -4911,7 +4911,7 @@ export type OutreachContactCampaign = {
|
|
|
4911
4911
|
clicks?: number,
|
|
4912
4912
|
}
|
|
4913
4913
|
|
|
4914
|
-
export type OutreachSendKind = "cold"|"monthly"
|
|
4914
|
+
export type OutreachSendKind = "cold"|"monthly";
|
|
4915
4915
|
|
|
4916
4916
|
/** The contact's place in the sending provider (Woodpecker). */
|
|
4917
4917
|
export type OutreachSenderState = {
|
|
@@ -4990,17 +4990,17 @@ export type OutreachSequenceState = {
|
|
|
4990
4990
|
export type OutreachBlackout = {start: string, end: string, label: string};
|
|
4991
4991
|
|
|
4992
4992
|
/**
|
|
4993
|
-
* The cold sequence runs in Woodpecker. Each Monday the backend
|
|
4994
|
-
*
|
|
4995
|
-
* approves
|
|
4996
|
-
* schoolHolidays in outreachRules.
|
|
4993
|
+
* The cold sequence runs in Woodpecker. Each Monday the backend copies the
|
|
4994
|
+
* master campaign into three draft campaigns of up to 50 schools, and Tom
|
|
4995
|
+
* approves them in Woodpecker. Switched on with features.coldSequence. The
|
|
4996
|
+
* holidays come from schoolHolidays in outreachRules.
|
|
4997
4997
|
*/
|
|
4998
4998
|
export type OutreachSequenceConfig = {
|
|
4999
4999
|
/** Only start schools in these groups. */
|
|
5000
5000
|
onlyGroups?: string[],
|
|
5001
5001
|
/** Only send to these emails (testing). */
|
|
5002
5002
|
allowlist?: string[],
|
|
5003
|
-
/** Schools
|
|
5003
|
+
/** Schools in each campaign. Defaults to 50. */
|
|
5004
5004
|
dailyBatch?: number,
|
|
5005
5005
|
}
|
|
5006
5006
|
|
|
@@ -5058,14 +5058,17 @@ export type OutreachSuppression = {
|
|
|
5058
5058
|
urn?: number,
|
|
5059
5059
|
}
|
|
5060
5060
|
|
|
5061
|
-
/** One school email in a
|
|
5061
|
+
/** One school email in a cold batch. */
|
|
5062
5062
|
export type OutreachBatchRecipient = {email: string, urns: number[], variant: OutreachSequenceVariant};
|
|
5063
5063
|
|
|
5064
|
-
/** One
|
|
5064
|
+
/** One draft campaign in a week's cold batch. */
|
|
5065
5065
|
export type OutreachSequenceTranche = {
|
|
5066
|
-
/** YYYY-MM-DD. */
|
|
5066
|
+
/** YYYY-MM-DD: the send day it is meant for. */
|
|
5067
5067
|
date: string,
|
|
5068
5068
|
status: "pending"|"added"|"failed",
|
|
5069
|
+
/** The Woodpecker campaign made for it. */
|
|
5070
|
+
campaignId?: number,
|
|
5071
|
+
campaignName?: string,
|
|
5069
5072
|
recipients: OutreachBatchRecipient[],
|
|
5070
5073
|
added?: number,
|
|
5071
5074
|
skipped?: number,
|
|
@@ -5081,14 +5084,12 @@ export type OutreachCapacity = {
|
|
|
5081
5084
|
available: number,
|
|
5082
5085
|
}
|
|
5083
5086
|
|
|
5084
|
-
/** `outreachSequenceRuns/{tuesday YYYY-MM-DD}`: one week's
|
|
5087
|
+
/** `outreachSequenceRuns/{tuesday YYYY-MM-DD}`: one week's cold campaigns (or a dry run, `-preview`). */
|
|
5085
5088
|
export type OutreachSequenceRun = {
|
|
5086
5089
|
at: string,
|
|
5087
5090
|
dryRun: boolean,
|
|
5088
5091
|
skip?: "disabled"|"blackout"|"notSendDay",
|
|
5089
|
-
status?: "
|
|
5090
|
-
approvedAt?: string,
|
|
5091
|
-
approvedBy?: string,
|
|
5092
|
+
status?: "done",
|
|
5092
5093
|
tranches?: OutreachSequenceTranche[],
|
|
5093
5094
|
capacity?: OutreachCapacity,
|
|
5094
5095
|
starts: number,
|
|
@@ -5107,6 +5108,8 @@ export type OutreachCampaign = {
|
|
|
5107
5108
|
/** Woodpecker campaign, when this is one. */
|
|
5108
5109
|
woodpeckerId?: number,
|
|
5109
5110
|
kind?: OutreachSendKind,
|
|
5111
|
+
/** When the backend made it. */
|
|
5112
|
+
createdAt?: string,
|
|
5110
5113
|
/** Brevo only: kept readable. */
|
|
5111
5114
|
brevoUrl?: string,
|
|
5112
5115
|
/** Brevo only: kept readable. */
|
|
@@ -5124,10 +5127,8 @@ export type OutreachCampaign = {
|
|
|
5124
5127
|
|
|
5125
5128
|
/** Woodpecker ids in `adminConfig/outreach`. */
|
|
5126
5129
|
export type OutreachWoodpeckerConfig = {
|
|
5127
|
-
/** The
|
|
5130
|
+
/** The master campaign per variant, built in Woodpecker. Each week's campaigns copy these. */
|
|
5128
5131
|
coldCampaigns?: {secondary?: number, college?: number},
|
|
5129
|
-
/** Default campaign for customer and lead updates. */
|
|
5130
|
-
customerCampaignId?: number,
|
|
5131
5132
|
/** Events the webhook is subscribed to. */
|
|
5132
5133
|
webhookEvents?: string[],
|
|
5133
5134
|
}
|
|
@@ -5155,12 +5156,10 @@ export type OutreachConfig = {
|
|
|
5155
5156
|
}
|
|
5156
5157
|
|
|
5157
5158
|
export type OutreachFeatures = {
|
|
5158
|
-
/** Cold
|
|
5159
|
+
/** Cold campaigns made each Monday as drafts in Woodpecker. */
|
|
5159
5160
|
coldSequence?: boolean,
|
|
5160
5161
|
/** Monthly entries made and approved ones added on their date. */
|
|
5161
5162
|
monthlyEmails?: boolean,
|
|
5162
|
-
/** Approved customer and lead updates added on their date. */
|
|
5163
|
-
customerEmails?: boolean,
|
|
5164
5163
|
/** Replies pause a school in the sequence. */
|
|
5165
5164
|
replyPause?: boolean,
|
|
5166
5165
|
/** Woodpecker interest labels drive statuses. */
|
|
@@ -5169,7 +5168,7 @@ export type OutreachFeatures = {
|
|
|
5169
5168
|
statusSync?: boolean,
|
|
5170
5169
|
/** Status changes stop sends and the nightly reconcile runs. */
|
|
5171
5170
|
senderSync?: boolean,
|
|
5172
|
-
/**
|
|
5171
|
+
/** Sends without Tom: cold campaigns are started as soon as they are made, and monthly sends may go into running campaigns. Off means draft only, and Tom approves in Woodpecker. */
|
|
5173
5172
|
autoSend?: boolean,
|
|
5174
5173
|
}
|
|
5175
5174
|
|
|
@@ -5214,33 +5213,6 @@ export type OutreachMonthlySend = {
|
|
|
5214
5213
|
stats?: OutreachCampaignStats,
|
|
5215
5214
|
}
|
|
5216
5215
|
|
|
5217
|
-
/**
|
|
5218
|
-
* `outreachCustomerSends/{id}`: an update to customers and engaged leads, sent
|
|
5219
|
-
* from tom@careerthread.co.uk through its own Woodpecker campaign. The audience
|
|
5220
|
-
* is built from Firestore on the send date.
|
|
5221
|
-
*/
|
|
5222
|
-
export type OutreachCustomerSend = {
|
|
5223
|
-
name: string,
|
|
5224
|
-
campaignId: number,
|
|
5225
|
-
/** The first day recipients are added, YYYY-MM-DD. */
|
|
5226
|
-
sendDate: string,
|
|
5227
|
-
/** drafted: added to a held campaign, waiting for Run in Woodpecker. */
|
|
5228
|
-
status: "draft"|"tested"|"approved"|"drafted"|"sent"|"cancelled",
|
|
5229
|
-
/** Empty means every account type. */
|
|
5230
|
-
packages?: string[],
|
|
5231
|
-
/** Empty means every product. */
|
|
5232
|
-
products?: ("wex"|"employerEvents"|"destinations")[],
|
|
5233
|
-
includeLeads: boolean,
|
|
5234
|
-
testedAt?: string,
|
|
5235
|
-
approvedAt?: string,
|
|
5236
|
-
approvedBy?: string,
|
|
5237
|
-
count?: number,
|
|
5238
|
-
sentAt?: string,
|
|
5239
|
-
createdAt: string,
|
|
5240
|
-
createdBy: string,
|
|
5241
|
-
updatedAt: string,
|
|
5242
|
-
}
|
|
5243
|
-
|
|
5244
5216
|
export type LeaverGroup = {
|
|
5245
5217
|
title: string;
|
|
5246
5218
|
academicYear: string;
|