@@ -101,8 +101,13 @@ export const editorialStructure: StructureResolver = (S) =>
101101 . title ( "All Podcast & Sponsor Bookings" )
102102 . icon ( FaPodcast )
103103 . child (
104- S . documentTypeList ( "booking" )
104+ S . documentList ( )
105105 . title ( "All Bookings" )
106+ . schemaType ( "booking" )
107+ . apiVersion ( "2025-02-19" )
108+ . filter (
109+ '_type == "booking" && (_id in path("private.**") || _id in path("*"))' ,
110+ )
106111 . defaultOrdering ( [
107112 { field : "slotStartAt" , direction : "desc" } ,
108113 ] ) ,
@@ -113,7 +118,10 @@ export const editorialStructure: StructureResolver = (S) =>
113118 S . documentList ( )
114119 . title ( "Pending Booking Holds" )
115120 . schemaType ( "booking" )
116- . filter ( '_type == "booking" && status == "pending"' )
121+ . apiVersion ( "2025-02-19" )
122+ . filter (
123+ '_type == "booking" && status == "pending" && (_id in path("private.**") || _id in path("*"))' ,
124+ )
117125 . defaultOrdering ( [
118126 { field : "_createdAt" , direction : "desc" } ,
119127 ] ) ,
@@ -124,8 +132,9 @@ export const editorialStructure: StructureResolver = (S) =>
124132 S . documentList ( )
125133 . title ( "Confirmed Bookings" )
126134 . schemaType ( "booking" )
135+ . apiVersion ( "2025-02-19" )
127136 . filter (
128- '_type == "booking" && status in ["approved", "scheduled"]' ,
137+ '_type == "booking" && status in ["approved", "scheduled"] && (_id in path("private.**") || _id in path("*")) ' ,
129138 )
130139 . defaultOrdering ( [
131140 { field : "slotStartAt" , direction : "asc" } ,
@@ -136,8 +145,13 @@ export const editorialStructure: StructureResolver = (S) =>
136145 . title ( "All Sponsor Leads & Deal Rooms" )
137146 . icon ( PiCurrencyDollarSimpleFill )
138147 . child (
139- S . documentTypeList ( "sponsorLead" )
148+ S . documentList ( )
140149 . title ( "Sponsor Leads & Deal Rooms" )
150+ . schemaType ( "sponsorLead" )
151+ . apiVersion ( "2025-02-19" )
152+ . filter (
153+ '_type == "sponsorLead" && (_id in path("private.**") || _id in path("*"))' ,
154+ )
141155 . defaultOrdering ( [
142156 { field : "_updatedAt" , direction : "desc" } ,
143157 ] ) ,
@@ -148,8 +162,9 @@ export const editorialStructure: StructureResolver = (S) =>
148162 S . documentList ( )
149163 . title ( "Active Sponsor Deals" )
150164 . schemaType ( "sponsorLead" )
165+ . apiVersion ( "2025-02-19" )
151166 . filter (
152- '_type == "sponsorLead" && status in ["new", "contacted", "replied", "negotiating", "deposit_sent"]' ,
167+ '_type == "sponsorLead" && status in ["new", "contacted", "replied", "negotiating", "deposit_sent"] && (_id in path("private.**") || _id in path("*")) ' ,
153168 ) ,
154169 ) ,
155170 S . listItem ( )
@@ -158,14 +173,21 @@ export const editorialStructure: StructureResolver = (S) =>
158173 S . documentList ( )
159174 . title ( "Paid / In Production" )
160175 . schemaType ( "sponsorLead" )
176+ . apiVersion ( "2025-02-19" )
161177 . filter (
162- '_type == "sponsorLead" && status in ["deposit_paid", "booked", "balance_sent", "paid"]' ,
178+ '_type == "sponsorLead" && status in ["deposit_paid", "booked", "balance_sent", "paid"] && (_id in path("private.**") || _id in path("*")) ' ,
163179 ) ,
164180 ) ,
165181 S . listItem ( )
166182 . title ( "Outbound Prospects (Sponsor Pool)" )
167183 . child (
168- S . documentTypeList ( "sponsorPool" ) . title ( "Outbound Prospects" ) ,
184+ S . documentList ( )
185+ . title ( "Outbound Prospects" )
186+ . schemaType ( "sponsorPool" )
187+ . apiVersion ( "2025-02-19" )
188+ . filter (
189+ '_type == "sponsorPool" && (_id in path("private.**") || _id in path("*"))' ,
190+ ) ,
169191 ) ,
170192 S . divider ( ) ,
171193 S . listItem ( )
@@ -411,8 +433,13 @@ export const editorialStructure: StructureResolver = (S) =>
411433 . title ( "All Discovered Trends (Ranked)" )
412434 . icon ( FaFire )
413435 . child (
414- S . documentTypeList ( "trendSignal" )
436+ S . documentList ( )
415437 . title ( "All Discovered Trends" )
438+ . schemaType ( "trendSignal" )
439+ . apiVersion ( "2025-02-19" )
440+ . filter (
441+ '_type == "trendSignal" && (_id in path("trend.**") || _id in path("*"))' ,
442+ )
416443 . defaultOrdering ( [
417444 { field : "score" , direction : "desc" } ,
418445 { field : "discoveredAt" , direction : "desc" } ,
0 commit comments