placementt-core 1.400.896 → 1.400.898

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.
@@ -860,6 +860,10 @@ export type InstituteData = {
860
860
  valueMap: {
861
861
  [rawValue: string]: number;
862
862
  };
863
+ template?: {
864
+ prefix: string;
865
+ suffix: string;
866
+ };
863
867
  };
864
868
  aspirationCycleConfig?: {
865
869
  autoSend?: boolean;
@@ -1170,6 +1174,7 @@ export type PlacementReviewDetails = {
1170
1174
  id: string;
1171
1175
  uid: string;
1172
1176
  leadTimes: string[];
1177
+ reqUserType: StudentPlacementData["reqUserType"];
1173
1178
  requiredSections: string[];
1174
1179
  existingPlacements?: {
1175
1180
  [key: string]: {
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.896",
5
+ "version": "1.400.898",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "scripts": {
@@ -842,11 +842,15 @@ export type InstituteData = {
842
842
  },
843
843
  // YEAR GROUP MAPPING — student year groups are not standardised: the field
844
844
  // may be details.yearGroup or details.year, and values vary ("10", "Year 10",
845
- // "Y10"). Configured in Organisation → Overview; consumed by aspiration
845
+ // "Y10"). Configured in Organisation → Field Mappings; consumed by aspiration
846
846
  // surveys (and anything else needing canonical year group numbers).
847
847
  yearGroupConfig?: {
848
848
  field: string, // studentsFields entry holding year group, e.g. "yearGroup"
849
849
  valueMap: {[rawValue: string]: number}, // raw stored value → canonical year number, e.g. {"Year 10": 10}
850
+ template?: { // shared prefix/suffix around the year number, e.g. "Year 10" -> {prefix: "Year ", suffix: ""}
851
+ prefix: string,
852
+ suffix: string,
853
+ },
850
854
  },
851
855
  // ASPIRATION CYCLE CONFIGURATION (Form A — annual student intent tracking)
852
856
  aspirationCycleConfig?: {
@@ -1159,6 +1163,7 @@ export type PlacementReviewDetails = {
1159
1163
  id: string,
1160
1164
  uid: string,
1161
1165
  leadTimes: string[],
1166
+ reqUserType: StudentPlacementData["reqUserType"],
1162
1167
  requiredSections: string[],
1163
1168
  existingPlacements?: {
1164
1169
  [key: string]: {