@canonical/dataviews-core 0.47.0 → 0.48.0

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 (597) hide show
  1. package/README.md +27 -19
  2. package/dist/esm/lib/assertion/assertInvariant.js +14 -0
  3. package/dist/esm/lib/assertion/assertInvariant.js.map +1 -0
  4. package/dist/esm/lib/assertion/index.js +2 -0
  5. package/dist/esm/lib/assertion/index.js.map +1 -0
  6. package/dist/esm/lib/bindings/index.js +6 -20
  7. package/dist/esm/lib/bindings/index.js.map +1 -1
  8. package/dist/esm/lib/coordinator/createQueryCoordinator.js +65 -6
  9. package/dist/esm/lib/coordinator/createQueryCoordinator.js.map +1 -1
  10. package/dist/esm/lib/coordinator/index.js +2 -0
  11. package/dist/esm/lib/coordinator/index.js.map +1 -1
  12. package/dist/esm/lib/coordinator/isClauseReplaced.js +27 -0
  13. package/dist/esm/lib/coordinator/isClauseReplaced.js.map +1 -0
  14. package/dist/esm/lib/coordinator/readWithheld.js +13 -0
  15. package/dist/esm/lib/coordinator/readWithheld.js.map +1 -0
  16. package/dist/esm/lib/display/constants.js +2 -1
  17. package/dist/esm/lib/display/constants.js.map +1 -1
  18. package/dist/esm/lib/display/resolveDisplayStatus.js +24 -4
  19. package/dist/esm/lib/display/resolveDisplayStatus.js.map +1 -1
  20. package/dist/esm/lib/filter/createFilterInput.js +50 -16
  21. package/dist/esm/lib/filter/createFilterInput.js.map +1 -1
  22. package/dist/esm/lib/filter/createFilterInputs.js +116 -29
  23. package/dist/esm/lib/filter/createFilterInputs.js.map +1 -1
  24. package/dist/esm/lib/geometry/buildColumnTemplate.js +2 -2
  25. package/dist/esm/lib/geometry/buildColumnTemplate.js.map +1 -1
  26. package/dist/esm/lib/geometry/createColumnLayout.js +7 -10
  27. package/dist/esm/lib/geometry/createColumnLayout.js.map +1 -1
  28. package/dist/esm/lib/geometry/createGridInteraction.js +8 -5
  29. package/dist/esm/lib/geometry/createGridInteraction.js.map +1 -1
  30. package/dist/esm/lib/geometry/resolveColumns.js +5 -5
  31. package/dist/esm/lib/geometry/resolveColumns.js.map +1 -1
  32. package/dist/esm/lib/index.js +1 -1
  33. package/dist/esm/lib/index.js.map +1 -1
  34. package/dist/esm/lib/indexeddb/createIndexedDBViewStore.js +2 -2
  35. package/dist/esm/lib/indexeddb/createIndexedDBViewStore.js.map +1 -1
  36. package/dist/esm/lib/indexeddb/readSavedView.js +6 -2
  37. package/dist/esm/lib/indexeddb/readSavedView.js.map +1 -1
  38. package/dist/esm/lib/location/createMemoryLocation.js +2 -0
  39. package/dist/esm/lib/location/createMemoryLocation.js.map +1 -1
  40. package/dist/esm/lib/location/createPlatformLocation.js +3 -0
  41. package/dist/esm/lib/location/createPlatformLocation.js.map +1 -1
  42. package/dist/esm/lib/messages/composeStatus.js +10 -0
  43. package/dist/esm/lib/messages/composeStatus.js.map +1 -0
  44. package/dist/esm/lib/messages/constants.js +323 -0
  45. package/dist/esm/lib/messages/constants.js.map +1 -1
  46. package/dist/esm/lib/messages/resolveMessages.js +1 -1
  47. package/dist/esm/lib/messages/resolveMessages.js.map +1 -1
  48. package/dist/esm/lib/observable/createChannel.js +4 -2
  49. package/dist/esm/lib/observable/createChannel.js.map +1 -1
  50. package/dist/esm/lib/presentation/constants.js +5 -12
  51. package/dist/esm/lib/presentation/constants.js.map +1 -1
  52. package/dist/esm/lib/presentation/createMemoryPresentation.js +12 -0
  53. package/dist/esm/lib/presentation/createMemoryPresentation.js.map +1 -0
  54. package/dist/esm/lib/presentation/createPresentation.js +3 -3
  55. package/dist/esm/lib/presentation/createPresentation.js.map +1 -1
  56. package/dist/esm/lib/presentation/hideColumn.js +7 -6
  57. package/dist/esm/lib/presentation/hideColumn.js.map +1 -1
  58. package/dist/esm/lib/presentation/index.js +4 -1
  59. package/dist/esm/lib/presentation/index.js.map +1 -1
  60. package/dist/esm/lib/presentation/isTableKey.js +9 -0
  61. package/dist/esm/lib/presentation/isTableKey.js.map +1 -0
  62. package/dist/esm/lib/presentation/moveColumn.js +7 -7
  63. package/dist/esm/lib/presentation/moveColumn.js.map +1 -1
  64. package/dist/esm/lib/presentation/pickTableKeys.js +6 -0
  65. package/dist/esm/lib/presentation/pickTableKeys.js.map +1 -0
  66. package/dist/esm/lib/presentation/resetColumnArrangement.js +8 -12
  67. package/dist/esm/lib/presentation/resetColumnArrangement.js.map +1 -1
  68. package/dist/esm/lib/presentation/resolveArrangementParams.js +7 -12
  69. package/dist/esm/lib/presentation/resolveArrangementParams.js.map +1 -1
  70. package/dist/esm/lib/presentation/resolveColumnArrangement.js +9 -8
  71. package/dist/esm/lib/presentation/resolveColumnArrangement.js.map +1 -1
  72. package/dist/esm/lib/presentation/showColumn.js +5 -4
  73. package/dist/esm/lib/presentation/showColumn.js.map +1 -1
  74. package/dist/esm/lib/presentation/spellColumnArrangement.js +5 -9
  75. package/dist/esm/lib/presentation/spellColumnArrangement.js.map +1 -1
  76. package/dist/esm/lib/presentation/spellWidthKey.js +4 -4
  77. package/dist/esm/lib/presentation/spellWidthKey.js.map +1 -1
  78. package/dist/esm/lib/provider/constants.js +3 -22
  79. package/dist/esm/lib/provider/constants.js.map +1 -1
  80. package/dist/esm/lib/provider/createDataViewsProvider.js +46 -19
  81. package/dist/esm/lib/provider/createDataViewsProvider.js.map +1 -1
  82. package/dist/esm/lib/provider/createQueryCommands.js +32 -20
  83. package/dist/esm/lib/provider/createQueryCommands.js.map +1 -1
  84. package/dist/esm/lib/provider/createRecordTyping.js +14 -12
  85. package/dist/esm/lib/provider/createRecordTyping.js.map +1 -1
  86. package/dist/esm/lib/provider/createRequestCompleter.js +8 -3
  87. package/dist/esm/lib/provider/createRequestCompleter.js.map +1 -1
  88. package/dist/esm/lib/provider/isDataViewsProvider.js +4 -2
  89. package/dist/esm/lib/provider/isDataViewsProvider.js.map +1 -1
  90. package/dist/esm/lib/provider/isSameQuery.js +13 -0
  91. package/dist/esm/lib/provider/isSameQuery.js.map +1 -0
  92. package/dist/esm/lib/provider/listCarriedIssues.js +20 -0
  93. package/dist/esm/lib/provider/listCarriedIssues.js.map +1 -0
  94. package/dist/esm/lib/provider/observePorts.js +2 -2
  95. package/dist/esm/lib/provider/observePorts.js.map +1 -1
  96. package/dist/esm/lib/provider/readCommandCause.js +28 -0
  97. package/dist/esm/lib/provider/readCommandCause.js.map +1 -0
  98. package/dist/esm/lib/provider/readLocatedArrangement.js +15 -13
  99. package/dist/esm/lib/provider/readLocatedArrangement.js.map +1 -1
  100. package/dist/esm/lib/provider/readProviderHost.js +2 -2
  101. package/dist/esm/lib/provider/readProviderHost.js.map +1 -1
  102. package/dist/esm/lib/provider/readProviderRegistry.js +20 -0
  103. package/dist/esm/lib/provider/readProviderRegistry.js.map +1 -0
  104. package/dist/esm/lib/provider/readStartingPoint.js +2 -1
  105. package/dist/esm/lib/provider/readStartingPoint.js.map +1 -1
  106. package/dist/esm/lib/provider/registerProviderHost.js +2 -2
  107. package/dist/esm/lib/provider/registerProviderHost.js.map +1 -1
  108. package/dist/esm/lib/provider/resolveHistoryPolicy.js +7 -7
  109. package/dist/esm/lib/provider/resolveHistoryPolicy.js.map +1 -1
  110. package/dist/esm/lib/provider/runSource.js +13 -8
  111. package/dist/esm/lib/provider/runSource.js.map +1 -1
  112. package/dist/esm/lib/provider/shouldAdoptLocation.js +15 -0
  113. package/dist/esm/lib/provider/shouldAdoptLocation.js.map +1 -0
  114. package/dist/esm/lib/provider/spellLocation.js +7 -3
  115. package/dist/esm/lib/provider/spellLocation.js.map +1 -1
  116. package/dist/esm/lib/provider/syncLocation.js +61 -31
  117. package/dist/esm/lib/provider/syncLocation.js.map +1 -1
  118. package/dist/esm/lib/query/applyQueryCommand.js +129 -38
  119. package/dist/esm/lib/query/applyQueryCommand.js.map +1 -1
  120. package/dist/esm/lib/query/areListsEqual.js +1 -1
  121. package/dist/esm/lib/query/areListsEqual.js.map +1 -1
  122. package/dist/esm/lib/query/canonicalizeSlice.js +14 -17
  123. package/dist/esm/lib/query/canonicalizeSlice.js.map +1 -1
  124. package/dist/esm/lib/query/compareConjuncts.js +44 -0
  125. package/dist/esm/lib/query/compareConjuncts.js.map +1 -0
  126. package/dist/esm/lib/query/constants.js +6 -2
  127. package/dist/esm/lib/query/constants.js.map +1 -1
  128. package/dist/esm/lib/query/index.js +2 -0
  129. package/dist/esm/lib/query/index.js.map +1 -1
  130. package/dist/esm/lib/query/listConjuncts.js +13 -0
  131. package/dist/esm/lib/query/listConjuncts.js.map +1 -0
  132. package/dist/esm/lib/query/readCondition.js +36 -0
  133. package/dist/esm/lib/query/readCondition.js.map +1 -0
  134. package/dist/esm/lib/query/rejectOperandArity.js +2 -4
  135. package/dist/esm/lib/query/rejectOperandArity.js.map +1 -1
  136. package/dist/esm/lib/result/areFieldFacetsEqual.js +7 -1
  137. package/dist/esm/lib/result/areFieldFacetsEqual.js.map +1 -1
  138. package/dist/esm/lib/rows/constants.js +1 -1
  139. package/dist/esm/lib/rows/constants.js.map +1 -1
  140. package/dist/esm/lib/rows/createRowModel.js +2 -2
  141. package/dist/esm/lib/rows/createRowModel.js.map +1 -1
  142. package/dist/esm/lib/rows/createRowScopes.js +5 -2
  143. package/dist/esm/lib/rows/createRowScopes.js.map +1 -1
  144. package/dist/esm/lib/schema/createSchema.js +21 -10
  145. package/dist/esm/lib/schema/createSchema.js.map +1 -1
  146. package/dist/esm/lib/schema/parseNumberWithUnit.js +72 -0
  147. package/dist/esm/lib/schema/parseNumberWithUnit.js.map +1 -0
  148. package/dist/esm/lib/schema/resolveFieldKind.js +88 -29
  149. package/dist/esm/lib/schema/resolveFieldKind.js.map +1 -1
  150. package/dist/esm/lib/selection/createSelection.js +4 -2
  151. package/dist/esm/lib/selection/createSelection.js.map +1 -1
  152. package/dist/esm/lib/source/copyCapabilities.js +0 -1
  153. package/dist/esm/lib/source/copyCapabilities.js.map +1 -1
  154. package/dist/esm/lib/source/createArraySource.js +11 -8
  155. package/dist/esm/lib/source/createArraySource.js.map +1 -1
  156. package/dist/esm/lib/source/createPage.js +0 -1
  157. package/dist/esm/lib/source/createPage.js.map +1 -1
  158. package/dist/esm/lib/source/createQuerySource.js +32 -13
  159. package/dist/esm/lib/source/createQuerySource.js.map +1 -1
  160. package/dist/esm/lib/source/createRefusal.js +5 -0
  161. package/dist/esm/lib/source/createRefusal.js.map +1 -0
  162. package/dist/esm/lib/source/createRelaySource.js +49 -60
  163. package/dist/esm/lib/source/createRelaySource.js.map +1 -1
  164. package/dist/esm/lib/source/declareCapabilities.js +0 -1
  165. package/dist/esm/lib/source/declareCapabilities.js.map +1 -1
  166. package/dist/esm/lib/source/executeSlice.js +1 -0
  167. package/dist/esm/lib/source/executeSlice.js.map +1 -1
  168. package/dist/esm/lib/source/foldText.js +3 -0
  169. package/dist/esm/lib/source/foldText.js.map +1 -1
  170. package/dist/esm/lib/source/index.js +3 -1
  171. package/dist/esm/lib/source/index.js.map +1 -1
  172. package/dist/esm/lib/source/listFilterRefusals.js +30 -0
  173. package/dist/esm/lib/source/listFilterRefusals.js.map +1 -0
  174. package/dist/esm/lib/source/listGroupRefusals.js +22 -0
  175. package/dist/esm/lib/source/listGroupRefusals.js.map +1 -0
  176. package/dist/esm/lib/source/listOfferedOperators.js +25 -0
  177. package/dist/esm/lib/source/listOfferedOperators.js.map +1 -0
  178. package/dist/esm/lib/source/listQueryRefusals.js +35 -0
  179. package/dist/esm/lib/source/listQueryRefusals.js.map +1 -0
  180. package/dist/esm/lib/source/listSortRefusals.js +27 -0
  181. package/dist/esm/lib/source/listSortRefusals.js.map +1 -0
  182. package/dist/esm/lib/source/listWindowRefusals.js +20 -0
  183. package/dist/esm/lib/source/listWindowRefusals.js.map +1 -0
  184. package/dist/esm/lib/source/orderRows.js +36 -12
  185. package/dist/esm/lib/source/orderRows.js.map +1 -1
  186. package/dist/esm/lib/source/readFacets.js +30 -15
  187. package/dist/esm/lib/source/readFacets.js.map +1 -1
  188. package/dist/esm/lib/source/readRelayPage.js +55 -0
  189. package/dist/esm/lib/source/readRelayPage.js.map +1 -0
  190. package/dist/esm/lib/source/readSlice.js +5 -3
  191. package/dist/esm/lib/source/readSlice.js.map +1 -1
  192. package/dist/esm/lib/source/resolveErrorDelivery.js +27 -0
  193. package/dist/esm/lib/source/resolveErrorDelivery.js.map +1 -0
  194. package/dist/esm/lib/source/selectRows.js +72 -16
  195. package/dist/esm/lib/source/selectRows.js.map +1 -1
  196. package/dist/esm/lib/views/createViewCommands.js +6 -3
  197. package/dist/esm/lib/views/createViewCommands.js.map +1 -1
  198. package/dist/esm/lib/views/readStoredQuery.js +2 -1
  199. package/dist/esm/lib/views/readStoredQuery.js.map +1 -1
  200. package/dist/esm/lib/virtualization/createSizeIndex.js +19 -10
  201. package/dist/esm/lib/virtualization/createSizeIndex.js.map +1 -1
  202. package/dist/esm/lib/virtualization/createVirtualRange.js +30 -28
  203. package/dist/esm/lib/virtualization/createVirtualRange.js.map +1 -1
  204. package/dist/esm/lib/wire/areQueryIssuesEqual.js +12 -0
  205. package/dist/esm/lib/wire/areQueryIssuesEqual.js.map +1 -0
  206. package/dist/esm/lib/wire/constants.js +56 -36
  207. package/dist/esm/lib/wire/constants.js.map +1 -1
  208. package/dist/esm/lib/wire/decodeQuery.js +140 -168
  209. package/dist/esm/lib/wire/decodeQuery.js.map +1 -1
  210. package/dist/esm/lib/wire/encodeCarryingQuery.js +294 -0
  211. package/dist/esm/lib/wire/encodeCarryingQuery.js.map +1 -0
  212. package/dist/esm/lib/wire/encodeQuery.js +8 -76
  213. package/dist/esm/lib/wire/encodeQuery.js.map +1 -1
  214. package/dist/esm/lib/wire/index.js +6 -1
  215. package/dist/esm/lib/wire/index.js.map +1 -1
  216. package/dist/esm/lib/wire/isNarrowingIssue.js +15 -0
  217. package/dist/esm/lib/wire/isNarrowingIssue.js.map +1 -0
  218. package/dist/esm/lib/wire/isOwnedKey.js +6 -2
  219. package/dist/esm/lib/wire/isOwnedKey.js.map +1 -1
  220. package/dist/esm/lib/wire/isReservedKey.js +9 -0
  221. package/dist/esm/lib/wire/isReservedKey.js.map +1 -0
  222. package/dist/esm/lib/wire/readArrangementParams.js +18 -14
  223. package/dist/esm/lib/wire/readArrangementParams.js.map +1 -1
  224. package/dist/esm/lib/wire/readKeyPredicate.js +146 -0
  225. package/dist/esm/lib/wire/readKeyPredicate.js.map +1 -0
  226. package/dist/esm/lib/wire/readTableKey.js +21 -0
  227. package/dist/esm/lib/wire/readTableKey.js.map +1 -0
  228. package/dist/esm/lib/wire/readUndeclaredField.js +19 -0
  229. package/dist/esm/lib/wire/readUndeclaredField.js.map +1 -0
  230. package/dist/esm/lib/wire/readWireKey.js +38 -0
  231. package/dist/esm/lib/wire/readWireKey.js.map +1 -0
  232. package/dist/esm/lib/wire/recordConjunct.js +48 -0
  233. package/dist/esm/lib/wire/recordConjunct.js.map +1 -0
  234. package/dist/esm/lib/wire/rejectWireName.js +3 -2
  235. package/dist/esm/lib/wire/rejectWireName.js.map +1 -1
  236. package/dist/esm/lib/wire/spellArrangementKey.js +7 -0
  237. package/dist/esm/lib/wire/spellArrangementKey.js.map +1 -0
  238. package/dist/esm/lib/wire/spellArrangementParams.js +12 -15
  239. package/dist/esm/lib/wire/spellArrangementParams.js.map +1 -1
  240. package/dist/esm/lib/wire/spellOperand.js +33 -0
  241. package/dist/esm/lib/wire/spellOperand.js.map +1 -0
  242. package/dist/esm/lib/wire/spellTableId.js +12 -0
  243. package/dist/esm/lib/wire/spellTableId.js.map +1 -0
  244. package/dist/esm/lib/wire/spellWireKey.js +7 -4
  245. package/dist/esm/lib/wire/spellWireKey.js.map +1 -1
  246. package/dist/esm/lib/wire/spellWireValues.js +18 -0
  247. package/dist/esm/lib/wire/spellWireValues.js.map +1 -0
  248. package/dist/esm/testing/answerWith.js +10 -0
  249. package/dist/esm/testing/buildFailedResult.js +12 -0
  250. package/dist/esm/testing/buildPage.js +19 -0
  251. package/dist/esm/testing/buildRefusedResult.js +18 -0
  252. package/dist/esm/testing/buildRowModel.js +15 -0
  253. package/dist/esm/testing/buildSettledPage.js +22 -0
  254. package/dist/esm/testing/buildStoredView.js +19 -0
  255. package/dist/esm/testing/classifyInitializer.js +50 -0
  256. package/dist/esm/testing/countAtLeast.js +9 -0
  257. package/dist/esm/testing/countExactly.js +9 -0
  258. package/dist/esm/testing/createCountedRows.js +28 -0
  259. package/dist/esm/testing/createCountingViewStore.js +36 -0
  260. package/dist/esm/testing/createDeferred.js +9 -0
  261. package/dist/esm/testing/createManualSource.js +56 -0
  262. package/dist/esm/testing/createRecordingLocation.js +53 -0
  263. package/dist/esm/testing/createStandInPresentationStore.js +15 -0
  264. package/dist/esm/testing/createStandInViewStore.js +23 -0
  265. package/dist/esm/testing/declare.js +10 -0
  266. package/dist/esm/testing/declareSort.js +17 -0
  267. package/dist/esm/testing/filterStatusBy.js +13 -0
  268. package/dist/esm/testing/fixtures.js +694 -0
  269. package/dist/esm/testing/flushPresentation.js +16 -0
  270. package/dist/esm/testing/index.js +35 -0
  271. package/dist/esm/testing/installFakeClock.js +18 -0
  272. package/dist/esm/testing/isMovableForm.js +7 -0
  273. package/dist/esm/testing/isWrappedInitializer.js +33 -0
  274. package/dist/esm/testing/isWrapperCallee.js +10 -0
  275. package/dist/esm/testing/judgeExports.js +54 -0
  276. package/dist/esm/testing/listBracedExports.js +45 -0
  277. package/dist/esm/testing/listExports.js +68 -0
  278. package/dist/esm/testing/listFileRuleFindings.js +76 -0
  279. package/dist/esm/testing/listUnmarkedNames.js +40 -0
  280. package/dist/esm/testing/maskSource.js +149 -0
  281. package/dist/esm/testing/observeUntilFinished.js +15 -0
  282. package/dist/esm/testing/openIndexedDBTab.js +20 -0
  283. package/dist/esm/testing/orderNodesByName.js +31 -0
  284. package/dist/esm/testing/readDeclarationDoc.js +15 -0
  285. package/dist/esm/testing/readDeclarationExport.js +41 -0
  286. package/dist/esm/testing/readDefaultExport.js +55 -0
  287. package/dist/esm/testing/readDisplayStatus.js +14 -0
  288. package/dist/esm/testing/readFileRole.js +16 -0
  289. package/dist/esm/testing/readGroup.js +8 -0
  290. package/dist/esm/testing/readId.js +9 -0
  291. package/dist/esm/testing/readIssuedRequest.js +12 -0
  292. package/dist/esm/testing/readLocalBinding.js +44 -0
  293. package/dist/esm/testing/readSucceededPage.js +7 -0
  294. package/dist/esm/testing/relayTypes.js +5 -0
  295. package/dist/esm/testing/respellLink.js +27 -0
  296. package/dist/esm/testing/runFailureHandlers.js +26 -0
  297. package/dist/esm/testing/settleCalls.js +11 -0
  298. package/dist/esm/testing/skipBalanced.js +20 -0
  299. package/dist/esm/testing/skipTypeAnnotation.js +33 -0
  300. package/dist/esm/testing/types.js +2 -0
  301. package/dist/esm/testing/waitForState.js +40 -0
  302. package/dist/types/lib/assertion/assertInvariant.d.ts +9 -0
  303. package/dist/types/lib/assertion/assertInvariant.d.ts.map +1 -0
  304. package/dist/types/lib/assertion/index.d.ts +2 -0
  305. package/dist/types/lib/assertion/index.d.ts.map +1 -0
  306. package/dist/types/lib/bindings/index.d.ts +6 -20
  307. package/dist/types/lib/bindings/index.d.ts.map +1 -1
  308. package/dist/types/lib/coordinator/createQueryCoordinator.d.ts.map +1 -1
  309. package/dist/types/lib/coordinator/index.d.ts +2 -0
  310. package/dist/types/lib/coordinator/index.d.ts.map +1 -1
  311. package/dist/types/lib/coordinator/isClauseReplaced.d.ts +12 -0
  312. package/dist/types/lib/coordinator/isClauseReplaced.d.ts.map +1 -0
  313. package/dist/types/lib/coordinator/readWithheld.d.ts +9 -0
  314. package/dist/types/lib/coordinator/readWithheld.d.ts.map +1 -0
  315. package/dist/types/lib/coordinator/types.d.ts +34 -11
  316. package/dist/types/lib/coordinator/types.d.ts.map +1 -1
  317. package/dist/types/lib/display/constants.d.ts.map +1 -1
  318. package/dist/types/lib/display/resolveDisplayStatus.d.ts +6 -0
  319. package/dist/types/lib/display/resolveDisplayStatus.d.ts.map +1 -1
  320. package/dist/types/lib/display/types.d.ts +22 -16
  321. package/dist/types/lib/display/types.d.ts.map +1 -1
  322. package/dist/types/lib/filter/createFilterInput.d.ts.map +1 -1
  323. package/dist/types/lib/filter/createFilterInputs.d.ts +4 -2
  324. package/dist/types/lib/filter/createFilterInputs.d.ts.map +1 -1
  325. package/dist/types/lib/filter/types.d.ts +55 -2
  326. package/dist/types/lib/filter/types.d.ts.map +1 -1
  327. package/dist/types/lib/geometry/createColumnLayout.d.ts +3 -6
  328. package/dist/types/lib/geometry/createColumnLayout.d.ts.map +1 -1
  329. package/dist/types/lib/geometry/createGridInteraction.d.ts +3 -0
  330. package/dist/types/lib/geometry/createGridInteraction.d.ts.map +1 -1
  331. package/dist/types/lib/geometry/types.d.ts +3 -1
  332. package/dist/types/lib/geometry/types.d.ts.map +1 -1
  333. package/dist/types/lib/index.d.ts +7 -7
  334. package/dist/types/lib/index.d.ts.map +1 -1
  335. package/dist/types/lib/indexeddb/createIndexedDBViewStore.d.ts.map +1 -1
  336. package/dist/types/lib/indexeddb/readSavedView.d.ts +4 -1
  337. package/dist/types/lib/indexeddb/readSavedView.d.ts.map +1 -1
  338. package/dist/types/lib/indexeddb/types.d.ts +7 -0
  339. package/dist/types/lib/indexeddb/types.d.ts.map +1 -1
  340. package/dist/types/lib/location/createMemoryLocation.d.ts +2 -0
  341. package/dist/types/lib/location/createMemoryLocation.d.ts.map +1 -1
  342. package/dist/types/lib/location/createPlatformLocation.d.ts +3 -0
  343. package/dist/types/lib/location/createPlatformLocation.d.ts.map +1 -1
  344. package/dist/types/lib/messages/composeStatus.d.ts +6 -0
  345. package/dist/types/lib/messages/composeStatus.d.ts.map +1 -0
  346. package/dist/types/lib/messages/constants.d.ts +27 -1
  347. package/dist/types/lib/messages/constants.d.ts.map +1 -1
  348. package/dist/types/lib/messages/types.d.ts +381 -88
  349. package/dist/types/lib/messages/types.d.ts.map +1 -1
  350. package/dist/types/lib/observable/createChannel.d.ts +2 -0
  351. package/dist/types/lib/observable/createChannel.d.ts.map +1 -1
  352. package/dist/types/lib/presentation/constants.d.ts +4 -12
  353. package/dist/types/lib/presentation/constants.d.ts.map +1 -1
  354. package/dist/types/lib/presentation/createMemoryPresentation.d.ts +10 -0
  355. package/dist/types/lib/presentation/createMemoryPresentation.d.ts.map +1 -0
  356. package/dist/types/lib/presentation/hideColumn.d.ts +2 -2
  357. package/dist/types/lib/presentation/hideColumn.d.ts.map +1 -1
  358. package/dist/types/lib/presentation/index.d.ts +4 -1
  359. package/dist/types/lib/presentation/index.d.ts.map +1 -1
  360. package/dist/types/lib/presentation/isTableKey.d.ts +6 -0
  361. package/dist/types/lib/presentation/isTableKey.d.ts.map +1 -0
  362. package/dist/types/lib/presentation/moveColumn.d.ts +2 -3
  363. package/dist/types/lib/presentation/moveColumn.d.ts.map +1 -1
  364. package/dist/types/lib/presentation/pickTableKeys.d.ts +4 -0
  365. package/dist/types/lib/presentation/pickTableKeys.d.ts.map +1 -0
  366. package/dist/types/lib/presentation/resetColumnArrangement.d.ts +3 -8
  367. package/dist/types/lib/presentation/resetColumnArrangement.d.ts.map +1 -1
  368. package/dist/types/lib/presentation/resolveArrangementParams.d.ts +3 -9
  369. package/dist/types/lib/presentation/resolveArrangementParams.d.ts.map +1 -1
  370. package/dist/types/lib/presentation/resolveColumnArrangement.d.ts +3 -2
  371. package/dist/types/lib/presentation/resolveColumnArrangement.d.ts.map +1 -1
  372. package/dist/types/lib/presentation/showColumn.d.ts +1 -1
  373. package/dist/types/lib/presentation/showColumn.d.ts.map +1 -1
  374. package/dist/types/lib/presentation/spellColumnArrangement.d.ts +3 -7
  375. package/dist/types/lib/presentation/spellColumnArrangement.d.ts.map +1 -1
  376. package/dist/types/lib/presentation/spellWidthKey.d.ts +2 -2
  377. package/dist/types/lib/presentation/spellWidthKey.d.ts.map +1 -1
  378. package/dist/types/lib/presentation/types.d.ts +6 -2
  379. package/dist/types/lib/presentation/types.d.ts.map +1 -1
  380. package/dist/types/lib/provider/constants.d.ts +3 -15
  381. package/dist/types/lib/provider/constants.d.ts.map +1 -1
  382. package/dist/types/lib/provider/createDataViewsProvider.d.ts.map +1 -1
  383. package/dist/types/lib/provider/createQueryCommands.d.ts.map +1 -1
  384. package/dist/types/lib/provider/createRecordTyping.d.ts.map +1 -1
  385. package/dist/types/lib/provider/createRequestCompleter.d.ts.map +1 -1
  386. package/dist/types/lib/provider/isDataViewsProvider.d.ts.map +1 -1
  387. package/dist/types/lib/provider/isSameQuery.d.ts +8 -0
  388. package/dist/types/lib/provider/isSameQuery.d.ts.map +1 -0
  389. package/dist/types/lib/provider/listCarriedIssues.d.ts +10 -0
  390. package/dist/types/lib/provider/listCarriedIssues.d.ts.map +1 -0
  391. package/dist/types/lib/provider/readCommandCause.d.ts +10 -0
  392. package/dist/types/lib/provider/readCommandCause.d.ts.map +1 -0
  393. package/dist/types/lib/provider/readLocatedArrangement.d.ts +3 -5
  394. package/dist/types/lib/provider/readLocatedArrangement.d.ts.map +1 -1
  395. package/dist/types/lib/provider/readProviderRegistry.d.ts +10 -0
  396. package/dist/types/lib/provider/readProviderRegistry.d.ts.map +1 -0
  397. package/dist/types/lib/provider/readStartingPoint.d.ts.map +1 -1
  398. package/dist/types/lib/provider/runSource.d.ts.map +1 -1
  399. package/dist/types/lib/provider/shouldAdoptLocation.d.ts +19 -0
  400. package/dist/types/lib/provider/shouldAdoptLocation.d.ts.map +1 -0
  401. package/dist/types/lib/provider/spellLocation.d.ts +10 -1
  402. package/dist/types/lib/provider/spellLocation.d.ts.map +1 -1
  403. package/dist/types/lib/provider/syncLocation.d.ts.map +1 -1
  404. package/dist/types/lib/provider/types.d.ts +91 -36
  405. package/dist/types/lib/provider/types.d.ts.map +1 -1
  406. package/dist/types/lib/query/applyQueryCommand.d.ts +7 -2
  407. package/dist/types/lib/query/applyQueryCommand.d.ts.map +1 -1
  408. package/dist/types/lib/query/canonicalizeSlice.d.ts +4 -2
  409. package/dist/types/lib/query/canonicalizeSlice.d.ts.map +1 -1
  410. package/dist/types/lib/query/compareConjuncts.d.ts +14 -0
  411. package/dist/types/lib/query/compareConjuncts.d.ts.map +1 -0
  412. package/dist/types/lib/query/constants.d.ts +2 -2
  413. package/dist/types/lib/query/constants.d.ts.map +1 -1
  414. package/dist/types/lib/query/index.d.ts +2 -0
  415. package/dist/types/lib/query/index.d.ts.map +1 -1
  416. package/dist/types/lib/query/listConjuncts.d.ts +11 -0
  417. package/dist/types/lib/query/listConjuncts.d.ts.map +1 -0
  418. package/dist/types/lib/query/readCondition.d.ts +14 -0
  419. package/dist/types/lib/query/readCondition.d.ts.map +1 -0
  420. package/dist/types/lib/query/rejectOperandArity.d.ts +2 -2
  421. package/dist/types/lib/query/rejectOperandArity.d.ts.map +1 -1
  422. package/dist/types/lib/query/types.d.ts +89 -16
  423. package/dist/types/lib/query/types.d.ts.map +1 -1
  424. package/dist/types/lib/result/areFieldFacetsEqual.d.ts +7 -1
  425. package/dist/types/lib/result/areFieldFacetsEqual.d.ts.map +1 -1
  426. package/dist/types/lib/result/types.d.ts +66 -24
  427. package/dist/types/lib/result/types.d.ts.map +1 -1
  428. package/dist/types/lib/rows/createRowScopes.d.ts +3 -0
  429. package/dist/types/lib/rows/createRowScopes.d.ts.map +1 -1
  430. package/dist/types/lib/rows/types.d.ts +3 -3
  431. package/dist/types/lib/rows/types.d.ts.map +1 -1
  432. package/dist/types/lib/schema/createSchema.d.ts.map +1 -1
  433. package/dist/types/lib/schema/parseNumberWithUnit.d.ts +15 -0
  434. package/dist/types/lib/schema/parseNumberWithUnit.d.ts.map +1 -0
  435. package/dist/types/lib/schema/resolveFieldKind.d.ts.map +1 -1
  436. package/dist/types/lib/schema/types.d.ts +93 -29
  437. package/dist/types/lib/schema/types.d.ts.map +1 -1
  438. package/dist/types/lib/selection/createSelection.d.ts +2 -0
  439. package/dist/types/lib/selection/createSelection.d.ts.map +1 -1
  440. package/dist/types/lib/source/copyCapabilities.d.ts.map +1 -1
  441. package/dist/types/lib/source/createArraySource.d.ts +5 -2
  442. package/dist/types/lib/source/createArraySource.d.ts.map +1 -1
  443. package/dist/types/lib/source/createPage.d.ts.map +1 -1
  444. package/dist/types/lib/source/createQuerySource.d.ts +7 -0
  445. package/dist/types/lib/source/createQuerySource.d.ts.map +1 -1
  446. package/dist/types/lib/source/createRefusal.d.ts +4 -0
  447. package/dist/types/lib/source/createRefusal.d.ts.map +1 -0
  448. package/dist/types/lib/source/createRelaySource.d.ts +7 -1
  449. package/dist/types/lib/source/createRelaySource.d.ts.map +1 -1
  450. package/dist/types/lib/source/declareCapabilities.d.ts.map +1 -1
  451. package/dist/types/lib/source/executeSlice.d.ts.map +1 -1
  452. package/dist/types/lib/source/foldText.d.ts +3 -0
  453. package/dist/types/lib/source/foldText.d.ts.map +1 -1
  454. package/dist/types/lib/source/index.d.ts +3 -1
  455. package/dist/types/lib/source/index.d.ts.map +1 -1
  456. package/dist/types/lib/source/listFilterRefusals.d.ts +11 -0
  457. package/dist/types/lib/source/listFilterRefusals.d.ts.map +1 -0
  458. package/dist/types/lib/source/listGroupRefusals.d.ts +10 -0
  459. package/dist/types/lib/source/listGroupRefusals.d.ts.map +1 -0
  460. package/dist/types/lib/source/listOfferedOperators.d.ts +14 -0
  461. package/dist/types/lib/source/listOfferedOperators.d.ts.map +1 -0
  462. package/dist/types/lib/source/{refusalsOf.d.ts → listQueryRefusals.d.ts} +3 -3
  463. package/dist/types/lib/source/listQueryRefusals.d.ts.map +1 -0
  464. package/dist/types/lib/source/listSortRefusals.d.ts +10 -0
  465. package/dist/types/lib/source/listSortRefusals.d.ts.map +1 -0
  466. package/dist/types/lib/source/listWindowRefusals.d.ts +9 -0
  467. package/dist/types/lib/source/listWindowRefusals.d.ts.map +1 -0
  468. package/dist/types/lib/source/orderRows.d.ts +10 -5
  469. package/dist/types/lib/source/orderRows.d.ts.map +1 -1
  470. package/dist/types/lib/source/readFacets.d.ts +1 -1
  471. package/dist/types/lib/source/readFacets.d.ts.map +1 -1
  472. package/dist/types/lib/source/readRelayPage.d.ts +19 -0
  473. package/dist/types/lib/source/readRelayPage.d.ts.map +1 -0
  474. package/dist/types/lib/source/readSlice.d.ts +5 -3
  475. package/dist/types/lib/source/readSlice.d.ts.map +1 -1
  476. package/dist/types/lib/source/resolveErrorDelivery.d.ts +9 -0
  477. package/dist/types/lib/source/resolveErrorDelivery.d.ts.map +1 -0
  478. package/dist/types/lib/source/selectRows.d.ts +4 -2
  479. package/dist/types/lib/source/selectRows.d.ts.map +1 -1
  480. package/dist/types/lib/source/types.d.ts +36 -17
  481. package/dist/types/lib/source/types.d.ts.map +1 -1
  482. package/dist/types/lib/views/createViewCommands.d.ts.map +1 -1
  483. package/dist/types/lib/views/readStoredQuery.d.ts.map +1 -1
  484. package/dist/types/lib/views/types.d.ts +1 -1
  485. package/dist/types/lib/views/types.d.ts.map +1 -1
  486. package/dist/types/lib/virtualization/createSizeIndex.d.ts +3 -0
  487. package/dist/types/lib/virtualization/createSizeIndex.d.ts.map +1 -1
  488. package/dist/types/lib/virtualization/createVirtualRange.d.ts +4 -1
  489. package/dist/types/lib/virtualization/createVirtualRange.d.ts.map +1 -1
  490. package/dist/types/lib/virtualization/types.d.ts +4 -4
  491. package/dist/types/lib/virtualization/types.d.ts.map +1 -1
  492. package/dist/types/lib/wire/areQueryIssuesEqual.d.ts +7 -0
  493. package/dist/types/lib/wire/areQueryIssuesEqual.d.ts.map +1 -0
  494. package/dist/types/lib/wire/constants.d.ts +54 -18
  495. package/dist/types/lib/wire/constants.d.ts.map +1 -1
  496. package/dist/types/lib/wire/decodeQuery.d.ts +7 -4
  497. package/dist/types/lib/wire/decodeQuery.d.ts.map +1 -1
  498. package/dist/types/lib/wire/encodeCarryingQuery.d.ts +9 -0
  499. package/dist/types/lib/wire/encodeCarryingQuery.d.ts.map +1 -0
  500. package/dist/types/lib/wire/encodeQuery.d.ts.map +1 -1
  501. package/dist/types/lib/wire/index.d.ts +6 -1
  502. package/dist/types/lib/wire/index.d.ts.map +1 -1
  503. package/dist/types/lib/wire/isNarrowingIssue.d.ts +13 -0
  504. package/dist/types/lib/wire/isNarrowingIssue.d.ts.map +1 -0
  505. package/dist/types/lib/wire/isOwnedKey.d.ts +3 -1
  506. package/dist/types/lib/wire/isOwnedKey.d.ts.map +1 -1
  507. package/dist/types/lib/wire/isReservedKey.d.ts +6 -0
  508. package/dist/types/lib/wire/isReservedKey.d.ts.map +1 -0
  509. package/dist/types/lib/wire/readArrangementParams.d.ts +4 -8
  510. package/dist/types/lib/wire/readArrangementParams.d.ts.map +1 -1
  511. package/dist/types/lib/wire/readKeyPredicate.d.ts +9 -0
  512. package/dist/types/lib/wire/readKeyPredicate.d.ts.map +1 -0
  513. package/dist/types/lib/wire/readTableKey.d.ts +13 -0
  514. package/dist/types/lib/wire/readTableKey.d.ts.map +1 -0
  515. package/dist/types/lib/wire/readUndeclaredField.d.ts +11 -0
  516. package/dist/types/lib/wire/readUndeclaredField.d.ts.map +1 -0
  517. package/dist/types/lib/wire/readWireKey.d.ts +11 -0
  518. package/dist/types/lib/wire/readWireKey.d.ts.map +1 -0
  519. package/dist/types/lib/wire/recordConjunct.d.ts +10 -0
  520. package/dist/types/lib/wire/recordConjunct.d.ts.map +1 -0
  521. package/dist/types/lib/wire/rejectWireName.d.ts.map +1 -1
  522. package/dist/types/lib/wire/spellArrangementKey.d.ts +4 -0
  523. package/dist/types/lib/wire/spellArrangementKey.d.ts.map +1 -0
  524. package/dist/types/lib/wire/spellArrangementParams.d.ts +3 -9
  525. package/dist/types/lib/wire/spellArrangementParams.d.ts.map +1 -1
  526. package/dist/types/lib/wire/spellOperand.d.ts +4 -0
  527. package/dist/types/lib/wire/spellOperand.d.ts.map +1 -0
  528. package/dist/types/lib/wire/spellTableId.d.ts +6 -0
  529. package/dist/types/lib/wire/spellTableId.d.ts.map +1 -0
  530. package/dist/types/lib/wire/spellWireKey.d.ts +4 -4
  531. package/dist/types/lib/wire/spellWireKey.d.ts.map +1 -1
  532. package/dist/types/lib/wire/spellWireValues.d.ts +13 -0
  533. package/dist/types/lib/wire/spellWireValues.d.ts.map +1 -0
  534. package/dist/types/lib/wire/types.d.ts +68 -31
  535. package/dist/types/lib/wire/types.d.ts.map +1 -1
  536. package/dist/types/testing/answerWith.d.ts +9 -0
  537. package/dist/types/testing/buildFailedResult.d.ts +10 -0
  538. package/dist/types/testing/buildPage.d.ts +8 -0
  539. package/dist/types/testing/buildRefusedResult.d.ts +10 -0
  540. package/dist/types/testing/buildRowModel.d.ts +9 -0
  541. package/dist/types/testing/buildSettledPage.d.ts +17 -0
  542. package/dist/types/testing/buildStoredView.d.ts +8 -0
  543. package/dist/types/testing/classifyInitializer.d.ts +6 -0
  544. package/dist/types/testing/countAtLeast.d.ts +8 -0
  545. package/dist/types/testing/countExactly.d.ts +8 -0
  546. package/dist/types/testing/createCountedRows.d.ts +13 -0
  547. package/dist/types/testing/createCountingViewStore.d.ts +10 -0
  548. package/dist/types/testing/createDeferred.d.ts +8 -0
  549. package/dist/types/testing/createManualSource.d.ts +16 -0
  550. package/dist/types/testing/createRecordingLocation.d.ts +20 -0
  551. package/dist/types/testing/createStandInPresentationStore.d.ts +9 -0
  552. package/dist/types/testing/createStandInViewStore.d.ts +9 -0
  553. package/dist/types/testing/declare.d.ts +8 -0
  554. package/dist/types/testing/declareSort.d.ts +9 -0
  555. package/dist/types/testing/filterStatusBy.d.ts +8 -0
  556. package/dist/types/testing/fixtures.d.ts +117 -0
  557. package/dist/types/testing/flushPresentation.d.ts +13 -0
  558. package/dist/types/testing/index.d.ts +37 -0
  559. package/dist/types/testing/installFakeClock.d.ts +14 -0
  560. package/dist/types/testing/isMovableForm.d.ts +6 -0
  561. package/dist/types/testing/isWrappedInitializer.d.ts +6 -0
  562. package/dist/types/testing/isWrapperCallee.d.ts +2 -0
  563. package/dist/types/testing/judgeExports.d.ts +8 -0
  564. package/dist/types/testing/listBracedExports.d.ts +6 -0
  565. package/dist/types/testing/listExports.d.ts +7 -0
  566. package/dist/types/testing/listFileRuleFindings.d.ts +12 -0
  567. package/dist/types/testing/listUnmarkedNames.d.ts +10 -0
  568. package/dist/types/testing/maskSource.d.ts +6 -0
  569. package/dist/types/testing/observeUntilFinished.d.ts +12 -0
  570. package/dist/types/testing/openIndexedDBTab.d.ts +12 -0
  571. package/dist/types/testing/orderNodesByName.d.ts +11 -0
  572. package/dist/types/testing/readDeclarationDoc.d.ts +6 -0
  573. package/dist/types/testing/readDeclarationExport.d.ts +6 -0
  574. package/dist/types/testing/readDefaultExport.d.ts +6 -0
  575. package/dist/types/testing/readDisplayStatus.d.ts +8 -0
  576. package/dist/types/testing/readFileRole.d.ts +3 -0
  577. package/dist/types/testing/readGroup.d.ts +2 -0
  578. package/dist/types/testing/readId.d.ts +8 -0
  579. package/dist/types/testing/readIssuedRequest.d.ts +7 -0
  580. package/dist/types/testing/readLocalBinding.d.ts +6 -0
  581. package/dist/types/testing/readSucceededPage.d.ts +3 -0
  582. package/dist/types/testing/relayTypes.d.ts +38 -0
  583. package/dist/types/testing/respellLink.d.ts +12 -0
  584. package/dist/types/testing/runFailureHandlers.d.ts +12 -0
  585. package/dist/types/testing/settleCalls.d.ts +15 -0
  586. package/dist/types/testing/skipBalanced.d.ts +5 -0
  587. package/dist/types/testing/skipTypeAnnotation.d.ts +5 -0
  588. package/dist/types/testing/types.d.ts +228 -0
  589. package/dist/types/testing/waitForState.d.ts +11 -0
  590. package/package.json +19 -9
  591. package/dist/esm/lib/messages/DEFAULT_MESSAGES.js +0 -194
  592. package/dist/esm/lib/messages/DEFAULT_MESSAGES.js.map +0 -1
  593. package/dist/esm/lib/source/refusalsOf.js +0 -74
  594. package/dist/esm/lib/source/refusalsOf.js.map +0 -1
  595. package/dist/types/lib/messages/DEFAULT_MESSAGES.d.ts +0 -10
  596. package/dist/types/lib/messages/DEFAULT_MESSAGES.d.ts.map +0 -1
  597. package/dist/types/lib/source/refusalsOf.d.ts.map +0 -1
