dineway 0.1.46 → 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-Bmfii2mH.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 +66 -24
- package/dist/astro/middleware/auth.d.mts +7 -7
- 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.d.mts +2 -1
- package/dist/astro/middleware.mjs +359 -140
- 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/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/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 +3 -3
- package/dist/astro/routes/api/auth/invite/index.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/register-options.mjs +3 -3
- 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/passkey/_id_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/setup-token/index.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +3 -3
- 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 +1 -1
- 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 +1 -1
- package/dist/astro/routes/api/oauth/device/authorize.mjs +1 -1
- package/dist/astro/routes/api/oauth/device/code.mjs +1 -1
- 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 +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 +4 -4
- package/dist/astro/routes/api/setup/admin.mjs +3 -3
- 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 +19 -19
- package/dist/astro/routes/api/setup/status.mjs +1 -1
- 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 +2 -2
- 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-CaF_xfpj.d.mts → byline-fields-BX7rWKNU.d.mts} +58 -34
- 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 +73 -28
- 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-DRhmPCiE.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-BL5ZRlc1.mjs → device-flow-DygsFPGL.mjs} +1 -1
- package/dist/{fts-manager-EHY2Kes9.mjs → fts-manager-CIZlScg5.mjs} +1 -1
- package/dist/{hitl-requests-B4Hkt0TO.mjs → hitl-requests-CGQwOEiq.mjs} +1 -1
- package/dist/{hitl-route-helpers-CHjdfQ0s.mjs → hitl-route-helpers-GSDLNPpN.mjs} +2 -2
- 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-Dk3_LOfj.mjs → oauth-authorization-D-1p52Je.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-CN6FCpcB.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-BytMc6HO.mjs → setup-complete--PradA4R.mjs} +1 -1
- package/dist/{site-activity-6x1JccoR.mjs → site-activity-D7Xyropw.mjs} +1 -1
- package/dist/{site-context-sN12ehZF.mjs → site-context-DaN9Z91j.mjs} +12 -12
- 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-Cg6ur4zS.mjs +0 -6
- /package/dist/{entity-aliases-uOrKvlPg.mjs → entity-aliases-Egjmqc7I.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
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
|
|
@@ -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<{
|
|
553
|
-
search: "search";
|
|
554
575
|
drafts: "drafts";
|
|
555
576
|
revisions: "revisions";
|
|
556
577
|
preview: "preview";
|
|
557
578
|
scheduling: "scheduling";
|
|
579
|
+
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<{
|
|
569
|
-
search: "search";
|
|
570
591
|
drafts: "drafts";
|
|
571
592
|
revisions: "revisions";
|
|
572
593
|
preview: "preview";
|
|
573
594
|
scheduling: "scheduling";
|
|
595
|
+
search: "search";
|
|
574
596
|
}>>>;
|
|
575
597
|
urlPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
576
598
|
hasSeo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -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";
|
|
@@ -923,8 +947,8 @@ declare const createCommentBody: z.ZodObject<{
|
|
|
923
947
|
}, z.core.$strip>;
|
|
924
948
|
declare const commentStatusBody: z.ZodObject<{
|
|
925
949
|
status: z.ZodEnum<{
|
|
926
|
-
approved: "approved";
|
|
927
950
|
pending: "pending";
|
|
951
|
+
approved: "approved";
|
|
928
952
|
spam: "spam";
|
|
929
953
|
trash: "trash";
|
|
930
954
|
}>;
|
|
@@ -940,8 +964,8 @@ declare const commentBulkBody: z.ZodObject<{
|
|
|
940
964
|
}, z.core.$strip>;
|
|
941
965
|
declare const commentListQuery: z.ZodObject<{
|
|
942
966
|
status: z.ZodOptional<z.ZodEnum<{
|
|
943
|
-
approved: "approved";
|
|
944
967
|
pending: "pending";
|
|
968
|
+
approved: "approved";
|
|
945
969
|
spam: "spam";
|
|
946
970
|
trash: "trash";
|
|
947
971
|
}>>;
|
|
@@ -975,8 +999,8 @@ declare const commentSchema: z.ZodObject<{
|
|
|
975
999
|
authorEmail: z.ZodString;
|
|
976
1000
|
body: z.ZodString;
|
|
977
1001
|
status: z.ZodEnum<{
|
|
978
|
-
approved: "approved";
|
|
979
1002
|
pending: "pending";
|
|
1003
|
+
approved: "approved";
|
|
980
1004
|
spam: "spam";
|
|
981
1005
|
trash: "trash";
|
|
982
1006
|
}>;
|
|
@@ -1007,8 +1031,8 @@ declare const adminCommentListResponseSchema: z.ZodObject<{
|
|
|
1007
1031
|
authorEmail: z.ZodString;
|
|
1008
1032
|
body: z.ZodString;
|
|
1009
1033
|
status: z.ZodEnum<{
|
|
1010
|
-
approved: "approved";
|
|
1011
1034
|
pending: "pending";
|
|
1035
|
+
approved: "approved";
|
|
1012
1036
|
spam: "spam";
|
|
1013
1037
|
trash: "trash";
|
|
1014
1038
|
}>;
|
|
@@ -1055,13 +1079,13 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1055
1079
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1056
1080
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1057
1081
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1058
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1059
1082
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1060
1083
|
true: "true";
|
|
1061
1084
|
false: "false";
|
|
1062
1085
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1063
1086
|
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1064
1087
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1088
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1065
1089
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1066
1090
|
user: "user";
|
|
1067
1091
|
api_token: "api_token";
|
|
@@ -1082,7 +1106,6 @@ declare const contextEntryDiffQuery: z.ZodObject<{
|
|
|
1082
1106
|
declare const contextEntryCreateBody: z.ZodObject<{
|
|
1083
1107
|
scope: z.ZodString;
|
|
1084
1108
|
contextType: z.ZodEnum<{
|
|
1085
|
-
decision: "decision";
|
|
1086
1109
|
brand_voice: "brand_voice";
|
|
1087
1110
|
seo_strategy: "seo_strategy";
|
|
1088
1111
|
audience: "audience";
|
|
@@ -1092,6 +1115,7 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1092
1115
|
migration_note: "migration_note";
|
|
1093
1116
|
plugin_note: "plugin_note";
|
|
1094
1117
|
agent_reasoning: "agent_reasoning";
|
|
1118
|
+
decision: "decision";
|
|
1095
1119
|
risk: "risk";
|
|
1096
1120
|
content_gap: "content_gap";
|
|
1097
1121
|
style_exception: "style_exception";
|
|
@@ -1106,7 +1130,6 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1106
1130
|
declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
1107
1131
|
scope: z.ZodOptional<z.ZodString>;
|
|
1108
1132
|
contextType: z.ZodOptional<z.ZodEnum<{
|
|
1109
|
-
decision: "decision";
|
|
1110
1133
|
brand_voice: "brand_voice";
|
|
1111
1134
|
seo_strategy: "seo_strategy";
|
|
1112
1135
|
audience: "audience";
|
|
@@ -1116,6 +1139,7 @@ declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
|
1116
1139
|
migration_note: "migration_note";
|
|
1117
1140
|
plugin_note: "plugin_note";
|
|
1118
1141
|
agent_reasoning: "agent_reasoning";
|
|
1142
|
+
decision: "decision";
|
|
1119
1143
|
risk: "risk";
|
|
1120
1144
|
content_gap: "content_gap";
|
|
1121
1145
|
style_exception: "style_exception";
|
|
@@ -1148,8 +1172,8 @@ declare const siteBriefingQuery: z.ZodObject<{
|
|
|
1148
1172
|
//#region src/api/schemas/hitl-requests.d.ts
|
|
1149
1173
|
declare const hitlRequestListQuery: z.ZodObject<{
|
|
1150
1174
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1151
|
-
approved: "approved";
|
|
1152
1175
|
pending: "pending";
|
|
1176
|
+
approved: "approved";
|
|
1153
1177
|
rejected: "rejected";
|
|
1154
1178
|
}>>;
|
|
1155
1179
|
priority: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1176,8 +1200,8 @@ declare const hitlRequestResolveBody: z.ZodObject<{
|
|
|
1176
1200
|
//#region src/api/schemas/review-requests.d.ts
|
|
1177
1201
|
declare const reviewRequestListQuery: z.ZodObject<{
|
|
1178
1202
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1179
|
-
approved: "approved";
|
|
1180
1203
|
pending: "pending";
|
|
1204
|
+
approved: "approved";
|
|
1181
1205
|
rejected: "rejected";
|
|
1182
1206
|
}>>;
|
|
1183
1207
|
collection: z.ZodOptional<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({
|