@contember/binding 2.0.0-alpha.16 → 2.0.0-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/index.cjs +13 -116
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +3 -106
- package/dist/development/index.js.map +1 -1
- package/dist/production/index.cjs +13 -116
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +3 -106
- package/dist/production/index.js.map +1 -1
- package/dist/types/index.d.ts +3 -11
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -10
- package/src/index.ts +3 -14
- package/src/tsconfig.json +3 -1
- package/dist/development/src/BindingError.cjs +0 -10
- package/dist/development/src/BindingError.cjs.map +0 -1
- package/dist/development/src/BindingError.js +0 -10
- package/dist/development/src/BindingError.js.map +0 -1
- package/dist/development/src/accessorTree/NormalizedPersistedData.cjs +0 -10
- package/dist/development/src/accessorTree/NormalizedPersistedData.cjs.map +0 -1
- package/dist/development/src/accessorTree/NormalizedPersistedData.js +0 -10
- package/dist/development/src/accessorTree/NormalizedPersistedData.js.map +0 -1
- package/dist/development/src/accessorTree/RuntimeId.cjs +0 -61
- package/dist/development/src/accessorTree/RuntimeId.cjs.map +0 -1
- package/dist/development/src/accessorTree/RuntimeId.js +0 -61
- package/dist/development/src/accessorTree/RuntimeId.js.map +0 -1
- package/dist/development/src/accessors/EntityAccessor.cjs +0 -179
- package/dist/development/src/accessors/EntityAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/EntityAccessor.js +0 -179
- package/dist/development/src/accessors/EntityAccessor.js.map +0 -1
- package/dist/development/src/accessors/EntityListAccessor.cjs +0 -108
- package/dist/development/src/accessors/EntityListAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/EntityListAccessor.js +0 -108
- package/dist/development/src/accessors/EntityListAccessor.js.map +0 -1
- package/dist/development/src/accessors/ErrorAccessor.cjs +0 -16
- package/dist/development/src/accessors/ErrorAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/ErrorAccessor.js +0 -16
- package/dist/development/src/accessors/ErrorAccessor.js.map +0 -1
- package/dist/development/src/accessors/FieldAccessor.cjs +0 -62
- package/dist/development/src/accessors/FieldAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/FieldAccessor.js +0 -62
- package/dist/development/src/accessors/FieldAccessor.js.map +0 -1
- package/dist/development/src/accessors/TreeRootAccessor.cjs +0 -14
- package/dist/development/src/accessors/TreeRootAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/TreeRootAccessor.js +0 -14
- package/dist/development/src/accessors/TreeRootAccessor.js.map +0 -1
- package/dist/development/src/bindingTypes.cjs +0 -9
- package/dist/development/src/bindingTypes.cjs.map +0 -1
- package/dist/development/src/bindingTypes.js +0 -9
- package/dist/development/src/bindingTypes.js.map +0 -1
- package/dist/development/src/core/AccessorErrorManager.cjs +0 -204
- package/dist/development/src/core/AccessorErrorManager.cjs.map +0 -1
- package/dist/development/src/core/AccessorErrorManager.js +0 -204
- package/dist/development/src/core/AccessorErrorManager.js.map +0 -1
- package/dist/development/src/core/Config.cjs +0 -29
- package/dist/development/src/core/Config.cjs.map +0 -1
- package/dist/development/src/core/Config.js +0 -29
- package/dist/development/src/core/Config.js.map +0 -1
- package/dist/development/src/core/DataBinding.cjs +0 -348
- package/dist/development/src/core/DataBinding.cjs.map +0 -1
- package/dist/development/src/core/DataBinding.js +0 -348
- package/dist/development/src/core/DataBinding.js.map +0 -1
- package/dist/development/src/core/DirtinessTracker.cjs +0 -26
- package/dist/development/src/core/DirtinessTracker.cjs.map +0 -1
- package/dist/development/src/core/DirtinessTracker.js +0 -26
- package/dist/development/src/core/DirtinessTracker.js.map +0 -1
- package/dist/development/src/core/ErrorsPreprocessor.cjs +0 -180
- package/dist/development/src/core/ErrorsPreprocessor.cjs.map +0 -1
- package/dist/development/src/core/ErrorsPreprocessor.js +0 -180
- package/dist/development/src/core/ErrorsPreprocessor.js.map +0 -1
- package/dist/development/src/core/EventManager.cjs +0 -434
- package/dist/development/src/core/EventManager.cjs.map +0 -1
- package/dist/development/src/core/EventManager.js +0 -434
- package/dist/development/src/core/EventManager.js.map +0 -1
- package/dist/development/src/core/MarkerComparator.cjs +0 -79
- package/dist/development/src/core/MarkerComparator.cjs.map +0 -1
- package/dist/development/src/core/MarkerComparator.js +0 -79
- package/dist/development/src/core/MarkerComparator.js.map +0 -1
- package/dist/development/src/core/MarkerMerger.cjs +0 -256
- package/dist/development/src/core/MarkerMerger.cjs.map +0 -1
- package/dist/development/src/core/MarkerMerger.js +0 -256
- package/dist/development/src/core/MarkerMerger.js.map +0 -1
- package/dist/development/src/core/MutationGenerator.cjs +0 -662
- package/dist/development/src/core/MutationGenerator.cjs.map +0 -1
- package/dist/development/src/core/MutationGenerator.js +0 -662
- package/dist/development/src/core/MutationGenerator.js.map +0 -1
- package/dist/development/src/core/QueryGenerator.cjs +0 -113
- package/dist/development/src/core/QueryGenerator.cjs.map +0 -1
- package/dist/development/src/core/QueryGenerator.js +0 -113
- package/dist/development/src/core/QueryGenerator.js.map +0 -1
- package/dist/development/src/core/RealmKeyGenerator.cjs +0 -42
- package/dist/development/src/core/RealmKeyGenerator.cjs.map +0 -1
- package/dist/development/src/core/RealmKeyGenerator.js +0 -42
- package/dist/development/src/core/RealmKeyGenerator.js.map +0 -1
- package/dist/development/src/core/RequestResponseNormalizer.cjs +0 -128
- package/dist/development/src/core/RequestResponseNormalizer.cjs.map +0 -1
- package/dist/development/src/core/RequestResponseNormalizer.js +0 -128
- package/dist/development/src/core/RequestResponseNormalizer.js.map +0 -1
- package/dist/development/src/core/StateInitializer.cjs +0 -387
- package/dist/development/src/core/StateInitializer.cjs.map +0 -1
- package/dist/development/src/core/StateInitializer.js +0 -387
- package/dist/development/src/core/StateInitializer.js.map +0 -1
- package/dist/development/src/core/TreeAugmenter.cjs +0 -213
- package/dist/development/src/core/TreeAugmenter.cjs.map +0 -1
- package/dist/development/src/core/TreeAugmenter.js +0 -213
- package/dist/development/src/core/TreeAugmenter.js.map +0 -1
- package/dist/development/src/core/TreeFilterGenerator.cjs +0 -82
- package/dist/development/src/core/TreeFilterGenerator.cjs.map +0 -1
- package/dist/development/src/core/TreeFilterGenerator.js +0 -82
- package/dist/development/src/core/TreeFilterGenerator.js.map +0 -1
- package/dist/development/src/core/TreeParameterMerger.cjs +0 -304
- package/dist/development/src/core/TreeParameterMerger.cjs.map +0 -1
- package/dist/development/src/core/TreeParameterMerger.js +0 -304
- package/dist/development/src/core/TreeParameterMerger.js.map +0 -1
- package/dist/development/src/core/TreeStore.cjs +0 -176
- package/dist/development/src/core/TreeStore.cjs.map +0 -1
- package/dist/development/src/core/TreeStore.js +0 -176
- package/dist/development/src/core/TreeStore.js.map +0 -1
- package/dist/development/src/core/VariableInputTransformer.cjs +0 -24
- package/dist/development/src/core/VariableInputTransformer.cjs.map +0 -1
- package/dist/development/src/core/VariableInputTransformer.js +0 -24
- package/dist/development/src/core/VariableInputTransformer.js.map +0 -1
- package/dist/development/src/core/exceptions/ErrorLocator.cjs +0 -59
- package/dist/development/src/core/exceptions/ErrorLocator.cjs.map +0 -1
- package/dist/development/src/core/exceptions/ErrorLocator.js +0 -59
- package/dist/development/src/core/exceptions/ErrorLocator.js.map +0 -1
- package/dist/development/src/core/exceptions/LocalizedBindingError.cjs +0 -14
- package/dist/development/src/core/exceptions/LocalizedBindingError.cjs.map +0 -1
- package/dist/development/src/core/exceptions/LocalizedBindingError.js +0 -14
- package/dist/development/src/core/exceptions/LocalizedBindingError.js.map +0 -1
- package/dist/development/src/core/exceptions/MarkerSugarer.cjs +0 -56
- package/dist/development/src/core/exceptions/MarkerSugarer.cjs.map +0 -1
- package/dist/development/src/core/exceptions/MarkerSugarer.js +0 -56
- package/dist/development/src/core/exceptions/MarkerSugarer.js.map +0 -1
- package/dist/development/src/core/exceptions/TreeParameterSugarer.cjs +0 -33
- package/dist/development/src/core/exceptions/TreeParameterSugarer.cjs.map +0 -1
- package/dist/development/src/core/exceptions/TreeParameterSugarer.js +0 -33
- package/dist/development/src/core/exceptions/TreeParameterSugarer.js.map +0 -1
- package/dist/development/src/core/factories/createBatchUpdatesOptions.cjs +0 -20
- package/dist/development/src/core/factories/createBatchUpdatesOptions.cjs.map +0 -1
- package/dist/development/src/core/factories/createBatchUpdatesOptions.js +0 -20
- package/dist/development/src/core/factories/createBatchUpdatesOptions.js.map +0 -1
- package/dist/development/src/core/operations/EntityOperations.cjs +0 -232
- package/dist/development/src/core/operations/EntityOperations.cjs.map +0 -1
- package/dist/development/src/core/operations/EntityOperations.js +0 -232
- package/dist/development/src/core/operations/EntityOperations.js.map +0 -1
- package/dist/development/src/core/operations/FieldOperations.cjs +0 -96
- package/dist/development/src/core/operations/FieldOperations.cjs.map +0 -1
- package/dist/development/src/core/operations/FieldOperations.js +0 -96
- package/dist/development/src/core/operations/FieldOperations.js.map +0 -1
- package/dist/development/src/core/operations/ListOperations.cjs +0 -159
- package/dist/development/src/core/operations/ListOperations.cjs.map +0 -1
- package/dist/development/src/core/operations/ListOperations.js +0 -159
- package/dist/development/src/core/operations/ListOperations.js.map +0 -1
- package/dist/development/src/core/operations/OperationsHelpers.cjs +0 -85
- package/dist/development/src/core/operations/OperationsHelpers.cjs.map +0 -1
- package/dist/development/src/core/operations/OperationsHelpers.js +0 -85
- package/dist/development/src/core/operations/OperationsHelpers.js.map +0 -1
- package/dist/development/src/core/requestAliases/MutationAlias.cjs +0 -14
- package/dist/development/src/core/requestAliases/MutationAlias.cjs.map +0 -1
- package/dist/development/src/core/requestAliases/MutationAlias.js +0 -14
- package/dist/development/src/core/requestAliases/MutationAlias.js.map +0 -1
- package/dist/development/src/core/schema/Schema.cjs +0 -39
- package/dist/development/src/core/schema/Schema.cjs.map +0 -1
- package/dist/development/src/core/schema/Schema.js +0 -39
- package/dist/development/src/core/schema/Schema.js.map +0 -1
- package/dist/development/src/core/schema/SchemaLoader.cjs +0 -25
- package/dist/development/src/core/schema/SchemaLoader.cjs.map +0 -1
- package/dist/development/src/core/schema/SchemaLoader.js +0 -25
- package/dist/development/src/core/schema/SchemaLoader.js.map +0 -1
- package/dist/development/src/core/schema/SchemaPreprocessor.cjs +0 -38
- package/dist/development/src/core/schema/SchemaPreprocessor.cjs.map +0 -1
- package/dist/development/src/core/schema/SchemaPreprocessor.js +0 -38
- package/dist/development/src/core/schema/SchemaPreprocessor.js.map +0 -1
- package/dist/development/src/core/state/StateIterator.cjs +0 -100
- package/dist/development/src/core/state/StateIterator.cjs.map +0 -1
- package/dist/development/src/core/state/StateIterator.js +0 -100
- package/dist/development/src/core/state/StateIterator.js.map +0 -1
- package/dist/development/src/core/state/getEntityMarker.cjs +0 -5
- package/dist/development/src/core/state/getEntityMarker.cjs.map +0 -1
- package/dist/development/src/core/state/getEntityMarker.js +0 -5
- package/dist/development/src/core/state/getEntityMarker.js.map +0 -1
- package/dist/development/src/core/utils/createQueryBuilder.cjs +0 -32
- package/dist/development/src/core/utils/createQueryBuilder.cjs.map +0 -1
- package/dist/development/src/core/utils/createQueryBuilder.js +0 -32
- package/dist/development/src/core/utils/createQueryBuilder.js.map +0 -1
- package/dist/development/src/core/utils/getCombinedSignal.cjs +0 -33
- package/dist/development/src/core/utils/getCombinedSignal.cjs.map +0 -1
- package/dist/development/src/core/utils/getCombinedSignal.js +0 -33
- package/dist/development/src/core/utils/getCombinedSignal.js.map +0 -1
- package/dist/development/src/dao/Environment.cjs +0 -213
- package/dist/development/src/dao/Environment.cjs.map +0 -1
- package/dist/development/src/dao/Environment.js +0 -213
- package/dist/development/src/dao/Environment.js.map +0 -1
- package/dist/development/src/dao/TreeNodeEnvironmentFactory.cjs +0 -89
- package/dist/development/src/dao/TreeNodeEnvironmentFactory.cjs.map +0 -1
- package/dist/development/src/dao/TreeNodeEnvironmentFactory.js +0 -89
- package/dist/development/src/dao/TreeNodeEnvironmentFactory.js.map +0 -1
- package/dist/development/src/dao/VariableFieldValue.cjs +0 -9
- package/dist/development/src/dao/VariableFieldValue.cjs.map +0 -1
- package/dist/development/src/dao/VariableFieldValue.js +0 -9
- package/dist/development/src/dao/VariableFieldValue.js.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.cjs +0 -14
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.cjs.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.js +0 -14
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.js.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.cjs +0 -18
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.js +0 -18
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.js.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.cjs +0 -16
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.cjs.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.js +0 -16
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.js.map +0 -1
- package/dist/development/src/markers/EntityFieldMarkersContainer.cjs +0 -41
- package/dist/development/src/markers/EntityFieldMarkersContainer.cjs.map +0 -1
- package/dist/development/src/markers/EntityFieldMarkersContainer.js +0 -41
- package/dist/development/src/markers/EntityFieldMarkersContainer.js.map +0 -1
- package/dist/development/src/markers/EntityFieldsWithHoistablesMarker.cjs +0 -11
- package/dist/development/src/markers/EntityFieldsWithHoistablesMarker.cjs.map +0 -1
- package/dist/development/src/markers/EntityFieldsWithHoistablesMarker.js +0 -11
- package/dist/development/src/markers/EntityFieldsWithHoistablesMarker.js.map +0 -1
- package/dist/development/src/markers/EntityListSubTreeMarker.cjs +0 -20
- package/dist/development/src/markers/EntityListSubTreeMarker.cjs.map +0 -1
- package/dist/development/src/markers/EntityListSubTreeMarker.js +0 -20
- package/dist/development/src/markers/EntityListSubTreeMarker.js.map +0 -1
- package/dist/development/src/markers/EntitySubTreeMarker.cjs +0 -20
- package/dist/development/src/markers/EntitySubTreeMarker.cjs.map +0 -1
- package/dist/development/src/markers/EntitySubTreeMarker.js +0 -20
- package/dist/development/src/markers/EntitySubTreeMarker.js.map +0 -1
- package/dist/development/src/markers/FieldMarker.cjs +0 -17
- package/dist/development/src/markers/FieldMarker.cjs.map +0 -1
- package/dist/development/src/markers/FieldMarker.js +0 -17
- package/dist/development/src/markers/FieldMarker.js.map +0 -1
- package/dist/development/src/markers/HasManyRelationMarker.cjs +0 -26
- package/dist/development/src/markers/HasManyRelationMarker.cjs.map +0 -1
- package/dist/development/src/markers/HasManyRelationMarker.js +0 -26
- package/dist/development/src/markers/HasManyRelationMarker.js.map +0 -1
- package/dist/development/src/markers/HasOneRelationMarker.cjs +0 -20
- package/dist/development/src/markers/HasOneRelationMarker.cjs.map +0 -1
- package/dist/development/src/markers/HasOneRelationMarker.js +0 -20
- package/dist/development/src/markers/HasOneRelationMarker.js.map +0 -1
- package/dist/development/src/markers/MarkerTreeRoot.cjs +0 -10
- package/dist/development/src/markers/MarkerTreeRoot.cjs.map +0 -1
- package/dist/development/src/markers/MarkerTreeRoot.js +0 -10
- package/dist/development/src/markers/MarkerTreeRoot.js.map +0 -1
- package/dist/development/src/markers/ParentEntityMarker.cjs +0 -10
- package/dist/development/src/markers/ParentEntityMarker.cjs.map +0 -1
- package/dist/development/src/markers/ParentEntityMarker.js +0 -10
- package/dist/development/src/markers/ParentEntityMarker.js.map +0 -1
- package/dist/development/src/markers/PlaceholderGenerator.cjs +0 -23
- package/dist/development/src/markers/PlaceholderGenerator.cjs.map +0 -1
- package/dist/development/src/markers/PlaceholderGenerator.js +0 -23
- package/dist/development/src/markers/PlaceholderGenerator.js.map +0 -1
- package/dist/development/src/markers/PlaceholderParametersGenerator.cjs +0 -62
- package/dist/development/src/markers/PlaceholderParametersGenerator.cjs.map +0 -1
- package/dist/development/src/markers/PlaceholderParametersGenerator.js +0 -62
- package/dist/development/src/markers/PlaceholderParametersGenerator.js.map +0 -1
- package/dist/development/src/queryLanguage/CacheStore.cjs +0 -44
- package/dist/development/src/queryLanguage/CacheStore.cjs.map +0 -1
- package/dist/development/src/queryLanguage/CacheStore.js +0 -44
- package/dist/development/src/queryLanguage/CacheStore.js.map +0 -1
- package/dist/development/src/queryLanguage/MarkerFactory.cjs +0 -200
- package/dist/development/src/queryLanguage/MarkerFactory.cjs.map +0 -1
- package/dist/development/src/queryLanguage/MarkerFactory.js +0 -200
- package/dist/development/src/queryLanguage/MarkerFactory.js.map +0 -1
- package/dist/development/src/queryLanguage/Parser.cjs +0 -724
- package/dist/development/src/queryLanguage/Parser.cjs.map +0 -1
- package/dist/development/src/queryLanguage/Parser.js +0 -724
- package/dist/development/src/queryLanguage/Parser.js.map +0 -1
- package/dist/development/src/queryLanguage/QueryLanguage.cjs +0 -543
- package/dist/development/src/queryLanguage/QueryLanguage.cjs.map +0 -1
- package/dist/development/src/queryLanguage/QueryLanguage.js +0 -543
- package/dist/development/src/queryLanguage/QueryLanguage.js.map +0 -1
- package/dist/development/src/queryLanguage/QueryLanguageError.cjs +0 -6
- package/dist/development/src/queryLanguage/QueryLanguageError.cjs.map +0 -1
- package/dist/development/src/queryLanguage/QueryLanguageError.js +0 -6
- package/dist/development/src/queryLanguage/QueryLanguageError.js.map +0 -1
- package/dist/development/src/queryLanguage/tokenList.cjs +0 -151
- package/dist/development/src/queryLanguage/tokenList.cjs.map +0 -1
- package/dist/development/src/queryLanguage/tokenList.js +0 -152
- package/dist/development/src/queryLanguage/tokenList.js.map +0 -1
- package/dist/development/src/structures/BijectiveIndexedMap.cjs +0 -117
- package/dist/development/src/structures/BijectiveIndexedMap.cjs.map +0 -1
- package/dist/development/src/structures/BijectiveIndexedMap.js +0 -117
- package/dist/development/src/structures/BijectiveIndexedMap.js.map +0 -1
- package/dist/development/src/structures/LRUCache.cjs +0 -32
- package/dist/development/src/structures/LRUCache.cjs.map +0 -1
- package/dist/development/src/structures/LRUCache.js +0 -32
- package/dist/development/src/structures/LRUCache.js.map +0 -1
- package/dist/development/src/structures/WeakIdCache.cjs +0 -30
- package/dist/development/src/structures/WeakIdCache.cjs.map +0 -1
- package/dist/development/src/structures/WeakIdCache.js +0 -30
- package/dist/development/src/structures/WeakIdCache.js.map +0 -1
- package/dist/development/src/treeParameterHelpers/wrapFilterInHasOnes.cjs +0 -22
- package/dist/development/src/treeParameterHelpers/wrapFilterInHasOnes.cjs.map +0 -1
- package/dist/development/src/treeParameterHelpers/wrapFilterInHasOnes.js +0 -22
- package/dist/development/src/treeParameterHelpers/wrapFilterInHasOnes.js.map +0 -1
- package/dist/development/src/treeParameters/EntityCreationParameters.cjs +0 -8
- package/dist/development/src/treeParameters/EntityCreationParameters.cjs.map +0 -1
- package/dist/development/src/treeParameters/EntityCreationParameters.js +0 -8
- package/dist/development/src/treeParameters/EntityCreationParameters.js.map +0 -1
- package/dist/development/src/treeParameters/EntityListPreferences.cjs +0 -7
- package/dist/development/src/treeParameters/EntityListPreferences.cjs.map +0 -1
- package/dist/development/src/treeParameters/EntityListPreferences.js +0 -7
- package/dist/development/src/treeParameters/EntityListPreferences.js.map +0 -1
- package/dist/development/src/treeParameters/EventListenersStore.cjs +0 -70
- package/dist/development/src/treeParameters/EventListenersStore.cjs.map +0 -1
- package/dist/development/src/treeParameters/EventListenersStore.js +0 -70
- package/dist/development/src/treeParameters/EventListenersStore.js.map +0 -1
- package/dist/development/src/treeParameters/LeafField.cjs +0 -7
- package/dist/development/src/treeParameters/LeafField.cjs.map +0 -1
- package/dist/development/src/treeParameters/LeafField.js +0 -7
- package/dist/development/src/treeParameters/LeafField.js.map +0 -1
- package/dist/development/src/treeParameters/QualifiedEntityParameters.cjs +0 -7
- package/dist/development/src/treeParameters/QualifiedEntityParameters.cjs.map +0 -1
- package/dist/development/src/treeParameters/QualifiedEntityParameters.js +0 -7
- package/dist/development/src/treeParameters/QualifiedEntityParameters.js.map +0 -1
- package/dist/development/src/treeParameters/Relation.cjs +0 -7
- package/dist/development/src/treeParameters/Relation.cjs.map +0 -1
- package/dist/development/src/treeParameters/Relation.js +0 -7
- package/dist/development/src/treeParameters/Relation.js.map +0 -1
- package/dist/development/src/utils/Hashing.cjs +0 -22
- package/dist/development/src/utils/Hashing.cjs.map +0 -1
- package/dist/development/src/utils/Hashing.js +0 -22
- package/dist/development/src/utils/Hashing.js.map +0 -1
- package/dist/development/src/utils/TreeNodeUtils.cjs +0 -77
- package/dist/development/src/utils/TreeNodeUtils.cjs.map +0 -1
- package/dist/development/src/utils/TreeNodeUtils.js +0 -77
- package/dist/development/src/utils/TreeNodeUtils.js.map +0 -1
- package/dist/development/src/utils/assert.cjs +0 -10
- package/dist/development/src/utils/assert.cjs.map +0 -1
- package/dist/development/src/utils/assert.js +0 -10
- package/dist/development/src/utils/assert.js.map +0 -1
- package/dist/development/src/utils/assertNever.cjs +0 -10
- package/dist/development/src/utils/assertNever.cjs.map +0 -1
- package/dist/development/src/utils/assertNever.js +0 -10
- package/dist/development/src/utils/assertNever.js.map +0 -1
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.cjs +0 -7
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.cjs.map +0 -1
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.js +0 -7
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.js.map +0 -1
- package/dist/development/src/utils/isEmptyObject.cjs +0 -12
- package/dist/development/src/utils/isEmptyObject.cjs.map +0 -1
- package/dist/development/src/utils/isEmptyObject.js +0 -12
- package/dist/development/src/utils/isEmptyObject.js.map +0 -1
- package/dist/development/src/utils/ucfirst.cjs +0 -5
- package/dist/development/src/utils/ucfirst.cjs.map +0 -1
- package/dist/development/src/utils/ucfirst.js +0 -5
- package/dist/development/src/utils/ucfirst.js.map +0 -1
- package/dist/production/src/BindingError.cjs +0 -10
- package/dist/production/src/BindingError.cjs.map +0 -1
- package/dist/production/src/BindingError.js +0 -10
- package/dist/production/src/BindingError.js.map +0 -1
- package/dist/production/src/accessorTree/NormalizedPersistedData.cjs +0 -10
- package/dist/production/src/accessorTree/NormalizedPersistedData.cjs.map +0 -1
- package/dist/production/src/accessorTree/NormalizedPersistedData.js +0 -10
- package/dist/production/src/accessorTree/NormalizedPersistedData.js.map +0 -1
- package/dist/production/src/accessorTree/RuntimeId.cjs +0 -61
- package/dist/production/src/accessorTree/RuntimeId.cjs.map +0 -1
- package/dist/production/src/accessorTree/RuntimeId.js +0 -61
- package/dist/production/src/accessorTree/RuntimeId.js.map +0 -1
- package/dist/production/src/accessors/EntityAccessor.cjs +0 -179
- package/dist/production/src/accessors/EntityAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/EntityAccessor.js +0 -179
- package/dist/production/src/accessors/EntityAccessor.js.map +0 -1
- package/dist/production/src/accessors/EntityListAccessor.cjs +0 -108
- package/dist/production/src/accessors/EntityListAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/EntityListAccessor.js +0 -108
- package/dist/production/src/accessors/EntityListAccessor.js.map +0 -1
- package/dist/production/src/accessors/ErrorAccessor.cjs +0 -16
- package/dist/production/src/accessors/ErrorAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/ErrorAccessor.js +0 -16
- package/dist/production/src/accessors/ErrorAccessor.js.map +0 -1
- package/dist/production/src/accessors/FieldAccessor.cjs +0 -62
- package/dist/production/src/accessors/FieldAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/FieldAccessor.js +0 -62
- package/dist/production/src/accessors/FieldAccessor.js.map +0 -1
- package/dist/production/src/accessors/TreeRootAccessor.cjs +0 -14
- package/dist/production/src/accessors/TreeRootAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/TreeRootAccessor.js +0 -14
- package/dist/production/src/accessors/TreeRootAccessor.js.map +0 -1
- package/dist/production/src/bindingTypes.cjs +0 -9
- package/dist/production/src/bindingTypes.cjs.map +0 -1
- package/dist/production/src/bindingTypes.js +0 -9
- package/dist/production/src/bindingTypes.js.map +0 -1
- package/dist/production/src/core/AccessorErrorManager.cjs +0 -204
- package/dist/production/src/core/AccessorErrorManager.cjs.map +0 -1
- package/dist/production/src/core/AccessorErrorManager.js +0 -204
- package/dist/production/src/core/AccessorErrorManager.js.map +0 -1
- package/dist/production/src/core/Config.cjs +0 -29
- package/dist/production/src/core/Config.cjs.map +0 -1
- package/dist/production/src/core/Config.js +0 -29
- package/dist/production/src/core/Config.js.map +0 -1
- package/dist/production/src/core/DataBinding.cjs +0 -348
- package/dist/production/src/core/DataBinding.cjs.map +0 -1
- package/dist/production/src/core/DataBinding.js +0 -348
- package/dist/production/src/core/DataBinding.js.map +0 -1
- package/dist/production/src/core/DirtinessTracker.cjs +0 -26
- package/dist/production/src/core/DirtinessTracker.cjs.map +0 -1
- package/dist/production/src/core/DirtinessTracker.js +0 -26
- package/dist/production/src/core/DirtinessTracker.js.map +0 -1
- package/dist/production/src/core/ErrorsPreprocessor.cjs +0 -180
- package/dist/production/src/core/ErrorsPreprocessor.cjs.map +0 -1
- package/dist/production/src/core/ErrorsPreprocessor.js +0 -180
- package/dist/production/src/core/ErrorsPreprocessor.js.map +0 -1
- package/dist/production/src/core/EventManager.cjs +0 -408
- package/dist/production/src/core/EventManager.cjs.map +0 -1
- package/dist/production/src/core/EventManager.js +0 -408
- package/dist/production/src/core/EventManager.js.map +0 -1
- package/dist/production/src/core/MarkerComparator.cjs +0 -79
- package/dist/production/src/core/MarkerComparator.cjs.map +0 -1
- package/dist/production/src/core/MarkerComparator.js +0 -79
- package/dist/production/src/core/MarkerComparator.js.map +0 -1
- package/dist/production/src/core/MarkerMerger.cjs +0 -256
- package/dist/production/src/core/MarkerMerger.cjs.map +0 -1
- package/dist/production/src/core/MarkerMerger.js +0 -256
- package/dist/production/src/core/MarkerMerger.js.map +0 -1
- package/dist/production/src/core/MutationGenerator.cjs +0 -662
- package/dist/production/src/core/MutationGenerator.cjs.map +0 -1
- package/dist/production/src/core/MutationGenerator.js +0 -662
- package/dist/production/src/core/MutationGenerator.js.map +0 -1
- package/dist/production/src/core/QueryGenerator.cjs +0 -113
- package/dist/production/src/core/QueryGenerator.cjs.map +0 -1
- package/dist/production/src/core/QueryGenerator.js +0 -113
- package/dist/production/src/core/QueryGenerator.js.map +0 -1
- package/dist/production/src/core/RealmKeyGenerator.cjs +0 -42
- package/dist/production/src/core/RealmKeyGenerator.cjs.map +0 -1
- package/dist/production/src/core/RealmKeyGenerator.js +0 -42
- package/dist/production/src/core/RealmKeyGenerator.js.map +0 -1
- package/dist/production/src/core/RequestResponseNormalizer.cjs +0 -128
- package/dist/production/src/core/RequestResponseNormalizer.cjs.map +0 -1
- package/dist/production/src/core/RequestResponseNormalizer.js +0 -128
- package/dist/production/src/core/RequestResponseNormalizer.js.map +0 -1
- package/dist/production/src/core/StateInitializer.cjs +0 -387
- package/dist/production/src/core/StateInitializer.cjs.map +0 -1
- package/dist/production/src/core/StateInitializer.js +0 -387
- package/dist/production/src/core/StateInitializer.js.map +0 -1
- package/dist/production/src/core/TreeAugmenter.cjs +0 -213
- package/dist/production/src/core/TreeAugmenter.cjs.map +0 -1
- package/dist/production/src/core/TreeAugmenter.js +0 -213
- package/dist/production/src/core/TreeAugmenter.js.map +0 -1
- package/dist/production/src/core/TreeFilterGenerator.cjs +0 -82
- package/dist/production/src/core/TreeFilterGenerator.cjs.map +0 -1
- package/dist/production/src/core/TreeFilterGenerator.js +0 -82
- package/dist/production/src/core/TreeFilterGenerator.js.map +0 -1
- package/dist/production/src/core/TreeParameterMerger.cjs +0 -304
- package/dist/production/src/core/TreeParameterMerger.cjs.map +0 -1
- package/dist/production/src/core/TreeParameterMerger.js +0 -304
- package/dist/production/src/core/TreeParameterMerger.js.map +0 -1
- package/dist/production/src/core/TreeStore.cjs +0 -176
- package/dist/production/src/core/TreeStore.cjs.map +0 -1
- package/dist/production/src/core/TreeStore.js +0 -176
- package/dist/production/src/core/TreeStore.js.map +0 -1
- package/dist/production/src/core/VariableInputTransformer.cjs +0 -24
- package/dist/production/src/core/VariableInputTransformer.cjs.map +0 -1
- package/dist/production/src/core/VariableInputTransformer.js +0 -24
- package/dist/production/src/core/VariableInputTransformer.js.map +0 -1
- package/dist/production/src/core/exceptions/ErrorLocator.cjs +0 -59
- package/dist/production/src/core/exceptions/ErrorLocator.cjs.map +0 -1
- package/dist/production/src/core/exceptions/ErrorLocator.js +0 -59
- package/dist/production/src/core/exceptions/ErrorLocator.js.map +0 -1
- package/dist/production/src/core/exceptions/LocalizedBindingError.cjs +0 -14
- package/dist/production/src/core/exceptions/LocalizedBindingError.cjs.map +0 -1
- package/dist/production/src/core/exceptions/LocalizedBindingError.js +0 -14
- package/dist/production/src/core/exceptions/LocalizedBindingError.js.map +0 -1
- package/dist/production/src/core/exceptions/MarkerSugarer.cjs +0 -56
- package/dist/production/src/core/exceptions/MarkerSugarer.cjs.map +0 -1
- package/dist/production/src/core/exceptions/MarkerSugarer.js +0 -56
- package/dist/production/src/core/exceptions/MarkerSugarer.js.map +0 -1
- package/dist/production/src/core/exceptions/TreeParameterSugarer.cjs +0 -33
- package/dist/production/src/core/exceptions/TreeParameterSugarer.cjs.map +0 -1
- package/dist/production/src/core/exceptions/TreeParameterSugarer.js +0 -33
- package/dist/production/src/core/exceptions/TreeParameterSugarer.js.map +0 -1
- package/dist/production/src/core/factories/createBatchUpdatesOptions.cjs +0 -20
- package/dist/production/src/core/factories/createBatchUpdatesOptions.cjs.map +0 -1
- package/dist/production/src/core/factories/createBatchUpdatesOptions.js +0 -20
- package/dist/production/src/core/factories/createBatchUpdatesOptions.js.map +0 -1
- package/dist/production/src/core/operations/EntityOperations.cjs +0 -232
- package/dist/production/src/core/operations/EntityOperations.cjs.map +0 -1
- package/dist/production/src/core/operations/EntityOperations.js +0 -232
- package/dist/production/src/core/operations/EntityOperations.js.map +0 -1
- package/dist/production/src/core/operations/FieldOperations.cjs +0 -77
- package/dist/production/src/core/operations/FieldOperations.cjs.map +0 -1
- package/dist/production/src/core/operations/FieldOperations.js +0 -77
- package/dist/production/src/core/operations/FieldOperations.js.map +0 -1
- package/dist/production/src/core/operations/ListOperations.cjs +0 -159
- package/dist/production/src/core/operations/ListOperations.cjs.map +0 -1
- package/dist/production/src/core/operations/ListOperations.js +0 -159
- package/dist/production/src/core/operations/ListOperations.js.map +0 -1
- package/dist/production/src/core/operations/OperationsHelpers.cjs +0 -85
- package/dist/production/src/core/operations/OperationsHelpers.cjs.map +0 -1
- package/dist/production/src/core/operations/OperationsHelpers.js +0 -85
- package/dist/production/src/core/operations/OperationsHelpers.js.map +0 -1
- package/dist/production/src/core/requestAliases/MutationAlias.cjs +0 -14
- package/dist/production/src/core/requestAliases/MutationAlias.cjs.map +0 -1
- package/dist/production/src/core/requestAliases/MutationAlias.js +0 -14
- package/dist/production/src/core/requestAliases/MutationAlias.js.map +0 -1
- package/dist/production/src/core/schema/Schema.cjs +0 -39
- package/dist/production/src/core/schema/Schema.cjs.map +0 -1
- package/dist/production/src/core/schema/Schema.js +0 -39
- package/dist/production/src/core/schema/Schema.js.map +0 -1
- package/dist/production/src/core/schema/SchemaLoader.cjs +0 -25
- package/dist/production/src/core/schema/SchemaLoader.cjs.map +0 -1
- package/dist/production/src/core/schema/SchemaLoader.js +0 -25
- package/dist/production/src/core/schema/SchemaLoader.js.map +0 -1
- package/dist/production/src/core/schema/SchemaPreprocessor.cjs +0 -38
- package/dist/production/src/core/schema/SchemaPreprocessor.cjs.map +0 -1
- package/dist/production/src/core/schema/SchemaPreprocessor.js +0 -38
- package/dist/production/src/core/schema/SchemaPreprocessor.js.map +0 -1
- package/dist/production/src/core/state/StateIterator.cjs +0 -100
- package/dist/production/src/core/state/StateIterator.cjs.map +0 -1
- package/dist/production/src/core/state/StateIterator.js +0 -100
- package/dist/production/src/core/state/StateIterator.js.map +0 -1
- package/dist/production/src/core/state/getEntityMarker.cjs +0 -5
- package/dist/production/src/core/state/getEntityMarker.cjs.map +0 -1
- package/dist/production/src/core/state/getEntityMarker.js +0 -5
- package/dist/production/src/core/state/getEntityMarker.js.map +0 -1
- package/dist/production/src/core/utils/createQueryBuilder.cjs +0 -32
- package/dist/production/src/core/utils/createQueryBuilder.cjs.map +0 -1
- package/dist/production/src/core/utils/createQueryBuilder.js +0 -32
- package/dist/production/src/core/utils/createQueryBuilder.js.map +0 -1
- package/dist/production/src/core/utils/getCombinedSignal.cjs +0 -33
- package/dist/production/src/core/utils/getCombinedSignal.cjs.map +0 -1
- package/dist/production/src/core/utils/getCombinedSignal.js +0 -33
- package/dist/production/src/core/utils/getCombinedSignal.js.map +0 -1
- package/dist/production/src/dao/Environment.cjs +0 -213
- package/dist/production/src/dao/Environment.cjs.map +0 -1
- package/dist/production/src/dao/Environment.js +0 -213
- package/dist/production/src/dao/Environment.js.map +0 -1
- package/dist/production/src/dao/TreeNodeEnvironmentFactory.cjs +0 -89
- package/dist/production/src/dao/TreeNodeEnvironmentFactory.cjs.map +0 -1
- package/dist/production/src/dao/TreeNodeEnvironmentFactory.js +0 -89
- package/dist/production/src/dao/TreeNodeEnvironmentFactory.js.map +0 -1
- package/dist/production/src/dao/VariableFieldValue.cjs +0 -9
- package/dist/production/src/dao/VariableFieldValue.cjs.map +0 -1
- package/dist/production/src/dao/VariableFieldValue.js +0 -9
- package/dist/production/src/dao/VariableFieldValue.js.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.cjs +0 -14
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.cjs.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.js +0 -14
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.js.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.cjs +0 -18
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.js +0 -18
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.js.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.cjs +0 -16
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.cjs.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.js +0 -16
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.js.map +0 -1
- package/dist/production/src/markers/EntityFieldMarkersContainer.cjs +0 -41
- package/dist/production/src/markers/EntityFieldMarkersContainer.cjs.map +0 -1
- package/dist/production/src/markers/EntityFieldMarkersContainer.js +0 -41
- package/dist/production/src/markers/EntityFieldMarkersContainer.js.map +0 -1
- package/dist/production/src/markers/EntityFieldsWithHoistablesMarker.cjs +0 -11
- package/dist/production/src/markers/EntityFieldsWithHoistablesMarker.cjs.map +0 -1
- package/dist/production/src/markers/EntityFieldsWithHoistablesMarker.js +0 -11
- package/dist/production/src/markers/EntityFieldsWithHoistablesMarker.js.map +0 -1
- package/dist/production/src/markers/EntityListSubTreeMarker.cjs +0 -20
- package/dist/production/src/markers/EntityListSubTreeMarker.cjs.map +0 -1
- package/dist/production/src/markers/EntityListSubTreeMarker.js +0 -20
- package/dist/production/src/markers/EntityListSubTreeMarker.js.map +0 -1
- package/dist/production/src/markers/EntitySubTreeMarker.cjs +0 -20
- package/dist/production/src/markers/EntitySubTreeMarker.cjs.map +0 -1
- package/dist/production/src/markers/EntitySubTreeMarker.js +0 -20
- package/dist/production/src/markers/EntitySubTreeMarker.js.map +0 -1
- package/dist/production/src/markers/FieldMarker.cjs +0 -17
- package/dist/production/src/markers/FieldMarker.cjs.map +0 -1
- package/dist/production/src/markers/FieldMarker.js +0 -17
- package/dist/production/src/markers/FieldMarker.js.map +0 -1
- package/dist/production/src/markers/HasManyRelationMarker.cjs +0 -20
- package/dist/production/src/markers/HasManyRelationMarker.cjs.map +0 -1
- package/dist/production/src/markers/HasManyRelationMarker.js +0 -20
- package/dist/production/src/markers/HasManyRelationMarker.js.map +0 -1
- package/dist/production/src/markers/HasOneRelationMarker.cjs +0 -20
- package/dist/production/src/markers/HasOneRelationMarker.cjs.map +0 -1
- package/dist/production/src/markers/HasOneRelationMarker.js +0 -20
- package/dist/production/src/markers/HasOneRelationMarker.js.map +0 -1
- package/dist/production/src/markers/MarkerTreeRoot.cjs +0 -10
- package/dist/production/src/markers/MarkerTreeRoot.cjs.map +0 -1
- package/dist/production/src/markers/MarkerTreeRoot.js +0 -10
- package/dist/production/src/markers/MarkerTreeRoot.js.map +0 -1
- package/dist/production/src/markers/ParentEntityMarker.cjs +0 -10
- package/dist/production/src/markers/ParentEntityMarker.cjs.map +0 -1
- package/dist/production/src/markers/ParentEntityMarker.js +0 -10
- package/dist/production/src/markers/ParentEntityMarker.js.map +0 -1
- package/dist/production/src/markers/PlaceholderGenerator.cjs +0 -23
- package/dist/production/src/markers/PlaceholderGenerator.cjs.map +0 -1
- package/dist/production/src/markers/PlaceholderGenerator.js +0 -23
- package/dist/production/src/markers/PlaceholderGenerator.js.map +0 -1
- package/dist/production/src/markers/PlaceholderParametersGenerator.cjs +0 -62
- package/dist/production/src/markers/PlaceholderParametersGenerator.cjs.map +0 -1
- package/dist/production/src/markers/PlaceholderParametersGenerator.js +0 -62
- package/dist/production/src/markers/PlaceholderParametersGenerator.js.map +0 -1
- package/dist/production/src/queryLanguage/CacheStore.cjs +0 -44
- package/dist/production/src/queryLanguage/CacheStore.cjs.map +0 -1
- package/dist/production/src/queryLanguage/CacheStore.js +0 -44
- package/dist/production/src/queryLanguage/CacheStore.js.map +0 -1
- package/dist/production/src/queryLanguage/MarkerFactory.cjs +0 -200
- package/dist/production/src/queryLanguage/MarkerFactory.cjs.map +0 -1
- package/dist/production/src/queryLanguage/MarkerFactory.js +0 -200
- package/dist/production/src/queryLanguage/MarkerFactory.js.map +0 -1
- package/dist/production/src/queryLanguage/Parser.cjs +0 -721
- package/dist/production/src/queryLanguage/Parser.cjs.map +0 -1
- package/dist/production/src/queryLanguage/Parser.js +0 -721
- package/dist/production/src/queryLanguage/Parser.js.map +0 -1
- package/dist/production/src/queryLanguage/QueryLanguage.cjs +0 -540
- package/dist/production/src/queryLanguage/QueryLanguage.cjs.map +0 -1
- package/dist/production/src/queryLanguage/QueryLanguage.js +0 -540
- package/dist/production/src/queryLanguage/QueryLanguage.js.map +0 -1
- package/dist/production/src/queryLanguage/QueryLanguageError.cjs +0 -6
- package/dist/production/src/queryLanguage/QueryLanguageError.cjs.map +0 -1
- package/dist/production/src/queryLanguage/QueryLanguageError.js +0 -6
- package/dist/production/src/queryLanguage/QueryLanguageError.js.map +0 -1
- package/dist/production/src/queryLanguage/tokenList.cjs +0 -151
- package/dist/production/src/queryLanguage/tokenList.cjs.map +0 -1
- package/dist/production/src/queryLanguage/tokenList.js +0 -152
- package/dist/production/src/queryLanguage/tokenList.js.map +0 -1
- package/dist/production/src/structures/BijectiveIndexedMap.cjs +0 -117
- package/dist/production/src/structures/BijectiveIndexedMap.cjs.map +0 -1
- package/dist/production/src/structures/BijectiveIndexedMap.js +0 -117
- package/dist/production/src/structures/BijectiveIndexedMap.js.map +0 -1
- package/dist/production/src/structures/LRUCache.cjs +0 -32
- package/dist/production/src/structures/LRUCache.cjs.map +0 -1
- package/dist/production/src/structures/LRUCache.js +0 -32
- package/dist/production/src/structures/LRUCache.js.map +0 -1
- package/dist/production/src/structures/WeakIdCache.cjs +0 -30
- package/dist/production/src/structures/WeakIdCache.cjs.map +0 -1
- package/dist/production/src/structures/WeakIdCache.js +0 -30
- package/dist/production/src/structures/WeakIdCache.js.map +0 -1
- package/dist/production/src/treeParameterHelpers/wrapFilterInHasOnes.cjs +0 -22
- package/dist/production/src/treeParameterHelpers/wrapFilterInHasOnes.cjs.map +0 -1
- package/dist/production/src/treeParameterHelpers/wrapFilterInHasOnes.js +0 -22
- package/dist/production/src/treeParameterHelpers/wrapFilterInHasOnes.js.map +0 -1
- package/dist/production/src/treeParameters/EntityCreationParameters.cjs +0 -8
- package/dist/production/src/treeParameters/EntityCreationParameters.cjs.map +0 -1
- package/dist/production/src/treeParameters/EntityCreationParameters.js +0 -8
- package/dist/production/src/treeParameters/EntityCreationParameters.js.map +0 -1
- package/dist/production/src/treeParameters/EntityListPreferences.cjs +0 -7
- package/dist/production/src/treeParameters/EntityListPreferences.cjs.map +0 -1
- package/dist/production/src/treeParameters/EntityListPreferences.js +0 -7
- package/dist/production/src/treeParameters/EntityListPreferences.js.map +0 -1
- package/dist/production/src/treeParameters/EventListenersStore.cjs +0 -70
- package/dist/production/src/treeParameters/EventListenersStore.cjs.map +0 -1
- package/dist/production/src/treeParameters/EventListenersStore.js +0 -70
- package/dist/production/src/treeParameters/EventListenersStore.js.map +0 -1
- package/dist/production/src/treeParameters/LeafField.cjs +0 -7
- package/dist/production/src/treeParameters/LeafField.cjs.map +0 -1
- package/dist/production/src/treeParameters/LeafField.js +0 -7
- package/dist/production/src/treeParameters/LeafField.js.map +0 -1
- package/dist/production/src/treeParameters/QualifiedEntityParameters.cjs +0 -7
- package/dist/production/src/treeParameters/QualifiedEntityParameters.cjs.map +0 -1
- package/dist/production/src/treeParameters/QualifiedEntityParameters.js +0 -7
- package/dist/production/src/treeParameters/QualifiedEntityParameters.js.map +0 -1
- package/dist/production/src/treeParameters/Relation.cjs +0 -7
- package/dist/production/src/treeParameters/Relation.cjs.map +0 -1
- package/dist/production/src/treeParameters/Relation.js +0 -7
- package/dist/production/src/treeParameters/Relation.js.map +0 -1
- package/dist/production/src/utils/Hashing.cjs +0 -22
- package/dist/production/src/utils/Hashing.cjs.map +0 -1
- package/dist/production/src/utils/Hashing.js +0 -22
- package/dist/production/src/utils/Hashing.js.map +0 -1
- package/dist/production/src/utils/TreeNodeUtils.cjs +0 -77
- package/dist/production/src/utils/TreeNodeUtils.cjs.map +0 -1
- package/dist/production/src/utils/TreeNodeUtils.js +0 -77
- package/dist/production/src/utils/TreeNodeUtils.js.map +0 -1
- package/dist/production/src/utils/assert.cjs +0 -10
- package/dist/production/src/utils/assert.cjs.map +0 -1
- package/dist/production/src/utils/assert.js +0 -10
- package/dist/production/src/utils/assert.js.map +0 -1
- package/dist/production/src/utils/assertNever.cjs +0 -10
- package/dist/production/src/utils/assertNever.cjs.map +0 -1
- package/dist/production/src/utils/assertNever.js +0 -10
- package/dist/production/src/utils/assertNever.js.map +0 -1
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.cjs +0 -7
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.cjs.map +0 -1
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.js +0 -7
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.js.map +0 -1
- package/dist/production/src/utils/isEmptyObject.cjs +0 -12
- package/dist/production/src/utils/isEmptyObject.cjs.map +0 -1
- package/dist/production/src/utils/isEmptyObject.js +0 -12
- package/dist/production/src/utils/isEmptyObject.js.map +0 -1
- package/dist/production/src/utils/ucfirst.cjs +0 -5
- package/dist/production/src/utils/ucfirst.cjs.map +0 -1
- package/dist/production/src/utils/ucfirst.js +0 -5
- package/dist/production/src/utils/ucfirst.js.map +0 -1
- package/dist/types/BindingError.d.ts +0 -4
- package/dist/types/BindingError.d.ts.map +0 -1
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts +0 -13
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts.map +0 -1
- package/dist/types/accessorTree/PersistResult.d.ts +0 -23
- package/dist/types/accessorTree/PersistResult.d.ts.map +0 -1
- package/dist/types/accessorTree/QueryRequestResponse.d.ts +0 -20
- package/dist/types/accessorTree/QueryRequestResponse.d.ts.map +0 -1
- package/dist/types/accessorTree/RuntimeId.d.ts +0 -35
- package/dist/types/accessorTree/RuntimeId.d.ts.map +0 -1
- package/dist/types/accessorTree/index.d.ts +0 -5
- package/dist/types/accessorTree/index.d.ts.map +0 -1
- package/dist/types/accessors/AsyncBatchUpdatesOptions.d.ts +0 -8
- package/dist/types/accessors/AsyncBatchUpdatesOptions.d.ts.map +0 -1
- package/dist/types/accessors/BatchUpdatesOptions.d.ts +0 -9
- package/dist/types/accessors/BatchUpdatesOptions.d.ts.map +0 -1
- package/dist/types/accessors/BindingConfig.d.ts +0 -6
- package/dist/types/accessors/BindingConfig.d.ts.map +0 -1
- package/dist/types/accessors/BindingOperations.d.ts +0 -12
- package/dist/types/accessors/BindingOperations.d.ts.map +0 -1
- package/dist/types/accessors/EntityAccessor.d.ts +0 -95
- package/dist/types/accessors/EntityAccessor.d.ts.map +0 -1
- package/dist/types/accessors/EntityListAccessor.d.ts +0 -88
- package/dist/types/accessors/EntityListAccessor.d.ts.map +0 -1
- package/dist/types/accessors/ErrorAccessor.d.ts +0 -29
- package/dist/types/accessors/ErrorAccessor.d.ts.map +0 -1
- package/dist/types/accessors/Errorable.d.ts +0 -5
- package/dist/types/accessors/Errorable.d.ts.map +0 -1
- package/dist/types/accessors/ExtendTree.d.ts +0 -9
- package/dist/types/accessors/ExtendTree.d.ts.map +0 -1
- package/dist/types/accessors/FieldAccessor.d.ts +0 -57
- package/dist/types/accessors/FieldAccessor.d.ts.map +0 -1
- package/dist/types/accessors/GetEntityByKey.d.ts +0 -3
- package/dist/types/accessors/GetEntityByKey.d.ts.map +0 -1
- package/dist/types/accessors/GetEntityListSubTree.d.ts +0 -5
- package/dist/types/accessors/GetEntityListSubTree.d.ts.map +0 -1
- package/dist/types/accessors/GetEntitySubTree.d.ts +0 -5
- package/dist/types/accessors/GetEntitySubTree.d.ts.map +0 -1
- package/dist/types/accessors/Persist.d.ts +0 -10
- package/dist/types/accessors/Persist.d.ts.map +0 -1
- package/dist/types/accessors/PersistErrorOptions.d.ts +0 -8
- package/dist/types/accessors/PersistErrorOptions.d.ts.map +0 -1
- package/dist/types/accessors/PersistSuccessOptions.d.ts +0 -5
- package/dist/types/accessors/PersistSuccessOptions.d.ts.map +0 -1
- package/dist/types/accessors/TreeRootAccessor.d.ts +0 -11
- package/dist/types/accessors/TreeRootAccessor.d.ts.map +0 -1
- package/dist/types/accessors/index.d.ts +0 -18
- package/dist/types/accessors/index.d.ts.map +0 -1
- package/dist/types/bindingTypes.d.ts +0 -4
- package/dist/types/bindingTypes.d.ts.map +0 -1
- package/dist/types/core/AccessorErrorManager.d.ts +0 -25
- package/dist/types/core/AccessorErrorManager.d.ts.map +0 -1
- package/dist/types/core/Config.d.ts +0 -9
- package/dist/types/core/Config.d.ts.map +0 -1
- package/dist/types/core/DataBinding.d.ts +0 -50
- package/dist/types/core/DataBinding.d.ts.map +0 -1
- package/dist/types/core/DirtinessTracker.d.ts +0 -9
- package/dist/types/core/DirtinessTracker.d.ts.map +0 -1
- package/dist/types/core/ErrorsPreprocessor.d.ts +0 -35
- package/dist/types/core/ErrorsPreprocessor.d.ts.map +0 -1
- package/dist/types/core/EventManager.d.ts +0 -57
- package/dist/types/core/EventManager.d.ts.map +0 -1
- package/dist/types/core/MarkerComparator.d.ts +0 -8
- package/dist/types/core/MarkerComparator.d.ts.map +0 -1
- package/dist/types/core/MarkerMerger.d.ts +0 -22
- package/dist/types/core/MarkerMerger.d.ts.map +0 -1
- package/dist/types/core/MutationGenerator.d.ts +0 -46
- package/dist/types/core/MutationGenerator.d.ts.map +0 -1
- package/dist/types/core/QueryGenerator.d.ts +0 -12
- package/dist/types/core/QueryGenerator.d.ts.map +0 -1
- package/dist/types/core/RealmKeyGenerator.d.ts +0 -11
- package/dist/types/core/RealmKeyGenerator.d.ts.map +0 -1
- package/dist/types/core/RequestResponseNormalizer.d.ts +0 -10
- package/dist/types/core/RequestResponseNormalizer.d.ts.map +0 -1
- package/dist/types/core/StateInitializer.d.ts +0 -34
- package/dist/types/core/StateInitializer.d.ts.map +0 -1
- package/dist/types/core/TreeAugmenter.d.ts +0 -22
- package/dist/types/core/TreeAugmenter.d.ts.map +0 -1
- package/dist/types/core/TreeFilterGenerator.d.ts +0 -13
- package/dist/types/core/TreeFilterGenerator.d.ts.map +0 -1
- package/dist/types/core/TreeParameterMerger.d.ts +0 -20
- package/dist/types/core/TreeParameterMerger.d.ts.map +0 -1
- package/dist/types/core/TreeStore.d.ts +0 -32
- package/dist/types/core/TreeStore.d.ts.map +0 -1
- package/dist/types/core/UpdateMetadata.d.ts +0 -4
- package/dist/types/core/UpdateMetadata.d.ts.map +0 -1
- package/dist/types/core/VariableInputTransformer.d.ts +0 -7
- package/dist/types/core/VariableInputTransformer.d.ts.map +0 -1
- package/dist/types/core/exceptions/ErrorLocator.d.ts +0 -8
- package/dist/types/core/exceptions/ErrorLocator.d.ts.map +0 -1
- package/dist/types/core/exceptions/LocalizedBindingError.d.ts +0 -9
- package/dist/types/core/exceptions/LocalizedBindingError.d.ts.map +0 -1
- package/dist/types/core/exceptions/MarkerSugarer.d.ts +0 -10
- package/dist/types/core/exceptions/MarkerSugarer.d.ts.map +0 -1
- package/dist/types/core/exceptions/RawMarkerPath.d.ts +0 -3
- package/dist/types/core/exceptions/RawMarkerPath.d.ts.map +0 -1
- package/dist/types/core/exceptions/TreeParameterSugarer.d.ts +0 -11
- package/dist/types/core/exceptions/TreeParameterSugarer.d.ts.map +0 -1
- package/dist/types/core/exceptions/index.d.ts +0 -6
- package/dist/types/core/exceptions/index.d.ts.map +0 -1
- package/dist/types/core/factories/createBatchUpdatesOptions.d.ts +0 -5
- package/dist/types/core/factories/createBatchUpdatesOptions.d.ts.map +0 -1
- package/dist/types/core/factories/index.d.ts +0 -2
- package/dist/types/core/factories/index.d.ts.map +0 -1
- package/dist/types/core/index.d.ts +0 -14
- package/dist/types/core/index.d.ts.map +0 -1
- package/dist/types/core/operations/EntityOperations.d.ts +0 -26
- package/dist/types/core/operations/EntityOperations.d.ts.map +0 -1
- package/dist/types/core/operations/FieldOperations.d.ts +0 -22
- package/dist/types/core/operations/FieldOperations.d.ts.map +0 -1
- package/dist/types/core/operations/ListOperations.d.ts +0 -33
- package/dist/types/core/operations/ListOperations.d.ts.map +0 -1
- package/dist/types/core/operations/OperationsHelpers.d.ts +0 -14
- package/dist/types/core/operations/OperationsHelpers.d.ts.map +0 -1
- package/dist/types/core/operations/index.d.ts +0 -4
- package/dist/types/core/operations/index.d.ts.map +0 -1
- package/dist/types/core/requestAliases/MutationAlias.d.ts +0 -6
- package/dist/types/core/requestAliases/MutationAlias.d.ts.map +0 -1
- package/dist/types/core/requestAliases/index.d.ts +0 -2
- package/dist/types/core/requestAliases/index.d.ts.map +0 -1
- package/dist/types/core/schema/RawSchema.d.ts +0 -7
- package/dist/types/core/schema/RawSchema.d.ts.map +0 -1
- package/dist/types/core/schema/RawSchemaEntity.d.ts +0 -13
- package/dist/types/core/schema/RawSchemaEntity.d.ts.map +0 -1
- package/dist/types/core/schema/RawSchemaEnum.d.ts +0 -6
- package/dist/types/core/schema/RawSchemaEnum.d.ts.map +0 -1
- package/dist/types/core/schema/Schema.d.ts +0 -21
- package/dist/types/core/schema/Schema.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaColumn.d.ts +0 -12
- package/dist/types/core/schema/SchemaColumn.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaColumnType.d.ts +0 -3
- package/dist/types/core/schema/SchemaColumnType.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaEntities.d.ts +0 -4
- package/dist/types/core/schema/SchemaEntities.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaEntity.d.ts +0 -10
- package/dist/types/core/schema/SchemaEntity.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaEnums.d.ts +0 -4
- package/dist/types/core/schema/SchemaEnums.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaField.d.ts +0 -4
- package/dist/types/core/schema/SchemaField.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaFields.d.ts +0 -4
- package/dist/types/core/schema/SchemaFields.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaLoader.d.ts +0 -8
- package/dist/types/core/schema/SchemaLoader.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaPreprocessor.d.ts +0 -9
- package/dist/types/core/schema/SchemaPreprocessor.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaRelation.d.ts +0 -24
- package/dist/types/core/schema/SchemaRelation.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaRelationOrderBy.d.ts +0 -5
- package/dist/types/core/schema/SchemaRelationOrderBy.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaStore.d.ts +0 -7
- package/dist/types/core/schema/SchemaStore.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaUniqueConstraint.d.ts +0 -5
- package/dist/types/core/schema/SchemaUniqueConstraint.d.ts.map +0 -1
- package/dist/types/core/schema/index.d.ts +0 -16
- package/dist/types/core/schema/index.d.ts.map +0 -1
- package/dist/types/core/state/EntityListState.d.ts +0 -29
- package/dist/types/core/state/EntityListState.d.ts.map +0 -1
- package/dist/types/core/state/EntityRealmState.d.ts +0 -44
- package/dist/types/core/state/EntityRealmState.d.ts.map +0 -1
- package/dist/types/core/state/EntityState.d.ts +0 -12
- package/dist/types/core/state/EntityState.d.ts.map +0 -1
- package/dist/types/core/state/FieldState.d.ts +0 -19
- package/dist/types/core/state/FieldState.d.ts.map +0 -1
- package/dist/types/core/state/StateIterator.d.ts +0 -14
- package/dist/types/core/state/StateIterator.d.ts.map +0 -1
- package/dist/types/core/state/StateNode.d.ts +0 -8
- package/dist/types/core/state/StateNode.d.ts.map +0 -1
- package/dist/types/core/state/getEntityMarker.d.ts +0 -3
- package/dist/types/core/state/getEntityMarker.d.ts.map +0 -1
- package/dist/types/core/state/index.d.ts +0 -8
- package/dist/types/core/state/index.d.ts.map +0 -1
- package/dist/types/core/utils/createQueryBuilder.d.ts +0 -4
- package/dist/types/core/utils/createQueryBuilder.d.ts.map +0 -1
- package/dist/types/core/utils/getCombinedSignal.d.ts +0 -2
- package/dist/types/core/utils/getCombinedSignal.d.ts.map +0 -1
- package/dist/types/core/utils/index.d.ts +0 -2
- package/dist/types/core/utils/index.d.ts.map +0 -1
- package/dist/types/dao/Environment.d.ts +0 -107
- package/dist/types/dao/Environment.d.ts.map +0 -1
- package/dist/types/dao/TreeNodeEnvironmentFactory.d.ts +0 -15
- package/dist/types/dao/TreeNodeEnvironmentFactory.d.ts.map +0 -1
- package/dist/types/dao/VariableFieldValue.d.ts +0 -5
- package/dist/types/dao/VariableFieldValue.d.ts.map +0 -1
- package/dist/types/dao/index.d.ts +0 -4
- package/dist/types/dao/index.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts +0 -7
- package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts +0 -10
- package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts +0 -10
- package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/index.d.ts +0 -3
- package/dist/types/fieldHelpers/helpers/index.d.ts.map +0 -1
- package/dist/types/fieldHelpers/index.d.ts +0 -2
- package/dist/types/fieldHelpers/index.d.ts.map +0 -1
- package/dist/types/markers/EntityFieldMarkers.d.ts +0 -7
- package/dist/types/markers/EntityFieldMarkers.d.ts.map +0 -1
- package/dist/types/markers/EntityFieldMarkersContainer.d.ts +0 -13
- package/dist/types/markers/EntityFieldMarkersContainer.d.ts.map +0 -1
- package/dist/types/markers/EntityFieldPlaceholders.d.ts +0 -3
- package/dist/types/markers/EntityFieldPlaceholders.d.ts.map +0 -1
- package/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts +0 -10
- package/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts.map +0 -1
- package/dist/types/markers/EntityListSubTreeMarker.d.ts +0 -12
- package/dist/types/markers/EntityListSubTreeMarker.d.ts.map +0 -1
- package/dist/types/markers/EntitySubTreeMarker.d.ts +0 -12
- package/dist/types/markers/EntitySubTreeMarker.d.ts.map +0 -1
- package/dist/types/markers/FieldMarker.d.ts +0 -14
- package/dist/types/markers/FieldMarker.d.ts.map +0 -1
- package/dist/types/markers/HasManyRelationMarker.d.ts +0 -12
- package/dist/types/markers/HasManyRelationMarker.d.ts.map +0 -1
- package/dist/types/markers/HasOneRelationMarker.d.ts +0 -12
- package/dist/types/markers/HasOneRelationMarker.d.ts.map +0 -1
- package/dist/types/markers/MarkerTreeRoot.d.ts +0 -8
- package/dist/types/markers/MarkerTreeRoot.d.ts.map +0 -1
- package/dist/types/markers/MeaningfulMarker.d.ts +0 -7
- package/dist/types/markers/MeaningfulMarker.d.ts.map +0 -1
- package/dist/types/markers/ParentEntityMarker.d.ts +0 -8
- package/dist/types/markers/ParentEntityMarker.d.ts.map +0 -1
- package/dist/types/markers/PlaceholderGenerator.d.ts +0 -10
- package/dist/types/markers/PlaceholderGenerator.d.ts.map +0 -1
- package/dist/types/markers/PlaceholderParametersGenerator.d.ts +0 -9
- package/dist/types/markers/PlaceholderParametersGenerator.d.ts.map +0 -1
- package/dist/types/markers/SubTreeMarkers.d.ts +0 -5
- package/dist/types/markers/SubTreeMarkers.d.ts.map +0 -1
- package/dist/types/markers/index.d.ts +0 -15
- package/dist/types/markers/index.d.ts.map +0 -1
- package/dist/types/queryLanguage/CacheStore.d.ts +0 -9
- package/dist/types/queryLanguage/CacheStore.d.ts.map +0 -1
- package/dist/types/queryLanguage/MarkerFactory.d.ts +0 -21
- package/dist/types/queryLanguage/MarkerFactory.d.ts.map +0 -1
- package/dist/types/queryLanguage/Parser.d.ts +0 -83
- package/dist/types/queryLanguage/Parser.d.ts.map +0 -1
- package/dist/types/queryLanguage/ParserResults.d.ts +0 -63
- package/dist/types/queryLanguage/ParserResults.d.ts.map +0 -1
- package/dist/types/queryLanguage/QueryLanguage.d.ts +0 -43
- package/dist/types/queryLanguage/QueryLanguage.d.ts.map +0 -1
- package/dist/types/queryLanguage/QueryLanguageError.d.ts +0 -3
- package/dist/types/queryLanguage/QueryLanguageError.d.ts.map +0 -1
- package/dist/types/queryLanguage/index.d.ts +0 -6
- package/dist/types/queryLanguage/index.d.ts.map +0 -1
- package/dist/types/queryLanguage/tokenList.d.ts +0 -36
- package/dist/types/queryLanguage/tokenList.d.ts.map +0 -1
- package/dist/types/structures/BijectiveIndexedMap.d.ts +0 -24
- package/dist/types/structures/BijectiveIndexedMap.d.ts.map +0 -1
- package/dist/types/structures/LRUCache.d.ts +0 -9
- package/dist/types/structures/LRUCache.d.ts.map +0 -1
- package/dist/types/structures/WeakIdCache.d.ts +0 -9
- package/dist/types/structures/WeakIdCache.d.ts.map +0 -1
- package/dist/types/structures/index.d.ts +0 -4
- package/dist/types/structures/index.d.ts.map +0 -1
- package/dist/types/treeParameterHelpers/index.d.ts +0 -2
- package/dist/types/treeParameterHelpers/index.d.ts.map +0 -1
- package/dist/types/treeParameterHelpers/wrapFilterInHasOnes.d.ts +0 -3
- package/dist/types/treeParameterHelpers/wrapFilterInHasOnes.d.ts.map +0 -1
- package/dist/types/treeParameters/AnyField.d.ts +0 -8
- package/dist/types/treeParameters/AnyField.d.ts.map +0 -1
- package/dist/types/treeParameters/EntityCreationParameters.d.ts +0 -13
- package/dist/types/treeParameters/EntityCreationParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/EntityListEventListeners.d.ts +0 -15
- package/dist/types/treeParameters/EntityListEventListeners.d.ts.map +0 -1
- package/dist/types/treeParameters/EntityListParameters.d.ts +0 -17
- package/dist/types/treeParameters/EntityListParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/EntityListPreferences.d.ts +0 -8
- package/dist/types/treeParameters/EntityListPreferences.d.ts.map +0 -1
- package/dist/types/treeParameters/EventListenersStore.d.ts +0 -33
- package/dist/types/treeParameters/EventListenersStore.d.ts.map +0 -1
- package/dist/types/treeParameters/FieldEventListeners.d.ts +0 -16
- package/dist/types/treeParameters/FieldEventListeners.d.ts.map +0 -1
- package/dist/types/treeParameters/HasManyRelation.d.ts +0 -10
- package/dist/types/treeParameters/HasManyRelation.d.ts.map +0 -1
- package/dist/types/treeParameters/HasOneRelation.d.ts +0 -13
- package/dist/types/treeParameters/HasOneRelation.d.ts.map +0 -1
- package/dist/types/treeParameters/LeafField.d.ts +0 -14
- package/dist/types/treeParameters/LeafField.d.ts.map +0 -1
- package/dist/types/treeParameters/ParentEntityParameters.d.ts +0 -8
- package/dist/types/treeParameters/ParentEntityParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedEntityList.d.ts +0 -19
- package/dist/types/treeParameters/QualifiedEntityList.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedEntityParameters.d.ts +0 -17
- package/dist/types/treeParameters/QualifiedEntityParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedFieldList.d.ts +0 -16
- package/dist/types/treeParameters/QualifiedFieldList.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedSingleEntity.d.ts +0 -20
- package/dist/types/treeParameters/QualifiedSingleEntity.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedSingleEntityParameters.d.ts +0 -8
- package/dist/types/treeParameters/QualifiedSingleEntityParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/Relation.d.ts +0 -15
- package/dist/types/treeParameters/Relation.d.ts.map +0 -1
- package/dist/types/treeParameters/RelativeEntityList.d.ts +0 -19
- package/dist/types/treeParameters/RelativeEntityList.d.ts.map +0 -1
- package/dist/types/treeParameters/RelativeSingleEntity.d.ts +0 -13
- package/dist/types/treeParameters/RelativeSingleEntity.d.ts.map +0 -1
- package/dist/types/treeParameters/RelativeSingleField.d.ts +0 -15
- package/dist/types/treeParameters/RelativeSingleField.d.ts.map +0 -1
- package/dist/types/treeParameters/SetOnCreate.d.ts +0 -4
- package/dist/types/treeParameters/SetOnCreate.d.ts.map +0 -1
- package/dist/types/treeParameters/SingleEntityEventListeners.d.ts +0 -16
- package/dist/types/treeParameters/SingleEntityEventListeners.d.ts.map +0 -1
- package/dist/types/treeParameters/SingleEntityParameters.d.ts +0 -8
- package/dist/types/treeParameters/SingleEntityParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts +0 -21
- package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts.map +0 -1
- package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts +0 -20
- package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts.map +0 -1
- package/dist/types/treeParameters/index.d.ts +0 -27
- package/dist/types/treeParameters/index.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Alias.d.ts +0 -2
- package/dist/types/treeParameters/primitives/Alias.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/EntityId.d.ts +0 -2
- package/dist/types/treeParameters/primitives/EntityId.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/EntityName.d.ts +0 -2
- package/dist/types/treeParameters/primitives/EntityName.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts +0 -2
- package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts +0 -2
- package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts +0 -2
- package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts +0 -2
- package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/FieldName.d.ts +0 -2
- package/dist/types/treeParameters/primitives/FieldName.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/FieldValue.d.ts +0 -5
- package/dist/types/treeParameters/primitives/FieldValue.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Filter.d.ts +0 -4
- package/dist/types/treeParameters/primitives/Filter.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Json.d.ts +0 -7
- package/dist/types/treeParameters/primitives/Json.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Limit.d.ts +0 -2
- package/dist/types/treeParameters/primitives/Limit.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Offset.d.ts +0 -2
- package/dist/types/treeParameters/primitives/Offset.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/OrderBy.d.ts +0 -4
- package/dist/types/treeParameters/primitives/OrderBy.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/PlaceholderName.d.ts +0 -2
- package/dist/types/treeParameters/primitives/PlaceholderName.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/RemovalType.d.ts +0 -2
- package/dist/types/treeParameters/primitives/RemovalType.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Scalar.d.ts +0 -2
- package/dist/types/treeParameters/primitives/Scalar.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/TreeRootId.d.ts +0 -2
- package/dist/types/treeParameters/primitives/TreeRootId.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/UniqueWhere.d.ts +0 -4
- package/dist/types/treeParameters/primitives/UniqueWhere.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/index.d.ts +0 -20
- package/dist/types/treeParameters/primitives/index.d.ts.map +0 -1
- package/dist/types/utils/Hashing.d.ts +0 -5
- package/dist/types/utils/Hashing.d.ts.map +0 -1
- package/dist/types/utils/TreeNodeUtils.d.ts +0 -13
- package/dist/types/utils/TreeNodeUtils.d.ts.map +0 -1
- package/dist/types/utils/assert.d.ts +0 -2
- package/dist/types/utils/assert.d.ts.map +0 -1
- package/dist/types/utils/assertNever.d.ts +0 -2
- package/dist/types/utils/assertNever.d.ts.map +0 -1
- package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts +0 -2
- package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -7
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/isEmptyObject.d.ts +0 -2
- package/dist/types/utils/isEmptyObject.d.ts.map +0 -1
- package/dist/types/utils/ucfirst.d.ts +0 -2
- package/dist/types/utils/ucfirst.d.ts.map +0 -1
- package/src/BindingError.ts +0 -5
- package/src/accessorTree/NormalizedPersistedData.ts +0 -23
- package/src/accessorTree/PersistResult.ts +0 -28
- package/src/accessorTree/QueryRequestResponse.ts +0 -23
- package/src/accessorTree/RuntimeId.ts +0 -70
- package/src/accessorTree/index.ts +0 -4
- package/src/accessors/AsyncBatchUpdatesOptions.ts +0 -8
- package/src/accessors/BatchUpdatesOptions.ts +0 -9
- package/src/accessors/BindingConfig.ts +0 -5
- package/src/accessors/BindingOperations.ts +0 -15
- package/src/accessors/EntityAccessor.ts +0 -299
- package/src/accessors/EntityListAccessor.ts +0 -183
- package/src/accessors/ErrorAccessor.ts +0 -43
- package/src/accessors/Errorable.ts +0 -5
- package/src/accessors/ExtendTree.ts +0 -10
- package/src/accessors/FieldAccessor.ts +0 -107
- package/src/accessors/GetEntityByKey.ts +0 -3
- package/src/accessors/GetEntityListSubTree.ts +0 -14
- package/src/accessors/GetEntitySubTree.ts +0 -14
- package/src/accessors/Persist.ts +0 -11
- package/src/accessors/PersistErrorOptions.ts +0 -10
- package/src/accessors/PersistSuccessOptions.ts +0 -5
- package/src/accessors/TreeRootAccessor.ts +0 -14
- package/src/accessors/index.ts +0 -17
- package/src/bindingTypes.ts +0 -3
- package/src/core/AccessorErrorManager.ts +0 -243
- package/src/core/Config.ts +0 -27
- package/src/core/DataBinding.ts +0 -434
- package/src/core/DirtinessTracker.ts +0 -21
- package/src/core/ErrorsPreprocessor.ts +0 -239
- package/src/core/EventManager.ts +0 -589
- package/src/core/MarkerComparator.ts +0 -102
- package/src/core/MarkerMerger.ts +0 -302
- package/src/core/MutationGenerator.ts +0 -823
- package/src/core/QueryGenerator.ts +0 -127
- package/src/core/RealmKeyGenerator.ts +0 -54
- package/src/core/RequestResponseNormalizer.ts +0 -166
- package/src/core/StateInitializer.ts +0 -558
- package/src/core/TreeAugmenter.ts +0 -266
- package/src/core/TreeFilterGenerator.ts +0 -116
- package/src/core/TreeParameterMerger.ts +0 -382
- package/src/core/TreeStore.ts +0 -256
- package/src/core/UpdateMetadata.ts +0 -3
- package/src/core/VariableInputTransformer.ts +0 -26
- package/src/core/exceptions/ErrorLocator.ts +0 -58
- package/src/core/exceptions/LocalizedBindingError.ts +0 -20
- package/src/core/exceptions/MarkerSugarer.ts +0 -61
- package/src/core/exceptions/RawMarkerPath.ts +0 -3
- package/src/core/exceptions/TreeParameterSugarer.ts +0 -41
- package/src/core/exceptions/index.ts +0 -5
- package/src/core/factories/createBatchUpdatesOptions.ts +0 -38
- package/src/core/factories/index.ts +0 -1
- package/src/core/index.ts +0 -13
- package/src/core/operations/EntityOperations.ts +0 -310
- package/src/core/operations/FieldOperations.ts +0 -127
- package/src/core/operations/ListOperations.ts +0 -208
- package/src/core/operations/OperationsHelpers.ts +0 -150
- package/src/core/operations/index.ts +0 -3
- package/src/core/requestAliases/MutationAlias.ts +0 -13
- package/src/core/requestAliases/index.ts +0 -1
- package/src/core/schema/RawSchema.ts +0 -7
- package/src/core/schema/RawSchemaEntity.ts +0 -12
- package/src/core/schema/RawSchemaEnum.ts +0 -6
- package/src/core/schema/Schema.ts +0 -50
- package/src/core/schema/SchemaColumn.ts +0 -15
- package/src/core/schema/SchemaColumnType.ts +0 -3
- package/src/core/schema/SchemaEntities.ts +0 -4
- package/src/core/schema/SchemaEntity.ts +0 -10
- package/src/core/schema/SchemaEnums.ts +0 -3
- package/src/core/schema/SchemaField.ts +0 -4
- package/src/core/schema/SchemaFields.ts +0 -4
- package/src/core/schema/SchemaLoader.ts +0 -64
- package/src/core/schema/SchemaPreprocessor.ts +0 -51
- package/src/core/schema/SchemaRelation.ts +0 -29
- package/src/core/schema/SchemaRelationOrderBy.ts +0 -4
- package/src/core/schema/SchemaStore.ts +0 -8
- package/src/core/schema/SchemaUniqueConstraint.ts +0 -5
- package/src/core/schema/index.ts +0 -15
- package/src/core/state/EntityListState.ts +0 -39
- package/src/core/state/EntityRealmState.ts +0 -63
- package/src/core/state/EntityState.ts +0 -12
- package/src/core/state/FieldState.ts +0 -20
- package/src/core/state/StateIterator.ts +0 -121
- package/src/core/state/StateNode.ts +0 -8
- package/src/core/state/getEntityMarker.ts +0 -4
- package/src/core/state/index.ts +0 -7
- package/src/core/utils/createQueryBuilder.ts +0 -31
- package/src/core/utils/getCombinedSignal.ts +0 -36
- package/src/core/utils/index.ts +0 -1
- package/src/dao/Environment.ts +0 -342
- package/src/dao/TreeNodeEnvironmentFactory.ts +0 -137
- package/src/dao/VariableFieldValue.ts +0 -3
- package/src/dao/index.ts +0 -3
- package/src/fieldHelpers/helpers/FieldHelper.ts +0 -10
- package/src/fieldHelpers/helpers/TemporalFieldHelper.ts +0 -21
- package/src/fieldHelpers/helpers/UuidFieldHelper.ts +0 -18
- package/src/fieldHelpers/helpers/index.ts +0 -2
- package/src/fieldHelpers/index.ts +0 -1
- package/src/markers/EntityFieldMarkers.ts +0 -7
- package/src/markers/EntityFieldMarkersContainer.ts +0 -45
- package/src/markers/EntityFieldPlaceholders.ts +0 -3
- package/src/markers/EntityFieldsWithHoistablesMarker.ts +0 -11
- package/src/markers/EntityListSubTreeMarker.ts +0 -20
- package/src/markers/EntitySubTreeMarker.ts +0 -20
- package/src/markers/FieldMarker.ts +0 -19
- package/src/markers/HasManyRelationMarker.ts +0 -27
- package/src/markers/HasOneRelationMarker.ts +0 -21
- package/src/markers/MarkerTreeRoot.ts +0 -9
- package/src/markers/MeaningfulMarker.ts +0 -12
- package/src/markers/ParentEntityMarker.ts +0 -9
- package/src/markers/PlaceholderGenerator.ts +0 -40
- package/src/markers/PlaceholderParametersGenerator.ts +0 -79
- package/src/markers/SubTreeMarkers.ts +0 -5
- package/src/markers/index.ts +0 -14
- package/src/queryLanguage/CacheStore.ts +0 -57
- package/src/queryLanguage/MarkerFactory.ts +0 -300
- package/src/queryLanguage/Parser.ts +0 -911
- package/src/queryLanguage/ParserResults.ts +0 -81
- package/src/queryLanguage/QueryLanguage.ts +0 -762
- package/src/queryLanguage/QueryLanguageError.ts +0 -1
- package/src/queryLanguage/index.ts +0 -5
- package/src/queryLanguage/tokenList.ts +0 -177
- package/src/structures/BijectiveIndexedMap.ts +0 -139
- package/src/structures/LRUCache.ts +0 -29
- package/src/structures/WeakIdCache.ts +0 -25
- package/src/structures/index.ts +0 -3
- package/src/treeParameterHelpers/index.ts +0 -1
- package/src/treeParameterHelpers/wrapFilterInHasOnes.ts +0 -21
- package/src/treeParameters/AnyField.ts +0 -9
- package/src/treeParameters/EntityCreationParameters.ts +0 -34
- package/src/treeParameters/EntityListEventListeners.ts +0 -20
- package/src/treeParameters/EntityListParameters.ts +0 -19
- package/src/treeParameters/EntityListPreferences.ts +0 -11
- package/src/treeParameters/EventListenersStore.ts +0 -82
- package/src/treeParameters/FieldEventListeners.ts +0 -32
- package/src/treeParameters/HasManyRelation.ts +0 -18
- package/src/treeParameters/HasOneRelation.ts +0 -21
- package/src/treeParameters/LeafField.ts +0 -20
- package/src/treeParameters/ParentEntityParameters.ts +0 -10
- package/src/treeParameters/QualifiedEntityList.ts +0 -43
- package/src/treeParameters/QualifiedEntityParameters.ts +0 -20
- package/src/treeParameters/QualifiedFieldList.ts +0 -43
- package/src/treeParameters/QualifiedSingleEntity.ts +0 -46
- package/src/treeParameters/QualifiedSingleEntityParameters.ts +0 -9
- package/src/treeParameters/Relation.ts +0 -17
- package/src/treeParameters/RelativeEntityList.ts +0 -25
- package/src/treeParameters/RelativeSingleEntity.ts +0 -16
- package/src/treeParameters/RelativeSingleField.ts +0 -27
- package/src/treeParameters/SetOnCreate.ts +0 -6
- package/src/treeParameters/SingleEntityEventListeners.ts +0 -24
- package/src/treeParameters/SingleEntityParameters.ts +0 -9
- package/src/treeParameters/UnconstrainedQualifiedEntityList.ts +0 -39
- package/src/treeParameters/UnconstrainedQualifiedSingleEntity.ts +0 -39
- package/src/treeParameters/index.ts +0 -27
- package/src/treeParameters/primitives/Alias.ts +0 -1
- package/src/treeParameters/primitives/EntityId.ts +0 -2
- package/src/treeParameters/primitives/EntityName.ts +0 -4
- package/src/treeParameters/primitives/EntityRealmKey.ts +0 -2
- package/src/treeParameters/primitives/ExpectedEntityCount.ts +0 -1
- package/src/treeParameters/primitives/ExpectedQualifiedEntityMutation.ts +0 -1
- package/src/treeParameters/primitives/ExpectedRelationMutation.ts +0 -1
- package/src/treeParameters/primitives/FieldName.ts +0 -7
- package/src/treeParameters/primitives/FieldValue.ts +0 -6
- package/src/treeParameters/primitives/Filter.ts +0 -7
- package/src/treeParameters/primitives/Json.ts +0 -7
- package/src/treeParameters/primitives/Limit.ts +0 -1
- package/src/treeParameters/primitives/Offset.ts +0 -1
- package/src/treeParameters/primitives/OrderBy.ts +0 -6
- package/src/treeParameters/primitives/PlaceholderName.ts +0 -4
- package/src/treeParameters/primitives/RemovalType.ts +0 -1
- package/src/treeParameters/primitives/Scalar.ts +0 -1
- package/src/treeParameters/primitives/TreeRootId.ts +0 -1
- package/src/treeParameters/primitives/UniqueWhere.ts +0 -7
- package/src/treeParameters/primitives/index.ts +0 -19
- package/src/typings/react-fix.d.ts +0 -12
- package/src/utils/Hashing.ts +0 -20
- package/src/utils/TreeNodeUtils.ts +0 -92
- package/src/utils/assert.ts +0 -7
- package/src/utils/assertNever.ts +0 -10
- package/src/utils/generateEnumerabilityPreventingEntropy.ts +0 -3
- package/src/utils/index.ts +0 -6
- package/src/utils/isEmptyObject.ts +0 -9
- package/src/utils/ucfirst.ts +0 -1
- package/tests/cases/unit/queryLanguage/filter.spec.tsx +0 -100
- package/tests/cases/unit/queryLanguage/general.spec.tsx +0 -59
- package/tests/cases/unit/queryLanguage/orderBy.spec.tsx +0 -48
- package/tests/cases/unit/queryLanguage/qualifiedEntityList.spec.tsx +0 -30
- package/tests/cases/unit/queryLanguage/qualifiedFieldList.spec.tsx +0 -29
- package/tests/cases/unit/queryLanguage/relativeEntityList.spec.tsx +0 -49
- package/tests/cases/unit/queryLanguage/singleRelativeField.spec.tsx +0 -132
- package/tests/cases/unit/queryLanguage/taggedMap.spec.tsx +0 -41
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TreeParameterMerger.js","sources":["../../../../../packages/binding/src/core/TreeParameterMerger.ts"],"sourcesContent":["import { GraphQlBuilder, Writable } from '@contember/client'\nimport { BindingError } from '../BindingError'\nimport type {\n\tAlias,\n\tEntityCreationParameters,\n\tEntityEventListenerStore,\n\tEntityListEventListenerStore,\n\tExpectedQualifiedEntityMutation,\n\tExpectedRelationMutation,\n\tHasManyRelation,\n\tHasOneRelation,\n\tParentEntityParameters,\n\tQualifiedEntityList,\n\tQualifiedSingleEntity,\n\tSetOnCreate,\n\tUnconstrainedQualifiedEntityList,\n\tUnconstrainedQualifiedSingleEntity,\n\tUniqueWhere,\n} from '../treeParameters'\n\nexport class TreeParameterMerger {\n\tpublic static mergeHasOneRelationsWithSamePlaceholders(\n\t\toriginal: HasOneRelation,\n\t\tfresh: HasOneRelation,\n\t): HasOneRelation {\n\t\treturn {\n\t\t\t// Encoded within the placeholder\n\t\t\tfield: original.field,\n\t\t\tfilter: original.filter,\n\t\t\treducedBy: original.reducedBy,\n\n\t\t\t// Not encoded within the placeholder\n\t\t\texpectedMutation: this.mergeExpectedRelationMutation(original.expectedMutation, fresh.expectedMutation),\n\t\t\tsetOnCreate: this.mergeSetOnCreate(original.setOnCreate, fresh.setOnCreate),\n\t\t\tisNonbearing: original.isNonbearing && fresh.isNonbearing,\n\t\t\t// forceCreation: original.forceCreation || fresh.forceCreation,\n\t\t\teventListeners: this.mergeSingleEntityEventListeners(original.eventListeners, fresh.eventListeners),\n\t\t}\n\t}\n\n\tpublic static mergeHasManyRelationsWithSamePlaceholders(\n\t\toriginal: HasManyRelation,\n\t\tfresh: HasManyRelation,\n\t): HasManyRelation {\n\t\tif (original.initialEntityCount !== fresh.initialEntityCount) {\n\t\t\tthrow new BindingError(\n\t\t\t\t`Detected hasMany relations on the same field '${original.field}' with different preferred initial ` +\n\t\t\t\t\t`entity counts: '${original.initialEntityCount}' and '${fresh.initialEntityCount}' respectively.`,\n\t\t\t)\n\t\t}\n\t\treturn {\n\t\t\t// Encoded within the placeholder\n\t\t\tfield: original.field,\n\t\t\tfilter: original.filter,\n\t\t\torderBy: original.orderBy,\n\t\t\toffset: original.offset,\n\t\t\tlimit: original.limit,\n\n\t\t\t// Not encoded within the placeholder\n\t\t\texpectedMutation: this.mergeExpectedRelationMutation(original.expectedMutation, fresh.expectedMutation),\n\t\t\tsetOnCreate: this.mergeSetOnCreate(original.setOnCreate, fresh.setOnCreate),\n\t\t\t// forceCreation: original.forceCreation || fresh.forceCreation,\n\t\t\tisNonbearing: original.isNonbearing && fresh.isNonbearing,\n\t\t\tinitialEntityCount: original.initialEntityCount, // Handled above\n\t\t\tchildEventListeners: this.mergeSingleEntityEventListeners(\n\t\t\t\toriginal.childEventListeners,\n\t\t\t\tfresh.childEventListeners,\n\t\t\t),\n\t\t\teventListeners: this.mergeEntityListEventListeners(original.eventListeners, fresh.eventListeners),\n\t\t}\n\t}\n\n\tpublic static mergeEntitySubTreeParametersWithSamePlaceholders(\n\t\toriginal: QualifiedSingleEntity | UnconstrainedQualifiedSingleEntity,\n\t\tfresh: QualifiedSingleEntity | UnconstrainedQualifiedSingleEntity,\n\t): QualifiedSingleEntity | UnconstrainedQualifiedSingleEntity {\n\t\tif (original.isCreating) {\n\t\t\tif (!fresh.isCreating) {\n\t\t\t\tthrow new BindingError()\n\t\t\t}\n\t\t\treturn {\n\t\t\t\t// Encoded within the placeholder\n\t\t\t\tisCreating: original.isCreating,\n\t\t\t\tisUnpersisted: original.isUnpersisted && fresh.isUnpersisted,\n\t\t\t\tentityName: original.entityName,\n\n\t\t\t\t// Not encoded within the placeholder\n\t\t\t\talias: this.mergeSubTreeAliases(original.alias, fresh.alias),\n\t\t\t\tsetOnCreate: this.mergeSetOnCreate(original.setOnCreate, fresh.setOnCreate),\n\t\t\t\t// forceCreation: original.value.forceCreation || fresh.value.forceCreation,\n\t\t\t\texpectedMutation: this.mergeExpectedQualifiedEntityMutation(original.expectedMutation, fresh.expectedMutation),\n\t\t\t\tisNonbearing: original.isNonbearing && fresh.isNonbearing,\n\t\t\t\thasOneRelationPath: original.hasOneRelationPath, // TODO this is completely wrong.\n\t\t\t\teventListeners: this.mergeSingleEntityEventListeners(original.eventListeners, fresh.eventListeners),\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\t// Encoded within the placeholder\n\t\t\tisCreating: original.isCreating,\n\t\t\twhere: original.where,\n\t\t\tentityName: original.entityName,\n\t\t\tfilter: original.filter,\n\n\t\t\t// Not encoded within the placeholder\n\t\t\talias: this.mergeSubTreeAliases(original.alias, fresh.alias),\n\t\t\tsetOnCreate: this.mergeSetOnCreate(original.setOnCreate, fresh.setOnCreate),\n\t\t\t// forceCreation: original.value.forceCreation || fresh.value.forceCreation,\n\t\t\texpectedMutation: this.mergeExpectedQualifiedEntityMutation(original.expectedMutation, fresh.expectedMutation),\n\t\t\tisNonbearing: original.isNonbearing && fresh.isNonbearing,\n\t\t\thasOneRelationPath: original.hasOneRelationPath, // TODO this is completely wrong.\n\t\t\teventListeners: this.mergeSingleEntityEventListeners(original.eventListeners, fresh.eventListeners),\n\t\t}\n\t}\n\n\tpublic static mergeEntityListSubTreeParametersWithSamePlaceholders(\n\t\toriginal: QualifiedEntityList | UnconstrainedQualifiedEntityList,\n\t\tfresh: QualifiedEntityList | UnconstrainedQualifiedEntityList,\n\t): QualifiedEntityList | UnconstrainedQualifiedEntityList {\n\t\tif (original.initialEntityCount !== fresh.initialEntityCount) {\n\t\t\tthrow new BindingError(\n\t\t\t\t`Detected sub trees of the same entity '${original.entityName}' with different preferred initial ` +\n\t\t\t\t\t`entity counts: '${original.initialEntityCount}' and '${fresh.initialEntityCount}' respectively.`,\n\t\t\t)\n\t\t}\n\n\t\tif (original.isCreating) {\n\t\t\tif (!fresh.isCreating) {\n\t\t\t\tthrow new BindingError()\n\t\t\t}\n\t\t\treturn {\n\t\t\t\t// Encoded within the placeholder\n\t\t\t\tisCreating: original.isCreating,\n\t\t\t\tisUnpersisted: original.isUnpersisted && fresh.isUnpersisted,\n\t\t\t\tentityName: original.entityName,\n\n\t\t\t\t// Not encoded within the placeholder\n\t\t\t\talias: this.mergeSubTreeAliases(original.alias, fresh.alias),\n\t\t\t\tsetOnCreate: this.mergeSetOnCreate(original.setOnCreate, fresh.setOnCreate),\n\t\t\t\t// forceCreation: original.value.forceCreation || fresh.value.forceCreation,\n\t\t\t\texpectedMutation: this.mergeExpectedQualifiedEntityMutation(original.expectedMutation, fresh.expectedMutation),\n\t\t\t\tisNonbearing: original.isNonbearing && fresh.isNonbearing,\n\t\t\t\thasOneRelationPath: original.hasOneRelationPath, // TODO this is completely wrong.\n\t\t\t\tchildEventListeners: this.mergeSingleEntityEventListeners(\n\t\t\t\t\toriginal.childEventListeners,\n\t\t\t\t\tfresh.childEventListeners,\n\t\t\t\t),\n\t\t\t\teventListeners: this.mergeEntityListEventListeners(original.eventListeners, fresh.eventListeners),\n\t\t\t\tinitialEntityCount: original.initialEntityCount, // Handled above\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\t// Encoded within the placeholder\n\t\t\tisCreating: original.isCreating,\n\t\t\tentityName: original.entityName,\n\t\t\tfilter: original.filter,\n\t\t\torderBy: original.orderBy,\n\t\t\toffset: original.offset,\n\t\t\tlimit: original.limit,\n\n\t\t\t// Not encoded within the placeholder\n\t\t\talias: this.mergeSubTreeAliases(original.alias, fresh.alias),\n\t\t\tsetOnCreate: this.mergeSetOnCreate(original.setOnCreate, fresh.setOnCreate),\n\t\t\t// forceCreation: original.value.forceCreation || fresh.value.forceCreation,\n\t\t\texpectedMutation: this.mergeExpectedQualifiedEntityMutation(original.expectedMutation, fresh.expectedMutation),\n\t\t\tisNonbearing: original.isNonbearing && fresh.isNonbearing,\n\t\t\thasOneRelationPath: original.hasOneRelationPath, // TODO this is completely wrong.\n\t\t\tchildEventListeners: this.mergeSingleEntityEventListeners(\n\t\t\t\toriginal.childEventListeners,\n\t\t\t\tfresh.childEventListeners,\n\t\t\t),\n\t\t\teventListeners: this.mergeEntityListEventListeners(original.eventListeners, fresh.eventListeners),\n\t\t\tinitialEntityCount: original.initialEntityCount, // Handled above\n\t\t}\n\t}\n\n\tpublic static mergeEntityCreationParameters(\n\t\toriginal: EntityCreationParameters,\n\t\tfresh: EntityCreationParameters,\n\t): EntityCreationParameters {\n\t\treturn {\n\t\t\t// forceCreation: original.forceCreation || fresh.forceCreation,\n\t\t\tisNonbearing: original.isNonbearing && fresh.isNonbearing,\n\t\t\tsetOnCreate: this.mergeSetOnCreate(original.setOnCreate, fresh.setOnCreate),\n\t\t}\n\t}\n\n\tpublic static mergeSetOnCreate(original: SetOnCreate, fresh: SetOnCreate): SetOnCreate {\n\t\tif (original === undefined && fresh === undefined) {\n\t\t\treturn undefined\n\t\t}\n\t\tif (original === undefined) {\n\t\t\treturn fresh\n\t\t}\n\t\tif (fresh === undefined) {\n\t\t\treturn original\n\t\t}\n\t\tconst originalCopy: Writable<UniqueWhere> = { ...original }\n\n\t\tfor (const field in fresh) {\n\t\t\tif (field in originalCopy) {\n\t\t\t\tconst fromOriginal = originalCopy[field]\n\t\t\t\tconst fromFresh = fresh[field]\n\n\t\t\t\tif (fromOriginal instanceof GraphQlBuilder.GraphQlLiteral) {\n\t\t\t\t\tif (fromFresh instanceof GraphQlBuilder.GraphQlLiteral) {\n\t\t\t\t\t\tif (fromOriginal.value === fromFresh.value) {\n\t\t\t\t\t\t\t// Good, do nothing.\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new BindingError() // TODO msg\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new BindingError() // TODO msg\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (typeof fromOriginal === 'object') {\n\t\t\t\t\tif (fromFresh instanceof GraphQlBuilder.GraphQlLiteral) {\n\t\t\t\t\t\tthrow new BindingError() // TODO msg\n\t\t\t\t\t} else if (typeof fromFresh === 'object') {\n\t\t\t\t\t\tconst merged = this.mergeSetOnCreate(fromOriginal, fromFresh)\n\t\t\t\t\t\tif (merged !== undefined) {\n\t\t\t\t\t\t\toriginalCopy[field] = merged\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new BindingError() // TODO msg\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (typeof fromFresh === 'string' || typeof fromFresh === 'number') {\n\t\t\t\t\tif (fromOriginal === fromFresh) {\n\t\t\t\t\t\t// Good, do nothing.\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new BindingError() // TODO msg\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthrow new BindingError() // TODO msg\n\t\t\t} else {\n\t\t\t\toriginalCopy[field] = fresh[field]\n\t\t\t}\n\t\t}\n\n\t\treturn originalCopy\n\t}\n\n\tprivate static mergeSets<T>(original: Set<T>, fresh: Set<T>): Set<T> {\n\t\tconst combinedSet = new Set(original)\n\t\tfor (const item of fresh) {\n\t\t\tcombinedSet.add(item)\n\t\t}\n\t\treturn combinedSet\n\t}\n\n\tpublic static mergeParentEntityParameters(\n\t\toriginal: ParentEntityParameters | undefined,\n\t\tfresh: ParentEntityParameters | undefined,\n\t): ParentEntityParameters | undefined {\n\t\tif (original === fresh) {\n\t\t\treturn original\n\t\t}\n\t\tif (original === undefined) {\n\t\t\treturn fresh\n\t\t}\n\t\tif (fresh === undefined) {\n\t\t\treturn original\n\t\t}\n\t\treturn {\n\t\t\teventListeners: TreeParameterMerger.mergeSingleEntityEventListeners(\n\t\t\t\toriginal.eventListeners,\n\t\t\t\tfresh.eventListeners,\n\t\t\t),\n\t\t}\n\t}\n\n\tpublic static mergeInParentEntity<\n\t\tOriginal extends Record<Key, EntityEventListenerStore | undefined>,\n\t\tKey extends keyof Original,\n\t>(original: Original, key: Key, parentEntity: ParentEntityParameters | undefined): Original {\n\t\tif (!parentEntity) {\n\t\t\treturn original\n\t\t}\n\n\t\treturn {\n\t\t\t...original,\n\t\t\t[key]: TreeParameterMerger.mergeSingleEntityEventListeners(original[key], parentEntity.eventListeners),\n\t\t}\n\t}\n\n\tpublic static mergeSingleEntityEventListeners(\n\t\toriginal: EntityEventListenerStore | undefined,\n\t\tfresh: EntityEventListenerStore | undefined,\n\t): EntityEventListenerStore | undefined {\n\t\tif (original === undefined) {\n\t\t\tif (fresh === undefined) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\treturn this.cloneSingleEntityEventListeners(fresh)\n\t\t}\n\n\t\tif (fresh === undefined) {\n\t\t\treturn this.cloneSingleEntityEventListeners(original)\n\t\t}\n\n\t\tconst store = this.cloneSingleEntityEventListeners(original)\n\t\tstore.append(fresh)\n\t\treturn store\n\t}\n\n\tpublic static mergeEntityListEventListeners(\n\t\toriginal: EntityListEventListenerStore | undefined,\n\t\tfresh: EntityListEventListenerStore | undefined,\n\t): EntityListEventListenerStore | undefined {\n\t\tif (original === undefined) {\n\t\t\tif (fresh === undefined) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\treturn this.cloneEntityListEventListeners(fresh)\n\t\t}\n\n\t\tif (fresh === undefined) {\n\t\t\treturn this.cloneEntityListEventListeners(original)\n\t\t}\n\n\t\tconst store = this.cloneEntityListEventListeners(original)\n\t\tstore.append(fresh)\n\t\treturn store\n\t}\n\n\tpublic static cloneSingleEntityEventListeners(store: EntityEventListenerStore): EntityEventListenerStore {\n\t\t// TODO is intentional, that second clone is deep?\n\t\treturn store.clone()\n\t}\n\n\tpublic static cloneEntityListEventListeners(store: EntityListEventListenerStore): EntityListEventListenerStore {\n\t\treturn store.cloneDeep()\n\t}\n\n\tprivate static mergeExpectedRelationMutation(\n\t\toriginal: ExpectedRelationMutation,\n\t\tfresh: ExpectedRelationMutation,\n\t): ExpectedRelationMutation {\n\t\tif (original === fresh) {\n\t\t\treturn original\n\t\t}\n\t\tif (original === 'none') {\n\t\t\treturn fresh\n\t\t}\n\t\tif (fresh === 'none') {\n\t\t\treturn original\n\t\t}\n\t\treturn 'anyMutation'\n\t}\n\n\tprivate static mergeExpectedQualifiedEntityMutation(\n\t\toriginal: ExpectedQualifiedEntityMutation,\n\t\tfresh: ExpectedQualifiedEntityMutation,\n\t): ExpectedQualifiedEntityMutation {\n\t\tif (original === fresh) {\n\t\t\treturn original\n\t\t}\n\t\tif (original === 'none') {\n\t\t\treturn fresh\n\t\t}\n\t\tif (fresh === 'none') {\n\t\t\treturn original\n\t\t}\n\t\treturn 'anyMutation'\n\t}\n\n\tprivate static mergeSubTreeAliases(\n\t\toriginal: Set<Alias> | undefined,\n\t\tfresh: Set<Alias> | undefined,\n\t): Set<Alias> | undefined {\n\t\tif (original === undefined) {\n\t\t\treturn fresh\n\t\t}\n\t\tif (fresh === undefined) {\n\t\t\treturn original\n\t\t}\n\t\treturn this.mergeSets(original, fresh)\n\t}\n}\n"],"names":[],"mappings":";;AAoBO,MAAM,oBAAoB;AAAA,EAChC,OAAc,yCACb,UACA,OACiB;AACV,WAAA;AAAA;AAAA,MAEN,OAAO,SAAS;AAAA,MAChB,QAAQ,SAAS;AAAA,MACjB,WAAW,SAAS;AAAA;AAAA,MAGpB,kBAAkB,KAAK,8BAA8B,SAAS,kBAAkB,MAAM,gBAAgB;AAAA,MACtG,aAAa,KAAK,iBAAiB,SAAS,aAAa,MAAM,WAAW;AAAA,MAC1E,cAAc,SAAS,gBAAgB,MAAM;AAAA;AAAA,MAE7C,gBAAgB,KAAK,gCAAgC,SAAS,gBAAgB,MAAM,cAAc;AAAA,IAAA;AAAA,EAEpG;AAAA,EAEA,OAAc,0CACb,UACA,OACkB;AACd,QAAA,SAAS,uBAAuB,MAAM,oBAAoB;AAC7D,YAAM,IAAI;AAAA,QACT,iDAAiD,SAAS,KAAK,sDAC3C,SAAS,kBAAkB,UAAU,MAAM,kBAAkB;AAAA,MAAA;AAAA,IAEnF;AACO,WAAA;AAAA;AAAA,MAEN,OAAO,SAAS;AAAA,MAChB,QAAQ,SAAS;AAAA,MACjB,SAAS,SAAS;AAAA,MAClB,QAAQ,SAAS;AAAA,MACjB,OAAO,SAAS;AAAA;AAAA,MAGhB,kBAAkB,KAAK,8BAA8B,SAAS,kBAAkB,MAAM,gBAAgB;AAAA,MACtG,aAAa,KAAK,iBAAiB,S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module" });
|
|
3
|
-
const BindingError = require("../BindingError.cjs");
|
|
4
|
-
const MarkerComparator = require("./MarkerComparator.cjs");
|
|
5
|
-
const RequestResponseNormalizer = require("./RequestResponseNormalizer.cjs");
|
|
6
|
-
const PlaceholderGenerator = require("../markers/PlaceholderGenerator.cjs");
|
|
7
|
-
const QueryLanguage = require("../queryLanguage/QueryLanguage.cjs");
|
|
8
|
-
const NormalizedPersistedData = require("../accessorTree/NormalizedPersistedData.cjs");
|
|
9
|
-
const assertNever = require("../utils/assertNever.cjs");
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
13
|
-
const emptyEntityIdSet = /* @__PURE__ */ new Set();
|
|
14
|
-
class TreeStore {
|
|
15
|
-
constructor(_schema) {
|
|
16
|
-
this._schema = _schema;
|
|
17
|
-
__publicField(this, "entityStore", /* @__PURE__ */ new Map());
|
|
18
|
-
__publicField(this, "entityRealmStore", /* @__PURE__ */ new Map());
|
|
19
|
-
__publicField(this, "markerTrees", /* @__PURE__ */ new Map());
|
|
20
|
-
__publicField(this, "subTreeStatesByRoot", /* @__PURE__ */ new Map());
|
|
21
|
-
__publicField(this, "persistedData", new NormalizedPersistedData.NormalizedPersistedData(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map()));
|
|
22
|
-
}
|
|
23
|
-
mergeInQueryResponse(response, markerTree) {
|
|
24
|
-
RequestResponseNormalizer.RequestResponseNormalizer.mergeInQueryResponse(this.persistedData, response, markerTree);
|
|
25
|
-
}
|
|
26
|
-
mergeInMutationResponse(response, operations) {
|
|
27
|
-
RequestResponseNormalizer.RequestResponseNormalizer.mergeInMutationResponse(this.persistedData, response, operations);
|
|
28
|
-
}
|
|
29
|
-
get persistedEntityData() {
|
|
30
|
-
return this.persistedData.persistedEntityDataStore;
|
|
31
|
-
}
|
|
32
|
-
get subTreePersistedData() {
|
|
33
|
-
return this.persistedData.subTreeDataStore;
|
|
34
|
-
}
|
|
35
|
-
get schema() {
|
|
36
|
-
return this._schema;
|
|
37
|
-
}
|
|
38
|
-
getPathBackToParent(entityRealm) {
|
|
39
|
-
const blueprint = entityRealm.blueprint;
|
|
40
|
-
if (blueprint.parent === void 0) {
|
|
41
|
-
return void 0;
|
|
42
|
-
}
|
|
43
|
-
let parentEntityName;
|
|
44
|
-
let relationFromParent;
|
|
45
|
-
let parent;
|
|
46
|
-
if (blueprint.type === "hasOne") {
|
|
47
|
-
parentEntityName = blueprint.parent.entity.entityName;
|
|
48
|
-
relationFromParent = blueprint.marker.parameters.field;
|
|
49
|
-
parent = blueprint.parent;
|
|
50
|
-
} else if (blueprint.type === "listEntity") {
|
|
51
|
-
const grandparentBlueprint = blueprint.parent.blueprint;
|
|
52
|
-
if (grandparentBlueprint.parent === void 0) {
|
|
53
|
-
return void 0;
|
|
54
|
-
}
|
|
55
|
-
parentEntityName = grandparentBlueprint.parent.entity.entityName;
|
|
56
|
-
relationFromParent = grandparentBlueprint.marker.parameters.field;
|
|
57
|
-
parent = grandparentBlueprint.parent;
|
|
58
|
-
} else {
|
|
59
|
-
return assertNever.assertNever();
|
|
60
|
-
}
|
|
61
|
-
const relationSchema = this.schema.getEntityRelation(parentEntityName, relationFromParent);
|
|
62
|
-
const fieldBack = (relationSchema.ownedBy || relationSchema.inversedBy) ?? null;
|
|
63
|
-
if (fieldBack === null) {
|
|
64
|
-
return void 0;
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
parent,
|
|
68
|
-
fieldBackToParent: fieldBack
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
getSubTreeState(mode, treeRootId, aliasOrParameters, environment) {
|
|
72
|
-
const markerRoot = this.markerTrees.get(treeRootId);
|
|
73
|
-
const subTreeStates = this.subTreeStatesByRoot.get(treeRootId);
|
|
74
|
-
if (subTreeStates === void 0 || markerRoot === void 0) {
|
|
75
|
-
if (treeRootId) {
|
|
76
|
-
throw new BindingError.BindingError(
|
|
77
|
-
`Invalid tree id '${treeRootId}'. Make sure you use the one supplied by the correct extendTree call.`
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
throw new BindingError.BindingError(`Failed to retrieve a sub tree.`);
|
|
81
|
-
}
|
|
82
|
-
let placeholderName;
|
|
83
|
-
if (typeof aliasOrParameters === "string") {
|
|
84
|
-
const placeholderByAlias = markerRoot.placeholdersByAliases.get(aliasOrParameters);
|
|
85
|
-
if (placeholderByAlias === void 0) {
|
|
86
|
-
throw new BindingError.BindingError(`Undefined sub-tree alias '${aliasOrParameters}'.`);
|
|
87
|
-
}
|
|
88
|
-
placeholderName = placeholderByAlias;
|
|
89
|
-
} else if (mode === "entityList") {
|
|
90
|
-
placeholderName = PlaceholderGenerator.PlaceholderGenerator.getEntityListSubTreePlaceholder(
|
|
91
|
-
aliasOrParameters.isCreating ? QueryLanguage.QueryLanguage.desugarUnconstrainedQualifiedEntityList(
|
|
92
|
-
aliasOrParameters,
|
|
93
|
-
environment
|
|
94
|
-
) : QueryLanguage.QueryLanguage.desugarQualifiedEntityList(aliasOrParameters, environment),
|
|
95
|
-
environment
|
|
96
|
-
);
|
|
97
|
-
} else if (mode === "entity") {
|
|
98
|
-
placeholderName = PlaceholderGenerator.PlaceholderGenerator.getEntitySubTreePlaceholder(
|
|
99
|
-
aliasOrParameters.isCreating ? QueryLanguage.QueryLanguage.desugarUnconstrainedQualifiedSingleEntity(
|
|
100
|
-
aliasOrParameters,
|
|
101
|
-
environment
|
|
102
|
-
) : QueryLanguage.QueryLanguage.desugarQualifiedSingleEntity(aliasOrParameters, environment),
|
|
103
|
-
environment
|
|
104
|
-
);
|
|
105
|
-
} else {
|
|
106
|
-
throw new BindingError.BindingError();
|
|
107
|
-
}
|
|
108
|
-
const subTreeState = subTreeStates.get(placeholderName);
|
|
109
|
-
if (subTreeState === void 0) {
|
|
110
|
-
throw new BindingError.BindingError(`Trying to retrieve a non-existent sub-tree '${placeholderName}'.`);
|
|
111
|
-
}
|
|
112
|
-
return subTreeState;
|
|
113
|
-
}
|
|
114
|
-
getEntityListPersistedIds(state) {
|
|
115
|
-
const blueprint = state.blueprint;
|
|
116
|
-
if (blueprint.parent) {
|
|
117
|
-
const entityData = this.persistedEntityData.get(blueprint.parent.entity.id.uniqueValue);
|
|
118
|
-
return entityData?.get(blueprint.marker.placeholderName) ?? emptyEntityIdSet;
|
|
119
|
-
} else {
|
|
120
|
-
return this.subTreePersistedData.get(blueprint.marker.placeholderName) ?? emptyEntityIdSet;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
disposeOfRealm(realmToDisposeOf) {
|
|
124
|
-
this.entityRealmStore.delete(realmToDisposeOf.realmKey);
|
|
125
|
-
realmToDisposeOf.entity.realms.delete(realmToDisposeOf.realmKey);
|
|
126
|
-
if (realmToDisposeOf.type === "entityRealm") {
|
|
127
|
-
realmToDisposeOf.blueprint.parent?.childrenWithPendingUpdates?.delete(realmToDisposeOf);
|
|
128
|
-
for (const child of realmToDisposeOf.children.values()) {
|
|
129
|
-
switch (child.type) {
|
|
130
|
-
case "field":
|
|
131
|
-
continue;
|
|
132
|
-
case "entityRealm":
|
|
133
|
-
case "entityRealmStub": {
|
|
134
|
-
this.disposeOfRealm(child);
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
case "entityList": {
|
|
138
|
-
for (const listChild of child.children.values()) {
|
|
139
|
-
this.disposeOfRealm(listChild);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
const entity = realmToDisposeOf.entity;
|
|
146
|
-
if (entity.realms.size === 0) {
|
|
147
|
-
this.disposeOfEntity(entity);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
disposeOfEntity(entity) {
|
|
151
|
-
for (const realm of entity.realms.values()) {
|
|
152
|
-
this.disposeOfRealm(realm);
|
|
153
|
-
}
|
|
154
|
-
this.entityStore.delete(entity.id.uniqueValue);
|
|
155
|
-
this.persistedEntityData.delete(entity.id.uniqueValue);
|
|
156
|
-
}
|
|
157
|
-
effectivelyHasTreeRoot(candidateRoot) {
|
|
158
|
-
candidateRoots: for (const candidateSubTree of candidateRoot.subTrees.values()) {
|
|
159
|
-
if (candidateSubTree.parameters.isCreating) {
|
|
160
|
-
continue;
|
|
161
|
-
}
|
|
162
|
-
for (const root of this.markerTrees.values()) {
|
|
163
|
-
for (const alreadyPresentSubTree of root.subTrees.values()) {
|
|
164
|
-
const isSubset = MarkerComparator.MarkerComparator.isSubTreeSubsetOf(candidateSubTree, alreadyPresentSubTree);
|
|
165
|
-
if (isSubset) {
|
|
166
|
-
continue candidateRoots;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return false;
|
|
171
|
-
}
|
|
172
|
-
return true;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
exports.TreeStore = TreeStore;
|
|
176
|
-
//# sourceMappingURL=TreeStore.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TreeStore.cjs","sources":["../../../../../packages/binding/src/core/TreeStore.ts"],"sourcesContent":["import {\n\tNormalizedPersistedData,\n\tPersistedEntityDataStore,\n\tReceivedDataTree,\n\tSubTreeDataStore,\n\tUniqueEntityId,\n} from '../accessorTree'\nimport { BindingError } from '../BindingError'\nimport type { Environment } from '../dao'\nimport { MarkerTreeRoot, PlaceholderGenerator } from '../markers'\nimport { QueryLanguage } from '../queryLanguage'\nimport type {\n\tAlias,\n\tEntityId,\n\tEntityName,\n\tEntityRealmKey,\n\tFieldName,\n\tPlaceholderName,\n\tSugaredQualifiedEntityList,\n\tSugaredQualifiedSingleEntity,\n\tSugaredUnconstrainedQualifiedEntityList,\n\tSugaredUnconstrainedQualifiedSingleEntity,\n\tTreeRootId,\n} from '../treeParameters'\nimport { assertNever } from '../utils'\nimport { MarkerComparator } from './MarkerComparator'\nimport { RequestResponseNormalizer } from './RequestResponseNormalizer'\nimport type { Schema } from './schema'\nimport type { EntityListState, EntityRealmState, EntityRealmStateStub, EntityState, RootStateNode } from './state'\nimport { SubMutationOperation } from './MutationGenerator'\n\nconst emptyEntityIdSet: ReadonlySet<EntityId> = new Set()\n\nexport class TreeStore {\n\tpublic readonly entityStore: Map<UniqueEntityId, EntityState> = new Map()\n\tpublic readonly entityRealmStore: Map<EntityRealmKey, EntityRealmState | EntityRealmStateStub> = new Map()\n\n\t// This is tricky. We allow placeholder name duplicates, only the (TreeRootId, PlaceholderName) tuple is unique.\n\t// This is useful when the tree is extended to contain a sub-tree with the same placeholder.\n\tpublic readonly markerTrees: Map<TreeRootId | undefined, MarkerTreeRoot> = new Map()\n\tpublic readonly subTreeStatesByRoot: Map<TreeRootId | undefined, Map<PlaceholderName, RootStateNode>> = new Map()\n\n\tpublic readonly persistedData: NormalizedPersistedData = new NormalizedPersistedData(new Map(), new Map())\n\n\tpublic constructor(\n\t\tprivate readonly _schema: Schema,\n\t) {}\n\n\tpublic mergeInQueryResponse(response: ReceivedDataTree, markerTree: MarkerTreeRoot): void {\n\t\tRequestResponseNormalizer.mergeInQueryResponse(this.persistedData, response, markerTree)\n\t}\n\n\tpublic mergeInMutationResponse(response: ReceivedDataTree, operations: SubMutationOperation[]): void {\n\t\tRequestResponseNormalizer.mergeInMutationResponse(this.persistedData, response, operations)\n\t}\n\n\tpublic get persistedEntityData(): PersistedEntityDataStore {\n\t\treturn this.persistedData.persistedEntityDataStore\n\t}\n\n\tpublic get subTreePersistedData(): SubTreeDataStore {\n\t\treturn this.persistedData.subTreeDataStore\n\t}\n\n\tpublic get schema(): Schema {\n\t\treturn this._schema\n\t}\n\n\tpublic getPathBackToParent(entityRealm: EntityRealmState | EntityRealmStateStub):\n\t\t| {\n\t\t\tfieldBackToParent: FieldName\n\t\t\tparent: EntityRealmState\n\t\t }\n\t\t| undefined {\n\t\tconst blueprint = entityRealm.blueprint\n\t\tif (blueprint.parent === undefined) {\n\t\t\treturn undefined\n\t\t}\n\t\tlet parentEntityName: EntityName\n\t\tlet relationFromParent: FieldName\n\t\tlet parent: EntityRealmState\n\n\t\tif (blueprint.type === 'hasOne') {\n\t\t\tparentEntityName = blueprint.parent.entity.entityName\n\t\t\trelationFromParent = blueprint.marker.parameters.field\n\t\t\tparent = blueprint.parent\n\t\t} else if (blueprint.type === 'listEntity') {\n\t\t\tconst grandparentBlueprint = blueprint.parent.blueprint\n\n\t\t\tif (grandparentBlueprint.parent === undefined) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tparentEntityName = grandparentBlueprint.parent.entity.entityName\n\t\t\trelationFromParent = grandparentBlueprint.marker.parameters.field\n\t\t\tparent = grandparentBlueprint.parent\n\t\t} else {\n\t\t\treturn assertNever(blueprint)\n\t\t}\n\n\t\tconst relationSchema = this.schema.getEntityRelation(parentEntityName, relationFromParent)\n\t\tconst fieldBack = (relationSchema.ownedBy || relationSchema.inversedBy) ?? null\n\n\t\t// console.log(parentEntityName, relationFromParent, entityRealm.entity.entityName, fieldBack)\n\t\tif (fieldBack === null) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn {\n\t\t\tparent,\n\t\t\tfieldBackToParent: fieldBack,\n\t\t}\n\t}\n\n\tpublic getSubTreeState(\n\t\tmode: 'entity',\n\t\ttreeRootId: TreeRootId | undefined,\n\t\taliasOrParameters: Alias | SugaredQualifiedSingleEntity | SugaredUnconstrainedQualifiedSingleEntity,\n\t\tenvironment: Environment,\n\t): EntityRealmState\n\tpublic getSubTreeState(\n\t\tmode: 'entityList',\n\t\ttreeRootId: TreeRootId | undefined,\n\t\taliasOrParameters: Alias | SugaredQualifiedEntityList | SugaredUnconstrainedQualifiedEntityList,\n\t\tenvironment: Environment,\n\t): EntityListState\n\tpublic getSubTreeState(\n\t\tmode: 'entity' | 'entityList',\n\t\ttreeRootId: TreeRootId | undefined,\n\t\taliasOrParameters:\n\t\t\t| Alias\n\t\t\t| SugaredQualifiedSingleEntity\n\t\t\t| SugaredUnconstrainedQualifiedSingleEntity\n\t\t\t| SugaredQualifiedEntityList\n\t\t\t| SugaredUnconstrainedQualifiedEntityList,\n\t\tenvironment: Environment,\n\t): RootStateNode {\n\t\tconst markerRoot = this.markerTrees.get(treeRootId)\n\t\tconst subTreeStates = this.subTreeStatesByRoot.get(treeRootId)\n\n\t\tif (subTreeStates === undefined || markerRoot === undefined) {\n\t\t\tif (treeRootId) {\n\t\t\t\tthrow new BindingError(\n\t\t\t\t\t`Invalid tree id '${treeRootId}'. Make sure you use the one supplied by the correct extendTree call.`,\n\t\t\t\t)\n\t\t\t}\n\t\t\tthrow new BindingError(`Failed to retrieve a sub tree.`)\n\t\t}\n\n\t\tlet placeholderName: string\n\n\t\tif (typeof aliasOrParameters === 'string') {\n\t\t\tconst placeholderByAlias = markerRoot.placeholdersByAliases.get(aliasOrParameters)\n\n\t\t\tif (placeholderByAlias === undefined) {\n\t\t\t\tthrow new BindingError(`Undefined sub-tree alias '${aliasOrParameters}'.`)\n\t\t\t}\n\t\t\tplaceholderName = placeholderByAlias\n\t\t} else if (mode === 'entityList') {\n\t\t\tplaceholderName = PlaceholderGenerator.getEntityListSubTreePlaceholder(\n\t\t\t\taliasOrParameters.isCreating\n\t\t\t\t\t? QueryLanguage.desugarUnconstrainedQualifiedEntityList(\n\t\t\t\t\t\taliasOrParameters as SugaredUnconstrainedQualifiedEntityList,\n\t\t\t\t\t\tenvironment,\n\t\t\t\t\t )\n\t\t\t\t\t: QueryLanguage.desugarQualifiedEntityList(aliasOrParameters as SugaredQualifiedEntityList, environment),\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else if (mode === 'entity') {\n\t\t\tplaceholderName = PlaceholderGenerator.getEntitySubTreePlaceholder(\n\t\t\t\taliasOrParameters.isCreating\n\t\t\t\t\t? QueryLanguage.desugarUnconstrainedQualifiedSingleEntity(\n\t\t\t\t\t\taliasOrParameters as SugaredUnconstrainedQualifiedSingleEntity,\n\t\t\t\t\t\tenvironment,\n\t\t\t\t\t )\n\t\t\t\t\t: QueryLanguage.desugarQualifiedSingleEntity(aliasOrParameters as SugaredQualifiedSingleEntity, environment),\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tconst subTreeState = subTreeStates.get(placeholderName)\n\n\t\tif (subTreeState === undefined) {\n\t\t\tthrow new BindingError(`Trying to retrieve a non-existent sub-tree '${placeholderName}'.`)\n\t\t}\n\t\treturn subTreeState\n\t}\n\n\tpublic getEntityListPersistedIds(state: EntityListState): ReadonlySet<EntityId> {\n\t\tconst blueprint = state.blueprint\n\n\t\tif (blueprint.parent) {\n\t\t\tconst entityData = this.persistedEntityData.get(blueprint.parent.entity.id.uniqueValue)\n\t\t\treturn (entityData?.get(blueprint.marker.placeholderName) as Set<string> | undefined) ?? emptyEntityIdSet\n\t\t} else {\n\t\t\treturn (this.subTreePersistedData.get(blueprint.marker.placeholderName) as Set<string>) ?? emptyEntityIdSet\n\t\t}\n\t}\n\n\tpublic disposeOfRealm(realmToDisposeOf: EntityRealmState | EntityRealmStateStub) {\n\t\tthis.entityRealmStore.delete(realmToDisposeOf.realmKey)\n\t\trealmToDisposeOf.entity.realms.delete(realmToDisposeOf.realmKey)\n\n\t\tif (realmToDisposeOf.type === 'entityRealm') {\n\t\t\trealmToDisposeOf.blueprint.parent?.childrenWithPendingUpdates?.delete(realmToDisposeOf)\n\n\t\t\tfor (const child of realmToDisposeOf.children.values()) {\n\t\t\t\tswitch (child.type) {\n\t\t\t\t\tcase 'field':\n\t\t\t\t\t\tcontinue\n\t\t\t\t\tcase 'entityRealm':\n\t\t\t\t\tcase 'entityRealmStub': {\n\t\t\t\t\t\tthis.disposeOfRealm(child)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase 'entityList': {\n\t\t\t\t\t\tfor (const listChild of child.children.values()) {\n\t\t\t\t\t\t\tthis.disposeOfRealm(listChild)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tconst entity = realmToDisposeOf.entity\n\t\tif (entity.realms.size === 0) {\n\t\t\tthis.disposeOfEntity(entity)\n\t\t}\n\t}\n\n\tpublic disposeOfEntity(entity: EntityState) {\n\t\tfor (const realm of entity.realms.values()) {\n\t\t\tthis.disposeOfRealm(realm)\n\t\t}\n\t\tthis.entityStore.delete(entity.id.uniqueValue)\n\t\tthis.persistedEntityData.delete(entity.id.uniqueValue)\n\t}\n\n\tpublic effectivelyHasTreeRoot(candidateRoot: MarkerTreeRoot): boolean {\n\t\tcandidateRoots: for (const candidateSubTree of candidateRoot.subTrees.values()) {\n\t\t\tif (candidateSubTree.parameters.isCreating) {\n\t\t\t\t// This, by definition, won't trigger a query.\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tfor (const root of this.markerTrees.values()) {\n\t\t\t\tfor (const alreadyPresentSubTree of root.subTrees.values()) {\n\t\t\t\t\tconst isSubset = MarkerComparator.isSubTreeSubsetOf(candidateSubTree, alreadyPresentSubTree)\n\t\t\t\t\tif (isSubset) {\n\t\t\t\t\t\tcontinue candidateRoots\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}\n"],"names":["NormalizedPersistedData","RequestResponseNormalizer","assertNever","BindingError","PlaceholderGenerator","QueryLanguage","MarkerComparator"],"mappings":";;;;;;;;;;;;AA+BA,MAAM,uCAA8C;AAE7C,MAAM,UAAU;AAAA,EAWf,YACW,SAChB;AADgB,SAAA,UAAA;AAXF,kBAAA,MAAA,mCAAoD,IAAI,CAAA;AACxD,kBAAA,MAAA,wCAAqF,IAAI,CAAA;AAIzF,kBAAA,MAAA,mCAA+D,IAAI,CAAA;AACnE,kBAAA,MAAA,2CAA4F,IAAI,CAAA;AAEhG,kBAAA,MAAA,iBAAyC,IAAIA,wBAAwB,wBAA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AkB,kBAAkB,qBAAqB;AAC3F,cAAI,UAAU;AACJ,qBAAA;AAAA,UACV;AAAA,QACD;AAAA,MACD;AACO,aAAA;AAAA,IACR;AACO,WAAA;AAAA,EACR;AACD;;"}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { BindingError } from "../BindingError.js";
|
|
2
|
-
import { MarkerComparator } from "./MarkerComparator.js";
|
|
3
|
-
import { RequestResponseNormalizer } from "./RequestResponseNormalizer.js";
|
|
4
|
-
import { PlaceholderGenerator } from "../markers/PlaceholderGenerator.js";
|
|
5
|
-
import { QueryLanguage } from "../queryLanguage/QueryLanguage.js";
|
|
6
|
-
import { NormalizedPersistedData } from "../accessorTree/NormalizedPersistedData.js";
|
|
7
|
-
import { assertNever } from "../utils/assertNever.js";
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11
|
-
const emptyEntityIdSet = /* @__PURE__ */ new Set();
|
|
12
|
-
class TreeStore {
|
|
13
|
-
constructor(_schema) {
|
|
14
|
-
this._schema = _schema;
|
|
15
|
-
__publicField(this, "entityStore", /* @__PURE__ */ new Map());
|
|
16
|
-
__publicField(this, "entityRealmStore", /* @__PURE__ */ new Map());
|
|
17
|
-
__publicField(this, "markerTrees", /* @__PURE__ */ new Map());
|
|
18
|
-
__publicField(this, "subTreeStatesByRoot", /* @__PURE__ */ new Map());
|
|
19
|
-
__publicField(this, "persistedData", new NormalizedPersistedData(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map()));
|
|
20
|
-
}
|
|
21
|
-
mergeInQueryResponse(response, markerTree) {
|
|
22
|
-
RequestResponseNormalizer.mergeInQueryResponse(this.persistedData, response, markerTree);
|
|
23
|
-
}
|
|
24
|
-
mergeInMutationResponse(response, operations) {
|
|
25
|
-
RequestResponseNormalizer.mergeInMutationResponse(this.persistedData, response, operations);
|
|
26
|
-
}
|
|
27
|
-
get persistedEntityData() {
|
|
28
|
-
return this.persistedData.persistedEntityDataStore;
|
|
29
|
-
}
|
|
30
|
-
get subTreePersistedData() {
|
|
31
|
-
return this.persistedData.subTreeDataStore;
|
|
32
|
-
}
|
|
33
|
-
get schema() {
|
|
34
|
-
return this._schema;
|
|
35
|
-
}
|
|
36
|
-
getPathBackToParent(entityRealm) {
|
|
37
|
-
const blueprint = entityRealm.blueprint;
|
|
38
|
-
if (blueprint.parent === void 0) {
|
|
39
|
-
return void 0;
|
|
40
|
-
}
|
|
41
|
-
let parentEntityName;
|
|
42
|
-
let relationFromParent;
|
|
43
|
-
let parent;
|
|
44
|
-
if (blueprint.type === "hasOne") {
|
|
45
|
-
parentEntityName = blueprint.parent.entity.entityName;
|
|
46
|
-
relationFromParent = blueprint.marker.parameters.field;
|
|
47
|
-
parent = blueprint.parent;
|
|
48
|
-
} else if (blueprint.type === "listEntity") {
|
|
49
|
-
const grandparentBlueprint = blueprint.parent.blueprint;
|
|
50
|
-
if (grandparentBlueprint.parent === void 0) {
|
|
51
|
-
return void 0;
|
|
52
|
-
}
|
|
53
|
-
parentEntityName = grandparentBlueprint.parent.entity.entityName;
|
|
54
|
-
relationFromParent = grandparentBlueprint.marker.parameters.field;
|
|
55
|
-
parent = grandparentBlueprint.parent;
|
|
56
|
-
} else {
|
|
57
|
-
return assertNever();
|
|
58
|
-
}
|
|
59
|
-
const relationSchema = this.schema.getEntityRelation(parentEntityName, relationFromParent);
|
|
60
|
-
const fieldBack = (relationSchema.ownedBy || relationSchema.inversedBy) ?? null;
|
|
61
|
-
if (fieldBack === null) {
|
|
62
|
-
return void 0;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
parent,
|
|
66
|
-
fieldBackToParent: fieldBack
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
getSubTreeState(mode, treeRootId, aliasOrParameters, environment) {
|
|
70
|
-
const markerRoot = this.markerTrees.get(treeRootId);
|
|
71
|
-
const subTreeStates = this.subTreeStatesByRoot.get(treeRootId);
|
|
72
|
-
if (subTreeStates === void 0 || markerRoot === void 0) {
|
|
73
|
-
if (treeRootId) {
|
|
74
|
-
throw new BindingError(
|
|
75
|
-
`Invalid tree id '${treeRootId}'. Make sure you use the one supplied by the correct extendTree call.`
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
throw new BindingError(`Failed to retrieve a sub tree.`);
|
|
79
|
-
}
|
|
80
|
-
let placeholderName;
|
|
81
|
-
if (typeof aliasOrParameters === "string") {
|
|
82
|
-
const placeholderByAlias = markerRoot.placeholdersByAliases.get(aliasOrParameters);
|
|
83
|
-
if (placeholderByAlias === void 0) {
|
|
84
|
-
throw new BindingError(`Undefined sub-tree alias '${aliasOrParameters}'.`);
|
|
85
|
-
}
|
|
86
|
-
placeholderName = placeholderByAlias;
|
|
87
|
-
} else if (mode === "entityList") {
|
|
88
|
-
placeholderName = PlaceholderGenerator.getEntityListSubTreePlaceholder(
|
|
89
|
-
aliasOrParameters.isCreating ? QueryLanguage.desugarUnconstrainedQualifiedEntityList(
|
|
90
|
-
aliasOrParameters,
|
|
91
|
-
environment
|
|
92
|
-
) : QueryLanguage.desugarQualifiedEntityList(aliasOrParameters, environment),
|
|
93
|
-
environment
|
|
94
|
-
);
|
|
95
|
-
} else if (mode === "entity") {
|
|
96
|
-
placeholderName = PlaceholderGenerator.getEntitySubTreePlaceholder(
|
|
97
|
-
aliasOrParameters.isCreating ? QueryLanguage.desugarUnconstrainedQualifiedSingleEntity(
|
|
98
|
-
aliasOrParameters,
|
|
99
|
-
environment
|
|
100
|
-
) : QueryLanguage.desugarQualifiedSingleEntity(aliasOrParameters, environment),
|
|
101
|
-
environment
|
|
102
|
-
);
|
|
103
|
-
} else {
|
|
104
|
-
throw new BindingError();
|
|
105
|
-
}
|
|
106
|
-
const subTreeState = subTreeStates.get(placeholderName);
|
|
107
|
-
if (subTreeState === void 0) {
|
|
108
|
-
throw new BindingError(`Trying to retrieve a non-existent sub-tree '${placeholderName}'.`);
|
|
109
|
-
}
|
|
110
|
-
return subTreeState;
|
|
111
|
-
}
|
|
112
|
-
getEntityListPersistedIds(state) {
|
|
113
|
-
const blueprint = state.blueprint;
|
|
114
|
-
if (blueprint.parent) {
|
|
115
|
-
const entityData = this.persistedEntityData.get(blueprint.parent.entity.id.uniqueValue);
|
|
116
|
-
return entityData?.get(blueprint.marker.placeholderName) ?? emptyEntityIdSet;
|
|
117
|
-
} else {
|
|
118
|
-
return this.subTreePersistedData.get(blueprint.marker.placeholderName) ?? emptyEntityIdSet;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
disposeOfRealm(realmToDisposeOf) {
|
|
122
|
-
this.entityRealmStore.delete(realmToDisposeOf.realmKey);
|
|
123
|
-
realmToDisposeOf.entity.realms.delete(realmToDisposeOf.realmKey);
|
|
124
|
-
if (realmToDisposeOf.type === "entityRealm") {
|
|
125
|
-
realmToDisposeOf.blueprint.parent?.childrenWithPendingUpdates?.delete(realmToDisposeOf);
|
|
126
|
-
for (const child of realmToDisposeOf.children.values()) {
|
|
127
|
-
switch (child.type) {
|
|
128
|
-
case "field":
|
|
129
|
-
continue;
|
|
130
|
-
case "entityRealm":
|
|
131
|
-
case "entityRealmStub": {
|
|
132
|
-
this.disposeOfRealm(child);
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
case "entityList": {
|
|
136
|
-
for (const listChild of child.children.values()) {
|
|
137
|
-
this.disposeOfRealm(listChild);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
const entity = realmToDisposeOf.entity;
|
|
144
|
-
if (entity.realms.size === 0) {
|
|
145
|
-
this.disposeOfEntity(entity);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
disposeOfEntity(entity) {
|
|
149
|
-
for (const realm of entity.realms.values()) {
|
|
150
|
-
this.disposeOfRealm(realm);
|
|
151
|
-
}
|
|
152
|
-
this.entityStore.delete(entity.id.uniqueValue);
|
|
153
|
-
this.persistedEntityData.delete(entity.id.uniqueValue);
|
|
154
|
-
}
|
|
155
|
-
effectivelyHasTreeRoot(candidateRoot) {
|
|
156
|
-
candidateRoots: for (const candidateSubTree of candidateRoot.subTrees.values()) {
|
|
157
|
-
if (candidateSubTree.parameters.isCreating) {
|
|
158
|
-
continue;
|
|
159
|
-
}
|
|
160
|
-
for (const root of this.markerTrees.values()) {
|
|
161
|
-
for (const alreadyPresentSubTree of root.subTrees.values()) {
|
|
162
|
-
const isSubset = MarkerComparator.isSubTreeSubsetOf(candidateSubTree, alreadyPresentSubTree);
|
|
163
|
-
if (isSubset) {
|
|
164
|
-
continue candidateRoots;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return false;
|
|
169
|
-
}
|
|
170
|
-
return true;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
export {
|
|
174
|
-
TreeStore
|
|
175
|
-
};
|
|
176
|
-
//# sourceMappingURL=TreeStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TreeStore.js","sources":["../../../../../packages/binding/src/core/TreeStore.ts"],"sourcesContent":["import {\n\tNormalizedPersistedData,\n\tPersistedEntityDataStore,\n\tReceivedDataTree,\n\tSubTreeDataStore,\n\tUniqueEntityId,\n} from '../accessorTree'\nimport { BindingError } from '../BindingError'\nimport type { Environment } from '../dao'\nimport { MarkerTreeRoot, PlaceholderGenerator } from '../markers'\nimport { QueryLanguage } from '../queryLanguage'\nimport type {\n\tAlias,\n\tEntityId,\n\tEntityName,\n\tEntityRealmKey,\n\tFieldName,\n\tPlaceholderName,\n\tSugaredQualifiedEntityList,\n\tSugaredQualifiedSingleEntity,\n\tSugaredUnconstrainedQualifiedEntityList,\n\tSugaredUnconstrainedQualifiedSingleEntity,\n\tTreeRootId,\n} from '../treeParameters'\nimport { assertNever } from '../utils'\nimport { MarkerComparator } from './MarkerComparator'\nimport { RequestResponseNormalizer } from './RequestResponseNormalizer'\nimport type { Schema } from './schema'\nimport type { EntityListState, EntityRealmState, EntityRealmStateStub, EntityState, RootStateNode } from './state'\nimport { SubMutationOperation } from './MutationGenerator'\n\nconst emptyEntityIdSet: ReadonlySet<EntityId> = new Set()\n\nexport class TreeStore {\n\tpublic readonly entityStore: Map<UniqueEntityId, EntityState> = new Map()\n\tpublic readonly entityRealmStore: Map<EntityRealmKey, EntityRealmState | EntityRealmStateStub> = new Map()\n\n\t// This is tricky. We allow placeholder name duplicates, only the (TreeRootId, PlaceholderName) tuple is unique.\n\t// This is useful when the tree is extended to contain a sub-tree with the same placeholder.\n\tpublic readonly markerTrees: Map<TreeRootId | undefined, MarkerTreeRoot> = new Map()\n\tpublic readonly subTreeStatesByRoot: Map<TreeRootId | undefined, Map<PlaceholderName, RootStateNode>> = new Map()\n\n\tpublic readonly persistedData: NormalizedPersistedData = new NormalizedPersistedData(new Map(), new Map())\n\n\tpublic constructor(\n\t\tprivate readonly _schema: Schema,\n\t) {}\n\n\tpublic mergeInQueryResponse(response: ReceivedDataTree, markerTree: MarkerTreeRoot): void {\n\t\tRequestResponseNormalizer.mergeInQueryResponse(this.persistedData, response, markerTree)\n\t}\n\n\tpublic mergeInMutationResponse(response: ReceivedDataTree, operations: SubMutationOperation[]): void {\n\t\tRequestResponseNormalizer.mergeInMutationResponse(this.persistedData, response, operations)\n\t}\n\n\tpublic get persistedEntityData(): PersistedEntityDataStore {\n\t\treturn this.persistedData.persistedEntityDataStore\n\t}\n\n\tpublic get subTreePersistedData(): SubTreeDataStore {\n\t\treturn this.persistedData.subTreeDataStore\n\t}\n\n\tpublic get schema(): Schema {\n\t\treturn this._schema\n\t}\n\n\tpublic getPathBackToParent(entityRealm: EntityRealmState | EntityRealmStateStub):\n\t\t| {\n\t\t\tfieldBackToParent: FieldName\n\t\t\tparent: EntityRealmState\n\t\t }\n\t\t| undefined {\n\t\tconst blueprint = entityRealm.blueprint\n\t\tif (blueprint.parent === undefined) {\n\t\t\treturn undefined\n\t\t}\n\t\tlet parentEntityName: EntityName\n\t\tlet relationFromParent: FieldName\n\t\tlet parent: EntityRealmState\n\n\t\tif (blueprint.type === 'hasOne') {\n\t\t\tparentEntityName = blueprint.parent.entity.entityName\n\t\t\trelationFromParent = blueprint.marker.parameters.field\n\t\t\tparent = blueprint.parent\n\t\t} else if (blueprint.type === 'listEntity') {\n\t\t\tconst grandparentBlueprint = blueprint.parent.blueprint\n\n\t\t\tif (grandparentBlueprint.parent === undefined) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tparentEntityName = grandparentBlueprint.parent.entity.entityName\n\t\t\trelationFromParent = grandparentBlueprint.marker.parameters.field\n\t\t\tparent = grandparentBlueprint.parent\n\t\t} else {\n\t\t\treturn assertNever(blueprint)\n\t\t}\n\n\t\tconst relationSchema = this.schema.getEntityRelation(parentEntityName, relationFromParent)\n\t\tconst fieldBack = (relationSchema.ownedBy || relationSchema.inversedBy) ?? null\n\n\t\t// console.log(parentEntityName, relationFromParent, entityRealm.entity.entityName, fieldBack)\n\t\tif (fieldBack === null) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn {\n\t\t\tparent,\n\t\t\tfieldBackToParent: fieldBack,\n\t\t}\n\t}\n\n\tpublic getSubTreeState(\n\t\tmode: 'entity',\n\t\ttreeRootId: TreeRootId | undefined,\n\t\taliasOrParameters: Alias | SugaredQualifiedSingleEntity | SugaredUnconstrainedQualifiedSingleEntity,\n\t\tenvironment: Environment,\n\t): EntityRealmState\n\tpublic getSubTreeState(\n\t\tmode: 'entityList',\n\t\ttreeRootId: TreeRootId | undefined,\n\t\taliasOrParameters: Alias | SugaredQualifiedEntityList | SugaredUnconstrainedQualifiedEntityList,\n\t\tenvironment: Environment,\n\t): EntityListState\n\tpublic getSubTreeState(\n\t\tmode: 'entity' | 'entityList',\n\t\ttreeRootId: TreeRootId | undefined,\n\t\taliasOrParameters:\n\t\t\t| Alias\n\t\t\t| SugaredQualifiedSingleEntity\n\t\t\t| SugaredUnconstrainedQualifiedSingleEntity\n\t\t\t| SugaredQualifiedEntityList\n\t\t\t| SugaredUnconstrainedQualifiedEntityList,\n\t\tenvironment: Environment,\n\t): RootStateNode {\n\t\tconst markerRoot = this.markerTrees.get(treeRootId)\n\t\tconst subTreeStates = this.subTreeStatesByRoot.get(treeRootId)\n\n\t\tif (subTreeStates === undefined || markerRoot === undefined) {\n\t\t\tif (treeRootId) {\n\t\t\t\tthrow new BindingError(\n\t\t\t\t\t`Invalid tree id '${treeRootId}'. Make sure you use the one supplied by the correct extendTree call.`,\n\t\t\t\t)\n\t\t\t}\n\t\t\tthrow new BindingError(`Failed to retrieve a sub tree.`)\n\t\t}\n\n\t\tlet placeholderName: string\n\n\t\tif (typeof aliasOrParameters === 'string') {\n\t\t\tconst placeholderByAlias = markerRoot.placeholdersByAliases.get(aliasOrParameters)\n\n\t\t\tif (placeholderByAlias === undefined) {\n\t\t\t\tthrow new BindingError(`Undefined sub-tree alias '${aliasOrParameters}'.`)\n\t\t\t}\n\t\t\tplaceholderName = placeholderByAlias\n\t\t} else if (mode === 'entityList') {\n\t\t\tplaceholderName = PlaceholderGenerator.getEntityListSubTreePlaceholder(\n\t\t\t\taliasOrParameters.isCreating\n\t\t\t\t\t? QueryLanguage.desugarUnconstrainedQualifiedEntityList(\n\t\t\t\t\t\taliasOrParameters as SugaredUnconstrainedQualifiedEntityList,\n\t\t\t\t\t\tenvironment,\n\t\t\t\t\t )\n\t\t\t\t\t: QueryLanguage.desugarQualifiedEntityList(aliasOrParameters as SugaredQualifiedEntityList, environment),\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else if (mode === 'entity') {\n\t\t\tplaceholderName = PlaceholderGenerator.getEntitySubTreePlaceholder(\n\t\t\t\taliasOrParameters.isCreating\n\t\t\t\t\t? QueryLanguage.desugarUnconstrainedQualifiedSingleEntity(\n\t\t\t\t\t\taliasOrParameters as SugaredUnconstrainedQualifiedSingleEntity,\n\t\t\t\t\t\tenvironment,\n\t\t\t\t\t )\n\t\t\t\t\t: QueryLanguage.desugarQualifiedSingleEntity(aliasOrParameters as SugaredQualifiedSingleEntity, environment),\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tconst subTreeState = subTreeStates.get(placeholderName)\n\n\t\tif (subTreeState === undefined) {\n\t\t\tthrow new BindingError(`Trying to retrieve a non-existent sub-tree '${placeholderName}'.`)\n\t\t}\n\t\treturn subTreeState\n\t}\n\n\tpublic getEntityListPersistedIds(state: EntityListState): ReadonlySet<EntityId> {\n\t\tconst blueprint = state.blueprint\n\n\t\tif (blueprint.parent) {\n\t\t\tconst entityData = this.persistedEntityData.get(blueprint.parent.entity.id.uniqueValue)\n\t\t\treturn (entityData?.get(blueprint.marker.placeholderName) as Set<string> | undefined) ?? emptyEntityIdSet\n\t\t} else {\n\t\t\treturn (this.subTreePersistedData.get(blueprint.marker.placeholderName) as Set<string>) ?? emptyEntityIdSet\n\t\t}\n\t}\n\n\tpublic disposeOfRealm(realmToDisposeOf: EntityRealmState | EntityRealmStateStub) {\n\t\tthis.entityRealmStore.delete(realmToDisposeOf.realmKey)\n\t\trealmToDisposeOf.entity.realms.delete(realmToDisposeOf.realmKey)\n\n\t\tif (realmToDisposeOf.type === 'entityRealm') {\n\t\t\trealmToDisposeOf.blueprint.parent?.childrenWithPendingUpdates?.delete(realmToDisposeOf)\n\n\t\t\tfor (const child of realmToDisposeOf.children.values()) {\n\t\t\t\tswitch (child.type) {\n\t\t\t\t\tcase 'field':\n\t\t\t\t\t\tcontinue\n\t\t\t\t\tcase 'entityRealm':\n\t\t\t\t\tcase 'entityRealmStub': {\n\t\t\t\t\t\tthis.disposeOfRealm(child)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase 'entityList': {\n\t\t\t\t\t\tfor (const listChild of child.children.values()) {\n\t\t\t\t\t\t\tthis.disposeOfRealm(listChild)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tconst entity = realmToDisposeOf.entity\n\t\tif (entity.realms.size === 0) {\n\t\t\tthis.disposeOfEntity(entity)\n\t\t}\n\t}\n\n\tpublic disposeOfEntity(entity: EntityState) {\n\t\tfor (const realm of entity.realms.values()) {\n\t\t\tthis.disposeOfRealm(realm)\n\t\t}\n\t\tthis.entityStore.delete(entity.id.uniqueValue)\n\t\tthis.persistedEntityData.delete(entity.id.uniqueValue)\n\t}\n\n\tpublic effectivelyHasTreeRoot(candidateRoot: MarkerTreeRoot): boolean {\n\t\tcandidateRoots: for (const candidateSubTree of candidateRoot.subTrees.values()) {\n\t\t\tif (candidateSubTree.parameters.isCreating) {\n\t\t\t\t// This, by definition, won't trigger a query.\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tfor (const root of this.markerTrees.values()) {\n\t\t\t\tfor (const alreadyPresentSubTree of root.subTrees.values()) {\n\t\t\t\t\tconst isSubset = MarkerComparator.isSubTreeSubsetOf(candidateSubTree, alreadyPresentSubTree)\n\t\t\t\t\tif (isSubset) {\n\t\t\t\t\t\tcontinue candidateRoots\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;AA+BA,MAAM,uCAA8C;AAE7C,MAAM,UAAU;AAAA,EAWf,YACW,SAChB;AADgB,SAAA,UAAA;AAXF,kBAAA,MAAA,mCAAoD,IAAI,CAAA;AACxD,kBAAA,MAAA,wCAAqF,IAAI,CAAA;AAIzF,kBAAA,MAAA,mCAA+D,IAAI,CAAA;AACnE,kBAAA,MAAA,2CAA4F,IAAI,CAAA;AAEhG,kBAAA,MAAA,iBAAyC,IAAI,wBAAwB,oBAAI,OAAO,oBAAI,IAAK,CAAA,CAAA;AAAA,EAItG;AAAA,EAEI,qBAA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
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const BindingError = require("../BindingError.cjs");
|
|
4
|
-
const VariableFieldValue = require("../dao/VariableFieldValue.cjs");
|
|
5
|
-
class VariableInputTransformer {
|
|
6
|
-
static transformValue(value, environment) {
|
|
7
|
-
if (value instanceof VariableFieldValue.VariableFieldValue) {
|
|
8
|
-
return VariableInputTransformer.transformVariableFieldValue(value, environment);
|
|
9
|
-
}
|
|
10
|
-
return value;
|
|
11
|
-
}
|
|
12
|
-
static transformVariableFieldValue(variableFieldValue, environment) {
|
|
13
|
-
const value = environment.getVariableOrElse(variableFieldValue.variableName, void 0) ?? environment.getParameterOrElse(variableFieldValue.variableName, void 0);
|
|
14
|
-
if (value === void 0) {
|
|
15
|
-
throw new BindingError.BindingError(`Variable '${variableFieldValue.variableName}' not found.`);
|
|
16
|
-
}
|
|
17
|
-
if (typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number" && value !== null) {
|
|
18
|
-
throw new BindingError.BindingError(`The value of the '${variableFieldValue.variableName}' must be a scalar or null, not '${typeof value}'.`);
|
|
19
|
-
}
|
|
20
|
-
return value;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.VariableInputTransformer = VariableInputTransformer;
|
|
24
|
-
//# sourceMappingURL=VariableInputTransformer.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VariableInputTransformer.cjs","sources":["../../../../../packages/binding/src/core/VariableInputTransformer.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport { Environment, VariableFieldValue } from '../dao'\nimport type { FieldValue, OptionallyVariableFieldValue } from '../treeParameters'\n\nexport class VariableInputTransformer {\n\tpublic static transformValue(value: OptionallyVariableFieldValue, environment: Environment): FieldValue {\n\t\tif (value instanceof VariableFieldValue) {\n\t\t\treturn VariableInputTransformer.transformVariableFieldValue(value, environment)\n\t\t}\n\t\treturn value\n\t}\n\n\tpublic static transformVariableFieldValue(variableFieldValue: VariableFieldValue, environment: Environment): FieldValue {\n\t\tconst value = environment.getVariableOrElse(variableFieldValue.variableName, undefined)\n\t\t\t?? environment.getParameterOrElse(variableFieldValue.variableName, undefined)\n\n\t\tif (value === undefined) {\n\t\t\tthrow new BindingError(`Variable '${variableFieldValue.variableName}' not found.`)\n\t\t}\n\n\t\tif (typeof value !== 'string' && typeof value !== 'boolean' && typeof value !== 'number' && value !== null) {\n\t\t\tthrow new BindingError(`The value of the '${variableFieldValue.variableName}' must be a scalar or null, not '${typeof value}'.`)\n\t\t}\n\t\treturn value\n\t}\n}\n"],"names":["VariableFieldValue","BindingError"],"mappings":";;;;AAIO,MAAM,yBAAyB;AAAA,EACrC,OAAc,eAAe,OAAqC,aAAsC;AACvG,QAAI,iBAAiBA,mBAAAA,oBAAoB;AACjC,aAAA,yBAAyB,4BAA4B,OAAO,WAAW;AAAA,IAC/E;AACO,WAAA;AAAA,EACR;AAAA,EAEA,OAAc,4BAA4B,oBAAwC,aAAsC;AACjH,UAAA,QAAQ,YAAY,kBAAkB,mBAAmB,cAAc,MAAS,KAClF,YAAY,mBAAmB,mBAAmB,cAAc,MAAS;AAE7E,QAAI,UAAU,QAAW;AACxB,YAAM,IAAIC,aAAA,aAAa,aAAa,mBAAmB,YAAY,cAAc;AAAA,IAClF;AAEI,QAAA,OAAO,UAAU,YAAY,OAAO,UAAU,aAAa,OAAO,UAAU,YAAY,UAAU,MAAM;AACrG,YAAA,IAAIA,aAAAA,aAAa,qBAAqB,mBAAmB,YAAY,oCAAoC,OAAO,KAAK,IAAI;AAAA,IAChI;AACO,WAAA;AAAA,EACR;AACD;;"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BindingError } from "../BindingError.js";
|
|
2
|
-
import { VariableFieldValue } from "../dao/VariableFieldValue.js";
|
|
3
|
-
class VariableInputTransformer {
|
|
4
|
-
static transformValue(value, environment) {
|
|
5
|
-
if (value instanceof VariableFieldValue) {
|
|
6
|
-
return VariableInputTransformer.transformVariableFieldValue(value, environment);
|
|
7
|
-
}
|
|
8
|
-
return value;
|
|
9
|
-
}
|
|
10
|
-
static transformVariableFieldValue(variableFieldValue, environment) {
|
|
11
|
-
const value = environment.getVariableOrElse(variableFieldValue.variableName, void 0) ?? environment.getParameterOrElse(variableFieldValue.variableName, void 0);
|
|
12
|
-
if (value === void 0) {
|
|
13
|
-
throw new BindingError(`Variable '${variableFieldValue.variableName}' not found.`);
|
|
14
|
-
}
|
|
15
|
-
if (typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number" && value !== null) {
|
|
16
|
-
throw new BindingError(`The value of the '${variableFieldValue.variableName}' must be a scalar or null, not '${typeof value}'.`);
|
|
17
|
-
}
|
|
18
|
-
return value;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
VariableInputTransformer
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=VariableInputTransformer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VariableInputTransformer.js","sources":["../../../../../packages/binding/src/core/VariableInputTransformer.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport { Environment, VariableFieldValue } from '../dao'\nimport type { FieldValue, OptionallyVariableFieldValue } from '../treeParameters'\n\nexport class VariableInputTransformer {\n\tpublic static transformValue(value: OptionallyVariableFieldValue, environment: Environment): FieldValue {\n\t\tif (value instanceof VariableFieldValue) {\n\t\t\treturn VariableInputTransformer.transformVariableFieldValue(value, environment)\n\t\t}\n\t\treturn value\n\t}\n\n\tpublic static transformVariableFieldValue(variableFieldValue: VariableFieldValue, environment: Environment): FieldValue {\n\t\tconst value = environment.getVariableOrElse(variableFieldValue.variableName, undefined)\n\t\t\t?? environment.getParameterOrElse(variableFieldValue.variableName, undefined)\n\n\t\tif (value === undefined) {\n\t\t\tthrow new BindingError(`Variable '${variableFieldValue.variableName}' not found.`)\n\t\t}\n\n\t\tif (typeof value !== 'string' && typeof value !== 'boolean' && typeof value !== 'number' && value !== null) {\n\t\t\tthrow new BindingError(`The value of the '${variableFieldValue.variableName}' must be a scalar or null, not '${typeof value}'.`)\n\t\t}\n\t\treturn value\n\t}\n}\n"],"names":[],"mappings":";;AAIO,MAAM,yBAAyB;AAAA,EACrC,OAAc,eAAe,OAAqC,aAAsC;AACvG,QAAI,iBAAiB,oBAAoB;AACjC,aAAA,yBAAyB,4BAA4B,OAAO,WAAW;AAAA,IAC/E;AACO,WAAA;AAAA,EACR;AAAA,EAEA,OAAc,4BAA4B,oBAAwC,aAAsC;AACjH,UAAA,QAAQ,YAAY,kBAAkB,mBAAmB,cAAc,MAAS,KAClF,YAAY,mBAAmB,mBAAmB,cAAc,MAAS;AAE7E,QAAI,UAAU,QAAW;AACxB,YAAM,IAAI,aAAa,aAAa,mBAAmB,YAAY,cAAc;AAAA,IAClF;AAEI,QAAA,OAAO,UAAU,YAAY,OAAO,UAAU,aAAa,OAAO,UAAU,YAAY,UAAU,MAAM;AACrG,YAAA,IAAI,aAAa,qBAAqB,mBAAmB,YAAY,oCAAoC,OAAO,KAAK,IAAI;AAAA,IAChI;AACO,WAAA;AAAA,EACR;AACD;"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const MarkerSugarer = require("./MarkerSugarer.cjs");
|
|
4
|
-
const TreeParameterSugarer = require("./TreeParameterSugarer.cjs");
|
|
5
|
-
const assertNever = require("../../utils/assertNever.cjs");
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
9
|
-
class ErrorLocator {
|
|
10
|
-
static locateMarkerPath(path) {
|
|
11
|
-
return path.map((marker) => MarkerSugarer.MarkerSugarer.sugarMarker(marker)).join(this.GLUE);
|
|
12
|
-
}
|
|
13
|
-
static locateInternalState(state) {
|
|
14
|
-
function stateToPath(state2) {
|
|
15
|
-
if (state2 === void 0) {
|
|
16
|
-
return [];
|
|
17
|
-
}
|
|
18
|
-
switch (state2.type) {
|
|
19
|
-
case "field":
|
|
20
|
-
return [...stateToPath(state2.parent), TreeParameterSugarer.TreeParameterSugarer.sugarField(state2.fieldMarker.fieldName)];
|
|
21
|
-
case "entityRealm": {
|
|
22
|
-
const blueprint = state2.blueprint;
|
|
23
|
-
if (blueprint.type === "subTree") {
|
|
24
|
-
return [
|
|
25
|
-
TreeParameterSugarer.TreeParameterSugarer.sugarRootEntity(
|
|
26
|
-
state2.entity.entityName,
|
|
27
|
-
blueprint.marker.parameters.isCreating ? void 0 : blueprint.marker.parameters.where
|
|
28
|
-
)
|
|
29
|
-
];
|
|
30
|
-
}
|
|
31
|
-
if (blueprint.type === "listEntity") {
|
|
32
|
-
return [...stateToPath(blueprint.parent)];
|
|
33
|
-
}
|
|
34
|
-
if (blueprint.type === "hasOne") {
|
|
35
|
-
return [...stateToPath(blueprint.parent), MarkerSugarer.MarkerSugarer.sugarHasOneRelationMarker(blueprint.marker)];
|
|
36
|
-
}
|
|
37
|
-
return assertNever.assertNever();
|
|
38
|
-
}
|
|
39
|
-
case "entityList": {
|
|
40
|
-
const blueprint = state2.blueprint;
|
|
41
|
-
if (blueprint.parent === void 0) {
|
|
42
|
-
return [
|
|
43
|
-
TreeParameterSugarer.TreeParameterSugarer.sugarRootEntityList(
|
|
44
|
-
state2.entityName,
|
|
45
|
-
blueprint.marker.parameters.isCreating ? void 0 : blueprint.marker.parameters.filter
|
|
46
|
-
)
|
|
47
|
-
];
|
|
48
|
-
}
|
|
49
|
-
const hasMany = blueprint.marker;
|
|
50
|
-
return [...stateToPath(blueprint.parent), MarkerSugarer.MarkerSugarer.sugarHasManyRelationMarker(hasMany)];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return stateToPath(state).join(this.GLUE);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
__publicField(ErrorLocator, "GLUE", ".");
|
|
58
|
-
exports.ErrorLocator = ErrorLocator;
|
|
59
|
-
//# sourceMappingURL=ErrorLocator.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorLocator.cjs","sources":["../../../../../../packages/binding/src/core/exceptions/ErrorLocator.ts"],"sourcesContent":["import { assertNever } from '../../utils'\nimport type { StateNode } from '../state'\nimport { MarkerSugarer } from './MarkerSugarer'\nimport type { RawMarkerPath } from './RawMarkerPath'\nimport { TreeParameterSugarer } from './TreeParameterSugarer'\n\nexport class ErrorLocator {\n\tprivate static readonly GLUE = '.'\n\n\tpublic static locateMarkerPath(path: RawMarkerPath): string {\n\t\treturn path.map(marker => MarkerSugarer.sugarMarker(marker)).join(this.GLUE)\n\t}\n\n\tpublic static locateInternalState(state: StateNode): string {\n\t\tfunction stateToPath(state: StateNode | undefined): string[] {\n\t\t\tif (state === undefined) {\n\t\t\t\treturn []\n\t\t\t}\n\t\t\tswitch (state.type) {\n\t\t\t\tcase 'field':\n\t\t\t\t\treturn [...stateToPath(state.parent), TreeParameterSugarer.sugarField(state.fieldMarker.fieldName)]\n\t\t\t\tcase 'entityRealm': {\n\t\t\t\t\tconst blueprint = state.blueprint\n\t\t\t\t\tif (blueprint.type === 'subTree') {\n\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\tTreeParameterSugarer.sugarRootEntity(\n\t\t\t\t\t\t\t\tstate.entity.entityName,\n\t\t\t\t\t\t\t\tblueprint.marker.parameters.isCreating ? undefined : blueprint.marker.parameters.where,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t\tif (blueprint.type === 'listEntity') {\n\t\t\t\t\t\treturn [...stateToPath(blueprint.parent)]\n\t\t\t\t\t}\n\t\t\t\t\tif (blueprint.type === 'hasOne') {\n\t\t\t\t\t\treturn [...stateToPath(blueprint.parent), MarkerSugarer.sugarHasOneRelationMarker(blueprint.marker)]\n\t\t\t\t\t}\n\t\t\t\t\treturn assertNever(blueprint)\n\t\t\t\t}\n\t\t\t\tcase 'entityList': {\n\t\t\t\t\tconst blueprint = state.blueprint\n\n\t\t\t\t\tif (blueprint.parent === undefined) {\n\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\tTreeParameterSugarer.sugarRootEntityList(\n\t\t\t\t\t\t\t\tstate.entityName,\n\t\t\t\t\t\t\t\tblueprint.marker.parameters.isCreating ? undefined : blueprint.marker.parameters.filter,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t\tconst hasMany = blueprint.marker\n\t\t\t\t\treturn [...stateToPath(blueprint.parent), MarkerSugarer.sugarHasManyRelationMarker(hasMany)]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn stateToPath(state).join(this.GLUE)\n\t}\n}\n"],"names":["MarkerSugarer","state","TreeParameterSugarer","assertNever"],"mappings":";;;;;;;;AAMO,MAAM,aAAa;AAAA,EAGzB,OAAc,iBAAiB,MAA6B;AACpD,WAAA,KAAK,IAAI,CAAA,WAAUA,cAAAA,cAAc,YAAY,MAAM,CAAC,EAAE,KAAK,KAAK,IAAI;AAAA,EAC5E;AAAA,EAEA,OAAc,oBAAoB,OAA0B;AAC3D,aAAS,YAAYC,QAAwC;AAC5D,UAAIA,WAAU,QAAW;AACxB,eAAO;MACR;AACA,cAAQA,OAAM,MAAM;AAAA,QACnB,KAAK;AACG,iBAAA,CAAC,GAAG,YAAYA,OAAM,MAAM,GAAGC,0CAAqB,WAAWD,OAAM,YAAY,SAAS,CAAC;AAAA,QACnG,KAAK,eAAe;AACnB,gBAAM,YAAYA,OAAM;AACpB,cAAA,UAAU,SAAS,WAAW;AAC1B,mBAAA;AAAA,cACNC,qBAAAA,qBAAqB;AAAA,gBACpBD,OAAM,OAAO;AAAA,gBACb,UAAU,OAAO,WAAW,aAAa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