@jeromefitz/notion 1.0.0-notion.7 → 2.0.0

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/utils/index.js CHANGED
@@ -1 +1 @@
1
- import j from"date-fns/esm/addDays";import me from"date-fns/esm/addMonths";import he from"date-fns/esm/addYears";var Pe=(e,r)=>{switch(r){case"year":return he(e,1).toISOString();case"month":return me(e,1).toISOString();case"day":return j(e,2).toISOString()}return j(e,-1).toISOString()},Se=Pe;var Ee=250;async function we(){await fe()}function fe(e=Ee){return new Promise(r=>setTimeout(r,e))}var ke=we;import Ce from"lodash/map.js";import S from"lodash/filter.js";import ge from"lodash/map.js";var d=({key:e,notion:r,type:n})=>({key:e,notion:r,type:n}),o={addressCity:{init:!0,key:"addressCity",notion:"Address.City",type:"rich_text"},addressLatitude:{init:!0,key:"addressLatitude",notion:"Address.Latitude",type:"number",format:"number"},addressLongitude:{init:!0,key:"addressLongitude",notion:"Address.Longitude",type:"number",format:"number"},addressNeighborhood:{init:!0,key:"addressNeighborhood",notion:"Address.Neighborhood",type:"rich_text"},addressState:{init:!0,key:"addressState",notion:"Address.State",type:"select"},addressStreet:{init:!0,key:"addressStreet",notion:"Address.Street",type:"rich_text"},addressZipCode:{init:!0,key:"addressZipCode",notion:"Address.ZipCode",type:"number",format:"number"},authors:{init:!0,key:"authors",notion:"Authors",type:"people"},categories:{init:!0,key:"categories",notion:"Categories",type:"multi_select"},dateCreated:{init:!1,key:"dateCreated",notion:"Date.Created",type:"created_time"},dateEdited:{init:!1,key:"dateEdited",notion:"Date.Edited",type:"last_edited_time"},dateEvent:{init:!0,key:"dateEvent",notion:"Date.Event",type:"date"},datePublished:{init:!0,key:"datePublished",notion:"Date.Published",type:"date"},dateRecorded:{init:!0,key:"dateRecorded",notion:"Date.Recorded",type:"date"},duration:{init:!0,key:"duration",notion:"Duration",type:"rich_text"},email:{init:!0,key:"email",notion:"Email",type:"rich_text"},episode:{init:!0,key:"episode",notion:"Episode",type:"number",format:"number"},explicit:{init:!0,key:"explicit",notion:"Explicit",type:"checkbox"},festivals:{init:!0,key:"festivals",notion:"Festival",type:"multi_select"},food:{init:!0,key:"food",notion:"Food",type:"rich_text"},isIndexed:{init:!0,key:"isIndexed",notion:"Is.Indexed",type:"checkbox"},isPublished:{init:!0,key:"isPublished",notion:"Is.Published",type:"checkbox"},mp3:{init:!0,key:"mp3",notion:"MP3",type:"files"},name:{init:!0,key:"name",notion:"Name",type:"rich_text"},nameFirst:{init:!0,key:"nameFirst",notion:"Name.First",type:"rich_text"},nameLast:{init:!0,key:"nameLast",notion:"Name.Last",type:"rich_text"},namePreferred:{init:!0,key:"namePreferred",notion:"Name.Preferred",type:"rich_text"},phoneNumber:{init:!0,key:"phoneNumber",notion:"Phone",type:"rich_text"},podcastAuthor:{init:!0,key:"podcastAuthor",notion:"Author",type:"rich_text"},podcastAuthorEmail:{init:!0,key:"podcastAuthorEmail",notion:"Author.Email",type:"rich_text"},relationEpisodes__Podcast:{init:!0,key:"relationEpisodes__Podcast",notion:"Podcasts",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Episodes"}},relationPodcasts__Episodes:{init:!1,key:"relationPodcasts__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Podcasts"}},relationEpisodes__People_Guest:{init:!0,key:"relationEpisodes__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Guest"}},relationPeople__Episodes_Guest:{init:!1,key:"relationPeople__Episodes_Guest",notion:"Episodes.Guest",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Guest"}},relationEpisodes__People_Sound_Engineer:{init:!0,key:"relationEpisodes__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Sound.Engineer"}},relationPeople__Episodes_Sound_Engineer:{init:!1,key:"relationPeople__Episodes_Sound_Engineer",notion:"Episodes.Sound.Engineer",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Sound.Engineer"}},relationEpisodes__People_Thanks:{init:!0,key:"relationEpisodes__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Thanks"}},relationPeople__Episodes_Thanks:{init:!1,key:"relationPeople__Episodes_Thanks",notion:"Episodes.Thanks",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Thanks"}},relationEpisodes__Venues:{init:!0,key:"relationEpisodes__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Episodes"}},relationVenues__Episodes:{init:!1,key:"relationVenues__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Venues"}},relationEvents__Venues:{init:!0,key:"relationEvents__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Events"}},relationVenues__Events:{init:!1,key:"relationVenues__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Venues"}},relationEvents__Shows:{init:!0,key:"relationEvents__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events"}},relationShows__Events:{init:!1,key:"relationShows__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows"}},relationEvents__Shows_Lineup:{init:!0,key:"relationEvents__Shows_Lineup",notion:"Shows.Lineup",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events.Lineup"}},relationShows__Events_Lineup:{init:!1,key:"relationShows__Events_Lineup",notion:"Events.Lineup",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows.Lineup"}},relationShows__People_Cast:{init:!0,key:"relationShows__People_Cast",notion:"Cast",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast"}},relationPeople__Shows_Cast:{init:!1,key:"relationPeople__Shows_Cast",notion:"Shows.Cast",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast"}},relationShows__People_Cast_Past:{init:!0,key:"relationShows__People_Cast_Past",notion:"Cast.Past",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast.Past"}},relationPeople__Shows_Cast_Past:{init:!1,key:"relationPeople__Shows_Cast_Past",notion:"Shows.Cast.Past",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast.Past"}},relationShows_People_Crew:{init:!0,key:"relationShows_People_Crew",notion:"Crew",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Crew"}},relationPeople__Shows_Crew:{init:!0,key:"relationPeople__Shows_Crew",notion:"Shows.Crew",type:"relation",relation:{database_id:"Shows",synced_property_name:"Crew"}},relationShows__People_Director:{init:!0,key:"relationShows__People_Director",notion:"Director",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director"}},relationPeople__Shows_Director:{init:!1,key:"relationPeople__Shows_Director",notion:"Shows.Director",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director"}},relationShows__People_Director_Musical:{init:!0,key:"relationShows__People_Director_Musical",notion:"Director.Musical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Musical"}},relationPeople__Shows_Director_Musical:{init:!1,key:"relationPeople__Shows_Director_Musical",notion:"Shows.Director.Musical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Musical"}},relationShows__People_Director_Technical:{init:!0,key:"relationShows__People_Director_Technical",notion:"Director.Technical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Technical"}},relationPeople__Shows_Director_Technical:{init:!1,key:"relationPeople__Shows_Director_Technical",notion:"Shows.Director.Technical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Technical"}},relationEvents__People_Guest:{init:!0,key:"relationEvents__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest"}},relationPeople__Events_Guest:{init:!1,key:"relationEvents__People_Guest",notion:"Events.Guest",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest"}},relationPodcasts__People_Host:{init:!0,key:"relationPodcasts__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Podcasts.Host"}},relationPeople__Podcasts_Host:{init:!1,key:"relationPeople__Podcasts_Host",notion:"Podcasts.Host",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Host"}},relationEvents__People_Host:{init:!0,key:"relationEvents__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Host"}},relationPeople__Events_Host:{init:!1,key:"relationPeople__Events_Host",notion:"Events.Host",type:"relation",relation:{database_id:"Events",synced_property_name:"Host"}},relationShows__People_Producer:{init:!0,key:"relationShows__People_Producer",notion:"Producer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Producer"}},relationPeople__Shows_Producer:{init:!1,key:"relationPeople__Shows_Producer",notion:"Shows.Producer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Producer"}},relationEvents__People_Guest_Music:{init:!0,key:"relationEvents__People_Guest_Music",notion:"Guest.Music",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest.Music"}},relationPeople__Events_Guest_Music:{init:!1,key:"relationPeople__Events_Guest_Music",notion:"Events.Guest.Music",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest.Music"}},relationPodcasts__People_Sound_Engineer:{init:!0,key:"relationPodcasts__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Podcasts.Sound.Engineer"}},relationPeople__Podcasts_Sound_Engineer:{init:!1,key:"relationPeople__Podcasts_Sound_Engineer",notion:"Podcasts.Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Sound.Engineer"}},relationShows__People_Thanks:{init:!0,key:"relationShows__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Thanks"}},relationPeople__Shows_Thanks:{init:!1,key:"relationPeople__Shows_Thanks",notion:"Shows.Thanks",type:"relation",relation:{database_id:"Shows",synced_property_name:"Thanks"}},relationShows__People_Writer:{init:!0,key:"relationShows__People_Writer",notion:"Writer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Writer"}},relationPeople__Shows_Writer:{init:!1,key:"relationPeople__Shows_Writer",notion:"Shows.Writer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Writer"}},relationShows__Tags:{init:!0,key:"relationShows__Tags",notion:"Tags",type:"relation",relation:{database_id:"Tags",synced_property_name:"Shows"}},relationTags__Shows:{init:!1,key:"relationTags__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Tags"}},rollupShows__Tags:{init:!1,key:"rollupShows__Tags",notion:"Tags.Rollup",type:"rollup",rollup:{relation_property_name:"Tags",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast:{init:!1,key:"rollupShows__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast_Slug:{init:!1,key:"rollupShows__People_Cast_Slug",notion:"Cast.Rollup.Slug",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_name:"Slug",function:"show_original"}},rollupShows__People_Cast_Past:{init:!1,key:"rollupShows__People_Cast_Past",notion:"Cast.Past.Rollup",type:"rollup",rollup:{relation_property_name:"Cast.Past",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Crew:{init:!1,key:"rollupShows__People_Crew",notion:"Crew.Rollup",type:"rollup",rollup:{relation_property_name:"Crew",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director:{init:!1,key:"rollupShows__People_Director",notion:"Director.Rollup",type:"rollup",rollup:{relation_property_name:"Director",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Musical:{init:!1,key:"rollupShows__People_Director_Musical",notion:"Director.Musical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Musical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Technical:{init:!1,key:"rollupShows__People_Director_Technical",notion:"Director.Technical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Technical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Music:{init:!1,key:"rollupShows__People_Music",notion:"Music.Rollup",type:"rollup",rollup:{relation_property_name:"Music",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Producer:{init:!1,key:"rollupShows__People_Producer",notion:"Producer.Rollup",type:"rollup",rollup:{relation_property_name:"Producer",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Thanks:{init:!1,key:"rollupShows__People_Thanks",notion:"Thanks.Rollup",type:"rollup",rollup:{relation_property_name:"Thanks",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Writer:{init:!1,key:"rollupShows__People_Writer",notion:"Writer.Rollup",type:"rollup",rollup:{relation_property_name:"Writer",rollup_property_name:"Title",function:"show_original"}},rollupEvents__People_Cast:{init:!1,key:"rollupEvents__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Cast",function:"show_original"}},rollupEvents__People_Guest:{init:!1,key:"rollupEvents__People_Guest",notion:"Guest.Rollup",type:"rollup",rollup:{relation_property_name:"Guest",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Guest_Music:{init:!1,key:"rollupEvents__People_Guest_Music",notion:"Guest.Music.Rollup",type:"rollup",rollup:{relation_property_name:"Guest.Music",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Host:{init:!1,key:"rollupEvents__People_Host",notion:"Host.Rollup",type:"rollup",rollup:{relation_property_name:"Host",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows:{init:!1,key:"rollupEvents__Shows",notion:"Shows.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows_Lineup:{init:!1,key:"rollupEvents__Shows_Lineup",notion:"Shows.Lineup.Rollup",type:"rollup",rollup:{relation_property_name:"Shows.Lineup",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Venues:{init:!1,key:"rollupEvents__Venues",notion:"Venues.Rollup",type:"rollup",rollup:{relation_property_name:"Venues",rollup_property_id:"Title",function:"show_original"}},season:{init:!0,key:"season",notion:"Season",type:"number",format:"number"},seoDescription:{init:!0,key:"seoDescription",notion:"SEO.Description",type:"rich_text"},seoImage:{init:!0,key:"seoImage",notion:"SEO.Image",type:"files"},seoImageDescription:{init:!0,key:"seoImageDescription",notion:"SEO.Image.Description",type:"rich_text"},slug:{init:!0,key:"slug",notion:"Slug",type:"rich_text"},socialFacebook:{init:!0,key:"socialFacebook",notion:"Social.Facebook",type:"url"},socialInstagram:{init:!0,key:"socialInstagram",notion:"Social.Instagram",type:"url"},socialTwitter:{init:!0,key:"socialTwitter",notion:"Social.Twitter",type:"url"},socialWebsite:{init:!0,key:"socialWebsite",notion:"Social.Website",type:"url"},socialSpotify:{init:!0,key:"socialSpotify",notion:"Social.Spotify",type:"url"},socialApple:{init:!0,key:"socialApple",notion:"Social.Apple",type:"url"},subtitle:{init:!0,key:"subtitle",notion:"Subitle",type:"rich_text"},ticketUrl:{init:!0,key:"ticketUrl",notion:"TicketUrl",type:"url"},title:{init:!0,key:"title",notion:"Title",type:"title"},type:{init:!0,key:"type",notion:"Type",type:"select"}},E=[o.authors,o.datePublished,o.isIndexed,o.isPublished,o.slug,o.seoDescription,o.seoImage,o.seoImageDescription,o.title],B=[...E],z=[...E,o.dateRecorded,o.duration,o.episode,o.mp3,o.season,o.relationEpisodes__People_Guest,o.relationEpisodes__People_Sound_Engineer,o.relationEpisodes__People_Thanks,o.relationEpisodes__Podcast,o.relationEpisodes__Venues,o.socialApple,o.socialSpotify,o.type],Y=[...E,o.dateEvent,o.relationEvents__People_Guest_Music,o.relationEvents__People_Guest,o.relationEvents__People_Host,o.relationEvents__Shows_Lineup,o.relationEvents__Shows,o.relationEvents__Venues,o.socialFacebook,o.socialWebsite,o.ticketUrl,o.rollupEvents__People_Cast,o.rollupEvents__People_Guest_Music,o.rollupEvents__People_Guest,o.rollupEvents__People_Host,o.rollupEvents__Shows_Lineup,o.rollupEvents__Shows,o.rollupEvents__Venues],Z=[...E],K=[...E,o.email,o.nameFirst,o.nameLast,o.namePreferred,o.relationPeople__Episodes_Guest,o.relationPeople__Episodes_Sound_Engineer,o.relationPeople__Episodes_Thanks,o.relationPeople__Events_Guest,o.relationPeople__Events_Guest_Music,o.relationPeople__Events_Host,o.relationPeople__Podcasts_Host,o.relationPeople__Podcasts_Sound_Engineer,o.relationPeople__Shows_Cast,o.relationPeople__Shows_Cast_Past,o.relationPeople__Shows_Director,o.relationPeople__Shows_Director_Musical,o.relationPeople__Shows_Director_Technical,o.relationPeople__Shows_Producer,o.relationPeople__Shows_Thanks,o.relationPeople__Shows_Writer],q=[...E,o.categories,o.explicit,o.podcastAuthor,o.podcastAuthorEmail,o.relationPodcasts__People_Host,o.relationPodcasts__People_Sound_Engineer,o.socialApple,o.socialSpotify,o.type,o.relationPodcasts__Episodes],Q=[...E],J=[...E,o.relationShows__People_Cast,o.relationShows__People_Cast_Past,o.relationShows__People_Director,o.relationShows__People_Director_Musical,o.relationShows__People_Director_Technical,o.relationShows__People_Producer,o.relationShows__People_Thanks,o.relationShows__People_Writer,o.relationShows__Tags,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationShows__Events,o.relationShows__Events_Lineup,o.rollupShows__People_Cast,o.rollupShows__People_Cast_Slug,o.rollupShows__People_Cast_Past,o.rollupShows__People_Crew,o.rollupShows__People_Director,o.rollupShows__People_Director_Musical,o.rollupShows__People_Director_Technical,o.rollupShows__People_Music,o.rollupShows__People_Producer,o.rollupShows__People_Thanks,o.rollupShows__People_Writer,o.rollupShows__Tags],X=[...E,o.addressCity,o.addressLatitude,o.addressLongitude,o.addressNeighborhood,o.addressState,o.addressStreet,o.addressZipCode,o.phoneNumber,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationVenues__Episodes,o.relationVenues__Events],Lo={BLOG:S(B,{init:!0}),EPISODES:S(z,{init:!0}),EVENTS:S(Y,{init:!0}),PAGES:S(Z,{init:!0}),PEOPLE:S(K,{init:!0}),PODCASTS:S(q,{init:!0}),SEO:S(Q,{init:!0}),SHOWS:S(J,{init:!0}),VENUES:S(X,{init:!0})},$={BLOG:B.map(e=>d(e)),EPISODES:z.map(e=>d(e)),EVENTS:Y.map(e=>d(e)),PAGES:Z.map(e=>d(e)),PEOPLE:K.map(e=>d(e)),PODCASTS:q.map(e=>d(e)),SEO:Q.map(e=>d(e)),SHOWS:J.map(e=>d(e)),VENUES:X.map(e=>d(e))},ee=ge(o,e=>d(e)),oe=new Date().toISOString(),Oo={dateBefore:{property:o.datePublished.notion,date:{before:oe}},dateOnOrAfter:{property:o.datePublished.notion,date:{on_or_after:oe}},published:{property:o.isPublished.notion,checkbox:{equals:!1}},slug:{property:o.slug.notion,text:{equals:""}}},Te="LISTING",be="LISTING_BY_DATE",De="SLUG",ve="SLUG_BY_ROUTE",xe=[Te,be,De,ve],Ao=Object.assign({},...xe.map(e=>({[e]:e})).flat(1));var Ie=({config:e,data:r,pathVariables:n,pageId:a})=>{var T,b;let{NOTION:t}=e,_={};if(!(r==null?void 0:r.properties))return _;let{properties:p}=r,c;if(n){let{meta:h,routeType:P}=n;c=P===((T=t==null?void 0:t.PODCASTS)==null?void 0:T.routeType)&&h.length>1?(b=t==null?void 0:t.EPISODES)==null?void 0:b.routeType:P}let m=c?$[c.toUpperCase()]:ee;return Ce(m,h=>{let P,D=p[h.notion];_[h.key]=null,D&&(P=k[h.type](D,a),_[h.key]=P||null)}),_},L=Ie;import Ge from"lodash/map.js";import Le from"lodash/omit.js";var Oe=({config:e,results:r,routeType:n})=>{let a=[];return Ge(r,t=>{let _=Le(t,"properties");_.properties=O(L({config:e,data:t,pathVariables:n,pageId:t==null?void 0:t.id})),a.push(_)}),a},Ae=Oe;import Me from"lodash/fromPairs.js";import Ue from"lodash/sortBy.js";import He from"lodash/toPairs.js";var Ve=e=>Me(Ue(He(e))),O=Ve;import Ne from"lodash/filter.js";import A from"lodash/map.js";var We=(e,r)=>{switch(r){case"info":let n=[];return A(e.seoImage,t=>!!(t==null?void 0:t.url)&&(t==null?void 0:t.type)==="external"&&n.push(t==null?void 0:t.url)),n;case"content":return!!e&&Ne(e,{object:"block",type:"image"});case"items":let a=[];return A(e,t=>{var _;A((_=t==null?void 0:t.properties)==null?void 0:_.seoImage,p=>!!(p==null?void 0:p.url)&&(p==null?void 0:p.type)==="external"&&a.push(p==null?void 0:p.url))}),a;default:return[]}},g=We;import Fe from"github-slugger";import M from"lodash/map.js";import{getPlaiceholder as U}from"plaiceholder";var Re=async({data:e,pathVariables:r})=>{var b,h,P,D,N,W,F;let n=new Fe,a={},t=((b=e.info)==null?void 0:b.object)==="page"?g((h=e.info)==null?void 0:h.properties,"info"):!!((P=e.info)==null?void 0:P.results)&&g((N=(D=e.info)==null?void 0:D.results[0])==null?void 0:N.properties,"info"),_=!!t&&t.map(async l=>{if(!l)return null;let w=!!l&&!!(l==null?void 0:l.url)?l==null?void 0:l.url:l;if(!w)return null;let{base64:y,img:u}=await U(w),f=n.slug(w);return{base64:y,id:f,img:u,url:w}}),p=_?await Promise.all(_):[],c=!r.isIndex&&g(e==null?void 0:e.content,"content"),m=!!c&&c.map(async l=>{var v,R;if(!l)return null;let{type:w}=l,y=l[w],u=!!l&&!!((v=y==null?void 0:y.external)==null?void 0:v.url)?(R=y==null?void 0:y.external)==null?void 0:R.url:null;if(!u)return null;let{base64:f,img:I}=await U(u),G=n.slug(u);return{base64:f,id:G,img:I,url:u}}),T=m?await Promise.all(m):[];if(e.items){let l=e.items.object==="page"?g((W=e.items)==null?void 0:W.data,"items"):g((F=e.items)==null?void 0:F.results,"items"),w=!!l&&l.map(async u=>{if(!u)return null;let f=!!u&&!!(u==null?void 0:u.url)?u==null?void 0:u.url:u;if(!f)return null;let{base64:I,img:G}=await U(f),v=n.slug(f);return{base64:I,id:v,img:G,url:f}}),y=await Promise.all(w);!!y&&y[0]&&M(y,u=>a[u.id]=u)}return!!p&&p[0]&&M(p,l=>a[l.id]=l),!!T&&T[0]&&M(T,l=>a[l.id]=l),a},je=Re;import Be from"lodash/last.js";var ze=e=>{let r=Be(e.split("_"))??"";return r.length>0&&r.replace("Past","Cast Emeritus").replace("Musical","Musical Director").replace("Technical","Technical Director"),r},Ye=ze;var Ze=e=>(console.dir("@notion(_unsupported)"),console.dir(e),e),x=Ze;var Ke=e=>e.checkbox||!1,te=Ke;var qe=e=>{let{type:r}=e;return e[r]},C=qe;var Qe=e=>e.email||null,re=Qe;import Xe from"github-slugger";import $e from"lodash/size.js";var Je=e=>e.length!==32?e:e.substr(0,8)+"-"+e.substr(8,4)+"-"+e.substr(12,4)+"-"+e.substr(16,4)+"-"+e.substr(20),H=Je;var eo="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",oo=(e,r)=>eo.replace("{{FILENAME}}",encodeURIComponent(e)).replace("{{PAGE_ID}}",H(r)),to=(e,r)=>{let n=new Xe,a={};return $e(e.files)<=0||e.files.map(t=>{var _,p;if((t==null?void 0:t.type)==="file"){let c=(_=t==null?void 0:t.file)==null?void 0:_.url.split("?")[0],m=n.slug(c);a[m]={type:t==null?void 0:t.type,url:oo(c,r)}}if((t==null?void 0:t.type)==="external"){let c=(p=t==null?void 0:t.external)==null?void 0:p.url.split("?")[0],m=n.slug(c);a[m]={type:t==null?void 0:t.type,url:c}}}),a},V=to;import ro from"github-slugger";import no from"lodash/map.js";var io=e=>{let r=new ro,n={};return no(e.multi_select,a=>{let t=a;t.slug=r.slug(t.name),n[t.id]=t}),n},ne=io;var so=e=>(e==null?void 0:e.number)||null,ie=so;import lo from"github-slugger";var ao=e=>{let r=new lo;return e.people.map(n=>{let{avatar_url:a,id:t,name:_,person:p}=n,{email:c}=p;return{[r.slug(_)]:{avatar_url:a,email:c,id:t,name:_}}})[0]},se=ao;var po=e=>(e==null?void 0:e.phone_number)||null,le=po;import ae from"lodash/map.js";var _o=e=>e.type==="rollup"?e.rollup.type==="array"&&ae(e.rollup.array,r=>k[r.type](r))[0]:ae(e.relation,r=>r.id),pe=_o;var uo=e=>{var r;return(e==null?void 0:e.rich_text)?(r=e==null?void 0:e.rich_text[0])==null?void 0:r.plain_text:null},_e=uo;import co from"lodash/map.js";import yo from"lodash/sortBy.js";var mo=e=>{var r;return yo(co((r=e==null?void 0:e.rollup)==null?void 0:r.array,n=>k[n.type](n)))},ue=mo;import ho from"github-slugger";var Po=e=>{let r=new ho,n=e.select;return n?(n.slug=r.slug(e.select.name),{[n.id]:n}):null},ce=Po;var So=e=>{var r;return(e==null?void 0:e.title)?(r=e==null?void 0:e.title[0])==null?void 0:r.plain_text:null},ye=So;var Eo=e=>e.url||null,de=Eo;var wo={checkbox:te,created_by:x,created_time:C,date:C,email:re,files:V,formula:x,image:V,last_edited_by:x,last_edited_time:C,multi_select:ne,number:ie,people:se,phone_number:le,relation:pe,rich_text:_e,rollup:ue,select:ce,title:ye,url:de},k=wo;var fo=e=>Object.entries(e).length===0&&e.constructor===Object,ko=fo;var go=e=>e===void 0&&typeof e=="undefined",To=go;export{Se as addTime,ke as avoidRateLimit,L as dataNormalized,Ae as dataNormalizedResults,O as dataSorted,g as filterImages,je as getImages,Ye as getTitle,k as getTypes,ko as isObjectEmpty,To as isUndefined,H as stringToUUID};
1
+ import j from"date-fns/addDays/index.js";import me from"date-fns/addMonths/index.js";import he from"date-fns/addYears/index.js";var Pe=(e,r)=>{switch(r){case"year":return he(e,1).toISOString();case"month":return me(e,1).toISOString();case"day":return j(e,2).toISOString()}return j(e,-1).toISOString()},Se=Pe;var Ee=250;async function we(){await fe()}function fe(e=Ee){return new Promise(r=>setTimeout(r,e))}var ke=we;import Ce from"lodash/map.js";import S from"lodash/filter.js";import ge from"lodash/map.js";var d=({key:e,notion:r,type:n})=>({key:e,notion:r,type:n}),o={addressCity:{init:!0,key:"addressCity",notion:"Address.City",type:"rich_text"},addressLatitude:{init:!0,key:"addressLatitude",notion:"Address.Latitude",type:"number",format:"number"},addressLongitude:{init:!0,key:"addressLongitude",notion:"Address.Longitude",type:"number",format:"number"},addressNeighborhood:{init:!0,key:"addressNeighborhood",notion:"Address.Neighborhood",type:"rich_text"},addressState:{init:!0,key:"addressState",notion:"Address.State",type:"select"},addressStreet:{init:!0,key:"addressStreet",notion:"Address.Street",type:"rich_text"},addressZipCode:{init:!0,key:"addressZipCode",notion:"Address.ZipCode",type:"number",format:"number"},authors:{init:!0,key:"authors",notion:"Authors",type:"people"},categories:{init:!0,key:"categories",notion:"Categories",type:"multi_select"},dateCreated:{init:!1,key:"dateCreated",notion:"Date.Created",type:"created_time"},dateEdited:{init:!1,key:"dateEdited",notion:"Date.Edited",type:"last_edited_time"},dateEvent:{init:!0,key:"dateEvent",notion:"Date.Event",type:"date"},datePublished:{init:!0,key:"datePublished",notion:"Date.Published",type:"date"},dateRecorded:{init:!0,key:"dateRecorded",notion:"Date.Recorded",type:"date"},duration:{init:!0,key:"duration",notion:"Duration",type:"rich_text"},email:{init:!0,key:"email",notion:"Email",type:"rich_text"},episode:{init:!0,key:"episode",notion:"Episode",type:"number",format:"number"},explicit:{init:!0,key:"explicit",notion:"Explicit",type:"checkbox"},festivals:{init:!0,key:"festivals",notion:"Festival",type:"multi_select"},food:{init:!0,key:"food",notion:"Food",type:"rich_text"},isIndexed:{init:!0,key:"isIndexed",notion:"Is.Indexed",type:"checkbox"},isPublished:{init:!0,key:"isPublished",notion:"Is.Published",type:"checkbox"},mp3:{init:!0,key:"mp3",notion:"MP3",type:"files"},name:{init:!0,key:"name",notion:"Name",type:"rich_text"},nameFirst:{init:!0,key:"nameFirst",notion:"Name.First",type:"rich_text"},nameLast:{init:!0,key:"nameLast",notion:"Name.Last",type:"rich_text"},namePreferred:{init:!0,key:"namePreferred",notion:"Name.Preferred",type:"rich_text"},phoneNumber:{init:!0,key:"phoneNumber",notion:"Phone",type:"rich_text"},podcastAuthor:{init:!0,key:"podcastAuthor",notion:"Author",type:"rich_text"},podcastAuthorEmail:{init:!0,key:"podcastAuthorEmail",notion:"Author.Email",type:"rich_text"},relationEpisodes__Podcast:{init:!0,key:"relationEpisodes__Podcast",notion:"Podcasts",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Episodes"}},relationPodcasts__Episodes:{init:!1,key:"relationPodcasts__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Podcasts"}},relationEpisodes__People_Guest:{init:!0,key:"relationEpisodes__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Guest"}},relationPeople__Episodes_Guest:{init:!1,key:"relationPeople__Episodes_Guest",notion:"Episodes.Guest",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Guest"}},relationEpisodes__People_Sound_Engineer:{init:!0,key:"relationEpisodes__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Sound.Engineer"}},relationPeople__Episodes_Sound_Engineer:{init:!1,key:"relationPeople__Episodes_Sound_Engineer",notion:"Episodes.Sound.Engineer",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Sound.Engineer"}},relationEpisodes__People_Thanks:{init:!0,key:"relationEpisodes__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Thanks"}},relationPeople__Episodes_Thanks:{init:!1,key:"relationPeople__Episodes_Thanks",notion:"Episodes.Thanks",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Thanks"}},relationEpisodes__Venues:{init:!0,key:"relationEpisodes__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Episodes"}},relationVenues__Episodes:{init:!1,key:"relationVenues__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Venues"}},relationEvents__Venues:{init:!0,key:"relationEvents__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Events"}},relationVenues__Events:{init:!1,key:"relationVenues__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Venues"}},relationEvents__Shows:{init:!0,key:"relationEvents__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events"}},relationShows__Events:{init:!1,key:"relationShows__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows"}},relationEvents__Shows_Lineup:{init:!0,key:"relationEvents__Shows_Lineup",notion:"Shows.Lineup",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events.Lineup"}},relationShows__Events_Lineup:{init:!1,key:"relationShows__Events_Lineup",notion:"Events.Lineup",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows.Lineup"}},relationShows__People_Cast:{init:!0,key:"relationShows__People_Cast",notion:"Cast",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast"}},relationPeople__Shows_Cast:{init:!1,key:"relationPeople__Shows_Cast",notion:"Shows.Cast",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast"}},relationShows__People_Cast_Past:{init:!0,key:"relationShows__People_Cast_Past",notion:"Cast.Past",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast.Past"}},relationPeople__Shows_Cast_Past:{init:!1,key:"relationPeople__Shows_Cast_Past",notion:"Shows.Cast.Past",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast.Past"}},relationShows_People_Crew:{init:!0,key:"relationShows_People_Crew",notion:"Crew",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Crew"}},relationPeople__Shows_Crew:{init:!0,key:"relationPeople__Shows_Crew",notion:"Shows.Crew",type:"relation",relation:{database_id:"Shows",synced_property_name:"Crew"}},relationShows__People_Director:{init:!0,key:"relationShows__People_Director",notion:"Director",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director"}},relationPeople__Shows_Director:{init:!1,key:"relationPeople__Shows_Director",notion:"Shows.Director",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director"}},relationShows__People_Director_Musical:{init:!0,key:"relationShows__People_Director_Musical",notion:"Director.Musical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Musical"}},relationPeople__Shows_Director_Musical:{init:!1,key:"relationPeople__Shows_Director_Musical",notion:"Shows.Director.Musical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Musical"}},relationShows__People_Director_Technical:{init:!0,key:"relationShows__People_Director_Technical",notion:"Director.Technical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Technical"}},relationPeople__Shows_Director_Technical:{init:!1,key:"relationPeople__Shows_Director_Technical",notion:"Shows.Director.Technical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Technical"}},relationEvents__People_Guest:{init:!0,key:"relationEvents__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest"}},relationPeople__Events_Guest:{init:!1,key:"relationEvents__People_Guest",notion:"Events.Guest",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest"}},relationPodcasts__People_Host:{init:!0,key:"relationPodcasts__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Podcasts.Host"}},relationPeople__Podcasts_Host:{init:!1,key:"relationPeople__Podcasts_Host",notion:"Podcasts.Host",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Host"}},relationEvents__People_Host:{init:!0,key:"relationEvents__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Host"}},relationPeople__Events_Host:{init:!1,key:"relationPeople__Events_Host",notion:"Events.Host",type:"relation",relation:{database_id:"Events",synced_property_name:"Host"}},relationShows__People_Producer:{init:!0,key:"relationShows__People_Producer",notion:"Producer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Producer"}},relationPeople__Shows_Producer:{init:!1,key:"relationPeople__Shows_Producer",notion:"Shows.Producer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Producer"}},relationEvents__People_Guest_Music:{init:!0,key:"relationEvents__People_Guest_Music",notion:"Guest.Music",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest.Music"}},relationPeople__Events_Guest_Music:{init:!1,key:"relationPeople__Events_Guest_Music",notion:"Events.Guest.Music",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest.Music"}},relationPodcasts__People_Sound_Engineer:{init:!0,key:"relationPodcasts__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Podcasts.Sound.Engineer"}},relationPeople__Podcasts_Sound_Engineer:{init:!1,key:"relationPeople__Podcasts_Sound_Engineer",notion:"Podcasts.Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Sound.Engineer"}},relationShows__People_Thanks:{init:!0,key:"relationShows__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Thanks"}},relationPeople__Shows_Thanks:{init:!1,key:"relationPeople__Shows_Thanks",notion:"Shows.Thanks",type:"relation",relation:{database_id:"Shows",synced_property_name:"Thanks"}},relationShows__People_Writer:{init:!0,key:"relationShows__People_Writer",notion:"Writer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Writer"}},relationPeople__Shows_Writer:{init:!1,key:"relationPeople__Shows_Writer",notion:"Shows.Writer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Writer"}},relationShows__Tags:{init:!0,key:"relationShows__Tags",notion:"Tags",type:"relation",relation:{database_id:"Tags",synced_property_name:"Shows"}},relationTags__Shows:{init:!1,key:"relationTags__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Tags"}},rollupShows__Tags:{init:!1,key:"rollupShows__Tags",notion:"Tags.Rollup",type:"rollup",rollup:{relation_property_name:"Tags",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast:{init:!1,key:"rollupShows__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast_Slug:{init:!1,key:"rollupShows__People_Cast_Slug",notion:"Cast.Rollup.Slug",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_name:"Slug",function:"show_original"}},rollupShows__People_Cast_Past:{init:!1,key:"rollupShows__People_Cast_Past",notion:"Cast.Past.Rollup",type:"rollup",rollup:{relation_property_name:"Cast.Past",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Crew:{init:!1,key:"rollupShows__People_Crew",notion:"Crew.Rollup",type:"rollup",rollup:{relation_property_name:"Crew",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director:{init:!1,key:"rollupShows__People_Director",notion:"Director.Rollup",type:"rollup",rollup:{relation_property_name:"Director",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Musical:{init:!1,key:"rollupShows__People_Director_Musical",notion:"Director.Musical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Musical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Technical:{init:!1,key:"rollupShows__People_Director_Technical",notion:"Director.Technical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Technical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Music:{init:!1,key:"rollupShows__People_Music",notion:"Music.Rollup",type:"rollup",rollup:{relation_property_name:"Music",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Producer:{init:!1,key:"rollupShows__People_Producer",notion:"Producer.Rollup",type:"rollup",rollup:{relation_property_name:"Producer",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Thanks:{init:!1,key:"rollupShows__People_Thanks",notion:"Thanks.Rollup",type:"rollup",rollup:{relation_property_name:"Thanks",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Writer:{init:!1,key:"rollupShows__People_Writer",notion:"Writer.Rollup",type:"rollup",rollup:{relation_property_name:"Writer",rollup_property_name:"Title",function:"show_original"}},rollupEvents__People_Cast:{init:!1,key:"rollupEvents__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Cast",function:"show_original"}},rollupEvents__People_Guest:{init:!1,key:"rollupEvents__People_Guest",notion:"Guest.Rollup",type:"rollup",rollup:{relation_property_name:"Guest",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Guest_Music:{init:!1,key:"rollupEvents__People_Guest_Music",notion:"Guest.Music.Rollup",type:"rollup",rollup:{relation_property_name:"Guest.Music",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Host:{init:!1,key:"rollupEvents__People_Host",notion:"Host.Rollup",type:"rollup",rollup:{relation_property_name:"Host",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows:{init:!1,key:"rollupEvents__Shows",notion:"Shows.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows_Lineup:{init:!1,key:"rollupEvents__Shows_Lineup",notion:"Shows.Lineup.Rollup",type:"rollup",rollup:{relation_property_name:"Shows.Lineup",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Venues:{init:!1,key:"rollupEvents__Venues",notion:"Venues.Rollup",type:"rollup",rollup:{relation_property_name:"Venues",rollup_property_id:"Title",function:"show_original"}},season:{init:!0,key:"season",notion:"Season",type:"number",format:"number"},seoDescription:{init:!0,key:"seoDescription",notion:"SEO.Description",type:"rich_text"},seoImage:{init:!0,key:"seoImage",notion:"SEO.Image",type:"files"},seoImageDescription:{init:!0,key:"seoImageDescription",notion:"SEO.Image.Description",type:"rich_text"},slug:{init:!0,key:"slug",notion:"Slug",type:"rich_text"},socialFacebook:{init:!0,key:"socialFacebook",notion:"Social.Facebook",type:"url"},socialInstagram:{init:!0,key:"socialInstagram",notion:"Social.Instagram",type:"url"},socialTwitter:{init:!0,key:"socialTwitter",notion:"Social.Twitter",type:"url"},socialWebsite:{init:!0,key:"socialWebsite",notion:"Social.Website",type:"url"},socialSpotify:{init:!0,key:"socialSpotify",notion:"Social.Spotify",type:"url"},socialApple:{init:!0,key:"socialApple",notion:"Social.Apple",type:"url"},subtitle:{init:!0,key:"subtitle",notion:"Subitle",type:"rich_text"},ticketUrl:{init:!0,key:"ticketUrl",notion:"TicketUrl",type:"url"},title:{init:!0,key:"title",notion:"Title",type:"title"},type:{init:!0,key:"type",notion:"Type",type:"select"}},E=[o.authors,o.datePublished,o.isIndexed,o.isPublished,o.slug,o.seoDescription,o.seoImage,o.seoImageDescription,o.title],B=[...E],z=[...E,o.dateRecorded,o.duration,o.episode,o.mp3,o.season,o.relationEpisodes__People_Guest,o.relationEpisodes__People_Sound_Engineer,o.relationEpisodes__People_Thanks,o.relationEpisodes__Podcast,o.relationEpisodes__Venues,o.socialApple,o.socialSpotify,o.type],Y=[...E,o.dateEvent,o.relationEvents__People_Guest_Music,o.relationEvents__People_Guest,o.relationEvents__People_Host,o.relationEvents__Shows_Lineup,o.relationEvents__Shows,o.relationEvents__Venues,o.socialFacebook,o.socialWebsite,o.ticketUrl,o.rollupEvents__People_Cast,o.rollupEvents__People_Guest_Music,o.rollupEvents__People_Guest,o.rollupEvents__People_Host,o.rollupEvents__Shows_Lineup,o.rollupEvents__Shows,o.rollupEvents__Venues],Z=[...E],K=[...E,o.email,o.nameFirst,o.nameLast,o.namePreferred,o.relationPeople__Episodes_Guest,o.relationPeople__Episodes_Sound_Engineer,o.relationPeople__Episodes_Thanks,o.relationPeople__Events_Guest,o.relationPeople__Events_Guest_Music,o.relationPeople__Events_Host,o.relationPeople__Podcasts_Host,o.relationPeople__Podcasts_Sound_Engineer,o.relationPeople__Shows_Cast,o.relationPeople__Shows_Cast_Past,o.relationPeople__Shows_Director,o.relationPeople__Shows_Director_Musical,o.relationPeople__Shows_Director_Technical,o.relationPeople__Shows_Producer,o.relationPeople__Shows_Thanks,o.relationPeople__Shows_Writer],q=[...E,o.categories,o.explicit,o.podcastAuthor,o.podcastAuthorEmail,o.relationPodcasts__People_Host,o.relationPodcasts__People_Sound_Engineer,o.socialApple,o.socialSpotify,o.type,o.relationPodcasts__Episodes],Q=[...E],J=[...E,o.relationShows__People_Cast,o.relationShows__People_Cast_Past,o.relationShows__People_Director,o.relationShows__People_Director_Musical,o.relationShows__People_Director_Technical,o.relationShows__People_Producer,o.relationShows__People_Thanks,o.relationShows__People_Writer,o.relationShows__Tags,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationShows__Events,o.relationShows__Events_Lineup,o.rollupShows__People_Cast,o.rollupShows__People_Cast_Slug,o.rollupShows__People_Cast_Past,o.rollupShows__People_Crew,o.rollupShows__People_Director,o.rollupShows__People_Director_Musical,o.rollupShows__People_Director_Technical,o.rollupShows__People_Music,o.rollupShows__People_Producer,o.rollupShows__People_Thanks,o.rollupShows__People_Writer,o.rollupShows__Tags],X=[...E,o.addressCity,o.addressLatitude,o.addressLongitude,o.addressNeighborhood,o.addressState,o.addressStreet,o.addressZipCode,o.phoneNumber,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationVenues__Episodes,o.relationVenues__Events],Lo={BLOG:S(B,{init:!0}),EPISODES:S(z,{init:!0}),EVENTS:S(Y,{init:!0}),PAGES:S(Z,{init:!0}),PEOPLE:S(K,{init:!0}),PODCASTS:S(q,{init:!0}),SEO:S(Q,{init:!0}),SHOWS:S(J,{init:!0}),VENUES:S(X,{init:!0})},$={BLOG:B.map(e=>d(e)),EPISODES:z.map(e=>d(e)),EVENTS:Y.map(e=>d(e)),PAGES:Z.map(e=>d(e)),PEOPLE:K.map(e=>d(e)),PODCASTS:q.map(e=>d(e)),SEO:Q.map(e=>d(e)),SHOWS:J.map(e=>d(e)),VENUES:X.map(e=>d(e))},ee=ge(o,e=>d(e)),oe=new Date().toISOString(),Oo={dateBefore:{property:o.datePublished.notion,date:{before:oe}},dateOnOrAfter:{property:o.datePublished.notion,date:{on_or_after:oe}},published:{property:o.isPublished.notion,checkbox:{equals:!1}},slug:{property:o.slug.notion,text:{equals:""}}},Te="LISTING",be="LISTING_BY_DATE",De="SLUG",ve="SLUG_BY_ROUTE",xe=[Te,be,De,ve],Ao=Object.assign({},...xe.map(e=>({[e]:e})).flat(1));var Ie=({config:e,data:r,pathVariables:n,pageId:a})=>{var T,b;let{NOTION:t}=e,_={};if(!(r==null?void 0:r.properties))return _;let{properties:p}=r,c;if(n){let{meta:h,routeType:P}=n;c=P===((T=t==null?void 0:t.PODCASTS)==null?void 0:T.routeType)&&h.length>1?(b=t==null?void 0:t.EPISODES)==null?void 0:b.routeType:P}let m=c?$[c.toUpperCase()]:ee;return Ce(m,h=>{let P,D=p[h.notion];_[h.key]=null,D&&(P=k[h.type](D,a),_[h.key]=P||null)}),_},L=Ie;import Ge from"lodash/map.js";import Le from"lodash/omit.js";var Oe=({config:e,results:r,routeType:n})=>{let a=[];return Ge(r,t=>{let _=Le(t,"properties");_.properties=O(L({config:e,data:t,pathVariables:n,pageId:t==null?void 0:t.id})),a.push(_)}),a},Ae=Oe;import Me from"lodash/fromPairs.js";import Ue from"lodash/sortBy.js";import He from"lodash/toPairs.js";var Ve=e=>Me(Ue(He(e))),O=Ve;import Ne from"lodash/filter.js";import A from"lodash/map.js";var We=(e,r)=>{switch(r){case"info":let n=[];return A(e.seoImage,t=>!!(t==null?void 0:t.url)&&(t==null?void 0:t.type)==="external"&&n.push(t==null?void 0:t.url)),n;case"content":return!!e&&Ne(e,{object:"block",type:"image"});case"items":let a=[];return A(e,t=>{var _;A((_=t==null?void 0:t.properties)==null?void 0:_.seoImage,p=>!!(p==null?void 0:p.url)&&(p==null?void 0:p.type)==="external"&&a.push(p==null?void 0:p.url))}),a;default:return[]}},g=We;import Fe from"github-slugger";import M from"lodash/map.js";import{getPlaiceholder as U}from"plaiceholder";var Re=async({data:e,pathVariables:r})=>{var b,h,P,D,N,W,F;let n=new Fe,a={},t=((b=e.info)==null?void 0:b.object)==="page"?g((h=e.info)==null?void 0:h.properties,"info"):!!((P=e.info)==null?void 0:P.results)&&g((N=(D=e.info)==null?void 0:D.results[0])==null?void 0:N.properties,"info"),_=!!t&&t.map(async l=>{if(!l)return null;let w=!!l&&!!(l==null?void 0:l.url)?l==null?void 0:l.url:l;if(!w)return null;let{base64:y,img:u}=await U(w),f=n.slug(w);return{base64:y,id:f,img:u,url:w}}),p=_?await Promise.all(_):[],c=!r.isIndex&&g(e==null?void 0:e.content,"content"),m=!!c&&c.map(async l=>{var v,R;if(!l)return null;let{type:w}=l,y=l[w],u=!!l&&!!((v=y==null?void 0:y.external)==null?void 0:v.url)?(R=y==null?void 0:y.external)==null?void 0:R.url:null;if(!u)return null;let{base64:f,img:I}=await U(u),G=n.slug(u);return{base64:f,id:G,img:I,url:u}}),T=m?await Promise.all(m):[];if(e.items){let l=e.items.object==="page"?g((W=e.items)==null?void 0:W.data,"items"):g((F=e.items)==null?void 0:F.results,"items"),w=!!l&&l.map(async u=>{if(!u)return null;let f=!!u&&!!(u==null?void 0:u.url)?u==null?void 0:u.url:u;if(!f)return null;let{base64:I,img:G}=await U(f),v=n.slug(f);return{base64:I,id:v,img:G,url:f}}),y=await Promise.all(w);!!y&&y[0]&&M(y,u=>a[u.id]=u)}return!!p&&p[0]&&M(p,l=>a[l.id]=l),!!T&&T[0]&&M(T,l=>a[l.id]=l),a},je=Re;import Be from"lodash/last.js";var ze=e=>{let r=Be(e.split("_"))??"";return r.length>0&&r.replace("Past","Cast Emeritus").replace("Musical","Musical Director").replace("Technical","Technical Director"),r},Ye=ze;var Ze=e=>(console.dir("@notion(_unsupported)"),console.dir(e),e),x=Ze;var Ke=e=>e.checkbox||!1,te=Ke;var qe=e=>{let{type:r}=e;return e[r]},C=qe;var Qe=e=>e.email||null,re=Qe;import Xe from"github-slugger";import $e from"lodash/size.js";var Je=e=>e.length!==32?e:e.substr(0,8)+"-"+e.substr(8,4)+"-"+e.substr(12,4)+"-"+e.substr(16,4)+"-"+e.substr(20),H=Je;var eo="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",oo=(e,r)=>eo.replace("{{FILENAME}}",encodeURIComponent(e)).replace("{{PAGE_ID}}",H(r)),to=(e,r)=>{let n=new Xe,a={};return $e(e.files)<=0||e.files.map(t=>{var _,p;if((t==null?void 0:t.type)==="file"){let c=(_=t==null?void 0:t.file)==null?void 0:_.url.split("?")[0],m=n.slug(c);a[m]={type:t==null?void 0:t.type,url:oo(c,r)}}if((t==null?void 0:t.type)==="external"){let c=(p=t==null?void 0:t.external)==null?void 0:p.url.split("?")[0],m=n.slug(c);a[m]={type:t==null?void 0:t.type,url:c}}}),a},V=to;import ro from"github-slugger";import no from"lodash/map.js";var io=e=>{let r=new ro,n={};return no(e.multi_select,a=>{let t=a;t.slug=r.slug(t.name),n[t.id]=t}),n},ne=io;var so=e=>(e==null?void 0:e.number)||null,ie=so;import lo from"github-slugger";var ao=e=>{let r=new lo;return e.people.map(n=>{let{avatar_url:a,id:t,name:_,person:p}=n,{email:c}=p;return{[r.slug(_)]:{avatar_url:a,email:c,id:t,name:_}}})[0]},se=ao;var po=e=>(e==null?void 0:e.phone_number)||null,le=po;import ae from"lodash/map.js";var _o=e=>e.type==="rollup"?e.rollup.type==="array"&&ae(e.rollup.array,r=>k[r.type](r))[0]:ae(e.relation,r=>r.id),pe=_o;var uo=e=>{var r;return(e==null?void 0:e.rich_text)?(r=e==null?void 0:e.rich_text[0])==null?void 0:r.plain_text:null},_e=uo;import co from"lodash/map.js";import yo from"lodash/sortBy.js";var mo=e=>{var r;return yo(co((r=e==null?void 0:e.rollup)==null?void 0:r.array,n=>k[n.type](n)))},ue=mo;import ho from"github-slugger";var Po=e=>{let r=new ho,n=e.select;return n?(n.slug=r.slug(e.select.name),{[n.id]:n}):null},ce=Po;var So=e=>{var r;return(e==null?void 0:e.title)?(r=e==null?void 0:e.title[0])==null?void 0:r.plain_text:null},ye=So;var Eo=e=>e.url||null,de=Eo;var wo={checkbox:te,created_by:x,created_time:C,date:C,email:re,files:V,formula:x,image:V,last_edited_by:x,last_edited_time:C,multi_select:ne,number:ie,people:se,phone_number:le,relation:pe,rich_text:_e,rollup:ue,select:ce,title:ye,url:de},k=wo;var fo=e=>Object.entries(e).length===0&&e.constructor===Object,ko=fo;var go=e=>e===void 0&&typeof e=="undefined",To=go;export{Se as addTime,ke as avoidRateLimit,L as dataNormalized,Ae as dataNormalizedResults,O as dataSorted,g as filterImages,je as getImages,Ye as getTitle,k as getTypes,ko as isObjectEmpty,To as isUndefined,H as stringToUUID};
@@ -1,279 +0,0 @@
1
- declare type DatabaseType = 'BLOG' | 'EPISODES' | 'EVENTS' | 'PAGES' | 'PEOPLE' | 'PODCASTS' | 'SEO' | 'SHOWS' | 'VENUES';
2
- declare type DataTypes = 'LISTING' | 'LISTING_BY_DATE' | 'SLUG' | 'SLUG_BY_ROUTE';
3
- declare type DataTypesObject = {
4
- [id in DataTypes]: DataTypes;
5
- };
6
- declare type DatabaseInfo = {
7
- [key in DatabaseType]: {
8
- active: boolean;
9
- database_id: string;
10
- dataTypes: DataTypes[];
11
- name: string;
12
- page_id__seo: string;
13
- routeType: string;
14
- slug: string;
15
- };
16
- };
17
- declare type Databases = {
18
- [key in DatabaseType]: DatabaseType;
19
- };
20
- interface Relation {
21
- database_id: string;
22
- synced_property_name: string;
23
- synced_property_id?: string;
24
- }
25
- interface Rollup {
26
- relation_property_id?: string;
27
- relation_property_name?: string;
28
- rollup_property_id?: string;
29
- rollup_property_name?: string;
30
- function: 'average' | 'count_all' | 'count_empty' | 'count_not_empty' | 'count_unique_values' | 'count_values' | 'max' | 'median' | 'min' | 'percent_empty' | 'percent_not_empty' | 'range' | 'show_original' | 'sum';
31
- }
32
- interface Property {
33
- init: boolean;
34
- key: string;
35
- notion: string;
36
- format?: 'baht' | 'canadian_dollar' | 'chilean_peso' | 'colombian_peso' | 'danish_krone' | 'dirham' | 'dollar' | 'euro' | 'forint' | 'franc' | 'hong_kong_dollar' | 'koruna' | 'krona' | 'leu' | 'lira' | 'mexican_peso' | 'new_taiwan_dollar' | 'new_zealand_dollar' | 'norwegian_krone' | 'number_with_commas' | 'number' | 'percent' | 'philippine_peso' | 'pound' | 'rand' | 'real' | 'ringgit' | 'riyal' | 'ruble' | 'rupee' | 'rupiah' | 'shekel' | 'won' | 'yen' | 'yuan' | 'zloty';
37
- relation?: Relation;
38
- rollup?: Rollup;
39
- type: 'checkbox' | 'created_by' | 'created_time' | 'date' | 'email' | 'files' | 'formula' | 'last_edited_by' | 'last_edited_time' | 'multi_select' | 'number' | 'people' | 'phone_number' | 'relation' | 'rich_text' | 'rollup' | 'select' | 'title' | 'url';
40
- }
41
- interface Default {
42
- dateCreated?: any;
43
- datePublished: any;
44
- isIndexed: any;
45
- isPublished: any;
46
- slug: any;
47
- seoDescription: any;
48
- seoImage: any;
49
- seoImageDescription: any;
50
- }
51
- declare type BlogPost = Default;
52
- declare type Blog = Record<string, BlogPost>;
53
- interface Episode extends Default {
54
- dateRecorded: any;
55
- duration: any;
56
- episode: any;
57
- mp3: any;
58
- season: any;
59
- relationEpisodes__People_Guest: any;
60
- relationEpisodes__People_Sound_Engineer: any;
61
- relationEpisodes__People_Thanks: any;
62
- relationEpisodes__Podcast: any;
63
- relationEpisodes__Venues: any;
64
- socialApple: any;
65
- socialSpotify: any;
66
- type: any;
67
- }
68
- declare type Episodes = Record<string, Episode>;
69
- interface Event extends Default {
70
- dateEvent: any;
71
- relationEvents__People_Guest: any;
72
- relationEvents__People_Guest_Music: any;
73
- relationEvents__People_Host: any;
74
- relationEvents__Shows_Lineup: any;
75
- relationEvents__Shows: any;
76
- relationEvents__Venues: any;
77
- rollupEvents__People_Cast: any;
78
- rollupEvents__People_Guest: any;
79
- rollupEvents__People_Guest_Music: any;
80
- rollupEvents__People_Host: any;
81
- rollupEvents__Shows_Lineup: any;
82
- rollupEvents__Shows: any;
83
- rollupEvents__Venues: any;
84
- socialFacebook: any;
85
- socialWebsite: any;
86
- ticketUrl: any;
87
- }
88
- declare type Events = Record<string, Event>;
89
- declare type Page = Default;
90
- declare type Pages = Record<string, Page>;
91
- interface Person extends Default {
92
- email: any;
93
- nameFirst: any;
94
- nameLast: any;
95
- namePreferred: any;
96
- relationPeople__Episodes_Guest: any;
97
- relationPeople__Episodes_Sound_Engineer: any;
98
- relationPeople__Episodes_Thanks: any;
99
- relationPeople__Events_Guest: any;
100
- relationPeople__Events_Guest_Music: any;
101
- relationPeople__Events_Host: any;
102
- relationPeople__Podcasts_Host: any;
103
- relationPeople__Podcasts_Sound_Engineer: any;
104
- relationPeople__Shows_Cast: any;
105
- relationPeople__Shows_Cast_Past: any;
106
- relationPeople__Shows_Director: any;
107
- relationPeople__Shows_Director_Musical: any;
108
- relationPeople__Shows_Director_Technical: any;
109
- relationPeople__Shows_Producer: any;
110
- relationPeople__Shows_Thanks: any;
111
- relationPeople__Shows_Writer: any;
112
- }
113
- declare type People = Record<string, Person>;
114
- interface Podcast extends Default {
115
- categories: any;
116
- explicit: any;
117
- podcastAuthor: any;
118
- podcastAuthorEmail: any;
119
- relationPodcasts__Episodes: any;
120
- relationPodcasts__People_Host: any;
121
- relationPodcasts__People_Sound_Engineer: any;
122
- socialApple: any;
123
- socialSpotify: any;
124
- type: any;
125
- }
126
- declare type Podcasts = Record<string, Podcast>;
127
- declare type SeoPost = Default;
128
- declare type Seo = Record<string, SeoPost>;
129
- interface Show extends Default {
130
- relationShows__Events: any;
131
- relationShows__Events_Lineup: any;
132
- relationShows__People_Cast: any;
133
- relationShows__People_Cast_Past: any;
134
- relationShows__People_Crew: any;
135
- relationShows__People_Director: any;
136
- relationShows__People_Director_Musical: any;
137
- relationShows__People_Director_Technical: any;
138
- relationShows__People_Producer: any;
139
- relationShows__People_Thanks: any;
140
- relationShows__People_Writer: any;
141
- relationShows__Tags: any;
142
- rollupShows__People_Cast: any;
143
- rollupShows__People_Cast_Slug: any;
144
- rollupShows__People_Cast_Past: any;
145
- rollupShows__People_Crew: any;
146
- rollupShows__People_Director: any;
147
- rollupShows__People_Director_Musical: any;
148
- rollupShows__People_Director_Technical: any;
149
- rollupShows__People_Music: any;
150
- rollupShows__People_Producer: any;
151
- rollupShows__People_Thanks: any;
152
- rollupShows__People_Writer: any;
153
- rollupShows__Tags: any;
154
- socialFacebook: string;
155
- socialInstagram: string;
156
- socialTwitter: string;
157
- socialWebsite: string;
158
- }
159
- declare type Shows = Record<string, Show>;
160
- interface Venue extends Default {
161
- addressCity: any;
162
- addressLatitude: any;
163
- addressLongitude: any;
164
- addressNeighborhood: any;
165
- addressState: any;
166
- addressStreet: any;
167
- addressZipCode: any;
168
- phoneNumber: any;
169
- relationVenues__Episodes: any;
170
- relationVenues__Events: any;
171
- socialFacebook: any;
172
- socialInstagram: any;
173
- socialTwitter: any;
174
- socialWebsite: any;
175
- }
176
- declare type Venues = Record<string, Venue>;
177
- interface NotionAnnotations {
178
- bold: boolean;
179
- code: boolean;
180
- color: string;
181
- italic: boolean;
182
- strikethrough: boolean;
183
- underline: boolean;
184
- }
185
- interface NotionTextContent {
186
- content: string;
187
- link: string | null;
188
- }
189
- interface NotionText {
190
- annotations: NotionAnnotations;
191
- href: string | null;
192
- plain_text: string;
193
- text: NotionTextContent;
194
- type: string;
195
- }
196
- interface NotionUrl {
197
- url: string;
198
- }
199
- interface NotionImage {
200
- file?: NotionUrl;
201
- caption?: NotionText;
202
- external?: NotionUrl;
203
- type: string;
204
- }
205
- interface NotionBlock {
206
- created_time: string;
207
- has_children: string;
208
- id: string;
209
- last_edited_time: string;
210
- object: string;
211
- type: string;
212
- heading_1?: NotionText[];
213
- heading_2?: NotionText[];
214
- heading_3?: NotionText[];
215
- heading_4?: NotionText[];
216
- heading_5?: NotionText[];
217
- heading_6?: NotionText[];
218
- image?: NotionImage;
219
- paragraph?: NotionText[];
220
- }
221
-
222
- type index_Blog = Blog;
223
- type index_BlogPost = BlogPost;
224
- type index_DatabaseInfo = DatabaseInfo;
225
- type index_Databases = Databases;
226
- type index_DatabaseType = DatabaseType;
227
- type index_DataTypes = DataTypes;
228
- type index_DataTypesObject = DataTypesObject;
229
- type index_Episode = Episode;
230
- type index_Episodes = Episodes;
231
- type index_Event = Event;
232
- type index_Events = Events;
233
- type index_NotionBlock = NotionBlock;
234
- type index_NotionText = NotionText;
235
- type index_Page = Page;
236
- type index_Pages = Pages;
237
- type index_People = People;
238
- type index_Person = Person;
239
- type index_Podcast = Podcast;
240
- type index_Podcasts = Podcasts;
241
- type index_Property = Property;
242
- type index_Seo = Seo;
243
- type index_SeoPost = SeoPost;
244
- type index_Show = Show;
245
- type index_Shows = Shows;
246
- type index_Venue = Venue;
247
- type index_Venues = Venues;
248
- declare namespace index {
249
- export {
250
- index_Blog as Blog,
251
- index_BlogPost as BlogPost,
252
- index_DatabaseInfo as DatabaseInfo,
253
- index_Databases as Databases,
254
- index_DatabaseType as DatabaseType,
255
- index_DataTypes as DataTypes,
256
- index_DataTypesObject as DataTypesObject,
257
- index_Episode as Episode,
258
- index_Episodes as Episodes,
259
- index_Event as Event,
260
- index_Events as Events,
261
- index_NotionBlock as NotionBlock,
262
- index_NotionText as NotionText,
263
- index_Page as Page,
264
- index_Pages as Pages,
265
- index_People as People,
266
- index_Person as Person,
267
- index_Podcast as Podcast,
268
- index_Podcasts as Podcasts,
269
- index_Property as Property,
270
- index_Seo as Seo,
271
- index_SeoPost as SeoPost,
272
- index_Show as Show,
273
- index_Shows as Shows,
274
- index_Venue as Venue,
275
- index_Venues as Venues,
276
- };
277
- }
278
-
279
- export { Blog as B, DataTypes as D, Episode as E, NotionBlock as N, Property as P, Seo as S, Venue as V, DataTypesObject as a, BlogPost as b, DatabaseInfo as c, Databases as d, DatabaseType as e, Episodes as f, Event as g, Events as h, index as i, NotionText as j, Page as k, Pages as l, People as m, Person as n, Podcast as o, Podcasts as p, SeoPost as q, Show as r, Shows as s, Venues as t };
@@ -1,131 +0,0 @@
1
- import { P as Property, D as DataTypes, a as DataTypesObject } from './index-78aac290';
2
-
3
- /**
4
- * @note
5
- * Valid Notion Property Types mapped to Normalizer w/ init info
6
- */
7
- declare const PROPERTIES: Record<string, Property>;
8
- /**
9
- * @note
10
- * hyper-specific for the init / see (secret/create/init)
11
- *
12
- * 0. Create DB w/o Relations|Rollups
13
- * 1. Update DB w/ Relations
14
- * 2. Update DB w/ Relation Naming Preference
15
- * 3. Update DB w/ Rollups
16
- */
17
- declare const INIT: {
18
- BLOG: Property[];
19
- EPISODES: Property[];
20
- EVENTS: Property[];
21
- PAGES: Property[];
22
- PEOPLE: Property[];
23
- PODCASTS: Property[];
24
- SEO: Property[];
25
- SHOWS: Property[];
26
- VENUES: Property[];
27
- };
28
- declare const LOOKUP: {
29
- BLOG: {
30
- key: any;
31
- notion: any;
32
- type: any;
33
- }[];
34
- EPISODES: {
35
- key: any;
36
- notion: any;
37
- type: any;
38
- }[];
39
- EVENTS: {
40
- key: any;
41
- notion: any;
42
- type: any;
43
- }[];
44
- PAGES: {
45
- key: any;
46
- notion: any;
47
- type: any;
48
- }[];
49
- PEOPLE: {
50
- key: any;
51
- notion: any;
52
- type: any;
53
- }[];
54
- PODCASTS: {
55
- key: any;
56
- notion: any;
57
- type: any;
58
- }[];
59
- SEO: {
60
- key: any;
61
- notion: any;
62
- type: any;
63
- }[];
64
- SHOWS: {
65
- key: any;
66
- notion: any;
67
- type: any;
68
- }[];
69
- VENUES: {
70
- key: any;
71
- notion: any;
72
- type: any;
73
- }[];
74
- };
75
- declare const PROPERTIES_LOOKUP: {
76
- key: any;
77
- notion: any;
78
- type: any;
79
- }[];
80
- /**
81
- * @note(notion) right now we are only using `QUERIES.slug`
82
- */
83
- declare const QUERIES: {
84
- dateBefore: {
85
- property: string;
86
- date: {
87
- before: string;
88
- };
89
- };
90
- dateOnOrAfter: {
91
- property: string;
92
- date: {
93
- on_or_after: string;
94
- };
95
- };
96
- published: {
97
- property: string;
98
- checkbox: {
99
- equals: boolean;
100
- };
101
- };
102
- slug: {
103
- property: string;
104
- text: {
105
- equals: string;
106
- };
107
- };
108
- };
109
- declare const getDataTypes: DataTypes[];
110
- declare const DATA_TYPES: DataTypesObject;
111
-
112
- declare const index_getDataTypes: typeof getDataTypes;
113
- declare const index_DATA_TYPES: typeof DATA_TYPES;
114
- declare const index_QUERIES: typeof QUERIES;
115
- declare const index_INIT: typeof INIT;
116
- declare const index_LOOKUP: typeof LOOKUP;
117
- declare const index_PROPERTIES: typeof PROPERTIES;
118
- declare const index_PROPERTIES_LOOKUP: typeof PROPERTIES_LOOKUP;
119
- declare namespace index {
120
- export {
121
- index_getDataTypes as getDataTypes,
122
- index_DATA_TYPES as DATA_TYPES,
123
- index_QUERIES as QUERIES,
124
- index_INIT as INIT,
125
- index_LOOKUP as LOOKUP,
126
- index_PROPERTIES as PROPERTIES,
127
- index_PROPERTIES_LOOKUP as PROPERTIES_LOOKUP,
128
- };
129
- }
130
-
131
- export { DATA_TYPES as D, INIT as I, LOOKUP as L, PROPERTIES as P, QUERIES as Q, PROPERTIES_LOOKUP as a, getDataTypes as g, index as i };