@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,38 +1,41 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Union, double, integer, values_d_exports } from "../../utils/values.js";
|
|
2
|
+
declare namespace types_d_exports {
|
|
3
|
+
export { ActionLogicStep, ActionParameterDef, ActionTypeDef, AttachmentConstraint, AttachmentContentConstraint, AttachmentTypeDef, BooleanTypeDef, ContextReferenceExpression, CreateObjectActionLogicStep, DateTypeDef, DeleteObjectActionLogicStep, Deprecation, DimensionsConstraint, DoubleTypeDef, Expression, FieldDef, FloatTypeDef, GeopointTypeDef, GetAtExpression, IconDescriptor, IconName, ImageAttachmentConstraint, ImageMediaType, InputReferenceExpression, IntegerTypeDef, Lens, LensOp, LinkCardinality, LinkHopExpression, LinkTypeDef, LinkTypeSideDef, ListTypeDef, LiteralExpression, LocalReferenceExpression, MapExpression, MapTypeDef, MoveLensOp, NamedTypeDef, NowExpression, ObjectLookupExpression, ObjectReferenceTypeDef, ObjectTypeDef, OntologyIR, OptionalTypeDef, PropertyAssignment, PropertyDef, QueryFunctionParameterDef, QueryFunctionTypeDef, ResultTypeDef, SelectLensOp, StringConstraint, StringEnumConstraint, StringRegexConstraint, StringSuggestion, StringTypeDef, StructExpression, StructExpressionField, StructTypeDef, TimestampTypeDef, TypeDef, TypeRef, UnionTypeDef, UnknownTypeDef, UpdateObjectActionLogicStep, UuidExpression, VariantDef };
|
|
4
|
+
}
|
|
2
5
|
/** A renderer-independent icon name from @party-stack/icons. */
|
|
3
6
|
export type IconName = "activity" | "add" | "airplane" | "alarm" | "alert" | "archive" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "attachment" | "award" | "bank" | "barcode" | "bell" | "book" | "bookmark" | "briefcase" | "bug" | "building" | "calculator" | "calendar" | "camera" | "chart-bar" | "chart-line" | "chart-pie" | "chat" | "check" | "check-circle" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "circle" | "clipboard" | "clock" | "cloud" | "code" | "compass" | "copy" | "credit-card" | "cube" | "database" | "delete" | "document" | "download" | "edit" | "email" | "error" | "eye" | "eye-off" | "filter" | "flag" | "folder" | "globe" | "grid" | "heart" | "help" | "history" | "home" | "image" | "info" | "key" | "layers" | "lightbulb" | "link" | "list" | "location" | "lock" | "lock-open" | "map" | "menu" | "microphone" | "minus" | "minus-circle" | "moon" | "more-horizontal" | "more-vertical" | "notification" | "package" | "pause" | "people" | "person" | "phone" | "pin" | "play" | "play-circle" | "plus-circle" | "printer" | "project" | "refresh" | "rocket" | "save" | "search" | "send" | "settings" | "share" | "shield" | "shopping-bag" | "shopping-cart" | "star" | "stop" | "sun" | "tag" | "ticket" | "tools" | "upload" | "video" | "warning" | "window" | "wrench" | "x" | "x-circle";
|
|
4
7
|
/** A portable icon descriptor with optional provider meta for lossless round trips. */
|
|
5
8
|
export type IconDescriptor = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
/** Renderer-independent icon name. */
|
|
10
|
+
name: IconName;
|
|
11
|
+
/** Namespaced source-provider meta. */
|
|
12
|
+
meta?: Record<string, unknown>;
|
|
10
13
|
};
|
|
11
14
|
export type Deprecation = {
|
|
12
|
-
|
|
15
|
+
message: string;
|
|
13
16
|
};
|
|
14
17
|
/** A suggested value for a string. */
|
|
15
18
|
export type StringSuggestion = {
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
value: string;
|
|
20
|
+
label?: string;
|
|
18
21
|
};
|
|
19
22
|
/** Constrains a string to a set of allowed values. */
|
|
20
23
|
export type StringEnumConstraint = {
|
|
21
|
-
|
|
24
|
+
options: Array<StringSuggestion>;
|
|
22
25
|
};
|
|
23
26
|
/** Constrains a string to a regex. */
|
|
24
27
|
export type StringRegexConstraint = {
|
|
25
|
-
|
|
28
|
+
regex: string;
|
|
26
29
|
};
|
|
27
30
|
/** A constraint that can be applied to a string type. */
|
|
28
|
-
export type StringConstraint =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
export type StringConstraint = Union<{
|
|
32
|
+
enum: StringEnumConstraint;
|
|
33
|
+
regex: StringRegexConstraint;
|
|
31
34
|
}>;
|
|
32
35
|
/** A string type with optional constraints. */
|
|
33
36
|
export type StringTypeDef = {
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
constraint?: StringConstraint;
|
|
38
|
+
suggestions?: Array<StringSuggestion>;
|
|
36
39
|
};
|
|
37
40
|
/** A boolean type. */
|
|
38
41
|
export type BooleanTypeDef = Record<never, never>;
|
|
@@ -52,235 +55,235 @@ export type GeopointTypeDef = Record<never, never>;
|
|
|
52
55
|
export type UnknownTypeDef = Record<never, never>;
|
|
53
56
|
/** A list/array type. */
|
|
54
57
|
export type ListTypeDef = {
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
/** The type of elements in the list. */
|
|
59
|
+
elementType: TypeDef;
|
|
57
60
|
};
|
|
58
61
|
/** A map/record type. */
|
|
59
62
|
export type MapTypeDef = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
/** The type of keys (must be string right now). */
|
|
64
|
+
keyType: TypeDef;
|
|
65
|
+
/** The type of values. */
|
|
66
|
+
valueType: TypeDef;
|
|
64
67
|
};
|
|
65
68
|
/** Definition of a field in a struct. */
|
|
66
69
|
export type FieldDef = {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
/** The field name in code. */
|
|
71
|
+
name: string;
|
|
72
|
+
/** Human-readable name. */
|
|
73
|
+
displayName: string;
|
|
74
|
+
/** The field's type. */
|
|
75
|
+
type: TypeDef;
|
|
76
|
+
/** Optional description. */
|
|
77
|
+
description?: string;
|
|
78
|
+
deprecated?: Deprecation;
|
|
76
79
|
};
|
|
77
80
|
/** A struct type with named fields. */
|
|
78
81
|
export type StructTypeDef = {
|
|
79
|
-
|
|
82
|
+
fields: Array<FieldDef>;
|
|
80
83
|
};
|
|
81
84
|
/** Definition of a variant in a discriminated union. */
|
|
82
85
|
export type VariantDef = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
/** The variant's discriminator value. */
|
|
87
|
+
name: string;
|
|
88
|
+
/** The variant's payload type. */
|
|
89
|
+
type: TypeDef;
|
|
87
90
|
};
|
|
88
91
|
/** A discriminated union type. */
|
|
89
92
|
export type UnionTypeDef = {
|
|
90
|
-
|
|
93
|
+
variants: Array<VariantDef>;
|
|
91
94
|
};
|
|
92
95
|
/** Wraps a type to make it optional. */
|
|
93
96
|
export type OptionalTypeDef = {
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
/** The wrapped type. */
|
|
98
|
+
type: TypeDef;
|
|
96
99
|
};
|
|
97
100
|
/** A result type (ok or error). */
|
|
98
101
|
export type ResultTypeDef = {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
/** The type of the success value. */
|
|
103
|
+
okType: TypeDef;
|
|
104
|
+
/** The type of the error value. */
|
|
105
|
+
errType: TypeDef;
|
|
103
106
|
};
|
|
104
107
|
/** A reference to a named type. */
|
|
105
108
|
export type TypeRef = {
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
/** The name of the referenced type. */
|
|
110
|
+
name: string;
|
|
108
111
|
};
|
|
109
112
|
/** A type definition. Can be a primitive, collection, struct, union, optional, result, or reference. */
|
|
110
|
-
export type TypeDef =
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
113
|
+
export type TypeDef = Union<{
|
|
114
|
+
string: StringTypeDef;
|
|
115
|
+
boolean: BooleanTypeDef;
|
|
116
|
+
integer: IntegerTypeDef;
|
|
117
|
+
float: FloatTypeDef;
|
|
118
|
+
double: DoubleTypeDef;
|
|
119
|
+
date: DateTypeDef;
|
|
120
|
+
timestamp: TimestampTypeDef;
|
|
121
|
+
geopoint: GeopointTypeDef;
|
|
122
|
+
list: ListTypeDef;
|
|
123
|
+
map: MapTypeDef;
|
|
124
|
+
struct: StructTypeDef;
|
|
125
|
+
union: UnionTypeDef;
|
|
126
|
+
optional: OptionalTypeDef;
|
|
127
|
+
result: ResultTypeDef;
|
|
128
|
+
ref: TypeRef;
|
|
129
|
+
attachment: AttachmentTypeDef;
|
|
130
|
+
objectReference: ObjectReferenceTypeDef;
|
|
131
|
+
unknown: UnknownTypeDef;
|
|
129
132
|
}>;
|
|
130
133
|
/** A named type definition that can be referenced by other types. */
|
|
131
134
|
export type NamedTypeDef = {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
/** The type's name for use in code. */
|
|
136
|
+
name: string;
|
|
137
|
+
/** Optional documentation for the type. */
|
|
138
|
+
description?: string;
|
|
139
|
+
deprecated?: Deprecation;
|
|
140
|
+
/** The type definition. */
|
|
141
|
+
type: TypeDef;
|
|
139
142
|
};
|
|
140
143
|
/** A supported image media type. */
|
|
141
144
|
export type ImageMediaType = "image/bmp" | "image/tiff" | "image/nitf" | "image/jp2" | "image/jpeg" | "image/png" | "image/gif" | "image/svg+xml" | "image/webp";
|
|
142
145
|
/** Constrains intrinsic pixel dimensions. */
|
|
143
146
|
export type DimensionsConstraint = {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
width?: {
|
|
148
|
+
min?: integer;
|
|
149
|
+
max?: integer;
|
|
150
|
+
};
|
|
151
|
+
height?: {
|
|
152
|
+
min?: integer;
|
|
153
|
+
max?: integer;
|
|
154
|
+
};
|
|
152
155
|
};
|
|
153
156
|
/** Constraints specific to image attachments. */
|
|
154
157
|
export type ImageAttachmentConstraint = {
|
|
155
|
-
|
|
156
|
-
|
|
158
|
+
mediaTypes?: Array<ImageMediaType>;
|
|
159
|
+
dimensions?: DimensionsConstraint;
|
|
157
160
|
};
|
|
158
161
|
/** Content-specific attachment constraints. */
|
|
159
|
-
export type AttachmentContentConstraint =
|
|
160
|
-
|
|
162
|
+
export type AttachmentContentConstraint = Union<{
|
|
163
|
+
image: ImageAttachmentConstraint;
|
|
161
164
|
}>;
|
|
162
165
|
/** Constraints applied to an attachment. */
|
|
163
166
|
export type AttachmentConstraint = {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
size?: {
|
|
168
|
+
min?: double;
|
|
169
|
+
max?: double;
|
|
170
|
+
};
|
|
171
|
+
content?: AttachmentContentConstraint;
|
|
169
172
|
};
|
|
170
173
|
/** A file handle with optional constraints. */
|
|
171
174
|
export type AttachmentTypeDef = {
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
constraint?: AttachmentConstraint;
|
|
176
|
+
meta?: Record<string, unknown>;
|
|
174
177
|
};
|
|
175
178
|
/** A reference to an ontology object type. */
|
|
176
179
|
export type ObjectReferenceTypeDef = {
|
|
177
|
-
|
|
178
|
-
|
|
180
|
+
/** The referenced object type name. */
|
|
181
|
+
objectType: string;
|
|
179
182
|
};
|
|
180
183
|
/** A property on an Object type. */
|
|
181
184
|
export type PropertyDef = {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
185
|
+
/** The property's name. */
|
|
186
|
+
name: string;
|
|
187
|
+
/** Human-readable name. */
|
|
188
|
+
displayName: string;
|
|
189
|
+
/** The property's type. */
|
|
190
|
+
type: TypeDef;
|
|
191
|
+
/** Optional description. */
|
|
192
|
+
description?: string;
|
|
193
|
+
deprecated?: Deprecation;
|
|
191
194
|
};
|
|
192
195
|
/** An object type in the ontology. */
|
|
193
196
|
export type ObjectTypeDef = {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
197
|
+
/** The object type's programmatic name. */
|
|
198
|
+
name: string;
|
|
199
|
+
/** Human-readable name. */
|
|
200
|
+
displayName: string;
|
|
201
|
+
pluralDisplayName: string;
|
|
202
|
+
/** The name of the property that serves as primary key. */
|
|
203
|
+
primaryKey: string;
|
|
204
|
+
/** The optional property name used as the human-readable title for an object. */
|
|
205
|
+
title?: string;
|
|
206
|
+
/** Optional portable icon descriptor. */
|
|
207
|
+
icon?: IconDescriptor;
|
|
208
|
+
/** Optional display color independent of the icon. */
|
|
209
|
+
color?: string;
|
|
210
|
+
/** The object type's propertieo. */
|
|
211
|
+
properties: Array<PropertyDef>;
|
|
212
|
+
/** Optional description. */
|
|
213
|
+
description?: string;
|
|
214
|
+
deprecated?: Deprecation;
|
|
212
215
|
};
|
|
213
216
|
export type LinkTypeSideDef = {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
+
objectType: string;
|
|
218
|
+
name: string;
|
|
219
|
+
displayName: string;
|
|
217
220
|
};
|
|
218
221
|
/** The cardinality of a link from the source's perspective. */
|
|
219
222
|
export type LinkCardinality = "one" | "many";
|
|
220
223
|
/** A relationship between two object types. */
|
|
221
224
|
export type LinkTypeDef = {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
225
|
+
id: string;
|
|
226
|
+
source: LinkTypeSideDef;
|
|
227
|
+
target: LinkTypeSideDef;
|
|
228
|
+
/** The foreign key on the source. */
|
|
229
|
+
foreignKey: string;
|
|
230
|
+
/** How many sources are linked to the target. */
|
|
231
|
+
cardinality: "one" | "many";
|
|
229
232
|
};
|
|
230
233
|
/** A parameter of an Action type. */
|
|
231
234
|
export type ActionParameterDef = {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
235
|
+
/** The parameter's name. */
|
|
236
|
+
name: string;
|
|
237
|
+
/** Human-readable name. */
|
|
238
|
+
displayName: string;
|
|
239
|
+
/** The parameter's type. */
|
|
240
|
+
type: TypeDef;
|
|
241
|
+
/** Optional description. */
|
|
242
|
+
description?: string;
|
|
243
|
+
deprecated?: Deprecation;
|
|
244
|
+
/** The expression used when the caller does not provide a value. */
|
|
245
|
+
defaultValue?: Expression;
|
|
243
246
|
};
|
|
244
247
|
/** Reads a named input from the root expression scope. */
|
|
245
248
|
export type InputReferenceExpression = {
|
|
246
|
-
|
|
249
|
+
name: string;
|
|
247
250
|
};
|
|
248
251
|
/** Reads a named lexically scoped expression binding. */
|
|
249
252
|
export type LocalReferenceExpression = {
|
|
250
|
-
|
|
253
|
+
name: string;
|
|
251
254
|
};
|
|
252
255
|
/** Reads a named value from the expression context. */
|
|
253
256
|
export type ContextReferenceExpression = {
|
|
254
|
-
|
|
257
|
+
name: string;
|
|
255
258
|
};
|
|
256
259
|
/** Reads a structural path from a source expression. */
|
|
257
260
|
export type GetAtExpression = {
|
|
258
|
-
|
|
259
|
-
|
|
261
|
+
source: Expression;
|
|
262
|
+
path: Array<string>;
|
|
260
263
|
};
|
|
261
264
|
/** Resolves an object reference to its ontology object. */
|
|
262
265
|
export type ObjectLookupExpression = {
|
|
263
|
-
|
|
266
|
+
reference: Expression;
|
|
264
267
|
};
|
|
265
268
|
/** Follows one named to-one ontology link from a source object. */
|
|
266
269
|
export type LinkHopExpression = {
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
source: Expression;
|
|
271
|
+
link: string;
|
|
269
272
|
};
|
|
270
273
|
/** A named field constructed by a struct expression. */
|
|
271
274
|
export type StructExpressionField = {
|
|
272
|
-
|
|
273
|
-
|
|
275
|
+
name: string;
|
|
276
|
+
value: Expression;
|
|
274
277
|
};
|
|
275
278
|
/** Constructs a struct value from field expressions. */
|
|
276
279
|
export type StructExpression = {
|
|
277
|
-
|
|
280
|
+
fields: Array<StructExpressionField>;
|
|
278
281
|
};
|
|
279
282
|
/** Maps each element of a list to a new value. */
|
|
280
283
|
export type MapExpression = {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
+
source: Expression;
|
|
285
|
+
binding: string;
|
|
286
|
+
body: Expression;
|
|
284
287
|
};
|
|
285
288
|
/** Generates a UUID value. */
|
|
286
289
|
export type UuidExpression = Record<never, never>;
|
|
@@ -288,124 +291,126 @@ export type UuidExpression = Record<never, never>;
|
|
|
288
291
|
export type NowExpression = Record<never, never>;
|
|
289
292
|
/** A static literal value. */
|
|
290
293
|
export type LiteralExpression = {
|
|
291
|
-
|
|
292
|
-
|
|
294
|
+
/** The literal value. */
|
|
295
|
+
value: unknown;
|
|
293
296
|
};
|
|
294
297
|
/** An expression that resolves to a value. */
|
|
295
|
-
export type Expression =
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
298
|
+
export type Expression = Union<{
|
|
299
|
+
inputReference: InputReferenceExpression;
|
|
300
|
+
contextReference: ContextReferenceExpression;
|
|
301
|
+
localReference: LocalReferenceExpression;
|
|
302
|
+
getAt: GetAtExpression;
|
|
303
|
+
objectLookup: ObjectLookupExpression;
|
|
304
|
+
linkHop: LinkHopExpression;
|
|
305
|
+
struct: StructExpression;
|
|
306
|
+
map: MapExpression;
|
|
307
|
+
uuid: UuidExpression;
|
|
308
|
+
now: NowExpression;
|
|
309
|
+
literal: LiteralExpression;
|
|
307
310
|
}>;
|
|
308
311
|
/** Assigns an expression to a property path on an object written by an action. */
|
|
309
312
|
export type PropertyAssignment = {
|
|
310
|
-
|
|
311
|
-
|
|
313
|
+
property: Array<string>;
|
|
314
|
+
value: Expression;
|
|
312
315
|
};
|
|
313
316
|
/** Creates an object and assigns property values. */
|
|
314
317
|
export type CreateObjectActionLogicStep = {
|
|
315
|
-
|
|
316
|
-
|
|
318
|
+
objectType: string;
|
|
319
|
+
values: Array<PropertyAssignment>;
|
|
317
320
|
};
|
|
318
321
|
/** Updates a referenced object and assigns property values. */
|
|
319
322
|
export type UpdateObjectActionLogicStep = {
|
|
320
|
-
|
|
321
|
-
|
|
323
|
+
object: InputReferenceExpression;
|
|
324
|
+
values: Array<PropertyAssignment>;
|
|
322
325
|
};
|
|
323
326
|
/** Deletes a referenced object. */
|
|
324
327
|
export type DeleteObjectActionLogicStep = {
|
|
325
|
-
|
|
328
|
+
object: InputReferenceExpression;
|
|
326
329
|
};
|
|
327
330
|
/** A logic step performed by an action. */
|
|
328
|
-
export type ActionLogicStep =
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
331
|
+
export type ActionLogicStep = Union<{
|
|
332
|
+
createObject: CreateObjectActionLogicStep;
|
|
333
|
+
updateObject: UpdateObjectActionLogicStep;
|
|
334
|
+
deleteObject: DeleteObjectActionLogicStep;
|
|
332
335
|
}>;
|
|
333
336
|
/** An action type in the ontology. */
|
|
334
337
|
export type ActionTypeDef = {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
338
|
+
/** Provider-specific metadata used to execute this action. */
|
|
339
|
+
meta?: Record<string, unknown>;
|
|
340
|
+
/** The object type's programmatic name. */
|
|
341
|
+
name: string;
|
|
342
|
+
/** Human-readable name. */
|
|
343
|
+
displayName: string;
|
|
344
|
+
/** Optional portable icon descriptor. */
|
|
345
|
+
icon?: IconDescriptor;
|
|
346
|
+
/** Optional display color independent of the icon. */
|
|
347
|
+
color?: string;
|
|
348
|
+
/** The action type's parametero. */
|
|
349
|
+
parameters: Array<ActionParameterDef>;
|
|
350
|
+
/** The action type's local logic stepo. */
|
|
351
|
+
logic: Array<ActionLogicStep>;
|
|
352
|
+
/** Optional description. */
|
|
353
|
+
description?: string;
|
|
354
|
+
deprecated?: Deprecation;
|
|
352
355
|
};
|
|
353
356
|
/** A parameter accepted by a query function type. */
|
|
354
357
|
export type QueryFunctionParameterDef = {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
358
|
+
/** The query function parameter's programmatic name. */
|
|
359
|
+
name: string;
|
|
360
|
+
/** Human-readable name. */
|
|
361
|
+
displayName: string;
|
|
362
|
+
type: TypeDef;
|
|
363
|
+
/** Optional description. */
|
|
364
|
+
description?: string;
|
|
365
|
+
deprecated?: Deprecation;
|
|
363
366
|
};
|
|
364
367
|
/** A runnable query function type in the ontology. */
|
|
365
368
|
export type QueryFunctionTypeDef = {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
369
|
+
/** The query function type's programmatic name. */
|
|
370
|
+
name: string;
|
|
371
|
+
/** Human-readable name. */
|
|
372
|
+
displayName: string;
|
|
373
|
+
/** The query function type's parameters. */
|
|
374
|
+
parameters: Array<QueryFunctionParameterDef>;
|
|
375
|
+
/** The query function type's return type. */
|
|
376
|
+
returnType: TypeDef;
|
|
377
|
+
/** Optional description. */
|
|
378
|
+
description?: string;
|
|
379
|
+
deprecated?: Deprecation;
|
|
377
380
|
};
|
|
378
381
|
/** Moves a property from one path to another. */
|
|
379
382
|
export type MoveLensOp = {
|
|
380
|
-
|
|
381
|
-
|
|
383
|
+
from: Array<string>;
|
|
384
|
+
to: Array<string>;
|
|
382
385
|
};
|
|
383
386
|
/** Retains only the selected top-level properties. */
|
|
384
387
|
export type SelectLensOp = {
|
|
385
|
-
|
|
388
|
+
properties: Array<string>;
|
|
386
389
|
};
|
|
387
390
|
/** One schema and value transformation operation. */
|
|
388
|
-
export type LensOp =
|
|
389
|
-
|
|
390
|
-
|
|
391
|
+
export type LensOp = Union<{
|
|
392
|
+
move: MoveLensOp;
|
|
393
|
+
select: SelectLensOp;
|
|
391
394
|
}>;
|
|
392
395
|
/** An ordered sequence of source-to-target transformation operations. */
|
|
393
396
|
export type Lens = {
|
|
394
|
-
|
|
397
|
+
operations: Array<LensOp>;
|
|
395
398
|
};
|
|
396
399
|
/** The root ontology definition containing all type definitions. */
|
|
397
400
|
export type OntologyIR = {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
};
|
|
401
|
+
/** Named, reusable value types. */
|
|
402
|
+
types: Array<NamedTypeDef>;
|
|
403
|
+
/** Object type definitions. */
|
|
404
|
+
objectTypes: Array<ObjectTypeDef>;
|
|
405
|
+
/** Relationship definitions between object types. */
|
|
406
|
+
linkTypes: Array<LinkTypeDef>;
|
|
407
|
+
/** Action type definitions. */
|
|
408
|
+
actionTypes: Array<ActionTypeDef>;
|
|
409
|
+
/** Query function type definitions. */
|
|
410
|
+
queryFunctionTypes: Array<QueryFunctionTypeDef>;
|
|
411
|
+
/** Optional typed execution context available to ontology expressions. */
|
|
412
|
+
contextType?: TypeDef;
|
|
413
|
+
};
|
|
414
|
+
//#endregion
|
|
415
|
+
export { types_d_exports };
|
|
411
416
|
//# sourceMappingURL=types.d.ts.map
|