@mac777/project-pinecone-schema 1.0.5 → 1.0.7

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.
@@ -826,7 +826,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
826
826
  }>>;
827
827
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
828
828
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
829
- bandColor: z.ZodOptional<z.ZodString>;
829
+ wristbandColor: z.ZodOptional<z.ZodString>;
830
830
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
831
831
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
832
832
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -856,7 +856,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
856
856
  } | undefined;
857
857
  sold?: number | undefined;
858
858
  reserved?: number | undefined;
859
- bandColor?: string | undefined;
859
+ wristbandColor?: string | undefined;
860
860
  isVisible?: boolean | undefined;
861
861
  isActive?: boolean | undefined;
862
862
  benefits?: string[] | undefined;
@@ -878,7 +878,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
878
878
  } | undefined;
879
879
  sold?: number | undefined;
880
880
  reserved?: number | undefined;
881
- bandColor?: string | undefined;
881
+ wristbandColor?: string | undefined;
882
882
  isVisible?: boolean | undefined;
883
883
  isActive?: boolean | undefined;
884
884
  benefits?: string[] | undefined;
@@ -915,7 +915,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
915
915
  }>>;
916
916
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
917
917
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
918
- bandColor: z.ZodOptional<z.ZodString>;
918
+ wristbandColor: z.ZodOptional<z.ZodString>;
919
919
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
920
920
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
921
921
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -945,7 +945,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
945
945
  } | undefined;
946
946
  sold?: number | undefined;
947
947
  reserved?: number | undefined;
948
- bandColor?: string | undefined;
948
+ wristbandColor?: string | undefined;
949
949
  isVisible?: boolean | undefined;
950
950
  isActive?: boolean | undefined;
951
951
  benefits?: string[] | undefined;
@@ -967,7 +967,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
967
967
  } | undefined;
968
968
  sold?: number | undefined;
969
969
  reserved?: number | undefined;
970
- bandColor?: string | undefined;
970
+ wristbandColor?: string | undefined;
971
971
  isVisible?: boolean | undefined;
972
972
  isActive?: boolean | undefined;
973
973
  benefits?: string[] | undefined;
@@ -1004,7 +1004,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1004
1004
  }>>;
1005
1005
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1006
1006
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1007
- bandColor: z.ZodOptional<z.ZodString>;
1007
+ wristbandColor: z.ZodOptional<z.ZodString>;
1008
1008
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1009
1009
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1010
1010
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1034,7 +1034,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1034
1034
  } | undefined;
1035
1035
  sold?: number | undefined;
1036
1036
  reserved?: number | undefined;
1037
- bandColor?: string | undefined;
1037
+ wristbandColor?: string | undefined;
1038
1038
  isVisible?: boolean | undefined;
1039
1039
  isActive?: boolean | undefined;
1040
1040
  benefits?: string[] | undefined;
@@ -1056,7 +1056,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1056
1056
  } | undefined;
1057
1057
  sold?: number | undefined;
1058
1058
  reserved?: number | undefined;
1059
- bandColor?: string | undefined;
1059
+ wristbandColor?: string | undefined;
1060
1060
  isVisible?: boolean | undefined;
1061
1061
  isActive?: boolean | undefined;
1062
1062
  benefits?: string[] | undefined;
@@ -1093,7 +1093,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1093
1093
  }>>;
1094
1094
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1095
1095
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1096
- bandColor: z.ZodOptional<z.ZodString>;
1096
+ wristbandColor: z.ZodOptional<z.ZodString>;
1097
1097
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1098
1098
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1099
1099
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1123,7 +1123,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1123
1123
  } | undefined;
1124
1124
  sold?: number | undefined;
1125
1125
  reserved?: number | undefined;
1126
- bandColor?: string | undefined;
1126
+ wristbandColor?: string | undefined;
1127
1127
  isVisible?: boolean | undefined;
1128
1128
  isActive?: boolean | undefined;
1129
1129
  benefits?: string[] | undefined;
@@ -1145,7 +1145,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1145
1145
  } | undefined;
