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.
@@ -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
- /** One scheduled survey in a year's aspiration programme.
2009
- * `rule` (when present) is the source of truth a relative rule like "first Monday
2010
- * of June", resolved to a concrete date for each academic year at provision time.
2011
- * `sendMMDD` ("MM-DD") is the materialised date (and the sole value on legacy slots);
2012
- * provisioning resolves `rule` for the target year, falling back to `sendMMDD`. */
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
- /** One scheduled skills survey in a group's annual programme.
2865
- * `rule` (when present) is the source of truth a relative rule like "first Monday
2866
- * of June" resolved to a concrete date for each academic year each September.
2867
- * `sendMMDD` ("MM-DD") is the materialised date for the current academic year (and
2868
- * the sole value on legacy slots created before rules existed); the daily cron fires
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