@contember/binding 2.0.0-alpha.2 → 2.0.0-alpha.20

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.
Files changed (1238) hide show
  1. package/api-extractor.json +3 -0
  2. package/dist/development/index.cjs +13 -116
  3. package/dist/development/index.cjs.map +1 -1
  4. package/dist/development/index.js +3 -106
  5. package/dist/development/index.js.map +1 -1
  6. package/dist/production/index.cjs +13 -116
  7. package/dist/production/index.cjs.map +1 -1
  8. package/dist/production/index.js +3 -106
  9. package/dist/production/index.js.map +1 -1
  10. package/dist/types/index.d.ts +3 -11
  11. package/dist/types/index.d.ts.map +1 -1
  12. package/dist/types/tsconfig.tsbuildinfo +1 -1
  13. package/package.json +8 -21
  14. package/src/index.ts +3 -14
  15. package/src/tsconfig.json +7 -2
  16. package/tests/tsconfig.json +10 -0
  17. package/tsconfig.json +8 -0
  18. package/tsdoc.json +6 -0
  19. package/vitest.config.ts +3 -0
  20. package/dist/development/BindingError.cjs +0 -10
  21. package/dist/development/BindingError.cjs.map +0 -1
  22. package/dist/development/BindingError.js +0 -10
  23. package/dist/development/BindingError.js.map +0 -1
  24. package/dist/development/accessorTree/NormalizedPersistedData.cjs +0 -10
  25. package/dist/development/accessorTree/NormalizedPersistedData.cjs.map +0 -1
  26. package/dist/development/accessorTree/NormalizedPersistedData.js +0 -10
  27. package/dist/development/accessorTree/NormalizedPersistedData.js.map +0 -1
  28. package/dist/development/accessorTree/RuntimeId.cjs +0 -64
  29. package/dist/development/accessorTree/RuntimeId.cjs.map +0 -1
  30. package/dist/development/accessorTree/RuntimeId.js +0 -64
  31. package/dist/development/accessorTree/RuntimeId.js.map +0 -1
  32. package/dist/development/accessors/EntityAccessor.cjs +0 -179
  33. package/dist/development/accessors/EntityAccessor.cjs.map +0 -1
  34. package/dist/development/accessors/EntityAccessor.js +0 -179
  35. package/dist/development/accessors/EntityAccessor.js.map +0 -1
  36. package/dist/development/accessors/EntityListAccessor.cjs +0 -108
  37. package/dist/development/accessors/EntityListAccessor.cjs.map +0 -1
  38. package/dist/development/accessors/EntityListAccessor.js +0 -108
  39. package/dist/development/accessors/EntityListAccessor.js.map +0 -1
  40. package/dist/development/accessors/ErrorAccessor.cjs +0 -16
  41. package/dist/development/accessors/ErrorAccessor.cjs.map +0 -1
  42. package/dist/development/accessors/ErrorAccessor.js +0 -16
  43. package/dist/development/accessors/ErrorAccessor.js.map +0 -1
  44. package/dist/development/accessors/FieldAccessor.cjs +0 -62
  45. package/dist/development/accessors/FieldAccessor.cjs.map +0 -1
  46. package/dist/development/accessors/FieldAccessor.js +0 -62
  47. package/dist/development/accessors/FieldAccessor.js.map +0 -1
  48. package/dist/development/accessors/TreeRootAccessor.cjs +0 -14
  49. package/dist/development/accessors/TreeRootAccessor.cjs.map +0 -1
  50. package/dist/development/accessors/TreeRootAccessor.js +0 -14
  51. package/dist/development/accessors/TreeRootAccessor.js.map +0 -1
  52. package/dist/development/bindingTypes.cjs +0 -9
  53. package/dist/development/bindingTypes.cjs.map +0 -1
  54. package/dist/development/bindingTypes.js +0 -9
  55. package/dist/development/bindingTypes.js.map +0 -1
  56. package/dist/development/core/AccessorErrorManager.cjs +0 -207
  57. package/dist/development/core/AccessorErrorManager.cjs.map +0 -1
  58. package/dist/development/core/AccessorErrorManager.js +0 -207
  59. package/dist/development/core/AccessorErrorManager.js.map +0 -1
  60. package/dist/development/core/Config.cjs +0 -32
  61. package/dist/development/core/Config.cjs.map +0 -1
  62. package/dist/development/core/Config.js +0 -32
  63. package/dist/development/core/Config.js.map +0 -1
  64. package/dist/development/core/DataBinding.cjs +0 -353
  65. package/dist/development/core/DataBinding.cjs.map +0 -1
  66. package/dist/development/core/DataBinding.js +0 -353
  67. package/dist/development/core/DataBinding.js.map +0 -1
  68. package/dist/development/core/DirtinessTracker.cjs +0 -29
  69. package/dist/development/core/DirtinessTracker.cjs.map +0 -1
  70. package/dist/development/core/DirtinessTracker.js +0 -29
  71. package/dist/development/core/DirtinessTracker.js.map +0 -1
  72. package/dist/development/core/ErrorsPreprocessor.cjs +0 -181
  73. package/dist/development/core/ErrorsPreprocessor.cjs.map +0 -1
  74. package/dist/development/core/ErrorsPreprocessor.js +0 -181
  75. package/dist/development/core/ErrorsPreprocessor.js.map +0 -1
  76. package/dist/development/core/EventManager.cjs +0 -440
  77. package/dist/development/core/EventManager.cjs.map +0 -1
  78. package/dist/development/core/EventManager.js +0 -440
  79. package/dist/development/core/EventManager.js.map +0 -1
  80. package/dist/development/core/MarkerComparator.cjs +0 -79
  81. package/dist/development/core/MarkerComparator.cjs.map +0 -1
  82. package/dist/development/core/MarkerComparator.js +0 -79
  83. package/dist/development/core/MarkerComparator.js.map +0 -1
  84. package/dist/development/core/MarkerMerger.cjs +0 -252
  85. package/dist/development/core/MarkerMerger.cjs.map +0 -1
  86. package/dist/development/core/MarkerMerger.js +0 -252
  87. package/dist/development/core/MarkerMerger.js.map +0 -1
  88. package/dist/development/core/MutationGenerator.cjs +0 -665
  89. package/dist/development/core/MutationGenerator.cjs.map +0 -1
  90. package/dist/development/core/MutationGenerator.js +0 -665
  91. package/dist/development/core/MutationGenerator.js.map +0 -1
  92. package/dist/development/core/QueryGenerator.cjs +0 -113
  93. package/dist/development/core/QueryGenerator.cjs.map +0 -1
  94. package/dist/development/core/QueryGenerator.js +0 -113
  95. package/dist/development/core/QueryGenerator.js.map +0 -1
  96. package/dist/development/core/RealmKeyGenerator.cjs +0 -47
  97. package/dist/development/core/RealmKeyGenerator.cjs.map +0 -1
  98. package/dist/development/core/RealmKeyGenerator.js +0 -47
  99. package/dist/development/core/RealmKeyGenerator.js.map +0 -1
  100. package/dist/development/core/RequestResponseNormalizer.cjs +0 -125
  101. package/dist/development/core/RequestResponseNormalizer.cjs.map +0 -1
  102. package/dist/development/core/RequestResponseNormalizer.js +0 -125
  103. package/dist/development/core/RequestResponseNormalizer.js.map +0 -1
  104. package/dist/development/core/StateInitializer.cjs +0 -390
  105. package/dist/development/core/StateInitializer.cjs.map +0 -1
  106. package/dist/development/core/StateInitializer.js +0 -390
  107. package/dist/development/core/StateInitializer.js.map +0 -1
  108. package/dist/development/core/TreeAugmenter.cjs +0 -213
  109. package/dist/development/core/TreeAugmenter.cjs.map +0 -1
  110. package/dist/development/core/TreeAugmenter.js +0 -213
  111. package/dist/development/core/TreeAugmenter.js.map +0 -1
  112. package/dist/development/core/TreeFilterGenerator.cjs +0 -83
  113. package/dist/development/core/TreeFilterGenerator.cjs.map +0 -1
  114. package/dist/development/core/TreeFilterGenerator.js +0 -83
  115. package/dist/development/core/TreeFilterGenerator.js.map +0 -1
  116. package/dist/development/core/TreeParameterMerger.cjs +0 -304
  117. package/dist/development/core/TreeParameterMerger.cjs.map +0 -1
  118. package/dist/development/core/TreeParameterMerger.js +0 -304
  119. package/dist/development/core/TreeParameterMerger.js.map +0 -1
  120. package/dist/development/core/TreeStore.cjs +0 -182
  121. package/dist/development/core/TreeStore.cjs.map +0 -1
  122. package/dist/development/core/TreeStore.js +0 -182
  123. package/dist/development/core/TreeStore.js.map +0 -1
  124. package/dist/development/core/VariableInputTransformer.cjs +0 -24
  125. package/dist/development/core/VariableInputTransformer.cjs.map +0 -1
  126. package/dist/development/core/VariableInputTransformer.js +0 -24
  127. package/dist/development/core/VariableInputTransformer.js.map +0 -1
  128. package/dist/development/core/exceptions/ErrorLocator.cjs +0 -62
  129. package/dist/development/core/exceptions/ErrorLocator.cjs.map +0 -1
  130. package/dist/development/core/exceptions/ErrorLocator.js +0 -62
  131. package/dist/development/core/exceptions/ErrorLocator.js.map +0 -1
  132. package/dist/development/core/exceptions/LocalizedBindingError.cjs +0 -14
  133. package/dist/development/core/exceptions/LocalizedBindingError.cjs.map +0 -1
  134. package/dist/development/core/exceptions/LocalizedBindingError.js +0 -14
  135. package/dist/development/core/exceptions/LocalizedBindingError.js.map +0 -1
  136. package/dist/development/core/exceptions/MarkerSugarer.cjs +0 -56
  137. package/dist/development/core/exceptions/MarkerSugarer.cjs.map +0 -1
  138. package/dist/development/core/exceptions/MarkerSugarer.js +0 -56
  139. package/dist/development/core/exceptions/MarkerSugarer.js.map +0 -1
  140. package/dist/development/core/exceptions/TreeParameterSugarer.cjs +0 -33
  141. package/dist/development/core/exceptions/TreeParameterSugarer.cjs.map +0 -1
  142. package/dist/development/core/exceptions/TreeParameterSugarer.js +0 -33
  143. package/dist/development/core/exceptions/TreeParameterSugarer.js.map +0 -1
  144. package/dist/development/core/factories/createBatchUpdatesOptions.cjs +0 -20
  145. package/dist/development/core/factories/createBatchUpdatesOptions.cjs.map +0 -1
  146. package/dist/development/core/factories/createBatchUpdatesOptions.js +0 -20
  147. package/dist/development/core/factories/createBatchUpdatesOptions.js.map +0 -1
  148. package/dist/development/core/operations/EntityOperations.cjs +0 -230
  149. package/dist/development/core/operations/EntityOperations.cjs.map +0 -1
  150. package/dist/development/core/operations/EntityOperations.js +0 -230
  151. package/dist/development/core/operations/EntityOperations.js.map +0 -1
  152. package/dist/development/core/operations/FieldOperations.cjs +0 -96
  153. package/dist/development/core/operations/FieldOperations.cjs.map +0 -1
  154. package/dist/development/core/operations/FieldOperations.js +0 -96
  155. package/dist/development/core/operations/FieldOperations.js.map +0 -1
  156. package/dist/development/core/operations/ListOperations.cjs +0 -159
  157. package/dist/development/core/operations/ListOperations.cjs.map +0 -1
  158. package/dist/development/core/operations/ListOperations.js +0 -159
  159. package/dist/development/core/operations/ListOperations.js.map +0 -1
  160. package/dist/development/core/operations/OperationsHelpers.cjs +0 -85
  161. package/dist/development/core/operations/OperationsHelpers.cjs.map +0 -1
  162. package/dist/development/core/operations/OperationsHelpers.js +0 -85
  163. package/dist/development/core/operations/OperationsHelpers.js.map +0 -1
  164. package/dist/development/core/requestAliases/MutationAlias.cjs +0 -14
  165. package/dist/development/core/requestAliases/MutationAlias.cjs.map +0 -1
  166. package/dist/development/core/requestAliases/MutationAlias.js +0 -14
  167. package/dist/development/core/requestAliases/MutationAlias.js.map +0 -1
  168. package/dist/development/core/schema/Schema.cjs +0 -39
  169. package/dist/development/core/schema/Schema.cjs.map +0 -1
  170. package/dist/development/core/schema/Schema.js +0 -39
  171. package/dist/development/core/schema/Schema.js.map +0 -1
  172. package/dist/development/core/schema/SchemaLoader.cjs +0 -28
  173. package/dist/development/core/schema/SchemaLoader.cjs.map +0 -1
  174. package/dist/development/core/schema/SchemaLoader.js +0 -28
  175. package/dist/development/core/schema/SchemaLoader.js.map +0 -1
  176. package/dist/development/core/schema/SchemaPreprocessor.cjs +0 -38
  177. package/dist/development/core/schema/SchemaPreprocessor.cjs.map +0 -1
  178. package/dist/development/core/schema/SchemaPreprocessor.js +0 -38
  179. package/dist/development/core/schema/SchemaPreprocessor.js.map +0 -1
  180. package/dist/development/core/state/StateIterator.cjs +0 -100
  181. package/dist/development/core/state/StateIterator.cjs.map +0 -1
  182. package/dist/development/core/state/StateIterator.js +0 -100
  183. package/dist/development/core/state/StateIterator.js.map +0 -1
  184. package/dist/development/core/state/getEntityMarker.cjs +0 -5
  185. package/dist/development/core/state/getEntityMarker.cjs.map +0 -1
  186. package/dist/development/core/state/getEntityMarker.js +0 -5
  187. package/dist/development/core/state/getEntityMarker.js.map +0 -1
  188. package/dist/development/core/utils/createQueryBuilder.cjs +0 -32
  189. package/dist/development/core/utils/createQueryBuilder.cjs.map +0 -1
  190. package/dist/development/core/utils/createQueryBuilder.js +0 -32
  191. package/dist/development/core/utils/createQueryBuilder.js.map +0 -1
  192. package/dist/development/core/utils/getCombinedSignal.cjs +0 -33
  193. package/dist/development/core/utils/getCombinedSignal.cjs.map +0 -1
  194. package/dist/development/core/utils/getCombinedSignal.js +0 -33
  195. package/dist/development/core/utils/getCombinedSignal.js.map +0 -1
  196. package/dist/development/dao/Environment.cjs +0 -213
  197. package/dist/development/dao/Environment.cjs.map +0 -1
  198. package/dist/development/dao/Environment.js +0 -213
  199. package/dist/development/dao/Environment.js.map +0 -1
  200. package/dist/development/dao/TreeNodeEnvironmentFactory.cjs +0 -89
  201. package/dist/development/dao/TreeNodeEnvironmentFactory.cjs.map +0 -1
  202. package/dist/development/dao/TreeNodeEnvironmentFactory.js +0 -89
  203. package/dist/development/dao/TreeNodeEnvironmentFactory.js.map +0 -1
  204. package/dist/development/dao/VariableFieldValue.cjs +0 -9
  205. package/dist/development/dao/VariableFieldValue.cjs.map +0 -1
  206. package/dist/development/dao/VariableFieldValue.js +0 -9
  207. package/dist/development/dao/VariableFieldValue.js.map +0 -1
  208. package/dist/development/fieldHelpers/helpers/FieldHelper.cjs +0 -17
  209. package/dist/development/fieldHelpers/helpers/FieldHelper.cjs.map +0 -1
  210. package/dist/development/fieldHelpers/helpers/FieldHelper.js +0 -17
  211. package/dist/development/fieldHelpers/helpers/FieldHelper.js.map +0 -1
  212. package/dist/development/fieldHelpers/helpers/TemporalFieldHelper.cjs +0 -18
  213. package/dist/development/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +0 -1
  214. package/dist/development/fieldHelpers/helpers/TemporalFieldHelper.js +0 -18
  215. package/dist/development/fieldHelpers/helpers/TemporalFieldHelper.js.map +0 -1
  216. package/dist/development/fieldHelpers/helpers/UuidFieldHelper.cjs +0 -16
  217. package/dist/development/fieldHelpers/helpers/UuidFieldHelper.cjs.map +0 -1
  218. package/dist/development/fieldHelpers/helpers/UuidFieldHelper.js +0 -16
  219. package/dist/development/fieldHelpers/helpers/UuidFieldHelper.js.map +0 -1
  220. package/dist/development/markers/EntityFieldMarkersContainer.cjs +0 -41
  221. package/dist/development/markers/EntityFieldMarkersContainer.cjs.map +0 -1
  222. package/dist/development/markers/EntityFieldMarkersContainer.js +0 -41
  223. package/dist/development/markers/EntityFieldMarkersContainer.js.map +0 -1
  224. package/dist/development/markers/EntityFieldsWithHoistablesMarker.cjs +0 -11
  225. package/dist/development/markers/EntityFieldsWithHoistablesMarker.cjs.map +0 -1
  226. package/dist/development/markers/EntityFieldsWithHoistablesMarker.js +0 -11
  227. package/dist/development/markers/EntityFieldsWithHoistablesMarker.js.map +0 -1
  228. package/dist/development/markers/EntityListSubTreeMarker.cjs +0 -23
  229. package/dist/development/markers/EntityListSubTreeMarker.cjs.map +0 -1
  230. package/dist/development/markers/EntityListSubTreeMarker.js +0 -23
  231. package/dist/development/markers/EntityListSubTreeMarker.js.map +0 -1
  232. package/dist/development/markers/EntitySubTreeMarker.cjs +0 -23
  233. package/dist/development/markers/EntitySubTreeMarker.cjs.map +0 -1
  234. package/dist/development/markers/EntitySubTreeMarker.js +0 -23
  235. package/dist/development/markers/EntitySubTreeMarker.js.map +0 -1
  236. package/dist/development/markers/FieldMarker.cjs +0 -20
  237. package/dist/development/markers/FieldMarker.cjs.map +0 -1
  238. package/dist/development/markers/FieldMarker.js +0 -20
  239. package/dist/development/markers/FieldMarker.js.map +0 -1
  240. package/dist/development/markers/HasManyRelationMarker.cjs +0 -29
  241. package/dist/development/markers/HasManyRelationMarker.cjs.map +0 -1
  242. package/dist/development/markers/HasManyRelationMarker.js +0 -29
  243. package/dist/development/markers/HasManyRelationMarker.js.map +0 -1
  244. package/dist/development/markers/HasOneRelationMarker.cjs +0 -23
  245. package/dist/development/markers/HasOneRelationMarker.cjs.map +0 -1
  246. package/dist/development/markers/HasOneRelationMarker.js +0 -23
  247. package/dist/development/markers/HasOneRelationMarker.js.map +0 -1
  248. package/dist/development/markers/MarkerTreeRoot.cjs +0 -10
  249. package/dist/development/markers/MarkerTreeRoot.cjs.map +0 -1
  250. package/dist/development/markers/MarkerTreeRoot.js +0 -10
  251. package/dist/development/markers/MarkerTreeRoot.js.map +0 -1
  252. package/dist/development/markers/ParentEntityMarker.cjs +0 -10
  253. package/dist/development/markers/ParentEntityMarker.cjs.map +0 -1
  254. package/dist/development/markers/ParentEntityMarker.js +0 -10
  255. package/dist/development/markers/ParentEntityMarker.js.map +0 -1
  256. package/dist/development/markers/PlaceholderGenerator.cjs +0 -23
  257. package/dist/development/markers/PlaceholderGenerator.cjs.map +0 -1
  258. package/dist/development/markers/PlaceholderGenerator.js +0 -23
  259. package/dist/development/markers/PlaceholderGenerator.js.map +0 -1
  260. package/dist/development/markers/PlaceholderParametersGenerator.cjs +0 -62
  261. package/dist/development/markers/PlaceholderParametersGenerator.cjs.map +0 -1
  262. package/dist/development/markers/PlaceholderParametersGenerator.js +0 -62
  263. package/dist/development/markers/PlaceholderParametersGenerator.js.map +0 -1
  264. package/dist/development/queryLanguage/CacheStore.cjs +0 -47
  265. package/dist/development/queryLanguage/CacheStore.cjs.map +0 -1
  266. package/dist/development/queryLanguage/CacheStore.js +0 -47
  267. package/dist/development/queryLanguage/CacheStore.js.map +0 -1
  268. package/dist/development/queryLanguage/MarkerFactory.cjs +0 -200
  269. package/dist/development/queryLanguage/MarkerFactory.cjs.map +0 -1
  270. package/dist/development/queryLanguage/MarkerFactory.js +0 -200
  271. package/dist/development/queryLanguage/MarkerFactory.js.map +0 -1
  272. package/dist/development/queryLanguage/Parser.cjs +0 -728
  273. package/dist/development/queryLanguage/Parser.cjs.map +0 -1
  274. package/dist/development/queryLanguage/Parser.js +0 -728
  275. package/dist/development/queryLanguage/Parser.js.map +0 -1
  276. package/dist/development/queryLanguage/QueryLanguage.cjs +0 -520
  277. package/dist/development/queryLanguage/QueryLanguage.cjs.map +0 -1
  278. package/dist/development/queryLanguage/QueryLanguage.js +0 -520
  279. package/dist/development/queryLanguage/QueryLanguage.js.map +0 -1
  280. package/dist/development/queryLanguage/QueryLanguageError.cjs +0 -6
  281. package/dist/development/queryLanguage/QueryLanguageError.cjs.map +0 -1
  282. package/dist/development/queryLanguage/QueryLanguageError.js +0 -6
  283. package/dist/development/queryLanguage/QueryLanguageError.js.map +0 -1
  284. package/dist/development/queryLanguage/tokenList.cjs +0 -150
  285. package/dist/development/queryLanguage/tokenList.cjs.map +0 -1
  286. package/dist/development/queryLanguage/tokenList.js +0 -151
  287. package/dist/development/queryLanguage/tokenList.js.map +0 -1
  288. package/dist/development/structures/BijectiveIndexedMap.cjs +0 -120
  289. package/dist/development/structures/BijectiveIndexedMap.cjs.map +0 -1
  290. package/dist/development/structures/BijectiveIndexedMap.js +0 -120
  291. package/dist/development/structures/BijectiveIndexedMap.js.map +0 -1
  292. package/dist/development/structures/LRUCache.cjs +0 -35
  293. package/dist/development/structures/LRUCache.cjs.map +0 -1
  294. package/dist/development/structures/LRUCache.js +0 -35
  295. package/dist/development/structures/LRUCache.js.map +0 -1
  296. package/dist/development/structures/WeakIdCache.cjs +0 -33
  297. package/dist/development/structures/WeakIdCache.cjs.map +0 -1
  298. package/dist/development/structures/WeakIdCache.js +0 -33
  299. package/dist/development/structures/WeakIdCache.js.map +0 -1
  300. package/dist/development/treeParameterHelpers/wrapFilterInHasOnes.cjs +0 -22
  301. package/dist/development/treeParameterHelpers/wrapFilterInHasOnes.cjs.map +0 -1
  302. package/dist/development/treeParameterHelpers/wrapFilterInHasOnes.js +0 -22
  303. package/dist/development/treeParameterHelpers/wrapFilterInHasOnes.js.map +0 -1
  304. package/dist/development/treeParameters/EntityCreationParameters.cjs +0 -8
  305. package/dist/development/treeParameters/EntityCreationParameters.cjs.map +0 -1
  306. package/dist/development/treeParameters/EntityCreationParameters.js +0 -8
  307. package/dist/development/treeParameters/EntityCreationParameters.js.map +0 -1
  308. package/dist/development/treeParameters/EntityListPreferences.cjs +0 -7
  309. package/dist/development/treeParameters/EntityListPreferences.cjs.map +0 -1
  310. package/dist/development/treeParameters/EntityListPreferences.js +0 -7
  311. package/dist/development/treeParameters/EntityListPreferences.js.map +0 -1
  312. package/dist/development/treeParameters/EventListenersStore.cjs +0 -70
  313. package/dist/development/treeParameters/EventListenersStore.cjs.map +0 -1
  314. package/dist/development/treeParameters/EventListenersStore.js +0 -70
  315. package/dist/development/treeParameters/EventListenersStore.js.map +0 -1
  316. package/dist/development/treeParameters/LeafField.cjs +0 -7
  317. package/dist/development/treeParameters/LeafField.cjs.map +0 -1
  318. package/dist/development/treeParameters/LeafField.js +0 -7
  319. package/dist/development/treeParameters/LeafField.js.map +0 -1
  320. package/dist/development/treeParameters/QualifiedEntityParameters.cjs +0 -7
  321. package/dist/development/treeParameters/QualifiedEntityParameters.cjs.map +0 -1
  322. package/dist/development/treeParameters/QualifiedEntityParameters.js +0 -7
  323. package/dist/development/treeParameters/QualifiedEntityParameters.js.map +0 -1
  324. package/dist/development/treeParameters/Relation.cjs +0 -7
  325. package/dist/development/treeParameters/Relation.cjs.map +0 -1
  326. package/dist/development/treeParameters/Relation.js +0 -7
  327. package/dist/development/treeParameters/Relation.js.map +0 -1
  328. package/dist/development/utils/Hashing.cjs +0 -22
  329. package/dist/development/utils/Hashing.cjs.map +0 -1
  330. package/dist/development/utils/Hashing.js +0 -22
  331. package/dist/development/utils/Hashing.js.map +0 -1
  332. package/dist/development/utils/TreeNodeUtils.cjs +0 -77
  333. package/dist/development/utils/TreeNodeUtils.cjs.map +0 -1
  334. package/dist/development/utils/TreeNodeUtils.js +0 -77
  335. package/dist/development/utils/TreeNodeUtils.js.map +0 -1
  336. package/dist/development/utils/assert.cjs +0 -11
  337. package/dist/development/utils/assert.cjs.map +0 -1
  338. package/dist/development/utils/assert.js +0 -11
  339. package/dist/development/utils/assert.js.map +0 -1
  340. package/dist/development/utils/assertNever.cjs +0 -10
  341. package/dist/development/utils/assertNever.cjs.map +0 -1
  342. package/dist/development/utils/assertNever.js +0 -10
  343. package/dist/development/utils/assertNever.js.map +0 -1
  344. package/dist/development/utils/generateEnumerabilityPreventingEntropy.cjs +0 -7
  345. package/dist/development/utils/generateEnumerabilityPreventingEntropy.cjs.map +0 -1
  346. package/dist/development/utils/generateEnumerabilityPreventingEntropy.js +0 -7
  347. package/dist/development/utils/generateEnumerabilityPreventingEntropy.js.map +0 -1
  348. package/dist/development/utils/isEmptyObject.cjs +0 -12
  349. package/dist/development/utils/isEmptyObject.cjs.map +0 -1
  350. package/dist/development/utils/isEmptyObject.js +0 -12
  351. package/dist/development/utils/isEmptyObject.js.map +0 -1
  352. package/dist/development/utils/ucfirst.cjs +0 -5
  353. package/dist/development/utils/ucfirst.cjs.map +0 -1
  354. package/dist/development/utils/ucfirst.js +0 -5
  355. package/dist/development/utils/ucfirst.js.map +0 -1
  356. package/dist/production/BindingError.cjs +0 -10
  357. package/dist/production/BindingError.cjs.map +0 -1
  358. package/dist/production/BindingError.js +0 -10
  359. package/dist/production/BindingError.js.map +0 -1
  360. package/dist/production/accessorTree/NormalizedPersistedData.cjs +0 -10
  361. package/dist/production/accessorTree/NormalizedPersistedData.cjs.map +0 -1
  362. package/dist/production/accessorTree/NormalizedPersistedData.js +0 -10
  363. package/dist/production/accessorTree/NormalizedPersistedData.js.map +0 -1
  364. package/dist/production/accessorTree/RuntimeId.cjs +0 -64
  365. package/dist/production/accessorTree/RuntimeId.cjs.map +0 -1
  366. package/dist/production/accessorTree/RuntimeId.js +0 -64
  367. package/dist/production/accessorTree/RuntimeId.js.map +0 -1
  368. package/dist/production/accessors/EntityAccessor.cjs +0 -179
  369. package/dist/production/accessors/EntityAccessor.cjs.map +0 -1
  370. package/dist/production/accessors/EntityAccessor.js +0 -179
  371. package/dist/production/accessors/EntityAccessor.js.map +0 -1
  372. package/dist/production/accessors/EntityListAccessor.cjs +0 -108
  373. package/dist/production/accessors/EntityListAccessor.cjs.map +0 -1
  374. package/dist/production/accessors/EntityListAccessor.js +0 -108
  375. package/dist/production/accessors/EntityListAccessor.js.map +0 -1
  376. package/dist/production/accessors/ErrorAccessor.cjs +0 -16
  377. package/dist/production/accessors/ErrorAccessor.cjs.map +0 -1
  378. package/dist/production/accessors/ErrorAccessor.js +0 -16
  379. package/dist/production/accessors/ErrorAccessor.js.map +0 -1
  380. package/dist/production/accessors/FieldAccessor.cjs +0 -62
  381. package/dist/production/accessors/FieldAccessor.cjs.map +0 -1
  382. package/dist/production/accessors/FieldAccessor.js +0 -62
  383. package/dist/production/accessors/FieldAccessor.js.map +0 -1
  384. package/dist/production/accessors/TreeRootAccessor.cjs +0 -14
  385. package/dist/production/accessors/TreeRootAccessor.cjs.map +0 -1
  386. package/dist/production/accessors/TreeRootAccessor.js +0 -14
  387. package/dist/production/accessors/TreeRootAccessor.js.map +0 -1
  388. package/dist/production/bindingTypes.cjs +0 -9
  389. package/dist/production/bindingTypes.cjs.map +0 -1
  390. package/dist/production/bindingTypes.js +0 -9
  391. package/dist/production/bindingTypes.js.map +0 -1
  392. package/dist/production/core/AccessorErrorManager.cjs +0 -207
  393. package/dist/production/core/AccessorErrorManager.cjs.map +0 -1
  394. package/dist/production/core/AccessorErrorManager.js +0 -207
  395. package/dist/production/core/AccessorErrorManager.js.map +0 -1
  396. package/dist/production/core/Config.cjs +0 -32
  397. package/dist/production/core/Config.cjs.map +0 -1
  398. package/dist/production/core/Config.js +0 -32
  399. package/dist/production/core/Config.js.map +0 -1
  400. package/dist/production/core/DataBinding.cjs +0 -353
  401. package/dist/production/core/DataBinding.cjs.map +0 -1
  402. package/dist/production/core/DataBinding.js +0 -353
  403. package/dist/production/core/DataBinding.js.map +0 -1
  404. package/dist/production/core/DirtinessTracker.cjs +0 -29
  405. package/dist/production/core/DirtinessTracker.cjs.map +0 -1
  406. package/dist/production/core/DirtinessTracker.js +0 -29
  407. package/dist/production/core/DirtinessTracker.js.map +0 -1
  408. package/dist/production/core/ErrorsPreprocessor.cjs +0 -181
  409. package/dist/production/core/ErrorsPreprocessor.cjs.map +0 -1
  410. package/dist/production/core/ErrorsPreprocessor.js +0 -181
  411. package/dist/production/core/ErrorsPreprocessor.js.map +0 -1
  412. package/dist/production/core/EventManager.cjs +0 -414
  413. package/dist/production/core/EventManager.cjs.map +0 -1
  414. package/dist/production/core/EventManager.js +0 -414
  415. package/dist/production/core/EventManager.js.map +0 -1
  416. package/dist/production/core/MarkerComparator.cjs +0 -79
  417. package/dist/production/core/MarkerComparator.cjs.map +0 -1
  418. package/dist/production/core/MarkerComparator.js +0 -79
  419. package/dist/production/core/MarkerComparator.js.map +0 -1
  420. package/dist/production/core/MarkerMerger.cjs +0 -252
  421. package/dist/production/core/MarkerMerger.cjs.map +0 -1
  422. package/dist/production/core/MarkerMerger.js +0 -252
  423. package/dist/production/core/MarkerMerger.js.map +0 -1
  424. package/dist/production/core/MutationGenerator.cjs +0 -665
  425. package/dist/production/core/MutationGenerator.cjs.map +0 -1
  426. package/dist/production/core/MutationGenerator.js +0 -665
  427. package/dist/production/core/MutationGenerator.js.map +0 -1
  428. package/dist/production/core/QueryGenerator.cjs +0 -113
  429. package/dist/production/core/QueryGenerator.cjs.map +0 -1
  430. package/dist/production/core/QueryGenerator.js +0 -113
  431. package/dist/production/core/QueryGenerator.js.map +0 -1
  432. package/dist/production/core/RealmKeyGenerator.cjs +0 -47
  433. package/dist/production/core/RealmKeyGenerator.cjs.map +0 -1
  434. package/dist/production/core/RealmKeyGenerator.js +0 -47
  435. package/dist/production/core/RealmKeyGenerator.js.map +0 -1
  436. package/dist/production/core/RequestResponseNormalizer.cjs +0 -125
  437. package/dist/production/core/RequestResponseNormalizer.cjs.map +0 -1
  438. package/dist/production/core/RequestResponseNormalizer.js +0 -125
  439. package/dist/production/core/RequestResponseNormalizer.js.map +0 -1
  440. package/dist/production/core/StateInitializer.cjs +0 -390
  441. package/dist/production/core/StateInitializer.cjs.map +0 -1
  442. package/dist/production/core/StateInitializer.js +0 -390
  443. package/dist/production/core/StateInitializer.js.map +0 -1
  444. package/dist/production/core/TreeAugmenter.cjs +0 -213
  445. package/dist/production/core/TreeAugmenter.cjs.map +0 -1
  446. package/dist/production/core/TreeAugmenter.js +0 -213
  447. package/dist/production/core/TreeAugmenter.js.map +0 -1
  448. package/dist/production/core/TreeFilterGenerator.cjs +0 -83
  449. package/dist/production/core/TreeFilterGenerator.cjs.map +0 -1
  450. package/dist/production/core/TreeFilterGenerator.js +0 -83
  451. package/dist/production/core/TreeFilterGenerator.js.map +0 -1
  452. package/dist/production/core/TreeParameterMerger.cjs +0 -304
  453. package/dist/production/core/TreeParameterMerger.cjs.map +0 -1
  454. package/dist/production/core/TreeParameterMerger.js +0 -304
  455. package/dist/production/core/TreeParameterMerger.js.map +0 -1
  456. package/dist/production/core/TreeStore.cjs +0 -182
  457. package/dist/production/core/TreeStore.cjs.map +0 -1
  458. package/dist/production/core/TreeStore.js +0 -182
  459. package/dist/production/core/TreeStore.js.map +0 -1
  460. package/dist/production/core/VariableInputTransformer.cjs +0 -24
  461. package/dist/production/core/VariableInputTransformer.cjs.map +0 -1
  462. package/dist/production/core/VariableInputTransformer.js +0 -24
  463. package/dist/production/core/VariableInputTransformer.js.map +0 -1
  464. package/dist/production/core/exceptions/ErrorLocator.cjs +0 -62
  465. package/dist/production/core/exceptions/ErrorLocator.cjs.map +0 -1
  466. package/dist/production/core/exceptions/ErrorLocator.js +0 -62
  467. package/dist/production/core/exceptions/ErrorLocator.js.map +0 -1
  468. package/dist/production/core/exceptions/LocalizedBindingError.cjs +0 -14
  469. package/dist/production/core/exceptions/LocalizedBindingError.cjs.map +0 -1
  470. package/dist/production/core/exceptions/LocalizedBindingError.js +0 -14
  471. package/dist/production/core/exceptions/LocalizedBindingError.js.map +0 -1
  472. package/dist/production/core/exceptions/MarkerSugarer.cjs +0 -56
  473. package/dist/production/core/exceptions/MarkerSugarer.cjs.map +0 -1
  474. package/dist/production/core/exceptions/MarkerSugarer.js +0 -56
  475. package/dist/production/core/exceptions/MarkerSugarer.js.map +0 -1
  476. package/dist/production/core/exceptions/TreeParameterSugarer.cjs +0 -33
  477. package/dist/production/core/exceptions/TreeParameterSugarer.cjs.map +0 -1
  478. package/dist/production/core/exceptions/TreeParameterSugarer.js +0 -33
  479. package/dist/production/core/exceptions/TreeParameterSugarer.js.map +0 -1
  480. package/dist/production/core/factories/createBatchUpdatesOptions.cjs +0 -20
  481. package/dist/production/core/factories/createBatchUpdatesOptions.cjs.map +0 -1
  482. package/dist/production/core/factories/createBatchUpdatesOptions.js +0 -20
  483. package/dist/production/core/factories/createBatchUpdatesOptions.js.map +0 -1
  484. package/dist/production/core/operations/EntityOperations.cjs +0 -230
  485. package/dist/production/core/operations/EntityOperations.cjs.map +0 -1
  486. package/dist/production/core/operations/EntityOperations.js +0 -230
  487. package/dist/production/core/operations/EntityOperations.js.map +0 -1
  488. package/dist/production/core/operations/FieldOperations.cjs +0 -76
  489. package/dist/production/core/operations/FieldOperations.cjs.map +0 -1
  490. package/dist/production/core/operations/FieldOperations.js +0 -76
  491. package/dist/production/core/operations/FieldOperations.js.map +0 -1
  492. package/dist/production/core/operations/ListOperations.cjs +0 -159
  493. package/dist/production/core/operations/ListOperations.cjs.map +0 -1
  494. package/dist/production/core/operations/ListOperations.js +0 -159
  495. package/dist/production/core/operations/ListOperations.js.map +0 -1
  496. package/dist/production/core/operations/OperationsHelpers.cjs +0 -85
  497. package/dist/production/core/operations/OperationsHelpers.cjs.map +0 -1
  498. package/dist/production/core/operations/OperationsHelpers.js +0 -85
  499. package/dist/production/core/operations/OperationsHelpers.js.map +0 -1
  500. package/dist/production/core/requestAliases/MutationAlias.cjs +0 -14
  501. package/dist/production/core/requestAliases/MutationAlias.cjs.map +0 -1
  502. package/dist/production/core/requestAliases/MutationAlias.js +0 -14
  503. package/dist/production/core/requestAliases/MutationAlias.js.map +0 -1
  504. package/dist/production/core/schema/Schema.cjs +0 -39
  505. package/dist/production/core/schema/Schema.cjs.map +0 -1
  506. package/dist/production/core/schema/Schema.js +0 -39
  507. package/dist/production/core/schema/Schema.js.map +0 -1
  508. package/dist/production/core/schema/SchemaLoader.cjs +0 -28
  509. package/dist/production/core/schema/SchemaLoader.cjs.map +0 -1
  510. package/dist/production/core/schema/SchemaLoader.js +0 -28
  511. package/dist/production/core/schema/SchemaLoader.js.map +0 -1
  512. package/dist/production/core/schema/SchemaPreprocessor.cjs +0 -38
  513. package/dist/production/core/schema/SchemaPreprocessor.cjs.map +0 -1
  514. package/dist/production/core/schema/SchemaPreprocessor.js +0 -38
  515. package/dist/production/core/schema/SchemaPreprocessor.js.map +0 -1
  516. package/dist/production/core/state/StateIterator.cjs +0 -100
  517. package/dist/production/core/state/StateIterator.cjs.map +0 -1
  518. package/dist/production/core/state/StateIterator.js +0 -100
  519. package/dist/production/core/state/StateIterator.js.map +0 -1
  520. package/dist/production/core/state/getEntityMarker.cjs +0 -5
  521. package/dist/production/core/state/getEntityMarker.cjs.map +0 -1
  522. package/dist/production/core/state/getEntityMarker.js +0 -5
  523. package/dist/production/core/state/getEntityMarker.js.map +0 -1
  524. package/dist/production/core/utils/createQueryBuilder.cjs +0 -32
  525. package/dist/production/core/utils/createQueryBuilder.cjs.map +0 -1
  526. package/dist/production/core/utils/createQueryBuilder.js +0 -32
  527. package/dist/production/core/utils/createQueryBuilder.js.map +0 -1
  528. package/dist/production/core/utils/getCombinedSignal.cjs +0 -33
  529. package/dist/production/core/utils/getCombinedSignal.cjs.map +0 -1
  530. package/dist/production/core/utils/getCombinedSignal.js +0 -33
  531. package/dist/production/core/utils/getCombinedSignal.js.map +0 -1
  532. package/dist/production/dao/Environment.cjs +0 -213
  533. package/dist/production/dao/Environment.cjs.map +0 -1
  534. package/dist/production/dao/Environment.js +0 -213
  535. package/dist/production/dao/Environment.js.map +0 -1
  536. package/dist/production/dao/TreeNodeEnvironmentFactory.cjs +0 -89
  537. package/dist/production/dao/TreeNodeEnvironmentFactory.cjs.map +0 -1
  538. package/dist/production/dao/TreeNodeEnvironmentFactory.js +0 -89
  539. package/dist/production/dao/TreeNodeEnvironmentFactory.js.map +0 -1
  540. package/dist/production/dao/VariableFieldValue.cjs +0 -9
  541. package/dist/production/dao/VariableFieldValue.cjs.map +0 -1
  542. package/dist/production/dao/VariableFieldValue.js +0 -9
  543. package/dist/production/dao/VariableFieldValue.js.map +0 -1
  544. package/dist/production/fieldHelpers/helpers/FieldHelper.cjs +0 -17
  545. package/dist/production/fieldHelpers/helpers/FieldHelper.cjs.map +0 -1
  546. package/dist/production/fieldHelpers/helpers/FieldHelper.js +0 -17
  547. package/dist/production/fieldHelpers/helpers/FieldHelper.js.map +0 -1
  548. package/dist/production/fieldHelpers/helpers/TemporalFieldHelper.cjs +0 -18
  549. package/dist/production/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +0 -1
  550. package/dist/production/fieldHelpers/helpers/TemporalFieldHelper.js +0 -18
  551. package/dist/production/fieldHelpers/helpers/TemporalFieldHelper.js.map +0 -1
  552. package/dist/production/fieldHelpers/helpers/UuidFieldHelper.cjs +0 -16
  553. package/dist/production/fieldHelpers/helpers/UuidFieldHelper.cjs.map +0 -1
  554. package/dist/production/fieldHelpers/helpers/UuidFieldHelper.js +0 -16
  555. package/dist/production/fieldHelpers/helpers/UuidFieldHelper.js.map +0 -1
  556. package/dist/production/markers/EntityFieldMarkersContainer.cjs +0 -41
  557. package/dist/production/markers/EntityFieldMarkersContainer.cjs.map +0 -1
  558. package/dist/production/markers/EntityFieldMarkersContainer.js +0 -41
  559. package/dist/production/markers/EntityFieldMarkersContainer.js.map +0 -1
  560. package/dist/production/markers/EntityFieldsWithHoistablesMarker.cjs +0 -11
  561. package/dist/production/markers/EntityFieldsWithHoistablesMarker.cjs.map +0 -1
  562. package/dist/production/markers/EntityFieldsWithHoistablesMarker.js +0 -11
  563. package/dist/production/markers/EntityFieldsWithHoistablesMarker.js.map +0 -1
  564. package/dist/production/markers/EntityListSubTreeMarker.cjs +0 -23
  565. package/dist/production/markers/EntityListSubTreeMarker.cjs.map +0 -1
  566. package/dist/production/markers/EntityListSubTreeMarker.js +0 -23
  567. package/dist/production/markers/EntityListSubTreeMarker.js.map +0 -1
  568. package/dist/production/markers/EntitySubTreeMarker.cjs +0 -23
  569. package/dist/production/markers/EntitySubTreeMarker.cjs.map +0 -1
  570. package/dist/production/markers/EntitySubTreeMarker.js +0 -23
  571. package/dist/production/markers/EntitySubTreeMarker.js.map +0 -1
  572. package/dist/production/markers/FieldMarker.cjs +0 -20
  573. package/dist/production/markers/FieldMarker.cjs.map +0 -1
  574. package/dist/production/markers/FieldMarker.js +0 -20
  575. package/dist/production/markers/FieldMarker.js.map +0 -1
  576. package/dist/production/markers/HasManyRelationMarker.cjs +0 -23
  577. package/dist/production/markers/HasManyRelationMarker.cjs.map +0 -1
  578. package/dist/production/markers/HasManyRelationMarker.js +0 -23
  579. package/dist/production/markers/HasManyRelationMarker.js.map +0 -1
  580. package/dist/production/markers/HasOneRelationMarker.cjs +0 -23
  581. package/dist/production/markers/HasOneRelationMarker.cjs.map +0 -1
  582. package/dist/production/markers/HasOneRelationMarker.js +0 -23
  583. package/dist/production/markers/HasOneRelationMarker.js.map +0 -1
  584. package/dist/production/markers/MarkerTreeRoot.cjs +0 -10
  585. package/dist/production/markers/MarkerTreeRoot.cjs.map +0 -1
  586. package/dist/production/markers/MarkerTreeRoot.js +0 -10
  587. package/dist/production/markers/MarkerTreeRoot.js.map +0 -1
  588. package/dist/production/markers/ParentEntityMarker.cjs +0 -10
  589. package/dist/production/markers/ParentEntityMarker.cjs.map +0 -1
  590. package/dist/production/markers/ParentEntityMarker.js +0 -10
  591. package/dist/production/markers/ParentEntityMarker.js.map +0 -1
  592. package/dist/production/markers/PlaceholderGenerator.cjs +0 -23
  593. package/dist/production/markers/PlaceholderGenerator.cjs.map +0 -1
  594. package/dist/production/markers/PlaceholderGenerator.js +0 -23
  595. package/dist/production/markers/PlaceholderGenerator.js.map +0 -1
  596. package/dist/production/markers/PlaceholderParametersGenerator.cjs +0 -62
  597. package/dist/production/markers/PlaceholderParametersGenerator.cjs.map +0 -1
  598. package/dist/production/markers/PlaceholderParametersGenerator.js +0 -62
  599. package/dist/production/markers/PlaceholderParametersGenerator.js.map +0 -1
  600. package/dist/production/queryLanguage/CacheStore.cjs +0 -47
  601. package/dist/production/queryLanguage/CacheStore.cjs.map +0 -1
  602. package/dist/production/queryLanguage/CacheStore.js +0 -47
  603. package/dist/production/queryLanguage/CacheStore.js.map +0 -1
  604. package/dist/production/queryLanguage/MarkerFactory.cjs +0 -200
  605. package/dist/production/queryLanguage/MarkerFactory.cjs.map +0 -1
  606. package/dist/production/queryLanguage/MarkerFactory.js +0 -200
  607. package/dist/production/queryLanguage/MarkerFactory.js.map +0 -1
  608. package/dist/production/queryLanguage/Parser.cjs +0 -725
  609. package/dist/production/queryLanguage/Parser.cjs.map +0 -1
  610. package/dist/production/queryLanguage/Parser.js +0 -725
  611. package/dist/production/queryLanguage/Parser.js.map +0 -1
  612. package/dist/production/queryLanguage/QueryLanguage.cjs +0 -517
  613. package/dist/production/queryLanguage/QueryLanguage.cjs.map +0 -1
  614. package/dist/production/queryLanguage/QueryLanguage.js +0 -517
  615. package/dist/production/queryLanguage/QueryLanguage.js.map +0 -1
  616. package/dist/production/queryLanguage/QueryLanguageError.cjs +0 -6
  617. package/dist/production/queryLanguage/QueryLanguageError.cjs.map +0 -1
  618. package/dist/production/queryLanguage/QueryLanguageError.js +0 -6
  619. package/dist/production/queryLanguage/QueryLanguageError.js.map +0 -1
  620. package/dist/production/queryLanguage/tokenList.cjs +0 -150
  621. package/dist/production/queryLanguage/tokenList.cjs.map +0 -1
  622. package/dist/production/queryLanguage/tokenList.js +0 -151
  623. package/dist/production/queryLanguage/tokenList.js.map +0 -1
  624. package/dist/production/structures/BijectiveIndexedMap.cjs +0 -120
  625. package/dist/production/structures/BijectiveIndexedMap.cjs.map +0 -1
  626. package/dist/production/structures/BijectiveIndexedMap.js +0 -120
  627. package/dist/production/structures/BijectiveIndexedMap.js.map +0 -1
  628. package/dist/production/structures/LRUCache.cjs +0 -35
  629. package/dist/production/structures/LRUCache.cjs.map +0 -1
  630. package/dist/production/structures/LRUCache.js +0 -35
  631. package/dist/production/structures/LRUCache.js.map +0 -1
  632. package/dist/production/structures/WeakIdCache.cjs +0 -33
  633. package/dist/production/structures/WeakIdCache.cjs.map +0 -1
  634. package/dist/production/structures/WeakIdCache.js +0 -33
  635. package/dist/production/structures/WeakIdCache.js.map +0 -1
  636. package/dist/production/treeParameterHelpers/wrapFilterInHasOnes.cjs +0 -22
  637. package/dist/production/treeParameterHelpers/wrapFilterInHasOnes.cjs.map +0 -1
  638. package/dist/production/treeParameterHelpers/wrapFilterInHasOnes.js +0 -22
  639. package/dist/production/treeParameterHelpers/wrapFilterInHasOnes.js.map +0 -1
  640. package/dist/production/treeParameters/EntityCreationParameters.cjs +0 -8
  641. package/dist/production/treeParameters/EntityCreationParameters.cjs.map +0 -1
  642. package/dist/production/treeParameters/EntityCreationParameters.js +0 -8
  643. package/dist/production/treeParameters/EntityCreationParameters.js.map +0 -1
  644. package/dist/production/treeParameters/EntityListPreferences.cjs +0 -7
  645. package/dist/production/treeParameters/EntityListPreferences.cjs.map +0 -1
  646. package/dist/production/treeParameters/EntityListPreferences.js +0 -7
  647. package/dist/production/treeParameters/EntityListPreferences.js.map +0 -1
  648. package/dist/production/treeParameters/EventListenersStore.cjs +0 -70
  649. package/dist/production/treeParameters/EventListenersStore.cjs.map +0 -1
  650. package/dist/production/treeParameters/EventListenersStore.js +0 -70
  651. package/dist/production/treeParameters/EventListenersStore.js.map +0 -1
  652. package/dist/production/treeParameters/LeafField.cjs +0 -7
  653. package/dist/production/treeParameters/LeafField.cjs.map +0 -1
  654. package/dist/production/treeParameters/LeafField.js +0 -7
  655. package/dist/production/treeParameters/LeafField.js.map +0 -1
  656. package/dist/production/treeParameters/QualifiedEntityParameters.cjs +0 -7
  657. package/dist/production/treeParameters/QualifiedEntityParameters.cjs.map +0 -1
  658. package/dist/production/treeParameters/QualifiedEntityParameters.js +0 -7
  659. package/dist/production/treeParameters/QualifiedEntityParameters.js.map +0 -1
  660. package/dist/production/treeParameters/Relation.cjs +0 -7
  661. package/dist/production/treeParameters/Relation.cjs.map +0 -1
  662. package/dist/production/treeParameters/Relation.js +0 -7
  663. package/dist/production/treeParameters/Relation.js.map +0 -1
  664. package/dist/production/utils/Hashing.cjs +0 -22
  665. package/dist/production/utils/Hashing.cjs.map +0 -1
  666. package/dist/production/utils/Hashing.js +0 -22
  667. package/dist/production/utils/Hashing.js.map +0 -1
  668. package/dist/production/utils/TreeNodeUtils.cjs +0 -77
  669. package/dist/production/utils/TreeNodeUtils.cjs.map +0 -1
  670. package/dist/production/utils/TreeNodeUtils.js +0 -77
  671. package/dist/production/utils/TreeNodeUtils.js.map +0 -1
  672. package/dist/production/utils/assert.cjs +0 -11
  673. package/dist/production/utils/assert.cjs.map +0 -1
  674. package/dist/production/utils/assert.js +0 -11
  675. package/dist/production/utils/assert.js.map +0 -1
  676. package/dist/production/utils/assertNever.cjs +0 -10
  677. package/dist/production/utils/assertNever.cjs.map +0 -1
  678. package/dist/production/utils/assertNever.js +0 -10
  679. package/dist/production/utils/assertNever.js.map +0 -1
  680. package/dist/production/utils/generateEnumerabilityPreventingEntropy.cjs +0 -7
  681. package/dist/production/utils/generateEnumerabilityPreventingEntropy.cjs.map +0 -1
  682. package/dist/production/utils/generateEnumerabilityPreventingEntropy.js +0 -7
  683. package/dist/production/utils/generateEnumerabilityPreventingEntropy.js.map +0 -1
  684. package/dist/production/utils/isEmptyObject.cjs +0 -12
  685. package/dist/production/utils/isEmptyObject.cjs.map +0 -1
  686. package/dist/production/utils/isEmptyObject.js +0 -12
  687. package/dist/production/utils/isEmptyObject.js.map +0 -1
  688. package/dist/production/utils/ucfirst.cjs +0 -5
  689. package/dist/production/utils/ucfirst.cjs.map +0 -1
  690. package/dist/production/utils/ucfirst.js +0 -5
  691. package/dist/production/utils/ucfirst.js.map +0 -1
  692. package/dist/types/BindingError.d.ts +0 -4
  693. package/dist/types/BindingError.d.ts.map +0 -1
  694. package/dist/types/accessorTree/NormalizedPersistedData.d.ts +0 -13
  695. package/dist/types/accessorTree/NormalizedPersistedData.d.ts.map +0 -1
  696. package/dist/types/accessorTree/PersistResult.d.ts +0 -23
  697. package/dist/types/accessorTree/PersistResult.d.ts.map +0 -1
  698. package/dist/types/accessorTree/QueryRequestResponse.d.ts +0 -20
  699. package/dist/types/accessorTree/QueryRequestResponse.d.ts.map +0 -1
  700. package/dist/types/accessorTree/RuntimeId.d.ts +0 -35
  701. package/dist/types/accessorTree/RuntimeId.d.ts.map +0 -1
  702. package/dist/types/accessorTree/index.d.ts +0 -5
  703. package/dist/types/accessorTree/index.d.ts.map +0 -1
  704. package/dist/types/accessors/AsyncBatchUpdatesOptions.d.ts +0 -8
  705. package/dist/types/accessors/AsyncBatchUpdatesOptions.d.ts.map +0 -1
  706. package/dist/types/accessors/BatchUpdatesOptions.d.ts +0 -9
  707. package/dist/types/accessors/BatchUpdatesOptions.d.ts.map +0 -1
  708. package/dist/types/accessors/BindingConfig.d.ts +0 -6
  709. package/dist/types/accessors/BindingConfig.d.ts.map +0 -1
  710. package/dist/types/accessors/BindingOperations.d.ts +0 -12
  711. package/dist/types/accessors/BindingOperations.d.ts.map +0 -1
  712. package/dist/types/accessors/EntityAccessor.d.ts +0 -95
  713. package/dist/types/accessors/EntityAccessor.d.ts.map +0 -1
  714. package/dist/types/accessors/EntityListAccessor.d.ts +0 -88
  715. package/dist/types/accessors/EntityListAccessor.d.ts.map +0 -1
  716. package/dist/types/accessors/ErrorAccessor.d.ts +0 -29
  717. package/dist/types/accessors/ErrorAccessor.d.ts.map +0 -1
  718. package/dist/types/accessors/Errorable.d.ts +0 -5
  719. package/dist/types/accessors/Errorable.d.ts.map +0 -1
  720. package/dist/types/accessors/ExtendTree.d.ts +0 -8
  721. package/dist/types/accessors/ExtendTree.d.ts.map +0 -1
  722. package/dist/types/accessors/FieldAccessor.d.ts +0 -57
  723. package/dist/types/accessors/FieldAccessor.d.ts.map +0 -1
  724. package/dist/types/accessors/GetEntityByKey.d.ts +0 -3
  725. package/dist/types/accessors/GetEntityByKey.d.ts.map +0 -1
  726. package/dist/types/accessors/GetEntityListSubTree.d.ts +0 -5
  727. package/dist/types/accessors/GetEntityListSubTree.d.ts.map +0 -1
  728. package/dist/types/accessors/GetEntitySubTree.d.ts +0 -5
  729. package/dist/types/accessors/GetEntitySubTree.d.ts.map +0 -1
  730. package/dist/types/accessors/Persist.d.ts +0 -10
  731. package/dist/types/accessors/Persist.d.ts.map +0 -1
  732. package/dist/types/accessors/PersistErrorOptions.d.ts +0 -8
  733. package/dist/types/accessors/PersistErrorOptions.d.ts.map +0 -1
  734. package/dist/types/accessors/PersistSuccessOptions.d.ts +0 -5
  735. package/dist/types/accessors/PersistSuccessOptions.d.ts.map +0 -1
  736. package/dist/types/accessors/TreeRootAccessor.d.ts +0 -11
  737. package/dist/types/accessors/TreeRootAccessor.d.ts.map +0 -1
  738. package/dist/types/accessors/index.d.ts +0 -18
  739. package/dist/types/accessors/index.d.ts.map +0 -1
  740. package/dist/types/bindingTypes.d.ts +0 -4
  741. package/dist/types/bindingTypes.d.ts.map +0 -1
  742. package/dist/types/core/AccessorErrorManager.d.ts +0 -25
  743. package/dist/types/core/AccessorErrorManager.d.ts.map +0 -1
  744. package/dist/types/core/Config.d.ts +0 -9
  745. package/dist/types/core/Config.d.ts.map +0 -1
  746. package/dist/types/core/DataBinding.d.ts +0 -50
  747. package/dist/types/core/DataBinding.d.ts.map +0 -1
  748. package/dist/types/core/DirtinessTracker.d.ts +0 -9
  749. package/dist/types/core/DirtinessTracker.d.ts.map +0 -1
  750. package/dist/types/core/ErrorsPreprocessor.d.ts +0 -35
  751. package/dist/types/core/ErrorsPreprocessor.d.ts.map +0 -1
  752. package/dist/types/core/EventManager.d.ts +0 -57
  753. package/dist/types/core/EventManager.d.ts.map +0 -1
  754. package/dist/types/core/MarkerComparator.d.ts +0 -8
  755. package/dist/types/core/MarkerComparator.d.ts.map +0 -1
  756. package/dist/types/core/MarkerMerger.d.ts +0 -22
  757. package/dist/types/core/MarkerMerger.d.ts.map +0 -1
  758. package/dist/types/core/MutationGenerator.d.ts +0 -46
  759. package/dist/types/core/MutationGenerator.d.ts.map +0 -1
  760. package/dist/types/core/QueryGenerator.d.ts +0 -12
  761. package/dist/types/core/QueryGenerator.d.ts.map +0 -1
  762. package/dist/types/core/RealmKeyGenerator.d.ts +0 -11
  763. package/dist/types/core/RealmKeyGenerator.d.ts.map +0 -1
  764. package/dist/types/core/RequestResponseNormalizer.d.ts +0 -10
  765. package/dist/types/core/RequestResponseNormalizer.d.ts.map +0 -1
  766. package/dist/types/core/StateInitializer.d.ts +0 -34
  767. package/dist/types/core/StateInitializer.d.ts.map +0 -1
  768. package/dist/types/core/TreeAugmenter.d.ts +0 -22
  769. package/dist/types/core/TreeAugmenter.d.ts.map +0 -1
  770. package/dist/types/core/TreeFilterGenerator.d.ts +0 -13
  771. package/dist/types/core/TreeFilterGenerator.d.ts.map +0 -1
  772. package/dist/types/core/TreeParameterMerger.d.ts +0 -20
  773. package/dist/types/core/TreeParameterMerger.d.ts.map +0 -1
  774. package/dist/types/core/TreeStore.d.ts +0 -32
  775. package/dist/types/core/TreeStore.d.ts.map +0 -1
  776. package/dist/types/core/UpdateMetadata.d.ts +0 -4
  777. package/dist/types/core/UpdateMetadata.d.ts.map +0 -1
  778. package/dist/types/core/VariableInputTransformer.d.ts +0 -7
  779. package/dist/types/core/VariableInputTransformer.d.ts.map +0 -1
  780. package/dist/types/core/exceptions/ErrorLocator.d.ts +0 -8
  781. package/dist/types/core/exceptions/ErrorLocator.d.ts.map +0 -1
  782. package/dist/types/core/exceptions/LocalizedBindingError.d.ts +0 -9
  783. package/dist/types/core/exceptions/LocalizedBindingError.d.ts.map +0 -1
  784. package/dist/types/core/exceptions/MarkerSugarer.d.ts +0 -10
  785. package/dist/types/core/exceptions/MarkerSugarer.d.ts.map +0 -1
  786. package/dist/types/core/exceptions/RawMarkerPath.d.ts +0 -3
  787. package/dist/types/core/exceptions/RawMarkerPath.d.ts.map +0 -1
  788. package/dist/types/core/exceptions/TreeParameterSugarer.d.ts +0 -11
  789. package/dist/types/core/exceptions/TreeParameterSugarer.d.ts.map +0 -1
  790. package/dist/types/core/exceptions/index.d.ts +0 -6
  791. package/dist/types/core/exceptions/index.d.ts.map +0 -1
  792. package/dist/types/core/factories/createBatchUpdatesOptions.d.ts +0 -5
  793. package/dist/types/core/factories/createBatchUpdatesOptions.d.ts.map +0 -1
  794. package/dist/types/core/factories/index.d.ts +0 -2
  795. package/dist/types/core/factories/index.d.ts.map +0 -1
  796. package/dist/types/core/index.d.ts +0 -14
  797. package/dist/types/core/index.d.ts.map +0 -1
  798. package/dist/types/core/operations/EntityOperations.d.ts +0 -26
  799. package/dist/types/core/operations/EntityOperations.d.ts.map +0 -1
  800. package/dist/types/core/operations/FieldOperations.d.ts +0 -22
  801. package/dist/types/core/operations/FieldOperations.d.ts.map +0 -1
  802. package/dist/types/core/operations/ListOperations.d.ts +0 -33
  803. package/dist/types/core/operations/ListOperations.d.ts.map +0 -1
  804. package/dist/types/core/operations/OperationsHelpers.d.ts +0 -14
  805. package/dist/types/core/operations/OperationsHelpers.d.ts.map +0 -1
  806. package/dist/types/core/operations/index.d.ts +0 -4
  807. package/dist/types/core/operations/index.d.ts.map +0 -1
  808. package/dist/types/core/requestAliases/MutationAlias.d.ts +0 -6
  809. package/dist/types/core/requestAliases/MutationAlias.d.ts.map +0 -1
  810. package/dist/types/core/requestAliases/index.d.ts +0 -2
  811. package/dist/types/core/requestAliases/index.d.ts.map +0 -1
  812. package/dist/types/core/schema/RawSchema.d.ts +0 -7
  813. package/dist/types/core/schema/RawSchema.d.ts.map +0 -1
  814. package/dist/types/core/schema/RawSchemaEntity.d.ts +0 -13
  815. package/dist/types/core/schema/RawSchemaEntity.d.ts.map +0 -1
  816. package/dist/types/core/schema/RawSchemaEnum.d.ts +0 -6
  817. package/dist/types/core/schema/RawSchemaEnum.d.ts.map +0 -1
  818. package/dist/types/core/schema/Schema.d.ts +0 -21
  819. package/dist/types/core/schema/Schema.d.ts.map +0 -1
  820. package/dist/types/core/schema/SchemaColumn.d.ts +0 -12
  821. package/dist/types/core/schema/SchemaColumn.d.ts.map +0 -1
  822. package/dist/types/core/schema/SchemaColumnType.d.ts +0 -3
  823. package/dist/types/core/schema/SchemaColumnType.d.ts.map +0 -1
  824. package/dist/types/core/schema/SchemaEntities.d.ts +0 -4
  825. package/dist/types/core/schema/SchemaEntities.d.ts.map +0 -1
  826. package/dist/types/core/schema/SchemaEntity.d.ts +0 -10
  827. package/dist/types/core/schema/SchemaEntity.d.ts.map +0 -1
  828. package/dist/types/core/schema/SchemaEnums.d.ts +0 -4
  829. package/dist/types/core/schema/SchemaEnums.d.ts.map +0 -1
  830. package/dist/types/core/schema/SchemaField.d.ts +0 -4
  831. package/dist/types/core/schema/SchemaField.d.ts.map +0 -1
  832. package/dist/types/core/schema/SchemaFields.d.ts +0 -4
  833. package/dist/types/core/schema/SchemaFields.d.ts.map +0 -1
  834. package/dist/types/core/schema/SchemaLoader.d.ts +0 -8
  835. package/dist/types/core/schema/SchemaLoader.d.ts.map +0 -1
  836. package/dist/types/core/schema/SchemaPreprocessor.d.ts +0 -9
  837. package/dist/types/core/schema/SchemaPreprocessor.d.ts.map +0 -1
  838. package/dist/types/core/schema/SchemaRelation.d.ts +0 -24
  839. package/dist/types/core/schema/SchemaRelation.d.ts.map +0 -1
  840. package/dist/types/core/schema/SchemaRelationOrderBy.d.ts +0 -5
  841. package/dist/types/core/schema/SchemaRelationOrderBy.d.ts.map +0 -1
  842. package/dist/types/core/schema/SchemaStore.d.ts +0 -7
  843. package/dist/types/core/schema/SchemaStore.d.ts.map +0 -1
  844. package/dist/types/core/schema/SchemaUniqueConstraint.d.ts +0 -5
  845. package/dist/types/core/schema/SchemaUniqueConstraint.d.ts.map +0 -1
  846. package/dist/types/core/schema/index.d.ts +0 -16
  847. package/dist/types/core/schema/index.d.ts.map +0 -1
  848. package/dist/types/core/state/EntityListState.d.ts +0 -29
  849. package/dist/types/core/state/EntityListState.d.ts.map +0 -1
  850. package/dist/types/core/state/EntityRealmState.d.ts +0 -44
  851. package/dist/types/core/state/EntityRealmState.d.ts.map +0 -1
  852. package/dist/types/core/state/EntityState.d.ts +0 -12
  853. package/dist/types/core/state/EntityState.d.ts.map +0 -1
  854. package/dist/types/core/state/FieldState.d.ts +0 -19
  855. package/dist/types/core/state/FieldState.d.ts.map +0 -1
  856. package/dist/types/core/state/StateIterator.d.ts +0 -14
  857. package/dist/types/core/state/StateIterator.d.ts.map +0 -1
  858. package/dist/types/core/state/StateNode.d.ts +0 -8
  859. package/dist/types/core/state/StateNode.d.ts.map +0 -1
  860. package/dist/types/core/state/getEntityMarker.d.ts +0 -3
  861. package/dist/types/core/state/getEntityMarker.d.ts.map +0 -1
  862. package/dist/types/core/state/index.d.ts +0 -8
  863. package/dist/types/core/state/index.d.ts.map +0 -1
  864. package/dist/types/core/utils/createQueryBuilder.d.ts +0 -4
  865. package/dist/types/core/utils/createQueryBuilder.d.ts.map +0 -1
  866. package/dist/types/core/utils/getCombinedSignal.d.ts +0 -2
  867. package/dist/types/core/utils/getCombinedSignal.d.ts.map +0 -1
  868. package/dist/types/core/utils/index.d.ts +0 -2
  869. package/dist/types/core/utils/index.d.ts.map +0 -1
  870. package/dist/types/dao/Environment.d.ts +0 -107
  871. package/dist/types/dao/Environment.d.ts.map +0 -1
  872. package/dist/types/dao/TreeNodeEnvironmentFactory.d.ts +0 -15
  873. package/dist/types/dao/TreeNodeEnvironmentFactory.d.ts.map +0 -1
  874. package/dist/types/dao/VariableFieldValue.d.ts +0 -5
  875. package/dist/types/dao/VariableFieldValue.d.ts.map +0 -1
  876. package/dist/types/dao/index.d.ts +0 -4
  877. package/dist/types/dao/index.d.ts.map +0 -1
  878. package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts +0 -7
  879. package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts.map +0 -1
  880. package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts +0 -10
  881. package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts.map +0 -1
  882. package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts +0 -10
  883. package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts.map +0 -1
  884. package/dist/types/fieldHelpers/helpers/index.d.ts +0 -3
  885. package/dist/types/fieldHelpers/helpers/index.d.ts.map +0 -1
  886. package/dist/types/fieldHelpers/index.d.ts +0 -2
  887. package/dist/types/fieldHelpers/index.d.ts.map +0 -1
  888. package/dist/types/markers/EntityFieldMarkers.d.ts +0 -7
  889. package/dist/types/markers/EntityFieldMarkers.d.ts.map +0 -1
  890. package/dist/types/markers/EntityFieldMarkersContainer.d.ts +0 -13
  891. package/dist/types/markers/EntityFieldMarkersContainer.d.ts.map +0 -1
  892. package/dist/types/markers/EntityFieldPlaceholders.d.ts +0 -3
  893. package/dist/types/markers/EntityFieldPlaceholders.d.ts.map +0 -1
  894. package/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts +0 -10
  895. package/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts.map +0 -1
  896. package/dist/types/markers/EntityListSubTreeMarker.d.ts +0 -12
  897. package/dist/types/markers/EntityListSubTreeMarker.d.ts.map +0 -1
  898. package/dist/types/markers/EntitySubTreeMarker.d.ts +0 -12
  899. package/dist/types/markers/EntitySubTreeMarker.d.ts.map +0 -1
  900. package/dist/types/markers/FieldMarker.d.ts +0 -14
  901. package/dist/types/markers/FieldMarker.d.ts.map +0 -1
  902. package/dist/types/markers/HasManyRelationMarker.d.ts +0 -12
  903. package/dist/types/markers/HasManyRelationMarker.d.ts.map +0 -1
  904. package/dist/types/markers/HasOneRelationMarker.d.ts +0 -12
  905. package/dist/types/markers/HasOneRelationMarker.d.ts.map +0 -1
  906. package/dist/types/markers/MarkerTreeRoot.d.ts +0 -8
  907. package/dist/types/markers/MarkerTreeRoot.d.ts.map +0 -1
  908. package/dist/types/markers/MeaningfulMarker.d.ts +0 -7
  909. package/dist/types/markers/MeaningfulMarker.d.ts.map +0 -1
  910. package/dist/types/markers/ParentEntityMarker.d.ts +0 -8
  911. package/dist/types/markers/ParentEntityMarker.d.ts.map +0 -1
  912. package/dist/types/markers/PlaceholderGenerator.d.ts +0 -10
  913. package/dist/types/markers/PlaceholderGenerator.d.ts.map +0 -1
  914. package/dist/types/markers/PlaceholderParametersGenerator.d.ts +0 -9
  915. package/dist/types/markers/PlaceholderParametersGenerator.d.ts.map +0 -1
  916. package/dist/types/markers/SubTreeMarkers.d.ts +0 -5
  917. package/dist/types/markers/SubTreeMarkers.d.ts.map +0 -1
  918. package/dist/types/markers/index.d.ts +0 -15
  919. package/dist/types/markers/index.d.ts.map +0 -1
  920. package/dist/types/queryLanguage/CacheStore.d.ts +0 -9
  921. package/dist/types/queryLanguage/CacheStore.d.ts.map +0 -1
  922. package/dist/types/queryLanguage/MarkerFactory.d.ts +0 -21
  923. package/dist/types/queryLanguage/MarkerFactory.d.ts.map +0 -1
  924. package/dist/types/queryLanguage/Parser.d.ts +0 -83
  925. package/dist/types/queryLanguage/Parser.d.ts.map +0 -1
  926. package/dist/types/queryLanguage/ParserResults.d.ts +0 -63
  927. package/dist/types/queryLanguage/ParserResults.d.ts.map +0 -1
  928. package/dist/types/queryLanguage/QueryLanguage.d.ts +0 -43
  929. package/dist/types/queryLanguage/QueryLanguage.d.ts.map +0 -1
  930. package/dist/types/queryLanguage/QueryLanguageError.d.ts +0 -3
  931. package/dist/types/queryLanguage/QueryLanguageError.d.ts.map +0 -1
  932. package/dist/types/queryLanguage/index.d.ts +0 -6
  933. package/dist/types/queryLanguage/index.d.ts.map +0 -1
  934. package/dist/types/queryLanguage/tokenList.d.ts +0 -35
  935. package/dist/types/queryLanguage/tokenList.d.ts.map +0 -1
  936. package/dist/types/structures/BijectiveIndexedMap.d.ts +0 -24
  937. package/dist/types/structures/BijectiveIndexedMap.d.ts.map +0 -1
  938. package/dist/types/structures/LRUCache.d.ts +0 -9
  939. package/dist/types/structures/LRUCache.d.ts.map +0 -1
  940. package/dist/types/structures/WeakIdCache.d.ts +0 -9
  941. package/dist/types/structures/WeakIdCache.d.ts.map +0 -1
  942. package/dist/types/structures/index.d.ts +0 -4
  943. package/dist/types/structures/index.d.ts.map +0 -1
  944. package/dist/types/treeParameterHelpers/index.d.ts +0 -2
  945. package/dist/types/treeParameterHelpers/index.d.ts.map +0 -1
  946. package/dist/types/treeParameterHelpers/wrapFilterInHasOnes.d.ts +0 -3
  947. package/dist/types/treeParameterHelpers/wrapFilterInHasOnes.d.ts.map +0 -1
  948. package/dist/types/treeParameters/AnyField.d.ts +0 -8
  949. package/dist/types/treeParameters/AnyField.d.ts.map +0 -1
  950. package/dist/types/treeParameters/EntityCreationParameters.d.ts +0 -13
  951. package/dist/types/treeParameters/EntityCreationParameters.d.ts.map +0 -1
  952. package/dist/types/treeParameters/EntityListEventListeners.d.ts +0 -15
  953. package/dist/types/treeParameters/EntityListEventListeners.d.ts.map +0 -1
  954. package/dist/types/treeParameters/EntityListParameters.d.ts +0 -17
  955. package/dist/types/treeParameters/EntityListParameters.d.ts.map +0 -1
  956. package/dist/types/treeParameters/EntityListPreferences.d.ts +0 -8
  957. package/dist/types/treeParameters/EntityListPreferences.d.ts.map +0 -1
  958. package/dist/types/treeParameters/EventListenersStore.d.ts +0 -33
  959. package/dist/types/treeParameters/EventListenersStore.d.ts.map +0 -1
  960. package/dist/types/treeParameters/FieldEventListeners.d.ts +0 -16
  961. package/dist/types/treeParameters/FieldEventListeners.d.ts.map +0 -1
  962. package/dist/types/treeParameters/HasManyRelation.d.ts +0 -10
  963. package/dist/types/treeParameters/HasManyRelation.d.ts.map +0 -1
  964. package/dist/types/treeParameters/HasOneRelation.d.ts +0 -13
  965. package/dist/types/treeParameters/HasOneRelation.d.ts.map +0 -1
  966. package/dist/types/treeParameters/LeafField.d.ts +0 -14
  967. package/dist/types/treeParameters/LeafField.d.ts.map +0 -1
  968. package/dist/types/treeParameters/ParentEntityParameters.d.ts +0 -8
  969. package/dist/types/treeParameters/ParentEntityParameters.d.ts.map +0 -1
  970. package/dist/types/treeParameters/QualifiedEntityList.d.ts +0 -19
  971. package/dist/types/treeParameters/QualifiedEntityList.d.ts.map +0 -1
  972. package/dist/types/treeParameters/QualifiedEntityParameters.d.ts +0 -17
  973. package/dist/types/treeParameters/QualifiedEntityParameters.d.ts.map +0 -1
  974. package/dist/types/treeParameters/QualifiedFieldList.d.ts +0 -16
  975. package/dist/types/treeParameters/QualifiedFieldList.d.ts.map +0 -1
  976. package/dist/types/treeParameters/QualifiedSingleEntity.d.ts +0 -20
  977. package/dist/types/treeParameters/QualifiedSingleEntity.d.ts.map +0 -1
  978. package/dist/types/treeParameters/QualifiedSingleEntityParameters.d.ts +0 -8
  979. package/dist/types/treeParameters/QualifiedSingleEntityParameters.d.ts.map +0 -1
  980. package/dist/types/treeParameters/Relation.d.ts +0 -15
  981. package/dist/types/treeParameters/Relation.d.ts.map +0 -1
  982. package/dist/types/treeParameters/RelativeEntityList.d.ts +0 -19
  983. package/dist/types/treeParameters/RelativeEntityList.d.ts.map +0 -1
  984. package/dist/types/treeParameters/RelativeSingleEntity.d.ts +0 -13
  985. package/dist/types/treeParameters/RelativeSingleEntity.d.ts.map +0 -1
  986. package/dist/types/treeParameters/RelativeSingleField.d.ts +0 -15
  987. package/dist/types/treeParameters/RelativeSingleField.d.ts.map +0 -1
  988. package/dist/types/treeParameters/SetOnCreate.d.ts +0 -4
  989. package/dist/types/treeParameters/SetOnCreate.d.ts.map +0 -1
  990. package/dist/types/treeParameters/SingleEntityEventListeners.d.ts +0 -16
  991. package/dist/types/treeParameters/SingleEntityEventListeners.d.ts.map +0 -1
  992. package/dist/types/treeParameters/SingleEntityParameters.d.ts +0 -8
  993. package/dist/types/treeParameters/SingleEntityParameters.d.ts.map +0 -1
  994. package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts +0 -21
  995. package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts.map +0 -1
  996. package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts +0 -20
  997. package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts.map +0 -1
  998. package/dist/types/treeParameters/index.d.ts +0 -27
  999. package/dist/types/treeParameters/index.d.ts.map +0 -1
  1000. package/dist/types/treeParameters/primitives/Alias.d.ts +0 -2
  1001. package/dist/types/treeParameters/primitives/Alias.d.ts.map +0 -1
  1002. package/dist/types/treeParameters/primitives/EntityId.d.ts +0 -2
  1003. package/dist/types/treeParameters/primitives/EntityId.d.ts.map +0 -1
  1004. package/dist/types/treeParameters/primitives/EntityName.d.ts +0 -2
  1005. package/dist/types/treeParameters/primitives/EntityName.d.ts.map +0 -1
  1006. package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts +0 -2
  1007. package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts.map +0 -1
  1008. package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts +0 -2
  1009. package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts.map +0 -1
  1010. package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts +0 -2
  1011. package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts.map +0 -1
  1012. package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts +0 -2
  1013. package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts.map +0 -1
  1014. package/dist/types/treeParameters/primitives/FieldName.d.ts +0 -2
  1015. package/dist/types/treeParameters/primitives/FieldName.d.ts.map +0 -1
  1016. package/dist/types/treeParameters/primitives/FieldValue.d.ts +0 -5
  1017. package/dist/types/treeParameters/primitives/FieldValue.d.ts.map +0 -1
  1018. package/dist/types/treeParameters/primitives/Filter.d.ts +0 -4
  1019. package/dist/types/treeParameters/primitives/Filter.d.ts.map +0 -1
  1020. package/dist/types/treeParameters/primitives/Json.d.ts +0 -7
  1021. package/dist/types/treeParameters/primitives/Json.d.ts.map +0 -1
  1022. package/dist/types/treeParameters/primitives/Limit.d.ts +0 -2
  1023. package/dist/types/treeParameters/primitives/Limit.d.ts.map +0 -1
  1024. package/dist/types/treeParameters/primitives/Offset.d.ts +0 -2
  1025. package/dist/types/treeParameters/primitives/Offset.d.ts.map +0 -1
  1026. package/dist/types/treeParameters/primitives/OrderBy.d.ts +0 -4
  1027. package/dist/types/treeParameters/primitives/OrderBy.d.ts.map +0 -1
  1028. package/dist/types/treeParameters/primitives/PlaceholderName.d.ts +0 -2
  1029. package/dist/types/treeParameters/primitives/PlaceholderName.d.ts.map +0 -1
  1030. package/dist/types/treeParameters/primitives/RemovalType.d.ts +0 -2
  1031. package/dist/types/treeParameters/primitives/RemovalType.d.ts.map +0 -1
  1032. package/dist/types/treeParameters/primitives/Scalar.d.ts +0 -2
  1033. package/dist/types/treeParameters/primitives/Scalar.d.ts.map +0 -1
  1034. package/dist/types/treeParameters/primitives/TreeRootId.d.ts +0 -2
  1035. package/dist/types/treeParameters/primitives/TreeRootId.d.ts.map +0 -1
  1036. package/dist/types/treeParameters/primitives/UniqueWhere.d.ts +0 -4
  1037. package/dist/types/treeParameters/primitives/UniqueWhere.d.ts.map +0 -1
  1038. package/dist/types/treeParameters/primitives/index.d.ts +0 -20
  1039. package/dist/types/treeParameters/primitives/index.d.ts.map +0 -1
  1040. package/dist/types/utils/Hashing.d.ts +0 -5
  1041. package/dist/types/utils/Hashing.d.ts.map +0 -1
  1042. package/dist/types/utils/TreeNodeUtils.d.ts +0 -13
  1043. package/dist/types/utils/TreeNodeUtils.d.ts.map +0 -1
  1044. package/dist/types/utils/assert.d.ts +0 -2
  1045. package/dist/types/utils/assert.d.ts.map +0 -1
  1046. package/dist/types/utils/assertNever.d.ts +0 -2
  1047. package/dist/types/utils/assertNever.d.ts.map +0 -1
  1048. package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts +0 -2
  1049. package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts.map +0 -1
  1050. package/dist/types/utils/index.d.ts +0 -7
  1051. package/dist/types/utils/index.d.ts.map +0 -1
  1052. package/dist/types/utils/isEmptyObject.d.ts +0 -2
  1053. package/dist/types/utils/isEmptyObject.d.ts.map +0 -1
  1054. package/dist/types/utils/ucfirst.d.ts +0 -2
  1055. package/dist/types/utils/ucfirst.d.ts.map +0 -1
  1056. package/src/BindingError.ts +0 -5
  1057. package/src/accessorTree/NormalizedPersistedData.ts +0 -23
  1058. package/src/accessorTree/PersistResult.ts +0 -28
  1059. package/src/accessorTree/QueryRequestResponse.ts +0 -23
  1060. package/src/accessorTree/RuntimeId.ts +0 -70
  1061. package/src/accessorTree/index.ts +0 -4
  1062. package/src/accessors/AsyncBatchUpdatesOptions.ts +0 -8
  1063. package/src/accessors/BatchUpdatesOptions.ts +0 -9
  1064. package/src/accessors/BindingConfig.ts +0 -5
  1065. package/src/accessors/BindingOperations.ts +0 -15
  1066. package/src/accessors/EntityAccessor.ts +0 -299
  1067. package/src/accessors/EntityListAccessor.ts +0 -183
  1068. package/src/accessors/ErrorAccessor.ts +0 -43
  1069. package/src/accessors/Errorable.ts +0 -5
  1070. package/src/accessors/ExtendTree.ts +0 -9
  1071. package/src/accessors/FieldAccessor.ts +0 -107
  1072. package/src/accessors/GetEntityByKey.ts +0 -3
  1073. package/src/accessors/GetEntityListSubTree.ts +0 -14
  1074. package/src/accessors/GetEntitySubTree.ts +0 -14
  1075. package/src/accessors/Persist.ts +0 -11
  1076. package/src/accessors/PersistErrorOptions.ts +0 -10
  1077. package/src/accessors/PersistSuccessOptions.ts +0 -5
  1078. package/src/accessors/TreeRootAccessor.ts +0 -14
  1079. package/src/accessors/index.ts +0 -17
  1080. package/src/bindingTypes.ts +0 -3
  1081. package/src/core/AccessorErrorManager.ts +0 -242
  1082. package/src/core/Config.ts +0 -27
  1083. package/src/core/DataBinding.ts +0 -430
  1084. package/src/core/DirtinessTracker.ts +0 -21
  1085. package/src/core/ErrorsPreprocessor.ts +0 -239
  1086. package/src/core/EventManager.ts +0 -589
  1087. package/src/core/MarkerComparator.ts +0 -102
  1088. package/src/core/MarkerMerger.ts +0 -296
  1089. package/src/core/MutationGenerator.ts +0 -823
  1090. package/src/core/QueryGenerator.ts +0 -127
  1091. package/src/core/RealmKeyGenerator.ts +0 -54
  1092. package/src/core/RequestResponseNormalizer.ts +0 -161
  1093. package/src/core/StateInitializer.ts +0 -558
  1094. package/src/core/TreeAugmenter.ts +0 -266
  1095. package/src/core/TreeFilterGenerator.ts +0 -116
  1096. package/src/core/TreeParameterMerger.ts +0 -382
  1097. package/src/core/TreeStore.ts +0 -256
  1098. package/src/core/UpdateMetadata.ts +0 -3
  1099. package/src/core/VariableInputTransformer.ts +0 -26
  1100. package/src/core/exceptions/ErrorLocator.ts +0 -58
  1101. package/src/core/exceptions/LocalizedBindingError.ts +0 -20
  1102. package/src/core/exceptions/MarkerSugarer.ts +0 -61
  1103. package/src/core/exceptions/RawMarkerPath.ts +0 -3
  1104. package/src/core/exceptions/TreeParameterSugarer.ts +0 -41
  1105. package/src/core/exceptions/index.ts +0 -5
  1106. package/src/core/factories/createBatchUpdatesOptions.ts +0 -38
  1107. package/src/core/factories/index.ts +0 -1
  1108. package/src/core/index.ts +0 -13
  1109. package/src/core/operations/EntityOperations.ts +0 -306
  1110. package/src/core/operations/FieldOperations.ts +0 -127
  1111. package/src/core/operations/ListOperations.ts +0 -208
  1112. package/src/core/operations/OperationsHelpers.ts +0 -150
  1113. package/src/core/operations/index.ts +0 -3
  1114. package/src/core/requestAliases/MutationAlias.ts +0 -13
  1115. package/src/core/requestAliases/index.ts +0 -1
  1116. package/src/core/schema/RawSchema.ts +0 -7
  1117. package/src/core/schema/RawSchemaEntity.ts +0 -12
  1118. package/src/core/schema/RawSchemaEnum.ts +0 -6
  1119. package/src/core/schema/Schema.ts +0 -50
  1120. package/src/core/schema/SchemaColumn.ts +0 -15
  1121. package/src/core/schema/SchemaColumnType.ts +0 -3
  1122. package/src/core/schema/SchemaEntities.ts +0 -4
  1123. package/src/core/schema/SchemaEntity.ts +0 -10
  1124. package/src/core/schema/SchemaEnums.ts +0 -3
  1125. package/src/core/schema/SchemaField.ts +0 -4
  1126. package/src/core/schema/SchemaFields.ts +0 -4
  1127. package/src/core/schema/SchemaLoader.ts +0 -64
  1128. package/src/core/schema/SchemaPreprocessor.ts +0 -51
  1129. package/src/core/schema/SchemaRelation.ts +0 -29
  1130. package/src/core/schema/SchemaRelationOrderBy.ts +0 -4
  1131. package/src/core/schema/SchemaStore.ts +0 -8
  1132. package/src/core/schema/SchemaUniqueConstraint.ts +0 -5
  1133. package/src/core/schema/index.ts +0 -15
  1134. package/src/core/state/EntityListState.ts +0 -39
  1135. package/src/core/state/EntityRealmState.ts +0 -63
  1136. package/src/core/state/EntityState.ts +0 -12
  1137. package/src/core/state/FieldState.ts +0 -20
  1138. package/src/core/state/StateIterator.ts +0 -121
  1139. package/src/core/state/StateNode.ts +0 -8
  1140. package/src/core/state/getEntityMarker.ts +0 -4
  1141. package/src/core/state/index.ts +0 -7
  1142. package/src/core/utils/createQueryBuilder.ts +0 -31
  1143. package/src/core/utils/getCombinedSignal.ts +0 -36
  1144. package/src/core/utils/index.ts +0 -1
  1145. package/src/dao/Environment.ts +0 -342
  1146. package/src/dao/TreeNodeEnvironmentFactory.ts +0 -137
  1147. package/src/dao/VariableFieldValue.ts +0 -3
  1148. package/src/dao/index.ts +0 -3
  1149. package/src/fieldHelpers/helpers/FieldHelper.ts +0 -10
  1150. package/src/fieldHelpers/helpers/TemporalFieldHelper.ts +0 -21
  1151. package/src/fieldHelpers/helpers/UuidFieldHelper.ts +0 -18
  1152. package/src/fieldHelpers/helpers/index.ts +0 -2
  1153. package/src/fieldHelpers/index.ts +0 -1
  1154. package/src/markers/EntityFieldMarkers.ts +0 -7
  1155. package/src/markers/EntityFieldMarkersContainer.ts +0 -45
  1156. package/src/markers/EntityFieldPlaceholders.ts +0 -3
  1157. package/src/markers/EntityFieldsWithHoistablesMarker.ts +0 -11
  1158. package/src/markers/EntityListSubTreeMarker.ts +0 -20
  1159. package/src/markers/EntitySubTreeMarker.ts +0 -20
  1160. package/src/markers/FieldMarker.ts +0 -19
  1161. package/src/markers/HasManyRelationMarker.ts +0 -27
  1162. package/src/markers/HasOneRelationMarker.ts +0 -21
  1163. package/src/markers/MarkerTreeRoot.ts +0 -9
  1164. package/src/markers/MeaningfulMarker.ts +0 -12
  1165. package/src/markers/ParentEntityMarker.ts +0 -9
  1166. package/src/markers/PlaceholderGenerator.ts +0 -40
  1167. package/src/markers/PlaceholderParametersGenerator.ts +0 -79
  1168. package/src/markers/SubTreeMarkers.ts +0 -5
  1169. package/src/markers/index.ts +0 -14
  1170. package/src/queryLanguage/CacheStore.ts +0 -57
  1171. package/src/queryLanguage/MarkerFactory.ts +0 -300
  1172. package/src/queryLanguage/Parser.ts +0 -911
  1173. package/src/queryLanguage/ParserResults.ts +0 -81
  1174. package/src/queryLanguage/QueryLanguage.ts +0 -733
  1175. package/src/queryLanguage/QueryLanguageError.ts +0 -1
  1176. package/src/queryLanguage/index.ts +0 -5
  1177. package/src/queryLanguage/tokenList.ts +0 -175
  1178. package/src/structures/BijectiveIndexedMap.ts +0 -139
  1179. package/src/structures/LRUCache.ts +0 -29
  1180. package/src/structures/WeakIdCache.ts +0 -25
  1181. package/src/structures/index.ts +0 -3
  1182. package/src/treeParameterHelpers/index.ts +0 -1
  1183. package/src/treeParameterHelpers/wrapFilterInHasOnes.ts +0 -21
  1184. package/src/treeParameters/AnyField.ts +0 -9
  1185. package/src/treeParameters/EntityCreationParameters.ts +0 -34
  1186. package/src/treeParameters/EntityListEventListeners.ts +0 -20
  1187. package/src/treeParameters/EntityListParameters.ts +0 -19
  1188. package/src/treeParameters/EntityListPreferences.ts +0 -11
  1189. package/src/treeParameters/EventListenersStore.ts +0 -82
  1190. package/src/treeParameters/FieldEventListeners.ts +0 -32
  1191. package/src/treeParameters/HasManyRelation.ts +0 -18
  1192. package/src/treeParameters/HasOneRelation.ts +0 -21
  1193. package/src/treeParameters/LeafField.ts +0 -20
  1194. package/src/treeParameters/ParentEntityParameters.ts +0 -10
  1195. package/src/treeParameters/QualifiedEntityList.ts +0 -43
  1196. package/src/treeParameters/QualifiedEntityParameters.ts +0 -20
  1197. package/src/treeParameters/QualifiedFieldList.ts +0 -43
  1198. package/src/treeParameters/QualifiedSingleEntity.ts +0 -46
  1199. package/src/treeParameters/QualifiedSingleEntityParameters.ts +0 -9
  1200. package/src/treeParameters/Relation.ts +0 -17
  1201. package/src/treeParameters/RelativeEntityList.ts +0 -25
  1202. package/src/treeParameters/RelativeSingleEntity.ts +0 -16
  1203. package/src/treeParameters/RelativeSingleField.ts +0 -27
  1204. package/src/treeParameters/SetOnCreate.ts +0 -6
  1205. package/src/treeParameters/SingleEntityEventListeners.ts +0 -24
  1206. package/src/treeParameters/SingleEntityParameters.ts +0 -9
  1207. package/src/treeParameters/UnconstrainedQualifiedEntityList.ts +0 -39
  1208. package/src/treeParameters/UnconstrainedQualifiedSingleEntity.ts +0 -39
  1209. package/src/treeParameters/index.ts +0 -27
  1210. package/src/treeParameters/primitives/Alias.ts +0 -1
  1211. package/src/treeParameters/primitives/EntityId.ts +0 -2
  1212. package/src/treeParameters/primitives/EntityName.ts +0 -4
  1213. package/src/treeParameters/primitives/EntityRealmKey.ts +0 -2
  1214. package/src/treeParameters/primitives/ExpectedEntityCount.ts +0 -1
  1215. package/src/treeParameters/primitives/ExpectedQualifiedEntityMutation.ts +0 -1
  1216. package/src/treeParameters/primitives/ExpectedRelationMutation.ts +0 -1
  1217. package/src/treeParameters/primitives/FieldName.ts +0 -7
  1218. package/src/treeParameters/primitives/FieldValue.ts +0 -6
  1219. package/src/treeParameters/primitives/Filter.ts +0 -7
  1220. package/src/treeParameters/primitives/Json.ts +0 -7
  1221. package/src/treeParameters/primitives/Limit.ts +0 -1
  1222. package/src/treeParameters/primitives/Offset.ts +0 -1
  1223. package/src/treeParameters/primitives/OrderBy.ts +0 -6
  1224. package/src/treeParameters/primitives/PlaceholderName.ts +0 -4
  1225. package/src/treeParameters/primitives/RemovalType.ts +0 -1
  1226. package/src/treeParameters/primitives/Scalar.ts +0 -1
  1227. package/src/treeParameters/primitives/TreeRootId.ts +0 -1
  1228. package/src/treeParameters/primitives/UniqueWhere.ts +0 -7
  1229. package/src/treeParameters/primitives/index.ts +0 -19
  1230. package/src/typings/react-fix.d.ts +0 -12
  1231. package/src/utils/Hashing.ts +0 -20
  1232. package/src/utils/TreeNodeUtils.ts +0 -92
  1233. package/src/utils/assert.ts +0 -7
  1234. package/src/utils/assertNever.ts +0 -10
  1235. package/src/utils/generateEnumerabilityPreventingEntropy.ts +0 -3
  1236. package/src/utils/index.ts +0 -6
  1237. package/src/utils/isEmptyObject.ts +0 -9
  1238. package/src/utils/ucfirst.ts +0 -1