1146
1146
  sold?: number | undefined;
1147
1147
  reserved?: number | undefined;
1148
- bandColor?: string | undefined;
1148
+ wristbandColor?: string | undefined;
1149
1149
  isVisible?: boolean | undefined;
1150
1150
  isActive?: boolean | undefined;
1151
1151
  benefits?: string[] | undefined;
@@ -1182,7 +1182,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1182
1182
  }>>;
1183
1183
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1184
1184
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1185
- bandColor: z.ZodOptional<z.ZodString>;
1185
+ wristbandColor: z.ZodOptional<z.ZodString>;
1186
1186
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1187
1187
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1188
1188
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1212,7 +1212,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1212
1212
  } | undefined;
1213
1213
  sold?: number | undefined;
1214
1214
  reserved?: number | undefined;
1215
- bandColor?: string | undefined;
1215
+ wristbandColor?: string | undefined;
1216
1216
  isVisible?: boolean | undefined;
1217
1217
  isActive?: boolean | undefined;
1218
1218
  benefits?: string[] | undefined;
@@ -1234,7 +1234,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1234
1234
  } | undefined;
1235
1235
  sold?: number | undefined;
1236
1236
  reserved?: number | undefined;
1237
- bandColor?: string | undefined;
1237
+ wristbandColor?: string | undefined;
1238
1238
  isVisible?: boolean | undefined;
1239
1239
  isActive?: boolean | undefined;
1240
1240
  benefits?: string[] | undefined;
@@ -1271,7 +1271,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1271
1271
  }>>;
1272
1272
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1273
1273
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1274
- bandColor: z.ZodOptional<z.ZodString>;
1274
+ wristbandColor: z.ZodOptional<z.ZodString>;
1275
1275
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1276
1276
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1277
1277
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1301,7 +1301,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1301
1301
  } | undefined;
1302
1302
  sold?: number | undefined;
1303
1303
  reserved?: number | undefined;
1304
- bandColor?: string | undefined;
1304
+ wristbandColor?: string | undefined;
1305
1305
  isVisible?: boolean | undefined;
1306
1306
  isActive?: boolean | undefined;
1307
1307
  benefits?: string[] | undefined;
@@ -1323,7 +1323,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1323
1323
  } | undefined;
1324
1324
  sold?: number | undefined;
1325
1325
  reserved?: number | undefined;
1326
- bandColor?: string | undefined;
1326
+ wristbandColor?: string | undefined;
1327
1327
  isVisible?: boolean | undefined;
1328
1328
  isActive?: boolean | undefined;
1329
1329
  benefits?: string[] | undefined;
@@ -1360,7 +1360,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1360
1360
  }>>;
1361
1361
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1362
1362
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1363
- bandColor: z.ZodOptional<z.ZodString>;
1363
+ wristbandColor: z.ZodOptional<z.ZodString>;
1364
1364
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1365
1365
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1366
1366
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1390,7 +1390,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1390
1390
  } | undefined;
1391
1391
  sold?: number | undefined;
1392
1392
  reserved?: number | undefined;
1393
- bandColor?: string | undefined;
1393
+ wristbandColor?: string | undefined;
1394
1394
  isVisible?: boolean | undefined;
1395
1395
  isActive?: boolean | undefined;
1396
1396
  benefits?: string[] | undefined;
@@ -1412,7 +1412,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1412
1412
  } | undefined;
1413
1413
  sold?: number | undefined;
1414
1414
  reserved?: number | undefined;
1415
- bandColor?: string | undefined;
1415
+ wristbandColor?: string | undefined;
1416
1416
  isVisible?: boolean | undefined;
1417
1417
  isActive?: boolean | undefined;
1418
1418
  benefits?: string[] | undefined;
@@ -1507,6 +1507,94 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
1507
1507
  }[] | undefined;
1508
1508
  }>;
1509
1509
  description: z.ZodString;
