@nyig/models 0.2.31 → 0.2.33

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
@@ -1070,6 +1070,7 @@ declare const zBInvoice: z.ZodObject<{
1070
1070
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
1071
1071
  notes: z.ZodOptional<z.ZodString>;
1072
1072
  createdBy: z.ZodString;
1073
+ lastEditBy: z.ZodOptional<z.ZodString>;
1073
1074
  }, "strip", z.ZodTypeAny, {
1074
1075
  billTo: string;
1075
1076
  packages: {
@@ -1089,6 +1090,7 @@ declare const zBInvoice: z.ZodObject<{
1089
1090
  shipping?: number | undefined;
1090
1091
  paid?: PaymentMethod | undefined;
1091
1092
  notes?: string | undefined;
1093
+ lastEditBy?: string | undefined;
1092
1094
  }, {
1093
1095
  billTo: string;
1094
1096
  packages: {
@@ -1108,6 +1110,7 @@ declare const zBInvoice: z.ZodObject<{
1108
1110
  shipping?: number | undefined;
1109
1111
  paid?: PaymentMethod | undefined;
1110
1112
  notes?: string | undefined;
1113
+ lastEditBy?: string | undefined;
1111
1114
  }>;
1112
1115
  declare const zInvoice: z.ZodObject<{
1113
1116
  notes: z.ZodOptional<z.ZodString>;
@@ -1156,6 +1159,7 @@ declare const zInvoice: z.ZodObject<{
1156
1159
  amount: number;
1157
1160
  }>, "many">;
1158
1161
  createdBy: z.ZodString;
1162
+ lastEditBy: z.ZodOptional<z.ZodString>;
1159
1163
  _id: z.ZodString;
1160
1164
  editedBy: z.ZodOptional<z.ZodString>;
1161
1165
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -1180,6 +1184,7 @@ declare const zInvoice: z.ZodObject<{
1180
1184
  textbook?: number | undefined;
1181
1185
  shipping?: number | undefined;
1182
1186
  paid?: PaymentMethod | undefined;
1187
+ lastEditBy?: string | undefined;
1183
1188
  editedBy?: string | undefined;
1184
1189
  createdAt?: Date | undefined;
1185
1190
  updatedAt?: Date | undefined;
@@ -1203,6 +1208,7 @@ declare const zInvoice: z.ZodObject<{
1203
1208
  textbook?: number | undefined;
1204
1209
  shipping?: number | undefined;
1205
1210
  paid?: PaymentMethod | undefined;
1211
+ lastEditBy?: string | undefined;
1206
1212
  editedBy?: string | undefined;
1207
1213
  createdAt?: Date | undefined;
1208
1214
  updatedAt?: Date | undefined;
@@ -1589,12 +1595,12 @@ declare const zBEventConfig: z.ZodObject<{
1589
1595
  */
1590
1596
  details: z.ZodObject<{
1591
1597
  fields: z.ZodArray<z.ZodString, "many">;
1592
- data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
1598
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1593
1599
  }, "strip", z.ZodTypeAny, {
1594
- data: {}[];
1600
+ data: Record<string, string>[];
1595
1601
  fields: string[];
1596
1602
  }, {
1597
- data: {}[];
1603
+ data: Record<string, string>[];
1598
1604
  fields: string[];
1599
1605
  }>;
1600
1606
  /**
@@ -1603,12 +1609,12 @@ declare const zBEventConfig: z.ZodObject<{
1603
1609
  */
1604
1610
  schedule: z.ZodObject<{
1605
1611
  fields: z.ZodArray<z.ZodString, "many">;
1606
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1612
+ data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1607
1613
  }, "strip", z.ZodTypeAny, {
1608
- data: Record<string, {}[]>;
1614
+ data: Record<string, Record<string, string>[]>;
1609
1615
  fields: string[];
1610
1616
  }, {
1611
- data: Record<string, {}[]>;
1617
+ data: Record<string, Record<string, string>[]>;
1612
1618
  fields: string[];
1613
1619
  }>;
1614
1620
  /**
@@ -1648,11 +1654,11 @@ declare const zBEventConfig: z.ZodObject<{
1648
1654
  tEnd: Date;
1649
1655
  shortDescription: string;
1650
1656
  details: {
1651
- data: {}[];
1657
+ data: Record<string, string>[];
1652
1658
  fields: string[];
1653
1659
  };
1654
1660
  schedule: {
1655
- data: Record<string, {}[]>;
1661
+ data: Record<string, Record<string, string>[]>;
1656
1662
  fields: string[];
1657
1663
  };
1658
1664
  tickets: string[];
@@ -1673,11 +1679,11 @@ declare const zBEventConfig: z.ZodObject<{
1673
1679
  tEnd: Date;
1674
1680
  shortDescription: string;
1675
1681
  details: {
1676
- data: {}[];
1682
+ data: Record<string, string>[];
1677
1683
  fields: string[];
1678
1684
  };
1679
1685
  schedule: {
1680
- data: Record<string, {}[]>;
1686
+ data: Record<string, Record<string, string>[]>;
1681
1687
  fields: string[];
1682
1688
  };
1683
1689
  tickets: string[];
@@ -1701,22 +1707,22 @@ declare const zEventConfig: z.ZodObject<{
1701
1707
  shortDescription: z.ZodString;
1702
1708
  details: z.ZodObject<{
1703
1709
  fields: z.ZodArray<z.ZodString, "many">;
1704
- data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
1710
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1705
1711
  }, "strip", z.ZodTypeAny, {
1706
- data: {}[];
1712
+ data: Record<string, string>[];
1707
1713
  fields: string[];
1708
1714
  }, {
1709
- data: {}[];
1715
+ data: Record<string, string>[];
1710
1716
  fields: string[];
1711
1717
  }>;
1712
1718
  schedule: z.ZodObject<{
1713
1719
  fields: z.ZodArray<z.ZodString, "many">;
1714
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1720
+ data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1715
1721
  }, "strip", z.ZodTypeAny, {
1716
- data: Record<string, {}[]>;
1722
+ data: Record<string, Record<string, string>[]>;
1717
1723
  fields: string[];
1718
1724
  }, {
1719
- data: Record<string, {}[]>;
1725
+ data: Record<string, Record<string, string>[]>;
1720
1726
  fields: string[];
1721
1727
  }>;
1722
1728
  tickets: z.ZodArray<z.ZodString, "many">;
@@ -1749,11 +1755,11 @@ declare const zEventConfig: z.ZodObject<{
1749
1755
  tEnd: Date;
1750
1756
  shortDescription: string;
1751
1757
  details: {
1752
- data: {}[];
1758
+ data: Record<string, string>[];
1753
1759
  fields: string[];
1754
1760
  };
1755
1761
  schedule: {
1756
- data: Record<string, {}[]>;
1762
+ data: Record<string, Record<string, string>[]>;
1757
1763
  fields: string[];
1758
1764
  };
1759
1765
  tickets: string[];
@@ -1778,11 +1784,11 @@ declare const zEventConfig: z.ZodObject<{
1778
1784
  tEnd: Date;
1779
1785
  shortDescription: string;
1780
1786
  details: {
1781
- data: {}[];
1787
+ data: Record<string, string>[];
1782
1788
  fields: string[];
1783
1789
  };
1784
1790
  schedule: {
1785
- data: Record<string, {}[]>;
1791
+ data: Record<string, Record<string, string>[]>;
1786
1792
  fields: string[];
1787
1793
  };
1788
1794
  tickets: string[];
@@ -1813,22 +1819,22 @@ declare const zEventConfigResponse: z.ZodObject<{
1813
1819
  shortDescription: z.ZodString;
1814
1820
  details: z.ZodObject<{
1815
1821
  fields: z.ZodArray<z.ZodString, "many">;
1816
- data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
1822
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1817
1823
  }, "strip", z.ZodTypeAny, {
1818
- data: {}[];
1824
+ data: Record<string, string>[];
1819
1825
  fields: string[];
1820
1826
  }, {
1821
- data: {}[];
1827
+ data: Record<string, string>[];
1822
1828
  fields: string[];
1823
1829
  }>;
1824
1830
  schedule: z.ZodObject<{
1825
1831
  fields: z.ZodArray<z.ZodString, "many">;
1826
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1832
+ data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1827
1833
  }, "strip", z.ZodTypeAny, {
1828
- data: Record<string, {}[]>;
1834
+ data: Record<string, Record<string, string>[]>;
1829
1835
  fields: string[];
1830
1836
  }, {
1831
- data: Record<string, {}[]>;
1837
+ data: Record<string, Record<string, string>[]>;
1832
1838
  fields: string[];
1833
1839
  }>;
1834
1840
  canRegister: z.ZodBoolean;
@@ -1887,11 +1893,11 @@ declare const zEventConfigResponse: z.ZodObject<{
1887
1893
  tEnd: Date;
1888
1894
  shortDescription: string;
1889
1895
  details: {
1890
- data: {}[];
1896
+ data: Record<string, string>[];
1891
1897
  fields: string[];
1892
1898
  };
1893
1899
  schedule: {
1894
- data: Record<string, {}[]>;
1900
+ data: Record<string, Record<string, string>[]>;
1895
1901
  fields: string[];
1896
1902
  };
1897
1903
  tickets: {
@@ -1926,11 +1932,11 @@ declare const zEventConfigResponse: z.ZodObject<{
1926
1932
  tEnd: Date;
1927
1933
  shortDescription: string;
1928
1934
  details: {
1929
- data: {}[];
1935
+ data: Record<string, string>[];
1930
1936
  fields: string[];
1931
1937
  };
1932
1938
  schedule: {
1933
- data: Record<string, {}[]>;
1939
+ data: Record<string, Record<string, string>[]>;
1934
1940
  fields: string[];
1935
1941
  };
1936
1942
  tickets: {
@@ -1962,22 +1968,22 @@ type EventConfigResponse = z.infer<typeof zEventConfigResponse>;
1962
1968
 
1963
1969
  declare const zDetailsTable: z.ZodObject<{
1964
1970
  fields: z.ZodArray<z.ZodString, "many">;
1965
- data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
1971
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1966
1972
  }, "strip", z.ZodTypeAny, {
1967
- data: {}[];
1973
+ data: Record<string, string>[];
1968
1974
  fields: string[];
1969
1975
  }, {
1970
- data: {}[];
1976
+ data: Record<string, string>[];
1971
1977
  fields: string[];
1972
1978
  }>;
1973
1979
  declare const zScheduleTable: z.ZodObject<{
1974
1980
  fields: z.ZodArray<z.ZodString, "many">;
1975
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1981
+ data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1976
1982
  }, "strip", z.ZodTypeAny, {
1977
- data: Record<string, {}[]>;
1983
+ data: Record<string, Record<string, string>[]>;
1978
1984
  fields: string[];
1979
1985
  }, {
1980
- data: Record<string, {}[]>;
1986
+ data: Record<string, Record<string, string>[]>;
1981
1987
  fields: string[];
1982
1988
  }>;
1983
1989
  type DetailsTable = z.infer<typeof zDetailsTable>;
@@ -2472,11 +2478,11 @@ declare const zBUser: z.ZodObject<{
2472
2478
  username: z.ZodOptional<z.ZodString>;
2473
2479
  password: z.ZodOptional<z.ZodString>;
2474
2480
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2475
- email: z.ZodOptional<z.ZodString>;
2476
- address: z.ZodOptional<z.ZodString>;
2477
- country: z.ZodOptional<z.ZodString>;
2478
- phoneNumber: z.ZodOptional<z.ZodString>;
2479
- birthDate: z.ZodOptional<z.ZodString>;
2481
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2482
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2483
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2484
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2485
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2480
2486
  }, "strip", z.ZodTypeAny, {
2481
2487
  name: string;
2482
2488
  username?: string | undefined;
@@ -2499,15 +2505,15 @@ declare const zBUser: z.ZodObject<{
2499
2505
  birthDate?: string | undefined;
2500
2506
  }>;
2501
2507
  declare const zUser: z.ZodObject<{
2502
- email: z.ZodOptional<z.ZodString>;
2503
- address: z.ZodOptional<z.ZodString>;
2508
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2509
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2504
2510
  name: z.ZodString;
2505
2511
  username: z.ZodOptional<z.ZodString>;
2506
2512
  password: z.ZodOptional<z.ZodString>;
2507
2513
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2508
- country: z.ZodOptional<z.ZodString>;
2509
- phoneNumber: z.ZodOptional<z.ZodString>;
2510
- birthDate: z.ZodOptional<z.ZodString>;
2514
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2515
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2516
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2511
2517
  _id: z.ZodString;
2512
2518
  editedBy: z.ZodOptional<z.ZodString>;
2513
2519
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -2542,8 +2548,8 @@ declare const zUser: z.ZodObject<{
2542
2548
  updatedAt?: Date | undefined;
2543
2549
  }>;
2544
2550
  declare const zStudent: z.ZodObject<{
2545
- email: z.ZodOptional<z.ZodString>;
2546
- address: z.ZodOptional<z.ZodString>;
2551
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2552
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2547
2553
  _id: z.ZodString;
2548
2554
  editedBy: z.ZodOptional<z.ZodString>;
2549
2555
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -2552,9 +2558,9 @@ declare const zStudent: z.ZodObject<{
2552
2558
  username: z.ZodOptional<z.ZodString>;
2553
2559
  password: z.ZodOptional<z.ZodString>;
2554
2560
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2555
- country: z.ZodOptional<z.ZodString>;
2556
- phoneNumber: z.ZodOptional<z.ZodString>;
2557
- birthDate: z.ZodOptional<z.ZodString>;
2561
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2562
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2563
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2558
2564
  rank: z.ZodNativeEnum<typeof GoRank>;
2559
2565
  guardian: z.ZodOptional<z.ZodString>;
2560
2566
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -2591,8 +2597,8 @@ declare const zStudent: z.ZodObject<{
2591
2597
  guardian?: string | undefined;
2592
2598
  }>;
2593
2599
  declare const zTeacher: z.ZodObject<{
2594
- email: z.ZodOptional<z.ZodString>;
2595
- address: z.ZodOptional<z.ZodString>;
2600
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2601
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2596
2602
  _id: z.ZodString;
2597
2603
  editedBy: z.ZodOptional<z.ZodString>;
2598
2604
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -2601,9 +2607,9 @@ declare const zTeacher: z.ZodObject<{
2601
2607
  username: z.ZodOptional<z.ZodString>;
2602
2608
  password: z.ZodOptional<z.ZodString>;
2603
2609
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2604
- country: z.ZodOptional<z.ZodString>;
2605
- phoneNumber: z.ZodOptional<z.ZodString>;
2606
- birthDate: z.ZodOptional<z.ZodString>;
2610
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2611
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2612
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2607
2613
  rank: z.ZodNativeEnum<typeof GoRank>;
2608
2614
  isInactive: z.ZodOptional<z.ZodBoolean>;
2609
2615
  title: z.ZodOptional<z.ZodString>;
package/index.d.ts CHANGED
@@ -1070,6 +1070,7 @@ declare const zBInvoice: z.ZodObject<{
1070
1070
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
1071
1071
  notes: z.ZodOptional<z.ZodString>;
1072
1072
  createdBy: z.ZodString;
1073
+ lastEditBy: z.ZodOptional<z.ZodString>;
1073
1074
  }, "strip", z.ZodTypeAny, {
1074
1075
  billTo: string;
1075
1076
  packages: {
@@ -1089,6 +1090,7 @@ declare const zBInvoice: z.ZodObject<{
1089
1090
  shipping?: number | undefined;
1090
1091
  paid?: PaymentMethod | undefined;
1091
1092
  notes?: string | undefined;
1093
+ lastEditBy?: string | undefined;
1092
1094
  }, {
1093
1095
  billTo: string;
1094
1096
  packages: {
@@ -1108,6 +1110,7 @@ declare const zBInvoice: z.ZodObject<{
1108
1110
  shipping?: number | undefined;
1109
1111
  paid?: PaymentMethod | undefined;
1110
1112
  notes?: string | undefined;
1113
+ lastEditBy?: string | undefined;
1111
1114
  }>;
1112
1115
  declare const zInvoice: z.ZodObject<{
1113
1116
  notes: z.ZodOptional<z.ZodString>;
@@ -1156,6 +1159,7 @@ declare const zInvoice: z.ZodObject<{
1156
1159
  amount: number;
1157
1160
  }>, "many">;
1158
1161
  createdBy: z.ZodString;
1162
+ lastEditBy: z.ZodOptional<z.ZodString>;
1159
1163
  _id: z.ZodString;
1160
1164
  editedBy: z.ZodOptional<z.ZodString>;
1161
1165
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -1180,6 +1184,7 @@ declare const zInvoice: z.ZodObject<{
1180
1184
  textbook?: number | undefined;
1181
1185
  shipping?: number | undefined;
1182
1186
  paid?: PaymentMethod | undefined;
1187
+ lastEditBy?: string | undefined;
1183
1188
  editedBy?: string | undefined;
1184
1189
  createdAt?: Date | undefined;
1185
1190
  updatedAt?: Date | undefined;
@@ -1203,6 +1208,7 @@ declare const zInvoice: z.ZodObject<{
1203
1208
  textbook?: number | undefined;
1204
1209
  shipping?: number | undefined;
1205
1210
  paid?: PaymentMethod | undefined;
1211
+ lastEditBy?: string | undefined;
1206
1212
  editedBy?: string | undefined;
1207
1213
  createdAt?: Date | undefined;
1208
1214
  updatedAt?: Date | undefined;
@@ -1589,12 +1595,12 @@ declare const zBEventConfig: z.ZodObject<{
1589
1595
  */
1590
1596
  details: z.ZodObject<{
1591
1597
  fields: z.ZodArray<z.ZodString, "many">;
1592
- data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
1598
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1593
1599
  }, "strip", z.ZodTypeAny, {
1594
- data: {}[];
1600
+ data: Record<string, string>[];
1595
1601
  fields: string[];
1596
1602
  }, {
1597
- data: {}[];
1603
+ data: Record<string, string>[];
1598
1604
  fields: string[];
1599
1605
  }>;
1600
1606
  /**
@@ -1603,12 +1609,12 @@ declare const zBEventConfig: z.ZodObject<{
1603
1609
  */
1604
1610
  schedule: z.ZodObject<{
1605
1611
  fields: z.ZodArray<z.ZodString, "many">;
1606
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1612
+ data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1607
1613
  }, "strip", z.ZodTypeAny, {
1608
- data: Record<string, {}[]>;
1614
+ data: Record<string, Record<string, string>[]>;
1609
1615
  fields: string[];
1610
1616
  }, {
1611
- data: Record<string, {}[]>;
1617
+ data: Record<string, Record<string, string>[]>;
1612
1618
  fields: string[];
1613
1619
  }>;
1614
1620
  /**
@@ -1648,11 +1654,11 @@ declare const zBEventConfig: z.ZodObject<{
1648
1654
  tEnd: Date;
1649
1655
  shortDescription: string;
1650
1656
  details: {
1651
- data: {}[];
1657
+ data: Record<string, string>[];
1652
1658
  fields: string[];
1653
1659
  };
1654
1660
  schedule: {
1655
- data: Record<string, {}[]>;
1661
+ data: Record<string, Record<string, string>[]>;
1656
1662
  fields: string[];
1657
1663
  };
1658
1664
  tickets: string[];
@@ -1673,11 +1679,11 @@ declare const zBEventConfig: z.ZodObject<{
1673
1679
  tEnd: Date;
1674
1680
  shortDescription: string;
1675
1681
  details: {
1676
- data: {}[];
1682
+ data: Record<string, string>[];
1677
1683
  fields: string[];
1678
1684
  };
1679
1685
  schedule: {
1680
- data: Record<string, {}[]>;
1686
+ data: Record<string, Record<string, string>[]>;
1681
1687
  fields: string[];
1682
1688
  };
1683
1689
  tickets: string[];
@@ -1701,22 +1707,22 @@ declare const zEventConfig: z.ZodObject<{
1701
1707
  shortDescription: z.ZodString;
1702
1708
  details: z.ZodObject<{
1703
1709
  fields: z.ZodArray<z.ZodString, "many">;
1704
- data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
1710
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1705
1711
  }, "strip", z.ZodTypeAny, {
1706
- data: {}[];
1712
+ data: Record<string, string>[];
1707
1713
  fields: string[];
1708
1714
  }, {
1709
- data: {}[];
1715
+ data: Record<string, string>[];
1710
1716
  fields: string[];
1711
1717
  }>;
1712
1718
  schedule: z.ZodObject<{
1713
1719
  fields: z.ZodArray<z.ZodString, "many">;
1714
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1720
+ data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1715
1721
  }, "strip", z.ZodTypeAny, {
1716
- data: Record<string, {}[]>;
1722
+ data: Record<string, Record<string, string>[]>;
1717
1723
  fields: string[];
1718
1724
  }, {
1719
- data: Record<string, {}[]>;
1725
+ data: Record<string, Record<string, string>[]>;
1720
1726
  fields: string[];
1721
1727
  }>;
1722
1728
  tickets: z.ZodArray<z.ZodString, "many">;
@@ -1749,11 +1755,11 @@ declare const zEventConfig: z.ZodObject<{
1749
1755
  tEnd: Date;
1750
1756
  shortDescription: string;
1751
1757
  details: {
1752
- data: {}[];
1758
+ data: Record<string, string>[];
1753
1759
  fields: string[];
1754
1760
  };
1755
1761
  schedule: {
1756
- data: Record<string, {}[]>;
1762
+ data: Record<string, Record<string, string>[]>;
1757
1763
  fields: string[];
1758
1764
  };
1759
1765
  tickets: string[];
@@ -1778,11 +1784,11 @@ declare const zEventConfig: z.ZodObject<{
1778
1784
  tEnd: Date;
1779
1785
  shortDescription: string;
1780
1786
  details: {
1781
- data: {}[];
1787
+ data: Record<string, string>[];
1782
1788
  fields: string[];
1783
1789
  };
1784
1790
  schedule: {
1785
- data: Record<string, {}[]>;
1791
+ data: Record<string, Record<string, string>[]>;
1786
1792
  fields: string[];
1787
1793
  };
1788
1794
  tickets: string[];
@@ -1813,22 +1819,22 @@ declare const zEventConfigResponse: z.ZodObject<{
1813
1819
  shortDescription: z.ZodString;
1814
1820
  details: z.ZodObject<{
1815
1821
  fields: z.ZodArray<z.ZodString, "many">;
1816
- data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
1822
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1817
1823
  }, "strip", z.ZodTypeAny, {
1818
- data: {}[];
1824
+ data: Record<string, string>[];
1819
1825
  fields: string[];
1820
1826
  }, {
1821
- data: {}[];
1827
+ data: Record<string, string>[];
1822
1828
  fields: string[];
1823
1829
  }>;
1824
1830
  schedule: z.ZodObject<{
1825
1831
  fields: z.ZodArray<z.ZodString, "many">;
1826
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1832
+ data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1827
1833
  }, "strip", z.ZodTypeAny, {
1828
- data: Record<string, {}[]>;
1834
+ data: Record<string, Record<string, string>[]>;
1829
1835
  fields: string[];
1830
1836
  }, {
1831
- data: Record<string, {}[]>;
1837
+ data: Record<string, Record<string, string>[]>;
1832
1838
  fields: string[];
1833
1839
  }>;
1834
1840
  canRegister: z.ZodBoolean;
@@ -1887,11 +1893,11 @@ declare const zEventConfigResponse: z.ZodObject<{
1887
1893
  tEnd: Date;
1888
1894
  shortDescription: string;
1889
1895
  details: {
1890
- data: {}[];
1896
+ data: Record<string, string>[];
1891
1897
  fields: string[];
1892
1898
  };
1893
1899
  schedule: {
1894
- data: Record<string, {}[]>;
1900
+ data: Record<string, Record<string, string>[]>;
1895
1901
  fields: string[];
1896
1902
  };
1897
1903
  tickets: {
@@ -1926,11 +1932,11 @@ declare const zEventConfigResponse: z.ZodObject<{
1926
1932
  tEnd: Date;
1927
1933
  shortDescription: string;
1928
1934
  details: {
1929
- data: {}[];
1935
+ data: Record<string, string>[];
1930
1936
  fields: string[];
1931
1937
  };
1932
1938
  schedule: {
1933
- data: Record<string, {}[]>;
1939
+ data: Record<string, Record<string, string>[]>;
1934
1940
  fields: string[];
1935
1941
  };
1936
1942
  tickets: {
@@ -1962,22 +1968,22 @@ type EventConfigResponse = z.infer<typeof zEventConfigResponse>;
1962
1968
 
1963
1969
  declare const zDetailsTable: z.ZodObject<{
1964
1970
  fields: z.ZodArray<z.ZodString, "many">;
1965
- data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
1971
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1966
1972
  }, "strip", z.ZodTypeAny, {
1967
- data: {}[];
1973
+ data: Record<string, string>[];
1968
1974
  fields: string[];
1969
1975
  }, {
1970
- data: {}[];
1976
+ data: Record<string, string>[];
1971
1977
  fields: string[];
1972
1978
  }>;
1973
1979
  declare const zScheduleTable: z.ZodObject<{
1974
1980
  fields: z.ZodArray<z.ZodString, "many">;
1975
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1981
+ data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1976
1982
  }, "strip", z.ZodTypeAny, {
1977
- data: Record<string, {}[]>;
1983
+ data: Record<string, Record<string, string>[]>;
1978
1984
  fields: string[];
1979
1985
  }, {
1980
- data: Record<string, {}[]>;
1986
+ data: Record<string, Record<string, string>[]>;
1981
1987
  fields: string[];
1982
1988
  }>;
1983
1989
  type DetailsTable = z.infer<typeof zDetailsTable>;
@@ -2472,11 +2478,11 @@ declare const zBUser: z.ZodObject<{
2472
2478
  username: z.ZodOptional<z.ZodString>;
2473
2479
  password: z.ZodOptional<z.ZodString>;
2474
2480
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2475
- email: z.ZodOptional<z.ZodString>;
2476
- address: z.ZodOptional<z.ZodString>;
2477
- country: z.ZodOptional<z.ZodString>;
2478
- phoneNumber: z.ZodOptional<z.ZodString>;
2479
- birthDate: z.ZodOptional<z.ZodString>;
2481
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2482
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2483
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2484
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2485
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2480
2486
  }, "strip", z.ZodTypeAny, {
2481
2487
  name: string;
2482
2488
  username?: string | undefined;
@@ -2499,15 +2505,15 @@ declare const zBUser: z.ZodObject<{
2499
2505
  birthDate?: string | undefined;
2500
2506
  }>;
2501
2507
  declare const zUser: z.ZodObject<{
2502
- email: z.ZodOptional<z.ZodString>;
2503
- address: z.ZodOptional<z.ZodString>;
2508
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2509
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2504
2510
  name: z.ZodString;
2505
2511
  username: z.ZodOptional<z.ZodString>;
2506
2512
  password: z.ZodOptional<z.ZodString>;
2507
2513
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2508
- country: z.ZodOptional<z.ZodString>;
2509
- phoneNumber: z.ZodOptional<z.ZodString>;
2510
- birthDate: z.ZodOptional<z.ZodString>;
2514
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2515
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2516
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2511
2517
  _id: z.ZodString;
2512
2518
  editedBy: z.ZodOptional<z.ZodString>;
2513
2519
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -2542,8 +2548,8 @@ declare const zUser: z.ZodObject<{
2542
2548
  updatedAt?: Date | undefined;
2543
2549
  }>;
2544
2550
  declare const zStudent: z.ZodObject<{
2545
- email: z.ZodOptional<z.ZodString>;
2546
- address: z.ZodOptional<z.ZodString>;
2551
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2552
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2547
2553
  _id: z.ZodString;
2548
2554
  editedBy: z.ZodOptional<z.ZodString>;
2549
2555
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -2552,9 +2558,9 @@ declare const zStudent: z.ZodObject<{
2552
2558
  username: z.ZodOptional<z.ZodString>;
2553
2559
  password: z.ZodOptional<z.ZodString>;
2554
2560
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2555
- country: z.ZodOptional<z.ZodString>;
2556
- phoneNumber: z.ZodOptional<z.ZodString>;
2557
- birthDate: z.ZodOptional<z.ZodString>;
2561
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2562
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2563
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2558
2564
  rank: z.ZodNativeEnum<typeof GoRank>;
2559
2565
  guardian: z.ZodOptional<z.ZodString>;
2560
2566
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -2591,8 +2597,8 @@ declare const zStudent: z.ZodObject<{
2591
2597
  guardian?: string | undefined;
2592
2598
  }>;
2593
2599
  declare const zTeacher: z.ZodObject<{
2594
- email: z.ZodOptional<z.ZodString>;
2595
- address: z.ZodOptional<z.ZodString>;
2600
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2601
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2596
2602
  _id: z.ZodString;
2597
2603
  editedBy: z.ZodOptional<z.ZodString>;
2598
2604
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -2601,9 +2607,9 @@ declare const zTeacher: z.ZodObject<{
2601
2607
  username: z.ZodOptional<z.ZodString>;
2602
2608
  password: z.ZodOptional<z.ZodString>;
2603
2609
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2604
- country: z.ZodOptional<z.ZodString>;
2605
- phoneNumber: z.ZodOptional<z.ZodString>;
2606
- birthDate: z.ZodOptional<z.ZodString>;
2610
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2611
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2612
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2607
2613
  rank: z.ZodNativeEnum<typeof GoRank>;
2608
2614
  isInactive: z.ZodOptional<z.ZodBoolean>;
2609
2615
  title: z.ZodOptional<z.ZodString>;
package/index.js CHANGED
@@ -233,7 +233,8 @@ var zBInvoice = import_zod7.z.object({
233
233
  shipping: import_zod7.z.number().int().min(0).optional(),
234
234
  paid: import_zod7.z.nativeEnum(PaymentMethod).optional(),
235
235
  notes: import_zod7.z.string().optional(),
236
- createdBy: import_zod7.z.string()
236
+ createdBy: import_zod7.z.string(),
237
+ lastEditBy: import_zod7.z.string().optional()
237
238
  });
238
239
  var zInvoice = addAutoProps(zBInvoice);
239
240
 
@@ -501,7 +502,7 @@ var zEventTicket = addAutoProps(zBEventTicket);
501
502
 
502
503
  // src/interface/event/table.ts
503
504
  var import_zod21 = require("zod");
504
- var zTable = import_zod21.z.array(import_zod21.z.object({}));
505
+ var zTable = import_zod21.z.array(import_zod21.z.record(import_zod21.z.string(), import_zod21.z.string()));
505
506
  var zDetailsTable = import_zod21.z.object({
506
507
  fields: import_zod21.z.array(import_zod21.z.string()).length(2),
507
508
  data: zTable
@@ -602,9 +603,9 @@ var zBEventReg = import_zod24.z.object({
602
603
  /**
603
604
  * @units CENTS - Donation in cents
604
605
  */
605
- donation: import_zod24.z.number().optional(),
606
+ donation: import_zod24.z.coerce.number().optional(),
606
607
  /**
607
- * How the registration was created, namely through public endpoint or admin
608
+ * How the registration was created, through public endpoint or admin
608
609
  */
609
610
  createMethod: import_zod24.z.string().optional()
610
611
  }).merge(zBUserInfo).merge(zBPaymentInfo);
@@ -666,17 +667,17 @@ var zBUser = import_zod25.z.object({
666
667
  username: import_zod25.z.string().optional(),
667
668
  password: import_zod25.z.string().optional(),
668
669
  roles: import_zod25.z.array(import_zod25.z.number().int()).optional(),
669
- email: import_zod25.z.string().email().max(100).optional(),
670
- address: import_zod25.z.string().optional(),
670
+ email: import_zod25.z.string().max(100).email().or(import_zod25.z.literal("")).optional(),
671
+ address: import_zod25.z.string().or(import_zod25.z.literal("")).optional(),
671
672
  country: import_zod25.z.string().length(2, {
672
673
  message: "Enter the 2-letter country code"
673
- }).optional(),
674
+ }).or(import_zod25.z.literal("")).optional(),
674
675
  phoneNumber: import_zod25.z.string().regex(/^\d{10}/, {
675
676
  message: `Please enter a valid 10-digit US phone number with numbers only`
676
- }).optional(),
677
+ }).or(import_zod25.z.literal("")).optional(),
677
678
  birthDate: import_zod25.z.string().regex(/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/, {
678
679
  message: "Enter a valid date in yyyy-mm-dd format"
679
- }).optional()
680
+ }).or(import_zod25.z.literal("")).optional()
680
681
  });
