placementt-core 1.400.1102 → 1.400.1103
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/registry.d.ts +208 -0
- package/lib/callables/surveys.d.ts +125 -1
- package/lib/callables/surveys.js +59 -1
- package/lib/callables/surveys.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/surveys/evidence.d.ts +100 -0
- package/lib/surveys/evidence.js +113 -0
- package/lib/surveys/evidence.js.map +1 -0
- package/lib/surveys/evidence.test.d.ts +1 -0
- package/lib/surveys/evidence.test.js +123 -0
- package/lib/surveys/evidence.test.js.map +1 -0
- package/lib/surveys/registry.d.ts +55 -1
- package/lib/surveys/registry.js +192 -1
- package/lib/surveys/registry.js.map +1 -1
- package/lib/surveys/schedule.test.js +53 -2
- package/lib/surveys/schedule.test.js.map +1 -1
- package/lib/surveys/selection.d.ts +32 -0
- package/lib/surveys/selection.js +75 -0
- package/lib/surveys/selection.js.map +1 -0
- package/lib/surveys/selection.test.d.ts +1 -0
- package/lib/surveys/selection.test.js +74 -0
- package/lib/surveys/selection.test.js.map +1 -0
- package/lib/surveys/types.d.ts +125 -1
- package/lib/surveys/types.js +16 -2
- package/lib/surveys/types.js.map +1 -1
- package/lib/typeDefinitions.d.ts +4 -95
- package/lib/typeDefinitions.js.map +1 -1
- package/package.json +1 -1
- package/src/callables/surveys.ts +60 -2
- package/src/index.ts +2 -0
- package/src/surveys/evidence.test.ts +145 -0
- package/src/surveys/evidence.ts +151 -0
- package/src/surveys/registry.ts +228 -1
- package/src/surveys/schedule.test.ts +62 -4
- package/src/surveys/selection.test.ts +85 -0
- package/src/surveys/selection.ts +72 -0
- package/src/surveys/types.ts +137 -2
- package/src/typeDefinitions.ts +4 -103
|
@@ -538,6 +538,8 @@ export declare const allCallables: {
|
|
|
538
538
|
draft: z.ZodOptional<z.ZodBoolean>;
|
|
539
539
|
resolveRecipientsAtSend: z.ZodOptional<z.ZodBoolean>;
|
|
540
540
|
kindConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
541
|
+
sendNow: z.ZodOptional<z.ZodBoolean>;
|
|
542
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
541
543
|
}, "strip", z.ZodTypeAny, {
|
|
542
544
|
oId: string;
|
|
543
545
|
kind: string;
|
|
@@ -546,6 +548,7 @@ export declare const allCallables: {
|
|
|
546
548
|
description?: string | undefined;
|
|
547
549
|
yearGroups?: string[] | undefined;
|
|
548
550
|
students?: string | undefined;
|
|
551
|
+
jobId?: string | undefined;
|
|
549
552
|
draft?: boolean | undefined;
|
|
550
553
|
academicYear?: string | undefined;
|
|
551
554
|
closeAfterDays?: number | undefined;
|
|
@@ -560,6 +563,7 @@ export declare const allCallables: {
|
|
|
560
563
|
autoSend?: boolean | undefined;
|
|
561
564
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
562
565
|
kindConfig?: Record<string, unknown> | undefined;
|
|
566
|
+
sendNow?: boolean | undefined;
|
|
563
567
|
}, {
|
|
564
568
|
oId: string;
|
|
565
569
|
kind: string;
|
|
@@ -568,6 +572,7 @@ export declare const allCallables: {
|
|
|
568
572
|
description?: string | undefined;
|
|
569
573
|
yearGroups?: string[] | undefined;
|
|
570
574
|
students?: string | undefined;
|
|
575
|
+
jobId?: string | undefined;
|
|
571
576
|
draft?: boolean | undefined;
|
|
572
577
|
academicYear?: string | undefined;
|
|
573
578
|
closeAfterDays?: number | undefined;
|
|
@@ -582,19 +587,23 @@ export declare const allCallables: {
|
|
|
582
587
|
autoSend?: boolean | undefined;
|
|
583
588
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
584
589
|
kindConfig?: Record<string, unknown> | undefined;
|
|
590
|
+
sendNow?: boolean | undefined;
|
|
585
591
|
}>;
|
|
586
592
|
response: z.ZodObject<{
|
|
587
593
|
created: z.ZodArray<z.ZodObject<{
|
|
588
594
|
cycleId: z.ZodString;
|
|
589
595
|
yearGroup: z.ZodOptional<z.ZodString>;
|
|
590
596
|
invited: z.ZodNumber;
|
|
597
|
+
sent: z.ZodOptional<z.ZodNumber>;
|
|
591
598
|
}, "strip", z.ZodTypeAny, {
|
|
592
599
|
cycleId: string;
|
|
593
600
|
invited: number;
|
|
601
|
+
sent?: number | undefined;
|
|
594
602
|
yearGroup?: string | undefined;
|
|
595
603
|
}, {
|
|
596
604
|
cycleId: string;
|
|
597
605
|
invited: number;
|
|
606
|
+
sent?: number | undefined;
|
|
598
607
|
yearGroup?: string | undefined;
|
|
599
608
|
}>, "many">;
|
|
600
609
|
skippedEmpty: z.ZodArray<z.ZodString, "many">;
|
|
@@ -604,6 +613,7 @@ export declare const allCallables: {
|
|
|
604
613
|
created: {
|
|
605
614
|
cycleId: string;
|
|
606
615
|
invited: number;
|
|
616
|
+
sent?: number | undefined;
|
|
607
617
|
yearGroup?: string | undefined;
|
|
608
618
|
}[];
|
|
609
619
|
academicYear: string;
|
|
@@ -613,6 +623,7 @@ export declare const allCallables: {
|
|
|
613
623
|
created: {
|
|
614
624
|
cycleId: string;
|
|
615
625
|
invited: number;
|
|
626
|
+
sent?: number | undefined;
|
|
616
627
|
yearGroup?: string | undefined;
|
|
617
628
|
}[];
|
|
618
629
|
academicYear: string;
|
|
@@ -808,6 +819,99 @@ export declare const allCallables: {
|
|
|
808
819
|
updatedCycles: number;
|
|
809
820
|
}>;
|
|
810
821
|
};
|
|
822
|
+
"surveys-saveStudentTaskConfig": {
|
|
823
|
+
request: z.ZodObject<{
|
|
824
|
+
oId: z.ZodString;
|
|
825
|
+
kind: z.ZodEnum<[string, ...string[]]>;
|
|
826
|
+
studentSelection: z.ZodOptional<z.ZodString>;
|
|
827
|
+
selectionSummary: z.ZodOptional<z.ZodString>;
|
|
828
|
+
emailTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
829
|
+
minimum: z.ZodOptional<z.ZodNumber>;
|
|
830
|
+
reminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
831
|
+
sendMMDD: z.ZodString;
|
|
832
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
833
|
+
label: z.ZodOptional<z.ZodString>;
|
|
834
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
835
|
+
}, "strip", z.ZodTypeAny, {
|
|
836
|
+
sendMMDD: string;
|
|
837
|
+
label?: string | undefined;
|
|
838
|
+
enabled?: boolean | undefined;
|
|
839
|
+
rule?: Record<string, unknown> | undefined;
|
|
840
|
+
}, {
|
|
841
|
+
sendMMDD: string;
|
|
842
|
+
label?: string | undefined;
|
|
843
|
+
enabled?: boolean | undefined;
|
|
844
|
+
rule?: Record<string, unknown> | undefined;
|
|
845
|
+
}>, "many">>;
|
|
846
|
+
remindersYear: z.ZodOptional<z.ZodString>;
|
|
847
|
+
}, "strip", z.ZodTypeAny, {
|
|
848
|
+
oId: string;
|
|
849
|
+
kind: string;
|
|
850
|
+
minimum?: number | undefined;
|
|
851
|
+
emailTemplateId?: string | null | undefined;
|
|
852
|
+
studentSelection?: string | undefined;
|
|
853
|
+
selectionSummary?: string | undefined;
|
|
854
|
+
reminders?: {
|
|
855
|
+
sendMMDD: string;
|
|
856
|
+
label?: string | undefined;
|
|
857
|
+
enabled?: boolean | undefined;
|
|
858
|
+
rule?: Record<string, unknown> | undefined;
|
|
859
|
+
}[] | undefined;
|
|
860
|
+
remindersYear?: string | undefined;
|
|
861
|
+
}, {
|
|
862
|
+
oId: string;
|
|
863
|
+
kind: string;
|
|
864
|
+
minimum?: number | undefined;
|
|
865
|
+
emailTemplateId?: string | null | undefined;
|
|
866
|
+
studentSelection?: string | undefined;
|
|
867
|
+
selectionSummary?: string | undefined;
|
|
868
|
+
reminders?: {
|
|
869
|
+
sendMMDD: string;
|
|
870
|
+
label?: string | undefined;
|
|
871
|
+
enabled?: boolean | undefined;
|
|
872
|
+
rule?: Record<string, unknown> | undefined;
|
|
873
|
+
}[] | undefined;
|
|
874
|
+
remindersYear?: string | undefined;
|
|
875
|
+
}>;
|
|
876
|
+
response: z.ZodObject<{
|
|
877
|
+
saved: z.ZodBoolean;
|
|
878
|
+
resolvedCount: z.ZodOptional<z.ZodNumber>;
|
|
879
|
+
}, "strip", z.ZodTypeAny, {
|
|
880
|
+
saved: boolean;
|
|
881
|
+
resolvedCount?: number | undefined;
|
|
882
|
+
}, {
|
|
883
|
+
saved: boolean;
|
|
884
|
+
resolvedCount?: number | undefined;
|
|
885
|
+
}>;
|
|
886
|
+
};
|
|
887
|
+
"surveys-setSurveySendPolicy": {
|
|
888
|
+
request: z.ZodObject<{
|
|
889
|
+
oId: z.ZodString;
|
|
890
|
+
kind: z.ZodEnum<[string, ...string[]]>;
|
|
891
|
+
policy: z.ZodEnum<["auto", "manual"]>;
|
|
892
|
+
}, "strip", z.ZodTypeAny, {
|
|
893
|
+
oId: string;
|
|
894
|
+
kind: string;
|
|
895
|
+
policy: "auto" | "manual";
|
|
896
|
+
}, {
|
|
897
|
+
oId: string;
|
|
898
|
+
kind: string;
|
|
899
|
+
policy: "auto" | "manual";
|
|
900
|
+
}>;
|
|
901
|
+
response: z.ZodObject<{
|
|
902
|
+
oId: z.ZodString;
|
|
903
|
+
kind: z.ZodEnum<[string, ...string[]]>;
|
|
904
|
+
policy: z.ZodEnum<["auto", "manual"]>;
|
|
905
|
+
}, "strip", z.ZodTypeAny, {
|
|
906
|
+
oId: string;
|
|
907
|
+
kind: string;
|
|
908
|
+
policy: "auto" | "manual";
|
|
909
|
+
}, {
|
|
910
|
+
oId: string;
|
|
911
|
+
kind: string;
|
|
912
|
+
policy: "auto" | "manual";
|
|
913
|
+
}>;
|
|
914
|
+
};
|
|
811
915
|
"surveys-provisionSurveysNow": {
|
|
812
916
|
request: z.ZodObject<{
|
|
813
917
|
oId: z.ZodString;
|
|
@@ -1114,6 +1218,8 @@ export declare const callableGroups: {
|
|
|
1114
1218
|
draft: z.ZodOptional<z.ZodBoolean>;
|
|
1115
1219
|
resolveRecipientsAtSend: z.ZodOptional<z.ZodBoolean>;
|
|
1116
1220
|
kindConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1221
|
+
sendNow: z.ZodOptional<z.ZodBoolean>;
|
|
1222
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1117
1223
|
}, "strip", z.ZodTypeAny, {
|
|
1118
1224
|
oId: string;
|
|
1119
1225
|
kind: string;
|
|
@@ -1122,6 +1228,7 @@ export declare const callableGroups: {
|
|
|
1122
1228
|
description?: string | undefined;
|
|
1123
1229
|
yearGroups?: string[] | undefined;
|
|
1124
1230
|
students?: string | undefined;
|
|
1231
|
+
jobId?: string | undefined;
|
|
1125
1232
|
draft?: boolean | undefined;
|
|
1126
1233
|
academicYear?: string | undefined;
|
|
1127
1234
|
closeAfterDays?: number | undefined;
|
|
@@ -1136,6 +1243,7 @@ export declare const callableGroups: {
|
|
|
1136
1243
|
autoSend?: boolean | undefined;
|
|
1137
1244
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
1138
1245
|
kindConfig?: Record<string, unknown> | undefined;
|
|
1246
|
+
sendNow?: boolean | undefined;
|
|
1139
1247
|
}, {
|
|
1140
1248
|
oId: string;
|
|
1141
1249
|
kind: string;
|
|
@@ -1144,6 +1252,7 @@ export declare const callableGroups: {
|
|
|
1144
1252
|
description?: string | undefined;
|
|
1145
1253
|
yearGroups?: string[] | undefined;
|
|
1146
1254
|
students?: string | undefined;
|
|
1255
|
+
jobId?: string | undefined;
|
|
1147
1256
|
draft?: boolean | undefined;
|
|
1148
1257
|
academicYear?: string | undefined;
|
|
1149
1258
|
closeAfterDays?: number | undefined;
|
|
@@ -1158,19 +1267,23 @@ export declare const callableGroups: {
|
|
|
1158
1267
|
autoSend?: boolean | undefined;
|
|
1159
1268
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
1160
1269
|
kindConfig?: Record<string, unknown> | undefined;
|
|
1270
|
+
sendNow?: boolean | undefined;
|
|
1161
1271
|
}>;
|
|
1162
1272
|
response: z.ZodObject<{
|
|
1163
1273
|
created: z.ZodArray<z.ZodObject<{
|
|
1164
1274
|
cycleId: z.ZodString;
|
|
1165
1275
|
yearGroup: z.ZodOptional<z.ZodString>;
|
|
1166
1276
|
invited: z.ZodNumber;
|
|
1277
|
+
sent: z.ZodOptional<z.ZodNumber>;
|
|
1167
1278
|
}, "strip", z.ZodTypeAny, {
|
|
1168
1279
|
cycleId: string;
|
|
1169
1280
|
invited: number;
|
|
1281
|
+
sent?: number | undefined;
|
|
1170
1282
|
yearGroup?: string | undefined;
|
|
1171
1283
|
}, {
|
|
1172
1284
|
cycleId: string;
|
|
1173
1285
|
invited: number;
|
|
1286
|
+
sent?: number | undefined;
|
|
1174
1287
|
yearGroup?: string | undefined;
|
|
1175
1288
|
}>, "many">;
|
|
1176
1289
|
skippedEmpty: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1180,6 +1293,7 @@ export declare const callableGroups: {
|
|
|
1180
1293
|
created: {
|
|
1181
1294
|
cycleId: string;
|
|
1182
1295
|
invited: number;
|
|
1296
|
+
sent?: number | undefined;
|
|
1183
1297
|
yearGroup?: string | undefined;
|
|
1184
1298
|
}[];
|
|
1185
1299
|
academicYear: string;
|
|
@@ -1189,6 +1303,7 @@ export declare const callableGroups: {
|
|
|
1189
1303
|
created: {
|
|
1190
1304
|
cycleId: string;
|
|
1191
1305
|
invited: number;
|
|
1306
|
+
sent?: number | undefined;
|
|
1192
1307
|
yearGroup?: string | undefined;
|
|
1193
1308
|
}[];
|
|
1194
1309
|
academicYear: string;
|
|
@@ -1384,6 +1499,99 @@ export declare const callableGroups: {
|
|
|
1384
1499
|
updatedCycles: number;
|
|
1385
1500
|
}>;
|
|
1386
1501
|
};
|
|
1502
|
+
"surveys-saveStudentTaskConfig": {
|
|
1503
|
+
request: z.ZodObject<{
|
|
1504
|
+
oId: z.ZodString;
|
|
1505
|
+
kind: z.ZodEnum<[string, ...string[]]>;
|
|
1506
|
+
studentSelection: z.ZodOptional<z.ZodString>;
|
|
1507
|
+
selectionSummary: z.ZodOptional<z.ZodString>;
|
|
1508
|
+
emailTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1509
|
+
minimum: z.ZodOptional<z.ZodNumber>;
|
|
1510
|
+
reminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1511
|
+
sendMMDD: z.ZodString;
|
|
1512
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1513
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1515
|
+
}, "strip", z.ZodTypeAny, {
|
|
1516
|
+
sendMMDD: string;
|
|
1517
|
+
label?: string | undefined;
|
|
1518
|
+
enabled?: boolean | undefined;
|
|
1519
|
+
rule?: Record<string, unknown> | undefined;
|
|
1520
|
+
}, {
|
|
1521
|
+
sendMMDD: string;
|
|
1522
|
+
label?: string | undefined;
|
|
1523
|
+
enabled?: boolean | undefined;
|
|
1524
|
+
rule?: Record<string, unknown> | undefined;
|
|
1525
|
+
}>, "many">>;
|
|
1526
|
+
remindersYear: z.ZodOptional<z.ZodString>;
|
|
1527
|
+
}, "strip", z.ZodTypeAny, {
|
|
1528
|
+
oId: string;
|
|
1529
|
+
kind: string;
|
|
1530
|
+
minimum?: number | undefined;
|
|
1531
|
+
emailTemplateId?: string | null | undefined;
|
|
1532
|
+
studentSelection?: string | undefined;
|
|
1533
|
+
selectionSummary?: string | undefined;
|
|
1534
|
+
reminders?: {
|
|
1535
|
+
sendMMDD: string;
|
|
1536
|
+
label?: string | undefined;
|
|
1537
|
+
enabled?: boolean | undefined;
|
|
1538
|
+
rule?: Record<string, unknown> | undefined;
|
|
1539
|
+
}[] | undefined;
|
|
1540
|
+
remindersYear?: string | undefined;
|
|
1541
|
+
}, {
|
|
1542
|
+
oId: string;
|
|
1543
|
+
kind: string;
|
|
1544
|
+
minimum?: number | undefined;
|
|
1545
|
+
emailTemplateId?: string | null | undefined;
|
|
1546
|
+
studentSelection?: string | undefined;
|
|
1547
|
+
selectionSummary?: string | undefined;
|
|
1548
|
+
reminders?: {
|
|
1549
|
+
sendMMDD: string;
|
|
1550
|
+
label?: string | undefined;
|
|
1551
|
+
enabled?: boolean | undefined;
|
|
1552
|
+
rule?: Record<string, unknown> | undefined;
|
|
1553
|
+
}[] | undefined;
|
|
1554
|
+
remindersYear?: string | undefined;
|
|
1555
|
+
}>;
|
|
1556
|
+
response: z.ZodObject<{
|
|
1557
|
+
saved: z.ZodBoolean;
|
|
1558
|
+
resolvedCount: z.ZodOptional<z.ZodNumber>;
|
|
1559
|
+
}, "strip", z.ZodTypeAny, {
|
|
1560
|
+
saved: boolean;
|
|
1561
|
+
resolvedCount?: number | undefined;
|
|
1562
|
+
}, {
|
|
1563
|
+
saved: boolean;
|
|
1564
|
+
resolvedCount?: number | undefined;
|
|
1565
|
+
}>;
|
|
1566
|
+
};
|
|
1567
|
+
"surveys-setSurveySendPolicy": {
|
|
1568
|
+
request: z.ZodObject<{
|
|
1569
|
+
oId: z.ZodString;
|
|
1570
|
+
kind: z.ZodEnum<[string, ...string[]]>;
|
|
1571
|
+
policy: z.ZodEnum<["auto", "manual"]>;
|
|
1572
|
+
}, "strip", z.ZodTypeAny, {
|
|
1573
|
+
oId: string;
|
|
1574
|
+
kind: string;
|
|
1575
|
+
policy: "auto" | "manual";
|
|
1576
|
+
}, {
|
|
1577
|
+
oId: string;
|
|
1578
|
+
kind: string;
|
|
1579
|
+
policy: "auto" | "manual";
|
|
1580
|
+
}>;
|
|
1581
|
+
response: z.ZodObject<{
|
|
1582
|
+
oId: z.ZodString;
|
|
1583
|
+
kind: z.ZodEnum<[string, ...string[]]>;
|
|
1584
|
+
policy: z.ZodEnum<["auto", "manual"]>;
|
|
1585
|
+
}, "strip", z.ZodTypeAny, {
|
|
1586
|
+
oId: string;
|
|
1587
|
+
kind: string;
|
|
1588
|
+
policy: "auto" | "manual";
|
|
1589
|
+
}, {
|
|
1590
|
+
oId: string;
|
|
1591
|
+
kind: string;
|
|
1592
|
+
policy: "auto" | "manual";
|
|
1593
|
+
}>;
|
|
1594
|
+
};
|
|
1387
1595
|
"surveys-provisionSurveysNow": {
|
|
1388
1596
|
request: z.ZodObject<{
|
|
1389
1597
|
oId: z.ZodString;
|
|
@@ -35,8 +35,17 @@ export declare const surveyCallables: {
|
|
|
35
35
|
draft: z.ZodOptional<z.ZodBoolean>;
|
|
36
36
|
resolveRecipientsAtSend: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
/** Kind-specific settings the engine stores untouched and only that
|
|
38
|
-
* kind's handler reads
|
|
38
|
+
* kind's handler reads: the leaver thread's allStudentsLeave, and a task
|
|
39
|
+
* launch's `minimum` (how much evidence counts as done). */
|
|
39
40
|
kindConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
|
+
/** Fan out AND send in this one call, rather than waiting for the date.
|
|
42
|
+
* What "send it now" means for an ad hoc task, where there is no schedule
|
|
43
|
+
* to wait for and staff expect the emails to have gone when the dialog
|
|
44
|
+
* closes. */
|
|
45
|
+
sendNow: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
/** Run the send as a job, so a year group's worth of emails reports
|
|
47
|
+
* progress rather than sitting behind a spinner. Only read with sendNow. */
|
|
48
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
40
49
|
}, "strip", z.ZodTypeAny, {
|
|
41
50
|
oId: string;
|
|
42
51
|
kind: string;
|
|
@@ -45,6 +54,7 @@ export declare const surveyCallables: {
|
|
|
45
54
|
description?: string | undefined;
|
|
46
55
|
yearGroups?: string[] | undefined;
|
|
47
56
|
students?: string | undefined;
|
|
57
|
+
jobId?: string | undefined;
|
|
48
58
|
draft?: boolean | undefined;
|
|
49
59
|
academicYear?: string | undefined;
|
|
50
60
|
closeAfterDays?: number | undefined;
|
|
@@ -59,6 +69,7 @@ export declare const surveyCallables: {
|
|
|
59
69
|
autoSend?: boolean | undefined;
|
|
60
70
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
61
71
|
kindConfig?: Record<string, unknown> | undefined;
|
|
72
|
+
sendNow?: boolean | undefined;
|
|
62
73
|
}, {
|
|
63
74
|
oId: string;
|
|
64
75
|
kind: string;
|
|
@@ -67,6 +78,7 @@ export declare const surveyCallables: {
|
|
|
67
78
|
description?: string | undefined;
|
|
68
79
|
yearGroups?: string[] | undefined;
|
|
69
80
|
students?: string | undefined;
|
|
81
|
+
jobId?: string | undefined;
|
|
70
82
|
draft?: boolean | undefined;
|
|
71
83
|
academicYear?: string | undefined;
|
|
72
84
|
closeAfterDays?: number | undefined;
|
|
@@ -81,19 +93,24 @@ export declare const surveyCallables: {
|
|
|
81
93
|
autoSend?: boolean | undefined;
|
|
82
94
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
83
95
|
kindConfig?: Record<string, unknown> | undefined;
|
|
96
|
+
sendNow?: boolean | undefined;
|
|
84
97
|
}>;
|
|
85
98
|
response: z.ZodObject<{
|
|
86
99
|
created: z.ZodArray<z.ZodObject<{
|
|
87
100
|
cycleId: z.ZodString;
|
|
88
101
|
yearGroup: z.ZodOptional<z.ZodString>;
|
|
89
102
|
invited: z.ZodNumber;
|
|
103
|
+
/** How many invites actually went out, on a sendNow launch. */
|
|
104
|
+
sent: z.ZodOptional<z.ZodNumber>;
|
|
90
105
|
}, "strip", z.ZodTypeAny, {
|
|
91
106
|
cycleId: string;
|
|
92
107
|
invited: number;
|
|
108
|
+
sent?: number | undefined;
|
|
93
109
|
yearGroup?: string | undefined;
|
|
94
110
|
}, {
|
|
95
111
|
cycleId: string;
|
|
96
112
|
invited: number;
|
|
113
|
+
sent?: number | undefined;
|
|
97
114
|
yearGroup?: string | undefined;
|
|
98
115
|
}>, "many">;
|
|
99
116
|
skippedEmpty: z.ZodArray<z.ZodString, "many">;
|
|
@@ -103,6 +120,7 @@ export declare const surveyCallables: {
|
|
|
103
120
|
created: {
|
|
104
121
|
cycleId: string;
|
|
105
122
|
invited: number;
|
|
123
|
+
sent?: number | undefined;
|
|
106
124
|
yearGroup?: string | undefined;
|
|
107
125
|
}[];
|
|
108
126
|
academicYear: string;
|
|
@@ -112,6 +130,7 @@ export declare const surveyCallables: {
|
|
|
112
130
|
created: {
|
|
113
131
|
cycleId: string;
|
|
114
132
|
invited: number;
|
|
133
|
+
sent?: number | undefined;
|
|
115
134
|
yearGroup?: string | undefined;
|
|
116
135
|
}[];
|
|
117
136
|
academicYear: string;
|
|
@@ -315,6 +334,111 @@ export declare const surveyCallables: {
|
|
|
315
334
|
updatedCycles: number;
|
|
316
335
|
}>;
|
|
317
336
|
};
|
|
337
|
+
"surveys-saveStudentTaskConfig": {
|
|
338
|
+
request: z.ZodObject<{
|
|
339
|
+
oId: z.ZodString;
|
|
340
|
+
/** Only the headless task kinds have a stored config: the programme kinds
|
|
341
|
+
* answer the same questions through their group setup. */
|
|
342
|
+
kind: z.ZodEnum<[string, ...string[]]>;
|
|
343
|
+
/** JSON-serialised DataViewerSelectionBackend. */
|
|
344
|
+
studentSelection: z.ZodOptional<z.ZodString>;
|
|
345
|
+
selectionSummary: z.ZodOptional<z.ZodString>;
|
|
346
|
+
/** null clears the stored template and falls back to the default copy. */
|
|
347
|
+
emailTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
|
+
/** How much evidence counts as done. Omit to keep the kind's default. */
|
|
349
|
+
minimum: z.ZodOptional<z.ZodNumber>;
|
|
350
|
+
/** The repeating nudge for the year in progress. Replaces what is stored,
|
|
351
|
+
* so an empty array turns the schedule off. Never auto-provisioned. */
|
|
352
|
+
reminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
353
|
+
sendMMDD: z.ZodString;
|
|
354
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
355
|
+
label: z.ZodOptional<z.ZodString>;
|
|
356
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
sendMMDD: string;
|
|
359
|
+
label?: string | undefined;
|
|
360
|
+
enabled?: boolean | undefined;
|
|
361
|
+
rule?: Record<string, unknown> | undefined;
|
|
362
|
+
}, {
|
|
363
|
+
sendMMDD: string;
|
|
364
|
+
label?: string | undefined;
|
|
365
|
+
enabled?: boolean | undefined;
|
|
366
|
+
rule?: Record<string, unknown> | undefined;
|
|
367
|
+
}>, "many">>;
|
|
368
|
+
/** The academic year `reminders` applies to, "2026-27". Defaults to the
|
|
369
|
+
* year the call is made in. */
|
|
370
|
+
remindersYear: z.ZodOptional<z.ZodString>;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
|
+
oId: string;
|
|
373
|
+
kind: string;
|
|
374
|
+
minimum?: number | undefined;
|
|
375
|
+
emailTemplateId?: string | null | undefined;
|
|
376
|
+
studentSelection?: string | undefined;
|
|
377
|
+
selectionSummary?: string | undefined;
|
|
378
|
+
reminders?: {
|
|
379
|
+
sendMMDD: string;
|
|
380
|
+
label?: string | undefined;
|
|
381
|
+
enabled?: boolean | undefined;
|
|
382
|
+
rule?: Record<string, unknown> | undefined;
|
|
383
|
+
}[] | undefined;
|
|
384
|
+
remindersYear?: string | undefined;
|
|
385
|
+
}, {
|
|
386
|
+
oId: string;
|
|
387
|
+
kind: string;
|
|
388
|
+
minimum?: number | undefined;
|
|
389
|
+
emailTemplateId?: string | null | undefined;
|
|
390
|
+
studentSelection?: string | undefined;
|
|
391
|
+
selectionSummary?: string | undefined;
|
|
392
|
+
reminders?: {
|
|
393
|
+
sendMMDD: string;
|
|
394
|
+
label?: string | undefined;
|
|
395
|
+
enabled?: boolean | undefined;
|
|
396
|
+
rule?: Record<string, unknown> | undefined;
|
|
397
|
+
}[] | undefined;
|
|
398
|
+
remindersYear?: string | undefined;
|
|
399
|
+
}>;
|
|
400
|
+
response: z.ZodObject<{
|
|
401
|
+
saved: z.ZodBoolean;
|
|
402
|
+
/** How many students the saved selection resolved to, when one was given. */
|
|
403
|
+
resolvedCount: z.ZodOptional<z.ZodNumber>;
|
|
404
|
+
}, "strip", z.ZodTypeAny, {
|
|
405
|
+
saved: boolean;
|
|
406
|
+
resolvedCount?: number | undefined;
|
|
407
|
+
}, {
|
|
408
|
+
saved: boolean;
|
|
409
|
+
resolvedCount?: number | undefined;
|
|
410
|
+
}>;
|
|
411
|
+
};
|
|
412
|
+
"surveys-setSurveySendPolicy": {
|
|
413
|
+
request: z.ZodObject<{
|
|
414
|
+
oId: z.ZodString;
|
|
415
|
+
kind: z.ZodEnum<[string, ...string[]]>;
|
|
416
|
+
/** "manual" leaves the cycle scheduled but stops the cron sending it, and
|
|
417
|
+
* emails the cycle's owner on the day instead. */
|
|
418
|
+
policy: z.ZodEnum<["auto", "manual"]>;
|
|
419
|
+
}, "strip", z.ZodTypeAny, {
|
|
420
|
+
oId: string;
|
|
421
|
+
kind: string;
|
|
422
|
+
policy: "auto" | "manual";
|
|
423
|
+
}, {
|
|
424
|
+
oId: string;
|
|
425
|
+
kind: string;
|
|
426
|
+
policy: "auto" | "manual";
|
|
427
|
+
}>;
|
|
428
|
+
response: z.ZodObject<{
|
|
429
|
+
oId: z.ZodString;
|
|
430
|
+
kind: z.ZodEnum<[string, ...string[]]>;
|
|
431
|
+
policy: z.ZodEnum<["auto", "manual"]>;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
oId: string;
|
|
434
|
+
kind: string;
|
|
435
|
+
policy: "auto" | "manual";
|
|
436
|
+
}, {
|
|
437
|
+
oId: string;
|
|
438
|
+
kind: string;
|
|
439
|
+
policy: "auto" | "manual";
|
|
440
|
+
}>;
|
|
441
|
+
};
|
|
318
442
|
"surveys-provisionSurveysNow": {
|
|
319
443
|
request: z.ZodObject<{
|
|
320
444
|
oId: z.ZodString;
|
package/lib/callables/surveys.js
CHANGED
|
@@ -12,7 +12,14 @@ const types_1 = require("../surveys/types");
|
|
|
12
12
|
* hook that drives every staff survey page (`useSurveyAdmin`) calls all of them.
|
|
13
13
|
*/
|
|
14
14
|
const surveyKind = zod_1.z.enum(types_1.SURVEY_KINDS_LIST);
|
|
15
|
+
const taskKind = zod_1.z.enum(types_1.SURVEY_TASK_KINDS);
|
|
15
16
|
const groupScope = zod_1.z.enum(types_1.SURVEY_GROUP_SCOPES);
|
|
17
|
+
const surveySlot = zod_1.z.object({
|
|
18
|
+
sendMMDD: zod_1.z.string(),
|
|
19
|
+
rule: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
20
|
+
label: zod_1.z.string().optional(),
|
|
21
|
+
enabled: zod_1.z.boolean().optional(),
|
|
22
|
+
});
|
|
16
23
|
const raters = zod_1.z.object({
|
|
17
24
|
students: zod_1.z.boolean().optional(),
|
|
18
25
|
parents: zod_1.z.boolean().optional(),
|
|
@@ -42,14 +49,25 @@ exports.surveyCallables = {
|
|
|
42
49
|
draft: zod_1.z.boolean().optional(),
|
|
43
50
|
resolveRecipientsAtSend: zod_1.z.boolean().optional(),
|
|
44
51
|
/** Kind-specific settings the engine stores untouched and only that
|
|
45
|
-
* kind's handler reads
|
|
52
|
+
* kind's handler reads: the leaver thread's allStudentsLeave, and a task
|
|
53
|
+
* launch's `minimum` (how much evidence counts as done). */
|
|
46
54
|
kindConfig: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
55
|
+
/** Fan out AND send in this one call, rather than waiting for the date.
|
|
56
|
+
* What "send it now" means for an ad hoc task, where there is no schedule
|
|
57
|
+
* to wait for and staff expect the emails to have gone when the dialog
|
|
58
|
+
* closes. */
|
|
59
|
+
sendNow: zod_1.z.boolean().optional(),
|
|
60
|
+
/** Run the send as a job, so a year group's worth of emails reports
|
|
61
|
+
* progress rather than sitting behind a spinner. Only read with sendNow. */
|
|
62
|
+
jobId: zod_1.z.string().optional(),
|
|
47
63
|
}),
|
|
48
64
|
response: zod_1.z.object({
|
|
49
65
|
created: zod_1.z.array(zod_1.z.object({
|
|
50
66
|
cycleId: zod_1.z.string(),
|
|
51
67
|
yearGroup: zod_1.z.string().optional(),
|
|
52
68
|
invited: zod_1.z.number(),
|
|
69
|
+
/** How many invites actually went out, on a sendNow launch. */
|
|
70
|
+
sent: zod_1.z.number().optional(),
|
|
53
71
|
})),
|
|
54
72
|
skippedEmpty: zod_1.z.array(zod_1.z.string()),
|
|
55
73
|
skippedNoEmail: zod_1.z.number(),
|
|
@@ -125,6 +143,46 @@ exports.surveyCallables = {
|
|
|
125
143
|
invited: zod_1.z.number(),
|
|
126
144
|
}),
|
|
127
145
|
},
|
|
146
|
+
"surveys-saveStudentTaskConfig": {
|
|
147
|
+
request: zod_1.z.object({
|
|
148
|
+
oId: zod_1.z.string(),
|
|
149
|
+
/** Only the headless task kinds have a stored config: the programme kinds
|
|
150
|
+
* answer the same questions through their group setup. */
|
|
151
|
+
kind: taskKind,
|
|
152
|
+
/** JSON-serialised DataViewerSelectionBackend. */
|
|
153
|
+
studentSelection: zod_1.z.string().optional(),
|
|
154
|
+
selectionSummary: zod_1.z.string().optional(),
|
|
155
|
+
/** null clears the stored template and falls back to the default copy. */
|
|
156
|
+
emailTemplateId: zod_1.z.string().nullable().optional(),
|
|
157
|
+
/** How much evidence counts as done. Omit to keep the kind's default. */
|
|
158
|
+
minimum: zod_1.z.number().optional(),
|
|
159
|
+
/** The repeating nudge for the year in progress. Replaces what is stored,
|
|
160
|
+
* so an empty array turns the schedule off. Never auto-provisioned. */
|
|
161
|
+
reminders: zod_1.z.array(surveySlot).optional(),
|
|
162
|
+
/** The academic year `reminders` applies to, "2026-27". Defaults to the
|
|
163
|
+
* year the call is made in. */
|
|
164
|
+
remindersYear: zod_1.z.string().optional(),
|
|
165
|
+
}),
|
|
166
|
+
response: zod_1.z.object({
|
|
167
|
+
saved: zod_1.z.boolean(),
|
|
168
|
+
/** How many students the saved selection resolved to, when one was given. */
|
|
169
|
+
resolvedCount: zod_1.z.number().optional(),
|
|
170
|
+
}),
|
|
171
|
+
},
|
|
172
|
+
"surveys-setSurveySendPolicy": {
|
|
173
|
+
request: zod_1.z.object({
|
|
174
|
+
oId: zod_1.z.string(),
|
|
175
|
+
kind: surveyKind,
|
|
176
|
+
/** "manual" leaves the cycle scheduled but stops the cron sending it, and
|
|
177
|
+
* emails the cycle's owner on the day instead. */
|
|
178
|
+
policy: zod_1.z.enum(["auto", "manual"]),
|
|
179
|
+
}),
|
|
180
|
+
response: zod_1.z.object({
|
|
181
|
+
oId: zod_1.z.string(),
|
|
182
|
+
kind: surveyKind,
|
|
183
|
+
policy: zod_1.z.enum(["auto", "manual"]),
|
|
184
|
+
}),
|
|
185
|
+
},
|
|
128
186
|
"surveys-provisionSurveysNow": {
|
|
129
187
|
request: zod_1.z.object({
|
|
130
188
|
oId: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surveys.js","sourceRoot":"","sources":["../../src/callables/surveys.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAEtB,
|
|
1
|
+
{"version":3,"file":"surveys.js","sourceRoot":"","sources":["../../src/callables/surveys.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAEtB,4CAA2F;AAE3F;;;;;;;GAOG;AAEH,MAAM,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,yBAA0C,CAAC,CAAC;AACtE,MAAM,QAAQ,GAAG,OAAC,CAAC,IAAI,CAAC,yBAA0C,CAAC,CAAC;AACpE,MAAM,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,2BAA4C,CAAC,CAAC;AACxE,MAAM,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IACxB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AA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AO,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/lib/index.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ export * from "./trustPolicies";
|
|
|
12
12
|
export * from "./surveys/types";
|
|
13
13
|
export * from "./surveys/registry";
|
|
14
14
|
export * from "./surveys/checks";
|
|
15
|
+
export * from "./surveys/evidence";
|
|
15
16
|
export * from "./surveys/schedule";
|
|
17
|
+
export * from "./surveys/selection";
|
|
16
18
|
export * from "./skillsResolver";
|
|
17
19
|
export * from "./activities";
|
|
18
20
|
export * from "./activityLogging";
|
package/lib/index.js
CHANGED
|
@@ -32,7 +32,9 @@ __exportStar(require("./trustPolicies"), exports);
|
|
|
32
32
|
__exportStar(require("./surveys/types"), exports);
|
|
33
33
|
__exportStar(require("./surveys/registry"), exports);
|
|
34
34
|
__exportStar(require("./surveys/checks"), exports);
|
|
35
|
+
__exportStar(require("./surveys/evidence"), exports);
|
|
35
36
|
__exportStar(require("./surveys/schedule"), exports);
|
|
37
|
+
__exportStar(require("./surveys/selection"), exports);
|
|
36
38
|
__exportStar(require("./skillsResolver"), exports);
|
|
37
39
|
__exportStar(require("./activities"), exports);
|
|
38
40
|
__exportStar(require("./activityLogging"), exports);
|