1510
+ tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1511
+ _id: z.ZodOptional<z.ZodString>;
1512
+ name: z.ZodString;
1513
+ price: z.ZodObject<{
1514
+ amount: z.ZodNumber;
1515
+ currency: z.ZodDefault<z.ZodString>;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ amount: number;
1518
+ currency: string;
1519
+ }, {
1520
+ amount: number;
1521
+ currency?: string | undefined;
1522
+ }>;
1523
+ quantity: z.ZodNumber;
1524
+ limits: z.ZodOptional<z.ZodObject<{
1525
+ minPerOrder: z.ZodDefault<z.ZodNumber>;
1526
+ maxPerOrder: z.ZodDefault<z.ZodNumber>;
1527
+ }, "strip", z.ZodTypeAny, {
1528
+ minPerOrder: number;
1529
+ maxPerOrder: number;
1530
+ }, {
1531
+ minPerOrder?: number | undefined;
1532
+ maxPerOrder?: number | undefined;
1533
+ }>>;
1534
+ sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1535
+ reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1536
+ wristbandColor: z.ZodOptional<z.ZodString>;
1537
+ isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1538
+ isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1539
+ benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1540
+ tier: z.ZodDefault<z.ZodString>;
1541
+ salesWindow: z.ZodOptional<z.ZodObject<{
1542
+ startDate: z.ZodOptional<z.ZodString>;
1543
+ endDate: z.ZodOptional<z.ZodString>;
1544
+ }, "strip", z.ZodTypeAny, {
1545
+ startDate?: string | undefined;
1546
+ endDate?: string | undefined;
1547
+ }, {
1548
+ startDate?: string | undefined;
1549
+ endDate?: string | undefined;
1550
+ }>>;
1551
+ }, "strip", z.ZodTypeAny, {
1552
+ name: string;
1553
+ price: {
1554
+ amount: number;
1555
+ currency: string;
1556
+ };
1557
+ quantity: number;
1558
+ tier: string;
1559
+ _id?: string | undefined;
1560
+ limits?: {
1561
+ minPerOrder: number;
1562
+ maxPerOrder: number;
1563
+ } | undefined;
1564
+ sold?: number | undefined;
1565
+ reserved?: number | undefined;
1566
+ wristbandColor?: string | undefined;
1567
+ isVisible?: boolean | undefined;
1568
+ isActive?: boolean | undefined;
1569
+ benefits?: string[] | undefined;
1570
+ salesWindow?: {
1571
+ startDate?: string | undefined;
1572
+ endDate?: string | undefined;
1573
+ } | undefined;
1574
+ }, {
1575
+ name: string;
1576
+ price: {
1577
+ amount: number;
1578
+ currency?: string | undefined;
1579
+ };
1580
+ quantity: number;
1581
+ _id?: string | undefined;
1582
+ limits?: {
1583
+ minPerOrder?: number | undefined;
1584
+ maxPerOrder?: number | undefined;
1585
+ } | undefined;
1586
+ sold?: number | undefined;
1587
+ reserved?: number | undefined;
1588
+ wristbandColor?: string | undefined;
1589
+ isVisible?: boolean | undefined;
1590
+ isActive?: boolean | undefined;
1591
+ benefits?: string[] | undefined;
1592
+ tier?: string | undefined;
1593
+ salesWindow?: {
1594
+ startDate?: string | undefined;
1595
+ endDate?: string | undefined;
1596
+ } | undefined;
1597
+ }>, "many">>;
1510
1598
  }, "strip", z.ZodTypeAny, {
1511
1599
  media: {
1512
1600
  coverImage: {
@@ -1523,6 +1611,30 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
1523
1611
  description: string;
1524
1612
  eventId: string;
1525
1613
  hostId: string;
1614
+ tickets?: {
1615
+ name: string;
1616
+ price: {
1617
+ amount: number;
1618
+ currency: string;
1619
+ };
1620
+ quantity: number;
1621
+ tier: string;
1622
+ _id?: string | undefined;
1623
+ limits?: {
1624
+ minPerOrder: number;
1625
+ maxPerOrder: number;
1626
+ } | undefined;
1627
+ sold?: number | undefined;
1628
+ reserved?: number | undefined;
1629
+ wristbandColor?: string | undefined;
1630
+ isVisible?: boolean | undefined;
1631
+ isActive?: boolean | undefined;
1632
+ benefits?: string[] | undefined;
1633
+ salesWindow?: {
1634
+ startDate?: string | undefined;
1635
+ endDate?: string | undefined;
1636
+ } | undefined;
1637
+ }[] | undefined;
1526
1638
  }, {
1527
1639
  media: {
1528
1640
  coverImage: {
@@ -1539,6 +1651,30 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
1539
1651
  description: string;
1540
1652
  eventId: string;
1541
1653
  hostId: string;
1654
+ tickets?: {
1655
+ name: string;
1656
+ price: {
1657
+ amount: number;
1658
+ currency?: string | undefined;
1659
+ };
1660
+ quantity: number;
1661
+ _id?: string | undefined;
1662
+ limits?: {
1663
+ minPerOrder?: number | undefined;
1664
+ maxPerOrder?: number | undefined;
1665
+ } | undefined;
1666
+ sold?: number | undefined;
1667
+ reserved?: number | undefined;
1668
+ wristbandColor?: string | undefined;
1669
+ isVisible?: boolean | undefined;
1670
+ isActive?: boolean | undefined;
1671
+ benefits?: string[] | undefined;
1672
+ tier?: string | undefined;
1673
+ salesWindow?: {
1674
+ startDate?: string | undefined;
1675
+ endDate?: string | undefined;
1676
+ } | undefined;
1677
+ }[] | undefined;
1542
1678
  }>;
1543
1679
  export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
1544
1680
  eventId: z.ZodString;
@@ -1620,7 +1756,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
1620
1756
  }>>;
1621
1757
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1622
1758
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1623
- bandColor: z.ZodOptional<z.ZodString>;
1759
+ wristbandColor: z.ZodOptional<z.ZodString>;
1624
1760
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1625
1761
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1626
1762
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1650,7 +1786,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
1650
1786
  } | undefined;
1651
1787
  sold?: number | undefined;
1652
1788
  reserved?: number | undefined;
1653
- bandColor?: string | undefined;
1789
+ wristbandColor?: string | undefined;
1654
1790
  isVisible?: boolean | undefined;
1655
1791
  isActive?: boolean | undefined;
1656
1792
  benefits?: string[] | undefined;
@@ -1672,7 +1808,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
1672
1808
  } | undefined;
1673
1809
  sold?: number | undefined;
1674
1810
  reserved?: number | undefined;
1675
- bandColor?: string | undefined;
1811
+ wristbandColor?: string | undefined;
1676
1812
  isVisible?: boolean | undefined;
1677
1813
  isActive?: boolean | undefined;
1678
1814
  benefits?: string[] | undefined;
@@ -1711,7 +1847,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
1711
1847
  } | undefined;
