@iota-uz/sdk 0.46.0 → 0.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/client-host/identity.d.ts +4 -4
- package/dist/client-host/identity.js +2 -2
- package/dist/lens/{CascadePanel-Bha4qY7J.js → CascadePanel-BlYJd18G.js} +1 -1
- package/dist/lens/{ChartDataEquivalent-Bwgn4yYB.js → ChartDataEquivalent-B6xSOdzC.js} +1 -1
- package/dist/lens/{ChartPanel-BZpzBuwl.js → ChartPanel-BIJjrs5D.js} +159 -159
- package/dist/lens/{CoveragePanel-D40AuKkD.js → CoveragePanel-CHtXDMtt.js} +1 -1
- package/dist/lens/{GaugePanel-C9k2TuJH.js → GaugePanel-By0TOJPa.js} +1 -1
- package/dist/lens/LensDashboard.d.ts +13 -0
- package/dist/lens/LensDashboard.d.ts.map +1 -1
- package/dist/lens/{MapPanel-ZYxfDsPM.js → MapPanel-Cw4ELCiM.js} +3 -3
- package/dist/lens/{MetricFlowPanel-CmESLoLK.js → MetricFlowPanel-Gr5wi3nI.js} +2 -2
- package/dist/lens/{MetricHierarchyPanel-UZVuJ5P2.js → MetricHierarchyPanel-VLA_5LXX.js} +2 -2
- package/dist/lens/{MetricRelationshipPanel-CXLdScAy.js → MetricRelationshipPanel-DFP566_c.js} +2 -2
- package/dist/lens/{PrintReport-lrfdCTZO.js → PrintReport-C0OV1iHP.js} +5 -5
- package/dist/lens/{QualityChip-BYz-DHfs.js → QualityChip-DTi-0jdh.js} +1 -1
- package/dist/lens/SaveInvestigation-CX1Abyl8.js +309 -0
- package/dist/lens/TablePanel-BusKU7cU.js +994 -0
- package/dist/lens/{adapter-CeAqYWqm.js → adapter-CQg4-M7p.js} +7 -7
- package/dist/lens/contract/schemas.d.ts +2 -0
- package/dist/lens/contract/schemas.d.ts.map +1 -1
- package/dist/lens/contract/types.d.ts +12 -0
- package/dist/lens/contract/types.d.ts.map +1 -1
- package/dist/lens/{dashboardEdit-DKVE_6J_.js → dashboardEdit-CJgCVfi_.js} +1 -1
- package/dist/lens/explore/DrillOverlay.d.ts +38 -0
- package/dist/lens/explore/DrillOverlay.d.ts.map +1 -1
- package/dist/lens/explore/ExplorePanel.d.ts.map +1 -1
- package/dist/lens/explore/SaveInvestigation.d.ts +21 -0
- package/dist/lens/explore/SaveInvestigation.d.ts.map +1 -0
- package/dist/lens/explore/drillHost.d.ts +25 -0
- package/dist/lens/explore/drillHost.d.ts.map +1 -0
- package/dist/lens/explore/investigation.d.ts +174 -0
- package/dist/lens/explore/investigation.d.ts.map +1 -0
- package/dist/lens/explore/provenanceLabels.d.ts +10 -0
- package/dist/lens/explore/provenanceLabels.d.ts.map +1 -0
- package/dist/lens/index-DR7Hf8Km.js +19805 -0
- package/dist/lens/{index-DkVTXC8W.js → index-DZFw4cqF.js} +1 -1
- package/dist/lens/index.d.ts +7 -1
- package/dist/lens/index.d.ts.map +1 -1
- package/dist/lens/index.js +67 -53
- package/dist/lens/{install-CQ_iMuAE.js → install-B2lTK6uo.js} +1 -1
- package/dist/lens/{install-Ch0_qifK.js → install-BXr4Mnc0.js} +1 -1
- package/dist/lens/{install-CKmxqMe1.js → install-CicNQ_ks.js} +1 -1
- package/dist/lens/{install-BwD_xNlp.js → install-d8A0WPiw.js} +1 -1
- package/dist/lens/{keys-BBmWdfaH.js → keys-C-Akc9lZ.js} +2 -2
- package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
- package/dist/lens/panels/TablePanel.d.ts.map +1 -1
- package/dist/lens/panels/actions.d.ts.map +1 -1
- package/dist/lens/panels/panelFailure.d.ts.map +1 -1
- package/dist/lens/{prefetch-BXoUIIgq.js → prefetch-C9kxuIs8.js} +2 -2
- package/dist/lens/{prefetchPanels-a-zs_bDm.js → prefetchPanels-gbY9RIqL.js} +1 -1
- package/dist/lens/{print-CpgWJxDG.js → print-CllsAP3d.js} +1 -1
- package/dist/lens/reports/ReportCompositionEditor.d.ts +8 -2
- package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -1
- package/dist/lens/reports/ReportDefinitionEditor.d.ts +54 -0
- package/dist/lens/reports/ReportDefinitionEditor.d.ts.map +1 -0
- package/dist/lens/reports/ReportPicker.d.ts +6 -0
- package/dist/lens/reports/ReportPicker.d.ts.map +1 -1
- package/dist/lens/reports/dashboardEdit.d.ts +3 -0
- package/dist/lens/reports/dashboardEdit.d.ts.map +1 -1
- package/dist/lens/reports/editing.d.ts +35 -0
- package/dist/lens/reports/editing.d.ts.map +1 -1
- package/dist/lens/reports/picker.d.ts +4 -1
- package/dist/lens/reports/picker.d.ts.map +1 -1
- package/dist/lens/runtime/index.d.ts +0 -1
- package/dist/lens/runtime/index.d.ts.map +1 -1
- package/dist/lens/runtime/messages.d.ts +2 -2
- package/dist/lens/runtime/messages.d.ts.map +1 -1
- package/dist/lens/runtime/provider.d.ts +5 -1
- package/dist/lens/runtime/provider.d.ts.map +1 -1
- package/dist/lens/runtime/returnContext.d.ts +62 -0
- package/dist/lens/runtime/returnContext.d.ts.map +1 -0
- package/dist/lens/runtime/tableSummary.d.ts +9 -0
- package/dist/lens/runtime/tableSummary.d.ts.map +1 -0
- package/dist/lens/{scales-BLf9OweG.js → scales-CO6Q9RtG.js} +1 -1
- package/dist/lens/style.css +1 -1
- package/dist/runtime/README.md +24 -0
- package/dist/runtime/assert.d.ts +51 -0
- package/dist/runtime/assert.js +172 -0
- package/dist/runtime/build/README.txt +1 -0
- package/dist/runtime/build/extract.mjs +342 -0
- package/dist/runtime/build/shared-exports.json +388 -0
- package/dist/runtime/build/test-child.mjs +136 -0
- package/dist/runtime/build/theme/tailwind.config.js +121 -0
- package/dist/runtime/build/theme/theme.css +462 -0
- package/dist/runtime/build/theme/utilities.css +1 -0
- package/dist/runtime/build/vendor/lib/lib.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.decorators.d.ts +384 -0
- package/dist/runtime/build/vendor/lib/lib.decorators.legacy.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.dom.asynciterable.d.ts +41 -0
- package/dist/runtime/build/vendor/lib/lib.dom.d.ts +28983 -0
- package/dist/runtime/build/vendor/lib/lib.dom.iterable.d.ts +491 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.collection.d.ts +147 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.core.d.ts +597 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.generator.d.ts +77 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.iterable.d.ts +590 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.promise.d.ts +81 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.proxy.d.ts +128 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.reflect.d.ts +144 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.symbol.d.ts +46 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.array.include.d.ts +116 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.full.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.intl.d.ts +31 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.date.d.ts +31 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.full.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.intl.d.ts +44 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.object.d.ts +49 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.string.d.ts +45 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.intl.d.ts +83 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.promise.d.ts +30 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.regexp.d.ts +37 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.array.d.ts +79 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.intl.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.object.d.ts +33 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.string.d.ts +37 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.symbol.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.bigint.d.ts +731 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.d.ts +27 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.date.d.ts +42 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.intl.d.ts +474 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.number.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.promise.d.ts +47 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.string.d.ts +44 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.intl.d.ts +166 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.promise.d.ts +48 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.string.d.ts +33 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.weakref.d.ts +78 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.array.d.ts +121 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.error.d.ts +75 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.intl.d.ts +121 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.object.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.regexp.d.ts +39 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.string.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.array.d.ts +924 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.collection.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.intl.d.ts +56 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.collection.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.object.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.promise.d.ts +35 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.regexp.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.string.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es5.d.ts +4585 -0
- package/dist/runtime/build/vendor/lib/lib.es6.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.array.d.ts +35 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.collection.d.ts +96 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.decorators.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.disposable.d.ts +193 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.intl.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.iterator.d.ts +148 -0
- package/dist/runtime/build/vendor/node-types/assert/strict.d.ts +111 -0
- package/dist/runtime/build/vendor/node-types/assert.d.ts +1115 -0
- package/dist/runtime/build/vendor/node-types/async_hooks.d.ts +619 -0
- package/dist/runtime/build/vendor/node-types/buffer.buffer.d.ts +477 -0
- package/dist/runtime/build/vendor/node-types/buffer.d.ts +1941 -0
- package/dist/runtime/build/vendor/node-types/child_process.d.ts +1480 -0
- package/dist/runtime/build/vendor/node-types/cluster.d.ts +578 -0
- package/dist/runtime/build/vendor/node-types/compatibility/iterators.d.ts +21 -0
- package/dist/runtime/build/vendor/node-types/console.d.ts +453 -0
- package/dist/runtime/build/vendor/node-types/constants.d.ts +21 -0
- package/dist/runtime/build/vendor/node-types/crypto.d.ts +5484 -0
- package/dist/runtime/build/vendor/node-types/dgram.d.ts +715 -0
- package/dist/runtime/build/vendor/node-types/diagnostics_channel.d.ts +576 -0
- package/dist/runtime/build/vendor/node-types/dns/promises.d.ts +503 -0
- package/dist/runtime/build/vendor/node-types/dns.d.ts +923 -0
- package/dist/runtime/build/vendor/node-types/domain.d.ts +166 -0
- package/dist/runtime/build/vendor/node-types/events.d.ts +967 -0
- package/dist/runtime/build/vendor/node-types/fs/promises.d.ts +1354 -0
- package/dist/runtime/build/vendor/node-types/fs.d.ts +4777 -0
- package/dist/runtime/build/vendor/node-types/globals.d.ts +170 -0
- package/dist/runtime/build/vendor/node-types/globals.typedarray.d.ts +41 -0
- package/dist/runtime/build/vendor/node-types/http.d.ts +2246 -0
- package/dist/runtime/build/vendor/node-types/http2.d.ts +2882 -0
- package/dist/runtime/build/vendor/node-types/https.d.ts +585 -0
- package/dist/runtime/build/vendor/node-types/index.d.ts +101 -0
- package/dist/runtime/build/vendor/node-types/inspector.d.ts +323 -0
- package/dist/runtime/build/vendor/node-types/inspector.generated.d.ts +4406 -0
- package/dist/runtime/build/vendor/node-types/module.d.ts +844 -0
- package/dist/runtime/build/vendor/node-types/net.d.ts +1197 -0
- package/dist/runtime/build/vendor/node-types/os.d.ts +507 -0
- package/dist/runtime/build/vendor/node-types/package.json +140 -0
- package/dist/runtime/build/vendor/node-types/path.d.ts +200 -0
- package/dist/runtime/build/vendor/node-types/perf_hooks.d.ts +1054 -0
- package/dist/runtime/build/vendor/node-types/process.d.ts +2101 -0
- package/dist/runtime/build/vendor/node-types/punycode.d.ts +117 -0
- package/dist/runtime/build/vendor/node-types/querystring.d.ts +152 -0
- package/dist/runtime/build/vendor/node-types/readline/promises.d.ts +161 -0
- package/dist/runtime/build/vendor/node-types/readline.d.ts +600 -0
- package/dist/runtime/build/vendor/node-types/repl.d.ts +438 -0
- package/dist/runtime/build/vendor/node-types/sea.d.ts +162 -0
- package/dist/runtime/build/vendor/node-types/sqlite.d.ts +1182 -0
- package/dist/runtime/build/vendor/node-types/stream/consumers.d.ts +45 -0
- package/dist/runtime/build/vendor/node-types/stream/promises.d.ts +90 -0
- package/dist/runtime/build/vendor/node-types/stream/web.d.ts +596 -0
- package/dist/runtime/build/vendor/node-types/stream.d.ts +1707 -0
- package/dist/runtime/build/vendor/node-types/string_decoder.d.ts +67 -0
- package/dist/runtime/build/vendor/node-types/test.d.ts +2656 -0
- package/dist/runtime/build/vendor/node-types/timers/promises.d.ts +108 -0
- package/dist/runtime/build/vendor/node-types/timers.d.ts +285 -0
- package/dist/runtime/build/vendor/node-types/tls.d.ts +1314 -0
- package/dist/runtime/build/vendor/node-types/trace_events.d.ts +197 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/buffer.buffer.d.ts +473 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/compatibility/float16array.d.ts +71 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/globals.typedarray.d.ts +36 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/index.d.ts +103 -0
- package/dist/runtime/build/vendor/node-types/ts5.7/compatibility/float16array.d.ts +72 -0
- package/dist/runtime/build/vendor/node-types/ts5.7/index.d.ts +103 -0
- package/dist/runtime/build/vendor/node-types/tty.d.ts +209 -0
- package/dist/runtime/build/vendor/node-types/url.d.ts +1103 -0
- package/dist/runtime/build/vendor/node-types/util.d.ts +2379 -0
- package/dist/runtime/build/vendor/node-types/v8.d.ts +1010 -0
- package/dist/runtime/build/vendor/node-types/vm.d.ts +1160 -0
- package/dist/runtime/build/vendor/node-types/wasi.d.ts +202 -0
- package/dist/runtime/build/vendor/node-types/web-globals/abortcontroller.d.ts +34 -0
- package/dist/runtime/build/vendor/node-types/web-globals/crypto.d.ts +32 -0
- package/dist/runtime/build/vendor/node-types/web-globals/domexception.d.ts +68 -0
- package/dist/runtime/build/vendor/node-types/web-globals/events.d.ts +97 -0
- package/dist/runtime/build/vendor/node-types/web-globals/fetch.d.ts +62 -0
- package/dist/runtime/build/vendor/node-types/web-globals/navigator.d.ts +25 -0
- package/dist/runtime/build/vendor/node-types/web-globals/storage.d.ts +24 -0
- package/dist/runtime/build/vendor/node-types/web-globals/streams.d.ts +22 -0
- package/dist/runtime/build/vendor/node-types/worker_threads.d.ts +894 -0
- package/dist/runtime/build/vendor/node-types/zlib.d.ts +768 -0
- package/dist/runtime/build/vendor/node_modules/csstype/LICENSE +19 -0
- package/dist/runtime/build/vendor/node_modules/csstype/index.d.ts +22569 -0
- package/dist/runtime/build/vendor/node_modules/csstype/index.js.flow +6863 -0
- package/dist/runtime/build/vendor/node_modules/csstype/package.json +70 -0
- package/dist/runtime/build/vendor/node_modules/seroval/LICENSE +7 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/development/index.cjs +4232 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/production/index.cjs +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/development/index.mjs +4209 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/production/index.mjs +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/Serializer.d.ts +28 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/base-primitives.d.ts +28 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/compat.d.ts +15 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constants.d.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constructors.d.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/async-parser.d.ts +20 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/deserializer.d.ts +52 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/parser.d.ts +62 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/serializer.d.ts +103 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/sync-parser.d.ts +61 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/cross/index.d.ts +24 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/errors.d.ts +47 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/function-string.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/keys.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/literals.d.ts +10 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/node.d.ts +8 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/opaque-reference.d.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/plugin.d.ts +52 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/reference.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/sequence.d.ts +11 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/special-reference.d.ts +16 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/stream.d.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/string.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/symbols.d.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/tree/index.d.ts +21 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/types.d.ts +233 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/error.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-identifier.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-object-flag.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/is-valid-identifier.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/promise-to-result.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/typed-array.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/valid-properties.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/index.d.ts +18 -0
- package/dist/runtime/build/vendor/node_modules/seroval/package.json +67 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/Serializer.ts +119 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/base-primitives.ts +537 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/compat.ts +23 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/constants.ts +202 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/constructors.ts +265 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/async-parser.ts +666 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/deserializer.ts +832 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/parser.ts +335 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/serializer.ts +1524 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/sync-parser.ts +943 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/cross/index.ts +190 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/errors.ts +196 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/function-string.ts +31 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/keys.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/literals.ts +43 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/node.ts +40 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/opaque-reference.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/plugin.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/reference.ts +66 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/sequence.ts +59 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/special-reference.ts +42 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/stream.ts +71 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/string.ts +86 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/symbols.ts +20 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/tree/index.ts +134 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/types.ts +377 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/error.ts +73 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-identifier.ts +18 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-object-flag.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/is-valid-identifier.ts +12 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/promise-to-result.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/typed-array.ts +56 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/valid-properties.ts +34 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/index.ts +36 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/LICENSE +7 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/development/web.cjs +826 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/production/web.cjs +1 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/development/web.mjs +803 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/production/web.mjs +1 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/abort-signal.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/blob.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/custom-event.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/dom-exception.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/event.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/file.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/form-data.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/headers.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/image-data.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/index.d.ts +15 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/readable-stream.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/request.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/response.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url-search-params.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/package.json +70 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/abort-signal.ts +131 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/blob.ts +41 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/custom-event.ts +66 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/dom-exception.ts +57 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/event.ts +62 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/file.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/form-data.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/headers.ts +49 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/image-data.ts +74 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/index.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/readable-stream.ts +148 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/request.ts +82 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/response.ts +65 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url-search-params.ts +40 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url.ts +37 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.cjs +824 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.js +770 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.cjs +1808 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.js +1753 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/jsx-runtime.d.ts +1 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/package.json +243 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.cjs +133 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.js +121 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.cjs +463 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.js +454 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/package.json +46 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/index.d.ts +12 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/modifiers.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/mutable.d.ts +5 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/server.d.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/store.d.ts +108 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/index.d.ts +23 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/jsx.d.ts +4253 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/array.d.ts +44 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/observable.d.ts +36 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/scheduler.d.ts +10 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/signal.d.ts +581 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/Suspense.d.ts +26 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/component.d.ts +111 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/flow.d.ts +118 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/hydration.d.ts +24 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/index.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/index.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/reactive.d.ts +98 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/rendering.d.ts +160 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.cjs +900 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.js +786 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.cjs +884 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.js +772 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/package.json +46 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.cjs +12 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.js +10 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/package.json +15 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/types/index.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/client.d.ts +93 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/core.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/index.d.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/jsx.d.ts +1 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server-mock.d.ts +65 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server.d.ts +187 -0
- package/dist/runtime/build/worker.mjs +293415 -0
- package/dist/runtime/catalog/sdk-natives.json +655 -0
- package/dist/runtime/cli/iota-ext.mjs +1028 -0
- package/dist/runtime/client-host/entry.d.ts +10 -0
- package/dist/runtime/client-host/entry.js +124 -0
- package/dist/runtime/client-host/hooks.d.ts +43 -0
- package/dist/runtime/client-host/hooks.js +94 -0
- package/dist/runtime/client-host/index.d.ts +9 -0
- package/dist/runtime/client-host/index.js +9 -0
- package/dist/runtime/client-host/islands.d.ts +44 -0
- package/dist/runtime/client-host/islands.js +165 -0
- package/dist/runtime/client-host/kit.d.ts +10 -0
- package/dist/runtime/client-host/kit.js +37 -0
- package/dist/runtime/client-host/page.d.ts +53 -0
- package/dist/runtime/client-host/page.js +217 -0
- package/dist/runtime/client-host/params.d.ts +8 -0
- package/dist/runtime/client-host/params.js +36 -0
- package/dist/runtime/client-host/protocol.d.ts +78 -0
- package/dist/runtime/client-host/protocol.js +26 -0
- package/dist/runtime/client-host/shared.d.ts +12 -0
- package/dist/runtime/client-host/shared.js +49 -0
- package/dist/runtime/client-host/shell.d.ts +88 -0
- package/dist/runtime/client-host/shell.js +195 -0
- package/dist/runtime/client-host/slots.d.ts +54 -0
- package/dist/runtime/client-host/slots.js +90 -0
- package/dist/runtime/client-host/styles.d.ts +7 -0
- package/dist/runtime/client-host/styles.js +61 -0
- package/dist/runtime/client-host/transport.d.ts +45 -0
- package/dist/runtime/client-host/transport.js +115 -0
- package/dist/runtime/client.d.ts +226 -0
- package/dist/runtime/client.js +121 -0
- package/dist/runtime/contracts.d.ts +204 -0
- package/dist/runtime/contracts.js +195 -0
- package/dist/runtime/docs/authoring.md +1609 -0
- package/dist/runtime/docs/example/docs/en/admin/limits.md +10 -0
- package/dist/runtime/docs/example/docs/en/getting-started.md +13 -0
- package/dist/runtime/docs/example/docs/en/points.md +9 -0
- package/dist/runtime/docs/example/docs/ru/getting-started.md +12 -0
- package/dist/runtime/docs/example/package.json +27 -0
- package/dist/runtime/docs/example/src/ClientScreen.tsx +10 -0
- package/dist/runtime/docs/example/src/RedemptionScreen.tsx +7 -0
- package/dist/runtime/docs/example/src/RewardsScreen.module.css +13 -0
- package/dist/runtime/docs/example/src/RewardsScreen.tsx +51 -0
- package/dist/runtime/docs/example/src/client.tsx +40 -0
- package/dist/runtime/docs/example/src/contracts.ts +132 -0
- package/dist/runtime/docs/example/src/css-modules.d.ts +5 -0
- package/dist/runtime/docs/example/src/server.test.ts +156 -0
- package/dist/runtime/docs/example/src/server.ts +188 -0
- package/dist/runtime/docs/example/tsconfig.json +16 -0
- package/dist/runtime/entity.d.ts +237 -0
- package/dist/runtime/entity.js +201 -0
- package/dist/runtime/fakes.d.ts +80 -0
- package/dist/runtime/fakes.js +88 -0
- package/dist/runtime/fixtures.d.ts +34 -0
- package/dist/runtime/fixtures.js +60 -0
- package/dist/runtime/help.d.ts +22 -0
- package/dist/runtime/help.js +51 -0
- package/dist/runtime/host/context.mjs +392 -0
- package/dist/runtime/host/errors.mjs +64 -0
- package/dist/runtime/host/loader.mjs +28 -0
- package/dist/runtime/host/protocol.mjs +4 -0
- package/dist/runtime/host/register.mjs +8 -0
- package/dist/runtime/host/sdk/assert.mjs +153 -0
- package/dist/runtime/host/sdk/client-host/hooks.mjs +86 -0
- package/dist/runtime/host/sdk/client-host/protocol.mjs +30 -0
- package/dist/runtime/host/sdk/client-host/slots.mjs +82 -0
- package/dist/runtime/host/sdk/client-host/styles.mjs +45 -0
- package/dist/runtime/host/sdk/client-host/transport.mjs +102 -0
- package/dist/runtime/host/sdk/client.mjs +115 -0
- package/dist/runtime/host/sdk/contracts.mjs +185 -0
- package/dist/runtime/host/sdk/entity.mjs +183 -0
- package/dist/runtime/host/sdk/fakes.mjs +88 -0
- package/dist/runtime/host/sdk/fixtures.mjs +56 -0
- package/dist/runtime/host/sdk/help.mjs +37 -0
- package/dist/runtime/host/sdk/index.mjs +83 -0
- package/dist/runtime/host/sdk/kit.mjs +11 -0
- package/dist/runtime/host/sdk/manifest.mjs +276 -0
- package/dist/runtime/host/sdk/model.mjs +4 -0
- package/dist/runtime/host/sdk/resource.mjs +34 -0
- package/dist/runtime/host/sdk/schema.mjs +75 -0
- package/dist/runtime/host/sdk/server.mjs +43 -0
- package/dist/runtime/host/sdk/testhost.mjs +992 -0
- package/dist/runtime/host/sdk/testing.mjs +21 -0
- package/dist/runtime/host/sdk/wire.mjs +207 -0
- package/dist/runtime/host/worker.mjs +252 -0
- package/dist/runtime/index.d.ts +10 -0
- package/dist/runtime/index.js +5 -0
- package/dist/runtime/kit.d.ts +5 -0
- package/dist/runtime/kit.js +14 -0
- package/dist/runtime/manifest.d.ts +17 -0
- package/dist/runtime/manifest.js +323 -0
- package/dist/runtime/model.d.ts +224 -0
- package/dist/runtime/model.js +3 -0
- package/dist/runtime/resource.d.ts +31 -0
- package/dist/runtime/resource.js +35 -0
- package/dist/runtime/schema.d.ts +97 -0
- package/dist/runtime/schema.js +73 -0
- package/dist/runtime/server.d.ts +445 -0
- package/dist/runtime/server.js +41 -0
- package/dist/runtime/testhost.d.ts +216 -0
- package/dist/runtime/testhost.js +1146 -0
- package/dist/runtime/testing.d.ts +10 -0
- package/dist/runtime/testing.js +7 -0
- package/dist/runtime/wire.d.ts +26 -0
- package/dist/runtime/wire.js +236 -0
- package/dist/sdk-identity.cjs +3 -3
- package/dist/sdk-identity.js +3 -3
- package/dist/sdk-identity.json +2 -2
- package/dist/solid-ui/embedded-css.d.ts +2 -0
- package/dist/solid-ui/embedded-css.js +1 -0
- package/dist/solid-ui/embedded.css +2 -0
- package/dist/testing/components.d.ts +73 -0
- package/dist/testing/components.js +96 -0
- package/dist/testing/htmx.d.ts +44 -0
- package/dist/testing/htmx.js +284 -0
- package/dist/testing/index.d.ts +4 -41
- package/dist/testing/index.js +3 -206
- package/dist/testing/scenarios.d.ts +83 -0
- package/dist/testing/scenarios.js +74 -0
- package/dist/testing/wait.d.ts +7 -0
- package/dist/testing/wait.js +19 -0
- package/package.json +33 -2
- package/dist/lens/TablePanel-C09tzJOL.js +0 -980
- package/dist/lens/index-DcVtZneD.js +0 -18473
- package/dist/lens/runtime/recovery.d.ts +0 -26
- package/dist/lens/runtime/recovery.d.ts.map +0 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { contract, omitEmpty } from "./resource.mjs";
|
|
2
|
+
import {
|
|
3
|
+
makeSchema,
|
|
4
|
+
t
|
|
5
|
+
} from "./schema.mjs";
|
|
6
|
+
import { isInt64String, isUUID, validate } from "./wire.mjs";
|
|
7
|
+
const emptySpec = { unique: false, index: false, renamedFrom: [] };
|
|
8
|
+
function makeField(type, spec = emptySpec) {
|
|
9
|
+
const base = makeSchema(type);
|
|
10
|
+
const next = (patch, nextType = type) => makeField(nextType, { ...spec, ...patch });
|
|
11
|
+
return {
|
|
12
|
+
...base,
|
|
13
|
+
spec,
|
|
14
|
+
optional: () => next({}, { ...type, optional: true, nullable: true }),
|
|
15
|
+
nullable: () => next({}, { ...type, nullable: true }),
|
|
16
|
+
unique: () => next({ unique: true }),
|
|
17
|
+
index: () => next({ index: true }),
|
|
18
|
+
default: (value) => {
|
|
19
|
+
const json = value;
|
|
20
|
+
try {
|
|
21
|
+
validate(type, json);
|
|
22
|
+
} catch (e) {
|
|
23
|
+
throw new Error(`invalid field default: ${e instanceof Error ? e.message : String(e)}`);
|
|
24
|
+
}
|
|
25
|
+
return next({ default: json });
|
|
26
|
+
},
|
|
27
|
+
renamedFrom: (...keys) => next({ renamedFrom: [...spec.renamedFrom, ...keys] }),
|
|
28
|
+
label: (label) => next({ label })
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function fieldOf(schema) {
|
|
32
|
+
return makeField(schema.type);
|
|
33
|
+
}
|
|
34
|
+
const text = (o) => fieldOf(t.string(o));
|
|
35
|
+
const field = {
|
|
36
|
+
text,
|
|
37
|
+
string: text,
|
|
38
|
+
int: () => fieldOf(t.int()),
|
|
39
|
+
int64: () => fieldOf(t.int64()),
|
|
40
|
+
decimal: (o) => fieldOf(t.decimal(o)),
|
|
41
|
+
bool: () => fieldOf(t.bool()),
|
|
42
|
+
date: () => fieldOf(t.date()),
|
|
43
|
+
datetime: () => fieldOf(t.datetime()),
|
|
44
|
+
uuid: () => fieldOf(t.uuid()),
|
|
45
|
+
enum: (values) => fieldOf(t.enum(values)),
|
|
46
|
+
json: () => fieldOf(t.json()),
|
|
47
|
+
ref: (entity2) => fieldOf(t.ref(entity2))
|
|
48
|
+
};
|
|
49
|
+
const RESERVED_KEYS = /* @__PURE__ */ new Set(["key", "ref", "createdAt", "updatedAt", "rowVersion", "baseKey"]);
|
|
50
|
+
const $ = { user: { $: "user" } };
|
|
51
|
+
const opKeys = /* @__PURE__ */ new Set(["eq", "ne", "in", "lt", "lte", "gt", "gte", "isNull", "like"]);
|
|
52
|
+
function isPlaceholder(value) {
|
|
53
|
+
return typeof value === "object" && value !== null && value.$ === "user";
|
|
54
|
+
}
|
|
55
|
+
function toCondition(value) {
|
|
56
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value) && !isPlaceholder(value)) {
|
|
57
|
+
const keys = Object.keys(value);
|
|
58
|
+
if (keys.length > 0 && keys.every((k) => opKeys.has(k))) return { ...value };
|
|
59
|
+
}
|
|
60
|
+
return { eq: value };
|
|
61
|
+
}
|
|
62
|
+
function compileFilter(where) {
|
|
63
|
+
const fields = {};
|
|
64
|
+
let or;
|
|
65
|
+
for (const [key, value] of Object.entries(where)) {
|
|
66
|
+
if (value === void 0) continue;
|
|
67
|
+
if (key === "or") or = value.map(compileFilter);
|
|
68
|
+
else fields[key] = toCondition(value);
|
|
69
|
+
}
|
|
70
|
+
return omitEmpty({ fields: Object.keys(fields).length > 0 ? fields : void 0, or });
|
|
71
|
+
}
|
|
72
|
+
function checkUserPlaceholders(owner, fields, where) {
|
|
73
|
+
for (const [key, value] of Object.entries(where)) {
|
|
74
|
+
if (value === void 0) continue;
|
|
75
|
+
if (key === "or") {
|
|
76
|
+
for (const w of value) checkUserPlaceholders(owner, fields, w);
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
if (key.includes(".")) continue;
|
|
80
|
+
const cond = toCondition(value);
|
|
81
|
+
const used = isPlaceholder(cond.eq) || isPlaceholder(cond.ne) || (cond.in ?? []).some(isPlaceholder);
|
|
82
|
+
if (!used) continue;
|
|
83
|
+
const type = fields[key]?.type;
|
|
84
|
+
if (type === void 0 || type.kind !== "ref" || type.entity !== "core.user") {
|
|
85
|
+
throw new Error(`${owner}: $.user can only be compared with a ref to core.user, but "${key}" is not one`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function compileField(id, f) {
|
|
90
|
+
const typed = omitEmpty({
|
|
91
|
+
id,
|
|
92
|
+
type: f.type,
|
|
93
|
+
unique: f.spec.unique,
|
|
94
|
+
index: f.spec.index,
|
|
95
|
+
renamedFrom: [...f.spec.renamedFrom],
|
|
96
|
+
label: f.spec.label
|
|
97
|
+
});
|
|
98
|
+
if (f.spec.default === void 0) return typed;
|
|
99
|
+
const { id: fid, type, unique, index, ...rest } = typed;
|
|
100
|
+
return { id: fid, type, ...unique ? { unique } : {}, ...index ? { index } : {}, default: f.spec.default, ...rest };
|
|
101
|
+
}
|
|
102
|
+
function compileAccess(owner, fields, access) {
|
|
103
|
+
if (!access) return void 0;
|
|
104
|
+
if (access.read !== void 0 && access.read.length === 0) {
|
|
105
|
+
throw new Error(`${owner}: access.read is empty, which is ambiguous (unrestricted or denied?); omit it, or write [{ rows: 'none' }] to deny`);
|
|
106
|
+
}
|
|
107
|
+
const read = (access.read ?? []).map((r) => {
|
|
108
|
+
if (typeof r.rows === "object") checkUserPlaceholders(owner, fields, r.rows);
|
|
109
|
+
return omitEmpty({
|
|
110
|
+
permission: r.when?.id,
|
|
111
|
+
all: r.rows === "all",
|
|
112
|
+
rows: typeof r.rows === "object" ? compileFilter(r.rows) : void 0
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
const permissions = {};
|
|
116
|
+
for (const [k, perms] of Object.entries(access.fields ?? {})) {
|
|
117
|
+
if (perms) permissions[k] = perms.map((p) => p.id);
|
|
118
|
+
}
|
|
119
|
+
return omitEmpty({ read, fields: Object.keys(permissions).length > 0 ? permissions : void 0 });
|
|
120
|
+
}
|
|
121
|
+
function bind(owner, fields, rejectReserved) {
|
|
122
|
+
const out = {};
|
|
123
|
+
for (const [key, f] of Object.entries(fields)) {
|
|
124
|
+
if (rejectReserved && RESERVED_KEYS.has(key)) throw new Error(`${owner}: field key "${key}" is reserved for the data layer`);
|
|
125
|
+
out[key] = { ...f, owner, key };
|
|
126
|
+
}
|
|
127
|
+
return out;
|
|
128
|
+
}
|
|
129
|
+
function entity(id, fields, opts = {}) {
|
|
130
|
+
const resource = omitEmpty({
|
|
131
|
+
id,
|
|
132
|
+
kind: "entity",
|
|
133
|
+
label: opts.label,
|
|
134
|
+
description: opts.description,
|
|
135
|
+
fields: Object.entries(fields).map(([k, f]) => compileField(k, f)),
|
|
136
|
+
access: compileAccess(id, fields, opts.access)
|
|
137
|
+
});
|
|
138
|
+
return { ...contract(resource), entityKind: "own", keyType: "uuid", fields: bind(id, fields, true) };
|
|
139
|
+
}
|
|
140
|
+
function nativeEntity(id, fields, opts) {
|
|
141
|
+
const resource = {
|
|
142
|
+
id,
|
|
143
|
+
kind: "entity",
|
|
144
|
+
fields: Object.entries(fields).map(([k, f]) => compileField(k, f))
|
|
145
|
+
};
|
|
146
|
+
return { ...contract(resource, true), entityKind: "native", keyType: opts.key, fields: bind(id, fields, false) };
|
|
147
|
+
}
|
|
148
|
+
function overlay(id, base, fields, opts = {}) {
|
|
149
|
+
for (const [key, f] of Object.entries(fields)) {
|
|
150
|
+
if (!f.type.optional && !f.type.nullable && f.spec.default === void 0) {
|
|
151
|
+
throw new Error(`${id}: overlay field "${key}" needs .optional(), .nullable() or .default(...): a base record may have no overlay row`);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
const resource = omitEmpty({
|
|
155
|
+
id,
|
|
156
|
+
kind: "overlay",
|
|
157
|
+
label: opts.label,
|
|
158
|
+
description: opts.description,
|
|
159
|
+
base: base.id,
|
|
160
|
+
fields: Object.entries(fields).map(([k, f]) => compileField(k, f)),
|
|
161
|
+
access: compileAccess(id, fields, opts.access)
|
|
162
|
+
});
|
|
163
|
+
return { ...contract(resource), base, fields: bind(id, fields, true) };
|
|
164
|
+
}
|
|
165
|
+
function validKey(keyType, key) {
|
|
166
|
+
if (keyType === "int64") return isInt64String(key);
|
|
167
|
+
if (keyType === "uuid") return isUUID(key);
|
|
168
|
+
return key !== "";
|
|
169
|
+
}
|
|
170
|
+
function ref(entity2, key) {
|
|
171
|
+
if (!validKey(entity2.keyType, key)) throw new Error(`ref(${entity2.id}): "${key}" is not a valid ${entity2.keyType} key`);
|
|
172
|
+
return { entity: entity2.id, key };
|
|
173
|
+
}
|
|
174
|
+
export {
|
|
175
|
+
$,
|
|
176
|
+
RESERVED_KEYS,
|
|
177
|
+
compileFilter,
|
|
178
|
+
entity,
|
|
179
|
+
field,
|
|
180
|
+
nativeEntity,
|
|
181
|
+
overlay,
|
|
182
|
+
ref
|
|
183
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
function fakeChannel(name) {
|
|
2
|
+
let calls = [];
|
|
3
|
+
let delivered = [];
|
|
4
|
+
let ids = /* @__PURE__ */ new Map();
|
|
5
|
+
let failures = [];
|
|
6
|
+
return {
|
|
7
|
+
get calls() {
|
|
8
|
+
return calls;
|
|
9
|
+
},
|
|
10
|
+
get delivered() {
|
|
11
|
+
return delivered;
|
|
12
|
+
},
|
|
13
|
+
async send(message) {
|
|
14
|
+
calls = [...calls, message];
|
|
15
|
+
const failure = failures.shift();
|
|
16
|
+
if (failure) throw failure;
|
|
17
|
+
const key = message.idempotencyKey;
|
|
18
|
+
const known = key === void 0 ? void 0 : ids.get(key);
|
|
19
|
+
if (known !== void 0) return { id: known };
|
|
20
|
+
const id = `${name}-${delivered.length + 1}`;
|
|
21
|
+
if (key !== void 0) ids.set(key, id);
|
|
22
|
+
delivered = [...delivered, message];
|
|
23
|
+
return { id };
|
|
24
|
+
},
|
|
25
|
+
failNext(error, count = 1) {
|
|
26
|
+
failures = [...failures, ...Array.from({ length: count }, () => error)];
|
|
27
|
+
},
|
|
28
|
+
reset() {
|
|
29
|
+
calls = [];
|
|
30
|
+
delivered = [];
|
|
31
|
+
ids = /* @__PURE__ */ new Map();
|
|
32
|
+
failures = [];
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
class UnmatchedRequestError extends Error {
|
|
37
|
+
constructor(request) {
|
|
38
|
+
super(`no fake http route for ${request.method} ${request.url}`);
|
|
39
|
+
this.name = "UnmatchedRequestError";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function fakeHttp() {
|
|
43
|
+
let calls = [];
|
|
44
|
+
let routes = /* @__PURE__ */ new Map();
|
|
45
|
+
return {
|
|
46
|
+
get calls() {
|
|
47
|
+
return calls;
|
|
48
|
+
},
|
|
49
|
+
route(method, url, response) {
|
|
50
|
+
routes.set(`${method.toUpperCase()} ${url}`, response);
|
|
51
|
+
},
|
|
52
|
+
async request(request) {
|
|
53
|
+
calls = [...calls, request];
|
|
54
|
+
const handler = routes.get(`${request.method.toUpperCase()} ${request.url}`);
|
|
55
|
+
if (handler === void 0) throw new UnmatchedRequestError(request);
|
|
56
|
+
return typeof handler === "function" ? handler(request) : handler;
|
|
57
|
+
},
|
|
58
|
+
reset() {
|
|
59
|
+
calls = [];
|
|
60
|
+
routes = /* @__PURE__ */ new Map();
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function fakeEffects() {
|
|
65
|
+
const sms = fakeChannel("sms");
|
|
66
|
+
const email = fakeChannel("email");
|
|
67
|
+
const push = fakeChannel("push");
|
|
68
|
+
const inApp = fakeChannel("inApp");
|
|
69
|
+
const http = fakeHttp();
|
|
70
|
+
return {
|
|
71
|
+
sms,
|
|
72
|
+
email,
|
|
73
|
+
push,
|
|
74
|
+
inApp,
|
|
75
|
+
http,
|
|
76
|
+
reset() {
|
|
77
|
+
sms.reset();
|
|
78
|
+
email.reset();
|
|
79
|
+
push.reset();
|
|
80
|
+
inApp.reset();
|
|
81
|
+
http.reset();
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
UnmatchedRequestError,
|
|
87
|
+
fakeEffects
|
|
88
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { t } from "./schema.mjs";
|
|
2
|
+
import { encode } from "./wire.mjs";
|
|
3
|
+
const EPOCH = "2026-01-01T00:00:00Z";
|
|
4
|
+
const TIMESTAMPS = ["createdAt", "updatedAt"];
|
|
5
|
+
function hash(text) {
|
|
6
|
+
let a = 2166136261;
|
|
7
|
+
let b = 16777619;
|
|
8
|
+
for (let i = 0; i < text.length; i++) {
|
|
9
|
+
a = Math.imul(a ^ text.charCodeAt(i), 16777619) >>> 0;
|
|
10
|
+
b = Math.imul(b + text.charCodeAt(i), 2246822507) >>> 0;
|
|
11
|
+
}
|
|
12
|
+
return (a.toString(16).padStart(8, "0") + b.toString(16).padStart(8, "0")).repeat(2);
|
|
13
|
+
}
|
|
14
|
+
function syntheticKey(entityId, values) {
|
|
15
|
+
const h = hash(entityId + JSON.stringify(values));
|
|
16
|
+
return `${h.slice(0, 8)}-${h.slice(8, 12)}-4${h.slice(13, 16)}-8${h.slice(17, 20)}-${h.slice(20, 32)}`;
|
|
17
|
+
}
|
|
18
|
+
function materialize(fields, values) {
|
|
19
|
+
const given = values;
|
|
20
|
+
const out = {};
|
|
21
|
+
for (const [key, f] of Object.entries(fields)) {
|
|
22
|
+
out[key] = given[key] !== void 0 ? given[key] : TIMESTAMPS.includes(key) ? EPOCH : f.spec.default ?? null;
|
|
23
|
+
}
|
|
24
|
+
return out;
|
|
25
|
+
}
|
|
26
|
+
function checked(entity, record) {
|
|
27
|
+
const shape = Object.fromEntries(Object.entries(entity.fields).map(([k, f]) => [k, f]));
|
|
28
|
+
encode(t.object(shape), record);
|
|
29
|
+
}
|
|
30
|
+
function fixture(entity, values, opts = {}) {
|
|
31
|
+
if (entity.entityKind === "native" && opts.key === void 0) {
|
|
32
|
+
throw new Error(`fixture(${entity.id}): native entities need an explicit key (${entity.keyType})`);
|
|
33
|
+
}
|
|
34
|
+
const key = opts.key ?? syntheticKey(entity.id, values);
|
|
35
|
+
const fields = materialize(entity.fields, values);
|
|
36
|
+
checked(entity, fields);
|
|
37
|
+
return {
|
|
38
|
+
key,
|
|
39
|
+
ref: { entity: entity.id, key },
|
|
40
|
+
record: { key, ref: { entity: entity.id, key }, createdAt: EPOCH, updatedAt: EPOCH, rowVersion: 1, ...fields }
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const OVERLAY_OF = Symbol.for("iota.testing.overlayOf");
|
|
44
|
+
function overlayFixture(overlay, base, values = {}) {
|
|
45
|
+
const fields = materialize(overlay.fields, values);
|
|
46
|
+
checked(overlay, fields);
|
|
47
|
+
const row = { baseKey: base.key, ...fields };
|
|
48
|
+
Object.defineProperty(row, OVERLAY_OF, { value: overlay.id, enumerable: false });
|
|
49
|
+
return row;
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
EPOCH,
|
|
53
|
+
OVERLAY_OF,
|
|
54
|
+
fixture,
|
|
55
|
+
overlayFixture
|
|
56
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const HELP_BASE = "/help";
|
|
2
|
+
const HELP_APPS_MOUNT = "apps";
|
|
3
|
+
const DOC_PATH = /^[a-z0-9][a-z0-9_-]*(\/[a-z0-9][a-z0-9_-]*)*$/;
|
|
4
|
+
const NAMESPACE = /^[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*$/;
|
|
5
|
+
function helpDocHref(namespace, path, base = HELP_BASE) {
|
|
6
|
+
if (!NAMESPACE.test(namespace)) throw new Error(`helpHref: "${namespace}" is not a package namespace`);
|
|
7
|
+
const [doc = "", ...fragment] = path.split("#");
|
|
8
|
+
if (!DOC_PATH.test(doc)) {
|
|
9
|
+
throw new Error(`helpHref: "${path}" is not a document path (the file docs/<locale>/<path>.md without the locale and .md, e.g. "getting-started")`);
|
|
10
|
+
}
|
|
11
|
+
const anchor = fragment.length > 0 ? `#${encodeURIComponent(fragment.join("#"))}` : "";
|
|
12
|
+
return `${base.replace(/\/+$/, "")}/doc/${HELP_APPS_MOUNT}/${namespace}/${doc}${anchor}`;
|
|
13
|
+
}
|
|
14
|
+
function pageNamespace() {
|
|
15
|
+
if (typeof document === "undefined") return void 0;
|
|
16
|
+
try {
|
|
17
|
+
const raw = document.getElementById("iota-client-context")?.textContent;
|
|
18
|
+
const initial = raw ? JSON.parse(raw).initial : void 0;
|
|
19
|
+
const name = initial?.page?.package;
|
|
20
|
+
return typeof name === "string" && NAMESPACE.test(name) ? name : void 0;
|
|
21
|
+
} catch {
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function helpHref(path, options = {}) {
|
|
26
|
+
const namespace = options.namespace ?? pageNamespace();
|
|
27
|
+
if (namespace === void 0) {
|
|
28
|
+
throw new Error("helpHref: the package is unknown here; pass { namespace } (the page context names it only on runtime pages)");
|
|
29
|
+
}
|
|
30
|
+
return helpDocHref(namespace, path, options.base);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
HELP_APPS_MOUNT,
|
|
34
|
+
HELP_BASE,
|
|
35
|
+
helpDocHref,
|
|
36
|
+
helpHref
|
|
37
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { t } from "./schema.mjs";
|
|
2
|
+
import { RESOURCE, isBranded, isContract } from "./resource.mjs";
|
|
3
|
+
import { $, compileFilter, entity, field, overlay, ref } from "./entity.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ContractError,
|
|
6
|
+
column,
|
|
7
|
+
command,
|
|
8
|
+
contactResolver,
|
|
9
|
+
defineSlot,
|
|
10
|
+
deliveryPolicy,
|
|
11
|
+
domainError,
|
|
12
|
+
event,
|
|
13
|
+
href,
|
|
14
|
+
issue,
|
|
15
|
+
notice,
|
|
16
|
+
operation,
|
|
17
|
+
permission,
|
|
18
|
+
query,
|
|
19
|
+
route,
|
|
20
|
+
slotRef,
|
|
21
|
+
validation,
|
|
22
|
+
workflow
|
|
23
|
+
} from "./contracts.mjs";
|
|
24
|
+
import {
|
|
25
|
+
WireError,
|
|
26
|
+
decimal,
|
|
27
|
+
decode,
|
|
28
|
+
encode,
|
|
29
|
+
int64,
|
|
30
|
+
isInt64String,
|
|
31
|
+
isISODate,
|
|
32
|
+
isISODateTime,
|
|
33
|
+
isDecimalString,
|
|
34
|
+
isUUID,
|
|
35
|
+
isoDate,
|
|
36
|
+
isoDateTime,
|
|
37
|
+
toBigInt,
|
|
38
|
+
validate
|
|
39
|
+
} from "./wire.mjs";
|
|
40
|
+
export {
|
|
41
|
+
$,
|
|
42
|
+
ContractError,
|
|
43
|
+
RESOURCE,
|
|
44
|
+
WireError,
|
|
45
|
+
column,
|
|
46
|
+
command,
|
|
47
|
+
compileFilter,
|
|
48
|
+
contactResolver,
|
|
49
|
+
decimal,
|
|
50
|
+
decode,
|
|
51
|
+
defineSlot,
|
|
52
|
+
deliveryPolicy,
|
|
53
|
+
domainError,
|
|
54
|
+
encode,
|
|
55
|
+
entity,
|
|
56
|
+
event,
|
|
57
|
+
field,
|
|
58
|
+
href,
|
|
59
|
+
int64,
|
|
60
|
+
isBranded,
|
|
61
|
+
isContract,
|
|
62
|
+
isDecimalString,
|
|
63
|
+
isISODate,
|
|
64
|
+
isISODateTime,
|
|
65
|
+
isInt64String,
|
|
66
|
+
isUUID,
|
|
67
|
+
isoDate,
|
|
68
|
+
isoDateTime,
|
|
69
|
+
issue,
|
|
70
|
+
notice,
|
|
71
|
+
operation,
|
|
72
|
+
overlay,
|
|
73
|
+
permission,
|
|
74
|
+
query,
|
|
75
|
+
ref,
|
|
76
|
+
route,
|
|
77
|
+
slotRef,
|
|
78
|
+
t,
|
|
79
|
+
toBigInt,
|
|
80
|
+
validate,
|
|
81
|
+
validation,
|
|
82
|
+
workflow
|
|
83
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { KIT } from "./resource.mjs";
|
|
2
|
+
import { nativeEntity } from "./entity.mjs";
|
|
3
|
+
import { nativeList } from "./contracts.mjs";
|
|
4
|
+
function foreign(c) {
|
|
5
|
+
return { ...c, foreign: true, [KIT]: true };
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
foreign,
|
|
9
|
+
nativeEntity,
|
|
10
|
+
nativeList
|
|
11
|
+
};
|