placementt-core 1.400.1235 → 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 +136 -2
- package/lib/callables/events.js +67 -0
- package/lib/callables/events.js.map +1 -1
- package/lib/callables/registry.d.ts +272 -4
- package/lib/typeDefinitions.d.ts +39 -1
- package/lib/typeDefinitions.js.map +1 -1
- package/package.json +1 -1
- package/src/callables/events.ts +67 -0
- package/src/typeDefinitions.ts +34 -1
|
@@ -159,6 +159,140 @@ export declare const eventsCallables: {
|
|
|
159
159
|
details?: any;
|
|
160
160
|
}>;
|
|
161
161
|
};
|
|
162
|
+
"events-getParentSignUp": {
|
|
163
|
+
request: z.ZodObject<{
|
|
164
|
+
eventId: z.ZodString;
|
|
165
|
+
eventParentId: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
eventId: string;
|
|
168
|
+
eventParentId?: string | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
eventId: string;
|
|
171
|
+
eventParentId?: string | undefined;
|
|
172
|
+
}>;
|
|
173
|
+
response: z.ZodObject<{
|
|
174
|
+
code: z.ZodEnum<["found", "notFound", "notAccepting"]>;
|
|
175
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
code: "notFound" | "found" | "notAccepting";
|
|
178
|
+
details?: any;
|
|
179
|
+
}, {
|
|
180
|
+
code: "notFound" | "found" | "notAccepting";
|
|
181
|
+
details?: any;
|
|
182
|
+
}>;
|
|
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
|
+
};
|
|
162
296
|
"events-updateNonUserSchoolInvite": {
|
|
163
297
|
request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
164
298
|
action: z.ZodLiteral<"details">;
|
|
@@ -289,10 +423,10 @@ export declare const eventsCallables: {
|
|
|
289
423
|
code: z.ZodEnum<["joined", "notFound", "notAccepting"]>;
|
|
290
424
|
externalEventAttendeeId: z.ZodOptional<z.ZodString>;
|
|
291
425
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
code: "notFound" | "
|
|
426
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
293
427
|
externalEventAttendeeId?: string | undefined;
|
|
294
428
|
}, {
|
|
295
|
-
code: "notFound" | "
|
|
429
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
296
430
|
externalEventAttendeeId?: string | undefined;
|
|
297
431
|
}>>;
|
|
298
432
|
};
|
package/lib/callables/events.js
CHANGED
|
@@ -94,6 +94,73 @@ exports.eventsCallables = {
|
|
|
94
94
|
// Public, same credential as above. The changes an email-only school makes on its invite page.
|
|
95
95
|
// Slot bookings go through events-bookEventSlots and tasks through the same callables employers
|
|
96
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
|
+
},
|
|
97
164
|
"events-updateNonUserSchoolInvite": {
|
|
98
165
|
request: zod_1.z.discriminatedUnion("action", [
|
|
99
166
|
zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/callables/events.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,mCAAqD;AAErD;;;GAGG;AACU,QAAA,eAAe,GAAG;IAC3B,qBAAqB,EAAE;QACnB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;YACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;SACpB,CAAC;QACF,qEAAqE;QACrE,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC;YACvB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CAAC"}
|
|
@@ -3391,6 +3391,140 @@ export declare const allCallables: {
|
|
|
3391
3391
|
details?: any;
|
|
3392
3392
|
}>;
|
|
3393
3393
|
};
|
|
3394
|
+
"events-getParentSignUp": {
|
|
3395
|
+
request: z.ZodObject<{
|
|
3396
|
+
eventId: z.ZodString;
|
|
3397
|
+
eventParentId: z.ZodOptional<z.ZodString>;
|
|
3398
|
+
}, "strip", z.ZodTypeAny, {
|
|
3399
|
+
eventId: string;
|
|
3400
|
+
eventParentId?: string | undefined;
|
|
3401
|
+
}, {
|
|
3402
|
+
eventId: string;
|
|
3403
|
+
eventParentId?: string | undefined;
|
|
3404
|
+
}>;
|
|
3405
|
+
response: z.ZodObject<{
|
|
3406
|
+
code: z.ZodEnum<["found", "notFound", "notAccepting"]>;
|
|
3407
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
3408
|
+
}, "strip", z.ZodTypeAny, {
|
|
3409
|
+
code: "notFound" | "found" | "notAccepting";
|
|
3410
|
+
details?: any;
|
|
3411
|
+
}, {
|
|
3412
|
+
code: "notFound" | "found" | "notAccepting";
|
|
3413
|
+
details?: any;
|
|
3414
|
+
}>;
|
|
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
|
+
};
|
|
3394
3528
|
"events-updateNonUserSchoolInvite": {
|
|
3395
3529
|
request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
3396
3530
|
action: z.ZodLiteral<"details">;
|
|
@@ -3521,10 +3655,10 @@ export declare const allCallables: {
|
|
|
3521
3655
|
code: z.ZodEnum<["joined", "notFound", "notAccepting"]>;
|
|
3522
3656
|
externalEventAttendeeId: z.ZodOptional<z.ZodString>;
|
|
3523
3657
|
}, "strip", z.ZodTypeAny, {
|
|
3524
|
-
code: "notFound" | "
|
|
3658
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
3525
3659
|
externalEventAttendeeId?: string | undefined;
|
|
3526
3660
|
}, {
|
|
3527
|
-
code: "notFound" | "
|
|
3661
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
3528
3662
|
externalEventAttendeeId?: string | undefined;
|
|
3529
3663
|
}>>;
|
|
3530
3664
|
};
|
|
@@ -3817,6 +3951,140 @@ export declare const callableGroups: {
|
|
|
3817
3951
|
details?: any;
|
|
3818
3952
|
}>;
|
|
3819
3953
|
};
|
|
3954
|
+
"events-getParentSignUp": {
|
|
3955
|
+
request: z.ZodObject<{
|
|
3956
|
+
eventId: z.ZodString;
|
|
3957
|
+
eventParentId: z.ZodOptional<z.ZodString>;
|
|
3958
|
+
}, "strip", z.ZodTypeAny, {
|
|
3959
|
+
eventId: string;
|
|
3960
|
+
eventParentId?: string | undefined;
|
|
3961
|
+
}, {
|
|
3962
|
+
eventId: string;
|
|
3963
|
+
eventParentId?: string | undefined;
|
|
3964
|
+
}>;
|
|
3965
|
+
response: z.ZodObject<{
|
|
3966
|
+
code: z.ZodEnum<["found", "notFound", "notAccepting"]>;
|
|
3967
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
3968
|
+
}, "strip", z.ZodTypeAny, {
|
|
3969
|
+
code: "notFound" | "found" | "notAccepting";
|
|
3970
|
+
details?: any;
|
|
3971
|
+
}, {
|
|
3972
|
+
code: "notFound" | "found" | "notAccepting";
|
|
3973
|
+
details?: any;
|
|
3974
|
+
}>;
|
|
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
|
+
};
|
|
3820
4088
|
"events-updateNonUserSchoolInvite": {
|
|
3821
4089
|
request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
3822
4090
|
action: z.ZodLiteral<"details">;
|
|
@@ -3947,10 +4215,10 @@ export declare const callableGroups: {
|
|
|
3947
4215
|
code: z.ZodEnum<["joined", "notFound", "notAccepting"]>;
|
|
3948
4216
|
externalEventAttendeeId: z.ZodOptional<z.ZodString>;
|
|
3949
4217
|
}, "strip", z.ZodTypeAny, {
|
|
3950
|
-
code: "notFound" | "
|
|
4218
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
3951
4219
|
externalEventAttendeeId?: string | undefined;
|
|
3952
4220
|
}, {
|
|
3953
|
-
code: "notFound" | "
|
|
4221
|
+
code: "notFound" | "notAccepting" | "joined";
|
|
3954
4222
|
externalEventAttendeeId?: string | undefined;
|
|
3955
4223
|
}>>;
|
|
3956
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;
|
|
@@ -3627,6 +3643,28 @@ export type ExternalEventCareersSchool = {
|
|
|
3627
3643
|
};
|
|
3628
3644
|
};
|
|
3629
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
|
+
};
|
|
3630
3668
|
export type ExternalEventStudent = {
|
|
3631
3669
|
oId: string;
|
|
3632
3670
|
uid: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeDefinitions.js","sourceRoot":"","sources":["../src/typeDefinitions.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"typeDefinitions.js","sourceRoot":"","sources":["../src/typeDefinitions.ts"],"names":[],"mappings":";;;AA4zIA,sDASC;AAeD,oDAKC;AAaD,0CAEC;AAvtED;;;;;kFAKkF;AACrE,QAAA,qBAAqB,GAAG,SAAS,CAAC;AAClC,QAAA,iBAAiB,GAAG,OAAO,CAAC;AAmoEzC;yEACyE;AAC5D,QAAA,0BAA0B,GAA2C;IAC9E,gBAAgB,EAAE,2BAA2B;IAC7C,mBAAmB,EAAE,sBAAsB;IAC3C,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,qBAAqB;IACzC,UAAU,EAAE,oCAAoC;IAChD,aAAa,EAAE,yBAAyB;IACxC,aAAa,EAAE,wBAAwB;IACvC,KAAK,EAAE,OAAO;CACjB,CAAC;AAEW,QAAA,0BAA0B,GAA+C;IAClF,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,OAAO;CACjB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,SAAgB,qBAAqB,CAAC,SAAsC;IACxE,QAAQ,SAAS,EAAE,CAAC;QACpB,KAAK,MAAM,CAAC,CAAC,OAAO,OAAO,CAAC;QAC5B,KAAK,OAAO,CAAC,CAAC,OAAO,OAAO,CAAC;QAC7B,KAAK,WAAW,CAAC;QACjB,KAAK,OAAO,CAAC;QACb,KAAK,OAAO,CAAC;QACb,OAAO,CAAC,CAAC,OAAO,UAAU,CAAC;IAC3B,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,oBAAoB,CAChC,IAAwC,EACxC,MAA6C;IAE7C,OAAO,IAAI,EAAE,WAAW,IAAI,MAAM,EAAE,YAAY,IAAI,KAAK,CAAC;AAC9D,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,eAAe,CAAC,KAA6D;IACzF,OAAO,GAAG,KAAK,CAAC,cAAc,IAAI,EAAE,IAAI,KAAK,CAAC,aAAa,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;AAC/E,CAAC"}
|
package/package.json
CHANGED
package/src/callables/events.ts
CHANGED
|
@@ -92,6 +92,73 @@ export const eventsCallables = {
|
|
|
92
92
|
// Public, same credential as above. The changes an email-only school makes on its invite page.
|
|
93
93
|
// Slot bookings go through events-bookEventSlots and tasks through the same callables employers
|
|
94
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
|
+
},
|
|
95
162
|
"events-updateNonUserSchoolInvite": {
|
|
96
163
|
request: z.discriminatedUnion("action", [
|
|
97
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
|
|
|
@@ -3589,6 +3599,29 @@ export type ExternalEventCareersSchool = {
|
|
|
3589
3599
|
}
|
|
3590
3600
|
|
|
3591
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
|
+
|
|
3592
3625
|
export type ExternalEventStudent = {
|
|
3593
3626
|
oId: string,
|
|
3594
3627
|
uid: string,
|