681
682
  var zUser = addAutoProps(zBUser);
682
683
  var zStudent = zUser.extend({
package/index.mjs CHANGED
@@ -146,7 +146,8 @@ var zBInvoice = z7.object({
146
146
  shipping: z7.number().int().min(0).optional(),
147
147
  paid: z7.nativeEnum(PaymentMethod).optional(),
148
148
  notes: z7.string().optional(),
149
- createdBy: z7.string()
149
+ createdBy: z7.string(),
150
+ lastEditBy: z7.string().optional()
150
151
  });
151
152
  var zInvoice = addAutoProps(zBInvoice);
152
153
 
@@ -414,7 +415,7 @@ var zEventTicket = addAutoProps(zBEventTicket);
414
415
 
415
416
  // src/interface/event/table.ts
416
417
  import { z as z21 } from "zod";
417
- var zTable = z21.array(z21.object({}));
418
+ var zTable = z21.array(z21.record(z21.string(), z21.string()));
418
419
  var zDetailsTable = z21.object({
419
420
  fields: z21.array(z21.string()).length(2),
420
421
  data: zTable
@@ -515,9 +516,9 @@ var zBEventReg = z24.object({
515
516
  /**
516
517
  * @units CENTS - Donation in cents
517
518
  */
518
- donation: z24.number().optional(),
519
+ donation: z24.coerce.number().optional(),
519
520
  /**
520
- * How the registration was created, namely through public endpoint or admin
521
+ * How the registration was created, through public endpoint or admin
521
522
  */
522
523
  createMethod: z24.string().optional()
523
524
  }).merge(zBUserInfo).merge(zBPaymentInfo);
@@ -579,17 +580,17 @@ var zBUser = z25.object({
579
580
  username: z25.string().optional(),
580
581
  password: z25.string().optional(),
581
582
  roles: z25.array(z25.number().int()).optional(),
582
- email: z25.string().email().max(100).optional(),
583
- address: z25.string().optional(),
583
+ email: z25.string().max(100).email().or(z25.literal("")).optional(),
584
+ address: z25.string().or(z25.literal("")).optional(),
584
585
  country: z25.string().length(2, {
585
586
  message: "Enter the 2-letter country code"
586
- }).optional(),
587
+ }).or(z25.literal("")).optional(),
587
588
  phoneNumber: z25.string().regex(/^\d{10}/, {
588
589
  message: `Please enter a valid 10-digit US phone number with numbers only`
589
- }).optional(),
590
+ }).or(z25.literal("")).optional(),
590
591
  birthDate: z25.string().regex(/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/, {
591
592
  message: "Enter a valid date in yyyy-mm-dd format"
592
- }).optional()
593
+ }).or(z25.literal("")).optional()
593
594
  });
594
595
  var zUser = addAutoProps(zBUser);
595
596
  var zStudent = zUser.extend({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.2.31",
3
+ "version": "0.2.33",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",