@jeromefitz/notion 6.0.1 → 6.0.2
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/constants/index.d.mts +1 -1
- package/constants/index.d.mts.map +1 -1
- package/constants/index.mjs +1 -1
- package/constants/index.mjs.map +1 -1
- package/{getTypes-Df5GL8wS.mjs → getTypes-D-cwjcBl.mjs} +1 -1
- package/{getTypes-Df5GL8wS.mjs.map → getTypes-D-cwjcBl.mjs.map} +1 -1
- package/{index-CvmUSReI.d.mts → index-CQ1IEP2W.d.mts} +1 -1
- package/index-CQ1IEP2W.d.mts.map +1 -0
- package/index.d.mts +1 -1
- package/index.d.mts.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +4 -4
- package/queries/getBlocksByIdChildren/index.mjs +1 -1
- package/queries/getBlocksByIdChildren/index.mjs.map +1 -1
- package/queries/getDatabasesByIdQuery/index.d.mts +1 -1
- package/queries/getDatabasesByIdQuery/index.mjs +1 -1
- package/queries/getDatabasesByIdQuery/index.mjs.map +1 -1
- package/queries/getDeepFetchAllChildren/index.mjs +1 -1
- package/queries/getDeepFetchAllChildren/index.mjs.map +1 -1
- package/queries/getInfoType/index.mjs +1 -1
- package/queries/getInfoType/index.mjs.map +1 -1
- package/queries/getNotionListing/index.mjs +1 -1
- package/queries/getNotionListing/index.mjs.map +1 -1
- package/queries/getNotionListingByDate/index.mjs +1 -1
- package/queries/getNotionListingByDate/index.mjs.map +1 -1
- package/queries/getNotionSlug/index.mjs +1 -1
- package/queries/getNotionSlug/index.mjs.map +1 -1
- package/queries/getNotionSlugByRoute/index.mjs +1 -1
- package/queries/getNotionSlugByRoute/index.mjs.map +1 -1
- package/queries/getPagesById/index.mjs +1 -1
- package/queries/getPagesById/index.mjs.map +1 -1
- package/queries/getPathVariables/index.d.mts +1 -1
- package/queries/getPathVariables/index.mjs +1 -1
- package/queries/getPathVariables/index.mjs.map +1 -1
- package/queries/getQuery/index.mjs +1 -1
- package/queries/getQuery/index.mjs.map +1 -1
- package/queries/index.mjs +1 -1
- package/schema/index.d.mts +2 -2
- package/schema/index.mjs +1 -1
- package/utils/addTime/index.d.mts.map +1 -1
- package/utils/addTime/index.mjs +1 -1
- package/utils/addTime/index.mjs.map +1 -1
- package/utils/dataNormalized/index.mjs +1 -1
- package/utils/dataNormalizedResults/index.mjs +1 -1
- package/utils/getDataType/index.d.mts +1 -1
- package/utils/getDataType/index.d.mts.map +1 -1
- package/utils/getDataType/index.mjs +1 -1
- package/utils/getDataType/index.mjs.map +1 -1
- package/utils/getTitle/index.d.mts.map +1 -1
- package/utils/getTitle/index.mjs +1 -1
- package/utils/getTitle/index.mjs.map +1 -1
- package/utils/getTypes/_unsupported.d.mts.map +1 -1
- package/utils/getTypes/_unsupported.mjs +1 -1
- package/utils/getTypes/_unsupported.mjs.map +1 -1
- package/utils/getTypes/checkbox.d.mts.map +1 -1
- package/utils/getTypes/checkbox.mjs +1 -1
- package/utils/getTypes/checkbox.mjs.map +1 -1
- package/utils/getTypes/date.d.mts.map +1 -1
- package/utils/getTypes/date.mjs +1 -1
- package/utils/getTypes/date.mjs.map +1 -1
- package/utils/getTypes/email.d.mts.map +1 -1
- package/utils/getTypes/email.mjs +1 -1
- package/utils/getTypes/email.mjs.map +1 -1
- package/utils/getTypes/files.d.mts.map +1 -1
- package/utils/getTypes/files.mjs +1 -1
- package/utils/getTypes/files.mjs.map +1 -1
- package/utils/getTypes/index.mjs +1 -1
- package/utils/getTypes/multi_select.d.mts.map +1 -1
- package/utils/getTypes/multi_select.mjs +1 -1
- package/utils/getTypes/multi_select.mjs.map +1 -1
- package/utils/getTypes/number.d.mts.map +1 -1
- package/utils/getTypes/number.mjs +1 -1
- package/utils/getTypes/number.mjs.map +1 -1
- package/utils/getTypes/people.d.mts.map +1 -1
- package/utils/getTypes/people.mjs +1 -1
- package/utils/getTypes/people.mjs.map +1 -1
- package/utils/getTypes/phone_number.d.mts.map +1 -1
- package/utils/getTypes/phone_number.mjs +1 -1
- package/utils/getTypes/phone_number.mjs.map +1 -1
- package/utils/getTypes/relation.d.mts.map +1 -1
- package/utils/getTypes/relation.mjs +1 -1
- package/utils/getTypes/rich_text.d.mts.map +1 -1
- package/utils/getTypes/rich_text.mjs +1 -1
- package/utils/getTypes/rich_text.mjs.map +1 -1
- package/utils/getTypes/rollup.d.mts.map +1 -1
- package/utils/getTypes/rollup.mjs +1 -1
- package/utils/getTypes/select.mjs +1 -1
- package/utils/getTypes/select.mjs.map +1 -1
- package/utils/getTypes/title.d.mts.map +1 -1
- package/utils/getTypes/title.mjs +1 -1
- package/utils/getTypes/title.mjs.map +1 -1
- package/utils/getTypes/url.d.mts.map +1 -1
- package/utils/getTypes/url.mjs +1 -1
- package/utils/getTypes/url.mjs.map +1 -1
- package/utils/index.mjs +1 -1
- package/{utils-bTlwvfkE.mjs → utils-VfbevQkn.mjs} +2 -2
- package/{utils-bTlwvfkE.mjs.map → utils-VfbevQkn.mjs.map} +1 -1
- package/chunk-pm2C21R4.mjs +0 -1
- package/index-CvmUSReI.d.mts.map +0 -1
package/constants/index.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/constants/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/constants/index.ts"],"mappings":";;;;;AAA2E;;;;AAuBlC;AAAA;;;;;;cAAnC,UAAA,EAAY,MAAM,SAAS,QAAA;;;;;;;;;;cA+sC3B,IAAA;;;;;;;;;;;;cAaA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAaA,iBAAA;;;;;;;;cAQA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCA,YAAA,EAAc,SAAS;AAAA,cAEvB,UAAA,EAAY,eAIjB"}
|
package/constants/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-pm2C21R4.mjs";import{filter as e,map as t}from"lodash-es";const n=({key:e,notion:t,type:n})=>({key:e,notion:t,type:n}),r={addressCity:{init:!0,key:`addressCity`,notion:`Address.City`,type:`rich_text`},addressLatitude:{format:`number`,init:!0,key:`addressLatitude`,notion:`Address.Latitude`,type:`number`},addressLongitude:{format:`number`,init:!0,key:`addressLongitude`,notion:`Address.Longitude`,type:`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:{format:`number`,init:!0,key:`addressZipCode`,notion:`Address.ZipCode`,type:`number`},author:{init:!0,key:`author`,notion:`Author`,type:`rich_text`},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:{format:`number`,init:!0,key:`episode`,notion:`Episode`,type:`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__People_Guest:{init:!0,key:`relationEpisodes__People_Guest`,notion:`Guest`,relation:{database_id:`People`,synced_property_name:`Episodes.Guest`},type:`relation`},relationEpisodes__People_Sound_Engineer:{init:!0,key:`relationEpisodes__People_Sound_Engineer`,notion:`Sound.Engineer`,relation:{database_id:`People`,synced_property_name:`Episodes.Sound.Engineer`},type:`relation`},relationEpisodes__People_Thanks:{init:!0,key:`relationEpisodes__People_Thanks`,notion:`Thanks`,relation:{database_id:`People`,synced_property_name:`Episodes.Thanks`},type:`relation`},relationEpisodes__Podcasts:{init:!0,key:`relationEpisodes__Podcasts`,notion:`Podcasts`,relation:{database_id:`Podcasts`,synced_property_name:`Episodes`},type:`relation`},relationEpisodes__Venues:{init:!0,key:`relationEpisodes__Venues`,notion:`Venues`,relation:{database_id:`Venues`,synced_property_name:`Episodes`},type:`relation`},relationEvents__People_Guest:{init:!0,key:`relationEvents__People_Guest`,notion:`Guest`,relation:{database_id:`People`,synced_property_name:`Events.Guest`},type:`relation`},relationEvents__People_Guest_Music:{init:!0,key:`relationEvents__People_Guest_Music`,notion:`Guest.Music`,relation:{database_id:`People`,synced_property_name:`Events.Guest.Music`},type:`relation`},relationEvents__People_Host:{init:!0,key:`relationEvents__People_Host`,notion:`Host`,relation:{database_id:`People`,synced_property_name:`Events.Host`},type:`relation`},relationEvents__Shows:{init:!0,key:`relationEvents__Shows`,notion:`Shows`,relation:{database_id:`Shows`,synced_property_name:`Events`},type:`relation`},relationEvents__Shows_Lineup:{init:!0,key:`relationEvents__Shows_Lineup`,notion:`Shows.Lineup`,relation:{database_id:`Shows`,synced_property_name:`Events.Lineup`},type:`relation`},relationEvents__Venues:{init:!0,key:`relationEvents__Venues`,notion:`Venues`,relation:{database_id:`Venues`,synced_property_name:`Events`},type:`relation`},relationPeople__Episodes_Guest:{init:!1,key:`relationPeople__Episodes_Guest`,notion:`Episodes.Guest`,relation:{database_id:`Episodes`,synced_property_name:`Guest`},type:`relation`},relationPeople__Episodes_Sound_Engineer:{init:!1,key:`relationPeople__Episodes_Sound_Engineer`,notion:`Episodes.Sound.Engineer`,relation:{database_id:`Episodes`,synced_property_name:`Sound.Engineer`},type:`relation`},relationPeople__Episodes_Thanks:{init:!1,key:`relationPeople__Episodes_Thanks`,notion:`Episodes.Thanks`,relation:{database_id:`Episodes`,synced_property_name:`Thanks`},type:`relation`},relationPeople__Events_Guest:{init:!1,key:`relationEvents__People_Guest`,notion:`Events.Guest`,relation:{database_id:`Events`,synced_property_name:`Guest`},type:`relation`},relationPeople__Events_Guest_Music:{init:!1,key:`relationPeople__Events_Guest_Music`,notion:`Events.Guest.Music`,relation:{database_id:`Events`,synced_property_name:`Guest.Music`},type:`relation`},relationPeople__Events_Host:{init:!1,key:`relationPeople__Events_Host`,notion:`Events.Host`,relation:{database_id:`Events`,synced_property_name:`Host`},type:`relation`},relationPeople__Podcasts_Host:{init:!1,key:`relationPeople__Podcasts_Host`,notion:`Podcasts.Host`,relation:{database_id:`Podcasts`,synced_property_name:`Host`},type:`relation`},relationPeople__Podcasts_Sound_Engineer:{init:!1,key:`relationPeople__Podcasts_Sound_Engineer`,notion:`Podcasts.Sound.Engineer`,relation:{database_id:`Podcasts`,synced_property_name:`Sound.Engineer`},type:`relation`},relationPeople__Shows_Cast:{init:!1,key:`relationPeople__Shows_Cast`,notion:`Shows.Cast`,relation:{database_id:`Shows`,synced_property_name:`Cast`},type:`relation`},relationPeople__Shows_Cast_Past:{init:!1,key:`relationPeople__Shows_Cast_Past`,notion:`Shows.Cast.Past`,relation:{database_id:`Shows`,synced_property_name:`Cast.Past`},type:`relation`},relationPeople__Shows_Crew:{init:!0,key:`relationPeople__Shows_Crew`,notion:`Shows.Crew`,relation:{database_id:`Shows`,synced_property_name:`Crew`},type:`relation`},relationPeople__Shows_Director:{init:!1,key:`relationPeople__Shows_Director`,notion:`Shows.Director`,relation:{database_id:`Shows`,synced_property_name:`Director`},type:`relation`},relationPeople__Shows_Director_Musical:{init:!1,key:`relationPeople__Shows_Director_Musical`,notion:`Shows.Director.Musical`,relation:{database_id:`Shows`,synced_property_name:`Director.Musical`},type:`relation`},relationPeople__Shows_Director_Technical:{init:!1,key:`relationPeople__Shows_Director_Technical`,notion:`Shows.Director.Technical`,relation:{database_id:`Shows`,synced_property_name:`Director.Technical`},type:`relation`},relationPeople__Shows_Producer:{init:!1,key:`relationPeople__Shows_Producer`,notion:`Shows.Producer`,relation:{database_id:`Shows`,synced_property_name:`Producer`},type:`relation`},relationPeople__Shows_Thanks:{init:!1,key:`relationPeople__Shows_Thanks`,notion:`Shows.Thanks`,relation:{database_id:`Shows`,synced_property_name:`Thanks`},type:`relation`},relationPeople__Shows_Writer:{init:!1,key:`relationPeople__Shows_Writer`,notion:`Shows.Writer`,relation:{database_id:`Shows`,synced_property_name:`Writer`},type:`relation`},relationPodcasts__Episodes:{init:!1,key:`relationPodcasts__Episodes`,notion:`Episodes`,relation:{database_id:`Episodes`,synced_property_name:`Podcasts`},type:`relation`},relationPodcasts__People_Host:{init:!0,key:`relationPodcasts__People_Host`,notion:`Host`,relation:{database_id:`People`,synced_property_name:`Podcasts.Host`},type:`relation`},relationPodcasts__People_Sound_Engineer:{init:!0,key:`relationPodcasts__People_Sound_Engineer`,notion:`Sound.Engineer`,relation:{database_id:`Podcasts`,synced_property_name:`Podcasts.Sound.Engineer`},type:`relation`},relationShows__Events:{init:!1,key:`relationShows__Events`,notion:`Events`,relation:{database_id:`Events`,synced_property_name:`Shows`},type:`relation`},relationShows__Events_Lineup:{init:!1,key:`relationShows__Events_Lineup`,notion:`Events.Lineup`,relation:{database_id:`Events`,synced_property_name:`Shows.Lineup`},type:`relation`},relationShows__People_Cast:{init:!0,key:`relationShows__People_Cast`,notion:`Cast`,relation:{database_id:`People`,synced_property_name:`Shows.Cast`},type:`relation`},relationShows__People_Cast_Past:{init:!0,key:`relationShows__People_Cast_Past`,notion:`Cast.Past`,relation:{database_id:`People`,synced_property_name:`Shows.Cast.Past`},type:`relation`},relationShows__People_Director:{init:!0,key:`relationShows__People_Director`,notion:`Director`,relation:{database_id:`People`,synced_property_name:`Shows.Director`},type:`relation`},relationShows__People_Director_Musical:{init:!0,key:`relationShows__People_Director_Musical`,notion:`Director.Musical`,relation:{database_id:`People`,synced_property_name:`Shows.Director.Musical`},type:`relation`},relationShows__People_Director_Technical:{init:!0,key:`relationShows__People_Director_Technical`,notion:`Director.Technical`,relation:{database_id:`People`,synced_property_name:`Shows.Director.Technical`},type:`relation`},relationShows__People_Producer:{init:!0,key:`relationShows__People_Producer`,notion:`Producer`,relation:{database_id:`People`,synced_property_name:`Shows.Producer`},type:`relation`},relationShows__People_Thanks:{init:!0,key:`relationShows__People_Thanks`,notion:`Thanks`,relation:{database_id:`People`,synced_property_name:`Shows.Thanks`},type:`relation`},relationShows__People_Writer:{init:!0,key:`relationShows__People_Writer`,notion:`Writer`,relation:{database_id:`People`,synced_property_name:`Shows.Writer`},type:`relation`},relationShows__Tags:{init:!0,key:`relationShows__Tags`,notion:`Tags`,relation:{database_id:`Tags`,synced_property_name:`Shows`},type:`relation`},relationShows_People_Crew:{init:!0,key:`relationShows_People_Crew`,notion:`Crew`,relation:{database_id:`People`,synced_property_name:`Shows.Crew`},type:`relation`},relationTags__Shows:{init:!1,key:`relationTags__Shows`,notion:`Shows`,relation:{database_id:`Shows`,synced_property_name:`Tags`},type:`relation`},relationVenues__Episodes:{init:!1,key:`relationVenues__Episodes`,notion:`Episodes`,relation:{database_id:`Episodes`,synced_property_name:`Venues`},type:`relation`},relationVenues__Events:{init:!1,key:`relationVenues__Events`,notion:`Events`,relation:{database_id:`Events`,synced_property_name:`Venues`},type:`relation`},rollupEpisodes__Podcasts:{init:!1,key:`rollupEpisodes__Podcasts`,notion:`Podcasts.Rollup`,rollup:{function:`show_original`,relation_property_name:`Podcasts`,rollup_property_id:`Title`},type:`rollup`},rollupEpisodes__PodcastsSlugs:{init:!1,key:`rollupEpisodes__PodcastsSlugs`,notion:`Podcasts.Slug.Rollup`,rollup:{function:`show_original`,relation_property_name:`Podcasts`,rollup_property_id:`Slug`},type:`rollup`},rollupEvents__People_Cast:{init:!1,key:`rollupEvents__People_Cast`,notion:`Cast.Rollup`,rollup:{function:`show_original`,relation_property_name:`Shows`,rollup_property_id:`Cast`},type:`rollup`},rollupEvents__People_Guest:{init:!1,key:`rollupEvents__People_Guest`,notion:`Guest.Rollup`,rollup:{function:`show_original`,relation_property_name:`Guest`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__People_Guest_Music:{init:!1,key:`rollupEvents__People_Guest_Music`,notion:`Guest.Music.Rollup`,rollup:{function:`show_original`,relation_property_name:`Guest.Music`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__People_Host:{init:!1,key:`rollupEvents__People_Host`,notion:`Host.Rollup`,rollup:{function:`show_original`,relation_property_name:`Host`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__Shows:{init:!1,key:`rollupEvents__Shows`,notion:`Shows.Rollup`,rollup:{function:`show_original`,relation_property_name:`Shows`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__Shows_Lineup:{init:!1,key:`rollupEvents__Shows_Lineup`,notion:`Shows.Lineup.Rollup`,rollup:{function:`show_original`,relation_property_name:`Shows.Lineup`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__Venues:{init:!1,key:`rollupEvents__Venues`,notion:`Venues.Rollup`,rollup:{function:`show_original`,relation_property_name:`Venues`,rollup_property_id:`Title`},type:`rollup`},rollupPodcasts__Episodes:{init:!1,key:`rollupPodcasts__Episodes`,notion:`Episodes.Rollup`,rollup:{function:`show_original`,relation_property_name:`Episodes`,rollup_property_id:`Title`},type:`rollup`},rollupPodcasts__EpisodesSlugs:{init:!1,key:`rollupPodcasts__EpisodesSlugs`,notion:`Episodes.Slug.Rollup`,rollup:{function:`show_original`,relation_property_name:`Episodes`,rollup_property_id:`Slug`},type:`rollup`},rollupShows__People_Cast:{init:!1,key:`rollupShows__People_Cast`,notion:`Cast.Rollup`,rollup:{function:`show_original`,relation_property_name:`Cast`,rollup_property_id:`Title`},type:`rollup`},rollupShows__People_Cast_Past:{init:!1,key:`rollupShows__People_Cast_Past`,notion:`Cast.Past.Rollup`,rollup:{function:`show_original`,relation_property_name:`Cast.Past`,rollup_property_id:`Title`},type:`rollup`},rollupShows__People_Cast_Slug:{init:!1,key:`rollupShows__People_Cast_Slug`,notion:`Cast.Rollup.Slug`,rollup:{function:`show_original`,relation_property_name:`Cast`,rollup_property_name:`Slug`},type:`rollup`},rollupShows__People_Crew:{init:!1,key:`rollupShows__People_Crew`,notion:`Crew.Rollup`,rollup:{function:`show_original`,relation_property_name:`Crew`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Director:{init:!1,key:`rollupShows__People_Director`,notion:`Director.Rollup`,rollup:{function:`show_original`,relation_property_name:`Director`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Director_Musical:{init:!1,key:`rollupShows__People_Director_Musical`,notion:`Director.Musical.Rollup`,rollup:{function:`show_original`,relation_property_name:`Director.Musical`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Director_Technical:{init:!1,key:`rollupShows__People_Director_Technical`,notion:`Director.Technical.Rollup`,rollup:{function:`show_original`,relation_property_name:`Director.Technical`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Music:{init:!1,key:`rollupShows__People_Music`,notion:`Music.Rollup`,rollup:{function:`show_original`,relation_property_name:`Music`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Producer:{init:!1,key:`rollupShows__People_Producer`,notion:`Producer.Rollup`,rollup:{function:`show_original`,relation_property_name:`Producer`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Thanks:{init:!1,key:`rollupShows__People_Thanks`,notion:`Thanks.Rollup`,rollup:{function:`show_original`,relation_property_name:`Thanks`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Writer:{init:!1,key:`rollupShows__People_Writer`,notion:`Writer.Rollup`,rollup:{function:`show_original`,relation_property_name:`Writer`,rollup_property_name:`Title`},type:`rollup`},rollupShows__Tags:{init:!1,key:`rollupShows__Tags`,notion:`Tags.Rollup`,rollup:{function:`show_original`,relation_property_name:`Tags`,rollup_property_id:`Title`},type:`rollup`},season:{format:`number`,init:!0,key:`season`,notion:`Season`,type:`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`},seoKeywords:{init:!0,key:`seoKeywords`,notion:`SEO.Keywords`,type:`rich_text`},slug:{init:!0,key:`slug`,notion:`Slug`,type:`rich_text`},socialApple:{init:!0,key:`socialApple`,notion:`Social.Apple`,type:`url`},socialFacebook:{init:!0,key:`socialFacebook`,notion:`Social.Facebook`,type:`url`},socialInstagram:{init:!0,key:`socialInstagram`,notion:`Social.Instagram`,type:`url`},socialSpotify:{init:!0,key:`socialSpotify`,notion:`Social.Spotify`,type:`url`},socialTwitter:{init:!0,key:`socialTwitter`,notion:`Social.Twitter`,type:`url`},socialWebsite:{init:!0,key:`socialWebsite`,notion:`Social.Website`,type:`url`},status:{init:!0,key:`status`,notion:`Status`,type:`select`},subtitle:{init:!0,key:`subtitle`,notion:`Subtitle`,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`}},i=[r.authors,r.datePublished,r.isIndexed,r.isPublished,r.slug,r.seoDescription,r.seoImage,r.seoImageDescription,r.seoKeywords,r.title],a=[...i],o=[...i,r.author,r.status,r.subtitle],s=[...i,r.dateRecorded,r.duration,r.episode,r.mp3,r.season,r.relationEpisodes__People_Guest,r.relationEpisodes__People_Sound_Engineer,r.relationEpisodes__People_Thanks,r.relationEpisodes__Podcasts,r.relationEpisodes__Venues,r.socialApple,r.socialSpotify,r.type,r.rollupEpisodes__Podcasts,r.rollupEpisodes__PodcastsSlugs],c=[...i,r.dateEvent,r.relationEvents__People_Guest_Music,r.relationEvents__People_Guest,r.relationEvents__People_Host,r.relationEvents__Shows_Lineup,r.relationEvents__Shows,r.relationEvents__Venues,r.socialFacebook,r.socialWebsite,r.ticketUrl,r.rollupEvents__People_Cast,r.rollupEvents__People_Guest_Music,r.rollupEvents__People_Guest,r.rollupEvents__People_Host,r.rollupEvents__Shows_Lineup,r.rollupEvents__Shows,r.rollupEvents__Venues],l=[...i],u=[...i,r.email,r.nameFirst,r.nameLast,r.namePreferred,r.relationPeople__Episodes_Guest,r.relationPeople__Episodes_Sound_Engineer,r.relationPeople__Episodes_Thanks,r.relationPeople__Events_Guest,r.relationPeople__Events_Guest_Music,r.relationPeople__Events_Host,r.relationPeople__Podcasts_Host,r.relationPeople__Podcasts_Sound_Engineer,r.relationPeople__Shows_Cast,r.relationPeople__Shows_Cast_Past,r.relationPeople__Shows_Director,r.relationPeople__Shows_Director_Musical,r.relationPeople__Shows_Director_Technical,r.relationPeople__Shows_Producer,r.relationPeople__Shows_Thanks,r.relationPeople__Shows_Writer],d=[...i,r.categories,r.explicit,r.podcastAuthor,r.podcastAuthorEmail,r.relationPodcasts__People_Host,r.relationPodcasts__People_Sound_Engineer,r.socialApple,r.socialSpotify,r.type,r.relationPodcasts__Episodes,r.rollupPodcasts__Episodes,r.rollupPodcasts__EpisodesSlugs],f=[...i],p=[...i,r.relationShows__People_Cast,r.relationShows__People_Cast_Past,r.relationShows__People_Director,r.relationShows__People_Director_Musical,r.relationShows__People_Director_Technical,r.relationShows__People_Producer,r.relationShows__People_Thanks,r.relationShows__People_Writer,r.relationShows__Tags,r.socialFacebook,r.socialInstagram,r.socialTwitter,r.socialWebsite,r.relationShows__Events,r.relationShows__Events_Lineup,r.rollupShows__People_Cast,r.rollupShows__People_Cast_Slug,r.rollupShows__People_Cast_Past,r.rollupShows__People_Crew,r.rollupShows__People_Director,r.rollupShows__People_Director_Musical,r.rollupShows__People_Director_Technical,r.rollupShows__People_Music,r.rollupShows__People_Producer,r.rollupShows__People_Thanks,r.rollupShows__People_Writer,r.rollupShows__Tags],m=[...i,r.addressCity,r.addressLatitude,r.addressLongitude,r.addressNeighborhood,r.addressState,r.addressStreet,r.addressZipCode,r.phoneNumber,r.socialFacebook,r.socialInstagram,r.socialTwitter,r.socialWebsite,r.relationVenues__Episodes,r.relationVenues__Events],h={BLOG:e(a,{init:!0}),BOOKS:e(o,{init:!0}),EPISODES:e(s,{init:!0}),EVENTS:e(c,{init:!0}),PAGES:e(l,{init:!0}),PEOPLE:e(u,{init:!0}),PODCASTS:e(d,{init:!0}),SEO:e(f,{init:!0}),SHOWS:e(p,{init:!0}),VENUES:e(m,{init:!0})},g={BLOG:a.map(e=>n(e)),BOOKS:o.map(e=>n(e)),EPISODES:s.map(e=>n(e)),EVENTS:c.map(e=>n(e)),PAGES:l.map(e=>n(e)),PEOPLE:u.map(e=>n(e)),PODCASTS:d.map(e=>n(e)),SEO:f.map(e=>n(e)),SHOWS:p.map(e=>n(e)),VENUES:m.map(e=>n(e))},_=t(r,e=>n(e)),v=new Date().toISOString(),y={dateBefore:{date:{before:v},property:r.datePublished.notion},dateOnOrAfter:{date:{on_or_after:v},property:r.datePublished.notion},published:{checkbox:{equals:!1},property:r.isPublished.notion},slug:{property:r.slug.notion,rich_text:{equals:``}}},b=[`LISTING`,`LISTING_BY_DATE`,`SLUG`,`SLUG_BY_ROUTE`],x=Object.assign({},...b.flatMap(e=>({[e]:e})));export{x as DATA_TYPES,h as INIT,g as LOOKUP,r as PROPERTIES,_ as PROPERTIES_LOOKUP,y as QUERIES,b as getDataTypes};
|
|
1
|
+
import{filter as e,map as t}from"lodash-es";const n=({key:e,notion:t,type:n})=>({key:e,notion:t,type:n}),r={addressCity:{init:!0,key:`addressCity`,notion:`Address.City`,type:`rich_text`},addressLatitude:{format:`number`,init:!0,key:`addressLatitude`,notion:`Address.Latitude`,type:`number`},addressLongitude:{format:`number`,init:!0,key:`addressLongitude`,notion:`Address.Longitude`,type:`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:{format:`number`,init:!0,key:`addressZipCode`,notion:`Address.ZipCode`,type:`number`},author:{init:!0,key:`author`,notion:`Author`,type:`rich_text`},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:{format:`number`,init:!0,key:`episode`,notion:`Episode`,type:`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__People_Guest:{init:!0,key:`relationEpisodes__People_Guest`,notion:`Guest`,relation:{database_id:`People`,synced_property_name:`Episodes.Guest`},type:`relation`},relationEpisodes__People_Sound_Engineer:{init:!0,key:`relationEpisodes__People_Sound_Engineer`,notion:`Sound.Engineer`,relation:{database_id:`People`,synced_property_name:`Episodes.Sound.Engineer`},type:`relation`},relationEpisodes__People_Thanks:{init:!0,key:`relationEpisodes__People_Thanks`,notion:`Thanks`,relation:{database_id:`People`,synced_property_name:`Episodes.Thanks`},type:`relation`},relationEpisodes__Podcasts:{init:!0,key:`relationEpisodes__Podcasts`,notion:`Podcasts`,relation:{database_id:`Podcasts`,synced_property_name:`Episodes`},type:`relation`},relationEpisodes__Venues:{init:!0,key:`relationEpisodes__Venues`,notion:`Venues`,relation:{database_id:`Venues`,synced_property_name:`Episodes`},type:`relation`},relationEvents__People_Guest:{init:!0,key:`relationEvents__People_Guest`,notion:`Guest`,relation:{database_id:`People`,synced_property_name:`Events.Guest`},type:`relation`},relationEvents__People_Guest_Music:{init:!0,key:`relationEvents__People_Guest_Music`,notion:`Guest.Music`,relation:{database_id:`People`,synced_property_name:`Events.Guest.Music`},type:`relation`},relationEvents__People_Host:{init:!0,key:`relationEvents__People_Host`,notion:`Host`,relation:{database_id:`People`,synced_property_name:`Events.Host`},type:`relation`},relationEvents__Shows:{init:!0,key:`relationEvents__Shows`,notion:`Shows`,relation:{database_id:`Shows`,synced_property_name:`Events`},type:`relation`},relationEvents__Shows_Lineup:{init:!0,key:`relationEvents__Shows_Lineup`,notion:`Shows.Lineup`,relation:{database_id:`Shows`,synced_property_name:`Events.Lineup`},type:`relation`},relationEvents__Venues:{init:!0,key:`relationEvents__Venues`,notion:`Venues`,relation:{database_id:`Venues`,synced_property_name:`Events`},type:`relation`},relationPeople__Episodes_Guest:{init:!1,key:`relationPeople__Episodes_Guest`,notion:`Episodes.Guest`,relation:{database_id:`Episodes`,synced_property_name:`Guest`},type:`relation`},relationPeople__Episodes_Sound_Engineer:{init:!1,key:`relationPeople__Episodes_Sound_Engineer`,notion:`Episodes.Sound.Engineer`,relation:{database_id:`Episodes`,synced_property_name:`Sound.Engineer`},type:`relation`},relationPeople__Episodes_Thanks:{init:!1,key:`relationPeople__Episodes_Thanks`,notion:`Episodes.Thanks`,relation:{database_id:`Episodes`,synced_property_name:`Thanks`},type:`relation`},relationPeople__Events_Guest:{init:!1,key:`relationEvents__People_Guest`,notion:`Events.Guest`,relation:{database_id:`Events`,synced_property_name:`Guest`},type:`relation`},relationPeople__Events_Guest_Music:{init:!1,key:`relationPeople__Events_Guest_Music`,notion:`Events.Guest.Music`,relation:{database_id:`Events`,synced_property_name:`Guest.Music`},type:`relation`},relationPeople__Events_Host:{init:!1,key:`relationPeople__Events_Host`,notion:`Events.Host`,relation:{database_id:`Events`,synced_property_name:`Host`},type:`relation`},relationPeople__Podcasts_Host:{init:!1,key:`relationPeople__Podcasts_Host`,notion:`Podcasts.Host`,relation:{database_id:`Podcasts`,synced_property_name:`Host`},type:`relation`},relationPeople__Podcasts_Sound_Engineer:{init:!1,key:`relationPeople__Podcasts_Sound_Engineer`,notion:`Podcasts.Sound.Engineer`,relation:{database_id:`Podcasts`,synced_property_name:`Sound.Engineer`},type:`relation`},relationPeople__Shows_Cast:{init:!1,key:`relationPeople__Shows_Cast`,notion:`Shows.Cast`,relation:{database_id:`Shows`,synced_property_name:`Cast`},type:`relation`},relationPeople__Shows_Cast_Past:{init:!1,key:`relationPeople__Shows_Cast_Past`,notion:`Shows.Cast.Past`,relation:{database_id:`Shows`,synced_property_name:`Cast.Past`},type:`relation`},relationPeople__Shows_Crew:{init:!0,key:`relationPeople__Shows_Crew`,notion:`Shows.Crew`,relation:{database_id:`Shows`,synced_property_name:`Crew`},type:`relation`},relationPeople__Shows_Director:{init:!1,key:`relationPeople__Shows_Director`,notion:`Shows.Director`,relation:{database_id:`Shows`,synced_property_name:`Director`},type:`relation`},relationPeople__Shows_Director_Musical:{init:!1,key:`relationPeople__Shows_Director_Musical`,notion:`Shows.Director.Musical`,relation:{database_id:`Shows`,synced_property_name:`Director.Musical`},type:`relation`},relationPeople__Shows_Director_Technical:{init:!1,key:`relationPeople__Shows_Director_Technical`,notion:`Shows.Director.Technical`,relation:{database_id:`Shows`,synced_property_name:`Director.Technical`},type:`relation`},relationPeople__Shows_Producer:{init:!1,key:`relationPeople__Shows_Producer`,notion:`Shows.Producer`,relation:{database_id:`Shows`,synced_property_name:`Producer`},type:`relation`},relationPeople__Shows_Thanks:{init:!1,key:`relationPeople__Shows_Thanks`,notion:`Shows.Thanks`,relation:{database_id:`Shows`,synced_property_name:`Thanks`},type:`relation`},relationPeople__Shows_Writer:{init:!1,key:`relationPeople__Shows_Writer`,notion:`Shows.Writer`,relation:{database_id:`Shows`,synced_property_name:`Writer`},type:`relation`},relationPodcasts__Episodes:{init:!1,key:`relationPodcasts__Episodes`,notion:`Episodes`,relation:{database_id:`Episodes`,synced_property_name:`Podcasts`},type:`relation`},relationPodcasts__People_Host:{init:!0,key:`relationPodcasts__People_Host`,notion:`Host`,relation:{database_id:`People`,synced_property_name:`Podcasts.Host`},type:`relation`},relationPodcasts__People_Sound_Engineer:{init:!0,key:`relationPodcasts__People_Sound_Engineer`,notion:`Sound.Engineer`,relation:{database_id:`Podcasts`,synced_property_name:`Podcasts.Sound.Engineer`},type:`relation`},relationShows__Events:{init:!1,key:`relationShows__Events`,notion:`Events`,relation:{database_id:`Events`,synced_property_name:`Shows`},type:`relation`},relationShows__Events_Lineup:{init:!1,key:`relationShows__Events_Lineup`,notion:`Events.Lineup`,relation:{database_id:`Events`,synced_property_name:`Shows.Lineup`},type:`relation`},relationShows__People_Cast:{init:!0,key:`relationShows__People_Cast`,notion:`Cast`,relation:{database_id:`People`,synced_property_name:`Shows.Cast`},type:`relation`},relationShows__People_Cast_Past:{init:!0,key:`relationShows__People_Cast_Past`,notion:`Cast.Past`,relation:{database_id:`People`,synced_property_name:`Shows.Cast.Past`},type:`relation`},relationShows__People_Director:{init:!0,key:`relationShows__People_Director`,notion:`Director`,relation:{database_id:`People`,synced_property_name:`Shows.Director`},type:`relation`},relationShows__People_Director_Musical:{init:!0,key:`relationShows__People_Director_Musical`,notion:`Director.Musical`,relation:{database_id:`People`,synced_property_name:`Shows.Director.Musical`},type:`relation`},relationShows__People_Director_Technical:{init:!0,key:`relationShows__People_Director_Technical`,notion:`Director.Technical`,relation:{database_id:`People`,synced_property_name:`Shows.Director.Technical`},type:`relation`},relationShows__People_Producer:{init:!0,key:`relationShows__People_Producer`,notion:`Producer`,relation:{database_id:`People`,synced_property_name:`Shows.Producer`},type:`relation`},relationShows__People_Thanks:{init:!0,key:`relationShows__People_Thanks`,notion:`Thanks`,relation:{database_id:`People`,synced_property_name:`Shows.Thanks`},type:`relation`},relationShows__People_Writer:{init:!0,key:`relationShows__People_Writer`,notion:`Writer`,relation:{database_id:`People`,synced_property_name:`Shows.Writer`},type:`relation`},relationShows__Tags:{init:!0,key:`relationShows__Tags`,notion:`Tags`,relation:{database_id:`Tags`,synced_property_name:`Shows`},type:`relation`},relationShows_People_Crew:{init:!0,key:`relationShows_People_Crew`,notion:`Crew`,relation:{database_id:`People`,synced_property_name:`Shows.Crew`},type:`relation`},relationTags__Shows:{init:!1,key:`relationTags__Shows`,notion:`Shows`,relation:{database_id:`Shows`,synced_property_name:`Tags`},type:`relation`},relationVenues__Episodes:{init:!1,key:`relationVenues__Episodes`,notion:`Episodes`,relation:{database_id:`Episodes`,synced_property_name:`Venues`},type:`relation`},relationVenues__Events:{init:!1,key:`relationVenues__Events`,notion:`Events`,relation:{database_id:`Events`,synced_property_name:`Venues`},type:`relation`},rollupEpisodes__Podcasts:{init:!1,key:`rollupEpisodes__Podcasts`,notion:`Podcasts.Rollup`,rollup:{function:`show_original`,relation_property_name:`Podcasts`,rollup_property_id:`Title`},type:`rollup`},rollupEpisodes__PodcastsSlugs:{init:!1,key:`rollupEpisodes__PodcastsSlugs`,notion:`Podcasts.Slug.Rollup`,rollup:{function:`show_original`,relation_property_name:`Podcasts`,rollup_property_id:`Slug`},type:`rollup`},rollupEvents__People_Cast:{init:!1,key:`rollupEvents__People_Cast`,notion:`Cast.Rollup`,rollup:{function:`show_original`,relation_property_name:`Shows`,rollup_property_id:`Cast`},type:`rollup`},rollupEvents__People_Guest:{init:!1,key:`rollupEvents__People_Guest`,notion:`Guest.Rollup`,rollup:{function:`show_original`,relation_property_name:`Guest`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__People_Guest_Music:{init:!1,key:`rollupEvents__People_Guest_Music`,notion:`Guest.Music.Rollup`,rollup:{function:`show_original`,relation_property_name:`Guest.Music`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__People_Host:{init:!1,key:`rollupEvents__People_Host`,notion:`Host.Rollup`,rollup:{function:`show_original`,relation_property_name:`Host`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__Shows:{init:!1,key:`rollupEvents__Shows`,notion:`Shows.Rollup`,rollup:{function:`show_original`,relation_property_name:`Shows`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__Shows_Lineup:{init:!1,key:`rollupEvents__Shows_Lineup`,notion:`Shows.Lineup.Rollup`,rollup:{function:`show_original`,relation_property_name:`Shows.Lineup`,rollup_property_id:`Title`},type:`rollup`},rollupEvents__Venues:{init:!1,key:`rollupEvents__Venues`,notion:`Venues.Rollup`,rollup:{function:`show_original`,relation_property_name:`Venues`,rollup_property_id:`Title`},type:`rollup`},rollupPodcasts__Episodes:{init:!1,key:`rollupPodcasts__Episodes`,notion:`Episodes.Rollup`,rollup:{function:`show_original`,relation_property_name:`Episodes`,rollup_property_id:`Title`},type:`rollup`},rollupPodcasts__EpisodesSlugs:{init:!1,key:`rollupPodcasts__EpisodesSlugs`,notion:`Episodes.Slug.Rollup`,rollup:{function:`show_original`,relation_property_name:`Episodes`,rollup_property_id:`Slug`},type:`rollup`},rollupShows__People_Cast:{init:!1,key:`rollupShows__People_Cast`,notion:`Cast.Rollup`,rollup:{function:`show_original`,relation_property_name:`Cast`,rollup_property_id:`Title`},type:`rollup`},rollupShows__People_Cast_Past:{init:!1,key:`rollupShows__People_Cast_Past`,notion:`Cast.Past.Rollup`,rollup:{function:`show_original`,relation_property_name:`Cast.Past`,rollup_property_id:`Title`},type:`rollup`},rollupShows__People_Cast_Slug:{init:!1,key:`rollupShows__People_Cast_Slug`,notion:`Cast.Rollup.Slug`,rollup:{function:`show_original`,relation_property_name:`Cast`,rollup_property_name:`Slug`},type:`rollup`},rollupShows__People_Crew:{init:!1,key:`rollupShows__People_Crew`,notion:`Crew.Rollup`,rollup:{function:`show_original`,relation_property_name:`Crew`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Director:{init:!1,key:`rollupShows__People_Director`,notion:`Director.Rollup`,rollup:{function:`show_original`,relation_property_name:`Director`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Director_Musical:{init:!1,key:`rollupShows__People_Director_Musical`,notion:`Director.Musical.Rollup`,rollup:{function:`show_original`,relation_property_name:`Director.Musical`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Director_Technical:{init:!1,key:`rollupShows__People_Director_Technical`,notion:`Director.Technical.Rollup`,rollup:{function:`show_original`,relation_property_name:`Director.Technical`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Music:{init:!1,key:`rollupShows__People_Music`,notion:`Music.Rollup`,rollup:{function:`show_original`,relation_property_name:`Music`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Producer:{init:!1,key:`rollupShows__People_Producer`,notion:`Producer.Rollup`,rollup:{function:`show_original`,relation_property_name:`Producer`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Thanks:{init:!1,key:`rollupShows__People_Thanks`,notion:`Thanks.Rollup`,rollup:{function:`show_original`,relation_property_name:`Thanks`,rollup_property_name:`Title`},type:`rollup`},rollupShows__People_Writer:{init:!1,key:`rollupShows__People_Writer`,notion:`Writer.Rollup`,rollup:{function:`show_original`,relation_property_name:`Writer`,rollup_property_name:`Title`},type:`rollup`},rollupShows__Tags:{init:!1,key:`rollupShows__Tags`,notion:`Tags.Rollup`,rollup:{function:`show_original`,relation_property_name:`Tags`,rollup_property_id:`Title`},type:`rollup`},season:{format:`number`,init:!0,key:`season`,notion:`Season`,type:`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`},seoKeywords:{init:!0,key:`seoKeywords`,notion:`SEO.Keywords`,type:`rich_text`},slug:{init:!0,key:`slug`,notion:`Slug`,type:`rich_text`},socialApple:{init:!0,key:`socialApple`,notion:`Social.Apple`,type:`url`},socialFacebook:{init:!0,key:`socialFacebook`,notion:`Social.Facebook`,type:`url`},socialInstagram:{init:!0,key:`socialInstagram`,notion:`Social.Instagram`,type:`url`},socialSpotify:{init:!0,key:`socialSpotify`,notion:`Social.Spotify`,type:`url`},socialTwitter:{init:!0,key:`socialTwitter`,notion:`Social.Twitter`,type:`url`},socialWebsite:{init:!0,key:`socialWebsite`,notion:`Social.Website`,type:`url`},status:{init:!0,key:`status`,notion:`Status`,type:`select`},subtitle:{init:!0,key:`subtitle`,notion:`Subtitle`,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`}},i=[r.authors,r.datePublished,r.isIndexed,r.isPublished,r.slug,r.seoDescription,r.seoImage,r.seoImageDescription,r.seoKeywords,r.title],a=[...i],o=[...i,r.author,r.status,r.subtitle],s=[...i,r.dateRecorded,r.duration,r.episode,r.mp3,r.season,r.relationEpisodes__People_Guest,r.relationEpisodes__People_Sound_Engineer,r.relationEpisodes__People_Thanks,r.relationEpisodes__Podcasts,r.relationEpisodes__Venues,r.socialApple,r.socialSpotify,r.type,r.rollupEpisodes__Podcasts,r.rollupEpisodes__PodcastsSlugs],c=[...i,r.dateEvent,r.relationEvents__People_Guest_Music,r.relationEvents__People_Guest,r.relationEvents__People_Host,r.relationEvents__Shows_Lineup,r.relationEvents__Shows,r.relationEvents__Venues,r.socialFacebook,r.socialWebsite,r.ticketUrl,r.rollupEvents__People_Cast,r.rollupEvents__People_Guest_Music,r.rollupEvents__People_Guest,r.rollupEvents__People_Host,r.rollupEvents__Shows_Lineup,r.rollupEvents__Shows,r.rollupEvents__Venues],l=[...i],u=[...i,r.email,r.nameFirst,r.nameLast,r.namePreferred,r.relationPeople__Episodes_Guest,r.relationPeople__Episodes_Sound_Engineer,r.relationPeople__Episodes_Thanks,r.relationPeople__Events_Guest,r.relationPeople__Events_Guest_Music,r.relationPeople__Events_Host,r.relationPeople__Podcasts_Host,r.relationPeople__Podcasts_Sound_Engineer,r.relationPeople__Shows_Cast,r.relationPeople__Shows_Cast_Past,r.relationPeople__Shows_Director,r.relationPeople__Shows_Director_Musical,r.relationPeople__Shows_Director_Technical,r.relationPeople__Shows_Producer,r.relationPeople__Shows_Thanks,r.relationPeople__Shows_Writer],d=[...i,r.categories,r.explicit,r.podcastAuthor,r.podcastAuthorEmail,r.relationPodcasts__People_Host,r.relationPodcasts__People_Sound_Engineer,r.socialApple,r.socialSpotify,r.type,r.relationPodcasts__Episodes,r.rollupPodcasts__Episodes,r.rollupPodcasts__EpisodesSlugs],f=[...i],p=[...i,r.relationShows__People_Cast,r.relationShows__People_Cast_Past,r.relationShows__People_Director,r.relationShows__People_Director_Musical,r.relationShows__People_Director_Technical,r.relationShows__People_Producer,r.relationShows__People_Thanks,r.relationShows__People_Writer,r.relationShows__Tags,r.socialFacebook,r.socialInstagram,r.socialTwitter,r.socialWebsite,r.relationShows__Events,r.relationShows__Events_Lineup,r.rollupShows__People_Cast,r.rollupShows__People_Cast_Slug,r.rollupShows__People_Cast_Past,r.rollupShows__People_Crew,r.rollupShows__People_Director,r.rollupShows__People_Director_Musical,r.rollupShows__People_Director_Technical,r.rollupShows__People_Music,r.rollupShows__People_Producer,r.rollupShows__People_Thanks,r.rollupShows__People_Writer,r.rollupShows__Tags],m=[...i,r.addressCity,r.addressLatitude,r.addressLongitude,r.addressNeighborhood,r.addressState,r.addressStreet,r.addressZipCode,r.phoneNumber,r.socialFacebook,r.socialInstagram,r.socialTwitter,r.socialWebsite,r.relationVenues__Episodes,r.relationVenues__Events],h={BLOG:e(a,{init:!0}),BOOKS:e(o,{init:!0}),EPISODES:e(s,{init:!0}),EVENTS:e(c,{init:!0}),PAGES:e(l,{init:!0}),PEOPLE:e(u,{init:!0}),PODCASTS:e(d,{init:!0}),SEO:e(f,{init:!0}),SHOWS:e(p,{init:!0}),VENUES:e(m,{init:!0})},g={BLOG:a.map(e=>n(e)),BOOKS:o.map(e=>n(e)),EPISODES:s.map(e=>n(e)),EVENTS:c.map(e=>n(e)),PAGES:l.map(e=>n(e)),PEOPLE:u.map(e=>n(e)),PODCASTS:d.map(e=>n(e)),SEO:f.map(e=>n(e)),SHOWS:p.map(e=>n(e)),VENUES:m.map(e=>n(e))},_=t(r,e=>n(e)),v=new Date().toISOString(),y={dateBefore:{date:{before:v},property:r.datePublished.notion},dateOnOrAfter:{date:{on_or_after:v},property:r.datePublished.notion},published:{checkbox:{equals:!1},property:r.isPublished.notion},slug:{property:r.slug.notion,rich_text:{equals:``}}},b=[`LISTING`,`LISTING_BY_DATE`,`SLUG`,`SLUG_BY_ROUTE`],x=Object.assign({},...b.flatMap(e=>({[e]:e})));export{x as DATA_TYPES,h as INIT,g as LOOKUP,r as PROPERTIES,_ as PROPERTIES_LOOKUP,y as QUERIES,b as getDataTypes};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/constants/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["_filter","_map"],"sources":["../../src/constants/index.ts"],"sourcesContent":["import type { DataTypes, DataTypesObject, Property } from '../schema/index'\n\nimport { filter as _filter, map as _map } from 'lodash-es'\n\nconst getLookup = ({ key, notion, type }) => ({\n key,\n notion,\n type,\n})\n\n/**\n * @note\n * Valid Notion Property Types mapped to Normalizer w/ init info\n *\n * *********************\n * RELATIONS and ROLLUPS\n * *********************\n *\n * For each RELATION or ROLLUP there can be only one init\n * During the build process this happens in waves\n *\n *\n */\nconst PROPERTIES: Record<string, Property> = {\n addressCity: {\n init: true,\n key: 'addressCity',\n notion: 'Address.City',\n type: 'rich_text',\n },\n addressLatitude: {\n format: 'number',\n init: true,\n key: 'addressLatitude',\n notion: 'Address.Latitude',\n type: 'number',\n },\n addressLongitude: {\n format: 'number',\n init: true,\n key: 'addressLongitude',\n notion: 'Address.Longitude',\n type: 'number',\n },\n addressNeighborhood: {\n init: true,\n key: 'addressNeighborhood',\n notion: 'Address.Neighborhood',\n type: 'rich_text',\n },\n addressState: {\n init: true,\n key: 'addressState',\n notion: 'Address.State',\n type: 'select',\n },\n addressStreet: {\n init: true,\n key: 'addressStreet',\n notion: 'Address.Street',\n type: 'rich_text',\n },\n addressZipCode: {\n format: 'number',\n init: true,\n key: 'addressZipCode',\n notion: 'Address.ZipCode',\n type: 'number',\n },\n author: {\n init: true,\n key: 'author',\n notion: 'Author',\n type: 'rich_text',\n },\n authors: {\n init: true,\n key: 'authors',\n notion: 'Authors',\n type: 'people',\n },\n categories: {\n init: true,\n key: 'categories',\n notion: 'Categories',\n type: 'multi_select',\n },\n dateCreated: {\n init: false,\n key: 'dateCreated',\n notion: 'Date.Created',\n type: 'created_time',\n },\n dateEdited: {\n init: false,\n key: 'dateEdited',\n notion: 'Date.Edited',\n type: 'last_edited_time',\n },\n dateEvent: {\n init: true,\n key: 'dateEvent',\n notion: 'Date.Event',\n type: 'date',\n },\n datePublished: {\n init: true,\n key: 'datePublished',\n notion: 'Date.Published',\n type: 'date',\n },\n dateRecorded: {\n init: true,\n key: 'dateRecorded',\n notion: 'Date.Recorded',\n type: 'date',\n },\n duration: {\n init: true,\n key: 'duration',\n notion: 'Duration',\n type: 'rich_text',\n },\n email: {\n init: true,\n key: 'email',\n notion: 'Email',\n type: 'rich_text',\n },\n episode: {\n format: 'number',\n init: true,\n key: 'episode',\n notion: 'Episode',\n type: 'number',\n },\n explicit: {\n init: true,\n key: 'explicit',\n notion: 'Explicit',\n type: 'checkbox',\n },\n festivals: {\n init: true,\n key: 'festivals',\n notion: 'Festival',\n type: 'multi_select',\n },\n food: {\n init: true,\n key: 'food',\n notion: 'Food',\n type: 'rich_text',\n },\n isIndexed: {\n init: true,\n key: 'isIndexed',\n notion: 'Is.Indexed',\n type: 'checkbox',\n },\n isPublished: {\n init: true,\n key: 'isPublished',\n notion: 'Is.Published',\n type: 'checkbox',\n },\n mp3: {\n init: true,\n key: 'mp3',\n notion: 'MP3',\n type: 'files',\n },\n name: {\n init: true,\n key: 'name',\n notion: 'Name',\n type: 'rich_text',\n },\n nameFirst: {\n init: true,\n key: 'nameFirst',\n notion: 'Name.First',\n type: 'rich_text',\n },\n nameLast: {\n init: true,\n key: 'nameLast',\n notion: 'Name.Last',\n type: 'rich_text',\n },\n namePreferred: {\n init: true,\n key: 'namePreferred',\n notion: 'Name.Preferred',\n type: 'rich_text',\n },\n phoneNumber: {\n init: true,\n key: 'phoneNumber',\n notion: 'Phone',\n type: 'rich_text',\n },\n podcastAuthor: {\n init: true,\n key: 'podcastAuthor',\n notion: 'Author',\n type: 'rich_text',\n },\n podcastAuthorEmail: {\n init: true,\n key: 'podcastAuthorEmail',\n notion: 'Author.Email',\n type: 'rich_text',\n },\n relationEpisodes__People_Guest: {\n init: true,\n key: 'relationEpisodes__People_Guest',\n notion: 'Guest',\n relation: {\n database_id: 'People',\n synced_property_name: 'Episodes.Guest',\n },\n type: 'relation',\n },\n relationEpisodes__People_Sound_Engineer: {\n init: true,\n key: 'relationEpisodes__People_Sound_Engineer',\n notion: 'Sound.Engineer',\n relation: {\n database_id: 'People',\n synced_property_name: 'Episodes.Sound.Engineer',\n },\n type: 'relation',\n },\n relationEpisodes__People_Thanks: {\n init: true,\n key: 'relationEpisodes__People_Thanks',\n notion: 'Thanks',\n relation: {\n database_id: 'People',\n synced_property_name: 'Episodes.Thanks',\n },\n type: 'relation',\n },\n /**\n * @relation\n */\n relationEpisodes__Podcasts: {\n init: true,\n key: 'relationEpisodes__Podcasts',\n notion: 'Podcasts',\n relation: {\n database_id: 'Podcasts',\n synced_property_name: 'Episodes',\n },\n type: 'relation',\n },\n relationEpisodes__Venues: {\n init: true,\n key: 'relationEpisodes__Venues',\n notion: 'Venues',\n relation: {\n database_id: 'Venues',\n synced_property_name: 'Episodes',\n },\n type: 'relation',\n },\n relationEvents__People_Guest: {\n init: true,\n key: 'relationEvents__People_Guest',\n notion: 'Guest',\n relation: {\n database_id: 'People',\n synced_property_name: 'Events.Guest',\n },\n type: 'relation',\n },\n\n relationEvents__People_Guest_Music: {\n init: true,\n key: 'relationEvents__People_Guest_Music',\n notion: 'Guest.Music',\n relation: {\n database_id: 'People',\n synced_property_name: 'Events.Guest.Music',\n },\n type: 'relation',\n },\n relationEvents__People_Host: {\n init: true,\n key: 'relationEvents__People_Host',\n notion: 'Host',\n relation: {\n database_id: 'People',\n synced_property_name: 'Events.Host',\n },\n type: 'relation',\n },\n relationEvents__Shows: {\n init: true,\n key: 'relationEvents__Shows',\n notion: 'Shows',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Events',\n },\n type: 'relation',\n },\n relationEvents__Shows_Lineup: {\n init: true,\n key: 'relationEvents__Shows_Lineup',\n notion: 'Shows.Lineup',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Events.Lineup',\n },\n type: 'relation',\n },\n relationEvents__Venues: {\n init: true,\n key: 'relationEvents__Venues',\n notion: 'Venues',\n relation: {\n database_id: 'Venues',\n synced_property_name: 'Events',\n },\n type: 'relation',\n },\n relationPeople__Episodes_Guest: {\n init: false,\n key: 'relationPeople__Episodes_Guest',\n notion: 'Episodes.Guest',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Guest',\n },\n type: 'relation',\n },\n relationPeople__Episodes_Sound_Engineer: {\n init: false,\n key: 'relationPeople__Episodes_Sound_Engineer',\n notion: 'Episodes.Sound.Engineer',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Sound.Engineer',\n },\n type: 'relation',\n },\n relationPeople__Episodes_Thanks: {\n init: false,\n key: 'relationPeople__Episodes_Thanks',\n notion: 'Episodes.Thanks',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Thanks',\n },\n type: 'relation',\n },\n relationPeople__Events_Guest: {\n init: false,\n key: 'relationEvents__People_Guest',\n notion: 'Events.Guest',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Guest',\n },\n type: 'relation',\n },\n relationPeople__Events_Guest_Music: {\n init: false,\n key: 'relationPeople__Events_Guest_Music',\n notion: 'Events.Guest.Music',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Guest.Music',\n },\n type: 'relation',\n },\n relationPeople__Events_Host: {\n init: false,\n key: 'relationPeople__Events_Host',\n notion: 'Events.Host',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Host',\n },\n type: 'relation',\n },\n relationPeople__Podcasts_Host: {\n init: false,\n key: 'relationPeople__Podcasts_Host',\n notion: 'Podcasts.Host',\n relation: {\n database_id: 'Podcasts',\n synced_property_name: 'Host',\n },\n type: 'relation',\n },\n relationPeople__Podcasts_Sound_Engineer: {\n init: false,\n key: 'relationPeople__Podcasts_Sound_Engineer',\n notion: 'Podcasts.Sound.Engineer',\n relation: {\n database_id: 'Podcasts',\n synced_property_name: 'Sound.Engineer',\n },\n type: 'relation',\n },\n relationPeople__Shows_Cast: {\n init: false,\n key: 'relationPeople__Shows_Cast',\n notion: 'Shows.Cast',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Cast',\n },\n type: 'relation',\n },\n relationPeople__Shows_Cast_Past: {\n init: false,\n key: 'relationPeople__Shows_Cast_Past',\n notion: 'Shows.Cast.Past',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Cast.Past',\n },\n type: 'relation',\n },\n relationPeople__Shows_Crew: {\n init: true,\n key: 'relationPeople__Shows_Crew',\n notion: 'Shows.Crew',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Crew',\n },\n type: 'relation',\n },\n relationPeople__Shows_Director: {\n init: false,\n key: 'relationPeople__Shows_Director',\n notion: 'Shows.Director',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Director',\n },\n type: 'relation',\n },\n relationPeople__Shows_Director_Musical: {\n init: false,\n key: 'relationPeople__Shows_Director_Musical',\n notion: 'Shows.Director.Musical',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Director.Musical',\n },\n type: 'relation',\n },\n relationPeople__Shows_Director_Technical: {\n init: false,\n key: 'relationPeople__Shows_Director_Technical',\n notion: 'Shows.Director.Technical',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Director.Technical',\n },\n type: 'relation',\n },\n relationPeople__Shows_Producer: {\n init: false,\n key: 'relationPeople__Shows_Producer',\n notion: 'Shows.Producer',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Producer',\n },\n type: 'relation',\n },\n relationPeople__Shows_Thanks: {\n init: false,\n key: 'relationPeople__Shows_Thanks',\n notion: 'Shows.Thanks',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Thanks',\n },\n type: 'relation',\n },\n relationPeople__Shows_Writer: {\n init: false,\n key: 'relationPeople__Shows_Writer',\n notion: 'Shows.Writer',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Writer',\n },\n type: 'relation',\n },\n relationPodcasts__Episodes: {\n init: false,\n key: 'relationPodcasts__Episodes',\n notion: 'Episodes',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Podcasts',\n },\n type: 'relation',\n },\n relationPodcasts__People_Host: {\n init: true,\n key: 'relationPodcasts__People_Host',\n notion: 'Host',\n relation: {\n database_id: 'People',\n synced_property_name: 'Podcasts.Host',\n },\n type: 'relation',\n },\n relationPodcasts__People_Sound_Engineer: {\n init: true,\n key: 'relationPodcasts__People_Sound_Engineer',\n notion: 'Sound.Engineer',\n relation: {\n database_id: 'Podcasts',\n synced_property_name: 'Podcasts.Sound.Engineer',\n },\n type: 'relation',\n },\n relationShows__Events: {\n init: false,\n key: 'relationShows__Events',\n notion: 'Events',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Shows',\n },\n type: 'relation',\n },\n relationShows__Events_Lineup: {\n init: false,\n key: 'relationShows__Events_Lineup',\n notion: 'Events.Lineup',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Shows.Lineup',\n },\n type: 'relation',\n },\n relationShows__People_Cast: {\n init: true,\n key: 'relationShows__People_Cast',\n notion: 'Cast',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Cast',\n },\n type: 'relation',\n },\n relationShows__People_Cast_Past: {\n init: true,\n key: 'relationShows__People_Cast_Past',\n notion: 'Cast.Past',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Cast.Past',\n },\n type: 'relation',\n },\n relationShows__People_Director: {\n init: true,\n key: 'relationShows__People_Director',\n notion: 'Director',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Director',\n },\n type: 'relation',\n },\n relationShows__People_Director_Musical: {\n init: true,\n key: 'relationShows__People_Director_Musical',\n notion: 'Director.Musical',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Director.Musical',\n },\n type: 'relation',\n },\n relationShows__People_Director_Technical: {\n init: true,\n key: 'relationShows__People_Director_Technical',\n notion: 'Director.Technical',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Director.Technical',\n },\n type: 'relation',\n },\n relationShows__People_Producer: {\n init: true,\n key: 'relationShows__People_Producer',\n notion: 'Producer',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Producer',\n },\n type: 'relation',\n },\n relationShows__People_Thanks: {\n init: true,\n key: 'relationShows__People_Thanks',\n notion: 'Thanks',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Thanks',\n },\n type: 'relation',\n },\n relationShows__People_Writer: {\n init: true,\n key: 'relationShows__People_Writer',\n notion: 'Writer',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Writer',\n },\n type: 'relation',\n },\n relationShows__Tags: {\n init: true,\n key: 'relationShows__Tags',\n notion: 'Tags',\n relation: {\n database_id: 'Tags',\n synced_property_name: 'Shows',\n },\n type: 'relation',\n },\n relationShows_People_Crew: {\n init: true,\n key: 'relationShows_People_Crew',\n notion: 'Crew',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Crew',\n },\n type: 'relation',\n },\n relationTags__Shows: {\n init: false,\n key: 'relationTags__Shows',\n notion: 'Shows',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Tags',\n },\n type: 'relation',\n },\n relationVenues__Episodes: {\n init: false,\n key: 'relationVenues__Episodes',\n notion: 'Episodes',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Venues',\n },\n type: 'relation',\n },\n relationVenues__Events: {\n init: false,\n key: 'relationVenues__Events',\n notion: 'Events',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Venues',\n },\n type: 'relation',\n },\n rollupEpisodes__Podcasts: {\n init: false,\n key: 'rollupEpisodes__Podcasts',\n notion: 'Podcasts.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Podcasts',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEpisodes__PodcastsSlugs: {\n init: false,\n key: 'rollupEpisodes__PodcastsSlugs',\n notion: 'Podcasts.Slug.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Podcasts',\n rollup_property_id: 'Slug',\n },\n type: 'rollup',\n },\n //\n rollupEvents__People_Cast: {\n init: false,\n key: 'rollupEvents__People_Cast',\n notion: 'Cast.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Shows',\n rollup_property_id: 'Cast',\n },\n type: 'rollup',\n },\n rollupEvents__People_Guest: {\n init: false,\n key: 'rollupEvents__People_Guest',\n notion: 'Guest.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Guest',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__People_Guest_Music: {\n init: false,\n key: 'rollupEvents__People_Guest_Music',\n notion: 'Guest.Music.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Guest.Music',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__People_Host: {\n init: false,\n key: 'rollupEvents__People_Host',\n notion: 'Host.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Host',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__Shows: {\n init: false,\n key: 'rollupEvents__Shows',\n notion: 'Shows.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Shows',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__Shows_Lineup: {\n init: false,\n key: 'rollupEvents__Shows_Lineup',\n notion: 'Shows.Lineup.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Shows.Lineup',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__Venues: {\n init: false,\n key: 'rollupEvents__Venues',\n notion: 'Venues.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Venues',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupPodcasts__Episodes: {\n init: false,\n key: 'rollupPodcasts__Episodes',\n notion: 'Episodes.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Episodes',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupPodcasts__EpisodesSlugs: {\n init: false,\n key: 'rollupPodcasts__EpisodesSlugs',\n notion: 'Episodes.Slug.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Episodes',\n rollup_property_id: 'Slug',\n },\n type: 'rollup',\n },\n /**\n * @rollup\n */\n rollupShows__People_Cast: {\n init: false,\n key: 'rollupShows__People_Cast',\n notion: 'Cast.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Cast',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Cast_Past: {\n init: false,\n key: 'rollupShows__People_Cast_Past',\n notion: 'Cast.Past.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Cast.Past',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Cast_Slug: {\n init: false,\n key: 'rollupShows__People_Cast_Slug',\n notion: 'Cast.Rollup.Slug',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Cast',\n rollup_property_name: 'Slug',\n },\n type: 'rollup',\n },\n rollupShows__People_Crew: {\n init: false,\n key: 'rollupShows__People_Crew',\n notion: 'Crew.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Crew',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Director: {\n init: false,\n key: 'rollupShows__People_Director',\n notion: 'Director.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Director',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Director_Musical: {\n init: false,\n key: 'rollupShows__People_Director_Musical',\n notion: 'Director.Musical.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Director.Musical',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Director_Technical: {\n init: false,\n key: 'rollupShows__People_Director_Technical',\n notion: 'Director.Technical.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Director.Technical',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Music: {\n init: false,\n key: 'rollupShows__People_Music',\n notion: 'Music.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Music',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Producer: {\n init: false,\n key: 'rollupShows__People_Producer',\n notion: 'Producer.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Producer',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Thanks: {\n init: false,\n key: 'rollupShows__People_Thanks',\n notion: 'Thanks.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Thanks',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Writer: {\n init: false,\n key: 'rollupShows__People_Writer',\n notion: 'Writer.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Writer',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__Tags: {\n init: false,\n key: 'rollupShows__Tags',\n notion: 'Tags.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Tags',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n season: {\n format: 'number',\n init: true,\n key: 'season',\n notion: 'Season',\n type: 'number',\n },\n seoDescription: {\n init: true,\n key: 'seoDescription',\n notion: 'SEO.Description',\n type: 'rich_text',\n },\n seoImage: {\n init: true,\n key: 'seoImage',\n notion: 'SEO.Image',\n type: 'files',\n },\n seoImageDescription: {\n init: true,\n key: 'seoImageDescription',\n notion: 'SEO.Image.Description',\n type: 'rich_text',\n },\n seoKeywords: {\n init: true,\n key: 'seoKeywords',\n notion: 'SEO.Keywords',\n type: 'rich_text',\n },\n slug: {\n init: true,\n key: 'slug',\n notion: 'Slug',\n type: 'rich_text',\n },\n socialApple: {\n init: true,\n key: 'socialApple',\n notion: 'Social.Apple',\n type: 'url',\n },\n socialFacebook: {\n init: true,\n key: 'socialFacebook',\n notion: 'Social.Facebook',\n type: 'url',\n },\n socialInstagram: {\n init: true,\n key: 'socialInstagram',\n notion: 'Social.Instagram',\n type: 'url',\n },\n socialSpotify: {\n init: true,\n key: 'socialSpotify',\n notion: 'Social.Spotify',\n type: 'url',\n },\n socialTwitter: {\n init: true,\n key: 'socialTwitter',\n notion: 'Social.Twitter',\n type: 'url',\n },\n socialWebsite: {\n init: true,\n key: 'socialWebsite',\n notion: 'Social.Website',\n type: 'url',\n },\n status: {\n init: true,\n key: 'status',\n notion: 'Status',\n type: 'select',\n },\n subtitle: {\n init: true,\n key: 'subtitle',\n notion: 'Subtitle',\n type: 'rich_text',\n },\n ticketUrl: {\n init: true,\n key: 'ticketUrl',\n notion: 'TicketUrl',\n type: 'url',\n },\n title: {\n init: true,\n key: 'title',\n notion: 'Title',\n type: 'title',\n },\n type: {\n init: true,\n key: 'type',\n notion: 'Type',\n type: 'select',\n },\n}\n\n/**\n * @note\n * Limit Each Database (Route Type) to _only_\n * have valid data for its schema\n */\n\nconst PROPERTIES_DEFAULT = [\n PROPERTIES.authors,\n // PROPERTIES.dateCreated,\n PROPERTIES.datePublished,\n PROPERTIES.isIndexed,\n PROPERTIES.isPublished,\n PROPERTIES.slug,\n PROPERTIES.seoDescription,\n PROPERTIES.seoImage,\n PROPERTIES.seoImageDescription,\n PROPERTIES.seoKeywords,\n PROPERTIES.title,\n]\n\nconst BLOG = [...PROPERTIES_DEFAULT]\n\nconst BOOKS = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.author,\n PROPERTIES.status,\n PROPERTIES.subtitle,\n]\n\nconst EPISODES = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.dateRecorded,\n PROPERTIES.duration,\n PROPERTIES.episode,\n PROPERTIES.mp3,\n PROPERTIES.season,\n PROPERTIES.relationEpisodes__People_Guest,\n PROPERTIES.relationEpisodes__People_Sound_Engineer,\n PROPERTIES.relationEpisodes__People_Thanks,\n PROPERTIES.relationEpisodes__Podcasts,\n PROPERTIES.relationEpisodes__Venues,\n PROPERTIES.socialApple,\n PROPERTIES.socialSpotify,\n PROPERTIES.type,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n // PROPERTIES.rollupEpisodes__People_Guest,\n // PROPERTIES.rollupEpisodes__People_Sound_Engineer,\n // PROPERTIES.rollupEpisodes__People_Thanks,\n PROPERTIES.rollupEpisodes__Podcasts,\n PROPERTIES.rollupEpisodes__PodcastsSlugs,\n // PROPERTIES.rollupEpisodes__Venues,\n]\n\nconst EVENTS = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.dateEvent,\n PROPERTIES.relationEvents__People_Guest_Music,\n PROPERTIES.relationEvents__People_Guest,\n PROPERTIES.relationEvents__People_Host,\n PROPERTIES.relationEvents__Shows_Lineup,\n PROPERTIES.relationEvents__Shows,\n PROPERTIES.relationEvents__Venues,\n PROPERTIES.socialFacebook,\n PROPERTIES.socialWebsite,\n PROPERTIES.ticketUrl,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.rollupEvents__People_Cast,\n PROPERTIES.rollupEvents__People_Guest_Music,\n PROPERTIES.rollupEvents__People_Guest,\n PROPERTIES.rollupEvents__People_Host,\n PROPERTIES.rollupEvents__Shows_Lineup,\n PROPERTIES.rollupEvents__Shows,\n PROPERTIES.rollupEvents__Venues,\n /**\n * -------------------------------------\n */\n]\n\nconst PAGES = [...PROPERTIES_DEFAULT]\n\nconst PEOPLE = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.email,\n PROPERTIES.nameFirst,\n PROPERTIES.nameLast,\n PROPERTIES.namePreferred,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.relationPeople__Episodes_Guest,\n PROPERTIES.relationPeople__Episodes_Sound_Engineer,\n PROPERTIES.relationPeople__Episodes_Thanks,\n PROPERTIES.relationPeople__Events_Guest,\n PROPERTIES.relationPeople__Events_Guest_Music,\n PROPERTIES.relationPeople__Events_Host,\n PROPERTIES.relationPeople__Podcasts_Host,\n PROPERTIES.relationPeople__Podcasts_Sound_Engineer,\n PROPERTIES.relationPeople__Shows_Cast,\n PROPERTIES.relationPeople__Shows_Cast_Past,\n PROPERTIES.relationPeople__Shows_Director,\n PROPERTIES.relationPeople__Shows_Director_Musical,\n PROPERTIES.relationPeople__Shows_Director_Technical,\n PROPERTIES.relationPeople__Shows_Producer,\n PROPERTIES.relationPeople__Shows_Thanks,\n PROPERTIES.relationPeople__Shows_Writer,\n /**\n * -------------------------------------\n */\n]\n\nconst PODCASTS = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.categories,\n PROPERTIES.explicit,\n PROPERTIES.podcastAuthor,\n PROPERTIES.podcastAuthorEmail,\n PROPERTIES.relationPodcasts__People_Host,\n PROPERTIES.relationPodcasts__People_Sound_Engineer,\n PROPERTIES.socialApple,\n PROPERTIES.socialSpotify,\n PROPERTIES.type,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.relationPodcasts__Episodes,\n PROPERTIES.rollupPodcasts__Episodes,\n PROPERTIES.rollupPodcasts__EpisodesSlugs,\n /**\n * -------------------------------------\n */\n]\n\nconst SEO = [...PROPERTIES_DEFAULT]\n\nconst SHOWS = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.relationShows__People_Cast,\n PROPERTIES.relationShows__People_Cast_Past,\n PROPERTIES.relationShows__People_Director,\n PROPERTIES.relationShows__People_Director_Musical,\n PROPERTIES.relationShows__People_Director_Technical,\n PROPERTIES.relationShows__People_Producer,\n PROPERTIES.relationShows__People_Thanks,\n PROPERTIES.relationShows__People_Writer,\n PROPERTIES.relationShows__Tags,\n PROPERTIES.socialFacebook,\n PROPERTIES.socialInstagram,\n PROPERTIES.socialTwitter,\n PROPERTIES.socialWebsite,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.relationShows__Events,\n PROPERTIES.relationShows__Events_Lineup,\n PROPERTIES.rollupShows__People_Cast,\n PROPERTIES.rollupShows__People_Cast_Slug,\n PROPERTIES.rollupShows__People_Cast_Past,\n PROPERTIES.rollupShows__People_Crew,\n PROPERTIES.rollupShows__People_Director,\n PROPERTIES.rollupShows__People_Director_Musical,\n PROPERTIES.rollupShows__People_Director_Technical,\n PROPERTIES.rollupShows__People_Music,\n PROPERTIES.rollupShows__People_Producer,\n PROPERTIES.rollupShows__People_Thanks,\n PROPERTIES.rollupShows__People_Writer,\n PROPERTIES.rollupShows__Tags,\n /**\n * -------------------------------------\n */\n]\n\nconst VENUES = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.addressCity,\n PROPERTIES.addressLatitude,\n PROPERTIES.addressLongitude,\n PROPERTIES.addressNeighborhood,\n PROPERTIES.addressState,\n PROPERTIES.addressStreet,\n PROPERTIES.addressZipCode,\n PROPERTIES.phoneNumber,\n PROPERTIES.socialFacebook,\n PROPERTIES.socialInstagram,\n PROPERTIES.socialTwitter,\n PROPERTIES.socialWebsite,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.relationVenues__Episodes,\n PROPERTIES.relationVenues__Events,\n /**\n * -------------------------------------\n */\n]\n\n/**\n * @note\n * hyper-specific for the init / see (secret/create/init)\n *\n * 0. Create DB w/o Relations|Rollups\n * 1. Update DB w/ Relations\n * 2. Update DB w/ Relation Naming Preference\n * 3. Update DB w/ Rollups\n */\nconst INIT = {\n BLOG: _filter(BLOG, { init: true }),\n BOOKS: _filter(BOOKS, { init: true }),\n EPISODES: _filter(EPISODES, { init: true }),\n EVENTS: _filter(EVENTS, { init: true }),\n PAGES: _filter(PAGES, { init: true }),\n PEOPLE: _filter(PEOPLE, { init: true }),\n PODCASTS: _filter(PODCASTS, { init: true }),\n SEO: _filter(SEO, { init: true }),\n SHOWS: _filter(SHOWS, { init: true }),\n VENUES: _filter(VENUES, { init: true }),\n}\n\nconst LOOKUP = {\n BLOG: BLOG.map((item) => getLookup(item)),\n BOOKS: BOOKS.map((item) => getLookup(item)),\n EPISODES: EPISODES.map((item) => getLookup(item)),\n EVENTS: EVENTS.map((item) => getLookup(item)),\n PAGES: PAGES.map((item) => getLookup(item)),\n PEOPLE: PEOPLE.map((item) => getLookup(item)),\n PODCASTS: PODCASTS.map((item) => getLookup(item)),\n SEO: SEO.map((item) => getLookup(item)),\n SHOWS: SHOWS.map((item) => getLookup(item)),\n VENUES: VENUES.map((item) => getLookup(item)),\n}\n\nconst PROPERTIES_LOOKUP = _map(PROPERTIES, (item) => getLookup(item))\n\nconst dateTimestamp = new Date().toISOString()\n// const dateTimestampBlog = new Date('2020-01-01').toISOString()\n\n/**\n * @note(notion) right now we are only using `QUERIES.slug`\n */\nconst QUERIES = {\n // @todo(notion) Published or Event?\n dateBefore: {\n date: {\n before: dateTimestamp,\n },\n property: PROPERTIES.datePublished.notion,\n },\n // @todo(notion) Published or Event?\n dateOnOrAfter: {\n date: {\n on_or_after: dateTimestamp,\n },\n property: PROPERTIES.datePublished.notion,\n },\n published: {\n checkbox: {\n equals: false,\n },\n property: PROPERTIES.isPublished.notion,\n },\n slug: {\n property: PROPERTIES.slug.notion,\n rich_text: {\n equals: '',\n },\n },\n}\n\nconst LISTING: DataTypes = 'LISTING'\nconst LISTING_BY_DATE: DataTypes = 'LISTING_BY_DATE'\nconst SLUG: DataTypes = 'SLUG'\nconst SLUG_BY_ROUTE: DataTypes = 'SLUG_BY_ROUTE'\n\nconst getDataTypes: DataTypes[] = [LISTING, LISTING_BY_DATE, SLUG, SLUG_BY_ROUTE]\n\nconst DATA_TYPES: DataTypesObject = Object.assign(\n {},\n // @ts-ignore\n ...getDataTypes.flatMap((d) => ({ [d]: d })),\n)\n\nexport {\n DATA_TYPES,\n getDataTypes,\n INIT,\n LOOKUP,\n PROPERTIES,\n PROPERTIES_LOOKUP,\n QUERIES,\n}\n"],"mappings":"0EAIA,MAAM,GAAa,CAAE,MAAK,SAAQ,WAAY,CAC5C,MACA,SACA,OACD,E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AS,EAAU,EAAK,CAAC,CAC9C,CAEK,EAAoBC,EAAK,EAAa,GAAS,EAAU,EAAK,CAAC,CAE/D,EAAgB,IAAI,MAAM,CAAC,aAAa,CAMxC,EAAU,CAEd,WAAY,CACV,KAAM,CACJ,OAAQ,EACT,CACD,SAAU,EAAW,cAAc,OACpC,CAED,cAAe,CACb,KAAM,CACJ,YAAa,EACd,CACD,SAAU,EAAW,cAAc,OACpC,CACD,UAAW,CACT,SAAU,CACR,OAAQ,GACT,CACD,SAAU,EAAW,YAAY,OAClC,CACD,KAAM,CACJ,SAAU,EAAW,KAAK,OAC1B,UAAW,CACT,OAAQ,GACT,CACF,CACF,CAOK,EAA4B,CAAC,UAAS,kBAAiB,OAAM,gBAAc,CAE3E,EAA8B,OAAO,OACzC,EAAE,CAEF,GAAG,EAAa,QAAS,IAAO,EAAG,GAAI,EAAG,EAAE,CAC7C"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["_filter","_map"],"sources":["../../src/constants/index.ts"],"sourcesContent":["import type { DataTypes, DataTypesObject, Property } from '../schema/index'\n\nimport { filter as _filter, map as _map } from 'lodash-es'\n\nconst getLookup = ({ key, notion, type }) => ({\n key,\n notion,\n type,\n})\n\n/**\n * @note\n * Valid Notion Property Types mapped to Normalizer w/ init info\n *\n * *********************\n * RELATIONS and ROLLUPS\n * *********************\n *\n * For each RELATION or ROLLUP there can be only one init\n * During the build process this happens in waves\n *\n *\n */\nconst PROPERTIES: Record<string, Property> = {\n addressCity: {\n init: true,\n key: 'addressCity',\n notion: 'Address.City',\n type: 'rich_text',\n },\n addressLatitude: {\n format: 'number',\n init: true,\n key: 'addressLatitude',\n notion: 'Address.Latitude',\n type: 'number',\n },\n addressLongitude: {\n format: 'number',\n init: true,\n key: 'addressLongitude',\n notion: 'Address.Longitude',\n type: 'number',\n },\n addressNeighborhood: {\n init: true,\n key: 'addressNeighborhood',\n notion: 'Address.Neighborhood',\n type: 'rich_text',\n },\n addressState: {\n init: true,\n key: 'addressState',\n notion: 'Address.State',\n type: 'select',\n },\n addressStreet: {\n init: true,\n key: 'addressStreet',\n notion: 'Address.Street',\n type: 'rich_text',\n },\n addressZipCode: {\n format: 'number',\n init: true,\n key: 'addressZipCode',\n notion: 'Address.ZipCode',\n type: 'number',\n },\n author: {\n init: true,\n key: 'author',\n notion: 'Author',\n type: 'rich_text',\n },\n authors: {\n init: true,\n key: 'authors',\n notion: 'Authors',\n type: 'people',\n },\n categories: {\n init: true,\n key: 'categories',\n notion: 'Categories',\n type: 'multi_select',\n },\n dateCreated: {\n init: false,\n key: 'dateCreated',\n notion: 'Date.Created',\n type: 'created_time',\n },\n dateEdited: {\n init: false,\n key: 'dateEdited',\n notion: 'Date.Edited',\n type: 'last_edited_time',\n },\n dateEvent: {\n init: true,\n key: 'dateEvent',\n notion: 'Date.Event',\n type: 'date',\n },\n datePublished: {\n init: true,\n key: 'datePublished',\n notion: 'Date.Published',\n type: 'date',\n },\n dateRecorded: {\n init: true,\n key: 'dateRecorded',\n notion: 'Date.Recorded',\n type: 'date',\n },\n duration: {\n init: true,\n key: 'duration',\n notion: 'Duration',\n type: 'rich_text',\n },\n email: {\n init: true,\n key: 'email',\n notion: 'Email',\n type: 'rich_text',\n },\n episode: {\n format: 'number',\n init: true,\n key: 'episode',\n notion: 'Episode',\n type: 'number',\n },\n explicit: {\n init: true,\n key: 'explicit',\n notion: 'Explicit',\n type: 'checkbox',\n },\n festivals: {\n init: true,\n key: 'festivals',\n notion: 'Festival',\n type: 'multi_select',\n },\n food: {\n init: true,\n key: 'food',\n notion: 'Food',\n type: 'rich_text',\n },\n isIndexed: {\n init: true,\n key: 'isIndexed',\n notion: 'Is.Indexed',\n type: 'checkbox',\n },\n isPublished: {\n init: true,\n key: 'isPublished',\n notion: 'Is.Published',\n type: 'checkbox',\n },\n mp3: {\n init: true,\n key: 'mp3',\n notion: 'MP3',\n type: 'files',\n },\n name: {\n init: true,\n key: 'name',\n notion: 'Name',\n type: 'rich_text',\n },\n nameFirst: {\n init: true,\n key: 'nameFirst',\n notion: 'Name.First',\n type: 'rich_text',\n },\n nameLast: {\n init: true,\n key: 'nameLast',\n notion: 'Name.Last',\n type: 'rich_text',\n },\n namePreferred: {\n init: true,\n key: 'namePreferred',\n notion: 'Name.Preferred',\n type: 'rich_text',\n },\n phoneNumber: {\n init: true,\n key: 'phoneNumber',\n notion: 'Phone',\n type: 'rich_text',\n },\n podcastAuthor: {\n init: true,\n key: 'podcastAuthor',\n notion: 'Author',\n type: 'rich_text',\n },\n podcastAuthorEmail: {\n init: true,\n key: 'podcastAuthorEmail',\n notion: 'Author.Email',\n type: 'rich_text',\n },\n relationEpisodes__People_Guest: {\n init: true,\n key: 'relationEpisodes__People_Guest',\n notion: 'Guest',\n relation: {\n database_id: 'People',\n synced_property_name: 'Episodes.Guest',\n },\n type: 'relation',\n },\n relationEpisodes__People_Sound_Engineer: {\n init: true,\n key: 'relationEpisodes__People_Sound_Engineer',\n notion: 'Sound.Engineer',\n relation: {\n database_id: 'People',\n synced_property_name: 'Episodes.Sound.Engineer',\n },\n type: 'relation',\n },\n relationEpisodes__People_Thanks: {\n init: true,\n key: 'relationEpisodes__People_Thanks',\n notion: 'Thanks',\n relation: {\n database_id: 'People',\n synced_property_name: 'Episodes.Thanks',\n },\n type: 'relation',\n },\n /**\n * @relation\n */\n relationEpisodes__Podcasts: {\n init: true,\n key: 'relationEpisodes__Podcasts',\n notion: 'Podcasts',\n relation: {\n database_id: 'Podcasts',\n synced_property_name: 'Episodes',\n },\n type: 'relation',\n },\n relationEpisodes__Venues: {\n init: true,\n key: 'relationEpisodes__Venues',\n notion: 'Venues',\n relation: {\n database_id: 'Venues',\n synced_property_name: 'Episodes',\n },\n type: 'relation',\n },\n relationEvents__People_Guest: {\n init: true,\n key: 'relationEvents__People_Guest',\n notion: 'Guest',\n relation: {\n database_id: 'People',\n synced_property_name: 'Events.Guest',\n },\n type: 'relation',\n },\n\n relationEvents__People_Guest_Music: {\n init: true,\n key: 'relationEvents__People_Guest_Music',\n notion: 'Guest.Music',\n relation: {\n database_id: 'People',\n synced_property_name: 'Events.Guest.Music',\n },\n type: 'relation',\n },\n relationEvents__People_Host: {\n init: true,\n key: 'relationEvents__People_Host',\n notion: 'Host',\n relation: {\n database_id: 'People',\n synced_property_name: 'Events.Host',\n },\n type: 'relation',\n },\n relationEvents__Shows: {\n init: true,\n key: 'relationEvents__Shows',\n notion: 'Shows',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Events',\n },\n type: 'relation',\n },\n relationEvents__Shows_Lineup: {\n init: true,\n key: 'relationEvents__Shows_Lineup',\n notion: 'Shows.Lineup',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Events.Lineup',\n },\n type: 'relation',\n },\n relationEvents__Venues: {\n init: true,\n key: 'relationEvents__Venues',\n notion: 'Venues',\n relation: {\n database_id: 'Venues',\n synced_property_name: 'Events',\n },\n type: 'relation',\n },\n relationPeople__Episodes_Guest: {\n init: false,\n key: 'relationPeople__Episodes_Guest',\n notion: 'Episodes.Guest',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Guest',\n },\n type: 'relation',\n },\n relationPeople__Episodes_Sound_Engineer: {\n init: false,\n key: 'relationPeople__Episodes_Sound_Engineer',\n notion: 'Episodes.Sound.Engineer',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Sound.Engineer',\n },\n type: 'relation',\n },\n relationPeople__Episodes_Thanks: {\n init: false,\n key: 'relationPeople__Episodes_Thanks',\n notion: 'Episodes.Thanks',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Thanks',\n },\n type: 'relation',\n },\n relationPeople__Events_Guest: {\n init: false,\n key: 'relationEvents__People_Guest',\n notion: 'Events.Guest',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Guest',\n },\n type: 'relation',\n },\n relationPeople__Events_Guest_Music: {\n init: false,\n key: 'relationPeople__Events_Guest_Music',\n notion: 'Events.Guest.Music',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Guest.Music',\n },\n type: 'relation',\n },\n relationPeople__Events_Host: {\n init: false,\n key: 'relationPeople__Events_Host',\n notion: 'Events.Host',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Host',\n },\n type: 'relation',\n },\n relationPeople__Podcasts_Host: {\n init: false,\n key: 'relationPeople__Podcasts_Host',\n notion: 'Podcasts.Host',\n relation: {\n database_id: 'Podcasts',\n synced_property_name: 'Host',\n },\n type: 'relation',\n },\n relationPeople__Podcasts_Sound_Engineer: {\n init: false,\n key: 'relationPeople__Podcasts_Sound_Engineer',\n notion: 'Podcasts.Sound.Engineer',\n relation: {\n database_id: 'Podcasts',\n synced_property_name: 'Sound.Engineer',\n },\n type: 'relation',\n },\n relationPeople__Shows_Cast: {\n init: false,\n key: 'relationPeople__Shows_Cast',\n notion: 'Shows.Cast',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Cast',\n },\n type: 'relation',\n },\n relationPeople__Shows_Cast_Past: {\n init: false,\n key: 'relationPeople__Shows_Cast_Past',\n notion: 'Shows.Cast.Past',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Cast.Past',\n },\n type: 'relation',\n },\n relationPeople__Shows_Crew: {\n init: true,\n key: 'relationPeople__Shows_Crew',\n notion: 'Shows.Crew',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Crew',\n },\n type: 'relation',\n },\n relationPeople__Shows_Director: {\n init: false,\n key: 'relationPeople__Shows_Director',\n notion: 'Shows.Director',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Director',\n },\n type: 'relation',\n },\n relationPeople__Shows_Director_Musical: {\n init: false,\n key: 'relationPeople__Shows_Director_Musical',\n notion: 'Shows.Director.Musical',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Director.Musical',\n },\n type: 'relation',\n },\n relationPeople__Shows_Director_Technical: {\n init: false,\n key: 'relationPeople__Shows_Director_Technical',\n notion: 'Shows.Director.Technical',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Director.Technical',\n },\n type: 'relation',\n },\n relationPeople__Shows_Producer: {\n init: false,\n key: 'relationPeople__Shows_Producer',\n notion: 'Shows.Producer',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Producer',\n },\n type: 'relation',\n },\n relationPeople__Shows_Thanks: {\n init: false,\n key: 'relationPeople__Shows_Thanks',\n notion: 'Shows.Thanks',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Thanks',\n },\n type: 'relation',\n },\n relationPeople__Shows_Writer: {\n init: false,\n key: 'relationPeople__Shows_Writer',\n notion: 'Shows.Writer',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Writer',\n },\n type: 'relation',\n },\n relationPodcasts__Episodes: {\n init: false,\n key: 'relationPodcasts__Episodes',\n notion: 'Episodes',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Podcasts',\n },\n type: 'relation',\n },\n relationPodcasts__People_Host: {\n init: true,\n key: 'relationPodcasts__People_Host',\n notion: 'Host',\n relation: {\n database_id: 'People',\n synced_property_name: 'Podcasts.Host',\n },\n type: 'relation',\n },\n relationPodcasts__People_Sound_Engineer: {\n init: true,\n key: 'relationPodcasts__People_Sound_Engineer',\n notion: 'Sound.Engineer',\n relation: {\n database_id: 'Podcasts',\n synced_property_name: 'Podcasts.Sound.Engineer',\n },\n type: 'relation',\n },\n relationShows__Events: {\n init: false,\n key: 'relationShows__Events',\n notion: 'Events',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Shows',\n },\n type: 'relation',\n },\n relationShows__Events_Lineup: {\n init: false,\n key: 'relationShows__Events_Lineup',\n notion: 'Events.Lineup',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Shows.Lineup',\n },\n type: 'relation',\n },\n relationShows__People_Cast: {\n init: true,\n key: 'relationShows__People_Cast',\n notion: 'Cast',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Cast',\n },\n type: 'relation',\n },\n relationShows__People_Cast_Past: {\n init: true,\n key: 'relationShows__People_Cast_Past',\n notion: 'Cast.Past',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Cast.Past',\n },\n type: 'relation',\n },\n relationShows__People_Director: {\n init: true,\n key: 'relationShows__People_Director',\n notion: 'Director',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Director',\n },\n type: 'relation',\n },\n relationShows__People_Director_Musical: {\n init: true,\n key: 'relationShows__People_Director_Musical',\n notion: 'Director.Musical',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Director.Musical',\n },\n type: 'relation',\n },\n relationShows__People_Director_Technical: {\n init: true,\n key: 'relationShows__People_Director_Technical',\n notion: 'Director.Technical',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Director.Technical',\n },\n type: 'relation',\n },\n relationShows__People_Producer: {\n init: true,\n key: 'relationShows__People_Producer',\n notion: 'Producer',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Producer',\n },\n type: 'relation',\n },\n relationShows__People_Thanks: {\n init: true,\n key: 'relationShows__People_Thanks',\n notion: 'Thanks',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Thanks',\n },\n type: 'relation',\n },\n relationShows__People_Writer: {\n init: true,\n key: 'relationShows__People_Writer',\n notion: 'Writer',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Writer',\n },\n type: 'relation',\n },\n relationShows__Tags: {\n init: true,\n key: 'relationShows__Tags',\n notion: 'Tags',\n relation: {\n database_id: 'Tags',\n synced_property_name: 'Shows',\n },\n type: 'relation',\n },\n relationShows_People_Crew: {\n init: true,\n key: 'relationShows_People_Crew',\n notion: 'Crew',\n relation: {\n database_id: 'People',\n synced_property_name: 'Shows.Crew',\n },\n type: 'relation',\n },\n relationTags__Shows: {\n init: false,\n key: 'relationTags__Shows',\n notion: 'Shows',\n relation: {\n database_id: 'Shows',\n synced_property_name: 'Tags',\n },\n type: 'relation',\n },\n relationVenues__Episodes: {\n init: false,\n key: 'relationVenues__Episodes',\n notion: 'Episodes',\n relation: {\n database_id: 'Episodes',\n synced_property_name: 'Venues',\n },\n type: 'relation',\n },\n relationVenues__Events: {\n init: false,\n key: 'relationVenues__Events',\n notion: 'Events',\n relation: {\n database_id: 'Events',\n synced_property_name: 'Venues',\n },\n type: 'relation',\n },\n rollupEpisodes__Podcasts: {\n init: false,\n key: 'rollupEpisodes__Podcasts',\n notion: 'Podcasts.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Podcasts',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEpisodes__PodcastsSlugs: {\n init: false,\n key: 'rollupEpisodes__PodcastsSlugs',\n notion: 'Podcasts.Slug.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Podcasts',\n rollup_property_id: 'Slug',\n },\n type: 'rollup',\n },\n //\n rollupEvents__People_Cast: {\n init: false,\n key: 'rollupEvents__People_Cast',\n notion: 'Cast.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Shows',\n rollup_property_id: 'Cast',\n },\n type: 'rollup',\n },\n rollupEvents__People_Guest: {\n init: false,\n key: 'rollupEvents__People_Guest',\n notion: 'Guest.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Guest',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__People_Guest_Music: {\n init: false,\n key: 'rollupEvents__People_Guest_Music',\n notion: 'Guest.Music.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Guest.Music',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__People_Host: {\n init: false,\n key: 'rollupEvents__People_Host',\n notion: 'Host.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Host',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__Shows: {\n init: false,\n key: 'rollupEvents__Shows',\n notion: 'Shows.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Shows',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__Shows_Lineup: {\n init: false,\n key: 'rollupEvents__Shows_Lineup',\n notion: 'Shows.Lineup.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Shows.Lineup',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupEvents__Venues: {\n init: false,\n key: 'rollupEvents__Venues',\n notion: 'Venues.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Venues',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupPodcasts__Episodes: {\n init: false,\n key: 'rollupPodcasts__Episodes',\n notion: 'Episodes.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Episodes',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupPodcasts__EpisodesSlugs: {\n init: false,\n key: 'rollupPodcasts__EpisodesSlugs',\n notion: 'Episodes.Slug.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Episodes',\n rollup_property_id: 'Slug',\n },\n type: 'rollup',\n },\n /**\n * @rollup\n */\n rollupShows__People_Cast: {\n init: false,\n key: 'rollupShows__People_Cast',\n notion: 'Cast.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Cast',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Cast_Past: {\n init: false,\n key: 'rollupShows__People_Cast_Past',\n notion: 'Cast.Past.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Cast.Past',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Cast_Slug: {\n init: false,\n key: 'rollupShows__People_Cast_Slug',\n notion: 'Cast.Rollup.Slug',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Cast',\n rollup_property_name: 'Slug',\n },\n type: 'rollup',\n },\n rollupShows__People_Crew: {\n init: false,\n key: 'rollupShows__People_Crew',\n notion: 'Crew.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Crew',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Director: {\n init: false,\n key: 'rollupShows__People_Director',\n notion: 'Director.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Director',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Director_Musical: {\n init: false,\n key: 'rollupShows__People_Director_Musical',\n notion: 'Director.Musical.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Director.Musical',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Director_Technical: {\n init: false,\n key: 'rollupShows__People_Director_Technical',\n notion: 'Director.Technical.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Director.Technical',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Music: {\n init: false,\n key: 'rollupShows__People_Music',\n notion: 'Music.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Music',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Producer: {\n init: false,\n key: 'rollupShows__People_Producer',\n notion: 'Producer.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Producer',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Thanks: {\n init: false,\n key: 'rollupShows__People_Thanks',\n notion: 'Thanks.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Thanks',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__People_Writer: {\n init: false,\n key: 'rollupShows__People_Writer',\n notion: 'Writer.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Writer',\n rollup_property_name: 'Title',\n },\n type: 'rollup',\n },\n rollupShows__Tags: {\n init: false,\n key: 'rollupShows__Tags',\n notion: 'Tags.Rollup',\n rollup: {\n function: 'show_original',\n relation_property_name: 'Tags',\n rollup_property_id: 'Title',\n },\n type: 'rollup',\n },\n season: {\n format: 'number',\n init: true,\n key: 'season',\n notion: 'Season',\n type: 'number',\n },\n seoDescription: {\n init: true,\n key: 'seoDescription',\n notion: 'SEO.Description',\n type: 'rich_text',\n },\n seoImage: {\n init: true,\n key: 'seoImage',\n notion: 'SEO.Image',\n type: 'files',\n },\n seoImageDescription: {\n init: true,\n key: 'seoImageDescription',\n notion: 'SEO.Image.Description',\n type: 'rich_text',\n },\n seoKeywords: {\n init: true,\n key: 'seoKeywords',\n notion: 'SEO.Keywords',\n type: 'rich_text',\n },\n slug: {\n init: true,\n key: 'slug',\n notion: 'Slug',\n type: 'rich_text',\n },\n socialApple: {\n init: true,\n key: 'socialApple',\n notion: 'Social.Apple',\n type: 'url',\n },\n socialFacebook: {\n init: true,\n key: 'socialFacebook',\n notion: 'Social.Facebook',\n type: 'url',\n },\n socialInstagram: {\n init: true,\n key: 'socialInstagram',\n notion: 'Social.Instagram',\n type: 'url',\n },\n socialSpotify: {\n init: true,\n key: 'socialSpotify',\n notion: 'Social.Spotify',\n type: 'url',\n },\n socialTwitter: {\n init: true,\n key: 'socialTwitter',\n notion: 'Social.Twitter',\n type: 'url',\n },\n socialWebsite: {\n init: true,\n key: 'socialWebsite',\n notion: 'Social.Website',\n type: 'url',\n },\n status: {\n init: true,\n key: 'status',\n notion: 'Status',\n type: 'select',\n },\n subtitle: {\n init: true,\n key: 'subtitle',\n notion: 'Subtitle',\n type: 'rich_text',\n },\n ticketUrl: {\n init: true,\n key: 'ticketUrl',\n notion: 'TicketUrl',\n type: 'url',\n },\n title: {\n init: true,\n key: 'title',\n notion: 'Title',\n type: 'title',\n },\n type: {\n init: true,\n key: 'type',\n notion: 'Type',\n type: 'select',\n },\n}\n\n/**\n * @note\n * Limit Each Database (Route Type) to _only_\n * have valid data for its schema\n */\n\nconst PROPERTIES_DEFAULT = [\n PROPERTIES.authors,\n // PROPERTIES.dateCreated,\n PROPERTIES.datePublished,\n PROPERTIES.isIndexed,\n PROPERTIES.isPublished,\n PROPERTIES.slug,\n PROPERTIES.seoDescription,\n PROPERTIES.seoImage,\n PROPERTIES.seoImageDescription,\n PROPERTIES.seoKeywords,\n PROPERTIES.title,\n]\n\nconst BLOG = [...PROPERTIES_DEFAULT]\n\nconst BOOKS = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.author,\n PROPERTIES.status,\n PROPERTIES.subtitle,\n]\n\nconst EPISODES = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.dateRecorded,\n PROPERTIES.duration,\n PROPERTIES.episode,\n PROPERTIES.mp3,\n PROPERTIES.season,\n PROPERTIES.relationEpisodes__People_Guest,\n PROPERTIES.relationEpisodes__People_Sound_Engineer,\n PROPERTIES.relationEpisodes__People_Thanks,\n PROPERTIES.relationEpisodes__Podcasts,\n PROPERTIES.relationEpisodes__Venues,\n PROPERTIES.socialApple,\n PROPERTIES.socialSpotify,\n PROPERTIES.type,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n // PROPERTIES.rollupEpisodes__People_Guest,\n // PROPERTIES.rollupEpisodes__People_Sound_Engineer,\n // PROPERTIES.rollupEpisodes__People_Thanks,\n PROPERTIES.rollupEpisodes__Podcasts,\n PROPERTIES.rollupEpisodes__PodcastsSlugs,\n // PROPERTIES.rollupEpisodes__Venues,\n]\n\nconst EVENTS = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.dateEvent,\n PROPERTIES.relationEvents__People_Guest_Music,\n PROPERTIES.relationEvents__People_Guest,\n PROPERTIES.relationEvents__People_Host,\n PROPERTIES.relationEvents__Shows_Lineup,\n PROPERTIES.relationEvents__Shows,\n PROPERTIES.relationEvents__Venues,\n PROPERTIES.socialFacebook,\n PROPERTIES.socialWebsite,\n PROPERTIES.ticketUrl,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.rollupEvents__People_Cast,\n PROPERTIES.rollupEvents__People_Guest_Music,\n PROPERTIES.rollupEvents__People_Guest,\n PROPERTIES.rollupEvents__People_Host,\n PROPERTIES.rollupEvents__Shows_Lineup,\n PROPERTIES.rollupEvents__Shows,\n PROPERTIES.rollupEvents__Venues,\n /**\n * -------------------------------------\n */\n]\n\nconst PAGES = [...PROPERTIES_DEFAULT]\n\nconst PEOPLE = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.email,\n PROPERTIES.nameFirst,\n PROPERTIES.nameLast,\n PROPERTIES.namePreferred,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.relationPeople__Episodes_Guest,\n PROPERTIES.relationPeople__Episodes_Sound_Engineer,\n PROPERTIES.relationPeople__Episodes_Thanks,\n PROPERTIES.relationPeople__Events_Guest,\n PROPERTIES.relationPeople__Events_Guest_Music,\n PROPERTIES.relationPeople__Events_Host,\n PROPERTIES.relationPeople__Podcasts_Host,\n PROPERTIES.relationPeople__Podcasts_Sound_Engineer,\n PROPERTIES.relationPeople__Shows_Cast,\n PROPERTIES.relationPeople__Shows_Cast_Past,\n PROPERTIES.relationPeople__Shows_Director,\n PROPERTIES.relationPeople__Shows_Director_Musical,\n PROPERTIES.relationPeople__Shows_Director_Technical,\n PROPERTIES.relationPeople__Shows_Producer,\n PROPERTIES.relationPeople__Shows_Thanks,\n PROPERTIES.relationPeople__Shows_Writer,\n /**\n * -------------------------------------\n */\n]\n\nconst PODCASTS = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.categories,\n PROPERTIES.explicit,\n PROPERTIES.podcastAuthor,\n PROPERTIES.podcastAuthorEmail,\n PROPERTIES.relationPodcasts__People_Host,\n PROPERTIES.relationPodcasts__People_Sound_Engineer,\n PROPERTIES.socialApple,\n PROPERTIES.socialSpotify,\n PROPERTIES.type,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.relationPodcasts__Episodes,\n PROPERTIES.rollupPodcasts__Episodes,\n PROPERTIES.rollupPodcasts__EpisodesSlugs,\n /**\n * -------------------------------------\n */\n]\n\nconst SEO = [...PROPERTIES_DEFAULT]\n\nconst SHOWS = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.relationShows__People_Cast,\n PROPERTIES.relationShows__People_Cast_Past,\n PROPERTIES.relationShows__People_Director,\n PROPERTIES.relationShows__People_Director_Musical,\n PROPERTIES.relationShows__People_Director_Technical,\n PROPERTIES.relationShows__People_Producer,\n PROPERTIES.relationShows__People_Thanks,\n PROPERTIES.relationShows__People_Writer,\n PROPERTIES.relationShows__Tags,\n PROPERTIES.socialFacebook,\n PROPERTIES.socialInstagram,\n PROPERTIES.socialTwitter,\n PROPERTIES.socialWebsite,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.relationShows__Events,\n PROPERTIES.relationShows__Events_Lineup,\n PROPERTIES.rollupShows__People_Cast,\n PROPERTIES.rollupShows__People_Cast_Slug,\n PROPERTIES.rollupShows__People_Cast_Past,\n PROPERTIES.rollupShows__People_Crew,\n PROPERTIES.rollupShows__People_Director,\n PROPERTIES.rollupShows__People_Director_Musical,\n PROPERTIES.rollupShows__People_Director_Technical,\n PROPERTIES.rollupShows__People_Music,\n PROPERTIES.rollupShows__People_Producer,\n PROPERTIES.rollupShows__People_Thanks,\n PROPERTIES.rollupShows__People_Writer,\n PROPERTIES.rollupShows__Tags,\n /**\n * -------------------------------------\n */\n]\n\nconst VENUES = [\n ...PROPERTIES_DEFAULT,\n PROPERTIES.addressCity,\n PROPERTIES.addressLatitude,\n PROPERTIES.addressLongitude,\n PROPERTIES.addressNeighborhood,\n PROPERTIES.addressState,\n PROPERTIES.addressStreet,\n PROPERTIES.addressZipCode,\n PROPERTIES.phoneNumber,\n PROPERTIES.socialFacebook,\n PROPERTIES.socialInstagram,\n PROPERTIES.socialTwitter,\n PROPERTIES.socialWebsite,\n /**\n * @note(notion)\n * do not init/seed these values, they are updated _after_ init\n */\n PROPERTIES.relationVenues__Episodes,\n PROPERTIES.relationVenues__Events,\n /**\n * -------------------------------------\n */\n]\n\n/**\n * @note\n * hyper-specific for the init / see (secret/create/init)\n *\n * 0. Create DB w/o Relations|Rollups\n * 1. Update DB w/ Relations\n * 2. Update DB w/ Relation Naming Preference\n * 3. Update DB w/ Rollups\n */\nconst INIT = {\n BLOG: _filter(BLOG, { init: true }),\n BOOKS: _filter(BOOKS, { init: true }),\n EPISODES: _filter(EPISODES, { init: true }),\n EVENTS: _filter(EVENTS, { init: true }),\n PAGES: _filter(PAGES, { init: true }),\n PEOPLE: _filter(PEOPLE, { init: true }),\n PODCASTS: _filter(PODCASTS, { init: true }),\n SEO: _filter(SEO, { init: true }),\n SHOWS: _filter(SHOWS, { init: true }),\n VENUES: _filter(VENUES, { init: true }),\n}\n\nconst LOOKUP = {\n BLOG: BLOG.map((item) => getLookup(item)),\n BOOKS: BOOKS.map((item) => getLookup(item)),\n EPISODES: EPISODES.map((item) => getLookup(item)),\n EVENTS: EVENTS.map((item) => getLookup(item)),\n PAGES: PAGES.map((item) => getLookup(item)),\n PEOPLE: PEOPLE.map((item) => getLookup(item)),\n PODCASTS: PODCASTS.map((item) => getLookup(item)),\n SEO: SEO.map((item) => getLookup(item)),\n SHOWS: SHOWS.map((item) => getLookup(item)),\n VENUES: VENUES.map((item) => getLookup(item)),\n}\n\nconst PROPERTIES_LOOKUP = _map(PROPERTIES, (item) => getLookup(item))\n\nconst dateTimestamp = new Date().toISOString()\n// const dateTimestampBlog = new Date('2020-01-01').toISOString()\n\n/**\n * @note(notion) right now we are only using `QUERIES.slug`\n */\nconst QUERIES = {\n // @todo(notion) Published or Event?\n dateBefore: {\n date: {\n before: dateTimestamp,\n },\n property: PROPERTIES.datePublished.notion,\n },\n // @todo(notion) Published or Event?\n dateOnOrAfter: {\n date: {\n on_or_after: dateTimestamp,\n },\n property: PROPERTIES.datePublished.notion,\n },\n published: {\n checkbox: {\n equals: false,\n },\n property: PROPERTIES.isPublished.notion,\n },\n slug: {\n property: PROPERTIES.slug.notion,\n rich_text: {\n equals: '',\n },\n },\n}\n\nconst LISTING: DataTypes = 'LISTING'\nconst LISTING_BY_DATE: DataTypes = 'LISTING_BY_DATE'\nconst SLUG: DataTypes = 'SLUG'\nconst SLUG_BY_ROUTE: DataTypes = 'SLUG_BY_ROUTE'\n\nconst getDataTypes: DataTypes[] = [LISTING, LISTING_BY_DATE, SLUG, SLUG_BY_ROUTE]\n\nconst DATA_TYPES: DataTypesObject = Object.assign(\n {},\n // @ts-ignore\n ...getDataTypes.flatMap((d) => ({ [d]: d })),\n)\n\nexport {\n DATA_TYPES,\n getDataTypes,\n INIT,\n LOOKUP,\n PROPERTIES,\n PROPERTIES_LOOKUP,\n QUERIES,\n}\n"],"mappings":"4CAIA,MAAM,GAAa,CAAE,MAAK,SAAQ,WAAY,CAC5C,MACA,SACA,MACF,GAeM,EAAuC,CAC3C,YAAa,CACX,KAAM,GACN,IAAK,cACL,OAAQ,eACR,KAAM,WACR,EACA,gBAAiB,CACf,OAAQ,SACR,KAAM,GACN,IAAK,kBACL,OAAQ,mBACR,KAAM,QACR,EACA,iBAAkB,CAChB,OAAQ,SACR,KAAM,GACN,IAAK,mBACL,OAAQ,oBACR,KAAM,QACR,EACA,oBAAqB,CACnB,KAAM,GACN,IAAK,sBACL,OAAQ,uBACR,KAAM,WACR,EACA,aAAc,CACZ,KAAM,GACN,IAAK,eACL,OAAQ,gBACR,KAAM,QACR,EACA,cAAe,CACb,KAAM,GACN,IAAK,gBACL,OAAQ,iBACR,KAAM,WACR,EACA,eAAgB,CACd,OAAQ,SACR,KAAM,GACN,IAAK,iBACL,OAAQ,kBACR,KAAM,QACR,EACA,OAAQ,CACN,KAAM,GACN,IAAK,SACL,OAAQ,SACR,KAAM,WACR,EACA,QAAS,CACP,KAAM,GACN,IAAK,UACL,OAAQ,UACR,KAAM,QACR,EACA,WAAY,CACV,KAAM,GACN,IAAK,aACL,OAAQ,aACR,KAAM,cACR,EACA,YAAa,CACX,KAAM,GACN,IAAK,cACL,OAAQ,eACR,KAAM,cACR,EACA,WAAY,CACV,KAAM,GACN,IAAK,aACL,OAAQ,cACR,KAAM,kBACR,EACA,UAAW,CACT,KAAM,GACN,IAAK,YACL,OAAQ,aACR,KAAM,MACR,EACA,cAAe,CACb,KAAM,GACN,IAAK,gBACL,OAAQ,iBACR,KAAM,MACR,EACA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GAAS,EAAU,CAAI,CAAC,EAC5C,MAAO,EAAM,IAAK,GAAS,EAAU,CAAI,CAAC,EAC1C,OAAQ,EAAO,IAAK,GAAS,EAAU,CAAI,CAAC,EAC5C,SAAU,EAAS,IAAK,GAAS,EAAU,CAAI,CAAC,EAChD,IAAK,EAAI,IAAK,GAAS,EAAU,CAAI,CAAC,EACtC,MAAO,EAAM,IAAK,GAAS,EAAU,CAAI,CAAC,EAC1C,OAAQ,EAAO,IAAK,GAAS,EAAU,CAAI,CAAC,CAC9C,EAEM,EAAoBC,EAAK,EAAa,GAAS,EAAU,CAAI,CAAC,EAE9D,EAAgB,IAAI,KAAK,EAAE,YAAY,EAMvC,EAAU,CAEd,WAAY,CACV,KAAM,CACJ,OAAQ,CACV,EACA,SAAU,EAAW,cAAc,MACrC,EAEA,cAAe,CACb,KAAM,CACJ,YAAa,CACf,EACA,SAAU,EAAW,cAAc,MACrC,EACA,UAAW,CACT,SAAU,CACR,OAAQ,EACV,EACA,SAAU,EAAW,YAAY,MACnC,EACA,KAAM,CACJ,SAAU,EAAW,KAAK,OAC1B,UAAW,CACT,OAAQ,EACV,CACF,CACF,EAOM,EAA4B,CAAC,UAAS,kBAAiB,OAAM,eAAa,EAE1E,EAA8B,OAAO,OACzC,CAAC,EAED,GAAG,EAAa,QAAS,IAAO,EAAG,GAAI,CAAE,EAAE,CAC7C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import e from"./utils/getTypes/_unsupported.mjs";import t from"./utils/getTypes/checkbox.mjs";import n from"./utils/getTypes/date.mjs";import r from"./utils/getTypes/email.mjs";import i from"./utils/getTypes/files.mjs";import a from"./utils/getTypes/multi_select.mjs";import o from"./utils/getTypes/number.mjs";import s from"./utils/getTypes/people.mjs";import c from"./utils/getTypes/phone_number.mjs";import l from"./utils/getTypes/rich_text.mjs";import u from"./utils/getTypes/select.mjs";import d from"./utils/getTypes/title.mjs";import f from"./utils/getTypes/url.mjs";import{map as p,sortBy as m}from"lodash-es";const h=e=>e.type===`rollup`?e.rollup.type===`array`&&p(e.rollup.array,e=>_[e.type](e))[0]:p(e.relation,e=>e.id),g=e=>{let t=e?.rollup;return m(p(t?.array,e=>p(e[e?.type],t=>_[e?.type]({[e?.type]:[t],type:e?.type})))).flat()},_={checkbox:t,created_by:e,created_time:n,date:n,email:r,files:i,formula:e,image:i,last_edited_by:e,last_edited_time:n,multi_select:a,number:o,people:s,phone_number:c,relation:h,rich_text:l,rollup:g,select:u,title:d,url:f};export{g as n,h as r,_ as t};
|
|
2
|
-
//# sourceMappingURL=getTypes-
|
|
2
|
+
//# sourceMappingURL=getTypes-D-cwjcBl.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTypes-
|
|
1
|
+
{"version":3,"file":"getTypes-D-cwjcBl.mjs","names":["_map","_sortBy","_map"],"sources":["../src/utils/getTypes/relation.ts","../src/utils/getTypes/rollup.ts","../src/utils/getTypes/index.ts"],"sourcesContent":["import { map as _map } from 'lodash-es'\n\nimport getTypes from '../../utils/getTypes/index'\n\nconst relation = (data: any) => {\n if (data.type === 'rollup') {\n return (\n data.rollup.type === 'array' &&\n _map(data.rollup.array, (item: any) => {\n return getTypes[item.type](item)\n })[0]\n )\n } else {\n return _map(data.relation, (relation: any) => relation.id)\n }\n}\n\nexport default relation\n","import type { RollupFunction } from '../../schema/index'\n\nimport { map as _map, sortBy as _sortBy } from 'lodash-es'\n\nimport getTypes from '../../utils/getTypes/index'\n\n/**\n * @note(notion) https://github.com/JeromeFitz/packages/issues/631\n */\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype Rollup = {\n array: any\n function: RollupFunction\n type: 'array'\n}\n\n// @todo(types)\nconst rollup = (data: any) => {\n const rollupData: Rollup = data?.rollup\n return _sortBy(\n _map(rollupData?.array, (item) =>\n _map(item[item?.type], (itemData) =>\n getTypes[item?.type]({\n [item?.type]: [itemData],\n type: item?.type,\n }),\n ),\n ),\n ).flat()\n}\n\nexport default rollup\n","import _unsupported from './_unsupported'\nimport checkbox from './checkbox'\nimport date from './date'\nimport email from './email'\nimport files from './files'\n// import images from './images'\nimport multi_select from './multi_select'\nimport number from './number'\nimport people from './people'\nimport phone_number from './phone_number'\nimport relation from './relation'\nimport rich_text from './rich_text'\nimport rollup from './rollup'\nimport select from './select'\nimport title from './title'\nimport url from './url'\n\nconst getTypes = {\n checkbox,\n created_by: _unsupported,\n created_time: date,\n date,\n email,\n files,\n formula: _unsupported,\n image: files,\n last_edited_by: _unsupported,\n last_edited_time: date,\n multi_select,\n number,\n people,\n phone_number,\n relation,\n rich_text,\n rollup,\n select,\n title,\n url,\n}\n\nexport default getTypes\n"],"mappings":"0mBAIA,MAAM,EAAY,GACZ,EAAK,OAAS,SAEd,EAAK,OAAO,OAAS,SACrBA,EAAK,EAAK,OAAO,MAAQ,GAChB,EAAS,EAAK,MAAM,CAAI,CAChC,EAAE,GAGEA,EAAK,EAAK,SAAW,GAAkB,EAAS,EAAE,ECIvD,EAAU,GAAc,CAC5B,IAAM,EAAqB,GAAM,OACjC,OAAOC,EACLC,EAAK,GAAY,MAAQ,GACvBA,EAAK,EAAK,GAAM,MAAQ,GACtB,EAAS,GAAM,MAAM,EAClB,GAAM,MAAO,CAAC,CAAQ,EACvB,KAAM,GAAM,IACd,CAAC,CACH,CACF,CACF,EAAE,KAAK,CACT,ECZM,EAAW,CACf,WACA,WAAY,EACZ,aAAc,EACd,OACA,QACA,QACA,QAAS,EACT,MAAO,EACP,eAAgB,EAChB,iBAAkB,EAClB,eACA,SACA,SACA,eACA,WACA,YACA,SACA,SACA,QACA,KACF"}
|
|
@@ -242,4 +242,4 @@ interface Venue extends Default {
|
|
|
242
242
|
type Venues = Record<string, Venue>;
|
|
243
243
|
//#endregion
|
|
244
244
|
export { Venue as A, RollupFunction as C, Shows as D, Show as E, SortItem as O, Rollup as S, SeoPost as T, People as _, DatabaseInfo as a, Podcasts as b, Direction as c, Event as d, Events as f, Pages as g, Page as h, DataTypesObject as i, Venues as j, SortMock as k, Episode as l, NotionText as m, BlogPost as n, DatabaseType as o, NotionBlock as p, DataTypes as r, Databases as s, Blog as t, Episodes as u, Person as v, Seo as w, Property as x, Podcast as y };
|
|
245
|
-
//# sourceMappingURL=index-
|
|
245
|
+
//# sourceMappingURL=index-CQ1IEP2W.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CQ1IEP2W.d.mts","names":[],"sources":["../src/schema/index.ts"],"mappings":";KAAK,IAAA,GAAO,MAAM,SAAS,QAAA;AAAA,KAEtB,QAAA,GAAW,OAAO;AAAA,KAClB,YAAA,GAAe,OAAA,CAClB,MAAA,CACE,YAAA;EAEE,MAAA;EACA,WAAA;EACA,SAAA,EAAW,SAAA;EAEX,QAAA;EACA,QAAA;EACA,OAAA;EACA,eAAA;EACA,IAAA;EACA,YAAA;EACA,SAAA;EACA,SAAA;EACA,eAAA;EACA,IAAA;EACA,GAAA;AAAA;AAAA,KAKD,SAAA,GAAY,MAAA,CAAO,YAAA,EAAc,YAAA;AAAA,KAEjC,YAAA;AAAA,KAYA,SAAA;AAAA,KAEA,eAAA,GAAkB,MAAA,CAAO,SAAA,EAAW,SAAA;AAAA,UAC/B,OAAA;EAER,WAAA;EACA,UAAA;EACA,aAAA;EACA,SAAA;EACA,WAAA;EACA,cAAA;EACA,QAAA;EACA,mBAAA;EACA,WAAA;EACA,IAAA;EACA,KAAA;AAAA;AAAA,KAEG,SAAA;AAAA,UAEK,OAAA,SAAgB,OAAO;EAC/B,YAAA;EACA,QAAA;EACA,OAAA;EACA,GAAA;EACA,8BAAA;EACA,uCAAA;EACA,+BAAA;EACA,0BAAA;EACA,wBAAA;EAEA,wBAAA;EAGA,6BAAA;EACA,MAAA;EAEA,WAAA;EACA,aAAA;EACA,IAAA;AAAA;AAAA,KAGG,QAAA,GAAW,MAAM,SAAS,OAAA;AAAA,UAErB,KAAA,SAAc,OAAO;EAC7B,SAAA;EACA,4BAAA;EACA,kCAAA;EACA,2BAAA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,WAAA;EACA,eAAA;EACA,gBAAA;EACA,mBAAA;EACA,YAAA;EACA,aAAA;EACA,cAAA;EACA,WAAA;EACA,wBAAA;EACA,sBAAA;EACA,cAAA;EACA,eAAA;EACA,aAAA;EACA,aAAA;AAAA;AAAA,KAGG,MAAA,GAAS,MAAM,SAAS,KAAA"}
|
package/index.d.mts
CHANGED
package/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;KAkBK,WAAA;EACH,MAAA,EAAQ,WAAA;EACR,SAAA,EAAW,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;KAkBK,WAAA;EACH,MAAA,EAAQ,WAAA;EACR,SAAA,EAAW,cAAc;AAAA;AAAA,KAItB,eAAA;EACH,IAAA;EACA,MAAM;AAAA;AAAA,KAIH,WAAA;EACH,qBAAA;EACA,qBAAA;EACA,uBAAA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;EACA,QAAA;AAAA;AAAA,KAIG,cAAA;EACH,OAAA;EACA,eAAA;EACA,IAAA;EACA,aAAA;AAAA;AAAA,cAGI,MAAA,SAAe,QAAA;EAAA;WAIH,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;WAyCA,SAAA;IAAA,CACb,UAAA,CAAW,OAAA,IAAQ,KAAA;MAClB,aAAA;MACA,SAAA;MACA,IAAA;IAAA,MACD,OAAA;;;;;;;;;;;KAWA,UAAA,CAAW,eAAA,IAAgB,KAAA;MAC1B,aAAA;MACA,SAAA;MACA,IAAA;IAAA,MACD,OAAA;;;;;;KAWA,UAAA,CAAW,IAAA,IAAK,KAAA;MACf,aAAA;MACA,SAAA;MACA,IAAA;IAAA,MACD,OAAA;;;;;;;;;;;;;;;;KAWA,UAAA,CAAW,aAAA,IAAc,KAAA;MACxB,aAAA;MACA,SAAA;MACA,IAAA;IAAA,MACD,OAAA;;;;;;;cAagB,OAAA;AAAA"}
|
package/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{DATA_TYPES as e}from"./constants/index.mjs";import t from"./queries/getBlocksByIdChildren/index.mjs";import n from"./queries/getDatabasesByIdQuery/index.mjs";import r from"./queries/getDeepFetchAllChildren/index.mjs";import i from"./queries/getInfoType/index.mjs";import a from"./queries/getNotionListing/index.mjs";import o from"./queries/getNotionListingByDate/index.mjs";import s from"./queries/getNotionSlug/index.mjs";import c from"./queries/getNotionSlugByRoute/index.mjs";import l from"./queries/getPagesById/index.mjs";import u from"./queries/getPathVariables/index.mjs";import d from"./queries/getQuery/index.mjs";import"./queries/index.mjs";import{Client as f}from"@notionhq/client";var p=class extends f{#e;custom={getBlocksByIdChildren:async e=>await t({...e,getBlocksChildrenList:this.blocks.children.list}),getDatabasesByIdQuery:async e=>await n({...e,getDatabasesQuery:this.databases.query}),getDeepFetchAllChildren:async e=>await r({...e,getBlocksChildrenList:this.blocks.children.list}),getInfoType:e=>i({...e,config:this.#e}),getPagesById:async e=>await l({...e,getPagesRetrieve:this.pages.retrieve}),getPathVariables:e=>u({...e,config:this.#e}),getQuery:async e=>await d({...e,config:this.#e,notionDatabasesQuery:this.databases.query})};dataTypes={[e.LISTING]:async e=>await a({...e,config:this.#e,getBlocksByIdChildren:this.custom.getBlocksByIdChildren,getDatabasesByIdQuery:this.custom.getDatabasesByIdQuery,getPagesById:this.custom.getPagesById}),[e.LISTING_BY_DATE]:async e=>await o({...e,config:this.#e,getBlocksByIdChildren:this.custom.getBlocksByIdChildren,getDatabasesByIdQuery:this.custom.getDatabasesByIdQuery,getPagesById:this.custom.getPagesById}),[e.SLUG]:async e=>await s({...e,config:this.#e,getBlocksByIdChildren:this.custom.getBlocksByIdChildren,getDatabasesByIdQuery:this.custom.getDatabasesByIdQuery,getDeepFetchAllChildren:this.custom.getDeepFetchAllChildren}),[e.SLUG_BY_ROUTE]:async e=>await c({...e,config:this.#e,getBlocksByIdChildren:this.custom.getBlocksByIdChildren,getDatabasesByIdQuery:this.custom.getDatabasesByIdQuery,getQuery:this.custom.getQuery})};constructor(e){super(e),this.#e=e?.config}};export{p as Client};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["_Client","#config"],"sources":["../src/index.ts"],"sourcesContent":["import { Client as _Client } from '@notionhq/client'\n\nimport { DATA_TYPES } from './constants/index'\nimport {\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n getDeepFetchAllChildren,\n getInfoType,\n getNotionListing,\n getNotionListingByDate,\n getNotionSlug,\n getNotionSlugByRoute,\n getPagesById,\n getPathVariables,\n getQuery,\n} from './queries/index'\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype ClientProps = {\n custom: CustomProps\n dataTypes: DataTypesProps\n}\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype CredentialProps = {\n auth: string\n config: any\n}\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype CustomProps = {\n getBlocksByIdChildren: any\n getDatabasesByIdQuery: any\n getDeepFetchAllChildren: any\n getInfoType: any\n getPagesById: any\n getPathVariables: any\n getQuery: any\n}\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype DataTypesProps = {\n LISTING: any\n LISTING_BY_DATE: any\n SLUG: any\n SLUG_BY_ROUTE: any\n}\n\nclass Client extends _Client {\n #config?: any\n\n // @todo(notion) throw error if `config` is not passed\n public readonly custom = {\n getBlocksByIdChildren: async (props) =>\n await getBlocksByIdChildren({\n ...props,\n getBlocksChildrenList: this.blocks.children.list,\n }),\n\n getDatabasesByIdQuery: async (props) =>\n await getDatabasesByIdQuery({\n ...props,\n getDatabasesQuery: this.databases.query,\n }),\n\n getDeepFetchAllChildren: async (props) =>\n await getDeepFetchAllChildren({\n ...props,\n getBlocksChildrenList: this.blocks.children.list,\n }),\n\n getInfoType: (props) => {\n return getInfoType({ ...props, config: this.#config })\n },\n\n getPagesById: async (props) =>\n await getPagesById({ ...props, getPagesRetrieve: this.pages.retrieve }),\n\n getPathVariables: (props) =>\n getPathVariables({ ...props, config: this.#config }),\n\n getQuery: async (props) =>\n await getQuery({\n ...props,\n config: this.#config,\n notionDatabasesQuery: this.databases.query,\n }),\n }\n\n /**\n * @info details at: ../../utils/getDataType\n *\n */\n public readonly dataTypes = {\n [DATA_TYPES.LISTING]: async (props: {\n pathVariables: any\n routeType: any\n slug?: any\n }) => {\n // console.dir(`📦️ [@jeromefitz/notion] => ${DATA_TYPES.LISTING}`)\n return await getNotionListing({\n ...props,\n config: this.#config,\n getBlocksByIdChildren: this.custom.getBlocksByIdChildren,\n getDatabasesByIdQuery: this.custom.getDatabasesByIdQuery,\n getPagesById: this.custom.getPagesById,\n })\n },\n\n [DATA_TYPES.LISTING_BY_DATE]: async (props: {\n pathVariables: any\n routeType: any\n slug: any\n }) => {\n // console.dir(`📦️ [@jeromefitz/notion] => ${DATA_TYPES.LISTING_BY_DATE}`)\n return await getNotionListingByDate({\n ...props,\n config: this.#config,\n getBlocksByIdChildren: this.custom.getBlocksByIdChildren,\n getDatabasesByIdQuery: this.custom.getDatabasesByIdQuery,\n getPagesById: this.custom.getPagesById,\n })\n },\n\n [DATA_TYPES.SLUG]: async (props: {\n pathVariables: any\n routeType: any\n slug: any\n }) => {\n // console.dir(`📦️ [@jeromefitz/notion] => ${DATA_TYPES.SLUG}`)\n return await getNotionSlug({\n ...props,\n config: this.#config,\n getBlocksByIdChildren: this.custom.getBlocksByIdChildren,\n getDatabasesByIdQuery: this.custom.getDatabasesByIdQuery,\n getDeepFetchAllChildren: this.custom.getDeepFetchAllChildren,\n })\n },\n\n [DATA_TYPES.SLUG_BY_ROUTE]: async (props: {\n pathVariables: any\n routeType: any\n slug: any\n }) => {\n // console.dir(`📦️ [@jeromefitz/notion] => ${DATA_TYPES.SLUG_BY_ROUTE}`)\n return await getNotionSlugByRoute({\n ...props,\n config: this.#config,\n getBlocksByIdChildren: this.custom.getBlocksByIdChildren,\n getDatabasesByIdQuery: this.custom.getDatabasesByIdQuery,\n getQuery: this.custom.getQuery,\n })\n },\n }\n\n // public constructor(options?: ClientOptions) {\n public constructor(options?: any) {\n super(options)\n this.#config = options?.config\n }\n}\n\nexport type { ClientProps, CredentialProps }\nexport { Client }\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["_Client","#config"],"sources":["../src/index.ts"],"sourcesContent":["import { Client as _Client } from '@notionhq/client'\n\nimport { DATA_TYPES } from './constants/index'\nimport {\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n getDeepFetchAllChildren,\n getInfoType,\n getNotionListing,\n getNotionListingByDate,\n getNotionSlug,\n getNotionSlugByRoute,\n getPagesById,\n getPathVariables,\n getQuery,\n} from './queries/index'\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype ClientProps = {\n custom: CustomProps\n dataTypes: DataTypesProps\n}\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype CredentialProps = {\n auth: string\n config: any\n}\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype CustomProps = {\n getBlocksByIdChildren: any\n getDatabasesByIdQuery: any\n getDeepFetchAllChildren: any\n getInfoType: any\n getPagesById: any\n getPathVariables: any\n getQuery: any\n}\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype DataTypesProps = {\n LISTING: any\n LISTING_BY_DATE: any\n SLUG: any\n SLUG_BY_ROUTE: any\n}\n\nclass Client extends _Client {\n #config?: any\n\n // @todo(notion) throw error if `config` is not passed\n public readonly custom = {\n getBlocksByIdChildren: async (props) =>\n await getBlocksByIdChildren({\n ...props,\n getBlocksChildrenList: this.blocks.children.list,\n }),\n\n getDatabasesByIdQuery: async (props) =>\n await getDatabasesByIdQuery({\n ...props,\n getDatabasesQuery: this.databases.query,\n }),\n\n getDeepFetchAllChildren: async (props) =>\n await getDeepFetchAllChildren({\n ...props,\n getBlocksChildrenList: this.blocks.children.list,\n }),\n\n getInfoType: (props) => {\n return getInfoType({ ...props, config: this.#config })\n },\n\n getPagesById: async (props) =>\n await getPagesById({ ...props, getPagesRetrieve: this.pages.retrieve }),\n\n getPathVariables: (props) =>\n getPathVariables({ ...props, config: this.#config }),\n\n getQuery: async (props) =>\n await getQuery({\n ...props,\n config: this.#config,\n notionDatabasesQuery: this.databases.query,\n }),\n }\n\n /**\n * @info details at: ../../utils/getDataType\n *\n */\n public readonly dataTypes = {\n [DATA_TYPES.LISTING]: async (props: {\n pathVariables: any\n routeType: any\n slug?: any\n }) => {\n // console.dir(`📦️ [@jeromefitz/notion] => ${DATA_TYPES.LISTING}`)\n return await getNotionListing({\n ...props,\n config: this.#config,\n getBlocksByIdChildren: this.custom.getBlocksByIdChildren,\n getDatabasesByIdQuery: this.custom.getDatabasesByIdQuery,\n getPagesById: this.custom.getPagesById,\n })\n },\n\n [DATA_TYPES.LISTING_BY_DATE]: async (props: {\n pathVariables: any\n routeType: any\n slug: any\n }) => {\n // console.dir(`📦️ [@jeromefitz/notion] => ${DATA_TYPES.LISTING_BY_DATE}`)\n return await getNotionListingByDate({\n ...props,\n config: this.#config,\n getBlocksByIdChildren: this.custom.getBlocksByIdChildren,\n getDatabasesByIdQuery: this.custom.getDatabasesByIdQuery,\n getPagesById: this.custom.getPagesById,\n })\n },\n\n [DATA_TYPES.SLUG]: async (props: {\n pathVariables: any\n routeType: any\n slug: any\n }) => {\n // console.dir(`📦️ [@jeromefitz/notion] => ${DATA_TYPES.SLUG}`)\n return await getNotionSlug({\n ...props,\n config: this.#config,\n getBlocksByIdChildren: this.custom.getBlocksByIdChildren,\n getDatabasesByIdQuery: this.custom.getDatabasesByIdQuery,\n getDeepFetchAllChildren: this.custom.getDeepFetchAllChildren,\n })\n },\n\n [DATA_TYPES.SLUG_BY_ROUTE]: async (props: {\n pathVariables: any\n routeType: any\n slug: any\n }) => {\n // console.dir(`📦️ [@jeromefitz/notion] => ${DATA_TYPES.SLUG_BY_ROUTE}`)\n return await getNotionSlugByRoute({\n ...props,\n config: this.#config,\n getBlocksByIdChildren: this.custom.getBlocksByIdChildren,\n getDatabasesByIdQuery: this.custom.getDatabasesByIdQuery,\n getQuery: this.custom.getQuery,\n })\n },\n }\n\n // public constructor(options?: ClientOptions) {\n public constructor(options?: any) {\n super(options)\n this.#config = options?.config\n }\n}\n\nexport type { ClientProps, CredentialProps }\nexport { Client }\n"],"mappings":"4rBAgDA,IAAM,EAAN,cAAqBA,CAAQ,CAC3B,GAGA,OAAyB,CACvB,sBAAuB,KAAO,IAC5B,MAAM,EAAsB,CAC1B,GAAG,EACH,sBAAuB,KAAK,OAAO,SAAS,IAC9C,CAAC,EAEH,sBAAuB,KAAO,IAC5B,MAAM,EAAsB,CAC1B,GAAG,EACH,kBAAmB,KAAK,UAAU,KACpC,CAAC,EAEH,wBAAyB,KAAO,IAC9B,MAAM,EAAwB,CAC5B,GAAG,EACH,sBAAuB,KAAK,OAAO,SAAS,IAC9C,CAAC,EAEH,YAAc,GACL,EAAY,CAAE,GAAG,EAAO,OAAQ,KAAKC,EAAQ,CAAC,EAGvD,aAAc,KAAO,IACnB,MAAM,EAAa,CAAE,GAAG,EAAO,iBAAkB,KAAK,MAAM,QAAS,CAAC,EAExE,iBAAmB,GACjB,EAAiB,CAAE,GAAG,EAAO,OAAQ,KAAKA,EAAQ,CAAC,EAErD,SAAU,KAAO,IACf,MAAM,EAAS,CACb,GAAG,EACH,OAAQ,KAAKA,GACb,qBAAsB,KAAK,UAAU,KACvC,CAAC,CACL,EAMA,UAA4B,EACzB,EAAW,SAAU,KAAO,IAMpB,MAAM,EAAiB,CAC5B,GAAG,EACH,OAAQ,KAAKA,GACb,sBAAuB,KAAK,OAAO,sBACnC,sBAAuB,KAAK,OAAO,sBACnC,aAAc,KAAK,OAAO,YAC5B,CAAC,GAGF,EAAW,iBAAkB,KAAO,IAM5B,MAAM,EAAuB,CAClC,GAAG,EACH,OAAQ,KAAKA,GACb,sBAAuB,KAAK,OAAO,sBACnC,sBAAuB,KAAK,OAAO,sBACnC,aAAc,KAAK,OAAO,YAC5B,CAAC,GAGF,EAAW,MAAO,KAAO,IAMjB,MAAM,EAAc,CACzB,GAAG,EACH,OAAQ,KAAKA,GACb,sBAAuB,KAAK,OAAO,sBACnC,sBAAuB,KAAK,OAAO,sBACnC,wBAAyB,KAAK,OAAO,uBACvC,CAAC,GAGF,EAAW,eAAgB,KAAO,IAM1B,MAAM,EAAqB,CAChC,GAAG,EACH,OAAQ,KAAKA,GACb,sBAAuB,KAAK,OAAO,sBACnC,sBAAuB,KAAK,OAAO,sBACnC,SAAU,KAAK,OAAO,QACxB,CAAC,CAEL,EAGA,YAAmB,EAAe,CAChC,MAAM,CAAO,EACb,KAAKA,GAAU,GAAS,MAC1B,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeromefitz/notion",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Notion: Custom Client for jeromefitzgerald.com",
|
|
6
6
|
"repository": {
|
|
@@ -76,17 +76,17 @@
|
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@jeromefitz/utils": "^4.0.0",
|
|
79
|
-
"lodash-es": "^4.
|
|
79
|
+
"lodash-es": "^4.18.0"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@notionhq/client": "4.0.2",
|
|
83
|
-
"date-fns": "4.
|
|
83
|
+
"date-fns": "4.3.0",
|
|
84
84
|
"github-slugger": "2.0.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@jeromefitz/utils": "workspace:*",
|
|
88
88
|
"@types/lodash-es": "4.17.12",
|
|
89
|
-
"lodash-es": "4.
|
|
89
|
+
"lodash-es": "4.18.0"
|
|
90
90
|
},
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{avoidRateLimit as e,isUndefined as t}from"@jeromefitz/utils";const n=async({block_id:n,getBlocksChildrenList:r})=>t(n)?[]:(await e(0),await r({block_id:n}));export{n as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/queries/getBlocksByIdChildren/index.ts"],"sourcesContent":["import { avoidRateLimit, isUndefined } from '@jeromefitz/utils'\n\n// @todo(types)\nconst getBlocksByIdChildren = async ({ block_id, getBlocksChildrenList }) => {\n if (isUndefined(block_id)) return []\n await avoidRateLimit(0)\n return await getBlocksChildrenList({\n block_id,\n })\n}\n\nexport default getBlocksByIdChildren\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/queries/getBlocksByIdChildren/index.ts"],"sourcesContent":["import { avoidRateLimit, isUndefined } from '@jeromefitz/utils'\n\n// @todo(types)\nconst getBlocksByIdChildren = async ({ block_id, getBlocksChildrenList }) => {\n if (isUndefined(block_id)) return []\n await avoidRateLimit(0)\n return await getBlocksChildrenList({\n block_id,\n })\n}\n\nexport default getBlocksByIdChildren\n"],"mappings":"oEAGA,MAAM,EAAwB,MAAO,CAAE,WAAU,2BAC3C,EAAY,CAAQ,EAAU,CAAC,GACnC,MAAM,EAAe,CAAC,EACf,MAAM,EAAsB,CACjC,UACF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{PROPERTIES as e}from"../../constants/index.mjs";const t={sorts:[{direction:`ascending`,property:e.slug.notion}]},n=async({database_id:e,filter:n=t?.filter,getDatabasesQuery:r,sorts:i=t?.sorts})=>e?await r({database_id:e,filter:n,sorts:i}):[];export{n as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/queries/getDatabasesByIdQuery/index.ts"],"sourcesContent":["import type { SortMock } from '../../schema/index'\n\nimport { PROPERTIES } from '../../constants/index'\n\nconst sortDefault: SortMock = {\n sorts: [\n {\n direction: 'ascending',\n property: PROPERTIES.slug.notion,\n },\n ],\n}\n\n// @todo(types)\nconst getDatabasesByIdQuery = async ({\n database_id,\n filter = sortDefault?.filter,\n getDatabasesQuery,\n sorts = sortDefault?.sorts,\n}) => {\n if (!database_id) return []\n return await getDatabasesQuery({\n database_id,\n filter,\n sorts,\n })\n}\n\nexport default getDatabasesByIdQuery\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/queries/getDatabasesByIdQuery/index.ts"],"sourcesContent":["import type { SortMock } from '../../schema/index'\n\nimport { PROPERTIES } from '../../constants/index'\n\nconst sortDefault: SortMock = {\n sorts: [\n {\n direction: 'ascending',\n property: PROPERTIES.slug.notion,\n },\n ],\n}\n\n// @todo(types)\nconst getDatabasesByIdQuery = async ({\n database_id,\n filter = sortDefault?.filter,\n getDatabasesQuery,\n sorts = sortDefault?.sorts,\n}) => {\n if (!database_id) return []\n return await getDatabasesQuery({\n database_id,\n filter,\n sorts,\n })\n}\n\nexport default getDatabasesByIdQuery\n"],"mappings":"uDAIA,MAAM,EAAwB,CAC5B,MAAO,CACL,CACE,UAAW,YACX,SAAU,EAAW,KAAK,MAC5B,CACF,CACF,EAGM,EAAwB,MAAO,CACnC,cACA,SAAS,GAAa,OACtB,oBACA,QAAQ,GAAa,SAEhB,EACE,MAAM,EAAkB,CAC7B,cACA,SACA,OACF,CAAC,EALwB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
const e=async({blocks:t,getBlocksChildrenList:n})=>{if(t==null)return t;let r=t.filter(e=>e.has_children).map(e=>{let{id:t}=e;return{parent_block:e,promise:n({block_id:t,page_size:100})}}),i=await Promise.all(r.map(e=>e.promise));for(let t=0;t<i.length;t++){let a=i[t].results;if(await e({blocks:a,getBlocksChildrenList:n}),r[t]){let e=r[t].parent_block;e[e.type].children=a}}return t};export{e as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/queries/getDeepFetchAllChildren/index.ts"],"sourcesContent":["const getDeepFetchAllChildren = async ({\n blocks,\n getBlocksChildrenList,\n}): Promise<Array<any | any[]>> => {\n if (blocks === null || blocks === undefined) return blocks\n const fetchChildrenMap = blocks\n .filter((block: { has_children: any }) => block.has_children)\n .map((parent_block: { id: string }) => {\n const { id: block_id } = parent_block\n return {\n parent_block,\n promise: getBlocksChildrenList({\n block_id,\n page_size: 100,\n }),\n }\n })\n\n const results = await Promise.all<any>(\n fetchChildrenMap.map((value) => value.promise),\n )\n\n for (let i = 0; i < results.length; i++) {\n const blocks = results[i].results\n await getDeepFetchAllChildren({\n blocks,\n getBlocksChildrenList,\n })\n if (fetchChildrenMap[i]) {\n const parent: any = fetchChildrenMap[i].parent_block\n parent[parent.type].children = blocks\n }\n }\n return blocks\n}\n\nexport default getDeepFetchAllChildren\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/queries/getDeepFetchAllChildren/index.ts"],"sourcesContent":["const getDeepFetchAllChildren = async ({\n blocks,\n getBlocksChildrenList,\n}): Promise<Array<any | any[]>> => {\n if (blocks === null || blocks === undefined) return blocks\n const fetchChildrenMap = blocks\n .filter((block: { has_children: any }) => block.has_children)\n .map((parent_block: { id: string }) => {\n const { id: block_id } = parent_block\n return {\n parent_block,\n promise: getBlocksChildrenList({\n block_id,\n page_size: 100,\n }),\n }\n })\n\n const results = await Promise.all<any>(\n fetchChildrenMap.map((value) => value.promise),\n )\n\n for (let i = 0; i < results.length; i++) {\n const blocks = results[i].results\n await getDeepFetchAllChildren({\n blocks,\n getBlocksChildrenList,\n })\n if (fetchChildrenMap[i]) {\n const parent: any = fetchChildrenMap[i].parent_block\n parent[parent.type].children = blocks\n }\n }\n return blocks\n}\n\nexport default getDeepFetchAllChildren\n"],"mappings":"AAAA,MAAM,EAA0B,MAAO,CACrC,SACA,2BACiC,CACjC,GAAI,GAAW,KAA8B,OAAO,EACpD,IAAM,EAAmB,EACtB,OAAQ,GAAiC,EAAM,YAAY,EAC3D,IAAK,GAAiC,CACrC,GAAM,CAAE,GAAI,GAAa,EACzB,MAAO,CACL,eACA,QAAS,EAAsB,CAC7B,WACA,UAAW,GACb,CAAC,CACH,CACF,CAAC,EAEG,EAAU,MAAM,QAAQ,IAC5B,EAAiB,IAAK,GAAU,EAAM,OAAO,CAC/C,EAEA,IAAK,IAAI,EAAI,EAAG,EAAI,EAAQ,OAAQ,IAAK,CACvC,IAAM,EAAS,EAAQ,GAAG,QAK1B,GAJA,MAAM,EAAwB,CAC5B,SACA,uBACF,CAAC,EACG,EAAiB,GAAI,CACvB,IAAM,EAAc,EAAiB,GAAG,aACxC,EAAO,EAAO,MAAM,SAAW,CACjC,CACF,CACA,OAAO,CACT"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
const e=({config:e,item:t,meta:n,routeType:r})=>{let{NOTION:i}=e,a=``,o=t.properties?.slug,s=``;switch(r){case i.BLOG.routeType:case i.EVENTS.routeType:a=t.properties[i[r.toUpperCase()].infoType.key]?.start.slice(0,10);let[e,c,l]=a?.split(`-`);s=`/${r}/${e}/${c}/${l}/${o}`;break;case i.EPISODES.routeType:s=`/${n?.join(`/`)}/${o}`;break;default:s=`/${r}/${o}`;break}return s=s.replace(`//`,`/`),{as:s,date:a,href:`/[...catchAll]`,slug:o}};export{e as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/queries/getInfoType/index.ts"],"sourcesContent":["/** biome-ignore-all lint/correctness/noSwitchDeclarations: migrate */\n/** biome-ignore-all lint/correctness/noUnsafeOptionalChaining: migrate */\nconst getInfoType = ({ config, item, meta, routeType }) => {\n const { NOTION } = config\n\n let date = ''\n const slug = item.properties?.slug\n\n let as = ''\n const href = `/[...catchAll]`\n\n switch (routeType) {\n case NOTION.BLOG.routeType:\n case NOTION.EVENTS.routeType:\n date = item.properties[\n NOTION[routeType.toUpperCase()].infoType.key\n ]?.start.slice(0, 10)\n const [year, month, day] = date?.split('-')\n as = `/${routeType}/${year}/${month}/${day}/${slug}`\n break\n case NOTION.EPISODES.routeType:\n as = `/${meta?.join('/')}/${slug}`\n break\n // case NOTION.PODCASTS.routeType:\n // case NOTION.PEOPLE.routeType:\n // case NOTION.SHOWS.routeType:\n // case NOTION.VENUES.routeType:\n default:\n as = `/${routeType}/${slug}`\n break\n }\n\n as = as.replace('//', '/')\n\n return {\n as,\n date,\n href,\n slug,\n }\n}\n\nexport default getInfoType\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/queries/getInfoType/index.ts"],"sourcesContent":["/** biome-ignore-all lint/correctness/noSwitchDeclarations: migrate */\n/** biome-ignore-all lint/correctness/noUnsafeOptionalChaining: migrate */\nconst getInfoType = ({ config, item, meta, routeType }) => {\n const { NOTION } = config\n\n let date = ''\n const slug = item.properties?.slug\n\n let as = ''\n const href = `/[...catchAll]`\n\n switch (routeType) {\n case NOTION.BLOG.routeType:\n case NOTION.EVENTS.routeType:\n date = item.properties[\n NOTION[routeType.toUpperCase()].infoType.key\n ]?.start.slice(0, 10)\n const [year, month, day] = date?.split('-')\n as = `/${routeType}/${year}/${month}/${day}/${slug}`\n break\n case NOTION.EPISODES.routeType:\n as = `/${meta?.join('/')}/${slug}`\n break\n // case NOTION.PODCASTS.routeType:\n // case NOTION.PEOPLE.routeType:\n // case NOTION.SHOWS.routeType:\n // case NOTION.VENUES.routeType:\n default:\n as = `/${routeType}/${slug}`\n break\n }\n\n as = as.replace('//', '/')\n\n return {\n as,\n date,\n href,\n slug,\n }\n}\n\nexport default getInfoType\n"],"mappings":"AAEA,MAAM,GAAe,CAAE,SAAQ,OAAM,OAAM,eAAgB,CACzD,GAAM,CAAE,UAAW,EAEf,EAAO,GACL,EAAO,EAAK,YAAY,KAE1B,EAAK,GAGT,OAAQ,EAAR,CACE,KAAK,EAAO,KAAK,UACjB,KAAK,EAAO,OAAO,UACjB,EAAO,EAAK,WACV,EAAO,EAAU,YAAY,GAAG,SAAS,MACxC,MAAM,MAAM,EAAG,EAAE,EACpB,GAAM,CAAC,EAAM,EAAO,GAAO,GAAM,MAAM,GAAG,EAC1C,EAAK,IAAI,EAAU,GAAG,EAAK,GAAG,EAAM,GAAG,EAAI,GAAG,IAC9C,MACF,KAAK,EAAO,SAAS,UACnB,EAAK,IAAI,GAAM,KAAK,GAAG,EAAE,GAAG,IAC5B,MAKF,QACE,EAAK,IAAI,EAAU,GAAG,IACtB,KACJ,CAIA,MAFA,GAAK,EAAG,QAAQ,KAAM,GAAG,EAElB,CACL,KACA,OACA,sBACA,MACF,CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{PROPERTIES as e}from"../../constants/index.mjs";import{n as t}from"../../utils-VfbevQkn.mjs";import{map as n,omit as r}from"lodash-es";import{sortObject as i}from"@jeromefitz/utils";const a=async({config:a,getBlocksByIdChildren:o,getDatabasesByIdQuery:s,getPagesById:c,pathVariables:l,routeType:u})=>{let{NOTION:d}=a,f={},p=d[u.toUpperCase()].page_id__seo,m=await c({page_id:p});if(!m)return{};m?.object===`page`&&(f=r(m,`properties`),f.properties=i(t({config:a,data:m,pageId:f.id,pathVariables:l})));let h=d[u.toUpperCase()].infoType.notion??e.datePublished.notion,g=h===e.datePublished.notion?new Date(`2020-01-01`).toISOString():new Date().toISOString(),_=await o({block_id:f.id}),v=await s({database_id:d[u.toUpperCase()].database_id,filter:{and:[{date:{on_or_after:g},property:h}]}}),y=[];n(v.results,e=>{let n=e;n=r(n,`properties`),n.properties=i(t({config:a,data:e,pageId:e.id,pathVariables:l})),y.push(n)});let b=r(v,`results`);return b.results=y,{content:_,images:{},info:f,items:b}};export{a as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|