placementt-core 1.400.982 → 1.400.984
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/typeDefinitions.d.ts +13 -3
- package/package.json +1 -1
- package/src/typeDefinitions.ts +16 -4
package/lib/typeDefinitions.d.ts
CHANGED
|
@@ -959,7 +959,7 @@ export type InstituteData = {
|
|
|
959
959
|
employers?: boolean;
|
|
960
960
|
};
|
|
961
961
|
};
|
|
962
|
-
autoVerifyInsurance?: boolean | "
|
|
962
|
+
autoVerifyInsurance?: boolean | "reject";
|
|
963
963
|
riskAssessmentTemplate?: Timestamp;
|
|
964
964
|
riskAssessmentColumns?: RiskAssessmentFieldDef[];
|
|
965
965
|
privacyPolicy: Timestamp;
|
|
@@ -2339,12 +2339,18 @@ export type Alumni = {
|
|
|
2339
2339
|
sector?: string;
|
|
2340
2340
|
subsector?: string;
|
|
2341
2341
|
businessSize?: string;
|
|
2342
|
-
/** Typed check-in history — replaces the previous untyped enrolmentHistory: {}[]
|
|
2342
|
+
/** Typed check-in history — replaces the previous untyped enrolmentHistory: {}[].
|
|
2343
|
+
* This is the alumnus's activity timeline: every check-in appends here. */
|
|
2343
2344
|
enrolmentHistory: CheckInEntry[];
|
|
2345
|
+
/** Most recent check-in answers — the alumnus's current role/destination snapshot.
|
|
2346
|
+
* Written on every check-in submission; a "no change" reply leaves it untouched. */
|
|
2347
|
+
currentRole?: CheckInEntry;
|
|
2344
2348
|
checkInConsent: boolean;
|
|
2345
2349
|
checkInConsentDate?: string;
|
|
2346
2350
|
lastCheckIn?: string;
|
|
2347
2351
|
nextCheckInDue?: string;
|
|
2352
|
+
/** ISO — when the most recent annual check-in invite was emailed; cron double-send guard. */
|
|
2353
|
+
checkInInviteSentAt?: string;
|
|
2348
2354
|
trustedContact?: TrustedContact;
|
|
2349
2355
|
trustedContactConsent?: boolean;
|
|
2350
2356
|
trustedContactConsentDate?: string;
|
|
@@ -2359,6 +2365,9 @@ export type Alumni = {
|
|
|
2359
2365
|
lacStatus?: boolean;
|
|
2360
2366
|
aspirationHistory?: AspirationEntry[];
|
|
2361
2367
|
visibleToStudents?: boolean;
|
|
2368
|
+
/** Consent to share their journey with students at other schools in their school's trust.
|
|
2369
|
+
* Only meaningful when visibleToStudents is true and the school has an approved trust link. */
|
|
2370
|
+
shareJourneyWithTrust?: boolean;
|
|
2362
2371
|
enableConversations?: boolean;
|
|
2363
2372
|
linkedinUrl?: string;
|
|
2364
2373
|
homePostcode?: string;
|
|
@@ -2843,7 +2852,8 @@ export type YearScoreData = {
|
|
|
2843
2852
|
campaignsClicked?: number;
|
|
2844
2853
|
campaignsFailed?: number;
|
|
2845
2854
|
};
|
|
2846
|
-
type MessageTypes = "hubOrTrustInviteSchool" | "sendPlacementActionRequired" | "sendPlacementAdditionalInformationRequired" | "sendFeedbackReminder" | "sendProviderContactInvite" | "sendProviderContactActivityInvite" | "sendActivateUserAccount" | "shareEmployerEventRequest" | "employerEventInvite" | "schoolEventInvite" | "reuploadPlacementDocument" | "requestEventDates" | "taskReminder" | "eventDatesReminder" | "parentDatabase" | "aspirationInvite" | "leaverInvite" | "leaverReminder" | "leaverResultsInvite" | "leaverResultsReminder" | "leaverChristmasInvite" | "leaverChristmasReminder" | "
|
|
2855
|
+
type MessageTypes = "hubOrTrustInviteSchool" | "sendPlacementActionRequired" | "sendPlacementAdditionalInformationRequired" | "sendFeedbackReminder" | "sendProviderContactInvite" | "sendProviderContactActivityInvite" | "sendActivateUserAccount" | "shareEmployerEventRequest" | "employerEventInvite" | "schoolEventInvite" | "reuploadPlacementDocument" | "requestEventDates" | "taskReminder" | "eventDatesReminder" | "parentDatabase" | "aspirationInvite" | "leaverInvite" | "leaverReminder" | "leaverResultsInvite" | "leaverResultsReminder" | "leaverChristmasInvite" | "leaverChristmasReminder" | "alumniCheckInInvite" | // annual "where are you now" check-in — reminder chain falls back to the trusted contact
|
|
2856
|
+
"alumniCheckInTrustedContact";
|
|
2847
2857
|
/** Keys for reminderFailureFunctions — the fallback dispatched once a reminder chain
|
|
2848
2858
|
* is exhausted with no response. Params are read from the interaction's additionalData. */
|
|
2849
2859
|
export type ReminderFallbackType = "checkInTrustedContact";
|
package/package.json
CHANGED
package/src/typeDefinitions.ts
CHANGED
|
@@ -975,7 +975,7 @@ export type InstituteData = {
|
|
|
975
975
|
employers?: boolean,
|
|
976
976
|
}
|
|
977
977
|
},
|
|
978
|
-
autoVerifyInsurance?: boolean|"
|
|
978
|
+
autoVerifyInsurance?: boolean|"reject",
|
|
979
979
|
riskAssessmentTemplate?: Timestamp,
|
|
980
980
|
riskAssessmentColumns?: RiskAssessmentFieldDef[],
|
|
981
981
|
privacyPolicy: Timestamp,
|
|
@@ -983,7 +983,7 @@ export type InstituteData = {
|
|
|
983
983
|
emailTemplates?: {
|
|
984
984
|
onboarding: boolean,
|
|
985
985
|
employerDatabaseInvite?: string,
|
|
986
|
-
},
|
|
986
|
+
},
|
|
987
987
|
acceptingParents?: boolean,
|
|
988
988
|
parentDatabaseEmailTemplate?: string,
|
|
989
989
|
publicEventsDescription?: Descendant[],
|
|
@@ -995,7 +995,8 @@ export type InstituteData = {
|
|
|
995
995
|
k: string;
|
|
996
996
|
e?: WhereFilterOp;
|
|
997
997
|
v: unknown;
|
|
998
|
-
}[],
|
|
998
|
+
}[],
|
|
999
|
+
}
|
|
999
1000
|
// RECURRING WORK EXPERIENCE GROUPS (templates that spawn a cohort instance each year)
|
|
1000
1001
|
cohortConfig?: {
|
|
1001
1002
|
[groupId: string]: {
|
|
@@ -2284,14 +2285,21 @@ export type Alumni = {
|
|
|
2284
2285
|
subsector?: string,
|
|
2285
2286
|
businessSize?: string,
|
|
2286
2287
|
|
|
2287
|
-
/** Typed check-in history — replaces the previous untyped enrolmentHistory: {}[]
|
|
2288
|
+
/** Typed check-in history — replaces the previous untyped enrolmentHistory: {}[].
|
|
2289
|
+
* This is the alumnus's activity timeline: every check-in appends here. */
|
|
2288
2290
|
enrolmentHistory: CheckInEntry[],
|
|
2289
2291
|
|
|
2292
|
+
/** Most recent check-in answers — the alumnus's current role/destination snapshot.
|
|
2293
|
+
* Written on every check-in submission; a "no change" reply leaves it untouched. */
|
|
2294
|
+
currentRole?: CheckInEntry,
|
|
2295
|
+
|
|
2290
2296
|
// Check-in management
|
|
2291
2297
|
checkInConsent: boolean,
|
|
2292
2298
|
checkInConsentDate?: string,
|
|
2293
2299
|
lastCheckIn?: string, // ISO date
|
|
2294
2300
|
nextCheckInDue?: string, // ISO date
|
|
2301
|
+
/** ISO — when the most recent annual check-in invite was emailed; cron double-send guard. */
|
|
2302
|
+
checkInInviteSentAt?: string,
|
|
2295
2303
|
|
|
2296
2304
|
// Trusted contact
|
|
2297
2305
|
trustedContact?: TrustedContact,
|
|
@@ -2316,6 +2324,9 @@ export type Alumni = {
|
|
|
2316
2324
|
|
|
2317
2325
|
// Engagement
|
|
2318
2326
|
visibleToStudents?: boolean,
|
|
2327
|
+
/** Consent to share their journey with students at other schools in their school's trust.
|
|
2328
|
+
* Only meaningful when visibleToStudents is true and the school has an approved trust link. */
|
|
2329
|
+
shareJourneyWithTrust?: boolean,
|
|
2319
2330
|
enableConversations?: boolean,
|
|
2320
2331
|
linkedinUrl?: string,
|
|
2321
2332
|
|
|
@@ -2768,6 +2779,7 @@ type MessageTypes =
|
|
|
2768
2779
|
"leaverResultsReminder" |
|
|
2769
2780
|
"leaverChristmasInvite" |
|
|
2770
2781
|
"leaverChristmasReminder" |
|
|
2782
|
+
"alumniCheckInInvite" | // annual "where are you now" check-in — reminder chain falls back to the trusted contact
|
|
2771
2783
|
"alumniCheckInTrustedContact" // parent/trusted-contact fallback invite — has its own reminder chain
|
|
2772
2784
|
|
|
2773
2785
|
/** Keys for reminderFailureFunctions — the fallback dispatched once a reminder chain
|