placementt-core 1.300.31 → 1.300.32

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.
@@ -787,14 +787,17 @@ export type CohortData = {
787
787
  feedback?: {
788
788
  students?: string;
789
789
  staff?: string;
790
+ parent?: string;
790
791
  provider?: string;
791
792
  };
792
793
  feedbackText?: {
793
794
  students?: Descendant[];
794
795
  staff?: Descendant[];
796
+ parent?: Descendant[];
795
797
  provider?: Descendant[];
796
798
  };
797
799
  providerFeedbackSent?: Timestamp;
800
+ parentFeedbackSent?: Timestamp;
798
801
  studentsFeedbackSent?: Timestamp;
799
802
  emailTemplates?: {
800
803
  [key in keyof typeof emailTemplates]: string;
@@ -817,6 +820,28 @@ export type ArrowObject = {
817
820
  required?: boolean;
818
821
  screenX?: number;
819
822
  };
823
+ export type CohortAnalytics = {
824
+ students?: {
825
+ [key: string /** key is formID_fieldID */]: {
826
+ [key: string]: number;
827
+ }; /**key is: number for rating; string for dropdown value, number for number value, boolean for checkbox, dbstring for date; */
828
+ };
829
+ staff?: {
830
+ [key: string /** key is formID_fieldID */]: {
831
+ [key: string]: number;
832
+ }; /**key is: number for rating; string for dropdown value, number for number value, boolean for checkbox, dbstring for date; */
833
+ };
834
+ parent?: {
835
+ [key: string /** key is formID_fieldID */]: {
836
+ [key: string]: number;
837
+ }; /**key is: number for rating; string for dropdown value, number for number value, boolean for checkbox, dbstring for date; */
838
+ };
839
+ provider?: {
840
+ [key: string /** key is formID_fieldID */]: {
841
+ [key: string]: number;
842
+ }; /**key is: number for rating; string for dropdown value, number for number value, boolean for checkbox, dbstring for date; */
843
+ };
844
+ };
820
845
  export type PlacementReviewDetails = {
821
846
  activeDates: string[];
822
847
  studentForename: string;
@@ -893,7 +918,7 @@ export type PlacementReviewDetails = {
893
918
  }[] | string;
894
919
  feedbackText?: Descendant[];
895
920
  feedback: CustomFormSchema;
896
- providerFeedback?: {
921
+ feedbackData?: {
897
922
  [key: string]: unknown;
898
923
  };
899
924
  primaryColor?: 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.300.31",
5
+ "version": "1.300.32",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "scripts": {
@@ -811,14 +811,17 @@ export type CohortData = {
811
811
  feedback?: {
812
812
  students?: string,
813
813
  staff?: string,
814
+ parent?: string,
814
815
  provider?: string,
815
816
  },
816
817
  feedbackText?: {
817
818
  students?: Descendant[],
818
819
  staff?: Descendant[],
820
+ parent?: Descendant[],
819
821
  provider?: Descendant[],
820
822
  },
821
823
  providerFeedbackSent?: Timestamp,
824
+ parentFeedbackSent?: Timestamp,
822
825
  studentsFeedbackSent?: Timestamp,
823
826
  emailTemplates?: {[key in keyof typeof emailTemplates]: string},
824
827
  skillsTargets?: string[],
@@ -841,6 +844,21 @@ export type ArrowObject = {
841
844
  screenX?: number,
842
845
  }
843
846
 
847
+ export type CohortAnalytics = { // Has same ID as cohort.
848
+ students?: {
849
+ [key: string/** key is formID_fieldID */] : {[key: string]: number} /**key is: number for rating; string for dropdown value, number for number value, boolean for checkbox, dbstring for date; */
850
+ },
851
+ staff?: {
852
+ [key: string/** key is formID_fieldID */] : {[key: string]: number} /**key is: number for rating; string for dropdown value, number for number value, boolean for checkbox, dbstring for date; */
853
+ },
854
+ parent?: {
855
+ [key: string/** key is formID_fieldID */] : {[key: string]: number} /**key is: number for rating; string for dropdown value, number for number value, boolean for checkbox, dbstring for date; */
856
+ },
857
+ provider?: {
858
+ [key: string/** key is formID_fieldID */] : {[key: string]: number} /**key is: number for rating; string for dropdown value, number for number value, boolean for checkbox, dbstring for date; */
859
+ },
860
+ }
861
+
844
862
 
845
863
  export type PlacementReviewDetails = {
846
864
  activeDates: string[],
@@ -901,7 +919,7 @@ export type PlacementReviewDetails = {
901
919
  dbsCheckData?: {[key: string]: unknown}[]|string,
902
920
  feedbackText?: Descendant[],
903
921
  feedback: CustomFormSchema,
904
- providerFeedback?: {[key: string]: unknown},
922
+ feedbackData?: {[key: string]: unknown},
905
923
  primaryColor?: string,
906
924
  primaryImage?: string,
907
925
  mapConsent?: boolean,