@contember/binding-legacy 2.1.0-alpha.30 → 2.1.0-alpha.36
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/package.json +10 -5
- package/src/accessorTree/NormalizedPersistedData.ts +1 -1
- package/src/accessors/EntityAccessorImpl.ts +13 -11
- package/src/accessors/EntityListAccessorImpl.ts +16 -7
- package/src/core/AccessorErrorManager.ts +2 -2
- package/src/core/DataBinding.ts +24 -15
- package/src/core/ErrorsPreprocessor.ts +4 -5
- package/src/core/EventManager.ts +34 -46
- package/src/core/MutationGenerator.ts +23 -27
- package/src/core/QueryGenerator.ts +4 -5
- package/src/core/RealmKeyGenerator.ts +5 -3
- package/src/core/RequestResponseNormalizer.ts +3 -8
- package/src/core/StateInitializer.ts +10 -18
- package/src/core/TreeAugmenter.ts +8 -15
- package/src/core/TreeStore.ts +5 -4
- package/src/core/operations/EntityOperations.ts +25 -25
- package/src/core/operations/FieldOperations.ts +15 -17
- package/src/core/operations/ListOperations.ts +15 -15
- package/src/core/operations/OperationsHelpers.ts +2 -2
- package/src/core/state/EntityListState.ts +3 -9
- package/src/fieldHelpers/helpers/TemporalFieldHelper.ts +3 -3
- package/src/utils/assertNever.ts +4 -4
- package/tests/example.test.ts +2 -2
- package/dist/development/index.cjs +0 -34
- package/dist/development/index.cjs.map +0 -1
- package/dist/development/index.js +0 -28
- package/dist/development/index.js.map +0 -1
- package/dist/development/src/accessorTree/NormalizedPersistedData.cjs +0 -10
- package/dist/development/src/accessorTree/NormalizedPersistedData.cjs.map +0 -1
- package/dist/development/src/accessorTree/NormalizedPersistedData.js +0 -10
- package/dist/development/src/accessorTree/NormalizedPersistedData.js.map +0 -1
- package/dist/development/src/accessors/EntityAccessorImpl.cjs +0 -179
- package/dist/development/src/accessors/EntityAccessorImpl.cjs.map +0 -1
- package/dist/development/src/accessors/EntityAccessorImpl.js +0 -179
- package/dist/development/src/accessors/EntityAccessorImpl.js.map +0 -1
- package/dist/development/src/accessors/EntityListAccessorImpl.cjs +0 -112
- package/dist/development/src/accessors/EntityListAccessorImpl.cjs.map +0 -1
- package/dist/development/src/accessors/EntityListAccessorImpl.js +0 -112
- package/dist/development/src/accessors/EntityListAccessorImpl.js.map +0 -1
- package/dist/development/src/accessors/FieldAccessorImpl.cjs +0 -54
- package/dist/development/src/accessors/FieldAccessorImpl.cjs.map +0 -1
- package/dist/development/src/accessors/FieldAccessorImpl.js +0 -54
- package/dist/development/src/accessors/FieldAccessorImpl.js.map +0 -1
- package/dist/development/src/core/AccessorErrorManager.cjs +0 -200
- package/dist/development/src/core/AccessorErrorManager.cjs.map +0 -1
- package/dist/development/src/core/AccessorErrorManager.js +0 -200
- package/dist/development/src/core/AccessorErrorManager.js.map +0 -1
- package/dist/development/src/core/Config.cjs +0 -29
- package/dist/development/src/core/Config.cjs.map +0 -1
- package/dist/development/src/core/Config.js +0 -29
- package/dist/development/src/core/Config.js.map +0 -1
- package/dist/development/src/core/DataBinding.cjs +0 -354
- package/dist/development/src/core/DataBinding.cjs.map +0 -1
- package/dist/development/src/core/DataBinding.js +0 -354
- package/dist/development/src/core/DataBinding.js.map +0 -1
- package/dist/development/src/core/DirtinessTracker.cjs +0 -26
- package/dist/development/src/core/DirtinessTracker.cjs.map +0 -1
- package/dist/development/src/core/DirtinessTracker.js +0 -26
- package/dist/development/src/core/DirtinessTracker.js.map +0 -1
- package/dist/development/src/core/ErrorsPreprocessor.cjs +0 -180
- package/dist/development/src/core/ErrorsPreprocessor.cjs.map +0 -1
- package/dist/development/src/core/ErrorsPreprocessor.js +0 -180
- package/dist/development/src/core/ErrorsPreprocessor.js.map +0 -1
- package/dist/development/src/core/EventManager.cjs +0 -439
- package/dist/development/src/core/EventManager.cjs.map +0 -1
- package/dist/development/src/core/EventManager.js +0 -439
- package/dist/development/src/core/EventManager.js.map +0 -1
- package/dist/development/src/core/MutationGenerator.cjs +0 -670
- package/dist/development/src/core/MutationGenerator.cjs.map +0 -1
- package/dist/development/src/core/MutationGenerator.js +0 -670
- package/dist/development/src/core/MutationGenerator.js.map +0 -1
- package/dist/development/src/core/QueryGenerator.cjs +0 -110
- package/dist/development/src/core/QueryGenerator.cjs.map +0 -1
- package/dist/development/src/core/QueryGenerator.js +0 -110
- package/dist/development/src/core/QueryGenerator.js.map +0 -1
- package/dist/development/src/core/RealmKeyGenerator.cjs +0 -42
- package/dist/development/src/core/RealmKeyGenerator.cjs.map +0 -1
- package/dist/development/src/core/RealmKeyGenerator.js +0 -42
- package/dist/development/src/core/RealmKeyGenerator.js.map +0 -1
- package/dist/development/src/core/RequestResponseNormalizer.cjs +0 -136
- package/dist/development/src/core/RequestResponseNormalizer.cjs.map +0 -1
- package/dist/development/src/core/RequestResponseNormalizer.js +0 -136
- package/dist/development/src/core/RequestResponseNormalizer.js.map +0 -1
- package/dist/development/src/core/StateInitializer.cjs +0 -379
- package/dist/development/src/core/StateInitializer.cjs.map +0 -1
- package/dist/development/src/core/StateInitializer.js +0 -379
- package/dist/development/src/core/StateInitializer.js.map +0 -1
- package/dist/development/src/core/TreeAugmenter.cjs +0 -354
- package/dist/development/src/core/TreeAugmenter.cjs.map +0 -1
- package/dist/development/src/core/TreeAugmenter.js +0 -354
- package/dist/development/src/core/TreeAugmenter.js.map +0 -1
- package/dist/development/src/core/TreeStore.cjs +0 -172
- package/dist/development/src/core/TreeStore.cjs.map +0 -1
- package/dist/development/src/core/TreeStore.js +0 -172
- package/dist/development/src/core/TreeStore.js.map +0 -1
- package/dist/development/src/core/exceptions/ErrorLocator.cjs +0 -59
- package/dist/development/src/core/exceptions/ErrorLocator.cjs.map +0 -1
- package/dist/development/src/core/exceptions/ErrorLocator.js +0 -59
- package/dist/development/src/core/exceptions/ErrorLocator.js.map +0 -1
- package/dist/development/src/core/exceptions/MarkerSugarer.cjs +0 -51
- package/dist/development/src/core/exceptions/MarkerSugarer.cjs.map +0 -1
- package/dist/development/src/core/exceptions/MarkerSugarer.js +0 -51
- package/dist/development/src/core/exceptions/MarkerSugarer.js.map +0 -1
- package/dist/development/src/core/exceptions/TreeParameterSugarer.cjs +0 -33
- package/dist/development/src/core/exceptions/TreeParameterSugarer.cjs.map +0 -1
- package/dist/development/src/core/exceptions/TreeParameterSugarer.js +0 -33
- package/dist/development/src/core/exceptions/TreeParameterSugarer.js.map +0 -1
- package/dist/development/src/core/factories/createBatchUpdatesOptions.cjs +0 -23
- package/dist/development/src/core/factories/createBatchUpdatesOptions.cjs.map +0 -1
- package/dist/development/src/core/factories/createBatchUpdatesOptions.js +0 -23
- package/dist/development/src/core/factories/createBatchUpdatesOptions.js.map +0 -1
- package/dist/development/src/core/operations/EntityOperations.cjs +0 -226
- package/dist/development/src/core/operations/EntityOperations.cjs.map +0 -1
- package/dist/development/src/core/operations/EntityOperations.js +0 -226
- package/dist/development/src/core/operations/EntityOperations.js.map +0 -1
- package/dist/development/src/core/operations/FieldOperations.cjs +0 -92
- package/dist/development/src/core/operations/FieldOperations.cjs.map +0 -1
- package/dist/development/src/core/operations/FieldOperations.js +0 -92
- package/dist/development/src/core/operations/FieldOperations.js.map +0 -1
- package/dist/development/src/core/operations/ListOperations.cjs +0 -158
- package/dist/development/src/core/operations/ListOperations.cjs.map +0 -1
- package/dist/development/src/core/operations/ListOperations.js +0 -158
- package/dist/development/src/core/operations/ListOperations.js.map +0 -1
- package/dist/development/src/core/operations/OperationsHelpers.cjs +0 -87
- package/dist/development/src/core/operations/OperationsHelpers.cjs.map +0 -1
- package/dist/development/src/core/operations/OperationsHelpers.js +0 -87
- package/dist/development/src/core/operations/OperationsHelpers.js.map +0 -1
- package/dist/development/src/core/requestAliases/MutationAlias.cjs +0 -14
- package/dist/development/src/core/requestAliases/MutationAlias.cjs.map +0 -1
- package/dist/development/src/core/requestAliases/MutationAlias.js +0 -14
- package/dist/development/src/core/requestAliases/MutationAlias.js.map +0 -1
- package/dist/development/src/core/state/StateIterator.cjs +0 -100
- package/dist/development/src/core/state/StateIterator.cjs.map +0 -1
- package/dist/development/src/core/state/StateIterator.js +0 -100
- package/dist/development/src/core/state/StateIterator.js.map +0 -1
- package/dist/development/src/core/state/getEntityMarker.cjs +0 -5
- package/dist/development/src/core/state/getEntityMarker.cjs.map +0 -1
- package/dist/development/src/core/state/getEntityMarker.js +0 -5
- package/dist/development/src/core/state/getEntityMarker.js.map +0 -1
- package/dist/development/src/core/utils/getCombinedSignal.cjs +0 -33
- package/dist/development/src/core/utils/getCombinedSignal.cjs.map +0 -1
- package/dist/development/src/core/utils/getCombinedSignal.js +0 -33
- package/dist/development/src/core/utils/getCombinedSignal.js.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.cjs +0 -13
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.cjs.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.js +0 -13
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.js.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.cjs +0 -18
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.js +0 -18
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.js.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.cjs +0 -16
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.cjs.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.js +0 -16
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.js.map +0 -1
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.cjs +0 -7
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.cjs.map +0 -1
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.js +0 -7
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.js.map +0 -1
- package/dist/development/src/utils/isEmptyObject.cjs +0 -12
- package/dist/development/src/utils/isEmptyObject.cjs.map +0 -1
- package/dist/development/src/utils/isEmptyObject.js +0 -12
- package/dist/development/src/utils/isEmptyObject.js.map +0 -1
- package/dist/production/index.cjs +0 -34
- package/dist/production/index.cjs.map +0 -1
- package/dist/production/index.js +0 -28
- package/dist/production/index.js.map +0 -1
- package/dist/production/src/accessorTree/NormalizedPersistedData.cjs +0 -10
- package/dist/production/src/accessorTree/NormalizedPersistedData.cjs.map +0 -1
- package/dist/production/src/accessorTree/NormalizedPersistedData.js +0 -10
- package/dist/production/src/accessorTree/NormalizedPersistedData.js.map +0 -1
- package/dist/production/src/accessors/EntityAccessorImpl.cjs +0 -179
- package/dist/production/src/accessors/EntityAccessorImpl.cjs.map +0 -1
- package/dist/production/src/accessors/EntityAccessorImpl.js +0 -179
- package/dist/production/src/accessors/EntityAccessorImpl.js.map +0 -1
- package/dist/production/src/accessors/EntityListAccessorImpl.cjs +0 -112
- package/dist/production/src/accessors/EntityListAccessorImpl.cjs.map +0 -1
- package/dist/production/src/accessors/EntityListAccessorImpl.js +0 -112
- package/dist/production/src/accessors/EntityListAccessorImpl.js.map +0 -1
- package/dist/production/src/accessors/FieldAccessorImpl.cjs +0 -54
- package/dist/production/src/accessors/FieldAccessorImpl.cjs.map +0 -1
- package/dist/production/src/accessors/FieldAccessorImpl.js +0 -54
- package/dist/production/src/accessors/FieldAccessorImpl.js.map +0 -1
- package/dist/production/src/core/AccessorErrorManager.cjs +0 -200
- package/dist/production/src/core/AccessorErrorManager.cjs.map +0 -1
- package/dist/production/src/core/AccessorErrorManager.js +0 -200
- package/dist/production/src/core/AccessorErrorManager.js.map +0 -1
- package/dist/production/src/core/Config.cjs +0 -29
- package/dist/production/src/core/Config.cjs.map +0 -1
- package/dist/production/src/core/Config.js +0 -29
- package/dist/production/src/core/Config.js.map +0 -1
- package/dist/production/src/core/DataBinding.cjs +0 -354
- package/dist/production/src/core/DataBinding.cjs.map +0 -1
- package/dist/production/src/core/DataBinding.js +0 -354
- package/dist/production/src/core/DataBinding.js.map +0 -1
- package/dist/production/src/core/DirtinessTracker.cjs +0 -26
- package/dist/production/src/core/DirtinessTracker.cjs.map +0 -1
- package/dist/production/src/core/DirtinessTracker.js +0 -26
- package/dist/production/src/core/DirtinessTracker.js.map +0 -1
- package/dist/production/src/core/ErrorsPreprocessor.cjs +0 -180
- package/dist/production/src/core/ErrorsPreprocessor.cjs.map +0 -1
- package/dist/production/src/core/ErrorsPreprocessor.js +0 -180
- package/dist/production/src/core/ErrorsPreprocessor.js.map +0 -1
- package/dist/production/src/core/EventManager.cjs +0 -413
- package/dist/production/src/core/EventManager.cjs.map +0 -1
- package/dist/production/src/core/EventManager.js +0 -413
- package/dist/production/src/core/EventManager.js.map +0 -1
- package/dist/production/src/core/MutationGenerator.cjs +0 -670
- package/dist/production/src/core/MutationGenerator.cjs.map +0 -1
- package/dist/production/src/core/MutationGenerator.js +0 -670
- package/dist/production/src/core/MutationGenerator.js.map +0 -1
- package/dist/production/src/core/QueryGenerator.cjs +0 -110
- package/dist/production/src/core/QueryGenerator.cjs.map +0 -1
- package/dist/production/src/core/QueryGenerator.js +0 -110
- package/dist/production/src/core/QueryGenerator.js.map +0 -1
- package/dist/production/src/core/RealmKeyGenerator.cjs +0 -42
- package/dist/production/src/core/RealmKeyGenerator.cjs.map +0 -1
- package/dist/production/src/core/RealmKeyGenerator.js +0 -42
- package/dist/production/src/core/RealmKeyGenerator.js.map +0 -1
- package/dist/production/src/core/RequestResponseNormalizer.cjs +0 -136
- package/dist/production/src/core/RequestResponseNormalizer.cjs.map +0 -1
- package/dist/production/src/core/RequestResponseNormalizer.js +0 -136
- package/dist/production/src/core/RequestResponseNormalizer.js.map +0 -1
- package/dist/production/src/core/StateInitializer.cjs +0 -379
- package/dist/production/src/core/StateInitializer.cjs.map +0 -1
- package/dist/production/src/core/StateInitializer.js +0 -379
- package/dist/production/src/core/StateInitializer.js.map +0 -1
- package/dist/production/src/core/TreeAugmenter.cjs +0 -354
- package/dist/production/src/core/TreeAugmenter.cjs.map +0 -1
- package/dist/production/src/core/TreeAugmenter.js +0 -354
- package/dist/production/src/core/TreeAugmenter.js.map +0 -1
- package/dist/production/src/core/TreeStore.cjs +0 -172
- package/dist/production/src/core/TreeStore.cjs.map +0 -1
- package/dist/production/src/core/TreeStore.js +0 -172
- package/dist/production/src/core/TreeStore.js.map +0 -1
- package/dist/production/src/core/exceptions/ErrorLocator.cjs +0 -59
- package/dist/production/src/core/exceptions/ErrorLocator.cjs.map +0 -1
- package/dist/production/src/core/exceptions/ErrorLocator.js +0 -59
- package/dist/production/src/core/exceptions/ErrorLocator.js.map +0 -1
- package/dist/production/src/core/exceptions/MarkerSugarer.cjs +0 -51
- package/dist/production/src/core/exceptions/MarkerSugarer.cjs.map +0 -1
- package/dist/production/src/core/exceptions/MarkerSugarer.js +0 -51
- package/dist/production/src/core/exceptions/MarkerSugarer.js.map +0 -1
- package/dist/production/src/core/exceptions/TreeParameterSugarer.cjs +0 -33
- package/dist/production/src/core/exceptions/TreeParameterSugarer.cjs.map +0 -1
- package/dist/production/src/core/exceptions/TreeParameterSugarer.js +0 -33
- package/dist/production/src/core/exceptions/TreeParameterSugarer.js.map +0 -1
- package/dist/production/src/core/factories/createBatchUpdatesOptions.cjs +0 -23
- package/dist/production/src/core/factories/createBatchUpdatesOptions.cjs.map +0 -1
- package/dist/production/src/core/factories/createBatchUpdatesOptions.js +0 -23
- package/dist/production/src/core/factories/createBatchUpdatesOptions.js.map +0 -1
- package/dist/production/src/core/operations/EntityOperations.cjs +0 -226
- package/dist/production/src/core/operations/EntityOperations.cjs.map +0 -1
- package/dist/production/src/core/operations/EntityOperations.js +0 -226
- package/dist/production/src/core/operations/EntityOperations.js.map +0 -1
- package/dist/production/src/core/operations/FieldOperations.cjs +0 -73
- package/dist/production/src/core/operations/FieldOperations.cjs.map +0 -1
- package/dist/production/src/core/operations/FieldOperations.js +0 -73
- package/dist/production/src/core/operations/FieldOperations.js.map +0 -1
- package/dist/production/src/core/operations/ListOperations.cjs +0 -158
- package/dist/production/src/core/operations/ListOperations.cjs.map +0 -1
- package/dist/production/src/core/operations/ListOperations.js +0 -158
- package/dist/production/src/core/operations/ListOperations.js.map +0 -1
- package/dist/production/src/core/operations/OperationsHelpers.cjs +0 -87
- package/dist/production/src/core/operations/OperationsHelpers.cjs.map +0 -1
- package/dist/production/src/core/operations/OperationsHelpers.js +0 -87
- package/dist/production/src/core/operations/OperationsHelpers.js.map +0 -1
- package/dist/production/src/core/requestAliases/MutationAlias.cjs +0 -14
- package/dist/production/src/core/requestAliases/MutationAlias.cjs.map +0 -1
- package/dist/production/src/core/requestAliases/MutationAlias.js +0 -14
- package/dist/production/src/core/requestAliases/MutationAlias.js.map +0 -1
- package/dist/production/src/core/state/StateIterator.cjs +0 -100
- package/dist/production/src/core/state/StateIterator.cjs.map +0 -1
- package/dist/production/src/core/state/StateIterator.js +0 -100
- package/dist/production/src/core/state/StateIterator.js.map +0 -1
- package/dist/production/src/core/state/getEntityMarker.cjs +0 -5
- package/dist/production/src/core/state/getEntityMarker.cjs.map +0 -1
- package/dist/production/src/core/state/getEntityMarker.js +0 -5
- package/dist/production/src/core/state/getEntityMarker.js.map +0 -1
- package/dist/production/src/core/utils/getCombinedSignal.cjs +0 -33
- package/dist/production/src/core/utils/getCombinedSignal.cjs.map +0 -1
- package/dist/production/src/core/utils/getCombinedSignal.js +0 -33
- package/dist/production/src/core/utils/getCombinedSignal.js.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.cjs +0 -13
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.cjs.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.js +0 -13
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.js.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.cjs +0 -18
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.js +0 -18
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.js.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.cjs +0 -16
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.cjs.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.js +0 -16
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.js.map +0 -1
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.cjs +0 -7
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.cjs.map +0 -1
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.js +0 -7
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.js.map +0 -1
- package/dist/production/src/utils/isEmptyObject.cjs +0 -12
- package/dist/production/src/utils/isEmptyObject.cjs.map +0 -1
- package/dist/production/src/utils/isEmptyObject.js +0 -12
- package/dist/production/src/utils/isEmptyObject.js.map +0 -1
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts +0 -18
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts.map +0 -1
- package/dist/types/accessorTree/index.d.ts +0 -2
- package/dist/types/accessorTree/index.d.ts.map +0 -1
- package/dist/types/accessors/BindingConfig.d.ts +0 -6
- package/dist/types/accessors/BindingConfig.d.ts.map +0 -1
- package/dist/types/accessors/EntityAccessorImpl.d.ts +0 -56
- package/dist/types/accessors/EntityAccessorImpl.d.ts.map +0 -1
- package/dist/types/accessors/EntityListAccessorImpl.d.ts +0 -57
- package/dist/types/accessors/EntityListAccessorImpl.d.ts.map +0 -1
- package/dist/types/accessors/FieldAccessorImpl.d.ts +0 -32
- package/dist/types/accessors/FieldAccessorImpl.d.ts.map +0 -1
- package/dist/types/accessors/index.d.ts +0 -5
- package/dist/types/accessors/index.d.ts.map +0 -1
- package/dist/types/core/AccessorErrorManager.d.ts +0 -25
- package/dist/types/core/AccessorErrorManager.d.ts.map +0 -1
- package/dist/types/core/Config.d.ts +0 -9
- package/dist/types/core/Config.d.ts.map +0 -1
- package/dist/types/core/DataBinding.d.ts +0 -54
- package/dist/types/core/DataBinding.d.ts.map +0 -1
- package/dist/types/core/DirtinessTracker.d.ts +0 -9
- package/dist/types/core/DirtinessTracker.d.ts.map +0 -1
- package/dist/types/core/ErrorsPreprocessor.d.ts +0 -34
- package/dist/types/core/ErrorsPreprocessor.d.ts.map +0 -1
- package/dist/types/core/EventManager.d.ts +0 -57
- package/dist/types/core/EventManager.d.ts.map +0 -1
- package/dist/types/core/MutationGenerator.d.ts +0 -49
- package/dist/types/core/MutationGenerator.d.ts.map +0 -1
- package/dist/types/core/QueryGenerator.d.ts +0 -13
- package/dist/types/core/QueryGenerator.d.ts.map +0 -1
- package/dist/types/core/RealmKeyGenerator.d.ts +0 -10
- package/dist/types/core/RealmKeyGenerator.d.ts.map +0 -1
- package/dist/types/core/RequestResponseNormalizer.d.ts +0 -11
- package/dist/types/core/RequestResponseNormalizer.d.ts.map +0 -1
- package/dist/types/core/StateInitializer.d.ts +0 -34
- package/dist/types/core/StateInitializer.d.ts.map +0 -1
- package/dist/types/core/TreeAugmenter.d.ts +0 -25
- package/dist/types/core/TreeAugmenter.d.ts.map +0 -1
- package/dist/types/core/TreeStore.d.ts +0 -30
- package/dist/types/core/TreeStore.d.ts.map +0 -1
- package/dist/types/core/UpdateMetadata.d.ts +0 -4
- package/dist/types/core/UpdateMetadata.d.ts.map +0 -1
- package/dist/types/core/exceptions/ErrorLocator.d.ts +0 -8
- package/dist/types/core/exceptions/ErrorLocator.d.ts.map +0 -1
- package/dist/types/core/exceptions/MarkerSugarer.d.ts +0 -10
- package/dist/types/core/exceptions/MarkerSugarer.d.ts.map +0 -1
- package/dist/types/core/exceptions/TreeParameterSugarer.d.ts +0 -11
- package/dist/types/core/exceptions/TreeParameterSugarer.d.ts.map +0 -1
- package/dist/types/core/factories/createBatchUpdatesOptions.d.ts +0 -5
- package/dist/types/core/factories/createBatchUpdatesOptions.d.ts.map +0 -1
- package/dist/types/core/factories/index.d.ts +0 -2
- package/dist/types/core/factories/index.d.ts.map +0 -1
- package/dist/types/core/index.d.ts +0 -9
- package/dist/types/core/index.d.ts.map +0 -1
- package/dist/types/core/operations/EntityOperations.d.ts +0 -26
- package/dist/types/core/operations/EntityOperations.d.ts.map +0 -1
- package/dist/types/core/operations/FieldOperations.d.ts +0 -22
- package/dist/types/core/operations/FieldOperations.d.ts.map +0 -1
- package/dist/types/core/operations/ListOperations.d.ts +0 -32
- package/dist/types/core/operations/ListOperations.d.ts.map +0 -1
- package/dist/types/core/operations/OperationsHelpers.d.ts +0 -14
- package/dist/types/core/operations/OperationsHelpers.d.ts.map +0 -1
- package/dist/types/core/operations/index.d.ts +0 -4
- package/dist/types/core/operations/index.d.ts.map +0 -1
- package/dist/types/core/requestAliases/MutationAlias.d.ts +0 -6
- package/dist/types/core/requestAliases/MutationAlias.d.ts.map +0 -1
- package/dist/types/core/requestAliases/index.d.ts +0 -2
- package/dist/types/core/requestAliases/index.d.ts.map +0 -1
- package/dist/types/core/state/EntityListState.d.ts +0 -29
- package/dist/types/core/state/EntityListState.d.ts.map +0 -1
- package/dist/types/core/state/EntityRealmState.d.ts +0 -44
- package/dist/types/core/state/EntityRealmState.d.ts.map +0 -1
- package/dist/types/core/state/EntityState.d.ts +0 -11
- package/dist/types/core/state/EntityState.d.ts.map +0 -1
- package/dist/types/core/state/FieldState.d.ts +0 -19
- package/dist/types/core/state/FieldState.d.ts.map +0 -1
- package/dist/types/core/state/StateIterator.d.ts +0 -14
- package/dist/types/core/state/StateIterator.d.ts.map +0 -1
- package/dist/types/core/state/StateNode.d.ts +0 -8
- package/dist/types/core/state/StateNode.d.ts.map +0 -1
- package/dist/types/core/state/getEntityMarker.d.ts +0 -3
- package/dist/types/core/state/getEntityMarker.d.ts.map +0 -1
- package/dist/types/core/state/index.d.ts +0 -8
- package/dist/types/core/state/index.d.ts.map +0 -1
- package/dist/types/core/utils/getCombinedSignal.d.ts +0 -2
- package/dist/types/core/utils/getCombinedSignal.d.ts.map +0 -1
- package/dist/types/core/utils/index.d.ts +0 -2
- package/dist/types/core/utils/index.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts +0 -7
- package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts +0 -10
- package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts +0 -10
- package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/index.d.ts +0 -3
- package/dist/types/fieldHelpers/helpers/index.d.ts.map +0 -1
- package/dist/types/fieldHelpers/index.d.ts +0 -2
- package/dist/types/fieldHelpers/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tsconfig.tsbuildinfo +0 -1
- package/dist/types/utils/assertNever.d.ts +0 -2
- package/dist/types/utils/assertNever.d.ts.map +0 -1
- package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts +0 -2
- package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -4
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/isEmptyObject.d.ts +0 -2
- package/dist/types/utils/isEmptyObject.d.ts.map +0 -1
|
@@ -3,7 +3,8 @@ import {
|
|
|
3
3
|
EntityFieldMarkers,
|
|
4
4
|
EntityListSubTreeMarker,
|
|
5
5
|
EntitySubTreeMarker,
|
|
6
|
-
FieldMarker,
|
|
6
|
+
FieldMarker,
|
|
7
|
+
FieldMeta,
|
|
7
8
|
HasManyRelationMarker,
|
|
8
9
|
HasOneRelationMarker,
|
|
9
10
|
MarkerTreeRoot,
|
|
@@ -11,7 +12,6 @@ import {
|
|
|
11
12
|
} from '@contember/binding-common'
|
|
12
13
|
import { ContentEntitySelection, ContentQuery, ContentQueryBuilder } from '@contember/client'
|
|
13
14
|
|
|
14
|
-
|
|
15
15
|
export class QueryGenerator {
|
|
16
16
|
constructor(
|
|
17
17
|
private tree: MarkerTreeRoot,
|
|
@@ -44,7 +44,7 @@ export class QueryGenerator {
|
|
|
44
44
|
by: subTree.parameters.where,
|
|
45
45
|
filter: subTree.parameters.filter,
|
|
46
46
|
},
|
|
47
|
-
it =>
|
|
47
|
+
it => QueryGenerator.registerQueryPart(subTree.fields.markers, it),
|
|
48
48
|
)
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -60,7 +60,7 @@ export class QueryGenerator {
|
|
|
60
60
|
offset: subTree.parameters.offset,
|
|
61
61
|
limit: subTree.parameters.limit,
|
|
62
62
|
},
|
|
63
|
-
it =>
|
|
63
|
+
it => QueryGenerator.registerQueryPart(subTree.fields.markers, it),
|
|
64
64
|
)
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -100,7 +100,6 @@ export class QueryGenerator {
|
|
|
100
100
|
} else if (fieldValue instanceof HasManyRelationMarker) {
|
|
101
101
|
const relation = fieldValue.parameters
|
|
102
102
|
|
|
103
|
-
|
|
104
103
|
selection = selection.$(
|
|
105
104
|
relation.field,
|
|
106
105
|
{
|
|
@@ -24,9 +24,11 @@ export class RealmKeyGenerator {
|
|
|
24
24
|
container: EntityFieldMarkersContainer,
|
|
25
25
|
): EntityRealmKey {
|
|
26
26
|
// The static prefix serves to really emphasize that this is *NOT* just a uuid
|
|
27
|
-
return `key${GLUE}${
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
return `key${GLUE}${
|
|
28
|
+
this.parentStateIdCache.getOptionalKeyId(
|
|
29
|
+
parent,
|
|
30
|
+
)
|
|
31
|
+
}${GLUE}${placeholderName}${id}${GLUE}${this.markerIdCache.getId(container)}`
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
public static getRealmKey(id: RuntimeId, blueprint: EntityRealmBlueprint): EntityRealmKey {
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ReceivedDataTree,
|
|
3
|
-
ReceivedEntityData,
|
|
4
|
-
ServerId,
|
|
5
|
-
} from '@contember/binding-common'
|
|
1
|
+
import { ReceivedDataTree, ReceivedEntityData, ServerId } from '@contember/binding-common'
|
|
6
2
|
import { BindingError } from '@contember/binding-common'
|
|
7
3
|
import { PRIMARY_KEY_NAME } from '@contember/binding-common'
|
|
8
4
|
import { EntityId } from '@contember/binding-common'
|
|
@@ -60,7 +56,6 @@ export class RequestResponseNormalizer {
|
|
|
60
56
|
newPersistedData: ReceivedDataTree,
|
|
61
57
|
operations: SubMutationOperation[],
|
|
62
58
|
): void {
|
|
63
|
-
|
|
64
59
|
const { subTreeDataStore, persistedEntityDataStore } = original
|
|
65
60
|
|
|
66
61
|
for (const operation of operations) {
|
|
@@ -85,7 +80,7 @@ export class RequestResponseNormalizer {
|
|
|
85
80
|
|
|
86
81
|
if (list instanceof Set) {
|
|
87
82
|
// TODO this is somewhat dubious because we're essentially just guessing the order of the entities
|
|
88
|
-
//
|
|
83
|
+
// and just carelessly put the new one at the end.
|
|
89
84
|
list.add(id.value)
|
|
90
85
|
} else if (list === undefined) {
|
|
91
86
|
// That's fine. This is probably just an isCreating sub-tree.
|
|
@@ -99,7 +94,7 @@ export class RequestResponseNormalizer {
|
|
|
99
94
|
} else if (operation.type === 'delete') {
|
|
100
95
|
const id = this.extractId(receivedData)
|
|
101
96
|
// TODO there are potentially some references to entityId that this whole process won't quite remove.
|
|
102
|
-
//
|
|
97
|
+
// That's a memory leak. Probably not particularly severe in most cases but still.
|
|
103
98
|
persistedEntityDataStore.delete(id.uniqueValue)
|
|
104
99
|
if (subTreeType === 'single') {
|
|
105
100
|
subTreeDataStore.delete(subTreePlaceholder)
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { BatchUpdatesOptions, EntityAccessor, FieldAccessor } from '@contember/binding-common'
|
|
2
|
-
import {
|
|
2
|
+
import { RuntimeId, ServerId, UnpersistedEntityDummyId } from '@contember/binding-common'
|
|
3
3
|
import { BindingError } from '@contember/binding-common'
|
|
4
|
-
import {
|
|
5
|
-
EntityListSubTreeMarker,
|
|
6
|
-
EntitySubTreeMarker,
|
|
7
|
-
FieldMarker,
|
|
8
|
-
HasManyRelationMarker,
|
|
9
|
-
HasOneRelationMarker,
|
|
10
|
-
} from '@contember/binding-common'
|
|
4
|
+
import { EntityListSubTreeMarker, EntitySubTreeMarker, FieldMarker, HasManyRelationMarker, HasOneRelationMarker } from '@contember/binding-common'
|
|
11
5
|
import { BijectiveIndexedMap } from '@contember/utilities'
|
|
12
6
|
import type {
|
|
13
7
|
EntityEventListenerStore,
|
|
@@ -137,7 +131,7 @@ export class StateInitializer {
|
|
|
137
131
|
this.initializeFromHasManyRelationMarker(realm, field, new Set(value.children.keys()))
|
|
138
132
|
} else if (field instanceof HasOneRelationMarker) {
|
|
139
133
|
let runtimeId: RuntimeId
|
|
140
|
-
let subCopyFrom: EntityRealmState | undefined
|
|
134
|
+
let subCopyFrom: EntityRealmState | undefined
|
|
141
135
|
if (pathBack?.fieldBackToParent === field.parameters.field && !field.parameters.reducedBy) {
|
|
142
136
|
runtimeId = pathBack.parent.entity.id
|
|
143
137
|
} else {
|
|
@@ -190,7 +184,6 @@ export class StateInitializer {
|
|
|
190
184
|
entity.id,
|
|
191
185
|
entityRealm.realmKey,
|
|
192
186
|
entity.entityName,
|
|
193
|
-
|
|
194
187
|
// We're technically exposing more info in runtime than we'd like but that way we don't have to allocate and
|
|
195
188
|
// keep in sync two copies of the same data. TS hides the extra info anyway.
|
|
196
189
|
entityRealm.children,
|
|
@@ -332,10 +325,9 @@ export class StateInitializer {
|
|
|
332
325
|
},
|
|
333
326
|
}
|
|
334
327
|
|
|
335
|
-
const initialData: Iterable<EntityId | undefined> =
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
: initialEntityIds
|
|
328
|
+
const initialData: Iterable<EntityId | undefined> = initialEntityIds.size === 0
|
|
329
|
+
? Array.from({ length: blueprint.marker.parameters.initialEntityCount })
|
|
330
|
+
: initialEntityIds
|
|
339
331
|
for (const entityId of initialData) {
|
|
340
332
|
this.initializeEntityRealm(
|
|
341
333
|
entityId ? new ServerId(entityId, entityName) : new UnpersistedEntityDummyId(),
|
|
@@ -408,14 +400,14 @@ export class StateInitializer {
|
|
|
408
400
|
) {
|
|
409
401
|
if (persistedValue instanceof Set) {
|
|
410
402
|
throw new BindingError(
|
|
411
|
-
`Received a collection of referenced entities where a single '${field.fieldName}' field was expected. `
|
|
412
|
-
`Perhaps you wanted to use a <Repeater />?`,
|
|
403
|
+
`Received a collection of referenced entities where a single '${field.fieldName}' field was expected. `
|
|
404
|
+
+ `Perhaps you wanted to use a <Repeater />?`,
|
|
413
405
|
)
|
|
414
406
|
}
|
|
415
407
|
if (persistedValue instanceof ServerId) {
|
|
416
408
|
throw new BindingError(
|
|
417
|
-
`Received a referenced entity where a single '${field.fieldName}' field was expected. `
|
|
418
|
-
`Perhaps you wanted to use <HasOne />?`,
|
|
409
|
+
`Received a referenced entity where a single '${field.fieldName}' field was expected. `
|
|
410
|
+
+ `Perhaps you wanted to use <HasOne />?`,
|
|
419
411
|
)
|
|
420
412
|
}
|
|
421
413
|
parent.children.set(
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ClientGeneratedUuid,
|
|
3
|
-
HasOneRelationMarker,
|
|
4
|
-
ReceivedDataTree,
|
|
5
|
-
RuntimeId,
|
|
6
|
-
ServerId,
|
|
7
|
-
UnpersistedEntityDummyId,
|
|
8
|
-
} from '@contember/binding-common'
|
|
1
|
+
import { ClientGeneratedUuid, HasOneRelationMarker, ReceivedDataTree, RuntimeId, ServerId, UnpersistedEntityDummyId } from '@contember/binding-common'
|
|
9
2
|
import { BindingError } from '@contember/binding-common'
|
|
10
3
|
import type { MarkerTreeRoot } from '@contember/binding-common'
|
|
11
4
|
import type { EntityId, PlaceholderName, TreeRootId } from '@contember/binding-common'
|
|
@@ -142,7 +135,7 @@ export class TreeAugmenter {
|
|
|
142
135
|
newId: ServerId | undefined | null,
|
|
143
136
|
) {
|
|
144
137
|
const currentId = realm.entity.id
|
|
145
|
-
let idToChangeTo: RuntimeId | undefined
|
|
138
|
+
let idToChangeTo: RuntimeId | undefined
|
|
146
139
|
|
|
147
140
|
if (currentId instanceof ServerId) {
|
|
148
141
|
if (newId === undefined || newId === null) {
|
|
@@ -227,14 +220,14 @@ export class TreeAugmenter {
|
|
|
227
220
|
if (
|
|
228
221
|
// It's a uuid but it's not among the persisted so either it got deleted/disconnected or the client-side
|
|
229
222
|
// id generation didn't quite pan out.
|
|
230
|
-
childRuntimeId instanceof ServerId
|
|
231
|
-
childRuntimeId instanceof ClientGeneratedUuid
|
|
223
|
+
childRuntimeId instanceof ServerId
|
|
224
|
+
|| childRuntimeId instanceof ClientGeneratedUuid
|
|
232
225
|
// No persisted entity id to allocate to this so that's a goodbye.
|
|
233
|
-
persistedWithoutState.size === 0
|
|
226
|
+
|| persistedWithoutState.size === 0
|
|
234
227
|
// not a persisted entity
|
|
235
|
-
child.type === 'entityRealmStub'
|
|
228
|
+
|| child.type === 'entityRealmStub'
|
|
236
229
|
// We couldn't find a matching persisted entity
|
|
237
|
-
!this.tryAssignIdToMatching(child, persistedWithoutState)
|
|
230
|
+
|| !this.tryAssignIdToMatching(child, persistedWithoutState)
|
|
238
231
|
) {
|
|
239
232
|
state.getAccessor().disconnectEntity(child.getAccessor())
|
|
240
233
|
continue
|
|
@@ -330,7 +323,7 @@ export class TreeAugmenter {
|
|
|
330
323
|
if (childData !== undefined && !(childData instanceof Set)) {
|
|
331
324
|
throw new BindingError()
|
|
332
325
|
}
|
|
333
|
-
if (!childData){
|
|
326
|
+
if (!childData) {
|
|
334
327
|
break
|
|
335
328
|
}
|
|
336
329
|
if (childData?.size !== child.children.size) {
|
package/src/core/TreeStore.ts
CHANGED
|
@@ -63,8 +63,9 @@ export class TreeStore {
|
|
|
63
63
|
| {
|
|
64
64
|
fieldBackToParent: FieldName
|
|
65
65
|
parent: EntityRealmState
|
|
66
|
-
|
|
67
|
-
| undefined
|
|
66
|
+
}
|
|
67
|
+
| undefined
|
|
68
|
+
{
|
|
68
69
|
const blueprint = entityRealm.blueprint
|
|
69
70
|
if (blueprint.parent === undefined) {
|
|
70
71
|
return undefined
|
|
@@ -153,7 +154,7 @@ export class TreeStore {
|
|
|
153
154
|
? QueryLanguage.desugarUnconstrainedQualifiedEntityList(
|
|
154
155
|
aliasOrParameters as SugaredUnconstrainedQualifiedEntityList,
|
|
155
156
|
environment,
|
|
156
|
-
|
|
157
|
+
)
|
|
157
158
|
: QueryLanguage.desugarQualifiedEntityList(aliasOrParameters as SugaredQualifiedEntityList, environment),
|
|
158
159
|
environment,
|
|
159
160
|
)
|
|
@@ -163,7 +164,7 @@ export class TreeStore {
|
|
|
163
164
|
? QueryLanguage.desugarUnconstrainedQualifiedSingleEntity(
|
|
164
165
|
aliasOrParameters as SugaredUnconstrainedQualifiedSingleEntity,
|
|
165
166
|
environment,
|
|
166
|
-
|
|
167
|
+
)
|
|
167
168
|
: QueryLanguage.desugarQualifiedSingleEntity(aliasOrParameters as SugaredQualifiedSingleEntity, environment),
|
|
168
169
|
environment,
|
|
169
170
|
)
|
|
@@ -56,14 +56,14 @@ export class EntityOperations {
|
|
|
56
56
|
|
|
57
57
|
if (fieldSchema === undefined) {
|
|
58
58
|
throw new BindingError(
|
|
59
|
-
`EntityAccessor.connectEntityAtField: Unknown field ${entityName}.${fieldName}.\n\n`
|
|
60
|
-
`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,
|
|
59
|
+
`EntityAccessor.connectEntityAtField: Unknown field ${entityName}.${fieldName}.\n\n`
|
|
60
|
+
+ `Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,
|
|
61
61
|
)
|
|
62
62
|
} else if (fieldSchema.__typename === '_Column') {
|
|
63
63
|
throw new BindingError(
|
|
64
|
-
`EntityAccessor.connectEntityAtField: Cannot connect at field ${entityName}.${fieldName} because `
|
|
65
|
-
`it's not a has-one relation.\n\n`
|
|
66
|
-
`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,
|
|
64
|
+
`EntityAccessor.connectEntityAtField: Cannot connect at field ${entityName}.${fieldName} because `
|
|
65
|
+
+ `it's not a has-one relation.\n\n`
|
|
66
|
+
+ `Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,
|
|
67
67
|
)
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -73,19 +73,19 @@ export class EntityOperations {
|
|
|
73
73
|
const previouslyConnectedState = state.children.get(targetHasOneMarker.placeholderName)
|
|
74
74
|
|
|
75
75
|
if (
|
|
76
|
-
previouslyConnectedState === undefined
|
|
77
|
-
previouslyConnectedState.type === 'field'
|
|
78
|
-
previouslyConnectedState.type === 'entityList'
|
|
76
|
+
previouslyConnectedState === undefined
|
|
77
|
+
|| previouslyConnectedState.type === 'field'
|
|
78
|
+
|| previouslyConnectedState.type === 'entityList'
|
|
79
79
|
) {
|
|
80
80
|
OperationsHelpers.rejectInvalidAccessorTree()
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
if (previouslyConnectedState.entity.entityName !== stateToConnect.entity.entityName) {
|
|
84
84
|
throw new BindingError(
|
|
85
|
-
`EntityAccessor.connectEntityAtField: Attempting to connect at field ${entityName}.${fieldName} `
|
|
86
|
-
`an entity of type '${stateToConnect.entity.entityName}' but `
|
|
87
|
-
`'${previouslyConnectedState.entity.entityName}' is expected.\n\n`
|
|
88
|
-
`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,
|
|
85
|
+
`EntityAccessor.connectEntityAtField: Attempting to connect at field ${entityName}.${fieldName} `
|
|
86
|
+
+ `an entity of type '${stateToConnect.entity.entityName}' but `
|
|
87
|
+
+ `'${previouslyConnectedState.entity.entityName}' is expected.\n\n`
|
|
88
|
+
+ `Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,
|
|
89
89
|
)
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -94,21 +94,21 @@ export class EntityOperations {
|
|
|
94
94
|
} catch (error) {
|
|
95
95
|
if (error instanceof LocalizedBindingError) {
|
|
96
96
|
throw new BindingError(
|
|
97
|
-
`EntityAccessor: cannot connect entity with key '${entityToConnect.key}' because its fields are`
|
|
98
|
-
`incompatible with entities found at field '${fieldName}'. Make sure both trees are equivalent.\n\n`
|
|
99
|
-
`${error.message}\n\n`
|
|
100
|
-
(error.markerPath.length > 1
|
|
97
|
+
`EntityAccessor: cannot connect entity with key '${entityToConnect.key}' because its fields are`
|
|
98
|
+
+ `incompatible with entities found at field '${fieldName}'. Make sure both trees are equivalent.\n\n`
|
|
99
|
+
+ `${error.message}\n\n`
|
|
100
|
+
+ (error.markerPath.length > 1
|
|
101
101
|
? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\n\n`
|
|
102
|
-
: '')
|
|
103
|
-
`Entity located at: ${ErrorLocator.locateInternalState(state)}.`,
|
|
102
|
+
: '')
|
|
103
|
+
+ `Entity located at: ${ErrorLocator.locateInternalState(state)}.`,
|
|
104
104
|
)
|
|
105
105
|
}
|
|
106
106
|
throw error
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
if (
|
|
110
|
-
previouslyConnectedState === stateToConnect
|
|
111
|
-
previouslyConnectedState.entity.id.value === stateToConnect.entity.id.value
|
|
110
|
+
previouslyConnectedState === stateToConnect
|
|
111
|
+
|| previouslyConnectedState.entity.id.value === stateToConnect.entity.id.value
|
|
112
112
|
) {
|
|
113
113
|
continue // Do nothing.
|
|
114
114
|
}
|
|
@@ -130,9 +130,9 @@ export class EntityOperations {
|
|
|
130
130
|
changesDelta++ // We're changing it from the persisted id.
|
|
131
131
|
} else if (!previouslyConnectedState.entity.id.existsOnServer) {
|
|
132
132
|
if (
|
|
133
|
-
persistedId === null
|
|
134
|
-
(persistedId === undefined
|
|
135
|
-
(!fieldsToConnect.hasAtLeastOneBearingField || !targetHasOneMarker.parameters.isNonbearing))
|
|
133
|
+
persistedId === null // We're updating.
|
|
134
|
+
|| (persistedId === undefined // We're creating.
|
|
135
|
+
&& (!fieldsToConnect.hasAtLeastOneBearingField || !targetHasOneMarker.parameters.isNonbearing))
|
|
136
136
|
) {
|
|
137
137
|
changesDelta++
|
|
138
138
|
}
|
|
@@ -171,8 +171,8 @@ export class EntityOperations {
|
|
|
171
171
|
const stateToDisconnect = state.children.get(targetHasOneMarker.placeholderName)
|
|
172
172
|
|
|
173
173
|
if (
|
|
174
|
-
stateToDisconnect === undefined
|
|
175
|
-
(stateToDisconnect.type !== 'entityRealm' && stateToDisconnect.type !== 'entityRealmStub')
|
|
174
|
+
stateToDisconnect === undefined
|
|
175
|
+
|| (stateToDisconnect.type !== 'entityRealm' && stateToDisconnect.type !== 'entityRealmStub')
|
|
176
176
|
) {
|
|
177
177
|
OperationsHelpers.rejectInvalidAccessorTree()
|
|
178
178
|
}
|
|
@@ -59,21 +59,21 @@ export class FieldOperations {
|
|
|
59
59
|
if (import.meta.env.DEV) {
|
|
60
60
|
if (newValue !== fieldState.value && (fieldState.touchLog !== undefined || entity.hasIdSetInStone)) {
|
|
61
61
|
throw new BindingError(
|
|
62
|
-
`Trying to set the '${PRIMARY_KEY_NAME}' field for the second time. This is prohibited.\n`
|
|
63
|
-
`Once set, it is immutable.`,
|
|
62
|
+
`Trying to set the '${PRIMARY_KEY_NAME}' field for the second time. This is prohibited.\n`
|
|
63
|
+
+ `Once set, it is immutable.`,
|
|
64
64
|
)
|
|
65
65
|
}
|
|
66
66
|
if (typeof newValue !== 'string' || !uuidValidate(newValue)) {
|
|
67
67
|
throw new BindingError(
|
|
68
|
-
`Invalid value supplied for the '${PRIMARY_KEY_NAME}' field. `
|
|
69
|
-
`Expecting a valid uuid but '${newValue}' was given.\n`
|
|
70
|
-
`Hint: you may use 'FieldAccessor.asUuid.setToUuid()'.`,
|
|
68
|
+
`Invalid value supplied for the '${PRIMARY_KEY_NAME}' field. `
|
|
69
|
+
+ `Expecting a valid uuid but '${newValue}' was given.\n`
|
|
70
|
+
+ `Hint: you may use 'FieldAccessor.asUuid.setToUuid()'.`,
|
|
71
71
|
)
|
|
72
72
|
}
|
|
73
73
|
if (this.treeStore.entityStore.has(ServerId.formatUniqueValue(newValue, entity.entityName))) {
|
|
74
74
|
throw new BindingError(
|
|
75
|
-
`Trying to set the '${PRIMARY_KEY_NAME}' field to '${newValue}' which is a valid uuid but is not unique. `
|
|
76
|
-
`It is already in use by an existing entity.`,
|
|
75
|
+
`Trying to set the '${PRIMARY_KEY_NAME}' field to '${newValue}' which is a valid uuid but is not unique. `
|
|
76
|
+
+ `It is already in use by an existing entity.`,
|
|
77
77
|
)
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -98,21 +98,19 @@ export class FieldOperations {
|
|
|
98
98
|
field.touchLog.add(agent)
|
|
99
99
|
field.value = newValue
|
|
100
100
|
|
|
101
|
-
const resolvedValue =
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
: newValue
|
|
101
|
+
const resolvedValue = field.fieldMarker.defaultValue === undefined
|
|
102
|
+
? newValue
|
|
103
|
+
: newValue === null
|
|
104
|
+
? field.fieldMarker.defaultValue
|
|
105
|
+
: newValue
|
|
107
106
|
const normalizedPersistedValue = field.persistedValue === undefined ? null : field.persistedValue
|
|
108
107
|
const hadUnpersistedChangesBefore = field.hasUnpersistedChanges
|
|
109
108
|
const hasUnpersistedChangesNow = resolvedValue !== normalizedPersistedValue
|
|
110
109
|
field.hasUnpersistedChanges = hasUnpersistedChangesNow
|
|
111
110
|
|
|
112
|
-
const shouldInfluenceUpdateCount =
|
|
113
|
-
!
|
|
114
|
-
|
|
115
|
-
field.persistedValue !== undefined
|
|
111
|
+
const shouldInfluenceUpdateCount = !getEntityMarker(parent).fields.hasAtLeastOneBearingField
|
|
112
|
+
|| !field.fieldMarker.isNonbearing
|
|
113
|
+
|| field.persistedValue !== undefined
|
|
116
114
|
|
|
117
115
|
let changesDelta = EventManager.NO_CHANGES_DIFFERENCE
|
|
118
116
|
|
|
@@ -69,9 +69,9 @@ export class ListOperations {
|
|
|
69
69
|
for (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {
|
|
70
70
|
if (state.entityName !== stateToConnect.entity.entityName) {
|
|
71
71
|
throw new BindingError(
|
|
72
|
-
`EntityListAccessor.connectEntity: Attempting to connect at an entity of type `
|
|
73
|
-
`'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\n\n`
|
|
74
|
-
`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,
|
|
72
|
+
`EntityListAccessor.connectEntity: Attempting to connect at an entity of type `
|
|
73
|
+
+ `'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\n\n`
|
|
74
|
+
+ `Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,
|
|
75
75
|
)
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -83,13 +83,13 @@ export class ListOperations {
|
|
|
83
83
|
} catch (error) {
|
|
84
84
|
if (error instanceof LocalizedBindingError) {
|
|
85
85
|
throw new BindingError(
|
|
86
|
-
`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are `
|
|
87
|
-
`incompatible with entities found on this list. Make sure both trees are equivalent.\n\n`
|
|
88
|
-
`${error.message}\n\n`
|
|
89
|
-
(error.markerPath.length > 1
|
|
86
|
+
`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are `
|
|
87
|
+
+ `incompatible with entities found on this list. Make sure both trees are equivalent.\n\n`
|
|
88
|
+
+ `${error.message}\n\n`
|
|
89
|
+
+ (error.markerPath.length > 1
|
|
90
90
|
? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\n\n`
|
|
91
|
-
: '')
|
|
92
|
-
`Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,
|
|
91
|
+
: '')
|
|
92
|
+
+ `Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,
|
|
93
93
|
)
|
|
94
94
|
}
|
|
95
95
|
throw error
|
|
@@ -124,7 +124,7 @@ export class ListOperations {
|
|
|
124
124
|
})
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
public disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {noPersist?: boolean}) {
|
|
127
|
+
public disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: { noPersist?: boolean }) {
|
|
128
128
|
this.eventManager.syncOperation(() => {
|
|
129
129
|
// TODO disable this at the top-level.
|
|
130
130
|
const persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)
|
|
@@ -205,11 +205,11 @@ export class ListOperations {
|
|
|
205
205
|
}
|
|
206
206
|
const looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))
|
|
207
207
|
throw new BindingError(
|
|
208
|
-
`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.`
|
|
209
|
-
(looksLikeKey
|
|
210
|
-
? `\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids `
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.`
|
|
209
|
+
+ (looksLikeKey
|
|
210
|
+
? `\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids `
|
|
211
|
+
+ `and you can use \`EntityAccessor.id\` to obtain one. Keys, on the other hand, are globally unique and `
|
|
212
|
+
+ `you can use \`getEntityByKey\` to get its EntityAccessor.`
|
|
213
213
|
: ''),
|
|
214
214
|
)
|
|
215
215
|
}
|
|
@@ -29,7 +29,7 @@ export class OperationsHelpers {
|
|
|
29
29
|
throw new BindingError(`Attempting to connect an entity with key '${entityToConnectKey}' but it doesn't exist.`)
|
|
30
30
|
}
|
|
31
31
|
// TODO This is commented out for now in order to at least somewhat mitigate the limitations of dealing with
|
|
32
|
-
//
|
|
32
|
+
// inverse relations. However, once that has been addressed systemically, this code needs to be re-enabled.
|
|
33
33
|
// if (!stateToConnect.entity.id.existsOnServer) {
|
|
34
34
|
// throw new BindingError(
|
|
35
35
|
// `Attempting to connect an entity with key '${stateToConnect.realmKey}' that ` +
|
|
@@ -134,7 +134,7 @@ export class OperationsHelpers {
|
|
|
134
134
|
// Version 1.
|
|
135
135
|
// The listeners subscribed to a particular entity key so we no longer want to call these.
|
|
136
136
|
// The only positionally associated listeners are in the blueprint so we re-initialize those.
|
|
137
|
-
//realm.eventListeners = stateInitializer.initializeEntityEventListenerStore(realmBlueprint)
|
|
137
|
+
// realm.eventListeners = stateInitializer.initializeEntityEventListenerStore(realmBlueprint)
|
|
138
138
|
|
|
139
139
|
// Version 2.
|
|
140
140
|
// This is version two of this terrible hack. We want to preserve e.g. persistSuccess handlers.
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { EntityListAccessor, ErrorAccessor } from '@contember/binding-common'
|
|
2
2
|
import type { EntityListSubTreeMarker, HasManyRelationMarker } from '@contember/binding-common'
|
|
3
|
-
import type {
|
|
4
|
-
EntityEventListenerStore,
|
|
5
|
-
EntityId,
|
|
6
|
-
EntityListEventListenerStore,
|
|
7
|
-
EntityName,
|
|
8
|
-
RemovalType,
|
|
9
|
-
} from '@contember/binding-common'
|
|
3
|
+
import type { EntityEventListenerStore, EntityId, EntityListEventListenerStore, EntityName, RemovalType } from '@contember/binding-common'
|
|
10
4
|
import type { BijectiveIndexedMap } from '@contember/utilities'
|
|
11
5
|
import type { EntityRealmState, EntityRealmStateStub } from './EntityRealmState'
|
|
12
6
|
|
|
@@ -15,12 +9,12 @@ export type EntityListBlueprint =
|
|
|
15
9
|
readonly type: 'hasMany'
|
|
16
10
|
readonly marker: HasManyRelationMarker
|
|
17
11
|
readonly parent: EntityRealmState
|
|
18
|
-
|
|
12
|
+
}
|
|
19
13
|
| {
|
|
20
14
|
readonly type: 'subTree'
|
|
21
15
|
readonly marker: EntityListSubTreeMarker
|
|
22
16
|
readonly parent: undefined
|
|
23
|
-
|
|
17
|
+
}
|
|
24
18
|
|
|
25
19
|
export interface EntityListState {
|
|
26
20
|
type: 'entityList'
|
|
@@ -6,9 +6,9 @@ class TemporalFieldHelper extends FieldHelper<string> {
|
|
|
6
6
|
this.getAccessor().updateValue(new Date().toISOString(), options)
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
//public setToDate() TODO
|
|
10
|
-
//public setToTime() TODO
|
|
11
|
-
//public setToDateTime() TODO
|
|
9
|
+
// public setToDate() TODO
|
|
10
|
+
// public setToTime() TODO
|
|
11
|
+
// public setToDateTime() TODO
|
|
12
12
|
}
|
|
13
13
|
namespace TemporalFieldHelper {
|
|
14
14
|
export const setToNow = (
|
package/src/utils/assertNever.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { BindingError } from '@contember/binding-common'
|
|
|
2
2
|
|
|
3
3
|
export function assertNever(_: never): never {
|
|
4
4
|
throw new BindingError(
|
|
5
|
-
`FATAL ERROR. This should absolutely never have happened. Yet, despite all efforts, here we are. `
|
|
6
|
-
`Please find solace in having a good laugh about the whole situation. `
|
|
7
|
-
`You have just witnessed true harshness of software development. `
|
|
8
|
-
`Please report this bug.`,
|
|
5
|
+
`FATAL ERROR. This should absolutely never have happened. Yet, despite all efforts, here we are. `
|
|
6
|
+
+ `Please find solace in having a good laugh about the whole situation. `
|
|
7
|
+
+ `You have just witnessed true harshness of software development. `
|
|
8
|
+
+ `Please report this bug.`,
|
|
9
9
|
)
|
|
10
10
|
}
|
package/tests/example.test.ts
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const bindingCommon = require("@contember/binding-common");
|
|
4
|
-
const EntityAccessorImpl = require("./src/accessors/EntityAccessorImpl.cjs");
|
|
5
|
-
const EntityListAccessorImpl = require("./src/accessors/EntityListAccessorImpl.cjs");
|
|
6
|
-
const FieldAccessorImpl = require("./src/accessors/FieldAccessorImpl.cjs");
|
|
7
|
-
const NormalizedPersistedData = require("./src/accessorTree/NormalizedPersistedData.cjs");
|
|
8
|
-
const Config = require("./src/core/Config.cjs");
|
|
9
|
-
const DataBinding = require("./src/core/DataBinding.cjs");
|
|
10
|
-
const DirtinessTracker = require("./src/core/DirtinessTracker.cjs");
|
|
11
|
-
const EventManager = require("./src/core/EventManager.cjs");
|
|
12
|
-
const QueryGenerator = require("./src/core/QueryGenerator.cjs");
|
|
13
|
-
const StateInitializer = require("./src/core/StateInitializer.cjs");
|
|
14
|
-
const TreeAugmenter = require("./src/core/TreeAugmenter.cjs");
|
|
15
|
-
const TreeStore = require("./src/core/TreeStore.cjs");
|
|
16
|
-
exports.EntityAccessorImpl = EntityAccessorImpl.EntityAccessorImpl;
|
|
17
|
-
exports.EntityListAccessorImpl = EntityListAccessorImpl.EntityListAccessorImpl;
|
|
18
|
-
exports.FieldAccessorImpl = FieldAccessorImpl.FieldAccessorImpl;
|
|
19
|
-
exports.NormalizedPersistedData = NormalizedPersistedData.NormalizedPersistedData;
|
|
20
|
-
exports.Config = Config.Config;
|
|
21
|
-
exports.DataBinding = DataBinding.DataBinding;
|
|
22
|
-
exports.DirtinessTracker = DirtinessTracker.DirtinessTracker;
|
|
23
|
-
exports.EventManager = EventManager.EventManager;
|
|
24
|
-
exports.QueryGenerator = QueryGenerator.QueryGenerator;
|
|
25
|
-
exports.StateInitializer = StateInitializer.StateInitializer;
|
|
26
|
-
exports.TreeAugmenter = TreeAugmenter.TreeAugmenter;
|
|
27
|
-
exports.TreeStore = TreeStore.TreeStore;
|
|
28
|
-
Object.keys(bindingCommon).forEach((k) => {
|
|
29
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: () => bindingCommon[k]
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export * from "@contember/binding-common";
|
|
2
|
-
import { EntityAccessorImpl } from "./src/accessors/EntityAccessorImpl.js";
|
|
3
|
-
import { EntityListAccessorImpl } from "./src/accessors/EntityListAccessorImpl.js";
|
|
4
|
-
import { FieldAccessorImpl } from "./src/accessors/FieldAccessorImpl.js";
|
|
5
|
-
import { NormalizedPersistedData } from "./src/accessorTree/NormalizedPersistedData.js";
|
|
6
|
-
import { Config } from "./src/core/Config.js";
|
|
7
|
-
import { DataBinding } from "./src/core/DataBinding.js";
|
|
8
|
-
import { DirtinessTracker } from "./src/core/DirtinessTracker.js";
|
|
9
|
-
import { EventManager } from "./src/core/EventManager.js";
|
|
10
|
-
import { QueryGenerator } from "./src/core/QueryGenerator.js";
|
|
11
|
-
import { StateInitializer } from "./src/core/StateInitializer.js";
|
|
12
|
-
import { TreeAugmenter } from "./src/core/TreeAugmenter.js";
|
|
13
|
-
import { TreeStore } from "./src/core/TreeStore.js";
|
|
14
|
-
export {
|
|
15
|
-
Config,
|
|
16
|
-
DataBinding,
|
|
17
|
-
DirtinessTracker,
|
|
18
|
-
EntityAccessorImpl,
|
|
19
|
-
EntityListAccessorImpl,
|
|
20
|
-
EventManager,
|
|
21
|
-
FieldAccessorImpl,
|
|
22
|
-
NormalizedPersistedData,
|
|
23
|
-
QueryGenerator,
|
|
24
|
-
StateInitializer,
|
|
25
|
-
TreeAugmenter,
|
|
26
|
-
TreeStore
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
class NormalizedPersistedData {
|
|
4
|
-
constructor(subTreeDataStore, persistedEntityDataStore) {
|
|
5
|
-
this.subTreeDataStore = subTreeDataStore;
|
|
6
|
-
this.persistedEntityDataStore = persistedEntityDataStore;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
exports.NormalizedPersistedData = NormalizedPersistedData;
|
|
10
|
-
//# sourceMappingURL=NormalizedPersistedData.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NormalizedPersistedData.cjs","sources":["../../../../../packages/binding-legacy/src/accessorTree/NormalizedPersistedData.ts"],"sourcesContent":["import type { EntityId, FieldValue, PlaceholderName } from '@contember/binding-common'\nimport type { ServerId, UniqueEntityId } from '@contember/binding-common'\n\n// HasMany relations are encoded as sets of entity ids.\n// HasOne relations are encoded as BoxedSingleEntityId just to make them different from actual strings.\n//\t\tNot sure whether that is a reasonable precaution or just pure overhead.\nexport type EntityFieldPersistedValue = FieldValue | ServerId | EntityListPersistedData\n\nexport type EntityFieldPersistedData<Value extends EntityFieldPersistedValue = EntityFieldPersistedValue> = {\n\treadable: boolean | undefined\n\tupdatable: boolean | undefined\n\tvalue: Value\n}\n\nexport type SingleEntityPersistedData = Map<PlaceholderName, EntityFieldPersistedData>\n\nexport type EntityListPersistedData = Set<EntityId>\n\nexport type PersistedEntityDataStore = Map<UniqueEntityId, SingleEntityPersistedData>\n\n// The key is the subTree placeholder name\nexport type SubTreeDataStore = Map<PlaceholderName, ServerId | EntityListPersistedData>\n\nexport class NormalizedPersistedData {\n\tpublic constructor(\n\t\tpublic readonly subTreeDataStore: SubTreeDataStore,\n\t\tpublic readonly persistedEntityDataStore: PersistedEntityDataStore,\n\t) {}\n}\n"],"names":[],"mappings":";;AAuBO,MAAM,wBAAwB;AAAA,EAC7B,YACU,kBACA,0BACf;AAFe,SAAA,mBAAA;AACA,SAAA,2BAAA;AAAA,EAAA;AAElB;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
class NormalizedPersistedData {
|
|
2
|
-
constructor(subTreeDataStore, persistedEntityDataStore) {
|
|
3
|
-
this.subTreeDataStore = subTreeDataStore;
|
|
4
|
-
this.persistedEntityDataStore = persistedEntityDataStore;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
NormalizedPersistedData
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=NormalizedPersistedData.js.map
|