placementt-core 1.400.1234 → 1.400.1236
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/events.d.ts +131 -16
- package/lib/callables/events.js +67 -13
- package/lib/callables/events.js.map +1 -1
- package/lib/callables/registry.d.ts +262 -32
- package/lib/typeDefinitions.d.ts +40 -1
- package/lib/typeDefinitions.js.map +1 -1
- package/package.json +1 -1
- package/src/callables/events.ts +67 -13
- package/src/typeDefinitions.ts +35 -1
|
@@ -137,47 +137,162 @@ export declare const eventsCallables: {
|
|
|
137
137
|
duplicates?: number | undefined;
|
|
138
138
|
}>;
|
|
139
139
|
};
|
|
140
|
-
"events-
|
|
140
|
+
"events-getNonUserSchoolInvite": {
|
|
141
141
|
request: z.ZodObject<{
|
|
142
142
|
eventId: z.ZodString;
|
|
143
|
-
|
|
143
|
+
eventSchoolId: z.ZodOptional<z.ZodString>;
|
|
144
144
|
}, "strip", z.ZodTypeAny, {
|
|
145
145
|
eventId: string;
|
|
146
|
-
|
|
146
|
+
eventSchoolId?: string | undefined;
|
|
147
147
|
}, {
|
|
148
148
|
eventId: string;
|
|
149
|
-
|
|
149
|
+
eventSchoolId?: string | undefined;
|
|
150
150
|
}>;
|
|
151
151
|
response: z.ZodObject<{
|
|
152
|
-
|
|
152
|
+
code: z.ZodEnum<["found", "notFound"]>;
|
|
153
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
153
154
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
|
|
155
|
+
code: "notFound" | "found";
|
|
156
|
+
details?: any;
|
|
155
157
|
}, {
|
|
156
|
-
|
|
158
|
+
code: "notFound" | "found";
|
|
159
|
+
details?: any;
|
|
157
160
|
}>;
|
|
158
161
|
};
|
|
159
|
-
"events-
|
|
162
|
+
"events-getParentSignUp": {
|
|
160
163
|
request: z.ZodObject<{
|
|
161
164
|
eventId: z.ZodString;
|
|
162
|
-
|
|
165
|
+
eventParentId: z.ZodOptional<z.ZodString>;
|
|
163
166
|
}, "strip", z.ZodTypeAny, {
|
|
164
167
|
eventId: string;
|
|
165
|
-
|
|
168
|
+
eventParentId?: string | undefined;
|
|
166
169
|
}, {
|
|
167
170
|
eventId: string;
|
|
168
|
-
|
|
171
|
+
eventParentId?: string | undefined;
|
|
169
172
|
}>;
|
|
170
173
|
response: z.ZodObject<{
|
|
171
|
-
code: z.ZodEnum<["found", "notFound"]>;
|
|
174
|
+
code: z.ZodEnum<["found", "notFound", "notAccepting"]>;
|
|
172
175
|
details: z.ZodOptional<z.ZodAny>;
|
|
173
176
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
code: "notFound" | "found";
|
|
177
|
+
code: "notFound" | "found" | "notAccepting";
|
|
175
178
|
details?: any;
|
|
176
179
|
}, {
|
|
177
|
-
code: "notFound" | "found";
|
|
180
|
+
code: "notFound" | "found" | "notAccepting";
|
|
178
181
|
details?: any;
|
|
179
182
|
}>;
|
|
180
183
|
};
|
|
184
|
+
"events-updateParentSignUp": {
|
|
185
|
+
request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
186
|
+
action: z.ZodLiteral<"signUp">;
|
|
187
|
+
eventId: z.ZodString;
|
|
188
|
+
forename: z.ZodString;
|
|
189
|
+
surname: z.ZodString;
|
|
190
|
+
email: z.ZodString;
|
|
191
|
+
schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
192
|
+
adults: z.ZodNumber;
|
|
193
|
+
children: z.ZodNumber;
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
action: "signUp";
|
|
196
|
+
children: number;
|
|
197
|
+
email: string;
|
|
198
|
+
forename: string;
|
|
199
|
+
surname: string;
|
|
200
|
+
eventId: string;
|
|
201
|
+
adults: number;
|
|
202
|
+
schoolName?: string | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
action: "signUp";
|
|
205
|
+
children: number;
|
|
206
|
+
email: string;
|
|
207
|
+
forename: string;
|
|
208
|
+
surname: string;
|
|
209
|
+
eventId: string;
|
|
210
|
+
adults: number;
|
|
211
|
+
schoolName?: string | null | undefined;
|
|
212
|
+
}>, z.ZodObject<{
|
|
213
|
+
action: z.ZodLiteral<"update">;
|
|
214
|
+
eventParentId: z.ZodString;
|
|
215
|
+
adults: z.ZodNumber;
|
|
216
|
+
children: z.ZodNumber;
|
|
217
|
+
schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
action: "update";
|
|
220
|
+
children: number;
|
|
221
|
+
eventParentId: string;
|
|
222
|
+
adults: number;
|
|
223
|
+
schoolName?: string | undefined;
|
|
224
|
+
}, {
|
|
225
|
+
action: "update";
|
|
226
|
+
children: number;
|
|
227
|
+
eventParentId: string;
|
|
228
|
+
adults: number;
|
|
229
|
+
schoolName?: string | null | undefined;
|
|
230
|
+
}>, z.ZodObject<{
|
|
231
|
+
action: z.ZodLiteral<"cancel">;
|
|
232
|
+
eventParentId: z.ZodString;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
action: "cancel";
|
|
235
|
+
eventParentId: string;
|
|
236
|
+
}, {
|
|
237
|
+
action: "cancel";
|
|
238
|
+
eventParentId: string;
|
|
239
|
+
}>, z.ZodObject<{
|
|
240
|
+
action: z.ZodLiteral<"submitForm">;
|
|
241
|
+
eventParentId: z.ZodString;
|
|
242
|
+
formId: z.ZodString;
|
|
243
|
+
formData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
formData: Record<string, unknown>;
|
|
246
|
+
action: "submitForm";
|
|
247
|
+
eventParentId: string;
|
|
248
|
+
formId: string;
|
|
249
|
+
}, {
|
|
250
|
+
formData: Record<string, unknown>;
|
|
251
|
+
action: "submitForm";
|
|
252
|
+
eventParentId: string;
|
|
253
|
+
formId: string;
|
|
254
|
+
}>, z.ZodObject<{
|
|
255
|
+
action: z.ZodLiteral<"viewFile">;
|
|
256
|
+
eventParentId: z.ZodString;
|
|
257
|
+
fileId: z.ZodString;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
action: "viewFile";
|
|
260
|
+
eventParentId: string;
|
|
261
|
+
fileId: string;
|
|
262
|
+
}, {
|
|
263
|
+
action: "viewFile";
|
|
264
|
+
eventParentId: string;
|
|
265
|
+
fileId: string;
|
|
266
|
+
}>, z.ZodObject<{
|
|
267
|
+
action: z.ZodLiteral<"upload">;
|
|
268
|
+
eventParentId: z.ZodString;
|
|
269
|
+
index: z.ZodNumber;
|
|
270
|
+
fileName: z.ZodString;
|
|
271
|
+
}, "strip", z.ZodTypeAny, {
|
|
272
|
+
index: number;
|
|
273
|
+
action: "upload";
|
|
274
|
+
fileName: string;
|
|
275
|
+
eventParentId: string;
|
|
276
|
+
}, {
|
|
277
|
+
index: number;
|
|
278
|
+
action: "upload";
|
|
279
|
+
fileName: string;
|
|
280
|
+
eventParentId: string;
|
|
281
|
+
}>]>;
|
|
282
|
+
response: z.ZodObject<{
|
|
283
|
+
code: z.ZodEnum<["updated", "emailed", "full"]>;
|
|
284
|
+
eventParentId: z.ZodOptional<z.ZodString>;
|
|
285
|
+
url: z.ZodOptional<z.ZodString>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
code: "full" | "updated" | "emailed";
|
|
288
|
+
url?: string | undefined;
|
|
289
|
+
eventParentId?: string | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
code: "full" | "updated" | "emailed";
|
|
292
|
+
url?: string | undefined;
|
|
293
|
+
eventParentId?: string | undefined;
|
|
294
|
+
}>;
|
|
295
|
+
};
|
|
181
296
|
"events-updateNonUserSchoolInvite": {
|
|
182
297
|
request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
183
298
|
action: z.ZodLiteral<"details">;
|
|
@@ -308,10 +423,10 @@ export declare const eventsCallables: {
|
|
|
308
423
|
code: z.ZodEnum<["joined", "notFound", "notAccepting"]>;
|
|
309
424
|
externalEventAttendeeId: z.ZodOptional<z.ZodString>;
|
|
310
425
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
-
code: "notFound" | "
|
|
426
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
312
427
|
externalEventAttendeeId?: string | undefined;
|
|
313
428
|
}, {
|
|
314
|
-
code: "notFound" | "
|
|
429
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
315
430
|
externalEventAttendeeId?: string | undefined;
|
|
316
431
|
}>>;
|
|
317
432
|
};
|
package/lib/callables/events.js
CHANGED
|
@@ -78,19 +78,6 @@ exports.eventsCallables = {
|
|
|
78
78
|
remaining: zod_1.z.number(),
|
|
79
79
|
}),
|
|
80
80
|
},
|
|
81
|
-
// Hub staff only. Opens the event to schools not on the platform, using one of the hub's events
|
|
82
|
-
// for the academic year there and then (free if the event is already counted this year), so the
|
|
83
|
-
// limit is hit by the hub here and never by a school on the sign-up link. Fails with
|
|
84
|
-
// resource-exhausted when none are left. acceptSchools also turns on ExternalEvent.acceptingSchools.
|
|
85
|
-
"events-enableNonUserSchools": {
|
|
86
|
-
request: zod_1.z.object({
|
|
87
|
-
eventId: zod_1.z.string().min(1),
|
|
88
|
-
acceptSchools: (0, types_1.optionalField)(zod_1.z.boolean()),
|
|
89
|
-
}),
|
|
90
|
-
response: zod_1.z.object({
|
|
91
|
-
remaining: zod_1.z.number(),
|
|
92
|
-
}),
|
|
93
|
-
},
|
|
94
81
|
// Public: the externalEventSchools id in the invite link is the credential, as for employers.
|
|
95
82
|
// Only works for a school invited by email (ExternalEventCareersSchool.nonUserSchool). Without
|
|
96
83
|
// eventSchoolId it's the hub's shareable sign-up link: the event, with no eventSchool.
|
|
@@ -107,6 +94,73 @@ exports.eventsCallables = {
|
|
|
107
94
|
// Public, same credential as above. The changes an email-only school makes on its invite page.
|
|
108
95
|
// Slot bookings go through events-bookEventSlots and tasks through the same callables employers
|
|
109
96
|
// use (events-submitExternalForm, events-updateFileView, events-uploadRequiredFile).
|
|
97
|
+
// Public: an event's parent sign-up link. Without eventParentId, the event and the places left, for
|
|
98
|
+
// a parent signing up (notAccepting once the organiser closes sign-ups or the places run out). With it,
|
|
99
|
+
// that parent's booking too: the externalEventParents id is the credential, as for non-user schools.
|
|
100
|
+
// details: {event, eventParent?, organiserName, branding, forms, files, schools (hub events: names of
|
|
101
|
+
// schools on the event, for the parent to pick), placesLeft: {adults?, children?}}.
|
|
102
|
+
"events-getParentSignUp": {
|
|
103
|
+
request: zod_1.z.object({
|
|
104
|
+
eventId: zod_1.z.string().min(1),
|
|
105
|
+
eventParentId: zod_1.z.string().min(1).optional(),
|
|
106
|
+
}),
|
|
107
|
+
response: zod_1.z.object({
|
|
108
|
+
code: zod_1.z.enum(["found", "notFound", "notAccepting"]),
|
|
109
|
+
details: zod_1.z.any().optional(),
|
|
110
|
+
}),
|
|
111
|
+
},
|
|
112
|
+
// Public, same credential. "signUp" makes the externalEventParents doc and emails the parent their
|
|
113
|
+
// booking link; an email already signed up is emailed its link instead ("emailed"). Tasks are the
|
|
114
|
+
// event's parentInvites: uploads go to storage at instituteEvents/:oId/:eventId/parent/:eventParentId/:index
|
|
115
|
+
// first, then "upload" records them.
|
|
116
|
+
"events-updateParentSignUp": {
|
|
117
|
+
request: zod_1.z.discriminatedUnion("action", [
|
|
118
|
+
zod_1.z.object({
|
|
119
|
+
action: zod_1.z.literal("signUp"),
|
|
120
|
+
eventId: zod_1.z.string().min(1),
|
|
121
|
+
forename: zod_1.z.string().trim().min(1),
|
|
122
|
+
surname: zod_1.z.string().trim().min(1),
|
|
123
|
+
email: zod_1.z.string().trim().email(),
|
|
124
|
+
schoolName: (0, types_1.optionalField)(zod_1.z.string().trim()),
|
|
125
|
+
adults: zod_1.z.number().int().min(0),
|
|
126
|
+
children: zod_1.z.number().int().min(0),
|
|
127
|
+
}),
|
|
128
|
+
zod_1.z.object({
|
|
129
|
+
action: zod_1.z.literal("update"),
|
|
130
|
+
eventParentId: zod_1.z.string().min(1),
|
|
131
|
+
adults: zod_1.z.number().int().min(0),
|
|
132
|
+
children: zod_1.z.number().int().min(0),
|
|
133
|
+
schoolName: (0, types_1.optionalField)(zod_1.z.string().trim()),
|
|
134
|
+
}),
|
|
135
|
+
zod_1.z.object({
|
|
136
|
+
action: zod_1.z.literal("cancel"),
|
|
137
|
+
eventParentId: zod_1.z.string().min(1),
|
|
138
|
+
}),
|
|
139
|
+
zod_1.z.object({
|
|
140
|
+
action: zod_1.z.literal("submitForm"),
|
|
141
|
+
eventParentId: zod_1.z.string().min(1),
|
|
142
|
+
formId: zod_1.z.string().min(1),
|
|
143
|
+
formData: zod_1.z.record(zod_1.z.unknown()),
|
|
144
|
+
}),
|
|
145
|
+
zod_1.z.object({
|
|
146
|
+
action: zod_1.z.literal("viewFile"),
|
|
147
|
+
eventParentId: zod_1.z.string().min(1),
|
|
148
|
+
fileId: zod_1.z.string().min(1),
|
|
149
|
+
}),
|
|
150
|
+
zod_1.z.object({
|
|
151
|
+
action: zod_1.z.literal("upload"),
|
|
152
|
+
eventParentId: zod_1.z.string().min(1),
|
|
153
|
+
index: zod_1.z.number().int().min(0),
|
|
154
|
+
fileName: zod_1.z.string().min(1),
|
|
155
|
+
}),
|
|
156
|
+
]),
|
|
157
|
+
response: zod_1.z.object({
|
|
158
|
+
code: zod_1.z.enum(["updated", "emailed", "full"]),
|
|
159
|
+
eventParentId: zod_1.z.string().optional(),
|
|
160
|
+
// "upload": the uploaded file's download URL.
|
|
161
|
+
url: zod_1.z.string().optional(),
|
|
162
|
+
}),
|
|
163
|
+
},
|
|
110
164
|
"events-updateNonUserSchoolInvite": {
|
|
111
165
|
request: zod_1.z.discriminatedUnion("action", [
|
|
112
166
|
zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/callables/events.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB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,CAAC;YACzD,iBAAiB,EAAE,IAAA,qBAAa,EAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACnD,QAAQ,EAAE,IAAA,qBAAa,EAAC,OAAC,CAAC,MAAM,EAAE,CAAC;YACnC,aAAa,EAAE,IAAA,qBAAa,EAAC,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;SAC3E,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;YACpD,uBAAuB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACjD,CAAC,CAAC,QAAQ,EAAE;KAChB;IACD,yDAAyD;IACzD,+BAA+B,EAAE;QAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YAChC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;SAC5B,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;SAC5B,CAAC;KACL;CACoB,CAAC"}
|
|
@@ -3369,47 +3369,162 @@ export declare const allCallables: {
|
|
|
3369
3369
|
duplicates?: number | undefined;
|
|
3370
3370
|
}>;
|
|
3371
3371
|
};
|
|
3372
|
-
"events-
|
|
3372
|
+
"events-getNonUserSchoolInvite": {
|
|
3373
3373
|
request: z.ZodObject<{
|
|
3374
3374
|
eventId: z.ZodString;
|
|
3375
|
-
|
|
3375
|
+
eventSchoolId: z.ZodOptional<z.ZodString>;
|
|
3376
3376
|
}, "strip", z.ZodTypeAny, {
|
|
3377
3377
|
eventId: string;
|
|
3378
|
-
|
|
3378
|
+
eventSchoolId?: string | undefined;
|
|
3379
3379
|
}, {
|
|
3380
3380
|
eventId: string;
|
|
3381
|
-
|
|
3381
|
+
eventSchoolId?: string | undefined;
|
|
3382
3382
|
}>;
|
|
3383
3383
|
response: z.ZodObject<{
|
|
3384
|
-
|
|
3384
|
+
code: z.ZodEnum<["found", "notFound"]>;
|
|
3385
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
3385
3386
|
}, "strip", z.ZodTypeAny, {
|
|
3386
|
-
|
|
3387
|
+
code: "notFound" | "found";
|
|
3388
|
+
details?: any;
|
|
3387
3389
|
}, {
|
|
3388
|
-
|
|
3390
|
+
code: "notFound" | "found";
|
|
3391
|
+
details?: any;
|
|
3389
3392
|
}>;
|
|
3390
3393
|
};
|
|
3391
|
-
"events-
|
|
3394
|
+
"events-getParentSignUp": {
|
|
3392
3395
|
request: z.ZodObject<{
|
|
3393
3396
|
eventId: z.ZodString;
|
|
3394
|
-
|
|
3397
|
+
eventParentId: z.ZodOptional<z.ZodString>;
|
|
3395
3398
|
}, "strip", z.ZodTypeAny, {
|
|
3396
3399
|
eventId: string;
|
|
3397
|
-
|
|
3400
|
+
eventParentId?: string | undefined;
|
|
3398
3401
|
}, {
|
|
3399
3402
|
eventId: string;
|
|
3400
|
-
|
|
3403
|
+
eventParentId?: string | undefined;
|
|
3401
3404
|
}>;
|
|
3402
3405
|
response: z.ZodObject<{
|
|
3403
|
-
code: z.ZodEnum<["found", "notFound"]>;
|
|
3406
|
+
code: z.ZodEnum<["found", "notFound", "notAccepting"]>;
|
|
3404
3407
|
details: z.ZodOptional<z.ZodAny>;
|
|
3405
3408
|
}, "strip", z.ZodTypeAny, {
|
|
3406
|
-
code: "notFound" | "found";
|
|
3409
|
+
code: "notFound" | "found" | "notAccepting";
|
|
3407
3410
|
details?: any;
|
|
3408
3411
|
}, {
|
|
3409
|
-
code: "notFound" | "found";
|
|
3412
|
+
code: "notFound" | "found" | "notAccepting";
|
|
3410
3413
|
details?: any;
|
|
3411
3414
|
}>;
|
|
3412
3415
|
};
|
|
3416
|
+
"events-updateParentSignUp": {
|
|
3417
|
+
request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
3418
|
+
action: z.ZodLiteral<"signUp">;
|
|
3419
|
+
eventId: z.ZodString;
|
|
3420
|
+
forename: z.ZodString;
|
|
3421
|
+
surname: z.ZodString;
|
|
3422
|
+
email: z.ZodString;
|
|
3423
|
+
schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
3424
|
+
adults: z.ZodNumber;
|
|
3425
|
+
children: z.ZodNumber;
|
|
3426
|
+
}, "strip", z.ZodTypeAny, {
|
|
3427
|
+
action: "signUp";
|
|
3428
|
+
children: number;
|
|
3429
|
+
email: string;
|
|
3430
|
+
forename: string;
|
|
3431
|
+
surname: string;
|
|
3432
|
+
eventId: string;
|
|
3433
|
+
adults: number;
|
|
3434
|
+
schoolName?: string | undefined;
|
|
3435
|
+
}, {
|
|
3436
|
+
action: "signUp";
|
|
3437
|
+
children: number;
|
|
3438
|
+
email: string;
|
|
3439
|
+
forename: string;
|
|
3440
|
+
surname: string;
|
|
3441
|
+
eventId: string;
|
|
3442
|
+
adults: number;
|
|
3443
|
+
schoolName?: string | null | undefined;
|
|
3444
|
+
}>, z.ZodObject<{
|
|
3445
|
+
action: z.ZodLiteral<"update">;
|
|
3446
|
+
eventParentId: z.ZodString;
|
|
3447
|
+
adults: z.ZodNumber;
|
|
3448
|
+
children: z.ZodNumber;
|
|
3449
|
+
schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
3450
|
+
}, "strip", z.ZodTypeAny, {
|
|
3451
|
+
action: "update";
|
|
3452
|
+
children: number;
|
|
3453
|
+
eventParentId: string;
|
|
3454
|
+
adults: number;
|
|
3455
|
+
schoolName?: string | undefined;
|
|
3456
|
+
}, {
|
|
3457
|
+
action: "update";
|
|
3458
|
+
children: number;
|
|
3459
|
+
eventParentId: string;
|
|
3460
|
+
adults: number;
|
|
3461
|
+
schoolName?: string | null | undefined;
|
|
3462
|
+
}>, z.ZodObject<{
|
|
3463
|
+
action: z.ZodLiteral<"cancel">;
|
|
3464
|
+
eventParentId: z.ZodString;
|
|
3465
|
+
}, "strip", z.ZodTypeAny, {
|
|
3466
|
+
action: "cancel";
|
|
3467
|
+
eventParentId: string;
|
|
3468
|
+
}, {
|
|
3469
|
+
action: "cancel";
|
|
3470
|
+
eventParentId: string;
|
|
3471
|
+
}>, z.ZodObject<{
|
|
3472
|
+
action: z.ZodLiteral<"submitForm">;
|
|
3473
|
+
eventParentId: z.ZodString;
|
|
3474
|
+
formId: z.ZodString;
|
|
3475
|
+
formData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3476
|
+
}, "strip", z.ZodTypeAny, {
|
|
3477
|
+
formData: Record<string, unknown>;
|
|
3478
|
+
action: "submitForm";
|
|
3479
|
+
eventParentId: string;
|
|
3480
|
+
formId: string;
|
|
3481
|
+
}, {
|
|
3482
|
+
formData: Record<string, unknown>;
|
|
3483
|
+
action: "submitForm";
|
|
3484
|
+
eventParentId: string;
|
|
3485
|
+
formId: string;
|
|
3486
|
+
}>, z.ZodObject<{
|
|
3487
|
+
action: z.ZodLiteral<"viewFile">;
|
|
3488
|
+
eventParentId: z.ZodString;
|
|
3489
|
+
fileId: z.ZodString;
|
|
3490
|
+
}, "strip", z.ZodTypeAny, {
|
|
3491
|
+
action: "viewFile";
|
|
3492
|
+
eventParentId: string;
|
|
3493
|
+
fileId: string;
|
|
3494
|
+
}, {
|
|
3495
|
+
action: "viewFile";
|
|
3496
|
+
eventParentId: string;
|
|
3497
|
+
fileId: string;
|
|
3498
|
+
}>, z.ZodObject<{
|
|
3499
|
+
action: z.ZodLiteral<"upload">;
|
|
3500
|
+
eventParentId: z.ZodString;
|
|
3501
|
+
index: z.ZodNumber;
|
|
3502
|
+
fileName: z.ZodString;
|
|
3503
|
+
}, "strip", z.ZodTypeAny, {
|
|
3504
|
+
index: number;
|
|
3505
|
+
action: "upload";
|
|
3506
|
+
fileName: string;
|
|
3507
|
+
eventParentId: string;
|
|
3508
|
+
}, {
|
|
3509
|
+
index: number;
|
|
3510
|
+
action: "upload";
|
|
3511
|
+
fileName: string;
|
|
3512
|
+
eventParentId: string;
|
|
3513
|
+
}>]>;
|
|
3514
|
+
response: z.ZodObject<{
|
|
3515
|
+
code: z.ZodEnum<["updated", "emailed", "full"]>;
|
|
3516
|
+
eventParentId: z.ZodOptional<z.ZodString>;
|
|
3517
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3518
|
+
}, "strip", z.ZodTypeAny, {
|
|
3519
|
+
code: "full" | "updated" | "emailed";
|
|
3520
|
+
url?: string | undefined;
|
|
3521
|
+
eventParentId?: string | undefined;
|
|
3522
|
+
}, {
|
|
3523
|
+
code: "full" | "updated" | "emailed";
|
|
3524
|
+
url?: string | undefined;
|
|
3525
|
+
eventParentId?: string | undefined;
|
|
3526
|
+
}>;
|
|
3527
|
+
};
|
|
3413
3528
|
"events-updateNonUserSchoolInvite": {
|
|
3414
3529
|
request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
3415
3530
|
action: z.ZodLiteral<"details">;
|
|
@@ -3540,10 +3655,10 @@ export declare const allCallables: {
|
|
|
3540
3655
|
code: z.ZodEnum<["joined", "notFound", "notAccepting"]>;
|
|
3541
3656
|
externalEventAttendeeId: z.ZodOptional<z.ZodString>;
|
|
3542
3657
|
}, "strip", z.ZodTypeAny, {
|
|
3543
|
-
code: "notFound" | "
|
|
3658
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
3544
3659
|
externalEventAttendeeId?: string | undefined;
|
|
3545
3660
|
}, {
|
|
3546
|
-
code: "notFound" | "
|
|
3661
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
3547
3662
|
externalEventAttendeeId?: string | undefined;
|
|
3548
3663
|
}>>;
|
|
3549
3664
|
};
|
|
@@ -3814,47 +3929,162 @@ export declare const callableGroups: {
|
|
|
3814
3929
|
duplicates?: number | undefined;
|
|
3815
3930
|
}>;
|
|
3816
3931
|
};
|
|
3817
|
-
"events-
|
|
3932
|
+
"events-getNonUserSchoolInvite": {
|
|
3818
3933
|
request: z.ZodObject<{
|
|
3819
3934
|
eventId: z.ZodString;
|
|
3820
|
-
|
|
3935
|
+
eventSchoolId: z.ZodOptional<z.ZodString>;
|
|
3821
3936
|
}, "strip", z.ZodTypeAny, {
|
|
3822
3937
|
eventId: string;
|
|
3823
|
-
|
|
3938
|
+
eventSchoolId?: string | undefined;
|
|
3824
3939
|
}, {
|
|
3825
3940
|
eventId: string;
|
|
3826
|
-
|
|
3941
|
+
eventSchoolId?: string | undefined;
|
|
3827
3942
|
}>;
|
|
3828
3943
|
response: z.ZodObject<{
|
|
3829
|
-
|
|
3944
|
+
code: z.ZodEnum<["found", "notFound"]>;
|
|
3945
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
3830
3946
|
}, "strip", z.ZodTypeAny, {
|
|
3831
|
-
|
|
3947
|
+
code: "notFound" | "found";
|
|
3948
|
+
details?: any;
|
|
3832
3949
|
}, {
|
|
3833
|
-
|
|
3950
|
+
code: "notFound" | "found";
|
|
3951
|
+
details?: any;
|
|
3834
3952
|
}>;
|
|
3835
3953
|
};
|
|
3836
|
-
"events-
|
|
3954
|
+
"events-getParentSignUp": {
|
|
3837
3955
|
request: z.ZodObject<{
|
|
3838
3956
|
eventId: z.ZodString;
|
|
3839
|
-
|
|
3957
|
+
eventParentId: z.ZodOptional<z.ZodString>;
|
|
3840
3958
|
}, "strip", z.ZodTypeAny, {
|
|
3841
3959
|
eventId: string;
|
|
3842
|
-
|
|
3960
|
+
eventParentId?: string | undefined;
|
|
3843
3961
|
}, {
|
|
3844
3962
|
eventId: string;
|
|
3845
|
-
|
|
3963
|
+
eventParentId?: string | undefined;
|
|
3846
3964
|
}>;
|
|
3847
3965
|
response: z.ZodObject<{
|
|
3848
|
-
code: z.ZodEnum<["found", "notFound"]>;
|
|
3966
|
+
code: z.ZodEnum<["found", "notFound", "notAccepting"]>;
|
|
3849
3967
|
details: z.ZodOptional<z.ZodAny>;
|
|
3850
3968
|
}, "strip", z.ZodTypeAny, {
|
|
3851
|
-
code: "notFound" | "found";
|
|
3969
|
+
code: "notFound" | "found" | "notAccepting";
|
|
3852
3970
|
details?: any;
|
|
3853
3971
|
}, {
|
|
3854
|
-
code: "notFound" | "found";
|
|
3972
|
+
code: "notFound" | "found" | "notAccepting";
|
|
3855
3973
|
details?: any;
|
|
3856
3974
|
}>;
|
|
3857
3975
|
};
|
|
3976
|
+
"events-updateParentSignUp": {
|
|
3977
|
+
request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
3978
|
+
action: z.ZodLiteral<"signUp">;
|
|
3979
|
+
eventId: z.ZodString;
|
|
3980
|
+
forename: z.ZodString;
|
|
3981
|
+
surname: z.ZodString;
|
|
3982
|
+
email: z.ZodString;
|
|
3983
|
+
schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
3984
|
+
adults: z.ZodNumber;
|
|
3985
|
+
children: z.ZodNumber;
|
|
3986
|
+
}, "strip", z.ZodTypeAny, {
|
|
3987
|
+
action: "signUp";
|
|
3988
|
+
children: number;
|
|
3989
|
+
email: string;
|
|
3990
|
+
forename: string;
|
|
3991
|
+
surname: string;
|
|
3992
|
+
eventId: string;
|
|
3993
|
+
adults: number;
|
|
3994
|
+
schoolName?: string | undefined;
|
|
3995
|
+
}, {
|
|
3996
|
+
action: "signUp";
|
|
3997
|
+
children: number;
|
|
3998
|
+
email: string;
|
|
3999
|
+
forename: string;
|
|
4000
|
+
surname: string;
|
|
4001
|
+
eventId: string;
|
|
4002
|
+
adults: number;
|
|
4003
|
+
schoolName?: string | null | undefined;
|
|
4004
|
+
}>, z.ZodObject<{
|
|
4005
|
+
action: z.ZodLiteral<"update">;
|
|
4006
|
+
eventParentId: z.ZodString;
|
|
4007
|
+
adults: z.ZodNumber;
|
|
4008
|
+
children: z.ZodNumber;
|
|
4009
|
+
schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
4010
|
+
}, "strip", z.ZodTypeAny, {
|
|
4011
|
+
action: "update";
|
|
4012
|
+
children: number;
|
|
4013
|
+
eventParentId: string;
|
|
4014
|
+
adults: number;
|
|
4015
|
+
schoolName?: string | undefined;
|
|
4016
|
+
}, {
|
|
4017
|
+
action: "update";
|
|
4018
|
+
children: number;
|
|
4019
|
+
eventParentId: string;
|
|
4020
|
+
adults: number;
|
|
4021
|
+
schoolName?: string | null | undefined;
|
|
4022
|
+
}>, z.ZodObject<{
|
|
4023
|
+
action: z.ZodLiteral<"cancel">;
|
|
4024
|
+
eventParentId: z.ZodString;
|
|
4025
|
+
}, "strip", z.ZodTypeAny, {
|
|
4026
|
+
action: "cancel";
|
|
4027
|
+
eventParentId: string;
|
|
4028
|
+
}, {
|
|
4029
|
+
action: "cancel";
|
|
4030
|
+
eventParentId: string;
|
|
4031
|
+
}>, z.ZodObject<{
|
|
4032
|
+
action: z.ZodLiteral<"submitForm">;
|
|
4033
|
+
eventParentId: z.ZodString;
|
|
4034
|
+
formId: z.ZodString;
|
|
4035
|
+
formData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4036
|
+
}, "strip", z.ZodTypeAny, {
|
|
4037
|
+
formData: Record<string, unknown>;
|
|
4038
|
+
action: "submitForm";
|
|
4039
|
+
eventParentId: string;
|
|
4040
|
+
formId: string;
|
|
4041
|
+
}, {
|
|
4042
|
+
formData: Record<string, unknown>;
|
|
4043
|
+
action: "submitForm";
|
|
4044
|
+
eventParentId: string;
|
|
4045
|
+
formId: string;
|
|
4046
|
+
}>, z.ZodObject<{
|
|
4047
|
+
action: z.ZodLiteral<"viewFile">;
|
|
4048
|
+
eventParentId: z.ZodString;
|
|
4049
|
+
fileId: z.ZodString;
|
|
4050
|
+
}, "strip", z.ZodTypeAny, {
|
|
4051
|
+
action: "viewFile";
|
|
4052
|
+
eventParentId: string;
|
|
4053
|
+
fileId: string;
|
|
4054
|
+
}, {
|
|
4055
|
+
action: "viewFile";
|
|
4056
|
+
eventParentId: string;
|
|
4057
|
+
fileId: string;
|
|
4058
|
+
}>, z.ZodObject<{
|
|
4059
|
+
action: z.ZodLiteral<"upload">;
|
|
4060
|
+
eventParentId: z.ZodString;
|
|
4061
|
+
index: z.ZodNumber;
|
|
4062
|
+
fileName: z.ZodString;
|
|
4063
|
+
}, "strip", z.ZodTypeAny, {
|
|
4064
|
+
index: number;
|
|
4065
|
+
action: "upload";
|
|
4066
|
+
fileName: string;
|
|
4067
|
+
eventParentId: string;
|
|
4068
|
+
}, {
|
|
4069
|
+
index: number;
|
|
4070
|
+
action: "upload";
|
|
4071
|
+
fileName: string;
|
|
4072
|
+
eventParentId: string;
|
|
4073
|
+
}>]>;
|
|
4074
|
+
response: z.ZodObject<{
|
|
4075
|
+
code: z.ZodEnum<["updated", "emailed", "full"]>;
|
|
4076
|
+
eventParentId: z.ZodOptional<z.ZodString>;
|
|
4077
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4078
|
+
}, "strip", z.ZodTypeAny, {
|
|
4079
|
+
code: "full" | "updated" | "emailed";
|
|
4080
|
+
url?: string | undefined;
|
|
4081
|
+
eventParentId?: string | undefined;
|
|
4082
|
+
}, {
|
|
4083
|
+
code: "full" | "updated" | "emailed";
|
|
4084
|
+
url?: string | undefined;
|
|
4085
|
+
eventParentId?: string | undefined;
|
|
4086
|
+
}>;
|
|
4087
|
+
};
|
|
3858
4088
|
"events-updateNonUserSchoolInvite": {
|
|
3859
4089
|
request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
3860
4090
|
action: z.ZodLiteral<"details">;
|
|
@@ -3985,10 +4215,10 @@ export declare const callableGroups: {
|
|
|
3985
4215
|
code: z.ZodEnum<["joined", "notFound", "notAccepting"]>;
|
|
3986
4216
|
externalEventAttendeeId: z.ZodOptional<z.ZodString>;
|
|
3987
4217
|
}, "strip", z.ZodTypeAny, {
|
|
3988
|
-
code: "notFound" | "
|
|
4218
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
3989
4219
|
externalEventAttendeeId?: string | undefined;
|
|
3990
4220
|
}, {
|
|
3991
|
-
code: "notFound" | "
|
|
4221
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
3992
4222
|
externalEventAttendeeId?: string | undefined;
|
|
3993
4223
|
}>>;
|
|
3994
4224
|
};
|
package/lib/typeDefinitions.d.ts
CHANGED
|
@@ -2585,6 +2585,22 @@ export type ExternalEvent = {
|
|
|
2585
2585
|
exists?: boolean;
|
|
2586
2586
|
perMatchTasks?: boolean;
|
|
2587
2587
|
};
|
|
2588
|
+
acceptingParents?: boolean;
|
|
2589
|
+
maxParentAdults?: number;
|
|
2590
|
+
maxParentChildren?: number;
|
|
2591
|
+
parentInvites?: {
|
|
2592
|
+
forms?: {
|
|
2593
|
+
form: string;
|
|
2594
|
+
relatedToUpload?: string;
|
|
2595
|
+
visibleTo?: ("employers" | "students" | "parents" | "school")[];
|
|
2596
|
+
}[];
|
|
2597
|
+
files?: string[];
|
|
2598
|
+
requiredFiles?: {
|
|
2599
|
+
fileName: string;
|
|
2600
|
+
fileType: string;
|
|
2601
|
+
visibleTo?: ("employers" | "students" | "parents" | "school")[];
|
|
2602
|
+
}[];
|
|
2603
|
+
};
|
|
2588
2604
|
employerInvites: {
|
|
2589
2605
|
forms?: {
|
|
2590
2606
|
form: string;
|
|
@@ -2650,7 +2666,7 @@ export type ExternalEvent = {
|
|
|
2650
2666
|
provider?: string | false;
|
|
2651
2667
|
school?: string | false;
|
|
2652
2668
|
};
|
|
2653
|
-
completedStages: ("basicDetails" | "eventConfig" | "selectEmployers" | "employerInviteForms" | "sendEmployerInvites" | "setupStudentInvites" | "setupSchoolInvites" | "review" | "created" | "launched")[];
|
|
2669
|
+
completedStages: ("basicDetails" | "eventConfig" | "selectEmployers" | "employerInviteForms" | "sendEmployerInvites" | "setupStudentInvites" | "setupSchoolInvites" | "setupParentInvites" | "review" | "created" | "launched")[];
|
|
2654
2670
|
} & Address;
|
|
2655
2671
|
export type ExternalEventRequest = {
|
|
2656
2672
|
id: string;
|
|
@@ -3491,6 +3507,7 @@ export type EventTimeSlotSetting = {
|
|
|
3491
3507
|
start: string;
|
|
3492
3508
|
end: string;
|
|
3493
3509
|
capacity: number;
|
|
3510
|
+
label?: string;
|
|
3494
3511
|
};
|
|
3495
3512
|
export type ExternalEventCareersSchool = {
|
|
3496
3513
|
oId: string;
|
|
@@ -3626,6 +3643,28 @@ export type ExternalEventCareersSchool = {
|
|
|
3626
3643
|
};
|
|
3627
3644
|
};
|
|
3628
3645
|
};
|
|
3646
|
+
export type ExternalEventParent = {
|
|
3647
|
+
oId: string;
|
|
3648
|
+
eventId: string;
|
|
3649
|
+
visibleTo: string[];
|
|
3650
|
+
created: string;
|
|
3651
|
+
status: "confirmed" | "cancelled" | "removed";
|
|
3652
|
+
forename: string;
|
|
3653
|
+
surname: string;
|
|
3654
|
+
email: string;
|
|
3655
|
+
adults: number;
|
|
3656
|
+
children: number;
|
|
3657
|
+
schoolName?: string;
|
|
3658
|
+
completedInvite?: {
|
|
3659
|
+
filesViewed?: string[];
|
|
3660
|
+
formsCompleted?: {
|
|
3661
|
+
[key: string]: unknown;
|
|
3662
|
+
};
|
|
3663
|
+
filesUploaded?: {
|
|
3664
|
+
[key: number]: string;
|
|
3665
|
+
};
|
|
3666
|
+
};
|
|
3667
|
+
};
|
|
3629
3668
|
export type ExternalEventStudent = {
|
|
3630
3669
|
oId: string;
|
|
3631
3670
|
uid: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeDefinitions.js","sourceRoot":"","sources":["../src/typeDefinitions.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"typ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E,CAAC;AAC/E,CAAC"}
|
package/package.json
CHANGED
package/src/callables/events.ts
CHANGED
|
@@ -76,19 +76,6 @@ export const eventsCallables = {
|
|
|
76
76
|
remaining: z.number(),
|
|
77
77
|
}),
|
|
78
78
|
},
|
|
79
|
-
// Hub staff only. Opens the event to schools not on the platform, using one of the hub's events
|
|
80
|
-
// for the academic year there and then (free if the event is already counted this year), so the
|
|
81
|
-
// limit is hit by the hub here and never by a school on the sign-up link. Fails with
|
|
82
|
-
// resource-exhausted when none are left. acceptSchools also turns on ExternalEvent.acceptingSchools.
|
|
83
|
-
"events-enableNonUserSchools": {
|
|
84
|
-
request: z.object({
|
|
85
|
-
eventId: z.string().min(1),
|
|
86
|
-
acceptSchools: optionalField(z.boolean()),
|
|
87
|
-
}),
|
|
88
|
-
response: z.object({
|
|
89
|
-
remaining: z.number(),
|
|
90
|
-
}),
|
|
91
|
-
},
|
|
92
79
|
// Public: the externalEventSchools id in the invite link is the credential, as for employers.
|
|
93
80
|
// Only works for a school invited by email (ExternalEventCareersSchool.nonUserSchool). Without
|
|
94
81
|
// eventSchoolId it's the hub's shareable sign-up link: the event, with no eventSchool.
|
|
@@ -105,6 +92,73 @@ export const eventsCallables = {
|
|
|
105
92
|
// Public, same credential as above. The changes an email-only school makes on its invite page.
|
|
106
93
|
// Slot bookings go through events-bookEventSlots and tasks through the same callables employers
|
|
107
94
|
// use (events-submitExternalForm, events-updateFileView, events-uploadRequiredFile).
|
|
95
|
+
// Public: an event's parent sign-up link. Without eventParentId, the event and the places left, for
|
|
96
|
+
// a parent signing up (notAccepting once the organiser closes sign-ups or the places run out). With it,
|
|
97
|
+
// that parent's booking too: the externalEventParents id is the credential, as for non-user schools.
|
|
98
|
+
// details: {event, eventParent?, organiserName, branding, forms, files, schools (hub events: names of
|
|
99
|
+
// schools on the event, for the parent to pick), placesLeft: {adults?, children?}}.
|
|
100
|
+
"events-getParentSignUp": {
|
|
101
|
+
request: z.object({
|
|
102
|
+
eventId: z.string().min(1),
|
|
103
|
+
eventParentId: z.string().min(1).optional(),
|
|
104
|
+
}),
|
|
105
|
+
response: z.object({
|
|
106
|
+
code: z.enum(["found", "notFound", "notAccepting"]),
|
|
107
|
+
details: z.any().optional(),
|
|
108
|
+
}),
|
|
109
|
+
},
|
|
110
|
+
// Public, same credential. "signUp" makes the externalEventParents doc and emails the parent their
|
|
111
|
+
// booking link; an email already signed up is emailed its link instead ("emailed"). Tasks are the
|
|
112
|
+
// event's parentInvites: uploads go to storage at instituteEvents/:oId/:eventId/parent/:eventParentId/:index
|
|
113
|
+
// first, then "upload" records them.
|
|
114
|
+
"events-updateParentSignUp": {
|
|
115
|
+
request: z.discriminatedUnion("action", [
|
|
116
|
+
z.object({
|
|
117
|
+
action: z.literal("signUp"),
|
|
118
|
+
eventId: z.string().min(1),
|
|
119
|
+
forename: z.string().trim().min(1),
|
|
120
|
+
surname: z.string().trim().min(1),
|
|
121
|
+
email: z.string().trim().email(),
|
|
122
|
+
schoolName: optionalField(z.string().trim()),
|
|
123
|
+
adults: z.number().int().min(0),
|
|
124
|
+
children: z.number().int().min(0),
|
|
125
|
+
}),
|
|
126
|
+
z.object({
|
|
127
|
+
action: z.literal("update"),
|
|
128
|
+
eventParentId: z.string().min(1),
|
|
129
|
+
adults: z.number().int().min(0),
|
|
130
|
+
children: z.number().int().min(0),
|
|
131
|
+
schoolName: optionalField(z.string().trim()),
|
|
132
|
+
}),
|
|
133
|
+
z.object({
|
|
134
|
+
action: z.literal("cancel"),
|
|
135
|
+
eventParentId: z.string().min(1),
|
|
136
|
+
}),
|
|
137
|
+
z.object({
|
|
138
|
+
action: z.literal("submitForm"),
|
|
139
|
+
eventParentId: z.string().min(1),
|
|
140
|
+
formId: z.string().min(1),
|
|
141
|
+
formData: z.record(z.unknown()),
|
|
142
|
+
}),
|
|
143
|
+
z.object({
|
|
144
|
+
action: z.literal("viewFile"),
|
|
145
|
+
eventParentId: z.string().min(1),
|
|
146
|
+
fileId: z.string().min(1),
|
|
147
|
+
}),
|
|
148
|
+
z.object({
|
|
149
|
+
action: z.literal("upload"),
|
|
150
|
+
eventParentId: z.string().min(1),
|
|
151
|
+
index: z.number().int().min(0),
|
|
152
|
+
fileName: z.string().min(1),
|
|
153
|
+
}),
|
|
154
|
+
]),
|
|
155
|
+
response: z.object({
|
|
156
|
+
code: z.enum(["updated", "emailed", "full"]),
|
|
157
|
+
eventParentId: z.string().optional(),
|
|
158
|
+
// "upload": the uploaded file's download URL.
|
|
159
|
+
url: z.string().optional(),
|
|
160
|
+
}),
|
|
161
|
+
},
|
|
108
162
|
"events-updateNonUserSchoolInvite": {
|
|
109
163
|
request: z.discriminatedUnion("action", [
|
|
110
164
|
z.object({
|
package/src/typeDefinitions.ts
CHANGED
|
@@ -2564,6 +2564,16 @@ export type ExternalEvent = {
|
|
|
2564
2564
|
exists?: boolean,
|
|
2565
2565
|
perMatchTasks?: boolean,
|
|
2566
2566
|
},
|
|
2567
|
+
// Parents signing up to an event with parentAttendance set, from its public link
|
|
2568
|
+
// (/event/parents/:oId/:eventId). Each sign-up is an externalEventParents doc.
|
|
2569
|
+
acceptingParents?: boolean,
|
|
2570
|
+
maxParentAdults?: number, // Adult places. Sign-ups close once they're taken.
|
|
2571
|
+
maxParentChildren?: number, // Child places, as above.
|
|
2572
|
+
parentInvites?: {
|
|
2573
|
+
forms?: {form: string, relatedToUpload?: string, visibleTo?: ("employers"|"students"|"parents"|"school")[]}[],
|
|
2574
|
+
files?: string[],
|
|
2575
|
+
requiredFiles?: {fileName: string, fileType: string, visibleTo?: ("employers"|"students"|"parents"|"school")[]}[],
|
|
2576
|
+
},
|
|
2567
2577
|
employerInvites: {
|
|
2568
2578
|
forms?: {form: string, relatedToUpload?: string, visibleTo?: ("employers"|"students"|"parents"|"school")[]}[],
|
|
2569
2579
|
files?: string[],
|
|
@@ -2609,7 +2619,7 @@ export type ExternalEvent = {
|
|
|
2609
2619
|
provider?: string|false,
|
|
2610
2620
|
school?: string|false,
|
|
2611
2621
|
},
|
|
2612
|
-
completedStages: ("basicDetails"|"eventConfig"|"selectEmployers"|"employerInviteForms"|"sendEmployerInvites"|"setupStudentInvites"|"setupSchoolInvites"|"review"|"created"|"launched")[]
|
|
2622
|
+
completedStages: ("basicDetails"|"eventConfig"|"selectEmployers"|"employerInviteForms"|"sendEmployerInvites"|"setupStudentInvites"|"setupSchoolInvites"|"setupParentInvites"|"review"|"created"|"launched")[]
|
|
2613
2623
|
}&Address
|
|
2614
2624
|
|
|
2615
2625
|
|
|
@@ -3476,6 +3486,7 @@ export type EventTimeSlotSetting = {
|
|
|
3476
3486
|
start: string, // "HH:mm"
|
|
3477
3487
|
end: string, // "HH:mm"
|
|
3478
3488
|
capacity: number, // places in this slot
|
|
3489
|
+
label?: string, // Optional, e.g. "Quiet session". Shown beside the times
|
|
3479
3490
|
};
|
|
3480
3491
|
|
|
3481
3492
|
export type ExternalEventCareersSchool = {
|
|
@@ -3588,6 +3599,29 @@ export type ExternalEventCareersSchool = {
|
|
|
3588
3599
|
}
|
|
3589
3600
|
|
|
3590
3601
|
|
|
3602
|
+
// A parent or carer signed up to an event from its public link, with how many adults and children
|
|
3603
|
+
// they're bringing. They have no account: the doc id is the credential for their booking page
|
|
3604
|
+
// (/event/parents/:oId/:eventId/:eventParentId), as for a school invited by email.
|
|
3605
|
+
export type ExternalEventParent = {
|
|
3606
|
+
oId: string,
|
|
3607
|
+
eventId: string,
|
|
3608
|
+
visibleTo: string[],
|
|
3609
|
+
created: string,
|
|
3610
|
+
status: "confirmed"|"cancelled"|"removed", // "cancelled" by the parent, "removed" by the organiser
|
|
3611
|
+
forename: string,
|
|
3612
|
+
surname: string,
|
|
3613
|
+
email: string,
|
|
3614
|
+
adults: number,
|
|
3615
|
+
children: number,
|
|
3616
|
+
// Careers hub events only: the school their children go to, as they gave it.
|
|
3617
|
+
schoolName?: string,
|
|
3618
|
+
completedInvite?: {
|
|
3619
|
+
filesViewed?: string[],
|
|
3620
|
+
formsCompleted?: {[key: string]: unknown},
|
|
3621
|
+
filesUploaded?: {[key: number]: string},
|
|
3622
|
+
},
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3591
3625
|
export type ExternalEventStudent = {
|
|
3592
3626
|
oId: string,
|
|
3593
3627
|
uid: string,
|