placementt-core 1.400.894 → 1.400.896

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.
@@ -855,6 +855,12 @@ export type InstituteData = {
855
855
  url: string;
856
856
  };
857
857
  };
858
+ yearGroupConfig?: {
859
+ field: string;
860
+ valueMap: {
861
+ [rawValue: string]: number;
862
+ };
863
+ };
858
864
  aspirationCycleConfig?: {
859
865
  autoSend?: boolean;
860
866
  scheduledSendMMDD?: string;
@@ -1934,6 +1940,7 @@ export type AspirationCycle = {
1934
1940
  reminderSentAt?: string;
1935
1941
  aggregates?: AspirationAggregates;
1936
1942
  emailTemplateId?: string;
1943
+ studentSelection?: string;
1937
1944
  };
1938
1945
  /**
1939
1946
  * One per student per AspirationCycle. Tracks whether the student has responded
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "placementt-core",
4
4
  "author": "Placementt",
5
- "version": "1.400.894",
5
+ "version": "1.400.896",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "scripts": {
@@ -840,6 +840,14 @@ export type InstituteData = {
840
840
  url: string
841
841
  }
842
842
  },
843
+ // YEAR GROUP MAPPING — student year groups are not standardised: the field
844
+ // may be details.yearGroup or details.year, and values vary ("10", "Year 10",
845
+ // "Y10"). Configured in Organisation → Overview; consumed by aspiration
846
+ // surveys (and anything else needing canonical year group numbers).
847
+ yearGroupConfig?: {
848
+ field: string, // studentsFields entry holding year group, e.g. "yearGroup"
849
+ valueMap: {[rawValue: string]: number}, // raw stored value → canonical year number, e.g. {"Year 10": 10}
850
+ },
843
851
  // ASPIRATION CYCLE CONFIGURATION (Form A — annual student intent tracking)
844
852
  aspirationCycleConfig?: {
845
853
  autoSend?: boolean, // if true, cron fires each year on scheduledSendMMDD
@@ -1841,6 +1849,7 @@ export type AspirationCycle = {
1841
1849
  reminderSentAt?: string, // ISO — day-14 reminder fire time
1842
1850
  aggregates?: AspirationAggregates, // pre-aggregated response data for dashboard charts
1843
1851
  emailTemplateId?: string, // optional custom email template; falls back to system default
1852
+ studentSelection?: string, // JSON-serialised DataViewerSelectionBackend — audit of staff-picked recipients
1844
1853
  }
1845
1854
 
1846
1855
  /**