1712
1848
  sold?: number | undefined;
1713
1849
  reserved?: number | undefined;
1714
- bandColor?: string | undefined;
1850
+ wristbandColor?: string | undefined;
1715
1851
  isVisible?: boolean | undefined;
1716
1852
  isActive?: boolean | undefined;
1717
1853
  benefits?: string[] | undefined;
@@ -1750,7 +1886,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
1750
1886
  } | undefined;
1751
1887
  sold?: number | undefined;
1752
1888
  reserved?: number | undefined;
1753
- bandColor?: string | undefined;
1889
+ wristbandColor?: string | undefined;
1754
1890
  isVisible?: boolean | undefined;
1755
1891
  isActive?: boolean | undefined;
1756
1892
  benefits?: string[] | undefined;
@@ -1791,7 +1927,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
1791
1927
  } | undefined;
1792
1928
  sold?: number | undefined;
1793
1929
  reserved?: number | undefined;
1794
- bandColor?: string | undefined;
1930
+ wristbandColor?: string | undefined;
1795
1931
  isVisible?: boolean | undefined;
1796
1932
  isActive?: boolean | undefined;
1797
1933
  benefits?: string[] | undefined;
@@ -1830,7 +1966,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
1830
1966
  } | undefined;
1831
1967
  sold?: number | undefined;
