@tokenoftrust/storefront-runner 1.4.2-rc.0 → 2.0.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/apps/storefront/astro.config.mjs +3 -3
- package/apps/storefront/env.d.ts +54 -5
- package/apps/storefront/integrations/materialize-guard.mjs +12 -14
- package/apps/storefront/migrations-apps/0004_deep_morph.sql +36 -0
- package/apps/storefront/migrations-apps/0005_common_mystique.sql +23 -0
- package/apps/storefront/migrations-apps/0006_broad_microchip.sql +16 -0
- package/apps/storefront/migrations-apps/0007_brave_outlaw_kid.sql +15 -0
- package/apps/storefront/migrations-apps/0008_blue_dazzler.sql +11 -0
- package/apps/storefront/migrations-apps/0009_bored_shinobi_shaw.sql +15 -0
- package/apps/storefront/migrations-apps/0010_ws4_verified_provider_measurement.sql +35 -0
- package/apps/storefront/migrations-apps/meta/0004_snapshot.json +1474 -0
- package/apps/storefront/migrations-apps/meta/0005_snapshot.json +1617 -0
- package/apps/storefront/migrations-apps/meta/0006_snapshot.json +1716 -0
- package/apps/storefront/migrations-apps/meta/0007_snapshot.json +1812 -0
- package/apps/storefront/migrations-apps/meta/0008_snapshot.json +1881 -0
- package/apps/storefront/migrations-apps/meta/0009_snapshot.json +1979 -0
- package/apps/storefront/migrations-apps/meta/_journal.json +42 -0
- package/apps/storefront/public/apps/tot.demo.analytics/0.1.0/entry.js +42 -0
- package/apps/storefront/public/platform/amplitude-http/v1/entry.mjs +19 -0
- package/apps/storefront/public/platform/google-measurement/v1/entry.mjs +19 -0
- package/apps/storefront/public/shared/commerce-chrome.css +20 -2
- package/apps/storefront/scripts/build-v84-clean-clone-standalone.mjs +68 -0
- package/apps/storefront/scripts/deny-v84-clean-clone-standalone-capabilities.mjs +111 -0
- package/apps/storefront/scripts/deny-v84-dogfood-capabilities.mjs +2 -0
- package/apps/storefront/scripts/deny-v84-lifecycle-capabilities.mjs +247 -0
- package/apps/storefront/scripts/dogfood-v84-nonportable-routes.ts +73 -0
- package/apps/storefront/scripts/fixed-v84-native-install-producer.ts +79 -0
- package/apps/storefront/scripts/generated/v84-clean-clone-replay.bundle.mjs +10982 -0
- package/apps/storefront/scripts/import-v84-through-ws2.ts +38 -0
- package/apps/storefront/scripts/initialize-v84-lifecycle-tooling-dependency.ts +2 -0
- package/apps/storefront/scripts/initialize-v84-lifecycle-tooling.ts +4 -0
- package/apps/storefront/scripts/install-v84-native-through-ws1.ts +185 -0
- package/apps/storefront/scripts/prove-clone-isolation.ts +506 -0
- package/apps/storefront/scripts/replay-v84-clean-clone-pass.ts +148 -0
- package/apps/storefront/scripts/replay-v84-clean-clone-standalone.ts +35 -0
- package/apps/storefront/scripts/replay-v84-clean-clone.ts +214 -0
- package/apps/storefront/scripts/run-fixed-v84-native-install-producer.mjs +18 -0
- package/apps/storefront/scripts/run-v84-clone-isolation-proof.mjs +18 -0
- package/apps/storefront/scripts/run-v84-clone-lifecycle-proof.mjs +18 -0
- package/apps/storefront/scripts/run-v84-import-through-ws2-proof.mjs +17 -0
- package/apps/storefront/scripts/run-v84-nonportable-route-dogfood.mjs +15 -0
- package/apps/storefront/scripts/sanitize-v84-proof-environment.mjs +21 -0
- package/apps/storefront/scripts/v84CleanCloneGraphPin.ts +42 -0
- package/apps/storefront/scripts/v84CleanCloneSourceGraph.ts +145 -0
- package/apps/storefront/scripts/validate-v84-clone-lifecycle.ts +18 -0
- package/apps/storefront/src/components/Img.astro +1 -1
- package/apps/storefront/src/components/admin/AdminBlogTab.astro +19 -16
- package/apps/storefront/src/components/admin/AdminIntegrationsTab.astro +105 -0
- package/apps/storefront/src/components/admin/AdminPublishTab.astro +1057 -412
- package/apps/storefront/src/components/admin/AdminSettingsTab.astro +2 -2
- package/apps/storefront/src/components/admin/orders/OrdersWorkspace.astro +5 -5
- package/apps/storefront/src/components/chrome/NavDropdown.astro +12 -0
- package/apps/storefront/src/components/chrome/SiteFooter.astro +7 -2
- package/apps/storefront/src/components/chrome/SiteHeader.astro +46 -10
- package/apps/storefront/src/components/compliance/AdultSignatureNotice.astro +1 -1
- package/apps/storefront/src/components/compliance/ComplianceNotice.astro +1 -2
- package/apps/storefront/src/components/compliance/ExciseTaxNotice.astro +1 -2
- package/apps/storefront/src/components/compliance/PactActNotice.astro +1 -1
- package/apps/storefront/src/components/compliance/Prop65Warning.astro +1 -2
- package/apps/storefront/src/components/compliance/PurchaseLimitNotice.astro +2 -3
- package/apps/storefront/src/components/compliance/ShippingRestrictionNotice.astro +2 -2
- package/apps/storefront/src/components/compliance/StateEligibilityNotice.astro +2 -3
- package/apps/storefront/src/components/content/TrustStrip.astro +4 -4
- package/apps/storefront/src/components/islands/MobileNav.tsx +26 -1
- package/apps/storefront/src/components/islands/VariantSelector.tsx +27 -2
- package/apps/storefront/src/components/islands/useCheckoutHandoffCorrelation.ts +75 -0
- package/apps/storefront/src/components/membership/IllustrativeLabel.astro +1 -2
- package/apps/storefront/src/components/membership/TierCards.astro +2 -2
- package/apps/storefront/src/components/membership/TierComparisonTable.astro +2 -2
- package/apps/storefront/src/components/subscription/SavingsExplainer.astro +2 -2
- package/apps/storefront/src/config/adminTenantLookup.ts +35 -0
- package/apps/storefront/src/config/devTenantSeed.ts +9 -9
- package/apps/storefront/src/config/resolver.ts +4 -4
- package/apps/storefront/src/layouts/Layout.astro +100 -20
- package/apps/storefront/src/lib/activity/candidateSubmitLease.ts +87 -0
- package/apps/storefront/src/lib/activity/changeActorAttribution.ts +86 -6
- package/apps/storefront/src/lib/activity/deployVersion.ts +1 -1
- package/apps/storefront/src/lib/admin/adminShell.ts +2 -0
- package/apps/storefront/src/lib/admin/envelope.ts +1 -2
- package/apps/storefront/src/lib/apps/adminService.ts +10 -0
- package/apps/storefront/src/lib/apps/adminSession.ts +1 -1
- package/apps/storefront/src/lib/apps/appVersionStore.ts +281 -0
- package/apps/storefront/src/lib/apps/consentConfigStore.ts +228 -0
- package/apps/storefront/src/lib/apps/gtmMigrationInstall.ts +447 -0
- package/apps/storefront/src/lib/apps/gtmMigrationReport.ts +367 -0
- package/apps/storefront/src/lib/apps/gtmMigrationTab.ts +315 -0
- package/apps/storefront/src/lib/apps/integrationLifecycle.ts +614 -0
- package/apps/storefront/src/lib/apps/integrationLifecycleController.ts +125 -0
- package/apps/storefront/src/lib/apps/integrationReadModel.ts +563 -0
- package/apps/storefront/src/lib/apps/integrationsTab.ts +547 -0
- package/apps/storefront/src/lib/apps/integrationsView.ts +106 -0
- package/apps/storefront/src/lib/apps/managedAnalyticsService.ts +599 -0
- package/apps/storefront/src/lib/apps/orders/orderConversionD1.ts +150 -0
- package/apps/storefront/src/lib/apps/orders/orderForwardReceiver.ts +8 -0
- package/apps/storefront/src/lib/apps/orders/ordersStore.ts +1 -1
- package/apps/storefront/src/lib/apps/orders/verifiedProviderMeasurement.ts +117 -0
- package/apps/storefront/src/lib/apps/registryService.ts +264 -10
- package/apps/storefront/src/lib/apps/tenantIntegrationMaterialization.ts +170 -0
- package/apps/storefront/src/lib/apps/v84CleanCloneReplayContext.ts +16 -0
- package/apps/storefront/src/lib/apps/v84CloneLifecycleCacheEvidence.ts +105 -0
- package/apps/storefront/src/lib/apps/v84CloneLifecycleEvidence.ts +177 -0
- package/apps/storefront/src/lib/apps/v84CloneLifecycleMaterialization.ts +251 -0
- package/apps/storefront/src/lib/apps/v84CloneLifecycleSemantics.ts +241 -0
- package/apps/storefront/src/lib/apps/v84CloneMigrationEvidence.ts +211 -0
- package/apps/storefront/src/lib/apps/v84CloneNativeInstallEvidence.ts +409 -0
- package/apps/storefront/src/lib/apps/v84NonportableCodeCoaching.ts +368 -0
- package/apps/storefront/src/lib/apps/v84NonportableRouteContract.ts +188 -0
- package/apps/storefront/src/lib/apps/v84NonportableRouteDogfood.ts +291 -0
- package/apps/storefront/src/lib/apps/ws1ManagedAnalyticsClient.ts +95 -0
- package/apps/storefront/src/lib/auth/adminApiGuard.ts +66 -0
- package/apps/storefront/src/lib/auth/adminEntry.ts +2 -2
- package/apps/storefront/src/lib/auth/adminLanding.ts +88 -0
- package/apps/storefront/src/lib/blog/collection.ts +97 -10
- package/apps/storefront/src/lib/blog/markdown.ts +1 -1
- package/apps/storefront/src/lib/blog/provider.ts +57 -3
- package/apps/storefront/src/lib/blog/types.ts +9 -9
- package/apps/storefront/src/lib/chrome/examples/tokenoftrust.chrome-assignments.example.json +6 -0
- package/apps/storefront/src/lib/chrome/examples/tokenoftrust.chrome.example.json +79 -0
- package/apps/storefront/src/lib/chrome/model.ts +48 -253
- package/apps/storefront/src/lib/chrome/navCurrent.ts +29 -0
- package/apps/storefront/src/lib/chrome/parseConfig.ts +18 -32
- package/apps/storefront/src/lib/chrome/variant.ts +39 -0
- package/apps/storefront/src/lib/commerce/checkoutHandoffCorrelation.ts +105 -0
- package/apps/storefront/src/lib/compliance/tamper-sentinel-boot.ts +152 -0
- package/apps/storefront/src/lib/compliance/tamper-sentinel.ts +327 -0
- package/apps/storefront/src/lib/content/index.ts +5 -5
- package/apps/storefront/src/lib/content-edit/applyDiff.ts +1 -1
- package/apps/storefront/src/lib/content-edit/route.ts +1 -1
- package/apps/storefront/src/lib/d1/catalog.ts +12 -0
- package/apps/storefront/src/lib/d1/schema-apps.ts +276 -0
- package/apps/storefront/src/lib/dev/cockpit/ask.ts +49 -0
- package/apps/storefront/src/lib/dev/cockpit/clickToSource.ts +71 -0
- package/apps/storefront/src/lib/dev/cockpit/copyCommand.ts +227 -0
- package/apps/storefront/src/lib/dev/cockpit/files.ts +249 -0
- package/apps/storefront/src/lib/dev/cockpit/hostedActivity.ts +500 -0
- package/apps/storefront/src/lib/dev/cockpit/infoPopover.ts +12 -0
- package/apps/storefront/src/lib/dev/cockpit/mcpCopy.ts +34 -0
- package/apps/storefront/src/lib/dev/cockpit/monitor.ts +107 -0
- package/apps/storefront/src/lib/dev/cockpit/stepper.ts +116 -0
- package/apps/storefront/src/lib/dev/cockpit/themeToggle.ts +23 -0
- package/apps/storefront/src/lib/dev/runtimeStore.ts +1 -1
- package/apps/storefront/src/lib/edgeCache.ts +18 -6
- package/apps/storefront/src/lib/email/candidateConflictEmail.ts +80 -0
- package/apps/storefront/src/lib/integration/browserEnvironment.ts +137 -0
- package/apps/storefront/src/lib/integration/managedInstallDeclarations.ts +72 -0
- package/apps/storefront/src/lib/integration/nonceStamp.ts +49 -0
- package/apps/storefront/src/lib/integration/tenantDeclarations.ts +116 -0
- package/apps/storefront/src/lib/membership/eligibility.ts +1 -1
- package/apps/storefront/src/lib/membership/model.ts +1 -2
- package/apps/storefront/src/lib/newsletter/confirmationEmail.ts +2 -2
- package/apps/storefront/src/lib/newsletter/consent.ts +2 -2
- package/apps/storefront/src/lib/newsletter/send.ts +3 -3
- package/apps/storefront/src/lib/previewReload.ts +57 -1
- package/apps/storefront/src/lib/publish/adminPublishTab.ts +1775 -669
- package/apps/storefront/src/lib/publish/buildStream.ts +269 -0
- package/apps/storefront/src/lib/publish/collapsePersistence.ts +72 -0
- package/apps/storefront/src/lib/publish/lifecycleState.ts +369 -0
- package/apps/storefront/src/lib/publish/liveReleaseSummary.ts +29 -0
- package/apps/storefront/src/lib/publish/mergeDoctorOnFailure.ts +78 -0
- package/apps/storefront/src/lib/publish/mergeHealthBanner.ts +62 -0
- package/apps/storefront/src/lib/publish/mergeRowFindings.ts +124 -0
- package/apps/storefront/src/lib/publish/mergeSupportEscalation.ts +75 -0
- package/apps/storefront/src/lib/publish/publish-guard.ts +88 -0
- package/apps/storefront/src/lib/publish/publishFormat.ts +165 -0
- package/apps/storefront/src/lib/publish/publishHero.ts +177 -0
- package/apps/storefront/src/lib/publish/reviewRelease/changeState.ts +66 -0
- package/apps/storefront/src/lib/publish/reviewRelease/copy.ts +141 -0
- package/apps/storefront/src/lib/publish/reviewRelease/index.ts +41 -0
- package/apps/storefront/src/lib/publish/reviewRelease/permissions.ts +47 -0
- package/apps/storefront/src/lib/publish/reviewRelease/releaseState.ts +42 -0
- package/apps/storefront/src/lib/publish/reviewRelease/types.ts +59 -0
- package/apps/storefront/src/lib/publish/reviewRelease/viewModel.ts +440 -0
- package/apps/storefront/src/lib/publish/reviewReleaseWorkspace/actions.ts +161 -0
- package/apps/storefront/src/lib/publish/reviewReleaseWorkspace/controller.ts +325 -0
- package/apps/storefront/src/lib/publish/reviewReleaseWorkspace/render.ts +241 -0
- package/apps/storefront/src/lib/publish/shipWorkspace.ts +22 -3
- package/apps/storefront/src/lib/publish/sseRoute.ts +119 -0
- package/apps/storefront/src/lib/publish/streamLogConsole.ts +142 -0
- package/apps/storefront/src/lib/publish/versionNumber.ts +52 -0
- package/apps/storefront/src/lib/rawChrome.ts +125 -47
- package/apps/storefront/src/lib/rawMarketingHtml.ts +74 -3
- package/apps/storefront/src/lib/seo/alternates.ts +1 -1
- package/apps/storefront/src/lib/social/notify.ts +4 -4
- package/apps/storefront/src/lib/storyblok/content-model.ts +7 -33
- package/apps/storefront/src/lib/storyblok/provider.ts +168 -60
- package/apps/storefront/src/lib/subscription/model.ts +4 -4
- package/apps/storefront/src/lib/the-build/provider.ts +9 -4
- package/apps/storefront/src/middleware/index.ts +273 -51
- package/apps/storefront/src/pages/[...slug].astro +9 -4
- package/apps/storefront/src/pages/admin/review-release.astro +265 -0
- package/apps/storefront/src/pages/admin/select.astro +96 -0
- package/apps/storefront/src/pages/admin.astro +16 -2
- package/apps/storefront/src/pages/api/activity.ts +8 -8
- package/apps/storefront/src/pages/api/admin/activity-alerts.ts +5 -20
- package/apps/storefront/src/pages/api/admin/orders/[id].ts +7 -2
- package/apps/storefront/src/pages/api/admin/orders.ts +8 -2
- package/apps/storefront/src/pages/api/apps/admin/gtm-migration-install.ts +174 -0
- package/apps/storefront/src/pages/api/apps/admin/gtm-migration.ts +96 -0
- package/apps/storefront/src/pages/api/apps/admin/integration-lifecycle.ts +118 -0
- package/apps/storefront/src/pages/api/apps/admin/integrations.ts +89 -0
- package/apps/storefront/src/pages/api/apps/admin/platform-adapters.ts +85 -0
- package/apps/storefront/src/pages/api/apps/internal/order-forward.ts +74 -2
- package/apps/storefront/src/pages/api/commerce/checkout-handoff.ts +77 -0
- package/apps/storefront/src/pages/api/compliance/tamper.ts +88 -0
- package/apps/storefront/src/pages/api/integrations/v1/[operation].ts +108 -0
- package/apps/storefront/src/pages/api/rum/vitals.ts +1 -2
- package/apps/storefront/src/pages/blog/[slug].astro +5 -5
- package/apps/storefront/src/pages/blog/author/[author].astro +3 -3
- package/apps/storefront/src/pages/blog/category/[category].astro +2 -2
- package/apps/storefront/src/pages/blog/index.astro +2 -2
- package/apps/storefront/src/pages/blog/tag/[tag].astro +2 -2
- package/apps/storefront/src/pages/cockpit.astro +61 -1362
- package/apps/storefront/src/pages/index.astro +10 -5
- package/apps/storefront/src/pages/llms.txt.ts +1 -1
- package/apps/storefront/src/pages/products/[handle].astro +7 -6
- package/apps/storefront/src/pages/sitemap.xml.ts +2 -2
- package/apps/storefront/src/pages/style-guide/[tenant]/[theme].astro +31 -27
- package/apps/storefront/src/pages/style-guide/[tenant]/chrome/[theme].astro +1 -1
- package/apps/storefront/src/pages/tenants/[id]/[...path].ts +38 -2
- package/apps/storefront/src/pages/the-build/[slug].astro +4 -4
- package/apps/storefront/src/pages/the-build/index.astro +2 -2
- package/apps/storefront/src/pages/the-build/rss.xml.ts +2 -2
- package/apps/storefront/src/styles/admin.css +27 -1
- package/apps/storefront/tsconfig.json +1 -1
- package/package.json +1 -1
- package/packages/public-runtime/package.json +2 -1
- package/packages/public-runtime/schemas/managed-analytics/v1/adapter-definition.schema.json +427 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/create-integration-install-request.schema.json +161 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/create-migration-draft-request.schema.json +157 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/delete-integration-install-request.schema.json +84 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/delete-migration-draft-request.schema.json +84 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/error-envelope.schema.json +180 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/get-adapter-definition-request.schema.json +52 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/get-integration-install-request.schema.json +52 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/get-integration-revision-request.schema.json +79 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/get-migration-draft-request.schema.json +52 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/integration-install.schema.json +167 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/integration-revision.schema.json +208 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/list-adapter-definitions-request.schema.json +53 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/list-integration-installs-request.schema.json +53 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/list-integration-revisions-request.schema.json +82 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/migration-draft.schema.json +218 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/mutation-request.schema.json +52 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/mutation-success-envelope.schema.json +49 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/read-request.schema.json +20 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/read-success-envelope.schema.json +45 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/revise-integration-install-request.schema.json +156 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/set-integration-install-status-request.schema.json +92 -0
- package/packages/public-runtime/schemas/managed-analytics/v1/update-migration-draft-request.schema.json +184 -0
- package/packages/public-runtime/scripts/generate-managed-analytics-api-v1-schemas.mjs +13 -0
- package/packages/public-runtime/src/activity/catalog.ts +41 -37
- package/packages/public-runtime/src/activity/event.ts +6 -6
- package/packages/public-runtime/src/activity/index.ts +2 -2
- package/packages/public-runtime/src/activity/redaction.ts +4 -4
- package/packages/public-runtime/src/candidate-index.ts +42 -8
- package/packages/public-runtime/src/checkout-orders.ts +2 -2
- package/packages/public-runtime/src/checkout-style-publish.ts +2 -2
- package/packages/public-runtime/src/checkout-style.ts +7 -7
- package/packages/public-runtime/src/checkout.ts +3 -3
- package/packages/public-runtime/src/chrome.ts +777 -0
- package/packages/public-runtime/src/compliance-obligations.ts +310 -0
- package/packages/public-runtime/src/csp.ts +99 -0
- package/packages/public-runtime/src/customization-runtime.ts +32 -1
- package/packages/public-runtime/src/destination-webhook/contract.ts +353 -0
- package/packages/public-runtime/src/embed-catalog.d.mts +9 -0
- package/packages/public-runtime/src/embed-catalog.mjs +40 -0
- package/packages/public-runtime/src/evidence.ts +288 -0
- package/packages/public-runtime/src/gtm-migration/bounds.ts +138 -0
- package/packages/public-runtime/src/gtm-migration/disposition-rules.ts +361 -0
- package/packages/public-runtime/src/gtm-migration/dispositions.ts +181 -0
- package/packages/public-runtime/src/gtm-migration/draft-generator.ts +400 -0
- package/packages/public-runtime/src/gtm-migration/graph.ts +468 -0
- package/packages/public-runtime/src/gtm-migration/index.ts +95 -0
- package/packages/public-runtime/src/gtm-migration/parse.ts +410 -0
- package/packages/public-runtime/src/gtm-migration/references.ts +266 -0
- package/packages/public-runtime/src/gtm-migration/types.ts +86 -0
- package/packages/public-runtime/src/index.ts +16 -1
- package/packages/public-runtime/src/integration/assurance-decision.ts +259 -0
- package/packages/public-runtime/src/integration/assurance.ts +228 -0
- package/packages/public-runtime/src/integration/candidate-evidence.ts +377 -0
- package/packages/public-runtime/src/integration/commerce-broker.ts +497 -0
- package/packages/public-runtime/src/integration/consent-broker.ts +337 -0
- package/packages/public-runtime/src/integration/consent-cmp-demand.ts +115 -0
- package/packages/public-runtime/src/integration/consent-config.ts +260 -0
- package/packages/public-runtime/src/integration/consent-preview.ts +125 -0
- package/packages/public-runtime/src/integration/correlation-token.ts +444 -0
- package/packages/public-runtime/src/integration/csp-compiler.ts +267 -0
- package/packages/public-runtime/src/integration/csp.ts +105 -0
- package/packages/public-runtime/src/integration/digest.ts +43 -0
- package/packages/public-runtime/src/integration/environment.ts +228 -0
- package/packages/public-runtime/src/integration/events-catalog.ts +186 -0
- package/packages/public-runtime/src/integration/events.ts +701 -0
- package/packages/public-runtime/src/integration/g2-action-boundary.ts +106 -0
- package/packages/public-runtime/src/integration/index.ts +90 -0
- package/packages/public-runtime/src/integration/interim-bridge.ts +138 -0
- package/packages/public-runtime/src/integration/lifecycle-boot.ts +317 -0
- package/packages/public-runtime/src/integration/lifecycle-runtime.ts +393 -0
- package/packages/public-runtime/src/integration/lifecycle.ts +94 -0
- package/packages/public-runtime/src/integration/managed-analytics-api-v1-safety.d.mts +2 -0
- package/packages/public-runtime/src/integration/managed-analytics-api-v1-safety.mjs +10 -0
- package/packages/public-runtime/src/integration/managed-analytics-api-v1.schemas.ts +382 -0
- package/packages/public-runtime/src/integration/managed-analytics-api-v1.ts +684 -0
- package/packages/public-runtime/src/integration/managed-analytics-bridge.ts +383 -0
- package/packages/public-runtime/src/integration/managed-analytics-value-safety.ts +14 -0
- package/packages/public-runtime/src/integration/managed-analytics.ts +277 -0
- package/packages/public-runtime/src/integration/manifest.ts +470 -0
- package/packages/public-runtime/src/integration/native-amplitude.ts +362 -0
- package/packages/public-runtime/src/integration/native-ga4.ts +352 -0
- package/packages/public-runtime/src/integration/observability.ts +451 -0
- package/packages/public-runtime/src/integration/order-conversion.ts +0 -0
- package/packages/public-runtime/src/integration/phases.ts +182 -0
- package/packages/public-runtime/src/integration/plan.ts +112 -0
- package/packages/public-runtime/src/integration/platform-adapter-runtime.ts +146 -0
- package/packages/public-runtime/src/integration/platform-adapters.ts +671 -0
- package/packages/public-runtime/src/integration/promotion-gate.ts +451 -0
- package/packages/public-runtime/src/integration/provider-checkout-extension.ts +425 -0
- package/packages/public-runtime/src/integration/receipt-measurement.ts +370 -0
- package/packages/public-runtime/src/integration/regulated-parent-cert.ts +311 -0
- package/packages/public-runtime/src/integration/render-phases.ts +267 -0
- package/packages/public-runtime/src/integration/resolve.ts +465 -0
- package/packages/public-runtime/src/integration/result.ts +239 -0
- package/packages/public-runtime/src/integration/secrets.ts +92 -0
- package/packages/public-runtime/src/integration/tamper-evidence.ts +205 -0
- package/packages/public-runtime/src/integration/tamper-recovery.ts +127 -0
- package/packages/public-runtime/src/integration/version.ts +92 -0
- package/packages/public-runtime/src/integration-capabilities.ts +520 -0
- package/packages/public-runtime/src/membership.ts +2 -2
- package/packages/public-runtime/src/raw-html-policy.ts +2 -4
- package/packages/public-runtime/src/regulated-commerce/broker/consent-dedupe.ts +144 -0
- package/packages/public-runtime/src/regulated-commerce/correlation/contract.ts +177 -0
- package/packages/public-runtime/src/regulated-commerce/diagnostics/local-dispatch.ts +24 -0
- package/packages/public-runtime/src/regulated-commerce/diagnostics/read-model.ts +69 -0
- package/packages/public-runtime/src/regulated-commerce/dispatch/core.ts +134 -0
- package/packages/public-runtime/src/regulated-commerce/events/contract.ts +113 -0
- package/packages/public-runtime/src/regulated-commerce/ledger/core.ts +81 -0
- package/packages/public-runtime/src/regulated-commerce/mappings/ga4-ads.ts +87 -0
- package/packages/public-runtime/src/regulated-commerce/provider-order/bridge.ts +52 -0
- package/packages/public-runtime/src/regulated-commerce/purchase-truth/contract.ts +252 -0
- package/packages/public-runtime/src/regulated-commerce/sources/accepted-browser-operation.ts +67 -0
- package/packages/public-runtime/src/regulated-commerce/testing/fake-destination.ts +93 -0
- package/packages/public-runtime/src/static-bundle.ts +5 -5
- package/packages/public-runtime/src/tenant-assets.ts +143 -4
- package/packages/public-runtime/src/tenant.ts +45 -9
- package/packages/public-runtime/tests/fixtures/integration/browser-environment.example.json +8 -0
- package/packages/public-runtime/tests/fixtures/integration/commerce-event.example.json +44 -0
- package/packages/public-runtime/tests/fixtures/integration/commerce-order-event.example.json +44 -0
- package/packages/public-runtime/tests/fixtures/integration/compliance-assurance-record.example.json +50 -0
- package/packages/public-runtime/tests/fixtures/integration/integration-manifest-v2.example.json +120 -0
- package/packages/public-runtime/tests/fixtures/integration/managed-analytics-v1/fake-adapter-catalog.json +35 -0
- package/packages/public-runtime/tests/fixtures/integration/tenant-action-registry.example.json +11 -0
- package/packages/public-runtime/tests/fixtures/integration/tenant-local-example/README.md +22 -0
- package/packages/public-runtime/tests/fixtures/integration/tenant-local-example/entry.js +30 -0
- package/packages/public-runtime/tests/fixtures/integration/tenant-local-example/manifest.json +75 -0
- package/packages/public-runtime/tests/fixtures/integration/tenant-local-example/public-config.json +3 -0
- package/packages/public-runtime/tests/fixtures/regulated-commerce/fake-destinations.ts +38 -0
- package/packages/public-runtime/tests/gtm-migration/fixtures/gtm-sample-container-v84.provenance.json +29 -0
- package/packages/public-runtime/tests/gtm-migration/fixtures/gtm-sample-container-v84.redacted.json +3397 -0
- package/scripts/dev/file-browser.mjs +2 -2
- package/scripts/dev/file-writer.mjs +2 -2
- package/scripts/dev/integration-guardrails.mjs +498 -0
- package/scripts/dev/safe-path.mjs +2 -2
- package/scripts/dev/tenant-source-root.mjs +1 -1
- package/scripts/tot-dev.mjs +2 -2
|
@@ -0,0 +1,1474 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "acf2cadd-ff2f-4930-ab74-985d6e296dbe",
|
|
5
|
+
"prevId": "a288811d-ba42-4652-9dbc-3b3cc1223816",
|
|
6
|
+
"tables": {
|
|
7
|
+
"activity_events": {
|
|
8
|
+
"name": "activity_events",
|
|
9
|
+
"columns": {
|
|
10
|
+
"id": {
|
|
11
|
+
"name": "id",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": false
|
|
16
|
+
},
|
|
17
|
+
"tenant_id": {
|
|
18
|
+
"name": "tenant_id",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
},
|
|
24
|
+
"action": {
|
|
25
|
+
"name": "action",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true,
|
|
29
|
+
"autoincrement": false
|
|
30
|
+
},
|
|
31
|
+
"actor_kind": {
|
|
32
|
+
"name": "actor_kind",
|
|
33
|
+
"type": "text",
|
|
34
|
+
"primaryKey": false,
|
|
35
|
+
"notNull": true,
|
|
36
|
+
"autoincrement": false
|
|
37
|
+
},
|
|
38
|
+
"actor_id": {
|
|
39
|
+
"name": "actor_id",
|
|
40
|
+
"type": "text",
|
|
41
|
+
"primaryKey": false,
|
|
42
|
+
"notNull": true,
|
|
43
|
+
"autoincrement": false
|
|
44
|
+
},
|
|
45
|
+
"actor_ref": {
|
|
46
|
+
"name": "actor_ref",
|
|
47
|
+
"type": "text",
|
|
48
|
+
"primaryKey": false,
|
|
49
|
+
"notNull": false,
|
|
50
|
+
"autoincrement": false
|
|
51
|
+
},
|
|
52
|
+
"source": {
|
|
53
|
+
"name": "source",
|
|
54
|
+
"type": "text",
|
|
55
|
+
"primaryKey": false,
|
|
56
|
+
"notNull": true,
|
|
57
|
+
"autoincrement": false
|
|
58
|
+
},
|
|
59
|
+
"status": {
|
|
60
|
+
"name": "status",
|
|
61
|
+
"type": "text",
|
|
62
|
+
"primaryKey": false,
|
|
63
|
+
"notNull": true,
|
|
64
|
+
"autoincrement": false
|
|
65
|
+
},
|
|
66
|
+
"error_class": {
|
|
67
|
+
"name": "error_class",
|
|
68
|
+
"type": "text",
|
|
69
|
+
"primaryKey": false,
|
|
70
|
+
"notNull": false,
|
|
71
|
+
"autoincrement": false
|
|
72
|
+
},
|
|
73
|
+
"duration_ms": {
|
|
74
|
+
"name": "duration_ms",
|
|
75
|
+
"type": "integer",
|
|
76
|
+
"primaryKey": false,
|
|
77
|
+
"notNull": false,
|
|
78
|
+
"autoincrement": false
|
|
79
|
+
},
|
|
80
|
+
"change_id": {
|
|
81
|
+
"name": "change_id",
|
|
82
|
+
"type": "text",
|
|
83
|
+
"primaryKey": false,
|
|
84
|
+
"notNull": false,
|
|
85
|
+
"autoincrement": false
|
|
86
|
+
},
|
|
87
|
+
"trace_id": {
|
|
88
|
+
"name": "trace_id",
|
|
89
|
+
"type": "text",
|
|
90
|
+
"primaryKey": false,
|
|
91
|
+
"notNull": false,
|
|
92
|
+
"autoincrement": false
|
|
93
|
+
},
|
|
94
|
+
"payload": {
|
|
95
|
+
"name": "payload",
|
|
96
|
+
"type": "text",
|
|
97
|
+
"primaryKey": false,
|
|
98
|
+
"notNull": true,
|
|
99
|
+
"autoincrement": false,
|
|
100
|
+
"default": "'{}'"
|
|
101
|
+
},
|
|
102
|
+
"schema_version": {
|
|
103
|
+
"name": "schema_version",
|
|
104
|
+
"type": "integer",
|
|
105
|
+
"primaryKey": false,
|
|
106
|
+
"notNull": true,
|
|
107
|
+
"autoincrement": false
|
|
108
|
+
},
|
|
109
|
+
"at": {
|
|
110
|
+
"name": "at",
|
|
111
|
+
"type": "text",
|
|
112
|
+
"primaryKey": false,
|
|
113
|
+
"notNull": true,
|
|
114
|
+
"autoincrement": false
|
|
115
|
+
},
|
|
116
|
+
"ingested_at": {
|
|
117
|
+
"name": "ingested_at",
|
|
118
|
+
"type": "text",
|
|
119
|
+
"primaryKey": false,
|
|
120
|
+
"notNull": true,
|
|
121
|
+
"autoincrement": false
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"indexes": {
|
|
125
|
+
"idx_activity_tenant_at": {
|
|
126
|
+
"name": "idx_activity_tenant_at",
|
|
127
|
+
"columns": [
|
|
128
|
+
"tenant_id",
|
|
129
|
+
"at"
|
|
130
|
+
],
|
|
131
|
+
"isUnique": false
|
|
132
|
+
},
|
|
133
|
+
"idx_activity_tenant_action": {
|
|
134
|
+
"name": "idx_activity_tenant_action",
|
|
135
|
+
"columns": [
|
|
136
|
+
"tenant_id",
|
|
137
|
+
"action"
|
|
138
|
+
],
|
|
139
|
+
"isUnique": false
|
|
140
|
+
},
|
|
141
|
+
"idx_activity_change": {
|
|
142
|
+
"name": "idx_activity_change",
|
|
143
|
+
"columns": [
|
|
144
|
+
"change_id"
|
|
145
|
+
],
|
|
146
|
+
"isUnique": false
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"foreignKeys": {},
|
|
150
|
+
"compositePrimaryKeys": {},
|
|
151
|
+
"uniqueConstraints": {},
|
|
152
|
+
"checkConstraints": {}
|
|
153
|
+
},
|
|
154
|
+
"app_attributions": {
|
|
155
|
+
"name": "app_attributions",
|
|
156
|
+
"columns": {
|
|
157
|
+
"install_id": {
|
|
158
|
+
"name": "install_id",
|
|
159
|
+
"type": "text",
|
|
160
|
+
"primaryKey": false,
|
|
161
|
+
"notNull": true,
|
|
162
|
+
"autoincrement": false
|
|
163
|
+
},
|
|
164
|
+
"attribution_id": {
|
|
165
|
+
"name": "attribution_id",
|
|
166
|
+
"type": "text",
|
|
167
|
+
"primaryKey": false,
|
|
168
|
+
"notNull": true,
|
|
169
|
+
"autoincrement": false
|
|
170
|
+
},
|
|
171
|
+
"tenant_id": {
|
|
172
|
+
"name": "tenant_id",
|
|
173
|
+
"type": "text",
|
|
174
|
+
"primaryKey": false,
|
|
175
|
+
"notNull": true,
|
|
176
|
+
"autoincrement": false
|
|
177
|
+
},
|
|
178
|
+
"order_id": {
|
|
179
|
+
"name": "order_id",
|
|
180
|
+
"type": "text",
|
|
181
|
+
"primaryKey": false,
|
|
182
|
+
"notNull": true,
|
|
183
|
+
"autoincrement": false
|
|
184
|
+
},
|
|
185
|
+
"campaign": {
|
|
186
|
+
"name": "campaign",
|
|
187
|
+
"type": "text",
|
|
188
|
+
"primaryKey": false,
|
|
189
|
+
"notNull": false,
|
|
190
|
+
"autoincrement": false
|
|
191
|
+
},
|
|
192
|
+
"referral_code": {
|
|
193
|
+
"name": "referral_code",
|
|
194
|
+
"type": "text",
|
|
195
|
+
"primaryKey": false,
|
|
196
|
+
"notNull": false,
|
|
197
|
+
"autoincrement": false
|
|
198
|
+
},
|
|
199
|
+
"commission_amount": {
|
|
200
|
+
"name": "commission_amount",
|
|
201
|
+
"type": "real",
|
|
202
|
+
"primaryKey": false,
|
|
203
|
+
"notNull": false,
|
|
204
|
+
"autoincrement": false
|
|
205
|
+
},
|
|
206
|
+
"commission_currency": {
|
|
207
|
+
"name": "commission_currency",
|
|
208
|
+
"type": "text",
|
|
209
|
+
"primaryKey": false,
|
|
210
|
+
"notNull": false,
|
|
211
|
+
"autoincrement": false
|
|
212
|
+
},
|
|
213
|
+
"customer_hash": {
|
|
214
|
+
"name": "customer_hash",
|
|
215
|
+
"type": "text",
|
|
216
|
+
"primaryKey": false,
|
|
217
|
+
"notNull": false,
|
|
218
|
+
"autoincrement": false
|
|
219
|
+
},
|
|
220
|
+
"recorded_at": {
|
|
221
|
+
"name": "recorded_at",
|
|
222
|
+
"type": "text",
|
|
223
|
+
"primaryKey": false,
|
|
224
|
+
"notNull": true,
|
|
225
|
+
"autoincrement": false
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"indexes": {
|
|
229
|
+
"idx_app_attributions_tenant_order": {
|
|
230
|
+
"name": "idx_app_attributions_tenant_order",
|
|
231
|
+
"columns": [
|
|
232
|
+
"tenant_id",
|
|
233
|
+
"order_id"
|
|
234
|
+
],
|
|
235
|
+
"isUnique": false
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"foreignKeys": {},
|
|
239
|
+
"compositePrimaryKeys": {
|
|
240
|
+
"app_attributions_install_id_attribution_id_pk": {
|
|
241
|
+
"columns": [
|
|
242
|
+
"install_id",
|
|
243
|
+
"attribution_id"
|
|
244
|
+
],
|
|
245
|
+
"name": "app_attributions_install_id_attribution_id_pk"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"uniqueConstraints": {},
|
|
249
|
+
"checkConstraints": {}
|
|
250
|
+
},
|
|
251
|
+
"app_audit_log": {
|
|
252
|
+
"name": "app_audit_log",
|
|
253
|
+
"columns": {
|
|
254
|
+
"id": {
|
|
255
|
+
"name": "id",
|
|
256
|
+
"type": "text",
|
|
257
|
+
"primaryKey": true,
|
|
258
|
+
"notNull": true,
|
|
259
|
+
"autoincrement": false
|
|
260
|
+
},
|
|
261
|
+
"install_id": {
|
|
262
|
+
"name": "install_id",
|
|
263
|
+
"type": "text",
|
|
264
|
+
"primaryKey": false,
|
|
265
|
+
"notNull": true,
|
|
266
|
+
"autoincrement": false
|
|
267
|
+
},
|
|
268
|
+
"tenant_id": {
|
|
269
|
+
"name": "tenant_id",
|
|
270
|
+
"type": "text",
|
|
271
|
+
"primaryKey": false,
|
|
272
|
+
"notNull": true,
|
|
273
|
+
"autoincrement": false
|
|
274
|
+
},
|
|
275
|
+
"event": {
|
|
276
|
+
"name": "event",
|
|
277
|
+
"type": "text",
|
|
278
|
+
"primaryKey": false,
|
|
279
|
+
"notNull": true,
|
|
280
|
+
"autoincrement": false
|
|
281
|
+
},
|
|
282
|
+
"actor": {
|
|
283
|
+
"name": "actor",
|
|
284
|
+
"type": "text",
|
|
285
|
+
"primaryKey": false,
|
|
286
|
+
"notNull": true,
|
|
287
|
+
"autoincrement": false
|
|
288
|
+
},
|
|
289
|
+
"trace_id": {
|
|
290
|
+
"name": "trace_id",
|
|
291
|
+
"type": "text",
|
|
292
|
+
"primaryKey": false,
|
|
293
|
+
"notNull": false,
|
|
294
|
+
"autoincrement": false
|
|
295
|
+
},
|
|
296
|
+
"detail": {
|
|
297
|
+
"name": "detail",
|
|
298
|
+
"type": "text",
|
|
299
|
+
"primaryKey": false,
|
|
300
|
+
"notNull": true,
|
|
301
|
+
"autoincrement": false,
|
|
302
|
+
"default": "'{}'"
|
|
303
|
+
},
|
|
304
|
+
"at": {
|
|
305
|
+
"name": "at",
|
|
306
|
+
"type": "text",
|
|
307
|
+
"primaryKey": false,
|
|
308
|
+
"notNull": true,
|
|
309
|
+
"autoincrement": false
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"indexes": {
|
|
313
|
+
"idx_app_audit_install": {
|
|
314
|
+
"name": "idx_app_audit_install",
|
|
315
|
+
"columns": [
|
|
316
|
+
"install_id"
|
|
317
|
+
],
|
|
318
|
+
"isUnique": false
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"foreignKeys": {},
|
|
322
|
+
"compositePrimaryKeys": {},
|
|
323
|
+
"uniqueConstraints": {},
|
|
324
|
+
"checkConstraints": {}
|
|
325
|
+
},
|
|
326
|
+
"app_credentials": {
|
|
327
|
+
"name": "app_credentials",
|
|
328
|
+
"columns": {
|
|
329
|
+
"install_id": {
|
|
330
|
+
"name": "install_id",
|
|
331
|
+
"type": "text",
|
|
332
|
+
"primaryKey": true,
|
|
333
|
+
"notNull": true,
|
|
334
|
+
"autoincrement": false
|
|
335
|
+
},
|
|
336
|
+
"client_id": {
|
|
337
|
+
"name": "client_id",
|
|
338
|
+
"type": "text",
|
|
339
|
+
"primaryKey": false,
|
|
340
|
+
"notNull": true,
|
|
341
|
+
"autoincrement": false
|
|
342
|
+
},
|
|
343
|
+
"secret_hash": {
|
|
344
|
+
"name": "secret_hash",
|
|
345
|
+
"type": "text",
|
|
346
|
+
"primaryKey": false,
|
|
347
|
+
"notNull": true,
|
|
348
|
+
"autoincrement": false
|
|
349
|
+
},
|
|
350
|
+
"secret_created_at": {
|
|
351
|
+
"name": "secret_created_at",
|
|
352
|
+
"type": "text",
|
|
353
|
+
"primaryKey": false,
|
|
354
|
+
"notNull": true,
|
|
355
|
+
"autoincrement": false
|
|
356
|
+
},
|
|
357
|
+
"rotated_at": {
|
|
358
|
+
"name": "rotated_at",
|
|
359
|
+
"type": "text",
|
|
360
|
+
"primaryKey": false,
|
|
361
|
+
"notNull": false,
|
|
362
|
+
"autoincrement": false
|
|
363
|
+
},
|
|
364
|
+
"jwks_kid": {
|
|
365
|
+
"name": "jwks_kid",
|
|
366
|
+
"type": "text",
|
|
367
|
+
"primaryKey": false,
|
|
368
|
+
"notNull": true,
|
|
369
|
+
"autoincrement": false
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"indexes": {
|
|
373
|
+
"app_credentials_client_id_unique": {
|
|
374
|
+
"name": "app_credentials_client_id_unique",
|
|
375
|
+
"columns": [
|
|
376
|
+
"client_id"
|
|
377
|
+
],
|
|
378
|
+
"isUnique": true
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"foreignKeys": {},
|
|
382
|
+
"compositePrimaryKeys": {},
|
|
383
|
+
"uniqueConstraints": {},
|
|
384
|
+
"checkConstraints": {}
|
|
385
|
+
},
|
|
386
|
+
"app_installs": {
|
|
387
|
+
"name": "app_installs",
|
|
388
|
+
"columns": {
|
|
389
|
+
"install_id": {
|
|
390
|
+
"name": "install_id",
|
|
391
|
+
"type": "text",
|
|
392
|
+
"primaryKey": true,
|
|
393
|
+
"notNull": true,
|
|
394
|
+
"autoincrement": false
|
|
395
|
+
},
|
|
396
|
+
"app_id": {
|
|
397
|
+
"name": "app_id",
|
|
398
|
+
"type": "text",
|
|
399
|
+
"primaryKey": false,
|
|
400
|
+
"notNull": true,
|
|
401
|
+
"autoincrement": false
|
|
402
|
+
},
|
|
403
|
+
"app_version": {
|
|
404
|
+
"name": "app_version",
|
|
405
|
+
"type": "text",
|
|
406
|
+
"primaryKey": false,
|
|
407
|
+
"notNull": true,
|
|
408
|
+
"autoincrement": false
|
|
409
|
+
},
|
|
410
|
+
"tenant_id": {
|
|
411
|
+
"name": "tenant_id",
|
|
412
|
+
"type": "text",
|
|
413
|
+
"primaryKey": false,
|
|
414
|
+
"notNull": true,
|
|
415
|
+
"autoincrement": false
|
|
416
|
+
},
|
|
417
|
+
"env": {
|
|
418
|
+
"name": "env",
|
|
419
|
+
"type": "text",
|
|
420
|
+
"primaryKey": false,
|
|
421
|
+
"notNull": true,
|
|
422
|
+
"autoincrement": false
|
|
423
|
+
},
|
|
424
|
+
"status": {
|
|
425
|
+
"name": "status",
|
|
426
|
+
"type": "text",
|
|
427
|
+
"primaryKey": false,
|
|
428
|
+
"notNull": true,
|
|
429
|
+
"autoincrement": false,
|
|
430
|
+
"default": "'active'"
|
|
431
|
+
},
|
|
432
|
+
"scopes": {
|
|
433
|
+
"name": "scopes",
|
|
434
|
+
"type": "text",
|
|
435
|
+
"primaryKey": false,
|
|
436
|
+
"notNull": true,
|
|
437
|
+
"autoincrement": false,
|
|
438
|
+
"default": "'[]'"
|
|
439
|
+
},
|
|
440
|
+
"manifest": {
|
|
441
|
+
"name": "manifest",
|
|
442
|
+
"type": "text",
|
|
443
|
+
"primaryKey": false,
|
|
444
|
+
"notNull": true,
|
|
445
|
+
"autoincrement": false
|
|
446
|
+
},
|
|
447
|
+
"webhook_endpoint": {
|
|
448
|
+
"name": "webhook_endpoint",
|
|
449
|
+
"type": "text",
|
|
450
|
+
"primaryKey": false,
|
|
451
|
+
"notNull": false,
|
|
452
|
+
"autoincrement": false
|
|
453
|
+
},
|
|
454
|
+
"widget_placements": {
|
|
455
|
+
"name": "widget_placements",
|
|
456
|
+
"type": "text",
|
|
457
|
+
"primaryKey": false,
|
|
458
|
+
"notNull": true,
|
|
459
|
+
"autoincrement": false,
|
|
460
|
+
"default": "'[]'"
|
|
461
|
+
},
|
|
462
|
+
"install_actor": {
|
|
463
|
+
"name": "install_actor",
|
|
464
|
+
"type": "text",
|
|
465
|
+
"primaryKey": false,
|
|
466
|
+
"notNull": true,
|
|
467
|
+
"autoincrement": false
|
|
468
|
+
},
|
|
469
|
+
"created_at": {
|
|
470
|
+
"name": "created_at",
|
|
471
|
+
"type": "text",
|
|
472
|
+
"primaryKey": false,
|
|
473
|
+
"notNull": true,
|
|
474
|
+
"autoincrement": false
|
|
475
|
+
},
|
|
476
|
+
"updated_at": {
|
|
477
|
+
"name": "updated_at",
|
|
478
|
+
"type": "text",
|
|
479
|
+
"primaryKey": false,
|
|
480
|
+
"notNull": true,
|
|
481
|
+
"autoincrement": false
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"indexes": {
|
|
485
|
+
"uq_app_installs_app_tenant_env": {
|
|
486
|
+
"name": "uq_app_installs_app_tenant_env",
|
|
487
|
+
"columns": [
|
|
488
|
+
"app_id",
|
|
489
|
+
"tenant_id",
|
|
490
|
+
"env"
|
|
491
|
+
],
|
|
492
|
+
"isUnique": true
|
|
493
|
+
},
|
|
494
|
+
"idx_app_installs_tenant": {
|
|
495
|
+
"name": "idx_app_installs_tenant",
|
|
496
|
+
"columns": [
|
|
497
|
+
"tenant_id"
|
|
498
|
+
],
|
|
499
|
+
"isUnique": false
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"foreignKeys": {},
|
|
503
|
+
"compositePrimaryKeys": {},
|
|
504
|
+
"uniqueConstraints": {},
|
|
505
|
+
"checkConstraints": {}
|
|
506
|
+
},
|
|
507
|
+
"candidate_attempts": {
|
|
508
|
+
"name": "candidate_attempts",
|
|
509
|
+
"columns": {
|
|
510
|
+
"id": {
|
|
511
|
+
"name": "id",
|
|
512
|
+
"type": "text",
|
|
513
|
+
"primaryKey": true,
|
|
514
|
+
"notNull": true,
|
|
515
|
+
"autoincrement": false
|
|
516
|
+
},
|
|
517
|
+
"candidate_id": {
|
|
518
|
+
"name": "candidate_id",
|
|
519
|
+
"type": "text",
|
|
520
|
+
"primaryKey": false,
|
|
521
|
+
"notNull": true,
|
|
522
|
+
"autoincrement": false
|
|
523
|
+
},
|
|
524
|
+
"tenant_id": {
|
|
525
|
+
"name": "tenant_id",
|
|
526
|
+
"type": "text",
|
|
527
|
+
"primaryKey": false,
|
|
528
|
+
"notNull": true,
|
|
529
|
+
"autoincrement": false
|
|
530
|
+
},
|
|
531
|
+
"attempt_number": {
|
|
532
|
+
"name": "attempt_number",
|
|
533
|
+
"type": "integer",
|
|
534
|
+
"primaryKey": false,
|
|
535
|
+
"notNull": true,
|
|
536
|
+
"autoincrement": false
|
|
537
|
+
},
|
|
538
|
+
"kind": {
|
|
539
|
+
"name": "kind",
|
|
540
|
+
"type": "text",
|
|
541
|
+
"primaryKey": false,
|
|
542
|
+
"notNull": true,
|
|
543
|
+
"autoincrement": false
|
|
544
|
+
},
|
|
545
|
+
"status": {
|
|
546
|
+
"name": "status",
|
|
547
|
+
"type": "text",
|
|
548
|
+
"primaryKey": false,
|
|
549
|
+
"notNull": true,
|
|
550
|
+
"autoincrement": false,
|
|
551
|
+
"default": "'pending'"
|
|
552
|
+
},
|
|
553
|
+
"head_sha": {
|
|
554
|
+
"name": "head_sha",
|
|
555
|
+
"type": "text",
|
|
556
|
+
"primaryKey": false,
|
|
557
|
+
"notNull": false,
|
|
558
|
+
"autoincrement": false
|
|
559
|
+
},
|
|
560
|
+
"detail": {
|
|
561
|
+
"name": "detail",
|
|
562
|
+
"type": "text",
|
|
563
|
+
"primaryKey": false,
|
|
564
|
+
"notNull": false,
|
|
565
|
+
"autoincrement": false
|
|
566
|
+
},
|
|
567
|
+
"evidence": {
|
|
568
|
+
"name": "evidence",
|
|
569
|
+
"type": "text",
|
|
570
|
+
"primaryKey": false,
|
|
571
|
+
"notNull": false,
|
|
572
|
+
"autoincrement": false
|
|
573
|
+
},
|
|
574
|
+
"started_at": {
|
|
575
|
+
"name": "started_at",
|
|
576
|
+
"type": "text",
|
|
577
|
+
"primaryKey": false,
|
|
578
|
+
"notNull": true,
|
|
579
|
+
"autoincrement": false
|
|
580
|
+
},
|
|
581
|
+
"finished_at": {
|
|
582
|
+
"name": "finished_at",
|
|
583
|
+
"type": "text",
|
|
584
|
+
"primaryKey": false,
|
|
585
|
+
"notNull": false,
|
|
586
|
+
"autoincrement": false
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"indexes": {
|
|
590
|
+
"uq_candidate_attempts_candidate_number": {
|
|
591
|
+
"name": "uq_candidate_attempts_candidate_number",
|
|
592
|
+
"columns": [
|
|
593
|
+
"candidate_id",
|
|
594
|
+
"attempt_number"
|
|
595
|
+
],
|
|
596
|
+
"isUnique": true
|
|
597
|
+
},
|
|
598
|
+
"idx_candidate_attempts_candidate": {
|
|
599
|
+
"name": "idx_candidate_attempts_candidate",
|
|
600
|
+
"columns": [
|
|
601
|
+
"candidate_id"
|
|
602
|
+
],
|
|
603
|
+
"isUnique": false
|
|
604
|
+
},
|
|
605
|
+
"idx_candidate_attempts_tenant": {
|
|
606
|
+
"name": "idx_candidate_attempts_tenant",
|
|
607
|
+
"columns": [
|
|
608
|
+
"tenant_id"
|
|
609
|
+
],
|
|
610
|
+
"isUnique": false
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"foreignKeys": {},
|
|
614
|
+
"compositePrimaryKeys": {},
|
|
615
|
+
"uniqueConstraints": {},
|
|
616
|
+
"checkConstraints": {}
|
|
617
|
+
},
|
|
618
|
+
"candidates": {
|
|
619
|
+
"name": "candidates",
|
|
620
|
+
"columns": {
|
|
621
|
+
"id": {
|
|
622
|
+
"name": "id",
|
|
623
|
+
"type": "text",
|
|
624
|
+
"primaryKey": true,
|
|
625
|
+
"notNull": true,
|
|
626
|
+
"autoincrement": false
|
|
627
|
+
},
|
|
628
|
+
"tenant_id": {
|
|
629
|
+
"name": "tenant_id",
|
|
630
|
+
"type": "text",
|
|
631
|
+
"primaryKey": false,
|
|
632
|
+
"notNull": true,
|
|
633
|
+
"autoincrement": false
|
|
634
|
+
},
|
|
635
|
+
"repository": {
|
|
636
|
+
"name": "repository",
|
|
637
|
+
"type": "text",
|
|
638
|
+
"primaryKey": false,
|
|
639
|
+
"notNull": true,
|
|
640
|
+
"autoincrement": false
|
|
641
|
+
},
|
|
642
|
+
"pr_number": {
|
|
643
|
+
"name": "pr_number",
|
|
644
|
+
"type": "integer",
|
|
645
|
+
"primaryKey": false,
|
|
646
|
+
"notNull": true,
|
|
647
|
+
"autoincrement": false
|
|
648
|
+
},
|
|
649
|
+
"change_id": {
|
|
650
|
+
"name": "change_id",
|
|
651
|
+
"type": "text",
|
|
652
|
+
"primaryKey": false,
|
|
653
|
+
"notNull": true,
|
|
654
|
+
"autoincrement": false
|
|
655
|
+
},
|
|
656
|
+
"branch": {
|
|
657
|
+
"name": "branch",
|
|
658
|
+
"type": "text",
|
|
659
|
+
"primaryKey": false,
|
|
660
|
+
"notNull": false,
|
|
661
|
+
"autoincrement": false
|
|
662
|
+
},
|
|
663
|
+
"title": {
|
|
664
|
+
"name": "title",
|
|
665
|
+
"type": "text",
|
|
666
|
+
"primaryKey": false,
|
|
667
|
+
"notNull": false,
|
|
668
|
+
"autoincrement": false
|
|
669
|
+
},
|
|
670
|
+
"author": {
|
|
671
|
+
"name": "author",
|
|
672
|
+
"type": "text",
|
|
673
|
+
"primaryKey": false,
|
|
674
|
+
"notNull": false,
|
|
675
|
+
"autoincrement": false
|
|
676
|
+
},
|
|
677
|
+
"status": {
|
|
678
|
+
"name": "status",
|
|
679
|
+
"type": "text",
|
|
680
|
+
"primaryKey": false,
|
|
681
|
+
"notNull": true,
|
|
682
|
+
"autoincrement": false,
|
|
683
|
+
"default": "'open'"
|
|
684
|
+
},
|
|
685
|
+
"head_sha": {
|
|
686
|
+
"name": "head_sha",
|
|
687
|
+
"type": "text",
|
|
688
|
+
"primaryKey": false,
|
|
689
|
+
"notNull": false,
|
|
690
|
+
"autoincrement": false
|
|
691
|
+
},
|
|
692
|
+
"base_sha": {
|
|
693
|
+
"name": "base_sha",
|
|
694
|
+
"type": "text",
|
|
695
|
+
"primaryKey": false,
|
|
696
|
+
"notNull": false,
|
|
697
|
+
"autoincrement": false
|
|
698
|
+
},
|
|
699
|
+
"created_at": {
|
|
700
|
+
"name": "created_at",
|
|
701
|
+
"type": "text",
|
|
702
|
+
"primaryKey": false,
|
|
703
|
+
"notNull": true,
|
|
704
|
+
"autoincrement": false
|
|
705
|
+
},
|
|
706
|
+
"updated_at": {
|
|
707
|
+
"name": "updated_at",
|
|
708
|
+
"type": "text",
|
|
709
|
+
"primaryKey": false,
|
|
710
|
+
"notNull": true,
|
|
711
|
+
"autoincrement": false
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"indexes": {
|
|
715
|
+
"uq_candidates_tenant_repo_pr": {
|
|
716
|
+
"name": "uq_candidates_tenant_repo_pr",
|
|
717
|
+
"columns": [
|
|
718
|
+
"tenant_id",
|
|
719
|
+
"repository",
|
|
720
|
+
"pr_number"
|
|
721
|
+
],
|
|
722
|
+
"isUnique": true
|
|
723
|
+
},
|
|
724
|
+
"uq_candidates_tenant_change": {
|
|
725
|
+
"name": "uq_candidates_tenant_change",
|
|
726
|
+
"columns": [
|
|
727
|
+
"tenant_id",
|
|
728
|
+
"change_id"
|
|
729
|
+
],
|
|
730
|
+
"isUnique": true
|
|
731
|
+
},
|
|
732
|
+
"idx_candidates_tenant_status": {
|
|
733
|
+
"name": "idx_candidates_tenant_status",
|
|
734
|
+
"columns": [
|
|
735
|
+
"tenant_id",
|
|
736
|
+
"status"
|
|
737
|
+
],
|
|
738
|
+
"isUnique": false
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"foreignKeys": {},
|
|
742
|
+
"compositePrimaryKeys": {},
|
|
743
|
+
"uniqueConstraints": {},
|
|
744
|
+
"checkConstraints": {}
|
|
745
|
+
},
|
|
746
|
+
"idempotency_keys": {
|
|
747
|
+
"name": "idempotency_keys",
|
|
748
|
+
"columns": {
|
|
749
|
+
"install_id": {
|
|
750
|
+
"name": "install_id",
|
|
751
|
+
"type": "text",
|
|
752
|
+
"primaryKey": false,
|
|
753
|
+
"notNull": true,
|
|
754
|
+
"autoincrement": false
|
|
755
|
+
},
|
|
756
|
+
"idempotency_key": {
|
|
757
|
+
"name": "idempotency_key",
|
|
758
|
+
"type": "text",
|
|
759
|
+
"primaryKey": false,
|
|
760
|
+
"notNull": true,
|
|
761
|
+
"autoincrement": false
|
|
762
|
+
},
|
|
763
|
+
"body_hash": {
|
|
764
|
+
"name": "body_hash",
|
|
765
|
+
"type": "text",
|
|
766
|
+
"primaryKey": false,
|
|
767
|
+
"notNull": true,
|
|
768
|
+
"autoincrement": false
|
|
769
|
+
},
|
|
770
|
+
"response_body": {
|
|
771
|
+
"name": "response_body",
|
|
772
|
+
"type": "text",
|
|
773
|
+
"primaryKey": false,
|
|
774
|
+
"notNull": true,
|
|
775
|
+
"autoincrement": false
|
|
776
|
+
},
|
|
777
|
+
"created_at": {
|
|
778
|
+
"name": "created_at",
|
|
779
|
+
"type": "text",
|
|
780
|
+
"primaryKey": false,
|
|
781
|
+
"notNull": true,
|
|
782
|
+
"autoincrement": false
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"indexes": {},
|
|
786
|
+
"foreignKeys": {},
|
|
787
|
+
"compositePrimaryKeys": {
|
|
788
|
+
"idempotency_keys_install_id_idempotency_key_pk": {
|
|
789
|
+
"columns": [
|
|
790
|
+
"install_id",
|
|
791
|
+
"idempotency_key"
|
|
792
|
+
],
|
|
793
|
+
"name": "idempotency_keys_install_id_idempotency_key_pk"
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"uniqueConstraints": {},
|
|
797
|
+
"checkConstraints": {}
|
|
798
|
+
},
|
|
799
|
+
"newsletter_sends": {
|
|
800
|
+
"name": "newsletter_sends",
|
|
801
|
+
"columns": {
|
|
802
|
+
"tenant_id": {
|
|
803
|
+
"name": "tenant_id",
|
|
804
|
+
"type": "text",
|
|
805
|
+
"primaryKey": false,
|
|
806
|
+
"notNull": true,
|
|
807
|
+
"autoincrement": false
|
|
808
|
+
},
|
|
809
|
+
"collection": {
|
|
810
|
+
"name": "collection",
|
|
811
|
+
"type": "text",
|
|
812
|
+
"primaryKey": false,
|
|
813
|
+
"notNull": true,
|
|
814
|
+
"autoincrement": false
|
|
815
|
+
},
|
|
816
|
+
"digest_id": {
|
|
817
|
+
"name": "digest_id",
|
|
818
|
+
"type": "text",
|
|
819
|
+
"primaryKey": false,
|
|
820
|
+
"notNull": true,
|
|
821
|
+
"autoincrement": false
|
|
822
|
+
},
|
|
823
|
+
"post_slugs": {
|
|
824
|
+
"name": "post_slugs",
|
|
825
|
+
"type": "text",
|
|
826
|
+
"primaryKey": false,
|
|
827
|
+
"notNull": true,
|
|
828
|
+
"autoincrement": false,
|
|
829
|
+
"default": "'[]'"
|
|
830
|
+
},
|
|
831
|
+
"recipient_count": {
|
|
832
|
+
"name": "recipient_count",
|
|
833
|
+
"type": "integer",
|
|
834
|
+
"primaryKey": false,
|
|
835
|
+
"notNull": true,
|
|
836
|
+
"autoincrement": false,
|
|
837
|
+
"default": 0
|
|
838
|
+
},
|
|
839
|
+
"sent_at": {
|
|
840
|
+
"name": "sent_at",
|
|
841
|
+
"type": "text",
|
|
842
|
+
"primaryKey": false,
|
|
843
|
+
"notNull": true,
|
|
844
|
+
"autoincrement": false
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"indexes": {},
|
|
848
|
+
"foreignKeys": {},
|
|
849
|
+
"compositePrimaryKeys": {
|
|
850
|
+
"newsletter_sends_tenant_id_collection_digest_id_pk": {
|
|
851
|
+
"columns": [
|
|
852
|
+
"tenant_id",
|
|
853
|
+
"collection",
|
|
854
|
+
"digest_id"
|
|
855
|
+
],
|
|
856
|
+
"name": "newsletter_sends_tenant_id_collection_digest_id_pk"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"uniqueConstraints": {},
|
|
860
|
+
"checkConstraints": {}
|
|
861
|
+
},
|
|
862
|
+
"newsletter_subscribers": {
|
|
863
|
+
"name": "newsletter_subscribers",
|
|
864
|
+
"columns": {
|
|
865
|
+
"tenant_id": {
|
|
866
|
+
"name": "tenant_id",
|
|
867
|
+
"type": "text",
|
|
868
|
+
"primaryKey": false,
|
|
869
|
+
"notNull": true,
|
|
870
|
+
"autoincrement": false
|
|
871
|
+
},
|
|
872
|
+
"collection": {
|
|
873
|
+
"name": "collection",
|
|
874
|
+
"type": "text",
|
|
875
|
+
"primaryKey": false,
|
|
876
|
+
"notNull": true,
|
|
877
|
+
"autoincrement": false
|
|
878
|
+
},
|
|
879
|
+
"email": {
|
|
880
|
+
"name": "email",
|
|
881
|
+
"type": "text",
|
|
882
|
+
"primaryKey": false,
|
|
883
|
+
"notNull": true,
|
|
884
|
+
"autoincrement": false
|
|
885
|
+
},
|
|
886
|
+
"status": {
|
|
887
|
+
"name": "status",
|
|
888
|
+
"type": "text",
|
|
889
|
+
"primaryKey": false,
|
|
890
|
+
"notNull": true,
|
|
891
|
+
"autoincrement": false,
|
|
892
|
+
"default": "'pending'"
|
|
893
|
+
},
|
|
894
|
+
"token": {
|
|
895
|
+
"name": "token",
|
|
896
|
+
"type": "text",
|
|
897
|
+
"primaryKey": false,
|
|
898
|
+
"notNull": true,
|
|
899
|
+
"autoincrement": false
|
|
900
|
+
},
|
|
901
|
+
"consent_source": {
|
|
902
|
+
"name": "consent_source",
|
|
903
|
+
"type": "text",
|
|
904
|
+
"primaryKey": false,
|
|
905
|
+
"notNull": false,
|
|
906
|
+
"autoincrement": false
|
|
907
|
+
},
|
|
908
|
+
"consent_ip_hash": {
|
|
909
|
+
"name": "consent_ip_hash",
|
|
910
|
+
"type": "text",
|
|
911
|
+
"primaryKey": false,
|
|
912
|
+
"notNull": false,
|
|
913
|
+
"autoincrement": false
|
|
914
|
+
},
|
|
915
|
+
"subscribed_at": {
|
|
916
|
+
"name": "subscribed_at",
|
|
917
|
+
"type": "text",
|
|
918
|
+
"primaryKey": false,
|
|
919
|
+
"notNull": true,
|
|
920
|
+
"autoincrement": false
|
|
921
|
+
},
|
|
922
|
+
"confirmed_at": {
|
|
923
|
+
"name": "confirmed_at",
|
|
924
|
+
"type": "text",
|
|
925
|
+
"primaryKey": false,
|
|
926
|
+
"notNull": false,
|
|
927
|
+
"autoincrement": false
|
|
928
|
+
},
|
|
929
|
+
"unsubscribed_at": {
|
|
930
|
+
"name": "unsubscribed_at",
|
|
931
|
+
"type": "text",
|
|
932
|
+
"primaryKey": false,
|
|
933
|
+
"notNull": false,
|
|
934
|
+
"autoincrement": false
|
|
935
|
+
},
|
|
936
|
+
"last_sent_at": {
|
|
937
|
+
"name": "last_sent_at",
|
|
938
|
+
"type": "text",
|
|
939
|
+
"primaryKey": false,
|
|
940
|
+
"notNull": false,
|
|
941
|
+
"autoincrement": false
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
"indexes": {
|
|
945
|
+
"idx_newsletter_tenant_coll_status": {
|
|
946
|
+
"name": "idx_newsletter_tenant_coll_status",
|
|
947
|
+
"columns": [
|
|
948
|
+
"tenant_id",
|
|
949
|
+
"collection",
|
|
950
|
+
"status"
|
|
951
|
+
],
|
|
952
|
+
"isUnique": false
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
"foreignKeys": {},
|
|
956
|
+
"compositePrimaryKeys": {
|
|
957
|
+
"newsletter_subscribers_tenant_id_collection_email_pk": {
|
|
958
|
+
"columns": [
|
|
959
|
+
"tenant_id",
|
|
960
|
+
"collection",
|
|
961
|
+
"email"
|
|
962
|
+
],
|
|
963
|
+
"name": "newsletter_subscribers_tenant_id_collection_email_pk"
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
"uniqueConstraints": {},
|
|
967
|
+
"checkConstraints": {}
|
|
968
|
+
},
|
|
969
|
+
"orders": {
|
|
970
|
+
"name": "orders",
|
|
971
|
+
"columns": {
|
|
972
|
+
"tenant_id": {
|
|
973
|
+
"name": "tenant_id",
|
|
974
|
+
"type": "text",
|
|
975
|
+
"primaryKey": false,
|
|
976
|
+
"notNull": true,
|
|
977
|
+
"autoincrement": false
|
|
978
|
+
},
|
|
979
|
+
"external_order_id": {
|
|
980
|
+
"name": "external_order_id",
|
|
981
|
+
"type": "text",
|
|
982
|
+
"primaryKey": false,
|
|
983
|
+
"notNull": true,
|
|
984
|
+
"autoincrement": false
|
|
985
|
+
},
|
|
986
|
+
"env": {
|
|
987
|
+
"name": "env",
|
|
988
|
+
"type": "text",
|
|
989
|
+
"primaryKey": false,
|
|
990
|
+
"notNull": true,
|
|
991
|
+
"autoincrement": false
|
|
992
|
+
},
|
|
993
|
+
"status": {
|
|
994
|
+
"name": "status",
|
|
995
|
+
"type": "text",
|
|
996
|
+
"primaryKey": false,
|
|
997
|
+
"notNull": true,
|
|
998
|
+
"autoincrement": false
|
|
999
|
+
},
|
|
1000
|
+
"currency": {
|
|
1001
|
+
"name": "currency",
|
|
1002
|
+
"type": "text",
|
|
1003
|
+
"primaryKey": false,
|
|
1004
|
+
"notNull": true,
|
|
1005
|
+
"autoincrement": false
|
|
1006
|
+
},
|
|
1007
|
+
"total": {
|
|
1008
|
+
"name": "total",
|
|
1009
|
+
"type": "real",
|
|
1010
|
+
"primaryKey": false,
|
|
1011
|
+
"notNull": true,
|
|
1012
|
+
"autoincrement": false,
|
|
1013
|
+
"default": 0
|
|
1014
|
+
},
|
|
1015
|
+
"subtotal": {
|
|
1016
|
+
"name": "subtotal",
|
|
1017
|
+
"type": "real",
|
|
1018
|
+
"primaryKey": false,
|
|
1019
|
+
"notNull": false,
|
|
1020
|
+
"autoincrement": false
|
|
1021
|
+
},
|
|
1022
|
+
"customer_hash": {
|
|
1023
|
+
"name": "customer_hash",
|
|
1024
|
+
"type": "text",
|
|
1025
|
+
"primaryKey": false,
|
|
1026
|
+
"notNull": false,
|
|
1027
|
+
"autoincrement": false
|
|
1028
|
+
},
|
|
1029
|
+
"line_items": {
|
|
1030
|
+
"name": "line_items",
|
|
1031
|
+
"type": "text",
|
|
1032
|
+
"primaryKey": false,
|
|
1033
|
+
"notNull": true,
|
|
1034
|
+
"autoincrement": false,
|
|
1035
|
+
"default": "'[]'"
|
|
1036
|
+
},
|
|
1037
|
+
"created_at": {
|
|
1038
|
+
"name": "created_at",
|
|
1039
|
+
"type": "text",
|
|
1040
|
+
"primaryKey": false,
|
|
1041
|
+
"notNull": true,
|
|
1042
|
+
"autoincrement": false
|
|
1043
|
+
},
|
|
1044
|
+
"updated_at": {
|
|
1045
|
+
"name": "updated_at",
|
|
1046
|
+
"type": "text",
|
|
1047
|
+
"primaryKey": false,
|
|
1048
|
+
"notNull": true,
|
|
1049
|
+
"autoincrement": false
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"indexes": {
|
|
1053
|
+
"idx_orders_tenant": {
|
|
1054
|
+
"name": "idx_orders_tenant",
|
|
1055
|
+
"columns": [
|
|
1056
|
+
"tenant_id"
|
|
1057
|
+
],
|
|
1058
|
+
"isUnique": false
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"foreignKeys": {},
|
|
1062
|
+
"compositePrimaryKeys": {
|
|
1063
|
+
"orders_tenant_id_external_order_id_pk": {
|
|
1064
|
+
"columns": [
|
|
1065
|
+
"tenant_id",
|
|
1066
|
+
"external_order_id"
|
|
1067
|
+
],
|
|
1068
|
+
"name": "orders_tenant_id_external_order_id_pk"
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"uniqueConstraints": {},
|
|
1072
|
+
"checkConstraints": {}
|
|
1073
|
+
},
|
|
1074
|
+
"social_tokens": {
|
|
1075
|
+
"name": "social_tokens",
|
|
1076
|
+
"columns": {
|
|
1077
|
+
"tenant_id": {
|
|
1078
|
+
"name": "tenant_id",
|
|
1079
|
+
"type": "text",
|
|
1080
|
+
"primaryKey": false,
|
|
1081
|
+
"notNull": true,
|
|
1082
|
+
"autoincrement": false
|
|
1083
|
+
},
|
|
1084
|
+
"network": {
|
|
1085
|
+
"name": "network",
|
|
1086
|
+
"type": "text",
|
|
1087
|
+
"primaryKey": false,
|
|
1088
|
+
"notNull": true,
|
|
1089
|
+
"autoincrement": false
|
|
1090
|
+
},
|
|
1091
|
+
"ciphertext": {
|
|
1092
|
+
"name": "ciphertext",
|
|
1093
|
+
"type": "text",
|
|
1094
|
+
"primaryKey": false,
|
|
1095
|
+
"notNull": true,
|
|
1096
|
+
"autoincrement": false
|
|
1097
|
+
},
|
|
1098
|
+
"iv": {
|
|
1099
|
+
"name": "iv",
|
|
1100
|
+
"type": "text",
|
|
1101
|
+
"primaryKey": false,
|
|
1102
|
+
"notNull": true,
|
|
1103
|
+
"autoincrement": false
|
|
1104
|
+
},
|
|
1105
|
+
"expires_at": {
|
|
1106
|
+
"name": "expires_at",
|
|
1107
|
+
"type": "text",
|
|
1108
|
+
"primaryKey": false,
|
|
1109
|
+
"notNull": false,
|
|
1110
|
+
"autoincrement": false
|
|
1111
|
+
},
|
|
1112
|
+
"created_at": {
|
|
1113
|
+
"name": "created_at",
|
|
1114
|
+
"type": "text",
|
|
1115
|
+
"primaryKey": false,
|
|
1116
|
+
"notNull": true,
|
|
1117
|
+
"autoincrement": false
|
|
1118
|
+
},
|
|
1119
|
+
"updated_at": {
|
|
1120
|
+
"name": "updated_at",
|
|
1121
|
+
"type": "text",
|
|
1122
|
+
"primaryKey": false,
|
|
1123
|
+
"notNull": true,
|
|
1124
|
+
"autoincrement": false
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
"indexes": {
|
|
1128
|
+
"idx_social_tokens_tenant": {
|
|
1129
|
+
"name": "idx_social_tokens_tenant",
|
|
1130
|
+
"columns": [
|
|
1131
|
+
"tenant_id"
|
|
1132
|
+
],
|
|
1133
|
+
"isUnique": false
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
"foreignKeys": {},
|
|
1137
|
+
"compositePrimaryKeys": {
|
|
1138
|
+
"social_tokens_tenant_id_network_pk": {
|
|
1139
|
+
"columns": [
|
|
1140
|
+
"tenant_id",
|
|
1141
|
+
"network"
|
|
1142
|
+
],
|
|
1143
|
+
"name": "social_tokens_tenant_id_network_pk"
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
"uniqueConstraints": {},
|
|
1147
|
+
"checkConstraints": {}
|
|
1148
|
+
},
|
|
1149
|
+
"webhook_deliveries": {
|
|
1150
|
+
"name": "webhook_deliveries",
|
|
1151
|
+
"columns": {
|
|
1152
|
+
"delivery_id": {
|
|
1153
|
+
"name": "delivery_id",
|
|
1154
|
+
"type": "text",
|
|
1155
|
+
"primaryKey": true,
|
|
1156
|
+
"notNull": true,
|
|
1157
|
+
"autoincrement": false
|
|
1158
|
+
},
|
|
1159
|
+
"event_id": {
|
|
1160
|
+
"name": "event_id",
|
|
1161
|
+
"type": "text",
|
|
1162
|
+
"primaryKey": false,
|
|
1163
|
+
"notNull": true,
|
|
1164
|
+
"autoincrement": false
|
|
1165
|
+
},
|
|
1166
|
+
"install_id": {
|
|
1167
|
+
"name": "install_id",
|
|
1168
|
+
"type": "text",
|
|
1169
|
+
"primaryKey": false,
|
|
1170
|
+
"notNull": true,
|
|
1171
|
+
"autoincrement": false
|
|
1172
|
+
},
|
|
1173
|
+
"tenant_id": {
|
|
1174
|
+
"name": "tenant_id",
|
|
1175
|
+
"type": "text",
|
|
1176
|
+
"primaryKey": false,
|
|
1177
|
+
"notNull": true,
|
|
1178
|
+
"autoincrement": false
|
|
1179
|
+
},
|
|
1180
|
+
"topic": {
|
|
1181
|
+
"name": "topic",
|
|
1182
|
+
"type": "text",
|
|
1183
|
+
"primaryKey": false,
|
|
1184
|
+
"notNull": true,
|
|
1185
|
+
"autoincrement": false
|
|
1186
|
+
},
|
|
1187
|
+
"state": {
|
|
1188
|
+
"name": "state",
|
|
1189
|
+
"type": "text",
|
|
1190
|
+
"primaryKey": false,
|
|
1191
|
+
"notNull": true,
|
|
1192
|
+
"autoincrement": false,
|
|
1193
|
+
"default": "'pending'"
|
|
1194
|
+
},
|
|
1195
|
+
"attempts": {
|
|
1196
|
+
"name": "attempts",
|
|
1197
|
+
"type": "integer",
|
|
1198
|
+
"primaryKey": false,
|
|
1199
|
+
"notNull": true,
|
|
1200
|
+
"autoincrement": false,
|
|
1201
|
+
"default": 0
|
|
1202
|
+
},
|
|
1203
|
+
"last_status": {
|
|
1204
|
+
"name": "last_status",
|
|
1205
|
+
"type": "integer",
|
|
1206
|
+
"primaryKey": false,
|
|
1207
|
+
"notNull": false,
|
|
1208
|
+
"autoincrement": false
|
|
1209
|
+
},
|
|
1210
|
+
"last_error_class": {
|
|
1211
|
+
"name": "last_error_class",
|
|
1212
|
+
"type": "text",
|
|
1213
|
+
"primaryKey": false,
|
|
1214
|
+
"notNull": false,
|
|
1215
|
+
"autoincrement": false
|
|
1216
|
+
},
|
|
1217
|
+
"last_trace_id": {
|
|
1218
|
+
"name": "last_trace_id",
|
|
1219
|
+
"type": "text",
|
|
1220
|
+
"primaryKey": false,
|
|
1221
|
+
"notNull": false,
|
|
1222
|
+
"autoincrement": false
|
|
1223
|
+
},
|
|
1224
|
+
"next_attempt_at": {
|
|
1225
|
+
"name": "next_attempt_at",
|
|
1226
|
+
"type": "text",
|
|
1227
|
+
"primaryKey": false,
|
|
1228
|
+
"notNull": false,
|
|
1229
|
+
"autoincrement": false
|
|
1230
|
+
},
|
|
1231
|
+
"created_at": {
|
|
1232
|
+
"name": "created_at",
|
|
1233
|
+
"type": "text",
|
|
1234
|
+
"primaryKey": false,
|
|
1235
|
+
"notNull": true,
|
|
1236
|
+
"autoincrement": false
|
|
1237
|
+
},
|
|
1238
|
+
"updated_at": {
|
|
1239
|
+
"name": "updated_at",
|
|
1240
|
+
"type": "text",
|
|
1241
|
+
"primaryKey": false,
|
|
1242
|
+
"notNull": true,
|
|
1243
|
+
"autoincrement": false
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
"indexes": {
|
|
1247
|
+
"idx_webhook_deliveries_install": {
|
|
1248
|
+
"name": "idx_webhook_deliveries_install",
|
|
1249
|
+
"columns": [
|
|
1250
|
+
"install_id"
|
|
1251
|
+
],
|
|
1252
|
+
"isUnique": false
|
|
1253
|
+
},
|
|
1254
|
+
"idx_webhook_deliveries_due": {
|
|
1255
|
+
"name": "idx_webhook_deliveries_due",
|
|
1256
|
+
"columns": [
|
|
1257
|
+
"state",
|
|
1258
|
+
"next_attempt_at"
|
|
1259
|
+
],
|
|
1260
|
+
"isUnique": false
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
"foreignKeys": {},
|
|
1264
|
+
"compositePrimaryKeys": {},
|
|
1265
|
+
"uniqueConstraints": {},
|
|
1266
|
+
"checkConstraints": {}
|
|
1267
|
+
},
|
|
1268
|
+
"webhook_delivery_attempts": {
|
|
1269
|
+
"name": "webhook_delivery_attempts",
|
|
1270
|
+
"columns": {
|
|
1271
|
+
"id": {
|
|
1272
|
+
"name": "id",
|
|
1273
|
+
"type": "text",
|
|
1274
|
+
"primaryKey": true,
|
|
1275
|
+
"notNull": true,
|
|
1276
|
+
"autoincrement": false
|
|
1277
|
+
},
|
|
1278
|
+
"delivery_id": {
|
|
1279
|
+
"name": "delivery_id",
|
|
1280
|
+
"type": "text",
|
|
1281
|
+
"primaryKey": false,
|
|
1282
|
+
"notNull": true,
|
|
1283
|
+
"autoincrement": false
|
|
1284
|
+
},
|
|
1285
|
+
"attempt_no": {
|
|
1286
|
+
"name": "attempt_no",
|
|
1287
|
+
"type": "integer",
|
|
1288
|
+
"primaryKey": false,
|
|
1289
|
+
"notNull": true,
|
|
1290
|
+
"autoincrement": false
|
|
1291
|
+
},
|
|
1292
|
+
"started_at": {
|
|
1293
|
+
"name": "started_at",
|
|
1294
|
+
"type": "text",
|
|
1295
|
+
"primaryKey": false,
|
|
1296
|
+
"notNull": true,
|
|
1297
|
+
"autoincrement": false
|
|
1298
|
+
},
|
|
1299
|
+
"duration_ms": {
|
|
1300
|
+
"name": "duration_ms",
|
|
1301
|
+
"type": "integer",
|
|
1302
|
+
"primaryKey": false,
|
|
1303
|
+
"notNull": false,
|
|
1304
|
+
"autoincrement": false
|
|
1305
|
+
},
|
|
1306
|
+
"http_status": {
|
|
1307
|
+
"name": "http_status",
|
|
1308
|
+
"type": "integer",
|
|
1309
|
+
"primaryKey": false,
|
|
1310
|
+
"notNull": false,
|
|
1311
|
+
"autoincrement": false
|
|
1312
|
+
},
|
|
1313
|
+
"error_class": {
|
|
1314
|
+
"name": "error_class",
|
|
1315
|
+
"type": "text",
|
|
1316
|
+
"primaryKey": false,
|
|
1317
|
+
"notNull": false,
|
|
1318
|
+
"autoincrement": false
|
|
1319
|
+
},
|
|
1320
|
+
"trace_id": {
|
|
1321
|
+
"name": "trace_id",
|
|
1322
|
+
"type": "text",
|
|
1323
|
+
"primaryKey": false,
|
|
1324
|
+
"notNull": false,
|
|
1325
|
+
"autoincrement": false
|
|
1326
|
+
}
|
|
1327
|
+
},
|
|
1328
|
+
"indexes": {
|
|
1329
|
+
"idx_webhook_delivery_attempts_delivery": {
|
|
1330
|
+
"name": "idx_webhook_delivery_attempts_delivery",
|
|
1331
|
+
"columns": [
|
|
1332
|
+
"delivery_id"
|
|
1333
|
+
],
|
|
1334
|
+
"isUnique": false
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
"foreignKeys": {},
|
|
1338
|
+
"compositePrimaryKeys": {},
|
|
1339
|
+
"uniqueConstraints": {},
|
|
1340
|
+
"checkConstraints": {}
|
|
1341
|
+
},
|
|
1342
|
+
"webhook_events": {
|
|
1343
|
+
"name": "webhook_events",
|
|
1344
|
+
"columns": {
|
|
1345
|
+
"id": {
|
|
1346
|
+
"name": "id",
|
|
1347
|
+
"type": "text",
|
|
1348
|
+
"primaryKey": true,
|
|
1349
|
+
"notNull": true,
|
|
1350
|
+
"autoincrement": false
|
|
1351
|
+
},
|
|
1352
|
+
"tenant_id": {
|
|
1353
|
+
"name": "tenant_id",
|
|
1354
|
+
"type": "text",
|
|
1355
|
+
"primaryKey": false,
|
|
1356
|
+
"notNull": true,
|
|
1357
|
+
"autoincrement": false
|
|
1358
|
+
},
|
|
1359
|
+
"topic": {
|
|
1360
|
+
"name": "topic",
|
|
1361
|
+
"type": "text",
|
|
1362
|
+
"primaryKey": false,
|
|
1363
|
+
"notNull": true,
|
|
1364
|
+
"autoincrement": false
|
|
1365
|
+
},
|
|
1366
|
+
"dataschema_version": {
|
|
1367
|
+
"name": "dataschema_version",
|
|
1368
|
+
"type": "text",
|
|
1369
|
+
"primaryKey": false,
|
|
1370
|
+
"notNull": true,
|
|
1371
|
+
"autoincrement": false
|
|
1372
|
+
},
|
|
1373
|
+
"payload": {
|
|
1374
|
+
"name": "payload",
|
|
1375
|
+
"type": "text",
|
|
1376
|
+
"primaryKey": false,
|
|
1377
|
+
"notNull": true,
|
|
1378
|
+
"autoincrement": false
|
|
1379
|
+
},
|
|
1380
|
+
"created_at": {
|
|
1381
|
+
"name": "created_at",
|
|
1382
|
+
"type": "text",
|
|
1383
|
+
"primaryKey": false,
|
|
1384
|
+
"notNull": true,
|
|
1385
|
+
"autoincrement": false
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
"indexes": {},
|
|
1389
|
+
"foreignKeys": {},
|
|
1390
|
+
"compositePrimaryKeys": {},
|
|
1391
|
+
"uniqueConstraints": {},
|
|
1392
|
+
"checkConstraints": {}
|
|
1393
|
+
},
|
|
1394
|
+
"webhook_install_health": {
|
|
1395
|
+
"name": "webhook_install_health",
|
|
1396
|
+
"columns": {
|
|
1397
|
+
"install_id": {
|
|
1398
|
+
"name": "install_id",
|
|
1399
|
+
"type": "text",
|
|
1400
|
+
"primaryKey": true,
|
|
1401
|
+
"notNull": true,
|
|
1402
|
+
"autoincrement": false
|
|
1403
|
+
},
|
|
1404
|
+
"last_success_at": {
|
|
1405
|
+
"name": "last_success_at",
|
|
1406
|
+
"type": "text",
|
|
1407
|
+
"primaryKey": false,
|
|
1408
|
+
"notNull": false,
|
|
1409
|
+
"autoincrement": false
|
|
1410
|
+
},
|
|
1411
|
+
"failure_streak": {
|
|
1412
|
+
"name": "failure_streak",
|
|
1413
|
+
"type": "integer",
|
|
1414
|
+
"primaryKey": false,
|
|
1415
|
+
"notNull": true,
|
|
1416
|
+
"autoincrement": false,
|
|
1417
|
+
"default": 0
|
|
1418
|
+
},
|
|
1419
|
+
"dlq_count": {
|
|
1420
|
+
"name": "dlq_count",
|
|
1421
|
+
"type": "integer",
|
|
1422
|
+
"primaryKey": false,
|
|
1423
|
+
"notNull": true,
|
|
1424
|
+
"autoincrement": false,
|
|
1425
|
+
"default": 0
|
|
1426
|
+
},
|
|
1427
|
+
"last_status": {
|
|
1428
|
+
"name": "last_status",
|
|
1429
|
+
"type": "integer",
|
|
1430
|
+
"primaryKey": false,
|
|
1431
|
+
"notNull": false,
|
|
1432
|
+
"autoincrement": false
|
|
1433
|
+
},
|
|
1434
|
+
"last_error_class": {
|
|
1435
|
+
"name": "last_error_class",
|
|
1436
|
+
"type": "text",
|
|
1437
|
+
"primaryKey": false,
|
|
1438
|
+
"notNull": false,
|
|
1439
|
+
"autoincrement": false
|
|
1440
|
+
},
|
|
1441
|
+
"recent_trace_ids": {
|
|
1442
|
+
"name": "recent_trace_ids",
|
|
1443
|
+
"type": "text",
|
|
1444
|
+
"primaryKey": false,
|
|
1445
|
+
"notNull": true,
|
|
1446
|
+
"autoincrement": false,
|
|
1447
|
+
"default": "'[]'"
|
|
1448
|
+
},
|
|
1449
|
+
"updated_at": {
|
|
1450
|
+
"name": "updated_at",
|
|
1451
|
+
"type": "text",
|
|
1452
|
+
"primaryKey": false,
|
|
1453
|
+
"notNull": true,
|
|
1454
|
+
"autoincrement": false
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
"indexes": {},
|
|
1458
|
+
"foreignKeys": {},
|
|
1459
|
+
"compositePrimaryKeys": {},
|
|
1460
|
+
"uniqueConstraints": {},
|
|
1461
|
+
"checkConstraints": {}
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
"views": {},
|
|
1465
|
+
"enums": {},
|
|
1466
|
+
"_meta": {
|
|
1467
|
+
"schemas": {},
|
|
1468
|
+
"tables": {},
|
|
1469
|
+
"columns": {}
|
|
1470
|
+
},
|
|
1471
|
+
"internal": {
|
|
1472
|
+
"indexes": {}
|
|
1473
|
+
}
|
|
1474
|
+
}
|