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