@party-stack/ontology 0.18.0 → 0.19.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/lib/OntologyPullConfig.d.ts +15 -13
- package/lib/OntologyPullConfig.d.ts.map +1 -1
- package/lib/OntologyPullConfig.js +0 -1
- package/lib/_virtual/_rolldown/runtime.js +13 -0
- package/lib/cli/format.d.ts +4 -0
- package/lib/cli/format.d.ts.map +1 -0
- package/lib/cli/format.js +19 -0
- package/lib/cli/format.js.map +1 -0
- package/lib/cli/generate.d.ts +6 -5
- package/lib/cli/generate.d.ts.map +1 -1
- package/lib/cli/generate.js +86 -110
- package/lib/cli/generate.js.map +1 -1
- package/lib/cli/index.d.ts +1 -3
- package/lib/cli/index.js +42 -59
- package/lib/cli/index.js.map +1 -1
- package/lib/cli/pull.d.ts +3 -1
- package/lib/cli/pull.d.ts.map +1 -1
- package/lib/cli/pull.js +42 -60
- package/lib/cli/pull.js.map +1 -1
- package/lib/examples/blog.d.ts +347 -345
- package/lib/examples/blog.d.ts.map +1 -1
- package/lib/examples/blog.js +350 -337
- package/lib/examples/blog.js.map +1 -1
- package/lib/examples/blog.live-queries.d.ts +8 -3
- package/lib/examples/blog.live-queries.d.ts.map +1 -1
- package/lib/examples/blog.live-queries.js +28 -44
- package/lib/examples/blog.live-queries.js.map +1 -1
- package/lib/examples/generated/constants.d.ts +1 -2
- package/lib/examples/generated/constants.js +0 -2
- package/lib/examples/generated/live.d.ts +5 -3
- package/lib/examples/generated/live.d.ts.map +1 -1
- package/lib/examples/generated/live.js +12 -8
- package/lib/examples/generated/live.js.map +1 -1
- package/lib/examples/generated/types.d.ts +52 -50
- package/lib/examples/generated/types.d.ts.map +1 -1
- package/lib/examples/generated/types.js +0 -2
- package/lib/generate/builders.d.ts +8 -5
- package/lib/generate/builders.d.ts.map +1 -1
- package/lib/generate/builders.js +53 -55
- package/lib/generate/builders.js.map +1 -1
- package/lib/generate/constants.d.ts +3 -1
- package/lib/generate/constants.d.ts.map +1 -1
- package/lib/generate/constants.js +23 -26
- package/lib/generate/constants.js.map +1 -1
- package/lib/generate/index.d.ts +6 -6
- package/lib/generate/index.js +6 -6
- package/lib/generate/live.d.ts +8 -6
- package/lib/generate/live.d.ts.map +1 -1
- package/lib/generate/live.js +43 -42
- package/lib/generate/live.js.map +1 -1
- package/lib/generate/ontology.d.ts +4 -2
- package/lib/generate/ontology.d.ts.map +1 -1
- package/lib/generate/ontology.js +453 -354
- package/lib/generate/ontology.js.map +1 -1
- package/lib/generate/types.d.ts +7 -6
- package/lib/generate/types.d.ts.map +1 -1
- package/lib/generate/types.js +190 -262
- package/lib/generate/types.js.map +1 -1
- package/lib/generate/utils/buildJsDocs.d.ts +7 -4
- package/lib/generate/utils/buildJsDocs.d.ts.map +1 -1
- package/lib/generate/utils/buildJsDocs.js +14 -10
- package/lib/generate/utils/buildJsDocs.js.map +1 -1
- package/lib/index.d.ts +30 -13
- package/lib/index.js +18 -10
- package/lib/infer.d.ts +129 -152
- package/lib/infer.d.ts.map +1 -1
- package/lib/infer.js +10 -6
- package/lib/infer.js.map +1 -1
- package/lib/installation/createMetaOntologyConfiguration.d.ts +6 -3
- package/lib/installation/createMetaOntologyConfiguration.d.ts.map +1 -1
- package/lib/installation/createMetaOntologyConfiguration.js +13 -11
- package/lib/installation/createMetaOntologyConfiguration.js.map +1 -1
- package/lib/installation/createOntologyBackendInstallation.d.ts +3 -1
- package/lib/installation/createOntologyBackendInstallation.d.ts.map +1 -1
- package/lib/installation/createOntologyBackendInstallation.js +205 -268
- package/lib/installation/createOntologyBackendInstallation.js.map +1 -1
- package/lib/installation/index.d.ts +4 -4
- package/lib/installation/index.js +3 -3
- package/lib/installation/types.d.ts +83 -80
- package/lib/installation/types.d.ts.map +1 -1
- package/lib/installation/types.js +0 -1
- package/lib/ir/generated/builders.d.ts +294 -382
- package/lib/ir/generated/builders.d.ts.map +1 -1
- package/lib/ir/generated/builders.js +180 -119
- package/lib/ir/generated/builders.js.map +1 -1
- package/lib/ir/generated/constants.d.ts +137 -135
- package/lib/ir/generated/constants.d.ts.map +1 -1
- package/lib/ir/generated/constants.js +162 -129
- package/lib/ir/generated/constants.js.map +1 -1
- package/lib/ir/generated/types.d.ts +239 -234
- package/lib/ir/generated/types.d.ts.map +1 -1
- package/lib/ir/generated/types.js +0 -2
- package/lib/ir/index.d.ts +4 -4
- package/lib/ir/index.js +3 -4
- package/lib/ir/schema.d.ts +2174 -2172
- package/lib/ir/schema.d.ts.map +1 -1
- package/lib/ir/schema.js +1184 -1343
- package/lib/ir/schema.js.map +1 -1
- package/lib/ir/validate.d.ts +5 -3
- package/lib/ir/validate.d.ts.map +1 -1
- package/lib/ir/validate.js +589 -707
- package/lib/ir/validate.js.map +1 -1
- package/lib/json/index.d.ts +10 -8
- package/lib/json/index.d.ts.map +1 -1
- package/lib/json/index.js +101 -135
- package/lib/json/index.js.map +1 -1
- package/lib/lenses.d.ts +7 -4
- package/lib/lenses.d.ts.map +1 -1
- package/lib/lenses.js +96 -132
- package/lib/lenses.js.map +1 -1
- package/lib/live/LiveOntology.d.ts +55 -60
- package/lib/live/LiveOntology.d.ts.map +1 -1
- package/lib/live/LiveOntology.js +98 -124
- package/lib/live/LiveOntology.js.map +1 -1
- package/lib/live/OntologyBackendAdapter.d.ts +79 -76
- package/lib/live/OntologyBackendAdapter.d.ts.map +1 -1
- package/lib/live/OntologyBackendAdapter.js +0 -1
- package/lib/live/actions/createLiveOntologyAction.d.ts +27 -24
- package/lib/live/actions/createLiveOntologyAction.d.ts.map +1 -1
- package/lib/live/actions/createLiveOntologyAction.js +24 -21
- package/lib/live/actions/createLiveOntologyAction.js.map +1 -1
- package/lib/live/actions/createLiveOntologyActions.d.ts +23 -20
- package/lib/live/actions/createLiveOntologyActions.d.ts.map +1 -1
- package/lib/live/actions/createLiveOntologyActions.js +131 -161
- package/lib/live/actions/createLiveOntologyActions.js.map +1 -1
- package/lib/live/actions/prepareActionParameters.d.ts +14 -11
- package/lib/live/actions/prepareActionParameters.d.ts.map +1 -1
- package/lib/live/actions/prepareActionParameters.js +190 -228
- package/lib/live/actions/prepareActionParameters.js.map +1 -1
- package/lib/live/attachments/attachmentSources.d.ts +7 -4
- package/lib/live/attachments/attachmentSources.d.ts.map +1 -1
- package/lib/live/attachments/attachmentSources.js +55 -71
- package/lib/live/attachments/attachmentSources.js.map +1 -1
- package/lib/live/attachments/createLiveOntologyAttachments.d.ts +47 -45
- package/lib/live/attachments/createLiveOntologyAttachments.d.ts.map +1 -1
- package/lib/live/attachments/createLiveOntologyAttachments.js +65 -83
- package/lib/live/attachments/createLiveOntologyAttachments.js.map +1 -1
- package/lib/live/attachments/types.d.ts +10 -9
- package/lib/live/attachments/types.d.ts.map +1 -1
- package/lib/live/attachments/types.js +0 -1
- package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.d.ts +3 -1
- package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.d.ts.map +1 -1
- package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.js +5 -3
- package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.js.map +1 -1
- package/lib/live/expression.d.ts +16 -14
- package/lib/live/expression.d.ts.map +1 -1
- package/lib/live/expression.js +142 -223
- package/lib/live/expression.js.map +1 -1
- package/lib/live/index.d.ts +12 -9
- package/lib/live/index.js +6 -8
- package/lib/live/mutators/OntologyEdits.d.ts +12 -9
- package/lib/live/mutators/OntologyEdits.d.ts.map +1 -1
- package/lib/live/mutators/OntologyEdits.js +57 -74
- package/lib/live/mutators/OntologyEdits.js.map +1 -1
- package/lib/live/mutators/createMutatorTx.d.ts +7 -5
- package/lib/live/mutators/createMutatorTx.d.ts.map +1 -1
- package/lib/live/mutators/createMutatorTx.js +53 -69
- package/lib/live/mutators/createMutatorTx.js.map +1 -1
- package/lib/live/mutators/runOptimisticAction.d.ts +16 -13
- package/lib/live/mutators/runOptimisticAction.d.ts.map +1 -1
- package/lib/live/mutators/runOptimisticAction.js +26 -26
- package/lib/live/mutators/runOptimisticAction.js.map +1 -1
- package/lib/live/mutators/types.d.ts +18 -16
- package/lib/live/mutators/types.d.ts.map +1 -1
- package/lib/live/mutators/types.js +0 -1
- package/lib/live/objects/OntologyObject.d.ts +2 -0
- package/lib/live/objects/OntologyObject.d.ts.map +1 -1
- package/lib/live/objects/OntologyObject.js +0 -1
- package/lib/live/objects/createLiveOntologyObjectCollection.d.ts +13 -10
- package/lib/live/objects/createLiveOntologyObjectCollection.d.ts.map +1 -1
- package/lib/live/objects/createLiveOntologyObjectCollection.js +49 -53
- package/lib/live/objects/createLiveOntologyObjectCollection.js.map +1 -1
- package/lib/live/objects/ontologyObjectCollectionId.d.ts +2 -0
- package/lib/live/objects/ontologyObjectCollectionId.d.ts.map +1 -1
- package/lib/live/objects/ontologyObjectCollectionId.js +6 -2
- package/lib/live/objects/ontologyObjectCollectionId.js.map +1 -1
- package/lib/live/outbox/createOntologyOutbox.d.ts +16 -14
- package/lib/live/outbox/createOntologyOutbox.d.ts.map +1 -1
- package/lib/live/outbox/createOntologyOutbox.js +275 -326
- package/lib/live/outbox/createOntologyOutbox.js.map +1 -1
- package/lib/live/outbox/leaderExecutor.d.ts +15 -13
- package/lib/live/outbox/leaderExecutor.d.ts.map +1 -1
- package/lib/live/outbox/leaderExecutor.js +114 -153
- package/lib/live/outbox/leaderExecutor.js.map +1 -1
- package/lib/live/outbox/outboxService.d.ts +4 -2
- package/lib/live/outbox/outboxService.d.ts.map +1 -1
- package/lib/live/outbox/outboxService.js +66 -71
- package/lib/live/outbox/outboxService.js.map +1 -1
- package/lib/live/outbox/projectionManager.d.ts +26 -24
- package/lib/live/outbox/projectionManager.d.ts.map +1 -1
- package/lib/live/outbox/projectionManager.js +121 -147
- package/lib/live/outbox/projectionManager.js.map +1 -1
- package/lib/live/outbox/repository.d.ts +27 -25
- package/lib/live/outbox/repository.d.ts.map +1 -1
- package/lib/live/outbox/repository.js +192 -241
- package/lib/live/outbox/repository.js.map +1 -1
- package/lib/live/outbox/service.d.ts +52 -50
- package/lib/live/outbox/service.d.ts.map +1 -1
- package/lib/live/outbox/service.js +5 -1
- package/lib/live/outbox/service.js.map +1 -1
- package/lib/live/outbox/types.d.ts +35 -33
- package/lib/live/outbox/types.d.ts.map +1 -1
- package/lib/live/outbox/types.js +10 -6
- package/lib/live/outbox/types.js.map +1 -1
- package/lib/live/waitForCollectionReady.d.ts +3 -1
- package/lib/live/waitForCollectionReady.d.ts.map +1 -1
- package/lib/live/waitForCollectionReady.js +44 -65
- package/lib/live/waitForCollectionReady.js.map +1 -1
- package/lib/meta/createLocalMetaOntologyBackendAdapter.d.ts +5 -2
- package/lib/meta/createLocalMetaOntologyBackendAdapter.d.ts.map +1 -1
- package/lib/meta/createLocalMetaOntologyBackendAdapter.js +37 -39
- package/lib/meta/createLocalMetaOntologyBackendAdapter.js.map +1 -1
- package/lib/meta/generated/constants.d.ts +137 -135
- package/lib/meta/generated/constants.d.ts.map +1 -1
- package/lib/meta/generated/constants.js +162 -129
- package/lib/meta/generated/constants.js.map +1 -1
- package/lib/meta/generated/live.d.ts +5 -2
- package/lib/meta/generated/live.d.ts.map +1 -1
- package/lib/meta/generated/live.js +12 -8
- package/lib/meta/generated/live.js.map +1 -1
- package/lib/meta/generated/types.d.ts +233 -231
- package/lib/meta/generated/types.d.ts.map +1 -1
- package/lib/meta/generated/types.js +0 -2
- package/lib/meta/ontology.d.ts +23 -21
- package/lib/meta/ontology.d.ts.map +1 -1
- package/lib/meta/ontology.js +100 -104
- package/lib/meta/ontology.js.map +1 -1
- package/lib/meta/pull.d.ts +8 -6
- package/lib/meta/pull.d.ts.map +1 -1
- package/lib/meta/pull.js +39 -52
- package/lib/meta/pull.js.map +1 -1
- package/lib/utils/index.d.ts +8 -8
- package/lib/utils/index.js +5 -6
- package/lib/utils/links.d.ts +34 -32
- package/lib/utils/links.d.ts.map +1 -1
- package/lib/utils/links.js +10 -17
- package/lib/utils/links.js.map +1 -1
- package/lib/utils/paths.d.ts +2 -0
- package/lib/utils/paths.d.ts.map +1 -1
- package/lib/utils/paths.js +32 -44
- package/lib/utils/paths.js.map +1 -1
- package/lib/utils/provide.d.ts +2 -0
- package/lib/utils/provide.d.ts.map +1 -1
- package/lib/utils/provide.js +7 -9
- package/lib/utils/provide.js.map +1 -1
- package/lib/utils/targets.d.ts +20 -18
- package/lib/utils/targets.d.ts.map +1 -1
- package/lib/utils/targets.js +0 -1
- package/lib/utils/typeNames.d.ts +10 -8
- package/lib/utils/typeNames.d.ts.map +1 -1
- package/lib/utils/typeNames.js +0 -1
- package/lib/utils/types.d.ts +6 -4
- package/lib/utils/types.d.ts.map +1 -1
- package/lib/utils/types.js +38 -38
- package/lib/utils/types.js.map +1 -1
- package/lib/utils/uncertain.d.ts +5 -3
- package/lib/utils/uncertain.d.ts.map +1 -1
- package/lib/utils/uncertain.js +11 -9
- package/lib/utils/uncertain.js.map +1 -1
- package/lib/utils/validation.d.ts +4 -2
- package/lib/utils/validation.d.ts.map +1 -1
- package/lib/utils/validation.js +0 -1
- package/lib/utils/values.d.ts +21 -18
- package/lib/utils/values.d.ts.map +1 -1
- package/lib/utils/values.js +0 -1
- package/package.json +22 -25
- package/lib/OntologyPullConfig.js.map +0 -1
- package/lib/cli/index.d.ts.map +0 -1
- package/lib/cli/index.test.d.ts +0 -2
- package/lib/cli/index.test.d.ts.map +0 -1
- package/lib/cli/index.test.js +0 -34
- package/lib/cli/index.test.js.map +0 -1
- package/lib/cli/pull.test.d.ts +0 -2
- package/lib/cli/pull.test.d.ts.map +0 -1
- package/lib/cli/pull.test.js +0 -125
- package/lib/cli/pull.test.js.map +0 -1
- package/lib/examples/generated/constants.d.ts.map +0 -1
- package/lib/examples/generated/constants.js.map +0 -1
- package/lib/examples/generated/types.js.map +0 -1
- package/lib/generate/builders.test.d.ts +0 -2
- package/lib/generate/builders.test.d.ts.map +0 -1
- package/lib/generate/builders.test.js +0 -49
- package/lib/generate/builders.test.js.map +0 -1
- package/lib/generate/index.d.ts.map +0 -1
- package/lib/generate/index.js.map +0 -1
- package/lib/generate/live.test.d.ts +0 -2
- package/lib/generate/live.test.d.ts.map +0 -1
- package/lib/generate/live.test.js +0 -22
- package/lib/generate/live.test.js.map +0 -1
- package/lib/generate/ontology.test.d.ts +0 -2
- package/lib/generate/ontology.test.d.ts.map +0 -1
- package/lib/generate/ontology.test.js +0 -157
- package/lib/generate/ontology.test.js.map +0 -1
- package/lib/generate/types.test.d.ts +0 -2
- package/lib/generate/types.test.d.ts.map +0 -1
- package/lib/generate/types.test.js +0 -304
- package/lib/generate/types.test.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/infer.test.d.ts +0 -2
- package/lib/infer.test.d.ts.map +0 -1
- package/lib/infer.test.js +0 -125
- package/lib/infer.test.js.map +0 -1
- package/lib/installation/createMetaOntologyConfiguration.test.d.ts +0 -2
- package/lib/installation/createMetaOntologyConfiguration.test.d.ts.map +0 -1
- package/lib/installation/createMetaOntologyConfiguration.test.js +0 -20
- package/lib/installation/createMetaOntologyConfiguration.test.js.map +0 -1
- package/lib/installation/createOntologyBackendInstallation.test.d.ts +0 -2
- package/lib/installation/createOntologyBackendInstallation.test.d.ts.map +0 -1
- package/lib/installation/createOntologyBackendInstallation.test.js +0 -320
- package/lib/installation/createOntologyBackendInstallation.test.js.map +0 -1
- package/lib/installation/index.d.ts.map +0 -1
- package/lib/installation/index.js.map +0 -1
- package/lib/installation/types.js.map +0 -1
- package/lib/ir/generated/types.js.map +0 -1
- package/lib/ir/index.d.ts.map +0 -1
- package/lib/ir/index.js.map +0 -1
- package/lib/ir/validate.test.d.ts +0 -2
- package/lib/ir/validate.test.d.ts.map +0 -1
- package/lib/ir/validate.test.js +0 -1061
- package/lib/ir/validate.test.js.map +0 -1
- package/lib/json/index.test.d.ts +0 -2
- package/lib/json/index.test.d.ts.map +0 -1
- package/lib/json/index.test.js +0 -142
- package/lib/json/index.test.js.map +0 -1
- package/lib/lenses.test.d.ts +0 -2
- package/lib/lenses.test.d.ts.map +0 -1
- package/lib/lenses.test.js +0 -80
- package/lib/lenses.test.js.map +0 -1
- package/lib/live/LiveOntology.test.d.ts +0 -2
- package/lib/live/LiveOntology.test.d.ts.map +0 -1
- package/lib/live/LiveOntology.test.js +0 -507
- package/lib/live/LiveOntology.test.js.map +0 -1
- package/lib/live/OntologyBackendAdapter.js.map +0 -1
- package/lib/live/actions/createLiveOntologyAction.test.d.ts +0 -2
- package/lib/live/actions/createLiveOntologyAction.test.d.ts.map +0 -1
- package/lib/live/actions/createLiveOntologyAction.test.js +0 -232
- package/lib/live/actions/createLiveOntologyAction.test.js.map +0 -1
- package/lib/live/actions/prepareActionParameters.test.d.ts +0 -2
- package/lib/live/actions/prepareActionParameters.test.d.ts.map +0 -1
- package/lib/live/actions/prepareActionParameters.test.js +0 -165
- package/lib/live/actions/prepareActionParameters.test.js.map +0 -1
- package/lib/live/attachments/attachmentMetadata.test.d.ts +0 -2
- package/lib/live/attachments/attachmentMetadata.test.d.ts.map +0 -1
- package/lib/live/attachments/attachmentMetadata.test.js +0 -73
- package/lib/live/attachments/attachmentMetadata.test.js.map +0 -1
- package/lib/live/attachments/createLiveOntologyAttachments.test.d.ts +0 -2
- package/lib/live/attachments/createLiveOntologyAttachments.test.d.ts.map +0 -1
- package/lib/live/attachments/createLiveOntologyAttachments.test.js +0 -363
- package/lib/live/attachments/createLiveOntologyAttachments.test.js.map +0 -1
- package/lib/live/attachments/types.js.map +0 -1
- package/lib/live/expression.test.d.ts +0 -2
- package/lib/live/expression.test.d.ts.map +0 -1
- package/lib/live/expression.test.js +0 -281
- package/lib/live/expression.test.js.map +0 -1
- package/lib/live/index.d.ts.map +0 -1
- package/lib/live/index.js.map +0 -1
- package/lib/live/mutators/OntologyEdits.test.d.ts +0 -2
- package/lib/live/mutators/OntologyEdits.test.d.ts.map +0 -1
- package/lib/live/mutators/OntologyEdits.test.js +0 -85
- package/lib/live/mutators/OntologyEdits.test.js.map +0 -1
- package/lib/live/mutators/createMutatorTx.test.d.ts +0 -2
- package/lib/live/mutators/createMutatorTx.test.d.ts.map +0 -1
- package/lib/live/mutators/createMutatorTx.test.js +0 -182
- package/lib/live/mutators/createMutatorTx.test.js.map +0 -1
- package/lib/live/mutators/types.js.map +0 -1
- package/lib/live/objects/OntologyObject.js.map +0 -1
- package/lib/live/objects/createLiveOntologyObjectCollection.test.d.ts +0 -2
- package/lib/live/objects/createLiveOntologyObjectCollection.test.d.ts.map +0 -1
- package/lib/live/objects/createLiveOntologyObjectCollection.test.js +0 -181
- package/lib/live/objects/createLiveOntologyObjectCollection.test.js.map +0 -1
- package/lib/live/outbox/createOntologyOutbox.test.d.ts +0 -2
- package/lib/live/outbox/createOntologyOutbox.test.d.ts.map +0 -1
- package/lib/live/outbox/createOntologyOutbox.test.js +0 -1007
- package/lib/live/outbox/createOntologyOutbox.test.js.map +0 -1
- package/lib/live/outbox/outboxValues.d.ts +0 -7
- package/lib/live/outbox/outboxValues.d.ts.map +0 -1
- package/lib/live/outbox/outboxValues.js +0 -76
- package/lib/live/outbox/outboxValues.js.map +0 -1
- package/lib/meta/generated/types.js.map +0 -1
- package/lib/meta/ontology.test.d.ts +0 -2
- package/lib/meta/ontology.test.d.ts.map +0 -1
- package/lib/meta/ontology.test.js +0 -84
- package/lib/meta/ontology.test.js.map +0 -1
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/links.test.d.ts +0 -2
- package/lib/utils/links.test.d.ts.map +0 -1
- package/lib/utils/links.test.js +0 -109
- package/lib/utils/links.test.js.map +0 -1
- package/lib/utils/paths.test.d.ts +0 -2
- package/lib/utils/paths.test.d.ts.map +0 -1
- package/lib/utils/paths.test.js +0 -33
- package/lib/utils/paths.test.js.map +0 -1
- package/lib/utils/targets.js.map +0 -1
- package/lib/utils/typeNames.js.map +0 -1
- package/lib/utils/types.test.d.ts +0 -2
- package/lib/utils/types.test.d.ts.map +0 -1
- package/lib/utils/types.test.js +0 -157
- package/lib/utils/types.test.js.map +0 -1
- package/lib/utils/uncertain.test.d.ts +0 -2
- package/lib/utils/uncertain.test.d.ts.map +0 -1
- package/lib/utils/uncertain.test.js +0 -14
- package/lib/utils/uncertain.test.js.map +0 -1
- package/lib/utils/validation.js.map +0 -1
- package/lib/utils/values.js.map +0 -1
|
@@ -1,343 +1,292 @@
|
|
|
1
|
-
import { createLocalCollection, isCoordinationHost, CoordinationError, } from "@party-stack/runtime";
|
|
2
|
-
import { useConnectivityChanges } from "@party-stack/runtime/effection";
|
|
3
|
-
import { createSignal, each, resource, run, spawn, suspend, until, useAbortSignal, } from "effection";
|
|
4
1
|
import { runOutboxLeader } from "./leaderExecutor.js";
|
|
2
|
+
import { OUTBOX_COORDINATION_SERVICE } from "./service.js";
|
|
5
3
|
import { serveOntologyOutbox } from "./outboxService.js";
|
|
6
|
-
import { decodeOutboxEntry, decodeOutboxRequest, encodeOutboxRequest } from "./outboxValues.js";
|
|
7
|
-
import { OutboxProjectionManager } from "./projectionManager.js";
|
|
8
4
|
import { OntologyOutboxRepository } from "./repository.js";
|
|
9
|
-
import {
|
|
5
|
+
import { OutboxProjectionManager } from "./projectionManager.js";
|
|
6
|
+
import { CoordinationError, createLocalCollection, isCoordinationHost } from "@party-stack/runtime";
|
|
7
|
+
import { cloneValue } from "@party-stack/coordination";
|
|
8
|
+
import { useConnectivityChanges } from "@party-stack/runtime/effection";
|
|
9
|
+
import { createSignal, each, resource, run, spawn, suspend, until, useAbortSignal } from "effection";
|
|
10
|
+
//#region src/live/outbox/createOntologyOutbox.ts
|
|
10
11
|
const DEFAULT_MAX_RETRIES = 3;
|
|
11
|
-
const DEFAULT_RETRY_DELAY_MS =
|
|
12
|
+
const DEFAULT_RETRY_DELAY_MS = 1e3;
|
|
12
13
|
function nonNegativeInteger(value, fallback, name) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return resolved;
|
|
14
|
+
const resolved = value ?? fallback;
|
|
15
|
+
if (!Number.isSafeInteger(resolved) || resolved < 0) throw new RangeError(`${name} must be a non-negative safe integer.`);
|
|
16
|
+
return resolved;
|
|
18
17
|
}
|
|
19
18
|
function deferred() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
});
|
|
42
|
-
return value;
|
|
19
|
+
let resolvePromise;
|
|
20
|
+
let rejectPromise;
|
|
21
|
+
const value = {
|
|
22
|
+
promise: void 0,
|
|
23
|
+
settled: false,
|
|
24
|
+
resolve(result) {
|
|
25
|
+
if (value.settled) return;
|
|
26
|
+
value.settled = true;
|
|
27
|
+
resolvePromise(result);
|
|
28
|
+
},
|
|
29
|
+
reject(error) {
|
|
30
|
+
if (value.settled) return;
|
|
31
|
+
value.settled = true;
|
|
32
|
+
rejectPromise(error);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
value.promise = new Promise((resolve, reject) => {
|
|
36
|
+
resolvePromise = resolve;
|
|
37
|
+
rejectPromise = reject;
|
|
38
|
+
});
|
|
39
|
+
return value;
|
|
43
40
|
}
|
|
44
41
|
function normalizeError(error) {
|
|
45
|
-
|
|
42
|
+
return error instanceof Error ? error : new Error(String(error));
|
|
46
43
|
}
|
|
47
44
|
function eventError(event) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
const error = new Error(event.error.message);
|
|
46
|
+
error.name = event.error.name;
|
|
47
|
+
return error;
|
|
51
48
|
}
|
|
52
49
|
function createOutboxCollection(options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
return createLocalCollection({
|
|
51
|
+
name: "ontology-outbox",
|
|
52
|
+
getKey: (entry) => entry.id,
|
|
53
|
+
runtime: options.runtime,
|
|
54
|
+
schemaVersion: 1
|
|
55
|
+
});
|
|
59
56
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
capture(error);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
if (lifetime.leaderTask !== undefined) {
|
|
248
|
-
try {
|
|
249
|
-
yield* lifetime.leaderTask.halt();
|
|
250
|
-
}
|
|
251
|
-
catch (error) {
|
|
252
|
-
capture(error);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
if (lifetime.leaderRun) {
|
|
256
|
-
yield* until(Promise.allSettled([lifetime.leaderRun]));
|
|
257
|
-
}
|
|
258
|
-
if (lifetime.connectivityTask !== undefined) {
|
|
259
|
-
try {
|
|
260
|
-
yield* lifetime.connectivityTask.halt();
|
|
261
|
-
}
|
|
262
|
-
catch (error) {
|
|
263
|
-
capture(error);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
try {
|
|
267
|
-
yield* until(projections.close());
|
|
268
|
-
}
|
|
269
|
-
catch (error) {
|
|
270
|
-
capture(error);
|
|
271
|
-
}
|
|
272
|
-
const disposed = new Error("Outbox disposed.");
|
|
273
|
-
for (const completion of completions.values()) {
|
|
274
|
-
completion.reject(disposed);
|
|
275
|
-
}
|
|
276
|
-
completions.clear();
|
|
277
|
-
try {
|
|
278
|
-
yield* until(collection.cleanup());
|
|
279
|
-
}
|
|
280
|
-
catch (error) {
|
|
281
|
-
capture(error);
|
|
282
|
-
}
|
|
283
|
-
if (cleanupErrors[0]) {
|
|
284
|
-
yield* until(Promise.reject(cleanupErrors[0]));
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
});
|
|
57
|
+
function useOntologyOutbox(options, collection = createOutboxCollection(options)) {
|
|
58
|
+
return resource(function* (provide) {
|
|
59
|
+
const repository = new OntologyOutboxRepository(collection);
|
|
60
|
+
const failureStrategy = options.failureStrategy ?? "discard-all";
|
|
61
|
+
const service = options.runtime.coordination.service(OUTBOX_COORDINATION_SERVICE);
|
|
62
|
+
const wake = createSignal();
|
|
63
|
+
const projections = new OutboxProjectionManager(options.project ? async (entry) => options.project?.(entry) : void 0);
|
|
64
|
+
const completions = /* @__PURE__ */ new Map();
|
|
65
|
+
const lifetime = {};
|
|
66
|
+
let disposing = false;
|
|
67
|
+
let reconciliationVersion = 0;
|
|
68
|
+
const deliverResult = async (event) => {
|
|
69
|
+
const completion = completions.get(event.id);
|
|
70
|
+
if (event.type === "completed") {
|
|
71
|
+
await projections.discard(event.id);
|
|
72
|
+
if (completion) {
|
|
73
|
+
completions.delete(event.id);
|
|
74
|
+
completion.resolve(event.result);
|
|
75
|
+
}
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const error = eventError(event);
|
|
79
|
+
await projections.discard(event.id, error);
|
|
80
|
+
if (completion) {
|
|
81
|
+
completions.delete(event.id);
|
|
82
|
+
completion.reject(error);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
try {
|
|
86
|
+
lifetime.unsubscribeResults = service.events.subscribe("result", (event) => {
|
|
87
|
+
deliverResult(event);
|
|
88
|
+
});
|
|
89
|
+
yield* until(repository.preload());
|
|
90
|
+
if (isCoordinationHost(options.runtime.coordination)) lifetime.server = serveOntologyOutbox(options.runtime.coordination, repository);
|
|
91
|
+
const reconcileProjections = async () => {
|
|
92
|
+
const version = ++reconciliationVersion;
|
|
93
|
+
const entries = await repository.entries();
|
|
94
|
+
if (disposing || version !== reconciliationVersion) return;
|
|
95
|
+
await projections.reconcile(entries);
|
|
96
|
+
};
|
|
97
|
+
lifetime.unsubscribeCollection = collection.subscribeChanges(() => {
|
|
98
|
+
wake.send();
|
|
99
|
+
reconcileProjections();
|
|
100
|
+
});
|
|
101
|
+
lifetime.unsubscribeConnection = options.connection ? { unsubscribe: options.connection.subscribe(() => {
|
|
102
|
+
wake.send();
|
|
103
|
+
}) } : void 0;
|
|
104
|
+
const existing = yield* until(repository.entries());
|
|
105
|
+
yield* until(projections.restore(existing));
|
|
106
|
+
const connectivityChanges = yield* useConnectivityChanges(options.runtime);
|
|
107
|
+
lifetime.connectivityTask = yield* spawn(function* () {
|
|
108
|
+
for (const isConnected of yield* each(connectivityChanges)) {
|
|
109
|
+
wake.send();
|
|
110
|
+
yield* each.next();
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
if (isCoordinationHost(options.runtime.coordination)) {
|
|
114
|
+
const host = options.runtime.coordination;
|
|
115
|
+
const leaderOptions = {
|
|
116
|
+
runtime: options.runtime,
|
|
117
|
+
service,
|
|
118
|
+
wake,
|
|
119
|
+
failureStrategy,
|
|
120
|
+
maxRetries: nonNegativeInteger(options.maxRetries, DEFAULT_MAX_RETRIES, "Outbox maxRetries"),
|
|
121
|
+
retryDelayMs: DEFAULT_RETRY_DELAY_MS,
|
|
122
|
+
execute: (entry) => options.execute(entry),
|
|
123
|
+
connection: options.connection
|
|
124
|
+
};
|
|
125
|
+
lifetime.leaderTask = yield* spawn(function* () {
|
|
126
|
+
const lifetimeSignal = yield* useAbortSignal();
|
|
127
|
+
while (!lifetimeSignal.aborted) try {
|
|
128
|
+
const leaderRun = host.runAsLeader(({ signal }) => runOutboxLeader(signal, leaderOptions), { signal: lifetimeSignal });
|
|
129
|
+
lifetime.leaderRun = leaderRun;
|
|
130
|
+
yield* until(leaderRun);
|
|
131
|
+
return;
|
|
132
|
+
} catch (error) {
|
|
133
|
+
if (lifetimeSignal.aborted) return;
|
|
134
|
+
if (!host.isLeader && !(error instanceof CoordinationError)) continue;
|
|
135
|
+
throw error;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
yield* provide({
|
|
140
|
+
collection,
|
|
141
|
+
ready: Promise.resolve(),
|
|
142
|
+
async enqueue(request, enqueueOptions) {
|
|
143
|
+
const timestamp = Date.now();
|
|
144
|
+
const proposed = {
|
|
145
|
+
id: crypto.randomUUID(),
|
|
146
|
+
sequence: 0,
|
|
147
|
+
request: {
|
|
148
|
+
...request,
|
|
149
|
+
idempotencyKey: request.idempotencyKey ?? crypto.randomUUID()
|
|
150
|
+
},
|
|
151
|
+
visibility: enqueueOptions?.visibility ?? "confirmed",
|
|
152
|
+
status: "queued",
|
|
153
|
+
createdAt: timestamp,
|
|
154
|
+
updatedAt: timestamp,
|
|
155
|
+
attempts: 0,
|
|
156
|
+
retryable: true,
|
|
157
|
+
nextAttemptAt: timestamp
|
|
158
|
+
};
|
|
159
|
+
const completion = deferred();
|
|
160
|
+
completion.promise.catch(() => void 0);
|
|
161
|
+
completions.set(proposed.id, completion);
|
|
162
|
+
let entry;
|
|
163
|
+
try {
|
|
164
|
+
entry = await service.methods.enqueue({ entry: proposed });
|
|
165
|
+
} catch (error) {
|
|
166
|
+
completions.delete(proposed.id);
|
|
167
|
+
completion.reject(normalizeError(error));
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
await projections.ensure(entry);
|
|
171
|
+
return {
|
|
172
|
+
entry,
|
|
173
|
+
completed: completion.promise
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
async edit(id, update) {
|
|
177
|
+
const current = repository.get(id);
|
|
178
|
+
if (!current) throw new Error(`Outbox entry "${id}" was not found in this context.`);
|
|
179
|
+
const request = cloneValue(current.request);
|
|
180
|
+
update(request);
|
|
181
|
+
const entry = await service.methods.edit({
|
|
182
|
+
id,
|
|
183
|
+
request
|
|
184
|
+
});
|
|
185
|
+
await projections.ensure(entry);
|
|
186
|
+
return entry;
|
|
187
|
+
},
|
|
188
|
+
async remove(id) {
|
|
189
|
+
await service.methods.remove({ id });
|
|
190
|
+
},
|
|
191
|
+
async retry(id) {
|
|
192
|
+
await service.methods.retry({ id });
|
|
193
|
+
wake.send();
|
|
194
|
+
},
|
|
195
|
+
cleanup() {
|
|
196
|
+
return Promise.resolve();
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
} finally {
|
|
200
|
+
disposing = true;
|
|
201
|
+
reconciliationVersion += 1;
|
|
202
|
+
const cleanupErrors = [];
|
|
203
|
+
const capture = (error) => {
|
|
204
|
+
cleanupErrors.push(normalizeError(error));
|
|
205
|
+
};
|
|
206
|
+
lifetime.unsubscribeResults?.();
|
|
207
|
+
lifetime.unsubscribeCollection?.unsubscribe();
|
|
208
|
+
lifetime.unsubscribeConnection?.unsubscribe();
|
|
209
|
+
if (lifetime.server) try {
|
|
210
|
+
yield* until(lifetime.server.close());
|
|
211
|
+
} catch (error) {
|
|
212
|
+
capture(error);
|
|
213
|
+
}
|
|
214
|
+
if (lifetime.leaderTask !== void 0) try {
|
|
215
|
+
yield* lifetime.leaderTask.halt();
|
|
216
|
+
} catch (error) {
|
|
217
|
+
capture(error);
|
|
218
|
+
}
|
|
219
|
+
if (lifetime.leaderRun) yield* until(Promise.allSettled([lifetime.leaderRun]));
|
|
220
|
+
if (lifetime.connectivityTask !== void 0) try {
|
|
221
|
+
yield* lifetime.connectivityTask.halt();
|
|
222
|
+
} catch (error) {
|
|
223
|
+
capture(error);
|
|
224
|
+
}
|
|
225
|
+
try {
|
|
226
|
+
yield* until(projections.close());
|
|
227
|
+
} catch (error) {
|
|
228
|
+
capture(error);
|
|
229
|
+
}
|
|
230
|
+
const disposed = /* @__PURE__ */ new Error("Outbox disposed.");
|
|
231
|
+
for (const completion of completions.values()) completion.reject(disposed);
|
|
232
|
+
completions.clear();
|
|
233
|
+
try {
|
|
234
|
+
yield* until(collection.cleanup());
|
|
235
|
+
} catch (error) {
|
|
236
|
+
capture(error);
|
|
237
|
+
}
|
|
238
|
+
if (cleanupErrors[0]) yield* until(Promise.reject(cleanupErrors[0]));
|
|
239
|
+
}
|
|
240
|
+
});
|
|
288
241
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
if (collection.status !== "cleaned-up") {
|
|
336
|
-
await collection.cleanup().catch(() => undefined);
|
|
337
|
-
}
|
|
338
|
-
})();
|
|
339
|
-
return cleanupPromise;
|
|
340
|
-
},
|
|
341
|
-
};
|
|
242
|
+
function createOntologyOutbox(options) {
|
|
243
|
+
const collection = createOutboxCollection(options);
|
|
244
|
+
let outbox;
|
|
245
|
+
const ready = deferred();
|
|
246
|
+
ready.promise.catch(() => void 0);
|
|
247
|
+
let cleanupPromise;
|
|
248
|
+
const task = run(function* () {
|
|
249
|
+
try {
|
|
250
|
+
outbox = yield* useOntologyOutbox(options, collection);
|
|
251
|
+
ready.resolve();
|
|
252
|
+
yield* suspend();
|
|
253
|
+
} catch (error) {
|
|
254
|
+
ready.reject(normalizeError(error));
|
|
255
|
+
throw error;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
task.catch(() => void 0);
|
|
259
|
+
return {
|
|
260
|
+
collection,
|
|
261
|
+
ready: ready.promise,
|
|
262
|
+
task,
|
|
263
|
+
async enqueue(request, enqueueOptions) {
|
|
264
|
+
await ready.promise;
|
|
265
|
+
return outbox.enqueue(request, enqueueOptions);
|
|
266
|
+
},
|
|
267
|
+
async edit(id, update) {
|
|
268
|
+
await ready.promise;
|
|
269
|
+
return outbox.edit(id, update);
|
|
270
|
+
},
|
|
271
|
+
async remove(id) {
|
|
272
|
+
await ready.promise;
|
|
273
|
+
return outbox.remove(id);
|
|
274
|
+
},
|
|
275
|
+
async retry(id) {
|
|
276
|
+
await ready.promise;
|
|
277
|
+
return outbox.retry(id);
|
|
278
|
+
},
|
|
279
|
+
async cleanup() {
|
|
280
|
+
cleanupPromise ??= (async () => {
|
|
281
|
+
await Promise.allSettled([ready.promise, collection.preload()]);
|
|
282
|
+
await task.halt().catch(() => void 0);
|
|
283
|
+
if (collection.status !== "cleaned-up") await collection.cleanup().catch(() => void 0);
|
|
284
|
+
})();
|
|
285
|
+
return cleanupPromise;
|
|
286
|
+
}
|
|
287
|
+
};
|
|
342
288
|
}
|
|
289
|
+
//#endregion
|
|
290
|
+
export { createOntologyOutbox, useOntologyOutbox };
|
|
291
|
+
|
|
343
292
|
//# sourceMappingURL=createOntologyOutbox.js.map
|