placementt-core 1.300.239 → 1.300.241

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.
@@ -881,7 +881,7 @@ export type ArrowObject = {
881
881
  required?: boolean;
882
882
  screenX?: number;
883
883
  };
884
- export type CohortAnalytics = {
884
+ export type AggregatedFeedback = {
885
885
  students?: {
886
886
  [key: string /** key is formID_fieldID */]: {
887
887
  [key: string]: string[];
@@ -1406,6 +1406,12 @@ export type ExternalEvent = {
1406
1406
  exists?: boolean;
1407
1407
  };
1408
1408
  };
1409
+ feedback?: {
1410
+ students?: string;
1411
+ staff?: string;
1412
+ parent?: string;
1413
+ provider?: string;
1414
+ };
1409
1415
  completedStages: ("basicDetails" | "eventConfig" | "selectEmployers" | "employerInviteForms" | "sendEmployerInvites" | "setupStudentInvites" | "setupSchoolInvites" | "review" | "created" | "launched")[];
1410
1416
  } & Address;
1411
1417
  export type ExternalEventRequest = {
@@ -1551,6 +1557,13 @@ export type ExternalEventAttendee = {
1551
1557
  };
1552
1558
  }[];
1553
1559
  attended?: boolean;
1560
+ feedback: {
1561
+ completed: boolean;
1562
+ data?: {
1563
+ [key: string]: unknown;
1564
+ };
1565
+ sent?: Timestamp;
1566
+ };
1554
1567
  };
1555
1568
  export type ExternalEventCareersSchool = {
1556
1569
  oId: string;
@@ -1602,6 +1615,36 @@ export type ExternalEventCareersSchool = {
1602
1615
  startDate: string;
1603
1616
  endDate?: string;
1604
1617
  }[];
1618
+ feedback: {
1619
+ students: {
1620
+ completed: boolean;
1621
+ data?: {
1622
+ [key: string]: unknown;
1623
+ };
1624
+ sent?: Timestamp;
1625
+ };
1626
+ parent: {
1627
+ completed: boolean;
1628
+ data?: {
1629
+ [key: string]: unknown;
1630
+ };
1631
+ sent?: Timestamp;
1632
+ };
1633
+ provider: {
1634
+ completed: boolean;
1635
+ data?: {
1636
+ [key: string]: unknown;
1637
+ };
1638
+ sent?: Timestamp;
1639
+ };
1640
+ staff: {
1641
+ completed: boolean;
1642
+ data?: {
1643
+ [key: string]: unknown;
1644
+ };
1645
+ sent?: Timestamp;
1646
+ };
1647
+ };
1605
1648
  };
1606
1649
  export type ExternalEventStudent = {
1607
1650
  oId: string;
@@ -1629,9 +1672,6 @@ export type ExternalEventStudent = {
1629
1672
  }[];
1630
1673
  employers?: string[];
1631
1674
  attended?: boolean;
1632
- feedback: {
1633
- [key: string]: unknown;
1634
- };
1635
1675
  dates?: {
1636
1676
  startDate: string;
1637
1677
  endDate?: string;
@@ -1640,6 +1680,36 @@ export type ExternalEventStudent = {
1640
1680
  startDate: string;
1641
1681
  endDate?: string;
1642
1682
  }[];
1683
+ feedback: {
1684
+ students: {
1685
+ completed: boolean;
1686
+ data?: {
1687
+ [key: string]: unknown;
1688
+ };
1689
+ sent?: Timestamp;
1690
+ };
1691
+ parent: {
1692
+ completed: boolean;
1693
+ data?: {
1694
+ [key: string]: unknown;
1695
+ };
1696
+ sent?: Timestamp;
1697
+ };
1698
+ provider: {
1699
+ completed: boolean;
1700
+ data?: {
1701
+ [key: string]: unknown;
1702
+ };
1703
+ sent?: Timestamp;
1704
+ };
1705
+ staff: {
1706
+ completed: boolean;
1707
+ data?: {
1708
+ [key: string]: unknown;
1709
+ };
1710
+ sent?: Timestamp;
1711
+ };
1712
+ };
1643
1713
  };
1644
1714
  export type CareersHubInvite = {
1645
1715
  careersHub: 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.239",
5
+ "version": "1.300.241",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "scripts": {
@@ -907,7 +907,7 @@ export type ArrowObject = {
907
907
  screenX?: number,
908
908
  }
909
909
 
910
- export type CohortAnalytics = { // Has same ID as cohort.
910
+ export type AggregatedFeedback = { // Has same ID as cohort or event.
911
911
  students?: {
912
912
  [key: string/** key is formID_fieldID */] : {[key: string]: string[]}|string[], /**key is: number for rating; string for dropdown value, number for number value, boolean for checkbox, dbstring for date; */
913
913
  completed: string[],
@@ -1388,6 +1388,12 @@ export type ExternalEvent = {
1388
1388
  deadline?: string,
1389
1389
  exists?: boolean,
1390
1390
  }},
1391
+ feedback?: {
1392
+ students?: string,
1393
+ staff?: string,
1394
+ parent?: string,
1395
+ provider?: string,
1396
+ },
1391
1397
  completedStages: ("basicDetails"|"eventConfig"|"selectEmployers"|"employerInviteForms"|"sendEmployerInvites"|"setupStudentInvites"|"setupSchoolInvites"|"review"|"created"|"launched")[]
1392
1398
  }&Address
1393
1399
 
@@ -1528,6 +1534,11 @@ export type ExternalEventAttendee = {
1528
1534
  accepted?: boolean|string,
1529
1535
  }}[],
1530
1536
  attended?: boolean,
1537
+ feedback: {
1538
+ completed: boolean,
1539
+ data?: {[key: string]: unknown},
1540
+ sent?: Timestamp
1541
+ },
1531
1542
  }
1532
1543
 
1533
1544
 
@@ -1571,7 +1582,29 @@ export type ExternalEventCareersSchool = {
1571
1582
  proposedDates?: {
1572
1583
  startDate: string,
1573
1584
  endDate?: string,
1574
- }[]
1585
+ }[],
1586
+ feedback: {
1587
+ students: {
1588
+ completed: boolean,
1589
+ data?: {[key: string]: unknown},
1590
+ sent?: Timestamp
1591
+ },
1592
+ parent: {
1593
+ completed: boolean,
1594
+ data?: {[key: string]: unknown},
1595
+ sent?: Timestamp
1596
+ },
1597
+ provider: {
1598
+ completed: boolean,
1599
+ data?: {[key: string]: unknown},
1600
+ sent?: Timestamp
1601
+ },
1602
+ staff: {
1603
+ completed: boolean,
1604
+ data?: {[key: string]: unknown},
1605
+ sent?: Timestamp
1606
+ },
1607
+ },
1575
1608
  }
1576
1609
 
1577
1610
 
@@ -1595,15 +1628,36 @@ export type ExternalEventStudent = {
1595
1628
  }}[],
1596
1629
  employers?: string[],
1597
1630
  attended?: boolean,
1598
- feedback: {[key: string]: unknown},
1599
1631
  dates?: {
1600
1632
  startDate: string,
1601
1633
  endDate?: string,
1602
- }[]
1634
+ }[],
1603
1635
  proposedDates?: {
1604
1636
  startDate: string,
1605
1637
  endDate?: string,
1606
- }[]
1638
+ }[],
1639
+ feedback: {
1640
+ students: {
1641
+ completed: boolean,
1642
+ data?: {[key: string]: unknown},
1643
+ sent?: Timestamp
1644
+ },
1645
+ parent: {
1646
+ completed: boolean,
1647
+ data?: {[key: string]: unknown},
1648
+ sent?: Timestamp
1649
+ },
1650
+ provider: {
1651
+ completed: boolean,
1652
+ data?: {[key: string]: unknown},
1653
+ sent?: Timestamp
1654
+ },
1655
+ staff: {
1656
+ completed: boolean,
1657
+ data?: {[key: string]: unknown},
1658
+ sent?: Timestamp
1659
+ },
1660
+ },
1607
1661
  }
1608
1662
 
1609
1663