dineway 0.1.16 → 0.1.18
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 +22 -0
- package/dist/api/route-utils.d.mts +1 -1
- package/dist/api/route-utils.mjs +4 -4
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-B5xMY72-.mjs → api-KH2L2uKb.mjs} +11 -11
- package/dist/{apply-CGVHi2r7.mjs → apply-Wyg77UOb.mjs} +13 -13
- package/dist/astro/index.d.mts +1 -1
- package/dist/astro/index.mjs +6 -2
- package/dist/astro/middleware/auth.d.mts +1 -1
- package/dist/astro/middleware/auth.mjs +1 -1
- package/dist/astro/middleware/redirect.mjs +3 -3
- package/dist/astro/middleware/request-context.mjs +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +47 -47
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +3 -3
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +3 -3
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +1 -1
- package/dist/astro/routes/api/admin/briefing.mjs +10 -10
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +6 -6
- package/dist/astro/routes/api/admin/bylines/index.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/bulk.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/index.mjs +3 -3
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +13 -13
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +13 -13
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +15 -15
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +15 -15
- package/dist/astro/routes/api/admin/context/diff.mjs +15 -15
- package/dist/astro/routes/api/admin/context/index.mjs +15 -15
- package/dist/astro/routes/api/admin/context/stale.mjs +15 -15
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +14 -14
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +16 -16
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +16 -16
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +13 -13
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +29 -29
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +29 -29
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +29 -29
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +29 -29
- package/dist/astro/routes/api/admin/plugins/index.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +29 -29
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/updates.mjs +26 -26
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +15 -15
- package/dist/astro/routes/api/admin/review-requests/index.mjs +4 -4
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +26 -26
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +26 -26
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/users/index.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/complete.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/index.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/register-options.mjs +4 -4
- package/dist/astro/routes/api/auth/magic-link/send.mjs +3 -3
- package/dist/astro/routes/api/auth/me.mjs +3 -3
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/verify.mjs +5 -5
- package/dist/astro/routes/api/auth/signup/complete.mjs +5 -5
- package/dist/astro/routes/api/auth/signup/request.mjs +3 -3
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +15 -15
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/index.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/trash.mjs +3 -3
- package/dist/astro/routes/api/dashboard.mjs +1 -1
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress/execute.mjs +15 -15
- package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +19 -19
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +17 -17
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +18 -18
- package/dist/astro/routes/api/manifest.mjs +3 -3
- package/dist/astro/routes/api/mcp.mjs +38 -38
- package/dist/astro/routes/api/media/_id_/confirm.mjs +3 -3
- package/dist/astro/routes/api/media/_id_.mjs +3 -3
- package/dist/astro/routes/api/media/upload-url.mjs +5 -5
- package/dist/astro/routes/api/media.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/items/_id_.d.mts +8 -0
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +127 -0
- package/dist/astro/routes/api/menus/_name_/items.d.mts +1 -3
- package/dist/astro/routes/api/menus/_name_/items.mjs +17 -108
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +16 -16
- package/dist/astro/routes/api/menus/_name_/translations.mjs +16 -16
- package/dist/astro/routes/api/menus/_name_.mjs +16 -16
- package/dist/astro/routes/api/menus/index.mjs +16 -16
- package/dist/astro/routes/api/oauth/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/authorize.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/code.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/token.mjs +2 -2
- package/dist/astro/routes/api/oauth/register.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/refresh.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/revoke.mjs +2 -2
- package/dist/astro/routes/api/oauth/token.mjs +3 -3
- package/dist/astro/routes/api/openapi.json.mjs +26 -26
- package/dist/astro/routes/api/redirects/404s/index.mjs +5 -5
- package/dist/astro/routes/api/redirects/404s/summary.mjs +5 -5
- package/dist/astro/routes/api/redirects/_id_.mjs +17 -17
- package/dist/astro/routes/api/redirects/index.mjs +17 -17
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +26 -26
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +26 -26
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +26 -26
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +26 -26
- package/dist/astro/routes/api/schema/collections/index.mjs +26 -26
- package/dist/astro/routes/api/schema/index.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +26 -26
- package/dist/astro/routes/api/schema/orphans/index.mjs +26 -26
- 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 +3 -3
- package/dist/astro/routes/api/search/suggest.mjs +6 -6
- package/dist/astro/routes/api/sections/_slug_.mjs +16 -16
- package/dist/astro/routes/api/sections/index.mjs +16 -16
- package/dist/astro/routes/api/settings.mjs +16 -16
- package/dist/astro/routes/api/setup/admin-verify.mjs +6 -6
- package/dist/astro/routes/api/setup/admin.mjs +4 -4
- package/dist/astro/routes/api/setup/dev-bypass.mjs +11 -11
- package/dist/astro/routes/api/setup/index.mjs +15 -15
- 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 +18 -18
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +18 -18
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +18 -18
- package/dist/astro/routes/api/taxonomies/index.mjs +18 -18
- package/dist/astro/routes/api/themes/preview.mjs +1 -1
- package/dist/astro/routes/api/typegen.mjs +3 -3
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +15 -15
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +16 -16
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +16 -16
- package/dist/astro/routes/api/widget-areas/_name_.mjs +14 -14
- package/dist/astro/routes/api/widget-areas/index.mjs +16 -16
- package/dist/astro/routes/robots.txt.mjs +3 -3
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +4 -4
- package/dist/astro/routes/sitemap.xml.mjs +4 -4
- package/dist/astro/types.d.mts +1 -1
- package/dist/{briefing-4k6R0KAr.mjs → briefing-Dk4I4VC8.mjs} +3 -3
- package/dist/{briefing-DM7e2yd3.mjs → briefing-PFT3T6KW.mjs} +1 -1
- package/dist/{byline-BxAf79s1.mjs → byline-9WeA8b0a.mjs} +1 -1
- package/dist/{bylines-DhCnhR70.mjs → bylines-B6QpwVAr.mjs} +2 -2
- package/dist/{bylines-DE9bfDur.d.mts → bylines-BK9FyU4A.d.mts} +70 -59
- package/dist/{cache-inQvbrP5.mjs → cache-BhJYDPP8.mjs} +1 -1
- package/dist/cli/index.mjs +13 -13
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{context-CGbVhAmd.mjs → context-93X6MFTb.mjs} +2 -2
- package/dist/{context-CT44ux1O.mjs → context-DRq-f4sM.mjs} +2 -2
- package/dist/{device-flow-DaTBhALC.mjs → device-flow-urJvDoBx.mjs} +2 -2
- package/dist/{hitl-requests-CUnch_4e.mjs → hitl-requests-DBcruTcs.mjs} +2 -2
- package/dist/{hitl-route-helpers-DcUCm57p.mjs → hitl-route-helpers-Dwo_LjhN.mjs} +2 -2
- package/dist/{import-BVqG28WP.mjs → import-B8lnqfnN.mjs} +1 -1
- package/dist/{import-DE2ziezs.mjs → import-BO_gy5vZ.mjs} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +41 -41
- package/dist/{jsonld-BjsoTL5m.d.mts → jsonld-CvXmIBls.d.mts} +2 -2
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +1 -1
- package/dist/{media-allowlist-eS3AZ2L_.mjs → media-allowlist-vdlqBR-8.mjs} +1 -1
- package/dist/{menus-BDW1yIdj.mjs → menus-BTOa-tsI.mjs} +3 -3
- package/dist/menus-DXaFTRyU.mjs +720 -0
- package/dist/{oauth-authorization-DcYRiDfi.mjs → oauth-authorization-BZSOekHq.mjs} +2 -2
- package/dist/{oauth-clients-CgKFA-VH.mjs → oauth-clients-CqAi-6Y4.mjs} +1 -1
- package/dist/page/index.d.mts +1 -1
- package/dist/page/index.mjs +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +1 -1
- package/dist/{plugins-DKceDtUM.mjs → plugins-CxUx-b5a.mjs} +1 -1
- package/dist/{query-BtuwuZRd.mjs → query-CH1GaJmt.mjs} +3 -3
- package/dist/{query-CWPxZjGM.mjs → query-TQqoOaxy.mjs} +7 -7
- package/dist/{redirect-BHo9--Jz.mjs → redirect-hKO66LS_.mjs} +1 -1
- package/dist/{redirects-xVDvj_yQ.mjs → redirects-BO0fI750.mjs} +30 -22
- package/dist/{redirects-Bc40BgxA.mjs → redirects-CvIzUvek.mjs} +3 -3
- package/dist/{registry-DumDzFDn.mjs → registry-CYO6XQ-4.mjs} +3 -3
- package/dist/runtime.d.mts +2 -2
- package/dist/runtime.mjs +1 -1
- package/dist/{schema-D1z41cq_.mjs → schema-mjeMcn_6.mjs} +1 -1
- package/dist/{search-CPcQGTHW.mjs → search-vzCYAk0F.mjs} +2 -2
- package/dist/{sections-B9RYyf3I.mjs → sections-DA3GMhNG.mjs} +1 -1
- package/dist/seed/index.mjs +11 -11
- package/dist/{seo-BPz1KkCq.mjs → seo-DASNc4gD.mjs} +1 -1
- package/dist/{seo-contributions-CQzUjJKY.mjs → seo-contributions-BG4TtU7H.mjs} +5 -5
- package/dist/{settings-BGCo_c2y.mjs → settings-BJW_lmrM.mjs} +1 -1
- package/dist/{settings-qPzY2KIF.mjs → settings-D2k1JraC.mjs} +13 -2
- package/dist/{site-context-DHRIU6x9.mjs → site-context-Rwm9auhW.mjs} +8 -8
- package/dist/{ssrf-BOSGjXxb.mjs → ssrf-z3oH8wjK.mjs} +4 -4
- package/dist/{taxonomies-aQXvYVPm.mjs → taxonomies-CagluJHp.mjs} +2 -2
- package/dist/{taxonomies-BWmxbumf.mjs → taxonomies-DPNIwTGk.mjs} +4 -4
- package/dist/{taxonomy-DI-0HgKe.mjs → taxonomy-DpXdVSSR.mjs} +1 -1
- package/dist/ui/server-runtime.d.mts +2 -2
- package/dist/ui/server-runtime.mjs +11 -11
- package/dist/{validate-B8ZvLeOE.mjs → validate-CaKEnLed.mjs} +1 -1
- package/dist/version-qhU-AiPQ.mjs +6 -0
- package/dist/{widgets-Cce2-2fM.mjs → widgets-D7UK-2hW.mjs} +1 -1
- package/dist/{wordpress-slugs-C4EhE6fo.mjs → wordpress-slugs-Bnf3-sf8.mjs} +1 -1
- package/dist/{zod-generator-BKhtHT3e.mjs → zod-generator-vOxhed6n.mjs} +1 -1
- package/package.json +7 -6
- package/src/components/DinewayHead.astro +11 -3
- package/dist/menus-CwI7DQJ5.mjs +0 -569
- package/dist/version-HdNieFOD.mjs +0 -6
- /package/dist/{allowed-origins-D85wzUp6.mjs → allowed-origins-46RONHY3.mjs} +0 -0
- /package/dist/{challenge-store-anhwVER0.mjs → challenge-store-B9odzfeh.mjs} +0 -0
- /package/dist/{chunks-vkrCT4Ta.mjs → chunks-BjOMG4LF.mjs} +0 -0
- /package/dist/{context-types-DuiyY6xF.mjs → context-types-BWspNMDr.mjs} +0 -0
- /package/dist/{dashboard-6gH7SlPM.mjs → dashboard-DdqRifyu.mjs} +0 -0
- /package/dist/{experimental-workflows-CSRjuEwS.mjs → experimental-workflows-C7o_9V7S.mjs} +0 -0
- /package/dist/{fts-manager-D7KVeBmg.mjs → fts-manager-DYRy6HVi.mjs} +0 -0
- /package/dist/{hash-V8oZo1W2.mjs → hash-DHSsP6_G.mjs} +0 -0
- /package/dist/{loader-CQFxFOt1.mjs → loader-dt5DoyI1.mjs} +0 -0
- /package/dist/{mime-DJOFDGux.mjs → mime-DltzYYAL.mjs} +0 -0
- /package/dist/{mode-DWw2di1I.mjs → mode-BI1kRvlT.mjs} +0 -0
- /package/dist/{normalize-9GU-bv_T.mjs → normalize-ba36HTxZ.mjs} +0 -0
- /package/dist/{patterns-CW4n2PQs.mjs → patterns-BKmjvM7K.mjs} +0 -0
- /package/dist/{placeholder-BJPmhjHP.mjs → placeholder-BAy3k441.mjs} +0 -0
- /package/dist/{provider-loader-D0F6E2qv.d.mts → provider-loader-BPhii_3H.d.mts} +0 -0
- /package/dist/{request-cache-DmVyQUBh.mjs → request-cache-BzuhyUXj.mjs} +0 -0
- /package/dist/{review-requests-vCw7_3DS.mjs → review-requests-CO-vO0O0.mjs} +0 -0
- /package/dist/{secrets-AFKoqUXj.mjs → secrets-BIrqds5c.mjs} +0 -0
- /package/dist/{seo-DJoop90w.mjs → seo-Dl4QE4El.mjs} +0 -0
- /package/dist/{setup-complete-4EiBS1E5.mjs → setup-complete-DzOSuHUM.mjs} +0 -0
- /package/dist/{transport-CyOHECBA.d.mts → transport-DA3H3xB4.d.mts} +0 -0
- /package/dist/{types-Dz2EKzsX.mjs → types-zfg8SDVI.mjs} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../../context-types-
|
|
2
|
+
import "../../../../../../context-types-BWspNMDr.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-Dyf9fGZE.mjs";
|
|
4
4
|
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse-BBfZRZYb.mjs";
|
|
5
|
-
import "../../../../../../redirects-
|
|
6
|
-
import { p as passkeyRegisterOptionsBody } from "../../../../../../import-
|
|
5
|
+
import "../../../../../../redirects-BO0fI750.mjs";
|
|
6
|
+
import { p as passkeyRegisterOptionsBody } from "../../../../../../import-BO_gy5vZ.mjs";
|
|
7
7
|
import "../../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../../public-url-5fFLJhjh.mjs";
|
|
9
|
-
import { n as createChallengeStore } from "../../../../../../challenge-store-
|
|
9
|
+
import { n as createChallengeStore } from "../../../../../../challenge-store-B9odzfeh.mjs";
|
|
10
10
|
import { t as getPasskeyConfig } from "../../../../../../passkey-config-DZOjt0Hd.mjs";
|
|
11
11
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
12
12
|
import { generateRegistrationOptions } from "@dineway-ai/auth/passkey";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../../context-types-
|
|
2
|
+
import "../../../../../../context-types-BWspNMDr.mjs";
|
|
3
3
|
import { n as apiSuccess, t as apiError } from "../../../../../../error-Dyf9fGZE.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../../parse-BBfZRZYb.mjs";
|
|
5
|
-
import "../../../../../../redirects-
|
|
6
|
-
import { m as passkeyRegisterVerifyBody } from "../../../../../../import-
|
|
5
|
+
import "../../../../../../redirects-BO0fI750.mjs";
|
|
6
|
+
import { m as passkeyRegisterVerifyBody } from "../../../../../../import-BO_gy5vZ.mjs";
|
|
7
7
|
import "../../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../../public-url-5fFLJhjh.mjs";
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../../challenge-store-
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../../allowed-origins-46RONHY3.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../../challenge-store-B9odzfeh.mjs";
|
|
11
11
|
import { t as getPasskeyConfig } from "../../../../../../passkey-config-DZOjt0Hd.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { registerPasskey, verifyRegistrationResponse } from "@dineway-ai/auth/passkey";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
2
|
+
import "../../../../../context-types-BWspNMDr.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { g as passkeyVerifyBody } from "../../../../../import-
|
|
5
|
+
import "../../../../../redirects-BO0fI750.mjs";
|
|
6
|
+
import { g as passkeyVerifyBody } from "../../../../../import-BO_gy5vZ.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../public-url-5fFLJhjh.mjs";
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-46RONHY3.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-B9odzfeh.mjs";
|
|
11
11
|
import { t as getPasskeyConfig } from "../../../../../passkey-config-DZOjt0Hd.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { PasskeyAuthenticationError, authenticateWithPasskey } from "@dineway-ai/auth/passkey";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
2
|
+
import "../../../../../context-types-BWspNMDr.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { _ as signupCompleteBody } from "../../../../../import-
|
|
5
|
+
import "../../../../../redirects-BO0fI750.mjs";
|
|
6
|
+
import { _ as signupCompleteBody } from "../../../../../import-BO_gy5vZ.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../public-url-5fFLJhjh.mjs";
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-46RONHY3.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-B9odzfeh.mjs";
|
|
11
11
|
import { t as getPasskeyConfig } from "../../../../../passkey-config-DZOjt0Hd.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { SignupError, completeSignup } from "@dineway-ai/auth";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
2
|
+
import "../../../../../context-types-BWspNMDr.mjs";
|
|
3
3
|
import { n as apiSuccess, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { v as signupRequestBody } from "../../../../../import-
|
|
5
|
+
import "../../../../../redirects-BO0fI750.mjs";
|
|
6
|
+
import { v as signupRequestBody } from "../../../../../import-BO_gy5vZ.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-8N8sX1D1.mjs";
|
|
9
9
|
import { t as getSiteBaseUrl } from "../../../../../site-url-oyqzZtoL.mjs";
|
|
@@ -3,14 +3,14 @@ import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
|
3
3
|
import "../../../../../../types-D1DjBFA9.mjs";
|
|
4
4
|
import { t as CommentRepository } from "../../../../../../comment-BmJXz3lc.mjs";
|
|
5
5
|
import "../../../../../../options-BF11H_FD.mjs";
|
|
6
|
-
import "../../../../../../context-types-
|
|
6
|
+
import "../../../../../../context-types-BWspNMDr.mjs";
|
|
7
7
|
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-Dyf9fGZE.mjs";
|
|
8
8
|
import { n as parseBody, t as isParseError } from "../../../../../../parse-BBfZRZYb.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import "../../../../../../import-
|
|
9
|
+
import { _t as createCommentBody } from "../../../../../../redirects-BO0fI750.mjs";
|
|
10
|
+
import "../../../../../../import-BO_gy5vZ.mjs";
|
|
11
11
|
import "../../../../../../api/schemas/index.mjs";
|
|
12
12
|
import { t as extractRequestMeta } from "../../../../../../request-meta-BVx9KkL-.mjs";
|
|
13
|
-
import { i as resolveSecretsCached } from "../../../../../../secrets-
|
|
13
|
+
import { i as resolveSecretsCached } from "../../../../../../secrets-BIrqds5c.mjs";
|
|
14
14
|
import { c as hashIp, s as handleCommentList, t as checkRateLimit } from "../../../../../../comments-BW1qFiTa.mjs";
|
|
15
15
|
import { t as getSiteBaseUrl } from "../../../../../../site-url-oyqzZtoL.mjs";
|
|
16
16
|
import { i as sendCommentNotification, t as createComment } from "../../../../../../service-DgiH1Yud.mjs";
|
|
@@ -21,7 +21,7 @@ const POST = async ({ params, locals, cache }) => {
|
|
|
21
21
|
const resolvedId = typeof existingItem?.id === "string" ? existingItem.id : id;
|
|
22
22
|
const result = await dineway.handleContentDiscardDraft(collection, resolvedId);
|
|
23
23
|
if (!result.success) return unwrapResult(result);
|
|
24
|
-
if (cache
|
|
24
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection, resolvedId] });
|
|
25
25
|
await logContentActivity(dineway.db, locals, {
|
|
26
26
|
action: "draft_discarded",
|
|
27
27
|
collection,
|
|
@@ -23,7 +23,7 @@ const POST = async ({ params, locals, cache }) => {
|
|
|
23
23
|
const resolvedId = typeof existingItem?.id === "string" ? existingItem.id : id;
|
|
24
24
|
const result = await dineway.handleContentDuplicate(collection, resolvedId, user?.id);
|
|
25
25
|
if (!result.success) return unwrapResult(result);
|
|
26
|
-
if (cache
|
|
26
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection] });
|
|
27
27
|
await logContentActivity(dineway.db, locals, {
|
|
28
28
|
action: "duplicated",
|
|
29
29
|
collection,
|
|
@@ -16,7 +16,7 @@ const DELETE = async ({ params, locals, cache }) => {
|
|
|
16
16
|
if (!dineway?.handleContentPermanentDelete) return apiError("NOT_CONFIGURED", "Dineway is not initialized", 500);
|
|
17
17
|
const result = await dineway.handleContentPermanentDelete(collection, id);
|
|
18
18
|
if (!result.success) return unwrapResult(result);
|
|
19
|
-
if (cache
|
|
19
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection, id] });
|
|
20
20
|
await logContentActivity(dineway.db, locals, {
|
|
21
21
|
action: "permanently_deleted",
|
|
22
22
|
collection,
|
|
@@ -2,15 +2,15 @@ import "../../../../../../connection-BCNICDWN.mjs";
|
|
|
2
2
|
import { n as getI18nConfig } from "../../../../../../config-XW5tMrH8.mjs";
|
|
3
3
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
4
4
|
import "../../../../../../options-BF11H_FD.mjs";
|
|
5
|
-
import "../../../../../../context-types-
|
|
5
|
+
import "../../../../../../context-types-BWspNMDr.mjs";
|
|
6
6
|
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-Dyf9fGZE.mjs";
|
|
7
7
|
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse-BBfZRZYb.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import "../../../../../../import-
|
|
8
|
+
import { tn as contentPreviewUrlBody } from "../../../../../../redirects-BO0fI750.mjs";
|
|
9
|
+
import "../../../../../../import-BO_gy5vZ.mjs";
|
|
10
10
|
import "../../../../../../api/schemas/index.mjs";
|
|
11
11
|
import { i as getPreviewUrl } from "../../../../../../preview-CIDYFBzd.mjs";
|
|
12
12
|
import "../../../../../../tokens-DB4dASZl.mjs";
|
|
13
|
-
import { i as resolveSecretsCached } from "../../../../../../secrets-
|
|
13
|
+
import { i as resolveSecretsCached } from "../../../../../../secrets-BIrqds5c.mjs";
|
|
14
14
|
import { n as requirePerm } from "../../../../../../authorize-wQDmXQJ1.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/astro/routes/api/content/[collection]/[id]/preview-url.ts
|
|
@@ -7,25 +7,25 @@ import "../../../../../../options-BF11H_FD.mjs";
|
|
|
7
7
|
import "../../../../../../site-activity-lsCX_cqp.mjs";
|
|
8
8
|
import "../../../../../../review-requests-BYuoyse0.mjs";
|
|
9
9
|
import "../../../../../../entity-aliases-PJV8IxDq.mjs";
|
|
10
|
-
import "../../../../../../request-cache-
|
|
11
|
-
import "../../../../../../briefing-
|
|
12
|
-
import "../../../../../../context-types-
|
|
13
|
-
import "../../../../../../fts-manager-
|
|
14
|
-
import "../../../../../../registry-
|
|
15
|
-
import "../../../../../../loader-
|
|
16
|
-
import "../../../../../../settings-
|
|
17
|
-
import "../../../../../../query-
|
|
18
|
-
import "../../../../../../zod-generator-
|
|
19
|
-
import "../../../../../../schema-
|
|
10
|
+
import "../../../../../../request-cache-BzuhyUXj.mjs";
|
|
11
|
+
import "../../../../../../briefing-Dk4I4VC8.mjs";
|
|
12
|
+
import "../../../../../../context-types-BWspNMDr.mjs";
|
|
13
|
+
import "../../../../../../fts-manager-DYRy6HVi.mjs";
|
|
14
|
+
import "../../../../../../registry-CYO6XQ-4.mjs";
|
|
15
|
+
import "../../../../../../loader-dt5DoyI1.mjs";
|
|
16
|
+
import "../../../../../../settings-D2k1JraC.mjs";
|
|
17
|
+
import "../../../../../../query-CH1GaJmt.mjs";
|
|
18
|
+
import "../../../../../../zod-generator-vOxhed6n.mjs";
|
|
19
|
+
import "../../../../../../schema-mjeMcn_6.mjs";
|
|
20
20
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-Dyf9fGZE.mjs";
|
|
21
21
|
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse-BBfZRZYb.mjs";
|
|
22
|
-
import {
|
|
23
|
-
import "../../../../../../import-
|
|
22
|
+
import { nn as contentPublishBody } from "../../../../../../redirects-BO0fI750.mjs";
|
|
23
|
+
import "../../../../../../import-BO_gy5vZ.mjs";
|
|
24
24
|
import "../../../../../../api/schemas/index.mjs";
|
|
25
25
|
import "../../../../../../utils-BJF19gfk.mjs";
|
|
26
|
-
import "../../../../../../search-
|
|
26
|
+
import "../../../../../../search-vzCYAk0F.mjs";
|
|
27
27
|
import { t as requireOwnerPerm } from "../../../../../../authorize-wQDmXQJ1.mjs";
|
|
28
|
-
import { _ as RiskPolicyEvaluator } from "../../../../../../site-context-
|
|
28
|
+
import { _ as RiskPolicyEvaluator } from "../../../../../../site-context-Rwm9auhW.mjs";
|
|
29
29
|
import { T as resolveActorIdentity, a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-DbqJBNaY.mjs";
|
|
30
30
|
import { hasPermission } from "@dineway-ai/auth";
|
|
31
31
|
|
|
@@ -74,7 +74,7 @@ const POST = async ({ params, request, locals, cache }) => {
|
|
|
74
74
|
});
|
|
75
75
|
const result = await dineway.handleContentPublish(collection, resolvedId, { publishedAt });
|
|
76
76
|
if (!result.success) return unwrapResult(result);
|
|
77
|
-
if (cache
|
|
77
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection, resolvedId] });
|
|
78
78
|
await logContentActivity(dineway.db, locals, {
|
|
79
79
|
action: "published",
|
|
80
80
|
collection,
|
|
@@ -21,7 +21,7 @@ const POST = async ({ params, locals, cache }) => {
|
|
|
21
21
|
const resolvedId = typeof existingItem?.id === "string" ? existingItem.id : id;
|
|
22
22
|
const result = await dineway.handleContentRestore(collection, resolvedId);
|
|
23
23
|
if (!result.success) return unwrapResult(result);
|
|
24
|
-
if (cache
|
|
24
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection, resolvedId] });
|
|
25
25
|
await logContentActivity(dineway.db, locals, {
|
|
26
26
|
action: "restored",
|
|
27
27
|
collection,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
2
2
|
import "../../../../../../types-D1DjBFA9.mjs";
|
|
3
3
|
import "../../../../../../site-activity-lsCX_cqp.mjs";
|
|
4
|
-
import "../../../../../../context-types-
|
|
4
|
+
import "../../../../../../context-types-BWspNMDr.mjs";
|
|
5
5
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-Dyf9fGZE.mjs";
|
|
6
6
|
import { n as parseBody, t as isParseError } from "../../../../../../parse-BBfZRZYb.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import "../../../../../../import-
|
|
7
|
+
import { in as contentScheduleBody } from "../../../../../../redirects-BO0fI750.mjs";
|
|
8
|
+
import "../../../../../../import-BO_gy5vZ.mjs";
|
|
9
9
|
import "../../../../../../api/schemas/index.mjs";
|
|
10
10
|
import { t as requireOwnerPerm } from "../../../../../../authorize-wQDmXQJ1.mjs";
|
|
11
11
|
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-DbqJBNaY.mjs";
|
|
@@ -37,7 +37,7 @@ const POST = async ({ params, request, locals, cache }) => {
|
|
|
37
37
|
if (denied) return denied;
|
|
38
38
|
const result = await dineway.handleContentSchedule(collection, resolvedId ?? id, body.scheduledAt);
|
|
39
39
|
if (!result.success) return unwrapResult(result);
|
|
40
|
-
if (cache
|
|
40
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection, resolvedId ?? id] });
|
|
41
41
|
await logContentActivity(dineway.db, locals, {
|
|
42
42
|
action: "scheduled",
|
|
43
43
|
collection,
|
|
@@ -60,7 +60,7 @@ const DELETE = async ({ params, locals, cache }) => {
|
|
|
60
60
|
if (denied) return denied;
|
|
61
61
|
const result = await dineway.handleContentUnschedule(collection, resolvedId ?? id);
|
|
62
62
|
if (!result.success) return unwrapResult(result);
|
|
63
|
-
if (cache
|
|
63
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection, resolvedId ?? id] });
|
|
64
64
|
await logContentActivity(dineway.db, locals, {
|
|
65
65
|
action: "unscheduled",
|
|
66
66
|
collection,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "../../../../../../../dialect-helpers-TkdbkFad.mjs";
|
|
2
2
|
import "../../../../../../../base64-C1Q9yr0B.mjs";
|
|
3
3
|
import "../../../../../../../types-D1DjBFA9.mjs";
|
|
4
|
-
import { t as TaxonomyRepository } from "../../../../../../../taxonomy-
|
|
5
|
-
import "../../../../../../../request-cache-
|
|
6
|
-
import "../../../../../../../context-types-
|
|
7
|
-
import "../../../../../../../loader-
|
|
8
|
-
import { c as invalidateTermCache } from "../../../../../../../taxonomies-
|
|
4
|
+
import { t as TaxonomyRepository } from "../../../../../../../taxonomy-DpXdVSSR.mjs";
|
|
5
|
+
import "../../../../../../../request-cache-BzuhyUXj.mjs";
|
|
6
|
+
import "../../../../../../../context-types-BWspNMDr.mjs";
|
|
7
|
+
import "../../../../../../../loader-dt5DoyI1.mjs";
|
|
8
|
+
import { c as invalidateTermCache } from "../../../../../../../taxonomies-DPNIwTGk.mjs";
|
|
9
9
|
import { i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../../error-Dyf9fGZE.mjs";
|
|
10
10
|
import { n as parseBody, t as isParseError } from "../../../../../../../parse-BBfZRZYb.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import "../../../../../../../import-
|
|
11
|
+
import { sn as contentTermsBody } from "../../../../../../../redirects-BO0fI750.mjs";
|
|
12
|
+
import "../../../../../../../import-BO_gy5vZ.mjs";
|
|
13
13
|
import "../../../../../../../api/schemas/index.mjs";
|
|
14
14
|
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../../../authorize-wQDmXQJ1.mjs";
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ const POST = async ({ params, locals, cache }) => {
|
|
|
21
21
|
const resolvedId = typeof existingItem?.id === "string" ? existingItem.id : id;
|
|
22
22
|
const result = await dineway.handleContentUnpublish(collection, resolvedId);
|
|
23
23
|
if (!result.success) return unwrapResult(result);
|
|
24
|
-
if (cache
|
|
24
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection, resolvedId] });
|
|
25
25
|
await logContentActivity(dineway.db, locals, {
|
|
26
26
|
action: "unpublished",
|
|
27
27
|
collection,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../../base64-C1Q9yr0B.mjs";
|
|
2
2
|
import "../../../../../types-D1DjBFA9.mjs";
|
|
3
3
|
import "../../../../../site-activity-lsCX_cqp.mjs";
|
|
4
|
-
import "../../../../../context-types-
|
|
4
|
+
import "../../../../../context-types-BWspNMDr.mjs";
|
|
5
5
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
6
6
|
import { n as parseBody, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import "../../../../../import-
|
|
7
|
+
import { dn as contentUpdateBody } from "../../../../../redirects-BO0fI750.mjs";
|
|
8
|
+
import "../../../../../import-BO_gy5vZ.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
10
|
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
11
11
|
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity, t as activityChangedKeys } from "../../../../../activity-events-DbqJBNaY.mjs";
|
|
@@ -66,7 +66,7 @@ const PUT = async ({ params, request, locals, cache }) => {
|
|
|
66
66
|
_rev: body._rev
|
|
67
67
|
});
|
|
68
68
|
if (!result.success) return unwrapResult(result);
|
|
69
|
-
if (cache
|
|
69
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection, resolvedId] });
|
|
70
70
|
await logContentActivity(dineway.db, locals, {
|
|
71
71
|
action: "updated",
|
|
72
72
|
collection,
|
|
@@ -99,7 +99,7 @@ const DELETE = async ({ params, locals, cache }) => {
|
|
|
99
99
|
const resolvedId = typeof deleteItem?.id === "string" ? deleteItem.id : id;
|
|
100
100
|
const result = await dineway.handleContentDelete(collection, resolvedId);
|
|
101
101
|
if (!result.success) return unwrapResult(result);
|
|
102
|
-
if (cache
|
|
102
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection, resolvedId] });
|
|
103
103
|
await logContentActivity(dineway.db, locals, {
|
|
104
104
|
action: "deleted",
|
|
105
105
|
collection,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../../base64-C1Q9yr0B.mjs";
|
|
2
2
|
import "../../../../../types-D1DjBFA9.mjs";
|
|
3
3
|
import "../../../../../site-activity-lsCX_cqp.mjs";
|
|
4
|
-
import "../../../../../context-types-
|
|
4
|
+
import "../../../../../context-types-BWspNMDr.mjs";
|
|
5
5
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
6
6
|
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import "../../../../../import-
|
|
7
|
+
import { $t as contentListQuery, Zt as contentCreateBody } from "../../../../../redirects-BO0fI750.mjs";
|
|
8
|
+
import "../../../../../import-BO_gy5vZ.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
10
|
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
11
11
|
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../activity-events-DbqJBNaY.mjs";
|
|
@@ -54,7 +54,7 @@ const POST = async ({ params, request, locals, cache }) => {
|
|
|
54
54
|
translationOf: body.translationOf
|
|
55
55
|
});
|
|
56
56
|
if (!result.success) return unwrapResult(result);
|
|
57
|
-
if (cache
|
|
57
|
+
if (cache?.enabled) await cache.invalidate({ tags: [collection] });
|
|
58
58
|
await logContentActivity(dineway.db, locals, {
|
|
59
59
|
action: "created",
|
|
60
60
|
collection,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../../context-types-
|
|
1
|
+
import "../../../../../context-types-BWspNMDr.mjs";
|
|
2
2
|
import { a as unwrapResult, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
3
3
|
import { i as parseQuery, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import "../../../../../import-
|
|
4
|
+
import { un as contentTrashQuery } from "../../../../../redirects-BO0fI750.mjs";
|
|
5
|
+
import "../../../../../import-BO_gy5vZ.mjs";
|
|
6
6
|
import "../../../../../api/schemas/index.mjs";
|
|
7
7
|
import { n as requirePerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@ import "../../../types-D1DjBFA9.mjs";
|
|
|
4
4
|
import "../../../media-Cg4zc9fq.mjs";
|
|
5
5
|
import "../../../user-2aI21yV1.mjs";
|
|
6
6
|
import "../../../review-requests-BYuoyse0.mjs";
|
|
7
|
-
import { t as handleDashboardStats } from "../../../dashboard-
|
|
7
|
+
import { t as handleDashboardStats } from "../../../dashboard-DdqRifyu.mjs";
|
|
8
8
|
import { a as unwrapResult, r as handleError, t as apiError } from "../../../error-Dyf9fGZE.mjs";
|
|
9
9
|
import { n as requirePerm } from "../../../authorize-wQDmXQJ1.mjs";
|
|
10
10
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../context-types-
|
|
2
|
+
import "../../../../context-types-BWspNMDr.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-Dyf9fGZE.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../parse-BBfZRZYb.mjs";
|
|
5
|
-
import "../../../../redirects-
|
|
6
|
-
import { t as importProbeBody } from "../../../../import-
|
|
5
|
+
import "../../../../redirects-BO0fI750.mjs";
|
|
6
|
+
import { t as importProbeBody } from "../../../../import-BO_gy5vZ.mjs";
|
|
7
7
|
import "../../../../api/schemas/index.mjs";
|
|
8
|
-
import { l as probeUrl } from "../../../../import-
|
|
9
|
-
import { t as SsrfError } from "../../../../ssrf-
|
|
8
|
+
import { l as probeUrl } from "../../../../import-B8lnqfnN.mjs";
|
|
9
|
+
import { t as SsrfError } from "../../../../ssrf-z3oH8wjK.mjs";
|
|
10
10
|
import "../../../../utils-BJF19gfk.mjs";
|
|
11
11
|
import { n as requirePerm } from "../../../../authorize-wQDmXQJ1.mjs";
|
|
12
12
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
2
|
-
import { t as sanitizeWordPressImportSlug } from "../../../../../wordpress-slugs-
|
|
2
|
+
import { t as sanitizeWordPressImportSlug } from "../../../../../wordpress-slugs-Bnf3-sf8.mjs";
|
|
3
3
|
import { n as requirePerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
4
4
|
import mime from "mime/lite";
|
|
5
5
|
import { SchemaRegistry, parseWxrString } from "dineway";
|
|
@@ -8,25 +8,25 @@ import "../../../../../options-BF11H_FD.mjs";
|
|
|
8
8
|
import "../../../../../site-activity-lsCX_cqp.mjs";
|
|
9
9
|
import "../../../../../review-requests-BYuoyse0.mjs";
|
|
10
10
|
import "../../../../../entity-aliases-PJV8IxDq.mjs";
|
|
11
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
12
|
-
import "../../../../../request-cache-
|
|
13
|
-
import "../../../../../briefing-
|
|
14
|
-
import "../../../../../context-types-
|
|
15
|
-
import "../../../../../fts-manager-
|
|
16
|
-
import "../../../../../registry-
|
|
17
|
-
import "../../../../../loader-
|
|
18
|
-
import "../../../../../settings-
|
|
19
|
-
import "../../../../../query-
|
|
20
|
-
import "../../../../../zod-generator-
|
|
21
|
-
import "../../../../../schema-
|
|
11
|
+
import { t as BylineRepository } from "../../../../../byline-9WeA8b0a.mjs";
|
|
12
|
+
import "../../../../../request-cache-BzuhyUXj.mjs";
|
|
13
|
+
import "../../../../../briefing-Dk4I4VC8.mjs";
|
|
14
|
+
import "../../../../../context-types-BWspNMDr.mjs";
|
|
15
|
+
import "../../../../../fts-manager-DYRy6HVi.mjs";
|
|
16
|
+
import "../../../../../registry-CYO6XQ-4.mjs";
|
|
17
|
+
import "../../../../../loader-dt5DoyI1.mjs";
|
|
18
|
+
import "../../../../../settings-D2k1JraC.mjs";
|
|
19
|
+
import "../../../../../query-CH1GaJmt.mjs";
|
|
20
|
+
import "../../../../../zod-generator-vOxhed6n.mjs";
|
|
21
|
+
import "../../../../../schema-mjeMcn_6.mjs";
|
|
22
22
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
23
23
|
import { m as resolveImportByline } from "../../../../../utils-BJF19gfk.mjs";
|
|
24
|
-
import { t as sanitizeWordPressImportSlug } from "../../../../../wordpress-slugs-
|
|
25
|
-
import "../../../../../search-
|
|
24
|
+
import { t as sanitizeWordPressImportSlug } from "../../../../../wordpress-slugs-Bnf3-sf8.mjs";
|
|
25
|
+
import "../../../../../search-vzCYAk0F.mjs";
|
|
26
26
|
import { n as requirePerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
27
|
-
import { _ as RiskPolicyEvaluator, p as WordPressImportHitlPayloadBuilder } from "../../../../../site-context-
|
|
27
|
+
import { _ as RiskPolicyEvaluator, p as WordPressImportHitlPayloadBuilder } from "../../../../../site-context-Rwm9auhW.mjs";
|
|
28
28
|
import "../../../../../activity-events-DbqJBNaY.mjs";
|
|
29
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-
|
|
29
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-Dwo_LjhN.mjs";
|
|
30
30
|
import { gutenbergToPortableText } from "@dineway-ai/gutenberg-to-portable-text";
|
|
31
31
|
import { ContentRepository, importReusableBlocksAsSections, parseWxrDate, parseWxrString } from "dineway";
|
|
32
32
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../../../../context-types-
|
|
1
|
+
import "../../../../../context-types-BWspNMDr.mjs";
|
|
2
2
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
3
3
|
import { n as parseBody, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
4
|
-
import "../../../../../redirects-
|
|
5
|
-
import { n as wpMediaImportBody } from "../../../../../import-
|
|
4
|
+
import "../../../../../redirects-BO0fI750.mjs";
|
|
5
|
+
import { n as wpMediaImportBody } from "../../../../../import-BO_gy5vZ.mjs";
|
|
6
6
|
import "../../../../../api/schemas/index.mjs";
|
|
7
|
-
import { a as validateExternalUrl, r as ssrfSafeFetch, t as SsrfError } from "../../../../../ssrf-
|
|
7
|
+
import { a as validateExternalUrl, r as ssrfSafeFetch, t as SsrfError } from "../../../../../ssrf-z3oH8wjK.mjs";
|
|
8
8
|
import { n as requirePerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
9
9
|
import { ulid } from "ulidx";
|
|
10
10
|
import * as path from "node:path";
|
|
@@ -7,29 +7,29 @@ import "../../../../../options-BF11H_FD.mjs";
|
|
|
7
7
|
import "../../../../../site-activity-lsCX_cqp.mjs";
|
|
8
8
|
import "../../../../../review-requests-BYuoyse0.mjs";
|
|
9
9
|
import "../../../../../entity-aliases-PJV8IxDq.mjs";
|
|
10
|
-
import "../../../../../request-cache-
|
|
11
|
-
import "../../../../../briefing-
|
|
12
|
-
import "../../../../../context-types-
|
|
13
|
-
import "../../../../../fts-manager-
|
|
14
|
-
import { t as FIELD_TYPES } from "../../../../../types-
|
|
15
|
-
import "../../../../../registry-
|
|
16
|
-
import "../../../../../loader-
|
|
17
|
-
import "../../../../../settings-
|
|
18
|
-
import "../../../../../query-
|
|
19
|
-
import "../../../../../zod-generator-
|
|
20
|
-
import "../../../../../schema-
|
|
10
|
+
import "../../../../../request-cache-BzuhyUXj.mjs";
|
|
11
|
+
import "../../../../../briefing-Dk4I4VC8.mjs";
|
|
12
|
+
import "../../../../../context-types-BWspNMDr.mjs";
|
|
13
|
+
import "../../../../../fts-manager-DYRy6HVi.mjs";
|
|
14
|
+
import { t as FIELD_TYPES } from "../../../../../types-zfg8SDVI.mjs";
|
|
15
|
+
import "../../../../../registry-CYO6XQ-4.mjs";
|
|
16
|
+
import "../../../../../loader-dt5DoyI1.mjs";
|
|
17
|
+
import "../../../../../settings-D2k1JraC.mjs";
|
|
18
|
+
import "../../../../../query-CH1GaJmt.mjs";
|
|
19
|
+
import "../../../../../zod-generator-vOxhed6n.mjs";
|
|
20
|
+
import "../../../../../schema-mjeMcn_6.mjs";
|
|
21
21
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-Dyf9fGZE.mjs";
|
|
22
22
|
import { n as parseBody, t as isParseError } from "../../../../../parse-BBfZRZYb.mjs";
|
|
23
|
-
import "../../../../../redirects-
|
|
24
|
-
import { a as wpPrepareBody } from "../../../../../import-
|
|
23
|
+
import "../../../../../redirects-BO0fI750.mjs";
|
|
24
|
+
import { a as wpPrepareBody } from "../../../../../import-BO_gy5vZ.mjs";
|
|
25
25
|
import "../../../../../api/schemas/index.mjs";
|
|
26
26
|
import "../../../../../utils-BJF19gfk.mjs";
|
|
27
|
-
import { t as sanitizeWordPressImportSlug } from "../../../../../wordpress-slugs-
|
|
28
|
-
import "../../../../../search-
|
|
27
|
+
import { t as sanitizeWordPressImportSlug } from "../../../../../wordpress-slugs-Bnf3-sf8.mjs";
|
|
28
|
+
import "../../../../../search-vzCYAk0F.mjs";
|
|
29
29
|
import { n as requirePerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
30
|
-
import { _ as RiskPolicyEvaluator, p as WordPressImportHitlPayloadBuilder } from "../../../../../site-context-
|
|
30
|
+
import { _ as RiskPolicyEvaluator, p as WordPressImportHitlPayloadBuilder } from "../../../../../site-context-Rwm9auhW.mjs";
|
|
31
31
|
import "../../../../../activity-events-DbqJBNaY.mjs";
|
|
32
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-
|
|
32
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-Dwo_LjhN.mjs";
|
|
33
33
|
import { capitalize, singularize } from "./analyze.mjs";
|
|
34
34
|
import { z } from "zod";
|
|
35
35
|
|
|
@@ -68,7 +68,7 @@ const POST = async ({ request, locals }) => {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
async function prepareImport(db, request) {
|
|
71
|
-
const { SchemaRegistry } = await import("../../../../../registry-
|
|
71
|
+
const { SchemaRegistry } = await import("../../../../../registry-CYO6XQ-4.mjs").then((n) => n.r);
|
|
72
72
|
const registry = new SchemaRegistry(db);
|
|
73
73
|
const result = {
|
|
74
74
|
success: true,
|
|
@@ -134,7 +134,7 @@ async function prepareImport(db, request) {
|
|
|
134
134
|
"post",
|
|
135
135
|
"page"
|
|
136
136
|
].includes(collectionSlug)) {
|
|
137
|
-
const { FTSManager } = await import("../../../../../fts-manager-
|
|
137
|
+
const { FTSManager } = await import("../../../../../fts-manager-DYRy6HVi.mjs").then((n) => n.n);
|
|
138
138
|
const ftsManager = new FTSManager(db);
|
|
139
139
|
if ((await ftsManager.getSearchableFields(collectionSlug)).length > 0) try {
|
|
140
140
|
await ftsManager.enableSearch(collectionSlug);
|