placementt-core 1.400.1271 → 1.400.1272
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 +76 -0
- package/lib/callables/wonde.d.ts +45 -0
- package/lib/callables/wonde.js +19 -0
- package/lib/callables/wonde.js.map +1 -1
- package/lib/typeDefinitions.d.ts +8 -0
- package/lib/typeDefinitions.js.map +1 -1
- package/package.json +1 -1
- package/src/callables/wonde.ts +19 -0
- package/src/typeDefinitions.ts +2 -0
|
@@ -1858,6 +1858,44 @@ export declare const allCallables: {
|
|
|
1858
1858
|
}[];
|
|
1859
1859
|
}>;
|
|
1860
1860
|
};
|
|
1861
|
+
"wonde-transferStudent": {
|
|
1862
|
+
request: z.ZodObject<{
|
|
1863
|
+
uid: z.ZodString;
|
|
1864
|
+
toOId: z.ZodString;
|
|
1865
|
+
cohort: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
}, "strip", z.ZodTypeAny, {
|
|
1867
|
+
uid: string;
|
|
1868
|
+
toOId: string;
|
|
1869
|
+
cohort?: string | undefined;
|
|
1870
|
+
}, {
|
|
1871
|
+
uid: string;
|
|
1872
|
+
toOId: string;
|
|
1873
|
+
cohort?: string | undefined;
|
|
1874
|
+
}>;
|
|
1875
|
+
response: z.ZodObject<{
|
|
1876
|
+
ok: z.ZodLiteral<true>;
|
|
1877
|
+
}, "strip", z.ZodTypeAny, {
|
|
1878
|
+
ok: true;
|
|
1879
|
+
}, {
|
|
1880
|
+
ok: true;
|
|
1881
|
+
}>;
|
|
1882
|
+
};
|
|
1883
|
+
"wonde-undoTransfer": {
|
|
1884
|
+
request: z.ZodObject<{
|
|
1885
|
+
uid: z.ZodString;
|
|
1886
|
+
}, "strip", z.ZodTypeAny, {
|
|
1887
|
+
uid: string;
|
|
1888
|
+
}, {
|
|
1889
|
+
uid: string;
|
|
1890
|
+
}>;
|
|
1891
|
+
response: z.ZodObject<{
|
|
1892
|
+
ok: z.ZodLiteral<true>;
|
|
1893
|
+
}, "strip", z.ZodTypeAny, {
|
|
1894
|
+
ok: true;
|
|
1895
|
+
}, {
|
|
1896
|
+
ok: true;
|
|
1897
|
+
}>;
|
|
1898
|
+
};
|
|
1861
1899
|
"e2e-redeemSignInLink": {
|
|
1862
1900
|
request: z.ZodObject<{
|
|
1863
1901
|
token: z.ZodString;
|
|
@@ -6123,6 +6161,44 @@ export declare const callableGroups: {
|
|
|
6123
6161
|
}[];
|
|
6124
6162
|
}>;
|
|
6125
6163
|
};
|
|
6164
|
+
"wonde-transferStudent": {
|
|
6165
|
+
request: z.ZodObject<{
|
|
6166
|
+
uid: z.ZodString;
|
|
6167
|
+
toOId: z.ZodString;
|
|
6168
|
+
cohort: z.ZodOptional<z.ZodString>;
|
|
6169
|
+
}, "strip", z.ZodTypeAny, {
|
|
6170
|
+
uid: string;
|
|
6171
|
+
toOId: string;
|
|
6172
|
+
cohort?: string | undefined;
|
|
6173
|
+
}, {
|
|
6174
|
+
uid: string;
|
|
6175
|
+
toOId: string;
|
|
6176
|
+
cohort?: string | undefined;
|
|
6177
|
+
}>;
|
|
6178
|
+
response: z.ZodObject<{
|
|
6179
|
+
ok: z.ZodLiteral<true>;
|
|
6180
|
+
}, "strip", z.ZodTypeAny, {
|
|
6181
|
+
ok: true;
|
|
6182
|
+
}, {
|
|
6183
|
+
ok: true;
|
|
6184
|
+
}>;
|
|
6185
|
+
};
|
|
6186
|
+
"wonde-undoTransfer": {
|
|
6187
|
+
request: z.ZodObject<{
|
|
6188
|
+
uid: z.ZodString;
|
|
6189
|
+
}, "strip", z.ZodTypeAny, {
|
|
6190
|
+
uid: string;
|
|
6191
|
+
}, {
|
|
6192
|
+
uid: string;
|
|
6193
|
+
}>;
|
|
6194
|
+
response: z.ZodObject<{
|
|
6195
|
+
ok: z.ZodLiteral<true>;
|
|
6196
|
+
}, "strip", z.ZodTypeAny, {
|
|
6197
|
+
ok: true;
|
|
6198
|
+
}, {
|
|
6199
|
+
ok: true;
|
|
6200
|
+
}>;
|
|
6201
|
+
};
|
|
6126
6202
|
};
|
|
6127
6203
|
misSyncCallables: {
|
|
6128
6204
|
"misSync-saveConfig": {
|
package/lib/callables/wonde.d.ts
CHANGED
|
@@ -294,4 +294,49 @@ export declare const wondeCallables: {
|
|
|
294
294
|
}[];
|
|
295
295
|
}>;
|
|
296
296
|
};
|
|
297
|
+
/**
|
|
298
|
+
* Admin only. Moves a student's account to another school in the same trust,
|
|
299
|
+
* so that school's Wonde sync picks them up. Only the user doc changes; the old
|
|
300
|
+
* oId and cohort are kept in `transferredFrom` for undo.
|
|
301
|
+
*/
|
|
302
|
+
"wonde-transferStudent": {
|
|
303
|
+
request: z.ZodObject<{
|
|
304
|
+
uid: z.ZodString;
|
|
305
|
+
toOId: z.ZodString;
|
|
306
|
+
/** A cohort at the new school, or none. */
|
|
307
|
+
cohort: z.ZodOptional<z.ZodString>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
uid: string;
|
|
310
|
+
toOId: string;
|
|
311
|
+
cohort?: string | undefined;
|
|
312
|
+
}, {
|
|
313
|
+
uid: string;
|
|
314
|
+
toOId: string;
|
|
315
|
+
cohort?: string | undefined;
|
|
316
|
+
}>;
|
|
317
|
+
response: z.ZodObject<{
|
|
318
|
+
ok: z.ZodLiteral<true>;
|
|
319
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
ok: true;
|
|
321
|
+
}, {
|
|
322
|
+
ok: true;
|
|
323
|
+
}>;
|
|
324
|
+
};
|
|
325
|
+
/** Admin only. Moves a transferred student back to the school in `transferredFrom`. */
|
|
326
|
+
"wonde-undoTransfer": {
|
|
327
|
+
request: z.ZodObject<{
|
|
328
|
+
uid: z.ZodString;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
uid: string;
|
|
331
|
+
}, {
|
|
332
|
+
uid: string;
|
|
333
|
+
}>;
|
|
334
|
+
response: z.ZodObject<{
|
|
335
|
+
ok: z.ZodLiteral<true>;
|
|
336
|
+
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
ok: true;
|
|
338
|
+
}, {
|
|
339
|
+
ok: true;
|
|
340
|
+
}>;
|
|
341
|
+
};
|
|
297
342
|
};
|
package/lib/callables/wonde.js
CHANGED
|
@@ -87,5 +87,24 @@ exports.wondeCallables = {
|
|
|
87
87
|
})),
|
|
88
88
|
}),
|
|
89
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* Admin only. Moves a student's account to another school in the same trust,
|
|
92
|
+
* so that school's Wonde sync picks them up. Only the user doc changes; the old
|
|
93
|
+
* oId and cohort are kept in `transferredFrom` for undo.
|
|
94
|
+
*/
|
|
95
|
+
"wonde-transferStudent": {
|
|
96
|
+
request: zod_1.z.object({
|
|
97
|
+
uid: zod_1.z.string().min(1),
|
|
98
|
+
toOId: zod_1.z.string().min(1),
|
|
99
|
+
/** A cohort at the new school, or none. */
|
|
100
|
+
cohort: zod_1.z.string().min(1).optional(),
|
|
101
|
+
}),
|
|
102
|
+
response: zod_1.z.object({ ok: zod_1.z.literal(true) }),
|
|
103
|
+
},
|
|
104
|
+
/** Admin only. Moves a transferred student back to the school in `transferredFrom`. */
|
|
105
|
+
"wonde-undoTransfer": {
|
|
106
|
+
request: zod_1.z.object({ uid: zod_1.z.string().min(1) }),
|
|
107
|
+
response: zod_1.z.object({ ok: zod_1.z.literal(true) }),
|
|
108
|
+
},
|
|
90
109
|
};
|
|
91
110
|
//# sourceMappingURL=wonde.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wonde.js","sourceRoot":"","sources":["../../src/callables/wonde.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAGtB;;;;;;;GAOG;AACU,QAAA,cAAc,GAAG;IAC1B,yBAAyB,EAAE;QACvB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,wCAAwC;YACxC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACtB,aA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,EAAE;gBAChC,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;gBAC3B,+EAA+E;gBAC/E,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;aACpC,CAAC,CAAC;SACN,CAAC;KACL;IACD;;;;OAIG;IACH,uBAAuB,EAAE;QACrB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACtB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACxB,2CAA2C;YAC3C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;SACvC,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAC,EAAE,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAC,CAAC;KAC5C;IACD,uFAAuF;IACvF,oBAAoB,EAAE;QAClB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAC,CAAC;QAC3C,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAC,EAAE,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAC,CAAC;KAC5C;CACoB,CAAC"}
|
package/lib/typeDefinitions.d.ts
CHANGED
|
@@ -621,6 +621,14 @@ export type UserData = {
|
|
|
621
621
|
activationCode: number;
|
|
622
622
|
cohort?: string;
|
|
623
623
|
schoolId?: string;
|
|
624
|
+
/** Set when an admin moved a dual registered pupil to another school in their trust. The old school-specific fields, for undo. */
|
|
625
|
+
transferredFrom?: {
|
|
626
|
+
oId: string;
|
|
627
|
+
cohort: string | null;
|
|
628
|
+
schoolId: string | null;
|
|
629
|
+
at: string;
|
|
630
|
+
by: string;
|
|
631
|
+
};
|
|
624
632
|
cohortData?: CohortData;
|
|
625
633
|
dismissedTasks?: string[];
|
|
626
634
|
dismissedTutorials?: 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":";;;AA01IA,sDASC;AAeD,oDAKC;AAaD,0CAEC;AA7uED;;;;;kFAKkF;AACrE,QAAA,qBAAqB,GAAG,SAAS,CAAC;AAClC,QAAA,iBAAiB,GAAG,OAAO,CAAC;AAypEzC;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/wonde.ts
CHANGED
|
@@ -86,4 +86,23 @@ export const wondeCallables = {
|
|
|
86
86
|
})),
|
|
87
87
|
}),
|
|
88
88
|
},
|
|
89
|
+
/**
|
|
90
|
+
* Admin only. Moves a student's account to another school in the same trust,
|
|
91
|
+
* so that school's Wonde sync picks them up. Only the user doc changes; the old
|
|
92
|
+
* oId and cohort are kept in `transferredFrom` for undo.
|
|
93
|
+
*/
|
|
94
|
+
"wonde-transferStudent": {
|
|
95
|
+
request: z.object({
|
|
96
|
+
uid: z.string().min(1),
|
|
97
|
+
toOId: z.string().min(1),
|
|
98
|
+
/** A cohort at the new school, or none. */
|
|
99
|
+
cohort: z.string().min(1).optional(),
|
|
100
|
+
}),
|
|
101
|
+
response: z.object({ok: z.literal(true)}),
|
|
102
|
+
},
|
|
103
|
+
/** Admin only. Moves a transferred student back to the school in `transferredFrom`. */
|
|
104
|
+
"wonde-undoTransfer": {
|
|
105
|
+
request: z.object({uid: z.string().min(1)}),
|
|
106
|
+
response: z.object({ok: z.literal(true)}),
|
|
107
|
+
},
|
|
89
108
|
} satisfies CallableGroup;
|
package/src/typeDefinitions.ts
CHANGED
|
@@ -658,6 +658,8 @@ export type UserData = {
|
|
|
658
658
|
activationCode: number,
|
|
659
659
|
cohort?: string,
|
|
660
660
|
schoolId?: string,
|
|
661
|
+
/** Set when an admin moved a dual registered pupil to another school in their trust. The old school-specific fields, for undo. */
|
|
662
|
+
transferredFrom?: {oId: string, cohort: string|null, schoolId: string|null, at: string, by: string},
|
|
661
663
|
cohortData?: CohortData,
|
|
662
664
|
dismissedTasks?: string[],
|
|
663
665
|
dismissedTutorials?: string[],
|