dineway 0.1.47 → 0.1.49
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/README.md +57 -54
- package/dist/{activity-events-CNk3clTT.mjs → activity-events-CwM7yxPW.mjs} +1 -1
- package/dist/{allowed-origins-QirBXiDj.mjs → allowed-origins-CyGnbgBd.mjs} +1 -1
- package/dist/api/route-utils.d.mts +8 -22
- package/dist/api/route-utils.mjs +10 -10
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-ePsOhL3q.mjs → api-BMIxRIEN.mjs} +65 -18
- package/dist/{apply-BpRBCqUt.mjs → apply-D_RlTYtC.mjs} +54 -48
- package/dist/astro/index.d.mts +8 -8
- package/dist/astro/index.mjs +67 -25
- package/dist/astro/middleware/auth.d.mts +7 -7
- package/dist/astro/middleware/auth.mjs +1 -1
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +4 -4
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +2 -2
- package/dist/astro/middleware.d.mts +2 -1
- package/dist/astro/middleware.mjs +366 -147
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +3 -3
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +3 -3
- package/dist/astro/routes/api/admin/briefing.mjs +16 -16
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +5 -5
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +11 -11
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +11 -11
- package/dist/astro/routes/api/admin/bylines/index.mjs +11 -11
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/bulk.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/counts.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/index.mjs +7 -7
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +26 -26
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +26 -26
- package/dist/astro/routes/api/admin/context/diff.mjs +25 -25
- package/dist/astro/routes/api/admin/context/index.mjs +26 -26
- package/dist/astro/routes/api/admin/context/stale.mjs +25 -25
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +24 -24
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +26 -26
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +26 -26
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +23 -23
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +37 -37
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/index.mjs +37 -37
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +37 -37
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +37 -37
- package/dist/astro/routes/api/admin/plugins/updates.mjs +37 -37
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +25 -25
- package/dist/astro/routes/api/admin/review-requests/index.mjs +7 -7
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +37 -37
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +37 -37
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +3 -3
- package/dist/astro/routes/api/auth/dev-bypass.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/index.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/register-options.mjs +5 -5
- package/dist/astro/routes/api/auth/magic-link/send.mjs +5 -5
- package/dist/astro/routes/api/auth/me.mjs +7 -7
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/options.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/setup-token/index.mjs +4 -4
- package/dist/astro/routes/api/auth/signup/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/request.mjs +5 -5
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +7 -6
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +13 -11
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +7 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/authors.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/authors.mjs +16 -0
- package/dist/astro/routes/api/content/_collection_/index.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/trash.mjs +3 -3
- package/dist/astro/routes/api/dashboard.mjs +7 -7
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +2 -2
- package/dist/astro/routes/api/import/probe.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.mjs +28 -28
- package/dist/astro/routes/api/import/wordpress/media.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +29 -29
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +27 -27
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress-plugin/callback.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +29 -29
- package/dist/astro/routes/api/manifest.mjs +1 -1
- package/dist/astro/routes/api/mcp.mjs +49 -49
- package/dist/astro/routes/api/media/_id_/confirm.mjs +6 -6
- package/dist/astro/routes/api/media/_id_.mjs +3 -3
- package/dist/astro/routes/api/media/upload-url.mjs +8 -8
- package/dist/astro/routes/api/media.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +26 -26
- package/dist/astro/routes/api/menus/_name_/items.mjs +26 -26
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +26 -26
- package/dist/astro/routes/api/menus/_name_/translations.mjs +26 -26
- package/dist/astro/routes/api/menus/_name_.mjs +26 -26
- package/dist/astro/routes/api/menus/index.mjs +26 -26
- package/dist/astro/routes/api/oauth/authorize.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/authorize.mjs +1 -1
- package/dist/astro/routes/api/oauth/device/code.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/token.mjs +1 -1
- package/dist/astro/routes/api/oauth/token/refresh.mjs +1 -1
- package/dist/astro/routes/api/oauth/token/revoke.mjs +1 -1
- package/dist/astro/routes/api/oauth/token.mjs +2 -2
- package/dist/astro/routes/api/openapi.json.mjs +16 -2
- package/dist/astro/routes/api/redirects/404s/index.mjs +8 -8
- package/dist/astro/routes/api/redirects/404s/summary.mjs +8 -8
- package/dist/astro/routes/api/redirects/_id_.mjs +27 -27
- package/dist/astro/routes/api/redirects/index.mjs +27 -27
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +38 -38
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +38 -38
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +38 -38
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +38 -38
- package/dist/astro/routes/api/schema/collections/index.mjs +38 -38
- package/dist/astro/routes/api/schema/index.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +37 -37
- package/dist/astro/routes/api/schema/orphans/index.mjs +37 -37
- package/dist/astro/routes/api/search/enable.mjs +8 -8
- package/dist/astro/routes/api/search/index.mjs +8 -8
- package/dist/astro/routes/api/search/rebuild.mjs +8 -8
- package/dist/astro/routes/api/search/stats.mjs +5 -5
- package/dist/astro/routes/api/search/suggest.mjs +8 -8
- package/dist/astro/routes/api/sections/_slug_.mjs +26 -26
- package/dist/astro/routes/api/sections/index.mjs +26 -26
- package/dist/astro/routes/api/settings/email.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +26 -26
- package/dist/astro/routes/api/setup/admin-verify.mjs +7 -7
- package/dist/astro/routes/api/setup/admin.mjs +5 -5
- package/dist/astro/routes/api/setup/dev-bypass.mjs +19 -19
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +22 -22
- package/dist/astro/routes/api/setup/status.mjs +1 -1
- package/dist/astro/routes/api/snapshot.mjs +4 -4
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +28 -28
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +28 -28
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +28 -28
- package/dist/astro/routes/api/taxonomies/index.mjs +28 -28
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +3 -3
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +25 -25
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +26 -26
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +26 -26
- package/dist/astro/routes/api/widget-areas/_name_.mjs +24 -24
- package/dist/astro/routes/api/widget-areas/index.mjs +26 -26
- package/dist/astro/routes/robots.txt.mjs +47 -24
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +8 -8
- package/dist/astro/routes/sitemap.xml.mjs +8 -8
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +3 -3
- package/dist/astro/types.d.mts +15 -8
- package/dist/{audit-DuRbTm8L.mjs → audit-BeNsSyfU.mjs} +1 -1
- package/dist/{briefing-BFEWeJtR.mjs → briefing-CkTee1ex.mjs} +7 -7
- package/dist/{briefing-C4fJSVYW.mjs → briefing-DJX6irto.mjs} +1 -1
- package/dist/{byline-CXQcMsBu.mjs → byline-BVC1lV6G.mjs} +5 -5
- package/dist/{byline-fields-Dc7L6Yry.mjs → byline-fields-Cj39WhXC.mjs} +1 -1
- package/dist/{byline-fields-D7TJ_oHF.mjs → byline-fields-cNrLJVRs.mjs} +3 -3
- package/dist/{byline-fields-Cuo-JI3B.d.mts → byline-fields-uJlygdzM.d.mts} +34 -10
- package/dist/{byline-registry-CL8BxPPp.mjs → byline-registry-4v6tXMNX.mjs} +2 -2
- package/dist/{bylines-BgriNlW7.mjs → bylines-DwokOFj6.mjs} +38 -4
- package/dist/{bylines-D2vqm1aZ.mjs → bylines-LN9XISRo.mjs} +2 -2
- package/dist/{cache-GRK71jOU.mjs → cache-Bac05gBd.mjs} +2 -2
- package/dist/{chunks-DgEw12Bc.mjs → chunks-CuUt7K50.mjs} +1 -1
- package/dist/cli/index.mjs +709 -589
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{comment-ogMaF1gk.mjs → comment-Beue8-15.mjs} +1 -1
- package/dist/{comments-CTSOKrZq.mjs → comments-DcjFIfqX.mjs} +1 -1
- package/dist/{content-BfyjOiMi.mjs → content-CBxYGWfL.mjs} +104 -41
- package/dist/{context-ZMHhwzkG.mjs → context-CQVNZaR8.mjs} +7 -7
- package/dist/{context-CdsYb1m8.mjs → context-Df1xVYyr.mjs} +2 -2
- package/dist/{context-route-helpers-YLWx2N1j.mjs → context-route-helpers-B9wj8Rmh.mjs} +1 -1
- package/dist/{dashboard-D0gWuzNp.mjs → dashboard-B7ZUNuyF.mjs} +4 -4
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/{default-BHauvIdG.mjs → default-B6iaLvP7.mjs} +4 -2
- package/dist/{device-flow-B3_FEoMI.mjs → device-flow-BZVGftqi.mjs} +1 -1
- package/dist/{fts-manager-EHY2Kes9.mjs → fts-manager-B5l_qwrA.mjs} +1 -1
- package/dist/{hitl-requests-B1Zqgut6.mjs → hitl-requests-7NlzVeUA.mjs} +1 -1
- package/dist/{hitl-route-helpers-CjpWUMuw.mjs → hitl-route-helpers-k---_H3-.mjs} +2 -2
- package/dist/{import-CvHY6sf5.mjs → import-4YBXbDkI.mjs} +2 -2
- package/dist/{index-DJVaYiUV.d.mts → index-CZiWCQDp.d.mts} +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.mjs +59 -59
- package/dist/{jsonld-AcPnCEGD.d.mts → jsonld-DZ67souc.d.mts} +1 -1
- package/dist/{load-BdbvtoDb.mjs → load-D9OiGr2m.mjs} +1 -1
- package/dist/{loader-Y0QvC_QO.mjs → loader--GOYux8M.mjs} +138 -36
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +7 -7
- package/dist/media/local-runtime.mjs +3 -3
- package/dist/{media-DhBwiCYR.mjs → media-CbKyYukG.mjs} +1 -1
- package/dist/{media-allowlist-BsXkT9RK.mjs → media-allowlist-BYxJIcTO.mjs} +1 -1
- package/dist/{menus-BzGQpw9d.mjs → menus-BZbXf-ej.mjs} +2 -2
- package/dist/{menus-fqqzXyHd.mjs → menus-C7F0sCrC.mjs} +13 -8
- package/dist/{normalize-O-hi3a27.mjs → normalize-ByemhhfW.mjs} +1 -1
- package/dist/{oauth-authorization-DsF81vki.mjs → oauth-authorization-DF-LCsIA.mjs} +1 -1
- package/dist/page/index.d.mts +2 -2
- package/dist/plugin-utils.d.mts +7 -7
- package/dist/plugins/adapt-sandbox-entry.d.mts +7 -7
- package/dist/{plugins-BQ5Joz6v.mjs → plugins-DzfqRREq.mjs} +195 -5
- package/dist/{preview-D5rvDhRt.mjs → preview-C-3YTX2U.mjs} +1 -1
- package/dist/public-url-B4xV4rGa.d.mts +19 -0
- package/dist/{public-url-DLUM5OOv.mjs → public-url-B_m9IwdV.mjs} +24 -18
- package/dist/{query-BJuUydtD.mjs → query-CZ3TH_Uu.mjs} +3 -3
- package/dist/{query-CSx0EdSW.mjs → query-Ds0EnMFX.mjs} +29 -18
- package/dist/{redirect-BqFMj67n.mjs → redirect-CEACczxo.mjs} +2 -2
- package/dist/{redirects-CJwHl_YG.mjs → redirects-DYj1yPxs.mjs} +4 -4
- package/dist/{redirects-q_cToaHv.mjs → redirects-ocRJmQHP.mjs} +23 -3
- package/dist/{registry-Cq3QRBW2.mjs → registry-D7HACema.mjs} +38 -6
- package/dist/{review-requests-tPw8_pAO.mjs → review-requests-BW2NxY-l.mjs} +1 -1
- package/dist/{review-requests-GYqjl2jO.mjs → review-requests-Qum4713s.mjs} +1 -1
- package/dist/{runner-Cnz4dl0f.d.mts → runner-09sTqtv0.d.mts} +1 -1
- package/dist/{runner-DTfG5v0G.mjs → runner-DzIpHGND.mjs} +328 -193
- package/dist/{runtime-Cd-kjPfN.d.mts → runtime-C4-2lSFg.d.mts} +261 -128
- package/dist/runtime.d.mts +8 -8
- package/dist/runtime.mjs +3 -3
- package/dist/schema-Bsi-VpYv.mjs +8 -0
- package/dist/{search-BAiFLz81.mjs → search-Gdrqj582.mjs} +3 -3
- package/dist/{secrets-CPoFLJjm.mjs → secrets-CeGpBFV2.mjs} +2 -2
- package/dist/{sections-DsuIrFDC.mjs → sections-BOjU13Y-.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +18 -18
- package/dist/seo/index.d.mts +1 -1
- package/dist/{seo-uMFBaR8G.mjs → seo-CLj8lS7Q.mjs} +1 -1
- package/dist/{service-CifrxCru.mjs → service-jGlhrICs.mjs} +1 -1
- package/dist/{settings-DNRQuX3d.mjs → settings-CUXOxzsT.mjs} +4 -4
- package/dist/{settings-BYGdocdj.mjs → settings-DlBsT2VS.mjs} +2 -2
- package/dist/{setup-complete-4EiBS1E5.mjs → setup-complete-BRrdPYjZ.mjs} +1 -1
- package/dist/{site-activity-6x1JccoR.mjs → site-activity-DONFrMBJ.mjs} +1 -1
- package/dist/{site-context-c1ZFa_OF.mjs → site-context-C8Az_P_I.mjs} +13 -13
- package/dist/{site-url-C-cu8Ff2.mjs → site-url-DIMD68go.mjs} +1 -1
- package/dist/{taxonomies-faQVeMgj.mjs → taxonomies-CZ-_DitR.mjs} +9 -7
- package/dist/{taxonomies-CQFmkP5u.mjs → taxonomies-D9Sw4wWM.mjs} +3 -3
- package/dist/{taxonomy-BnH-6VsX.mjs → taxonomy-B169Nm6B.mjs} +2 -2
- package/dist/{tokens-CjSgb0AC.mjs → tokens-SLmgowfd.mjs} +1 -1
- package/dist/{types-Ck7-WoUD.mjs → types-CSgR9nQB.mjs} +10 -3
- package/dist/{types-DYKtk8f1.d.mts → types-CuJOqHfM.d.mts} +128 -0
- package/dist/{types-DEAQG87T.d.mts → types-CwawBUTa.d.mts} +1 -1
- package/dist/{types-B7_vSiPD.d.mts → types-DRIKLmJI.d.mts} +14 -2
- package/dist/{types-UGmU5sWx.d.mts → types-DSPGWjxO.d.mts} +1 -1
- package/dist/ui/server-runtime.d.mts +58 -10
- package/dist/ui/server-runtime.mjs +98 -16
- package/dist/{user-CqZwN21P.mjs → user-DTLoZs16.mjs} +15 -1
- package/dist/{utils-wv-zvC-Y.mjs → utils-B8hBJ9Oz.mjs} +1 -1
- package/dist/{validate-CK4a1sIF.mjs → validate-DWmPO6oj.mjs} +5 -2
- package/dist/{validate-BJuG-ISL.d.mts → validate-DzjCdy6v.d.mts} +10 -2
- package/dist/version-C4gfn0PJ.mjs +6 -0
- package/dist/{widgets-CdDvF4fV.mjs → widgets-BpJ8EpPd.mjs} +1 -1
- package/dist/{wordpress-slugs-B6Gw9q3Q.mjs → wordpress-slugs-DHNR9LpG.mjs} +1 -1
- package/dist/{zod-generator-D1ROBNuC.mjs → zod-generator-K91-g665.mjs} +3 -2
- package/package.json +6 -5
- package/src/components/DinewayImage.astro +23 -5
- package/src/components/Image.astro +19 -3
- package/dist/schema-DmHMWnSA.mjs +0 -8
- package/dist/version-Cb1tZ6s_.mjs +0 -6
- /package/dist/{base64-C1Q9yr0B.mjs → base64-F8-DUraK.mjs} +0 -0
- /package/dist/{context-types-DQh_XKkn.mjs → context-types-r8oFvyOq.mjs} +0 -0
- /package/dist/{entity-aliases-uOrKvlPg.mjs → entity-aliases-4y93Yjuc.mjs} +0 -0
- /package/dist/{mime-8pAB8-77.mjs → mime-CbKsKDCB.mjs} +0 -0
- /package/dist/{options-BF11H_FD.mjs → options-LsPjZlqD.mjs} +0 -0
- /package/dist/{patterns-D9iDO3j8.mjs → patterns-DKAX6oqN.mjs} +0 -0
- /package/dist/{placeholder-BDo81Is5.mjs → placeholder-d54Qr_7n.mjs} +0 -0
- /package/dist/{provider-loader-B5PMjpN7.d.mts → provider-loader-9it4vd6L.d.mts} +0 -0
- /package/dist/{request-cache-w5cj5itT.mjs → request-cache-ho99schz.mjs} +0 -0
- /package/dist/{slugify-BzGxlOFx.mjs → slugify-BqebcqBg.mjs} +0 -0
- /package/dist/{transaction-D0FOsb3X.mjs → transaction-CFLhEOuH.mjs} +0 -0
- /package/dist/{transport-DidKKxvW.d.mts → transport-BnsNxh2l.d.mts} +0 -0
- /package/dist/{types-DbZhHtqS.mjs → types-CJ8DkL0q.mjs} +0 -0
|
@@ -1,28 +1,61 @@
|
|
|
1
1
|
import "../../dialect-helpers-fk43GbDb.mjs";
|
|
2
|
-
import "../../base64-
|
|
3
|
-
import "../../types-
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../
|
|
8
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
9
|
-
import { n as getPublicOrigin } from "../../public-url-
|
|
2
|
+
import "../../base64-F8-DUraK.mjs";
|
|
3
|
+
import "../../types-CSgR9nQB.mjs";
|
|
4
|
+
import "../../loader--GOYux8M.mjs";
|
|
5
|
+
import "../../media-CbKyYukG.mjs";
|
|
6
|
+
import "../../options-LsPjZlqD.mjs";
|
|
7
|
+
import "../../request-cache-ho99schz.mjs";
|
|
8
|
+
import { a as getSiteSettingsWithDb } from "../../settings-CUXOxzsT.mjs";
|
|
9
|
+
import { n as getPublicOrigin } from "../../public-url-B_m9IwdV.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/robots.txt.ts
|
|
12
12
|
const prerender = false;
|
|
13
13
|
const TRAILING_SLASH_RE = /\/$/;
|
|
14
|
+
function getDiscoveryUrls(siteUrl) {
|
|
15
|
+
const origin = siteUrl.replace(TRAILING_SLASH_RE, "");
|
|
16
|
+
return {
|
|
17
|
+
sitemapUrl: `${origin}/sitemap.xml`,
|
|
18
|
+
schemaMapUrl: `${origin}/schemamap.xml`
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function appendDiscoveryDirectives(content, siteUrl) {
|
|
22
|
+
const lower = content.toLowerCase();
|
|
23
|
+
const lines = [content.trimEnd()];
|
|
24
|
+
const { sitemapUrl, schemaMapUrl } = getDiscoveryUrls(siteUrl);
|
|
25
|
+
if (!lower.includes("content-signal:")) lines.push("", "# Content Signals (https://contentsignals.org/): preferences for automated use of this content.", "Content-Signal: ai-train=yes, search=yes, ai-input=yes");
|
|
26
|
+
if (!lower.includes("sitemap:")) lines.push("", `Sitemap: ${sitemapUrl}`);
|
|
27
|
+
if (!lower.includes("schemamap:")) lines.push(`Schemamap: ${schemaMapUrl}`);
|
|
28
|
+
return `${lines.join("\n")}\n`;
|
|
29
|
+
}
|
|
30
|
+
function generateDefaultRobots(siteUrl) {
|
|
31
|
+
const { sitemapUrl, schemaMapUrl } = getDiscoveryUrls(siteUrl);
|
|
32
|
+
return [
|
|
33
|
+
"User-agent: *",
|
|
34
|
+
"Allow: /",
|
|
35
|
+
"",
|
|
36
|
+
"# Content Signals (https://contentsignals.org/): preferences for automated use of this content.",
|
|
37
|
+
"Content-Signal: ai-train=yes, search=yes, ai-input=yes",
|
|
38
|
+
"",
|
|
39
|
+
"# Disallow admin and API routes",
|
|
40
|
+
"Disallow: /_dineway/",
|
|
41
|
+
"",
|
|
42
|
+
`Sitemap: ${sitemapUrl}`,
|
|
43
|
+
`Schemamap: ${schemaMapUrl}`,
|
|
44
|
+
""
|
|
45
|
+
].join("\n");
|
|
46
|
+
}
|
|
14
47
|
const GET = async ({ locals, url }) => {
|
|
15
48
|
const { dineway } = locals;
|
|
16
|
-
|
|
49
|
+
const fallbackSiteUrl = getPublicOrigin(url, dineway?.config);
|
|
50
|
+
if (!dineway?.db) return new Response(generateDefaultRobots(fallbackSiteUrl), {
|
|
17
51
|
status: 200,
|
|
18
52
|
headers: { "Content-Type": "text/plain; charset=utf-8" }
|
|
19
53
|
});
|
|
20
54
|
try {
|
|
21
55
|
const settings = await getSiteSettingsWithDb(dineway.db);
|
|
22
|
-
const
|
|
56
|
+
const siteUrl = settings.url || fallbackSiteUrl;
|
|
23
57
|
if (settings.seo?.robotsTxt) {
|
|
24
|
-
|
|
25
|
-
if (!content.toLowerCase().includes("sitemap:")) content = `${content.trimEnd()}\n\nSitemap: ${sitemapUrl}\n`;
|
|
58
|
+
const content = appendDiscoveryDirectives(settings.seo.robotsTxt, siteUrl);
|
|
26
59
|
return new Response(content, {
|
|
27
60
|
status: 200,
|
|
28
61
|
headers: {
|
|
@@ -31,17 +64,7 @@ const GET = async ({ locals, url }) => {
|
|
|
31
64
|
}
|
|
32
65
|
});
|
|
33
66
|
}
|
|
34
|
-
|
|
35
|
-
"User-agent: *",
|
|
36
|
-
"Allow: /",
|
|
37
|
-
"",
|
|
38
|
-
"# Disallow admin and API routes",
|
|
39
|
-
"Disallow: /_dineway/",
|
|
40
|
-
"",
|
|
41
|
-
`Sitemap: ${sitemapUrl}`,
|
|
42
|
-
""
|
|
43
|
-
].join("\n");
|
|
44
|
-
return new Response(defaultRobots, {
|
|
67
|
+
return new Response(generateDefaultRobots(siteUrl), {
|
|
45
68
|
status: 200,
|
|
46
69
|
headers: {
|
|
47
70
|
"Content-Type": "text/plain; charset=utf-8",
|
|
@@ -49,7 +72,7 @@ const GET = async ({ locals, url }) => {
|
|
|
49
72
|
}
|
|
50
73
|
});
|
|
51
74
|
} catch {
|
|
52
|
-
return new Response(
|
|
75
|
+
return new Response(generateDefaultRobots(fallbackSiteUrl), {
|
|
53
76
|
status: 200,
|
|
54
77
|
headers: { "Content-Type": "text/plain; charset=utf-8" }
|
|
55
78
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "../../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import { n as getI18nConfig, r as isI18nEnabled } from "../../config-CVssduLe.mjs";
|
|
3
|
-
import "../../base64-
|
|
4
|
-
import "../../types-
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../
|
|
8
|
-
import "../../
|
|
9
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
3
|
+
import "../../base64-F8-DUraK.mjs";
|
|
4
|
+
import "../../types-CSgR9nQB.mjs";
|
|
5
|
+
import "../../loader--GOYux8M.mjs";
|
|
6
|
+
import "../../media-CbKyYukG.mjs";
|
|
7
|
+
import "../../options-LsPjZlqD.mjs";
|
|
8
|
+
import "../../request-cache-ho99schz.mjs";
|
|
9
|
+
import { a as getSiteSettingsWithDb } from "../../settings-CUXOxzsT.mjs";
|
|
10
10
|
import { t as handleSitemapData } from "../../seo-5lJOtB5J.mjs";
|
|
11
11
|
import { n as localizePath, t as interpolateUrlPattern } from "../../resolve-DTuDyYKs.mjs";
|
|
12
|
-
import { n as getPublicOrigin } from "../../public-url-
|
|
12
|
+
import { n as getPublicOrigin } from "../../public-url-B_m9IwdV.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/astro/routes/sitemap-[collection].xml.ts
|
|
15
15
|
const prerender = false;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../dialect-helpers-fk43GbDb.mjs";
|
|
2
|
-
import "../../base64-
|
|
3
|
-
import "../../types-
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../
|
|
8
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
2
|
+
import "../../base64-F8-DUraK.mjs";
|
|
3
|
+
import "../../types-CSgR9nQB.mjs";
|
|
4
|
+
import "../../loader--GOYux8M.mjs";
|
|
5
|
+
import "../../media-CbKyYukG.mjs";
|
|
6
|
+
import "../../options-LsPjZlqD.mjs";
|
|
7
|
+
import "../../request-cache-ho99schz.mjs";
|
|
8
|
+
import { a as getSiteSettingsWithDb } from "../../settings-CUXOxzsT.mjs";
|
|
9
9
|
import { t as handleSitemapData } from "../../seo-5lJOtB5J.mjs";
|
|
10
|
-
import { n as getPublicOrigin } from "../../public-url-
|
|
10
|
+
import { n as getPublicOrigin } from "../../public-url-B_m9IwdV.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/routes/sitemap.xml.ts
|
|
13
13
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as currentTimestampValue } from "../dialect-helpers-fk43GbDb.mjs";
|
|
2
|
-
import "../base64-
|
|
3
|
-
import "../types-
|
|
4
|
-
import { r as getDb } from "../loader
|
|
2
|
+
import "../base64-F8-DUraK.mjs";
|
|
3
|
+
import "../types-CSgR9nQB.mjs";
|
|
4
|
+
import { r as getDb } from "../loader--GOYux8M.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/session-driver.ts
|
|
7
7
|
function createDinewaySessionDriver(dbFactory = getDb) {
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as Database } from "../types-
|
|
4
|
-
import { A as PageMetadataContribution, D as PageFragmentContribution, X as ResolvedPlugin, ct as Element, q as PublicPageContext } from "../types-
|
|
1
|
+
import { i as ContentItem } from "../types-DRIKLmJI.mjs";
|
|
2
|
+
import { Cr as MediaListResponse, Gt as EmailPipeline, Kt as HookPipeline, Ri as ContentListResponse, _i as MediaItem, lr as SandboxRunner, t as DinewayConfig, wr as MediaResponse, zi as ContentResponse } from "../runtime-C4-2lSFg.mjs";
|
|
3
|
+
import { t as Database } from "../types-CuJOqHfM.mjs";
|
|
4
|
+
import { A as PageMetadataContribution, D as PageFragmentContribution, X as ResolvedPlugin, ct as Element, q as PublicPageContext } from "../types-DSPGWjxO.mjs";
|
|
5
5
|
import "../types-Dryvv7LH.mjs";
|
|
6
6
|
import { f as MediaProvider, p as MediaProviderCapabilities } from "../placeholder-CXfoCtCd.mjs";
|
|
7
|
-
import "../runner-
|
|
8
|
-
import "../index-
|
|
7
|
+
import "../runner-09sTqtv0.mjs";
|
|
8
|
+
import "../index-CZiWCQDp.mjs";
|
|
9
9
|
import { d as Storage } from "../types-DZpT-PnG.mjs";
|
|
10
|
-
import "../byline-fields-
|
|
10
|
+
import "../byline-fields-uJlygdzM.mjs";
|
|
11
11
|
import "../types-GaCtZ1k9.mjs";
|
|
12
|
-
import "../validate-
|
|
12
|
+
import "../validate-DzjCdy6v.mjs";
|
|
13
13
|
import "../index.mjs";
|
|
14
14
|
import { Kysely } from "kysely";
|
|
15
15
|
|
|
@@ -182,7 +182,13 @@ interface DinewayHandlers {
|
|
|
182
182
|
orderBy?: string;
|
|
183
183
|
order?: "asc" | "desc";
|
|
184
184
|
locale?: string;
|
|
185
|
+
q?: string;
|
|
186
|
+
authorId?: string;
|
|
187
|
+
dateField?: "createdAt" | "updatedAt" | "publishedAt";
|
|
188
|
+
dateFrom?: string;
|
|
189
|
+
dateTo?: string;
|
|
185
190
|
}) => Promise<HandlerResponse>;
|
|
191
|
+
handleContentAuthors: (collection: string) => Promise<HandlerResponse>;
|
|
186
192
|
handleContentGet: (collection: string, id: string, locale?: string) => Promise<HandlerResponse<{
|
|
187
193
|
item: {
|
|
188
194
|
id: string;
|
|
@@ -244,6 +250,7 @@ interface DinewayHandlers {
|
|
|
244
250
|
handleContentDuplicate: (collection: string, id: string, authorId?: string) => Promise<HandlerResponse>;
|
|
245
251
|
handleContentPublish: (collection: string, id: string, options?: {
|
|
246
252
|
publishedAt?: string;
|
|
253
|
+
requireScheduledDue?: boolean;
|
|
247
254
|
}) => Promise<HandlerResponse>;
|
|
248
255
|
handleContentUnpublish: (collection: string, id: string) => Promise<HandlerResponse>;
|
|
249
256
|
handleContentSchedule: (collection: string, id: string, scheduledAt: string) => Promise<HandlerResponse>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
3
|
-
import { t as ReviewRequestRepository } from "./review-requests-
|
|
4
|
-
import { t as withTransaction } from "./transaction-
|
|
5
|
-
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-
|
|
6
|
-
import { n as SchemaRegistry } from "./registry-
|
|
7
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
1
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-CSgR9nQB.mjs";
|
|
2
|
+
import { t as SiteActivityRepository } from "./site-activity-DONFrMBJ.mjs";
|
|
3
|
+
import { t as ReviewRequestRepository } from "./review-requests-BW2NxY-l.mjs";
|
|
4
|
+
import { t as withTransaction } from "./transaction-CFLhEOuH.mjs";
|
|
5
|
+
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-r8oFvyOq.mjs";
|
|
6
|
+
import { n as SchemaRegistry } from "./registry-D7HACema.mjs";
|
|
7
|
+
import { a as getSiteSettingsWithDb } from "./settings-CUXOxzsT.mjs";
|
|
8
8
|
import { sql } from "kysely";
|
|
9
9
|
import { ulid } from "ulidx";
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
2
|
import { l as listTablesLike } from "./dialect-helpers-fk43GbDb.mjs";
|
|
3
|
-
import { n as decodeCursor, r as encodeCursor, t as DinewayValidationError } from "./types-Ck7-WoUD.mjs";
|
|
4
|
-
import { t as withTransaction } from "./transaction-D0FOsb3X.mjs";
|
|
5
3
|
import { getRequestContext } from "./request-context.mjs";
|
|
6
|
-
import { i as
|
|
7
|
-
import { n as
|
|
8
|
-
import {
|
|
4
|
+
import { i as encodeCursor, r as decodeCursor, t as DinewayValidationError } from "./types-CSgR9nQB.mjs";
|
|
5
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-CuUt7K50.mjs";
|
|
6
|
+
import { t as withTransaction } from "./transaction-CFLhEOuH.mjs";
|
|
7
|
+
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached, t as clearRequestCacheEntry } from "./request-cache-ho99schz.mjs";
|
|
8
|
+
import { n as BylineSchemaRegistry } from "./byline-registry-4v6tXMNX.mjs";
|
|
9
9
|
import { sql } from "kysely";
|
|
10
10
|
import { ulid } from "ulidx";
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BylineSchemaRegistry, r as mapBylineSchemaError, t as BylineSchemaError } from "./byline-registry-
|
|
1
|
+
import { n as BylineSchemaRegistry, r as mapBylineSchemaError, t as BylineSchemaError } from "./byline-registry-4v6tXMNX.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/handlers/byline-fields.ts
|
|
4
4
|
function bylineSchemaErrorResult(error) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as RESERVED_BYLINE_FIELD_SLUGS } from "./types-
|
|
2
|
-
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-
|
|
3
|
-
import {
|
|
1
|
+
import { i as RESERVED_BYLINE_FIELD_SLUGS } from "./types-CJ8DkL0q.mjs";
|
|
2
|
+
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-r8oFvyOq.mjs";
|
|
3
|
+
import { Mn as roleLevel, On as httpUrl } from "./redirects-ocRJmQHP.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/api/schemas/context.ts
|
|
@@ -65,6 +65,14 @@ declare const contentListQuery: z.ZodObject<{
|
|
|
65
65
|
}>>;
|
|
66
66
|
locale: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
67
67
|
q: z.ZodOptional<z.ZodString>;
|
|
68
|
+
authorId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
dateField: z.ZodOptional<z.ZodEnum<{
|
|
70
|
+
createdAt: "createdAt";
|
|
71
|
+
updatedAt: "updatedAt";
|
|
72
|
+
publishedAt: "publishedAt";
|
|
73
|
+
}>>;
|
|
74
|
+
dateFrom: z.ZodOptional<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>>;
|
|
75
|
+
dateTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>>;
|
|
68
76
|
}, z.core.$strip>;
|
|
69
77
|
declare const contentCreateBody: z.ZodObject<{
|
|
70
78
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -346,6 +354,20 @@ declare const contentListResponseSchema: z.ZodObject<{
|
|
|
346
354
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
347
355
|
total: z.ZodOptional<z.ZodNumber>;
|
|
348
356
|
}, z.core.$strip>;
|
|
357
|
+
declare const contentAuthorSchema: z.ZodObject<{
|
|
358
|
+
id: z.ZodString;
|
|
359
|
+
name: z.ZodNullable<z.ZodString>;
|
|
360
|
+
email: z.ZodString;
|
|
361
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
declare const contentAuthorsResponseSchema: z.ZodObject<{
|
|
364
|
+
items: z.ZodArray<z.ZodObject<{
|
|
365
|
+
id: z.ZodString;
|
|
366
|
+
name: z.ZodNullable<z.ZodString>;
|
|
367
|
+
email: z.ZodString;
|
|
368
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
369
|
+
}, z.core.$strip>>;
|
|
370
|
+
}, z.core.$strip>;
|
|
349
371
|
/** Trashed content item */
|
|
350
372
|
declare const trashedContentItemSchema: z.ZodObject<{
|
|
351
373
|
id: z.ZodString;
|
|
@@ -550,11 +572,11 @@ declare const createCollectionBody: z.ZodObject<{
|
|
|
550
572
|
description: z.ZodOptional<z.ZodString>;
|
|
551
573
|
icon: z.ZodOptional<z.ZodString>;
|
|
552
574
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
575
|
+
search: "search";
|
|
553
576
|
drafts: "drafts";
|
|
554
577
|
revisions: "revisions";
|
|
555
578
|
preview: "preview";
|
|
556
579
|
scheduling: "scheduling";
|
|
557
|
-
search: "search";
|
|
558
580
|
}>>>;
|
|
559
581
|
source: z.ZodOptional<z.ZodString>;
|
|
560
582
|
urlPattern: z.ZodOptional<z.ZodString>;
|
|
@@ -566,11 +588,11 @@ declare const updateCollectionBody: z.ZodObject<{
|
|
|
566
588
|
description: z.ZodOptional<z.ZodString>;
|
|
567
589
|
icon: z.ZodOptional<z.ZodString>;
|
|
568
590
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
591
|
+
search: "search";
|
|
569
592
|
drafts: "drafts";
|
|
570
593
|
revisions: "revisions";
|
|
571
594
|
preview: "preview";
|
|
572
595
|
scheduling: "scheduling";
|
|
573
|
-
search: "search";
|
|
574
596
|
}>>>;
|
|
575
597
|
urlPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
576
598
|
hasSeo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -593,8 +615,8 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
593
615
|
file: "file";
|
|
594
616
|
url: "url";
|
|
595
617
|
image: "image";
|
|
596
|
-
slug: "slug";
|
|
597
618
|
datetime: "datetime";
|
|
619
|
+
slug: "slug";
|
|
598
620
|
text: "text";
|
|
599
621
|
integer: "integer";
|
|
600
622
|
select: "select";
|
|
@@ -622,6 +644,7 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
622
644
|
number: "number";
|
|
623
645
|
boolean: "boolean";
|
|
624
646
|
url: "url";
|
|
647
|
+
image: "image";
|
|
625
648
|
datetime: "datetime";
|
|
626
649
|
text: "text";
|
|
627
650
|
integer: "integer";
|
|
@@ -661,6 +684,7 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
661
684
|
number: "number";
|
|
662
685
|
boolean: "boolean";
|
|
663
686
|
url: "url";
|
|
687
|
+
image: "image";
|
|
664
688
|
datetime: "datetime";
|
|
665
689
|
text: "text";
|
|
666
690
|
integer: "integer";
|
|
@@ -720,8 +744,8 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
720
744
|
file: "file";
|
|
721
745
|
url: "url";
|
|
722
746
|
image: "image";
|
|
723
|
-
slug: "slug";
|
|
724
747
|
datetime: "datetime";
|
|
748
|
+
slug: "slug";
|
|
725
749
|
text: "text";
|
|
726
750
|
integer: "integer";
|
|
727
751
|
select: "select";
|
|
@@ -785,8 +809,8 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
785
809
|
file: "file";
|
|
786
810
|
url: "url";
|
|
787
811
|
image: "image";
|
|
788
|
-
slug: "slug";
|
|
789
812
|
datetime: "datetime";
|
|
813
|
+
slug: "slug";
|
|
790
814
|
text: "text";
|
|
791
815
|
integer: "integer";
|
|
792
816
|
select: "select";
|
|
@@ -839,8 +863,8 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
839
863
|
file: "file";
|
|
840
864
|
url: "url";
|
|
841
865
|
image: "image";
|
|
842
|
-
slug: "slug";
|
|
843
866
|
datetime: "datetime";
|
|
867
|
+
slug: "slug";
|
|
844
868
|
text: "text";
|
|
845
869
|
integer: "integer";
|
|
846
870
|
select: "select";
|
|
@@ -876,8 +900,8 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
876
900
|
file: "file";
|
|
877
901
|
url: "url";
|
|
878
902
|
image: "image";
|
|
879
|
-
slug: "slug";
|
|
880
903
|
datetime: "datetime";
|
|
904
|
+
slug: "slug";
|
|
881
905
|
text: "text";
|
|
882
906
|
integer: "integer";
|
|
883
907
|
select: "select";
|
|
@@ -1053,6 +1077,8 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1053
1077
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1054
1078
|
}, z.core.$strip>;
|
|
1055
1079
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1080
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1056
1082
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1057
1083
|
true: "true";
|
|
1058
1084
|
false: "false";
|
|
@@ -1066,8 +1092,6 @@ declare const contextEntryStaleQuery: z.ZodObject<{
|
|
|
1066
1092
|
system: "system";
|
|
1067
1093
|
}>>;
|
|
1068
1094
|
createdByActorId: z.ZodOptional<z.ZodString>;
|
|
1069
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1070
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1071
1095
|
now: z.ZodOptional<z.ZodString>;
|
|
1072
1096
|
}, z.core.$strip>;
|
|
1073
1097
|
declare const contextEntryDiffQuery: z.ZodObject<{
|
|
@@ -2222,4 +2246,4 @@ declare const bylineFieldUsageResponseSchema: z.ZodObject<{
|
|
|
2222
2246
|
totalAffectedRows: z.ZodNumber;
|
|
2223
2247
|
}, z.core.$strip>;
|
|
2224
2248
|
//#endregion
|
|
2225
|
-
export { settingsUpdateBody as $,
|
|
2249
|
+
export { settingsUpdateBody as $, contentTranslationsResponseSchema as $n, commentBulkBody as $t, widgetAreaSchema as A, mediaItemSchema as An, inviteCompleteBody as At, usersListQuery as B, contentCompareResponseSchema as Bn, signupRequestBody as Bt, redirectSchema as C, updateCollectionBody as Cn, menuSchema as Ct, createWidgetBody as D, mediaConfirmBody as Dn, updateMenuBody as Dt, createWidgetAreaBody as E, formatFileSize as En, reorderMenuItemsBody as Et, allowedDomainUpdateBody as F, mediaUpdateBody as Fn, passkeyRegisterOptionsBody as Ft, wpPrepareBody as G, contentPreviewUrlBody as Gn, siteBriefingQuery as Gt, wpMediaImportBody as H, contentItemSchema as Hn, reviewRequestResolveBody as Ht, userDetailSchema as I, mediaUploadUrlBody as In, passkeyRegisterVerifyBody as It, searchQuery as J, contentScheduleBody as Jn, contextEntryListQuery as Jt, wpRewriteUrlsBody as K, contentPublishBody as Kn, contextEntryCreateBody as Kt, userListResponseSchema as L, mediaUploadUrlResponseSchema as Ln, passkeyRenameBody as Lt, widgetAreaWithWidgetsSchema as M, mediaListResponseSchema as Mn, inviteRegisterOptionsBody as Mt, widgetSchema as N, mediaProviderListQuery as Nn, magicLinkSendBody as Nt, reorderWidgetsBody as O, mediaConfirmResponseSchema as On, updateMenuItemBody as Ot, allowedDomainCreateBody as P, mediaResponseSchema as Pn, passkeyOptionsBody as Pt, searchSuggestQuery as Q, contentTranslationSchema as Qn, adminCommentListResponseSchema as Qt, userSchema as R, contentAuthorSchema as Rn, passkeyVerifyBody as Rt, redirectListResponseSchema as S, schemaExportQuery as Sn, menuListItemSchema as St, updateRedirectBody as T, DEFAULT_MAX_UPLOAD_SIZE as Tn, menuWithItemsSchema as Tt, wpPluginAnalyzeBody as U, contentListQuery as Un, hitlRequestListQuery as Ut, importProbeBody as V, contentCreateBody as Vn, reviewRequestListQuery as Vt, wpPluginExecuteBody as W, contentListResponseSchema as Wn, hitlRequestResolveBody as Wt, searchResponseSchema as X, contentSeoSchema as Xn, contextEntryStaleQuery as Xt, searchRebuildBody as Y, contentSeoInput as Yn, contextEntryReviewBody as Yt, searchResultSchema as Z, contentTermsBody as Zn, contextEntrySupersedeBody as Zt, notFoundListResponseSchema as _, fieldResponseSchema as _n, updateTermBody as _t, bylineFieldUpdateBody as a, createCommentBody as an, apiErrorSchema as ar, updateSectionBody as at, notFoundSummaryResponseSchema as b, orphanedTableListResponseSchema as bn, menuItemSchema as bt, bylineCreditSchema as c, collectionGetQuery as cn, deleteResponseSchema as cr, taxonomyDefSchema as ct, bylineUpdateBody as d, collectionSchema as dn, localeFilterQuery as dr, termGetResponseSchema as dt, commentBulkResponseSchema as en, contentTrashQuery as er, siteSettingsSchema as et, bylinesListQuery as f, collectionWithFieldsResponseSchema as fn, offsetPaginationQuery as fr, termListResponseSchema as ft, notFoundListQuery as g, fieldReorderBody as gn, termWithCountSchema as gt, notFoundEntrySchema as h, fieldListResponseSchema as hn, successEnvelope as hr, termTranslationsSchema as ht, bylineFieldReorderBody as i, commentStatusBody as in, VALID_ROLE_LEVELS as ir, sectionsListQuery as it, widgetAreaWithWidgetsAndCountSchema as j, mediaListQuery as jn, inviteCreateBody as jt, updateWidgetBody as k, mediaExistingResponseSchema as kn, authMeActionBody as kt, bylineListResponseSchema as l, collectionListResponseSchema as ln, httpUrl as lr, taxonomyDefTranslationsSchema as lt, createRedirectBody as m, createFieldBody as mn, slugPattern as mr, termSchema as mt, bylineFieldDefinitionSchema as n, commentListQuery as nn, trashedContentItemSchema as nr, sectionListResponseSchema as nt, bylineFieldUsageResponseSchema as o, publicCommentListResponseSchema as on, countResponseSchema as or, createTaxonomyDefBody as ot, contentBylineInputSchema as p, createCollectionBody as pn, roleLevel as pr, termResponseSchema as pt, searchEnableBody as q, contentResponseSchema as qn, contextEntryDiffQuery as qt, bylineFieldListResponseSchema as r, commentSchema as rn, trashedContentListResponseSchema as rr, sectionSchema as rt, bylineCreateBody as s, publicCommentSchema as sn, cursorPaginationQuery as sr, createTermBody as st, bylineFieldCreateBody as t, commentCountsResponseSchema as tn, contentUpdateBody as tr, createSectionBody as tt, bylineSummarySchema as u, collectionResponseSchema as un, localeCode as ur, taxonomyListResponseSchema as ut, notFoundPruneBody as v, fieldSchema as vn, createMenuBody as vt, redirectsListQuery as w, updateFieldBody as wn, menuTranslationsSchema as wt, notFoundSummarySchema as x, orphanedTableSchema as xn, menuItemTypeEnum as xt, notFoundSummaryQuery as y, orphanRegisterBody as yn, createMenuItemBody as yt, userUpdateBody as z, contentAuthorsResponseSchema as zn, signupCompleteBody as zt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { t as withTransaction } from "./transaction-
|
|
3
|
-
import { i as RESERVED_BYLINE_FIELD_SLUGS, t as BYLINE_FIELD_TYPES } from "./types-
|
|
2
|
+
import { t as withTransaction } from "./transaction-CFLhEOuH.mjs";
|
|
3
|
+
import { i as RESERVED_BYLINE_FIELD_SLUGS, t as BYLINE_FIELD_TYPES } from "./types-CJ8DkL0q.mjs";
|
|
4
4
|
import { sql } from "kysely";
|
|
5
5
|
import { ulid } from "ulidx";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-DzIpHGND.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { a as isMissingTableError, r as getDb } from "./loader--GOYux8M.mjs";
|
|
4
|
+
import { t as BylineRepository } from "./byline-BVC1lV6G.mjs";
|
|
5
5
|
import { i as resolveLocaleChain } from "./resolve-DTuDyYKs.mjs";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
|
|
@@ -10,6 +10,7 @@ var bylines_exports = /* @__PURE__ */ __exportAll({
|
|
|
10
10
|
getByline: () => getByline,
|
|
11
11
|
getBylineBySlug: () => getBylineBySlug,
|
|
12
12
|
getBylinesForEntries: () => getBylinesForEntries,
|
|
13
|
+
getEntriesByByline: () => getEntriesByByline,
|
|
13
14
|
invalidateBylineCache: () => invalidateBylineCache
|
|
14
15
|
});
|
|
15
16
|
function invalidateBylineCache() {}
|
|
@@ -160,6 +161,39 @@ async function getBylinesForEntries(collection, entries) {
|
|
|
160
161
|
}
|
|
161
162
|
return result;
|
|
162
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Get content entries credited to a byline, in any credit position.
|
|
166
|
+
*
|
|
167
|
+
* Unlike filtering on `primaryBylineId`, this matches every explicit credit
|
|
168
|
+
* recorded in `_dineway_content_bylines`, so co-authored entries where the
|
|
169
|
+
* byline is a secondary credit are included.
|
|
170
|
+
*
|
|
171
|
+
* Credits store the byline translation group. Pass
|
|
172
|
+
* `byline.translationGroup ?? byline.id` from `getByline()` or
|
|
173
|
+
* `getBylineBySlug()`. Passing a concrete byline row ID is also accepted.
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* ```ts
|
|
177
|
+
* import { getBylineBySlug, getEntriesByByline } from "dineway";
|
|
178
|
+
*
|
|
179
|
+
* const byline = await getBylineBySlug("jane-doe");
|
|
180
|
+
* const posts = byline
|
|
181
|
+
* ? await getEntriesByByline("posts", byline.translationGroup ?? byline.id)
|
|
182
|
+
* : [];
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
async function getEntriesByByline(collection, byline, options = {}) {
|
|
186
|
+
validateIdentifier(collection, "collection");
|
|
187
|
+
const { getDinewayCollection } = await import("./query-Ds0EnMFX.mjs").then((n) => n.o);
|
|
188
|
+
const { entries } = await getDinewayCollection(collection, {
|
|
189
|
+
where: { byline },
|
|
190
|
+
...options.locale !== void 0 ? { locale: options.locale } : {},
|
|
191
|
+
...options.orderBy !== void 0 ? { orderBy: options.orderBy } : {},
|
|
192
|
+
...options.status !== void 0 ? { status: options.status } : {},
|
|
193
|
+
...options.limit !== void 0 ? { limit: options.limit } : {}
|
|
194
|
+
});
|
|
195
|
+
return entries;
|
|
196
|
+
}
|
|
163
197
|
|
|
164
198
|
//#endregion
|
|
165
|
-
export { invalidateBylineCache as i, getByline as n, getBylineBySlug as r, bylines_exports as t };
|
|
199
|
+
export { invalidateBylineCache as a, getEntriesByByline as i, getByline as n, getBylineBySlug as r, bylines_exports as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as getI18nConfig } from "./config-CVssduLe.mjs";
|
|
2
|
-
import { t as DinewayValidationError } from "./types-
|
|
3
|
-
import { t as BylineRepository } from "./byline-
|
|
2
|
+
import { t as DinewayValidationError } from "./types-CSgR9nQB.mjs";
|
|
3
|
+
import { t as BylineRepository } from "./byline-BVC1lV6G.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/api/handlers/bylines.ts
|
|
6
6
|
const norm = (value) => value ?? null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
2
|
-
import { i as matchPattern, n as interpolateDestination, t as compilePattern } from "./patterns-
|
|
1
|
+
import { a as __exportAll } from "./runner-DzIpHGND.mjs";
|
|
2
|
+
import { i as matchPattern, n as interpolateDestination, t as compilePattern } from "./patterns-DKAX6oqN.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/redirects/cache.ts
|
|
5
5
|
var cache_exports = /* @__PURE__ */ __exportAll({
|