@nyig/models 0.3.12 → 0.3.13

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/index.d.mts CHANGED
@@ -1518,7 +1518,10 @@ declare const zCampTrackerResponse: z.ZodObject<{
1518
1518
  updatedAt?: string | undefined;
1519
1519
  }>;
1520
1520
  attendances: z.ZodArray<z.ZodObject<{
1521
- student: z.ZodString;
1521
+ _id: z.ZodString;
1522
+ editedBy: z.ZodOptional<z.ZodString>;
1523
+ createdAt: z.ZodOptional<z.ZodString>;
1524
+ updatedAt: z.ZodOptional<z.ZodString>;
1522
1525
  states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
1523
1526
  tuition: z.ZodOptional<z.ZodObject<{
1524
1527
  primary: z.ZodNumber;
@@ -1535,14 +1538,106 @@ declare const zCampTrackerResponse: z.ZodObject<{
1535
1538
  }>>;
1536
1539
  paid: z.ZodOptional<z.ZodBoolean>;
1537
1540
  campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
1538
- _id: z.ZodString;
1539
- editedBy: z.ZodOptional<z.ZodString>;
1540
- createdAt: z.ZodOptional<z.ZodString>;
1541
- updatedAt: z.ZodOptional<z.ZodString>;
1541
+ student: z.ZodObject<{
1542
+ rank: z.ZodNativeEnum<typeof GoRank>;
1543
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1544
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1545
+ name: z.ZodString;
1546
+ username: z.ZodOptional<z.ZodString>;
1547
+ password: z.ZodOptional<z.ZodString>;
1548
+ roles: z.ZodOptional<z.ZodObject<{
1549
+ user: z.ZodNumber;
1550
+ admin: z.ZodOptional<z.ZodNumber>;
1551
+ superadmin: z.ZodOptional<z.ZodNumber>;
1552
+ }, "strip", z.ZodTypeAny, {
1553
+ user: number;
1554
+ admin?: number | undefined;
1555
+ superadmin?: number | undefined;
1556
+ }, {
1557
+ user: number;
1558
+ admin?: number | undefined;
1559
+ superadmin?: number | undefined;
1560
+ }>>;
1561
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1562
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1563
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1564
+ shouldChangePassword: z.ZodOptional<z.ZodBoolean>;
1565
+ guardian: z.ZodOptional<z.ZodString>;
1566
+ _id: z.ZodString;
1567
+ editedBy: z.ZodOptional<z.ZodString>;
1568
+ createdAt: z.ZodOptional<z.ZodString>;
1569
+ updatedAt: z.ZodOptional<z.ZodString>;
1570
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1571
+ rank: GoRank;
1572
+ _id: string;
1573
+ name: string;
1574
+ email?: string | undefined;
1575
+ address?: string | undefined;
1576
+ username?: string | undefined;
1577
+ password?: string | undefined;
1578
+ roles?: {
1579
+ user: number;
1580
+ admin?: number | undefined;
1581
+ superadmin?: number | undefined;
1582
+ } | undefined;
1583
+ country?: string | undefined;
1584
+ phoneNumber?: string | undefined;
1585
+ birthDate?: string | undefined;
1586
+ shouldChangePassword?: boolean | undefined;
1587
+ guardian?: string | undefined;
1588
+ editedBy?: string | undefined;
1589
+ createdAt?: string | undefined;
1590
+ updatedAt?: string | undefined;
1591
+ }, {
1592
+ rank: GoRank;
1593
+ _id: string;
1594
+ name: string;
1595
+ email?: string | undefined;
1596
+ address?: string | undefined;
1597
+ username?: string | undefined;
1598
+ password?: string | undefined;
1599
+ roles?: {
1600
+ user: number;
1601
+ admin?: number | undefined;
1602
+ superadmin?: number | undefined;
1603
+ } | undefined;
1604
+ country?: string | undefined;
1605
+ phoneNumber?: string | undefined;
1606
+ birthDate?: string | undefined;
1607
+ shouldChangePassword?: boolean | undefined;
1608
+ guardian?: string | undefined;
1609
+ editedBy?: string | undefined;
1610
+ createdAt?: string | undefined;
1611
+ updatedAt?: string | undefined;
1612
+ }>;
1542
1613
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1543
1614
  _id: string;
1544
- student: string;
1615
+ student: {
1616
+ rank: GoRank;
1617
+ _id: string;
1618
+ name: string;
1619
+ email?: string | undefined;
1620
+ address?: string | undefined;
1621
+ username?: string | undefined;
1622
+ password?: string | undefined;
1623
+ roles?: {
1624
+ user: number;
1625
+ admin?: number | undefined;
1626
+ superadmin?: number | undefined;
1627
+ } | undefined;
1628
+ country?: string | undefined;
1629
+ phoneNumber?: string | undefined;
1630
+ birthDate?: string | undefined;
1631
+ shouldChangePassword?: boolean | undefined;
1632
+ guardian?: string | undefined;
1633
+ editedBy?: string | undefined;
1634
+ createdAt?: string | undefined;
1635
+ updatedAt?: string | undefined;
1636
+ };
1545
1637
  states: AttendState[];
1638
+ editedBy?: string | undefined;
1639
+ createdAt?: string | undefined;
1640
+ updatedAt?: string | undefined;
1546
1641
  tuition?: {
1547
1642
  primary: number;
1548
1643
  textbook?: boolean | undefined;
@@ -1550,13 +1645,34 @@ declare const zCampTrackerResponse: z.ZodObject<{
1550
1645
  } | undefined;
1551
1646
  paid?: boolean | undefined;
1552
1647
  campOption?: CampOption | undefined;
1553
- editedBy?: string | undefined;
1554
- createdAt?: string | undefined;
1555
- updatedAt?: string | undefined;
1556
1648
  }, {
1557
1649
  _id: string;
1558
- student: string;
1650
+ student: {
1651
+ rank: GoRank;
1652
+ _id: string;
1653
+ name: string;
1654
+ email?: string | undefined;
1655
+ address?: string | undefined;
1656
+ username?: string | undefined;
1657
+ password?: string | undefined;
1658
+ roles?: {
1659
+ user: number;
1660
+ admin?: number | undefined;
1661
+ superadmin?: number | undefined;
1662
+ } | undefined;
1663
+ country?: string | undefined;
1664
+ phoneNumber?: string | undefined;
1665
+ birthDate?: string | undefined;
1666
+ shouldChangePassword?: boolean | undefined;
1667
+ guardian?: string | undefined;
1668
+ editedBy?: string | undefined;
1669
+ createdAt?: string | undefined;
1670
+ updatedAt?: string | undefined;
1671
+ };
1559
1672
  states: AttendState[];
1673
+ editedBy?: string | undefined;
1674
+ createdAt?: string | undefined;
1675
+ updatedAt?: string | undefined;
1560
1676
  tuition?: {
1561
1677
  primary: number;
1562
1678
  textbook?: boolean | undefined;
@@ -1564,9 +1680,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
1564
1680
  } | undefined;
1565
1681
  paid?: boolean | undefined;
1566
1682
  campOption?: CampOption | undefined;
1567
- editedBy?: string | undefined;
1568
- createdAt?: string | undefined;
1569
- updatedAt?: string | undefined;
1570
1683
  }>, "many">;
1571
1684
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1572
1685
  _id: string;
@@ -1626,8 +1739,32 @@ declare const zCampTrackerResponse: z.ZodObject<{
1626
1739
  occurrences: string[];
1627
1740
  attendances: {
1628
1741
  _id: string;
1629
- student: string;
1742
+ student: {
1743
+ rank: GoRank;
1744
+ _id: string;
1745
+ name: string;
1746
+ email?: string | undefined;
1747
+ address?: string | undefined;
1748
+ username?: string | undefined;
1749
+ password?: string | undefined;
1750
+ roles?: {
1751
+ user: number;
1752
+ admin?: number | undefined;
1753
+ superadmin?: number | undefined;
1754
+ } | undefined;
1755
+ country?: string | undefined;
1756
+ phoneNumber?: string | undefined;
1757
+ birthDate?: string | undefined;
1758
+ shouldChangePassword?: boolean | undefined;
1759
+ guardian?: string | undefined;
1760
+ editedBy?: string | undefined;
1761
+ createdAt?: string | undefined;
1762
+ updatedAt?: string | undefined;
1763
+ };
1630
1764
  states: AttendState[];
1765
+ editedBy?: string | undefined;
1766
+ createdAt?: string | undefined;
1767
+ updatedAt?: string | undefined;
1631
1768
  tuition?: {
1632
1769
  primary: number;
1633
1770
  textbook?: boolean | undefined;
@@ -1635,9 +1772,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
1635
1772
  } | undefined;
1636
1773
  paid?: boolean | undefined;
1637
1774
  campOption?: CampOption | undefined;
1638
- editedBy?: string | undefined;
1639
- createdAt?: string | undefined;
1640
- updatedAt?: string | undefined;
1641
1775
  }[];
1642
1776
  notes?: string | undefined;
1643
1777
  editedBy?: string | undefined;
@@ -1703,8 +1837,32 @@ declare const zCampTrackerResponse: z.ZodObject<{
1703
1837
  occurrences: string[];
1704
1838
  attendances: {
1705
1839
  _id: string;
1706
- student: string;
1840
+ student: {
1841
+ rank: GoRank;
1842
+ _id: string;
1843
+ name: string;
1844
+ email?: string | undefined;
1845
+ address?: string | undefined;
1846
+ username?: string | undefined;
1847
+ password?: string | undefined;
1848
+ roles?: {
1849
+ user: number;
1850
+ admin?: number | undefined;
1851
+ superadmin?: number | undefined;
1852
+ } | undefined;
1853
+ country?: string | undefined;
1854
+ phoneNumber?: string | undefined;
1855
+ birthDate?: string | undefined;
1856
+ shouldChangePassword?: boolean | undefined;
1857
+ guardian?: string | undefined;
1858
+ editedBy?: string | undefined;
1859
+ createdAt?: string | undefined;
1860
+ updatedAt?: string | undefined;
1861
+ };
1707
1862
  states: AttendState[];
1863
+ editedBy?: string | undefined;
1864
+ createdAt?: string | undefined;
1865
+ updatedAt?: string | undefined;
1708
1866
  tuition?: {
1709
1867
  primary: number;
1710
1868
  textbook?: boolean | undefined;
@@ -1712,9 +1870,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
1712
1870
  } | undefined;
1713
1871
  paid?: boolean | undefined;
1714
1872
  campOption?: CampOption | undefined;
1715
- editedBy?: string | undefined;
1716
- createdAt?: string | undefined;
1717
- updatedAt?: string | undefined;
1718
1873
  }[];
1719
1874
  notes?: string | undefined;
1720
1875
  editedBy?: string | undefined;
package/index.d.ts CHANGED
@@ -1518,7 +1518,10 @@ declare const zCampTrackerResponse: z.ZodObject<{
1518
1518
  updatedAt?: string | undefined;
1519
1519
  }>;
1520
1520
  attendances: z.ZodArray<z.ZodObject<{
1521
- student: z.ZodString;
1521
+ _id: z.ZodString;
1522
+ editedBy: z.ZodOptional<z.ZodString>;
1523
+ createdAt: z.ZodOptional<z.ZodString>;
1524
+ updatedAt: z.ZodOptional<z.ZodString>;
1522
1525
  states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
1523
1526
  tuition: z.ZodOptional<z.ZodObject<{
1524
1527
  primary: z.ZodNumber;
@@ -1535,14 +1538,106 @@ declare const zCampTrackerResponse: z.ZodObject<{
1535
1538
  }>>;
1536
1539
  paid: z.ZodOptional<z.ZodBoolean>;
1537
1540
  campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
1538
- _id: z.ZodString;
1539
- editedBy: z.ZodOptional<z.ZodString>;
1540
- createdAt: z.ZodOptional<z.ZodString>;
1541
- updatedAt: z.ZodOptional<z.ZodString>;
1541
+ student: z.ZodObject<{
1542
+ rank: z.ZodNativeEnum<typeof GoRank>;
1543
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1544
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1545
+ name: z.ZodString;
1546
+ username: z.ZodOptional<z.ZodString>;
1547
+ password: z.ZodOptional<z.ZodString>;
1548
+ roles: z.ZodOptional<z.ZodObject<{
1549
+ user: z.ZodNumber;
1550
+ admin: z.ZodOptional<z.ZodNumber>;
1551
+ superadmin: z.ZodOptional<z.ZodNumber>;
1552
+ }, "strip", z.ZodTypeAny, {
1553
+ user: number;
1554
+ admin?: number | undefined;
1555
+ superadmin?: number | undefined;
1556
+ }, {
1557
+ user: number;
1558
+ admin?: number | undefined;
1559
+ superadmin?: number | undefined;
1560
+ }>>;
1561
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1562
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1563
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
1564
+ shouldChangePassword: z.ZodOptional<z.ZodBoolean>;
1565
+ guardian: z.ZodOptional<z.ZodString>;
1566
+ _id: z.ZodString;
1567
+ editedBy: z.ZodOptional<z.ZodString>;
1568
+ createdAt: z.ZodOptional<z.ZodString>;
1569
+ updatedAt: z.ZodOptional<z.ZodString>;
1570
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1571
+ rank: GoRank;
1572
+ _id: string;
1573
+ name: string;
1574
+ email?: string | undefined;
1575
+ address?: string | undefined;
1576
+ username?: string | undefined;
1577
+ password?: string | undefined;
1578
+ roles?: {
1579
+ user: number;
1580
+ admin?: number | undefined;
1581
+ superadmin?: number | undefined;
1582
+ } | undefined;
1583
+ country?: string | undefined;
1584
+ phoneNumber?: string | undefined;
1585
+ birthDate?: string | undefined;
1586
+ shouldChangePassword?: boolean | undefined;
1587
+ guardian?: string | undefined;
1588
+ editedBy?: string | undefined;
1589
+ createdAt?: string | undefined;
1590
+ updatedAt?: string | undefined;
1591
+ }, {
1592
+ rank: GoRank;
1593
+ _id: string;
1594
+ name: string;
1595
+ email?: string | undefined;
1596
+ address?: string | undefined;
1597
+ username?: string | undefined;
1598
+ password?: string | undefined;
1599
+ roles?: {
1600
+ user: number;
1601
+ admin?: number | undefined;
1602
+ superadmin?: number | undefined;
1603
+ } | undefined;
1604
+ country?: string | undefined;
1605
+ phoneNumber?: string | undefined;
1606
+ birthDate?: string | undefined;
1607
+ shouldChangePassword?: boolean | undefined;
1608
+ guardian?: string | undefined;
1609
+ editedBy?: string | undefined;
1610
+ createdAt?: string | undefined;
1611
+ updatedAt?: string | undefined;
1612
+ }>;
1542
1613
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1543
1614
  _id: string;
1544
- student: string;
1615
+ student: {
1616
+ rank: GoRank;
1617
+ _id: string;
1618
+ name: string;
1619
+ email?: string | undefined;
1620
+ address?: string | undefined;
1621
+ username?: string | undefined;
1622
+ password?: string | undefined;
1623
+ roles?: {
1624
+ user: number;
1625
+ admin?: number | undefined;
1626
+ superadmin?: number | undefined;
1627
+ } | undefined;
1628
+ country?: string | undefined;
1629
+ phoneNumber?: string | undefined;
1630
+ birthDate?: string | undefined;
1631
+ shouldChangePassword?: boolean | undefined;
1632
+ guardian?: string | undefined;
1633
+ editedBy?: string | undefined;
1634
+ createdAt?: string | undefined;
1635
+ updatedAt?: string | undefined;
1636
+ };
1545
1637
  states: AttendState[];
1638
+ editedBy?: string | undefined;
1639
+ createdAt?: string | undefined;
1640
+ updatedAt?: string | undefined;
1546
1641
  tuition?: {
1547
1642
  primary: number;
1548
1643
  textbook?: boolean | undefined;
@@ -1550,13 +1645,34 @@ declare const zCampTrackerResponse: z.ZodObject<{
1550
1645
  } | undefined;
1551
1646
  paid?: boolean | undefined;
1552
1647
  campOption?: CampOption | undefined;
1553
- editedBy?: string | undefined;
1554
- createdAt?: string | undefined;
1555
- updatedAt?: string | undefined;
1556
1648
  }, {
1557
1649
  _id: string;
1558
- student: string;
1650
+ student: {
1651
+ rank: GoRank;
1652
+ _id: string;
1653
+ name: string;
1654
+ email?: string | undefined;
1655
+ address?: string | undefined;
1656
+ username?: string | undefined;
1657
+ password?: string | undefined;
1658
+ roles?: {
1659
+ user: number;
1660
+ admin?: number | undefined;
1661
+ superadmin?: number | undefined;
1662
+ } | undefined;
1663
+ country?: string | undefined;
1664
+ phoneNumber?: string | undefined;
1665
+ birthDate?: string | undefined;
1666
+ shouldChangePassword?: boolean | undefined;
1667
+ guardian?: string | undefined;
1668
+ editedBy?: string | undefined;
1669
+ createdAt?: string | undefined;
1670
+ updatedAt?: string | undefined;
1671
+ };
1559
1672
  states: AttendState[];
1673
+ editedBy?: string | undefined;
1674
+ createdAt?: string | undefined;
1675
+ updatedAt?: string | undefined;
1560
1676
  tuition?: {
1561
1677
  primary: number;
1562
1678
  textbook?: boolean | undefined;
@@ -1564,9 +1680,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
1564
1680
  } | undefined;
1565
1681
  paid?: boolean | undefined;
1566
1682
  campOption?: CampOption | undefined;
1567
- editedBy?: string | undefined;
1568
- createdAt?: string | undefined;
1569
- updatedAt?: string | undefined;
1570
1683
  }>, "many">;
1571
1684
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1572
1685
  _id: string;
@@ -1626,8 +1739,32 @@ declare const zCampTrackerResponse: z.ZodObject<{
1626
1739
  occurrences: string[];
1627
1740
  attendances: {
1628
1741
  _id: string;
1629
- student: string;
1742
+ student: {
1743
+ rank: GoRank;
1744
+ _id: string;
1745
+ name: string;
1746
+ email?: string | undefined;
1747
+ address?: string | undefined;
1748
+ username?: string | undefined;
1749
+ password?: string | undefined;
1750
+ roles?: {
1751
+ user: number;
1752
+ admin?: number | undefined;
1753
+ superadmin?: number | undefined;
1754
+ } | undefined;
1755
+ country?: string | undefined;
1756
+ phoneNumber?: string | undefined;
1757
+ birthDate?: string | undefined;
1758
+ shouldChangePassword?: boolean | undefined;
1759
+ guardian?: string | undefined;
1760
+ editedBy?: string | undefined;
1761
+ createdAt?: string | undefined;
1762
+ updatedAt?: string | undefined;
1763
+ };
1630
1764
  states: AttendState[];
1765
+ editedBy?: string | undefined;
1766
+ createdAt?: string | undefined;
1767
+ updatedAt?: string | undefined;
1631
1768
  tuition?: {
1632
1769
  primary: number;
1633
1770
  textbook?: boolean | undefined;
@@ -1635,9 +1772,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
1635
1772
  } | undefined;
1636
1773
  paid?: boolean | undefined;
1637
1774
  campOption?: CampOption | undefined;
1638
- editedBy?: string | undefined;
1639
- createdAt?: string | undefined;
1640
- updatedAt?: string | undefined;
1641
1775
  }[];
1642
1776
  notes?: string | undefined;
1643
1777
  editedBy?: string | undefined;
@@ -1703,8 +1837,32 @@ declare const zCampTrackerResponse: z.ZodObject<{
1703
1837
  occurrences: string[];
1704
1838
  attendances: {
1705
1839
  _id: string;
1706
- student: string;
1840
+ student: {
1841
+ rank: GoRank;
1842
+ _id: string;
1843
+ name: string;
1844
+ email?: string | undefined;
1845
+ address?: string | undefined;
1846
+ username?: string | undefined;
1847
+ password?: string | undefined;
1848
+ roles?: {
1849
+ user: number;
1850
+ admin?: number | undefined;
1851
+ superadmin?: number | undefined;
1852
+ } | undefined;
1853
+ country?: string | undefined;
1854
+ phoneNumber?: string | undefined;
1855
+ birthDate?: string | undefined;
1856
+ shouldChangePassword?: boolean | undefined;
1857
+ guardian?: string | undefined;
1858
+ editedBy?: string | undefined;
1859
+ createdAt?: string | undefined;
1860
+ updatedAt?: string | undefined;
1861
+ };
1707
1862
  states: AttendState[];
1863
+ editedBy?: string | undefined;
1864
+ createdAt?: string | undefined;
1865
+ updatedAt?: string | undefined;
1708
1866
  tuition?: {
1709
1867
  primary: number;
1710
1868
  textbook?: boolean | undefined;
@@ -1712,9 +1870,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
1712
1870
  } | undefined;
1713
1871
  paid?: boolean | undefined;
1714
1872
  campOption?: CampOption | undefined;
1715
- editedBy?: string | undefined;
1716
- createdAt?: string | undefined;
1717
- updatedAt?: string | undefined;
1718
1873
  }[];
1719
1874
  notes?: string | undefined;
1720
1875
  editedBy?: string | undefined;
package/index.js CHANGED
@@ -466,7 +466,7 @@ var zCampTrackerResponse = zCampTracker.extend({
466
466
  course: zCourse,
467
467
  teacher: zTeacher,
468
468
  semester: zSemester,
469
- attendances: import_zod13.z.array(zAttendance)
469
+ attendances: import_zod13.z.array(zAttendanceResponse)
470
470
  });
471
471
 
472
472
  // src/interface/tracking/classTracker.ts
package/index.mjs CHANGED
@@ -363,7 +363,7 @@ var zCampTrackerResponse = zCampTracker.extend({
363
363
  course: zCourse,
364
364
  teacher: zTeacher,
365
365
  semester: zSemester,
366
- attendances: z13.array(zAttendance)
366
+ attendances: z13.array(zAttendanceResponse)
367
367
  });
368
368
 
369
369
  // src/interface/tracking/classTracker.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",