@@ -1,414 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
7
- import { BindingError } from "../BindingError.js";
8
- import { getEntityMarker } from "./state/getEntityMarker.js";
9
- import { StateIterator } from "./state/StateIterator.js";
10
- import { assertNever } from "../utils/assertNever.js";
11
- class EventManager {
12
- constructor(asyncBatchUpdatesOptions, batchUpdatesOptions, config, dirtinessTracker, onUpdate, treeStore, batchedUpdates) {
13
- __publicField(this, "transactionDepth", 0);
14
- __publicField(this, "isFrozenWhileUpdating", false);
15
- // This should ideally not exists as it should be synonymous to `this.ongoingPersistOperation !== undefined`
16
- // but it makes persist-related promise juggling significantly more straightforward.
17
- __publicField(this, "isMutating", false);
18
- __publicField(this, "ongoingPersistOperation");
19
- __publicField(this, "previousMetadata");
20
- __publicField(this, "newlyInitializedWithListeners", /* @__PURE__ */ new Set());
21
- __publicField(this, "pendingWithBeforeUpdate", /* @__PURE__ */ new Set());
22
- __publicField(this, "rootsWithPendingUpdates", /* @__PURE__ */ new Set());
23
- this.asyncBatchUpdatesOptions = asyncBatchUpdatesOptions;
24
- this.batchUpdatesOptions = batchUpdatesOptions;
25
- this.config = config;
26
- this.dirtinessTracker = dirtinessTracker;
27
- this.onUpdate = onUpdate;
28
- this.treeStore = treeStore;
29
- this.batchedUpdates = batchedUpdates;
30
- }
31
- async persistOperation(operation) {
32
- if (this.transactionDepth > 0) {
33
- throw new BindingError(`Cannot trigger a persist whilst batching updates!`);
34
- }
35
- const ongoingOperation = this.ongoingPersistOperation;
36
- if (ongoingOperation !== void 0) {
37
- return await ongoingOperation;
38
- }
39
- return await (this.ongoingPersistOperation = new Promise(async (resolve, reject) => {
40
- this.isMutating = true;
41
- this.flushUpdates();
42
- try {
43
- resolve(await this.asyncOperation(operation));
44
- } catch (e) {
45
- console.error("PersistError", e);
46
- reject(e);
47
- } finally {
48
- this.ongoingPersistOperation = void 0;
49
- this.isMutating = false;
50
- this.flushUpdates();
51
- }
52
- }));
53
- }
54
- syncTransaction(transaction) {
55
- try {
56
- this.transactionDepth++;
57
- return transaction();
58
- } finally {
59
- this.transactionDepth--;
60
- }
61
- }
62
- syncOperation(operation) {
63
- const result = this.syncTransaction(operation);
64
- this.flushUpdates();
65
- return result;
66
- }
67
- async asyncTransaction(transaction) {
68
- try {
69
- this.transactionDepth++;
70
- return await transaction();
71
- } finally {
72
- this.transactionDepth--;
73
- }
74
- }
75
- async asyncOperation(operation) {
76
- const result = await this.asyncTransaction(operation);
77
- this.flushUpdates();
78
- return result;
79
- }
80
- flushUpdates() {
81
- if (this.transactionDepth > 0) {
82
- return;
83
- }
84
- if (this.isFrozenWhileUpdating) {
85
- throw new BindingError(
86
- `Trying to perform an update while the whole accessor tree is already updating. This is most likely caused by updating the accessor tree while rendering or from within the 'update' event handler, which is a no-op. If you wish to mutate the tree in reaction to other changes, use the 'beforeUpdate' event.`
87
- );
88
- }
89
- const newMetadata = this.getNewUpdateMetadata();
90
- if (!this.shouldFlushUpdates(newMetadata)) {
91
- return;
92
- }
93
- this.batchedUpdates(() => {
94
- this.isFrozenWhileUpdating = true;
95
- this.triggerBeforeFlushEvents();
96
- this.onUpdate(newMetadata);
97
- this.flushPendingAccessorUpdates(Array.from(this.rootsWithPendingUpdates));
98
- this.rootsWithPendingUpdates.clear();
99
- this.isFrozenWhileUpdating = false;
100
- this.previousMetadata = newMetadata;
101
- });
102
- }
103
- getNewUpdateMetadata() {
104
- return {
105
- isMutating: this.isMutating
106
- };
107
- }
108
- shouldFlushUpdates(newMetadata) {
109
- if (this.transactionDepth > 0) {
110
- return false;
111
- }
112
- if (this.previousMetadata === void 0) {
113
- return true;
114
- }
115
- if (this.rootsWithPendingUpdates.size) {
116
- return true;
117
- }
118
- for (const key in newMetadata) {
119
- const fromPrevious = this.previousMetadata[key];
120
- const fromNew = newMetadata[key];
121
- if (!Object.is(fromPrevious, fromNew)) {
122
- return true;
123
- }
124
- }
125
- return false;
126
- }
127
- registerNewlyInitialized(newlyInitialized) {
128
- const initializeListeners = this.getEventListeners(newlyInitialized, { type: "initialize" });
129
- if (initializeListeners === void 0) {
130
- return;
131
- }
132
- this.newlyInitializedWithListeners.add(newlyInitialized);
133
- if (this.transactionDepth === 0) {
134
- this.triggerOnInitialize();
135
- }
136
- }
137
- registerUpdatedConnection(parentState, placeholderName) {
138
- if (parentState.fieldsWithPendingConnectionUpdates === void 0) {
139
- parentState.fieldsWithPendingConnectionUpdates = /* @__PURE__ */ new Set();
140
- }
141
- const marker = getEntityMarker(parentState);
142
- placeholders:
143
- for (const [fieldName, placeholdersByField] of marker.fields.placeholders) {
144
- if (typeof placeholdersByField === "string") {
145
- if (placeholdersByField === placeholderName) {
146
- parentState.fieldsWithPendingConnectionUpdates.add(fieldName);
147
- }
148
- } else {
149
- for (const placeholderByFieldName of placeholdersByField) {
150
- if (placeholderByFieldName === placeholderName) {
151
- parentState.fieldsWithPendingConnectionUpdates.add(fieldName);
152
- continue placeholders;
153
- }
154
- }
155
- }
156
- }
157
- }
158
- registerJustUpdated(justUpdated, changesDelta) {
159
- const beforeUpdateListeners = this.getEventListeners(justUpdated, { type: "beforeUpdate" });
160
- if (beforeUpdateListeners !== void 0) {
161
- this.pendingWithBeforeUpdate.add(justUpdated);
162
- }
163
- justUpdated.accessor = void 0;
164
- switch (justUpdated.type) {
165
- case "entityRealm":
166
- case "entityList": {
167
- justUpdated.unpersistedChangesCount += changesDelta;
168
- const parent = justUpdated.blueprint.parent;
169
- if (parent === void 0) {
170
- this.rootsWithPendingUpdates.add(justUpdated);
171
- if (!(justUpdated.blueprint.type === "subTree" && justUpdated.blueprint.marker.parameters.isCreating && justUpdated.blueprint.marker.parameters.isUnpersisted)) {
172
- this.dirtinessTracker.increaseBy(changesDelta);
173
- }
174
- } else {
175
- if (!parent.childrenWithPendingUpdates) {
176
- parent.childrenWithPendingUpdates = /* @__PURE__ */ new Set();
177
- }
178
- parent.childrenWithPendingUpdates.add(justUpdated);
179
- this.registerJustUpdated(parent, changesDelta);
180
- }
181
- break;
182
- }
183
- case "field": {
184
- const parent = justUpdated.parent;
185
- if (!parent.childrenWithPendingUpdates) {
186
- parent.childrenWithPendingUpdates = /* @__PURE__ */ new Set();
187
- }
188
- parent.childrenWithPendingUpdates.add(justUpdated);
189
- this.registerJustUpdated(justUpdated.parent, changesDelta);
190
- break;
191
- }
192
- }
193
- }
194
- flushPendingAccessorUpdates(rootStates) {
195
- const agenda = rootStates;
196
- for (const state of agenda) {
197
- const updateListeners = state.type === "field" ? this.getEventDispatchers(state, { type: "update" }, [state.getAccessor()]) : state.type === "entityRealm" ? this.getEventDispatchers(state, { type: "update" }, [state.getAccessor()]) : this.getEventDispatchers(state, { type: "update" }, [state.getAccessor()]);
198
- if (updateListeners !== void 0) {
199
- for (const handler of updateListeners) {
200
- handler();
201
- }
202
- }
203
- if (state.type === "entityRealm" && state.fieldsWithPendingConnectionUpdates) {
204
- for (const updatedField of state.fieldsWithPendingConnectionUpdates) {
205
- const listeners = this.getEventListeners(state, { type: "connectionUpdate", key: updatedField });
206
- if (!listeners) {
207
- continue;
208
- }
209
- for (const listener of listeners) {
210
- listener(state.getAccessor());
211
- }
212
- }
213
- }
214
- switch (state.type) {
215
- case "entityRealm":
216
- case "entityList": {
217
- if (state.childrenWithPendingUpdates !== void 0) {
218
- for (const childState of state.childrenWithPendingUpdates) {
219
- agenda.push(childState);
220
- }
221
- state.childrenWithPendingUpdates.clear();
222
- }
223
- break;
224
- }
225
- case "field":
226
- break;
227
- default:
228
- assertNever();
229
- }
230
- }
231
- }
232
- async triggerAsyncMutatingEvent(eventType, options) {
233
- await this.asyncTransaction(async () => {
234
- const callbackQueue = [];
235
- for (const [, subTreeState] of StateIterator.eachRootState(this.treeStore)) {
236
- for (const iNode of StateIterator.depthFirstINodes(subTreeState)) {
237
- const listeners = this.getEventListeners(iNode, { type: eventType }) ?? [];
238
- for (const listener of listeners) {
239
- callbackQueue.push([iNode, listener]);
240
- }
241
- }
242
- }
243
- for (let waterfallDepth = 0; waterfallDepth < this.config.getValue(`${eventType}SettleLimit`); waterfallDepth++) {
244
- const promiseReturns = [];
245
- const correspondingStates = [];
246
- if (callbackQueue.length === 0) {
247
- break;
248
- }
249
- for (const [state, callback] of callbackQueue) {
250
- correspondingStates.push(state);
251
- const changesCountBefore2 = this.dirtinessTracker.getTotalTouchCount();
252
- let validateChanges = false;
253
- try {
254
- const result = callback(state.getAccessor, options);
255
- if (result instanceof Promise) {
256
- validateChanges = true;
257
- promiseReturns.push(result);
258
- } else {
259
- promiseReturns.push(Promise.resolve(result));
260
- }
261
- } catch (e) {
262
- promiseReturns.push(Promise.reject(e));
263
- }
264
- if (validateChanges) {
265
- this.validateWithoutChanges(changesCountBefore2, eventType);
266
- }
267
- }
268
- const changesCountBefore = this.dirtinessTracker.getTotalTouchCount();
269
- const newCallbacks = await Promise.allSettled(promiseReturns);
270
- this.validateWithoutChanges(changesCountBefore, eventType);
271
- callbackQueue.length = 0;
272
- for (const newlyInitialized of this.newlyInitializedWithListeners) {
273
- if (newlyInitialized.type === "field") {
274
- continue;
275
- }
276
- const beforePersistHandlers = this.getEventListeners(newlyInitialized, { type: eventType });
277
- if (beforePersistHandlers) {
278
- for (const listener of beforePersistHandlers) {
279
- callbackQueue.push([newlyInitialized, listener]);
280
- }
281
- }
282
- }
283
- this.triggerBeforeFlushEvents();
284
- this.handleRejections(eventType, newCallbacks);
285
- for (let i = 0; i < newCallbacks.length; i++) {
286
- const result = newCallbacks[i];
287
- const correspondingState = correspondingStates[i];
288
- if (result.status === "fulfilled") {
289
- if (typeof result.value === "function") {
290
- callbackQueue.push([correspondingState, result.value]);
291
- }
292
- }
293
- }
294
- }
295
- });
296
- }
297
- triggerBeforeFlushEvents() {
298
- this.syncTransaction(() => {
299
- const settleLimit = this.config.getValue("beforeUpdateSettleLimit");
300
- for (let attemptNumber = 0; attemptNumber < settleLimit; attemptNumber++) {
301
- if (!this.pendingWithBeforeUpdate.size) {
302
- this.triggerOnInitialize();
303
- return;
304
- }
305
- const withBeforeUpdate = this.pendingWithBeforeUpdate;
306
- this.pendingWithBeforeUpdate = /* @__PURE__ */ new Set();
307
- for (const state of withBeforeUpdate) {
308
- const listeners = this.getEventListeners(state, { type: "beforeUpdate" });
309
- if (listeners === void 0) {
310
- continue;
311
- }
312
- switch (state.type) {
313
- case "field":
314
- for (const listener of listeners) {
315
- listener(state.getAccessor());
316
- }
317
- break;
318
- case "entityRealm":
319
- case "entityList":
320
- for (const listener of listeners) {
321
- state.getAccessor().batchUpdates(listener);
322
- }
323
- break;
324
- default:
325
- return assertNever();
326
- }
327
- }
328
- this.triggerOnInitialize();
329
- }
330
- throw new BindingError(
331
- `Maximum stabilization limit of updates caused by 'beforeUpdate' exceeded. This likely means there is an infinite feedback loop in your code.`
332
- );
333
- });
334
- }
335
- triggerOnInitialize() {
336
- this.syncTransaction(() => {
337
- for (const state of this.newlyInitializedWithListeners) {
338
- const listeners = state.type === "field" ? this.getEventDispatchers(state, { type: "initialize" }, [state.getAccessor, this.batchUpdatesOptions]) : state.type === "entityRealm" ? this.getEventDispatchers(state, { type: "initialize" }, [state.getAccessor, this.batchUpdatesOptions]) : this.getEventDispatchers(state, { type: "initialize" }, [state.getAccessor, this.batchUpdatesOptions]);
339
- if (listeners) {
340
- for (const listener of listeners) {
341
- listener();
342
- }
343
- }
344
- if (state.type === "entityRealm") {
345
- state.entity.hasIdSetInStone = true;
346
- }
347
- }
348
- this.newlyInitializedWithListeners.clear();
349
- });
350
- }
351
- async triggerOnPersistError(options) {
352
- await this.asyncTransaction(async () => {
353
- const handlerPromises = [];
354
- for (const [, subTreeState] of StateIterator.eachRootState(this.treeStore)) {
355
- for (const iNode of StateIterator.depthFirstINodes(subTreeState)) {
356
- const dispatchers = iNode.type === "entityRealm" ? this.getEventDispatchers(iNode, { type: "persistError" }, [iNode.getAccessor, options]) : this.getEventDispatchers(iNode, { type: "persistError" }, [iNode.getAccessor, options]);
357
- if (dispatchers === void 0) {
358
- continue;
359
- }
360
- for (const listener of dispatchers ?? []) {
361
- try {
362
- const result = listener();
363
- if (result instanceof Promise) {
364
- handlerPromises.push(result);
365
- } else {
366
- handlerPromises.push(Promise.resolve(result));
367
- }
368
- } catch (e) {
369
- handlerPromises.push(Promise.reject(e));
370
- }
371
- }
372
- }
373
- }
374
- const handlerResults = await Promise.allSettled(handlerPromises);
375
- this.handleRejections("persistError", handlerResults);
376
- });
377
- }
378
- async triggerOnBeforePersist() {
379
- return this.triggerAsyncMutatingEvent("beforePersist", this.asyncBatchUpdatesOptions);
380
- }
381
- async triggerOnPersistSuccess(options) {
382
- return this.triggerAsyncMutatingEvent("persistSuccess", options);
383
- }
384
- getEventListeners(state, event) {
385
- if (!state.eventListeners) {
386
- return void 0;
387
- }
388
- return state.eventListeners.get(event);
389
- }
390
- getEventDispatchers(state, event, listenerArgs) {
391
- const eventListeners = this.getEventListeners(state, event);
392
- if (eventListeners === void 0) {
393
- return void 0;
394
- }
395
- return Array.from(eventListeners.values(), (listener) => {
396
- return () => listener(...listenerArgs);
397
- });
398
- }
399
- handleRejections(handler, promises) {
400
- const rejections = promises.filter((it) => it.status === "rejected");
401
- if (rejections.length === 0) {
402
- return;
403
- }
404
- rejections.forEach((it) => console.error(it.reason));
405
- }
406
- validateWithoutChanges(initialCount, eventType) {
407
- this.dirtinessTracker.getTotalTouchCount();
408
- }
409
- }
410
- __publicField(EventManager, "NO_CHANGES_DIFFERENCE", 0);
411
- export {
412
- EventManager
413
- };
414
- //# sourceMappingURL=EventManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventManager.js","sources":["../../../src/core/EventManager.ts"],"sourcesContent":["import type {\n\tAsyncBatchUpdatesOptions,\n\tBatchUpdatesOptions,\n\tEntityAccessor,\n\tEntityListAccessor,\n\tFieldAccessor,\n\tPersistErrorOptions,\n\tPersistSuccessOptions,\n} from '../accessors'\nimport type { SuccessfulPersistResult } from '../accessorTree'\nimport { BindingError } from '../BindingError'\nimport type { PlaceholderName } from '../treeParameters'\nimport { assertNever } from '../utils'\nimport type { Config } from './Config'\nimport type { DirtinessTracker } from './DirtinessTracker'\nimport {\n\tEntityListState,\n\tEntityRealmState,\n\tFieldState,\n\tgetEntityMarker,\n\tRootStateNode,\n\tStateINode,\n\tStateIterator,\n\tStateNode,\n} from './state'\nimport type { TreeStore } from './TreeStore'\nimport type { UpdateMetadata } from './UpdateMetadata'\nimport type { EventListenersStore } from '../treeParameters'\n\nexport class EventManager {\n\tpublic static readonly NO_CHANGES_DIFFERENCE = 0\n\n\tprivate transactionDepth = 0\n\tprivate isFrozenWhileUpdating = false\n\n\t// This should ideally not exists as it should be synonymous to `this.ongoingPersistOperation !== undefined`\n\t// but it makes persist-related promise juggling significantly more straightforward.\n\tprivate isMutating: boolean = false\n\tprivate ongoingPersistOperation: Promise<SuccessfulPersistResult> | undefined = undefined\n\n\tprivate previousMetadata: UpdateMetadata | undefined = undefined\n\n\tprivate newlyInitializedWithListeners: Set<EntityListState | EntityRealmState | FieldState> = new Set()\n\tprivate pendingWithBeforeUpdate: Set<StateNode> = new Set()\n\tprivate rootsWithPendingUpdates: Set<RootStateNode> = new Set()\n\n\tpublic constructor(\n\t\tprivate readonly asyncBatchUpdatesOptions: AsyncBatchUpdatesOptions,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly config: Config,\n\t\tprivate readonly dirtinessTracker: DirtinessTracker,\n\t\tprivate readonly onUpdate: (metadata: UpdateMetadata) => void,\n\t\tprivate readonly treeStore: TreeStore,\n\t\tprivate readonly batchedUpdates: (callback: () => any) => void,\n\t) {}\n\n\tpublic async persistOperation(operation: () => Promise<SuccessfulPersistResult>): Promise<SuccessfulPersistResult> {\n\t\tif (this.transactionDepth > 0) {\n\t\t\tthrow new BindingError(`Cannot trigger a persist whilst batching updates!`)\n\t\t}\n\t\tconst ongoingOperation = this.ongoingPersistOperation\n\t\tif (ongoingOperation !== undefined) {\n\t\t\treturn await ongoingOperation\n\t\t}\n\t\treturn await (this.ongoingPersistOperation = new Promise<SuccessfulPersistResult>(async (resolve, reject) => {\n\t\t\tthis.isMutating = true\n\t\t\tthis.flushUpdates() // Let the world know that we're mutating\n\n\t\t\ttry {\n\t\t\t\tresolve(await this.asyncOperation(operation))\n\t\t\t} catch (e) {\n\t\t\t\tconsole.error('PersistError', e)\n\t\t\t\treject(e)\n\t\t\t} finally {\n\t\t\t\tthis.ongoingPersistOperation = undefined\n\t\t\t\tthis.isMutating = false\n\t\t\t\tthis.flushUpdates()\n\t\t\t}\n\t\t}))\n\t}\n\n\tpublic syncTransaction<T>(transaction: () => T) {\n\t\ttry {\n\t\t\tthis.transactionDepth++\n\t\t\treturn transaction()\n\t\t} finally {\n\t\t\tthis.transactionDepth--\n\t\t}\n\t}\n\tpublic syncOperation<T>(operation: () => T) {\n\t\tconst result = this.syncTransaction(operation)\n\t\tthis.flushUpdates()\n\t\treturn result\n\t}\n\n\tpublic async asyncTransaction<T>(transaction: () => Promise<T>): Promise<T> {\n\t\ttry {\n\t\t\tthis.transactionDepth++\n\t\t\treturn await transaction()\n\t\t} finally {\n\t\t\tthis.transactionDepth--\n\t\t}\n\t}\n\tpublic async asyncOperation<T>(operation: () => Promise<T>): Promise<T> {\n\t\tconst result = await this.asyncTransaction(operation)\n\t\tthis.flushUpdates()\n\t\treturn result\n\t}\n\n\tprivate flushUpdates() {\n\t\tif (this.transactionDepth > 0) {\n\t\t\treturn\n\t\t}\n\n\t\tif (this.isFrozenWhileUpdating) {\n\t\t\tthrow new BindingError(\n\t\t\t\t`Trying to perform an update while the whole accessor tree is already updating. This is most likely caused ` +\n\t\t\t\t\t`by updating the accessor tree while rendering or from within the 'update' event handler, which is a no-op. ` +\n\t\t\t\t\t`If you wish to mutate the tree in reaction to other changes, use the 'beforeUpdate' event.`,\n\t\t\t)\n\t\t}\n\n\t\tconst newMetadata = this.getNewUpdateMetadata()\n\n\t\tif (!this.shouldFlushUpdates(newMetadata)) {\n\t\t\treturn\n\t\t}\n\n\t\tthis.batchedUpdates(() => {\n\t\t\tthis.isFrozenWhileUpdating = true\n\t\t\tthis.triggerBeforeFlushEvents()\n\t\t\tthis.onUpdate(newMetadata)\n\t\t\tthis.flushPendingAccessorUpdates(Array.from(this.rootsWithPendingUpdates))\n\n\t\t\tthis.rootsWithPendingUpdates.clear()\n\t\t\tthis.isFrozenWhileUpdating = false\n\t\t\tthis.previousMetadata = newMetadata\n\t\t})\n\t}\n\n\tprivate getNewUpdateMetadata(): UpdateMetadata {\n\t\treturn {\n\t\t\tisMutating: this.isMutating,\n\t\t}\n\t}\n\n\tprivate shouldFlushUpdates(newMetadata: UpdateMetadata): boolean {\n\t\tif (this.transactionDepth > 0) {\n\t\t\treturn false\n\t\t}\n\t\tif (this.previousMetadata === undefined) {\n\t\t\treturn true\n\t\t}\n\t\tif (this.rootsWithPendingUpdates.size) {\n\t\t\treturn true\n\t\t}\n\t\tfor (const key in newMetadata) {\n\t\t\tconst fromPrevious = this.previousMetadata[key as keyof UpdateMetadata]\n\t\t\tconst fromNew = newMetadata[key as keyof UpdateMetadata]\n\n\t\t\tif (!Object.is(fromPrevious, fromNew)) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\treturn false\n\t}\n\n\tpublic registerNewlyInitialized(newlyInitialized: StateNode) {\n\t\tconst initializeListeners = this.getEventListeners(newlyInitialized, { type: 'initialize' })\n\n\t\tif (initializeListeners === undefined) {\n\t\t\treturn\n\t\t}\n\n\t\tthis.newlyInitializedWithListeners.add(newlyInitialized)\n\n\t\tif (this.transactionDepth === 0) {\n\t\t\tthis.triggerOnInitialize()\n\t\t}\n\t}\n\n\tpublic registerUpdatedConnection(parentState: EntityRealmState, placeholderName: PlaceholderName) {\n\t\tif (parentState.fieldsWithPendingConnectionUpdates === undefined) {\n\t\t\tparentState.fieldsWithPendingConnectionUpdates = new Set()\n\t\t}\n\n\t\tconst marker = getEntityMarker(parentState)\n\t\tplaceholders: for (const [fieldName, placeholdersByField] of marker.fields.placeholders) {\n\t\t\tif (typeof placeholdersByField === 'string') {\n\t\t\t\tif (placeholdersByField === placeholderName) {\n\t\t\t\t\tparentState.fieldsWithPendingConnectionUpdates.add(fieldName)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (const placeholderByFieldName of placeholdersByField) {\n\t\t\t\t\tif (placeholderByFieldName === placeholderName) {\n\t\t\t\t\t\tparentState.fieldsWithPendingConnectionUpdates.add(fieldName)\n\t\t\t\t\t\tcontinue placeholders\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic registerJustUpdated(justUpdated: StateNode, changesDelta: number) {\n\t\tconst beforeUpdateListeners = this.getEventListeners(justUpdated, { type: 'beforeUpdate' })\n\t\tif (beforeUpdateListeners !== undefined) {\n\t\t\tthis.pendingWithBeforeUpdate.add(justUpdated)\n\t\t}\n\t\tjustUpdated.accessor = undefined\n\n\t\tswitch (justUpdated.type) {\n\t\t\tcase 'entityRealm':\n\t\t\tcase 'entityList': {\n\t\t\t\tjustUpdated.unpersistedChangesCount += changesDelta\n\n\t\t\t\tif (import.meta.env.DEV) {\n\t\t\t\t\tif (justUpdated.unpersistedChangesCount < 0) {\n\t\t\t\t\t\tconsole.error(\n\t\t\t\t\t\t\t`We have *JUST* reached a completely invalid state. From now on, anything can (and likely will) ` +\n\t\t\t\t\t\t\t\t`go wrong. This is definitely a bug. Please try to report whatever led to this situation.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tconst parent = justUpdated.blueprint.parent\n\n\t\t\t\tif (parent === undefined) {\n\t\t\t\t\tthis.rootsWithPendingUpdates.add(justUpdated)\n\n\t\t\t\t\tif (!(justUpdated.blueprint.type === 'subTree' && justUpdated.blueprint.marker.parameters.isCreating && justUpdated.blueprint.marker.parameters.isUnpersisted)) {\n\t\t\t\t\t\tthis.dirtinessTracker.increaseBy(changesDelta)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (!parent.childrenWithPendingUpdates) {\n\t\t\t\t\t\tparent.childrenWithPendingUpdates = new Set()\n\t\t\t\t\t}\n\t\t\t\t\tparent.childrenWithPendingUpdates.add(justUpdated as any)\n\t\t\t\t\tthis.registerJustUpdated(parent, changesDelta)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tcase 'field': {\n\t\t\t\tconst parent = justUpdated.parent\n\t\t\t\tif (!parent.childrenWithPendingUpdates) {\n\t\t\t\t\tparent.childrenWithPendingUpdates = new Set()\n\t\t\t\t}\n\t\t\t\tparent.childrenWithPendingUpdates.add(justUpdated as any)\n\t\t\t\tthis.registerJustUpdated(justUpdated.parent, changesDelta)\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate flushPendingAccessorUpdates(rootStates: Array<StateINode>) {\n\t\t// It is *CRUCIAL* that this is a BFS so that we update the components in top-down order.\n\t\tconst agenda: StateNode[] = rootStates\n\n\t\tfor (const state of agenda) {\n\t\t\t// yes, the calls are same, but this way we can avoid type casting\n\t\t\tconst updateListeners =\n\t\t\t\tstate.type === 'field'\n\t\t\t\t\t? this.getEventDispatchers(state, { type: 'update' }, [state.getAccessor()])\n\t\t\t\t\t: state.type === 'entityRealm'\n\t\t\t\t\t? this.getEventDispatchers(state, { type: 'update' }, [state.getAccessor()])\n\t\t\t\t\t: this.getEventDispatchers(state, { type: 'update' }, [state.getAccessor()])\n\n\t\t\tif (updateListeners !== undefined) {\n\t\t\t\tfor (const handler of updateListeners) {\n\t\t\t\t\t// TS can't quite handle the polymorphism here but this is fine.\n\t\t\t\t\thandler()\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (state.type === 'entityRealm' && state.fieldsWithPendingConnectionUpdates) {\n\t\t\t\tfor (const updatedField of state.fieldsWithPendingConnectionUpdates) {\n\t\t\t\t\tconst listeners = this.getEventListeners(state, { type: 'connectionUpdate', key: updatedField })\n\t\t\t\t\tif (!listeners) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\tlistener(state.getAccessor())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tswitch (state.type) {\n\t\t\t\tcase 'entityRealm':\n\t\t\t\tcase 'entityList': {\n\t\t\t\t\tif (state.childrenWithPendingUpdates !== undefined) {\n\t\t\t\t\t\tfor (const childState of state.childrenWithPendingUpdates) {\n\t\t\t\t\t\t\tagenda.push(childState)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstate.childrenWithPendingUpdates.clear()\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'field':\n\t\t\t\t\t// Do nothing\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\tassertNever(state)\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate async triggerAsyncMutatingEvent(eventType: 'beforePersist', options: AsyncBatchUpdatesOptions): Promise<void>\n\tprivate async triggerAsyncMutatingEvent(eventType: 'persistSuccess', options: PersistSuccessOptions): Promise<void>\n\tprivate async triggerAsyncMutatingEvent(\n\t\teventType: 'beforePersist' | 'persistSuccess',\n\t\toptions: AsyncBatchUpdatesOptions | PersistSuccessOptions,\n\t): Promise<void> {\n\t\tawait this.asyncTransaction(async () => {\n\t\t\t// TODO if an entity from here (or its parent) gets deleted, we need to remove stale handlers from here.\n\t\t\tconst callbackQueue: Array<\n\t\t\t\t[\n\t\t\t\t\t// The typings could be nicer but TS…\n\t\t\t\t\tStateINode,\n\t\t\t\t\t(\n\t\t\t\t\t\t| EntityAccessor.EntityEventListenerMap[typeof eventType]\n\t\t\t\t\t\t| EntityListAccessor.EntityListEventListenerMap[typeof eventType]\n\t\t\t\t\t),\n\t\t\t\t]\n\t\t\t> = []\n\n\t\t\tfor (const [, subTreeState] of StateIterator.eachRootState(this.treeStore)) {\n\t\t\t\tfor (const iNode of StateIterator.depthFirstINodes(subTreeState)) {\n\t\t\t\t\tconst listeners = this.getEventListeners(iNode, { type: eventType }) ?? []\n\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\tcallbackQueue.push([iNode, listener])\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (\n\t\t\t\tlet waterfallDepth = 0;\n\t\t\t\twaterfallDepth < this.config.getValue(`${eventType}SettleLimit` as const);\n\t\t\t\twaterfallDepth++\n\t\t\t) {\n\t\t\t\tconst promiseReturns: Array<\n\t\t\t\t\tPromise<\n\t\t\t\t\t\t| void\n\t\t\t\t\t\t| EntityAccessor.EntityEventListenerMap[typeof eventType]\n\t\t\t\t\t\t| EntityListAccessor.EntityListEventListenerMap[typeof eventType]\n\t\t\t\t\t>\n\t\t\t\t> = []\n\t\t\t\tconst correspondingStates: Array<StateINode> = []\n\n\t\t\t\tif (callbackQueue.length === 0) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\n\t\t\t\tfor (const [state, callback] of callbackQueue) {\n\t\t\t\t\tcorrespondingStates.push(state)\n\t\t\t\t\tconst changesCountBefore = this.dirtinessTracker.getTotalTouchCount()\n\t\t\t\t\tlet validateChanges = false\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst result = callback(state.getAccessor as any, options as any) // TS can't quite handle this but this is sound.\n\t\t\t\t\t\tif (result instanceof Promise) {\n\t\t\t\t\t\t\tvalidateChanges = true\n\t\t\t\t\t\t\tpromiseReturns.push(result)\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpromiseReturns.push(Promise.resolve(result))\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tpromiseReturns.push(Promise.reject(e))\n\t\t\t\t\t}\n\t\t\t\t\tif (validateChanges) {\n\t\t\t\t\t\tthis.validateWithoutChanges(changesCountBefore, eventType)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// TODO timeout\n\n\t\t\t\tconst changesCountBefore = this.dirtinessTracker.getTotalTouchCount()\n\t\t\t\tconst newCallbacks = await Promise.allSettled(promiseReturns)\n\t\t\t\tthis.validateWithoutChanges(changesCountBefore, eventType)\n\n\t\t\t\tcallbackQueue.length = 0 // Empties the queue\n\n\t\t\t\t// TODO we're drifting away from the original depth-first order. Let's see if that's ever even an issue.\n\t\t\t\tfor (const newlyInitialized of this.newlyInitializedWithListeners) {\n\t\t\t\t\tif (newlyInitialized.type === 'field') {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tconst beforePersistHandlers = this.getEventListeners(newlyInitialized, { type: eventType })\n\t\t\t\t\tif (beforePersistHandlers) {\n\t\t\t\t\t\tfor (const listener of beforePersistHandlers) {\n\t\t\t\t\t\t\tcallbackQueue.push([newlyInitialized, listener])\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.triggerBeforeFlushEvents()\n\t\t\t\tthis.handleRejections(eventType, newCallbacks)\n\n\t\t\t\tfor (let i = 0; i < newCallbacks.length; i++) {\n\t\t\t\t\tconst result = newCallbacks[i]\n\t\t\t\t\tconst correspondingState = correspondingStates[i]\n\n\t\t\t\t\tif (result.status === 'fulfilled') {\n\t\t\t\t\t\tif (typeof result.value === 'function') {\n\t\t\t\t\t\t\tcallbackQueue.push([correspondingState, result.value])\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Otherwise do nothing. This is just a handler that albeit async, doesn't appear to\n\t\t\t\t\t\t// interact with data binding.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (import.meta.env.DEV) {\n\t\t\t\tif (callbackQueue.length) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Exceeded the ${eventType} settle limit. Your code likely contains a deadlock. ` +\n\t\t\t\t\t\t\t`If that's not the case, raise the settle limit from DataBindingProvider.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\tprivate triggerBeforeFlushEvents() {\n\t\tthis.syncTransaction(() => {\n\t\t\tconst settleLimit = this.config.getValue('beforeUpdateSettleLimit')\n\n\t\t\tfor (let attemptNumber = 0; attemptNumber < settleLimit; attemptNumber++) {\n\t\t\t\tif (!this.pendingWithBeforeUpdate.size) {\n\t\t\t\t\tthis.triggerOnInitialize()\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tconst withBeforeUpdate = this.pendingWithBeforeUpdate\n\t\t\t\tthis.pendingWithBeforeUpdate = new Set()\n\n\t\t\t\tfor (const state of withBeforeUpdate) {\n\t\t\t\t\tconst listeners = this.getEventListeners(state, { type: 'beforeUpdate' })\n\t\t\t\t\tif (listeners === undefined) {\n\t\t\t\t\t\t// This can happen if the listener has unsubscribed since we added it to the set.\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tswitch (state.type) {\n\t\t\t\t\t\tcase 'field':\n\t\t\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\t\t\t(listener as FieldAccessor.BeforeUpdateListener)(state.getAccessor())\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tcase 'entityRealm':\n\t\t\t\t\t\tcase 'entityList':\n\t\t\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\t\t\tstate.getAccessor().batchUpdates(listener as any)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn assertNever(state)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.triggerOnInitialize()\n\t\t\t}\n\t\t\tthrow new BindingError(\n\t\t\t\t`Maximum stabilization limit of updates caused by 'beforeUpdate' exceeded. ` +\n\t\t\t\t\t`This likely means there is an infinite feedback loop in your code.`,\n\t\t\t)\n\t\t})\n\t}\n\n\tprivate triggerOnInitialize() {\n\t\tthis.syncTransaction(() => {\n\t\t\tfor (const state of this.newlyInitializedWithListeners) {\n\t\t\t\t// yes, the calls are same, but this way we can avoid type casting\n\t\t\t\tconst listeners =\n\t\t\t\t\tstate.type === 'field'\n\t\t\t\t\t\t? this.getEventDispatchers(state, { type: 'initialize' }, [state.getAccessor, this.batchUpdatesOptions])\n\t\t\t\t\t\t: state.type === 'entityRealm'\n\t\t\t\t\t\t? this.getEventDispatchers(state, { type: 'initialize' }, [state.getAccessor, this.batchUpdatesOptions])\n\t\t\t\t\t\t: this.getEventDispatchers(state, { type: 'initialize' }, [state.getAccessor, this.batchUpdatesOptions])\n\n\t\t\t\tif (listeners) {\n\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\tlistener()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (state.type === 'entityRealm') {\n\t\t\t\t\tstate.entity.hasIdSetInStone = true\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.newlyInitializedWithListeners.clear()\n\t\t})\n\t}\n\n\tpublic async triggerOnPersistError(options: PersistErrorOptions) {\n\t\tawait this.asyncTransaction(async () => {\n\t\t\tconst handlerPromises: Array<Promise<void>> = []\n\n\t\t\tfor (const [, subTreeState] of StateIterator.eachRootState(this.treeStore)) {\n\t\t\t\tfor (const iNode of StateIterator.depthFirstINodes(subTreeState)) {\n\t\t\t\t\t// yes, the calls are same, but this way we can avoid type casting\n\t\t\t\t\tconst dispatchers =\n\t\t\t\t\t\tiNode.type === 'entityRealm'\n\t\t\t\t\t\t\t? this.getEventDispatchers(iNode, { type: 'persistError' }, [iNode.getAccessor, options])\n\t\t\t\t\t\t\t: this.getEventDispatchers(iNode, { type: 'persistError' }, [iNode.getAccessor, options])\n\t\t\t\t\tif (dispatchers === undefined) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tfor (const listener of dispatchers ?? []) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconst result = listener()\n\t\t\t\t\t\t\tif (result instanceof Promise) {\n\t\t\t\t\t\t\t\thandlerPromises.push(result)\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\thandlerPromises.push(Promise.resolve(result))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\thandlerPromises.push(Promise.reject(e))\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// TODO timeout\n\t\t\tconst handlerResults = await Promise.allSettled(handlerPromises)\n\t\t\tthis.handleRejections('persistError', handlerResults)\n\t\t})\n\t}\n\n\tpublic async triggerOnBeforePersist() {\n\t\treturn this.triggerAsyncMutatingEvent('beforePersist', this.asyncBatchUpdatesOptions)\n\t}\n\n\tpublic async triggerOnPersistSuccess(options: PersistSuccessOptions) {\n\t\treturn this.triggerAsyncMutatingEvent('persistSuccess', options)\n\t}\n\n\tpublic getEventListeners<\n\t\tState extends StateNode,\n\t\tEventListenerTypes extends\n\t\t\tExclude<State['eventListeners'], undefined> extends EventListenersStore<infer Keys, infer Map> ? [Keys, Map] : never,\n\t\tEventType extends EventListenerTypes[0],\n\t>(state: State, event: { type: EventType; key?: string }): Set<Exclude<EventListenerTypes[1][EventType], undefined>> | undefined {\n\t\tif (!state.eventListeners) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn (state.eventListeners as EventListenersStore<EventType, EventListenerTypes[1]>).get(event) as Set<\n\t\t\tExclude<EventListenerTypes[1][EventType], undefined>\n\t\t>\n\t}\n\n\tpublic getEventDispatchers<\n\t\tState extends StateNode,\n\t\tEventListenerTypes extends\n\t\t\tExclude<State['eventListeners'], undefined> extends EventListenersStore<infer Keys, infer Map> ? [Keys, Map] : never,\n\t\tEventType extends EventListenerTypes[0],\n\t>(\n\t\tstate: State,\n\t\tevent: { type: EventType; key?: string },\n\t\tlistenerArgs: Parameters<Exclude<EventListenerTypes[1][EventType], undefined>>,\n\t): Array<() => ReturnType<Exclude<EventListenerTypes[1][EventType], undefined>>> | undefined {\n\t\tconst eventListeners = this.getEventListeners(state, event)\n\t\tif (eventListeners === undefined) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn Array.from(eventListeners.values(), listener => {\n\t\t\treturn () => listener(...listenerArgs)\n\t\t}) as Array<() => ReturnType<Exclude<EventListenerTypes[1][EventType], undefined>>>\n\t}\n\n\tprivate handleRejections(handler: string, promises: PromiseSettledResult<any>[]) {\n\t\tconst rejections = promises.filter((it): it is PromiseRejectedResult => it.status === 'rejected')\n\t\tif (rejections.length === 0) {\n\t\t\treturn\n\t\t}\n\t\trejections.forEach(it => console.error(it.reason))\n\t\tif (import.meta.env.DEV) {\n\t\t\tthrow new BindingError(\n\t\t\t\t`A ${handler} handler returned a promise that rejected. ` +\n\t\t\t\t\t`This is a no-op that will fail silently in production.`,\n\t\t\t)\n\t\t}\n\t}\n\n\n\tprivate validateWithoutChanges(initialCount: number, eventType: string): void {\n\t\tconst changesCountAfter = this.dirtinessTracker.getTotalTouchCount()\n\t\tif (import.meta.env.DEV) {\n\t\t\tif (initialCount !== changesCountAfter) {\n\t\t\t\t// This isn't bulletproof. They could e.g. undo a change and make another one which would\n\t\t\t\t// slip through this detection. But for most cases, it should be good enough and not too expensive.\n\t\t\t\tthrow new BindingError(\n\t\t\t\t\t`A ${eventType} event handler cannot be asynchronous and alter the accessor tree at the same time. ` +\n\t\t\t\t\t`To achieve this, prepare your data asynchronously but only touch the tree from a returned callback.`,\n\t\t\t\t)\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":["changesCountBefore"],"mappings":";;;;;;;;;;AA6BO,MAAM,aAAa;AAAA,EAiBlB,YACW,0BACA,qBACA,QACA,kBACA,UACA,WACA,gBAChB;AAtBM,4CAAmB;AACnB,iDAAwB;AAIxB;AAAA;AAAA,sCAAsB;AACtB;AAEA;AAEA,6EAA0F;AAC1F,uEAA8C;AAC9C,uEAAkD;AAGxC,SAAA,2BAAA;AACA,SAAA,sBAAA;AACA,SAAA,SAAA;AACA,SAAA,mBAAA;AACA,SAAA,WAAA;AACA,SAAA,YAAA;AACA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,iBAAiB,gBAAgB,cAAc;AAAA,IAAA,CACpD;AAAA,EACF;AAAA,EAEA,MAAa,yBAAyB;AACrC,WAAO,KAAK,0BAA0B,iBAAiB,KAAK,wBAAwB;AAAA,EACrF;AAAA,EAEA,MAAa,wBAAwB,SAAgC;AAC7D,WAAA,KAAK,0BAA0B,kBAAkB,OAAO;AAAA,EAChE;AAAA,EAEO,kBAKL,OAAc,OAAiH;AAC5H,QAAA,CAAC,MAAM,gBAAgB;AACnB,aAAA;AAAA,IACR;AACQ,WAAA,MAAM,eAAyE,IAAI,KAAK;AAAA,EAGjG;AAAA,EAEO,oBAMN,OACA,OACA,cAC4F;AAC5F,UAAM,iBAAiB,KAAK,kBAAkB,OAAO,KAAK;AAC1D,QAAI,mBAAmB,QAAW;AAC1B,aAAA;AAAA,IACR;AACA,WAAO,MAAM,KAAK,eAAe,OAAO,GAAG,CAAY,aAAA;AAC/C,aAAA,MAAM,SAAS,GAAG,YAAY;AAAA,IAAA,CACrC;AAAA,EACF;AAAA,EAEQ,iBAAiB,SAAiB,UAAuC;AAChF,UAAM,aAAa,SAAS,OAAO,CAAC,OAAoC,GAAG,WAAW,UAAU;AAC5F,QAAA,WAAW,WAAW,GAAG;AAC5B;AAAA,IACD;AACA,eAAW,QAAQ,CAAM,OAAA,QAAQ,MAAM,GAAG,MAAM,CAAC;AAAA,EAOlD;AAAA,EAGQ,uBAAuB,cAAsB,WAAyB;AACnD,SAAK,iBAAiB,mBAAmB;AAAA,EAWpE;AACD;AA9iBC,cADY,cACW,yBAAwB;"}
@@ -1,79 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const bindingTypes = require("../bindingTypes.cjs");
4
- const LocalizedBindingError = require("./exceptions/LocalizedBindingError.cjs");
5
- const FieldMarker = require("../markers/FieldMarker.cjs");
6
- const HasOneRelationMarker = require("../markers/HasOneRelationMarker.cjs");
7
- const HasManyRelationMarker = require("../markers/HasManyRelationMarker.cjs");
8
- const assertNever = require("../utils/assertNever.cjs");
9
- class MarkerComparator {
10
- static isSubTreeSubsetOf(candidate, superset) {
11
- if (candidate.placeholderName !== superset.placeholderName) {
12
- return false;
13
- }
14
- return this.isSubsetOf(candidate.fields, superset.fields);
15
- }
16
- static assertEntityMarkersSubsetOf(candidate, superset) {
17
- this.assertSubsetOf(candidate, superset);
18
- }
19
- static assertSubsetOf(candidate, superset) {
20
- for (const [placeholderName, candidateMarker] of candidate.markers) {
21
- const fromSuperset = superset.markers.get(placeholderName);
22
- if (fromSuperset === void 0) {
23
- if (candidateMarker instanceof FieldMarker.FieldMarker) {
24
- if (candidateMarker.fieldName === bindingTypes.PRIMARY_KEY_NAME || candidateMarker.fieldName === bindingTypes.TYPENAME_KEY_NAME) {
25
- continue;
26
- }
27
- throw new LocalizedBindingError.LocalizedBindingError(`The field '${candidateMarker.fieldName}' is missing.`, [candidateMarker]);
28
- }
29
- if (candidateMarker instanceof HasOneRelationMarker.HasOneRelationMarker || candidateMarker instanceof HasManyRelationMarker.HasManyRelationMarker) {
30
- const differentPlaceholders = superset.placeholders.get(candidateMarker.parameters.field);
31
- if (differentPlaceholders === void 0) {
32
- throw new LocalizedBindingError.LocalizedBindingError(`The relation '${candidateMarker.parameters.field}' is missing.`, [
33
- candidateMarker
34
- ]);
35
- }
36
- throw new LocalizedBindingError.LocalizedBindingError(
37
- `The relation '${candidateMarker.parameters.field}' exists but its parameters don't match exactly. Check that all relation parameters are the same.`,
38
- [candidateMarker]
39
- );
40
- }
41
- assertNever.assertNever();
42
- }
43
- if (candidateMarker instanceof FieldMarker.FieldMarker) {
44
- continue;
45
- }
46
- try {
47
- if (candidateMarker instanceof HasOneRelationMarker.HasOneRelationMarker && fromSuperset instanceof HasOneRelationMarker.HasOneRelationMarker || candidateMarker instanceof HasManyRelationMarker.HasManyRelationMarker && fromSuperset instanceof HasManyRelationMarker.HasManyRelationMarker) {
48
- this.assertSubsetOf(candidateMarker.fields, fromSuperset.fields);
49
- }
50
- } catch (e) {
51
- if (e instanceof LocalizedBindingError.LocalizedBindingError) {
52
- throw e.nestedIn(candidateMarker);
53
- }
54
- throw e;
55
- }
56
- }
57
- }
58
- static isSubsetOf(candidate, superset) {
59
- for (const [placeholderName, candidateMarker] of candidate.markers) {
60
- const fromSuperset = superset.markers.get(placeholderName);
61
- if (fromSuperset === void 0) {
62
- if (candidateMarker instanceof FieldMarker.FieldMarker && (candidateMarker.fieldName === bindingTypes.PRIMARY_KEY_NAME || candidateMarker.fieldName === bindingTypes.TYPENAME_KEY_NAME)) {
63
- continue;
64
- }
65
- return false;
66
- }
67
- if (candidateMarker instanceof FieldMarker.FieldMarker || fromSuperset instanceof FieldMarker.FieldMarker) {
68
- continue;
69
- }
70
- if (!this.isSubsetOf(candidateMarker.fields, fromSuperset.fields)) {
71
- return false;
72
- }
73
- }
74
- return true;
75
- }
76
- //private static assertAreMarkersSubsetOf(): {}
77
- }
78
- exports.MarkerComparator = MarkerComparator;
79
- //# sourceMappingURL=MarkerComparator.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkerComparator.cjs","sources":["../../../src/core/MarkerComparator.ts"],"sourcesContent":["import { PRIMARY_KEY_NAME, TYPENAME_KEY_NAME } from '../bindingTypes'\nimport {\n\tEntityFieldMarkersContainer,\n\tEntityListSubTreeMarker,\n\tEntitySubTreeMarker,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n} from '../markers'\nimport { assertNever } from '../utils'\nimport { LocalizedBindingError } from './exceptions'\n\nexport class MarkerComparator {\n\tpublic static isSubTreeSubsetOf(\n\t\tcandidate: EntitySubTreeMarker | EntityListSubTreeMarker,\n\t\tsuperset: EntitySubTreeMarker | EntityListSubTreeMarker,\n\t): boolean {\n\t\tif (candidate.placeholderName !== superset.placeholderName) {\n\t\t\treturn false\n\t\t}\n\t\treturn this.isSubsetOf(candidate.fields, superset.fields)\n\t}\n\n\tpublic static assertEntityMarkersSubsetOf(\n\t\tcandidate: EntityFieldMarkersContainer,\n\t\tsuperset: EntityFieldMarkersContainer,\n\t) {\n\t\tthis.assertSubsetOf(candidate, superset)\n\t}\n\n\tprivate static assertSubsetOf(candidate: EntityFieldMarkersContainer, superset: EntityFieldMarkersContainer) {\n\t\tfor (const [placeholderName, candidateMarker] of candidate.markers) {\n\t\t\tconst fromSuperset = superset.markers.get(placeholderName)\n\n\t\t\tif (fromSuperset === undefined) {\n\t\t\t\tif (candidateMarker instanceof FieldMarker) {\n\t\t\t\t\tif (candidateMarker.fieldName === PRIMARY_KEY_NAME || candidateMarker.fieldName === TYPENAME_KEY_NAME) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tthrow new LocalizedBindingError(`The field '${candidateMarker.fieldName}' is missing.`, [candidateMarker])\n\t\t\t\t}\n\t\t\t\tif (candidateMarker instanceof HasOneRelationMarker || candidateMarker instanceof HasManyRelationMarker) {\n\t\t\t\t\tconst differentPlaceholders = superset.placeholders.get(candidateMarker.parameters.field)\n\n\t\t\t\t\tif (differentPlaceholders === undefined) {\n\t\t\t\t\t\tthrow new LocalizedBindingError(`The relation '${candidateMarker.parameters.field}' is missing.`, [\n\t\t\t\t\t\t\tcandidateMarker,\n\t\t\t\t\t\t])\n\t\t\t\t\t}\n\t\t\t\t\t// TODO be more specific\n\t\t\t\t\tthrow new LocalizedBindingError(\n\t\t\t\t\t\t`The relation '${candidateMarker.parameters.field}' exists but its parameters don't match exactly. ` +\n\t\t\t\t\t\t\t`Check that all relation parameters are the same.`,\n\t\t\t\t\t\t[candidateMarker],\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tassertNever(candidateMarker)\n\t\t\t}\n\t\t\tif (candidateMarker instanceof FieldMarker) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (\n\t\t\t\t\t(candidateMarker instanceof HasOneRelationMarker && fromSuperset instanceof HasOneRelationMarker) ||\n\t\t\t\t\t(candidateMarker instanceof HasManyRelationMarker && fromSuperset instanceof HasManyRelationMarker)\n\t\t\t\t) {\n\t\t\t\t\tthis.assertSubsetOf(candidateMarker.fields, fromSuperset.fields)\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tif (e instanceof LocalizedBindingError) {\n\t\t\t\t\tthrow e.nestedIn(candidateMarker)\n\t\t\t\t}\n\t\t\t\tthrow e\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static isSubsetOf(candidate: EntityFieldMarkersContainer, superset: EntityFieldMarkersContainer): boolean {\n\t\tfor (const [placeholderName, candidateMarker] of candidate.markers) {\n\t\t\tconst fromSuperset = superset.markers.get(placeholderName)\n\n\t\t\tif (fromSuperset === undefined) {\n\t\t\t\tif (\n\t\t\t\t\tcandidateMarker instanceof FieldMarker &&\n\t\t\t\t\t(candidateMarker.fieldName === PRIMARY_KEY_NAME || candidateMarker.fieldName === TYPENAME_KEY_NAME)\n\t\t\t\t) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif (candidateMarker instanceof FieldMarker || fromSuperset instanceof FieldMarker) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif (!this.isSubsetOf(candidateMarker.fields, fromSuperset.fields)) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t}\n\t\treturn true\n\t}\n\n\t//private static assertAreMarkersSubsetOf(): {}\n}\n"],"names":["FieldMarker","PRIMARY_KEY_NAME","TYPENAME_KEY_NAME","LocalizedBindingError","HasOneRelationMarker","HasManyRelationMarker","assertNever"],"mappings":";;;;;;;;AAYO,MAAM,iBAAiB;AAAA,EAC7B,OAAc,kBACb,WACA,UACU;AACN,QAAA,UAAU,oBAAoB,SAAS,iBAAiB;AACpD,aAAA;AAAA,IACR;AACA,WAAO,KAAK,WAAW,UAAU,QAAQ,SAAS,MAAM;AAAA,EACzD;AAAA,EAEA,OAAc,4BACb,WACA,UACC;AACI,SAAA,eAAe,WAAW,QAAQ;AAAA,EACxC;AAAA,EAEA,OAAe,e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YAAM,eAAe,SAAS,QAAQ,IAAI,eAAe;AAEzD,UAAI,iBAAiB,QAAW;AAC/B,YACC,2BAA2BH,YAC1B,gBAAA,gBAAgB,cAAcC,aAAAA,oBAAoB,gBAAgB,cAAcC,aAAAA,oBAChF;AACD;AAAA,QACD;AACO,eAAA;AAAA,MACR;AACI,UAAA,2BAA2BF,YAAAA,eAAe,wBAAwBA,yBAAa;AAClF;AAAA,MACD;AACA,UAAI,CAAC,KAAK,WAAW,gBAAgB,QAAQ,aAAa,MAAM,GAAG;AAC3D,eAAA;AAAA,MACR;AAAA,IACD;AACO,WAAA;AAAA,EACR;AAAA;AAGD;;"}
@@ -1,79 +0,0 @@
1
- import { PRIMARY_KEY_NAME, TYPENAME_KEY_NAME } from "../bindingTypes.js";
2
- import { LocalizedBindingError } from "./exceptions/LocalizedBindingError.js";
3
- import { FieldMarker } from "../markers/FieldMarker.js";
4
- import { HasOneRelationMarker } from "../markers/HasOneRelationMarker.js";
5
- import { HasManyRelationMarker } from "../markers/HasManyRelationMarker.js";
6
- import { assertNever } from "../utils/assertNever.js";
7
- class MarkerComparator {
8
- static isSubTreeSubsetOf(candidate, superset) {
9
- if (candidate.placeholderName !== superset.placeholderName) {
10
- return false;
11
- }
12
- return this.isSubsetOf(candidate.fields, superset.fields);
13
- }
14
- static assertEntityMarkersSubsetOf(candidate, superset) {
15
- this.assertSubsetOf(candidate, superset);
16
- }
17
- static assertSubsetOf(candidate, superset) {
18
- for (const [placeholderName, candidateMarker] of candidate.markers) {
19
- const fromSuperset = superset.markers.get(placeholderName);
20
- if (fromSuperset === void 0) {
21
- if (candidateMarker instanceof FieldMarker) {
22
- if (candidateMarker.fieldName === PRIMARY_KEY_NAME || candidateMarker.fieldName === TYPENAME_KEY_NAME) {
23
- continue;
24
- }
25
- throw new LocalizedBindingError(`The field '${candidateMarker.fieldName}' is missing.`, [candidateMarker]);
26
- }
27
- if (candidateMarker instanceof HasOneRelationMarker || candidateMarker instanceof HasManyRelationMarker) {
28
- const differentPlaceholders = superset.placeholders.get(candidateMarker.parameters.field);
29
- if (differentPlaceholders === void 0) {
30
- throw new LocalizedBindingError(`The relation '${candidateMarker.parameters.field}' is missing.`, [
31
- candidateMarker
32
- ]);
33
- }
34
- throw new LocalizedBindingError(
35
- `The relation '${candidateMarker.parameters.field}' exists but its parameters don't match exactly. Check that all relation parameters are the same.`,
36
- [candidateMarker]
37
- );
38
- }
39
- assertNever();
40
- }
41
- if (candidateMarker instanceof FieldMarker) {
42
- continue;
43
- }
44
- try {
45
- if (candidateMarker instanceof HasOneRelationMarker && fromSuperset instanceof HasOneRelationMarker || candidateMarker instanceof HasManyRelationMarker && fromSuperset instanceof HasManyRelationMarker) {
46
- this.assertSubsetOf(candidateMarker.fields, fromSuperset.fields);
47
- }
48
- } catch (e) {
49
- if (e instanceof LocalizedBindingError) {
50
- throw e.nestedIn(candidateMarker);
51
- }
52
- throw e;
53
- }
54
- }
55
- }
56
- static isSubsetOf(candidate, superset) {
57
- for (const [placeholderName, candidateMarker] of candidate.markers) {
58
- const fromSuperset = superset.markers.get(placeholderName);
59
- if (fromSuperset === void 0) {
60
- if (candidateMarker instanceof FieldMarker && (candidateMarker.fieldName === PRIMARY_KEY_NAME || candidateMarker.fieldName === TYPENAME_KEY_NAME)) {
61
- continue;
62
- }
63
- return false;
64
- }
65
- if (candidateMarker instanceof FieldMarker || fromSuperset instanceof FieldMarker) {
66
- continue;
67
- }
68
- if (!this.isSubsetOf(candidateMarker.fields, fromSuperset.fields)) {
69
- return false;
70
- }
71
- }
72
- return true;
73
- }
74
- //private static assertAreMarkersSubsetOf(): {}
75
- }
76
- export {
77
- MarkerComparator
78
- };
79
- //# sourceMappingURL=MarkerComparator.js.map