placementt-core 1.400.989 → 1.400.990
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.
|
@@ -17,6 +17,7 @@ export declare const allCallables: {
|
|
|
17
17
|
kind: z.ZodEnum<[string, ...string[]]>;
|
|
18
18
|
yearGroups: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
19
19
|
scheduledSendDate: z.ZodString;
|
|
20
|
+
academicYear: z.ZodOptional<z.ZodString>;
|
|
20
21
|
closeAfterDays: z.ZodOptional<z.ZodNumber>;
|
|
21
22
|
emailTemplateId: z.ZodOptional<z.ZodString>;
|
|
22
23
|
students: z.ZodOptional<z.ZodString>;
|
|
@@ -40,6 +41,7 @@ export declare const allCallables: {
|
|
|
40
41
|
autoSend: z.ZodOptional<z.ZodBoolean>;
|
|
41
42
|
draft: z.ZodOptional<z.ZodBoolean>;
|
|
42
43
|
resolveRecipientsAtSend: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
kindConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
45
|
}, "strip", z.ZodTypeAny, {
|
|
44
46
|
oId: string;
|
|
45
47
|
kind: string;
|
|
@@ -49,6 +51,7 @@ export declare const allCallables: {
|
|
|
49
51
|
yearGroups?: number[] | undefined;
|
|
50
52
|
students?: string | undefined;
|
|
51
53
|
draft?: boolean | undefined;
|
|
54
|
+
academicYear?: string | undefined;
|
|
52
55
|
closeAfterDays?: number | undefined;
|
|
53
56
|
emailTemplateId?: string | undefined;
|
|
54
57
|
raters?: {
|
|
@@ -60,6 +63,7 @@ export declare const allCallables: {
|
|
|
60
63
|
threadKey?: string | undefined;
|
|
61
64
|
autoSend?: boolean | undefined;
|
|
62
65
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
66
|
+
kindConfig?: Record<string, unknown> | undefined;
|
|
63
67
|
}, {
|
|
64
68
|
oId: string;
|
|
65
69
|
kind: string;
|
|
@@ -69,6 +73,7 @@ export declare const allCallables: {
|
|
|
69
73
|
yearGroups?: number[] | undefined;
|
|
70
74
|
students?: string | undefined;
|
|
71
75
|
draft?: boolean | undefined;
|
|
76
|
+
academicYear?: string | undefined;
|
|
72
77
|
closeAfterDays?: number | undefined;
|
|
73
78
|
emailTemplateId?: string | undefined;
|
|
74
79
|
raters?: {
|
|
@@ -80,6 +85,7 @@ export declare const allCallables: {
|
|
|
80
85
|
threadKey?: string | undefined;
|
|
81
86
|
autoSend?: boolean | undefined;
|
|
82
87
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
88
|
+
kindConfig?: Record<string, unknown> | undefined;
|
|
83
89
|
}>;
|
|
84
90
|
response: z.ZodObject<{
|
|
85
91
|
created: z.ZodArray<z.ZodObject<{
|
|
@@ -206,6 +212,37 @@ export declare const allCallables: {
|
|
|
206
212
|
autoSend: boolean;
|
|
207
213
|
}>;
|
|
208
214
|
};
|
|
215
|
+
"surveys-updateSurveyCycleSettings": {
|
|
216
|
+
request: z.ZodObject<{
|
|
217
|
+
cycleId: z.ZodString;
|
|
218
|
+
scheduledSendDate: z.ZodOptional<z.ZodString>;
|
|
219
|
+
emailTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
|
+
title: z.ZodOptional<z.ZodString>;
|
|
221
|
+
description: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
cycleId: string;
|
|
224
|
+
title?: string | undefined;
|
|
225
|
+
description?: string | undefined;
|
|
226
|
+
scheduledSendDate?: string | undefined;
|
|
227
|
+
emailTemplateId?: string | null | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
cycleId: string;
|
|
230
|
+
title?: string | undefined;
|
|
231
|
+
description?: string | undefined;
|
|
232
|
+
scheduledSendDate?: string | undefined;
|
|
233
|
+
emailTemplateId?: string | null | undefined;
|
|
234
|
+
}>;
|
|
235
|
+
response: z.ZodObject<{
|
|
236
|
+
cycleId: z.ZodString;
|
|
237
|
+
updated: z.ZodBoolean;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
cycleId: string;
|
|
240
|
+
updated: boolean;
|
|
241
|
+
}, {
|
|
242
|
+
cycleId: string;
|
|
243
|
+
updated: boolean;
|
|
244
|
+
}>;
|
|
245
|
+
};
|
|
209
246
|
"surveys-resendSurveyInvite": {
|
|
210
247
|
request: z.ZodObject<{
|
|
211
248
|
requestId: z.ZodString;
|
|
@@ -231,6 +268,22 @@ export declare const allCallables: {
|
|
|
231
268
|
userEmailMismatch: boolean;
|
|
232
269
|
}>;
|
|
233
270
|
};
|
|
271
|
+
"surveys-sendAlumniCheckInNow": {
|
|
272
|
+
request: z.ZodObject<{
|
|
273
|
+
alumniId: z.ZodString;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
alumniId: string;
|
|
276
|
+
}, {
|
|
277
|
+
alumniId: string;
|
|
278
|
+
}>;
|
|
279
|
+
response: z.ZodObject<{
|
|
280
|
+
sent: z.ZodBoolean;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
sent: boolean;
|
|
283
|
+
}, {
|
|
284
|
+
sent: boolean;
|
|
285
|
+
}>;
|
|
286
|
+
};
|
|
234
287
|
"surveys-deleteSurveyCycle": {
|
|
235
288
|
request: z.ZodObject<{
|
|
236
289
|
cycleId: z.ZodString;
|
|
@@ -504,6 +557,7 @@ export declare const callableGroups: {
|
|
|
504
557
|
kind: z.ZodEnum<[string, ...string[]]>;
|
|
505
558
|
yearGroups: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
506
559
|
scheduledSendDate: z.ZodString;
|
|
560
|
+
academicYear: z.ZodOptional<z.ZodString>;
|
|
507
561
|
closeAfterDays: z.ZodOptional<z.ZodNumber>;
|
|
508
562
|
emailTemplateId: z.ZodOptional<z.ZodString>;
|
|
509
563
|
students: z.ZodOptional<z.ZodString>;
|
|
@@ -527,6 +581,7 @@ export declare const callableGroups: {
|
|
|
527
581
|
autoSend: z.ZodOptional<z.ZodBoolean>;
|
|
528
582
|
draft: z.ZodOptional<z.ZodBoolean>;
|
|
529
583
|
resolveRecipientsAtSend: z.ZodOptional<z.ZodBoolean>;
|
|
584
|
+
kindConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
530
585
|
}, "strip", z.ZodTypeAny, {
|
|
531
586
|
oId: string;
|
|
532
587
|
kind: string;
|
|
@@ -536,6 +591,7 @@ export declare const callableGroups: {
|
|
|
536
591
|
yearGroups?: number[] | undefined;
|
|
537
592
|
students?: string | undefined;
|
|
538
593
|
draft?: boolean | undefined;
|
|
594
|
+
academicYear?: string | undefined;
|
|
539
595
|
closeAfterDays?: number | undefined;
|
|
540
596
|
emailTemplateId?: string | undefined;
|
|
541
597
|
raters?: {
|
|
@@ -547,6 +603,7 @@ export declare const callableGroups: {
|
|
|
547
603
|
threadKey?: string | undefined;
|
|
548
604
|
autoSend?: boolean | undefined;
|
|
549
605
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
606
|
+
kindConfig?: Record<string, unknown> | undefined;
|
|
550
607
|
}, {
|
|
551
608
|
oId: string;
|
|
552
609
|
kind: string;
|
|
@@ -556,6 +613,7 @@ export declare const callableGroups: {
|
|
|
556
613
|
yearGroups?: number[] | undefined;
|
|
557
614
|
students?: string | undefined;
|
|
558
615
|
draft?: boolean | undefined;
|
|
616
|
+
academicYear?: string | undefined;
|
|
559
617
|
closeAfterDays?: number | undefined;
|
|
560
618
|
emailTemplateId?: string | undefined;
|
|
561
619
|
raters?: {
|
|
@@ -567,6 +625,7 @@ export declare const callableGroups: {
|
|
|
567
625
|
threadKey?: string | undefined;
|
|
568
626
|
autoSend?: boolean | undefined;
|
|
569
627
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
628
|
+
kindConfig?: Record<string, unknown> | undefined;
|
|
570
629
|
}>;
|
|
571
630
|
response: z.ZodObject<{
|
|
572
631
|
created: z.ZodArray<z.ZodObject<{
|
|
@@ -693,6 +752,37 @@ export declare const callableGroups: {
|
|
|
693
752
|
autoSend: boolean;
|
|
694
753
|
}>;
|
|
695
754
|
};
|
|
755
|
+
"surveys-updateSurveyCycleSettings": {
|
|
756
|
+
request: z.ZodObject<{
|
|
757
|
+
cycleId: z.ZodString;
|
|
758
|
+
scheduledSendDate: z.ZodOptional<z.ZodString>;
|
|
759
|
+
emailTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
760
|
+
title: z.ZodOptional<z.ZodString>;
|
|
761
|
+
description: z.ZodOptional<z.ZodString>;
|
|
762
|
+
}, "strip", z.ZodTypeAny, {
|
|
763
|
+
cycleId: string;
|
|
764
|
+
title?: string | undefined;
|
|
765
|
+
description?: string | undefined;
|
|
766
|
+
scheduledSendDate?: string | undefined;
|
|
767
|
+
emailTemplateId?: string | null | undefined;
|
|
768
|
+
}, {
|
|
769
|
+
cycleId: string;
|
|
770
|
+
title?: string | undefined;
|
|
771
|
+
description?: string | undefined;
|
|
772
|
+
scheduledSendDate?: string | undefined;
|
|
773
|
+
emailTemplateId?: string | null | undefined;
|
|
774
|
+
}>;
|
|
775
|
+
response: z.ZodObject<{
|
|
776
|
+
cycleId: z.ZodString;
|
|
777
|
+
updated: z.ZodBoolean;
|
|
778
|
+
}, "strip", z.ZodTypeAny, {
|
|
779
|
+
cycleId: string;
|
|
780
|
+
updated: boolean;
|
|
781
|
+
}, {
|
|
782
|
+
cycleId: string;
|
|
783
|
+
updated: boolean;
|
|
784
|
+
}>;
|
|
785
|
+
};
|
|
696
786
|
"surveys-resendSurveyInvite": {
|
|
697
787
|
request: z.ZodObject<{
|
|
698
788
|
requestId: z.ZodString;
|
|
@@ -718,6 +808,22 @@ export declare const callableGroups: {
|
|
|
718
808
|
userEmailMismatch: boolean;
|
|
719
809
|
}>;
|
|
720
810
|
};
|
|
811
|
+
"surveys-sendAlumniCheckInNow": {
|
|
812
|
+
request: z.ZodObject<{
|
|
813
|
+
alumniId: z.ZodString;
|
|
814
|
+
}, "strip", z.ZodTypeAny, {
|
|
815
|
+
alumniId: string;
|
|
816
|
+
}, {
|
|
817
|
+
alumniId: string;
|
|
818
|
+
}>;
|
|
819
|
+
response: z.ZodObject<{
|
|
820
|
+
sent: z.ZodBoolean;
|
|
821
|
+
}, "strip", z.ZodTypeAny, {
|
|
822
|
+
sent: boolean;
|
|
823
|
+
}, {
|
|
824
|
+
sent: boolean;
|
|
825
|
+
}>;
|
|
826
|
+
};
|
|
721
827
|
"surveys-deleteSurveyCycle": {
|
|
722
828
|
request: z.ZodObject<{
|
|
723
829
|
cycleId: z.ZodString;
|
|
@@ -7,6 +7,9 @@ export declare const surveyCallables: {
|
|
|
7
7
|
/** One cycle per year group. Omitted for institute-wide kinds. */
|
|
8
8
|
yearGroups: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
9
9
|
scheduledSendDate: z.ZodString;
|
|
10
|
+
/** Overrides the year derived from the send date — the leaver thread's
|
|
11
|
+
* Christmas leg sends in the year after the cohort's own. */
|
|
12
|
+
academicYear: z.ZodOptional<z.ZodString>;
|
|
10
13
|
closeAfterDays: z.ZodOptional<z.ZodNumber>;
|
|
11
14
|
emailTemplateId: z.ZodOptional<z.ZodString>;
|
|
12
15
|
/** JSON-serialised DataViewerSelectionBackend. */
|
|
@@ -31,6 +34,9 @@ export declare const surveyCallables: {
|
|
|
31
34
|
autoSend: z.ZodOptional<z.ZodBoolean>;
|
|
32
35
|
draft: z.ZodOptional<z.ZodBoolean>;
|
|
33
36
|
resolveRecipientsAtSend: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
/** Kind-specific settings the engine stores untouched and only that
|
|
38
|
+
* kind's handler reads — currently the leaver thread's allStudentsLeave. */
|
|
39
|
+
kindConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
34
40
|
}, "strip", z.ZodTypeAny, {
|
|
35
41
|
oId: string;
|
|
36
42
|
kind: string;
|
|
@@ -40,6 +46,7 @@ export declare const surveyCallables: {
|
|
|
40
46
|
yearGroups?: number[] | undefined;
|
|
41
47
|
students?: string | undefined;
|
|
42
48
|
draft?: boolean | undefined;
|
|
49
|
+
academicYear?: string | undefined;
|
|
43
50
|
closeAfterDays?: number | undefined;
|
|
44
51
|
emailTemplateId?: string | undefined;
|
|
45
52
|
raters?: {
|
|
@@ -51,6 +58,7 @@ export declare const surveyCallables: {
|
|
|
51
58
|
threadKey?: string | undefined;
|
|
52
59
|
autoSend?: boolean | undefined;
|
|
53
60
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
61
|
+
kindConfig?: Record<string, unknown> | undefined;
|
|
54
62
|
}, {
|
|
55
63
|
oId: string;
|
|
56
64
|
kind: string;
|
|
@@ -60,6 +68,7 @@ export declare const surveyCallables: {
|
|
|
60
68
|
yearGroups?: number[] | undefined;
|
|
61
69
|
students?: string | undefined;
|
|
62
70
|
draft?: boolean | undefined;
|
|
71
|
+
academicYear?: string | undefined;
|
|
63
72
|
closeAfterDays?: number | undefined;
|
|
64
73
|
emailTemplateId?: string | undefined;
|
|
65
74
|
raters?: {
|
|
@@ -71,6 +80,7 @@ export declare const surveyCallables: {
|
|
|
71
80
|
threadKey?: string | undefined;
|
|
72
81
|
autoSend?: boolean | undefined;
|
|
73
82
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
83
|
+
kindConfig?: Record<string, unknown> | undefined;
|
|
74
84
|
}>;
|
|
75
85
|
response: z.ZodObject<{
|
|
76
86
|
created: z.ZodArray<z.ZodObject<{
|
|
@@ -197,6 +207,39 @@ export declare const surveyCallables: {
|
|
|
197
207
|
autoSend: boolean;
|
|
198
208
|
}>;
|
|
199
209
|
};
|
|
210
|
+
"surveys-updateSurveyCycleSettings": {
|
|
211
|
+
request: z.ZodObject<{
|
|
212
|
+
cycleId: z.ZodString;
|
|
213
|
+
/** ISO. Moves the close date and academic year with it. */
|
|
214
|
+
scheduledSendDate: z.ZodOptional<z.ZodString>;
|
|
215
|
+
/** null clears the custom template and falls back to the registry copy. */
|
|
216
|
+
emailTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
title: z.ZodOptional<z.ZodString>;
|
|
218
|
+
description: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
cycleId: string;
|
|
221
|
+
title?: string | undefined;
|
|
222
|
+
description?: string | undefined;
|
|
223
|
+
scheduledSendDate?: string | undefined;
|
|
224
|
+
emailTemplateId?: string | null | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
cycleId: string;
|
|
227
|
+
title?: string | undefined;
|
|
228
|
+
description?: string | undefined;
|
|
229
|
+
scheduledSendDate?: string | undefined;
|
|
230
|
+
emailTemplateId?: string | null | undefined;
|
|
231
|
+
}>;
|
|
232
|
+
response: z.ZodObject<{
|
|
233
|
+
cycleId: z.ZodString;
|
|
234
|
+
updated: z.ZodBoolean;
|
|
235
|
+
}, "strip", z.ZodTypeAny, {
|
|
236
|
+
cycleId: string;
|
|
237
|
+
updated: boolean;
|
|
238
|
+
}, {
|
|
239
|
+
cycleId: string;
|
|
240
|
+
updated: boolean;
|
|
241
|
+
}>;
|
|
242
|
+
};
|
|
200
243
|
"surveys-resendSurveyInvite": {
|
|
201
244
|
request: z.ZodObject<{
|
|
202
245
|
requestId: z.ZodString;
|
|
@@ -224,6 +267,22 @@ export declare const surveyCallables: {
|
|
|
224
267
|
userEmailMismatch: boolean;
|
|
225
268
|
}>;
|
|
226
269
|
};
|
|
270
|
+
"surveys-sendAlumniCheckInNow": {
|
|
271
|
+
request: z.ZodObject<{
|
|
272
|
+
alumniId: z.ZodString;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
alumniId: string;
|
|
275
|
+
}, {
|
|
276
|
+
alumniId: string;
|
|
277
|
+
}>;
|
|
278
|
+
response: z.ZodObject<{
|
|
279
|
+
sent: z.ZodBoolean;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
sent: boolean;
|
|
282
|
+
}, {
|
|
283
|
+
sent: boolean;
|
|
284
|
+
}>;
|
|
285
|
+
};
|
|
227
286
|
"surveys-deleteSurveyCycle": {
|
|
228
287
|
request: z.ZodObject<{
|
|
229
288
|
cycleId: z.ZodString;
|
package/lib/callables/surveys.js
CHANGED
|
@@ -25,6 +25,9 @@ exports.surveyCallables = {
|
|
|
25
25
|
/** One cycle per year group. Omitted for institute-wide kinds. */
|
|
26
26
|
yearGroups: zod_1.z.array(zod_1.z.number()).optional(),
|
|
27
27
|
scheduledSendDate: zod_1.z.string(), // ISO
|
|
28
|
+
/** Overrides the year derived from the send date — the leaver thread's
|
|
29
|
+
* Christmas leg sends in the year after the cohort's own. */
|
|
30
|
+
academicYear: zod_1.z.string().optional(),
|
|
28
31
|
closeAfterDays: zod_1.z.number().optional(),
|
|
29
32
|
emailTemplateId: zod_1.z.string().optional(),
|
|
30
33
|
/** JSON-serialised DataViewerSelectionBackend. */
|
|
@@ -37,6 +40,9 @@ exports.surveyCallables = {
|
|
|
37
40
|
autoSend: zod_1.z.boolean().optional(),
|
|
38
41
|
draft: zod_1.z.boolean().optional(),
|
|
39
42
|
resolveRecipientsAtSend: zod_1.z.boolean().optional(),
|
|
43
|
+
/** Kind-specific settings the engine stores untouched and only that
|
|
44
|
+
* kind's handler reads — currently the leaver thread's allStudentsLeave. */
|
|
45
|
+
kindConfig: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
40
46
|
}),
|
|
41
47
|
response: zod_1.z.object({
|
|
42
48
|
created: zod_1.z.array(zod_1.z.object({
|
|
@@ -75,6 +81,18 @@ exports.surveyCallables = {
|
|
|
75
81
|
request: zod_1.z.object({ cycleId: zod_1.z.string(), autoSend: zod_1.z.boolean() }),
|
|
76
82
|
response: zod_1.z.object({ cycleId: zod_1.z.string(), autoSend: zod_1.z.boolean() }),
|
|
77
83
|
},
|
|
84
|
+
"surveys-updateSurveyCycleSettings": {
|
|
85
|
+
request: zod_1.z.object({
|
|
86
|
+
cycleId: zod_1.z.string(),
|
|
87
|
+
/** ISO. Moves the close date and academic year with it. */
|
|
88
|
+
scheduledSendDate: zod_1.z.string().optional(),
|
|
89
|
+
/** null clears the custom template and falls back to the registry copy. */
|
|
90
|
+
emailTemplateId: zod_1.z.string().nullable().optional(),
|
|
91
|
+
title: zod_1.z.string().optional(),
|
|
92
|
+
description: zod_1.z.string().optional(),
|
|
93
|
+
}),
|
|
94
|
+
response: zod_1.z.object({ cycleId: zod_1.z.string(), updated: zod_1.z.boolean() }),
|
|
95
|
+
},
|
|
78
96
|
"surveys-resendSurveyInvite": {
|
|
79
97
|
request: zod_1.z.object({
|
|
80
98
|
requestId: zod_1.z.string(),
|
|
@@ -88,6 +106,10 @@ exports.surveyCallables = {
|
|
|
88
106
|
userEmailMismatch: zod_1.z.boolean(),
|
|
89
107
|
}),
|
|
90
108
|
},
|
|
109
|
+
"surveys-sendAlumniCheckInNow": {
|
|
110
|
+
request: zod_1.z.object({ alumniId: zod_1.z.string() }),
|
|
111
|
+
response: zod_1.z.object({ sent: zod_1.z.boolean() }),
|
|
112
|
+
},
|
|
91
113
|
"surveys-deleteSurveyCycle": {
|
|
92
114
|
request: zod_1.z.object({ cycleId: zod_1.z.string(), jobId: zod_1.z.string().optional() }),
|
|
93
115
|
response: zod_1.z.object({ deleted: zod_1.z.number() }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surveys.js","sourceRoot":"","sources":["../../src/callables/surveys.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAEtB,4CAAmD;AAEnD;;;;;;;GAOG;AAEH,MAAM,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,yBAA0C,CAAC,CAAC;AAEtE,MAAM,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,OAAC,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AC;YACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;YACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;SACjD,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,GAAG,EAAE;KACpB;IACD,8BAA8B,EAAE;QAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;YACrB,+DAA+D;YAC/D,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YAChC,WAAW,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE;YAC5F,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC5B,KAAK,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE;YAChF,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,EAAC,CAAC,CAAC,WAAW,EAAE;KAC3D;CACoB,CAAC"}
|
package/package.json
CHANGED
package/src/callables/surveys.ts
CHANGED
|
@@ -27,6 +27,9 @@ export const surveyCallables = {
|
|
|
27
27
|
/** One cycle per year group. Omitted for institute-wide kinds. */
|
|
28
28
|
yearGroups: z.array(z.number()).optional(),
|
|
29
29
|
scheduledSendDate: z.string(), // ISO
|
|
30
|
+
/** Overrides the year derived from the send date — the leaver thread's
|
|
31
|
+
* Christmas leg sends in the year after the cohort's own. */
|
|
32
|
+
academicYear: z.string().optional(),
|
|
30
33
|
closeAfterDays: z.number().optional(),
|
|
31
34
|
emailTemplateId: z.string().optional(),
|
|
32
35
|
/** JSON-serialised DataViewerSelectionBackend. */
|
|
@@ -39,6 +42,9 @@ export const surveyCallables = {
|
|
|
39
42
|
autoSend: z.boolean().optional(),
|
|
40
43
|
draft: z.boolean().optional(),
|
|
41
44
|
resolveRecipientsAtSend: z.boolean().optional(),
|
|
45
|
+
/** Kind-specific settings the engine stores untouched and only that
|
|
46
|
+
* kind's handler reads — currently the leaver thread's allStudentsLeave. */
|
|
47
|
+
kindConfig: z.record(z.unknown()).optional(),
|
|
42
48
|
}),
|
|
43
49
|
response: z.object({
|
|
44
50
|
created: z.array(z.object({
|
|
@@ -77,6 +83,18 @@ export const surveyCallables = {
|
|
|
77
83
|
request: z.object({cycleId: z.string(), autoSend: z.boolean()}),
|
|
78
84
|
response: z.object({cycleId: z.string(), autoSend: z.boolean()}),
|
|
79
85
|
},
|
|
86
|
+
"surveys-updateSurveyCycleSettings": {
|
|
87
|
+
request: z.object({
|
|
88
|
+
cycleId: z.string(),
|
|
89
|
+
/** ISO. Moves the close date and academic year with it. */
|
|
90
|
+
scheduledSendDate: z.string().optional(),
|
|
91
|
+
/** null clears the custom template and falls back to the registry copy. */
|
|
92
|
+
emailTemplateId: z.string().nullable().optional(),
|
|
93
|
+
title: z.string().optional(),
|
|
94
|
+
description: z.string().optional(),
|
|
95
|
+
}),
|
|
96
|
+
response: z.object({cycleId: z.string(), updated: z.boolean()}),
|
|
97
|
+
},
|
|
80
98
|
"surveys-resendSurveyInvite": {
|
|
81
99
|
request: z.object({
|
|
82
100
|
requestId: z.string(),
|
|
@@ -90,6 +108,10 @@ export const surveyCallables = {
|
|
|
90
108
|
userEmailMismatch: z.boolean(),
|
|
91
109
|
}),
|
|
92
110
|
},
|
|
111
|
+
"surveys-sendAlumniCheckInNow": {
|
|
112
|
+
request: z.object({alumniId: z.string()}),
|
|
113
|
+
response: z.object({sent: z.boolean()}),
|
|
114
|
+
},
|
|
93
115
|
"surveys-deleteSurveyCycle": {
|
|
94
116
|
request: z.object({cycleId: z.string(), jobId: z.string().optional()}),
|
|
95
117
|
response: z.object({deleted: z.number()}),
|