@jeromefitz/notion 6.2.0-canary.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/utils/get-types/_unsupported.mjs → _unsupported-BUIwc9lr.mjs} +2 -2
- package/_unsupported-BUIwc9lr.mjs.map +1 -0
- package/{dist/utils/add-time/index.mjs → add-time-B_LfV4Ex.mjs} +2 -2
- package/add-time-B_LfV4Ex.mjs.map +1 -0
- package/checkbox-Cil1erOZ.mjs +2 -0
- package/checkbox-Cil1erOZ.mjs.map +1 -0
- package/constants/index.d.mts +2 -0
- package/constants/index.mjs +1 -0
- package/{dist/constants/index.mjs → constants-C2jPji6h.mjs} +2 -2
- package/constants-C2jPji6h.mjs.map +1 -0
- package/date-IJAT1r3Y.mjs +2 -0
- package/date-IJAT1r3Y.mjs.map +1 -0
- package/dist-BQciLh9t.mjs +2 -0
- package/dist-BQciLh9t.mjs.map +1 -0
- package/email-DygPLxSo.mjs +2 -0
- package/email-DygPLxSo.mjs.map +1 -0
- package/{dist/utils/get-types/files.mjs → files-Dx1jw5iY.mjs} +2 -2
- package/files-Dx1jw5iY.mjs.map +1 -0
- package/{dist/queries/get-blocks-by-id-children/index.mjs → get-blocks-by-id-children-BRe4p0pZ.mjs} +2 -2
- package/get-blocks-by-id-children-BRe4p0pZ.mjs.map +1 -0
- package/get-data-type-B5X5VOmp.mjs +2 -0
- package/get-data-type-B5X5VOmp.mjs.map +1 -0
- package/get-databases-by-id-query-CI9TMkPN.mjs +2 -0
- package/get-databases-by-id-query-CI9TMkPN.mjs.map +1 -0
- package/{dist/queries/get-deep-fetch-all-children/index.mjs → get-deep-fetch-all-children-DVZ-HFbN.mjs} +2 -2
- package/get-deep-fetch-all-children-DVZ-HFbN.mjs.map +1 -0
- package/{dist/queries/get-info-type/index.mjs → get-info-type-CUsHqtfs.mjs} +2 -2
- package/get-info-type-CUsHqtfs.mjs.map +1 -0
- package/get-notion-listing-JJxOipMx.mjs +2 -0
- package/get-notion-listing-JJxOipMx.mjs.map +1 -0
- package/get-notion-listing-by-date-CSKBdFDQ.mjs +2 -0
- package/get-notion-listing-by-date-CSKBdFDQ.mjs.map +1 -0
- package/get-notion-slug-BecwpT0b.mjs +2 -0
- package/get-notion-slug-BecwpT0b.mjs.map +1 -0
- package/get-notion-slug-by-route-Dh428D_m.mjs +2 -0
- package/get-notion-slug-by-route-Dh428D_m.mjs.map +1 -0
- package/{dist/queries/get-pages-by-id/index.mjs → get-pages-by-id-D_3I7OED.mjs} +2 -2
- package/get-pages-by-id-D_3I7OED.mjs.map +1 -0
- package/get-path-variables-CnBrxTgg.mjs +2 -0
- package/get-path-variables-CnBrxTgg.mjs.map +1 -0
- package/get-query-ljtSpKL5.mjs +2 -0
- package/get-query-ljtSpKL5.mjs.map +1 -0
- package/{dist/utils/get-title/index.mjs → get-title-BWc2Ckhi.mjs} +2 -2
- package/get-title-BWc2Ckhi.mjs.map +1 -0
- package/get-types-Clb6OmBv.mjs +2 -0
- package/{dist/get-types-7QEbhRzY.mjs.map → get-types-Clb6OmBv.mjs.map} +1 -1
- package/{dist/constants/index.d.mts → index-BD5kzRhY.d.mts} +3 -3
- package/index-BD5kzRhY.d.mts.map +1 -0
- package/{dist/utils/get-data-type/index.d.mts → index-BGofpiiB.d.mts} +3 -3
- package/index-BGofpiiB.d.mts.map +1 -0
- package/{dist/queries/get-notion-listing-by-date/index.d.mts → index-BIttGCzA.d.mts} +2 -2
- package/index-BIttGCzA.d.mts.map +1 -0
- package/{dist/queries/get-pages-by-id/index.d.mts → index-C-J3ICp0.d.mts} +2 -2
- package/index-C-J3ICp0.d.mts.map +1 -0
- package/{dist/queries/get-notion-slug-by-route/index.d.mts → index-CLQVoKDp.d.mts} +2 -2
- package/index-CLQVoKDp.d.mts.map +1 -0
- package/{dist/queries/get-databases-by-id-query/index.d.mts → index-CucnheQT.d.mts} +3 -3
- package/index-CucnheQT.d.mts.map +1 -0
- package/{dist/queries/get-path-variables/index.d.mts → index-D16uYjWr.d.mts} +3 -3
- package/index-D16uYjWr.d.mts.map +1 -0
- package/{dist/queries/get-notion-listing/index.d.mts → index-D4Gn1cYC.d.mts} +2 -2
- package/index-D4Gn1cYC.d.mts.map +1 -0
- package/{dist/utils/data-normalized-results/index.d.mts → index-DMqCumJi.d.mts} +2 -2
- package/index-DMqCumJi.d.mts.map +1 -0
- package/{dist/utils/get-types/index.d.mts → index-DZSqTeBx.d.mts} +2 -2
- package/index-DZSqTeBx.d.mts.map +1 -0
- package/{dist/utils/data-normalized/index.d.mts → index-DZjFlXjH.d.mts} +2 -2
- package/index-DZjFlXjH.d.mts.map +1 -0
- package/{dist/queries/get-deep-fetch-all-children/index.d.mts → index-D_fBH_D4.d.mts} +2 -2
- package/index-D_fBH_D4.d.mts.map +1 -0
- package/{dist/queries/get-notion-slug/index.d.mts → index-Dx2yW5u0.d.mts} +2 -2
- package/index-Dx2yW5u0.d.mts.map +1 -0
- package/{dist/utils/add-time/index.d.mts → index-DxiWPo1l.d.mts} +2 -2
- package/index-DxiWPo1l.d.mts.map +1 -0
- package/{dist/queries/get-info-type/index.d.mts → index-H5Qko6iL.d.mts} +2 -2
- package/index-H5Qko6iL.d.mts.map +1 -0
- package/{dist/utils/get-title/index.d.mts → index-iru-ct3u.d.mts} +2 -2
- package/index-iru-ct3u.d.mts.map +1 -0
- package/{dist/queries/get-blocks-by-id-children/index.d.mts → index-oAghjuN5.d.mts} +2 -2
- package/index-oAghjuN5.d.mts.map +1 -0
- package/{dist/queries/get-query/index.d.mts → index-wMZIVRBv.d.mts} +2 -2
- package/index-wMZIVRBv.d.mts.map +1 -0
- package/{dist/index.d.mts → index.d.mts} +1 -1
- package/index.d.mts.map +1 -0
- package/index.mjs +2 -0
- package/index.mjs.map +1 -0
- package/index.test.d.mts +1 -0
- package/index.test.mjs +129 -0
- package/index.test.mjs.map +1 -0
- package/magic-string.es-D6kIB8Km.mjs +18 -0
- package/magic-string.es-D6kIB8Km.mjs.map +1 -0
- package/{dist/utils/get-types/multi-select.mjs → multi-select-BTDQCZWJ.mjs} +2 -2
- package/multi-select-BTDQCZWJ.mjs.map +1 -0
- package/number-DXsVfS7U.mjs +2 -0
- package/number-DXsVfS7U.mjs.map +1 -0
- package/package.json +57 -208
- package/{dist/utils/get-types/people.mjs → people-Ognwaka4.mjs} +2 -2
- package/people-Ognwaka4.mjs.map +1 -0
- package/phone-number-D-jSJ6fm.mjs +2 -0
- package/phone-number-D-jSJ6fm.mjs.map +1 -0
- package/queries/get-blocks-by-id-children/index.d.mts +2 -0
- package/queries/get-blocks-by-id-children/index.mjs +1 -0
- package/queries/get-databases-by-id-query/index.d.mts +2 -0
- package/queries/get-databases-by-id-query/index.mjs +1 -0
- package/queries/get-deep-fetch-all-children/index.d.mts +2 -0
- package/queries/get-deep-fetch-all-children/index.mjs +1 -0
- package/queries/get-info-type/index.d.mts +2 -0
- package/queries/get-info-type/index.mjs +1 -0
- package/queries/get-notion-listing/index.d.mts +2 -0
- package/queries/get-notion-listing/index.mjs +1 -0
- package/queries/get-notion-listing-by-date/index.d.mts +2 -0
- package/queries/get-notion-listing-by-date/index.mjs +1 -0
- package/queries/get-notion-slug/index.d.mts +2 -0
- package/queries/get-notion-slug/index.mjs +1 -0
- package/queries/get-notion-slug-by-route/index.d.mts +2 -0
- package/queries/get-notion-slug-by-route/index.mjs +1 -0
- package/queries/get-pages-by-id/index.d.mts +2 -0
- package/queries/get-pages-by-id/index.mjs +1 -0
- package/queries/get-path-variables/index.d.mts +2 -0
- package/queries/get-path-variables/index.mjs +1 -0
- package/queries/get-query/index.d.mts +2 -0
- package/queries/get-query/index.mjs +1 -0
- package/queries/index.d.mts +12 -0
- package/queries/index.mjs +1 -0
- package/queries-CCGQpuUT.mjs +1 -0
- package/{dist/utils/get-types/rich-text.mjs → rich-text-pNpMuY2o.mjs} +2 -2
- package/rich-text-pNpMuY2o.mjs.map +1 -0
- package/{dist/utils/get-types/select.mjs → select-i6mHDBMN.mjs} +2 -2
- package/select-i6mHDBMN.mjs.map +1 -0
- package/title-vmIyt8-r.mjs +2 -0
- package/title-vmIyt8-r.mjs.map +1 -0
- package/url-D7qu9nU2.mjs +2 -0
- package/url-D7qu9nU2.mjs.map +1 -0
- package/utils/add-time/index.d.mts +2 -0
- package/utils/add-time/index.mjs +1 -0
- package/utils/data-normalized/index.d.mts +2 -0
- package/utils/data-normalized/index.mjs +1 -0
- package/utils/data-normalized-results/index.d.mts +2 -0
- package/utils/data-normalized-results/index.mjs +1 -0
- package/utils/get-data-type/index.d.mts +2 -0
- package/utils/get-data-type/index.mjs +1 -0
- package/utils/get-title/index.d.mts +2 -0
- package/utils/get-title/index.mjs +1 -0
- package/utils/get-types/_unsupported.mjs +1 -0
- package/utils/get-types/checkbox.mjs +1 -0
- package/utils/get-types/date.mjs +1 -0
- package/utils/get-types/email.mjs +1 -0
- package/utils/get-types/files.mjs +1 -0
- package/utils/get-types/index.d.mts +2 -0
- package/utils/get-types/index.mjs +1 -0
- package/utils/get-types/multi-select.mjs +1 -0
- package/utils/get-types/number.mjs +1 -0
- package/utils/get-types/people.mjs +1 -0
- package/utils/get-types/phone-number.mjs +1 -0
- package/utils/get-types/relation.mjs +1 -0
- package/utils/get-types/rich-text.mjs +1 -0
- package/utils/get-types/rollup.mjs +1 -0
- package/utils/get-types/select.mjs +1 -0
- package/utils/get-types/title.mjs +1 -0
- package/utils/get-types/url.mjs +1 -0
- package/utils/index.d.mts +7 -0
- package/utils/index.mjs +1 -0
- package/utils-B1QU_ezs.mjs +2 -0
- package/{dist/utils-SxsCJsDP.mjs.map → utils-B1QU_ezs.mjs.map} +1 -1
- package/.turbo/turbo-build.log +0 -4
- package/.turbo/turbo-lint$colon$ts.log +0 -1
- package/dist/constants/index.d.mts.map +0 -1
- package/dist/constants/index.mjs.map +0 -1
- package/dist/get-types-7QEbhRzY.mjs +0 -2
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +0 -1
- package/dist/queries/get-blocks-by-id-children/index.d.mts.map +0 -1
- package/dist/queries/get-blocks-by-id-children/index.mjs.map +0 -1
- package/dist/queries/get-databases-by-id-query/index.d.mts.map +0 -1
- package/dist/queries/get-databases-by-id-query/index.mjs +0 -2
- package/dist/queries/get-databases-by-id-query/index.mjs.map +0 -1
- package/dist/queries/get-deep-fetch-all-children/index.d.mts.map +0 -1
- package/dist/queries/get-deep-fetch-all-children/index.mjs.map +0 -1
- package/dist/queries/get-info-type/index.d.mts.map +0 -1
- package/dist/queries/get-info-type/index.mjs.map +0 -1
- package/dist/queries/get-notion-listing/index.d.mts.map +0 -1
- package/dist/queries/get-notion-listing/index.mjs +0 -2
- package/dist/queries/get-notion-listing/index.mjs.map +0 -1
- package/dist/queries/get-notion-listing-by-date/index.d.mts.map +0 -1
- package/dist/queries/get-notion-listing-by-date/index.mjs +0 -2
- package/dist/queries/get-notion-listing-by-date/index.mjs.map +0 -1
- package/dist/queries/get-notion-slug/index.d.mts.map +0 -1
- package/dist/queries/get-notion-slug/index.mjs +0 -2
- package/dist/queries/get-notion-slug/index.mjs.map +0 -1
- package/dist/queries/get-notion-slug-by-route/index.d.mts.map +0 -1
- package/dist/queries/get-notion-slug-by-route/index.mjs +0 -2
- package/dist/queries/get-notion-slug-by-route/index.mjs.map +0 -1
- package/dist/queries/get-pages-by-id/index.d.mts.map +0 -1
- package/dist/queries/get-pages-by-id/index.mjs.map +0 -1
- package/dist/queries/get-path-variables/index.d.mts.map +0 -1
- package/dist/queries/get-path-variables/index.mjs +0 -2
- package/dist/queries/get-path-variables/index.mjs.map +0 -1
- package/dist/queries/get-query/index.d.mts.map +0 -1
- package/dist/queries/get-query/index.mjs +0 -2
- package/dist/queries/get-query/index.mjs.map +0 -1
- package/dist/queries/index.d.mts +0 -12
- package/dist/queries/index.mjs +0 -1
- package/dist/utils/add-time/index.d.mts.map +0 -1
- package/dist/utils/add-time/index.mjs.map +0 -1
- package/dist/utils/data-normalized/index.d.mts.map +0 -1
- package/dist/utils/data-normalized/index.mjs +0 -1
- package/dist/utils/data-normalized-results/index.d.mts.map +0 -1
- package/dist/utils/data-normalized-results/index.mjs +0 -1
- package/dist/utils/get-data-type/index.d.mts.map +0 -1
- package/dist/utils/get-data-type/index.mjs +0 -2
- package/dist/utils/get-data-type/index.mjs.map +0 -1
- package/dist/utils/get-title/index.d.mts.map +0 -1
- package/dist/utils/get-title/index.mjs.map +0 -1
- package/dist/utils/get-types/_unsupported.mjs.map +0 -1
- package/dist/utils/get-types/checkbox.mjs +0 -2
- package/dist/utils/get-types/checkbox.mjs.map +0 -1
- package/dist/utils/get-types/date.mjs +0 -2
- package/dist/utils/get-types/date.mjs.map +0 -1
- package/dist/utils/get-types/email.mjs +0 -2
- package/dist/utils/get-types/email.mjs.map +0 -1
- package/dist/utils/get-types/files.mjs.map +0 -1
- package/dist/utils/get-types/index.d.mts.map +0 -1
- package/dist/utils/get-types/index.mjs +0 -1
- package/dist/utils/get-types/multi-select.mjs.map +0 -1
- package/dist/utils/get-types/number.mjs +0 -2
- package/dist/utils/get-types/number.mjs.map +0 -1
- package/dist/utils/get-types/people.mjs.map +0 -1
- package/dist/utils/get-types/phone-number.mjs +0 -2
- package/dist/utils/get-types/phone-number.mjs.map +0 -1
- package/dist/utils/get-types/relation.mjs +0 -1
- package/dist/utils/get-types/rich-text.mjs.map +0 -1
- package/dist/utils/get-types/rollup.mjs +0 -1
- package/dist/utils/get-types/select.mjs.map +0 -1
- package/dist/utils/get-types/title.mjs +0 -2
- package/dist/utils/get-types/title.mjs.map +0 -1
- package/dist/utils/get-types/url.mjs +0 -2
- package/dist/utils/get-types/url.mjs.map +0 -1
- package/dist/utils/index.d.mts +0 -7
- package/dist/utils/index.mjs +0 -1
- package/dist/utils-SxsCJsDP.mjs +0 -2
- package/release.config.js +0 -25
- package/src/constants/index.ts +0 -1326
- package/src/index.ts +0 -151
- package/src/queries/get-blocks-by-id-children/index.ts +0 -12
- package/src/queries/get-databases-by-id-query/index.ts +0 -28
- package/src/queries/get-deep-fetch-all-children/index.ts +0 -35
- package/src/queries/get-info-type/index.ts +0 -40
- package/src/queries/get-notion-listing/index.ts +0 -91
- package/src/queries/get-notion-listing-by-date/index.ts +0 -190
- package/src/queries/get-notion-slug/index.ts +0 -64
- package/src/queries/get-notion-slug-by-route/index.ts +0 -201
- package/src/queries/get-pages-by-id/index.ts +0 -12
- package/src/queries/get-path-variables/index.ts +0 -60
- package/src/queries/get-query/index.ts +0 -140
- package/src/queries/index.ts +0 -25
- package/src/schema/index.ts +0 -386
- package/src/utils/add-time/index.ts +0 -16
- package/src/utils/data-normalized/index.ts +0 -49
- package/src/utils/data-normalized-results/index.ts +0 -29
- package/src/utils/get-data-type/index.ts +0 -62
- package/src/utils/get-title/index.ts +0 -21
- package/src/utils/get-types/_unsupported.ts +0 -7
- package/src/utils/get-types/checkbox.ts +0 -3
- package/src/utils/get-types/date.ts +0 -6
- package/src/utils/get-types/email.ts +0 -3
- package/src/utils/get-types/files.ts +0 -67
- package/src/utils/get-types/index.ts +0 -41
- package/src/utils/get-types/multi-select.ts +0 -16
- package/src/utils/get-types/number.ts +0 -6
- package/src/utils/get-types/people.ts +0 -22
- package/src/utils/get-types/phone-number.ts +0 -3
- package/src/utils/get-types/relation.ts +0 -18
- package/src/utils/get-types/rich-text.ts +0 -5
- package/src/utils/get-types/rollup.ts +0 -30
- package/src/utils/get-types/select.ts +0 -21
- package/src/utils/get-types/title.ts +0 -4
- package/src/utils/get-types/url.ts +0 -3
- package/src/utils/index.ts +0 -16
- package/tsconfig.json +0 -15
- package/tsdown.config.ts +0 -14
- /package/{dist/index-BAoq6yHe.d.mts → index-BAoq6yHe.d.mts} +0 -0
- /package/{dist/index-BAoq6yHe.d.mts.map → index-BAoq6yHe.d.mts.map} +0 -0
- /package/{dist/schema → schema}/index.d.mts +0 -0
- /package/{dist/schema → schema}/index.mjs +0 -0
- /package/{dist/utils → utils}/get-types/_unsupported.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/_unsupported.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/checkbox.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/checkbox.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/date.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/date.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/email.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/email.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/files.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/files.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/multi-select.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/multi-select.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/number.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/number.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/people.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/people.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/phone-number.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/phone-number.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/relation.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/relation.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/rich-text.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/rich-text.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/rollup.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/rollup.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/select.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/select.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/title.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/title.d.mts.map +0 -0
- /package/{dist/utils → utils}/get-types/url.d.mts +0 -0
- /package/{dist/utils → utils}/get-types/url.d.mts.map +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=e=>(console.dir(`@notion(_unsupported)`),e);export{e as
|
|
2
|
-
//# sourceMappingURL=_unsupported.mjs.map
|
|
1
|
+
const e=e=>(console.dir(`@notion(_unsupported)`),e);export{e as t};
|
|
2
|
+
//# sourceMappingURL=_unsupported-BUIwc9lr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_unsupported-BUIwc9lr.mjs","names":[],"sources":["../src/utils/get-types/_unsupported.ts"],"sourcesContent":["const _unsupported = (data: any) => {\n console.dir(`@notion(_unsupported)`);\n // console.dir(data)\n return data;\n};\n\nexport default _unsupported;\n"],"mappings":"AAAA,MAAM,EAAgB,IACpB,QAAQ,IAAI,uBAAuB,EAE5B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{addDays as e,addMonths as t,addYears as n}from"date-fns";const r=(r,i)=>{switch(i){case`day`:return e(r,2).toISOString();case`month`:return t(r,1).toISOString();case`year`:return n(r,1).toISOString()}return e(r,-1).toISOString()};export{r as
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
import{addDays as e,addMonths as t,addYears as n}from"date-fns";const r=(r,i)=>{switch(i){case`day`:return e(r,2).toISOString();case`month`:return t(r,1).toISOString();case`year`:return n(r,1).toISOString()}return e(r,-1).toISOString()};export{r as t};
|
|
2
|
+
//# sourceMappingURL=add-time-B_LfV4Ex.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-time-B_LfV4Ex.mjs","names":["_addDays","_addMonths","_addYears"],"sources":["../src/utils/add-time/index.ts"],"sourcesContent":["import { addDays as _addDays, addMonths as _addMonths, addYears as _addYears } from \"date-fns\";\n\nconst addTime = (date, type) => {\n switch (type) {\n case \"day\":\n // @hack the TimeZone to UTC is ... not great.\n return _addDays(date, 2).toISOString();\n case \"month\":\n return _addMonths(date, 1).toISOString();\n case \"year\":\n return _addYears(date, 1).toISOString();\n }\n return _addDays(date, -1).toISOString();\n};\n\nexport default addTime;\n"],"mappings":"gEAEA,MAAM,GAAW,EAAM,IAAS,CAC9B,OAAQ,EAAR,CACE,IAAK,MAEH,OAAOA,EAAS,EAAM,CAAC,CAAC,CAAC,YAAY,EACvC,IAAK,QACH,OAAOC,EAAW,EAAM,CAAC,CAAC,CAAC,YAAY,EACzC,IAAK,OACH,OAAOC,EAAU,EAAM,CAAC,CAAC,CAAC,YAAY,CAC1C,CACA,OAAOF,EAAS,EAAM,EAAE,CAAC,CAAC,YAAY,CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-Cil1erOZ.mjs","names":[],"sources":["../src/utils/get-types/checkbox.ts"],"sourcesContent":["const checkbox = (data: any) => data.checkbox || false;\n\nexport default checkbox;\n"],"mappings":"AAAA,MAAM,EAAY,GAAc,EAAK,UAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"../constants-C2jPji6h.mjs";export{o as DATA_TYPES,n as INIT,i as LOOKUP,t as PROPERTIES,e as PROPERTIES_LOOKUP,r as QUERIES,a as getDataTypes};
|
|
@@ -1,2 +1,2 @@
|
|
|
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
|
-
//# sourceMappingURL=
|
|
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{_ as a,r as i,h as n,y as o,g as r,b as s,x as t};
|
|
2
|
+
//# sourceMappingURL=constants-C2jPji6h.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-C2jPji6h.mjs","names":["_filter","_map"],"sources":["../src/constants/index.ts"],"sourcesContent":["import { filter as _filter, map as _map } from \"lodash-es\";\n\nimport type { DataTypes, DataTypesObject, Property } from \"../schema/index\";\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 = [...PROPERTIES_DEFAULT, PROPERTIES.author, PROPERTIES.status, PROPERTIES.subtitle];\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 { DATA_TYPES, getDataTypes, INIT, LOOKUP, PROPERTIES, PROPERTIES_LOOKUP, QUERIES };\n"],"mappings":"4CAIA,MAAM,GAAa,CAAE,MAAK,SAAQ,WAAY,CAC5C,MACA,SACA,MACF,GAeM,EAAuC,CAC3C,YAAa,C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AC9C,EAEM,EAAoBC,EAAK,EAAa,GAAS,EAAU,CAAI,CAAC,EAE9D,EAAgB,IAAI,KAAK,CAAC,CAAC,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-IJAT1r3Y.mjs","names":[],"sources":["../src/utils/get-types/date.ts"],"sourcesContent":["const date = (data: any) => {\n const { type } = data;\n return data[type];\n};\n\nexport default date;\n"],"mappings":"AAAA,MAAM,EAAQ,GAAc,CAC1B,GAAM,CAAE,QAAS,EACjB,OAAO,EAAK,EACd"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=e=>{throw TypeError(e)},n=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,r=(e,t,r)=>n(e,typeof t==`symbol`?t:t+``,r),i=(e,n,r)=>n.has(e)||t(`Cannot `+r),a=(e,t,n)=>(i(e,t,`read from private field`),n?n.call(e):t.get(e)),o=(e,n,r)=>n.has(e)?t(`Cannot add the same private member more than once`):n instanceof WeakSet?n.add(e):n.set(e,r),s=(e,t,n,r)=>(i(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),c=(e,t,n,r)=>({set _(r){s(e,t,r,n)},get _(){return a(e,t,r)}}),l=class{constructor(e){r(this,`value`),r(this,`next`),this.value=e}},u,d,f,p=class{constructor(){o(this,u),o(this,d),o(this,f),this.clear()}enqueue(e){let t=new l(e);a(this,u)?(a(this,d).next=t,s(this,d,t)):(s(this,u,t),s(this,d,t)),c(this,f)._++}dequeue(){let e=a(this,u);if(e)return s(this,u,a(this,u).next),c(this,f)._--,e.value}clear(){s(this,u,void 0),s(this,d,void 0),s(this,f,0)}get size(){return a(this,f)}*[Symbol.iterator](){let e=a(this,u);for(;e;)yield e.value,e=e.next}};u=new WeakMap,d=new WeakMap,f=new WeakMap;function m(e){if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up");let t=new p,n=0,r=()=>{n--,t.size>0&&t.dequeue()()},i=async(e,t,i)=>{n++;let a=(async()=>e(...i))();t(a);try{await a}catch{}r()},a=(r,a,o)=>{t.enqueue(i.bind(void 0,r,a,o)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},o=(e,...t)=>new Promise(n=>{a(e,n,t)});return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o}function h(e,t=null){let n=new Event(e);return t&&Object.defineProperty(n,"task",{value:t,enumerable:!0,writable:!1,configurable:!1}),n}var g={1:12.71,2:4.303,3:3.182,4:2.776,5:2.571,6:2.447,7:2.365,8:2.306,9:2.262,10:2.228,11:2.201,12:2.179,13:2.16,14:2.145,15:2.131,16:2.12,17:2.11,18:2.101,19:2.093,20:2.086,21:2.08,22:2.074,23:2.069,24:2.064,25:2.06,26:2.056,27:2.052,28:2.048,29:2.045,30:2.042,31:2.0399,32:2.0378,33:2.0357,34:2.0336,35:2.0315,36:2.0294,37:2.0273,38:2.0252,39:2.0231,40:2.021,41:2.0198,42:2.0186,43:2.0174,44:2.0162,45:2.015,46:2.0138,47:2.0126,48:2.0114,49:2.0102,50:2.009,51:2.0081,52:2.0072,53:2.0063,54:2.0054,55:2.0045,56:2.0036,57:2.0027,58:2.0018,59:2.0009,60:2,61:1.9995,62:1.999,63:1.9985,64:1.998,65:1.9975,66:1.997,67:1.9965,68:1.996,69:1.9955,70:1.995,71:1.9945,72:1.994,73:1.9935,74:1.993,75:1.9925,76:1.992,77:1.9915,78:1.991,79:1.9905,80:1.99,81:1.9897,82:1.9894,83:1.9891,84:1.9888,85:1.9885,86:1.9882,87:1.9879,88:1.9876,89:1.9873,90:1.987,91:1.9867,92:1.9864,93:1.9861,94:1.9858,95:1.9855,96:1.9852,97:1.9849,98:1.9846,99:1.9843,100:1.984,101:1.9838,102:1.9836,103:1.9834,104:1.9832,105:1.983,106:1.9828,107:1.9826,108:1.9824,109:1.9822,110:1.982,111:1.9818,112:1.9816,113:1.9814,114:1.9812,115:1.9819,116:1.9808,117:1.9806,118:1.9804,119:1.9802,120:1.98,infinity:1.96},_=e=>e/1e6,v=()=>_(Number(process.hrtime.bigint())),y=()=>performance.now();function b(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}var x=(e,t)=>e.reduce((e,n)=>e+(n-t)**2,0)/(e.length-1)||0,S=(async()=>{}).constructor,C=e=>e.constructor===S,w=async e=>{if(C(e.fn))return!0;try{if(e.opts.beforeEach!=null)try{await e.opts.beforeEach.call(e)}catch{}let t=e.fn(),n=b(t);if(n)try{await t}catch{}if(e.opts.afterEach!=null)try{await e.opts.afterEach.call(e)}catch{}return n}catch{return!1}},T=class extends EventTarget{constructor(e,t,n,r={}){super(),this.runs=0,this.bench=e,this.name=t,this.fn=n,this.opts=r}async loop(e,t){var n;let r=this.bench.concurrency===`task`,{threshold:i}=this.bench,a=0,o=[];if(this.opts.beforeAll!=null)try{await this.opts.beforeAll.call(this)}catch(e){return{error:e}}let s=await w(this),c=async()=>{this.opts.beforeEach!=null&&await this.opts.beforeEach.call(this);let e=0;if(s){let t=this.bench.now();await this.fn.call(this),e=this.bench.now()-t}else{let t=this.bench.now();this.fn.call(this),e=this.bench.now()-t}o.push(e),a+=e,this.opts.afterEach!=null&&await this.opts.afterEach.call(this)},l=m(i);try{let i=[];for(;(a<e||o.length+l.activeCount+l.pendingCount<t)&&!((n=this.bench.signal)!=null&&n.aborted);)r?i.push(l(c)):await c();i.length&&await Promise.all(i)}catch(e){return{error:e}}if(this.opts.afterAll!=null)try{await this.opts.afterAll.call(this)}catch(e){return{error:e}}return{samples:o}}async run(){var e,t;if((e=this.result)!=null&&e.error)return this;this.dispatchEvent(h(`start`,this)),await this.bench.setup(this,`run`);let{samples:n,error:r}=await this.loop(this.bench.time,this.bench.iterations);if(this.bench.teardown(this,`run`),n){let e=n.reduce((e,t)=>e+t,0);this.runs=n.length,n.sort((e,t)=>e-t);let r=e/this.runs,i=1e3/r,a=n.length,o=a-1,s=n[0],c=n[o],l=e/n.length||0,u=x(n,l),d=Math.sqrt(u),f=d/Math.sqrt(a),p=g[String(Math.round(o)||1)]||g.infinity,m=f*p,h=m/l*100,_=n[Math.ceil(a*.75)-1],v=n[Math.ceil(a*.99)-1],y=n[Math.ceil(a*.995)-1],b=n[Math.ceil(a*.999)-1];if((t=this.bench.signal)!=null&&t.aborted)return this;this.setResult({totalTime:e,min:s,max:c,hz:i,period:r,samples:n,mean:l,variance:u,sd:d,sem:f,df:o,critical:p,moe:m,rme:h,p75:_,p99:v,p995:y,p999:b})}if(r){if(this.setResult({error:r}),this.bench.throws)throw r;this.dispatchEvent(h(`error`,this)),this.bench.dispatchEvent(h(`error`,this))}return this.dispatchEvent(h(`cycle`,this)),this.bench.dispatchEvent(h(`cycle`,this)),this.dispatchEvent(h(`complete`,this)),this}async warmup(){var e;if((e=this.result)!=null&&e.error)return;this.dispatchEvent(h(`warmup`,this)),await this.bench.setup(this,`warmup`);let{error:t}=await this.loop(this.bench.warmupTime,this.bench.warmupIterations);if(this.bench.teardown(this,`warmup`),t&&(this.setResult({error:t}),this.bench.throws))throw t}addEventListener(e,t,n){super.addEventListener(e,t,n)}removeEventListener(e,t,n){super.removeEventListener(e,t,n)}setResult(e){this.result={...this.result,...e},Object.freeze(this.result)}reset(){this.dispatchEvent(h(`reset`,this)),this.runs=0,this.result=void 0}},E=class extends EventTarget{constructor(e={}){super(),this._tasks=new Map,this._todos=new Map,this.concurrency=null,this.threshold=1/0,this.warmupTime=100,this.warmupIterations=5,this.time=500,this.iterations=10,this.now=y,this.now=e.now??this.now,this.warmupTime=e.warmupTime??this.warmupTime,this.warmupIterations=e.warmupIterations??this.warmupIterations,this.time=e.time??this.time,this.iterations=e.iterations??this.iterations,this.signal=e.signal,this.throws=e.throws??!1,this.setup=e.setup??(()=>{}),this.teardown=e.teardown??(()=>{}),this.signal&&this.signal.addEventListener(`abort`,()=>{this.dispatchEvent(h(`abort`))},{once:!0})}runTask(e){var t;return(t=this.signal)!=null&&t.aborted?e:e.run()}async run(){if(this.concurrency===`bench`)return this.runConcurrently(this.threshold,this.concurrency);this.dispatchEvent(h(`start`));let e=[];for(let t of[...this._tasks.values()])e.push(await this.runTask(t));return this.dispatchEvent(h(`complete`)),e}async runConcurrently(e=1/0,t=`bench`){if(this.threshold=e,this.concurrency=t,t===`task`)return this.run();this.dispatchEvent(h(`start`));let n=m(e),r=[];for(let e of[...this._tasks.values()])r.push(n(()=>this.runTask(e)));let i=await Promise.all(r);return this.dispatchEvent(h(`complete`)),i}async warmup(){if(this.concurrency===`bench`){await this.warmupConcurrently(this.threshold,this.concurrency);return}this.dispatchEvent(h(`warmup`));for(let[,e]of this._tasks)await e.warmup()}async warmupConcurrently(e=1/0,t=`bench`){if(this.threshold=e,this.concurrency=t,t===`task`){await this.warmup();return}this.dispatchEvent(h(`warmup`));let n=m(e),r=[];for(let[,e]of this._tasks)r.push(n(()=>e.warmup()));await Promise.all(r)}reset(){this.dispatchEvent(h(`reset`)),this._tasks.forEach(e=>{e.reset()})}add(e,t,n={}){let r=new T(this,e,t,n);return this._tasks.set(e,r),this.dispatchEvent(h(`add`,r)),this}todo(e,t=()=>{},n={}){let r=new T(this,e,t,n);return this._todos.set(e,r),this.dispatchEvent(h(`todo`,r)),this}remove(e){let t=this.getTask(e);return t&&(this.dispatchEvent(h(`remove`,t)),this._tasks.delete(e)),this}addEventListener(e,t,n){super.addEventListener(e,t,n)}removeEventListener(e,t,n){super.removeEventListener(e,t,n)}table(e){return this.tasks.map(t=>{if(t.result){if(t.result.error)throw t.result.error;return e?.(t)||{"Task Name":t.name,"ops/sec":t.result.error?`NaN`:parseInt(t.result.hz.toString(),10).toLocaleString(),"Average Time (ns)":t.result.error?`NaN`:t.result.mean*1e3*1e3,Margin:t.result.error?`NaN`:`\xB1${t.result.rme.toFixed(2)}%`,Samples:t.result.error?`NaN`:t.result.samples.length}}return null})}get results(){return[...this._tasks.values()].map(e=>e.result)}get tasks(){return[...this._tasks.values()]}get todos(){return[...this._todos.values()]}getTask(e){return this._tasks.get(e)}};export{E as Bench,T as Task,v as hrtimeNow,y as now};
|
|
2
|
+
//# sourceMappingURL=dist-BQciLh9t.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-BQciLh9t.mjs","names":[],"sources":["../../../node_modules/.pnpm/tinybench@2.9.0/node_modules/tinybench/dist/index.js"],"sourcesContent":["var $ = Object.defineProperty;\nvar C = (s) => {\n throw TypeError(s);\n};\nvar D = (s, n, t) => n in s ? $(s, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[n] = t;\nvar O = (s, n, t) => D(s, typeof n != \"symbol\" ? n + \"\" : n, t), q = (s, n, t) => n.has(s) || C(\"Cannot \" + t);\nvar d = (s, n, t) => (q(s, n, \"read from private field\"), t ? t.call(s) : n.get(s)), k = (s, n, t) => n.has(s) ? C(\"Cannot add the same private member more than once\") : n instanceof WeakSet ? n.add(s) : n.set(s, t), f = (s, n, t, e) => (q(s, n, \"write to private field\"), e ? e.call(s, t) : n.set(s, t), t);\nvar F = (s, n, t, e) => ({\n set _(r) {\n f(s, n, r, t);\n },\n get _() {\n return d(s, n, e);\n }\n});\n\n// node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js\nvar M = class {\n constructor(n) {\n O(this, \"value\");\n O(this, \"next\");\n this.value = n;\n }\n}, m, w, E, g = class {\n constructor() {\n k(this, m);\n k(this, w);\n k(this, E);\n this.clear();\n }\n enqueue(n) {\n let t = new M(n);\n d(this, m) ? (d(this, w).next = t, f(this, w, t)) : (f(this, m, t), f(this, w, t)), F(this, E)._++;\n }\n dequeue() {\n let n = d(this, m);\n if (n)\n return f(this, m, d(this, m).next), F(this, E)._--, n.value;\n }\n clear() {\n f(this, m, void 0), f(this, w, void 0), f(this, E, 0);\n }\n get size() {\n return d(this, E);\n }\n *[Symbol.iterator]() {\n let n = d(this, m);\n for (; n; )\n yield n.value, n = n.next;\n }\n};\nm = new WeakMap(), w = new WeakMap(), E = new WeakMap();\n\n// node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js\nfunction y(s) {\n if (!((Number.isInteger(s) || s === Number.POSITIVE_INFINITY) && s > 0))\n throw new TypeError(\"Expected `concurrency` to be a number from 1 and up\");\n let n = new g(), t = 0, e = () => {\n t--, n.size > 0 && n.dequeue()();\n }, r = async (h, p, a) => {\n t++;\n let l = (async () => h(...a))();\n p(l);\n try {\n await l;\n } catch (T) {\n }\n e();\n }, i = (h, p, a) => {\n n.enqueue(r.bind(void 0, h, p, a)), (async () => (await Promise.resolve(), t < s && n.size > 0 && n.dequeue()()))();\n }, c = (h, ...p) => new Promise((a) => {\n i(h, a, p);\n });\n return Object.defineProperties(c, {\n activeCount: {\n get: () => t\n },\n pendingCount: {\n get: () => n.size\n },\n clearQueue: {\n value: () => {\n n.clear();\n }\n }\n }), c;\n}\n\n// src/event.ts\nfunction o(s, n = null) {\n let t = new Event(s);\n return n && Object.defineProperty(t, \"task\", {\n value: n,\n enumerable: !0,\n writable: !1,\n configurable: !1\n }), t;\n}\n\n// src/constants.ts\nvar G = {\n 1: 12.71,\n 2: 4.303,\n 3: 3.182,\n 4: 2.776,\n 5: 2.571,\n 6: 2.447,\n 7: 2.365,\n 8: 2.306,\n 9: 2.262,\n 10: 2.228,\n 11: 2.201,\n 12: 2.179,\n 13: 2.16,\n 14: 2.145,\n 15: 2.131,\n 16: 2.12,\n 17: 2.11,\n 18: 2.101,\n 19: 2.093,\n 20: 2.086,\n 21: 2.08,\n 22: 2.074,\n 23: 2.069,\n 24: 2.064,\n 25: 2.06,\n 26: 2.056,\n 27: 2.052,\n 28: 2.048,\n 29: 2.045,\n 30: 2.042,\n 31: 2.0399,\n 32: 2.0378,\n 33: 2.0357,\n 34: 2.0336,\n 35: 2.0315,\n 36: 2.0294,\n 37: 2.0273,\n 38: 2.0252,\n 39: 2.0231,\n 40: 2.021,\n 41: 2.0198,\n 42: 2.0186,\n 43: 2.0174,\n 44: 2.0162,\n 45: 2.015,\n 46: 2.0138,\n 47: 2.0126,\n 48: 2.0114,\n 49: 2.0102,\n 50: 2.009,\n 51: 2.0081,\n 52: 2.0072,\n 53: 2.0063,\n 54: 2.0054,\n 55: 2.0045,\n 56: 2.0036,\n 57: 2.0027,\n 58: 2.0018,\n 59: 2.0009,\n 60: 2,\n 61: 1.9995,\n 62: 1.999,\n 63: 1.9985,\n 64: 1.998,\n 65: 1.9975,\n 66: 1.997,\n 67: 1.9965,\n 68: 1.996,\n 69: 1.9955,\n 70: 1.995,\n 71: 1.9945,\n 72: 1.994,\n 73: 1.9935,\n 74: 1.993,\n 75: 1.9925,\n 76: 1.992,\n 77: 1.9915,\n 78: 1.991,\n 79: 1.9905,\n 80: 1.99,\n 81: 1.9897,\n 82: 1.9894,\n 83: 1.9891,\n 84: 1.9888,\n 85: 1.9885,\n 86: 1.9882,\n 87: 1.9879,\n 88: 1.9876,\n 89: 1.9873,\n 90: 1.987,\n 91: 1.9867,\n 92: 1.9864,\n 93: 1.9861,\n 94: 1.9858,\n 95: 1.9855,\n 96: 1.9852,\n 97: 1.9849,\n 98: 1.9846,\n 99: 1.9843,\n 100: 1.984,\n 101: 1.9838,\n 102: 1.9836,\n 103: 1.9834,\n 104: 1.9832,\n 105: 1.983,\n 106: 1.9828,\n 107: 1.9826,\n 108: 1.9824,\n 109: 1.9822,\n 110: 1.982,\n 111: 1.9818,\n 112: 1.9816,\n 113: 1.9814,\n 114: 1.9812,\n 115: 1.9819,\n 116: 1.9808,\n 117: 1.9806,\n 118: 1.9804,\n 119: 1.9802,\n 120: 1.98,\n infinity: 1.96\n}, N = G;\n\n// src/utils.ts\nvar J = (s) => s / 1e6, U = () => J(Number(process.hrtime.bigint())), B = () => performance.now();\nfunction W(s) {\n return s !== null && typeof s == \"object\" && typeof s.then == \"function\";\n}\nvar S = (s, n) => s.reduce((e, r) => e + (r - n) ** 2, 0) / (s.length - 1) || 0, X = (async () => {\n}).constructor, Z = (s) => s.constructor === X, z = async (s) => {\n if (Z(s.fn))\n return !0;\n try {\n if (s.opts.beforeEach != null)\n try {\n await s.opts.beforeEach.call(s);\n } catch (e) {\n }\n let n = s.fn(), t = W(n);\n if (t)\n try {\n await n;\n } catch (e) {\n }\n if (s.opts.afterEach != null)\n try {\n await s.opts.afterEach.call(s);\n } catch (e) {\n }\n return t;\n } catch (n) {\n return !1;\n }\n};\n\n// src/task.ts\nvar b = class extends EventTarget {\n constructor(t, e, r, i = {}) {\n super();\n /*\n * the number of times the task\n * function has been executed\n */\n this.runs = 0;\n this.bench = t, this.name = e, this.fn = r, this.opts = i;\n }\n async loop(t, e) {\n var T;\n let r = this.bench.concurrency === \"task\", { threshold: i } = this.bench, c = 0, h = [];\n if (this.opts.beforeAll != null)\n try {\n await this.opts.beforeAll.call(this);\n } catch (u) {\n return { error: u };\n }\n let p = await z(this), a = async () => {\n this.opts.beforeEach != null && await this.opts.beforeEach.call(this);\n let u = 0;\n if (p) {\n let v = this.bench.now();\n await this.fn.call(this), u = this.bench.now() - v;\n } else {\n let v = this.bench.now();\n this.fn.call(this), u = this.bench.now() - v;\n }\n h.push(u), c += u, this.opts.afterEach != null && await this.opts.afterEach.call(this);\n }, l = y(i);\n try {\n let u = [];\n for (; (c < t || h.length + l.activeCount + l.pendingCount < e) && !((T = this.bench.signal) != null && T.aborted); )\n r ? u.push(l(a)) : await a();\n u.length && await Promise.all(u);\n } catch (u) {\n return { error: u };\n }\n if (this.opts.afterAll != null)\n try {\n await this.opts.afterAll.call(this);\n } catch (u) {\n return { error: u };\n }\n return { samples: h };\n }\n /**\n * run the current task and write the results in `Task.result` object\n */\n async run() {\n var r, i;\n if ((r = this.result) != null && r.error)\n return this;\n this.dispatchEvent(o(\"start\", this)), await this.bench.setup(this, \"run\");\n let { samples: t, error: e } = await this.loop(this.bench.time, this.bench.iterations);\n if (this.bench.teardown(this, \"run\"), t) {\n let c = t.reduce((L, A) => L + A, 0);\n this.runs = t.length, t.sort((L, A) => L - A);\n let h = c / this.runs, p = 1e3 / h, a = t.length, l = a - 1, T = t[0], u = t[l], v = c / t.length || 0, P = S(t, v), R = Math.sqrt(P), I = R / Math.sqrt(a), _ = N[String(Math.round(l) || 1)] || N.infinity, K = I * _, j = K / v * 100, H = t[Math.ceil(a * 0.75) - 1], V = t[Math.ceil(a * 0.99) - 1], Q = t[Math.ceil(a * 0.995) - 1], Y = t[Math.ceil(a * 0.999) - 1];\n if ((i = this.bench.signal) != null && i.aborted)\n return this;\n this.setResult({\n totalTime: c,\n min: T,\n max: u,\n hz: p,\n period: h,\n samples: t,\n mean: v,\n variance: P,\n sd: R,\n sem: I,\n df: l,\n critical: _,\n moe: K,\n rme: j,\n p75: H,\n p99: V,\n p995: Q,\n p999: Y\n });\n }\n if (e) {\n if (this.setResult({ error: e }), this.bench.throws)\n throw e;\n this.dispatchEvent(o(\"error\", this)), this.bench.dispatchEvent(o(\"error\", this));\n }\n return this.dispatchEvent(o(\"cycle\", this)), this.bench.dispatchEvent(o(\"cycle\", this)), this.dispatchEvent(o(\"complete\", this)), this;\n }\n /**\n * warmup the current task\n */\n async warmup() {\n var e;\n if ((e = this.result) != null && e.error)\n return;\n this.dispatchEvent(o(\"warmup\", this)), await this.bench.setup(this, \"warmup\");\n let { error: t } = await this.loop(this.bench.warmupTime, this.bench.warmupIterations);\n if (this.bench.teardown(this, \"warmup\"), t && (this.setResult({ error: t }), this.bench.throws))\n throw t;\n }\n addEventListener(t, e, r) {\n super.addEventListener(t, e, r);\n }\n removeEventListener(t, e, r) {\n super.removeEventListener(t, e, r);\n }\n /**\n * change the result object values\n */\n setResult(t) {\n this.result = { ...this.result, ...t }, Object.freeze(this.result);\n }\n /**\n * reset the task to make the `Task.runs` a zero-value and remove the `Task.result`\n * object\n */\n reset() {\n this.dispatchEvent(o(\"reset\", this)), this.runs = 0, this.result = void 0;\n }\n};\n\n// src/bench.ts\nvar x = class extends EventTarget {\n constructor(t = {}) {\n var e, r, i, c, h, p, a, l;\n super();\n /*\n * @private the task map\n */\n this._tasks = /* @__PURE__ */ new Map();\n this._todos = /* @__PURE__ */ new Map();\n /**\n * Executes tasks concurrently based on the specified concurrency mode.\n *\n * - When `mode` is set to `null` (default), concurrency is disabled.\n * - When `mode` is set to 'task', each task's iterations (calls of a task function) run concurrently.\n * - When `mode` is set to 'bench', different tasks within the bench run concurrently.\n */\n this.concurrency = null;\n /**\n * The maximum number of concurrent tasks to run. Defaults to Infinity.\n */\n this.threshold = 1 / 0;\n this.warmupTime = 100;\n this.warmupIterations = 5;\n this.time = 500;\n this.iterations = 10;\n this.now = B;\n this.now = (e = t.now) != null ? e : this.now, this.warmupTime = (r = t.warmupTime) != null ? r : this.warmupTime, this.warmupIterations = (i = t.warmupIterations) != null ? i : this.warmupIterations, this.time = (c = t.time) != null ? c : this.time, this.iterations = (h = t.iterations) != null ? h : this.iterations, this.signal = t.signal, this.throws = (p = t.throws) != null ? p : !1, this.setup = (a = t.setup) != null ? a : () => {\n }, this.teardown = (l = t.teardown) != null ? l : () => {\n }, this.signal && this.signal.addEventListener(\n \"abort\",\n () => {\n this.dispatchEvent(o(\"abort\"));\n },\n { once: !0 }\n );\n }\n runTask(t) {\n var e;\n return (e = this.signal) != null && e.aborted ? t : t.run();\n }\n /**\n * run the added tasks that were registered using the\n * {@link add} method.\n * Note: This method does not do any warmup. Call {@link warmup} for that.\n */\n async run() {\n if (this.concurrency === \"bench\")\n return this.runConcurrently(this.threshold, this.concurrency);\n this.dispatchEvent(o(\"start\"));\n let t = [];\n for (let e of [...this._tasks.values()])\n t.push(await this.runTask(e));\n return this.dispatchEvent(o(\"complete\")), t;\n }\n /**\n * See Bench.{@link concurrency}\n */\n async runConcurrently(t = 1 / 0, e = \"bench\") {\n if (this.threshold = t, this.concurrency = e, e === \"task\")\n return this.run();\n this.dispatchEvent(o(\"start\"));\n let r = y(t), i = [];\n for (let h of [...this._tasks.values()])\n i.push(r(() => this.runTask(h)));\n let c = await Promise.all(i);\n return this.dispatchEvent(o(\"complete\")), c;\n }\n /**\n * warmup the benchmark tasks.\n * This is not run by default by the {@link run} method.\n */\n async warmup() {\n if (this.concurrency === \"bench\") {\n await this.warmupConcurrently(this.threshold, this.concurrency);\n return;\n }\n this.dispatchEvent(o(\"warmup\"));\n for (let [, t] of this._tasks)\n await t.warmup();\n }\n /**\n * warmup the benchmark tasks concurrently.\n * This is not run by default by the {@link runConcurrently} method.\n */\n async warmupConcurrently(t = 1 / 0, e = \"bench\") {\n if (this.threshold = t, this.concurrency = e, e === \"task\") {\n await this.warmup();\n return;\n }\n this.dispatchEvent(o(\"warmup\"));\n let r = y(t), i = [];\n for (let [, c] of this._tasks)\n i.push(r(() => c.warmup()));\n await Promise.all(i);\n }\n /**\n * reset each task and remove its result\n */\n reset() {\n this.dispatchEvent(o(\"reset\")), this._tasks.forEach((t) => {\n t.reset();\n });\n }\n /**\n * add a benchmark task to the task map\n */\n add(t, e, r = {}) {\n let i = new b(this, t, e, r);\n return this._tasks.set(t, i), this.dispatchEvent(o(\"add\", i)), this;\n }\n /**\n * add a benchmark todo to the todo map\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n todo(t, e = () => {\n }, r = {}) {\n let i = new b(this, t, e, r);\n return this._todos.set(t, i), this.dispatchEvent(o(\"todo\", i)), this;\n }\n /**\n * remove a benchmark task from the task map\n */\n remove(t) {\n let e = this.getTask(t);\n return e && (this.dispatchEvent(o(\"remove\", e)), this._tasks.delete(t)), this;\n }\n addEventListener(t, e, r) {\n super.addEventListener(t, e, r);\n }\n removeEventListener(t, e, r) {\n super.removeEventListener(t, e, r);\n }\n /**\n * table of the tasks results\n */\n table(t) {\n return this.tasks.map((e) => {\n if (e.result) {\n if (e.result.error)\n throw e.result.error;\n return (t == null ? void 0 : t(e)) || {\n \"Task Name\": e.name,\n \"ops/sec\": e.result.error ? \"NaN\" : parseInt(e.result.hz.toString(), 10).toLocaleString(),\n \"Average Time (ns)\": e.result.error ? \"NaN\" : e.result.mean * 1e3 * 1e3,\n Margin: e.result.error ? \"NaN\" : `\\xB1${e.result.rme.toFixed(2)}%`,\n Samples: e.result.error ? \"NaN\" : e.result.samples.length\n };\n }\n return null;\n });\n }\n /**\n * (getter) tasks results as an array\n */\n get results() {\n return [...this._tasks.values()].map((t) => t.result);\n }\n /**\n * (getter) tasks as an array\n */\n get tasks() {\n return [...this._tasks.values()];\n }\n get todos() {\n return [...this._todos.values()];\n }\n /**\n * get a task based on the task name\n */\n getTask(t) {\n return this._tasks.get(t);\n }\n};\nexport {\n x as Bench,\n b as Task,\n U as hrtimeNow,\n B as now\n};\n"],"x_google_ignoreList":[0],"mappings":"AAAA,IAAI,EAAI,OAAO,eACX,EAAK,GAAM,CACb,MAAM,UAAU,CAAC,CACnB,EACI,GAAK,EAAG,EAAG,IAAM,KAAK,EAAI,EAAE,EAAG,EAAG,CAAE,WAAY,CAAC,EAAG,aAAc,CAAC,EAAG,SAAU,CAAC,EAAG,MAAO,CAAE,CAAC,EAAI,EAAE,GAAK,EACzG,GAAK,EAAG,EAAG,IAAM,EAAE,EAAG,OAAO,GAAK,SAAoB,EAAT,EAAI,GAAQ,CAAC,EAAG,GAAK,EAAG,EAAG,IAAM,EAAE,IAAI,CAAC,GAAK,EAAE,UAAY,CAAC,EACzG,GAAK,EAAG,EAAG,KAAO,EAAE,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AC,GAAG,KAAK,OAAO,OAAO,CAAC,CACjC,CAIA,QAAQ,EAAG,CACT,OAAO,KAAK,OAAO,IAAI,CAAC,CAC1B,CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-DygPLxSo.mjs","names":[],"sources":["../src/utils/get-types/email.ts"],"sourcesContent":["const email = (data: any) => data.email || null;\n\nexport default email;\n"],"mappings":"AAAA,MAAM,EAAS,GAAc,EAAK,OAAS"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{size as e}from"lodash-es";import{stringToUUID as t}from"@jeromefitz/utils";import n from"github-slugger";const r=(e,n)=>`https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600`.replace(`{{FILENAME}}`,encodeURIComponent(e)).replace(`{{PAGE_ID}}`,t(n)),i=(t,i)=>{let a=new n,o={};return e(t.files)<=0||t.files.map(e=>{if(e?.type===`file`){let t=e?.file?.url.split(`?`)[0],n=a.slug(t);o[n]={type:e?.type,url:r(t,i)}}if(e?.type===`external`){let t=e?.external?.url.split(`?`)[0],n=a.slug(t);o[n]={type:e?.type,url:t}}}),o};export{i as
|
|
2
|
-
//# sourceMappingURL=files.mjs.map
|
|
1
|
+
import{size as e}from"lodash-es";import{stringToUUID as t}from"@jeromefitz/utils";import n from"github-slugger";const r=(e,n)=>`https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600`.replace(`{{FILENAME}}`,encodeURIComponent(e)).replace(`{{PAGE_ID}}`,t(n)),i=(t,i)=>{let a=new n,o={};return e(t.files)<=0||t.files.map(e=>{if(e?.type===`file`){let t=e?.file?.url.split(`?`)[0],n=a.slug(t);o[n]={type:e?.type,url:r(t,i)}}if(e?.type===`external`){let t=e?.external?.url.split(`?`)[0],n=a.slug(t);o[n]={type:e?.type,url:t}}}),o};export{i as t};
|
|
2
|
+
//# sourceMappingURL=files-Dx1jw5iY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files-Dx1jw5iY.mjs","names":["_size"],"sources":["../src/utils/get-types/files.ts"],"sourcesContent":["import { stringToUUID } from \"@jeromefitz/utils\";\nimport Slugger from \"github-slugger\";\nimport { size as _size } from \"lodash-es\";\n\nconst notionImageHosted = `https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600`;\n\nconst getNotionHostedUrl = (url: boolean | number | string, pageId: string) =>\n notionImageHosted\n .replace(\"{{FILENAME}}\", encodeURIComponent(url))\n .replace(\"{{PAGE_ID}}\", stringToUUID(pageId));\n\nconst files = (data: any, pageId: string) => {\n const slugger = new Slugger();\n const _files = {};\n\n if (_size(data.files) <= 0) return _files;\n // oxlint-disable-next-line complexity\n data.files.map((file: { external: { url: string }; file: { url: string }; type: string }) => {\n if (file?.type === \"file\") {\n const internalUrl = file?.file?.url.split(\"?\")[0];\n const internalSlug = slugger.slug(internalUrl);\n /**\n * @note(plaiceholder)\n *\n * Do not handle here.\n */\n // const { base64: internalBase64, img: internalImg } = await getPlaiceholder(\n // internalUrl\n // )\n _files[internalSlug] = {\n type: file?.type,\n url: getNotionHostedUrl(internalUrl, pageId),\n // base64: internalBase64,\n // img: internalImg,\n };\n }\n if (file?.type === \"external\") {\n const externalUrl = file?.external?.url.split(\"?\")[0];\n const externalSlug = slugger.slug(externalUrl);\n /**\n * @note(plaiceholder)\n *\n * Do not handle here.\n */\n // const { base64: externalBase64, img: externalImg } = await getPlaiceholder(\n // externalUrl\n // )\n _files[externalSlug] = {\n type: file?.type,\n url: externalUrl,\n // base64: externalBase64,\n // img: externalImg,\n };\n }\n // if (file?.type === 'image') {\n // const externalUrl = file?.external?.url.split('?')[0]\n // const externalSlug = slugger.slug(externalUrl)\n // _files[externalSlug] = { type: file?.type, url: externalUrl }\n // }\n\n // return\n });\n\n return _files;\n};\n\nexport default files;\n"],"mappings":"gHAIA,MAEM,GAAsB,EAAgC,IAC1D,yFACG,QAAQ,eAAgB,mBAAmB,CAAG,CAAC,CAAC,CAChD,QAAQ,cAAe,EAAa,CAAM,CAAC,EAE1C,GAAS,EAAW,IAAmB,CAC3C,IAAM,EAAU,IAAI,EACd,EAAS,CAAC,EAkDhB,OAhDIA,EAAM,EAAK,KAAK,GAAK,GAEzB,EAAK,MAAM,IAAK,GAA6E,CAC3F,GAAI,GAAM,OAAS,OAAQ,CACzB,IAAM,EAAc,GAAM,MAAM,IAAI,MAAM,GAAG,CAAC,CAAC,GACzC,EAAe,EAAQ,KAAK,CAAW,EAS7C,EAAO,GAAgB,CACrB,KAAM,GAAM,KACZ,IAAK,EAAmB,EAAa,CAAM,CAG7C,CACF,CACA,GAAI,GAAM,OAAS,WAAY,CAC7B,IAAM,EAAc,GAAM,UAAU,IAAI,MAAM,GAAG,CAAC,CAAC,GAC7C,EAAe,EAAQ,KAAK,CAAW,EAS7C,EAAO,GAAgB,CACrB,KAAM,GAAM,KACZ,IAAK,CAGP,CACF,CAQF,CAAC,EA9CkC,CAiDrC"}
|
package/{dist/queries/get-blocks-by-id-children/index.mjs → get-blocks-by-id-children-BRe4p0pZ.mjs}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
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
|
|
2
|
-
//# sourceMappingURL=
|
|
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 t};
|
|
2
|
+
//# sourceMappingURL=get-blocks-by-id-children-BRe4p0pZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-blocks-by-id-children-BRe4p0pZ.mjs","names":[],"sources":["../src/queries/get-blocks-by-id-children/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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-data-type-B5X5VOmp.mjs","names":[],"sources":["../src/utils/get-data-type/index.ts"],"sourcesContent":["import { DATA_TYPES } from \"../../constants/index\";\n\n/**\n * @info dataType\n * pathVariables via `../../queries/pathVariables`\n *\n * 1 = (isPage) DATA_TYPES.SLUG\n * ex) /about\n * /colophon\n * /contact\n * => routeType = pages\n * @note no ability for second tier at the moment for non-db\n * otherwise these would have to be `/pages/about`\n *\n * 2 = (isIndex && !hasMeta) DATA_TYPES.LISTING\n * ex) /blog\n * /events\n * /podcasts\n * => routeType = routeType\n * @note\n * - events should only be \"upcoming events\"\n * - blog should be all-time (handled by pagination)\n *\n * 3 = (isIndex && hasMeta) DATA_TYPES.LISTING_BY_DATE\n * ex) /blog/yyyy\n * /blog/yyyy/mm\n * /blog/yyyy/mm/dd\n * /events/yyyy\n * /events/yyyy/mm\n * /events/yyyy/mm/dd\n * => routeType = routeType\n * @note These are each `index` pages for certain routeTypes\n *\n * 4 = (hasMeta) DATA_TYPES.SLUG_BY_ROUTE\n * ex) /blog/yyyy/mm/dd/[slug]\n * => parentRouteType = blog\n * => routeType = blog\n * @note determine [yyyy-mm-dd] from data via slug\n * /events/yyyy/mm/dd/[slug],\n * => parentRouteType = events\n * => routeType = events\n * @note determine [yyyy-mm-dd] from data via slug\n * /podcasts/[podcasts-slug]/[slug]\n * => parentRouteType = podcasts\n * => routeType = episodes\n * @note determine [podcasts-slug] from data via slug\n *\n * 5 = (else) DATA_TYPES.SLUG\n * ex) /shows/[slug]\n * /events/yyyy/mm/dd/[slug]\n * /podcasts/[slug]\n *\n */\nconst getDataType = ({ hasMeta, isIndex, isPage }) => {\n if (isPage) return DATA_TYPES.SLUG;\n if (isIndex && !hasMeta) return DATA_TYPES.LISTING;\n if (isIndex && hasMeta) return DATA_TYPES.LISTING_BY_DATE;\n if (hasMeta) return DATA_TYPES.SLUG_BY_ROUTE;\n return DATA_TYPES.SLUG;\n};\n\nexport default getDataType;\n"],"mappings":"6CAqDA,MAAM,GAAe,CAAE,UAAS,UAAS,YACnC,EAAe,EAAW,KAC1B,GAAW,CAAC,EAAgB,EAAW,QACvC,GAAW,EAAgB,EAAW,gBACtC,EAAgB,EAAW,cACxB,EAAW"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e}from"./constants-C2jPji6h.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 t};
|
|
2
|
+
//# sourceMappingURL=get-databases-by-id-query-CI9TMkPN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-databases-by-id-query-CI9TMkPN.mjs","names":[],"sources":["../src/queries/get-databases-by-id-query/index.ts"],"sourcesContent":["import { PROPERTIES } from \"../../constants/index\";\nimport type { SortMock } from \"../../schema/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":"6CAGA,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
|
-
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
|
|
2
|
-
//# sourceMappingURL=
|
|
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 t};
|
|
2
|
+
//# sourceMappingURL=get-deep-fetch-all-children-DVZ-HFbN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-deep-fetch-all-children-DVZ-HFbN.mjs","names":[],"sources":["../src/queries/get-deep-fetch-all-children/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>(fetchChildrenMap.map((value) => value.promise));\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,CAAC,CAC5D,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,IAAS,EAAiB,IAAK,GAAU,EAAM,OAAO,CAAC,EAErF,IAAK,IAAI,EAAI,EAAG,EAAI,EAAQ,OAAQ,IAAK,CACvC,IAAM,EAAS,EAAQ,EAAE,CAAC,QAK1B,GAJA,MAAM,EAAwB,CAC5B,SACA,uBACF,CAAC,EACG,EAAiB,GAAI,CACvB,IAAM,EAAc,EAAiB,EAAE,CAAC,aACxC,EAAO,EAAO,KAAK,CAAC,SAAW,CACjC,CACF,CACA,OAAO,CACT"}
|
|
@@ -1,2 +1,2 @@
|
|
|
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
|
|
2
|
-
//# sourceMappingURL=
|
|
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 t};
|
|
2
|
+
//# sourceMappingURL=get-info-type-CUsHqtfs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-info-type-CUsHqtfs.mjs","names":[],"sources":["../src/queries/get-info-type/index.ts"],"sourcesContent":["const 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[NOTION[routeType.toUpperCase()].infoType.key]?.start.slice(0, 10);\n // oxlint-disable-next-line no-unsafe-optional-chaining\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":"AAAA,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,WAAW,EAAO,EAAU,YAAY,EAAE,CAAC,SAAS,IAAI,EAAE,MAAM,MAAM,EAAG,EAAE,EAEvF,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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e}from"./constants-C2jPji6h.mjs";import{t}from"./utils-B1QU_ezs.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 t};
|
|
2
|
+
//# sourceMappingURL=get-notion-listing-JJxOipMx.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-notion-listing-JJxOipMx.mjs","names":["_omit"],"sources":["../src/queries/get-notion-listing/index.ts"],"sourcesContent":["import { sortObject } from \"@jeromefitz/utils\";\nimport { map as _map, omit as _omit } from \"lodash-es\";\n\nimport { PROPERTIES } from \"../../constants/index\";\nimport { dataNormalized } from \"../../utils/index\";\n\nconst getNotionListing = async ({\n config,\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n getPagesById,\n pathVariables,\n routeType,\n}) => {\n const { NOTION } = config;\n\n let info: any = {};\n\n const page_id = NOTION[routeType.toUpperCase()].page_id__seo;\n const _info = await getPagesById({\n page_id,\n });\n // @refactor(404)\n if (!_info) {\n return {};\n }\n if (_info?.object === \"page\") {\n info = _omit(_info, \"properties\");\n info.properties = sortObject(\n dataNormalized({ config, data: _info, pageId: info.id, pathVariables }),\n );\n }\n\n const property =\n NOTION[routeType.toUpperCase()].infoType.notion ?? PROPERTIES.datePublished.notion;\n\n /**\n * @todo Can we make the date dynamic?\n * This can be considered the date you want to go back in time to on build.\n * Can be construed as the website creation date, too I guess.\n *\n * For those routeTypes that do not go off of datePublished,\n * we want to get their listing by the current date.\n *\n * ex) /events => Only want events that are in the future.\n *\n */\n const timestamp =\n property === PROPERTIES.datePublished.notion\n ? new Date(\"2020-01-01\").toISOString()\n : new Date().toISOString();\n\n const content = await getBlocksByIdChildren({ block_id: info.id });\n const _items: any = await getDatabasesByIdQuery({\n database_id: NOTION[routeType.toUpperCase()].database_id,\n filter: {\n and: [\n {\n date: {\n on_or_after: timestamp,\n },\n property,\n },\n ],\n },\n });\n const results: any[] = [];\n _map(_items.results, (item) => {\n let itemInit = item;\n itemInit = _omit(itemInit, \"properties\");\n itemInit.properties = sortObject(\n dataNormalized({ config, data: item, pageId: item.id, pathVariables }),\n );\n results.push(itemInit);\n // console.dir(`> last_edited_time`)\n // console.dir(item.id)\n // console.dir(item.last_edited_time)\n // console.dir(`---`)\n });\n const items = _omit(_items, \"results\");\n items.results = results;\n\n /**\n * @note(plaiceholder)\n *\n * Pass empty `images` object for SSR/API takeover\n */\n return { content, images: {}, info, items };\n};\n\nexport default getNotionListing;\n"],"mappings":"0KAMA,MAAM,EAAmB,MAAO,CAC9B,SACA,wBACA,wBACA,eACA,gBACA,eACI,CACJ,GAAM,CAAE,UAAW,EAEf,EAAY,CAAC,EAEX,EAAU,EAAO,EAAU,YAAY,EAAE,CAAC,aAC1C,EAAQ,MAAM,EAAa,CAC/B,SACF,CAAC,EAED,GAAI,CAAC,EACH,MAAO,CAAC,EAEN,GAAO,SAAW,SACpB,EAAOA,EAAM,EAAO,YAAY,EAChC,EAAK,WAAa,EAChB,EAAe,CAAE,SAAQ,KAAM,EAAO,OAAQ,EAAK,GAAI,eAAc,CAAC,CACxE,GAGF,IAAM,EACJ,EAAO,EAAU,YAAY,EAAE,CAAC,SAAS,QAAU,EAAW,cAAc,OAaxE,EACJ,IAAa,EAAW,cAAc,OAClC,IAAI,KAAK,YAAY,CAAC,CAAC,YAAY,EACnC,IAAI,KAAK,CAAC,CAAC,YAAY,EAEvB,EAAU,MAAM,EAAsB,CAAE,SAAU,EAAK,EAAG,CAAC,EAC3D,EAAc,MAAM,EAAsB,CAC9C,YAAa,EAAO,EAAU,YAAY,EAAE,CAAC,YAC7C,OAAQ,CACN,IAAK,CACH,CACE,KAAM,CACJ,YAAa,CACf,EACA,UACF,CACF,CACF,CACF,CAAC,EACK,EAAiB,CAAC,EACxB,EAAK,EAAO,QAAU,GAAS,CAC7B,IAAI,EAAW,EACf,EAAWA,EAAM,EAAU,YAAY,EACvC,EAAS,WAAa,EACpB,EAAe,CAAE,SAAQ,KAAM,EAAM,OAAQ,EAAK,GAAI,eAAc,CAAC,CACvE,EACA,EAAQ,KAAK,CAAQ,CAKvB,CAAC,EACD,IAAM,EAAQA,EAAM,EAAQ,SAAS,EAQrC,MAPA,GAAM,QAAU,EAOT,CAAE,UAAS,OAAQ,CAAC,EAAG,OAAM,OAAM,CAC5C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e,o as t}from"./constants-C2jPji6h.mjs";import{t as n}from"./add-time-B_LfV4Ex.mjs";import{t as r}from"./utils-B1QU_ezs.mjs";import{map as i,omit as a,size as o}from"lodash-es";import{sortObject as s}from"@jeromefitz/utils";const c=({config:r,pathVariables:i,routeType:a,slug:s})=>{let{NOTION:c}=r,{meta:l}=i,[u,d,f]=l,p=o(l),m=new Date().toISOString(),h=new Date(`${u||m.slice(0,4)}-${d||`01`}-${f||`01`}`),g=c[a.toUpperCase()]?.infoType?.notion??e.datePublished.notion;switch(p){case 1:return{and:[{date:{on_or_after:n(h,``)},property:g},{date:{before:n(h,`year`)},property:g}]};case 2:return{and:[{date:{on_or_after:n(h,``)},property:g},{date:{before:n(h,`month`)},property:g}]};case 3:return{and:[{date:{on_or_after:n(h,``)},property:g},{date:{before:n(h,`day`)},property:g}]};default:return{and:[{date:{on_or_after:n(h,``)},property:g},{date:{before:n(h,`day`)},property:g},{...t.slug,rich_text:{equals:s}}]}}},l=async({config:t,getBlocksByIdChildren:n,getDatabasesByIdQuery:o,getPagesById:l,pathVariables:u,routeType:d,slug:f})=>{let{NOTION:p}=t,m={},h={},g=p[d.toUpperCase()].page_id__seo,_=await l({page_id:g});_.object===`page`&&(h=a(_,`properties`),h.properties=s(r({config:t,data:_,pageId:_.id,pathVariables:u}))),m=await n({block_id:h.id});let v=[{direction:`descending`,property:e.datePublished.notion}],y=c({config:t,pathVariables:u,routeType:d,slug:f}),b=p[d.toUpperCase()].database_id,x=await o({database_id:b,filter:y,sorts:v}),S=[];i(x.results,e=>{let n=a(e,`properties`);n.properties=s(r({config:t,data:e,pageId:n.id,pathVariables:u})),n&&S.push(n)});let C=a(x,`results`);C.results=S;let w=a(C,`data`);return{content:m,images:{},info:h,items:w}};export{l as t};
|
|
2
|
+
//# sourceMappingURL=get-notion-listing-by-date-CSKBdFDQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-notion-listing-by-date-CSKBdFDQ.mjs","names":["_size","_omit"],"sources":["../src/queries/get-notion-listing-by-date/index.ts"],"sourcesContent":["import { sortObject } from \"@jeromefitz/utils\";\nimport { map as _map, omit as _omit, size as _size } from \"lodash-es\";\n\nimport { PROPERTIES, QUERIES } from \"../../constants/index\";\nimport type { SortItem } from \"../../schema/index\";\nimport { addTime, dataNormalized } from \"../../utils/index\";\n\nconst getNotionListingByDate__getFilter = ({ config, pathVariables, routeType, slug }) => {\n const { NOTION } = config;\n const { meta } = pathVariables;\n const [year, month, day] = meta;\n const metaCount = _size(meta);\n // @hack nothing to see here, haha\n const dateTimestamp = new Date().toISOString();\n const timestampQuery = new Date(\n `${year ? year : dateTimestamp.slice(0, 4)}-${month ? month : \"01\"}-${day ? day : \"01\"}`,\n );\n\n /**\n * @filter\n * @note metaCount breakdown:\n * 1 = yyyy\n * 2 = yyyy/mm\n * 3 = yyyy/mm/dd\n * ? = yyyy/mm/dd/slug (SLUG_BY_ROUTE takes this over)\n */\n const property =\n NOTION[routeType.toUpperCase()]?.infoType?.notion ?? PROPERTIES.datePublished.notion;\n\n switch (metaCount) {\n /**\n * @note yyyy\n */\n case 1:\n return {\n and: [\n {\n date: {\n on_or_after: addTime(timestampQuery, \"\"),\n },\n property,\n },\n {\n date: {\n before: addTime(timestampQuery, \"year\"),\n },\n property,\n },\n ],\n };\n\n /**\n * @note yyyy/mm\n */\n case 2:\n return {\n and: [\n {\n date: {\n on_or_after: addTime(timestampQuery, \"\"),\n },\n property,\n },\n {\n date: {\n before: addTime(timestampQuery, \"month\"),\n },\n property,\n },\n ],\n };\n\n /**\n * @note yyyy/mm/dd\n */\n case 3:\n return {\n and: [\n {\n date: {\n on_or_after: addTime(timestampQuery, \"\"),\n },\n property,\n },\n {\n date: {\n before: addTime(timestampQuery, \"day\"),\n },\n property,\n },\n ],\n };\n\n /**\n * @note yyyy/mm/dd/slug\n *\n * Technically this is picked up by `getNotionSlugByRoute` SLUG_BY_ROUTE\n */\n default:\n return {\n and: [\n {\n date: {\n on_or_after: addTime(timestampQuery, \"\"),\n },\n property,\n },\n {\n date: {\n before: addTime(timestampQuery, \"day\"),\n },\n property,\n },\n {\n ...QUERIES.slug,\n rich_text: { equals: slug },\n },\n ],\n };\n }\n};\n\nconst getNotionListingByDate = async ({\n config,\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n getPagesById,\n pathVariables,\n routeType,\n slug,\n}) => {\n const { NOTION } = config;\n\n let content: any = {},\n info: any = {};\n\n const page_id = NOTION[routeType.toUpperCase()].page_id__seo;\n const _info = await getPagesById({\n page_id,\n });\n if (_info.object === \"page\") {\n info = _omit(_info, \"properties\");\n info.properties = sortObject(\n dataNormalized({ config, data: _info, pageId: _info.id, pathVariables }),\n );\n }\n\n content = await getBlocksByIdChildren({ block_id: info.id });\n\n const sorts: SortItem[] = [\n {\n direction: \"descending\",\n property: PROPERTIES.datePublished.notion,\n },\n ];\n const filter = getNotionListingByDate__getFilter({\n config,\n pathVariables,\n routeType,\n slug,\n });\n\n const database_id = NOTION[routeType.toUpperCase()].database_id;\n\n const ___items: any = await getDatabasesByIdQuery({\n database_id,\n filter,\n sorts,\n });\n const __items: any[] = [];\n _map(___items.results, (i) => {\n const item = _omit(i, \"properties\");\n item.properties = sortObject(\n dataNormalized({ config, data: i, pageId: item.id, pathVariables }),\n );\n !!item && __items.push(item);\n });\n const _items = _omit(___items, \"results\");\n _items.results = __items;\n const items = _omit(_items, \"data\");\n\n /**\n * @note(plaiceholder)\n *\n * Pass empty `images` object for SSR/API takeover\n */\n return { content, images: {}, info, items };\n};\n\nexport default getNotionListingByDate;\n"],"mappings":"4OAOA,MAAM,GAAqC,CAAE,SAAQ,gBAAe,YAAW,UAAW,CACxF,GAAM,CAAE,UAAW,EACb,CAAE,QAAS,EACX,CAAC,EAAM,EAAO,GAAO,EACrB,EAAYA,EAAM,CAAI,EAEtB,EAAgB,IAAI,KAAK,CAAC,CAAC,YAAY,EACvC,EAAiB,IAAI,KACzB,GAAG,GAAc,EAAc,MAAM,EAAG,CAAC,EAAE,GAAG,GAAgB,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AAsB,CAAE,SAAU,EAAK,EAAG,CAAC,EAE3D,IAAM,EAAoB,CACxB,CACE,UAAW,aACX,SAAU,EAAW,cAAc,MACrC,CACF,EACM,EAAS,EAAkC,CAC/C,SACA,gBACA,YACA,MACF,CAAC,EAEK,EAAc,EAAO,EAAU,YAAY,EAAE,CAAC,YAE9C,EAAgB,MAAM,EAAsB,CAChD,cACA,SACA,OACF,CAAC,EACK,EAAiB,CAAC,EACxB,EAAK,EAAS,QAAU,GAAM,CAC5B,IAAM,EAAOA,EAAM,EAAG,YAAY,EAClC,EAAK,WAAa,EAChB,EAAe,CAAE,SAAQ,KAAM,EAAG,OAAQ,EAAK,GAAI,eAAc,CAAC,CACpE,EACE,GAAQ,EAAQ,KAAK,CAAI,CAC7B,CAAC,EACD,IAAM,EAASA,EAAM,EAAU,SAAS,EACxC,EAAO,QAAU,EACjB,IAAM,EAAQA,EAAM,EAAQ,MAAM,EAOlC,MAAO,CAAE,UAAS,OAAQ,CAAC,EAAG,OAAM,OAAM,CAC5C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{o as e}from"./constants-C2jPji6h.mjs";import{t}from"./utils-B1QU_ezs.mjs";import{omit as n}from"lodash-es";import{sortObject as r}from"@jeromefitz/utils";const i=async({config:i,getBlocksByIdChildren:a,getDatabasesByIdQuery:o,getDeepFetchAllChildren:s,pathVariables:c,routeType:l,slug:u})=>{let{NOTION:d}=i,f=l?.toUpperCase();if(!Object.keys(d).includes(f))return{content:{},images:{},info:{},items:{}};let p=await o({database_id:d[f].database_id,filter:{and:[{...e.slug,rich_text:{equals:u}}]}}),m=p?.object===`list`&&p.results[0];if(!m)return{};let h=n(m,`properties`);return h.properties=r(t({config:i,data:m,pageId:h.id,pathVariables:c})),{content:[...await s({blocks:(await a({block_id:h.id})).results})],images:{},info:h,items:{}}};export{i as t};
|
|
2
|
+
//# sourceMappingURL=get-notion-slug-BecwpT0b.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-notion-slug-BecwpT0b.mjs","names":["_omit"],"sources":["../src/queries/get-notion-slug/index.ts"],"sourcesContent":["import { sortObject } from \"@jeromefitz/utils\";\nimport { omit as _omit } from \"lodash-es\";\n\nimport { QUERIES } from \"../../constants/index\";\nimport { dataNormalized } from \"../../utils/index\";\n\nconst getNotionSlug = async ({\n config,\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n getDeepFetchAllChildren,\n pathVariables,\n routeType,\n slug,\n}) => {\n const { NOTION } = config;\n\n const DB_TYPE = routeType?.toUpperCase();\n const isValid = Object.keys(NOTION).includes(DB_TYPE);\n\n if (!isValid) return { content: {}, images: {}, info: {}, items: {} };\n\n const __info: any = await getDatabasesByIdQuery({\n database_id: NOTION[DB_TYPE].database_id,\n filter: {\n and: [\n {\n ...QUERIES.slug,\n rich_text: { equals: slug },\n },\n ],\n },\n });\n\n const _info = __info?.object === \"list\" && __info.results[0];\n // @refactor(404)\n if (!_info) {\n return {};\n }\n\n const info = _omit(_info, \"properties\");\n info.properties = sortObject(\n dataNormalized({ config, data: _info, pageId: info.id, pathVariables }),\n );\n\n const _content = await getBlocksByIdChildren({ block_id: info.id });\n const blocks = [...(await getDeepFetchAllChildren({ blocks: _content.results }))];\n const content = blocks;\n\n /**\n * @question if this is reached, there are no `items`\n */\n // const items: any = {}\n // items.results = _filter(items?.results, { properties: { isPublished: true } })\n\n /**\n * @note(plaiceholder)\n *\n * Pass empty `images` object for SSR/API takeover\n */\n return { content, images: {}, info, items: {} };\n};\n\nexport default getNotionSlug;\n"],"mappings":"iKAMA,MAAM,EAAgB,MAAO,CAC3B,SACA,wBACA,wBACA,0BACA,gBACA,YACA,UACI,CACJ,GAAM,CAAE,UAAW,EAEb,EAAU,GAAW,YAAY,EAGvC,GAAI,CAFY,OAAO,KAAK,CAAM,CAAC,CAAC,SAAS,CAExC,EAAS,MAAO,CAAE,QAAS,CAAC,EAAG,OAAQ,CAAC,EAAG,KAAM,CAAC,EAAG,MAAO,CAAC,CAAE,EAEpE,IAAM,EAAc,MAAM,EAAsB,CAC9C,YAAa,EAAO,EAAQ,CAAC,YAC7B,OAAQ,CACN,IAAK,CACH,CACE,GAAG,EAAQ,KACX,UAAW,CAAE,OAAQ,CAAK,CAC5B,CACF,CACF,CACF,CAAC,EAEK,EAAQ,GAAQ,SAAW,QAAU,EAAO,QAAQ,GAE1D,GAAI,CAAC,EACH,MAAO,CAAC,EAGV,IAAM,EAAOA,EAAM,EAAO,YAAY,EAoBtC,MAnBA,GAAK,WAAa,EAChB,EAAe,CAAE,SAAQ,KAAM,EAAO,OAAQ,EAAK,GAAI,eAAc,CAAC,CACxE,EAiBO,CAAE,SAdO,GAAI,MAAM,EAAwB,CAAE,QAAQ,MADrC,EAAsB,CAAE,SAAU,EAAK,EAAG,CAAC,EACN,CAAS,OAAQ,CAAC,CAcrE,EAAS,OAAQ,CAAC,EAAG,OAAM,MAAO,CAAC,CAAE,CAChD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e,o as t,t as n}from"./constants-C2jPji6h.mjs";import{t as r}from"./add-time-B_LfV4Ex.mjs";import{t as i}from"./utils-B1QU_ezs.mjs";import{omit as a,size as o}from"lodash-es";import{sortObject as s}from"@jeromefitz/utils";const c=async({config:e,getBlocksByIdChildren:n,getDatabasesByIdQuery:r,getQuery:c,pathVariables:l,routeType:u})=>{let{NOTION:d}=e,{meta:f}=l,p=u.toUpperCase(),[m,h]=f,g=o(f)===2,_=d[p]?.hasChild?.toUpperCase(),v=await r({database_id:d[g?d[_].routeType.toUpperCase():p].database_id,filter:{and:[{...t.slug,rich_text:{equals:g?h:m}}]}}),y=v?.object===`list`&&v.results[0];if(!y)return{content:{},images:{},info:{},items:{}};let b=a(y,`properties`);b.properties=s(i({config:e,data:y,pageId:b.id,pathVariables:l}));let x=await n({block_id:b.id}),S={};return g||(S=await c({config:e,reqQuery:{databaseType:d[_].routeType.toUpperCase(),podcasts:b.id}})),{content:x,images:{},info:b,items:S}},l=async({config:n,getBlocksByIdChildren:o,getDatabasesByIdQuery:c,pathVariables:l,routeType:u,slug:d})=>{let f=new Date().toISOString(),{NOTION:p}=n,{meta:m}=l,[h,g,_]=m,v=new Date(`${h||f.slice(0,4)}-${g||`01`}-${_||`01`}`),y=p[u.toUpperCase()]?.infoType?.notion??e.datePublished.notion,b=await c({database_id:p[u.toUpperCase()].database_id,filter:{and:[{date:{on_or_after:r(v,``)},property:y},{date:{before:r(v,`day`)},property:y},{...t.slug,rich_text:{equals:d}}]}}),x=b?.object===`list`&&b.results[0];if(!x)return{content:{},images:{},info:{},items:{}};let S=a(x,`properties`);return S.properties=s(i({config:n,data:x,pageId:S.id,pathVariables:l})),{content:await o({block_id:S.id}),images:{},info:S,items:{}}},u=async({config:e,getBlocksByIdChildren:t,getDatabasesByIdQuery:r,getQuery:i,pathVariables:a,routeType:o,slug:s})=>{let{NOTION:u,ROUTE_TYPES_BY_DATA_TYPES:d}=e;return u[o?.toUpperCase()]?.hasChild?await c({config:e,getBlocksByIdChildren:t,getDatabasesByIdQuery:r,getQuery:i,pathVariables:a,routeType:o}):d[n.LISTING_BY_DATE].includes(o.toUpperCase())?await l({config:e,getBlocksByIdChildren:t,getDatabasesByIdQuery:r,pathVariables:a,routeType:o,slug:s}):{content:{},images:{},info:{},items:{}}};export{u as t};
|
|
2
|
+
//# sourceMappingURL=get-notion-slug-by-route-Dh428D_m.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-notion-slug-by-route-Dh428D_m.mjs","names":["_size","_omit"],"sources":["../src/queries/get-notion-slug-by-route/index.ts"],"sourcesContent":["import { sortObject } from \"@jeromefitz/utils\";\nimport { omit as _omit, size as _size } from \"lodash-es\";\n\nimport { DATA_TYPES, PROPERTIES, QUERIES } from \"../../constants/index\";\nimport { addTime, dataNormalized } from \"../../utils/index\";\n\n/**\n * @note Determine if PARENT|CHILD should be returned:\n *\n * PARENT\n * - /[parent-routeType]/[slug]\n * - /podcasts/jer-and-ky-and-guest\n *\n * CHILD\n * - /[parent-routeType]/[child-routeType]/[slug]\n * - /podcasts/jer-and-ky-and-guest/am-i-dracula-greg-gillotti\n\n *\n */\nconst getNotionSlugByRoute__getDataByParentRouteType = async ({\n config,\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n getQuery,\n pathVariables,\n routeType,\n // slug,\n}) => {\n const { NOTION } = config;\n const { meta } = pathVariables;\n\n const ROUTE_TYPE = routeType.toUpperCase();\n\n const [parentSlug, slug] = meta;\n const isChild = _size(meta) === 2;\n\n const CHILD = NOTION[ROUTE_TYPE]?.hasChild?.toUpperCase();\n\n const __info: any = await getDatabasesByIdQuery({\n database_id: NOTION[isChild ? NOTION[CHILD].routeType.toUpperCase() : ROUTE_TYPE].database_id,\n filter: {\n and: [\n {\n ...QUERIES.slug,\n rich_text: { equals: isChild ? slug : parentSlug },\n },\n ],\n },\n });\n\n const _info = __info?.object === \"list\" && __info.results[0];\n // @refactor(404)\n if (!_info) {\n return { content: {}, images: {}, info: {}, items: {} };\n }\n const info = _omit(_info, \"properties\");\n info.properties = sortObject(\n dataNormalized({ config, data: _info, pageId: info.id, pathVariables }),\n );\n const content = await getBlocksByIdChildren({ block_id: info.id });\n let items = {};\n\n /**\n * @note if PARENT then get CHILDREN via `items`\n */\n if (!isChild) {\n items = await getQuery({\n config,\n reqQuery: {\n databaseType: NOTION[CHILD].routeType.toUpperCase(),\n podcasts: info.id,\n },\n });\n }\n\n return { content, images: {}, info, items };\n};\n\n/**\n * @note This is unique because the following are different:\n *\n * - /events/2020/05/01/jerome-and\n * - /events/2020/05/08/jerome-and\n * - /[routeType]/[yyyy/mm/dd]/[slug]\n *\n * We actually _do_ use the date for this.\n *\n */\nconst getNotionSlugByRoute__getDataByListingDate = async ({\n config,\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n // getQuery,\n pathVariables,\n routeType,\n slug,\n}) => {\n const dateTimestamp = new Date().toISOString();\n\n const { NOTION } = config;\n const { meta } = pathVariables;\n\n const [year, month, day] = meta;\n /**\n * @hack uh... nothing to see here, haha\n */\n const timestampQuery = new Date(\n `${year ? year : dateTimestamp.slice(0, 4)}-${month ? month : \"01\"}-${day ? day : \"01\"}`,\n );\n const property =\n NOTION[routeType.toUpperCase()]?.infoType?.notion ?? PROPERTIES.datePublished.notion;\n\n const __info: any = await getDatabasesByIdQuery({\n database_id: NOTION[routeType.toUpperCase()].database_id,\n filter: {\n and: [\n {\n date: {\n on_or_after: addTime(timestampQuery, \"\"),\n },\n property,\n },\n {\n date: {\n before: addTime(timestampQuery, \"day\"),\n },\n property,\n },\n {\n ...QUERIES.slug,\n rich_text: { equals: slug },\n },\n ],\n },\n });\n\n const _info = __info?.object === \"list\" && __info.results[0];\n // @refactor(404)\n if (!_info) {\n return { content: {}, images: {}, info: {}, items: {} };\n }\n\n const info = _omit(_info, \"properties\");\n info.properties = sortObject(\n dataNormalized({ config, data: _info, pageId: info.id, pathVariables }),\n );\n const content = await getBlocksByIdChildren({ block_id: info.id });\n\n return { content, images: {}, info, items: {} };\n};\n\nconst getNotionSlugByRoute = async ({\n config,\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n getQuery,\n pathVariables,\n routeType,\n slug,\n}) => {\n const { NOTION, ROUTE_TYPES_BY_DATA_TYPES } = config;\n\n /**\n * @custom (notion) DATA_TYPES.SLUG_BY_ROUTE -- but customized:\n * Determine if `routeType` is a parent|child\n *\n * // @todo(next-notion) move to `isChild`\n *\n */\n if (NOTION[routeType?.toUpperCase()]?.hasChild) {\n return await getNotionSlugByRoute__getDataByParentRouteType({\n config,\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n getQuery,\n pathVariables,\n routeType,\n // slug,\n });\n }\n\n /**\n * @custom (notion) DATA_TYPES.LISTING_BY_DATE\n *\n */\n if (ROUTE_TYPES_BY_DATA_TYPES[DATA_TYPES.LISTING_BY_DATE].includes(routeType.toUpperCase())) {\n return await getNotionSlugByRoute__getDataByListingDate({\n config,\n getBlocksByIdChildren,\n getDatabasesByIdQuery,\n // getQuery,\n pathVariables,\n routeType,\n slug,\n });\n }\n\n return { content: {}, images: {}, info: {}, items: {} };\n};\n\nexport default getNotionSlugByRoute;\n"],"mappings":"0OAmBA,MAAM,EAAiD,MAAO,CAC5D,SACA,wBACA,wBACA,WACA,gBACA,eAEI,CACJ,GAAM,CAAE,UAAW,EACb,CAAE,QAAS,EAEX,EAAa,EAAU,YAAY,EAEnC,CAAC,EAAY,GAAQ,EACrB,EAAUA,EAAM,CAAI,IAAM,EAE1B,EAAQ,EAAO,EAAW,EAAE,UAAU,YAAY,EAElD,EAAc,MAAM,EAAsB,CAC9C,YAAa,EAAO,EAAU,EAAO,EAAM,CAAC,UAAU,YAAY,EAAI,EAAW,CAAC,YAClF,OAAQ,CACN,IAAK,CACH,CACE,GAAG,EAAQ,KACX,UAAW,CAAE,OAAQ,EAAU,EAAO,CAAW,CACnD,CACF,CACF,CACF,CAAC,EAEK,EAAQ,GAAQ,SAAW,QAAU,EAAO,QAAQ,GAE1D,GAAI,CAAC,EACH,MAAO,CAAE,QAAS,CAAC,EAAG,OAAQ,CAAC,EAAG,KAAM,CAAC,EAAG,MAAO,CAAC,CAAE,EAExD,IAAM,EAAOC,EAAM,EAAO,YAAY,EACtC,EAAK,WAAa,EAChB,EAAe,CAAE,SAAQ,KAAM,EAAO,OAAQ,EAAK,GAAI,eAAc,CAAC,CACxE,EACA,IAAM,EAAU,MAAM,EAAsB,CAAE,SAAU,EAAK,EAAG,CAAC,EAC7D,EAAQ,CAAC,EAeb,OAVK,IACH,EAAQ,MAAM,EAAS,CACrB,SACA,SAAU,CACR,aAAc,EAAO,EAAM,CAAC,UAAU,YAAY,EAClD,SAAU,EAAK,EACjB,CACF,CAAC,GAGI,CAAE,UAAS,OAAQ,CAAC,EAAG,OAAM,OAAM,CAC5C,EAYM,EAA6C,MAAO,CACxD,SACA,wBACA,wBAEA,gBACA,YACA,UACI,CACJ,IAAM,EAAgB,IAAI,KAAK,CAAC,CAAC,YAAY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,CACtD,SACA,wBACA,wBAEA,gBACA,YACA,MACF,CAAC,EAGI,CAAE,QAAS,CAAC,EAAG,OAAQ,CAAC,EAAG,KAAM,CAAC,EAAG,MAAO,CAAC,CAAE,CACxD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{avoidRateLimit as e,isUndefined as t}from"@jeromefitz/utils";const n=async({getPagesRetrieve:n,page_id:r})=>t(r)?[]:(await e(0),await n({page_id:r}));export{n as
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
import{avoidRateLimit as e,isUndefined as t}from"@jeromefitz/utils";const n=async({getPagesRetrieve:n,page_id:r})=>t(r)?[]:(await e(0),await n({page_id:r}));export{n as t};
|
|
2
|
+
//# sourceMappingURL=get-pages-by-id-D_3I7OED.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-pages-by-id-D_3I7OED.mjs","names":[],"sources":["../src/queries/get-pages-by-id/index.ts"],"sourcesContent":["import { avoidRateLimit, isUndefined } from \"@jeromefitz/utils\";\n\n// @todo(types)\nconst getPagesById = async ({ getPagesRetrieve, page_id }) => {\n if (isUndefined(page_id)) return [];\n await avoidRateLimit(0);\n return await getPagesRetrieve({\n page_id,\n });\n};\n\nexport default getPagesById;\n"],"mappings":"oEAGA,MAAM,EAAe,MAAO,CAAE,mBAAkB,aAC1C,EAAY,CAAO,EAAU,CAAC,GAClC,MAAM,EAAe,CAAC,EACf,MAAM,EAAiB,CAC5B,SACF,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./utils-B1QU_ezs.mjs";import{t as e}from"./get-data-type-B5X5VOmp.mjs";import{drop as t,dropRight as n,first as r,includes as i,isInteger as a,join as o,last as s,size as c}from"lodash-es";const l=({catchAll:l,config:u})=>{let{NOTION:d,PAGES__HOMEPAGE:f,ROUTE_META:p,ROUTE_TYPES:m}=u,h=c(l),g=r(l),_=g.toUpperCase(),v=s(l),y=h>1&&i(p,_)?t(l):t(n(l)),b=g===v&&!i(m,_)?d.PAGES.routeType:g,x=g!==v&&!a(parseInt(v))?v:g,S=b===d.PAGES.routeType.toLowerCase(),C=x===g,w={hasMeta:!!y&&c(y)!==0,isIndex:C,isPage:S,meta:y,routeType:b,slug:x,url:S&&g===f?``:o(l,`/`)},T=e(w);return{...w,dataType:T}};export{l as t};
|
|
2
|
+
//# sourceMappingURL=get-path-variables-CnBrxTgg.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-path-variables-CnBrxTgg.mjs","names":["size","_size","first","_first","last","_last","_includes","_drop","_dropRight","_isInteger","_join"],"sources":["../src/queries/get-path-variables/index.ts"],"sourcesContent":["/**\n * @refactor(lodash)\n */\nimport {\n drop as _drop,\n dropRight as _dropRight,\n first as _first,\n includes as _includes,\n isInteger as _isInteger,\n join as _join,\n last as _last,\n size as _size,\n} from \"lodash-es\";\n\n// import { DATA_TYPES } from '../../constants/index'\nimport { getDataType } from \"../../utils/index\";\n\nconst getPathVariables = ({ catchAll, config }) => {\n const { NOTION, PAGES__HOMEPAGE, ROUTE_META, ROUTE_TYPES } = config;\n const size: number = _size(catchAll);\n const first: any = _first(catchAll);\n const FIRST = first.toUpperCase();\n const last: any = _last(catchAll);\n // const LAST = last.toUpperCase()\n\n const meta =\n size > 1 && _includes(ROUTE_META, FIRST) ? _drop(catchAll) : _drop(_dropRight(catchAll));\n\n const routeType =\n first === last && !_includes(ROUTE_TYPES, FIRST) ? NOTION.PAGES.routeType : first;\n const slug = first !== last && !_isInteger(parseInt(last)) ? last : first;\n\n const isPage = routeType === NOTION.PAGES.routeType.toLowerCase();\n const isIndex = slug === first;\n const hasMeta = !!meta && _size(meta) !== 0;\n\n const url = isPage && first === PAGES__HOMEPAGE ? \"\" : _join(catchAll, \"/\");\n\n const pathVariables = {\n hasMeta,\n isIndex,\n isPage,\n meta,\n routeType,\n slug,\n url,\n };\n\n // console.dir(`> pathVariables`)\n // console.dir(pathVariables)\n\n const dataType = getDataType(pathVariables);\n\n return {\n ...pathVariables,\n dataType,\n };\n};\n\nexport default getPathVariables;\n"],"mappings":"oMAiBA,MAAM,GAAoB,CAAE,WAAU,YAAa,CACjD,GAAM,CAAE,SAAQ,kBAAiB,aAAY,eAAgB,EACvDA,EAAeC,EAAM,CAAQ,EAC7BC,EAAaC,EAAO,CAAQ,EAC5B,EAAQD,EAAM,YAAY,EAC1BE,EAAYC,EAAM,CAAQ,EAG1B,EACJL,EAAO,GAAKM,EAAU,EAAY,CAAK,EAAIC,EAAM,CAAQ,EAAIA,EAAMC,EAAW,CAAQ,CAAC,EAEnF,EACJN,IAAUE,GAAQ,CAACE,EAAU,EAAa,CAAK,EAAI,EAAO,MAAM,UAAYJ,EACxE,EAAOA,IAAUE,GAAQ,CAACK,EAAW,SAASL,CAAI,CAAC,EAAIA,EAAOF,EAE9D,EAAS,IAAc,EAAO,MAAM,UAAU,YAAY,EAC1D,EAAU,IAASA,EAKnB,EAAgB,CACpB,QALc,CAAC,CAAC,GAAQD,EAAM,CAAI,IAAM,EAMxC,UACA,SACA,OACA,YACA,OACA,IATU,GAAUC,IAAU,EAAkB,GAAKQ,EAAM,EAAU,GAAG,CAU1E,EAKM,EAAW,EAAY,CAAa,EAE1C,MAAO,CACL,GAAG,EACH,UACF,CACF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e}from"./constants-C2jPji6h.mjs";import{n as t}from"./utils-B1QU_ezs.mjs";import{map as n,omit as r,size as i}from"lodash-es";import{avoidRateLimit as a,isObjectEmpty as o}from"@jeromefitz/utils";const s=[{direction:`ascending`,property:e.slug.notion}],c=async({config:c,notionDatabasesQuery:l,reqQuery:u})=>{let{NOTION:d}=c,{databaseType:f}=u,p=f,m=!1,h=d[f.toUpperCase()].database_id;if(!h)return[];let g={},_={},v,y;if(f===`EPISODES`){y=s;let{podcasts:t}=u,r=[],a=[];t&&a.push(...t?.split(`,`)),i(a)>0&&n(a,t=>r.push({property:e.relationEpisodes__Podcasts.notion,relation:{contains:t}})),v={or:[...r]}}else m=!0;if(!m&&(!g||o(g))){await a(0);let n;v?(v?.or.length===0&&(v={and:[{property:e.slug.notion,rich_text:{equals:`@hack(notion)-do-not-return`}}]}),n=await l({database_id:h,filter:v,sorts:y}),g=n,_=t({config:c,results:n.results,routeType:p}),g=r(g,`results`),g.results=_):m=!0}return g};export{c as t};
|
|
2
|
+
//# sourceMappingURL=get-query-ljtSpKL5.mjs.map
|