placementt-core 1.400.985 → 1.400.987
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/constants.d.ts +0 -22
- package/lib/constants.js +8 -53
- package/lib/constants.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/surveys/registry.d.ts +212 -0
- package/lib/surveys/registry.js +443 -0
- package/lib/surveys/registry.js.map +1 -0
- package/lib/surveys/schedule.d.ts +102 -0
- package/lib/surveys/schedule.js +148 -0
- package/lib/surveys/schedule.js.map +1 -0
- package/lib/surveys/schedule.test.d.ts +1 -0
- package/lib/surveys/schedule.test.js +240 -0
- package/lib/surveys/schedule.test.js.map +1 -0
- package/lib/surveys/types.d.ts +204 -0
- package/lib/surveys/types.js +25 -0
- package/lib/surveys/types.js.map +1 -0
- package/lib/typeDefinitions.d.ts +13 -25
- package/package.json +1 -1
- package/src/constants.ts +6 -54
- package/src/index.ts +3 -0
- package/src/surveys/registry.ts +589 -0
- package/src/surveys/schedule.test.ts +281 -0
- package/src/surveys/schedule.ts +168 -0
- package/src/surveys/types.ts +223 -0
- package/src/typeDefinitions.ts +13 -21
package/src/typeDefinitions.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {DocumentData, DocumentReference, OrderByDirection, Timestamp, WhereFilte
|
|
|
2
2
|
import {Descendant} from "slate";
|
|
3
3
|
import {emailTemplates, skillLabelColours} from "./constants";
|
|
4
4
|
import type {ChecklistItem, GiftHistory} from "./customerCareConfig";
|
|
5
|
+
import type {SurveySlot} from "./surveys/types";
|
|
5
6
|
|
|
6
7
|
export type FilterObject = {
|
|
7
8
|
[key: string]: {
|
|
@@ -1861,6 +1862,8 @@ export type EmploymentDetails = {
|
|
|
1861
1862
|
sicSection?: string, // SIC 2007 section letter e.g. "J"
|
|
1862
1863
|
sicLabel?: string, // e.g. "Information and Communication"
|
|
1863
1864
|
employmentStatus: "fullTime"|"partTime"|"selfEmployed"|"contractor"|"zeroHours",
|
|
1865
|
+
/** Optional short free-text description of what the role entails — shown on the journey timeline. */
|
|
1866
|
+
roleDescription?: string,
|
|
1864
1867
|
employerName?: string,
|
|
1865
1868
|
employerSize?: "<10"|"10-49"|"50-249"|"250+"|"publicSector",
|
|
1866
1869
|
isPrimaryJob?: boolean,
|
|
@@ -2005,12 +2008,11 @@ export type AspirationCycle = {
|
|
|
2005
2008
|
*/
|
|
2006
2009
|
export type DestinationsRecipientFilter = {k: string, e?: WhereFilterOp, v: unknown}[];
|
|
2007
2010
|
|
|
2008
|
-
/**
|
|
2009
|
-
*
|
|
2010
|
-
*
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
export type AspirationSurveySlot = {sendMMDD: string, rule?: SurveyDateRule, label?: string};
|
|
2011
|
+
/**
|
|
2012
|
+
* @deprecated Use SurveySlot (surveys/types.ts) — this is now an alias of it.
|
|
2013
|
+
* One scheduled survey in a year's aspiration programme.
|
|
2014
|
+
*/
|
|
2015
|
+
export type AspirationSurveySlot = SurveySlot;
|
|
2014
2016
|
|
|
2015
2017
|
/**
|
|
2016
2018
|
* Per-year-group leaver settings. Used as an override entry in
|
|
@@ -2861,21 +2863,11 @@ export type SurveyDateRule = {
|
|
|
2861
2863
|
month: number, // 1-12
|
|
2862
2864
|
}
|
|
2863
2865
|
|
|
2864
|
-
/**
|
|
2865
|
-
*
|
|
2866
|
-
*
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
* on it, so it is kept in step with `rule`.
|
|
2870
|
-
* Auto-provisioned into each new academic year by the daily cron (mirrors the
|
|
2871
|
-
* aspirations AspirationSurveySlot model). */
|
|
2872
|
-
export type SkillsSurveySlot = {
|
|
2873
|
-
sendMMDD: string,
|
|
2874
|
-
rule?: SurveyDateRule,
|
|
2875
|
-
label?: string,
|
|
2876
|
-
students?: boolean,
|
|
2877
|
-
parents?: boolean,
|
|
2878
|
-
}
|
|
2866
|
+
/**
|
|
2867
|
+
* @deprecated Use SurveySlot (surveys/types.ts) — this is now an alias of it.
|
|
2868
|
+
* One scheduled skills survey in a group's annual programme.
|
|
2869
|
+
*/
|
|
2870
|
+
export type SkillsSurveySlot = SurveySlot;
|
|
2879
2871
|
|
|
2880
2872
|
/**
|
|
2881
2873
|
* A staff-defined student group mapping students to the skills they are served on
|