dineway 0.2.47 → 0.2.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/dist/api/route-utils.d.mts +5 -5
- package/dist/api/route-utils.mjs +12 -12
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-CJ_MN3ZM.mjs → api-p58_ypd8.mjs} +9 -9
- package/dist/{apply-AOuBTila.mjs → apply-BlVVbjbz.mjs} +15 -15
- package/dist/astro/index.d.mts +4 -4
- package/dist/astro/index.mjs +4 -4
- package/dist/astro/middleware/auth.d.mts +4 -4
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +63 -63
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +4 -4
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +4 -4
- package/dist/astro/routes/api/admin/briefing.mjs +20 -20
- 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 +12 -12
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +12 -12
- package/dist/astro/routes/api/admin/bylines/index.mjs +12 -12
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +9 -9
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +25 -25
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +25 -25
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +28 -28
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +28 -28
- package/dist/astro/routes/api/admin/context/diff.mjs +28 -28
- package/dist/astro/routes/api/admin/context/index.mjs +28 -28
- package/dist/astro/routes/api/admin/context/stale.mjs +28 -28
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +26 -26
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +29 -29
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +29 -29
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +25 -25
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/index.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/updates.mjs +39 -39
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +16 -16
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +22 -22
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +32 -32
- package/dist/astro/routes/api/admin/review-requests/index.mjs +30 -30
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +39 -39
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +39 -39
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/users/index.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/index.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/register-options.mjs +5 -5
- package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
- package/dist/astro/routes/api/auth/me.mjs +4 -4
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/options.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +10 -10
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +19 -19
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +19 -19
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +15 -15
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/index.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/trash.mjs +4 -4
- package/dist/astro/routes/api/dashboard.mjs +9 -9
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +13 -13
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +4 -4
- package/dist/astro/routes/api/import/wordpress/execute.mjs +28 -28
- package/dist/astro/routes/api/import/wordpress/media.d.mts +4 -4
- package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +29 -29
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +4 -4
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +29 -29
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +15 -15
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +4 -4
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +32 -32
- package/dist/astro/routes/api/manifest.mjs +2 -2
- package/dist/astro/routes/api/mcp.mjs +64 -64
- package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
- package/dist/astro/routes/api/media/_id_.mjs +4 -4
- 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 +29 -29
- package/dist/astro/routes/api/menus/_name_/items.mjs +29 -29
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +29 -29
- package/dist/astro/routes/api/menus/_name_/translations.mjs +29 -29
- package/dist/astro/routes/api/menus/_name_.mjs +29 -29
- package/dist/astro/routes/api/menus/index.mjs +29 -29
- package/dist/astro/routes/api/openapi.json.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/summary.mjs +4 -4
- package/dist/astro/routes/api/redirects/_id_.mjs +28 -28
- package/dist/astro/routes/api/redirects/index.mjs +28 -28
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +39 -39
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +39 -39
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +39 -39
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +39 -39
- package/dist/astro/routes/api/schema/collections/index.mjs +39 -39
- package/dist/astro/routes/api/schema/index.mjs +5 -5
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +39 -39
- package/dist/astro/routes/api/schema/orphans/index.mjs +39 -39
- package/dist/astro/routes/api/search/enable.mjs +9 -9
- package/dist/astro/routes/api/search/index.mjs +9 -9
- package/dist/astro/routes/api/search/rebuild.mjs +9 -9
- package/dist/astro/routes/api/search/stats.mjs +5 -5
- package/dist/astro/routes/api/search/suggest.mjs +9 -9
- package/dist/astro/routes/api/sections/_slug_.mjs +29 -29
- package/dist/astro/routes/api/sections/index.mjs +29 -29
- package/dist/astro/routes/api/settings/reviews.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +29 -29
- package/dist/astro/routes/api/setup/admin-verify.mjs +7 -7
- package/dist/astro/routes/api/setup/admin.mjs +5 -5
- package/dist/astro/routes/api/setup/dev-bypass.mjs +19 -19
- package/dist/astro/routes/api/setup/index.mjs +23 -23
- package/dist/astro/routes/api/setup/status.mjs +1 -1
- package/dist/astro/routes/api/snapshot.mjs +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +31 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +31 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +31 -31
- package/dist/astro/routes/api/taxonomies/index.mjs +31 -31
- package/dist/astro/routes/api/typegen.mjs +2 -2
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +28 -28
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +29 -29
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +29 -29
- package/dist/astro/routes/api/widget-areas/_name_.mjs +26 -26
- package/dist/astro/routes/api/widget-areas/index.mjs +29 -29
- package/dist/astro/routes/robots.txt.mjs +6 -6
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +10 -10
- package/dist/astro/routes/sitemap.xml.mjs +10 -10
- package/dist/astro/session-driver.mjs +4 -4
- package/dist/astro/types.d.mts +4 -4
- package/dist/{briefing-8OgwfN-y.mjs → briefing-BAtarnPm.mjs} +1 -1
- package/dist/{briefing-CQk5h4t6.mjs → briefing-DoFv4isE.mjs} +5 -5
- package/dist/{byline-DGTZqRM0.mjs → byline-CYc3Hn1i.mjs} +5 -5
- package/dist/{byline-fields-DvYufwxE.d.mts → byline-fields-B117F62r.d.mts} +38 -38
- package/dist/{byline-fields-Bnw5NflJ.mjs → byline-fields-BHVmleIi.mjs} +1 -1
- package/dist/{bylines-D27pVrb-.mjs → bylines-DGdYDqGq.mjs} +1 -1
- package/dist/{bylines-BO0rdeMa.mjs → bylines-DrSccNgg.mjs} +3 -3
- package/dist/cli/index.mjs +33 -25
- package/dist/cli/plugin-kit.d.mts +4 -4
- package/dist/client/index.d.mts +4 -4
- package/dist/{comment--XUWDcJD.mjs → comment-BnrzhX9M.mjs} +1 -1
- package/dist/{comments-1RMjBvK3.mjs → comments-B4Tym6oF.mjs} +1 -1
- package/dist/{config---A7Bg68.mjs → config-BhQacL9l.mjs} +2 -1
- package/dist/{content-rb8lZEfT.mjs → content-CIWw08LO.mjs} +5 -5
- package/dist/{content-C8i4DyTt.mjs → content-CghEEm3k.mjs} +1 -1
- package/dist/{content-refresh-Dl938dTm.mjs → content-refresh-lqCnhHGP.mjs} +2 -2
- package/dist/content-storage/index.d.mts +24 -5
- package/dist/content-storage/index.mjs +16 -16
- package/dist/content-storage/store.d.mts +2 -2
- package/dist/content-storage/store.mjs +2 -2
- package/dist/{content-write-DPszY76R.mjs → content-write-BjTJiZhK.mjs} +74 -18
- package/dist/{context-BrzB9nTR.mjs → context-PK-5ygok.mjs} +4 -4
- package/dist/{context-I9mz_9uB.mjs → context-caX3OQVz.mjs} +2 -2
- package/dist/{dashboard-CZtacCz9.mjs → dashboard-DBHqEUXC.mjs} +1 -1
- package/dist/database/d1/index.d.mts +4 -4
- package/dist/database/d1/index.mjs +2 -2
- package/dist/{discovery-BjyZQy47.mjs → discovery-DLzhlF9z.mjs} +1 -1
- package/dist/{evidence-DE40B1zz.mjs → evidence-CG6khLd9.mjs} +2 -2
- package/dist/{hitl-requests-DsLqU9VX.mjs → hitl-requests-SRfiaD3V.mjs} +1 -1
- package/dist/{hitl-route-helpers-BVgtDm47.mjs → hitl-route-helpers-B0h7RXw1.mjs} +1 -1
- package/dist/{import-DrzBQKha.mjs → import-DpVbSU4T.mjs} +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +51 -51
- package/dist/{jsonld-Qr9dwCK4.d.mts → jsonld-DaZdgstn.d.mts} +1 -1
- package/dist/{loader-Q07mEStb.mjs → loader-CrVkVaD6.mjs} +7 -2
- package/dist/{mcp-reviewed-executor-mRdtNIf1.mjs → mcp-reviewed-executor-C93EXLSQ.mjs} +2 -2
- package/dist/media/local-runtime.d.mts +4 -4
- package/dist/{menus-Coq8FLPj.mjs → menus-DRpTzW6g.mjs} +3 -3
- package/dist/{menus-DDxZ0JiZ.mjs → menus-X0eJuILT.mjs} +1 -1
- package/dist/{object-cache-DeIkrWmq.mjs → object-cache-DRx6IjWR.mjs} +1 -1
- package/dist/{owned-metadata-LUF0xC0h.mjs → owned-metadata-DFODPEuj.mjs} +1 -1
- package/dist/page/index.d.mts +5 -5
- package/dist/plugin-utils.d.mts +4 -4
- package/dist/plugins/adapt-sandbox-entry.d.mts +4 -4
- package/dist/{plugins-Dh2fBfX7.mjs → plugins-D4TRcqTV.mjs} +2 -2
- package/dist/{public-url-C60HX3NR.d.mts → public-url-b6l0vmiE.d.mts} +1 -1
- package/dist/{publication-authorization-e0sPJ9OP.mjs → publication-authorization-C2X-Qj7L.mjs} +4 -4
- package/dist/{query-CyzBZrWv.mjs → query-BTXfe7AE.mjs} +3 -3
- package/dist/{query-BvYbhblK.mjs → query-BfIz2W0n.mjs} +10 -10
- package/dist/{redirects-BwnvcNyN.mjs → redirects-DAKRmX6R.mjs} +1 -1
- package/dist/{registry-BpNZLrXn.mjs → registry-CdeSHG0k.mjs} +1 -1
- package/dist/{release-CIYyinzY.mjs → release-Bk-UaI2C.mjs} +1 -1
- package/dist/{migration-B7DanZKm.mjs → retention-gks1TiDo.mjs} +72 -12
- package/dist/{review-requests-R9L2Aubm.mjs → review-requests-05w-uj_e.mjs} +1 -1
- package/dist/{revision-DfrRhPgw.mjs → revision-DX_AHhhE.mjs} +2 -2
- package/dist/{revisions-DnV1P4O5.mjs → revisions-DG2-WBDb.mjs} +2 -2
- package/dist/{runtime-ecsN2xL9.d.mts → runtime-BEiDcRPk.d.mts} +1 -1
- package/dist/{runtime-CmupMaEb.mjs → runtime-CeGWfwh3.mjs} +17 -2
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime.mjs +4 -4
- package/dist/{schema-siddXiB9.mjs → schema-fU3y2MMH.mjs} +1 -1
- package/dist/{search-giRjxqrh.mjs → search-kRXT1_11.mjs} +1 -1
- package/dist/{sections-DqBH0bCm.mjs → sections-DzoY2Hvx.mjs} +1 -1
- package/dist/seed/index.mjs +19 -19
- package/dist/seo/index.mjs +6 -6
- package/dist/{seo-TWEsRapq.mjs → seo-DYjDvLHM.mjs} +5 -5
- package/dist/{seo-Dsh31oy8.mjs → seo-DuHOFc2a.mjs} +1 -1
- package/dist/{service-CFLkZn2S.mjs → service-DlJ5BeF2.mjs} +2 -2
- package/dist/{settings-ByRmK-Mg.mjs → settings-BU33hxhH.mjs} +1 -1
- package/dist/{settings-Dn4XvS7H.mjs → settings-opr6BnNM.mjs} +2 -2
- package/dist/{site-context-CHfuvD9v.mjs → site-context-94-KanDT.mjs} +6 -6
- package/dist/{submission-C_DNrA5y.mjs → submission-_6ZXKy3N.mjs} +5 -5
- package/dist/{taxonomies-BCuDkFFS.mjs → taxonomies--FALWfoI.mjs} +3 -3
- package/dist/{taxonomies-PWPhdhgN.mjs → taxonomies-DgiHNOZJ.mjs} +2 -2
- package/dist/{taxonomy-YxipNvfL.mjs → taxonomy-CKv3RKf1.mjs} +9 -8
- package/dist/{terms-EskuqbKE.mjs → terms-D4OJs0Zh.mjs} +3 -0
- package/dist/{types-CeFGasN8.d.mts → types-BafdCfKt.d.mts} +1 -0
- package/dist/{types-1NHQF2Yh.d.mts → types-CTbitmIM.d.mts} +7 -5
- package/dist/ui/server-runtime.d.mts +6 -6
- package/dist/ui/server-runtime.mjs +14 -14
- package/dist/version-Bkbf_9nG.mjs +6 -0
- package/dist/{version-store-mMm7pcYK.d.mts → version-store-BLGuq3wB.d.mts} +1 -1
- package/dist/{version-store-B2n_Gfkq.mjs → version-store-xhBmPoC-.mjs} +1 -1
- package/dist/{widgets-C_9KBEwT.mjs → widgets-hPqK6Aut.mjs} +1 -1
- package/dist/{worker-Dl9S5-Tl.mjs → worker-CMiDP358.mjs} +4 -4
- package/dist/{write-intent-4Q8sNg11.mjs → write-intent-ChTUctBF.mjs} +5 -5
- package/package.json +3 -3
- package/dist/version-DkCuTQ-N.mjs +0 -6
- /package/dist/{allowed-origins-SQbPK6WG.mjs → allowed-origins-CQyKpMbJ.mjs} +0 -0
- /package/dist/{challenge-store-7IZ_NqWg.mjs → challenge-store-BImHCJvl.mjs} +0 -0
- /package/dist/{mode-C3RI5Z5t.mjs → mode-BoM5FjH7.mjs} +0 -0
- /package/dist/{policy-DbceGc4P.mjs → policy-BL8yj6uD.mjs} +0 -0
- /package/dist/{session-user-D36BRaZY.mjs → session-user-j7I8GMvK.mjs} +0 -0
- /package/dist/{setup-complete-eTV6C0-E.mjs → setup-complete-Cn-Ho9RX.mjs} +0 -0
- /package/dist/{state-CKkqoA6i.mjs → state-LzJZ7qpq.mjs} +0 -0
- /package/dist/{workers-build-4926MPc0.mjs → workers-build-Bd4w1aw9.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, R as PageMetadataLinkRel, Tt as PublicPageContext, t as BreadcrumbItem, z as PagePlacement } from "./types-
|
|
1
|
+
import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, R as PageMetadataLinkRel, Tt as PublicPageContext, t as BreadcrumbItem, z as PagePlacement } from "./types-CTbitmIM.mjs";
|
|
2
2
|
import { S as SeoSettings } from "./validate-CleBZbkv.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/page/context.d.ts
|
|
@@ -2,8 +2,8 @@ import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
|
2
2
|
import { getRequestContext } from "./request-context.mjs";
|
|
3
3
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
4
4
|
import { o as isPostgres, r as currentIsoTimestampValue } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { t as readRevisionData } from "./revisions-
|
|
5
|
+
import { o as hydrateContentRows, s as registerContentStorage, t as assertContentQueryFields } from "./runtime-CeGWfwh3.mjs";
|
|
6
|
+
import { t as readRevisionData } from "./revisions-DG2-WBDb.mjs";
|
|
7
7
|
import { kyselyLogOption } from "./database/instrumentation.mjs";
|
|
8
8
|
import { i as encodeCursor, r as decodeCursor } from "./types-BI3ULB3A.mjs";
|
|
9
9
|
import { Kysely, sql } from "kysely";
|
|
@@ -582,6 +582,11 @@ function dinewayLoader() {
|
|
|
582
582
|
cacheHint: { tags: [type] }
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
+
await assertContentQueryFields(db, type, [
|
|
586
|
+
...Object.keys(fieldFilters),
|
|
587
|
+
...Object.keys(orderBy ?? {}),
|
|
588
|
+
...q ? searchColumns ?? [] : []
|
|
589
|
+
]);
|
|
585
590
|
const orderByClause = buildOrderByClause(orderBy, tableName);
|
|
586
591
|
const statusCondition = buildStatusCondition(db, status, tableName);
|
|
587
592
|
const localeFilter = locale ? sql`AND ${sql.ref(`${tableName}.locale`)} = ${locale}` : sql``;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as stableStringify } from "./stable-hash-9RDJgfif.mjs";
|
|
2
|
-
import { o as HitlRequestRepository } from "./publication-authorization-
|
|
3
|
-
import { b as HitlRequestService } from "./site-context-
|
|
2
|
+
import { o as HitlRequestRepository } from "./publication-authorization-C2X-Qj7L.mjs";
|
|
3
|
+
import { b as HitlRequestService } from "./site-context-94-KanDT.mjs";
|
|
4
4
|
import { n as buildStableActionHash } from "./review-payload-mDJIgcFy.mjs";
|
|
5
5
|
import { i as hasScope$1 } from "./api-tokens-CK0aCsS2.mjs";
|
|
6
6
|
import { m as logSiteActivityStrict, p as logSiteActivitySafely } from "./activity-events-D4JfWJFI.mjs";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../types-
|
|
1
|
+
import "../types-CTbitmIM.mjs";
|
|
2
2
|
import { n as Database } from "../types-CG9uGPBL.mjs";
|
|
3
3
|
import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-CjKwIO3g.mjs";
|
|
4
4
|
import "../runner-DlkOiguI.mjs";
|
|
5
5
|
import "../index-_fCUsJx9.mjs";
|
|
6
|
-
import "../types-
|
|
6
|
+
import "../types-BafdCfKt.mjs";
|
|
7
7
|
import "../types-DLwh1QkC.mjs";
|
|
8
8
|
import "../adapters-cL325h6c.mjs";
|
|
9
|
-
import "../runtime-
|
|
9
|
+
import "../runtime-BEiDcRPk.mjs";
|
|
10
10
|
import "../hook-events-lN-kz-4_.mjs";
|
|
11
11
|
import { d as Storage } from "../types-B2rEY0ik.mjs";
|
|
12
12
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
13
13
|
import "../public-url-CvNSyMJJ.mjs";
|
|
14
14
|
import "../validate-CleBZbkv.mjs";
|
|
15
|
-
import "../byline-fields-
|
|
15
|
+
import "../byline-fields-B117F62r.mjs";
|
|
16
16
|
import "../types-BuplUVZ4.mjs";
|
|
17
17
|
import "../index.mjs";
|
|
18
18
|
import { Kysely } from "kysely";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
2
|
-
import { r as getDb } from "./loader-
|
|
2
|
+
import { r as getDb } from "./loader-CrVkVaD6.mjs";
|
|
3
3
|
import { r as requestCached } from "./request-cache-CizvDoxV.mjs";
|
|
4
|
-
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-
|
|
5
|
-
import { t as CommentRepository } from "./comment
|
|
4
|
+
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-DRx6IjWR.mjs";
|
|
5
|
+
import { t as CommentRepository } from "./comment-BnrzhX9M.mjs";
|
|
6
6
|
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-BdDNBmaU.mjs";
|
|
7
7
|
import { n as sanitizeHref } from "./url--_ukDIsN.mjs";
|
|
8
8
|
import { t as CommentReactionRepository } from "./comment-reaction-CFkwluRq.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
2
2
|
import { AtomicWriteConflict, atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
3
3
|
import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
|
|
4
|
-
import { c as invalidateMenuObjectCache } from "./object-cache-
|
|
4
|
+
import { c as invalidateMenuObjectCache } from "./object-cache-DRx6IjWR.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
import { ulid } from "ulidx";
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getRequestContext } from "./request-context.mjs";
|
|
2
2
|
import { after } from "./after.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { r as contentStorageCacheScope } from "./runtime-CeGWfwh3.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/object-cache/codec.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
2
2
|
import { rowUnchanged } from "./database/batch.mjs";
|
|
3
|
-
import { t as BylineRepository } from "./byline-
|
|
3
|
+
import { t as BylineRepository } from "./byline-CYc3Hn1i.mjs";
|
|
4
4
|
import { sql } from "kysely";
|
|
5
5
|
|
|
6
6
|
//#region src/content-storage/owned-metadata.ts
|
package/dist/page/index.d.mts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, Tt as PublicPageContext } from "../types-
|
|
1
|
+
import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, Tt as PublicPageContext } from "../types-CTbitmIM.mjs";
|
|
2
2
|
import "../types-CG9uGPBL.mjs";
|
|
3
3
|
import "../runner-DlkOiguI.mjs";
|
|
4
4
|
import "../index-_fCUsJx9.mjs";
|
|
5
|
-
import "../types-
|
|
5
|
+
import "../types-BafdCfKt.mjs";
|
|
6
6
|
import "../types-DLwh1QkC.mjs";
|
|
7
7
|
import "../adapters-cL325h6c.mjs";
|
|
8
|
-
import "../runtime-
|
|
8
|
+
import "../runtime-BEiDcRPk.mjs";
|
|
9
9
|
import "../hook-events-lN-kz-4_.mjs";
|
|
10
10
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../byline-fields-
|
|
13
|
+
import "../byline-fields-B117F62r.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
|
-
import { _ as CreatePublicPageContextInput, a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, g as resolvePageImage, h as imageMetadataContributions, i as generateBaseSeoContributions, l as createSha256CspHash, m as mergePageSchema, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr, v as createPublicPageContext } from "../jsonld-
|
|
15
|
+
import { _ as CreatePublicPageContextInput, a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, g as resolvePageImage, h as imageMetadataContributions, i as generateBaseSeoContributions, l as createSha256CspHash, m as mergePageSchema, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr, v as createPublicPageContext } from "../jsonld-DaZdgstn.mjs";
|
|
16
16
|
|
|
17
17
|
//#region src/page/index.d.ts
|
|
18
18
|
/**
|
package/dist/plugin-utils.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./types-
|
|
1
|
+
import "./types-CTbitmIM.mjs";
|
|
2
2
|
import "./types-CG9uGPBL.mjs";
|
|
3
3
|
import "./runner-DlkOiguI.mjs";
|
|
4
4
|
import "./index-_fCUsJx9.mjs";
|
|
5
|
-
import "./types-
|
|
5
|
+
import "./types-BafdCfKt.mjs";
|
|
6
6
|
import "./types-DLwh1QkC.mjs";
|
|
7
7
|
import "./adapters-cL325h6c.mjs";
|
|
8
|
-
import "./runtime-
|
|
8
|
+
import "./runtime-BEiDcRPk.mjs";
|
|
9
9
|
import "./hook-events-lN-kz-4_.mjs";
|
|
10
10
|
import "./scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "./public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "./validate-CleBZbkv.mjs";
|
|
13
|
-
import "./byline-fields-
|
|
13
|
+
import "./byline-fields-B117F62r.mjs";
|
|
14
14
|
import "./types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayHandlers } from "./astro/types.mjs";
|
|
16
16
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { At as ResolvedPlugin, It as StandardPluginDefinition, ko as PluginDescriptor } from "../types-
|
|
1
|
+
import { At as ResolvedPlugin, It as StandardPluginDefinition, ko as PluginDescriptor } from "../types-CTbitmIM.mjs";
|
|
2
2
|
import "../types-CG9uGPBL.mjs";
|
|
3
3
|
import "../runner-DlkOiguI.mjs";
|
|
4
4
|
import "../index-_fCUsJx9.mjs";
|
|
5
|
-
import "../types-
|
|
5
|
+
import "../types-BafdCfKt.mjs";
|
|
6
6
|
import "../types-DLwh1QkC.mjs";
|
|
7
7
|
import "../adapters-cL325h6c.mjs";
|
|
8
|
-
import "../runtime-
|
|
8
|
+
import "../runtime-BEiDcRPk.mjs";
|
|
9
9
|
import "../hook-events-lN-kz-4_.mjs";
|
|
10
10
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../byline-fields-
|
|
13
|
+
import "../byline-fields-B117F62r.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/plugins/adapt-sandbox-entry.d.ts
|
|
@@ -3,8 +3,8 @@ import { t as readRuntimeEnv } from "./runtime-env-DpYGy4pT.mjs";
|
|
|
3
3
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-qvSs0Gxy.mjs";
|
|
4
4
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Bb56aCtB.mjs";
|
|
5
5
|
import { t as OptionsRepository } from "./options-yFkLUuTw.mjs";
|
|
6
|
-
import { a as setCronTasksEnabled, n as createPluginContext, t as PluginContextFactory } from "./context-
|
|
7
|
-
import { d as HookPipeline, p as resolveExclusiveHooks } from "./briefing-
|
|
6
|
+
import { a as setCronTasksEnabled, n as createPluginContext, t as PluginContextFactory } from "./context-PK-5ygok.mjs";
|
|
7
|
+
import { d as HookPipeline, p as resolveExclusiveHooks } from "./briefing-DoFv4isE.mjs";
|
|
8
8
|
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-D52WNV_c.mjs";
|
|
9
9
|
import { t as extractRequestMeta } from "./request-meta-DOBXMRX0.mjs";
|
|
10
10
|
import { AsyncLocalStorage } from "node:async_hooks";
|
package/dist/{publication-authorization-e0sPJ9OP.mjs → publication-authorization-C2X-Qj7L.mjs}
RENAMED
|
@@ -2,15 +2,15 @@ import { AtomicWriteConflict, atomicBatch, isD1Database, rowUnchanged } from "./
|
|
|
2
2
|
import { r as currentIsoTimestampValue } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
3
3
|
import { i as encodeCursor, r as decodeCursor } from "./types-BI3ULB3A.mjs";
|
|
4
4
|
import { r as getOAuthTokenHash, t as SYSTEM_ACTOR_ID } from "./actor-D0AW80ld.mjs";
|
|
5
|
-
import { r as prepareContentLifecycleEvents, t as ContentRepository } from "./content-
|
|
6
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
5
|
+
import { r as prepareContentLifecycleEvents, t as ContentRepository } from "./content-CIWw08LO.mjs";
|
|
6
|
+
import { o as invalidateCollectionCache } from "./object-cache-DRx6IjWR.mjs";
|
|
7
7
|
import { t as SiteActivityRepository } from "./site-activity-hpfJkmxQ.mjs";
|
|
8
8
|
import { n as stableStringify } from "./stable-hash-9RDJgfif.mjs";
|
|
9
9
|
import { r as ReviewRequestRepository } from "./review-requests-DZYM51yI.mjs";
|
|
10
10
|
import { i as invalidateRedirectCache } from "./cache-DsEbwFVE.mjs";
|
|
11
|
-
import { T as prepareContentPublication } from "./content-write-
|
|
11
|
+
import { T as prepareContentPublication } from "./content-write-BjTJiZhK.mjs";
|
|
12
12
|
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-mDJIgcFy.mjs";
|
|
13
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
13
|
+
import { a as getSiteSettingsWithDb } from "./settings-opr6BnNM.mjs";
|
|
14
14
|
import { n as redactActivityRecord } from "./activity-lyE6xCrf.mjs";
|
|
15
15
|
import { sql } from "kysely";
|
|
16
16
|
import { ulid } from "ulidx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as getDb } from "./loader-
|
|
1
|
+
import { r as getDb } from "./loader-CrVkVaD6.mjs";
|
|
2
2
|
import { r as requestCached } from "./request-cache-CizvDoxV.mjs";
|
|
3
|
-
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-
|
|
4
|
-
import { n as SchemaRegistry } from "./registry-
|
|
3
|
+
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-DRx6IjWR.mjs";
|
|
4
|
+
import { n as SchemaRegistry } from "./registry-CdeSHG0k.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/schema/query.ts
|
|
7
7
|
/**
|
|
@@ -2,9 +2,9 @@ import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
|
2
2
|
import { getRequestContext } from "./request-context.mjs";
|
|
3
3
|
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-XW5tMrH8.mjs";
|
|
4
4
|
import { i as encodeCursor } from "./types-BI3ULB3A.mjs";
|
|
5
|
-
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-
|
|
5
|
+
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-CrVkVaD6.mjs";
|
|
6
6
|
import { r as requestCached } from "./request-cache-CizvDoxV.mjs";
|
|
7
|
-
import { i as contentNamespaces, n as cachedQuery, u as invalidateSchemaObjectCache } from "./object-cache-
|
|
7
|
+
import { i as contentNamespaces, n as cachedQuery, u as invalidateSchemaObjectCache } from "./object-cache-DRx6IjWR.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/visual-editing/editable.ts
|
|
10
10
|
/**
|
|
@@ -597,7 +597,7 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
597
597
|
let needsQueryPath = parsed.some((item) => item.credits.length === 0 && (dataStr(item.data, "authorId") !== "" || dataStr(item.data, "primaryBylineId") !== ""));
|
|
598
598
|
let hasCustomFields = false;
|
|
599
599
|
if (!needsQueryPath) try {
|
|
600
|
-
const { getDb } = await import("./loader-
|
|
600
|
+
const { getDb } = await import("./loader-CrVkVaD6.mjs").then((n) => n.i);
|
|
601
601
|
const db = await getDb();
|
|
602
602
|
const { getBylineFieldDefs } = await import("./field-defs-cache-dn5Tw79A.mjs").then((n) => n.t);
|
|
603
603
|
hasCustomFields = (await getBylineFieldDefs(db)).length > 0;
|
|
@@ -613,7 +613,7 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
try {
|
|
616
|
-
const { getBylinesForEntries } = await import("./bylines-
|
|
616
|
+
const { getBylinesForEntries } = await import("./bylines-DrSccNgg.mjs").then((n) => n.t);
|
|
617
617
|
const refs = entries.map((entry) => {
|
|
618
618
|
const data = entryData(entry);
|
|
619
619
|
const id = dataStr(data, "id");
|
|
@@ -671,12 +671,12 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
671
671
|
byTaxonomy: grouped
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
-
const { primeFoldedEntryTerms } = await import("./taxonomies
|
|
674
|
+
const { primeFoldedEntryTerms } = await import("./taxonomies--FALWfoI.mjs").then((n) => n.u);
|
|
675
675
|
primeFoldedEntryTerms(type, perEntry, { locale });
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
678
|
try {
|
|
679
|
-
const { getAllTermsForEntries } = await import("./taxonomies
|
|
679
|
+
const { getAllTermsForEntries } = await import("./taxonomies--FALWfoI.mjs").then((n) => n.u);
|
|
680
680
|
const ids = entries.map((entry) => dataStr(entryData(entry), "id")).filter(Boolean);
|
|
681
681
|
if (ids.length === 0) return;
|
|
682
682
|
const termsMap = await getAllTermsForEntries(type, ids, { locale });
|
|
@@ -710,9 +710,9 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
710
710
|
*/
|
|
711
711
|
async function getTranslations(type, id) {
|
|
712
712
|
try {
|
|
713
|
-
const db = (await import("./loader-
|
|
713
|
+
const db = (await import("./loader-CrVkVaD6.mjs").then((n) => n.i)).getDb;
|
|
714
714
|
const dbInstance = await db();
|
|
715
|
-
const { ContentRepository } = await import("./content-
|
|
715
|
+
const { ContentRepository } = await import("./content-CIWw08LO.mjs").then((n) => n.n);
|
|
716
716
|
const repo = new ContentRepository(dbInstance);
|
|
717
717
|
const item = await repo.findByIdOrSlug(type, id);
|
|
718
718
|
if (!item) return {
|
|
@@ -780,8 +780,8 @@ async function resolveDinewayPath(path) {
|
|
|
780
780
|
const hasDbOverride = !!getRequestContext()?.db && getRequestContext()?.dbIsIsolated !== false;
|
|
781
781
|
let patterns = !hasDbOverride ? cachedUrlPatterns : null;
|
|
782
782
|
if (!patterns) {
|
|
783
|
-
const { getDb } = await import("./loader-
|
|
784
|
-
const { SchemaRegistry } = await import("./registry-
|
|
783
|
+
const { getDb } = await import("./loader-CrVkVaD6.mjs").then((n) => n.i);
|
|
784
|
+
const { SchemaRegistry } = await import("./registry-CdeSHG0k.mjs").then((n) => n.r);
|
|
785
785
|
patterns = (await new SchemaRegistry(await getDb()).listCollections()).filter((collection) => collection.urlPattern).map((collection) => {
|
|
786
786
|
const { regex, paramNames } = patternToRegex(collection.urlPattern);
|
|
787
787
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as publicDiscoveryRulesSchema } from "./public-discovery-CGRirTJH.mjs";
|
|
2
|
-
import { F as cursorPaginationQuery, H as slugPattern, L as httpUrl, R as localeCode, V as roleLevel } from "./content-
|
|
2
|
+
import { F as cursorPaginationQuery, H as slugPattern, L as httpUrl, R as localeCode, V as roleLevel } from "./content-CghEEm3k.mjs";
|
|
3
3
|
import { t as isSafeHref } from "./url--_ukDIsN.mjs";
|
|
4
4
|
import { n as isTerminalStatus, t as REDIRECT_RULE_STATUSES } from "./status-CDqWWt6i.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -6,7 +6,7 @@ import { n as contentLocaleUpdatedIndexName, t as contentLocaleCreatedIndexName
|
|
|
6
6
|
import { a as RESERVED_COLLECTION_SLUGS, o as RESERVED_FIELD_SLUGS, r as FIELD_TYPE_TO_COLUMN } from "./types-BgUxCuwu.mjs";
|
|
7
7
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Bb56aCtB.mjs";
|
|
8
8
|
import { t as buildStableHash } from "./stable-hash-9RDJgfif.mjs";
|
|
9
|
-
import { a as markContentMediaUsageCollectionStaleSafely, n as deleteContentMediaUsageCollection } from "./content-refresh-
|
|
9
|
+
import { a as markContentMediaUsageCollectionStaleSafely, n as deleteContentMediaUsageCollection } from "./content-refresh-lqCnhHGP.mjs";
|
|
10
10
|
import { r as parseSearchConfig, t as FTSManager } from "./fts-manager-BHwhq1lC.mjs";
|
|
11
11
|
import { t as parsePublicDiscoveryRules } from "./public-discovery-CGRirTJH.mjs";
|
|
12
12
|
import { sql } from "kysely";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as migrateD1, t as MIGRATION_NAMES } from "./runner-CuG8o1uW.mjs";
|
|
2
2
|
import { atomicBatch, ensureAtomicBatchSchema, isD1Database } from "./database/batch.mjs";
|
|
3
3
|
import { t as pluginMigrationTableNames } from "./migrations-DTCIQJ2_.mjs";
|
|
4
|
-
import { n as d1ReleaseRevision } from "./state-
|
|
4
|
+
import { n as d1ReleaseRevision } from "./state-LzJZ7qpq.mjs";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { CompiledQuery, sql } from "kysely";
|
|
7
7
|
|
|
@@ -1,34 +1,55 @@
|
|
|
1
1
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
2
|
-
import { a as validateContentStorage, i as resolveContentPartition, n as contentDigest, o as ContentStorageError, t as canonicalContentJson } from "./config
|
|
3
|
-
import {
|
|
4
|
-
import { n as readRevisionDataBatch, r as storedRevisionIndex } from "./revisions-
|
|
5
|
-
import { t as ContentRepository } from "./content-
|
|
6
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
7
|
-
import { i as contentWriteConfiguration, k as snapshotPartitionDependencies } from "./content-write-
|
|
8
|
-
import { a as contentVersionSchema } from "./version-store-
|
|
9
|
-
import { a as contentItemSchema } from "./content-
|
|
2
|
+
import { a as validateContentStorage, i as resolveContentPartition, n as contentDigest, o as ContentStorageError, t as canonicalContentJson } from "./config-BhQacL9l.mjs";
|
|
3
|
+
import { _ as prepareContentProjection, b as contentChangeSequence, d as cancelContentMigration, g as contentProjectionValues, h as assertContentIndexFields, i as getContentStorage, m as readContentPartitionRoute, x as prepareContentChangeJournal } from "./runtime-CeGWfwh3.mjs";
|
|
4
|
+
import { n as readRevisionDataBatch, r as storedRevisionIndex } from "./revisions-DG2-WBDb.mjs";
|
|
5
|
+
import { t as ContentRepository } from "./content-CIWw08LO.mjs";
|
|
6
|
+
import { o as invalidateCollectionCache } from "./object-cache-DRx6IjWR.mjs";
|
|
7
|
+
import { i as contentWriteConfiguration, k as snapshotPartitionDependencies } from "./content-write-BjTJiZhK.mjs";
|
|
8
|
+
import { a as contentVersionSchema } from "./version-store-xhBmPoC-.mjs";
|
|
9
|
+
import { a as contentItemSchema } from "./content-CghEEm3k.mjs";
|
|
10
10
|
import { sql } from "kysely";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/content-storage/config-migration.ts
|
|
14
|
+
function referenceLayout(config) {
|
|
15
|
+
return Object.fromEntries(Object.entries(config.rules).map(([collection, rule]) => {
|
|
16
|
+
const key = rule.partitionBy;
|
|
17
|
+
if (!("references" in key) || !key.references) return [collection, rule];
|
|
18
|
+
const references = Object.fromEntries(Object.entries(key.references).map(([name, reference]) => {
|
|
19
|
+
const { fields: _fields, ...dependency } = reference;
|
|
20
|
+
return [name, dependency];
|
|
21
|
+
}));
|
|
22
|
+
return [collection, {
|
|
23
|
+
...rule,
|
|
24
|
+
partitionBy: {
|
|
25
|
+
...key,
|
|
26
|
+
references
|
|
27
|
+
}
|
|
28
|
+
}];
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
14
31
|
function dataLayout(config) {
|
|
15
32
|
return canonicalContentJson({
|
|
16
33
|
version: config.version,
|
|
17
|
-
rules: config
|
|
34
|
+
rules: referenceLayout(config),
|
|
18
35
|
stores: Object.fromEntries(Object.entries(config.stores).map(([name, { provider, identity }]) => [name, {
|
|
19
36
|
provider,
|
|
20
37
|
identity
|
|
21
38
|
}]))
|
|
22
39
|
});
|
|
23
40
|
}
|
|
24
|
-
/**
|
|
41
|
+
/** Explicitly stage compatible bindings or a resolver input projection with the same routing contract. */
|
|
25
42
|
async function stageContentStorageBindings(db, previous, next) {
|
|
26
43
|
validateContentStorage(previous);
|
|
27
44
|
validateContentStorage(next);
|
|
28
45
|
if (dataLayout(previous) !== dataLayout(next)) throw new ContentStorageError("INVALID_CONFIG", "Changing database bindings must preserve the Content type rules, physical stores and routing version.");
|
|
29
46
|
const before = await contentDigest(previous), after = await contentDigest(next);
|
|
30
47
|
await atomicBatch(db, {
|
|
31
|
-
checks: [
|
|
48
|
+
checks: [
|
|
49
|
+
sql`EXISTS (SELECT 1 FROM _dineway_content_storage_config WHERE id='active' AND version=${previous.version} AND digest IN (${before},${after}))`,
|
|
50
|
+
sql`NOT EXISTS (SELECT 1 FROM _dineway_content_storage_config WHERE id='bindings' AND digest<>${after})`,
|
|
51
|
+
...canonicalContentJson(previous.rules) === canonicalContentJson(next.rules) ? [] : [sql`NOT EXISTS (SELECT 1 FROM _dineway_content_partitions WHERE state<>'active')`, sql`NOT EXISTS (SELECT 1 FROM _dineway_content_operations WHERE state='pending')`]
|
|
52
|
+
],
|
|
32
53
|
statements: [sql`INSERT INTO _dineway_content_storage_config (id,version,digest) SELECT 'bindings',version,${after} FROM _dineway_content_storage_config WHERE id='active' AND digest<>${after} ON CONFLICT(id) DO NOTHING`.compile(db)]
|
|
33
54
|
});
|
|
34
55
|
}
|
|
@@ -594,4 +615,43 @@ async function rollbackContentMigration(db, migration, archive) {
|
|
|
594
615
|
}
|
|
595
616
|
|
|
596
617
|
//#endregion
|
|
597
|
-
|
|
618
|
+
//#region src/content-storage/retention.ts
|
|
619
|
+
/** Read-only inventory. A page is an observation, never a deletion authorization. */
|
|
620
|
+
async function inventoryContentVersions(primary, physical, store, collection, after = 0, limit = 50, now = /* @__PURE__ */ new Date()) {
|
|
621
|
+
if (!Number.isSafeInteger(after) || after < 0 || !Number.isInteger(limit) || limit < 1 || limit > 100) throw new ContentStorageError("INVALID_CONFIG", "Select a valid version inventory page.");
|
|
622
|
+
if (!(await sql`SELECT physical_schema FROM _dineway_content_store_collections WHERE collection=${collection}`.execute(physical)).rows[0]) throw new ContentStorageError("INVALID_CONFIG", "Unknown physical content type.");
|
|
623
|
+
const sizes = [...(await sql`SELECT name FROM pragma_table_info(${"ec_" + collection})`.execute(physical)).rows.map(({ name }) => sql`coalesce(length(CAST(${sql.ref("c." + name)} AS BLOB)),0)`), ...[
|
|
624
|
+
"collection",
|
|
625
|
+
"entry_id",
|
|
626
|
+
"version",
|
|
627
|
+
"operation_id",
|
|
628
|
+
"digest",
|
|
629
|
+
"command",
|
|
630
|
+
"data",
|
|
631
|
+
"created_at"
|
|
632
|
+
].map((key) => sql`length(CAST(${sql.ref("v." + key)} AS BLOB))`)];
|
|
633
|
+
const groups = Array.from({ length: Math.ceil(sizes.length / 12) }, (_, i) => sql`(${sql.join(sizes.slice(i * 12, i * 12 + 12), sql` + `)})`);
|
|
634
|
+
const rows = (await sql`SELECT v.rowid AS cursor,v.entry_id,v.version,json_extract(v.command,'$.partition') AS partition,v.created_at,
|
|
635
|
+
${sql.join(groups, sql` + `)} AS payload_bytes FROM _dineway_content_versions v
|
|
636
|
+
JOIN ${sql.table("ec_" + collection)} c ON c.id=v.entry_id AND c._dineway_storage_version=v.version
|
|
637
|
+
WHERE v.collection=${collection} AND v.rowid>${after} ORDER BY v.rowid LIMIT ${limit}`.execute(physical)).rows;
|
|
638
|
+
const cutoff = (/* @__PURE__ */ new Date(now.getTime() - 7 * 864e5)).toISOString();
|
|
639
|
+
return {
|
|
640
|
+
store,
|
|
641
|
+
collection,
|
|
642
|
+
versions: (await sql`
|
|
643
|
+
WITH candidate AS (SELECT value AS v FROM json_each(${JSON.stringify(rows)})),
|
|
644
|
+
page AS (SELECT json_extract(v,'$.cursor') AS cursor,json_extract(v,'$.entry_id') AS entry_id,json_extract(v,'$.version') AS version,
|
|
645
|
+
json_extract(v,'$.partition') AS partition,json_extract(v,'$.created_at') AS created_at,json_extract(v,'$.payload_bytes') AS payload_bytes FROM candidate)
|
|
646
|
+
SELECT p.*,CASE WHEN EXISTS(SELECT 1 FROM _dineway_content_locations l WHERE l.collection=${collection} AND l.entry_id=p.entry_id AND l.store=${store} AND l.version=p.version)
|
|
647
|
+
OR EXISTS(SELECT 1 FROM revisions r WHERE r.collection=${collection} AND r.entry_id=p.entry_id AND json_extract(r.data,'$.__dineway_content_storage__.store')=${store} AND json_extract(r.data,'$.__dineway_content_storage__.version')=p.version) THEN 'referenced'
|
|
648
|
+
WHEN p.created_at>=${cutoff} OR EXISTS(SELECT 1 FROM _dineway_content_changes j WHERE j.collection=${collection} AND j.entry_id=p.entry_id AND j.changed_at>=${cutoff})
|
|
649
|
+
OR EXISTS(SELECT 1 FROM _dineway_content_operations o WHERE o.collection=${collection} AND o.entry_id=p.entry_id AND o.state='pending')
|
|
650
|
+
OR EXISTS(SELECT 1 FROM _dineway_content_migrations m WHERE m.collection=${collection} AND m.partition=p.partition AND (m.state NOT IN ('complete','cancelled') OR m.retain_until>=${now.toISOString()} OR m.updated_at>=${cutoff}))
|
|
651
|
+
THEN 'retained' ELSE 'review' END AS disposition FROM page p ORDER BY p.cursor`.execute(primary)).rows,
|
|
652
|
+
nextCursor: rows.length === limit ? rows.at(-1).cursor : null
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
//#endregion
|
|
657
|
+
export { stageContentMigrationEntry as a, bootstrapContentDirectoryPage as c, migrateContentStorageConfig as d, stageContentStorageBindings as f, rollbackContentMigration as i, captureContentMigrationSnapshot as l, activateContentMigrationEntry as n, verifyContentMigration as o, completeContentMigration as r, verifyContentMigrationPage as s, inventoryContentVersions as t, contentMigrationSnapshotSchema as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as RejectedReviewContentError, r as ReviewRequestRepository } from "./review-requests-DZYM51yI.mjs";
|
|
2
|
-
import { r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-
|
|
2
|
+
import { r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-_6ZXKy3N.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/review-requests.ts
|
|
5
5
|
async function handleReviewRequestCreate(db, handlers, input) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { atomicBatch } from "./database/batch.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { n as readRevisionDataBatch, t as readRevisionData } from "./revisions-
|
|
3
|
+
import { f as contentPartitionWritable, i as getContentStorage } from "./runtime-CeGWfwh3.mjs";
|
|
4
|
+
import { n as readRevisionDataBatch, t as readRevisionData } from "./revisions-DG2-WBDb.mjs";
|
|
5
5
|
import { t as DinewayValidationError } from "./types-BI3ULB3A.mjs";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
import { monotonicFactory } from "ulidx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ContentStorageError } from "./config
|
|
2
|
-
import {
|
|
1
|
+
import { o as ContentStorageError } from "./config-BhQacL9l.mjs";
|
|
2
|
+
import { i as getContentStorage } from "./runtime-CeGWfwh3.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/content-storage/revisions.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AtomicBatch } from "./database/batch.mjs";
|
|
2
|
-
import { a as ContentStorageActivation, d as ContentStore, p as PreparedContentVersion, r as ContentPartitionResolver, s as ContentStorageConfig, t as ContentLocation } from "./types-
|
|
2
|
+
import { a as ContentStorageActivation, d as ContentStore, p as PreparedContentVersion, r as ContentPartitionResolver, s as ContentStorageConfig, t as ContentLocation } from "./types-BafdCfKt.mjs";
|
|
3
3
|
import { n as ContentStorageHookName, r as ContentStorageHookTarget } from "./hook-events-lN-kz-4_.mjs";
|
|
4
4
|
import { Kysely } from "kysely";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getRequestContext } from "./request-context.mjs";
|
|
2
2
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
3
|
-
import { a as validateContentStorage, i as resolveContentPartition, n as contentDigest, o as ContentStorageError, s as ContentStorageReplay, t as canonicalContentJson } from "./config
|
|
3
|
+
import { a as validateContentStorage, i as resolveContentPartition, n as contentDigest, o as ContentStorageError, s as ContentStorageReplay, t as canonicalContentJson } from "./config-BhQacL9l.mjs";
|
|
4
4
|
import { sql } from "kysely";
|
|
5
5
|
import { toPlainText } from "@portabletext/toolkit";
|
|
6
6
|
|
|
@@ -525,6 +525,17 @@ function getContentStorage(db, collection) {
|
|
|
525
525
|
coordinator: new ContentStorageCoordinator(db, runtime.config, stores, runtime.resolvers)
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
|
+
/** Predicates run on the primary index before stored bodies are hydrated. */
|
|
529
|
+
async function assertContentQueryFields(db, collection, fields) {
|
|
530
|
+
const rule = getContentStorageRuntime(db)?.config.rules[collection];
|
|
531
|
+
if (!rule) return;
|
|
532
|
+
const candidates = [...new Set(fields)].filter((field) => !CONTENT_SYSTEM_FIELDS.has(field) && !rule.indexFields?.includes(field));
|
|
533
|
+
if (!candidates.length) return;
|
|
534
|
+
const { rows } = await sql`SELECT f.slug FROM _dineway_fields f JOIN _dineway_collections c ON c.id=f.collection_id
|
|
535
|
+
WHERE c.slug=${collection} AND f.column_type='JSON' AND coalesce(f."unique",0)=0 AND coalesce(f.searchable,0)=0
|
|
536
|
+
AND f.slug IN (SELECT value FROM json_each(${JSON.stringify(candidates)})) LIMIT 1`.execute(db);
|
|
537
|
+
if (rows[0]) throw new ContentStorageError("INVALID_CONFIG", `Querying ${collection}.${rows[0].slug} requires a primary index field.`);
|
|
538
|
+
}
|
|
528
539
|
/** Resolve a bounded primary-index page in bulk, retaining the selected metadata and order. */
|
|
529
540
|
async function hydrateContentRows(db, collection, rows, fields, publicLoaderRead = false) {
|
|
530
541
|
const storage = getContentStorage(db, collection);
|
|
@@ -534,6 +545,10 @@ async function hydrateContentRows(db, collection, rows, fields, publicLoaderRead
|
|
|
534
545
|
const locations = [];
|
|
535
546
|
for (let offset = 0; offset < ids.length; offset += 80) {
|
|
536
547
|
const result = await sql`SELECT l.collection, l.entry_id, l.store, l.partition, l.routing_version, l.version, l.digest, c.version AS _entry_version, c.updated_at AS _entry_updated_at, c.status AS _entry_status, c.deleted_at AS _entry_deleted_at FROM _dineway_content_locations l JOIN ${sql.table(`ec_${collection}`)} c ON c.id = l.entry_id WHERE l.collection = ${collection} AND l.entry_id IN (${sql.join(ids.slice(offset, offset + 80))})`.execute(db);
|
|
548
|
+
if (result.rows.length !== ids.slice(offset, offset + 80).length) {
|
|
549
|
+
const { rows: routed } = await sql`SELECT 1 FROM _dineway_content_partitions WHERE collection=${collection} AND (store<>'primary' OR state='frozen') LIMIT 1`.execute(db);
|
|
550
|
+
if (routed.length) throw new ContentStorageError("UNAVAILABLE", "The content directory is missing a routed entry. Verify its location before retrying.");
|
|
551
|
+
}
|
|
537
552
|
for (const location of result.rows) {
|
|
538
553
|
const previous = byId.get(location.entry_id);
|
|
539
554
|
if (previous.version !== location._entry_version || [
|
|
@@ -599,4 +614,4 @@ async function hydrateContentRows(db, collection, rows, fields, publicLoaderRead
|
|
|
599
614
|
}
|
|
600
615
|
|
|
601
616
|
//#endregion
|
|
602
|
-
export {
|
|
617
|
+
export { prepareContentProjection as _, getContentStorageRuntime as a, contentChangeSequence as b, ContentStorageCoordinator as c, cancelContentMigration as d, contentPartitionWritable as f, contentProjectionValues as g, assertContentIndexFields as h, getContentStorage as i, installContentStorageConfig as l, readContentPartitionRoute as m, assertContentStorageConfiguration as n, hydrateContentRows as o, freezeContentPartition as p, contentStorageCacheScope as r, registerContentStorage as s, assertContentQueryFields as t, beginContentMigration as u, extractPlainText as v, prepareContentChangeJournal as x, extractSearchableFields as y };
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { $s as getDb, Js as EntryData, Qs as dinewayLoader, Ys as EntryFilter, qs as CollectionFilter } from "./types-
|
|
1
|
+
import { $s as getDb, Js as EntryData, Qs as dinewayLoader, Ys as EntryFilter, qs as CollectionFilter } from "./types-CTbitmIM.mjs";
|
|
2
2
|
import "./types-CG9uGPBL.mjs";
|
|
3
3
|
import "./runner-DlkOiguI.mjs";
|
|
4
4
|
import "./index-_fCUsJx9.mjs";
|
|
5
|
-
import "./types-
|
|
5
|
+
import "./types-BafdCfKt.mjs";
|
|
6
6
|
import "./types-DLwh1QkC.mjs";
|
|
7
7
|
import "./adapters-cL325h6c.mjs";
|
|
8
|
-
import "./runtime-
|
|
8
|
+
import "./runtime-BEiDcRPk.mjs";
|
|
9
9
|
import "./hook-events-lN-kz-4_.mjs";
|
|
10
10
|
import "./scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "./public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "./validate-CleBZbkv.mjs";
|
|
13
|
-
import "./byline-fields-
|
|
13
|
+
import "./byline-fields-B117F62r.mjs";
|
|
14
14
|
import { withPrimaryDatabase } from "./request-context.mjs";
|
|
15
15
|
import "./types-BuplUVZ4.mjs";
|
|
16
16
|
import { t as getMediaProvider } from "./provider-loader-Dl8SscrT.mjs";
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { withPrimaryDatabase } from "./request-context.mjs";
|
|
2
2
|
import "./d1-binding-DrLMBUxu.mjs";
|
|
3
3
|
import "./dialect-helpers-C6xtO-Ui.mjs";
|
|
4
|
-
import "./config
|
|
5
|
-
import "./runtime-
|
|
6
|
-
import "./revisions-
|
|
4
|
+
import "./config-BhQacL9l.mjs";
|
|
5
|
+
import "./runtime-CeGWfwh3.mjs";
|
|
6
|
+
import "./revisions-DG2-WBDb.mjs";
|
|
7
7
|
import "./runtime-env-DpYGy4pT.mjs";
|
|
8
8
|
import "./base64-qvSs0Gxy.mjs";
|
|
9
9
|
import "./types-BI3ULB3A.mjs";
|
|
10
|
-
import { n as dinewayLoader, r as getDb } from "./loader-
|
|
10
|
+
import { n as dinewayLoader, r as getDb } from "./loader-CrVkVaD6.mjs";
|
|
11
11
|
import { t as getMediaProvider } from "./provider-loader-BWu5kGxR.mjs";
|
|
12
12
|
|
|
13
13
|
export { dinewayLoader, getDb, getMediaProvider, withPrimaryDatabase };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
2
|
-
import { n as SchemaRegistry } from "./registry-
|
|
2
|
+
import { n as SchemaRegistry } from "./registry-CdeSHG0k.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/schema/index.ts
|
|
5
5
|
var schema_exports = /* @__PURE__ */ __exportAll({ SchemaRegistry: () => SchemaRegistry });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
|
-
import { r as getDb } from "./loader-
|
|
3
|
+
import { r as getDb } from "./loader-CrVkVaD6.mjs";
|
|
4
4
|
import { t as FTSManager } from "./fts-manager-BHwhq1lC.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
|