dineway 0.1.47 → 0.1.48
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-C9u37D5z.mjs} +1 -1
- package/dist/api/route-utils.d.mts +8 -22
- package/dist/api/route-utils.mjs +8 -8
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-ePsOhL3q.mjs → api-Eiy8_zVZ.mjs} +63 -16
- package/dist/{apply-BpRBCqUt.mjs → apply-CX3no7XE.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 +4 -4
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +2 -1
- package/dist/astro/middleware.mjs +362 -143
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +2 -2
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +2 -2
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +1 -1
- package/dist/astro/routes/api/admin/briefing.mjs +14 -14
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/index.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/bulk.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/index.mjs +5 -5
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +20 -20
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +23 -23
- package/dist/astro/routes/api/admin/context/diff.mjs +22 -22
- package/dist/astro/routes/api/admin/context/index.mjs +23 -23
- package/dist/astro/routes/api/admin/context/stale.mjs +22 -22
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +21 -21
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +23 -23
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +23 -23
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +20 -20
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +1 -1
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/updates.mjs +35 -35
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +22 -22
- package/dist/astro/routes/api/admin/review-requests/index.mjs +5 -5
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +35 -35
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +2 -2
- package/dist/astro/routes/api/auth/dev-bypass.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/index.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/register-options.mjs +4 -4
- package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
- package/dist/astro/routes/api/auth/me.mjs +5 -5
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/verify.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/index.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +5 -5
- package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +8 -7
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +11 -9
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +8 -7
- 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 +5 -5
- package/dist/astro/routes/api/content/_collection_/trash.mjs +2 -2
- package/dist/astro/routes/api/dashboard.mjs +6 -6
- 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 +2 -2
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.mjs +23 -23
- package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +26 -26
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +24 -24
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +24 -24
- package/dist/astro/routes/api/manifest.mjs +3 -3
- package/dist/astro/routes/api/mcp.mjs +46 -46
- package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
- package/dist/astro/routes/api/media/_id_.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +4 -4
- package/dist/astro/routes/api/media.mjs +4 -4
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_/items.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_/translations.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_.mjs +23 -23
- package/dist/astro/routes/api/menus/index.mjs +23 -23
- package/dist/astro/routes/api/oauth/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/authorize.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/code.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/token.mjs +2 -2
- package/dist/astro/routes/api/oauth/register.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/refresh.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/revoke.mjs +2 -2
- package/dist/astro/routes/api/oauth/token.mjs +3 -3
- package/dist/astro/routes/api/openapi.json.mjs +16 -2
- package/dist/astro/routes/api/redirects/404s/index.mjs +6 -6
- package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -6
- package/dist/astro/routes/api/redirects/_id_.mjs +24 -24
- package/dist/astro/routes/api/redirects/index.mjs +24 -24
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/index.mjs +36 -36
- package/dist/astro/routes/api/schema/index.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +35 -35
- package/dist/astro/routes/api/schema/orphans/index.mjs +35 -35
- package/dist/astro/routes/api/search/enable.mjs +6 -6
- package/dist/astro/routes/api/search/index.mjs +6 -6
- package/dist/astro/routes/api/search/rebuild.mjs +6 -6
- package/dist/astro/routes/api/search/stats.mjs +4 -4
- package/dist/astro/routes/api/search/suggest.mjs +6 -6
- package/dist/astro/routes/api/sections/_slug_.mjs +23 -23
- package/dist/astro/routes/api/sections/index.mjs +23 -23
- package/dist/astro/routes/api/settings/email.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +23 -23
- package/dist/astro/routes/api/setup/admin-verify.mjs +6 -6
- package/dist/astro/routes/api/setup/admin.mjs +4 -4
- package/dist/astro/routes/api/setup/dev-bypass.mjs +17 -17
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +20 -20
- package/dist/astro/routes/api/setup/status.mjs +2 -2
- package/dist/astro/routes/api/snapshot.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +25 -25
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +25 -25
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +25 -25
- package/dist/astro/routes/api/taxonomies/index.mjs +25 -25
- package/dist/astro/routes/api/themes/preview.mjs +2 -2
- package/dist/astro/routes/api/typegen.mjs +3 -3
- package/dist/astro/routes/api/well-known/auth.mjs +3 -3
- 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 +22 -22
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +23 -23
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +23 -23
- package/dist/astro/routes/api/widget-areas/_name_.mjs +21 -21
- package/dist/astro/routes/api/widget-areas/index.mjs +23 -23
- package/dist/astro/routes/robots.txt.mjs +45 -22
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +6 -6
- package/dist/astro/routes/sitemap.xml.mjs +6 -6
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +15 -8
- package/dist/{audit-DuRbTm8L.mjs → audit-D1cbG7xH.mjs} +1 -1
- package/dist/{briefing-C4fJSVYW.mjs → briefing-CObXGOGz.mjs} +1 -1
- package/dist/{briefing-BFEWeJtR.mjs → briefing-gKWiGLt1.mjs} +6 -6
- package/dist/{byline-CXQcMsBu.mjs → byline-1ntDwv8c.mjs} +5 -5
- package/dist/{byline-fields-D7TJ_oHF.mjs → byline-fields-B-ZkoVft.mjs} +2 -2
- package/dist/{byline-fields-Cuo-JI3B.d.mts → byline-fields-BX7rWKNU.d.mts} +54 -30
- package/dist/{byline-fields-Dc7L6Yry.mjs → byline-fields-C9_iaPaM.mjs} +1 -1
- package/dist/{byline-registry-CL8BxPPp.mjs → byline-registry-CUSvkasJ.mjs} +2 -2
- package/dist/{bylines-BgriNlW7.mjs → bylines-DtxChhN_.mjs} +38 -4
- package/dist/{bylines-D2vqm1aZ.mjs → bylines-bC15ZqAv.mjs} +2 -2
- package/dist/{cache-GRK71jOU.mjs → cache-DbKyr60Q.mjs} +2 -2
- package/dist/{chunks-DgEw12Bc.mjs → chunks-C5zp2xir.mjs} +1 -1
- package/dist/cli/index.mjs +42 -31
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{comment-ogMaF1gk.mjs → comment-CXDOQ93N.mjs} +1 -1
- package/dist/{comments-CTSOKrZq.mjs → comments-hK-rdzJ9.mjs} +1 -1
- package/dist/{content-BfyjOiMi.mjs → content-QaryevFO.mjs} +103 -40
- package/dist/{context-ZMHhwzkG.mjs → context-CoYb_fvK.mjs} +7 -7
- package/dist/{context-CdsYb1m8.mjs → context-DBL1ib4v.mjs} +2 -2
- package/dist/{context-route-helpers-YLWx2N1j.mjs → context-route-helpers-CYQVmbIm.mjs} +1 -1
- package/dist/{dashboard-D0gWuzNp.mjs → dashboard-DNlqsknJ.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-DygsFPGL.mjs} +3 -3
- package/dist/{fts-manager-EHY2Kes9.mjs → fts-manager-CIZlScg5.mjs} +1 -1
- package/dist/{hitl-requests-B1Zqgut6.mjs → hitl-requests-CGQwOEiq.mjs} +2 -2
- package/dist/{hitl-route-helpers-CjpWUMuw.mjs → hitl-route-helpers-GSDLNPpN.mjs} +3 -3
- package/dist/{index-DJVaYiUV.d.mts → index-CwRuZ-u8.d.mts} +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.mjs +51 -51
- package/dist/{jsonld-AcPnCEGD.d.mts → jsonld-DZ67souc.d.mts} +1 -1
- package/dist/{load-BdbvtoDb.mjs → load-xE01Jm0V.mjs} +1 -1
- package/dist/{loader-Y0QvC_QO.mjs → loader-tg63WSY2.mjs} +138 -36
- package/dist/media/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +7 -7
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-DhBwiCYR.mjs → media-DUAjMfvR.mjs} +1 -1
- package/dist/{menus-fqqzXyHd.mjs → menus-DU1eZqw_.mjs} +13 -8
- package/dist/{menus-BzGQpw9d.mjs → menus-WpFRMXjz.mjs} +2 -2
- package/dist/{normalize-O-hi3a27.mjs → normalize-DUnoXAa9.mjs} +1 -1
- package/dist/{oauth-authorization-DsF81vki.mjs → oauth-authorization-D-1p52Je.mjs} +3 -3
- package/dist/{oauth-clients-Du-V0fEm.mjs → oauth-clients-CzeMGyUU.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-C57YQi4l.mjs} +195 -5
- package/dist/public-url-B5HaoGzj.d.mts +18 -0
- package/dist/{query-CSx0EdSW.mjs → query-BYc3oruA.mjs} +29 -18
- package/dist/{query-BJuUydtD.mjs → query-DKEwzobh.mjs} +3 -3
- package/dist/{redirect-BqFMj67n.mjs → redirect-C2zXRj3c.mjs} +2 -2
- package/dist/{redirects-CJwHl_YG.mjs → redirects-YZo_znWG.mjs} +4 -4
- package/dist/{redirects-q_cToaHv.mjs → redirects-ocRJmQHP.mjs} +23 -3
- package/dist/{registry-Cq3QRBW2.mjs → registry-CTkbIDB9.mjs} +38 -6
- package/dist/{review-requests-GYqjl2jO.mjs → review-requests-C0un5kdV.mjs} +1 -1
- package/dist/{review-requests-tPw8_pAO.mjs → review-requests-gGMyYYhy.mjs} +1 -1
- package/dist/{runner-DTfG5v0G.mjs → runner-B-tbV751.mjs} +233 -193
- package/dist/{runner-Cnz4dl0f.d.mts → runner-D4FL9usy.d.mts} +1 -1
- package/dist/{runtime-Cd-kjPfN.d.mts → runtime-DEWQpZ-4.d.mts} +154 -22
- package/dist/runtime.d.mts +8 -8
- package/dist/runtime.mjs +2 -2
- package/dist/schema-B6zyB-Xn.mjs +8 -0
- package/dist/{search-BAiFLz81.mjs → search-axGQ1KY3.mjs} +3 -3
- package/dist/{secrets-CPoFLJjm.mjs → secrets-062Izo8i.mjs} +1 -1
- package/dist/{sections-DsuIrFDC.mjs → sections-OLKgXL10.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +17 -17
- package/dist/seo/index.d.mts +1 -1
- package/dist/{seo-uMFBaR8G.mjs → seo-Cd45Po8L.mjs} +1 -1
- package/dist/{service-CifrxCru.mjs → service-Bwad8s5h.mjs} +1 -1
- package/dist/{settings-BYGdocdj.mjs → settings-lAHjaUit.mjs} +2 -2
- package/dist/{settings-DNRQuX3d.mjs → settings-yLjz_I4T.mjs} +4 -4
- package/dist/{setup-complete-4EiBS1E5.mjs → setup-complete--PradA4R.mjs} +1 -1
- package/dist/{site-activity-6x1JccoR.mjs → site-activity-D7Xyropw.mjs} +1 -1
- package/dist/{site-context-c1ZFa_OF.mjs → site-context-DaN9Z91j.mjs} +13 -13
- package/dist/{site-url-C-cu8Ff2.mjs → site-url-DpGZo9Z6.mjs} +1 -1
- package/dist/{taxonomies-faQVeMgj.mjs → taxonomies-CNOGeC-3.mjs} +9 -7
- package/dist/{taxonomies-CQFmkP5u.mjs → taxonomies-uXVEoQso.mjs} +3 -3
- package/dist/{taxonomy-BnH-6VsX.mjs → taxonomy-CBmkmMuU.mjs} +2 -2
- 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/{types-Ck7-WoUD.mjs → types-DfuD0Afl.mjs} +9 -2
- package/dist/{types-DYKtk8f1.d.mts → types-eu5UDgHN.d.mts} +22 -0
- package/dist/ui/server-runtime.d.mts +58 -10
- package/dist/ui/server-runtime.mjs +97 -15
- package/dist/{user-CqZwN21P.mjs → user-DtNmjNYt.mjs} +15 -1
- package/dist/{validate-CK4a1sIF.mjs → validate-7SYRbz2f.mjs} +5 -2
- package/dist/{validate-BJuG-ISL.d.mts → validate-BMs11tan.d.mts} +10 -2
- package/dist/version-xlzMSXF2.mjs +6 -0
- package/dist/{widgets-CdDvF4fV.mjs → widgets-DR8EHuRO.mjs} +1 -1
- package/dist/{wordpress-slugs-B6Gw9q3Q.mjs → wordpress-slugs-Dvhxh4cl.mjs} +1 -1
- package/dist/{zod-generator-D1ROBNuC.mjs → zod-generator-BS9-umbk.mjs} +3 -2
- package/package.json +5 -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/{allowed-origins-QirBXiDj.mjs → allowed-origins-DhipQNLb.mjs} +0 -0
- /package/dist/{challenge-store-DFxX0_15.mjs → challenge-store-CRSz-Xim.mjs} +0 -0
- /package/dist/{entity-aliases-uOrKvlPg.mjs → entity-aliases-Egjmqc7I.mjs} +0 -0
- /package/dist/{experimental-workflows-CSMffP6q.mjs → experimental-workflows-Dh4DUoD_.mjs} +0 -0
- /package/dist/{mode-CZqCF9dZ.mjs → mode-CpyEz8pe.mjs} +0 -0
- /package/dist/{options-BF11H_FD.mjs → options-BvJoSSJR.mjs} +0 -0
- /package/dist/{patterns-D9iDO3j8.mjs → patterns-r-0n824Y.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-CYMbwZc6.mjs} +0 -0
- /package/dist/{transaction-D0FOsb3X.mjs → transaction-CShMWIej.mjs} +0 -0
- /package/dist/{transport-DidKKxvW.d.mts → transport-BnsNxh2l.d.mts} +0 -0
- /package/dist/{types-DbZhHtqS.mjs → types-BO8TGjS8.mjs} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import { n as getI18nConfig, r as isI18nEnabled } from "../../config-CVssduLe.mjs";
|
|
3
3
|
import "../../base64-C1Q9yr0B.mjs";
|
|
4
|
-
import "../../types-
|
|
5
|
-
import "../../media-
|
|
6
|
-
import "../../options-
|
|
7
|
-
import "../../request-cache-
|
|
8
|
-
import "../../loader-
|
|
9
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
4
|
+
import "../../types-DfuD0Afl.mjs";
|
|
5
|
+
import "../../media-DUAjMfvR.mjs";
|
|
6
|
+
import "../../options-BvJoSSJR.mjs";
|
|
7
|
+
import "../../request-cache-CYMbwZc6.mjs";
|
|
8
|
+
import "../../loader-tg63WSY2.mjs";
|
|
9
|
+
import { a as getSiteSettingsWithDb } from "../../settings-yLjz_I4T.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
12
|
import { n as getPublicOrigin } from "../../public-url-DLUM5OOv.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "../../base64-C1Q9yr0B.mjs";
|
|
3
|
-
import "../../types-
|
|
4
|
-
import "../../media-
|
|
5
|
-
import "../../options-
|
|
6
|
-
import "../../request-cache-
|
|
7
|
-
import "../../loader-
|
|
8
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
3
|
+
import "../../types-DfuD0Afl.mjs";
|
|
4
|
+
import "../../media-DUAjMfvR.mjs";
|
|
5
|
+
import "../../options-BvJoSSJR.mjs";
|
|
6
|
+
import "../../request-cache-CYMbwZc6.mjs";
|
|
7
|
+
import "../../loader-tg63WSY2.mjs";
|
|
8
|
+
import { a as getSiteSettingsWithDb } from "../../settings-yLjz_I4T.mjs";
|
|
9
9
|
import { t as handleSitemapData } from "../../seo-5lJOtB5J.mjs";
|
|
10
10
|
import { n as getPublicOrigin } from "../../public-url-DLUM5OOv.mjs";
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as currentTimestampValue } from "../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "../base64-C1Q9yr0B.mjs";
|
|
3
|
-
import "../types-
|
|
4
|
-
import { r as getDb } from "../loader-
|
|
3
|
+
import "../types-DfuD0Afl.mjs";
|
|
4
|
+
import { r as getDb } from "../loader-tg63WSY2.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 { Ar as
|
|
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 { Ar as MediaListResponse, Gt as EmailPipeline, Kt as HookPipeline, Ri as ContentListResponse, gr as SandboxRunner, jr as MediaResponse, t as DinewayConfig, wi as MediaItem, zi as ContentResponse } from "../runtime-DEWQpZ-4.mjs";
|
|
3
|
+
import { t as Database } from "../types-eu5UDgHN.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-D4FL9usy.mjs";
|
|
8
|
+
import "../index-CwRuZ-u8.mjs";
|
|
9
9
|
import { d as Storage } from "../types-DZpT-PnG.mjs";
|
|
10
|
-
import "../byline-fields-
|
|
10
|
+
import "../byline-fields-BX7rWKNU.mjs";
|
|
11
11
|
import "../types-GaCtZ1k9.mjs";
|
|
12
|
-
import "../validate-
|
|
12
|
+
import "../validate-BMs11tan.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-
|
|
1
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-DfuD0Afl.mjs";
|
|
2
|
+
import { t as SiteActivityRepository } from "./site-activity-D7Xyropw.mjs";
|
|
3
|
+
import { t as ReviewRequestRepository } from "./review-requests-gGMyYYhy.mjs";
|
|
4
|
+
import { t as withTransaction } from "./transaction-CShMWIej.mjs";
|
|
5
5
|
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-DQh_XKkn.mjs";
|
|
6
|
-
import { n as SchemaRegistry } from "./registry-
|
|
7
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
6
|
+
import { n as SchemaRegistry } from "./registry-CTkbIDB9.mjs";
|
|
7
|
+
import { a as getSiteSettingsWithDb } from "./settings-yLjz_I4T.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 {
|
|
4
|
-
import { t as
|
|
3
|
+
import { i as encodeCursor, r as decodeCursor, t as DinewayValidationError } from "./types-DfuD0Afl.mjs";
|
|
4
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-C5zp2xir.mjs";
|
|
5
|
+
import { t as withTransaction } from "./transaction-CShMWIej.mjs";
|
|
5
6
|
import { getRequestContext } from "./request-context.mjs";
|
|
6
|
-
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached, t as clearRequestCacheEntry } from "./request-cache-
|
|
7
|
-
import { n as BylineSchemaRegistry } from "./byline-registry-
|
|
8
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-DgEw12Bc.mjs";
|
|
7
|
+
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached, t as clearRequestCacheEntry } from "./request-cache-CYMbwZc6.mjs";
|
|
8
|
+
import { n as BylineSchemaRegistry } from "./byline-registry-CUSvkasJ.mjs";
|
|
9
9
|
import { sql } from "kysely";
|
|
10
10
|
import { ulid } from "ulidx";
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as RESERVED_BYLINE_FIELD_SLUGS } from "./types-
|
|
1
|
+
import { i as RESERVED_BYLINE_FIELD_SLUGS } from "./types-BO8TGjS8.mjs";
|
|
2
2
|
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-DQh_XKkn.mjs";
|
|
3
|
-
import {
|
|
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
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
/** Valid role level values */
|
|
5
5
|
declare const VALID_ROLE_LEVELS: Set<number>;
|
|
6
6
|
/** Role level — coerces string/number to valid RoleLevel (10|20|30|40|50) */
|
|
7
|
-
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
7
|
+
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>;
|
|
8
8
|
/** Pagination query params — cursor-based */
|
|
9
9
|
declare const cursorPaginationQuery: z.ZodObject<{
|
|
10
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -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;
|
|
@@ -591,15 +613,15 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
591
613
|
number: "number";
|
|
592
614
|
boolean: "boolean";
|
|
593
615
|
file: "file";
|
|
594
|
-
url: "url";
|
|
595
|
-
image: "image";
|
|
596
616
|
slug: "slug";
|
|
597
|
-
datetime: "datetime";
|
|
598
617
|
text: "text";
|
|
618
|
+
url: "url";
|
|
599
619
|
integer: "integer";
|
|
620
|
+
datetime: "datetime";
|
|
600
621
|
select: "select";
|
|
601
622
|
multiSelect: "multiSelect";
|
|
602
623
|
portableText: "portableText";
|
|
624
|
+
image: "image";
|
|
603
625
|
reference: "reference";
|
|
604
626
|
json: "json";
|
|
605
627
|
repeater: "repeater";
|
|
@@ -621,11 +643,12 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
621
643
|
string: "string";
|
|
622
644
|
number: "number";
|
|
623
645
|
boolean: "boolean";
|
|
624
|
-
url: "url";
|
|
625
|
-
datetime: "datetime";
|
|
626
646
|
text: "text";
|
|
647
|
+
url: "url";
|
|
627
648
|
integer: "integer";
|
|
649
|
+
datetime: "datetime";
|
|
628
650
|
select: "select";
|
|
651
|
+
image: "image";
|
|
629
652
|
}>;
|
|
630
653
|
label: z.ZodString;
|
|
631
654
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -660,11 +683,12 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
660
683
|
string: "string";
|
|
661
684
|
number: "number";
|
|
662
685
|
boolean: "boolean";
|
|
663
|
-
url: "url";
|
|
664
|
-
datetime: "datetime";
|
|
665
686
|
text: "text";
|
|
687
|
+
url: "url";
|
|
666
688
|
integer: "integer";
|
|
689
|
+
datetime: "datetime";
|
|
667
690
|
select: "select";
|
|
691
|
+
image: "image";
|
|
668
692
|
}>;
|
|
669
693
|
label: z.ZodString;
|
|
670
694
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -718,15 +742,15 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
718
742
|
number: "number";
|
|
719
743
|
boolean: "boolean";
|
|
720
744
|
file: "file";
|
|
721
|
-
url: "url";
|
|
722
|
-
image: "image";
|
|
723
745
|
slug: "slug";
|
|
724
|
-
datetime: "datetime";
|
|
725
746
|
text: "text";
|
|
747
|
+
url: "url";
|
|
726
748
|
integer: "integer";
|
|
749
|
+
datetime: "datetime";
|
|
727
750
|
select: "select";
|
|
728
751
|
multiSelect: "multiSelect";
|
|
729
752
|
portableText: "portableText";
|
|
753
|
+
image: "image";
|
|
730
754
|
reference: "reference";
|
|
731
755
|
json: "json";
|
|
732
756
|
repeater: "repeater";
|
|
@@ -783,15 +807,15 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
783
807
|
number: "number";
|
|
784
808
|
boolean: "boolean";
|
|
785
809
|
file: "file";
|
|
786
|
-
url: "url";
|
|
787
|
-
image: "image";
|
|
788
810
|
slug: "slug";
|
|
789
|
-
datetime: "datetime";
|
|
790
811
|
text: "text";
|
|
812
|
+
url: "url";
|
|
791
813
|
integer: "integer";
|
|
814
|
+
datetime: "datetime";
|
|
792
815
|
select: "select";
|
|
793
816
|
multiSelect: "multiSelect";
|
|
794
817
|
portableText: "portableText";
|
|
818
|
+
image: "image";
|
|
795
819
|
reference: "reference";
|
|
796
820
|
json: "json";
|
|
797
821
|
repeater: "repeater";
|
|
@@ -837,15 +861,15 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
837
861
|
number: "number";
|
|
838
862
|
boolean: "boolean";
|
|
839
863
|
file: "file";
|
|
840
|
-
url: "url";
|
|
841
|
-
image: "image";
|
|
842
864
|
slug: "slug";
|
|
843
|
-
datetime: "datetime";
|
|
844
865
|
text: "text";
|
|
866
|
+
url: "url";
|
|
845
867
|
integer: "integer";
|
|
868
|
+
datetime: "datetime";
|
|
846
869
|
select: "select";
|
|
847
870
|
multiSelect: "multiSelect";
|
|
848
871
|
portableText: "portableText";
|
|
872
|
+
image: "image";
|
|
849
873
|
reference: "reference";
|
|
850
874
|
json: "json";
|
|
851
875
|
repeater: "repeater";
|
|
@@ -874,15 +898,15 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
874
898
|
number: "number";
|
|
875
899
|
boolean: "boolean";
|
|
876
900
|
file: "file";
|
|
877
|
-
url: "url";
|
|
878
|
-
image: "image";
|
|
879
901
|
slug: "slug";
|
|
880
|
-
datetime: "datetime";
|
|
881
902
|
text: "text";
|
|
903
|
+
url: "url";
|
|
882
904
|
integer: "integer";
|
|
905
|
+
datetime: "datetime";
|
|
883
906
|
select: "select";
|
|
884
907
|
multiSelect: "multiSelect";
|
|
885
908
|
portableText: "portableText";
|
|
909
|
+
image: "image";
|
|
886
910
|
reference: "reference";
|
|
887
911
|
json: "json";
|
|
888
912
|
repeater: "repeater";
|
|
@@ -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<{
|
|
@@ -1225,7 +1249,7 @@ declare const signupCompleteBody: z.ZodObject<{
|
|
|
1225
1249
|
}, z.core.$strip>;
|
|
1226
1250
|
declare const inviteCreateBody: z.ZodObject<{
|
|
1227
1251
|
email: z.ZodString;
|
|
1228
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
1252
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
1229
1253
|
}, z.core.$strip>;
|
|
1230
1254
|
declare const inviteCompleteBody: z.ZodObject<{
|
|
1231
1255
|
token: z.ZodString;
|
|
@@ -1777,15 +1801,15 @@ declare const usersListQuery: z.ZodObject<{
|
|
|
1777
1801
|
declare const userUpdateBody: z.ZodObject<{
|
|
1778
1802
|
name: z.ZodOptional<z.ZodString>;
|
|
1779
1803
|
email: z.ZodOptional<z.ZodString>;
|
|
1780
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
1804
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
1781
1805
|
}, z.core.$strip>;
|
|
1782
1806
|
declare const allowedDomainCreateBody: z.ZodObject<{
|
|
1783
1807
|
domain: z.ZodString;
|
|
1784
|
-
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
1808
|
+
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>;
|
|
1785
1809
|
}, z.core.$strip>;
|
|
1786
1810
|
declare const allowedDomainUpdateBody: z.ZodObject<{
|
|
1787
1811
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1788
|
-
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
1812
|
+
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
1789
1813
|
}, z.core.$strip>;
|
|
1790
1814
|
declare const userSchema: z.ZodObject<{
|
|
1791
1815
|
id: z.ZodString;
|
|
@@ -2151,8 +2175,8 @@ declare const bylineFieldCreateBody: z.ZodObject<{
|
|
|
2151
2175
|
type: z.ZodEnum<{
|
|
2152
2176
|
string: "string";
|
|
2153
2177
|
boolean: "boolean";
|
|
2154
|
-
url: "url";
|
|
2155
2178
|
text: "text";
|
|
2179
|
+
url: "url";
|
|
2156
2180
|
select: "select";
|
|
2157
2181
|
}>;
|
|
2158
2182
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2181,8 +2205,8 @@ declare const bylineFieldDefinitionSchema: z.ZodObject<{
|
|
|
2181
2205
|
type: z.ZodEnum<{
|
|
2182
2206
|
string: "string";
|
|
2183
2207
|
boolean: "boolean";
|
|
2184
|
-
url: "url";
|
|
2185
2208
|
text: "text";
|
|
2209
|
+
url: "url";
|
|
2186
2210
|
select: "select";
|
|
2187
2211
|
}>;
|
|
2188
2212
|
required: z.ZodBoolean;
|
|
@@ -2202,8 +2226,8 @@ declare const bylineFieldListResponseSchema: z.ZodObject<{
|
|
|
2202
2226
|
type: z.ZodEnum<{
|
|
2203
2227
|
string: "string";
|
|
2204
2228
|
boolean: "boolean";
|
|
2205
|
-
url: "url";
|
|
2206
2229
|
text: "text";
|
|
2230
|
+
url: "url";
|
|
2207
2231
|
select: "select";
|
|
2208
2232
|
}>;
|
|
2209
2233
|
required: z.ZodBoolean;
|
|
@@ -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,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-CUSvkasJ.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/handlers/byline-fields.ts
|
|
4
4
|
function bylineSchemaErrorResult(error) {
|
|
@@ -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-CShMWIej.mjs";
|
|
3
|
+
import { i as RESERVED_BYLINE_FIELD_SLUGS, t as BYLINE_FIELD_TYPES } from "./types-BO8TGjS8.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-B-tbV751.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
|
-
import { t as BylineRepository } from "./byline-
|
|
4
|
-
import { a as isMissingTableError, r as getDb } from "./loader-
|
|
3
|
+
import { t as BylineRepository } from "./byline-1ntDwv8c.mjs";
|
|
4
|
+
import { a as isMissingTableError, r as getDb } from "./loader-tg63WSY2.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-BYc3oruA.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-DfuD0Afl.mjs";
|
|
3
|
+
import { t as BylineRepository } from "./byline-1ntDwv8c.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-B-tbV751.mjs";
|
|
2
|
+
import { i as matchPattern, n as interpolateDestination, t as compilePattern } from "./patterns-r-0n824Y.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/redirects/cache.ts
|
|
5
5
|
var cache_exports = /* @__PURE__ */ __exportAll({
|