placementt-core 1.400.1101 → 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/destinationsConfig.d.ts +5 -56
- package/lib/callables/destinationsConfig.js +5 -31
- package/lib/callables/destinationsConfig.js.map +1 -1
- package/lib/callables/registry.d.ts +212 -98
- package/lib/callables/surveys.d.ts +127 -3
- 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/destinationsConfig.ts +5 -31
- 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
|
@@ -5,67 +5,16 @@ import { z } from "zod";
|
|
|
5
5
|
*
|
|
6
6
|
* These were `aspirations-*` while they lived in the legacy survey backend. That
|
|
7
7
|
* module is gone, but the config it happened to host is institute setup that the
|
|
8
|
-
* survey engine READS and does not own, so the
|
|
8
|
+
* survey engine READS and does not own, so the callables moved rather than being
|
|
9
9
|
* deleted. The names moved with them: never rename a deployed function in place, so
|
|
10
10
|
* the old `aspirations-saveDestinationsConfig` and `aspirations-provisionDestinationsNow`
|
|
11
11
|
* must be deleted explicitly at deploy time.
|
|
12
|
+
*
|
|
13
|
+
* Saving the config itself is a plain write to the institute doc from the client
|
|
14
|
+
* (saveDestinationsConfig / saveGuidanceConfig in the web app), so the two
|
|
15
|
+
* `destinationsConfig-save*` callables are gone too and are deleted the same way.
|
|
12
16
|
*/
|
|
13
17
|
export declare const destinationsConfigCallables: {
|
|
14
|
-
"destinationsConfig-saveGuidanceConfig": {
|
|
15
|
-
request: z.ZodObject<{
|
|
16
|
-
oId: z.ZodString;
|
|
17
|
-
/** The full GuidanceConfig from the setup wizard. Validated server side,
|
|
18
|
-
* which is also where provenance fields are stamped. */
|
|
19
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
config: Record<string, unknown>;
|
|
22
|
-
oId: string;
|
|
23
|
-
}, {
|
|
24
|
-
config: Record<string, unknown>;
|
|
25
|
-
oId: string;
|
|
26
|
-
}>;
|
|
27
|
-
response: z.ZodObject<{
|
|
28
|
-
saved: z.ZodBoolean;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
saved: boolean;
|
|
31
|
-
}, {
|
|
32
|
-
saved: boolean;
|
|
33
|
-
}>;
|
|
34
|
-
};
|
|
35
|
-
"destinationsConfig-saveDestinationsConfig": {
|
|
36
|
-
request: z.ZodObject<{
|
|
37
|
-
oId: z.ZodString;
|
|
38
|
-
/** The full DestinationsConfig from the setup wizard. Validated server
|
|
39
|
-
* side, which is also where provenance fields are stamped. */
|
|
40
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
41
|
-
/** Trust-only: what this trust imposes on its schools, keyed by feature.
|
|
42
|
-
* Merged into the institute's existing policies, and refused outright
|
|
43
|
-
* from a school. Lives on the institute root, not inside config. */
|
|
44
|
-
trustPolicies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
|
-
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
config: Record<string, unknown>;
|
|
47
|
-
oId: string;
|
|
48
|
-
trustPolicies?: Record<string, unknown> | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
config: Record<string, unknown>;
|
|
51
|
-
oId: string;
|
|
52
|
-
trustPolicies?: Record<string, unknown> | undefined;
|
|
53
|
-
}>;
|
|
54
|
-
response: z.ZodObject<{
|
|
55
|
-
saved: z.ZodBoolean;
|
|
56
|
-
/** True on a first save, which provisions the current year immediately. */
|
|
57
|
-
provisioned: z.ZodBoolean;
|
|
58
|
-
created: z.ZodOptional<z.ZodNumber>;
|
|
59
|
-
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
saved: boolean;
|
|
61
|
-
provisioned: boolean;
|
|
62
|
-
created?: number | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
saved: boolean;
|
|
65
|
-
provisioned: boolean;
|
|
66
|
-
created?: number | undefined;
|
|
67
|
-
}>;
|
|
68
|
-
};
|
|
69
18
|
"destinationsConfig-provisionDestinationsNow": {
|
|
70
19
|
request: z.ZodObject<{
|
|
71
20
|
oId: z.ZodString;
|
|
@@ -8,42 +8,16 @@ const zod_1 = require("zod");
|
|
|
8
8
|
*
|
|
9
9
|
* These were `aspirations-*` while they lived in the legacy survey backend. That
|
|
10
10
|
* module is gone, but the config it happened to host is institute setup that the
|
|
11
|
-
* survey engine READS and does not own, so the
|
|
11
|
+
* survey engine READS and does not own, so the callables moved rather than being
|
|
12
12
|
* deleted. The names moved with them: never rename a deployed function in place, so
|
|
13
13
|
* the old `aspirations-saveDestinationsConfig` and `aspirations-provisionDestinationsNow`
|
|
14
14
|
* must be deleted explicitly at deploy time.
|
|
15
|
+
*
|
|
16
|
+
* Saving the config itself is a plain write to the institute doc from the client
|
|
17
|
+
* (saveDestinationsConfig / saveGuidanceConfig in the web app), so the two
|
|
18
|
+
* `destinationsConfig-save*` callables are gone too and are deleted the same way.
|
|
15
19
|
*/
|
|
16
20
|
exports.destinationsConfigCallables = {
|
|
17
|
-
// The 1:1 guidance programme's setup lives beside destinations' because it is the
|
|
18
|
-
// same kind of thing — institute setup the survey engine reads and does not own —
|
|
19
|
-
// and is saved by the same backend module.
|
|
20
|
-
"destinationsConfig-saveGuidanceConfig": {
|
|
21
|
-
request: zod_1.z.object({
|
|
22
|
-
oId: zod_1.z.string(),
|
|
23
|
-
/** The full GuidanceConfig from the setup wizard. Validated server side,
|
|
24
|
-
* which is also where provenance fields are stamped. */
|
|
25
|
-
config: zod_1.z.record(zod_1.z.unknown()),
|
|
26
|
-
}),
|
|
27
|
-
response: zod_1.z.object({ saved: zod_1.z.boolean() }),
|
|
28
|
-
},
|
|
29
|
-
"destinationsConfig-saveDestinationsConfig": {
|
|
30
|
-
request: zod_1.z.object({
|
|
31
|
-
oId: zod_1.z.string(),
|
|
32
|
-
/** The full DestinationsConfig from the setup wizard. Validated server
|
|
33
|
-
* side, which is also where provenance fields are stamped. */
|
|
34
|
-
config: zod_1.z.record(zod_1.z.unknown()),
|
|
35
|
-
/** Trust-only: what this trust imposes on its schools, keyed by feature.
|
|
36
|
-
* Merged into the institute's existing policies, and refused outright
|
|
37
|
-
* from a school. Lives on the institute root, not inside config. */
|
|
38
|
-
trustPolicies: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
39
|
-
}),
|
|
40
|
-
response: zod_1.z.object({
|
|
41
|
-
saved: zod_1.z.boolean(),
|
|
42
|
-
/** True on a first save, which provisions the current year immediately. */
|
|
43
|
-
provisioned: zod_1.z.boolean(),
|
|
44
|
-
created: zod_1.z.number().optional(),
|
|
45
|
-
}),
|
|
46
|
-
},
|
|
47
21
|
"destinationsConfig-provisionDestinationsNow": {
|
|
48
22
|
request: zod_1.z.object({
|
|
49
23
|
oId: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destinationsConfig.js","sourceRoot":"","sources":["../../src/callables/destinationsConfig.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAGtB
|
|
1
|
+
{"version":3,"file":"destinationsConfig.js","sourceRoot":"","sources":["../../src/callables/destinationsConfig.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAGtB;;;;;;;;;;;;;;GAcG;AACU,QAAA,2BAA2B,GAAG;IACvC,6CAA6C,EAAE;QAC3C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;YACf,uEAAuE;YACvE,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YAChC,8EAA8E;YAC9E,KAAK,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;SACvD,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;YACf,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;YACxB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;YACnB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;SAC3B,CAAC;KACL;CACoB,CAAC"}
|
|
@@ -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;
|
|
@@ -799,15 +810,108 @@ export declare const allCallables: {
|
|
|
799
810
|
updatedCycles: z.ZodNumber;
|
|
800
811
|
invited: z.ZodNumber;
|
|
801
812
|
}, "strip", z.ZodTypeAny, {
|
|
802
|
-
saved: boolean;
|
|
803
813
|
invited: number;
|
|
814
|
+
saved: boolean;
|
|
804
815
|
updatedCycles: number;
|
|
805
816
|
}, {
|
|
806
|
-
saved: boolean;
|
|
807
817
|
invited: number;
|
|
818
|
+
saved: boolean;
|
|
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;
|
|
@@ -945,53 +1049,6 @@ export declare const allCallables: {
|
|
|
945
1049
|
}>;
|
|
946
1050
|
response: z.ZodAny;
|
|
947
1051
|
};
|
|
948
|
-
"destinationsConfig-saveGuidanceConfig": {
|
|
949
|
-
request: z.ZodObject<{
|
|
950
|
-
oId: z.ZodString;
|
|
951
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
952
|
-
}, "strip", z.ZodTypeAny, {
|
|
953
|
-
config: Record<string, unknown>;
|
|
954
|
-
oId: string;
|
|
955
|
-
}, {
|
|
956
|
-
config: Record<string, unknown>;
|
|
957
|
-
oId: string;
|
|
958
|
-
}>;
|
|
959
|
-
response: z.ZodObject<{
|
|
960
|
-
saved: z.ZodBoolean;
|
|
961
|
-
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
saved: boolean;
|
|
963
|
-
}, {
|
|
964
|
-
saved: boolean;
|
|
965
|
-
}>;
|
|
966
|
-
};
|
|
967
|
-
"destinationsConfig-saveDestinationsConfig": {
|
|
968
|
-
request: z.ZodObject<{
|
|
969
|
-
oId: z.ZodString;
|
|
970
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
971
|
-
trustPolicies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
972
|
-
}, "strip", z.ZodTypeAny, {
|
|
973
|
-
config: Record<string, unknown>;
|
|
974
|
-
oId: string;
|
|
975
|
-
trustPolicies?: Record<string, unknown> | undefined;
|
|
976
|
-
}, {
|
|
977
|
-
config: Record<string, unknown>;
|
|
978
|
-
oId: string;
|
|
979
|
-
trustPolicies?: Record<string, unknown> | undefined;
|
|
980
|
-
}>;
|
|
981
|
-
response: z.ZodObject<{
|
|
982
|
-
saved: z.ZodBoolean;
|
|
983
|
-
provisioned: z.ZodBoolean;
|
|
984
|
-
created: z.ZodOptional<z.ZodNumber>;
|
|
985
|
-
}, "strip", z.ZodTypeAny, {
|
|
986
|
-
saved: boolean;
|
|
987
|
-
provisioned: boolean;
|
|
988
|
-
created?: number | undefined;
|
|
989
|
-
}, {
|
|
990
|
-
saved: boolean;
|
|
991
|
-
provisioned: boolean;
|
|
992
|
-
created?: number | undefined;
|
|
993
|
-
}>;
|
|
994
|
-
};
|
|
995
1052
|
"destinationsConfig-provisionDestinationsNow": {
|
|
996
1053
|
request: z.ZodObject<{
|
|
997
1054
|
oId: z.ZodString;
|
|
@@ -1037,53 +1094,6 @@ export type CallableContracts = {
|
|
|
1037
1094
|
/** The per-group maps, exported so tests can assert no key collisions. */
|
|
1038
1095
|
export declare const callableGroups: {
|
|
1039
1096
|
destinationsConfigCallables: {
|
|
1040
|
-
"destinationsConfig-saveGuidanceConfig": {
|
|
1041
|
-
request: z.ZodObject<{
|
|
1042
|
-
oId: z.ZodString;
|
|
1043
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1044
|
-
}, "strip", z.ZodTypeAny, {
|
|
1045
|
-
config: Record<string, unknown>;
|
|
1046
|
-
oId: string;
|
|
1047
|
-
}, {
|
|
1048
|
-
config: Record<string, unknown>;
|
|
1049
|
-
oId: string;
|
|
1050
|
-
}>;
|
|
1051
|
-
response: z.ZodObject<{
|
|
1052
|
-
saved: z.ZodBoolean;
|
|
1053
|
-
}, "strip", z.ZodTypeAny, {
|
|
1054
|
-
saved: boolean;
|
|
1055
|
-
}, {
|
|
1056
|
-
saved: boolean;
|
|
1057
|
-
}>;
|
|
1058
|
-
};
|
|
1059
|
-
"destinationsConfig-saveDestinationsConfig": {
|
|
1060
|
-
request: z.ZodObject<{
|
|
1061
|
-
oId: z.ZodString;
|
|
1062
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1063
|
-
trustPolicies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1064
|
-
}, "strip", z.ZodTypeAny, {
|
|
1065
|
-
config: Record<string, unknown>;
|
|
1066
|
-
oId: string;
|
|
1067
|
-
trustPolicies?: Record<string, unknown> | undefined;
|
|
1068
|
-
}, {
|
|
1069
|
-
config: Record<string, unknown>;
|
|
1070
|
-
oId: string;
|
|
1071
|
-
trustPolicies?: Record<string, unknown> | undefined;
|
|
1072
|
-
}>;
|
|
1073
|
-
response: z.ZodObject<{
|
|
1074
|
-
saved: z.ZodBoolean;
|
|
1075
|
-
provisioned: z.ZodBoolean;
|
|
1076
|
-
created: z.ZodOptional<z.ZodNumber>;
|
|
1077
|
-
}, "strip", z.ZodTypeAny, {
|
|
1078
|
-
saved: boolean;
|
|
1079
|
-
provisioned: boolean;
|
|
1080
|
-
created?: number | undefined;
|
|
1081
|
-
}, {
|
|
1082
|
-
saved: boolean;
|
|
1083
|
-
provisioned: boolean;
|
|
1084
|
-
created?: number | undefined;
|
|
1085
|
-
}>;
|
|
1086
|
-
};
|
|
1087
1097
|
"destinationsConfig-provisionDestinationsNow": {
|
|
1088
1098
|
request: z.ZodObject<{
|
|
1089
1099
|
oId: z.ZodString;
|
|
@@ -1208,6 +1218,8 @@ export declare const callableGroups: {
|
|
|
1208
1218
|
draft: z.ZodOptional<z.ZodBoolean>;
|
|
1209
1219
|
resolveRecipientsAtSend: z.ZodOptional<z.ZodBoolean>;
|
|
1210
1220
|
kindConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1221
|
+
sendNow: z.ZodOptional<z.ZodBoolean>;
|
|
1222
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1211
1223
|
}, "strip", z.ZodTypeAny, {
|
|
1212
1224
|
oId: string;
|
|
1213
1225
|
kind: string;
|
|
@@ -1216,6 +1228,7 @@ export declare const callableGroups: {
|
|
|
1216
1228
|
description?: string | undefined;
|
|
1217
1229
|
yearGroups?: string[] | undefined;
|
|
1218
1230
|
students?: string | undefined;
|
|
1231
|
+
jobId?: string | undefined;
|
|
1219
1232
|
draft?: boolean | undefined;
|
|
1220
1233
|
academicYear?: string | undefined;
|
|
1221
1234
|
closeAfterDays?: number | undefined;
|
|
@@ -1230,6 +1243,7 @@ export declare const callableGroups: {
|
|
|
1230
1243
|
autoSend?: boolean | undefined;
|
|
1231
1244
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
1232
1245
|
kindConfig?: Record<string, unknown> | undefined;
|
|
1246
|
+
sendNow?: boolean | undefined;
|
|
1233
1247
|
}, {
|
|
1234
1248
|
oId: string;
|
|
1235
1249
|
kind: string;
|
|
@@ -1238,6 +1252,7 @@ export declare const callableGroups: {
|
|
|
1238
1252
|
description?: string | undefined;
|
|
1239
1253
|
yearGroups?: string[] | undefined;
|
|
1240
1254
|
students?: string | undefined;
|
|
1255
|
+
jobId?: string | undefined;
|
|
1241
1256
|
draft?: boolean | undefined;
|
|
1242
1257
|
academicYear?: string | undefined;
|
|
1243
1258
|
closeAfterDays?: number | undefined;
|
|
@@ -1252,19 +1267,23 @@ export declare const callableGroups: {
|
|
|
1252
1267
|
autoSend?: boolean | undefined;
|
|
1253
1268
|
resolveRecipientsAtSend?: boolean | undefined;
|
|
1254
1269
|
kindConfig?: Record<string, unknown> | undefined;
|
|
1270
|
+
sendNow?: boolean | undefined;
|
|
1255
1271
|
}>;
|
|
1256
1272
|
response: z.ZodObject<{
|
|
1257
1273
|
created: z.ZodArray<z.ZodObject<{
|
|
1258
1274
|
cycleId: z.ZodString;
|
|
1259
1275
|
yearGroup: z.ZodOptional<z.ZodString>;
|
|
1260
1276
|
invited: z.ZodNumber;
|
|
1277
|
+
sent: z.ZodOptional<z.ZodNumber>;
|
|
1261
1278
|
}, "strip", z.ZodTypeAny, {
|
|
1262
1279
|
cycleId: string;
|
|
1263
1280
|
invited: number;
|
|
1281
|
+
sent?: number | undefined;
|
|
1264
1282
|
yearGroup?: string | undefined;
|
|
1265
1283
|
}, {
|
|
1266
1284
|
cycleId: string;
|
|
1267
1285
|
invited: number;
|
|
1286
|
+
sent?: number | undefined;
|
|
1268
1287
|
yearGroup?: string | undefined;
|
|
1269
1288
|
}>, "many">;
|
|
1270
1289
|
skippedEmpty: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1274,6 +1293,7 @@ export declare const callableGroups: {
|
|
|
1274
1293
|
created: {
|
|
1275
1294
|
cycleId: string;
|
|
1276
1295
|
invited: number;
|
|
1296
|
+
sent?: number | undefined;
|
|
1277
1297
|
yearGroup?: string | undefined;
|
|
1278
1298
|
}[];
|
|
1279
1299
|
academicYear: string;
|
|
@@ -1283,6 +1303,7 @@ export declare const callableGroups: {
|
|
|
1283
1303
|
created: {
|
|
1284
1304
|
cycleId: string;
|
|
1285
1305
|
invited: number;
|
|
1306
|
+
sent?: number | undefined;
|
|
1286
1307
|
yearGroup?: string | undefined;
|
|
1287
1308
|
}[];
|
|
1288
1309
|
academicYear: string;
|
|
@@ -1469,15 +1490,108 @@ export declare const callableGroups: {
|
|
|
1469
1490
|
updatedCycles: z.ZodNumber;
|
|
1470
1491
|
invited: z.ZodNumber;
|
|
1471
1492
|
}, "strip", z.ZodTypeAny, {
|
|
1472
|
-
saved: boolean;
|
|
1473
1493
|
invited: number;
|
|
1494
|
+
saved: boolean;
|
|
1474
1495
|
updatedCycles: number;
|
|
1475
1496
|
}, {
|
|
1476
|
-
saved: boolean;
|
|
1477
1497
|
invited: number;
|
|
1498
|
+
saved: boolean;
|
|
1478
1499
|
updatedCycles: number;
|
|
1479
1500
|
}>;
|
|
1480
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
|
+
};
|
|
1481
1595
|
"surveys-provisionSurveysNow": {
|
|
1482
1596
|
request: z.ZodObject<{
|
|
1483
1597
|
oId: z.ZodString;
|