1832
1968
  reserved?: number | undefined;
1833
- bandColor?: string | undefined;
1969
+ wristbandColor?: string | undefined;
1834
1970
  isVisible?: boolean | undefined;
1835
1971
  isActive?: boolean | undefined;
1836
1972
  benefits?: string[] | undefined;
@@ -2082,7 +2218,7 @@ export declare const submitEventSchema: z.ZodObject<{
2082
2218
  }>>;
2083
2219
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2084
2220
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2085
- bandColor: z.ZodOptional<z.ZodString>;
2221
+ wristbandColor: z.ZodOptional<z.ZodString>;
2086
2222
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2087
2223
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2088
2224
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2112,7 +2248,7 @@ export declare const submitEventSchema: z.ZodObject<{
2112
2248
  } | undefined;
2113
2249
  sold?: number | undefined;
2114
2250
  reserved?: number | undefined;
2115
- bandColor?: string | undefined;
2251
+ wristbandColor?: string | undefined;
2116
2252
  isVisible?: boolean | undefined;
2117
2253
  isActive?: boolean | undefined;
2118
2254
  benefits?: string[] | undefined;
@@ -2134,7 +2270,7 @@ export declare const submitEventSchema: z.ZodObject<{
2134
2270
  } | undefined;
2135
2271
  sold?: number | undefined;
2136
2272
  reserved?: number | undefined;
2137
- bandColor?: string | undefined;
2273
+ wristbandColor?: string | undefined;
2138
2274
  isVisible?: boolean | undefined;
2139
2275
  isActive?: boolean | undefined;
2140
2276
  benefits?: string[] | undefined;
@@ -2390,7 +2526,7 @@ export declare const submitEventSchema: z.ZodObject<{
2390
2526
  }>>;
2391
2527
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2392
2528
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2393
- bandColor: z.ZodOptional<z.ZodString>;
2529
+ wristbandColor: z.ZodOptional<z.ZodString>;
2394
2530
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2395
2531
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2396
2532
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2420,7 +2556,7 @@ export declare const submitEventSchema: z.ZodObject<{
2420
2556
  } | undefined;
2421
2557
  sold?: number | undefined;
2422
2558
  reserved?: number | undefined;
2423
- bandColor?: string | undefined;
2559
+ wristbandColor?: string | undefined;
2424
2560
  isVisible?: boolean | undefined;
2425
2561
  isActive?: boolean | undefined;
2426
2562
  benefits?: string[] | undefined;
@@ -2442,7 +2578,7 @@ export declare const submitEventSchema: z.ZodObject<{
2442
2578
  } | undefined;
2443
2579
  sold?: number | undefined;
2444
2580
  reserved?: number | undefined;
2445
- bandColor?: string | undefined;
2581
+ wristbandColor?: string | undefined;
2446
2582
  isVisible?: boolean | undefined;
2447
2583
  isActive?: boolean | undefined;
2448
2584
  benefits?: string[] | undefined;
@@ -2698,7 +2834,7 @@ export declare const submitEventSchema: z.ZodObject<{
2698
2834
  }>>;
2699
2835
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2700
2836
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2701
- bandColor: z.ZodOptional<z.ZodString>;
2837
+ wristbandColor: z.ZodOptional<z.ZodString>;
2702
2838
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2703
2839
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2704
2840
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2728,7 +2864,7 @@ export declare const submitEventSchema: z.ZodObject<{
2728
2864
  } | undefined;
2729
2865
  sold?: number | undefined;
2730
2866
  reserved?: number | undefined;
2731
- bandColor?: string | undefined;
2867
+ wristbandColor?: string | undefined;
2732
2868
  isVisible?: boolean | undefined;
2733
2869
  isActive?: boolean | undefined;
2734
2870
  benefits?: string[] | undefined;
