@dialecte/core 0.6.4 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/hub.worker-B1HcVDhn.js +2 -0
- package/dist/diagnostics/diagnostics.d.ts +30 -0
- package/dist/diagnostics/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics/index.d.ts +3 -0
- package/dist/diagnostics/index.d.ts.map +1 -0
- package/dist/diagnostics/types.d.ts +77 -0
- package/dist/diagnostics/types.d.ts.map +1 -0
- package/dist/dialecte/create-dialecte-project.d.ts +11 -0
- package/dist/dialecte/create-dialecte-project.d.ts.map +1 -0
- package/dist/dialecte/create-project-factory.d.ts +14 -0
- package/dist/dialecte/create-project-factory.d.ts.map +1 -0
- package/dist/dialecte/define-dialecte.d.ts +12 -0
- package/dist/dialecte/define-dialecte.d.ts.map +1 -0
- package/dist/dialecte/dialecte.constants.d.ts +4 -0
- package/dist/dialecte/dialecte.constants.d.ts.map +1 -0
- package/dist/dialecte/dialecte.types.d.ts +75 -0
- package/dist/dialecte/dialecte.types.d.ts.map +1 -0
- package/dist/dialecte/index.d.ts +4 -0
- package/dist/dialecte/index.d.ts.map +1 -0
- package/dist/{project-DGQAe9G9.js → dialecte-gIPrRzni.js} +7225 -7511
- package/dist/document/bind-extensions.d.ts +4 -1
- package/dist/document/bind-extensions.d.ts.map +1 -1
- package/dist/document/document.d.ts +58 -5
- package/dist/document/document.d.ts.map +1 -1
- package/dist/document/progress/progress.types.d.ts +21 -4
- package/dist/document/progress/progress.types.d.ts.map +1 -1
- package/dist/document/query/find/ancestor/find-ancestor.d.ts +2 -0
- package/dist/document/query/find/ancestor/find-ancestor.d.ts.map +1 -1
- package/dist/document/query/find/by-attribute/find-by-attributes.d.ts +4 -0
- package/dist/document/query/find/by-attribute/find-by-attributes.d.ts.map +1 -1
- package/dist/document/query/find/descendant/find-descendant.d.ts +2 -0
- package/dist/document/query/find/descendant/find-descendant.d.ts.map +1 -1
- package/dist/document/query/get/attribute/get-attribute.d.ts +4 -0
- package/dist/document/query/get/attribute/get-attribute.d.ts.map +1 -1
- package/dist/document/query/get/attribute/get-attributes.d.ts +4 -0
- package/dist/document/query/get/attribute/get-attributes.d.ts.map +1 -1
- package/dist/document/query/get/definition/get-definition.d.ts +2 -0
- package/dist/document/query/get/definition/get-definition.d.ts.map +1 -1
- package/dist/document/query/get/record/get-child.d.ts +2 -0
- package/dist/document/query/get/record/get-child.d.ts.map +1 -1
- package/dist/document/query/get/record/get-children.d.ts +2 -0
- package/dist/document/query/get/record/get-children.d.ts.map +1 -1
- package/dist/document/query/get/record/get-record.d.ts +2 -0
- package/dist/document/query/get/record/get-record.d.ts.map +1 -1
- package/dist/document/query/get/record/get-records-by-tagname.d.ts +2 -0
- package/dist/document/query/get/record/get-records-by-tagname.d.ts.map +1 -1
- package/dist/document/query/get/record/get-records.d.ts +2 -0
- package/dist/document/query/get/record/get-records.d.ts.map +1 -1
- package/dist/document/query/get/record/load-live-records.d.ts +2 -0
- package/dist/document/query/get/record/load-live-records.d.ts.map +1 -1
- package/dist/document/query/get/record/resolve-record.d.ts +2 -0
- package/dist/document/query/get/record/resolve-record.d.ts.map +1 -1
- package/dist/document/query/get/record/staged-lookup.d.ts +4 -0
- package/dist/document/query/get/record/staged-lookup.d.ts.map +1 -1
- package/dist/document/query/get/tree/get-tree.d.ts +6 -0
- package/dist/document/query/get/tree/get-tree.d.ts.map +1 -1
- package/dist/document/query/main.d.ts +50 -15
- package/dist/document/query/main.d.ts.map +1 -1
- package/dist/document/query/snapshot/collect-snapshot.d.ts +2 -0
- package/dist/document/query/snapshot/collect-snapshot.d.ts.map +1 -1
- package/dist/document/query/snapshot/get-snapshot.d.ts +2 -0
- package/dist/document/query/snapshot/get-snapshot.d.ts.map +1 -1
- package/dist/document/query/snapshot/records-to-tree.d.ts +2 -0
- package/dist/document/query/snapshot/records-to-tree.d.ts.map +1 -1
- package/dist/document/query/tree-filter/omit.d.ts +8 -0
- package/dist/document/query/tree-filter/omit.d.ts.map +1 -1
- package/dist/document/query/tree-filter/order.d.ts +5 -2
- package/dist/document/query/tree-filter/order.d.ts.map +1 -1
- package/dist/document/query/tree-filter/unwrap.d.ts +2 -0
- package/dist/document/query/tree-filter/unwrap.d.ts.map +1 -1
- package/dist/document/staged-operations.d.ts +5 -1
- package/dist/document/staged-operations.d.ts.map +1 -1
- package/dist/document/transaction/clone/clone.d.ts +2 -0
- package/dist/document/transaction/clone/clone.d.ts.map +1 -1
- package/dist/document/transaction/commit/commit.d.ts.map +1 -1
- package/dist/document/transaction/commit/merge-operations.d.ts +1 -1
- package/dist/document/transaction/commit/merge-operations.d.ts.map +1 -1
- package/dist/document/transaction/commit/summarize-operations.d.ts +16 -0
- package/dist/document/transaction/commit/summarize-operations.d.ts.map +1 -0
- package/dist/document/transaction/commit/summarize-operations.types.d.ts +17 -0
- package/dist/document/transaction/commit/summarize-operations.types.d.ts.map +1 -0
- package/dist/document/transaction/create/create.d.ts +2 -0
- package/dist/document/transaction/create/create.d.ts.map +1 -1
- package/dist/document/transaction/guard.d.ts +5 -0
- package/dist/document/transaction/guard.d.ts.map +1 -1
- package/dist/document/transaction/index.d.ts +2 -0
- package/dist/document/transaction/index.d.ts.map +1 -1
- package/dist/document/transaction/main.d.ts +46 -16
- package/dist/document/transaction/main.d.ts.map +1 -1
- package/dist/document/transaction/stage-operations.d.ts.map +1 -1
- package/dist/document/transaction/update/update.d.ts +2 -0
- package/dist/document/transaction/update/update.d.ts.map +1 -1
- package/dist/document/types.d.ts +3 -5
- package/dist/document/types.d.ts.map +1 -1
- package/dist/engine-store-CIEqgPUb.js +348 -0
- package/dist/engine.constants-DBMjMmV9.js +98 -0
- package/dist/engine.d.ts +9 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +15805 -0
- package/dist/errors/codes.d.ts +455 -0
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/errors/errors.constants.d.ts +3 -0
- package/dist/errors/errors.constants.d.ts.map +1 -0
- package/dist/errors/errors.d.ts +10 -0
- package/dist/errors/errors.d.ts.map +1 -1
- package/dist/errors/types.d.ts +14 -0
- package/dist/errors/types.d.ts.map +1 -1
- package/dist/helpers/assert-fixed.d.ts +3 -1
- package/dist/helpers/assert-fixed.d.ts.map +1 -1
- package/dist/helpers/assert-xml-characters.d.ts +35 -0
- package/dist/helpers/assert-xml-characters.d.ts.map +1 -0
- package/dist/helpers/assert-xml-characters.types.d.ts +26 -0
- package/dist/helpers/assert-xml-characters.types.d.ts.map +1 -0
- package/dist/helpers/assert-xsi-type.d.ts +4 -0
- package/dist/helpers/assert-xsi-type.d.ts.map +1 -1
- package/dist/helpers/converter.d.ts +21 -6
- package/dist/helpers/converter.d.ts.map +1 -1
- package/dist/helpers/evaluate-expectations.d.ts +21 -0
- package/dist/helpers/evaluate-expectations.d.ts.map +1 -0
- package/dist/helpers/evaluate-expectations.types.d.ts +31 -0
- package/dist/helpers/evaluate-expectations.types.d.ts.map +1 -0
- package/dist/helpers/guard.d.ts +24 -4
- package/dist/helpers/guard.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/merge-extensions.d.ts +2 -0
- package/dist/helpers/merge-extensions.d.ts.map +1 -1
- package/dist/helpers/read-attributes.d.ts +4 -0
- package/dist/helpers/read-attributes.d.ts.map +1 -1
- package/dist/helpers/standardizing.d.ts +10 -0
- package/dist/helpers/standardizing.d.ts.map +1 -1
- package/dist/helpers/strip-attributes.d.ts +2 -0
- package/dist/helpers/strip-attributes.d.ts.map +1 -1
- package/dist/helpers-DVShv41E.js +489 -0
- package/dist/helpers.js +3 -439
- package/dist/in-process-link-DBeAOZRp.js +2791 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -3
- package/dist/perf/create-perf.d.ts +8 -1
- package/dist/perf/create-perf.d.ts.map +1 -1
- package/dist/perf/index.d.ts +1 -1
- package/dist/perf/index.d.ts.map +1 -1
- package/dist/perf/noop-perf.d.ts.map +1 -1
- package/dist/perf/perf.types.d.ts +65 -6
- package/dist/perf/perf.types.d.ts.map +1 -1
- package/dist/project/index.d.ts +7 -4
- package/dist/project/index.d.ts.map +1 -1
- package/dist/project/io/export-blob.d.ts +5 -2
- package/dist/project/io/export-blob.d.ts.map +1 -1
- package/dist/project/io/export-document.d.ts +5 -4
- package/dist/project/io/export-document.d.ts.map +1 -1
- package/dist/project/io/index.d.ts +1 -1
- package/dist/project/io/index.d.ts.map +1 -1
- package/dist/project/io/init-empty-document.d.ts +2 -0
- package/dist/project/io/init-empty-document.d.ts.map +1 -1
- package/dist/project/io/resolve-config.d.ts +4 -0
- package/dist/project/io/resolve-config.d.ts.map +1 -0
- package/dist/project/io/run-export.d.ts +19 -0
- package/dist/project/io/run-export.d.ts.map +1 -0
- package/dist/project/io/run-export.types.d.ts +45 -0
- package/dist/project/io/run-export.types.d.ts.map +1 -0
- package/dist/project/io/run-import.d.ts +15 -0
- package/dist/project/io/run-import.d.ts.map +1 -0
- package/dist/project/io/run-import.types.d.ts +19 -0
- package/dist/project/io/run-import.types.d.ts.map +1 -0
- package/dist/project/io/store-runtime.constants.d.ts +6 -0
- package/dist/project/io/store-runtime.constants.d.ts.map +1 -0
- package/dist/project/io/store-runtime.d.ts +12 -0
- package/dist/project/io/store-runtime.d.ts.map +1 -0
- package/dist/project/io/store-runtime.types.d.ts +18 -0
- package/dist/project/io/store-runtime.types.d.ts.map +1 -0
- package/dist/project/project-channel.d.ts +11 -0
- package/dist/project/project-channel.d.ts.map +1 -0
- package/dist/project/project.constants.d.ts +12 -0
- package/dist/project/project.constants.d.ts.map +1 -0
- package/dist/project/project.d.ts +339 -25
- package/dist/project/project.d.ts.map +1 -1
- package/dist/project/state/document-lifecycle.d.ts +6 -0
- package/dist/project/state/document-lifecycle.d.ts.map +1 -0
- package/dist/project/state/document-state.d.ts +4 -0
- package/dist/project/state/document-state.d.ts.map +1 -1
- package/dist/project/types.d.ts +158 -48
- package/dist/project/types.d.ts.map +1 -1
- package/dist/project-key-Ch34EtFa.js +1435 -0
- package/dist/rolldown-runtime-CYdcPHCu.js +12 -0
- package/dist/running-operations-vnijBvn7.js +76 -0
- package/dist/same-json-value-C6kUaoyt.js +1603 -0
- package/dist/sqlite.d.ts +5 -0
- package/dist/sqlite.d.ts.map +1 -0
- package/dist/sqlite.js +2671 -0
- package/dist/sqlite3.wasm +0 -0
- package/dist/store/apply-record-patch.d.ts +13 -0
- package/dist/store/apply-record-patch.d.ts.map +1 -0
- package/dist/store/closing-connections.d.ts +7 -0
- package/dist/store/closing-connections.d.ts.map +1 -0
- package/dist/store/closing-connections.types.d.ts +13 -0
- package/dist/store/closing-connections.types.d.ts.map +1 -0
- package/dist/store/commit-progress.d.ts +10 -0
- package/dist/store/commit-progress.d.ts.map +1 -0
- package/dist/store/compare-by-id.d.ts +10 -0
- package/dist/store/compare-by-id.d.ts.map +1 -0
- package/dist/store/document-path.constants.d.ts +20 -0
- package/dist/store/document-path.constants.d.ts.map +1 -0
- package/dist/store/document-path.d.ts +75 -0
- package/dist/store/document-path.d.ts.map +1 -0
- package/dist/store/document-path.types.d.ts +11 -0
- package/dist/store/document-path.types.d.ts.map +1 -0
- package/dist/store/engine/client/check-engine-wire.d.ts +8 -0
- package/dist/store/engine/client/check-engine-wire.d.ts.map +1 -0
- package/dist/store/engine/client/client.constants.d.ts +30 -0
- package/dist/store/engine/client/client.constants.d.ts.map +1 -0
- package/dist/store/engine/client/client.types.d.ts +200 -0
- package/dist/store/engine/client/client.types.d.ts.map +1 -0
- package/dist/store/engine/client/engine-client.d.ts +15 -0
- package/dist/store/engine/client/engine-client.d.ts.map +1 -0
- package/dist/store/engine/client/engine-control.d.ts +16 -0
- package/dist/store/engine/client/engine-control.d.ts.map +1 -0
- package/dist/store/engine/client/heartbeat-watch.d.ts +17 -0
- package/dist/store/engine/client/heartbeat-watch.d.ts.map +1 -0
- package/dist/store/engine/client/hub-connector.d.ts +11 -0
- package/dist/store/engine/client/hub-connector.d.ts.map +1 -0
- package/dist/store/engine/client/hub-connector.types.d.ts +25 -0
- package/dist/store/engine/client/hub-connector.types.d.ts.map +1 -0
- package/dist/store/engine/client/worker-connector.d.ts +32 -0
- package/dist/store/engine/client/worker-connector.d.ts.map +1 -0
- package/dist/store/engine/creation-refusal.d.ts +10 -0
- package/dist/store/engine/creation-refusal.d.ts.map +1 -0
- package/dist/store/engine/dialecte-refusal.d.ts +18 -0
- package/dist/store/engine/dialecte-refusal.d.ts.map +1 -0
- package/dist/store/engine/engine-store.d.ts +163 -0
- package/dist/store/engine/engine-store.d.ts.map +1 -0
- package/dist/store/engine/engine-store.types.d.ts +53 -0
- package/dist/store/engine/engine-store.types.d.ts.map +1 -0
- package/dist/store/engine/engine.constants.d.ts +14 -0
- package/dist/store/engine/engine.constants.d.ts.map +1 -0
- package/dist/store/engine/engine.types.d.ts +165 -0
- package/dist/store/engine/engine.types.d.ts.map +1 -0
- package/dist/store/engine/host/engine-wire.d.ts +19 -0
- package/dist/store/engine/host/engine-wire.d.ts.map +1 -0
- package/dist/store/engine/host/heartbeat.d.ts +33 -0
- package/dist/store/engine/host/heartbeat.d.ts.map +1 -0
- package/dist/store/engine/host/host.constants.d.ts +13 -0
- package/dist/store/engine/host/host.constants.d.ts.map +1 -0
- package/dist/store/engine/host/host.types.d.ts +65 -0
- package/dist/store/engine/host/host.types.d.ts.map +1 -0
- package/dist/store/engine/host/store-events.d.ts +14 -0
- package/dist/store/engine/host/store-events.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-client.constants.d.ts +27 -0
- package/dist/store/engine/hub/hub-client.constants.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-client.d.ts +46 -0
- package/dist/store/engine/hub/hub-client.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-client.types.d.ts +208 -0
- package/dist/store/engine/hub/hub-client.types.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-protocol.types.d.ts +193 -0
- package/dist/store/engine/hub/hub-protocol.types.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-router.d.ts +9 -0
- package/dist/store/engine/hub/hub-router.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-shell.d.ts +13 -0
- package/dist/store/engine/hub/hub-shell.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-shell.types.d.ts +64 -0
- package/dist/store/engine/hub/hub-shell.types.d.ts.map +1 -0
- package/dist/store/engine/hub/hub.constants.d.ts +33 -0
- package/dist/store/engine/hub/hub.constants.d.ts.map +1 -0
- package/dist/store/engine/hub/hub.types.d.ts +305 -0
- package/dist/store/engine/hub/hub.types.d.ts.map +1 -0
- package/dist/store/engine/hub/hub.worker.d.ts +2 -0
- package/dist/store/engine/hub/hub.worker.d.ts.map +1 -0
- package/dist/store/engine/hub/realm-host.d.ts +10 -0
- package/dist/store/engine/hub/realm-host.d.ts.map +1 -0
- package/dist/store/engine/hub/realm-host.types.d.ts +78 -0
- package/dist/store/engine/hub/realm-host.types.d.ts.map +1 -0
- package/dist/store/engine/project-key.d.ts +15 -0
- package/dist/store/engine/project-key.d.ts.map +1 -0
- package/dist/store/engine/wire/error-envelope.d.ts +25 -0
- package/dist/store/engine/wire/error-envelope.d.ts.map +1 -0
- package/dist/store/engine/wire/wire-values.d.ts +33 -0
- package/dist/store/engine/wire/wire-values.d.ts.map +1 -0
- package/dist/store/engine/wire/wire.constants.d.ts +116 -0
- package/dist/store/engine/wire/wire.constants.d.ts.map +1 -0
- package/dist/store/engine/wire/wire.types.d.ts +119 -0
- package/dist/store/engine/wire/wire.types.d.ts.map +1 -0
- package/dist/store/hub-public.d.ts +33 -0
- package/dist/store/hub-public.d.ts.map +1 -0
- package/dist/store/ignore-destroy-outcome.d.ts +6 -0
- package/dist/store/ignore-destroy-outcome.d.ts.map +1 -0
- package/dist/store/in-memory/in-memory-state.d.ts +46 -0
- package/dist/store/in-memory/in-memory-state.d.ts.map +1 -0
- package/dist/store/in-memory/in-memory-store.constants.d.ts +7 -0
- package/dist/store/in-memory/in-memory-store.constants.d.ts.map +1 -0
- package/dist/store/in-memory/in-memory-store.d.ts +105 -17
- package/dist/store/in-memory/in-memory-store.d.ts.map +1 -1
- package/dist/store/in-memory/types.d.ts +55 -1
- package/dist/store/in-memory/types.d.ts.map +1 -1
- package/dist/store/index.d.ts +8 -2
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/json-values.constants.d.ts +18 -0
- package/dist/store/json-values.constants.d.ts.map +1 -0
- package/dist/store/json-values.d.ts +40 -0
- package/dist/store/json-values.d.ts.map +1 -0
- package/dist/store/json-values.types.d.ts +18 -0
- package/dist/store/json-values.types.d.ts.map +1 -0
- package/dist/store/local/dexie-store.constants.d.ts +20 -0
- package/dist/store/local/dexie-store.constants.d.ts.map +1 -0
- package/dist/store/local/dexie-store.d.ts +134 -5
- package/dist/store/local/dexie-store.d.ts.map +1 -1
- package/dist/store/local/types.d.ts +9 -0
- package/dist/store/local/types.d.ts.map +1 -1
- package/dist/store/lost-write.d.ts +32 -0
- package/dist/store/lost-write.d.ts.map +1 -0
- package/dist/store/lost-write.types.d.ts +4 -0
- package/dist/store/lost-write.types.d.ts.map +1 -0
- package/dist/store/open-connections.d.ts +4 -0
- package/dist/store/open-connections.d.ts.map +1 -0
- package/dist/store/open-connections.types.d.ts +17 -0
- package/dist/store/open-connections.types.d.ts.map +1 -0
- package/dist/store/own-import.d.ts +10 -0
- package/dist/store/own-import.d.ts.map +1 -0
- package/dist/store/project-name.d.ts +10 -0
- package/dist/store/project-name.d.ts.map +1 -0
- package/dist/store/resolve-store.d.ts +28 -4
- package/dist/store/resolve-store.d.ts.map +1 -1
- package/dist/store/running-operations.d.ts +7 -0
- package/dist/store/running-operations.d.ts.map +1 -0
- package/dist/store/running-operations.types.d.ts +10 -0
- package/dist/store/running-operations.types.d.ts.map +1 -0
- package/dist/store/same-json-value.d.ts +9 -0
- package/dist/store/same-json-value.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/in-process-link.d.ts +20 -0
- package/dist/store/sqlite/adapter/in-process-link.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/in-process-link.types.d.ts +21 -0
- package/dist/store/sqlite/adapter/in-process-link.types.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/realm-storage.d.ts +10 -0
- package/dist/store/sqlite/adapter/realm-storage.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-connector.d.ts +14 -0
- package/dist/store/sqlite/adapter/sqlite-connector.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts +4 -0
- package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts +8 -0
- package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts +5 -0
- package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts +8 -0
- package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts +5 -0
- package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts.map +1 -0
- package/dist/store/sqlite/engine/blobs.d.ts +55 -0
- package/dist/store/sqlite/engine/blobs.d.ts.map +1 -0
- package/dist/store/sqlite/engine/bulk-insert.d.ts +31 -0
- package/dist/store/sqlite/engine/bulk-insert.d.ts.map +1 -0
- package/dist/store/sqlite/engine/commit.d.ts +20 -0
- package/dist/store/sqlite/engine/commit.d.ts.map +1 -0
- package/dist/store/sqlite/engine/device-cache.d.ts +13 -0
- package/dist/store/sqlite/engine/device-cache.d.ts.map +1 -0
- package/dist/store/sqlite/engine/engine-errors.d.ts +26 -0
- package/dist/store/sqlite/engine/engine-errors.d.ts.map +1 -0
- package/dist/store/sqlite/engine/engine.constants.d.ts +144 -0
- package/dist/store/sqlite/engine/engine.constants.d.ts.map +1 -0
- package/dist/store/sqlite/engine/engine.types.d.ts +361 -0
- package/dist/store/sqlite/engine/engine.types.d.ts.map +1 -0
- package/dist/store/sqlite/engine/history.d.ts +114 -0
- package/dist/store/sqlite/engine/history.d.ts.map +1 -0
- package/dist/store/sqlite/engine/import-queue.d.ts +7 -0
- package/dist/store/sqlite/engine/import-queue.d.ts.map +1 -0
- package/dist/store/sqlite/engine/import-target.d.ts +23 -0
- package/dist/store/sqlite/engine/import-target.d.ts.map +1 -0
- package/dist/store/sqlite/engine/import-window.d.ts +23 -0
- package/dist/store/sqlite/engine/import-window.d.ts.map +1 -0
- package/dist/store/sqlite/engine/reclaim.d.ts +13 -0
- package/dist/store/sqlite/engine/reclaim.d.ts.map +1 -0
- package/dist/store/sqlite/engine/records.d.ts +117 -0
- package/dist/store/sqlite/engine/records.d.ts.map +1 -0
- package/dist/store/sqlite/engine/registry.d.ts +76 -0
- package/dist/store/sqlite/engine/registry.d.ts.map +1 -0
- package/dist/store/sqlite/engine/schema.d.ts +57 -0
- package/dist/store/sqlite/engine/schema.d.ts.map +1 -0
- package/dist/store/sqlite/engine/sqlite-engine.d.ts +14 -0
- package/dist/store/sqlite/engine/sqlite-engine.d.ts.map +1 -0
- package/dist/store/sqlite/engine/transaction.d.ts +12 -0
- package/dist/store/sqlite/engine/transaction.d.ts.map +1 -0
- package/dist/store/sqlite/list-projects.constants.d.ts +12 -0
- package/dist/store/sqlite/list-projects.constants.d.ts.map +1 -0
- package/dist/store/sqlite/list-projects.d.ts +22 -0
- package/dist/store/sqlite/list-projects.d.ts.map +1 -0
- package/dist/store/sqlite/list-projects.types.d.ts +28 -0
- package/dist/store/sqlite/list-projects.types.d.ts.map +1 -0
- package/dist/store/sqlite/load-sqlite.d.ts +11 -0
- package/dist/store/sqlite/load-sqlite.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/close-engine.d.ts +18 -0
- package/dist/store/sqlite/runtime/close-engine.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/install-pool.d.ts +94 -0
- package/dist/store/sqlite/runtime/install-pool.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/pool-header.d.ts +13 -0
- package/dist/store/sqlite/runtime/pool-header.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/progress-beat.d.ts +13 -0
- package/dist/store/sqlite/runtime/progress-beat.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/runtime.constants.d.ts +57 -0
- package/dist/store/sqlite/runtime/runtime.constants.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/runtime.types.d.ts +56 -0
- package/dist/store/sqlite/runtime/runtime.types.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts +16 -0
- package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite-store-of.d.ts +7 -0
- package/dist/store/sqlite/sqlite-store-of.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite-text.d.ts +20 -0
- package/dist/store/sqlite/sqlite-text.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite-wasm-url.d.ts +9 -0
- package/dist/store/sqlite/sqlite-wasm-url.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite.constants.d.ts +15 -0
- package/dist/store/sqlite/sqlite.constants.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite.types.d.ts +36 -0
- package/dist/store/sqlite/sqlite.types.d.ts.map +1 -0
- package/dist/store/sqlite-storage.constants.d.ts +14 -0
- package/dist/store/sqlite-storage.constants.d.ts.map +1 -0
- package/dist/store/sqlite-storage.d.ts +22 -0
- package/dist/store/sqlite-storage.d.ts.map +1 -0
- package/dist/store/sqlite-storage.types.d.ts +24 -0
- package/dist/store/sqlite-storage.types.d.ts.map +1 -0
- package/dist/store/store-errors.d.ts +51 -0
- package/dist/store/store-errors.d.ts.map +1 -0
- package/dist/store/store.constants.d.ts +15 -3
- package/dist/store/store.constants.d.ts.map +1 -1
- package/dist/store/store.types.d.ts +280 -16
- package/dist/store/store.types.d.ts.map +1 -1
- package/dist/store/stored-record.d.ts +16 -0
- package/dist/store/stored-record.d.ts.map +1 -0
- package/dist/store/unfinished-imports.d.ts +15 -0
- package/dist/store/unfinished-imports.d.ts.map +1 -0
- package/dist/store/write-outcome.d.ts +34 -0
- package/dist/store/write-outcome.d.ts.map +1 -0
- package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts +7 -0
- package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts.map +1 -0
- package/dist/test/assert-valid-xml/assert-valid-xml.d.ts +19 -18
- package/dist/test/assert-valid-xml/assert-valid-xml.d.ts.map +1 -1
- package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts +8 -4
- package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts.map +1 -1
- package/dist/test/assert-xml/assert-xml.constants.d.ts +25 -0
- package/dist/test/assert-xml/assert-xml.constants.d.ts.map +1 -0
- package/dist/test/assert-xml/assert-xml.d.ts +23 -34
- package/dist/test/assert-xml/assert-xml.d.ts.map +1 -1
- package/dist/test/assert-xml/assert-xml.types.d.ts +48 -0
- package/dist/test/assert-xml/assert-xml.types.d.ts.map +1 -0
- package/dist/test/assert-xml/describe-nearby.d.ts +16 -0
- package/dist/test/assert-xml/describe-nearby.d.ts.map +1 -0
- package/dist/test/assert-xml/describe-node-place.d.ts +15 -0
- package/dist/test/assert-xml/describe-node-place.d.ts.map +1 -0
- package/dist/test/assert-xml/index.d.ts +1 -1
- package/dist/test/assert-xml/index.d.ts.map +1 -1
- package/dist/test/assert-xml/query-failure-message.d.ts +24 -0
- package/dist/test/assert-xml/query-failure-message.d.ts.map +1 -0
- package/dist/test/assert-xml/read-xpath-step.d.ts +8 -0
- package/dist/test/assert-xml/read-xpath-step.d.ts.map +1 -0
- package/dist/test/assert-xml/xpath-parser.d.ts +2 -1
- package/dist/test/assert-xml/xpath-parser.d.ts.map +1 -1
- package/dist/test/config.d.ts +5 -0
- package/dist/test/config.d.ts.map +1 -1
- package/dist/test/constant.d.ts +2 -0
- package/dist/test/constant.d.ts.map +1 -1
- package/dist/test/create-test-dialecte.d.ts +32 -37
- package/dist/test/create-test-dialecte.d.ts.map +1 -1
- package/dist/test/create-test-dialecte.types.d.ts +99 -0
- package/dist/test/create-test-dialecte.types.d.ts.map +1 -0
- package/dist/test/create-test-helpers-internal.types.d.ts +19 -0
- package/dist/test/create-test-helpers-internal.types.d.ts.map +1 -0
- package/dist/test/create-test-helpers.d.ts +13 -0
- package/dist/test/create-test-helpers.d.ts.map +1 -0
- package/dist/test/create-test-helpers.types.d.ts +50 -0
- package/dist/test/create-test-helpers.types.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-constraint.d.ts +3 -0
- package/dist/test/fixtures/test-entry-scan-constraint.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-edges.types.d.ts +10 -0
- package/dist/test/fixtures/test-entry-scan-edges.types.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-recursive.d.ts +4 -0
- package/dist/test/fixtures/test-entry-scan-recursive.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts +15 -0
- package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-shapes.d.ts +14 -0
- package/dist/test/fixtures/test-entry-scan-shapes.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts +14 -0
- package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-tree.d.ts +3 -0
- package/dist/test/fixtures/test-entry-scan-tree.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan.d.ts +5 -0
- package/dist/test/fixtures/test-entry-scan.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan.types.d.ts +5 -0
- package/dist/test/fixtures/test-entry-scan.types.d.ts.map +1 -0
- package/dist/test/generated/definition.generated.d.ts +5 -0
- package/dist/test/generated/definition.generated.d.ts.map +1 -1
- package/dist/test/in-memory-storage.setup.d.ts +2 -0
- package/dist/test/in-memory-storage.setup.d.ts.map +1 -0
- package/dist/test/index.d.ts +6 -0
- package/dist/test/index.d.ts.map +1 -1
- package/dist/test/normalize-uuids.constants.d.ts +3 -0
- package/dist/test/normalize-uuids.constants.d.ts.map +1 -0
- package/dist/test/normalize-uuids.d.ts +12 -0
- package/dist/test/normalize-uuids.d.ts.map +1 -1
- package/dist/test/run-test-cases.d.ts +30 -11
- package/dist/test/run-test-cases.d.ts.map +1 -1
- package/dist/test/run-test-cases.type.d.ts +16 -0
- package/dist/test/run-test-cases.type.d.ts.map +1 -1
- package/dist/test/sqlite-storage.setup.d.ts +1 -0
- package/dist/test/sqlite-storage.setup.d.ts.map +1 -0
- package/dist/test/test-dialecte-setup.d.ts +31 -0
- package/dist/test/test-dialecte-setup.d.ts.map +1 -0
- package/dist/test/test-dialecte-setup.types.d.ts +29 -0
- package/dist/test/test-dialecte-setup.types.d.ts.map +1 -0
- package/dist/test/test-dialecte.d.ts +2722 -0
- package/dist/test/test-dialecte.d.ts.map +1 -0
- package/dist/test/test-dialecte.types.d.ts +3 -0
- package/dist/test/test-dialecte.types.d.ts.map +1 -0
- package/dist/test/test-dialecte.worker.d.ts +2 -0
- package/dist/test/test-dialecte.worker.d.ts.map +1 -0
- package/dist/test/test-entry-environment.constants.d.ts +27 -0
- package/dist/test/test-entry-environment.constants.d.ts.map +1 -0
- package/dist/test/test-record.d.ts +49 -1
- package/dist/test/test-record.d.ts.map +1 -1
- package/dist/test/test-storage/index.d.ts +5 -0
- package/dist/test/test-storage/index.d.ts.map +1 -0
- package/dist/test/test-storage/read-test-storage.d.ts +4 -0
- package/dist/test/test-storage/read-test-storage.d.ts.map +1 -0
- package/dist/test/test-storage/resolve-test-storage.d.ts +9 -0
- package/dist/test/test-storage/resolve-test-storage.d.ts.map +1 -0
- package/dist/test/test-storage/test-storage.constants.d.ts +9 -0
- package/dist/test/test-storage/test-storage.constants.d.ts.map +1 -0
- package/dist/test/test-storage/test-storage.types.d.ts +15 -0
- package/dist/test/test-storage/test-storage.types.d.ts.map +1 -0
- package/dist/test/test-storage/test-store-for.d.ts +19 -0
- package/dist/test/test-storage/test-store-for.d.ts.map +1 -0
- package/dist/test/test-storage/use-test-storage.d.ts +14 -0
- package/dist/test/test-storage/use-test-storage.d.ts.map +1 -0
- package/dist/test/test-timing.constants.d.ts +15 -0
- package/dist/test/test-timing.constants.d.ts.map +1 -0
- package/dist/test/xml/engine-console.d.ts +6 -0
- package/dist/test/xml/engine-console.d.ts.map +1 -0
- package/dist/test/xml/engine.d.ts +3 -0
- package/dist/test/xml/engine.d.ts.map +1 -0
- package/dist/test/xml/index.d.ts +8 -0
- package/dist/test/xml/index.d.ts.map +1 -0
- package/dist/test/xml/malformed-xml-error.d.ts +5 -0
- package/dist/test/xml/malformed-xml-error.d.ts.map +1 -0
- package/dist/test/xml/print-node.d.ts +7 -0
- package/dist/test/xml/print-node.d.ts.map +1 -0
- package/dist/test/xml/select-nodes.d.ts +14 -0
- package/dist/test/xml/select-nodes.d.ts.map +1 -0
- package/dist/test/xml/with-xml-document.constants.d.ts +7 -0
- package/dist/test/xml/with-xml-document.constants.d.ts.map +1 -0
- package/dist/test/xml/with-xml-document.d.ts +14 -0
- package/dist/test/xml/with-xml-document.d.ts.map +1 -0
- package/dist/test/xml/xml-query-refused-error.d.ts +13 -0
- package/dist/test/xml/xml-query-refused-error.d.ts.map +1 -0
- package/dist/test/xml/xml.constants.d.ts +16 -0
- package/dist/test/xml/xml.constants.d.ts.map +1 -0
- package/dist/test/xml/xml.types.d.ts +31 -0
- package/dist/test/xml/xml.types.d.ts.map +1 -0
- package/dist/test/xsd/test-ext.xsd +226 -0
- package/dist/test/xsd/test.xsd +528 -0
- package/dist/test.js +3427 -406
- package/dist/types/dialecte-config.d.ts +6 -0
- package/dist/types/dialecte-config.d.ts.map +1 -1
- package/dist/types/io.d.ts +33 -25
- package/dist/types/io.d.ts.map +1 -1
- package/dist/utils/attribute-rules.d.ts +16 -1
- package/dist/utils/attribute-rules.d.ts.map +1 -1
- package/dist/utils/child-occurrences.constants.d.ts +4 -0
- package/dist/utils/child-occurrences.constants.d.ts.map +1 -0
- package/dist/utils/child-occurrences.d.ts +17 -0
- package/dist/utils/child-occurrences.d.ts.map +1 -0
- package/dist/utils/child-occurrences.types.d.ts +6 -0
- package/dist/utils/child-occurrences.types.d.ts.map +1 -0
- package/dist/utils/datatype.d.ts +4 -0
- package/dist/utils/datatype.d.ts.map +1 -1
- package/dist/utils/format-xml.d.ts +4 -0
- package/dist/utils/format-xml.d.ts.map +1 -1
- package/dist/utils/index.d.ts +5 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/invariant.d.ts +2 -0
- package/dist/utils/invariant.d.ts.map +1 -1
- package/dist/utils/namespaces.d.ts +15 -1
- package/dist/utils/namespaces.d.ts.map +1 -1
- package/dist/utils/order-children.d.ts +14 -3
- package/dist/utils/order-children.d.ts.map +1 -1
- package/dist/utils/order-children.types.d.ts +10 -0
- package/dist/utils/order-children.types.d.ts.map +1 -0
- package/dist/utils/particle-occurrences.d.ts +4 -0
- package/dist/utils/particle-occurrences.d.ts.map +1 -0
- package/dist/utils/required-choices.d.ts +17 -0
- package/dist/utils/required-choices.d.ts.map +1 -0
- package/dist/utils/required-choices.types.d.ts +15 -0
- package/dist/utils/required-choices.types.d.ts.map +1 -0
- package/dist/utils/resolve-definition.d.ts +4 -0
- package/dist/utils/resolve-definition.d.ts.map +1 -1
- package/dist/utils/save-to-disk.constants.d.ts +3 -0
- package/dist/utils/save-to-disk.constants.d.ts.map +1 -0
- package/dist/utils/save-to-disk.d.ts +17 -5
- package/dist/utils/save-to-disk.d.ts.map +1 -1
- package/dist/utils/save-to-disk.types.d.ts +17 -0
- package/dist/utils/save-to-disk.types.d.ts.map +1 -0
- package/dist/utils/seeded-uuid.constants.d.ts +5 -0
- package/dist/utils/seeded-uuid.constants.d.ts.map +1 -0
- package/dist/utils/seeded-uuid.d.ts +15 -0
- package/dist/utils/seeded-uuid.d.ts.map +1 -0
- package/dist/utils/seeded-uuid.types.d.ts +8 -0
- package/dist/utils/seeded-uuid.types.d.ts.map +1 -0
- package/dist/utils/tell-listener.constants.d.ts +9 -0
- package/dist/utils/tell-listener.constants.d.ts.map +1 -0
- package/dist/utils/tell-listener.d.ts +24 -0
- package/dist/utils/tell-listener.d.ts.map +1 -0
- package/dist/utils/xml-characters.constants.d.ts +9 -0
- package/dist/utils/xml-characters.constants.d.ts.map +1 -0
- package/dist/utils/xml-characters.d.ts +8 -0
- package/dist/utils/xml-characters.d.ts.map +1 -0
- package/dist/utils/xml-whitespace.constants.d.ts +8 -0
- package/dist/utils/xml-whitespace.constants.d.ts.map +1 -0
- package/dist/utils/xml-whitespace.d.ts +19 -0
- package/dist/utils/xml-whitespace.d.ts.map +1 -0
- package/dist/utils/xsi-type.d.ts +4 -0
- package/dist/utils/xsi-type.d.ts.map +1 -1
- package/dist/utils/yield-to-queue.d.ts +6 -0
- package/dist/utils/yield-to-queue.d.ts.map +1 -0
- package/dist/utils-USNkj4sT.js +1275 -0
- package/dist/utils.js +1 -2
- package/dist/xml/build/document-root.d.ts +7 -0
- package/dist/xml/build/document-root.d.ts.map +1 -0
- package/dist/xml/build/index.d.ts +0 -5
- package/dist/xml/build/index.d.ts.map +1 -1
- package/dist/xml/build/record-element.d.ts +15 -0
- package/dist/xml/build/record-element.d.ts.map +1 -0
- package/dist/xml/build/record-element.types.d.ts +12 -0
- package/dist/xml/build/record-element.types.d.ts.map +1 -0
- package/dist/xml/build/write-xml-records.d.ts +7 -0
- package/dist/xml/build/write-xml-records.d.ts.map +1 -0
- package/dist/xml/build/write-xml-records.types.d.ts +11 -0
- package/dist/xml/build/write-xml-records.types.d.ts.map +1 -0
- package/dist/xml/build/xml-element.d.ts +79 -0
- package/dist/xml/build/xml-element.d.ts.map +1 -0
- package/dist/xml/build/xml-element.types.d.ts +34 -0
- package/dist/xml/build/xml-element.types.d.ts.map +1 -0
- package/dist/xml/build/xml-writer.constants.d.ts +24 -0
- package/dist/xml/build/xml-writer.constants.d.ts.map +1 -0
- package/dist/xml/build/xml-writer.d.ts +40 -0
- package/dist/xml/build/xml-writer.d.ts.map +1 -0
- package/dist/xml/build/xml-writer.types.d.ts +34 -0
- package/dist/xml/build/xml-writer.types.d.ts.map +1 -0
- package/dist/xml/dom/index.d.ts +3 -0
- package/dist/xml/dom/index.d.ts.map +1 -0
- package/dist/xml/dom/xml-document-from-file.d.ts +10 -0
- package/dist/xml/dom/xml-document-from-file.d.ts.map +1 -0
- package/dist/xml/dom/xml-document-from-file.types.d.ts +5 -0
- package/dist/xml/dom/xml-document-from-file.types.d.ts.map +1 -0
- package/dist/xml/index.d.ts +1 -0
- package/dist/xml/index.d.ts.map +1 -1
- package/dist/xml/inspect-xml.d.ts +2 -0
- package/dist/xml/inspect-xml.d.ts.map +1 -1
- package/dist/xml/parse/index.d.ts +1 -1
- package/dist/xml/parse/index.d.ts.map +1 -1
- package/dist/xml/parse/parse-xml-document.constants.d.ts +5 -0
- package/dist/xml/parse/parse-xml-document.constants.d.ts.map +1 -0
- package/dist/xml/parse/parse-xml-document.d.ts +13 -2
- package/dist/xml/parse/parse-xml-document.d.ts.map +1 -1
- package/dist/xml/parse/parse-xml-document.types.d.ts +12 -2
- package/dist/xml/parse/parse-xml-document.types.d.ts.map +1 -1
- package/dist/xml/parse/parser.constants.d.ts +7 -0
- package/dist/xml/parse/parser.constants.d.ts.map +1 -0
- package/dist/xml/parse/parser.d.ts +4 -2
- package/dist/xml/parse/parser.d.ts.map +1 -1
- package/dist/xml/parse/types.d.ts +2 -0
- package/dist/xml/parse/types.d.ts.map +1 -1
- package/package.json +88 -8
- package/skills/dialecte/SKILL.md +276 -0
- package/skills/dialecte/references/api.json +1830 -0
- package/skills/dialecte/references/api.md +557 -0
- package/skills/dialecte/references/core-api.md +204 -0
- package/skills/dialecte/references/testing.md +116 -0
- package/skills/dialecte-contributing/SKILL.md +328 -0
- package/skills/dialecte-contributing/references/code-rules.md +108 -0
- package/skills/dialecte-contributing/references/landing-changes.md +83 -0
- package/skills/dialecte-contributing/references/perf.md +39 -0
- package/skills/dialecte-contributing/references/traps.md +89 -0
- package/skills/dialecte-lot/SKILL.md +471 -0
- package/skills/dialecte-lot/references/briefs.md +152 -0
- package/skills/dialecte-lot/references/model-tiers.md +52 -0
- package/skills/dialecte-lot/references/retro.md +51 -0
- package/dist/project/io/import-document.d.ts +0 -7
- package/dist/project/io/import-document.d.ts.map +0 -1
- package/dist/test/assert-xml/types.d.ts +0 -2
- package/dist/test/assert-xml/types.d.ts.map +0 -1
- package/dist/utils-CTBHUFs9.js +0 -620
- package/dist/xml/build/build-xml-document.d.ts +0 -10
- package/dist/xml/build/build-xml-document.d.ts.map +0 -1
- package/dist/xml/build/build-xml-document.types.d.ts +0 -22
- package/dist/xml/build/build-xml-document.types.d.ts.map +0 -1
- package/dist/xml/build/download-file.d.ts +0 -7
- package/dist/xml/build/download-file.d.ts.map +0 -1
- package/dist/xml/build/formatter.d.ts +0 -2
- package/dist/xml/build/formatter.d.ts.map +0 -1
- package/dist/xml/build/serialize.d.ts +0 -11
- package/dist/xml/build/serialize.d.ts.map +0 -1
- package/dist/xml/build/serialize.types.d.ts +0 -12
- package/dist/xml/build/serialize.types.d.ts.map +0 -1
package/dist/errors/codes.d.ts
CHANGED
|
@@ -2,150 +2,605 @@ export declare const ERROR_CATALOG: {
|
|
|
2
2
|
readonly UNKNOWN: {
|
|
3
3
|
readonly code: "D0001";
|
|
4
4
|
readonly message: "An unknown error occurred";
|
|
5
|
+
readonly explanation: {
|
|
6
|
+
readonly when: "A transaction's callback threw something that is not a structured error (a plain `Error`, a value); the original is its `cause`.";
|
|
7
|
+
readonly fix: "Read `cause` and `detail`; raise your own failures with `throwDialecteError` or `invariant` so callers get a key.";
|
|
8
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
9
|
+
};
|
|
5
10
|
};
|
|
6
11
|
readonly ASSERTION_FAILED: {
|
|
7
12
|
readonly code: "D0002";
|
|
8
13
|
readonly message: "Assertion failed";
|
|
14
|
+
readonly explanation: {
|
|
15
|
+
readonly when: "An `invariant` without its own key failed, or core met a state it never expects (a catalogue built wrong, an inconsistent export, an engine running an sqlite-wasm older than 3.54.1, which removes a project on a failed install).";
|
|
16
|
+
readonly fix: "Read `detail`: it names the condition. Give `invariant` a key of its own when the failure is one a caller should handle.";
|
|
17
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
18
|
+
};
|
|
9
19
|
};
|
|
10
20
|
readonly STORE_CONNECTION_FAILED: {
|
|
11
21
|
readonly code: "D1001";
|
|
12
22
|
readonly message: "Failed to open database";
|
|
23
|
+
readonly explanation: {
|
|
24
|
+
readonly when: "The project's database could not be opened (the SQLite file or its worker did not start), or the origin's hub could not be joined: its SharedWorker failed to start or was blocked, or a child's port went unanswered past the welcome budget (its page unbound it).";
|
|
25
|
+
readonly fix: "Check the browser supports the store (OPFS, workers, SharedWorker for the hub) and that no other tab holds the project; reload, or open the project with another storage. A child view refused so is bound again by its page (`createHubPort`, then `adoptHubPort`).";
|
|
26
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
27
|
+
};
|
|
13
28
|
};
|
|
14
29
|
readonly STORE_COMMIT_FAILED: {
|
|
15
30
|
readonly code: "D1002";
|
|
16
31
|
readonly message: "Failed to commit changes";
|
|
32
|
+
readonly explanation: {
|
|
33
|
+
readonly when: "The database refused a transaction's write as it committed (the failure is the `cause`).";
|
|
34
|
+
readonly fix: "Read `cause`; a full disk or a lost connection are the usual reasons. Retry the transaction once the store is back.";
|
|
35
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
36
|
+
};
|
|
17
37
|
};
|
|
18
38
|
readonly STORE_RECORD_NOT_FOUND: {
|
|
19
39
|
readonly code: "D1003";
|
|
20
40
|
readonly message: "Record not found in database";
|
|
41
|
+
readonly explanation: {
|
|
42
|
+
readonly when: "A write updated or deleted a record the store does not hold in that document.";
|
|
43
|
+
readonly fix: "Read the record again before writing: it was deleted, or the ref names another document.";
|
|
44
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
45
|
+
};
|
|
21
46
|
};
|
|
22
47
|
readonly STORE_BULK_ADD_FAILED: {
|
|
23
48
|
readonly code: "D1004";
|
|
24
49
|
readonly message: "Failed to add records to database";
|
|
50
|
+
readonly explanation: {
|
|
51
|
+
readonly when: "The database refused to add a batch of records (import, commit); the failure is the `cause`.";
|
|
52
|
+
readonly fix: "Read `cause`; a full disk or a closed store are the usual reasons.";
|
|
53
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
54
|
+
};
|
|
25
55
|
};
|
|
26
56
|
readonly STORE_BULK_UPDATE_FAILED: {
|
|
27
57
|
readonly code: "D1005";
|
|
28
58
|
readonly message: "Failed to update records in database";
|
|
59
|
+
readonly explanation: {
|
|
60
|
+
readonly when: "The database refused to update a batch of records; the failure is the `cause`.";
|
|
61
|
+
readonly fix: "Read `cause`; a full disk or a closed store are the usual reasons.";
|
|
62
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
63
|
+
};
|
|
29
64
|
};
|
|
30
65
|
readonly STORE_DELETE_FAILED: {
|
|
31
66
|
readonly code: "D1006";
|
|
32
67
|
readonly message: "Failed to delete records from database";
|
|
68
|
+
readonly explanation: {
|
|
69
|
+
readonly when: "The database refused to delete records; the failure is the `cause`.";
|
|
70
|
+
readonly fix: "Read `cause`; a closed store is the usual reason.";
|
|
71
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
72
|
+
};
|
|
33
73
|
};
|
|
34
74
|
readonly STORE_NOT_WRITABLE: {
|
|
35
75
|
readonly code: "D1007";
|
|
36
76
|
readonly message: "Store is not writable";
|
|
77
|
+
readonly explanation: {
|
|
78
|
+
readonly when: "A write reached an in-memory store created read-only.";
|
|
79
|
+
readonly fix: "Create the project with `storage: { type: 'inMemory', writable: true }` when the script writes.";
|
|
80
|
+
readonly docs: "https://dialecte.github.io/core/api/project#in-memory-storage";
|
|
81
|
+
};
|
|
37
82
|
};
|
|
38
83
|
readonly STORE_BLOB_NOT_FOUND: {
|
|
39
84
|
readonly code: "D1008";
|
|
40
85
|
readonly message: "Blob not found";
|
|
86
|
+
readonly explanation: {
|
|
87
|
+
readonly when: "A blob operation named a blob id the store does not hold.";
|
|
88
|
+
readonly fix: "List the blobs (`project.getBlobsByDocument`) and use an id from there.";
|
|
89
|
+
readonly docs: "https://dialecte.github.io/core/api/project#blobs";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly STORE_DUPLICATE_ID: {
|
|
93
|
+
readonly code: "D1009";
|
|
94
|
+
readonly message: "An id is already taken in the store";
|
|
95
|
+
readonly explanation: {
|
|
96
|
+
readonly when: "A write would create a record (or register a document) with an id the store already holds; `meta.recordIds` lists them.";
|
|
97
|
+
readonly fix: "Let core mint ids (omit `id`), or pick ids no record of the document has; `deepClone` mints new ids itself.";
|
|
98
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
readonly STORE_CLOSED: {
|
|
102
|
+
readonly code: "D1010";
|
|
103
|
+
readonly message: "Store is closed";
|
|
104
|
+
readonly explanation: {
|
|
105
|
+
readonly when: "A store operation was still in flight when its store closed, or code holding the store itself (a custom store, a test context) called it after its `close()`. A project closed with `project.close()` answers `PROJECT_NOT_OPENED` instead.";
|
|
106
|
+
readonly fix: "Await every operation before closing the store or the project; open it again before using it.";
|
|
107
|
+
readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly STORE_READ_FAILED: {
|
|
111
|
+
readonly code: "D1011";
|
|
112
|
+
readonly message: "Failed to read from database";
|
|
113
|
+
readonly explanation: {
|
|
114
|
+
readonly when: "The SQLite store's database failed under a read; the failure is the `cause`.";
|
|
115
|
+
readonly fix: "Read `cause`; reopen the project. A lasting failure means the file is damaged: import its documents again.";
|
|
116
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly STORE_PROTOCOL_MISMATCH: {
|
|
120
|
+
readonly code: "D1012";
|
|
121
|
+
readonly message: "Another version of the library holds the shared store connection";
|
|
122
|
+
readonly explanation: {
|
|
123
|
+
readonly when: "Another version of the library already holds the shared store connection (another tab runs an older or newer build).";
|
|
124
|
+
readonly fix: "Close the other tabs of the app, or reload them all on the same version.";
|
|
125
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly STORE_REALM_ID_TAKEN: {
|
|
129
|
+
readonly code: "D1013";
|
|
130
|
+
readonly message: "A view with this id is already connected to the shared store";
|
|
131
|
+
readonly explanation: {
|
|
132
|
+
readonly when: "A view joined the shared store with an id another connected view already uses.";
|
|
133
|
+
readonly fix: "Give each view its own id; reload the page that reused one.";
|
|
134
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
readonly STORE_REALM_UNKNOWN: {
|
|
138
|
+
readonly code: "D1014";
|
|
139
|
+
readonly message: "The shared store does not know this view";
|
|
140
|
+
readonly explanation: {
|
|
141
|
+
readonly when: "A view spoke to the shared store without having joined it, or after it left.";
|
|
142
|
+
readonly fix: "Join (open the project) before reading or writing; reload a view that was disconnected.";
|
|
143
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly STORE_VALUE_NOT_JSON: {
|
|
147
|
+
readonly code: "D1015";
|
|
148
|
+
readonly message: "A value handed to the store is not JSON";
|
|
149
|
+
readonly explanation: {
|
|
150
|
+
readonly when: "A write handed the store a value that is not plain JSON (a function, a Map, undefined, a class instance) in a record or in document metadata.";
|
|
151
|
+
readonly fix: "Pass plain strings, numbers, booleans, arrays and objects; `detail` names the value and the field.";
|
|
152
|
+
readonly docs: "https://dialecte.github.io/core/io/#values-a-store-keeps";
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
readonly STORE_UNAVAILABLE: {
|
|
156
|
+
readonly code: "D1016";
|
|
157
|
+
readonly message: "This browser gives the page no storage for a project";
|
|
158
|
+
readonly explanation: {
|
|
159
|
+
readonly when: "The browser gives the page no private file system (a private window), or a worker no synchronous file access, so the SQLite project store cannot create, open or destroy the project; nothing is changed.";
|
|
160
|
+
readonly fix: "Open the app in a normal (not private) window of a browser that supports the origin private file system.";
|
|
161
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly STORE_QUOTA_EXCEEDED: {
|
|
165
|
+
readonly code: "D1017";
|
|
166
|
+
readonly message: "Not enough storage left for the project";
|
|
167
|
+
readonly explanation: {
|
|
168
|
+
readonly when: "The origin has too little storage left: for a new project's files, for an import (eight times the file's size and at least 1 MiB, less the project's free pages), or the file system refused a write for want of space; nothing of the call applied. The SQLite project store answers it; the local (IndexedDB) store answers the failing write's own error (`STORE_COMMIT_FAILED`, `STORE_BULK_ADD_FAILED`, `STORE_BULK_UPDATE_FAILED`; an import `IMPORT_FAILED`) until it moves to SQLite; the in-memory store has no limit.";
|
|
169
|
+
readonly fix: "Free storage for the origin (delete projects no longer needed) or import a smaller file, then try again; `meta.needed` and `meta.available` give the sizes when known.";
|
|
170
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly STORE_ENGINE_LOST: {
|
|
174
|
+
readonly code: "D1018";
|
|
175
|
+
readonly message: "The project engine stopped answering";
|
|
176
|
+
readonly explanation: {
|
|
177
|
+
readonly when: "A call to a project engine served from a worker lost that engine: it ended with what hosted it or gave no answer within its budget (`meta.reason` `'host-gone'`), it sent nothing for too long while the call waited (`'no-heartbeat'`, it may still finish), or the hub dropped this view with the page that bound it - frozen, gone, or unbinding it (`'realm-dropped'`: every call, `getWriteOutcome` too, is refused so until the view is bound again).";
|
|
178
|
+
readonly fix: "A Document's commit and a Project's import ask the outcome themselves, once: a commit that landed resolves; otherwise the refusal says `meta.outcome` - `not-applied` (make it again if wanted), `running` (a silent engine may still apply it: tell the user, read again later), `unknown` (it could not be asked), or `applied` for an import (its document is in the project; its diagnostics were lost). Elsewhere ask `getWriteOutcome({ writeId })` with `meta.writeId` before writing again; never retry a write blindly. For `'realm-dropped'`, every call is refused until the page binds the view again once it is back (`onRejoined`, then `createHubPort`, its port handed to the view's `adoptHubPort`).";
|
|
179
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly STORE_HUB_SPAWNERS_FIXED: {
|
|
183
|
+
readonly code: "D1019";
|
|
184
|
+
readonly message: "The page's hub connection runs another version of this dialecte's engine";
|
|
185
|
+
readonly explanation: {
|
|
186
|
+
readonly when: "`connectHub({ spawners })` named a dialecte whose engine the page's connection already runs at another version, or a project was opened (or destroyed by name) on `sqlite` from a factory of such a version (the project offers its engine to the hub as it opens): a page runs one version of each dialecte's engine (two would split a project's views between two engines). A later call adds the engines of dialectes the page does not run yet. `meta.spawners` names the dialectes (id and version) refused; nothing of the call was added, nothing opened.";
|
|
187
|
+
readonly fix: "Ship one version of each dialecte in the app: register each dialecte's `factory.spawner` from the copy the app opens its projects with.";
|
|
188
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
189
|
+
};
|
|
41
190
|
};
|
|
42
191
|
readonly ELEMENT_NOT_FOUND: {
|
|
43
192
|
readonly code: "D2001";
|
|
44
193
|
readonly message: "Element not found";
|
|
194
|
+
readonly explanation: {
|
|
195
|
+
readonly when: "A ref names an element the document does not hold (deleted, never created, or from another document).";
|
|
196
|
+
readonly fix: "Read the ref from a query in the same document (`getRecord`, `findDescendants`) instead of keeping an old one.";
|
|
197
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
198
|
+
};
|
|
45
199
|
};
|
|
46
200
|
readonly ROOT_NOT_FOUND: {
|
|
47
201
|
readonly code: "D2002";
|
|
48
202
|
readonly message: "Root element not found";
|
|
203
|
+
readonly explanation: {
|
|
204
|
+
readonly when: "The document holds no root element of the dialecte's root tag (an empty or foreign document).";
|
|
205
|
+
readonly fix: "Import a file whose root is the dialecte's root element, or create the document with `project.initEmptyDocument`.";
|
|
206
|
+
readonly docs: "https://dialecte.github.io/core/api/project#initemptydocument";
|
|
207
|
+
};
|
|
49
208
|
};
|
|
50
209
|
readonly DUPLICATE_ID: {
|
|
51
210
|
readonly code: "D2003";
|
|
52
211
|
readonly message: "Duplicate element ID";
|
|
212
|
+
readonly explanation: {
|
|
213
|
+
readonly when: "Not raised by core itself: a dialecte or app code raises it when two elements carry the same id.";
|
|
214
|
+
readonly fix: "Give each element its own id; let core mint them.";
|
|
215
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
216
|
+
};
|
|
53
217
|
};
|
|
54
218
|
readonly ELEMENT_TAGNAME_MISMATCH: {
|
|
55
219
|
readonly code: "D2004";
|
|
56
220
|
readonly message: "Element tagName does not match the expected type";
|
|
221
|
+
readonly explanation: {
|
|
222
|
+
readonly when: "A ref's `tagName` is not the tag of the record its id names.";
|
|
223
|
+
readonly fix: "Build refs with `toRef(record)` from a record you read, never by hand with a guessed tag.";
|
|
224
|
+
readonly docs: "https://dialecte.github.io/core/api/transaction#reforrecord";
|
|
225
|
+
};
|
|
57
226
|
};
|
|
58
227
|
readonly INVALID_PARENT_CHILD: {
|
|
59
228
|
readonly code: "D3001";
|
|
60
229
|
readonly message: "Invalid parent-child relationship";
|
|
230
|
+
readonly explanation: {
|
|
231
|
+
readonly when: "Not raised by core itself: a dialecte or app code raises it when an element is placed under a parent the schema does not admit.";
|
|
232
|
+
readonly fix: "Read the parent's children in the definition (`query.getDefinition`) and add the element under an admitted parent.";
|
|
233
|
+
readonly docs: "https://dialecte.github.io/core/api/transaction#addchild";
|
|
234
|
+
};
|
|
61
235
|
};
|
|
62
236
|
readonly INVALID_ATTRIBUTE: {
|
|
63
237
|
readonly code: "D3002";
|
|
64
238
|
readonly message: "Invalid attribute for element";
|
|
239
|
+
readonly explanation: {
|
|
240
|
+
readonly when: "Not raised by core itself: a dialecte or app code raises it for an attribute the element does not declare.";
|
|
241
|
+
readonly fix: "Use an attribute the element's definition lists.";
|
|
242
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
243
|
+
};
|
|
65
244
|
};
|
|
66
245
|
readonly PROTECTED_ROOT: {
|
|
67
246
|
readonly code: "D3003";
|
|
68
247
|
readonly message: "Root element cannot be deleted";
|
|
248
|
+
readonly explanation: {
|
|
249
|
+
readonly when: "A transaction tried to delete the document's root element.";
|
|
250
|
+
readonly fix: "Delete the root's children instead, or remove the whole document with `project.removeDocument`.";
|
|
251
|
+
readonly docs: "https://dialecte.github.io/core/api/transaction#delete";
|
|
252
|
+
};
|
|
69
253
|
};
|
|
70
254
|
readonly REQUIRED_ATTRIBUTE_MISSING: {
|
|
71
255
|
readonly code: "D3004";
|
|
72
256
|
readonly message: "Required attribute is missing";
|
|
257
|
+
readonly explanation: {
|
|
258
|
+
readonly when: "Not raised by core itself: a dialecte or app code raises it when a required attribute is absent.";
|
|
259
|
+
readonly fix: "Give the attribute a value when creating the element.";
|
|
260
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
261
|
+
};
|
|
73
262
|
};
|
|
74
263
|
readonly UNIQUE_CONSTRAINT_VIOLATION: {
|
|
75
264
|
readonly code: "D3005";
|
|
76
265
|
readonly message: "Value is already used within its scope";
|
|
266
|
+
readonly explanation: {
|
|
267
|
+
readonly when: "Not raised by core itself: a dialecte raises it when a value is already used within the scope where it must be unique.";
|
|
268
|
+
readonly fix: "Pick another value, or let the dialecte's hook name the element.";
|
|
269
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
270
|
+
};
|
|
77
271
|
};
|
|
78
272
|
readonly UNKNOWN_NAMESPACE_PREFIX: {
|
|
79
273
|
readonly code: "D3006";
|
|
80
274
|
readonly message: "Unknown namespace prefix on attribute — pass it explicitly as { name, namespace: { prefix, uri } }";
|
|
275
|
+
readonly explanation: {
|
|
276
|
+
readonly when: "An attribute was written with a namespace key or prefix the dialecte does not declare.";
|
|
277
|
+
readonly fix: "Use a namespace key of the dialecte's config, or pass the namespace in full: `{ name, namespace: { prefix, uri } }`.";
|
|
278
|
+
readonly docs: "https://dialecte.github.io/core/api/transaction#addchild";
|
|
279
|
+
};
|
|
81
280
|
};
|
|
82
281
|
readonly PREFIXED_ATTRIBUTE_NAME: {
|
|
83
282
|
readonly code: "D3007";
|
|
84
283
|
readonly message: "Authored attribute name must be a local name — pass the namespace separately as { name, namespace }, not a prefixed name";
|
|
284
|
+
readonly explanation: {
|
|
285
|
+
readonly when: "An attribute was written with a prefixed name (`ext:attr`) on create or update.";
|
|
286
|
+
readonly fix: "Pass the local name and the namespace apart: `{ name: 'attr', namespace }`.";
|
|
287
|
+
readonly docs: "https://dialecte.github.io/core/api/transaction#addchild";
|
|
288
|
+
};
|
|
85
289
|
};
|
|
86
290
|
readonly FIXED_VALUE_VIOLATION: {
|
|
87
291
|
readonly code: "D3008";
|
|
88
292
|
readonly message: "Attribute value differs from the schema-fixed value";
|
|
293
|
+
readonly explanation: {
|
|
294
|
+
readonly when: "A write gave an attribute another value than the one the schema fixes.";
|
|
295
|
+
readonly fix: "Leave the attribute out (core writes the fixed value) or give exactly the fixed value; `getAttributeRules` reads it.";
|
|
296
|
+
readonly docs: "https://dialecte.github.io/core/api/transaction#addchild";
|
|
297
|
+
};
|
|
89
298
|
};
|
|
90
299
|
readonly XSI_TYPE_REQUIRED: {
|
|
91
300
|
readonly code: "D3009";
|
|
92
301
|
readonly message: "The element is declared with an abstract type: name a type with xsi:type";
|
|
302
|
+
readonly explanation: {
|
|
303
|
+
readonly when: "An element declared with an abstract type was created without naming a concrete type in `xsi:type`.";
|
|
304
|
+
readonly fix: "Name one of the admitted types: `attributes: { 'xsi:type': '<Type>' }`; `admittedXsiTypes` lists them.";
|
|
305
|
+
readonly docs: "https://dialecte.github.io/core/api/transaction#addchild";
|
|
306
|
+
};
|
|
93
307
|
};
|
|
94
308
|
readonly XSI_TYPE_NOT_ADMITTED: {
|
|
95
309
|
readonly code: "D3010";
|
|
96
310
|
readonly message: "The element may not take the type named with xsi:type";
|
|
311
|
+
readonly explanation: {
|
|
312
|
+
readonly when: "A write named in `xsi:type` a type the element may not take.";
|
|
313
|
+
readonly fix: "Pick a type from `admittedXsiTypes` for that element.";
|
|
314
|
+
readonly docs: "https://dialecte.github.io/core/api/transaction#addchild";
|
|
315
|
+
};
|
|
97
316
|
};
|
|
98
317
|
readonly XSI_TYPE_CHANGE_LEAVES_CONTENT: {
|
|
99
318
|
readonly code: "D3011";
|
|
100
319
|
readonly message: "The new xsi:type does not admit content the element still holds";
|
|
320
|
+
readonly explanation: {
|
|
321
|
+
readonly when: "An update changed `xsi:type` to a type that does not admit attributes or children the element still holds.";
|
|
322
|
+
readonly fix: "Remove that content in the same transaction before changing the type, or pick a type that admits it.";
|
|
323
|
+
readonly docs: "https://dialecte.github.io/core/api/transaction#update";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly XML_CHARACTER_NOT_ALLOWED: {
|
|
327
|
+
readonly code: "D3012";
|
|
328
|
+
readonly message: "The text holds a character XML does not allow";
|
|
329
|
+
readonly explanation: {
|
|
330
|
+
readonly when: "A write, an import session's own writes or an export met a character XML does not allow (a control character below U+0020 but tab, line feed and carriage return, U+FFFE, U+FFFF) in a value, a name, a prefix, a namespace URI or an id; nothing was written, no file.";
|
|
331
|
+
readonly fix: "Remove or replace the character named in `meta.character` at `meta.part` of the record `meta.recordId` before writing or exporting it.";
|
|
332
|
+
readonly docs: "https://dialecte.github.io/core/io/#values-a-store-keeps";
|
|
333
|
+
};
|
|
101
334
|
};
|
|
102
335
|
readonly ALREADY_COMMITTED: {
|
|
103
336
|
readonly code: "D4001";
|
|
104
337
|
readonly message: "Transaction already committed";
|
|
338
|
+
readonly explanation: {
|
|
339
|
+
readonly when: "Not raised by core today: kept for a transaction used after its commit.";
|
|
340
|
+
readonly fix: "Start a new `doc.transaction` for further writes.";
|
|
341
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
342
|
+
};
|
|
105
343
|
};
|
|
106
344
|
readonly ALREADY_FAILED: {
|
|
107
345
|
readonly code: "D4002";
|
|
108
346
|
readonly message: "Transaction already failed";
|
|
347
|
+
readonly explanation: {
|
|
348
|
+
readonly when: "Not raised by core today: kept for a transaction used after it failed.";
|
|
349
|
+
readonly fix: "Start a new `doc.transaction`; the failed one wrote nothing.";
|
|
350
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
351
|
+
};
|
|
109
352
|
};
|
|
110
353
|
readonly DATABASE_COMMIT_ERROR: {
|
|
111
354
|
readonly code: "D4003";
|
|
112
355
|
readonly message: "An error occurred while committing changes to the database";
|
|
356
|
+
readonly explanation: {
|
|
357
|
+
readonly when: "Not raised by core today: store commit failures are `STORE_COMMIT_FAILED`.";
|
|
358
|
+
readonly fix: "Read `cause`; see `STORE_COMMIT_FAILED`.";
|
|
359
|
+
readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
|
|
360
|
+
};
|
|
113
361
|
};
|
|
114
362
|
readonly CONCURRENT_TRANSACTION: {
|
|
115
363
|
readonly code: "D4004";
|
|
116
364
|
readonly message: "A transaction is already in progress. Concurrent transactions are not supported yet — serialize them or implement a transaction queue.";
|
|
365
|
+
readonly explanation: {
|
|
366
|
+
readonly when: "A `doc.transaction` started on a Document while another transaction or `doc.prepare` was still running on it (a missing `await`, or a nested transaction).";
|
|
367
|
+
readonly fix: "Await each transaction before the next; inside a transaction, write through its `tx`, never through `doc.transaction` again.";
|
|
368
|
+
readonly docs: "https://dialecte.github.io/core/api/document";
|
|
369
|
+
};
|
|
117
370
|
};
|
|
118
371
|
readonly EXPORT_ROOT_NOT_FOUND: {
|
|
119
372
|
readonly code: "D5001";
|
|
120
373
|
readonly message: "Root element not found in records during export";
|
|
374
|
+
readonly explanation: {
|
|
375
|
+
readonly when: "The export found no root record in the document.";
|
|
376
|
+
readonly fix: "The document is empty or damaged: import it again, or create it with `project.initEmptyDocument`.";
|
|
377
|
+
readonly docs: "https://dialecte.github.io/core/api/project#export";
|
|
378
|
+
};
|
|
121
379
|
};
|
|
122
380
|
readonly EXPORT_ORPHAN_CHILD_REF: {
|
|
123
381
|
readonly code: "D5002";
|
|
124
382
|
readonly message: "Parent references non-existent child record";
|
|
383
|
+
readonly explanation: {
|
|
384
|
+
readonly when: "The export met a parent whose list of children names a record that does not exist.";
|
|
385
|
+
readonly fix: "A hook or a raw write left a dangling child ref: a hook that deletes must also return the parent's `updated` operation.";
|
|
386
|
+
readonly docs: "https://dialecte.github.io/core/api/project#export";
|
|
387
|
+
};
|
|
125
388
|
};
|
|
126
389
|
readonly PARSE_ERROR: {
|
|
127
390
|
readonly code: "D5003";
|
|
128
391
|
readonly message: "Failed to parse XML";
|
|
392
|
+
readonly explanation: {
|
|
393
|
+
readonly when: "The file given to import (or to `parseXmlDocument`) is not well-formed XML.";
|
|
394
|
+
readonly fix: "Fix the XML where `detail` points (line and column); check the file's encoding.";
|
|
395
|
+
readonly docs: "https://dialecte.github.io/core/api/project#import";
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
readonly IMPORT_FAILED: {
|
|
399
|
+
readonly code: "D5004";
|
|
400
|
+
readonly message: "Failed to import the file";
|
|
401
|
+
readonly explanation: {
|
|
402
|
+
readonly when: "Importing a file failed after it was parsed (a hook threw, the store refused the records); nothing of the file remains.";
|
|
403
|
+
readonly fix: "Read `cause` and `detail`; an import hook must not read the store or throw on data it can report as a diagnostic.";
|
|
404
|
+
readonly docs: "https://dialecte.github.io/core/api/project#import";
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
readonly IMPORT_ABORTED: {
|
|
408
|
+
readonly code: "D5005";
|
|
409
|
+
readonly message: "The import was aborted";
|
|
410
|
+
readonly explanation: {
|
|
411
|
+
readonly when: "The import's `signal` was aborted; nothing of the file remains.";
|
|
412
|
+
readonly fix: "Nothing to fix when the abort was wanted; import the file again otherwise.";
|
|
413
|
+
readonly docs: "https://dialecte.github.io/core/api/project#import";
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
readonly EXPORT_CONFLICT: {
|
|
417
|
+
readonly code: "D5006";
|
|
418
|
+
readonly message: "The document changed while it was exported";
|
|
419
|
+
readonly explanation: {
|
|
420
|
+
readonly when: "The document was written twice while it was being exported, so no consistent file could be read.";
|
|
421
|
+
readonly fix: "Export when no transaction or import is writing the document, or retry.";
|
|
422
|
+
readonly docs: "https://dialecte.github.io/core/api/project#export";
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
readonly EXPORT_ABORTED: {
|
|
426
|
+
readonly code: "D5007";
|
|
427
|
+
readonly message: "The export was aborted";
|
|
428
|
+
readonly explanation: {
|
|
429
|
+
readonly when: "The export's `signal` was aborted.";
|
|
430
|
+
readonly fix: "Nothing to fix when the abort was wanted; export again otherwise.";
|
|
431
|
+
readonly docs: "https://dialecte.github.io/core/api/project#export";
|
|
432
|
+
};
|
|
129
433
|
};
|
|
130
434
|
readonly EXTENSION_METHOD_COLLISION: {
|
|
131
435
|
readonly code: "D6001";
|
|
132
436
|
readonly message: "Extension method name collision detected";
|
|
437
|
+
readonly explanation: {
|
|
438
|
+
readonly when: "Two extension modules merged under one key define a method of the same name.";
|
|
439
|
+
readonly fix: "Rename your method, or put your module under a key of its own.";
|
|
440
|
+
readonly docs: "https://dialecte.github.io/core/guide/extensions/#registering-extensions";
|
|
441
|
+
};
|
|
133
442
|
};
|
|
134
443
|
readonly UNKNOWN_CONFIG_KEY: {
|
|
135
444
|
readonly code: "D7001";
|
|
136
445
|
readonly message: "Unknown config key";
|
|
446
|
+
readonly explanation: {
|
|
447
|
+
readonly when: "A document, a test or a declaration named a config key the dialecte does not declare.";
|
|
448
|
+
readonly fix: "Use a key of the dialecte's `configs` (its `defaultConfigKey` when in doubt).";
|
|
449
|
+
readonly docs: "https://dialecte.github.io/core/api/dialecte#definedialecte";
|
|
450
|
+
};
|
|
137
451
|
};
|
|
138
452
|
readonly DOCUMENT_NOT_REGISTERED: {
|
|
139
453
|
readonly code: "D7002";
|
|
140
454
|
readonly message: "Document not registered in project";
|
|
455
|
+
readonly explanation: {
|
|
456
|
+
readonly when: "A document id names no document of the open project (removed, or from another project).";
|
|
457
|
+
readonly fix: "Use an id from `project.getDocuments()` or from the import result.";
|
|
458
|
+
readonly docs: "https://dialecte.github.io/core/api/project#document-access";
|
|
459
|
+
};
|
|
141
460
|
};
|
|
142
461
|
readonly PROJECT_NOT_OPENED: {
|
|
143
462
|
readonly code: "D7003";
|
|
144
463
|
readonly message: "Project not opened";
|
|
464
|
+
readonly explanation: {
|
|
465
|
+
readonly when: "The project was used before `open(name)` resolved, or once `close()`, `destroy()` or another `open()` was called on it - a batch import's file whose turn came after that is refused the same.";
|
|
466
|
+
readonly fix: "Keep the instance and await its `open(name)` before using the project; open it again after `close()` or `destroy()`, and await an `open()` of another project before using the Project again.";
|
|
467
|
+
readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
|
|
468
|
+
};
|
|
145
469
|
};
|
|
146
470
|
readonly BLOB_NOT_FOUND: {
|
|
147
471
|
readonly code: "D7004";
|
|
148
472
|
readonly message: "Blob not found in store";
|
|
473
|
+
readonly explanation: {
|
|
474
|
+
readonly when: "`project.exportBlob` named a blob the project does not hold.";
|
|
475
|
+
readonly fix: "Use an id from `project.getBlobsByDocument` or `getStandaloneBlobs`.";
|
|
476
|
+
readonly docs: "https://dialecte.github.io/core/api/project#blobs";
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
readonly PROJECT_LAYOUT_OUTDATED: {
|
|
480
|
+
readonly code: "D7005";
|
|
481
|
+
readonly message: "Project stored by another version of the library";
|
|
482
|
+
readonly explanation: {
|
|
483
|
+
readonly when: "The project file was stored by another version of the library (another layout); nothing was written to it.";
|
|
484
|
+
readonly fix: "Delete the project and import its files again with this version.";
|
|
485
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
readonly PROJECT_ENGINE_UNAVAILABLE: {
|
|
489
|
+
readonly code: "D7006";
|
|
490
|
+
readonly message: "No view can start the project engine";
|
|
491
|
+
readonly explanation: {
|
|
492
|
+
readonly when: "The project's engine could not be started or reached: its worker failed to load or never answered its open within the open budget; through the origin's hub, no open view offers an engine for the project's dialecte, or the engine never said it opened; a destroy still running past the open budget, or one asked by a page suspended before the hub granted it.";
|
|
493
|
+
readonly fix: "Keep one tab of the app open and reload; check the dialecte's `engineUrl` points at its worker and that it loads (the console names a script that fails); a destroy refused so is asked again once the project is closed elsewhere.";
|
|
494
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
readonly PROJECT_ENGINE_BUSY: {
|
|
498
|
+
readonly code: "D7007";
|
|
499
|
+
readonly message: "The project is still held by another engine";
|
|
500
|
+
readonly explanation: {
|
|
501
|
+
readonly when: "Another engine still holds the project (another tab or a worker that did not stop).";
|
|
502
|
+
readonly fix: "Close the other tabs of the app, then open the project again.";
|
|
503
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
readonly PROJECT_DIALECTE_MISMATCH: {
|
|
507
|
+
readonly code: "D7008";
|
|
508
|
+
readonly message: "The project's engine or file is of another dialecte";
|
|
509
|
+
readonly explanation: {
|
|
510
|
+
readonly when: "A project file stored by another dialecte was opened (nothing of it written); or an engine was asked for a project of another dialecte than its own - the dialecte's `engineUrl` (its project factory's, or a hub spawner's) pointing at another dialecte's worker. Two dialectes' projects of one name are two projects: opening one never meets the other. `meta`: `project`, `projectDialecteId` (the engine's or the file's), `realmDialecteId` (the one asked).";
|
|
511
|
+
readonly fix: "Open the project with the dialecte it was created with; point the dialecte's `engineUrl` at its own worker.";
|
|
512
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
readonly PROJECT_DIALECTE_VERSION_MISMATCH: {
|
|
516
|
+
readonly code: "D7009";
|
|
517
|
+
readonly message: "The project engine runs another version of the dialecte";
|
|
518
|
+
readonly explanation: {
|
|
519
|
+
readonly when: "The project's engine runs another version of the dialecte than this view.";
|
|
520
|
+
readonly fix: "Reload every tab of the app so they run the same version.";
|
|
521
|
+
readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
readonly PROJECT_DESTROY_FAILED: {
|
|
525
|
+
readonly code: "D7010";
|
|
526
|
+
readonly message: "The project could not be deleted";
|
|
527
|
+
readonly explanation: {
|
|
528
|
+
readonly when: "Destroying a project left its files in place: another tab or worker still holds one.";
|
|
529
|
+
readonly fix: "Close the other tabs or windows of the app that have the project open, then destroy it again.";
|
|
530
|
+
readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
readonly PROJECT_OPEN_ELSEWHERE: {
|
|
534
|
+
readonly code: "D7011";
|
|
535
|
+
readonly message: "The project is open in another tab, window or connection";
|
|
536
|
+
readonly explanation: {
|
|
537
|
+
readonly when: "Another tab or window has the project open and there is no shared connection between them; or a destroy was asked while another connection - a store or project of the name in this page, or another tab - has the project open (`meta.connections`, where the store counts them).";
|
|
538
|
+
readonly fix: "Close the project in the other tab, window or connection, then open or destroy it here again.";
|
|
539
|
+
readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
readonly PROJECT_DATABASE_LOST: {
|
|
543
|
+
readonly code: "D7012";
|
|
544
|
+
readonly message: "The project's database is gone";
|
|
545
|
+
readonly explanation: {
|
|
546
|
+
readonly when: "The project's files hold data but none of them is its database any more: the database file's header was damaged (by the disk, another program, or site data changed outside the app). Nothing is opened or changed: no empty database is made in its place. `meta.project` names the project.";
|
|
547
|
+
readonly fix: "The project's data cannot be read back. Offer the user a reset, never automatically: `destroy()` on the same Project instance whose `open` was refused (keep it: `const project = new Project(params)`, then `await project.open(name)`) removes what the refused store holds, without opening it; `open(name)` then makes it again, empty, and its documents can be imported again.";
|
|
548
|
+
readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
readonly PROJECT_DESTROYED_WHILE_AWAY: {
|
|
552
|
+
readonly code: "D7013";
|
|
553
|
+
readonly message: "The project was deleted while this view was away";
|
|
554
|
+
readonly explanation: {
|
|
555
|
+
readonly when: "A view's connection to a project came back - the page back from a freeze or the back/forward cache, its engine started again - and the project it had open was destroyed meanwhile by another tab (and maybe made again under its name): nothing is opened in its place and nothing of it is read. `meta.project` names the project.";
|
|
556
|
+
readonly fix: "Tell the user the project was deleted elsewhere; close it in this view (`project.close()`), then open it again by its name for what is there now, or choose another.";
|
|
557
|
+
readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
readonly PROJECT_NAME_INVALID: {
|
|
561
|
+
readonly code: "D7014";
|
|
562
|
+
readonly message: "The project's name cannot name its files";
|
|
563
|
+
readonly explanation: {
|
|
564
|
+
readonly when: "A project's name or its dialecte's id is empty, `.` or `..`: every store refuses it before it is built (a SQLite project's files sit in a directory named after both, which no directory can be); nothing was opened or written. `meta.project` and `meta.dialecteId` say which.";
|
|
565
|
+
readonly fix: "Give the project a name of its own (and the dialecte an id) other than an empty one, `.` or `..`.";
|
|
566
|
+
readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
readonly PROJECT_ENGINE_NOT_DECLARED: {
|
|
570
|
+
readonly code: "D7015";
|
|
571
|
+
readonly message: "This project has no engine to open it on SQLite";
|
|
572
|
+
readonly explanation: {
|
|
573
|
+
readonly when: "A project was opened on `storage: { type: 'sqlite' }` but made by no dialecte's project factory: its engine (the dialecte's id, its version and its engine worker's URL) is known to no one, so nothing can start it. Nothing was opened.";
|
|
574
|
+
readonly fix: "Make the project with the dialecte's project factory (`createProjectFactory({ dialecte, engineUrl })`, as a dialecte package exports it), or open it on another storage.";
|
|
575
|
+
readonly docs: "https://dialecte.github.io/core/api/project#sqlite-storage";
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
readonly PROJECT_SQLITE_NOT_IMPORTED: {
|
|
579
|
+
readonly code: "D7016";
|
|
580
|
+
readonly message: "SQLite storage needs `import '@dialecte/core/sqlite'`";
|
|
581
|
+
readonly explanation: {
|
|
582
|
+
readonly when: "A project was opened (or destroyed by name) on `storage: { type: 'sqlite' }`, or a test asked for the `sqlite` test store, but the app never imported `@dialecte/core/sqlite`: the SQLite storage kind lives behind that entry, so an app that never imports it neither emits nor downloads the SQLite engine, its wasm or the hub. Nothing was opened.";
|
|
583
|
+
readonly fix: "Add `import '@dialecte/core/sqlite'` once to the app's entry (for tests, to the test runner's setup file), before the first project is opened on SQLite; or open the project on another storage. Imported already? The import registers the kind for every copy of @dialecte/core of the same SQLite storage version in the realm: a copy of another one (a dialecte bringing its own core) does not see it - align the core versions.";
|
|
584
|
+
readonly docs: "https://dialecte.github.io/core/api/project#sqlite-storage";
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
readonly DOCUMENT_PATH_INVALID: {
|
|
588
|
+
readonly code: "D7030";
|
|
589
|
+
readonly message: "A document's path is not valid";
|
|
590
|
+
readonly explanation: {
|
|
591
|
+
readonly when: "A document's path breaks a rule (empty, `.` or `..` segment, backslash, invisible character, not NFC, too long), names another file than the document's, changes its extension, or was handed to `project.import` of several files; nothing was written. `detail` says which rule.";
|
|
592
|
+
readonly fix: "Write the path relative, joined by `/`, in NFC, ending with the document's file name; pass a path to `importFile`, not to `import`.";
|
|
593
|
+
readonly docs: "https://dialecte.github.io/core/api/project#a-document-s-path";
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
readonly DOCUMENT_PATH_TAKEN: {
|
|
597
|
+
readonly code: "D7031";
|
|
598
|
+
readonly message: "A document's path is another document's place";
|
|
599
|
+
readonly explanation: {
|
|
600
|
+
readonly when: "Another document already holds the place (`meta.takenBy`), a document still importing included: the same path, a path under another document's file, or a file at a folder another document's path uses.";
|
|
601
|
+
readonly fix: "Choose a path no other document holds, or move the other document first.";
|
|
602
|
+
readonly docs: "https://dialecte.github.io/core/api/project#a-document-s-path";
|
|
603
|
+
};
|
|
149
604
|
};
|
|
150
605
|
};
|
|
151
606
|
//# sourceMappingURL=codes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8mBhB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.constants.d.ts","sourceRoot":"","sources":["../../src/errors/errors.constants.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,aAAa,oCAAoC,CAAA"}
|