@contember/binding 1.0.0-alpha.8 → 1.0.0-rc.4
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/accessors/FieldAccessor.js +2 -1
- package/dist/development/accessors/FieldAccessor.js.map +1 -1
- package/dist/development/core/DataBinding.js +6 -2
- package/dist/development/core/DataBinding.js.map +1 -1
- package/dist/development/core/StateInitializer.js +8 -1
- package/dist/development/core/StateInitializer.js.map +1 -1
- package/dist/production/accessors/FieldAccessor.js +2 -1
- package/dist/production/accessors/FieldAccessor.js.map +1 -1
- package/dist/production/core/DataBinding.js +6 -2
- package/dist/production/core/DataBinding.js.map +1 -1
- package/dist/production/core/StateInitializer.js +8 -1
- package/dist/production/core/StateInitializer.js.map +1 -1
- package/dist/types/BindingError.d.ts +4 -0
- package/dist/types/BindingError.d.ts.map +1 -0
- package/dist/types/accessorPropagation/AccessorProvider.d.ts +8 -0
- package/dist/types/accessorPropagation/AccessorProvider.d.ts.map +1 -0
- package/dist/types/accessorPropagation/BindingOperationsContext.d.ts +5 -0
- package/dist/types/accessorPropagation/BindingOperationsContext.d.ts.map +1 -0
- package/dist/types/accessorPropagation/BindingOperationsProvider.d.ts +8 -0
- package/dist/types/accessorPropagation/BindingOperationsProvider.d.ts.map +1 -0
- package/dist/types/accessorPropagation/EntityKeyContext.d.ts +3 -0
- package/dist/types/accessorPropagation/EntityKeyContext.d.ts.map +1 -0
- package/dist/types/accessorPropagation/EntityKeyProvider.d.ts +7 -0
- package/dist/types/accessorPropagation/EntityKeyProvider.d.ts.map +1 -0
- package/dist/types/accessorPropagation/EnvironmentContext.d.ts +4 -0
- package/dist/types/accessorPropagation/EnvironmentContext.d.ts.map +1 -0
- package/dist/types/accessorPropagation/TreeRootIdContext.d.ts +3 -0
- package/dist/types/accessorPropagation/TreeRootIdContext.d.ts.map +1 -0
- package/dist/types/accessorPropagation/TreeRootIdProvider.d.ts +8 -0
- package/dist/types/accessorPropagation/TreeRootIdProvider.d.ts.map +1 -0
- package/dist/types/accessorPropagation/index.d.ts +27 -0
- package/dist/types/accessorPropagation/index.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useAccessorUpdateSubscription.d.ts +16 -0
- package/dist/types/accessorPropagation/useAccessorUpdateSubscription.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useBindingOperations.d.ts +3 -0
- package/dist/types/accessorPropagation/useBindingOperations.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useDesugaredRelativeEntityList.d.ts +11 -0
- package/dist/types/accessorPropagation/useDesugaredRelativeEntityList.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useDesugaredRelativeSingleEntity.d.ts +11 -0
- package/dist/types/accessorPropagation/useDesugaredRelativeSingleEntity.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useDesugaredRelativeSingleField.d.ts +11 -0
- package/dist/types/accessorPropagation/useDesugaredRelativeSingleField.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useEntity.d.ts +7 -0
- package/dist/types/accessorPropagation/useEntity.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useEntityKey.d.ts +2 -0
- package/dist/types/accessorPropagation/useEntityKey.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useEntityList.d.ts +6 -0
- package/dist/types/accessorPropagation/useEntityList.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useEntityListSubTree.d.ts +4 -0
- package/dist/types/accessorPropagation/useEntityListSubTree.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useEntityListSubTreeParameters.d.ts +5 -0
- package/dist/types/accessorPropagation/useEntityListSubTreeParameters.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useEntitySubTree.d.ts +4 -0
- package/dist/types/accessorPropagation/useEntitySubTree.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useEntitySubTreeParameters.d.ts +5 -0
- package/dist/types/accessorPropagation/useEntitySubTreeParameters.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useEnvironment.d.ts +3 -0
- package/dist/types/accessorPropagation/useEnvironment.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useField.d.ts +6 -0
- package/dist/types/accessorPropagation/useField.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useGetEntityByKey.d.ts +3 -0
- package/dist/types/accessorPropagation/useGetEntityByKey.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useGetEntityListSubTree.d.ts +4 -0
- package/dist/types/accessorPropagation/useGetEntityListSubTree.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useGetEntitySubTree.d.ts +4 -0
- package/dist/types/accessorPropagation/useGetEntitySubTree.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useGetTreeFilters.d.ts +3 -0
- package/dist/types/accessorPropagation/useGetTreeFilters.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useHasEntity.d.ts +2 -0
- package/dist/types/accessorPropagation/useHasEntity.d.ts.map +1 -0
- package/dist/types/accessorPropagation/usePersist.d.ts +3 -0
- package/dist/types/accessorPropagation/usePersist.d.ts.map +1 -0
- package/dist/types/accessorPropagation/useTreeRootId.d.ts +3 -0
- package/dist/types/accessorPropagation/useTreeRootId.d.ts.map +1 -0
- package/dist/types/accessorSorting/SetOrderFieldOnCreate.d.ts +10 -0
- package/dist/types/accessorSorting/SetOrderFieldOnCreate.d.ts.map +1 -0
- package/dist/types/accessorSorting/SortedEntities.d.ts +9 -0
- package/dist/types/accessorSorting/SortedEntities.d.ts.map +1 -0
- package/dist/types/accessorSorting/addEntityAtIndex.d.ts +4 -0
- package/dist/types/accessorSorting/addEntityAtIndex.d.ts.map +1 -0
- package/dist/types/accessorSorting/errors.d.ts +6 -0
- package/dist/types/accessorSorting/errors.d.ts.map +1 -0
- package/dist/types/accessorSorting/index.d.ts +8 -0
- package/dist/types/accessorSorting/index.d.ts.map +1 -0
- package/dist/types/accessorSorting/moveEntity.d.ts +5 -0
- package/dist/types/accessorSorting/moveEntity.d.ts.map +1 -0
- package/dist/types/accessorSorting/repairEntitiesOrder.d.ts +4 -0
- package/dist/types/accessorSorting/repairEntitiesOrder.d.ts.map +1 -0
- package/dist/types/accessorSorting/sortEntities.d.ts +4 -0
- package/dist/types/accessorSorting/sortEntities.d.ts.map +1 -0
- package/dist/types/accessorSorting/useSortedEntities.d.ts +5 -0
- package/dist/types/accessorSorting/useSortedEntities.d.ts.map +1 -0
- package/dist/types/accessorTree/AccessorTree.d.ts +11 -0
- package/dist/types/accessorTree/AccessorTree.d.ts.map +1 -0
- package/dist/types/accessorTree/AccessorTreeState.d.ts +15 -0
- package/dist/types/accessorTree/AccessorTreeState.d.ts.map +1 -0
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts +12 -0
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts.map +1 -0
- package/dist/types/accessorTree/AccessorTreeStateMetadata.d.ts +4 -0
- package/dist/types/accessorTree/AccessorTreeStateMetadata.d.ts.map +1 -0
- package/dist/types/accessorTree/AccessorTreeStateOptions.d.ts +7 -0
- package/dist/types/accessorTree/AccessorTreeStateOptions.d.ts.map +1 -0
- package/dist/types/accessorTree/DirtinessContext.d.ts +3 -0
- package/dist/types/accessorTree/DirtinessContext.d.ts.map +1 -0
- package/dist/types/accessorTree/MutationRequestResponse.d.ts +44 -0
- package/dist/types/accessorTree/MutationRequestResponse.d.ts.map +1 -0
- package/dist/types/accessorTree/MutationStateContext.d.ts +3 -0
- package/dist/types/accessorTree/MutationStateContext.d.ts.map +1 -0
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts +13 -0
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts.map +1 -0
- package/dist/types/accessorTree/PersistResult.d.ts +24 -0
- package/dist/types/accessorTree/PersistResult.d.ts.map +1 -0
- package/dist/types/accessorTree/QueryRequestResponse.d.ts +15 -0
- package/dist/types/accessorTree/QueryRequestResponse.d.ts.map +1 -0
- package/dist/types/accessorTree/RequestError.d.ts +13 -0
- package/dist/types/accessorTree/RequestError.d.ts.map +1 -0
- package/dist/types/accessorTree/RuntimeId.d.ts +25 -0
- package/dist/types/accessorTree/RuntimeId.d.ts.map +1 -0
- package/dist/types/accessorTree/accessorTreeStateReducer.d.ts +4 -0
- package/dist/types/accessorTree/accessorTreeStateReducer.d.ts.map +1 -0
- package/dist/types/accessorTree/index.d.ts +19 -0
- package/dist/types/accessorTree/index.d.ts.map +1 -0
- package/dist/types/accessorTree/metadataToRequestError.d.ts +4 -0
- package/dist/types/accessorTree/metadataToRequestError.d.ts.map +1 -0
- package/dist/types/accessorTree/useDataBinding.d.ts +4 -0
- package/dist/types/accessorTree/useDataBinding.d.ts.map +1 -0
- package/dist/types/accessorTree/useDirtinessState.d.ts +2 -0
- package/dist/types/accessorTree/useDirtinessState.d.ts.map +1 -0
- package/dist/types/accessorTree/useMutationState.d.ts +2 -0
- package/dist/types/accessorTree/useMutationState.d.ts.map +1 -0
- package/dist/types/accessors/AsyncBatchUpdatesOptions.d.ts +8 -0
- package/dist/types/accessors/AsyncBatchUpdatesOptions.d.ts.map +1 -0
- package/dist/types/accessors/BatchUpdatesOptions.d.ts +9 -0
- package/dist/types/accessors/BatchUpdatesOptions.d.ts.map +1 -0
- package/dist/types/accessors/BindingConfig.d.ts +8 -0
- package/dist/types/accessors/BindingConfig.d.ts.map +1 -0
- package/dist/types/accessors/BindingOperations.d.ts +12 -0
- package/dist/types/accessors/BindingOperations.d.ts.map +1 -0
- package/dist/types/accessors/EntityAccessor.d.ts +90 -0
- package/dist/types/accessors/EntityAccessor.d.ts.map +1 -0
- package/dist/types/accessors/EntityListAccessor.d.ts +84 -0
- package/dist/types/accessors/EntityListAccessor.d.ts.map +1 -0
- package/dist/types/accessors/ErrorAccessor.d.ts +26 -0
- package/dist/types/accessors/ErrorAccessor.d.ts.map +1 -0
- package/dist/types/accessors/Errorable.d.ts +5 -0
- package/dist/types/accessors/Errorable.d.ts.map +1 -0
- package/dist/types/accessors/ExtendTree.d.ts +9 -0
- package/dist/types/accessors/ExtendTree.d.ts.map +1 -0
- package/dist/types/accessors/FieldAccessor.d.ts +55 -0
- package/dist/types/accessors/FieldAccessor.d.ts.map +1 -0
- package/dist/types/accessors/GetEntityByKey.d.ts +3 -0
- package/dist/types/accessors/GetEntityByKey.d.ts.map +1 -0
- package/dist/types/accessors/GetEntityListSubTree.d.ts +5 -0
- package/dist/types/accessors/GetEntityListSubTree.d.ts.map +1 -0
- package/dist/types/accessors/GetEntitySubTree.d.ts +5 -0
- package/dist/types/accessors/GetEntitySubTree.d.ts.map +1 -0
- package/dist/types/accessors/Persist.d.ts +10 -0
- package/dist/types/accessors/Persist.d.ts.map +1 -0
- package/dist/types/accessors/PersistErrorOptions.d.ts +10 -0
- package/dist/types/accessors/PersistErrorOptions.d.ts.map +1 -0
- package/dist/types/accessors/PersistSuccessOptions.d.ts +5 -0
- package/dist/types/accessors/PersistSuccessOptions.d.ts.map +1 -0
- package/dist/types/accessors/TreeRootAccessor.d.ts +11 -0
- package/dist/types/accessors/TreeRootAccessor.d.ts.map +1 -0
- package/dist/types/accessors/index.d.ts +18 -0
- package/dist/types/accessors/index.d.ts.map +1 -0
- package/dist/types/bindingTypes.d.ts +4 -0
- package/dist/types/bindingTypes.d.ts.map +1 -0
- package/dist/types/core/AccessorErrorManager.d.ts +24 -0
- package/dist/types/core/AccessorErrorManager.d.ts.map +1 -0
- package/dist/types/core/Config.d.ts +9 -0
- package/dist/types/core/Config.d.ts.map +1 -0
- package/dist/types/core/DataBinding.d.ts +37 -0
- package/dist/types/core/DataBinding.d.ts.map +1 -0
- package/dist/types/core/DirtinessTracker.d.ts +12 -0
- package/dist/types/core/DirtinessTracker.d.ts.map +1 -0
- package/dist/types/core/ErrorsPreprocessor.d.ts +33 -0
- package/dist/types/core/ErrorsPreprocessor.d.ts.map +1 -0
- package/dist/types/core/EventManager.d.ts +56 -0
- package/dist/types/core/EventManager.d.ts.map +1 -0
- package/dist/types/core/IncrementalMarkerBuilder.d.ts +7 -0
- package/dist/types/core/IncrementalMarkerBuilder.d.ts.map +1 -0
- package/dist/types/core/MarkerComparator.d.ts +8 -0
- package/dist/types/core/MarkerComparator.d.ts.map +1 -0
- package/dist/types/core/MarkerMerger.d.ts +22 -0
- package/dist/types/core/MarkerMerger.d.ts.map +1 -0
- package/dist/types/core/MarkerTreeGenerator.d.ts +14 -0
- package/dist/types/core/MarkerTreeGenerator.d.ts.map +1 -0
- package/dist/types/core/MutationGenerator.d.ts +18 -0
- package/dist/types/core/MutationGenerator.d.ts.map +1 -0
- package/dist/types/core/QueryGenerator.d.ts +14 -0
- package/dist/types/core/QueryGenerator.d.ts.map +1 -0
- package/dist/types/core/RealmKeyGenerator.d.ts +11 -0
- package/dist/types/core/RealmKeyGenerator.d.ts.map +1 -0
- package/dist/types/core/RequestResponseNormalizer.d.ts +11 -0
- package/dist/types/core/RequestResponseNormalizer.d.ts.map +1 -0
- package/dist/types/core/StateInitializer.d.ts +38 -0
- package/dist/types/core/StateInitializer.d.ts.map +1 -0
- package/dist/types/core/TreeAugmenter.d.ts +20 -0
- package/dist/types/core/TreeAugmenter.d.ts.map +1 -0
- package/dist/types/core/TreeFilterGenerator.d.ts +13 -0
- package/dist/types/core/TreeFilterGenerator.d.ts.map +1 -0
- package/dist/types/core/TreeParameterMerger.d.ts +20 -0
- package/dist/types/core/TreeParameterMerger.d.ts.map +1 -0
- package/dist/types/core/TreeStore.d.ts +32 -0
- package/dist/types/core/TreeStore.d.ts.map +1 -0
- package/dist/types/core/UpdateMetadata.d.ts +4 -0
- package/dist/types/core/UpdateMetadata.d.ts.map +1 -0
- package/dist/types/core/VariableInputTransformer.d.ts +7 -0
- package/dist/types/core/VariableInputTransformer.d.ts.map +1 -0
- package/dist/types/core/exceptions/ErrorLocator.d.ts +8 -0
- package/dist/types/core/exceptions/ErrorLocator.d.ts.map +1 -0
- package/dist/types/core/exceptions/LocalizedBindingError.d.ts +9 -0
- package/dist/types/core/exceptions/LocalizedBindingError.d.ts.map +1 -0
- package/dist/types/core/exceptions/MarkerSugarer.d.ts +10 -0
- package/dist/types/core/exceptions/MarkerSugarer.d.ts.map +1 -0
- package/dist/types/core/exceptions/RawMarkerPath.d.ts +3 -0
- package/dist/types/core/exceptions/RawMarkerPath.d.ts.map +1 -0
- package/dist/types/core/exceptions/TreeParameterSugarer.d.ts +11 -0
- package/dist/types/core/exceptions/TreeParameterSugarer.d.ts.map +1 -0
- package/dist/types/core/exceptions/index.d.ts +6 -0
- package/dist/types/core/exceptions/index.d.ts.map +1 -0
- package/dist/types/core/factories/createBatchUpdatesOptions.d.ts +5 -0
- package/dist/types/core/factories/createBatchUpdatesOptions.d.ts.map +1 -0
- package/dist/types/core/factories/index.d.ts +2 -0
- package/dist/types/core/factories/index.d.ts.map +1 -0
- package/dist/types/core/index.d.ts +6 -0
- package/dist/types/core/index.d.ts.map +1 -0
- package/dist/types/core/operations/EntityOperations.d.ts +26 -0
- package/dist/types/core/operations/EntityOperations.d.ts.map +1 -0
- package/dist/types/core/operations/FieldOperations.d.ts +22 -0
- package/dist/types/core/operations/FieldOperations.d.ts.map +1 -0
- package/dist/types/core/operations/ListOperations.d.ts +32 -0
- package/dist/types/core/operations/ListOperations.d.ts.map +1 -0
- package/dist/types/core/operations/OperationsHelpers.d.ts +14 -0
- package/dist/types/core/operations/OperationsHelpers.d.ts.map +1 -0
- package/dist/types/core/operations/index.d.ts +4 -0
- package/dist/types/core/operations/index.d.ts.map +1 -0
- package/dist/types/core/requestAliases/MutationAlias.d.ts +9 -0
- package/dist/types/core/requestAliases/MutationAlias.d.ts.map +1 -0
- package/dist/types/core/requestAliases/TopLevelMutationOperation.d.ts +11 -0
- package/dist/types/core/requestAliases/TopLevelMutationOperation.d.ts.map +1 -0
- package/dist/types/core/requestAliases/index.d.ts +5 -0
- package/dist/types/core/requestAliases/index.d.ts.map +1 -0
- package/dist/types/core/requestAliases/mutationOperationSubTreeType.d.ts +5 -0
- package/dist/types/core/requestAliases/mutationOperationSubTreeType.d.ts.map +1 -0
- package/dist/types/core/requestAliases/mutationOperationType.d.ts +6 -0
- package/dist/types/core/requestAliases/mutationOperationType.d.ts.map +1 -0
- package/dist/types/core/schema/RawSchema.d.ts +7 -0
- package/dist/types/core/schema/RawSchema.d.ts.map +1 -0
- package/dist/types/core/schema/RawSchemaEntity.d.ts +12 -0
- package/dist/types/core/schema/RawSchemaEntity.d.ts.map +1 -0
- package/dist/types/core/schema/RawSchemaEnum.d.ts +6 -0
- package/dist/types/core/schema/RawSchemaEnum.d.ts.map +1 -0
- package/dist/types/core/schema/Schema.d.ts +9 -0
- package/dist/types/core/schema/Schema.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaColumn.d.ts +12 -0
- package/dist/types/core/schema/SchemaColumn.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaColumnType.d.ts +3 -0
- package/dist/types/core/schema/SchemaColumnType.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaEntities.d.ts +4 -0
- package/dist/types/core/schema/SchemaEntities.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaEntity.d.ts +10 -0
- package/dist/types/core/schema/SchemaEntity.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaEnums.d.ts +4 -0
- package/dist/types/core/schema/SchemaEnums.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaField.d.ts +4 -0
- package/dist/types/core/schema/SchemaField.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaFields.d.ts +4 -0
- package/dist/types/core/schema/SchemaFields.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaLoader.d.ts +7 -0
- package/dist/types/core/schema/SchemaLoader.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaPreprocessor.d.ts +9 -0
- package/dist/types/core/schema/SchemaPreprocessor.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaRelation.d.ts +24 -0
- package/dist/types/core/schema/SchemaRelation.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaRelationOrderBy.d.ts +5 -0
- package/dist/types/core/schema/SchemaRelationOrderBy.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaStore.d.ts +7 -0
- package/dist/types/core/schema/SchemaStore.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaUniqueConstraint.d.ts +5 -0
- package/dist/types/core/schema/SchemaUniqueConstraint.d.ts.map +1 -0
- package/dist/types/core/schema/SchemaValidator.d.ts +14 -0
- package/dist/types/core/schema/SchemaValidator.d.ts.map +1 -0
- package/dist/types/core/schema/index.d.ts +15 -0
- package/dist/types/core/schema/index.d.ts.map +1 -0
- package/dist/types/core/state/EntityListState.d.ts +27 -0
- package/dist/types/core/state/EntityListState.d.ts.map +1 -0
- package/dist/types/core/state/EntityRealmState.d.ts +44 -0
- package/dist/types/core/state/EntityRealmState.d.ts.map +1 -0
- package/dist/types/core/state/EntityState.d.ts +12 -0
- package/dist/types/core/state/EntityState.d.ts.map +1 -0
- package/dist/types/core/state/FieldState.d.ts +19 -0
- package/dist/types/core/state/FieldState.d.ts.map +1 -0
- package/dist/types/core/state/StateIterator.d.ts +14 -0
- package/dist/types/core/state/StateIterator.d.ts.map +1 -0
- package/dist/types/core/state/StateNode.d.ts +8 -0
- package/dist/types/core/state/StateNode.d.ts.map +1 -0
- package/dist/types/core/state/getEntityMarker.d.ts +3 -0
- package/dist/types/core/state/getEntityMarker.d.ts.map +1 -0
- package/dist/types/core/state/index.d.ts +8 -0
- package/dist/types/core/state/index.d.ts.map +1 -0
- package/dist/types/core/utils/getCombinedSignal.d.ts +2 -0
- package/dist/types/core/utils/getCombinedSignal.d.ts.map +1 -0
- package/dist/types/core/utils/index.d.ts +2 -0
- package/dist/types/core/utils/index.d.ts.map +1 -0
- package/dist/types/coreComponents/Component.d.ts +8 -0
- package/dist/types/coreComponents/Component.d.ts.map +1 -0
- package/dist/types/coreComponents/DataBindingProvider.d.ts +17 -0
- package/dist/types/coreComponents/DataBindingProvider.d.ts.map +1 -0
- package/dist/types/coreComponents/Entity.d.ts +9 -0
- package/dist/types/coreComponents/Entity.d.ts.map +1 -0
- package/dist/types/coreComponents/EntityList.d.ts +12 -0
- package/dist/types/coreComponents/EntityList.d.ts.map +1 -0
- package/dist/types/coreComponents/EntityListSubTree.d.ts +16 -0
- package/dist/types/coreComponents/EntityListSubTree.d.ts.map +1 -0
- package/dist/types/coreComponents/EntitySubTree.d.ts +14 -0
- package/dist/types/coreComponents/EntitySubTree.d.ts.map +1 -0
- package/dist/types/coreComponents/Field.d.ts +11 -0
- package/dist/types/coreComponents/Field.d.ts.map +1 -0
- package/dist/types/coreComponents/HasMany.d.ts +13 -0
- package/dist/types/coreComponents/HasMany.d.ts.map +1 -0
- package/dist/types/coreComponents/HasOne.d.ts +9 -0
- package/dist/types/coreComponents/HasOne.d.ts.map +1 -0
- package/dist/types/coreComponents/MarkerProvider.d.ts +21 -0
- package/dist/types/coreComponents/MarkerProvider.d.ts.map +1 -0
- package/dist/types/coreComponents/ParentEntity.d.ts +7 -0
- package/dist/types/coreComponents/ParentEntity.d.ts.map +1 -0
- package/dist/types/coreComponents/index.d.ts +12 -0
- package/dist/types/coreComponents/index.d.ts.map +1 -0
- package/dist/types/dao/Environment.d.ts +55 -0
- package/dist/types/dao/Environment.d.ts.map +1 -0
- package/dist/types/dao/VariableFieldValue.d.ts +5 -0
- package/dist/types/dao/VariableFieldValue.d.ts.map +1 -0
- package/dist/types/dao/index.d.ts +3 -0
- package/dist/types/dao/index.d.ts.map +1 -0
- package/dist/types/entityEvents/index.d.ts +8 -0
- package/dist/types/entityEvents/index.d.ts.map +1 -0
- package/dist/types/entityEvents/useDerivedField.d.ts +9 -0
- package/dist/types/entityEvents/useDerivedField.d.ts.map +1 -0
- package/dist/types/entityEvents/useEntityBeforePersist.d.ts +3 -0
- package/dist/types/entityEvents/useEntityBeforePersist.d.ts.map +1 -0
- package/dist/types/entityEvents/useEntityBeforeUpdate.d.ts +3 -0
- package/dist/types/entityEvents/useEntityBeforeUpdate.d.ts.map +1 -0
- package/dist/types/entityEvents/useEntityEvent.d.ts +9 -0
- package/dist/types/entityEvents/useEntityEvent.d.ts.map +1 -0
- package/dist/types/entityEvents/useEntityPersistError.d.ts +3 -0
- package/dist/types/entityEvents/useEntityPersistError.d.ts.map +1 -0
- package/dist/types/entityEvents/useEntityPersistSuccess.d.ts +3 -0
- package/dist/types/entityEvents/useEntityPersistSuccess.d.ts.map +1 -0
- package/dist/types/entityEvents/useOnConnectionUpdate.d.ts +4 -0
- package/dist/types/entityEvents/useOnConnectionUpdate.d.ts.map +1 -0
- package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts +7 -0
- package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts.map +1 -0
- package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts +10 -0
- package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts.map +1 -0
- package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts +10 -0
- package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts.map +1 -0
- package/dist/types/fieldHelpers/helpers/index.d.ts +3 -0
- package/dist/types/fieldHelpers/helpers/index.d.ts.map +1 -0
- package/dist/types/fieldHelpers/index.d.ts +2 -0
- package/dist/types/fieldHelpers/index.d.ts.map +1 -0
- package/dist/types/helperComponents/DeferredSubTrees.d.ts +7 -0
- package/dist/types/helperComponents/DeferredSubTrees.d.ts.map +1 -0
- package/dist/types/helperComponents/EntityView.d.ts +9 -0
- package/dist/types/helperComponents/EntityView.d.ts.map +1 -0
- package/dist/types/helperComponents/FieldView.d.ts +46 -0
- package/dist/types/helperComponents/FieldView.d.ts.map +1 -0
- package/dist/types/helperComponents/StaticRender.d.ts +6 -0
- package/dist/types/helperComponents/StaticRender.d.ts.map +1 -0
- package/dist/types/helperComponents/SugaredField.d.ts +9 -0
- package/dist/types/helperComponents/SugaredField.d.ts.map +1 -0
- package/dist/types/helperComponents/index.d.ts +6 -0
- package/dist/types/helperComponents/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/markers/EntityFieldMarkers.d.ts +7 -0
- package/dist/types/markers/EntityFieldMarkers.d.ts.map +1 -0
- package/dist/types/markers/EntityFieldMarkersContainer.d.ts +13 -0
- package/dist/types/markers/EntityFieldMarkersContainer.d.ts.map +1 -0
- package/dist/types/markers/EntityFieldPlaceholders.d.ts +3 -0
- package/dist/types/markers/EntityFieldPlaceholders.d.ts.map +1 -0
- package/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts +10 -0
- package/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts.map +1 -0
- package/dist/types/markers/EntityListSubTreeMarker.d.ts +12 -0
- package/dist/types/markers/EntityListSubTreeMarker.d.ts.map +1 -0
- package/dist/types/markers/EntitySubTreeMarker.d.ts +12 -0
- package/dist/types/markers/EntitySubTreeMarker.d.ts.map +1 -0
- package/dist/types/markers/FieldMarker.d.ts +14 -0
- package/dist/types/markers/FieldMarker.d.ts.map +1 -0
- package/dist/types/markers/HasManyRelationMarker.d.ts +12 -0
- package/dist/types/markers/HasManyRelationMarker.d.ts.map +1 -0
- package/dist/types/markers/HasOneRelationMarker.d.ts +12 -0
- package/dist/types/markers/HasOneRelationMarker.d.ts.map +1 -0
- package/dist/types/markers/MarkerTreeRoot.d.ts +8 -0
- package/dist/types/markers/MarkerTreeRoot.d.ts.map +1 -0
- package/dist/types/markers/MeaningfulMarker.d.ts +7 -0
- package/dist/types/markers/MeaningfulMarker.d.ts.map +1 -0
- package/dist/types/markers/ParentEntityMarker.d.ts +8 -0
- package/dist/types/markers/ParentEntityMarker.d.ts.map +1 -0
- package/dist/types/markers/PlaceholderGenerator.d.ts +9 -0
- package/dist/types/markers/PlaceholderGenerator.d.ts.map +1 -0
- package/dist/types/markers/SubTreeMarkers.d.ts +5 -0
- package/dist/types/markers/SubTreeMarkers.d.ts.map +1 -0
- package/dist/types/markers/index.d.ts +15 -0
- package/dist/types/markers/index.d.ts.map +1 -0
- package/dist/types/queryLanguage/CacheStore.d.ts +9 -0
- package/dist/types/queryLanguage/CacheStore.d.ts.map +1 -0
- package/dist/types/queryLanguage/MarkerFactory.d.ts +21 -0
- package/dist/types/queryLanguage/MarkerFactory.d.ts.map +1 -0
- package/dist/types/queryLanguage/Parser.d.ts +81 -0
- package/dist/types/queryLanguage/Parser.d.ts.map +1 -0
- package/dist/types/queryLanguage/ParserResults.d.ts +63 -0
- package/dist/types/queryLanguage/ParserResults.d.ts.map +1 -0
- package/dist/types/queryLanguage/QueryLanguage.d.ts +44 -0
- package/dist/types/queryLanguage/QueryLanguage.d.ts.map +1 -0
- package/dist/types/queryLanguage/QueryLanguageError.d.ts +3 -0
- package/dist/types/queryLanguage/QueryLanguageError.d.ts.map +1 -0
- package/dist/types/queryLanguage/index.d.ts +6 -0
- package/dist/types/queryLanguage/index.d.ts.map +1 -0
- package/dist/types/queryLanguage/tokenList.d.ts +34 -0
- package/dist/types/queryLanguage/tokenList.d.ts.map +1 -0
- package/dist/types/structures/BijectiveIndexedMap.d.ts +24 -0
- package/dist/types/structures/BijectiveIndexedMap.d.ts.map +1 -0
- package/dist/types/structures/LRUCache.d.ts +9 -0
- package/dist/types/structures/LRUCache.d.ts.map +1 -0
- package/dist/types/structures/WeakIdCache.d.ts +9 -0
- package/dist/types/structures/WeakIdCache.d.ts.map +1 -0
- package/dist/types/structures/index.d.ts +4 -0
- package/dist/types/structures/index.d.ts.map +1 -0
- package/dist/types/treeParameterHelpers/index.d.ts +2 -0
- package/dist/types/treeParameterHelpers/index.d.ts.map +1 -0
- package/dist/types/treeParameterHelpers/wrapFilterInHasOnes.d.ts +3 -0
- package/dist/types/treeParameterHelpers/wrapFilterInHasOnes.d.ts.map +1 -0
- package/dist/types/treeParameters/AnyField.d.ts +8 -0
- package/dist/types/treeParameters/AnyField.d.ts.map +1 -0
- package/dist/types/treeParameters/EntityCreationParameters.d.ts +13 -0
- package/dist/types/treeParameters/EntityCreationParameters.d.ts.map +1 -0
- package/dist/types/treeParameters/EntityListEventListeners.d.ts +15 -0
- package/dist/types/treeParameters/EntityListEventListeners.d.ts.map +1 -0
- package/dist/types/treeParameters/EntityListParameters.d.ts +17 -0
- package/dist/types/treeParameters/EntityListParameters.d.ts.map +1 -0
- package/dist/types/treeParameters/EntityListPreferences.d.ts +8 -0
- package/dist/types/treeParameters/EntityListPreferences.d.ts.map +1 -0
- package/dist/types/treeParameters/EventListenersStore.d.ts +32 -0
- package/dist/types/treeParameters/EventListenersStore.d.ts.map +1 -0
- package/dist/types/treeParameters/FieldEventListeners.d.ts +13 -0
- package/dist/types/treeParameters/FieldEventListeners.d.ts.map +1 -0
- package/dist/types/treeParameters/HasManyRelation.d.ts +10 -0
- package/dist/types/treeParameters/HasManyRelation.d.ts.map +1 -0
- package/dist/types/treeParameters/HasOneRelation.d.ts +13 -0
- package/dist/types/treeParameters/HasOneRelation.d.ts.map +1 -0
- package/dist/types/treeParameters/LeafField.d.ts +14 -0
- package/dist/types/treeParameters/LeafField.d.ts.map +1 -0
- package/dist/types/treeParameters/ParentEntityParameters.d.ts +8 -0
- package/dist/types/treeParameters/ParentEntityParameters.d.ts.map +1 -0
- package/dist/types/treeParameters/QualifiedEntityList.d.ts +19 -0
- package/dist/types/treeParameters/QualifiedEntityList.d.ts.map +1 -0
- package/dist/types/treeParameters/QualifiedEntityParameters.d.ts +17 -0
- package/dist/types/treeParameters/QualifiedEntityParameters.d.ts.map +1 -0
- package/dist/types/treeParameters/QualifiedFieldList.d.ts +17 -0
- package/dist/types/treeParameters/QualifiedFieldList.d.ts.map +1 -0
- package/dist/types/treeParameters/QualifiedSingleEntity.d.ts +20 -0
- package/dist/types/treeParameters/QualifiedSingleEntity.d.ts.map +1 -0
- package/dist/types/treeParameters/QualifiedSingleEntityParameters.d.ts +8 -0
- package/dist/types/treeParameters/QualifiedSingleEntityParameters.d.ts.map +1 -0
- package/dist/types/treeParameters/Relation.d.ts +15 -0
- package/dist/types/treeParameters/Relation.d.ts.map +1 -0
- package/dist/types/treeParameters/RelativeEntityList.d.ts +19 -0
- package/dist/types/treeParameters/RelativeEntityList.d.ts.map +1 -0
- package/dist/types/treeParameters/RelativeSingleEntity.d.ts +13 -0
- package/dist/types/treeParameters/RelativeSingleEntity.d.ts.map +1 -0
- package/dist/types/treeParameters/RelativeSingleField.d.ts +15 -0
- package/dist/types/treeParameters/RelativeSingleField.d.ts.map +1 -0
- package/dist/types/treeParameters/SetOnCreate.d.ts +4 -0
- package/dist/types/treeParameters/SetOnCreate.d.ts.map +1 -0
- package/dist/types/treeParameters/SingleEntityEventListeners.d.ts +16 -0
- package/dist/types/treeParameters/SingleEntityEventListeners.d.ts.map +1 -0
- package/dist/types/treeParameters/SingleEntityParameters.d.ts +8 -0
- package/dist/types/treeParameters/SingleEntityParameters.d.ts.map +1 -0
- package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts +19 -0
- package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts.map +1 -0
- package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts +18 -0
- package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts.map +1 -0
- package/dist/types/treeParameters/index.d.ts +27 -0
- package/dist/types/treeParameters/index.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/Alias.d.ts +2 -0
- package/dist/types/treeParameters/primitives/Alias.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/EntityId.d.ts +2 -0
- package/dist/types/treeParameters/primitives/EntityId.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/EntityName.d.ts +2 -0
- package/dist/types/treeParameters/primitives/EntityName.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts +2 -0
- package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts +2 -0
- package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts +2 -0
- package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts +2 -0
- package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/FieldName.d.ts +2 -0
- package/dist/types/treeParameters/primitives/FieldName.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/FieldValue.d.ts +5 -0
- package/dist/types/treeParameters/primitives/FieldValue.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/Filter.d.ts +4 -0
- package/dist/types/treeParameters/primitives/Filter.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/Limit.d.ts +2 -0
- package/dist/types/treeParameters/primitives/Limit.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/Offset.d.ts +2 -0
- package/dist/types/treeParameters/primitives/Offset.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/OrderBy.d.ts +4 -0
- package/dist/types/treeParameters/primitives/OrderBy.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/PlaceholderName.d.ts +2 -0
- package/dist/types/treeParameters/primitives/PlaceholderName.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/RemovalType.d.ts +2 -0
- package/dist/types/treeParameters/primitives/RemovalType.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/Scalar.d.ts +2 -0
- package/dist/types/treeParameters/primitives/Scalar.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/TreeRootId.d.ts +2 -0
- package/dist/types/treeParameters/primitives/TreeRootId.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/UniqueWhere.d.ts +4 -0
- package/dist/types/treeParameters/primitives/UniqueWhere.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/index.d.ts +19 -0
- package/dist/types/treeParameters/primitives/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dist/types/utils/Hashing.d.ts +10 -0
- package/dist/types/utils/Hashing.d.ts.map +1 -0
- package/dist/types/utils/assert.d.ts +2 -0
- package/dist/types/utils/assert.d.ts.map +1 -0
- package/dist/types/utils/assertNever.d.ts +2 -0
- package/dist/types/utils/assertNever.d.ts.map +1 -0
- package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts +2 -0
- package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/isEmptyObject.d.ts +2 -0
- package/dist/types/utils/isEmptyObject.d.ts.map +1 -0
- package/dist/types/utils/ucfirst.d.ts +2 -0
- package/dist/types/utils/ucfirst.d.ts.map +1 -0
- package/package.json +8 -9
- package/src/BindingError.ts +5 -0
- package/src/accessorPropagation/AccessorProvider.tsx +17 -0
- package/src/accessorPropagation/BindingOperationsContext.ts +32 -0
- package/src/accessorPropagation/BindingOperationsProvider.tsx +16 -0
- package/src/accessorPropagation/EntityKeyContext.ts +4 -0
- package/src/accessorPropagation/EntityKeyProvider.tsx +11 -0
- package/src/accessorPropagation/EnvironmentContext.ts +5 -0
- package/src/accessorPropagation/TreeRootIdContext.ts +5 -0
- package/src/accessorPropagation/TreeRootIdProvider.tsx +12 -0
- package/src/accessorPropagation/index.ts +29 -0
- package/src/accessorPropagation/useAccessorUpdateSubscription.ts +107 -0
- package/src/accessorPropagation/useBindingOperations.ts +5 -0
- package/src/accessorPropagation/useDesugaredRelativeEntityList.ts +70 -0
- package/src/accessorPropagation/useDesugaredRelativeSingleEntity.ts +58 -0
- package/src/accessorPropagation/useDesugaredRelativeSingleField.ts +58 -0
- package/src/accessorPropagation/useEntity.ts +56 -0
- package/src/accessorPropagation/useEntityKey.ts +15 -0
- package/src/accessorPropagation/useEntityList.ts +49 -0
- package/src/accessorPropagation/useEntityListSubTree.ts +20 -0
- package/src/accessorPropagation/useEntityListSubTreeParameters.ts +88 -0
- package/src/accessorPropagation/useEntitySubTree.ts +19 -0
- package/src/accessorPropagation/useEntitySubTreeParameters.ts +66 -0
- package/src/accessorPropagation/useEnvironment.ts +7 -0
- package/src/accessorPropagation/useField.ts +51 -0
- package/src/accessorPropagation/useGetEntityByKey.ts +4 -0
- package/src/accessorPropagation/useGetEntityListSubTree.ts +28 -0
- package/src/accessorPropagation/useGetEntitySubTree.ts +28 -0
- package/src/accessorPropagation/useGetTreeFilters.ts +4 -0
- package/src/accessorPropagation/useHasEntity.ts +6 -0
- package/src/accessorPropagation/usePersist.ts +4 -0
- package/src/accessorPropagation/useTreeRootId.ts +5 -0
- package/src/accessorSorting/SetOrderFieldOnCreate.tsx +92 -0
- package/src/accessorSorting/SortedEntities.ts +9 -0
- package/src/accessorSorting/addEntityAtIndex.ts +27 -0
- package/src/accessorSorting/errors.ts +18 -0
- package/src/accessorSorting/index.ts +9 -0
- package/src/accessorSorting/moveEntity.ts +66 -0
- package/src/accessorSorting/repairEntitiesOrder.ts +15 -0
- package/src/accessorSorting/sortEntities.ts +20 -0
- package/src/accessorSorting/useSortedEntities.ts +105 -0
- package/src/accessorTree/AccessorTree.tsx +34 -0
- package/src/accessorTree/AccessorTreeState.ts +18 -0
- package/src/accessorTree/AccessorTreeStateAction.ts +15 -0
- package/src/accessorTree/AccessorTreeStateMetadata.ts +3 -0
- package/src/accessorTree/AccessorTreeStateOptions.ts +7 -0
- package/src/accessorTree/DirtinessContext.ts +4 -0
- package/src/accessorTree/MutationRequestResponse.ts +55 -0
- package/src/accessorTree/MutationStateContext.ts +4 -0
- package/src/accessorTree/NormalizedPersistedData.ts +23 -0
- package/src/accessorTree/PersistResult.ts +30 -0
- package/src/accessorTree/QueryRequestResponse.ts +19 -0
- package/src/accessorTree/RequestError.ts +16 -0
- package/src/accessorTree/RuntimeId.ts +49 -0
- package/src/accessorTree/accessorTreeStateReducer.ts +27 -0
- package/src/accessorTree/index.ts +18 -0
- package/src/accessorTree/metadataToRequestError.ts +14 -0
- package/src/accessorTree/useDataBinding.ts +98 -0
- package/src/accessorTree/useDirtinessState.ts +4 -0
- package/src/accessorTree/useMutationState.ts +4 -0
- package/src/accessors/AsyncBatchUpdatesOptions.ts +8 -0
- package/src/accessors/BatchUpdatesOptions.ts +9 -0
- package/src/accessors/BindingConfig.ts +7 -0
- package/src/accessors/BindingOperations.ts +15 -0
- package/src/accessors/EntityAccessor.ts +259 -0
- package/src/accessors/EntityListAccessor.ts +173 -0
- package/src/accessors/ErrorAccessor.ts +39 -0
- package/src/accessors/Errorable.ts +5 -0
- package/src/accessors/ExtendTree.ts +10 -0
- package/src/accessors/FieldAccessor.ts +102 -0
- package/src/accessors/GetEntityByKey.ts +3 -0
- package/src/accessors/GetEntityListSubTree.ts +14 -0
- package/src/accessors/GetEntitySubTree.ts +14 -0
- package/src/accessors/Persist.ts +11 -0
- package/src/accessors/PersistErrorOptions.ts +12 -0
- package/src/accessors/PersistSuccessOptions.ts +5 -0
- package/src/accessors/TreeRootAccessor.ts +14 -0
- package/src/accessors/index.ts +17 -0
- package/src/ambient.d.ts +1 -0
- package/src/bindingTypes.ts +3 -0
- package/src/core/AccessorErrorManager.ts +231 -0
- package/src/core/Config.ts +29 -0
- package/src/core/DataBinding.ts +454 -0
- package/src/core/DirtinessTracker.ts +33 -0
- package/src/core/ErrorsPreprocessor.ts +240 -0
- package/src/core/EventManager.ts +580 -0
- package/src/core/IncrementalMarkerBuilder.ts +60 -0
- package/src/core/MarkerComparator.ts +102 -0
- package/src/core/MarkerMerger.ts +297 -0
- package/src/core/MarkerTreeGenerator.ts +121 -0
- package/src/core/MutationGenerator.ts +716 -0
- package/src/core/QueryGenerator.ts +173 -0
- package/src/core/RealmKeyGenerator.ts +54 -0
- package/src/core/RequestResponseNormalizer.ts +213 -0
- package/src/core/StateInitializer.ts +571 -0
- package/src/core/TreeAugmenter.ts +262 -0
- package/src/core/TreeFilterGenerator.ts +116 -0
- package/src/core/TreeParameterMerger.ts +374 -0
- package/src/core/TreeStore.ts +260 -0
- package/src/core/UpdateMetadata.ts +3 -0
- package/src/core/VariableInputTransformer.ts +23 -0
- package/src/core/exceptions/ErrorLocator.ts +58 -0
- package/src/core/exceptions/LocalizedBindingError.ts +20 -0
- package/src/core/exceptions/MarkerSugarer.ts +61 -0
- package/src/core/exceptions/RawMarkerPath.ts +3 -0
- package/src/core/exceptions/TreeParameterSugarer.ts +41 -0
- package/src/core/exceptions/index.ts +5 -0
- package/src/core/factories/createBatchUpdatesOptions.ts +38 -0
- package/src/core/factories/index.ts +1 -0
- package/src/core/index.ts +5 -0
- package/src/core/operations/EntityOperations.ts +310 -0
- package/src/core/operations/FieldOperations.ts +127 -0
- package/src/core/operations/ListOperations.ts +207 -0
- package/src/core/operations/OperationsHelpers.ts +150 -0
- package/src/core/operations/index.ts +3 -0
- package/src/core/requestAliases/MutationAlias.ts +66 -0
- package/src/core/requestAliases/TopLevelMutationOperation.ts +11 -0
- package/src/core/requestAliases/index.ts +4 -0
- package/src/core/requestAliases/mutationOperationSubTreeType.ts +4 -0
- package/src/core/requestAliases/mutationOperationType.ts +5 -0
- package/src/core/schema/RawSchema.ts +7 -0
- package/src/core/schema/RawSchemaEntity.ts +13 -0
- package/src/core/schema/RawSchemaEnum.ts +6 -0
- package/src/core/schema/Schema.ts +11 -0
- package/src/core/schema/SchemaColumn.ts +15 -0
- package/src/core/schema/SchemaColumnType.ts +3 -0
- package/src/core/schema/SchemaEntities.ts +4 -0
- package/src/core/schema/SchemaEntity.ts +10 -0
- package/src/core/schema/SchemaEnums.ts +3 -0
- package/src/core/schema/SchemaField.ts +4 -0
- package/src/core/schema/SchemaFields.ts +4 -0
- package/src/core/schema/SchemaLoader.ts +62 -0
- package/src/core/schema/SchemaPreprocessor.ts +51 -0
- package/src/core/schema/SchemaRelation.ts +29 -0
- package/src/core/schema/SchemaRelationOrderBy.ts +4 -0
- package/src/core/schema/SchemaStore.ts +8 -0
- package/src/core/schema/SchemaUniqueConstraint.ts +5 -0
- package/src/core/schema/SchemaValidator.ts +238 -0
- package/src/core/schema/index.ts +14 -0
- package/src/core/state/EntityListState.ts +37 -0
- package/src/core/state/EntityRealmState.ts +63 -0
- package/src/core/state/EntityState.ts +12 -0
- package/src/core/state/FieldState.ts +20 -0
- package/src/core/state/StateIterator.ts +122 -0
- package/src/core/state/StateNode.ts +8 -0
- package/src/core/state/getEntityMarker.ts +4 -0
- package/src/core/state/index.ts +7 -0
- package/src/core/utils/getCombinedSignal.ts +36 -0
- package/src/core/utils/index.ts +1 -0
- package/src/coreComponents/Component.tsx +61 -0
- package/src/coreComponents/DataBindingProvider.tsx +45 -0
- package/src/coreComponents/Entity.tsx +23 -0
- package/src/coreComponents/EntityList.tsx +52 -0
- package/src/coreComponents/EntityListSubTree.tsx +85 -0
- package/src/coreComponents/EntitySubTree.tsx +98 -0
- package/src/coreComponents/Field.tsx +39 -0
- package/src/coreComponents/HasMany.tsx +46 -0
- package/src/coreComponents/HasOne.tsx +39 -0
- package/src/coreComponents/MarkerProvider.ts +59 -0
- package/src/coreComponents/ParentEntity.tsx +17 -0
- package/src/coreComponents/index.ts +11 -0
- package/src/dao/Environment.ts +201 -0
- package/src/dao/VariableFieldValue.ts +3 -0
- package/src/dao/index.ts +2 -0
- package/src/entityEvents/index.ts +7 -0
- package/src/entityEvents/useDerivedField.ts +64 -0
- package/src/entityEvents/useEntityBeforePersist.ts +6 -0
- package/src/entityEvents/useEntityBeforeUpdate.ts +6 -0
- package/src/entityEvents/useEntityEvent.ts +57 -0
- package/src/entityEvents/useEntityPersistError.ts +6 -0
- package/src/entityEvents/useEntityPersistSuccess.ts +6 -0
- package/src/entityEvents/useOnConnectionUpdate.ts +10 -0
- package/src/fieldHelpers/helpers/FieldHelper.ts +10 -0
- package/src/fieldHelpers/helpers/TemporalFieldHelper.ts +21 -0
- package/src/fieldHelpers/helpers/UuidFieldHelper.ts +18 -0
- package/src/fieldHelpers/helpers/index.ts +2 -0
- package/src/fieldHelpers/index.ts +1 -0
- package/src/helperComponents/DeferredSubTrees.tsx +116 -0
- package/src/helperComponents/EntityView.tsx +16 -0
- package/src/helperComponents/FieldView.tsx +129 -0
- package/src/helperComponents/StaticRender.tsx +12 -0
- package/src/helperComponents/SugaredField.tsx +15 -0
- package/src/helperComponents/index.ts +5 -0
- package/src/index.ts +19 -0
- package/src/markers/EntityFieldMarkers.ts +7 -0
- package/src/markers/EntityFieldMarkersContainer.ts +45 -0
- package/src/markers/EntityFieldPlaceholders.ts +3 -0
- package/src/markers/EntityFieldsWithHoistablesMarker.ts +11 -0
- package/src/markers/EntityListSubTreeMarker.ts +20 -0
- package/src/markers/EntitySubTreeMarker.ts +20 -0
- package/src/markers/FieldMarker.ts +19 -0
- package/src/markers/HasManyRelationMarker.ts +27 -0
- package/src/markers/HasOneRelationMarker.ts +21 -0
- package/src/markers/MarkerTreeRoot.ts +9 -0
- package/src/markers/MeaningfulMarker.ts +12 -0
- package/src/markers/ParentEntityMarker.ts +9 -0
- package/src/markers/PlaceholderGenerator.ts +36 -0
- package/src/markers/SubTreeMarkers.ts +5 -0
- package/src/markers/index.ts +14 -0
- package/src/queryLanguage/CacheStore.ts +56 -0
- package/src/queryLanguage/MarkerFactory.ts +300 -0
- package/src/queryLanguage/Parser.ts +848 -0
- package/src/queryLanguage/ParserResults.ts +81 -0
- package/src/queryLanguage/QueryLanguage.ts +730 -0
- package/src/queryLanguage/QueryLanguageError.ts +1 -0
- package/src/queryLanguage/index.ts +5 -0
- package/src/queryLanguage/tokenList.ts +169 -0
- package/src/structures/BijectiveIndexedMap.ts +139 -0
- package/src/structures/LRUCache.ts +29 -0
- package/src/structures/WeakIdCache.ts +25 -0
- package/src/structures/index.ts +3 -0
- package/src/treeParameterHelpers/index.ts +1 -0
- package/src/treeParameterHelpers/wrapFilterInHasOnes.ts +21 -0
- package/src/treeParameters/AnyField.ts +9 -0
- package/src/treeParameters/EntityCreationParameters.ts +34 -0
- package/src/treeParameters/EntityListEventListeners.ts +20 -0
- package/src/treeParameters/EntityListParameters.ts +19 -0
- package/src/treeParameters/EntityListPreferences.ts +11 -0
- package/src/treeParameters/EventListenersStore.ts +81 -0
- package/src/treeParameters/FieldEventListeners.ts +22 -0
- package/src/treeParameters/HasManyRelation.ts +18 -0
- package/src/treeParameters/HasOneRelation.ts +21 -0
- package/src/treeParameters/LeafField.ts +18 -0
- package/src/treeParameters/ParentEntityParameters.ts +10 -0
- package/src/treeParameters/QualifiedEntityList.ts +43 -0
- package/src/treeParameters/QualifiedEntityParameters.ts +20 -0
- package/src/treeParameters/QualifiedFieldList.ts +36 -0
- package/src/treeParameters/QualifiedSingleEntity.ts +46 -0
- package/src/treeParameters/QualifiedSingleEntityParameters.ts +9 -0
- package/src/treeParameters/Relation.ts +17 -0
- package/src/treeParameters/RelativeEntityList.ts +25 -0
- package/src/treeParameters/RelativeSingleEntity.ts +16 -0
- package/src/treeParameters/RelativeSingleField.ts +20 -0
- package/src/treeParameters/SetOnCreate.ts +6 -0
- package/src/treeParameters/SingleEntityEventListeners.ts +24 -0
- package/src/treeParameters/SingleEntityParameters.ts +9 -0
- package/src/treeParameters/UnconstrainedQualifiedEntityList.ts +37 -0
- package/src/treeParameters/UnconstrainedQualifiedSingleEntity.ts +37 -0
- package/src/treeParameters/index.ts +27 -0
- package/src/treeParameters/primitives/Alias.ts +1 -0
- package/src/treeParameters/primitives/EntityId.ts +2 -0
- package/src/treeParameters/primitives/EntityName.ts +4 -0
- package/src/treeParameters/primitives/EntityRealmKey.ts +2 -0
- package/src/treeParameters/primitives/ExpectedEntityCount.ts +1 -0
- package/src/treeParameters/primitives/ExpectedQualifiedEntityMutation.ts +1 -0
- package/src/treeParameters/primitives/ExpectedRelationMutation.ts +1 -0
- package/src/treeParameters/primitives/FieldName.ts +7 -0
- package/src/treeParameters/primitives/FieldValue.ts +6 -0
- package/src/treeParameters/primitives/Filter.ts +7 -0
- package/src/treeParameters/primitives/Limit.ts +1 -0
- package/src/treeParameters/primitives/Offset.ts +1 -0
- package/src/treeParameters/primitives/OrderBy.ts +6 -0
- package/src/treeParameters/primitives/PlaceholderName.ts +4 -0
- package/src/treeParameters/primitives/RemovalType.ts +1 -0
- package/src/treeParameters/primitives/Scalar.ts +1 -0
- package/src/treeParameters/primitives/TreeRootId.ts +1 -0
- package/src/treeParameters/primitives/UniqueWhere.ts +7 -0
- package/src/treeParameters/primitives/index.ts +18 -0
- package/src/tsconfig.json +12 -0
- package/src/utils/Hashing.ts +81 -0
- package/src/utils/assert.ts +7 -0
- package/src/utils/assertNever.ts +10 -0
- package/src/utils/generateEnumerabilityPreventingEntropy.ts +3 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/isEmptyObject.ts +9 -0
- package/src/utils/ucfirst.ts +1 -0
- package/dist/binding.d.ts +0 -2242
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { Environment } from '../dao';
|
|
3
|
+
import { MarkerTreeRoot } from '../markers';
|
|
4
|
+
export declare class MarkerTreeGenerator {
|
|
5
|
+
private sourceTree;
|
|
6
|
+
private environment;
|
|
7
|
+
private static childrenAnalyzer;
|
|
8
|
+
constructor(sourceTree: ReactNode, environment?: Environment);
|
|
9
|
+
generate(): MarkerTreeRoot;
|
|
10
|
+
private generatePlaceholdersByAliases;
|
|
11
|
+
private static mapNodeResultToEntityFields;
|
|
12
|
+
private static initializeChildrenAnalyzer;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=MarkerTreeGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkerTreeGenerator.d.ts","sourceRoot":"","sources":["../../../src/core/MarkerTreeGenerator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAQN,cAAc,EACd,MAAM,YAAY,CAAA;AAQnB,qBAAa,mBAAmB;IAGZ,OAAO,CAAC,UAAU;IAAa,OAAO,CAAC,WAAW;IAFrE,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAmD;gBAEvD,UAAU,EAAE,SAAS,EAAU,WAAW,GAAE,WAAkC;IAElG,QAAQ,IAAI,cAAc;IA2BjC,OAAO,CAAC,6BAA6B;IA2BrC,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAqB1C,OAAO,CAAC,MAAM,CAAC,0BAA0B;CAmBzC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TreeStore } from './TreeStore';
|
|
2
|
+
export declare class MutationGenerator {
|
|
3
|
+
private readonly treeStore;
|
|
4
|
+
constructor(treeStore: TreeStore);
|
|
5
|
+
getPersistMutation(): string | undefined;
|
|
6
|
+
private addSubMutation;
|
|
7
|
+
private getNodeFragmentName;
|
|
8
|
+
private addDeleteMutation;
|
|
9
|
+
private addUpdateMutation;
|
|
10
|
+
private addCreateMutation;
|
|
11
|
+
private registerCreateMutationPart;
|
|
12
|
+
private registerCreateFieldPart;
|
|
13
|
+
private registerCreateEntityPart;
|
|
14
|
+
private registerCreateEntityListPart;
|
|
15
|
+
private registerUpdateMutationPart;
|
|
16
|
+
private transformFieldValue;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=MutationGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MutationGenerator.d.ts","sourceRoot":"","sources":["../../../src/core/MutationGenerator.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAO5C,qBAAa,iBAAiB;IACV,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEjD,kBAAkB,IAAI,MAAM,GAAG,SAAS;IAmE/C,OAAO,CAAC,cAAc;IAwDtB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,iBAAiB;IA+CzB,OAAO,CAAC,iBAAiB;IA4CzB,OAAO,CAAC,0BAA0B;IA+JlC,OAAO,CAAC,uBAAuB;IAa/B,OAAO,CAAC,wBAAwB;IA4BhC,OAAO,CAAC,4BAA4B;IAoBpC,OAAO,CAAC,0BAA0B;IAiNlC,OAAO,CAAC,mBAAmB;CAa3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CrudQueryBuilder } from '@contember/client';
|
|
2
|
+
import { EntityFieldMarkers, MarkerTreeRoot } from '../markers';
|
|
3
|
+
declare type ReadBuilder = CrudQueryBuilder.ReadBuilder.Builder<never>;
|
|
4
|
+
export declare class QueryGenerator {
|
|
5
|
+
private tree;
|
|
6
|
+
constructor(tree: MarkerTreeRoot);
|
|
7
|
+
getReadQuery(): string | undefined;
|
|
8
|
+
private addSubQuery;
|
|
9
|
+
private addGetQuery;
|
|
10
|
+
private addListQuery;
|
|
11
|
+
static registerQueryPart(fields: EntityFieldMarkers, builder: ReadBuilder): ReadBuilder;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=QueryGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryGenerator.d.ts","sourceRoot":"","sources":["../../../src/core/QueryGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,EACN,kBAAkB,EAMlB,cAAc,EACd,MAAM,YAAY,CAAA;AAKnB,aAAK,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAE9D,qBAAa,cAAc;IACd,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,cAAc;IAEjC,YAAY,IAAI,MAAM,GAAG,SAAS;IAazC,OAAO,CAAC,WAAW;IAkBnB,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,YAAY;WAwCN,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,WAAW,GAAG,WAAW;CAgE9F"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RuntimeId } from '../accessorTree';
|
|
2
|
+
import type { EntityRealmKey } from '../treeParameters';
|
|
3
|
+
import type { EntityRealmBlueprint } from './state';
|
|
4
|
+
export declare class RealmKeyGenerator {
|
|
5
|
+
private static parentStateIdCache;
|
|
6
|
+
private static markerIdCache;
|
|
7
|
+
static vaguelyAppearsToBeAKey(candidate: string): boolean;
|
|
8
|
+
private static generateKey;
|
|
9
|
+
static getRealmKey(id: RuntimeId, blueprint: EntityRealmBlueprint): EntityRealmKey;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=RealmKeyGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RealmKeyGenerator.d.ts","sourceRoot":"","sources":["../../../src/core/RealmKeyGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,KAAK,EAAY,cAAc,EAAmB,MAAM,mBAAmB,CAAA;AAElF,OAAO,KAAK,EAAmB,oBAAoB,EAAoB,MAAM,SAAS,CAAA;AAMtF,qBAAa,iBAAiB;IAG7B,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAwD;IACzF,OAAO,CAAC,MAAM,CAAC,aAAa,CAAiD;WAE/D,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAKhE,OAAO,CAAC,MAAM,CAAC,WAAW;WAYZ,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB,GAAG,cAAc;CAoBzF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NormalizedPersistedData, ReceivedDataTree } from '../accessorTree';
|
|
2
|
+
export declare class RequestResponseNormalizer {
|
|
3
|
+
static mergeInQueryResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree): Set<string>;
|
|
4
|
+
static mergeInMutationResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree): Set<string>;
|
|
5
|
+
private static createFieldData;
|
|
6
|
+
private static createEntityData;
|
|
7
|
+
private static mergeInFieldData;
|
|
8
|
+
private static mergeInEntityData;
|
|
9
|
+
private static rejectData;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=RequestResponseNormalizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestResponseNormalizer.d.ts","sourceRoot":"","sources":["../../../src/core/RequestResponseNormalizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,uBAAuB,EAEvB,gBAAgB,EAKhB,MAAM,iBAAiB,CAAA;AAMxB,qBAAa,yBAAyB;WACvB,oBAAoB,CACjC,QAAQ,EAAE,uBAAuB,EACjC,gBAAgB,EAAE,gBAAgB,GAChC,GAAG,CAAC,MAAM,CAAC;WAoBA,uBAAuB,CACpC,QAAQ,EAAE,uBAAuB,EACjC,gBAAgB,EAAE,gBAAgB,GAChC,GAAG,CAAC,MAAM,CAAC;IA0Ed,OAAO,CAAC,MAAM,CAAC,eAAe;IAiB9B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAuB/B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAuC/B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAchC,OAAO,CAAC,MAAM,CAAC,UAAU;CAGzB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BatchUpdatesOptions, EntityAccessor } from '../accessors';
|
|
2
|
+
import { RuntimeId } from '../accessorTree';
|
|
3
|
+
import { EntityListSubTreeMarker, EntitySubTreeMarker } from '../markers';
|
|
4
|
+
import type { EntityEventListenerStore, EntityName } from '../treeParameters';
|
|
5
|
+
import type { AccessorErrorManager } from './AccessorErrorManager';
|
|
6
|
+
import type { Config } from './Config';
|
|
7
|
+
import type { EventManager } from './EventManager';
|
|
8
|
+
import { EntityRealmBlueprint, EntityRealmState, EntityRealmStateStub, EntityState, RootStateNode } from './state';
|
|
9
|
+
import type { TreeStore } from './TreeStore';
|
|
10
|
+
export declare class StateInitializer {
|
|
11
|
+
private readonly accessorErrorManager;
|
|
12
|
+
private readonly batchUpdatesOptions;
|
|
13
|
+
private readonly config;
|
|
14
|
+
private readonly eventManager;
|
|
15
|
+
private readonly treeStore;
|
|
16
|
+
private readonly fieldOperations;
|
|
17
|
+
private readonly entityOperations;
|
|
18
|
+
private readonly listOperations;
|
|
19
|
+
constructor(accessorErrorManager: AccessorErrorManager, batchUpdatesOptions: BatchUpdatesOptions, config: Config, eventManager: EventManager, treeStore: TreeStore);
|
|
20
|
+
initializeSubTree(tree: EntitySubTreeMarker | EntityListSubTreeMarker): RootStateNode;
|
|
21
|
+
initializeEntityRealm(id: RuntimeId, entityName: EntityName, blueprint: EntityRealmBlueprint, copyFrom?: EntityRealmState | EntityRealmStateStub): EntityRealmState | EntityRealmStateStub;
|
|
22
|
+
private createEntityRealm;
|
|
23
|
+
private materializeEntityRealm;
|
|
24
|
+
private registerEntityRealm;
|
|
25
|
+
initializeEntityState(id: RuntimeId, entityName: EntityName): EntityState;
|
|
26
|
+
private initializeEntityListState;
|
|
27
|
+
private initializeFieldState;
|
|
28
|
+
private initializeFromFieldMarker;
|
|
29
|
+
private initializeFromHasOneRelationMarker;
|
|
30
|
+
private initializeFromHasManyRelationMarker;
|
|
31
|
+
private getRelationTargetEntityName;
|
|
32
|
+
runImmediateUserInitialization(realm: EntityRealmState | EntityRealmStateStub, initialize: EntityAccessor.BatchUpdatesHandler | undefined): void;
|
|
33
|
+
initializeEntityEventListenerStore(blueprint: EntityRealmBlueprint): EntityEventListenerStore | undefined;
|
|
34
|
+
private initializeEntityListEventListenerStore;
|
|
35
|
+
private initializeEntityListChildEventListenerStore;
|
|
36
|
+
private initializeFieldEventListenerStore;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=StateInitializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StateInitializer.d.ts","sourceRoot":"","sources":["../../../src/core/StateInitializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAqC,MAAM,cAAc,CAAA;AACrG,OAAO,EAA4B,SAAS,EAAiD,MAAM,iBAAiB,CAAA;AAEpH,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EAInB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EACX,wBAAwB,EAExB,UAAU,EAIV,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlD,OAAO,EAGN,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EAGX,aAAa,EACb,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAG5C,qBAAa,gBAAgB;IAM3B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAT3B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAiB;IACjD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkB;IACnD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;gBAG7B,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,mBAAmB,EACxC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS;IAmB/B,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,uBAAuB,GAAG,aAAa;IA4BrF,qBAAqB,CAC3B,EAAE,EAAE,SAAS,EACb,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,oBAAoB,EAC/B,QAAQ,CAAC,EAAE,gBAAgB,GAAG,oBAAoB,GAChD,gBAAgB,GAAG,oBAAoB;IAsE1C,OAAO,CAAC,iBAAiB;IA0CzB,OAAO,CAAC,sBAAsB;IAuD9B,OAAO,CAAC,mBAAmB;IAapB,qBAAqB,CAAC,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,GAAG,WAAW;IAqBhF,OAAO,CAAC,yBAAyB;IAuDjC,OAAO,CAAC,oBAAoB;IAoD5B,OAAO,CAAC,yBAAyB;IAuBjC,OAAO,CAAC,kCAAkC;IA+B1C,OAAO,CAAC,mCAAmC;IAgC3C,OAAO,CAAC,2BAA2B;IAY5B,8BAA8B,CACpC,KAAK,EAAE,gBAAgB,GAAG,oBAAoB,EAC9C,UAAU,EAAE,cAAc,CAAC,mBAAmB,GAAG,SAAS;IAepD,kCAAkC,CAAC,SAAS,EAAE,oBAAoB,GAAG,wBAAwB,GAAG,SAAS;IAmBhH,OAAO,CAAC,sCAAsC;IAW9C,OAAO,CAAC,2CAA2C;IAWnD,OAAO,CAAC,iCAAiC;CAIzC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReceivedDataTree } from '../accessorTree';
|
|
2
|
+
import type { MarkerTreeRoot } from '../markers';
|
|
3
|
+
import type { TreeRootId } from '../treeParameters';
|
|
4
|
+
import { EventManager } from './EventManager';
|
|
5
|
+
import type { StateInitializer } from './StateInitializer';
|
|
6
|
+
import type { TreeStore } from './TreeStore';
|
|
7
|
+
export declare class TreeAugmenter {
|
|
8
|
+
private readonly eventManager;
|
|
9
|
+
private readonly stateInitializer;
|
|
10
|
+
private readonly treeStore;
|
|
11
|
+
constructor(eventManager: EventManager, stateInitializer: StateInitializer, treeStore: TreeStore);
|
|
12
|
+
extendPersistedData(newPersistedData: ReceivedDataTree): void;
|
|
13
|
+
extendTreeStates(newTreeId: TreeRootId | undefined, newMarkerTree: MarkerTreeRoot): void;
|
|
14
|
+
updatePersistedData(response: ReceivedDataTree): void;
|
|
15
|
+
resetCreatingSubTrees(): void;
|
|
16
|
+
private updateRealmIdIfNecessary;
|
|
17
|
+
private updateEntityRealmPersistedData;
|
|
18
|
+
private updateEntityListPersistedData;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=TreeAugmenter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeAugmenter.d.ts","sourceRoot":"","sources":["../../../src/core/TreeAugmenter.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,gBAAgB,EAIhB,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAA6B,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,qBAAa,aAAa;IAExB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAFT,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS;IAG/B,mBAAmB,CAAC,gBAAgB,EAAE,gBAAgB;IAKtD,gBAAgB,CAAC,SAAS,EAAE,UAAU,GAAG,SAAS,EAAE,aAAa,EAAE,cAAc,GAAG,IAAI;IAYxF,mBAAmB,CAAC,QAAQ,EAAE,gBAAgB;IAoC9C,qBAAqB;IAoD5B,OAAO,CAAC,wBAAwB;IA2BhC,OAAO,CAAC,8BAA8B;IAiDtC,OAAO,CAAC,6BAA6B;CAuDrC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TreeFilter } from '@contember/client';
|
|
2
|
+
import type { TreeStore } from './TreeStore';
|
|
3
|
+
export declare class TreeFilterGenerator {
|
|
4
|
+
private readonly treeStore;
|
|
5
|
+
constructor(treeStore: TreeStore);
|
|
6
|
+
generateTreeFilter(): TreeFilter[];
|
|
7
|
+
private generateSubTreeFilter;
|
|
8
|
+
private generateTopLevelEntityFilter;
|
|
9
|
+
private generateEntityRelations;
|
|
10
|
+
private normalizeRawRelationFilters;
|
|
11
|
+
private populateRawRelationFilters;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=TreeFilterGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeFilterGenerator.d.ts","sourceRoot":"","sources":["../../../src/core/TreeFilterGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAYnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAI5C,qBAAa,mBAAmB;IACZ,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEjD,kBAAkB,IAAI,UAAU,EAAE;IAezC,OAAO,CAAC,qBAAqB;IA2B7B,OAAO,CAAC,4BAA4B;IAYpC,OAAO,CAAC,uBAAuB;IAK/B,OAAO,CAAC,2BAA2B;IAOnC,OAAO,CAAC,0BAA0B;CA8BlC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { EntityCreationParameters, EntityEventListenerStore, EntityListEventListenerStore, HasManyRelation, HasOneRelation, ParentEntityParameters, QualifiedEntityList, QualifiedSingleEntity, SetOnCreate, UnconstrainedQualifiedEntityList, UnconstrainedQualifiedSingleEntity } from '../treeParameters';
|
|
2
|
+
export declare class TreeParameterMerger {
|
|
3
|
+
static mergeHasOneRelationsWithSamePlaceholders(original: HasOneRelation, fresh: HasOneRelation): HasOneRelation;
|
|
4
|
+
static mergeHasManyRelationsWithSamePlaceholders(original: HasManyRelation, fresh: HasManyRelation): HasManyRelation;
|
|
5
|
+
static mergeEntitySubTreeParametersWithSamePlaceholders(original: QualifiedSingleEntity | UnconstrainedQualifiedSingleEntity, fresh: QualifiedSingleEntity | UnconstrainedQualifiedSingleEntity): QualifiedSingleEntity | UnconstrainedQualifiedSingleEntity;
|
|
6
|
+
static mergeEntityListSubTreeParametersWithSamePlaceholders(original: QualifiedEntityList | UnconstrainedQualifiedEntityList, fresh: QualifiedEntityList | UnconstrainedQualifiedEntityList): QualifiedEntityList | UnconstrainedQualifiedEntityList;
|
|
7
|
+
static mergeEntityCreationParameters(original: EntityCreationParameters, fresh: EntityCreationParameters): EntityCreationParameters;
|
|
8
|
+
static mergeSetOnCreate(original: SetOnCreate, fresh: SetOnCreate): SetOnCreate;
|
|
9
|
+
private static mergeSets;
|
|
10
|
+
static mergeParentEntityParameters(original: ParentEntityParameters | undefined, fresh: ParentEntityParameters | undefined): ParentEntityParameters | undefined;
|
|
11
|
+
static mergeInParentEntity<Original extends Record<Key, EntityEventListenerStore | undefined>, Key extends keyof Original>(original: Original, key: Key, parentEntity: ParentEntityParameters | undefined): Original;
|
|
12
|
+
static mergeSingleEntityEventListeners(original: EntityEventListenerStore | undefined, fresh: EntityEventListenerStore | undefined): EntityEventListenerStore | undefined;
|
|
13
|
+
static mergeEntityListEventListeners(original: EntityListEventListenerStore | undefined, fresh: EntityListEventListenerStore | undefined): EntityListEventListenerStore | undefined;
|
|
14
|
+
static cloneSingleEntityEventListeners(store: EntityEventListenerStore): EntityEventListenerStore;
|
|
15
|
+
static cloneEntityListEventListeners(store: EntityListEventListenerStore): EntityListEventListenerStore;
|
|
16
|
+
private static mergeExpectedRelationMutation;
|
|
17
|
+
private static mergeExpectedQualifiedEntityMutation;
|
|
18
|
+
private static mergeSubTreeAliases;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=TreeParameterMerger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeParameterMerger.d.ts","sourceRoot":"","sources":["../../../src/core/TreeParameterMerger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEX,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAG5B,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,WAAW,EACX,gCAAgC,EAChC,kCAAkC,EAElC,MAAM,mBAAmB,CAAA;AAE1B,qBAAa,mBAAmB;WACjB,wCAAwC,CACrD,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,cAAc,GACnB,cAAc;WAgBH,yCAAyC,CACtD,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,eAAe,GACpB,eAAe;WA6BJ,gDAAgD,CAC7D,QAAQ,EAAE,qBAAqB,GAAG,kCAAkC,EACpE,KAAK,EAAE,qBAAqB,GAAG,kCAAkC,GAC/D,qBAAqB,GAAG,kCAAkC;WAmC/C,oDAAoD,CACjE,QAAQ,EAAE,mBAAmB,GAAG,gCAAgC,EAChE,KAAK,EAAE,mBAAmB,GAAG,gCAAgC,GAC3D,mBAAmB,GAAG,gCAAgC;WAsD3C,6BAA6B,CAC1C,QAAQ,EAAE,wBAAwB,EAClC,KAAK,EAAE,wBAAwB,GAC7B,wBAAwB;WAQb,gBAAgB,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,GAAG,WAAW;IA2DtF,OAAO,CAAC,MAAM,CAAC,SAAS;WAQV,2BAA2B,CACxC,QAAQ,EAAE,sBAAsB,GAAG,SAAS,EAC5C,KAAK,EAAE,sBAAsB,GAAG,SAAS,GACvC,sBAAsB,GAAG,SAAS;WAkBvB,mBAAmB,CAChC,QAAQ,SAAS,MAAM,CAAC,GAAG,EAAE,wBAAwB,GAAG,SAAS,CAAC,EAClE,GAAG,SAAS,MAAM,QAAQ,EACzB,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,YAAY,EAAE,sBAAsB,GAAG,SAAS,GAAG,QAAQ;WAW7E,+BAA+B,CAC5C,QAAQ,EAAE,wBAAwB,GAAG,SAAS,EAC9C,KAAK,EAAE,wBAAwB,GAAG,SAAS,GACzC,wBAAwB,GAAG,SAAS;WAiBzB,6BAA6B,CAC1C,QAAQ,EAAE,4BAA4B,GAAG,SAAS,EAClD,KAAK,EAAE,4BAA4B,GAAG,SAAS,GAC7C,4BAA4B,GAAG,SAAS;WAiB7B,+BAA+B,CAAC,KAAK,EAAE,wBAAwB,GAAG,wBAAwB;WAK1F,6BAA6B,CAAC,KAAK,EAAE,4BAA4B,GAAG,4BAA4B;IAI9G,OAAO,CAAC,MAAM,CAAC,6BAA6B;IAgB5C,OAAO,CAAC,MAAM,CAAC,oCAAoC;IAgBnD,OAAO,CAAC,MAAM,CAAC,mBAAmB;CAYlC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NormalizedPersistedData, PersistedEntityDataStore, ReceivedDataTree, SubTreeDataStore } from '../accessorTree';
|
|
2
|
+
import type { Environment } from '../dao';
|
|
3
|
+
import { MarkerTreeRoot } from '../markers';
|
|
4
|
+
import type { Alias, EntityId, EntityRealmKey, FieldName, PlaceholderName, SugaredQualifiedEntityList, SugaredQualifiedSingleEntity, SugaredUnconstrainedQualifiedEntityList, SugaredUnconstrainedQualifiedSingleEntity, TreeRootId } from '../treeParameters';
|
|
5
|
+
import type { Schema } from './schema';
|
|
6
|
+
import type { EntityListState, EntityRealmState, EntityRealmStateStub, EntityState, RootStateNode } from './state';
|
|
7
|
+
export declare class TreeStore {
|
|
8
|
+
readonly entityStore: Map<EntityId, EntityState>;
|
|
9
|
+
readonly entityRealmStore: Map<EntityRealmKey, EntityRealmState | EntityRealmStateStub>;
|
|
10
|
+
readonly markerTrees: Map<TreeRootId | undefined, MarkerTreeRoot>;
|
|
11
|
+
readonly subTreeStatesByRoot: Map<TreeRootId | undefined, Map<PlaceholderName, RootStateNode>>;
|
|
12
|
+
private _schema;
|
|
13
|
+
readonly persistedData: NormalizedPersistedData;
|
|
14
|
+
constructor();
|
|
15
|
+
mergeInQueryResponse(response: ReceivedDataTree): void;
|
|
16
|
+
mergeInMutationResponse(response: ReceivedDataTree): void;
|
|
17
|
+
setSchema(newSchema: Schema): void;
|
|
18
|
+
get persistedEntityData(): PersistedEntityDataStore;
|
|
19
|
+
get subTreePersistedData(): SubTreeDataStore;
|
|
20
|
+
get schema(): Schema;
|
|
21
|
+
getPathBackToParent(entityRealm: EntityRealmState | EntityRealmStateStub): {
|
|
22
|
+
fieldBackToParent: FieldName;
|
|
23
|
+
parent: EntityRealmState;
|
|
24
|
+
} | undefined;
|
|
25
|
+
getSubTreeState(mode: 'entity', treeRootId: TreeRootId | undefined, aliasOrParameters: Alias | SugaredQualifiedSingleEntity | SugaredUnconstrainedQualifiedSingleEntity, environment: Environment): EntityRealmState;
|
|
26
|
+
getSubTreeState(mode: 'entityList', treeRootId: TreeRootId | undefined, aliasOrParameters: Alias | SugaredQualifiedEntityList | SugaredUnconstrainedQualifiedEntityList, environment: Environment): EntityListState;
|
|
27
|
+
getEntityListPersistedIds(state: EntityListState): ReadonlySet<string>;
|
|
28
|
+
disposeOfRealm(realmToDisposeOf: EntityRealmState | EntityRealmStateStub): void;
|
|
29
|
+
disposeOfEntity(entity: EntityState): void;
|
|
30
|
+
effectivelyHasTreeRoot(candidateRoot: MarkerTreeRoot): boolean;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=TreeStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeStore.d.ts","sourceRoot":"","sources":["../../../src/core/TreeStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,cAAc,EAAwB,MAAM,YAAY,CAAA;AAEjE,OAAO,KAAK,EACX,KAAK,EACL,QAAQ,EAER,cAAc,EACd,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,4BAA4B,EAC5B,uCAAuC,EACvC,yCAAyC,EACzC,UAAU,EACV,MAAM,mBAAmB,CAAA;AAI1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAIlH,qBAAa,SAAS;IACrB,SAAgB,WAAW,EAAE,GAAG,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAY;IACnE,SAAgB,gBAAgB,EAAE,GAAG,CAAC,cAAc,EAAE,gBAAgB,GAAG,oBAAoB,CAAC,CAAY;IAI1G,SAAgB,WAAW,EAAE,GAAG,CAAC,UAAU,GAAG,SAAS,EAAE,cAAc,CAAC,CAAY;IACpF,SAAgB,mBAAmB,EAAE,GAAG,CAAC,UAAU,GAAG,SAAS,EAAE,GAAG,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC,CAAY;IAEjH,OAAO,CAAC,OAAO,CAAoB;IACnC,SAAgB,aAAa,EAAE,uBAAuB,CAAoD;;IAInG,oBAAoB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAItD,uBAAuB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAIzD,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAOzC,IAAW,mBAAmB,IAAI,wBAAwB,CAEzD;IAED,IAAW,oBAAoB,IAAI,gBAAgB,CAElD;IAED,IAAW,MAAM,IAAI,MAAM,CAK1B;IAEM,mBAAmB,CAAC,WAAW,EAAE,gBAAgB,GAAG,oBAAoB,GAC5E;QACA,iBAAiB,EAAE,SAAS,CAAA;QAC5B,MAAM,EAAE,gBAAgB,CAAA;KACvB,GACD,SAAS;IA2CL,eAAe,CACrB,IAAI,EAAE,QAAQ,EACd,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,iBAAiB,EAAE,KAAK,GAAG,4BAA4B,GAAG,yCAAyC,EACnG,WAAW,EAAE,WAAW,GACtB,gBAAgB;IACZ,eAAe,CACrB,IAAI,EAAE,YAAY,EAClB,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,iBAAiB,EAAE,KAAK,GAAG,0BAA0B,GAAG,uCAAuC,EAC/F,WAAW,EAAE,WAAW,GACtB,eAAe;IA8DX,yBAAyB,CAAC,KAAK,EAAE,eAAe,GAAG,WAAW,CAAC,MAAM,CAAC;IAWtE,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,oBAAoB;IA+BxE,eAAe,CAAC,MAAM,EAAE,WAAW;IAQnC,sBAAsB,CAAC,aAAa,EAAE,cAAc,GAAG,OAAO;CAkBrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateMetadata.d.ts","sourceRoot":"","sources":["../../../src/core/UpdateMetadata.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,UAAU,EAAE,OAAO,CAAA;CACnB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Environment, VariableFieldValue } from '../dao';
|
|
2
|
+
import type { FieldValue, OptionallyVariableFieldValue, Scalar } from '../treeParameters';
|
|
3
|
+
export declare class VariableInputTransformer {
|
|
4
|
+
static transformValue(value: OptionallyVariableFieldValue, environment: Environment): FieldValue;
|
|
5
|
+
static transformVariableFieldValue(variableFieldValue: VariableFieldValue, environment: Environment): Scalar;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=VariableInputTransformer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariableInputTransformer.d.ts","sourceRoot":"","sources":["../../../src/core/VariableInputTransformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAEzF,qBAAa,wBAAwB;WACtB,cAAc,CAAC,KAAK,EAAE,4BAA4B,EAAE,WAAW,EAAE,WAAW,GAAG,UAAU;WAOzF,2BAA2B,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,WAAW,GAAG,MAAM;CAUnH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StateNode } from '../state';
|
|
2
|
+
import type { RawMarkerPath } from './RawMarkerPath';
|
|
3
|
+
export declare class ErrorLocator {
|
|
4
|
+
private static readonly GLUE;
|
|
5
|
+
static locateMarkerPath(path: RawMarkerPath): string;
|
|
6
|
+
static locateInternalState(state: StateNode): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ErrorLocator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorLocator.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/ErrorLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAGpD,qBAAa,YAAY;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAM;WAEpB,gBAAgB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM;WAI7C,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM;CA4C3D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BindingError } from '../../BindingError';
|
|
2
|
+
import type { EntityListSubTreeMarker, EntitySubTreeMarker, HasManyRelationMarker, HasOneRelationMarker } from '../../markers';
|
|
3
|
+
import type { RawMarkerPath } from './RawMarkerPath';
|
|
4
|
+
export declare class LocalizedBindingError extends BindingError {
|
|
5
|
+
readonly markerPath: RawMarkerPath;
|
|
6
|
+
constructor(message: string, markerPath: RawMarkerPath);
|
|
7
|
+
nestedIn(wrapper: EntitySubTreeMarker | EntityListSubTreeMarker | HasOneRelationMarker | HasManyRelationMarker): LocalizedBindingError;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=LocalizedBindingError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalizedBindingError.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/LocalizedBindingError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,KAAK,EACX,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEpD,qBAAa,qBAAsB,SAAQ,YAAY;aACF,UAAU,EAAE,aAAa;gBAA1D,OAAO,EAAE,MAAM,EAAkB,UAAU,EAAE,aAAa;IAItE,QAAQ,CACd,OAAO,EAAE,mBAAmB,GAAG,uBAAuB,GAAG,oBAAoB,GAAG,qBAAqB,GACnG,qBAAqB;CAGxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EntityListSubTreeMarker, EntitySubTreeMarker, FieldMarker, HasManyRelationMarker, HasOneRelationMarker, MeaningfulMarker } from '../../markers';
|
|
2
|
+
export declare class MarkerSugarer {
|
|
3
|
+
static sugarMarker(marker: MeaningfulMarker): string;
|
|
4
|
+
static sugarFieldMarker(field: FieldMarker): string;
|
|
5
|
+
static sugarHasOneRelationMarker(hasOne: HasOneRelationMarker): string;
|
|
6
|
+
static sugarHasManyRelationMarker(hasMany: HasManyRelationMarker): string;
|
|
7
|
+
static sugarEntitySubTreeMarker(subTree: EntitySubTreeMarker): string;
|
|
8
|
+
static sugarEntityListSubTreeMarker(subTree: EntityListSubTreeMarker): string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=MarkerSugarer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkerSugarer.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/MarkerSugarer.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,MAAM,eAAe,CAAA;AAItB,qBAAa,aAAa;WACX,WAAW,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM;WAmB7C,gBAAgB,CAAC,KAAK,EAAE,WAAW;WAInC,yBAAyB,CAAC,MAAM,EAAE,oBAAoB;WAQtD,0BAA0B,CAAC,OAAO,EAAE,qBAAqB;WAIzD,wBAAwB,CAAC,OAAO,EAAE,mBAAmB;WAOrD,4BAA4B,CAAC,OAAO,EAAE,uBAAuB;CAM3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RawMarkerPath.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/RawMarkerPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,oBAAY,aAAa,GAAG,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EntityName, FieldName, Filter, UniqueWhere } from '../../treeParameters';
|
|
2
|
+
export declare class TreeParameterSugarer {
|
|
3
|
+
static sugarField(fieldName: FieldName): string;
|
|
4
|
+
static sugarHasOneRelation(fieldName: FieldName, reducedBy: UniqueWhere | undefined, filter: Filter | undefined): string;
|
|
5
|
+
static sugarHasManyRelation(fieldName: FieldName, filter: Filter | undefined): string;
|
|
6
|
+
static sugarRootEntity(entityName: EntityName, where: UniqueWhere | undefined): string;
|
|
7
|
+
static sugarRootEntityList(entityName: EntityName, filter: Filter | undefined): string;
|
|
8
|
+
static sugarUniqueWhere(where: UniqueWhere | undefined): string;
|
|
9
|
+
static sugarFilter(filter: Filter | undefined): string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=TreeParameterSugarer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeParameterSugarer.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/TreeParameterSugarer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEtF,qBAAa,oBAAoB;WAClB,UAAU,CAAC,SAAS,EAAE,SAAS;WAI/B,mBAAmB,CAChC,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,WAAW,GAAG,SAAS,EAClC,MAAM,EAAE,MAAM,GAAG,SAAS;WAKb,oBAAoB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS;WAIrE,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,GAAG,SAAS;WAItE,mBAAmB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS;WAItE,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM;WAOxD,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;CAM7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BatchUpdatesOptions } from '../../accessors';
|
|
2
|
+
import type { Environment } from '../../dao';
|
|
3
|
+
import type { TreeStore } from '../TreeStore';
|
|
4
|
+
export declare const createBatchUpdatesOptions: (rootEnvironment: Environment, treeStore: TreeStore) => BatchUpdatesOptions;
|
|
5
|
+
//# sourceMappingURL=createBatchUpdatesOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBatchUpdatesOptions.d.ts","sourceRoot":"","sources":["../../../../src/core/factories/createBatchUpdatesOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAsC,MAAM,iBAAiB,CAAA;AAE9F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAS5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,eAAO,MAAM,yBAAyB,oBAAqB,WAAW,aAAa,SAAS,KAAG,mBAwB5F,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { BatchUpdatesOptions, EntityAccessor, ErrorAccessor } from '../../accessors';
|
|
2
|
+
import type { FieldName } from '../../treeParameters';
|
|
3
|
+
import type { AccessorErrorManager } from '../AccessorErrorManager';
|
|
4
|
+
import type { EventManager } from '../EventManager';
|
|
5
|
+
import { EntityRealmState } from '../state';
|
|
6
|
+
import type { StateInitializer } from '../StateInitializer';
|
|
7
|
+
import type { TreeStore } from '../TreeStore';
|
|
8
|
+
export declare class EntityOperations {
|
|
9
|
+
private readonly accessorErrorManager;
|
|
10
|
+
private readonly batchUpdatesOptions;
|
|
11
|
+
private readonly eventManager;
|
|
12
|
+
private readonly stateInitializer;
|
|
13
|
+
private readonly treeStore;
|
|
14
|
+
constructor(accessorErrorManager: AccessorErrorManager, batchUpdatesOptions: BatchUpdatesOptions, eventManager: EventManager, stateInitializer: StateInitializer, treeStore: TreeStore);
|
|
15
|
+
addError(entityRealm: EntityRealmState, error: ErrorAccessor.Error): () => void;
|
|
16
|
+
addEventListener<Type extends keyof EntityAccessor.RuntimeEntityEventListenerMap>(state: EntityRealmState, event: {
|
|
17
|
+
type: Type;
|
|
18
|
+
key?: string;
|
|
19
|
+
}, listener: EntityAccessor.EntityEventListenerMap[Type]): () => void;
|
|
20
|
+
batchUpdates(state: EntityRealmState, performUpdates: EntityAccessor.BatchUpdatesHandler): void;
|
|
21
|
+
connectEntityAtField(outerState: EntityRealmState, fieldName: FieldName, entityToConnect: EntityAccessor): void;
|
|
22
|
+
disconnectEntityAtField(outerState: EntityRealmState, fieldName: FieldName, initializeReplacement: EntityAccessor.BatchUpdatesHandler | undefined): void;
|
|
23
|
+
deleteEntity(realm: EntityRealmState): void;
|
|
24
|
+
private resolveHasOneRelationMarkers;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=EntityOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityOperations.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/EntityOperations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAIzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAGnD,OAAO,EAAmB,gBAAgB,EAAwD,MAAM,UAAU,CAAA;AAClH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI7C,qBAAa,gBAAgB;IAE3B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAJT,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,mBAAmB,EACxC,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS;IAG/B,QAAQ,CAAC,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,GAAG,MAAM,IAAI;IAI/E,gBAAgB,CAAC,IAAI,SAAS,MAAM,cAAc,CAAC,6BAA6B,EACtF,KAAK,EAAE,gBAAgB,EACvB,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EACnC,QAAQ,EAAE,cAAc,CAAC,sBAAsB,CAAC,IAAI,CAAC;IAQ/C,YAAY,CAAC,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,CAAC,mBAAmB;IAMxF,oBAAoB,CAAC,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc;IAqHxG,uBAAuB,CAC7B,UAAU,EAAE,gBAAgB,EAC5B,SAAS,EAAE,SAAS,EACpB,qBAAqB,EAAE,cAAc,CAAC,mBAAmB,GAAG,SAAS;IA6D/D,YAAY,CAAC,KAAK,EAAE,gBAAgB;IA6D3C,OAAO,CAAE,4BAA4B;CAqBrC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ErrorAccessor, FieldAccessor } from '../../accessors';
|
|
2
|
+
import type { FieldValue } from '../../treeParameters';
|
|
3
|
+
import type { AccessorErrorManager } from '../AccessorErrorManager';
|
|
4
|
+
import { EventManager } from '../EventManager';
|
|
5
|
+
import { FieldState } from '../state';
|
|
6
|
+
import type { StateInitializer } from '../StateInitializer';
|
|
7
|
+
import type { TreeStore } from '../TreeStore';
|
|
8
|
+
export declare class FieldOperations {
|
|
9
|
+
private readonly accessorErrorManager;
|
|
10
|
+
private readonly eventManager;
|
|
11
|
+
private readonly stateInitializer;
|
|
12
|
+
private readonly treeStore;
|
|
13
|
+
constructor(accessorErrorManager: AccessorErrorManager, eventManager: EventManager, stateInitializer: StateInitializer, treeStore: TreeStore);
|
|
14
|
+
addError(fieldState: FieldState<any>, error: ErrorAccessor.Error): () => void;
|
|
15
|
+
clearErrors(fieldState: FieldState<any>): void;
|
|
16
|
+
addEventListener<Type extends keyof FieldAccessor.FieldEventListenerMap, Value extends FieldValue = FieldValue>(state: FieldState<Value>, event: {
|
|
17
|
+
type: Type;
|
|
18
|
+
key?: string;
|
|
19
|
+
}, listener: FieldAccessor.FieldEventListenerMap<Value>[Type]): () => void;
|
|
20
|
+
updateValue<Value extends FieldValue = FieldValue>(fieldState: FieldState<Value>, newValue: Value | null, { agent }?: FieldAccessor.UpdateOptions): void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=FieldOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldOperations.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/FieldOperations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAI9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAkC,MAAM,UAAU,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI7C,qBAAa,eAAe;IAE1B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAHT,oBAAoB,EAAE,oBAAoB,EAC1C,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS;IAG/B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,GAAG,MAAM,IAAI;IAI7E,WAAW,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI;IAI9C,gBAAgB,CACtB,IAAI,SAAS,MAAM,aAAa,CAAC,qBAAqB,EACtD,KAAK,SAAS,UAAU,GAAG,UAAU,EAErC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,EACxB,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EACnC,QAAQ,EAAE,aAAa,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GACxD,MAAM,IAAI;IAON,WAAW,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EACvD,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,EAC7B,QAAQ,EAAE,KAAK,GAAG,IAAI,EACtB,EAAE,KAA+B,EAAE,GAAE,aAAa,CAAC,aAAkB;CA+EtE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { BatchUpdatesOptions, EntityAccessor, EntityListAccessor, ErrorAccessor } from '../../accessors';
|
|
2
|
+
import { RuntimeId } from '../../accessorTree';
|
|
3
|
+
import type { AccessorErrorManager } from '../AccessorErrorManager';
|
|
4
|
+
import { EventManager } from '../EventManager';
|
|
5
|
+
import { EntityListState } from '../state';
|
|
6
|
+
import type { StateInitializer } from '../StateInitializer';
|
|
7
|
+
import type { TreeStore } from '../TreeStore';
|
|
8
|
+
export declare class ListOperations {
|
|
9
|
+
private readonly accessorErrorManager;
|
|
10
|
+
private readonly batchUpdatesOptions;
|
|
11
|
+
private readonly eventManager;
|
|
12
|
+
private readonly stateInitializer;
|
|
13
|
+
private readonly treeStore;
|
|
14
|
+
constructor(accessorErrorManager: AccessorErrorManager, batchUpdatesOptions: BatchUpdatesOptions, eventManager: EventManager, stateInitializer: StateInitializer, treeStore: TreeStore);
|
|
15
|
+
addError(listState: EntityListState, error: ErrorAccessor.Error): () => void;
|
|
16
|
+
addEventListener<Type extends keyof EntityListAccessor.RuntimeEntityListEventListenerMap>(state: EntityListState, event: {
|
|
17
|
+
type: Type;
|
|
18
|
+
key?: string;
|
|
19
|
+
}, listener: EntityListAccessor.RuntimeEntityListEventListenerMap[Type]): () => void;
|
|
20
|
+
addChildEventListener<Type extends keyof EntityAccessor.EntityEventListenerMap>(state: EntityListState, event: {
|
|
21
|
+
type: Type;
|
|
22
|
+
key?: string;
|
|
23
|
+
}, listener: EntityAccessor.EntityEventListenerMap[Type]): () => void;
|
|
24
|
+
batchUpdates(state: EntityListState, performUpdates: EntityListAccessor.BatchUpdatesHandler): void;
|
|
25
|
+
connectEntity(outerState: EntityListState, entityToConnect: EntityAccessor): void;
|
|
26
|
+
disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {
|
|
27
|
+
noPersist?: boolean;
|
|
28
|
+
}): void;
|
|
29
|
+
createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId;
|
|
30
|
+
getChildEntityById(state: EntityListState, id: string): EntityAccessor;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=ListOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListOperations.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/ListOperations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC7G,OAAO,EAAE,SAAS,EAA4B,MAAM,oBAAoB,CAAA;AAExE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAI9C,OAAO,EAAE,eAAe,EAAkC,MAAM,UAAU,CAAA;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI7C,qBAAa,cAAc;IAEzB,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAJT,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,mBAAmB,EACxC,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS;IAG/B,QAAQ,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,GAAG,MAAM,IAAI;IAI5E,gBAAgB,CAAC,IAAI,SAAS,MAAM,kBAAkB,CAAC,iCAAiC,EAC9F,KAAK,EAAE,eAAe,EACtB,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EACnC,QAAQ,EAAE,kBAAkB,CAAC,iCAAiC,CAAC,IAAI,CAAC;IAQ9D,qBAAqB,CAAC,IAAI,SAAS,MAAM,cAAc,CAAC,sBAAsB,EACpF,KAAK,EAAE,eAAe,EACtB,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EACnC,QAAQ,EAAE,cAAc,CAAC,sBAAsB,CAAC,IAAI,CAAC;IAQ/C,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,CAAC,mBAAmB;IAM3F,aAAa,CAAC,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc;IAgE1E,gBAAgB,CAAC,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAC;IA6CxG,eAAe,CAAC,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,CAAC,mBAAmB,GAAG,SAAS,GAAG,SAAS;IAsBnH,kBAAkB,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM;CAmB5D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { EntityAccessor } from '../../accessors';
|
|
2
|
+
import type { RuntimeId } from '../../accessorTree';
|
|
3
|
+
import { EventManager } from '../EventManager';
|
|
4
|
+
import type { EntityRealmState, EntityRealmStateStub, EntityState } from '../state';
|
|
5
|
+
import type { StateInitializer } from '../StateInitializer';
|
|
6
|
+
import type { TreeStore } from '../TreeStore';
|
|
7
|
+
export declare class OperationsHelpers {
|
|
8
|
+
static rejectInvalidAccessorTree(): never;
|
|
9
|
+
static resolveAndPrepareEntityToConnect(treeStore: TreeStore, entityToConnect: EntityAccessor): EntityRealmState | EntityRealmStateStub;
|
|
10
|
+
static changeEntityId(treeStore: TreeStore, eventManager: EventManager, stateInitializer: StateInitializer, entity: EntityState, newId: RuntimeId): void;
|
|
11
|
+
static changeRealmId(treeStore: TreeStore, eventManager: EventManager, stateInitializer: StateInitializer, realm: EntityRealmState | EntityRealmStateStub, newId: RuntimeId): void;
|
|
12
|
+
static purgeStaleListenersAfterIdChange(realm: EntityRealmState): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=OperationsHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationsHelpers.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/OperationsHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAGnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,qBAAa,iBAAiB;WACf,yBAAyB,IAAI,KAAK;WAMlC,gCAAgC,CAC7C,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,cAAc,GAC7B,gBAAgB,GAAG,oBAAoB;WA2B5B,cAAc,CAC3B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,SAAS;WAoBH,aAAa,CAC1B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,KAAK,EAAE,gBAAgB,GAAG,oBAAoB,EAC9C,KAAK,EAAE,SAAS;WAoDH,gCAAgC,CAAC,KAAK,EAAE,gBAAgB;CAoBtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeId } from '../../accessorTree';
|
|
2
|
+
import type { TopLevelMutationOperation } from './TopLevelMutationOperation';
|
|
3
|
+
export declare class MutationAlias {
|
|
4
|
+
static encodeTopLevel(operation: TopLevelMutationOperation): string;
|
|
5
|
+
static decodeTopLevel(alias: string): TopLevelMutationOperation | undefined;
|
|
6
|
+
static encodeEntityId(entityId: RuntimeId): string;
|
|
7
|
+
static decodeEntityId(alias: string): RuntimeId['value'];
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=MutationAlias.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MutationAlias.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/MutationAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAKnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAa5E,qBAAa,aAAa;WACX,cAAc,CAAC,SAAS,EAAE,yBAAyB,GAAG,MAAM;WAiB5D,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS;WAsBpE,cAAc,CAAC,QAAQ,EAAE,SAAS,GAAG,MAAM;WAI3C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC;CAG/D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EntityId, PlaceholderName, TreeRootId } from '../../treeParameters';
|
|
2
|
+
import type { mutationOperationSubTreeType } from './mutationOperationSubTreeType';
|
|
3
|
+
import type { mutationOperationType } from './mutationOperationType';
|
|
4
|
+
export interface TopLevelMutationOperation {
|
|
5
|
+
treeRootId: TreeRootId | undefined;
|
|
6
|
+
subTreePlaceholder: PlaceholderName;
|
|
7
|
+
type: typeof mutationOperationType[keyof typeof mutationOperationType];
|
|
8
|
+
subTreeType: typeof mutationOperationSubTreeType[keyof typeof mutationOperationSubTreeType];
|
|
9
|
+
entityId: EntityId;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=TopLevelMutationOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopLevelMutationOperation.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/TopLevelMutationOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAEpE,MAAM,WAAW,yBAAyB;IACzC,UAAU,EAAE,UAAU,GAAG,SAAS,CAAA;IAClC,kBAAkB,EAAE,eAAe,CAAA;IACnC,IAAI,EAAE,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAA;IACtE,WAAW,EAAE,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAA;IAC3F,QAAQ,EAAE,QAAQ,CAAA;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gCAAgC,CAAA;AAC9C,cAAc,yBAAyB,CAAA;AACvC,cAAc,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationOperationSubTreeType.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/mutationOperationSubTreeType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;;CAG/B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationOperationType.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/mutationOperationType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAA"}
|