placementt-core 1.400.1012 → 1.400.1014
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 +17 -5
- package/package.json +1 -1
- package/src/typeDefinitions.ts +19 -5
package/lib/typeDefinitions.d.ts
CHANGED
|
@@ -875,6 +875,11 @@ export type RiskAssessmentFieldDef = {
|
|
|
875
875
|
type: "string" | "dropdown";
|
|
876
876
|
options?: string[];
|
|
877
877
|
};
|
|
878
|
+
export type RiskAssessmentOptions = {
|
|
879
|
+
template?: boolean;
|
|
880
|
+
columns?: boolean;
|
|
881
|
+
form?: boolean;
|
|
882
|
+
};
|
|
878
883
|
export type EmployerField = {
|
|
879
884
|
name: string;
|
|
880
885
|
label?: string;
|
|
@@ -974,6 +979,12 @@ export type InstituteData = {
|
|
|
974
979
|
employerSharingScope: "membership" | "unrestricted";
|
|
975
980
|
};
|
|
976
981
|
emailDomain: string;
|
|
982
|
+
/** Kill switch for all outbound email associated with this institute. When true the
|
|
983
|
+
* backend drops every email it sends on the institute's behalf — students, parents,
|
|
984
|
+
* employers, linked hubs/trusts and the public — before it reaches Brevo. The only
|
|
985
|
+
* exception is mail to the institute's own staff, so the account stays usable while
|
|
986
|
+
* the block is on. Set from Organisation > Overview. */
|
|
987
|
+
blockAllEmails?: boolean;
|
|
977
988
|
splitBilling?: boolean;
|
|
978
989
|
adminBillingContactId?: string;
|
|
979
990
|
employerEvents?: boolean;
|
|
@@ -1056,11 +1067,7 @@ export type InstituteData = {
|
|
|
1056
1067
|
riskAssessmentTemplate?: Timestamp;
|
|
1057
1068
|
riskAssessmentColumns?: RiskAssessmentFieldDef[];
|
|
1058
1069
|
riskAssessmentFormId?: string;
|
|
1059
|
-
riskAssessmentEnabled?:
|
|
1060
|
-
template?: boolean;
|
|
1061
|
-
columns?: boolean;
|
|
1062
|
-
form?: boolean;
|
|
1063
|
-
};
|
|
1070
|
+
riskAssessmentEnabled?: RiskAssessmentOptions;
|
|
1064
1071
|
privacyPolicy: Timestamp;
|
|
1065
1072
|
demo?: boolean;
|
|
1066
1073
|
emailTemplates?: {
|
|
@@ -1430,6 +1437,7 @@ export type PlacementReviewDetails = {
|
|
|
1430
1437
|
trackAttendance?: boolean;
|
|
1431
1438
|
daysEachWeek?: ("Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" | "Sun")[];
|
|
1432
1439
|
riskAssessmentColumns?: RiskAssessmentFieldDef[];
|
|
1440
|
+
riskAssessmentEnabled?: RiskAssessmentOptions;
|
|
1433
1441
|
employerFields?: EmployerField[];
|
|
1434
1442
|
};
|
|
1435
1443
|
export type ProviderMatch = {
|
|
@@ -3045,6 +3053,10 @@ export type EmailInteraction = {
|
|
|
3045
3053
|
recipientEmail: string;
|
|
3046
3054
|
recipientForename: string;
|
|
3047
3055
|
recipientSurname: string;
|
|
3056
|
+
/** The institute this email was sent on behalf of. Written on every send that
|
|
3057
|
+
* knows its institute, so a reminder resent weeks later can still resolve the
|
|
3058
|
+
* institute's email settings (e.g. `blockAllEmails`) without the original context. */
|
|
3059
|
+
oId?: string;
|
|
3048
3060
|
messageType?: MessageTypes;
|
|
3049
3061
|
reminderNumber?: number;
|
|
3050
3062
|
sendReminders?: boolean;
|
package/package.json
CHANGED
package/src/typeDefinitions.ts
CHANGED
|
@@ -897,6 +897,13 @@ export type RiskAssessmentFieldDef = {
|
|
|
897
897
|
options?: string[]
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
+
// Which routes an institute lets employers use to submit a risk assessment.
|
|
901
|
+
export type RiskAssessmentOptions = {
|
|
902
|
+
template?: boolean,
|
|
903
|
+
columns?: boolean,
|
|
904
|
+
form?: boolean,
|
|
905
|
+
}
|
|
906
|
+
|
|
900
907
|
export type EmployerField = {
|
|
901
908
|
name: string,
|
|
902
909
|
label?: string,
|
|
@@ -982,6 +989,12 @@ export type InstituteData = {
|
|
|
982
989
|
employerSharingScope: "membership"|"unrestricted",
|
|
983
990
|
},
|
|
984
991
|
emailDomain: string,
|
|
992
|
+
/** Kill switch for all outbound email associated with this institute. When true the
|
|
993
|
+
* backend drops every email it sends on the institute's behalf — students, parents,
|
|
994
|
+
* employers, linked hubs/trusts and the public — before it reaches Brevo. The only
|
|
995
|
+
* exception is mail to the institute's own staff, so the account stays usable while
|
|
996
|
+
* the block is on. Set from Organisation > Overview. */
|
|
997
|
+
blockAllEmails?: boolean,
|
|
985
998
|
splitBilling?: boolean,
|
|
986
999
|
adminBillingContactId?: string,
|
|
987
1000
|
// Packages institutes can be signed up to
|
|
@@ -1076,11 +1089,7 @@ export type InstituteData = {
|
|
|
1076
1089
|
riskAssessmentTemplate?: Timestamp,
|
|
1077
1090
|
riskAssessmentColumns?: RiskAssessmentFieldDef[],
|
|
1078
1091
|
riskAssessmentFormId?: string,
|
|
1079
|
-
riskAssessmentEnabled?:
|
|
1080
|
-
template?: boolean,
|
|
1081
|
-
columns?: boolean,
|
|
1082
|
-
form?: boolean,
|
|
1083
|
-
},
|
|
1092
|
+
riskAssessmentEnabled?: RiskAssessmentOptions,
|
|
1084
1093
|
privacyPolicy: Timestamp,
|
|
1085
1094
|
demo?: boolean,
|
|
1086
1095
|
emailTemplates?: {
|
|
@@ -1426,6 +1435,7 @@ export type PlacementReviewDetails = {
|
|
|
1426
1435
|
trackAttendance?: boolean,
|
|
1427
1436
|
daysEachWeek?: ("Mon"|"Tue"|"Wed"|"Thu"|"Fri"|"Sat"|"Sun")[],
|
|
1428
1437
|
riskAssessmentColumns?: RiskAssessmentFieldDef[],
|
|
1438
|
+
riskAssessmentEnabled?: RiskAssessmentOptions,
|
|
1429
1439
|
employerFields?: EmployerField[],
|
|
1430
1440
|
}
|
|
1431
1441
|
|
|
@@ -2993,6 +3003,10 @@ export type EmailInteraction = {
|
|
|
2993
3003
|
recipientEmail: string,
|
|
2994
3004
|
recipientForename: string,
|
|
2995
3005
|
recipientSurname: string,
|
|
3006
|
+
/** The institute this email was sent on behalf of. Written on every send that
|
|
3007
|
+
* knows its institute, so a reminder resent weeks later can still resolve the
|
|
3008
|
+
* institute's email settings (e.g. `blockAllEmails`) without the original context. */
|
|
3009
|
+
oId?: string,
|
|
2996
3010
|
// Email reminders values
|
|
2997
3011
|
messageType?: MessageTypes, // This will be used to determine which test is necessary to decide to send a reminder
|
|
2998
3012
|
reminderNumber?: number, // Which of the reminders is this?
|