@@ -2,8 +2,8 @@
2
2
  * Wire-grammar contracts: what an encode writes and what a decode returns,
3
3
  * including the owned parameters it rejected.
4
4
  */
5
- import type { Query, ResultWindow, Slice } from "../query/index.js";
6
- import type { SourceRefusalCode } from "../result/index.js";
5
+ import type { Predicate, Query, ResultWindow, Slice } from "../query/index.js";
6
+ import type { QueryIssue } from "../result/index.js";
7
7
  import type { Schema, SchemaFieldDefinition } from "../schema/index.js";
8
8
  import type { SourceCapabilities } from "../source/index.js";
9
9
  /**
@@ -15,38 +15,12 @@ export type ArrangementParams = {
15
15
  readonly order: readonly string[] | null;
16
16
  readonly hidden: readonly string[];
17
17
  };
18
- /**
19
- * Which stage refused a parameter, for a control to switch on: the
20
- * source's own code where the source refused it, `malformed` where the
21
- * grammar could not read it, `invalid` where the schema refused its value or
22
- * its operator, and `unknown-field` where it names a field the collection
23
- * does not have.
24
- *
25
- * @experimental Pre-release: the whole surface is still settling, and this
26
- * name may change or move before the first release.
27
- */
28
- export type QueryIssueCode = SourceRefusalCode | "malformed" | "invalid" | "unknown-field";
29
- /**
30
- * One refusal of an owned parameter — by the grammar, the schema or the
31
- * source — named for a visible query error. One parameter may carry
32
- * several. The code names the stage that refused it, and the reason is what
33
- * a control says.
34
- *
35
- * @experimental Pre-release: the whole surface is still settling, and this
36
- * name may change or move before the first release.
37
- */
38
- export type QueryIssue = {
39
- /** The parameter as it was spelled in the URL. */
40
- readonly parameter: string;
41
- /** Which stage refused it, for a control to switch on. */
42
- readonly code: QueryIssueCode;
43
- /** Why it was refused: a lowercase fragment, as schema reasons are. */
44
- readonly reason: string;
45
- };
46
18
  /**
47
19
  * What one parameter set decodes to. A refused clause is left out of the
48
20
  * query and reported: the slice is what could be read, the issues are what
49
- * could not.
21
+ * could not. A refused clause that narrows the result — a filter or the
22
+ * search — means the slice is wider than the link asked for, and the
23
+ * provider withholds it rather than run it.
50
24
  *
51
25
  * @experimental Pre-release: the whole surface is still settling, and this
52
26
  * name may change or move before the first release.
@@ -79,6 +53,24 @@ export type EncodeQueryConfig = {
79
53
  */