@@ -2750,7 +2886,7 @@ export declare const submitEventSchema: z.ZodObject<{
2750
2886
  } | undefined;
2751
2887
  sold?: number | undefined;
2752
2888
  reserved?: number | undefined;
2753
- bandColor?: string | undefined;
2889
+ wristbandColor?: string | undefined;
2754
2890
  isVisible?: boolean | undefined;
2755
2891
  isActive?: boolean | undefined;
2756
2892
  benefits?: string[] | undefined;
@@ -3007,7 +3143,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
3007
3143
  }>>;
3008
3144
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3009
3145
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3010
- bandColor: z.ZodOptional<z.ZodString>;
3146
+ wristbandColor: z.ZodOptional<z.ZodString>;
3011
3147
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3012
3148
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3013
3149
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3037,7 +3173,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
3037
3173
  } | undefined;
3038
3174
  sold?: number | undefined;
3039
3175
  reserved?: number | undefined;
3040
- bandColor?: string | undefined;
3176
+ wristbandColor?: string | undefined;
3041
3177
  isVisible?: boolean | undefined;
3042
3178
  isActive?: boolean | undefined;
3043
3179
  benefits?: string[] | undefined;
@@ -3059,7 +3195,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
3059
3195
  } | undefined;
3060
3196
  sold?: number | undefined;
3061
3197
  reserved?: number | undefined;
3062
- bandColor?: string | undefined;
3198
+ wristbandColor?: string | undefined;
3063
3199
  isVisible?: boolean | undefined;
3064
3200
  isActive?: boolean | undefined;
3065
3201
  benefits?: string[] | undefined;
@@ -3315,7 +3451,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
3315
3451
  }>>;
3316
3452
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3317
3453
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3318
- bandColor: z.ZodOptional<z.ZodString>;
3454
+ wristbandColor: z.ZodOptional<z.ZodString>;
3319
3455
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3320
3456
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3321
3457
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3345,7 +3481,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
3345
3481
  } | undefined;
3346
3482
  sold?: number | undefined;
3347
3483
  reserved?: number | undefined;
3348
- bandColor?: string | undefined;
3484
+ wristbandColor?: string | undefined;
3349
3485
  isVisible?: boolean | undefined;
3350
3486
  isActive?: boolean | undefined;
3351
3487
  benefits?: string[] | undefined;
@@ -3367,7 +3503,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
3367
3503
  } | undefined;
3368
3504
  sold?: number | undefined;
3369
3505
  reserved?: number | undefined;
3370
- bandColor?: string | undefined;
3506
+ wristbandColor?: string | undefined;
3371
3507
  isVisible?: boolean | undefined;
3372
3508
  isActive?: boolean | undefined;
3373
3509
  benefits?: string[] | undefined;
@@ -3623,7 +3759,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
3623
3759
  }>>;
3624
3760
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3625
3761
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3626
- bandColor: z.ZodOptional<z.ZodString>;
3762
+ wristbandColor: z.ZodOptional<z.ZodString>;
3627
3763
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3628
3764
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3629
3765
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3653,7 +3789,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
3653
3789
  } | undefined;
3654
3790
  sold?: number | undefined;
3655
3791
  reserved?: number | undefined;
3656
- bandColor?: string | undefined;
3792
+ wristbandColor?: string | undefined;
3657
3793
  isVisible?: boolean | undefined;
3658
3794
  isActive?: boolean | undefined;
3659
3795
  benefits?: string[] | undefined;
@@ -3675,7 +3811,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
3675
3811
  } | undefined;
3676
3812
  sold?: number | undefined;
3677
3813
  reserved?: number | undefined;
3678
- bandColor?: string | undefined;
3814
+ wristbandColor?: string | undefined;
3679
3815
  isVisible?: boolean | undefined;
3680
3816
  isActive?: boolean | undefined;
3681
3817
  benefits?: string[] | undefined;
@@ -3927,7 +4063,7 @@ export declare const draftEventSchema: z.ZodObject<{
3927
4063
  }>>;
