@hot-updater/console 1.0.0-rc.2 → 1.0.0-rc.20
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/.output/nitro.json +1 -1
- package/.output/public/assets/ConsoleFeatureUnavailable-B9VYGA3N.js +1 -0
- package/.output/public/assets/HashValueDisplay-D880zntR.js +1 -0
- package/.output/public/assets/InsightsInfo-By_sPjTE.js +1 -0
- package/.output/public/assets/InsightsPageHeader-9_kx_LL7.js +1 -0
- package/.output/public/assets/NotFoundPage-Dys8C0cW.js +1 -0
- package/.output/public/assets/api-CtarlV0l.js +1 -0
- package/.output/public/assets/api-keys-DFF_QqtN.js +1 -0
- package/.output/public/assets/api-keys-evfsQ4sN.js +1 -0
- package/.output/public/assets/arrow-left-BP9D-ta_.js +1 -0
- package/.output/public/assets/arrow-up-right-CDP9Tevw.js +1 -0
- package/.output/public/assets/card-DzCPSRsh.js +1 -0
- package/.output/public/assets/console-features-api-yv7rm3DX.js +1 -0
- package/.output/public/assets/dialog-BDvCy_QO.js +1 -0
- package/.output/public/assets/dist-Clb6cQ9l.js +1 -0
- package/.output/public/assets/empty-C5x9mn_s.js +1 -0
- package/.output/public/assets/field-Bou7shoO.js +1 -0
- package/.output/public/assets/index-0eg3l8aC.js +10 -0
- package/.output/public/assets/input-group-DVtWFUUF.js +1 -0
- package/.output/public/assets/insights-2MbdiSNv.js +1 -0
- package/.output/public/assets/insights-C6tmCZHk.js +2 -0
- package/.output/public/assets/insights-CadS_aIA.js +42 -0
- package/.output/public/assets/insights-recovery-rpc-wvdyM4LD.js +1 -0
- package/.output/public/assets/insights-search-KIF7mRtB.js +1 -0
- package/.output/public/assets/insights-usage-rpc-qUkNtrWr.js +1 -0
- package/.output/public/assets/insights_.distribution-BhBs6PNA.js +1 -0
- package/.output/public/assets/insights_.distribution-CItZw3-8.js +1 -0
- package/.output/public/assets/insights_.distribution-CJUH_wAS.js +2 -0
- package/.output/public/assets/installations-CH2H7JQt.js +2 -0
- package/.output/public/assets/installations-DMeMuwsW.js +1 -0
- package/.output/public/assets/installations-DnvxI9Dt.js +1 -0
- package/.output/public/assets/loader-circle-Ca7C9YY1.js +1 -0
- package/.output/public/assets/mutation-x9L28_CD.js +1 -0
- package/.output/public/assets/preload-helper-BN-UkjOE.js +1 -0
- package/.output/public/assets/refresh-cw-CVGqvy8Z.js +1 -0
- package/.output/public/assets/routes-BhK8DuZA.js +1 -0
- package/.output/public/assets/routes-veKtDW39.js +2 -0
- package/.output/public/assets/sidebar-B45aMqRm.js +3 -0
- package/.output/public/assets/styles-Dn0pK1EX.css +2 -0
- package/.output/public/assets/table-CwLnN6KX.js +1 -0
- package/.output/public/assets/useCompositeListItem-CF7vsfcA.js +1 -0
- package/.output/public/assets/useMutation-CN1ygYEr.js +1 -0
- package/.output/public/assets/useOpenInteractionType-AnAMWYIY.js +1 -0
- package/.output/public/assets/valueToPercent-C-t8FT0y.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-B7ioJhtE.mjs → __23tanstack-start-server-fn-resolver-CUQLz7hs.mjs} +52 -40
- package/.output/server/_libs/@base-ui/react+[...].mjs +7044 -3622
- package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +1554 -0
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +49 -3
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +4 -4
- package/.output/server/_libs/d3-array.mjs +231 -0
- package/.output/server/_libs/d3-color.mjs +330 -0
- package/.output/server/_libs/d3-format.mjs +252 -0
- package/.output/server/_libs/d3-interpolate.mjs +207 -0
- package/.output/server/_libs/d3-path.mjs +77 -0
- package/.output/server/_libs/d3-scale+[...].mjs +1907 -0
- package/.output/server/_libs/d3-shape.mjs +818 -0
- package/.output/server/_libs/decimal.js-light.mjs +884 -0
- package/.output/server/_libs/es-toolkit.mjs +1159 -0
- package/.output/server/_libs/eventemitter3.mjs +236 -0
- package/.output/server/_libs/immer.mjs +532 -0
- package/.output/server/_libs/lucide-react.mjs +46 -32
- package/.output/server/_libs/next-themes.mjs +2 -2
- package/.output/server/_libs/react-redux+[...].mjs +205 -0
- package/.output/server/_libs/recharts+[...].mjs +14350 -0
- package/.output/server/_libs/sonner.mjs +2 -2
- package/.output/server/_libs/tanstack__react-query.mjs +8 -3
- package/.output/server/_libs/verkit.mjs +99 -1
- package/.output/server/_runtime.mjs +10 -1
- package/.output/server/_ssr/ConsoleFeatureUnavailable-DoxET2AT.mjs +58 -0
- package/.output/server/_ssr/{HashValueDisplay-DwpGLfrl.mjs → HashValueDisplay-BplboHEb.mjs} +3 -3
- package/.output/server/_ssr/InsightsInfo-o2YPd5Qc.mjs +37 -0
- package/.output/server/_ssr/InsightsPageHeader-NExCJL1I.mjs +154 -0
- package/.output/server/_ssr/NotFoundPage-Cd-A8ock.mjs +37 -0
- package/.output/server/_ssr/api-B1Ro0uys.mjs +202 -0
- package/.output/server/_ssr/api-C0G9MTMI.mjs +4205 -0
- package/.output/server/_ssr/{api-keys-CZeTPQys.mjs → api-keys-CT3HG7KT.mjs} +49 -9
- package/.output/server/_ssr/api-keys-Dvvy1sem.mjs +5 -0
- package/.output/server/_ssr/api-keys-rpc-b1qTTFfG.mjs +52 -0
- package/.output/server/_ssr/api-rpc-Cbns2MGx.mjs +338 -0
- package/.output/server/_ssr/{auth-rpc-DUaeOWKK.mjs → auth-rpc-DChS7m9y.mjs} +6 -6
- package/.output/server/_ssr/auth.server-Ccqz2iVv.mjs +37 -0
- package/.output/server/_ssr/bundleActivity-D17Pb_h5.mjs +19 -0
- package/.output/server/_ssr/card-DMbcvlPz.mjs +49 -0
- package/.output/server/_ssr/config-DMEJdhoW.mjs +13 -0
- package/.output/server/_ssr/config.server-DyypN6cQ.mjs +60 -0
- package/.output/server/_ssr/console-access-KpPv5lin.mjs +17 -0
- package/.output/server/_ssr/console-features-CsbyHYfK.mjs +55 -0
- package/.output/server/_ssr/console-features-api-B-KVuo4p.mjs +43 -0
- package/.output/server/_ssr/console-features-rpc-Djyo5740.mjs +19 -0
- package/.output/server/_ssr/{createServerFn-B2hcXoPM.mjs → createMiddleware-B_I3Ll4M.mjs} +28 -2
- package/.output/server/_ssr/{createServerRpc-DB29C_5p.mjs → createServerRpc-DuNm5mmo.mjs} +2 -2
- package/.output/server/_ssr/databaseRows-CXxf_VIB.mjs +132 -0
- package/.output/server/_ssr/{deleteBundle-BTGwBgzx.mjs → deleteBundle-Dcc21Lbd.mjs} +9 -19
- package/.output/server/_ssr/{dialog-DS-nw-pA.mjs → dialog-cOmLTUV2.mjs} +2 -2
- package/.output/server/_ssr/{dist-CyzPaI5v.mjs → dist-B-r4u3Lg.mjs} +28 -5
- package/.output/server/_ssr/{downloadBundle-CNnYxYO2.mjs → downloadBundle-CexOFoZ4.mjs} +6 -7
- package/.output/server/_ssr/empty-BHoY_5jt.mjs +49 -0
- package/.output/server/_ssr/{table-CnZmon_Z.mjs → field-mjhcNEXD.mjs} +63 -51
- package/.output/server/_ssr/getBundleChildren-DbDXe9wB.mjs +22 -0
- package/.output/server/_ssr/{input-group-BpsnmvZw.mjs → input-group-96H30HWC.mjs} +2 -2
- package/.output/server/_ssr/insights-D25VDVaz.mjs +5 -0
- package/.output/server/_ssr/insights-D359GJFL.mjs +14 -0
- package/.output/server/_ssr/insights-DgFv1NsO.mjs +1238 -0
- package/.output/server/_ssr/insights-api-ChAKrbhG.mjs +105 -0
- package/.output/server/_ssr/insights-failures-WQ-ttjOx.mjs +44 -0
- package/.output/server/_ssr/insights-failures-rpc-BFsqlltN.mjs +21 -0
- package/.output/server/_ssr/insights-recovery-DkL6bxMW.mjs +28 -0
- package/.output/server/_ssr/insights-recovery-rpc-2P5m8F62.mjs +46 -0
- package/.output/server/_ssr/insights-recovery-rpc-Tj8vNC19.mjs +20 -0
- package/.output/server/_ssr/{insights-rpc-38DujK0G.mjs → insights-rpc-DrkVmV9o.mjs} +22 -14
- package/.output/server/_ssr/insights-search-BsalnNw-.mjs +25 -0
- package/.output/server/_ssr/insights-usage-1nVTQrLy.mjs +29 -0
- package/.output/server/_ssr/insights-usage-rpc-Ct_4xHhZ.mjs +29 -0
- package/.output/server/_ssr/insights-usage-rpc-DaYIRtFK.mjs +41 -0
- package/.output/server/_ssr/insightsRecovery-CpGucWN1.mjs +45 -0
- package/.output/server/_ssr/insightsUsage-JYpKZAF7.mjs +56 -0
- package/.output/server/_ssr/insights_.distribution-Bcu6uYs_.mjs +5 -0
- package/.output/server/_ssr/insights_.distribution-D3Csuyjw.mjs +14 -0
- package/.output/server/_ssr/insights_.distribution-jQZEF07J.mjs +335 -0
- package/.output/server/_ssr/installations-B8Vh54lH.mjs +69 -0
- package/.output/server/_ssr/installations-BI5kelHv.mjs +5 -0
- package/.output/server/_ssr/{installations-DiVKEF5T.mjs → installations-Cxikllmx.mjs} +517 -54
- package/.output/server/_ssr/listReleases-DqU9t1l3.mjs +79 -0
- package/.output/server/_ssr/releaseManagement-B3e7I8J9.mjs +11 -0
- package/.output/server/_ssr/{router-B9wG_9f8.mjs → router-CRkm-wHD.mjs} +117 -124
- package/.output/server/_ssr/routes-B3IJo_jL.mjs +292 -0
- package/.output/server/_ssr/{routes-D7Yh_jfj.mjs → routes-CNAi0Mmv.mjs} +176 -455
- package/.output/server/_ssr/runtime.server-NucbYjc7.mjs +1372 -0
- package/.output/server/_ssr/select-BkPAJFL7.mjs +107 -0
- package/.output/server/_ssr/{server-D_C2rMzf.mjs → server-DKJYsaCP.mjs} +6 -32
- package/.output/server/_ssr/{createSsrRpc-DjWNJ0uc.mjs → sidebar-Cw1VuC7d.mjs} +117 -63
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/table-q0P9wz7x.mjs +53 -0
- package/.output/server/_ssr/updateFailures-DMU9f0pK.mjs +24 -0
- package/.output/server/_ssr/{uuidv7-D0QFkPL_.mjs → uuidv7-BzSO-fr-.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-Bb0gKDbb.mjs +124 -0
- package/.output/server/index.mjs +273 -168
- package/README.md +71 -65
- package/lib/index.d.mts +13 -11
- package/lib/vite-internal.mjs +6 -3
- package/package.json +8 -8
- package/src/components/AppSidebar.tsx +91 -71
- package/src/components/ConsoleAccessPage.tsx +5 -1
- package/src/components/ConsoleFeatureUnavailable.tsx +82 -0
- package/src/components/NotFoundPage.tsx +7 -7
- package/src/components/features/FeatureSlots.tsx +99 -0
- package/src/components/features/api-keys/apiKeysFeatureUi.tsx +15 -0
- package/src/components/features/bundles/BundleMetadata.tsx +7 -4
- package/src/components/features/channels/ChannelManagementDialog.tsx +2 -5
- package/src/components/features/insights/AppUsage.tsx +370 -0
- package/src/components/features/insights/EstimatedCount.tsx +18 -0
- package/src/components/features/insights/EventDetails.tsx +117 -37
- package/src/components/features/insights/EventHistoryCard.tsx +112 -26
- package/src/components/features/insights/EventHistoryList.tsx +2 -2
- package/src/components/features/insights/InsightsControls.tsx +265 -102
- package/src/components/features/insights/InsightsErrorAlert.tsx +14 -1
- package/src/components/features/insights/InsightsInfo.tsx +48 -0
- package/src/components/features/insights/InsightsOverview.tsx +176 -173
- package/src/components/features/insights/InsightsPageHeader.tsx +35 -20
- package/src/components/features/insights/InsightsPeriodSelector.tsx +89 -0
- package/src/components/features/insights/InstallationHistoryCard.tsx +52 -10
- package/src/components/features/insights/InstallationMatchesCard.tsx +1 -1
- package/src/components/features/insights/ReleaseActivity.tsx +188 -0
- package/src/components/features/insights/ReportingDevicesSummary.tsx +65 -0
- package/src/components/features/insights/UpdateFailures.tsx +319 -0
- package/src/components/features/insights/insightsFeatureUi.tsx +35 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +24 -1
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/empty.tsx +101 -0
- package/src/components/ui/scroll-area.tsx +52 -0
- package/src/components/ui/sidebar.tsx +22 -29
- package/src/components/ui/tabs.tsx +81 -0
- package/src/index.ts +12 -17
- package/src/lib/api-keys-api.ts +0 -28
- package/src/lib/api-keys-rpc.ts +27 -38
- package/src/lib/api-rpc.ts +197 -221
- package/src/lib/api.ts +11 -13
- package/src/lib/bundle-activity.ts +31 -0
- package/src/lib/console-access.ts +20 -0
- package/src/lib/console-features-api.ts +68 -0
- package/src/lib/console-features-rpc.ts +13 -0
- package/src/lib/console-features.ts +91 -0
- package/src/lib/insights-api.ts +37 -1
- package/src/lib/insights-failures-rpc.ts +21 -0
- package/src/lib/insights-failures.ts +129 -0
- package/src/lib/insights-recovery-rpc.ts +51 -0
- package/src/lib/insights-recovery.ts +68 -0
- package/src/lib/insights-retention.ts +21 -0
- package/src/lib/insights-rpc.ts +30 -12
- package/src/lib/insights-search.ts +58 -0
- package/src/lib/insights-usage-rpc.ts +29 -0
- package/src/lib/insights-usage.ts +74 -0
- package/src/lib/insights-view.ts +38 -2
- package/src/lib/scroll-restoration.ts +21 -0
- package/src/lib/server/adminInsights.ts +124 -0
- package/src/lib/server/auth.server.ts +13 -5
- package/src/lib/server/bundleActivity.ts +37 -0
- package/src/lib/server/config.server.ts +16 -32
- package/src/lib/server/console-feature-apis.ts +59 -0
- package/src/lib/server/console-runtime.server.ts +6 -40
- package/src/lib/server/deleteBundle.ts +16 -25
- package/src/lib/server/downloadBundle.ts +7 -10
- package/src/lib/server/getBundleChildren.ts +31 -122
- package/src/lib/server/insightsRecovery.ts +55 -0
- package/src/lib/server/insightsUsage.ts +63 -0
- package/src/lib/server/listReleases.ts +109 -44
- package/src/lib/server/releaseReachability.ts +4 -3
- package/src/lib/server/runtime.server.ts +132 -31
- package/src/lib/server/updateFailures.ts +31 -0
- package/src/routeTree.gen.ts +21 -21
- package/src/router.tsx +3 -2
- package/src/routes/-installations-search.ts +32 -8
- package/src/routes/-releases-search.ts +76 -29
- package/src/routes/__root.tsx +10 -4
- package/src/routes/api/bundles/$bundleId/download.ts +2 -5
- package/src/routes/api-keys.tsx +5 -2
- package/src/routes/index.tsx +167 -104
- package/src/routes/insights.tsx +100 -59
- package/src/routes/insights_.distribution.tsx +398 -0
- package/src/routes/installations.tsx +98 -41
- package/src/vite-internal.ts +6 -3
- package/.output/public/assets/HashValueDisplay-CB0Eskit.js +0 -1
- package/.output/public/assets/InsightsPageHeader-Car5LNiZ.js +0 -1
- package/.output/public/assets/api-keys-BzKocqRy.js +0 -1
- package/.output/public/assets/api-keys-api-BHcODB7q.js +0 -1
- package/.output/public/assets/card-Dhr_eFYj.js +0 -1
- package/.output/public/assets/chart-no-axes-combined-Dy4WJv2U.js +0 -1
- package/.output/public/assets/composite-Bp98A0Ld.js +0 -1
- package/.output/public/assets/createServerFn-CA8fs7QD.js +0 -3
- package/.output/public/assets/dialog-CUTrcPlB.js +0 -1
- package/.output/public/assets/dist-C_NydL0e.js +0 -1
- package/.output/public/assets/index-DdAz-CXv.js +0 -10
- package/.output/public/assets/input-group-cSOG4wh_.js +0 -1
- package/.output/public/assets/insights-C0PBSZ-n.js +0 -1
- package/.output/public/assets/installations-CE33wgbY.js +0 -2
- package/.output/public/assets/installations-CStZja8x.js +0 -1
- package/.output/public/assets/lazyRouteComponent-Ccp3bwBY.js +0 -1
- package/.output/public/assets/link-CI8idAUi.js +0 -1
- package/.output/public/assets/loader-circle-BoxLrsOu.js +0 -1
- package/.output/public/assets/preload-helper-CQ36nxok.js +0 -1
- package/.output/public/assets/refresh-cw-Bqc72UZG.js +0 -1
- package/.output/public/assets/routes-DGVXdzpw.js +0 -2
- package/.output/public/assets/routes-DTlwOr8I.js +0 -1
- package/.output/public/assets/shield-check-uK3MHWJZ.js +0 -1
- package/.output/public/assets/signing-CMf4aqDO.js +0 -1
- package/.output/public/assets/styles-BCvbtKsm.css +0 -2
- package/.output/public/assets/table-2vcV89QB.js +0 -1
- package/.output/public/assets/useCompositeListItem-CHLITE_4.js +0 -1
- package/.output/public/assets/x-DCd0j8c6.js +0 -1
- package/.output/server/_ssr/InsightsPageHeader-Df4Brj8u.mjs +0 -484
- package/.output/server/_ssr/api-keys-api-BUPQVSpk.mjs +0 -60
- package/.output/server/_ssr/api-keys-rpc-Cs7tS5_j.mjs +0 -136
- package/.output/server/_ssr/api-rpc-tAupfGQm.mjs +0 -1399
- package/.output/server/_ssr/auth.server-DW71WzsD.mjs +0 -47
- package/.output/server/_ssr/bundle-signing-rpc-BhnBw0-d.mjs +0 -16
- package/.output/server/_ssr/bundle-signing.server-C4NW5mWx.mjs +0 -12
- package/.output/server/_ssr/card-BRiPmi0C.mjs +0 -108
- package/.output/server/_ssr/config-Dv8qLDZ0.mjs +0 -13
- package/.output/server/_ssr/config.server-afDuAwaG.mjs +0 -368
- package/.output/server/_ssr/databaseJsonValue-d6I3nAS4.mjs +0 -45
- package/.output/server/_ssr/databaseRows-5bCRTxm-.mjs +0 -126
- package/.output/server/_ssr/getBundleChildren-C0vh4ZvE.mjs +0 -50
- package/.output/server/_ssr/insights-BdS364Xu.mjs +0 -460
- package/.output/server/_ssr/insightsContract-fjJDBeEE.mjs +0 -303
- package/.output/server/_ssr/installations-CtA59MQG.mjs +0 -29
- package/.output/server/_ssr/routes-CKrrS2q2.mjs +0 -37
- package/.output/server/_ssr/runtime.server-DacU1TBV.mjs +0 -438
- package/.output/server/_ssr/signing-Dz1WkZOf.mjs +0 -133
- package/.output/server/_tanstack-start-manifest_v-2MjTyxil.mjs +0 -97
- package/src/components/features/insights/InsightsBundleReports.tsx +0 -51
- package/src/components/features/signing/BundleSigningPage.tsx +0 -139
- package/src/lib/bundle-signing-api.ts +0 -14
- package/src/lib/bundle-signing-rpc.ts +0 -16
- package/src/lib/server/bundle-signing.server.ts +0 -23
- package/src/routes/signing.tsx +0 -37
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
import { n as isDatabaseMetadataObject, t as DatabasePluginInputError } from "./databaseJsonValue-d6I3nAS4.mjs";
|
|
2
|
-
import { x as isUUIDv7 } from "./dist-CyzPaI5v.mjs";
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/insightsContract-fjJDBeEE.js
|
|
4
|
-
var databaseFields = {
|
|
5
|
-
bundles: [
|
|
6
|
-
"id",
|
|
7
|
-
"platform",
|
|
8
|
-
"file_hash",
|
|
9
|
-
"git_commit_hash",
|
|
10
|
-
"storage_uri",
|
|
11
|
-
"archive_byte_size",
|
|
12
|
-
"metadata",
|
|
13
|
-
"manifest_storage_uri",
|
|
14
|
-
"manifest_file_hash",
|
|
15
|
-
"asset_base_storage_uri"
|
|
16
|
-
],
|
|
17
|
-
bundle_patches: [
|
|
18
|
-
"id",
|
|
19
|
-
"bundle_id",
|
|
20
|
-
"base_bundle_id",
|
|
21
|
-
"base_file_hash",
|
|
22
|
-
"patch_file_hash",
|
|
23
|
-
"patch_storage_uri",
|
|
24
|
-
"byte_size",
|
|
25
|
-
"order_index"
|
|
26
|
-
],
|
|
27
|
-
releases: [
|
|
28
|
-
"id",
|
|
29
|
-
"revision",
|
|
30
|
-
"scope_key",
|
|
31
|
-
"channel_id",
|
|
32
|
-
"platform",
|
|
33
|
-
"kind",
|
|
34
|
-
"bundle_id",
|
|
35
|
-
"strategy",
|
|
36
|
-
"target_app_version",
|
|
37
|
-
"fingerprint_hash",
|
|
38
|
-
"enabled",
|
|
39
|
-
"should_force_update",
|
|
40
|
-
"message",
|
|
41
|
-
"rollout_cohort_count",
|
|
42
|
-
"target_cohorts",
|
|
43
|
-
"operation",
|
|
44
|
-
"source_release_id",
|
|
45
|
-
"created_at_ms",
|
|
46
|
-
"updated_at_ms"
|
|
47
|
-
],
|
|
48
|
-
release_catalogs: [
|
|
49
|
-
"scope_key",
|
|
50
|
-
"catalog_id",
|
|
51
|
-
"strategy",
|
|
52
|
-
"channel_id",
|
|
53
|
-
"channel_key",
|
|
54
|
-
"platform",
|
|
55
|
-
"fingerprint_hash",
|
|
56
|
-
"generation",
|
|
57
|
-
"payload",
|
|
58
|
-
"catalog_hash",
|
|
59
|
-
"byte_size",
|
|
60
|
-
"is_tombstone",
|
|
61
|
-
"updated_at_ms"
|
|
62
|
-
],
|
|
63
|
-
channels: ["id", "name"],
|
|
64
|
-
bundle_events: [
|
|
65
|
-
"id",
|
|
66
|
-
"type",
|
|
67
|
-
"install_id",
|
|
68
|
-
"user_id",
|
|
69
|
-
"username",
|
|
70
|
-
"from_bundle_id",
|
|
71
|
-
"from_release_id",
|
|
72
|
-
"to_release_id",
|
|
73
|
-
"to_bundle_id",
|
|
74
|
-
"platform",
|
|
75
|
-
"app_version",
|
|
76
|
-
"channel",
|
|
77
|
-
"cohort",
|
|
78
|
-
"update_strategy",
|
|
79
|
-
"fingerprint_hash",
|
|
80
|
-
"sdk_version",
|
|
81
|
-
"received_at_ms"
|
|
82
|
-
],
|
|
83
|
-
bundle_installations: [
|
|
84
|
-
"id",
|
|
85
|
-
"install_id",
|
|
86
|
-
"user_id",
|
|
87
|
-
"username",
|
|
88
|
-
"to_bundle_id",
|
|
89
|
-
"type",
|
|
90
|
-
"platform",
|
|
91
|
-
"app_version",
|
|
92
|
-
"channel",
|
|
93
|
-
"cohort",
|
|
94
|
-
"received_at_ms"
|
|
95
|
-
],
|
|
96
|
-
api_keys: [
|
|
97
|
-
"id",
|
|
98
|
-
"hash",
|
|
99
|
-
"name",
|
|
100
|
-
"prefix",
|
|
101
|
-
"role",
|
|
102
|
-
"created_at_ms",
|
|
103
|
-
"revoked_at_ms"
|
|
104
|
-
]
|
|
105
|
-
};
|
|
106
|
-
var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
107
|
-
var isChannelText = (value) => {
|
|
108
|
-
if (typeof value !== "string" || value.length === 0) return false;
|
|
109
|
-
let codePointCount = 0;
|
|
110
|
-
for (const _codePoint of value) {
|
|
111
|
-
codePointCount += 1;
|
|
112
|
-
if (codePointCount > 255) return false;
|
|
113
|
-
}
|
|
114
|
-
return true;
|
|
115
|
-
};
|
|
116
|
-
var isInsightsIdentityText = (value) => typeof value === "string" && value.length > 0 && value.length <= 255;
|
|
117
|
-
var isNullableInsightsIdentityText = (value) => value === null || isInsightsIdentityText(value);
|
|
118
|
-
var modelValidators = {
|
|
119
|
-
bundles: {
|
|
120
|
-
id: (value) => typeof value === "string",
|
|
121
|
-
platform: (value) => value === "ios" || value === "android",
|
|
122
|
-
should_force_update: (value) => typeof value === "boolean",
|
|
123
|
-
enabled: (value) => typeof value === "boolean",
|
|
124
|
-
file_hash: (value) => typeof value === "string",
|
|
125
|
-
git_commit_hash: (value) => value === null || typeof value === "string",
|
|
126
|
-
message: (value) => value === null || typeof value === "string",
|
|
127
|
-
channel: isChannelText,
|
|
128
|
-
channel_id: isChannelText,
|
|
129
|
-
storage_uri: (value) => typeof value === "string",
|
|
130
|
-
archive_byte_size: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0,
|
|
131
|
-
target_app_version: (value) => value === null || typeof value === "string",
|
|
132
|
-
fingerprint_hash: (value) => value === null || typeof value === "string",
|
|
133
|
-
metadata: isDatabaseMetadataObject,
|
|
134
|
-
rollout_cohort_count: (value) => typeof value === "number" && Number.isInteger(value) && value >= 0 && value <= 1e3,
|
|
135
|
-
target_cohorts: (value) => value === null || Array.isArray(value) && value.every((item) => typeof item === "string"),
|
|
136
|
-
manifest_storage_uri: (value) => value === null || typeof value === "string",
|
|
137
|
-
manifest_file_hash: (value) => value === null || typeof value === "string",
|
|
138
|
-
asset_base_storage_uri: (value) => value === null || typeof value === "string"
|
|
139
|
-
},
|
|
140
|
-
bundle_patches: {
|
|
141
|
-
id: (value) => typeof value === "string",
|
|
142
|
-
bundle_id: (value) => typeof value === "string",
|
|
143
|
-
base_bundle_id: (value) => typeof value === "string",
|
|
144
|
-
base_file_hash: (value) => typeof value === "string",
|
|
145
|
-
patch_file_hash: (value) => typeof value === "string",
|
|
146
|
-
patch_storage_uri: (value) => typeof value === "string",
|
|
147
|
-
byte_size: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0,
|
|
148
|
-
order_index: (value) => typeof value === "number" && Number.isInteger(value) && value >= 0
|
|
149
|
-
},
|
|
150
|
-
releases: {
|
|
151
|
-
id: isUUIDv7,
|
|
152
|
-
revision: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 1,
|
|
153
|
-
scope_key: (value) => typeof value === "string" && value.length > 0,
|
|
154
|
-
channel_id: isChannelText,
|
|
155
|
-
platform: (value) => value === "ios" || value === "android",
|
|
156
|
-
kind: (value) => value === "BUNDLE" || value === "EMBEDDED",
|
|
157
|
-
bundle_id: (value) => value === null || typeof value === "string",
|
|
158
|
-
strategy: (value) => value === "APP_VERSION" || value === "FINGERPRINT",
|
|
159
|
-
target_app_version: (value) => value === null || typeof value === "string",
|
|
160
|
-
fingerprint_hash: (value) => value === null || typeof value === "string",
|
|
161
|
-
enabled: (value) => typeof value === "boolean",
|
|
162
|
-
should_force_update: (value) => typeof value === "boolean",
|
|
163
|
-
message: (value) => value === null || typeof value === "string",
|
|
164
|
-
rollout_cohort_count: (value) => typeof value === "number" && Number.isInteger(value) && value >= 0 && value <= 1e3,
|
|
165
|
-
target_cohorts: (value) => Array.isArray(value) && value.every((item) => typeof item === "string"),
|
|
166
|
-
operation: (value) => value === "DEPLOY" || value === "PROMOTE" || value === "ROLLBACK",
|
|
167
|
-
source_release_id: (value) => value === null || isUUIDv7(value),
|
|
168
|
-
created_at_ms: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0,
|
|
169
|
-
updated_at_ms: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0
|
|
170
|
-
},
|
|
171
|
-
release_catalogs: {
|
|
172
|
-
scope_key: (value) => typeof value === "string" && value.length > 0,
|
|
173
|
-
catalog_id: (value) => typeof value === "string" && value.length > 0,
|
|
174
|
-
strategy: (value) => value === "APP_VERSION" || value === "FINGERPRINT",
|
|
175
|
-
channel_id: isChannelText,
|
|
176
|
-
channel_key: (value) => typeof value === "string" && value.length > 0,
|
|
177
|
-
platform: (value) => value === "ios" || value === "android",
|
|
178
|
-
fingerprint_hash: (value) => value === null || typeof value === "string",
|
|
179
|
-
generation: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 1,
|
|
180
|
-
payload: (value) => typeof value === "string",
|
|
181
|
-
catalog_hash: (value) => typeof value === "string" && value.length > 0,
|
|
182
|
-
byte_size: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0,
|
|
183
|
-
is_tombstone: (value) => typeof value === "boolean",
|
|
184
|
-
updated_at_ms: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0
|
|
185
|
-
},
|
|
186
|
-
channels: {
|
|
187
|
-
id: isChannelText,
|
|
188
|
-
name: isChannelText
|
|
189
|
-
},
|
|
190
|
-
bundle_events: {
|
|
191
|
-
id: (value) => typeof value === "string",
|
|
192
|
-
type: (value) => value === "UPDATE_APPLIED" || value === "RECOVERED" || value === "RELEASE_ADOPTED" || value === "UNCHANGED",
|
|
193
|
-
install_id: isInsightsIdentityText,
|
|
194
|
-
user_id: isNullableInsightsIdentityText,
|
|
195
|
-
username: (value) => value === null || typeof value === "string",
|
|
196
|
-
from_bundle_id: (value) => value === null || typeof value === "string",
|
|
197
|
-
from_release_id: (value) => value === null || typeof value === "string",
|
|
198
|
-
to_release_id: (value) => value === null || typeof value === "string",
|
|
199
|
-
to_bundle_id: (value) => typeof value === "string",
|
|
200
|
-
platform: (value) => value === "ios" || value === "android",
|
|
201
|
-
app_version: (value) => typeof value === "string",
|
|
202
|
-
channel: (value) => typeof value === "string",
|
|
203
|
-
cohort: (value) => typeof value === "string",
|
|
204
|
-
update_strategy: (value) => value === null || value === "fingerprint" || value === "appVersion",
|
|
205
|
-
fingerprint_hash: (value) => value === null || typeof value === "string",
|
|
206
|
-
sdk_version: (value) => value === null || typeof value === "string",
|
|
207
|
-
received_at_ms: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0
|
|
208
|
-
},
|
|
209
|
-
bundle_installations: {
|
|
210
|
-
id: (value) => typeof value === "string",
|
|
211
|
-
install_id: isInsightsIdentityText,
|
|
212
|
-
user_id: isNullableInsightsIdentityText,
|
|
213
|
-
username: (value) => value === null || typeof value === "string",
|
|
214
|
-
to_bundle_id: (value) => typeof value === "string",
|
|
215
|
-
type: (value) => value === "UPDATE_APPLIED" || value === "RECOVERED" || value === "RELEASE_ADOPTED" || value === "UNCHANGED",
|
|
216
|
-
platform: (value) => value === "ios" || value === "android",
|
|
217
|
-
app_version: (value) => typeof value === "string",
|
|
218
|
-
channel: (value) => typeof value === "string",
|
|
219
|
-
cohort: (value) => typeof value === "string",
|
|
220
|
-
received_at_ms: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0
|
|
221
|
-
},
|
|
222
|
-
api_keys: {
|
|
223
|
-
id: (value) => typeof value === "string",
|
|
224
|
-
hash: (value) => typeof value === "string",
|
|
225
|
-
name: (value) => typeof value === "string",
|
|
226
|
-
prefix: (value) => typeof value === "string",
|
|
227
|
-
role: (value) => value === "client",
|
|
228
|
-
created_at_ms: (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0,
|
|
229
|
-
revoked_at_ms: (value) => value === null || typeof value === "number" && Number.isSafeInteger(value) && value >= 0
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
var validateField = (model, field) => {
|
|
233
|
-
if (!databaseFields[model].includes(field)) throw new DatabasePluginInputError("invalid-field");
|
|
234
|
-
};
|
|
235
|
-
var validateFields = (model, fields) => {
|
|
236
|
-
for (const field of fields) validateField(model, field);
|
|
237
|
-
};
|
|
238
|
-
var hasValidReleaseInvariants = (data) => {
|
|
239
|
-
const kind = data.kind;
|
|
240
|
-
const bundleId = data.bundle_id;
|
|
241
|
-
const strategy = data.strategy;
|
|
242
|
-
const targetAppVersion = data.target_app_version;
|
|
243
|
-
const fingerprintHash = data.fingerprint_hash;
|
|
244
|
-
return (kind === "BUNDLE" && typeof bundleId === "string" || kind === "EMBEDDED" && bundleId === null) && (strategy === "APP_VERSION" && typeof targetAppVersion === "string" && fingerprintHash === null || strategy === "FINGERPRINT" && targetAppVersion === null && typeof fingerprintHash === "string");
|
|
245
|
-
};
|
|
246
|
-
var hasValidBundleEventInvariants = (data) => (data.type === "UPDATE_APPLIED" || data.type === "RECOVERED" || data.type === "RELEASE_ADOPTED") && typeof data.from_bundle_id === "string" && (data.update_strategy === "fingerprint" || data.update_strategy === "appVersion") || data.type === "UNCHANGED" && data.from_bundle_id === null && data.update_strategy === null;
|
|
247
|
-
var validateCreateData = (model, data) => {
|
|
248
|
-
if (!isRecord(data)) throw new DatabasePluginInputError("invalid-data");
|
|
249
|
-
validateFields(model, Object.keys(data));
|
|
250
|
-
for (const field of databaseFields[model]) {
|
|
251
|
-
const validator = modelValidators[model][field];
|
|
252
|
-
if (!Object.hasOwn(data, field) || !validator || !validator(Reflect.get(data, field))) throw new DatabasePluginInputError("invalid-data");
|
|
253
|
-
}
|
|
254
|
-
if (model === "bundles" && data.target_app_version === null && data.fingerprint_hash === null) throw new DatabasePluginInputError("invalid-data");
|
|
255
|
-
if (model === "releases" && !hasValidReleaseInvariants(data)) throw new DatabasePluginInputError("invalid-data");
|
|
256
|
-
if (model === "release_catalogs" && (data.strategy === "APP_VERSION" && data.fingerprint_hash !== null || data.strategy === "FINGERPRINT" && typeof data.fingerprint_hash !== "string")) throw new DatabasePluginInputError("invalid-data");
|
|
257
|
-
if (model === "bundle_events" && !hasValidBundleEventInvariants(data)) throw new DatabasePluginInputError("invalid-data");
|
|
258
|
-
};
|
|
259
|
-
var encoder = new TextEncoder();
|
|
260
|
-
/** Exact UTF-8 byte ordering, without case folding or Unicode normalization. */
|
|
261
|
-
var compareInsightsText = (left, right) => {
|
|
262
|
-
const a = encoder.encode(left);
|
|
263
|
-
const b = encoder.encode(right);
|
|
264
|
-
for (let index = 0; index < Math.min(a.length, b.length); index += 1) if (a[index] !== b[index]) return a[index] - b[index];
|
|
265
|
-
return a.length - b.length;
|
|
266
|
-
};
|
|
267
|
-
var isWellFormedText = (value) => {
|
|
268
|
-
for (const character of value) {
|
|
269
|
-
const point = character.codePointAt(0);
|
|
270
|
-
if (point >= 55296 && point <= 57343) return false;
|
|
271
|
-
}
|
|
272
|
-
return true;
|
|
273
|
-
};
|
|
274
|
-
var validateRow = (model, row, result = false) => {
|
|
275
|
-
try {
|
|
276
|
-
validateCreateData(model, row);
|
|
277
|
-
if (!isRecord(row) || typeof row.id !== "string" || !isUUIDv7(row.id) || Object.values(row).some((value) => typeof value === "string" && !isWellFormedText(value))) throw new DatabasePluginInputError("invalid-data");
|
|
278
|
-
} catch (error) {
|
|
279
|
-
if (result) throw new DatabasePluginInputError("invalid-result");
|
|
280
|
-
throw error;
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
/** Prepare the full latest-state candidate; the provider owns winning writes. */
|
|
284
|
-
var toInsightsInstallationRow = (event) => {
|
|
285
|
-
validateRow("bundle_events", event);
|
|
286
|
-
return {
|
|
287
|
-
id: event.id,
|
|
288
|
-
install_id: event.install_id,
|
|
289
|
-
user_id: event.user_id,
|
|
290
|
-
username: event.username,
|
|
291
|
-
to_bundle_id: event.to_bundle_id,
|
|
292
|
-
type: event.type,
|
|
293
|
-
platform: event.platform,
|
|
294
|
-
app_version: event.app_version,
|
|
295
|
-
channel: event.channel,
|
|
296
|
-
cohort: event.cohort,
|
|
297
|
-
received_at_ms: event.received_at_ms
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
/** Release adoption and unchanged lifecycle reports are not bundle movements. */
|
|
301
|
-
var isInsightsMovementEvent = (event) => event.type === "UPDATE_APPLIED" || event.type === "RECOVERED";
|
|
302
|
-
//#endregion
|
|
303
|
-
export { toInsightsInstallationRow as i, isInsightsMovementEvent as n, isRecord as r, compareInsightsText as t };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { d as lazyRouteComponent, f as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
2
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/installations-CtA59MQG.js
|
|
3
|
-
var readCursor = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
|
|
4
|
-
var readTimestamp = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0 ? value : void 0;
|
|
5
|
-
function getInsightsScrollRestorationKey(location) {
|
|
6
|
-
if (location.pathname === "/installations") {
|
|
7
|
-
const search = validateInstallationsSearch(location.search);
|
|
8
|
-
if (search.query === void 0 && search.installId === void 0) return `/installations?eventsBefore=${search.eventsBefore ?? "new"}&eventsCursor=${search.eventsCursor ?? "first"}`;
|
|
9
|
-
}
|
|
10
|
-
return location.state.__TSR_key;
|
|
11
|
-
}
|
|
12
|
-
function validateInstallationsSearch(search) {
|
|
13
|
-
return {
|
|
14
|
-
query: typeof search.query === "string" ? search.query : void 0,
|
|
15
|
-
installId: typeof search.installId === "string" ? search.installId : void 0,
|
|
16
|
-
eventsCursor: readCursor(search.eventsCursor),
|
|
17
|
-
eventsBefore: readTimestamp(search.eventsBefore),
|
|
18
|
-
searchCursor: readCursor(search.searchCursor),
|
|
19
|
-
historyCursor: readCursor(search.historyCursor),
|
|
20
|
-
historyBefore: readTimestamp(search.historyBefore)
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
var $$splitComponentImporter = () => import("./installations-DiVKEF5T.mjs");
|
|
24
|
-
var Route = createFileRoute("/installations")({
|
|
25
|
-
component: lazyRouteComponent($$splitComponentImporter, "component"),
|
|
26
|
-
validateSearch: validateInstallationsSearch
|
|
27
|
-
});
|
|
28
|
-
//#endregion
|
|
29
|
-
export { getInsightsScrollRestorationKey as n, Route as t };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { d as lazyRouteComponent, f as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
2
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/routes-CKrrS2q2.js
|
|
3
|
-
var optionalString = (value) => typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
|
|
4
|
-
function validateReleaseSearch(search) {
|
|
5
|
-
const parsedPage = typeof search.page === "number" ? search.page : typeof search.page === "string" ? Number(search.page) : void 0;
|
|
6
|
-
const beforeReleaseId = optionalString(search.beforeReleaseId);
|
|
7
|
-
const afterReleaseId = beforeReleaseId ? void 0 : optionalString(search.afterReleaseId);
|
|
8
|
-
const enabled = search.enabled === true || search.enabled === "true" ? true : search.enabled === false || search.enabled === "false" ? false : void 0;
|
|
9
|
-
return {
|
|
10
|
-
afterReleaseId,
|
|
11
|
-
beforeReleaseId,
|
|
12
|
-
bundleId: optionalString(search.bundleId),
|
|
13
|
-
channelId: optionalString(search.channelId),
|
|
14
|
-
enabled,
|
|
15
|
-
page: parsedPage !== void 0 && Number.isInteger(parsedPage) && parsedPage > 1 ? parsedPage : void 0,
|
|
16
|
-
platform: search.platform === "ios" || search.platform === "android" ? search.platform : void 0,
|
|
17
|
-
releaseId: optionalString(search.releaseId),
|
|
18
|
-
targetAppVersion: optionalString(search.targetAppVersion)
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function updateReleaseFilters(current, filters) {
|
|
22
|
-
return {
|
|
23
|
-
...current,
|
|
24
|
-
...filters,
|
|
25
|
-
afterReleaseId: void 0,
|
|
26
|
-
beforeReleaseId: void 0,
|
|
27
|
-
page: void 0,
|
|
28
|
-
releaseId: void 0
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
var $$splitComponentImporter = () => import("./routes-D7Yh_jfj.mjs");
|
|
32
|
-
var Route = createFileRoute("/")({
|
|
33
|
-
component: lazyRouteComponent($$splitComponentImporter, "component"),
|
|
34
|
-
validateSearch: validateReleaseSearch
|
|
35
|
-
});
|
|
36
|
-
//#endregion
|
|
37
|
-
export { updateReleaseFilters as n, Route as t };
|