80
54
  readonly preserve?: URLSearchParams | undefined;
81
55
  };
56
+ /**
57
+ * Configuration of one encode that carries a followed link's refused
58
+ * clauses through: the provider's own, never the package's.
59
+ */
60
+ export type CarryingEncodeConfig = EncodeQueryConfig & {
61
+ /**
62
+ * The grammar's own keys to carry through from `preserve` as they are
63
+ * spelled there: the refused clauses a link carries, which stand until
64
+ * the reader removes them.
65
+ */
66
+ readonly carry: readonly string[];
67
+ /**
68
+ * The slice the link's readable clauses were applied as. A carried key
69
+ * keeps only the values it did not supply, after what the encode writes:
70
+ * the values it supplied are the encode's to write again, or not.
71
+ */
72
+ readonly applied: Slice;
73
+ };
82
74
  /**
83
75
  * Configuration of one query decode.
84
76
  *
@@ -96,4 +88,49 @@ export type DecodeQueryConfig = {
96
88
  */
97
89
  readonly capabilities?: SourceCapabilities | null | undefined;
98
90
  };
91
+ /**
92
+ * One parameter name split as the grammar spells a filter: the field's wire
93
+ * name, the operator text after the first delimiter — null for a bare name —
94
+ * and the conjunct's ordinal after the second: zero when none is spelled,
95
+ * and null when what is spelled is no ordinal.
96
+ */
97
+ export type WireKey = {
98
+ readonly field: string;
99
+ readonly operator: string | null;
100
+ readonly ordinal: number | null;
101
+ };
102
+ /**
103
+ * One conjunct as one key reads it: its predicate, its ordinal, and the
104
+ * indices of the key's values it takes.
105
+ */
106
+ export type KeyConjunct = {
107
+ readonly predicate: Predicate;
108
+ readonly ordinal: number;
109
+ readonly taken: readonly number[];
110
+ };
111
+ /** What one filter key reads as: the issues it raises, and its conjunct. */
112
+ export type KeyReading = {
113
+ readonly issues: readonly QueryIssue[];
114
+ readonly conjunct: KeyConjunct | null;
115
+ };
116
+ /**
117
+ * One conjunct as the parameters spelled it: the ordinal it was read under
118
+ * and the keys it was read from, so a refusal of the conjunct is reported
119
+ * under each key the link holds.
120
+ */
121
+ export type ReadPredicate = {
122
+ readonly predicate: Predicate;
123
+ readonly ordinal: number;
124
+ readonly keys: readonly string[];
125
+ };
126
+ /** What keeping one key's conjunct did: a new one, merged, or a repeat. */
127
+ export type ConjunctRecord = "added" | "merged" | "repeated";
128
+ /** The conjuncts read so far after one key's, and the issue it raised. */
129
+ export type RecordedConjunct = {
130
+ readonly filter: readonly ReadPredicate[];
131
+ readonly issue: QueryIssue | null;
132
+ readonly record: ConjunctRecord;
133
+ };
134
+ /** A part of a table's arrangement a key or parameter is spelled for. */
135
+ export type ArrangementKeyPart = "order" | "hidden" | "width";
99
136
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/wire/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GACtB,iBAAiB,GACjB,WAAW,GACX,SAAS,GACT,eAAe,CAAC;AAEpB;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,kDAAkD;IAClD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG;IACjC;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;CACxC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,qBAAqB,EAAE,CAAC,CAAC;IAC1D,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IACrC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,qBAAqB,EAAE,CAAC,CAAC;IAC1D,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/D,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/wire/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG;IACjC;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;CACxC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,qBAAqB,EAAE,CAAC,CAAC;IAC1D,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IACrC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IACrD;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,qBAAqB,EAAE,CAAC,CAAC;IAC1D,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC,CAAC;AAEF,4EAA4E;AAC5E,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC,CAAC;AAEF,2EAA2E;AAC3E,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE7D,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,yEAAyE;AACzE,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { SourcePage } from "../lib/result/index.js";
2
+ import type { SourceRequest } from "../lib/source/index.js";
3
+ /**
4
+ * An answer of the given rows to every request, as a complete source gives.
5
+ *
6
+ * @experimental Pre-release: the whole surface is still settling, and this
7
+ * name may change or move before the first release.
8
+ */
9
+ export default function answerWith<TRow extends object>(rows: readonly TRow[]): (request: SourceRequest) => SourcePage<TRow>;
@@ -0,0 +1,10 @@
1
+ import type { Completion } from "../lib/result/index.js";
2
+ /**
3
+ * A request the source accepted and could not complete.
4
+ *
5
+ * @experimental Pre-release: the whole surface is still settling, and this
6
+ * name may change or move before the first release.
7
+ */
8
+ export default function buildFailedResult<TRow extends object>(reason: string): Extract<Completion<TRow>, {
9
+ readonly status: "failed";
10
+ }>;
@@ -0,0 +1,8 @@
1
+ import type { SourcePage } from "../lib/result/index.js";
2
+ /**
3
+ * A page of the given rows with the exact counts a complete source reports.
4
+ *
5
+ * @experimental Pre-release: the whole surface is still settling, and this
6
+ * name may change or move before the first release.
7
+ */
8
+ export default function buildPage<TRow extends object>(rows: readonly TRow[]): SourcePage<TRow>;
@@ -0,0 +1,10 @@
1
+ import type { Completion } from "../lib/result/index.js";
2
+ /**
3
+ * A request the source run refused before executing it, once per reason.
4
+ *
5
+ * @experimental Pre-release: the whole surface is still settling, and this
6
+ * name may change or move before the first release.
7
+ */
8
+ export default function buildRefusedResult<TRow extends object>(...reasons: readonly string[]): Extract<Completion<TRow>, {
9
+ readonly status: "refused";
10
+ }>;
@@ -0,0 +1,9 @@
1
+ import { type RowModel, type RowModelConfig } from "../lib/rows/index.js";
2
+ /**
3
+ * The model of a build the case expects to succeed, so a case about
4
+ * something else states its rows once and reads the model directly.
5
+ *
6
+ * @experimental Pre-release: the whole surface is still settling, and this
7
+ * name may change or move before the first release.
8
+ */
9
+ export default function buildRowModel<TRow extends object>(config: RowModelConfig<TRow>): RowModel<TRow>;
@@ -0,0 +1,17 @@
1
+ import { type Count, type PageCursors, type SourcePage } from "../lib/result/index.js";
2
+ import type { SettledRow } from "./types.js";
3
+ /**
4
+ * A page of `rows` records, counted and continued as the settled fields say.
5
+ *
6
+ * @experimental Pre-release: the whole surface is still settling, and this
7
+ * name may change or move before the first release.
8
+ */
9
+ export default function buildSettledPage({ rows, pageable, more, cursors, }: {
10
+ readonly rows: number;
11
+ /** What the source counts; nothing by default. */
12
+ readonly pageable?: Count;
13
+ /** The source's own word on a further page. */
14
+ readonly more?: boolean | null;
15
+ /** The tokens the page handed back; none for an offset source. */
16
+ readonly cursors?: PageCursors | null;
17
+ }): SourcePage<SettledRow>;
@@ -0,0 +1,8 @@
1
+ import type { SavedView } from "../lib/views/index.js";
2
+ /**
3
+ * One stored view, as a store would list it, with the given fields changed.
4
+ *
5
+ * @experimental Pre-release: the whole surface is still settling, and this
6
+ * name may change or move before the first release.
7
+ */
8
+ export default function buildStoredView(overrides?: Partial<SavedView>): SavedView;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Tell a function-valued initializer from any other value, from the masked
3
+ * text after its `=`: a function or arrow, or a `memo`/`forwardRef` call, is a
4
+ * function.
5
+ */
6
+ export default function classifyInitializer(rhs: string): "function" | "value";
@@ -0,0 +1,8 @@
1
+ import type { Count } from "../lib/result/index.js";
2
+ /**
3
+ * A count claimed as a lower bound.
4
+ *
5
+ * @experimental Pre-release: the whole surface is still settling, and this
6
+ * name may change or move before the first release.
7
+ */
8
+ export default function countAtLeast(value: number): Count;
@@ -0,0 +1,8 @@
1
+ import type { Count } from "../lib/result/index.js";
2
+ /**
3
+ * A count claimed exactly.
4
+ *
5
+ * @experimental Pre-release: the whole surface is still settling, and this
6
+ * name may change or move before the first release.
7
+ */
8
+ export default function countExactly(value: number): Count;
@@ -0,0 +1,13 @@
1
+ import type { CountedField, CountedRows } from "./types.js";
2
+ /**
3
+ * Create rows of machines — a name, a status alternating failed and ready,
4
+ * and a cpu count — whose `counted` field counts every read, so a test sees
5
+ * how often a source reads the rows: once for a selection, once more for
6
+ * each pass it makes.
7
+ *
8
+ * @note Impure: each read of the counted field adds to the count.
9
+ *
10
+ * @experimental Pre-release: the whole surface is still settling, and this
11
+ * name may change or move before the first release.
12
+ */
13
+ export default function createCountedRows(count: number, counted: CountedField): CountedRows;
@@ -0,0 +1,10 @@
1
+ import type { CountingViewStore, CountingViewStoreConfig } from "./types.js";
2
+ /**
3
+ * A view store holding nothing that a test counts subscriptions on: what
4
+ * the provider's ref-count tests read to see the views start and stop, and
5
+ * what a test hands a provider that must not read real storage.
6
+ *
7
+ * @experimental Pre-release: the whole surface is still settling, and this
8
+ * name may change or move before the first release.
9
+ */
10
+ export default function createCountingViewStore(config?: CountingViewStoreConfig): CountingViewStore;
@@ -0,0 +1,8 @@
1
+ import type { Deferred } from "./types.js";
2
+ /**
3
+ * A promise and its settling functions, to answer a stand-in call on cue.
4
+ *
5
+ * @experimental Pre-release: the whole surface is still settling, and this
6
+ * name may change or move before the first release.
7
+ */
8
+ export default function createDeferred<T>(): Deferred<T>;
@@ -0,0 +1,16 @@
1
+ import type { RowRecord } from "../lib/rows/index.js";
2
+ import type { ManualSource, ManualSourceConfig } from "./types.js";
3
+ /**
4
+ * Create a source whose executions a test drives by hand: every request
5
+ * is recorded with the function that answers it, and the release of each
6
+ * execution is counted. With `answer`, every request is answered
7
+ * synchronously, the way the array source answers, and read within the call
8
+ * without an execution; without it, nothing answers until it runs.
9
+ *
10
+ * @note Impure by design: it records every execution and counts every
11
+ * release, into the lists it hands back for a test to read.
12
+ *
13
+ * @experimental Pre-release: the whole surface is still settling, and this
14
+ * name may change or move before the first release.
15
+ */
16
+ export default function createManualSource<TRow extends object = RowRecord>(config?: ManualSourceConfig<TRow>): ManualSource<TRow>;
@@ -0,0 +1,20 @@
1
+ import { type MemoryLocationConfig } from "../lib/location/index.js";
2
+ import type { RecordingLocation } from "./types.js";
3
+ /**
4
+ * Create a location port that records what passes through it: every write
5
+ * with the history mode it was asked for, and every notification its
6
+ * subscribers received. Backed by a memory location, so it behaves as that
7
+ * port does; what it adds is the record a test asserts against — "a
8
+ * search replaced, a sort pushed, Back adopted and nothing was written
9
+ * back" is read off the port's own calls, never off a browser.
10
+ *
11
+ * It counts its reads and subscriptions, for a test that asserts "read once,
12
+ * subscribed to never".
13
+ *
14
+ * @note Impure by design: it records every write, and the core's every
15
+ * notification, into the lists it hands back for a test to read.
16
+ *
17
+ * @experimental Pre-release: the whole surface is still settling, and this
18
+ * name may change or move before the first release.
19
+ */
20
+ export default function createRecordingLocation(config?: MemoryLocationConfig): RecordingLocation;
@@ -0,0 +1,9 @@
1
+ import type { PresentationStore } from "../lib/presentation/index.js";
2
+ /**
3
+ * Create a presentation store that answers as a test says: every call not
4
+ * overridden reads nothing, saves and hears nobody.
5
+ *
6
+ * @experimental Pre-release: the whole surface is still settling, and this
7
+ * name may change or move before the first release.
8
+ */
9
+ export default function createStandInPresentationStore(overrides?: Partial<PresentationStore>): PresentationStore;
@@ -0,0 +1,9 @@
1
+ import type { ViewStore } from "../lib/views/index.js";
2
+ /**
3
+ * Create a view store that answers as a test says: every call not
4
+ * overridden lists nothing, finds nothing, refuses to write and hears nobody.
5
+ *
6
+ * @experimental Pre-release: the whole surface is still settling, and this
7
+ * name may change or move before the first release.
8
+ */
9
+ export default function createStandInViewStore(overrides?: Partial<ViewStore>): ViewStore;
@@ -0,0 +1,8 @@
1
+ import type { SourceCapabilities } from "../lib/source/index.js";
2
+ /**
3
+ * `NOTHING_DECLARED` with the named members replaced.
4
+ *
5
+ * @experimental Pre-release: the whole surface is still settling, and this
6
+ * name may change or move before the first release.
7
+ */
8
+ export default function declare(overrides: Partial<SourceCapabilities>): SourceCapabilities;
@@ -0,0 +1,9 @@
1
+ import type { SourceCapabilities } from "../lib/source/index.js";
2
+ /**
3
+ * A sort block over the given fields, limited to `terms` (none by default)
4
+ * and undocumented.
5
+ *
6
+ * @experimental Pre-release: the whole surface is still settling, and this
7
+ * name may change or move before the first release.
8
+ */
9
+ export default function declareSort(fields: readonly string[], terms?: number | null): SourceCapabilities["sort"];
@@ -0,0 +1,8 @@
1
+ import { type PredicateOperand, type Slice } from "../lib/query/index.js";
2
+ /**
3
+ * A slice filtering `status` to these operands and nothing else.
4
+ *
5
+ * @experimental Pre-release: the whole surface is still settling, and this
6
+ * name may change or move before the first release.
7
+ */
8
+ export default function filterStatusBy(operands: readonly PredicateOperand[]): Slice;
@@ -0,0 +1,117 @@
1
+ import type { RowRecord } from "../lib/rows/index.js";
2
+ import { type PaginationCapabilities, type SourceCapabilities } from "../lib/source/index.js";
3
+ import type { LinkReading } from "./types.js";
4
+ /**
5
+ * A source declaring nothing executable: every request is refused. Built
6
+ * the way a source builds its own, so the fixture and the refusing defaults
7
+ * cannot drift apart; `declareCapabilities.test.ts` pins what they are.
8
+ *
9
+ * @experimental Pre-release: the whole surface is still settling, and this
10
+ * name may change or move before the first release.
11
+ */
12
+ export declare const NOTHING_DECLARED: SourceCapabilities;
13
+ /**
14
+ * An offset source: any page is reachable by number.
15
+ *
16
+ * @experimental Pre-release: the whole surface is still settling, and this
17
+ * name may change or move before the first release.
18
+ */
19
+ export declare const BY_NUMBER: PaginationCapabilities;
20
+ /**
21
+ * A forward cursor source: pages are reached only through its tokens.
22
+ *
23
+ * @experimental Pre-release: the whole surface is still settling, and this
24
+ * name may change or move before the first release.
25
+ */
26
+ export declare const FORWARD_CURSORS: PaginationCapabilities;
27
+ /**
28
+ * A schema with a field of every kind, and records holding each field's
29
+ * values as a facet meets them: listed, unlisted, absent, null and of
30
+ * another type, so each reader's rules for what it counts are exercised.
31
+ *
32
+ * @experimental Pre-release: the whole surface is still settling, and this
33
+ * name may change or move before the first release.
34
+ */
35
+ export declare const FACETED_SCHEMA: import("../lib/schema/types.js").Schema<readonly [{
36
+ readonly field: "status";
37
+ readonly kind: "choices";
38
+ readonly options: readonly ["running", "failed", "pending"];
39
+ }, {
40
+ readonly field: "cpu";
41
+ readonly kind: "number";
42
+ }, {
43
+ readonly field: "owner";
44
+ readonly kind: "presence";
45
+ }, {
46
+ readonly field: "updated";
47
+ readonly kind: "date";
48
+ }, {
49
+ readonly field: "name";
50
+ readonly kind: "text";
51
+ }]>;
52
+ /**
53
+ * Records of the faceted schema, one of each case a facet reader meets.
54
+ *
55
+ * @experimental Pre-release: the whole surface is still settling, and this
56
+ * name may change or move before the first release.
57
+ */
58
+ export declare const FACETED_ROWS: readonly RowRecord[];
59
+ /**
60
+ * The collection the link corpus is read against: a field of every kind,
61
+ * a set whose options are the server's, and two fields spelled with a dot
62
+ * path.
63
+ *
64
+ * @experimental Pre-release: the whole surface is still settling, and this
65
+ * name may change or move before the first release.
66
+ */
67
+ export declare const LINKS_COLLECTION: import("../lib/collection/types.js").Collection<readonly [{
68
+ readonly field: "status";
69
+ readonly kind: "choices";
70
+ readonly options: readonly ["failed", "ready", "cancelled"];
71
+ }, {
72
+ readonly field: "tags";
73
+ readonly kind: "choices";
74
+ }, {
75
+ readonly field: "cpu";
76
+ readonly kind: "number";
77
+ readonly min: 0;
78
+ readonly max: 64;
79
+ }, {
80
+ readonly field: "memory";
81
+ readonly kind: "number";
82
+ }, {
83
+ readonly field: "updated";
84
+ readonly kind: "date";
85
+ }, {
86
+ readonly field: "owner";
87
+ readonly kind: "presence";
88
+ }, {
89
+ readonly field: "hostname";
90
+ readonly kind: "text";
91
+ }, {
92
+ readonly field: "config.region";
93
+ readonly kind: "choices";
94
+ readonly options: readonly ["ex-east", "ex-west"];
95
+ }, {
96
+ readonly field: "config.cores";
97
+ readonly kind: "number";
98
+ }], Readonly<Record<string, unknown>>>;
99
+ /**
100
+ * What the corpus's source declares: every field filterable, but `tags`
101
+ * only as any-of and `hostname` only by `contains`; search over the host
102
+ * name; two sort terms over two fields; no grouping; pages by number.
103
+ *
104
+ * @experimental Pre-release: the whole surface is still settling, and this
105
+ * name may change or move before the first release.
106
+ */
107
+ export declare const LINKS_CAPABILITIES: SourceCapabilities;
108
+ /**
109
+ * Links the wire grammar reads today, each with the query and issues it
110
+ * decodes to against `LINKS_COLLECTION` and `LINKS_CAPABILITIES`, and the
111
+ * parameters the location writes back over it, carrying what was refused.
112
+ * Every entry keeps its reading while the grammar grows.
113
+ *
114
+ * @experimental Pre-release: the whole surface is still settling, and this
115
+ * name may change or move before the first release.
116
+ */
117
+ export declare const LINKS_VALID_TODAY: readonly LinkReading[];
@@ -0,0 +1,13 @@
1
+ import { type MockInstance } from "vitest";
2
+ import { type PresentationStore } from "../lib/presentation/index.js";
3
+ /**
4
+ * Send the presentation changes still gathering and wait for each write to
5
+ * settle. The case runs on a faked clock: moving it past the delay sends
6
+ * the writes, and the case waits for the writes, never for a duration.
7
+ *
8
+ * @note Impure: advances the faked clock.
9
+ *
10
+ * @experimental Pre-release: the whole surface is still settling, and this
11
+ * name may change or move before the first release.
12
+ */
13
+ export default function flushPresentation(writes: MockInstance<PresentationStore["patchPresentation"]>): Promise<void>;
@@ -0,0 +1,37 @@
1
+ /** Test doubles and file-rule readers for the core and its bindings. */
2
+ export { default as answerWith } from "./answerWith.js";
3
+ export { default as buildFailedResult } from "./buildFailedResult.js";
4
+ export { default as buildPage } from "./buildPage.js";
5
+ export { default as buildRefusedResult } from "./buildRefusedResult.js";
6
+ export { default as buildRowModel } from "./buildRowModel.js";
7
+ export { default as buildSettledPage } from "./buildSettledPage.js";
8
+ export { default as buildStoredView } from "./buildStoredView.js";
9
+ export { default as countAtLeast } from "./countAtLeast.js";
10
+ export { default as countExactly } from "./countExactly.js";
11
+ export { default as createCountedRows } from "./createCountedRows.js";
12
+ export { default as createCountingViewStore } from "./createCountingViewStore.js";
13
+ export { default as createDeferred } from "./createDeferred.js";
14
+ export { default as createManualSource } from "./createManualSource.js";
15
+ export { default as createRecordingLocation } from "./createRecordingLocation.js";
16
+ export { default as createStandInPresentationStore } from "./createStandInPresentationStore.js";
17
+ export { default as createStandInViewStore } from "./createStandInViewStore.js";
18
+ export { default as declare } from "./declare.js";
19
+ export { default as declareSort } from "./declareSort.js";
20
+ export { default as filterStatusBy } from "./filterStatusBy.js";
21
+ export { BY_NUMBER, FACETED_ROWS, FACETED_SCHEMA, FORWARD_CURSORS, LINKS_CAPABILITIES, LINKS_COLLECTION, LINKS_VALID_TODAY, NOTHING_DECLARED, } from "./fixtures.js";
22
+ export { default as flushPresentation } from "./flushPresentation.js";
23
+ export { default as installFakeClock } from "./installFakeClock.js";
24
+ export { default as listFileRuleFindings } from "./listFileRuleFindings.js";
25
+ export { default as listUnmarkedNames } from "./listUnmarkedNames.js";
26
+ export { default as observeUntilFinished } from "./observeUntilFinished.js";
27
+ export { default as openIndexedDBTab } from "./openIndexedDBTab.js";
28
+ export { default as orderNodesByName } from "./orderNodesByName.js";
29
+ export { default as readDisplayStatus } from "./readDisplayStatus.js";
30
+ export { default as readId } from "./readId.js";
31
+ export { default as readIssuedRequest } from "./readIssuedRequest.js";
32
+ export type * from "./relayTypes.js";
33
+ export { default as respellLink } from "./respellLink.js";
34
+ export { default as runFailureHandlers } from "./runFailureHandlers.js";
35
+ export { default as settleCalls } from "./settleCalls.js";
36
+ export type * from "./types.js";
37
+ export { default as waitForState } from "./waitForState.js";
@@ -0,0 +1,14 @@
1
+ import { vi } from "vitest";
2
+ type FakedClock = NonNullable<NonNullable<Parameters<typeof vi.useFakeTimers>[0]>["toFake"]>;
3
+ /**
4
+ * Fake the clock for one test and restore it when the test ends. Fakes
5
+ * `setTimeout`, `clearTimeout` and `Date` unless told otherwise; `"every"`
6
+ * fakes what a bare `vi.useFakeTimers()` does.
7
+ *
8
+ * @note Impure: replaces the clock's globals until the test ends.
9
+ *
10
+ * @experimental Pre-release: the whole surface is still settling, and this
11
+ * name may change or move before the first release.
12
+ */
13
+ export default function installFakeClock(toFake?: FakedClock | "every"): void;
14
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { BindingForm } from "./types.js";
2
+ /**
3
+ * Whether a binding of this form should carry its own `export`: a function,
4
+ * a class, or a variable holding a function or a plain value.
5
+ */
6
+ export default function isMovableForm(form: BindingForm): boolean;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Whether a variable's initializer, the masked text after its `=`, is a call
3
+ * (`createContext(…)`, `memo(…)`) or ends in an `as` cast: a context, or a
4
+ * wrapped or cast component, may be exported on a separate line.
5
+ */
6
+ export default function isWrappedInitializer(rhs: string): boolean;
@@ -0,0 +1,2 @@
1
+ /** Whether a callee wraps a component: `memo` or `forwardRef`, bare or on `React`. */
2
+ export default function isWrapperCallee(callee: string): boolean;
@@ -0,0 +1,8 @@
1
+ import type { ExportRecord } from "./types.js";
2
+ /**
3
+ * The export findings for one source file, from its stem and its exports:
4
+ * one default named as the file, or only types, or only plain values; and
5
+ * no export apart from its declaration, nor a memo over a function
6
+ * declaration.
7
+ */
8
+ export default function judgeExports(stem: string, exports: readonly ExportRecord[]): readonly string[];
@@ -0,0 +1,6 @@
1
+ import type { ExportRecord } from "./types.js";
2
+ /**
3
+ * The records of one `export { … }` or `export type { … }` list, from the
4
+ * masked source and the offset of its `{`.
5
+ */
6
+ export default function listBracedExports(masked: string, open: number, isTypeOnly: boolean): readonly ExportRecord[];
@@ -0,0 +1,7 @@
1
+ import type { ExportRecord } from "./types.js";
2
+ /**
3
+ * The exports of one source text, in order, read from its top level without
4
+ * a parser: comments and literals are masked first, so only code is read,
5
+ * and a function's overload signatures read as one export.
6
+ */
7
+ export default function listExports(source: string): readonly ExportRecord[];
@@ -0,0 +1,12 @@
1
+ /**
2
+ * List every finding of the two file rules under a package's `src/` and
3
+ * `testing/` folders, as `"<path> <rule>"` lines sorted: the export rule as
4
+ * `export:<finding>`, a missing colocated test as `test`, and a type test
5
+ * as `types-test`.
6
+ *
7
+ * @note Impure by design: it reads the file system under `packageRoot`.
8
+ *
9
+ * @experimental Pre-release: the whole surface is still settling, and this
10
+ * name may change or move before the first release.
11
+ */
12
+ export default function listFileRuleFindings(packageRoot: string): readonly string[];
@@ -0,0 +1,10 @@
1
+ /**
2
+ * List the names a barrel exports by name whose declaration under `folder` carries
3
+ * no `@experimental` tag, or that no file there declares, sorted.
4
+ *
5
+ * @note Impure by design: it reads the file system under `folder`.
6
+ *
7
+ * @experimental Pre-release: the whole surface is still settling, and this
8
+ * name may change or move before the first release.
9
+ */
10
+ export default function listUnmarkedNames(barrel: string, folder: string): readonly string[];