3928
4064
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3929
4065
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3930
- bandColor: z.ZodOptional<z.ZodString>;
4066
+ wristbandColor: z.ZodOptional<z.ZodString>;
3931
4067
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3932
4068
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3933
4069
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3957,7 +4093,7 @@ export declare const draftEventSchema: z.ZodObject<{
3957
4093
  } | undefined;
3958
4094
  sold?: number | undefined;
3959
4095
  reserved?: number | undefined;
3960
- bandColor?: string | undefined;
4096
+ wristbandColor?: string | undefined;
3961
4097
  isVisible?: boolean | undefined;
3962
4098
  isActive?: boolean | undefined;
3963
4099
  benefits?: string[] | undefined;
@@ -3979,7 +4115,7 @@ export declare const draftEventSchema: z.ZodObject<{
3979
4115
  } | undefined;
3980
4116
  sold?: number | undefined;
3981
4117
  reserved?: number | undefined;
3982
- bandColor?: string | undefined;
4118
+ wristbandColor?: string | undefined;
3983
4119
  isVisible?: boolean | undefined;
3984
4120
  isActive?: boolean | undefined;
3985
4121
  benefits?: string[] | undefined;
@@ -4230,7 +4366,7 @@ export declare const draftEventSchema: z.ZodObject<{
4230
4366
  }>>;
4231
4367
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4232
4368
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4233
- bandColor: z.ZodOptional<z.ZodString>;
4369
+ wristbandColor: z.ZodOptional<z.ZodString>;
4234
4370
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4235
4371
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4236
4372
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4260,7 +4396,7 @@ export declare const draftEventSchema: z.ZodObject<{
4260
4396
  } | undefined;
4261
4397
  sold?: number | undefined;
4262
4398
  reserved?: number | undefined;
4263
- bandColor?: string | undefined;
4399
+ wristbandColor?: string | undefined;
4264
4400
  isVisible?: boolean | undefined;
4265
4401
  isActive?: boolean | undefined;
4266
4402
  benefits?: string[] | undefined;
@@ -4282,7 +4418,7 @@ export declare const draftEventSchema: z.ZodObject<{
4282
4418
  } | undefined;
4283
4419
  sold?: number | undefined;
4284
4420
  reserved?: number | undefined;
4285
- bandColor?: string | undefined;
4421
+ wristbandColor?: string | undefined;
4286
4422
  isVisible?: boolean | undefined;
4287
4423
  isActive?: boolean | undefined;
4288
4424
  benefits?: string[] | undefined;
@@ -4533,7 +4669,7 @@ export declare const draftEventSchema: z.ZodObject<{
4533
4669
  }>>;
4534
4670
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4535
4671
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4536
- bandColor: z.ZodOptional<z.ZodString>;
4672
+ wristbandColor: z.ZodOptional<z.ZodString>;
4537
4673
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4538
4674
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4539
4675
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4563,7 +4699,7 @@ export declare const draftEventSchema: z.ZodObject<{
4563
4699
  } | undefined;
4564
4700
  sold?: number | undefined;
4565
4701
  reserved?: number | undefined;
4566
- bandColor?: string | undefined;
4702
+ wristbandColor?: string | undefined;
4567
4703
  isVisible?: boolean | undefined;
4568
4704
  isActive?: boolean | undefined;
4569
4705
  benefits?: string[] | undefined;
@@ -4585,7 +4721,7 @@ export declare const draftEventSchema: z.ZodObject<{
4585
4721
  } | undefined;
4586
4722
  sold?: number | undefined;
4587
4723
  reserved?: number | undefined;
4588
- bandColor?: string | undefined;
4724
+ wristbandColor?: string | undefined;
4589
4725
  isVisible?: boolean | undefined;
4590
4726
  isActive?: boolean | undefined;
4591
4727
  benefits?: string[] | undefined;
