@contember/binding 2.0.0-alpha.8 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +5 -11
- 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 -125
- package/dist/development/src/core/RequestResponseNormalizer.cjs.map +0 -1
- package/dist/development/src/core/RequestResponseNormalizer.js +0 -125
- 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 -125
- package/dist/production/src/core/RequestResponseNormalizer.cjs.map +0 -1
- package/dist/production/src/core/RequestResponseNormalizer.js +0 -125
- 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 -8
- 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 -44
- 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 -9
- 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 -161
- 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,180 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const MutationAlias = require("./requestAliases/MutationAlias.cjs");
|
|
4
|
-
const assertNever = require("../utils/assertNever.cjs");
|
|
5
|
-
class ErrorsPreprocessor {
|
|
6
|
-
constructor(requestResponse, operations) {
|
|
7
|
-
this.requestResponse = requestResponse;
|
|
8
|
-
this.operations = operations;
|
|
9
|
-
}
|
|
10
|
-
preprocess() {
|
|
11
|
-
const treeRoot = /* @__PURE__ */ new Map();
|
|
12
|
-
if (this.requestResponse === void 0) {
|
|
13
|
-
return treeRoot;
|
|
14
|
-
}
|
|
15
|
-
for (const operation of this.operations) {
|
|
16
|
-
const mutationResponse = this.requestResponse.data[operation.alias];
|
|
17
|
-
const processedResponse = this.processMutationResponse(mutationResponse);
|
|
18
|
-
if (processedResponse === void 0) {
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
const { subTreeType, subTreePlaceholder, id } = operation;
|
|
22
|
-
if (subTreeType === "single") {
|
|
23
|
-
if (treeRoot.has(subTreePlaceholder)) {
|
|
24
|
-
return this.rejectCorruptData();
|
|
25
|
-
}
|
|
26
|
-
treeRoot.set(subTreePlaceholder, processedResponse);
|
|
27
|
-
} else if (subTreeType === "list") {
|
|
28
|
-
const child = treeRoot.get(subTreePlaceholder);
|
|
29
|
-
if (child === void 0) {
|
|
30
|
-
treeRoot.set(subTreePlaceholder, {
|
|
31
|
-
nodeType: "iNode",
|
|
32
|
-
children: /* @__PURE__ */ new Map([[id, processedResponse]]),
|
|
33
|
-
validation: [],
|
|
34
|
-
execution: []
|
|
35
|
-
});
|
|
36
|
-
} else if (child.nodeType === "iNode") {
|
|
37
|
-
child.children.set(id, processedResponse);
|
|
38
|
-
}
|
|
39
|
-
} else {
|
|
40
|
-
return assertNever.assertNever();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return treeRoot;
|
|
44
|
-
}
|
|
45
|
-
processMutationResponse(mutationResponse) {
|
|
46
|
-
if (mutationResponse.ok && mutationResponse.validation?.valid && mutationResponse.errors.length === 0) {
|
|
47
|
-
return void 0;
|
|
48
|
-
}
|
|
49
|
-
if (mutationResponse.validation?.errors.length) {
|
|
50
|
-
return this.getErrorNode(mutationResponse.validation?.errors);
|
|
51
|
-
}
|
|
52
|
-
if (mutationResponse.errors.length) {
|
|
53
|
-
return this.getErrorNode(mutationResponse.errors);
|
|
54
|
-
}
|
|
55
|
-
return void 0;
|
|
56
|
-
}
|
|
57
|
-
getErrorNode(errors) {
|
|
58
|
-
const [head, ...tail] = errors;
|
|
59
|
-
let rootNode = this.getRootNode(head);
|
|
60
|
-
errorLoop: for (const error of tail) {
|
|
61
|
-
let currentNode = rootNode;
|
|
62
|
-
const path = "paths" in error ? error.paths[0] ?? [] : error.path;
|
|
63
|
-
for (let i = 0, pathLength = path.length; i < pathLength; i++) {
|
|
64
|
-
const pathNode = path[i];
|
|
65
|
-
if (currentNode.nodeType === "leaf") {
|
|
66
|
-
currentNode.nodeType = "iNode";
|
|
67
|
-
currentNode.children = /* @__PURE__ */ new Map();
|
|
68
|
-
}
|
|
69
|
-
if ("field" in pathNode) {
|
|
70
|
-
if (currentNode.nodeType === "iNode") {
|
|
71
|
-
let alias = pathNode.field;
|
|
72
|
-
let nextIndex = i + 1;
|
|
73
|
-
if (nextIndex in path) {
|
|
74
|
-
const nextPathNode = path[nextIndex];
|
|
75
|
-
if ("index" in nextPathNode && typeof nextPathNode.alias === "string" && nextPathNode.alias.startsWith(pathNode.field)) {
|
|
76
|
-
i++;
|
|
77
|
-
nextIndex++;
|
|
78
|
-
alias = nextPathNode.alias;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
if (!currentNode.children.has(alias)) {
|
|
82
|
-
currentNode.children.set(alias, this.getRootNode(error, nextIndex));
|
|
83
|
-
if (nextIndex <= path.length) {
|
|
84
|
-
continue errorLoop;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
currentNode = currentNode.children.get(alias);
|
|
88
|
-
} else {
|
|
89
|
-
this.rejectCorruptData();
|
|
90
|
-
}
|
|
91
|
-
} else if ("index" in path) {
|
|
92
|
-
if (currentNode.nodeType === "iNode") {
|
|
93
|
-
const alias = pathNode.alias;
|
|
94
|
-
if (alias === null) {
|
|
95
|
-
throw new ErrorsPreprocessor.ErrorsPreprocessorError(
|
|
96
|
-
`Corrupt data: undefined alias for node with index ${pathNode.index}.`
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
const entityId = MutationAlias.MutationAlias.decodeEntityId(alias);
|
|
100
|
-
if (!currentNode.children.has(entityId)) {
|
|
101
|
-
currentNode.children.set(entityId, this.getRootNode(error, i + 1));
|
|
102
|
-
if (i + 1 <= path.length) {
|
|
103
|
-
continue errorLoop;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
currentNode = currentNode.children.get(entityId);
|
|
107
|
-
} else {
|
|
108
|
-
this.rejectCorruptData();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
if (this.isExecutionError(error)) {
|
|
113
|
-
currentNode.execution.push({ type: "execution", code: error.type, developerMessage: error.message });
|
|
114
|
-
} else {
|
|
115
|
-
currentNode.validation.push(this.createValidationError(error.message.text));
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return rootNode;
|
|
119
|
-
}
|
|
120
|
-
getRootNode(error, startIndex = 0) {
|
|
121
|
-
let rootNode = {
|
|
122
|
-
validation: this.isExecutionError(error) ? [] : [this.createValidationError(error.message.text)],
|
|
123
|
-
execution: this.isExecutionError(error) ? [{ type: "execution", code: error.type, developerMessage: error.message }] : [],
|
|
124
|
-
nodeType: "leaf"
|
|
125
|
-
};
|
|
126
|
-
const path = "paths" in error ? error.paths[0] ?? [] : error.path;
|
|
127
|
-
for (let i = path.length - 1; i >= startIndex; i--) {
|
|
128
|
-
const pathNode = path[i];
|
|
129
|
-
if ("field" in pathNode) {
|
|
130
|
-
rootNode = {
|
|
131
|
-
validation: [],
|
|
132
|
-
execution: [],
|
|
133
|
-
nodeType: "iNode",
|
|
134
|
-
children: /* @__PURE__ */ new Map([[pathNode.field, rootNode]])
|
|
135
|
-
};
|
|
136
|
-
} else if ("index" in pathNode) {
|
|
137
|
-
const alias = pathNode.alias;
|
|
138
|
-
if (alias === null) {
|
|
139
|
-
throw new ErrorsPreprocessor.ErrorsPreprocessorError(
|
|
140
|
-
`Corrupt data: undefined alias for node with index ${pathNode.index}.`
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
rootNode = {
|
|
144
|
-
validation: [],
|
|
145
|
-
execution: [],
|
|
146
|
-
nodeType: "iNode",
|
|
147
|
-
children: /* @__PURE__ */ new Map([[MutationAlias.MutationAlias.decodeEntityId(alias), rootNode]])
|
|
148
|
-
};
|
|
149
|
-
} else {
|
|
150
|
-
assertNever.assertNever();
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return rootNode;
|
|
154
|
-
}
|
|
155
|
-
createValidationError(message) {
|
|
156
|
-
if (message === "Field is required") {
|
|
157
|
-
return {
|
|
158
|
-
type: "validation",
|
|
159
|
-
code: "fieldRequired",
|
|
160
|
-
message
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
return { type: "validation", message, code: void 0 };
|
|
164
|
-
}
|
|
165
|
-
isExecutionError(error) {
|
|
166
|
-
return "type" in error;
|
|
167
|
-
}
|
|
168
|
-
rejectCorruptData() {
|
|
169
|
-
throw new ErrorsPreprocessor.ErrorsPreprocessorError(
|
|
170
|
-
"Received corrupted data: a node cannot be simultaneously field-indexed and path-indexed."
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
((ErrorsPreprocessor2) => {
|
|
175
|
-
class ErrorsPreprocessorError extends Error {
|
|
176
|
-
}
|
|
177
|
-
ErrorsPreprocessor2.ErrorsPreprocessorError = ErrorsPreprocessorError;
|
|
178
|
-
})(ErrorsPreprocessor || (ErrorsPreprocessor = {}));
|
|
179
|
-
exports.ErrorsPreprocessor = ErrorsPreprocessor;
|
|
180
|
-
//# sourceMappingURL=ErrorsPreprocessor.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorsPreprocessor.cjs","sources":["../../../../../packages/binding/src/core/ErrorsPreprocessor.ts"],"sourcesContent":["import type { ErrorAccessor } from '../accessors'\nimport type { EntityId, FieldName, PlaceholderName } from '../treeParameters'\nimport { assertNever } from '../utils'\nimport { MutationAlias } from './requestAliases'\nimport { SubMutationOperation } from './MutationGenerator'\nimport { DataBindingTransactionResult } from './DataBinding'\nimport { MutationError, MutationResult, ValidationError } from '@contember/client'\n\nclass ErrorsPreprocessor {\n\tpublic constructor(\n\t\tprivate readonly requestResponse: DataBindingTransactionResult,\n\t\tprivate readonly operations: SubMutationOperation[],\n\t) {}\n\n\tpublic preprocess(): ErrorsPreprocessor.ErrorTreeRoot {\n\t\tconst treeRoot: ErrorsPreprocessor.ErrorTreeRoot = new Map()\n\n\t\tif (this.requestResponse === undefined) {\n\t\t\treturn treeRoot\n\t\t}\n\n\t\tfor (const operation of this.operations) {\n\t\t\tconst mutationResponse = this.requestResponse.data[operation.alias]\n\t\t\tconst processedResponse = this.processMutationResponse(mutationResponse)\n\n\t\t\tif (processedResponse === undefined) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tconst { subTreeType, subTreePlaceholder, id } = operation\n\n\t\t\tif (subTreeType === 'single') {\n\t\t\t\tif (treeRoot.has(subTreePlaceholder)) {\n\t\t\t\t\treturn this.rejectCorruptData()\n\t\t\t\t}\n\t\t\t\ttreeRoot.set(subTreePlaceholder, processedResponse)\n\t\t\t} else if (subTreeType === 'list') {\n\t\t\t\tconst child = treeRoot.get(subTreePlaceholder)\n\n\t\t\t\tif (child === undefined) {\n\t\t\t\t\ttreeRoot.set(subTreePlaceholder, {\n\t\t\t\t\t\tnodeType: 'iNode',\n\t\t\t\t\t\tchildren: new Map([[id, processedResponse]]),\n\t\t\t\t\t\tvalidation: [],\n\t\t\t\t\t\texecution: [],\n\t\t\t\t\t})\n\t\t\t\t} else if (child.nodeType === 'iNode') {\n\t\t\t\t\tchild.children.set(id, processedResponse)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn assertNever(subTreeType)\n\t\t\t}\n\n\t\t}\n\t\treturn treeRoot\n\t}\n\n\tprivate processMutationResponse(mutationResponse: MutationResult): ErrorsPreprocessor.ErrorNode | undefined {\n\t\tif (mutationResponse.ok && mutationResponse.validation?.valid && mutationResponse.errors.length === 0) {\n\t\t\treturn undefined\n\t\t}\n\t\tif (mutationResponse.validation?.errors.length) {\n\t\t\treturn this.getErrorNode(mutationResponse.validation?.errors)\n\t\t}\n\t\tif (mutationResponse.errors.length) {\n\t\t\treturn this.getErrorNode(mutationResponse.errors)\n\t\t}\n\t\treturn undefined\n\t}\n\n\tprivate getErrorNode(errors: ValidationError[] | MutationError[]): ErrorsPreprocessor.ErrorNode {\n\t\tconst [head, ...tail] = errors\n\n\t\tlet rootNode = this.getRootNode(head)\n\n\t\terrorLoop: for (const error of tail) {\n\t\t\tlet currentNode = rootNode\n\n\t\t\tconst path = 'paths' in error ? (error.paths[0] ?? []) : error.path\n\n\t\t\tfor (let i = 0, pathLength = path.length; i < pathLength; i++) {\n\t\t\t\tconst pathNode = path[i]\n\n\t\t\t\tif (currentNode.nodeType === 'leaf') {\n\t\t\t\t\t(currentNode as any as ErrorsPreprocessor.ErrorINode).nodeType = 'iNode'\n\t\t\t\t\t;(currentNode as any as ErrorsPreprocessor.ErrorINode).children = new Map()\n\t\t\t\t}\n\n\t\t\t\tif ('field' in pathNode) {\n\t\t\t\t\tif (currentNode.nodeType === 'iNode') {\n\t\t\t\t\t\tlet alias = pathNode.field\n\t\t\t\t\t\tlet nextIndex = i + 1\n\t\t\t\t\t\tif (nextIndex in path) {\n\t\t\t\t\t\t\tconst nextPathNode = path[nextIndex]\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t'index' in nextPathNode &&\n\t\t\t\t\t\t\t\ttypeof nextPathNode.alias === 'string' &&\n\t\t\t\t\t\t\t\tnextPathNode.alias.startsWith(pathNode.field)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t// We're dealing with a reduced hasMany relation.\n\t\t\t\t\t\t\t\ti++\n\t\t\t\t\t\t\t\tnextIndex++\n\t\t\t\t\t\t\t\talias = nextPathNode.alias\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!currentNode.children.has(alias)) {\n\t\t\t\t\t\t\tcurrentNode.children.set(alias, this.getRootNode(error, nextIndex))\n\t\t\t\t\t\t\tif (nextIndex <= path.length) {\n\t\t\t\t\t\t\t\t// This path has been handled by getRootNode\n\t\t\t\t\t\t\t\tcontinue errorLoop\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentNode = currentNode.children.get(alias)!\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.rejectCorruptData()\n\t\t\t\t\t}\n\t\t\t\t} else if ('index' in path) {\n\t\t\t\t\tif (currentNode.nodeType === 'iNode') {\n\t\t\t\t\t\tconst alias = pathNode.alias\n\n\t\t\t\t\t\tif (alias === null) {\n\t\t\t\t\t\t\tthrow new ErrorsPreprocessor.ErrorsPreprocessorError(\n\t\t\t\t\t\t\t\t`Corrupt data: undefined alias for node with index ${pathNode.index}.`,\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst entityId = MutationAlias.decodeEntityId(alias)\n\n\t\t\t\t\t\tif (!currentNode.children.has(entityId)) {\n\t\t\t\t\t\t\tcurrentNode.children.set(entityId, this.getRootNode(error, i + 1))\n\t\t\t\t\t\t\tif (i + 1 <= path.length) {\n\t\t\t\t\t\t\t\t// This path has been handled by getRootNode\n\t\t\t\t\t\t\t\tcontinue errorLoop\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentNode = currentNode.children.get(entityId)!\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.rejectCorruptData()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this.isExecutionError(error)) {\n\t\t\t\tcurrentNode.execution.push({ type: 'execution', code: error.type, developerMessage: error.message })\n\t\t\t} else {\n\t\t\t\tcurrentNode.validation.push(this.createValidationError(error.message.text))\n\t\t\t}\n\t\t}\n\n\t\treturn rootNode\n\t}\n\n\tprivate getRootNode(error: ValidationError | MutationError, startIndex: number = 0): ErrorsPreprocessor.ErrorNode {\n\t\tlet rootNode: ErrorsPreprocessor.ErrorNode = {\n\t\t\tvalidation: this.isExecutionError(error) ? [] : [this.createValidationError(error.message.text)],\n\t\t\texecution: this.isExecutionError(error) ? [{ type: 'execution', code: error.type, developerMessage: error.message }] : [],\n\t\t\tnodeType: 'leaf',\n\t\t}\n\t\tconst path = 'paths' in error ? (error.paths[0] ?? []) : error.path\n\t\tfor (let i = path.length - 1; i >= startIndex; i--) {\n\t\t\tconst pathNode = path[i]\n\t\t\tif ('field' in pathNode) {\n\t\t\t\trootNode = {\n\t\t\t\t\tvalidation: [],\n\t\t\t\t\texecution: [],\n\t\t\t\t\tnodeType: 'iNode',\n\t\t\t\t\tchildren: new Map([[pathNode.field, rootNode]]),\n\t\t\t\t}\n\t\t\t} else if ('index' in pathNode) {\n\t\t\t\tconst alias = pathNode.alias\n\n\t\t\t\tif (alias === null) {\n\t\t\t\t\tthrow new ErrorsPreprocessor.ErrorsPreprocessorError(\n\t\t\t\t\t\t`Corrupt data: undefined alias for node with index ${pathNode.index}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\trootNode = {\n\t\t\t\t\tvalidation: [],\n\t\t\t\t\texecution: [],\n\t\t\t\t\tnodeType: 'iNode',\n\t\t\t\t\tchildren: new Map([[MutationAlias.decodeEntityId(alias), rootNode]]),\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tassertNever(pathNode)\n\t\t\t}\n\t\t}\n\n\t\treturn rootNode\n\t}\n\n\tprivate createValidationError(message: string): ErrorAccessor.ValidationError {\n\t\tif (message === 'Field is required') {\n\t\t\t// TODO this is just awful. Validation errors currently don't have error codes which makes it more difficult\n\t\t\t// \tto translate the error messages. This is the most common such error, and so we just make up a code\n\t\t\t// \tin order to facilitate error handling further downstream.\n\t\t\treturn {\n\t\t\t\ttype: 'validation',\n\t\t\t\tcode: 'fieldRequired',\n\t\t\t\tmessage,\n\t\t\t}\n\t\t}\n\t\treturn { type: 'validation', message, code: undefined }\n\t}\n\n\tprivate isExecutionError(error: ValidationError | MutationError): error is MutationError {\n\t\treturn 'type' in error\n\t}\n\n\tprivate rejectCorruptData(): never {\n\t\tthrow new ErrorsPreprocessor.ErrorsPreprocessorError(\n\t\t\t'Received corrupted data: a node cannot be simultaneously field-indexed and path-indexed.',\n\t\t)\n\t}\n}\n\nnamespace ErrorsPreprocessor {\n\texport interface BaseErrorNode {\n\t\tvalidation: ErrorAccessor.ValidationError[]\n\t\texecution: ErrorAccessor.ExecutionError[]\n\t}\n\n\texport interface LeafErrorNode extends BaseErrorNode {\n\t\tnodeType: 'leaf'\n\t}\n\n\texport interface ErrorINode extends BaseErrorNode {\n\t\tnodeType: 'iNode'\n\t\tchildren: Map<FieldName | EntityId, ErrorNode>\n\t}\n\n\texport type ErrorNode = ErrorINode | LeafErrorNode\n\n\texport type ErrorTreeRoot = Map<PlaceholderName, ErrorNode>\n\n\texport class ErrorsPreprocessorError extends Error {}\n}\n\nexport { ErrorsPreprocessor }\n"],"names":["assertNever","MutationAlias","ErrorsPreprocessor"],"mappings":"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"}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { MutationAlias } from "./requestAliases/MutationAlias.js";
|
|
2
|
-
import { assertNever } from "../utils/assertNever.js";
|
|
3
|
-
class ErrorsPreprocessor {
|
|
4
|
-
constructor(requestResponse, operations) {
|
|
5
|
-
this.requestResponse = requestResponse;
|
|
6
|
-
this.operations = operations;
|
|
7
|
-
}
|
|
8
|
-
preprocess() {
|
|
9
|
-
const treeRoot = /* @__PURE__ */ new Map();
|
|
10
|
-
if (this.requestResponse === void 0) {
|
|
11
|
-
return treeRoot;
|
|
12
|
-
}
|
|
13
|
-
for (const operation of this.operations) {
|
|
14
|
-
const mutationResponse = this.requestResponse.data[operation.alias];
|
|
15
|
-
const processedResponse = this.processMutationResponse(mutationResponse);
|
|
16
|
-
if (processedResponse === void 0) {
|
|
17
|
-
continue;
|
|
18
|
-
}
|
|
19
|
-
const { subTreeType, subTreePlaceholder, id } = operation;
|
|
20
|
-
if (subTreeType === "single") {
|
|
21
|
-
if (treeRoot.has(subTreePlaceholder)) {
|
|
22
|
-
return this.rejectCorruptData();
|
|
23
|
-
}
|
|
24
|
-
treeRoot.set(subTreePlaceholder, processedResponse);
|
|
25
|
-
} else if (subTreeType === "list") {
|
|
26
|
-
const child = treeRoot.get(subTreePlaceholder);
|
|
27
|
-
if (child === void 0) {
|
|
28
|
-
treeRoot.set(subTreePlaceholder, {
|
|
29
|
-
nodeType: "iNode",
|
|
30
|
-
children: /* @__PURE__ */ new Map([[id, processedResponse]]),
|
|
31
|
-
validation: [],
|
|
32
|
-
execution: []
|
|
33
|
-
});
|
|
34
|
-
} else if (child.nodeType === "iNode") {
|
|
35
|
-
child.children.set(id, processedResponse);
|
|
36
|
-
}
|
|
37
|
-
} else {
|
|
38
|
-
return assertNever();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return treeRoot;
|
|
42
|
-
}
|
|
43
|
-
processMutationResponse(mutationResponse) {
|
|
44
|
-
if (mutationResponse.ok && mutationResponse.validation?.valid && mutationResponse.errors.length === 0) {
|
|
45
|
-
return void 0;
|
|
46
|
-
}
|
|
47
|
-
if (mutationResponse.validation?.errors.length) {
|
|
48
|
-
return this.getErrorNode(mutationResponse.validation?.errors);
|
|
49
|
-
}
|
|
50
|
-
if (mutationResponse.errors.length) {
|
|
51
|
-
return this.getErrorNode(mutationResponse.errors);
|
|
52
|
-
}
|
|
53
|
-
return void 0;
|
|
54
|
-
}
|
|
55
|
-
getErrorNode(errors) {
|
|
56
|
-
const [head, ...tail] = errors;
|
|
57
|
-
let rootNode = this.getRootNode(head);
|
|
58
|
-
errorLoop: for (const error of tail) {
|
|
59
|
-
let currentNode = rootNode;
|
|
60
|
-
const path = "paths" in error ? error.paths[0] ?? [] : error.path;
|
|
61
|
-
for (let i = 0, pathLength = path.length; i < pathLength; i++) {
|
|
62
|
-
const pathNode = path[i];
|
|
63
|
-
if (currentNode.nodeType === "leaf") {
|
|
64
|
-
currentNode.nodeType = "iNode";
|
|
65
|
-
currentNode.children = /* @__PURE__ */ new Map();
|
|
66
|
-
}
|
|
67
|
-
if ("field" in pathNode) {
|
|
68
|
-
if (currentNode.nodeType === "iNode") {
|
|
69
|
-
let alias = pathNode.field;
|
|
70
|
-
let nextIndex = i + 1;
|
|
71
|
-
if (nextIndex in path) {
|
|
72
|
-
const nextPathNode = path[nextIndex];
|
|
73
|
-
if ("index" in nextPathNode && typeof nextPathNode.alias === "string" && nextPathNode.alias.startsWith(pathNode.field)) {
|
|
74
|
-
i++;
|
|
75
|
-
nextIndex++;
|
|
76
|
-
alias = nextPathNode.alias;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
if (!currentNode.children.has(alias)) {
|
|
80
|
-
currentNode.children.set(alias, this.getRootNode(error, nextIndex));
|
|
81
|
-
if (nextIndex <= path.length) {
|
|
82
|
-
continue errorLoop;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
currentNode = currentNode.children.get(alias);
|
|
86
|
-
} else {
|
|
87
|
-
this.rejectCorruptData();
|
|
88
|
-
}
|
|
89
|
-
} else if ("index" in path) {
|
|
90
|
-
if (currentNode.nodeType === "iNode") {
|
|
91
|
-
const alias = pathNode.alias;
|
|
92
|
-
if (alias === null) {
|
|
93
|
-
throw new ErrorsPreprocessor.ErrorsPreprocessorError(
|
|
94
|
-
`Corrupt data: undefined alias for node with index ${pathNode.index}.`
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
const entityId = MutationAlias.decodeEntityId(alias);
|
|
98
|
-
if (!currentNode.children.has(entityId)) {
|
|
99
|
-
currentNode.children.set(entityId, this.getRootNode(error, i + 1));
|
|
100
|
-
if (i + 1 <= path.length) {
|
|
101
|
-
continue errorLoop;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
currentNode = currentNode.children.get(entityId);
|
|
105
|
-
} else {
|
|
106
|
-
this.rejectCorruptData();
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if (this.isExecutionError(error)) {
|
|
111
|
-
currentNode.execution.push({ type: "execution", code: error.type, developerMessage: error.message });
|
|
112
|
-
} else {
|
|
113
|
-
currentNode.validation.push(this.createValidationError(error.message.text));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return rootNode;
|
|
117
|
-
}
|
|
118
|
-
getRootNode(error, startIndex = 0) {
|
|
119
|
-
let rootNode = {
|
|
120
|
-
validation: this.isExecutionError(error) ? [] : [this.createValidationError(error.message.text)],
|
|
121
|
-
execution: this.isExecutionError(error) ? [{ type: "execution", code: error.type, developerMessage: error.message }] : [],
|
|
122
|
-
nodeType: "leaf"
|
|
123
|
-
};
|
|
124
|
-
const path = "paths" in error ? error.paths[0] ?? [] : error.path;
|
|
125
|
-
for (let i = path.length - 1; i >= startIndex; i--) {
|
|
126
|
-
const pathNode = path[i];
|
|
127
|
-
if ("field" in pathNode) {
|
|
128
|
-
rootNode = {
|
|
129
|
-
validation: [],
|
|
130
|
-
execution: [],
|
|
131
|
-
nodeType: "iNode",
|
|
132
|
-
children: /* @__PURE__ */ new Map([[pathNode.field, rootNode]])
|
|
133
|
-
};
|
|
134
|
-
} else if ("index" in pathNode) {
|
|
135
|
-
const alias = pathNode.alias;
|
|
136
|
-
if (alias === null) {
|
|
137
|
-
throw new ErrorsPreprocessor.ErrorsPreprocessorError(
|
|
138
|
-
`Corrupt data: undefined alias for node with index ${pathNode.index}.`
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
rootNode = {
|
|
142
|
-
validation: [],
|
|
143
|
-
execution: [],
|
|
144
|
-
nodeType: "iNode",
|
|
145
|
-
children: /* @__PURE__ */ new Map([[MutationAlias.decodeEntityId(alias), rootNode]])
|
|
146
|
-
};
|
|
147
|
-
} else {
|
|
148
|
-
assertNever();
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return rootNode;
|
|
152
|
-
}
|
|
153
|
-
createValidationError(message) {
|
|
154
|
-
if (message === "Field is required") {
|
|
155
|
-
return {
|
|
156
|
-
type: "validation",
|
|
157
|
-
code: "fieldRequired",
|
|
158
|
-
message
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
return { type: "validation", message, code: void 0 };
|
|
162
|
-
}
|
|
163
|
-
isExecutionError(error) {
|
|
164
|
-
return "type" in error;
|
|
165
|
-
}
|
|
166
|
-
rejectCorruptData() {
|
|
167
|
-
throw new ErrorsPreprocessor.ErrorsPreprocessorError(
|
|
168
|
-
"Received corrupted data: a node cannot be simultaneously field-indexed and path-indexed."
|
|
169
|
-
);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
((ErrorsPreprocessor2) => {
|
|
173
|
-
class ErrorsPreprocessorError extends Error {
|
|
174
|
-
}
|
|
175
|
-
ErrorsPreprocessor2.ErrorsPreprocessorError = ErrorsPreprocessorError;
|
|
176
|
-
})(ErrorsPreprocessor || (ErrorsPreprocessor = {}));
|
|
177
|
-
export {
|
|
178
|
-
ErrorsPreprocessor
|
|
179
|
-
};
|
|
180
|
-
//# sourceMappingURL=ErrorsPreprocessor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorsPreprocessor.js","sources":["../../../../../packages/binding/src/core/ErrorsPreprocessor.ts"],"sourcesContent":["import type { ErrorAccessor } from '../accessors'\nimport type { EntityId, FieldName, PlaceholderName } from '../treeParameters'\nimport { assertNever } from '../utils'\nimport { MutationAlias } from './requestAliases'\nimport { SubMutationOperation } from './MutationGenerator'\nimport { DataBindingTransactionResult } from './DataBinding'\nimport { MutationError, MutationResult, ValidationError } from '@contember/client'\n\nclass ErrorsPreprocessor {\n\tpublic constructor(\n\t\tprivate readonly requestResponse: DataBindingTransactionResult,\n\t\tprivate readonly operations: SubMutationOperation[],\n\t) {}\n\n\tpublic preprocess(): ErrorsPreprocessor.ErrorTreeRoot {\n\t\tconst treeRoot: ErrorsPreprocessor.ErrorTreeRoot = new Map()\n\n\t\tif (this.requestResponse === undefined) {\n\t\t\treturn treeRoot\n\t\t}\n\n\t\tfor (const operation of this.operations) {\n\t\t\tconst mutationResponse = this.requestResponse.data[operation.alias]\n\t\t\tconst processedResponse = this.processMutationResponse(mutationResponse)\n\n\t\t\tif (processedResponse === undefined) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tconst { subTreeType, subTreePlaceholder, id } = operation\n\n\t\t\tif (subTreeType === 'single') {\n\t\t\t\tif (treeRoot.has(subTreePlaceholder)) {\n\t\t\t\t\treturn this.rejectCorruptData()\n\t\t\t\t}\n\t\t\t\ttreeRoot.set(subTreePlaceholder, processedResponse)\n\t\t\t} else if (subTreeType === 'list') {\n\t\t\t\tconst child = treeRoot.get(subTreePlaceholder)\n\n\t\t\t\tif (child === undefined) {\n\t\t\t\t\ttreeRoot.set(subTreePlaceholder, {\n\t\t\t\t\t\tnodeType: 'iNode',\n\t\t\t\t\t\tchildren: new Map([[id, processedResponse]]),\n\t\t\t\t\t\tvalidation: [],\n\t\t\t\t\t\texecution: [],\n\t\t\t\t\t})\n\t\t\t\t} else if (child.nodeType === 'iNode') {\n\t\t\t\t\tchild.children.set(id, processedResponse)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn assertNever(subTreeType)\n\t\t\t}\n\n\t\t}\n\t\treturn treeRoot\n\t}\n\n\tprivate processMutationResponse(mutationResponse: MutationResult): ErrorsPreprocessor.ErrorNode | undefined {\n\t\tif (mutationResponse.ok && mutationResponse.validation?.valid && mutationResponse.errors.length === 0) {\n\t\t\treturn undefined\n\t\t}\n\t\tif (mutationResponse.validation?.errors.length) {\n\t\t\treturn this.getErrorNode(mutationResponse.validation?.errors)\n\t\t}\n\t\tif (mutationResponse.errors.length) {\n\t\t\treturn this.getErrorNode(mutationResponse.errors)\n\t\t}\n\t\treturn undefined\n\t}\n\n\tprivate getErrorNode(errors: ValidationError[] | MutationError[]): ErrorsPreprocessor.ErrorNode {\n\t\tconst [head, ...tail] = errors\n\n\t\tlet rootNode = this.getRootNode(head)\n\n\t\terrorLoop: for (const error of tail) {\n\t\t\tlet currentNode = rootNode\n\n\t\t\tconst path = 'paths' in error ? (error.paths[0] ?? []) : error.path\n\n\t\t\tfor (let i = 0, pathLength = path.length; i < pathLength; i++) {\n\t\t\t\tconst pathNode = path[i]\n\n\t\t\t\tif (currentNode.nodeType === 'leaf') {\n\t\t\t\t\t(currentNode as any as ErrorsPreprocessor.ErrorINode).nodeType = 'iNode'\n\t\t\t\t\t;(currentNode as any as ErrorsPreprocessor.ErrorINode).children = new Map()\n\t\t\t\t}\n\n\t\t\t\tif ('field' in pathNode) {\n\t\t\t\t\tif (currentNode.nodeType === 'iNode') {\n\t\t\t\t\t\tlet alias = pathNode.field\n\t\t\t\t\t\tlet nextIndex = i + 1\n\t\t\t\t\t\tif (nextIndex in path) {\n\t\t\t\t\t\t\tconst nextPathNode = path[nextIndex]\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t'index' in nextPathNode &&\n\t\t\t\t\t\t\t\ttypeof nextPathNode.alias === 'string' &&\n\t\t\t\t\t\t\t\tnextPathNode.alias.startsWith(pathNode.field)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t// We're dealing with a reduced hasMany relation.\n\t\t\t\t\t\t\t\ti++\n\t\t\t\t\t\t\t\tnextIndex++\n\t\t\t\t\t\t\t\talias = nextPathNode.alias\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!currentNode.children.has(alias)) {\n\t\t\t\t\t\t\tcurrentNode.children.set(alias, this.getRootNode(error, nextIndex))\n\t\t\t\t\t\t\tif (nextIndex <= path.length) {\n\t\t\t\t\t\t\t\t// This path has been handled by getRootNode\n\t\t\t\t\t\t\t\tcontinue errorLoop\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentNode = currentNode.children.get(alias)!\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.rejectCorruptData()\n\t\t\t\t\t}\n\t\t\t\t} else if ('index' in path) {\n\t\t\t\t\tif (currentNode.nodeType === 'iNode') {\n\t\t\t\t\t\tconst alias = pathNode.alias\n\n\t\t\t\t\t\tif (alias === null) {\n\t\t\t\t\t\t\tthrow new ErrorsPreprocessor.ErrorsPreprocessorError(\n\t\t\t\t\t\t\t\t`Corrupt data: undefined alias for node with index ${pathNode.index}.`,\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst entityId = MutationAlias.decodeEntityId(alias)\n\n\t\t\t\t\t\tif (!currentNode.children.has(entityId)) {\n\t\t\t\t\t\t\tcurrentNode.children.set(entityId, this.getRootNode(error, i + 1))\n\t\t\t\t\t\t\tif (i + 1 <= path.length) {\n\t\t\t\t\t\t\t\t// This path has been handled by getRootNode\n\t\t\t\t\t\t\t\tcontinue errorLoop\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentNode = currentNode.children.get(entityId)!\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.rejectCorruptData()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this.isExecutionError(error)) {\n\t\t\t\tcurrentNode.execution.push({ type: 'execution', code: error.type, developerMessage: error.message })\n\t\t\t} else {\n\t\t\t\tcurrentNode.validation.push(this.createValidationError(error.message.text))\n\t\t\t}\n\t\t}\n\n\t\treturn rootNode\n\t}\n\n\tprivate getRootNode(error: ValidationError | MutationError, startIndex: number = 0): ErrorsPreprocessor.ErrorNode {\n\t\tlet rootNode: ErrorsPreprocessor.ErrorNode = {\n\t\t\tvalidation: this.isExecutionError(error) ? [] : [this.createValidationError(error.message.text)],\n\t\t\texecution: this.isExecutionError(error) ? [{ type: 'execution', code: error.type, developerMessage: error.message }] : [],\n\t\t\tnodeType: 'leaf',\n\t\t}\n\t\tconst path = 'paths' in error ? (error.paths[0] ?? []) : error.path\n\t\tfor (let i = path.length - 1; i >= startIndex; i--) {\n\t\t\tconst pathNode = path[i]\n\t\t\tif ('field' in pathNode) {\n\t\t\t\trootNode = {\n\t\t\t\t\tvalidation: [],\n\t\t\t\t\texecution: [],\n\t\t\t\t\tnodeType: 'iNode',\n\t\t\t\t\tchildren: new Map([[pathNode.field, rootNode]]),\n\t\t\t\t}\n\t\t\t} else if ('index' in pathNode) {\n\t\t\t\tconst alias = pathNode.alias\n\n\t\t\t\tif (alias === null) {\n\t\t\t\t\tthrow new ErrorsPreprocessor.ErrorsPreprocessorError(\n\t\t\t\t\t\t`Corrupt data: undefined alias for node with index ${pathNode.index}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\trootNode = {\n\t\t\t\t\tvalidation: [],\n\t\t\t\t\texecution: [],\n\t\t\t\t\tnodeType: 'iNode',\n\t\t\t\t\tchildren: new Map([[MutationAlias.decodeEntityId(alias), rootNode]]),\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tassertNever(pathNode)\n\t\t\t}\n\t\t}\n\n\t\treturn rootNode\n\t}\n\n\tprivate createValidationError(message: string): ErrorAccessor.ValidationError {\n\t\tif (message === 'Field is required') {\n\t\t\t// TODO this is just awful. Validation errors currently don't have error codes which makes it more difficult\n\t\t\t// \tto translate the error messages. This is the most common such error, and so we just make up a code\n\t\t\t// \tin order to facilitate error handling further downstream.\n\t\t\treturn {\n\t\t\t\ttype: 'validation',\n\t\t\t\tcode: 'fieldRequired',\n\t\t\t\tmessage,\n\t\t\t}\n\t\t}\n\t\treturn { type: 'validation', message, code: undefined }\n\t}\n\n\tprivate isExecutionError(error: ValidationError | MutationError): error is MutationError {\n\t\treturn 'type' in error\n\t}\n\n\tprivate rejectCorruptData(): never {\n\t\tthrow new ErrorsPreprocessor.ErrorsPreprocessorError(\n\t\t\t'Received corrupted data: a node cannot be simultaneously field-indexed and path-indexed.',\n\t\t)\n\t}\n}\n\nnamespace ErrorsPreprocessor {\n\texport interface BaseErrorNode {\n\t\tvalidation: ErrorAccessor.ValidationError[]\n\t\texecution: ErrorAccessor.ExecutionError[]\n\t}\n\n\texport interface LeafErrorNode extends BaseErrorNode {\n\t\tnodeType: 'leaf'\n\t}\n\n\texport interface ErrorINode extends BaseErrorNode {\n\t\tnodeType: 'iNode'\n\t\tchildren: Map<FieldName | EntityId, ErrorNode>\n\t}\n\n\texport type ErrorNode = ErrorINode | LeafErrorNode\n\n\texport type ErrorTreeRoot = Map<PlaceholderName, ErrorNode>\n\n\texport class ErrorsPreprocessorError extends Error {}\n}\n\nexport { ErrorsPreprocessor }\n"],"names":["ErrorsPreprocessor"],"mappings":"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"}
|