placementt-core 1.400.1265 → 1.400.1266
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.
|
@@ -23,6 +23,20 @@ export declare const engagementCallables: {
|
|
|
23
23
|
contacts: z.ZodNumber;
|
|
24
24
|
/** How many of them have opted in to marketing emails. */
|
|
25
25
|
marketingContacts: z.ZodNumber;
|
|
26
|
+
/** Who it would go to, so the admin can untick any of them. */
|
|
27
|
+
people: z.ZodArray<z.ZodObject<{
|
|
28
|
+
email: z.ZodString;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
optedIn: z.ZodBoolean;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
name: string;
|
|
33
|
+
email: string;
|
|
34
|
+
optedIn: boolean;
|
|
35
|
+
}, {
|
|
36
|
+
name: string;
|
|
37
|
+
email: string;
|
|
38
|
+
optedIn: boolean;
|
|
39
|
+
}>, "many">;
|
|
26
40
|
/** ISO date this email last went to the school, if it has. */
|
|
27
41
|
lastSent: z.ZodOptional<z.ZodString>;
|
|
28
42
|
/** The last engagement email of any kind that went to the school, if one has. */
|
|
@@ -43,6 +57,11 @@ export declare const engagementCallables: {
|
|
|
43
57
|
oId: string;
|
|
44
58
|
package: string;
|
|
45
59
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
60
|
+
people: {
|
|
61
|
+
name: string;
|
|
62
|
+
email: string;
|
|
63
|
+
optedIn: boolean;
|
|
64
|
+
}[];
|
|
46
65
|
contacts: number;
|
|
47
66
|
params: Record<string, string>;
|
|
48
67
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -59,6 +78,11 @@ export declare const engagementCallables: {
|
|
|
59
78
|
oId: string;
|
|
60
79
|
package: string;
|
|
61
80
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
81
|
+
people: {
|
|
82
|
+
name: string;
|
|
83
|
+
email: string;
|
|
84
|
+
optedIn: boolean;
|
|
85
|
+
}[];
|
|
62
86
|
contacts: number;
|
|
63
87
|
params: Record<string, string>;
|
|
64
88
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -77,6 +101,11 @@ export declare const engagementCallables: {
|
|
|
77
101
|
oId: string;
|
|
78
102
|
package: string;
|
|
79
103
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
104
|
+
people: {
|
|
105
|
+
name: string;
|
|
106
|
+
email: string;
|
|
107
|
+
optedIn: boolean;
|
|
108
|
+
}[];
|
|
80
109
|
contacts: number;
|
|
81
110
|
params: Record<string, string>;
|
|
82
111
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -95,6 +124,11 @@ export declare const engagementCallables: {
|
|
|
95
124
|
oId: string;
|
|
96
125
|
package: string;
|
|
97
126
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
127
|
+
people: {
|
|
128
|
+
name: string;
|
|
129
|
+
email: string;
|
|
130
|
+
optedIn: boolean;
|
|
131
|
+
}[];
|
|
98
132
|
contacts: number;
|
|
99
133
|
params: Record<string, string>;
|
|
100
134
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -122,6 +156,8 @@ export declare const engagementCallables: {
|
|
|
122
156
|
followUps: z.ZodBoolean;
|
|
123
157
|
/** Send only to the admin and key contacts who have opted in to marketing emails. */
|
|
124
158
|
marketingOnly: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
/** The contacts the admin unticked, by school. */
|
|
160
|
+
excluded: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
125
161
|
}, "strip", z.ZodTypeAny, {
|
|
126
162
|
body: unknown[];
|
|
127
163
|
subject: string;
|
|
@@ -130,6 +166,7 @@ export declare const engagementCallables: {
|
|
|
130
166
|
followUps: boolean;
|
|
131
167
|
heroImage?: string | undefined;
|
|
132
168
|
marketingOnly?: boolean | undefined;
|
|
169
|
+
excluded?: Record<string, string[]> | undefined;
|
|
133
170
|
}, {
|
|
134
171
|
body: unknown[];
|
|
135
172
|
subject: string;
|
|
@@ -138,6 +175,7 @@ export declare const engagementCallables: {
|
|
|
138
175
|
followUps: boolean;
|
|
139
176
|
heroImage?: string | null | undefined;
|
|
140
177
|
marketingOnly?: boolean | undefined;
|
|
178
|
+
excluded?: Record<string, string[]> | undefined;
|
|
141
179
|
}>;
|
|
142
180
|
/** Each school's outcome: who it went to, or why it didn't. */
|
|
143
181
|
response: z.ZodObject<{
|
|
@@ -33,6 +33,8 @@ exports.engagementCallables = {
|
|
|
33
33
|
contacts: zod_1.z.number(),
|
|
34
34
|
/** How many of them have opted in to marketing emails. */
|
|
35
35
|
marketingContacts: zod_1.z.number(),
|
|
36
|
+
/** Who it would go to, so the admin can untick any of them. */
|
|
37
|
+
people: zod_1.z.array(zod_1.z.object({ email: zod_1.z.string(), name: zod_1.z.string(), optedIn: zod_1.z.boolean() })),
|
|
36
38
|
/** ISO date this email last went to the school, if it has. */
|
|
37
39
|
lastSent: zod_1.z.string().optional(),
|
|
38
40
|
/** The last engagement email of any kind that went to the school, if one has. */
|
|
@@ -55,6 +57,8 @@ exports.engagementCallables = {
|
|
|
55
57
|
followUps: zod_1.z.boolean(),
|
|
56
58
|
/** Send only to the admin and key contacts who have opted in to marketing emails. */
|
|
57
59
|
marketingOnly: zod_1.z.boolean().optional(),
|
|
60
|
+
/** The contacts the admin unticked, by school. */
|
|
61
|
+
excluded: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.string())).optional(),
|
|
58
62
|
}),
|
|
59
63
|
/** Each school's outcome: who it went to, or why it didn't. */
|
|
60
64
|
response: zod_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
|
|
@@ -30,6 +30,19 @@ export declare const allCallables: {
|
|
|
30
30
|
flags: z.ZodArray<z.ZodEnum<["noContacts", "noRenewalDate", "noQuote", "noFinanceContact", "sentRecently"]>, "many">;
|
|
31
31
|
contacts: z.ZodNumber;
|
|
32
32
|
marketingContacts: z.ZodNumber;
|
|
33
|
+
people: z.ZodArray<z.ZodObject<{
|
|
34
|
+
email: z.ZodString;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
optedIn: z.ZodBoolean;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
name: string;
|
|
39
|
+
email: string;
|
|
40
|
+
optedIn: boolean;
|
|
41
|
+
}, {
|
|
42
|
+
name: string;
|
|
43
|
+
email: string;
|
|
44
|
+
optedIn: boolean;
|
|
45
|
+
}>, "many">;
|
|
33
46
|
lastSent: z.ZodOptional<z.ZodString>;
|
|
34
47
|
lastEmail: z.ZodOptional<z.ZodObject<{
|
|
35
48
|
title: z.ZodString;
|
|
@@ -47,6 +60,11 @@ export declare const allCallables: {
|
|
|
47
60
|
oId: string;
|
|
48
61
|
package: string;
|
|
49
62
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
63
|
+
people: {
|
|
64
|
+
name: string;
|
|
65
|
+
email: string;
|
|
66
|
+
optedIn: boolean;
|
|
67
|
+
}[];
|
|
50
68
|
contacts: number;
|
|
51
69
|
params: Record<string, string>;
|
|
52
70
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -63,6 +81,11 @@ export declare const allCallables: {
|
|
|
63
81
|
oId: string;
|
|
64
82
|
package: string;
|
|
65
83
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
84
|
+
people: {
|
|
85
|
+
name: string;
|
|
86
|
+
email: string;
|
|
87
|
+
optedIn: boolean;
|
|
88
|
+
}[];
|
|
66
89
|
contacts: number;
|
|
67
90
|
params: Record<string, string>;
|
|
68
91
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -81,6 +104,11 @@ export declare const allCallables: {
|
|
|
81
104
|
oId: string;
|
|
82
105
|
package: string;
|
|
83
106
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
107
|
+
people: {
|
|
108
|
+
name: string;
|
|
109
|
+
email: string;
|
|
110
|
+
optedIn: boolean;
|
|
111
|
+
}[];
|
|
84
112
|
contacts: number;
|
|
85
113
|
params: Record<string, string>;
|
|
86
114
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -99,6 +127,11 @@ export declare const allCallables: {
|
|
|
99
127
|
oId: string;
|
|
100
128
|
package: string;
|
|
101
129
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
130
|
+
people: {
|
|
131
|
+
name: string;
|
|
132
|
+
email: string;
|
|
133
|
+
optedIn: boolean;
|
|
134
|
+
}[];
|
|
102
135
|
contacts: number;
|
|
103
136
|
params: Record<string, string>;
|
|
104
137
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -122,6 +155,7 @@ export declare const allCallables: {
|
|
|
122
155
|
heroImage: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
123
156
|
followUps: z.ZodBoolean;
|
|
124
157
|
marketingOnly: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
excluded: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
125
159
|
}, "strip", z.ZodTypeAny, {
|
|
126
160
|
body: unknown[];
|
|
127
161
|
subject: string;
|
|
@@ -130,6 +164,7 @@ export declare const allCallables: {
|
|
|
130
164
|
followUps: boolean;
|
|
131
165
|
heroImage?: string | undefined;
|
|
132
166
|
marketingOnly?: boolean | undefined;
|
|
167
|
+
excluded?: Record<string, string[]> | undefined;
|
|
133
168
|
}, {
|
|
134
169
|
body: unknown[];
|
|
135
170
|
subject: string;
|
|
@@ -138,6 +173,7 @@ export declare const allCallables: {
|
|
|
138
173
|
followUps: boolean;
|
|
139
174
|
heroImage?: string | null | undefined;
|
|
140
175
|
marketingOnly?: boolean | undefined;
|
|
176
|
+
excluded?: Record<string, string[]> | undefined;
|
|
141
177
|
}>;
|
|
142
178
|
response: z.ZodObject<{
|
|
143
179
|
results: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -7786,6 +7822,19 @@ export declare const callableGroups: {
|
|
|
7786
7822
|
flags: z.ZodArray<z.ZodEnum<["noContacts", "noRenewalDate", "noQuote", "noFinanceContact", "sentRecently"]>, "many">;
|
|
7787
7823
|
contacts: z.ZodNumber;
|
|
7788
7824
|
marketingContacts: z.ZodNumber;
|
|
7825
|
+
people: z.ZodArray<z.ZodObject<{
|
|
7826
|
+
email: z.ZodString;
|
|
7827
|
+
name: z.ZodString;
|
|
7828
|
+
optedIn: z.ZodBoolean;
|
|
7829
|
+
}, "strip", z.ZodTypeAny, {
|
|
7830
|
+
name: string;
|
|
7831
|
+
email: string;
|
|
7832
|
+
optedIn: boolean;
|
|
7833
|
+
}, {
|
|
7834
|
+
name: string;
|
|
7835
|
+
email: string;
|
|
7836
|
+
optedIn: boolean;
|
|
7837
|
+
}>, "many">;
|
|
7789
7838
|
lastSent: z.ZodOptional<z.ZodString>;
|
|
7790
7839
|
lastEmail: z.ZodOptional<z.ZodObject<{
|
|
7791
7840
|
title: z.ZodString;
|
|
@@ -7803,6 +7852,11 @@ export declare const callableGroups: {
|
|
|
7803
7852
|
oId: string;
|
|
7804
7853
|
package: string;
|
|
7805
7854
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
7855
|
+
people: {
|
|
7856
|
+
name: string;
|
|
7857
|
+
email: string;
|
|
7858
|
+
optedIn: boolean;
|
|
7859
|
+
}[];
|
|
7806
7860
|
contacts: number;
|
|
7807
7861
|
params: Record<string, string>;
|
|
7808
7862
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -7819,6 +7873,11 @@ export declare const callableGroups: {
|
|
|
7819
7873
|
oId: string;
|
|
7820
7874
|
package: string;
|
|
7821
7875
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
7876
|
+
people: {
|
|
7877
|
+
name: string;
|
|
7878
|
+
email: string;
|
|
7879
|
+
optedIn: boolean;
|
|
7880
|
+
}[];
|
|
7822
7881
|
contacts: number;
|
|
7823
7882
|
params: Record<string, string>;
|
|
7824
7883
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -7837,6 +7896,11 @@ export declare const callableGroups: {
|
|
|
7837
7896
|
oId: string;
|
|
7838
7897
|
package: string;
|
|
7839
7898
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
7899
|
+
people: {
|
|
7900
|
+
name: string;
|
|
7901
|
+
email: string;
|
|
7902
|
+
optedIn: boolean;
|
|
7903
|
+
}[];
|
|
7840
7904
|
contacts: number;
|
|
7841
7905
|
params: Record<string, string>;
|
|
7842
7906
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -7855,6 +7919,11 @@ export declare const callableGroups: {
|
|
|
7855
7919
|
oId: string;
|
|
7856
7920
|
package: string;
|
|
7857
7921
|
flags: ("noContacts" | "noRenewalDate" | "noQuote" | "noFinanceContact" | "sentRecently")[];
|
|
7922
|
+
people: {
|
|
7923
|
+
name: string;
|
|
7924
|
+
email: string;
|
|
7925
|
+
optedIn: boolean;
|
|
7926
|
+
}[];
|
|
7858
7927
|
contacts: number;
|
|
7859
7928
|
params: Record<string, string>;
|
|
7860
7929
|
products: ("network" | "events" | "employerEvents" | "wex" | "parents" | "skills" | "activities" | "destinations" | "alumni")[];
|
|
@@ -7878,6 +7947,7 @@ export declare const callableGroups: {
|
|
|
7878
7947
|
heroImage: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
7879
7948
|
followUps: z.ZodBoolean;
|
|
7880
7949
|
marketingOnly: z.ZodOptional<z.ZodBoolean>;
|
|
7950
|
+
excluded: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
7881
7951
|
}, "strip", z.ZodTypeAny, {
|
|
7882
7952
|
body: unknown[];
|
|
7883
7953
|
subject: string;
|
|
@@ -7886,6 +7956,7 @@ export declare const callableGroups: {
|
|
|
7886
7956
|
followUps: boolean;
|
|
7887
7957
|
heroImage?: string | undefined;
|
|
7888
7958
|
marketingOnly?: boolean | undefined;
|
|
7959
|
+
excluded?: Record<string, string[]> | undefined;
|
|
7889
7960
|
}, {
|
|
7890
7961
|
body: unknown[];
|
|
7891
7962
|
subject: string;
|
|
@@ -7894,6 +7965,7 @@ export declare const callableGroups: {
|
|
|
7894
7965
|
followUps: boolean;
|
|
7895
7966
|
heroImage?: string | null | undefined;
|
|
7896
7967
|
marketingOnly?: boolean | undefined;
|
|
7968
|
+
excluded?: Record<string, string[]> | undefined;
|
|
7897
7969
|
}>;
|
|
7898
7970
|
response: z.ZodObject<{
|
|
7899
7971
|
results: z.ZodRecord<z.ZodString, z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -33,6 +33,8 @@ export const engagementCallables = {
|
|
|
33
33
|
contacts: z.number(),
|
|
34
34
|
/** How many of them have opted in to marketing emails. */
|
|
35
35
|
marketingContacts: z.number(),
|
|
36
|
+
/** Who it would go to, so the admin can untick any of them. */
|
|
37
|
+
people: z.array(z.object({email: z.string(), name: z.string(), optedIn: z.boolean()})),
|
|
36
38
|
/** ISO date this email last went to the school, if it has. */
|
|
37
39
|
lastSent: z.string().optional(),
|
|
38
40
|
/** The last engagement email of any kind that went to the school, if one has. */
|
|
@@ -55,6 +57,8 @@ export const engagementCallables = {
|
|
|
55
57
|
followUps: z.boolean(),
|
|
56
58
|
/** Send only to the admin and key contacts who have opted in to marketing emails. */
|
|
57
59
|
marketingOnly: z.boolean().optional(),
|
|
60
|
+
/** The contacts the admin unticked, by school. */
|
|
61
|
+
excluded: z.record(z.string(), z.array(z.string())).optional(),
|
|
58
62
|
}),
|
|
59
63
|
/** Each school's outcome: who it went to, or why it didn't. */
|
|
60
64
|
response: z.object({
|