@@ -95,6 +95,7 @@ exports.pendingApprovalEditSchema = zod_1.z.object({
95
95
  hostId: zod_1.z.string({ required_error: 'Unauthorized' }).regex(/^[0-9a-fA-F]{24}$/, 'Unauthorized'),
96
96
  media: media_schema_1.mediaSchema,
97
97
  description: zod_1.z.string({ required_error: 'Event description is required' }).min(50, 'Description must be at least 50 characters').max(events_constants_1.MAX_DESCRIPTION_LENGTH, `Description cannot exceed ${events_constants_1.MAX_DESCRIPTION_LENGTH} characters`),
98
+ tickets: zod_1.z.array(ticket_schema_1.displayTicketSchema).min(1, 'At least one ticket type is required').optional(),
98
99
  });
99
100
  exports.approvedEventEditSchema = zod_1.z.object({
100
101
  eventId: zod_1.z.string({ required_error: 'Event not found' }).regex(/^[0-9a-fA-F]{24}$/, 'Event not found'),
@@ -55,7 +55,7 @@ export declare const displayTicketSchema: z.ZodObject<{
55
55
  }>>;
56
56
  sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
57
57
  reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
58
- bandColor: z.ZodOptional<z.ZodString>;
58
+ wristbandColor: z.ZodOptional<z.ZodString>;
59
59
  isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
60
60
  isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
61
61
  benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -85,7 +85,7 @@ export declare const displayTicketSchema: z.ZodObject<{
85
85
  } | undefined;
86
86
  sold?: number | undefined;
87
87
  reserved?: number | undefined;
88
- bandColor?: string | undefined;
88
+ wristbandColor?: string | undefined;
89
89
  isVisible?: boolean | undefined;
90
90
  isActive?: boolean | undefined;
91
91
  benefits?: string[] | undefined;
@@ -107,7 +107,7 @@ export declare const displayTicketSchema: z.ZodObject<{
107
107
  } | undefined;
108
108
  sold?: number | undefined;
109
109
  reserved?: number | undefined;
110
- bandColor?: string | undefined;
110
+ wristbandColor?: string | undefined;
111
111
  isVisible?: boolean | undefined;
112
112
  isActive?: boolean | undefined;
113
113
  benefits?: string[] | undefined;
@@ -22,7 +22,7 @@ exports.displayTicketSchema = zod_1.z.object({
22
22
  limits: exports.limitsSchema.optional(),
23
23
  sold: zod_1.z.number().default(0).optional(),
24
24
  reserved: zod_1.z.number().default(0).optional(),
25
- bandColor: zod_1.z.string().optional(),
25
+ wristbandColor: zod_1.z.string().optional(),
26
26
  isVisible: zod_1.z.boolean().default(true).optional(),
27
27
  isActive: zod_1.z.boolean().default(true).optional(),
28
28
  benefits: zod_1.z.array(zod_1.z.string(), { required_error: 'Benefits must be an array of strings' }).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mac777/project-pinecone-schema",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -103,6 +103,7 @@ export const pendingApprovalEditSchema = z.object({
103
103
  hostId: z.string({ required_error: 'Unauthorized' }).regex(/^[0-9a-fA-F]{24}$/, 'Unauthorized'),
104
104
  media: mediaSchema,
105
105
  description: z.string({ required_error: 'Event description is required' }).min(50, 'Description must be at least 50 characters').max(MAX_DESCRIPTION_LENGTH, `Description cannot exceed ${MAX_DESCRIPTION_LENGTH} characters`),
106
+ tickets: z.array(displayTicketSchema).min(1, 'At least one ticket type is required').optional(),
106
107
  })
107
108
 
108
109
  export const approvedEventEditSchema = z.object({
@@ -23,7 +23,7 @@ export const displayTicketSchema = z.object({
23
23
  limits: limitsSchema.optional(),
24
24
  sold: z.number().default(0).optional(),
25
25
  reserved: z.number().default(0).optional(),
26
- bandColor: z.string().optional(),
26
+ wristbandColor: z.string().optional(),
27
27
  isVisible: z.boolean().default(true).optional(),
28
28
  isActive: z.boolean().default(true).optional(),
29
29
  benefits: z.array(z.string(), { required_error: 'Benefits must be an array of strings' }).optional(),