placementt-core 1.400.914 → 1.400.916

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.
@@ -1063,6 +1063,7 @@ export type CohortData = {
1063
1063
  product: Products;
1064
1064
  schoolId?: string;
1065
1065
  groupId?: string;
1066
+ academicYear?: string;
1066
1067
  designatedStaff?: string;
1067
1068
  autoArchiveDate?: string;
1068
1069
  logType?: "basic" | "custom";
@@ -2990,10 +2991,12 @@ export type LeaverGroup = {
2990
2991
  resultsDay?: {
2991
2992
  enabled: boolean;
2992
2993
  sendAt: string;
2994
+ emailTemplateId?: string;
2993
2995
  };
2994
2996
  christmas?: {
2995
2997
  enabled: boolean;
2996
2998
  sendAt: string;
2999
+ emailTemplateId?: string;
2997
3000
  };
2998
3001
  };
2999
3002
  /** Per-checkpoint lifecycle state, stamped by the cron / send-now callables. */
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.914",
5
+ "version": "1.400.916",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "scripts": {
@@ -1063,6 +1063,7 @@ export type CohortData = {
1063
1063
  product: Products,
1064
1064
  schoolId?: string,
1065
1065
  groupId?: string, // links this instance to its recurring template in InstituteData.cohortConfig
1066
+ academicYear?: string, // "YYYY/YY" cycle this instance belongs to (used to dedupe auto-creation)
1066
1067
  designatedStaff?: string,
1067
1068
  autoArchiveDate?: string,
1068
1069
  logType?: "basic"|"custom",
@@ -2974,8 +2975,8 @@ export type LeaverGroup = {
2974
2975
 
2975
2976
  /** Post-leaving checkpoint schedule. Absent = checkpoints disabled for this group. */
2976
2977
  checkpointConfig?: {
2977
- resultsDay?: {enabled: boolean, sendAt: string}, // ISO datetime
2978
- christmas?: {enabled: boolean, sendAt: string},
2978
+ resultsDay?: {enabled: boolean, sendAt: string, emailTemplateId?: string}, // ISO datetime
2979
+ christmas?: {enabled: boolean, sendAt: string, emailTemplateId?: string},
2979
2980
  },
2980
2981
  /** Per-checkpoint lifecycle state, stamped by the cron / send-now callables. */
2981
2982
  checkpointState?: {