dineway 0.1.49 → 0.2.0
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/{activity-events-CwM7yxPW.mjs → activity-events-y6eT8UW6.mjs} +6 -38
- package/dist/actor-CrObAPV0.mjs +37 -0
- package/dist/after-BfniwgIf.mjs +9 -0
- package/dist/{allowed-origins-CyGnbgBd.mjs → allowed-origins-_oeyP6x-.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -10
- package/dist/api/route-utils.mjs +16 -13
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +5 -4
- package/dist/{api-BMIxRIEN.mjs → api-ByrU2q-Z.mjs} +60 -36
- package/dist/{api-tokens-DtvdtIkm.mjs → api-tokens-CjVMQT-X.mjs} +6 -2
- package/dist/{apply-D_RlTYtC.mjs → apply-bZswmZPm.mjs} +117 -77
- package/dist/astro/image-endpoint.d.mts +7 -0
- package/dist/astro/image-endpoint.mjs +54 -0
- package/dist/astro/index.d.mts +35 -11
- package/dist/astro/index.mjs +157 -23
- package/dist/astro/integration/shims/use-sync-external-store-with-selector.js +71 -0
- package/dist/astro/integration/shims/use-sync-external-store.js +1 -0
- package/dist/astro/middleware/auth.d.mts +10 -10
- package/dist/astro/middleware/auth.mjs +42 -24
- package/dist/astro/middleware/redirect.mjs +13 -4
- package/dist/astro/middleware/request-context.mjs +8 -5
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +333 -192
- package/dist/astro/routes/admin.astro +6 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +7 -6
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +7 -6
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/briefing.mjs +21 -17
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +9 -8
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +9 -8
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +9 -8
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +17 -14
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +17 -14
- package/dist/astro/routes/api/admin/bylines/index.mjs +17 -14
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +14 -12
- package/dist/astro/routes/api/admin/comments/_id_.mjs +6 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +11 -9
- package/dist/astro/routes/api/admin/comments/counts.mjs +6 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +11 -9
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +26 -24
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +26 -24
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +31 -28
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +31 -28
- package/dist/astro/routes/api/admin/context/diff.mjs +30 -27
- package/dist/astro/routes/api/admin/context/index.mjs +31 -28
- package/dist/astro/routes/api/admin/context/stale.mjs +30 -27
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +26 -24
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +30 -27
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +30 -27
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +27 -25
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +55 -51
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +55 -51
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +47 -43
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +53 -49
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/index.mjs +47 -43
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +46 -42
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +46 -42
- package/dist/astro/routes/api/admin/plugins/updates.mjs +46 -42
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +31 -27
- package/dist/astro/routes/api/admin/review-requests/index.mjs +10 -9
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +46 -42
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +46 -42
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +8 -7
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +4 -4
- package/dist/astro/routes/api/admin/users/index.mjs +7 -6
- package/dist/astro/routes/api/auth/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +12 -11
- package/dist/astro/routes/api/auth/invite/index.mjs +9 -8
- package/dist/astro/routes/api/auth/invite/register-options.mjs +11 -10
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +11 -10
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/me.mjs +9 -8
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +3 -3
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +6 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +12 -11
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +10 -9
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +11 -10
- package/dist/astro/routes/api/auth/passkey/verify.mjs +11 -10
- package/dist/astro/routes/api/auth/setup-token/index.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +12 -11
- package/dist/astro/routes/api/auth/signup/request.mjs +11 -10
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +15 -13
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.d.mts +8 -0
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +160 -0
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +11 -10
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +16 -14
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/trash.mjs +7 -6
- package/dist/astro/routes/api/dashboard.mjs +9 -8
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +22 -10
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +9 -6
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +19 -1
- package/dist/astro/routes/api/import/wordpress/execute.mjs +84 -37
- package/dist/astro/routes/api/import/wordpress/media.d.mts +13 -1
- package/dist/astro/routes/api/import/wordpress/media.mjs +19 -13
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +35 -32
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +18 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +120 -100
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +24 -12
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +56 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +283 -55
- package/dist/astro/routes/api/manifest.mjs +14 -5
- package/dist/astro/routes/api/mcp.mjs +265 -69
- package/dist/astro/routes/api/media/_id_/confirm.mjs +38 -10
- package/dist/astro/routes/api/media/_id_.mjs +11 -7
- package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
- package/dist/astro/routes/api/media/providers/index.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +11 -10
- package/dist/astro/routes/api/media.mjs +27 -34
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +31 -28
- package/dist/astro/routes/api/menus/_name_/items.mjs +31 -28
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +31 -28
- package/dist/astro/routes/api/menus/_name_/translations.mjs +31 -28
- package/dist/astro/routes/api/menus/_name_.mjs +31 -28
- package/dist/astro/routes/api/menus/index.mjs +31 -28
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
- package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +4 -3
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +30 -30
- package/dist/astro/routes/api/redirects/404s/index.mjs +11 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs +11 -10
- package/dist/astro/routes/api/redirects/_id_.mjs +32 -29
- package/dist/astro/routes/api/redirects/index.mjs +32 -29
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +47 -43
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +47 -43
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +47 -43
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +47 -43
- package/dist/astro/routes/api/schema/collections/index.mjs +47 -43
- package/dist/astro/routes/api/schema/index.mjs +13 -14
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +46 -42
- package/dist/astro/routes/api/schema/orphans/index.mjs +46 -42
- package/dist/astro/routes/api/search/enable.mjs +11 -10
- package/dist/astro/routes/api/search/index.mjs +10 -9
- package/dist/astro/routes/api/search/rebuild.mjs +11 -10
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +10 -9
- package/dist/astro/routes/api/sections/_slug_.mjs +31 -28
- package/dist/astro/routes/api/sections/index.mjs +31 -28
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +31 -28
- package/dist/astro/routes/api/setup/admin-verify.mjs +14 -13
- package/dist/astro/routes/api/setup/admin.mjs +12 -11
- package/dist/astro/routes/api/setup/dev-bypass.mjs +31 -25
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +29 -25
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +8 -7
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +34 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +34 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +34 -31
- package/dist/astro/routes/api/taxonomies/index.mjs +34 -31
- package/dist/astro/routes/api/themes/preview.mjs +5 -5
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +30 -27
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +31 -28
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +31 -28
- package/dist/astro/routes/api/widget-areas/_name_.mjs +28 -26
- package/dist/astro/routes/api/widget-areas/index.mjs +31 -28
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +8 -7
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +23 -14
- package/dist/astro/routes/sitemap.xml.mjs +9 -8
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +21 -13
- package/dist/{audit-BeNsSyfU.mjs → audit-ByVKIwWF.mjs} +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-Dr14I98m.mjs → auth-control-guard-CqeUmQsv.mjs} +1 -1
- package/dist/{authorize-BLO0m7fW.mjs → authorize-CcBxcHtz.mjs} +1 -1
- package/dist/{briefing-DJX6irto.mjs → briefing-BJaJI8dm.mjs} +2 -1
- package/dist/{briefing-CkTee1ex.mjs → briefing-CawZ59CY.mjs} +90 -28
- package/dist/bundle-7C_DpkEq.mjs +602 -0
- package/dist/{byline-BVC1lV6G.mjs → byline-e51-fWRs.mjs} +30 -62
- package/dist/{byline-fields-uJlygdzM.d.mts → byline-fields-CUvbslGc.d.mts} +80 -37
- package/dist/{byline-fields-Cj39WhXC.mjs → byline-fields-D-N5qVIG.mjs} +1 -1
- package/dist/{byline-fields-cNrLJVRs.mjs → byline-fields-DOJO16Gm.mjs} +3 -3
- package/dist/{byline-registry-4v6tXMNX.mjs → byline-registry-87nNnYl4.mjs} +2 -2
- package/dist/{bylines-LN9XISRo.mjs → bylines-CMQNCNFh.mjs} +9 -3
- package/dist/{bylines-DwokOFj6.mjs → bylines-y4LO-dTj.mjs} +5 -5
- package/dist/{cache-Bac05gBd.mjs → cache-C-FNTFYK.mjs} +2 -2
- package/dist/{chunks-CuUt7K50.mjs → chunks-CxBt-GxR.mjs} +1 -1
- package/dist/cli/index.mjs +94 -659
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +2 -1
- package/dist/{comment-Beue8-15.mjs → comment-DlA4iChg.mjs} +13 -3
- package/dist/comment-reaction-DfFao1ST.mjs +58 -0
- package/dist/{comments-DcjFIfqX.mjs → comments-DApFGMsP.mjs} +1 -1
- package/dist/{content-CBxYGWfL.mjs → content-Bh4BDjv8.mjs} +51 -34
- package/dist/content-refresh-CgutSUfO.mjs +1576 -0
- package/dist/{context-CQVNZaR8.mjs → context-C5W3G18y.mjs} +111 -50
- package/dist/{context-Df1xVYyr.mjs → context-CK4ym2Sf.mjs} +2 -2
- package/dist/{context-route-helpers-B9wj8Rmh.mjs → context-route-helpers-MASyGgWf.mjs} +2 -1
- package/dist/{cron-DxCAU_Sn.mjs → cron-cKcNTix_.mjs} +7 -3
- package/dist/{dashboard-B7ZUNuyF.mjs → dashboard-DQkVT7Ei.mjs} +4 -4
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{device-flow-BZVGftqi.mjs → device-flow-BnqRH-T9.mjs} +5 -5
- package/dist/{placeholder-d54Qr_7n.mjs → enrich-DIFIFA8O.mjs} +36 -9
- package/dist/{error-DCSuUAZW.mjs → error-CytFlgcd.mjs} +5 -0
- package/dist/field-defs-cache-DRNdhBJv.mjs +49 -0
- package/dist/{fts-manager-B5l_qwrA.mjs → fts-manager-Crzypjqu.mjs} +1 -1
- package/dist/hitl-Hw1RmWOq.mjs +677 -0
- package/dist/{hitl-requests-7NlzVeUA.mjs → hitl-requests-B4Vbcmaq.mjs} +2 -2
- package/dist/{hitl-route-helpers-k---_H3-.mjs → hitl-route-helpers-hEVzvP8l.mjs} +5 -4
- package/dist/import-Bh9biJfx.mjs +1354 -0
- package/dist/{index-CZiWCQDp.d.mts → index-D4y6NGiy.d.mts} +75 -3
- package/dist/index.d.mts +17 -16
- package/dist/index.mjs +80 -68
- package/dist/{jsonld-DZ67souc.d.mts → jsonld-Dq0gsnOH.d.mts} +8 -4
- package/dist/{load-D9OiGr2m.mjs → load-DmYeniXl.mjs} +1 -1
- package/dist/{loader--GOYux8M.mjs → loader-CjWqjweO.mjs} +117 -31
- package/dist/{manifest-schema-qh2P7RDX.mjs → manifest-schema-BxVPYMJR.mjs} +34 -1
- package/dist/mcp-reviewed-executor-TwVbMzG6.mjs +555 -0
- package/dist/media/image-endpoint.d.mts +32 -0
- package/dist/media/image-endpoint.mjs +111 -0
- package/dist/media/index.d.mts +27 -2
- package/dist/media/index.mjs +5 -3
- package/dist/media/local-runtime.d.mts +16 -11
- package/dist/media/local-runtime.mjs +9 -7
- package/dist/{media-CbKyYukG.mjs → media-DMj0grzC.mjs} +3 -1
- package/dist/{media-allowlist-BYxJIcTO.mjs → media-allowlist-BlVCSzHx.mjs} +1 -1
- package/dist/media-url-lEKSrpr9.mjs +20 -0
- package/dist/{menus-BZbXf-ej.mjs → menus-TaW1gKnk.mjs} +19 -5
- package/dist/{menus-C7F0sCrC.mjs → menus-xvsnVZXw.mjs} +80 -15
- package/dist/{normalize-ByemhhfW.mjs → normalize-5ek_z7de.mjs} +8 -1
- package/dist/{oauth-authorization-DF-LCsIA.mjs → oauth-authorization-DiaGvRVz.mjs} +5 -5
- package/dist/{oauth-clients-Du-V0fEm.mjs → oauth-clients-Dl9E8dEM.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +14 -0
- package/dist/object-cache/memory.mjs +55 -0
- package/dist/object-cache-D51qOseS.mjs +419 -0
- package/dist/page/index.d.mts +4 -3
- package/dist/page/index.mjs +2 -2
- package/dist/{parse-CneSgl7-.mjs → parse-CbymENaR.mjs} +1 -1
- package/dist/{parser-DxfsARXL.mjs → parser-C1nYd-81.mjs} +151 -9
- package/dist/{placeholder-CXfoCtCd.d.mts → placeholder-uvNRZBX9.d.mts} +12 -4
- package/dist/plugin-utils.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +11 -2
- package/dist/{plugins-DzfqRREq.mjs → plugins-BolVa-tl.mjs} +831 -63
- package/dist/{transport-LSdZVXHF.mjs → portable-text-dA_UlJwW.mjs} +1 -134
- package/dist/{preview-C-3YTX2U.mjs → preview-vSVg6fwG.mjs} +4 -3
- package/dist/process-cache-7xgAO9JY.mjs +106 -0
- package/dist/{provider-loader-9it4vd6L.d.mts → provider-loader-MD8zAbnH.d.mts} +1 -1
- package/dist/{public-url-B4xV4rGa.d.mts → public-url-gsp3oUbu.d.mts} +1 -1
- package/dist/{query-Ds0EnMFX.mjs → query-CfRCdaL3.mjs} +281 -76
- package/dist/{query-CZ3TH_Uu.mjs → query-jaAmw8E1.mjs} +11 -6
- package/dist/{rate-limit-i0G3IAOX.mjs → rate-limit-ZLdyWoZF.mjs} +2 -2
- package/dist/{redirect-CEACczxo.mjs → redirect-BAjt4Z6b.mjs} +2 -2
- package/dist/{redirects-DYj1yPxs.mjs → redirects-BTdwpQtE.mjs} +47 -24
- package/dist/{redirects-ocRJmQHP.mjs → redirects-CA-xylPG.mjs} +19 -11
- package/dist/{registry-D7HACema.mjs → registry-CtyVedcN.mjs} +130 -77
- package/dist/request-context.d.mts +2 -0
- package/dist/{request-meta-DAb6xaP9.mjs → request-meta-CUypToDJ.mjs} +1 -1
- package/dist/{review-requests-Qum4713s.mjs → review-requests-C9Ff11Vq.mjs} +1 -1
- package/dist/{review-requests-BW2NxY-l.mjs → review-requests-DUyEmtmG.mjs} +1 -1
- package/dist/{runner-09sTqtv0.d.mts → runner-1tC2tIRV.d.mts} +1 -1
- package/dist/runner-DB7CRfOF.mjs +6740 -0
- package/dist/{runtime-C4-2lSFg.d.mts → runtime-BOeiQsCv.d.mts} +1952 -1489
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +3 -3
- package/dist/schema-DXdYj4R3.mjs +8 -0
- package/dist/{search-Gdrqj582.mjs → search-DSaLgEFI.mjs} +5 -3
- package/dist/{secrets-CeGpBFV2.mjs → secrets-CDZo2k8L.mjs} +14 -11
- package/dist/{sections-BOjU13Y-.mjs → sections-PVVXHGfp.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +21 -18
- package/dist/seo/index.d.mts +1 -1
- package/dist/seo/index.mjs +3 -12
- package/dist/{seo-CLj8lS7Q.mjs → seo-CQG3GCHQ.mjs} +5 -2
- package/dist/{seo-contributions-CqVvReEj.mjs → seo-contributions-C1EnikHB.mjs} +11 -3
- package/dist/{seo-5lJOtB5J.mjs → seo-qa7Dn0jK.mjs} +22 -4
- package/dist/{service-jGlhrICs.mjs → service-DiN4ZuPp.mjs} +2 -2
- package/dist/session-user-CAKImna3.mjs +22 -0
- package/dist/{settings-CUXOxzsT.mjs → settings-BbqgHWpU.mjs} +28 -55
- package/dist/{settings-DlBsT2VS.mjs → settings-i4VPP8bT.mjs} +2 -2
- package/dist/{setup-complete-BRrdPYjZ.mjs → setup-complete-B8fl-mjV.mjs} +1 -1
- package/dist/{site-activity-DONFrMBJ.mjs → site-activity-Dy3FROs0.mjs} +1 -1
- package/dist/{site-context-C8Az_P_I.mjs → site-context-DQiL8Fl5.mjs} +23 -652
- package/dist/{site-url-DIMD68go.mjs → site-url-BML3GQYm.mjs} +1 -1
- package/dist/status-DANd8ERo.mjs +21 -0
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{taxonomies-D9Sw4wWM.mjs → taxonomies-9s-v03H-.mjs} +36 -29
- package/dist/taxonomies-DRiixp_E.mjs +443 -0
- package/dist/{taxonomy-B169Nm6B.mjs → taxonomy-Dvsw6BOs.mjs} +44 -9
- package/dist/transport-BNmCqLu7.mjs +134 -0
- package/dist/types-4garmdWa.mjs +66 -0
- package/dist/{types-DSPGWjxO.d.mts → types-C8XW6L19.d.mts} +225 -4
- package/dist/{types-GaCtZ1k9.d.mts → types-CDpH6MA4.d.mts} +18 -0
- package/dist/{types-DRIKLmJI.d.mts → types-C_ly5eTp.d.mts} +17 -2
- package/dist/types-DF7ZuGGk.d.mts +118 -0
- package/dist/types-DU0bU2Wu.d.mts +2392 -0
- package/dist/{types-CwawBUTa.d.mts → types-DW_-sFyz.d.mts} +2 -1
- package/dist/{types-CSgR9nQB.mjs → types-Dq1qT19x.mjs} +1 -1
- package/dist/ui/server-runtime.d.mts +15 -15
- package/dist/ui/server-runtime.mjs +24 -20
- package/dist/url-Cac7a9QZ.mjs +33 -0
- package/dist/{user-DTLoZs16.mjs → user-BIZPzCb9.mjs} +2 -2
- package/dist/{utils-B8hBJ9Oz.mjs → utils-CMDhr5Xd.mjs} +129 -7
- package/dist/{validate-DzjCdy6v.d.mts → validate-CZvb-BKB.d.mts} +10 -7
- package/dist/{validate-DWmPO6oj.mjs → validate-DNs0pTSc.mjs} +11 -6
- package/dist/version-BTvfRGc6.mjs +6 -0
- package/dist/{widgets-BpJ8EpPd.mjs → widgets-f0ibZUIq.mjs} +46 -43
- package/dist/{wordpress-slugs-DHNR9LpG.mjs → wordpress-slugs-BhHJX8XE.mjs} +1 -1
- package/dist/{zod-generator-K91-g665.mjs → zod-generator-B7TMjyFJ.mjs} +41 -13
- package/package.json +30 -8
- package/src/components/Block.astro +50 -0
- package/src/components/Comments.astro +143 -1
- package/src/components/DinewayHead.astro +19 -2
- package/src/components/DinewayImage.astro +66 -33
- package/src/components/DinewayMedia.astro +1 -2
- package/src/components/Image.astro +85 -40
- package/src/components/InlinePortableTextEditor.tsx +12 -2
- package/src/components/JsonLdScript.astro +9 -0
- package/src/components/LiveSearch.astro +40 -4
- package/src/components/index.ts +4 -0
- package/src/components/live-search-routing.ts +30 -0
- package/src/components/portable-text-text-align.ts +15 -0
- package/src/ui.ts +2 -0
- package/dist/entity-aliases-4y93Yjuc.mjs +0 -51
- package/dist/import-4YBXbDkI.mjs +0 -684
- package/dist/runner-DzIpHGND.mjs +0 -2836
- package/dist/schema-Bsi-VpYv.mjs +0 -8
- package/dist/taxonomies-CZ-_DitR.mjs +0 -327
- package/dist/types-CuJOqHfM.d.mts +0 -758
- package/dist/version-C4gfn0PJ.mjs +0 -6
- /package/dist/{adapters-OQCImOL7.d.mts → adapters-NVSs4UH7.d.mts} +0 -0
- /package/dist/{api-tokens-CYUoFGo7.mjs → api-tokens-2r7OWi_I.mjs} +0 -0
- /package/dist/{challenge-store-DFxX0_15.mjs → challenge-store-Bjlepa2E.mjs} +0 -0
- /package/dist/{components--pg6zBvu.mjs → components-Bclf98Be.mjs} +0 -0
- /package/dist/{context-types-r8oFvyOq.mjs → context-types-DqTo6C79.mjs} +0 -0
- /package/dist/{default-B6iaLvP7.mjs → default--K40jqm0.mjs} +0 -0
- /package/dist/{email-console-BOVqIYpB.mjs → email-console-ChgKFO8-.mjs} +0 -0
- /package/dist/{escape-BDgouFFY.mjs → escape-Bd4P_xKg.mjs} +0 -0
- /package/dist/{experimental-workflows-CSMffP6q.mjs → experimental-workflows-BMsUnIAw.mjs} +0 -0
- /package/dist/{mime-CbKsKDCB.mjs → mime-CA7Lgovc.mjs} +0 -0
- /package/dist/{mode-CZqCF9dZ.mjs → mode-C4CIyjtR.mjs} +0 -0
- /package/dist/{oauth-state-store-qncPB_IU.mjs → oauth-state-store-CNoXafF7.mjs} +0 -0
- /package/dist/{oauth-user-lookup-BFjWF8wK.mjs → oauth-user-lookup-Ygw4bNyt.mjs} +0 -0
- /package/dist/{options-LsPjZlqD.mjs → options-DQPTH5n0.mjs} +0 -0
- /package/dist/{passkey-config-DzHQK90v.mjs → passkey-config-BUwu8BA3.mjs} +0 -0
- /package/dist/{patterns-DKAX6oqN.mjs → patterns-BhAvqO0S.mjs} +0 -0
- /package/dist/{provider-loader-DzUxejk7.mjs → provider-loader-D0w9dqjm.mjs} +0 -0
- /package/dist/{public-url-B_m9IwdV.mjs → public-url-BEz_sM9n.mjs} +0 -0
- /package/dist/{redirect-BjIBtDWY.mjs → redirect-wphRBv4y.mjs} +0 -0
- /package/dist/{request-cache-ho99schz.mjs → request-cache-D9GQBxMP.mjs} +0 -0
- /package/dist/{resolve-DTuDyYKs.mjs → resolve-Cb6Dbz-C.mjs} +0 -0
- /package/dist/{setup-nonce-pyGfc9hV.mjs → setup-nonce-CoyjILvW.mjs} +0 -0
- /package/dist/{sidecar-client-mJxwayYN.mjs → sidecar-client-C3mqXg4C.mjs} +0 -0
- /package/dist/{slugify-BqebcqBg.mjs → slugify-KSsVD_D3.mjs} +0 -0
- /package/dist/{ssrf-DiKqWd3N.mjs → ssrf-DWe8jwAp.mjs} +0 -0
- /package/dist/{tokens-SLmgowfd.mjs → tokens-1RK1n6ED.mjs} +0 -0
- /package/dist/{transaction-CFLhEOuH.mjs → transaction-C2EOMTJA.mjs} +0 -0
- /package/dist/{transport-BnsNxh2l.d.mts → transport-CcJu3Co8.d.mts} +0 -0
- /package/dist/{trusted-proxy-BgIIcbsN.mjs → trusted-proxy-DTXQ2IMv.mjs} +0 -0
- /package/dist/{types-CJ8DkL0q.mjs → types-B3t5cxhU.mjs} +0 -0
- /package/dist/{types-nP9vGUFq.d.mts → types-C46EvNdc.d.mts} +0 -0
- /package/dist/{types-Cg276-3z.mjs → types-C5CVgwsV.mjs} +0 -0
- /package/dist/{types-DZpT-PnG.d.mts → types-POH8PQZh.d.mts} +0 -0
- /package/dist/{types-Dryvv7LH.d.mts → types-Rc3gQqqw.d.mts} +0 -0
- /package/dist/{url-w7Mp5qAD.mjs → url-CpyFDFpO.mjs} +0 -0
|
@@ -0,0 +1,2392 @@
|
|
|
1
|
+
import { Generated } from "kysely";
|
|
2
|
+
|
|
3
|
+
//#region src/database/types.d.ts
|
|
4
|
+
interface RevisionTable {
|
|
5
|
+
id: string;
|
|
6
|
+
collection: string;
|
|
7
|
+
entry_id: string;
|
|
8
|
+
data: string;
|
|
9
|
+
author_id: string | null;
|
|
10
|
+
created_at: Generated<string>;
|
|
11
|
+
}
|
|
12
|
+
interface TaxonomyTable {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
label: string;
|
|
17
|
+
parent_id: string | null;
|
|
18
|
+
data: string | null;
|
|
19
|
+
locale: Generated<string>;
|
|
20
|
+
translation_group: Generated<string | null>;
|
|
21
|
+
}
|
|
22
|
+
interface ContentTaxonomyTable {
|
|
23
|
+
collection: string;
|
|
24
|
+
entry_id: string;
|
|
25
|
+
taxonomy_id: string;
|
|
26
|
+
}
|
|
27
|
+
interface TaxonomyDefTable {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
label: string;
|
|
31
|
+
label_singular: string | null;
|
|
32
|
+
hierarchical: number;
|
|
33
|
+
collections: string | null;
|
|
34
|
+
created_at: Generated<string>;
|
|
35
|
+
locale: Generated<string>;
|
|
36
|
+
translation_group: Generated<string | null>;
|
|
37
|
+
}
|
|
38
|
+
interface MediaTable {
|
|
39
|
+
id: string;
|
|
40
|
+
filename: string;
|
|
41
|
+
mime_type: string;
|
|
42
|
+
size: number | null;
|
|
43
|
+
width: number | null;
|
|
44
|
+
height: number | null;
|
|
45
|
+
alt: string | null;
|
|
46
|
+
caption: string | null;
|
|
47
|
+
storage_key: string;
|
|
48
|
+
status: string;
|
|
49
|
+
content_hash: string | null;
|
|
50
|
+
blurhash: string | null;
|
|
51
|
+
dominant_color: string | null;
|
|
52
|
+
created_at: Generated<string>;
|
|
53
|
+
author_id: string | null;
|
|
54
|
+
}
|
|
55
|
+
interface UserTable {
|
|
56
|
+
id: string;
|
|
57
|
+
email: string;
|
|
58
|
+
name: string | null;
|
|
59
|
+
avatar_url: string | null;
|
|
60
|
+
role: number;
|
|
61
|
+
email_verified: number;
|
|
62
|
+
data: string | null;
|
|
63
|
+
disabled: Generated<number>;
|
|
64
|
+
created_at: Generated<string>;
|
|
65
|
+
updated_at: Generated<string>;
|
|
66
|
+
}
|
|
67
|
+
interface CredentialTable {
|
|
68
|
+
id: string;
|
|
69
|
+
user_id: string;
|
|
70
|
+
public_key: Uint8Array;
|
|
71
|
+
algorithm: number;
|
|
72
|
+
counter: number;
|
|
73
|
+
device_type: string;
|
|
74
|
+
backed_up: number;
|
|
75
|
+
transports: string | null;
|
|
76
|
+
name: string | null;
|
|
77
|
+
created_at: Generated<string>;
|
|
78
|
+
last_used_at: Generated<string>;
|
|
79
|
+
}
|
|
80
|
+
interface AuthTokenTable {
|
|
81
|
+
hash: string;
|
|
82
|
+
user_id: string | null;
|
|
83
|
+
email: string | null;
|
|
84
|
+
type: string;
|
|
85
|
+
role: number | null;
|
|
86
|
+
invited_by: string | null;
|
|
87
|
+
expires_at: string;
|
|
88
|
+
created_at: Generated<string>;
|
|
89
|
+
}
|
|
90
|
+
interface OAuthAccountTable {
|
|
91
|
+
provider: string;
|
|
92
|
+
provider_account_id: string;
|
|
93
|
+
user_id: string;
|
|
94
|
+
created_at: Generated<string>;
|
|
95
|
+
}
|
|
96
|
+
interface AllowedDomainTable {
|
|
97
|
+
domain: string;
|
|
98
|
+
default_role: number;
|
|
99
|
+
enabled: number;
|
|
100
|
+
created_at: Generated<string>;
|
|
101
|
+
}
|
|
102
|
+
interface AuthChallengeTable {
|
|
103
|
+
challenge: string;
|
|
104
|
+
type: string;
|
|
105
|
+
user_id: string | null;
|
|
106
|
+
data: string | null;
|
|
107
|
+
expires_at: string;
|
|
108
|
+
created_at: Generated<string>;
|
|
109
|
+
}
|
|
110
|
+
interface ApiTokenTable {
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
token_hash: string;
|
|
114
|
+
prefix: string;
|
|
115
|
+
user_id: string;
|
|
116
|
+
scopes: string;
|
|
117
|
+
expires_at: string | null;
|
|
118
|
+
last_used_at: string | null;
|
|
119
|
+
created_at: Generated<string>;
|
|
120
|
+
}
|
|
121
|
+
interface OAuthTokenTable {
|
|
122
|
+
token_hash: string;
|
|
123
|
+
token_type: string;
|
|
124
|
+
user_id: string;
|
|
125
|
+
scopes: string;
|
|
126
|
+
client_type: string;
|
|
127
|
+
expires_at: string;
|
|
128
|
+
refresh_token_hash: string | null;
|
|
129
|
+
client_id: string | null;
|
|
130
|
+
created_at: Generated<string>;
|
|
131
|
+
}
|
|
132
|
+
interface AuthorizationCodeTable {
|
|
133
|
+
code_hash: string;
|
|
134
|
+
client_id: string;
|
|
135
|
+
redirect_uri: string;
|
|
136
|
+
user_id: string;
|
|
137
|
+
scopes: string;
|
|
138
|
+
code_challenge: string;
|
|
139
|
+
code_challenge_method: string;
|
|
140
|
+
resource: string | null;
|
|
141
|
+
expires_at: string;
|
|
142
|
+
created_at: Generated<string>;
|
|
143
|
+
}
|
|
144
|
+
interface OAuthClientTable {
|
|
145
|
+
id: string;
|
|
146
|
+
name: string;
|
|
147
|
+
redirect_uris: string;
|
|
148
|
+
scopes: string | null;
|
|
149
|
+
created_at: Generated<string>;
|
|
150
|
+
updated_at: Generated<string>;
|
|
151
|
+
}
|
|
152
|
+
interface DeviceCodeTable {
|
|
153
|
+
device_code: string;
|
|
154
|
+
user_code: string;
|
|
155
|
+
scopes: string;
|
|
156
|
+
user_id: string | null;
|
|
157
|
+
status: string;
|
|
158
|
+
expires_at: string;
|
|
159
|
+
interval: number;
|
|
160
|
+
last_polled_at: string | null;
|
|
161
|
+
created_at: Generated<string>;
|
|
162
|
+
}
|
|
163
|
+
interface OptionTable {
|
|
164
|
+
name: string;
|
|
165
|
+
value: string;
|
|
166
|
+
}
|
|
167
|
+
interface AuditLogTable {
|
|
168
|
+
id: string;
|
|
169
|
+
timestamp: Generated<string>;
|
|
170
|
+
actor_id: string | null;
|
|
171
|
+
actor_ip: string | null;
|
|
172
|
+
action: string;
|
|
173
|
+
resource_type: string | null;
|
|
174
|
+
resource_id: string | null;
|
|
175
|
+
details: string | null;
|
|
176
|
+
status: string | null;
|
|
177
|
+
}
|
|
178
|
+
interface SiteActivityLogTable {
|
|
179
|
+
id: string;
|
|
180
|
+
actor_type: "user" | "api_token" | "system";
|
|
181
|
+
actor_id: string;
|
|
182
|
+
auth_metadata: string | null;
|
|
183
|
+
action_type: string;
|
|
184
|
+
subject_type: string;
|
|
185
|
+
subject_id: string | null;
|
|
186
|
+
related_subject_type: string | null;
|
|
187
|
+
related_subject_id: string | null;
|
|
188
|
+
source_type: "api_route" | "mcp_tool" | "system" | "plugin" | "unknown" | null;
|
|
189
|
+
source_name: string | null;
|
|
190
|
+
result_status: Generated<"succeeded" | "pending" | "failed" | "blocked">;
|
|
191
|
+
scope: string;
|
|
192
|
+
summary: string;
|
|
193
|
+
detail: string | null;
|
|
194
|
+
created_at: Generated<string>;
|
|
195
|
+
}
|
|
196
|
+
interface ContextEntryTable {
|
|
197
|
+
id: string;
|
|
198
|
+
scope: string;
|
|
199
|
+
context_type: string;
|
|
200
|
+
title: string;
|
|
201
|
+
body: string;
|
|
202
|
+
policy_key: string | null;
|
|
203
|
+
source_activity_id: string | null;
|
|
204
|
+
created_by_actor_type: "user" | "api_token" | "system";
|
|
205
|
+
created_by_actor_id: string;
|
|
206
|
+
created_auth_metadata: string | null;
|
|
207
|
+
supersedes_id: string | null;
|
|
208
|
+
version: number;
|
|
209
|
+
is_current: Generated<number>;
|
|
210
|
+
valid_until: string | null;
|
|
211
|
+
reviewed_at: string | null;
|
|
212
|
+
reviewed_by_actor_type: "user" | "api_token" | "system" | null;
|
|
213
|
+
reviewed_by_actor_id: string | null;
|
|
214
|
+
review_note: string | null;
|
|
215
|
+
created_at: Generated<string>;
|
|
216
|
+
updated_at: Generated<string>;
|
|
217
|
+
}
|
|
218
|
+
interface ContextTagTable {
|
|
219
|
+
context_entry_id: string;
|
|
220
|
+
tag: string;
|
|
221
|
+
}
|
|
222
|
+
interface ReviewRequestTable {
|
|
223
|
+
id: string;
|
|
224
|
+
status: Generated<"pending" | "approved" | "rejected">;
|
|
225
|
+
collection: string;
|
|
226
|
+
entry_id: string;
|
|
227
|
+
scope: string;
|
|
228
|
+
live_revision_id: string | null;
|
|
229
|
+
draft_revision_id: string | null;
|
|
230
|
+
reviewed_rev: string;
|
|
231
|
+
action_type: string;
|
|
232
|
+
action_hash: string;
|
|
233
|
+
risk_reason: string | null;
|
|
234
|
+
review_payload: string;
|
|
235
|
+
requested_by_actor_type: "user" | "api_token" | "system";
|
|
236
|
+
requested_by_actor_id: string;
|
|
237
|
+
requested_auth_metadata: string | null;
|
|
238
|
+
resolved_by_actor_type: "user" | "api_token" | "system" | null;
|
|
239
|
+
resolved_by_actor_id: string | null;
|
|
240
|
+
resolved_auth_metadata: string | null;
|
|
241
|
+
review_note: string | null;
|
|
242
|
+
created_at: Generated<string>;
|
|
243
|
+
updated_at: Generated<string>;
|
|
244
|
+
resolved_at: string | null;
|
|
245
|
+
}
|
|
246
|
+
interface EntityAliasTable {
|
|
247
|
+
id: string;
|
|
248
|
+
entity_type: string;
|
|
249
|
+
collection_slug: string | null;
|
|
250
|
+
entity_id: string;
|
|
251
|
+
alias: string;
|
|
252
|
+
normalized_alias: string;
|
|
253
|
+
created_at: Generated<string>;
|
|
254
|
+
}
|
|
255
|
+
interface HandoffSnapshotTable {
|
|
256
|
+
id: string;
|
|
257
|
+
scope: string;
|
|
258
|
+
actor_type: "user" | "api_token" | "system";
|
|
259
|
+
actor_id: string;
|
|
260
|
+
auth_metadata: string | null;
|
|
261
|
+
objective: string;
|
|
262
|
+
reasoning: string;
|
|
263
|
+
key_findings: string;
|
|
264
|
+
touched_objects: string;
|
|
265
|
+
pending_actions: string;
|
|
266
|
+
tool_evidence: string;
|
|
267
|
+
confidence: number | null;
|
|
268
|
+
handoff_kind: "pause" | "review_request" | "assignment";
|
|
269
|
+
reference_type: "review_request" | "assignment" | null;
|
|
270
|
+
reference_id: string | null;
|
|
271
|
+
created_at: Generated<string>;
|
|
272
|
+
resumed_at: string | null;
|
|
273
|
+
}
|
|
274
|
+
interface AssignmentTable {
|
|
275
|
+
id: string;
|
|
276
|
+
scope: string;
|
|
277
|
+
assignment_type: string;
|
|
278
|
+
status: Generated<"pending" | "accepted" | "in_progress" | "blocked" | "completed" | "declined" | "cancelled">;
|
|
279
|
+
priority: Generated<"low" | "normal" | "high" | "urgent">;
|
|
280
|
+
title: string;
|
|
281
|
+
summary: string | null;
|
|
282
|
+
details: string | null;
|
|
283
|
+
assigned_by_actor_type: "user" | "api_token" | "system";
|
|
284
|
+
assigned_by_actor_id: string;
|
|
285
|
+
assigned_to_actor_type: "user" | "api_token" | "system" | null;
|
|
286
|
+
assigned_to_actor_id: string | null;
|
|
287
|
+
metadata: string;
|
|
288
|
+
related_handoff_snapshot_id: string | null;
|
|
289
|
+
related_hitl_request_id: string | null;
|
|
290
|
+
due_at: string | null;
|
|
291
|
+
created_at: Generated<string>;
|
|
292
|
+
updated_at: Generated<string>;
|
|
293
|
+
accepted_at: string | null;
|
|
294
|
+
started_at: string | null;
|
|
295
|
+
blocked_at: string | null;
|
|
296
|
+
completed_at: string | null;
|
|
297
|
+
declined_at: string | null;
|
|
298
|
+
cancelled_at: string | null;
|
|
299
|
+
}
|
|
300
|
+
interface HitlRequestTable {
|
|
301
|
+
id: string;
|
|
302
|
+
scope: string;
|
|
303
|
+
action_type: string;
|
|
304
|
+
status: Generated<"pending" | "approved" | "rejected">;
|
|
305
|
+
priority: Generated<"low" | "normal" | "high" | "urgent">;
|
|
306
|
+
title: string;
|
|
307
|
+
summary: string | null;
|
|
308
|
+
risk_reason: string;
|
|
309
|
+
review_payload: string;
|
|
310
|
+
target_ref_type: string;
|
|
311
|
+
target_ref_id: string;
|
|
312
|
+
requested_by_actor_type: "user" | "api_token" | "system";
|
|
313
|
+
requested_by_actor_id: string;
|
|
314
|
+
requested_auth_metadata: string | null;
|
|
315
|
+
resolved_by_actor_type: "user" | "api_token" | "system" | null;
|
|
316
|
+
resolved_by_actor_id: string | null;
|
|
317
|
+
resolved_auth_metadata: string | null;
|
|
318
|
+
review_note: string | null;
|
|
319
|
+
metadata: string;
|
|
320
|
+
related_assignment_id: string | null;
|
|
321
|
+
related_handoff_snapshot_id: string | null;
|
|
322
|
+
sla_due_at: string | null;
|
|
323
|
+
created_at: Generated<string>;
|
|
324
|
+
updated_at: Generated<string>;
|
|
325
|
+
resolved_at: string | null;
|
|
326
|
+
}
|
|
327
|
+
interface HitlExecutionTable {
|
|
328
|
+
id: string;
|
|
329
|
+
hitl_request_id: string | null;
|
|
330
|
+
plugin_id: string;
|
|
331
|
+
tool_name: string;
|
|
332
|
+
review_mode: "quick" | "strong";
|
|
333
|
+
action_hash: string;
|
|
334
|
+
idempotency_key: string;
|
|
335
|
+
status: Generated<"claimed" | "succeeded" | "failed" | "indeterminate">;
|
|
336
|
+
actor_type: "user" | "api_token" | "system";
|
|
337
|
+
actor_id: string;
|
|
338
|
+
scope: string;
|
|
339
|
+
target_ref_type: string;
|
|
340
|
+
target_ref_id: string;
|
|
341
|
+
result_json: string | null;
|
|
342
|
+
error_code: string | null;
|
|
343
|
+
created_at: Generated<string>;
|
|
344
|
+
updated_at: Generated<string>;
|
|
345
|
+
completed_at: string | null;
|
|
346
|
+
}
|
|
347
|
+
interface PluginSecretTable {
|
|
348
|
+
plugin_id: string;
|
|
349
|
+
secret_name: string;
|
|
350
|
+
encryption_version: number;
|
|
351
|
+
key_id: string;
|
|
352
|
+
nonce: string;
|
|
353
|
+
ciphertext: string;
|
|
354
|
+
fingerprint: string;
|
|
355
|
+
created_at: Generated<string>;
|
|
356
|
+
updated_at: Generated<string>;
|
|
357
|
+
}
|
|
358
|
+
interface MigrationTable {
|
|
359
|
+
name: string;
|
|
360
|
+
timestamp: string;
|
|
361
|
+
}
|
|
362
|
+
interface CollectionTable {
|
|
363
|
+
id: string;
|
|
364
|
+
slug: string;
|
|
365
|
+
label: string;
|
|
366
|
+
label_singular: string | null;
|
|
367
|
+
description: string | null;
|
|
368
|
+
icon: string | null;
|
|
369
|
+
supports: string | null;
|
|
370
|
+
source: string | null;
|
|
371
|
+
search_config: string | null;
|
|
372
|
+
has_seo: number;
|
|
373
|
+
url_pattern: string | null;
|
|
374
|
+
comments_enabled: Generated<number>;
|
|
375
|
+
comments_moderation: Generated<string>;
|
|
376
|
+
comments_closed_after_days: Generated<number>;
|
|
377
|
+
comments_auto_approve_users: Generated<number>;
|
|
378
|
+
created_at: Generated<string>;
|
|
379
|
+
updated_at: Generated<string>;
|
|
380
|
+
}
|
|
381
|
+
interface SeoTable {
|
|
382
|
+
collection: string;
|
|
383
|
+
content_id: string;
|
|
384
|
+
seo_title: string | null;
|
|
385
|
+
seo_description: string | null;
|
|
386
|
+
seo_image: string | null;
|
|
387
|
+
seo_canonical: string | null;
|
|
388
|
+
seo_no_index: number;
|
|
389
|
+
created_at: Generated<string>;
|
|
390
|
+
updated_at: Generated<string>;
|
|
391
|
+
}
|
|
392
|
+
interface FieldTable {
|
|
393
|
+
id: string;
|
|
394
|
+
collection_id: string;
|
|
395
|
+
slug: string;
|
|
396
|
+
label: string;
|
|
397
|
+
type: string;
|
|
398
|
+
column_type: string;
|
|
399
|
+
required: number;
|
|
400
|
+
unique: number;
|
|
401
|
+
default_value: string | null;
|
|
402
|
+
validation: string | null;
|
|
403
|
+
widget: string | null;
|
|
404
|
+
options: string | null;
|
|
405
|
+
sort_order: number;
|
|
406
|
+
searchable: Generated<number>;
|
|
407
|
+
translatable: Generated<number>;
|
|
408
|
+
created_at: Generated<string>;
|
|
409
|
+
}
|
|
410
|
+
interface PluginStorageTable {
|
|
411
|
+
plugin_id: string;
|
|
412
|
+
collection: string;
|
|
413
|
+
id: string;
|
|
414
|
+
data: string;
|
|
415
|
+
created_at: Generated<string>;
|
|
416
|
+
updated_at: Generated<string>;
|
|
417
|
+
}
|
|
418
|
+
interface PluginStateTable {
|
|
419
|
+
plugin_id: string;
|
|
420
|
+
version: string;
|
|
421
|
+
status: string;
|
|
422
|
+
installed_at: Generated<string>;
|
|
423
|
+
activated_at: string | null;
|
|
424
|
+
deactivated_at: string | null;
|
|
425
|
+
data: string | null;
|
|
426
|
+
source: Generated<string>;
|
|
427
|
+
marketplace_version: string | null;
|
|
428
|
+
display_name: string | null;
|
|
429
|
+
description: string | null;
|
|
430
|
+
}
|
|
431
|
+
interface PluginIndexTable {
|
|
432
|
+
plugin_id: string;
|
|
433
|
+
collection: string;
|
|
434
|
+
index_name: string;
|
|
435
|
+
fields: string;
|
|
436
|
+
created_at: Generated<string>;
|
|
437
|
+
}
|
|
438
|
+
interface MenuTable {
|
|
439
|
+
id: string;
|
|
440
|
+
name: string;
|
|
441
|
+
label: string;
|
|
442
|
+
created_at: Generated<string>;
|
|
443
|
+
updated_at: Generated<string>;
|
|
444
|
+
locale: Generated<string>;
|
|
445
|
+
translation_group: Generated<string | null>;
|
|
446
|
+
}
|
|
447
|
+
interface MenuItemTable {
|
|
448
|
+
id: string;
|
|
449
|
+
menu_id: string;
|
|
450
|
+
parent_id: string | null;
|
|
451
|
+
sort_order: number;
|
|
452
|
+
type: string;
|
|
453
|
+
reference_collection: string | null;
|
|
454
|
+
reference_id: string | null;
|
|
455
|
+
custom_url: string | null;
|
|
456
|
+
label: string;
|
|
457
|
+
title_attr: string | null;
|
|
458
|
+
target: string | null;
|
|
459
|
+
css_classes: string | null;
|
|
460
|
+
created_at: Generated<string>;
|
|
461
|
+
locale: Generated<string>;
|
|
462
|
+
translation_group: Generated<string | null>;
|
|
463
|
+
}
|
|
464
|
+
interface WidgetAreaTable {
|
|
465
|
+
id: string;
|
|
466
|
+
name: string;
|
|
467
|
+
label: string;
|
|
468
|
+
description: string | null;
|
|
469
|
+
created_at: Generated<string>;
|
|
470
|
+
}
|
|
471
|
+
interface WidgetTable {
|
|
472
|
+
id: string;
|
|
473
|
+
area_id: string;
|
|
474
|
+
sort_order: number;
|
|
475
|
+
type: string;
|
|
476
|
+
title: string | null;
|
|
477
|
+
content: string | null;
|
|
478
|
+
menu_name: string | null;
|
|
479
|
+
component_id: string | null;
|
|
480
|
+
component_props: string | null;
|
|
481
|
+
created_at: Generated<string>;
|
|
482
|
+
}
|
|
483
|
+
interface CronTaskTable {
|
|
484
|
+
id: string;
|
|
485
|
+
plugin_id: string;
|
|
486
|
+
task_name: string;
|
|
487
|
+
schedule: string;
|
|
488
|
+
is_oneshot: number;
|
|
489
|
+
data: string | null;
|
|
490
|
+
next_run_at: string;
|
|
491
|
+
last_run_at: string | null;
|
|
492
|
+
status: string;
|
|
493
|
+
locked_at: string | null;
|
|
494
|
+
enabled: number;
|
|
495
|
+
created_at: Generated<string>;
|
|
496
|
+
}
|
|
497
|
+
interface CommentTable {
|
|
498
|
+
id: string;
|
|
499
|
+
collection: string;
|
|
500
|
+
content_id: string;
|
|
501
|
+
parent_id: string | null;
|
|
502
|
+
author_name: string;
|
|
503
|
+
author_email: string;
|
|
504
|
+
author_user_id: string | null;
|
|
505
|
+
body: string;
|
|
506
|
+
status: string;
|
|
507
|
+
ip_hash: string | null;
|
|
508
|
+
user_agent: string | null;
|
|
509
|
+
moderation_metadata: string | null;
|
|
510
|
+
created_at: Generated<string>;
|
|
511
|
+
updated_at: Generated<string>;
|
|
512
|
+
}
|
|
513
|
+
interface CommentReactionTable {
|
|
514
|
+
id: string;
|
|
515
|
+
comment_id: string;
|
|
516
|
+
reaction: string;
|
|
517
|
+
voter_hash: string;
|
|
518
|
+
created_at: Generated<string>;
|
|
519
|
+
}
|
|
520
|
+
interface SectionTable {
|
|
521
|
+
id: string;
|
|
522
|
+
slug: string;
|
|
523
|
+
title: string;
|
|
524
|
+
description: string | null;
|
|
525
|
+
keywords: string | null;
|
|
526
|
+
content: string;
|
|
527
|
+
preview_media_id: string | null;
|
|
528
|
+
source: string;
|
|
529
|
+
theme_id: string | null;
|
|
530
|
+
created_at: Generated<string>;
|
|
531
|
+
updated_at: Generated<string>;
|
|
532
|
+
}
|
|
533
|
+
interface DinewaySessionTable {
|
|
534
|
+
id: string;
|
|
535
|
+
value: string;
|
|
536
|
+
updated_at: Generated<string>;
|
|
537
|
+
}
|
|
538
|
+
interface RelationTable {
|
|
539
|
+
id: string;
|
|
540
|
+
name: string;
|
|
541
|
+
parent_collection: string;
|
|
542
|
+
child_collection: string;
|
|
543
|
+
parent_label: string;
|
|
544
|
+
child_label: string;
|
|
545
|
+
locale: Generated<string>;
|
|
546
|
+
translation_group: string;
|
|
547
|
+
created_at: Generated<string>;
|
|
548
|
+
updated_at: Generated<string>;
|
|
549
|
+
}
|
|
550
|
+
interface ContentReferenceTable {
|
|
551
|
+
id: string;
|
|
552
|
+
relation_group: string;
|
|
553
|
+
parent_group: string;
|
|
554
|
+
child_group: string;
|
|
555
|
+
sort_order: Generated<number>;
|
|
556
|
+
created_at: Generated<string>;
|
|
557
|
+
}
|
|
558
|
+
interface MediaUsageSourceTable {
|
|
559
|
+
source_key: string;
|
|
560
|
+
source_type: string;
|
|
561
|
+
collection_slug: string | null;
|
|
562
|
+
content_id: string | null;
|
|
563
|
+
source_variant: string;
|
|
564
|
+
locale: string | null;
|
|
565
|
+
translation_group: string | null;
|
|
566
|
+
content_slug: string | null;
|
|
567
|
+
content_title: string | null;
|
|
568
|
+
content_status: string | null;
|
|
569
|
+
content_scheduled_at: string | null;
|
|
570
|
+
content_deleted_at: string | null;
|
|
571
|
+
revision_id: string | null;
|
|
572
|
+
current_generation: string;
|
|
573
|
+
schema_version: Generated<number>;
|
|
574
|
+
source_updated_at: string | null;
|
|
575
|
+
source_version: number | null;
|
|
576
|
+
source_fingerprint: string | null;
|
|
577
|
+
source_completeness: Generated<string>;
|
|
578
|
+
last_attempted_at: string | null;
|
|
579
|
+
last_error_code: string | null;
|
|
580
|
+
indexed_at: Generated<string>;
|
|
581
|
+
created_at: Generated<string>;
|
|
582
|
+
updated_at: Generated<string>;
|
|
583
|
+
}
|
|
584
|
+
interface MediaUsageTable {
|
|
585
|
+
id: string;
|
|
586
|
+
source_key: string;
|
|
587
|
+
generation: string;
|
|
588
|
+
field_slug: string;
|
|
589
|
+
field_path: string;
|
|
590
|
+
occurrence_index: Generated<number>;
|
|
591
|
+
reference_type: string;
|
|
592
|
+
media_id: string | null;
|
|
593
|
+
provider: Generated<string>;
|
|
594
|
+
provider_asset_id: string;
|
|
595
|
+
media_kind: string | null;
|
|
596
|
+
mime_type: string | null;
|
|
597
|
+
created_at: Generated<string>;
|
|
598
|
+
}
|
|
599
|
+
interface MediaUsageIndexStatusTable {
|
|
600
|
+
adapter_id: string;
|
|
601
|
+
scope_type: string;
|
|
602
|
+
scope_key: string;
|
|
603
|
+
status: string;
|
|
604
|
+
schema_version: Generated<number>;
|
|
605
|
+
started_at: string | null;
|
|
606
|
+
completed_at: string | null;
|
|
607
|
+
cursor: string | null;
|
|
608
|
+
indexed_source_count: Generated<number>;
|
|
609
|
+
failed_source_count: Generated<number>;
|
|
610
|
+
last_error_code: string | null;
|
|
611
|
+
updated_at: Generated<string>;
|
|
612
|
+
}
|
|
613
|
+
interface DinewayWebSessionTable {
|
|
614
|
+
id: string;
|
|
615
|
+
forgeway_user_id: string;
|
|
616
|
+
email: string | null;
|
|
617
|
+
encrypted_refresh_token: string;
|
|
618
|
+
status: Generated<string>;
|
|
619
|
+
expires_at: string;
|
|
620
|
+
last_seen_at: string | null;
|
|
621
|
+
revoked_at: string | null;
|
|
622
|
+
created_at: Generated<string>;
|
|
623
|
+
updated_at: Generated<string>;
|
|
624
|
+
}
|
|
625
|
+
interface DinewayWebOnboardingTable {
|
|
626
|
+
id: string;
|
|
627
|
+
session_id: string;
|
|
628
|
+
forgeway_user_id: string;
|
|
629
|
+
status: Generated<string>;
|
|
630
|
+
current_step: string;
|
|
631
|
+
requested_plan_code: string | null;
|
|
632
|
+
source: string | null;
|
|
633
|
+
handoff_id: string | null;
|
|
634
|
+
context_json: Generated<string>;
|
|
635
|
+
completed_at: string | null;
|
|
636
|
+
created_at: Generated<string>;
|
|
637
|
+
updated_at: Generated<string>;
|
|
638
|
+
}
|
|
639
|
+
interface DinewayWebCheckoutSessionTable {
|
|
640
|
+
id: string;
|
|
641
|
+
session_id: string;
|
|
642
|
+
forgeway_user_id: string;
|
|
643
|
+
plan_code: string;
|
|
644
|
+
forgeway_checkout_session_id: string;
|
|
645
|
+
status: Generated<string>;
|
|
646
|
+
success_url: string;
|
|
647
|
+
cancel_url: string;
|
|
648
|
+
completed_at: string | null;
|
|
649
|
+
created_at: Generated<string>;
|
|
650
|
+
updated_at: Generated<string>;
|
|
651
|
+
}
|
|
652
|
+
interface DinewayWebAccountProjectionTable {
|
|
653
|
+
forgeway_user_id: string;
|
|
654
|
+
email: string | null;
|
|
655
|
+
plan_code: string;
|
|
656
|
+
projection_json: string;
|
|
657
|
+
synced_at: string;
|
|
658
|
+
created_at: Generated<string>;
|
|
659
|
+
updated_at: Generated<string>;
|
|
660
|
+
}
|
|
661
|
+
interface DinewayWebBillingProjectionTable {
|
|
662
|
+
forgeway_user_id: string;
|
|
663
|
+
plan_code: string;
|
|
664
|
+
projection_json: string;
|
|
665
|
+
synced_at: string;
|
|
666
|
+
created_at: Generated<string>;
|
|
667
|
+
updated_at: Generated<string>;
|
|
668
|
+
}
|
|
669
|
+
interface DinewayWebCreditsProjectionTable {
|
|
670
|
+
forgeway_user_id: string;
|
|
671
|
+
plan_code: string;
|
|
672
|
+
available_credits: number;
|
|
673
|
+
projection_json: string;
|
|
674
|
+
synced_at: string;
|
|
675
|
+
created_at: Generated<string>;
|
|
676
|
+
updated_at: Generated<string>;
|
|
677
|
+
}
|
|
678
|
+
interface DinewayWebSitesProjectionTable {
|
|
679
|
+
forgeway_user_id: string;
|
|
680
|
+
plan_code: string;
|
|
681
|
+
used_hosted_sites: number;
|
|
682
|
+
hosted_site_limit: number | null;
|
|
683
|
+
projection_json: string;
|
|
684
|
+
synced_at: string;
|
|
685
|
+
created_at: Generated<string>;
|
|
686
|
+
updated_at: Generated<string>;
|
|
687
|
+
}
|
|
688
|
+
interface DinewayWebHandoffTable {
|
|
689
|
+
id: string;
|
|
690
|
+
token_hash: string;
|
|
691
|
+
forgeway_user_id: string;
|
|
692
|
+
email: string | null;
|
|
693
|
+
target: string;
|
|
694
|
+
reason: string;
|
|
695
|
+
context_json: Generated<string>;
|
|
696
|
+
status: Generated<string>;
|
|
697
|
+
expires_at: string;
|
|
698
|
+
consumed_at: string | null;
|
|
699
|
+
created_at: Generated<string>;
|
|
700
|
+
updated_at: Generated<string>;
|
|
701
|
+
}
|
|
702
|
+
interface DinewayWebHandoffAuditTable {
|
|
703
|
+
id: string;
|
|
704
|
+
handoff_id: string;
|
|
705
|
+
event: string;
|
|
706
|
+
actor_forgeway_user_id: string | null;
|
|
707
|
+
metadata_json: Generated<string>;
|
|
708
|
+
created_at: Generated<string>;
|
|
709
|
+
}
|
|
710
|
+
interface Database {
|
|
711
|
+
revisions: RevisionTable;
|
|
712
|
+
taxonomies: TaxonomyTable;
|
|
713
|
+
content_taxonomies: ContentTaxonomyTable;
|
|
714
|
+
_dineway_taxonomy_defs: TaxonomyDefTable;
|
|
715
|
+
media: MediaTable;
|
|
716
|
+
users: UserTable;
|
|
717
|
+
credentials: CredentialTable;
|
|
718
|
+
auth_tokens: AuthTokenTable;
|
|
719
|
+
oauth_accounts: OAuthAccountTable;
|
|
720
|
+
allowed_domains: AllowedDomainTable;
|
|
721
|
+
auth_challenges: AuthChallengeTable;
|
|
722
|
+
options: OptionTable;
|
|
723
|
+
audit_logs: AuditLogTable;
|
|
724
|
+
_dineway_activity_log: SiteActivityLogTable;
|
|
725
|
+
_dineway_context_entries: ContextEntryTable;
|
|
726
|
+
_dineway_context_tags: ContextTagTable;
|
|
727
|
+
_dineway_review_requests: ReviewRequestTable;
|
|
728
|
+
_dineway_entity_aliases: EntityAliasTable;
|
|
729
|
+
_dineway_handoff_snapshots: HandoffSnapshotTable;
|
|
730
|
+
_dineway_assignments: AssignmentTable;
|
|
731
|
+
_dineway_hitl_requests: HitlRequestTable;
|
|
732
|
+
_dineway_hitl_executions: HitlExecutionTable;
|
|
733
|
+
_dineway_plugin_secrets: PluginSecretTable;
|
|
734
|
+
_dineway_migrations: MigrationTable;
|
|
735
|
+
_dineway_collections: CollectionTable;
|
|
736
|
+
_dineway_fields: FieldTable;
|
|
737
|
+
_plugin_storage: PluginStorageTable;
|
|
738
|
+
_plugin_state: PluginStateTable;
|
|
739
|
+
_plugin_indexes: PluginIndexTable;
|
|
740
|
+
_dineway_menus: MenuTable;
|
|
741
|
+
_dineway_menu_items: MenuItemTable;
|
|
742
|
+
_dineway_widget_areas: WidgetAreaTable;
|
|
743
|
+
_dineway_widgets: WidgetTable;
|
|
744
|
+
_dineway_sections: SectionTable;
|
|
745
|
+
_dineway_api_tokens: ApiTokenTable;
|
|
746
|
+
_dineway_oauth_tokens: OAuthTokenTable;
|
|
747
|
+
_dineway_device_codes: DeviceCodeTable;
|
|
748
|
+
_dineway_authorization_codes: AuthorizationCodeTable;
|
|
749
|
+
_dineway_oauth_clients: OAuthClientTable;
|
|
750
|
+
_dineway_seo: SeoTable;
|
|
751
|
+
_dineway_cron_tasks: CronTaskTable;
|
|
752
|
+
_dineway_comments: CommentTable;
|
|
753
|
+
_dineway_comment_reactions: CommentReactionTable;
|
|
754
|
+
_dineway_redirects: RedirectTable;
|
|
755
|
+
_dineway_404_log: NotFoundLogTable;
|
|
756
|
+
_dineway_bylines: BylineTable;
|
|
757
|
+
_dineway_content_bylines: ContentBylineTable;
|
|
758
|
+
_dineway_byline_fields: BylineFieldTable;
|
|
759
|
+
_dineway_byline_field_values: BylineFieldValueTable;
|
|
760
|
+
_dineway_byline_field_group_values: BylineFieldGroupValueTable;
|
|
761
|
+
_dineway_relations: RelationTable;
|
|
762
|
+
_dineway_content_references: ContentReferenceTable;
|
|
763
|
+
_dineway_media_usage_sources: MediaUsageSourceTable;
|
|
764
|
+
_dineway_media_usage: MediaUsageTable;
|
|
765
|
+
_dineway_media_usage_index_status: MediaUsageIndexStatusTable;
|
|
766
|
+
_dineway_rate_limits: RateLimitTable;
|
|
767
|
+
_dineway_sessions: DinewaySessionTable;
|
|
768
|
+
_dineway_dineway_web_sessions: DinewayWebSessionTable;
|
|
769
|
+
_dineway_dineway_web_onboarding: DinewayWebOnboardingTable;
|
|
770
|
+
_dineway_dineway_web_checkout_sessions: DinewayWebCheckoutSessionTable;
|
|
771
|
+
_dineway_dineway_web_account_projections: DinewayWebAccountProjectionTable;
|
|
772
|
+
_dineway_dineway_web_billing_projections: DinewayWebBillingProjectionTable;
|
|
773
|
+
_dineway_dineway_web_credits_projections: DinewayWebCreditsProjectionTable;
|
|
774
|
+
_dineway_dineway_web_sites_projections: DinewayWebSitesProjectionTable;
|
|
775
|
+
_dineway_dineway_web_handoffs: DinewayWebHandoffTable;
|
|
776
|
+
_dineway_dineway_web_handoff_audit: DinewayWebHandoffAuditTable;
|
|
777
|
+
restaurant_locations: RestaurantLocationTable;
|
|
778
|
+
restaurant_location_memberships: RestaurantLocationMembershipTable;
|
|
779
|
+
restaurant_operating_settings: RestaurantOperatingSettingsTable;
|
|
780
|
+
restaurant_menus: RestaurantMenuTable;
|
|
781
|
+
restaurant_menu_location_assignments: RestaurantMenuLocationAssignmentTable;
|
|
782
|
+
restaurant_menu_sections: RestaurantMenuSectionTable;
|
|
783
|
+
restaurant_menu_items: RestaurantMenuItemTable;
|
|
784
|
+
restaurant_menu_section_items: RestaurantMenuSectionItemTable;
|
|
785
|
+
restaurant_modifier_groups: RestaurantModifierGroupTable;
|
|
786
|
+
restaurant_modifier_options: RestaurantModifierOptionTable;
|
|
787
|
+
restaurant_menu_item_modifier_groups: RestaurantMenuItemModifierGroupTable;
|
|
788
|
+
restaurant_menu_item_translations: RestaurantMenuItemTranslationTable;
|
|
789
|
+
restaurant_menu_overrides: RestaurantMenuOverrideTable;
|
|
790
|
+
restaurant_hours: RestaurantHoursTable;
|
|
791
|
+
restaurant_hours_overrides: RestaurantHoursOverrideTable;
|
|
792
|
+
restaurant_special_hours: RestaurantSpecialHoursTable;
|
|
793
|
+
restaurant_closures: RestaurantClosureTable;
|
|
794
|
+
restaurant_reservation_settings: RestaurantReservationSettingsTable;
|
|
795
|
+
restaurant_capacity_overrides: RestaurantCapacityOverrideTable;
|
|
796
|
+
restaurant_zones: RestaurantZoneTable;
|
|
797
|
+
restaurant_tables: RestaurantTableTable;
|
|
798
|
+
restaurant_reservations: RestaurantReservationTable;
|
|
799
|
+
restaurant_reservation_blocks: RestaurantReservationBlockTable;
|
|
800
|
+
restaurant_capacity_counters: RestaurantCapacityCounterTable;
|
|
801
|
+
restaurant_reservation_holds: RestaurantReservationHoldTable;
|
|
802
|
+
restaurant_reservation_offers: RestaurantReservationOfferTable;
|
|
803
|
+
restaurant_reservation_payment_policies: RestaurantReservationPaymentPolicyTable;
|
|
804
|
+
restaurant_reservation_experiences: RestaurantReservationExperienceTable;
|
|
805
|
+
restaurant_reservation_addon_categories: RestaurantReservationAddonCategoryTable;
|
|
806
|
+
restaurant_reservation_addons: RestaurantReservationAddonTable;
|
|
807
|
+
restaurant_reservation_experience_addon_categories: RestaurantReservationExperienceAddonCategoryTable;
|
|
808
|
+
restaurant_reservation_experience_included_addons: RestaurantReservationExperienceIncludedAddonTable;
|
|
809
|
+
restaurant_reservation_hold_commercial_selections: RestaurantReservationHoldCommercialSelectionTable;
|
|
810
|
+
restaurant_reservation_hold_addons: RestaurantReservationHoldAddonTable;
|
|
811
|
+
restaurant_reservation_hold_addon_operations: RestaurantReservationHoldAddonOperationTable;
|
|
812
|
+
restaurant_reservation_promotions: RestaurantReservationPromotionTable;
|
|
813
|
+
restaurant_reservation_promotion_allocations: RestaurantReservationPromotionAllocationTable;
|
|
814
|
+
restaurant_reservation_promotion_operations: RestaurantReservationPromotionOperationTable;
|
|
815
|
+
restaurant_gift_cards: RestaurantGiftCardTable;
|
|
816
|
+
restaurant_reservation_gift_card_allocations: RestaurantReservationGiftCardAllocationTable;
|
|
817
|
+
restaurant_gift_card_ledger_entries: RestaurantGiftCardLedgerEntryTable;
|
|
818
|
+
restaurant_reservation_gift_card_operations: RestaurantReservationGiftCardOperationTable;
|
|
819
|
+
restaurant_reservation_quotes: RestaurantReservationQuoteTable;
|
|
820
|
+
restaurant_reservation_quote_lines: RestaurantReservationQuoteLineTable;
|
|
821
|
+
restaurant_reservation_quote_checkouts: RestaurantReservationQuoteCheckoutTable;
|
|
822
|
+
restaurant_reservation_guest_settings: RestaurantReservationGuestSettingsTable;
|
|
823
|
+
restaurant_reservation_guest_fields: RestaurantReservationGuestFieldTable;
|
|
824
|
+
restaurant_reservation_guest_field_values: RestaurantReservationGuestFieldValueTable;
|
|
825
|
+
restaurant_reservation_quote_guest_contexts: RestaurantReservationQuoteGuestContextTable;
|
|
826
|
+
restaurant_reservation_quote_guest_field_values: RestaurantReservationQuoteGuestFieldValueTable;
|
|
827
|
+
restaurant_reservation_demand_settings: RestaurantReservationDemandSettingsTable;
|
|
828
|
+
restaurant_reservation_language_settings: RestaurantReservationLanguageSettingsTable;
|
|
829
|
+
restaurant_reservation_analytics_settings: RestaurantReservationAnalyticsSettingsTable;
|
|
830
|
+
restaurant_reservation_analytics_events: RestaurantReservationAnalyticsEventTable;
|
|
831
|
+
restaurant_reservation_requests: RestaurantReservationRequestTable;
|
|
832
|
+
restaurant_reservation_request_table_assignments: RestaurantReservationRequestTableAssignmentTable;
|
|
833
|
+
restaurant_priority_alerts: RestaurantPriorityAlertTable;
|
|
834
|
+
restaurant_priority_alert_opportunities: RestaurantPriorityAlertOpportunityTable;
|
|
835
|
+
restaurant_priority_alert_deliveries: RestaurantPriorityAlertDeliveryTable;
|
|
836
|
+
restaurant_reservation_table_assignments: RestaurantReservationTableAssignmentTable;
|
|
837
|
+
restaurant_guest_access: RestaurantGuestAccessTable;
|
|
838
|
+
restaurant_reservation_request_payment_link_deliveries: RestaurantReservationRequestPaymentLinkDeliveryTable;
|
|
839
|
+
restaurant_reservation_offer_link_deliveries: RestaurantReservationOfferLinkDeliveryTable;
|
|
840
|
+
restaurant_guest_profiles: RestaurantGuestProfileTable;
|
|
841
|
+
restaurant_guest_profile_retention_settings: RestaurantGuestProfileRetentionSettingsTable;
|
|
842
|
+
restaurant_guest_profile_requests: RestaurantGuestProfileRequestTable;
|
|
843
|
+
restaurant_guest_profile_reservations: RestaurantGuestProfileReservationTable;
|
|
844
|
+
restaurant_guest_profile_sharing_consents: RestaurantGuestProfileSharingConsentTable;
|
|
845
|
+
restaurant_related_location_pairs: RestaurantRelatedLocationPairTable;
|
|
846
|
+
restaurant_guest_consents: RestaurantGuestConsentTable;
|
|
847
|
+
restaurant_order_sequences: RestaurantOrderSequenceTable;
|
|
848
|
+
restaurant_orders: RestaurantOrderTable;
|
|
849
|
+
restaurant_order_snapshots: RestaurantOrderSnapshotTable;
|
|
850
|
+
restaurant_order_items: RestaurantOrderItemTable;
|
|
851
|
+
restaurant_order_item_modifiers: RestaurantOrderItemModifierTable;
|
|
852
|
+
restaurant_order_status_history: RestaurantOrderStatusHistoryTable;
|
|
853
|
+
restaurant_cart_holds: RestaurantCartHoldTable;
|
|
854
|
+
restaurant_payments: RestaurantPaymentTable;
|
|
855
|
+
restaurant_refunds: RestaurantRefundTable;
|
|
856
|
+
restaurant_stripe_settings: RestaurantStripeSettingsTable;
|
|
857
|
+
restaurant_stripe_location_settings: RestaurantStripeLocationSettingsTable;
|
|
858
|
+
restaurant_stripe_manual_tax_rates: RestaurantStripeManualTaxRateTable;
|
|
859
|
+
restaurant_stripe_events: RestaurantStripeEventTable;
|
|
860
|
+
restaurant_delivery_zones: RestaurantDeliveryZoneTable;
|
|
861
|
+
restaurant_delivery_settings: RestaurantDeliverySettingsTable;
|
|
862
|
+
restaurant_dine_in_settings: RestaurantDineInSettingsTable;
|
|
863
|
+
restaurant_dine_in_sessions: RestaurantDineInSessionTable;
|
|
864
|
+
restaurant_tab_rounds: RestaurantTabRoundTable;
|
|
865
|
+
restaurant_outbox_events: RestaurantOutboxEventTable;
|
|
866
|
+
restaurant_outbox_deliveries: RestaurantOutboxDeliveryTable;
|
|
867
|
+
restaurant_kds_tickets: RestaurantKdsTicketTable;
|
|
868
|
+
restaurant_notification_settings: RestaurantNotificationSettingsTable;
|
|
869
|
+
}
|
|
870
|
+
interface RedirectTable {
|
|
871
|
+
id: string;
|
|
872
|
+
source: string;
|
|
873
|
+
destination: string;
|
|
874
|
+
type: number;
|
|
875
|
+
is_pattern: number;
|
|
876
|
+
enabled: number;
|
|
877
|
+
hits: number;
|
|
878
|
+
last_hit_at: string | null;
|
|
879
|
+
group_name: string | null;
|
|
880
|
+
auto: number;
|
|
881
|
+
created_at: string;
|
|
882
|
+
updated_at: string;
|
|
883
|
+
}
|
|
884
|
+
interface NotFoundLogTable {
|
|
885
|
+
id: string;
|
|
886
|
+
path: string;
|
|
887
|
+
referrer: string | null;
|
|
888
|
+
user_agent: string | null;
|
|
889
|
+
ip: string | null;
|
|
890
|
+
hits: number;
|
|
891
|
+
last_seen_at: string | null;
|
|
892
|
+
created_at: string;
|
|
893
|
+
}
|
|
894
|
+
interface BylineTable {
|
|
895
|
+
id: string;
|
|
896
|
+
slug: string;
|
|
897
|
+
display_name: string;
|
|
898
|
+
bio: string | null;
|
|
899
|
+
avatar_media_id: string | null;
|
|
900
|
+
website_url: string | null;
|
|
901
|
+
user_id: string | null;
|
|
902
|
+
is_guest: number;
|
|
903
|
+
created_at: Generated<string>;
|
|
904
|
+
updated_at: Generated<string>;
|
|
905
|
+
locale: Generated<string>;
|
|
906
|
+
translation_group: Generated<string | null>;
|
|
907
|
+
}
|
|
908
|
+
interface ContentBylineTable {
|
|
909
|
+
id: string;
|
|
910
|
+
collection_slug: string;
|
|
911
|
+
content_id: string;
|
|
912
|
+
byline_id: string;
|
|
913
|
+
sort_order: number;
|
|
914
|
+
role_label: string | null;
|
|
915
|
+
created_at: Generated<string>;
|
|
916
|
+
}
|
|
917
|
+
interface BylineFieldTable {
|
|
918
|
+
id: string;
|
|
919
|
+
slug: string;
|
|
920
|
+
label: string;
|
|
921
|
+
type: string;
|
|
922
|
+
required: number;
|
|
923
|
+
translatable: number;
|
|
924
|
+
validation: string | null;
|
|
925
|
+
sort_order: number;
|
|
926
|
+
created_at: Generated<string>;
|
|
927
|
+
updated_at: Generated<string>;
|
|
928
|
+
}
|
|
929
|
+
interface BylineFieldValueTable {
|
|
930
|
+
byline_id: string;
|
|
931
|
+
field_id: string;
|
|
932
|
+
value: string | null;
|
|
933
|
+
created_at: Generated<string>;
|
|
934
|
+
updated_at: Generated<string>;
|
|
935
|
+
}
|
|
936
|
+
interface BylineFieldGroupValueTable {
|
|
937
|
+
translation_group: string;
|
|
938
|
+
field_id: string;
|
|
939
|
+
value: string | null;
|
|
940
|
+
created_at: Generated<string>;
|
|
941
|
+
updated_at: Generated<string>;
|
|
942
|
+
}
|
|
943
|
+
interface RateLimitTable {
|
|
944
|
+
key: string;
|
|
945
|
+
window: string;
|
|
946
|
+
count: number;
|
|
947
|
+
}
|
|
948
|
+
interface RestaurantLocationTable {
|
|
949
|
+
id: string;
|
|
950
|
+
slug: string;
|
|
951
|
+
name: string;
|
|
952
|
+
status: "active" | "archived";
|
|
953
|
+
active_slot: number | null;
|
|
954
|
+
default_key: "default" | null;
|
|
955
|
+
timezone: string;
|
|
956
|
+
currency: string;
|
|
957
|
+
address_line1: string | null;
|
|
958
|
+
address_line2: string | null;
|
|
959
|
+
city: string | null;
|
|
960
|
+
region: string | null;
|
|
961
|
+
postal_code: string | null;
|
|
962
|
+
country_code: string | null;
|
|
963
|
+
latitude: number | null;
|
|
964
|
+
longitude: number | null;
|
|
965
|
+
phone: string | null;
|
|
966
|
+
email: string | null;
|
|
967
|
+
service_modes_json: Generated<string>;
|
|
968
|
+
version: Generated<number>;
|
|
969
|
+
created_at: Generated<string>;
|
|
970
|
+
updated_at: Generated<string>;
|
|
971
|
+
}
|
|
972
|
+
interface RestaurantLocationMembershipTable {
|
|
973
|
+
id: string;
|
|
974
|
+
user_id: string;
|
|
975
|
+
location_id: string | null;
|
|
976
|
+
scope_key: string;
|
|
977
|
+
role: "viewer" | "staff" | "manager";
|
|
978
|
+
created_at: Generated<string>;
|
|
979
|
+
updated_at: Generated<string>;
|
|
980
|
+
}
|
|
981
|
+
interface RestaurantOperatingSettingsTable {
|
|
982
|
+
id: string;
|
|
983
|
+
scope_key: string;
|
|
984
|
+
location_id: string | null;
|
|
985
|
+
default_currency: string | null;
|
|
986
|
+
default_timezone: string | null;
|
|
987
|
+
default_service_modes_json: string | null;
|
|
988
|
+
tips_enabled: number | null;
|
|
989
|
+
suggested_tip_percentages_json: string | null;
|
|
990
|
+
service_fee_basis_points: number | null;
|
|
991
|
+
version: Generated<number>;
|
|
992
|
+
created_at: Generated<string>;
|
|
993
|
+
updated_at: Generated<string>;
|
|
994
|
+
}
|
|
995
|
+
interface RestaurantDeliveryZoneTable {
|
|
996
|
+
id: string;
|
|
997
|
+
location_id: string;
|
|
998
|
+
name: string;
|
|
999
|
+
status: "active" | "archived";
|
|
1000
|
+
priority: number;
|
|
1001
|
+
radius_meters: number | null;
|
|
1002
|
+
postal_codes_json: Generated<string>;
|
|
1003
|
+
area_codes_json: Generated<string>;
|
|
1004
|
+
fee_minor: Generated<number>;
|
|
1005
|
+
minimum_order_minor: Generated<number>;
|
|
1006
|
+
estimated_minutes: Generated<number>;
|
|
1007
|
+
version: Generated<number>;
|
|
1008
|
+
created_at: Generated<string>;
|
|
1009
|
+
updated_at: Generated<string>;
|
|
1010
|
+
}
|
|
1011
|
+
interface RestaurantDeliverySettingsTable {
|
|
1012
|
+
id: string;
|
|
1013
|
+
location_id: string;
|
|
1014
|
+
slot_minutes: Generated<number>;
|
|
1015
|
+
lead_minutes: Generated<number>;
|
|
1016
|
+
booking_horizon_days: Generated<number>;
|
|
1017
|
+
version: Generated<number>;
|
|
1018
|
+
created_at: Generated<string>;
|
|
1019
|
+
updated_at: Generated<string>;
|
|
1020
|
+
}
|
|
1021
|
+
type RestaurantDineInDefaultPaymentMode = "prepaid" | "offline" | "tab";
|
|
1022
|
+
interface RestaurantDineInSettingsTable {
|
|
1023
|
+
id: string;
|
|
1024
|
+
location_id: string;
|
|
1025
|
+
qr_enabled: Generated<number>;
|
|
1026
|
+
offline_payment_enabled: Generated<number>;
|
|
1027
|
+
open_tab_enabled: Generated<number>;
|
|
1028
|
+
default_payment_mode: Generated<RestaurantDineInDefaultPaymentMode>;
|
|
1029
|
+
tab_authorization_ceiling_minor: Generated<number>;
|
|
1030
|
+
session_ttl_seconds: Generated<number>;
|
|
1031
|
+
version: Generated<number>;
|
|
1032
|
+
created_at: Generated<string>;
|
|
1033
|
+
updated_at: Generated<string>;
|
|
1034
|
+
}
|
|
1035
|
+
interface RestaurantNotificationSettingsTable {
|
|
1036
|
+
id: string;
|
|
1037
|
+
scope_key: string;
|
|
1038
|
+
location_id: string | null;
|
|
1039
|
+
webhook_url: string | null;
|
|
1040
|
+
webhook_enabled: Generated<number>;
|
|
1041
|
+
webhook_event_types_json: Generated<string>;
|
|
1042
|
+
external_kds_url: string | null;
|
|
1043
|
+
external_kds_enabled: Generated<number>;
|
|
1044
|
+
external_kds_event_types_json: Generated<string>;
|
|
1045
|
+
email_enabled: Generated<number>;
|
|
1046
|
+
email_event_types_json: Generated<string>;
|
|
1047
|
+
email_templates_json: Generated<string>;
|
|
1048
|
+
version: Generated<number>;
|
|
1049
|
+
created_at: Generated<string>;
|
|
1050
|
+
updated_at: Generated<string>;
|
|
1051
|
+
}
|
|
1052
|
+
interface RestaurantDineInSessionTable {
|
|
1053
|
+
id: string;
|
|
1054
|
+
location_id: string;
|
|
1055
|
+
table_id: string;
|
|
1056
|
+
session_key: string;
|
|
1057
|
+
token_id: string;
|
|
1058
|
+
token_hash: string;
|
|
1059
|
+
service_date: string;
|
|
1060
|
+
status: "open" | "closed" | "cancelled";
|
|
1061
|
+
expires_at: string;
|
|
1062
|
+
opened_at: string;
|
|
1063
|
+
closed_at: string | null;
|
|
1064
|
+
version: Generated<number>;
|
|
1065
|
+
created_at: Generated<string>;
|
|
1066
|
+
updated_at: Generated<string>;
|
|
1067
|
+
}
|
|
1068
|
+
interface RestaurantTabRoundTable {
|
|
1069
|
+
id: string;
|
|
1070
|
+
location_id: string;
|
|
1071
|
+
session_id: string;
|
|
1072
|
+
order_id: string;
|
|
1073
|
+
payment_id: string | null;
|
|
1074
|
+
round_number: number;
|
|
1075
|
+
request_key: string;
|
|
1076
|
+
payment_mode: "prepaid" | "offline" | "tab";
|
|
1077
|
+
status: "open" | "authorized" | "settled" | "voided";
|
|
1078
|
+
authorization_ceiling_minor: Generated<number>;
|
|
1079
|
+
amount_requested_minor: number;
|
|
1080
|
+
amount_authorized_minor: Generated<number>;
|
|
1081
|
+
amount_captured_minor: Generated<number>;
|
|
1082
|
+
amount_refunded_minor: Generated<number>;
|
|
1083
|
+
opened_at: string;
|
|
1084
|
+
settled_at: string | null;
|
|
1085
|
+
version: Generated<number>;
|
|
1086
|
+
created_at: Generated<string>;
|
|
1087
|
+
updated_at: Generated<string>;
|
|
1088
|
+
}
|
|
1089
|
+
interface RestaurantOutboxEventTable {
|
|
1090
|
+
id: string;
|
|
1091
|
+
location_id: string;
|
|
1092
|
+
aggregate_type: string;
|
|
1093
|
+
aggregate_id: string;
|
|
1094
|
+
event_type: string;
|
|
1095
|
+
dedupe_key: string;
|
|
1096
|
+
payload_json: string;
|
|
1097
|
+
status: Generated<string>;
|
|
1098
|
+
attempt_count: Generated<number>;
|
|
1099
|
+
available_at: string;
|
|
1100
|
+
locked_until: string | null;
|
|
1101
|
+
last_error_code: string | null;
|
|
1102
|
+
version: Generated<number>;
|
|
1103
|
+
created_at: Generated<string>;
|
|
1104
|
+
updated_at: Generated<string>;
|
|
1105
|
+
}
|
|
1106
|
+
interface RestaurantOutboxDeliveryTable {
|
|
1107
|
+
id: string;
|
|
1108
|
+
event_id: string;
|
|
1109
|
+
initial_channel: "email" | "sms" | "whatsapp" | "webhook" | "receipt" | "external_kds";
|
|
1110
|
+
channel: "email" | "sms" | "whatsapp" | "webhook" | "receipt" | "external_kds";
|
|
1111
|
+
status: Generated<string>;
|
|
1112
|
+
attempt_count: Generated<number>;
|
|
1113
|
+
channel_attempt_count: Generated<number>;
|
|
1114
|
+
fallback_count: Generated<number>;
|
|
1115
|
+
available_at: string;
|
|
1116
|
+
locked_until: string | null;
|
|
1117
|
+
last_error_code: string | null;
|
|
1118
|
+
version: Generated<number>;
|
|
1119
|
+
created_at: Generated<string>;
|
|
1120
|
+
updated_at: Generated<string>;
|
|
1121
|
+
}
|
|
1122
|
+
interface RestaurantKdsTicketTable {
|
|
1123
|
+
id: string;
|
|
1124
|
+
location_id: string;
|
|
1125
|
+
order_id: string;
|
|
1126
|
+
order_number: number;
|
|
1127
|
+
fulfilment_type: "dine_in" | "pickup" | "delivery";
|
|
1128
|
+
items_json: string;
|
|
1129
|
+
status: Generated<string>;
|
|
1130
|
+
priority: Generated<number>;
|
|
1131
|
+
started_at: string | null;
|
|
1132
|
+
ready_at: string | null;
|
|
1133
|
+
completed_at: string | null;
|
|
1134
|
+
cancelled_at: string | null;
|
|
1135
|
+
version: Generated<number>;
|
|
1136
|
+
created_at: Generated<string>;
|
|
1137
|
+
updated_at: Generated<string>;
|
|
1138
|
+
}
|
|
1139
|
+
type RestaurantServiceScope = "all" | "dine_in" | "pickup" | "delivery" | "reservations";
|
|
1140
|
+
interface RestaurantHoursTable {
|
|
1141
|
+
id: string;
|
|
1142
|
+
weekday: number;
|
|
1143
|
+
service_scope: RestaurantServiceScope;
|
|
1144
|
+
windows_json: Generated<string>;
|
|
1145
|
+
version: Generated<number>;
|
|
1146
|
+
created_at: Generated<string>;
|
|
1147
|
+
updated_at: Generated<string>;
|
|
1148
|
+
}
|
|
1149
|
+
interface RestaurantHoursOverrideTable extends RestaurantHoursTable {
|
|
1150
|
+
location_id: string;
|
|
1151
|
+
}
|
|
1152
|
+
interface RestaurantSpecialHoursTable {
|
|
1153
|
+
id: string;
|
|
1154
|
+
location_id: string;
|
|
1155
|
+
service_date: string;
|
|
1156
|
+
service_scope: RestaurantServiceScope;
|
|
1157
|
+
is_closed: Generated<number>;
|
|
1158
|
+
windows_json: Generated<string>;
|
|
1159
|
+
reason: string | null;
|
|
1160
|
+
version: Generated<number>;
|
|
1161
|
+
created_at: Generated<string>;
|
|
1162
|
+
updated_at: Generated<string>;
|
|
1163
|
+
}
|
|
1164
|
+
interface RestaurantClosureTable {
|
|
1165
|
+
id: string;
|
|
1166
|
+
location_id: string;
|
|
1167
|
+
closure_type: "temporary" | "private_event";
|
|
1168
|
+
scope: "whole_day" | "time_range";
|
|
1169
|
+
service_scope: RestaurantServiceScope;
|
|
1170
|
+
service_date: string | null;
|
|
1171
|
+
starts_at: string | null;
|
|
1172
|
+
ends_at: string | null;
|
|
1173
|
+
reason: string | null;
|
|
1174
|
+
status: "active" | "removed";
|
|
1175
|
+
removed_at: string | null;
|
|
1176
|
+
version: Generated<number>;
|
|
1177
|
+
created_at: Generated<string>;
|
|
1178
|
+
updated_at: Generated<string>;
|
|
1179
|
+
}
|
|
1180
|
+
interface RestaurantReservationSettingsTable {
|
|
1181
|
+
id: string;
|
|
1182
|
+
default_key: Generated<"default">;
|
|
1183
|
+
capacity_per_slot: Generated<number>;
|
|
1184
|
+
slot_minutes: Generated<number>;
|
|
1185
|
+
lead_minutes: Generated<number>;
|
|
1186
|
+
max_party_size: Generated<number>;
|
|
1187
|
+
hold_minutes: Generated<number>;
|
|
1188
|
+
booking_horizon_days: Generated<number>;
|
|
1189
|
+
version: Generated<number>;
|
|
1190
|
+
created_at: Generated<string>;
|
|
1191
|
+
updated_at: Generated<string>;
|
|
1192
|
+
}
|
|
1193
|
+
interface RestaurantCapacityOverrideTable {
|
|
1194
|
+
id: string;
|
|
1195
|
+
location_id: string;
|
|
1196
|
+
capacity_per_slot: number | null;
|
|
1197
|
+
slot_minutes: number | null;
|
|
1198
|
+
lead_minutes: number | null;
|
|
1199
|
+
max_party_size: number | null;
|
|
1200
|
+
hold_minutes: number | null;
|
|
1201
|
+
booking_horizon_days: number | null;
|
|
1202
|
+
version: Generated<number>;
|
|
1203
|
+
created_at: Generated<string>;
|
|
1204
|
+
updated_at: Generated<string>;
|
|
1205
|
+
}
|
|
1206
|
+
interface RestaurantZoneTable {
|
|
1207
|
+
id: string;
|
|
1208
|
+
location_id: string;
|
|
1209
|
+
slug: string;
|
|
1210
|
+
name: string;
|
|
1211
|
+
status: "active" | "archived";
|
|
1212
|
+
sort_order: Generated<number>;
|
|
1213
|
+
version: Generated<number>;
|
|
1214
|
+
created_at: Generated<string>;
|
|
1215
|
+
updated_at: Generated<string>;
|
|
1216
|
+
}
|
|
1217
|
+
interface RestaurantTableTable {
|
|
1218
|
+
id: string;
|
|
1219
|
+
location_id: string;
|
|
1220
|
+
zone_id: string;
|
|
1221
|
+
slug: string;
|
|
1222
|
+
name: string;
|
|
1223
|
+
minimum_capacity: Generated<number>;
|
|
1224
|
+
maximum_capacity: number;
|
|
1225
|
+
is_combinable: Generated<number>;
|
|
1226
|
+
combination_group: string | null;
|
|
1227
|
+
status: "active" | "archived";
|
|
1228
|
+
sort_order: Generated<number>;
|
|
1229
|
+
version: Generated<number>;
|
|
1230
|
+
created_at: Generated<string>;
|
|
1231
|
+
updated_at: Generated<string>;
|
|
1232
|
+
}
|
|
1233
|
+
type RestaurantReservationStatus = "pending" | "confirmed" | "seated" | "completed" | "cancelled" | "no_show";
|
|
1234
|
+
interface RestaurantReservationTable {
|
|
1235
|
+
id: string;
|
|
1236
|
+
location_id: string;
|
|
1237
|
+
zone_id: string | null;
|
|
1238
|
+
confirmation_code: string;
|
|
1239
|
+
request_key: string;
|
|
1240
|
+
service_date: string;
|
|
1241
|
+
starts_at: string;
|
|
1242
|
+
ends_at: string;
|
|
1243
|
+
timezone: string;
|
|
1244
|
+
party_size: number;
|
|
1245
|
+
status: RestaurantReservationStatus;
|
|
1246
|
+
source: "public" | "admin" | "mcp" | "import";
|
|
1247
|
+
guest_name: string;
|
|
1248
|
+
guest_email: string | null;
|
|
1249
|
+
guest_phone: string | null;
|
|
1250
|
+
special_requests: string | null;
|
|
1251
|
+
preferred_language: Generated<string>;
|
|
1252
|
+
sms_opt_in: Generated<number>;
|
|
1253
|
+
whatsapp_opt_in: Generated<number>;
|
|
1254
|
+
internal_note: string | null;
|
|
1255
|
+
confirmed_at: string | null;
|
|
1256
|
+
cancelled_at: string | null;
|
|
1257
|
+
version: Generated<number>;
|
|
1258
|
+
created_at: Generated<string>;
|
|
1259
|
+
updated_at: Generated<string>;
|
|
1260
|
+
}
|
|
1261
|
+
interface RestaurantReservationBlockTable {
|
|
1262
|
+
id: string;
|
|
1263
|
+
location_id: string;
|
|
1264
|
+
zone_id: string | null;
|
|
1265
|
+
block_type: "closure" | "capacity_override" | "private_event";
|
|
1266
|
+
starts_at: string;
|
|
1267
|
+
ends_at: string;
|
|
1268
|
+
capacity_override: number | null;
|
|
1269
|
+
reason: string | null;
|
|
1270
|
+
status: "active" | "removed";
|
|
1271
|
+
removed_at: string | null;
|
|
1272
|
+
version: Generated<number>;
|
|
1273
|
+
created_at: Generated<string>;
|
|
1274
|
+
updated_at: Generated<string>;
|
|
1275
|
+
}
|
|
1276
|
+
interface RestaurantCapacityCounterTable {
|
|
1277
|
+
id: string;
|
|
1278
|
+
location_id: string;
|
|
1279
|
+
service_date: string;
|
|
1280
|
+
starts_at: string;
|
|
1281
|
+
reserved_seats: Generated<number>;
|
|
1282
|
+
version: Generated<number>;
|
|
1283
|
+
created_at: Generated<string>;
|
|
1284
|
+
updated_at: Generated<string>;
|
|
1285
|
+
}
|
|
1286
|
+
interface RestaurantReservationHoldTable {
|
|
1287
|
+
id: string;
|
|
1288
|
+
location_id: string;
|
|
1289
|
+
zone_id: Generated<string | null>;
|
|
1290
|
+
reservation_id: string | null;
|
|
1291
|
+
request_key: string;
|
|
1292
|
+
token_id: Generated<string | null>;
|
|
1293
|
+
token_hash: Generated<string | null>;
|
|
1294
|
+
service_date: string;
|
|
1295
|
+
starts_at: string;
|
|
1296
|
+
ends_at: string;
|
|
1297
|
+
party_size: number;
|
|
1298
|
+
status: "active" | "committed" | "released" | "expired";
|
|
1299
|
+
expires_at: string;
|
|
1300
|
+
committed_at: string | null;
|
|
1301
|
+
released_at: string | null;
|
|
1302
|
+
version: Generated<number>;
|
|
1303
|
+
created_at: Generated<string>;
|
|
1304
|
+
updated_at: Generated<string>;
|
|
1305
|
+
}
|
|
1306
|
+
interface RestaurantReservationOfferTable {
|
|
1307
|
+
id: string;
|
|
1308
|
+
source_reservation_id: string;
|
|
1309
|
+
location_id: string;
|
|
1310
|
+
zone_id: string | null;
|
|
1311
|
+
hold_id: string;
|
|
1312
|
+
request_key: string;
|
|
1313
|
+
token_id: string;
|
|
1314
|
+
token_hash: string;
|
|
1315
|
+
expires_at: string;
|
|
1316
|
+
service_date: string;
|
|
1317
|
+
starts_at: string;
|
|
1318
|
+
ends_at: string;
|
|
1319
|
+
duration_minutes: number;
|
|
1320
|
+
party_size: number;
|
|
1321
|
+
message: string | null;
|
|
1322
|
+
payment_mode: "none" | "charge";
|
|
1323
|
+
amount_minor: number | null;
|
|
1324
|
+
currency: string | null;
|
|
1325
|
+
status: "pending" | "accepted" | "declined" | "expired";
|
|
1326
|
+
accepted_reservation_id: string | null;
|
|
1327
|
+
offered_by_actor_type: "user" | "api_token" | "system";
|
|
1328
|
+
offered_by_actor_id: string | null;
|
|
1329
|
+
accepted_at: string | null;
|
|
1330
|
+
declined_at: string | null;
|
|
1331
|
+
expired_at: string | null;
|
|
1332
|
+
version: Generated<number>;
|
|
1333
|
+
created_at: Generated<string>;
|
|
1334
|
+
updated_at: Generated<string>;
|
|
1335
|
+
}
|
|
1336
|
+
interface RestaurantReservationPaymentPolicyTable {
|
|
1337
|
+
id: string;
|
|
1338
|
+
location_id: string;
|
|
1339
|
+
request_key: string;
|
|
1340
|
+
name: string;
|
|
1341
|
+
scope_type: "venue_default" | "party_size" | "service_window" | "experience";
|
|
1342
|
+
experience_key: string | null;
|
|
1343
|
+
service_date: string | null;
|
|
1344
|
+
starts_at_local: string | null;
|
|
1345
|
+
ends_at_local: string | null;
|
|
1346
|
+
min_party_size: number | null;
|
|
1347
|
+
max_party_size: number | null;
|
|
1348
|
+
collection_mode: "none" | "charge" | "authorize";
|
|
1349
|
+
amount_basis: "none" | "fixed" | "per_guest" | "quote_percentage" | "quote_total";
|
|
1350
|
+
amount_value: number | null;
|
|
1351
|
+
currency: string | null;
|
|
1352
|
+
cancellation_window_minutes: Generated<number>;
|
|
1353
|
+
cancellation_fee_basis: Generated<"none" | "fixed" | "percentage" | "full">;
|
|
1354
|
+
cancellation_fee_value: number | null;
|
|
1355
|
+
cancellation_fee_currency: string | null;
|
|
1356
|
+
modification_requires_review: Generated<number>;
|
|
1357
|
+
status: Generated<"active" | "inactive">;
|
|
1358
|
+
version: Generated<number>;
|
|
1359
|
+
created_at: Generated<string>;
|
|
1360
|
+
updated_at: Generated<string>;
|
|
1361
|
+
}
|
|
1362
|
+
interface RestaurantReservationExperienceTable {
|
|
1363
|
+
id: string;
|
|
1364
|
+
location_id: string;
|
|
1365
|
+
request_key: string;
|
|
1366
|
+
experience_key: string;
|
|
1367
|
+
name: string;
|
|
1368
|
+
description: string | null;
|
|
1369
|
+
booking_mode: "direct" | "request";
|
|
1370
|
+
price_basis: "none" | "fixed" | "per_guest" | "minimum_spend";
|
|
1371
|
+
price_minor: number | null;
|
|
1372
|
+
currency: string | null;
|
|
1373
|
+
duration_minutes: number | null;
|
|
1374
|
+
min_party_size: number;
|
|
1375
|
+
max_party_size: number;
|
|
1376
|
+
max_bookings_per_slot: number | null;
|
|
1377
|
+
max_covers_per_slot: number | null;
|
|
1378
|
+
sales_start_at: string | null;
|
|
1379
|
+
sales_end_at: string | null;
|
|
1380
|
+
image_media_id: string | null;
|
|
1381
|
+
image_alt_text: string | null;
|
|
1382
|
+
terms_text: string | null;
|
|
1383
|
+
status: Generated<"draft" | "active" | "archived">;
|
|
1384
|
+
sort_order: Generated<number>;
|
|
1385
|
+
version: Generated<number>;
|
|
1386
|
+
created_at: Generated<string>;
|
|
1387
|
+
updated_at: Generated<string>;
|
|
1388
|
+
}
|
|
1389
|
+
interface RestaurantReservationAddonCategoryTable {
|
|
1390
|
+
id: string;
|
|
1391
|
+
location_id: string;
|
|
1392
|
+
request_key: string;
|
|
1393
|
+
category_key: string;
|
|
1394
|
+
name: string;
|
|
1395
|
+
description: string | null;
|
|
1396
|
+
available_for_standard: Generated<number>;
|
|
1397
|
+
min_quantity: Generated<number>;
|
|
1398
|
+
max_quantity: number | null;
|
|
1399
|
+
status: Generated<"active" | "inactive" | "archived">;
|
|
1400
|
+
sort_order: Generated<number>;
|
|
1401
|
+
version: Generated<number>;
|
|
1402
|
+
created_at: Generated<string>;
|
|
1403
|
+
updated_at: Generated<string>;
|
|
1404
|
+
}
|
|
1405
|
+
interface RestaurantReservationAddonTable {
|
|
1406
|
+
id: string;
|
|
1407
|
+
location_id: string;
|
|
1408
|
+
category_id: string;
|
|
1409
|
+
request_key: string;
|
|
1410
|
+
addon_key: string;
|
|
1411
|
+
name: string;
|
|
1412
|
+
description: string | null;
|
|
1413
|
+
price_minor: number;
|
|
1414
|
+
currency: string;
|
|
1415
|
+
tax_code: string | null;
|
|
1416
|
+
tax_behavior: "exclusive" | "inclusive" | null;
|
|
1417
|
+
inventory_mode: "unlimited" | "per_service_date" | "per_slot";
|
|
1418
|
+
inventory_quantity: number | null;
|
|
1419
|
+
max_quantity_per_reservation: number | null;
|
|
1420
|
+
image_media_id: string | null;
|
|
1421
|
+
image_alt_text: string | null;
|
|
1422
|
+
status: Generated<"active" | "inactive" | "archived">;
|
|
1423
|
+
sort_order: Generated<number>;
|
|
1424
|
+
version: Generated<number>;
|
|
1425
|
+
created_at: Generated<string>;
|
|
1426
|
+
updated_at: Generated<string>;
|
|
1427
|
+
}
|
|
1428
|
+
interface RestaurantReservationExperienceAddonCategoryTable {
|
|
1429
|
+
id: string;
|
|
1430
|
+
location_id: string;
|
|
1431
|
+
experience_id: string;
|
|
1432
|
+
category_id: string;
|
|
1433
|
+
request_key: string;
|
|
1434
|
+
min_quantity_override: number | null;
|
|
1435
|
+
max_quantity_override: number | null;
|
|
1436
|
+
status: Generated<"active" | "inactive">;
|
|
1437
|
+
sort_order: Generated<number>;
|
|
1438
|
+
version: Generated<number>;
|
|
1439
|
+
created_at: Generated<string>;
|
|
1440
|
+
updated_at: Generated<string>;
|
|
1441
|
+
}
|
|
1442
|
+
interface RestaurantReservationExperienceIncludedAddonTable {
|
|
1443
|
+
id: string;
|
|
1444
|
+
location_id: string;
|
|
1445
|
+
experience_id: string;
|
|
1446
|
+
addon_id: string;
|
|
1447
|
+
request_key: string;
|
|
1448
|
+
quantity: number;
|
|
1449
|
+
status: Generated<"active" | "inactive">;
|
|
1450
|
+
version: Generated<number>;
|
|
1451
|
+
created_at: Generated<string>;
|
|
1452
|
+
updated_at: Generated<string>;
|
|
1453
|
+
}
|
|
1454
|
+
interface RestaurantReservationHoldCommercialSelectionTable {
|
|
1455
|
+
id: string;
|
|
1456
|
+
hold_id: string;
|
|
1457
|
+
location_id: string;
|
|
1458
|
+
experience_id: string | null;
|
|
1459
|
+
experience_version: number | null;
|
|
1460
|
+
revision: Generated<number>;
|
|
1461
|
+
acknowledged_revision: number | null;
|
|
1462
|
+
version: Generated<number>;
|
|
1463
|
+
created_at: Generated<string>;
|
|
1464
|
+
updated_at: Generated<string>;
|
|
1465
|
+
}
|
|
1466
|
+
interface RestaurantReservationHoldAddonTable {
|
|
1467
|
+
id: string;
|
|
1468
|
+
selection_id: string;
|
|
1469
|
+
hold_id: string;
|
|
1470
|
+
location_id: string;
|
|
1471
|
+
category_id: string;
|
|
1472
|
+
addon_id: string;
|
|
1473
|
+
addon_version: number;
|
|
1474
|
+
allocation_kind: "included" | "selected";
|
|
1475
|
+
requested_quantity: number;
|
|
1476
|
+
allocated_quantity: number;
|
|
1477
|
+
service_date: string;
|
|
1478
|
+
starts_at: string;
|
|
1479
|
+
expires_at: string;
|
|
1480
|
+
status: Generated<"active" | "committed" | "released" | "expired">;
|
|
1481
|
+
released_at: string | null;
|
|
1482
|
+
version: Generated<number>;
|
|
1483
|
+
created_at: Generated<string>;
|
|
1484
|
+
updated_at: Generated<string>;
|
|
1485
|
+
}
|
|
1486
|
+
interface RestaurantReservationHoldAddonOperationTable {
|
|
1487
|
+
id: string;
|
|
1488
|
+
selection_id: string;
|
|
1489
|
+
hold_id: string;
|
|
1490
|
+
operation_key: string;
|
|
1491
|
+
request_hash: string;
|
|
1492
|
+
resulting_revision: number;
|
|
1493
|
+
response_json: string;
|
|
1494
|
+
created_at: Generated<string>;
|
|
1495
|
+
}
|
|
1496
|
+
interface RestaurantReservationPromotionTable {
|
|
1497
|
+
id: string;
|
|
1498
|
+
location_id: string;
|
|
1499
|
+
request_key: string;
|
|
1500
|
+
code_digest: string;
|
|
1501
|
+
code_hint: string;
|
|
1502
|
+
name: string;
|
|
1503
|
+
discount_type: "fixed" | "percentage";
|
|
1504
|
+
discount_value: number;
|
|
1505
|
+
max_discount_minor: number | null;
|
|
1506
|
+
currency: string;
|
|
1507
|
+
applies_to: "all" | "experience" | "addons";
|
|
1508
|
+
service_starts_at: string | null;
|
|
1509
|
+
service_ends_at: string | null;
|
|
1510
|
+
max_redemptions: number | null;
|
|
1511
|
+
reserved_count: Generated<number>;
|
|
1512
|
+
redeemed_count: Generated<number>;
|
|
1513
|
+
status: Generated<"active" | "archived">;
|
|
1514
|
+
version: Generated<number>;
|
|
1515
|
+
created_at: Generated<string>;
|
|
1516
|
+
updated_at: Generated<string>;
|
|
1517
|
+
}
|
|
1518
|
+
interface RestaurantReservationPromotionAllocationTable {
|
|
1519
|
+
id: string;
|
|
1520
|
+
promotion_id: string;
|
|
1521
|
+
promotion_version: number;
|
|
1522
|
+
selection_id: string;
|
|
1523
|
+
hold_id: string;
|
|
1524
|
+
location_id: string;
|
|
1525
|
+
reservation_id: string | null;
|
|
1526
|
+
promotion_name: string;
|
|
1527
|
+
code_hint: string;
|
|
1528
|
+
discount_type: "fixed" | "percentage";
|
|
1529
|
+
discount_value: number;
|
|
1530
|
+
max_discount_minor: number | null;
|
|
1531
|
+
currency: string;
|
|
1532
|
+
applies_to: "all" | "experience" | "addons";
|
|
1533
|
+
expires_at: string;
|
|
1534
|
+
status: Generated<"held" | "attached" | "redeemed" | "released">;
|
|
1535
|
+
attached_at: string | null;
|
|
1536
|
+
redeemed_at: string | null;
|
|
1537
|
+
released_at: string | null;
|
|
1538
|
+
version: Generated<number>;
|
|
1539
|
+
created_at: Generated<string>;
|
|
1540
|
+
updated_at: Generated<string>;
|
|
1541
|
+
}
|
|
1542
|
+
interface RestaurantReservationPromotionOperationTable {
|
|
1543
|
+
id: string;
|
|
1544
|
+
selection_id: string;
|
|
1545
|
+
hold_id: string;
|
|
1546
|
+
promotion_id: string | null;
|
|
1547
|
+
operation_key: string;
|
|
1548
|
+
operation_type: "apply" | "remove";
|
|
1549
|
+
pricing_hash: string;
|
|
1550
|
+
request_hash: string;
|
|
1551
|
+
resulting_revision: number;
|
|
1552
|
+
response_json: string;
|
|
1553
|
+
created_at: Generated<string>;
|
|
1554
|
+
}
|
|
1555
|
+
interface RestaurantGiftCardTable {
|
|
1556
|
+
id: string;
|
|
1557
|
+
location_id: string;
|
|
1558
|
+
request_key: string;
|
|
1559
|
+
request_hash: string;
|
|
1560
|
+
number_digest: string;
|
|
1561
|
+
number_hint: string;
|
|
1562
|
+
pin_digest: string;
|
|
1563
|
+
currency: string;
|
|
1564
|
+
available_minor: Generated<number>;
|
|
1565
|
+
held_minor: Generated<number>;
|
|
1566
|
+
status: Generated<"active" | "inactive">;
|
|
1567
|
+
version: Generated<number>;
|
|
1568
|
+
created_at: Generated<string>;
|
|
1569
|
+
updated_at: Generated<string>;
|
|
1570
|
+
}
|
|
1571
|
+
interface RestaurantReservationGiftCardAllocationTable {
|
|
1572
|
+
id: string;
|
|
1573
|
+
gift_card_id: string;
|
|
1574
|
+
gift_card_version: number;
|
|
1575
|
+
selection_id: string;
|
|
1576
|
+
hold_id: string;
|
|
1577
|
+
location_id: string;
|
|
1578
|
+
reservation_id: string | null;
|
|
1579
|
+
card_hint: string;
|
|
1580
|
+
currency: string;
|
|
1581
|
+
amount_minor: number;
|
|
1582
|
+
refunded_minor: Generated<number>;
|
|
1583
|
+
expires_at: string;
|
|
1584
|
+
status: Generated<"held" | "redeemed" | "released">;
|
|
1585
|
+
redeemed_at: string | null;
|
|
1586
|
+
released_at: string | null;
|
|
1587
|
+
version: Generated<number>;
|
|
1588
|
+
created_at: Generated<string>;
|
|
1589
|
+
updated_at: Generated<string>;
|
|
1590
|
+
}
|
|
1591
|
+
interface RestaurantGiftCardLedgerEntryTable {
|
|
1592
|
+
id: string;
|
|
1593
|
+
gift_card_id: string;
|
|
1594
|
+
allocation_id: string | null;
|
|
1595
|
+
reservation_id: string | null;
|
|
1596
|
+
operation_key: string;
|
|
1597
|
+
entry_type: "issue" | "credit" | "hold" | "release" | "redeem" | "refund";
|
|
1598
|
+
available_delta_minor: number;
|
|
1599
|
+
held_delta_minor: number;
|
|
1600
|
+
available_balance_minor: number;
|
|
1601
|
+
held_balance_minor: number;
|
|
1602
|
+
gift_card_version: number;
|
|
1603
|
+
reason_code: string;
|
|
1604
|
+
created_at: Generated<string>;
|
|
1605
|
+
}
|
|
1606
|
+
interface RestaurantReservationGiftCardOperationTable {
|
|
1607
|
+
id: string;
|
|
1608
|
+
selection_id: string;
|
|
1609
|
+
hold_id: string;
|
|
1610
|
+
gift_card_id: string | null;
|
|
1611
|
+
operation_key: string;
|
|
1612
|
+
operation_type: "apply" | "update" | "remove";
|
|
1613
|
+
pricing_hash: string;
|
|
1614
|
+
request_hash: string;
|
|
1615
|
+
resulting_revision: number;
|
|
1616
|
+
response_json: string;
|
|
1617
|
+
created_at: Generated<string>;
|
|
1618
|
+
}
|
|
1619
|
+
interface RestaurantReservationQuoteTable {
|
|
1620
|
+
id: string;
|
|
1621
|
+
hold_id: string;
|
|
1622
|
+
selection_id: string;
|
|
1623
|
+
location_id: string;
|
|
1624
|
+
payment_policy_id: string;
|
|
1625
|
+
payment_policy_version: number;
|
|
1626
|
+
experience_id: string | null;
|
|
1627
|
+
experience_version: number | null;
|
|
1628
|
+
selection_revision: number;
|
|
1629
|
+
collection_mode: "none" | "charge" | "authorize";
|
|
1630
|
+
currency: string;
|
|
1631
|
+
subtotal_minor: number;
|
|
1632
|
+
discount_minor: number;
|
|
1633
|
+
fee_minor: number;
|
|
1634
|
+
tax_minor: number;
|
|
1635
|
+
gratuity_minor: number;
|
|
1636
|
+
total_minor: number;
|
|
1637
|
+
due_now_minor: number;
|
|
1638
|
+
authorization_minor: number;
|
|
1639
|
+
pricing_hash: string;
|
|
1640
|
+
snapshot_json: string;
|
|
1641
|
+
expires_at: string;
|
|
1642
|
+
created_at: Generated<string>;
|
|
1643
|
+
}
|
|
1644
|
+
interface RestaurantReservationQuoteLineTable {
|
|
1645
|
+
id: string;
|
|
1646
|
+
quote_id: string;
|
|
1647
|
+
line_index: number;
|
|
1648
|
+
line_type: "experience" | "included_addon" | "selected_addon" | "discount" | "fee" | "tax" | "gratuity";
|
|
1649
|
+
source_id: string | null;
|
|
1650
|
+
source_version: number | null;
|
|
1651
|
+
label: string;
|
|
1652
|
+
quantity: number;
|
|
1653
|
+
unit_amount_minor: number;
|
|
1654
|
+
subtotal_minor: number;
|
|
1655
|
+
currency: string;
|
|
1656
|
+
tax_code: string | null;
|
|
1657
|
+
tax_behavior: "exclusive" | "inclusive" | null;
|
|
1658
|
+
}
|
|
1659
|
+
interface RestaurantReservationQuoteCheckoutTable {
|
|
1660
|
+
quote_id: string;
|
|
1661
|
+
hold_id: string;
|
|
1662
|
+
guest_name: string;
|
|
1663
|
+
guest_email: string;
|
|
1664
|
+
guest_phone: string;
|
|
1665
|
+
special_requests: string | null;
|
|
1666
|
+
preferred_language: Generated<string>;
|
|
1667
|
+
sms_opt_in: Generated<number>;
|
|
1668
|
+
whatsapp_opt_in: Generated<number>;
|
|
1669
|
+
status: "awaiting_payment" | "converted" | "expired";
|
|
1670
|
+
reservation_id: string | null;
|
|
1671
|
+
converted_at: string | null;
|
|
1672
|
+
expired_at: string | null;
|
|
1673
|
+
version: Generated<number>;
|
|
1674
|
+
created_at: Generated<string>;
|
|
1675
|
+
updated_at: Generated<string>;
|
|
1676
|
+
}
|
|
1677
|
+
interface RestaurantReservationGuestSettingsTable {
|
|
1678
|
+
id: string;
|
|
1679
|
+
location_id: string;
|
|
1680
|
+
login_mode: Generated<"guest" | "optional" | "required">;
|
|
1681
|
+
version: Generated<number>;
|
|
1682
|
+
created_at: Generated<string>;
|
|
1683
|
+
updated_at: Generated<string>;
|
|
1684
|
+
}
|
|
1685
|
+
interface RestaurantReservationGuestFieldTable {
|
|
1686
|
+
id: string;
|
|
1687
|
+
location_id: string;
|
|
1688
|
+
request_key: string;
|
|
1689
|
+
field_key: string;
|
|
1690
|
+
label: string;
|
|
1691
|
+
description: string | null;
|
|
1692
|
+
input_type: "text" | "textarea" | "select" | "checkbox";
|
|
1693
|
+
required: Generated<number>;
|
|
1694
|
+
options_json: string | null;
|
|
1695
|
+
placeholder: string | null;
|
|
1696
|
+
max_length: number | null;
|
|
1697
|
+
sort_order: Generated<number>;
|
|
1698
|
+
status: Generated<"active" | "inactive">;
|
|
1699
|
+
version: Generated<number>;
|
|
1700
|
+
created_at: Generated<string>;
|
|
1701
|
+
updated_at: Generated<string>;
|
|
1702
|
+
}
|
|
1703
|
+
interface RestaurantReservationGuestFieldValueTable {
|
|
1704
|
+
id: string;
|
|
1705
|
+
reservation_id: string;
|
|
1706
|
+
field_id: string;
|
|
1707
|
+
field_key: string;
|
|
1708
|
+
field_label: string;
|
|
1709
|
+
value_json: string;
|
|
1710
|
+
created_at: Generated<string>;
|
|
1711
|
+
}
|
|
1712
|
+
interface RestaurantReservationQuoteGuestContextTable {
|
|
1713
|
+
quote_id: string;
|
|
1714
|
+
location_id: string;
|
|
1715
|
+
verified_user_id: string | null;
|
|
1716
|
+
guest_profile_id: string;
|
|
1717
|
+
created_at: Generated<string>;
|
|
1718
|
+
}
|
|
1719
|
+
interface RestaurantReservationQuoteGuestFieldValueTable {
|
|
1720
|
+
id: string;
|
|
1721
|
+
quote_id: string;
|
|
1722
|
+
field_id: string;
|
|
1723
|
+
field_key: string;
|
|
1724
|
+
field_label: string;
|
|
1725
|
+
value_json: string;
|
|
1726
|
+
created_at: Generated<string>;
|
|
1727
|
+
}
|
|
1728
|
+
interface RestaurantGuestProfileTable {
|
|
1729
|
+
id: string;
|
|
1730
|
+
location_id: string;
|
|
1731
|
+
created_request_key: string;
|
|
1732
|
+
claimed_user_id: string | null;
|
|
1733
|
+
display_name: string;
|
|
1734
|
+
normalized_email: string | null;
|
|
1735
|
+
normalized_phone: string | null;
|
|
1736
|
+
preferred_language: Generated<string>;
|
|
1737
|
+
preferred_channel: "email" | "sms" | "whatsapp" | null;
|
|
1738
|
+
priority_tier: Generated<number>;
|
|
1739
|
+
status: Generated<"active" | "merged" | "anonymized">;
|
|
1740
|
+
merged_into_id: string | null;
|
|
1741
|
+
last_activity_at: string;
|
|
1742
|
+
anonymized_at: string | null;
|
|
1743
|
+
version: Generated<number>;
|
|
1744
|
+
created_at: Generated<string>;
|
|
1745
|
+
updated_at: Generated<string>;
|
|
1746
|
+
}
|
|
1747
|
+
interface RestaurantGuestProfileRetentionSettingsTable {
|
|
1748
|
+
id: string;
|
|
1749
|
+
location_id: string;
|
|
1750
|
+
inactivity_months: Generated<number>;
|
|
1751
|
+
version: Generated<number>;
|
|
1752
|
+
created_at: Generated<string>;
|
|
1753
|
+
updated_at: Generated<string>;
|
|
1754
|
+
}
|
|
1755
|
+
interface RestaurantGuestProfileReservationTable {
|
|
1756
|
+
id: string;
|
|
1757
|
+
profile_id: string;
|
|
1758
|
+
reservation_id: string;
|
|
1759
|
+
location_id: string;
|
|
1760
|
+
match_source: "contact" | "account" | "staff" | "import";
|
|
1761
|
+
created_at: Generated<string>;
|
|
1762
|
+
}
|
|
1763
|
+
interface RestaurantGuestProfileRequestTable {
|
|
1764
|
+
request_key: string;
|
|
1765
|
+
profile_id: string;
|
|
1766
|
+
location_id: string;
|
|
1767
|
+
input_fingerprint: string;
|
|
1768
|
+
created_at: Generated<string>;
|
|
1769
|
+
}
|
|
1770
|
+
interface RestaurantRelatedLocationPairTable {
|
|
1771
|
+
id: string;
|
|
1772
|
+
location_a_id: string;
|
|
1773
|
+
location_b_id: string;
|
|
1774
|
+
status: "active" | "inactive";
|
|
1775
|
+
policy_version: string;
|
|
1776
|
+
version: Generated<number>;
|
|
1777
|
+
created_at: Generated<string>;
|
|
1778
|
+
updated_at: Generated<string>;
|
|
1779
|
+
}
|
|
1780
|
+
interface RestaurantGuestProfileSharingConsentTable {
|
|
1781
|
+
id: string;
|
|
1782
|
+
pair_id: string;
|
|
1783
|
+
profile_id: string;
|
|
1784
|
+
source_location_id: string;
|
|
1785
|
+
target_location_id: string;
|
|
1786
|
+
request_key: string;
|
|
1787
|
+
status: "granted" | "withdrawn";
|
|
1788
|
+
source: "checkout" | "account";
|
|
1789
|
+
policy_version: string;
|
|
1790
|
+
occurred_at: string;
|
|
1791
|
+
created_at: Generated<string>;
|
|
1792
|
+
}
|
|
1793
|
+
interface RestaurantGuestConsentTable {
|
|
1794
|
+
id: string;
|
|
1795
|
+
profile_id: string;
|
|
1796
|
+
location_id: string;
|
|
1797
|
+
request_key: string;
|
|
1798
|
+
purpose: "marketing" | "reservation_updates" | "priority_alert";
|
|
1799
|
+
channel: "email" | "sms" | "whatsapp";
|
|
1800
|
+
status: "granted" | "withdrawn";
|
|
1801
|
+
source: "checkout" | "account" | "staff" | "import" | "system";
|
|
1802
|
+
policy_version: string;
|
|
1803
|
+
occurred_at: string;
|
|
1804
|
+
created_at: Generated<string>;
|
|
1805
|
+
}
|
|
1806
|
+
interface RestaurantReservationDemandSettingsTable {
|
|
1807
|
+
id: string;
|
|
1808
|
+
location_id: string;
|
|
1809
|
+
requests_enabled: Generated<number>;
|
|
1810
|
+
request_time_mode: Generated<"exact" | "range">;
|
|
1811
|
+
priority_alerts_enabled: Generated<number>;
|
|
1812
|
+
priority_alert_min_party_size: Generated<number>;
|
|
1813
|
+
priority_alert_max_party_size: Generated<number>;
|
|
1814
|
+
priority_alert_batch_size: Generated<number>;
|
|
1815
|
+
priority_alert_batch_interval_minutes: Generated<number>;
|
|
1816
|
+
paid_request_hold_minutes: Generated<number>;
|
|
1817
|
+
version: Generated<number>;
|
|
1818
|
+
created_at: Generated<string>;
|
|
1819
|
+
updated_at: Generated<string>;
|
|
1820
|
+
}
|
|
1821
|
+
interface RestaurantReservationLanguageSettingsTable {
|
|
1822
|
+
id: string;
|
|
1823
|
+
location_id: string;
|
|
1824
|
+
default_language: Generated<string>;
|
|
1825
|
+
enabled_languages_json: Generated<string>;
|
|
1826
|
+
version: Generated<number>;
|
|
1827
|
+
created_at: Generated<string>;
|
|
1828
|
+
updated_at: Generated<string>;
|
|
1829
|
+
}
|
|
1830
|
+
interface RestaurantReservationAnalyticsSettingsTable {
|
|
1831
|
+
id: string;
|
|
1832
|
+
location_id: string;
|
|
1833
|
+
enabled: Generated<number>;
|
|
1834
|
+
retention_days: Generated<number>;
|
|
1835
|
+
version: Generated<number>;
|
|
1836
|
+
created_at: Generated<string>;
|
|
1837
|
+
updated_at: Generated<string>;
|
|
1838
|
+
}
|
|
1839
|
+
interface RestaurantReservationAnalyticsEventTable {
|
|
1840
|
+
id: string;
|
|
1841
|
+
location_id: string;
|
|
1842
|
+
event_type: "flow_viewed" | "availability_searched" | "slot_selected" | "details_viewed" | "upgrades_viewed" | "checkout_viewed" | "checkout_submitted" | "request_submitted" | "priority_alert_subscribed" | "management_viewed";
|
|
1843
|
+
occurred_at: Generated<string>;
|
|
1844
|
+
}
|
|
1845
|
+
interface RestaurantReservationRequestTable {
|
|
1846
|
+
id: string;
|
|
1847
|
+
location_id: string;
|
|
1848
|
+
zone_id: string | null;
|
|
1849
|
+
request_key: string;
|
|
1850
|
+
token_id: string;
|
|
1851
|
+
token_hash: string;
|
|
1852
|
+
token_expires_at: string;
|
|
1853
|
+
service_date: string;
|
|
1854
|
+
starts_at: string;
|
|
1855
|
+
ends_at: string;
|
|
1856
|
+
duration_minutes: number;
|
|
1857
|
+
party_size: number;
|
|
1858
|
+
status: "pending" | "payment_pending" | "converted" | "rejected" | "cancelled" | "expired";
|
|
1859
|
+
guest_name: string;
|
|
1860
|
+
guest_email: string;
|
|
1861
|
+
guest_phone: string;
|
|
1862
|
+
special_requests: string | null;
|
|
1863
|
+
preferred_language: Generated<string>;
|
|
1864
|
+
sms_opt_in: Generated<number>;
|
|
1865
|
+
whatsapp_opt_in: Generated<number>;
|
|
1866
|
+
experience_id: string | null;
|
|
1867
|
+
experience_version: number | null;
|
|
1868
|
+
experience_name: string | null;
|
|
1869
|
+
experience_price_basis: "none" | "fixed" | "per_guest" | "minimum_spend" | null;
|
|
1870
|
+
experience_price_minor: number | null;
|
|
1871
|
+
experience_currency: string | null;
|
|
1872
|
+
reservation_id: string | null;
|
|
1873
|
+
hold_id: string | null;
|
|
1874
|
+
requested_amount_minor: number | null;
|
|
1875
|
+
currency: string | null;
|
|
1876
|
+
payment_deadline_at: string | null;
|
|
1877
|
+
review_note: string | null;
|
|
1878
|
+
decided_by_actor_type: "user" | "api_token" | "system" | null;
|
|
1879
|
+
decided_by_actor_id: string | null;
|
|
1880
|
+
approved_at: string | null;
|
|
1881
|
+
rejected_at: string | null;
|
|
1882
|
+
cancelled_at: string | null;
|
|
1883
|
+
expired_at: string | null;
|
|
1884
|
+
version: Generated<number>;
|
|
1885
|
+
created_at: Generated<string>;
|
|
1886
|
+
updated_at: Generated<string>;
|
|
1887
|
+
}
|
|
1888
|
+
interface RestaurantReservationRequestTableAssignmentTable {
|
|
1889
|
+
id: string;
|
|
1890
|
+
request_id: string;
|
|
1891
|
+
table_id: string;
|
|
1892
|
+
assignment_group_id: string;
|
|
1893
|
+
status: "active" | "removed";
|
|
1894
|
+
assigned_by_actor_type: "user" | "api_token" | "system";
|
|
1895
|
+
assigned_by_actor_id: string | null;
|
|
1896
|
+
assigned_at: Generated<string>;
|
|
1897
|
+
released_at: string | null;
|
|
1898
|
+
version: Generated<number>;
|
|
1899
|
+
created_at: Generated<string>;
|
|
1900
|
+
updated_at: Generated<string>;
|
|
1901
|
+
}
|
|
1902
|
+
interface RestaurantPriorityAlertTable {
|
|
1903
|
+
id: string;
|
|
1904
|
+
location_id: string;
|
|
1905
|
+
zone_id: string | null;
|
|
1906
|
+
request_key: string;
|
|
1907
|
+
token_id: string;
|
|
1908
|
+
token_hash: string;
|
|
1909
|
+
token_expires_at: string;
|
|
1910
|
+
service_date: string;
|
|
1911
|
+
starts_at: string;
|
|
1912
|
+
ends_at: string;
|
|
1913
|
+
duration_minutes: number;
|
|
1914
|
+
party_size: number;
|
|
1915
|
+
status: "active" | "cancelled" | "converted" | "expired";
|
|
1916
|
+
guest_name: string;
|
|
1917
|
+
guest_email: string;
|
|
1918
|
+
guest_phone: string;
|
|
1919
|
+
email_opt_in: number;
|
|
1920
|
+
sms_opt_in: number;
|
|
1921
|
+
whatsapp_opt_in: number;
|
|
1922
|
+
preferred_channel: "email" | "sms" | "whatsapp";
|
|
1923
|
+
preferred_language: Generated<string>;
|
|
1924
|
+
priority_tier: Generated<number>;
|
|
1925
|
+
reservation_id: string | null;
|
|
1926
|
+
notification_count: Generated<number>;
|
|
1927
|
+
last_notified_at: string | null;
|
|
1928
|
+
cancelled_at: string | null;
|
|
1929
|
+
converted_at: string | null;
|
|
1930
|
+
expired_at: string | null;
|
|
1931
|
+
version: Generated<number>;
|
|
1932
|
+
created_at: Generated<string>;
|
|
1933
|
+
updated_at: Generated<string>;
|
|
1934
|
+
}
|
|
1935
|
+
interface RestaurantPriorityAlertOpportunityTable {
|
|
1936
|
+
id: string;
|
|
1937
|
+
location_id: string;
|
|
1938
|
+
zone_id: string | null;
|
|
1939
|
+
request_key: string;
|
|
1940
|
+
service_date: string;
|
|
1941
|
+
starts_at: string;
|
|
1942
|
+
ends_at: string;
|
|
1943
|
+
maximum_party_size: number;
|
|
1944
|
+
status: "active" | "closed" | "expired";
|
|
1945
|
+
expires_at: string;
|
|
1946
|
+
closed_at: string | null;
|
|
1947
|
+
version: Generated<number>;
|
|
1948
|
+
created_at: Generated<string>;
|
|
1949
|
+
updated_at: Generated<string>;
|
|
1950
|
+
}
|
|
1951
|
+
interface RestaurantPriorityAlertDeliveryTable {
|
|
1952
|
+
id: string;
|
|
1953
|
+
opportunity_id: string;
|
|
1954
|
+
alert_id: string;
|
|
1955
|
+
batch_number: number;
|
|
1956
|
+
channel: "email" | "sms" | "whatsapp";
|
|
1957
|
+
status: "scheduled" | "processing" | "sent" | "failed" | "opened" | "converted" | "suppressed" | "expired";
|
|
1958
|
+
token_id: string;
|
|
1959
|
+
token_hash: string;
|
|
1960
|
+
available_at: string;
|
|
1961
|
+
expires_at: string;
|
|
1962
|
+
attempt_count: Generated<number>;
|
|
1963
|
+
channel_attempt_count: Generated<number>;
|
|
1964
|
+
fallback_count: Generated<number>;
|
|
1965
|
+
last_error_code: string | null;
|
|
1966
|
+
sent_at: string | null;
|
|
1967
|
+
opened_at: string | null;
|
|
1968
|
+
converted_at: string | null;
|
|
1969
|
+
version: Generated<number>;
|
|
1970
|
+
created_at: Generated<string>;
|
|
1971
|
+
updated_at: Generated<string>;
|
|
1972
|
+
}
|
|
1973
|
+
interface RestaurantReservationTableAssignmentTable {
|
|
1974
|
+
id: string;
|
|
1975
|
+
reservation_id: string;
|
|
1976
|
+
table_id: string;
|
|
1977
|
+
assignment_group_id: string;
|
|
1978
|
+
status: "active" | "removed";
|
|
1979
|
+
assigned_by_actor_type: "user" | "api_token" | "system";
|
|
1980
|
+
assigned_by_actor_id: string | null;
|
|
1981
|
+
assigned_at: Generated<string>;
|
|
1982
|
+
released_at: string | null;
|
|
1983
|
+
version: Generated<number>;
|
|
1984
|
+
created_at: Generated<string>;
|
|
1985
|
+
updated_at: Generated<string>;
|
|
1986
|
+
}
|
|
1987
|
+
interface RestaurantGuestAccessTable {
|
|
1988
|
+
id: string;
|
|
1989
|
+
location_id: string;
|
|
1990
|
+
token_id: string;
|
|
1991
|
+
token_hash: string;
|
|
1992
|
+
subject_type: "reservation" | "order" | "reservation_request" | "reservation_offer";
|
|
1993
|
+
subject_id: string;
|
|
1994
|
+
purpose: "reservation_status" | "reservation_confirm" | "reservation_cancel" | "order_status" | "reservation_request_payment_link" | "reservation_offer_link";
|
|
1995
|
+
status: "active" | "consumed" | "revoked";
|
|
1996
|
+
expires_at: string;
|
|
1997
|
+
consumed_at: string | null;
|
|
1998
|
+
revoked_at: string | null;
|
|
1999
|
+
created_at: Generated<string>;
|
|
2000
|
+
updated_at: Generated<string>;
|
|
2001
|
+
}
|
|
2002
|
+
interface RestaurantReservationRequestPaymentLinkDeliveryTable {
|
|
2003
|
+
delivery_id: string;
|
|
2004
|
+
access_id: string;
|
|
2005
|
+
issued_at: string;
|
|
2006
|
+
created_at: Generated<string>;
|
|
2007
|
+
updated_at: Generated<string>;
|
|
2008
|
+
}
|
|
2009
|
+
interface RestaurantReservationOfferLinkDeliveryTable {
|
|
2010
|
+
delivery_id: string;
|
|
2011
|
+
access_id: string;
|
|
2012
|
+
issued_at: string;
|
|
2013
|
+
created_at: Generated<string>;
|
|
2014
|
+
updated_at: Generated<string>;
|
|
2015
|
+
}
|
|
2016
|
+
type RestaurantFulfilmentType = "pickup" | "delivery" | "dine_in";
|
|
2017
|
+
type RestaurantOrderSource = "public" | "admin" | "mcp" | "import" | "qr";
|
|
2018
|
+
type RestaurantOrderStatus = "pending_payment" | "confirmed" | "preparing" | "ready" | "out_for_delivery" | "completed" | "cancelled";
|
|
2019
|
+
interface RestaurantOrderSequenceTable {
|
|
2020
|
+
id: string;
|
|
2021
|
+
location_id: string;
|
|
2022
|
+
next_number: Generated<number>;
|
|
2023
|
+
version: Generated<number>;
|
|
2024
|
+
created_at: Generated<string>;
|
|
2025
|
+
updated_at: Generated<string>;
|
|
2026
|
+
}
|
|
2027
|
+
interface RestaurantOrderTable {
|
|
2028
|
+
id: string;
|
|
2029
|
+
location_id: string;
|
|
2030
|
+
table_id: string | null;
|
|
2031
|
+
order_number: number;
|
|
2032
|
+
request_key: string;
|
|
2033
|
+
fulfilment_type: RestaurantFulfilmentType;
|
|
2034
|
+
service_date: string;
|
|
2035
|
+
fulfilment_at: string;
|
|
2036
|
+
timezone: string;
|
|
2037
|
+
status: RestaurantOrderStatus;
|
|
2038
|
+
source: RestaurantOrderSource;
|
|
2039
|
+
guest_name: string;
|
|
2040
|
+
guest_email: string | null;
|
|
2041
|
+
guest_phone: string | null;
|
|
2042
|
+
delivery_address_json: string | null;
|
|
2043
|
+
special_instructions: string | null;
|
|
2044
|
+
internal_note: string | null;
|
|
2045
|
+
confirmed_at: string | null;
|
|
2046
|
+
cancelled_at: string | null;
|
|
2047
|
+
completed_at: string | null;
|
|
2048
|
+
version: Generated<number>;
|
|
2049
|
+
created_at: Generated<string>;
|
|
2050
|
+
updated_at: Generated<string>;
|
|
2051
|
+
}
|
|
2052
|
+
type RestaurantTaxMode = "stripe_tax" | "manual_vat" | "none";
|
|
2053
|
+
type RestaurantTaxBehavior = "exclusive" | "inclusive";
|
|
2054
|
+
type RestaurantPaymentFlow = "checkout" | "payment_element" | "offline";
|
|
2055
|
+
interface RestaurantOrderSnapshotTable {
|
|
2056
|
+
id: string;
|
|
2057
|
+
location_id: string;
|
|
2058
|
+
order_id: string;
|
|
2059
|
+
currency: string;
|
|
2060
|
+
subtotal_minor: number;
|
|
2061
|
+
discount_minor: Generated<number>;
|
|
2062
|
+
tax_minor: Generated<number>;
|
|
2063
|
+
tip_minor: Generated<number>;
|
|
2064
|
+
service_fee_minor: Generated<number>;
|
|
2065
|
+
delivery_fee_minor: Generated<number>;
|
|
2066
|
+
total_minor: number;
|
|
2067
|
+
tax_mode: RestaurantTaxMode;
|
|
2068
|
+
payment_flow: RestaurantPaymentFlow;
|
|
2069
|
+
pricing_hash: string;
|
|
2070
|
+
tax_context_json: Generated<string>;
|
|
2071
|
+
fulfilment_context_json: Generated<string>;
|
|
2072
|
+
provider_context_json: Generated<string>;
|
|
2073
|
+
created_at: Generated<string>;
|
|
2074
|
+
}
|
|
2075
|
+
interface RestaurantOrderItemTable {
|
|
2076
|
+
id: string;
|
|
2077
|
+
location_id: string;
|
|
2078
|
+
order_id: string;
|
|
2079
|
+
snapshot_id: string;
|
|
2080
|
+
menu_item_id: string | null;
|
|
2081
|
+
item_name: string;
|
|
2082
|
+
item_description: string | null;
|
|
2083
|
+
quantity: number;
|
|
2084
|
+
unit_amount_minor: number;
|
|
2085
|
+
discount_amount_minor: Generated<number>;
|
|
2086
|
+
tax_amount_minor: Generated<number>;
|
|
2087
|
+
total_amount_minor: number;
|
|
2088
|
+
tax_code: string | null;
|
|
2089
|
+
tax_behavior: "exclusive" | "inclusive" | "unspecified";
|
|
2090
|
+
sort_order: Generated<number>;
|
|
2091
|
+
created_at: Generated<string>;
|
|
2092
|
+
}
|
|
2093
|
+
interface RestaurantOrderItemModifierTable {
|
|
2094
|
+
id: string;
|
|
2095
|
+
location_id: string;
|
|
2096
|
+
order_id: string;
|
|
2097
|
+
order_item_id: string;
|
|
2098
|
+
modifier_option_id: string | null;
|
|
2099
|
+
group_name: string;
|
|
2100
|
+
option_name: string;
|
|
2101
|
+
quantity: number;
|
|
2102
|
+
unit_amount_minor: number;
|
|
2103
|
+
total_amount_minor: number;
|
|
2104
|
+
sort_order: Generated<number>;
|
|
2105
|
+
created_at: Generated<string>;
|
|
2106
|
+
}
|
|
2107
|
+
interface RestaurantOrderStatusHistoryTable {
|
|
2108
|
+
id: string;
|
|
2109
|
+
location_id: string;
|
|
2110
|
+
order_id: string;
|
|
2111
|
+
from_status: RestaurantOrderStatus | null;
|
|
2112
|
+
to_status: RestaurantOrderStatus;
|
|
2113
|
+
reason: string | null;
|
|
2114
|
+
actor_type: "user" | "api_token" | "system";
|
|
2115
|
+
actor_id: string | null;
|
|
2116
|
+
source: RestaurantOrderSource;
|
|
2117
|
+
created_at: Generated<string>;
|
|
2118
|
+
}
|
|
2119
|
+
interface RestaurantCartHoldTable {
|
|
2120
|
+
id: string;
|
|
2121
|
+
location_id: string;
|
|
2122
|
+
order_id: string | null;
|
|
2123
|
+
cart_key: string;
|
|
2124
|
+
request_key: string;
|
|
2125
|
+
fulfilment_type: RestaurantFulfilmentType;
|
|
2126
|
+
service_date: string;
|
|
2127
|
+
fulfilment_at: string;
|
|
2128
|
+
timezone: string;
|
|
2129
|
+
currency: string;
|
|
2130
|
+
total_minor: number;
|
|
2131
|
+
pricing_hash: string;
|
|
2132
|
+
priced_cart_json: string;
|
|
2133
|
+
status: "active" | "committed" | "released" | "expired";
|
|
2134
|
+
expires_at: string;
|
|
2135
|
+
committed_at: string | null;
|
|
2136
|
+
released_at: string | null;
|
|
2137
|
+
version: Generated<number>;
|
|
2138
|
+
created_at: Generated<string>;
|
|
2139
|
+
updated_at: Generated<string>;
|
|
2140
|
+
}
|
|
2141
|
+
type RestaurantPaymentStatus = "requires_action" | "processing" | "authorized" | "succeeded" | "partially_refunded" | "refunded" | "failed" | "cancelled";
|
|
2142
|
+
interface RestaurantPaymentTable {
|
|
2143
|
+
id: string;
|
|
2144
|
+
location_id: string;
|
|
2145
|
+
order_id: string | null;
|
|
2146
|
+
reservation_request_id: Generated<string | null>;
|
|
2147
|
+
reservation_offer_id: Generated<string | null>;
|
|
2148
|
+
reservation_quote_id: Generated<string | null>;
|
|
2149
|
+
request_key: string;
|
|
2150
|
+
provider: "stripe" | "offline";
|
|
2151
|
+
payment_flow: RestaurantPaymentFlow;
|
|
2152
|
+
provider_session_id: string | null;
|
|
2153
|
+
provider_payment_id: string | null;
|
|
2154
|
+
status: RestaurantPaymentStatus;
|
|
2155
|
+
currency: string;
|
|
2156
|
+
amount_requested_minor: Generated<number>;
|
|
2157
|
+
amount_authorized_minor: Generated<number>;
|
|
2158
|
+
amount_captured_minor: Generated<number>;
|
|
2159
|
+
amount_refunded_minor: Generated<number>;
|
|
2160
|
+
failure_code: string | null;
|
|
2161
|
+
failure_message: string | null;
|
|
2162
|
+
provider_context_json: Generated<string>;
|
|
2163
|
+
processed_at: string | null;
|
|
2164
|
+
version: Generated<number>;
|
|
2165
|
+
created_at: Generated<string>;
|
|
2166
|
+
updated_at: Generated<string>;
|
|
2167
|
+
}
|
|
2168
|
+
interface RestaurantRefundTable {
|
|
2169
|
+
id: string;
|
|
2170
|
+
location_id: string;
|
|
2171
|
+
order_id: string | null;
|
|
2172
|
+
reservation_id: string | null;
|
|
2173
|
+
payment_id: string;
|
|
2174
|
+
request_key: string;
|
|
2175
|
+
provider_refund_id: string | null;
|
|
2176
|
+
status: "pending" | "succeeded" | "failed" | "cancelled";
|
|
2177
|
+
currency: string;
|
|
2178
|
+
amount_minor: number;
|
|
2179
|
+
reason: string;
|
|
2180
|
+
financial_snapshot_json: string;
|
|
2181
|
+
actor_type: "user" | "api_token" | "system";
|
|
2182
|
+
actor_id: string | null;
|
|
2183
|
+
failure_code: string | null;
|
|
2184
|
+
failure_message: string | null;
|
|
2185
|
+
completed_at: string | null;
|
|
2186
|
+
version: Generated<number>;
|
|
2187
|
+
created_at: Generated<string>;
|
|
2188
|
+
updated_at: Generated<string>;
|
|
2189
|
+
}
|
|
2190
|
+
type RestaurantStripeMode = "test" | "live";
|
|
2191
|
+
type RestaurantStripeConfigurationStatus = "unconfigured" | "unverified" | "valid" | "invalid";
|
|
2192
|
+
type RestaurantStripeTaxStatus = "unknown" | "active" | "pending" | "unavailable";
|
|
2193
|
+
type RestaurantStripeConnectStatus = "not_configured" | "restricted" | "ready";
|
|
2194
|
+
interface RestaurantStripeSettingsTable {
|
|
2195
|
+
id: string;
|
|
2196
|
+
default_key: Generated<"default">;
|
|
2197
|
+
mode: Generated<RestaurantStripeMode>;
|
|
2198
|
+
publishable_key: string | null;
|
|
2199
|
+
payments_enabled: Generated<number>;
|
|
2200
|
+
enabled_fulfilment_types_json: Generated<string>;
|
|
2201
|
+
payment_flow: Generated<"checkout" | "payment_element">;
|
|
2202
|
+
automatic_tax_enabled: Generated<number>;
|
|
2203
|
+
default_tax_behavior: Generated<RestaurantTaxBehavior>;
|
|
2204
|
+
configuration_status: Generated<RestaurantStripeConfigurationStatus>;
|
|
2205
|
+
stripe_account_id: string | null;
|
|
2206
|
+
charges_enabled: number | null;
|
|
2207
|
+
details_submitted: number | null;
|
|
2208
|
+
tax_status: Generated<RestaurantStripeTaxStatus>;
|
|
2209
|
+
validation_error_code: string | null;
|
|
2210
|
+
last_validated_at: string | null;
|
|
2211
|
+
connect_status: Generated<RestaurantStripeConnectStatus>;
|
|
2212
|
+
version: Generated<number>;
|
|
2213
|
+
created_at: Generated<string>;
|
|
2214
|
+
updated_at: Generated<string>;
|
|
2215
|
+
}
|
|
2216
|
+
interface RestaurantStripeLocationSettingsTable {
|
|
2217
|
+
id: string;
|
|
2218
|
+
location_id: string;
|
|
2219
|
+
payments_enabled: number | null;
|
|
2220
|
+
enabled_fulfilment_types_json: string | null;
|
|
2221
|
+
payment_flow: "checkout" | "payment_element" | null;
|
|
2222
|
+
tax_mode: RestaurantTaxMode | null;
|
|
2223
|
+
tax_behavior: RestaurantTaxBehavior | null;
|
|
2224
|
+
manual_vat_reason: string | null;
|
|
2225
|
+
version: Generated<number>;
|
|
2226
|
+
created_at: Generated<string>;
|
|
2227
|
+
updated_at: Generated<string>;
|
|
2228
|
+
}
|
|
2229
|
+
interface RestaurantStripeManualTaxRateTable {
|
|
2230
|
+
id: string;
|
|
2231
|
+
location_id: string;
|
|
2232
|
+
tax_code: Generated<string>;
|
|
2233
|
+
stripe_tax_rate_id: string;
|
|
2234
|
+
display_name: string;
|
|
2235
|
+
jurisdiction: string;
|
|
2236
|
+
percentage: string;
|
|
2237
|
+
inclusive: Generated<number>;
|
|
2238
|
+
active: Generated<number>;
|
|
2239
|
+
version: Generated<number>;
|
|
2240
|
+
created_at: Generated<string>;
|
|
2241
|
+
updated_at: Generated<string>;
|
|
2242
|
+
}
|
|
2243
|
+
type RestaurantStripeEventStatus = "processing" | "processed" | "failed" | "ignored";
|
|
2244
|
+
interface RestaurantStripeEventTable {
|
|
2245
|
+
id: string;
|
|
2246
|
+
event_id: string;
|
|
2247
|
+
event_type: string;
|
|
2248
|
+
livemode: number;
|
|
2249
|
+
api_version: string | null;
|
|
2250
|
+
object_type: string | null;
|
|
2251
|
+
object_id: string | null;
|
|
2252
|
+
payload_sha256: string;
|
|
2253
|
+
status: Generated<RestaurantStripeEventStatus>;
|
|
2254
|
+
attempt_count: Generated<number>;
|
|
2255
|
+
error_code: string | null;
|
|
2256
|
+
location_id: string | null;
|
|
2257
|
+
payment_id: string | null;
|
|
2258
|
+
received_at: Generated<string>;
|
|
2259
|
+
last_attempt_at: Generated<string>;
|
|
2260
|
+
processed_at: string | null;
|
|
2261
|
+
retain_until: Generated<string>;
|
|
2262
|
+
created_at: Generated<string>;
|
|
2263
|
+
updated_at: Generated<string>;
|
|
2264
|
+
}
|
|
2265
|
+
interface RestaurantMenuTable {
|
|
2266
|
+
id: string;
|
|
2267
|
+
slug: string;
|
|
2268
|
+
name: string;
|
|
2269
|
+
description: string | null;
|
|
2270
|
+
status: "active" | "archived";
|
|
2271
|
+
is_published: Generated<number>;
|
|
2272
|
+
version: Generated<number>;
|
|
2273
|
+
created_at: Generated<string>;
|
|
2274
|
+
updated_at: Generated<string>;
|
|
2275
|
+
}
|
|
2276
|
+
interface RestaurantMenuLocationAssignmentTable {
|
|
2277
|
+
id: string;
|
|
2278
|
+
menu_id: string;
|
|
2279
|
+
location_id: string;
|
|
2280
|
+
is_active: Generated<number>;
|
|
2281
|
+
sort_order: Generated<number>;
|
|
2282
|
+
schedule_json: Generated<string>;
|
|
2283
|
+
service_modes_json: Generated<string>;
|
|
2284
|
+
version: Generated<number>;
|
|
2285
|
+
created_at: Generated<string>;
|
|
2286
|
+
updated_at: Generated<string>;
|
|
2287
|
+
}
|
|
2288
|
+
interface RestaurantMenuSectionTable {
|
|
2289
|
+
id: string;
|
|
2290
|
+
menu_id: string;
|
|
2291
|
+
slug: string;
|
|
2292
|
+
name: string;
|
|
2293
|
+
description: string | null;
|
|
2294
|
+
status: "active" | "archived";
|
|
2295
|
+
is_visible: Generated<number>;
|
|
2296
|
+
available_hours_json: Generated<string>;
|
|
2297
|
+
sort_order: Generated<number>;
|
|
2298
|
+
version: Generated<number>;
|
|
2299
|
+
created_at: Generated<string>;
|
|
2300
|
+
updated_at: Generated<string>;
|
|
2301
|
+
}
|
|
2302
|
+
interface RestaurantMenuItemTable {
|
|
2303
|
+
id: string;
|
|
2304
|
+
slug: string;
|
|
2305
|
+
sku: string | null;
|
|
2306
|
+
name: string;
|
|
2307
|
+
description: string | null;
|
|
2308
|
+
base_price_minor: number;
|
|
2309
|
+
currency: string;
|
|
2310
|
+
tax_code: string | null;
|
|
2311
|
+
tax_behavior: RestaurantTaxBehavior | null;
|
|
2312
|
+
image_id: string | null;
|
|
2313
|
+
image_alt_text: string | null;
|
|
2314
|
+
status: "active" | "archived";
|
|
2315
|
+
is_visible: Generated<number>;
|
|
2316
|
+
is_available: Generated<number>;
|
|
2317
|
+
unavailable_until: string | null;
|
|
2318
|
+
allergens_json: Generated<string>;
|
|
2319
|
+
dietary_tags_json: Generated<string>;
|
|
2320
|
+
version: Generated<number>;
|
|
2321
|
+
created_at: Generated<string>;
|
|
2322
|
+
updated_at: Generated<string>;
|
|
2323
|
+
}
|
|
2324
|
+
interface RestaurantMenuSectionItemTable {
|
|
2325
|
+
id: string;
|
|
2326
|
+
section_id: string;
|
|
2327
|
+
menu_item_id: string;
|
|
2328
|
+
sort_order: Generated<number>;
|
|
2329
|
+
version: Generated<number>;
|
|
2330
|
+
created_at: Generated<string>;
|
|
2331
|
+
updated_at: Generated<string>;
|
|
2332
|
+
}
|
|
2333
|
+
interface RestaurantModifierGroupTable {
|
|
2334
|
+
id: string;
|
|
2335
|
+
slug: string;
|
|
2336
|
+
name: string;
|
|
2337
|
+
description: string | null;
|
|
2338
|
+
status: "active" | "archived";
|
|
2339
|
+
version: Generated<number>;
|
|
2340
|
+
created_at: Generated<string>;
|
|
2341
|
+
updated_at: Generated<string>;
|
|
2342
|
+
}
|
|
2343
|
+
interface RestaurantModifierOptionTable {
|
|
2344
|
+
id: string;
|
|
2345
|
+
modifier_group_id: string;
|
|
2346
|
+
name: string;
|
|
2347
|
+
price_delta_minor: Generated<number>;
|
|
2348
|
+
currency: string;
|
|
2349
|
+
status: "active" | "archived";
|
|
2350
|
+
is_available: Generated<number>;
|
|
2351
|
+
sort_order: Generated<number>;
|
|
2352
|
+
version: Generated<number>;
|
|
2353
|
+
created_at: Generated<string>;
|
|
2354
|
+
updated_at: Generated<string>;
|
|
2355
|
+
}
|
|
2356
|
+
interface RestaurantMenuItemModifierGroupTable {
|
|
2357
|
+
id: string;
|
|
2358
|
+
menu_item_id: string;
|
|
2359
|
+
modifier_group_id: string;
|
|
2360
|
+
min_selections: Generated<number>;
|
|
2361
|
+
max_selections: Generated<number>;
|
|
2362
|
+
sort_order: Generated<number>;
|
|
2363
|
+
version: Generated<number>;
|
|
2364
|
+
created_at: Generated<string>;
|
|
2365
|
+
updated_at: Generated<string>;
|
|
2366
|
+
}
|
|
2367
|
+
interface RestaurantMenuItemTranslationTable {
|
|
2368
|
+
id: string;
|
|
2369
|
+
menu_item_id: string;
|
|
2370
|
+
locale: string;
|
|
2371
|
+
name: string;
|
|
2372
|
+
description: string | null;
|
|
2373
|
+
image_alt_text: string | null;
|
|
2374
|
+
version: Generated<number>;
|
|
2375
|
+
created_at: Generated<string>;
|
|
2376
|
+
updated_at: Generated<string>;
|
|
2377
|
+
}
|
|
2378
|
+
interface RestaurantMenuOverrideTable {
|
|
2379
|
+
id: string;
|
|
2380
|
+
location_id: string;
|
|
2381
|
+
menu_item_id: string;
|
|
2382
|
+
price_minor_override: number | null;
|
|
2383
|
+
currency_override: string | null;
|
|
2384
|
+
available_override: number | null;
|
|
2385
|
+
hidden_override: number | null;
|
|
2386
|
+
unavailable_until_override: string | null;
|
|
2387
|
+
version: Generated<number>;
|
|
2388
|
+
created_at: Generated<string>;
|
|
2389
|
+
updated_at: Generated<string>;
|
|
2390
|
+
}
|
|
2391
|
+
//#endregion
|
|
2392
|
+
export { RestaurantReservationExperienceTable as $, RestaurantOperatingSettingsTable as A, RestaurantPaymentFlow as B, RestaurantMenuOverrideTable as C, RestaurantSpecialHoursTable as Ct, RestaurantModifierGroupTable as D, RestaurantZoneTable as Dt, RestaurantMenuTable as E, RestaurantTaxMode as Et, RestaurantOrderSource as F, RestaurantPriorityAlertTable as G, RestaurantPaymentTable as H, RestaurantOrderStatus as I, RestaurantReservationAddonTable as J, RestaurantRefundTable as K, RestaurantOrderStatusHistoryTable as L, RestaurantOrderItemTable as M, RestaurantOrderSequenceTable as N, RestaurantModifierOptionTable as O, UserTable as Ot, RestaurantOrderSnapshotTable as P, RestaurantReservationExperienceIncludedAddonTable as Q, RestaurantOrderTable as R, RestaurantMenuLocationAssignmentTable as S, RestaurantServiceScope as St, RestaurantMenuSectionTable as T, RestaurantTableTable as Tt, RestaurantPriorityAlertDeliveryTable as U, RestaurantPaymentStatus as V, RestaurantPriorityAlertOpportunityTable as W, RestaurantReservationDemandSettingsTable as X, RestaurantReservationBlockTable as Y, RestaurantReservationExperienceAddonCategoryTable as Z, RestaurantLocationMembershipTable as _, RestaurantReservationRequestTableAssignmentTable as _t, RestaurantCartHoldTable as a, RestaurantReservationHoldTable as at, RestaurantMenuItemTable as b, RestaurantReservationTable as bt, RestaurantDeliveryZoneTable as c, RestaurantReservationOfferTable as ct, RestaurantFulfilmentType as d, RestaurantReservationPromotionOperationTable as dt, RestaurantReservationGiftCardAllocationTable as et, RestaurantGiftCardLedgerEntryTable as f, RestaurantReservationPromotionTable as ft, RestaurantHoursTable as g, RestaurantReservationRequestTable as gt, RestaurantHoursOverrideTable as h, RestaurantReservationQuoteTable as ht, RestaurantCapacityOverrideTable as i, RestaurantReservationHoldCommercialSelectionTable as it, RestaurantOrderItemModifierTable as j, RestaurantNotificationSettingsTable as k, RestaurantDineInSessionTable as l, RestaurantReservationPaymentPolicyTable as lt, RestaurantGuestAccessTable as m, RestaurantReservationQuoteLineTable as mt, MediaTable as n, RestaurantReservationHoldAddonOperationTable as nt, RestaurantClosureTable as o, RestaurantReservationLanguageSettingsTable as ot, RestaurantGiftCardTable as p, RestaurantReservationQuoteCheckoutTable as pt, RestaurantReservationAddonCategoryTable as q, RestaurantCapacityCounterTable as r, RestaurantReservationHoldAddonTable as rt, RestaurantDeliverySettingsTable as s, RestaurantReservationOfferLinkDeliveryTable as st, Database as t, RestaurantReservationGiftCardOperationTable as tt, RestaurantDineInSettingsTable as u, RestaurantReservationPromotionAllocationTable as ut, RestaurantLocationTable as v, RestaurantReservationSettingsTable as vt, RestaurantMenuSectionItemTable as w, RestaurantTabRoundTable as wt, RestaurantMenuItemTranslationTable as x, RestaurantReservationTableAssignmentTable as xt, RestaurantMenuItemModifierGroupTable as y, RestaurantReservationStatus as yt, RestaurantOutboxDeliveryTable as z };
|