placementt-core 1.400.1010 → 1.400.1013
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 +24 -3
- package/package.json +1 -1
- package/src/typeDefinitions.ts +24 -3
package/lib/typeDefinitions.d.ts
CHANGED
|
@@ -114,11 +114,13 @@ export type StudentPlacementData = {
|
|
|
114
114
|
insuranceExpiry?: string;
|
|
115
115
|
insuranceSkippedReason?: string;
|
|
116
116
|
riskAssessment?: boolean | "awaitingReview";
|
|
117
|
-
riskAssessmentType?: "file" | "form" | "skipped";
|
|
117
|
+
riskAssessmentType?: "file" | "form" | "skipped" | "customForm";
|
|
118
118
|
riskAssessmentData?: {
|
|
119
119
|
[key: string]: unknown;
|
|
120
120
|
}[] | string;
|
|
121
121
|
riskAssessmentCustomFields?: RiskAssessmentFieldDef[];
|
|
122
|
+
riskAssessmentFormId?: string;
|
|
123
|
+
riskAssessmentFormSchema?: CustomFormSchema;
|
|
122
124
|
dbsCheck?: boolean | "awaitingReview";
|
|
123
125
|
dbsCheckType?: "file" | "form" | "skipped";
|
|
124
126
|
dbsCheckData?: {
|
|
@@ -280,11 +282,12 @@ export type PlacementListing = {
|
|
|
280
282
|
mapConsent?: boolean;
|
|
281
283
|
mapConsentDate?: string;
|
|
282
284
|
uploadedBy: "student" | "institute" | "provider";
|
|
283
|
-
riskAssessmentType?: "file" | "form" | "skipped";
|
|
285
|
+
riskAssessmentType?: "file" | "form" | "skipped" | "customForm";
|
|
284
286
|
concurrentPlacements?: number;
|
|
285
287
|
riskAssessmentData?: {
|
|
286
288
|
[key: string]: unknown;
|
|
287
289
|
}[] | string;
|
|
290
|
+
riskAssessmentFormId?: string;
|
|
288
291
|
dbsCheckType?: "file" | "form" | "skipped";
|
|
289
292
|
dbsCheckData?: {
|
|
290
293
|
[key: string]: unknown;
|
|
@@ -971,6 +974,12 @@ export type InstituteData = {
|
|
|
971
974
|
employerSharingScope: "membership" | "unrestricted";
|
|
972
975
|
};
|
|
973
976
|
emailDomain: string;
|
|
977
|
+
/** Kill switch for all outbound email associated with this institute. When true the
|
|
978
|
+
* backend drops every email it sends on the institute's behalf — students, parents,
|
|
979
|
+
* employers, linked hubs/trusts and the public — before it reaches Brevo. The only
|
|
980
|
+
* exception is mail to the institute's own staff, so the account stays usable while
|
|
981
|
+
* the block is on. Set from Organisation > Overview. */
|
|
982
|
+
blockAllEmails?: boolean;
|
|
974
983
|
splitBilling?: boolean;
|
|
975
984
|
adminBillingContactId?: string;
|
|
976
985
|
employerEvents?: boolean;
|
|
@@ -1052,6 +1061,12 @@ export type InstituteData = {
|
|
|
1052
1061
|
autoVerifyInsurance?: boolean | "reject";
|
|
1053
1062
|
riskAssessmentTemplate?: Timestamp;
|
|
1054
1063
|
riskAssessmentColumns?: RiskAssessmentFieldDef[];
|
|
1064
|
+
riskAssessmentFormId?: string;
|
|
1065
|
+
riskAssessmentEnabled?: {
|
|
1066
|
+
template?: boolean;
|
|
1067
|
+
columns?: boolean;
|
|
1068
|
+
form?: boolean;
|
|
1069
|
+
};
|
|
1055
1070
|
privacyPolicy: Timestamp;
|
|
1056
1071
|
demo?: boolean;
|
|
1057
1072
|
emailTemplates?: {
|
|
@@ -1356,7 +1371,7 @@ export type PlacementReviewDetails = {
|
|
|
1356
1371
|
jobTitle: string;
|
|
1357
1372
|
questions: PlacementQuestions;
|
|
1358
1373
|
riskAssessment: boolean | "awaitingReview";
|
|
1359
|
-
riskAssessmentType: "form" | "file";
|
|
1374
|
+
riskAssessmentType: "form" | "file" | "customForm";
|
|
1360
1375
|
riskAssessmentData?: {
|
|
1361
1376
|
[key: string]: unknown;
|
|
1362
1377
|
} | string;
|
|
@@ -1387,6 +1402,8 @@ export type PlacementReviewDetails = {
|
|
|
1387
1402
|
riskAssessmentData?: {
|
|
1388
1403
|
[key: string]: unknown;
|
|
1389
1404
|
}[] | string;
|
|
1405
|
+
riskAssessmentFormId?: string;
|
|
1406
|
+
riskAssessmentFormSchema?: CustomFormSchema;
|
|
1390
1407
|
dbsCheckData?: {
|
|
1391
1408
|
[key: string]: unknown;
|
|
1392
1409
|
}[] | string;
|
|
@@ -3034,6 +3051,10 @@ export type EmailInteraction = {
|
|
|
3034
3051
|
recipientEmail: string;
|
|
3035
3052
|
recipientForename: string;
|
|
3036
3053
|
recipientSurname: string;
|
|
3054
|
+
/** The institute this email was sent on behalf of. Written on every send that
|
|
3055
|
+
* knows its institute, so a reminder resent weeks later can still resolve the
|
|
3056
|
+
* institute's email settings (e.g. `blockAllEmails`) without the original context. */
|
|
3057
|
+
oId?: string;
|
|
3037
3058
|
messageType?: MessageTypes;
|
|
3038
3059
|
reminderNumber?: number;
|
|
3039
3060
|
sendReminders?: boolean;
|
package/package.json
CHANGED
package/src/typeDefinitions.ts
CHANGED
|
@@ -108,9 +108,11 @@ export type StudentPlacementData = {
|
|
|
108
108
|
insuranceExpiry?: string,
|
|
109
109
|
insuranceSkippedReason?: string,
|
|
110
110
|
riskAssessment?: boolean|"awaitingReview",
|
|
111
|
-
riskAssessmentType?: "file"|"form"|"skipped",
|
|
111
|
+
riskAssessmentType?: "file"|"form"|"skipped"|"customForm",
|
|
112
112
|
riskAssessmentData?: {[key:string]: unknown}[]|string,
|
|
113
113
|
riskAssessmentCustomFields?: RiskAssessmentFieldDef[],
|
|
114
|
+
riskAssessmentFormId?: string,
|
|
115
|
+
riskAssessmentFormSchema?: CustomFormSchema,
|
|
114
116
|
dbsCheck?: boolean|"awaitingReview",
|
|
115
117
|
dbsCheckType?: "file"|"form"|"skipped",
|
|
116
118
|
dbsCheckData?: {[key:string]: unknown}[]|string,
|
|
@@ -259,9 +261,10 @@ export type PlacementListing = {
|
|
|
259
261
|
mapConsent?: boolean,
|
|
260
262
|
mapConsentDate?: string,
|
|
261
263
|
uploadedBy: "student"|"institute"|"provider",
|
|
262
|
-
riskAssessmentType?: "file"|"form"|"skipped",
|
|
264
|
+
riskAssessmentType?: "file"|"form"|"skipped"|"customForm",
|
|
263
265
|
concurrentPlacements?: number,
|
|
264
266
|
riskAssessmentData?: {[key:string]: unknown}[]|string,
|
|
267
|
+
riskAssessmentFormId?: string,
|
|
265
268
|
dbsCheckType?: "file"|"form"|"skipped",
|
|
266
269
|
dbsCheckData?: {[key:string]: unknown}[]|string,
|
|
267
270
|
contactType?: "email"|"website"|"phone"|"post",
|
|
@@ -979,6 +982,12 @@ export type InstituteData = {
|
|
|
979
982
|
employerSharingScope: "membership"|"unrestricted",
|
|
980
983
|
},
|
|
981
984
|
emailDomain: string,
|
|
985
|
+
/** Kill switch for all outbound email associated with this institute. When true the
|
|
986
|
+
* backend drops every email it sends on the institute's behalf — students, parents,
|
|
987
|
+
* employers, linked hubs/trusts and the public — before it reaches Brevo. The only
|
|
988
|
+
* exception is mail to the institute's own staff, so the account stays usable while
|
|
989
|
+
* the block is on. Set from Organisation > Overview. */
|
|
990
|
+
blockAllEmails?: boolean,
|
|
982
991
|
splitBilling?: boolean,
|
|
983
992
|
adminBillingContactId?: string,
|
|
984
993
|
// Packages institutes can be signed up to
|
|
@@ -1072,6 +1081,12 @@ export type InstituteData = {
|
|
|
1072
1081
|
autoVerifyInsurance?: boolean|"reject",
|
|
1073
1082
|
riskAssessmentTemplate?: Timestamp,
|
|
1074
1083
|
riskAssessmentColumns?: RiskAssessmentFieldDef[],
|
|
1084
|
+
riskAssessmentFormId?: string,
|
|
1085
|
+
riskAssessmentEnabled?: {
|
|
1086
|
+
template?: boolean,
|
|
1087
|
+
columns?: boolean,
|
|
1088
|
+
form?: boolean,
|
|
1089
|
+
},
|
|
1075
1090
|
privacyPolicy: Timestamp,
|
|
1076
1091
|
demo?: boolean,
|
|
1077
1092
|
emailTemplates?: {
|
|
@@ -1381,7 +1396,7 @@ export type PlacementReviewDetails = {
|
|
|
1381
1396
|
jobTitle: string,
|
|
1382
1397
|
questions: PlacementQuestions,
|
|
1383
1398
|
riskAssessment: boolean|"awaitingReview",
|
|
1384
|
-
riskAssessmentType: "form"|"file",
|
|
1399
|
+
riskAssessmentType: "form"|"file"|"customForm",
|
|
1385
1400
|
riskAssessmentData?: {[key: string]: unknown}|string,
|
|
1386
1401
|
dbsCheck: boolean|"awaitingReview",
|
|
1387
1402
|
dbsCheckType: "form"|"file",
|
|
@@ -1397,6 +1412,8 @@ export type PlacementReviewDetails = {
|
|
|
1397
1412
|
providerContactId: string,
|
|
1398
1413
|
incompleteItems: {[key: number]: string[]},
|
|
1399
1414
|
riskAssessmentData?: {[key: string]: unknown}[]|string,
|
|
1415
|
+
riskAssessmentFormId?: string,
|
|
1416
|
+
riskAssessmentFormSchema?: CustomFormSchema,
|
|
1400
1417
|
dbsCheckData?: {[key: string]: unknown}[]|string,
|
|
1401
1418
|
feedbackText?: Descendant[],
|
|
1402
1419
|
feedback: CustomFormSchema,
|
|
@@ -2982,6 +2999,10 @@ export type EmailInteraction = {
|
|
|
2982
2999
|
recipientEmail: string,
|
|
2983
3000
|
recipientForename: string,
|
|
2984
3001
|
recipientSurname: string,
|
|
3002
|
+
/** The institute this email was sent on behalf of. Written on every send that
|
|
3003
|
+
* knows its institute, so a reminder resent weeks later can still resolve the
|
|
3004
|
+
* institute's email settings (e.g. `blockAllEmails`) without the original context. */
|
|
3005
|
+
oId?: string,
|
|
2985
3006
|
// Email reminders values
|
|
2986
3007
|
messageType?: MessageTypes, // This will be used to determine which test is necessary to decide to send a reminder
|
|
2987
3008
|
reminderNumber?: number, // Which of the reminders is this?
|